@superinterface/react 4.2.1 → 4.3.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
@@ -37811,7 +37811,7 @@ var SuperinterfaceProvider = function(_ref) {
37811
37811
  });
37812
37812
  };
37813
37813
  // src/components/threads/Thread/index.tsx
37814
- import { c as _c75 } from "react-compiler-runtime";
37814
+ import { c as _c76 } from "react-compiler-runtime";
37815
37815
  // src/components/threads/Thread/Messages/index.tsx
37816
37816
  import { c as _c65 } from "react-compiler-runtime";
37817
37817
  import { Flex as Flex18 } from "@radix-ui/themes";
@@ -37841,23 +37841,25 @@ var FunctionComponentsContext = /* @__PURE__ */ createContext2({});
37841
37841
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn.tsx
37842
37842
  import { jsx as _jsx2 } from "react/jsx-runtime";
37843
37843
  var Fn = function(t0) {
37844
- var $ = _c(4);
37845
- var fn = t0.fn, runStep = t0.runStep;
37844
+ var $ = _c(5);
37845
+ var fn = t0.fn, runStep = t0.runStep, toolCall = t0.toolCall;
37846
37846
  var functionComponentsContext = useContext2(FunctionComponentsContext);
37847
37847
  var componentsContext = useContext2(ComponentsContext);
37848
37848
  var Component2 = functionComponentsContext[fn.name] || componentsContext.components.Function;
37849
37849
  var t1;
37850
- if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep) {
37850
+ if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep || $[3] !== toolCall) {
37851
37851
  t1 = /* @__PURE__ */ _jsx2(Component2, {
37852
37852
  fn: fn,
37853
- runStep: runStep
37853
+ runStep: runStep,
37854
+ toolCall: toolCall
37854
37855
  });
37855
37856
  $[0] = Component2;
37856
37857
  $[1] = fn;
37857
37858
  $[2] = runStep;
37858
- $[3] = t1;
37859
+ $[3] = toolCall;
37860
+ $[4] = t1;
37859
37861
  } else {
37860
- t1 = $[3];
37862
+ t1 = $[4];
37861
37863
  }
37862
37864
  return t1;
37863
37865
  };
@@ -37866,22 +37868,24 @@ import { c as _c2 } from "react-compiler-runtime";
37866
37868
  import { useContext as useContext3 } from "react";
37867
37869
  import { jsx as _jsx3 } from "react/jsx-runtime";
