@superinterface/react 3.17.3 → 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
37851
+ });
37852
+ $[7] = output;
37853
+ $[8] = t7;
37854
+ } else {
37855
+ t7 = $[8];
37856
+ }
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
+ ]
37849
37867
  });
37850
- $[9] = runStep;
37851
- $[10] = toolCall;
37852
- $[11] = t1;
37868
+ $[9] = t6;
37869
+ $[10] = t7;
37870
+ $[11] = t8;
37853
37871
  } else {
37854
- t1 = $[11];
37872
+ t8 = $[11];
37855
37873
  }
37856
- return t1;
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,10 +41567,19 @@ 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);
41571
+ };
41572
+ // src/lib/markdown/escapeInvalidTagNames.ts
41573
+ var isValidTagName = function(tagName) {
41574
+ return /^[A-Za-z_][A-Za-z0-9_.:-]*$/.test(tagName);
41575
+ };
41576
+ var escapeInvalidTagNames = function(markdown) {
41577
+ return markdown.replace(/<([^\s>/]+)([^>]*)>/g, function(fullMatch, tagName) {
41578
+ return isValidTagName(tagName) ? fullMatch : fullMatch.replace(/</g, "&lt;").replace(/>/g, "&gt;");
41579
+ });
41552
41580
  };
41553
41581
  // ../../node_modules/react-error-boundary/dist/react-error-boundary.esm.js
41554
- 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";
41555
41583
  var ErrorBoundaryContext = /* @__PURE__ */ createContext7(null);
41556
41584
  var initialState = {
41557
41585
  didCatch: false,
@@ -41748,7 +41776,7 @@ var evaluate = /* @__PURE__ */ function() {
41748
41776
  };
41749
41777
  }();
41750
41778
  var TextContent = function(t0) {
41751
- var $ = _c22(13);
41779
+ var $ = _c23(13);
41752
41780
  var content2 = t0.content;
41753
41781
  var _useMarkdownContext = useMarkdownContext(), getRemarkPlugins2 = _useMarkdownContext.getRemarkPlugins, components2 = _useMarkdownContext.components;
41754
41782
  var t1;
@@ -41784,7 +41812,7 @@ var TextContent = function(t0) {
41784
41812
  ]);
