@datatechsolutions/ui 2.11.3 → 2.11.4
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 +124 -124
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +7 -7
- 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-XAQME7DD.js → chunk-AZ3BXAI6.js} +62 -62
- package/dist/chunk-AZ3BXAI6.js.map +1 -0
- package/dist/{chunk-LJSJMBLO.mjs → chunk-BHKBEP2Y.mjs} +13 -13
- package/dist/chunk-BHKBEP2Y.mjs.map +1 -0
- package/dist/{chunk-PBKTXX4Y.js → chunk-EVX2CFNL.js} +3 -3
- package/dist/chunk-EVX2CFNL.js.map +1 -0
- package/dist/{chunk-XO7IYJSF.mjs → chunk-F6EBSQF6.mjs} +3 -3
- package/dist/chunk-F6EBSQF6.mjs.map +1 -0
- package/dist/index.js +710 -710
- package/dist/index.mjs +1 -1
- package/dist/{workflow-canvas-DSm0iyof.d.ts → workflow-canvas-CQtkR4Y6.d.ts} +3 -3
- package/dist/{workflow-canvas-CJwGehdk.d.mts → workflow-canvas-D9kHlmev.d.mts} +3 -3
- package/package.json +2 -2
- package/dist/chunk-LJSJMBLO.mjs.map +0 -1
- package/dist/chunk-PBKTXX4Y.js.map +0 -1
- package/dist/chunk-XAQME7DD.js.map +0 -1
- package/dist/chunk-XO7IYJSF.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-
|
|
3
|
+
export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-D9kHlmev.mjs';
|
|
4
4
|
import '@xyflow/react';
|
|
5
5
|
import './contracts.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-
|
|
3
|
+
export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-CQtkR4Y6.js';
|
|
4
4
|
import '@xyflow/react';
|
|
5
5
|
import './contracts.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var chunkAZ3BXAI6_js = require('../chunk-AZ3BXAI6.js');
|
|
5
|
+
require('../chunk-EVX2CFNL.js');
|
|
6
6
|
require('../chunk-S7KHTUHA.js');
|
|
7
7
|
require('../chunk-UZ3CMNUJ.js');
|
|
8
8
|
require('../chunk-P4YYEM4B.js');
|
|
@@ -13,7 +13,7 @@ require('../chunk-YXN2K77G.js');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "Workspace", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkAZ3BXAI6_js.Workspace; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
19
19
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Workspace } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { Workspace } from '../chunk-BHKBEP2Y.mjs';
|
|
3
|
+
import '../chunk-F6EBSQF6.mjs';
|
|
4
4
|
import '../chunk-QWG2FMUN.mjs';
|
|
5
5
|
import '../chunk-D2JF6C3E.mjs';
|
|
6
6
|
import '../chunk-OZNTQROP.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkEVX2CFNL_js = require('./chunk-EVX2CFNL.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
|
+
openAgentDrawer: (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
|
+
openSubworkflowDrawer: (tool) => set({
|
|
227
227
|
activeModal: "subworkflow",
|
|
228
228
|
subworkflowData: { tool },
|
|
229
229
|
agentData: null,
|
|
@@ -2910,7 +2910,7 @@ function WorkspaceModal({
|
|
|
2910
2910
|
}) {
|
|
2911
2911
|
const resolvedSize = LEGACY_WIDTH_MAP[maxWidth] ?? maxWidth;
|
|
2912
2912
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2913
|
-
|
|
2913
|
+
chunkEVX2CFNL_js.GlassModalShell,
|
|
2914
2914
|
{
|
|
2915
2915
|
open,
|
|
2916
2916
|
onClose,
|
|
@@ -2955,7 +2955,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2955
2955
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-xs text-gray-500 dark:text-gray-400", children: t("inputVariablesHelp") }),
|
|
2956
2956
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
2957
2957
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2958
|
-
|
|
2958
|
+
chunkEVX2CFNL_js.Input,
|
|
2959
2959
|
{
|
|
2960
2960
|
value: newVariable,
|
|
2961
2961
|
onChange: (event) => setNewVariable(event.target.value),
|
|
@@ -2965,7 +2965,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2965
2965
|
}
|
|
2966
2966
|
),
|
|
2967
2967
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2968
|
-
|
|
2968
|
+
chunkEVX2CFNL_js.Button,
|
|
2969
2969
|
{
|
|
2970
2970
|
type: "button",
|
|
2971
2971
|
onClick: handleAddVariable,
|
|
@@ -2982,7 +2982,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2982
2982
|
children: [
|
|
2983
2983
|
variable,
|
|
2984
2984
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2985
|
-
|
|
2985
|
+
chunkEVX2CFNL_js.IconButton,
|
|
2986
2986
|
{
|
|
2987
2987
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
2988
2988
|
label: `Remove ${variable}`,
|
|
@@ -2999,7 +2999,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
2999
2999
|
] }),
|
|
3000
3000
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2 border-t border-gray-200 pt-4 dark:border-gray-700", children: [
|
|
3001
3001
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3002
|
-
|
|
3002
|
+
chunkEVX2CFNL_js.Button,
|
|
3003
3003
|
{
|
|
3004
3004
|
type: "button",
|
|
3005
3005
|
onClick: onCancel,
|
|
@@ -3009,7 +3009,7 @@ function StartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3009
3009
|
}
|
|
3010
3010
|
),
|
|
3011
3011
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3012
|
-
|
|
3012
|
+
chunkEVX2CFNL_js.Button,
|
|
3013
3013
|
{
|
|
3014
3014
|
type: "button",
|
|
3015
3015
|
onClick: handleSave,
|
|
@@ -3121,8 +3121,8 @@ function ConfigFormActions({
|
|
|
3121
3121
|
saveDisabled = false
|
|
3122
3122
|
}) {
|
|
3123
3123
|
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(
|
|
3124
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEVX2CFNL_js.Button, { type: "button", outline: true, onClick: onCancel, children: cancelLabel }),
|
|
3125
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEVX2CFNL_js.Button, { type: "button", onClick: onSave, disabled: saveDisabled, children: saveLabel })
|
|
3126
3126
|
] });
|
|
3127
3127
|
}
|
|
3128
3128
|
var OPERATOR_OPTIONS = [
|
|
@@ -3171,7 +3171,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3171
3171
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-3 flex items-center justify-between", children: [
|
|
3172
3172
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: t("conditionsLabel") }),
|
|
3173
3173
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3174
|
-
|
|
3174
|
+
chunkEVX2CFNL_js.Button,
|
|
3175
3175
|
{
|
|
3176
3176
|
type: "button",
|
|
3177
3177
|
onClick: handleAddCondition,
|
|
@@ -3182,7 +3182,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3182
3182
|
/* @__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
3183
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid flex-1 grid-cols-3 gap-2", children: [
|
|
3184
3184
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3185
|
-
|
|
3185
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3186
3186
|
{
|
|
3187
3187
|
type: "text",
|
|
3188
3188
|
label: t("variableLabel"),
|
|
@@ -3193,7 +3193,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3193
3193
|
}
|
|
3194
3194
|
) }),
|
|
3195
3195
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3196
|
-
|
|
3196
|
+
chunkEVX2CFNL_js.FormSelect,
|
|
3197
3197
|
{
|
|
3198
3198
|
label: t("operatorLabel"),
|
|
3199
3199
|
value: condition.operator,
|
|
@@ -3203,7 +3203,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
) }),
|
|
3205
3205
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3206
|
-
|
|
3206
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3207
3207
|
{
|
|
3208
3208
|
type: "text",
|
|
3209
3209
|
label: t("valueLabel"),
|
|
@@ -3215,7 +3215,7 @@ function IfElseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3215
3215
|
) })
|
|
3216
3216
|
] }),
|
|
3217
3217
|
conditions.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3218
|
-
|
|
3218
|
+
chunkEVX2CFNL_js.IconButton,
|
|
3219
3219
|
{
|
|
3220
3220
|
onClick: () => handleRemoveCondition(index),
|
|
3221
3221
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.TrashIcon, { className: "h-4 w-4" }),
|
|
@@ -3370,7 +3370,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3370
3370
|
};
|
|
3371
3371
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3372
3372
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3373
|
-
|
|
3373
|
+
chunkEVX2CFNL_js.FormSelect,
|
|
3374
3374
|
{
|
|
3375
3375
|
label: t("methodLabel"),
|
|
3376
3376
|
value: method,
|
|
@@ -3379,7 +3379,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3379
3379
|
}
|
|
3380
3380
|
),
|
|
3381
3381
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3382
|
-
|
|
3382
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3383
3383
|
{
|
|
3384
3384
|
type: "text",
|
|
3385
3385
|
label: t("urlLabel"),
|
|
@@ -3392,7 +3392,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3392
3392
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
3393
3393
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: t("headersLabel") }),
|
|
3394
3394
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3395
|
-
|
|
3395
|
+
chunkEVX2CFNL_js.Button,
|
|
3396
3396
|
{
|
|
3397
3397
|
type: "button",
|
|
3398
3398
|
onClick: handleAddHeader,
|
|
@@ -3402,7 +3402,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3402
3402
|
] }),
|
|
3403
3403
|
/* @__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
3404
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3405
|
-
|
|
3405
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3406
3406
|
{
|
|
3407
3407
|
type: "text",
|
|
3408
3408
|
value: entry.key,
|
|
@@ -3412,7 +3412,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3412
3412
|
}
|
|
3413
3413
|
),
|
|
3414
3414
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3415
|
-
|
|
3415
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3416
3416
|
{
|
|
3417
3417
|
type: "text",
|
|
3418
3418
|
value: entry.value,
|
|
@@ -3422,7 +3422,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3422
3422
|
}
|
|
3423
3423
|
),
|
|
3424
3424
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3425
|
-
|
|
3425
|
+
chunkEVX2CFNL_js.IconButton,
|
|
3426
3426
|
{
|
|
3427
3427
|
onClick: () => handleRemoveHeader(index),
|
|
3428
3428
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.TrashIcon, { className: "h-4 w-4" }),
|
|
@@ -3434,7 +3434,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3434
3434
|
] }, index)) })
|
|
3435
3435
|
] }),
|
|
3436
3436
|
method !== "GET" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3437
|
-
|
|
3437
|
+
chunkEVX2CFNL_js.FormTextarea,
|
|
3438
3438
|
{
|
|
3439
3439
|
label: t("bodyLabel"),
|
|
3440
3440
|
value: body,
|
|
@@ -3445,7 +3445,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3445
3445
|
}
|
|
3446
3446
|
),
|
|
3447
3447
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3448
|
-
|
|
3448
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3449
3449
|
{
|
|
3450
3450
|
type: "number",
|
|
3451
3451
|
label: t("timeoutLabel"),
|
|
@@ -3476,7 +3476,7 @@ function TemplateTransformNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3476
3476
|
};
|
|
3477
3477
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3478
3478
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3479
|
-
|
|
3479
|
+
chunkEVX2CFNL_js.FormTextarea,
|
|
3480
3480
|
{
|
|
3481
3481
|
label: t("templateLabel"),
|
|
3482
3482
|
value: template,
|
|
@@ -3487,7 +3487,7 @@ function TemplateTransformNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
),
|
|
3489
3489
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3490
|
-
|
|
3490
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3491
3491
|
{
|
|
3492
3492
|
type: "text",
|
|
3493
3493
|
label: t("outputVariableLabel"),
|
|
@@ -3516,7 +3516,7 @@ function IterationNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3516
3516
|
};
|
|
3517
3517
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3518
3518
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3519
|
-
|
|
3519
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3520
3520
|
{
|
|
3521
3521
|
type: "text",
|
|
3522
3522
|
label: t("iteratorVariableLabel"),
|
|
@@ -3526,7 +3526,7 @@ function IterationNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3526
3526
|
}
|
|
3527
3527
|
),
|
|
3528
3528
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3529
|
-
|
|
3529
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3530
3530
|
{
|
|
3531
3531
|
type: "number",
|
|
3532
3532
|
label: t("maxIterationsLabel"),
|
|
@@ -3557,7 +3557,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3557
3557
|
};
|
|
3558
3558
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3559
3559
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3560
|
-
|
|
3560
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3561
3561
|
{
|
|
3562
3562
|
type: "text",
|
|
3563
3563
|
label: t("sourceIdLabel"),
|
|
@@ -3567,7 +3567,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3567
3567
|
}
|
|
3568
3568
|
),
|
|
3569
3569
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3570
|
-
|
|
3570
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3571
3571
|
{
|
|
3572
3572
|
type: "number",
|
|
3573
3573
|
label: t("topKLabel"),
|
|
@@ -3578,7 +3578,7 @@ function KnowledgeBaseNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3578
3578
|
}
|
|
3579
3579
|
),
|
|
3580
3580
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3581
|
-
|
|
3581
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3582
3582
|
{
|
|
3583
3583
|
type: "number",
|
|
3584
3584
|
label: t("similarityThresholdLabel"),
|
|
@@ -3626,7 +3626,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3626
3626
|
};
|
|
3627
3627
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3628
3628
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3629
|
-
|
|
3629
|
+
chunkEVX2CFNL_js.FormTextarea,
|
|
3630
3630
|
{
|
|
3631
3631
|
label: t("outputTemplateLabel"),
|
|
3632
3632
|
hint: t("outputTemplateHelp"),
|
|
@@ -3641,7 +3641,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3641
3641
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-1 block text-sm font-medium text-gray-700 dark:text-gray-300", children: t("outputVariablesLabel") }),
|
|
3642
3642
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
3643
3643
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3644
|
-
|
|
3644
|
+
chunkEVX2CFNL_js.FormInput,
|
|
3645
3645
|
{
|
|
3646
3646
|
type: "text",
|
|
3647
3647
|
value: newVariable,
|
|
@@ -3652,7 +3652,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3652
3652
|
}
|
|
3653
3653
|
),
|
|
3654
3654
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3655
|
-
|
|
3655
|
+
chunkEVX2CFNL_js.Button,
|
|
3656
3656
|
{
|
|
3657
3657
|
type: "button",
|
|
3658
3658
|
onClick: handleAddVariable,
|
|
@@ -3667,7 +3667,7 @@ function AnswerNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
3667
3667
|
children: [
|
|
3668
3668
|
variable,
|
|
3669
3669
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3670
|
-
|
|
3670
|
+
chunkEVX2CFNL_js.IconButton,
|
|
3671
3671
|
{
|
|
3672
3672
|
onClick: () => handleRemoveVariable(variable),
|
|
3673
3673
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
@@ -4103,7 +4103,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4103
4103
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-1 block text-sm font-medium text-gray-700 dark:text-gray-300", children: t("inputVariablesLabel") }),
|
|
4104
4104
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
4105
4105
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4106
|
-
|
|
4106
|
+
chunkEVX2CFNL_js.FormInput,
|
|
4107
4107
|
{
|
|
4108
4108
|
type: "text",
|
|
4109
4109
|
value: newVariable,
|
|
@@ -4114,7 +4114,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4114
4114
|
}
|
|
4115
4115
|
),
|
|
4116
4116
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4117
|
-
|
|
4117
|
+
chunkEVX2CFNL_js.Button,
|
|
4118
4118
|
{
|
|
4119
4119
|
type: "button",
|
|
4120
4120
|
onClick: handleAddVariable,
|
|
@@ -4122,10 +4122,10 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4122
4122
|
}
|
|
4123
4123
|
)
|
|
4124
4124
|
] }),
|
|
4125
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 space-y-2", children: inputVariables.map((variable, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4125
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 space-y-2", children: inputVariables.map((variable, index) => /* @__PURE__ */ jsxRuntime.jsx(chunkEVX2CFNL_js.Card, { className: "border-purple-200/70 dark:border-purple-500/30", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEVX2CFNL_js.CardContent, { className: "p-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4126
4126
|
/* @__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
4127
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4128
|
-
|
|
4128
|
+
chunkEVX2CFNL_js.FormInput,
|
|
4129
4129
|
{
|
|
4130
4130
|
type: "text",
|
|
4131
4131
|
value: variable,
|
|
@@ -4135,7 +4135,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4135
4135
|
}
|
|
4136
4136
|
),
|
|
4137
4137
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4138
|
-
|
|
4138
|
+
chunkEVX2CFNL_js.IconButton,
|
|
4139
4139
|
{
|
|
4140
4140
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "h-3 w-3" }),
|
|
4141
4141
|
label: `Remove ${variable || index + 1}`,
|
|
@@ -4147,7 +4147,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4147
4147
|
] }) }) }, `${index}-${variable}`)) })
|
|
4148
4148
|
] }),
|
|
4149
4149
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4150
|
-
|
|
4150
|
+
chunkEVX2CFNL_js.FormInput,
|
|
4151
4151
|
{
|
|
4152
4152
|
type: "text",
|
|
4153
4153
|
label: t("outputVariableLabel"),
|
|
@@ -4157,7 +4157,7 @@ function VariableAggregatorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4157
4157
|
}
|
|
4158
4158
|
),
|
|
4159
4159
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4160
|
-
|
|
4160
|
+
chunkEVX2CFNL_js.FormSelect,
|
|
4161
4161
|
{
|
|
4162
4162
|
label: t("aggregationModeLabel"),
|
|
4163
4163
|
value: aggregationMode,
|
|
@@ -4190,7 +4190,7 @@ function DocumentExtractorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4190
4190
|
};
|
|
4191
4191
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4192
4192
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4193
|
-
|
|
4193
|
+
chunkEVX2CFNL_js.FormSelect,
|
|
4194
4194
|
{
|
|
4195
4195
|
label: t("extractionModeLabel"),
|
|
4196
4196
|
value: extractionMode,
|
|
@@ -4199,7 +4199,7 @@ function DocumentExtractorNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4199
4199
|
}
|
|
4200
4200
|
),
|
|
4201
4201
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4202
|
-
|
|
4202
|
+
chunkEVX2CFNL_js.FormInput,
|
|
4203
4203
|
{
|
|
4204
4204
|
type: "text",
|
|
4205
4205
|
label: t("outputVariableLabel"),
|
|
@@ -4376,7 +4376,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4376
4376
|
};
|
|
4377
4377
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4378
4378
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4379
|
-
|
|
4379
|
+
chunkEVX2CFNL_js.FormInput,
|
|
4380
4380
|
{
|
|
4381
4381
|
type: "text",
|
|
4382
4382
|
label: t("iteratorVariableLabel"),
|
|
@@ -4386,7 +4386,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4386
4386
|
}
|
|
4387
4387
|
),
|
|
4388
4388
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4389
|
-
|
|
4389
|
+
chunkEVX2CFNL_js.FormInput,
|
|
4390
4390
|
{
|
|
4391
4391
|
type: "text",
|
|
4392
4392
|
label: t("itemVariableLabel"),
|
|
@@ -4396,7 +4396,7 @@ function IterationStartNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4396
4396
|
}
|
|
4397
4397
|
),
|
|
4398
4398
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4399
|
-
|
|
4399
|
+
chunkEVX2CFNL_js.FormInput,
|
|
4400
4400
|
{
|
|
4401
4401
|
type: "text",
|
|
4402
4402
|
label: t("indexVariableLabel"),
|
|
@@ -4990,7 +4990,7 @@ function GroupNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
4990
4990
|
};
|
|
4991
4991
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4992
4992
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4993
|
-
|
|
4993
|
+
chunkEVX2CFNL_js.FormInput,
|
|
4994
4994
|
{
|
|
4995
4995
|
type: "text",
|
|
4996
4996
|
label: translations("labelField"),
|
|
@@ -5000,7 +5000,7 @@ function GroupNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5000
5000
|
}
|
|
5001
5001
|
),
|
|
5002
5002
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5003
|
-
|
|
5003
|
+
chunkEVX2CFNL_js.FormTextarea,
|
|
5004
5004
|
{
|
|
5005
5005
|
label: translations("descriptionField"),
|
|
5006
5006
|
value: description,
|
|
@@ -5187,7 +5187,7 @@ function NodeContextMenu({ position, targetId, onClose, onEdit, onDuplicate, onC
|
|
|
5187
5187
|
}
|
|
5188
5188
|
];
|
|
5189
5189
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5190
|
-
|
|
5190
|
+
chunkEVX2CFNL_js.ContextMenu,
|
|
5191
5191
|
{
|
|
5192
5192
|
position,
|
|
5193
5193
|
onClose,
|
|
@@ -5244,7 +5244,7 @@ function PanelContextMenu({ position, onClose, onPaste, onSelectAll, onFitView,
|
|
|
5244
5244
|
}
|
|
5245
5245
|
];
|
|
5246
5246
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5247
|
-
|
|
5247
|
+
chunkEVX2CFNL_js.ContextMenu,
|
|
5248
5248
|
{
|
|
5249
5249
|
position,
|
|
5250
5250
|
onClose,
|
|
@@ -5391,7 +5391,7 @@ function SelectionContextMenu({
|
|
|
5391
5391
|
}
|
|
5392
5392
|
];
|
|
5393
5393
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5394
|
-
|
|
5394
|
+
chunkEVX2CFNL_js.ContextMenu,
|
|
5395
5395
|
{
|
|
5396
5396
|
position,
|
|
5397
5397
|
onClose,
|
|
@@ -5555,21 +5555,21 @@ function WorkflowCanvasInner({
|
|
|
5555
5555
|
onAgentSaved,
|
|
5556
5556
|
isCreatingAgent = false,
|
|
5557
5557
|
nodeTypes: externalNodeTypes,
|
|
5558
|
-
|
|
5558
|
+
renderAgentDrawer,
|
|
5559
5559
|
renderLogicNodeModal: _renderLogicNodeModal
|
|
5560
5560
|
}) {
|
|
5561
5561
|
const { screenToFlowPosition, getNode, toObject, fitView, zoomIn, zoomOut, zoomTo } = react$1.useReactFlow();
|
|
5562
5562
|
const tWorkflow = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
5563
5563
|
const sortedAgents = react.useMemo(() => [...agents].sort((agentA, agentB) => (agentA.order ?? 0) - (agentB.order ?? 0)), [agents]);
|
|
5564
5564
|
const [selectedAgentId, setSelectedAgentId] = react.useState(null);
|
|
5565
|
-
const
|
|
5565
|
+
const openAgentDrawerAction = useModalStore((s) => s.openAgentDrawer);
|
|
5566
5566
|
const openLogicNodeModalAction = useModalStore((s) => s.openLogicNodeModal);
|
|
5567
5567
|
const closeModalAction = useModalStore((s) => s.closeModal);
|
|
5568
5568
|
const activeModal = useModalStore((s) => s.activeModal);
|
|
5569
5569
|
const modalOpen = activeModal === "agent";
|
|
5570
5570
|
react.useEffect(() => {
|
|
5571
5571
|
if (isCreatingAgent) {
|
|
5572
|
-
|
|
5572
|
+
openAgentDrawerAction(
|
|
5573
5573
|
{ agentId: "", name: "", order: 0, enabled: true, temperature: 0.7, maxTokens: 4096 },
|
|
5574
5574
|
models,
|
|
5575
5575
|
true
|
|
@@ -5712,7 +5712,7 @@ function WorkflowCanvasInner({
|
|
|
5712
5712
|
selected: selectedAgentId === savedNode.id,
|
|
5713
5713
|
onSelect: () => {
|
|
5714
5714
|
setSelectedAgentId(agent.agentId);
|
|
5715
|
-
|
|
5715
|
+
openAgentDrawerAction(agent, models);
|
|
5716
5716
|
},
|
|
5717
5717
|
onRemoveFromCanvas: handleRemoveNodeFromCanvas
|
|
5718
5718
|
}
|
|
@@ -6063,7 +6063,7 @@ function WorkflowCanvasInner({
|
|
|
6063
6063
|
const agent = targetNode.data?.agent;
|
|
6064
6064
|
if (agent) {
|
|
6065
6065
|
setSelectedAgentId(agent.agentId ?? agent.id ?? null);
|
|
6066
|
-
|
|
6066
|
+
openAgentDrawerAction(agent, models);
|
|
6067
6067
|
}
|
|
6068
6068
|
} else if (targetNode.type === "tool") {
|
|
6069
6069
|
const tool = targetNode.data?.tool;
|
|
@@ -6073,7 +6073,7 @@ function WorkflowCanvasInner({
|
|
|
6073
6073
|
} else {
|
|
6074
6074
|
handleEditLogicNode(nodeId);
|
|
6075
6075
|
}
|
|
6076
|
-
}, [nodes, setSelectedAgentId,
|
|
6076
|
+
}, [nodes, setSelectedAgentId, openAgentDrawerAction, models, onEditTool, onEditRule, handleEditLogicNode]);
|
|
6077
6077
|
const DUPLICATE_OFFSET = 40;
|
|
6078
6078
|
const contextMenuDuplicateNode = react.useCallback((nodeId) => {
|
|
6079
6079
|
storeTakeSnapshot();
|
|
@@ -6554,7 +6554,7 @@ function WorkflowCanvasInner({
|
|
|
6554
6554
|
selected: false,
|
|
6555
6555
|
onSelect: () => {
|
|
6556
6556
|
setSelectedAgentId(agent.agentId);
|
|
6557
|
-
|
|
6557
|
+
openAgentDrawerAction(agent, models);
|
|
6558
6558
|
},
|
|
6559
6559
|
onRemoveFromCanvas: handleRemoveNodeFromCanvas
|
|
6560
6560
|
}
|
|
@@ -7010,7 +7010,7 @@ function WorkflowCanvasInner({
|
|
|
7010
7010
|
}
|
|
7011
7011
|
)
|
|
7012
7012
|
] }),
|
|
7013
|
-
|
|
7013
|
+
renderAgentDrawer?.({
|
|
7014
7014
|
agent: selectedAgent,
|
|
7015
7015
|
models,
|
|
7016
7016
|
open: modalOpen || isCreatingAgent,
|
|
@@ -7234,5 +7234,5 @@ exports.useModalStore = useModalStore;
|
|
|
7234
7234
|
exports.useWorkflowBuilderClient = useWorkflowBuilderClient;
|
|
7235
7235
|
exports.useWorkflowBuilderClientOptional = useWorkflowBuilderClientOptional;
|
|
7236
7236
|
exports.useWorkflowStore = useWorkflowStore;
|
|
7237
|
-
//# sourceMappingURL=chunk-
|
|
7238
|
-
//# sourceMappingURL=chunk-
|
|
7237
|
+
//# sourceMappingURL=chunk-AZ3BXAI6.js.map
|
|
7238
|
+
//# sourceMappingURL=chunk-AZ3BXAI6.js.map
|