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

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 (143) 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 +58 -58
  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/composables.js +10 -10
  126. package/dist-vue/composables.js.map +1 -1
  127. package/dist-vue/index.js +3256 -3221
  128. package/dist-vue/index.js.map +1 -1
  129. package/dist-vue/locales.js +8 -0
  130. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -3
  131. package/dist-vue/packages/components/src/chat/PkLanguageModelCombobox.d.ts +7 -0
  132. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -0
  133. package/dist-vue/packages/models/src/schema/Agent.d.ts +12 -0
  134. package/dist-vue/packages/models/src/schema/Chat.d.ts +3 -0
  135. package/dist-vue/packages/models/src/schema/ModelProvider.d.ts +1 -0
  136. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
  137. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
  138. package/dist-vue/packages/models/src/schema/constants.d.ts +7 -0
  139. package/package.json +1 -1
  140. package/dist/_chunks/Agent-DMvYDpLa.js.map +0 -1
  141. package/dist/_chunks/markdown-BYpvcbWH.js.map +0 -1
  142. package/dist-vue/_chunks/Agent-B9iJ1WvR.js.map +0 -1
  143. package/dist-vue/_chunks/Document-DnsOE7s6.js.map +0 -1
@@ -28,20 +28,35 @@ var ie = (e) => [`${e}`, `-${e}`], ae = (e) => e.flatMap((e) => ie(e)), _ = {
28
28
  let t = ae(e);
29
29
  return { sort: u(t).optional().default(t[0]) };
30
30
  }
31
- }, v = /^#[0-9A-Fa-f]{6}$/, oe = n({
32
- brand: i().regex(v),
33
- accent: i().regex(v),
34
- info: i().regex(v)
35
- }), y = n({
36
- light: oe,
37
- dark: oe
38
- }), b = /* @__PURE__ */ function(e) {
31
+ }, oe = /* @__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(","), se = ["eu"];
32
+ (/* @__PURE__ */ (function(e) {
33
+ return e.textEmbedding3Small = "openai/text-embedding-3-small", e.textEmbedding3Large = "openai/text-embedding-3-large", e.geminiEmbedding2 = "google/gemini-embedding-2", e;
34
+ })({})).geminiEmbedding2;
35
+ var v = /* @__PURE__ */ function(e) {
36
+ return e.it = "it", e.en = "en", e.es = "es", e.fr = "fr", e.de = "de", e;
37
+ }({});
38
+ v.it, v.en, v.es, v.fr, v.de;
39
+ var ce = /* @__PURE__ */ function(e) {
40
+ return e.READABILITY = "readability", e.AI = "ai", e;
41
+ }({}), le = /* @__PURE__ */ function(e) {
42
+ return e.FETCH = "fetch", e.PUPPETEER = "puppeteer", e.REMOTE = "remote", e;
43
+ }({});
44
+ new Set(oe);
45
+ // ../../packages/models/src/schema/Branding.ts
46
+ var y = /^#[0-9A-Fa-f]{6}$/, ue = n({
47
+ brand: i().regex(y),
48
+ accent: i().regex(y),
49
+ info: i().regex(y)
50
+ }), b = n({
51
+ light: ue,
52
+ dark: ue
53
+ }), x = /* @__PURE__ */ function(e) {
39
54
  return e.System = "system", e.ForceLight = "force-light", e.ForceDark = "force-dark", e;
40
- }({}), x = /* @__PURE__ */ function(e) {
55
+ }({}), S = /* @__PURE__ */ function(e) {
41
56
  return e.LogoLight = "logoLight", e.LogoDark = "logoDark", e.Mark = "mark", e.EmailLogo = "emailLogo", e.EmailBanner = "emailBanner", e;
42
57
  }({});
