@superinterface/react 4.2.1 → 4.2.2
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 +22 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +22 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37987,23 +37987,25 @@ var FunctionComponentsContext = /* @__PURE__ */ (0, import_react4.createContext)
|
|
|
37987
37987
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn.tsx
|
|
37988
37988
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
37989
37989
|
var Fn = function(t0) {
|
|
37990
|
-
var $ = (0, import_react_compiler_runtime.c)(
|
|
37991
|
-
var fn = t0.fn, runStep = t0.runStep;
|
|
37990
|
+
var $ = (0, import_react_compiler_runtime.c)(5);
|
|
37991
|
+
var fn = t0.fn, runStep = t0.runStep, toolCall = t0.toolCall;
|
|
37992
37992
|
var functionComponentsContext = (0, import_react5.useContext)(FunctionComponentsContext);
|
|
37993
37993
|
var componentsContext = (0, import_react5.useContext)(ComponentsContext);
|
|
37994
37994
|
var Component2 = functionComponentsContext[fn.name] || componentsContext.components.Function;
|
|
37995
37995
|
var t1;
|
|
37996
|
-
if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep) {
|
|
37996
|
+
if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep || $[3] !== toolCall) {
|
|
37997
37997
|
t1 = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Component2, {
|
|
37998
37998
|
fn: fn,
|
|
37999
|
-
runStep: runStep
|
|
37999
|
+
runStep: runStep,
|
|
38000
|
+
toolCall: toolCall
|
|
38000
38001
|
});
|
|
38001
38002
|
$[0] = Component2;
|
|
38002
38003
|
$[1] = fn;
|
|
38003
38004
|
$[2] = runStep;
|
|
38004
|
-
$[3] =
|
|
38005
|
+
$[3] = toolCall;
|
|
38006
|
+
$[4] = t1;
|
|
38005
38007
|
} else {
|
|
38006
|
-
t1 = $[
|
|
38008
|
+
t1 = $[4];
|
|
38007
38009
|
}
|
|
38008
38010
|
return t1;
|
|
38009
38011
|
};
|
|
@@ -38012,22 +38014,24 @@ var import_react_compiler_runtime2 = require("react-compiler-runtime");
|
|
|
38012
38014
|
var import_react6 = require("react");
|
|
38013
38015
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
38014
38016
|
var CodeInterpreter = function(t0) {
|
|
38015
|
-
var $ = (0, import_react_compiler_runtime2.c)(
|
|
38016
|
-
var codeInterpreter = t0.codeInterpreter, runStep = t0.runStep;
|
|
38017
|
+
var $ = (0, import_react_compiler_runtime2.c)(5);
|
|
38018
|
+
var codeInterpreter = t0.codeInterpreter, runStep = t0.runStep, toolCall = t0.toolCall;
|
|
38017
38019
|
var componentsContext = (0, import_react6.useContext)(ComponentsContext);
|
|
38018
38020
|
var Component2 = componentsContext.components.CodeInterpreterToolCall;
|
|
38019
38021
|
var t1;
|
|
38020
|
-
if ($[0] !== Component2 || $[1] !== codeInterpreter || $[2] !== runStep) {
|
|
38022
|
+
if ($[0] !== Component2 || $[1] !== codeInterpreter || $[2] !== runStep || $[3] !== toolCall) {
|
|
38021
38023
|
t1 = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Component2, {
|
|
38022
38024
|
codeInterpreter: codeInterpreter,
|
|
38023
|
-
runStep: runStep
|
|
38025
|
+
runStep: runStep,
|
|
38026
|
+
toolCall: toolCall
|
|
38024
38027
|
});
|
|
38025
38028
|
$[0] = Component2;
|
|
38026
38029
|
$[1] = codeInterpreter;
|
|
38027
38030
|
$[2] = runStep;
|
|
38028
|
-
$[3] =
|
|
38031
|
+
$[3] = toolCall;
|
|
38032
|
+
$[4] = t1;
|
|
38029
38033
|
} else {
|
|
38030
|
-
t1 = $[
|
|
38034
|
+
t1 = $[4];
|
|
38031
38035
|
}
|
|
38032
38036
|
return t1;
|
|
38033
38037
|
};
|
|
@@ -38086,13 +38090,14 @@ var ToolCall = function(t0) {
|
|
|
38086
38090
|
var toolCall = t0.toolCall, runStep = t0.runStep;
|
|
38087
38091
|
if (toolCall.type === "function") {
|
|
38088
38092
|
var _t;
|
|
38089
|
-
if ($[0] !== runStep || $[1] !== toolCall
|
|
38093
|
+
if ($[0] !== runStep || $[1] !== toolCall) {
|
|
38090
38094
|
_t = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Fn, {
|
|
38091
38095
|
fn: toolCall.function,
|
|
38096
|
+
toolCall: toolCall,
|
|
38092
38097
|
runStep: runStep
|
|
38093
38098
|
});
|
|
38094
38099
|
$[0] = runStep;
|
|
38095
|
-
$[1] = toolCall
|
|
38100
|
+
$[1] = toolCall;
|
|
38096
38101
|
$[2] = _t;
|
|
38097
38102
|
} else {
|
|
38098
38103
|
_t = $[2];
|
|
@@ -38101,13 +38106,14 @@ var ToolCall = function(t0) {
|
|
|
38101
38106
|
}
|
|
38102
38107
|
if (toolCall.type === "code_interpreter") {
|
|
38103
38108
|
var _t2;
|
|
38104
|
-
if ($[3] !== runStep || $[4] !== toolCall
|
|
38109
|
+
if ($[3] !== runStep || $[4] !== toolCall) {
|
|
38105
38110
|
_t2 = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CodeInterpreter, {
|
|
38106
38111
|
codeInterpreter: toolCall.code_interpreter,
|
|
38112
|
+
toolCall: toolCall,
|
|
38107
38113
|
runStep: runStep
|
|
38108
38114
|
});
|
|
38109
38115
|
$[3] = runStep;
|
|
38110
|
-
$[4] = toolCall
|
|
38116
|
+
$[4] = toolCall;
|
|
38111
38117
|
$[5] = _t2;
|
|
38112
38118
|
} else {
|
|
38113
38119
|
_t2 = $[5];
|