@mcp-use/inspector 1.0.0-canary.7 → 1.0.0-canary.8

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 (26) hide show
  1. package/dist/cdn/inspector.js +320 -229
  2. package/dist/client/components/ChatTab.d.ts.map +1 -1
  3. package/dist/client/components/chat/MessageList.d.ts.map +1 -1
  4. package/dist/client/hooks/useMCPPrompts.d.ts +3 -3
  5. package/dist/client/index.js +224 -70
  6. package/dist/web/assets/{browser-B5bbgsJ7.js → browser-DeFVa-Up.js} +3 -3
  7. package/dist/web/assets/{chunk-JKEJ364Q-D_RtBrY-.js → chunk-KJ5RBDDO-DJkMH4KI.js} +1 -1
  8. package/dist/web/assets/{chunk-RPN2XO5I-CTzQa-hn.js → chunk-RPN2XO5I-Boiv0wCv.js} +1 -1
  9. package/dist/web/assets/{chunk_array-Jrfa-VpI.js → chunk_array-CT_rI3GZ.js} +1 -1
  10. package/dist/web/assets/{client-BNC2I1UP.js → client-DaI4JaTs.js} +1 -1
  11. package/dist/web/assets/{client-QWUHLHGB-D0hnFO4Y.js → client-MLH2Q2DK-UzuK4Kji.js} +3 -3
  12. package/dist/web/assets/{dist-CeULU53m.js → dist-CY62NsuD.js} +1 -1
  13. package/dist/web/assets/{dist-gqs55pf5.js → dist-Cjn62jmL.js} +1 -1
  14. package/dist/web/assets/{dist-UKv8WNtp.js → dist-DWk4vNzA.js} +1 -1
  15. package/dist/web/assets/{function_calling-BIx4-QLk.js → function_calling-BHFkMa4W.js} +1 -1
  16. package/dist/web/assets/{index-CI5kL8J0.js → index-Bd0WP6Xj.js} +10 -10
  17. package/dist/web/assets/{llms-C6YlWJ3m.js → llms-ByHaqvCr.js} +1 -1
  18. package/dist/web/assets/messages-DQuC8BOl.js +1 -0
  19. package/dist/web/assets/react-C-wC1s-h.js +1 -0
  20. package/dist/web/assets/{rpc-logger-TPNV75J4-BNSLbfSY.js → rpc-logger-TPNV75J4-DBofHjaa.js} +1 -1
  21. package/dist/web/assets/{stdio-OOCOERNF-wZaTdt64.js → stdio-DH6BP75M-C4--HtGN.js} +1 -1
  22. package/dist/web/assets/{tools-Cw_LtDrc.js → tools-CFpbqXW1.js} +1 -1
  23. package/dist/web/index.html +4 -4
  24. package/package.json +4 -4
  25. package/dist/web/assets/messages-BIrdaD3Z.js +0 -1
  26. package/dist/web/assets/react-Doloy8OJ.js +0 -1
@@ -23071,7 +23071,7 @@ var wT, TT, die, fie, pie, ET, DT, OT, kT, AT, mie, jT, MT, NT, hie, gie, _ie, P
23071
23071
  }(), Lse);
23072
23072
  }));
23073
23073
  //#endregion
23074
- //#region ../mcp-use/dist/chunk-3D7VC32J.js
23074
+ //#region ../mcp-use/dist/chunk-ITBT5I2S.js
23075
23075
  function RO() {
23076
23076
  return Zse;
23077
23077
  }
@@ -23196,7 +23196,7 @@ function Xse(e) {
23196
23196
  GO.getInstance().setSource(e);
23197
23197
  }
