@8wave/ai-elements 0.121.0-beta.46 → 0.121.0-beta.47

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 (129) hide show
  1. package/dist/_chunks/{Agent-BuPgJIt4.js → Agent-jMXkLts9.js} +36 -36
  2. package/dist/_chunks/Agent-jMXkLts9.js.map +1 -0
  3. package/dist/_chunks/{PkStreamingMarkdown-BlTH2AJX.js → PkStreamingMarkdown-C43RVcRW.js} +16 -10
  4. package/dist/_chunks/PkStreamingMarkdown-C43RVcRW.js.map +1 -0
  5. package/dist/_chunks/PkToolEditedFile-BZUXx8ZG.js +51 -0
  6. package/dist/_chunks/PkToolEditedFile-BZUXx8ZG.js.map +1 -0
  7. package/dist/_chunks/{PkToolRequestGeolocation-CxMAoAv6.js → PkToolRequestGeolocation-BJc2Ki0-.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestGeolocation-CxMAoAv6.js.map → PkToolRequestGeolocation-BJc2Ki0-.js.map} +1 -1
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-DU1Y2odZ.js → PkToolRequestOAuthConnection-OU56LTl0.js} +2 -2
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-DU1Y2odZ.js.map → PkToolRequestOAuthConnection-OU56LTl0.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowArtifact-jQeIv65U.js → PkToolShowArtifact-yP7FXi0H.js} +2 -2
  12. package/dist/_chunks/{PkToolShowArtifact-jQeIv65U.js.map → PkToolShowArtifact-yP7FXi0H.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-D7wg3Jlu.js → PkToolShowContactForm-w6aLTe1i.js} +2 -2
  14. package/dist/_chunks/{PkToolShowContactForm-D7wg3Jlu.js.map → PkToolShowContactForm-w6aLTe1i.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowForm-BMVgXxzl.js → PkToolShowForm-ChhVlxqc.js} +3 -3
  16. package/dist/_chunks/{PkToolShowForm-BMVgXxzl.js.map → PkToolShowForm-ChhVlxqc.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowImageGallery-Ba0CfKt6.js → PkToolShowImageGallery-D88a9a0P.js} +2 -2
  18. package/dist/_chunks/{PkToolShowImageGallery-Ba0CfKt6.js.map → PkToolShowImageGallery-D88a9a0P.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowProductList-DbZfUUWe.js → PkToolShowProductList-Jff9j3eQ.js} +2 -2
  20. package/dist/_chunks/{PkToolShowProductList-DbZfUUWe.js.map → PkToolShowProductList-Jff9j3eQ.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowSources-Dkt4IId2.js → PkToolShowSources-lWRoFGvC.js} +3 -3
  22. package/dist/_chunks/{PkToolShowSources-Dkt4IId2.js.map → PkToolShowSources-lWRoFGvC.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowSuggestedReply-BF2sT3B1.js → PkToolShowSuggestedReply-Ds0Yf31m.js} +2 -2
  24. package/dist/_chunks/{PkToolShowSuggestedReply-BF2sT3B1.js.map → PkToolShowSuggestedReply-Ds0Yf31m.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowVideo-l8JoSKCj.js → PkToolShowVideo-fNFvCi1_.js} +2 -2
  26. package/dist/_chunks/{PkToolShowVideo-l8JoSKCj.js.map → PkToolShowVideo-fNFvCi1_.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowWebPages-DtcEmrYt.js → PkToolShowWebPages-Bah-YhpM.js} +2 -2
  28. package/dist/_chunks/{PkToolShowWebPages-DtcEmrYt.js.map → PkToolShowWebPages-Bah-YhpM.js.map} +1 -1
  29. package/dist/_chunks/{chatImagePolicy-CQYTWTkP.js → chatImagePolicy-BvKnRHdM.js} +2 -2
  30. package/dist/_chunks/{chatImagePolicy-CQYTWTkP.js.map → chatImagePolicy-BvKnRHdM.js.map} +1 -1
  31. package/dist/_chunks/{markdown-Br9ROCBT.js → markdown-B1y2QQAa.js} +13 -13
  32. package/dist/_chunks/{markdown-Br9ROCBT.js.map → markdown-B1y2QQAa.js.map} +1 -1
  33. package/dist/ai-elements.es.js +160 -144
  34. package/dist/ai-elements.es.js.map +1 -1
  35. package/dist-vue/PkChatbot.js +1 -1
  36. package/dist-vue/PkChatbotEmptyState.js +1 -1
  37. package/dist-vue/PkChatbotInput.js +1 -1
  38. package/dist-vue/PkChatbotMessages.js +1 -1
  39. package/dist-vue/PkChatbotStepPayload.js +1 -1
  40. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  41. package/dist-vue/PkChatbotSteps.js +1 -1
  42. package/dist-vue/PkChatbotViewChat.js +1 -1
  43. package/dist-vue/PkChatbotViewConversations.js +1 -1
  44. package/dist-vue/PkChatbotViewFiles.js +1 -1
  45. package/dist-vue/PkChatbotViewProfile.js +1 -1
  46. package/dist-vue/_chunks/{Agent-DZb775Ak.js → Agent-BYwOk7Tt.js} +102 -102
  47. package/dist-vue/_chunks/Agent-BYwOk7Tt.js.map +1 -0
  48. package/dist-vue/_chunks/{Document-E72l_VU6.js → Document-CQdYPyrv.js} +2 -2
  49. package/dist-vue/_chunks/{Document-E72l_VU6.js.map → Document-CQdYPyrv.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkChatbot-CObEhs2T.js → PkChatbot-DI4aTSTJ.js} +8 -8
  51. package/dist-vue/_chunks/{PkChatbot-CObEhs2T.js.map → PkChatbot-DI4aTSTJ.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkChatbotEmptyState-Dh7ETVnf.js → PkChatbotEmptyState-CaNM6c77.js} +2 -2
  53. package/dist-vue/_chunks/{PkChatbotEmptyState-Dh7ETVnf.js.map → PkChatbotEmptyState-CaNM6c77.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkChatbotInput-CuEoeb_M.js → PkChatbotInput-Bt02PGbZ.js} +2 -2
  55. package/dist-vue/_chunks/{PkChatbotInput-CuEoeb_M.js.map → PkChatbotInput-Bt02PGbZ.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkChatbotMessages-DMSActW1.js → PkChatbotMessages-DIeAiZ7I.js} +25 -24
  57. package/dist-vue/_chunks/PkChatbotMessages-DIeAiZ7I.js.map +1 -0
  58. package/dist-vue/_chunks/{PkChatbotStepPayload-CXdsUMrw.js → PkChatbotStepPayload-D1_JG-M8.js} +2 -2
  59. package/dist-vue/_chunks/{PkChatbotStepPayload-CXdsUMrw.js.map → PkChatbotStepPayload-D1_JG-M8.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbpXR7jh.js → PkChatbotStepToolDetail-DKJ3qg98.js} +3 -3
  61. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbpXR7jh.js.map → PkChatbotStepToolDetail-DKJ3qg98.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotSteps-QFFZ0DjH.js → PkChatbotSteps-DgaJc9Pv.js} +5 -5
  63. package/dist-vue/_chunks/{PkChatbotSteps-QFFZ0DjH.js.map → PkChatbotSteps-DgaJc9Pv.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotViewChat-BZb-U7Ju.js → PkChatbotViewChat-DDf8UaBR.js} +30 -25
  65. package/dist-vue/_chunks/PkChatbotViewChat-DDf8UaBR.js.map +1 -0
  66. package/dist-vue/_chunks/{PkChatbotViewConversations-CCPRWCKs.js → PkChatbotViewConversations-hsboinns.js} +3 -3
  67. package/dist-vue/_chunks/{PkChatbotViewConversations-CCPRWCKs.js.map → PkChatbotViewConversations-hsboinns.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotViewFiles-BgqksCn0.js → PkChatbotViewFiles-DDO_L8UB.js} +9 -9
  69. package/dist-vue/_chunks/PkChatbotViewFiles-DDO_L8UB.js.map +1 -0
  70. package/dist-vue/_chunks/{PkChatbotViewProfile-B6tHWrqn.js → PkChatbotViewProfile-BC7Ok94X.js} +2 -2
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-B6tHWrqn.js.map → PkChatbotViewProfile-BC7Ok94X.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkStreamingMarkdown-DwDs-cGP.js → PkStreamingMarkdown-0jN60Rku.js} +3 -3
  73. package/dist-vue/_chunks/{PkStreamingMarkdown-DwDs-cGP.js.map → PkStreamingMarkdown-0jN60Rku.js.map} +1 -1
  74. package/dist-vue/_chunks/PkToolEditedFile-DsiNIHAR.js +50 -0
  75. package/dist-vue/_chunks/PkToolEditedFile-DsiNIHAR.js.map +1 -0
  76. package/dist-vue/_chunks/{PkToolRequestGeolocation-DC8hSH0j.js → PkToolRequestGeolocation-jkEuN6_1.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolRequestGeolocation-DC8hSH0j.js.map → PkToolRequestGeolocation-jkEuN6_1.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BH_-drvw.js → PkToolRequestOAuthConnection-BTNd8Urz.js} +2 -2
  79. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BH_-drvw.js.map → PkToolRequestOAuthConnection-BTNd8Urz.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkToolShowArtifact-CjVN96wJ.js → PkToolShowArtifact-BitKlzvt.js} +2 -2
  81. package/dist-vue/_chunks/{PkToolShowArtifact-CjVN96wJ.js.map → PkToolShowArtifact-BitKlzvt.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolShowContactForm-CmBLigw8.js → PkToolShowContactForm-DKkapC2s.js} +2 -2
  83. package/dist-vue/_chunks/{PkToolShowContactForm-CmBLigw8.js.map → PkToolShowContactForm-DKkapC2s.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolShowDiagram-dKUU5_6F.js → PkToolShowDiagram-BI-fI2vG.js} +2 -2
  85. package/dist-vue/_chunks/{PkToolShowDiagram-dKUU5_6F.js.map → PkToolShowDiagram-BI-fI2vG.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolShowForm-B6ESvq-5.js → PkToolShowForm-LR8mW4SY.js} +4 -4
  87. package/dist-vue/_chunks/{PkToolShowForm-B6ESvq-5.js.map → PkToolShowForm-LR8mW4SY.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolShowImageGallery-Daq0IwTH.js → PkToolShowImageGallery-DuJ_cbcf.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolShowImageGallery-Daq0IwTH.js.map → PkToolShowImageGallery-DuJ_cbcf.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowProductList-Bc3Gzyxy.js → PkToolShowProductList-D7Tw7_NR.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowProductList-Bc3Gzyxy.js.map → PkToolShowProductList-D7Tw7_NR.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowSources-BDvRbenn.js → PkToolShowSources-DeplEks2.js} +3 -3
  93. package/dist-vue/_chunks/{PkToolShowSources-BDvRbenn.js.map → PkToolShowSources-DeplEks2.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cd6VkzvJ.js → PkToolShowSuggestedReply-Dw-yePEO.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cd6VkzvJ.js.map → PkToolShowSuggestedReply-Dw-yePEO.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowVideo-Bo1gsD97.js → PkToolShowVideo-CAJhU52k.js} +2 -2
  97. package/dist-vue/_chunks/{PkToolShowVideo-Bo1gsD97.js.map → PkToolShowVideo-CAJhU52k.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowWebPages-DI3sZiqh.js → PkToolShowWebPages-Be6dKCsO.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowWebPages-DI3sZiqh.js.map → PkToolShowWebPages-Be6dKCsO.js.map} +1 -1
  100. package/dist-vue/_chunks/{createChatbotApiClient-hcFAulTq.js → createChatbotApiClient-huxzfST2.js} +16 -16
  101. package/dist-vue/_chunks/{createChatbotApiClient-hcFAulTq.js.map → createChatbotApiClient-huxzfST2.js.map} +1 -1
  102. package/dist-vue/_chunks/{useChatbotStore-Ct7G-voO.js → useChatbotStore-8tG3oA_R.js} +20 -20
  103. package/dist-vue/_chunks/{useChatbotStore-Ct7G-voO.js.map → useChatbotStore-8tG3oA_R.js.map} +1 -1
  104. package/dist-vue/_chunks/{utils-EPX3V3VI.js → utils-_H2BDYuj.js} +16 -10
  105. package/dist-vue/_chunks/utils-_H2BDYuj.js.map +1 -0
  106. package/dist-vue/api.js +1 -1
  107. package/dist-vue/composables.js +28 -18
  108. package/dist-vue/composables.js.map +1 -1
  109. package/dist-vue/index.js +5213 -5196
  110. package/dist-vue/index.js.map +1 -1
  111. package/dist-vue/locales.js +10 -0
  112. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +2 -2
  113. package/dist-vue/packages/components/src/chat/{PkToolEditSpreadsheet.d.ts → PkToolEditedFile.d.ts} +4 -3
  114. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +5 -5
  115. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +7 -7
  116. package/dist-vue/packages/composable/src/useFileRow.d.ts +7 -6
  117. package/dist-vue/packages/models/src/schema/Agent.d.ts +42 -0
  118. package/package.json +1 -1
  119. package/dist/_chunks/Agent-BuPgJIt4.js.map +0 -1
  120. package/dist/_chunks/PkStreamingMarkdown-BlTH2AJX.js.map +0 -1
  121. package/dist/_chunks/PkToolEditSpreadsheet-CDxglslA.js +0 -41
  122. package/dist/_chunks/PkToolEditSpreadsheet-CDxglslA.js.map +0 -1
  123. package/dist-vue/_chunks/Agent-DZb775Ak.js.map +0 -1
  124. package/dist-vue/_chunks/PkChatbotMessages-DMSActW1.js.map +0 -1
  125. package/dist-vue/_chunks/PkChatbotViewChat-BZb-U7Ju.js.map +0 -1
  126. package/dist-vue/_chunks/PkChatbotViewFiles-BgqksCn0.js.map +0 -1
  127. package/dist-vue/_chunks/PkToolEditSpreadsheet-B61LtERY.js +0 -40
  128. package/dist-vue/_chunks/PkToolEditSpreadsheet-B61LtERY.js.map +0 -1
  129. package/dist-vue/_chunks/utils-EPX3V3VI.js.map +0 -1
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbot-CObEhs2T.js";
1
+ export { t as default } from "./_chunks/PkChatbot-DI4aTSTJ.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotEmptyState-Dh7ETVnf.js";
1
+ export { t as default } from "./_chunks/PkChatbotEmptyState-CaNM6c77.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotInput-CuEoeb_M.js";
1
+ export { t as default } from "./_chunks/PkChatbotInput-Bt02PGbZ.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotMessages-DMSActW1.js";
1
+ export { t as default } from "./_chunks/PkChatbotMessages-DIeAiZ7I.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotStepPayload-CXdsUMrw.js";
1
+ export { t as default } from "./_chunks/PkChatbotStepPayload-D1_JG-M8.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotStepToolDetail-DbpXR7jh.js";
1
+ export { t as default } from "./_chunks/PkChatbotStepToolDetail-DKJ3qg98.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotSteps-QFFZ0DjH.js";
1
+ export { t as default } from "./_chunks/PkChatbotSteps-DgaJc9Pv.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotViewChat-BZb-U7Ju.js";
1
+ export { t as default } from "./_chunks/PkChatbotViewChat-DDf8UaBR.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotViewConversations-CCPRWCKs.js";
1
+ export { t as default } from "./_chunks/PkChatbotViewConversations-hsboinns.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotViewFiles-BgqksCn0.js";
1
+ export { t as default } from "./_chunks/PkChatbotViewFiles-DDO_L8UB.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotViewProfile-B6tHWrqn.js";
1
+ export { t as default } from "./_chunks/PkChatbotViewProfile-BC7Ok94X.js";
@@ -109,7 +109,7 @@ d({
109
109
  companyName: E(T.shape.companyName)
110
110
  }).nullable())
