@8wave/ai-elements 0.112.0-beta.5 → 0.112.0-beta.9

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.
Files changed (124) hide show
  1. package/dist/_chunks/{Agent-tE7ZJPxG.js → Agent-DTLrWpzX.js} +138 -135
  2. package/dist/_chunks/Agent-DTLrWpzX.js.map +1 -0
  3. package/dist/_chunks/Media-Cft7Pwrh.js.map +1 -1
  4. package/dist/_chunks/{PkStreamingMarkdown-CNI8aV8t.js → PkStreamingMarkdown-CRlRDGYl.js} +3 -3
  5. package/dist/_chunks/PkStreamingMarkdown-CRlRDGYl.js.map +1 -0
  6. package/dist/_chunks/{PkToolRequestGeolocation-65jeiJs8.js → PkToolRequestGeolocation-BbxYKt-9.js} +2 -2
  7. package/dist/_chunks/{PkToolRequestGeolocation-65jeiJs8.js.map → PkToolRequestGeolocation-BbxYKt-9.js.map} +1 -1
  8. package/dist/_chunks/{PkToolRequestOAuthConnection-bHpDAtzu.js → PkToolRequestOAuthConnection-CTp2w60F.js} +2 -2
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-bHpDAtzu.js.map → PkToolRequestOAuthConnection-CTp2w60F.js.map} +1 -1
  10. package/dist/_chunks/{PkToolShowArtifact-6f-Kx9AS.js → PkToolShowArtifact-CNnt82aH.js} +2 -2
  11. package/dist/_chunks/{PkToolShowArtifact-6f-Kx9AS.js.map → PkToolShowArtifact-CNnt82aH.js.map} +1 -1
  12. package/dist/_chunks/{PkToolShowContactForm-BewhenPx.js → PkToolShowContactForm-D77gyjQG.js} +2 -2
  13. package/dist/_chunks/{PkToolShowContactForm-BewhenPx.js.map → PkToolShowContactForm-D77gyjQG.js.map} +1 -1
  14. package/dist/_chunks/{PkToolShowForm-KuTsIy5P.js → PkToolShowForm-DP4LLAk3.js} +3 -3
  15. package/dist/_chunks/{PkToolShowForm-KuTsIy5P.js.map → PkToolShowForm-DP4LLAk3.js.map} +1 -1
  16. package/dist/_chunks/{PkToolShowSources-CY_q7ANb.js → PkToolShowSources-Bwy0Ptmi.js} +2 -2
  17. package/dist/_chunks/{PkToolShowSources-CY_q7ANb.js.map → PkToolShowSources-Bwy0Ptmi.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowSuggestedReply-D98Atidw.js → PkToolShowSuggestedReply-CFO8wV1b.js} +2 -2
  19. package/dist/_chunks/{PkToolShowSuggestedReply-D98Atidw.js.map → PkToolShowSuggestedReply-CFO8wV1b.js.map} +1 -1
  20. package/dist/_chunks/markdown-BRD-hDrH.js.map +1 -1
  21. package/dist/ai-elements.es.js +1023 -949
  22. package/dist/ai-elements.es.js.map +1 -1
  23. package/dist-vue/PkChatbot.js +1 -1
  24. package/dist-vue/PkChatbotEmptyState.js +1 -1
  25. package/dist-vue/PkChatbotError.js +1 -1
  26. package/dist-vue/PkChatbotInput.js +1 -1
  27. package/dist-vue/PkChatbotMessages.js +1 -1
  28. package/dist-vue/PkChatbotStepPayload.js +1 -1
  29. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  30. package/dist-vue/PkChatbotSteps.js +1 -1
  31. package/dist-vue/PkChatbotViewChat.js +1 -1
  32. package/dist-vue/PkChatbotViewConversations.js +1 -1
  33. package/dist-vue/PkChatbotViewFiles.js +1 -1
  34. package/dist-vue/PkChatbotViewProfile.js +1 -1
  35. package/dist-vue/_chunks/{Agent-De2gFNjR.js → Agent-BNlmK-uJ.js} +96 -87
  36. package/dist-vue/_chunks/Agent-BNlmK-uJ.js.map +1 -0
  37. package/dist-vue/_chunks/{Document-9SUVPzht.js → Document-B6RpxFr9.js} +70 -70
  38. package/dist-vue/_chunks/Document-B6RpxFr9.js.map +1 -0
  39. package/dist-vue/_chunks/{PkChatbot-BBR2t9R9.js → PkChatbot-CI9ucJ2M.js} +8 -8
  40. package/dist-vue/_chunks/{PkChatbot-BBR2t9R9.js.map → PkChatbot-CI9ucJ2M.js.map} +1 -1
  41. package/dist-vue/_chunks/{PkChatbotEmptyState-BtzBYOHJ.js → PkChatbotEmptyState-CacY4o02.js} +2 -2
  42. package/dist-vue/_chunks/{PkChatbotEmptyState-BtzBYOHJ.js.map → PkChatbotEmptyState-CacY4o02.js.map} +1 -1
  43. package/dist-vue/_chunks/PkChatbotError-CuX9C_b9.js +89 -0
  44. package/dist-vue/_chunks/PkChatbotError-CuX9C_b9.js.map +1 -0
  45. package/dist-vue/_chunks/{PkChatbotInput-MSpF6SB6.js → PkChatbotInput-Dkz3SNAk.js} +2 -2
  46. package/dist-vue/_chunks/{PkChatbotInput-MSpF6SB6.js.map → PkChatbotInput-Dkz3SNAk.js.map} +1 -1
  47. package/dist-vue/_chunks/{PkChatbotMessages-9NluDSgJ.js → PkChatbotMessages-BsT48S-h.js} +181 -181
  48. package/dist-vue/_chunks/{PkChatbotMessages-9NluDSgJ.js.map → PkChatbotMessages-BsT48S-h.js.map} +1 -1
  49. package/dist-vue/_chunks/{PkChatbotStepPayload-XW4gT9AZ.js → PkChatbotStepPayload-DU0W-eUp.js} +2 -2
  50. package/dist-vue/_chunks/{PkChatbotStepPayload-XW4gT9AZ.js.map → PkChatbotStepPayload-DU0W-eUp.js.map} +1 -1
  51. package/dist-vue/_chunks/{PkChatbotStepToolDetail-C4-K6Glw.js → PkChatbotStepToolDetail-etlBryOg.js} +3 -3
  52. package/dist-vue/_chunks/{PkChatbotStepToolDetail-C4-K6Glw.js.map → PkChatbotStepToolDetail-etlBryOg.js.map} +1 -1
  53. package/dist-vue/_chunks/{PkChatbotSteps-CrqjWpv0.js → PkChatbotSteps-jW07Q-4x.js} +5 -5
  54. package/dist-vue/_chunks/{PkChatbotSteps-CrqjWpv0.js.map → PkChatbotSteps-jW07Q-4x.js.map} +1 -1
  55. package/dist-vue/_chunks/{PkChatbotViewChat-C0fxsO-G.js → PkChatbotViewChat-jEBBPmSo.js} +7 -7
  56. package/dist-vue/_chunks/{PkChatbotViewChat-C0fxsO-G.js.map → PkChatbotViewChat-jEBBPmSo.js.map} +1 -1
  57. package/dist-vue/_chunks/{PkChatbotViewConversations-DRKaeLbv.js → PkChatbotViewConversations-CWSrP36z.js} +2 -2
  58. package/dist-vue/_chunks/{PkChatbotViewConversations-DRKaeLbv.js.map → PkChatbotViewConversations-CWSrP36z.js.map} +1 -1
  59. package/dist-vue/_chunks/{PkChatbotViewFiles-DPpZHHvK.js → PkChatbotViewFiles-DzLp1WfU.js} +3 -3
  60. package/dist-vue/_chunks/{PkChatbotViewFiles-DPpZHHvK.js.map → PkChatbotViewFiles-DzLp1WfU.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkChatbotViewProfile-D2XZ8Czi.js → PkChatbotViewProfile-CHbn3W6F.js} +2 -2
  62. package/dist-vue/_chunks/{PkChatbotViewProfile-D2XZ8Czi.js.map → PkChatbotViewProfile-CHbn3W6F.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkStreamingMarkdown-D0IOaETI.js → PkStreamingMarkdown-BoEpwaYQ.js} +2 -2
  64. package/dist-vue/_chunks/{PkStreamingMarkdown-D0IOaETI.js.map → PkStreamingMarkdown-BoEpwaYQ.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkToolRequestGeolocation-Q3N3jlO8.js → PkToolRequestGeolocation-9vfYNaQo.js} +2 -2
  66. package/dist-vue/_chunks/{PkToolRequestGeolocation-Q3N3jlO8.js.map → PkToolRequestGeolocation-9vfYNaQo.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-lYoTJIF_.js → PkToolRequestOAuthConnection-BorR5NmZ.js} +2 -2
  68. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-lYoTJIF_.js.map → PkToolRequestOAuthConnection-BorR5NmZ.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkToolShowArtifact-DHdJuzDi.js → PkToolShowArtifact-BnwU7CV2.js} +2 -2
  70. package/dist-vue/_chunks/{PkToolShowArtifact-DHdJuzDi.js.map → PkToolShowArtifact-BnwU7CV2.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkToolShowContactForm-CotIwNhi.js → PkToolShowContactForm-_x_dbiHn.js} +2 -2
  72. package/dist-vue/_chunks/{PkToolShowContactForm-CotIwNhi.js.map → PkToolShowContactForm-_x_dbiHn.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkToolShowDiagram-CVHYhfwH.js → PkToolShowDiagram-CjJcLvWs.js} +2 -2
  74. package/dist-vue/_chunks/{PkToolShowDiagram-CVHYhfwH.js.map → PkToolShowDiagram-CjJcLvWs.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkToolShowEmail-DF__nKpR.js → PkToolShowEmail-CRQjoJr1.js} +2 -2
  76. package/dist-vue/_chunks/{PkToolShowEmail-DF__nKpR.js.map → PkToolShowEmail-CRQjoJr1.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkToolShowForm-Dx10jOXm.js → PkToolShowForm-IPAkJIXh.js} +4 -4
  78. package/dist-vue/_chunks/{PkToolShowForm-Dx10jOXm.js.map → PkToolShowForm-IPAkJIXh.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkToolShowMessage-Ck6VP-gw.js → PkToolShowMessage-joTzAg9N.js} +2 -2
  80. package/dist-vue/_chunks/{PkToolShowMessage-Ck6VP-gw.js.map → PkToolShowMessage-joTzAg9N.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolShowProductList-zfM8cx-l.js → PkToolShowProductList-tOYjd2bq.js} +2 -2
  82. package/dist-vue/_chunks/{PkToolShowProductList-zfM8cx-l.js.map → PkToolShowProductList-tOYjd2bq.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolShowSources-Qq3c8_ZQ.js → PkToolShowSources-Cc26LzRd.js} +4 -4
  84. package/dist-vue/_chunks/{PkToolShowSources-Qq3c8_ZQ.js.map → PkToolShowSources-Cc26LzRd.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DWLkUh2L.js → PkToolShowSuggestedReply-DA4NEjHB.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DWLkUh2L.js.map → PkToolShowSuggestedReply-DA4NEjHB.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowWebPages-CosBYLrE.js → PkToolShowWebPages-D3Xy4iUs.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolShowWebPages-CosBYLrE.js.map → PkToolShowWebPages-D3Xy4iUs.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkUrl-B5CNTQj9.js → PkUrl-BgMBemSz.js} +2 -2
  90. package/dist-vue/_chunks/{PkUrl-B5CNTQj9.js.map → PkUrl-BgMBemSz.js.map} +1 -1
  91. package/dist-vue/_chunks/StreamError-D1AtGgS3.js +22 -0
  92. package/dist-vue/_chunks/StreamError-D1AtGgS3.js.map +1 -0
  93. package/dist-vue/_chunks/{createChatbotApiClient-MkaPbGWB.js → createChatbotApiClient-CaVLm5W9.js} +162 -126
  94. package/dist-vue/_chunks/createChatbotApiClient-CaVLm5W9.js.map +1 -0
  95. package/dist-vue/_chunks/{useChatbotStore-BowmAdfD.js → useChatbotStore-CMS2zFht.js} +861 -889
  96. package/dist-vue/_chunks/useChatbotStore-CMS2zFht.js.map +1 -0
  97. package/dist-vue/_chunks/{utils-C1666_6C.js → utils-h4C7rRcu.js} +3 -3
  98. package/dist-vue/_chunks/{utils-C1666_6C.js.map → utils-h4C7rRcu.js.map} +1 -1
  99. package/dist-vue/api.js +1 -1
  100. package/dist-vue/composables.js +3 -3
  101. package/dist-vue/index.js +3546 -3426
  102. package/dist-vue/index.js.map +1 -1
  103. package/dist-vue/locales.js +42 -0
  104. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -3
  105. package/dist-vue/packages/components/src/chat/PkMessageParts.d.ts +6 -6
  106. package/dist-vue/packages/components/src/chat/PkToolSelection.d.ts +8 -0
  107. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +139 -1
  108. package/dist-vue/packages/models/src/schema/Agent.d.ts +38 -0
  109. package/dist-vue/packages/models/src/schema/Chat.d.ts +120 -0
  110. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +7 -1
  111. package/dist-vue/packages/models/src/schema/StreamError.d.ts +13 -0
  112. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +7 -1
  113. package/dist-vue/packages/models/src/schema/constants.d.ts +10 -1
  114. package/dist-vue/packages/models/src/utils.d.ts +17 -0
  115. package/dist-vue/style.css +1 -1
  116. package/package.json +2 -2
  117. package/dist/_chunks/Agent-tE7ZJPxG.js.map +0 -1
  118. package/dist/_chunks/PkStreamingMarkdown-CNI8aV8t.js.map +0 -1
  119. package/dist-vue/_chunks/Agent-De2gFNjR.js.map +0 -1
  120. package/dist-vue/_chunks/Document-9SUVPzht.js.map +0 -1
  121. package/dist-vue/_chunks/PkChatbotError-gvDpRcEz.js +0 -106
  122. package/dist-vue/_chunks/PkChatbotError-gvDpRcEz.js.map +0 -1
  123. package/dist-vue/_chunks/createChatbotApiClient-MkaPbGWB.js.map +0 -1
  124. package/dist-vue/_chunks/useChatbotStore-BowmAdfD.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbot-BBR2t9R9.js";