23198
23198
  var Zse, HO, Qse, $se, ece, tce, nce, rce, ice, ace, oce, sce, cce, lce, UO, WO, GO, KO, uce, qO = o((() => {
23199
- C(), g(), fre(), Qf(), Zse = "1.23.0-canary.7", m(RO, "getPackageVersion"), HO = class {
23199
+ C(), g(), fre(), Qf(), Zse = "1.23.0-canary.8", m(RO, "getPackageVersion"), HO = class {
23200
23200
  static {
23201
23201
  m(this, "BaseTelemetryEvent");
23202
23202
  }
@@ -30093,7 +30093,7 @@ var ede, tde, Fk, Ik, Lk, Rk, zk, Bk, Vk, Hk, Uk, Wk, Gk, Kk, qk, Jk, Yk, Xk, Zk
30093
30093
  };
30094
30094
  }));
30095
30095
  //#endregion
30096
- //#region ../mcp-use/dist/chunk-JKEJ364Q.js
30096
+ //#region ../mcp-use/dist/chunk-KJ5RBDDO.js
30097
30097
  function mde(e, t) {
30098
30098
  return {
30099
30099
  onSampling: e?.onSampling ?? e?.samplingCallback ?? t?.onSampling ?? t?.samplingCallback,
@@ -30522,7 +30522,7 @@ var _de, rA, iA, vde, aA = o((() => {
30522
30522
  };
30523
30523
  }));
30524
30524
  //#endregion
30525
- //#region ../mcp-use/dist/chunk-IZRJ6SZU.js
30525
+ //#region ../mcp-use/dist/chunk-XIUYY6QI.js
30526
30526
  function yde(e) {
30527
30527
  let t = Object.keys(e.mcpServers ?? {});
30528
30528
  GO.getInstance().trackMCPClientInit({
@@ -54048,7 +54048,7 @@ function Ufe({ requestId: e, serverName: t, mode: n, message: r, url: i, onViewD
54048
54048
  });
54049
54049
  }
54050
54050
  //#endregion
54051
- //#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
54051
+ //#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
54052
54052
  function Wfe(e, t) {
54053
54053
  if (typeof e == "function") return e(t);
54054
54054
  e != null && (e.current = t);
@@ -54071,7 +54071,7 @@ function TA(...e) {
54071
54071
  return K.useCallback(wA(...e), e);
54072
54072
  }
54073
54073
  //#endregion
54074
- //#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-slot/dist/index.mjs
54074
+ //#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-slot/dist/index.mjs
54075
54075
  var Gfe = Symbol.for("react.lazy"), EA = K.use;
54076
54076
  function Kfe(e) {
54077
54077
  return typeof e == "object" && !!e && "then" in e;
@@ -55917,7 +55917,7 @@ function UA(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
55917
55917
  };
55918
55918
  }
55919
55919
  //#endregion
55920
- //#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-context/dist/index.mjs
55920
+ //#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-context/dist/index.mjs
55921
55921
  function bme(e, t) {
55922
55922
  let n = K.createContext(t), r = (e) => {
55923
55923
  let { children: t, ...r } = e, i = K.useMemo(() => r, Object.values(r));
@@ -55990,7 +55990,7 @@ function xme(...e) {
55990
55990
  return n.scopeName = t.scopeName, n;
55991
55991
  }
55992
55992
  //#endregion
55993
- //#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
55993
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
55994
55994
  var GA = globalThis?.document ? K.useLayoutEffect : () => {}, Sme = K.useInsertionEffect || GA;
55995
55995
  function KA({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
55996
55996
  let [i, a, o] = Cme({
@@ -56036,7 +56036,7 @@ function wme(e) {
56036
56036
  return typeof e == "function";
56037
56037
  }
56038
56038
  //#endregion
56039
- //#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-slot/dist/index.mjs
56039
+ //#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-slot/dist/index.mjs
56040
56040
  var qA = /* @__PURE__ */ u(Ffe(), 1);
56041
56041
  /* @__NO_SIDE_EFFECTS__ */
56042
56042
  function JA(e) {
@@ -56101,7 +56101,7 @@ function Ame(e) {
56101
56101
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
56102
56102
  }
56103
56103
  //#endregion
56104
- //#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.10__@types+re_cc7cc65f5706fd7d49339c0539c4dc85/node_modules/@radix-ui/react-primitive/dist/index.mjs
56104
+ //#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.14__@types+re_1181ea5061ec9212248424669240e4ec/node_modules/@radix-ui/react-primitive/dist/index.mjs
56105
56105
  var YA = [
56106
56106
  "a",
56107
56107
  "button",
@@ -56137,7 +56137,7 @@ function jme(e, t) {
56137
56137
  e && qA.flushSync(() => e.dispatchEvent(t));
56138
56138
  }
56139
56139
  //#endregion
56140
- //#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.10__@types+r_2988d950cbd44144aec5e6ce60804441/node_modules/@radix-ui/react-collection/dist/index.mjs
56140
+ //#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+r_161926fa2509d0b7370b60b8bb4eb8b0/node_modules/@radix-ui/react-collection/dist/index.mjs
56141
56141
  function Mme(e) {
56142
56142
  let t = e + "CollectionProvider", [n, r] = WA(t), [i, a] = n(t, {
56143
56143
  collectionRef: { current: null },
@@ -56192,14 +56192,14 @@ function Mme(e) {
56192
56192
  ];
56193
56193
  }
56194
56194
  //#endregion
56195
- //#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-direction/dist/index.mjs
56195
+ //#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-direction/dist/index.mjs
56196
56196
  var Nme = K.createContext(void 0);
56197
56197
  function Pme(e) {
56198
56198
  let t = K.useContext(Nme);
56199
56199
  return e || t || "ltr";
56200
56200
  }
56201
56201
  //#endregion
56202
- //#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
56202
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
56203
56203
  function XA(e) {
56204
56204
  let t = K.useRef(e);
56205
56205
  return K.useEffect(() => {
@@ -56207,7 +56207,7 @@ function XA(e) {
56207
56207
  }), K.useMemo(() => (...e) => t.current?.(...e), []);
56208
56208
  }
56209
56209
  //#endregion
56210
- //#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
56210
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
56211
56211
  function Fme(e, t = globalThis?.document) {
56212
56212
  let n = XA(e);
56213
56213
  K.useEffect(() => {
@@ -56218,7 +56218,7 @@ function Fme(e, t = globalThis?.document) {
56218
56218
  }, [n, t]);
56219
56219
  }
56220
56220
  //#endregion
56221
- //#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.10___e133e8a9468cbe330943ccf12330fe61/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
56221
+ //#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14___3d3960154a4c07d09bb90cb341135fc5/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
56222
56222
  var Ime = "DismissableLayer", Lme = "dismissableLayer.update", Rme = "dismissableLayer.pointerDownOutside", zme = "dismissableLayer.focusOutside", Bme, Vme = K.createContext({
56223
56223
  layers: /* @__PURE__ */ new Set(),
56224
56224
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
@@ -56317,7 +56317,7 @@ function qme(e, t, n, { discrete: r }) {
56317
56317
  t && i.addEventListener(e, t, { once: !0 }), r ? jme(i, a) : i.dispatchEvent(a);
56318
56318
  }
56319
56319
  //#endregion
56320
- //#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
56320
+ //#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
56321
56321
  var Jme = 0;
56322
56322
  function QA() {
56323
56323
  K.useEffect(() => {
@@ -56332,7 +56332,7 @@ function Yme() {
56332
56332
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
56333
56333
  }
56334
56334
  //#endregion
56335
- //#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.10__@types+_af36ba573a6677a34cf35425a2700a55/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
56335
+ //#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+_f62f3af4ca2ba305a7aecf04c8534604/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
56336
56336
  var Xme = "focusScope.autoFocusOnMount", Zme = "focusScope.autoFocusOnUnmount", Qme = {
56337
56337
  bubbles: !1,
56338
56338
  cancelable: !0
@@ -56471,7 +56471,7 @@ function lhe(e) {
56471
56471
  return e.filter((e) => e.tagName !== "A");
56472
56472
  }
56473
56473
  //#endregion
56474
- //#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-id/dist/index.mjs
56474
+ //#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-id/dist/index.mjs
56475
56475
  var uhe = K.useId || (() => void 0), dhe = 0;
56476
56476
  function tj(e) {
56477
56477
  let [t, n] = K.useState(uhe());
@@ -57587,7 +57587,7 @@ var Kge = (e) => {
57587
57587
  t_e.displayName = e_e;
57588
57588
  var n_e = t_e;
57589
57589
  //#endregion
57590
- //#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-size/dist/index.mjs
57590
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-size/dist/index.mjs
57591
57591
  function r_e(e) {
57592
57592
  let [t, n] = K.useState(void 0);
57593
57593
  return GA(() => {
@@ -57613,7 +57613,7 @@ function r_e(e) {
57613
57613
  }, [e]), t;
57614
57614
  }
57615
57615
  //#endregion
57616
- //#region ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.10__@types+react_f00452343939c50ffdce2627bb965099/node_modules/@radix-ui/react-popper/dist/index.mjs
57616
+ //#region ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_13e0521d8aea7ebfbfb8bee1fb615c05/node_modules/@radix-ui/react-popper/dist/index.mjs
57617
57617
  var i_e = "Popper", [a_e, jj] = WA(i_e), [o_e, s_e] = a_e(i_e), c_e = (e) => {
57618
57618
  let { __scopePopper: t, children: n } = e, [r, i] = K.useState(null);
57619
57619
  return /* @__PURE__ */ (0, q.jsx)(o_e, {
@@ -57798,7 +57798,7 @@ var Mj = c_e, Nj = u_e, Pj = m_e, Fj = __e, x_e = "Portal", Ij = K.forwardRef((e
57798
57798
  });
57799
57799
  Ij.displayName = x_e;
57800
57800
  //#endregion
57801
- //#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.10__@types+rea_dc32f20a733f643b296d92d5e258c3cd/node_modules/@radix-ui/react-presence/dist/index.mjs
57801
+ //#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.14__@types+rea_c01c26c80b5ab5e3ecefbda6eca51ad1/node_modules/@radix-ui/react-presence/dist/index.mjs
57802
57802
  function S_e(e, t) {
57803
57803
  return K.useReducer((e, n) => t[e][n] ?? e, e);
57804
57804
  }
@@ -57860,7 +57860,7 @@ function w_e(e) {
57860
57860
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
57861
57861
  }
57862
57862
  //#endregion
57863
- //#region ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.10__@type_61b1e57265158db0f110fd8c0c27aeba/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
57863
+ //#region ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14__@type_4eeb29c998b846c35358e2f929e7490e/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
57864
57864
  var T_e = "rovingFocusGroup.onEntryFocus", E_e = {
57865
57865
  bubbles: !1,
57866
57866
  cancelable: !0
@@ -58058,15 +58058,15 @@ function Z_e(e, t, n) {
58058
58058
  return e.concat(a || Array.prototype.slice.call(t));
58059
58059
  }
58060
58060
  //#endregion
58061
- //#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.10_react@19.2.4/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
58061
+ //#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.2.4/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
58062
58062
  var Gj = "right-scroll-bar-position", Kj = "width-before-scroll-bar", Q_e = "with-scroll-bars-hidden", $_e = "--removed-body-scroll-bar-size";
58063
58063
  //#endregion
58064
- //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.10_react@19.2.4/node_modules/use-callback-ref/dist/es2015/assignRef.js
58064
+ //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.4/node_modules/use-callback-ref/dist/es2015/assignRef.js
58065
58065
  function eve(e, t) {
58066
58066
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
58067
58067
  }
58068
58068
  //#endregion
58069
- //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.10_react@19.2.4/node_modules/use-callback-ref/dist/es2015/useRef.js
58069
+ //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.4/node_modules/use-callback-ref/dist/es2015/useRef.js
58070
58070
  function tve(e, t) {
58071
58071
  var n = (0, K.useState)(function() {
58072
58072
  return {
@@ -58086,7 +58086,7 @@ function tve(e, t) {
58086
58086
  return n.callback = t, n.facade;
58087
58087
  }
58088
58088
  //#endregion
58089
- //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.10_react@19.2.4/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
58089
+ //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.4/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
58090
58090
  var nve = typeof window < "u" ? K.useLayoutEffect : K.useEffect, rve = /* @__PURE__ */ new WeakMap();
58091
58091
  function ive(e, t) {
58092
58092
  var n = tve(t || null, function(t) {
@@ -58108,7 +58108,7 @@ function ive(e, t) {
58108
58108
  }, [e]), n;
58109
58109
  }
58110
58110
  //#endregion
58111
- //#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.10_react@19.2.4/node_modules/use-sidecar/dist/es2015/medium.js
58111
+ //#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.2.4/node_modules/use-sidecar/dist/es2015/medium.js
58112
58112
  function ave(e) {
58113
58113
  return e;
58114
58114
  }
@@ -58175,7 +58175,7 @@ function sve(e) {
58175
58175
  }, e), t;
58176
58176
  }
58177
58177
  //#endregion
58178
- //#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.10_react@19.2.4/node_modules/use-sidecar/dist/es2015/exports.js
58178
+ //#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.2.4/node_modules/use-sidecar/dist/es2015/exports.js
58179
58179
  var cve = function(e) {
58180
58180
  var t = e.sideCar, n = X_e(e, ["sideCar"]);
58181
58181
  if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
@@ -58188,7 +58188,7 @@ function lve(e, t) {
58188
58188
  return e.useMedium(t), cve;
58189
58189
  }
58190
58190
  //#endregion
58191
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.10_react@19.2.4/node_modules/react-remove-scroll/dist/es2015/medium.js
58191
+ //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.4/node_modules/react-remove-scroll/dist/es2015/medium.js
58192
58192
  var uve = sve(), dve = function() {}, qj = K.forwardRef(function(e, t) {
58193
58193
  var n = K.useRef(null), r = K.useState({
58194
58194
  onScrollCapture: dve,
@@ -58240,7 +58240,7 @@ var fve, pve = function() {
58240
58240
  if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
58241
58241
  };
58242
58242
  //#endregion
58243
- //#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.10_react@19.2.4/node_modules/react-style-singleton/dist/es2015/singleton.js
58243
+ //#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.2.4/node_modules/react-style-singleton/dist/es2015/singleton.js
58244
58244
  function mve() {
58245
58245
  if (!document) return null;
58246
58246
  var e = document.createElement("style");
@@ -58526,7 +58526,7 @@ function qve(e) {
58526
58526
  return t;
58527
58527
  }
58528
58528
  //#endregion
58529
- //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.10_react@19.2.4/node_modules/react-remove-scroll/dist/es2015/sidecar.js
58529
+ //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.4/node_modules/react-remove-scroll/dist/es2015/sidecar.js
58530
58530
  var Jve = lve(uve, Kve), $j = K.forwardRef(function(e, t) {
58531
58531
  return K.createElement(qj, Wj({}, e, {
58532
58532
  ref: t,
@@ -58535,7 +58535,7 @@ var Jve = lve(uve, Kve), $j = K.forwardRef(function(e, t) {
58535
58535
  });
58536
58536
  $j.classNames = qj.classNames;
58537
58537
  //#endregion
58538
- //#region ../../node_modules/.pnpm/@radix-ui+react-menu@2.1.16_@types+react-dom@19.2.3_@types+react@19.2.10__@types+react@_0322d2fb1ba5ea1a4d797d357cec024b/node_modules/@radix-ui/react-menu/dist/index.mjs
58538
+ //#region ../../node_modules/.pnpm/@radix-ui+react-menu@2.1.16_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@_73ff7391b7be14d4dbff03af4dbac090/node_modules/@radix-ui/react-menu/dist/index.mjs
58539
58539
  var Yve = ["Enter", " "], Xve = [
58540
58540
  "ArrowDown",
58541
58541
  "PageUp",
@@ -59454,7 +59454,7 @@ function _xe({ className: e, color: t, children: n, grayscaled: r = !1, seed: i
59454
59454
  });
59455
59455
  }
59456
59456
  //#endregion
59457
- //#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.10__@ty_4a0cca77456b58788af15726f0c4162d/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
59457
+ //#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.14__@ty_fa89646d7248b32d1762bf88948f6339/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
59458
59458
  var vxe = Object.freeze({
59459
59459
  position: "absolute",
59460
59460
  border: 0,
@@ -59930,7 +59930,7 @@ var iSe = class {
59930
59930
  //#region src/client/telemetry/utils.ts
59931
59931
  function fSe() {
59932
59932
  try {
59933
- return "1.0.0-canary.7";
59933
+ return "1.0.0-canary.8";
59934
59934
  } catch {
59935
59935
  return "0.0.0";
59936
59936
  }
@@ -63420,7 +63420,7 @@ function cP({ className: e, type: t, ...n }) {
63420
63420
  });
63421
63421
  }
63422
63422
  //#endregion
63423
- //#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.4_@types+react-dom@19.2.3_@types+react@19.2.10__@types+re_c03ae1e81409297db11f5b545457f7ea/node_modules/@radix-ui/react-primitive/dist/index.mjs
63423
+ //#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.4_@types+react-dom@19.2.3_@types+react@19.2.14__@types+re_0243fb2db8a1fb85ca77b8d9e5c2d650/node_modules/@radix-ui/react-primitive/dist/index.mjs
63424
63424
  var lP = [
63425
63425
  "a",
63426
63426
  "button",
@@ -63475,7 +63475,7 @@ function qEe(e, [t, n]) {
63475
63475
  return Math.min(n, Math.max(t, e));
63476
63476
  }
63477
63477
  //#endregion
63478
- //#region ../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-previous/dist/index.mjs
63478
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-previous/dist/index.mjs
63479
63479
  function dP(e) {
63480
63480
  let t = K.useRef({
63481
63481
  value: e,
@@ -63484,7 +63484,7 @@ function dP(e) {
63484
63484
  return K.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
63485
63485
  }
63486
63486
  //#endregion
63487
- //#region ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@19.2.3_@types+react@19.2.10__@types+react_1f7b4ff668a805c08339bb4e58c413b0/node_modules/@radix-ui/react-select/dist/index.mjs
63487
+ //#region ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_53894a32562cb9eeb6aef8b357a4f4e3/node_modules/@radix-ui/react-select/dist/index.mjs
63488
63488
  var JEe = [
63489
63489
  " ",
63490
63490
  "Enter",
@@ -64216,7 +64216,7 @@ function rOe({ className: e, ...t }) {
64216
64216
  });
64217
64217
  }
64218
64218
  //#endregion
64219
- //#region ../../node_modules/.pnpm/@radix-ui+react-switch@1.2.6_@types+react-dom@19.2.3_@types+react@19.2.10__@types+react_82f001e3bde9922eaefd6f7b0722a9bb/node_modules/@radix-ui/react-switch/dist/index.mjs
64219
+ //#region ../../node_modules/.pnpm/@radix-ui+react-switch@1.2.6_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_e3738c514c10df2ef7e24af5ee461853/node_modules/@radix-ui/react-switch/dist/index.mjs
64220
64220
  var PP = "Switch", [iOe, aOe] = WA(PP), [oOe, sOe] = iOe(PP), cOe = K.forwardRef((e, t) => {
64221
64221
  let { __scopeSwitch: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c = "on", onCheckedChange: l, form: u, ...d } = e, [f, p] = K.useState(null), m = TA(t, (e) => p(e)), h = K.useRef(!1), g = f ? u || !!f.closest("form") : !0, [_, v] = KA({
64222
64222
  prop: i,
@@ -113432,7 +113432,7 @@ function YZe() {
113432
113432
  }, []), e;
113433
113433
  }
113434
113434
  //#endregion
113435
- //#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.2.3_@types+react@19.2.10__@types+react@19.2.10_react-dom_09b2c00384be53cabe487d6935475df7/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
113435
+ //#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19.2.14_react-dom_774a6dff9510bebce6a2343405a1ca59/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
113436
113436
  var XZe = 1, ZZe = .9, QZe = .8, $Ze = .17, eQe = .1, tQe = .999, nQe = .9999, rQe = .99, iQe = /[\\\/_+.#"@\[\(\{&]/, aQe = /[\\\/_+.#"@\[\(\{&]/g, oQe = /[\s-]/, sQe = /[\s-]/g;
113437
113437
  function cQe(e, t, n, r, i, a, o) {
113438
113438
  if (a === t.length) return i === e.length ? XZe : rQe;
@@ -113448,7 +113448,7 @@ function uQe(e, t, n) {
113448
113448
  return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, cQe(e, t, lQe(e), lQe(t), 0, 0, {});
113449
113449
  }
113450
113450
  //#endregion
113451
- //#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.2.3_@types+react@19.2.10__@types+react@19.2.10_react-dom_09b2c00384be53cabe487d6935475df7/node_modules/cmdk/dist/index.mjs
113451
+ //#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19.2.14_react-dom_774a6dff9510bebce6a2343405a1ca59/node_modules/cmdk/dist/index.mjs
113452
113452
  var bH = "[cmdk-group=\"\"]", dQe = "[cmdk-group-items=\"\"]", fQe = "[cmdk-group-heading=\"\"]", pQe = "[cmdk-item=\"\"]", mQe = `${pQe}:not([aria-disabled="true"])`, hQe = "cmdk-item-select", xH = "data-value", gQe = (e, t, n) => uQe(e, t, n), _Qe = K.createContext(void 0), SH = () => K.useContext(_Qe), vQe = K.createContext(void 0), yQe = () => K.useContext(vQe), bQe = K.createContext(void 0), xQe = K.forwardRef((e, t) => {
113453
113453
  let n = TH(() => ({
113454
113454
  search: "",
@@ -114719,7 +114719,7 @@ var IH = K.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, q.jsx)(
114719
114719
  }));
114720
114720
  IH.displayName = CH.Item.displayName;
114721
114721
  //#endregion
114722
- //#region ../../node_modules/.pnpm/@radix-ui+react-popover@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.10__@types+rea_6845413866e39bfed03c608b19c71ed1/node_modules/@radix-ui/react-popover/dist/index.mjs
114722
+ //#region ../../node_modules/.pnpm/@radix-ui+react-popover@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.14__@types+rea_8b5332f8e883134e9d9ab2856fc4395d/node_modules/@radix-ui/react-popover/dist/index.mjs
114723
114723
  var LH = "Popover", [t$e, n$e] = WA(LH, [jj]), RH = jj(), [r$e, zH] = t$e(LH), i$e = (e) => {
114724
114724
  let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = RH(t), c = K.useRef(null), [l, u] = K.useState(!1), [d, f] = KA({
114725
114725
  prop: r,
@@ -115238,7 +115238,7 @@ function WH({ className: e, ...t }) {
115238
115238
  });
115239
115239
  }
115240
115240
  //#endregion
115241
- //#region ../../node_modules/.pnpm/@radix-ui+react-checkbox@1.3.3_@types+react-dom@19.2.3_@types+react@19.2.10__@types+rea_5132bbb1edf049509ad81076406f08e7/node_modules/@radix-ui/react-checkbox/dist/index.mjs
115241
+ //#region ../../node_modules/.pnpm/@radix-ui+react-checkbox@1.3.3_@types+react-dom@19.2.3_@types+react@19.2.14__@types+rea_a9bfe74df417688e01ae6068318bf0dd/node_modules/@radix-ui/react-checkbox/dist/index.mjs
115242
115242
  var GH = "Checkbox", [L$e, R$e] = WA(GH), [z$e, B$e] = L$e(GH);
115243
115243
  function V$e(e) {
115244
115244
  let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = KA({
@@ -165594,17 +165594,20 @@ var bIt = (0, K.memo)(({ messages: e, isLoading: t, serverId: n, readResource: r
165594
165594
  result: t.toolInvocation.result,
165595
165595
  state: t.toolInvocation.state === "error" ? "error" : t.toolInvocation.state === "streaming" || t.toolInvocation.state === "pending" ? "call" : "result",
165596
165596
  partialArgs: t.toolInvocation.partialArgs
165597
- }), (t.toolInvocation.result || t.toolInvocation.state === "streaming" || l(t.toolInvocation.toolName)) && /* @__PURE__ */ (0, q.jsx)(vIt, {
165598
- toolName: t.toolInvocation.toolName,
165599
- toolArgs: t.toolInvocation.args,
165600
- result: t.toolInvocation.result || null,
165601
- serverId: n,
165602
- readResource: r,
165603
- serverBaseUrl: o,
165604
- toolMeta: c(t.toolInvocation.toolName),
165605
- onSendFollowUp: u,
165606
- partialToolArgs: t.toolInvocation.partialArgs,
165607
- cancelled: t.toolInvocation.state === "error" && t.toolInvocation.result === "Cancelled by user"
165597
+ }), (t.toolInvocation.result || t.toolInvocation.state === "streaming" || l(t.toolInvocation.toolName)) && /* @__PURE__ */ (0, q.jsx)("div", {
165598
+ "data-tool-call-id": `${e.id}-${t.toolInvocation.toolName}-${i}`,
165599
+ children: /* @__PURE__ */ (0, q.jsx)(vIt, {
165600
+ toolName: t.toolInvocation.toolName,
165601
+ toolArgs: t.toolInvocation.args,
165602
+ result: t.toolInvocation.result || null,
165603
+ serverId: n,
165604
+ readResource: r,
165605
+ serverBaseUrl: o,
165606
+ toolMeta: c(t.toolInvocation.toolName),
165607
+ onSendFollowUp: u,
165608
+ partialToolArgs: t.toolInvocation.partialArgs,
165609
+ cancelled: t.toolInvocation.state === "error" && t.toolInvocation.result === "Cancelled by user"
165610
+ })
165608
165611
  })] }, a) : null;
165609
165612
  }) : /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [/* @__PURE__ */ (0, q.jsx)(E2e, {
165610
165613
  content: t,
@@ -165619,15 +165622,18 @@ var bIt = (0, K.memo)(({ messages: e, isLoading: t, serverId: n, readResource: r
165619
165622
  args: t.args,
165620
165623
  result: t.result,
165621
165624
  state: t.result ? "result" : "call"
165622
- }), (t.result || l(t.toolName)) && /* @__PURE__ */ (0, q.jsx)(vIt, {
165623
- toolName: t.toolName,
165624
- toolArgs: t.args,
165625
- result: t.result || null,
165626
- serverId: n,
165627
- readResource: r,
165628
- serverBaseUrl: o,
165629
- toolMeta: c(t.toolName),
165630
- onSendFollowUp: u
165625
+ }), (t.result || l(t.toolName)) && /* @__PURE__ */ (0, q.jsx)("div", {
165626
+ "data-tool-call-id": i,
165627
+ children: /* @__PURE__ */ (0, q.jsx)(vIt, {
165628
+ toolName: t.toolName,
165629
+ toolArgs: t.args,
165630
+ result: t.result || null,
165631
+ serverId: n,
165632
+ readResource: r,
165633
+ serverBaseUrl: o,
165634
+ toolMeta: c(t.toolName),
165635
+ onSendFollowUp: u
165636
+ })
165631
165637
  })] }, i);
165632
165638
  })
165633
165639
  })] })
@@ -205594,40 +205600,49 @@ var MZt = /(?:^\/$|\s+\/$)/, NZt = [
205594
205600
  "Enter"
205595
205601
  ];
205596
205602
  function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeyboardShortcuts: r = !0, prompts: i, serverId: a, callPrompt: o, readResource: s, chatApiUrl: c, waitForChatApiUrl: l, initialMessages: u, managedLlmConfig: d, clearButtonLabel: f, hideTitle: p, hideModelBadge: m, hideServerUrl: h, clearButtonHideIcon: g, clearButtonHideShortcut: _, clearButtonVariant: v, hideClearButton: y, hideToolSelector: b, chatQuickQuestions: x = [], chatFollowups: S = [], streamProtocol: C, credentials: w, extraHeaders: T, body: E }) {
205597
- let [D, O] = (0, K.useState)(""), [k, A] = (0, K.useState)(!1), [j, M] = (0, K.useState)(-1), [N, P] = (0, K.useState)(x), [ee, F] = (0, K.useState)(S), [I, te] = (0, K.useState)(/* @__PURE__ */ new Set()), ne = (0, K.useRef)(null), L = (0, K.useRef)(null), R = (0, K.useMemo)(() => (e.tools ?? []).map((e) => ({
205603
+ let [D, O] = (0, K.useState)(""), [k, A] = (0, K.useState)(!1), [j, M] = (0, K.useState)(-1), [N, P] = (0, K.useState)(x), [ee, F] = (0, K.useState)(S), [I, te] = (0, K.useState)(/* @__PURE__ */ new Set()), ne = (0, K.useRef)(null), L = (0, K.useRef)(null), R = (0, K.useRef)(null), re = (0, K.useMemo)(() => (e.tools ?? []).map((e) => ({
205598
205604
  name: e.name,
205599
205605
  description: e.description
205600
- })), [e.tools]), { llmConfig: re, authConfig: ie, configDialogOpen: ae, setConfigDialogOpen: oe, tempProvider: se, setTempProvider: ce, tempApiKey: le, setTempApiKey: z, tempModel: ue, setTempModel: de, saveLLMConfig: fe, clearConfig: pe } = jZt({ mcpServerUrl: e.url }), me = d ?? re, he = !!d, { getAllModelContexts: ge } = DW(), _e = ge(), ve = {
205606
+ })), [e.tools]), { llmConfig: ie, authConfig: ae, configDialogOpen: oe, setConfigDialogOpen: se, tempProvider: ce, setTempProvider: le, tempApiKey: z, setTempApiKey: ue, tempModel: de, setTempModel: fe, saveLLMConfig: pe, clearConfig: me } = jZt({ mcpServerUrl: e.url }), he = d ?? ie, ge = !!d, { getAllModelContexts: _e } = DW(), ve = _e(), ye = {
205601
205607
  connection: e,
205602
- llmConfig: me,
205608
+ llmConfig: he,
205603
205609
  isConnected: t,
205604
205610
  readResource: s,
205605
- widgetModelContexts: _e,
205611
+ widgetModelContexts: ve,
205606
205612
  disabledTools: I
205607
- }, ye = TIt({
205613
+ }, be = TIt({
205608
205614
  mcpServerUrl: e.url,
205609
- llmConfig: me,
205610
- authConfig: ie,
205615
+ llmConfig: he,
205616
+ authConfig: ae,
205611
205617
  isConnected: t,
205612
205618
  chatApiUrl: c,
205613
205619
  waitForChatApiUrl: l,
205614
- widgetModelContexts: _e,
205620
+ widgetModelContexts: ve,
205615
205621
  initialMessages: u,
205616
205622
  disabledTools: I,
205617
205623
  streamProtocol: C,
205618
205624
  credentials: w,
205619
205625
  extraHeaders: T,
205620
205626
  body: E
205621
- }), be = kZt(ve), { messages: xe, isLoading: Se, attachments: Ce, sendMessage: we, clearMessages: Te, setMessages: Ee, stop: De, addAttachment: Oe, removeAttachment: ke } = n ? be : ye, { filteredPrompts: Ae, setSelectedPrompt: je, selectedPrompt: Me, setPromptArgs: Ne, executePrompt: Pe, results: Fe, handleDeleteResult: Ie, clearPromptResults: Le } = e$e({
205627
+ }), xe = kZt(ye), { messages: Se, isLoading: Ce, attachments: we, sendMessage: Te, clearMessages: Ee, setMessages: De, stop: Oe, addAttachment: ke, removeAttachment: Ae } = n ? xe : be, { filteredPrompts: je, setSelectedPrompt: Me, selectedPrompt: Ne, setPromptArgs: Pe, executePrompt: Fe, results: Ie, handleDeleteResult: Le, clearPromptResults: Re } = e$e({
205622
205628
  prompts: i,
205623
205629
  callPrompt: o,
205624
205630
  serverId: a
205625
- }), Re = (0, K.useCallback)((e) => Array.isArray(e) ? e.filter((e) => typeof e == "string").map((e) => e.trim()).filter(Boolean).slice(0, 8) : [], []), ze = (0, K.useCallback)((e) => typeof e.content == "string" ? e.content : Array.isArray(e.content) ? e.content.map((e) => typeof e == "string" ? e : e.text ?? "").join("") : "", []), Be = (0, K.useCallback)(() => xe.map((e) => ({
205626
- id: e.id,
205627
- role: e.role,
205628
- content: ze(e),
205629
- timestamp: e.timestamp
205630
- })), [xe, ze]), Ve = (0, K.useCallback)((e, t = {}) => {
205631
+ }), ze = (0, K.useCallback)((e) => Array.isArray(e) ? e.filter((e) => typeof e == "string").map((e) => e.trim()).filter(Boolean).slice(0, 8) : [], []), Be = (0, K.useCallback)((e) => typeof e.content == "string" ? e.content : Array.isArray(e.content) ? e.content.map((e) => typeof e == "string" ? e : e.text ?? "").join("") : "", []), Ve = (0, K.useCallback)(() => Se.map((e) => {
205632
+ let t = Be(e), n = e.parts?.filter((e) => e.type === "tool-invocation" && e.toolInvocation).map((e) => ({
205633
+ toolName: e.toolInvocation.toolName,
205634
+ args: e.toolInvocation.args,
205635
+ state: e.toolInvocation.state,
205636
+ result: typeof e.toolInvocation.result == "string" ? e.toolInvocation.result.slice(0, 2e3) : e.toolInvocation.result == null ? void 0 : JSON.stringify(e.toolInvocation.result).slice(0, 2e3)
205637
+ })), r = t || (n?.length ? `[Tool calls: ${n.map((e) => `${e.toolName}(${e.state})`).join(", ")}]` : "");
205638
+ return {
205639
+ id: e.id,
205640
+ role: e.role,
205641
+ content: r,
205642
+ timestamp: e.timestamp,
205643
+ toolInvocations: n?.length ? n : void 0
205644
+ };
205645
+ }), [Se, Be]), He = (0, K.useCallback)((e, t = {}) => {
205631
205646
  typeof window > "u" || window.parent === window || window.parent.postMessage({
205632
205647
  type: e,
205633
205648
  serverId: a,
@@ -205635,7 +205650,7 @@ function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205635
205650
  }, "*");
205636
205651
  }, [a]);
205637
205652
  (0, K.useEffect)(() => {
205638
- Ve("mcp-inspector:chat:ready", { capabilities: {
205653
+ He("mcp-inspector:chat:ready", { capabilities: {
205639
205654
  send: !0,
205640
205655
  clear: !0,
205641
205656
  getState: !0,
@@ -205643,20 +205658,20 @@ function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205643
205658
  setFollowups: !0,
205644
205659
  loadMessages: !0
205645
205660
  } });
205646
- }, [Ve]), (0, K.useEffect)(() => {
205647
- Ve("mcp-inspector:chat:state_changed", {
205648
- isLoading: Se,
205649
- messageCount: xe.length,
205650
- messages: Be(),
205661
+ }, [He]), (0, K.useEffect)(() => {
205662
+ He("mcp-inspector:chat:state_changed", {
205663
+ isLoading: Ce,
205664
+ messageCount: Se.length,
205665
+ messages: Ve(),
205651
205666
  quickQuestions: N,
205652
205667
  followups: ee
205653
205668
  });
205654
205669
  }, [
205655
205670
  ee,
205656
- Be,
205657
- Se,
205658
- xe.length,
205659
205671
  Ve,
205672
+ Ce,
205673
+ Se.length,
205674
+ He,
205660
205675
  N
205661
205676
  ]), (0, K.useEffect)(() => {
205662
205677
  let e = (e) => {
@@ -205664,7 +205679,7 @@ function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205664
205679
  let n = e.data;
205665
205680
  if (!n.type?.startsWith("mcp-inspector:chat:") || n.serverId && n.serverId !== a) return;
205666
205681
  let r = n.requestId, i = (e, t = {}) => {
205667
- Ve("mcp-inspector:chat:command_result", {
205682
+ He("mcp-inspector:chat:command_result", {
205668
205683
  requestId: r,
205669
205684
  ok: e,
205670
205685
  ...t
@@ -205676,12 +205691,12 @@ function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205676
205691
  i(!1, { error: "Missing message" });
205677
205692
  return;
205678
205693
  }
205679
- if (!me || !t) {
205694
+ if (!he || !t) {
205680
205695
  i(!1, { error: "Chat is not ready to send messages" });
205681
205696
  return;
205682
205697
  }
205683
- we(e, []).then(() => {
205684
- Ve("mcp-inspector:chat:message_sent", {
205698
+ Te(e, []).then(() => {
205699
+ He("mcp-inspector:chat:message_sent", {
205685
205700
  requestId: r,
205686
205701
  message: e,
205687
205702
  source: "bridge"
@@ -205692,27 +205707,27 @@ function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205692
205707
  return;
205693
205708
  }
205694
205709
  if (n.type === "mcp-inspector:chat:clear") {
205695
- Te(), Ve("mcp-inspector:chat:cleared", { requestId: r }), i(!0);
205710
+ Ee(), He("mcp-inspector:chat:cleared", { requestId: r }), i(!0);
205696
205711
  return;
205697
205712
  }
205698
205713
  if (n.type === "mcp-inspector:chat:get_state") {
205699
- Ve("mcp-inspector:chat:state", {
205714
+ He("mcp-inspector:chat:state", {
205700
205715
  requestId: r,
205701
- isLoading: Se,
205702
- messageCount: xe.length,
205703
- messages: Be(),
205716
+ isLoading: Ce,
205717
+ messageCount: Se.length,
205718
+ messages: Ve(),
205704
205719
  quickQuestions: N,
205705
205720
  followups: ee
205706
205721
  }), i(!0);
205707
205722
  return;
205708
205723
  }
205709
205724
  if (n.type === "mcp-inspector:chat:set_quick_questions") {
205710
- let e = Re(n.questions);
205725
+ let e = ze(n.questions);
205711
205726
  P(e), i(!0, { quickQuestions: e });
205712
205727
  return;
205713
205728
  }
205714
205729
  if (n.type === "mcp-inspector:chat:set_followups") {
205715
- let e = Re(n.followups);
205730
+ let e = ze(n.followups);
205716
205731
  F(e), i(!0, { followups: e });
205717
205732
  return;
205718
205733
  }
@@ -205722,138 +205737,213 @@ function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205722
205737
  i(!1, { error: "messages must be an array" });
205723
205738
  return;
205724
205739
  }
205725
- Ee(e), i(!0, { count: e.length });
205740
+ De(e), i(!0, { count: e.length });
205741
+ return;
205742
+ }
205743
+ if (n.type === "mcp-inspector:chat:screenshot") {
205744
+ let e = n.toolCallId;
205745
+ (async () => {
205746
+ try {
205747
+ let t = null;
205748
+ if (e && (t = document.querySelector(`[data-tool-call-id="${e}"]`)), !t) {
205749
+ let e = document.querySelectorAll("[data-tool-call-id]");
205750
+ e.length > 0 && (t = e[e.length - 1]);
205751
+ }
205752
+ if (!t && L.current && (t = L.current), !t) {
205753
+ i(!1, { error: "No screenshot target found" });
205754
+ return;
205755
+ }
205756
+ let n = 1e4, a = null, o = "", s = "";
205757
+ try {
205758
+ let e = await import("https://esm.sh/html-to-image@1.11.13");
205759
+ e?.toPng ? a = await Promise.race([e.toPng(t, {
205760
+ pixelRatio: 1,
205761
+ backgroundColor: "#ffffff",
205762
+ includeQueryParams: !0
205763
+ }), new Promise((e, t) => setTimeout(() => t(/* @__PURE__ */ Error("html-to-image timed out")), n))]) : o = "toPng not found on module";
205764
+ } catch (e) {
205765
+ o = e instanceof Error ? e.message : String(e);
205766
+ }
205767
+ if (!a) try {
205768
+ if (!window.html2canvas) {
205769
+ let e = document.createElement("script");
205770
+ e.src = "https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js", document.head.appendChild(e), await new Promise((t, n) => {
205771
+ e.onload = () => t(), e.onerror = () => n(/* @__PURE__ */ Error("Failed to load html2canvas"));
205772
+ });
205773
+ }
205774
+ let e = window.html2canvas;
205775
+ a = (await Promise.race([e(t, {
205776
+ useCORS: !0,
205777
+ allowTaint: !0,
205778
+ backgroundColor: "#ffffff",
205779
+ scale: 1,
205780
+ logging: !1,
205781
+ foreignObjectRendering: !1
205782
+ }), new Promise((e, t) => setTimeout(() => t(/* @__PURE__ */ Error("html2canvas timed out")), n))])).toDataURL("image/png");
205783
+ } catch (e) {
205784
+ s = e instanceof Error ? e.message : String(e);
205785
+ }
205786
+ if (a) He("mcp-inspector:chat:screenshot_result", {
205787
+ requestId: r,
205788
+ toolCallId: e || null,
205789
+ image: a,
205790
+ timestamp: Date.now()
205791
+ }), i(!0);
205792
+ else {
205793
+ let t = L.current || document.body, n = t.innerText?.substring(0, 5e3) || "", a = t.innerHTML?.substring(0, 1e4) || "";
205794
+ He("mcp-inspector:chat:screenshot_result", {
205795
+ requestId: r,
205796
+ toolCallId: e || null,
205797
+ image: "",
205798
+ domText: n,
205799
+ domHtml: a,
205800
+ error: `html-to-image: ${o || "ok"}; html2canvas: ${s || "ok"}`,
205801
+ timestamp: Date.now()
205802
+ }), i(!1, { error: `html-to-image: ${o}; html2canvas: ${s}` });
205803
+ }
205804
+ } catch (t) {
205805
+ let n = (L.current || document.body).innerText?.substring(0, 5e3) || "";
205806
+ He("mcp-inspector:chat:screenshot_result", {
205807
+ requestId: r,
205808
+ toolCallId: e || null,
205809
+ image: "",
205810
+ domText: n,
205811
+ error: t instanceof Error ? t.message : "Screenshot capture failed",
205812
+ timestamp: Date.now()
205813
+ }), i(!1, { error: t instanceof Error ? t.message : "Screenshot failed" });
205814
+ }
205815
+ })();
205726
205816
  return;
205727
205817
  }
205728
205818
  };
205729
205819
  return window.addEventListener("message", e), () => window.removeEventListener("message", e);
205730
205820
  }, [
205731
- Te,
205732
205821
  Ee,
205822
+ De,
205733
205823
  ee,
205734
- Be,
205735
- Se,
205736
- xe.length,
205737
205824
  Ve,
205825
+ Ce,
205826
+ Se.length,
205827
+ He,
205738
205828
  N,
205739
- Re,
205740
- we,
205829
+ ze,
205830
+ Te,
205741
205831
  a,
205742
- me,
205832
+ he,
205743
205833
  t
205744
- ]), qZe(r ? { onNewChat: Te } : {});
205745
- let He = (0, K.useCallback)(() => {
205746
- M(-1), A(!1), L.current = null;
205747
- }, []), Ue = (0, K.useCallback)(() => {
205834
+ ]), qZe(r ? { onNewChat: Ee } : {});
205835
+ let Ue = (0, K.useCallback)(() => {
205836
+ M(-1), A(!1), R.current = null;
205837
+ }, []), We = (0, K.useCallback)(() => {
205748
205838
  if (!ne.current) return;
205749
205839
  let e = ne.current.selectionStart, t = D.slice(0, e), n = MZt.test(t);
205750
- A(n), n ? (L.current = {
205840
+ A(n), n ? (R.current = {
205751
205841
  start: e - 1,
205752
205842
  end: e
205753
- }, M(0)) : He();
205754
- }, [D, He]);
205755
- (0, K.useEffect)(() => {
205756
- me && xe.length === 0 && ne.current && ne.current.focus();
205757
- }, [me, xe.length]), (0, K.useEffect)(() => {
205758
- !Se && xe.length > 0 && ne.current && ne.current.focus();
205759
- }, [Se, xe.length]), (0, K.useEffect)(() => {
205760
- ne.current && Ue();
205843
+ }, M(0)) : Ue();
205761
205844
  }, [D, Ue]);
205762
- let We = (0, K.useCallback)(() => {
205763
- je(null), Ne({}), He();
205764
- }, [He]), B = (0, K.useCallback)(async (e) => {
205765
- if (je(e), e.arguments && e.arguments.length > 0) {
205766
- je(null), RN.error("Prompts with arguments are not supported", { description: "This prompt requires arguments which are not yet supported in chat mode." });
205845
+ (0, K.useEffect)(() => {
205846
+ he && Se.length === 0 && ne.current && ne.current.focus();
205847
+ }, [he, Se.length]), (0, K.useEffect)(() => {
205848
+ !Ce && Se.length > 0 && ne.current && ne.current.focus();
205849
+ }, [Ce, Se.length]), (0, K.useEffect)(() => {
205850
+ ne.current && We();
205851
+ }, [D, We]);
205852
+ let B = (0, K.useCallback)(() => {
205853
+ Me(null), Pe({}), Ue();
205854
+ }, [Ue]), Ge = (0, K.useCallback)(async (e) => {
205855
+ if (Me(e), e.arguments && e.arguments.length > 0) {
205856
+ Me(null), RN.error("Prompts with arguments are not supported", { description: "This prompt requires arguments which are not yet supported in chat mode." });
205767
205857
  return;
205768
205858
  }
205769
205859
  try {
205770
- await Pe(e, {});
205860
+ await Fe(e, {});
205771
205861
  } catch (e) {
205772
205862
  console.error("Error executing prompt", e);
205773
205863
  } finally {
205774
- if (ne.current && L.current) {
205775
- let { start: e, end: t } = L.current;
205864
+ if (ne.current && R.current) {
205865
+ let { start: e, end: t } = R.current;
205776
205866
  O(D.slice(0, e) + D.slice(t)), requestAnimationFrame(() => {
205777
205867
  ne.current?.focus(), ne.current?.setSelectionRange(e, e);
205778
205868
  });
205779
205869
  }
205780
- We();
205870
+ B();
205781
205871
  }
205782
205872
  }, [
205783
- Pe,
205784
- We,
205873
+ Fe,
205874
+ B,
205785
205875
  D
205786
- ]), Ge = (0, K.useCallback)(() => {
205787
- (D.trim() || Fe.length > 0 || Ce.length > 0) && (we(D, Fe), O(""), Le());
205876
+ ]), Ke = (0, K.useCallback)(() => {
205877
+ (D.trim() || Ie.length > 0 || we.length > 0) && (Te(D, Ie), O(""), Re());
205788
205878
  }, [
205789
205879
  D,
205790
- Fe,
205791
- we,
205792
- Le,
205793
- Ce
205794
- ]), Ke = (0, K.useCallback)((e) => {
205795
- if (e.key === "ArrowDown") M((e) => Ae.length === 0 ? -1 : (e + 1) % Ae.length);
205796
- else if (e.key === "ArrowUp") M((e) => Ae.length === 0 ? -1 : (e - 1 + Ae.length) % Ae.length);
205797
- else if (e.key === "Escape") e.stopPropagation(), He();
205880
+ Ie,
205881
+ Te,
205882
+ Re,
205883
+ we
205884
+ ]), qe = (0, K.useCallback)((e) => {
205885
+ if (e.key === "ArrowDown") M((e) => je.length === 0 ? -1 : (e + 1) % je.length);
205886
+ else if (e.key === "ArrowUp") M((e) => je.length === 0 ? -1 : (e - 1 + je.length) % je.length);
205887
+ else if (e.key === "Escape") e.stopPropagation(), Ue();
205798
205888
  else if (e.key === "Enter" && j >= 0) {
205799
- let e = Ae[j];
205800
- e && B(e);
205889
+ let e = je[j];
205890
+ e && Ge(e);
205801
205891
  }
205802
205892
  }, [
205803
- Ae,
205893
+ je,
205804
205894
  j,
205805
- B,
205806
- He
205807
- ]), qe = (0, K.useCallback)((e) => {
205808
- NZt.includes(e.key) && k ? (e.preventDefault(), Ke(e)) : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Ge());
205809
- }, [
205810
205895
  Ge,
205896
+ Ue
205897
+ ]), Je = (0, K.useCallback)((e) => {
205898
+ NZt.includes(e.key) && k ? (e.preventDefault(), qe(e)) : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Ke());
205899
+ }, [
205811
205900
  Ke,
205901
+ qe,
205812
205902
  k
205813
- ]), Je = (0, K.useCallback)((e) => {
205814
- (e.key === "ArrowLeft" || e.key === "ArrowRight") && Ue();
205815
- }, [Ue]), Ye = (0, K.useCallback)(() => {
205816
- pe(), Te();
205817
- }, [pe, Te]), Xe = (0, K.useCallback)((e) => {
205818
- e.trim() && (!me || !t || we(e, []).then(() => {
205819
- Ve("mcp-inspector:chat:message_sent", {
205903
+ ]), Ye = (0, K.useCallback)((e) => {
205904
+ (e.key === "ArrowLeft" || e.key === "ArrowRight") && We();
205905
+ }, [We]), Xe = (0, K.useCallback)(() => {
205906
+ me(), Ee();
205907
+ }, [me, Ee]), Ze = (0, K.useCallback)((e) => {
205908
+ e.trim() && (!he || !t || Te(e, []).then(() => {
205909
+ He("mcp-inspector:chat:message_sent", {
205820
205910
  message: e,
205821
205911
  source: "quick_question"
205822
205912
  });
205823
205913
  }));
205824
205914
  }, [
205825
- Ve,
205826
- we,
205827
- me,
205915
+ He,
205916
+ Te,
205917
+ he,
205828
205918
  t
205829
- ]), Ze = (0, K.useCallback)((e) => {
205830
- e.trim() && (!me || !t || we(e, []).then(() => {
205831
- Ve("mcp-inspector:chat:message_sent", {
205919
+ ]), Qe = (0, K.useCallback)((e) => {
205920
+ e.trim() && (!he || !t || Te(e, []).then(() => {
205921
+ He("mcp-inspector:chat:message_sent", {
205832
205922
  message: e,
205833
205923
  source: "followup"
205834
205924
  });
205835
205925
  }));
205836
205926
  }, [
205837
- Ve,
205838
- we,
205839
- me,
205927
+ He,
205928
+ Te,
205929
+ he,
205840
205930
  t
205841
205931
  ]);
205842
- return me && xe.length === 0 ? /* @__PURE__ */ (0, q.jsxs)("div", {
205932
+ return he && Se.length === 0 ? /* @__PURE__ */ (0, q.jsxs)("div", {
205843
205933
  className: "flex flex-col h-full",
205844
- children: [!he && /* @__PURE__ */ (0, q.jsx)("div", {
205934
+ children: [!ge && /* @__PURE__ */ (0, q.jsx)("div", {
205845
205935
  className: "absolute top-4 right-4 z-10",
205846
205936
  children: /* @__PURE__ */ (0, q.jsx)(F$e, {
205847
- open: ae,
205848
- onOpenChange: oe,
205849
- tempProvider: se,
205850
- tempModel: ue,
205851
- tempApiKey: le,
205852
- onProviderChange: ce,
205853
- onModelChange: de,
205854
- onApiKeyChange: z,
205855
- onSave: fe,
205856
- onClear: Ye,
205937
+ open: oe,
205938
+ onOpenChange: se,
205939
+ tempProvider: ce,
205940
+ tempModel: de,
205941
+ tempApiKey: z,
205942
+ onProviderChange: le,
205943
+ onModelChange: fe,
205944
+ onApiKeyChange: ue,
205945
+ onSave: pe,
205946
+ onClear: Xe,
205857
205947
  showClearButton: !0,
205858
205948
  buttonLabel: "Change API Key"
205859
205949
  })
@@ -205861,53 +205951,53 @@ function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205861
205951
  mcpServerUrl: e.url,
205862
205952
  inputValue: D,
205863
205953
  isConnected: t,
205864
- isLoading: Se,
205954
+ isLoading: Ce,
205865
205955
  textareaRef: ne,
205866
- llmConfig: me,
205956
+ llmConfig: he,
205867
205957
  promptsDropdownOpen: k,
205868
205958
  promptFocusedIndex: j,
205869
- prompts: Ae,
205870
- selectedPrompt: Me,
205871
- promptResults: Fe,
205872
- attachments: Ce,
205873
- tools: b ? void 0 : R,
205959
+ prompts: je,
205960
+ selectedPrompt: Ne,
205961
+ promptResults: Ie,
205962
+ attachments: we,
205963
+ tools: b ? void 0 : re,
205874
205964
  disabledTools: b ? void 0 : I,
205875
205965
  onDisabledToolsChange: b ? void 0 : te,
205876
- onDeletePromptResult: Ie,
205877
- onPromptSelect: B,
205966
+ onDeletePromptResult: Le,
205967
+ onPromptSelect: Ge,
205878
205968
  onInputChange: O,
205879
- onKeyDown: qe,
205880
- onKeyUp: Je,
205881
- onClick: Ue,
205969
+ onKeyDown: Je,
205970
+ onKeyUp: Ye,
205971
+ onClick: We,
205882
205972
  onSubmit: (e) => {
205883
- e.preventDefault(), Ge();
205973
+ e.preventDefault(), Ke();
205884
205974
  },
205885
- onConfigDialogOpenChange: oe,
205886
- onAttachmentAdd: Oe,
205887
- onAttachmentRemove: ke,
205975
+ onConfigDialogOpenChange: se,
205976
+ onAttachmentAdd: ke,
205977
+ onAttachmentRemove: Ae,
205888
205978
  hideModelBadge: m,
205889
205979
  hideServerUrl: h,
205890
205980
  quickQuestions: N,
205891
- onQuickQuestionSelect: Xe
205981
+ onQuickQuestionSelect: Ze
205892
205982
  })]
205893
205983
  }) : /* @__PURE__ */ (0, q.jsxs)("div", {
205894
205984
  className: "flex flex-col h-full relative",
205895
205985
  children: [
205896
205986
  /* @__PURE__ */ (0, q.jsx)(I$e, {
205897
- llmConfig: me,
205898
- hasMessages: xe.length > 0,
205899
- configDialogOpen: he ? !1 : ae,
205900
- onConfigDialogOpenChange: he ? () => {} : oe,
205901
- onClearChat: Te,
205902
- tempProvider: se,
205903
- tempModel: ue,
205904
- tempApiKey: le,
205905
- onProviderChange: ce,
205906
- onModelChange: de,
205907
- onApiKeyChange: z,
205908
- onSaveConfig: fe,
205909
- onClearConfig: Ye,
205910
- hideConfigButton: he,
205987
+ llmConfig: he,
205988
+ hasMessages: Se.length > 0,
205989
+ configDialogOpen: ge ? !1 : oe,
205990
+ onConfigDialogOpenChange: ge ? () => {} : se,
205991
+ onClearChat: Ee,
205992
+ tempProvider: ce,
205993
+ tempModel: de,
205994
+ tempApiKey: z,
205995
+ onProviderChange: le,
205996
+ onModelChange: fe,
205997
+ onApiKeyChange: ue,
205998
+ onSaveConfig: pe,
205999
+ onClearConfig: Xe,
206000
+ hideConfigButton: ge,
205911
206001
  clearButtonLabel: f,
205912
206002
  hideTitle: p,
205913
206003
  clearButtonHideIcon: g,
@@ -205916,43 +206006,44 @@ function PZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205916
206006
  hideClearButton: y
205917
206007
  }),
205918
206008
  /* @__PURE__ */ (0, q.jsx)("div", {
206009
+ ref: L,
205919
206010
  className: "flex-1 overflow-y-auto p-2 sm:p-4 pt-[80px] sm:pt-[100px]",
205920
- children: me ? /* @__PURE__ */ (0, q.jsx)(bIt, {
205921
- messages: xe,
205922
- isLoading: Se,
206011
+ children: he ? /* @__PURE__ */ (0, q.jsx)(bIt, {
206012
+ messages: Se,
206013
+ isLoading: Ce,
205923
206014
  serverId: e.url,
205924
206015
  readResource: s,
205925
206016
  tools: e.tools,
205926
- sendMessage: (e, t) => we(e, [], t),
206017
+ sendMessage: (e, t) => Te(e, [], t),
205927
206018
  serverBaseUrl: e.url
205928
- }) : /* @__PURE__ */ (0, q.jsx)(m1e, { onConfigureClick: () => oe(!0) })
206019
+ }) : /* @__PURE__ */ (0, q.jsx)(m1e, { onConfigureClick: () => se(!0) })
205929
206020
  }),
205930
- me && /* @__PURE__ */ (0, q.jsx)(d1e, {
206021
+ he && /* @__PURE__ */ (0, q.jsx)(d1e, {
205931
206022
  inputValue: D,
205932
206023
  isConnected: t,
205933
- isLoading: Se,
206024
+ isLoading: Ce,
205934
206025
  textareaRef: ne,
205935
206026
  promptsDropdownOpen: k,
205936
206027
  promptFocusedIndex: j,
205937
- prompts: Ae,
205938
- promptResults: Fe,
205939
- selectedPrompt: Me,
205940
- attachments: Ce,
205941
- tools: b ? void 0 : R,
206028
+ prompts: je,
206029
+ promptResults: Ie,
206030
+ selectedPrompt: Ne,
206031
+ attachments: we,
206032
+ tools: b ? void 0 : re,
205942
206033
  disabledTools: b ? void 0 : I,
205943
206034
  onDisabledToolsChange: b ? void 0 : te,
205944
- onDeletePromptResult: Ie,
205945
- onPromptSelect: B,
206035
+ onDeletePromptResult: Le,
206036
+ onPromptSelect: Ge,
205946
206037
  onInputChange: O,
205947
- onKeyDown: qe,
205948
- onKeyUp: Je,
205949
- onClick: Ue,
205950
- onSendMessage: Ge,
205951
- onStopStreaming: De,
205952
- onAttachmentAdd: Oe,
205953
- onAttachmentRemove: ke,
206038
+ onKeyDown: Je,
206039
+ onKeyUp: Ye,
206040
+ onClick: We,
206041
+ onSendMessage: Ke,
206042
+ onStopStreaming: Oe,
206043
+ onAttachmentAdd: ke,
206044
+ onAttachmentRemove: Ae,
205954
206045
  followups: ee,
205955
- onFollowupSelect: Ze
206046
+ onFollowupSelect: Qe
205956
206047
  })
205957
206048
  ]
205958
206049
  });
@@ -212498,7 +212589,7 @@ function p1t({ activeTab: e, isSearchExpanded: t, searchQuery: n, filteredToolsC
212498
212589
  });
212499
212590
  }
212500
212591
  //#endregion
212501
- //#region ../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.10__@type_56f594cfdf18ff10dafbf7587c6528db/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
212592
+ //#region ../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.14__@type_d492cfbed6c88f7a3980b921a627d48d/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
212502
212593
  var m1t = "AlertDialog", [h1t, g1t] = WA(m1t, [hEe]), Y9 = hEe(), _1t = (e) => {
212503
212594
  let { __scopeAlertDialog: t, ...n } = e, r = Y9(t);
212504
212595
  return /* @__PURE__ */ (0, q.jsx)(JN, {