@datatechsolutions/ui 3.6.0 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astrlabe/graph-node.js +8 -5
- package/dist/astrlabe/graph-node.mjs +4 -1
- package/dist/astrlabe/index.js +115 -114
- package/dist/astrlabe/index.mjs +7 -6
- package/dist/astrlabe/workflow-canvas.js +7 -6
- package/dist/astrlabe/workflow-canvas.mjs +6 -5
- package/dist/{chunk-I63NFWIA.mjs → chunk-2OPBUVTQ.mjs} +3 -3
- package/dist/{chunk-I63NFWIA.mjs.map → chunk-2OPBUVTQ.mjs.map} +1 -1
- package/dist/{chunk-XTXLRQ3H.mjs → chunk-34XRH2FX.mjs} +28 -28
- package/dist/chunk-34XRH2FX.mjs.map +1 -0
- package/dist/{chunk-QHP2MR2F.js → chunk-3JZGRXSG.js} +4 -4
- package/dist/{chunk-QHP2MR2F.js.map → chunk-3JZGRXSG.js.map} +1 -1
- package/dist/{chunk-JQYDJ75Q.mjs → chunk-3VYD7QL2.mjs} +3 -3
- package/dist/{chunk-JQYDJ75Q.mjs.map → chunk-3VYD7QL2.mjs.map} +1 -1
- package/dist/{chunk-MRRFDIUQ.mjs → chunk-4JRMXHPU.mjs} +5 -4
- package/dist/chunk-4JRMXHPU.mjs.map +1 -0
- package/dist/{chunk-4OFG6POC.mjs → chunk-5LCWQKGQ.mjs} +207 -1128
- package/dist/chunk-5LCWQKGQ.mjs.map +1 -0
- package/dist/{chunk-W5YCZOXO.js → chunk-7YK4WXHO.js} +79 -78
- package/dist/chunk-7YK4WXHO.js.map +1 -0
- package/dist/{chunk-YOJIPZ72.js → chunk-BBLBSDPN.js} +9 -9
- package/dist/{chunk-YOJIPZ72.js.map → chunk-BBLBSDPN.js.map} +1 -1
- package/dist/chunk-BHOT22QL.js +998 -0
- package/dist/chunk-BHOT22QL.js.map +1 -0
- package/dist/{chunk-DYWSG42B.mjs → chunk-C4AJWDFB.mjs} +11 -10
- package/dist/chunk-C4AJWDFB.mjs.map +1 -0
- package/dist/{chunk-UOABOFKO.mjs → chunk-CBFK4W4C.mjs} +3 -3
- package/dist/{chunk-UOABOFKO.mjs.map → chunk-CBFK4W4C.mjs.map} +1 -1
- package/dist/{chunk-P5F257N3.js → chunk-CVZXZK2X.js} +35 -34
- package/dist/chunk-CVZXZK2X.js.map +1 -0
- package/dist/{chunk-IHHGT3LP.mjs → chunk-CYAAL3BY.mjs} +6 -5
- package/dist/chunk-CYAAL3BY.mjs.map +1 -0
- package/dist/{chunk-LVK7VXW7.js → chunk-DMPBNWJB.js} +37 -36
- package/dist/chunk-DMPBNWJB.js.map +1 -0
- package/dist/{chunk-ESLKQJQS.mjs → chunk-DXLATMGD.mjs} +6 -5
- package/dist/chunk-DXLATMGD.mjs.map +1 -0
- package/dist/{chunk-P4YYEM4B.js → chunk-EZQ2D47U.js} +7 -10
- package/dist/chunk-EZQ2D47U.js.map +1 -0
- package/dist/{chunk-UWSMHKOF.js → chunk-FUHNEP3Y.js} +164 -163
- package/dist/chunk-FUHNEP3Y.js.map +1 -0
- package/dist/{chunk-YTE6WCBX.js → chunk-JHN2OUWG.js} +64 -63
- package/dist/chunk-JHN2OUWG.js.map +1 -0
- package/dist/{chunk-AMYQSPQC.js → chunk-JLECJI7S.js} +18 -17
- package/dist/chunk-JLECJI7S.js.map +1 -0
- package/dist/{chunk-VPOIX2DY.js → chunk-KMNWPC64.js} +40 -39
- package/dist/chunk-KMNWPC64.js.map +1 -0
- package/dist/{chunk-VUAGVZJM.mjs → chunk-NJ6HH4QP.mjs} +6 -5
- package/dist/chunk-NJ6HH4QP.mjs.map +1 -0
- package/dist/{chunk-OZNTQROP.mjs → chunk-PLTLRL2V.mjs} +7 -10
- package/dist/chunk-PLTLRL2V.mjs.map +1 -0
- package/dist/{chunk-WEZ722BS.mjs → chunk-PMMP76MV.mjs} +7 -6
- package/dist/chunk-PMMP76MV.mjs.map +1 -0
- package/dist/{chunk-NJZIE4EH.js → chunk-QF6WL7XU.js} +6 -5
- package/dist/chunk-QF6WL7XU.js.map +1 -0
- package/dist/{chunk-QRNFTG6A.js → chunk-QGLGQXJE.js} +4 -4
- package/dist/{chunk-QRNFTG6A.js.map → chunk-QGLGQXJE.js.map} +1 -1
- package/dist/{chunk-GCYYGSHU.js → chunk-R4EKPXX3.js} +564 -1525
- package/dist/chunk-R4EKPXX3.js.map +1 -0
- package/dist/{chunk-S7AV6XEY.js → chunk-RWYG7QHP.js} +128 -138
- package/dist/chunk-RWYG7QHP.js.map +1 -0
- package/dist/{chunk-WBEZATIB.js → chunk-RZ3NDH5S.js} +13 -13
- package/dist/{chunk-WBEZATIB.js.map → chunk-RZ3NDH5S.js.map} +1 -1
- package/dist/{chunk-HGWVJ3VB.mjs → chunk-SJVKID3E.mjs} +4 -3
- package/dist/chunk-SJVKID3E.mjs.map +1 -0
- package/dist/{chunk-7LILNZMR.mjs → chunk-TJEZL72T.mjs} +4 -3
- package/dist/chunk-TJEZL72T.mjs.map +1 -0
- package/dist/{chunk-3WXMBAGN.js → chunk-UDYEUTJC.js} +50 -50
- package/dist/chunk-UDYEUTJC.js.map +1 -0
- package/dist/{chunk-UGJZ3M4Q.js → chunk-VDLMWOQM.js} +55 -54
- package/dist/chunk-VDLMWOQM.js.map +1 -0
- package/dist/{chunk-QTA5I6FC.mjs → chunk-VZIUQE7B.mjs} +54 -64
- package/dist/chunk-VZIUQE7B.mjs.map +1 -0
- package/dist/chunk-WR55H7DH.mjs +934 -0
- package/dist/chunk-WR55H7DH.mjs.map +1 -0
- package/dist/{chunk-ZYVDDSAC.mjs → chunk-YRXDETBK.mjs} +6 -6
- package/dist/{chunk-ZYVDDSAC.mjs.map → chunk-YRXDETBK.mjs.map} +1 -1
- package/dist/{chunk-VDLAZR7S.mjs → chunk-ZYRL3WER.mjs} +5 -4
- package/dist/chunk-ZYRL3WER.mjs.map +1 -0
- package/dist/index.js +826 -825
- package/dist/index.mjs +4 -3
- package/dist/platform/admin/index.js +13 -12
- package/dist/platform/admin/index.mjs +7 -6
- package/dist/platform/agents-workspace.js +10 -9
- package/dist/platform/agents-workspace.mjs +9 -8
- package/dist/platform/app-shell.js +6 -5
- package/dist/platform/app-shell.mjs +5 -4
- package/dist/platform/auth/index.js +30 -29
- package/dist/platform/auth/index.mjs +7 -6
- package/dist/platform/billing/index.js +6 -5
- package/dist/platform/billing/index.mjs +5 -4
- package/dist/platform/impersonation/index.js +6 -5
- package/dist/platform/impersonation/index.mjs +5 -4
- package/dist/platform/index.js +87 -93
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.mjs +23 -29
- package/dist/platform/index.mjs.map +1 -1
- package/dist/platform/pages/index.js +476 -470
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +326 -320
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +10 -9
- package/dist/platform/settings/index.mjs +9 -8
- package/dist/platform/workflow-canvas-shell.js +8 -7
- package/dist/platform/workflow-canvas-shell.mjs +7 -6
- package/package.json +1 -1
- package/dist/chunk-3WXMBAGN.js.map +0 -1
- package/dist/chunk-4OFG6POC.mjs.map +0 -1
- package/dist/chunk-7LILNZMR.mjs.map +0 -1
- package/dist/chunk-AMYQSPQC.js.map +0 -1
- package/dist/chunk-DYWSG42B.mjs.map +0 -1
- package/dist/chunk-ESLKQJQS.mjs.map +0 -1
- package/dist/chunk-GCYYGSHU.js.map +0 -1
- package/dist/chunk-HGWVJ3VB.mjs.map +0 -1
- package/dist/chunk-IHHGT3LP.mjs.map +0 -1
- package/dist/chunk-LVK7VXW7.js.map +0 -1
- package/dist/chunk-MRRFDIUQ.mjs.map +0 -1
- package/dist/chunk-NJZIE4EH.js.map +0 -1
- package/dist/chunk-OZNTQROP.mjs.map +0 -1
- package/dist/chunk-P4YYEM4B.js.map +0 -1
- package/dist/chunk-P5F257N3.js.map +0 -1
- package/dist/chunk-QTA5I6FC.mjs.map +0 -1
- package/dist/chunk-S7AV6XEY.js.map +0 -1
- package/dist/chunk-UGJZ3M4Q.js.map +0 -1
- package/dist/chunk-UWSMHKOF.js.map +0 -1
- package/dist/chunk-VDLAZR7S.mjs.map +0 -1
- package/dist/chunk-VPOIX2DY.js.map +0 -1
- package/dist/chunk-VUAGVZJM.mjs.map +0 -1
- package/dist/chunk-W5YCZOXO.js.map +0 -1
- package/dist/chunk-WEZ722BS.mjs.map +0 -1
- package/dist/chunk-XTXLRQ3H.mjs.map +0 -1
- package/dist/chunk-YTE6WCBX.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormTextarea, FormSelect
|
|
2
|
+
import { ToggleSwitch, StatusBadge, GlassModal, ContextMenu, FormInput, FormTextarea, FormSelect } from './chunk-5LCWQKGQ.mjs';
|
|
3
3
|
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
4
|
-
import { GraphNodeHeader, GraphNodeMeta,
|
|
4
|
+
import { GraphNodeHeader, GraphNodeMeta, GraphNodeIconBubble, GraphNodeBadge } from './chunk-PLTLRL2V.mjs';
|
|
5
|
+
import { Badge, Button, IconButton } from './chunk-WR55H7DH.mjs';
|
|
5
6
|
import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-G7JQ4OCE.mjs';
|
|
6
7
|
import { memo, useState, useRef, useCallback, useEffect, lazy, createContext, useMemo, useContext } from 'react';
|
|
7
8
|
import { Position, NodeResizer, MarkerType, useReactFlow, getBezierPath, BaseEdge, EdgeLabelRenderer, Handle, ReactFlowProvider, useNodesState, useEdgesState, addEdge, BackgroundVariant } from '@xyflow/react';
|
|
@@ -661,32 +662,12 @@ function EdgeInsertPopupComponent({ position, onSelect, onClose }) {
|
|
|
661
662
|
);
|
|
662
663
|
}
|
|
663
664
|
var EdgeInsertPopup = memo(EdgeInsertPopupComponent);
|
|
664
|
-
var
|
|
665
|
-
True:
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
darkBackground: "dark:bg-green-500/20",
|
|
669
|
-
darkText: "dark:text-green-300"
|
|
670
|
-
},
|
|
671
|
-
False: {
|
|
672
|
-
background: "bg-red-100",
|
|
673
|
-
text: "text-red-700",
|
|
674
|
-
darkBackground: "dark:bg-red-500/20",
|
|
675
|
-
darkText: "dark:text-red-300"
|
|
676
|
-
},
|
|
677
|
-
Loop: {
|
|
678
|
-
background: "bg-violet-100",
|
|
679
|
-
text: "text-violet-700",
|
|
680
|
-
darkBackground: "dark:bg-violet-500/20",
|
|
681
|
-
darkText: "dark:text-violet-300"
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
var DEFAULT_LABEL_STYLE = {
|
|
685
|
-
background: "bg-purple-100",
|
|
686
|
-
text: "text-purple-700",
|
|
687
|
-
darkBackground: "dark:bg-purple-500/20",
|
|
688
|
-
darkText: "dark:text-purple-300"
|
|
665
|
+
var LABEL_COLORS = {
|
|
666
|
+
True: "green",
|
|
667
|
+
False: "red",
|
|
668
|
+
Loop: "violet"
|
|
689
669
|
};
|
|
670
|
+
var DEFAULT_LABEL_COLOR = "purple";
|
|
690
671
|
function ConditionalEdgeComponent({
|
|
691
672
|
id,
|
|
692
673
|
source,
|
|
@@ -724,7 +705,7 @@ function ConditionalEdgeComponent({
|
|
|
724
705
|
});
|
|
725
706
|
const edgeData = data;
|
|
726
707
|
const label = edgeData?.label ?? (sourceHandleId === "true-out" ? "True" : void 0) ?? (sourceHandleId === "false-out" ? "False" : void 0) ?? (sourceHandleId === "loop-out" ? "Loop" : void 0);
|
|
727
|
-
const
|
|
708
|
+
const labelColor = label ? LABEL_COLORS[label] ?? DEFAULT_LABEL_COLOR : void 0;
|
|
728
709
|
const showControls = selected || isHovered;
|
|
729
710
|
const handleDeleteEdge = (event) => {
|
|
730
711
|
event.stopPropagation();
|
|
@@ -740,7 +721,7 @@ function ConditionalEdgeComponent({
|
|
|
740
721
|
edgeData?.onInsertNode?.(id, nodeType, { x: midpointX, y: midpointY });
|
|
741
722
|
setShowInsertPopup(false);
|
|
742
723
|
};
|
|
743
|
-
const hasLabel = Boolean(label &&
|
|
724
|
+
const hasLabel = Boolean(label && labelColor);
|
|
744
725
|
const insertButtonOffset = hasLabel ? -20 : 0;
|
|
745
726
|
const deleteButtonOffset = hasLabel ? showInsertPopup ? -40 : -40 : showInsertPopup ? -20 : -20;
|
|
746
727
|
return /* @__PURE__ */ jsxs(
|
|
@@ -761,15 +742,15 @@ function ConditionalEdgeComponent({
|
|
|
761
742
|
),
|
|
762
743
|
/* @__PURE__ */ jsx(BaseEdge, { id, path: edgePath, markerEnd, style }),
|
|
763
744
|
/* @__PURE__ */ jsxs(EdgeLabelRenderer, { children: [
|
|
764
|
-
hasLabel &&
|
|
745
|
+
hasLabel && labelColor && /* @__PURE__ */ jsx(
|
|
765
746
|
"div",
|
|
766
747
|
{
|
|
767
|
-
className:
|
|
748
|
+
className: "nodrag nopan pointer-events-auto absolute",
|
|
768
749
|
style: {
|
|
769
750
|
transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`
|
|
770
751
|
},
|
|
771
752
|
"data-testid": `edge-label-${id}`,
|
|
772
|
-
children: label
|
|
753
|
+
children: /* @__PURE__ */ jsx(Badge, { color: labelColor, size: "xs", children: label })
|
|
773
754
|
}
|
|
774
755
|
),
|
|
775
756
|
showControls && !showInsertPopup && /* @__PURE__ */ jsx(
|
|
@@ -1937,8 +1918,14 @@ function NodeCardMeta({ compact = false, children }) {
|
|
|
1937
1918
|
return /* @__PURE__ */ jsx(GraphNodeMeta, { compact, children });
|
|
1938
1919
|
}
|
|
1939
1920
|
function NodeCardBadge({ children, className, tone, soft = false }) {
|
|
1940
|
-
|
|
1941
|
-
|
|
1921
|
+
if (tone) {
|
|
1922
|
+
const toneClass = soft ? LOGIC_NODE_BADGE_SOFT_COLORS[tone] : LOGIC_NODE_BADGE_COLORS[tone];
|
|
1923
|
+
return /* @__PURE__ */ jsx(GraphNodeBadge, { className: `inline-flex items-center rounded-full px-2 py-0.5 text-[10px] ${soft ? "font-medium" : "font-semibold"} ${toneClass}`, children });
|
|
1924
|
+
}
|
|
1925
|
+
if (className) {
|
|
1926
|
+
return /* @__PURE__ */ jsx(GraphNodeBadge, { className, children });
|
|
1927
|
+
}
|
|
1928
|
+
return /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", children });
|
|
1942
1929
|
}
|
|
1943
1930
|
function NodeCardDeleteAction({ nodeId, onDelete }) {
|
|
1944
1931
|
if (!onDelete) return null;
|
|
@@ -1963,9 +1950,6 @@ function NodeCardDeleteAction({ nodeId, onDelete }) {
|
|
|
1963
1950
|
}
|
|
1964
1951
|
);
|
|
1965
1952
|
}
|
|
1966
|
-
function NodeCardBranchLabel({ children, className }) {
|
|
1967
|
-
return /* @__PURE__ */ jsx("span", { className, children });
|
|
1968
|
-
}
|
|
1969
1953
|
var BASE_HANDLE_CLASS = "!h-3 !w-3 !border-2 !border-white dark:!border-gray-800";
|
|
1970
1954
|
function useResolvedPosition(position) {
|
|
1971
1955
|
const layoutDirection = useWorkflowStore((s) => s.layoutDirection);
|
|
@@ -2113,21 +2097,18 @@ var AgentFlowNode = memo(function AgentFlowNode2({ id, data, selected }) {
|
|
|
2113
2097
|
] })
|
|
2114
2098
|
] }),
|
|
2115
2099
|
/* @__PURE__ */ jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
2116
|
-
/* @__PURE__ */ jsx(
|
|
2100
|
+
/* @__PURE__ */ jsx(Badge, { color: "indigo", size: "xs", children: "Agent" }),
|
|
2117
2101
|
(() => {
|
|
2118
2102
|
const tier = getAgentTier(Number(data.agent.elo ?? 0));
|
|
2119
|
-
return /* @__PURE__ */ jsx(
|
|
2103
|
+
return /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: tier.pillColor, children: tier.key });
|
|
2120
2104
|
})(),
|
|
2121
|
-
/* @__PURE__ */
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
] }),
|
|
2125
|
-
/* @__PURE__ */ jsx(NodeCardBadge, { className: "rounded-full bg-blue-50 px-2 py-0.5 text-[10px] font-medium text-blue-700 dark:bg-blue-900/25 dark:text-blue-300", children: data.agent.modelId }),
|
|
2126
|
-
/* @__PURE__ */ jsxs(NodeCardBadge, { className: "rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-600 dark:bg-white/10 dark:text-gray-300", children: [
|
|
2105
|
+
/* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: frameworkMeta.badgeColor, icon: /* @__PURE__ */ jsx(frameworkMeta.IconComponent, { className: "h-3 w-3" }), children: frameworkMeta.label }),
|
|
2106
|
+
/* @__PURE__ */ jsx(Badge, { color: "blue", size: "xs", children: data.agent.modelId }),
|
|
2107
|
+
/* @__PURE__ */ jsxs(Badge, { color: "zinc", size: "xs", children: [
|
|
2127
2108
|
"T: ",
|
|
2128
2109
|
data.agent.temperature
|
|
2129
2110
|
] }),
|
|
2130
|
-
/* @__PURE__ */ jsxs(
|
|
2111
|
+
/* @__PURE__ */ jsxs(Badge, { color: "zinc", size: "xs", children: [
|
|
2131
2112
|
"v",
|
|
2132
2113
|
data.agent.activePromptVersion
|
|
2133
2114
|
] }),
|
|
@@ -2135,7 +2116,16 @@ var AgentFlowNode = memo(function AgentFlowNode2({ id, data, selected }) {
|
|
|
2135
2116
|
/* @__PURE__ */ jsx("div", { className: "w-full" }),
|
|
2136
2117
|
/* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-1 border-t border-gray-200/20 pt-1 dark:border-white/5", children: [
|
|
2137
2118
|
/* @__PURE__ */ jsx(CommandLineIcon, { className: "h-3 w-3 shrink-0 text-amber-500 dark:text-amber-400" }),
|
|
2138
|
-
data.agentTools.slice(0, 3).map((tool) => /* @__PURE__ */ jsx(
|
|
2119
|
+
data.agentTools.slice(0, 3).map((tool) => /* @__PURE__ */ jsx(
|
|
2120
|
+
Badge,
|
|
2121
|
+
{
|
|
2122
|
+
color: tool.enabled ? "amber" : "zinc",
|
|
2123
|
+
size: "xs",
|
|
2124
|
+
className: tool.enabled ? "" : "line-through",
|
|
2125
|
+
children: tool.name
|
|
2126
|
+
},
|
|
2127
|
+
tool.id
|
|
2128
|
+
)),
|
|
2139
2129
|
data.agentTools.length > 3 && /* @__PURE__ */ jsxs("span", { className: "text-[9px] text-gray-400 dark:text-gray-500", children: [
|
|
2140
2130
|
"+",
|
|
2141
2131
|
data.agentTools.length - 3
|
|
@@ -2237,9 +2227,9 @@ var AgentToolFlowNode = memo(function AgentToolFlowNode2({ id, data, selected })
|
|
|
2237
2227
|
)
|
|
2238
2228
|
] }),
|
|
2239
2229
|
/* @__PURE__ */ jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
2240
|
-
/* @__PURE__ */ jsx(
|
|
2241
|
-
/* @__PURE__ */ jsx(
|
|
2242
|
-
agentTool.parameters && agentTool.parameters.length > 0 && /* @__PURE__ */ jsxs(
|
|
2230
|
+
/* @__PURE__ */ jsx(Badge, { color: "amber", size: "xs", children: t("agentToolNode") }),
|
|
2231
|
+
/* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: pill, children: category }),
|
|
2232
|
+
agentTool.parameters && agentTool.parameters.length > 0 && /* @__PURE__ */ jsxs(Badge, { color: "zinc", size: "xs", children: [
|
|
2243
2233
|
agentTool.parameters.length,
|
|
2244
2234
|
" params"
|
|
2245
2235
|
] }),
|
|
@@ -2346,8 +2336,8 @@ var ToolFlowNode = memo(function ToolFlowNode2({ id, data, selected }) {
|
|
|
2346
2336
|
] }),
|
|
2347
2337
|
/* @__PURE__ */ jsxs(NodeCardMeta, { compact: isCompact, children: [
|
|
2348
2338
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2349
|
-
/* @__PURE__ */ jsx(
|
|
2350
|
-
/* @__PURE__ */ jsx(
|
|
2339
|
+
/* @__PURE__ */ jsx(Badge, { color: "teal", size: "xs", children: t("nodeType") }),
|
|
2340
|
+
/* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: categoryPill, children: tool.category }),
|
|
2351
2341
|
/* @__PURE__ */ jsxs("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
|
|
2352
2342
|
String(tool.timeoutMs ?? ""),
|
|
2353
2343
|
"ms"
|
|
@@ -2404,7 +2394,7 @@ var RuleFlowNode = memo(function RuleFlowNode2({ id, data, selected }) {
|
|
|
2404
2394
|
] }),
|
|
2405
2395
|
!isCompact && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-between", children: [
|
|
2406
2396
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2407
|
-
/* @__PURE__ */ jsx(
|
|
2397
|
+
/* @__PURE__ */ jsx(Badge, { color: "violet", size: "xs", children: t("ruleEngine") }),
|
|
2408
2398
|
contextVariableCount > 0 && /* @__PURE__ */ jsxs("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
|
|
2409
2399
|
contextVariableCount,
|
|
2410
2400
|
" vars"
|
|
@@ -2498,8 +2488,8 @@ var RuleFlowNode = memo(function RuleFlowNode2({ id, data, selected }) {
|
|
|
2498
2488
|
] }),
|
|
2499
2489
|
!isCompact && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-between", children: [
|
|
2500
2490
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2501
|
-
/* @__PURE__ */ jsx(
|
|
2502
|
-
/* @__PURE__ */ jsx(
|
|
2491
|
+
/* @__PURE__ */ jsx(Badge, { color: "violet", size: "xs", children: t("nodeType") }),
|
|
2492
|
+
/* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: typePill, children: adjustmentType }),
|
|
2503
2493
|
/* @__PURE__ */ jsxs("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
|
|
2504
2494
|
"P",
|
|
2505
2495
|
String(rule.priority ?? "")
|
|
@@ -2577,8 +2567,8 @@ var EntityFlowNode = memo(function EntityFlowNode2({ id, data, selected }) {
|
|
|
2577
2567
|
] }),
|
|
2578
2568
|
/* @__PURE__ */ jsxs(NodeCardMeta, { compact: isCompact, children: [
|
|
2579
2569
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2580
|
-
/* @__PURE__ */ jsx(
|
|
2581
|
-
/* @__PURE__ */ jsxs(
|
|
2570
|
+
/* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: badgeColor, children: t("entityNodeType") }),
|
|
2571
|
+
/* @__PURE__ */ jsxs(Badge, { color: "zinc", size: "xs", className: badgeColor, children: [
|
|
2582
2572
|
fieldCount,
|
|
2583
2573
|
" ",
|
|
2584
2574
|
t("entityFields")
|
|
@@ -2739,8 +2729,8 @@ var IfElseFlowNode = memo(function IfElseFlowNode2({ id, data, selected }) {
|
|
|
2739
2729
|
] }),
|
|
2740
2730
|
/* @__PURE__ */ jsx(NodeCardDeleteAction, { nodeId: id, onDelete })
|
|
2741
2731
|
] }),
|
|
2742
|
-
/* @__PURE__ */ jsx(
|
|
2743
|
-
/* @__PURE__ */ jsx(
|
|
2732
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute -right-12 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsx(StatusBadge, { status: "success", label: t("ifBranchLabel"), size: "sm" }) }),
|
|
2733
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute bottom-[-1.9rem] left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsx(StatusBadge, { status: "error", label: t("elseBranchLabel"), size: "sm" }) })
|
|
2744
2734
|
]
|
|
2745
2735
|
}
|
|
2746
2736
|
),
|
|
@@ -3500,8 +3490,8 @@ var DatasourceFlowNode = memo(function DatasourceFlowNode2({ id, data, selected
|
|
|
3500
3490
|
] }),
|
|
3501
3491
|
/* @__PURE__ */ jsxs(NodeCardMeta, { compact: isCompact, children: [
|
|
3502
3492
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
3503
|
-
config.dialect && /* @__PURE__ */ jsx(
|
|
3504
|
-
readOnly && /* @__PURE__ */ jsx(
|
|
3493
|
+
config.dialect && /* @__PURE__ */ jsx(Badge, { color: "cyan", size: "xs", children: config.dialect }),
|
|
3494
|
+
readOnly && /* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", children: "sample" }),
|
|
3505
3495
|
/* @__PURE__ */ jsx("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
|
|
3506
3496
|
columnCount > 0 ? `${columnCount} cols` : null,
|
|
3507
3497
|
filterCount > 0 ? `${filterCount} filters` : null,
|
|
@@ -3630,7 +3620,7 @@ var GroupFlowNode = memo(function GroupFlowNode2({ id, data, selected }) {
|
|
|
3630
3620
|
] })
|
|
3631
3621
|
] }),
|
|
3632
3622
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-between", children: [
|
|
3633
|
-
/* @__PURE__ */ jsx(
|
|
3623
|
+
/* @__PURE__ */ jsx(Badge, { color: "zinc", size: "xs", className: colorScheme.text, children: translations("groupNode") }),
|
|
3634
3624
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
3635
3625
|
/* @__PURE__ */ jsx(
|
|
3636
3626
|
"button",
|
|
@@ -8593,5 +8583,5 @@ function Workspace({
|
|
|
8593
8583
|
}
|
|
8594
8584
|
|
|
8595
8585
|
export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CATEGORY_COLORS, CATEGORY_PILL_COLORS, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EXPERIMENTAL_NODE_TYPES, 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, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeCardBadge, NodeCardDeleteAction, NodeCardHeader, NodeCardMeta, NodeContextMenu, NodeIconBubble, NodeInteractiveCard, NodeRunningIndicator, NoteFlowNode, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, QuestionClassifierFlowNode, RuleFlowNode, SelectionContextMenu, StartFlowNode, StrandsIcon, TemplateTransformFlowNode, ToolFlowNode, VariableAggregatorFlowNode, VariableAssignerFlowNode, WorkflowBuilderProvider, WorkflowCanvas, WorkflowHandle, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isFrameworkCompatibleWithProviders, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
|
|
8596
|
-
//# sourceMappingURL=chunk-
|
|
8597
|
-
//# sourceMappingURL=chunk-
|
|
8586
|
+
//# sourceMappingURL=chunk-VZIUQE7B.mjs.map
|
|
8587
|
+
//# sourceMappingURL=chunk-VZIUQE7B.mjs.map
|