37868
37870
  var CodeInterpreter = function(t0) {
37869
- var $ = _c2(4);
37870
- var codeInterpreter = t0.codeInterpreter, runStep = t0.runStep;
37871
+ var $ = _c2(5);
37872
+ var codeInterpreter = t0.codeInterpreter, runStep = t0.runStep, toolCall = t0.toolCall;
37871
37873
  var componentsContext = useContext3(ComponentsContext);
37872
37874
  var Component2 = componentsContext.components.CodeInterpreterToolCall;
37873
37875
  var t1;
37874
- if ($[0] !== Component2 || $[1] !== codeInterpreter || $[2] !== runStep) {
37876
+ if ($[0] !== Component2 || $[1] !== codeInterpreter || $[2] !== runStep || $[3] !== toolCall) {
37875
37877
  t1 = /* @__PURE__ */ _jsx3(Component2, {
37876
37878
  codeInterpreter: codeInterpreter,
37877
- runStep: runStep
37879
+ runStep: runStep,
37880
+ toolCall: toolCall
37878
37881
  });
37879
37882
  $[0] = Component2;
37880
37883
  $[1] = codeInterpreter;
37881
37884
  $[2] = runStep;
37882
- $[3] = t1;
37885
+ $[3] = toolCall;
37886
+ $[4] = t1;
37883
37887
  } else {
37884
- t1 = $[3];
37888
+ t1 = $[4];
37885
37889
  }
37886
37890
  return t1;
37887
37891
  };
@@ -37940,13 +37944,14 @@ var ToolCall = function(t0) {
37940
37944
  var toolCall = t0.toolCall, runStep = t0.runStep;
37941
37945
  if (toolCall.type === "function") {
37942
37946
  var _t;
37943
- if ($[0] !== runStep || $[1] !== toolCall.function) {
37947
+ if ($[0] !== runStep || $[1] !== toolCall) {
37944
37948
  _t = /* @__PURE__ */ _jsx6(Fn, {
37945
37949
  fn: toolCall.function,
37950
+ toolCall: toolCall,
37946
37951
  runStep: runStep
37947
37952
  });
37948
37953
  $[0] = runStep;
37949
- $[1] = toolCall.function;
37954
+ $[1] = toolCall;
37950
37955
  $[2] = _t;
37951
37956
  } else {
37952
37957
  _t = $[2];
@@ -37955,13 +37960,14 @@ var ToolCall = function(t0) {
37955
37960
  }
37956
37961
  if (toolCall.type === "code_interpreter") {
37957
37962
  var _t2;
37958
- if ($[3] !== runStep || $[4] !== toolCall.code_interpreter) {
37963
+ if ($[3] !== runStep || $[4] !== toolCall) {
37959
37964
  _t2 = /* @__PURE__ */ _jsx6(CodeInterpreter, {
37960
37965
  codeInterpreter: toolCall.code_interpreter,
37966
+ toolCall: toolCall,
37961
37967
  runStep: runStep
37962
37968
  });
37963
37969
  $[3] = runStep;
37964
- $[4] = toolCall.code_interpreter;
37970
+ $[4] = toolCall;
37965
37971
  $[5] = _t2;
37966
37972
  } else {
37967
37973
  _t2 = $[5];
@@ -44548,7 +44554,7 @@ Messages2.Message = Message;
44548
44554
  Messages2.NextPageSkeleton = NextPageSkeleton;
44549
44555
  Messages2.Content = Content7;
44550
44556
  // src/components/threads/Thread/MessageForm/index.tsx
44551
- import { c as _c71 } from "react-compiler-runtime";
44557
+ import { c as _c72 } from "react-compiler-runtime";
44552
44558
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
44553
44559
  import { c as _c66 } from "react-compiler-runtime";
44554
44560
  import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
@@ -45374,11 +45380,13 @@ var Preview = function(props) {
45374
45380
  return t1;
45375
45381
  };
45376
45382
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
45383
+ import { c as _c71 } from "react-compiler-runtime";
45384
+ import { FilePlusIcon } from "@radix-ui/react-icons";
45385
+ import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
45386
+ // src/hooks/files/useChangeFilesField/index.ts
45377
45387
  import { useCallback as useCallback3 } from "react";
45378
45388
  import { omit as omit4 } from "radash";
45379
45389
  import dayjs2 from "dayjs";
45380
- import { FilePlusIcon } from "@radix-ui/react-icons";
45381
- import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
45382
45390
  // src/hooks/files/useCreateFile/index.ts
45383
45391
  import { c as _c70 } from "react-compiler-runtime";
45384
45392
  import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
@@ -45691,51 +45699,7 @@ var useCreateFile = function(t0) {
45691
45699
  };
45692
45700
  function _temp4() {}
45693
45701
  function _temp23() {}
45694
- // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
45695
- import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
45696
- function ownKeys36(e, r) {
45697
- var t = Object.keys(e);
45698
- if (Object.getOwnPropertySymbols) {
45699
- var o = Object.getOwnPropertySymbols(e);
45700
- r && (o = o.filter(function(r2) {
45701
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
45702
- })), t.push.apply(t, o);
45703
- }
45704
- return t;
45705
- }
45706
- function _objectSpread36(e) {
45707
- for(var r = 1; r < arguments.length; r++){
45708
- var t = null != arguments[r] ? arguments[r] : {};
45709
- r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
45710
- _defineProperty36(e, r2, t[r2]);
45711
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
45712
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45713
- });
45714
- }
45715
- return e;
45716
- }
45717
- function _defineProperty36(e, r, t) {
45718
- return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
45719
- value: t,
45720
- enumerable: true,
45721
- configurable: true,
45722
- writable: true
45723
- }) : e[r] = t, e;
45724
- }
45725
- function _toPropertyKey36(t) {
45726
- var i = _toPrimitive36(t, "string");
45727
- return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45728
- }
45729
- function _toPrimitive36(t, r) {
45730
- if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45731
- var e = t[Symbol.toPrimitive];
45732
- if (void 0 !== e) {
45733
- var i = e.call(t, r || "default");
45734
- if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
45735
- throw new TypeError("@@toPrimitive must return a primitive value.");
45736
- }
45737
- return ("string" === r ? String : Number)(t);
45738
- }
45702
+ // src/hooks/files/useChangeFilesField/index.ts
45739
45703
  function asyncGeneratorStep8(n, t, e, r, o, a, c) {
45740
45704
  try {
45741
45705
  var i = n[a](c), u = i.value;
@@ -45800,7 +45764,6 @@ function AsyncFromSyncIterator(r) {
45800
45764
  }
45801
45765
  }, new AsyncFromSyncIterator(r);
45802
45766
  }
45803
- var accept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript,\n.png,image/png,\n.jpeg,image/jpeg,\n.jpg,image/jpeg,\n.webp,image/webp,\n.gif,image/gif";
45804
45767
  var purpose = function(_ref) {
45805
45768
  var fileObject = _ref.fileObject;
45806
45769
  if (fileObject.type.startsWith("image/")) {
@@ -45808,11 +45771,11 @@ var purpose = function(_ref) {
45808
45771
  }
45809
45772
  return "assistants";
45810
45773
  };
45811
- var Control2 = function(props) {
45812
- var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, setFiles = _useMessageFormContext.setFiles;
45774
+ var useChangeFilesField = function() {
45775
+ var setFiles = useMessageFormContext().setFiles;
45813
45776
  var createFile = useCreateFile().createFile;
45814
45777
  var addToast = useToasts().addToast;
45815
- var onChange = useCallback3(/* @__PURE__ */ function() {
45778
+ var changeFilesField = useCallback3(/* @__PURE__ */ function() {
45816
45779
  var _ref2 = _asyncToGenerator8(function(event) {
45817
45780
  var fileObjects, newFiles, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, err;
45818
45781
  return _ts_generator(this, function(_state) {
@@ -45983,40 +45946,140 @@ var Control2 = function(props) {
45983
45946
  createFile,
45984
45947
  setFiles
45985
45948
  ]);
45986
- return /* @__PURE__ */ _jsx72(Flex22, _objectSpread36(_objectSpread36({
45987
- pt: "2",
45988
- pr: "2",
45989
- flexGrow: "0"
45990
- }, props), {}, {
45991
- children: /* @__PURE__ */ _jsxs24(IconButton7, {
45949
+ return {
45950
+ changeFilesField: changeFilesField
45951
+ };
45952
+ };
45953
+ // src/lib/files/filesFieldAccept.ts
45954
+ var filesFieldAccept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript,\n.png,image/png,\n.jpeg,image/jpeg,\n.jpg,image/jpeg,\n.webp,image/webp,\n.gif,image/gif";
45955
+ // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
45956
+ import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
45957
+ function ownKeys36(e, r) {
45958
+ var t = Object.keys(e);
45959
+ if (Object.getOwnPropertySymbols) {
45960
+ var o = Object.getOwnPropertySymbols(e);
45961
+ r && (o = o.filter(function(r2) {
45962
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
45963
+ })), t.push.apply(t, o);
45964
+ }
45965
+ return t;
45966
+ }
45967
+ function _objectSpread36(e) {
45968
+ for(var r = 1; r < arguments.length; r++){
45969
+ var t = null != arguments[r] ? arguments[r] : {};
45970
+ r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
45971
+ _defineProperty36(e, r2, t[r2]);
45972
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
45973
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45974
+ });
45975
+ }
45976
+ return e;
45977
+ }
45978
+ function _defineProperty36(e, r, t) {
45979
+ return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
45980
+ value: t,
45981
+ enumerable: true,
45982
+ configurable: true,
45983
+ writable: true
45984
+ }) : e[r] = t, e;
45985
+ }
45986
+ function _toPropertyKey36(t) {
45987
+ var i = _toPrimitive36(t, "string");
45988
+ return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45989
+ }
45990
+ function _toPrimitive36(t, r) {
45991
+ if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45992
+ var e = t[Symbol.toPrimitive];
45993
+ if (void 0 !== e) {
45994
+ var i = e.call(t, r || "default");
45995
+ if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
45996
+ throw new TypeError("@@toPrimitive must return a primitive value.");
45997
+ }
45998
+ return ("string" === r ? String : Number)(t);
45999
+ }
46000
+ var Control2 = function(props) {
46001
+ var $ = _c71(11);
46002
+ var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
46003
+ var changeFilesField = useChangeFilesField().changeFilesField;
46004
+ var t0 = isDisabled || isLoading;
46005
+ var t1;
46006
+ var t2;
46007
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46008
+ t1 = {
46009
+ position: "relative",
46010
+ overflow: "hidden"
46011
+ };
46012
+ t2 = /* @__PURE__ */ _jsx72(FilePlusIcon, {});
46013
+ $[0] = t1;
46014
+ $[1] = t2;
46015
+ } else {
46016
+ t1 = $[0];
46017
+ t2 = $[1];
46018
+ }
46019
+ var t3;
46020
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
46021
+ t3 = {
46022
+ cursor: "pointer",
46023
+ position: "absolute",
46024
+ top: 0,
46025
+ left: 0,
46026
+ right: 0,
46027
+ bottom: 0,
46028
+ opacity: 0
46029
+ };
46030
+ $[2] = t3;
46031
+ } else {
46032
+ t3 = $[2];
46033
+ }
46034
+ var t4;
46035
+ if ($[3] !== changeFilesField) {
46036
+ t4 = /* @__PURE__ */ _jsx72("input", {
46037
+ type: "file",
46038
+ multiple: true,
46039
+ accept: filesFieldAccept,
46040
+ onChange: changeFilesField,
46041
+ style: t3
46042
+ });
46043
+ $[3] = changeFilesField;
46044
+ $[4] = t4;
46045
+ } else {
46046
+ t4 = $[4];
46047
+ }
46048
+ var t5;
46049
+ if ($[5] !== t0 || $[6] !== t4) {
46050
+ t5 = /* @__PURE__ */ _jsxs24(IconButton7, {
45992
46051
  type: "button",
45993
46052
  variant: "ghost",
45994
46053
  color: "gray",
45995
- disabled: isDisabled || isLoading,
45996
- style: {
45997
- position: "relative",
45998
- overflow: "hidden"
45999
- },
46054
+ disabled: t0,
46055
+ style: t1,
46000
46056
  children: [
46001
- /* @__PURE__ */ _jsx72(FilePlusIcon, {}),
46002
- /* @__PURE__ */ _jsx72("input", {
46003
- type: "file",
46004
- multiple: true,
46005
- accept: accept,
46006
- onChange: onChange,
46007
- style: {
46008
- cursor: "pointer",
46009
- position: "absolute",
46010
- top: 0,
46011
- left: 0,
46012
- right: 0,
46013
- bottom: 0,
46014
- opacity: 0
46015
- }
46016
- })
46057
+ t2,
46058
+ t4
46017
46059
  ]
46018
- })
46019
- }));
46060
+ });
46061
+ $[5] = t0;
46062
+ $[6] = t4;
46063
+ $[7] = t5;
46064
+ } else {
46065
+ t5 = $[7];
46066
+ }
46067
+ var t6;
46068
+ if ($[8] !== props || $[9] !== t5) {
46069
+ t6 = /* @__PURE__ */ _jsx72(Flex22, _objectSpread36(_objectSpread36({
46070
+ pt: "2",
46071
+ pr: "2",
46072
+ flexGrow: "0"
46073
+ }, props), {}, {
46074
+ children: t5
46075
+ }));
46076
+ $[8] = props;
46077
+ $[9] = t5;
46078
+ $[10] = t6;
46079
+ } else {
46080
+ t6 = $[10];
46081
+ }
46082
+ return t6;
46020
46083
  };
46021
46084
  // src/components/threads/Thread/MessageForm/Field/Files/index.tsx
46022
46085
  var Files = {
@@ -46152,7 +46215,7 @@ function _toPrimitive38(t, r) {
46152
46215
  return ("string" === r ? String : Number)(t);
46153
46216
  }
46154
46217
  var MessageForm = function(props) {
46155
- var $ = _c71(3);
46218
+ var $ = _c72(3);
46156
46219
  var t0;
46157
46220
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46158
46221
  t0 = /* @__PURE__ */ _jsxs25(Field.Root, {
@@ -46181,22 +46244,22 @@ MessageForm.Root = Root8;
46181
46244
  MessageForm.Field = Field;
46182
46245
  MessageForm.Submit = Submit;
46183
46246
  // src/components/threads/Thread/Root/index.tsx
46184
- import { c as _c74 } from "react-compiler-runtime";
46247
+ import { c as _c75 } from "react-compiler-runtime";
46185
46248
  import { Flex as Flex25 } from "@radix-ui/themes";
46186
46249
  // src/components/threads/Thread/Provider/index.tsx
46187
46250
  var Provider2 = SuperinterfaceProvider;
46188
46251
  // src/components/toasts/ToastsProvider/index.tsx
46189
- import { c as _c73 } from "react-compiler-runtime";
46252
+ import { c as _c74 } from "react-compiler-runtime";
46190
46253
  import { useState as useState5, useCallback as useCallback4 } from "react";
46191
46254
  import * as Toast2 from "@radix-ui/react-toast";
46192
46255
  // src/components/toasts/ToastsProvider/CustomToast.tsx
46193
- import { c as _c72 } from "react-compiler-runtime";
46256
+ import { c as _c73 } from "react-compiler-runtime";
46194
46257
  import * as Toast from "@radix-ui/react-toast";
46195
46258
  import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
46196
46259
  import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
46197
46260
  import { jsx as _jsx75, jsxs as _jsxs26 } from "react/jsx-runtime";
46198
46261
  var CustomToast = function(t0) {
46199
- var $ = _c72(7);
46262
+ var $ = _c73(7);
46200
46263
  var toast = t0.toast;
46201
46264
  var t1;
46202
46265
  if ($[0] !== toast.type) {
@@ -46252,7 +46315,7 @@ var CustomToast = function(t0) {
46252
46315
  // src/components/toasts/ToastsProvider/index.tsx
46253
46316
  import { jsx as _jsx76, jsxs as _jsxs27 } from "react/jsx-runtime";
46254
46317
  var ToastsProvider = function(t0) {
46255
- var $ = _c73(15);
46318
+ var $ = _c74(15);
46256
46319
  var children = t0.children, t1 = t0.bottom;
46257
46320
  var bottom = t1 === void 0 ? 0 : t1;
46258
46321
  var t2;
@@ -46424,7 +46487,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
46424
46487
  return t;
46425
46488
  }
46426
46489
  var Root12 = function(t0) {
46427
- var $ = _c74(12);
46490
+ var $ = _c75(12);
46428
46491
  var children;
46429
46492
  var className;
46430
46493
  var rest;
@@ -46524,7 +46587,7 @@ function _toPrimitive40(t, r) {
46524
46587
  return ("string" === r ? String : Number)(t);
46525
46588
  }
46526
46589
  var Thread = function(props) {
46527
- var $ = _c75(4);
46590
+ var $ = _c76(4);
46528
46591
  var t0;
46529
46592
  var t1;
46530
46593
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -46560,7 +46623,7 @@ var useMessageContext = function() {
46560
46623
  return useContext17(MessageContext);
46561
46624
  };
46562
46625
  // src/hooks/assistants/useAssistant/index.ts
46563
- import { c as _c76 } from "react-compiler-runtime";
46626
+ import { c as _c77 } from "react-compiler-runtime";
46564
46627
  import { useMemo as useMemo15 } from "react";
46565
46628
  import { useQuery } from "@tanstack/react-query";
46566
46629
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -46710,7 +46773,7 @@ function _toPrimitive41(t, r) {
46710
46773
  return ("string" === r ? String : Number)(t);
46711
46774
  }
46712
46775
  var useAssistant = function(t0) {
46713
- var $ = _c76(6);
46776
+ var $ = _c77(6);
46714
46777
  var assistantId = t0.assistantId;
46715
46778
  var superinterfaceContext = useSuperinterfaceContext();
46716
46779
  var t1;
@@ -46743,11 +46806,11 @@ var useAssistant = function(t0) {
46743
46806
  return t2;
46744
46807
  };
46745
46808
  // src/components/threads/ThreadDialog/index.tsx
46746
- import { c as _c83 } from "react-compiler-runtime";
46809
+ import { c as _c84 } from "react-compiler-runtime";
46747
46810
  // src/components/threads/ThreadDialog/Root/index.tsx
46748
- import { c as _c78 } from "react-compiler-runtime";
46811
+ import { c as _c79 } from "react-compiler-runtime";
46749
46812
  // src/components/threads/ThreadDialog/Provider/index.tsx
46750
- import { c as _c77 } from "react-compiler-runtime";
46813
+ import { c as _c78 } from "react-compiler-runtime";
46751
46814
  import { useState as useState6 } from "react";
46752
46815
  // src/contexts/threads/ThreadDialogContext/index.ts
46753
46816
  import { createContext as createContext12 } from "react";
@@ -46763,7 +46826,7 @@ var useThreadDialogContext = function() {
46763
46826
  // src/components/threads/ThreadDialog/Provider/index.tsx
46764
46827
  import { jsx as _jsx79 } from "react/jsx-runtime";
46765
46828
  var Provider4 = function(t0) {
46766
- var $ = _c77(5);
46829
+ var $ = _c78(5);
46767
46830
  var children = t0.children;
46768
46831
  var threadDialogContext = useThreadDialogContext();
46769
46832
  var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
@@ -46795,7 +46858,7 @@ var Provider4 = function(t0) {
46795
46858
  // src/components/threads/ThreadDialog/Root/index.tsx
46796
46859
  import { jsx as _jsx80 } from "react/jsx-runtime";
46797
46860
  var Root13 = function(t0) {
46798
- var $ = _c78(2);
46861
+ var $ = _c79(2);
46799
46862
  var children = t0.children;
46800
46863
  var t1;
46801
46864
  if ($[0] !== children) {
@@ -46810,10 +46873,10 @@ var Root13 = function(t0) {
46810
46873
  return t1;
46811
46874
  };
46812
46875
  // src/components/threads/ThreadDialog/Trigger/index.tsx
46813
- import { c as _c80 } from "react-compiler-runtime";
46876
+ import { c as _c81 } from "react-compiler-runtime";
46814
46877
  import { Flex as Flex26 } from "@radix-ui/themes";
46815
46878
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
46816
- import { c as _c79 } from "react-compiler-runtime";
46879
+ import { c as _c80 } from "react-compiler-runtime";
46817
46880
  import { IconButton as IconButton8 } from "@radix-ui/themes";
46818
46881
  import { ChatBubbleIcon } from "@radix-ui/react-icons";
46819
46882
  import { jsx as _jsx81 } from "react/jsx-runtime";
@@ -46861,7 +46924,7 @@ function _toPrimitive42(t, r) {
46861
46924
  return ("string" === r ? String : Number)(t);
46862
46925
  }
46863
46926
  var Button4 = function(props) {
46864
- var $ = _c79(3);
46927
+ var $ = _c80(3);
46865
46928
  var t0;
46866
46929
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46867
46930
  t0 = /* @__PURE__ */ _jsx81(ChatBubbleIcon, {});
@@ -46930,7 +46993,7 @@ function _toPrimitive43(t, r) {
46930
46993
  return ("string" === r ? String : Number)(t);
46931
46994
  }
46932
46995
  var Root14 = function(t0) {
46933
- var $ = _c80(14);
46996
+ var $ = _c81(14);
46934
46997
  var children = t0.children, style = t0.style, className = t0.className;
46935
46998
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
46936
46999
  var t1 = isOpen ? "none" : "flex";
@@ -47001,7 +47064,7 @@ var Root14 = function(t0) {
47001
47064
  return t6;
47002
47065
  };
47003
47066
  var Trigger = function(args) {
47004
- var $ = _c80(3);
47067
+ var $ = _c81(3);
47005
47068
  var t0;
47006
47069
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47007
47070
  t0 = /* @__PURE__ */ _jsx82(Button4, {});
@@ -47027,15 +47090,15 @@ function _temp6(prev) {
47027
47090
  return !prev;
47028
47091
  }
47029
47092
  // src/components/threads/ThreadDialog/Content/index.tsx
47030
- import { c as _c82 } from "react-compiler-runtime";
47093
+ import { c as _c83 } from "react-compiler-runtime";
47031
47094
  import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
47032
47095
  // src/components/threads/ThreadDialog/Close/index.tsx
47033
- import { c as _c81 } from "react-compiler-runtime";
47096
+ import { c as _c82 } from "react-compiler-runtime";
47034
47097
  import { Cross1Icon } from "@radix-ui/react-icons";
47035
47098
  import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
47036
47099
  import { jsx as _jsx83 } from "react/jsx-runtime";
47037
47100
  var Close = function() {
47038
- var $ = _c81(9);
47101
+ var $ = _c82(9);
47039
47102
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
47040
47103
  var t0 = isOpen ? "flex" : "none";
47041
47104
  var t1;
@@ -47151,7 +47214,7 @@ function _toPrimitive44(t, r) {
47151
47214
  return ("string" === r ? String : Number)(t);
47152
47215
  }
47153
47216
  var Root15 = function(t0) {
47154
- var $ = _c82(19);
47217
+ var $ = _c83(19);
47155
47218
  var children = t0.children, className = t0.className, style = t0.style;
47156
47219
  var isOpen = useThreadDialogContext().isOpen;
47157
47220
  if (!isOpen) {
@@ -47298,7 +47361,7 @@ var Root15 = function(t0) {
47298
47361
  return t13;
47299
47362
  };
47300
47363
  var Messages3 = function(t0) {
47301
- var $ = _c82(5);
47364
+ var $ = _c83(5);
47302
47365
  var className = t0.className, style = t0.style;
47303
47366
  var t1;
47304
47367
  if ($[0] !== style) {
@@ -47327,7 +47390,7 @@ var Messages3 = function(t0) {
47327
47390
  return t2;
47328
47391
  };
47329
47392
  var FormContainer = function(t0) {
47330
- var $ = _c82(4);
47393
+ var $ = _c83(4);
47331
47394
  var children = t0.children, className = t0.className, style = t0.style;
47332
47395
  var t1;
47333
47396
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
@@ -47351,7 +47414,7 @@ var FormContainer = function(t0) {
47351
47414
  return t1;
47352
47415
  };
47353
47416
  var Content8 = function(props) {
47354
- var $ = _c82(4);
47417
+ var $ = _c83(4);
47355
47418
  var t0;
47356
47419
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47357
47420
  t0 = /* @__PURE__ */ _jsx84(Messages3, {});
@@ -47391,7 +47454,7 @@ Content8.FormContainer = FormContainer;
47391
47454
  // src/components/threads/ThreadDialog/index.tsx
47392
47455
  import { jsx as _jsx85, jsxs as _jsxs30 } from "react/jsx-runtime";
47393
47456
  var ThreadDialog = function() {
47394
- var $ = _c83(1);
47457
+ var $ = _c84(1);
47395
47458
  var t0;
47396
47459
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47397
47460
  t0 = /* @__PURE__ */ _jsxs30(Root13, {
@@ -47410,11 +47473,11 @@ ThreadDialog.Root = Root13;
47410
47473
  ThreadDialog.Trigger = Trigger;
47411
47474
  ThreadDialog.Content = Content8;
47412
47475
  // src/components/threads/AudioThreadDialog/index.tsx
47413
- import { c as _c98 } from "react-compiler-runtime";
47476
+ import { c as _c99 } from "react-compiler-runtime";
47414
47477
  // src/components/threads/AudioThread/index.tsx
47415
- import { c as _c97 } from "react-compiler-runtime";
47478
+ import { c as _c98 } from "react-compiler-runtime";
47416
47479
  // src/components/threads/AudioThread/Root/index.tsx
47417
- import { c as _c89 } from "react-compiler-runtime";
47480
+ import { c as _c90 } from "react-compiler-runtime";
47418
47481
  import { Flex as Flex29 } from "@radix-ui/themes";
47419
47482
  // src/contexts/threads/AudioThreadContext/index.ts
47420
47483
  import { createContext as createContext13 } from "react";
@@ -47427,12 +47490,12 @@ var useAudioThreadContext = function() {
47427
47490
  return useContext19(AudioThreadContext);
47428
47491
  };
47429
47492
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
47430
- import { c as _c88 } from "react-compiler-runtime";
47493
+ import { c as _c89 } from "react-compiler-runtime";
47431
47494
  // src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
47432
- import { c as _c87 } from "react-compiler-runtime";
47495
+ import { c as _c88 } from "react-compiler-runtime";
47433
47496
  import { useMemo as useMemo18 } from "react";
47434
47497
  // src/hooks/misc/usePermission/index.ts
47435
- import { c as _c84 } from "react-compiler-runtime";
47498
+ import { c as _c85 } from "react-compiler-runtime";
47436
47499
  import { useEffect as useEffect7, useState as useState7 } from "react";
47437
47500
  // src/hooks/misc/usePermission/util.ts
47438
47501
  var noop = function() {};
@@ -47456,7 +47519,7 @@ function off(obj) {
47456
47519
  }
47457
47520
  // src/hooks/misc/usePermission/index.ts
47458
47521
  var usePermission = function(permissionDesc) {
47459
- var $ = _c84(3);
47522
+ var $ = _c85(3);
47460
47523
  var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
47461
47524
  var t0;
47462
47525
  var t1;
@@ -47505,10 +47568,10 @@ import { useAudioCapture } from "use-audio-capture";
47505
47568
  import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
47506
47569
  import { useAudioPlayer } from "react-use-audio-player";
47507
47570
  // src/hooks/misc/useInterval.ts
47508
- import { c as _c85 } from "react-compiler-runtime";
47571
+ import { c as _c86 } from "react-compiler-runtime";
47509
47572
  import { useEffect as useEffect8, useRef as useRef6 } from "react";
47510
47573
  var useInterval = function(callback, delay) {
47511
- var $ = _c85(5);
47574
+ var $ = _c86(5);
47512
47575
  var savedCallback = useRef6(_temp8);
47513
47576
  var t0;
47514
47577
  if ($[0] !== callback) {
@@ -47761,7 +47824,7 @@ var useRecorder = function(_ref) {
47761
47824
  });
47762
47825
  };
47763
47826
  // src/hooks/audioThreads/useMessageAudio/index.ts
47764
- import { c as _c86 } from "react-compiler-runtime";
47827
+ import { c as _c87 } from "react-compiler-runtime";
47765
47828
  import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
47766
47829
  import nlp from "compromise";
47767
47830
  import { Howler } from "howler";
@@ -47844,7 +47907,7 @@ var getMessageSentences = function(_ref) {
47844
47907
  };
47845
47908
  var useMessageAudio = function(t0) {
47846
47909
  var _latestMessageProps$l;
47847
- var $ = _c86(49);
47910
+ var $ = _c87(49);
47848
47911
  var _onEnd = t0.onEnd, passedPlay = t0.play;
47849
47912
  var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
47850
47913
  var t1;
@@ -48224,7 +48287,7 @@ function _asyncToGenerator11(n) {
48224
48287
  };
48225
48288
  }
48226
48289
  var useTtsAudioRuntime = function(t0) {
48227
- var $ = _c87(30);
48290
+ var $ = _c88(30);
48228
48291
  var play = t0.play;
48229
48292
  var addToast = useToasts().addToast;
48230
48293
  var queryClient = useQueryClient6();
@@ -48400,7 +48463,7 @@ function _temp24() {
48400
48463
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
48401
48464
  import { jsx as _jsx86 } from "react/jsx-runtime";
48402
48465
  var TtsAudioRuntimeProvider = function(t0) {
48403
- var $ = _c88(7);
48466
+ var $ = _c89(7);
48404
48467
  var children = t0.children, play = t0.play;
48405
48468
  var t1;
48406
48469
  if ($[0] !== play) {
@@ -48510,7 +48573,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
48510
48573
  return t;
48511
48574
  }
48512
48575
  var Content9 = function(t0) {
48513
- var $ = _c89(4);
48576
+ var $ = _c90(4);
48514
48577
  var children = t0.children, className = t0.className, style = t0.style;
48515
48578
  var t1;
48516
48579
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
@@ -48532,7 +48595,7 @@ var Content9 = function(t0) {
48532
48595
  return t1;
48533
48596
  };
48534
48597
  var AudioRuntimeProvider = function(t0) {
48535
- var $ = _c89(3);
48598
+ var $ = _c90(3);
48536
48599
  var children = t0.children, play = t0.play;
48537
48600
  var audioThreadContext = useAudioThreadContext();
48538
48601
  if (audioThreadContext.audioRuntime) {
@@ -48553,7 +48616,7 @@ var AudioRuntimeProvider = function(t0) {
48553
48616
  return t1;
48554
48617
  };
48555
48618
  var Provider5 = function(t0) {
48556
- var $ = _c89(9);
48619
+ var $ = _c90(9);
48557
48620
  var children;
48558
48621
  var rest;
48559
48622
  if ($[0] !== t0) {
@@ -48593,7 +48656,7 @@ var Provider5 = function(t0) {
48593
48656
  return t2;
48594
48657
  };
48595
48658
  var Root16 = function(t0) {
48596
- var $ = _c89(16);
48659
+ var $ = _c90(16);
48597
48660
  var children;
48598
48661
  var className;
48599
48662
  var play;
@@ -48660,7 +48723,7 @@ var Root16 = function(t0) {
48660
48723
  return t3;
48661
48724
  };
48662
48725
  // src/components/threads/AudioThread/Visualization/index.tsx
48663
- import { c as _c91 } from "react-compiler-runtime";
48726
+ import { c as _c92 } from "react-compiler-runtime";
48664
48727
  import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext20, createContext as createContext14 } from "react";
48665
48728
  import _9 from "lodash";
48666
48729
  import { Flex as Flex31 } from "@radix-ui/themes";
@@ -48729,10 +48792,10 @@ var BarsVisualizer = function(_ref) {
48729
48792
  });
48730
48793
  };
48731
48794
  // src/hooks/audioThreads/useStatus/index.ts
48732
- import { c as _c90 } from "react-compiler-runtime";
48795
+ import { c as _c91 } from "react-compiler-runtime";
48733
48796
  import { useMemo as useMemo19 } from "react";
48734
48797
  var useStatus = function() {
48735
- var $ = _c90(2);
48798
+ var $ = _c91(2);
48736
48799
  var audioRuntime = useAudioThreadContext().audioRuntime;
48737
48800
  var t0;
48738
48801
  bb0: {
@@ -48892,7 +48955,7 @@ var Provider6 = function(_ref) {
48892
48955
  });
48893
48956
  };
48894
48957
  var Root17 = function(t0) {
48895
- var $ = _c91(6);
48958
+ var $ = _c92(6);
48896
48959
  var children;
48897
48960
  var rest;
48898
48961
  if ($[0] !== t0) {
@@ -48929,7 +48992,7 @@ var Root17 = function(t0) {
48929
48992
  return t1;
48930
48993
  };
48931
48994
  var BarsVisualizer2 = function(t0) {
48932
- var $ = _c91(10);
48995
+ var $ = _c92(10);
48933
48996
  var rest;
48934
48997
  var t1;
48935
48998
  var t2;
@@ -48973,7 +49036,7 @@ var BarsVisualizer2 = function(t0) {
48973
49036
  return t4;
48974
49037
  };
48975
49038
  var AssistantVisualizationRoot = function(t0) {
48976
- var $ = _c91(17);
49039
+ var $ = _c92(17);
48977
49040
  var children;
48978
49041
  var rest;
48979
49042
  var t1;
@@ -49046,7 +49109,7 @@ var AssistantVisualizationRoot = function(t0) {
49046
49109
  return t6;
49047
49110
  };
49048
49111
  var AssistantVisualization = function(props) {
49049
- var $ = _c91(3);
49112
+ var $ = _c92(3);
49050
49113
  var t0;
49051
49114
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49052
49115
  t0 = /* @__PURE__ */ _jsx89(BarsVisualizer2, {});
@@ -49069,7 +49132,7 @@ var AssistantVisualization = function(props) {
49069
49132
  AssistantVisualization.Root = AssistantVisualizationRoot;
49070
49133
  AssistantVisualization.BarsVisualizer = BarsVisualizer2;
49071
49134
  var AssistantInfo = function(props) {
49072
- var $ = _c91(6);
49135
+ var $ = _c92(6);
49073
49136
  var assistantNameContext = useContext20(AssistantNameContext);
49074
49137
  var t0;
49075
49138
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -49109,7 +49172,7 @@ var AssistantInfo = function(props) {
49109
49172
  return t2;
49110
49173
  };
49111
49174
  var Visualization = function(props) {
49112
- var $ = _c91(4);
49175
+ var $ = _c92(4);
49113
49176
  var t0;
49114
49177
  var t1;
49115
49178
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -49141,9 +49204,9 @@ Visualization.Provider = Provider6;
49141
49204
  Visualization.AssistantVisualization = AssistantVisualization;
49142
49205
  Visualization.AssistantInfo = AssistantInfo;
49143
49206
  // src/components/threads/AudioThread/Status/index.tsx
49144
- import { c as _c93 } from "react-compiler-runtime";
49207
+ import { c as _c94 } from "react-compiler-runtime";
49145
49208
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
49146
- import { c as _c92 } from "react-compiler-runtime";
49209
+ import { c as _c93 } from "react-compiler-runtime";
49147
49210
  import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
49148
49211
  import { jsx as _jsx90, jsxs as _jsxs32 } from "react/jsx-runtime";
49149
49212
  var html = function(_ref) {
@@ -49153,7 +49216,7 @@ var html = function(_ref) {
49153
49216
  }).join(""), "\n }");
49154
49217
  };
49155
49218
  var StatusMessages = function(t0) {
49156
- var $ = _c92(9);
49219
+ var $ = _c93(9);
49157
49220
  var texts = t0.texts, className = t0.className, style = t0.style;
49158
49221
  var t1;
49159
49222
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -49257,7 +49320,7 @@ function _toPrimitive49(t, r) {
49257
49320
  return ("string" === r ? String : Number)(t);
49258
49321
  }
49259
49322
  var Status = function(props) {
49260
- var $ = _c93(12);
49323
+ var $ = _c94(12);
49261
49324
  var status = useStatus().status;
49262
49325
  if (status === "recording") {
49263
49326
  var _t;
@@ -49354,10 +49417,10 @@ var Status = function(props) {
49354
49417
  return t1;
49355
49418
  };
49356
49419
  // src/components/threads/AudioThread/Form/index.tsx
49357
- import { c as _c96 } from "react-compiler-runtime";
49420
+ import { c as _c97 } from "react-compiler-runtime";
49358
49421
  import { Flex as Flex34 } from "@radix-ui/themes";
49359
49422
  // src/components/threads/AudioThread/Form/MicIcon.tsx
49360
- import { c as _c94 } from "react-compiler-runtime";
49423
+ import { c as _c95 } from "react-compiler-runtime";
49361
49424
  import { jsx as _jsx92 } from "react/jsx-runtime";
49362
49425
  function ownKeys50(e, r) {
49363
49426
  var t = Object.keys(e);
@@ -49403,7 +49466,7 @@ function _toPrimitive50(t, r) {
49403
49466
  return ("string" === r ? String : Number)(t);
49404
49467
  }
49405
49468
  var MicIcon = function(props) {
49406
- var $ = _c94(3);
49469
+ var $ = _c95(3);
49407
49470
  var t0;
49408
49471
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49409
49472
  t0 = /* @__PURE__ */ _jsx92("path", {
@@ -49435,12 +49498,12 @@ var MicIcon = function(props) {
49435
49498
  return t1;
49436
49499
  };
49437
49500
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
49438
- import { c as _c95 } from "react-compiler-runtime";
49501
+ import { c as _c96 } from "react-compiler-runtime";
49439
49502
  import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
49440
49503
  import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
49441
49504
  import { jsx as _jsx93, jsxs as _jsxs33 } from "react/jsx-runtime";
49442
49505
  var ActionButton = function() {
49443
- var $ = _c95(27);
49506
+ var $ = _c96(27);
49444
49507
  var status = useStatus().status;
49445
49508
  var audioThreadContext = useAudioThreadContext();
49446
49509
  var superinterfaceContext = useSuperinterfaceContext();
@@ -49678,7 +49741,7 @@ function _toPrimitive51(t, r) {
49678
49741
  return ("string" === r ? String : Number)(t);
49679
49742
  }
49680
49743
  var Form = function(props) {
49681
- var $ = _c96(17);
49744
+ var $ = _c97(17);
49682
49745
  var status = useStatus().status;
49683
49746
  var audioThreadContext = useAudioThreadContext();
49684
49747
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
@@ -49828,7 +49891,7 @@ function _toPrimitive52(t, r) {
49828
49891
  return ("string" === r ? String : Number)(t);
49829
49892
  }
49830
49893
  var AudioThread = function(props) {
49831
- var $ = _c97(5);
49894
+ var $ = _c98(5);
49832
49895
  var t0;
49833
49896
  var t1;
49834
49897
  var t2;
@@ -49910,7 +49973,7 @@ function _toPrimitive53(t, r) {
49910
49973
  return ("string" === r ? String : Number)(t);
49911
49974
  }
49912
49975
  var AudioThreadDialog = function(props) {
49913
- var $ = _c98(4);
49976
+ var $ = _c99(4);
49914
49977
  var t0;
49915
49978
  var t1;
49916
49979
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -50432,10 +50495,10 @@ var useWebrtcAudioRuntime = function() {
50432
50495
  ]);
50433
50496
  };
50434
50497
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
50435
- import { c as _c99 } from "react-compiler-runtime";
50498
+ import { c as _c100 } from "react-compiler-runtime";
50436
50499
  import { jsx as _jsx97 } from "react/jsx-runtime";
50437
50500
  var WebrtcAudioRuntimeProvider = function(t0) {
50438
- var $ = _c99(5);
50501
+ var $ = _c100(5);
50439
50502
  var children = t0.children;
50440
50503
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
50441
50504
  var t1;
@@ -50463,14 +50526,14 @@ var WebrtcAudioRuntimeProvider = function(t0) {
50463
50526
  return t2;
50464
50527
  };
50465
50528
  // src/components/gui/Gui/index.tsx
50466
- import { c as _c102 } from "react-compiler-runtime";
50529
+ import { c as _c103 } from "react-compiler-runtime";
50467
50530
  import { useMemo as useMemo23 } from "react";
50468
50531
  import { Flex as Flex35, Card as Card5, Spinner as Spinner3 } from "@radix-ui/themes";
50469
50532
  // src/hooks/messages/useLatestAssistantMessage/index.ts
50470
- import { c as _c100 } from "react-compiler-runtime";
50533
+ import { c as _c101 } from "react-compiler-runtime";
50471
50534
  import { useMemo as useMemo21 } from "react";
50472
50535
  var useLatestAssistantMessage = function() {
50473
- var $ = _c100(4);
50536
+ var $ = _c101(4);
50474
50537
  var _useMessages = useMessages(), messages2 = _useMessages.messages;
50475
50538
  var t0;
50476
50539
  var t1;
@@ -50499,11 +50562,11 @@ function _temp11(message) {
50499
50562
  return message.role === "assistant";
50500
50563
  }
50501
50564
  // src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
50502
- import { c as _c101 } from "react-compiler-runtime";
50565
+ import { c as _c102 } from "react-compiler-runtime";
50503
50566
  import { isEmpty as isEmpty3 } from "radash";
50504
50567
  import { useMemo as useMemo22 } from "react";
50505
50568
  var useLatestAssistantMessageWithContent = function() {
50506
- var $ = _c101(4);
50569
+ var $ = _c102(4);
50507
50570
  var _useMessages = useMessages(), messages2 = _useMessages.messages;
50508
50571
  var t0;
50509
50572
  var t1;
@@ -50537,7 +50600,7 @@ function _temp25(message) {
50537
50600
  // src/components/gui/Gui/index.tsx
50538
50601
  import { jsx as _jsx98, jsxs as _jsxs37 } from "react/jsx-runtime";
50539
50602
  var StartingToolCalls3 = function() {
50540
- var $ = _c102(2);
50603
+ var $ = _c103(2);
50541
50604
  var _useComponents = useComponents(), t0 = _useComponents.components;
50542
50605
  var StartingToolCalls4 = t0.StartingToolCalls;
50543
50606
  var t1;
@@ -50551,7 +50614,7 @@ var StartingToolCalls3 = function() {
50551
50614
  return t1;
50552
50615
  };
50553
50616
  var Content10 = function(t0) {
50554
- var $ = _c102(5);
50617
+ var $ = _c103(5);
50555
50618
  var latestRunStep = t0.latestRunStep;
50556
50619
  var t1;
50557
50620
  bb0: {
@@ -50605,7 +50668,7 @@ var Content10 = function(t0) {
50605
50668
  return t2;
50606
50669
  };
50607
50670
  var Progress2 = function(t0) {
50608
- var $ = _c102(5);
50671
+ var $ = _c103(5);
50609
50672
  var latestAssistantMessage = t0.latestAssistantMessage;
50610
50673
  var isMutatingMessage = useIsMutatingMessage();
50611
50674
  var t1;
@@ -50655,7 +50718,7 @@ var Progress2 = function(t0) {
50655
50718
  return t4;
50656
50719
  };
50657
50720
  var Gui = function() {
50658
- var $ = _c102(8);
50721
+ var $ = _c103(8);
50659
50722
  var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
50660
50723
  var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
50661
50724
  if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
@@ -50721,7 +50784,7 @@ function _temp13(rs) {
50721
50784
  return rs.status === "in_progress";
50722
50785
  }
50723
50786
  // src/components/markdown/MarkdownProvider/index.tsx
50724
- import { c as _c103 } from "react-compiler-runtime";
50787
+ import { c as _c104 } from "react-compiler-runtime";
50725
50788
  import { useMemo as useMemo24 } from "react";
50726
50789
  import { jsx as _jsx99 } from "react/jsx-runtime";
50727
50790
  var _excluded7 = [
@@ -50746,7 +50809,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
50746
50809
  return t;
50747
50810
  }
50748
50811
  var MarkdownProvider = function(t0) {
50749
- var $ = _c103(9);
50812
+ var $ = _c104(9);
50750
50813
  var children;
50751
50814
  var rest;
50752
50815
  if ($[0] !== t0) {
@@ -50789,18 +50852,18 @@ var MarkdownProvider = function(t0) {
50789
50852
  return t3;
50790
50853
  };
50791
50854
  // src/components/annotations/SourceAnnotation/index.tsx
50792
- import { c as _c106 } from "react-compiler-runtime";
50855
+ import { c as _c107 } from "react-compiler-runtime";
50793
50856
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50794
- import { c as _c105 } from "react-compiler-runtime";
50857
+ import { c as _c106 } from "react-compiler-runtime";
50795
50858
  import { useState as useState13 } from "react";
50796
50859
  import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
50797
50860
  import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
50798
50861
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
50799
- import { c as _c104 } from "react-compiler-runtime";
50862
+ import { c as _c105 } from "react-compiler-runtime";
50800
50863
  import { Flex as Flex36, Card as Card6, Inset as Inset3 } from "@radix-ui/themes";
50801
50864
  import { jsx as _jsx100 } from "react/jsx-runtime";
50802
50865
  var Content11 = function(t0) {
50803
- var $ = _c104(5);
50866
+ var $ = _c105(5);
50804
50867
  var fileId = t0.fileId;
50805
50868
  var superinterfaceContext = useSuperinterfaceContext();
50806
50869
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -50866,7 +50929,7 @@ var Content11 = function(t0) {
50866
50929
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50867
50930
  import { jsx as _jsx101, jsxs as _jsxs38, Fragment as _Fragment6 } from "react/jsx-runtime";
50868
50931
  var FileCitation = function(t0) {
50869
- var $ = _c105(18);
50932
+ var $ = _c106(18);
50870
50933
  var annotation = t0.annotation;
50871
50934
  var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
50872
50935
  var t1;
@@ -51015,7 +51078,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
51015
51078
  return t;
51016
51079
  }
51017
51080
  var SourceAnnotation = function(t0) {
51018
- var $ = _c106(10);
51081
+ var $ = _c107(10);
51019
51082
  var children;
51020
51083
  var rest;
51021
51084
  if ($[0] !== t0) {
@@ -51072,7 +51135,7 @@ var SourceAnnotation = function(t0) {
51072
51135
  return null;
51073
51136
  };
51074
51137
  // src/components/avatars/Avatar.tsx
51075
- import { c as _c109 } from "react-compiler-runtime";
51138
+ import { c as _c110 } from "react-compiler-runtime";
51076
51139
  // src/enums/index.ts
51077
51140
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
51078
51141
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -51097,7 +51160,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
51097
51160
  // src/components/avatars/Avatar.tsx
51098
51161
  import { Avatar as RadixAvatar } from "@radix-ui/themes";
51099
51162
  // src/components/imageAvatars/ImageAvatar/index.tsx
51100
- import { c as _c107 } from "react-compiler-runtime";
51163
+ import { c as _c108 } from "react-compiler-runtime";
51101
51164
  import { Avatar as Avatar4 } from "@radix-ui/themes";
51102
51165
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
51103
51166
  var width = function(_ref) {
@@ -51151,7 +51214,7 @@ var optimizedSrc = function(_ref) {
51151
51214
  // src/components/imageAvatars/ImageAvatar/index.tsx
51152
51215
  import { jsx as _jsx103 } from "react/jsx-runtime";
51153
51216
  var ImageAvatar = function(t0) {
51154
- var $ = _c107(9);
51217
+ var $ = _c108(9);
51155
51218
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
51156
51219
  var superinterfaceContext = useSuperinterfaceContext();
51157
51220
  var t1;
@@ -51188,7 +51251,7 @@ var ImageAvatar = function(t0) {
51188
51251
  return t2;
51189
51252
  };
51190
51253
  // src/components/iconAvatars/IconAvatar.tsx
51191
- import { c as _c108 } from "react-compiler-runtime";
51254
+ import { c as _c109 } from "react-compiler-runtime";
51192
51255
  import { useMemo as useMemo25 } from "react";
51193
51256
  import { Avatar as Avatar5 } from "@radix-ui/themes";
51194
51257
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -51198,7 +51261,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
51198
51261
  // src/components/iconAvatars/IconAvatar.tsx
51199
51262
  import { jsx as _jsx104 } from "react/jsx-runtime";
51200
51263
  var IconAvatar = function(t0) {
51201
- var $ = _c108(7);
51264
+ var $ = _c109(7);
51202
51265
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
51203
51266
  var t1;
51204
51267
  t1 = iconAvatarComponents[iconAvatar.name];
@@ -51232,7 +51295,7 @@ var IconAvatar = function(t0) {
51232
51295
  // src/components/avatars/Avatar.tsx
51233
51296
  import { jsx as _jsx105 } from "react/jsx-runtime";
51234
51297
  var Avatar6 = function(t0) {
51235
- var $ = _c109(14);
51298
+ var $ = _c110(14);
51236
51299
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
51237
51300
  var size = t1 === void 0 ? "1" : t1;
51238
51301
  if (avatar) {
@@ -51293,7 +51356,7 @@ var Avatar6 = function(t0) {
51293
51356
  return t2;
51294
51357
  };
51295
51358
  // src/components/components/ComponentsProvider.tsx
51296
- import { c as _c110 } from "react-compiler-runtime";
51359
+ import { c as _c111 } from "react-compiler-runtime";
51297
51360
  import { useMemo as useMemo26 } from "react";
51298
51361
  import { jsx as _jsx106 } from "react/jsx-runtime";
51299
51362
  var _excluded9 = [
@@ -51318,7 +51381,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
51318
51381
  return t;
51319
51382
  }
51320
51383
  var ComponentsProvider = function(t0) {
51321
- var $ = _c110(9);
51384
+ var $ = _c111(9);
51322
51385
  var children;
51323
51386
  var rest;
51324
51387
  if ($[0] !== t0) {
@@ -51361,11 +51424,11 @@ var ComponentsProvider = function(t0) {
51361
51424
  return t3;
51362
51425
  };
51363
51426
  // src/components/assistants/AssistantProvider/index.tsx
51364
- import { c as _c111 } from "react-compiler-runtime";
51427
+ import { c as _c112 } from "react-compiler-runtime";
51365
51428
  import { jsx as _jsx107 } from "react/jsx-runtime";
51366
51429
  var AssistantProvider = function(t0) {
51367
51430
  var _assistant$name;
51368
- var $ = _c111(10);
51431
+ var $ = _c112(10);
51369
51432
  var children = t0.children;
51370
51433
  var superinterfaceContext = useSuperinterfaceContext();
51371
51434
  var t1;
@@ -51417,5 +51480,5 @@ var AssistantProvider = function(t0) {
51417
51480
  }
51418
51481
  return t6;
51419
51482
  };
51420
- export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, Gui, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, MessagesSkeleton, RunStep, SourceAnnotation, StartingContentSkeleton, StartingSkeleton, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
51483
+ export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, Gui, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, MessagesSkeleton, RunStep, SourceAnnotation, StartingContentSkeleton, StartingSkeleton, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useChangeFilesField, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
51421
51484
  //# sourceMappingURL=index.js.map