@leanmcp/ui 0.3.6 → 0.3.7-alpha.8.f4673cd

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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk57VDL5UC_js = require('./chunk-57VDL5UC.js');
3
+ var chunk55345F7G_js = require('./chunk-55345F7G.js');
4
4
  var React26 = require('react');
5
5
  var extApps = require('@modelcontextprotocol/ext-apps');
6
6
  var lucideReact = require('lucide-react');
@@ -159,7 +159,7 @@ function AppProvider({ appInfo, capabilities = {}, options = {
159
159
  }
160
160
  }
161
161
  }
162
- chunk57VDL5UC_js.__name(connect, "connect");
162
+ chunk55345F7G_js.__name(connect, "connect");
163
163
  connect();
164
164
  return () => {
165
165
  mounted = false;
@@ -264,7 +264,7 @@ function AppProvider({ appInfo, capabilities = {}, options = {
264
264
  "data-theme": theme
265
265
  }, children));
266
266
  }
267
- chunk57VDL5UC_js.__name(AppProvider, "AppProvider");
267
+ chunk55345F7G_js.__name(AppProvider, "AppProvider");
268
268
  var ssrDefaultContext = {
269
269
  app: null,
270
270
  isConnected: false,
@@ -276,19 +276,19 @@ var ssrDefaultContext = {
276
276
  toolCancelled: {
277
277
  cancelled: false
278
278
  },
279
- callTool: /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
279
+ callTool: /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
280
280
  throw new Error("callTool not available during SSR");
281
281
  }, "callTool"),
282
- sendMessage: /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
282
+ sendMessage: /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
283
283
  console.warn("sendMessage not available during SSR");
284
284
  }, "sendMessage"),
285
- sendLog: /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
285
+ sendLog: /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
286
286
  console.warn("sendLog not available during SSR");
287
287
  }, "sendLog"),
288
- openLink: /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
288
+ openLink: /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
289
289
  console.warn("openLink not available during SSR");
290
290
  }, "openLink"),
291
- requestDisplayMode: /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
291
+ requestDisplayMode: /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
292
292
  console.warn("requestDisplayMode not available during SSR");
293
293
  return "inline";
294
294
  }, "requestDisplayMode")
@@ -300,7 +300,7 @@ function useMcpApp() {
300
300
  }
301
301
  return context;
302
302
  }
303
- chunk57VDL5UC_js.__name(useMcpApp, "useMcpApp");
303
+ chunk55345F7G_js.__name(useMcpApp, "useMcpApp");
304
304
  var GptAppContext = /* @__PURE__ */ React26.createContext(null);
305
305
  function GPTAppProvider({ appName, children }) {
306
306
  const [isConnected, setIsConnected] = React26.useState(false);
@@ -332,7 +332,7 @@ function GPTAppProvider({ appName, children }) {
332
332
  }
333
333
  }
334
334
  }
335
- chunk57VDL5UC_js.__name(checkConnection, "checkConnection");
335
+ chunk55345F7G_js.__name(checkConnection, "checkConnection");
336
336
  checkConnection();
337
337
  return () => {
338
338
  mounted = false;
@@ -363,7 +363,7 @@ function GPTAppProvider({ appName, children }) {
363
363
  "data-theme": theme
364
364
  }, children));
365
365
  }
366
- chunk57VDL5UC_js.__name(GPTAppProvider, "GPTAppProvider");
366
+ chunk55345F7G_js.__name(GPTAppProvider, "GPTAppProvider");
367
367
  function useGptApp() {
368
368
  const context = React26.useContext(GptAppContext);
369
369
  if (!context) {
@@ -374,14 +374,14 @@ function useGptApp() {
374
374
  displayMode: "inline",
375
375
  locale: "en",
376
376
  maxHeight: 600,
377
- callTool: /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
377
+ callTool: /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
378
378
  throw new Error("Not connected to ChatGPT");
379
379
  }, "callTool")
380
380
  };
381
381
  }
382
382
  return context;
383
383
  }
384
- chunk57VDL5UC_js.__name(useGptApp, "useGptApp");
384
+ chunk55345F7G_js.__name(useGptApp, "useGptApp");
385
385
  function useGptTool(toolName) {
386
386
  const { callTool, isConnected } = useGptApp();
387
387
  const [result, setResult] = React26.useState(null);
@@ -417,7 +417,7 @@ function useGptTool(toolName) {
417
417
  isConnected
418
418
  };
419
419
  }
420
- chunk57VDL5UC_js.__name(useGptTool, "useGptTool");
420
+ chunk55345F7G_js.__name(useGptTool, "useGptTool");
421
421
  var DEFAULT_CONTEXT = {
422
422
  resultDisplay: {
423
423
  display: "none"
@@ -439,12 +439,12 @@ function ToolProvider({ defaults = {}, children }) {
439
439
  value
440
440
  }, children);
441
441
  }
442
- chunk57VDL5UC_js.__name(ToolProvider, "ToolProvider");
442
+ chunk55345F7G_js.__name(ToolProvider, "ToolProvider");
443
443
  function useToolContext() {
444
444
  return React26.useContext(ToolContext);
445
445
  }