111
111
  });
112
- var D = O({
112
+ var D = be({
113
113
  colors: {
114
114
  light: {
115
115
  brand: "#140e33",
@@ -138,7 +138,7 @@ var D = O({
138
138
  companyName: null
139
139
  }
140
140
  });
141
- O({
141
+ be({
142
142
  ...D,
143
143
  text: {
144
144
  productName: "Agent Studio",
@@ -170,17 +170,17 @@ function ve(e, t, { rounded: n = !0 } = {}) {
170
170
  return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32"${n ? " rx=\"7\"" : ""} fill="${r}"/><text x="16" y="16" dy="0.35em" text-anchor="middle" font-family="system-ui, sans-serif" font-size="18" font-weight="600" fill="${i}">${a}</text></svg>`;
171
171
  }
172
172
  var ye = (e, t) => `data:image/svg+xml,${encodeURIComponent(ve(e, t))}`;
173
- function O(e) {
173
+ function be(e) {
174
174
  if (e && typeof e == "object") {
175
- for (let t of Object.values(e)) O(t);
175
+ for (let t of Object.values(e)) be(t);
176
176
  Object.freeze(e);
177
177
  }
178
178
  return e;
179
179
  }
180
- function k(e) {
181
- return Array.isArray(e) ? `[${e.map(k).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${k(t)}`).join(",")}}` : JSON.stringify(e);
180
+ function O(e) {
181
+ return Array.isArray(e) ? `[${e.map(O).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${O(t)}`).join(",")}}` : JSON.stringify(e);
182
182
  }
183
- function be(e) {
183
+ function xe(e) {
184
184
  let t = 2166136261, n = 16777619 ^ e.length;
185
185
  for (let r = 0; r < e.length; r++) {
186
186
  let i = e.charCodeAt(r);
@@ -188,22 +188,22 @@ function be(e) {
188
188
  }
189
189
  return t.toString(16).padStart(8, "0") + n.toString(16).padStart(8, "0");
190
190
  }
191
- function xe(e) {
192
- return be(`${Oe(e)}:${k(e)}`);
191
+ function Se(e) {
192
+ return xe(`${ke(e)}:${O(e)}`);
193
193
  }
194
- var Se = "/api/v1/public/branding", Ce = (e) => `${Se}/assets/${e}`, we = (e, t) => `${e.replace(/\/+$/, "")}${Ce(t)}`;
195
- RegExp(`^${Se}(?:\\.css|/manifest\\.webmanifest|/icon/(?:\\d+|maskable)|/assets/[0-9a-f]{64}(?:/icon/\\d+)?)?(?:\\?|$)`);
196
- function Te(e) {
194
+ var Ce = "/api/v1/public/branding", we = (e) => `${Ce}/assets/${e}`, Te = (e, t) => `${e.replace(/\/+$/, "")}${we(t)}`;
195
+ RegExp(`^${Ce}(?:\\.css|/manifest\\.webmanifest|/icon/(?:\\d+|maskable)|/assets/[0-9a-f]{64}(?:/icon/\\d+)?)?(?:\\?|$)`);
196
+ function Ee(e) {
197
197
  return {
198
198
  ...e,
199
- version: xe(e)
199
+ version: Se(e)
200
200
  };
201
201
  }
202
- function Ee(e) {
202
+ function De(e) {
203
203
  return v.safeParse(e).success ? `--color-brand:${e.brand};--color-accent:${e.accent};--color-info:${e.info};` : "";
204
204
  }
205
- function De(e) {
206
- let t = Ee(e.colors.light), n = Ee(e.colors.dark);
205
+ function Oe(e) {
206
+ let t = De(e.colors.light), n = De(e.colors.dark);
207
207
  return [
208
208
  `:where(:root,.theme){${t}${t ? `--color-tint:${e.colors.light.brand};` : ""}}`,
209
209
  `@media (prefers-color-scheme: dark){:where(:root:not(.theme--light),.theme:not(.theme--light)){${n}}}`,
@@ -211,7 +211,7 @@ function De(e) {
211
211
  `:where(.theme.theme--dark){${n}}`
212
212
  ].join("\n");
213
213
  }
214
- var Oe = (e) => be(De(e)), ke = d({
214
+ var ke = (e) => xe(Oe(e)), Ae = d({
215
215
  dateTime: n().optional(),
216
216
  timezone: n().optional(),
217
217
  language: n().optional(),
@@ -241,16 +241,16 @@ var Oe = (e) => be(De(e)), ke = d({
241
241
  geolocationLongitude: i().optional(),
242
242
  geolocationAccuracy: i().optional(),
243
243
  geolocationCity: n().optional()
244
- }), Ae = "host", A = /^[a-z][a-z0-9_]{0,63}$/, je = 2e3, Me = d({
244
+ }), je = "host", k = /^[a-z][a-z0-9_]{0,63}$/, Me = 2e3, Ne = d({
245
245
  title: n().max(80).optional(),
246
246
  readOnlyHint: u().optional(),
247
247
  destructiveHint: u().optional()
248
248
  });
249
249
  d({
250
- name: n().regex(A),
251
- description: n().max(je).optional(),
250
+ name: n().regex(k),
251
+ description: n().max(Me).optional(),
252
252
  inputSchema: p(n(), f()).refine((e) => e.type === "object", { message: "The input schema must describe an object" }),
253
- annotations: Me.optional()
253
+ annotations: Ne.optional()
254
254
  }), d({
255
255
  content: c(d({
256
256
  type: s("text"),
@@ -258,33 +258,33 @@ d({
258
258
  })),
259
259
  isError: u().optional()
260
260
  });
261
- var Ne = d({
261
+ var Pe = d({
262
262
  enabled: u().default(!1),
263
263
  label: n().max(40).default(""),
264
- allowed: c(n().regex(A)).max(32).default([]),
265
- requireConfirmation: c(n().regex(A)).default([]),
264
+ allowed: c(n().regex(k)).max(32).default([]),
265
+ requireConfirmation: c(n().regex(k)).default([]),
266
266
  confirmDestructive: u().default(!0),
267
267
  timeoutMs: i().int().min(5e3).max(12e4).default(3e4),
268
268
  maxCallsPerTurn: i().int().min(1).max(50).default(20)
269
- }), Pe = Ne.pick({
269
+ }), Fe = Pe.pick({
270
270
  label: !0,
271
271
  allowed: !0,
272
272
  requireConfirmation: !0,
273
273
  confirmDestructive: !0,
274
274
  timeoutMs: !0
275
- }).extend({ origins: c(n()) }), Fe = (e) => {
275
+ }).extend({ origins: c(n()) }), Ie = (e) => {
276
276
  if (typeof e != "object" || !e) return !1;
277
277
  let { type: t, toolMetadata: n } = e;
278
278
  return t === "dynamic-tool" && n?.source === "host";
279
- }, Ie = (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.", Le = "The user refused this call. Do not repeat it unless the user asks.", j = /* @__PURE__ */ function(e) {
279
+ }, Le = (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.", Re = "The user refused this call. Do not repeat it unless the user asks.", A = /* @__PURE__ */ function(e) {
280
280
  return e.Off = "off", e.Read = "read", e.Forms = "forms", e.Full = "full", e;
281
- }({}), Re = [
282
- j.Off,
283
- j.Read,
284
- j.Forms,
285
- j.Full
286
- ], ze = (e, t) => Re.indexOf(e ?? j.Off) >= Re.indexOf(t);
287
- function Be(e) {
281
+ }({}), ze = [
282
+ A.Off,
283
+ A.Read,
284
+ A.Forms,
285
+ A.Full
286
+ ], Be = (e, t) => ze.indexOf(e ?? A.Off) >= ze.indexOf(t);
287
+ function Ve(e) {
288
288
  if (!e.trim()) return !1;
289
289
  if (typeof document > "u") return !0;
290
290
  try {
@@ -293,20 +293,20 @@ function Be(e) {
293
293
  return !1;
294
294
  }
295
295
  }
296
- var Ve = d({
297
- level: l(j).default(j.Off),
298
- excludeSelectors: c(n().max(200).refine(Be, "Not a valid CSS selector")).max(50).default([]),
296
+ var He = d({
297
+ level: l(A).default(A.Off),
298
+ excludeSelectors: c(n().max(200).refine(Ve, "Not a valid CSS selector")).max(50).default([]),
299
299
  confirmEveryAction: u().default(!1),
300
300
  notice: p(n(), n().max(500)).optional(),
301
301
  acknowledgedBy: n().optional(),
302
302
  acknowledgedAt: m().optional(),
303
- acknowledgedLevel: l(j).optional()
304
- }), He = (e, t) => !!e?.acknowledgedBy && e?.acknowledgedAt !== void 0 && ze(e.acknowledgedLevel, t), Ue = (e) => e.startsWith("page_") || e.startsWith("form_"), We = Ve.pick({
303
+ acknowledgedLevel: l(A).optional()
304
+ }), Ue = (e, t) => !!e?.acknowledgedBy && e?.acknowledgedAt !== void 0 && Be(e.acknowledgedLevel, t), We = (e) => e.startsWith("page_") || e.startsWith("form_"), Ge = He.pick({
305
305
  level: !0,
306
306
  excludeSelectors: !0,
307
307
  confirmEveryAction: !0,
308
308
  notice: !0
309
- }), Ge = ["fill-fields"];
309
+ }), Ke = ["fill-fields"];
310
310
  d({
311
311
  version: s(1),
312
312
  forms: c(f()).max(16).default([]),
@@ -314,22 +314,22 @@ d({
314
314
  });
315
315
  //#endregion
316
316
  //#region ../../packages/models/src/schema/Agent.ts
317
- var M = /* @__PURE__ */ function(e) {
317
+ var j = /* @__PURE__ */ function(e) {
318
318
  return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
319
- }({}), N = /* @__PURE__ */ function(e) {
319
+ }({}), M = /* @__PURE__ */ function(e) {
320
320
  return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
321
- }({}), Ke = [N.Organization, N.Restricted], P = /* @__PURE__ */ function(e) {
321
+ }({}), qe = [M.Organization, M.Restricted], N = /* @__PURE__ */ function(e) {
322
322
  return e.Chat = "chat", e.Reasoning = "reasoning", e;
323
- }({}), F = /* @__PURE__ */ function(e) {
323
+ }({}), P = /* @__PURE__ */ function(e) {
324
324
  return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
325
- }({}), I = [
325
+ }({}), F = [
326
326
  "none",
327
327
  "low",
328
328
  "medium",
329
329
  "high",
330
330
  "xhigh",
331
331
  "max"
332
- ], qe = [
332
+ ], I = [
333
333
  "low",
334
334
  "medium",
335
335
  "high",
@@ -345,7 +345,7 @@ var M = /* @__PURE__ */ function(e) {
345
345
  "detailed",
346
346
  "concise"
347
347
  ], Je = d({
348
- reasoningEffort: l(I).optional(),
348
+ reasoningEffort: l(F).optional(),
349
349
  reasoningSummary: l(R).optional()
350
350
  }), Ye = d({
351
351
  type: l([
@@ -353,7 +353,7 @@ var M = /* @__PURE__ */ function(e) {
353
353
  "enabled",
354
354
  "disabled"
355
355
  ]).optional(),
356
- effort: l(qe).optional(),
356
+ effort: l(I).optional(),
357
357
  display: l(["summarized", "omitted"]).optional(),
358
358
  budgetTokens: i().int().positive().optional()
359
359
  }), Xe = d({
@@ -406,12 +406,12 @@ function et(e) {
406
406
  if ("effort" in t && !n) {
407
407
  let e = t.effort, n = t.reasoningSummary, r = {};
408
408
  if (e && e !== "off" && e !== "none") {
409
- let t = H(e, I), i = H(n, R);
409
+ let t = H(e, F), i = H(n, R);
410
410
  (t || i) && (r.openai = {
411
411
  ...t && { reasoningEffort: t },
412
412
  ...i && { reasoningSummary: i }
413
413
  });
414
- let a = H(e, qe);
414
+ let a = H(e, I);
415
415
  a && (r.anthropic = {
416
416
  type: "adaptive",
417
417
  effort: a
@@ -450,7 +450,7 @@ function it(e, t) {
450
450
  return rt(n) ? n : nt[e];
451
451
  }
452
452
  var U = /* @__PURE__ */ function(e) {
453
- 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.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;
453
+ 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.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;
454
454
  }({}), at = "mcp-", ot = "api-", st = "subagent-", ct = "enableTools";
455
455
  function lt(e) {
456
456
  return !ut(e) && e !== U.RequestGeolocation;
@@ -616,7 +616,7 @@ var St = [
616
616
  maxOutputTokens: i().positive().optional(),
617
617
  presencePenalty: i().min(-2).max(2).optional(),
618
618
  frequencyPenalty: i().min(-2).max(2).optional(),
619
- searchMode: l(F).optional().default(F.Balanced),
619
+ searchMode: l(P).optional().default(P.Balanced),
620
620
  limit: i().positive().max(100).optional().default(10),
621
621
  maxStepCount: i().int().min(1).max(40).optional().default(10),
622
622
  reasoning: tt,
@@ -685,19 +685,19 @@ var Q = d({
685
685
  "text/plain",
686
686
  "text/markdown",
687
687
  "text/csv"
688
- ], Lt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $ = d({
688
+ ], Lt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Rt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", zt = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(U.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(U.WordDocument), $ = d({
689
689
  enabled: u().default(!1),
690
690
  maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
691
691
  allowedMimeTypes: c(n().regex(re)).optional().default([...It]),
692
692
  maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
693
693
  maxFilesPerChat: i().int().positive().max(50).optional().default(20)
694
- }), Rt = d({
694
+ }), Bt = d({
695
695
  zeroDataRetention: u().default(!0),
696
696
  disallowPromptTraining: u().default(!0),
697
697
  providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
698
- }), zt = d({ enabled: u().default(!1) }), Bt = /* @__PURE__ */ function(e) {
698
+ }), Vt = d({ enabled: u().default(!1) }), Ht = /* @__PURE__ */ function(e) {
699
699
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
700
- }({}), Vt = d({ mode: l(Bt).default(Bt.Off) }), Ht = d({
700
+ }({}), Ut = d({ mode: l(Ht).default(Ht.Off) }), Wt = d({
701
701
  enabled: u().default(!1),
702
702
  voiceId: n().optional(),
703
703
  language: n().min(2).max(5).default("it"),
@@ -716,40 +716,40 @@ var Q = d({
716
716
  providerAgentId: n().optional(),
717
717
  providerSecretId: n().optional(),
718
718
  providerApiKeyId: n().optional()
719
- }), Ut = d({ enabled: u() });
719
+ }), Gt = d({ enabled: u() });
720
720
  d({
721
721
  chatId: n().min(1).optional(),
722
- deviceContext: ke.optional(),
722
+ deviceContext: Ae.optional(),
723
723
  externalContext: p(n(), f()).optional()
724
724
  });
725
- var Wt = d({
725
+ var Kt = d({
726
726
  sessionId: n(),
727
727
  signedUrl: n(),
728
728
  providerAgentId: n(),
729
729
  chatId: n(),
730
730
  maxSessionSeconds: i().int()
731
- }), Gt = d({
731
+ }), qt = d({
732
732
  voiceId: n(),
733
733
  name: n(),
734
734
  category: n().optional(),
735
735
  previewUrl: n().optional(),
736
736
  labels: p(n(), n()).optional()
737
737
  });
738
- c(Gt);
739
- var Kt = d({
738
+ c(qt);
739
+ var Jt = d({
740
740
  model: jt,
741
741
  interface: Q,
742
742
  tools: At.optional().default(() => At.parse({})),
743
743
  fileUpload: $.optional().default(() => $.parse({})),
744
- gatewayOptions: Rt.optional().default(() => Rt.parse({})),
744
+ gatewayOptions: Bt.optional().default(() => Bt.parse({})),
745
745
  channels: c(l(Z)).optional().default(() => [...Nt]),
746
746
  externalContextSchema: ae.optional(),
747
- openaiApi: zt.optional().default(() => zt.parse({})),
748
- voice: Ht.optional().default(() => Ht.parse({})),
749
- toolWorkingSet: Vt.optional().default(() => Vt.parse({})),
750
- hostTools: Ne.optional(),
751
- pageAccess: Ve.optional()
752
- }), qt = d({
747
+ openaiApi: Vt.optional().default(() => Vt.parse({})),
748
+ voice: Wt.optional().default(() => Wt.parse({})),
749
+ toolWorkingSet: Ut.optional().default(() => Ut.parse({})),
750
+ hostTools: Pe.optional(),
751
+ pageAccess: He.optional()
752
+ }), Yt = d({
753
753
  rateLimits: d({
754
754
  minuteRateLimit: i().int().min(0).optional(),
755
755
  hourRateLimit: i().int().min(0).optional(),
@@ -764,11 +764,11 @@ d({
764
764
  prompt: n().optional(),
765
765
  model: n().optional(),
766
766
  fallbackModels: c(n()).default([]),
767
- status: l(M).default(M.Draft),
768
- visibility: l(N).default(N.Organization),
769
- settings: Kt,
770
- security: qt.nullish(),
771
- type: l(P).default(P.Chat),
767
+ status: l(j).default(j.Draft),
768
+ visibility: l(M).default(M.Organization),
769
+ settings: Jt,
770
+ security: Yt.nullish(),
771
+ type: l(N).default(N.Chat),
772
772
  organizationId: n()
773
773
  }), ee(() => d({
774
774
  id: n(),
@@ -776,11 +776,11 @@ d({
776
776
  prompt: n(),
777
777
  model: n(),
778
778
  fallbackModels: c(n()).nullable().default([]),
779
- status: l(M).default(M.Draft),
780
- visibility: l(N).default(N.Organization),
781
- settings: Kt,
782
- security: qt.nullable(),
783
- type: l(P).default(P.Chat),
779
+ status: l(j).default(j.Draft),
780
+ visibility: l(M).default(M.Organization),
781
+ settings: Jt,
782
+ security: Yt.nullable(),
783
+ type: l(N).default(N.Chat),
784
784
  organizationId: n(),
785
785
  createdAt: m(),
786
786
  createdBy: n(),
@@ -792,23 +792,23 @@ d({
792
792
  outOfBudget: u().optional().default(!1),
793
793
  outOfBudgetReason: n().optional().default("")
794
794
  }));
795
- var Jt = d({
795
+ var Xt = d({
796
796
  id: n(),
797
797
  name: n(),
798
- status: l(M),
799
- visibility: l(N),
798
+ status: l(j),
799
+ visibility: l(M),
800
800
  organizationId: n(),
801
801
  interface: Q,
802
802
  createdAt: m(),
803
803
  updatedAt: m(),
804
804
  capabilities: d({
805
805
  fileUpload: $,
806
- voice: Ut,
807
- hostTools: Pe.optional(),
808
- pageAccess: We.optional()
806
+ voice: Gt,
807
+ hostTools: Fe.optional(),
808
+ pageAccess: Ge.optional()
809
809
  }),
810
810
  channels: c(l(Z)).default(() => [...Nt])
811
- }), Yt = Q.pick({
811
+ }), Zt = Q.pick({
812
812
  logo: !0,
813
813
  mainColor: !0,
814
814
  textColor: !0,
@@ -819,41 +819,41 @@ var Jt = d({
819
819
  hideFloatingButton: !0,
820
820
  copilotPageCss: !0,
821
821
  customCss: !0
822
- }), Xt = Jt.pick({
822
+ }), Qt = Xt.pick({
823
823
  id: !0,
824
824
  name: !0,
825
825
  organizationId: !0
826
- }).extend({ interface: Yt }), Zt = d({
826
+ }).extend({ interface: Zt }), $t = d({
827
827
  emailPassword: u(),
828
828
  google: u(),
829
829
  microsoft: u()
830
- }), Qt = d({
830
+ }), en = d({
831
831
  requiresAuth: s(!1),
832
- agent: Jt,
832
+ agent: Xt,
833
833
  branding: a()
834
- }), $t = d({
834
+ }), tn = d({
835
835
  requiresAuth: s(!0),
836
836
  agent: a(),
837
- branding: Xt
837
+ branding: Qt
838
838
  });
839
- te("requiresAuth", [Qt, $t]);
840
- var en = d({
839
+ te("requiresAuth", [en, tn]);
840
+ var nn = d({
841
841
  frontendUrl: n().optional(),
842
842
  telemetry: d({
843
843
  environment: n(),
844
844
  samplingRate: i().min(0).max(1)
845
845
  }).nullable()
846
- }), tn = d({
847
- authMethods: Zt,
846
+ }), rn = d({
847
+ authMethods: $t,
848
848
  deploymentBranding: fe.nullish(),
849
- deployment: en.optional()
849
+ deployment: nn.optional()
850
850
  });
851
- te("requiresAuth", [Qt.extend(tn.shape), $t.extend(tn.shape)]), d({
851
+ te("requiresAuth", [en.extend(rn.shape), tn.extend(rn.shape)]), d({
852
852
  id: t(),
853
853
  limited: u(),
854
854
  agentIds: c(t())
855
855
  });
856
- var nn = d({
856
+ var an = d({
857
857
  userId: t(),
858
858
  name: n(),
859
859
  email: n(),
@@ -864,7 +864,7 @@ var nn = d({
864
864
  });
865
865
  d({
866
866
  id: t(),
867
- members: c(nn)
867
+ members: c(an)
868
868
  }), d({
869
869
  id: t(),
870
870
  userIds: c(t())
@@ -886,6 +886,6 @@ d({
886
886
  ...g.ids()
887
887
  });
888
888
  //#endregion
889
- export { b as $, St as A, Ft as B, I as C, pt as D, st as E, ft as F, Be as G, j as H, ut as I, Le as J, ze as K, mt as L, lt as M, it as N, gt as O, Qe as P, ke as Q, vt as R, Ke as S, Lt as T, He as U, Ge as V, Ue as W, Ie as X, Ae as Y, Fe as Z, ht as _, $ as a, Te as at, L as b, K as c, le as ct, Bt as d, D as et, P as f, Y as g, X as h, Z as i, ue as it, W as j, Wt as k, tt as l, g as lt, G as m, ot as n, we as nt, Rt as o, me as ot, N as p, A as q, U as r, ye as rt, J as s, h as st, qe as t, _ as tt, F as u, ct as v, R as w, at as x, B as y, xt as z };
889
+ export { Ie as $, St as A, vt as B, F as C, pt as D, st as E, zt as F, Ue as G, Ft as H, Qe as I, Be as J, We as K, ft as L, W as M, lt as N, gt as O, it as P, Le as Q, ut as R, qe as S, Lt as T, Ke as U, xt as V, A as W, Re as X, k as Y, je as Z, ht as _, $ as a, ye as at, L as b, K as c, me as ct, Ht as d, g as dt, Ae as et, N as f, Y as g, X as h, Z as i, Te as it, Rt as j, Kt as k, tt as l, h as lt, G as m, ot as n, D as nt, Bt as o, ue as ot, M as p, Ve as q, U as r, _ as rt, J as s, Ee as st, I as t, b as tt, P as u, le as ut, ct as v, R as w, at as x, B as y, mt as z };
890
890
 
891
- //# sourceMappingURL=Agent-DZb775Ak.js.map
891
+ //# sourceMappingURL=Agent-BYwOk7Tt.js.map