43
- x.EmailLogo, x.EmailBanner;
44
- var S = n({
58
+ S.EmailLogo, S.EmailBanner;
59
+ var C = n({
45
60
  checksum: i().regex(/^[0-9a-f]{64}$/),
46
61
  mimeType: u([
47
62
  "image/svg+xml",
@@ -51,13 +66,13 @@ var S = n({
51
66
  ]),
52
67
  width: s().int().positive().nullable(),
53
68
  height: s().int().positive().nullable()
54
- }), se = n({
55
- [x.LogoLight]: S.nullable(),
56
- [x.LogoDark]: S.nullable(),
57
- [x.Mark]: S.nullable(),
58
- [x.EmailLogo]: S.nullable(),
59
- [x.EmailBanner]: S.nullable()
60
- }), C = n({
69
+ }), de = n({
70
+ [S.LogoLight]: C.nullable(),
71
+ [S.LogoDark]: C.nullable(),
72
+ [S.Mark]: C.nullable(),
73
+ [S.EmailLogo]: C.nullable(),
74
+ [S.EmailBanner]: C.nullable()
75
+ }), w = n({
61
76
  productName: i().trim().min(1).max(60),
62
77
  shortName: i().trim().min(1).max(24),
63
78
  description: i().trim().max(200).nullable(),
@@ -65,44 +80,44 @@ var S = n({
65
80
  companyName: i().trim().max(80).nullable()
66
81
  });
67
82
  n({
68
- colors: y,
69
- mode: u(b),
70
- assets: se,
71
- text: C
83
+ colors: b,
84
+ mode: u(x),
85
+ assets: de,
86
+ text: w
72
87
  }).extend({ version: i() });
73
- var ce = n({ css: i() }), w = se.partial(), T = C.partial().extend({
74
- productName: C.shape.productName.nullish(),
75
- shortName: C.shape.shortName.nullish()
76
- }), le = n({
77
- colors: y.nullish(),
78
- mode: u(b).nullish(),
79
- assets: w.nullish(),
80
- text: T.nullish()
88
+ var fe = n({ css: i() }), T = de.partial(), E = w.partial().extend({
89
+ productName: w.shape.productName.nullish(),
90
+ shortName: w.shape.shortName.nullish()
91
+ }), pe = n({
92
+ colors: b.nullish(),
93
+ mode: u(x).nullish(),
94
+ assets: T.nullish(),
95
+ text: E.nullish()
81
96
  });
82
97
  n({
83
- patch: le,
98
+ patch: pe,
84
99
  revision: i().min(1).max(64)
85
100
  });
86
- var E = (e) => e.optional().catch(void 0);
101
+ var D = (e) => e.optional().catch(void 0);
87
102
  n({
88
- colors: E(y.nullable()),
89
- mode: E(u(b).nullable()),
90
- assets: E(n({
91
- [x.LogoLight]: E(w.shape.logoLight),
92
- [x.LogoDark]: E(w.shape.logoDark),
93
- [x.Mark]: E(w.shape.mark),
94
- [x.EmailLogo]: E(w.shape.emailLogo),
95
- [x.EmailBanner]: E(w.shape.emailBanner)
103
+ colors: D(b.nullable()),
104
+ mode: D(u(x).nullable()),
105
+ assets: D(n({
106
+ [S.LogoLight]: D(T.shape.logoLight),
107
+ [S.LogoDark]: D(T.shape.logoDark),
108
+ [S.Mark]: D(T.shape.mark),
109
+ [S.EmailLogo]: D(T.shape.emailLogo),
110
+ [S.EmailBanner]: D(T.shape.emailBanner)
96
111
  }).nullable()),
97
- text: E(n({
98
- productName: E(T.shape.productName),
99
- shortName: E(T.shape.shortName),
100
- description: E(T.shape.description),
101
- productTagline: E(T.shape.productTagline),
102
- companyName: E(T.shape.companyName)
112
+ text: D(n({
113
+ productName: D(E.shape.productName),
114
+ shortName: D(E.shape.shortName),
115
+ description: D(E.shape.description),
116
+ productTagline: D(E.shape.productTagline),
117
+ companyName: D(E.shape.companyName)
103
118
  }).nullable())
104
- }), D({
105
- ...D({
119
+ }), O({
120
+ ...O({
106
121
  colors: {
107
122
  light: {
108
123
  brand: "#140e33",
@@ -115,13 +130,13 @@ n({
115
130
  info: "#86c8fb"
116
131
  }
117
132
  },
118
- mode: b.System,
133
+ mode: x.System,
119
134
  assets: {
120
- [x.LogoLight]: null,
121
- [x.LogoDark]: null,
122
- [x.Mark]: null,
123
- [x.EmailLogo]: null,
124
- [x.EmailBanner]: null
135
+ [S.LogoLight]: null,
136
+ [S.LogoDark]: null,
137
+ [S.Mark]: null,
138
+ [S.EmailLogo]: null,
139
+ [S.EmailBanner]: null
125
140
  },
126
141
  text: {
127
142
  productName: "Eight Wave Agent Studio",
@@ -139,15 +154,15 @@ n({
139
154
  companyName: null
140
155
  }
141
156
  });
142
- function D(e) {
157
+ function O(e) {
143
158
  if (e && typeof e == "object") {
144
- for (let t of Object.values(e)) D(t);
159
+ for (let t of Object.values(e)) O(t);
145
160
  Object.freeze(e);
146
161
  }
147
162
  return e;
148
163
  }
149
164
  // ../../packages/models/src/schema/DeviceContext.ts
150
- var ue = n({
165
+ var me = n({
151
166
  dateTime: i().optional(),
152
167
  timezone: i().optional(),
153
168
  language: i().optional(),
@@ -177,16 +192,16 @@ var ue = n({
177
192
  geolocationLongitude: s().optional(),
178
193
  geolocationAccuracy: s().optional(),
179
194
  geolocationCity: i().optional()
180
- }), de = "host", O = /^[a-z][a-z0-9_]{0,63}$/, fe = 2e3, pe = n({
195
+ }), he = "host", k = /^[a-z][a-z0-9_]{0,63}$/, ge = 2e3, _e = n({
181
196
  title: i().max(80).optional(),
182
197
  readOnlyHint: d().optional(),
183
198
  destructiveHint: d().optional()
184
199
  });
185
200
  n({
186
- name: i().regex(O),
187
- description: i().max(fe).optional(),
201
+ name: i().regex(k),
202
+ description: i().max(ge).optional(),
188
203
  inputSchema: h(i(), t()).refine((e) => e.type === "object", { message: "The input schema must describe an object" }),
189
- annotations: pe.optional()
204
+ annotations: _e.optional()
190
205
  }), n({
191
206
  content: c(n({
192
207
  type: l("text"),
@@ -194,33 +209,33 @@ n({
194
209
  })),
195
210
  isError: d().optional()
196
211
  });
197
- var me = n({
212
+ var ve = n({
198
213
  enabled: d().default(!1),
199
214
  label: i().max(40).default(""),
200
- allowed: c(i().regex(O)).max(32).default([]),
201
- requireConfirmation: c(i().regex(O)).default([]),
215
+ allowed: c(i().regex(k)).max(32).default([]),
216
+ requireConfirmation: c(i().regex(k)).default([]),
202
217
  confirmDestructive: d().default(!0),
203
218
  timeoutMs: s().int().min(5e3).max(12e4).default(3e4),
204
219
  maxCallsPerTurn: s().int().min(1).max(50).default(20)
205
- }), he = me.pick({
220
+ }), ye = ve.pick({
206
221
  label: !0,
207
222
  allowed: !0,
208
223
  requireConfirmation: !0,
209
224
  confirmDestructive: !0,
210
225
  timeoutMs: !0
211
- }).extend({ origins: c(i()) }), ge = (e) => {
226
+ }).extend({ origins: c(i()) }), be = (e) => {
212
227
  if (typeof e != "object" || !e) return !1;
213
228
  let { type: t, toolMetadata: n } = e;
214
229
  return t === "dynamic-tool" && n?.source === "host";
215
- }, _e = (e) => e ? "No result: the host app did not answer this call." : "Outcome unknown: the host app did not confirm this call. Check the current state with a read tool before repeating it.", ve = "The user refused this call. Do not repeat it unless the user asks.", k = /* @__PURE__ */ function(e) {
230
+ }, xe = (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.", Se = "The user refused this call. Do not repeat it unless the user asks.", A = /* @__PURE__ */ function(e) {
216
231
  return e.Off = "off", e.Read = "read", e.Forms = "forms", e.Full = "full", e;
217
- }({}), ye = [
218
- k.Off,
219
- k.Read,
220
- k.Forms,
221
- k.Full
222
- ], be = (e, t) => ye.indexOf(e ?? k.Off) >= ye.indexOf(t);
223
- function xe(e) {
232
+ }({}), Ce = [
233
+ A.Off,
234
+ A.Read,
235
+ A.Forms,
236
+ A.Full
237
+ ], we = (e, t) => Ce.indexOf(e ?? A.Off) >= Ce.indexOf(t);
238
+ function Te(e) {
224
239
  if (!e.trim()) return !1;
225
240
  if (typeof document > "u") return !0;
226
241
  try {
@@ -229,21 +244,21 @@ function xe(e) {
229
244
  return !1;
230
245
  }
231
246
  }
232
- var Se = n({
233
- level: u(k).default(k.Off),
234
- excludeSelectors: c(i().max(200).refine(xe, "Not a valid CSS selector")).max(50).default([]),
247
+ var Ee = n({
248
+ level: u(A).default(A.Off),
249
+ excludeSelectors: c(i().max(200).refine(Te, "Not a valid CSS selector")).max(50).default([]),
235
250
  confirmEveryAction: d().default(!1),
236
251
  pointer: d().default(!1),
237
252
  notice: h(i(), i().max(500)).optional(),
238
253
  acknowledgedBy: i().optional(),
239
254
  acknowledgedAt: f().optional(),
240
- acknowledgedLevel: u(k).optional()
241
- }), Ce = (e) => e.startsWith("page_") || e.startsWith("form_"), we = Se.pick({
255
+ acknowledgedLevel: u(A).optional()
256
+ }), De = (e) => e.startsWith("page_") || e.startsWith("form_"), Oe = Ee.pick({
242
257
  level: !0,
243
258
  excludeSelectors: !0,
244
259
  confirmEveryAction: !0,
245
260
  notice: !0
246
- }).extend({ pointer: d().optional() }), Te = ["fill-fields", "fill-choose"];
261
+ }).extend({ pointer: d().optional() }), ke = ["fill-fields", "fill-choose"];
247
262
  n({
248
263
  kind: u(["element", "text"]),
249
264
  label: i().max(200),
@@ -260,7 +275,7 @@ n({
260
275
  features: c(i().max(40)).max(16).default([])
261
276
  });
262
277
  // ../../packages/models/src/schema/Media.ts
263
- var A = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ee = new Set([
278
+ var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ae = new Set([
264
279
  [".mp3", "audio/mpeg"],
265
280
  [".m4a", "audio/mp4"],
266
281
  [".m4a", "audio/x-m4a"],
@@ -273,7 +288,7 @@ var A = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ee = new Set([
273
288
  [".opus", "audio/ogg"],
274
289
  [".flac", "audio/flac"],
275
290
  [".flac", "audio/x-flac"]
276
- ].map(([e]) => e)), De = /* @__PURE__ */ new Set([
291
+ ].map(([e]) => e)), je = /* @__PURE__ */ new Set([
277
292
  ".amr",
278
293
  ".3ga",
279
294
  ".aif",
@@ -283,10 +298,10 @@ var A = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ee = new Set([
283
298
  ".mka",
284
299
  ".weba",
285
300
  ".wma"
286
- ]), Oe = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", ke = (e, t) => {
287
- let n = We(e ?? "");
288
- return Oe(t).startsWith("audio/") || Ee.has(n) || De.has(n);
289
- }, j = [
301
+ ]), Me = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Ne = (e, t) => {
302
+ let n = Je(e ?? "");
303
+ return Me(t).startsWith("audio/") || Ae.has(n) || je.has(n);
304
+ }, M = [
290
305
  {
291
306
  extensions: [".html", ".htm"],
292
307
  mimeType: "text/html",
@@ -440,16 +455,16 @@ var A = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ee = new Set([
440
455
  ]
441
456
  }
442
457
  ];
443
- j.map((e) => e.mimeType);
444
- var Ae = (e) => j.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), je = (e, t) => {
458
+ M.map((e) => e.mimeType);
459
+ var Pe = (e) => M.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), Fe = (e, t) => {
445
460
  if (t.length === 0) return !0;
446
- let n = j.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
461
+ let n = M.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
447
462
  "",
448
463
  "application/octet-stream",
449
464
  "text/plain",
450
465
  ...n.flatMap((e) => e.aliases)
451
466
  ] : []);
452
- return e.length > 0 && e.every((e) => r.has(Oe(e)) || t.some((t) => e.includes(t)));
467
+ return e.length > 0 && e.every((e) => r.has(Me(e)) || t.some((t) => e.includes(t)));
453
468
  };
454
469
  n({
455
470
  status: u([
@@ -463,47 +478,47 @@ n({
463
478
  durationSeconds: s().optional(),
464
479
  model: i().optional()
465
480
  });
466
- var Me = /* @__PURE__ */ function(e) {
481
+ var Ie = /* @__PURE__ */ function(e) {
467
482
  return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
468
- }({}), Ne = n({
483
+ }({}), Le = n({
469
484
  type: l("azure-blob"),
470
485
  blobUri: e(),
471
486
  containerName: i().min(1),
472
487
  pathRelativeToContainer: i().min(1)
473
- }), Pe = n({
488
+ }), Re = n({
474
489
  type: l("s3"),
475
490
  bucket: i().min(1),
476
491
  key: i().min(1),
477
492
  region: i().min(1)
478
- }), Fe = p("type", [Ne, Pe]), M = n({
493
+ }), ze = p("type", [Le, Re]), N = n({
479
494
  type: i().min(1),
480
495
  name: i().min(1),
481
- mimeType: i().regex(A),
496
+ mimeType: i().regex(j),
482
497
  bytesCount: s().positive(),
483
498
  extension: i().regex(/^\.[a-zA-Z0-9]+$/).overwrite((e) => e.toLowerCase()),
484
499
  storedFileName: i().optional(),
485
500
  metadata: h(i(), i()).default({}),
486
501
  tags: h(i(), i()).default({})
487
502
  }).extend({
488
- storageHandle: Fe,
489
- storagePolicy: u(Me),
503
+ storageHandle: ze,
504
+ storagePolicy: u(Ie),
490
505
  signData: i().optional(),
491
506
  storedFileName: i().min(1)
492
- }), Ie = n({
507
+ }), Be = n({
493
508
  name: i().min(1),
494
- src: M,
495
- srcSet: c(M).default([]),
509
+ src: N,
510
+ srcSet: c(N).default([]),
496
511
  rawOptions: ee().optional()
497
512
  });
498
513
  n({
499
- src: M,
514
+ src: N,
500
515
  uploadHandle: n({
501
516
  uploadSasuri: e(),
502
517
  metadata: h(i(), i()).default({}),
503
518
  tags: h(i(), i()).default({})
504
519
  })
505
520
  }), n({
506
- src: M,
521
+ src: N,
507
522
  downloadHandle: n({
508
523
  downloadSasuri: e(),
509
524
  viewSasuri: e(),
@@ -512,35 +527,35 @@ n({
512
527
  type: i()
513
528
  })
514
529
  });
515
- var N = /* @__PURE__ */ function(e) {
530
+ var P = /* @__PURE__ */ function(e) {
516
531
  return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
517
- }({}), Le = n({
518
- type: l(N.picture),
532
+ }({}), Ve = n({
533
+ type: l(P.picture),
519
534
  width: s().positive(),
520
535
  height: s().positive(),
521
536
  blurhash: i().optional()
522
- }), Re = n({
523
- type: l(N.video),
537
+ }), He = n({
538
+ type: l(P.video),
524
539
  width: s().positive(),
525
540
  height: s().positive(),
526
541
  duration: s().nonnegative()
527
- }), ze = n({
528
- type: l(N.audio),
542
+ }), Ue = n({
543
+ type: l(P.audio),
529
544
  duration: s().nonnegative()
530
- }), Be = n({ type: l(N.office) }), Ve = n({ type: l(N.archive) }), He = n({ type: l(N.binary) }), Ue = n({ type: l(N.executable) });
545
+ }), We = n({ type: l(P.office) }), Ge = n({ type: l(P.archive) }), Ke = n({ type: l(P.binary) }), qe = n({ type: l(P.executable) });
531
546
  p("type", [
532
- Le,
533
- Re,
534
- ze,
535
- Be,
536
547
  Ve,
537
548
  He,
538
- Ue
549
+ Ue,
550
+ We,
551
+ Ge,
552
+ Ke,
553
+ qe
539
554
  ]);
540
- var We = (e) => {
555
+ var Je = (e) => {
541
556
  let t = e.lastIndexOf(".");
542
557
  return t === -1 ? "" : e.slice(t).toLowerCase();
543
- }, Ge = [
558
+ }, Ye = [
544
559
  "explain",
545
560
  "summarize",
546
561
  "rewrite",
@@ -548,11 +563,11 @@ var We = (e) => {
548
563
  "proofread",
549
564
  "translate",
550
565
  "chart"
551
- ], Ke = [
566
+ ], Xe = [
552
567
  "page",
553
568
  "word",
554
569
  "excel"
555
- ], P = {
570
+ ], F = {
556
571
  page: ["explain", "summarize"],
557
572
  word: [
558
573
  "rewrite",
@@ -565,8 +580,8 @@ var We = (e) => {
565
580
  "summarize",
566
581
  "chart"
567
582
  ]
568
- }, qe = /* @__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("."), Je = (e) => h(i(), i().trim().min(1).max(e));
569
- function Ye(e) {
583
+ }, Ze = /* @__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("."), Qe = (e) => h(i(), i().trim().min(1).max(e));
584
+ function $e(e) {
570
585
  let t = (e) => Object.keys(e ?? {}).filter((t) => !!e?.[t]?.trim()), n = t(e.label), r = t(e.prompt);
571
586
  return {
572
587
  empty: n.length === 0 && r.length === 0,
@@ -574,14 +589,14 @@ function Ye(e) {
574
589
  prompt: n.filter((e) => !r.includes(e))
575
590
  };
576
591
  }
577
- var Xe = n({
592
+ var et = n({
578
593
  id: i().trim().min(1).max(64),
579
- label: Je(40),
580
- prompt: Je(500),
581
- icon: u(qe).optional().catch(void 0)
594
+ label: Qe(40),
595
+ prompt: Qe(500),
596
+ icon: u(Ze).optional().catch(void 0)
582
597
  });
583
- function Ze(e, t, n = {}) {
584
- for (let r of Ke) {
598
+ function tt(e, t, n = {}) {
599
+ for (let r of Xe) {
585
600
  let i = e.selectionActions?.[r];
586
601
  if (i?.enabled && n[r] !== !1) for (let [e, n] of (i.actions ?? []).entries()) {
587
602
  let i = [
@@ -589,7 +604,7 @@ function Ze(e, t, n = {}) {
589
604
  r,
590
605
  "actions",
591
606
  e
592
- ], a = Ye(n);
607
+ ], a = $e(n);
593
608
  a.empty && t.addIssue({
594
609
  code: "custom",
595
610
  message: "An action needs a label and an instruction",
@@ -607,10 +622,10 @@ function Ze(e, t, n = {}) {
607
622
  }
608
623
  }
609
624
  }
610
- var F = (e, t) => n({
625
+ var I = (e, t) => n({
611
626
  enabled: d().default(t),
612
627
  builtIns: c(u(e)).default(() => [...e]),
613
- actions: c(Xe).default([])
628
+ actions: c(et).default([])
614
629
  }).refine((e) => new Set(e.builtIns).size === e.builtIns.length, {
615
630
  message: "A built-in action is listed twice",
616
631
  path: ["builtIns"]
@@ -620,208 +635,208 @@ var F = (e, t) => n({
620
635
  }).refine((e) => e.builtIns.length + e.actions.length <= 4, {
621
636
  message: "At most 4 actions, built-in and the agent's together",
622
637
  path: ["actions"]
623
- }), Qe = F(P.page, !1), $e = F(P.word, !0), et = F(P.excel, !0), tt = n({
624
- page: Qe.optional().default(() => Qe.parse({})),
625
- word: $e.optional().default(() => $e.parse({})),
626
- excel: et.optional().default(() => et.parse({}))
627
- }), I = n({
628
- builtIns: c(u(Ge)),
629
- actions: c(Xe)
630
- }), nt = n({
631
- page: I.optional(),
632
- word: I.optional(),
633
- excel: I.optional()
634
- }), L = /* @__PURE__ */ function(e) {
638
+ }), nt = I(F.page, !1), rt = I(F.word, !0), it = I(F.excel, !0), at = n({
639
+ page: nt.optional().default(() => nt.parse({})),
640
+ word: rt.optional().default(() => rt.parse({})),
641
+ excel: it.optional().default(() => it.parse({}))
642
+ }), L = n({
643
+ builtIns: c(u(Ye)),
644
+ actions: c(et)
645
+ }), ot = n({
646
+ page: L.optional(),
647
+ word: L.optional(),
648
+ excel: L.optional()
649
+ }), R = /* @__PURE__ */ function(e) {
635
650
  return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
636
- }({}), R = /* @__PURE__ */ function(e) {
651
+ }({}), z = /* @__PURE__ */ function(e) {
637
652
  return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
638
653
  }({});
639
- R.Organization, R.Restricted;
640
- var z = /* @__PURE__ */ function(e) {
654
+ z.Organization, z.Restricted;
655
+ var B = /* @__PURE__ */ function(e) {
641
656
  return e.Chat = "chat", e.Reasoning = "reasoning", e;
642
- }({}), B = /* @__PURE__ */ function(e) {
657
+ }({}), V = /* @__PURE__ */ function(e) {
643
658
  return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
644
- }({}), rt = [
659
+ }({}), st = [
645
660
  "none",
646
661
  "low",
647
662
  "medium",
648
663
  "high",
649
664
  "xhigh",
650
665
  "max"
651
- ], it = [
666
+ ], ct = [
652
667
  "low",
653
668
  "medium",
654
669
  "high",
655
670
  "xhigh",
656
671
  "max"
657
- ], at = [
672
+ ], lt = [
658
673
  "minimal",
659
674
  "low",
660
675
  "medium",
661
676
  "high"
662
- ], ot = [
677
+ ], ut = [
663
678
  "auto",
664
679
  "detailed",
665
680
  "concise"
666
- ], st = n({
667
- reasoningEffort: u(rt).optional(),
668
- reasoningSummary: u(ot).optional()
669
- }), ct = n({
681
+ ], dt = n({
682
+ reasoningEffort: u(st).optional(),
683
+ reasoningSummary: u(ut).optional()
684
+ }), ft = n({
670
685
  type: u([
671
686
  "adaptive",
672
687
  "enabled",
673
688
  "disabled"
674
689
  ]).optional(),
675
- effort: u(it).optional(),
690
+ effort: u(ct).optional(),
676
691
  display: u(["summarized", "omitted"]).optional(),
677
692
  budgetTokens: s().int().positive().optional()
678
- }), lt = n({
679
- thinkingLevel: u(at).optional(),
693
+ }), pt = n({
694
+ thinkingLevel: u(lt).optional(),
680
695
  thinkingBudget: s().int().optional(),
681
696
  includeThoughts: d().optional()
682
- }), ut = n({ type: u(["enabled", "disabled"]).optional() }), V = [
697
+ }), mt = n({ type: u(["enabled", "disabled"]).optional() }), H = [
683
698
  "alibaba",
684
699
  "meta",
685
700
  "moonshotai",
686
701
  "spacexai",
687
702
  "xiaomi",
688
703
  "zai"
689
- ], dt = [
704
+ ], ht = [
690
705
  "none",
691
706
  "minimal",
692
707
  "low",
693
708
  "medium",
694
709
  "high",
695
710
  "xhigh"
696
- ], H = n({ reasoningEffort: u(dt).optional() });
697
- function U(e, t) {
711
+ ], U = n({ reasoningEffort: u(ht).optional() });
712
+ function W(e, t) {
698
713
  return e && t.includes(e) ? e : void 0;
699
714
  }
700
- var ft = n({
701
- openai: st.optional(),
702
- anthropic: ct.optional(),
703
- google: lt.optional(),
704
- deepseek: ut.optional(),
705
- alibaba: H.optional(),
706
- meta: H.optional(),
707
- moonshotai: H.optional(),
708
- spacexai: H.optional(),
709
- xiaomi: H.optional(),
710
- zai: H.optional()
715
+ var gt = n({
716
+ openai: dt.optional(),
717
+ anthropic: ft.optional(),
718
+ google: pt.optional(),
719
+ deepseek: mt.optional(),
720
+ alibaba: U.optional(),
721
+ meta: U.optional(),
722
+ moonshotai: U.optional(),
723
+ spacexai: U.optional(),
724
+ xiaomi: U.optional(),
725
+ zai: U.optional()
711
726
  });
712
- function pt(e) {
727
+ function _t(e) {
713
728
  if (!e || typeof e != "object") return e;
714
729
  let t = e, n = [
715
730
  "openai",
716
731
  "anthropic",
717
732
  "google",
718
733
  "deepseek",
719
- ...V
734
+ ...H
720
735
  ].some((e) => e in t);
721
736
  if ("effort" in t && !n) {
722
737
  let e = t.effort, n = t.reasoningSummary, r = {};
723
738
  if (e && e !== "off" && e !== "none") {
724
- let t = U(e, rt), i = U(n, ot);
739
+ let t = W(e, st), i = W(n, ut);
725
740
  (t || i) && (r.openai = {
726
741
  ...t && { reasoningEffort: t },
727
742
  ...i && { reasoningSummary: i }
728
743
  });
729
- let a = U(e, it);
744
+ let a = W(e, ct);
730
745
  a && (r.anthropic = {
731
746
  type: "adaptive",
732
747
  effort: a
733
748
  });
734
- let o = U(e === "xhigh" || e === "max" ? "high" : e, at);
749
+ let o = W(e === "xhigh" || e === "max" ? "high" : e, lt);
735
750
  o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
736
- let s = U(e === "max" ? "xhigh" : e, dt);
737
- if (s) for (let e of V) r[e] = { reasoningEffort: s };
751
+ let s = W(e === "max" ? "xhigh" : e, ht);
752
+ if (s) for (let e of H) r[e] = { reasoningEffort: s };
738
753
  } else {
739
754
  r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
740
- for (let e of V) r[e] = { reasoningEffort: "none" };
755
+ for (let e of H) r[e] = { reasoningEffort: "none" };
741
756
  }
742
757
  return r;
743
758
  }
744
759
  return e;
745
760
  }
746
- var mt = g(t(), ft, pt).optional(), W = /* @__PURE__ */ function(e) {
761
+ var vt = g(t(), gt, _t).optional(), G = /* @__PURE__ */ function(e) {
747
762
  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;
748
- }({}), ht = "mcp-", gt = "api-", _t = "subagent-";
749
- function vt(e) {
750
- return e === W.RequestConfirm || e === W.ShowArtifact || e === W.ShowCalendarEvent || e === W.ShowChart || e === W.ShowComparison || e === W.ShowContactForm || e === W.ShowDiagram || e === W.ShowEmail || e === W.ShowImageGallery || e === W.ShowLocation || e === W.ShowMessage || e === W.ShowForm || e === W.ShowMultipleChoice || e === W.ShowProductList || e === W.ShowQrCode || e === W.ShowSources || e === W.ShowSuggestedReply || e === W.ShowVideo || e === W.ShowWeather || e === W.ShowWebPages;
763
+ }({}), yt = "mcp-", bt = "api-", xt = "subagent-";
764
+ function St(e) {
765
+ return e === G.RequestConfirm || e === G.ShowArtifact || e === G.ShowCalendarEvent || e === G.ShowChart || e === G.ShowComparison || e === G.ShowContactForm || e === G.ShowDiagram || e === G.ShowEmail || e === G.ShowImageGallery || e === G.ShowLocation || e === G.ShowMessage || e === G.ShowForm || e === G.ShowMultipleChoice || e === G.ShowProductList || e === G.ShowQrCode || e === G.ShowSources || e === G.ShowSuggestedReply || e === G.ShowVideo || e === G.ShowWeather || e === G.ShowWebPages;
751
766
  }
752
- var yt = /* @__PURE__ */ new Set([
767
+ var Ct = /* @__PURE__ */ new Set([
753
768
  "editSpreadsheet",
754
769
  "editWordDocument",
755
- W.CreateSpreadsheet,
756
- W.CreateWordDocument
770
+ G.CreateSpreadsheet,
771
+ G.CreateWordDocument
757
772
  ]);
758
773
  [
759
- W.RequestConfirm,
760
- W.ShowArtifact,
761
- W.ShowWeather,
762
- W.ShowLocation,
763
- W.ShowComparison,
764
- W.ShowProductList,
765
- W.ShowWebPages,
766
- W.ShowImageGallery,
767
- W.ShowVideo,
768
- W.ShowSources,
769
- W.ShowSuggestedReply,
770
- W.ShowCalendarEvent,
771
- W.ShowEmail,
772
- W.ShowMessage,
773
- W.ShowForm,
774
- ...yt,
775
- W.ShareDocument
774
+ G.RequestConfirm,
775
+ G.ShowArtifact,
776
+ G.ShowWeather,
777
+ G.ShowLocation,
778
+ G.ShowComparison,
779
+ G.ShowProductList,
780
+ G.ShowWebPages,
781
+ G.ShowImageGallery,
782
+ G.ShowVideo,
783
+ G.ShowSources,
784
+ G.ShowSuggestedReply,
785
+ G.ShowCalendarEvent,
786
+ G.ShowEmail,
787
+ G.ShowMessage,
788
+ G.ShowForm,
789
+ ...Ct,
790
+ G.ShareDocument
776
791
  ];
777
- var bt = /* @__PURE__ */ new Set([
778
- W.RequestConfirm,
779
- W.RequestGeolocation,
780
- W.ShowForm,
781
- W.ShowMultipleChoice,
792
+ var wt = /* @__PURE__ */ new Set([
793
+ G.RequestConfirm,
794
+ G.RequestGeolocation,
795
+ G.ShowForm,
796
+ G.ShowMultipleChoice,
782
797
  "requestOAuthConnection"
783
798
  ]);
784
- function xt(e) {
785
- return bt.has(e);
799
+ function Tt(e) {
800
+ return wt.has(e);
786
801
  }
787
- var St = /* @__PURE__ */ new Set([
788
- W.RequestConfirm,
789
- W.RequestGeolocation,
790
- W.ShowArtifact,
791
- W.ShowCalendarEvent,
792
- W.ShowChart,
793
- W.ShowContactForm,
794
- W.ShowComparison,
795
- W.ShowDiagram,
796
- W.ShowEmail,
797
- W.ShowForm,
798
- W.ShowImageGallery,
799
- W.ShowLocation,
800
- W.ShowMessage,
801
- W.ShowMultipleChoice,
802
- W.ShowProductList,
803
- W.ShowQrCode,
804
- W.ShowSources,
805
- W.ShowSuggestedReply,
806
- W.ShowVideo,
807
- W.ShowWeather,
808
- W.ShowWebPages
809
- ]), Ct = "Shown on the caller's screen";
810
- function wt(e) {
811
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Ct));
802
+ var Et = /* @__PURE__ */ new Set([
803
+ G.RequestConfirm,
804
+ G.RequestGeolocation,
805
+ G.ShowArtifact,
806
+ G.ShowCalendarEvent,
807
+ G.ShowChart,
808
+ G.ShowContactForm,
809
+ G.ShowComparison,
810
+ G.ShowDiagram,
811
+ G.ShowEmail,
812
+ G.ShowForm,
813
+ G.ShowImageGallery,
814
+ G.ShowLocation,
815
+ G.ShowMessage,
816
+ G.ShowMultipleChoice,
817
+ G.ShowProductList,
818
+ G.ShowQrCode,
819
+ G.ShowSources,
820
+ G.ShowSuggestedReply,
821
+ G.ShowVideo,
822
+ G.ShowWeather,
823
+ G.ShowWebPages
824
+ ]), Dt = "Shown on the caller's screen";
825
+ function Ot(e) {
826
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Dt));
812
827
  }
813
- var Tt = n({
828
+ var kt = n({
814
829
  maxSteps: s().int().min(1).max(10).optional().default(5),
815
830
  maxOptionsPerStep: s().int().min(2).max(10).optional().default(5)
816
- }), Et = /* @__PURE__ */ function(e) {
831
+ }), At = /* @__PURE__ */ function(e) {
817
832
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
818
- }({}), Dt = [
833
+ }({}), jt = [
819
834
  "perplexity_search",
820
835
  "parallel_search",
821
836
  "web_search",
822
837
  "openai_web_search",
823
838
  "google_search"
824
- ], Ot = n({
839
+ ], Mt = n({
825
840
  maxResults: s().int().min(1).max(20).optional(),
826
841
  maxTokens: s().int().positive().max(1e6).optional(),
827
842
  maxTokensPerPage: s().int().positive().optional(),
@@ -834,7 +849,7 @@ var Tt = n({
834
849
  "month",
835
850
  "year"
836
851
  ]).optional()
837
- }), kt = n({
852
+ }), Nt = n({
838
853
  mode: u(["one-shot", "agentic"]).optional(),
839
854
  maxResults: s().int().min(1).max(20).optional(),
840
855
  sourcePolicy: n({
@@ -847,7 +862,7 @@ var Tt = n({
847
862
  maxCharsTotal: s().int().positive().optional()
848
863
  }).optional(),
849
864
  fetchPolicy: n({ maxAgeSeconds: s().int().positive().optional() }).optional()
850
- }), At = n({
865
+ }), Pt = n({
851
866
  openai: n({}).optional(),
852
867
  anthropic: n({
853
868
  maxUses: s().int().positive().optional(),
@@ -862,29 +877,29 @@ var Tt = n({
862
877
  }).optional()
863
878
  }).optional(),
864
879
  google: n({}).optional()
865
- }), G = n({
880
+ }), K = n({
866
881
  enabled: d().default(!1),
867
- provider: u(Et).optional().default(Et.Native),
868
- perplexity: Ot.optional(),
869
- parallel: kt.optional(),
870
- native: At.optional()
871
- }), jt = n({ useAllUserKb: d().default(!1) }), Mt = n({ useAllUserFiles: d().default(!1) }), Nt = n({ enabled: d().default(!1) }), K = n({ enabled: d().default(!1) }), Pt = n({ tools: c(i()).default([]) }), Ft = n({
872
- disabled: c(u(W)).default([
873
- W.UserMemory,
874
- W.SearchInUserFiles,
875
- W.RunWorker,
876
- W.FetchTeamsChannelHistory,
877
- W.ScheduleWakeup
882
+ provider: u(At).optional().default(At.Native),
883
+ perplexity: Mt.optional(),
884
+ parallel: Nt.optional(),
885
+ native: Pt.optional()
886
+ }), Ft = n({ useAllUserKb: d().default(!1) }), It = n({ useAllUserFiles: d().default(!1) }), Lt = n({ enabled: d().default(!1) }), q = n({ enabled: d().default(!1) }), Rt = n({ tools: c(i()).default([]) }), zt = n({
887
+ disabled: c(u(G)).default([
888
+ G.UserMemory,
889
+ G.SearchInUserFiles,
890
+ G.RunWorker,
891
+ G.FetchTeamsChannelHistory,
892
+ G.ScheduleWakeup
878
893
  ]),
879
- showForm: Tt.optional().default(() => Tt.parse({})),
880
- webSearch: G.optional().default(() => G.parse({})),
881
- userMemory: jt.optional().default(() => jt.parse({})),
882
- userFiles: Mt.optional().default(() => Mt.parse({})),
883
- shareDocument: Nt.optional().default(() => Nt.parse({})),
884
- createSpreadsheet: K.optional().default(() => K.parse({})),
885
- createWordDocument: K.optional().default(() => K.parse({})),
886
- approval: Pt.optional().default(() => Pt.parse({}))
887
- }), q = n({
894
+ showForm: kt.optional().default(() => kt.parse({})),
895
+ webSearch: K.optional().default(() => K.parse({})),
896
+ userMemory: Ft.optional().default(() => Ft.parse({})),
897
+ userFiles: It.optional().default(() => It.parse({})),
898
+ shareDocument: Lt.optional().default(() => Lt.parse({})),
899
+ createSpreadsheet: q.optional().default(() => q.parse({})),
900
+ createWordDocument: q.optional().default(() => q.parse({})),
901
+ approval: Rt.optional().default(() => Rt.parse({}))
902
+ }), J = n({
888
903
  freshness: n({
889
904
  enabled: d().default(!1),
890
905
  scale: s().int().min(86400).max(31536e3).default(7776e3),
@@ -896,27 +911,27 @@ var Tt = n({
896
911
  diversity: s().min(0).max(1).default(.3),
897
912
  candidatesLimit: s().int().min(20).max(100).default(50)
898
913
  }).prefault({})
899
- }).prefault({}), It = n({
914
+ }).prefault({}), Bt = n({
900
915
  prompt: i().optional(),
901
916
  temperature: s().min(0).max(2).optional().default(.6),
902
917
  maxOutputTokens: s().positive().optional(),
903
918
  presencePenalty: s().min(-2).max(2).optional(),
904
919
  frequencyPenalty: s().min(-2).max(2).optional(),
905
- searchMode: u(B).optional().default(B.Balanced),
920
+ searchMode: u(V).optional().default(V.Balanced),
906
921
  limit: s().positive().max(100).optional().default(10),
907
922
  maxStepCount: s().int().min(1).max(40).optional().default(10),
908
- reasoning: mt,
909
- ranking: q.optional().default(() => q.parse({}))
910
- }), J = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), Lt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Rt = /* @__PURE__ */ function(e) {
923
+ reasoning: vt,
924
+ ranking: J.optional().default(() => J.parse({}))
925
+ }), Y = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), Vt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Ht = /* @__PURE__ */ function(e) {
911
926
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
912
- }({}), Y = /* @__PURE__ */ function(e) {
913
- return e.Floating = "floating", e.Copilot = "copilot", e;
914
927
  }({}), X = /* @__PURE__ */ function(e) {
915
- return e.Solid = "solid", e.Glass = "glass", e;
928
+ return e.Floating = "floating", e.Copilot = "copilot", e;
916
929
  }({}), Z = /* @__PURE__ */ function(e) {
930
+ return e.Solid = "solid", e.Glass = "glass", e;
931
+ }({}), Q = /* @__PURE__ */ function(e) {
917
932
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
918
- }({}), zt = Object.values(Z), Bt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
919
- function Vt(e) {
933
+ }({}), Ut = Object.values(Q), Wt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
934
+ function Gt(e) {
920
935
  let t = e.trim().toLowerCase();
921
936
  if (!t) return "";
922
937
  try {
@@ -925,15 +940,15 @@ function Vt(e) {
925
940
  return t;
926
941
  }
927
942
  }
928
- var Q = n({
929
- media: Ie.optional(),
943
+ var $ = n({
944
+ media: Be.optional(),
930
945
  logo: i().optional(),
931
946
  theme: u([
932
947
  "light",
933
948
  "dark",
934
949
  "auto"
935
950
  ]).optional().default("auto"),
936
- mainColor: i().regex(v).optional().default("#000000"),
951
+ mainColor: i().regex(y).optional().default("#000000"),
937
952
  textColor: u([
938
953
  "auto",
939
954
  "white",
@@ -944,33 +959,33 @@ var Q = n({
944
959
  "one",
945
960
  "two"
946
961
  ]).optional().default("auto"),
947
- glowSecondColor: i().regex(v).optional(),
962
+ glowSecondColor: i().regex(y).optional(),
948
963
  useColorsForAgentHeader: d().optional().default(!1),
949
- initialMessage: J.optional(),
950
- greeting: c(J).min(1).max(10).optional(),
951
- messagePlaceholder: J.optional(),
952
- dismissableNotice: J.optional(),
953
- footerMessage: J.optional(),
954
- privacyPolicyNotice: J.optional(),
964
+ initialMessage: Y.optional(),
965
+ greeting: c(Y).min(1).max(10).optional(),
966
+ messagePlaceholder: Y.optional(),
967
+ dismissableNotice: Y.optional(),
968
+ footerMessage: Y.optional(),
969
+ privacyPolicyNotice: Y.optional(),
955
970
  interactiveLogin: d().optional().default(!0),
956
971
  welcomePopup: d().optional().default(!1),
957
972
  floatingButtonPosition: u(["left", "right"]).optional().default("right"),
958
- layout: u(Y).optional().default(Y.Floating),
959
- appearance: u(X).optional().default(X.Solid),
973
+ layout: u(X).optional().default(X.Floating),
974
+ appearance: u(Z).optional().default(Z.Solid),
960
975
  hideFloatingButton: d().optional().default(!1),
961
976
  workingGlow: d().optional().default(!0),
962
977
  copilotPageCss: i().optional(),
963
978
  maxMessageLength: s().int().positive().optional(),
964
- widgetUrl: e().default(Lt),
979
+ widgetUrl: e().default(Vt),
965
980
  loadDelay: s().int().min(0).max(3e4).optional().default(0),
966
- loaderStrategy: u(Rt).optional().default(Rt.InlineModule),
981
+ loaderStrategy: u(Ht).optional().default(Ht.InlineModule),
967
982
  customCss: i().optional(),
968
983
  smoothStream: d().optional().default(!1),
969
984
  showExtendedSteps: d().optional().default(!1),
970
985
  showReasoning: d().optional().default(!0),
971
986
  holdExternalImages: d().optional().default(!1),
972
- imageHosts: c(i().overwrite(Vt).refine((e) => e === "" || Bt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
973
- }), Ht = [
987
+ imageHosts: c(i().overwrite(Gt).refine((e) => e === "" || Wt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
988
+ }), Kt = [
974
989
  "image/jpeg",
975
990
  "image/png",
976
991
  "image/gif",
@@ -979,19 +994,20 @@ var Q = n({
979
994
  "text/plain",
980
995
  "text/markdown",
981
996
  "text/csv"
982
- ], Ut = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Wt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", $ = n({
997
+ ], qt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Jt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Yt = n({
983
998
  enabled: d().default(!1),
984
999
  maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
985
- allowedMimeTypes: c(i().regex(A)).optional().default([...Ht]),
1000
+ allowedMimeTypes: c(i().regex(j)).optional().default([...Kt]),
986
1001
  maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
987
1002
  maxFilesPerChat: s().int().positive().max(50).optional().default(20)
988
- }), Gt = n({
1003
+ }), Xt = n({
989
1004
  zeroDataRetention: d().default(!0),
990
1005
  disallowPromptTraining: d().default(!0),
991
- providerTimeoutMs: s().int().min(1e3).max(789e3).optional()
992
- }), Kt = n({ enabled: d().default(!1) }), qt = /* @__PURE__ */ function(e) {
1006
+ providerTimeoutMs: s().int().min(1e3).max(789e3).optional(),
1007
+ inferenceRegion: u(se).optional()
1008
+ }), Zt = n({ enabled: d().default(!1) }), Qt = /* @__PURE__ */ function(e) {
993
1009
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
994
- }({}), Jt = n({ mode: u(qt).default(qt.Off) }), Yt = n({
1010
+ }({}), $t = n({ mode: u(Qt).default(Qt.Off) }), en = n({
995
1011
  enabled: d().default(!1),
996
1012
  voiceId: i().optional(),
997
1013
  language: i().min(2).max(5).default("it"),
@@ -1010,44 +1026,44 @@ var Q = n({
1010
1026
  providerAgentId: i().optional(),
1011
1027
  providerSecretId: i().optional(),
1012
1028
  providerApiKeyId: i().optional()
1013
- }), Xt = n({ enabled: d() }), Zt = l("automatic");
1029
+ }), tn = n({ enabled: d() }), nn = l("automatic");
1014
1030
  n({
1015
1031
  chatId: i().min(1).optional(),
1016
- deviceContext: ue.optional(),
1032
+ deviceContext: me.optional(),
1017
1033
  externalContext: h(i(), t()).optional(),
1018
1034
  pageTools: t().optional(),
1019
- confirmations: Zt.optional()
1035
+ confirmations: nn.optional()
1020
1036
  });
1021
- var Qt = n({
1037
+ var rn = n({
1022
1038
  sessionId: i(),
1023
1039
  signedUrl: i(),
1024
1040
  providerAgentId: i(),
1025
1041
  chatId: i(),
1026
1042
  maxSessionSeconds: s().int()
1027
- }), $t = n({
1043
+ }), an = n({
1028
1044
  voiceId: i(),
1029
1045
  name: i(),
1030
1046
  category: i().optional(),
1031
1047
  previewUrl: i().optional(),
1032
1048
  labels: h(i(), i()).optional()
1033
1049
  });
1034
- c($t);
1035
- var en = n({ allowAutomatic: d().default(!1) }), tn = n({ allowAutomatic: l(!0) }), nn = n({
1036
- model: It,
1037
- interface: Q,
1038
- tools: Ft.optional().default(() => Ft.parse({})),
1039
- fileUpload: $.optional().default(() => $.parse({})),
1040
- gatewayOptions: Gt.optional().default(() => Gt.parse({})),
1041
- channels: c(u(Z)).optional().default(() => [...zt]),
1050
+ c(an);
1051
+ var on = n({ allowAutomatic: d().default(!1) }), sn = n({ allowAutomatic: l(!0) }), cn = n({
1052
+ model: Bt,
1053
+ interface: $,
1054
+ tools: zt.optional().default(() => zt.parse({})),
1055
+ fileUpload: Yt.optional().default(() => Yt.parse({})),
1056
+ gatewayOptions: Xt.optional().default(() => Xt.parse({})),
1057
+ channels: c(u(Q)).optional().default(() => [...Ut]),
1042
1058
  externalContextSchema: re.optional(),
1043
- openaiApi: Kt.optional().default(() => Kt.parse({})),
1044
- voice: Yt.optional().default(() => Yt.parse({})),
1045
- toolWorkingSet: Jt.optional().default(() => Jt.parse({})),
1046
- hostTools: me.optional(),
1047
- pageAccess: Se.optional(),
1048
- confirmations: en.optional(),
1049
- selectionActions: tt.optional()
1050
- }), rn = n({
1059
+ openaiApi: Zt.optional().default(() => Zt.parse({})),
1060
+ voice: en.optional().default(() => en.parse({})),
1061
+ toolWorkingSet: $t.optional().default(() => $t.parse({})),
1062
+ hostTools: ve.optional(),
1063
+ pageAccess: Ee.optional(),
1064
+ confirmations: on.optional(),
1065
+ selectionActions: at.optional()
1066
+ }), ln = n({
1051
1067
  rateLimits: n({
1052
1068
  minuteRateLimit: s().int().min(0).optional(),
1053
1069
  hourRateLimit: s().int().min(0).optional(),
@@ -1062,15 +1078,15 @@ n({
1062
1078
  prompt: i().optional(),
1063
1079
  model: i().optional(),
1064
1080
  fallbackModels: c(i()).default([]),
1065
- status: u(L).default(L.Draft),
1066
- visibility: u(R).default(R.Organization),
1067
- settings: nn.superRefine((e, t) => Ze(e, t, {
1068
- page: (e.pageAccess?.level ?? k.Off) !== k.Off,
1069
- word: !e.tools.disabled.includes(W.WordDocument),
1070
- excel: !e.tools.disabled.includes(W.Spreadsheet)
1081
+ status: u(R).default(R.Draft),
1082
+ visibility: u(z).default(z.Organization),
1083
+ settings: cn.superRefine((e, t) => tt(e, t, {
1084
+ page: (e.pageAccess?.level ?? A.Off) !== A.Off,
1085
+ word: !e.tools.disabled.includes(G.WordDocument),
1086
+ excel: !e.tools.disabled.includes(G.Spreadsheet)
1071
1087
  })),
1072
- security: rn.nullish(),
1073
- type: u(z).default(z.Chat),
1088
+ security: ln.nullish(),
1089
+ type: u(B).default(B.Chat),
1074
1090
  organizationId: i()
1075
1091
  }), o(() => n({
1076
1092
  id: i(),
@@ -1078,11 +1094,11 @@ n({
1078
1094
  prompt: i(),
1079
1095
  model: i(),
1080
1096
  fallbackModels: c(i()).nullable().default([]),
1081
- status: u(L).default(L.Draft),
1082
- visibility: u(R).default(R.Organization),
1083
- settings: nn,
1084
- security: rn.nullable(),
1085
- type: u(z).default(z.Chat),
1097
+ status: u(R).default(R.Draft),
1098
+ visibility: u(z).default(z.Organization),
1099
+ settings: cn,
1100
+ security: ln.nullable(),
1101
+ type: u(B).default(B.Chat),
1086
1102
  organizationId: i(),
1087
1103
  createdAt: f(),
1088
1104
  createdBy: i(),
@@ -1094,25 +1110,25 @@ n({
1094
1110
  outOfBudget: d().optional().default(!1),
1095
1111
  outOfBudgetReason: i().optional().default("")
1096
1112
  }));
1097
- var an = n({
1113
+ var un = n({
1098
1114
  id: i(),
1099
1115
  name: i(),
1100
- status: u(L),
1101
- visibility: u(R),
1116
+ status: u(R),
1117
+ visibility: u(z),
1102
1118
  organizationId: i(),
1103
- interface: Q,
1119
+ interface: $,
1104
1120
  createdAt: f(),
1105
1121
  updatedAt: f(),
1106
1122
  capabilities: n({
1107
- fileUpload: $,
1108
- voice: Xt,
1109
- hostTools: he.optional(),
1110
- pageAccess: we.optional(),
1111
- confirmations: tn.optional(),
1112
- selectionActions: nt.optional()
1123
+ fileUpload: Yt,
1124
+ voice: tn,
1125
+ hostTools: ye.optional(),
1126
+ pageAccess: Oe.optional(),
1127
+ confirmations: sn.optional(),
1128
+ selectionActions: ot.optional()
1113
1129
  }),
1114
- channels: c(u(Z)).default(() => [...zt])
1115
- }), on = Q.pick({
1130
+ channels: c(u(Q)).default(() => [...Ut])
1131
+ }), dn = $.pick({
1116
1132
  logo: !0,
1117
1133
  mainColor: !0,
1118
1134
  textColor: !0,
@@ -1123,41 +1139,41 @@ var an = n({
1123
1139
  hideFloatingButton: !0,
1124
1140
  copilotPageCss: !0,
1125
1141
  customCss: !0
1126
- }), sn = an.pick({
1142
+ }), fn = un.pick({
1127
1143
  id: !0,
1128
1144
  name: !0,
1129
1145
  organizationId: !0
1130
- }).extend({ interface: on }), cn = n({
1146
+ }).extend({ interface: dn }), pn = n({
1131
1147
  emailPassword: d(),
1132
1148
  google: d(),
1133
1149
  microsoft: d()
1134
- }), ln = n({
1150
+ }), mn = n({
1135
1151
  requiresAuth: l(!1),
1136
- agent: an,
1152
+ agent: un,
1137
1153
  branding: r()
1138
- }), un = n({
1154
+ }), hn = n({
1139
1155
  requiresAuth: l(!0),
1140
1156
  agent: r(),
1141
- branding: sn
1157
+ branding: fn
1142
1158
  });
1143
- p("requiresAuth", [ln, un]);
1144
- var dn = n({
1159
+ p("requiresAuth", [mn, hn]);
1160
+ var gn = n({
1145
1161
  frontendUrl: i().optional(),
1146
1162
  telemetry: n({
1147
1163
  environment: i(),
1148
1164
  samplingRate: s().min(0).max(1)
1149
1165
  }).nullable()
1150
- }), fn = n({
1151
- authMethods: cn,
1152
- deploymentBranding: ce.nullish(),
1153
- deployment: dn.optional()
1166
+ }), _n = n({
1167
+ authMethods: pn,
1168
+ deploymentBranding: fe.nullish(),
1169
+ deployment: gn.optional()
1154
1170
  });
1155
- p("requiresAuth", [ln.extend(fn.shape), un.extend(fn.shape)]), n({
1171
+ p("requiresAuth", [mn.extend(_n.shape), hn.extend(_n.shape)]), n({
1156
1172
  id: m(),
1157
1173
  limited: d(),
1158
1174
  agentIds: c(m())
1159
1175
  });
1160
- var pn = n({
1176
+ var vn = n({
1161
1177
  userId: m(),
1162
1178
  name: i(),
1163
1179
  email: i(),
@@ -1168,7 +1184,7 @@ var pn = n({
1168
1184
  });
1169
1185
  n({
1170
1186
  id: m(),
1171
- members: c(pn)
1187
+ members: c(vn)
1172
1188
  }), n({
1173
1189
  id: m(),
1174
1190
  userIds: c(m())
@@ -1185,11 +1201,11 @@ n({
1185
1201
  "model"
1186
1202
  ]),
1187
1203
  ..._.filters(["done", "type"]),
1188
- "filter[status]": u(L).optional(),
1204
+ "filter[status]": u(R).optional(),
1189
1205
  ..._.filter("id"),
1190
1206
  ..._.fullText(),
1191
1207
  ..._.ids()
1192
1208
  });
1193
- export { k as A, _ as B, Vt as C, Ae as D, je as E, de as F, _e as I, ge as L, xe as M, be as N, ke as O, ve as P, ue as R, wt as S, Ie as T, Qt as _, mt as a, vt as b, X as c, Zt as d, ht as f, St as g, bt as h, q as i, Ce as j, Te as k, Y as l, _t as m, W as n, B as o, Ut as p, Gt as r, G as s, gt as t, yt as u, Dt as v, A as w, xt as x, Wt as y, g as z };
1209
+ export { A, ce as B, Gt as C, Pe as D, Fe as E, he as F, g as H, xe as I, be as L, Te as M, we as N, Ne as O, Se as P, me as R, Ot as S, Be as T, _ as U, v as V, rn as _, vt as a, St as b, Z as c, nn as d, yt as f, Et as g, wt as h, J as i, De as j, ke as k, X as l, xt as m, G as n, V as o, qt as p, Xt as r, K as s, bt as t, Ct as u, jt as v, j as w, Tt as x, Jt as y, le as z };
1194
1210
 
1195
- //# sourceMappingURL=Agent-DMvYDpLa.js.map
1211
+ //# sourceMappingURL=Agent-CekUHTMX.js.map