@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.cjs
CHANGED
|
@@ -8304,7 +8304,7 @@ var require_lib = __commonJS({
|
|
|
8304
8304
|
key: "parseMaybeAssign",
|
|
8305
8305
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
8306
8306
|
var _this = this;
|
|
8307
|
-
var
|
|
8307
|
+
var _jsx108;
|
|
8308
8308
|
var state = null;
|
|
8309
8309
|
var jsx2;
|
|
8310
8310
|
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
|
|
@@ -8319,7 +8319,7 @@ var require_lib = __commonJS({
|
|
|
8319
8319
|
context.pop();
|
|
8320
8320
|
}
|
|
8321
8321
|
}
|
|
8322
|
-
if ((
|
|
8322
|
+
if ((_jsx108 = jsx2) != null && _jsx108.error || this.match(47)) {
|
|
8323
8323
|
var _jsx210, _jsx310;
|
|
8324
8324
|
state = state || this.state.clone();
|
|
8325
8325
|
var typeParameters;
|
|
@@ -13185,7 +13185,7 @@ var require_lib = __commonJS({
|
|
|
13185
13185
|
key: "parseMaybeAssign",
|
|
13186
13186
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
13187
13187
|
var _this = this;
|
|
13188
|
-
var
|
|
13188
|
+
var _jsx108, _jsx210, _typeCast, _jsx310, _typeCast2;
|
|
13189
13189
|
var state;
|
|
13190
13190
|
var jsx2;
|
|
13191
13191
|
var typeCast;
|
|
@@ -13201,7 +13201,7 @@ var require_lib = __commonJS({
|
|
|
13201
13201
|
context.pop();
|
|
13202
13202
|
}
|
|
13203
13203
|
}
|
|
13204
|
-
if (!((
|
|
13204
|
+
if (!((_jsx108 = jsx2) != null && _jsx108.error) && !this.match(47)) {
|
|
13205
13205
|
return _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssign", this).call(this, refExpressionErrors, afterLeftParse);
|
|
13206
13206
|
}
|
|
13207
13207
|
if (!state || state === this.state) state = this.state.clone();
|
|
@@ -37674,6 +37674,9 @@ __export(index_exports, {
|
|
|
37674
37674
|
FunctionComponentsContext: function() {
|
|
37675
37675
|
return FunctionComponentsContext;
|
|
37676
37676
|
},
|
|
37677
|
+
Gui: function() {
|
|
37678
|
+
return Gui;
|
|
37679
|
+
},
|
|
37677
37680
|
MarkdownContext: function() {
|
|
37678
37681
|
return MarkdownContext;
|
|
37679
37682
|
},
|
|
@@ -38164,11 +38167,11 @@ var Root = function(t0) {
|
|
|
38164
38167
|
var StartingToolCalls = function() {
|
|
38165
38168
|
var $ = (0, import_react_compiler_runtime6.c)(2);
|
|
38166
38169
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
38167
|
-
var
|
|
38170
|
+
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
38168
38171
|
var t1;
|
|
38169
|
-
if ($[0] !==
|
|
38170
|
-
t1 = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
38171
|
-
$[0] =
|
|
38172
|
+
if ($[0] !== StartingToolCalls4) {
|
|
38173
|
+
t1 = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StartingToolCalls4, {});
|
|
38174
|
+
$[0] = StartingToolCalls4;
|
|
38172
38175
|
$[1] = t1;
|
|
38173
38176
|
} else {
|
|
38174
38177
|
t1 = $[1];
|
|
@@ -43782,7 +43785,7 @@ function _temp2(content2, index) {
|
|
|
43782
43785
|
// src/components/threads/Thread/Message/index.tsx
|
|
43783
43786
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
43784
43787
|
var Message = function(t0) {
|
|
43785
|
-
var $ = (0, import_react_compiler_runtime58.c)(
|
|
43788
|
+
var $ = (0, import_react_compiler_runtime58.c)(40);
|
|
43786
43789
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43787
43790
|
var t1;
|
|
43788
43791
|
bb0: {
|
|
@@ -43814,101 +43817,123 @@ var Message = function(t0) {
|
|
|
43814
43817
|
_t2 = $[2];
|
|
43815
43818
|
}
|
|
43816
43819
|
var messageCreationRunStepIndex = message.runSteps.findIndex(_t2);
|
|
43817
|
-
|
|
43818
|
-
|
|
43820
|
+
if (messageCreationRunStepIndex === -1) {
|
|
43821
|
+
var _t3;
|
|
43822
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43823
|
+
_t3 = [];
|
|
43824
|
+
$[3] = _t3;
|
|
43825
|
+
} else {
|
|
43826
|
+
_t3 = $[3];
|
|
43827
|
+
}
|
|
43828
|
+
var _t4;
|
|
43829
|
+
if ($[4] !== message.runSteps) {
|
|
43830
|
+
_t4 = [
|
|
43831
|
+
_t3,
|
|
43832
|
+
message.runSteps
|
|
43833
|
+
];
|
|
43834
|
+
$[4] = message.runSteps;
|
|
43835
|
+
$[5] = _t4;
|
|
43836
|
+
} else {
|
|
43837
|
+
_t4 = $[5];
|
|
43838
|
+
}
|
|
43839
|
+
t1 = _t4;
|
|
43840
|
+
break bb0;
|
|
43841
|
+
}
|
|
43842
|
+
var _t5;
|
|
43843
|
+
if ($[6] !== message.runSteps || $[7] !== messageCreationRunStepIndex) {
|
|
43819
43844
|
var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp3);
|
|
43820
43845
|
if (nextRunStepIndex === -1) {
|
|
43821
43846
|
nextRunStepIndex = 0;
|
|
43822
43847
|
}
|
|
43823
|
-
|
|
43824
|
-
$[3] = message.runSteps;
|
|
43825
|
-
$[4] = messageCreationRunStepIndex;
|
|
43826
|
-
$[5] = _t3;
|
|
43827
|
-
} else {
|
|
43828
|
-
_t3 = $[5];
|
|
43829
|
-
}
|
|
43830
|
-
var laterRunSteps = _t3;
|
|
43831
|
-
var _t4;
|
|
43832
|
-
if ($[6] !== message.runSteps || $[7] !== messageCreationRunStepIndex) {
|
|
43833
|
-
_t4 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp22);
|
|
43848
|
+
_t5 = message.runSteps.slice(nextRunStepIndex, messageCreationRunStepIndex);
|
|
43834
43849
|
$[6] = message.runSteps;
|
|
43835
43850
|
$[7] = messageCreationRunStepIndex;
|
|
43836
|
-
$[8] =
|
|
43851
|
+
$[8] = _t5;
|
|
43852
|
+
} else {
|
|
43853
|
+
_t5 = $[8];
|
|
43854
|
+
}
|
|
43855
|
+
var laterRunSteps = _t5;
|
|
43856
|
+
var _t6;
|
|
43857
|
+
if ($[9] !== message.runSteps || $[10] !== messageCreationRunStepIndex) {
|
|
43858
|
+
_t6 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp22);
|
|
43859
|
+
$[9] = message.runSteps;
|
|
43860
|
+
$[10] = messageCreationRunStepIndex;
|
|
43861
|
+
$[11] = _t6;
|
|
43837
43862
|
} else {
|
|
43838
|
-
|
|
43863
|
+
_t6 = $[11];
|
|
43839
43864
|
}
|
|
43840
|
-
var prevRunStepIndex =
|
|
43865
|
+
var prevRunStepIndex = _t6;
|
|
43841
43866
|
var olderRunSteps;
|
|
43842
43867
|
if (prevRunStepIndex === -1) {
|
|
43843
|
-
var
|
|
43844
|
-
if ($[
|
|
43845
|
-
|
|
43846
|
-
$[
|
|
43847
|
-
$[
|
|
43848
|
-
$[
|
|
43868
|
+
var _t7;
|
|
43869
|
+
if ($[12] !== message.runSteps || $[13] !== messageCreationRunStepIndex) {
|
|
43870
|
+
_t7 = message.runSteps.slice(messageCreationRunStepIndex + 1);
|
|
43871
|
+
$[12] = message.runSteps;
|
|
43872
|
+
$[13] = messageCreationRunStepIndex;
|
|
43873
|
+
$[14] = _t7;
|
|
43849
43874
|
} else {
|
|
43850
|
-
|
|
43875
|
+
_t7 = $[14];
|
|
43851
43876
|
}
|
|
43852
|
-
olderRunSteps =
|
|
43877
|
+
olderRunSteps = _t7;
|
|
43853
43878
|
} else {
|
|
43854
|
-
var
|
|
43855
|
-
if ($[
|
|
43856
|
-
|
|
43857
|
-
$[
|
|
43858
|
-
$[
|
|
43859
|
-
$[
|
|
43860
|
-
$[
|
|
43879
|
+
var _t8;
|
|
43880
|
+
if ($[15] !== message.runSteps || $[16] !== messageCreationRunStepIndex || $[17] !== prevRunStepIndex) {
|
|
43881
|
+
_t8 = message.runSteps.slice(messageCreationRunStepIndex + 1, messageCreationRunStepIndex + prevRunStepIndex);
|
|
43882
|
+
$[15] = message.runSteps;
|
|
43883
|
+
$[16] = messageCreationRunStepIndex;
|
|
43884
|
+
$[17] = prevRunStepIndex;
|
|
43885
|
+
$[18] = _t8;
|
|
43861
43886
|
} else {
|
|
43862
|
-
|
|
43887
|
+
_t8 = $[18];
|
|
43863
43888
|
}
|
|
43864
|
-
olderRunSteps =
|
|
43889
|
+
olderRunSteps = _t8;
|
|
43865
43890
|
}
|
|
43866
|
-
var
|
|
43867
|
-
if ($[
|
|
43868
|
-
|
|
43891
|
+
var _t9;
|
|
43892
|
+
if ($[19] !== laterRunSteps || $[20] !== olderRunSteps) {
|
|
43893
|
+
_t9 = [
|
|
43869
43894
|
olderRunSteps,
|
|
43870
43895
|
laterRunSteps
|
|
43871
43896
|
];
|
|
43872
|
-
$[
|
|
43873
|
-
$[
|
|
43874
|
-
$[
|
|
43897
|
+
$[19] = laterRunSteps;
|
|
43898
|
+
$[20] = olderRunSteps;
|
|
43899
|
+
$[21] = _t9;
|
|
43875
43900
|
} else {
|
|
43876
|
-
|
|
43901
|
+
_t9 = $[21];
|
|
43877
43902
|
}
|
|
43878
|
-
t1 =
|
|
43903
|
+
t1 = _t9;
|
|
43879
43904
|
}
|
|
43880
43905
|
var _t1 = _sliced_to_array(t1, 2), olderRunSteps_0 = _t1[0], laterRunSteps_0 = _t1[1];
|
|
43881
43906
|
var t2;
|
|
43882
|
-
if ($[
|
|
43907
|
+
if ($[22] !== message) {
|
|
43883
43908
|
t2 = {
|
|
43884
43909
|
message: message
|
|
43885
43910
|
};
|
|
43886
|
-
$[
|
|
43887
|
-
$[
|
|
43911
|
+
$[22] = message;
|
|
43912
|
+
$[23] = t2;
|
|
43888
43913
|
} else {
|
|
43889
|
-
t2 = $[
|
|
43914
|
+
t2 = $[23];
|
|
43890
43915
|
}
|
|
43891
43916
|
var t3;
|
|
43892
|
-
if ($[
|
|
43917
|
+
if ($[24] !== olderRunSteps_0) {
|
|
43893
43918
|
t3 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RunSteps, {
|
|
43894
43919
|
runSteps: olderRunSteps_0
|
|
43895
43920
|
});
|
|
43896
|
-
$[
|
|
43897
|
-
$[
|
|
43921
|
+
$[24] = olderRunSteps_0;
|
|
43922
|
+
$[25] = t3;
|
|
43898
43923
|
} else {
|
|
43899
|
-
t3 = $[
|
|
43924
|
+
t3 = $[25];
|
|
43900
43925
|
}
|
|
43901
43926
|
var t4;
|
|
43902
|
-
if ($[
|
|
43927
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43903
43928
|
t4 = {
|
|
43904
43929
|
wordBreak: "break-word"
|
|
43905
43930
|
};
|
|
43906
|
-
$[
|
|
43931
|
+
$[26] = t4;
|
|
43907
43932
|
} else {
|
|
43908
|
-
t4 = $[
|
|
43933
|
+
t4 = $[26];
|
|
43909
43934
|
}
|
|
43910
43935
|
var t5;
|
|
43911
|
-
if ($[
|
|
43936
|
+
if ($[27] !== message) {
|
|
43912
43937
|
t5 = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes41.Box, {
|
|
43913
43938
|
style: t4,
|
|
43914
43939
|
children: [
|
|
@@ -43920,23 +43945,23 @@ var Message = function(t0) {
|
|
|
43920
43945
|
})
|
|
43921
43946
|
]
|
|
43922
43947
|
});
|
|
43923
|
-
$[
|
|
43924
|
-
$[
|
|
43948
|
+
$[27] = message;
|
|
43949
|
+
$[28] = t5;
|
|
43925
43950
|
} else {
|
|
43926
|
-
t5 = $[
|
|
43951
|
+
t5 = $[28];
|
|
43927
43952
|
}
|
|
43928
43953
|
var t6;
|
|
43929
|
-
if ($[
|
|
43954
|
+
if ($[29] !== laterRunSteps_0) {
|
|
43930
43955
|
t6 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RunSteps, {
|
|
43931
43956
|
runSteps: laterRunSteps_0
|
|
43932
43957
|
});
|
|
43933
|
-
$[
|
|
43934
|
-
$[
|
|
43958
|
+
$[29] = laterRunSteps_0;
|
|
43959
|
+
$[30] = t6;
|
|
43935
43960
|
} else {
|
|
43936
|
-
t6 = $[
|
|
43961
|
+
t6 = $[30];
|
|
43937
43962
|
}
|
|
43938
43963
|
var t7;
|
|
43939
|
-
if ($[
|
|
43964
|
+
if ($[31] !== className || $[32] !== style || $[33] !== t3 || $[34] !== t5 || $[35] !== t6) {
|
|
43940
43965
|
t7 = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes41.Box, {
|
|
43941
43966
|
className: className,
|
|
43942
43967
|
style: style,
|
|
@@ -43946,26 +43971,26 @@ var Message = function(t0) {
|
|
|
43946
43971
|
t6
|
|
43947
43972
|
]
|
|
43948
43973
|
});
|
|
43949
|
-
$[
|
|
43950
|
-
$[
|
|
43951
|
-
$[
|
|
43952
|
-
$[
|
|
43953
|
-
$[
|
|
43954
|
-
$[
|
|
43974
|
+
$[31] = className;
|
|
43975
|
+
$[32] = style;
|
|
43976
|
+
$[33] = t3;
|
|
43977
|
+
$[34] = t5;
|
|
43978
|
+
$[35] = t6;
|
|
43979
|
+
$[36] = t7;
|
|
43955
43980
|
} else {
|
|
43956
|
-
t7 = $[
|
|
43981
|
+
t7 = $[36];
|
|
43957
43982
|
}
|
|
43958
43983
|
var t8;
|
|
43959
|
-
if ($[
|
|
43984
|
+
if ($[37] !== t2 || $[38] !== t7) {
|
|
43960
43985
|
t8 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Provider, {
|
|
43961
43986
|
value: t2,
|
|
43962
43987
|
children: t7
|
|
43963
43988
|
});
|
|
43964
|
-
$[
|
|
43965
|
-
$[
|
|
43966
|
-
$[
|
|
43989
|
+
$[37] = t2;
|
|
43990
|
+
$[38] = t7;
|
|
43991
|
+
$[39] = t8;
|
|
43967
43992
|
} else {
|
|
43968
|
-
t8 = $[
|
|
43993
|
+
t8 = $[39];
|
|
43969
43994
|
}
|
|
43970
43995
|
return t8;
|
|
43971
43996
|
};
|
|
@@ -50570,10 +50595,268 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50570
50595
|
}
|
|
50571
50596
|
return t2;
|
|
50572
50597
|
};
|
|
50573
|
-
// src/components/
|
|
50598
|
+
// src/components/gui/Gui/index.tsx
|
|
50599
|
+
var import_react_compiler_runtime102 = require("react-compiler-runtime");
|
|
50600
|
+
var import_react75 = require("react");
|
|
50601
|
+
var import_themes64 = require("@radix-ui/themes");
|
|
50602
|
+
// src/hooks/messages/useLatestAssistantMessage/index.ts
|
|
50574
50603
|
var import_react_compiler_runtime100 = require("react-compiler-runtime");
|
|
50575
50604
|
var import_react73 = require("react");
|
|
50605
|
+
var useLatestAssistantMessage = function() {
|
|
50606
|
+
var $ = (0, import_react_compiler_runtime100.c)(4);
|
|
50607
|
+
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50608
|
+
var t0;
|
|
50609
|
+
var t1;
|
|
50610
|
+
if ($[0] !== messages2) {
|
|
50611
|
+
var _messages$find;
|
|
50612
|
+
t1 = (_messages$find = messages2.find(_temp11)) !== null && _messages$find !== void 0 ? _messages$find : null;
|
|
50613
|
+
$[0] = messages2;
|
|
50614
|
+
$[1] = t1;
|
|
50615
|
+
} else {
|
|
50616
|
+
t1 = $[1];
|
|
50617
|
+
}
|
|
50618
|
+
var t2;
|
|
50619
|
+
if ($[2] !== t1) {
|
|
50620
|
+
t2 = {
|
|
50621
|
+
latestAssistantMessage: t1
|
|
50622
|
+
};
|
|
50623
|
+
$[2] = t1;
|
|
50624
|
+
$[3] = t2;
|
|
50625
|
+
} else {
|
|
50626
|
+
t2 = $[3];
|
|
50627
|
+
}
|
|
50628
|
+
t0 = t2;
|
|
50629
|
+
return t0;
|
|
50630
|
+
};
|
|
50631
|
+
function _temp11(message) {
|
|
50632
|
+
return message.role === "assistant";
|
|
50633
|
+
}
|
|
50634
|
+
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
50635
|
+
var import_react_compiler_runtime101 = require("react-compiler-runtime");
|
|
50636
|
+
var import_radash18 = require("radash");
|
|
50637
|
+
var import_react74 = require("react");
|
|
50638
|
+
var useLatestAssistantMessageWithContent = function() {
|
|
50639
|
+
var $ = (0, import_react_compiler_runtime101.c)(4);
|
|
50640
|
+
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50641
|
+
var t0;
|
|
50642
|
+
var t1;
|
|
50643
|
+
if ($[0] !== messages2) {
|
|
50644
|
+
var _messages$find;
|
|
50645
|
+
t1 = (_messages$find = messages2.find(_temp25)) !== null && _messages$find !== void 0 ? _messages$find : null;
|
|
50646
|
+
$[0] = messages2;
|
|
50647
|
+
$[1] = t1;
|
|
50648
|
+
} else {
|
|
50649
|
+
t1 = $[1];
|
|
50650
|
+
}
|
|
50651
|
+
var t2;
|
|
50652
|
+
if ($[2] !== t1) {
|
|
50653
|
+
t2 = {
|
|
50654
|
+
latestAssistantMessageWithContent: t1
|
|
50655
|
+
};
|
|
50656
|
+
$[2] = t1;
|
|
50657
|
+
$[3] = t2;
|
|
50658
|
+
} else {
|
|
50659
|
+
t2 = $[3];
|
|
50660
|
+
}
|
|
50661
|
+
t0 = t2;
|
|
50662
|
+
return t0;
|
|
50663
|
+
};
|
|
50664
|
+
function _temp12(content2) {
|
|
50665
|
+
return content2.type === "text" && !(0, import_radash18.isEmpty)(content2.text.value);
|
|
50666
|
+
}
|
|
50667
|
+
function _temp25(message) {
|
|
50668
|
+
return message.role === "assistant" && message.content.some(_temp12);
|
|
50669
|
+
}
|
|
50670
|
+
// src/components/gui/Gui/index.tsx
|
|
50576
50671
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
50672
|
+
var StartingToolCalls3 = function() {
|
|
50673
|
+
var $ = (0, import_react_compiler_runtime102.c)(2);
|
|
50674
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
50675
|
+
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
50676
|
+
var t1;
|
|
50677
|
+
if ($[0] !== StartingToolCalls4) {
|
|
50678
|
+
t1 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(StartingToolCalls4, {});
|
|
50679
|
+
$[0] = StartingToolCalls4;
|
|
50680
|
+
$[1] = t1;
|
|
50681
|
+
} else {
|
|
50682
|
+
t1 = $[1];
|
|
50683
|
+
}
|
|
50684
|
+
return t1;
|
|
50685
|
+
};
|
|
50686
|
+
var Content10 = function(t0) {
|
|
50687
|
+
var $ = (0, import_react_compiler_runtime102.c)(5);
|
|
50688
|
+
var latestRunStep = t0.latestRunStep;
|
|
50689
|
+
var t1;
|
|
50690
|
+
bb0: {
|
|
50691
|
+
if (!latestRunStep) {
|
|
50692
|
+
t1 = null;
|
|
50693
|
+
break bb0;
|
|
50694
|
+
}
|
|
50695
|
+
if (!latestRunStep.step_details) {
|
|
50696
|
+
t1 = null;
|
|
50697
|
+
break bb0;
|
|
50698
|
+
}
|
|
50699
|
+
if (latestRunStep.step_details.type !== "tool_calls") {
|
|
50700
|
+
t1 = null;
|
|
50701
|
+
break bb0;
|
|
50702
|
+
}
|
|
50703
|
+
t1 = latestRunStep.step_details.tool_calls[0];
|
|
50704
|
+
}
|
|
50705
|
+
var latestToolCall = t1;
|
|
50706
|
+
if (!latestRunStep || latestRunStep.step_details.type !== "tool_calls") {
|
|
50707
|
+
var _t;
|
|
50708
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50709
|
+
_t = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Spinner, {});
|
|
50710
|
+
$[0] = _t;
|
|
50711
|
+
} else {
|
|
50712
|
+
_t = $[0];
|
|
50713
|
+
}
|
|
50714
|
+
return _t;
|
|
50715
|
+
}
|
|
50716
|
+
if (!latestToolCall) {
|
|
50717
|
+
var _t2;
|
|
50718
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50719
|
+
_t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(StartingToolCalls3, {});
|
|
50720
|
+
$[1] = _t2;
|
|
50721
|
+
} else {
|
|
50722
|
+
_t2 = $[1];
|
|
50723
|
+
}
|
|
50724
|
+
return _t2;
|
|
50725
|
+
}
|
|
50726
|
+
var t2;
|
|
50727
|
+
if ($[2] !== latestRunStep || $[3] !== latestToolCall) {
|
|
50728
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ToolCall, {
|
|
50729
|
+
runStep: latestRunStep,
|
|
50730
|
+
toolCall: latestToolCall
|
|
50731
|
+
});
|
|
50732
|
+
$[2] = latestRunStep;
|
|
50733
|
+
$[3] = latestToolCall;
|
|
50734
|
+
$[4] = t2;
|
|
50735
|
+
} else {
|
|
50736
|
+
t2 = $[4];
|
|
50737
|
+
}
|
|
50738
|
+
return t2;
|
|
50739
|
+
};
|
|
50740
|
+
var Progress2 = function(t0) {
|
|
50741
|
+
var $ = (0, import_react_compiler_runtime102.c)(5);
|
|
50742
|
+
var latestAssistantMessage = t0.latestAssistantMessage;
|
|
50743
|
+
var isMutatingMessage = useIsMutatingMessage();
|
|
50744
|
+
var t1;
|
|
50745
|
+
var t2;
|
|
50746
|
+
if ($[0] !== latestAssistantMessage.runSteps) {
|
|
50747
|
+
var _latestAssistantMessa;
|
|
50748
|
+
t2 = (_latestAssistantMessa = latestAssistantMessage.runSteps.find(_temp13)) !== null && _latestAssistantMessa !== void 0 ? _latestAssistantMessa : null;
|
|
50749
|
+
$[0] = latestAssistantMessage.runSteps;
|
|
50750
|
+
$[1] = t2;
|
|
50751
|
+
} else {
|
|
50752
|
+
t2 = $[1];
|
|
50753
|
+
}
|
|
50754
|
+
t1 = t2;
|
|
50755
|
+
var latestRunStep = t1;
|
|
50756
|
+
if (latestAssistantMessage.status !== "in_progress" && !isMutatingMessage) {
|
|
50757
|
+
return null;
|
|
50758
|
+
}
|
|
50759
|
+
var t3;
|
|
50760
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50761
|
+
t3 = {
|
|
50762
|
+
position: "fixed",
|
|
50763
|
+
left: 0,
|
|
50764
|
+
bottom: 0,
|
|
50765
|
+
right: 0,
|
|
50766
|
+
justifyContent: "center",
|
|
50767
|
+
padding: "var(--space-5)"
|
|
50768
|
+
};
|
|
50769
|
+
$[2] = t3;
|
|
50770
|
+
} else {
|
|
50771
|
+
t3 = $[2];
|
|
50772
|
+
}
|
|
50773
|
+
var t4;
|
|
50774
|
+
if ($[3] !== latestRunStep) {
|
|
50775
|
+
t4 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Flex, {
|
|
50776
|
+
style: t3,
|
|
50777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Card, {
|
|
50778
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Content10, {
|
|
50779
|
+
latestRunStep: latestRunStep
|
|
50780
|
+
})
|
|
50781
|
+
})
|
|
50782
|
+
});
|
|
50783
|
+
$[3] = latestRunStep;
|
|
50784
|
+
$[4] = t4;
|
|
50785
|
+
} else {
|
|
50786
|
+
t4 = $[4];
|
|
50787
|
+
}
|
|
50788
|
+
return t4;
|
|
50789
|
+
};
|
|
50790
|
+
var Gui = function() {
|
|
50791
|
+
var $ = (0, import_react_compiler_runtime102.c)(8);
|
|
50792
|
+
var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
|
|
50793
|
+
var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
|
|
50794
|
+
if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
|
|
50795
|
+
var _t3;
|
|
50796
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50797
|
+
_t3 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Flex, {
|
|
50798
|
+
direction: "column",
|
|
50799
|
+
flexGrow: "1",
|
|
50800
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Flex, {
|
|
50801
|
+
align: "center",
|
|
50802
|
+
justify: "center",
|
|
50803
|
+
flexGrow: "1",
|
|
50804
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Spinner, {
|
|
50805
|
+
size: "3"
|
|
50806
|
+
})
|
|
50807
|
+
})
|
|
50808
|
+
});
|
|
50809
|
+
$[0] = _t3;
|
|
50810
|
+
} else {
|
|
50811
|
+
_t3 = $[0];
|
|
50812
|
+
}
|
|
50813
|
+
return _t3;
|
|
50814
|
+
}
|
|
50815
|
+
var t0;
|
|
50816
|
+
if ($[1] !== latestAssistantMessageWithContent) {
|
|
50817
|
+
t0 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(MessageContent, {
|
|
50818
|
+
message: latestAssistantMessageWithContent
|
|
50819
|
+
});
|
|
50820
|
+
$[1] = latestAssistantMessageWithContent;
|
|
50821
|
+
$[2] = t0;
|
|
50822
|
+
} else {
|
|
50823
|
+
t0 = $[2];
|
|
50824
|
+
}
|
|
50825
|
+
var t1;
|
|
50826
|
+
if ($[3] !== latestAssistantMessage) {
|
|
50827
|
+
t1 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Progress2, {
|
|
50828
|
+
latestAssistantMessage: latestAssistantMessage
|
|
50829
|
+
});
|
|
50830
|
+
$[3] = latestAssistantMessage;
|
|
50831
|
+
$[4] = t1;
|
|
50832
|
+
} else {
|
|
50833
|
+
t1 = $[4];
|
|
50834
|
+
}
|
|
50835
|
+
var t2;
|
|
50836
|
+
if ($[5] !== t0 || $[6] !== t1) {
|
|
50837
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_themes64.Flex, {
|
|
50838
|
+
direction: "column",
|
|
50839
|
+
flexGrow: "1",
|
|
50840
|
+
children: [
|
|
50841
|
+
t0,
|
|
50842
|
+
t1
|
|
50843
|
+
]
|
|
50844
|
+
});
|
|
50845
|
+
$[5] = t0;
|
|
50846
|
+
$[6] = t1;
|
|
50847
|
+
$[7] = t2;
|
|
50848
|
+
} else {
|
|
50849
|
+
t2 = $[7];
|
|
50850
|
+
}
|
|
50851
|
+
return t2;
|
|
50852
|
+
};
|
|
50853
|
+
function _temp13(rs) {
|
|
50854
|
+
return rs.status === "in_progress";
|
|
50855
|
+
}
|
|
50856
|
+
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50857
|
+
var import_react_compiler_runtime103 = require("react-compiler-runtime");
|
|
50858
|
+
var import_react76 = require("react");
|
|
50859
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
50577
50860
|
var _excluded7 = [
|
|
50578
50861
|
"children"
|
|
50579
50862
|
];
|
|
@@ -50596,7 +50879,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50596
50879
|
return t;
|
|
50597
50880
|
}
|
|
50598
50881
|
var MarkdownProvider = function(t0) {
|
|
50599
|
-
var $ = (0,
|
|
50882
|
+
var $ = (0, import_react_compiler_runtime103.c)(9);
|
|
50600
50883
|
var children;
|
|
50601
50884
|
var rest;
|
|
50602
50885
|
if ($[0] !== t0) {
|
|
@@ -50626,7 +50909,7 @@ var MarkdownProvider = function(t0) {
|
|
|
50626
50909
|
var value = t1;
|
|
50627
50910
|
var t3;
|
|
50628
50911
|
if ($[6] !== children || $[7] !== value) {
|
|
50629
|
-
t3 = /* @__PURE__ */ (0,
|
|
50912
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(MarkdownContext.Provider, {
|
|
50630
50913
|
value: value,
|
|
50631
50914
|
children: children
|
|
50632
50915
|
});
|
|
@@ -50639,18 +50922,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50639
50922
|
return t3;
|
|
50640
50923
|
};
|
|
50641
50924
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50642
|
-
var
|
|
50925
|
+
var import_react_compiler_runtime106 = require("react-compiler-runtime");
|
|
50643
50926
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50644
|
-
var
|
|
50645
|
-
var
|
|
50927
|
+
var import_react_compiler_runtime105 = require("react-compiler-runtime");
|
|
50928
|
+
var import_react77 = require("react");
|
|
50646
50929
|
var import_react_icons18 = require("@radix-ui/react-icons");
|
|
50647
|
-
var
|
|
50930
|
+
var import_themes66 = require("@radix-ui/themes");
|
|
50648
50931
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50649
|
-
var
|
|
50650
|
-
var
|
|
50651
|
-
var
|
|
50652
|
-
var
|
|
50653
|
-
var $ = (0,
|
|
50932
|
+
var import_react_compiler_runtime104 = require("react-compiler-runtime");
|
|
50933
|
+
var import_themes65 = require("@radix-ui/themes");
|
|
50934
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
50935
|
+
var Content11 = function(t0) {
|
|
50936
|
+
var $ = (0, import_react_compiler_runtime104.c)(5);
|
|
50654
50937
|
var fileId = t0.fileId;
|
|
50655
50938
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50656
50939
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -50687,18 +50970,18 @@ var Content10 = function(t0) {
|
|
|
50687
50970
|
}
|
|
50688
50971
|
var t5;
|
|
50689
50972
|
if ($[3] !== t3) {
|
|
50690
|
-
t5 = /* @__PURE__ */ (0,
|
|
50973
|
+
t5 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.Flex, {
|
|
50691
50974
|
direction: "column",
|
|
50692
50975
|
flexGrow: "1",
|
|
50693
50976
|
gap: "3",
|
|
50694
|
-
children: /* @__PURE__ */ (0,
|
|
50977
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.Card, {
|
|
50695
50978
|
style: t1,
|
|
50696
|
-
children: /* @__PURE__ */ (0,
|
|
50979
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.Inset, {
|
|
50697
50980
|
clip: "padding-box",
|
|
50698
50981
|
style: t2,
|
|
50699
|
-
children: /* @__PURE__ */ (0,
|
|
50982
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.Flex, {
|
|
50700
50983
|
flexGrow: "1",
|
|
50701
|
-
children: /* @__PURE__ */ (0,
|
|
50984
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("embed", {
|
|
50702
50985
|
src: t3,
|
|
50703
50986
|
style: t4
|
|
50704
50987
|
})
|
|
@@ -50714,11 +50997,11 @@ var Content10 = function(t0) {
|
|
|
50714
50997
|
return t5;
|
|
50715
50998
|
};
|
|
50716
50999
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50717
|
-
var
|
|
51000
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
50718
51001
|
var FileCitation = function(t0) {
|
|
50719
|
-
var $ = (0,
|
|
51002
|
+
var $ = (0, import_react_compiler_runtime105.c)(18);
|
|
50720
51003
|
var annotation = t0.annotation;
|
|
50721
|
-
var _ref = _sliced_to_array((0,
|
|
51004
|
+
var _ref = _sliced_to_array((0, import_react77.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
|
|
50722
51005
|
var t1;
|
|
50723
51006
|
if ($[0] !== annotation.file_citation.file_id) {
|
|
50724
51007
|
t1 = function() {
|
|
@@ -50731,14 +51014,14 @@ var FileCitation = function(t0) {
|
|
|
50731
51014
|
}
|
|
50732
51015
|
var t2;
|
|
50733
51016
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50734
|
-
t2 = /* @__PURE__ */ (0,
|
|
51017
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_icons18.QuoteIcon, {});
|
|
50735
51018
|
$[2] = t2;
|
|
50736
51019
|
} else {
|
|
50737
51020
|
t2 = $[2];
|
|
50738
51021
|
}
|
|
50739
51022
|
var t3;
|
|
50740
51023
|
if ($[3] !== t1) {
|
|
50741
|
-
t3 = /* @__PURE__ */ (0,
|
|
51024
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes66.IconButton, {
|
|
50742
51025
|
variant: "soft",
|
|
50743
51026
|
color: "gray",
|
|
50744
51027
|
size: "1",
|
|
@@ -50774,9 +51057,9 @@ var FileCitation = function(t0) {
|
|
|
50774
51057
|
}
|
|
50775
51058
|
var t7;
|
|
50776
51059
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50777
|
-
t7 = /* @__PURE__ */ (0,
|
|
51060
|
+
t7 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes66.VisuallyHidden, {
|
|
50778
51061
|
asChild: true,
|
|
50779
|
-
children: /* @__PURE__ */ (0,
|
|
51062
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes66.Dialog.Title, {
|
|
50780
51063
|
children: "Source"
|
|
50781
51064
|
})
|
|
50782
51065
|
});
|
|
@@ -50786,7 +51069,7 @@ var FileCitation = function(t0) {
|
|
|
50786
51069
|
}
|
|
50787
51070
|
var t8;
|
|
50788
51071
|
if ($[8] !== activeFileId) {
|
|
50789
|
-
t8 = activeFileId && /* @__PURE__ */ (0,
|
|
51072
|
+
t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Content11, {
|
|
50790
51073
|
fileId: activeFileId
|
|
50791
51074
|
});
|
|
50792
51075
|
$[8] = activeFileId;
|
|
@@ -50796,7 +51079,7 @@ var FileCitation = function(t0) {
|
|
|
50796
51079
|
}
|
|
50797
51080
|
var t9;
|
|
50798
51081
|
if ($[10] !== t8) {
|
|
50799
|
-
t9 = /* @__PURE__ */ (0,
|
|
51082
|
+
t9 = /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes66.Dialog.Content, {
|
|
50800
51083
|
width: "1000px",
|
|
50801
51084
|
height: "90vh",
|
|
50802
51085
|
maxWidth: "calc(100vw - 2 * var(--space-4))",
|
|
@@ -50814,7 +51097,7 @@ var FileCitation = function(t0) {
|
|
|
50814
51097
|
}
|
|
50815
51098
|
var t10;
|
|
50816
51099
|
if ($[12] !== t4 || $[13] !== t9) {
|
|
50817
|
-
t10 = /* @__PURE__ */ (0,
|
|
51100
|
+
t10 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes66.Dialog.Root, {
|
|
50818
51101
|
open: t4,
|
|
50819
51102
|
onOpenChange: t5,
|
|
50820
51103
|
children: t9
|
|
@@ -50827,7 +51110,7 @@ var FileCitation = function(t0) {
|
|
|
50827
51110
|
}
|
|
50828
51111
|
var t11;
|
|
50829
51112
|
if ($[15] !== t10 || $[16] !== t3) {
|
|
50830
|
-
t11 = /* @__PURE__ */ (0,
|
|
51113
|
+
t11 = /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, {
|
|
50831
51114
|
children: [
|
|
50832
51115
|
t3,
|
|
50833
51116
|
t10
|
|
@@ -50842,7 +51125,7 @@ var FileCitation = function(t0) {
|
|
|
50842
51125
|
return t11;
|
|
50843
51126
|
};
|
|
50844
51127
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50845
|
-
var
|
|
51128
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
50846
51129
|
var _excluded8 = [
|
|
50847
51130
|
"children"
|
|
50848
51131
|
];
|
|
@@ -50865,7 +51148,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
50865
51148
|
return t;
|
|
50866
51149
|
}
|
|
50867
51150
|
var SourceAnnotation = function(t0) {
|
|
50868
|
-
var $ = (0,
|
|
51151
|
+
var $ = (0, import_react_compiler_runtime106.c)(10);
|
|
50869
51152
|
var children;
|
|
50870
51153
|
var rest;
|
|
50871
51154
|
if ($[0] !== t0) {
|
|
@@ -50893,7 +51176,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50893
51176
|
if (annotation.type === "file_citation") {
|
|
50894
51177
|
var t2;
|
|
50895
51178
|
if ($[5] !== annotation) {
|
|
50896
|
-
t2 = /* @__PURE__ */ (0,
|
|
51179
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(FileCitation, {
|
|
50897
51180
|
annotation: annotation
|
|
50898
51181
|
});
|
|
50899
51182
|
$[5] = annotation;
|
|
@@ -50906,7 +51189,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50906
51189
|
if (annotation.type === "file_path") {
|
|
50907
51190
|
var _t2;
|
|
50908
51191
|
if ($[7] !== annotation || $[8] !== children) {
|
|
50909
|
-
_t2 = /* @__PURE__ */ (0,
|
|
51192
|
+
_t2 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(FilePathAnnotation, {
|
|
50910
51193
|
annotation: annotation,
|
|
50911
51194
|
children: children
|
|
50912
51195
|
});
|
|
@@ -50922,7 +51205,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50922
51205
|
return null;
|
|
50923
51206
|
};
|
|
50924
51207
|
// src/components/avatars/Avatar.tsx
|
|
50925
|
-
var
|
|
51208
|
+
var import_react_compiler_runtime109 = require("react-compiler-runtime");
|
|
50926
51209
|
// src/lib/enums/index.ts
|
|
50927
51210
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
50928
51211
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -50945,10 +51228,10 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
50945
51228
|
return AvatarType2;
|
|
50946
51229
|
}({});
|
|
50947
51230
|
// src/components/avatars/Avatar.tsx
|
|
50948
|
-
var
|
|
51231
|
+
var import_themes69 = require("@radix-ui/themes");
|
|
50949
51232
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50950
|
-
var
|
|
50951
|
-
var
|
|
51233
|
+
var import_react_compiler_runtime107 = require("react-compiler-runtime");
|
|
51234
|
+
var import_themes67 = require("@radix-ui/themes");
|
|
50952
51235
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
50953
51236
|
var width = function(_ref) {
|
|
50954
51237
|
var size = _ref.size;
|
|
@@ -50999,9 +51282,9 @@ var optimizedSrc = function(_ref) {
|
|
|
50999
51282
|
}));
|
|
51000
51283
|
};
|
|
51001
51284
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51002
|
-
var
|
|
51285
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
51003
51286
|
var ImageAvatar = function(t0) {
|
|
51004
|
-
var $ = (0,
|
|
51287
|
+
var $ = (0, import_react_compiler_runtime107.c)(9);
|
|
51005
51288
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51006
51289
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51007
51290
|
var t1;
|
|
@@ -51020,7 +51303,7 @@ var ImageAvatar = function(t0) {
|
|
|
51020
51303
|
}
|
|
51021
51304
|
var t2;
|
|
51022
51305
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
51023
|
-
t2 = /* @__PURE__ */ (0,
|
|
51306
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes67.Avatar, {
|
|
51024
51307
|
className: className,
|
|
51025
51308
|
style: style,
|
|
51026
51309
|
fallback: "",
|
|
@@ -51038,24 +51321,24 @@ var ImageAvatar = function(t0) {
|
|
|
51038
51321
|
return t2;
|
|
51039
51322
|
};
|
|
51040
51323
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51041
|
-
var
|
|
51042
|
-
var
|
|
51043
|
-
var
|
|
51324
|
+
var import_react_compiler_runtime108 = require("react-compiler-runtime");
|
|
51325
|
+
var import_react78 = require("react");
|
|
51326
|
+
var import_themes68 = require("@radix-ui/themes");
|
|
51044
51327
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
51045
51328
|
var import_react_icons19 = require("@radix-ui/react-icons");
|
|
51046
51329
|
var _obj;
|
|
51047
51330
|
var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, import_react_icons19.BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, import_react_icons19.RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, import_react_icons19.MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, import_react_icons19.CubeIcon), _define_property(_obj, IconAvatarName.TARGET, import_react_icons19.TargetIcon), _define_property(_obj, IconAvatarName.DISC, import_react_icons19.DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, import_react_icons19.GlobeIcon), _define_property(_obj, IconAvatarName.STAR, import_react_icons19.StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, import_react_icons19.LightningBoltIcon), _define_property(_obj, IconAvatarName.FACE, import_react_icons19.FaceIcon), _define_property(_obj, IconAvatarName.PERSON, import_react_icons19.PersonIcon), _define_property(_obj, IconAvatarName.HEART, import_react_icons19.HeartIcon), _obj);
|
|
51048
51331
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51049
|
-
var
|
|
51332
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
51050
51333
|
var IconAvatar = function(t0) {
|
|
51051
|
-
var $ = (0,
|
|
51334
|
+
var $ = (0, import_react_compiler_runtime108.c)(7);
|
|
51052
51335
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51053
51336
|
var t1;
|
|
51054
51337
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
51055
51338
|
var Component2 = t1;
|
|
51056
51339
|
var t2;
|
|
51057
51340
|
if ($[0] !== Component2) {
|
|
51058
|
-
t2 = Component2 ? /* @__PURE__ */ (0,
|
|
51341
|
+
t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Component2, {}) : "";
|
|
51059
51342
|
$[0] = Component2;
|
|
51060
51343
|
$[1] = t2;
|
|
51061
51344
|
} else {
|
|
@@ -51063,7 +51346,7 @@ var IconAvatar = function(t0) {
|
|
|
51063
51346
|
}
|
|
51064
51347
|
var t3;
|
|
51065
51348
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
51066
|
-
t3 = /* @__PURE__ */ (0,
|
|
51349
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes68.Avatar, {
|
|
51067
51350
|
className: className,
|
|
51068
51351
|
style: style,
|
|
51069
51352
|
size: size,
|
|
@@ -51080,16 +51363,16 @@ var IconAvatar = function(t0) {
|
|
|
51080
51363
|
return t3;
|
|
51081
51364
|
};
|
|
51082
51365
|
// src/components/avatars/Avatar.tsx
|
|
51083
|
-
var
|
|
51366
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
51084
51367
|
var Avatar6 = function(t0) {
|
|
51085
|
-
var $ = (0,
|
|
51368
|
+
var $ = (0, import_react_compiler_runtime109.c)(14);
|
|
51086
51369
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
51087
51370
|
var size = t1 === void 0 ? "1" : t1;
|
|
51088
51371
|
if (avatar) {
|
|
51089
51372
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
51090
51373
|
var _t;
|
|
51091
51374
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
51092
|
-
_t = /* @__PURE__ */ (0,
|
|
51375
|
+
_t = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ImageAvatar, {
|
|
51093
51376
|
imageAvatar: avatar.imageAvatar,
|
|
51094
51377
|
size: size,
|
|
51095
51378
|
className: className,
|
|
@@ -51108,7 +51391,7 @@ var Avatar6 = function(t0) {
|
|
|
51108
51391
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
51109
51392
|
var _t2;
|
|
51110
51393
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
51111
|
-
_t2 = /* @__PURE__ */ (0,
|
|
51394
|
+
_t2 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(IconAvatar, {
|
|
51112
51395
|
iconAvatar: avatar.iconAvatar,
|
|
51113
51396
|
size: size,
|
|
51114
51397
|
className: className,
|
|
@@ -51127,7 +51410,7 @@ var Avatar6 = function(t0) {
|
|
|
51127
51410
|
}
|
|
51128
51411
|
var t2;
|
|
51129
51412
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
51130
|
-
t2 = /* @__PURE__ */ (0,
|
|
51413
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes69.Avatar, {
|
|
51131
51414
|
fallback: "",
|
|
51132
51415
|
size: size,
|
|
51133
51416
|
className: className,
|
|
@@ -51143,9 +51426,9 @@ var Avatar6 = function(t0) {
|
|
|
51143
51426
|
return t2;
|
|
51144
51427
|
};
|
|
51145
51428
|
// src/components/components/ComponentsProvider.tsx
|
|
51146
|
-
var
|
|
51147
|
-
var
|
|
51148
|
-
var
|
|
51429
|
+
var import_react_compiler_runtime110 = require("react-compiler-runtime");
|
|
51430
|
+
var import_react79 = require("react");
|
|
51431
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
51149
51432
|
var _excluded9 = [
|
|
51150
51433
|
"children"
|
|
51151
51434
|
];
|
|
@@ -51168,7 +51451,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
51168
51451
|
return t;
|
|
51169
51452
|
}
|
|
51170
51453
|
var ComponentsProvider = function(t0) {
|
|
51171
|
-
var $ = (0,
|
|
51454
|
+
var $ = (0, import_react_compiler_runtime110.c)(9);
|
|
51172
51455
|
var children;
|
|
51173
51456
|
var rest;
|
|
51174
51457
|
if ($[0] !== t0) {
|
|
@@ -51198,7 +51481,7 @@ var ComponentsProvider = function(t0) {
|
|
|
51198
51481
|
var value = t1;
|
|
51199
51482
|
var t3;
|
|
51200
51483
|
if ($[6] !== children || $[7] !== value) {
|
|
51201
|
-
t3 = /* @__PURE__ */ (0,
|
|
51484
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ComponentsContext.Provider, {
|
|
51202
51485
|
value: value,
|
|
51203
51486
|
children: children
|
|
51204
51487
|
});
|
|
@@ -51211,11 +51494,11 @@ var ComponentsProvider = function(t0) {
|
|
|
51211
51494
|
return t3;
|
|
51212
51495
|
};
|
|
51213
51496
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
51214
|
-
var
|
|
51215
|
-
var
|
|
51497
|
+
var import_react_compiler_runtime111 = require("react-compiler-runtime");
|
|
51498
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
51216
51499
|
var AssistantProvider = function(t0) {
|
|
51217
51500
|
var _assistant$name;
|
|
51218
|
-
var $ = (0,
|
|
51501
|
+
var $ = (0, import_react_compiler_runtime111.c)(10);
|
|
51219
51502
|
var children = t0.children;
|
|
51220
51503
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51221
51504
|
var t1;
|
|
@@ -51233,7 +51516,7 @@ var AssistantProvider = function(t0) {
|
|
|
51233
51516
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
51234
51517
|
var t4;
|
|
51235
51518
|
if ($[2] !== t3) {
|
|
51236
|
-
t4 = /* @__PURE__ */ (0,
|
|
51519
|
+
t4 = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Avatar6, {
|
|
51237
51520
|
avatar: t3
|
|
51238
51521
|
});
|
|
51239
51522
|
$[2] = t3;
|
|
@@ -51243,7 +51526,7 @@ var AssistantProvider = function(t0) {
|
|
|
51243
51526
|
}
|
|
51244
51527
|
var t5;
|
|
51245
51528
|
if ($[4] !== children || $[5] !== t4) {
|
|
51246
|
-
t5 = /* @__PURE__ */ (0,
|
|
51529
|
+
t5 = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(AssistantAvatarContext.Provider, {
|
|
51247
51530
|
value: t4,
|
|
51248
51531
|
children: children
|
|
51249
51532
|
});
|
|
@@ -51255,7 +51538,7 @@ var AssistantProvider = function(t0) {
|
|
|
51255
51538
|
}
|
|
51256
51539
|
var t6;
|
|
51257
51540
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
51258
|
-
t6 = /* @__PURE__ */ (0,
|
|
51541
|
+
t6 = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(AssistantNameContext.Provider, {
|
|
51259
51542
|
value: t2,
|
|
51260
51543
|
children: t5
|
|
51261
51544
|
});
|
|
@@ -51278,6 +51561,7 @@ var AssistantProvider = function(t0) {
|
|
|
51278
51561
|
ComponentsProvider: ComponentsProvider,
|
|
51279
51562
|
FunctionBase: FunctionBase,
|
|
51280
51563
|
FunctionComponentsContext: FunctionComponentsContext,
|
|
51564
|
+
Gui: Gui,
|
|
51281
51565
|
MarkdownContext: MarkdownContext,
|
|
51282
51566
|
MarkdownProvider: MarkdownProvider,
|
|
51283
51567
|
MessageContent: MessageContent,
|