@datatechsolutions/ui 2.11.2 → 2.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astrlabe/contracts.d.mts +293 -0
- package/dist/astrlabe/contracts.d.ts +293 -0
- package/dist/astrlabe/graph-node.d.mts +28 -0
- package/dist/astrlabe/graph-node.d.ts +28 -0
- package/dist/astrlabe/index.d.mts +707 -0
- package/dist/astrlabe/index.d.ts +707 -0
- package/dist/astrlabe/index.js +146 -146
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +30 -30
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/utils.d.mts +71 -0
- package/dist/astrlabe/utils.d.ts +71 -0
- package/dist/astrlabe/utils.js +4 -4
- package/dist/astrlabe/utils.mjs +1 -1
- package/dist/astrlabe/workflow-canvas.d.mts +5 -0
- package/dist/astrlabe/workflow-canvas.d.ts +5 -0
- package/dist/astrlabe/workflow-canvas.js +6 -6
- package/dist/astrlabe/workflow-canvas.mjs +5 -5
- package/dist/astrlabe/workflow-preview-canvas.d.mts +10 -0
- package/dist/astrlabe/workflow-preview-canvas.d.ts +10 -0
- package/dist/{chunk-ZEYHIEHE.mjs → chunk-LJSJMBLO.mjs} +81 -71
- package/dist/chunk-LJSJMBLO.mjs.map +1 -0
- package/dist/{chunk-NMXHJMGI.js → chunk-PBKTXX4Y.js} +3 -3
- package/dist/{chunk-NMXHJMGI.js.map → chunk-PBKTXX4Y.js.map} +1 -1
- package/dist/{chunk-DFR6CMJH.js → chunk-PWBWP5FJ.js} +2 -2
- package/dist/{chunk-DFR6CMJH.js.map → chunk-PWBWP5FJ.js.map} +1 -1
- package/dist/{chunk-AM2TTPYM.mjs → chunk-TLPPVL3W.mjs} +2 -2
- package/dist/{chunk-AM2TTPYM.mjs.map → chunk-TLPPVL3W.mjs.map} +1 -1
- package/dist/{chunk-4TZNBT5V.js → chunk-XAQME7DD.js} +138 -128
- package/dist/chunk-XAQME7DD.js.map +1 -0
- package/dist/{chunk-VB45EBH5.mjs → chunk-XO7IYJSF.mjs} +3 -3
- package/dist/{chunk-VB45EBH5.mjs.map → chunk-XO7IYJSF.mjs.map} +1 -1
- package/dist/dynamic-island-confirm-Cbxh-sta.d.mts +52 -0
- package/dist/dynamic-island-confirm-Cbxh-sta.d.ts +52 -0
- package/dist/index.d.mts +4771 -0
- package/dist/index.d.ts +4771 -0
- package/dist/index.js +727 -727
- package/dist/index.mjs +2 -2
- package/dist/lib/i18n-context.d.mts +36 -0
- package/dist/lib/i18n-context.d.ts +36 -0
- package/dist/lib/router-context.d.mts +35 -0
- package/dist/lib/router-context.d.ts +35 -0
- package/dist/workflow-canvas-CJwGehdk.d.mts +241 -0
- package/dist/workflow-canvas-DSm0iyof.d.ts +241 -0
- package/package.json +2 -1
- package/dist/chunk-4TZNBT5V.js.map +0 -1
- package/dist/chunk-ZEYHIEHE.mjs.map +0 -1
package/dist/astrlabe/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../chunk-JB6RNAD2.mjs';
|
|
3
3
|
export { topologicalSortAgents, validateWorkflowGraph } from '../chunk-BLNXRUC4.mjs';
|
|
4
|
-
import { Workspace,
|
|
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,
|
|
6
|
-
import { FormInput, FormTextarea, Button, GlassFormModal, Input, DynamicIslandConfirm } from '../chunk-
|
|
7
|
-
import '../chunk-D2JF6C3E.mjs';
|
|
8
|
-
import { useTranslations } from '../chunk-7VJ7CMMT.mjs';
|
|
4
|
+
import { Workspace, useModalStore, WorkspaceModal, CATEGORY_COLORS, CATEGORY_PILL_COLORS, ICON_MAP, WorkflowCanvas, getEntityIcon, getEntityGradient, useWorkflowStore, LOGIC_ICON_MAP, LOGIC_NODE_GRADIENTS, getFrameworkMeta, getCompatibleModels, isModelCompatibleWithFramework, FRAMEWORK_META } from '../chunk-LJSJMBLO.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, WorkspaceModal, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-LJSJMBLO.mjs';
|
|
6
|
+
import { FormInput, FormTextarea, Button, GlassFormModal, Input, DynamicIslandConfirm } from '../chunk-XO7IYJSF.mjs';
|
|
9
7
|
import '../chunk-QWG2FMUN.mjs';
|
|
8
|
+
import '../chunk-D2JF6C3E.mjs';
|
|
10
9
|
export { GraphNodeBadge, GraphNodeHeader, GraphNodeIconBubble, GraphNodeMeta } from '../chunk-OZNTQROP.mjs';
|
|
11
|
-
import { getAgentTier, createDefaultLogicNodeConfig } from '../chunk-
|
|
12
|
-
export { applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier } from '../chunk-
|
|
10
|
+
import { getAgentTier, createDefaultLogicNodeConfig } from '../chunk-TLPPVL3W.mjs';
|
|
11
|
+
export { applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier } from '../chunk-TLPPVL3W.mjs';
|
|
12
|
+
import { useTranslations } from '../chunk-7VJ7CMMT.mjs';
|
|
13
13
|
import { memo, useCallback, useState, useEffect, useMemo, useRef, Children } from 'react';
|
|
14
14
|
import { CpuChipIcon, ArrowPathRoundedSquareIcon, ArrowsPointingOutIcon, ArrowsPointingInIcon, BoltIcon, ClockIcon, CheckIcon, Cog6ToothIcon, CommandLineIcon, AdjustmentsHorizontalIcon, CircleStackIcon, TrashIcon, PlusIcon, XMarkIcon, EyeIcon, ArrowPathIcon, PlayIcon, StopIcon, XCircleIcon, CheckCircleIcon, VariableIcon, ChevronDownIcon, ChevronRightIcon, ExclamationCircleIcon, ClipboardDocumentIcon, ArrowDownTrayIcon, ArrowUpTrayIcon, ExclamationTriangleIcon } from '@heroicons/react/24/outline';
|
|
15
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -547,12 +547,12 @@ function ResultsTab({ agentId, t }) {
|
|
|
547
547
|
] })
|
|
548
548
|
] });
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function AgentModal({ onSaved }) {
|
|
551
551
|
const t = useTranslations("agents.workflow");
|
|
552
|
-
const
|
|
553
|
-
const agentData =
|
|
554
|
-
const
|
|
555
|
-
const open =
|
|
552
|
+
const activeModal = useModalStore((s) => s.activeModal);
|
|
553
|
+
const agentData = useModalStore((s) => s.agentData);
|
|
554
|
+
const closeModal = useModalStore((s) => s.closeModal);
|
|
555
|
+
const open = activeModal === "agent";
|
|
556
556
|
const agent = agentData?.agent ?? null;
|
|
557
557
|
const models = agentData?.models ?? [];
|
|
558
558
|
const isCreateMode = agentData?.isCreateMode ?? false;
|
|
@@ -576,8 +576,8 @@ function AgentDrawer({ onSaved }) {
|
|
|
576
576
|
const markDirty = useCallback(() => setSaved(false), []);
|
|
577
577
|
const markSaved = useCallback(() => setSaved(true), []);
|
|
578
578
|
const handleClose = useCallback(() => {
|
|
579
|
-
|
|
580
|
-
}, [
|
|
579
|
+
closeModal();
|
|
580
|
+
}, [closeModal]);
|
|
581
581
|
const handleMarkSaved = useCallback(() => {
|
|
582
582
|
markSaved();
|
|
583
583
|
onSaved?.();
|
|
@@ -594,7 +594,7 @@ function AgentDrawer({ onSaved }) {
|
|
|
594
594
|
tab
|
|
595
595
|
)) });
|
|
596
596
|
return /* @__PURE__ */ jsxs(
|
|
597
|
-
|
|
597
|
+
WorkspaceModal,
|
|
598
598
|
{
|
|
599
599
|
open,
|
|
600
600
|
onClose: handleClose,
|
|
@@ -621,7 +621,7 @@ var useSubworkflowStore = create((set) => ({
|
|
|
621
621
|
retryCount: 0,
|
|
622
622
|
dirty: false,
|
|
623
623
|
// Actions
|
|
624
|
-
|
|
624
|
+
openModal: (tool) => set({
|
|
625
625
|
tool,
|
|
626
626
|
open: true,
|
|
627
627
|
name: tool.name ?? "",
|
|
@@ -631,7 +631,7 @@ var useSubworkflowStore = create((set) => ({
|
|
|
631
631
|
retryCount: tool.retryCount ?? 0,
|
|
632
632
|
dirty: !tool.toolId
|
|
633
633
|
}),
|
|
634
|
-
|
|
634
|
+
closeModal: () => set({
|
|
635
635
|
tool: null,
|
|
636
636
|
open: false,
|
|
637
637
|
name: "",
|
|
@@ -696,7 +696,7 @@ function ConfigSection({ title, icon: Icon, defaultOpen = true, children }) {
|
|
|
696
696
|
open && /* @__PURE__ */ jsx("div", { className: "px-4 pb-3", children })
|
|
697
697
|
] });
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function SubworkflowModal({ onSaved, onMaximize }) {
|
|
700
700
|
const t = useTranslations("agents.workflow");
|
|
701
701
|
const tool = useSubworkflowStore((s) => s.tool);
|
|
702
702
|
const open = useSubworkflowStore((s) => s.open);
|
|
@@ -713,7 +713,7 @@ function SubworkflowDrawer({ onSaved, onMaximize }) {
|
|
|
713
713
|
const setRetryCount = useSubworkflowStore((s) => s.setRetryCount);
|
|
714
714
|
const markDirty = useSubworkflowStore((s) => s.markDirty);
|
|
715
715
|
const markSaved = useSubworkflowStore((s) => s.markSaved);
|
|
716
|
-
const
|
|
716
|
+
const closeModal = useSubworkflowStore((s) => s.closeModal);
|
|
717
717
|
const isCreateMode = !tool?.toolId;
|
|
718
718
|
const initialGraph = useMemo(() => {
|
|
719
719
|
const config = tool?.config;
|
|
@@ -753,10 +753,10 @@ function SubworkflowDrawer({ onSaved, onMaximize }) {
|
|
|
753
753
|
const inputVariables = (startConfig?.inputVariables ?? []).map((v) => ({ name: v, type: "string" }));
|
|
754
754
|
const outputVariables = (endConfig?.outputVariables ?? []).map((v) => ({ name: v, type: "string" }));
|
|
755
755
|
return /* @__PURE__ */ jsx(
|
|
756
|
-
|
|
756
|
+
WorkspaceModal,
|
|
757
757
|
{
|
|
758
758
|
open,
|
|
759
|
-
onClose:
|
|
759
|
+
onClose: closeModal,
|
|
760
760
|
title: isCreateMode ? t("subworkflowDrawer.createTitle") : name,
|
|
761
761
|
subtitle: t("subworkflowDrawer.subworkflow"),
|
|
762
762
|
gradient: "from-teal-500 to-cyan-600",
|
|
@@ -887,12 +887,12 @@ function SubworkflowDrawer({ onSaved, onMaximize }) {
|
|
|
887
887
|
}
|
|
888
888
|
);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function PipelineSettingsModal({ onSave }) {
|
|
891
891
|
const t = useTranslations("agents.workflow");
|
|
892
|
-
const
|
|
893
|
-
const data =
|
|
894
|
-
const
|
|
895
|
-
const open =
|
|
892
|
+
const activeModal = useModalStore((s) => s.activeModal);
|
|
893
|
+
const data = useModalStore((s) => s.pipelineSettingsData);
|
|
894
|
+
const closeModal = useModalStore((s) => s.closeModal);
|
|
895
|
+
const open = activeModal === "pipeline-settings";
|
|
896
896
|
const [nameValue, setNameValue] = useState("");
|
|
897
897
|
const [descriptionValue, setDescriptionValue] = useState("");
|
|
898
898
|
const [isSaving, setIsSaving] = useState(false);
|
|
@@ -909,17 +909,17 @@ function PipelineSettingsDrawer({ onSave }) {
|
|
|
909
909
|
setIsSaving(true);
|
|
910
910
|
try {
|
|
911
911
|
await onSave(trimmedName, descriptionValue.trim());
|
|
912
|
-
|
|
912
|
+
closeModal();
|
|
913
913
|
} catch {
|
|
914
914
|
} finally {
|
|
915
915
|
setIsSaving(false);
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
918
|
return /* @__PURE__ */ jsx(
|
|
919
|
-
|
|
919
|
+
WorkspaceModal,
|
|
920
920
|
{
|
|
921
921
|
open,
|
|
922
|
-
onClose:
|
|
922
|
+
onClose: closeModal,
|
|
923
923
|
title: t("pipelineSettings"),
|
|
924
924
|
subtitle: t("pipelineSettingsSubtitle"),
|
|
925
925
|
icon: /* @__PURE__ */ jsx(Cog6ToothIcon, { className: "h-5 w-5 text-white" }),
|
|
@@ -2951,6 +2951,6 @@ function useHelpLines() {
|
|
|
2951
2951
|
};
|
|
2952
2952
|
}
|
|
2953
2953
|
|
|
2954
|
-
export {
|
|
2954
|
+
export { AgentModal, AmazonNovaIcon, AnthropicModelIcon, AutoSaveWorkspace, DslExportModal, DslImportModal, DynamicIslandConfirm2 as DynamicIslandConfirm, MetaLlamaIcon, NodePalette, PipelineSettingsModal, PreviewPanel, RunInputDialog, RunPanel, SaveStatusBadge, SubworkflowModal, VariableInspector, VersionHistoryPanel, WorkflowListBar, getModelIcon, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useNodeResults, useSelectedNodeCount, useSubworkflowStore, useUndoRedo };
|
|
2955
2955
|
//# sourceMappingURL=index.mjs.map
|
|
2956
2956
|
//# sourceMappingURL=index.mjs.map
|