@8wave/ai-elements 0.101.0 → 0.102.0

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 (78) hide show
  1. package/dist/_chunks/{Agent-DMCeO6o-.js → Agent-Cq-9OZHI.js} +77 -65
  2. package/dist/_chunks/Agent-Cq-9OZHI.js.map +1 -0
  3. package/dist/_chunks/{Document-C1Fp99qu.js → Document-s7Ct8xXa.js} +2 -2
  4. package/dist/_chunks/{Document-C1Fp99qu.js.map → Document-s7Ct8xXa.js.map} +1 -1
  5. package/dist/_chunks/{Media-c-RubI3_.js → Media-CMWDdtLL.js} +2 -2
  6. package/dist/_chunks/Media-CMWDdtLL.js.map +1 -0
  7. package/dist/_chunks/{PkToolRequestGeolocation-OZYwTIls.js → PkToolRequestGeolocation-hAaQJW-t.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestGeolocation-OZYwTIls.js.map → PkToolRequestGeolocation-hAaQJW-t.js.map} +1 -1
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-HmWtu2b3.js → PkToolRequestOAuthConnection-Bf_zoT2r.js} +2 -2
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-HmWtu2b3.js.map → PkToolRequestOAuthConnection-Bf_zoT2r.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowForm-BzopoW7z.js → PkToolShowForm-CdUUAjPc.js} +2 -2
  12. package/dist/_chunks/{PkToolShowForm-BzopoW7z.js.map → PkToolShowForm-CdUUAjPc.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowSources-Blw5XOA7.js → PkToolShowSources-U7etupUP.js} +2 -2
  14. package/dist/_chunks/{PkToolShowSources-Blw5XOA7.js.map → PkToolShowSources-U7etupUP.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowSuggestedReply-nsXsvLUW.js → PkToolShowSuggestedReply-BvHgjMQ4.js} +2 -2
  16. package/dist/_chunks/{PkToolShowSuggestedReply-nsXsvLUW.js.map → PkToolShowSuggestedReply-BvHgjMQ4.js.map} +1 -1
  17. package/dist/ai-elements.es.js +6006 -5923
  18. package/dist/ai-elements.es.js.map +1 -1
  19. package/dist-vue/PkChatbot.js +1 -1
  20. package/dist-vue/PkChatbotMessages.js +1 -1
  21. package/dist-vue/PkChatbotViewChat.js +1 -1
  22. package/dist-vue/PkChatbotViewConversations.js +1 -1
  23. package/dist-vue/PkChatbotViewFiles.js +1 -1
  24. package/dist-vue/PkChatbotViewProfile.js +1 -1
  25. package/dist-vue/_chunks/{Agent-WEwgRwnY.js → Agent-Cy-XE9N1.js} +77 -66
  26. package/dist-vue/_chunks/Agent-Cy-XE9N1.js.map +1 -0
  27. package/dist-vue/_chunks/{Document-Vx3oKWp3.js → Document-B6xVkCfQ.js} +8 -8
  28. package/dist-vue/_chunks/{Document-Vx3oKWp3.js.map → Document-B6xVkCfQ.js.map} +1 -1
  29. package/dist-vue/_chunks/{PkChatbot-1Y7fGR-C.js → PkChatbot-CHe6t-LR.js} +6 -6
  30. package/dist-vue/_chunks/{PkChatbot-1Y7fGR-C.js.map → PkChatbot-CHe6t-LR.js.map} +1 -1
  31. package/dist-vue/_chunks/{PkChatbotMessages-C6X92Igt.js → PkChatbotMessages-CWPSx2ce.js} +8 -8
  32. package/dist-vue/_chunks/{PkChatbotMessages-C6X92Igt.js.map → PkChatbotMessages-CWPSx2ce.js.map} +1 -1
  33. package/dist-vue/_chunks/{PkChatbotViewChat-CBvcSg0J.js → PkChatbotViewChat-DeeGCFJf.js} +2674 -2651
  34. package/dist-vue/_chunks/PkChatbotViewChat-DeeGCFJf.js.map +1 -0
  35. package/dist-vue/_chunks/{PkChatbotViewConversations-BT5ojZEm.js → PkChatbotViewConversations-DXwqumyn.js} +2 -2
  36. package/dist-vue/_chunks/{PkChatbotViewConversations-BT5ojZEm.js.map → PkChatbotViewConversations-DXwqumyn.js.map} +1 -1
  37. package/dist-vue/_chunks/{PkChatbotViewFiles-DHzFAQZP.js → PkChatbotViewFiles-B4u87oH6.js} +3 -3
  38. package/dist-vue/_chunks/{PkChatbotViewFiles-DHzFAQZP.js.map → PkChatbotViewFiles-B4u87oH6.js.map} +1 -1
  39. package/dist-vue/_chunks/{PkChatbotViewProfile-DgN0Pydw.js → PkChatbotViewProfile-C_A0AP8x.js} +2 -2
  40. package/dist-vue/_chunks/{PkChatbotViewProfile-DgN0Pydw.js.map → PkChatbotViewProfile-C_A0AP8x.js.map} +1 -1
  41. package/dist-vue/_chunks/{PkToolRequestGeolocation-B1K2fN7U.js → PkToolRequestGeolocation-CaHo_418.js} +2 -2
  42. package/dist-vue/_chunks/{PkToolRequestGeolocation-B1K2fN7U.js.map → PkToolRequestGeolocation-CaHo_418.js.map} +1 -1
  43. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-D-qoxuPc.js → PkToolRequestOAuthConnection-URjYDFhm.js} +2 -2
  44. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-D-qoxuPc.js.map → PkToolRequestOAuthConnection-URjYDFhm.js.map} +1 -1
  45. package/dist-vue/_chunks/{PkToolShowDiagram-BvOy4aeQ.js → PkToolShowDiagram-CuQyY0uv.js} +2 -2
  46. package/dist-vue/_chunks/{PkToolShowDiagram-BvOy4aeQ.js.map → PkToolShowDiagram-CuQyY0uv.js.map} +1 -1
  47. package/dist-vue/_chunks/{PkToolShowForm-BzzeoKss.js → PkToolShowForm-vXgu3bZO.js} +2 -2
  48. package/dist-vue/_chunks/{PkToolShowForm-BzzeoKss.js.map → PkToolShowForm-vXgu3bZO.js.map} +1 -1
  49. package/dist-vue/_chunks/{PkToolShowSources-DdfHFaPA.js → PkToolShowSources-Die_j1bn.js} +2 -2
  50. package/dist-vue/_chunks/{PkToolShowSources-DdfHFaPA.js.map → PkToolShowSources-Die_j1bn.js.map} +1 -1
  51. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DSd1dnZM.js → PkToolShowSuggestedReply-CryAdy6t.js} +2 -2
  52. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DSd1dnZM.js.map → PkToolShowSuggestedReply-CryAdy6t.js.map} +1 -1
  53. package/dist-vue/_chunks/{createChatbotApiClient-xbpuy6e1.js → createChatbotApiClient-CoTSUkuj.js} +107 -99
  54. package/dist-vue/_chunks/createChatbotApiClient-CoTSUkuj.js.map +1 -0
  55. package/dist-vue/_chunks/{useChatbotStore-DWLLr7sg.js → useChatbotStore-BcLvyaIV.js} +1043 -1014
  56. package/dist-vue/_chunks/{useChatbotStore-DWLLr7sg.js.map → useChatbotStore-BcLvyaIV.js.map} +1 -1
  57. package/dist-vue/api.js +1 -1
  58. package/dist-vue/composables.js +2 -2
  59. package/dist-vue/index.js +63 -63
  60. package/dist-vue/index.js.map +1 -1
  61. package/dist-vue/locales.js +2 -0
  62. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +2 -2
  63. package/dist-vue/packages/components/src/chat/PkReasoningSettings.d.ts +2 -2
  64. package/dist-vue/packages/components/src/chat/PkVoiceSession.d.ts +12 -0
  65. package/dist-vue/packages/components/src/chat/useVoiceSession.d.ts +7 -0
  66. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +40 -10
  67. package/dist-vue/packages/models/src/schema/Agent.d.ts +39 -7
  68. package/dist-vue/packages/models/src/schema/AgentChatStatistics.d.ts +42 -0
  69. package/dist-vue/packages/models/src/schema/Chat.d.ts +46 -1
  70. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +2 -2
  71. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +2 -2
  72. package/dist-vue/packages/models/src/schema/constants.d.ts +7 -3
  73. package/package.json +1 -1
  74. package/dist/_chunks/Agent-DMCeO6o-.js.map +0 -1
  75. package/dist/_chunks/Media-c-RubI3_.js.map +0 -1
  76. package/dist-vue/_chunks/Agent-WEwgRwnY.js.map +0 -1
  77. package/dist-vue/_chunks/PkChatbotViewChat-CBvcSg0J.js.map +0 -1
  78. package/dist-vue/_chunks/createChatbotApiClient-xbpuy6e1.js.map +0 -1
