@datatechsolutions/ui 2.11.76 → 2.11.78
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 +67 -1
- package/dist/astrlabe/contracts.d.ts +67 -1
- package/dist/astrlabe/index.d.mts +111 -3
- package/dist/astrlabe/index.d.ts +111 -3
- package/dist/astrlabe/index.js +1071 -166
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +920 -23
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-JIQSAUYC.mjs → chunk-3VHSRL3N.mjs} +37 -6
- package/dist/chunk-3VHSRL3N.mjs.map +1 -0
- package/dist/{chunk-EAGAWIIC.js → chunk-BCE3FQVS.js} +98 -67
- package/dist/chunk-BCE3FQVS.js.map +1 -0
- package/dist/{chunk-ZJQ5RLGK.mjs → chunk-LLFU42KC.mjs} +3 -3
- package/dist/{chunk-ZJQ5RLGK.mjs.map → chunk-LLFU42KC.mjs.map} +1 -1
- package/dist/{chunk-KNXAOJAK.js → chunk-TUEYBNWL.js} +3 -3
- package/dist/{chunk-KNXAOJAK.js.map → chunk-TUEYBNWL.js.map} +1 -1
- package/dist/index.js +753 -753
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-EAGAWIIC.js.map +0 -1
- package/dist/chunk-JIQSAUYC.mjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-UZ3CMNUJ.js');
|
|
4
|
+
var chunkBCE3FQVS_js = require('../chunk-BCE3FQVS.js');
|
|
5
|
+
require('../chunk-TUEYBNWL.js');
|
|
7
6
|
require('../chunk-YXN2K77G.js');
|
|
8
7
|
require('../chunk-S7KHTUHA.js');
|
|
8
|
+
require('../chunk-UZ3CMNUJ.js');
|
|
9
9
|
require('../chunk-P4YYEM4B.js');
|
|
10
10
|
require('../chunk-C7BI5LQ6.js');
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ require('../chunk-C7BI5LQ6.js');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "Workspace", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkBCE3FQVS_js.Workspace; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
19
19
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Workspace } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-D2JF6C3E.mjs';
|
|
2
|
+
export { Workspace } from '../chunk-3VHSRL3N.mjs';
|
|
3
|
+
import '../chunk-LLFU42KC.mjs';
|
|
5
4
|
import '../chunk-7VJ7CMMT.mjs';
|
|
6
5
|
import '../chunk-QWG2FMUN.mjs';
|
|
6
|
+
import '../chunk-D2JF6C3E.mjs';
|
|
7
7
|
import '../chunk-OZNTQROP.mjs';
|
|
8
8
|
import '../chunk-WNCPAWLC.mjs';
|
|
9
9
|
//# sourceMappingURL=workflow-canvas.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ToggleSwitch, GlassModal, ContextMenu, FormSelect, FormInput, FormTextarea, Button, IconButton } from './chunk-
|
|
2
|
+
import { ToggleSwitch, GlassModal, ContextMenu, FormSelect, FormInput, FormTextarea, Button, IconButton } from './chunk-LLFU42KC.mjs';
|
|
3
3
|
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
4
4
|
import { GraphNodeHeader, GraphNodeMeta, GraphNodeBadge, GraphNodeIconBubble } from './chunk-OZNTQROP.mjs';
|
|
5
5
|
import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-WNCPAWLC.mjs';
|
|
@@ -7020,15 +7020,25 @@ function WorkflowCanvasInner({
|
|
|
7020
7020
|
);
|
|
7021
7021
|
const buildInitialEdges = useCallback(() => {
|
|
7022
7022
|
if (initialGraph && initialGraph.edges.length > 0) {
|
|
7023
|
+
const aggregatorIds = new Set(
|
|
7024
|
+
initialGraph.nodes.filter((node) => node.type === "variable_aggregator").map((node) => node.id)
|
|
7025
|
+
);
|
|
7026
|
+
const aggregatorPortCursor = /* @__PURE__ */ new Map();
|
|
7023
7027
|
return initialGraph.edges.map((savedEdge) => {
|
|
7024
7028
|
const handle = savedEdge.sourceHandle;
|
|
7025
7029
|
const edgeColor = handle === "true-out" ? GRAPH_TRUE_EDGE_COLOR : handle === "false-out" ? GRAPH_FALSE_EDGE_COLOR : GRAPH_ACTIVE_EDGE_COLOR;
|
|
7030
|
+
let targetHandle = savedEdge.targetHandle;
|
|
7031
|
+
if (!targetHandle && aggregatorIds.has(savedEdge.target)) {
|
|
7032
|
+
const nextIndex = aggregatorPortCursor.get(savedEdge.target) ?? 0;
|
|
7033
|
+
targetHandle = `input-${nextIndex}`;
|
|
7034
|
+
aggregatorPortCursor.set(savedEdge.target, nextIndex + 1);
|
|
7035
|
+
}
|
|
7026
7036
|
return {
|
|
7027
7037
|
id: savedEdge.id,
|
|
7028
7038
|
source: savedEdge.source,
|
|
7029
7039
|
target: savedEdge.target,
|
|
7030
7040
|
sourceHandle: savedEdge.sourceHandle,
|
|
7031
|
-
targetHandle
|
|
7041
|
+
targetHandle,
|
|
7032
7042
|
type: "default",
|
|
7033
7043
|
animated: true,
|
|
7034
7044
|
data: {
|
|
@@ -7841,10 +7851,31 @@ function WorkflowCanvasInner({
|
|
|
7841
7851
|
(connection) => {
|
|
7842
7852
|
storeTakeSnapshot();
|
|
7843
7853
|
const edgeLabel = resolveEdgeLabel(connection.sourceHandle, connection.source);
|
|
7854
|
+
const targetNode = connection.target ? getNode(connection.target) : void 0;
|
|
7855
|
+
let resolvedConnection = connection;
|
|
7856
|
+
if (targetNode?.type === "variable_aggregator") {
|
|
7857
|
+
const aggConfig = targetNode.data.config;
|
|
7858
|
+
const existingInputs = aggConfig?.inputVariables ?? [];
|
|
7859
|
+
const nextIndex = existingInputs.length;
|
|
7860
|
+
const nextHandle = `input-${nextIndex}`;
|
|
7861
|
+
resolvedConnection = { ...connection, targetHandle: nextHandle };
|
|
7862
|
+
const nextVarName = connection.source ?? `input-${nextIndex + 1}`;
|
|
7863
|
+
setNodes(
|
|
7864
|
+
(currentNodes) => currentNodes.map((node) => {
|
|
7865
|
+
if (node.id !== connection.target) return node;
|
|
7866
|
+
const data = node.data;
|
|
7867
|
+
const nextConfig = {
|
|
7868
|
+
...data.config ?? { type: "variable_aggregator", inputVariables: [], outputVariable: "context" },
|
|
7869
|
+
inputVariables: [...existingInputs, nextVarName]
|
|
7870
|
+
};
|
|
7871
|
+
return { ...node, data: { ...data, config: nextConfig } };
|
|
7872
|
+
})
|
|
7873
|
+
);
|
|
7874
|
+
}
|
|
7844
7875
|
setEdges(
|
|
7845
7876
|
(currentEdges) => addEdge(
|
|
7846
7877
|
{
|
|
7847
|
-
...
|
|
7878
|
+
...resolvedConnection,
|
|
7848
7879
|
type: "default",
|
|
7849
7880
|
animated: true,
|
|
7850
7881
|
data: { label: edgeLabel, onInsertNode: insertNodeOnEdge },
|
|
@@ -7855,7 +7886,7 @@ function WorkflowCanvasInner({
|
|
|
7855
7886
|
)
|
|
7856
7887
|
);
|
|
7857
7888
|
},
|
|
7858
|
-
[setEdges, storeTakeSnapshot, resolveEdgeLabel, insertNodeOnEdge]
|
|
7889
|
+
[setEdges, setNodes, getNode, storeTakeSnapshot, resolveEdgeLabel, insertNodeOnEdge]
|
|
7859
7890
|
);
|
|
7860
7891
|
const isValidConnection = useCallback(
|
|
7861
7892
|
(connection) => {
|
|
@@ -8328,5 +8359,5 @@ function Workspace({
|
|
|
8328
8359
|
}
|
|
8329
8360
|
|
|
8330
8361
|
export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CATEGORY_COLORS, CATEGORY_PILL_COLORS, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, ICON_MAP, IfElseFlowNode, IterationFlowNode, IterationStartFlowNode, KnowledgeBaseFlowNode, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, ListOperatorFlowNode, LogicNodeModal, MINIMAP_NODE_COLORS, ModelProviderFlowNode, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NoteFlowNode, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, QuestionClassifierFlowNode, RuleFlowNode, SelectionContextMenu, StartFlowNode, StrandsIcon, TemplateTransformFlowNode, ToolFlowNode, VariableAggregatorFlowNode, VariableAssignerFlowNode, WorkflowBuilderProvider, WorkflowCanvas, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isFrameworkCompatibleWithProviders, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
|
|
8331
|
-
//# sourceMappingURL=chunk-
|
|
8332
|
-
//# sourceMappingURL=chunk-
|
|
8362
|
+
//# sourceMappingURL=chunk-3VHSRL3N.mjs.map
|
|
8363
|
+
//# sourceMappingURL=chunk-3VHSRL3N.mjs.map
|