@datatechsolutions/ui 2.11.13 → 2.11.14
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 +100 -100
- 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-RUH6YJXW.js → chunk-JT2JCLN5.js} +7 -5
- package/dist/chunk-JT2JCLN5.js.map +1 -0
- package/dist/{chunk-B64PWT4B.mjs → chunk-OL7PEDJG.mjs} +7 -5
- package/dist/{chunk-RUH6YJXW.js.map → chunk-OL7PEDJG.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-B64PWT4B.mjs.map +0 -1
package/dist/astrlabe/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
require('../chunk-55H6WZQP.js');
|
|
5
5
|
var chunk3GE3MBUZ_js = require('../chunk-3GE3MBUZ.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkJT2JCLN5_js = require('../chunk-JT2JCLN5.js');
|
|
7
7
|
var chunk4XID6LOC_js = require('../chunk-4XID6LOC.js');
|
|
8
8
|
require('../chunk-S7KHTUHA.js');
|
|
9
9
|
require('../chunk-UZ3CMNUJ.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 = chunkJT2JCLN5_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" },
|
|
@@ -375,12 +375,12 @@ function ConfigTab({ agent, models, t, selectedModelId, setSelectedModelId, sele
|
|
|
375
375
|
const isPrecise = temperature <= 0.3;
|
|
376
376
|
const isBalanced = temperature > 0.3 && temperature <= 0.7;
|
|
377
377
|
const isCreative = temperature > 0.7;
|
|
378
|
-
const frameworkKeys = Object.keys(
|
|
379
|
-
const compatibleModels =
|
|
378
|
+
const frameworkKeys = Object.keys(chunkJT2JCLN5_js.FRAMEWORK_META);
|
|
379
|
+
const compatibleModels = chunkJT2JCLN5_js.getCompatibleModels(models, selectedFramework);
|
|
380
380
|
const handleFrameworkChange = react.useCallback((newFramework) => {
|
|
381
381
|
setSelectedFramework(newFramework);
|
|
382
|
-
if (!
|
|
383
|
-
const compatible =
|
|
382
|
+
if (!chunkJT2JCLN5_js.isModelCompatibleWithFramework(selectedModelId, newFramework)) {
|
|
383
|
+
const compatible = chunkJT2JCLN5_js.getCompatibleModels(models, newFramework);
|
|
384
384
|
if (compatible.length > 0) {
|
|
385
385
|
setSelectedModelId(compatible[0].id);
|
|
386
386
|
}
|
|
@@ -391,9 +391,9 @@ function ConfigTab({ agent, models, t, selectedModelId, setSelectedModelId, sele
|
|
|
391
391
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
392
392
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-2 block text-xs font-medium text-gray-500 dark:text-gray-400", children: t("agentDrawer.framework") }),
|
|
393
393
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1.5", children: frameworkKeys.map((key) => {
|
|
394
|
-
const meta =
|
|
394
|
+
const meta = chunkJT2JCLN5_js.FRAMEWORK_META[key];
|
|
395
395
|
const isSelected = key === selectedFramework;
|
|
396
|
-
const compatCount =
|
|
396
|
+
const compatCount = chunkJT2JCLN5_js.getCompatibleModels(models, key).length;
|
|
397
397
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
398
398
|
"button",
|
|
399
399
|
{
|
|
@@ -423,7 +423,7 @@ function ConfigTab({ agent, models, t, selectedModelId, setSelectedModelId, sele
|
|
|
423
423
|
] }),
|
|
424
424
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-2", children: models.map((model) => {
|
|
425
425
|
const isSelected = model.id === selectedModelId;
|
|
426
|
-
const isCompatible =
|
|
426
|
+
const isCompatible = chunkJT2JCLN5_js.isModelCompatibleWithFramework(model.id, selectedFramework);
|
|
427
427
|
const { IconComponent, color, providerLabel } = getModelIcon(model.id);
|
|
428
428
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
429
429
|
"button",
|
|
@@ -520,7 +520,7 @@ function ConfigTab({ agent, models, t, selectedModelId, setSelectedModelId, sele
|
|
|
520
520
|
] });
|
|
521
521
|
}
|
|
522
522
|
function ResultsTab({ agentId, t }) {
|
|
523
|
-
const nodeResults =
|
|
523
|
+
const nodeResults = chunkJT2JCLN5_js.useWorkflowStore((state) => state.nodeResults);
|
|
524
524
|
const agentResult = react.useMemo(() => {
|
|
525
525
|
return nodeResults[agentId] ?? null;
|
|
526
526
|
}, [nodeResults, agentId]);
|
|
@@ -580,9 +580,9 @@ function ToolsTab({ agentTools, enabledToolIds, onToggle, t }) {
|
|
|
580
580
|
}
|
|
581
581
|
function AgentModal({ onSaved }) {
|
|
582
582
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
583
|
-
const activeModal =
|
|
584
|
-
const agentData =
|
|
585
|
-
const closeModal =
|
|
583
|
+
const activeModal = chunkJT2JCLN5_js.useModalStore((s) => s.activeModal);
|
|
584
|
+
const agentData = chunkJT2JCLN5_js.useModalStore((s) => s.agentData);
|
|
585
|
+
const closeModal = chunkJT2JCLN5_js.useModalStore((s) => s.closeModal);
|
|
586
586
|
const open = activeModal === "agent";
|
|
587
587
|
const agent = agentData?.agent ?? null;
|
|
588
588
|
const models = agentData?.models ?? [];
|
|
@@ -793,7 +793,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
793
793
|
const markDirty = useSubworkflowStore((s) => s.markDirty);
|
|
794
794
|
const markSaved = useSubworkflowStore((s) => s.markSaved);
|
|
795
795
|
const closeModal = useSubworkflowStore((s) => s.closeModal);
|
|
796
|
-
const agentBehind =
|
|
796
|
+
const agentBehind = chunkJT2JCLN5_js.useModalStore((s) => s.activeModal === "agent" ? s.agentData?.agent?.name : null);
|
|
797
797
|
const isCreateMode = !tool?.toolId;
|
|
798
798
|
const initialGraph = react.useMemo(() => {
|
|
799
799
|
const config = tool?.config;
|
|
@@ -822,9 +822,9 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
822
822
|
}, [tool, onSaved, name, category, description, timeoutMs, latestGraphRef, markSaved]);
|
|
823
823
|
if (!tool) return null;
|
|
824
824
|
const categoryKey = category ?? "external";
|
|
825
|
-
const gradient = tool.color ??
|
|
826
|
-
const categoryPill =
|
|
827
|
-
const IconComponent =
|
|
825
|
+
const gradient = tool.color ?? chunkJT2JCLN5_js.CATEGORY_COLORS[categoryKey] ?? chunkJT2JCLN5_js.CATEGORY_COLORS.external;
|
|
826
|
+
const categoryPill = chunkJT2JCLN5_js.CATEGORY_PILL_COLORS[categoryKey] ?? chunkJT2JCLN5_js.CATEGORY_PILL_COLORS.external;
|
|
827
|
+
const IconComponent = chunkJT2JCLN5_js.ICON_MAP[tool.icon ?? ""] ?? outline.ArrowPathRoundedSquareIcon;
|
|
828
828
|
const graph = latestGraphRef.current;
|
|
829
829
|
const startNode = graph.nodes.find((n) => n.type === "start");
|
|
830
830
|
const endNode = graph.nodes.find((n) => n.type === "end");
|
|
@@ -889,7 +889,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
889
889
|
{
|
|
890
890
|
type: "button",
|
|
891
891
|
onClick: () => setCategory(cat),
|
|
892
|
-
className: `rounded-full px-2 py-1 text-[9px] font-semibold transition-all ${cat === category ? `${
|
|
892
|
+
className: `rounded-full px-2 py-1 text-[9px] font-semibold transition-all ${cat === category ? `${chunkJT2JCLN5_js.CATEGORY_PILL_COLORS[cat] ?? chunkJT2JCLN5_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"}`,
|
|
893
893
|
children: cat
|
|
894
894
|
},
|
|
895
895
|
cat
|
|
@@ -976,7 +976,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
976
976
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto" })
|
|
977
977
|
] }),
|
|
978
978
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
979
|
-
|
|
979
|
+
chunkJT2JCLN5_js.WorkflowCanvas,
|
|
980
980
|
{
|
|
981
981
|
initialGraph,
|
|
982
982
|
agents: [],
|
|
@@ -1034,9 +1034,9 @@ function WorkspaceModal({
|
|
|
1034
1034
|
}
|
|
1035
1035
|
function PipelineSettingsModal({ onSave }) {
|
|
1036
1036
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
1037
|
-
const activeModal =
|
|
1038
|
-
const data =
|
|
1039
|
-
const closeModal =
|
|
1037
|
+
const activeModal = chunkJT2JCLN5_js.useModalStore((s) => s.activeModal);
|
|
1038
|
+
const data = chunkJT2JCLN5_js.useModalStore((s) => s.pipelineSettingsData);
|
|
1039
|
+
const closeModal = chunkJT2JCLN5_js.useModalStore((s) => s.closeModal);
|
|
1040
1040
|
const open = activeModal === "pipeline-settings";
|
|
1041
1041
|
const [nameValue, setNameValue] = react.useState("");
|
|
1042
1042
|
const [descriptionValue, setDescriptionValue] = react.useState("");
|
|
@@ -1245,8 +1245,8 @@ function CollapsibleSection({ title, icon, colorClass, defaultOpen = true, count
|
|
|
1245
1245
|
] });
|
|
1246
1246
|
}
|
|
1247
1247
|
function LogicNodeItemCard({ item, translationFunction }) {
|
|
1248
|
-
const IconComponent =
|
|
1249
|
-
const gradient =
|
|
1248
|
+
const IconComponent = chunkJT2JCLN5_js.LOGIC_ICON_MAP[item.nodeType];
|
|
1249
|
+
const gradient = chunkJT2JCLN5_js.LOGIC_NODE_GRADIENTS[item.nodeType] ?? "from-gray-400 to-gray-500";
|
|
1250
1250
|
const defaultConfig = chunkPWBWP5FJ_js.createDefaultLogicNodeConfig(item.nodeType);
|
|
1251
1251
|
const configJson = defaultConfig ? JSON.stringify(defaultConfig) : void 0;
|
|
1252
1252
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1490,8 +1490,8 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
|
|
|
1490
1490
|
limit: entity.defaultLimit
|
|
1491
1491
|
});
|
|
1492
1492
|
const dsLogo = getDatasourceLogo(entity.id);
|
|
1493
|
-
const EntityIcon =
|
|
1494
|
-
const entityGradient =
|
|
1493
|
+
const EntityIcon = chunkJT2JCLN5_js.getEntityIcon(entity.id);
|
|
1494
|
+
const entityGradient = chunkJT2JCLN5_js.getEntityGradient(entity.id);
|
|
1495
1495
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1496
1496
|
"div",
|
|
1497
1497
|
{
|
|
@@ -1863,9 +1863,9 @@ function formatDuration2(durationMs) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
function RunPanel({ open, onClose, onRun, onStop }) {
|
|
1865
1865
|
const translations = chunkYXN2K77G_js.useTranslations("agents.workflow.runPanel");
|
|
1866
|
-
const nodes =
|
|
1867
|
-
const isRunning =
|
|
1868
|
-
const nodeResults =
|
|
1866
|
+
const nodes = chunkJT2JCLN5_js.useWorkflowStore((state) => state.nodes);
|
|
1867
|
+
const isRunning = chunkJT2JCLN5_js.useWorkflowStore((state) => state.isRunning);
|
|
1868
|
+
const nodeResults = chunkJT2JCLN5_js.useWorkflowStore((state) => state.nodeResults);
|
|
1869
1869
|
const startNode = nodes.find((node) => node.type === "start");
|
|
1870
1870
|
const hasEndNode = nodes.some((node) => node.type === "end");
|
|
1871
1871
|
const hasValidStartConfig = Boolean(
|
|
@@ -2150,8 +2150,8 @@ function inferVariables(config, nodeType) {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
function VariableInspector({ open, onClose }) {
|
|
2152
2152
|
const translations = chunkYXN2K77G_js.useTranslations("agents.workflow.variableInspector");
|
|
2153
|
-
const nodes =
|
|
2154
|
-
const edges =
|
|
2153
|
+
const nodes = chunkJT2JCLN5_js.useWorkflowStore((state) => state.nodes);
|
|
2154
|
+
const edges = chunkJT2JCLN5_js.useWorkflowStore((state) => state.edges);
|
|
2155
2155
|
const [expandedNodes, setExpandedNodes] = react.useState(/* @__PURE__ */ new Set());
|
|
2156
2156
|
const toggleNodeExpansion = react.useCallback((nodeId) => {
|
|
2157
2157
|
setExpandedNodes((current) => {
|
|
@@ -2213,8 +2213,8 @@ function VariableInspector({ open, onClose }) {
|
|
|
2213
2213
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-gray-500 dark:text-gray-400", children: translations("noNodes") })
|
|
2214
2214
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "divide-y divide-gray-100 dark:divide-gray-800", children: nodeVariableEntries.map((entry) => {
|
|
2215
2215
|
const isExpanded = expandedNodes.has(entry.nodeId);
|
|
2216
|
-
const IconComponent =
|
|
2217
|
-
const gradient =
|
|
2216
|
+
const IconComponent = chunkJT2JCLN5_js.LOGIC_ICON_MAP[entry.nodeType];
|
|
2217
|
+
const gradient = chunkJT2JCLN5_js.LOGIC_NODE_GRADIENTS[entry.nodeType] ?? "from-gray-400 to-gray-500";
|
|
2218
2218
|
const inputVariables = entry.variables.filter((variable) => variable.direction === "input");
|
|
2219
2219
|
const outputVariables = entry.variables.filter((variable) => variable.direction === "output");
|
|
2220
2220
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": `variable-node-${entry.nodeId}`, children: [
|
|
@@ -2280,7 +2280,7 @@ function RunInputDialog({
|
|
|
2280
2280
|
onRun
|
|
2281
2281
|
}) {
|
|
2282
2282
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow.runInputDialog");
|
|
2283
|
-
const nodes =
|
|
2283
|
+
const nodes = chunkJT2JCLN5_js.useWorkflowStore((state) => state.nodes);
|
|
2284
2284
|
const [values, setValues] = react.useState({});
|
|
2285
2285
|
const inputVariableNames = react.useMemo(() => {
|
|
2286
2286
|
const storeStartNode = nodes.find((node) => node.type === "start");
|
|
@@ -2362,8 +2362,8 @@ function PreviewPanel({ open, onClose, workflowId, loadRuns }) {
|
|
|
2362
2362
|
const [isLoadingRuns, setIsLoadingRuns] = react.useState(false);
|
|
2363
2363
|
const [selectedRun, setSelectedRun] = react.useState(null);
|
|
2364
2364
|
const [selectedNode, setSelectedNode] = react.useState(null);
|
|
2365
|
-
const isRunning =
|
|
2366
|
-
const nodeResults =
|
|
2365
|
+
const isRunning = chunkJT2JCLN5_js.useWorkflowStore((state) => state.isRunning);
|
|
2366
|
+
const nodeResults = chunkJT2JCLN5_js.useWorkflowStore((state) => state.nodeResults);
|
|
2367
2367
|
const refreshRuns = react.useCallback(async () => {
|
|
2368
2368
|
setIsLoadingRuns(true);
|
|
2369
2369
|
try {
|
|
@@ -2519,7 +2519,7 @@ var AutoSaveWorkspace = react.memo(function AutoSaveWorkspace2({
|
|
|
2519
2519
|
onAutoSaveGraph(graph);
|
|
2520
2520
|
}, [onAutoSaveGraph, onGraphSnapshot]);
|
|
2521
2521
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2522
|
-
|
|
2522
|
+
chunkJT2JCLN5_js.Workspace,
|
|
2523
2523
|
{
|
|
2524
2524
|
...workspaceProps,
|
|
2525
2525
|
onGraphChange: handleGraphChange
|
|
@@ -2892,14 +2892,14 @@ function DslImportModal({ open, onClose, onImport }) {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
|
|
2894
2894
|
// src/astrlabe/store/selectors.ts
|
|
2895
|
-
var useCanUndo = () =>
|
|
2896
|
-
var useCanRedo = () =>
|
|
2897
|
-
var useHasCopied = () =>
|
|
2898
|
-
var useContextMenu = () =>
|
|
2899
|
-
var useEditingNodeId = () =>
|
|
2900
|
-
var useSelectedNodeCount = () =>
|
|
2901
|
-
var useIsRunning = () =>
|
|
2902
|
-
var useNodeResults = () =>
|
|
2895
|
+
var useCanUndo = () => chunkJT2JCLN5_js.useWorkflowStore((state) => state.past.length > 0);
|
|
2896
|
+
var useCanRedo = () => chunkJT2JCLN5_js.useWorkflowStore((state) => state.future.length > 0);
|
|
2897
|
+
var useHasCopied = () => chunkJT2JCLN5_js.useWorkflowStore((state) => state.clipboard !== null);
|
|
2898
|
+
var useContextMenu = () => chunkJT2JCLN5_js.useWorkflowStore((state) => state.contextMenu);
|
|
2899
|
+
var useEditingNodeId = () => chunkJT2JCLN5_js.useWorkflowStore((state) => state.editingNodeId);
|
|
2900
|
+
var useSelectedNodeCount = () => chunkJT2JCLN5_js.useWorkflowStore((state) => state.nodes.filter((node) => node.selected).length);
|
|
2901
|
+
var useIsRunning = () => chunkJT2JCLN5_js.useWorkflowStore((state) => state.isRunning);
|
|
2902
|
+
var useNodeResults = () => chunkJT2JCLN5_js.useWorkflowStore((state) => state.nodeResults);
|
|
2903
2903
|
var DEFAULT_MAX_HISTORY = 50;
|
|
2904
2904
|
function useUndoRedo(nodes, edges, setNodes, setEdges, maxHistory = DEFAULT_MAX_HISTORY) {
|
|
2905
2905
|
const pastRef = react.useRef([]);
|
|
@@ -3187,223 +3187,223 @@ Object.defineProperty(exports, "validateWorkflowGraph", {
|
|
|
3187
3187
|
});
|
|
3188
3188
|
Object.defineProperty(exports, "AgentFlowNode", {
|
|
3189
3189
|
enumerable: true,
|
|
3190
|
-
get: function () { return
|
|
3190
|
+
get: function () { return chunkJT2JCLN5_js.AgentFlowNode; }
|
|
3191
3191
|
});
|
|
3192
3192
|
Object.defineProperty(exports, "AgentToolFlowNode", {
|
|
3193
3193
|
enumerable: true,
|
|
3194
|
-
get: function () { return
|
|
3194
|
+
get: function () { return chunkJT2JCLN5_js.AgentToolFlowNode; }
|
|
3195
3195
|
});
|
|
3196
3196
|
Object.defineProperty(exports, "AnswerFlowNode", {
|
|
3197
3197
|
enumerable: true,
|
|
3198
|
-
get: function () { return
|
|
3198
|
+
get: function () { return chunkJT2JCLN5_js.AnswerFlowNode; }
|
|
3199
3199
|
});
|
|
3200
3200
|
Object.defineProperty(exports, "AnthropicIcon", {
|
|
3201
3201
|
enumerable: true,
|
|
3202
|
-
get: function () { return
|
|
3202
|
+
get: function () { return chunkJT2JCLN5_js.AnthropicIcon; }
|
|
3203
3203
|
});
|
|
3204
3204
|
Object.defineProperty(exports, "CodeFlowNode", {
|
|
3205
3205
|
enumerable: true,
|
|
3206
|
-
get: function () { return
|
|
3206
|
+
get: function () { return chunkJT2JCLN5_js.CodeFlowNode; }
|
|
3207
3207
|
});
|
|
3208
3208
|
Object.defineProperty(exports, "CrewAIIcon", {
|
|
3209
3209
|
enumerable: true,
|
|
3210
|
-
get: function () { return
|
|
3210
|
+
get: function () { return chunkJT2JCLN5_js.CrewAIIcon; }
|
|
3211
3211
|
});
|
|
3212
3212
|
Object.defineProperty(exports, "DocumentExtractorFlowNode", {
|
|
3213
3213
|
enumerable: true,
|
|
3214
|
-
get: function () { return
|
|
3214
|
+
get: function () { return chunkJT2JCLN5_js.DocumentExtractorFlowNode; }
|
|
3215
3215
|
});
|
|
3216
3216
|
Object.defineProperty(exports, "EndFlowNode", {
|
|
3217
3217
|
enumerable: true,
|
|
3218
|
-
get: function () { return
|
|
3218
|
+
get: function () { return chunkJT2JCLN5_js.EndFlowNode; }
|
|
3219
3219
|
});
|
|
3220
3220
|
Object.defineProperty(exports, "EntityFlowNode", {
|
|
3221
3221
|
enumerable: true,
|
|
3222
|
-
get: function () { return
|
|
3222
|
+
get: function () { return chunkJT2JCLN5_js.EntityFlowNode; }
|
|
3223
3223
|
});
|
|
3224
3224
|
Object.defineProperty(exports, "FRAMEWORK_META", {
|
|
3225
3225
|
enumerable: true,
|
|
3226
|
-
get: function () { return
|
|
3226
|
+
get: function () { return chunkJT2JCLN5_js.FRAMEWORK_META; }
|
|
3227
3227
|
});
|
|
3228
3228
|
Object.defineProperty(exports, "GoogleADKIcon", {
|
|
3229
3229
|
enumerable: true,
|
|
3230
|
-
get: function () { return
|
|
3230
|
+
get: function () { return chunkJT2JCLN5_js.GoogleADKIcon; }
|
|
3231
3231
|
});
|
|
3232
3232
|
Object.defineProperty(exports, "GroupFlowNode", {
|
|
3233
3233
|
enumerable: true,
|
|
3234
|
-
get: function () { return
|
|
3234
|
+
get: function () { return chunkJT2JCLN5_js.GroupFlowNode; }
|
|
3235
3235
|
});
|
|
3236
3236
|
Object.defineProperty(exports, "HttpRequestFlowNode", {
|
|
3237
3237
|
enumerable: true,
|
|
3238
|
-
get: function () { return
|
|
3238
|
+
get: function () { return chunkJT2JCLN5_js.HttpRequestFlowNode; }
|
|
3239
3239
|
});
|
|
3240
3240
|
Object.defineProperty(exports, "IfElseFlowNode", {
|
|
3241
3241
|
enumerable: true,
|
|
3242
|
-
get: function () { return
|
|
3242
|
+
get: function () { return chunkJT2JCLN5_js.IfElseFlowNode; }
|
|
3243
3243
|
});
|
|
3244
3244
|
Object.defineProperty(exports, "IterationFlowNode", {
|
|
3245
3245
|
enumerable: true,
|
|
3246
|
-
get: function () { return
|
|
3246
|
+
get: function () { return chunkJT2JCLN5_js.IterationFlowNode; }
|
|
3247
3247
|
});
|
|
3248
3248
|
Object.defineProperty(exports, "IterationStartFlowNode", {
|
|
3249
3249
|
enumerable: true,
|
|
3250
|
-
get: function () { return
|
|
3250
|
+
get: function () { return chunkJT2JCLN5_js.IterationStartFlowNode; }
|
|
3251
3251
|
});
|
|
3252
3252
|
Object.defineProperty(exports, "KnowledgeBaseFlowNode", {
|
|
3253
3253
|
enumerable: true,
|
|
3254
|
-
get: function () { return
|
|
3254
|
+
get: function () { return chunkJT2JCLN5_js.KnowledgeBaseFlowNode; }
|
|
3255
3255
|
});
|
|
3256
3256
|
Object.defineProperty(exports, "LOGIC_ICON_MAP", {
|
|
3257
3257
|
enumerable: true,
|
|
3258
|
-
get: function () { return
|
|
3258
|
+
get: function () { return chunkJT2JCLN5_js.LOGIC_ICON_MAP; }
|
|
3259
3259
|
});
|
|
3260
3260
|
Object.defineProperty(exports, "LOGIC_NODE_BADGE_COLORS", {
|
|
3261
3261
|
enumerable: true,
|
|
3262
|
-
get: function () { return
|
|
3262
|
+
get: function () { return chunkJT2JCLN5_js.LOGIC_NODE_BADGE_COLORS; }
|
|
3263
3263
|
});
|
|
3264
3264
|
Object.defineProperty(exports, "LOGIC_NODE_GRADIENTS", {
|
|
3265
3265
|
enumerable: true,
|
|
3266
|
-
get: function () { return
|
|
3266
|
+
get: function () { return chunkJT2JCLN5_js.LOGIC_NODE_GRADIENTS; }
|
|
3267
3267
|
});
|
|
3268
3268
|
Object.defineProperty(exports, "LOGIC_NODE_HANDLE_COLORS", {
|
|
3269
3269
|
enumerable: true,
|
|
3270
|
-
get: function () { return
|
|
3270
|
+
get: function () { return chunkJT2JCLN5_js.LOGIC_NODE_HANDLE_COLORS; }
|
|
3271
3271
|
});
|
|
3272
3272
|
Object.defineProperty(exports, "LangChainIcon", {
|
|
3273
3273
|
enumerable: true,
|
|
3274
|
-
get: function () { return
|
|
3274
|
+
get: function () { return chunkJT2JCLN5_js.LangChainIcon; }
|
|
3275
3275
|
});
|
|
3276
3276
|
Object.defineProperty(exports, "ListOperatorFlowNode", {
|
|
3277
3277
|
enumerable: true,
|
|
3278
|
-
get: function () { return
|
|
3278
|
+
get: function () { return chunkJT2JCLN5_js.ListOperatorFlowNode; }
|
|
3279
3279
|
});
|
|
3280
3280
|
Object.defineProperty(exports, "LogicNodeModal", {
|
|
3281
3281
|
enumerable: true,
|
|
3282
|
-
get: function () { return
|
|
3282
|
+
get: function () { return chunkJT2JCLN5_js.LogicNodeModal; }
|
|
3283
3283
|
});
|
|
3284
3284
|
Object.defineProperty(exports, "MINIMAP_NODE_COLORS", {
|
|
3285
3285
|
enumerable: true,
|
|
3286
|
-
get: function () { return
|
|
3286
|
+
get: function () { return chunkJT2JCLN5_js.MINIMAP_NODE_COLORS; }
|
|
3287
3287
|
});
|
|
3288
3288
|
Object.defineProperty(exports, "NodeCard", {
|
|
3289
3289
|
enumerable: true,
|
|
3290
|
-
get: function () { return
|
|
3290
|
+
get: function () { return chunkJT2JCLN5_js.NodeCard; }
|
|
3291
3291
|
});
|
|
3292
3292
|
Object.defineProperty(exports, "NodeContextMenu", {
|
|
3293
3293
|
enumerable: true,
|
|
3294
|
-
get: function () { return
|
|
3294
|
+
get: function () { return chunkJT2JCLN5_js.NodeContextMenu; }
|
|
3295
3295
|
});
|
|
3296
3296
|
Object.defineProperty(exports, "NoteFlowNode", {
|
|
3297
3297
|
enumerable: true,
|
|
3298
|
-
get: function () { return
|
|
3298
|
+
get: function () { return chunkJT2JCLN5_js.NoteFlowNode; }
|
|
3299
3299
|
});
|
|
3300
3300
|
Object.defineProperty(exports, "OpenAIIcon", {
|
|
3301
3301
|
enumerable: true,
|
|
3302
|
-
get: function () { return
|
|
3302
|
+
get: function () { return chunkJT2JCLN5_js.OpenAIIcon; }
|
|
3303
3303
|
});
|
|
3304
3304
|
Object.defineProperty(exports, "PanelContextMenu", {
|
|
3305
3305
|
enumerable: true,
|
|
3306
|
-
get: function () { return
|
|
3306
|
+
get: function () { return chunkJT2JCLN5_js.PanelContextMenu; }
|
|
3307
3307
|
});
|
|
3308
3308
|
Object.defineProperty(exports, "ParameterExtractorFlowNode", {
|
|
3309
3309
|
enumerable: true,
|
|
3310
|
-
get: function () { return
|
|
3310
|
+
get: function () { return chunkJT2JCLN5_js.ParameterExtractorFlowNode; }
|
|
3311
3311
|
});
|
|
3312
3312
|
Object.defineProperty(exports, "QuestionClassifierFlowNode", {
|
|
3313
3313
|
enumerable: true,
|
|
3314
|
-
get: function () { return
|
|
3314
|
+
get: function () { return chunkJT2JCLN5_js.QuestionClassifierFlowNode; }
|
|
3315
3315
|
});
|
|
3316
3316
|
Object.defineProperty(exports, "RuleFlowNode", {
|
|
3317
3317
|
enumerable: true,
|
|
3318
|
-
get: function () { return
|
|
3318
|
+
get: function () { return chunkJT2JCLN5_js.RuleFlowNode; }
|
|
3319
3319
|
});
|
|
3320
3320
|
Object.defineProperty(exports, "SelectionContextMenu", {
|
|
3321
3321
|
enumerable: true,
|
|
3322
|
-
get: function () { return
|
|
3322
|
+
get: function () { return chunkJT2JCLN5_js.SelectionContextMenu; }
|
|
3323
3323
|
});
|
|
3324
3324
|
Object.defineProperty(exports, "StartFlowNode", {
|
|
3325
3325
|
enumerable: true,
|
|
3326
|
-
get: function () { return
|
|
3326
|
+
get: function () { return chunkJT2JCLN5_js.StartFlowNode; }
|
|
3327
3327
|
});
|
|
3328
3328
|
Object.defineProperty(exports, "StrandsIcon", {
|
|
3329
3329
|
enumerable: true,
|
|
3330
|
-
get: function () { return
|
|
3330
|
+
get: function () { return chunkJT2JCLN5_js.StrandsIcon; }
|
|
3331
3331
|
});
|
|
3332
3332
|
Object.defineProperty(exports, "TemplateTransformFlowNode", {
|
|
3333
3333
|
enumerable: true,
|
|
3334
|
-
get: function () { return
|
|
3334
|
+
get: function () { return chunkJT2JCLN5_js.TemplateTransformFlowNode; }
|
|
3335
3335
|
});
|
|
3336
3336
|
Object.defineProperty(exports, "ToolFlowNode", {
|
|
3337
3337
|
enumerable: true,
|
|
3338
|
-
get: function () { return
|
|
3338
|
+
get: function () { return chunkJT2JCLN5_js.ToolFlowNode; }
|
|
3339
3339
|
});
|
|
3340
3340
|
Object.defineProperty(exports, "VariableAggregatorFlowNode", {
|
|
3341
3341
|
enumerable: true,
|
|
3342
|
-
get: function () { return
|
|
3342
|
+
get: function () { return chunkJT2JCLN5_js.VariableAggregatorFlowNode; }
|
|
3343
3343
|
});
|
|
3344
3344
|
Object.defineProperty(exports, "VariableAssignerFlowNode", {
|
|
3345
3345
|
enumerable: true,
|
|
3346
|
-
get: function () { return
|
|
3346
|
+
get: function () { return chunkJT2JCLN5_js.VariableAssignerFlowNode; }
|
|
3347
3347
|
});
|
|
3348
3348
|
Object.defineProperty(exports, "WorkflowBuilderProvider", {
|
|
3349
3349
|
enumerable: true,
|
|
3350
|
-
get: function () { return
|
|
3350
|
+
get: function () { return chunkJT2JCLN5_js.WorkflowBuilderProvider; }
|
|
3351
3351
|
});
|
|
3352
3352
|
Object.defineProperty(exports, "Workspace", {
|
|
3353
3353
|
enumerable: true,
|
|
3354
|
-
get: function () { return
|
|
3354
|
+
get: function () { return chunkJT2JCLN5_js.Workspace; }
|
|
3355
3355
|
});
|
|
3356
3356
|
Object.defineProperty(exports, "getCompatibleModels", {
|
|
3357
3357
|
enumerable: true,
|
|
3358
|
-
get: function () { return
|
|
3358
|
+
get: function () { return chunkJT2JCLN5_js.getCompatibleModels; }
|
|
3359
3359
|
});
|
|
3360
3360
|
Object.defineProperty(exports, "getDefaultFrameworkForModel", {
|
|
3361
3361
|
enumerable: true,
|
|
3362
|
-
get: function () { return
|
|
3362
|
+
get: function () { return chunkJT2JCLN5_js.getDefaultFrameworkForModel; }
|
|
3363
3363
|
});
|
|
3364
3364
|
Object.defineProperty(exports, "getEntityBadgeColor", {
|
|
3365
3365
|
enumerable: true,
|
|
3366
|
-
get: function () { return
|
|
3366
|
+
get: function () { return chunkJT2JCLN5_js.getEntityBadgeColor; }
|
|
3367
3367
|
});
|
|
3368
3368
|
Object.defineProperty(exports, "getEntityGradient", {
|
|
3369
3369
|
enumerable: true,
|
|
3370
|
-
get: function () { return
|
|
3370
|
+
get: function () { return chunkJT2JCLN5_js.getEntityGradient; }
|
|
3371
3371
|
});
|
|
3372
3372
|
Object.defineProperty(exports, "getEntityHandleColor", {
|
|
3373
3373
|
enumerable: true,
|
|
3374
|
-
get: function () { return
|
|
3374
|
+
get: function () { return chunkJT2JCLN5_js.getEntityHandleColor; }
|
|
3375
3375
|
});
|
|
3376
3376
|
Object.defineProperty(exports, "getEntityIcon", {
|
|
3377
3377
|
enumerable: true,
|
|
3378
|
-
get: function () { return
|
|
3378
|
+
get: function () { return chunkJT2JCLN5_js.getEntityIcon; }
|
|
3379
3379
|
});
|
|
3380
3380
|
Object.defineProperty(exports, "getEntityMinimapColor", {
|
|
3381
3381
|
enumerable: true,
|
|
3382
|
-
get: function () { return
|
|
3382
|
+
get: function () { return chunkJT2JCLN5_js.getEntityMinimapColor; }
|
|
3383
3383
|
});
|
|
3384
3384
|
Object.defineProperty(exports, "getFrameworkMeta", {
|
|
3385
3385
|
enumerable: true,
|
|
3386
|
-
get: function () { return
|
|
3386
|
+
get: function () { return chunkJT2JCLN5_js.getFrameworkMeta; }
|
|
3387
3387
|
});
|
|
3388
3388
|
Object.defineProperty(exports, "isModelCompatibleWithFramework", {
|
|
3389
3389
|
enumerable: true,
|
|
3390
|
-
get: function () { return
|
|
3390
|
+
get: function () { return chunkJT2JCLN5_js.isModelCompatibleWithFramework; }
|
|
3391
3391
|
});
|
|
3392
3392
|
Object.defineProperty(exports, "useModalStore", {
|
|
3393
3393
|
enumerable: true,
|
|
3394
|
-
get: function () { return
|
|
3394
|
+
get: function () { return chunkJT2JCLN5_js.useModalStore; }
|
|
3395
3395
|
});
|
|
3396
3396
|
Object.defineProperty(exports, "useWorkflowBuilderClient", {
|
|
3397
3397
|
enumerable: true,
|
|
3398
|
-
get: function () { return
|
|
3398
|
+
get: function () { return chunkJT2JCLN5_js.useWorkflowBuilderClient; }
|
|
3399
3399
|
});
|
|
3400
3400
|
Object.defineProperty(exports, "useWorkflowBuilderClientOptional", {
|
|
3401
3401
|
enumerable: true,
|
|
3402
|
-
get: function () { return
|
|
3402
|
+
get: function () { return chunkJT2JCLN5_js.useWorkflowBuilderClientOptional; }
|
|
3403
3403
|
});
|
|
3404
3404
|
Object.defineProperty(exports, "useWorkflowStore", {
|
|
3405
3405
|
enumerable: true,
|
|
3406
|
-
get: function () { return
|
|
3406
|
+
get: function () { return chunkJT2JCLN5_js.useWorkflowStore; }
|
|
3407
3407
|
});
|
|
3408
3408
|
Object.defineProperty(exports, "GraphNodeBadge", {
|
|
3409
3409
|
enumerable: true,
|
package/dist/astrlabe/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../chunk-JB6RNAD2.mjs';
|
|
3
3
|
export { topologicalSortAgents, validateWorkflowGraph } from '../chunk-BLNXRUC4.mjs';
|
|
4
|
-
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 } from '../chunk-
|
|
5
|
-
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, 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, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-
|
|
4
|
+
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 } from '../chunk-OL7PEDJG.mjs';
|
|
5
|
+
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, 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, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-OL7PEDJG.mjs';
|
|
6
6
|
import { GlassModalShell, Button, FormInput, FormTextarea, GlassFormModal, Input, DynamicIslandConfirm } from '../chunk-46ZM5VJJ.mjs';
|
|
7
7
|
import '../chunk-QWG2FMUN.mjs';
|
|
8
8
|
import '../chunk-D2JF6C3E.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkJT2JCLN5_js = require('../chunk-JT2JCLN5.js');
|
|
5
5
|
require('../chunk-4XID6LOC.js');
|
|
6
6
|
require('../chunk-S7KHTUHA.js');
|
|
7
7
|
require('../chunk-UZ3CMNUJ.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 chunkJT2JCLN5_js.Workspace; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
19
19
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
@@ -5631,9 +5631,11 @@ function WorkflowCanvasInner({
|
|
|
5631
5631
|
agent,
|
|
5632
5632
|
order: agent.order ?? 0,
|
|
5633
5633
|
selected: selectedAgentId === savedNode.id,
|
|
5634
|
+
agentTools: agentTools.map((at) => ({ id: at.agentToolId, name: at.name, category: at.category, enabled: at.enabled })),
|
|
5635
|
+
providerName: models.find((m) => m.id === agent.modelId)?.provider,
|
|
5634
5636
|
onSelect: () => {
|
|
5635
5637
|
setSelectedAgentId(agent.agentId);
|
|
5636
|
-
openAgentModalAction(agent, models);
|
|
5638
|
+
openAgentModalAction(agent, models, false, agentTools);
|
|
5637
5639
|
},
|
|
5638
5640
|
onRemoveFromCanvas: handleRemoveNodeFromCanvas
|
|
5639
5641
|
}
|
|
@@ -5984,7 +5986,7 @@ function WorkflowCanvasInner({
|
|
|
5984
5986
|
const agent = targetNode.data?.agent;
|
|
5985
5987
|
if (agent) {
|
|
5986
5988
|
setSelectedAgentId(agent.agentId ?? agent.id ?? null);
|
|
5987
|
-
openAgentModalAction(agent, models);
|
|
5989
|
+
openAgentModalAction(agent, models, false, agentTools);
|
|
5988
5990
|
}
|
|
5989
5991
|
} else if (targetNode.type === "tool") {
|
|
5990
5992
|
const tool = targetNode.data?.tool;
|
|
@@ -6475,7 +6477,7 @@ function WorkflowCanvasInner({
|
|
|
6475
6477
|
selected: false,
|
|
6476
6478
|
onSelect: () => {
|
|
6477
6479
|
setSelectedAgentId(agent.agentId);
|
|
6478
|
-
openAgentModalAction(agent, models);
|
|
6480
|
+
openAgentModalAction(agent, models, false, agentTools);
|
|
6479
6481
|
},
|
|
6480
6482
|
onRemoveFromCanvas: handleRemoveNodeFromCanvas
|
|
6481
6483
|
}
|
|
@@ -7154,5 +7156,5 @@ exports.useModalStore = useModalStore;
|
|
|
7154
7156
|
exports.useWorkflowBuilderClient = useWorkflowBuilderClient;
|
|
7155
7157
|
exports.useWorkflowBuilderClientOptional = useWorkflowBuilderClientOptional;
|
|
7156
7158
|
exports.useWorkflowStore = useWorkflowStore;
|
|
7157
|
-
//# sourceMappingURL=chunk-
|
|
7158
|
-
//# sourceMappingURL=chunk-
|
|
7159
|
+
//# sourceMappingURL=chunk-JT2JCLN5.js.map
|
|
7160
|
+
//# sourceMappingURL=chunk-JT2JCLN5.js.map
|