@mcp-use/inspector 7.0.0-canary.8 → 7.0.0-canary.9

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.
@@ -26903,7 +26903,7 @@ var Ud = class {
26903
26903
  //#region src/client/telemetry/utils.ts
26904
26904
  function of() {
26905
26905
  try {
26906
- return "7.0.0-canary.8";
26906
+ return "7.0.0-canary.9";
26907
26907
  } catch {
26908
26908
  return "0.0.0";
26909
26909
  }
@@ -48440,9 +48440,9 @@ var qA, JA, YA, XA, ZA, QA, $A, ej, tj, nj, rj, ij, aj, oj, Kce, qce, sj, cj, lj
48440
48440
  }(), wue);
48441
48441
  }));
48442
48442
  //#endregion
48443
- //#region ../mcp-use/dist/chunk-ZWQMXQQQ.js
48443
+ //#region ../mcp-use/dist/chunk-FJE4UU4Z.js
48444
48444
  Yp();
48445
- var kue = "1.29.0-canary.8";
48445
+ var kue = "1.29.0-canary.9";
48446
48446
  function nI() {
48447
48447
  return kue;
48448
48448
  }
@@ -137628,16 +137628,8 @@ function i$e({ notifications: e, unreadCount: t, markNotificationRead: n, markAl
137628
137628
  });
137629
137629
  }
137630
137630
  //#endregion
137631
- //#region src/client/components/shared/TabCountBadge.tsx
137632
- function a$e({ count: e, isActive: t, size: n = "md" }) {
137633
- return e <= 0 ? null : /* @__PURE__ */ (0, O.jsx)("span", {
137634
- className: V(t ? "dark:bg-black" : "dark:bg-zinc-700", "shrink-0 ml-1 bg-zinc-200 text-zinc-700 dark:text-zinc-300 rounded-full font-medium", n === "sm" && "text-[10px] px-1.5 py-0.5", n === "md" && "text-xs px-2 py-0.5"),
137635
- children: e
137636
- });
137637
- }
137638
- //#endregion
137639
137631
  //#region src/client/components/shared/ListTabHeader.tsx