446
- chunk57VDL5UC_js.__name(useToolContext, "useToolContext");
447
- var Toaster = /* @__PURE__ */ chunk57VDL5UC_js.__name(({ ...props }) => {
446
+ chunk55345F7G_js.__name(useToolContext, "useToolContext");
447
+ var Toaster = /* @__PURE__ */ chunk55345F7G_js.__name(({ ...props }) => {
448
448
  const { theme = "system" } = nextThemes.useTheme();
449
449
  return /* @__PURE__ */ React26__namespace.default.createElement(sonner.Toaster, {
450
450
  theme,
@@ -478,7 +478,7 @@ var Toaster = /* @__PURE__ */ chunk57VDL5UC_js.__name(({ ...props }) => {
478
478
  function cn(...inputs) {
479
479
  return tailwindMerge.twMerge(clsx.clsx(inputs));
480
480
  }
481
- chunk57VDL5UC_js.__name(cn, "cn");
481
+ chunk55345F7G_js.__name(cn, "cn");
482
482
 
483
483
  // src/components/ui/button.tsx
484
484
  var buttonVariants = classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
@@ -519,35 +519,35 @@ function Button({ className, variant = "default", size = "default", asChild = fa
519
519
  ...props
520
520
  });
521
521
  }
522
- chunk57VDL5UC_js.__name(Button, "Button");
522
+ chunk55345F7G_js.__name(Button, "Button");
523
523
  function Dialog({ ...props }) {
524
524
  return /* @__PURE__ */ React26__namespace.createElement(DialogPrimitive__namespace.Root, {
525
525
  "data-slot": "dialog",
526
526
  ...props
527
527
  });
528
528
  }
529
- chunk57VDL5UC_js.__name(Dialog, "Dialog");
529
+ chunk55345F7G_js.__name(Dialog, "Dialog");
530
530
  function DialogTrigger({ ...props }) {
531
531
  return /* @__PURE__ */ React26__namespace.createElement(DialogPrimitive__namespace.Trigger, {
532
532
  "data-slot": "dialog-trigger",
533
533
  ...props
534
534
  });
535
535
  }
536
- chunk57VDL5UC_js.__name(DialogTrigger, "DialogTrigger");
536
+ chunk55345F7G_js.__name(DialogTrigger, "DialogTrigger");
537
537
  function DialogPortal({ ...props }) {
538
538
  return /* @__PURE__ */ React26__namespace.createElement(DialogPrimitive__namespace.Portal, {
539
539
  "data-slot": "dialog-portal",
540
540
  ...props
541
541
  });
542
542
  }
543
- chunk57VDL5UC_js.__name(DialogPortal, "DialogPortal");
543
+ chunk55345F7G_js.__name(DialogPortal, "DialogPortal");
544
544
  function DialogClose({ ...props }) {
545
545
  return /* @__PURE__ */ React26__namespace.createElement(DialogPrimitive__namespace.Close, {
546
546
  "data-slot": "dialog-close",
547
547
  ...props
548
548
  });
549
549
  }
550
- chunk57VDL5UC_js.__name(DialogClose, "DialogClose");
550
+ chunk55345F7G_js.__name(DialogClose, "DialogClose");
551
551
  function DialogOverlay({ className, ...props }) {
552
552
  return /* @__PURE__ */ React26__namespace.createElement(DialogPrimitive__namespace.Overlay, {
553
553
  "data-slot": "dialog-overlay",
@@ -555,7 +555,7 @@ function DialogOverlay({ className, ...props }) {
555
555
  ...props
556
556
  });
557
557
  }
558
- chunk57VDL5UC_js.__name(DialogOverlay, "DialogOverlay");
558
+ chunk55345F7G_js.__name(DialogOverlay, "DialogOverlay");
559
559
  function DialogContent({ className, children, showCloseButton = true, ...props }) {
560
560
  return /* @__PURE__ */ React26__namespace.createElement(DialogPortal, {
561
561
  "data-slot": "dialog-portal"
@@ -570,7 +570,7 @@ function DialogContent({ className, children, showCloseButton = true, ...props }
570
570
  className: "sr-only"
571
571
  }, "Close"))));
572
572
  }
573
- chunk57VDL5UC_js.__name(DialogContent, "DialogContent");
573
+ chunk55345F7G_js.__name(DialogContent, "DialogContent");
574
574
  function DialogHeader({ className, ...props }) {
575
575
  return /* @__PURE__ */ React26__namespace.createElement("div", {
576
576
  "data-slot": "dialog-header",
@@ -578,7 +578,7 @@ function DialogHeader({ className, ...props }) {
578
578
  ...props
579
579
  });
580
580
  }
581
- chunk57VDL5UC_js.__name(DialogHeader, "DialogHeader");
581
+ chunk55345F7G_js.__name(DialogHeader, "DialogHeader");
582
582
  function DialogFooter({ className, ...props }) {
583
583
  return /* @__PURE__ */ React26__namespace.createElement("div", {
584
584
  "data-slot": "dialog-footer",
@@ -586,7 +586,7 @@ function DialogFooter({ className, ...props }) {
586
586
  ...props
587
587
  });
588
588
  }
589
- chunk57VDL5UC_js.__name(DialogFooter, "DialogFooter");
589
+ chunk55345F7G_js.__name(DialogFooter, "DialogFooter");
590
590
  function DialogTitle({ className, ...props }) {
591
591
  return /* @__PURE__ */ React26__namespace.createElement(DialogPrimitive__namespace.Title, {
592
592
  "data-slot": "dialog-title",
@@ -594,7 +594,7 @@ function DialogTitle({ className, ...props }) {
594
594
  ...props
595
595
  });
596
596
  }
597
- chunk57VDL5UC_js.__name(DialogTitle, "DialogTitle");
597
+ chunk55345F7G_js.__name(DialogTitle, "DialogTitle");
598
598
  function DialogDescription({ className, ...props }) {
599
599
  return /* @__PURE__ */ React26__namespace.createElement(DialogPrimitive__namespace.Description, {
600
600
  "data-slot": "dialog-description",
@@ -602,7 +602,7 @@ function DialogDescription({ className, ...props }) {
602
602
  ...props
603
603
  });
604
604
  }
605
- chunk57VDL5UC_js.__name(DialogDescription, "DialogDescription");
605
+ chunk55345F7G_js.__name(DialogDescription, "DialogDescription");
606
606
  function extractResultData(result) {
607
607
  if ("structuredContent" in result && result.structuredContent) {
608
608
  return result.structuredContent;
@@ -626,7 +626,7 @@ function extractResultData(result) {
626
626
  }
627
627
  return result;
628
628
  }
629
- chunk57VDL5UC_js.__name(extractResultData, "extractResultData");
629
+ chunk55345F7G_js.__name(extractResultData, "extractResultData");
630
630
  function useTool(toolName, options = {}) {
631
631
  const { callTool } = useMcpApp();
632
632
  const [state, setState] = React26.useState("idle");
@@ -739,7 +739,7 @@ function useTool(toolName, options = {}) {
739
739
  abort
740
740
  };
741
741
  }
742
- chunk57VDL5UC_js.__name(useTool, "useTool");
742
+ chunk55345F7G_js.__name(useTool, "useTool");
743
743
  function ToolButton({ tool, args = {}, resultDisplay = "none", renderResult, resultDuration = 3e3, successMessage, errorMessage, onToolStart, onToolSuccess, onToolError, onToolComplete, loadingText, loadingIcon, disableWhileLoading = true, confirm, children, className, variant = "default", size = "default", disabled, asChild = false, ...props }) {
744
744
  const toolConfig = typeof tool === "string" ? {
745
745
  name: tool
@@ -813,7 +813,7 @@ function ToolButton({ tool, args = {}, resultDisplay = "none", renderResult, res
813
813
  confirmText: "Confirm",
814
814
  cancelText: "Cancel"
815
815
  };
816
- const renderChildren = /* @__PURE__ */ chunk57VDL5UC_js.__name(() => {
816
+ const renderChildren = /* @__PURE__ */ chunk55345F7G_js.__name(() => {
817
817
  if (typeof children === "function") {
818
818
  return children(buttonState);
819
819
  }
@@ -851,34 +851,34 @@ function ToolButton({ tool, args = {}, resultDisplay = "none", renderResult, res
851
851
  onOpenChange: setShowConfirm
852
852
  }, /* @__PURE__ */ React26__namespace.createElement(DialogContent, null, /* @__PURE__ */ React26__namespace.createElement(DialogHeader, null, /* @__PURE__ */ React26__namespace.createElement(DialogTitle, null, confirmConfig.title), confirmConfig.description && /* @__PURE__ */ React26__namespace.createElement(DialogDescription, null, confirmConfig.description)), /* @__PURE__ */ React26__namespace.createElement(DialogFooter, null, /* @__PURE__ */ React26__namespace.createElement(Button, {
853
853
  variant: "outline",
854
- onClick: /* @__PURE__ */ chunk57VDL5UC_js.__name(() => setShowConfirm(false), "onClick")
854
+ onClick: /* @__PURE__ */ chunk55345F7G_js.__name(() => setShowConfirm(false), "onClick")
855
855
  }, confirmConfig.cancelText ?? "Cancel"), /* @__PURE__ */ React26__namespace.createElement(Button, {
856
856
  variant: confirmConfig.confirmVariant ?? (variant === "destructive" ? "destructive" : "default"),
857
857
  onClick: handleConfirm
858
858
  }, confirmConfig.confirmText ?? "Confirm")))));
859
859
  }
860
- chunk57VDL5UC_js.__name(ToolButton, "ToolButton");
860
+ chunk55345F7G_js.__name(ToolButton, "ToolButton");
861
861
  function Select({ ...props }) {
862
862
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Root, {
863
863
  "data-slot": "select",
864
864
  ...props
865
865
  });
866
866
  }
867
- chunk57VDL5UC_js.__name(Select, "Select");
867
+ chunk55345F7G_js.__name(Select, "Select");
868
868
  function SelectGroup({ ...props }) {
869
869
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Group, {
870
870
  "data-slot": "select-group",
871
871
  ...props
872
872
  });
873
873
  }
874
- chunk57VDL5UC_js.__name(SelectGroup, "SelectGroup");
874
+ chunk55345F7G_js.__name(SelectGroup, "SelectGroup");
875
875
  function SelectValue({ ...props }) {
876
876
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Value, {
877
877
  "data-slot": "select-value",
878
878
  ...props
879
879
  });
880
880
  }
881
- chunk57VDL5UC_js.__name(SelectValue, "SelectValue");
881
+ chunk55345F7G_js.__name(SelectValue, "SelectValue");
882
882
  function SelectTrigger({ className, size = "default", children, ...props }) {
883
883
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Trigger, {
884
884
  "data-slot": "select-trigger",
@@ -891,7 +891,7 @@ function SelectTrigger({ className, size = "default", children, ...props }) {
891
891
  className: "size-4 opacity-50"
892
892
  })));
893
893
  }
894
- chunk57VDL5UC_js.__name(SelectTrigger, "SelectTrigger");
894
+ chunk55345F7G_js.__name(SelectTrigger, "SelectTrigger");
895
895
  function SelectContent({ className, children, position = "item-aligned", align = "center", ...props }) {
896
896
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Portal, null, /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Content, {
897
897
  "data-slot": "select-content",
@@ -903,7 +903,7 @@ function SelectContent({ className, children, position = "item-aligned", align =
903
903
  className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1")
904
904
  }, children), /* @__PURE__ */ React26__namespace.createElement(SelectScrollDownButton, null)));
905
905
  }
906
- chunk57VDL5UC_js.__name(SelectContent, "SelectContent");
906
+ chunk55345F7G_js.__name(SelectContent, "SelectContent");
907
907
  function SelectLabel({ className, ...props }) {
908
908
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Label, {
909
909
  "data-slot": "select-label",
@@ -911,7 +911,7 @@ function SelectLabel({ className, ...props }) {
911
911
  ...props
912
912
  });
913
913
  }
914
- chunk57VDL5UC_js.__name(SelectLabel, "SelectLabel");
914
+ chunk55345F7G_js.__name(SelectLabel, "SelectLabel");
915
915
  function SelectItem({ className, children, ...props }) {
916
916
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Item, {
917
917
  "data-slot": "select-item",
@@ -924,7 +924,7 @@ function SelectItem({ className, children, ...props }) {
924
924
  className: "size-4"
925
925
  }))), /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.ItemText, null, children));
926
926
  }
927
- chunk57VDL5UC_js.__name(SelectItem, "SelectItem");
927
+ chunk55345F7G_js.__name(SelectItem, "SelectItem");
928
928
  function SelectSeparator({ className, ...props }) {
929
929
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.Separator, {
930
930
  "data-slot": "select-separator",
@@ -932,7 +932,7 @@ function SelectSeparator({ className, ...props }) {
932
932
  ...props
933
933
  });
934
934
  }
935
- chunk57VDL5UC_js.__name(SelectSeparator, "SelectSeparator");
935
+ chunk55345F7G_js.__name(SelectSeparator, "SelectSeparator");
936
936
  function SelectScrollUpButton({ className, ...props }) {
937
937
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.ScrollUpButton, {
938
938
  "data-slot": "select-scroll-up-button",
@@ -942,7 +942,7 @@ function SelectScrollUpButton({ className, ...props }) {
942
942
  className: "size-4"
943
943
  }));
944
944
  }
945
- chunk57VDL5UC_js.__name(SelectScrollUpButton, "SelectScrollUpButton");
945
+ chunk55345F7G_js.__name(SelectScrollUpButton, "SelectScrollUpButton");
946
946
  function SelectScrollDownButton({ className, ...props }) {
947
947
  return /* @__PURE__ */ React26__namespace.createElement(SelectPrimitive__namespace.ScrollDownButton, {
948
948
  "data-slot": "select-scroll-down-button",
@@ -952,7 +952,7 @@ function SelectScrollDownButton({ className, ...props }) {
952
952
  className: "size-4"
953
953
  }));
954
954
  }
955
- chunk57VDL5UC_js.__name(SelectScrollDownButton, "SelectScrollDownButton");
955
+ chunk55345F7G_js.__name(SelectScrollDownButton, "SelectScrollDownButton");
956
956
  function ToolSelect({ onSelectTool, argName = "value", additionalArgs = {}, optionsTool, optionsArgs = {}, transformOptions, options: staticOptions = [], placeholder = "Select an option", loadingPlaceholder = "Loading...", emptyMessage = "No options available", value: controlledValue, defaultValue, onValueChange, onOptionsLoaded, onSelectionSuccess, onSelectionError, showSuccessToast = false, successMessage, className, disabled = false }) {
957
957
  const [fetchedOptions, setFetchedOptions] = React26.useState([]);
958
958
  const [internalValue, setInternalValue] = React26.useState(defaultValue ?? "");
@@ -969,7 +969,7 @@ function ToolSelect({ onSelectTool, argName = "value", additionalArgs = {}, opti
969
969
  }
970
970
  });
971
971
  const selectHook = useTool(selectToolConfig?.name ?? "", {
972
- onSuccess: /* @__PURE__ */ chunk57VDL5UC_js.__name((result) => {
972
+ onSuccess: /* @__PURE__ */ chunk55345F7G_js.__name((result) => {
973
973
  onSelectionSuccess?.(result);
974
974
  if (showSuccessToast) {
975
975
  const message = typeof successMessage === "function" ? successMessage(result) : successMessage ?? "Selection saved";
@@ -1039,7 +1039,7 @@ function ToolSelect({ onSelectTool, argName = "value", additionalArgs = {}, opti
1039
1039
  className: "text-xs text-muted-foreground"
1040
1040
  }, option.description)))))));
1041
1041
  }
1042
- chunk57VDL5UC_js.__name(ToolSelect, "ToolSelect");
1042
+ chunk55345F7G_js.__name(ToolSelect, "ToolSelect");
1043
1043
  function Input({ className, type, ...props }) {
1044
1044
  return /* @__PURE__ */ React26__namespace.createElement("input", {
1045
1045
  type,
@@ -1048,7 +1048,7 @@ function Input({ className, type, ...props }) {
1048
1048
  ...props
1049
1049
  });
1050
1050
  }
1051
- chunk57VDL5UC_js.__name(Input, "Input");
1051
+ chunk55345F7G_js.__name(Input, "Input");
1052
1052
  function Command({ className, ...props }) {
1053
1053
  return /* @__PURE__ */ React26__namespace.createElement(cmdk.Command, {
1054
1054
  "data-slot": "command",
@@ -1056,7 +1056,7 @@ function Command({ className, ...props }) {
1056
1056
  ...props
1057
1057
  });
1058
1058
  }
1059
- chunk57VDL5UC_js.__name(Command, "Command");
1059
+ chunk55345F7G_js.__name(Command, "Command");
1060
1060
  function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }) {
1061
1061
  return /* @__PURE__ */ React26__namespace.createElement(Dialog, props, /* @__PURE__ */ React26__namespace.createElement(DialogHeader, {
1062
1062
  className: "sr-only"
@@ -1067,7 +1067,7 @@ function CommandDialog({ title = "Command Palette", description = "Search for a
1067
1067
  className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"
1068
1068
  }, children)));
1069
1069
  }
1070
- chunk57VDL5UC_js.__name(CommandDialog, "CommandDialog");
1070
+ chunk55345F7G_js.__name(CommandDialog, "CommandDialog");
1071
1071
  function CommandInput({ className, ...props }) {
1072
1072
  return /* @__PURE__ */ React26__namespace.createElement("div", {
1073
1073
  "data-slot": "command-input-wrapper",
@@ -1080,7 +1080,7 @@ function CommandInput({ className, ...props }) {
1080
1080
  ...props
1081
1081
  }));
1082
1082
  }
1083
- chunk57VDL5UC_js.__name(CommandInput, "CommandInput");
1083
+ chunk55345F7G_js.__name(CommandInput, "CommandInput");
1084
1084
  function CommandList({ className, ...props }) {
1085
1085
  return /* @__PURE__ */ React26__namespace.createElement(cmdk.Command.List, {
1086
1086
  "data-slot": "command-list",
@@ -1088,7 +1088,7 @@ function CommandList({ className, ...props }) {
1088
1088
  ...props
1089
1089
  });
1090
1090
  }
1091
- chunk57VDL5UC_js.__name(CommandList, "CommandList");
1091
+ chunk55345F7G_js.__name(CommandList, "CommandList");
1092
1092
  function CommandEmpty({ ...props }) {
1093
1093
  return /* @__PURE__ */ React26__namespace.createElement(cmdk.Command.Empty, {
1094
1094
  "data-slot": "command-empty",
@@ -1096,7 +1096,7 @@ function CommandEmpty({ ...props }) {
1096
1096
  ...props
1097
1097
  });
1098
1098
  }
1099
- chunk57VDL5UC_js.__name(CommandEmpty, "CommandEmpty");
1099
+ chunk55345F7G_js.__name(CommandEmpty, "CommandEmpty");
1100
1100
  function CommandGroup({ className, ...props }) {
1101
1101
  return /* @__PURE__ */ React26__namespace.createElement(cmdk.Command.Group, {
1102
1102
  "data-slot": "command-group",
@@ -1104,7 +1104,7 @@ function CommandGroup({ className, ...props }) {
1104
1104
  ...props
1105
1105
  });
1106
1106
  }
1107
- chunk57VDL5UC_js.__name(CommandGroup, "CommandGroup");
1107
+ chunk55345F7G_js.__name(CommandGroup, "CommandGroup");
1108
1108
  function CommandSeparator({ className, ...props }) {
1109
1109
  return /* @__PURE__ */ React26__namespace.createElement(cmdk.Command.Separator, {
1110
1110
  "data-slot": "command-separator",
@@ -1112,7 +1112,7 @@ function CommandSeparator({ className, ...props }) {
1112
1112
  ...props
1113
1113
  });
1114
1114
  }
1115
- chunk57VDL5UC_js.__name(CommandSeparator, "CommandSeparator");
1115
+ chunk55345F7G_js.__name(CommandSeparator, "CommandSeparator");
1116
1116
  function CommandItem({ className, ...props }) {
1117
1117
  return /* @__PURE__ */ React26__namespace.createElement(cmdk.Command.Item, {
1118
1118
  "data-slot": "command-item",
@@ -1120,7 +1120,7 @@ function CommandItem({ className, ...props }) {
1120
1120
  ...props
1121
1121
  });
1122
1122
  }
1123
- chunk57VDL5UC_js.__name(CommandItem, "CommandItem");
1123
+ chunk55345F7G_js.__name(CommandItem, "CommandItem");
1124
1124
  function CommandShortcut({ className, ...props }) {
1125
1125
  return /* @__PURE__ */ React26__namespace.createElement("span", {
1126
1126
  "data-slot": "command-shortcut",
@@ -1128,21 +1128,21 @@ function CommandShortcut({ className, ...props }) {
1128
1128
  ...props
1129
1129
  });
1130
1130
  }
1131
- chunk57VDL5UC_js.__name(CommandShortcut, "CommandShortcut");
1131
+ chunk55345F7G_js.__name(CommandShortcut, "CommandShortcut");
1132
1132
  function Popover({ ...props }) {
1133
1133
  return /* @__PURE__ */ React26__namespace.createElement(PopoverPrimitive__namespace.Root, {
1134
1134
  "data-slot": "popover",
1135
1135
  ...props
1136
1136
  });
1137
1137
  }
1138
- chunk57VDL5UC_js.__name(Popover, "Popover");
1138
+ chunk55345F7G_js.__name(Popover, "Popover");
1139
1139
  function PopoverTrigger({ ...props }) {
1140
1140
  return /* @__PURE__ */ React26__namespace.createElement(PopoverPrimitive__namespace.Trigger, {
1141
1141
  "data-slot": "popover-trigger",
1142
1142
  ...props
1143
1143
  });
1144
1144
  }
1145
- chunk57VDL5UC_js.__name(PopoverTrigger, "PopoverTrigger");
1145
+ chunk55345F7G_js.__name(PopoverTrigger, "PopoverTrigger");
1146
1146
  function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
1147
1147
  return /* @__PURE__ */ React26__namespace.createElement(PopoverPrimitive__namespace.Portal, null, /* @__PURE__ */ React26__namespace.createElement(PopoverPrimitive__namespace.Content, {
1148
1148
  "data-slot": "popover-content",
@@ -1152,14 +1152,14 @@ function PopoverContent({ className, align = "center", sideOffset = 4, ...props
1152
1152
  ...props
1153
1153
  }));
1154
1154
  }
1155
- chunk57VDL5UC_js.__name(PopoverContent, "PopoverContent");
1155
+ chunk55345F7G_js.__name(PopoverContent, "PopoverContent");
1156
1156
  function PopoverAnchor({ ...props }) {
1157
1157
  return /* @__PURE__ */ React26__namespace.createElement(PopoverPrimitive__namespace.Anchor, {
1158
1158
  "data-slot": "popover-anchor",
1159
1159
  ...props
1160
1160
  });
1161
1161
  }
1162
- chunk57VDL5UC_js.__name(PopoverAnchor, "PopoverAnchor");
1162
+ chunk55345F7G_js.__name(PopoverAnchor, "PopoverAnchor");
1163
1163
 
1164
1164
  // src/mcp/ToolInput.tsx
1165
1165
  function ToolInput({ searchTool, debounce = 300, minChars = 1, argName = "query", additionalArgs = {}, autocomplete = false, transformSuggestions, onSuggestionSelect, emptyMessage = "No results found", value: controlledValue, onChange, onSearchResults, onSearchError, showSearchIcon = true, showClearButton = true, showLoadingIndicator = true, className, placeholder = "Search...", disabled, ...props }) {
@@ -1176,7 +1176,7 @@ function ToolInput({ searchTool, debounce = 300, minChars = 1, argName = "query"
1176
1176
  ...toolConfig?.args,
1177
1177
  ...additionalArgs
1178
1178
  },
1179
- onSuccess: /* @__PURE__ */ chunk57VDL5UC_js.__name((result) => {
1179
+ onSuccess: /* @__PURE__ */ chunk55345F7G_js.__name((result) => {
1180
1180
  onSearchResults?.(result);
1181
1181
  if (autocomplete && transformSuggestions) {
1182
1182
  const suggestions2 = transformSuggestions(result);
@@ -1277,18 +1277,18 @@ function ToolInput({ searchTool, debounce = 300, minChars = 1, argName = "query"
1277
1277
  }, inputElement), /* @__PURE__ */ React26__namespace.createElement(PopoverContent, {
1278
1278
  className: "p-0 w-[var(--radix-popover-trigger-width)]",
1279
1279
  align: "start",
1280
- onOpenAutoFocus: /* @__PURE__ */ chunk57VDL5UC_js.__name((e) => e.preventDefault(), "onOpenAutoFocus")
1280
+ onOpenAutoFocus: /* @__PURE__ */ chunk55345F7G_js.__name((e) => e.preventDefault(), "onOpenAutoFocus")
1281
1281
  }, /* @__PURE__ */ React26__namespace.createElement(Command, null, /* @__PURE__ */ React26__namespace.createElement(CommandList, null, /* @__PURE__ */ React26__namespace.createElement(CommandEmpty, null, emptyMessage), /* @__PURE__ */ React26__namespace.createElement(CommandGroup, null, suggestions.map((suggestion) => /* @__PURE__ */ React26__namespace.createElement(CommandItem, {
1282
1282
  key: suggestion.value,
1283
1283
  value: suggestion.value,
1284
- onSelect: /* @__PURE__ */ chunk57VDL5UC_js.__name(() => handleSelect(suggestion), "onSelect")
1284
+ onSelect: /* @__PURE__ */ chunk55345F7G_js.__name(() => handleSelect(suggestion), "onSelect")
1285
1285
  }, /* @__PURE__ */ React26__namespace.createElement("div", {
1286
1286
  className: "flex items-center gap-2"
1287
1287
  }, suggestion.icon, /* @__PURE__ */ React26__namespace.createElement("div", null, /* @__PURE__ */ React26__namespace.createElement("div", null, suggestion.label), suggestion.description && /* @__PURE__ */ React26__namespace.createElement("div", {
1288
1288
  className: "text-xs text-muted-foreground"
1289
1289
  }, suggestion.description))))))))));
1290
1290
  }
1291
- chunk57VDL5UC_js.__name(ToolInput, "ToolInput");
1291
+ chunk55345F7G_js.__name(ToolInput, "ToolInput");
1292
1292
  function Label2({ className, ...props }) {
1293
1293
  return /* @__PURE__ */ React26__namespace.createElement(LabelPrimitive__namespace.Root, {
1294
1294
  "data-slot": "label",
@@ -1296,7 +1296,7 @@ function Label2({ className, ...props }) {
1296
1296
  ...props
1297
1297
  });
1298
1298
  }
1299
- chunk57VDL5UC_js.__name(Label2, "Label");
1299
+ chunk55345F7G_js.__name(Label2, "Label");
1300
1300
  function Textarea({ className, ...props }) {
1301
1301
  return /* @__PURE__ */ React26__namespace.createElement("textarea", {
1302
1302
  "data-slot": "textarea",
@@ -1304,7 +1304,7 @@ function Textarea({ className, ...props }) {
1304
1304
  ...props
1305
1305
  });
1306
1306
  }
1307
- chunk57VDL5UC_js.__name(Textarea, "Textarea");
1307
+ chunk55345F7G_js.__name(Textarea, "Textarea");
1308
1308
  function Checkbox({ className, ...props }) {
1309
1309
  return /* @__PURE__ */ React26__namespace.createElement(CheckboxPrimitive__namespace.Root, {
1310
1310
  "data-slot": "checkbox",
@@ -1317,7 +1317,7 @@ function Checkbox({ className, ...props }) {
1317
1317
  className: "size-3.5"
1318
1318
  })));
1319
1319
  }
1320
- chunk57VDL5UC_js.__name(Checkbox, "Checkbox");
1320
+ chunk55345F7G_js.__name(Checkbox, "Checkbox");
1321
1321
  function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
1322
1322
  const _values = React26__namespace.useMemo(() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [
1323
1323
  min,
@@ -1350,7 +1350,7 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
1350
1350
  className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
1351
1351
  })));
1352
1352
  }
1353
- chunk57VDL5UC_js.__name(Slider, "Slider");
1353
+ chunk55345F7G_js.__name(Slider, "Slider");
1354
1354
  function Switch({ className, ...props }) {
1355
1355
  return /* @__PURE__ */ React26__namespace.createElement(SwitchPrimitive__namespace.Root, {
1356
1356
  "data-slot": "switch",
@@ -1361,7 +1361,7 @@ function Switch({ className, ...props }) {
1361
1361
  className: cn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
1362
1362
  }));
1363
1363
  }
1364
- chunk57VDL5UC_js.__name(Switch, "Switch");
1364
+ chunk55345F7G_js.__name(Switch, "Switch");
1365
1365
  var alertVariants = classVarianceAuthority.cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
1366
1366
  variants: {
1367
1367
  variant: {
@@ -1383,7 +1383,7 @@ function Alert({ className, variant, ...props }) {
1383
1383
  ...props
1384
1384
  });
1385
1385
  }
1386
- chunk57VDL5UC_js.__name(Alert, "Alert");
1386
+ chunk55345F7G_js.__name(Alert, "Alert");
1387
1387
  function AlertTitle({ className, ...props }) {
1388
1388
  return /* @__PURE__ */ React26__namespace.createElement("div", {
1389
1389
  "data-slot": "alert-title",
@@ -1391,7 +1391,7 @@ function AlertTitle({ className, ...props }) {
1391
1391
  ...props
1392
1392
  });
1393
1393
  }
1394
- chunk57VDL5UC_js.__name(AlertTitle, "AlertTitle");
1394
+ chunk55345F7G_js.__name(AlertTitle, "AlertTitle");
1395
1395
  function AlertDescription({ className, ...props }) {
1396
1396
  return /* @__PURE__ */ React26__namespace.createElement("div", {
1397
1397
  "data-slot": "alert-description",
@@ -1399,11 +1399,11 @@ function AlertDescription({ className, ...props }) {
1399
1399
  ...props
1400
1400
  });
1401
1401
  }
1402
- chunk57VDL5UC_js.__name(AlertDescription, "AlertDescription");
1402
+ chunk55345F7G_js.__name(AlertDescription, "AlertDescription");
1403
1403
  function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitText = "Submit", loadingText, onSuccess, onError, showResult = false, showSuccessToast = false, successMessage, resetOnSuccess = false, className, layout = "vertical" }) {
1404
1404
  const { app, isConnected } = useMcpApp();
1405
1405
  const { call, loading, result, error, reset } = useTool(toolName, {
1406
- onSuccess: /* @__PURE__ */ chunk57VDL5UC_js.__name((result2) => {
1406
+ onSuccess: /* @__PURE__ */ chunk55345F7G_js.__name((result2) => {
1407
1407
  onSuccess?.(result2);
1408
1408
  if (showSuccessToast) {
1409
1409
  const message = typeof successMessage === "function" ? successMessage(result2) : successMessage ?? "Form submitted successfully";
@@ -1418,7 +1418,7 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1418
1418
  const [fields, setFields] = React26.useState(manualFields ?? []);
1419
1419
  const [schemaLoading, setSchemaLoading] = React26.useState(autoSchema);
1420
1420
  const [formData, setFormData] = React26.useState({});
1421
- const initializeFormData = /* @__PURE__ */ chunk57VDL5UC_js.__name((fields2) => {
1421
+ const initializeFormData = /* @__PURE__ */ chunk55345F7G_js.__name((fields2) => {
1422
1422
  const initial = {};
1423
1423
  fields2.forEach((field) => {
1424
1424
  if (field.defaultValue !== void 0) {
@@ -1433,14 +1433,14 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1433
1433
  });
1434
1434
  setFormData(initial);
1435
1435
  }, "initializeFormData");
1436
- const resetForm = /* @__PURE__ */ chunk57VDL5UC_js.__name(() => {
1436
+ const resetForm = /* @__PURE__ */ chunk55345F7G_js.__name(() => {
1437
1437
  initializeFormData(fields);
1438
1438
  reset();
1439
1439
  }, "resetForm");
1440
1440
  React26.useEffect(() => {
1441
1441
  if (autoSchema && app && isConnected) {
1442
1442
  setSchemaLoading(true);
1443
- const fetchSchema = /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
1443
+ const fetchSchema = /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
1444
1444
  try {
1445
1445
  console.warn("[ToolForm] Auto-schema not fully implemented, use manual fields");
1446
1446
  if (manualFields) {
@@ -1465,7 +1465,7 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1465
1465
  manualFields,
1466
1466
  toolName
1467
1467
  ]);
1468
- const handleSubmit = /* @__PURE__ */ chunk57VDL5UC_js.__name(async (e) => {
1468
+ const handleSubmit = /* @__PURE__ */ chunk55345F7G_js.__name(async (e) => {
1469
1469
  e.preventDefault();
1470
1470
  const args = {};
1471
1471
  fields.forEach((field) => {
@@ -1477,13 +1477,13 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1477
1477
  });
1478
1478
  await call(args);
1479
1479
  }, "handleSubmit");
1480
- const handleChange = /* @__PURE__ */ chunk57VDL5UC_js.__name((name, value) => {
1480
+ const handleChange = /* @__PURE__ */ chunk55345F7G_js.__name((name, value) => {
1481
1481
  setFormData((prev) => ({
1482
1482
  ...prev,
1483
1483
  [name]: value
1484
1484
  }));
1485
1485
  }, "handleChange");
1486
- const renderField = /* @__PURE__ */ chunk57VDL5UC_js.__name((field) => {
1486
+ const renderField = /* @__PURE__ */ chunk55345F7G_js.__name((field) => {
1487
1487
  const value = formData[field.name];
1488
1488
  switch (field.type) {
1489
1489
  case "textarea":
@@ -1491,14 +1491,14 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1491
1491
  id: field.name,
1492
1492
  placeholder: field.placeholder,
1493
1493
  value: value ?? "",
1494
- onChange: /* @__PURE__ */ chunk57VDL5UC_js.__name((e) => handleChange(field.name, e.target.value), "onChange"),
1494
+ onChange: /* @__PURE__ */ chunk55345F7G_js.__name((e) => handleChange(field.name, e.target.value), "onChange"),
1495
1495
  disabled: field.disabled || loading,
1496
1496
  required: field.required
1497
1497
  });
1498
1498
  case "select":
1499
1499
  return /* @__PURE__ */ React26__namespace.createElement(Select, {
1500
1500
  value: value ?? "",
1501
- onValueChange: /* @__PURE__ */ chunk57VDL5UC_js.__name((v) => handleChange(field.name, v), "onValueChange"),
1501
+ onValueChange: /* @__PURE__ */ chunk55345F7G_js.__name((v) => handleChange(field.name, v), "onValueChange"),
1502
1502
  disabled: field.disabled || loading
1503
1503
  }, /* @__PURE__ */ React26__namespace.createElement(SelectTrigger, null, /* @__PURE__ */ React26__namespace.createElement(SelectValue, {
1504
1504
  placeholder: field.placeholder ?? "Select..."
@@ -1512,7 +1512,7 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1512
1512
  }, /* @__PURE__ */ React26__namespace.createElement(Checkbox, {
1513
1513
  id: field.name,
1514
1514
  checked: value ?? false,
1515
- onCheckedChange: /* @__PURE__ */ chunk57VDL5UC_js.__name((checked) => handleChange(field.name, checked), "onCheckedChange"),
1515
+ onCheckedChange: /* @__PURE__ */ chunk55345F7G_js.__name((checked) => handleChange(field.name, checked), "onCheckedChange"),
1516
1516
  disabled: field.disabled || loading
1517
1517
  }), /* @__PURE__ */ React26__namespace.createElement("label", {
1518
1518
  htmlFor: field.name,
@@ -1524,7 +1524,7 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1524
1524
  }, /* @__PURE__ */ React26__namespace.createElement(Switch, {
1525
1525
  id: field.name,
1526
1526
  checked: value ?? false,
1527
- onCheckedChange: /* @__PURE__ */ chunk57VDL5UC_js.__name((checked) => handleChange(field.name, checked), "onCheckedChange"),
1527
+ onCheckedChange: /* @__PURE__ */ chunk55345F7G_js.__name((checked) => handleChange(field.name, checked), "onCheckedChange"),
1528
1528
  disabled: field.disabled || loading
1529
1529
  }), /* @__PURE__ */ React26__namespace.createElement(Label2, {
1530
1530
  htmlFor: field.name
@@ -1538,7 +1538,7 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1538
1538
  value: [
1539
1539
  value ?? field.min ?? 0
1540
1540
  ],
1541
- onValueChange: /* @__PURE__ */ chunk57VDL5UC_js.__name(([v]) => handleChange(field.name, v), "onValueChange"),
1541
+ onValueChange: /* @__PURE__ */ chunk55345F7G_js.__name(([v]) => handleChange(field.name, v), "onValueChange"),
1542
1542
  min: field.min ?? 0,
1543
1543
  max: field.max ?? 100,
1544
1544
  step: field.step ?? 1,
@@ -1550,7 +1550,7 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1550
1550
  type: "number",
1551
1551
  placeholder: field.placeholder,
1552
1552
  value: value ?? "",
1553
- onChange: /* @__PURE__ */ chunk57VDL5UC_js.__name((e) => handleChange(field.name, e.target.value), "onChange"),
1553
+ onChange: /* @__PURE__ */ chunk55345F7G_js.__name((e) => handleChange(field.name, e.target.value), "onChange"),
1554
1554
  min: field.min,
1555
1555
  max: field.max,
1556
1556
  step: field.step,
@@ -1563,7 +1563,7 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1563
1563
  type: field.type ?? "text",
1564
1564
  placeholder: field.placeholder,
1565
1565
  value: value ?? "",
1566
- onChange: /* @__PURE__ */ chunk57VDL5UC_js.__name((e) => handleChange(field.name, e.target.value), "onChange"),
1566
+ onChange: /* @__PURE__ */ chunk55345F7G_js.__name((e) => handleChange(field.name, e.target.value), "onChange"),
1567
1567
  disabled: field.disabled || loading,
1568
1568
  required: field.required
1569
1569
  });
@@ -1605,7 +1605,7 @@ function ToolForm({ toolName, fields: manualFields, autoSchema = false, submitTe
1605
1605
  className: "text-sm overflow-auto"
1606
1606
  }, JSON.stringify(result, null, 2))));
1607
1607
  }
1608
- chunk57VDL5UC_js.__name(ToolForm, "ToolForm");
1608
+ chunk55345F7G_js.__name(ToolForm, "ToolForm");
1609
1609
  function useResource(uri, options = {}) {
1610
1610
  const { app, isConnected } = useMcpApp();
1611
1611
  const { refreshInterval, subscribe = false, transform, skip = false } = options;
@@ -1726,7 +1726,7 @@ function useResource(uri, options = {}) {
1726
1726
  lastUpdated
1727
1727
  };
1728
1728
  }
1729
- chunk57VDL5UC_js.__name(useResource, "useResource");
1729
+ chunk55345F7G_js.__name(useResource, "useResource");
1730
1730
  function Skeleton({ className, ...props }) {
1731
1731
  return /* @__PURE__ */ React26__namespace.default.createElement("div", {
1732
1732
  "data-slot": "skeleton",
@@ -1734,7 +1734,7 @@ function Skeleton({ className, ...props }) {
1734
1734
  ...props
1735
1735
  });
1736
1736
  }
1737
- chunk57VDL5UC_js.__name(Skeleton, "Skeleton");
1737
+ chunk55345F7G_js.__name(Skeleton, "Skeleton");
1738
1738
 
1739
1739
  // src/mcp/ResourceView.tsx
1740
1740
  function DefaultLoading() {
@@ -1748,7 +1748,7 @@ function DefaultLoading() {
1748
1748
  className: "h-20 w-full"
1749
1749
  }));
1750
1750
  }
1751
- chunk57VDL5UC_js.__name(DefaultLoading, "DefaultLoading");
1751
+ chunk55345F7G_js.__name(DefaultLoading, "DefaultLoading");
1752
1752
  function DefaultError({ error, onRetry }) {
1753
1753
  return /* @__PURE__ */ React26__namespace.createElement(Alert, {
1754
1754
  variant: "destructive"
@@ -1765,7 +1765,7 @@ function DefaultError({ error, onRetry }) {
1765
1765
  className: "h-4 w-4 mr-2"
1766
1766
  }), "Retry")));
1767
1767
  }
1768
- chunk57VDL5UC_js.__name(DefaultError, "DefaultError");
1768
+ chunk55345F7G_js.__name(DefaultError, "DefaultError");
1769
1769
  function ResourceView({ uri, refreshInterval, subscribe, transform, loading: loadingContent, error: errorContent, children, className, skip = false }) {
1770
1770
  const { data, loading, error, refresh, lastUpdated } = useResource(uri, {
1771
1771
  refreshInterval,
@@ -1818,7 +1818,7 @@ function ResourceView({ uri, refreshInterval, subscribe, transform, loading: loa
1818
1818
  className
1819
1819
  }, loadingContent ?? /* @__PURE__ */ React26__namespace.createElement(DefaultLoading, null));
1820
1820
  }
1821
- chunk57VDL5UC_js.__name(ResourceView, "ResourceView");
1821
+ chunk55345F7G_js.__name(ResourceView, "ResourceView");
1822
1822
  function useToolStream(options = {}) {
1823
1823
  const { toolInputPartial, toolInput, toolResult } = useMcpApp();
1824
1824
  const { onPartial, onComplete } = options;
@@ -1863,7 +1863,7 @@ function useToolStream(options = {}) {
1863
1863
  isComplete
1864
1864
  };
1865
1865
  }
1866
- chunk57VDL5UC_js.__name(useToolStream, "useToolStream");
1866
+ chunk55345F7G_js.__name(useToolStream, "useToolStream");
1867
1867
  function Progress({ className, value, ...props }) {
1868
1868
  return /* @__PURE__ */ React26__namespace.createElement(ProgressPrimitive__namespace.Root, {
1869
1869
  "data-slot": "progress",
@@ -1877,7 +1877,7 @@ function Progress({ className, value, ...props }) {
1877
1877
  }
1878
1878
  }));
1879
1879
  }
1880
- chunk57VDL5UC_js.__name(Progress, "Progress");
1880
+ chunk55345F7G_js.__name(Progress, "Progress");
1881
1881
 
1882
1882
  // src/mcp/StreamingContent.tsx
1883
1883
  function StreamingContent({ fallback, showProgress = false, progress: externalProgress, onPartial, onComplete, children, className, streamingStyle = "opacity" }) {
@@ -1920,7 +1920,7 @@ function StreamingContent({ fallback, showProgress = false, progress: externalPr
1920
1920
  className: cn("transition-all duration-200", streamingClasses)
1921
1921
  }, children(data, isComplete)));
1922
1922
  }
1923
- chunk57VDL5UC_js.__name(StreamingContent, "StreamingContent");
1923
+ chunk55345F7G_js.__name(StreamingContent, "StreamingContent");
1924
1924
  function Table({ className, ...props }) {
1925
1925
  return /* @__PURE__ */ React26__namespace.createElement("div", {
1926
1926
  "data-slot": "table-container",
@@ -1931,7 +1931,7 @@ function Table({ className, ...props }) {
1931
1931
  ...props
1932
1932
  }));
1933
1933
  }
1934
- chunk57VDL5UC_js.__name(Table, "Table");
1934
+ chunk55345F7G_js.__name(Table, "Table");
1935
1935
  function TableHeader({ className, ...props }) {
1936
1936
  return /* @__PURE__ */ React26__namespace.createElement("thead", {
1937
1937
  "data-slot": "table-header",
@@ -1939,7 +1939,7 @@ function TableHeader({ className, ...props }) {
1939
1939
  ...props
1940
1940
  });
1941
1941
  }
1942
- chunk57VDL5UC_js.__name(TableHeader, "TableHeader");
1942
+ chunk55345F7G_js.__name(TableHeader, "TableHeader");
1943
1943
  function TableBody({ className, ...props }) {
1944
1944
  return /* @__PURE__ */ React26__namespace.createElement("tbody", {
1945
1945
  "data-slot": "table-body",
@@ -1947,7 +1947,7 @@ function TableBody({ className, ...props }) {
1947
1947
  ...props
1948
1948
  });
1949
1949
  }
1950
- chunk57VDL5UC_js.__name(TableBody, "TableBody");
1950
+ chunk55345F7G_js.__name(TableBody, "TableBody");
1951
1951
  function TableFooter({ className, ...props }) {
1952
1952
  return /* @__PURE__ */ React26__namespace.createElement("tfoot", {
1953
1953
  "data-slot": "table-footer",
@@ -1955,7 +1955,7 @@ function TableFooter({ className, ...props }) {
1955
1955
  ...props
1956
1956
  });
1957
1957
  }
1958
- chunk57VDL5UC_js.__name(TableFooter, "TableFooter");
1958
+ chunk55345F7G_js.__name(TableFooter, "TableFooter");
1959
1959
  function TableRow({ className, ...props }) {
1960
1960
  return /* @__PURE__ */ React26__namespace.createElement("tr", {
1961
1961
  "data-slot": "table-row",
@@ -1963,7 +1963,7 @@ function TableRow({ className, ...props }) {
1963
1963
  ...props
1964
1964
  });
1965
1965
  }
1966
- chunk57VDL5UC_js.__name(TableRow, "TableRow");
1966
+ chunk55345F7G_js.__name(TableRow, "TableRow");
1967
1967
  function TableHead({ className, ...props }) {
1968
1968
  return /* @__PURE__ */ React26__namespace.createElement("th", {
1969
1969
  "data-slot": "table-head",
@@ -1971,7 +1971,7 @@ function TableHead({ className, ...props }) {
1971
1971
  ...props
1972
1972
  });
1973
1973
  }
1974
- chunk57VDL5UC_js.__name(TableHead, "TableHead");
1974
+ chunk55345F7G_js.__name(TableHead, "TableHead");
1975
1975
  function TableCell({ className, ...props }) {
1976
1976
  return /* @__PURE__ */ React26__namespace.createElement("td", {
1977
1977
  "data-slot": "table-cell",
@@ -1979,7 +1979,7 @@ function TableCell({ className, ...props }) {
1979
1979
  ...props
1980
1980
  });
1981
1981
  }
1982
- chunk57VDL5UC_js.__name(TableCell, "TableCell");
1982
+ chunk55345F7G_js.__name(TableCell, "TableCell");
1983
1983
  function TableCaption({ className, ...props }) {
1984
1984
  return /* @__PURE__ */ React26__namespace.createElement("caption", {
1985
1985
  "data-slot": "table-caption",
@@ -1987,7 +1987,7 @@ function TableCaption({ className, ...props }) {
1987
1987
  ...props
1988
1988
  });
1989
1989
  }
1990
- chunk57VDL5UC_js.__name(TableCaption, "TableCaption");
1990
+ chunk55345F7G_js.__name(TableCaption, "TableCaption");
1991
1991
  function getNestedValue(obj, path) {
1992
1992
  return path.split(".").reduce((current, key) => {
1993
1993
  if (current && typeof current === "object" && key in current) {
@@ -1996,7 +1996,7 @@ function getNestedValue(obj, path) {
1996
1996
  return void 0;
1997
1997
  }, obj);
1998
1998
  }
1999
- chunk57VDL5UC_js.__name(getNestedValue, "getNestedValue");
1999
+ chunk55345F7G_js.__name(getNestedValue, "getNestedValue");
2000
2000
  function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagination = true, pageSizes = [
2001
2001
  10,
2002
2002
  25,
@@ -2023,7 +2023,7 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2023
2023
  });
2024
2024
  const { call, loading, error } = useTool(toolConfig.name, {
2025
2025
  defaultArgs: toolConfig.args,
2026
- onSuccess: /* @__PURE__ */ chunk57VDL5UC_js.__name((result) => {
2026
+ onSuccess: /* @__PURE__ */ chunk55345F7G_js.__name((result) => {
2027
2027
  const gridData = transformData ? transformData(result) : result;
2028
2028
  setData(gridData);
2029
2029
  onDataLoaded?.(gridData);
@@ -2105,7 +2105,7 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2105
2105
  const totalPages = Math.ceil(data.total / paginationState.pageSize);
2106
2106
  const canPreviousPage = paginationState.page > 1;
2107
2107
  const canNextPage = paginationState.page < totalPages;
2108
- const getSortIcon = /* @__PURE__ */ chunk57VDL5UC_js.__name((column) => {
2108
+ const getSortIcon = /* @__PURE__ */ chunk55345F7G_js.__name((column) => {
2109
2109
  if (sortState.column !== column) {
2110
2110
  return /* @__PURE__ */ React26__namespace.createElement(lucideReact.ArrowUpDown, {
2111
2111
  className: "h-4 w-4"
@@ -2117,7 +2117,7 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2117
2117
  className: "h-4 w-4"
2118
2118
  });
2119
2119
  }, "getSortIcon");
2120
- const renderLoading = /* @__PURE__ */ chunk57VDL5UC_js.__name(() => {
2120
+ const renderLoading = /* @__PURE__ */ chunk55345F7G_js.__name(() => {
2121
2121
  if (loadingContent) return loadingContent;
2122
2122
  return /* @__PURE__ */ React26__namespace.createElement("div", {
2123
2123
  className: "space-y-2"
@@ -2128,7 +2128,7 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2128
2128
  className: "h-12 w-full"
2129
2129
  })));
2130
2130
  }, "renderLoading");
2131
- const renderEmpty = /* @__PURE__ */ chunk57VDL5UC_js.__name(() => {
2131
+ const renderEmpty = /* @__PURE__ */ chunk55345F7G_js.__name(() => {
2132
2132
  if (emptyContent) return emptyContent;
2133
2133
  return /* @__PURE__ */ React26__namespace.createElement("div", {
2134
2134
  className: "flex flex-col items-center justify-center py-12 text-muted-foreground"
@@ -2171,7 +2171,7 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2171
2171
  }, column.sortable ? /* @__PURE__ */ React26__namespace.createElement(Button, {
2172
2172
  variant: "ghost",
2173
2173
  size: "sm",
2174
- onClick: /* @__PURE__ */ chunk57VDL5UC_js.__name(() => handleSort(column.key), "onClick"),
2174
+ onClick: /* @__PURE__ */ chunk55345F7G_js.__name(() => handleSort(column.key), "onClick"),
2175
2175
  className: "-ml-3"
2176
2176
  }, column.header, getSortIcon(column.key)) : column.header)), rowActions.length > 0 && /* @__PURE__ */ React26__namespace.createElement(TableHead, {
2177
2177
  className: "w-[100px]"
@@ -2179,7 +2179,7 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2179
2179
  const key = getRowKey?.(row, index) ?? String(index);
2180
2180
  return /* @__PURE__ */ React26__namespace.createElement(TableRow, {
2181
2181
  key,
2182
- onClick: /* @__PURE__ */ chunk57VDL5UC_js.__name(() => onRowClick?.(row, index), "onClick"),
2182
+ onClick: /* @__PURE__ */ chunk55345F7G_js.__name(() => onRowClick?.(row, index), "onClick"),
2183
2183
  className: onRowClick ? "cursor-pointer" : void 0
2184
2184
  }, columns.map((column) => {
2185
2185
  const value = getNestedValue(row, column.key);
@@ -2199,7 +2199,7 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2199
2199
  className: "flex items-center justify-between"
2200
2200
  }, /* @__PURE__ */ React26__namespace.createElement("div", {
2201
2201
  className: "text-sm text-muted-foreground"
2202
- }, "Showing ", (paginationState.page - 1) * paginationState.pageSize + 1, " to", " ", Math.min(paginationState.page * paginationState.pageSize, data.total), " of", " ", data.total, " results"), /* @__PURE__ */ React26__namespace.createElement("div", {
2202
+ }, "Showing ", (paginationState.page - 1) * paginationState.pageSize + 1, " to", " ", Math.min(paginationState.page * paginationState.pageSize, data.total), " of ", data.total, " ", "results"), /* @__PURE__ */ React26__namespace.createElement("div", {
2203
2203
  className: "flex items-center gap-4"
2204
2204
  }, /* @__PURE__ */ React26__namespace.createElement("div", {
2205
2205
  className: "flex items-center gap-2"
@@ -2218,7 +2218,7 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2218
2218
  }, /* @__PURE__ */ React26__namespace.createElement(Button, {
2219
2219
  variant: "outline",
2220
2220
  size: "sm",
2221
- onClick: /* @__PURE__ */ chunk57VDL5UC_js.__name(() => handlePageChange(paginationState.page - 1), "onClick"),
2221
+ onClick: /* @__PURE__ */ chunk55345F7G_js.__name(() => handlePageChange(paginationState.page - 1), "onClick"),
2222
2222
  disabled: !canPreviousPage || loading
2223
2223
  }, /* @__PURE__ */ React26__namespace.createElement(lucideReact.ChevronLeft, {
2224
2224
  className: "h-4 w-4"
@@ -2227,13 +2227,13 @@ function ToolDataGrid({ dataTool, columns, transformData, rowActions = [], pagin
2227
2227
  }, "Page ", paginationState.page, " of ", totalPages), /* @__PURE__ */ React26__namespace.createElement(Button, {
2228
2228
  variant: "outline",
2229
2229
  size: "sm",
2230
- onClick: /* @__PURE__ */ chunk57VDL5UC_js.__name(() => handlePageChange(paginationState.page + 1), "onClick"),
2230
+ onClick: /* @__PURE__ */ chunk55345F7G_js.__name(() => handlePageChange(paginationState.page + 1), "onClick"),
2231
2231
  disabled: !canNextPage || loading
2232
2232
  }, /* @__PURE__ */ React26__namespace.createElement(lucideReact.ChevronRight, {
2233
2233
  className: "h-4 w-4"
2234
2234
  }))))));
2235
2235
  }
2236
- chunk57VDL5UC_js.__name(ToolDataGrid, "ToolDataGrid");
2236
+ chunk55345F7G_js.__name(ToolDataGrid, "ToolDataGrid");
2237
2237
  function RowActionButton({ action, row, onRefresh }) {
2238
2238
  if (!action.tool) {
2239
2239
  throw new Error("ToolDataGrid: rowAction.tool is required");
@@ -2245,12 +2245,12 @@ function RowActionButton({ action, row, onRefresh }) {
2245
2245
  id: row.id
2246
2246
  };
2247
2247
  const { call, loading } = useTool(toolConfig.name, {
2248
- onSuccess: /* @__PURE__ */ chunk57VDL5UC_js.__name((result) => {
2248
+ onSuccess: /* @__PURE__ */ chunk55345F7G_js.__name((result) => {
2249
2249
  action.onSuccess?.(result, row);
2250
2250
  sonner.toast.success("Action completed");
2251
2251
  onRefresh();
2252
2252
  }, "onSuccess"),
2253
- onError: /* @__PURE__ */ chunk57VDL5UC_js.__name((error) => {
2253
+ onError: /* @__PURE__ */ chunk55345F7G_js.__name((error) => {
2254
2254
  sonner.toast.error(error.message);
2255
2255
  }, "onError")
2256
2256
  });
@@ -2272,7 +2272,7 @@ function RowActionButton({ action, row, onRefresh }) {
2272
2272
  className: action.icon ? "ml-1" : ""
2273
2273
  }, action.label)));
2274
2274
  }
2275
- chunk57VDL5UC_js.__name(RowActionButton, "RowActionButton");
2275
+ chunk55345F7G_js.__name(RowActionButton, "RowActionButton");
2276
2276
  var Button2 = /* @__PURE__ */ React26.forwardRef(({ className, variant = "primary", size = "md", loading = false, disabled, asChild = false, leftIcon, rightIcon, children, ...props }, ref) => {
2277
2277
  const Comp = asChild ? reactSlot.Slot : "button";
2278
2278
  return /* @__PURE__ */ React26__namespace.default.createElement(Comp, {
@@ -2310,7 +2310,7 @@ Button2.displayName = "Button";
2310
2310
  function ActionButton({ toolName, toolArgs = {}, onToolSuccess, onToolError, showResult = false, renderResult, children, ...buttonProps }) {
2311
2311
  const { call, loading, result, error } = useTool(toolName);
2312
2312
  const [hasResult, setHasResult] = React26.useState(false);
2313
- const handleClick = /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
2313
+ const handleClick = /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
2314
2314
  try {
2315
2315
  const res = await call(toolArgs);
2316
2316
  setHasResult(true);
@@ -2331,7 +2331,7 @@ function ActionButton({ toolName, toolArgs = {}, onToolSuccess, onToolError, sho
2331
2331
  className: "lui-action-button-error"
2332
2332
  }, error.message));
2333
2333
  }
2334
- chunk57VDL5UC_js.__name(ActionButton, "ActionButton");
2334
+ chunk55345F7G_js.__name(ActionButton, "ActionButton");
2335
2335
  function DefaultLoading2() {
2336
2336
  return /* @__PURE__ */ React26__namespace.createElement("div", {
2337
2337
  className: "flex items-center justify-center p-8"
@@ -2339,13 +2339,13 @@ function DefaultLoading2() {
2339
2339
  className: "h-6 w-6 animate-spin text-muted-foreground"
2340
2340
  }));
2341
2341
  }
2342
- chunk57VDL5UC_js.__name(DefaultLoading2, "DefaultLoading");
2342
+ chunk55345F7G_js.__name(DefaultLoading2, "DefaultLoading");
2343
2343
  function DefaultDisconnected() {
2344
2344
  return /* @__PURE__ */ React26__namespace.createElement(Alert, null, /* @__PURE__ */ React26__namespace.createElement(lucideReact.WifiOff, {
2345
2345
  className: "h-4 w-4"
2346
2346
  }), /* @__PURE__ */ React26__namespace.createElement(AlertDescription, null, "Waiting for connection to MCP host..."));
2347
2347
  }
2348
- chunk57VDL5UC_js.__name(DefaultDisconnected, "DefaultDisconnected");
2348
+ chunk55345F7G_js.__name(DefaultDisconnected, "DefaultDisconnected");
2349
2349
  function DefaultError2({ error }) {
2350
2350
  return /* @__PURE__ */ React26__namespace.createElement(Alert, {
2351
2351
  variant: "destructive"
@@ -2353,7 +2353,7 @@ function DefaultError2({ error }) {
2353
2353
  className: "h-4 w-4"
2354
2354
  }), /* @__PURE__ */ React26__namespace.createElement(AlertDescription, null, "Connection error: ", error.message));
2355
2355
  }
2356
- chunk57VDL5UC_js.__name(DefaultError2, "DefaultError");
2356
+ chunk55345F7G_js.__name(DefaultError2, "DefaultError");
2357
2357
  function RequireConnection({ loading: loadingContent, error: errorContent, disconnected: disconnectedContent, children, className }) {
2358
2358
  const { isConnected, error, app } = useMcpApp();
2359
2359
  console.log("[RequireConnection] State:", {
@@ -2409,7 +2409,7 @@ function RequireConnection({ loading: loadingContent, error: errorContent, disco
2409
2409
  console.log("[RequireConnection] Rendering: Children (Connected)");
2410
2410
  return /* @__PURE__ */ React26__namespace.createElement(React26__namespace.Fragment, null, children);
2411
2411
  }
2412
- chunk57VDL5UC_js.__name(RequireConnection, "RequireConnection");
2412
+ chunk55345F7G_js.__name(RequireConnection, "RequireConnection");
2413
2413
  function DefaultFallback({ error, onRetry }) {
2414
2414
  return /* @__PURE__ */ React26__namespace.createElement(Alert, {
2415
2415
  variant: "destructive"
@@ -2428,10 +2428,10 @@ function DefaultFallback({ error, onRetry }) {
2428
2428
  className: "h-4 w-4 mr-2"
2429
2429
  }), "Try Again")));
2430
2430
  }
2431
- chunk57VDL5UC_js.__name(DefaultFallback, "DefaultFallback");
2431
+ chunk55345F7G_js.__name(DefaultFallback, "DefaultFallback");
2432
2432
  var ToolErrorBoundary = class extends React26.Component {
2433
2433
  static {
2434
- chunk57VDL5UC_js.__name(this, "ToolErrorBoundary");
2434
+ chunk55345F7G_js.__name(this, "ToolErrorBoundary");
2435
2435
  }
2436
2436
  constructor(props) {
2437
2437
  super(props);
@@ -2454,7 +2454,7 @@ var ToolErrorBoundary = class extends React26.Component {
2454
2454
  this.reset();
2455
2455
  }
2456
2456
  }
2457
- reset = /* @__PURE__ */ chunk57VDL5UC_js.__name(() => {
2457
+ reset = /* @__PURE__ */ chunk55345F7G_js.__name(() => {
2458
2458
  this.setState({
2459
2459
  hasError: false,
2460
2460
  error: null
@@ -2540,7 +2540,7 @@ function useMessage() {
2540
2540
  error
2541
2541
  };
2542
2542
  }
2543
- chunk57VDL5UC_js.__name(useMessage, "useMessage");
2543
+ chunk55345F7G_js.__name(useMessage, "useMessage");
2544
2544
 
2545
2545
  // src/mcp/useHostContext.ts
2546
2546
  function useHostContext() {
@@ -2560,7 +2560,7 @@ function useHostContext() {
2560
2560
  rawContext: hostContext
2561
2561
  };
2562
2562
  }
2563
- chunk57VDL5UC_js.__name(useHostContext, "useHostContext");
2563
+ chunk55345F7G_js.__name(useHostContext, "useHostContext");
2564
2564
 
2565
2565
  // src/mcp/useToolResult.ts
2566
2566
  function useToolResult() {
@@ -2589,7 +2589,7 @@ function useToolResult() {
2589
2589
  textContent
2590
2590
  };
2591
2591
  }
2592
- chunk57VDL5UC_js.__name(useToolResult, "useToolResult");
2592
+ chunk55345F7G_js.__name(useToolResult, "useToolResult");
2593
2593
 
2594
2594
  // src/mcp/useToolInput.ts
2595
2595
  function useToolInput() {
@@ -2599,7 +2599,7 @@ function useToolInput() {
2599
2599
  hasInput: toolInput !== null
2600
2600
  };
2601
2601
  }
2602
- chunk57VDL5UC_js.__name(useToolInput, "useToolInput");
2602
+ chunk55345F7G_js.__name(useToolInput, "useToolInput");
2603
2603
 
2604
2604
  // src/mcp/useToolInputPartial.ts
2605
2605
  function useToolInputPartial() {
@@ -2609,7 +2609,7 @@ function useToolInputPartial() {
2609
2609
  isStreaming: toolInputPartial !== null
2610
2610
  };
2611
2611
  }
2612
- chunk57VDL5UC_js.__name(useToolInputPartial, "useToolInputPartial");
2612
+ chunk55345F7G_js.__name(useToolInputPartial, "useToolInputPartial");
2613
2613
  function useToolSubscription(toolName, options = {}) {
2614
2614
  const { interval = 1e4, enabled = true, args = {} } = options;
2615
2615
  const toolHook = useTool(toolName);
@@ -2665,7 +2665,7 @@ function useToolSubscription(toolName, options = {}) {
2665
2665
  refresh
2666
2666
  };
2667
2667
  }
2668
- chunk57VDL5UC_js.__name(useToolSubscription, "useToolSubscription");
2668
+ chunk55345F7G_js.__name(useToolSubscription, "useToolSubscription");
2669
2669
  function useAuth() {
2670
2670
  const { callTool, isConnected } = useGptApp();
2671
2671
  const [isAuthenticated, setIsAuthenticated] = React26.useState(false);
@@ -2740,11 +2740,11 @@ function useAuth() {
2740
2740
  clearAuth
2741
2741
  };
2742
2742
  }
2743
- chunk57VDL5UC_js.__name(useAuth, "useAuth");
2743
+ chunk55345F7G_js.__name(useAuth, "useAuth");
2744
2744
  var SET_GLOBALS_EVENT_TYPE = "openai:set_globals";
2745
2745
  function useOpenAiGlobal(key) {
2746
2746
  return React26.useSyncExternalStore((onChange) => {
2747
- const handleSetGlobal = /* @__PURE__ */ chunk57VDL5UC_js.__name((event) => {
2747
+ const handleSetGlobal = /* @__PURE__ */ chunk55345F7G_js.__name((event) => {
2748
2748
  const customEvent = event;
2749
2749
  const value = customEvent.detail?.globals?.[key];
2750
2750
  if (value !== void 0) {
@@ -2759,21 +2759,21 @@ function useOpenAiGlobal(key) {
2759
2759
  };
2760
2760
  }, () => window.openai?.[key]);
2761
2761
  }
2762
- chunk57VDL5UC_js.__name(useOpenAiGlobal, "useOpenAiGlobal");
2762
+ chunk55345F7G_js.__name(useOpenAiGlobal, "useOpenAiGlobal");
2763
2763
 
2764
2764
  // src/mcp/useToolData.ts
2765
2765
  function useToolOutput() {
2766
2766
  return useOpenAiGlobal("toolOutput");
2767
2767
  }
2768
- chunk57VDL5UC_js.__name(useToolOutput, "useToolOutput");
2768
+ chunk55345F7G_js.__name(useToolOutput, "useToolOutput");
2769
2769
  function useToolResponseMetadata() {
2770
2770
  return useOpenAiGlobal("toolResponseMetadata");
2771
2771
  }
2772
- chunk57VDL5UC_js.__name(useToolResponseMetadata, "useToolResponseMetadata");
2772
+ chunk55345F7G_js.__name(useToolResponseMetadata, "useToolResponseMetadata");
2773
2773
  function useToolInput2() {
2774
2774
  return useOpenAiGlobal("toolInput");
2775
2775
  }
2776
- chunk57VDL5UC_js.__name(useToolInput2, "useToolInput");
2776
+ chunk55345F7G_js.__name(useToolInput2, "useToolInput");
2777
2777
  function useWidgetState(initialState) {
2778
2778
  const rawState = useOpenAiGlobal("widgetState");
2779
2779
  const resolvedInitial = rawState ?? (typeof initialState === "function" ? initialState() : initialState);
@@ -2793,7 +2793,7 @@ function useWidgetState(initialState) {
2793
2793
  setWidgetState
2794
2794
  ];
2795
2795
  }
2796
- chunk57VDL5UC_js.__name(useWidgetState, "useWidgetState");
2796
+ chunk55345F7G_js.__name(useWidgetState, "useWidgetState");
2797
2797
 
2798
2798
  // src/types/mcp-types.ts
2799
2799
  function normalizeToolBinding(tool) {
@@ -2804,7 +2804,7 @@ function normalizeToolBinding(tool) {
2804
2804
  }
2805
2805
  return tool;
2806
2806
  }
2807
- chunk57VDL5UC_js.__name(normalizeToolBinding, "normalizeToolBinding");
2807
+ chunk55345F7G_js.__name(normalizeToolBinding, "normalizeToolBinding");
2808
2808
  var DEFAULT_RESULT_CONFIG = {
2809
2809
  display: "none",
2810
2810
  autoDismiss: 5e3
@@ -2823,7 +2823,7 @@ function CardTitle({ className, ...props }) {
2823
2823
  ...props
2824
2824
  });
2825
2825
  }
2826
- chunk57VDL5UC_js.__name(CardTitle, "CardTitle");
2826
+ chunk55345F7G_js.__name(CardTitle, "CardTitle");
2827
2827
  function CardDescription({ className, ...props }) {
2828
2828
  return /* @__PURE__ */ React26__namespace.createElement("div", {
2829
2829
  "data-slot": "card-description",
@@ -2831,17 +2831,17 @@ function CardDescription({ className, ...props }) {
2831
2831
  ...props
2832
2832
  });
2833
2833
  }
2834
- chunk57VDL5UC_js.__name(CardDescription, "CardDescription");
2834
+ chunk55345F7G_js.__name(CardDescription, "CardDescription");
2835
2835
  var Form = reactHookForm.FormProvider;
2836
2836
  var FormFieldContext = /* @__PURE__ */ React26__namespace.createContext({});
2837
- var FormField = /* @__PURE__ */ chunk57VDL5UC_js.__name(({ ...props }) => {
2837
+ var FormField = /* @__PURE__ */ chunk55345F7G_js.__name(({ ...props }) => {
2838
2838
  return /* @__PURE__ */ React26__namespace.createElement(FormFieldContext.Provider, {
2839
2839
  value: {
2840
2840
  name: props.name
2841
2841
  }
2842
2842
  }, /* @__PURE__ */ React26__namespace.createElement(reactHookForm.Controller, props));
2843
2843
  }, "FormField");
2844
- var useFormField = /* @__PURE__ */ chunk57VDL5UC_js.__name(() => {
2844
+ var useFormField = /* @__PURE__ */ chunk55345F7G_js.__name(() => {
2845
2845
  const fieldContext = React26__namespace.useContext(FormFieldContext);
2846
2846
  const itemContext = React26__namespace.useContext(FormItemContext);
2847
2847
  const { getFieldState } = reactHookForm.useFormContext();
@@ -2875,7 +2875,7 @@ function FormItem({ className, ...props }) {
2875
2875
  ...props
2876
2876
  }));
2877
2877
  }
2878
- chunk57VDL5UC_js.__name(FormItem, "FormItem");
2878
+ chunk55345F7G_js.__name(FormItem, "FormItem");
2879
2879
  function FormLabel({ className, ...props }) {
2880
2880
  const { error, formItemId } = useFormField();
2881
2881
  return /* @__PURE__ */ React26__namespace.createElement(Label2, {
@@ -2886,7 +2886,7 @@ function FormLabel({ className, ...props }) {
2886
2886
  ...props
2887
2887
  });
2888
2888
  }
2889
- chunk57VDL5UC_js.__name(FormLabel, "FormLabel");
2889
+ chunk55345F7G_js.__name(FormLabel, "FormLabel");
2890
2890
  function FormControl({ ...props }) {
2891
2891
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
2892
2892
  return /* @__PURE__ */ React26__namespace.createElement(reactSlot.Slot, {
@@ -2897,7 +2897,7 @@ function FormControl({ ...props }) {
2897
2897
  ...props
2898
2898
  });
2899
2899
  }
2900
- chunk57VDL5UC_js.__name(FormControl, "FormControl");
2900
+ chunk55345F7G_js.__name(FormControl, "FormControl");
2901
2901
  function FormDescription({ className, ...props }) {
2902
2902
  const { formDescriptionId } = useFormField();
2903
2903
  return /* @__PURE__ */ React26__namespace.createElement("p", {
@@ -2907,7 +2907,7 @@ function FormDescription({ className, ...props }) {
2907
2907
  ...props
2908
2908
  });
2909
2909
  }
2910
- chunk57VDL5UC_js.__name(FormDescription, "FormDescription");
2910
+ chunk55345F7G_js.__name(FormDescription, "FormDescription");
2911
2911
  function FormMessage({ className, ...props }) {
2912
2912
  const { error, formMessageId } = useFormField();
2913
2913
  const body = error ? String(error?.message ?? "") : props.children;
@@ -2921,7 +2921,7 @@ function FormMessage({ className, ...props }) {
2921
2921
  ...props
2922
2922
  }, body);
2923
2923
  }
2924
- chunk57VDL5UC_js.__name(FormMessage, "FormMessage");
2924
+ chunk55345F7G_js.__name(FormMessage, "FormMessage");
2925
2925
  var badgeVariants = classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
2926
2926
  variants: {
2927
2927
  variant: {
@@ -2945,7 +2945,7 @@ function Badge({ className, variant, asChild = false, ...props }) {
2945
2945
  ...props
2946
2946
  });
2947
2947
  }
2948
- chunk57VDL5UC_js.__name(Badge, "Badge");
2948
+ chunk55345F7G_js.__name(Badge, "Badge");
2949
2949
  function TabsList({ className, ...props }) {
2950
2950
  return /* @__PURE__ */ React26__namespace.createElement(TabsPrimitive2__namespace.List, {
2951
2951
  "data-slot": "tabs-list",
@@ -2953,7 +2953,7 @@ function TabsList({ className, ...props }) {
2953
2953
  ...props
2954
2954
  });
2955
2955
  }
2956
- chunk57VDL5UC_js.__name(TabsList, "TabsList");
2956
+ chunk55345F7G_js.__name(TabsList, "TabsList");
2957
2957
  function TabsTrigger({ className, ...props }) {
2958
2958
  return /* @__PURE__ */ React26__namespace.createElement(TabsPrimitive2__namespace.Trigger, {
2959
2959
  "data-slot": "tabs-trigger",
@@ -2961,7 +2961,7 @@ function TabsTrigger({ className, ...props }) {
2961
2961
  ...props
2962
2962
  });
2963
2963
  }
2964
- chunk57VDL5UC_js.__name(TabsTrigger, "TabsTrigger");
2964
+ chunk55345F7G_js.__name(TabsTrigger, "TabsTrigger");
2965
2965
  function TabsContent({ className, ...props }) {
2966
2966
  return /* @__PURE__ */ React26__namespace.createElement(TabsPrimitive2__namespace.Content, {
2967
2967
  "data-slot": "tabs-content",
@@ -2969,7 +2969,7 @@ function TabsContent({ className, ...props }) {
2969
2969
  ...props
2970
2970
  });
2971
2971
  }
2972
- chunk57VDL5UC_js.__name(TabsContent, "TabsContent");
2972
+ chunk55345F7G_js.__name(TabsContent, "TabsContent");
2973
2973
  function Separator2({ className, orientation = "horizontal", decorative = true, ...props }) {
2974
2974
  return /* @__PURE__ */ React26__namespace.createElement(SeparatorPrimitive__namespace.Root, {
2975
2975
  "data-slot": "separator",
@@ -2979,7 +2979,7 @@ function Separator2({ className, orientation = "horizontal", decorative = true,
2979
2979
  ...props
2980
2980
  });
2981
2981
  }
2982
- chunk57VDL5UC_js.__name(Separator2, "Separator");
2982
+ chunk55345F7G_js.__name(Separator2, "Separator");
2983
2983
  function ScrollArea({ className, children, ...props }) {
2984
2984
  return /* @__PURE__ */ React26__namespace.createElement(ScrollAreaPrimitive__namespace.Root, {
2985
2985
  "data-slot": "scroll-area",
@@ -2990,7 +2990,7 @@ function ScrollArea({ className, children, ...props }) {
2990
2990
  className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
2991
2991
  }, children), /* @__PURE__ */ React26__namespace.createElement(ScrollBar, null), /* @__PURE__ */ React26__namespace.createElement(ScrollAreaPrimitive__namespace.Corner, null));
2992
2992
  }
2993
- chunk57VDL5UC_js.__name(ScrollArea, "ScrollArea");
2993
+ chunk55345F7G_js.__name(ScrollArea, "ScrollArea");
2994
2994
  function ScrollBar({ className, orientation = "vertical", ...props }) {
2995
2995
  return /* @__PURE__ */ React26__namespace.createElement(ScrollAreaPrimitive__namespace.ScrollAreaScrollbar, {
2996
2996
  "data-slot": "scroll-area-scrollbar",
@@ -3002,28 +3002,28 @@ function ScrollBar({ className, orientation = "vertical", ...props }) {
3002
3002
  className: "bg-border relative flex-1 rounded-full"
3003
3003
  }));
3004
3004
  }
3005
- chunk57VDL5UC_js.__name(ScrollBar, "ScrollBar");
3005
+ chunk55345F7G_js.__name(ScrollBar, "ScrollBar");
3006
3006
  function DropdownMenu({ ...props }) {
3007
3007
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Root, {
3008
3008
  "data-slot": "dropdown-menu",
3009
3009
  ...props
3010
3010
  });
3011
3011
  }
3012
- chunk57VDL5UC_js.__name(DropdownMenu, "DropdownMenu");
3012
+ chunk55345F7G_js.__name(DropdownMenu, "DropdownMenu");
3013
3013
  function DropdownMenuPortal({ ...props }) {
3014
3014
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Portal, {
3015
3015
  "data-slot": "dropdown-menu-portal",
3016
3016
  ...props
3017
3017
  });
3018
3018
  }
3019
- chunk57VDL5UC_js.__name(DropdownMenuPortal, "DropdownMenuPortal");
3019
+ chunk55345F7G_js.__name(DropdownMenuPortal, "DropdownMenuPortal");
3020
3020
  function DropdownMenuTrigger({ ...props }) {
3021
3021
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Trigger, {
3022
3022
  "data-slot": "dropdown-menu-trigger",
3023
3023
  ...props
3024
3024
  });
3025
3025
  }
3026
- chunk57VDL5UC_js.__name(DropdownMenuTrigger, "DropdownMenuTrigger");
3026
+ chunk55345F7G_js.__name(DropdownMenuTrigger, "DropdownMenuTrigger");
3027
3027
  function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
3028
3028
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Portal, null, /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Content, {
3029
3029
  "data-slot": "dropdown-menu-content",
@@ -3032,14 +3032,14 @@ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
3032
3032
  ...props
3033
3033
  }));
3034
3034
  }
3035
- chunk57VDL5UC_js.__name(DropdownMenuContent, "DropdownMenuContent");
3035
+ chunk55345F7G_js.__name(DropdownMenuContent, "DropdownMenuContent");
3036
3036
  function DropdownMenuGroup({ ...props }) {
3037
3037
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Group, {
3038
3038
  "data-slot": "dropdown-menu-group",
3039
3039
  ...props
3040
3040
  });
3041
3041
  }
3042
- chunk57VDL5UC_js.__name(DropdownMenuGroup, "DropdownMenuGroup");
3042
+ chunk55345F7G_js.__name(DropdownMenuGroup, "DropdownMenuGroup");
3043
3043
  function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
3044
3044
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Item, {
3045
3045
  "data-slot": "dropdown-menu-item",
@@ -3049,7 +3049,7 @@ function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
3049
3049
  ...props
3050
3050
  });
3051
3051
  }
3052
- chunk57VDL5UC_js.__name(DropdownMenuItem, "DropdownMenuItem");
3052
+ chunk55345F7G_js.__name(DropdownMenuItem, "DropdownMenuItem");
3053
3053
  function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
3054
3054
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.CheckboxItem, {
3055
3055
  "data-slot": "dropdown-menu-checkbox-item",
@@ -3062,14 +3062,14 @@ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
3062
3062
  className: "size-4"
3063
3063
  }))), children);
3064
3064
  }
3065
- chunk57VDL5UC_js.__name(DropdownMenuCheckboxItem, "DropdownMenuCheckboxItem");
3065
+ chunk55345F7G_js.__name(DropdownMenuCheckboxItem, "DropdownMenuCheckboxItem");
3066
3066
  function DropdownMenuRadioGroup({ ...props }) {
3067
3067
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.RadioGroup, {
3068
3068
  "data-slot": "dropdown-menu-radio-group",
3069
3069
  ...props
3070
3070
  });
3071
3071
  }
3072
- chunk57VDL5UC_js.__name(DropdownMenuRadioGroup, "DropdownMenuRadioGroup");
3072
+ chunk55345F7G_js.__name(DropdownMenuRadioGroup, "DropdownMenuRadioGroup");
3073
3073
  function DropdownMenuRadioItem({ className, children, ...props }) {
3074
3074
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.RadioItem, {
3075
3075
  "data-slot": "dropdown-menu-radio-item",
@@ -3081,7 +3081,7 @@ function DropdownMenuRadioItem({ className, children, ...props }) {
3081
3081
  className: "size-2 fill-current"
3082
3082
  }))), children);
3083
3083
  }
3084
- chunk57VDL5UC_js.__name(DropdownMenuRadioItem, "DropdownMenuRadioItem");
3084
+ chunk55345F7G_js.__name(DropdownMenuRadioItem, "DropdownMenuRadioItem");
3085
3085
  function DropdownMenuLabel({ className, inset, ...props }) {
3086
3086
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Label, {
3087
3087
  "data-slot": "dropdown-menu-label",
@@ -3090,7 +3090,7 @@ function DropdownMenuLabel({ className, inset, ...props }) {
3090
3090
  ...props
3091
3091
  });
3092
3092
  }
3093
- chunk57VDL5UC_js.__name(DropdownMenuLabel, "DropdownMenuLabel");
3093
+ chunk55345F7G_js.__name(DropdownMenuLabel, "DropdownMenuLabel");
3094
3094
  function DropdownMenuSeparator({ className, ...props }) {
3095
3095
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Separator, {
3096
3096
  "data-slot": "dropdown-menu-separator",
@@ -3098,7 +3098,7 @@ function DropdownMenuSeparator({ className, ...props }) {
3098
3098
  ...props
3099
3099
  });
3100
3100
  }
3101
- chunk57VDL5UC_js.__name(DropdownMenuSeparator, "DropdownMenuSeparator");
3101
+ chunk55345F7G_js.__name(DropdownMenuSeparator, "DropdownMenuSeparator");
3102
3102
  function DropdownMenuShortcut({ className, ...props }) {
3103
3103
  return /* @__PURE__ */ React26__namespace.createElement("span", {
3104
3104
  "data-slot": "dropdown-menu-shortcut",
@@ -3106,14 +3106,14 @@ function DropdownMenuShortcut({ className, ...props }) {
3106
3106
  ...props
3107
3107
  });
3108
3108
  }
3109
- chunk57VDL5UC_js.__name(DropdownMenuShortcut, "DropdownMenuShortcut");
3109
+ chunk55345F7G_js.__name(DropdownMenuShortcut, "DropdownMenuShortcut");
3110
3110
  function DropdownMenuSub({ ...props }) {
3111
3111
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.Sub, {
3112
3112
  "data-slot": "dropdown-menu-sub",
3113
3113
  ...props
3114
3114
  });
3115
3115
  }
3116
- chunk57VDL5UC_js.__name(DropdownMenuSub, "DropdownMenuSub");
3116
+ chunk55345F7G_js.__name(DropdownMenuSub, "DropdownMenuSub");
3117
3117
  function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
3118
3118
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.SubTrigger, {
3119
3119
  "data-slot": "dropdown-menu-sub-trigger",
@@ -3124,7 +3124,7 @@ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
3124
3124
  className: "ml-auto size-4"
3125
3125
  }));
3126
3126
  }
3127
- chunk57VDL5UC_js.__name(DropdownMenuSubTrigger, "DropdownMenuSubTrigger");
3127
+ chunk55345F7G_js.__name(DropdownMenuSubTrigger, "DropdownMenuSubTrigger");
3128
3128
  function DropdownMenuSubContent({ className, ...props }) {
3129
3129
  return /* @__PURE__ */ React26__namespace.createElement(DropdownMenuPrimitive__namespace.SubContent, {
3130
3130
  "data-slot": "dropdown-menu-sub-content",
@@ -3132,7 +3132,7 @@ function DropdownMenuSubContent({ className, ...props }) {
3132
3132
  ...props
3133
3133
  });
3134
3134
  }
3135
- chunk57VDL5UC_js.__name(DropdownMenuSubContent, "DropdownMenuSubContent");
3135
+ chunk55345F7G_js.__name(DropdownMenuSubContent, "DropdownMenuSubContent");
3136
3136
  function TooltipProvider({ delayDuration = 0, ...props }) {
3137
3137
  return /* @__PURE__ */ React26__namespace.createElement(TooltipPrimitive__namespace.Provider, {
3138
3138
  "data-slot": "tooltip-provider",
@@ -3140,21 +3140,21 @@ function TooltipProvider({ delayDuration = 0, ...props }) {
3140
3140
  ...props
3141
3141
  });
3142
3142
  }
3143
- chunk57VDL5UC_js.__name(TooltipProvider, "TooltipProvider");
3143
+ chunk55345F7G_js.__name(TooltipProvider, "TooltipProvider");
3144
3144
  function Tooltip({ ...props }) {
3145
3145
  return /* @__PURE__ */ React26__namespace.createElement(TooltipProvider, null, /* @__PURE__ */ React26__namespace.createElement(TooltipPrimitive__namespace.Root, {
3146
3146
  "data-slot": "tooltip",
3147
3147
  ...props
3148
3148
  }));
3149
3149
  }
3150
- chunk57VDL5UC_js.__name(Tooltip, "Tooltip");
3150
+ chunk55345F7G_js.__name(Tooltip, "Tooltip");
3151
3151
  function TooltipTrigger({ ...props }) {
3152
3152
  return /* @__PURE__ */ React26__namespace.createElement(TooltipPrimitive__namespace.Trigger, {
3153
3153
  "data-slot": "tooltip-trigger",
3154
3154
  ...props
3155
3155
  });
3156
3156
  }
3157
- chunk57VDL5UC_js.__name(TooltipTrigger, "TooltipTrigger");
3157
+ chunk55345F7G_js.__name(TooltipTrigger, "TooltipTrigger");
3158
3158
  function TooltipContent({ className, sideOffset = 0, children, ...props }) {
3159
3159
  return /* @__PURE__ */ React26__namespace.createElement(TooltipPrimitive__namespace.Portal, null, /* @__PURE__ */ React26__namespace.createElement(TooltipPrimitive__namespace.Content, {
3160
3160
  "data-slot": "tooltip-content",
@@ -3165,7 +3165,7 @@ function TooltipContent({ className, sideOffset = 0, children, ...props }) {
3165
3165
  className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"
3166
3166
  })));
3167
3167
  }
3168
- chunk57VDL5UC_js.__name(TooltipContent, "TooltipContent");
3168
+ chunk55345F7G_js.__name(TooltipContent, "TooltipContent");
3169
3169
  function DataGrid({ data, columns, searchable = false, searchPlaceholder = "Search...", onRowClick, loading = false, emptyMessage = "No data", className }) {
3170
3170
  const [sorting, setSorting] = React26.useState([]);
3171
3171
  const [globalFilter, setGlobalFilter] = React26.useState("");
@@ -3199,7 +3199,7 @@ function DataGrid({ data, columns, searchable = false, searchPlaceholder = "Sear
3199
3199
  }, /* @__PURE__ */ React26__namespace.default.createElement("input", {
3200
3200
  type: "text",
3201
3201
  value: globalFilter,
3202
- onChange: /* @__PURE__ */ chunk57VDL5UC_js.__name((e) => setGlobalFilter(e.target.value), "onChange"),
3202
+ onChange: /* @__PURE__ */ chunk55345F7G_js.__name((e) => setGlobalFilter(e.target.value), "onChange"),
3203
3203
  placeholder: searchPlaceholder,
3204
3204
  className: "lui-datagrid-search-input"
3205
3205
  })), /* @__PURE__ */ React26__namespace.default.createElement("div", {
@@ -3228,13 +3228,13 @@ function DataGrid({ data, columns, searchable = false, searchPlaceholder = "Sear
3228
3228
  }, emptyMessage)) : table.getRowModel().rows.map((row) => /* @__PURE__ */ React26__namespace.default.createElement("tr", {
3229
3229
  key: row.id,
3230
3230
  className: clsx.clsx("lui-datagrid-row", onRowClick && "lui-datagrid-row--clickable"),
3231
- onClick: /* @__PURE__ */ chunk57VDL5UC_js.__name(() => onRowClick?.(row.original), "onClick")
3231
+ onClick: /* @__PURE__ */ chunk55345F7G_js.__name(() => onRowClick?.(row.original), "onClick")
3232
3232
  }, row.getVisibleCells().map((cell) => /* @__PURE__ */ React26__namespace.default.createElement("td", {
3233
3233
  key: cell.id,
3234
3234
  className: "lui-datagrid-td"
3235
3235
  }, reactTable.flexRender(cell.column.columnDef.cell, cell.getContext())))))))));
3236
3236
  }
3237
- chunk57VDL5UC_js.__name(DataGrid, "DataGrid");
3237
+ chunk55345F7G_js.__name(DataGrid, "DataGrid");
3238
3238
  chart_js.Chart.register(chart_js.CategoryScale, chart_js.LinearScale, chart_js.PointElement, chart_js.LineElement, chart_js.BarElement, chart_js.ArcElement, chart_js.Title, chart_js.Tooltip, chart_js.Legend);
3239
3239
  function Chart({ type, data, options, height = 300, width = "100%", className }) {
3240
3240
  const defaultOptions = {
@@ -3300,7 +3300,7 @@ function Chart({ type, data, options, height = 300, width = "100%", className })
3300
3300
  options: mergedOptions
3301
3301
  }));
3302
3302
  }
3303
- chunk57VDL5UC_js.__name(Chart, "Chart");
3303
+ chunk55345F7G_js.__name(Chart, "Chart");
3304
3304
  function AppShell({ header, sidebar, footer, sidebarPosition = "left", sidebarWidth = 240, autoResize = true, padding = "md", className, children, ...props }) {
3305
3305
  const containerRef = React26.useRef(null);
3306
3306
  const { app } = useMcpApp();
@@ -3310,7 +3310,7 @@ function AppShell({ header, sidebar, footer, sidebarPosition = "left", sidebarWi
3310
3310
  let lastWidth = 0;
3311
3311
  let lastHeight = 0;
3312
3312
  let scheduled = false;
3313
- const sendSizeChanged = /* @__PURE__ */ chunk57VDL5UC_js.__name(() => {
3313
+ const sendSizeChanged = /* @__PURE__ */ chunk55345F7G_js.__name(() => {
3314
3314
  if (scheduled) return;
3315
3315
  scheduled = true;
3316
3316
  requestAnimationFrame(() => {
@@ -3363,7 +3363,7 @@ function AppShell({ header, sidebar, footer, sidebarPosition = "left", sidebarWi
3363
3363
  className: "lui-app-shell-footer"
3364
3364
  }, footer));
3365
3365
  }
3366
- chunk57VDL5UC_js.__name(AppShell, "AppShell");
3366
+ chunk55345F7G_js.__name(AppShell, "AppShell");
3367
3367
  function Tabs2({ tabs, defaultValue, value, onValueChange, children, className }) {
3368
3368
  const defaultTab = defaultValue || tabs[0]?.value;
3369
3369
  return /* @__PURE__ */ React26__namespace.default.createElement(TabsPrimitive2__namespace.Root, {
@@ -3380,14 +3380,14 @@ function Tabs2({ tabs, defaultValue, value, onValueChange, children, className }
3380
3380
  className: "lui-tabs-trigger"
3381
3381
  }, tab.label))), children);
3382
3382
  }
3383
- chunk57VDL5UC_js.__name(Tabs2, "Tabs");
3383
+ chunk55345F7G_js.__name(Tabs2, "Tabs");
3384
3384
  function TabContent({ value, children, className }) {
3385
3385
  return /* @__PURE__ */ React26__namespace.default.createElement(TabsPrimitive2__namespace.Content, {
3386
3386
  value,
3387
3387
  className: clsx.clsx("lui-tabs-content", className)
3388
3388
  }, children);
3389
3389
  }
3390
- chunk57VDL5UC_js.__name(TabContent, "TabContent");
3390
+ chunk55345F7G_js.__name(TabContent, "TabContent");
3391
3391
  function Modal({ open, defaultOpen, onOpenChange, title, description, children, className, trigger }) {
3392
3392
  return /* @__PURE__ */ React26__namespace.default.createElement(DialogPrimitive__namespace.Root, {
3393
3393
  open,
@@ -3408,7 +3408,7 @@ function Modal({ open, defaultOpen, onOpenChange, title, description, children,
3408
3408
  "aria-label": "Close"
3409
3409
  }, /* @__PURE__ */ React26__namespace.default.createElement(CloseIcon, null)))));
3410
3410
  }
3411
- chunk57VDL5UC_js.__name(Modal, "Modal");
3411
+ chunk55345F7G_js.__name(Modal, "Modal");
3412
3412
  function CloseIcon() {
3413
3413
  return /* @__PURE__ */ React26__namespace.default.createElement("svg", {
3414
3414
  width: "14",
@@ -3422,10 +3422,10 @@ function CloseIcon() {
3422
3422
  strokeLinecap: "round"
3423
3423
  }));
3424
3424
  }
3425
- chunk57VDL5UC_js.__name(CloseIcon, "CloseIcon");
3425
+ chunk55345F7G_js.__name(CloseIcon, "CloseIcon");
3426
3426
  function CodeBlock({ code, language = "text", showLineNumbers = false, copyable = true, className }) {
3427
3427
  const [copied, setCopied] = React26__namespace.default.useState(false);
3428
- const handleCopy = /* @__PURE__ */ chunk57VDL5UC_js.__name(async () => {
3428
+ const handleCopy = /* @__PURE__ */ chunk55345F7G_js.__name(async () => {
3429
3429
  await navigator.clipboard.writeText(code);
3430
3430
  setCopied(true);
3431
3431
  setTimeout(() => setCopied(false), 2e3);
@@ -3479,7 +3479,7 @@ function CodeBlock({ code, language = "text", showLineNumbers = false, copyable
3479
3479
  })
3480
3480
  })))))));
3481
3481
  }
3482
- chunk57VDL5UC_js.__name(CodeBlock, "CodeBlock");
3482
+ chunk55345F7G_js.__name(CodeBlock, "CodeBlock");
3483
3483
  var Card2 = /* @__PURE__ */ React26.forwardRef(({ className, variant = "default", padding = "md", interactive = false, children, ...props }, ref) => {
3484
3484
  return /* @__PURE__ */ React26__namespace.default.createElement("div", {
3485
3485
  ref,
@@ -3550,27 +3550,27 @@ Input2.displayName = "Input";
3550
3550
 
3551
3551
  Object.defineProperty(exports, "GPTApp", {
3552
3552
  enumerable: true,
3553
- get: function () { return chunk57VDL5UC_js.GPTApp; }
3553
+ get: function () { return chunk55345F7G_js.GPTApp; }
3554
3554
  });
3555
3555
  Object.defineProperty(exports, "UIApp", {
3556
3556
  enumerable: true,
3557
- get: function () { return chunk57VDL5UC_js.UIApp; }
3557
+ get: function () { return chunk55345F7G_js.UIApp; }
3558
3558
  });
3559
3559
  Object.defineProperty(exports, "getGPTAppMetadata", {
3560
3560
  enumerable: true,
3561
- get: function () { return chunk57VDL5UC_js.getGPTAppMetadata; }
3561
+ get: function () { return chunk55345F7G_js.getGPTAppMetadata; }
3562
3562
  });
3563
3563
  Object.defineProperty(exports, "getGPTAppUri", {
3564
3564
  enumerable: true,
3565
- get: function () { return chunk57VDL5UC_js.getGPTAppUri; }
3565
+ get: function () { return chunk55345F7G_js.getGPTAppUri; }
3566
3566
  });
3567
3567
  Object.defineProperty(exports, "getUIAppMetadata", {
3568
3568
  enumerable: true,
3569
- get: function () { return chunk57VDL5UC_js.getUIAppMetadata; }
3569
+ get: function () { return chunk55345F7G_js.getUIAppMetadata; }
3570
3570
  });
3571
3571
  Object.defineProperty(exports, "getUIAppUri", {
3572
3572
  enumerable: true,
3573
- get: function () { return chunk57VDL5UC_js.getUIAppUri; }
3573
+ get: function () { return chunk55345F7G_js.getUIAppUri; }
3574
3574
  });
3575
3575
  Object.defineProperty(exports, "App", {
3576
3576
  enumerable: true,