@8wave/ai-elements 0.126.0-beta.4 → 0.126.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist/_chunks/{Agent-DMvYDpLa.js → Agent-CekUHTMX.js} +375 -359
  2. package/dist/_chunks/Agent-CekUHTMX.js.map +1 -0
  3. package/dist/_chunks/{PkFilePreview-DXcXrGlu.js → PkFilePreview-lW67C8H1.js} +3 -3
  4. package/dist/_chunks/{PkFilePreview-DXcXrGlu.js.map → PkFilePreview-lW67C8H1.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreviewDialog-KXGgpxmi.js → PkFilePreviewDialog-D3CfqzoG.js} +2 -2
  6. package/dist/_chunks/{PkFilePreviewDialog-KXGgpxmi.js.map → PkFilePreviewDialog-D3CfqzoG.js.map} +1 -1
  7. package/dist/_chunks/{PkImageEditorDialog-DpN9fQVH.js → PkImageEditorDialog-DeDcbpTx.js} +2 -2
  8. package/dist/_chunks/{PkImageEditorDialog-DpN9fQVH.js.map → PkImageEditorDialog-DeDcbpTx.js.map} +1 -1
  9. package/dist/_chunks/{PkSelectionActions-mc8_fmAf.js → PkSelectionActions-DjQxIfV3.js} +2 -2
  10. package/dist/_chunks/{PkSelectionActions-mc8_fmAf.js.map → PkSelectionActions-DjQxIfV3.js.map} +1 -1
  11. package/dist/_chunks/{PkStreamingMarkdown-C-UwSQ9_.js → PkStreamingMarkdown-CA6Yy0Ul.js} +3 -3
  12. package/dist/_chunks/{PkStreamingMarkdown-C-UwSQ9_.js.map → PkStreamingMarkdown-CA6Yy0Ul.js.map} +1 -1
  13. package/dist/_chunks/{PkToolChatFile-B_apV6dN.js → PkToolChatFile-DmNIFwm4.js} +3 -3
  14. package/dist/_chunks/{PkToolChatFile-B_apV6dN.js.map → PkToolChatFile-DmNIFwm4.js.map} +1 -1
  15. package/dist/_chunks/{PkToolRequestGeolocation-5ttHwPcp.js → PkToolRequestGeolocation-D196AF0R.js} +2 -2
  16. package/dist/_chunks/{PkToolRequestGeolocation-5ttHwPcp.js.map → PkToolRequestGeolocation-D196AF0R.js.map} +1 -1
  17. package/dist/_chunks/{PkToolRequestOAuthConnection-DAGUKLTk.js → PkToolRequestOAuthConnection-JhdCcPGn.js} +2 -2
  18. package/dist/_chunks/{PkToolRequestOAuthConnection-DAGUKLTk.js.map → PkToolRequestOAuthConnection-JhdCcPGn.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowArtifact-Br1dw9_a.js → PkToolShowArtifact-DkJaxkWI.js} +2 -2
  20. package/dist/_chunks/{PkToolShowArtifact-Br1dw9_a.js.map → PkToolShowArtifact-DkJaxkWI.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowContactForm-D3G_9NhR.js → PkToolShowContactForm-dLdK3POY.js} +2 -2
  22. package/dist/_chunks/{PkToolShowContactForm-D3G_9NhR.js.map → PkToolShowContactForm-dLdK3POY.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowForm-T9zmaVnV.js → PkToolShowForm-Ce0IzrxF.js} +4 -4
  24. package/dist/_chunks/{PkToolShowForm-T9zmaVnV.js.map → PkToolShowForm-Ce0IzrxF.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowImageGallery-Cma0W3Lc.js → PkToolShowImageGallery-g_2RBM8g.js} +2 -2
  26. package/dist/_chunks/{PkToolShowImageGallery-Cma0W3Lc.js.map → PkToolShowImageGallery-g_2RBM8g.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowProductList-D9sJv2kh.js → PkToolShowProductList-B-fw08V_.js} +2 -2
  28. package/dist/_chunks/{PkToolShowProductList-D9sJv2kh.js.map → PkToolShowProductList-B-fw08V_.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowSources-BtGR_hGC.js → PkToolShowSources-IgpsG650.js} +3 -3
  30. package/dist/_chunks/{PkToolShowSources-BtGR_hGC.js.map → PkToolShowSources-IgpsG650.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSuggestedReply-gpuWzpoh.js → PkToolShowSuggestedReply-DKKMLvpr.js} +2 -2
  32. package/dist/_chunks/{PkToolShowSuggestedReply-gpuWzpoh.js.map → PkToolShowSuggestedReply-DKKMLvpr.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowVideo-CF5fbuem.js → PkToolShowVideo-Dadpkgeb.js} +2 -2
  34. package/dist/_chunks/{PkToolShowVideo-CF5fbuem.js.map → PkToolShowVideo-Dadpkgeb.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowWebPages-C7NRjgaF.js → PkToolShowWebPages-B7dYxtRc.js} +2 -2
  36. package/dist/_chunks/{PkToolShowWebPages-C7NRjgaF.js.map → PkToolShowWebPages-B7dYxtRc.js.map} +1 -1
  37. package/dist/_chunks/{chatImagePolicy-Dv_WHhDs.js → chatImagePolicy-xnyXgC-e.js} +2 -2
  38. package/dist/_chunks/{chatImagePolicy-Dv_WHhDs.js.map → chatImagePolicy-xnyXgC-e.js.map} +1 -1
  39. package/dist/_chunks/{markdown-BYpvcbWH.js → markdown-DrtQCs3N.js} +94 -109
  40. package/dist/_chunks/markdown-DrtQCs3N.js.map +1 -0
  41. package/dist/_chunks/{utils-C2aFWWye.js → utils-DFHOr4A0.js} +2 -2
  42. package/dist/_chunks/{utils-C2aFWWye.js.map → utils-DFHOr4A0.js.map} +1 -1
  43. package/dist/ai-elements.es.js +420 -403
  44. package/dist/ai-elements.es.js.map +1 -1
  45. package/dist-vue/PkChatbot.js +1 -1
  46. package/dist-vue/PkChatbotEmptyState.js +1 -1
  47. package/dist-vue/PkChatbotInput.js +1 -1
  48. package/dist-vue/PkChatbotMessages.js +1 -1
  49. package/dist-vue/PkChatbotStepPayload.js +1 -1
  50. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  51. package/dist-vue/PkChatbotSteps.js +1 -1
  52. package/dist-vue/PkChatbotViewChat.js +1 -1
  53. package/dist-vue/PkChatbotViewConversations.js +1 -1
  54. package/dist-vue/PkChatbotViewFiles.js +1 -1
  55. package/dist-vue/PkChatbotViewProfile.js +1 -1
  56. package/dist-vue/_chunks/{Agent-B9iJ1WvR.js → Agent-D5aZyBZ0.js} +360 -346
  57. package/dist-vue/_chunks/Agent-D5aZyBZ0.js.map +1 -0
  58. package/dist-vue/_chunks/{Document-DnsOE7s6.js → Document-Ds51J0AA.js} +123 -136
  59. package/dist-vue/_chunks/Document-Ds51J0AA.js.map +1 -0
  60. package/dist-vue/_chunks/{PkChatbot-CuZpfjTV.js → PkChatbot-DcH0Q-v8.js} +8 -8
  61. package/dist-vue/_chunks/{PkChatbot-CuZpfjTV.js.map → PkChatbot-DcH0Q-v8.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotEmptyState-DfyYZXHQ.js → PkChatbotEmptyState-CbpQFb1b.js} +2 -2
  63. package/dist-vue/_chunks/{PkChatbotEmptyState-DfyYZXHQ.js.map → PkChatbotEmptyState-CbpQFb1b.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotInput-CBalSveL.js → PkChatbotInput-Bn-B0DNK.js} +4 -4
  65. package/dist-vue/_chunks/{PkChatbotInput-CBalSveL.js.map → PkChatbotInput-Bn-B0DNK.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkChatbotMessages-C2AUTqk4.js → PkChatbotMessages-BVZ43ZOC.js} +18 -18
  67. package/dist-vue/_chunks/{PkChatbotMessages-C2AUTqk4.js.map → PkChatbotMessages-BVZ43ZOC.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotStepPayload-Bb3Y6kuL.js → PkChatbotStepPayload-C0J8ajea.js} +2 -2
  69. package/dist-vue/_chunks/{PkChatbotStepPayload-Bb3Y6kuL.js.map → PkChatbotStepPayload-C0J8ajea.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotStepToolDetail-CwOxzYOe.js → PkChatbotStepToolDetail-GcOljcQh.js} +3 -3
  71. package/dist-vue/_chunks/{PkChatbotStepToolDetail-CwOxzYOe.js.map → PkChatbotStepToolDetail-GcOljcQh.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkChatbotSteps-FduD9X9i.js → PkChatbotSteps-BhoWAoId.js} +5 -5
  73. package/dist-vue/_chunks/{PkChatbotSteps-FduD9X9i.js.map → PkChatbotSteps-BhoWAoId.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkChatbotViewChat-CqsZUVwH.js → PkChatbotViewChat-BxjBteX-.js} +7 -7
  75. package/dist-vue/_chunks/{PkChatbotViewChat-CqsZUVwH.js.map → PkChatbotViewChat-BxjBteX-.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkChatbotViewConversations-BmogvLfQ.js → PkChatbotViewConversations-DBIFAunZ.js} +3 -3
  77. package/dist-vue/_chunks/{PkChatbotViewConversations-BmogvLfQ.js.map → PkChatbotViewConversations-DBIFAunZ.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkChatbotViewFiles-D8zQlZnl.js → PkChatbotViewFiles-ElbOlcb4.js} +3 -3
  79. package/dist-vue/_chunks/{PkChatbotViewFiles-D8zQlZnl.js.map → PkChatbotViewFiles-ElbOlcb4.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkChatbotViewProfile-jIyADxiV.js → PkChatbotViewProfile-zjpDEqiI.js} +2 -2
  81. package/dist-vue/_chunks/{PkChatbotViewProfile-jIyADxiV.js.map → PkChatbotViewProfile-zjpDEqiI.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkFilePreview-kyTrO7DS.js → PkFilePreview-BnvJc9wF.js} +3 -3
  83. package/dist-vue/_chunks/{PkFilePreview-kyTrO7DS.js.map → PkFilePreview-BnvJc9wF.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkFilePreviewDialog-CuMIXEQK.js → PkFilePreviewDialog-DJPd6F6h.js} +2 -2
  85. package/dist-vue/_chunks/{PkFilePreviewDialog-CuMIXEQK.js.map → PkFilePreviewDialog-DJPd6F6h.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkImageEditorDialog-CjMwpb-a.js → PkImageEditorDialog-SGh0yd88.js} +2 -2
  87. package/dist-vue/_chunks/{PkImageEditorDialog-CjMwpb-a.js.map → PkImageEditorDialog-SGh0yd88.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkStreamingMarkdown-7Kl_VBH-.js → PkStreamingMarkdown-Cdk4iAL3.js} +3 -3
  89. package/dist-vue/_chunks/{PkStreamingMarkdown-7Kl_VBH-.js.map → PkStreamingMarkdown-Cdk4iAL3.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolChatFile-DcNRCVXy.js → PkToolChatFile-DypSO5o3.js} +3 -3
  91. package/dist-vue/_chunks/{PkToolChatFile-DcNRCVXy.js.map → PkToolChatFile-DypSO5o3.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolRequestGeolocation-Bhh7UomV.js → PkToolRequestGeolocation-C5zOostC.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolRequestGeolocation-Bhh7UomV.js.map → PkToolRequestGeolocation-C5zOostC.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-8GJlt5G1.js → PkToolRequestOAuthConnection-DBXEQcsm.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-8GJlt5G1.js.map → PkToolRequestOAuthConnection-DBXEQcsm.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowArtifact-C7CxCqVO.js → PkToolShowArtifact-CQBi5Mg1.js} +2 -2
  97. package/dist-vue/_chunks/{PkToolShowArtifact-C7CxCqVO.js.map → PkToolShowArtifact-CQBi5Mg1.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowChart-DULlrMjq.js → PkToolShowChart-RwwJPpQP.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowChart-DULlrMjq.js.map → PkToolShowChart-RwwJPpQP.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowContactForm-472d-SAE.js → PkToolShowContactForm-DIlOfZMP.js} +2 -2
  101. package/dist-vue/_chunks/{PkToolShowContactForm-472d-SAE.js.map → PkToolShowContactForm-DIlOfZMP.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowDiagram-RrqVpOaX.js → PkToolShowDiagram-CqYnz_Yb.js} +2 -2
  103. package/dist-vue/_chunks/{PkToolShowDiagram-RrqVpOaX.js.map → PkToolShowDiagram-CqYnz_Yb.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowForm-CgyszDEI.js → PkToolShowForm-CCPTQ61I.js} +4 -4
  105. package/dist-vue/_chunks/{PkToolShowForm-CgyszDEI.js.map → PkToolShowForm-CCPTQ61I.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowImageGallery-LBx9JE6p.js → PkToolShowImageGallery-DJRImJce.js} +2 -2
  107. package/dist-vue/_chunks/{PkToolShowImageGallery-LBx9JE6p.js.map → PkToolShowImageGallery-DJRImJce.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolShowProductList-THiH4EzZ.js → PkToolShowProductList-B0_9HndQ.js} +2 -2
  109. package/dist-vue/_chunks/{PkToolShowProductList-THiH4EzZ.js.map → PkToolShowProductList-B0_9HndQ.js.map} +1 -1
  110. package/dist-vue/_chunks/{PkToolShowSources-CEqGXOOt.js → PkToolShowSources-BVWaatPE.js} +3 -3
  111. package/dist-vue/_chunks/{PkToolShowSources-CEqGXOOt.js.map → PkToolShowSources-BVWaatPE.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DxlGhMvE.js → PkToolShowSuggestedReply-D2F-ub_s.js} +2 -2
  113. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DxlGhMvE.js.map → PkToolShowSuggestedReply-D2F-ub_s.js.map} +1 -1
  114. package/dist-vue/_chunks/{PkToolShowVideo-8Gi3vOer.js → PkToolShowVideo-B4UQ0Tor.js} +2 -2
  115. package/dist-vue/_chunks/{PkToolShowVideo-8Gi3vOer.js.map → PkToolShowVideo-B4UQ0Tor.js.map} +1 -1
  116. package/dist-vue/_chunks/{PkToolShowWebPages-xjUPdfOU.js → PkToolShowWebPages-CPIcsqFG.js} +2 -2
  117. package/dist-vue/_chunks/{PkToolShowWebPages-xjUPdfOU.js.map → PkToolShowWebPages-CPIcsqFG.js.map} +1 -1
  118. package/dist-vue/_chunks/{createChatbotApiClient-DmPcjwB3.js → createChatbotApiClient-DiazhjCh.js} +18 -18
  119. package/dist-vue/_chunks/{createChatbotApiClient-DmPcjwB3.js.map → createChatbotApiClient-DiazhjCh.js.map} +1 -1
  120. package/dist-vue/_chunks/{useChatbotStore-Ci7k5fU2.js → useChatbotStore-Wu5B9krh.js} +3 -3
  121. package/dist-vue/_chunks/{useChatbotStore-Ci7k5fU2.js.map → useChatbotStore-Wu5B9krh.js.map} +1 -1
  122. package/dist-vue/_chunks/{utils-VVbH-Liq.js → utils-MJ9tUQYf.js} +2 -2
  123. package/dist-vue/_chunks/{utils-VVbH-Liq.js.map → utils-MJ9tUQYf.js.map} +1 -1
  124. package/dist-vue/api.js +1 -1
  125. package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +18 -1
  126. package/dist-vue/apps/web-component/src/utils/cookie.d.ts +3 -3
  127. package/dist-vue/composables.js +118 -101
  128. package/dist-vue/composables.js.map +1 -1
  129. package/dist-vue/index.js +3256 -3221
  130. package/dist-vue/index.js.map +1 -1
  131. package/dist-vue/locales.js +8 -0
  132. package/dist-vue/packages/auth/src/anonymous-reauth-plugin.d.ts +8 -6
  133. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -3
  134. package/dist-vue/packages/components/src/chat/PkLanguageModelCombobox.d.ts +7 -0
  135. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -0
  136. package/dist-vue/packages/models/src/schema/Agent.d.ts +12 -0
  137. package/dist-vue/packages/models/src/schema/Chat.d.ts +3 -0
  138. package/dist-vue/packages/models/src/schema/ModelProvider.d.ts +1 -0
  139. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
  140. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
  141. package/dist-vue/packages/models/src/schema/constants.d.ts +7 -0
  142. package/package.json +1 -1
  143. package/dist/_chunks/Agent-DMvYDpLa.js.map +0 -1
  144. package/dist/_chunks/markdown-BYpvcbWH.js.map +0 -1
  145. package/dist-vue/_chunks/Agent-B9iJ1WvR.js.map +0 -1
  146. package/dist-vue/_chunks/Document-DnsOE7s6.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { C as e, E as t, S as n, T as r, _ as i, a, c as o, m as s, o as c, p as ee, r as l, s as u, u as te, v as d, w as f, x as p } from "./schemas-BO5QlXAp.js";