package/dist-vue/api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/createChatbotApiClient-xbpuy6e1.js";
1
+ import { t as e } from "./_chunks/createChatbotApiClient-CoTSUkuj.js";
2
2
  export { e as createChatbotApiClient };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./_chunks/createChatbotApiClient-xbpuy6e1.js";
2
- import { n as t } from "./_chunks/useChatbotStore-DWLLr7sg.js";
1
+ import { t as e } from "./_chunks/createChatbotApiClient-CoTSUkuj.js";
2
+ import { r as t } from "./_chunks/useChatbotStore-BcLvyaIV.js";
3
3
  import { t as n } from "./_chunks/src-BbpxM17m.js";
4
4
  import { t as r } from "./_chunks/useLocalizedString-PfaKjIQY.js";
5
5
  import { g as i } from "./_chunks/utils-CgxndZld.js";
package/dist-vue/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { t as e } from "./_chunks/rolldown-runtime-Dy4uBu1J.js";
2
- import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-BzzeoKss.js";
2
+ import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-vXgu3bZO.js";
3
3
  import { S as i, _ as a, b as o, g as s, h as c, n as l, v as u } from "./_chunks/schemas-COkEQ0wM.js";
4
4
  import { i as d, r as f } from "./_chunks/Media-yi949VrV.js";
5
- import { A as p, C as m, N as h, S as g, T as _, _ as v, b as y, d as b, g as x, h as S, i as C, m as w, n as T, o as ee, p as te, r as ne, t as re, v as ie, w as ae, x as oe } from "./_chunks/Agent-WEwgRwnY.js";
6
- import { r as se, t as ce } from "./_chunks/Document-Vx3oKWp3.js";
7
- import { n as le } from "./_chunks/createChatbotApiClient-xbpuy6e1.js";
5
+ import { C as p, E as m, F as h, M as g, S as _, T as v, _ as y, d as b, g as x, h as S, i as C, m as w, n as T, o as ee, p as te, r as ne, t as re, v as ie, w as ae, x as oe } from "./_chunks/Agent-Cy-XE9N1.js";
6
+ import { r as se, t as ce } from "./_chunks/Document-B6xVkCfQ.js";
7
+ import { n as le } from "./_chunks/createChatbotApiClient-CoTSUkuj.js";
8
8
  import { t as ue } from "./_chunks/PkChatbotAuth-CqwTN8ih.js";
