@superinterface/react 3.18.0 → 3.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -37377,7 +37377,7 @@ var SuperinterfaceProvider = function(_ref) {
37377
37377
  // src/components/threads/Thread/Messages/index.tsx
37378
37378
  import { Flex as Flex18 } from "@radix-ui/themes";
37379
37379
  // src/components/threads/Thread/Message/index.tsx
37380
- import { c as _c25 } from "react-compiler-runtime";
37380
+ import { c as _c26 } from "react-compiler-runtime";
37381
37381
  import { useMemo as useMemo10 } from "react";
37382
37382
  import { isEmpty as isEmpty2 } from "radash";
37383
37383
  import { Box as Box9 } from "@radix-ui/themes";
@@ -37397,34 +37397,59 @@ var StartingContentSkeleton = function() {
37397
37397
  });
37398
37398
  };
37399
37399
  // src/components/runSteps/RunSteps/index.tsx
37400
- import { c as _c7 } from "react-compiler-runtime";
37400
+ import { c as _c8 } from "react-compiler-runtime";
37401
37401
  import { Flex as Flex5 } from "@radix-ui/themes";
37402
- import { useContext as useContext3 } from "react";
37402
+ import { useContext as useContext4 } from "react";
37403
37403
  // src/contexts/components/ComponentsContext/index.tsx
37404
37404
  import { createContext as createContext3 } from "react";
37405
37405
  // src/components/runSteps/RunStep/index.tsx
37406
37406
  import { c as _c6 } from "react-compiler-runtime";
37407
37407
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
37408
- import { Flex as Flex4 } from "@radix-ui/themes";
37409
- // src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
37410
37408
  import { c as _c5 } from "react-compiler-runtime";
37409
+ import { useContext as useContext3 } from "react";
37410
+ import { Flex as Flex3 } from "@radix-ui/themes";
37411
+ // src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
37412
+ import { c as _c4 } from "react-compiler-runtime";
37411
37413
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/index.tsx
37412
- import { c as _c3 } from "react-compiler-runtime";
37414
+ import { c as _c } from "react-compiler-runtime";
37413
37415
  import { useContext as useContext2 } from "react";
37414
37416
  // src/contexts/functions/FunctionComponentsContext/index.tsx
37415
37417
  import { createContext as createContext2 } from "react";
37416
37418
  var FunctionComponentsContext = /* @__PURE__ */ createContext2({});
37417
- // src/components/functions/FunctionBase/index.tsx
37419
+ // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/index.tsx
37420
+ import { jsx as _jsx3 } from "react/jsx-runtime";
37421
+ var Fn = function(t0) {
37422
+ var $ = _c(4);
37423
+ var fn = t0.fn, runStep = t0.runStep;
37424
+ var functionComponentsContext = useContext2(FunctionComponentsContext);
37425
+ var componentsContext = useContext2(ComponentsContext);
37426
+ var Component2 = functionComponentsContext[fn.name] || componentsContext.components.Function;
37427
+ var t1;
37428
+ if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep) {
37429
+ t1 = /* @__PURE__ */ _jsx3(Component2, {
37430
+ fn: fn,
37431
+ runStep: runStep
37432
+ });
37433
+ $[0] = Component2;
37434
+ $[1] = fn;
37435
+ $[2] = runStep;
37436
+ $[3] = t1;
37437
+ } else {
37438
+ t1 = $[3];
37439
+ }
37440
+ return t1;
37441
+ };
37442
+ // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/index.tsx
37418
37443
  import { Popover, Flex as Flex2 } from "@radix-ui/themes";
37419
37444
  // src/components/toolCalls/ToolCallBase/index.tsx
37420
37445
  import { Flex, Button } from "@radix-ui/themes";
