@datatechsolutions/ui 2.11.47 → 2.11.48
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.js +108 -108
- package/dist/astrlabe/index.mjs +2 -2
- package/dist/astrlabe/workflow-canvas.js +2 -2
- package/dist/astrlabe/workflow-canvas.mjs +1 -1
- package/dist/{chunk-5KDFTL4I.js → chunk-NWELMK3Y.js} +3 -2
- package/dist/chunk-NWELMK3Y.js.map +1 -0
- package/dist/{chunk-KDNDLSDW.mjs → chunk-XDS3RWPA.mjs} +3 -2
- package/dist/chunk-XDS3RWPA.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/astrlabe/contracts.d.mts +0 -309
- package/dist/astrlabe/contracts.d.ts +0 -309
- package/dist/astrlabe/graph-node.d.mts +0 -28
- package/dist/astrlabe/graph-node.d.ts +0 -28
- package/dist/astrlabe/index.d.mts +0 -749
- package/dist/astrlabe/index.d.ts +0 -749
- package/dist/astrlabe/utils.d.mts +0 -71
- package/dist/astrlabe/utils.d.ts +0 -71
- package/dist/astrlabe/workflow-canvas.d.mts +0 -5
- package/dist/astrlabe/workflow-canvas.d.ts +0 -5
- package/dist/astrlabe/workflow-preview-canvas.d.mts +0 -10
- package/dist/astrlabe/workflow-preview-canvas.d.ts +0 -10
- package/dist/brand/index.d.mts +0 -85
- package/dist/brand/index.d.ts +0 -85
- package/dist/chunk-5KDFTL4I.js.map +0 -1
- package/dist/chunk-KDNDLSDW.mjs.map +0 -1
- package/dist/dynamic-island-confirm-Bw24Ll2r.d.mts +0 -114
- package/dist/dynamic-island-confirm-Bw24Ll2r.d.ts +0 -114
- package/dist/index.d.mts +0 -4673
- package/dist/index.d.ts +0 -4673
- package/dist/lib/i18n-context.d.mts +0 -36
- package/dist/lib/i18n-context.d.ts +0 -36
- package/dist/lib/router-context.d.mts +0 -35
- package/dist/lib/router-context.d.ts +0 -35
- package/dist/workflow-canvas-D4928AfA.d.mts +0 -273
- package/dist/workflow-canvas-NSxfr5dy.d.ts +0 -273
package/dist/astrlabe/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkNWELMK3Y_js = require('../chunk-NWELMK3Y.js');
|
|
5
5
|
var chunk2IOPJ5BM_js = require('../chunk-2IOPJ5BM.js');
|
|
6
6
|
require('../chunk-UZ3CMNUJ.js');
|
|
7
7
|
var chunkYXN2K77G_js = require('../chunk-YXN2K77G.js');
|
|
@@ -83,7 +83,7 @@ function OutputCard({ label, value }) {
|
|
|
83
83
|
function AgentProfileHeader({ agent, models, t, selectedModelId, setSelectedModelId, selectedFramework, temperature, setTemperature, elo, setElo, onChanged }) {
|
|
84
84
|
const modelName = models.find((model) => model.id === selectedModelId)?.name ?? selectedModelId ?? "\u2014";
|
|
85
85
|
const avatarUrl = agent.avatar;
|
|
86
|
-
const frameworkMeta =
|
|
86
|
+
const frameworkMeta = chunkNWELMK3Y_js.getFrameworkMeta(selectedFramework);
|
|
87
87
|
const tierInfo = getEloTier(elo);
|
|
88
88
|
const difficultyConfig = {
|
|
89
89
|
beginner: { color: "bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-400", labelKey: "agentDrawer.tierBeginner" },
|
|
@@ -359,13 +359,13 @@ function AgentCapabilityCard({ elo, setElo, models, selectedModelId, setSelected
|
|
|
359
359
|
] });
|
|
360
360
|
}
|
|
361
361
|
function ConfigTab({ models, t, selectedModelId, setSelectedModelId, selectedFramework, setSelectedFramework, markDirty, connectedProviderTypes }) {
|
|
362
|
-
const frameworkKeys = Object.keys(
|
|
362
|
+
const frameworkKeys = Object.keys(chunkNWELMK3Y_js.FRAMEWORK_META);
|
|
363
363
|
const hasProviderConstraints = connectedProviderTypes.length > 0;
|
|
364
|
-
const compatibleModels =
|
|
364
|
+
const compatibleModels = chunkNWELMK3Y_js.getCompatibleModels(models, selectedFramework);
|
|
365
365
|
const handleFrameworkChange = react.useCallback((newFramework) => {
|
|
366
366
|
setSelectedFramework(newFramework);
|
|
367
|
-
if (!
|
|
368
|
-
const compatible =
|
|
367
|
+
if (!chunkNWELMK3Y_js.isModelCompatibleWithFramework(selectedModelId, newFramework)) {
|
|
368
|
+
const compatible = chunkNWELMK3Y_js.getCompatibleModels(models, newFramework);
|
|
369
369
|
if (compatible.length > 0) {
|
|
370
370
|
setSelectedModelId(compatible[0].id);
|
|
371
371
|
}
|
|
@@ -376,10 +376,10 @@ function ConfigTab({ models, t, selectedModelId, setSelectedModelId, selectedFra
|
|
|
376
376
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
377
377
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-2 block text-xs font-medium text-gray-500 dark:text-gray-400", children: t("agentDrawer.framework") }),
|
|
378
378
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1.5", children: frameworkKeys.map((key) => {
|
|
379
|
-
const meta =
|
|
379
|
+
const meta = chunkNWELMK3Y_js.FRAMEWORK_META[key];
|
|
380
380
|
const isSelected = key === selectedFramework;
|
|
381
|
-
const compatCount =
|
|
382
|
-
const isCompatibleWithProviders = !hasProviderConstraints ||
|
|
381
|
+
const compatCount = chunkNWELMK3Y_js.getCompatibleModels(models, key).length;
|
|
382
|
+
const isCompatibleWithProviders = !hasProviderConstraints || chunkNWELMK3Y_js.isFrameworkCompatibleWithProviders(key, connectedProviderTypes);
|
|
383
383
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
384
384
|
"button",
|
|
385
385
|
{
|
|
@@ -411,7 +411,7 @@ function ConfigTab({ models, t, selectedModelId, setSelectedModelId, selectedFra
|
|
|
411
411
|
] }),
|
|
412
412
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-2", children: models.map((model) => {
|
|
413
413
|
const isSelected = model.id === selectedModelId;
|
|
414
|
-
const isCompatible =
|
|
414
|
+
const isCompatible = chunkNWELMK3Y_js.isModelCompatibleWithFramework(model.id, selectedFramework);
|
|
415
415
|
const { IconComponent, color, providerLabel } = getModelIcon(model.id);
|
|
416
416
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
417
417
|
"button",
|
|
@@ -510,7 +510,7 @@ function PromptTab({ agent, temperature, setTemperature, markDirty, t }) {
|
|
|
510
510
|
] });
|
|
511
511
|
}
|
|
512
512
|
function ResultsTab({ agentId, t }) {
|
|
513
|
-
const nodeResults =
|
|
513
|
+
const nodeResults = chunkNWELMK3Y_js.useWorkflowStore((state) => state.nodeResults);
|
|
514
514
|
const agentResult = react.useMemo(() => {
|
|
515
515
|
return nodeResults[agentId] ?? null;
|
|
516
516
|
}, [nodeResults, agentId]);
|
|
@@ -600,10 +600,10 @@ function ModelsTab({ modelProviders, selectedProviderId, onSelectProvider, model
|
|
|
600
600
|
const providerModels = modelsByProvider.find((p) => p.provider.id === selectedProviderId);
|
|
601
601
|
if (!providerModels || providerModels.models.length === 0) return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-400 dark:text-gray-500", children: t("agentDrawer.noModelsForProvider") });
|
|
602
602
|
const compatibleModels = providerModels.models.filter(
|
|
603
|
-
(m) =>
|
|
603
|
+
(m) => chunkNWELMK3Y_js.isModelCompatibleWithFramework(m.id, agentFramework)
|
|
604
604
|
);
|
|
605
605
|
const incompatibleModels = providerModels.models.filter(
|
|
606
|
-
(m) => !
|
|
606
|
+
(m) => !chunkNWELMK3Y_js.isModelCompatibleWithFramework(m.id, agentFramework)
|
|
607
607
|
);
|
|
608
608
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
609
609
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-2 block text-xs font-medium text-gray-500 dark:text-gray-400", children: t("agentDrawer.selectModel") }),
|
|
@@ -676,7 +676,7 @@ function ToolsTab({ agentTools, enabledToolIds, onToggle, agentFramework, t }) {
|
|
|
676
676
|
] }),
|
|
677
677
|
tool.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-[10px] text-gray-400 dark:text-gray-500", children: tool.description }),
|
|
678
678
|
tool.compatibleFrameworks && tool.compatibleFrameworks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 flex flex-wrap gap-0.5", children: tool.compatibleFrameworks.map((framework) => {
|
|
679
|
-
const meta =
|
|
679
|
+
const meta = chunkNWELMK3Y_js.getFrameworkMeta(framework);
|
|
680
680
|
const isCurrentFw = framework === agentFramework;
|
|
681
681
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: `inline-flex items-center gap-0.5 rounded px-1.5 py-0.5 text-[8px] font-medium ${isCurrentFw ? meta.badgeColor : "bg-gray-100 text-gray-500 dark:bg-white/5 dark:text-gray-400"}`, children: [
|
|
682
682
|
/* @__PURE__ */ jsxRuntime.jsx(meta.IconComponent, { className: "h-2.5 w-2.5" }),
|
|
@@ -714,9 +714,9 @@ function ToolsTab({ agentTools, enabledToolIds, onToggle, agentFramework, t }) {
|
|
|
714
714
|
}
|
|
715
715
|
function AgentModal({ onSaved }) {
|
|
716
716
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
717
|
-
const activeModal =
|
|
718
|
-
const agentData =
|
|
719
|
-
const closeModal =
|
|
717
|
+
const activeModal = chunkNWELMK3Y_js.useModalStore((s) => s.activeModal);
|
|
718
|
+
const agentData = chunkNWELMK3Y_js.useModalStore((s) => s.agentData);
|
|
719
|
+
const closeModal = chunkNWELMK3Y_js.useModalStore((s) => s.closeModal);
|
|
720
720
|
const open = activeModal === "agent";
|
|
721
721
|
const agent = agentData?.agent ?? null;
|
|
722
722
|
const models = agentData?.models ?? [];
|
|
@@ -943,7 +943,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
943
943
|
const markDirty = useSubworkflowStore((s) => s.markDirty);
|
|
944
944
|
const markSaved = useSubworkflowStore((s) => s.markSaved);
|
|
945
945
|
const closeModal = useSubworkflowStore((s) => s.closeModal);
|
|
946
|
-
const agentBehind =
|
|
946
|
+
const agentBehind = chunkNWELMK3Y_js.useModalStore((s) => s.activeModal === "agent" ? s.agentData?.agent?.name : null);
|
|
947
947
|
const isCreateMode = !tool?.toolId;
|
|
948
948
|
const initialGraph = react.useMemo(() => {
|
|
949
949
|
const config = tool?.config;
|
|
@@ -972,9 +972,9 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
972
972
|
}, [tool, onSaved, name, category, description, timeoutMs, latestGraphRef, markSaved]);
|
|
973
973
|
if (!tool) return null;
|
|
974
974
|
const categoryKey = category ?? "external";
|
|
975
|
-
const gradient = tool.color ??
|
|
976
|
-
const categoryPill =
|
|
977
|
-
const IconComponent =
|
|
975
|
+
const gradient = tool.color ?? chunkNWELMK3Y_js.CATEGORY_COLORS[categoryKey] ?? chunkNWELMK3Y_js.CATEGORY_COLORS.external;
|
|
976
|
+
const categoryPill = chunkNWELMK3Y_js.CATEGORY_PILL_COLORS[categoryKey] ?? chunkNWELMK3Y_js.CATEGORY_PILL_COLORS.external;
|
|
977
|
+
const IconComponent = chunkNWELMK3Y_js.ICON_MAP[tool.icon ?? ""] ?? outline.ArrowPathRoundedSquareIcon;
|
|
978
978
|
const graph = latestGraphRef.current;
|
|
979
979
|
const startNode = graph.nodes.find((n) => n.type === "start");
|
|
980
980
|
const endNode = graph.nodes.find((n) => n.type === "end");
|
|
@@ -1039,7 +1039,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
1039
1039
|
{
|
|
1040
1040
|
type: "button",
|
|
1041
1041
|
onClick: () => setCategory(cat),
|
|
1042
|
-
className: `rounded-full px-2 py-1 text-[9px] font-semibold transition-all ${cat === category ? `${
|
|
1042
|
+
className: `rounded-full px-2 py-1 text-[9px] font-semibold transition-all ${cat === category ? `${chunkNWELMK3Y_js.CATEGORY_PILL_COLORS[cat] ?? chunkNWELMK3Y_js.CATEGORY_PILL_COLORS.external} ring-1 ring-current/20` : "bg-white/30 text-gray-500 hover:bg-white/50 dark:bg-white/5 dark:text-gray-400"}`,
|
|
1043
1043
|
children: cat
|
|
1044
1044
|
},
|
|
1045
1045
|
cat
|
|
@@ -1126,7 +1126,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
1126
1126
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto" })
|
|
1127
1127
|
] }),
|
|
1128
1128
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1129
|
-
|
|
1129
|
+
chunkNWELMK3Y_js.WorkflowCanvas,
|
|
1130
1130
|
{
|
|
1131
1131
|
initialGraph,
|
|
1132
1132
|
agents: [],
|
|
@@ -1184,9 +1184,9 @@ function WorkspaceModal({
|
|
|
1184
1184
|
}
|
|
1185
1185
|
function PipelineSettingsModal({ onSave }) {
|
|
1186
1186
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
1187
|
-
const activeModal =
|
|
1188
|
-
const data =
|
|
1189
|
-
const closeModal =
|
|
1187
|
+
const activeModal = chunkNWELMK3Y_js.useModalStore((s) => s.activeModal);
|
|
1188
|
+
const data = chunkNWELMK3Y_js.useModalStore((s) => s.pipelineSettingsData);
|
|
1189
|
+
const closeModal = chunkNWELMK3Y_js.useModalStore((s) => s.closeModal);
|
|
1190
1190
|
const open = activeModal === "pipeline-settings";
|
|
1191
1191
|
const [nameValue, setNameValue] = react.useState("");
|
|
1192
1192
|
const [descriptionValue, setDescriptionValue] = react.useState("");
|
|
@@ -1405,8 +1405,8 @@ function CollapsibleSection({ title, icon, colorClass, defaultOpen = true, count
|
|
|
1405
1405
|
] });
|
|
1406
1406
|
}
|
|
1407
1407
|
function LogicNodeItemCard({ item, translationFunction }) {
|
|
1408
|
-
const IconComponent =
|
|
1409
|
-
const gradient =
|
|
1408
|
+
const IconComponent = chunkNWELMK3Y_js.LOGIC_ICON_MAP[item.nodeType];
|
|
1409
|
+
const gradient = chunkNWELMK3Y_js.LOGIC_NODE_GRADIENTS[item.nodeType] ?? "from-gray-400 to-gray-500";
|
|
1410
1410
|
const defaultConfig = chunkPWBWP5FJ_js.createDefaultLogicNodeConfig(item.nodeType);
|
|
1411
1411
|
const configJson = defaultConfig ? JSON.stringify(defaultConfig) : void 0;
|
|
1412
1412
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1649,8 +1649,8 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
|
|
|
1649
1649
|
limit: entity.defaultLimit
|
|
1650
1650
|
});
|
|
1651
1651
|
const dsLogo = getDatasourceLogo(entity.id);
|
|
1652
|
-
const EntityIcon =
|
|
1653
|
-
const entityGradient =
|
|
1652
|
+
const EntityIcon = chunkNWELMK3Y_js.getEntityIcon(entity.id);
|
|
1653
|
+
const entityGradient = chunkNWELMK3Y_js.getEntityGradient(entity.id);
|
|
1654
1654
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1655
1655
|
"div",
|
|
1656
1656
|
{
|
|
@@ -2047,9 +2047,9 @@ function formatDuration2(durationMs) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
function RunPanel({ open, onClose, onRun, onStop }) {
|
|
2049
2049
|
const translations = chunkYXN2K77G_js.useTranslations("agents.workflow.runPanel");
|
|
2050
|
-
const nodes =
|
|
2051
|
-
const isRunning =
|
|
2052
|
-
const nodeResults =
|
|
2050
|
+
const nodes = chunkNWELMK3Y_js.useWorkflowStore((state) => state.nodes);
|
|
2051
|
+
const isRunning = chunkNWELMK3Y_js.useWorkflowStore((state) => state.isRunning);
|
|
2052
|
+
const nodeResults = chunkNWELMK3Y_js.useWorkflowStore((state) => state.nodeResults);
|
|
2053
2053
|
const startNode = nodes.find((node) => node.type === "start");
|
|
2054
2054
|
const hasEndNode = nodes.some((node) => node.type === "end");
|
|
2055
2055
|
const hasValidStartConfig = Boolean(
|
|
@@ -2334,8 +2334,8 @@ function inferVariables(config, nodeType) {
|
|
|
2334
2334
|
}
|
|
2335
2335
|
function VariableInspector({ open, onClose }) {
|
|
2336
2336
|
const translations = chunkYXN2K77G_js.useTranslations("agents.workflow.variableInspector");
|
|
2337
|
-
const nodes =
|
|
2338
|
-
const edges =
|
|
2337
|
+
const nodes = chunkNWELMK3Y_js.useWorkflowStore((state) => state.nodes);
|
|
2338
|
+
const edges = chunkNWELMK3Y_js.useWorkflowStore((state) => state.edges);
|
|
2339
2339
|
const [expandedNodes, setExpandedNodes] = react.useState(/* @__PURE__ */ new Set());
|
|
2340
2340
|
const toggleNodeExpansion = react.useCallback((nodeId) => {
|
|
2341
2341
|
setExpandedNodes((current) => {
|
|
@@ -2397,8 +2397,8 @@ function VariableInspector({ open, onClose }) {
|
|
|
2397
2397
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-gray-500 dark:text-gray-400", children: translations("noNodes") })
|
|
2398
2398
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "divide-y divide-gray-100 dark:divide-gray-800", children: nodeVariableEntries.map((entry) => {
|
|
2399
2399
|
const isExpanded = expandedNodes.has(entry.nodeId);
|
|
2400
|
-
const IconComponent =
|
|
2401
|
-
const gradient =
|
|
2400
|
+
const IconComponent = chunkNWELMK3Y_js.LOGIC_ICON_MAP[entry.nodeType];
|
|
2401
|
+
const gradient = chunkNWELMK3Y_js.LOGIC_NODE_GRADIENTS[entry.nodeType] ?? "from-gray-400 to-gray-500";
|
|
2402
2402
|
const inputVariables = entry.variables.filter((variable) => variable.direction === "input");
|
|
2403
2403
|
const outputVariables = entry.variables.filter((variable) => variable.direction === "output");
|
|
2404
2404
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": `variable-node-${entry.nodeId}`, children: [
|
|
@@ -2464,7 +2464,7 @@ function RunInputDialog({
|
|
|
2464
2464
|
onRun
|
|
2465
2465
|
}) {
|
|
2466
2466
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow.runInputDialog");
|
|
2467
|
-
const nodes =
|
|
2467
|
+
const nodes = chunkNWELMK3Y_js.useWorkflowStore((state) => state.nodes);
|
|
2468
2468
|
const [values, setValues] = react.useState({});
|
|
2469
2469
|
const inputVariableNames = react.useMemo(() => {
|
|
2470
2470
|
const storeStartNode = nodes.find((node) => node.type === "start");
|
|
@@ -2545,8 +2545,8 @@ function PreviewPanel({ open, onClose, workflowId, loadRuns }) {
|
|
|
2545
2545
|
const [isLoadingRuns, setIsLoadingRuns] = react.useState(false);
|
|
2546
2546
|
const [selectedRun, setSelectedRun] = react.useState(null);
|
|
2547
2547
|
const [selectedNode, setSelectedNode] = react.useState(null);
|
|
2548
|
-
const isRunning =
|
|
2549
|
-
const nodeResults =
|
|
2548
|
+
const isRunning = chunkNWELMK3Y_js.useWorkflowStore((state) => state.isRunning);
|
|
2549
|
+
const nodeResults = chunkNWELMK3Y_js.useWorkflowStore((state) => state.nodeResults);
|
|
2550
2550
|
const refreshRuns = react.useCallback(async () => {
|
|
2551
2551
|
setIsLoadingRuns(true);
|
|
2552
2552
|
try {
|
|
@@ -2702,7 +2702,7 @@ var AutoSaveWorkspace = react.memo(function AutoSaveWorkspace2({
|
|
|
2702
2702
|
onAutoSaveGraph(graph);
|
|
2703
2703
|
}, [onAutoSaveGraph, onGraphSnapshot]);
|
|
2704
2704
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2705
|
-
|
|
2705
|
+
chunkNWELMK3Y_js.Workspace,
|
|
2706
2706
|
{
|
|
2707
2707
|
...workspaceProps,
|
|
2708
2708
|
onGraphChange: handleGraphChange
|
|
@@ -3073,14 +3073,14 @@ function DslImportModal({ open, onClose, onImport }) {
|
|
|
3073
3073
|
}
|
|
3074
3074
|
|
|
3075
3075
|
// src/astrlabe/store/selectors.ts
|
|
3076
|
-
var useCanUndo = () =>
|
|
3077
|
-
var useCanRedo = () =>
|
|
3078
|
-
var useHasCopied = () =>
|
|
3079
|
-
var useContextMenu = () =>
|
|
3080
|
-
var useEditingNodeId = () =>
|
|
3081
|
-
var useSelectedNodeCount = () =>
|
|
3082
|
-
var useIsRunning = () =>
|
|
3083
|
-
var useNodeResults = () =>
|
|
3076
|
+
var useCanUndo = () => chunkNWELMK3Y_js.useWorkflowStore((state) => state.past.length > 0);
|
|
3077
|
+
var useCanRedo = () => chunkNWELMK3Y_js.useWorkflowStore((state) => state.future.length > 0);
|
|
3078
|
+
var useHasCopied = () => chunkNWELMK3Y_js.useWorkflowStore((state) => state.clipboard !== null);
|
|
3079
|
+
var useContextMenu = () => chunkNWELMK3Y_js.useWorkflowStore((state) => state.contextMenu);
|
|
3080
|
+
var useEditingNodeId = () => chunkNWELMK3Y_js.useWorkflowStore((state) => state.editingNodeId);
|
|
3081
|
+
var useSelectedNodeCount = () => chunkNWELMK3Y_js.useWorkflowStore((state) => state.nodes.filter((node) => node.selected).length);
|
|
3082
|
+
var useIsRunning = () => chunkNWELMK3Y_js.useWorkflowStore((state) => state.isRunning);
|
|
3083
|
+
var useNodeResults = () => chunkNWELMK3Y_js.useWorkflowStore((state) => state.nodeResults);
|
|
3084
3084
|
var DEFAULT_MAX_HISTORY = 50;
|
|
3085
3085
|
function useUndoRedo(nodes, edges, setNodes, setEdges, maxHistory = DEFAULT_MAX_HISTORY) {
|
|
3086
3086
|
const pastRef = react.useRef([]);
|
|
@@ -3360,239 +3360,239 @@ function useHelpLines() {
|
|
|
3360
3360
|
|
|
3361
3361
|
Object.defineProperty(exports, "AgentFlowNode", {
|
|
3362
3362
|
enumerable: true,
|
|
3363
|
-
get: function () { return
|
|
3363
|
+
get: function () { return chunkNWELMK3Y_js.AgentFlowNode; }
|
|
3364
3364
|
});
|
|
3365
3365
|
Object.defineProperty(exports, "AgentToolFlowNode", {
|
|
3366
3366
|
enumerable: true,
|
|
3367
|
-
get: function () { return
|
|
3367
|
+
get: function () { return chunkNWELMK3Y_js.AgentToolFlowNode; }
|
|
3368
3368
|
});
|
|
3369
3369
|
Object.defineProperty(exports, "AnswerFlowNode", {
|
|
3370
3370
|
enumerable: true,
|
|
3371
|
-
get: function () { return
|
|
3371
|
+
get: function () { return chunkNWELMK3Y_js.AnswerFlowNode; }
|
|
3372
3372
|
});
|
|
3373
3373
|
Object.defineProperty(exports, "AnthropicIcon", {
|
|
3374
3374
|
enumerable: true,
|
|
3375
|
-
get: function () { return
|
|
3375
|
+
get: function () { return chunkNWELMK3Y_js.AnthropicIcon; }
|
|
3376
3376
|
});
|
|
3377
3377
|
Object.defineProperty(exports, "CodeFlowNode", {
|
|
3378
3378
|
enumerable: true,
|
|
3379
|
-
get: function () { return
|
|
3379
|
+
get: function () { return chunkNWELMK3Y_js.CodeFlowNode; }
|
|
3380
3380
|
});
|
|
3381
3381
|
Object.defineProperty(exports, "CrewAIIcon", {
|
|
3382
3382
|
enumerable: true,
|
|
3383
|
-
get: function () { return
|
|
3383
|
+
get: function () { return chunkNWELMK3Y_js.CrewAIIcon; }
|
|
3384
3384
|
});
|
|
3385
3385
|
Object.defineProperty(exports, "DocumentExtractorFlowNode", {
|
|
3386
3386
|
enumerable: true,
|
|
3387
|
-
get: function () { return
|
|
3387
|
+
get: function () { return chunkNWELMK3Y_js.DocumentExtractorFlowNode; }
|
|
3388
3388
|
});
|
|
3389
3389
|
Object.defineProperty(exports, "EndFlowNode", {
|
|
3390
3390
|
enumerable: true,
|
|
3391
|
-
get: function () { return
|
|
3391
|
+
get: function () { return chunkNWELMK3Y_js.EndFlowNode; }
|
|
3392
3392
|
});
|
|
3393
3393
|
Object.defineProperty(exports, "EntityFlowNode", {
|
|
3394
3394
|
enumerable: true,
|
|
3395
|
-
get: function () { return
|
|
3395
|
+
get: function () { return chunkNWELMK3Y_js.EntityFlowNode; }
|
|
3396
3396
|
});
|
|
3397
3397
|
Object.defineProperty(exports, "FRAMEWORK_META", {
|
|
3398
3398
|
enumerable: true,
|
|
3399
|
-
get: function () { return
|
|
3399
|
+
get: function () { return chunkNWELMK3Y_js.FRAMEWORK_META; }
|
|
3400
3400
|
});
|
|
3401
3401
|
Object.defineProperty(exports, "GoogleADKIcon", {
|
|
3402
3402
|
enumerable: true,
|
|
3403
|
-
get: function () { return
|
|
3403
|
+
get: function () { return chunkNWELMK3Y_js.GoogleADKIcon; }
|
|
3404
3404
|
});
|
|
3405
3405
|
Object.defineProperty(exports, "GroupFlowNode", {
|
|
3406
3406
|
enumerable: true,
|
|
3407
|
-
get: function () { return
|
|
3407
|
+
get: function () { return chunkNWELMK3Y_js.GroupFlowNode; }
|
|
3408
3408
|
});
|
|
3409
3409
|
Object.defineProperty(exports, "HttpRequestFlowNode", {
|
|
3410
3410
|
enumerable: true,
|
|
3411
|
-
get: function () { return
|
|
3411
|
+
get: function () { return chunkNWELMK3Y_js.HttpRequestFlowNode; }
|
|
3412
3412
|
});
|
|
3413
3413
|
Object.defineProperty(exports, "IfElseFlowNode", {
|
|
3414
3414
|
enumerable: true,
|
|
3415
|
-
get: function () { return
|
|
3415
|
+
get: function () { return chunkNWELMK3Y_js.IfElseFlowNode; }
|
|
3416
3416
|
});
|
|
3417
3417
|
Object.defineProperty(exports, "IterationFlowNode", {
|
|
3418
3418
|
enumerable: true,
|
|
3419
|
-
get: function () { return
|
|
3419
|
+
get: function () { return chunkNWELMK3Y_js.IterationFlowNode; }
|
|
3420
3420
|
});
|
|
3421
3421
|
Object.defineProperty(exports, "IterationStartFlowNode", {
|
|
3422
3422
|
enumerable: true,
|
|
3423
|
-
get: function () { return
|
|
3423
|
+
get: function () { return chunkNWELMK3Y_js.IterationStartFlowNode; }
|
|
3424
3424
|
});
|
|
3425
3425
|
Object.defineProperty(exports, "KnowledgeBaseFlowNode", {
|
|
3426
3426
|
enumerable: true,
|
|
3427
|
-
get: function () { return
|
|
3427
|
+
get: function () { return chunkNWELMK3Y_js.KnowledgeBaseFlowNode; }
|
|
3428
3428
|
});
|
|
3429
3429
|
Object.defineProperty(exports, "LOGIC_ICON_MAP", {
|
|
3430
3430
|
enumerable: true,
|
|
3431
|
-
get: function () { return
|
|
3431
|
+
get: function () { return chunkNWELMK3Y_js.LOGIC_ICON_MAP; }
|
|
3432
3432
|
});
|
|
3433
3433
|
Object.defineProperty(exports, "LOGIC_NODE_BADGE_COLORS", {
|
|
3434
3434
|
enumerable: true,
|
|
3435
|
-
get: function () { return
|
|
3435
|
+
get: function () { return chunkNWELMK3Y_js.LOGIC_NODE_BADGE_COLORS; }
|
|
3436
3436
|
});
|
|
3437
3437
|
Object.defineProperty(exports, "LOGIC_NODE_GRADIENTS", {
|
|
3438
3438
|
enumerable: true,
|
|
3439
|
-
get: function () { return
|
|
3439
|
+
get: function () { return chunkNWELMK3Y_js.LOGIC_NODE_GRADIENTS; }
|
|
3440
3440
|
});
|
|
3441
3441
|
Object.defineProperty(exports, "LOGIC_NODE_HANDLE_COLORS", {
|
|
3442
3442
|
enumerable: true,
|
|
3443
|
-
get: function () { return
|
|
3443
|
+
get: function () { return chunkNWELMK3Y_js.LOGIC_NODE_HANDLE_COLORS; }
|
|
3444
3444
|
});
|
|
3445
3445
|
Object.defineProperty(exports, "LangChainIcon", {
|
|
3446
3446
|
enumerable: true,
|
|
3447
|
-
get: function () { return
|
|
3447
|
+
get: function () { return chunkNWELMK3Y_js.LangChainIcon; }
|
|
3448
3448
|
});
|
|
3449
3449
|
Object.defineProperty(exports, "ListOperatorFlowNode", {
|
|
3450
3450
|
enumerable: true,
|
|
3451
|
-
get: function () { return
|
|
3451
|
+
get: function () { return chunkNWELMK3Y_js.ListOperatorFlowNode; }
|
|
3452
3452
|
});
|
|
3453
3453
|
Object.defineProperty(exports, "LogicNodeModal", {
|
|
3454
3454
|
enumerable: true,
|
|
3455
|
-
get: function () { return
|
|
3455
|
+
get: function () { return chunkNWELMK3Y_js.LogicNodeModal; }
|
|
3456
3456
|
});
|
|
3457
3457
|
Object.defineProperty(exports, "MINIMAP_NODE_COLORS", {
|
|
3458
3458
|
enumerable: true,
|
|
3459
|
-
get: function () { return
|
|
3459
|
+
get: function () { return chunkNWELMK3Y_js.MINIMAP_NODE_COLORS; }
|
|
3460
3460
|
});
|
|
3461
3461
|
Object.defineProperty(exports, "ModelProviderFlowNode", {
|
|
3462
3462
|
enumerable: true,
|
|
3463
|
-
get: function () { return
|
|
3463
|
+
get: function () { return chunkNWELMK3Y_js.ModelProviderFlowNode; }
|
|
3464
3464
|
});
|
|
3465
3465
|
Object.defineProperty(exports, "NODE_EXECUTION_ACCENT_COLORS", {
|
|
3466
3466
|
enumerable: true,
|
|
3467
|
-
get: function () { return
|
|
3467
|
+
get: function () { return chunkNWELMK3Y_js.NODE_EXECUTION_ACCENT_COLORS; }
|
|
3468
3468
|
});
|
|
3469
3469
|
Object.defineProperty(exports, "NodeCard", {
|
|
3470
3470
|
enumerable: true,
|
|
3471
|
-
get: function () { return
|
|
3471
|
+
get: function () { return chunkNWELMK3Y_js.NodeCard; }
|
|
3472
3472
|
});
|
|
3473
3473
|
Object.defineProperty(exports, "NodeContextMenu", {
|
|
3474
3474
|
enumerable: true,
|
|
3475
|
-
get: function () { return
|
|
3475
|
+
get: function () { return chunkNWELMK3Y_js.NodeContextMenu; }
|
|
3476
3476
|
});
|
|
3477
3477
|
Object.defineProperty(exports, "NoteFlowNode", {
|
|
3478
3478
|
enumerable: true,
|
|
3479
|
-
get: function () { return
|
|
3479
|
+
get: function () { return chunkNWELMK3Y_js.NoteFlowNode; }
|
|
3480
3480
|
});
|
|
3481
3481
|
Object.defineProperty(exports, "OpenAIIcon", {
|
|
3482
3482
|
enumerable: true,
|
|
3483
|
-
get: function () { return
|
|
3483
|
+
get: function () { return chunkNWELMK3Y_js.OpenAIIcon; }
|
|
3484
3484
|
});
|
|
3485
3485
|
Object.defineProperty(exports, "PanelContextMenu", {
|
|
3486
3486
|
enumerable: true,
|
|
3487
|
-
get: function () { return
|
|
3487
|
+
get: function () { return chunkNWELMK3Y_js.PanelContextMenu; }
|
|
3488
3488
|
});
|
|
3489
3489
|
Object.defineProperty(exports, "ParameterExtractorFlowNode", {
|
|
3490
3490
|
enumerable: true,
|
|
3491
|
-
get: function () { return
|
|
3491
|
+
get: function () { return chunkNWELMK3Y_js.ParameterExtractorFlowNode; }
|
|
3492
3492
|
});
|
|
3493
3493
|
Object.defineProperty(exports, "QuestionClassifierFlowNode", {
|
|
3494
3494
|
enumerable: true,
|
|
3495
|
-
get: function () { return
|
|
3495
|
+
get: function () { return chunkNWELMK3Y_js.QuestionClassifierFlowNode; }
|
|
3496
3496
|
});
|
|
3497
3497
|
Object.defineProperty(exports, "RuleFlowNode", {
|
|
3498
3498
|
enumerable: true,
|
|
3499
|
-
get: function () { return
|
|
3499
|
+
get: function () { return chunkNWELMK3Y_js.RuleFlowNode; }
|
|
3500
3500
|
});
|
|
3501
3501
|
Object.defineProperty(exports, "SelectionContextMenu", {
|
|
3502
3502
|
enumerable: true,
|
|
3503
|
-
get: function () { return
|
|
3503
|
+
get: function () { return chunkNWELMK3Y_js.SelectionContextMenu; }
|
|
3504
3504
|
});
|
|
3505
3505
|
Object.defineProperty(exports, "StartFlowNode", {
|
|
3506
3506
|
enumerable: true,
|
|
3507
|
-
get: function () { return
|
|
3507
|
+
get: function () { return chunkNWELMK3Y_js.StartFlowNode; }
|
|
3508
3508
|
});
|
|
3509
3509
|
Object.defineProperty(exports, "StrandsIcon", {
|
|
3510
3510
|
enumerable: true,
|
|
3511
|
-
get: function () { return
|
|
3511
|
+
get: function () { return chunkNWELMK3Y_js.StrandsIcon; }
|
|
3512
3512
|
});
|
|
3513
3513
|
Object.defineProperty(exports, "TemplateTransformFlowNode", {
|
|
3514
3514
|
enumerable: true,
|
|
3515
|
-
get: function () { return
|
|
3515
|
+
get: function () { return chunkNWELMK3Y_js.TemplateTransformFlowNode; }
|
|
3516
3516
|
});
|
|
3517
3517
|
Object.defineProperty(exports, "ToolFlowNode", {
|
|
3518
3518
|
enumerable: true,
|
|
3519
|
-
get: function () { return
|
|
3519
|
+
get: function () { return chunkNWELMK3Y_js.ToolFlowNode; }
|
|
3520
3520
|
});
|
|
3521
3521
|
Object.defineProperty(exports, "VariableAggregatorFlowNode", {
|
|
3522
3522
|
enumerable: true,
|
|
3523
|
-
get: function () { return
|
|
3523
|
+
get: function () { return chunkNWELMK3Y_js.VariableAggregatorFlowNode; }
|
|
3524
3524
|
});
|
|
3525
3525
|
Object.defineProperty(exports, "VariableAssignerFlowNode", {
|
|
3526
3526
|
enumerable: true,
|
|
3527
|
-
get: function () { return
|
|
3527
|
+
get: function () { return chunkNWELMK3Y_js.VariableAssignerFlowNode; }
|
|
3528
3528
|
});
|
|
3529
3529
|
Object.defineProperty(exports, "WorkflowBuilderProvider", {
|
|
3530
3530
|
enumerable: true,
|
|
3531
|
-
get: function () { return
|
|
3531
|
+
get: function () { return chunkNWELMK3Y_js.WorkflowBuilderProvider; }
|
|
3532
3532
|
});
|
|
3533
3533
|
Object.defineProperty(exports, "Workspace", {
|
|
3534
3534
|
enumerable: true,
|
|
3535
|
-
get: function () { return
|
|
3535
|
+
get: function () { return chunkNWELMK3Y_js.Workspace; }
|
|
3536
3536
|
});
|
|
3537
3537
|
Object.defineProperty(exports, "getCompatibleModels", {
|
|
3538
3538
|
enumerable: true,
|
|
3539
|
-
get: function () { return
|
|
3539
|
+
get: function () { return chunkNWELMK3Y_js.getCompatibleModels; }
|
|
3540
3540
|
});
|
|
3541
3541
|
Object.defineProperty(exports, "getDefaultFrameworkForModel", {
|
|
3542
3542
|
enumerable: true,
|
|
3543
|
-
get: function () { return
|
|
3543
|
+
get: function () { return chunkNWELMK3Y_js.getDefaultFrameworkForModel; }
|
|
3544
3544
|
});
|
|
3545
3545
|
Object.defineProperty(exports, "getEntityBadgeColor", {
|
|
3546
3546
|
enumerable: true,
|
|
3547
|
-
get: function () { return
|
|
3547
|
+
get: function () { return chunkNWELMK3Y_js.getEntityBadgeColor; }
|
|
3548
3548
|
});
|
|
3549
3549
|
Object.defineProperty(exports, "getEntityGradient", {
|
|
3550
3550
|
enumerable: true,
|
|
3551
|
-
get: function () { return
|
|
3551
|
+
get: function () { return chunkNWELMK3Y_js.getEntityGradient; }
|
|
3552
3552
|
});
|
|
3553
3553
|
Object.defineProperty(exports, "getEntityHandleColor", {
|
|
3554
3554
|
enumerable: true,
|
|
3555
|
-
get: function () { return
|
|
3555
|
+
get: function () { return chunkNWELMK3Y_js.getEntityHandleColor; }
|
|
3556
3556
|
});
|
|
3557
3557
|
Object.defineProperty(exports, "getEntityIcon", {
|
|
3558
3558
|
enumerable: true,
|
|
3559
|
-
get: function () { return
|
|
3559
|
+
get: function () { return chunkNWELMK3Y_js.getEntityIcon; }
|
|
3560
3560
|
});
|
|
3561
3561
|
Object.defineProperty(exports, "getEntityMinimapColor", {
|
|
3562
3562
|
enumerable: true,
|
|
3563
|
-
get: function () { return
|
|
3563
|
+
get: function () { return chunkNWELMK3Y_js.getEntityMinimapColor; }
|
|
3564
3564
|
});
|
|
3565
3565
|
Object.defineProperty(exports, "getFrameworkMeta", {
|
|
3566
3566
|
enumerable: true,
|
|
3567
|
-
get: function () { return
|
|
3567
|
+
get: function () { return chunkNWELMK3Y_js.getFrameworkMeta; }
|
|
3568
3568
|
});
|
|
3569
3569
|
Object.defineProperty(exports, "getNodeExecutionAccent", {
|
|
3570
3570
|
enumerable: true,
|
|
3571
|
-
get: function () { return
|
|
3571
|
+
get: function () { return chunkNWELMK3Y_js.getNodeExecutionAccent; }
|
|
3572
3572
|
});
|
|
3573
3573
|
Object.defineProperty(exports, "getNodeExecutionAccentRgb", {
|
|
3574
3574
|
enumerable: true,
|
|
3575
|
-
get: function () { return
|
|
3575
|
+
get: function () { return chunkNWELMK3Y_js.getNodeExecutionAccentRgb; }
|
|
3576
3576
|
});
|
|
3577
3577
|
Object.defineProperty(exports, "isModelCompatibleWithFramework", {
|
|
3578
3578
|
enumerable: true,
|
|
3579
|
-
get: function () { return
|
|
3579
|
+
get: function () { return chunkNWELMK3Y_js.isModelCompatibleWithFramework; }
|
|
3580
3580
|
});
|
|
3581
3581
|
Object.defineProperty(exports, "useModalStore", {
|
|
3582
3582
|
enumerable: true,
|
|
3583
|
-
get: function () { return
|
|
3583
|
+
get: function () { return chunkNWELMK3Y_js.useModalStore; }
|
|
3584
3584
|
});
|
|
3585
3585
|
Object.defineProperty(exports, "useWorkflowBuilderClient", {
|
|
3586
3586
|
enumerable: true,
|
|
3587
|
-
get: function () { return
|
|
3587
|
+
get: function () { return chunkNWELMK3Y_js.useWorkflowBuilderClient; }
|
|
3588
3588
|
});
|
|
3589
3589
|
Object.defineProperty(exports, "useWorkflowBuilderClientOptional", {
|
|
3590
3590
|
enumerable: true,
|
|
3591
|
-
get: function () { return
|
|
3591
|
+
get: function () { return chunkNWELMK3Y_js.useWorkflowBuilderClientOptional; }
|
|
3592
3592
|
});
|
|
3593
3593
|
Object.defineProperty(exports, "useWorkflowStore", {
|
|
3594
3594
|
enumerable: true,
|
|
3595
|
-
get: function () { return
|
|
3595
|
+
get: function () { return chunkNWELMK3Y_js.useWorkflowStore; }
|
|
3596
3596
|
});
|
|
3597
3597
|
Object.defineProperty(exports, "GraphNodeBadge", {
|
|
3598
3598
|
enumerable: true,
|
package/dist/astrlabe/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Workspace, useModalStore, CATEGORY_COLORS, CATEGORY_PILL_COLORS, ICON_MAP, WorkflowCanvas, getEntityIcon, getEntityGradient, useWorkflowStore, LOGIC_ICON_MAP, LOGIC_NODE_GRADIENTS, getFrameworkMeta, getCompatibleModels, isModelCompatibleWithFramework, FRAMEWORK_META, isFrameworkCompatibleWithProviders } from '../chunk-
|
|
3
|
-
export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, 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, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-
|
|
2
|
+
import { Workspace, useModalStore, CATEGORY_COLORS, CATEGORY_PILL_COLORS, ICON_MAP, WorkflowCanvas, getEntityIcon, getEntityGradient, useWorkflowStore, LOGIC_ICON_MAP, LOGIC_NODE_GRADIENTS, getFrameworkMeta, getCompatibleModels, isModelCompatibleWithFramework, FRAMEWORK_META, isFrameworkCompatibleWithProviders } from '../chunk-XDS3RWPA.mjs';
|
|
3
|
+
export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, 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, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-XDS3RWPA.mjs';
|
|
4
4
|
import { GlassModal, Button, FormInput, FormTextarea, ToggleSwitch, Input, DynamicIslandConfirm } from '../chunk-MDD6H63O.mjs';
|
|
5
5
|
import '../chunk-D2JF6C3E.mjs';
|
|
6
6
|
import { useTranslations } from '../chunk-7VJ7CMMT.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkNWELMK3Y_js = require('../chunk-NWELMK3Y.js');
|
|
5
5
|
require('../chunk-2IOPJ5BM.js');
|
|
6
6
|
require('../chunk-UZ3CMNUJ.js');
|
|
7
7
|
require('../chunk-YXN2K77G.js');
|
|
@@ -13,7 +13,7 @@ require('../chunk-PWBWP5FJ.js');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "Workspace", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkNWELMK3Y_js.Workspace; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
19
19
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
@@ -5664,6 +5664,7 @@ function LogicNodeModal({ onSave, entities = [], datasources = [], onLoadTables,
|
|
|
5664
5664
|
const nodeLabel = logicNodeData?.nodeLabel ?? "";
|
|
5665
5665
|
const config = logicNodeData?.config ?? null;
|
|
5666
5666
|
if (!config || !nodeId) return null;
|
|
5667
|
+
if (config.type === "datasource") return null;
|
|
5667
5668
|
const entityMasterId = config.type === "entity" ? config.entityMasterId : void 0;
|
|
5668
5669
|
const IconComponent = entityMasterId ? getEntityIcon(entityMasterId) : LOGIC_ICON_MAP[config.type];
|
|
5669
5670
|
const gradient = entityMasterId ? getEntityGradient(entityMasterId) : LOGIC_NODE_GRADIENTS[config.type] ?? "from-gray-400 to-gray-500";
|
|
@@ -7893,5 +7894,5 @@ exports.useModalStore = useModalStore;
|
|
|
7893
7894
|
exports.useWorkflowBuilderClient = useWorkflowBuilderClient;
|
|
7894
7895
|
exports.useWorkflowBuilderClientOptional = useWorkflowBuilderClientOptional;
|
|
7895
7896
|
exports.useWorkflowStore = useWorkflowStore;
|
|
7896
|
-
//# sourceMappingURL=chunk-
|
|
7897
|
-
//# sourceMappingURL=chunk-
|
|
7897
|
+
//# sourceMappingURL=chunk-NWELMK3Y.js.map
|
|
7898
|
+
//# sourceMappingURL=chunk-NWELMK3Y.js.map
|