@datatechsolutions/ui 2.11.4 → 2.11.6
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/index.d.mts +14 -14
- package/dist/astrlabe/index.d.ts +14 -14
- package/dist/astrlabe/index.js +278 -179
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +165 -63
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/workflow-canvas.d.mts +1 -1
- package/dist/astrlabe/workflow-canvas.d.ts +1 -1
- package/dist/astrlabe/workflow-canvas.js +3 -3
- package/dist/astrlabe/workflow-canvas.mjs +2 -2
- package/dist/{chunk-F6EBSQF6.mjs → chunk-46ZM5VJJ.mjs} +5 -5
- package/dist/chunk-46ZM5VJJ.mjs.map +1 -0
- package/dist/{chunk-EVX2CFNL.js → chunk-4XID6LOC.js} +5 -5
- package/dist/chunk-4XID6LOC.js.map +1 -0
- package/dist/{chunk-AZ3BXAI6.js → chunk-E7GVGD4Z.js} +64 -99
- package/dist/chunk-E7GVGD4Z.js.map +1 -0
- package/dist/{chunk-BHKBEP2Y.mjs → chunk-TM2UUOQO.mjs} +17 -51
- package/dist/chunk-TM2UUOQO.mjs.map +1 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +710 -710
- package/dist/index.mjs +1 -1
- package/dist/{workflow-canvas-D9kHlmev.d.mts → workflow-canvas-CJwGehdk.d.mts} +3 -3
- package/dist/{workflow-canvas-CQtkR4Y6.d.ts → workflow-canvas-DSm0iyof.d.ts} +3 -3
- package/package.json +1 -1
- package/dist/chunk-AZ3BXAI6.js.map +0 -1
- package/dist/chunk-BHKBEP2Y.mjs.map +0 -1
- package/dist/chunk-EVX2CFNL.js.map +0 -1
- package/dist/chunk-F6EBSQF6.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk4XID6LOC_js = require('./chunk-4XID6LOC.js');
|
|
5
5
|
var chunkP4YYEM4B_js = require('./chunk-P4YYEM4B.js');
|
|
6
6
|
var chunkPWBWP5FJ_js = require('./chunk-PWBWP5FJ.js');
|
|
7
7
|
var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
|
|
@@ -216,14 +216,14 @@ var useModalStore = zustand.create((set) => ({
|
|
|
216
216
|
subworkflowData: null,
|
|
217
217
|
logicNodeData: null,
|
|
218
218
|
pipelineSettingsData: null,
|
|
219
|
-
|
|
219
|
+
openAgentModal: (agent, models, isCreateMode = false) => set({
|
|
220
220
|
activeModal: "agent",
|
|
221
221
|
agentData: { agent, models, isCreateMode },
|
|
222
222
|
subworkflowData: null,
|
|
223
223
|
logicNodeData: null,
|
|
224
224
|
pipelineSettingsData: null
|
|
225
225
|
}),
|
|
226
|
-
|
|
226
|
+
openSubworkflowModal: (tool) => set({
|
|
227
227
|
activeModal: "subworkflow",
|
|
228
228
|
subworkflowData: { tool },
|
|
229
229
|
agentData: null,
|
|
@@ -2890,42 +2890,6 @@ var GroupFlowNode = react.memo(function GroupFlowNode2({ id, data, selected }) {
|
|
|
2890
2890
|
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-slate-500" })
|
|
2891
2891
|
] });
|
|
2892
2892
|
});
|
|
2893
|
-
var LEGACY_WIDTH_MAP = {
|
|
2894
|
-
"max-w-xl": "xl",
|
|
2895
|
-
"max-w-2xl": "2xl",
|
|
2896
|
-
"max-w-4xl": "4xl",
|
|
2897
|
-
"max-w-6xl": "6xl",
|
|
2898
|
-
"max-w-full": "full"
|
|
2899
|
-
};
|
|
2900
|
-
function WorkspaceModal({
|
|
2901
|
-
open,
|
|
2902
|
-
onClose,
|
|
2903
|
-
title,
|
|
2904
|
-
subtitle,
|
|
2905
|
-
icon,
|
|
2906
|
-
gradient = "from-gray-400 to-gray-500",
|
|
2907
|
-
maxWidth = "2xl",
|
|
2908
|
-
tabs,
|
|
2909
|
-
children
|
|
2910
|
-
}) {
|
|
2911
|
-
const resolvedSize = LEGACY_WIDTH_MAP[maxWidth] ?? maxWidth;
|
|
2912
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2913
|
-
chunkEVX2CFNL_js.GlassModalShell,
|
|
2914
|
-
{
|
|
2915
|
-
open,
|
|
2916
|
-
onClose,
|
|
2917
|
-
title,
|
|
2918
|
-
subtitle,
|
|
2919
|
-
icon,
|
|
2920
|
-
gradient,
|
|
2921
|
-
maxWidth: resolvedSize,
|
|
2922
|
-
children: [
|
|
2923
|
-
tabs,
|
|
2924
|
-
children
|
|
2925
|
-
]
|
|
2926
|
-
}
|
|
2927
|
-
);
|
|
2928
|
-
}
|
|
2929
2893
|
function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
2930
2894
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow.startNodeConfig");
|
|
2931
2895
|
const [inputVariables, setInputVariables] = react.useState([...config.inputVariables]);
|
|
@@ -2955,7 +2919,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2955
2919
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-xs text-gray-500 dark:text-gray-400", children: t("inputVariablesHelp") }),
|
|
2956
2920
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
2957
2921
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2958
|
-
|
|
2922
|
+
chunk4XID6LOC_js.Input,
|
|
2959
2923
|
{
|
|
2960
2924
|
value: newVariable,
|
|
2961
2925
|
onChange: (event) => setNewVariable(event.target.value),
|
|
@@ -2965,7 +2929,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2965
2929
|
}
|
|
2966
2930
|
),
|
|
2967
2931
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2968
|
-
|
|
2932
|
+
chunk4XID6LOC_js.Button,
|
|
2969
2933
|
{
|
|
2970
2934
|
type: "button",
|
|
2971
2935
|
onClick: handleAddVariable,
|
|
@@ -2982,7 +2946,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2982
2946
|
children: [
|
|
2983
2947
|
variable,
|
|
2984
2948
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2985
|
-
|
|
2949
|
+
chunk4XID6LOC_js.IconButton,
|
|
2986
2950
|
{
|
|
2987
2951
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
2988
2952
|
label: `Remove ${variable}`,
|
|
@@ -2999,7 +2963,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2999
2963
|
] }),
|
|
3000
2964
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2 border-t border-gray-200 pt-4 dark:border-gray-700", children: [
|
|
3001
2965
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3002
|
-
|
|
2966
|
+
chunk4XID6LOC_js.Button,
|
|
3003
2967
|
{
|
|
3004
2968
|
type: "button",
|
|
3005
2969
|
onClick: onCancel,
|
|
@@ -3009,7 +2973,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3009
2973
|
}
|
|
3010
2974
|
),
|
|
3011
2975
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3012
|
-
|
|
2976
|
+
chunk4XID6LOC_js.Button,
|
|
3013
2977
|
{
|
|
3014
2978
|
type: "button",
|
|
3015
2979
|
onClick: handleSave,
|
|
@@ -3121,8 +3085,8 @@ function ConfigFormActions({
|
|
|
3121
3085
|
saveDisabled = false
|
|
3122
3086
|
}) {
|
|
3123
3087
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2 border-t border-gray-200 pt-4 dark:border-gray-700", children: [
|
|
3124
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3125
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3088
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4XID6LOC_js.Button, { type: "button", outline: true, onClick: onCancel, children: cancelLabel }),
|
|
3089
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4XID6LOC_js.Button, { type: "button", onClick: onSave, disabled: saveDisabled, children: saveLabel })
|
|
3126
3090
|
] });
|
|
3127
3091
|
}
|
|
3128
3092
|
var OPERATOR_OPTIONS = [
|
|
@@ -3171,7 +3135,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3171
3135
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-3 flex items-center justify-between", children: [
|
|
3172
3136
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: t("conditionsLabel") }),
|
|
3173
3137
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3174
|
-
|
|
3138
|
+
chunk4XID6LOC_js.Button,
|
|
3175
3139
|
{
|
|
3176
3140
|
type: "button",
|
|
3177
3141
|
onClick: handleAddCondition,
|
|
@@ -3182,7 +3146,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3182
3146
|
/* @__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: [
|
|
3183
3147
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid flex-1 grid-cols-3 gap-2", children: [
|
|
3184
3148
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3185
|
-
|
|
3149
|
+
chunk4XID6LOC_js.FormInput,
|
|
3186
3150
|
{
|
|
3187
3151
|
type: "text",
|
|
3188
3152
|
label: t("variableLabel"),
|
|
@@ -3193,7 +3157,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3193
3157
|
}
|
|
3194
3158
|
) }),
|
|
3195
3159
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3196
|
-
|
|
3160
|
+
chunk4XID6LOC_js.FormSelect,
|
|
3197
3161
|
{
|
|
3198
3162
|
label: t("operatorLabel"),
|
|
3199
3163
|
value: condition.operator,
|
|
@@ -3203,7 +3167,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3203
3167
|
}
|
|
3204
3168
|
) }),
|
|
3205
3169
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3206
|
-
|
|
3170
|
+
chunk4XID6LOC_js.FormInput,
|
|
3207
3171
|
{
|
|
3208
3172
|
type: "text",
|
|
3209
3173
|
label: t("valueLabel"),
|
|
@@ -3215,7 +3179,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3215
3179
|
) })
|
|
3216
3180
|
] }),
|
|
3217
3181
|
conditions.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3218
|
-
|
|
3182
|
+
chunk4XID6LOC_js.IconButton,
|
|
3219
3183
|
{
|
|
3220
3184
|
onClick: () => handleRemoveCondition(index),
|
|
3221
3185
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.TrashIcon, { className: "h-4 w-4" }),
|
|
@@ -3370,7 +3334,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3370
3334
|
};
|
|
3371
3335
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3372
3336
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3373
|
-
|
|
3337
|
+
chunk4XID6LOC_js.FormSelect,
|
|
3374
3338
|
{
|
|
3375
3339
|
label: t("methodLabel"),
|
|
3376
3340
|
value: method,
|
|
@@ -3379,7 +3343,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3379
3343
|
}
|
|
3380
3344
|
),
|
|
3381
3345
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3382
|
-
|
|
3346
|
+
chunk4XID6LOC_js.FormInput,
|
|
3383
3347
|
{
|
|
3384
3348
|
type: "text",
|
|
3385
3349
|
label: t("urlLabel"),
|
|
@@ -3392,7 +3356,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3392
3356
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
3393
3357
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: t("headersLabel") }),
|
|
3394
3358
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3395
|
-
|
|
3359
|
+
chunk4XID6LOC_js.Button,
|
|
3396
3360
|
{
|
|
3397
3361
|
type: "button",
|
|
3398
3362
|
onClick: handleAddHeader,
|
|
@@ -3402,7 +3366,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3402
3366
|
] }),
|
|
3403
3367
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: headerEntries.map((entry, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
3404
3368
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3405
|
-
|
|
3369
|
+
chunk4XID6LOC_js.FormInput,
|
|
3406
3370
|
{
|
|
3407
3371
|
type: "text",
|
|
3408
3372
|
value: entry.key,
|
|
@@ -3412,7 +3376,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3412
3376
|
}
|
|
3413
3377
|
),
|
|
3414
3378
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3415
|
-
|
|
3379
|
+
chunk4XID6LOC_js.FormInput,
|
|
3416
3380
|
{
|
|
3417
3381
|
type: "text",
|
|
3418
3382
|
value: entry.value,
|
|
@@ -3422,7 +3386,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3422
3386
|
}
|
|
3423
3387
|
),
|
|
3424
3388
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3425
|
-
|
|
3389
|
+
chunk4XID6LOC_js.IconButton,
|
|
3426
3390
|
{
|
|
3427
3391
|
onClick: () => handleRemoveHeader(index),
|
|
3428
3392
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.TrashIcon, { className: "h-4 w-4" }),
|
|
@@ -3434,7 +3398,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3434
3398
|
] }, index)) })
|
|
3435
3399
|
] }),
|
|
3436
3400
|
method !== "GET" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3437
|
-
|
|
3401
|
+
chunk4XID6LOC_js.FormTextarea,
|
|
3438
3402
|
{
|
|
3439
3403
|
label: t("bodyLabel"),
|
|
3440
3404
|
value: body,
|
|
@@ -3445,7 +3409,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3445
3409
|
}
|
|
3446
3410
|
),
|
|
3447
3411
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3448
|
-
|
|
3412
|
+
chunk4XID6LOC_js.FormInput,
|
|
3449
3413
|
{
|
|
3450
3414
|
type: "number",
|
|
3451
3415
|
label: t("timeoutLabel"),
|
|
@@ -3476,7 +3440,7 @@ function TemplateTransformNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3476
3440
|
};
|
|
3477
3441
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3478
3442
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3479
|
-
|
|
3443
|
+
chunk4XID6LOC_js.FormTextarea,
|
|
3480
3444
|
{
|
|
3481
3445
|
label: t("templateLabel"),
|
|
3482
3446
|
value: template,
|
|
@@ -3487,7 +3451,7 @@ function TemplateTransformNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3487
3451
|
}
|
|
3488
3452
|
),
|
|
3489
3453
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3490
|
-
|
|
3454
|
+
chunk4XID6LOC_js.FormInput,
|
|
3491
3455
|
{
|
|
3492
3456
|
type: "text",
|
|
3493
3457
|
label: t("outputVariableLabel"),
|
|
@@ -3516,7 +3480,7 @@ function IterationNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3516
3480
|
};
|
|
3517
3481
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3518
3482
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3519
|
-
|
|
3483
|
+
chunk4XID6LOC_js.FormInput,
|
|
3520
3484
|
{
|
|
3521
3485
|
type: "text",
|
|
3522
3486
|
label: t("iteratorVariableLabel"),
|
|
@@ -3526,7 +3490,7 @@ function IterationNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3526
3490
|
}
|
|
3527
3491
|
),
|
|
3528
3492
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3529
|
-
|
|
3493
|
+
chunk4XID6LOC_js.FormInput,
|
|
3530
3494
|
{
|
|
3531
3495
|
type: "number",
|
|
3532
3496
|
label: t("maxIterationsLabel"),
|
|
@@ -3557,7 +3521,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3557
3521
|
};
|
|
3558
3522
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3559
3523
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3560
|
-
|
|
3524
|
+
chunk4XID6LOC_js.FormInput,
|
|
3561
3525
|
{
|
|
3562
3526
|
type: "text",
|
|
3563
3527
|
label: t("sourceIdLabel"),
|
|
@@ -3567,7 +3531,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3567
3531
|
}
|
|
3568
3532
|
),
|
|
3569
3533
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3570
|
-
|
|
3534
|
+
chunk4XID6LOC_js.FormInput,
|
|
3571
3535
|
{
|
|
3572
3536
|
type: "number",
|
|
3573
3537
|
label: t("topKLabel"),
|
|
@@ -3578,7 +3542,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3578
3542
|
}
|
|
3579
3543
|
),
|
|
3580
3544
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3581
|
-
|
|
3545
|
+
chunk4XID6LOC_js.FormInput,
|
|
3582
3546
|
{
|
|
3583
3547
|
type: "number",
|
|
3584
3548
|
label: t("similarityThresholdLabel"),
|
|
@@ -3626,7 +3590,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3626
3590
|
};
|
|
3627
3591
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3628
3592
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3629
|
-
|
|
3593
|
+
chunk4XID6LOC_js.FormTextarea,
|
|
3630
3594
|
{
|
|
3631
3595
|
label: t("outputTemplateLabel"),
|
|
3632
3596
|
hint: t("outputTemplateHelp"),
|
|
@@ -3641,7 +3605,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3641
3605
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-1 block text-sm font-medium text-gray-700 dark:text-gray-300", children: t("outputVariablesLabel") }),
|
|
3642
3606
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
3643
3607
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3644
|
-
|
|
3608
|
+
chunk4XID6LOC_js.FormInput,
|
|
3645
3609
|
{
|
|
3646
3610
|
type: "text",
|
|
3647
3611
|
value: newVariable,
|
|
@@ -3652,7 +3616,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3652
3616
|
}
|
|
3653
3617
|
),
|
|
3654
3618
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3655
|
-
|
|
3619
|
+
chunk4XID6LOC_js.Button,
|
|
3656
3620
|
{
|
|
3657
3621
|
type: "button",
|
|
3658
3622
|
onClick: handleAddVariable,
|
|
@@ -3667,7 +3631,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3667
3631
|
children: [
|
|
3668
3632
|
variable,
|
|
3669
3633
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3670
|
-
|
|
3634
|
+
chunk4XID6LOC_js.IconButton,
|
|
3671
3635
|
{
|
|
3672
3636
|
onClick: () => handleRemoveVariable(variable),
|
|
3673
3637
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
@@ -4103,7 +4067,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4103
4067
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-1 block text-sm font-medium text-gray-700 dark:text-gray-300", children: t("inputVariablesLabel") }),
|
|
4104
4068
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
4105
4069
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4106
|
-
|
|
4070
|
+
chunk4XID6LOC_js.FormInput,
|
|
4107
4071
|
{
|
|
4108
4072
|
type: "text",
|
|
4109
4073
|
value: newVariable,
|
|
@@ -4114,7 +4078,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4114
4078
|
}
|
|
4115
4079
|
),
|
|
4116
4080
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4117
|
-
|
|
4081
|
+
chunk4XID6LOC_js.Button,
|
|
4118
4082
|
{
|
|
4119
4083
|
type: "button",
|
|
4120
4084
|
onClick: handleAddVariable,
|
|
@@ -4122,10 +4086,10 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4122
4086
|
}
|
|
4123
4087
|
)
|
|
4124
4088
|
] }),
|
|
4125
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 space-y-2", children: inputVariables.map((variable, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4089
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 space-y-2", children: inputVariables.map((variable, index) => /* @__PURE__ */ jsxRuntime.jsx(chunk4XID6LOC_js.Card, { className: "border-purple-200/70 dark:border-purple-500/30", children: /* @__PURE__ */ jsxRuntime.jsx(chunk4XID6LOC_js.CardContent, { className: "p-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4126
4090
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex min-w-6 items-center justify-center rounded-full bg-purple-100 px-1.5 py-0.5 text-[10px] font-semibold text-purple-700 dark:bg-purple-500/20 dark:text-purple-300", children: index + 1 }),
|
|
4127
4091
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4128
|
-
|
|
4092
|
+
chunk4XID6LOC_js.FormInput,
|
|
4129
4093
|
{
|
|
4130
4094
|
type: "text",
|
|
4131
4095
|
value: variable,
|
|
@@ -4135,7 +4099,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4135
4099
|
}
|
|
4136
4100
|
),
|
|
4137
4101
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4138
|
-
|
|
4102
|
+
chunk4XID6LOC_js.IconButton,
|
|
4139
4103
|
{
|
|
4140
4104
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
4141
4105
|
label: `Remove ${variable || index + 1}`,
|
|
@@ -4147,7 +4111,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4147
4111
|
] }) }) }, `${index}-${variable}`)) })
|
|
4148
4112
|
] }),
|
|
4149
4113
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4150
|
-
|
|
4114
|
+
chunk4XID6LOC_js.FormInput,
|
|
4151
4115
|
{
|
|
4152
4116
|
type: "text",
|
|
4153
4117
|
label: t("outputVariableLabel"),
|
|
@@ -4157,7 +4121,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4157
4121
|
}
|
|
4158
4122
|
),
|
|
4159
4123
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4160
|
-
|
|
4124
|
+
chunk4XID6LOC_js.FormSelect,
|
|
4161
4125
|
{
|
|
4162
4126
|
label: t("aggregationModeLabel"),
|
|
4163
4127
|
value: aggregationMode,
|
|
@@ -4190,7 +4154,7 @@ function DocumentExtractorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4190
4154
|
};
|
|
4191
4155
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4192
4156
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4193
|
-
|
|
4157
|
+
chunk4XID6LOC_js.FormSelect,
|
|
4194
4158
|
{
|
|
4195
4159
|
label: t("extractionModeLabel"),
|
|
4196
4160
|
value: extractionMode,
|
|
@@ -4199,7 +4163,7 @@ function DocumentExtractorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4199
4163
|
}
|
|
4200
4164
|
),
|
|
4201
4165
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4202
|
-
|
|
4166
|
+
chunk4XID6LOC_js.FormInput,
|
|
4203
4167
|
{
|
|
4204
4168
|
type: "text",
|
|
4205
4169
|
label: t("outputVariableLabel"),
|
|
@@ -4376,7 +4340,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4376
4340
|
};
|
|
4377
4341
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4378
4342
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4379
|
-
|
|
4343
|
+
chunk4XID6LOC_js.FormInput,
|
|
4380
4344
|
{
|
|
4381
4345
|
type: "text",
|
|
4382
4346
|
label: t("iteratorVariableLabel"),
|
|
@@ -4386,7 +4350,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4386
4350
|
}
|
|
4387
4351
|
),
|
|
4388
4352
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4389
|
-
|
|
4353
|
+
chunk4XID6LOC_js.FormInput,
|
|
4390
4354
|
{
|
|
4391
4355
|
type: "text",
|
|
4392
4356
|
label: t("itemVariableLabel"),
|
|
@@ -4396,7 +4360,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4396
4360
|
}
|
|
4397
4361
|
),
|
|
4398
4362
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4399
|
-
|
|
4363
|
+
chunk4XID6LOC_js.FormInput,
|
|
4400
4364
|
{
|
|
4401
4365
|
type: "text",
|
|
4402
4366
|
label: t("indexVariableLabel"),
|
|
@@ -4990,7 +4954,7 @@ function GroupNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4990
4954
|
};
|
|
4991
4955
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4992
4956
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4993
|
-
|
|
4957
|
+
chunk4XID6LOC_js.FormInput,
|
|
4994
4958
|
{
|
|
4995
4959
|
type: "text",
|
|
4996
4960
|
label: translations("labelField"),
|
|
@@ -5000,7 +4964,7 @@ function GroupNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5000
4964
|
}
|
|
5001
4965
|
),
|
|
5002
4966
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5003
|
-
|
|
4967
|
+
chunk4XID6LOC_js.FormTextarea,
|
|
5004
4968
|
{
|
|
5005
4969
|
label: translations("descriptionField"),
|
|
5006
4970
|
value: description,
|
|
@@ -5129,14 +5093,16 @@ function LogicNodeModal({ onSave, entities = [], datasources = [], onLoadTables,
|
|
|
5129
5093
|
}
|
|
5130
5094
|
};
|
|
5131
5095
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5132
|
-
|
|
5096
|
+
chunk4XID6LOC_js.GlassModalShell,
|
|
5133
5097
|
{
|
|
5134
5098
|
open,
|
|
5135
5099
|
onClose: closeModal,
|
|
5136
5100
|
title,
|
|
5137
5101
|
subtitle: nodeLabel,
|
|
5102
|
+
label: t("nodeConfig"),
|
|
5138
5103
|
icon: IconComponent ? /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-5 w-5 text-white" }) : void 0,
|
|
5139
5104
|
gradient,
|
|
5105
|
+
maxWidth: "2xl",
|
|
5140
5106
|
children: renderForm()
|
|
5141
5107
|
}
|
|
5142
5108
|
);
|
|
@@ -5187,7 +5153,7 @@ function NodeContextMenu({ position, targetId, onClose, onEdit, onDuplicate, onC
|
|
|
5187
5153
|
}
|
|
5188
5154
|
];
|
|
5189
5155
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5190
|
-
|
|
5156
|
+
chunk4XID6LOC_js.ContextMenu,
|
|
5191
5157
|
{
|
|
5192
5158
|
position,
|
|
5193
5159
|
onClose,
|
|
@@ -5244,7 +5210,7 @@ function PanelContextMenu({ position, onClose, onPaste, onSelectAll, onFitView,
|
|
|
5244
5210
|
}
|
|
5245
5211
|
];
|
|
5246
5212
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5247
|
-
|
|
5213
|
+
chunk4XID6LOC_js.ContextMenu,
|
|
5248
5214
|
{
|
|
5249
5215
|
position,
|
|
5250
5216
|
onClose,
|
|
@@ -5391,7 +5357,7 @@ function SelectionContextMenu({
|
|
|
5391
5357
|
}
|
|
5392
5358
|
];
|
|
5393
5359
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5394
|
-
|
|
5360
|
+
chunk4XID6LOC_js.ContextMenu,
|
|
5395
5361
|
{
|
|
5396
5362
|
position,
|
|
5397
5363
|
onClose,
|
|
@@ -5555,21 +5521,21 @@ function WorkflowCanvasInner({
|
|
|
5555
5521
|
onAgentSaved,
|
|
5556
5522
|
isCreatingAgent = false,
|
|
5557
5523
|
nodeTypes: externalNodeTypes,
|
|
5558
|
-
|
|
5524
|
+
renderAgentModal,
|
|
5559
5525
|
renderLogicNodeModal: _renderLogicNodeModal
|
|
5560
5526
|
}) {
|
|
5561
5527
|
const { screenToFlowPosition, getNode, toObject, fitView, zoomIn, zoomOut, zoomTo } = react$1.useReactFlow();
|
|
5562
5528
|
const tWorkflow = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
5563
5529
|
const sortedAgents = react.useMemo(() => [...agents].sort((agentA, agentB) => (agentA.order ?? 0) - (agentB.order ?? 0)), [agents]);
|
|
5564
5530
|
const [selectedAgentId, setSelectedAgentId] = react.useState(null);
|
|
5565
|
-
const
|
|
5531
|
+
const openAgentModalAction = useModalStore((s) => s.openAgentModal);
|
|
5566
5532
|
const openLogicNodeModalAction = useModalStore((s) => s.openLogicNodeModal);
|
|
5567
5533
|
const closeModalAction = useModalStore((s) => s.closeModal);
|
|
5568
5534
|
const activeModal = useModalStore((s) => s.activeModal);
|
|
5569
5535
|
const modalOpen = activeModal === "agent";
|
|
5570
5536
|
react.useEffect(() => {
|
|
5571
5537
|
if (isCreatingAgent) {
|
|
5572
|
-
|
|
5538
|
+
openAgentModalAction(
|
|
5573
5539
|
{ agentId: "", name: "", order: 0, enabled: true, temperature: 0.7, maxTokens: 4096 },
|
|
5574
5540
|
models,
|
|
5575
5541
|
true
|
|
@@ -5712,7 +5678,7 @@ function WorkflowCanvasInner({
|
|
|
5712
5678
|
selected: selectedAgentId === savedNode.id,
|
|
5713
5679
|
onSelect: () => {
|
|
5714
5680
|
setSelectedAgentId(agent.agentId);
|
|
5715
|
-
|
|
5681
|
+
openAgentModalAction(agent, models);
|
|
5716
5682
|
},
|
|
5717
5683
|
onRemoveFromCanvas: handleRemoveNodeFromCanvas
|
|
5718
5684
|
}
|
|
@@ -6063,7 +6029,7 @@ function WorkflowCanvasInner({
|
|
|
6063
6029
|
const agent = targetNode.data?.agent;
|
|
6064
6030
|
if (agent) {
|
|
6065
6031
|
setSelectedAgentId(agent.agentId ?? agent.id ?? null);
|
|
6066
|
-
|
|
6032
|
+
openAgentModalAction(agent, models);
|
|
6067
6033
|
}
|
|
6068
6034
|
} else if (targetNode.type === "tool") {
|
|
6069
6035
|
const tool = targetNode.data?.tool;
|
|
@@ -6073,7 +6039,7 @@ function WorkflowCanvasInner({
|
|
|
6073
6039
|
} else {
|
|
6074
6040
|
handleEditLogicNode(nodeId);
|
|
6075
6041
|
}
|
|
6076
|
-
}, [nodes, setSelectedAgentId,
|
|
6042
|
+
}, [nodes, setSelectedAgentId, openAgentModalAction, models, onEditTool, onEditRule, handleEditLogicNode]);
|
|
6077
6043
|
const DUPLICATE_OFFSET = 40;
|
|
6078
6044
|
const contextMenuDuplicateNode = react.useCallback((nodeId) => {
|
|
6079
6045
|
storeTakeSnapshot();
|
|
@@ -6554,7 +6520,7 @@ function WorkflowCanvasInner({
|
|
|
6554
6520
|
selected: false,
|
|
6555
6521
|
onSelect: () => {
|
|
6556
6522
|
setSelectedAgentId(agent.agentId);
|
|
6557
|
-
|
|
6523
|
+
openAgentModalAction(agent, models);
|
|
6558
6524
|
},
|
|
6559
6525
|
onRemoveFromCanvas: handleRemoveNodeFromCanvas
|
|
6560
6526
|
}
|
|
@@ -7010,7 +6976,7 @@ function WorkflowCanvasInner({
|
|
|
7010
6976
|
}
|
|
7011
6977
|
)
|
|
7012
6978
|
] }),
|
|
7013
|
-
|
|
6979
|
+
renderAgentModal?.({
|
|
7014
6980
|
agent: selectedAgent,
|
|
7015
6981
|
models,
|
|
7016
6982
|
open: modalOpen || isCreatingAgent,
|
|
@@ -7220,7 +7186,6 @@ exports.VariableAssignerFlowNode = VariableAssignerFlowNode;
|
|
|
7220
7186
|
exports.WorkflowBuilderProvider = WorkflowBuilderProvider;
|
|
7221
7187
|
exports.WorkflowCanvas = WorkflowCanvas;
|
|
7222
7188
|
exports.Workspace = Workspace;
|
|
7223
|
-
exports.WorkspaceModal = WorkspaceModal;
|
|
7224
7189
|
exports.getCompatibleModels = getCompatibleModels;
|
|
7225
7190
|
exports.getDefaultFrameworkForModel = getDefaultFrameworkForModel;
|
|
7226
7191
|
exports.getEntityBadgeColor = getEntityBadgeColor;
|
|
@@ -7234,5 +7199,5 @@ exports.useModalStore = useModalStore;
|
|
|
7234
7199
|
exports.useWorkflowBuilderClient = useWorkflowBuilderClient;
|
|
7235
7200
|
exports.useWorkflowBuilderClientOptional = useWorkflowBuilderClientOptional;
|
|
7236
7201
|
exports.useWorkflowStore = useWorkflowStore;
|
|
7237
|
-
//# sourceMappingURL=chunk-
|
|
7238
|
-
//# sourceMappingURL=chunk-
|
|
7202
|
+
//# sourceMappingURL=chunk-E7GVGD4Z.js.map
|
|
7203
|
+
//# sourceMappingURL=chunk-E7GVGD4Z.js.map
|