41785
41813
  return [
41786
41814
  4,
41787
- compile(content2.text.value, {
41815
+ compile(escapeInvalidTagNames(content2.text.value), {
41788
41816
  outputFormat: "function-body",
41789
41817
  remarkPlugins: remarkPlugins,
41790
41818
  recmaPlugins: [
@@ -41885,10 +41913,10 @@ var TextContent = function(t0) {
41885
41913
  return t7;
41886
41914
  };
41887
41915
  // src/components/messages/MessageContent/ContentPart/ImageFileContent.tsx
41888
- import { c as _c23 } from "react-compiler-runtime";
41916
+ import { c as _c24 } from "react-compiler-runtime";
41889
41917
  import { jsx as _jsx45 } from "react/jsx-runtime";
41890
41918
  var ImageFileContent = function(t0) {
41891
- var $ = _c23(2);
41919
+ var $ = _c24(2);
41892
41920
  var content2 = t0.content;
41893
41921
  var superinterfaceContext = useSuperinterfaceContext();
41894
41922
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -41909,7 +41937,7 @@ var ImageFileContent = function(t0) {
41909
41937
  // src/components/messages/MessageContent/ContentPart/index.tsx
41910
41938
  import { jsx as _jsx46 } from "react/jsx-runtime";
41911
41939
  var ContentPart = function(t0) {
41912
- var $ = _c24(4);
41940
+ var $ = _c25(4);
41913
41941
  var content2 = t0.content;
41914
41942
  if (content2.type === "text") {
41915
41943
  var t1;
@@ -41954,7 +41982,7 @@ var MessageContent = function(_ref) {
41954
41982
  // src/components/threads/Thread/Message/index.tsx
41955
41983
  import { jsx as _jsx48, jsxs as _jsxs16 } from "react/jsx-runtime";
41956
41984
  var Message = function(t0) {
41957
- var $ = _c25(51);
41985
+ var $ = _c26(51);
41958
41986
  var message = t0.message, className = t0.className, style = t0.style;
41959
41987
  var t1;
41960
41988
  bb0: {
@@ -42210,10 +42238,10 @@ function _temp3(rs) {
42210
42238
  return rs.status === "in_progress";
42211
42239
  }
42212
42240
  // src/components/threads/Thread/Messages/Content/index.tsx
42213
- import { c as _c32 } from "react-compiler-runtime";
42241
+ import { c as _c33 } from "react-compiler-runtime";
42214
42242
  import { useEffect as useEffect3 } from "react";
42215
42243
  // src/hooks/messageGroups/useMessageGroups/index.ts
42216
- import { c as _c26 } from "react-compiler-runtime";
42244
+ import { c as _c27 } from "react-compiler-runtime";
42217
42245
  import { useMemo as useMemo11 } from "react";
42218
42246
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
42219
42247
  import _6 from "lodash";
@@ -42318,7 +42346,7 @@ var messageGroups = function(_ref) {
42318
42346
  };
42319
42347
  // src/hooks/messageGroups/useMessageGroups/index.ts
42320
42348
  var useMessageGroups = function(t0) {
42321
- var $ = _c26(4);
42349
+ var $ = _c27(4);
42322
42350
  var messages2 = t0.messages;
42323
42351
  var t1;
42324
42352
  var t2;
@@ -42345,16 +42373,16 @@ var useMessageGroups = function(t0) {
42345
42373
  return t1;
42346
42374
  };
42347
42375
  // src/components/skeletons/MessagesSkeleton/index.tsx
42348
- import { c as _c28 } from "react-compiler-runtime";
42376
+ import { c as _c29 } from "react-compiler-runtime";
42349
42377
  import { forwardRef as forwardRef3 } from "react";
42350
42378
  import { Flex as Flex13, Avatar, Box as Box10, Skeleton as Skeleton2 } from "@radix-ui/themes";
42351
42379
  // src/components/messageGroups/MessageGroupBase/index.tsx
42352
- import { c as _c27 } from "react-compiler-runtime";
42380
+ import { c as _c28 } from "react-compiler-runtime";
42353
42381
  import { forwardRef as forwardRef2 } from "react";
42354
42382
  import { Flex as Flex11, Container } from "@radix-ui/themes";
42355
42383
  import { jsx as _jsx49 } from "react/jsx-runtime";
42356
42384
  var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0, ref) {
42357
- var $ = _c27(5);
42385
+ var $ = _c28(5);
42358
42386
  var children = t0.children;
42359
42387
  var t1;
42360
42388
  if ($[0] !== children) {
@@ -42402,7 +42430,7 @@ var Name = function(_ref) {
42402
42430
  // src/components/skeletons/MessagesSkeleton/index.tsx
42403
42431
  import { jsx as _jsx51, jsxs as _jsxs17 } from "react/jsx-runtime";
42404
42432
  var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
42405
- var $ = _c28(7);
42433
+ var $ = _c29(7);
42406
42434
  var t0;
42407
42435
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42408
42436
  t0 = /* @__PURE__ */ _jsx51(Skeleton2, {
@@ -42493,12 +42521,12 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
42493
42521
  return t5;
42494
42522
  });
42495
42523
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
42496
- import { c as _c31 } from "react-compiler-runtime";
42497
- import { useContext as useContext9 } from "react";
42524
+ import { c as _c32 } from "react-compiler-runtime";
42525
+ import { useContext as useContext10 } from "react";
42498
42526
  import { Box as Box11 } from "@radix-ui/themes";
42499
42527
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
42500
- import { c as _c29 } from "react-compiler-runtime";
42501
- import { useContext as useContext7 } from "react";
42528
+ import { c as _c30 } from "react-compiler-runtime";
42529
+ import { useContext as useContext8 } from "react";
42502
42530
  import { Flex as Flex14 } from "@radix-ui/themes";
42503
42531
  // src/contexts/assistants/AssistantAvatarContext/index.tsx
42504
42532
  import { createContext as createContext8 } from "react";
@@ -42512,8 +42540,8 @@ var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx
42512
42540
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
42513
42541
  import { jsx as _jsx53 } from "react/jsx-runtime";
42514
42542
  var AssistantAvatar = function() {
42515
- var $ = _c29(3);
42516
- var AssistantAvatarContextValue = useContext7(AssistantAvatarContext);
42543
+ var $ = _c30(3);
42544
+ var AssistantAvatarContextValue = useContext8(AssistantAvatarContext);
42517
42545
  var t0;
42518
42546
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42519
42547
  t0 = {
@@ -42544,8 +42572,8 @@ var AssistantAvatar = function() {
42544
42572
  import { createContext as createContext9 } from "react";
42545
42573
  var AssistantNameContext = /* @__PURE__ */ createContext9("Assistant");
42546
42574
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
42547
- import { c as _c30 } from "react-compiler-runtime";
42548
- import { useContext as useContext8 } from "react";
42575
+ import { c as _c31 } from "react-compiler-runtime";
42576
+ import { useContext as useContext9 } from "react";
42549
42577
  import { Flex as Flex15 } from "@radix-ui/themes";
42550
42578
  // src/contexts/users/UserAvatarContext/index.tsx
42551
42579
  import { createContext as createContext10 } from "react";
@@ -42559,8 +42587,8 @@ var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */ _jsx54(A
42559
42587
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
42560
42588
  import { jsx as _jsx55 } from "react/jsx-runtime";
42561
42589
  var UserAvatar = function() {
42562
- var $ = _c30(3);
42563
- var UserAvatarContextValue = useContext8(UserAvatarContext);
42590
+ var $ = _c31(3);
42591
+ var UserAvatarContextValue = useContext9(UserAvatarContext);
42564
42592
  var t0;
42565
42593
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42566
42594
  t0 = {
@@ -42604,9 +42632,9 @@ var Content5 = function(_ref) {
42604
42632
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
42605
42633
  import { jsx as _jsx57, jsxs as _jsxs18 } from "react/jsx-runtime";
42606
42634
  var MessageGroup = function(t0) {
42607
- var $ = _c31(12);
42635
+ var $ = _c32(12);
42608
42636
  var messageGroup = t0.messageGroup;
42609
- var assistantNameContext = useContext9(AssistantNameContext);
42637
+ var assistantNameContext = useContext10(AssistantNameContext);
42610
42638
  var t1;
42611
42639
  if ($[0] !== messageGroup.role) {
42612
42640
  t1 = messageGroup.role === "user" ? /* @__PURE__ */ _jsx57(UserAvatar, {}) : /* @__PURE__ */ _jsx57(AssistantAvatar, {});
@@ -42670,7 +42698,7 @@ var MessageGroup = function(t0) {
42670
42698
  // src/components/threads/Thread/Messages/Content/index.tsx
42671
42699
  import { jsx as _jsx58, Fragment as _Fragment3 } from "react/jsx-runtime";
42672
42700
  var Content6 = function() {
42673
- var $ = _c32(11);
42701
+ var $ = _c33(11);
42674
42702
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
42675
42703
  var addToast = useToasts().addToast;
42676
42704
  var t0;
@@ -42744,17 +42772,17 @@ function _temp4(messageGroup) {
42744
42772
  }, messageGroup.id);
42745
42773
  }
42746
42774
  // src/components/threads/Thread/Messages/Progress/index.tsx
42747
- import { c as _c34 } from "react-compiler-runtime";
42775
+ import { c as _c35 } from "react-compiler-runtime";
42748
42776
  import { useMemo as useMemo12 } from "react";
42749
42777
  // src/components/skeletons/StartingSkeleton/index.tsx
42750
- import { c as _c33 } from "react-compiler-runtime";
42751
- import { useContext as useContext10 } from "react";
42778
+ import { c as _c34 } from "react-compiler-runtime";
42779
+ import { useContext as useContext11 } from "react";
42752
42780
  import { Box as Box12 } from "@radix-ui/themes";
42753
42781
  import { jsx as _jsx59, jsxs as _jsxs19 } from "react/jsx-runtime";
42754
42782
  var StartingSkeleton = function(t0) {
42755
- var $ = _c33(7);
42783
+ var $ = _c34(7);
42756
42784
  var children = t0.children;
42757
- var assistantNameContext = useContext10(AssistantNameContext);
42785
+ var assistantNameContext = useContext11(AssistantNameContext);
42758
42786
  var t1;
42759
42787
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42760
42788
  t1 = /* @__PURE__ */ _jsx59(AssistantAvatar, {});
@@ -42804,7 +42832,7 @@ var StartingSkeleton = function(t0) {
42804
42832
  // src/components/threads/Thread/Messages/Progress/index.tsx
42805
42833
  import { jsx as _jsx60 } from "react/jsx-runtime";
42806
42834
  var Progress = function() {
42807
- var $ = _c34(1);
42835
+ var $ = _c35(1);
42808
42836
  var latestMessage = useLatestMessage().latestMessage;
42809
42837
  var isMutatingMessage = useIsMutatingMessage();
42810
42838
  var t0;
@@ -42847,7 +42875,7 @@ var Progress = function() {
42847
42875
  return t1;
42848
42876
  };
42849
42877
  // src/components/threads/Thread/Messages/Root/index.tsx
42850
- import { c as _c35 } from "react-compiler-runtime";
42878
+ import { c as _c36 } from "react-compiler-runtime";
42851
42879
  import { Flex as Flex17 } from "@radix-ui/themes";
42852
42880
  // src/hooks/misc/useInfiniteScroll/index.tsx
42853
42881
  import { useRef as useRef3 } from "react";
@@ -42945,7 +42973,7 @@ function _toPrimitive26(t, r) {
42945
42973
  return ("string" === r ? String : Number)(t);
42946
42974
  }
42947
42975
  var Root2 = function(t0) {
42948
- var $ = _c35(18);
42976
+ var $ = _c36(18);
42949
42977
  var children = t0.children, style = t0.style, className = t0.className;
42950
42978
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
42951
42979
  var t1;
@@ -43028,10 +43056,10 @@ var Root2 = function(t0) {
43028
43056
  return t6;
43029
43057
  };
43030
43058
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
43031
- import { c as _c36 } from "react-compiler-runtime";
43059
+ import { c as _c37 } from "react-compiler-runtime";
43032
43060
  import { jsx as _jsx62 } from "react/jsx-runtime";
43033
43061
  var NextPageSkeleton = function() {
43034
- var $ = _c36(1);
43062
+ var $ = _c37(1);
43035
43063
  var hasNextPage = useMessages().hasNextPage;
43036
43064
  if (!hasNextPage) {
43037
43065
  return null;
@@ -43073,11 +43101,11 @@ Messages.Root = Root2;
43073
43101
  Messages.Message = Message;
43074
43102
  Messages.NextPageSkeleton = NextPageSkeleton;
43075
43103
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
43076
- import { c as _c37 } from "react-compiler-runtime";
43104
+ import { c as _c38 } from "react-compiler-runtime";
43077
43105
  import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
43078
43106
  import { IconButton as IconButton5, Flex as Flex19 } from "@radix-ui/themes";
43079
43107
  // src/hooks/messages/useMessageFormContext/index.ts
43080
- import { useContext as useContext11 } from "react";
43108
+ import { useContext as useContext12 } from "react";
43081
43109
  // src/contexts/messages/MessageFormContext/index.ts
43082
43110
  import { createContext as createContext11 } from "react";
43083
43111
  var MessageFormContext = /* @__PURE__ */ createContext11({
@@ -43090,7 +43118,7 @@ var MessageFormContext = /* @__PURE__ */ createContext11({
43090
43118
  });
43091
43119
  // src/hooks/messages/useMessageFormContext/index.ts
43092
43120
  var useMessageFormContext = function() {
43093
- return useContext11(MessageFormContext);
43121
+ return useContext12(MessageFormContext);
43094
43122
  };
43095
43123
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
43096
43124
  import { jsx as _jsx64 } from "react/jsx-runtime";
@@ -43148,7 +43176,7 @@ var Root3 = function(_ref) {
43148
43176
  });
43149
43177
  };
43150
43178
  var Button3 = function(props) {
43151
- var $ = _c37(10);
43179
+ var $ = _c38(10);
43152
43180
  var superinterfaceContext = useSuperinterfaceContext();
43153
43181
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
43154
43182
  if (isLoading) {
@@ -43432,9 +43460,9 @@ var usePrevious = function(state) {
43432
43460
  return ref.current;
43433
43461
  };
43434
43462
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
43435
- 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";
43436
43464
  // src/components/textareas/TextareaBase/index.tsx
43437
- import { c as _c38 } from "react-compiler-runtime";
43465
+ import { c as _c39 } from "react-compiler-runtime";
43438
43466
  import { forwardRef as forwardRef4 } from "react";
43439
43467
  import TextareaAutosize from "react-textarea-autosize";
43440
43468
  import { jsx as _jsx66, Fragment as _Fragment4, jsxs as _jsxs22 } from "react/jsx-runtime";
@@ -43505,7 +43533,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
43505
43533
  }
43506
43534
  var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
43507
43535
  var _className;
43508
- var $ = _c38(14);
43536
+ var $ = _c39(14);
43509
43537
  var className;
43510
43538
  var rest;
43511
43539
  var style;
@@ -43639,7 +43667,7 @@ var Root5 = function(_ref) {
43639
43667
  var Input = function(props) {
43640
43668
  "use no memo";
43641
43669
  var _props$placeholder;
43642
- var assistantNameContext = useContext12(AssistantNameContext);
43670
+ var assistantNameContext = useContext13(AssistantNameContext);
43643
43671
  var register = useFormContext().register;
43644
43672
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
43645
43673
  var isSubmitDisabled = useMemo14(function() {
@@ -43688,7 +43716,7 @@ var Control = function(props) {
43688
43716
  Control.Root = Root5;
43689
43717
  Control.Input = Input;
43690
43718
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
43691
- import { c as _c39 } from "react-compiler-runtime";
43719
+ import { c as _c40 } from "react-compiler-runtime";
43692
43720
  import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
43693
43721
  import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
43694
43722
  import { jsx as _jsx68, jsxs as _jsxs23 } from "react/jsx-runtime";
@@ -43736,7 +43764,7 @@ function _toPrimitive31(t, r) {
43736
43764
  return ("string" === r ? String : Number)(t);
43737
43765
  }
43738
43766
  var Preview = function(props) {
43739
- var $ = _c39(8);
43767
+ var $ = _c40(8);
43740
43768
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
43741
43769
  if (!files.length) {
43742
43770
  return null;
@@ -43834,7 +43862,7 @@ import dayjs2 from "dayjs";
43834
43862
  import { FilePlusIcon } from "@radix-ui/react-icons";
43835
43863
  import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
43836
43864
  // src/hooks/files/useCreateFile/index.ts
43837
- import { c as _c40 } from "react-compiler-runtime";
43865
+ import { c as _c41 } from "react-compiler-runtime";
43838
43866
  import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
43839
43867
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
43840
43868
  var formData = function(variables) {
@@ -44070,7 +44098,7 @@ function _toPrimitive34(t, r) {
44070
44098
  return ("string" === r ? String : Number)(t);
44071
44099
  }
44072
44100
  var useCreateFile = function(t0) {
44073
- var $ = _c40(15);
44101
+ var $ = _c41(15);
44074
44102
  var t1;
44075
44103
  if ($[0] !== t0) {
44076
44104
  t1 = t0 === void 0 ? {
@@ -44613,7 +44641,7 @@ import { Flex as Flex25 } from "@radix-ui/themes";
44613
44641
  // src/components/threads/Thread/Provider/index.tsx
44614
44642
  var Provider2 = SuperinterfaceProvider;
44615
44643
  // src/components/toasts/ToastsProvider/index.tsx
44616
- import { c as _c41 } from "react-compiler-runtime";
44644
+ import { c as _c42 } from "react-compiler-runtime";
44617
44645
  import { useState as useState5, useCallback as useCallback4 } from "react";
44618
44646
  import * as Toast2 from "@radix-ui/react-toast";
44619
44647
  // src/components/toasts/ToastsProvider/CustomToast.tsx
@@ -44652,7 +44680,7 @@ var CustomToast = function(_ref) {
44652
44680
  // src/components/toasts/ToastsProvider/index.tsx
44653
44681
  import { jsx as _jsx73, jsxs as _jsxs27 } from "react/jsx-runtime";
44654
44682
  var ToastsProvider = function(t0) {
44655
- var $ = _c41(15);
44683
+ var $ = _c42(15);
44656
44684
  var children = t0.children, t1 = t0.bottom;
44657
44685
  var bottom = t1 === void 0 ? 0 : t1;
44658
44686
  var t2;
@@ -44895,12 +44923,12 @@ Thread.Root = Root8;
44895
44923
  Thread.Messages = Messages;
44896
44924
  Thread.MessageForm = MessageForm;
44897
44925
  // src/hooks/messages/useMessageContext/index.ts
44898
- import { useContext as useContext13 } from "react";
44926
+ import { useContext as useContext14 } from "react";
44899
44927
  var useMessageContext = function() {
44900
- return useContext13(MessageContext);
44928
+ return useContext14(MessageContext);
44901
44929
  };
44902
44930
  // src/hooks/assistants/useAssistant/index.ts
44903
- import { c as _c42 } from "react-compiler-runtime";
44931
+ import { c as _c43 } from "react-compiler-runtime";
44904
44932
  import { useMemo as useMemo15 } from "react";
44905
44933
  import { useQuery } from "@tanstack/react-query";
44906
44934
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -45050,7 +45078,7 @@ function _toPrimitive40(t, r) {
45050
45078
  return ("string" === r ? String : Number)(t);
45051
45079
  }
45052
45080
  var useAssistant = function(t0) {
45053
- var $ = _c42(6);
45081
+ var $ = _c43(6);
45054
45082
  var assistantId = t0.assistantId;
45055
45083
  var superinterfaceContext = useSuperinterfaceContext();
45056
45084
  var t1;
@@ -45083,7 +45111,7 @@ var useAssistant = function(t0) {
45083
45111
  return t2;
45084
45112
  };
45085
45113
  // src/components/threads/ThreadDialog/Provider/index.tsx
45086
- import { c as _c43 } from "react-compiler-runtime";
45114
+ import { c as _c44 } from "react-compiler-runtime";
45087
45115
  import { useState as useState6 } from "react";
45088
45116
  // src/contexts/threads/ThreadDialogContext/index.ts
45089
45117
  import { createContext as createContext12 } from "react";
@@ -45092,14 +45120,14 @@ var ThreadDialogContext = /* @__PURE__ */ createContext12({
45092
45120
  setIsOpen: function() {}
45093
45121
  });
45094
45122
  // src/hooks/threads/useThreadDialogContext/index.ts
45095
- import { useContext as useContext14 } from "react";
45123
+ import { useContext as useContext15 } from "react";
45096
45124
  var useThreadDialogContext = function() {
45097
- return useContext14(ThreadDialogContext);
45125
+ return useContext15(ThreadDialogContext);
45098
45126
  };
45099
45127
  // src/components/threads/ThreadDialog/Provider/index.tsx
45100
45128
  import { jsx as _jsx76 } from "react/jsx-runtime";
45101
45129
  var Provider4 = function(t0) {
45102
- var $ = _c43(5);
45130
+ var $ = _c44(5);
45103
45131
  var children = t0.children;
45104
45132
  var threadDialogContext = useThreadDialogContext();
45105
45133
  var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
@@ -45137,7 +45165,7 @@ var Root9 = function(_ref) {
45137
45165
  });
45138
45166
  };
45139
45167
  // src/components/threads/ThreadDialog/Trigger/index.tsx
45140
- import { c as _c44 } from "react-compiler-runtime";
45168
+ import { c as _c45 } from "react-compiler-runtime";
45141
45169
  import { Flex as Flex26 } from "@radix-ui/themes";
45142
45170
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
45143
45171
  import { IconButton as IconButton8 } from "@radix-ui/themes";
@@ -45240,7 +45268,7 @@ function _toPrimitive42(t, r) {
45240
45268
  return ("string" === r ? String : Number)(t);
45241
45269
  }
45242
45270
  var Root10 = function(t0) {
45243
- var $ = _c44(14);
45271
+ var $ = _c45(14);
45244
45272
  var children = t0.children, style = t0.style, className = t0.className;
45245
45273
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
45246
45274
  var t1 = isOpen ? "none" : "flex";
@@ -45321,15 +45349,15 @@ function _temp7(prev) {
45321
45349
  return !prev;
45322
45350
  }
45323
45351
  // src/components/threads/ThreadDialog/Content/index.tsx
45324
- import { c as _c46 } from "react-compiler-runtime";
45352
+ import { c as _c47 } from "react-compiler-runtime";
45325
45353
  import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
45326
45354
  // src/components/threads/ThreadDialog/Close/index.tsx
45327
- import { c as _c45 } from "react-compiler-runtime";
45355
+ import { c as _c46 } from "react-compiler-runtime";
45328
45356
  import { Cross1Icon } from "@radix-ui/react-icons";
45329
45357
  import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
45330
45358
  import { jsx as _jsx80 } from "react/jsx-runtime";
45331
45359
  var Close = function() {
45332
- var $ = _c45(9);
45360
+ var $ = _c46(9);
45333
45361
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
45334
45362
  var t0 = isOpen ? "flex" : "none";
45335
45363
  var t1;
@@ -45445,7 +45473,7 @@ function _toPrimitive43(t, r) {
45445
45473
  return ("string" === r ? String : Number)(t);
45446
45474
  }
45447
45475
  var Root11 = function(t0) {
45448
- var $ = _c46(19);
45476
+ var $ = _c47(19);
45449
45477
  var children = t0.children, className = t0.className, style = t0.style;
45450
45478
  var isOpen = useThreadDialogContext().isOpen;
45451
45479
  if (!isOpen) {
@@ -45644,7 +45672,7 @@ ThreadDialog.Root = Root9;
45644
45672
  ThreadDialog.Trigger = Trigger;
45645
45673
  ThreadDialog.Content = Content7;
45646
45674
  // src/components/threads/AudioThread/Root/index.tsx
45647
- import { c as _c52 } from "react-compiler-runtime";
45675
+ import { c as _c53 } from "react-compiler-runtime";
45648
45676
  import { Flex as Flex29 } from "@radix-ui/themes";
45649
45677
  // src/contexts/threads/AudioThreadContext/index.ts
45650
45678
  import { createContext as createContext13 } from "react";
@@ -45652,17 +45680,17 @@ var AudioThreadContext = /* @__PURE__ */ createContext13({
45652
45680
  audioRuntime: null
45653
45681
  });
45654
45682
  // src/hooks/threads/useAudioThreadContext/index.ts
45655
- import { useContext as useContext15 } from "react";
45683
+ import { useContext as useContext16 } from "react";
45656
45684
  var useAudioThreadContext = function() {
45657
- return useContext15(AudioThreadContext);
45685
+ return useContext16(AudioThreadContext);
45658
45686
  };
45659
45687
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
45660
- import { c as _c51 } from "react-compiler-runtime";
45688
+ import { c as _c52 } from "react-compiler-runtime";
45661
45689
  // src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
45662
- import { c as _c50 } from "react-compiler-runtime";
45690
+ import { c as _c51 } from "react-compiler-runtime";
45663
45691
  import { useMemo as useMemo18 } from "react";
45664
45692
  // src/hooks/misc/usePermission/index.ts
45665
- import { c as _c47 } from "react-compiler-runtime";
45693
+ import { c as _c48 } from "react-compiler-runtime";
45666
45694
  import { useEffect as useEffect7, useState as useState7 } from "react";
45667
45695
  // src/hooks/misc/usePermission/util.ts
45668
45696
  var noop = function() {};
@@ -45686,7 +45714,7 @@ function off(obj) {
45686
45714
  }
45687
45715
  // src/hooks/misc/usePermission/index.ts
45688
45716
  var usePermission = function(permissionDesc) {
45689
- var $ = _c47(3);
45717
+ var $ = _c48(3);
45690
45718
  var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
45691
45719
  var t0;
45692
45720
  var t1;
@@ -45735,10 +45763,10 @@ import { useAudioCapture } from "use-audio-capture";
45735
45763
  import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
45736
45764
  import { useAudioPlayer } from "react-use-audio-player";
45737
45765
  // src/hooks/misc/useInterval.ts
45738
- import { c as _c48 } from "react-compiler-runtime";
45766
+ import { c as _c49 } from "react-compiler-runtime";
45739
45767
  import { useEffect as useEffect8, useRef as useRef6 } from "react";
45740
45768
  var useInterval = function(callback, delay) {
45741
- var $ = _c48(5);
45769
+ var $ = _c49(5);
45742
45770
  var savedCallback = useRef6(_temp9);
45743
45771
  var t0;
45744
45772
  if ($[0] !== callback) {
@@ -45991,7 +46019,7 @@ var useRecorder = function(_ref) {
45991
46019
  });
45992
46020
  };
45993
46021
  // src/hooks/audioThreads/useMessageAudio/index.ts
45994
- import { c as _c49 } from "react-compiler-runtime";
46022
+ import { c as _c50 } from "react-compiler-runtime";
45995
46023
  import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
45996
46024
  import nlp from "compromise";
45997
46025
  import { Howler } from "howler";
@@ -46074,7 +46102,7 @@ var getMessageSentences = function(_ref) {
46074
46102
  };
46075
46103
  var useMessageAudio = function(t0) {
46076
46104
  var _latestMessageProps$l;
46077
- var $ = _c49(50);
46105
+ var $ = _c50(50);
46078
46106
  var _onEnd = t0.onEnd, passedPlay = t0.play;
46079
46107
  var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
46080
46108
  var t1;
@@ -46455,7 +46483,7 @@ function _asyncToGenerator11(n) {
46455
46483
  };
46456
46484
  }
46457
46485
  var useTtsAudioRuntime = function(t0) {
46458
- var $ = _c50(30);
46486
+ var $ = _c51(30);
46459
46487
  var play = t0.play;
46460
46488
  var addToast = useToasts().addToast;
46461
46489
  var queryClient = useQueryClient6();
@@ -46643,7 +46671,7 @@ function _temp23() {
46643
46671
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
46644
46672
  import { jsx as _jsx83 } from "react/jsx-runtime";
46645
46673
  var TtsAudioRuntimeProvider = function(t0) {
46646
- var $ = _c51(7);
46674
+ var $ = _c52(7);
46647
46675
  var children = t0.children, play = t0.play;
46648
46676
  var t1;
46649
46677
  if ($[0] !== play) {
@@ -46764,7 +46792,7 @@ var Content8 = function(_ref) {
46764
46792
  });
46765
46793
  };
46766
46794
  var AudioRuntimeProvider = function(t0) {
46767
- var $ = _c52(3);
46795
+ var $ = _c53(3);
46768
46796
  var children = t0.children, play = t0.play;
46769
46797
  var audioThreadContext = useAudioThreadContext();
46770
46798
  if (audioThreadContext.audioRuntime) {
@@ -46785,7 +46813,7 @@ var AudioRuntimeProvider = function(t0) {
46785
46813
  return t1;
46786
46814
  };
46787
46815
  var Provider5 = function(t0) {
46788
- var $ = _c52(9);
46816
+ var $ = _c53(9);
46789
46817
  var children;
46790
46818
  var rest;
46791
46819
  if ($[0] !== t0) {
@@ -46840,7 +46868,7 @@ var Root12 = function(_ref2) {
46840
46868
  }));
46841
46869
  };
46842
46870
  // src/components/threads/AudioThread/Visualization/index.tsx
46843
- 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";
46844
46872
  import _9 from "lodash";
46845
46873
  import { Flex as Flex31 } from "@radix-ui/themes";
46846
46874
  // src/components/threads/AudioThread/BarsVisualizer/index.tsx
@@ -46908,10 +46936,10 @@ var BarsVisualizer = function(_ref) {
46908
46936
  });
46909
46937
  };
46910
46938
  // src/hooks/audioThreads/useStatus/index.ts
46911
- import { c as _c53 } from "react-compiler-runtime";
46939
+ import { c as _c54 } from "react-compiler-runtime";
46912
46940
  import { useMemo as useMemo19 } from "react";
46913
46941
  var useStatus = function() {
46914
- var $ = _c53(2);
46942
+ var $ = _c54(2);
46915
46943
  var audioRuntime = useAudioThreadContext().audioRuntime;
46916
46944
  var t0;
46917
46945
  bb0: {
@@ -47006,7 +47034,7 @@ function _toPrimitive47(t, r) {
47006
47034
  var Visualization = function(props) {
47007
47035
  var status = useStatus().status;
47008
47036
  var audioThreadContext = useAudioThreadContext();
47009
- var assistantNameContext = useContext16(AssistantNameContext);
47037
+ var assistantNameContext = useContext17(AssistantNameContext);
47010
47038
  var _useState11 = _sliced_to_array(useState11(0), 2), scale = _useState11[0], setScale = _useState11[1];
47011
47039
  var draw = useCallback8(function(_ref) {
47012
47040
  var visualizationAnalyser = _ref.visualizationAnalyser;
@@ -47071,7 +47099,7 @@ var Visualization = function(props) {
47071
47099
  }));
47072
47100
  };
47073
47101
  // src/components/threads/AudioThread/Status/index.tsx
47074
- import { c as _c54 } from "react-compiler-runtime";
47102
+ import { c as _c55 } from "react-compiler-runtime";
47075
47103
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
47076
47104
  import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
47077
47105
  import { jsx as _jsx87, jsxs as _jsxs32 } from "react/jsx-runtime";
@@ -47151,7 +47179,7 @@ function _toPrimitive48(t, r) {
47151
47179
  return ("string" === r ? String : Number)(t);
47152
47180
  }
47153
47181
  var Status = function(props) {
47154
- var $ = _c54(12);
47182
+ var $ = _c55(12);
47155
47183
  var status = useStatus().status;
47156
47184
  if (status === "recording") {
47157
47185
  var _t;
@@ -47248,7 +47276,7 @@ var Status = function(props) {
47248
47276
  return t1;
47249
47277
  };
47250
47278
  // src/components/threads/AudioThread/Form/index.tsx
47251
- import { c as _c56 } from "react-compiler-runtime";
47279
+ import { c as _c57 } from "react-compiler-runtime";
47252
47280
  import { Flex as Flex34 } from "@radix-ui/themes";
47253
47281
  // src/components/threads/AudioThread/Form/MicIcon.tsx
47254
47282
  import { jsx as _jsx89 } from "react/jsx-runtime";
@@ -47312,12 +47340,12 @@ var MicIcon = function(props) {
47312
47340
  }));
47313
47341
  };
47314
47342
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
47315
- import { c as _c55 } from "react-compiler-runtime";
47343
+ import { c as _c56 } from "react-compiler-runtime";
47316
47344
  import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
47317
47345
  import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
47318
47346
  import { jsx as _jsx90, jsxs as _jsxs33 } from "react/jsx-runtime";
47319
47347
  var ActionButton = function() {
47320
- var $ = _c55(27);
47348
+ var $ = _c56(27);
47321
47349
  var status = useStatus().status;
47322
47350
  var audioThreadContext = useAudioThreadContext();
47323
47351
  var superinterfaceContext = useSuperinterfaceContext();
@@ -47555,7 +47583,7 @@ function _toPrimitive50(t, r) {
47555
47583
  return ("string" === r ? String : Number)(t);
47556
47584
  }
47557
47585
  var Form = function(props) {
47558
- var $ = _c56(17);
47586
+ var $ = _c57(17);
47559
47587
  var status = useStatus().status;
47560
47588
  var audioThreadContext = useAudioThreadContext();
47561
47589
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
@@ -48265,10 +48293,10 @@ var useWebrtcAudioRuntime = function() {
48265
48293
  ]);
48266
48294
  };
48267
48295
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
48268
- import { c as _c57 } from "react-compiler-runtime";
48296
+ import { c as _c58 } from "react-compiler-runtime";
48269
48297
  import { jsx as _jsx94 } from "react/jsx-runtime";
48270
48298
  var WebrtcAudioRuntimeProvider = function(t0) {
48271
- var $ = _c57(5);
48299
+ var $ = _c58(5);
48272
48300
  var children = t0.children;
48273
48301
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
48274
48302
  var t1;
@@ -48296,7 +48324,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
48296
48324
  return t2;
48297
48325
  };
48298
48326
  // src/components/markdown/MarkdownProvider/index.tsx
48299
- import { c as _c58 } from "react-compiler-runtime";
48327
+ import { c as _c59 } from "react-compiler-runtime";
48300
48328
  import { useMemo as useMemo21 } from "react";
48301
48329
  import { jsx as _jsx95 } from "react/jsx-runtime";
48302
48330
  var _excluded6 = [
@@ -48321,7 +48349,7 @@ function _objectWithoutPropertiesLoose6(r, e) {
48321
48349
  return t;
48322
48350
  }
48323
48351
  var MarkdownProvider = function(t0) {
48324
- var $ = _c58(9);
48352
+ var $ = _c59(9);
48325
48353
  var children;
48326
48354
  var rest;
48327
48355
  if ($[0] !== t0) {
@@ -48364,18 +48392,18 @@ var MarkdownProvider = function(t0) {
48364
48392
  return t3;
48365
48393
  };
48366
48394
  // src/components/annotations/SourceAnnotation/index.tsx
48367
- import { c as _c61 } from "react-compiler-runtime";
48395
+ import { c as _c62 } from "react-compiler-runtime";
48368
48396
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
48369
- import { c as _c60 } from "react-compiler-runtime";
48397
+ import { c as _c61 } from "react-compiler-runtime";
48370
48398
  import { useState as useState13 } from "react";
48371
48399
  import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
48372
48400
  import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
48373
48401
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
48374
- import { c as _c59 } from "react-compiler-runtime";
48402
+ import { c as _c60 } from "react-compiler-runtime";
48375
48403
  import { Flex as Flex35, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
48376
48404
  import { jsx as _jsx96 } from "react/jsx-runtime";
48377
48405
  var Content9 = function(t0) {
48378
- var $ = _c59(5);
48406
+ var $ = _c60(5);
48379
48407
  var fileId = t0.fileId;
48380
48408
  var superinterfaceContext = useSuperinterfaceContext();
48381
48409
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -48441,7 +48469,7 @@ var Content9 = function(t0) {
48441
48469
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
48442
48470
  import { jsx as _jsx97, jsxs as _jsxs37, Fragment as _Fragment5 } from "react/jsx-runtime";
48443
48471
  var FileCitation = function(t0) {
48444
- var $ = _c60(18);
48472
+ var $ = _c61(18);
48445
48473
  var annotation = t0.annotation;
48446
48474
  var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
48447
48475
  var t1;
@@ -48590,7 +48618,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
48590
48618
  return t;
48591
48619
  }
48592
48620
  var SourceAnnotation = function(t0) {
48593
- var $ = _c61(10);
48621
+ var $ = _c62(10);
48594
48622
  var children;
48595
48623
  var rest;
48596
48624
  if ($[0] !== t0) {
@@ -48647,7 +48675,7 @@ var SourceAnnotation = function(t0) {
48647
48675
  return null;
48648
48676
  };
48649
48677
  // src/components/avatars/Avatar.tsx
48650
- import { c as _c64 } from "react-compiler-runtime";
48678
+ import { c as _c65 } from "react-compiler-runtime";
48651
48679
  // src/lib/enums/index.ts
48652
48680
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
48653
48681
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -48672,7 +48700,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
48672
48700
  // src/components/avatars/Avatar.tsx
48673
48701
  import { Avatar as RadixAvatar } from "@radix-ui/themes";
48674
48702
  // src/components/imageAvatars/ImageAvatar/index.tsx
48675
- import { c as _c62 } from "react-compiler-runtime";
48703
+ import { c as _c63 } from "react-compiler-runtime";
48676
48704
  import { Avatar as Avatar4 } from "@radix-ui/themes";
48677
48705
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
48678
48706
  var width = function(_ref) {
@@ -48726,7 +48754,7 @@ var optimizedSrc = function(_ref) {
48726
48754
  // src/components/imageAvatars/ImageAvatar/index.tsx
48727
48755
  import { jsx as _jsx99 } from "react/jsx-runtime";
48728
48756
  var ImageAvatar = function(t0) {
48729
- var $ = _c62(9);
48757
+ var $ = _c63(9);
48730
48758
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
48731
48759
  var superinterfaceContext = useSuperinterfaceContext();
48732
48760
  var t1;
@@ -48763,7 +48791,7 @@ var ImageAvatar = function(t0) {
48763
48791
  return t2;
48764
48792
  };
48765
48793
  // src/components/iconAvatars/IconAvatar.tsx
48766
- import { c as _c63 } from "react-compiler-runtime";
48794
+ import { c as _c64 } from "react-compiler-runtime";
48767
48795
  import { useMemo as useMemo22 } from "react";
48768
48796
  import { Avatar as Avatar5 } from "@radix-ui/themes";
48769
48797
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -48773,7 +48801,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
48773
48801
  // src/components/iconAvatars/IconAvatar.tsx
48774
48802
  import { jsx as _jsx100 } from "react/jsx-runtime";
48775
48803
  var IconAvatar = function(t0) {
48776
- var $ = _c63(7);
48804
+ var $ = _c64(7);
48777
48805
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
48778
48806
  var t1;
48779
48807
  t1 = iconAvatarComponents[iconAvatar.name];
@@ -48807,7 +48835,7 @@ var IconAvatar = function(t0) {
48807
48835
  // src/components/avatars/Avatar.tsx
48808
48836
  import { jsx as _jsx101 } from "react/jsx-runtime";
48809
48837
  var Avatar6 = function(t0) {
48810
- var $ = _c64(14);
48838
+ var $ = _c65(14);
48811
48839
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
48812
48840
  var size = t1 === void 0 ? "1" : t1;
48813
48841
  if (avatar) {
@@ -48868,12 +48896,12 @@ var Avatar6 = function(t0) {
48868
48896
  return t2;
48869
48897
  };
48870
48898
  // src/components/components/ComponentsProvider.tsx
48871
- import { c as _c65 } from "react-compiler-runtime";
48899
+ import { c as _c66 } from "react-compiler-runtime";
48872
48900
  import { useMemo as useMemo23 } from "react";
48873
48901
  // src/hooks/components/useComponents.ts
48874
- import { useContext as useContext17 } from "react";
48902
+ import { useContext as useContext18 } from "react";
48875
48903
  var useComponents = function() {
48876
- return useContext17(ComponentsContext);
48904
+ return useContext18(ComponentsContext);
48877
48905
  };
48878
48906
  // src/components/components/ComponentsProvider.tsx
48879
48907
  import { jsx as _jsx102 } from "react/jsx-runtime";
@@ -48899,7 +48927,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
48899
48927
  return t;
48900
48928
  }
48901
48929
  var ComponentsProvider = function(t0) {
48902
- var $ = _c65(9);
48930
+ var $ = _c66(9);
48903
48931
  var children;
48904
48932
  var rest;
48905
48933
  if ($[0] !== t0) {
@@ -48942,11 +48970,11 @@ var ComponentsProvider = function(t0) {
48942
48970
  return t3;
48943
48971
  };
48944
48972
  // src/components/assistants/AssistantProvider/index.tsx
48945
- import { c as _c66 } from "react-compiler-runtime";
48973
+ import { c as _c67 } from "react-compiler-runtime";
48946
48974
  import { jsx as _jsx103 } from "react/jsx-runtime";
48947
48975
  var AssistantProvider = function(t0) {
48948
48976
  var _assistant$name;
48949
- var $ = _c66(10);
48977
+ var $ = _c67(10);
48950
48978
  var children = t0.children;
48951
48979
  var superinterfaceContext = useSuperinterfaceContext();
48952
48980
  var t1;