@datatechsolutions/ui 2.11.55 → 2.11.57
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/astrlabe/contracts.d.mts +20 -3
- package/dist/astrlabe/contracts.d.ts +20 -3
- package/dist/astrlabe/index.js +145 -140
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +13 -8
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/utils.js +4 -4
- package/dist/astrlabe/utils.mjs +1 -1
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-GWLWSE2C.mjs → chunk-7L2ASZLV.mjs} +543 -4
- package/dist/chunk-7L2ASZLV.mjs.map +1 -0
- package/dist/{chunk-PWBWP5FJ.js → chunk-C7BI5LQ6.js} +7 -2
- package/dist/chunk-C7BI5LQ6.js.map +1 -0
- package/dist/{chunk-PEBQWL6R.mjs → chunk-ESC5OVLF.mjs} +23 -5
- package/dist/chunk-ESC5OVLF.mjs.map +1 -0
- package/dist/{chunk-7LCEP4X5.js → chunk-G77XRUWZ.js} +79 -61
- package/dist/chunk-G77XRUWZ.js.map +1 -0
- package/dist/{chunk-5N6QYUAA.js → chunk-JGVH3R46.js} +542 -2
- package/dist/chunk-JGVH3R46.js.map +1 -0
- package/dist/{chunk-TLPPVL3W.mjs → chunk-WNCPAWLC.mjs} +7 -2
- package/dist/chunk-WNCPAWLC.mjs.map +1 -0
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +720 -716
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-5N6QYUAA.js.map +0 -1
- package/dist/chunk-7LCEP4X5.js.map +0 -1
- package/dist/chunk-GWLWSE2C.mjs.map +0 -1
- package/dist/chunk-PEBQWL6R.mjs.map +0 -1
- package/dist/chunk-PWBWP5FJ.js.map +0 -1
- package/dist/chunk-TLPPVL3W.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkJGVH3R46_js = require('./chunk-JGVH3R46.js');
|
|
5
5
|
var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
|
|
6
6
|
var chunkP4YYEM4B_js = require('./chunk-P4YYEM4B.js');
|
|
7
|
-
var
|
|
7
|
+
var chunkC7BI5LQ6_js = require('./chunk-C7BI5LQ6.js');
|
|
8
8
|
var react = require('react');
|
|
9
9
|
var react$1 = require('@xyflow/react');
|
|
10
10
|
require('@xyflow/react/dist/style.css');
|
|
@@ -364,6 +364,7 @@ var LOGIC_NODE_GRADIENTS = {
|
|
|
364
364
|
entity: "from-blue-400 to-cyan-500",
|
|
365
365
|
datasource: "from-cyan-500 to-blue-600",
|
|
366
366
|
model_provider: "from-slate-500 to-gray-600",
|
|
367
|
+
dashboard_output: "from-fuchsia-500 to-pink-600",
|
|
367
368
|
group: "from-slate-400 to-gray-500"
|
|
368
369
|
};
|
|
369
370
|
var LOGIC_NODE_BADGE_COLORS = {
|
|
@@ -387,6 +388,7 @@ var LOGIC_NODE_BADGE_COLORS = {
|
|
|
387
388
|
entity: "bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300",
|
|
388
389
|
datasource: "bg-cyan-100 text-cyan-700 dark:bg-cyan-500/20 dark:text-cyan-300",
|
|
389
390
|
model_provider: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300",
|
|
391
|
+
dashboard_output: "bg-fuchsia-100 text-fuchsia-700 dark:bg-fuchsia-500/20 dark:text-fuchsia-300",
|
|
390
392
|
group: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300"
|
|
391
393
|
};
|
|
392
394
|
var LOGIC_NODE_BADGE_SOFT_COLORS = {
|
|
@@ -410,6 +412,7 @@ var LOGIC_NODE_BADGE_SOFT_COLORS = {
|
|
|
410
412
|
entity: "bg-blue-50 text-blue-600 dark:bg-blue-500/20 dark:text-blue-400",
|
|
411
413
|
datasource: "bg-cyan-50 text-cyan-600 dark:bg-cyan-500/20 dark:text-cyan-400",
|
|
412
414
|
model_provider: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400",
|
|
415
|
+
dashboard_output: "bg-fuchsia-50 text-fuchsia-600 dark:bg-fuchsia-500/20 dark:text-fuchsia-400",
|
|
413
416
|
group: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400"
|
|
414
417
|
};
|
|
415
418
|
var LOGIC_ICON_MAP = {
|
|
@@ -433,6 +436,7 @@ var LOGIC_ICON_MAP = {
|
|
|
433
436
|
entity: outline.CircleStackIcon,
|
|
434
437
|
datasource: outline.ServerStackIcon,
|
|
435
438
|
model_provider: outline.KeyIcon,
|
|
439
|
+
dashboard_output: outline.ChartBarIcon,
|
|
436
440
|
group: outline.RectangleGroupIcon
|
|
437
441
|
};
|
|
438
442
|
var NODE_SELECTED_CLASS = "node-card-selected";
|
|
@@ -1620,7 +1624,7 @@ function DatasourceNodeConfigForm({
|
|
|
1620
1624
|
}
|
|
1621
1625
|
const logo = getDatasourceLogo(selectedDatasourceId, selectedDatasource?.dialect);
|
|
1622
1626
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1623
|
-
|
|
1627
|
+
chunkJGVH3R46_js.GlassModal,
|
|
1624
1628
|
{
|
|
1625
1629
|
open,
|
|
1626
1630
|
onClose: onCancel,
|
|
@@ -1635,8 +1639,8 @@ function DatasourceNodeConfigForm({
|
|
|
1635
1639
|
onSectionChange: setActiveSectionId
|
|
1636
1640
|
},
|
|
1637
1641
|
footer: readOnly ? void 0 : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2 px-6 py-3", children: [
|
|
1638
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1639
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1642
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJGVH3R46_js.Button, { outline: true, onClick: onCancel, children: t("cancel") }),
|
|
1643
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJGVH3R46_js.Button, { color: "cyan", onClick: handleSave, disabled: !canSave, children: t("save") })
|
|
1640
1644
|
] }),
|
|
1641
1645
|
children: renderSection()
|
|
1642
1646
|
}
|
|
@@ -2034,7 +2038,7 @@ var AgentFlowNode = react.memo(function AgentFlowNode2({ id, data, selected }) {
|
|
|
2034
2038
|
/* @__PURE__ */ jsxRuntime.jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
2035
2039
|
/* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: "rounded-full bg-indigo-100 px-2 py-0.5 text-[10px] font-semibold text-indigo-700 dark:bg-indigo-500/20 dark:text-indigo-300", children: "Agent" }),
|
|
2036
2040
|
(() => {
|
|
2037
|
-
const tier =
|
|
2041
|
+
const tier = chunkC7BI5LQ6_js.getAgentTier(Number(data.agent.elo ?? 0));
|
|
2038
2042
|
return /* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: `rounded-full px-2 py-0.5 text-[10px] font-bold ${tier.pillColor}`, children: tier.key });
|
|
2039
2043
|
})(),
|
|
2040
2044
|
/* @__PURE__ */ jsxRuntime.jsxs(NodeCardBadge, { className: `inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium ${frameworkMeta.badgeColor}`, children: [
|
|
@@ -2143,7 +2147,7 @@ var AgentToolFlowNode = react.memo(function AgentToolFlowNode2({ id, data, selec
|
|
|
2143
2147
|
event.stopPropagation();
|
|
2144
2148
|
},
|
|
2145
2149
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2146
|
-
|
|
2150
|
+
chunkJGVH3R46_js.ToggleSwitch,
|
|
2147
2151
|
{
|
|
2148
2152
|
checked: Boolean(agentTool.enabled),
|
|
2149
2153
|
onChange: () => data.onToggle?.(agentTool),
|
|
@@ -2251,7 +2255,7 @@ var ToolFlowNode = react.memo(function ToolFlowNode2({ id, data, selected }) {
|
|
|
2251
2255
|
event.preventDefault();
|
|
2252
2256
|
},
|
|
2253
2257
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2254
|
-
|
|
2258
|
+
chunkJGVH3R46_js.ToggleSwitch,
|
|
2255
2259
|
{
|
|
2256
2260
|
checked: Boolean(tool.enabled),
|
|
2257
2261
|
onChange: () => onToggle(tool),
|
|
@@ -2403,7 +2407,7 @@ var RuleFlowNode = react.memo(function RuleFlowNode2({ id, data, selected }) {
|
|
|
2403
2407
|
event.preventDefault();
|
|
2404
2408
|
},
|
|
2405
2409
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2406
|
-
|
|
2410
|
+
chunkJGVH3R46_js.ToggleSwitch,
|
|
2407
2411
|
{
|
|
2408
2412
|
checked: Boolean(rule.enabled),
|
|
2409
2413
|
onChange: () => onToggle(rule),
|
|
@@ -3401,7 +3405,7 @@ var DatasourceFlowNode = react.memo(function DatasourceFlowNode2({ id, data, sel
|
|
|
3401
3405
|
event.preventDefault();
|
|
3402
3406
|
},
|
|
3403
3407
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3404
|
-
|
|
3408
|
+
chunkJGVH3R46_js.ToggleSwitch,
|
|
3405
3409
|
{
|
|
3406
3410
|
checked: true,
|
|
3407
3411
|
onChange: () => {
|
|
@@ -3729,8 +3733,8 @@ function ConfigFormActions({
|
|
|
3729
3733
|
saveDisabled = false
|
|
3730
3734
|
}) {
|
|
3731
3735
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2 border-t border-gray-200 pt-4 dark:border-gray-700", children: [
|
|
3732
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3733
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3736
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJGVH3R46_js.Button, { type: "button", outline: true, onClick: onCancel, children: cancelLabel }),
|
|
3737
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJGVH3R46_js.Button, { type: "button", onClick: onSave, disabled: saveDisabled, children: saveLabel })
|
|
3734
3738
|
] });
|
|
3735
3739
|
}
|
|
3736
3740
|
var COLOR_CLASSES = {
|
|
@@ -3977,7 +3981,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3977
3981
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-3 flex items-center justify-between", children: [
|
|
3978
3982
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: t("conditionsLabel") }),
|
|
3979
3983
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3980
|
-
|
|
3984
|
+
chunkJGVH3R46_js.Button,
|
|
3981
3985
|
{
|
|
3982
3986
|
type: "button",
|
|
3983
3987
|
onClick: handleAddCondition,
|
|
@@ -3988,7 +3992,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3988
3992
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: conditions.map((condition, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-2 rounded-lg border border-gray-200 bg-gray-50 p-3 dark:border-gray-700 dark:bg-gray-800/50", children: [
|
|
3989
3993
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid flex-1 grid-cols-3 gap-2", children: [
|
|
3990
3994
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3991
|
-
|
|
3995
|
+
chunkJGVH3R46_js.FormInput,
|
|
3992
3996
|
{
|
|
3993
3997
|
type: "text",
|
|
3994
3998
|
label: t("variableLabel"),
|
|
@@ -3999,7 +4003,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3999
4003
|
}
|
|
4000
4004
|
) }),
|
|
4001
4005
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4002
|
-
|
|
4006
|
+
chunkJGVH3R46_js.FormSelect,
|
|
4003
4007
|
{
|
|
4004
4008
|
label: t("operatorLabel"),
|
|
4005
4009
|
value: condition.operator,
|
|
@@ -4009,7 +4013,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4009
4013
|
}
|
|
4010
4014
|
) }),
|
|
4011
4015
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4012
|
-
|
|
4016
|
+
chunkJGVH3R46_js.FormInput,
|
|
4013
4017
|
{
|
|
4014
4018
|
type: "text",
|
|
4015
4019
|
label: t("valueLabel"),
|
|
@@ -4021,7 +4025,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4021
4025
|
) })
|
|
4022
4026
|
] }),
|
|
4023
4027
|
conditions.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4024
|
-
|
|
4028
|
+
chunkJGVH3R46_js.IconButton,
|
|
4025
4029
|
{
|
|
4026
4030
|
onClick: () => handleRemoveCondition(index),
|
|
4027
4031
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.TrashIcon, { className: "h-4 w-4" }),
|
|
@@ -4153,6 +4157,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4153
4157
|
const [headerEntries, setHeaderEntries] = react.useState(headersToEntries(config.headers));
|
|
4154
4158
|
const [body, setBody] = react.useState(config.body ?? "");
|
|
4155
4159
|
const [timeoutMs, setTimeoutMs] = react.useState(config.timeoutMs);
|
|
4160
|
+
const [parseResponse, setParseResponse] = react.useState(config.parseResponse ?? "json");
|
|
4156
4161
|
const handleAddHeader = () => {
|
|
4157
4162
|
setHeaderEntries([...headerEntries, { key: "", value: "" }]);
|
|
4158
4163
|
};
|
|
@@ -4171,12 +4176,13 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4171
4176
|
url,
|
|
4172
4177
|
headers: entriesToHeaders(headerEntries),
|
|
4173
4178
|
body: method === "GET" ? "" : body,
|
|
4174
|
-
timeoutMs
|
|
4179
|
+
timeoutMs,
|
|
4180
|
+
parseResponse
|
|
4175
4181
|
});
|
|
4176
4182
|
};
|
|
4177
4183
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4178
4184
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4179
|
-
|
|
4185
|
+
chunkJGVH3R46_js.FormSelect,
|
|
4180
4186
|
{
|
|
4181
4187
|
label: t("methodLabel"),
|
|
4182
4188
|
value: method,
|
|
@@ -4185,7 +4191,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4185
4191
|
}
|
|
4186
4192
|
),
|
|
4187
4193
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4188
|
-
|
|
4194
|
+
chunkJGVH3R46_js.FormInput,
|
|
4189
4195
|
{
|
|
4190
4196
|
type: "text",
|
|
4191
4197
|
label: t("urlLabel"),
|
|
@@ -4198,7 +4204,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4198
4204
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
4199
4205
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: t("headersLabel") }),
|
|
4200
4206
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4201
|
-
|
|
4207
|
+
chunkJGVH3R46_js.Button,
|
|
4202
4208
|
{
|
|
4203
4209
|
type: "button",
|
|
4204
4210
|
onClick: handleAddHeader,
|
|
@@ -4208,7 +4214,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4208
4214
|
] }),
|
|
4209
4215
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: headerEntries.map((entry, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4210
4216
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4211
|
-
|
|
4217
|
+
chunkJGVH3R46_js.FormInput,
|
|
4212
4218
|
{
|
|
4213
4219
|
type: "text",
|
|
4214
4220
|
value: entry.key,
|
|
@@ -4218,7 +4224,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4218
4224
|
}
|
|
4219
4225
|
),
|
|
4220
4226
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4221
|
-
|
|
4227
|
+
chunkJGVH3R46_js.FormInput,
|
|
4222
4228
|
{
|
|
4223
4229
|
type: "text",
|
|
4224
4230
|
value: entry.value,
|
|
@@ -4228,7 +4234,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4228
4234
|
}
|
|
4229
4235
|
),
|
|
4230
4236
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4231
|
-
|
|
4237
|
+
chunkJGVH3R46_js.IconButton,
|
|
4232
4238
|
{
|
|
4233
4239
|
onClick: () => handleRemoveHeader(index),
|
|
4234
4240
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.TrashIcon, { className: "h-4 w-4" }),
|
|
@@ -4240,7 +4246,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4240
4246
|
] }, index)) })
|
|
4241
4247
|
] }),
|
|
4242
4248
|
method !== "GET" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4243
|
-
|
|
4249
|
+
chunkJGVH3R46_js.FormTextarea,
|
|
4244
4250
|
{
|
|
4245
4251
|
label: t("bodyLabel"),
|
|
4246
4252
|
value: body,
|
|
@@ -4251,7 +4257,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4251
4257
|
}
|
|
4252
4258
|
),
|
|
4253
4259
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4254
|
-
|
|
4260
|
+
chunkJGVH3R46_js.FormInput,
|
|
4255
4261
|
{
|
|
4256
4262
|
type: "number",
|
|
4257
4263
|
label: t("timeoutLabel"),
|
|
@@ -4262,6 +4268,18 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4262
4268
|
step: 1e3
|
|
4263
4269
|
}
|
|
4264
4270
|
),
|
|
4271
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4272
|
+
chunkJGVH3R46_js.FormSelect,
|
|
4273
|
+
{
|
|
4274
|
+
label: t("parseResponseLabel"),
|
|
4275
|
+
value: parseResponse,
|
|
4276
|
+
onValueChange: (value) => setParseResponse(value),
|
|
4277
|
+
options: [
|
|
4278
|
+
{ value: "json", label: t("parseResponseJson") },
|
|
4279
|
+
{ value: "text", label: t("parseResponseText") }
|
|
4280
|
+
]
|
|
4281
|
+
}
|
|
4282
|
+
),
|
|
4265
4283
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4266
4284
|
ConfigFormActions,
|
|
4267
4285
|
{
|
|
@@ -4282,7 +4300,7 @@ function TemplateTransformNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4282
4300
|
};
|
|
4283
4301
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4284
4302
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4285
|
-
|
|
4303
|
+
chunkJGVH3R46_js.FormTextarea,
|
|
4286
4304
|
{
|
|
4287
4305
|
label: t("templateLabel"),
|
|
4288
4306
|
value: template,
|
|
@@ -4293,7 +4311,7 @@ function TemplateTransformNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4293
4311
|
}
|
|
4294
4312
|
),
|
|
4295
4313
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4296
|
-
|
|
4314
|
+
chunkJGVH3R46_js.FormInput,
|
|
4297
4315
|
{
|
|
4298
4316
|
type: "text",
|
|
4299
4317
|
label: t("outputVariableLabel"),
|
|
@@ -4322,7 +4340,7 @@ function IterationNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4322
4340
|
};
|
|
4323
4341
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4324
4342
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4325
|
-
|
|
4343
|
+
chunkJGVH3R46_js.FormInput,
|
|
4326
4344
|
{
|
|
4327
4345
|
type: "text",
|
|
4328
4346
|
label: t("iteratorVariableLabel"),
|
|
@@ -4332,7 +4350,7 @@ function IterationNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4332
4350
|
}
|
|
4333
4351
|
),
|
|
4334
4352
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4335
|
-
|
|
4353
|
+
chunkJGVH3R46_js.FormInput,
|
|
4336
4354
|
{
|
|
4337
4355
|
type: "number",
|
|
4338
4356
|
label: t("maxIterationsLabel"),
|
|
@@ -4363,7 +4381,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4363
4381
|
};
|
|
4364
4382
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4365
4383
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4366
|
-
|
|
4384
|
+
chunkJGVH3R46_js.FormInput,
|
|
4367
4385
|
{
|
|
4368
4386
|
type: "text",
|
|
4369
4387
|
label: t("sourceIdLabel"),
|
|
@@ -4373,7 +4391,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4373
4391
|
}
|
|
4374
4392
|
),
|
|
4375
4393
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4376
|
-
|
|
4394
|
+
chunkJGVH3R46_js.FormInput,
|
|
4377
4395
|
{
|
|
4378
4396
|
type: "number",
|
|
4379
4397
|
label: t("topKLabel"),
|
|
@@ -4384,7 +4402,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4384
4402
|
}
|
|
4385
4403
|
),
|
|
4386
4404
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4387
|
-
|
|
4405
|
+
chunkJGVH3R46_js.FormInput,
|
|
4388
4406
|
{
|
|
4389
4407
|
type: "number",
|
|
4390
4408
|
label: t("similarityThresholdLabel"),
|
|
@@ -4415,7 +4433,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4415
4433
|
};
|
|
4416
4434
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4417
4435
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4418
|
-
|
|
4436
|
+
chunkJGVH3R46_js.FormTextarea,
|
|
4419
4437
|
{
|
|
4420
4438
|
label: t("outputTemplateLabel"),
|
|
4421
4439
|
hint: t("outputTemplateHelp"),
|
|
@@ -4849,7 +4867,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4849
4867
|
}
|
|
4850
4868
|
),
|
|
4851
4869
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4852
|
-
|
|
4870
|
+
chunkJGVH3R46_js.FormInput,
|
|
4853
4871
|
{
|
|
4854
4872
|
type: "text",
|
|
4855
4873
|
label: t("outputVariableLabel"),
|
|
@@ -4859,7 +4877,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4859
4877
|
}
|
|
4860
4878
|
),
|
|
4861
4879
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4862
|
-
|
|
4880
|
+
chunkJGVH3R46_js.FormSelect,
|
|
4863
4881
|
{
|
|
4864
4882
|
label: t("aggregationModeLabel"),
|
|
4865
4883
|
value: aggregationMode,
|
|
@@ -4892,7 +4910,7 @@ function DocumentExtractorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4892
4910
|
};
|
|
4893
4911
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4894
4912
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4895
|
-
|
|
4913
|
+
chunkJGVH3R46_js.FormSelect,
|
|
4896
4914
|
{
|
|
4897
4915
|
label: t("extractionModeLabel"),
|
|
4898
4916
|
value: extractionMode,
|
|
@@ -4901,7 +4919,7 @@ function DocumentExtractorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4901
4919
|
}
|
|
4902
4920
|
),
|
|
4903
4921
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4904
|
-
|
|
4922
|
+
chunkJGVH3R46_js.FormInput,
|
|
4905
4923
|
{
|
|
4906
4924
|
type: "text",
|
|
4907
4925
|
label: t("outputVariableLabel"),
|
|
@@ -5078,7 +5096,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5078
5096
|
};
|
|
5079
5097
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
5080
5098
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5081
|
-
|
|
5099
|
+
chunkJGVH3R46_js.FormInput,
|
|
5082
5100
|
{
|
|
5083
5101
|
type: "text",
|
|
5084
5102
|
label: t("iteratorVariableLabel"),
|
|
@@ -5088,7 +5106,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5088
5106
|
}
|
|
5089
5107
|
),
|
|
5090
5108
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5091
|
-
|
|
5109
|
+
chunkJGVH3R46_js.FormInput,
|
|
5092
5110
|
{
|
|
5093
5111
|
type: "text",
|
|
5094
5112
|
label: t("itemVariableLabel"),
|
|
@@ -5098,7 +5116,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5098
5116
|
}
|
|
5099
5117
|
),
|
|
5100
5118
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5101
|
-
|
|
5119
|
+
chunkJGVH3R46_js.FormInput,
|
|
5102
5120
|
{
|
|
5103
5121
|
type: "text",
|
|
5104
5122
|
label: t("indexVariableLabel"),
|
|
@@ -5370,7 +5388,7 @@ function GroupNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5370
5388
|
};
|
|
5371
5389
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
5372
5390
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5373
|
-
|
|
5391
|
+
chunkJGVH3R46_js.FormInput,
|
|
5374
5392
|
{
|
|
5375
5393
|
type: "text",
|
|
5376
5394
|
label: translations("labelField"),
|
|
@@ -5380,7 +5398,7 @@ function GroupNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5380
5398
|
}
|
|
5381
5399
|
),
|
|
5382
5400
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5383
|
-
|
|
5401
|
+
chunkJGVH3R46_js.FormTextarea,
|
|
5384
5402
|
{
|
|
5385
5403
|
label: translations("descriptionField"),
|
|
5386
5404
|
value: description,
|
|
@@ -5538,7 +5556,7 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5538
5556
|
};
|
|
5539
5557
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
5540
5558
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5541
|
-
|
|
5559
|
+
chunkJGVH3R46_js.FormInput,
|
|
5542
5560
|
{
|
|
5543
5561
|
type: "text",
|
|
5544
5562
|
label: t("nameLabel"),
|
|
@@ -5548,7 +5566,7 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5548
5566
|
}
|
|
5549
5567
|
),
|
|
5550
5568
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5551
|
-
|
|
5569
|
+
chunkJGVH3R46_js.FormSelect,
|
|
5552
5570
|
{
|
|
5553
5571
|
label: t("providerTypeLabel"),
|
|
5554
5572
|
value: providerType,
|
|
@@ -5557,7 +5575,7 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5557
5575
|
}
|
|
5558
5576
|
),
|
|
5559
5577
|
showRegion && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5560
|
-
|
|
5578
|
+
chunkJGVH3R46_js.FormSelect,
|
|
5561
5579
|
{
|
|
5562
5580
|
label: t("regionLabel"),
|
|
5563
5581
|
value: region,
|
|
@@ -5566,7 +5584,7 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5566
5584
|
}
|
|
5567
5585
|
),
|
|
5568
5586
|
showEndpoint && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5569
|
-
|
|
5587
|
+
chunkJGVH3R46_js.FormInput,
|
|
5570
5588
|
{
|
|
5571
5589
|
type: "text",
|
|
5572
5590
|
label: t("endpointLabel"),
|
|
@@ -5576,7 +5594,7 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5576
5594
|
}
|
|
5577
5595
|
),
|
|
5578
5596
|
showApiKey && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5579
|
-
|
|
5597
|
+
chunkJGVH3R46_js.FormInput,
|
|
5580
5598
|
{
|
|
5581
5599
|
type: "password",
|
|
5582
5600
|
label: t("apiKeyLabel"),
|
|
@@ -5586,7 +5604,7 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5586
5604
|
}
|
|
5587
5605
|
),
|
|
5588
5606
|
showCredentialRef && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5589
|
-
|
|
5607
|
+
chunkJGVH3R46_js.FormInput,
|
|
5590
5608
|
{
|
|
5591
5609
|
type: "text",
|
|
5592
5610
|
label: t("credentialRefLabel"),
|
|
@@ -5718,7 +5736,7 @@ function LogicNodeModal({ onSave, entities = [], datasources = [], onLoadTables,
|
|
|
5718
5736
|
}
|
|
5719
5737
|
};
|
|
5720
5738
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5721
|
-
|
|
5739
|
+
chunkJGVH3R46_js.GlassModal,
|
|
5722
5740
|
{
|
|
5723
5741
|
open,
|
|
5724
5742
|
onClose: closeModal,
|
|
@@ -5778,7 +5796,7 @@ function NodeContextMenu({ position, targetId, onClose, onEdit, onDuplicate, onC
|
|
|
5778
5796
|
}
|
|
5779
5797
|
];
|
|
5780
5798
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5781
|
-
|
|
5799
|
+
chunkJGVH3R46_js.ContextMenu,
|
|
5782
5800
|
{
|
|
5783
5801
|
position,
|
|
5784
5802
|
onClose,
|
|
@@ -5835,7 +5853,7 @@ function PanelContextMenu({ position, onClose, onPaste, onSelectAll, onFitView,
|
|
|
5835
5853
|
}
|
|
5836
5854
|
];
|
|
5837
5855
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5838
|
-
|
|
5856
|
+
chunkJGVH3R46_js.ContextMenu,
|
|
5839
5857
|
{
|
|
5840
5858
|
position,
|
|
5841
5859
|
onClose,
|
|
@@ -5982,7 +6000,7 @@ function SelectionContextMenu({
|
|
|
5982
6000
|
}
|
|
5983
6001
|
];
|
|
5984
6002
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5985
|
-
|
|
6003
|
+
chunkJGVH3R46_js.ContextMenu,
|
|
5986
6004
|
{
|
|
5987
6005
|
position,
|
|
5988
6006
|
onClose,
|
|
@@ -6448,7 +6466,7 @@ function WorkflowCanvasInner({
|
|
|
6448
6466
|
};
|
|
6449
6467
|
}
|
|
6450
6468
|
if (isLogicNodeType(savedNode.type)) {
|
|
6451
|
-
const config = savedNode.data.config ??
|
|
6469
|
+
const config = savedNode.data.config ?? chunkC7BI5LQ6_js.createDefaultLogicNodeConfig(savedNode.type);
|
|
6452
6470
|
if (config) {
|
|
6453
6471
|
const baseNode = {
|
|
6454
6472
|
id: savedNode.id,
|
|
@@ -6617,7 +6635,7 @@ function WorkflowCanvasInner({
|
|
|
6617
6635
|
}
|
|
6618
6636
|
storeTakeSnapshot();
|
|
6619
6637
|
const isTB = direction === "TB";
|
|
6620
|
-
const repositionedNodes =
|
|
6638
|
+
const repositionedNodes = chunkC7BI5LQ6_js.applyDagreLayout(nodes, edges, direction).map((node) => ({
|
|
6621
6639
|
...node,
|
|
6622
6640
|
sourcePosition: isTB ? react$1.Position.Bottom : react$1.Position.Right,
|
|
6623
6641
|
targetPosition: isTB ? react$1.Position.Top : react$1.Position.Left
|
|
@@ -6746,7 +6764,7 @@ function WorkflowCanvasInner({
|
|
|
6746
6764
|
}, [storePaste]);
|
|
6747
6765
|
const contextMenuAddNote = react.useCallback((flowPosition) => {
|
|
6748
6766
|
storeTakeSnapshot();
|
|
6749
|
-
const noteConfig =
|
|
6767
|
+
const noteConfig = chunkC7BI5LQ6_js.createDefaultLogicNodeConfig("note");
|
|
6750
6768
|
const noteNode = {
|
|
6751
6769
|
id: crypto.randomUUID(),
|
|
6752
6770
|
type: "note",
|
|
@@ -7257,7 +7275,7 @@ function WorkflowCanvasInner({
|
|
|
7257
7275
|
};
|
|
7258
7276
|
setNodes((currentNodes) => [...currentNodes, newNode]);
|
|
7259
7277
|
} else if (nodeType === "group") {
|
|
7260
|
-
const groupConfig = configRaw ? JSON.parse(configRaw) :
|
|
7278
|
+
const groupConfig = configRaw ? JSON.parse(configRaw) : chunkC7BI5LQ6_js.createDefaultLogicNodeConfig("group");
|
|
7261
7279
|
if (!groupConfig) return;
|
|
7262
7280
|
const newNode = {
|
|
7263
7281
|
id: newNodeId,
|
|
@@ -7274,7 +7292,7 @@ function WorkflowCanvasInner({
|
|
|
7274
7292
|
};
|
|
7275
7293
|
setNodes((currentNodes) => [...currentNodes, newNode]);
|
|
7276
7294
|
} else if (isLogicNodeType(nodeType)) {
|
|
7277
|
-
const config = configRaw ? JSON.parse(configRaw) :
|
|
7295
|
+
const config = configRaw ? JSON.parse(configRaw) : chunkC7BI5LQ6_js.createDefaultLogicNodeConfig(nodeType);
|
|
7278
7296
|
if (!config) return;
|
|
7279
7297
|
const newNode = {
|
|
7280
7298
|
id: newNodeId,
|
|
@@ -7391,7 +7409,7 @@ function WorkflowCanvasInner({
|
|
|
7391
7409
|
(edgeId, nodeType, position) => {
|
|
7392
7410
|
if (!isLogicNodeType(nodeType)) return;
|
|
7393
7411
|
storeTakeSnapshot();
|
|
7394
|
-
const config =
|
|
7412
|
+
const config = chunkC7BI5LQ6_js.createDefaultLogicNodeConfig(nodeType);
|
|
7395
7413
|
if (!config) return;
|
|
7396
7414
|
const newNodeId = crypto.randomUUID();
|
|
7397
7415
|
const newNode = {
|
|
@@ -7890,5 +7908,5 @@ exports.useModalStore = useModalStore;
|
|
|
7890
7908
|
exports.useWorkflowBuilderClient = useWorkflowBuilderClient;
|
|
7891
7909
|
exports.useWorkflowBuilderClientOptional = useWorkflowBuilderClientOptional;
|
|
7892
7910
|
exports.useWorkflowStore = useWorkflowStore;
|
|
7893
|
-
//# sourceMappingURL=chunk-
|
|
7894
|
-
//# sourceMappingURL=chunk-
|
|
7911
|
+
//# sourceMappingURL=chunk-G77XRUWZ.js.map
|
|
7912
|
+
//# sourceMappingURL=chunk-G77XRUWZ.js.map
|