37421
- import { jsx as _jsx3 } from "react/jsx-runtime";
37446
+ import { jsx as _jsx4 } from "react/jsx-runtime";
37422
37447
  var ToolCallBase = function(_ref) {
37423
37448
  var children = _ref.children;
37424
- return /* @__PURE__ */ _jsx3(Flex, {
37449
+ return /* @__PURE__ */ _jsx4(Flex, {
37425
37450
  py: "1",
37426
37451
  ml: "-2",
37427
- children: /* @__PURE__ */ _jsx3(Button, {
37452
+ children: /* @__PURE__ */ _jsx4(Button, {
37428
37453
  size: "1",
37429
37454
  color: "gold",
37430
37455
  variant: "outline",
@@ -37437,25 +37462,25 @@ var ToolCallBase = function(_ref) {
37437
37462
  };
37438
37463
  // src/components/toolCalls/ToolCallBase/ToolCallTitle.tsx
37439
37464
  import { Text } from "@radix-ui/themes";
37440
- import { jsx as _jsx4 } from "react/jsx-runtime";
37465
+ import { jsx as _jsx5 } from "react/jsx-runtime";
37441
37466
  var ToolCallTitle = function(_ref) {
37442
37467
  var children = _ref.children;
37443
- return /* @__PURE__ */ _jsx4(Text, {
37468
+ return /* @__PURE__ */ _jsx5(Text, {
37444
37469
  weight: "regular",
37445
37470
  children: children
37446
37471
  });
37447
37472
  };
37448
37473
  // src/components/toolCalls/ToolCallBase/ToolCallIcon.tsx
37449
- import { c as _c } from "react-compiler-runtime";
37474
+ import { c as _c2 } from "react-compiler-runtime";
37450
37475
  import { CircleIcon, CircleBackslashIcon, CheckCircledIcon } from "@radix-ui/react-icons";
37451
- import { jsx as _jsx5 } from "react/jsx-runtime";
37476
+ import { jsx as _jsx6 } from "react/jsx-runtime";
37452
37477
  var ToolCallIcon = function(t0) {
37453
- var $ = _c(3);
37478
+ var $ = _c2(3);
37454
37479
  var runStep = t0.runStep;
37455
37480
  if (runStep.completed_at) {
37456
37481
  var t1;
37457
37482
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
37458
- t1 = /* @__PURE__ */ _jsx5(CheckCircledIcon, {});
37483
+ t1 = /* @__PURE__ */ _jsx6(CheckCircledIcon, {});
37459
37484
  $[0] = t1;
37460
37485
  } else {
37461
37486
  t1 = $[0];
@@ -37465,7 +37490,7 @@ var ToolCallIcon = function(t0) {
37465
37490
  if (runStep.cancelled_at || runStep.failed_at || runStep.status === "expired") {
37466
37491
  var _t;
37467
37492
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
37468
- _t = /* @__PURE__ */ _jsx5(CircleBackslashIcon, {});
37493
+ _t = /* @__PURE__ */ _jsx6(CircleBackslashIcon, {});
37469
37494
  $[1] = _t;
37470
37495
  } else {
37471
37496
  _t = $[1];
@@ -37474,7 +37499,7 @@ var ToolCallIcon = function(t0) {
37474
37499
  } else {
37475
37500
  var _t2;
37476
37501
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
37477
- _t2 = /* @__PURE__ */ _jsx5(CircleIcon, {});
37502
+ _t2 = /* @__PURE__ */ _jsx6(CircleIcon, {});
37478
37503
  $[2] = _t2;
37479
37504
  } else {
37480
37505
  _t2 = $[2];
@@ -37483,191 +37508,12 @@ var ToolCallIcon = function(t0) {
37483
37508
  }
37484
37509
  }
37485
37510
  };
37486
- // src/components/functions/FunctionBase/Content/index.tsx
37487
- import { c as _c2 } from "react-compiler-runtime";
37488
- import { useMemo } from "react";
37511
+ // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/Content.tsx
37512
+ import { c as _c3 } from "react-compiler-runtime";
37489
37513
  import { Code, Box } from "@radix-ui/themes";
37490
- // src/components/functions/FunctionBase/Content/lib/formattedJsonOrRaw.ts
37491
- var formattedJsonOrRaw = function(_ref) {
37492
- var value = _ref.value;
37493
- if (!value) {
37494
- return null;
37495
- }
37496
- try {
37497
- return JSON.stringify(JSON.parse(value), null, 2);
37498
- } catch (error) {
37499
- if (typeof value === "string") {
37500
- return value;
37501
- } else {
37502
- return JSON.stringify(value, null, 2);
37503
- }
37504
- }
37505
- };
37506
- // src/components/functions/FunctionBase/Content/index.tsx
37507
- import { jsx as _jsx6, jsxs as _jsxs } from "react/jsx-runtime";
37514
+ import { jsx as _jsx7, jsxs as _jsxs } from "react/jsx-runtime";
37508
37515
  var Content = function(t0) {
37509
- var $ = _c2(12);
37510
- var fn = t0.fn;
37511
- var t1;
37512
- var t2;
37513
- if ($[0] !== fn.arguments) {
37514
- t2 = formattedJsonOrRaw({
37515
- value: fn.arguments
37516
- });
37517
- $[0] = fn.arguments;
37518
- $[1] = t2;
37519
- } else {
37520
- t2 = $[1];
37521
- }
37522
- t1 = t2;
37523
- var args = t1;
37524
- var t3;
37525
- var t4;
37526
- if ($[2] !== fn.output) {
37527
- t4 = formattedJsonOrRaw({
37528
- value: fn.output
37529
- });
37530
- $[2] = fn.output;
37531
- $[3] = t4;
37532
- } else {
37533
- t4 = $[3];
37534
- }
37535
- t3 = t4;
37536
- var output = t3;
37537
- var t5;
37538
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
37539
- t5 = {
37540
- whiteSpace: "pre",
37541
- wordBreak: "break-word"
37542
- };
37543
- $[4] = t5;
37544
- } else {
37545
- t5 = $[4];
37546
- }
37547
- var t6;
37548
- if ($[5] !== args) {
37549
- t6 = args && /* @__PURE__ */ _jsx6(Box, {
37550
- children: args
37551
- });
37552
- $[5] = args;
37553
- $[6] = t6;
37554
- } else {
37555
- t6 = $[6];
37556
- }
37557
- var t7;
37558
- if ($[7] !== output) {
37559
- t7 = output && /* @__PURE__ */ _jsx6(Box, {
37560
- children: output
37561
- });
37562
- $[7] = output;
37563
- $[8] = t7;
37564
- } else {
37565
- t7 = $[8];
37566
- }
37567
- var t8;
37568
- if ($[9] !== t6 || $[10] !== t7) {
37569
- t8 = /* @__PURE__ */ _jsxs(Code, {
37570
- variant: "ghost",
37571
- color: "gold",
37572
- style: t5,
37573
- children: [
37574
- t6,
37575
- t7
37576
- ]
37577
- });
37578
- $[9] = t6;
37579
- $[10] = t7;
37580
- $[11] = t8;
37581
- } else {
37582
- t8 = $[11];
37583
- }
37584
- return t8;
37585
- };
37586
- // src/components/functions/FunctionBase/index.tsx
37587
- import { jsx as _jsx7, jsxs as _jsxs2 } from "react/jsx-runtime";
37588
- var FunctionBase = function(_ref) {
37589
- var fn = _ref.fn, runStep = _ref.runStep, title2 = _ref.title;
37590
- return /* @__PURE__ */ _jsxs2(Popover.Root, {
37591
- children: [
37592
- /* @__PURE__ */ _jsx7(Popover.Trigger, {
37593
- children: /* @__PURE__ */ _jsx7(Flex2, {
37594
- children: /* @__PURE__ */ _jsxs2(ToolCallBase, {
37595
- children: [
37596
- /* @__PURE__ */ _jsx7(ToolCallIcon, {
37597
- runStep: runStep
37598
- }),
37599
- /* @__PURE__ */ _jsx7(ToolCallTitle, {
37600
- children: title2
37601
- })
37602
- ]
37603
- })
37604
- })
37605
- }),
37606
- /* @__PURE__ */ _jsx7(Popover.Content, {
37607
- style: {
37608
- maxHeight: "200px"
37609
- },
37610
- children: /* @__PURE__ */ _jsx7(Content, {
37611
- fn: fn
37612
- })
37613
- })
37614
- ]
37615
- });
37616
- };
37617
- // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/DefaultFunction/lib/title.ts
37618
- var title = function(_ref) {
37619
- var fn = _ref.fn, runStep = _ref.runStep;
37620
- if (runStep.completed_at) {
37621
- return "Finished ".concat(fn.name);
37622
- } else if (runStep.cancelled_at) {
37623
- return "Cancelled ".concat(fn.name);
37624
- } else {
37625
- return "Calling ".concat(fn.name);
37626
- }
37627
- };
37628
- // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/DefaultFunction/index.tsx
37629
- import { jsx as _jsx8 } from "react/jsx-runtime";
37630
- var DefaultFunction = function(_ref) {
37631
- var fn = _ref.fn, runStep = _ref.runStep;
37632
- return /* @__PURE__ */ _jsx8(FunctionBase, {
37633
- fn: fn,
37634
- runStep: runStep,
37635
- title: title({
37636
- runStep: runStep,
37637
- fn: fn
37638
- })
37639
- });
37640
- };
37641
- // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/index.tsx
37642
- import { jsx as _jsx9 } from "react/jsx-runtime";
37643
- var Fn = function(t0) {
37644
- var $ = _c3(4);
37645
- var fn = t0.fn, runStep = t0.runStep;
37646
- var functionComponentsContext = useContext2(FunctionComponentsContext);
37647
- var Component2 = functionComponentsContext[fn.name] || DefaultFunction;
37648
- var t1;
37649
- if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep) {
37650
- t1 = /* @__PURE__ */ _jsx9(Component2, {
37651
- fn: fn,
37652
- runStep: runStep
37653
- });
37654
- $[0] = Component2;
37655
- $[1] = fn;
37656
- $[2] = runStep;
37657
- $[3] = t1;
37658
- } else {
37659
- t1 = $[3];
37660
- }
37661
- return t1;
37662
- };
37663
- // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/index.tsx
37664
- import { Popover as Popover2, Flex as Flex3 } from "@radix-ui/themes";
37665
- // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/Content.tsx
37666
- import { c as _c4 } from "react-compiler-runtime";
37667
- import { Code as Code2, Box as Box2 } from "@radix-ui/themes";
37668
- import { jsx as _jsx10, jsxs as _jsxs3 } from "react/jsx-runtime";
37669
- var Content2 = function(t0) {
37670
- var $ = _c4(10);
37516
+ var $ = _c3(10);
37671
37517
  var codeInterpreter = t0.codeInterpreter;
37672
37518
  if (!codeInterpreter.input) {
37673
37519
  return null;
@@ -37684,7 +37530,7 @@ var Content2 = function(t0) {
37684
37530
  }
37685
37531
  var t2;
37686
37532
  if ($[1] !== codeInterpreter.input) {
37687
- t2 = /* @__PURE__ */ _jsx10(Box2, {
37533
+ t2 = /* @__PURE__ */ _jsx7(Box, {
37688
37534
  children: codeInterpreter.input
37689
37535
  });
37690
37536
  $[1] = codeInterpreter.input;
@@ -37702,7 +37548,7 @@ var Content2 = function(t0) {
37702
37548
  }
37703
37549
  var t4;
37704
37550
  if ($[5] !== t3) {
37705
- t4 = /* @__PURE__ */ _jsx10(Box2, {
37551
+ t4 = /* @__PURE__ */ _jsx7(Box, {
37706
37552
  children: t3
37707
37553
  });
37708
37554
  $[5] = t3;
@@ -37712,7 +37558,7 @@ var Content2 = function(t0) {
37712
37558
  }
37713
37559
  var t5;
37714
37560
  if ($[7] !== t2 || $[8] !== t4) {
37715
- t5 = /* @__PURE__ */ _jsxs3(Code2, {
37561
+ t5 = /* @__PURE__ */ _jsxs(Code, {
37716
37562
  variant: "ghost",
37717
37563
  color: "gold",
37718
37564
  style: t1,
@@ -37730,28 +37576,28 @@ var Content2 = function(t0) {
37730
37576
  return t5;
37731
37577
  };
37732
37578
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/index.tsx
37733
- import { jsx as _jsx11, jsxs as _jsxs4 } from "react/jsx-runtime";
37579
+ import { jsx as _jsx8, jsxs as _jsxs2 } from "react/jsx-runtime";
37734
37580
  var CodeInterpreter = function(_ref) {
37735
37581
  var codeInterpreter = _ref.codeInterpreter, runStep = _ref.runStep;
37736
- return /* @__PURE__ */ _jsxs4(Popover2.Root, {
37582
+ return /* @__PURE__ */ _jsxs2(Popover.Root, {
37737
37583
  children: [
37738
- /* @__PURE__ */ _jsx11(Popover2.Trigger, {
37739
- children: /* @__PURE__ */ _jsx11(Flex3, {
37740
- children: /* @__PURE__ */ _jsxs4(ToolCallBase, {
37584
+ /* @__PURE__ */ _jsx8(Popover.Trigger, {
37585
+ children: /* @__PURE__ */ _jsx8(Flex2, {
37586
+ children: /* @__PURE__ */ _jsxs2(ToolCallBase, {
37741
37587
  children: [
37742
- /* @__PURE__ */ _jsx11(ToolCallIcon, {
37588
+ /* @__PURE__ */ _jsx8(ToolCallIcon, {
37743
37589
  runStep: runStep
37744
37590
  }),
37745
- /* @__PURE__ */ _jsx11(ToolCallTitle, {
37591
+ /* @__PURE__ */ _jsx8(ToolCallTitle, {
37746
37592
  children: "Using code interpreter"
37747
37593
  })
37748
37594
  ]
37749
37595
  })
37750
37596
  })
37751
37597
  }),
37752
- /* @__PURE__ */ _jsx11(Popover2.Content, {
37598
+ /* @__PURE__ */ _jsx8(Popover.Content, {
37753
37599
  maxHeight: "200px",
37754
- children: /* @__PURE__ */ _jsx11(Content2, {
37600
+ children: /* @__PURE__ */ _jsx8(Content, {
37755
37601
  codeInterpreter: codeInterpreter
37756
37602
  })
37757
37603
  })
@@ -37759,30 +37605,30 @@ var CodeInterpreter = function(_ref) {
37759
37605
  });
37760
37606
  };
37761
37607
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/FileSearch.tsx
37762
- import { jsx as _jsx12, jsxs as _jsxs5 } from "react/jsx-runtime";
37608
+ import { jsx as _jsx9, jsxs as _jsxs3 } from "react/jsx-runtime";
37763
37609
  var FileSearch = function(_ref) {
37764
37610
  var runStep = _ref.runStep, toolCall = _ref.toolCall;
37765
- return /* @__PURE__ */ _jsxs5(ToolCallBase, {
37611
+ return /* @__PURE__ */ _jsxs3(ToolCallBase, {
37766
37612
  children: [
37767
- /* @__PURE__ */ _jsx12(ToolCallIcon, {
37613
+ /* @__PURE__ */ _jsx9(ToolCallIcon, {
37768
37614
  runStep: runStep
37769
37615
  }),
37770
- /* @__PURE__ */ _jsx12(ToolCallTitle, {
37616
+ /* @__PURE__ */ _jsx9(ToolCallTitle, {
37771
37617
  children: "Searching files"
37772
37618
  })
37773
37619
  ]
37774
37620
  });
37775
37621
  };
37776
37622
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fallback.tsx
37777
- import { jsx as _jsx13, jsxs as _jsxs6 } from "react/jsx-runtime";
37623
+ import { jsx as _jsx10, jsxs as _jsxs4 } from "react/jsx-runtime";
37778
37624
  var Fallback = function(_ref) {
37779
37625
  var runStep = _ref.runStep, toolCall = _ref.toolCall;
37780
- return /* @__PURE__ */ _jsxs6(ToolCallBase, {
37626
+ return /* @__PURE__ */ _jsxs4(ToolCallBase, {
37781
37627
  children: [
37782
- /* @__PURE__ */ _jsx13(ToolCallIcon, {
37628
+ /* @__PURE__ */ _jsx10(ToolCallIcon, {
37783
37629
  runStep: runStep
37784
37630
  }),
37785
- /* @__PURE__ */ _jsxs6(ToolCallTitle, {
37631
+ /* @__PURE__ */ _jsxs4(ToolCallTitle, {
37786
37632
  children: [
37787
37633
  "Using tool: ",
37788
37634
  toolCall.type
@@ -37792,14 +37638,14 @@ var Fallback = function(_ref) {
37792
37638
  });
37793
37639
  };
37794
37640
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
37795
- import { jsx as _jsx14 } from "react/jsx-runtime";
37641
+ import { jsx as _jsx11 } from "react/jsx-runtime";
37796
37642
  var ToolCall = function(t0) {
37797
- var $ = _c5(12);
37643
+ var $ = _c4(12);
37798
37644
  var toolCall = t0.toolCall, runStep = t0.runStep;
37799
37645
  if (toolCall.type === "function") {
37800
37646
  var _t;
37801
37647
  if ($[0] !== runStep || $[1] !== toolCall.function) {
37802
- _t = /* @__PURE__ */ _jsx14(Fn, {
37648
+ _t = /* @__PURE__ */ _jsx11(Fn, {
37803
37649
  fn: toolCall.function,
37804
37650
  runStep: runStep
37805
37651
  });
@@ -37814,7 +37660,7 @@ var ToolCall = function(t0) {
37814
37660
  if (toolCall.type === "code_interpreter") {
37815
37661
  var _t2;
37816
37662
  if ($[3] !== runStep || $[4] !== toolCall.code_interpreter) {
37817
- _t2 = /* @__PURE__ */ _jsx14(CodeInterpreter, {
37663
+ _t2 = /* @__PURE__ */ _jsx11(CodeInterpreter, {
37818
37664
  codeInterpreter: toolCall.code_interpreter,
37819
37665
  runStep: runStep
37820
37666
  });
@@ -37829,7 +37675,7 @@ var ToolCall = function(t0) {
37829
37675
  if (toolCall.type === "file_search") {
37830
37676
  var _t3;
37831
37677
  if ($[6] !== runStep || $[7] !== toolCall) {
37832
- _t3 = /* @__PURE__ */ _jsx14(FileSearch, {
37678
+ _t3 = /* @__PURE__ */ _jsx11(FileSearch, {
37833
37679
  toolCall: toolCall,
37834
37680
  runStep: runStep
37835
37681
  });
@@ -37841,114 +37687,287 @@ var ToolCall = function(t0) {
37841
37687
  }
37842
37688
  return _t3;
37843
37689
  }
37844
- var t1;
37845
- if ($[9] !== runStep || $[10] !== toolCall) {
37846
- t1 = /* @__PURE__ */ _jsx14(Fallback, {
37847
- toolCall: toolCall,
37848
- runStep: runStep
37690
+ var t1;
37691
+ if ($[9] !== runStep || $[10] !== toolCall) {
37692
+ t1 = /* @__PURE__ */ _jsx11(Fallback, {
37693
+ toolCall: toolCall,
37694
+ runStep: runStep
37695
+ });
37696
+ $[9] = runStep;
37697
+ $[10] = toolCall;
37698
+ $[11] = t1;
37699
+ } else {
37700
+ t1 = $[11];
37701
+ }
37702
+ return t1;
37703
+ };
37704
+ // src/components/runSteps/RunStep/ToolCalls/index.tsx
37705
+ import { jsx as _jsx12, jsxs as _jsxs5 } from "react/jsx-runtime";
37706
+ var Root = function(_ref) {
37707
+ var children = _ref.children, className = _ref.className, style = _ref.style;
37708
+ return /* @__PURE__ */ _jsx12(Flex3, {
37709
+ direction: "column",
37710
+ className: className,
37711
+ style: style,
37712
+ children: children
37713
+ });
37714
+ };
37715
+ var StartingToolCalls = function() {
37716
+ var $ = _c5(2);
37717
+ var componentsContext = useContext3(ComponentsContext);
37718
+ var StartingToolCalls3 = componentsContext.components.StartingToolCalls;
37719
+ var t0;
37720
+ if ($[0] !== StartingToolCalls3) {
37721
+ t0 = /* @__PURE__ */ _jsx12(StartingToolCalls3, {});
37722
+ $[0] = StartingToolCalls3;
37723
+ $[1] = t0;
37724
+ } else {
37725
+ t0 = $[1];
37726
+ }
37727
+ return t0;
37728
+ };
37729
+ var ToolCalls = function(_ref2) {
37730
+ var stepDetails = _ref2.stepDetails, runStep = _ref2.runStep, className = _ref2.className, style = _ref2.style;
37731
+ return /* @__PURE__ */ _jsxs5(Root, {
37732
+ className: className,
37733
+ style: style,
37734
+ children: [
37735
+ !stepDetails.tool_calls.length && /* @__PURE__ */ _jsx12(StartingToolCalls, {}),
37736
+ stepDetails.tool_calls.map(function(toolCall) {
37737
+ return /* @__PURE__ */ _jsx12(ToolCall, {
37738
+ toolCall: toolCall,
37739
+ runStep: runStep
37740
+ }, toolCall.id);
37741
+ })
37742
+ ]
37743
+ });
37744
+ };
37745
+ ToolCalls.Root = Root;
37746
+ ToolCalls.StartingToolCalls = StartingToolCalls;
37747
+ ToolCalls.ToolCall = ToolCall;
37748
+ // src/components/runSteps/RunStep/index.tsx
37749
+ import { jsx as _jsx13 } from "react/jsx-runtime";
37750
+ var RunStep = function(t0) {
37751
+ var $ = _c6(4);
37752
+ var runStep = t0.runStep, className = t0.className, style = t0.style;
37753
+ if (runStep.step_details.type === "tool_calls") {
37754
+ var t1;
37755
+ if ($[0] !== className || $[1] !== runStep || $[2] !== style) {
37756
+ t1 = /* @__PURE__ */ _jsx13(ToolCalls, {
37757
+ className: className,
37758
+ style: style,
37759
+ stepDetails: runStep.step_details,
37760
+ runStep: runStep
37761
+ });
37762
+ $[0] = className;
37763
+ $[1] = runStep;
37764
+ $[2] = style;
37765
+ $[3] = t1;
37766
+ } else {
37767
+ t1 = $[3];
37768
+ }
37769
+ return t1;
37770
+ }
37771
+ return null;
37772
+ };
37773
+ RunStep.ToolCalls = ToolCalls;
37774
+ // src/components/functions/FunctionBase/index.tsx
37775
+ import { Popover as Popover2, Flex as Flex4 } from "@radix-ui/themes";
37776
+ // src/components/functions/FunctionBase/Content/index.tsx
37777
+ import { c as _c7 } from "react-compiler-runtime";
37778
+ import { useMemo } from "react";
37779
+ import { Code as Code2, Box as Box2 } from "@radix-ui/themes";
37780
+ // src/components/functions/FunctionBase/Content/lib/formattedJsonOrRaw.ts
37781
+ var formattedJsonOrRaw = function(_ref) {
37782
+ var value = _ref.value;
37783
+ if (!value) {
37784
+ return null;
37785
+ }
37786
+ try {
37787
+ return JSON.stringify(JSON.parse(value), null, 2);
37788
+ } catch (error) {
37789
+ if (typeof value === "string") {
37790
+ return value;
37791
+ } else {
37792
+ return JSON.stringify(value, null, 2);
37793
+ }
37794
+ }
37795
+ };
37796
+ // src/components/functions/FunctionBase/Content/index.tsx
37797
+ import { jsx as _jsx14, jsxs as _jsxs6 } from "react/jsx-runtime";
37798
+ var Content2 = function(t0) {
37799
+ var $ = _c7(12);
37800
+ var fn = t0.fn;
37801
+ var t1;
37802
+ var t2;
37803
+ if ($[0] !== fn.arguments) {
37804
+ t2 = formattedJsonOrRaw({
37805
+ value: fn.arguments
37806
+ });
37807
+ $[0] = fn.arguments;
37808
+ $[1] = t2;
37809
+ } else {
37810
+ t2 = $[1];
37811
+ }
37812
+ t1 = t2;
37813
+ var args = t1;
37814
+ var t3;
37815
+ var t4;
37816
+ if ($[2] !== fn.output) {
37817
+ t4 = formattedJsonOrRaw({
37818
+ value: fn.output
37819
+ });
37820
+ $[2] = fn.output;
37821
+ $[3] = t4;
37822
+ } else {
37823
+ t4 = $[3];
37824
+ }
37825
+ t3 = t4;
37826
+ var output = t3;
37827
+ var t5;
37828
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
37829
+ t5 = {
37830
+ whiteSpace: "pre",
37831
+ wordBreak: "break-word"
37832
+ };
37833
+ $[4] = t5;
37834
+ } else {
37835
+ t5 = $[4];
37836
+ }
37837
+ var t6;
37838
+ if ($[5] !== args) {
37839
+ t6 = args && /* @__PURE__ */ _jsx14(Box2, {
37840
+ children: args
37841
+ });
37842
+ $[5] = args;
37843
+ $[6] = t6;
37844
+ } else {
37845
+ t6 = $[6];
37846
+ }
37847
+ var t7;
37848
+ if ($[7] !== output) {
37849
+ t7 = output && /* @__PURE__ */ _jsx14(Box2, {
37850
+ children: output
37849
37851
  });
37850
- $[9] = runStep;
37851
- $[10] = toolCall;
37852
- $[11] = t1;
37852
+ $[7] = output;
37853
+ $[8] = t7;
37853
37854
  } else {
37854
- t1 = $[11];
37855
+ t7 = $[8];
37855
37856
  }
37856
- return t1;
37857
+ var t8;
37858
+ if ($[9] !== t6 || $[10] !== t7) {
37859
+ t8 = /* @__PURE__ */ _jsxs6(Code2, {
37860
+ variant: "ghost",
37861
+ color: "gold",
37862
+ style: t5,
37863
+ children: [
37864
+ t6,
37865
+ t7
37866
+ ]
37867
+ });
37868
+ $[9] = t6;
37869
+ $[10] = t7;
37870
+ $[11] = t8;
37871
+ } else {
37872
+ t8 = $[11];
37873
+ }
37874
+ return t8;
37857
37875
  };
37858
- // src/components/runSteps/RunStep/ToolCalls/Starting/index.tsx
37859
- import { Popover as Popover3, Text as Text2 } from "@radix-ui/themes";
37860
- import { CircleIcon as CircleIcon2 } from "@radix-ui/react-icons";
37876
+ // src/components/functions/FunctionBase/index.tsx
37861
37877
  import { jsx as _jsx15, jsxs as _jsxs7 } from "react/jsx-runtime";
37862
- var Starting = function() {
37863
- return /* @__PURE__ */ _jsxs7(Popover3.Root, {
37878
+ var FunctionBase = function(_ref) {
37879
+ var fn = _ref.fn, runStep = _ref.runStep, title2 = _ref.title;
37880
+ return /* @__PURE__ */ _jsxs7(Popover2.Root, {
37864
37881
  children: [
37865
- /* @__PURE__ */ _jsxs7(ToolCallBase, {
37866
- children: [
37867
- /* @__PURE__ */ _jsx15(CircleIcon2, {}),
37868
- /* @__PURE__ */ _jsx15(ToolCallTitle, {
37869
- children: "Starting actions"
37882
+ /* @__PURE__ */ _jsx15(Popover2.Trigger, {
37883
+ children: /* @__PURE__ */ _jsx15(Flex4, {
37884
+ children: /* @__PURE__ */ _jsxs7(ToolCallBase, {
37885
+ children: [
37886
+ /* @__PURE__ */ _jsx15(ToolCallIcon, {
37887
+ runStep: runStep
37888
+ }),
37889
+ /* @__PURE__ */ _jsx15(ToolCallTitle, {
37890
+ children: title2
37891
+ })
37892
+ ]
37870
37893
  })
37871
- ]
37894
+ })
37872
37895
  }),
37873
- /* @__PURE__ */ _jsx15(Popover3.Content, {
37896
+ /* @__PURE__ */ _jsx15(Popover2.Content, {
37874
37897
  style: {
37875
- maxHeight: "500px"
37898
+ maxHeight: "200px"
37876
37899
  },
37877
- children: /* @__PURE__ */ _jsx15(Text2, {
37878
- children: "Getting ready to connect to domain API"
37900
+ children: /* @__PURE__ */ _jsx15(Content2, {
37901
+ fn: fn
37879
37902
  })
37880
37903
  })
37881
37904
  ]
37882
37905
  });
37883
37906
  };
37884
- // src/components/runSteps/RunStep/ToolCalls/index.tsx
37885
- import { jsx as _jsx16, jsxs as _jsxs8 } from "react/jsx-runtime";
37886
- var Root = function(_ref) {
37887
- var children = _ref.children, className = _ref.className, style = _ref.style;
37888
- return /* @__PURE__ */ _jsx16(Flex4, {
37889
- direction: "column",
37890
- className: className,
37891
- style: style,
37892
- children: children
37907
+ // src/components/functions/Function/lib/title.ts
37908
+ var title = function(_ref) {
37909
+ var fn = _ref.fn, runStep = _ref.runStep;
37910
+ if (runStep.completed_at) {
37911
+ return "Finished ".concat(fn.name);
37912
+ } else if (runStep.cancelled_at) {
37913
+ return "Cancelled ".concat(fn.name);
37914
+ } else {
37915
+ return "Calling ".concat(fn.name);
37916
+ }
37917
+ };
37918
+ // src/components/functions/Function/index.tsx
37919
+ import { jsx as _jsx16 } from "react/jsx-runtime";
37920
+ var Function2 = function(_ref) {
37921
+ var fn = _ref.fn, runStep = _ref.runStep;
37922
+ return /* @__PURE__ */ _jsx16(FunctionBase, {
37923
+ fn: fn,
37924
+ runStep: runStep,
37925
+ title: title({
37926
+ runStep: runStep,
37927
+ fn: fn
37928
+ })
37893
37929
  });
37894
37930
  };
37895
- var ToolCalls = function(_ref2) {
37896
- var stepDetails = _ref2.stepDetails, runStep = _ref2.runStep, className = _ref2.className, style = _ref2.style;
37897
- return /* @__PURE__ */ _jsxs8(Root, {
37898
- className: className,
37899
- style: style,
37931
+ // src/components/toolCalls/StartingToolCalls/index.tsx
37932
+ import { Popover as Popover3, Text as Text2 } from "@radix-ui/themes";
37933
+ import { CircleIcon as CircleIcon2 } from "@radix-ui/react-icons";
37934
+ import { jsx as _jsx17, jsxs as _jsxs8 } from "react/jsx-runtime";
37935
+ var StartingToolCalls2 = function() {
37936
+ return /* @__PURE__ */ _jsxs8(Popover3.Root, {
37900
37937
  children: [
37901
- !stepDetails.tool_calls.length && /* @__PURE__ */ _jsx16(Starting, {}),
37902
- stepDetails.tool_calls.map(function(toolCall) {
37903
- return /* @__PURE__ */ _jsx16(ToolCall, {
37904
- toolCall: toolCall,
37905
- runStep: runStep
37906
- }, toolCall.id);
37938
+ /* @__PURE__ */ _jsxs8(ToolCallBase, {
37939
+ children: [
37940
+ /* @__PURE__ */ _jsx17(CircleIcon2, {}),
37941
+ /* @__PURE__ */ _jsx17(ToolCallTitle, {
37942
+ children: "Starting actions"
37943
+ })
37944
+ ]
37945
+ }),
37946
+ /* @__PURE__ */ _jsx17(Popover3.Content, {
37947
+ style: {
37948
+ maxHeight: "500px"
37949
+ },
37950
+ children: /* @__PURE__ */ _jsx17(Text2, {
37951
+ children: "Starting some actions"
37952
+ })
37907
37953
  })
37908
37954
  ]
37909
37955
  });
37910
37956
  };
37911
- ToolCalls.Root = Root;
37912
- ToolCalls.Starting = Starting;
37913
- ToolCalls.ToolCall = ToolCall;
37914
- // src/components/runSteps/RunStep/index.tsx
37915
- import { jsx as _jsx17 } from "react/jsx-runtime";
37916
- var RunStep = function(t0) {
37917
- var $ = _c6(4);
37918
- var runStep = t0.runStep, className = t0.className, style = t0.style;
37919
- if (runStep.step_details.type === "tool_calls") {
37920
- var t1;
37921
- if ($[0] !== className || $[1] !== runStep || $[2] !== style) {
37922
- t1 = /* @__PURE__ */ _jsx17(ToolCalls, {
37923
- className: className,
37924
- style: style,
37925
- stepDetails: runStep.step_details,
37926
- runStep: runStep
37927
- });
37928
- $[0] = className;
37929
- $[1] = runStep;
37930
- $[2] = style;
37931
- $[3] = t1;
37932
- } else {
37933
- t1 = $[3];
37934
- }
37935
- return t1;
37936
- }
37937
- return null;
37938
- };
37939
- RunStep.ToolCalls = ToolCalls;
37940
37957
  // src/contexts/components/ComponentsContext/index.tsx
37941
37958
  var ComponentsContext = /* @__PURE__ */ createContext3({
37942
37959
  components: {
37943
- RunStep: RunStep
37960
+ RunStep: RunStep,
37961
+ Function: Function2,
37962
+ StartingToolCalls: StartingToolCalls2
37944
37963
  }
37945
37964
  });
37946
37965
  // src/components/runSteps/RunSteps/index.tsx
37947
37966
  import { jsx as _jsx18 } from "react/jsx-runtime";
37948
37967
  var RunSteps = function(t0) {
37949
- var $ = _c7(7);
37968
+ var $ = _c8(7);
37950
37969
  var runSteps = t0.runSteps;
37951
- var componentsContext = useContext3(ComponentsContext);
37970
+ var componentsContext = useContext4(ComponentsContext);
37952
37971
  var Component2 = componentsContext.components.RunStep;
37953
37972
  var t1;
37954
37973
  if ($[0] !== Component2 || $[1] !== runSteps) {
@@ -37985,11 +38004,11 @@ var RunSteps = function(t0) {
37985
38004
  return t2;
37986
38005
  };
37987
38006
  // src/hooks/messages/useIsMutatingMessage/index.ts
37988
- import { c as _c8 } from "react-compiler-runtime";
38007
+ import { c as _c9 } from "react-compiler-runtime";
37989
38008
  import { useMemo as useMemo2 } from "react";
37990
38009
  import { useIsMutating } from "@tanstack/react-query";
37991
38010
  var useIsMutatingMessage = function() {
37992
- var $ = _c8(2);
38011
+ var $ = _c9(2);
37993
38012
  var threadContext = useSuperinterfaceContext();
37994
38013
  var t0;
37995
38014
  if ($[0] !== threadContext.variables) {
@@ -38018,13 +38037,13 @@ var MessageContext = /* @__PURE__ */ createContext4({
38018
38037
  // src/components/threads/Thread/Message/Provider.tsx
38019
38038
  var Provider = MessageContext.Provider;
38020
38039
  // src/components/threads/Thread/Message/Attachments/index.tsx
38021
- import { c as _c9 } from "react-compiler-runtime";
38040
+ import { c as _c10 } from "react-compiler-runtime";
38022
38041
  import { Flex as Flex6, Badge } from "@radix-ui/themes";
38023
38042
  import { FileIcon } from "@radix-ui/react-icons";
38024
38043
  import { jsx as _jsx19, jsxs as _jsxs9 } from "react/jsx-runtime";
38025
38044
  var Attachments = function(t0) {
38026
38045
  var _message$attachments;
38027
- var $ = _c9(4);
38046
+ var $ = _c10(4);
38028
38047
  var message = t0.message;
38029
38048
  if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
38030
38049
  return null;
@@ -38062,9 +38081,9 @@ var Attachments = function(t0) {
38062
38081
  return t3;
38063
38082
  };
38064
38083
  // src/components/messages/MessageContent/ContentPart/index.tsx
38065
- import { c as _c24 } from "react-compiler-runtime";
38084
+ import { c as _c25 } from "react-compiler-runtime";
38066
38085
  // src/components/messages/MessageContent/ContentPart/TextContent.tsx
38067
- import { c as _c22 } from "react-compiler-runtime";
38086
+ import { c as _c23 } from "react-compiler-runtime";
38068
38087
  import React, { useState as useState3, useEffect as useEffect2, useMemo as useMemo9 } from "react";
38069
38088
  import { Badge as Badge2 } from "@radix-ui/themes";
38070
38089
  import { compile } from "@mdx-js/mdx";
@@ -38212,7 +38231,7 @@ var recmaFallbackComponentPlugin = function() {
38212
38231
  };
38213
38232
  };
38214
38233
  // src/hooks/markdown/useMarkdownContext/index.ts
38215
- import { useContext as useContext5 } from "react";
38234
+ import { useContext as useContext6 } from "react";
38216
38235
  // src/contexts/markdown/MarkdownContext/index.ts
38217
38236
  import { createContext as createContext6 } from "react";
38218
38237
  // src/contexts/markdown/MarkdownContext/lib/components/index.tsx
@@ -38316,16 +38335,16 @@ var Pre = function(_ref) {
38316
38335
  });
38317
38336
  };
38318
38337
  // src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
38319
- import { c as _c14 } from "react-compiler-runtime";
38338
+ import { c as _c15 } from "react-compiler-runtime";
38320
38339
  import { Code as RadixCode } from "@radix-ui/themes";
38321
38340
  // src/components/suggestions/Suggestions/index.tsx
38322
- import { c as _c13 } from "react-compiler-runtime";
38341
+ import { c as _c14 } from "react-compiler-runtime";
38323
38342
  import { useMemo as useMemo6 } from "react";
38324
38343
  // src/hooks/messages/useLatestMessage/index.ts
38325
- import { c as _c11 } from "react-compiler-runtime";
38344
+ import { c as _c12 } from "react-compiler-runtime";
38326
38345
  import { useMemo as useMemo4 } from "react";
38327
38346
  // src/hooks/messages/useMessages/index.tsx
38328
- import { c as _c10 } from "react-compiler-runtime";
38347
+ import { c as _c11 } from "react-compiler-runtime";
38329
38348
  import { useMemo as useMemo3 } from "react";
38330
38349
  import { useInfiniteQuery, useQueryClient } from "@tanstack/react-query";
38331
38350
  // src/lib/threads/queryOptions/index.ts
@@ -38599,7 +38618,7 @@ var messages = function(_ref) {
38599
38618
  }, []);
38600
38619
  };
38601
38620
  var useMessages = function() {
38602
- var $ = _c10(9);
38621
+ var $ = _c11(9);
38603
38622
  var queryClient = useQueryClient();
38604
38623
  var threadContext = useSuperinterfaceContext();
38605
38624
  var superinterfaceContext = useSuperinterfaceContext();
@@ -38688,7 +38707,7 @@ function _toPrimitive5(t, r) {
38688
38707
  return ("string" === r ? String : Number)(t);
38689
38708
  }
38690
38709
  var useLatestMessage = function() {
38691
- var $ = _c11(3);
38710
+ var $ = _c12(3);
38692
38711
  var props = useMessages();
38693
38712
  var t0;
38694
38713
  var t1 = props.messages[0] || null;
@@ -38712,7 +38731,7 @@ import { isEmpty } from "radash";
38712
38731
  import { onlyText } from "react-children-utilities";
38713
38732
  import { Flex as Flex7 } from "@radix-ui/themes";
38714
38733
  // src/components/suggestions/Suggestions/Item.tsx
38715
- import { c as _c12 } from "react-compiler-runtime";
38734
+ import { c as _c13 } from "react-compiler-runtime";
38716
38735
  import { ArrowUpIcon } from "@radix-ui/react-icons";
38717
38736
  import { Text as Text4, Button as Button2, Spinner } from "@radix-ui/themes";
38718
38737
  // src/hooks/messages/useCreateMessage/index.ts
@@ -40126,7 +40145,7 @@ var useCreateMessage = function useCreateMessage2() {
40126
40145
  // src/components/suggestions/Suggestions/Item.tsx
40127
40146
  import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
40128
40147
  // src/hooks/toasts/useToasts/index.ts
40129
- import { useContext as useContext4 } from "react";
40148
+ import { useContext as useContext5 } from "react";
40130
40149
  // src/contexts/toasts/ToastsContext/index.ts
40131
40150
  import { createContext as createContext5 } from "react";
40132
40151
  var ToastsContext = /* @__PURE__ */ createContext5({
@@ -40135,7 +40154,7 @@ var ToastsContext = /* @__PURE__ */ createContext5({
40135
40154
  });
40136
40155
  // src/hooks/toasts/useToasts/index.ts
40137
40156
  var useToasts = function() {
40138
- return useContext4(ToastsContext);
40157
+ return useContext5(ToastsContext);
40139
40158
  };
40140
40159
  // src/lib/errors/createMessageDefaultOnError.ts
40141
40160
  var createMessageDefaultOnError = function(_ref) {
@@ -40208,7 +40227,7 @@ function _toPrimitive19(t, r) {
40208
40227
  return ("string" === r ? String : Number)(t);
40209
40228
  }
40210
40229
  var Item = function(t0) {
40211
- var $ = _c12(16);
40230
+ var $ = _c13(16);
40212
40231
  var suggestion = t0.suggestion, isDisabled = t0.isDisabled, className = t0.className, style = t0.style;
40213
40232
  var addToast = useToasts().addToast;
40214
40233
  var queryClient = useQueryClient3();
@@ -40336,7 +40355,7 @@ var Content4 = function(_ref) {
40336
40355
  import { jsx as _jsx29 } from "react/jsx-runtime";
40337
40356
  var Suggestions = function(t0) {
40338
40357
  var _latestMessageProps$l;
40339
- var $ = _c13(4);
40358
+ var $ = _c14(4);
40340
40359
  var children = t0.children, className = t0.className, style = t0.style;
40341
40360
  var latestMessageProps = useLatestMessage();
40342
40361
  var t1;
@@ -40368,7 +40387,7 @@ Suggestions.Item = Item;
40368
40387
  // src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
40369
40388
  import { jsx as _jsx30 } from "react/jsx-runtime";
40370
40389
  var Code3 = function(t0) {
40371
- var $ = _c14(5);
40390
+ var $ = _c15(5);
40372
40391
  var children = t0.children, className = t0.className;
40373
40392
  if (className === "language-suggestions") {
40374
40393
  var _t;
@@ -40406,7 +40425,7 @@ var Code3 = function(t0) {
40406
40425
  return t2;
40407
40426
  };
40408
40427
  // src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
40409
- import { c as _c19 } from "react-compiler-runtime";
40428
+ import { c as _c20 } from "react-compiler-runtime";
40410
40429
  // src/components/images/Image.tsx
40411
40430
  import { Box as Box8 } from "@radix-ui/themes";
40412
40431
  import { jsx as _jsx31 } from "react/jsx-runtime";
@@ -40515,13 +40534,13 @@ import { Flex as Flex8 } from "@radix-ui/themes";
40515
40534
  import "@vidstack/react/player/styles/base.css";
40516
40535
  import { MediaPlayer, MediaProvider, Controls } from "@vidstack/react";
40517
40536
  // src/components/media/PlayButton.tsx
40518
- import { c as _c15 } from "react-compiler-runtime";
40537
+ import { c as _c16 } from "react-compiler-runtime";
40519
40538
  import { PlayButton as VidstackPlayButton, useMediaState } from "@vidstack/react";
40520
40539
  import { IconButton } from "@radix-ui/themes";
40521
40540
  import { PlayIcon, PauseIcon } from "@radix-ui/react-icons";
40522
40541
  import { jsx as _jsx32 } from "react/jsx-runtime";
40523
40542
  var PlayButton = function() {
40524
- var $ = _c15(2);
40543
+ var $ = _c16(2);
40525
40544
  var isPaused = useMediaState("paused");
40526
40545
  var t0;
40527
40546
  if ($[0] !== isPaused) {
@@ -40540,13 +40559,13 @@ var PlayButton = function() {
40540
40559
  return t0;
40541
40560
  };
40542
40561
  // src/components/media/VolumeButton.tsx
40543
- import { c as _c16 } from "react-compiler-runtime";
40562
+ import { c as _c17 } from "react-compiler-runtime";
40544
40563
  import { MuteButton, useMediaState as useMediaState2, useMediaRemote } from "@vidstack/react";
40545
40564
  import { IconButton as IconButton2, HoverCard, Slider } from "@radix-ui/themes";
40546
40565
  import { SpeakerModerateIcon, SpeakerOffIcon } from "@radix-ui/react-icons";
40547
40566
  import { jsx as _jsx33, jsxs as _jsxs11 } from "react/jsx-runtime";
40548
40567
  var VolumeButton = function() {
40549
- var $ = _c16(13);
40568
+ var $ = _c17(13);
40550
40569
  var volume = useMediaState2("volume");
40551
40570
  var isMuted = useMediaState2("muted");
40552
40571
  var remote = useMediaRemote();
@@ -40626,13 +40645,13 @@ var VolumeButton = function() {
40626
40645
  return t5;
40627
40646
  };
40628
40647
  // src/components/media/Time.tsx
40629
- import { c as _c17 } from "react-compiler-runtime";
40648
+ import { c as _c18 } from "react-compiler-runtime";
40630
40649
  import { useState, useEffect, useMemo as useMemo7 } from "react";
40631
40650
  import { useMediaState as useMediaState3, useMediaRemote as useMediaRemote2 } from "@vidstack/react";
40632
40651
  import { Slider as Slider2 } from "@radix-ui/themes";
40633
40652
  import { jsx as _jsx34 } from "react/jsx-runtime";
40634
40653
  var Time = function() {
40635
- var $ = _c17(17);
40654
+ var $ = _c18(17);
40636
40655
  var time = useMediaState3("currentTime");
40637
40656
  var duration = useMediaState3("duration");
40638
40657
  var seeking = useMediaState3("seeking");
@@ -40738,13 +40757,13 @@ var MediaContainer = function(_ref) {
40738
40757
  });
40739
40758
  };
40740
40759
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Video/FullscreenButton.tsx
40741
- import { c as _c18 } from "react-compiler-runtime";
40760
+ import { c as _c19 } from "react-compiler-runtime";
40742
40761
  import { FullscreenButton as VidstackFullscreenButton, useMediaState as useMediaState4 } from "@vidstack/react";
40743
40762
  import { IconButton as IconButton3 } from "@radix-ui/themes";
40744
40763
  import { EnterFullScreenIcon, ExitFullScreenIcon } from "@radix-ui/react-icons";
40745
40764
  import { jsx as _jsx36 } from "react/jsx-runtime";
40746
40765
  var FullscreenButton = function() {
40747
- var $ = _c18(2);
40766
+ var $ = _c19(2);
40748
40767
  var isFullscreen = useMediaState4("fullscreen");
40749
40768
  var t0;
40750
40769
  if ($[0] !== isFullscreen) {
@@ -40905,7 +40924,7 @@ function _toPrimitive21(t, r) {
40905
40924
  return ("string" === r ? String : Number)(t);
40906
40925
  }
40907
40926
  var Img = function(props) {
40908
- var $ = _c19(8);
40927
+ var $ = _c20(8);
40909
40928
  if (!props.src) {
40910
40929
  var t0;
40911
40930
  if ($[0] !== props) {
@@ -40961,13 +40980,13 @@ var Img = function(props) {
40961
40980
  }
40962
40981
  };
40963
40982
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
40964
- import { c as _c21 } from "react-compiler-runtime";
40983
+ import { c as _c22 } from "react-compiler-runtime";
40965
40984
  import { QuoteIcon } from "@radix-ui/react-icons";
40966
40985
  // src/components/annotations/FilePathAnnotation.tsx
40967
- import { c as _c20 } from "react-compiler-runtime";
40986
+ import { c as _c21 } from "react-compiler-runtime";
40968
40987
  import { jsx as _jsx40 } from "react/jsx-runtime";
40969
40988
  var FilePathAnnotation = function(t0) {
40970
- var $ = _c20(3);
40989
+ var $ = _c21(3);
40971
40990
  var annotation = t0.annotation, children = t0.children;
40972
40991
  var superinterfaceContext = useSuperinterfaceContext();
40973
40992
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -41041,7 +41060,7 @@ function _objectWithoutPropertiesLoose(r, e) {
41041
41060
  return t;
41042
41061
  }
41043
41062
  var Annotation = function(t0) {
41044
- var $ = _c21(9);
41063
+ var $ = _c22(9);
41045
41064
  var children;
41046
41065
  var rest;
41047
41066
  if ($[0] !== t0) {
@@ -41548,7 +41567,7 @@ var MarkdownContext = /* @__PURE__ */ createContext6({
41548
41567
  });
41549
41568
  // src/hooks/markdown/useMarkdownContext/index.ts
41550
41569
  var useMarkdownContext = function() {
41551
- return useContext5(MarkdownContext);
41570
+ return useContext6(MarkdownContext);
41552
41571
  };
41553
41572
  // src/lib/markdown/escapeInvalidTagNames.ts
41554
41573
  var isValidTagName = function(tagName) {
@@ -41560,7 +41579,7 @@ var escapeInvalidTagNames = function(markdown) {
41560
41579
  });
41561
41580
  };
41562
41581
  // ../../node_modules/react-error-boundary/dist/react-error-boundary.esm.js
41563
- import { createContext as createContext7, Component, createElement, useContext as useContext6, useState as useState2, useMemo as useMemo8, forwardRef } from "react";
41582
+ import { createContext as createContext7, Component, createElement, useContext as useContext7, useState as useState2, useMemo as useMemo8, forwardRef } from "react";
41564
41583
  var ErrorBoundaryContext = /* @__PURE__ */ createContext7(null);
41565
41584
  var initialState = {
41566
41585
  didCatch: false,
@@ -41757,7 +41776,7 @@ var evaluate = /* @__PURE__ */ function() {
41757
41776
  };
41758
41777
  }();
41759
41778
  var TextContent = function(t0) {
41760
- var $ = _c22(13);
41779
+ var $ = _c23(13);
41761
41780
  var content2 = t0.content;
41762
41781
  var _useMarkdownContext = useMarkdownContext(), getRemarkPlugins2 = _useMarkdownContext.getRemarkPlugins, components2 = _useMarkdownContext.components;
41763
41782
  var t1;
@@ -41894,10 +41913,10 @@ var TextContent = function(t0) {
41894
41913
  return t7;
41895
41914
  };
41896
41915
  // src/components/messages/MessageContent/ContentPart/ImageFileContent.tsx
41897
- import { c as _c23 } from "react-compiler-runtime";
41916
+ import { c as _c24 } from "react-compiler-runtime";
41898
41917
  import { jsx as _jsx45 } from "react/jsx-runtime";
41899
41918
  var ImageFileContent = function(t0) {
41900
- var $ = _c23(2);
41919
+ var $ = _c24(2);
41901
41920
  var content2 = t0.content;
41902
41921
  var superinterfaceContext = useSuperinterfaceContext();
41903
41922
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -41918,7 +41937,7 @@ var ImageFileContent = function(t0) {
41918
41937
  // src/components/messages/MessageContent/ContentPart/index.tsx
41919
41938
  import { jsx as _jsx46 } from "react/jsx-runtime";
41920
41939
  var ContentPart = function(t0) {
41921
- var $ = _c24(4);
41940
+ var $ = _c25(4);
41922
41941
  var content2 = t0.content;
41923
41942
  if (content2.type === "text") {
41924
41943
  var t1;
@@ -41963,7 +41982,7 @@ var MessageContent = function(_ref) {
41963
41982
  // src/components/threads/Thread/Message/index.tsx
41964
41983
  import { jsx as _jsx48, jsxs as _jsxs16 } from "react/jsx-runtime";
41965
41984
  var Message = function(t0) {
41966
- var $ = _c25(51);
41985
+ var $ = _c26(51);
41967
41986
  var message = t0.message, className = t0.className, style = t0.style;
41968
41987
  var t1;
41969
41988
  bb0: {
@@ -42219,10 +42238,10 @@ function _temp3(rs) {
42219
42238
  return rs.status === "in_progress";
42220
42239
  }
42221
42240
  // src/components/threads/Thread/Messages/Content/index.tsx
42222
- import { c as _c32 } from "react-compiler-runtime";
42241
+ import { c as _c33 } from "react-compiler-runtime";
42223
42242
  import { useEffect as useEffect3 } from "react";
42224
42243
  // src/hooks/messageGroups/useMessageGroups/index.ts
42225
- import { c as _c26 } from "react-compiler-runtime";
42244
+ import { c as _c27 } from "react-compiler-runtime";
42226
42245
  import { useMemo as useMemo11 } from "react";
42227
42246
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
42228
42247
  import _6 from "lodash";
@@ -42327,7 +42346,7 @@ var messageGroups = function(_ref) {
42327
42346
  };
42328
42347
  // src/hooks/messageGroups/useMessageGroups/index.ts
42329
42348
  var useMessageGroups = function(t0) {
42330
- var $ = _c26(4);
42349
+ var $ = _c27(4);
42331
42350
  var messages2 = t0.messages;
42332
42351
  var t1;
42333
42352
  var t2;
@@ -42354,16 +42373,16 @@ var useMessageGroups = function(t0) {
42354
42373
  return t1;
42355
42374
  };
42356
42375
  // src/components/skeletons/MessagesSkeleton/index.tsx
42357
- import { c as _c28 } from "react-compiler-runtime";
42376
+ import { c as _c29 } from "react-compiler-runtime";
42358
42377
  import { forwardRef as forwardRef3 } from "react";
42359
42378
  import { Flex as Flex13, Avatar, Box as Box10, Skeleton as Skeleton2 } from "@radix-ui/themes";
42360
42379
  // src/components/messageGroups/MessageGroupBase/index.tsx
42361
- import { c as _c27 } from "react-compiler-runtime";
42380
+ import { c as _c28 } from "react-compiler-runtime";
42362
42381
  import { forwardRef as forwardRef2 } from "react";
42363
42382
  import { Flex as Flex11, Container } from "@radix-ui/themes";
42364
42383
  import { jsx as _jsx49 } from "react/jsx-runtime";
42365
42384
  var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0, ref) {
42366
- var $ = _c27(5);
42385
+ var $ = _c28(5);
42367
42386
  var children = t0.children;
42368
42387
  var t1;
42369
42388
  if ($[0] !== children) {
@@ -42411,7 +42430,7 @@ var Name = function(_ref) {
42411
42430
  // src/components/skeletons/MessagesSkeleton/index.tsx
42412
42431
  import { jsx as _jsx51, jsxs as _jsxs17 } from "react/jsx-runtime";
42413
42432
  var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
42414
- var $ = _c28(7);
42433
+ var $ = _c29(7);
42415
42434
  var t0;
42416
42435
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42417
42436
  t0 = /* @__PURE__ */ _jsx51(Skeleton2, {
@@ -42502,12 +42521,12 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
42502
42521
  return t5;
42503
42522
  });
42504
42523
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
42505
- import { c as _c31 } from "react-compiler-runtime";
42506
- import { useContext as useContext9 } from "react";
42524
+ import { c as _c32 } from "react-compiler-runtime";
42525
+ import { useContext as useContext10 } from "react";
42507
42526
  import { Box as Box11 } from "@radix-ui/themes";
42508
42527
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
42509
- import { c as _c29 } from "react-compiler-runtime";
42510
- import { useContext as useContext7 } from "react";
42528
+ import { c as _c30 } from "react-compiler-runtime";
42529
+ import { useContext as useContext8 } from "react";
42511
42530
  import { Flex as Flex14 } from "@radix-ui/themes";
42512
42531
  // src/contexts/assistants/AssistantAvatarContext/index.tsx
42513
42532
  import { createContext as createContext8 } from "react";
@@ -42521,8 +42540,8 @@ var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx
42521
42540
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
42522
42541
  import { jsx as _jsx53 } from "react/jsx-runtime";
42523
42542
  var AssistantAvatar = function() {
42524
- var $ = _c29(3);
42525
- var AssistantAvatarContextValue = useContext7(AssistantAvatarContext);
42543
+ var $ = _c30(3);
42544
+ var AssistantAvatarContextValue = useContext8(AssistantAvatarContext);
42526
42545
  var t0;
42527
42546
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42528
42547
  t0 = {
@@ -42553,8 +42572,8 @@ var AssistantAvatar = function() {
42553
42572
  import { createContext as createContext9 } from "react";
42554
42573
  var AssistantNameContext = /* @__PURE__ */ createContext9("Assistant");
42555
42574
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
42556
- import { c as _c30 } from "react-compiler-runtime";
42557
- import { useContext as useContext8 } from "react";
42575
+ import { c as _c31 } from "react-compiler-runtime";
42576
+ import { useContext as useContext9 } from "react";
42558
42577
  import { Flex as Flex15 } from "@radix-ui/themes";
42559
42578
  // src/contexts/users/UserAvatarContext/index.tsx
42560
42579
  import { createContext as createContext10 } from "react";
@@ -42568,8 +42587,8 @@ var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */ _jsx54(A
42568
42587
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
42569
42588
  import { jsx as _jsx55 } from "react/jsx-runtime";
42570
42589
  var UserAvatar = function() {
42571
- var $ = _c30(3);
42572
- var UserAvatarContextValue = useContext8(UserAvatarContext);
42590
+ var $ = _c31(3);
42591
+ var UserAvatarContextValue = useContext9(UserAvatarContext);
42573
42592
  var t0;
42574
42593
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42575
42594
  t0 = {
@@ -42613,9 +42632,9 @@ var Content5 = function(_ref) {
42613
42632
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
42614
42633
  import { jsx as _jsx57, jsxs as _jsxs18 } from "react/jsx-runtime";
42615
42634
  var MessageGroup = function(t0) {
42616
- var $ = _c31(12);
42635
+ var $ = _c32(12);
42617
42636
  var messageGroup = t0.messageGroup;
42618
- var assistantNameContext = useContext9(AssistantNameContext);
42637
+ var assistantNameContext = useContext10(AssistantNameContext);
42619
42638
  var t1;
42620
42639
  if ($[0] !== messageGroup.role) {
42621
42640
  t1 = messageGroup.role === "user" ? /* @__PURE__ */ _jsx57(UserAvatar, {}) : /* @__PURE__ */ _jsx57(AssistantAvatar, {});
@@ -42679,7 +42698,7 @@ var MessageGroup = function(t0) {
42679
42698
  // src/components/threads/Thread/Messages/Content/index.tsx
42680
42699
  import { jsx as _jsx58, Fragment as _Fragment3 } from "react/jsx-runtime";
42681
42700
  var Content6 = function() {
42682
- var $ = _c32(11);
42701
+ var $ = _c33(11);
42683
42702
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
42684
42703
  var addToast = useToasts().addToast;
42685
42704
  var t0;
@@ -42753,17 +42772,17 @@ function _temp4(messageGroup) {
42753
42772
  }, messageGroup.id);
42754
42773
  }
42755
42774
  // src/components/threads/Thread/Messages/Progress/index.tsx
42756
- import { c as _c34 } from "react-compiler-runtime";
42775
+ import { c as _c35 } from "react-compiler-runtime";
42757
42776
  import { useMemo as useMemo12 } from "react";
42758
42777
  // src/components/skeletons/StartingSkeleton/index.tsx
42759
- import { c as _c33 } from "react-compiler-runtime";
42760
- import { useContext as useContext10 } from "react";
42778
+ import { c as _c34 } from "react-compiler-runtime";
42779
+ import { useContext as useContext11 } from "react";
42761
42780
  import { Box as Box12 } from "@radix-ui/themes";
42762
42781
  import { jsx as _jsx59, jsxs as _jsxs19 } from "react/jsx-runtime";
42763
42782
  var StartingSkeleton = function(t0) {
42764
- var $ = _c33(7);
42783
+ var $ = _c34(7);
42765
42784
  var children = t0.children;
42766
- var assistantNameContext = useContext10(AssistantNameContext);
42785
+ var assistantNameContext = useContext11(AssistantNameContext);
42767
42786
  var t1;
42768
42787
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42769
42788
  t1 = /* @__PURE__ */ _jsx59(AssistantAvatar, {});
@@ -42813,7 +42832,7 @@ var StartingSkeleton = function(t0) {
42813
42832
  // src/components/threads/Thread/Messages/Progress/index.tsx
42814
42833
  import { jsx as _jsx60 } from "react/jsx-runtime";
42815
42834
  var Progress = function() {
42816
- var $ = _c34(1);
42835
+ var $ = _c35(1);
42817
42836
  var latestMessage = useLatestMessage().latestMessage;
42818
42837
  var isMutatingMessage = useIsMutatingMessage();
42819
42838
  var t0;
@@ -42856,7 +42875,7 @@ var Progress = function() {
42856
42875
  return t1;
42857
42876
  };
42858
42877
  // src/components/threads/Thread/Messages/Root/index.tsx
42859
- import { c as _c35 } from "react-compiler-runtime";
42878
+ import { c as _c36 } from "react-compiler-runtime";
42860
42879
  import { Flex as Flex17 } from "@radix-ui/themes";
42861
42880
  // src/hooks/misc/useInfiniteScroll/index.tsx
42862
42881
  import { useRef as useRef3 } from "react";
@@ -42954,7 +42973,7 @@ function _toPrimitive26(t, r) {
42954
42973
  return ("string" === r ? String : Number)(t);
42955
42974
  }
42956
42975
  var Root2 = function(t0) {
42957
- var $ = _c35(18);
42976
+ var $ = _c36(18);
42958
42977
  var children = t0.children, style = t0.style, className = t0.className;
42959
42978
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
42960
42979
  var t1;
@@ -43037,10 +43056,10 @@ var Root2 = function(t0) {
43037
43056
  return t6;
43038
43057
  };
43039
43058
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
43040
- import { c as _c36 } from "react-compiler-runtime";
43059
+ import { c as _c37 } from "react-compiler-runtime";
43041
43060
  import { jsx as _jsx62 } from "react/jsx-runtime";
43042
43061
  var NextPageSkeleton = function() {
43043
- var $ = _c36(1);
43062
+ var $ = _c37(1);
43044
43063
  var hasNextPage = useMessages().hasNextPage;
43045
43064
  if (!hasNextPage) {
43046
43065
  return null;
@@ -43082,11 +43101,11 @@ Messages.Root = Root2;
43082
43101
  Messages.Message = Message;
43083
43102
  Messages.NextPageSkeleton = NextPageSkeleton;
43084
43103
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
43085
- import { c as _c37 } from "react-compiler-runtime";
43104
+ import { c as _c38 } from "react-compiler-runtime";
43086
43105
  import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
43087
43106
  import { IconButton as IconButton5, Flex as Flex19 } from "@radix-ui/themes";
43088
43107
  // src/hooks/messages/useMessageFormContext/index.ts
43089
- import { useContext as useContext11 } from "react";
43108
+ import { useContext as useContext12 } from "react";
43090
43109
  // src/contexts/messages/MessageFormContext/index.ts
43091
43110
  import { createContext as createContext11 } from "react";
43092
43111
  var MessageFormContext = /* @__PURE__ */ createContext11({
@@ -43099,7 +43118,7 @@ var MessageFormContext = /* @__PURE__ */ createContext11({
43099
43118
  });
43100
43119
  // src/hooks/messages/useMessageFormContext/index.ts
43101
43120
  var useMessageFormContext = function() {
43102
- return useContext11(MessageFormContext);
43121
+ return useContext12(MessageFormContext);
43103
43122
  };
43104
43123
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
43105
43124
  import { jsx as _jsx64 } from "react/jsx-runtime";
@@ -43157,7 +43176,7 @@ var Root3 = function(_ref) {
43157
43176
  });
43158
43177
  };
43159
43178
  var Button3 = function(props) {
43160
- var $ = _c37(10);
43179
+ var $ = _c38(10);
43161
43180
  var superinterfaceContext = useSuperinterfaceContext();
43162
43181
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
43163
43182
  if (isLoading) {
@@ -43441,9 +43460,9 @@ var usePrevious = function(state) {
43441
43460
  return ref.current;
43442
43461
  };
43443
43462
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
43444
- import { useContext as useContext12, useMemo as useMemo14, useRef as useRef5, useEffect as useEffect6 } from "react";
43463
+ import { useContext as useContext13, useMemo as useMemo14, useRef as useRef5, useEffect as useEffect6 } from "react";
43445
43464
  // src/components/textareas/TextareaBase/index.tsx
43446
- import { c as _c38 } from "react-compiler-runtime";
43465
+ import { c as _c39 } from "react-compiler-runtime";
43447
43466
  import { forwardRef as forwardRef4 } from "react";
43448
43467
  import TextareaAutosize from "react-textarea-autosize";
43449
43468
  import { jsx as _jsx66, Fragment as _Fragment4, jsxs as _jsxs22 } from "react/jsx-runtime";
@@ -43514,7 +43533,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
43514
43533
  }
43515
43534
  var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
43516
43535
  var _className;
43517
- var $ = _c38(14);
43536
+ var $ = _c39(14);
43518
43537
  var className;
43519
43538
  var rest;
43520
43539
  var style;
@@ -43648,7 +43667,7 @@ var Root5 = function(_ref) {
43648
43667
  var Input = function(props) {
43649
43668
  "use no memo";
43650
43669
  var _props$placeholder;
43651
- var assistantNameContext = useContext12(AssistantNameContext);
43670
+ var assistantNameContext = useContext13(AssistantNameContext);
43652
43671
  var register = useFormContext().register;
43653
43672
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
43654
43673
  var isSubmitDisabled = useMemo14(function() {
@@ -43697,7 +43716,7 @@ var Control = function(props) {
43697
43716
  Control.Root = Root5;
43698
43717
  Control.Input = Input;
43699
43718
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
43700
- import { c as _c39 } from "react-compiler-runtime";
43719
+ import { c as _c40 } from "react-compiler-runtime";
43701
43720
  import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
43702
43721
  import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
43703
43722
  import { jsx as _jsx68, jsxs as _jsxs23 } from "react/jsx-runtime";
@@ -43745,7 +43764,7 @@ function _toPrimitive31(t, r) {
43745
43764
  return ("string" === r ? String : Number)(t);
43746
43765
  }
43747
43766
  var Preview = function(props) {
43748
- var $ = _c39(8);
43767
+ var $ = _c40(8);
43749
43768
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
43750
43769
  if (!files.length) {
43751
43770
  return null;
@@ -43843,7 +43862,7 @@ import dayjs2 from "dayjs";
43843
43862
  import { FilePlusIcon } from "@radix-ui/react-icons";
43844
43863
  import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
43845
43864
  // src/hooks/files/useCreateFile/index.ts
43846
- import { c as _c40 } from "react-compiler-runtime";
43865
+ import { c as _c41 } from "react-compiler-runtime";
43847
43866
  import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
43848
43867
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
43849
43868
  var formData = function(variables) {
@@ -44079,7 +44098,7 @@ function _toPrimitive34(t, r) {
44079
44098
  return ("string" === r ? String : Number)(t);
44080
44099
  }
44081
44100
  var useCreateFile = function(t0) {
44082
- var $ = _c40(15);
44101
+ var $ = _c41(15);
44083
44102
  var t1;
44084
44103
  if ($[0] !== t0) {
44085
44104
  t1 = t0 === void 0 ? {
@@ -44622,7 +44641,7 @@ import { Flex as Flex25 } from "@radix-ui/themes";
44622
44641
  // src/components/threads/Thread/Provider/index.tsx
44623
44642
  var Provider2 = SuperinterfaceProvider;
44624
44643
  // src/components/toasts/ToastsProvider/index.tsx
44625
- import { c as _c41 } from "react-compiler-runtime";
44644
+ import { c as _c42 } from "react-compiler-runtime";
44626
44645
  import { useState as useState5, useCallback as useCallback4 } from "react";
44627
44646
  import * as Toast2 from "@radix-ui/react-toast";
44628
44647
  // src/components/toasts/ToastsProvider/CustomToast.tsx
@@ -44661,7 +44680,7 @@ var CustomToast = function(_ref) {
44661
44680
  // src/components/toasts/ToastsProvider/index.tsx
44662
44681
  import { jsx as _jsx73, jsxs as _jsxs27 } from "react/jsx-runtime";
44663
44682
  var ToastsProvider = function(t0) {
44664
- var $ = _c41(15);
44683
+ var $ = _c42(15);
44665
44684
  var children = t0.children, t1 = t0.bottom;
44666
44685
  var bottom = t1 === void 0 ? 0 : t1;
44667
44686
  var t2;
@@ -44904,12 +44923,12 @@ Thread.Root = Root8;
44904
44923
  Thread.Messages = Messages;
44905
44924
  Thread.MessageForm = MessageForm;
44906
44925
  // src/hooks/messages/useMessageContext/index.ts
44907
- import { useContext as useContext13 } from "react";
44926
+ import { useContext as useContext14 } from "react";
44908
44927
  var useMessageContext = function() {
44909
- return useContext13(MessageContext);
44928
+ return useContext14(MessageContext);
44910
44929
  };
44911
44930
  // src/hooks/assistants/useAssistant/index.ts
44912
- import { c as _c42 } from "react-compiler-runtime";
44931
+ import { c as _c43 } from "react-compiler-runtime";
44913
44932
  import { useMemo as useMemo15 } from "react";
44914
44933
  import { useQuery } from "@tanstack/react-query";
44915
44934
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -45059,7 +45078,7 @@ function _toPrimitive40(t, r) {
45059
45078
  return ("string" === r ? String : Number)(t);
45060
45079
  }
45061
45080
  var useAssistant = function(t0) {
45062
- var $ = _c42(6);
45081
+ var $ = _c43(6);
45063
45082
  var assistantId = t0.assistantId;
45064
45083
  var superinterfaceContext = useSuperinterfaceContext();
45065
45084
  var t1;
@@ -45092,7 +45111,7 @@ var useAssistant = function(t0) {
45092
45111
  return t2;
45093
45112
  };
45094
45113
  // src/components/threads/ThreadDialog/Provider/index.tsx
45095
- import { c as _c43 } from "react-compiler-runtime";
45114
+ import { c as _c44 } from "react-compiler-runtime";
45096
45115
  import { useState as useState6 } from "react";
45097
45116
  // src/contexts/threads/ThreadDialogContext/index.ts
45098
45117
  import { createContext as createContext12 } from "react";
@@ -45101,14 +45120,14 @@ var ThreadDialogContext = /* @__PURE__ */ createContext12({
45101
45120
  setIsOpen: function() {}
45102
45121
  });
45103
45122
  // src/hooks/threads/useThreadDialogContext/index.ts
45104
- import { useContext as useContext14 } from "react";
45123
+ import { useContext as useContext15 } from "react";
45105
45124
  var useThreadDialogContext = function() {
45106
- return useContext14(ThreadDialogContext);
45125
+ return useContext15(ThreadDialogContext);
45107
45126
  };
45108
45127
  // src/components/threads/ThreadDialog/Provider/index.tsx
45109
45128
  import { jsx as _jsx76 } from "react/jsx-runtime";
45110
45129
  var Provider4 = function(t0) {
45111
- var $ = _c43(5);
45130
+ var $ = _c44(5);
45112
45131
  var children = t0.children;
45113
45132
  var threadDialogContext = useThreadDialogContext();
45114
45133
  var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
@@ -45146,7 +45165,7 @@ var Root9 = function(_ref) {
45146
45165
  });
45147
45166
  };
45148
45167
  // src/components/threads/ThreadDialog/Trigger/index.tsx
45149
- import { c as _c44 } from "react-compiler-runtime";
45168
+ import { c as _c45 } from "react-compiler-runtime";
45150
45169
  import { Flex as Flex26 } from "@radix-ui/themes";
45151
45170
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
45152
45171
  import { IconButton as IconButton8 } from "@radix-ui/themes";
@@ -45249,7 +45268,7 @@ function _toPrimitive42(t, r) {
45249
45268
  return ("string" === r ? String : Number)(t);
45250
45269
  }
45251
45270
  var Root10 = function(t0) {
45252
- var $ = _c44(14);
45271
+ var $ = _c45(14);
45253
45272
  var children = t0.children, style = t0.style, className = t0.className;
45254
45273
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
45255
45274
  var t1 = isOpen ? "none" : "flex";
@@ -45330,15 +45349,15 @@ function _temp7(prev) {
45330
45349
  return !prev;
45331
45350
  }
45332
45351
  // src/components/threads/ThreadDialog/Content/index.tsx
45333
- import { c as _c46 } from "react-compiler-runtime";
45352
+ import { c as _c47 } from "react-compiler-runtime";
45334
45353
  import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
45335
45354
  // src/components/threads/ThreadDialog/Close/index.tsx
45336
- import { c as _c45 } from "react-compiler-runtime";
45355
+ import { c as _c46 } from "react-compiler-runtime";
45337
45356
  import { Cross1Icon } from "@radix-ui/react-icons";
45338
45357
  import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
45339
45358
  import { jsx as _jsx80 } from "react/jsx-runtime";
45340
45359
  var Close = function() {
45341
- var $ = _c45(9);
45360
+ var $ = _c46(9);
45342
45361
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
45343
45362
  var t0 = isOpen ? "flex" : "none";
45344
45363
  var t1;
@@ -45454,7 +45473,7 @@ function _toPrimitive43(t, r) {
45454
45473
  return ("string" === r ? String : Number)(t);
45455
45474
  }
45456
45475
  var Root11 = function(t0) {
45457
- var $ = _c46(19);
45476
+ var $ = _c47(19);
45458
45477
  var children = t0.children, className = t0.className, style = t0.style;
45459
45478
  var isOpen = useThreadDialogContext().isOpen;
45460
45479
  if (!isOpen) {
@@ -45653,7 +45672,7 @@ ThreadDialog.Root = Root9;
45653
45672
  ThreadDialog.Trigger = Trigger;
45654
45673
  ThreadDialog.Content = Content7;
45655
45674
  // src/components/threads/AudioThread/Root/index.tsx
45656
- import { c as _c52 } from "react-compiler-runtime";
45675
+ import { c as _c53 } from "react-compiler-runtime";
45657
45676
  import { Flex as Flex29 } from "@radix-ui/themes";
45658
45677
  // src/contexts/threads/AudioThreadContext/index.ts
45659
45678
  import { createContext as createContext13 } from "react";
@@ -45661,17 +45680,17 @@ var AudioThreadContext = /* @__PURE__ */ createContext13({
45661
45680
  audioRuntime: null
45662
45681
  });
45663
45682
  // src/hooks/threads/useAudioThreadContext/index.ts
45664
- import { useContext as useContext15 } from "react";
45683
+ import { useContext as useContext16 } from "react";
45665
45684
  var useAudioThreadContext = function() {
45666
- return useContext15(AudioThreadContext);
45685
+ return useContext16(AudioThreadContext);
45667
45686
  };
45668
45687
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
45669
- import { c as _c51 } from "react-compiler-runtime";
45688
+ import { c as _c52 } from "react-compiler-runtime";
45670
45689
  // src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
45671
- import { c as _c50 } from "react-compiler-runtime";
45690
+ import { c as _c51 } from "react-compiler-runtime";
45672
45691
  import { useMemo as useMemo18 } from "react";
45673
45692
  // src/hooks/misc/usePermission/index.ts
45674
- import { c as _c47 } from "react-compiler-runtime";
45693
+ import { c as _c48 } from "react-compiler-runtime";
45675
45694
  import { useEffect as useEffect7, useState as useState7 } from "react";
45676
45695
  // src/hooks/misc/usePermission/util.ts
45677
45696
  var noop = function() {};
@@ -45695,7 +45714,7 @@ function off(obj) {
45695
45714
  }
45696
45715
  // src/hooks/misc/usePermission/index.ts
45697
45716
  var usePermission = function(permissionDesc) {
45698
- var $ = _c47(3);
45717
+ var $ = _c48(3);
45699
45718
  var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
45700
45719
  var t0;
45701
45720
  var t1;
@@ -45744,10 +45763,10 @@ import { useAudioCapture } from "use-audio-capture";
45744
45763
  import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
45745
45764
  import { useAudioPlayer } from "react-use-audio-player";
45746
45765
  // src/hooks/misc/useInterval.ts
45747
- import { c as _c48 } from "react-compiler-runtime";
45766
+ import { c as _c49 } from "react-compiler-runtime";
45748
45767
  import { useEffect as useEffect8, useRef as useRef6 } from "react";
45749
45768
  var useInterval = function(callback, delay) {
45750
- var $ = _c48(5);
45769
+ var $ = _c49(5);
45751
45770
  var savedCallback = useRef6(_temp9);
45752
45771
  var t0;
45753
45772
  if ($[0] !== callback) {
@@ -46000,7 +46019,7 @@ var useRecorder = function(_ref) {
46000
46019
  });
46001
46020
  };
46002
46021
  // src/hooks/audioThreads/useMessageAudio/index.ts
46003
- import { c as _c49 } from "react-compiler-runtime";
46022
+ import { c as _c50 } from "react-compiler-runtime";
46004
46023
  import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
46005
46024
  import nlp from "compromise";
46006
46025
  import { Howler } from "howler";
@@ -46083,7 +46102,7 @@ var getMessageSentences = function(_ref) {
46083
46102
  };
46084
46103
  var useMessageAudio = function(t0) {
46085
46104
  var _latestMessageProps$l;
46086
- var $ = _c49(50);
46105
+ var $ = _c50(50);
46087
46106
  var _onEnd = t0.onEnd, passedPlay = t0.play;
46088
46107
  var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
46089
46108
  var t1;
@@ -46464,7 +46483,7 @@ function _asyncToGenerator11(n) {
46464
46483
  };
46465
46484
  }
46466
46485
  var useTtsAudioRuntime = function(t0) {
46467
- var $ = _c50(30);
46486
+ var $ = _c51(30);
46468
46487
  var play = t0.play;
46469
46488
  var addToast = useToasts().addToast;
46470
46489
  var queryClient = useQueryClient6();
@@ -46652,7 +46671,7 @@ function _temp23() {
46652
46671
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
46653
46672
  import { jsx as _jsx83 } from "react/jsx-runtime";
46654
46673
  var TtsAudioRuntimeProvider = function(t0) {
46655
- var $ = _c51(7);
46674
+ var $ = _c52(7);
46656
46675
  var children = t0.children, play = t0.play;
46657
46676
  var t1;
46658
46677
  if ($[0] !== play) {
@@ -46773,7 +46792,7 @@ var Content8 = function(_ref) {
46773
46792
  });
46774
46793
  };
46775
46794
  var AudioRuntimeProvider = function(t0) {
46776
- var $ = _c52(3);
46795
+ var $ = _c53(3);
46777
46796
  var children = t0.children, play = t0.play;
46778
46797
  var audioThreadContext = useAudioThreadContext();
46779
46798
  if (audioThreadContext.audioRuntime) {
@@ -46794,7 +46813,7 @@ var AudioRuntimeProvider = function(t0) {
46794
46813
  return t1;
46795
46814
  };
46796
46815
  var Provider5 = function(t0) {
46797
- var $ = _c52(9);
46816
+ var $ = _c53(9);
46798
46817
  var children;
46799
46818
  var rest;
46800
46819
  if ($[0] !== t0) {
@@ -46849,7 +46868,7 @@ var Root12 = function(_ref2) {
46849
46868
  }));
46850
46869
  };
46851
46870
  // src/components/threads/AudioThread/Visualization/index.tsx
46852
- import { useContext as useContext16, useState as useState11, useCallback as useCallback8, useEffect as useEffect12 } from "react";
46871
+ import { useContext as useContext17, useState as useState11, useCallback as useCallback8, useEffect as useEffect12 } from "react";
46853
46872
  import _9 from "lodash";
46854
46873
  import { Flex as Flex31 } from "@radix-ui/themes";
46855
46874
  // src/components/threads/AudioThread/BarsVisualizer/index.tsx
@@ -46917,10 +46936,10 @@ var BarsVisualizer = function(_ref) {
46917
46936
  });
46918
46937
  };
46919
46938
  // src/hooks/audioThreads/useStatus/index.ts
46920
- import { c as _c53 } from "react-compiler-runtime";
46939
+ import { c as _c54 } from "react-compiler-runtime";
46921
46940
  import { useMemo as useMemo19 } from "react";
46922
46941
  var useStatus = function() {
46923
- var $ = _c53(2);
46942
+ var $ = _c54(2);
46924
46943
  var audioRuntime = useAudioThreadContext().audioRuntime;
46925
46944
  var t0;
46926
46945
  bb0: {
@@ -47015,7 +47034,7 @@ function _toPrimitive47(t, r) {
47015
47034
  var Visualization = function(props) {
47016
47035
  var status = useStatus().status;
47017
47036
  var audioThreadContext = useAudioThreadContext();
47018
- var assistantNameContext = useContext16(AssistantNameContext);
47037
+ var assistantNameContext = useContext17(AssistantNameContext);
47019
47038
  var _useState11 = _sliced_to_array(useState11(0), 2), scale = _useState11[0], setScale = _useState11[1];
47020
47039
  var draw = useCallback8(function(_ref) {
47021
47040
  var visualizationAnalyser = _ref.visualizationAnalyser;
@@ -47080,7 +47099,7 @@ var Visualization = function(props) {
47080
47099
  }));
47081
47100
  };
47082
47101
  // src/components/threads/AudioThread/Status/index.tsx
47083
- import { c as _c54 } from "react-compiler-runtime";
47102
+ import { c as _c55 } from "react-compiler-runtime";
47084
47103
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
47085
47104
  import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
47086
47105
  import { jsx as _jsx87, jsxs as _jsxs32 } from "react/jsx-runtime";
@@ -47160,7 +47179,7 @@ function _toPrimitive48(t, r) {
47160
47179
  return ("string" === r ? String : Number)(t);
47161
47180
  }
47162
47181
  var Status = function(props) {
47163
- var $ = _c54(12);
47182
+ var $ = _c55(12);
47164
47183
  var status = useStatus().status;
47165
47184
  if (status === "recording") {
47166
47185
  var _t;
@@ -47257,7 +47276,7 @@ var Status = function(props) {
47257
47276
  return t1;
47258
47277
  };
47259
47278
  // src/components/threads/AudioThread/Form/index.tsx
47260
- import { c as _c56 } from "react-compiler-runtime";
47279
+ import { c as _c57 } from "react-compiler-runtime";
47261
47280
  import { Flex as Flex34 } from "@radix-ui/themes";
47262
47281
  // src/components/threads/AudioThread/Form/MicIcon.tsx
47263
47282
  import { jsx as _jsx89 } from "react/jsx-runtime";
@@ -47321,12 +47340,12 @@ var MicIcon = function(props) {
47321
47340
  }));
47322
47341
  };
47323
47342
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
47324
- import { c as _c55 } from "react-compiler-runtime";
47343
+ import { c as _c56 } from "react-compiler-runtime";
47325
47344
  import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
47326
47345
  import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
47327
47346
  import { jsx as _jsx90, jsxs as _jsxs33 } from "react/jsx-runtime";
47328
47347
  var ActionButton = function() {
47329
- var $ = _c55(27);
47348
+ var $ = _c56(27);
47330
47349
  var status = useStatus().status;
47331
47350
  var audioThreadContext = useAudioThreadContext();
47332
47351
  var superinterfaceContext = useSuperinterfaceContext();
@@ -47564,7 +47583,7 @@ function _toPrimitive50(t, r) {
47564
47583
  return ("string" === r ? String : Number)(t);
47565
47584
  }
47566
47585
  var Form = function(props) {
47567
- var $ = _c56(17);
47586
+ var $ = _c57(17);
47568
47587
  var status = useStatus().status;
47569
47588
  var audioThreadContext = useAudioThreadContext();
47570
47589
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
@@ -48274,10 +48293,10 @@ var useWebrtcAudioRuntime = function() {
48274
48293
  ]);
48275
48294
  };
48276
48295
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
48277
- import { c as _c57 } from "react-compiler-runtime";
48296
+ import { c as _c58 } from "react-compiler-runtime";
48278
48297
  import { jsx as _jsx94 } from "react/jsx-runtime";
48279
48298
  var WebrtcAudioRuntimeProvider = function(t0) {
48280
- var $ = _c57(5);
48299
+ var $ = _c58(5);
48281
48300
  var children = t0.children;
48282
48301
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
48283
48302
  var t1;
@@ -48305,7 +48324,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
48305
48324
  return t2;
48306
48325
  };
48307
48326
  // src/components/markdown/MarkdownProvider/index.tsx
48308
- import { c as _c58 } from "react-compiler-runtime";
48327
+ import { c as _c59 } from "react-compiler-runtime";
48309
48328
  import { useMemo as useMemo21 } from "react";
48310
48329
  import { jsx as _jsx95 } from "react/jsx-runtime";
48311
48330
  var _excluded6 = [
@@ -48330,7 +48349,7 @@ function _objectWithoutPropertiesLoose6(r, e) {
48330
48349
  return t;
48331
48350
  }
48332
48351
  var MarkdownProvider = function(t0) {
48333
- var $ = _c58(9);
48352
+ var $ = _c59(9);
48334
48353
  var children;
48335
48354
  var rest;
48336
48355
  if ($[0] !== t0) {
@@ -48373,18 +48392,18 @@ var MarkdownProvider = function(t0) {
48373
48392
  return t3;
48374
48393
  };
48375
48394
  // src/components/annotations/SourceAnnotation/index.tsx
48376
- import { c as _c61 } from "react-compiler-runtime";
48395
+ import { c as _c62 } from "react-compiler-runtime";
48377
48396
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
48378
- import { c as _c60 } from "react-compiler-runtime";
48397
+ import { c as _c61 } from "react-compiler-runtime";
48379
48398
  import { useState as useState13 } from "react";
48380
48399
  import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
48381
48400
  import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
48382
48401
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
48383
- import { c as _c59 } from "react-compiler-runtime";
48402
+ import { c as _c60 } from "react-compiler-runtime";
48384
48403
  import { Flex as Flex35, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
48385
48404
  import { jsx as _jsx96 } from "react/jsx-runtime";
48386
48405
  var Content9 = function(t0) {
48387
- var $ = _c59(5);
48406
+ var $ = _c60(5);
48388
48407
  var fileId = t0.fileId;
48389
48408
  var superinterfaceContext = useSuperinterfaceContext();
48390
48409
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -48450,7 +48469,7 @@ var Content9 = function(t0) {
48450
48469
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
48451
48470
  import { jsx as _jsx97, jsxs as _jsxs37, Fragment as _Fragment5 } from "react/jsx-runtime";
48452
48471
  var FileCitation = function(t0) {
48453
- var $ = _c60(18);
48472
+ var $ = _c61(18);
48454
48473
  var annotation = t0.annotation;
48455
48474
  var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
48456
48475
  var t1;
@@ -48599,7 +48618,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
48599
48618
  return t;
48600
48619
  }
48601
48620
  var SourceAnnotation = function(t0) {
48602
- var $ = _c61(10);
48621
+ var $ = _c62(10);
48603
48622
  var children;
48604
48623
  var rest;
48605
48624
  if ($[0] !== t0) {
@@ -48656,7 +48675,7 @@ var SourceAnnotation = function(t0) {
48656
48675
  return null;
48657
48676
  };
48658
48677
  // src/components/avatars/Avatar.tsx
48659
- import { c as _c64 } from "react-compiler-runtime";
48678
+ import { c as _c65 } from "react-compiler-runtime";
48660
48679
  // src/lib/enums/index.ts
48661
48680
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
48662
48681
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -48681,7 +48700,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
48681
48700
  // src/components/avatars/Avatar.tsx
48682
48701
  import { Avatar as RadixAvatar } from "@radix-ui/themes";
48683
48702
  // src/components/imageAvatars/ImageAvatar/index.tsx
48684
- import { c as _c62 } from "react-compiler-runtime";
48703
+ import { c as _c63 } from "react-compiler-runtime";
48685
48704
  import { Avatar as Avatar4 } from "@radix-ui/themes";
48686
48705
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
48687
48706
  var width = function(_ref) {
@@ -48735,7 +48754,7 @@ var optimizedSrc = function(_ref) {
48735
48754
  // src/components/imageAvatars/ImageAvatar/index.tsx
48736
48755
  import { jsx as _jsx99 } from "react/jsx-runtime";
48737
48756
  var ImageAvatar = function(t0) {
48738
- var $ = _c62(9);
48757
+ var $ = _c63(9);
48739
48758
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
48740
48759
  var superinterfaceContext = useSuperinterfaceContext();
48741
48760
  var t1;
@@ -48772,7 +48791,7 @@ var ImageAvatar = function(t0) {
48772
48791
  return t2;
48773
48792
  };
48774
48793
  // src/components/iconAvatars/IconAvatar.tsx
48775
- import { c as _c63 } from "react-compiler-runtime";
48794
+ import { c as _c64 } from "react-compiler-runtime";
48776
48795
  import { useMemo as useMemo22 } from "react";
48777
48796
  import { Avatar as Avatar5 } from "@radix-ui/themes";
48778
48797
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -48782,7 +48801,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
48782
48801
  // src/components/iconAvatars/IconAvatar.tsx
48783
48802
  import { jsx as _jsx100 } from "react/jsx-runtime";
48784
48803
  var IconAvatar = function(t0) {
48785
- var $ = _c63(7);
48804
+ var $ = _c64(7);
48786
48805
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
48787
48806
  var t1;
48788
48807
  t1 = iconAvatarComponents[iconAvatar.name];
@@ -48816,7 +48835,7 @@ var IconAvatar = function(t0) {
48816
48835
  // src/components/avatars/Avatar.tsx
48817
48836
  import { jsx as _jsx101 } from "react/jsx-runtime";
48818
48837
  var Avatar6 = function(t0) {
48819
- var $ = _c64(14);
48838
+ var $ = _c65(14);
48820
48839
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
48821
48840
  var size = t1 === void 0 ? "1" : t1;
48822
48841
  if (avatar) {
@@ -48877,12 +48896,12 @@ var Avatar6 = function(t0) {
48877
48896
  return t2;
48878
48897
  };
48879
48898
  // src/components/components/ComponentsProvider.tsx
48880
- import { c as _c65 } from "react-compiler-runtime";
48899
+ import { c as _c66 } from "react-compiler-runtime";
48881
48900
  import { useMemo as useMemo23 } from "react";
48882
48901
  // src/hooks/components/useComponents.ts
48883
- import { useContext as useContext17 } from "react";
48902
+ import { useContext as useContext18 } from "react";
48884
48903
  var useComponents = function() {
48885
- return useContext17(ComponentsContext);
48904
+ return useContext18(ComponentsContext);
48886
48905
  };
48887
48906
  // src/components/components/ComponentsProvider.tsx
48888
48907
  import { jsx as _jsx102 } from "react/jsx-runtime";
@@ -48908,7 +48927,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
48908
48927
  return t;
48909
48928
  }
48910
48929
  var ComponentsProvider = function(t0) {
48911
- var $ = _c65(9);
48930
+ var $ = _c66(9);
48912
48931
  var children;
48913
48932
  var rest;
48914
48933
  if ($[0] !== t0) {
@@ -48951,11 +48970,11 @@ var ComponentsProvider = function(t0) {
48951
48970
  return t3;
48952
48971
  };
48953
48972
  // src/components/assistants/AssistantProvider/index.tsx
48954
- import { c as _c66 } from "react-compiler-runtime";
48973
+ import { c as _c67 } from "react-compiler-runtime";
48955
48974
  import { jsx as _jsx103 } from "react/jsx-runtime";
48956
48975
  var AssistantProvider = function(t0) {
48957
48976
  var _assistant$name;
48958
- var $ = _c66(10);
48977
+ var $ = _c67(10);
48959
48978
  var children = t0.children;
48960
48979
  var superinterfaceContext = useSuperinterfaceContext();
48961
48980
  var t1;