9
9
  import { t as de } from "./_chunks/PkChatbotError-B2iob9cQ.js";
10
10
  import { t as fe } from "./_chunks/PkStreamingMarkdown-BBni7OTn.js";
11
- import { a as pe, i as me, n as he, r as ge } from "./_chunks/useChatbotStore-DWLLr7sg.js";
11
+ import { a as pe, i as me, o as he, r as ge } from "./_chunks/useChatbotStore-BcLvyaIV.js";
12
12
  import "./_chunks/src-BbpxM17m.js";
13
13
  import { c as _e, i as ve, s as ye } from "./_chunks/message-RohfrdWS.js";
14
- import { i as be, n as xe, r as Se, t as Ce } from "./_chunks/PkChatbotMessages-C6X92Igt.js";
14
+ import { i as be, n as xe, r as Se, t as Ce } from "./_chunks/PkChatbotMessages-CWPSx2ce.js";
15
15
  import { t as we } from "./_chunks/useSafeLocalStorage-D5Aa7nQY.js";
16
16
  import { t as Te } from "./_chunks/useDialogConfirm-CMTIKoWn.js";
17
- import { n as Ee, r as De, t as Oe } from "./_chunks/PkChatbotViewConversations-BT5ojZEm.js";
18
- import { i as ke, n as Ae, r as je, t as Me } from "./_chunks/PkChatbotViewChat-CBvcSg0J.js";
17
+ import { n as Ee, r as De, t as Oe } from "./_chunks/PkChatbotViewConversations-DXwqumyn.js";
18
+ import { i as ke, n as Ae, r as je, t as Me } from "./_chunks/PkChatbotViewChat-DeeGCFJf.js";
19
19
  import { t as Ne } from "./_chunks/useImageFallback-5vQIO0pC.js";
20
20
  import { t as Pe } from "./_chunks/useLocalizedString-PfaKjIQY.js";
21
21
  import { n as Fe, t as Ie } from "./_chunks/PkRelativeTime--1cIphlA.js";
@@ -34,9 +34,9 @@ import { n as an, t as on } from "./_chunks/PkChatbotSteps-DlZpwc_a.js";
34
34
  import { t as sn } from "./_chunks/PkChatbotStepToolDetail-BBX4KL3d.js";
35
35
  import { n as cn, t as ln } from "./_chunks/PkChatbotInput-CpSSAW2z.js";
36
36
  import { t as un } from "./_chunks/PkChatbotEmptyState-Brs9qhwj.js";
37
- import { t as dn } from "./_chunks/PkChatbotViewProfile-DgN0Pydw.js";
38
- import { t as fn } from "./_chunks/PkChatbot-1Y7fGR-C.js";
39
- import { i as pn, r as mn, t as hn } from "./_chunks/PkToolShowSources-DdfHFaPA.js";
37
+ import { t as dn } from "./_chunks/PkChatbotViewProfile-C_A0AP8x.js";
38
+ import { t as fn } from "./_chunks/PkChatbot-CHe6t-LR.js";
39
+ import { i as pn, r as mn, t as hn } from "./_chunks/PkToolShowSources-Die_j1bn.js";
40
40
  import { t as gn } from "./_chunks/PkToolShowEmail-tUYlAzar.js";
41
41
  import { t as _n } from "./_chunks/PkToolShowMessage-BezAdT5s.js";
42
42
  import { t as vn } from "./_chunks/PkToolShowWebPages-Bu9cxKIk.js";
@@ -47,7 +47,7 @@ import { t as Sn } from "./_chunks/PkToolShowComparison-D0iMf7JW.js";
47
47
  import { t as Cn } from "./_chunks/PkToolShowLocation-BBdeY0Ae.js";
48
48
  import { t as wn } from "./_chunks/PkToolShowQrCode-DEAvfLFu.js";
49
49
  import { t as Tn } from "./_chunks/PkToolShowImageGallery-6MmMV2y_.js";
50
- import { t as En } from "./_chunks/PkToolShowSuggestedReply-DSd1dnZM.js";
50
+ import { t as En } from "./_chunks/PkToolShowSuggestedReply-CryAdy6t.js";
51
51
  import { VvAccordion as Dn, VvAccordionGroup as On, VvAlert as kn, VvAlertGroup as An, VvBadge as jn, VvButton as Mn, VvButtonGroup as Nn, VvCheckbox as Pn, VvCombobox as Fn, VvDialog as In, VvDropdown as Ln, VvDropdownAction as Rn, VvIcon as zn, VvInputFile as Bn, VvInputText as Vn, VvTab as Hn, VvTooltip as Un } from "@volverjs/ui-vue/components";
52
52
  import { Fragment as k, Teleport as Wn, Transition as Gn, TransitionGroup as Kn, cloneVNode as qn, computed as A, createApp as Jn, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createSlots as Yn, createStaticVNode as Xn, createTextVNode as F, createVNode as I, defineComponent as L, guardReactiveProps as Zn, h as Qn, inject as R, isRef as $n, isVNode as er, mergeModels as tr, mergeProps as nr, nextTick as rr, normalizeClass as ir, normalizeProps as ar, normalizeStyle as or, onBeforeUnmount as sr, onMounted as cr, onUnmounted as lr, openBlock as z, provide as ur, reactive as dr, readonly as fr, ref as B, renderList as pr, renderSlot as V, resolveComponent as mr, resolveDynamicComponent as hr, shallowRef as gr, toDisplayString as H, toRef as _r, toRefs as vr, unref as U, useId as yr, useModel as W, useSlots as br, vModelSelect as xr, vModelText as Sr, watch as G, withCtx as K, withDirectives as Cr, withKeys as wr, withModifiers as Tr } from "vue";