1
+ import { t as e } from "./_chunks/PkChatbot-CI9ucJ2M.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotEmptyState-BtzBYOHJ.js";
1
+ import { t as e } from "./_chunks/PkChatbotEmptyState-CacY4o02.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotError-gvDpRcEz.js";
1
+ import { t as e } from "./_chunks/PkChatbotError-CuX9C_b9.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotInput-MSpF6SB6.js";
1
+ import { t as e } from "./_chunks/PkChatbotInput-Dkz3SNAk.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotMessages-9NluDSgJ.js";
1
+ import { t as e } from "./_chunks/PkChatbotMessages-BsT48S-h.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotStepPayload-XW4gT9AZ.js";
1
+ import { t as e } from "./_chunks/PkChatbotStepPayload-DU0W-eUp.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotStepToolDetail-C4-K6Glw.js";
1
+ import { t as e } from "./_chunks/PkChatbotStepToolDetail-etlBryOg.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotSteps-CrqjWpv0.js";
1
+ import { t as e } from "./_chunks/PkChatbotSteps-jW07Q-4x.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotViewChat-C0fxsO-G.js";
1
+ import { t as e } from "./_chunks/PkChatbotViewChat-jEBBPmSo.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotViewConversations-DRKaeLbv.js";
1
+ import { t as e } from "./_chunks/PkChatbotViewConversations-CWSrP36z.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotViewFiles-DPpZHHvK.js";
1
+ import { t as e } from "./_chunks/PkChatbotViewFiles-DzLp1WfU.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/PkChatbotViewProfile-D2XZ8Czi.js";
1
+ import { t as e } from "./_chunks/PkChatbotViewProfile-CHbn3W6F.js";
2
2
  export { e as default };
