@8wave/ai-elements 0.101.0-beta.3 → 0.101.0-beta.4
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-DMCeO6o-.js +446 -0
- package/dist/_chunks/Agent-DMCeO6o-.js.map +1 -0
- package/dist/_chunks/{Document-DS83LkQj.js → Document-C1Fp99qu.js} +2 -2
- package/dist/_chunks/{Document-DS83LkQj.js.map → Document-C1Fp99qu.js.map} +1 -1
- package/dist/_chunks/{Media-CvHHwE7y.js → Media-c-RubI3_.js} +5 -3
- package/dist/_chunks/Media-c-RubI3_.js.map +1 -0
- package/dist/_chunks/{PkToolRequestGeolocation-OGFqRvLA.js → PkToolRequestGeolocation-OZYwTIls.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-OGFqRvLA.js.map → PkToolRequestGeolocation-OZYwTIls.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CkSA6iKU.js → PkToolRequestOAuthConnection-HmWtu2b3.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CkSA6iKU.js.map → PkToolRequestOAuthConnection-HmWtu2b3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-D0q4LtUx.js → PkToolShowForm-BzopoW7z.js} +2 -2
- package/dist/_chunks/{PkToolShowForm-D0q4LtUx.js.map → PkToolShowForm-BzopoW7z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-wsRRKYe3.js → PkToolShowSources-Blw5XOA7.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-wsRRKYe3.js.map → PkToolShowSources-Blw5XOA7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-Dlm9CXCz.js → PkToolShowSuggestedReply-nsXsvLUW.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-Dlm9CXCz.js.map → PkToolShowSuggestedReply-nsXsvLUW.js.map} +1 -1
- package/dist/ai-elements.es.js +21 -10
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotMessages.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-WEwgRwnY.js +539 -0
- package/dist-vue/_chunks/Agent-WEwgRwnY.js.map +1 -0
- package/dist-vue/_chunks/{Document-DjpLDjCX.js → Document-Vx3oKWp3.js} +10 -10
- package/dist-vue/_chunks/{Document-DjpLDjCX.js.map → Document-Vx3oKWp3.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-CcvW0Nkc.js → PkChatbot-BdpdK0BB.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-CcvW0Nkc.js.map → PkChatbot-BdpdK0BB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-DXfytcYV.js → PkChatbotMessages-D2hNzIaL.js} +8 -8
- package/dist-vue/_chunks/{PkChatbotMessages-DXfytcYV.js.map → PkChatbotMessages-D2hNzIaL.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CAxNWTBJ.js → PkChatbotViewChat-PYrrnkjN.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewChat-CAxNWTBJ.js.map → PkChatbotViewChat-PYrrnkjN.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-BhLswQyH.js → PkChatbotViewConversations-BT5ojZEm.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-BhLswQyH.js.map → PkChatbotViewConversations-BT5ojZEm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DyWppF9_.js → PkChatbotViewFiles-DHzFAQZP.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DyWppF9_.js.map → PkChatbotViewFiles-DHzFAQZP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-DXPa3C1j.js → PkChatbotViewProfile-DgN0Pydw.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-DXPa3C1j.js.map → PkChatbotViewProfile-DgN0Pydw.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-C6bqSBj-.js → PkToolRequestGeolocation-B1K2fN7U.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-C6bqSBj-.js.map → PkToolRequestGeolocation-B1K2fN7U.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-eW8DmH4-.js → PkToolRequestOAuthConnection-D-qoxuPc.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-eW8DmH4-.js.map → PkToolRequestOAuthConnection-D-qoxuPc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-8m2w-oeq.js → PkToolShowDiagram-kbwsonk0.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-8m2w-oeq.js.map → PkToolShowDiagram-kbwsonk0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BHbyMNqv.js → PkToolShowForm-BzzeoKss.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowForm-BHbyMNqv.js.map → PkToolShowForm-BzzeoKss.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-CqeuJ0tV.js → PkToolShowSources-DdfHFaPA.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-CqeuJ0tV.js.map → PkToolShowSources-DdfHFaPA.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-gttr-BH6.js → PkToolShowSuggestedReply-DSd1dnZM.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-gttr-BH6.js.map → PkToolShowSuggestedReply-DSd1dnZM.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-L1dBY3cD.js → createChatbotApiClient-xbpuy6e1.js} +12 -12
- package/dist-vue/_chunks/createChatbotApiClient-xbpuy6e1.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-CNWLZ-OT.js → useChatbotStore-DWLLr7sg.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-CNWLZ-OT.js.map → useChatbotStore-DWLLr7sg.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +2 -2
- package/dist-vue/index.js +3575 -3656
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +32 -2
- package/dist-vue/packages/components/src/chat/PkReasoningSettings.d.ts +32 -2
- package/dist-vue/packages/components/src/chat/constants.d.ts +8 -2
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +96 -6
- package/dist-vue/packages/models/src/schema/Agent.d.ts +314 -4
- package/dist-vue/packages/models/src/schema/Chat.d.ts +51 -0
- package/dist-vue/packages/models/src/schema/ConversationAnalysis.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +102 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +102 -0
- package/dist-vue/packages/models/src/schema/constants.d.ts +30 -14
- package/package.json +1 -1
- package/dist/_chunks/Agent-DBVPAS7y.js +0 -404
- package/dist/_chunks/Agent-DBVPAS7y.js.map +0 -1
- package/dist/_chunks/Media-CvHHwE7y.js.map +0 -1
- package/dist-vue/_chunks/Agent-KKRQyO8u.js +0 -486
- package/dist-vue/_chunks/Agent-KKRQyO8u.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-L1dBY3cD.js.map +0 -1
|
@@ -1,486 +0,0 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, d as ee, f as i, g as a, h as o, i as s, l as c, n as l, o as u, s as te, v as d, x as f, y as ne } from "./schemas-COkEQ0wM.js";
|
|
2
|
-
import { i as p, n as re, t as ie } from "./Media-yi949VrV.js";
|
|
3
|
-
//#region ../../packages/models/src/utils.ts
|
|
4
|
-
var m = (e, t, n) => te(e, t, {
|
|
5
|
-
encode: (e) => e,
|
|
6
|
-
decode: n
|
|
7
|
-
}), h = 51200, ae = t(d(), r()).refine((e) => JSON.stringify(e).length <= h, { message: `Schema must not exceed ${h / 1024} KB` }), oe = (e) => [`${e}`, `-${e}`], se = (e) => e.flatMap((e) => oe(e)), g = {
|
|
8
|
-
pagination: (e = 1, t = 10) => ({
|
|
9
|
-
"page[number]": o().or(d()).transform((e) => Number(e)).default(e),
|
|
10
|
-
"page[size]": o().or(d()).transform((e) => Number(e)).default(t)
|
|
11
|
-
}),
|
|
12
|
-
filter: (e) => ({ [`filter[${e}]`]: d().optional() }),
|
|
13
|
-
include: (e) => ({ [`include[${e}]`]: d().optional() }),
|
|
14
|
-
range: (e) => ({
|
|
15
|
-
[`from[${e}]`]: d().optional(),
|
|
16
|
-
[`to[${e}]`]: d().optional()
|
|
17
|
-
}),
|
|
18
|
-
has: (e) => ({ [`has[${e}]`]: u().optional() }),
|
|
19
|
-
fullText: () => ({ "filter[fullText]": d().optional() }),
|
|
20
|
-
ids: () => ({ ids: ne([d(), n(d())]).optional() }),
|
|
21
|
-
deleted: () => ({ "filter[isDeleted]": u().default(!1) }),
|
|
22
|
-
filters: (e) => e.map((e) => g.filter(e)).reduce((e, t) => ({
|
|
23
|
-
...e,
|
|
24
|
-
...t
|
|
25
|
-
})),
|
|
26
|
-
sort: (e) => {
|
|
27
|
-
let t = se(e);
|
|
28
|
-
return { sort: l(t).optional().default(t[0]) };
|
|
29
|
-
}
|
|
30
|
-
}, _ = /* @__PURE__ */ function(e) {
|
|
31
|
-
return e.textEmbedding3Small = "openai/text-embedding-3-small", e.gpt5Nano = "openai/gpt-5-nano", e.gpt5Mini = "openai/gpt-5-mini", e.gpt51Thinking = "openai/gpt-5.1-thinking", e.gpt51Instant = "openai/gpt-5.1-instant", e.gpt52 = "openai/gpt-5.2", e.gpt52Chat = "openai/gpt-5.2-chat", e.gpt54nano = "openai/gpt-5.4-nano", e.gpt54mini = "openai/gpt-5.4-mini", e.gpt54 = "openai/gpt-5.4", e.gpt54Pro = "openai/gpt-5.4-pro", e.gpt55 = "openai/gpt-5.5", e.gpt55Pro = "openai/gpt-5.5-pro", e.gpt56Luna = "openai/gpt-5.6-luna", e.gpt56Terra = "openai/gpt-5.6-terra", e.gpt56Sol = "openai/gpt-5.6-sol", e.geminiEmbedding2 = "google/gemini-embedding-2", e.gemini25Flash = "google/gemini-2.5-flash", e.gemini25FlashLite = "google/gemini-2.5-flash-lite", e.gemini25Pro = "google/gemini-2.5-pro", e.gemini3Flash = "google/gemini-3-flash", e.gemini3ProPreview = "google/gemini-3-pro-preview", e.gemini31FlashLitePreview = "google/gemini-3.1-flash-lite-preview", e.gemini31ProPreview = "google/gemini-3.1-pro-preview", e.gemini31FlashLite = "google/gemini-3.1-flash-lite", e.gemini35Flash = "google/gemini-3.5-flash", e.gemini35FlashLite = "google/gemini-3.5-flash-lite", e.gemini36Flash = "google/gemini-3.6-flash", e.gemini37Flash = "google/gemini-3.7-flash", e.claudeHaiku45 = "anthropic/claude-haiku-4.5", e.claudeSonnet45 = "anthropic/claude-sonnet-4.5", e.claudeSonnet46 = "anthropic/claude-sonnet-4.6", e.claudeSonnet5 = "anthropic/claude-sonnet-5", e.claudeOpus46 = "anthropic/claude-opus-4.6", e.claudeOpus47 = "anthropic/claude-opus-4.7", e.claudeOpus48 = "anthropic/claude-opus-4.8", e.claudeOpus5 = "anthropic/claude-opus-5", e.claudeOpus5Fast = "anthropic/claude-opus-5-fast", e.claudeFable5 = "anthropic/claude-fable-5", e.deepseek32 = "deepseek/deepseek-v3.2", e.deepseek32Thinking = "deepseek/deepseek-v3.2-thinking", e.deepseek4pro = "deepseek/deepseek-v4-pro", e.deepseek4Flash = "deepseek/deepseek-v4-flash", e.deepseek4Flash0731 = "deepseek/deepseek-v4-flash-0731", e.alibabaQwen36Plus = "alibaba/qwen3.6-plus", e.alibabaQwen37Max = "alibaba/qwen3.7-max", e.alibabaQwen37Plus = "alibaba/qwen3.7-plus", e.alibabaQwen37Flash = "alibaba/qwen3.7-flash", e.alibabaQwen38Max = "alibaba/qwen3.8-max", e.xaiGrok43 = "xai/grok-4.3", e.xaiGrok46 = "xai/grok-4.6", e.zaiGlm52 = "zai/glm-5.2", e.zaiGlm52Fast = "zai/glm-5.2-fast", e.zaiGlm53 = "zai/glm-5.3", e.metaMuseSpark11 = "meta/muse-spark-1.1", e.metaMuseSpark12 = "meta/muse-spark-1.2", e;
|
|
32
|
-
}({});
|
|
33
|
-
_.geminiEmbedding2;
|
|
34
|
-
var v = /* @__PURE__ */ function(e) {
|
|
35
|
-
return e.it = "it", e.en = "en", e.es = "es", e.fr = "fr", e.de = "de", e;
|
|
36
|
-
}({});
|
|
37
|
-
v.it, v.en, v.es, v.fr, v.de;
|
|
38
|
-
var ce = /* @__PURE__ */ function(e) {
|
|
39
|
-
return e.READABILITY = "readability", e.AI = "ai", e;
|
|
40
|
-
}({}), le = /* @__PURE__ */ function(e) {
|
|
41
|
-
return e.FETCH = "fetch", e.PUPPETEER = "puppeteer", e.REMOTE = "remote", e;
|
|
42
|
-
}({}), y = a({
|
|
43
|
-
dateTime: d().optional(),
|
|
44
|
-
timezone: d().optional(),
|
|
45
|
-
language: d().optional(),
|
|
46
|
-
languages: n(d()).optional(),
|
|
47
|
-
url: d().optional(),
|
|
48
|
-
pathname: d().optional(),
|
|
49
|
-
pageTitle: d().optional(),
|
|
50
|
-
referrer: d().optional(),
|
|
51
|
-
screenWidth: o().optional(),
|
|
52
|
-
screenHeight: o().optional(),
|
|
53
|
-
viewportWidth: o().optional(),
|
|
54
|
-
viewportHeight: o().optional(),
|
|
55
|
-
devicePixelRatio: o().optional(),
|
|
56
|
-
maxTouchPoints: o().optional(),
|
|
57
|
-
hardwareConcurrency: o().optional(),
|
|
58
|
-
deviceMemory: o().optional(),
|
|
59
|
-
platform: d().optional(),
|
|
60
|
-
connectionType: d().optional(),
|
|
61
|
-
connectionEffectiveType: d().optional(),
|
|
62
|
-
connectionDownlink: o().optional(),
|
|
63
|
-
connectionRtt: o().optional(),
|
|
64
|
-
saveData: u().optional(),
|
|
65
|
-
darkMode: u().optional(),
|
|
66
|
-
reducedMotion: u().optional(),
|
|
67
|
-
historyLength: o().optional(),
|
|
68
|
-
geolocationLatitude: o().optional(),
|
|
69
|
-
geolocationLongitude: o().optional(),
|
|
70
|
-
geolocationAccuracy: o().optional(),
|
|
71
|
-
geolocationCity: d().optional()
|
|
72
|
-
}), b = /* @__PURE__ */ function(e) {
|
|
73
|
-
return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
|
|
74
|
-
}({}), x = /* @__PURE__ */ function(e) {
|
|
75
|
-
return e.Public = "public", e.Private = "private", e.Organization = "organization", e;
|
|
76
|
-
}({}), S = /* @__PURE__ */ function(e) {
|
|
77
|
-
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
78
|
-
}({}), C = /* @__PURE__ */ function(e) {
|
|
79
|
-
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
80
|
-
}({}), ue = a({
|
|
81
|
-
reasoningEffort: l([
|
|
82
|
-
"none",
|
|
83
|
-
"low",
|
|
84
|
-
"medium",
|
|
85
|
-
"high",
|
|
86
|
-
"xhigh"
|
|
87
|
-
]).optional(),
|
|
88
|
-
reasoningSummary: l([
|
|
89
|
-
"auto",
|
|
90
|
-
"detailed",
|
|
91
|
-
"concise"
|
|
92
|
-
]).optional()
|
|
93
|
-
}), de = a({
|
|
94
|
-
type: l([
|
|
95
|
-
"adaptive",
|
|
96
|
-
"enabled",
|
|
97
|
-
"disabled"
|
|
98
|
-
]).optional(),
|
|
99
|
-
effort: l([
|
|
100
|
-
"low",
|
|
101
|
-
"medium",
|
|
102
|
-
"high",
|
|
103
|
-
"xhigh",
|
|
104
|
-
"max"
|
|
105
|
-
]).optional(),
|
|
106
|
-
display: l(["summarized", "omitted"]).optional(),
|
|
107
|
-
budgetTokens: o().int().positive().optional()
|
|
108
|
-
}), fe = a({
|
|
109
|
-
thinkingLevel: l([
|
|
110
|
-
"minimal",
|
|
111
|
-
"low",
|
|
112
|
-
"medium",
|
|
113
|
-
"high"
|
|
114
|
-
]).optional(),
|
|
115
|
-
thinkingBudget: o().int().optional(),
|
|
116
|
-
includeThoughts: u().optional()
|
|
117
|
-
}), pe = a({ type: l(["enabled", "disabled"]).optional() }), me = a({
|
|
118
|
-
openai: ue.optional(),
|
|
119
|
-
anthropic: de.optional(),
|
|
120
|
-
google: fe.optional(),
|
|
121
|
-
deepseek: pe.optional()
|
|
122
|
-
});
|
|
123
|
-
function he(e) {
|
|
124
|
-
if (!e || typeof e != "object") return e;
|
|
125
|
-
let t = e;
|
|
126
|
-
if ("effort" in t && !("openai" in t || "anthropic" in t || "google" in t || "deepseek" in t)) {
|
|
127
|
-
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
128
|
-
return e && e !== "off" ? (r.openai = {
|
|
129
|
-
reasoningEffort: e,
|
|
130
|
-
...n ? { reasoningSummary: n } : {}
|
|
131
|
-
}, r.anthropic = {
|
|
132
|
-
type: "adaptive",
|
|
133
|
-
effort: e
|
|
134
|
-
}, r.google = { thinkingLevel: e }, r.deepseek = { type: "enabled" }) : (r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" }), r;
|
|
135
|
-
}
|
|
136
|
-
return e;
|
|
137
|
-
}
|
|
138
|
-
var w = m(r(), me, he).optional(), ge = {
|
|
139
|
-
openai: { reasoningEffort: "low" },
|
|
140
|
-
anthropic: {
|
|
141
|
-
type: "adaptive",
|
|
142
|
-
effort: "low"
|
|
143
|
-
},
|
|
144
|
-
google: { thinkingLevel: "low" }
|
|
145
|
-
};
|
|
146
|
-
function _e(e) {
|
|
147
|
-
return !!e && typeof e == "object" && Object.values(e).some((e) => e !== void 0);
|
|
148
|
-
}
|
|
149
|
-
function ve(e, t) {
|
|
150
|
-
let n = t?.[e];
|
|
151
|
-
return _e(n) ? n : ge[e];
|
|
152
|
-
}
|
|
153
|
-
var T = /* @__PURE__ */ function(e) {
|
|
154
|
-
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.RunWorker = "runWorker", 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;
|
|
155
|
-
}({});
|
|
156
|
-
function ye(e) {
|
|
157
|
-
return !E(e) && e !== T.RequestGeolocation;
|
|
158
|
-
}
|
|
159
|
-
function E(e) {
|
|
160
|
-
return e === T.RequestConfirm || e === T.ShowArtifact || e === T.ShowCalendarEvent || e === T.ShowComparison || e === T.ShowContactForm || e === T.ShowDiagram || e === T.ShowEmail || e === T.ShowImageGallery || e === T.ShowLocation || e === T.ShowMessage || e === T.ShowForm || e === T.ShowMultipleChoice || e === T.ShowProductList || e === T.ShowQrCode || e === T.ShowSources || e === T.ShowSuggestedReply || e === T.ShowVideo || e === T.ShowWeather || e === T.ShowWebPages;
|
|
161
|
-
}
|
|
162
|
-
var be = /* @__PURE__ */ new Set([
|
|
163
|
-
T.RequestConfirm,
|
|
164
|
-
T.ShowArtifact,
|
|
165
|
-
T.ShowWeather,
|
|
166
|
-
T.ShowLocation,
|
|
167
|
-
T.ShowComparison,
|
|
168
|
-
T.ShowProductList,
|
|
169
|
-
T.ShowWebPages,
|
|
170
|
-
T.ShowImageGallery,
|
|
171
|
-
T.ShowVideo,
|
|
172
|
-
T.ShowSources,
|
|
173
|
-
T.ShowSuggestedReply,
|
|
174
|
-
T.ShowCalendarEvent,
|
|
175
|
-
T.ShowEmail,
|
|
176
|
-
T.ShowMessage,
|
|
177
|
-
T.ShowForm
|
|
178
|
-
]);
|
|
179
|
-
function xe(e) {
|
|
180
|
-
return be.has(e);
|
|
181
|
-
}
|
|
182
|
-
var Se = /* @__PURE__ */ function(e) {
|
|
183
|
-
return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
|
|
184
|
-
}({});
|
|
185
|
-
T.RequestConfirm, T.RequestGeolocation, T.ShowArtifact, T.ShowCalendarEvent, T.ShowContactForm, T.ShowComparison, T.ShowDiagram, T.ShowEmail, T.ShowForm, T.ShowImageGallery, T.ShowLocation, T.ShowMessage, T.ShowMultipleChoice, T.ShowProductList, T.ShowQrCode, T.ShowSources, T.ShowSuggestedReply, T.ShowVideo, T.ShowWeather, T.ShowWebPages;
|
|
186
|
-
var Ce = "Shown on the caller's screen";
|
|
187
|
-
function we(e) {
|
|
188
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Ce));
|
|
189
|
-
}
|
|
190
|
-
var D = a({
|
|
191
|
-
maxSteps: o().int().min(1).max(10).optional().default(5),
|
|
192
|
-
maxOptionsPerStep: o().int().min(2).max(10).optional().default(5)
|
|
193
|
-
}), O = a({ mode: l(["optional", "required"]).optional().default("optional") }), k = a({ mode: l(["optional", "required"]).optional().default("required") }), A = /* @__PURE__ */ function(e) {
|
|
194
|
-
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
195
|
-
}({}), Te = a({
|
|
196
|
-
maxResults: o().int().min(1).max(20).optional(),
|
|
197
|
-
maxTokens: o().int().positive().max(1e6).optional(),
|
|
198
|
-
maxTokensPerPage: o().int().positive().optional(),
|
|
199
|
-
country: d().max(2).optional(),
|
|
200
|
-
searchLanguageFilter: n(d().max(5)).max(10).optional(),
|
|
201
|
-
searchDomainFilter: n(d()).max(20).optional(),
|
|
202
|
-
searchRecencyFilter: l([
|
|
203
|
-
"day",
|
|
204
|
-
"week",
|
|
205
|
-
"month",
|
|
206
|
-
"year"
|
|
207
|
-
]).optional()
|
|
208
|
-
}), Ee = a({
|
|
209
|
-
mode: l(["one-shot", "agentic"]).optional(),
|
|
210
|
-
maxResults: o().int().min(1).max(20).optional(),
|
|
211
|
-
sourcePolicy: a({
|
|
212
|
-
includeDomains: n(d()).optional(),
|
|
213
|
-
excludeDomains: n(d()).optional(),
|
|
214
|
-
afterDate: d().optional()
|
|
215
|
-
}).optional(),
|
|
216
|
-
excerpts: a({
|
|
217
|
-
maxCharsPerResult: o().int().positive().optional(),
|
|
218
|
-
maxCharsTotal: o().int().positive().optional()
|
|
219
|
-
}).optional(),
|
|
220
|
-
fetchPolicy: a({ maxAgeSeconds: o().int().positive().optional() }).optional()
|
|
221
|
-
}), j = a({
|
|
222
|
-
openai: a({}).optional(),
|
|
223
|
-
anthropic: a({
|
|
224
|
-
maxUses: o().int().positive().optional(),
|
|
225
|
-
allowedDomains: n(d()).optional(),
|
|
226
|
-
blockedDomains: n(d()).optional(),
|
|
227
|
-
userLocation: a({
|
|
228
|
-
type: i("approximate").optional(),
|
|
229
|
-
country: d().optional(),
|
|
230
|
-
region: d().optional(),
|
|
231
|
-
city: d().optional(),
|
|
232
|
-
timezone: d().optional()
|
|
233
|
-
}).optional()
|
|
234
|
-
}).optional(),
|
|
235
|
-
google: a({}).optional()
|
|
236
|
-
}), M = a({
|
|
237
|
-
enabled: u().default(!1),
|
|
238
|
-
provider: l(A).optional().default(A.Native),
|
|
239
|
-
perplexity: Te.optional(),
|
|
240
|
-
parallel: Ee.optional(),
|
|
241
|
-
native: j.optional()
|
|
242
|
-
}), N = a({ useAllUserKb: u().default(!1) }), P = a({ useAllUserFiles: u().default(!1) }), F = a({ tools: n(d()).default([]) }), I = a({
|
|
243
|
-
disabled: n(l(T)).default([
|
|
244
|
-
T.UserMemory,
|
|
245
|
-
T.SearchInUserFiles,
|
|
246
|
-
T.RunWorker,
|
|
247
|
-
T.FetchTeamsChannelHistory
|
|
248
|
-
]),
|
|
249
|
-
showForm: D.optional().default(() => D.parse({})),
|
|
250
|
-
suggestedReply: O.optional().default(() => O.parse({})),
|
|
251
|
-
showSources: k.optional().default(() => k.parse({})),
|
|
252
|
-
webSearch: M.optional().default(() => M.parse({})),
|
|
253
|
-
userMemory: N.optional().default(() => N.parse({})),
|
|
254
|
-
userFiles: P.optional().default(() => P.parse({})),
|
|
255
|
-
approval: F.optional().default(() => F.parse({}))
|
|
256
|
-
}), L = a({
|
|
257
|
-
freshness: a({
|
|
258
|
-
enabled: u().default(!1),
|
|
259
|
-
scale: o().int().min(86400).max(31536e3).default(7776e3),
|
|
260
|
-
weight: o().min(.05).max(.5).default(.1)
|
|
261
|
-
}).prefault({}),
|
|
262
|
-
priority: a({ enabled: u().default(!0) }).prefault({}),
|
|
263
|
-
mmr: a({
|
|
264
|
-
enabled: u().default(!1),
|
|
265
|
-
diversity: o().min(0).max(1).default(.3),
|
|
266
|
-
candidatesLimit: o().int().min(20).max(100).default(50)
|
|
267
|
-
}).prefault({})
|
|
268
|
-
}).prefault({}), De = a({
|
|
269
|
-
prompt: d().optional(),
|
|
270
|
-
temperature: o().min(0).max(2).optional().default(.6),
|
|
271
|
-
maxOutputTokens: o().positive().optional(),
|
|
272
|
-
presencePenalty: o().min(-2).max(2).optional(),
|
|
273
|
-
frequencyPenalty: o().min(-2).max(2).optional(),
|
|
274
|
-
searchMode: l(C).optional().default(C.Balanced),
|
|
275
|
-
limit: o().positive().max(100).optional().default(10),
|
|
276
|
-
maxStepCount: o().int().min(1).max(40).optional().default(10),
|
|
277
|
-
reasoning: w,
|
|
278
|
-
ranking: L.optional().default(() => L.parse({}))
|
|
279
|
-
}), R = m(r(), t(d(), d()), (e) => typeof e == "string" ? { it: e } : e), z = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", B = /* @__PURE__ */ function(e) {
|
|
280
|
-
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
281
|
-
}({}), V = /* @__PURE__ */ function(e) {
|
|
282
|
-
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
283
|
-
}({}), H = Object.values(V), U = a({
|
|
284
|
-
media: re.optional(),
|
|
285
|
-
logo: d().optional(),
|
|
286
|
-
theme: l([
|
|
287
|
-
"light",
|
|
288
|
-
"dark",
|
|
289
|
-
"auto"
|
|
290
|
-
]).optional().default("auto"),
|
|
291
|
-
mainColor: d().regex(/^#[0-9A-Fa-f]{6}$/).optional().default("#000000"),
|
|
292
|
-
textColor: l([
|
|
293
|
-
"auto",
|
|
294
|
-
"white",
|
|
295
|
-
"black"
|
|
296
|
-
]).optional().default("auto"),
|
|
297
|
-
useColorsForAgentHeader: u().optional().default(!1),
|
|
298
|
-
initialMessage: R.optional(),
|
|
299
|
-
greeting: n(R).min(1).max(10).optional(),
|
|
300
|
-
messagePlaceholder: R.optional(),
|
|
301
|
-
dismissableNotice: R.optional(),
|
|
302
|
-
footerMessage: R.optional(),
|
|
303
|
-
privacyPolicyNotice: R.optional(),
|
|
304
|
-
interactiveLogin: u().optional().default(!0),
|
|
305
|
-
welcomePopup: u().optional().default(!1),
|
|
306
|
-
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
307
|
-
maxMessageLength: o().int().positive().optional(),
|
|
308
|
-
widgetUrl: f().default(z),
|
|
309
|
-
loadDelay: o().int().min(0).max(3e4).optional().default(0),
|
|
310
|
-
loaderStrategy: l(B).optional().default(B.InlineModule),
|
|
311
|
-
customCss: d().optional(),
|
|
312
|
-
smoothStream: u().optional().default(!1),
|
|
313
|
-
showExtendedSteps: u().optional().default(!1)
|
|
314
|
-
}), W = a({
|
|
315
|
-
enabled: u().default(!1),
|
|
316
|
-
maxFileSizeBytes: o().int().positive().max(104857600).optional().default(20971520),
|
|
317
|
-
allowedMimeTypes: n(d().regex(ie)).optional().default([
|
|
318
|
-
"image/jpeg",
|
|
319
|
-
"image/png",
|
|
320
|
-
"image/gif",
|
|
321
|
-
"image/webp",
|
|
322
|
-
"application/pdf",
|
|
323
|
-
"text/plain",
|
|
324
|
-
"text/markdown",
|
|
325
|
-
"text/csv"
|
|
326
|
-
]),
|
|
327
|
-
maxFilesPerMessage: o().int().positive().max(10).optional().default(5),
|
|
328
|
-
maxFilesPerChat: o().int().positive().max(50).optional().default(20)
|
|
329
|
-
}), G = a({
|
|
330
|
-
zeroDataRetention: u().default(!0),
|
|
331
|
-
disallowPromptTraining: u().default(!0),
|
|
332
|
-
providerTimeoutMs: o().int().min(1e3).max(789e3).optional()
|
|
333
|
-
}), K = a({ enabled: u().default(!1) }), q = a({
|
|
334
|
-
enabled: u().default(!1),
|
|
335
|
-
voiceId: d().optional(),
|
|
336
|
-
language: d().min(2).max(5).default("it"),
|
|
337
|
-
maxSessionSeconds: o().int().min(30).max(3600).default(600),
|
|
338
|
-
cascadeTimeoutSeconds: o().min(2).max(15).default(10),
|
|
339
|
-
fillerAfterSeconds: o().min(.5).max(8).optional(),
|
|
340
|
-
fillerMessage: d().max(200).optional(),
|
|
341
|
-
ignoreBackgroundVoices: u().default(!0),
|
|
342
|
-
turnEagerness: l([
|
|
343
|
-
"patient",
|
|
344
|
-
"normal",
|
|
345
|
-
"eager"
|
|
346
|
-
]).default("normal"),
|
|
347
|
-
turnTimeoutSeconds: o().min(1).max(30).default(5),
|
|
348
|
-
firstMessage: d().max(300).optional(),
|
|
349
|
-
providerAgentId: d().optional(),
|
|
350
|
-
providerSecretId: d().optional(),
|
|
351
|
-
providerApiKeyId: d().optional()
|
|
352
|
-
}), Oe = a({ enabled: u() });
|
|
353
|
-
a({
|
|
354
|
-
chatId: d().min(1).optional(),
|
|
355
|
-
deviceContext: y.optional(),
|
|
356
|
-
externalContext: t(d(), r()).optional()
|
|
357
|
-
});
|
|
358
|
-
var ke = a({
|
|
359
|
-
sessionId: d(),
|
|
360
|
-
signedUrl: d(),
|
|
361
|
-
providerAgentId: d(),
|
|
362
|
-
chatId: d(),
|
|
363
|
-
maxSessionSeconds: o().int()
|
|
364
|
-
}), Ae = a({
|
|
365
|
-
voiceId: d(),
|
|
366
|
-
name: d(),
|
|
367
|
-
category: d().optional(),
|
|
368
|
-
previewUrl: d().optional(),
|
|
369
|
-
labels: t(d(), d()).optional()
|
|
370
|
-
});
|
|
371
|
-
n(Ae);
|
|
372
|
-
var J = a({
|
|
373
|
-
model: De,
|
|
374
|
-
interface: U,
|
|
375
|
-
tools: I.optional().default(() => I.parse({})),
|
|
376
|
-
fileUpload: W.optional().default(() => W.parse({})),
|
|
377
|
-
gatewayOptions: G.optional().default(() => G.parse({})),
|
|
378
|
-
channels: n(l(V)).optional().default(() => [...H]),
|
|
379
|
-
externalContextSchema: ae.optional(),
|
|
380
|
-
openaiApi: K.optional().default(() => K.parse({})),
|
|
381
|
-
voice: q.optional().default(() => q.parse({}))
|
|
382
|
-
}), Y = a({
|
|
383
|
-
rateLimits: a({
|
|
384
|
-
minuteRateLimit: o().int().min(0).optional(),
|
|
385
|
-
hourRateLimit: o().int().min(0).optional(),
|
|
386
|
-
dayRateLimit: o().int().min(0).optional(),
|
|
387
|
-
monthRateLimit: o().int().min(0).optional()
|
|
388
|
-
}),
|
|
389
|
-
trustedOrigins: a({ origins: n(f().or(i(""))).overwrite((e) => e?.filter((e) => e?.trim())).default([]) }).default({ origins: [] })
|
|
390
|
-
});
|
|
391
|
-
a({
|
|
392
|
-
id: d().optional(),
|
|
393
|
-
name: d(),
|
|
394
|
-
prompt: d().optional(),
|
|
395
|
-
model: d().default(_.gpt52Chat),
|
|
396
|
-
fallbackModels: n(d()).default([]),
|
|
397
|
-
status: l(b).default(b.Draft),
|
|
398
|
-
visibility: l(x).default(x.Organization),
|
|
399
|
-
settings: J,
|
|
400
|
-
security: Y.nullish(),
|
|
401
|
-
type: l(S).default(S.Chat),
|
|
402
|
-
organizationId: d()
|
|
403
|
-
}), ee(() => a({
|
|
404
|
-
id: d(),
|
|
405
|
-
name: d(),
|
|
406
|
-
prompt: d(),
|
|
407
|
-
model: d(),
|
|
408
|
-
fallbackModels: n(d()).nullable().default([]),
|
|
409
|
-
status: l(b).default(b.Draft),
|
|
410
|
-
visibility: l(x).default(x.Organization),
|
|
411
|
-
settings: J,
|
|
412
|
-
security: Y.nullable(),
|
|
413
|
-
type: l(S).default(S.Chat),
|
|
414
|
-
organizationId: d(),
|
|
415
|
-
createdAt: p(),
|
|
416
|
-
createdBy: d(),
|
|
417
|
-
updatedAt: p(),
|
|
418
|
-
updatedBy: d(),
|
|
419
|
-
deleted: u(),
|
|
420
|
-
deletedAt: p().nullable(),
|
|
421
|
-
deletedBy: d().nullable(),
|
|
422
|
-
outOfBudget: u().optional().default(!1),
|
|
423
|
-
outOfBudgetReason: d().optional().default("")
|
|
424
|
-
}));
|
|
425
|
-
var X = a({
|
|
426
|
-
id: d(),
|
|
427
|
-
name: d(),
|
|
428
|
-
status: l(b),
|
|
429
|
-
visibility: l(x),
|
|
430
|
-
organizationId: d(),
|
|
431
|
-
interface: U,
|
|
432
|
-
createdAt: p(),
|
|
433
|
-
updatedAt: p(),
|
|
434
|
-
capabilities: a({
|
|
435
|
-
fileUpload: W,
|
|
436
|
-
voice: Oe
|
|
437
|
-
}),
|
|
438
|
-
channels: n(l(V)).default(() => [...H])
|
|
439
|
-
}), je = U.pick({
|
|
440
|
-
logo: !0,
|
|
441
|
-
mainColor: !0,
|
|
442
|
-
textColor: !0,
|
|
443
|
-
theme: !0,
|
|
444
|
-
floatingButtonPosition: !0,
|
|
445
|
-
customCss: !0
|
|
446
|
-
}), Me = X.pick({
|
|
447
|
-
id: !0,
|
|
448
|
-
name: !0,
|
|
449
|
-
organizationId: !0
|
|
450
|
-
}).extend({ interface: je }), Z = a({
|
|
451
|
-
emailPassword: u(),
|
|
452
|
-
google: u(),
|
|
453
|
-
microsoft: u()
|
|
454
|
-
}), Q = a({
|
|
455
|
-
requiresAuth: i(!1),
|
|
456
|
-
agent: X,
|
|
457
|
-
branding: s()
|
|
458
|
-
}), $ = a({
|
|
459
|
-
requiresAuth: i(!0),
|
|
460
|
-
agent: s(),
|
|
461
|
-
branding: Me
|
|
462
|
-
});
|
|
463
|
-
c("requiresAuth", [Q, $]), c("requiresAuth", [Q.extend({ authMethods: Z }), $.extend({ authMethods: Z })]), a({
|
|
464
|
-
id: e(),
|
|
465
|
-
agentIds: n(e())
|
|
466
|
-
}), a({
|
|
467
|
-
...g.pagination(),
|
|
468
|
-
...g.sort([
|
|
469
|
-
"id",
|
|
470
|
-
"updatedAt",
|
|
471
|
-
"createdAt",
|
|
472
|
-
"name",
|
|
473
|
-
"type",
|
|
474
|
-
"status",
|
|
475
|
-
"visibility",
|
|
476
|
-
"model"
|
|
477
|
-
]),
|
|
478
|
-
...g.filters(["done", "type"]),
|
|
479
|
-
...g.filter("id"),
|
|
480
|
-
...g.fullText(),
|
|
481
|
-
...g.ids()
|
|
482
|
-
});
|
|
483
|
-
//#endregion
|
|
484
|
-
export { ce as C, g as D, m as E, le as S, v as T, ve as _, B as a, we as b, C as c, M as d, Se as f, ye as g, A as h, G as i, b as l, ke as m, V as n, L as o, z as p, W as r, w as s, T as t, S as u, xe as v, _ as w, y as x, E as y };
|
|
485
|
-
|
|
486
|
-
//# sourceMappingURL=Agent-KKRQyO8u.js.map
|