2
2
  import { l as m, n as ne, t as re } from "./Media-DylqhvaF.js";
3
3
  // ../../packages/models/src/utils.ts
4
- var ie = (e, t, n) => o(e, t, {
4
+ var h = (e, t, n) => o(e, t, {
5
5
  encode: (e) => e,
6
6
  decode: n
7
- }), ae = 51200, oe = p(n(), f()).refine((e) => JSON.stringify(e).length <= ae, { message: `Schema must not exceed ${ae / 1024} KB` });
7
+ }), ie = 51200, ae = p(n(), f()).refine((e) => JSON.stringify(e).length <= ie, { message: `Schema must not exceed ${ie / 1024} KB` });
8
8
  t();
9
- var se = (e) => [`${e}`, `-${e}`], ce = (e) => e.flatMap((e) => se(e)), h = {
9
+ var oe = (e) => [`${e}`, `-${e}`], se = (e) => e.flatMap((e) => oe(e)), g = {
10
10
  pagination: (e = 1, t = 10) => ({
11
11
  "page[number]": i().or(n()).transform((e) => Number(e)).default(e),
12
12
  "page[size]": i().or(n()).transform((e) => Number(e)).default(t)
@@ -21,34 +21,47 @@ var se = (e) => [`${e}`, `-${e}`], ce = (e) => e.flatMap((e) => se(e)), h = {
21
21
  fullText: () => ({ "filter[fullText]": n().optional() }),
22
22
  ids: () => ({ ids: e([n(), c(n())]).optional() }),
23
23
  deleted: () => ({ "filter[isDeleted]": u().default(!1) }),
24
- filters: (e) => e.map((e) => h.filter(e)).reduce((e, t) => ({
24
+ filters: (e) => e.map((e) => g.filter(e)).reduce((e, t) => ({
25
25
  ...e,
26
26
  ...t
27
27
  })),
28
28
  sort: (e) => {
29
- let t = ce(e);
29
+ let t = se(e);
30
30
  return { sort: l(t).optional().default(t[0]) };
31
31
  }
32
- }, le = (e) => e.replace(/^[a-zA-Z_]+:/, ""), ue = (e, t) => {
33
- let n = new Set(t), r = le(e);
32
+ }, ce = (e) => e.replace(/^[a-zA-Z_]+:/, ""), le = (e, t) => {
33
+ let n = new Set(t), r = ce(e);
34
34
  if (r !== e && n.has(r)) return r;
35
35
  if (n.has(e)) return e;
36
36
  let i = [...n].filter((e) => e.endsWith(`-${r}`));
37
37
  return i.length === 1 ? i[0] : void 0;
38
- }, g = /^#[0-9A-Fa-f]{6}$/, _ = d({
39
- brand: n().regex(g),
40
- accent: n().regex(g),
41
- info: n().regex(g)
42
- }), v = d({
43
- light: _,
44
- dark: _
45
- }), de = (e, t) => JSON.stringify(e).toLowerCase() === JSON.stringify(t).toLowerCase(), y = /* @__PURE__ */ function(e) {
38
+ }, ue = /* @__PURE__ */ "openai/gpt-5-nano,openai/gpt-5-mini,openai/gpt-5.1-thinking,openai/gpt-5.2,openai/gpt-5.4-nano,openai/gpt-5.4-mini,openai/gpt-5.4,openai/gpt-5.4-pro,openai/gpt-5.5,openai/gpt-5.5-pro,openai/gpt-5.6-luna,openai/gpt-5.6-terra,openai/gpt-5.6-sol,openai/gpt-5.6-luna-fast,openai/gpt-5.6-terra-fast,openai/gpt-5.6-sol-fast,openai/gpt-6-astra,openai/gpt-6-astra-fast,openai/gpt-6-sol,openai/gpt-6-sol-fast,openai/gpt-6-luna,openai/gpt-6-luna-fast,openai/gpt-6.1-sol,openai/gpt-6.1-sol-fast,openai/gpt-6.1-terra,openai/gpt-6.1-terra-fast,google/gemini-2.5-flash-lite,google/gemini-2.5-flash,google/gemini-2.5-pro,google/gemini-3-flash,google/gemini-3.1-pro-preview,google/gemini-3.1-flash-lite,google/gemini-3.5-flash,google/gemini-3.5-flash-lite,google/gemini-3.6-flash,google/gemini-3.7-flash,google/gemini-3.8-flash,google/gemini-4-argon,anthropic/claude-haiku-4.5,anthropic/claude-haiku-5.5,anthropic/claude-sonnet-4.6,anthropic/claude-sonnet-5,anthropic/claude-sonnet-5.5,anthropic/claude-opus-4.6,anthropic/claude-opus-4.7,anthropic/claude-opus-4.8,anthropic/claude-opus-5,anthropic/claude-opus-5-fast,anthropic/claude-opus-5.5,anthropic/claude-opus-5.5-fast,anthropic/claude-fable-5,anthropic/claude-fable-5.1,deepseek/deepseek-v3.2,deepseek/deepseek-v4-flash-0731,deepseek/deepseek-v4.1-flash,deepseek/deepseek-v4-pro-0813,alibaba/qwen3.6-plus,alibaba/qwen3.7-max,alibaba/qwen3.7-plus,alibaba/qwen3.7-flash,alibaba/qwen3.8-flash,alibaba/qwen3.8-max,alibaba/qwen3.8-27b,alibaba/qwen3.8-max-0902,alibaba/qwen3.8-omni-flash,alibaba/qwen3.8-max-prime,spacexai/grok-4.3,spacexai/grok-4.6,spacexai/grok-4.7,zai/glm-5.2,zai/glm-5.2-fast,zai/glm-5.3,zai/glm-5.3-flash,zai/glm-5.3-fast,meta/muse-spark-1.1,meta/muse-spark-1.2,meta/muse-spark-1.3,meta/muse-wonder-1.0,moonshotai/kimi-k3,moonshotai/kimi-k3-fast,mistral/ministral-14b,mistral/mistral-small,mistral/mistral-medium-3.5,mistral/mistral-large-3,mistral/mistral-large-4".split(","), de = ["eu"], fe = 1e6, pe = (/* @__PURE__ */ function(e) {
39
+ return e.textEmbedding3Small = "openai/text-embedding-3-small", e.textEmbedding3Large = "openai/text-embedding-3-large", e.geminiEmbedding2 = "google/gemini-embedding-2", e;
40
+ }({})).geminiEmbedding2, me = "typesafe-ai/jev", _ = /* @__PURE__ */ function(e) {
41
+ return e.it = "it", e.en = "en", e.es = "es", e.fr = "fr", e.de = "de", e;
42
+ }({});
43
+ _.it, _.en, _.es, _.fr, _.de;
44
+ var he = /* @__PURE__ */ function(e) {
45
+ return e.READABILITY = "readability", e.AI = "ai", e;
46
+ }({}), ge = /* @__PURE__ */ function(e) {
47
+ return e.FETCH = "fetch", e.PUPPETEER = "puppeteer", e.REMOTE = "remote", e;
48
+ }({}), _e = "byok/", ve = (e) => !!e?.startsWith(_e);
49
+ new Set(ue);
50
+ // ../../packages/models/src/schema/Branding.ts
51
+ var v = /^#[0-9A-Fa-f]{6}$/, ye = d({
52
+ brand: n().regex(v),
53
+ accent: n().regex(v),
54
+ info: n().regex(v)
55
+ }), y = d({
56
+ light: ye,
57
+ dark: ye
58
+ }), be = (e, t) => JSON.stringify(e).toLowerCase() === JSON.stringify(t).toLowerCase(), b = /* @__PURE__ */ function(e) {
46
59
  return e.System = "system", e.ForceLight = "force-light", e.ForceDark = "force-dark", e;
47
- }({}), b = /* @__PURE__ */ function(e) {
60
+ }({}), x = /* @__PURE__ */ function(e) {
48
61
  return e.LogoLight = "logoLight", e.LogoDark = "logoDark", e.Mark = "mark", e.EmailLogo = "emailLogo", e.EmailBanner = "emailBanner", e;
49
62
  }({});
50
- b.EmailLogo, b.EmailBanner;
51
- var x = d({
63
+ x.EmailLogo, x.EmailBanner;
64
+ var S = d({
52
65
  checksum: n().regex(/^[0-9a-f]{64}$/),
53
66
  mimeType: l([
54
67
  "image/svg+xml",
@@ -58,13 +71,13 @@ var x = d({
58
71
  ]),
59
72
  width: i().int().positive().nullable(),
60
73
  height: i().int().positive().nullable()
61
- }), fe = d({
62
- [b.LogoLight]: x.nullable(),
63
- [b.LogoDark]: x.nullable(),
64
- [b.Mark]: x.nullable(),
65
- [b.EmailLogo]: x.nullable(),
66
- [b.EmailBanner]: x.nullable()
67
- }), S = d({
74
+ }), xe = d({
75
+ [x.LogoLight]: S.nullable(),
76
+ [x.LogoDark]: S.nullable(),
77
+ [x.Mark]: S.nullable(),
78
+ [x.EmailLogo]: S.nullable(),
79
+ [x.EmailBanner]: S.nullable()
80
+ }), C = d({
68
81
  productName: n().trim().min(1).max(60),
69
82
  shortName: n().trim().min(1).max(24),
70
83
  description: n().trim().max(200).nullable(),
@@ -72,44 +85,44 @@ var x = d({
72
85
  companyName: n().trim().max(80).nullable()
73
86
  });
74
87
  d({
75
- colors: v,
76
- mode: l(y),
77
- assets: fe,
78
- text: S
88
+ colors: y,
89
+ mode: l(b),
90
+ assets: xe,
91
+ text: C
79
92
  }).extend({ version: n() });
80
- var pe = d({ css: n() }), C = fe.partial(), w = S.partial().extend({
81
- productName: S.shape.productName.nullish(),
82
- shortName: S.shape.shortName.nullish()
83
- }), me = d({
84
- colors: v.nullish(),
85
- mode: l(y).nullish(),
86
- assets: C.nullish(),
87
- text: w.nullish()
93
+ var Se = d({ css: n() }), w = xe.partial(), T = C.partial().extend({
94
+ productName: C.shape.productName.nullish(),
95
+ shortName: C.shape.shortName.nullish()
96
+ }), Ce = d({
97
+ colors: y.nullish(),
98
+ mode: l(b).nullish(),
99
+ assets: w.nullish(),
100
+ text: T.nullish()
88
101
  });
89
102
  d({
90
- patch: me,
103
+ patch: Ce,
91
104
  revision: n().min(1).max(64)
92
105
  });
93
- var T = (e) => e.optional().catch(void 0);
106
+ var E = (e) => e.optional().catch(void 0);
94
107
  d({
95
- colors: T(v.nullable()),
96
- mode: T(l(y).nullable()),
97
- assets: T(d({
98
- [b.LogoLight]: T(C.shape.logoLight),
99
- [b.LogoDark]: T(C.shape.logoDark),
100
- [b.Mark]: T(C.shape.mark),
101
- [b.EmailLogo]: T(C.shape.emailLogo),
102
- [b.EmailBanner]: T(C.shape.emailBanner)
108
+ colors: E(y.nullable()),
109
+ mode: E(l(b).nullable()),
110
+ assets: E(d({
111
+ [x.LogoLight]: E(w.shape.logoLight),
112
+ [x.LogoDark]: E(w.shape.logoDark),
113
+ [x.Mark]: E(w.shape.mark),
114
+ [x.EmailLogo]: E(w.shape.emailLogo),
115
+ [x.EmailBanner]: E(w.shape.emailBanner)
103
116
  }).nullable()),
104
- text: T(d({
105
- productName: T(w.shape.productName),
106
- shortName: T(w.shape.shortName),
107
- description: T(w.shape.description),
108
- productTagline: T(w.shape.productTagline),
109
- companyName: T(w.shape.companyName)
117
+ text: E(d({
118
+ productName: E(T.shape.productName),
119
+ shortName: E(T.shape.shortName),
120
+ description: E(T.shape.description),
121
+ productTagline: E(T.shape.productTagline),
122
+ companyName: E(T.shape.companyName)
110
123
  }).nullable())
111
124
  });
112
- var E = D({
125
+ var D = O({
113
126
  colors: {
114
127
  light: {
115
128
  brand: "#140e33",
@@ -122,13 +135,13 @@ var E = D({
122
135
  info: "#86c8fb"
123
136
  }
124
137
  },
125
- mode: y.System,
138
+ mode: b.System,
126
139
  assets: {
127
- [b.LogoLight]: null,
128
- [b.LogoDark]: null,
129
- [b.Mark]: null,
130
- [b.EmailLogo]: null,
131
- [b.EmailBanner]: null
140
+ [x.LogoLight]: null,
141
+ [x.LogoDark]: null,
142
+ [x.Mark]: null,
143
+ [x.EmailLogo]: null,
144
+ [x.EmailBanner]: null
132
145
  },
133
146
  text: {
134
147
  productName: "Eight Wave Agent Studio",
@@ -138,8 +151,8 @@ var E = D({
138
151
  companyName: null
139
152
  }
140
153
  });
141
- D({
142
- ...E,
154
+ O({
155
+ ...D,
143
156
  text: {
144
157
  productName: "Agent Studio",
145
158
  shortName: "Agent Studio",
@@ -148,8 +161,8 @@ D({
148
161
  companyName: null
149
162
  }
150
163
  });
151
- var he = (e) => e.productName === E.text.productName;
152
- function ge(e) {
164
+ var we = (e) => e.productName === D.text.productName;
165
+ function Te(e) {
153
166
  let t = Number.parseInt(e.slice(1), 16), [n, r, i] = [
154
167
  t >> 16,
155
168
  t >> 8 & 255,
@@ -160,27 +173,27 @@ function ge(e) {
160
173
  });
161
174
  return .2126 * n + .7152 * r + .0722 * i;
162
175
  }
163
- var _e = (e) => ge(e) > .179 ? "#000000" : "#ffffff";
164
- function ve(e) {
176
+ var Ee = (e) => Te(e) > .179 ? "#000000" : "#ffffff";
177
+ function De(e) {
165
178
  let t = e.match(/[\p{L}\p{N}]/u)?.[0] ?? "", n = t.toUpperCase();
166
179
  return n.length === t.length ? n : t;
167
180
  }
168
- function ye(e, t, { rounded: n = !0 } = {}) {
169
- let r = g.test(t) ? t : E.colors.light.brand, i = _e(r), a = ve(e);
181
+ function Oe(e, t, { rounded: n = !0 } = {}) {
182
+ let r = v.test(t) ? t : D.colors.light.brand, i = Ee(r), a = De(e);
170
183
  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
184
  }
172
- var be = (e, t) => `data:image/svg+xml,${encodeURIComponent(ye(e, t))}`;
173
- function D(e) {
185
+ var ke = (e, t) => `data:image/svg+xml,${encodeURIComponent(Oe(e, t))}`;
186
+ function O(e) {
174
187
  if (e && typeof e == "object") {
175
- for (let t of Object.values(e)) D(t);
188
+ for (let t of Object.values(e)) O(t);
176
189
  Object.freeze(e);
177
190
  }
178
191
  return e;
179
192
  }
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);
193
+ function Ae(e) {
194
+ return Array.isArray(e) ? `[${e.map(Ae).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)}:${Ae(t)}`).join(",")}}` : JSON.stringify(e);
182
195
  }
183
- function xe(e) {
196
+ function je(e) {
184
197
  let t = 2166136261, n = 16777619 ^ e.length;
185
198
  for (let r = 0; r < e.length; r++) {
186
199
  let i = e.charCodeAt(r);
@@ -188,22 +201,22 @@ function xe(e) {
188
201
  }
189
202
  return t.toString(16).padStart(8, "0") + n.toString(16).padStart(8, "0");
190
203
  }
191
- function Se(e) {
192
- return xe(`${ke(e)}:${O(e)}`);
204
+ function Me(e) {
205
+ return je(`${ze(e)}:${Ae(e)}`);
193
206
  }
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) {
207
+ var Ne = "/api/v1/public/branding", Pe = (e) => `${Ne}/assets/${e}`, Fe = (e, t) => `${e.replace(/\/+$/, "")}${Pe(t)}`;
208
+ RegExp(`^${Ne}(?:\\.css|/manifest\\.webmanifest|/icon/(?:\\d+|maskable)|/assets/[0-9a-f]{64}(?:/icon/\\d+)?)?(?:\\?|$)`);
209
+ function Ie(e) {
197
210
  return {
198
211
  ...e,
199
- version: Se(e)
212
+ version: Me(e)
200
213
  };
201
214
  }
202
- function De(e) {
203
- return _.safeParse(e).success ? `--color-brand:${e.brand};--color-accent:${e.accent};--color-info:${e.info};` : "";
215
+ function Le(e) {
216
+ return ye.safeParse(e).success ? `--color-brand:${e.brand};--color-accent:${e.accent};--color-info:${e.info};` : "";
204
217
  }
205
- function Oe(e) {
206
- let t = De(e.colors.light), n = De(e.colors.dark);
218
+ function Re(e) {
219
+ let t = Le(e.colors.light), n = Le(e.colors.dark);
207
220
  return [
208
221
  `:where(:root,.theme){${t}${t ? `--color-tint:${e.colors.light.brand};` : ""}}`,
209
222
  `@media (prefers-color-scheme: dark){:where(:root:not(.theme--light),.theme:not(.theme--light)){${n}}}`,
@@ -211,7 +224,7 @@ function Oe(e) {
211
224
  `:where(.theme.theme--dark){${n}}`
212
225
  ].join("\n");
213
226
  }
214
- var ke = (e) => xe(Oe(e)), Ae = d({
227
+ var ze = (e) => je(Re(e)), Be = d({
215
228
  dateTime: n().optional(),
216
229
  timezone: n().optional(),
217
230
  language: n().optional(),
@@ -241,16 +254,16 @@ var ke = (e) => xe(Oe(e)), Ae = d({
241
254
  geolocationLongitude: i().optional(),
242
255
  geolocationAccuracy: i().optional(),
243
256
  geolocationCity: n().optional()
244
- }), je = "host", k = /^[a-z][a-z0-9_]{0,63}$/, Me = 2e3, Ne = d({
257
+ }), Ve = "host", k = /^[a-z][a-z0-9_]{0,63}$/, He = 2e3, Ue = d({
245
258
  title: n().max(80).optional(),
246
259
  readOnlyHint: u().optional(),
247
260
  destructiveHint: u().optional()
248
261
  });
249
262
  d({
250
263
  name: n().regex(k),
251
- description: n().max(Me).optional(),
264
+ description: n().max(He).optional(),
252
265
  inputSchema: p(n(), f()).refine((e) => e.type === "object", { message: "The input schema must describe an object" }),
253
- annotations: Ne.optional()
266
+ annotations: Ue.optional()
254
267
  }), d({
255
268
  content: c(d({
256
269
  type: s("text"),
@@ -258,7 +271,7 @@ d({
258
271
  })),
259
272
  isError: u().optional()
260
273
  });
261
- var Pe = d({
274
+ var We = d({
262
275
  enabled: u().default(!1),
263
276
  label: n().max(40).default(""),
264
277
  allowed: c(n().regex(k)).max(32).default([]),
@@ -266,25 +279,25 @@ var Pe = d({
266
279
  confirmDestructive: u().default(!0),
267
280
  timeoutMs: i().int().min(5e3).max(12e4).default(3e4),
268
281
  maxCallsPerTurn: i().int().min(1).max(50).default(20)
269
- }), Fe = Pe.pick({
282
+ }), Ge = We.pick({
270
283
  label: !0,
271
284
  allowed: !0,
272
285
  requireConfirmation: !0,
273
286
  confirmDestructive: !0,
274
287
  timeoutMs: !0
275
- }).extend({ origins: c(n()) }), Ie = (e) => {
288
+ }).extend({ origins: c(n()) }), Ke = (e) => {
276
289
  if (typeof e != "object" || !e) return !1;
277
290
  let { type: t, toolMetadata: n } = e;
278
291
  return t === "dynamic-tool" && n?.source === "host";
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) {
292
+ }, qe = (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.", Je = "The user refused this call. Do not repeat it unless the user asks.", A = /* @__PURE__ */ function(e) {
280
293
  return e.Off = "off", e.Read = "read", e.Forms = "forms", e.Full = "full", e;
281
- }({}), ze = [
294
+ }({}), Ye = [
282
295
  A.Off,
283
296
  A.Read,
284
297
  A.Forms,
285
298
  A.Full
286
- ], Be = (e, t) => ze.indexOf(e ?? A.Off) >= ze.indexOf(t);
287
- function Ve(e) {
299
+ ], Xe = (e, t) => Ye.indexOf(e ?? A.Off) >= Ye.indexOf(t);
300
+ function Ze(e) {
288
301
  if (!e.trim()) return !1;
289
302
  if (typeof document > "u") return !0;
290
303
  try {
@@ -293,21 +306,21 @@ function Ve(e) {
293
306
  return !1;
294
307
  }
295
308
  }
296
- var He = d({
309
+ var Qe = d({
297
310
  level: l(A).default(A.Off),
298
- excludeSelectors: c(n().max(200).refine(Ve, "Not a valid CSS selector")).max(50).default([]),
311
+ excludeSelectors: c(n().max(200).refine(Ze, "Not a valid CSS selector")).max(50).default([]),
299
312
  confirmEveryAction: u().default(!1),
300
313
  pointer: u().default(!1),
301
314
  notice: p(n(), n().max(500)).optional(),
302
315
  acknowledgedBy: n().optional(),
303
316
  acknowledgedAt: m().optional(),
304
317
  acknowledgedLevel: l(A).optional()
305
- }), Ue = (e, t) => !!e?.acknowledgedBy && e?.acknowledgedAt !== void 0 && Be(e.acknowledgedLevel, t), We = (e) => e.startsWith("page_") || e.startsWith("form_"), Ge = He.pick({
318
+ }), $e = (e, t) => !!e?.acknowledgedBy && e?.acknowledgedAt !== void 0 && Xe(e.acknowledgedLevel, t), et = (e) => e.startsWith("page_") || e.startsWith("form_"), tt = Qe.pick({
306
319
  level: !0,
307
320
  excludeSelectors: !0,
308
321
  confirmEveryAction: !0,
309
322
  notice: !0
310
- }).extend({ pointer: u().optional() }), Ke = ["fill-fields", "fill-choose"];
323
+ }).extend({ pointer: u().optional() }), nt = ["fill-fields", "fill-choose"];
311
324
  d({
312
325
  kind: l(["element", "text"]),
313
326
  label: n().max(200),
@@ -324,7 +337,7 @@ d({
324
337
  features: c(n().max(40)).max(16).default([])
325
338
  });
326
339
  // ../../packages/models/src/schema/SelectionAction.ts
327
- var qe = [
340
+ var rt = [
328
341
  "explain",
329
342
  "summarize",
330
343
  "rewrite",
@@ -332,7 +345,7 @@ var qe = [
332
345
  "proofread",
333
346
  "translate",
334
347
  "chart"
335
- ], Je = [
348
+ ], it = [
336
349
  "page",
337
350
  "word",
338
351
  "excel"
@@ -349,8 +362,8 @@ var qe = [
349
362
  "summarize",
350
363
  "chart"
351
364
  ]
352
- }, Ye = /* @__PURE__ */ "sparkles.magic.idea.star.heart.lightning.fire.rocket.pen.pencil.text.paragraph.quote.list.checklist.highlighter.document.folder.book.bookmark.clipboard.draft.contract.attachment.archive.search.filter.eye.questions.pie-chart.line-chart.table.database.calculator.percent.scales.euro.dollar.wallet.bank.card.cart.price-tag.bill.gift.shop.truck.shield.lock.key.gavel.institution.passport.person.team.group.smile.handshake.support.contacts.mail.send.speech.phone.megaphone.bell.share.link.globe.calendar.event.clock.timer.history.hourglass.plane.car.train.ship.map.pin.compass.bed.suitcase.home.building.flag.earth.sun.umbrella.heartbeat.capsule.first-aid.restaurant.cup.leaf.plant.recycle.school.graduation.brain.puzzle.award.trophy.settings.tools.code.bug.robot.cloud.flask.microscope.check.cross.warning.information.refresh.swap.arrow.thumbs-up.target.palette.image.music.video.microphone".split("."), Xe = (e) => p(n(), n().trim().min(1).max(e));
353
- function Ze(e) {
365
+ }, at = /* @__PURE__ */ "sparkles.magic.idea.star.heart.lightning.fire.rocket.pen.pencil.text.paragraph.quote.list.checklist.highlighter.document.folder.book.bookmark.clipboard.draft.contract.attachment.archive.search.filter.eye.questions.pie-chart.line-chart.table.database.calculator.percent.scales.euro.dollar.wallet.bank.card.cart.price-tag.bill.gift.shop.truck.shield.lock.key.gavel.institution.passport.person.team.group.smile.handshake.support.contacts.mail.send.speech.phone.megaphone.bell.share.link.globe.calendar.event.clock.timer.history.hourglass.plane.car.train.ship.map.pin.compass.bed.suitcase.home.building.flag.earth.sun.umbrella.heartbeat.capsule.first-aid.restaurant.cup.leaf.plant.recycle.school.graduation.brain.puzzle.award.trophy.settings.tools.code.bug.robot.cloud.flask.microscope.check.cross.warning.information.refresh.swap.arrow.thumbs-up.target.palette.image.music.video.microphone".split("."), ot = (e) => p(n(), n().trim().min(1).max(e));
366
+ function st(e) {
354
367
  let t = (e) => Object.keys(e ?? {}).filter((t) => !!e?.[t]?.trim()), n = t(e.label), r = t(e.prompt);
355
368
  return {
356
369
  empty: n.length === 0 && r.length === 0,
@@ -358,14 +371,14 @@ function Ze(e) {
358
371
  prompt: n.filter((e) => !r.includes(e))
359
372
  };
360
373
  }
361
- var Qe = d({
374
+ var ct = d({
362
375
  id: n().trim().min(1).max(64),
363
- label: Xe(40),
364
- prompt: Xe(500),
365
- icon: l(Ye).optional().catch(void 0)
376
+ label: ot(40),
377
+ prompt: ot(500),
378
+ icon: l(at).optional().catch(void 0)
366
379
  });
367
- function $e(e, t, n = {}) {
368
- for (let r of Je) {
380
+ function lt(e, t, n = {}) {
381
+ for (let r of it) {
369
382
  let i = e.selectionActions?.[r];
370
383
  if (i?.enabled && n[r] !== !1) for (let [e, n] of (i.actions ?? []).entries()) {
371
384
  let i = [
@@ -373,7 +386,7 @@ function $e(e, t, n = {}) {
373
386
  r,
374
387
  "actions",
375
388
  e
376
- ], a = Ze(n);
389
+ ], a = st(n);
377
390
  a.empty && t.addIssue({
378
391
  code: "custom",
379
392
  message: "An action needs a label and an instruction",
@@ -394,7 +407,7 @@ function $e(e, t, n = {}) {
394
407
  var M = (e, t) => d({
395
408
  enabled: u().default(t),
396
409
  builtIns: c(l(e)).default(() => [...e]),
397
- actions: c(Qe).default([])
410
+ actions: c(ct).default([])
398
411
  }).refine((e) => new Set(e.builtIns).size === e.builtIns.length, {
399
412
  message: "A built-in action is listed twice",
400
413
  path: ["builtIns"]
@@ -404,64 +417,64 @@ var M = (e, t) => d({
404
417
  }).refine((e) => e.builtIns.length + e.actions.length <= 4, {
405
418
  message: "At most 4 actions, built-in and the agent's together",
406
419
  path: ["actions"]
407
- }), N = M(j.page, !1), P = M(j.word, !0), F = M(j.excel, !0), et = d({
420
+ }), N = M(j.page, !1), P = M(j.word, !0), ut = M(j.excel, !0), dt = d({
408
421
  page: N.optional().default(() => N.parse({})),
409
422
  word: P.optional().default(() => P.parse({})),
410
- excel: F.optional().default(() => F.parse({}))
411
- }), I = d({
412
- builtIns: c(l(qe)),
413
- actions: c(Qe)
414
- }), tt = d({
415
- page: I.optional(),
416
- word: I.optional(),
417
- excel: I.optional()
418
- }), L = /* @__PURE__ */ function(e) {
423
+ excel: ut.optional().default(() => ut.parse({}))
424
+ }), ft = d({
425
+ builtIns: c(l(rt)),
426
+ actions: c(ct)
427
+ }), pt = d({
428
+ page: ft.optional(),
429
+ word: ft.optional(),
430
+ excel: ft.optional()
431
+ }), F = /* @__PURE__ */ function(e) {
419
432
  return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
420
- }({}), R = /* @__PURE__ */ function(e) {
433
+ }({}), I = /* @__PURE__ */ function(e) {
421
434
  return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
422
- }({}), nt = [R.Organization, R.Restricted], z = /* @__PURE__ */ function(e) {
435
+ }({}), mt = [I.Organization, I.Restricted], L = /* @__PURE__ */ function(e) {
423
436
  return e.Chat = "chat", e.Reasoning = "reasoning", e;
424
- }({}), B = /* @__PURE__ */ function(e) {
437
+ }({}), R = /* @__PURE__ */ function(e) {
425
438
  return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
426
- }({}), V = [
439
+ }({}), z = [
427
440
  "none",
428
441
  "low",
429
442
  "medium",
430
443
  "high",
431
444
  "xhigh",
432
445
  "max"
433
- ], H = [
446
+ ], B = [
434
447
  "low",
435
448
  "medium",
436
449
  "high",
437
450
  "xhigh",
438
451
  "max"
439
- ], U = [
452
+ ], V = [
440
453
  "minimal",
441
454
  "low",
442
455
  "medium",
443
456
  "high"
444
- ], W = [
457
+ ], H = [
445
458
  "auto",
446
459
  "detailed",
447
460
  "concise"
448
- ], rt = d({
449
- reasoningEffort: l(V).optional(),
450
- reasoningSummary: l(W).optional()
451
- }), it = d({
461
+ ], ht = d({
462
+ reasoningEffort: l(z).optional(),
463
+ reasoningSummary: l(H).optional()
464
+ }), gt = d({
452
465
  type: l([
453
466
  "adaptive",
454
467
  "enabled",
455
468
  "disabled"
456
469
  ]).optional(),
457
- effort: l(H).optional(),
470
+ effort: l(B).optional(),
458
471
  display: l(["summarized", "omitted"]).optional(),
459
472
  budgetTokens: i().int().positive().optional()
460
- }), at = d({
461
- thinkingLevel: l(U).optional(),
473
+ }), _t = d({
474
+ thinkingLevel: l(V).optional(),
462
475
  thinkingBudget: i().int().optional(),
463
476
  includeThoughts: u().optional()
464
- }), ot = d({ type: l(["enabled", "disabled"]).optional() }), G = [
477
+ }), vt = d({ type: l(["enabled", "disabled"]).optional() }), U = [
465
478
  "alibaba",
466
479
  "meta",
467
480
  "moonshotai",
@@ -469,67 +482,67 @@ var M = (e, t) => d({
469
482
  "xiaomi",
470
483
  "zai"
471
484
  ];
472
- function st(e) {
473
- return G.includes(e);
485
+ function yt(e) {
486
+ return U.includes(e);
474
487
  }
475
- var K = [
488
+ var W = [
476
489
  "none",
477
490
  "minimal",
478
491
  "low",
479
492
  "medium",
480
493
  "high",
481
494
  "xhigh"
482
- ], q = d({ reasoningEffort: l(K).optional() });
483
- function J(e, t) {
495
+ ], G = d({ reasoningEffort: l(W).optional() });
496
+ function K(e, t) {
484
497
  return e && t.includes(e) ? e : void 0;
485
498
  }
486
- var ct = d({
487
- openai: rt.optional(),
488
- anthropic: it.optional(),
489
- google: at.optional(),
490
- deepseek: ot.optional(),
491
- alibaba: q.optional(),
492
- meta: q.optional(),
493
- moonshotai: q.optional(),
494
- spacexai: q.optional(),
495
- xiaomi: q.optional(),
496
- zai: q.optional()
499
+ var bt = d({
500
+ openai: ht.optional(),
501
+ anthropic: gt.optional(),
502
+ google: _t.optional(),
503
+ deepseek: vt.optional(),
504
+ alibaba: G.optional(),
505
+ meta: G.optional(),
506
+ moonshotai: G.optional(),
507
+ spacexai: G.optional(),
508
+ xiaomi: G.optional(),
509
+ zai: G.optional()
497
510
  });
498
- function lt(e) {
511
+ function xt(e) {
499
512
  if (!e || typeof e != "object") return e;
500
513
  let t = e, n = [
501
514
  "openai",
502
515
  "anthropic",
503
516
  "google",
504
517
  "deepseek",
505
- ...G
518
+ ...U
506
519
  ].some((e) => e in t);
507
520
  if ("effort" in t && !n) {
508
521
  let e = t.effort, n = t.reasoningSummary, r = {};
509
522
  if (e && e !== "off" && e !== "none") {
510
- let t = J(e, V), i = J(n, W);
523
+ let t = K(e, z), i = K(n, H);
511
524
  (t || i) && (r.openai = {
512
525
  ...t && { reasoningEffort: t },
513
526
  ...i && { reasoningSummary: i }
514
527
  });
515
- let a = J(e, H);
528
+ let a = K(e, B);
516
529
  a && (r.anthropic = {
517
530
  type: "adaptive",
518
531
  effort: a
519
532
  });
520
- let o = J(e === "xhigh" || e === "max" ? "high" : e, U);
533
+ let o = K(e === "xhigh" || e === "max" ? "high" : e, V);
521
534
  o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
522
- let s = J(e === "max" ? "xhigh" : e, K);
523
- if (s) for (let e of G) r[e] = { reasoningEffort: s };
535
+ let s = K(e === "max" ? "xhigh" : e, W);
536
+ if (s) for (let e of U) r[e] = { reasoningEffort: s };
524
537
  } else {
525
538
  r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
526
- for (let e of G) r[e] = { reasoningEffort: "none" };
539
+ for (let e of U) r[e] = { reasoningEffort: "none" };
527
540
  }
528
541
  return r;
529
542
  }
530
543
  return e;
531
544
  }
532
- var ut = ie(f(), ct, lt).optional(), dt = {
545
+ var St = h(f(), bt, xt).optional(), Ct = {
533
546
  openai: { reasoningEffort: "low" },
534
547
  anthropic: {
535
548
  type: "adaptive",
@@ -543,108 +556,108 @@ var ut = ie(f(), ct, lt).optional(), dt = {
543
556
  xiaomi: { reasoningEffort: "low" },
544
557
  zai: { reasoningEffort: "low" }
545
558
  };
546
- function ft(e) {
559
+ function wt(e) {
547
560
  return !!e && typeof e == "object" && Object.values(e).some((e) => e !== void 0);
548
561
  }
549
- function pt(e, t) {
562
+ function Tt(e, t) {
550
563
  let n = t?.[e];
551
- return ft(n) ? n : dt[e];
564
+ return wt(n) ? n : Ct[e];
552
565
  }
553
- var Y = /* @__PURE__ */ function(e) {
566
+ var q = /* @__PURE__ */ function(e) {
554
567
  return e.Geocode = "geocode", e.GetWeather = "getWeather", e.ReadDocumentFile = "readDocumentFile", e.RequestConfirm = "requestConfirm", e.RequestGeolocation = "requestGeolocation", e.RetrieveRevisedAnswers = "retrieveRevisedAnswers", e.SearchInKnowledgeBase = "searchInKnowledgeBase", e.SearchInUserFiles = "searchInUserFiles", e.UserMemory = "userMemory", e.Spreadsheet = "spreadsheet", e.QuerySpreadsheet = "querySpreadsheet", e.WordDocument = "wordDocument", e.CreateSpreadsheet = "createSpreadsheet", e.CreateWordDocument = "createWordDocument", e.RunWorker = "runWorker", e.ScheduleWakeup = "scheduleWakeup", e.ShareDocument = "shareDocument", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", e.ShowChart = "showChart", 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;
555
- }({}), mt = "mcp-", ht = "api-", gt = "subagent-", _t = "enableTools";
556
- function vt(e) {
557
- return !yt(e) && e !== Y.RequestGeolocation;
568
+ }({}), Et = "mcp-", Dt = "api-", Ot = "subagent-", kt = "enableTools";
569
+ function At(e) {
570
+ return !jt(e) && e !== q.RequestGeolocation;
558
571
  }
559
- function yt(e) {
560
- return e === Y.RequestConfirm || e === Y.ShowArtifact || e === Y.ShowCalendarEvent || e === Y.ShowChart || e === Y.ShowComparison || e === Y.ShowContactForm || e === Y.ShowDiagram || e === Y.ShowEmail || e === Y.ShowImageGallery || e === Y.ShowLocation || e === Y.ShowMessage || e === Y.ShowForm || e === Y.ShowMultipleChoice || e === Y.ShowProductList || e === Y.ShowQrCode || e === Y.ShowSources || e === Y.ShowSuggestedReply || e === Y.ShowVideo || e === Y.ShowWeather || e === Y.ShowWebPages;
572
+ function jt(e) {
573
+ return e === q.RequestConfirm || e === q.ShowArtifact || e === q.ShowCalendarEvent || e === q.ShowChart || e === q.ShowComparison || e === q.ShowContactForm || e === q.ShowDiagram || e === q.ShowEmail || e === q.ShowImageGallery || e === q.ShowLocation || e === q.ShowMessage || e === q.ShowForm || e === q.ShowMultipleChoice || e === q.ShowProductList || e === q.ShowQrCode || e === q.ShowSources || e === q.ShowSuggestedReply || e === q.ShowVideo || e === q.ShowWeather || e === q.ShowWebPages;
561
574
  }
562
- var bt = /* @__PURE__ */ new Set([
575
+ var Mt = /* @__PURE__ */ new Set([
563
576
  "editSpreadsheet",
564
577
  "editWordDocument",
565
- Y.CreateSpreadsheet,
566
- Y.CreateWordDocument
567
- ]), xt = /* @__PURE__ */ new Set([
568
- Y.RequestConfirm,
569
- Y.ShowArtifact,
570
- Y.ShowWeather,
571
- Y.ShowLocation,
572
- Y.ShowComparison,
573
- Y.ShowProductList,
574
- Y.ShowWebPages,
575
- Y.ShowImageGallery,
576
- Y.ShowVideo,
577
- Y.ShowSources,
578
- Y.ShowSuggestedReply,
579
- Y.ShowCalendarEvent,
580
- Y.ShowEmail,
581
- Y.ShowMessage,
582
- Y.ShowForm,
583
- ...bt,
584
- Y.ShareDocument
578
+ q.CreateSpreadsheet,
579
+ q.CreateWordDocument
580
+ ]), Nt = /* @__PURE__ */ new Set([
581
+ q.RequestConfirm,
582
+ q.ShowArtifact,
583
+ q.ShowWeather,
584
+ q.ShowLocation,
585
+ q.ShowComparison,
586
+ q.ShowProductList,
587
+ q.ShowWebPages,
588
+ q.ShowImageGallery,
589
+ q.ShowVideo,
590
+ q.ShowSources,
591
+ q.ShowSuggestedReply,
592
+ q.ShowCalendarEvent,
593
+ q.ShowEmail,
594
+ q.ShowMessage,
595
+ q.ShowForm,
596
+ ...Mt,
597
+ q.ShareDocument
585
598
  ]);
586
- function St(e) {
587
- return xt.has(e);
599
+ function Pt(e) {
600
+ return Nt.has(e);
588
601
  }
589
- var Ct = /* @__PURE__ */ new Set([
590
- Y.RequestConfirm,
591
- Y.RequestGeolocation,
592
- Y.ShowForm,
593
- Y.ShowMultipleChoice,
602
+ var Ft = /* @__PURE__ */ new Set([
603
+ q.RequestConfirm,
604
+ q.RequestGeolocation,
605
+ q.ShowForm,
606
+ q.ShowMultipleChoice,
594
607
  "requestOAuthConnection"
595
608
  ]);
596
- function wt(e) {
597
- return Ct.has(e);
609
+ function It(e) {
610
+ return Ft.has(e);
598
611
  }
599
- var Tt = /* @__PURE__ */ function(e) {
612
+ var Lt = /* @__PURE__ */ function(e) {
600
613
  return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
601
- }({}), Et = /* @__PURE__ */ new Set([
602
- Y.RequestConfirm,
603
- Y.RequestGeolocation,
604
- Y.ShowArtifact,
605
- Y.ShowCalendarEvent,
606
- Y.ShowChart,
607
- Y.ShowContactForm,
608
- Y.ShowComparison,
609
- Y.ShowDiagram,
610
- Y.ShowEmail,
611
- Y.ShowForm,
612
- Y.ShowImageGallery,
613
- Y.ShowLocation,
614
- Y.ShowMessage,
615
- Y.ShowMultipleChoice,
616
- Y.ShowProductList,
617
- Y.ShowQrCode,
618
- Y.ShowSources,
619
- Y.ShowSuggestedReply,
620
- Y.ShowVideo,
621
- Y.ShowWeather,
622
- Y.ShowWebPages
623
- ]), Dt = "Shown on the caller's screen";
624
- function Ot(e) {
625
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Dt));
614
+ }({}), Rt = /* @__PURE__ */ new Set([
615
+ q.RequestConfirm,
616
+ q.RequestGeolocation,
617
+ q.ShowArtifact,
618
+ q.ShowCalendarEvent,
619
+ q.ShowChart,
620
+ q.ShowContactForm,
621
+ q.ShowComparison,
622
+ q.ShowDiagram,
623
+ q.ShowEmail,
624
+ q.ShowForm,
625
+ q.ShowImageGallery,
626
+ q.ShowLocation,
627
+ q.ShowMessage,
628
+ q.ShowMultipleChoice,
629
+ q.ShowProductList,
630
+ q.ShowQrCode,
631
+ q.ShowSources,
632
+ q.ShowSuggestedReply,
633
+ q.ShowVideo,
634
+ q.ShowWeather,
635
+ q.ShowWebPages
636
+ ]), zt = "Shown on the caller's screen";
637
+ function Bt(e) {
638
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(zt));
626
639
  }
627
- var kt = d({
640
+ var Vt = d({
628
641
  maxSteps: i().int().min(1).max(10).optional().default(5),
629
642
  maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
630
- }), At = /* @__PURE__ */ function(e) {
643
+ }), J = /* @__PURE__ */ function(e) {
631
644
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
632
- }({}), jt = {
645
+ }({}), Ht = {
633
646
  openai: "OpenAI",
634
647
  anthropic: "Anthropic",
635
648
  google: "Google"
636
649
  };
637
- function Mt(e) {
650
+ function Ut(e) {
638
651
  let t = e.split("/")[0];
639
- return Object.prototype.hasOwnProperty.call(jt, t) ? jt[t] : void 0;
652
+ return Object.prototype.hasOwnProperty.call(Ht, t) ? Ht[t] : void 0;
640
653
  }
641
- var Nt = [
654
+ var Wt = [
642
655
  "perplexity_search",
643
656
  "parallel_search",
644
657
  "web_search",
645
658
  "openai_web_search",
646
659
  "google_search"
647
- ], Pt = d({
660
+ ], Gt = d({
648
661
  maxResults: i().int().min(1).max(20).optional(),
649
662
  maxTokens: i().int().positive().max(1e6).optional(),
650
663
  maxTokensPerPage: i().int().positive().optional(),
@@ -657,7 +670,7 @@ var Nt = [
657
670
  "month",
658
671
  "year"
659
672
  ]).optional()
660
- }), Ft = d({
673
+ }), Kt = d({
661
674
  mode: l(["one-shot", "agentic"]).optional(),
662
675
  maxResults: i().int().min(1).max(20).optional(),
663
676
  sourcePolicy: d({
@@ -670,7 +683,7 @@ var Nt = [
670
683
  maxCharsTotal: i().int().positive().optional()
671
684
  }).optional(),
672
685
  fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
673
- }), It = d({
686
+ }), qt = d({
674
687
  openai: d({}).optional(),
675
688
  anthropic: d({
676
689
  maxUses: i().int().positive().optional(),
@@ -685,29 +698,29 @@ var Nt = [
685
698
  }).optional()
686
699
  }).optional(),
687
700
  google: d({}).optional()
688
- }), Lt = d({
701
+ }), Y = d({
689
702
  enabled: u().default(!1),
690
- provider: l(At).optional().default(At.Native),
691
- perplexity: Pt.optional(),
692
- parallel: Ft.optional(),
693
- native: It.optional()
694
- }), Rt = d({ useAllUserKb: u().default(!1) }), zt = d({ useAllUserFiles: u().default(!1) }), Bt = d({ enabled: u().default(!1) }), X = d({ enabled: u().default(!1) }), Vt = d({ tools: c(n()).default([]) }), Ht = d({
695
- disabled: c(l(Y)).default([
696
- Y.UserMemory,
697
- Y.SearchInUserFiles,
698
- Y.RunWorker,
699
- Y.FetchTeamsChannelHistory,
700
- Y.ScheduleWakeup
703
+ provider: l(J).optional().default(J.Native),
704
+ perplexity: Gt.optional(),
705
+ parallel: Kt.optional(),
706
+ native: qt.optional()
707
+ }), Jt = d({ useAllUserKb: u().default(!1) }), Yt = d({ useAllUserFiles: u().default(!1) }), Xt = d({ enabled: u().default(!1) }), X = d({ enabled: u().default(!1) }), Zt = d({ tools: c(n()).default([]) }), Qt = d({
708
+ disabled: c(l(q)).default([
709
+ q.UserMemory,
710
+ q.SearchInUserFiles,
711
+ q.RunWorker,
712
+ q.FetchTeamsChannelHistory,
713
+ q.ScheduleWakeup
701
714
  ]),
702
- showForm: kt.optional().default(() => kt.parse({})),
703
- webSearch: Lt.optional().default(() => Lt.parse({})),
704
- userMemory: Rt.optional().default(() => Rt.parse({})),
705
- userFiles: zt.optional().default(() => zt.parse({})),
706
- shareDocument: Bt.optional().default(() => Bt.parse({})),
715
+ showForm: Vt.optional().default(() => Vt.parse({})),
716
+ webSearch: Y.optional().default(() => Y.parse({})),
717
+ userMemory: Jt.optional().default(() => Jt.parse({})),
718
+ userFiles: Yt.optional().default(() => Yt.parse({})),
719
+ shareDocument: Xt.optional().default(() => Xt.parse({})),
707
720
  createSpreadsheet: X.optional().default(() => X.parse({})),
708
721
  createWordDocument: X.optional().default(() => X.parse({})),
709
- approval: Vt.optional().default(() => Vt.parse({}))
710
- }), Ut = d({
722
+ approval: Zt.optional().default(() => Zt.parse({}))
723
+ }), $t = d({
711
724
  freshness: d({
712
725
  enabled: u().default(!1),
713
726
  scale: i().int().min(86400).max(31536e3).default(7776e3),
@@ -719,27 +732,27 @@ var Nt = [
719
732
  diversity: i().min(0).max(1).default(.3),
720
733
  candidatesLimit: i().int().min(20).max(100).default(50)
721
734
  }).prefault({})
722
- }).prefault({}), Wt = d({
735
+ }).prefault({}), en = d({
723
736
  prompt: n().optional(),
724
737
  temperature: i().min(0).max(2).optional().default(.6),
725
738
  maxOutputTokens: i().positive().optional(),
726
739
  presencePenalty: i().min(-2).max(2).optional(),
727
740
  frequencyPenalty: i().min(-2).max(2).optional(),
728
- searchMode: l(B).optional().default(B.Balanced),
741
+ searchMode: l(R).optional().default(R.Balanced),
729
742
  limit: i().positive().max(100).optional().default(10),
730
743
  maxStepCount: i().int().min(1).max(40).optional().default(10),
731
- reasoning: ut,
732
- ranking: Ut.optional().default(() => Ut.parse({}))
733
- }), Z = ie(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), Gt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Kt = /* @__PURE__ */ function(e) {
744
+ reasoning: St,
745
+ ranking: $t.optional().default(() => $t.parse({}))
746
+ }), Z = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), tn = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", nn = /* @__PURE__ */ function(e) {
734
747
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
735
- }({}), qt = /* @__PURE__ */ function(e) {
748
+ }({}), rn = /* @__PURE__ */ function(e) {
736
749
  return e.Floating = "floating", e.Copilot = "copilot", e;
737
- }({}), Jt = /* @__PURE__ */ function(e) {
750
+ }({}), an = /* @__PURE__ */ function(e) {
738
751
  return e.Solid = "solid", e.Glass = "glass", e;
739
752
  }({}), Q = /* @__PURE__ */ function(e) {
740
753
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
741
- }({}), Yt = Object.values(Q), Xt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
742
- function Zt(e) {
754
+ }({}), on = Object.values(Q), sn = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
755
+ function cn(e) {
743
756
  let t = e.trim().toLowerCase();
744
757
  if (!t) return "";
745
758
  try {
@@ -748,7 +761,7 @@ function Zt(e) {
748
761
  return t;
749
762
  }
750
763
  }
751
- var Qt = d({
764
+ var ln = d({
752
765
  media: ne.optional(),
753
766
  logo: n().optional(),
754
767
  theme: l([
@@ -756,7 +769,7 @@ var Qt = d({
756
769
  "dark",
757
770
  "auto"
758
771
  ]).optional().default("auto"),
759
- mainColor: n().regex(g).optional().default("#000000"),
772
+ mainColor: n().regex(v).optional().default("#000000"),
760
773
  textColor: l([
761
774
  "auto",
762
775
  "white",
@@ -767,7 +780,7 @@ var Qt = d({
767
780
  "one",
768
781
  "two"
769
782
  ]).optional().default("auto"),
770
- glowSecondColor: n().regex(g).optional(),
783
+ glowSecondColor: n().regex(v).optional(),
771
784
  useColorsForAgentHeader: u().optional().default(!1),
772
785
  initialMessage: Z.optional(),
773
786
  greeting: c(Z).min(1).max(10).optional(),
@@ -778,22 +791,22 @@ var Qt = d({
778
791
  interactiveLogin: u().optional().default(!0),
779
792
  welcomePopup: u().optional().default(!1),
780
793
  floatingButtonPosition: l(["left", "right"]).optional().default("right"),
781
- layout: l(qt).optional().default(qt.Floating),
782
- appearance: l(Jt).optional().default(Jt.Solid),
794
+ layout: l(rn).optional().default(rn.Floating),
795
+ appearance: l(an).optional().default(an.Solid),
783
796
  hideFloatingButton: u().optional().default(!1),
784
797
  workingGlow: u().optional().default(!0),
785
798
  copilotPageCss: n().optional(),
786
799
  maxMessageLength: i().int().positive().optional(),
787
- widgetUrl: r().default(Gt),
800
+ widgetUrl: r().default(tn),
788
801
  loadDelay: i().int().min(0).max(3e4).optional().default(0),
789
- loaderStrategy: l(Kt).optional().default(Kt.InlineModule),
802
+ loaderStrategy: l(nn).optional().default(nn.InlineModule),
790
803
  customCss: n().optional(),
791
804
  smoothStream: u().optional().default(!1),
792
805
  showExtendedSteps: u().optional().default(!1),
793
806
  showReasoning: u().optional().default(!0),
794
807
  holdExternalImages: u().optional().default(!1),
795
- imageHosts: c(n().overwrite(Zt).refine((e) => e === "" || Xt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
796
- }), $t = [
808
+ imageHosts: c(n().overwrite(cn).refine((e) => e === "" || sn.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
809
+ }), un = [
797
810
  "image/jpeg",
798
811
  "image/png",
799
812
  "image/gif",
@@ -802,19 +815,20 @@ var Qt = d({
802
815
  "text/plain",
803
816
  "text/markdown",
804
817
  "text/csv"
805
- ], en = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", tn = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", nn = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(Y.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(Y.WordDocument), $ = d({
818
+ ], dn = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", fn = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", pn = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(q.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(q.WordDocument), $ = d({
806
819
  enabled: u().default(!1),
807
820
  maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
808
- allowedMimeTypes: c(n().regex(re)).optional().default([...$t]),
821
+ allowedMimeTypes: c(n().regex(re)).optional().default([...un]),
809
822
  maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
810
823
  maxFilesPerChat: i().int().positive().max(50).optional().default(20)
811
- }), rn = d({
824
+ }), mn = d({
812
825
  zeroDataRetention: u().default(!0),
813
826
  disallowPromptTraining: u().default(!0),
814
- providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
815
- }), an = d({ enabled: u().default(!1) }), on = /* @__PURE__ */ function(e) {
827
+ providerTimeoutMs: i().int().min(1e3).max(789e3).optional(),
828
+ inferenceRegion: l(de).optional()
829
+ }), hn = d({ enabled: u().default(!1) }), gn = /* @__PURE__ */ function(e) {
816
830
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
817
- }({}), sn = d({ mode: l(on).default(on.Off) }), cn = d({
831
+ }({}), _n = d({ mode: l(gn).default(gn.Off) }), vn = d({
818
832
  enabled: u().default(!1),
819
833
  voiceId: n().optional(),
820
834
  language: n().min(2).max(5).default("it"),
@@ -833,44 +847,44 @@ var Qt = d({
833
847
  providerAgentId: n().optional(),
834
848
  providerSecretId: n().optional(),
835
849
  providerApiKeyId: n().optional()
836
- }), ln = d({ enabled: u() }), un = s("automatic");
850
+ }), yn = d({ enabled: u() }), bn = s("automatic");
837
851
  d({
838
852
  chatId: n().min(1).optional(),
839
- deviceContext: Ae.optional(),
853
+ deviceContext: Be.optional(),
840
854
  externalContext: p(n(), f()).optional(),
841
855
  pageTools: f().optional(),
842
- confirmations: un.optional()
856
+ confirmations: bn.optional()
843
857
  });
844
- var dn = d({
858
+ var xn = d({
845
859
  sessionId: n(),
846
860
  signedUrl: n(),
847
861
  providerAgentId: n(),
848
862
  chatId: n(),
849
863
  maxSessionSeconds: i().int()
850
- }), fn = d({
864
+ }), Sn = d({
851
865
  voiceId: n(),
852
866
  name: n(),
853
867
  category: n().optional(),
854
868
  previewUrl: n().optional(),
855
869
  labels: p(n(), n()).optional()
856
870
  });
857
- c(fn);
858
- var pn = d({ allowAutomatic: u().default(!1) }), mn = d({ allowAutomatic: s(!0) }), hn = d({
859
- model: Wt,
860
- interface: Qt,
861
- tools: Ht.optional().default(() => Ht.parse({})),
871
+ c(Sn);
872
+ var Cn = d({ allowAutomatic: u().default(!1) }), wn = d({ allowAutomatic: s(!0) }), Tn = d({
873
+ model: en,
874
+ interface: ln,
875
+ tools: Qt.optional().default(() => Qt.parse({})),
862
876
  fileUpload: $.optional().default(() => $.parse({})),
863
- gatewayOptions: rn.optional().default(() => rn.parse({})),
864
- channels: c(l(Q)).optional().default(() => [...Yt]),
865
- externalContextSchema: oe.optional(),
866
- openaiApi: an.optional().default(() => an.parse({})),
867
- voice: cn.optional().default(() => cn.parse({})),
868
- toolWorkingSet: sn.optional().default(() => sn.parse({})),
869
- hostTools: Pe.optional(),
870
- pageAccess: He.optional(),
871
- confirmations: pn.optional(),
872
- selectionActions: et.optional()
873
- }), gn = d({
877
+ gatewayOptions: mn.optional().default(() => mn.parse({})),
878
+ channels: c(l(Q)).optional().default(() => [...on]),
879
+ externalContextSchema: ae.optional(),
880
+ openaiApi: hn.optional().default(() => hn.parse({})),
881
+ voice: vn.optional().default(() => vn.parse({})),
882
+ toolWorkingSet: _n.optional().default(() => _n.parse({})),
883
+ hostTools: We.optional(),
884
+ pageAccess: Qe.optional(),
885
+ confirmations: Cn.optional(),
886
+ selectionActions: dt.optional()
887
+ }), En = d({
874
888
  rateLimits: d({
875
889
  minuteRateLimit: i().int().min(0).optional(),
876
890
  hourRateLimit: i().int().min(0).optional(),
@@ -885,15 +899,15 @@ d({
885
899
  prompt: n().optional(),
886
900
  model: n().optional(),
887
901
  fallbackModels: c(n()).default([]),
888
- status: l(L).default(L.Draft),
889
- visibility: l(R).default(R.Organization),
890
- settings: hn.superRefine((e, t) => $e(e, t, {
902
+ status: l(F).default(F.Draft),
903
+ visibility: l(I).default(I.Organization),
904
+ settings: Tn.superRefine((e, t) => lt(e, t, {
891
905
  page: (e.pageAccess?.level ?? A.Off) !== A.Off,
892
- word: !e.tools.disabled.includes(Y.WordDocument),
893
- excel: !e.tools.disabled.includes(Y.Spreadsheet)
906
+ word: !e.tools.disabled.includes(q.WordDocument),
907
+ excel: !e.tools.disabled.includes(q.Spreadsheet)
894
908
  })),
895
- security: gn.nullish(),
896
- type: l(z).default(z.Chat),
909
+ security: En.nullish(),
910
+ type: l(L).default(L.Chat),
897
911
  organizationId: n()
898
912
  }), ee(() => d({
899
913
  id: n(),
@@ -901,11 +915,11 @@ d({
901
915
  prompt: n(),
902
916
  model: n(),
903
917
  fallbackModels: c(n()).nullable().default([]),
904
- status: l(L).default(L.Draft),
905
- visibility: l(R).default(R.Organization),
906
- settings: hn,
907
- security: gn.nullable(),
908
- type: l(z).default(z.Chat),
918
+ status: l(F).default(F.Draft),
919
+ visibility: l(I).default(I.Organization),
920
+ settings: Tn,
921
+ security: En.nullable(),
922
+ type: l(L).default(L.Chat),
909
923
  organizationId: n(),
910
924
  createdAt: m(),
911
925
  createdBy: n(),
@@ -917,25 +931,25 @@ d({
917
931
  outOfBudget: u().optional().default(!1),
918
932
  outOfBudgetReason: n().optional().default("")
919
933
  }));
920
- var _n = d({
934
+ var Dn = d({
921
935
  id: n(),
922
936
  name: n(),
923
- status: l(L),
924
- visibility: l(R),
937
+ status: l(F),
938
+ visibility: l(I),
925
939
  organizationId: n(),
926
- interface: Qt,
940
+ interface: ln,
927
941
  createdAt: m(),
928
942
  updatedAt: m(),
929
943
  capabilities: d({
930
944
  fileUpload: $,
931
- voice: ln,
932
- hostTools: Fe.optional(),
933
- pageAccess: Ge.optional(),
934
- confirmations: mn.optional(),
935
- selectionActions: tt.optional()
945
+ voice: yn,
946
+ hostTools: Ge.optional(),
947
+ pageAccess: tt.optional(),
948
+ confirmations: wn.optional(),
949
+ selectionActions: pt.optional()
936
950
  }),
937
- channels: c(l(Q)).default(() => [...Yt])
938
- }), vn = Qt.pick({
951
+ channels: c(l(Q)).default(() => [...on])
952
+ }), On = ln.pick({
939
953
  logo: !0,
940
954
  mainColor: !0,
941
955
  textColor: !0,
@@ -946,41 +960,41 @@ var _n = d({
946
960
  hideFloatingButton: !0,
947
961
  copilotPageCss: !0,
948
962
  customCss: !0
949
- }), yn = _n.pick({
963
+ }), kn = Dn.pick({
950
964
  id: !0,
951
965
  name: !0,
952
966
  organizationId: !0
953
- }).extend({ interface: vn }), bn = d({
967
+ }).extend({ interface: On }), An = d({
954
968
  emailPassword: u(),
955
969
  google: u(),
956
970
  microsoft: u()
957
- }), xn = d({
971
+ }), jn = d({
958
972
  requiresAuth: s(!1),
959
- agent: _n,
973
+ agent: Dn,
960
974
  branding: a()
961
- }), Sn = d({
975
+ }), Mn = d({
962
976
  requiresAuth: s(!0),
963
977
  agent: a(),
964
- branding: yn
978
+ branding: kn
965
979
  });
966
- te("requiresAuth", [xn, Sn]);
967
- var Cn = d({
980
+ te("requiresAuth", [jn, Mn]);
981
+ var Nn = d({
968
982
  frontendUrl: n().optional(),
969
983
  telemetry: d({
970
984
  environment: n(),
971
985
  samplingRate: i().min(0).max(1)
972
986
  }).nullable()
973
- }), wn = d({
974
- authMethods: bn,
975
- deploymentBranding: pe.nullish(),
976
- deployment: Cn.optional()
987
+ }), Pn = d({
988
+ authMethods: An,
989
+ deploymentBranding: Se.nullish(),
990
+ deployment: Nn.optional()
977
991
  });
978
- te("requiresAuth", [xn.extend(wn.shape), Sn.extend(wn.shape)]), d({
992
+ te("requiresAuth", [jn.extend(Pn.shape), Mn.extend(Pn.shape)]), d({
979
993
  id: t(),
980
994
  limited: u(),
981
995
  agentIds: c(t())
982
996
  });
983
- var Tn = d({
997
+ var Fn = d({
984
998
  userId: t(),
985
999
  name: n(),
986
1000
  email: n(),
@@ -991,13 +1005,13 @@ var Tn = d({
991
1005
  });
992
1006
  d({
993
1007
  id: t(),
994
- members: c(Tn)
1008
+ members: c(Fn)
995
1009
  }), d({
996
1010
  id: t(),
997
1011
  userIds: c(t())
998
1012
  }), d({
999
- ...h.pagination(),
1000
- ...h.sort([
1013
+ ...g.pagination(),
1014
+ ...g.sort([
1001
1015
  "id",
1002
1016
  "updatedAt",
1003
1017
  "createdAt",
@@ -1007,12 +1021,12 @@ d({
1007
1021
  "visibility",
1008
1022
  "model"
1009
1023
  ]),
1010
- ...h.filters(["done", "type"]),
1011
- "filter[status]": l(L).optional(),
1012
- ...h.filter("id"),
1013
- ...h.fullText(),
1014
- ...h.ids()
1024
+ ...g.filters(["done", "type"]),
1025
+ "filter[status]": l(F).optional(),
1026
+ ...g.filter("id"),
1027
+ ...g.fullText(),
1028
+ ...g.ids()
1015
1029
  });
1016
- export { Ue as $, Et as A, yt as B, mt as C, en as D, W as E, vt as F, F as G, Ot as H, pt as I, j as J, N as K, nn as L, Nt as M, tn as N, gt as O, At as P, A as Q, st as R, U as S, V as T, Mt as U, wt as V, Zt as W, Ze as X, P as Y, Ke as Z, bt as _, ie as _t, $ as a, je as at, _t as b, Ut as c, Ae as ct, on as d, g as dt, We as et, z as f, Te as ft, qt as g, he as gt, Jt as h, Ee as ht, Q as i, Re as it, dn as j, Ct as k, ut as l, y as lt, Lt as m, de as mt, ht as n, Be as nt, rn as o, Le as ot, R as p, be as pt, Ye as q, Y as r, k as rt, Kt as s, Ie as st, H as t, Ve as tt, B as u, E as ut, un as v, ue as vt, nt as w, K as x, Tt as y, h as yt, St as z };
1030
+ export { $e as $, Rt as A, jt as B, Et as C, _ as Ct, dn as D, g as Dt, H as E, le as Et, At as F, ut as G, Bt as H, Tt as I, j as J, N as K, pn as L, Wt as M, fn as N, Ot as O, J as P, A as Q, yt as R, V as S, fe as St, z as T, h as Tt, Ut as U, It as V, cn as W, st as X, P as Y, nt as Z, Mt as _, ge as _t, $ as a, Ve as at, kt as b, he as bt, $t as c, Be as ct, gn as d, v as dt, et, L as f, Fe as ft, rn as g, we as gt, an as h, Ie as ht, Q as i, Je as it, xn as j, Ft as k, St as l, b as lt, Y as m, be as mt, Dt as n, Xe as nt, mn as o, qe as ot, I as p, ke as pt, at as q, q as r, k as rt, nn as s, Ke as st, B as t, Ze as tt, R as u, D as ut, bn as v, pe as vt, mt as w, ve as wt, W as x, ue as xt, Lt as y, me as yt, Pt as z };
1017
1031
 
1018
- //# sourceMappingURL=Agent-B9iJ1WvR.js.map
1032
+ //# sourceMappingURL=Agent-D5aZyBZ0.js.map