@8wave/ai-elements 0.125.0-beta.4 → 0.125.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{Agent-BBWFD4nI.js → Agent-DZhK49jg.js} +99 -96
- package/dist/_chunks/Agent-DZhK49jg.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-BwHe4-m1.js → PkFilePreview-C3R3jrNi.js} +31 -31
- package/dist/_chunks/{PkFilePreview-BwHe4-m1.js.map → PkFilePreview-C3R3jrNi.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js → PkFilePreviewDialog-BAKFOnPI.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js.map → PkFilePreviewDialog-BAKFOnPI.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js → PkStreamingMarkdown-BM-DSTPr.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js.map → PkStreamingMarkdown-BM-DSTPr.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js → PkToolChatFile-DbeOmRPh.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js.map → PkToolChatFile-DbeOmRPh.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js → PkToolRequestGeolocation-CCz4REP9.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js.map → PkToolRequestGeolocation-CCz4REP9.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js → PkToolRequestOAuthConnection-BU-4Sm3z.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js.map → PkToolRequestOAuthConnection-BU-4Sm3z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js → PkToolShowArtifact-utxGuLLt.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js.map → PkToolShowArtifact-utxGuLLt.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js → PkToolShowContactForm-DTtE93D3.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js.map → PkToolShowContactForm-DTtE93D3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js → PkToolShowForm-I4pKopEI.js} +6 -6
- package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js.map → PkToolShowForm-I4pKopEI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js → PkToolShowImageGallery-skV87BlD.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js.map → PkToolShowImageGallery-skV87BlD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js → PkToolShowProductList-CcdOQoxf.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js.map → PkToolShowProductList-CcdOQoxf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js → PkToolShowSources-DLmVS3bL.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js.map → PkToolShowSources-DLmVS3bL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js → PkToolShowSuggestedReply-Cv-WVCFN.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js.map → PkToolShowSuggestedReply-Cv-WVCFN.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js → PkToolShowVideo-D_K95gTR.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js.map → PkToolShowVideo-D_K95gTR.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js → PkToolShowWebPages-DsfMacw-.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js.map → PkToolShowWebPages-DsfMacw-.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js → chatImagePolicy-BfgdFbm_.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js.map → chatImagePolicy-BfgdFbm_.js.map} +1 -1
- package/dist/_chunks/{markdown-DDYeZICP.js → markdown-CrMYpY8l.js} +10 -10
- package/dist/_chunks/{markdown-DDYeZICP.js.map → markdown-CrMYpY8l.js.map} +1 -1
- package/dist/_chunks/{utils-euH8esYP.js → utils-CbhqxYyx.js} +57 -57
- package/dist/_chunks/utils-CbhqxYyx.js.map +1 -0
- package/dist/ai-elements.es.js +3812 -3717
- 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-DQl-tv4S.js → Agent-BtXBSGy6.js} +34 -31
- package/dist-vue/_chunks/Agent-BtXBSGy6.js.map +1 -0
- package/dist-vue/_chunks/{Document-DXDifFZE.js → Document-DERAWuR0.js} +10 -10
- package/dist-vue/_chunks/{Document-DXDifFZE.js.map → Document-DERAWuR0.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbot-Qrk8yEM0.js +294 -0
- package/dist-vue/_chunks/PkChatbot-Qrk8yEM0.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js → PkChatbotEmptyState-C9aUiynZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js.map → PkChatbotEmptyState-C9aUiynZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-BK7f1jFE.js → PkChatbotInput-Bs8nn-Jz.js} +154 -135
- package/dist-vue/_chunks/PkChatbotInput-Bs8nn-Jz.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotMessages-DAwGWRtd.js +1039 -0
- package/dist-vue/_chunks/PkChatbotMessages-DAwGWRtd.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js → PkChatbotStepPayload-C45aVagz.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js.map → PkChatbotStepPayload-C45aVagz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js → PkChatbotStepToolDetail-B0tC33x6.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js.map → PkChatbotStepToolDetail-B0tC33x6.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js +215 -0
- package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-D8depeWQ.js → PkChatbotViewChat-CMFc4eLD.js} +450 -446
- package/dist-vue/_chunks/PkChatbotViewChat-CMFc4eLD.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js → PkChatbotViewConversations-CtxE_a1O.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js.map → PkChatbotViewConversations-CtxE_a1O.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js → PkChatbotViewFiles-B51zU374.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js.map → PkChatbotViewFiles-B51zU374.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js → PkChatbotViewProfile-BSKRU7Ae.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js.map → PkChatbotViewProfile-BSKRU7Ae.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js → PkFilePreview-p-AGDrXi.js} +30 -30
- package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js.map → PkFilePreview-p-AGDrXi.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js → PkFilePreviewDialog-BpeeWS6d.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js.map → PkFilePreviewDialog-BpeeWS6d.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js → PkStreamingMarkdown-DlcTV5je.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js.map → PkStreamingMarkdown-DlcTV5je.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js → PkToolChatFile-HWGjtuaT.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js.map → PkToolChatFile-HWGjtuaT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js → PkToolRequestGeolocation-euI4VBVe.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js.map → PkToolRequestGeolocation-euI4VBVe.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js → PkToolRequestOAuthConnection-DAAYyufP.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js.map → PkToolRequestOAuthConnection-DAAYyufP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js → PkToolShowArtifact-C8OIF_sy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js.map → PkToolShowArtifact-C8OIF_sy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js → PkToolShowContactForm-K6Z5MUXk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js.map → PkToolShowContactForm-K6Z5MUXk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js → PkToolShowDiagram-DrlGh_v6.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js.map → PkToolShowDiagram-DrlGh_v6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js → PkToolShowForm-DzsXJfOl.js} +6 -6
- package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js.map → PkToolShowForm-DzsXJfOl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js → PkToolShowImageGallery-sCyrPOIT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js.map → PkToolShowImageGallery-sCyrPOIT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js → PkToolShowProductList-DPDDeVu4.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js.map → PkToolShowProductList-DPDDeVu4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js → PkToolShowSources-D4zjssdh.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js.map → PkToolShowSources-D4zjssdh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js → PkToolShowSuggestedReply-smfC1hlT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js.map → PkToolShowSuggestedReply-smfC1hlT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js → PkToolShowVideo-C77DAqoZ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js.map → PkToolShowVideo-C77DAqoZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js → PkToolShowWebPages-D_tqGI6o.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js.map → PkToolShowWebPages-D_tqGI6o.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Bukf58dz.js → createChatbotApiClient-CO6l0P79.js} +87 -85
- package/dist-vue/_chunks/createChatbotApiClient-CO6l0P79.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-DcvdWkgq.js → useChatbotStore-CY1gAHOh.js} +1224 -1201
- package/dist-vue/_chunks/useChatbotStore-CY1gAHOh.js.map +1 -0
- package/dist-vue/_chunks/{utils-B0PnU1Rk.js → utils-CX4JuhXz.js} +66 -66
- package/dist-vue/_chunks/utils-CX4JuhXz.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
- package/dist-vue/composables.js +16 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3394 -3359
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +16 -0
- package/dist-vue/packages/components/src/chat/PkAgentPageAccessSettings.d.ts +5 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +10 -8
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +11 -3
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +2 -2
- package/dist-vue/packages/components/src/chat/PkFieldChanges.d.ts +15 -0
- package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +1 -2
- package/dist-vue/packages/components/src/chat/utils.d.ts +18 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
- package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +10 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +31 -4
- package/dist-vue/packages/models/src/schema/Agent.d.ts +41 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +9 -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/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-BBWFD4nI.js.map +0 -1
- package/dist/_chunks/utils-euH8esYP.js.map +0 -1
- package/dist-vue/_chunks/Agent-DQl-tv4S.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js +0 -286
- package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-BK7f1jFE.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js +0 -1041
- package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js +0 -189
- package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-D8depeWQ.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-Bukf58dz.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-DcvdWkgq.js.map +0 -1
- package/dist-vue/_chunks/utils-B0PnU1Rk.js.map +0 -1
|
@@ -51,13 +51,13 @@ var S = n({
|
|
|
51
51
|
]),
|
|
52
52
|
width: s().int().positive().nullable(),
|
|
53
53
|
height: s().int().positive().nullable()
|
|
54
|
-
}),
|
|
54
|
+
}), se = n({
|
|
55
55
|
[x.LogoLight]: S.nullable(),
|
|
56
56
|
[x.LogoDark]: S.nullable(),
|
|
57
57
|
[x.Mark]: S.nullable(),
|
|
58
58
|
[x.EmailLogo]: S.nullable(),
|
|
59
59
|
[x.EmailBanner]: S.nullable()
|
|
60
|
-
}),
|
|
60
|
+
}), C = n({
|
|
61
61
|
productName: i().trim().min(1).max(60),
|
|
62
62
|
shortName: i().trim().min(1).max(24),
|
|
63
63
|
description: i().trim().max(200).nullable(),
|
|
@@ -67,42 +67,42 @@ var S = n({
|
|
|
67
67
|
n({
|
|
68
68
|
colors: y,
|
|
69
69
|
mode: u(b),
|
|
70
|
-
assets:
|
|
71
|
-
text:
|
|
70
|
+
assets: se,
|
|
71
|
+
text: C
|
|
72
72
|
}).extend({ version: i() });
|
|
73
|
-
var
|
|
74
|
-
productName:
|
|
75
|
-
shortName:
|
|
76
|
-
}),
|
|
73
|
+
var ce = n({ css: i() }), w = se.partial(), T = C.partial().extend({
|
|
74
|
+
productName: C.shape.productName.nullish(),
|
|
75
|
+
shortName: C.shape.shortName.nullish()
|
|
76
|
+
}), le = n({
|
|
77
77
|
colors: y.nullish(),
|
|
78
78
|
mode: u(b).nullish(),
|
|
79
|
-
assets:
|
|
80
|
-
text:
|
|
79
|
+
assets: w.nullish(),
|
|
80
|
+
text: T.nullish()
|
|
81
81
|
});
|
|
82
82
|
n({
|
|
83
|
-
patch:
|
|
83
|
+
patch: le,
|
|
84
84
|
revision: i().min(1).max(64)
|
|
85
85
|
});
|
|
86
|
-
var
|
|
86
|
+
var E = (e) => e.optional().catch(void 0);
|
|
87
87
|
n({
|
|
88
|
-
colors:
|
|
89
|
-
mode:
|
|
90
|
-
assets:
|
|
91
|
-
[x.LogoLight]:
|
|
92
|
-
[x.LogoDark]:
|
|
93
|
-
[x.Mark]:
|
|
94
|
-
[x.EmailLogo]:
|
|
95
|
-
[x.EmailBanner]:
|
|
88
|
+
colors: E(y.nullable()),
|
|
89
|
+
mode: E(u(b).nullable()),
|
|
90
|
+
assets: E(n({
|
|
91
|
+
[x.LogoLight]: E(w.shape.logoLight),
|
|
92
|
+
[x.LogoDark]: E(w.shape.logoDark),
|
|
93
|
+
[x.Mark]: E(w.shape.mark),
|
|
94
|
+
[x.EmailLogo]: E(w.shape.emailLogo),
|
|
95
|
+
[x.EmailBanner]: E(w.shape.emailBanner)
|
|
96
96
|
}).nullable()),
|
|
97
|
-
text:
|
|
98
|
-
productName:
|
|
99
|
-
shortName:
|
|
100
|
-
description:
|
|
101
|
-
productTagline:
|
|
102
|
-
companyName:
|
|
97
|
+
text: E(n({
|
|
98
|
+
productName: E(T.shape.productName),
|
|
99
|
+
shortName: E(T.shape.shortName),
|
|
100
|
+
description: E(T.shape.description),
|
|
101
|
+
productTagline: E(T.shape.productTagline),
|
|
102
|
+
companyName: E(T.shape.companyName)
|
|
103
103
|
}).nullable())
|
|
104
|
-
}),
|
|
105
|
-
...
|
|
104
|
+
}), D({
|
|
105
|
+
...D({
|
|
106
106
|
colors: {
|
|
107
107
|
light: {
|
|
108
108
|
brand: "#140e33",
|
|
@@ -139,15 +139,15 @@ n({
|
|
|
139
139
|
companyName: null
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
|
-
function
|
|
142
|
+
function D(e) {
|
|
143
143
|
if (e && typeof e == "object") {
|
|
144
|
-
for (let t of Object.values(e))
|
|
144
|
+
for (let t of Object.values(e)) D(t);
|
|
145
145
|
Object.freeze(e);
|
|
146
146
|
}
|
|
147
147
|
return e;
|
|
148
148
|
}
|
|
149
149
|
// ../../packages/models/src/schema/DeviceContext.ts
|
|
150
|
-
var
|
|
150
|
+
var ue = n({
|
|
151
151
|
dateTime: i().optional(),
|
|
152
152
|
timezone: i().optional(),
|
|
153
153
|
language: i().optional(),
|
|
@@ -177,16 +177,16 @@ var le = n({
|
|
|
177
177
|
geolocationLongitude: s().optional(),
|
|
178
178
|
geolocationAccuracy: s().optional(),
|
|
179
179
|
geolocationCity: i().optional()
|
|
180
|
-
}),
|
|
180
|
+
}), de = "host", O = /^[a-z][a-z0-9_]{0,63}$/, fe = 2e3, pe = n({
|
|
181
181
|
title: i().max(80).optional(),
|
|
182
182
|
readOnlyHint: d().optional(),
|
|
183
183
|
destructiveHint: d().optional()
|
|
184
184
|
});
|
|
185
185
|
n({
|
|
186
|
-
name: i().regex(
|
|
187
|
-
description: i().max(
|
|
186
|
+
name: i().regex(O),
|
|
187
|
+
description: i().max(fe).optional(),
|
|
188
188
|
inputSchema: h(i(), t()).refine((e) => e.type === "object", { message: "The input schema must describe an object" }),
|
|
189
|
-
annotations:
|
|
189
|
+
annotations: pe.optional()
|
|
190
190
|
}), n({
|
|
191
191
|
content: c(n({
|
|
192
192
|
type: l("text"),
|
|
@@ -194,33 +194,33 @@ n({
|
|
|
194
194
|
})),
|
|
195
195
|
isError: d().optional()
|
|
196
196
|
});
|
|
197
|
-
var
|
|
197
|
+
var me = n({
|
|
198
198
|
enabled: d().default(!1),
|
|
199
199
|
label: i().max(40).default(""),
|
|
200
|
-
allowed: c(i().regex(
|
|
201
|
-
requireConfirmation: c(i().regex(
|
|
200
|
+
allowed: c(i().regex(O)).max(32).default([]),
|
|
201
|
+
requireConfirmation: c(i().regex(O)).default([]),
|
|
202
202
|
confirmDestructive: d().default(!0),
|
|
203
203
|
timeoutMs: s().int().min(5e3).max(12e4).default(3e4),
|
|
204
204
|
maxCallsPerTurn: s().int().min(1).max(50).default(20)
|
|
205
|
-
}),
|
|
205
|
+
}), he = me.pick({
|
|
206
206
|
label: !0,
|
|
207
207
|
allowed: !0,
|
|
208
208
|
requireConfirmation: !0,
|
|
209
209
|
confirmDestructive: !0,
|
|
210
210
|
timeoutMs: !0
|
|
211
|
-
}).extend({ origins: c(i()) }),
|
|
211
|
+
}).extend({ origins: c(i()) }), ge = (e) => {
|
|
212
212
|
if (typeof e != "object" || !e) return !1;
|
|
213
213
|
let { type: t, toolMetadata: n } = e;
|
|
214
214
|
return t === "dynamic-tool" && n?.source === "host";
|
|
215
|
-
},
|
|
215
|
+
}, _e = (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.", ve = "The user refused this call. Do not repeat it unless the user asks.", k = /* @__PURE__ */ function(e) {
|
|
216
216
|
return e.Off = "off", e.Read = "read", e.Forms = "forms", e.Full = "full", e;
|
|
217
|
-
}({}),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
],
|
|
223
|
-
function
|
|
217
|
+
}({}), ye = [
|
|
218
|
+
k.Off,
|
|
219
|
+
k.Read,
|
|
220
|
+
k.Forms,
|
|
221
|
+
k.Full
|
|
222
|
+
], be = (e, t) => ye.indexOf(e ?? k.Off) >= ye.indexOf(t);
|
|
223
|
+
function xe(e) {
|
|
224
224
|
if (!e.trim()) return !1;
|
|
225
225
|
if (typeof document > "u") return !0;
|
|
226
226
|
try {
|
|
@@ -229,21 +229,21 @@ function be(e) {
|
|
|
229
229
|
return !1;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
level: u(
|
|
234
|
-
excludeSelectors: c(i().max(200).refine(
|
|
232
|
+
var Se = n({
|
|
233
|
+
level: u(k).default(k.Off),
|
|
234
|
+
excludeSelectors: c(i().max(200).refine(xe, "Not a valid CSS selector")).max(50).default([]),
|
|
235
235
|
confirmEveryAction: d().default(!1),
|
|
236
236
|
pointer: d().default(!1),
|
|
237
237
|
notice: h(i(), i().max(500)).optional(),
|
|
238
238
|
acknowledgedBy: i().optional(),
|
|
239
239
|
acknowledgedAt: f().optional(),
|
|
240
|
-
acknowledgedLevel: u(
|
|
241
|
-
}),
|
|
240
|
+
acknowledgedLevel: u(k).optional()
|
|
241
|
+
}), Ce = (e) => e.startsWith("page_") || e.startsWith("form_"), we = Se.pick({
|
|
242
242
|
level: !0,
|
|
243
243
|
excludeSelectors: !0,
|
|
244
244
|
confirmEveryAction: !0,
|
|
245
245
|
notice: !0
|
|
246
|
-
}).extend({ pointer: d().optional() }),
|
|
246
|
+
}).extend({ pointer: d().optional() }), Te = ["fill-fields", "fill-choose"];
|
|
247
247
|
n({
|
|
248
248
|
kind: u(["element", "text"]),
|
|
249
249
|
label: i().max(200),
|
|
@@ -260,7 +260,7 @@ n({
|
|
|
260
260
|
features: c(i().max(40)).max(16).default([])
|
|
261
261
|
});
|
|
262
262
|
// ../../packages/models/src/schema/Media.ts
|
|
263
|
-
var
|
|
263
|
+
var A = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ee = new Set([
|
|
264
264
|
[".mp3", "audio/mpeg"],
|
|
265
265
|
[".m4a", "audio/mp4"],
|
|
266
266
|
[".m4a", "audio/x-m4a"],
|
|
@@ -273,7 +273,7 @@ var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, Te = new Set([
|
|
|
273
273
|
[".opus", "audio/ogg"],
|
|
274
274
|
[".flac", "audio/flac"],
|
|
275
275
|
[".flac", "audio/x-flac"]
|
|
276
|
-
].map(([e]) => e)),
|
|
276
|
+
].map(([e]) => e)), De = /* @__PURE__ */ new Set([
|
|
277
277
|
".amr",
|
|
278
278
|
".3ga",
|
|
279
279
|
".aif",
|
|
@@ -283,9 +283,9 @@ var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, Te = new Set([
|
|
|
283
283
|
".mka",
|
|
284
284
|
".weba",
|
|
285
285
|
".wma"
|
|
286
|
-
]),
|
|
286
|
+
]), j = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Oe = (e, t) => {
|
|
287
287
|
let n = Ue(e ?? "");
|
|
288
|
-
return
|
|
288
|
+
return j(t).startsWith("audio/") || Ee.has(n) || De.has(n);
|
|
289
289
|
}, M = [
|
|
290
290
|
{
|
|
291
291
|
extensions: [".html", ".htm"],
|
|
@@ -449,7 +449,7 @@ var ke = (e) => M.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensi
|
|
|
449
449
|
"text/plain",
|
|
450
450
|
...n.flatMap((e) => e.aliases)
|
|
451
451
|
] : []);
|
|
452
|
-
return e.length > 0 && e.every((e) => r.has(
|
|
452
|
+
return e.length > 0 && e.every((e) => r.has(j(e)) || t.some((t) => e.includes(t)));
|
|
453
453
|
};
|
|
454
454
|
n({
|
|
455
455
|
status: u([
|
|
@@ -478,7 +478,7 @@ var je = /* @__PURE__ */ function(e) {
|
|
|
478
478
|
}), Pe = p("type", [Me, Ne]), N = n({
|
|
479
479
|
type: i().min(1),
|
|
480
480
|
name: i().min(1),
|
|
481
|
-
mimeType: i().regex(
|
|
481
|
+
mimeType: i().regex(A),
|
|
482
482
|
bytesCount: s().positive(),
|
|
483
483
|
extension: i().regex(/^\.[a-zA-Z0-9]+$/).overwrite((e) => e.toLowerCase()),
|
|
484
484
|
storedFileName: i().optional(),
|
|
@@ -889,7 +889,7 @@ var X = n({
|
|
|
889
889
|
], At = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", jt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Z = n({
|
|
890
890
|
enabled: d().default(!1),
|
|
891
891
|
maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
|
|
892
|
-
allowedMimeTypes: c(i().regex(
|
|
892
|
+
allowedMimeTypes: c(i().regex(A)).optional().default([...kt]),
|
|
893
893
|
maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
|
|
894
894
|
maxFilesPerChat: s().int().positive().max(50).optional().default(20)
|
|
895
895
|
}), Q = n({
|
|
@@ -917,28 +917,29 @@ var X = n({
|
|
|
917
917
|
providerAgentId: i().optional(),
|
|
918
918
|
providerSecretId: i().optional(),
|
|
919
919
|
providerApiKeyId: i().optional()
|
|
920
|
-
}), It = n({ enabled: d() });
|
|
920
|
+
}), It = n({ enabled: d() }), Lt = l("automatic");
|
|
921
921
|
n({
|
|
922
922
|
chatId: i().min(1).optional(),
|
|
923
|
-
deviceContext:
|
|
923
|
+
deviceContext: ue.optional(),
|
|
924
924
|
externalContext: h(i(), t()).optional(),
|
|
925
|
-
pageTools: t().optional()
|
|
925
|
+
pageTools: t().optional(),
|
|
926
|
+
confirmations: Lt.optional()
|
|
926
927
|
});
|
|
927
|
-
var
|
|
928
|
+
var Rt = n({
|
|
928
929
|
sessionId: i(),
|
|
929
930
|
signedUrl: i(),
|
|
930
931
|
providerAgentId: i(),
|
|
931
932
|
chatId: i(),
|
|
932
933
|
maxSessionSeconds: s().int()
|
|
933
|
-
}),
|
|
934
|
+
}), zt = n({
|
|
934
935
|
voiceId: i(),
|
|
935
936
|
name: i(),
|
|
936
937
|
category: i().optional(),
|
|
937
938
|
previewUrl: i().optional(),
|
|
938
939
|
labels: h(i(), i()).optional()
|
|
939
940
|
});
|
|
940
|
-
c(
|
|
941
|
-
var
|
|
941
|
+
c(zt);
|
|
942
|
+
var Bt = n({ allowAutomatic: d().default(!1) }), Vt = n({ allowAutomatic: l(!0) }), $ = n({
|
|
942
943
|
model: Ct,
|
|
943
944
|
interface: X,
|
|
944
945
|
tools: St.optional().default(() => St.parse({})),
|
|
@@ -949,9 +950,10 @@ var zt = n({
|
|
|
949
950
|
openaiApi: Mt.optional().default(() => Mt.parse({})),
|
|
950
951
|
voice: Ft.optional().default(() => Ft.parse({})),
|
|
951
952
|
toolWorkingSet: Pt.optional().default(() => Pt.parse({})),
|
|
952
|
-
hostTools:
|
|
953
|
-
pageAccess:
|
|
954
|
-
|
|
953
|
+
hostTools: me.optional(),
|
|
954
|
+
pageAccess: Se.optional(),
|
|
955
|
+
confirmations: Bt.optional()
|
|
956
|
+
}), Ht = n({
|
|
955
957
|
rateLimits: n({
|
|
956
958
|
minuteRateLimit: s().int().min(0).optional(),
|
|
957
959
|
hourRateLimit: s().int().min(0).optional(),
|
|
@@ -968,8 +970,8 @@ n({
|
|
|
968
970
|
fallbackModels: c(i()).default([]),
|
|
969
971
|
status: u(F).default(F.Draft),
|
|
970
972
|
visibility: u(I).default(I.Organization),
|
|
971
|
-
settings:
|
|
972
|
-
security:
|
|
973
|
+
settings: $,
|
|
974
|
+
security: Ht.nullish(),
|
|
973
975
|
type: u(L).default(L.Chat),
|
|
974
976
|
organizationId: i()
|
|
975
977
|
}), o(() => n({
|
|
@@ -980,8 +982,8 @@ n({
|
|
|
980
982
|
fallbackModels: c(i()).nullable().default([]),
|
|
981
983
|
status: u(F).default(F.Draft),
|
|
982
984
|
visibility: u(I).default(I.Organization),
|
|
983
|
-
settings:
|
|
984
|
-
security:
|
|
985
|
+
settings: $,
|
|
986
|
+
security: Ht.nullable(),
|
|
985
987
|
type: u(L).default(L.Chat),
|
|
986
988
|
organizationId: i(),
|
|
987
989
|
createdAt: f(),
|
|
@@ -994,7 +996,7 @@ n({
|
|
|
994
996
|
outOfBudget: d().optional().default(!1),
|
|
995
997
|
outOfBudgetReason: i().optional().default("")
|
|
996
998
|
}));
|
|
997
|
-
var
|
|
999
|
+
var Ut = n({
|
|
998
1000
|
id: i(),
|
|
999
1001
|
name: i(),
|
|
1000
1002
|
status: u(F),
|
|
@@ -1006,11 +1008,12 @@ var Bt = n({
|
|
|
1006
1008
|
capabilities: n({
|
|
1007
1009
|
fileUpload: Z,
|
|
1008
1010
|
voice: It,
|
|
1009
|
-
hostTools:
|
|
1010
|
-
pageAccess:
|
|
1011
|
+
hostTools: he.optional(),
|
|
1012
|
+
pageAccess: we.optional(),
|
|
1013
|
+
confirmations: Vt.optional()
|
|
1011
1014
|
}),
|
|
1012
1015
|
channels: c(u(Y)).default(() => [...Et])
|
|
1013
|
-
}),
|
|
1016
|
+
}), Wt = X.pick({
|
|
1014
1017
|
logo: !0,
|
|
1015
1018
|
mainColor: !0,
|
|
1016
1019
|
textColor: !0,
|
|
@@ -1021,41 +1024,41 @@ var Bt = n({
|
|
|
1021
1024
|
hideFloatingButton: !0,
|
|
1022
1025
|
copilotPageCss: !0,
|
|
1023
1026
|
customCss: !0
|
|
1024
|
-
}),
|
|
1027
|
+
}), Gt = Ut.pick({
|
|
1025
1028
|
id: !0,
|
|
1026
1029
|
name: !0,
|
|
1027
1030
|
organizationId: !0
|
|
1028
|
-
}).extend({ interface:
|
|
1031
|
+
}).extend({ interface: Wt }), Kt = n({
|
|
1029
1032
|
emailPassword: d(),
|
|
1030
1033
|
google: d(),
|
|
1031
1034
|
microsoft: d()
|
|
1032
|
-
}),
|
|
1035
|
+
}), qt = n({
|
|
1033
1036
|
requiresAuth: l(!1),
|
|
1034
|
-
agent:
|
|
1037
|
+
agent: Ut,
|
|
1035
1038
|
branding: r()
|
|
1036
|
-
}),
|
|
1039
|
+
}), Jt = n({
|
|
1037
1040
|
requiresAuth: l(!0),
|
|
1038
1041
|
agent: r(),
|
|
1039
|
-
branding:
|
|
1042
|
+
branding: Gt
|
|
1040
1043
|
});
|
|
1041
|
-
p("requiresAuth", [
|
|
1042
|
-
var
|
|
1044
|
+
p("requiresAuth", [qt, Jt]);
|
|
1045
|
+
var Yt = n({
|
|
1043
1046
|
frontendUrl: i().optional(),
|
|
1044
1047
|
telemetry: n({
|
|
1045
1048
|
environment: i(),
|
|
1046
1049
|
samplingRate: s().min(0).max(1)
|
|
1047
1050
|
}).nullable()
|
|
1048
|
-
}),
|
|
1049
|
-
authMethods:
|
|
1050
|
-
deploymentBranding:
|
|
1051
|
-
deployment:
|
|
1051
|
+
}), Xt = n({
|
|
1052
|
+
authMethods: Kt,
|
|
1053
|
+
deploymentBranding: ce.nullish(),
|
|
1054
|
+
deployment: Yt.optional()
|
|
1052
1055
|
});
|
|
1053
|
-
p("requiresAuth", [
|
|
1056
|
+
p("requiresAuth", [qt.extend(Xt.shape), Jt.extend(Xt.shape)]), n({
|
|
1054
1057
|
id: m(),
|
|
1055
1058
|
limited: d(),
|
|
1056
1059
|
agentIds: c(m())
|
|
1057
1060
|
});
|
|
1058
|
-
var
|
|
1061
|
+
var Zt = n({
|
|
1059
1062
|
userId: m(),
|
|
1060
1063
|
name: i(),
|
|
1061
1064
|
email: i(),
|
|
@@ -1066,7 +1069,7 @@ var Jt = n({
|
|
|
1066
1069
|
});
|
|
1067
1070
|
n({
|
|
1068
1071
|
id: m(),
|
|
1069
|
-
members: c(
|
|
1072
|
+
members: c(Zt)
|
|
1070
1073
|
}), n({
|
|
1071
1074
|
id: m(),
|
|
1072
1075
|
userIds: c(m())
|
|
@@ -1088,6 +1091,6 @@ n({
|
|
|
1088
1091
|
..._.fullText(),
|
|
1089
1092
|
..._.ids()
|
|
1090
1093
|
});
|
|
1091
|
-
export {
|
|
1094
|
+
export { k as A, _ as B, Ot as C, ke as D, Ae as E, de as F, _e as I, ge as L, xe as M, be as N, Oe as O, ve as P, ue as R, dt as S, Fe as T, Rt as _, tt as a, at as b, J as c, Lt as d, nt as f, lt as g, st as h, G as i, Ce as j, Te as k, q as l, it as m, H as n, R as o, At as p, Q as r, U as s, rt as t, ot as u, mt as v, A as w, ct as x, jt as y, g as z };
|
|
1092
1095
|
|
|
1093
|
-
//# sourceMappingURL=Agent-
|
|
1096
|
+
//# sourceMappingURL=Agent-DZhK49jg.js.map
|