137640
- function o$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, primaryTabTitle: r, secondaryTabTitle: i, primaryCount: a, secondaryCount: o, secondaryIcon: s, primaryIcon: c, searchPlaceholder: l = "Search...", onSearchExpand: u, onSearchChange: d, onSearchBlur: f, onTabSwitch: p, searchInputRef: m, primaryTabName: h, onRefresh: g, isRefreshing: _ = !1 }) {
137632
+ function a$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, primaryTabTitle: r, secondaryTabTitle: i, primaryCount: a, secondaryCount: o, secondaryIcon: s, primaryIcon: c, searchPlaceholder: l = "Search...", onSearchExpand: u, onSearchChange: d, onSearchBlur: f, onTabSwitch: p, searchInputRef: m, primaryTabName: h, onRefresh: g, isRefreshing: _ = !1 }) {
137641
137633
  let v = e === h;
137642
137634
  return /* @__PURE__ */ (0, O.jsxs)("div", {
137643
137635
  className: "flex flex-row items-center justify-between p-4 sm:p-4 py-3 gap-2",
@@ -137711,7 +137703,7 @@ function o$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, primaryTabTitl
137711
137703
  }
137712
137704
  //#endregion
137713
137705
  //#region src/client/components/logging/JsonRpcLoggerView.tsx
137714
- function s$e({ serverIds: e, onCountChange: t, onClearRef: n, onExportRef: r } = {}) {
137706
+ function o$e({ serverIds: e, onCountChange: t, onClearRef: n, onExportRef: r } = {}) {
137715
137707
  let [i, a] = (0, A.useState)([]), o = (0, A.useRef)(null), [s, c] = (0, A.useState)(/* @__PURE__ */ new Set()), [l] = (0, A.useState)(""), u = (e) => {
137716
137708
  c((t) => {
137717
137709
  let n = new Set(t);
@@ -137931,7 +137923,7 @@ function R9({ serverId: e, className: t }) {
137931
137923
  }), /* @__PURE__ */ (0, O.jsx)(jf, { className: `h-4 w-4 text-muted-foreground transition-transform ${i ? "" : "rotate-180"}` })]
137932
137924
  }), /* @__PURE__ */ (0, O.jsx)("div", {
137933
137925
  className: `flex-1 overflow-hidden min-h-0 ${i ? "hidden" : ""}`,
137934
- children: /* @__PURE__ */ (0, O.jsx)(s$e, {
137926
+ children: /* @__PURE__ */ (0, O.jsx)(o$e, {
137935
137927
  serverIds: [e],
137936
137928
  onCountChange: r,
137937
137929
  onClearRef: s,
@@ -137943,7 +137935,7 @@ function R9({ serverId: e, className: t }) {
137943
137935
  R9.displayName = "RpcPanel";
137944
137936
  //#endregion
137945
137937
  //#region src/client/components/prompts/PromptsList.tsx
137946
- function c$e({ prompts: e, selectedPrompt: t, onPromptSelect: n, focusedIndex: r }) {
137938
+ function s$e({ prompts: e, selectedPrompt: t, onPromptSelect: n, focusedIndex: r }) {
137947
137939
  return e.length === 0 ? /* @__PURE__ */ (0, O.jsxs)("div", {
137948
137940
  className: "flex flex-col items-center justify-center h-full p-4 text-center",
137949
137941
  children: [/* @__PURE__ */ (0, O.jsx)(fp, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, O.jsx)("p", {
@@ -137971,8 +137963,8 @@ function c$e({ prompts: e, selectedPrompt: t, onPromptSelect: n, focusedIndex: r
137971
137963
  }
137972
137964
  //#endregion
137973
137965
  //#region src/client/components/prompts/PromptsTabHeader.tsx
137974
- function l$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, filteredPromptsCount: r, savedPromptsCount: i, onSearchExpand: a, onSearchChange: o, onSearchBlur: s, onTabSwitch: c, searchInputRef: l, onRefresh: u, isRefreshing: d }) {
137975
- return /* @__PURE__ */ (0, O.jsx)(o$e, {
137966
+ function c$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, filteredPromptsCount: r, savedPromptsCount: i, onSearchExpand: a, onSearchChange: o, onSearchBlur: s, onTabSwitch: c, searchInputRef: l, onRefresh: u, isRefreshing: d }) {
137967
+ return /* @__PURE__ */ (0, O.jsx)(a$e, {
137976
137968
  activeTab: e,
137977
137969
  isSearchExpanded: t,
137978
137970
  searchQuery: n,
@@ -137996,7 +137988,7 @@ function l$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, filteredPrompt
137996
137988
  }
137997
137989
  //#endregion
137998
137990
  //#region src/client/components/prompts/SavedPromptsList.tsx
137999
- function u$e({ savedPrompts: e, selectedPrompt: t, onLoadPrompt: n, onDeletePrompt: r, focusedIndex: i }) {
137991
+ function l$e({ savedPrompts: e, selectedPrompt: t, onLoadPrompt: n, onDeletePrompt: r, focusedIndex: i }) {
138000
137992
  return e.length === 0 ? /* @__PURE__ */ (0, O.jsxs)("div", {
138001
137993
  className: "flex flex-col items-center justify-center h-full p-4 text-center",
138002
137994
  children: [
@@ -138025,7 +138017,7 @@ function u$e({ savedPrompts: e, selectedPrompt: t, onLoadPrompt: n, onDeleteProm
138025
138017
  }
138026
138018
  //#endregion
138027
138019
  //#region src/client/components/prompts/PromptInputForm.tsx
138028
- function d$e({ selectedPrompt: e, promptArgs: t, onArgChange: n }) {
138020
+ function u$e({ selectedPrompt: e, promptArgs: t, onArgChange: n }) {
138029
138021
  let r = e?.arguments || [];
138030
138022
  if (!(r.length > 0)) return /* @__PURE__ */ (0, O.jsx)("div", {
138031
138023
  className: "flex items-center justify-center h-32 text-gray-500 dark:text-gray-400 text-sm",
@@ -138140,7 +138132,7 @@ function d$e({ selectedPrompt: e, promptArgs: t, onArgChange: n }) {
138140
138132
  }
138141
138133
  //#endregion
138142
138134
  //#region src/client/components/prompts/PromptExecutionPanel.tsx
138143
- function f$e({ selectedPrompt: e, promptArgs: t, isExecuting: n, isConnected: r, onArgChange: i, onExecute: a, onSave: o }) {
138135
+ function d$e({ selectedPrompt: e, promptArgs: t, isExecuting: n, isConnected: r, onArgChange: i, onExecute: a, onSave: o }) {
138144
138136
  return (0, A.useEffect)(() => {
138145
138137
  let t = (t) => {
138146
138138
  (t.metaKey || t.ctrlKey) && t.key === "Enter" && e && !n && r && (t.preventDefault(), a());
@@ -138200,7 +138192,7 @@ function f$e({ selectedPrompt: e, promptArgs: t, isExecuting: n, isConnected: r,
138200
138192
  })] })
138201
138193
  }), /* @__PURE__ */ (0, O.jsx)("div", {
138202
138194
  className: "flex-1 overflow-y-auto px-3 sm:px-6 pb-4 pr-3",
138203
- children: /* @__PURE__ */ (0, O.jsx)(d$e, {
138195
+ children: /* @__PURE__ */ (0, O.jsx)(u$e, {
138204
138196
  selectedPrompt: e,
138205
138197
  promptArgs: t,
138206
138198
  onArgChange: i
@@ -138219,7 +138211,7 @@ function f$e({ selectedPrompt: e, promptArgs: t, isExecuting: n, isConnected: r,
138219
138211
  }
138220
138212
  //#endregion
138221
138213
  //#region src/client/components/prompts/PromptMessageCard.tsx
138222
- function p$e(e) {
138214
+ function f$e(e) {
138223
138215
  switch (e) {
138224
138216
  case "system": return "default";
138225
138217
  case "user": return "outline";
@@ -138227,26 +138219,26 @@ function p$e(e) {
138227
138219
  default: return "outline";
138228
138220
  }
138229
138221
  }
138230
- function m$e(e) {
138222
+ function p$e(e) {
138231
138223
  return e.charAt(0).toUpperCase() + e.slice(1);
138232
138224
  }
138233
- function h$e(e) {
138225
+ function m$e(e) {
138234
138226
  return typeof e == "string" ? e : e.text ? e.text : e.type === "resource" && e.resource?.text ? e.resource.text : e.type === "image" ? `[Image: ${e.mimeType || "unknown type"}]` : JSON.stringify(e, null, 2);
138235
138227
  }
138236
- function g$e({ message: e, index: t }) {
138228
+ function h$e({ message: e, index: t }) {
138237
138229
  let [n, r] = (0, A.useState)(!1);
138238
138230
  return /* @__PURE__ */ (0, O.jsxs)("div", {
138239
138231
  className: "border border-border rounded-lg overflow-hidden bg-white dark:bg-zinc-900",
138240
138232
  children: [/* @__PURE__ */ (0, O.jsxs)("div", {
138241
138233
  className: "flex items-center justify-between px-4 py-2 bg-muted/30 border-b border-border",
138242
138234
  children: [/* @__PURE__ */ (0, O.jsx)(It, {
138243
- variant: p$e(e.role),
138244
- children: m$e(e.role)
138235
+ variant: f$e(e.role),
138236
+ children: p$e(e.role)
138245
138237
  }), /* @__PURE__ */ (0, O.jsx)(H, {
138246
138238
  variant: "ghost",
138247
138239
  size: "sm",
138248
138240
  onClick: async () => {
138249
- await pR(h$e(e.content)), r(!0), setTimeout(() => r(!1), 2e3);
138241
+ await pR(m$e(e.content)), r(!0), setTimeout(() => r(!1), 2e3);
138250
138242
  },
138251
138243
  className: "h-6 px-2",
138252
138244
  title: "Copy message content",
@@ -138292,20 +138284,20 @@ function g$e({ message: e, index: t }) {
138292
138284
  }
138293
138285
  //#endregion
138294
138286
  //#region src/client/components/prompts/PromptResultDisplay.tsx
138295
- function _$e(e) {
138287
+ function g$e(e) {
138296
138288
  let t = Date.now() - e, n = Math.floor(t / 1e3), r = Math.floor(n / 60), i = Math.floor(r / 60), a = Math.floor(i / 24);
138297
138289
  return n < 10 ? "now" : n < 60 ? `${n}s ago` : r < 60 ? `${r}m ago` : i < 24 ? `${i}h ago` : `${a}d ago`;
138298
138290
  }
138299
- function v$e(e) {
138291
+ function _$e(e) {
138300
138292
  return "isError" in e && !e.isError ? null : "error" in e && e.error ? String(e.error) : "isError" in e && e.isError ? "An error occurred" : null;
138301
138293
  }
138302
- function y$e({ results: e, copiedResult: t, previewMode: n = !0, onCopy: r, onDelete: i, onFullscreen: a, onTogglePreview: o, onMaximize: s, isMaximized: c = !1 }) {
138294
+ function v$e({ results: e, copiedResult: t, previewMode: n = !0, onCopy: r, onDelete: i, onFullscreen: a, onTogglePreview: o, onMaximize: s, isMaximized: c = !1 }) {
138303
138295
  let [l, u] = (0, A.useState)(0), [d, f] = (0, A.useState)(""), [p, m] = (0, A.useState)(!0), h = e[0], g = h ? e.filter((e) => e.promptName === h.promptName) : [], _ = g[l] || g[0], v = e.findIndex((e) => e === _);
138304
138296
  if ((0, A.useEffect)(() => {
138305
138297
  g.length > 0 && l >= g.length && u(0);
138306
138298
  }, [g.length, l]), (0, A.useEffect)(() => {
138307
138299
  let e = () => {
138308
- _ && f(_$e(_.timestamp));
138300
+ _ && f(g$e(_.timestamp));
138309
138301
  };
138310
138302
  e();
138311
138303
  let t = setInterval(e, 1e3);
@@ -138327,7 +138319,7 @@ function y$e({ results: e, copiedResult: t, previewMode: n = !0, onCopy: r, onDe
138327
138319
  })
138328
138320
  })
138329
138321
  });
138330
- let y = _.error || v$e(_.result), b = "messages" in _.result && Array.isArray(_.result.messages);
138322
+ let y = _.error || _$e(_.result), b = "messages" in _.result && Array.isArray(_.result.messages);
138331
138323
  return /* @__PURE__ */ (0, O.jsx)("div", {
138332
138324
  className: "flex flex-col h-full bg-white dark:bg-black border-t dark:border-zinc-700",
138333
138325
  children: /* @__PURE__ */ (0, O.jsx)("div", {
@@ -138439,7 +138431,7 @@ function y$e({ results: e, copiedResult: t, previewMode: n = !0, onCopy: r, onDe
138439
138431
  })]
138440
138432
  }) : p && b ? /* @__PURE__ */ (0, O.jsx)("div", {
138441
138433
  className: "space-y-3",
138442
- children: ("messages" in _.result ? _.result.messages : []).map((e, t) => /* @__PURE__ */ (0, O.jsx)(g$e, {
138434
+ children: ("messages" in _.result ? _.result.messages : []).map((e, t) => /* @__PURE__ */ (0, O.jsx)(h$e, {
138443
138435
  message: e,
138444
138436
  index: t
138445
138437
  }, t))
@@ -138454,8 +138446,8 @@ function y$e({ results: e, copiedResult: t, previewMode: n = !0, onCopy: r, onDe
138454
138446
  }
138455
138447
  //#endregion
138456
138448
  //#region src/client/components/PromptsTab.tsx
138457
- var b$e = "mcp-inspector-saved-prompts";
138458
- function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, refreshPrompts: a }) {
138449
+ var y$e = "mcp-inspector-saved-prompts";
138450
+ function b$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, refreshPrompts: a }) {
138459
138451
  let [o, s] = (0, A.useState)(!1), [c, l] = (0, A.useState)(null), { selectedPromptName: u, setSelectedPromptName: d } = i0(), [f, p] = (0, A.useState)(null), [m, h] = (0, A.useState)("prompts"), [g, _] = (0, A.useState)([]), [v, y] = (0, A.useState)(!1), [b, x] = (0, A.useState)(""), [S, C] = (0, A.useState)(!1), [w, T] = (0, A.useState)(-1), E = (0, A.useRef)(null), [D, k] = (0, A.useState)(!1), [j, M] = (0, A.useState)("list"), [N, P] = (0, A.useState)(!1), { filteredPrompts: F, selectedPrompt: I, setSelectedPrompt: L, results: ee, handleDeleteResult: te, promptArgs: ne, setPromptArgs: re, isExecuting: ie, handlePromptSelect: R, handleArgChange: z, executeSelectedPrompt: ae, searchQuery: oe, setSearchQuery: se } = gIe({
138460
138452
  prompts: t,
138461
138453
  callPrompt: n,
@@ -138485,7 +138477,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138485
138477
  }
138486
138478
  })), (0, A.useEffect)(() => {
138487
138479
  try {
138488
- let e = localStorage.getItem(b$e);
138480
+ let e = localStorage.getItem(y$e);
138489
138481
  e && _(JSON.parse(e));
138490
138482
  } catch (e) {
138491
138483
  console.error("[PromptsTab] Failed to load saved prompts:", e);
@@ -138493,7 +138485,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138493
138485
  }, []);
138494
138486
  let ue = (0, A.useCallback)((e) => {
138495
138487
  try {
138496
- localStorage.setItem(b$e, JSON.stringify(e));
138488
+ localStorage.setItem(y$e, JSON.stringify(e));
138497
138489
  } catch (e) {
138498
138490
  console.error("[PromptsTab] Failed to save prompts:", e);
138499
138491
  }
@@ -138700,7 +138692,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138700
138692
  damping: 30
138701
138693
  },
138702
138694
  className: "absolute inset-0 flex flex-col bg-background z-0",
138703
- children: [/* @__PURE__ */ (0, O.jsx)(l$e, {
138695
+ children: [/* @__PURE__ */ (0, O.jsx)(c$e, {
138704
138696
  activeTab: m,
138705
138697
  isSearchExpanded: S,
138706
138698
  searchQuery: oe,
@@ -138713,12 +138705,12 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138713
138705
  searchInputRef: E,
138714
138706
  onRefresh: a ? fe : void 0,
138715
138707
  isRefreshing: o
138716
- }), m === "prompts" ? /* @__PURE__ */ (0, O.jsx)(c$e, {
138708
+ }), m === "prompts" ? /* @__PURE__ */ (0, O.jsx)(s$e, {
138717
138709
  prompts: F,
138718
138710
  selectedPrompt: I,
138719
138711
  onPromptSelect: R,
138720
138712
  focusedIndex: w
138721
- }) : /* @__PURE__ */ (0, O.jsx)(u$e, {
138713
+ }) : /* @__PURE__ */ (0, O.jsx)(l$e, {
138722
138714
  savedPrompts: g,
138723
138715
  selectedPrompt: c,
138724
138716
  onLoadPrompt: pe,
@@ -138736,7 +138728,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138736
138728
  damping: 30
138737
138729
  },
138738
138730
  className: "absolute inset-0 bg-background z-10",
138739
- children: /* @__PURE__ */ (0, O.jsx)(f$e, {
138731
+ children: /* @__PURE__ */ (0, O.jsx)(d$e, {
138740
138732
  selectedPrompt: I,
138741
138733
  promptArgs: ne,
138742
138734
  isExecuting: ie,
@@ -138756,7 +138748,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138756
138748
  damping: 30
138757
138749
  },
138758
138750
  className: "absolute inset-0 bg-background z-20",
138759
- children: /* @__PURE__ */ (0, O.jsx)(y$e, {
138751
+ children: /* @__PURE__ */ (0, O.jsx)(v$e, {
138760
138752
  results: ee,
138761
138753
  copiedResult: f,
138762
138754
  onCopy: me,
@@ -138786,7 +138778,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138786
138778
  minSize: "30%",
138787
138779
  children: /* @__PURE__ */ (0, O.jsxs)("div", {
138788
138780
  className: "flex flex-col h-full overflow-hidden",
138789
- children: [/* @__PURE__ */ (0, O.jsx)(l$e, {
138781
+ children: [/* @__PURE__ */ (0, O.jsx)(c$e, {
138790
138782
  activeTab: m,
138791
138783
  isSearchExpanded: S,
138792
138784
  searchQuery: oe,
@@ -138799,12 +138791,12 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138799
138791
  searchInputRef: E,
138800
138792
  onRefresh: a ? fe : void 0,
138801
138793
  isRefreshing: o
138802
- }), m === "prompts" ? /* @__PURE__ */ (0, O.jsx)(c$e, {
138794
+ }), m === "prompts" ? /* @__PURE__ */ (0, O.jsx)(s$e, {
138803
138795
  prompts: F,
138804
138796
  selectedPrompt: I,
138805
138797
  onPromptSelect: R,
138806
138798
  focusedIndex: w
138807
- }) : /* @__PURE__ */ (0, O.jsx)(u$e, {
138799
+ }) : /* @__PURE__ */ (0, O.jsx)(l$e, {
138808
138800
  savedPrompts: g,
138809
138801
  selectedPrompt: c,
138810
138802
  onLoadPrompt: pe,
@@ -138828,7 +138820,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138828
138820
  panelRef: le,
138829
138821
  defaultSize: "40%",
138830
138822
  collapsible: !0,
138831
- children: /* @__PURE__ */ (0, O.jsx)(f$e, {
138823
+ children: /* @__PURE__ */ (0, O.jsx)(d$e, {
138832
138824
  selectedPrompt: I,
138833
138825
  promptArgs: ne,
138834
138826
  isExecuting: ie,
@@ -138843,7 +138835,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138843
138835
  defaultSize: "60%",
138844
138836
  children: /* @__PURE__ */ (0, O.jsx)("div", {
138845
138837
  className: "flex flex-col h-full",
138846
- children: /* @__PURE__ */ (0, O.jsx)(y$e, {
138838
+ children: /* @__PURE__ */ (0, O.jsx)(v$e, {
138847
138839
  results: ee,
138848
138840
  copiedResult: f,
138849
138841
  onCopy: me,
@@ -138860,7 +138852,7 @@ function x$e({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, r
138860
138852
  ]
138861
138853
  });
138862
138854
  }
138863
- x$e.displayName = "PromptsTab";
138855
+ b$e.displayName = "PromptsTab";
138864
138856
  //#endregion
138865
138857
  //#region src/client/components/McpUIRenderer.tsx
138866
138858
  function z9(e) {
@@ -138868,7 +138860,7 @@ function z9(e) {
138868
138860
  let t = e.mimeType.toLowerCase();
138869
138861
  return t === "text/html" || t === "text/html;profile=mcp-app" || t === "text/html+skybridge" || t === "text/uri-list" || t.startsWith("application/vnd.mcp-ui.remote-dom");
138870
138862
  }
138871
- function S$e({ resource: e, className: t }) {
138863
+ function x$e({ resource: e, className: t }) {
138872
138864
  let n = e, r = (0, A.useMemo)(() => {
138873
138865
  if (n.text) return n.text;
138874
138866
  if (n.blob) try {
@@ -138894,7 +138886,7 @@ function S$e({ resource: e, className: t }) {
138894
138886
  }
138895
138887
  //#endregion
138896
138888
  //#region src/client/components/resources/ResourceResultDisplay.tsx
138897
- function C$e(e) {
138889
+ function S$e(e) {
138898
138890
  if ("error" in e && e.error && typeof e.error == "string") return e.error;
138899
138891
  if (!("isError" in e && e.isError)) return null;
138900
138892
  if ("contents" in e && Array.isArray(e.contents)) {
@@ -138903,7 +138895,7 @@ function C$e(e) {
138903
138895
  }
138904
138896
  return "An error occurred";
138905
138897
  }
138906
- function w$e({ result: e, isLoading: t, previewMode: n, serverId: r, readResource: i, onTogglePreview: a, onCopy: o, onDownload: s, onFullscreen: c, isCopied: l = !1, selectedResource: u, llmConfig: d }) {
138898
+ function C$e({ result: e, isLoading: t, previewMode: n, serverId: r, readResource: i, onTogglePreview: a, onCopy: o, onDownload: s, onFullscreen: c, isCopied: l = !1, selectedResource: u, llmConfig: d }) {
138907
138899
  let f = (0, A.useMemo)(() => ({}), []), [p, m] = (0, A.useState)(null), h = (0, A.useCallback)((e) => {
138908
138900
  m(e);
138909
138901
  }, []), [g, _] = (0, A.useState)("inline"), v = [], y;
@@ -138937,7 +138929,7 @@ function w$e({ result: e, isLoading: t, previewMode: n, serverId: r, readResourc
138937
138929
  children: "Choose a resource from the list to see its data"
138938
138930
  })]
138939
138931
  });
138940
- let j = e.error || (e.result ? C$e(e.result) : null);
138932
+ let j = e.error || (e.result ? S$e(e.result) : null);
138941
138933
  if (j) return /* @__PURE__ */ (0, O.jsx)("div", {
138942
138934
  className: "p-4",
138943
138935
  children: /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -139099,7 +139091,7 @@ function w$e({ result: e, isLoading: t, previewMode: n, serverId: r, readResourc
139099
139091
  className: "mx-0 size-full",
139100
139092
  children: /* @__PURE__ */ (0, O.jsx)("div", {
139101
139093
  className: "w-full h-full",
139102
- children: /* @__PURE__ */ (0, O.jsx)(S$e, {
139094
+ children: /* @__PURE__ */ (0, O.jsx)(x$e, {
139103
139095
  resource: e,
139104
139096
  className: "w-full h-full",
139105
139097
  customProps: p || void 0
@@ -139138,12 +139130,12 @@ function w$e({ result: e, isLoading: t, previewMode: n, serverId: r, readResourc
139138
139130
  }
139139
139131
  //#endregion
139140
139132
  //#region src/client/components/resources/ResourcesList.tsx
139141
- function T$e(e, t) {
139133
+ function w$e(e, t) {
139142
139134
  if (!e && !t) return /* @__PURE__ */ (0, O.jsx)(Qf, { className: "h-5 w-5" });
139143
139135
  let n = (e || t || "").toLowerCase();
139144
139136
  return n.includes("image") ? /* @__PURE__ */ (0, O.jsx)(Xf, { className: "h-5 w-5" }) : n.includes("json") || n.includes("javascript") || n.includes("typescript") ? /* @__PURE__ */ (0, O.jsx)(Yf, { className: "h-5 w-5" }) : n.includes("html") || n.includes("xml") ? /* @__PURE__ */ (0, O.jsx)(ep, { className: "h-5 w-5" }) : n.includes("database") || n.includes("sql") ? /* @__PURE__ */ (0, O.jsx)(Wf, { className: "h-5 w-5" }) : /* @__PURE__ */ (0, O.jsx)(Zf, { className: "h-5 w-5" });
139145
139137
  }
139146
- function E$e({ resources: e, selectedResource: t, onResourceSelect: n, focusedIndex: r }) {
139138
+ function T$e({ resources: e, selectedResource: t, onResourceSelect: n, focusedIndex: r }) {
139147
139139
  return e.length === 0 ? /* @__PURE__ */ (0, O.jsxs)("div", {
139148
139140
  className: "flex flex-col items-center justify-center h-full p-4 text-center",
139149
139141
  children: [/* @__PURE__ */ (0, O.jsx)(Wf, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, O.jsx)("p", {
@@ -139153,7 +139145,7 @@ function E$e({ resources: e, selectedResource: t, onResourceSelect: n, focusedIn
139153
139145
  }) : /* @__PURE__ */ (0, O.jsx)("div", {
139154
139146
  className: "overflow-y-auto flex-1 overscroll-contain",
139155
139147
  children: e.map((e, i) => {
139156
- let a = T$e(e.mimeType, e.uri), o = [e.description, e.mimeType && /* @__PURE__ */ (0, O.jsx)("span", {
139148
+ let a = w$e(e.mimeType, e.uri), o = [e.description, e.mimeType && /* @__PURE__ */ (0, O.jsx)("span", {
139157
139149
  className: "font-mono",
139158
139150
  children: e.mimeType
139159
139151
  }, "mime")].filter(Boolean);
@@ -139178,7 +139170,7 @@ function E$e({ resources: e, selectedResource: t, onResourceSelect: n, focusedIn
139178
139170
  }
139179
139171
  //#endregion
139180
139172
  //#region src/client/components/resources/ResourcesTabHeader.tsx
139181
- function D$e({ isSearchExpanded: e, searchQuery: t, filteredResourcesCount: n, onSearchExpand: r, onSearchChange: i, onSearchBlur: a, searchInputRef: o, onRefresh: s, isRefreshing: c = !1 }) {
139173
+ function E$e({ isSearchExpanded: e, searchQuery: t, filteredResourcesCount: n, onSearchExpand: r, onSearchChange: i, onSearchBlur: a, searchInputRef: o, onRefresh: s, isRefreshing: c = !1 }) {
139182
139174
  return /* @__PURE__ */ (0, O.jsx)("div", {
139183
139175
  className: "flex flex-row items-center justify-between p-4 sm:p-4 py-3 gap-2",
139184
139176
  children: /* @__PURE__ */ (0, O.jsx)("div", {
@@ -139235,7 +139227,7 @@ function D$e({ isSearchExpanded: e, searchQuery: t, filteredResourcesCount: n, o
139235
139227
  }
139236
139228
  //#endregion
139237
139229
  //#region src/client/components/ResourcesTab.tsx
139238
- function O$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected: i, mcpServerUrl: a, refreshResources: o }) {
139230
+ function D$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected: i, mcpServerUrl: a, refreshResources: o }) {
139239
139231
  let [s, c] = (0, A.useState)(!1), [l, u] = (0, A.useState)(null), { selectedResourceUri: d, setSelectedResourceUri: f } = i0(), { llmConfig: p } = X7({ mcpServerUrl: a }), [m, h] = (0, A.useState)(null), [g, _] = (0, A.useState)(!1), [v, y] = (0, A.useState)(""), [b] = (0, A.useState)("resources"), [x, S] = (0, A.useState)(!0), [C, w] = (0, A.useState)(!1), [T, E] = (0, A.useState)(-1), [D, k] = (0, A.useState)(!1), j = (0, A.useRef)(null), M = (0, A.useRef)(null), [N, P] = (0, A.useState)(!1), [F, I] = (0, A.useState)("list");
139240
139232
  (0, A.useEffect)(() => {
139241
139233
  let e = () => {
@@ -139439,7 +139431,7 @@ function O$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected:
139439
139431
  damping: 30
139440
139432
  },
139441
139433
  className: "absolute inset-0 flex flex-col bg-background z-0",
139442
- children: [/* @__PURE__ */ (0, O.jsx)(D$e, {
139434
+ children: [/* @__PURE__ */ (0, O.jsx)(E$e, {
139443
139435
  activeTab: b,
139444
139436
  isSearchExpanded: C,
139445
139437
  searchQuery: v,
@@ -139453,7 +139445,7 @@ function O$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected:
139453
139445
  isRefreshing: s
139454
139446
  }), /* @__PURE__ */ (0, O.jsx)("div", {
139455
139447
  className: "flex flex-col h-full",
139456
- children: /* @__PURE__ */ (0, O.jsx)(E$e, {
139448
+ children: /* @__PURE__ */ (0, O.jsx)(T$e, {
139457
139449
  resources: te,
139458
139450
  selectedResource: l,
139459
139451
  onResourceSelect: ne,
@@ -139473,7 +139465,7 @@ function O$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected:
139473
139465
  children: /* @__PURE__ */ (0, O.jsx)("div", {
139474
139466
  ref: M,
139475
139467
  className: "h-full",
139476
- children: /* @__PURE__ */ (0, O.jsx)(w$e, {
139468
+ children: /* @__PURE__ */ (0, O.jsx)(C$e, {
139477
139469
  result: m,
139478
139470
  isLoading: g,
139479
139471
  previewMode: x,
@@ -139505,7 +139497,7 @@ function O$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected:
139505
139497
  minSize: "30%",
139506
139498
  children: /* @__PURE__ */ (0, O.jsxs)("div", {
139507
139499
  className: "flex flex-col h-full overflow-hidden",
139508
- children: [/* @__PURE__ */ (0, O.jsx)(D$e, {
139500
+ children: [/* @__PURE__ */ (0, O.jsx)(E$e, {
139509
139501
  activeTab: b,
139510
139502
  isSearchExpanded: C,
139511
139503
  searchQuery: v,
@@ -139517,7 +139509,7 @@ function O$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected:
139517
139509
  searchInputRef: j,
139518
139510
  onRefresh: o ? ee : void 0,
139519
139511
  isRefreshing: s
139520
- }), /* @__PURE__ */ (0, O.jsx)(E$e, {
139512
+ }), /* @__PURE__ */ (0, O.jsx)(T$e, {
139521
139513
  resources: te,
139522
139514
  selectedResource: l,
139523
139515
  onResourceSelect: ne,
@@ -139536,7 +139528,7 @@ function O$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected:
139536
139528
  children: /* @__PURE__ */ (0, O.jsx)("div", {
139537
139529
  ref: M,
139538
139530
  className: "h-full bg-white dark:bg-zinc-900",
139539
- children: /* @__PURE__ */ (0, O.jsx)(w$e, {
139531
+ children: /* @__PURE__ */ (0, O.jsx)(C$e, {
139540
139532
  result: m,
139541
139533
  isLoading: g,
139542
139534
  previewMode: x,
@@ -139555,10 +139547,10 @@ function O$e({ ref: e, resources: t, readResource: n, serverId: r, isConnected:
139555
139547
  ]
139556
139548
  });
139557
139549
  }
139558
- O$e.displayName = "ResourcesTab";
139550
+ D$e.displayName = "ResourcesTab";
139559
139551
  //#endregion
139560
139552
  //#region src/client/components/sampling/SamplingTabHeader.tsx
139561
- function k$e({ isSearchExpanded: e, searchQuery: t, filteredRequestsCount: n, requestsCount: r, onSearchExpand: i, onSearchChange: a, onSearchBlur: o, onRejectAll: s, searchInputRef: c }) {
139553
+ function O$e({ isSearchExpanded: e, searchQuery: t, filteredRequestsCount: n, requestsCount: r, onSearchExpand: i, onSearchChange: a, onSearchBlur: o, onRejectAll: s, searchInputRef: c }) {
139562
139554
  return /* @__PURE__ */ (0, O.jsxs)("div", {
139563
139555
  className: "flex flex-row items-center justify-between p-4 sm:p-4 py-3 gap-2",
139564
139556
  children: [/* @__PURE__ */ (0, O.jsx)("div", {
@@ -139616,7 +139608,7 @@ function k$e({ isSearchExpanded: e, searchQuery: t, filteredRequestsCount: n, re
139616
139608
  }
139617
139609
  //#endregion
139618
139610
  //#region src/client/components/sampling/SamplingRequestsList.tsx
139619
- function A$e({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex: r, formatRelativeTime: i, listRef: a }) {
139611
+ function k$e({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex: r, formatRelativeTime: i, listRef: a }) {
139620
139612
  return e.length === 0 ? /* @__PURE__ */ (0, O.jsx)("div", {
139621
139613
  className: "flex flex-col items-center justify-center h-full p-4 text-center",
139622
139614
  children: /* @__PURE__ */ (0, O.jsx)(pu, {
@@ -139648,7 +139640,7 @@ function A$e({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex
139648
139640
  }
139649
139641
  //#endregion
139650
139642
  //#region src/client/components/sampling/useSamplingLLM.ts
139651
- function j$e({ llmConfig: e }) {
139643
+ function A$e({ llmConfig: e }) {
139652
139644
  return {
139653
139645
  generateResponse: (0, A.useCallback)(async ({ request: t }) => {
139654
139646
  if (!e) throw Error("LLM config is not available");
@@ -139690,8 +139682,8 @@ function j$e({ llmConfig: e }) {
139690
139682
  }
139691
139683
  //#endregion
139692
139684
  //#region src/client/components/sampling/SamplingRequestDisplay.tsx
139693
- function M$e({ request: e, onApprove: t, onReject: n, onClose: r, previewMode: i, onTogglePreview: a, isCopied: o, onCopy: s, onDownload: c, onFullscreen: l, llmConfig: d }) {
139694
- let [f, p] = (0, A.useState)("manual"), [m, h] = (0, A.useState)("stub-model"), [g, v] = (0, A.useState)("endTurn"), [y, b] = (0, A.useState)("assistant"), [x, S] = (0, A.useState)("text"), [C, w] = (0, A.useState)("positive"), [T, E] = (0, A.useState)(""), [D, k] = (0, A.useState)("image/png"), [j, M] = (0, A.useState)(!1), [N, P] = (0, A.useState)(null), { generateResponse: F, isAvailable: I } = j$e({ llmConfig: d });
139685
+ function j$e({ request: e, onApprove: t, onReject: n, onClose: r, previewMode: i, onTogglePreview: a, isCopied: o, onCopy: s, onDownload: c, onFullscreen: l, llmConfig: d }) {
139686
+ let [f, p] = (0, A.useState)("manual"), [m, h] = (0, A.useState)("stub-model"), [g, v] = (0, A.useState)("endTurn"), [y, b] = (0, A.useState)("assistant"), [x, S] = (0, A.useState)("text"), [C, w] = (0, A.useState)("positive"), [T, E] = (0, A.useState)(""), [D, k] = (0, A.useState)("image/png"), [j, M] = (0, A.useState)(!1), [N, P] = (0, A.useState)(null), { generateResponse: F, isAvailable: I } = A$e({ llmConfig: d });
139695
139687
  (0, A.useEffect)(() => {
139696
139688
  e && (h(f === "llm" && d?.model ? d.model : "stub-model"), v("endTurn"), b("assistant"), S("text"), w("positive"), E(""), k("image/png"), P(null));
139697
139689
  }, [e?.id]), (0, A.useEffect)(() => {
@@ -140054,7 +140046,7 @@ function M$e({ request: e, onApprove: t, onReject: n, onClose: r, previewMode: i
140054
140046
  }
140055
140047
  //#endregion
140056
140048
  //#region src/client/components/SamplingTab.tsx
140057
- function N$e({ pendingRequests: e, onApprove: t, onReject: n, serverId: r, isConnected: i, mcpServerUrl: a }) {
140049
+ function M$e({ pendingRequests: e, onApprove: t, onReject: n, serverId: r, isConnected: i, mcpServerUrl: a }) {
140058
140050
  let { selectedSamplingRequestId: o, setSelectedSamplingRequestId: s } = i0(), { llmConfig: c } = X7({ mcpServerUrl: a }), [l, u] = (0, A.useState)(null), [d, f] = (0, A.useState)(""), [p, m] = (0, A.useState)(-1), [h, g] = (0, A.useState)(!0), [_, v] = (0, A.useState)(!1), [y, b] = (0, A.useState)(!0), [x, S] = (0, A.useState)(!1), C = (0, A.useRef)(null), w = (0, A.useRef)(null), T = (0, A.useRef)(null), E = (0, A.useRef)(!1);
140059
140051
  (0, A.useEffect)(() => {
140060
140052
  if (console.log("[SamplingTab] Auto-selection check:", {
@@ -140190,7 +140182,7 @@ function N$e({ pendingRequests: e, onApprove: t, onReject: n, serverId: r, isCon
140190
140182
  children: /* @__PURE__ */ (0, O.jsxs)(N9, {
140191
140183
  defaultSize: 75,
140192
140184
  minSize: 30,
140193
- children: [/* @__PURE__ */ (0, O.jsx)(k$e, {
140185
+ children: [/* @__PURE__ */ (0, O.jsx)(O$e, {
140194
140186
  isSearchExpanded: _,
140195
140187
  searchQuery: d,
140196
140188
  filteredRequestsCount: k.length,
@@ -140202,7 +140194,7 @@ function N$e({ pendingRequests: e, onApprove: t, onReject: n, serverId: r, isCon
140202
140194
  searchInputRef: T
140203
140195
  }), /* @__PURE__ */ (0, O.jsx)("div", {
140204
140196
  className: "flex flex-col h-full",
140205
- children: /* @__PURE__ */ (0, O.jsx)(A$e, {
140197
+ children: /* @__PURE__ */ (0, O.jsx)(k$e, {
140206
140198
  requests: k,
140207
140199
  selectedRequest: l,
140208
140200
  onRequestSelect: j,
@@ -140221,7 +140213,7 @@ function N$e({ pendingRequests: e, onApprove: t, onReject: n, serverId: r, isCon
140221
140213
  children: /* @__PURE__ */ (0, O.jsx)("div", {
140222
140214
  ref: w,
140223
140215
  className: "h-full bg-white dark:bg-zinc-900",
140224
- children: /* @__PURE__ */ (0, O.jsx)(M$e, {
140216
+ children: /* @__PURE__ */ (0, O.jsx)(j$e, {
140225
140217
  request: l,
140226
140218
  onApprove: t,
140227
140219
  onReject: n,
@@ -140247,7 +140239,7 @@ function N$e({ pendingRequests: e, onApprove: t, onReject: n, serverId: r, isCon
140247
140239
  }
140248
140240
  //#endregion
140249
140241
  //#region src/client/components/tools/SavedRequestsList.tsx
140250
- function P$e({ savedRequests: e, selectedRequest: t, onLoadRequest: n, onDeleteRequest: r, focusedIndex: i }) {
140242
+ function N$e({ savedRequests: e, selectedRequest: t, onLoadRequest: n, onDeleteRequest: r, focusedIndex: i }) {
140251
140243
  if (e.length === 0) return /* @__PURE__ */ (0, O.jsxs)("div", {
140252
140244
  className: "flex flex-col items-center justify-center h-full p-4 text-center",
140253
140245
  children: [
@@ -140302,7 +140294,7 @@ function P$e({ savedRequests: e, selectedRequest: t, onLoadRequest: n, onDeleteR
140302
140294
  }
140303
140295
  //#endregion
140304
140296
  //#region src/client/components/tools/SaveRequestDialog.tsx
140305
- function F$e({ isOpen: e, requestName: t, defaultPlaceholder: n, onRequestNameChange: r, onSave: i, onCancel: a }) {
140297
+ function P$e({ isOpen: e, requestName: t, defaultPlaceholder: n, onRequestNameChange: r, onSave: i, onCancel: a }) {
140306
140298
  return e ? /* @__PURE__ */ (0, O.jsx)("div", {
140307
140299
  className: "fixed inset-0 bg-black/50 flex items-center justify-center z-50",
140308
140300
  onClick: a,
@@ -140353,7 +140345,7 @@ function B9(e, t) {
140353
140345
  else return e;
140354
140346
  return i;
140355
140347
  }
140356
- function I$e(e, t) {
140348
+ function F$e(e, t) {
140357
140349
  if (e?.anyOf && Array.isArray(e.anyOf)) {
140358
140350
  let n = e.anyOf.find((e) => B9(e, t)?.type !== "null");
140359
140351
  if (n) return {
@@ -140363,23 +140355,23 @@ function I$e(e, t) {
140363
140355
  }
140364
140356
  return e;
140365
140357
  }
140366
- function L$e(e, t) {
140367
- let n = I$e(e || {}, t);
140358
+ function I$e(e, t) {
140359
+ let n = F$e(e || {}, t);
140368
140360
  return n = B9(n, t), n;
140369
140361
  }
140370
140362
  function V9(e, t) {
140371
- let n = L$e(e, t);
140363
+ let n = I$e(e, t);
140372
140364
  if (typeof n.type == "string") return n.type;
140373
140365
  if (Array.isArray(n.type)) {
140374
140366
  let e = n.type.find((e) => e !== "null");
140375
140367
  return typeof e == "string" ? e : void 0;
140376
140368
  }
140377
140369
  }
140378
- function R$e(e) {
140370
+ function L$e(e) {
140379
140371
  let t = e?.enum;
140380
140372
  return Array.isArray(t) && t.every((e) => typeof e == "string") ? t : null;
140381
140373
  }
140382
- function z$e(e) {
140374
+ function R$e(e) {
140383
140375
  let t = e.trim().toLowerCase();
140384
140376
  return [
140385
140377
  "true",
@@ -140393,16 +140385,16 @@ function z$e(e) {
140393
140385
  "off"
140394
140386
  ].includes(t) ? !1 : e;
140395
140387
  }
140396
- function B$e(e, t) {
140388
+ function z$e(e, t) {
140397
140389
  if (t === "number" || t === "integer") {
140398
140390
  let t = e.trim();
140399
140391
  if (!t) return e;
140400
140392
  let n = Number(t);
140401
140393
  return Number.isFinite(n) ? n : e;
140402
140394
  }
140403
- return t === "boolean" ? z$e(e) : e;
140395
+ return t === "boolean" ? R$e(e) : e;
140404
140396
  }
140405
- function V$e(e, t) {
140397
+ function B$e(e, t) {
140406
140398
  if (e === void 0) return e;
140407
140399
  if (t === "object" || t === "array") {
140408
140400
  if (typeof e == "string") try {
@@ -140422,9 +140414,9 @@ function V$e(e, t) {
140422
140414
  }
140423
140415
  return e;
140424
140416
  }
140425
- return t === "boolean" ? typeof e == "boolean" ? e : typeof e == "string" ? z$e(e) : e : e;
140417
+ return t === "boolean" ? typeof e == "boolean" ? e : typeof e == "string" ? R$e(e) : e : e;
140426
140418
  }
140427
- function H$e(e) {
140419
+ function V$e(e) {
140428
140420
  let t = "", n = 0, r = !1, i = !1;
140429
140421
  for (; n < e.length;) {
140430
140422
  let a = e[n];
@@ -140448,7 +140440,7 @@ function H$e(e) {
140448
140440
  }
140449
140441
  return t;
140450
140442
  }
140451
- function U$e(e) {
140443
+ function H$e(e) {
140452
140444
  if (!e || typeof e != "string") return null;
140453
140445
  let t = e.trim();
140454
140446
  if (!t.startsWith("{")) return null;
@@ -140457,7 +140449,7 @@ function U$e(e) {
140457
140449
  if (e && typeof e == "object" && !Array.isArray(e)) return e;
140458
140450
  } catch {
140459
140451
  try {
140460
- let e = H$e(t), n = JSON.parse(e);
140452
+ let e = V$e(t), n = JSON.parse(e);
140461
140453
  if (n && typeof n == "object" && !Array.isArray(n)) return n;
140462
140454
  } catch {
140463
140455
  return null;
@@ -140467,14 +140459,14 @@ function U$e(e) {
140467
140459
  }
140468
140460
  //#endregion
140469
140461
  //#region src/client/components/tools/ToolInputForm.tsx
140470
- function W$e({ selectedTool: e, toolArgs: t, onArgChange: n, onBulkPaste: r, autoFilledFields: i, setFields: a, sendEmptyFields: o, onToggleEmpty: s }) {
140462
+ function U$e({ selectedTool: e, toolArgs: t, onArgChange: n, onBulkPaste: r, autoFilledFields: i, setFields: a, sendEmptyFields: o, onToggleEmpty: s }) {
140471
140463
  let c = e?.inputSchema?.properties || {}, l = e?.inputSchema?.required || [], u = Object.keys(c).length > 0, d = async (e, t) => {
140472
140464
  r && await r(e.clipboardData.getData("text"), t) && e.preventDefault();
140473
140465
  };
140474
140466
  return u ? /* @__PURE__ */ (0, O.jsx)("div", {
140475
140467
  className: "space-y-4",
140476
140468
  children: Object.entries(c).map(([r, c]) => {
140477
- let u = L$e(c, e?.inputSchema || {}), f = R$e(u), p = u.type === "string" && f !== null, m = u;
140469
+ let u = I$e(c, e?.inputSchema || {}), f = L$e(u), p = u.type === "string" && f !== null, m = u;
140478
140470
  m.required = l.includes(r);
140479
140471
  let h = t[r], g = "";
140480
140472
  h != null && (g = typeof h == "string" ? h : typeof h == "object" && h ? JSON.stringify(h, null, 2) : String(h));
@@ -140597,7 +140589,7 @@ function W$e({ selectedTool: e, toolArgs: t, onArgChange: n, onBulkPaste: r, aut
140597
140589
  }
140598
140590
  //#endregion
140599
140591
  //#region src/client/components/tools/ToolExecutionPanel.tsx
140600
- function G$e({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, isConnected: i, onArgChange: a, onExecute: o, onSave: s, onCancel: c, onBulkPaste: l, autoFilledFields: u, setFields: d, sendEmptyFields: f, onToggleEmpty: p }) {
140592
+ function W$e({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, isConnected: i, onArgChange: a, onExecute: o, onSave: s, onCancel: c, onBulkPaste: l, autoFilledFields: u, setFields: d, sendEmptyFields: f, onToggleEmpty: p }) {
140601
140593
  let [m, h] = (0, A.useState)(!1), [g, _] = (0, A.useState)(!1), [v, y] = (0, A.useState)(!1), [b, x] = (0, A.useState)(!1), [S, C] = (0, A.useState)(!1), [w, T] = (0, A.useState)(!1), E = (0, A.useRef)(null);
140602
140594
  return (0, A.useEffect)(() => {
140603
140595
  if (E.current && e?.description) {
@@ -140753,7 +140745,7 @@ function G$e({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, i
140753
140745
  children: S ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: ["Show less", /* @__PURE__ */ (0, O.jsx)(Pf, { className: "h-3 w-3" })] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: ["Show more", /* @__PURE__ */ (0, O.jsx)(jf, { className: "h-3 w-3" })] })
140754
140746
  })
140755
140747
  })]
140756
- }), /* @__PURE__ */ (0, O.jsx)(W$e, {
140748
+ }), /* @__PURE__ */ (0, O.jsx)(U$e, {
140757
140749
  selectedTool: e,
140758
140750
  toolArgs: t,
140759
140751
  onArgChange: a,
@@ -140803,7 +140795,7 @@ function G$e({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, i
140803
140795
  }
140804
140796
  //#endregion
140805
140797
  //#region src/client/components/tools/ToolResultDisplay.tsx
140806
- function K$e({ timestamp: e }) {
140798
+ function G$e({ timestamp: e }) {
140807
140799
  let [t, n] = (0, A.useState)(() => H9(e));
140808
140800
  return (0, A.useEffect)(() => {
140809
140801
  let t = () => n(H9(e));
@@ -140816,7 +140808,7 @@ function H9(e) {
140816
140808
  let t = Date.now() - e, n = Math.floor(t / 1e3), r = Math.floor(n / 60), i = Math.floor(r / 60), a = Math.floor(i / 24);
140817
140809
  return n < 10 ? "now" : n < 60 ? `${n}s ago` : r < 60 ? `${r}m ago` : i < 24 ? `${i}h ago` : `${a}d ago`;
140818
140810
  }
140819
- function q$e(e) {
140811
+ function K$e(e) {
140820
140812
  if (!e?.isError) return null;
140821
140813
  let t = e.content;
140822
140814
  if (Array.isArray(t)) {
@@ -140825,14 +140817,14 @@ function q$e(e) {
140825
140817
  }
140826
140818
  return "An error occurred";
140827
140819
  }
140828
- function J$e(e) {
140820
+ function q$e(e) {
140829
140821
  try {
140830
140822
  return JSON.parse(e), !0;
140831
140823
  } catch {
140832
140824
  return !1;
140833
140825
  }
140834
140826
  }
140835
- function Y$e({ content: e }) {
140827
+ function J$e({ content: e }) {
140836
140828
  let [t, n] = (0, A.useState)(/* @__PURE__ */ new Set()), r = (0, A.useCallback)((e) => {
140837
140829
  n((t) => {
140838
140830
  let n = new Set(t);
@@ -140846,7 +140838,7 @@ function Y$e({ content: e }) {
140846
140838
  className: "space-y-4",
140847
140839
  children: e.map((e, n) => {
140848
140840
  if (e.type === "text") {
140849
- let i = e.text || "", a = t.has(n), o = J$e(i), s = o ? (() => {
140841
+ let i = e.text || "", a = t.has(n), o = q$e(i), s = o ? (() => {
140850
140842
  try {
140851
140843
  return JSON.parse(i);
140852
140844
  } catch {
@@ -141068,8 +141060,8 @@ function Y$e({ content: e }) {
141068
141060
  })
141069
141061
  });
141070
141062
  }
141071
- function X$e({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy: i, onMaximize: a, isMaximized: o = !1, onRerunTool: s }) {
141072
- let [c, l] = (0, A.useState)(0), [u, d] = (0, A.useState)(!0), [f, p] = (0, A.useState)(null), [m, h] = (0, A.useState)("inline"), [g, _] = (0, A.useState)(null), v = (0, A.useRef)(!1), y = e[0], b = y ? e.filter((e) => e.toolName === y.toolName) : [], x = b[c] || b[0], S = e.findIndex((e) => e === x), C = (x ? x.error || q$e(x.result) : null) ?? (x == null ? "" : JSON.stringify(x.result, null, 2));
141063
+ function Y$e({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy: i, onMaximize: a, isMaximized: o = !1, onRerunTool: s }) {
141064
+ let [c, l] = (0, A.useState)(0), [u, d] = (0, A.useState)(!0), [f, p] = (0, A.useState)(null), [m, h] = (0, A.useState)("inline"), [g, _] = (0, A.useState)(null), v = (0, A.useRef)(!1), y = e[0], b = y ? e.filter((e) => e.toolName === y.toolName) : [], x = b[c] || b[0], S = e.findIndex((e) => e === x), C = (x ? x.error || K$e(x.result) : null) ?? (x == null ? "" : JSON.stringify(x.result, null, 2));
141073
141065
  (0, A.useEffect)(() => {
141074
141066
  b.length > 0 && c >= b.length && l(0);
141075
141067
  }, [b.length, c]), (0, A.useEffect)(() => {
@@ -141236,7 +141228,7 @@ function X$e({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy
141236
141228
  className: "w-[140px] h-8 text-xs",
141237
141229
  children: /* @__PURE__ */ (0, O.jsx)(aV, { children: /* @__PURE__ */ (0, O.jsxs)("div", {
141238
141230
  className: "flex items-center gap-1",
141239
- children: [/* @__PURE__ */ (0, O.jsx)(rp, { className: "h-3 w-3" }), /* @__PURE__ */ (0, O.jsx)(K$e, { timestamp: x.timestamp })]
141231
+ children: [/* @__PURE__ */ (0, O.jsx)(rp, { className: "h-3 w-3" }), /* @__PURE__ */ (0, O.jsx)(G$e, { timestamp: x.timestamp })]
141240
141232
  }) })
141241
141233
  }), /* @__PURE__ */ (0, O.jsx)(sV, { children: b.map((e, t) => /* @__PURE__ */ (0, O.jsx)(cV, {
141242
141234
  value: t.toString(),
@@ -141268,7 +141260,7 @@ function X$e({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy
141268
141260
  })
141269
141261
  ]
141270
141262
  }), (() => {
141271
- let e = x.error || q$e(x.result);
141263
+ let e = x.error || K$e(x.result);
141272
141264
  return e ? /* @__PURE__ */ (0, O.jsxs)("div", {
141273
141265
  className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded p-3 mx-4",
141274
141266
  children: [/* @__PURE__ */ (0, O.jsx)("p", {
@@ -141371,7 +141363,7 @@ function X$e({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy
141371
141363
  className: "space-y-0 h-full",
141372
141364
  children: [ne.map((e, t) => /* @__PURE__ */ (0, O.jsx)("div", {
141373
141365
  className: "mx-0 size-full",
141374
- children: /* @__PURE__ */ (0, O.jsx)(S$e, {
141366
+ children: /* @__PURE__ */ (0, O.jsx)(x$e, {
141375
141367
  resource: e.resource,
141376
141368
  onUIAction: (e) => {},
141377
141369
  className: "w-full h-full relative"
@@ -141411,7 +141403,7 @@ function X$e({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy
141411
141403
  filename: `structured-content-${x.toolName}-${Date.now()}.json`
141412
141404
  })]
141413
141405
  }),
141414
- te && te.length > 0 && /* @__PURE__ */ (0, O.jsx)(Y$e, { content: te }),
141406
+ te && te.length > 0 && /* @__PURE__ */ (0, O.jsx)(J$e, { content: te }),
141415
141407
  !e && (!te || te.length === 0) && /* @__PURE__ */ (0, O.jsx)("div", {
141416
141408
  className: "text-sm text-gray-500 dark:text-gray-400",
141417
141409
  "data-testid": "tool-execution-results-no-content",
@@ -141443,7 +141435,7 @@ function X$e({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy
141443
141435
  }
141444
141436
  //#endregion
141445
141437
  //#region src/client/components/tools/ToolsList.tsx
141446
- function Z$e({ tools: e, selectedTool: t, onToolSelect: n, focusedIndex: r }) {
141438
+ function X$e({ tools: e, selectedTool: t, onToolSelect: n, focusedIndex: r }) {
141447
141439
  if (e.length === 0) return /* @__PURE__ */ (0, O.jsxs)("div", {
141448
141440
  className: "flex flex-col items-center justify-center h-full p-4 text-center",
141449
141441
  children: [/* @__PURE__ */ (0, O.jsx)(Gp, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, O.jsx)("p", {
@@ -141495,8 +141487,8 @@ function Z$e({ tools: e, selectedTool: t, onToolSelect: n, focusedIndex: r }) {
141495
141487
  }
141496
141488
  //#endregion
141497
141489
  //#region src/client/components/tools/ToolsTabHeader.tsx
141498
- function Q$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, filteredToolsCount: r, savedRequestsCount: i, onSearchExpand: a, onSearchChange: o, onSearchBlur: s, onTabSwitch: c, searchInputRef: l, onRefresh: u, isRefreshing: d }) {
141499
- return /* @__PURE__ */ (0, O.jsx)(o$e, {
141490
+ function Z$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, filteredToolsCount: r, savedRequestsCount: i, onSearchExpand: a, onSearchChange: o, onSearchBlur: s, onTabSwitch: c, searchInputRef: l, onRefresh: u, isRefreshing: d }) {
141491
+ return /* @__PURE__ */ (0, O.jsx)(a$e, {
141500
141492
  activeTab: e,
141501
141493
  isSearchExpanded: t,
141502
141494
  searchQuery: n,
@@ -141520,7 +141512,7 @@ function Q$e({ activeTab: e, isSearchExpanded: t, searchQuery: n, filteredToolsC
141520
141512
  }
141521
141513
  //#endregion
141522
141514
  //#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
141523
- var $$e = "AlertDialog", [e1e, t1e] = Bt($$e, [Dz]), U9 = Dz(), n1e = (e) => {
141515
+ var Q$e = "AlertDialog", [$$e, e1e] = Bt(Q$e, [Dz]), U9 = Dz(), t1e = (e) => {
141524
141516
  let { __scopeAlertDialog: t, ...n } = e, r = U9(t);
141525
141517
  return /* @__PURE__ */ (0, O.jsx)(Yz, {
141526
141518
  ...r,
@@ -141528,8 +141520,8 @@ var $$e = "AlertDialog", [e1e, t1e] = Bt($$e, [Dz]), U9 = Dz(), n1e = (e) => {
141528
141520
  modal: !0
141529
141521
  });
141530
141522
  };
141531
- n1e.displayName = $$e;
141532
- var r1e = "AlertDialogTrigger", i1e = A.forwardRef((e, t) => {
141523
+ t1e.displayName = Q$e;
141524
+ var n1e = "AlertDialogTrigger", r1e = A.forwardRef((e, t) => {
141533
141525
  let { __scopeAlertDialog: n, ...r } = e, i = U9(n);
141534
141526
  return /* @__PURE__ */ (0, O.jsx)(Xz, {
141535
141527
  ...i,
@@ -141537,16 +141529,16 @@ var r1e = "AlertDialogTrigger", i1e = A.forwardRef((e, t) => {
141537
141529
  ref: t
141538
141530
  });
141539
141531
  });
141540
- i1e.displayName = r1e;
141541
- var a1e = "AlertDialogPortal", o1e = (e) => {
141532
+ r1e.displayName = n1e;
141533
+ var i1e = "AlertDialogPortal", a1e = (e) => {
141542
141534
  let { __scopeAlertDialog: t, ...n } = e, r = U9(t);
141543
141535
  return /* @__PURE__ */ (0, O.jsx)(Zz, {
141544
141536
  ...r,
141545
141537
  ...n
141546
141538
  });
141547
141539
  };
141548
- o1e.displayName = a1e;
141549
- var s1e = "AlertDialogOverlay", c1e = A.forwardRef((e, t) => {
141540
+ a1e.displayName = i1e;
141541
+ var o1e = "AlertDialogOverlay", s1e = A.forwardRef((e, t) => {
141550
141542
  let { __scopeAlertDialog: n, ...r } = e, i = U9(n);
141551
141543
  return /* @__PURE__ */ (0, O.jsx)(Qz, {
141552
141544
  ...i,
@@ -141554,14 +141546,14 @@ var s1e = "AlertDialogOverlay", c1e = A.forwardRef((e, t) => {
141554
141546
  ref: t
141555
141547
  });
141556
141548
  });
141557
- c1e.displayName = s1e;
141558
- var W9 = "AlertDialogContent", [l1e, u1e] = e1e(W9), d1e = /* @__PURE__ */ Zt("AlertDialogContent"), f1e = A.forwardRef((e, t) => {
141549
+ s1e.displayName = o1e;
141550
+ var W9 = "AlertDialogContent", [c1e, l1e] = $$e(W9), u1e = /* @__PURE__ */ Zt("AlertDialogContent"), d1e = A.forwardRef((e, t) => {
141559
141551
  let { __scopeAlertDialog: n, children: r, ...i } = e, a = U9(n), o = A.useRef(null), s = N(t, o), c = A.useRef(null);
141560
141552
  return /* @__PURE__ */ (0, O.jsx)(a_e, {
141561
141553
  contentName: W9,
141562
- titleName: p1e,
141554
+ titleName: f1e,
141563
141555
  docsSlug: "alert-dialog",
141564
- children: /* @__PURE__ */ (0, O.jsx)(l1e, {
141556
+ children: /* @__PURE__ */ (0, O.jsx)(c1e, {
141565
141557
  scope: n,
141566
141558
  cancelRef: c,
141567
141559
  children: /* @__PURE__ */ (0, O.jsxs)($z, {
@@ -141574,13 +141566,13 @@ var W9 = "AlertDialogContent", [l1e, u1e] = e1e(W9), d1e = /* @__PURE__ */ Zt("A
141574
141566
  }),
141575
141567
  onPointerDownOutside: (e) => e.preventDefault(),
141576
141568
  onInteractOutside: (e) => e.preventDefault(),
141577
- children: [/* @__PURE__ */ (0, O.jsx)(d1e, { children: r }), /* @__PURE__ */ (0, O.jsx)(x1e, { contentRef: o })]
141569
+ children: [/* @__PURE__ */ (0, O.jsx)(u1e, { children: r }), /* @__PURE__ */ (0, O.jsx)(b1e, { contentRef: o })]
141578
141570
  })
141579
141571
  })
141580
141572
  });
141581
141573
  });
141582
- f1e.displayName = W9;
141583
- var p1e = "AlertDialogTitle", m1e = A.forwardRef((e, t) => {
141574
+ d1e.displayName = W9;
141575
+ var f1e = "AlertDialogTitle", p1e = A.forwardRef((e, t) => {
141584
141576
  let { __scopeAlertDialog: n, ...r } = e, i = U9(n);
141585
141577
  return /* @__PURE__ */ (0, O.jsx)(eB, {
141586
141578
  ...i,
@@ -141588,8 +141580,8 @@ var p1e = "AlertDialogTitle", m1e = A.forwardRef((e, t) => {
141588
141580
  ref: t
141589
141581
  });
141590
141582
  });
141591
- m1e.displayName = p1e;
141592
- var h1e = "AlertDialogDescription", g1e = A.forwardRef((e, t) => {
141583
+ p1e.displayName = f1e;
141584
+ var m1e = "AlertDialogDescription", h1e = A.forwardRef((e, t) => {
141593
141585
  let { __scopeAlertDialog: n, ...r } = e, i = U9(n);
141594
141586
  return /* @__PURE__ */ (0, O.jsx)(tB, {
141595
141587
  ...i,
@@ -141597,8 +141589,8 @@ var h1e = "AlertDialogDescription", g1e = A.forwardRef((e, t) => {
141597
141589
  ref: t
141598
141590
  });
141599
141591
  });
141600
- g1e.displayName = h1e;
141601
- var _1e = "AlertDialogAction", v1e = A.forwardRef((e, t) => {
141592
+ h1e.displayName = m1e;
141593
+ var g1e = "AlertDialogAction", _1e = A.forwardRef((e, t) => {
141602
141594
  let { __scopeAlertDialog: n, ...r } = e, i = U9(n);
141603
141595
  return /* @__PURE__ */ (0, O.jsx)(nB, {
141604
141596
  ...i,
@@ -141606,20 +141598,20 @@ var _1e = "AlertDialogAction", v1e = A.forwardRef((e, t) => {
141606
141598
  ref: t
141607
141599
  });
141608
141600
  });
141609
- v1e.displayName = _1e;
141610
- var y1e = "AlertDialogCancel", b1e = A.forwardRef((e, t) => {
141611
- let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = u1e(y1e, n), a = U9(n), o = N(t, i);
141601
+ _1e.displayName = g1e;
141602
+ var v1e = "AlertDialogCancel", y1e = A.forwardRef((e, t) => {
141603
+ let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = l1e(v1e, n), a = U9(n), o = N(t, i);
141612
141604
  return /* @__PURE__ */ (0, O.jsx)(nB, {
141613
141605
  ...a,
141614
141606
  ...r,
141615
141607
  ref: o
141616
141608
  });
141617
141609
  });
141618
- b1e.displayName = y1e;
141619
- var x1e = ({ contentRef: e }) => {
141610
+ y1e.displayName = v1e;
141611
+ var b1e = ({ contentRef: e }) => {
141620
141612
  let t = `\`${W9}\` requires a description for the component to be accessible for screen reader users.
141621
141613
 
141622
- You can add a description to the \`${W9}\` by passing a \`${h1e}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
141614
+ You can add a description to the \`${W9}\` by passing a \`${m1e}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
141623
141615
 
141624
141616
  Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${W9}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
141625
141617
 
@@ -141627,79 +141619,79 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
141627
141619
  return A.useEffect(() => {
141628
141620
  document.getElementById(e.current?.getAttribute("aria-describedby")) || console.warn(t);
141629
141621
  }, [t, e]), null;
141630
- }, S1e = n1e, C1e = o1e, w1e = c1e, T1e = f1e, E1e = v1e, D1e = b1e, O1e = m1e, k1e = g1e;
141622
+ }, x1e = t1e, S1e = a1e, C1e = s1e, w1e = d1e, T1e = _1e, E1e = y1e, D1e = p1e, O1e = h1e;
141631
141623
  //#endregion
141632
141624
  //#region src/client/components/ui/alert-dialog.tsx
141633
- function A1e({ ...e }) {
141634
- return /* @__PURE__ */ (0, O.jsx)(S1e, {
141625
+ function k1e({ ...e }) {
141626
+ return /* @__PURE__ */ (0, O.jsx)(x1e, {
141635
141627
  "data-slot": "alert-dialog",
141636
141628
  ...e
141637
141629
  });
141638
141630
  }
141639
- function j1e({ ...e }) {
141640
- return /* @__PURE__ */ (0, O.jsx)(C1e, {
141631
+ function A1e({ ...e }) {
141632
+ return /* @__PURE__ */ (0, O.jsx)(S1e, {
141641
141633
  "data-slot": "alert-dialog-portal",
141642
141634
  ...e
141643
141635
  });
141644
141636
  }
141645
- function M1e({ className: e, ...t }) {
141646
- return /* @__PURE__ */ (0, O.jsx)(w1e, {
141637
+ function j1e({ className: e, ...t }) {
141638
+ return /* @__PURE__ */ (0, O.jsx)(C1e, {
141647
141639
  "data-slot": "alert-dialog-overlay",
141648
141640
  className: V("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
141649
141641
  ...t
141650
141642
  });
141651
141643
  }
141652
- function N1e({ className: e, ...t }) {
141653
- return /* @__PURE__ */ (0, O.jsxs)(j1e, { children: [/* @__PURE__ */ (0, O.jsx)(M1e, {}), /* @__PURE__ */ (0, O.jsx)(T1e, {
141644
+ function M1e({ className: e, ...t }) {
141645
+ return /* @__PURE__ */ (0, O.jsxs)(A1e, { children: [/* @__PURE__ */ (0, O.jsx)(j1e, {}), /* @__PURE__ */ (0, O.jsx)(w1e, {
141654
141646
  "data-slot": "alert-dialog-content",
141655
141647
  className: V("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", e),
141656
141648
  ...t
141657
141649
  })] });
141658
141650
  }
141659
- function P1e({ className: e, ...t }) {
141651
+ function N1e({ className: e, ...t }) {
141660
141652
  return /* @__PURE__ */ (0, O.jsx)("div", {
141661
141653
  "data-slot": "alert-dialog-header",
141662
141654
  className: V("flex flex-col gap-2 text-center sm:text-left", e),
141663
141655
  ...t
141664
141656
  });
141665
141657
  }
141666
- function F1e({ className: e, ...t }) {
141658
+ function P1e({ className: e, ...t }) {
141667
141659
  return /* @__PURE__ */ (0, O.jsx)("div", {
141668
141660
  "data-slot": "alert-dialog-footer",
141669
141661
  className: V("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
141670
141662
  ...t
141671
141663
  });
141672
141664
  }
141673
- function I1e({ className: e, ...t }) {
141674
- return /* @__PURE__ */ (0, O.jsx)(O1e, {
141665
+ function F1e({ className: e, ...t }) {
141666
+ return /* @__PURE__ */ (0, O.jsx)(D1e, {
141675
141667
  "data-slot": "alert-dialog-title",
141676
141668
  className: V("text-lg font-semibold", e),
141677
141669
  ...t
141678
141670
  });
141679
141671
  }
141680
- function L1e({ className: e, ...t }) {
141681
- return /* @__PURE__ */ (0, O.jsx)(k1e, {
141672
+ function I1e({ className: e, ...t }) {
141673
+ return /* @__PURE__ */ (0, O.jsx)(O1e, {
141682
141674
  "data-slot": "alert-dialog-description",
141683
141675
  className: V("text-muted-foreground text-sm", e),
141684
141676
  ...t
141685
141677
  });
141686
141678
  }
141687
- function R1e({ className: e, ...t }) {
141688
- return /* @__PURE__ */ (0, O.jsx)(E1e, {
141679
+ function L1e({ className: e, ...t }) {
141680
+ return /* @__PURE__ */ (0, O.jsx)(T1e, {
141689
141681
  className: V(Lt(), e),
141690
141682
  ...t
141691
141683
  });
141692
141684
  }
141693
- function z1e({ className: e, ...t }) {
141694
- return /* @__PURE__ */ (0, O.jsx)(D1e, {
141685
+ function R1e({ className: e, ...t }) {
141686
+ return /* @__PURE__ */ (0, O.jsx)(E1e, {
141695
141687
  className: V(Lt({ variant: "outline" }), e),
141696
141688
  ...t
141697
141689
  });
141698
141690
  }
141699
141691
  //#endregion
141700
141692
  //#region src/client/components/ToolsTab.tsx
141701
- var B1e = "mcp-inspector-saved-requests";
141702
- function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isConnected: a, refreshTools: o }) {
141693
+ var z1e = "mcp-inspector-saved-requests";
141694
+ function B1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isConnected: a, refreshTools: o }) {
141703
141695
  let [s, c] = (0, A.useState)(!1), [l, u] = (0, A.useState)(null), [d, f] = (0, A.useState)(null), { selectedToolName: p, setSelectedToolName: m } = i0(), [h, g] = (0, A.useState)({}), [_, v] = (0, A.useState)(/* @__PURE__ */ new Set()), [y, b] = (0, A.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, A.useState)([]), [C, w] = (0, A.useState)(!1), [T, E] = (0, A.useState)(null), [D, k] = (0, A.useState)(null), [j, M] = (0, A.useState)(""), [N, P] = (0, A.useState)("tools"), [F, I] = (0, A.useState)([]), [L, ee] = (0, A.useState)(!1), [te, ne] = (0, A.useState)(""), [re, ie] = (0, A.useState)(!1), [R, z] = (0, A.useState)(-1), ae = (0, A.useRef)(null), [oe, se] = (0, A.useState)(!1), [ce, le] = (0, A.useState)("list"), [ue, de] = (0, A.useState)(!1), [fe, pe] = (0, A.useState)({
141704
141696
  open: !1,
141705
141697
  parsedObject: {},
@@ -141731,7 +141723,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
141731
141723
  }
141732
141724
  })), (0, A.useEffect)(() => {
141733
141725
  try {
141734
- let e = localStorage.getItem(B1e);
141726
+ let e = localStorage.getItem(z1e);
141735
141727
  e && I(JSON.parse(e));
141736
141728
  } catch (e) {
141737
141729
  console.error("[ToolsTab] Failed to load saved requests:", e);
@@ -141745,7 +141737,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
141745
141737
  _e
141746
141738
  ]), ye = (0, A.useCallback)((e) => {
141747
141739
  try {
141748
- localStorage.setItem(B1e, JSON.stringify(e)), I(e);
141740
+ localStorage.setItem(z1e, JSON.stringify(e)), I(e);
141749
141741
  } catch (e) {
141750
141742
  console.error("[ToolsTab] Failed to save requests:", e);
141751
141743
  }
@@ -141859,7 +141851,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
141859
141851
  ]);
141860
141852
  let Te = (0, A.useCallback)((e, t) => {
141861
141853
  let n = l?.inputSchema || {}, r = l?.inputSchema?.properties?.[e], i = r ? V9(r, n) : "string", a;
141862
- a = i === "object" || i === "array" || i === "string" ? t : B$e(t, i), g((t) => ({
141854
+ a = i === "object" || i === "array" || i === "string" ? t : z$e(t, i), g((t) => ({
141863
141855
  ...t,
141864
141856
  [e]: a
141865
141857
  }));
@@ -141887,7 +141879,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
141887
141879
  });
141888
141880
  }, []), De = (0, A.useCallback)(async (e, t) => {
141889
141881
  if (!l) return !1;
141890
- let n = U$e(e);
141882
+ let n = H$e(e);
141891
141883
  if (!n) return !1;
141892
141884
  let r = l.inputSchema?.properties || {}, i = Object.keys(r), a = l.inputSchema || {}, o = [], s = [];
141893
141885
  return Object.entries(n).forEach(([e, t]) => {
@@ -141942,7 +141934,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
141942
141934
  let r = l.inputSchema.properties[n];
141943
141935
  if (!r) continue;
141944
141936
  let i = V9(r, e);
141945
- t[n] = V$e(y.has(n) ? i === "array" ? "[]" : i === "object" ? "{}" : "" : h[n], i);
141937
+ t[n] = B$e(y.has(n) ? i === "array" ? "[]" : i === "object" ? "{}" : "" : h[n], i);
141946
141938
  }
141947
141939
  return t;
141948
141940
  }, [
@@ -142175,7 +142167,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142175
142167
  damping: 30
142176
142168
  },
142177
142169
  className: "absolute inset-0 flex flex-col bg-background z-0",
142178
- children: [/* @__PURE__ */ (0, O.jsx)(Q$e, {
142170
+ children: [/* @__PURE__ */ (0, O.jsx)(Z$e, {
142179
142171
  activeTab: N,
142180
142172
  isSearchExpanded: re,
142181
142173
  searchQuery: j,
@@ -142188,12 +142180,12 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142188
142180
  searchInputRef: ae,
142189
142181
  onRefresh: o ? we : void 0,
142190
142182
  isRefreshing: s
142191
- }), N === "tools" ? /* @__PURE__ */ (0, O.jsx)(Z$e, {
142183
+ }), N === "tools" ? /* @__PURE__ */ (0, O.jsx)(X$e, {
142192
142184
  tools: be,
142193
142185
  selectedTool: l,
142194
142186
  onToolSelect: xe,
142195
142187
  focusedIndex: R
142196
- }) : /* @__PURE__ */ (0, O.jsx)(P$e, {
142188
+ }) : /* @__PURE__ */ (0, O.jsx)(N$e, {
142197
142189
  savedRequests: F,
142198
142190
  selectedRequest: d,
142199
142191
  onLoadRequest: Se,
@@ -142211,7 +142203,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142211
142203
  damping: 30
142212
142204
  },
142213
142205
  className: "absolute inset-0 bg-background z-10",
142214
- children: /* @__PURE__ */ (0, O.jsx)(G$e, {
142206
+ children: /* @__PURE__ */ (0, O.jsx)(W$e, {
142215
142207
  selectedTool: l,
142216
142208
  toolArgs: h,
142217
142209
  payloadToSend: Ae,
@@ -142237,7 +142229,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142237
142229
  damping: 30
142238
142230
  },
142239
142231
  className: "absolute inset-0 bg-background z-20",
142240
- children: /* @__PURE__ */ (0, O.jsx)(X$e, {
142232
+ children: /* @__PURE__ */ (0, O.jsx)(Y$e, {
142241
142233
  results: Pe,
142242
142234
  copiedResult: T,
142243
142235
  serverId: i,
@@ -142251,7 +142243,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142251
142243
  ]
142252
142244
  })
142253
142245
  }),
142254
- /* @__PURE__ */ (0, O.jsx)(F$e, {
142246
+ /* @__PURE__ */ (0, O.jsx)(P$e, {
142255
142247
  isOpen: L,
142256
142248
  requestName: te,
142257
142249
  defaultPlaceholder: `${l?.name} - ${(/* @__PURE__ */ new Date()).toLocaleString()}`,
@@ -142259,12 +142251,12 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142259
142251
  onSave: Le,
142260
142252
  onCancel: () => ee(!1)
142261
142253
  }),
142262
- /* @__PURE__ */ (0, O.jsx)(A1e, {
142254
+ /* @__PURE__ */ (0, O.jsx)(k1e, {
142263
142255
  open: fe.open,
142264
142256
  onOpenChange: (e) => {
142265
142257
  e || ke();
142266
142258
  },
142267
- children: /* @__PURE__ */ (0, O.jsxs)(N1e, { children: [/* @__PURE__ */ (0, O.jsxs)(P1e, { children: [/* @__PURE__ */ (0, O.jsx)(I1e, { children: "Auto-fill fields from pasted object?" }), /* @__PURE__ */ (0, O.jsxs)(L1e, { children: [fe.fieldsToUpdate.length > 0 && /* @__PURE__ */ (0, O.jsxs)("div", {
142259
+ children: /* @__PURE__ */ (0, O.jsxs)(M1e, { children: [/* @__PURE__ */ (0, O.jsxs)(N1e, { children: [/* @__PURE__ */ (0, O.jsx)(F1e, { children: "Auto-fill fields from pasted object?" }), /* @__PURE__ */ (0, O.jsxs)(I1e, { children: [fe.fieldsToUpdate.length > 0 && /* @__PURE__ */ (0, O.jsxs)("div", {
142268
142260
  className: "mb-3",
142269
142261
  children: [/* @__PURE__ */ (0, O.jsx)("p", {
142270
142262
  className: "font-medium mb-2",
@@ -142299,10 +142291,10 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142299
142291
  }), /* @__PURE__ */ (0, O.jsx)("p", {
142300
142292
  className: "text-sm font-mono",
142301
142293
  children: fe.newFields.join(", ")
142302
- })] })] })] }), /* @__PURE__ */ (0, O.jsxs)(F1e, { children: [/* @__PURE__ */ (0, O.jsx)(z1e, {
142294
+ })] })] })] }), /* @__PURE__ */ (0, O.jsxs)(P1e, { children: [/* @__PURE__ */ (0, O.jsx)(R1e, {
142303
142295
  onClick: ke,
142304
142296
  children: "Cancel"
142305
- }), /* @__PURE__ */ (0, O.jsx)(R1e, {
142297
+ }), /* @__PURE__ */ (0, O.jsx)(L1e, {
142306
142298
  onClick: Oe,
142307
142299
  children: "Auto-fill"
142308
142300
  })] })] })
@@ -142327,7 +142319,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142327
142319
  minSize: "30%",
142328
142320
  children: /* @__PURE__ */ (0, O.jsxs)("div", {
142329
142321
  className: "flex flex-col h-full overflow-hidden",
142330
- children: [/* @__PURE__ */ (0, O.jsx)(Q$e, {
142322
+ children: [/* @__PURE__ */ (0, O.jsx)(Z$e, {
142331
142323
  activeTab: N,
142332
142324
  isSearchExpanded: re,
142333
142325
  searchQuery: j,
@@ -142340,12 +142332,12 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142340
142332
  searchInputRef: ae,
142341
142333
  onRefresh: o ? we : void 0,
142342
142334
  isRefreshing: s
142343
- }), N === "tools" ? /* @__PURE__ */ (0, O.jsx)(Z$e, {
142335
+ }), N === "tools" ? /* @__PURE__ */ (0, O.jsx)(X$e, {
142344
142336
  tools: be,
142345
142337
  selectedTool: l,
142346
142338
  onToolSelect: xe,
142347
142339
  focusedIndex: R
142348
- }) : /* @__PURE__ */ (0, O.jsx)(P$e, {
142340
+ }) : /* @__PURE__ */ (0, O.jsx)(N$e, {
142349
142341
  savedRequests: F,
142350
142342
  selectedRequest: d,
142351
142343
  onLoadRequest: Se,
@@ -142369,7 +142361,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142369
142361
  defaultSize: "40%",
142370
142362
  collapsible: !0,
142371
142363
  panelRef: _e,
142372
- children: /* @__PURE__ */ (0, O.jsx)(G$e, {
142364
+ children: /* @__PURE__ */ (0, O.jsx)(W$e, {
142373
142365
  selectedTool: l,
142374
142366
  toolArgs: h,
142375
142367
  payloadToSend: Ae,
@@ -142393,7 +142385,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142393
142385
  defaultSize: "60%",
142394
142386
  children: /* @__PURE__ */ (0, O.jsx)("div", {
142395
142387
  className: "flex flex-col h-full",
142396
- children: /* @__PURE__ */ (0, O.jsx)(X$e, {
142388
+ children: /* @__PURE__ */ (0, O.jsx)(Y$e, {
142397
142389
  results: Pe,
142398
142390
  copiedResult: T,
142399
142391
  serverId: i,
@@ -142410,7 +142402,7 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142410
142402
  ]
142411
142403
  })
142412
142404
  }),
142413
- /* @__PURE__ */ (0, O.jsx)(F$e, {
142405
+ /* @__PURE__ */ (0, O.jsx)(P$e, {
142414
142406
  isOpen: L,
142415
142407
  requestName: te,
142416
142408
  defaultPlaceholder: `${l?.name} - ${(/* @__PURE__ */ new Date()).toLocaleString()}`,
@@ -142418,12 +142410,12 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142418
142410
  onSave: Le,
142419
142411
  onCancel: () => ee(!1)
142420
142412
  }),
142421
- /* @__PURE__ */ (0, O.jsx)(A1e, {
142413
+ /* @__PURE__ */ (0, O.jsx)(k1e, {
142422
142414
  open: fe.open,
142423
142415
  onOpenChange: (e) => {
142424
142416
  e || ke();
142425
142417
  },
142426
- children: /* @__PURE__ */ (0, O.jsxs)(N1e, { children: [/* @__PURE__ */ (0, O.jsxs)(P1e, { children: [/* @__PURE__ */ (0, O.jsx)(I1e, { children: "Auto-fill fields from pasted object?" }), /* @__PURE__ */ (0, O.jsxs)(L1e, { children: [fe.fieldsToUpdate.length > 0 && /* @__PURE__ */ (0, O.jsxs)("div", {
142418
+ children: /* @__PURE__ */ (0, O.jsxs)(M1e, { children: [/* @__PURE__ */ (0, O.jsxs)(N1e, { children: [/* @__PURE__ */ (0, O.jsx)(F1e, { children: "Auto-fill fields from pasted object?" }), /* @__PURE__ */ (0, O.jsxs)(I1e, { children: [fe.fieldsToUpdate.length > 0 && /* @__PURE__ */ (0, O.jsxs)("div", {
142427
142419
  className: "mb-3",
142428
142420
  children: [/* @__PURE__ */ (0, O.jsx)("p", {
142429
142421
  className: "font-medium mb-2",
@@ -142458,10 +142450,10 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142458
142450
  }), /* @__PURE__ */ (0, O.jsx)("p", {
142459
142451
  className: "text-sm font-mono",
142460
142452
  children: fe.newFields.join(", ")
142461
- })] })] })] }), /* @__PURE__ */ (0, O.jsxs)(F1e, { children: [/* @__PURE__ */ (0, O.jsx)(z1e, {
142453
+ })] })] })] }), /* @__PURE__ */ (0, O.jsxs)(P1e, { children: [/* @__PURE__ */ (0, O.jsx)(R1e, {
142462
142454
  onClick: ke,
142463
142455
  children: "Cancel"
142464
- }), /* @__PURE__ */ (0, O.jsx)(R1e, {
142456
+ }), /* @__PURE__ */ (0, O.jsx)(L1e, {
142465
142457
  onClick: Oe,
142466
142458
  children: "Auto-fill"
142467
142459
  })] })] })
@@ -142469,10 +142461,10 @@ function V1e({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCo
142469
142461
  ]
142470
142462
  });
142471
142463
  }
142472
- V1e.displayName = "ToolsTab";
142464
+ B1e.displayName = "ToolsTab";
142473
142465
  //#endregion
142474
142466
  //#region src/client/components/LayoutContent.tsx
142475
- function H1e({ selectedServer: e, activeTab: t, toolsSearchRef: n, promptsSearchRef: r, resourcesSearchRef: i, children: a }) {
142467
+ function V1e({ selectedServer: e, activeTab: t, toolsSearchRef: n, promptsSearchRef: r, resourcesSearchRef: i, children: a }) {
142476
142468
  let { embeddedConfig: o } = i0();
142477
142469
  if (!e && o.forceConnected) return o.chatApiUrl ? /* @__PURE__ */ (0, O.jsx)(zZe, {
142478
142470
  connection: {
@@ -142516,7 +142508,7 @@ function H1e({ selectedServer: e, activeTab: t, toolsSearchRef: n, promptsSearch
142516
142508
  s("tools") && /* @__PURE__ */ (0, O.jsx)("div", {
142517
142509
  style: { display: t === "tools" ? "block" : "none" },
142518
142510
  className: "h-full",
142519
- children: /* @__PURE__ */ (0, O.jsx)(V1e, {
142511
+ children: /* @__PURE__ */ (0, O.jsx)(B1e, {
142520
142512
  ref: n,
142521
142513
  tools: e.tools,
142522
142514
  callTool: e.callTool,
@@ -142529,7 +142521,7 @@ function H1e({ selectedServer: e, activeTab: t, toolsSearchRef: n, promptsSearch
142529
142521
  s("prompts") && /* @__PURE__ */ (0, O.jsx)("div", {
142530
142522
  style: { display: t === "prompts" ? "block" : "none" },
142531
142523
  className: "h-full",
142532
- children: /* @__PURE__ */ (0, O.jsx)(x$e, {
142524
+ children: /* @__PURE__ */ (0, O.jsx)(b$e, {
142533
142525
  ref: r,
142534
142526
  prompts: e.prompts,
142535
142527
  callPrompt: (t, n) => e.getPrompt(t, n ? Object.fromEntries(Object.entries(n).map(([e, t]) => [e, typeof t == "string" ? t : String(t ?? "")])) : void 0),
@@ -142541,7 +142533,7 @@ function H1e({ selectedServer: e, activeTab: t, toolsSearchRef: n, promptsSearch
142541
142533
  s("resources") && /* @__PURE__ */ (0, O.jsx)("div", {
142542
142534
  style: { display: t === "resources" ? "block" : "none" },
142543
142535
  className: "h-full",
142544
- children: /* @__PURE__ */ (0, O.jsx)(O$e, {
142536
+ children: /* @__PURE__ */ (0, O.jsx)(D$e, {
142545
142537
  ref: i,
142546
142538
  resources: e.resources,
142547
142539
  readResource: e.readResource,
@@ -142587,7 +142579,7 @@ function H1e({ selectedServer: e, activeTab: t, toolsSearchRef: n, promptsSearch
142587
142579
  s("sampling") && /* @__PURE__ */ (0, O.jsx)("div", {
142588
142580
  style: { display: t === "sampling" ? "block" : "none" },
142589
142581
  className: "h-full",
142590
- children: /* @__PURE__ */ (0, O.jsx)(N$e, {
142582
+ children: /* @__PURE__ */ (0, O.jsx)(M$e, {
142591
142583
  pendingRequests: e.pendingSamplingRequests,
142592
142584
  onApprove: e.approveSampling,
142593
142585
  onReject: e.rejectSampling,
@@ -142633,7 +142625,7 @@ function H1e({ selectedServer: e, activeTab: t, toolsSearchRef: n, promptsSearch
142633
142625
  }
142634
142626
  //#endregion
142635
142627
  //#region src/client/components/ui/github-icon.tsx
142636
- function U1e({ className: e }) {
142628
+ function H1e({ className: e }) {
142637
142629
  return /* @__PURE__ */ (0, O.jsxs)("svg", {
142638
142630
  xmlns: "http://www.w3.org/2000/svg",
142639
142631
  width: "24",
@@ -142650,21 +142642,21 @@ function U1e({ className: e }) {
142650
142642
  }
142651
142643
  //#endregion
142652
142644
  //#region src/client/components/ui/tabs.tsx
142653
- var W1e = A.createContext(void 0);
142654
- function G1e() {
142655
- let e = A.use(W1e);
142645
+ var U1e = A.createContext(void 0);
142646
+ function W1e() {
142647
+ let e = A.use(U1e);
142656
142648
  if (!e) throw Error("useTabs must be used within a TabsProvider");
142657
142649
  return e;
142658
142650
  }
142659
- var K1e = A.createContext(void 0);
142660
- function q1e() {
142661
- return A.use(K1e);
142651
+ var G1e = A.createContext(void 0);
142652
+ function K1e() {
142653
+ return A.use(G1e);
142662
142654
  }
142663
142655
  function G9({ ref: e, children: t, defaultValue: n, value: r, onValueChange: i, className: a, collapsed: o, onCollapsedChange: s, ...c }) {
142664
142656
  let [l, u] = A.useState(n || ""), d = r !== void 0, f = o !== void 0, [p, m] = A.useState(!1), h = A.useCallback((e) => {
142665
142657
  d || u(e), i?.(e);
142666
142658
  }, [d, i]);
142667
- return /* @__PURE__ */ (0, O.jsx)(W1e, {
142659
+ return /* @__PURE__ */ (0, O.jsx)(U1e, {
142668
142660
  value: {
142669
142661
  activeValue: d ? r : l,
142670
142662
  handleValueChange: h,
@@ -142683,7 +142675,7 @@ function G9({ ref: e, children: t, defaultValue: n, value: r, onValueChange: i,
142683
142675
  }
142684
142676
  G9.displayName = "Tabs";
142685
142677
  function K9({ ref: e, children: t, className: n, variant: r = "default", collapsible: i = !1, ...a }) {
142686
- let { activeValue: o, collapsed: s, handleCollapsedChange: c } = G1e(), [l, u] = A.useState({
142678
+ let { activeValue: o, collapsed: s, handleCollapsedChange: c } = W1e(), [l, u] = A.useState({
142687
142679
  width: 0,
142688
142680
  left: 0
142689
142681
  }), d = A.useRef(null), f = A.useRef(null), p = A.useRef(null), m = A.useCallback(() => {
@@ -142729,7 +142721,7 @@ function K9({ ref: e, children: t, className: n, variant: r = "default", collaps
142729
142721
  let g = A.useRef(null);
142730
142722
  return A.useEffect(() => {
142731
142723
  g.current && (g.current.style.width = `${l.width}px`, g.current.style.left = `${l.left}px`);
142732
- }, [l]), /* @__PURE__ */ (0, O.jsx)(K1e, {
142724
+ }, [l]), /* @__PURE__ */ (0, O.jsx)(G1e, {
142733
142725
  value: {
142734
142726
  variant: r,
142735
142727
  collapsed: s,
@@ -142751,9 +142743,9 @@ function K9({ ref: e, children: t, className: n, variant: r = "default", collaps
142751
142743
  });
142752
142744
  }
142753
142745
  K9.displayName = "TabsList";
142754
- var J1e = ({ children: e, title: t, collapsed: n }) => !t || !n ? e : /* @__PURE__ */ (0, O.jsx)(zd, { children: /* @__PURE__ */ (0, O.jsxs)(Bd, { children: [/* @__PURE__ */ (0, O.jsx)(Vd, { children: e }), /* @__PURE__ */ (0, O.jsx)(Hd, { children: t })] }) }), q9 = A.forwardRef(({ children: e, value: t, className: n, disabled: r, icon: i, title: a, showDot: o = !1, alwaysExpanded: s = !1, badge: c, ...l }, u) => {
142755
- let { activeValue: d, handleValueChange: f, collapsed: p } = G1e(), m = q1e()?.variant || "default", h = d === t, g = !p || h || s;
142756
- return /* @__PURE__ */ (0, O.jsx)(J1e, {
142746
+ var q1e = ({ children: e, title: t, collapsed: n }) => !t || !n ? e : /* @__PURE__ */ (0, O.jsx)(zd, { children: /* @__PURE__ */ (0, O.jsxs)(Bd, { children: [/* @__PURE__ */ (0, O.jsx)(Vd, { children: e }), /* @__PURE__ */ (0, O.jsx)(Hd, { children: t })] }) }), q9 = A.forwardRef(({ children: e, value: t, className: n, disabled: r, icon: i, title: a, showDot: o = !1, alwaysExpanded: s = !1, badge: c, ...l }, u) => {
142747
+ let { activeValue: d, handleValueChange: f, collapsed: p } = W1e(), m = K1e()?.variant || "default", h = d === t, g = !p || h || s;
142748
+ return /* @__PURE__ */ (0, O.jsx)(q1e, {
142757
142749
  title: a,
142758
142750
  collapsed: p && !g,
142759
142751
  children: /* @__PURE__ */ (0, O.jsxs)("button", {
@@ -142782,7 +142774,7 @@ var J1e = ({ children: e, title: t, collapsed: n }) => !t || !n ? e : /* @__PURE
142782
142774
  q9.displayName = "TabsTrigger";
142783
142775
  //#endregion
142784
142776
  //#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.3_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-context/dist/index.mjs
142785
- function Y1e(e, t = []) {
142777
+ function J1e(e, t = []) {
142786
142778
  let n = [];
142787
142779
  function r(t, r) {
142788
142780
  let i = A.createContext(r);
@@ -142815,9 +142807,9 @@ function Y1e(e, t = []) {
142815
142807
  } }), [n, r]);
142816
142808
  };
142817
142809
  };
142818
- return i.scopeName = e, [r, X1e(i, ...t)];
142810
+ return i.scopeName = e, [r, Y1e(i, ...t)];
142819
142811
  }
142820
- function X1e(...e) {
142812
+ function Y1e(...e) {
142821
142813
  let t = e[0];
142822
142814
  if (e.length === 1) return t;
142823
142815
  let n = () => {
@@ -142840,7 +142832,7 @@ function X1e(...e) {
142840
142832
  }
142841
142833
  //#endregion
142842
142834
  //#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.4/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
142843
- var Z1e = /* @__PURE__ */ s(((e) => {
142835
+ var X1e = /* @__PURE__ */ s(((e) => {
142844
142836
  var t = _();
142845
142837
  function n(e, t) {
142846
142838
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -142878,7 +142870,7 @@ var Z1e = /* @__PURE__ */ s(((e) => {
142878
142870
  }
142879
142871
  var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
142880
142872
  e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
142881
- })), Q1e = /* @__PURE__ */ s(((e) => {
142873
+ })), Z1e = /* @__PURE__ */ s(((e) => {
142882
142874
  process.env.NODE_ENV !== "production" && (function() {
142883
142875
  function t(e, t) {
142884
142876
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -142924,20 +142916,20 @@ var Z1e = /* @__PURE__ */ s(((e) => {
142924
142916
  var a = _(), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
142925
142917
  e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
142926
142918
  })();
142927
- })), $1e = (/* @__PURE__ */ s(((e, t) => {
142928
- process.env.NODE_ENV === "production" ? t.exports = Z1e() : t.exports = Q1e();
142919
+ })), Q1e = (/* @__PURE__ */ s(((e, t) => {
142920
+ process.env.NODE_ENV === "production" ? t.exports = X1e() : t.exports = Z1e();
142929
142921
  })))();
142930
- function e0e() {
142931
- return (0, $1e.useSyncExternalStore)(t0e, () => !0, () => !1);
142922
+ function $1e() {
142923
+ return (0, Q1e.useSyncExternalStore)(e0e, () => !0, () => !1);
142932
142924
  }
142933
- function t0e() {
142925
+ function e0e() {
142934
142926
  return () => {};
142935
142927
  }
142936
142928
  //#endregion
142937
142929
  //#region ../../node_modules/.pnpm/@radix-ui+react-avatar@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14__@types+reac_5e99ccf265cbb36ef8e7150da8f5489e/node_modules/@radix-ui/react-avatar/dist/index.mjs
142938
- var J9 = "Avatar", [n0e, r0e] = Y1e(J9), [i0e, a0e] = n0e(J9), o0e = A.forwardRef((e, t) => {
142930
+ var J9 = "Avatar", [t0e, n0e] = J1e(J9), [r0e, i0e] = t0e(J9), a0e = A.forwardRef((e, t) => {
142939
142931
  let { __scopeAvatar: n, ...r } = e, [i, a] = A.useState("idle");
142940
- return /* @__PURE__ */ (0, O.jsx)(i0e, {
142932
+ return /* @__PURE__ */ (0, O.jsx)(r0e, {
142941
142933
  scope: n,
142942
142934
  imageLoadingStatus: i,
142943
142935
  onImageLoadingStatusChange: a,
@@ -142947,9 +142939,9 @@ var J9 = "Avatar", [n0e, r0e] = Y1e(J9), [i0e, a0e] = n0e(J9), o0e = A.forwardRe
142947
142939
  })
142948
142940
  });
142949
142941
  });
142950
- o0e.displayName = J9;
142951
- var s0e = "AvatarImage", c0e = A.forwardRef((e, t) => {
142952
- let { __scopeAvatar: n, src: r, onLoadingStatusChange: i = () => {}, ...a } = e, o = a0e(s0e, n), s = f0e(r, a), c = sn((e) => {
142942
+ a0e.displayName = J9;
142943
+ var o0e = "AvatarImage", s0e = A.forwardRef((e, t) => {
142944
+ let { __scopeAvatar: n, src: r, onLoadingStatusChange: i = () => {}, ...a } = e, o = i0e(o0e, n), s = d0e(r, a), c = sn((e) => {
142953
142945
  i(e), o.onImageLoadingStatusChange(e);
142954
142946
  });
142955
142947
  return Ht(() => {
@@ -142960,9 +142952,9 @@ var s0e = "AvatarImage", c0e = A.forwardRef((e, t) => {
142960
142952
  src: r
142961
142953
  }) : null;
142962
142954
  });
142963
- c0e.displayName = s0e;
142964
- var l0e = "AvatarFallback", u0e = A.forwardRef((e, t) => {
142965
- let { __scopeAvatar: n, delayMs: r, ...i } = e, a = a0e(l0e, n), [o, s] = A.useState(r === void 0);
142955
+ s0e.displayName = o0e;
142956
+ var c0e = "AvatarFallback", l0e = A.forwardRef((e, t) => {
142957
+ let { __scopeAvatar: n, delayMs: r, ...i } = e, a = i0e(c0e, n), [o, s] = A.useState(r === void 0);
142966
142958
  return A.useEffect(() => {
142967
142959
  if (r !== void 0) {
142968
142960
  let e = window.setTimeout(() => s(!0), r);
@@ -142973,14 +142965,14 @@ var l0e = "AvatarFallback", u0e = A.forwardRef((e, t) => {
142973
142965
  ref: t
142974
142966
  }) : null;
142975
142967
  });
142976
- u0e.displayName = l0e;
142977
- function d0e(e, t) {
142968
+ l0e.displayName = c0e;
142969
+ function u0e(e, t) {
142978
142970
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
142979
142971
  }
142980
- function f0e(e, { referrerPolicy: t, crossOrigin: n }) {
142981
- let r = e0e(), i = A.useRef(null), a = r ? (i.current ||= new window.Image(), i.current) : null, [o, s] = A.useState(() => d0e(a, e));
142972
+ function d0e(e, { referrerPolicy: t, crossOrigin: n }) {
142973
+ let r = $1e(), i = A.useRef(null), a = r ? (i.current ||= new window.Image(), i.current) : null, [o, s] = A.useState(() => u0e(a, e));
142982
142974
  return Ht(() => {
142983
- s(d0e(a, e));
142975
+ s(u0e(a, e));
142984
142976
  }, [a, e]), Ht(() => {
142985
142977
  let e = (e) => () => {
142986
142978
  s(e);
@@ -142996,25 +142988,25 @@ function f0e(e, { referrerPolicy: t, crossOrigin: n }) {
142996
142988
  t
142997
142989
  ]), o;
142998
142990
  }
142999
- var p0e = o0e, m0e = c0e, h0e = u0e;
142991
+ var f0e = a0e, p0e = s0e, m0e = l0e;
143000
142992
  //#endregion
143001
142993
  //#region src/client/components/ui/avatar.tsx
143002
- function g0e({ className: e, ...t }) {
143003
- return /* @__PURE__ */ (0, O.jsx)(p0e, {
142994
+ function h0e({ className: e, ...t }) {
142995
+ return /* @__PURE__ */ (0, O.jsx)(f0e, {
143004
142996
  "data-slot": "avatar",
143005
142997
  className: V("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
143006
142998
  ...t
143007
142999
  });
143008
143000
  }
143009
- function _0e({ className: e, ...t }) {
143010
- return /* @__PURE__ */ (0, O.jsx)(m0e, {
143001
+ function g0e({ className: e, ...t }) {
143002
+ return /* @__PURE__ */ (0, O.jsx)(p0e, {
143011
143003
  "data-slot": "avatar-image",
143012
143004
  className: V("aspect-square size-full", e),
143013
143005
  ...t
143014
143006
  });
143015
143007
  }
143016
- function v0e({ className: e, ...t }) {
143017
- return /* @__PURE__ */ (0, O.jsx)(h0e, {
143008
+ function _0e({ className: e, ...t }) {
143009
+ return /* @__PURE__ */ (0, O.jsx)(m0e, {
143018
143010
  "data-slot": "avatar-fallback",
143019
143011
  className: V("flex size-full items-center justify-center rounded-full bg-zinc-200 dark:bg-zinc-700 text-muted-foreground font-medium", e),
143020
143012
  ...t
@@ -143022,10 +143014,10 @@ function v0e({ className: e, ...t }) {
143022
143014
  }
143023
143015
  //#endregion
143024
143016
  //#region src/client/components/HostedUserMenu.tsx
143025
- function y0e(e, t) {
143017
+ function v0e(e, t) {
143026
143018
  return e?.[0] ? e[0].toUpperCase() : t?.[0] ? t[0].toUpperCase() : "U";
143027
143019
  }
143028
- function b0e({ chatApiUrl: e, dashboardUrl: t = "https://manufact.com/cloud", fallback: n = null, onUserResolved: r }) {
143020
+ function y0e({ chatApiUrl: e, dashboardUrl: t = "https://manufact.com/cloud", fallback: n = null, onUserResolved: r }) {
143029
143021
  let [i, a] = (0, A.useState)(null), [o, s] = (0, A.useState)(!1), c = (0, A.useCallback)(() => {
143030
143022
  let t = !1, n = `${new URL(e).origin}/api/auth/get-session`;
143031
143023
  return fetch(n, { credentials: "include" }).then((e) => e.ok ? e.json() : null).then((e) => {
@@ -143046,19 +143038,19 @@ function b0e({ chatApiUrl: e, dashboardUrl: t = "https://manufact.com/cloud", fa
143046
143038
  return window.addEventListener("manufact:session-changed", e), () => window.removeEventListener("manufact:session-changed", e);
143047
143039
  }, [c]), !o) return null;
143048
143040
  if (!i) return /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: n });
143049
- let l = y0e(i.name, i.email), u = i.name ?? i.email ?? "User";
143041
+ let l = v0e(i.name, i.email), u = i.name ?? i.email ?? "User";
143050
143042
  return /* @__PURE__ */ (0, O.jsxs)(nu, { children: [/* @__PURE__ */ (0, O.jsx)(ru, {
143051
143043
  asChild: !0,
143052
143044
  children: /* @__PURE__ */ (0, O.jsx)(H, {
143053
143045
  variant: "ghost",
143054
143046
  className: "relative h-8 w-8 shrink-0 rounded-full p-0 mr-2",
143055
143047
  "aria-label": "User menu",
143056
- children: /* @__PURE__ */ (0, O.jsxs)(g0e, {
143048
+ children: /* @__PURE__ */ (0, O.jsxs)(h0e, {
143057
143049
  className: "h-8 w-8 border border-zinc-300 dark:border-zinc-600",
143058
- children: [/* @__PURE__ */ (0, O.jsx)(_0e, {
143050
+ children: [/* @__PURE__ */ (0, O.jsx)(g0e, {
143059
143051
  src: i.image ?? "",
143060
143052
  alt: u
143061
- }), /* @__PURE__ */ (0, O.jsx)(v0e, {
143053
+ }), /* @__PURE__ */ (0, O.jsx)(_0e, {
143062
143054
  className: "text-sm",
143063
143055
  children: l
143064
143056
  })]
@@ -143096,6 +143088,14 @@ function b0e({ chatApiUrl: e, dashboardUrl: t = "https://manufact.com/cloud", fa
143096
143088
  })] });
143097
143089
  }
143098
143090
  //#endregion
143091
+ //#region src/client/components/shared/TabCountBadge.tsx
143092
+ function b0e({ count: e, isActive: t, size: n = "md" }) {
143093
+ return e <= 0 ? null : /* @__PURE__ */ (0, O.jsx)("span", {
143094
+ className: V(t ? "dark:bg-black" : "dark:bg-zinc-700", "shrink-0 ml-1 bg-zinc-200 text-zinc-700 dark:text-zinc-300 rounded-full font-medium", n === "sm" && "text-[10px] px-1.5 py-0.5", n === "md" && "text-xs px-2 py-0.5"),
143095
+ children: e
143096
+ });
143097
+ }
143098
+ //#endregion
143099
143099
  //#region src/client/components/AddToClientDropdown.tsx
143100
143100
  function x0e({ serverConfig: e, additionalItems: t = [], showClients: n = {
143101
143101
  cursor: !0,
@@ -144523,7 +144523,7 @@ function F0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
144523
144523
  href: "https://github.com/mcp-use/mcp-use",
144524
144524
  target: "_blank",
144525
144525
  rel: "noopener noreferrer",
144526
- children: [/* @__PURE__ */ (0, O.jsx)(U1e, { className: "h-4 w-4 mr-2" }), "GitHub"]
144526
+ children: [/* @__PURE__ */ (0, O.jsx)(H1e, { className: "h-4 w-4 mr-2" }), "GitHub"]
144527
144527
  })
144528
144528
  }),
144529
144529
  /* @__PURE__ */ (0, O.jsx)(lu, {
@@ -144557,7 +144557,7 @@ function F0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
144557
144557
  "data-testid": `tab-${e.id}`,
144558
144558
  icon: e.icon,
144559
144559
  showDot: i,
144560
- badge: /* @__PURE__ */ (0, O.jsx)(a$e, {
144560
+ badge: /* @__PURE__ */ (0, O.jsx)(b0e, {
144561
144561
  count: r,
144562
144562
  isActive: n === e.id,
144563
144563
  size: "sm"
@@ -144600,7 +144600,7 @@ function F0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
144600
144600
  "data-testid": `tab-${e.id}`,
144601
144601
  icon: e.icon,
144602
144602
  showDot: a,
144603
- badge: /* @__PURE__ */ (0, O.jsx)(a$e, {
144603
+ badge: /* @__PURE__ */ (0, O.jsx)(b0e, {
144604
144604
  count: r,
144605
144605
  isActive: n === e.id
144606
144606
  }),
@@ -144763,7 +144763,7 @@ function F0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
144763
144763
  href: "https://github.com/mcp-use/mcp-use",
144764
144764
  target: "_blank",
144765
144765
  rel: "noopener noreferrer",
144766
- children: [/* @__PURE__ */ (0, O.jsx)(U1e, { className: "h-4 w-4 mr-2" }), "GitHub"]
144766
+ children: [/* @__PURE__ */ (0, O.jsx)(H1e, { className: "h-4 w-4 mr-2" }), "GitHub"]
144767
144767
  })
144768
144768
  }),
144769
144769
  /* @__PURE__ */ (0, O.jsx)(lu, {
@@ -144779,7 +144779,7 @@ function F0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
144779
144779
  })] }),
144780
144780
  f.chatApiUrl ? /* @__PURE__ */ (0, O.jsxs)("div", {
144781
144781
  className: "flex items-center gap-2",
144782
- children: [/* @__PURE__ */ (0, O.jsx)(b0e, {
144782
+ children: [/* @__PURE__ */ (0, O.jsx)(y0e, {
144783
144783
  chatApiUrl: f.chatApiUrl,
144784
144784
  onUserResolved: (e) => T(!!e),
144785
144785
  fallback: /* @__PURE__ */ (0, O.jsx)("span", {
@@ -145113,7 +145113,7 @@ function I0e({ children: e }) {
145113
145113
  }),
145114
145114
  /* @__PURE__ */ (0, O.jsx)("main", {
145115
145115
  className: ce ? "flex-1 w-full bg-white dark:bg-black p-0 overflow-auto" : "flex-1 w-full mx-auto bg-white dark:bg-black rounded-2xl border border-zinc-200 dark:border-zinc-700 p-0 overflow-auto",
145116
- children: /* @__PURE__ */ (0, O.jsx)(H1e, {
145116
+ children: /* @__PURE__ */ (0, O.jsx)(V1e, {
145117
145117
  selectedServer: R,
145118
145118
  activeTab: m,
145119
145119
  toolsSearchRef: P,