53
53
  import { useI18n as Er } from "vue-i18n";
@@ -305,7 +305,7 @@ var oi = ii, si = { class: "flex items-center gap-4 mb-4" }, ci = { class: "font
305
305
  }
306
306
  });
307
307
  //#endregion
308
- //#region virtual:intlify-i18n-2
308
+ //#region virtual:intlify-i18n-1
309
309
  function _i(e) {
310
310
  let t = e;
311
311
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -412,7 +412,7 @@ var vi = gi, yi = { class: "flex items-center gap-4 mb-4" }, bi = { class: "font
412
412
  }
413
413
  });
414
414
  //#endregion
415
- //#region virtual:intlify-i18n-1
415
+ //#region virtual:intlify-i18n-2
416
416
  function Ei(e) {
417
417
  let t = e;
418
418
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -16016,7 +16016,7 @@ var gS = /*#__PURE__*/ pS(mS, [["render", hS]]), _S = {
16016
16016
  }
16017
16017
  });
16018
16018
  //#endregion
16019
- //#region virtual:intlify-i18n-4
16019
+ //#region virtual:intlify-i18n-3
16020
16020
  function ES(e) {
16021
16021
  let t = e;
16022
16022
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -16203,7 +16203,7 @@ var DS = TS, OS = { class: "block text-smaller mt-4" }, kS = { class: "block tex
16203
16203
  }
16204
16204
  });
16205
16205
  //#endregion
16206
- //#region virtual:intlify-i18n-3
16206
+ //#region virtual:intlify-i18n-4
16207
16207
  function NS(e) {
16208
16208
  let t = e;
16209
16209
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -16388,7 +16388,7 @@ var PS = MS, FS = {
16388
16388
  ]);
16389
16389
  };
16390
16390
  }
