@superinterface/react 3.29.0 → 4.0.1
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.cjs +428 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +420 -140
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +29 -2
- package/dist/types/index.d.ts +29 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8292,7 +8292,7 @@ var require_lib = __commonJS({
|
|
|
8292
8292
|
key: "parseMaybeAssign",
|
|
8293
8293
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
8294
8294
|
var _this = this;
|
|
8295
|
-
var
|
|
8295
|
+
var _jsx108;
|
|
8296
8296
|
var state = null;
|
|
8297
8297
|
var jsx2;
|
|
8298
8298
|
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
|
|
@@ -8307,7 +8307,7 @@ var require_lib = __commonJS({
|
|
|
8307
8307
|
context.pop();
|
|
8308
8308
|
}
|
|
8309
8309
|
}
|
|
8310
|
-
if ((
|
|
8310
|
+
if ((_jsx108 = jsx2) != null && _jsx108.error || this.match(47)) {
|
|
8311
8311
|
var _jsx210, _jsx310;
|
|
8312
8312
|
state = state || this.state.clone();
|
|
8313
8313
|
var typeParameters;
|
|
@@ -13173,7 +13173,7 @@ var require_lib = __commonJS({
|
|
|
13173
13173
|
key: "parseMaybeAssign",
|
|
13174
13174
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
13175
13175
|
var _this = this;
|
|
13176
|
-
var
|
|
13176
|
+
var _jsx108, _jsx210, _typeCast, _jsx310, _typeCast2;
|
|
13177
13177
|
var state;
|
|
13178
13178
|
var jsx2;
|
|
13179
13179
|
var typeCast;
|
|
@@ -13189,7 +13189,7 @@ var require_lib = __commonJS({
|
|
|
13189
13189
|
context.pop();
|
|
13190
13190
|
}
|
|
13191
13191
|
}
|
|
13192
|
-
if (!((
|
|
13192
|
+
if (!((_jsx108 = jsx2) != null && _jsx108.error) && !this.match(47)) {
|
|
13193
13193
|
return _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssign", this).call(this, refExpressionErrors, afterLeftParse);
|
|
13194
13194
|
}
|
|
13195
13195
|
if (!state || state === this.state) state = this.state.clone();
|
|
@@ -38027,11 +38027,11 @@ var Root = function(t0) {
|
|
|
38027
38027
|
var StartingToolCalls = function() {
|
|
38028
38028
|
var $ = _c6(2);
|
|
38029
38029
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
38030
|
-
var
|
|
38030
|
+
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
38031
38031
|
var t1;
|
|
38032
|
-
if ($[0] !==
|
|
38033
|
-
t1 = /* @__PURE__ */ _jsx7(
|
|
38034
|
-
$[0] =
|
|
38032
|
+
if ($[0] !== StartingToolCalls4) {
|
|
38033
|
+
t1 = /* @__PURE__ */ _jsx7(StartingToolCalls4, {});
|
|
38034
|
+
$[0] = StartingToolCalls4;
|
|
38035
38035
|
$[1] = t1;
|
|
38036
38036
|
} else {
|
|
38037
38037
|
t1 = $[1];
|
|
@@ -43646,7 +43646,7 @@ function _temp2(content2, index) {
|
|
|
43646
43646
|
// src/components/threads/Thread/Message/index.tsx
|
|
43647
43647
|
import { jsx as _jsx60, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
43648
43648
|
var Message = function(t0) {
|
|
43649
|
-
var $ = _c58(
|
|
43649
|
+
var $ = _c58(40);
|
|
43650
43650
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43651
43651
|
var t1;
|
|
43652
43652
|
bb0: {
|
|
@@ -43678,101 +43678,123 @@ var Message = function(t0) {
|
|
|
43678
43678
|
_t2 = $[2];
|
|
43679
43679
|
}
|
|
43680
43680
|
var messageCreationRunStepIndex = message.runSteps.findIndex(_t2);
|
|
43681
|
-
|
|
43682
|
-
|
|
43681
|
+
if (messageCreationRunStepIndex === -1) {
|
|
43682
|
+
var _t3;
|
|
43683
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43684
|
+
_t3 = [];
|
|
43685
|
+
$[3] = _t3;
|
|
43686
|
+
} else {
|
|
43687
|
+
_t3 = $[3];
|
|
43688
|
+
}
|
|
43689
|
+
var _t4;
|
|
43690
|
+
if ($[4] !== message.runSteps) {
|
|
43691
|
+
_t4 = [
|
|
43692
|
+
_t3,
|
|
43693
|
+
message.runSteps
|
|
43694
|
+
];
|
|
43695
|
+
$[4] = message.runSteps;
|
|
43696
|
+
$[5] = _t4;
|
|
43697
|
+
} else {
|
|
43698
|
+
_t4 = $[5];
|
|
43699
|
+
}
|
|
43700
|
+
t1 = _t4;
|
|
43701
|
+
break bb0;
|
|
43702
|
+
}
|
|
43703
|
+
var _t5;
|
|
43704
|
+
if ($[6] !== message.runSteps || $[7] !== messageCreationRunStepIndex) {
|
|
43683
43705
|
var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp3);
|
|
43684
43706
|
if (nextRunStepIndex === -1) {
|
|
43685
43707
|
nextRunStepIndex = 0;
|
|
43686
43708
|
}
|
|
43687
|
-
|
|
43688
|
-
$[3] = message.runSteps;
|
|
43689
|
-
$[4] = messageCreationRunStepIndex;
|
|
43690
|
-
$[5] = _t3;
|
|
43691
|
-
} else {
|
|
43692
|
-
_t3 = $[5];
|
|
43693
|
-
}
|
|
43694
|
-
var laterRunSteps = _t3;
|
|
43695
|
-
var _t4;
|
|
43696
|
-
if ($[6] !== message.runSteps || $[7] !== messageCreationRunStepIndex) {
|
|
43697
|
-
_t4 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp22);
|
|
43709
|
+
_t5 = message.runSteps.slice(nextRunStepIndex, messageCreationRunStepIndex);
|
|
43698
43710
|
$[6] = message.runSteps;
|
|
43699
43711
|
$[7] = messageCreationRunStepIndex;
|
|
43700
|
-
$[8] =
|
|
43712
|
+
$[8] = _t5;
|
|
43713
|
+
} else {
|
|
43714
|
+
_t5 = $[8];
|
|
43715
|
+
}
|
|
43716
|
+
var laterRunSteps = _t5;
|
|
43717
|
+
var _t6;
|
|
43718
|
+
if ($[9] !== message.runSteps || $[10] !== messageCreationRunStepIndex) {
|
|
43719
|
+
_t6 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp22);
|
|
43720
|
+
$[9] = message.runSteps;
|
|
43721
|
+
$[10] = messageCreationRunStepIndex;
|
|
43722
|
+
$[11] = _t6;
|
|
43701
43723
|
} else {
|
|
43702
|
-
|
|
43724
|
+
_t6 = $[11];
|
|
43703
43725
|
}
|
|
43704
|
-
var prevRunStepIndex =
|
|
43726
|
+
var prevRunStepIndex = _t6;
|
|
43705
43727
|
var olderRunSteps;
|
|
43706
43728
|
if (prevRunStepIndex === -1) {
|
|
43707
|
-
var
|
|
43708
|
-
if ($[
|
|
43709
|
-
|
|
43710
|
-
$[
|
|
43711
|
-
$[
|
|
43712
|
-
$[
|
|
43729
|
+
var _t7;
|
|
43730
|
+
if ($[12] !== message.runSteps || $[13] !== messageCreationRunStepIndex) {
|
|
43731
|
+
_t7 = message.runSteps.slice(messageCreationRunStepIndex + 1);
|
|
43732
|
+
$[12] = message.runSteps;
|
|
43733
|
+
$[13] = messageCreationRunStepIndex;
|
|
43734
|
+
$[14] = _t7;
|
|
43713
43735
|
} else {
|
|
43714
|
-
|
|
43736
|
+
_t7 = $[14];
|
|
43715
43737
|
}
|
|
43716
|
-
olderRunSteps =
|
|
43738
|
+
olderRunSteps = _t7;
|
|
43717
43739
|
} else {
|
|
43718
|
-
var
|
|
43719
|
-
if ($[
|
|
43720
|
-
|
|
43721
|
-
$[
|
|
43722
|
-
$[
|
|
43723
|
-
$[
|
|
43724
|
-
$[
|
|
43740
|
+
var _t8;
|
|
43741
|
+
if ($[15] !== message.runSteps || $[16] !== messageCreationRunStepIndex || $[17] !== prevRunStepIndex) {
|
|
43742
|
+
_t8 = message.runSteps.slice(messageCreationRunStepIndex + 1, messageCreationRunStepIndex + prevRunStepIndex);
|
|
43743
|
+
$[15] = message.runSteps;
|
|
43744
|
+
$[16] = messageCreationRunStepIndex;
|
|
43745
|
+
$[17] = prevRunStepIndex;
|
|
43746
|
+
$[18] = _t8;
|
|
43725
43747
|
} else {
|
|
43726
|
-
|
|
43748
|
+
_t8 = $[18];
|
|
43727
43749
|
}
|
|
43728
|
-
olderRunSteps =
|
|
43750
|
+
olderRunSteps = _t8;
|
|
43729
43751
|
}
|
|
43730
|
-
var
|
|
43731
|
-
if ($[
|
|
43732
|
-
|
|
43752
|
+
var _t9;
|
|
43753
|
+
if ($[19] !== laterRunSteps || $[20] !== olderRunSteps) {
|
|
43754
|
+
_t9 = [
|
|
43733
43755
|
olderRunSteps,
|
|
43734
43756
|
laterRunSteps
|
|
43735
43757
|
];
|
|
43736
|
-
$[
|
|
43737
|
-
$[
|
|
43738
|
-
$[
|
|
43758
|
+
$[19] = laterRunSteps;
|
|
43759
|
+
$[20] = olderRunSteps;
|
|
43760
|
+
$[21] = _t9;
|
|
43739
43761
|
} else {
|
|
43740
|
-
|
|
43762
|
+
_t9 = $[21];
|
|
43741
43763
|
}
|
|
43742
|
-
t1 =
|
|
43764
|
+
t1 = _t9;
|
|
43743
43765
|
}
|
|
43744
43766
|
var _t1 = _sliced_to_array(t1, 2), olderRunSteps_0 = _t1[0], laterRunSteps_0 = _t1[1];
|
|
43745
43767
|
var t2;
|
|
43746
|
-
if ($[
|
|
43768
|
+
if ($[22] !== message) {
|
|
43747
43769
|
t2 = {
|
|
43748
43770
|
message: message
|
|
43749
43771
|
};
|
|
43750
|
-
$[
|
|
43751
|
-
$[
|
|
43772
|
+
$[22] = message;
|
|
43773
|
+
$[23] = t2;
|
|
43752
43774
|
} else {
|
|
43753
|
-
t2 = $[
|
|
43775
|
+
t2 = $[23];
|
|
43754
43776
|
}
|
|
43755
43777
|
var t3;
|
|
43756
|
-
if ($[
|
|
43778
|
+
if ($[24] !== olderRunSteps_0) {
|
|
43757
43779
|
t3 = /* @__PURE__ */ _jsx60(RunSteps, {
|
|
43758
43780
|
runSteps: olderRunSteps_0
|
|
43759
43781
|
});
|
|
43760
|
-
$[
|
|
43761
|
-
$[
|
|
43782
|
+
$[24] = olderRunSteps_0;
|
|
43783
|
+
$[25] = t3;
|
|
43762
43784
|
} else {
|
|
43763
|
-
t3 = $[
|
|
43785
|
+
t3 = $[25];
|
|
43764
43786
|
}
|
|
43765
43787
|
var t4;
|
|
43766
|
-
if ($[
|
|
43788
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43767
43789
|
t4 = {
|
|
43768
43790
|
wordBreak: "break-word"
|
|
43769
43791
|
};
|
|
43770
|
-
$[
|
|
43792
|
+
$[26] = t4;
|
|
43771
43793
|
} else {
|
|
43772
|
-
t4 = $[
|
|
43794
|
+
t4 = $[26];
|
|
43773
43795
|
}
|
|
43774
43796
|
var t5;
|
|
43775
|
-
if ($[
|
|
43797
|
+
if ($[27] !== message) {
|
|
43776
43798
|
t5 = /* @__PURE__ */ _jsxs17(Box11, {
|
|
43777
43799
|
style: t4,
|
|
43778
43800
|
children: [
|
|
@@ -43784,23 +43806,23 @@ var Message = function(t0) {
|
|
|
43784
43806
|
})
|
|
43785
43807
|
]
|
|
43786
43808
|
});
|
|
43787
|
-
$[
|
|
43788
|
-
$[
|
|
43809
|
+
$[27] = message;
|
|
43810
|
+
$[28] = t5;
|
|
43789
43811
|
} else {
|
|
43790
|
-
t5 = $[
|
|
43812
|
+
t5 = $[28];
|
|
43791
43813
|
}
|
|
43792
43814
|
var t6;
|
|
43793
|
-
if ($[
|
|
43815
|
+
if ($[29] !== laterRunSteps_0) {
|
|
43794
43816
|
t6 = /* @__PURE__ */ _jsx60(RunSteps, {
|
|
43795
43817
|
runSteps: laterRunSteps_0
|
|
43796
43818
|
});
|
|
43797
|
-
$[
|
|
43798
|
-
$[
|
|
43819
|
+
$[29] = laterRunSteps_0;
|
|
43820
|
+
$[30] = t6;
|
|
43799
43821
|
} else {
|
|
43800
|
-
t6 = $[
|
|
43822
|
+
t6 = $[30];
|
|
43801
43823
|
}
|
|
43802
43824
|
var t7;
|
|
43803
|
-
if ($[
|
|
43825
|
+
if ($[31] !== className || $[32] !== style || $[33] !== t3 || $[34] !== t5 || $[35] !== t6) {
|
|
43804
43826
|
t7 = /* @__PURE__ */ _jsxs17(Box11, {
|
|
43805
43827
|
className: className,
|
|
43806
43828
|
style: style,
|
|
@@ -43810,26 +43832,26 @@ var Message = function(t0) {
|
|
|
43810
43832
|
t6
|
|
43811
43833
|
]
|
|
43812
43834
|
});
|
|
43813
|
-
$[
|
|
43814
|
-
$[
|
|
43815
|
-
$[
|
|
43816
|
-
$[
|
|
43817
|
-
$[
|
|
43818
|
-
$[
|
|
43835
|
+
$[31] = className;
|
|
43836
|
+
$[32] = style;
|
|
43837
|
+
$[33] = t3;
|
|
43838
|
+
$[34] = t5;
|
|
43839
|
+
$[35] = t6;
|
|
43840
|
+
$[36] = t7;
|
|
43819
43841
|
} else {
|
|
43820
|
-
t7 = $[
|
|
43842
|
+
t7 = $[36];
|
|
43821
43843
|
}
|
|
43822
43844
|
var t8;
|
|
43823
|
-
if ($[
|
|
43845
|
+
if ($[37] !== t2 || $[38] !== t7) {
|
|
43824
43846
|
t8 = /* @__PURE__ */ _jsx60(Provider, {
|
|
43825
43847
|
value: t2,
|
|
43826
43848
|
children: t7
|
|
43827
43849
|
});
|
|
43828
|
-
$[
|
|
43829
|
-
$[
|
|
43830
|
-
$[
|
|
43850
|
+
$[37] = t2;
|
|
43851
|
+
$[38] = t7;
|
|
43852
|
+
$[39] = t8;
|
|
43831
43853
|
} else {
|
|
43832
|
-
t8 = $[
|
|
43854
|
+
t8 = $[39];
|
|
43833
43855
|
}
|
|
43834
43856
|
return t8;
|
|
43835
43857
|
};
|
|
@@ -50434,10 +50456,268 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50434
50456
|
}
|
|
50435
50457
|
return t2;
|
|
50436
50458
|
};
|
|
50437
|
-
// src/components/
|
|
50459
|
+
// src/components/gui/Gui/index.tsx
|
|
50460
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50461
|
+
import { useMemo as useMemo23 } from "react";
|
|
50462
|
+
import { Flex as Flex35, Card as Card5, Spinner as Spinner3 } from "@radix-ui/themes";
|
|
50463
|
+
// src/hooks/messages/useLatestAssistantMessage/index.ts
|
|
50438
50464
|
import { c as _c100 } from "react-compiler-runtime";
|
|
50439
50465
|
import { useMemo as useMemo21 } from "react";
|
|
50440
|
-
|
|
50466
|
+
var useLatestAssistantMessage = function() {
|
|
50467
|
+
var $ = _c100(4);
|
|
50468
|
+
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50469
|
+
var t0;
|
|
50470
|
+
var t1;
|
|
50471
|
+
if ($[0] !== messages2) {
|
|
50472
|
+
var _messages$find;
|
|
50473
|
+
t1 = (_messages$find = messages2.find(_temp11)) !== null && _messages$find !== void 0 ? _messages$find : null;
|
|
50474
|
+
$[0] = messages2;
|
|
50475
|
+
$[1] = t1;
|
|
50476
|
+
} else {
|
|
50477
|
+
t1 = $[1];
|
|
50478
|
+
}
|
|
50479
|
+
var t2;
|
|
50480
|
+
if ($[2] !== t1) {
|
|
50481
|
+
t2 = {
|
|
50482
|
+
latestAssistantMessage: t1
|
|
50483
|
+
};
|
|
50484
|
+
$[2] = t1;
|
|
50485
|
+
$[3] = t2;
|
|
50486
|
+
} else {
|
|
50487
|
+
t2 = $[3];
|
|
50488
|
+
}
|
|
50489
|
+
t0 = t2;
|
|
50490
|
+
return t0;
|
|
50491
|
+
};
|
|
50492
|
+
function _temp11(message) {
|
|
50493
|
+
return message.role === "assistant";
|
|
50494
|
+
}
|
|
50495
|
+
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
50496
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
50497
|
+
import { isEmpty as isEmpty3 } from "radash";
|
|
50498
|
+
import { useMemo as useMemo22 } from "react";
|
|
50499
|
+
var useLatestAssistantMessageWithContent = function() {
|
|
50500
|
+
var $ = _c101(4);
|
|
50501
|
+
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50502
|
+
var t0;
|
|
50503
|
+
var t1;
|
|
50504
|
+
if ($[0] !== messages2) {
|
|
50505
|
+
var _messages$find;
|
|
50506
|
+
t1 = (_messages$find = messages2.find(_temp25)) !== null && _messages$find !== void 0 ? _messages$find : null;
|
|
50507
|
+
$[0] = messages2;
|
|
50508
|
+
$[1] = t1;
|
|
50509
|
+
} else {
|
|
50510
|
+
t1 = $[1];
|
|
50511
|
+
}
|
|
50512
|
+
var t2;
|
|
50513
|
+
if ($[2] !== t1) {
|
|
50514
|
+
t2 = {
|
|
50515
|
+
latestAssistantMessageWithContent: t1
|
|
50516
|
+
};
|
|
50517
|
+
$[2] = t1;
|
|
50518
|
+
$[3] = t2;
|
|
50519
|
+
} else {
|
|
50520
|
+
t2 = $[3];
|
|
50521
|
+
}
|
|
50522
|
+
t0 = t2;
|
|
50523
|
+
return t0;
|
|
50524
|
+
};
|
|
50525
|
+
function _temp12(content2) {
|
|
50526
|
+
return content2.type === "text" && !isEmpty3(content2.text.value);
|
|
50527
|
+
}
|
|
50528
|
+
function _temp25(message) {
|
|
50529
|
+
return message.role === "assistant" && message.content.some(_temp12);
|
|
50530
|
+
}
|
|
50531
|
+
// src/components/gui/Gui/index.tsx
|
|
50532
|
+
import { jsx as _jsx98, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
50533
|
+
var StartingToolCalls3 = function() {
|
|
50534
|
+
var $ = _c102(2);
|
|
50535
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
50536
|
+
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
50537
|
+
var t1;
|
|
50538
|
+
if ($[0] !== StartingToolCalls4) {
|
|
50539
|
+
t1 = /* @__PURE__ */ _jsx98(StartingToolCalls4, {});
|
|
50540
|
+
$[0] = StartingToolCalls4;
|
|
50541
|
+
$[1] = t1;
|
|
50542
|
+
} else {
|
|
50543
|
+
t1 = $[1];
|
|
50544
|
+
}
|
|
50545
|
+
return t1;
|
|
50546
|
+
};
|
|
50547
|
+
var Content10 = function(t0) {
|
|
50548
|
+
var $ = _c102(5);
|
|
50549
|
+
var latestRunStep = t0.latestRunStep;
|
|
50550
|
+
var t1;
|
|
50551
|
+
bb0: {
|
|
50552
|
+
if (!latestRunStep) {
|
|
50553
|
+
t1 = null;
|
|
50554
|
+
break bb0;
|
|
50555
|
+
}
|
|
50556
|
+
if (!latestRunStep.step_details) {
|
|
50557
|
+
t1 = null;
|
|
50558
|
+
break bb0;
|
|
50559
|
+
}
|
|
50560
|
+
if (latestRunStep.step_details.type !== "tool_calls") {
|
|
50561
|
+
t1 = null;
|
|
50562
|
+
break bb0;
|
|
50563
|
+
}
|
|
50564
|
+
t1 = latestRunStep.step_details.tool_calls[0];
|
|
50565
|
+
}
|
|
50566
|
+
var latestToolCall = t1;
|
|
50567
|
+
if (!latestRunStep || latestRunStep.step_details.type !== "tool_calls") {
|
|
50568
|
+
var _t;
|
|
50569
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50570
|
+
_t = /* @__PURE__ */ _jsx98(Spinner3, {});
|
|
50571
|
+
$[0] = _t;
|
|
50572
|
+
} else {
|
|
50573
|
+
_t = $[0];
|
|
50574
|
+
}
|
|
50575
|
+
return _t;
|
|
50576
|
+
}
|
|
50577
|
+
if (!latestToolCall) {
|
|
50578
|
+
var _t2;
|
|
50579
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50580
|
+
_t2 = /* @__PURE__ */ _jsx98(StartingToolCalls3, {});
|
|
50581
|
+
$[1] = _t2;
|
|
50582
|
+
} else {
|
|
50583
|
+
_t2 = $[1];
|
|
50584
|
+
}
|
|
50585
|
+
return _t2;
|
|
50586
|
+
}
|
|
50587
|
+
var t2;
|
|
50588
|
+
if ($[2] !== latestRunStep || $[3] !== latestToolCall) {
|
|
50589
|
+
t2 = /* @__PURE__ */ _jsx98(ToolCall, {
|
|
50590
|
+
runStep: latestRunStep,
|
|
50591
|
+
toolCall: latestToolCall
|
|
50592
|
+
});
|
|
50593
|
+
$[2] = latestRunStep;
|
|
50594
|
+
$[3] = latestToolCall;
|
|
50595
|
+
$[4] = t2;
|
|
50596
|
+
} else {
|
|
50597
|
+
t2 = $[4];
|
|
50598
|
+
}
|
|
50599
|
+
return t2;
|
|
50600
|
+
};
|
|
50601
|
+
var Progress2 = function(t0) {
|
|
50602
|
+
var $ = _c102(5);
|
|
50603
|
+
var latestAssistantMessage = t0.latestAssistantMessage;
|
|
50604
|
+
var isMutatingMessage = useIsMutatingMessage();
|
|
50605
|
+
var t1;
|
|
50606
|
+
var t2;
|
|
50607
|
+
if ($[0] !== latestAssistantMessage.runSteps) {
|
|
50608
|
+
var _latestAssistantMessa;
|
|
50609
|
+
t2 = (_latestAssistantMessa = latestAssistantMessage.runSteps.find(_temp13)) !== null && _latestAssistantMessa !== void 0 ? _latestAssistantMessa : null;
|
|
50610
|
+
$[0] = latestAssistantMessage.runSteps;
|
|
50611
|
+
$[1] = t2;
|
|
50612
|
+
} else {
|
|
50613
|
+
t2 = $[1];
|
|
50614
|
+
}
|
|
50615
|
+
t1 = t2;
|
|
50616
|
+
var latestRunStep = t1;
|
|
50617
|
+
if (latestAssistantMessage.status !== "in_progress" && !isMutatingMessage) {
|
|
50618
|
+
return null;
|
|
50619
|
+
}
|
|
50620
|
+
var t3;
|
|
50621
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50622
|
+
t3 = {
|
|
50623
|
+
position: "fixed",
|
|
50624
|
+
left: 0,
|
|
50625
|
+
bottom: 0,
|
|
50626
|
+
right: 0,
|
|
50627
|
+
justifyContent: "center",
|
|
50628
|
+
padding: "var(--space-5)"
|
|
50629
|
+
};
|
|
50630
|
+
$[2] = t3;
|
|
50631
|
+
} else {
|
|
50632
|
+
t3 = $[2];
|
|
50633
|
+
}
|
|
50634
|
+
var t4;
|
|
50635
|
+
if ($[3] !== latestRunStep) {
|
|
50636
|
+
t4 = /* @__PURE__ */ _jsx98(Flex35, {
|
|
50637
|
+
style: t3,
|
|
50638
|
+
children: /* @__PURE__ */ _jsx98(Card5, {
|
|
50639
|
+
children: /* @__PURE__ */ _jsx98(Content10, {
|
|
50640
|
+
latestRunStep: latestRunStep
|
|
50641
|
+
})
|
|
50642
|
+
})
|
|
50643
|
+
});
|
|
50644
|
+
$[3] = latestRunStep;
|
|
50645
|
+
$[4] = t4;
|
|
50646
|
+
} else {
|
|
50647
|
+
t4 = $[4];
|
|
50648
|
+
}
|
|
50649
|
+
return t4;
|
|
50650
|
+
};
|
|
50651
|
+
var Gui = function() {
|
|
50652
|
+
var $ = _c102(8);
|
|
50653
|
+
var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
|
|
50654
|
+
var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
|
|
50655
|
+
if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
|
|
50656
|
+
var _t3;
|
|
50657
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50658
|
+
_t3 = /* @__PURE__ */ _jsx98(Flex35, {
|
|
50659
|
+
direction: "column",
|
|
50660
|
+
flexGrow: "1",
|
|
50661
|
+
children: /* @__PURE__ */ _jsx98(Flex35, {
|
|
50662
|
+
align: "center",
|
|
50663
|
+
justify: "center",
|
|
50664
|
+
flexGrow: "1",
|
|
50665
|
+
children: /* @__PURE__ */ _jsx98(Spinner3, {
|
|
50666
|
+
size: "3"
|
|
50667
|
+
})
|
|
50668
|
+
})
|
|
50669
|
+
});
|
|
50670
|
+
$[0] = _t3;
|
|
50671
|
+
} else {
|
|
50672
|
+
_t3 = $[0];
|
|
50673
|
+
}
|
|
50674
|
+
return _t3;
|
|
50675
|
+
}
|
|
50676
|
+
var t0;
|
|
50677
|
+
if ($[1] !== latestAssistantMessageWithContent) {
|
|
50678
|
+
t0 = /* @__PURE__ */ _jsx98(MessageContent, {
|
|
50679
|
+
message: latestAssistantMessageWithContent
|
|
50680
|
+
});
|
|
50681
|
+
$[1] = latestAssistantMessageWithContent;
|
|
50682
|
+
$[2] = t0;
|
|
50683
|
+
} else {
|
|
50684
|
+
t0 = $[2];
|
|
50685
|
+
}
|
|
50686
|
+
var t1;
|
|
50687
|
+
if ($[3] !== latestAssistantMessage) {
|
|
50688
|
+
t1 = /* @__PURE__ */ _jsx98(Progress2, {
|
|
50689
|
+
latestAssistantMessage: latestAssistantMessage
|
|
50690
|
+
});
|
|
50691
|
+
$[3] = latestAssistantMessage;
|
|
50692
|
+
$[4] = t1;
|
|
50693
|
+
} else {
|
|
50694
|
+
t1 = $[4];
|
|
50695
|
+
}
|
|
50696
|
+
var t2;
|
|
50697
|
+
if ($[5] !== t0 || $[6] !== t1) {
|
|
50698
|
+
t2 = /* @__PURE__ */ _jsxs37(Flex35, {
|
|
50699
|
+
direction: "column",
|
|
50700
|
+
flexGrow: "1",
|
|
50701
|
+
children: [
|
|
50702
|
+
t0,
|
|
50703
|
+
t1
|
|
50704
|
+
]
|
|
50705
|
+
});
|
|
50706
|
+
$[5] = t0;
|
|
50707
|
+
$[6] = t1;
|
|
50708
|
+
$[7] = t2;
|
|
50709
|
+
} else {
|
|
50710
|
+
t2 = $[7];
|
|
50711
|
+
}
|
|
50712
|
+
return t2;
|
|
50713
|
+
};
|
|
50714
|
+
function _temp13(rs) {
|
|
50715
|
+
return rs.status === "in_progress";
|
|
50716
|
+
}
|
|
50717
|
+
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50718
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50719
|
+
import { useMemo as useMemo24 } from "react";
|
|
50720
|
+
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50441
50721
|
var _excluded7 = [
|
|
50442
50722
|
"children"
|
|
50443
50723
|
];
|
|
@@ -50460,7 +50740,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50460
50740
|
return t;
|
|
50461
50741
|
}
|
|
50462
50742
|
var MarkdownProvider = function(t0) {
|
|
50463
|
-
var $ =
|
|
50743
|
+
var $ = _c103(9);
|
|
50464
50744
|
var children;
|
|
50465
50745
|
var rest;
|
|
50466
50746
|
if ($[0] !== t0) {
|
|
@@ -50490,7 +50770,7 @@ var MarkdownProvider = function(t0) {
|
|
|
50490
50770
|
var value = t1;
|
|
50491
50771
|
var t3;
|
|
50492
50772
|
if ($[6] !== children || $[7] !== value) {
|
|
50493
|
-
t3 = /* @__PURE__ */
|
|
50773
|
+
t3 = /* @__PURE__ */ _jsx99(MarkdownContext.Provider, {
|
|
50494
50774
|
value: value,
|
|
50495
50775
|
children: children
|
|
50496
50776
|
});
|
|
@@ -50503,18 +50783,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50503
50783
|
return t3;
|
|
50504
50784
|
};
|
|
50505
50785
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50506
|
-
import { c as
|
|
50786
|
+
import { c as _c106 } from "react-compiler-runtime";
|
|
50507
50787
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50508
|
-
import { c as
|
|
50788
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50509
50789
|
import { useState as useState13 } from "react";
|
|
50510
50790
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
50511
50791
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50512
50792
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50513
|
-
import { c as
|
|
50514
|
-
import { Flex as
|
|
50515
|
-
import { jsx as
|
|
50516
|
-
var
|
|
50517
|
-
var $ =
|
|
50793
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50794
|
+
import { Flex as Flex36, Card as Card6, Inset as Inset3 } from "@radix-ui/themes";
|
|
50795
|
+
import { jsx as _jsx100 } from "react/jsx-runtime";
|
|
50796
|
+
var Content11 = function(t0) {
|
|
50797
|
+
var $ = _c104(5);
|
|
50518
50798
|
var fileId = t0.fileId;
|
|
50519
50799
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50520
50800
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -50551,18 +50831,18 @@ var Content10 = function(t0) {
|
|
|
50551
50831
|
}
|
|
50552
50832
|
var t5;
|
|
50553
50833
|
if ($[3] !== t3) {
|
|
50554
|
-
t5 = /* @__PURE__ */
|
|
50834
|
+
t5 = /* @__PURE__ */ _jsx100(Flex36, {
|
|
50555
50835
|
direction: "column",
|
|
50556
50836
|
flexGrow: "1",
|
|
50557
50837
|
gap: "3",
|
|
50558
|
-
children: /* @__PURE__ */
|
|
50838
|
+
children: /* @__PURE__ */ _jsx100(Card6, {
|
|
50559
50839
|
style: t1,
|
|
50560
|
-
children: /* @__PURE__ */
|
|
50840
|
+
children: /* @__PURE__ */ _jsx100(Inset3, {
|
|
50561
50841
|
clip: "padding-box",
|
|
50562
50842
|
style: t2,
|
|
50563
|
-
children: /* @__PURE__ */
|
|
50843
|
+
children: /* @__PURE__ */ _jsx100(Flex36, {
|
|
50564
50844
|
flexGrow: "1",
|
|
50565
|
-
children: /* @__PURE__ */
|
|
50845
|
+
children: /* @__PURE__ */ _jsx100("embed", {
|
|
50566
50846
|
src: t3,
|
|
50567
50847
|
style: t4
|
|
50568
50848
|
})
|
|
@@ -50578,9 +50858,9 @@ var Content10 = function(t0) {
|
|
|
50578
50858
|
return t5;
|
|
50579
50859
|
};
|
|
50580
50860
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50581
|
-
import { jsx as
|
|
50861
|
+
import { jsx as _jsx101, jsxs as _jsxs38, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
50582
50862
|
var FileCitation = function(t0) {
|
|
50583
|
-
var $ =
|
|
50863
|
+
var $ = _c105(18);
|
|
50584
50864
|
var annotation = t0.annotation;
|
|
50585
50865
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
50586
50866
|
var t1;
|
|
@@ -50595,14 +50875,14 @@ var FileCitation = function(t0) {
|
|
|
50595
50875
|
}
|
|
50596
50876
|
var t2;
|
|
50597
50877
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50598
|
-
t2 = /* @__PURE__ */
|
|
50878
|
+
t2 = /* @__PURE__ */ _jsx101(QuoteIcon2, {});
|
|
50599
50879
|
$[2] = t2;
|
|
50600
50880
|
} else {
|
|
50601
50881
|
t2 = $[2];
|
|
50602
50882
|
}
|
|
50603
50883
|
var t3;
|
|
50604
50884
|
if ($[3] !== t1) {
|
|
50605
|
-
t3 = /* @__PURE__ */
|
|
50885
|
+
t3 = /* @__PURE__ */ _jsx101(IconButton11, {
|
|
50606
50886
|
variant: "soft",
|
|
50607
50887
|
color: "gray",
|
|
50608
50888
|
size: "1",
|
|
@@ -50638,9 +50918,9 @@ var FileCitation = function(t0) {
|
|
|
50638
50918
|
}
|
|
50639
50919
|
var t7;
|
|
50640
50920
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50641
|
-
t7 = /* @__PURE__ */
|
|
50921
|
+
t7 = /* @__PURE__ */ _jsx101(VisuallyHidden, {
|
|
50642
50922
|
asChild: true,
|
|
50643
|
-
children: /* @__PURE__ */
|
|
50923
|
+
children: /* @__PURE__ */ _jsx101(Dialog.Title, {
|
|
50644
50924
|
children: "Source"
|
|
50645
50925
|
})
|
|
50646
50926
|
});
|
|
@@ -50650,7 +50930,7 @@ var FileCitation = function(t0) {
|
|
|
50650
50930
|
}
|
|
50651
50931
|
var t8;
|
|
50652
50932
|
if ($[8] !== activeFileId) {
|
|
50653
|
-
t8 = activeFileId && /* @__PURE__ */
|
|
50933
|
+
t8 = activeFileId && /* @__PURE__ */ _jsx101(Content11, {
|
|
50654
50934
|
fileId: activeFileId
|
|
50655
50935
|
});
|
|
50656
50936
|
$[8] = activeFileId;
|
|
@@ -50660,7 +50940,7 @@ var FileCitation = function(t0) {
|
|
|
50660
50940
|
}
|
|
50661
50941
|
var t9;
|
|
50662
50942
|
if ($[10] !== t8) {
|
|
50663
|
-
t9 = /* @__PURE__ */
|
|
50943
|
+
t9 = /* @__PURE__ */ _jsxs38(Dialog.Content, {
|
|
50664
50944
|
width: "1000px",
|
|
50665
50945
|
height: "90vh",
|
|
50666
50946
|
maxWidth: "calc(100vw - 2 * var(--space-4))",
|
|
@@ -50678,7 +50958,7 @@ var FileCitation = function(t0) {
|
|
|
50678
50958
|
}
|
|
50679
50959
|
var t10;
|
|
50680
50960
|
if ($[12] !== t4 || $[13] !== t9) {
|
|
50681
|
-
t10 = /* @__PURE__ */
|
|
50961
|
+
t10 = /* @__PURE__ */ _jsx101(Dialog.Root, {
|
|
50682
50962
|
open: t4,
|
|
50683
50963
|
onOpenChange: t5,
|
|
50684
50964
|
children: t9
|
|
@@ -50691,7 +50971,7 @@ var FileCitation = function(t0) {
|
|
|
50691
50971
|
}
|
|
50692
50972
|
var t11;
|
|
50693
50973
|
if ($[15] !== t10 || $[16] !== t3) {
|
|
50694
|
-
t11 = /* @__PURE__ */
|
|
50974
|
+
t11 = /* @__PURE__ */ _jsxs38(_Fragment6, {
|
|
50695
50975
|
children: [
|
|
50696
50976
|
t3,
|
|
50697
50977
|
t10
|
|
@@ -50706,7 +50986,7 @@ var FileCitation = function(t0) {
|
|
|
50706
50986
|
return t11;
|
|
50707
50987
|
};
|
|
50708
50988
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50709
|
-
import { jsx as
|
|
50989
|
+
import { jsx as _jsx102 } from "react/jsx-runtime";
|
|
50710
50990
|
var _excluded8 = [
|
|
50711
50991
|
"children"
|
|
50712
50992
|
];
|
|
@@ -50729,7 +51009,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
50729
51009
|
return t;
|
|
50730
51010
|
}
|
|
50731
51011
|
var SourceAnnotation = function(t0) {
|
|
50732
|
-
var $ =
|
|
51012
|
+
var $ = _c106(10);
|
|
50733
51013
|
var children;
|
|
50734
51014
|
var rest;
|
|
50735
51015
|
if ($[0] !== t0) {
|
|
@@ -50757,7 +51037,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50757
51037
|
if (annotation.type === "file_citation") {
|
|
50758
51038
|
var t2;
|
|
50759
51039
|
if ($[5] !== annotation) {
|
|
50760
|
-
t2 = /* @__PURE__ */
|
|
51040
|
+
t2 = /* @__PURE__ */ _jsx102(FileCitation, {
|
|
50761
51041
|
annotation: annotation
|
|
50762
51042
|
});
|
|
50763
51043
|
$[5] = annotation;
|
|
@@ -50770,7 +51050,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50770
51050
|
if (annotation.type === "file_path") {
|
|
50771
51051
|
var _t2;
|
|
50772
51052
|
if ($[7] !== annotation || $[8] !== children) {
|
|
50773
|
-
_t2 = /* @__PURE__ */
|
|
51053
|
+
_t2 = /* @__PURE__ */ _jsx102(FilePathAnnotation, {
|
|
50774
51054
|
annotation: annotation,
|
|
50775
51055
|
children: children
|
|
50776
51056
|
});
|
|
@@ -50786,7 +51066,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50786
51066
|
return null;
|
|
50787
51067
|
};
|
|
50788
51068
|
// src/components/avatars/Avatar.tsx
|
|
50789
|
-
import { c as
|
|
51069
|
+
import { c as _c109 } from "react-compiler-runtime";
|
|
50790
51070
|
// src/lib/enums/index.ts
|
|
50791
51071
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
50792
51072
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -50811,7 +51091,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
50811
51091
|
// src/components/avatars/Avatar.tsx
|
|
50812
51092
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
50813
51093
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50814
|
-
import { c as
|
|
51094
|
+
import { c as _c107 } from "react-compiler-runtime";
|
|
50815
51095
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
50816
51096
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
50817
51097
|
var width = function(_ref) {
|
|
@@ -50863,9 +51143,9 @@ var optimizedSrc = function(_ref) {
|
|
|
50863
51143
|
}));
|
|
50864
51144
|
};
|
|
50865
51145
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50866
|
-
import { jsx as
|
|
51146
|
+
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
50867
51147
|
var ImageAvatar = function(t0) {
|
|
50868
|
-
var $ =
|
|
51148
|
+
var $ = _c107(9);
|
|
50869
51149
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50870
51150
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50871
51151
|
var t1;
|
|
@@ -50884,7 +51164,7 @@ var ImageAvatar = function(t0) {
|
|
|
50884
51164
|
}
|
|
50885
51165
|
var t2;
|
|
50886
51166
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
50887
|
-
t2 = /* @__PURE__ */
|
|
51167
|
+
t2 = /* @__PURE__ */ _jsx103(Avatar4, {
|
|
50888
51168
|
className: className,
|
|
50889
51169
|
style: style,
|
|
50890
51170
|
fallback: "",
|
|
@@ -50902,24 +51182,24 @@ var ImageAvatar = function(t0) {
|
|
|
50902
51182
|
return t2;
|
|
50903
51183
|
};
|
|
50904
51184
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50905
|
-
import { c as
|
|
50906
|
-
import { useMemo as
|
|
51185
|
+
import { c as _c108 } from "react-compiler-runtime";
|
|
51186
|
+
import { useMemo as useMemo25 } from "react";
|
|
50907
51187
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
50908
51188
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
50909
51189
|
import { BackpackIcon, RocketIcon, MagicWandIcon, CubeIcon, TargetIcon, DiscIcon, GlobeIcon, StarIcon, LightningBoltIcon as LightningBoltIcon2, FaceIcon, PersonIcon as PersonIcon2, HeartIcon } from "@radix-ui/react-icons";
|
|
50910
51190
|
var _obj;
|
|
50911
51191
|
var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, CubeIcon), _define_property(_obj, IconAvatarName.TARGET, TargetIcon), _define_property(_obj, IconAvatarName.DISC, DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, GlobeIcon), _define_property(_obj, IconAvatarName.STAR, StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, LightningBoltIcon2), _define_property(_obj, IconAvatarName.FACE, FaceIcon), _define_property(_obj, IconAvatarName.PERSON, PersonIcon2), _define_property(_obj, IconAvatarName.HEART, HeartIcon), _obj);
|
|
50912
51192
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50913
|
-
import { jsx as
|
|
51193
|
+
import { jsx as _jsx104 } from "react/jsx-runtime";
|
|
50914
51194
|
var IconAvatar = function(t0) {
|
|
50915
|
-
var $ =
|
|
51195
|
+
var $ = _c108(7);
|
|
50916
51196
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50917
51197
|
var t1;
|
|
50918
51198
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
50919
51199
|
var Component2 = t1;
|
|
50920
51200
|
var t2;
|
|
50921
51201
|
if ($[0] !== Component2) {
|
|
50922
|
-
t2 = Component2 ? /* @__PURE__ */
|
|
51202
|
+
t2 = Component2 ? /* @__PURE__ */ _jsx104(Component2, {}) : "";
|
|
50923
51203
|
$[0] = Component2;
|
|
50924
51204
|
$[1] = t2;
|
|
50925
51205
|
} else {
|
|
@@ -50927,7 +51207,7 @@ var IconAvatar = function(t0) {
|
|
|
50927
51207
|
}
|
|
50928
51208
|
var t3;
|
|
50929
51209
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
50930
|
-
t3 = /* @__PURE__ */
|
|
51210
|
+
t3 = /* @__PURE__ */ _jsx104(Avatar5, {
|
|
50931
51211
|
className: className,
|
|
50932
51212
|
style: style,
|
|
50933
51213
|
size: size,
|
|
@@ -50944,16 +51224,16 @@ var IconAvatar = function(t0) {
|
|
|
50944
51224
|
return t3;
|
|
50945
51225
|
};
|
|
50946
51226
|
// src/components/avatars/Avatar.tsx
|
|
50947
|
-
import { jsx as
|
|
51227
|
+
import { jsx as _jsx105 } from "react/jsx-runtime";
|
|
50948
51228
|
var Avatar6 = function(t0) {
|
|
50949
|
-
var $ =
|
|
51229
|
+
var $ = _c109(14);
|
|
50950
51230
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
50951
51231
|
var size = t1 === void 0 ? "1" : t1;
|
|
50952
51232
|
if (avatar) {
|
|
50953
51233
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
50954
51234
|
var _t;
|
|
50955
51235
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
50956
|
-
_t = /* @__PURE__ */
|
|
51236
|
+
_t = /* @__PURE__ */ _jsx105(ImageAvatar, {
|
|
50957
51237
|
imageAvatar: avatar.imageAvatar,
|
|
50958
51238
|
size: size,
|
|
50959
51239
|
className: className,
|
|
@@ -50972,7 +51252,7 @@ var Avatar6 = function(t0) {
|
|
|
50972
51252
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
50973
51253
|
var _t2;
|
|
50974
51254
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
50975
|
-
_t2 = /* @__PURE__ */
|
|
51255
|
+
_t2 = /* @__PURE__ */ _jsx105(IconAvatar, {
|
|
50976
51256
|
iconAvatar: avatar.iconAvatar,
|
|
50977
51257
|
size: size,
|
|
50978
51258
|
className: className,
|
|
@@ -50991,7 +51271,7 @@ var Avatar6 = function(t0) {
|
|
|
50991
51271
|
}
|
|
50992
51272
|
var t2;
|
|
50993
51273
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
50994
|
-
t2 = /* @__PURE__ */
|
|
51274
|
+
t2 = /* @__PURE__ */ _jsx105(RadixAvatar, {
|
|
50995
51275
|
fallback: "",
|
|
50996
51276
|
size: size,
|
|
50997
51277
|
className: className,
|
|
@@ -51007,9 +51287,9 @@ var Avatar6 = function(t0) {
|
|
|
51007
51287
|
return t2;
|
|
51008
51288
|
};
|
|
51009
51289
|
// src/components/components/ComponentsProvider.tsx
|
|
51010
|
-
import { c as
|
|
51011
|
-
import { useMemo as
|
|
51012
|
-
import { jsx as
|
|
51290
|
+
import { c as _c110 } from "react-compiler-runtime";
|
|
51291
|
+
import { useMemo as useMemo26 } from "react";
|
|
51292
|
+
import { jsx as _jsx106 } from "react/jsx-runtime";
|
|
51013
51293
|
var _excluded9 = [
|
|
51014
51294
|
"children"
|
|
51015
51295
|
];
|
|
@@ -51032,7 +51312,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
51032
51312
|
return t;
|
|
51033
51313
|
}
|
|
51034
51314
|
var ComponentsProvider = function(t0) {
|
|
51035
|
-
var $ =
|
|
51315
|
+
var $ = _c110(9);
|
|
51036
51316
|
var children;
|
|
51037
51317
|
var rest;
|
|
51038
51318
|
if ($[0] !== t0) {
|
|
@@ -51062,7 +51342,7 @@ var ComponentsProvider = function(t0) {
|
|
|
51062
51342
|
var value = t1;
|
|
51063
51343
|
var t3;
|
|
51064
51344
|
if ($[6] !== children || $[7] !== value) {
|
|
51065
|
-
t3 = /* @__PURE__ */
|
|
51345
|
+
t3 = /* @__PURE__ */ _jsx106(ComponentsContext.Provider, {
|
|
51066
51346
|
value: value,
|
|
51067
51347
|
children: children
|
|
51068
51348
|
});
|
|
@@ -51075,11 +51355,11 @@ var ComponentsProvider = function(t0) {
|
|
|
51075
51355
|
return t3;
|
|
51076
51356
|
};
|
|
51077
51357
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
51078
|
-
import { c as
|
|
51079
|
-
import { jsx as
|
|
51358
|
+
import { c as _c111 } from "react-compiler-runtime";
|
|
51359
|
+
import { jsx as _jsx107 } from "react/jsx-runtime";
|
|
51080
51360
|
var AssistantProvider = function(t0) {
|
|
51081
51361
|
var _assistant$name;
|
|
51082
|
-
var $ =
|
|
51362
|
+
var $ = _c111(10);
|
|
51083
51363
|
var children = t0.children;
|
|
51084
51364
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51085
51365
|
var t1;
|
|
@@ -51097,7 +51377,7 @@ var AssistantProvider = function(t0) {
|
|
|
51097
51377
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
51098
51378
|
var t4;
|
|
51099
51379
|
if ($[2] !== t3) {
|
|
51100
|
-
t4 = /* @__PURE__ */
|
|
51380
|
+
t4 = /* @__PURE__ */ _jsx107(Avatar6, {
|
|
51101
51381
|
avatar: t3
|
|
51102
51382
|
});
|
|
51103
51383
|
$[2] = t3;
|
|
@@ -51107,7 +51387,7 @@ var AssistantProvider = function(t0) {
|
|
|
51107
51387
|
}
|
|
51108
51388
|
var t5;
|
|
51109
51389
|
if ($[4] !== children || $[5] !== t4) {
|
|
51110
|
-
t5 = /* @__PURE__ */
|
|
51390
|
+
t5 = /* @__PURE__ */ _jsx107(AssistantAvatarContext.Provider, {
|
|
51111
51391
|
value: t4,
|
|
51112
51392
|
children: children
|
|
51113
51393
|
});
|
|
@@ -51119,7 +51399,7 @@ var AssistantProvider = function(t0) {
|
|
|
51119
51399
|
}
|
|
51120
51400
|
var t6;
|
|
51121
51401
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
51122
|
-
t6 = /* @__PURE__ */
|
|
51402
|
+
t6 = /* @__PURE__ */ _jsx107(AssistantNameContext.Provider, {
|
|
51123
51403
|
value: t2,
|
|
51124
51404
|
children: t5
|
|
51125
51405
|
});
|
|
@@ -51131,5 +51411,5 @@ var AssistantProvider = function(t0) {
|
|
|
51131
51411
|
}
|
|
51132
51412
|
return t6;
|
|
51133
51413
|
};
|
|
51134
|
-
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, RunStep, SourceAnnotation, 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 };
|
|
51414
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, Gui, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, RunStep, SourceAnnotation, 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 };
|
|
51135
51415
|
//# sourceMappingURL=index.js.map
|