@@ -29,6 +29,12 @@ var ae = (e) => [`${e}`, `-${e}`], oe = (e) => e.flatMap((e) => ae(e)), _ = {
29
29
  let t = oe(e);
30
30
  return { sort: l(t).optional().default(t[0]) };
31
31
  }
32
+ }, se = (e) => e.replace(/^[a-zA-Z_]+:/, ""), ce = (e, t) => {
33
+ let n = new Set(t), r = se(e);
34
+ if (r !== e && n.has(r)) return r;
35
+ if (n.has(e)) return e;
36
+ let i = [...n].filter((e) => e.endsWith(`-${r}`));
37
+ return i.length === 1 ? i[0] : void 0;
32
38
  }, v = n({
33
39
  dateTime: i().optional(),
34
40
  timezone: i().optional(),
@@ -89,10 +95,10 @@ var ae = (e) => [`${e}`, `-${e}`], oe = (e) => e.flatMap((e) => ae(e)), _ = {
89
95
  "auto",
90
96
  "detailed",
91
97
  "concise"
92
- ], se = n({
98
+ ], le = n({
93
99
  reasoningEffort: l(C).optional(),
94
100
  reasoningSummary: l(E).optional()
95
- }), ce = n({
101
+ }), ue = n({
96
102
  type: l([
97
103
  "adaptive",
98
104
  "enabled",
@@ -101,11 +107,11 @@ var ae = (e) => [`${e}`, `-${e}`], oe = (e) => e.flatMap((e) => ae(e)), _ = {
101
107
  effort: l(w).optional(),
102
108
  display: l(["summarized", "omitted"]).optional(),
103
109
  budgetTokens: o().int().positive().optional()
104
- }), le = n({
110
+ }), de = n({
105
111
  thinkingLevel: l(T).optional(),
106
112
  thinkingBudget: o().int().optional(),
107
113
  includeThoughts: u().optional()
108
- }), ue = n({ type: l(["enabled", "disabled"]).optional() }), D = [
114
+ }), fe = n({ type: l(["enabled", "disabled"]).optional() }), D = [
109
115
  "alibaba",
110
116
  "meta",
111
117
  "moonshotai",
@@ -113,7 +119,7 @@ var ae = (e) => [`${e}`, `-${e}`], oe = (e) => e.flatMap((e) => ae(e)), _ = {
113
119
  "xiaomi",
114
120
  "zai"
115
121
  ];
116
- function de(e) {
122
+ function pe(e) {
117
123
  return D.includes(e);
118
124
  }
119
125
  var O = [
@@ -127,11 +133,11 @@ var O = [
127
133
  function A(e, t) {
128
134
  return e && t.includes(e) ? e : void 0;
129
135
  }
130
- var fe = n({
131
- openai: se.optional(),
132
- anthropic: ce.optional(),
133
- google: le.optional(),
134
- deepseek: ue.optional(),
136
+ var me = n({
137
+ openai: le.optional(),
138
+ anthropic: ue.optional(),
139
+ google: de.optional(),
140
+ deepseek: fe.optional(),
135
141
  alibaba: k.optional(),
136
142
  meta: k.optional(),
137
143
  moonshotai: k.optional(),
@@ -139,7 +145,7 @@ var fe = n({
139
145
  xiaomi: k.optional(),
140
146
  zai: k.optional()
141
147
  });
142
- function pe(e) {
148
+ function he(e) {
143
149
  if (!e || typeof e != "object") return e;
144
150
  let t = e, n = [
145
151
  "openai",
@@ -173,7 +179,7 @@ function pe(e) {
173
179
  }
174
180
  return e;
175
181
  }
176
- var j = h(t(), fe, pe).optional(), me = {
182
+ var j = h(t(), me, he).optional(), ge = {
177
183
  openai: { reasoningEffort: "low" },
178
184
  anthropic: {
179
185
  type: "adaptive",
@@ -187,23 +193,23 @@ var j = h(t(), fe, pe).optional(), me = {
187
193
  xiaomi: { reasoningEffort: "low" },
188
194
  zai: { reasoningEffort: "low" }
189
195
  };
190
- function he(e) {
196
+ function _e(e) {
191
197
  return !!e && typeof e == "object" && Object.values(e).some((e) => e !== void 0);
192
198
  }
193
- function ge(e, t) {
199
+ function ve(e, t) {
194
200
  let n = t?.[e];
195
- return he(n) ? n : me[e];
201
+ return _e(n) ? n : ge[e];
196
202
  }
197
203
  var M = /* @__PURE__ */ function(e) {
198
204
  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;
199
- }({});
200
- function _e(e) {
205
+ }({}), ye = "enableTools";
206
+ function be(e) {
201
207
  return !N(e) && e !== M.RequestGeolocation;
202
208
  }
203
209
  function N(e) {
204
210
  return e === M.RequestConfirm || e === M.ShowArtifact || e === M.ShowCalendarEvent || e === M.ShowComparison || e === M.ShowContactForm || e === M.ShowDiagram || e === M.ShowEmail || e === M.ShowImageGallery || e === M.ShowLocation || e === M.ShowMessage || e === M.ShowForm || e === M.ShowMultipleChoice || e === M.ShowProductList || e === M.ShowQrCode || e === M.ShowSources || e === M.ShowSuggestedReply || e === M.ShowVideo || e === M.ShowWeather || e === M.ShowWebPages;
205
211
  }
206
- var ve = /* @__PURE__ */ new Set([
212
+ var xe = /* @__PURE__ */ new Set([
207
213
  M.RequestConfirm,
208
214
  M.ShowArtifact,
209
215
  M.ShowWeather,
@@ -220,33 +226,33 @@ var ve = /* @__PURE__ */ new Set([
220
226
  M.ShowMessage,
221
227
  M.ShowForm
222
228
  ]);
223
- function ye(e) {
224
- return ve.has(e);
229
+ function Se(e) {
230
+ return xe.has(e);
225
231
  }
226
- var be = /* @__PURE__ */ new Set([
232
+ var Ce = /* @__PURE__ */ new Set([
227
233
  M.RequestConfirm,
228
234
  M.RequestGeolocation,
229
235
  M.ShowForm,
230
236
  M.ShowMultipleChoice,
231
237
  "requestOAuthConnection"
232
238
  ]);
233
- function xe(e) {
234
- return be.has(e);
239
+ function we(e) {
240
+ return Ce.has(e);
235
241
  }
236
- var Se = /* @__PURE__ */ function(e) {
242
+ var Te = /* @__PURE__ */ function(e) {
237
243
  return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
238
244
  }({});
239
245
  M.RequestConfirm, M.RequestGeolocation, M.ShowArtifact, M.ShowCalendarEvent, M.ShowContactForm, M.ShowComparison, M.ShowDiagram, M.ShowEmail, M.ShowForm, M.ShowImageGallery, M.ShowLocation, M.ShowMessage, M.ShowMultipleChoice, M.ShowProductList, M.ShowQrCode, M.ShowSources, M.ShowSuggestedReply, M.ShowVideo, M.ShowWeather, M.ShowWebPages;
240
- var Ce = "Shown on the caller's screen";
241
- function we(e) {
242
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Ce));
246
+ var Ee = "Shown on the caller's screen";
247
+ function De(e) {
248
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Ee));
243
249
  }
244
250
  var P = n({
245
251
  maxSteps: o().int().min(1).max(10).optional().default(5),
246
252
  maxOptionsPerStep: o().int().min(2).max(10).optional().default(5)
247
253
  }), F = /* @__PURE__ */ function(e) {
248
254
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
249
- }({}), Te = n({
255
+ }({}), Oe = n({
250
256
  maxResults: o().int().min(1).max(20).optional(),
251
257
  maxTokens: o().int().positive().max(1e6).optional(),
252
258
  maxTokensPerPage: o().int().positive().optional(),
@@ -259,7 +265,7 @@ var P = n({
259
265
  "month",
260
266
  "year"
261
267
  ]).optional()
262
- }), Ee = n({
268
+ }), ke = n({
263
269
  mode: l(["one-shot", "agentic"]).optional(),
264
270
  maxResults: o().int().min(1).max(20).optional(),
265
271
  sourcePolicy: n({
@@ -272,7 +278,7 @@ var P = n({
272
278
  maxCharsTotal: o().int().positive().optional()
273
279
  }).optional(),
274
280
  fetchPolicy: n({ maxAgeSeconds: o().int().positive().optional() }).optional()
275
- }), De = n({
281
+ }), Ae = n({
276
282
  openai: n({}).optional(),
277
283
  anthropic: n({
278
284
  maxUses: o().int().positive().optional(),
@@ -290,10 +296,10 @@ var P = n({
290
296
  }), I = n({
291
297
  enabled: u().default(!1),
292
298
  provider: l(F).optional().default(F.Native),
293
- perplexity: Te.optional(),
294
- parallel: Ee.optional(),
295
- native: De.optional()
296
- }), L = n({ useAllUserKb: u().default(!1) }), R = n({ useAllUserFiles: u().default(!1) }), z = n({ tools: r(i()).default([]) }), B = n({
299
+ perplexity: Oe.optional(),
300
+ parallel: ke.optional(),
301
+ native: Ae.optional()
302
+ }), je = n({ useAllUserKb: u().default(!1) }), L = n({ useAllUserFiles: u().default(!1) }), R = n({ tools: r(i()).default([]) }), z = n({
297
303
  disabled: r(l(M)).default([
298
304
  M.UserMemory,
299
305
  M.SearchInUserFiles,
@@ -302,10 +308,10 @@ var P = n({
302
308
  ]),
303
309
  showForm: P.optional().default(() => P.parse({})),
304
310
  webSearch: I.optional().default(() => I.parse({})),
305
- userMemory: L.optional().default(() => L.parse({})),
306
- userFiles: R.optional().default(() => R.parse({})),
307
- approval: z.optional().default(() => z.parse({}))
308
- }), V = n({
311
+ userMemory: je.optional().default(() => je.parse({})),
312
+ userFiles: L.optional().default(() => L.parse({})),
313
+ approval: R.optional().default(() => R.parse({}))
314
+ }), B = n({
309
315
  freshness: n({
310
316
  enabled: u().default(!1),
311
317
  scale: o().int().min(86400).max(31536e3).default(7776e3),
@@ -317,7 +323,7 @@ var P = n({
317
323
  diversity: o().min(0).max(1).default(.3),
318
324
  candidatesLimit: o().int().min(20).max(100).default(50)
319
325
  }).prefault({})
320
- }).prefault({}), Oe = n({
326
+ }).prefault({}), Me = n({
321
327
  prompt: i().optional(),
322
328
  temperature: o().min(0).max(2).optional().default(.6),
323
329
  maxOutputTokens: o().positive().optional(),
@@ -327,12 +333,12 @@ var P = n({
327
333
  limit: o().positive().max(100).optional().default(10),
328
334
  maxStepCount: o().int().min(1).max(40).optional().default(10),
329
335
  reasoning: j,
330
- ranking: V.optional().default(() => V.parse({}))
331
- }), H = h(t(), p(i(), i()), (e) => typeof e == "string" ? { it: e } : e), U = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", W = /* @__PURE__ */ function(e) {
336
+ ranking: B.optional().default(() => B.parse({}))
337
+ }), V = h(t(), p(i(), i()), (e) => typeof e == "string" ? { it: e } : e), H = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", U = /* @__PURE__ */ function(e) {
332
338
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
333
- }({}), G = /* @__PURE__ */ function(e) {
339
+ }({}), W = /* @__PURE__ */ function(e) {
334
340
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
335
- }({}), K = Object.values(G), q = n({
341
+ }({}), G = Object.values(W), K = n({
336
342
  media: ne.optional(),
337
343
  logo: i().optional(),
338
344
  theme: l([
@@ -347,23 +353,23 @@ var P = n({
347
353
  "black"
348
354
  ]).optional().default("auto"),
349
355
  useColorsForAgentHeader: u().optional().default(!1),
350
- initialMessage: H.optional(),
351
- greeting: r(H).min(1).max(10).optional(),
352
- messagePlaceholder: H.optional(),
353
- dismissableNotice: H.optional(),
354
- footerMessage: H.optional(),
355
- privacyPolicyNotice: H.optional(),
356
+ initialMessage: V.optional(),
357
+ greeting: r(V).min(1).max(10).optional(),
358
+ messagePlaceholder: V.optional(),
359
+ dismissableNotice: V.optional(),
360
+ footerMessage: V.optional(),
361
+ privacyPolicyNotice: V.optional(),
356
362
  interactiveLogin: u().optional().default(!0),
357
363
  welcomePopup: u().optional().default(!1),
358
364
  floatingButtonPosition: l(["left", "right"]).optional().default("right"),
359
365
  maxMessageLength: o().int().positive().optional(),
360
- widgetUrl: e().default(U),
366
+ widgetUrl: e().default(H),
361
367
  loadDelay: o().int().min(0).max(3e4).optional().default(0),
362
- loaderStrategy: l(W).optional().default(W.InlineModule),
368
+ loaderStrategy: l(U).optional().default(U.InlineModule),
363
369
  customCss: i().optional(),
364
370
  smoothStream: u().optional().default(!1),
365
371
  showExtendedSteps: u().optional().default(!1)
366
- }), J = n({
372
+ }), q = n({
367
373
  enabled: u().default(!1),
368
374
  maxFileSizeBytes: o().int().positive().max(104857600).optional().default(20971520),
369
375
  allowedMimeTypes: r(i().regex(re)).optional().default([
@@ -378,11 +384,13 @@ var P = n({
378
384
  ]),
379
385
  maxFilesPerMessage: o().int().positive().max(10).optional().default(5),
380
386
  maxFilesPerChat: o().int().positive().max(50).optional().default(20)
381
- }), Y = n({
387
+ }), J = n({
382
388
  zeroDataRetention: u().default(!0),
383
389
  disallowPromptTraining: u().default(!0),
384
390
  providerTimeoutMs: o().int().min(1e3).max(789e3).optional()
385
- }), X = n({ enabled: u().default(!1) }), Z = n({
391
+ }), Y = n({ enabled: u().default(!1) }), X = /* @__PURE__ */ function(e) {
392
+ return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
393
+ }({}), Z = n({ mode: l(X).default(X.Off) }), Q = n({
386
394
  enabled: u().default(!1),
387
395
  voiceId: i().optional(),
388
396
  language: i().min(2).max(5).default("it"),
@@ -401,37 +409,38 @@ var P = n({
401
409
  providerAgentId: i().optional(),
402
410
  providerSecretId: i().optional(),
403
411
  providerApiKeyId: i().optional()
404
- }), ke = n({ enabled: u() });
412
+ }), Ne = n({ enabled: u() });
405
413
  n({
406
414
  chatId: i().min(1).optional(),
407
415
  deviceContext: v.optional(),
408
416
  externalContext: p(i(), t()).optional()
409
417
  });
410
- var Ae = n({
418
+ var Pe = n({
411
419
  sessionId: i(),
412
420
  signedUrl: i(),
413
421
  providerAgentId: i(),
414
422
  chatId: i(),
415
423
  maxSessionSeconds: o().int()
416
- }), je = n({
424
+ }), Fe = n({
417
425
  voiceId: i(),
418
426
  name: i(),
419
427
  category: i().optional(),
420
428
  previewUrl: i().optional(),
421
429
  labels: p(i(), i()).optional()
422
430
  });
423
- r(je);
424
- var Q = n({
425
- model: Oe,
426
- interface: q,
427
- tools: B.optional().default(() => B.parse({})),
428
- fileUpload: J.optional().default(() => J.parse({})),
429
- gatewayOptions: Y.optional().default(() => Y.parse({})),
430
- channels: r(l(G)).optional().default(() => [...K]),
431
+ r(Fe);
432
+ var Ie = n({
433
+ model: Me,
434
+ interface: K,
435
+ tools: z.optional().default(() => z.parse({})),
436
+ fileUpload: q.optional().default(() => q.parse({})),
437
+ gatewayOptions: J.optional().default(() => J.parse({})),
438
+ channels: r(l(W)).optional().default(() => [...G]),
431
439
  externalContextSchema: ie.optional(),
432
- openaiApi: X.optional().default(() => X.parse({})),
433
- voice: Z.optional().default(() => Z.parse({}))
434
- }), $ = n({
440
+ openaiApi: Y.optional().default(() => Y.parse({})),
441
+ voice: Q.optional().default(() => Q.parse({})),
442
+ toolWorkingSet: Z.optional().default(() => Z.parse({}))
443
+ }), Le = n({
435
444
  rateLimits: n({
436
445
  minuteRateLimit: o().int().min(0).optional(),
437
446
  hourRateLimit: o().int().min(0).optional(),
@@ -448,8 +457,8 @@ n({
448
457
  fallbackModels: r(i()).default([]),
449
458
  status: l(y).default(y.Draft),
450
459
  visibility: l(b).default(b.Organization),
451
- settings: Q,
452
- security: $.nullish(),
460
+ settings: Ie,
461
+ security: Le.nullish(),
453
462
  type: l(x).default(x.Chat),
454
463
  organizationId: i()
455
464
  }), a(() => n({
@@ -460,8 +469,8 @@ n({
460
469
  fallbackModels: r(i()).nullable().default([]),
461
470
  status: l(y).default(y.Draft),
462
471
  visibility: l(b).default(b.Organization),
463
- settings: Q,
464
- security: $.nullable(),
472
+ settings: Ie,
473
+ security: Le.nullable(),
465
474
  type: l(x).default(x.Chat),
466
475
  organizationId: i(),
467
476
  createdAt: m(),
@@ -474,45 +483,45 @@ n({
474
483
  outOfBudget: u().optional().default(!1),
475
484
  outOfBudgetReason: i().optional().default("")
476
485
  }));
477
- var Me = n({
486
+ var Re = n({
478
487
  id: i(),
479
488
  name: i(),
480
489
  status: l(y),
481
490
  visibility: l(b),
482
491
  organizationId: i(),
483
- interface: q,
492
+ interface: K,
484
493
  createdAt: m(),
485
494
  updatedAt: m(),
486
495
  capabilities: n({
487
- fileUpload: J,
488
- voice: ke
496
+ fileUpload: q,
497
+ voice: Ne
489
498
  }),
490
- channels: r(l(G)).default(() => [...K])
491
- }), Ne = q.pick({
499
+ channels: r(l(W)).default(() => [...G])
500
+ }), ze = K.pick({
492
501
  logo: !0,
493
502
  mainColor: !0,
494
503
  textColor: !0,
495
504
  theme: !0,
496
505
  floatingButtonPosition: !0,
497
506
  customCss: !0
498
- }), Pe = Me.pick({
507
+ }), Be = Re.pick({
499
508
  id: !0,
500
509
  name: !0,
501
510
  organizationId: !0
502
- }).extend({ interface: Ne }), Fe = n({
511
+ }).extend({ interface: ze }), Ve = n({
503
512
  emailPassword: u(),
504
513
  google: u(),
505
514
  microsoft: u()
506
- }), Ie = n({
515
+ }), He = n({
507
516
  requiresAuth: d(!1),
508
- agent: Me,
517
+ agent: Re,
509
518
  branding: s()
510
- }), Le = n({
519
+ }), $ = n({
511
520
  requiresAuth: d(!0),
512
521
  agent: s(),
513
- branding: Pe
522
+ branding: Be
514
523
  });
515
- c("requiresAuth", [Ie, Le]), c("requiresAuth", [Ie.extend({ authMethods: Fe }), Le.extend({ authMethods: Fe })]), n({
524
+ c("requiresAuth", [He, $]), c("requiresAuth", [He.extend({ authMethods: Ve }), $.extend({ authMethods: Ve })]), n({
516
525
  id: f(),
517
526
  agentIds: r(f())
518
527
  }), n({
@@ -533,6 +542,6 @@ c("requiresAuth", [Ie, Le]), c("requiresAuth", [Ie.extend({ authMethods: Fe }),
533
542
  ..._.ids()
534
543
  });
535
544
  //#endregion
536
- export { _ as A, de as C, we as D, xe as E, v as O, ge as S, N as T, C as _, Y as a, F as b, j as c, x as d, I as f, T as g, O as h, J as i, h as k, S as l, U as m, M as n, W as o, Se as p, G as r, V as s, w as t, y as u, E as v, ye as w, _e as x, Ae as y };
545
+ export { v as A, be as C, N as D, Se as E, ce as M, _ as N, we as O, F as S, pe as T, O as _, J as a, E as b, j as c, X as d, x as f, ye as g, H as h, q as i, h as j, De as k, S as l, Te as m, M as n, U as o, I as p, W as r, B as s, w as t, y as u, T as v, ve as w, Pe as x, C as y };
537
546
 
538
- //# sourceMappingURL=Agent-De2gFNjR.js.map
547
+ //# sourceMappingURL=Agent-BNlmK-uJ.js.map