16391
- }), HS = Object.values(p), US = .6, WS = C.parse({}), GS = /* @__PURE__ */ L({
16391
+ }), HS = Object.values(g), US = .6, WS = C.parse({}), GS = /* @__PURE__ */ L({
16392
16392
  __name: "PkToolApprovalBadge",
16393
16393
  setup(e) {
16394
16394
  let { t } = Er({ useScope: "global" });
@@ -16410,7 +16410,7 @@ var PS = MS, FS = {
16410
16410
  __name: "PkLanguageModel",
16411
16411
  props: { modelName: {} },
16412
16412
  setup(e) {
16413
- let t = e, { t: n, te: r } = Er(), i = ["zai", "moonshotai"], a = A(() => t.modelName?.split("/")?.[1]), o = A(() => t.modelName?.split("/")?.[0]), s = A(() => o.value === "alibaba" ? "ri:alibaba-cloud-fill" : o.value === "xai" ? "bxl:xai" : o.value === "zai" ? "zai" : o.value === "moonshotai" ? "moonshotai" : `ri:${o.value}-fill`), c = A(() => i.includes(o.value ?? "") ? "custom" : void 0);
16413
+ let t = e, { t: n, te: r } = Er(), i = ["zai", "moonshotai"], a = A(() => t.modelName?.split("/")?.[1]), o = A(() => t.modelName?.split("/")?.[0]), s = A(() => o.value === "alibaba" ? "ri:alibaba-cloud-fill" : o.value === "spacexai" ? "bxl:xai" : o.value === "zai" ? "zai" : o.value === "moonshotai" ? "moonshotai" : `ri:${o.value}-fill`), c = A(() => i.includes(o.value ?? "") ? "custom" : void 0);
16414
16414
  return (e, t) => {
16415
16415
  let i = zn;
16416
16416
  return z(), N("div", KS, [I(i, {
@@ -16492,11 +16492,11 @@ var PS = MS, FS = {
16492
16492
  }),
16493
16493
  emits: ["update:reasoning"],
16494
16494
  setup(e) {
16495
- let { t } = Er({ useScope: "global" }), n = e, r = W(e, "reasoning"), i = A(() => g("openai", r.value)), a = A(() => g("anthropic", r.value)), o = A(() => g("google", r.value)), s = A(() => m(n.activeProvider) ? g(n.activeProvider, r.value) : void 0), c = A(() => ({
16495
+ let { t } = Er({ useScope: "global" }), n = e, r = W(e, "reasoning"), i = A(() => p("openai", r.value)), a = A(() => p("anthropic", r.value)), o = A(() => p("google", r.value)), s = A(() => ae(n.activeProvider) ? p(n.activeProvider, r.value) : void 0), c = A(() => ({
16496
16496
  openai: i.value !== r.value?.openai,
16497
16497
  anthropic: a.value !== r.value?.anthropic,
16498
16498
  google: o.value !== r.value?.google,
16499
- generic: m(n.activeProvider) && s.value !== r.value?.[n.activeProvider]
16499
+ generic: ae(n.activeProvider) && s.value !== r.value?.[n.activeProvider]
16500
16500
  })), l = {
16501
16501
  auto: "Auto",
16502
16502
  concise: "Concise",
@@ -16511,9 +16511,9 @@ var PS = MS, FS = {
16511
16511
  }, u = (e) => e.map((e) => ({
16512
16512
  label: l[e] ?? e,
16513
16513
  value: e
16514
- })), d = u(v), f = u(re), p = u(x), h = u(S), _ = u(ie);
16514
+ })), d = u(y), f = u(re), m = u(x), h = u(S), g = u(ie);
16515
16515
  return (n, l) => {
16516
- let u = Fn, g = Vn;
16516
+ let u = Fn, p = Vn;
16517
16517
  return e.activeProvider === "openai" ? (z(), N(k, { key: 0 }, [I(u, {
16518
16518
  "model-value": i.value?.reasoningEffort,
16519
16519
  name: "reasoning.openai.reasoningEffort",
@@ -16546,7 +16546,7 @@ var PS = MS, FS = {
16546
16546
  label: U(t)("label.reasoningSummary"),
16547
16547
  placeholder: U(t)("placeholder.select"),
16548
16548
  class: "mb-0",
16549
- options: U(_),
16549
+ options: U(g),
16550
16550
  "onUpdate:modelValue": l[1] ||= (e) => r.value = {
16551
16551
  ...r.value,
16552
16552
  openai: {
@@ -16646,7 +16646,7 @@ var PS = MS, FS = {
16646
16646
  "label",
16647
16647
  "placeholder"
16648
16648
  ])) : M("", !0),
16649
- a.value?.type === "enabled" ? (z(), j(g, {
16649
+ a.value?.type === "enabled" ? (z(), j(p, {
16650
16650
  key: 2,
16651
16651
  "model-value": a.value?.budgetTokens,
16652
16652
  name: "reasoning.anthropic.budgetTokens",
@@ -16677,7 +16677,7 @@ var PS = MS, FS = {
16677
16677
  label: U(t)("label.thinkingLevel"),
16678
16678
  placeholder: U(t)("placeholder.select"),
16679
16679
  "hint-label": c.value.google ? U(t)("hint.reasoningDefault") : void 0,
16680
- options: U(p),
16680
+ options: U(m),
16681
16681
  "onUpdate:modelValue": l[6] ||= (e) => r.value = {
16682
16682
  ...r.value,
16683
16683
  google: {
@@ -16692,7 +16692,7 @@ var PS = MS, FS = {
16692
16692
  "hint-label",
16693
16693
  "options"
16694
16694
  ]),
16695
- I(g, {
16695
+ I(p, {
16696
16696
  "model-value": o.value?.thinkingBudget,
16697
16697
  name: "reasoning.google.thinkingBudget",
16698
16698
  type: "number",
@@ -16755,7 +16755,7 @@ var PS = MS, FS = {
16755
16755
  "label",
16756
16756
  "placeholder",
16757
16757
  "options"
16758
- ])) : U(m)(e.activeProvider) ? (z(), j(u, {
16758
+ ])) : U(ae)(e.activeProvider) ? (z(), j(u, {
16759
16759
  key: 4,
16760
16760
  "model-value": s.value?.reasoningEffort,
16761
16761
  name: `reasoning.${e.activeProvider}.reasoningEffort`,
@@ -16789,7 +16789,7 @@ var PS = MS, FS = {
16789
16789
  }, {
16790
16790
  webSearch: { default: () => ({
16791
16791
  enabled: !1,
16792
- provider: y.Native
16792
+ provider: oe.Native
16793
16793
  }) },
16794
16794
  webSearchModifiers: {}
16795
16795
  }),
@@ -17375,7 +17375,7 @@ var PS = MS, FS = {
17375
17375
  reasoningModifiers: {},
17376
17376
  webSearch: { default: () => ({
17377
17377
  enabled: !1,
17378
- provider: y.Perplexity
17378
+ provider: oe.Perplexity
17379
17379
  }) },
17380
17380
  webSearchModifiers: {},
17381
17381
  theme: { default: "light" },
@@ -17531,7 +17531,7 @@ var PS = MS, FS = {
17531
17531
  return Array.isArray(e) ? e : [];
17532
17532
  }
17533
17533
  return [];
17534
- }, i = e, { errors: a } = vr(i), o = W(e, "agentId"), s = W(e, "name"), c = W(e, "type"), l = W(e, "initialMessage"), u = W(e, "messagePlaceholder"), d = W(e, "dismissableNotice"), f = W(e, "footerMessage"), p = W(e, "model"), m = W(e, "temperature"), h = W(e, "prompt"), g = W(e, "status"), v = W(e, "visibility"), y = W(e, "limit"), x = W(e, "maxStepCount"), S = W(e, "maxOutputTokens"), C = W(e, "presencePenalty"), te = W(e, "frequencyPenalty"), re = W(e, "searchMode"), ie = W(e, "reasoning"), se = W(e, "webSearch"), ce = W(e, "theme"), le = W(e, "mainColor"), ue = W(e, "textColor"), de = W(e, "useColorsForAgentHeader"), fe = W(e, "welcomePopup"), pe = W(e, "interactiveLogin"), me = W(e, "floatingButtonPosition"), he = W(e, "maxMessageLength"), ge = W(e, "media"), _e = W(e, "minuteRateLimit"), ve = W(e, "hourRateLimit"), ye = W(e, "dayRateLimit"), be = W(e, "monthRateLimit"), xe = W(e, "trustedOrigins"), Se = W(e, "disabledTools"), Ce = W(e, "approvalTools"), we = W(e, "useAllUserKb"), Te = W(e, "useAllUserFiles"), Ee = W(e, "formMaxSteps"), De = W(e, "formMaxOptionsPerStep"), Oe = W(e, "suggestedReplyMode"), ke = W(e, "showSourcesMode"), Ae = W(e, "widgetUrl"), je = W(e, "loadDelay"), Me = W(e, "loaderStrategy"), Ne = W(e, "fileUploadEnabled"), Pe = W(e, "voiceEnabled"), Fe = W(e, "voiceMaxSessionSeconds"), Ie = W(e, "voiceId"), Re = W(e, "voiceLanguage"), ze = W(e, "voiceFirstMessage"), Be = W(e, "voiceCascadeTimeoutSeconds"), Ve = W(e, "voiceFillerAfterSeconds"), He = W(e, "voiceFillerMessage"), Ue = W(e, "voiceIgnoreBackgroundVoices"), We = W(e, "voiceTurnEagerness"), Ge = W(e, "voiceTurnTimeoutSeconds"), Ke = [
17534
+ }, i = e, { errors: a } = vr(i), o = W(e, "agentId"), s = W(e, "name"), c = W(e, "type"), l = W(e, "initialMessage"), u = W(e, "messagePlaceholder"), d = W(e, "dismissableNotice"), f = W(e, "footerMessage"), p = W(e, "model"), h = W(e, "temperature"), g = W(e, "prompt"), y = W(e, "status"), x = W(e, "visibility"), S = W(e, "limit"), C = W(e, "maxStepCount"), te = W(e, "maxOutputTokens"), re = W(e, "presencePenalty"), ie = W(e, "frequencyPenalty"), ae = W(e, "searchMode"), oe = W(e, "reasoning"), se = W(e, "webSearch"), ce = W(e, "theme"), le = W(e, "mainColor"), ue = W(e, "textColor"), de = W(e, "useColorsForAgentHeader"), fe = W(e, "welcomePopup"), pe = W(e, "interactiveLogin"), me = W(e, "floatingButtonPosition"), he = W(e, "maxMessageLength"), ge = W(e, "media"), _e = W(e, "minuteRateLimit"), ve = W(e, "hourRateLimit"), ye = W(e, "dayRateLimit"), be = W(e, "monthRateLimit"), xe = W(e, "trustedOrigins"), Se = W(e, "disabledTools"), Ce = W(e, "approvalTools"), we = W(e, "useAllUserKb"), Te = W(e, "useAllUserFiles"), Ee = W(e, "formMaxSteps"), De = W(e, "formMaxOptionsPerStep"), Oe = W(e, "suggestedReplyMode"), ke = W(e, "showSourcesMode"), Ae = W(e, "widgetUrl"), je = W(e, "loadDelay"), Me = W(e, "loaderStrategy"), Ne = W(e, "fileUploadEnabled"), Pe = W(e, "voiceEnabled"), Fe = W(e, "voiceMaxSessionSeconds"), Ie = W(e, "voiceId"), Re = W(e, "voiceLanguage"), ze = W(e, "voiceFirstMessage"), Be = W(e, "voiceCascadeTimeoutSeconds"), Ve = W(e, "voiceFillerAfterSeconds"), He = W(e, "voiceFillerMessage"), Ue = W(e, "voiceIgnoreBackgroundVoices"), We = W(e, "voiceTurnEagerness"), Ge = W(e, "voiceTurnTimeoutSeconds"), Ke = [
17535
17535
  "it",
17536
17536
  "en",
17537
17537
  "es",
@@ -17725,12 +17725,12 @@ var PS = MS, FS = {
17725
17725
  return !Se.value.includes(e);
17726
17726
  }
17727
17727
  function kt(e) {
17728
- return e === T.ShowForm || e === T.ShowSuggestedReply || e === T.ShowSources || e === T.UserMemory || e === T.SearchInUserFiles || oe(e);
17728
+ return e === T.ShowForm || e === T.ShowSuggestedReply || e === T.ShowSources || e === T.UserMemory || e === T.SearchInUserFiles || _(e);
17729
17729
  }
17730
17730
  function At(e) {
17731
17731
  return Ce.value.includes(e);
17732
17732
  }
17733
- let jt = A(() => Ce.value.filter((e) => oe(e) && Ot(e)).map((e) => t(`agent.tool.${e}`)));
17733
+ let jt = A(() => Ce.value.filter((e) => _(e) && Ot(e)).map((e) => t(`agent.tool.${e}`)));
17734
17734
  function Mt(e, t) {
17735
17735
  Ce.value = t ? [...Ce.value, e] : Ce.value.filter((t) => t !== e);
17736
17736
  }
@@ -17785,8 +17785,8 @@ var PS = MS, FS = {
17785
17785
  vertical: ""
17786
17786
  }, null, 8, ["modelValue", "label"]),
17787
17787
  P("div", uC, [I(o, {
17788
- modelValue: g.value,
17789
- "onUpdate:modelValue": a[1] ||= (e) => g.value = e,
17788
+ modelValue: y.value,
17789
+ "onUpdate:modelValue": a[1] ||= (e) => y.value = e,
17790
17790
  name: "status",
17791
17791
  icon: "ri:eye-line",
17792
17792
  label: U(t)("label.status"),
@@ -17817,8 +17817,8 @@ var PS = MS, FS = {
17817
17817
  "options",
17818
17818
  "disabled"
17819
17819
  ]), I(o, {
17820
- modelValue: v.value,
17821
- "onUpdate:modelValue": a[2] ||= (e) => v.value = e,
17820
+ modelValue: x.value,
17821
+ "onUpdate:modelValue": a[2] ||= (e) => x.value = e,
17822
17822
  name: "visibility",
17823
17823
  icon: "ri:lock-line",
17824
17824
  label: U(t)("label.visibility"),
@@ -17876,8 +17876,8 @@ var PS = MS, FS = {
17876
17876
  "options"
17877
17877
  ]),
17878
17878
  I(Hx, {
17879
- modelValue: h.value,
17880
- "onUpdate:modelValue": a[5] ||= (e) => h.value = e,
17879
+ modelValue: g.value,
17880
+ "onUpdate:modelValue": a[5] ||= (e) => g.value = e,
17881
17881
  name: "prompt",
17882
17882
  label: U(t)("label.prompt"),
17883
17883
  placeholder: U(t)("placeholder.insert")
@@ -17910,8 +17910,8 @@ var PS = MS, FS = {
17910
17910
  "exclude-models"
17911
17911
  ]),
17912
17912
  I(b, {
17913
- modelValue: S.value,
17914
- "onUpdate:modelValue": a[7] ||= (e) => S.value = e,
17913
+ modelValue: te.value,
17914
+ "onUpdate:modelValue": a[7] ||= (e) => te.value = e,
17915
17915
  name: "maxOutputTokens",
17916
17916
  type: "number",
17917
17917
  min: "0",
@@ -17924,8 +17924,8 @@ var PS = MS, FS = {
17924
17924
  "placeholder"
17925
17925
  ]),
17926
17926
  I(sC, {
17927
- modelValue: m.value,
17928
- "onUpdate:modelValue": a[8] ||= (e) => m.value = e,
17927
+ modelValue: h.value,
17928
+ "onUpdate:modelValue": a[8] ||= (e) => h.value = e,
17929
17929
  name: "temperature",
17930
17930
  label: U(t)("label.temperature"),
17931
17931
  min: "0",
@@ -17934,8 +17934,8 @@ var PS = MS, FS = {
17934
17934
  class: "mb-md"
17935
17935
  }, null, 8, ["modelValue", "label"]),
17936
17936
  I(sC, {
17937
- modelValue: C.value,
17938
- "onUpdate:modelValue": a[9] ||= (e) => C.value = e,
17937
+ modelValue: re.value,
17938
+ "onUpdate:modelValue": a[9] ||= (e) => re.value = e,
17939
17939
  name: "presencePenalty",
17940
17940
  label: U(t)("label.presencePenalty"),
17941
17941
  min: "-2",
@@ -17944,8 +17944,8 @@ var PS = MS, FS = {
17944
17944
  class: "mb-md"
17945
17945
  }, null, 8, ["modelValue", "label"]),
17946
17946
  I(sC, {
17947
- modelValue: te.value,
17948
- "onUpdate:modelValue": a[10] ||= (e) => te.value = e,
17947
+ modelValue: ie.value,
17948
+ "onUpdate:modelValue": a[10] ||= (e) => ie.value = e,
17949
17949
  name: "frequencyPenalty",
17950
17950
  label: U(t)("label.frequencyPenalty"),
17951
17951
  min: "-2",
@@ -17978,8 +17978,8 @@ var PS = MS, FS = {
17978
17978
  }, 8, ["legend"]),
17979
17979
  I(ha, { legend: U(t)("label.reasoning") }, {
17980
17980
  default: K(() => [I(ZS, {
17981
- reasoning: ie.value,
17982
- "onUpdate:reasoning": a[12] ||= (e) => ie.value = e,
17981
+ reasoning: oe.value,
17982
+ "onUpdate:reasoning": a[12] ||= (e) => oe.value = e,
17983
17983
  "active-provider": Ft.value
17984
17984
  }, null, 8, ["reasoning", "active-provider"]), I(aS, {
17985
17985
  modelValue: ht.value,
@@ -17999,8 +17999,8 @@ var PS = MS, FS = {
17999
17999
  I(ha, { legend: U(t)("label.searchAndExecution") }, {
18000
18000
  default: K(() => [
18001
18001
  I(o, {
18002
- modelValue: re.value,
18003
- "onUpdate:modelValue": a[14] ||= (e) => re.value = e,
18002
+ modelValue: ae.value,
18003
+ "onUpdate:modelValue": a[14] ||= (e) => ae.value = e,
18004
18004
  name: "searchMode",
18005
18005
  icon: "ri:search-line",
18006
18006
  strategy: "fixed",
@@ -18028,8 +18028,8 @@ var PS = MS, FS = {
18028
18028
  "options"
18029
18029
  ]),
18030
18030
  I(sC, {
18031
- modelValue: y.value,
18032
- "onUpdate:modelValue": a[15] ||= (e) => y.value = e,
18031
+ modelValue: S.value,
18032
+ "onUpdate:modelValue": a[15] ||= (e) => S.value = e,
18033
18033
  name: "limit",
18034
18034
  label: U(t)("label.limit"),
18035
18035
  min: "0",
@@ -18038,8 +18038,8 @@ var PS = MS, FS = {
18038
18038
  class: "mb-md"
18039
18039
  }, null, 8, ["modelValue", "label"]),
18040
18040
  I(sC, {
18041
- modelValue: x.value,
18042
- "onUpdate:modelValue": a[16] ||= (e) => x.value = e,
18041
+ modelValue: C.value,
18042
+ "onUpdate:modelValue": a[16] ||= (e) => C.value = e,
18043
18043
  name: "maxStepCount",
18044
18044
  label: U(t)("label.maxStepCount"),
18045
18045
  min: "1",
@@ -18560,7 +18560,7 @@ var PS = MS, FS = {
18560
18560
  "label",
18561
18561
  "hint-label"
18562
18562
  ])) : M("", !0),
18563
- !e.playground && It.value && v.value === "public" ? (z(), j(aS, {
18563
+ !e.playground && It.value && x.value === "public" ? (z(), j(aS, {
18564
18564
  key: 3,
18565
18565
  modelValue: pe.value,
18566
18566
  "onUpdate:modelValue": a[45] ||= (e) => pe.value = e,
@@ -18825,7 +18825,7 @@ var PS = MS, FS = {
18825
18825
  }, null, 8, ["web-search", "active-provider"])]),
18826
18826
  _: 1
18827
18827
  }, 8, ["legend"]),
18828
- P("div", QC, [P("p", $C, H(U(t)("hint.approvalChannels")), 1), (z(!0), N(k, null, pr(Tt.value, (n) => (z(), N(k, { key: n.key }, [It.value || !n.tools.every((e) => U(_)(e)) ? (z(), j(ha, {
18828
+ P("div", QC, [P("p", $C, H(U(t)("hint.approvalChannels")), 1), (z(!0), N(k, null, pr(Tt.value, (n) => (z(), N(k, { key: n.key }, [It.value || !n.tools.every((e) => U(m)(e)) ? (z(), j(ha, {
18829
18829
  key: 0,
18830
18830
  class: "mb-0"
18831
18831
  }, {
@@ -18833,7 +18833,7 @@ var PS = MS, FS = {
18833
18833
  name: n.icon,
18834
18834
  class: "text-16"
18835
18835
  }, null, 8, ["name"]), F(" " + H(U(t)(`toolGroup.${n.key}`)), 1)])]),
18836
- default: K(() => [P("p", tw, H(U(t)(`toolGroupInfo.${n.key}`)), 1), P("div", nw, [(z(!0), N(k, null, pr(n.tools, (n) => (z(), N(k, { key: n }, [!U(_)(n) || It.value ? (z(), N(k, { key: 0 }, [I(Ce, {
18836
+ default: K(() => [P("p", tw, H(U(t)(`toolGroupInfo.${n.key}`)), 1), P("div", nw, [(z(!0), N(k, null, pr(n.tools, (n) => (z(), N(k, { key: n }, [!U(m)(n) || It.value ? (z(), N(k, { key: 0 }, [I(Ce, {
18837
18837
  class: "flex-nowrap border-t border-surface-3 mr-0 px-md pt-md",
18838
18838
  "model-value": Ot(n),
18839
18839
  name: `tool.${n}`,
@@ -18856,7 +18856,7 @@ var PS = MS, FS = {
18856
18856
  At(n) ? (z(), j(GS, { key: 1 })) : M("", !0)
18857
18857
  ]),
18858
18858
  P("small", ow, H(U(t)(`hint.tool.${n}`)), 1),
18859
- U(_)(n) && U(ae)(n) ? (z(), N("div", {
18859
+ U(m)(n) && U(v)(n) ? (z(), N("div", {
18860
18860
  key: 0,
18861
18861
  class: "flex items-center gap-4 self-start mt-4 pt-4 w-full border-t border-surface-3",
18862
18862
  title: U(t)("hint.platformSupported")
@@ -19003,7 +19003,7 @@ var PS = MS, FS = {
19003
19003
  "hint-label",
19004
19004
  "disabled"
19005
19005
  ])) : M("", !0),
19006
- U(oe)(n) ? (z(), j(aS, {
19006
+ U(_)(n) ? (z(), j(aS, {
19007
19007
  key: 5,
19008
19008
  "model-value": At(n),
19009
19009
  name: `tool.${n}.approval`,
@@ -19429,7 +19429,7 @@ var PS = MS, FS = {
19429
19429
  setup(e, { emit: t }) {
19430
19430
  let n = e, r = W(e, "collapsed"), i = Mr("(max-width: 1023px)"), a = () => {
19431
19431
  i.value && (r.value = !0);
19432
- }, o = t, { t: s } = Er({ useScope: "global" }), c = he(n.agentId), { conversations: l, isLoadingConversations: u, localChatId: d } = Lr(c), { startNewChat: f, navigate: p, renameChatTitle: m, deleteChat: h } = c, { editingId: g, editingTitle: _, startEdit: v, confirmEdit: y, cancelEdit: b, onRenameKeydown: x, requestDelete: S } = De({
19432
+ }, o = t, { t: s } = Er({ useScope: "global" }), c = ge(n.agentId), { conversations: l, isLoadingConversations: u, localChatId: d } = Lr(c), { startNewChat: f, navigate: p, renameChatTitle: m, deleteChat: h } = c, { editingId: g, editingTitle: _, startEdit: v, confirmEdit: y, cancelEdit: b, onRenameKeydown: x, requestDelete: S } = De({
19433
19433
  renameChatTitle: m,
19434
19434
  deleteChat: h
19435
19435
  }), C = B(""), w = kr(C, 300), T = A(() => {
@@ -19947,9 +19947,9 @@ var PS = MS, FS = {
19947
19947
  },
19948
19948
  emits: ["show-info"],
19949
19949
  setup(e, { emit: t }) {
19950
- let { t: n } = Er({ useScope: "global" }), r = e, i = t, a = B(""), o = A(() => new ge({
19951
- id: pe(),
19952
- transport: new me({
19950
+ let { t: n } = Er({ useScope: "global" }), r = e, i = t, a = B(""), o = A(() => new me({
19951
+ id: he(),
19952
+ transport: new pe({
19953
19953
  api: `${r.baseUrl}/agents/${r.agentId}/reasoning-chat`,
19954
19954
  prepareSendMessagesRequest: ({ messages: e }) => ({ body: {
19955
19955
  messages: [e[e.length - 1]],