@datatechsolutions/ui 2.7.110 → 2.7.112

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.
@@ -199,9 +199,14 @@ declare const GroupFlowNode: React$1.NamedExoticComponent<{
199
199
  }>;
200
200
 
201
201
  type AgentDrawerProps = {
202
- onSaved?: () => void;
202
+ agent: AgentWithPrompts | null;
203
+ models: AgentModel[];
204
+ open: boolean;
205
+ isCreateMode?: boolean;
206
+ onClose: () => void;
207
+ onSaved: () => void;
203
208
  };
204
- declare function AgentDrawer({ onSaved }: AgentDrawerProps): react_jsx_runtime.JSX.Element | null;
209
+ declare function AgentDrawer({ agent, models, open, isCreateMode, onClose, onSaved }: AgentDrawerProps): react_jsx_runtime.JSX.Element | null;
205
210
 
206
211
  type SubworkflowDrawerProps = {
207
212
  /** Called when save/create is clicked — receives the merged subworkflow with updated graph */
@@ -212,10 +217,15 @@ type SubworkflowDrawerProps = {
212
217
  declare function SubworkflowDrawer({ onSaved, onMaximize }: SubworkflowDrawerProps): react_jsx_runtime.JSX.Element | null;
213
218
 
214
219
  type LogicNodeDrawerProps = {
220
+ nodeId: string | null;
221
+ nodeLabel: string;
222
+ config: LogicNodeConfig | null;
223
+ open: boolean;
224
+ onClose: () => void;
215
225
  onSave: (nodeId: string, updatedConfig: LogicNodeConfig) => void;
216
226
  entities?: WorkflowEntityDefinition[];
217
227
  };
218
- declare function LogicNodeDrawer({ onSave, entities }: LogicNodeDrawerProps): react_jsx_runtime.JSX.Element | null;
228
+ declare function LogicNodeDrawer({ nodeId, nodeLabel, config, open, onClose, onSave, entities }: LogicNodeDrawerProps): react_jsx_runtime.JSX.Element | null;
219
229
 
220
230
  type WorkspaceDrawerProps = {
221
231
  open: boolean;
@@ -231,9 +241,13 @@ type WorkspaceDrawerProps = {
231
241
  declare function WorkspaceDrawer({ open, onClose, title, subtitle, icon, gradient, maxWidth, tabs, children, }: WorkspaceDrawerProps): react_jsx_runtime.JSX.Element;
232
242
 
233
243
  type PipelineSettingsDrawerProps = {
244
+ open: boolean;
245
+ onClose: () => void;
246
+ name: string;
247
+ description: string;
234
248
  onSave: (name: string, description: string) => Promise<void>;
235
249
  };
236
- declare function PipelineSettingsDrawer({ onSave, }: PipelineSettingsDrawerProps): react_jsx_runtime.JSX.Element;
250
+ declare function PipelineSettingsDrawer({ open, onClose, name, description, onSave, }: PipelineSettingsDrawerProps): react_jsx_runtime.JSX.Element;
237
251
 
238
252
  type NodePaletteProps = {
239
253
  agents: AgentWithPrompts[];
@@ -487,101 +501,6 @@ type SubworkflowStoreActions = {
487
501
  type SubworkflowStore = SubworkflowStoreState & SubworkflowStoreActions;
488
502
  declare const useSubworkflowStore: zustand.UseBoundStore<zustand.StoreApi<SubworkflowStore>>;
489
503
 
490
- type AgentDrawerStoreState = {
491
- /** The agent being edited (null = drawer closed) */
492
- agent: AgentWithPrompts | null;
493
- /** Available models for the agent */
494
- models: AgentModel[];
495
- /** Whether the drawer is open */
496
- open: boolean;
497
- /** Whether we are creating a new agent */
498
- isCreateMode: boolean;
499
- /** Active tab in the drawer */
500
- activeTab: 'config' | 'results';
501
- /** Currently selected model ID */
502
- selectedModelId: string;
503
- /** Currently selected framework */
504
- selectedFramework: string;
505
- /** Model temperature */
506
- temperature: number;
507
- /** Model ELO rating */
508
- elo: number;
509
- /** Whether there are unsaved changes */
510
- dirty: boolean;
511
- };
512
- type AgentDrawerStoreActions = {
513
- /** Open the drawer with an agent and available models */
514
- openDrawer: (agent: AgentWithPrompts, models: AgentModel[], isCreateMode?: boolean) => void;
515
- /** Close the drawer and reset state */
516
- closeDrawer: () => void;
517
- /** Set active tab and mark dirty */
518
- setActiveTab: (activeTab: 'config' | 'results') => void;
519
- /** Set selected model ID and mark dirty */
520
- setSelectedModelId: (selectedModelId: string) => void;
521
- /** Set selected framework and mark dirty */
522
- setSelectedFramework: (selectedFramework: string) => void;
523
- /** Set temperature and mark dirty */
524
- setTemperature: (temperature: number) => void;
525
- /** Set ELO and mark dirty */
526
- setElo: (elo: number) => void;
527
- /** Mark as dirty (e.g. when configuration changes) */
528
- markDirty: () => void;
529
- /** Mark as saved */
530
- markSaved: () => void;
531
- };
532
- type AgentDrawerStore = AgentDrawerStoreState & AgentDrawerStoreActions;
533
- declare const useAgentDrawerStore: zustand.UseBoundStore<zustand.StoreApi<AgentDrawerStore>>;
534
-
535
- type LogicNodeDrawerStoreState = {
536
- /** The ID of the node being viewed (null = drawer closed) */
537
- nodeId: string | null;
538
- /** The label of the node */
539
- nodeLabel: string;
540
- /** The logic node configuration */
541
- config: LogicNodeConfig | null;
542
- /** Whether the drawer is open */
543
- open: boolean;
544
- };
545
- type LogicNodeDrawerStoreActions = {
546
- /** Open the drawer with a logic node */
547
- openDrawer: (nodeId: string, nodeLabel: string, config: LogicNodeConfig) => void;
548
- /** Close the drawer and reset state */
549
- closeDrawer: () => void;
550
- };
551
- type LogicNodeDrawerStore = LogicNodeDrawerStoreState & LogicNodeDrawerStoreActions;
552
- declare const useLogicNodeDrawerStore: zustand.UseBoundStore<zustand.StoreApi<LogicNodeDrawerStore>>;
553
-
554
- /**
555
- * Pipeline Settings Store (Zustand)
556
- * ==================================
557
- * State management for the pipeline settings drawer — tracks
558
- * the pipeline name, description, and saving state.
559
- */
560
- type PipelineSettingsStoreState = {
561
- /** Whether the drawer is open */
562
- open: boolean;
563
- /** Pipeline name */
564
- name: string;
565
- /** Pipeline description */
566
- description: string;
567
- /** Whether a save operation is in progress */
568
- isSaving: boolean;
569
- };
570
- type PipelineSettingsStoreActions = {
571
- /** Open the drawer with current pipeline settings */
572
- openDrawer: (name: string, description: string) => void;
573
- /** Close the drawer and reset state */
574
- closeDrawer: () => void;
575
- /** Update pipeline name */
576
- setName: (name: string) => void;
577
- /** Update pipeline description */
578
- setDescription: (description: string) => void;
579
- /** Set saving state */
580
- setIsSaving: (saving: boolean) => void;
581
- };
582
- type PipelineSettingsStore = PipelineSettingsStoreState & PipelineSettingsStoreActions;
583
- declare const usePipelineSettingsStore: zustand.UseBoundStore<zustand.StoreApi<PipelineSettingsStore>>;
584
-
585
504
  /**
586
505
  * Workflow Store Selectors
587
506
  * ========================
@@ -751,4 +670,4 @@ declare function getEntityBadgeColor(entityKey: string | undefined): string;
751
670
  declare function getEntityHandleColor(entityKey: string | undefined): string;
752
671
  declare function getEntityMinimapColor(entityKey: string | undefined): string;
753
672
 
754
- export { AgentDrawer, AgentFlowNode, type AgentFramework, AgentNodeData, AgentToolFlowNode, AgentWithPrompts, AmazonNovaIcon, AnswerFlowNode, AnswerNodeData, AnthropicIcon, AnthropicModelIcon, AutoSaveWorkspace, type AutoSaveWorkspaceProps, CodeFlowNode, CodeNodeData, CrewAIIcon, DocumentExtractorFlowNode, DocumentExtractorNodeData, DslExportModal, DslImportModal, DynamicIslandConfirm, type DynamicIslandConfirmProps, EndFlowNode, EndNodeData, EntityFlowNode, EntityNodeData, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, GroupNodeData, HttpRequestFlowNode, HttpRequestNodeData, IfElseFlowNode, IfElseNodeData, IterationFlowNode, IterationNodeData, IterationStartFlowNode, IterationStartNodeData, KnowledgeBaseFlowNode, KnowledgeBaseNodeData, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, LayoutDirection, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeDrawer, MINIMAP_NODE_COLORS, MetaLlamaIcon, NodeCard, NodeContextMenu, NodePalette, type NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsDrawer, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, RuleFlowNode, RuleNodeData, RunInputDialog, type RunInputDialogProps, RunPanel, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowDrawer, TemplateTransformFlowNode, TemplateTransformNodeData, ToolFlowNode, ToolNodeData, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowGraph, WorkflowListBar, type WorkflowStore, type WorkspaceBootstrapPayload, WorkspaceDrawer, WorkspaceProps, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, isModelCompatibleWithFramework, useAgentDrawerStore, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useLogicNodeDrawerStore, useNodeResults, usePipelineSettingsStore, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
673
+ export { AgentDrawer, AgentFlowNode, type AgentFramework, AgentNodeData, AgentToolFlowNode, AgentWithPrompts, AmazonNovaIcon, AnswerFlowNode, AnswerNodeData, AnthropicIcon, AnthropicModelIcon, AutoSaveWorkspace, type AutoSaveWorkspaceProps, CodeFlowNode, CodeNodeData, CrewAIIcon, DocumentExtractorFlowNode, DocumentExtractorNodeData, DslExportModal, DslImportModal, DynamicIslandConfirm, type DynamicIslandConfirmProps, EndFlowNode, EndNodeData, EntityFlowNode, EntityNodeData, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, GroupNodeData, HttpRequestFlowNode, HttpRequestNodeData, IfElseFlowNode, IfElseNodeData, IterationFlowNode, IterationNodeData, IterationStartFlowNode, IterationStartNodeData, KnowledgeBaseFlowNode, KnowledgeBaseNodeData, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, LayoutDirection, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeDrawer, MINIMAP_NODE_COLORS, MetaLlamaIcon, NodeCard, NodeContextMenu, NodePalette, type NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsDrawer, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, RuleFlowNode, RuleNodeData, RunInputDialog, type RunInputDialogProps, RunPanel, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowDrawer, TemplateTransformFlowNode, TemplateTransformNodeData, ToolFlowNode, ToolNodeData, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowGraph, WorkflowListBar, type WorkflowStore, type WorkspaceBootstrapPayload, WorkspaceDrawer, WorkspaceProps, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, isModelCompatibleWithFramework, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useNodeResults, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
@@ -199,9 +199,14 @@ declare const GroupFlowNode: React$1.NamedExoticComponent<{
199
199
  }>;
200
200
 
201
201
  type AgentDrawerProps = {
202
- onSaved?: () => void;
202
+ agent: AgentWithPrompts | null;
203
+ models: AgentModel[];
204
+ open: boolean;
205
+ isCreateMode?: boolean;
206
+ onClose: () => void;
207
+ onSaved: () => void;
203
208
  };
204
- declare function AgentDrawer({ onSaved }: AgentDrawerProps): react_jsx_runtime.JSX.Element | null;
209
+ declare function AgentDrawer({ agent, models, open, isCreateMode, onClose, onSaved }: AgentDrawerProps): react_jsx_runtime.JSX.Element | null;
205
210
 
206
211
  type SubworkflowDrawerProps = {
207
212
  /** Called when save/create is clicked — receives the merged subworkflow with updated graph */
@@ -212,10 +217,15 @@ type SubworkflowDrawerProps = {
212
217
  declare function SubworkflowDrawer({ onSaved, onMaximize }: SubworkflowDrawerProps): react_jsx_runtime.JSX.Element | null;
213
218
 
214
219
  type LogicNodeDrawerProps = {
220
+ nodeId: string | null;
221
+ nodeLabel: string;
222
+ config: LogicNodeConfig | null;
223
+ open: boolean;
224
+ onClose: () => void;
215
225
  onSave: (nodeId: string, updatedConfig: LogicNodeConfig) => void;
216
226
  entities?: WorkflowEntityDefinition[];
217
227
  };
218
- declare function LogicNodeDrawer({ onSave, entities }: LogicNodeDrawerProps): react_jsx_runtime.JSX.Element | null;
228
+ declare function LogicNodeDrawer({ nodeId, nodeLabel, config, open, onClose, onSave, entities }: LogicNodeDrawerProps): react_jsx_runtime.JSX.Element | null;
219
229
 
220
230
  type WorkspaceDrawerProps = {
221
231
  open: boolean;
@@ -231,9 +241,13 @@ type WorkspaceDrawerProps = {
231
241
  declare function WorkspaceDrawer({ open, onClose, title, subtitle, icon, gradient, maxWidth, tabs, children, }: WorkspaceDrawerProps): react_jsx_runtime.JSX.Element;
232
242
 
233
243
  type PipelineSettingsDrawerProps = {
244
+ open: boolean;
245
+ onClose: () => void;
246
+ name: string;
247
+ description: string;
234
248
  onSave: (name: string, description: string) => Promise<void>;
235
249
  };
236
- declare function PipelineSettingsDrawer({ onSave, }: PipelineSettingsDrawerProps): react_jsx_runtime.JSX.Element;
250
+ declare function PipelineSettingsDrawer({ open, onClose, name, description, onSave, }: PipelineSettingsDrawerProps): react_jsx_runtime.JSX.Element;
237
251
 
238
252
  type NodePaletteProps = {
239
253
  agents: AgentWithPrompts[];
@@ -487,101 +501,6 @@ type SubworkflowStoreActions = {
487
501
  type SubworkflowStore = SubworkflowStoreState & SubworkflowStoreActions;
488
502
  declare const useSubworkflowStore: zustand.UseBoundStore<zustand.StoreApi<SubworkflowStore>>;
489
503
 
490
- type AgentDrawerStoreState = {
491
- /** The agent being edited (null = drawer closed) */
492
- agent: AgentWithPrompts | null;
493
- /** Available models for the agent */
494
- models: AgentModel[];
495
- /** Whether the drawer is open */
496
- open: boolean;
497
- /** Whether we are creating a new agent */
498
- isCreateMode: boolean;
499
- /** Active tab in the drawer */
500
- activeTab: 'config' | 'results';
501
- /** Currently selected model ID */
502
- selectedModelId: string;
503
- /** Currently selected framework */
504
- selectedFramework: string;
505
- /** Model temperature */
506
- temperature: number;
507
- /** Model ELO rating */
508
- elo: number;
509
- /** Whether there are unsaved changes */
510
- dirty: boolean;
511
- };
512
- type AgentDrawerStoreActions = {
513
- /** Open the drawer with an agent and available models */
514
- openDrawer: (agent: AgentWithPrompts, models: AgentModel[], isCreateMode?: boolean) => void;
515
- /** Close the drawer and reset state */
516
- closeDrawer: () => void;
517
- /** Set active tab and mark dirty */
518
- setActiveTab: (activeTab: 'config' | 'results') => void;
519
- /** Set selected model ID and mark dirty */
520
- setSelectedModelId: (selectedModelId: string) => void;
521
- /** Set selected framework and mark dirty */
522
- setSelectedFramework: (selectedFramework: string) => void;
523
- /** Set temperature and mark dirty */
524
- setTemperature: (temperature: number) => void;
525
- /** Set ELO and mark dirty */
526
- setElo: (elo: number) => void;
527
- /** Mark as dirty (e.g. when configuration changes) */
528
- markDirty: () => void;
529
- /** Mark as saved */
530
- markSaved: () => void;
531
- };
532
- type AgentDrawerStore = AgentDrawerStoreState & AgentDrawerStoreActions;
533
- declare const useAgentDrawerStore: zustand.UseBoundStore<zustand.StoreApi<AgentDrawerStore>>;
534
-
535
- type LogicNodeDrawerStoreState = {
536
- /** The ID of the node being viewed (null = drawer closed) */
537
- nodeId: string | null;
538
- /** The label of the node */
539
- nodeLabel: string;
540
- /** The logic node configuration */
541
- config: LogicNodeConfig | null;
542
- /** Whether the drawer is open */
543
- open: boolean;
544
- };
545
- type LogicNodeDrawerStoreActions = {
546
- /** Open the drawer with a logic node */
547
- openDrawer: (nodeId: string, nodeLabel: string, config: LogicNodeConfig) => void;
548
- /** Close the drawer and reset state */
549
- closeDrawer: () => void;
550
- };
551
- type LogicNodeDrawerStore = LogicNodeDrawerStoreState & LogicNodeDrawerStoreActions;
552
- declare const useLogicNodeDrawerStore: zustand.UseBoundStore<zustand.StoreApi<LogicNodeDrawerStore>>;
553
-
554
- /**
555
- * Pipeline Settings Store (Zustand)
556
- * ==================================
557
- * State management for the pipeline settings drawer — tracks
558
- * the pipeline name, description, and saving state.
559
- */
560
- type PipelineSettingsStoreState = {
561
- /** Whether the drawer is open */
562
- open: boolean;
563
- /** Pipeline name */
564
- name: string;
565
- /** Pipeline description */
566
- description: string;
567
- /** Whether a save operation is in progress */
568
- isSaving: boolean;
569
- };
570
- type PipelineSettingsStoreActions = {
571
- /** Open the drawer with current pipeline settings */
572
- openDrawer: (name: string, description: string) => void;
573
- /** Close the drawer and reset state */
574
- closeDrawer: () => void;
575
- /** Update pipeline name */
576
- setName: (name: string) => void;
577
- /** Update pipeline description */
578
- setDescription: (description: string) => void;
579
- /** Set saving state */
580
- setIsSaving: (saving: boolean) => void;
581
- };
582
- type PipelineSettingsStore = PipelineSettingsStoreState & PipelineSettingsStoreActions;
583
- declare const usePipelineSettingsStore: zustand.UseBoundStore<zustand.StoreApi<PipelineSettingsStore>>;
584
-
585
504
  /**
586
505
  * Workflow Store Selectors
587
506
  * ========================
@@ -751,4 +670,4 @@ declare function getEntityBadgeColor(entityKey: string | undefined): string;
751
670
  declare function getEntityHandleColor(entityKey: string | undefined): string;
752
671
  declare function getEntityMinimapColor(entityKey: string | undefined): string;
753
672
 
754
- export { AgentDrawer, AgentFlowNode, type AgentFramework, AgentNodeData, AgentToolFlowNode, AgentWithPrompts, AmazonNovaIcon, AnswerFlowNode, AnswerNodeData, AnthropicIcon, AnthropicModelIcon, AutoSaveWorkspace, type AutoSaveWorkspaceProps, CodeFlowNode, CodeNodeData, CrewAIIcon, DocumentExtractorFlowNode, DocumentExtractorNodeData, DslExportModal, DslImportModal, DynamicIslandConfirm, type DynamicIslandConfirmProps, EndFlowNode, EndNodeData, EntityFlowNode, EntityNodeData, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, GroupNodeData, HttpRequestFlowNode, HttpRequestNodeData, IfElseFlowNode, IfElseNodeData, IterationFlowNode, IterationNodeData, IterationStartFlowNode, IterationStartNodeData, KnowledgeBaseFlowNode, KnowledgeBaseNodeData, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, LayoutDirection, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeDrawer, MINIMAP_NODE_COLORS, MetaLlamaIcon, NodeCard, NodeContextMenu, NodePalette, type NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsDrawer, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, RuleFlowNode, RuleNodeData, RunInputDialog, type RunInputDialogProps, RunPanel, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowDrawer, TemplateTransformFlowNode, TemplateTransformNodeData, ToolFlowNode, ToolNodeData, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowGraph, WorkflowListBar, type WorkflowStore, type WorkspaceBootstrapPayload, WorkspaceDrawer, WorkspaceProps, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, isModelCompatibleWithFramework, useAgentDrawerStore, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useLogicNodeDrawerStore, useNodeResults, usePipelineSettingsStore, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
673
+ export { AgentDrawer, AgentFlowNode, type AgentFramework, AgentNodeData, AgentToolFlowNode, AgentWithPrompts, AmazonNovaIcon, AnswerFlowNode, AnswerNodeData, AnthropicIcon, AnthropicModelIcon, AutoSaveWorkspace, type AutoSaveWorkspaceProps, CodeFlowNode, CodeNodeData, CrewAIIcon, DocumentExtractorFlowNode, DocumentExtractorNodeData, DslExportModal, DslImportModal, DynamicIslandConfirm, type DynamicIslandConfirmProps, EndFlowNode, EndNodeData, EntityFlowNode, EntityNodeData, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, GroupNodeData, HttpRequestFlowNode, HttpRequestNodeData, IfElseFlowNode, IfElseNodeData, IterationFlowNode, IterationNodeData, IterationStartFlowNode, IterationStartNodeData, KnowledgeBaseFlowNode, KnowledgeBaseNodeData, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, LayoutDirection, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeDrawer, MINIMAP_NODE_COLORS, MetaLlamaIcon, NodeCard, NodeContextMenu, NodePalette, type NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsDrawer, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, RuleFlowNode, RuleNodeData, RunInputDialog, type RunInputDialogProps, RunPanel, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowDrawer, TemplateTransformFlowNode, TemplateTransformNodeData, ToolFlowNode, ToolNodeData, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowGraph, WorkflowListBar, type WorkflowStore, type WorkspaceBootstrapPayload, WorkspaceDrawer, WorkspaceProps, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, isModelCompatibleWithFramework, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useNodeResults, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
@@ -284,71 +284,6 @@ var useWorkflowStore = zustand.create((set, get) => ({
284
284
  });
285
285
  }
286
286
  }));
287
- var useAgentDrawerStore = zustand.create((set) => ({
288
- // State
289
- agent: null,
290
- models: [],
291
- open: false,
292
- isCreateMode: false,
293
- activeTab: "config",
294
- selectedModelId: "",
295
- selectedFramework: "",
296
- temperature: 0,
297
- elo: 0,
298
- dirty: false,
299
- // Actions
300
- openDrawer: (agent, models, isCreateMode = false) => set({
301
- agent,
302
- models,
303
- open: true,
304
- isCreateMode,
305
- activeTab: "config",
306
- selectedModelId: agent.modelId ?? "",
307
- selectedFramework: String(agent.framework ?? ""),
308
- temperature: agent.temperature ?? 0,
309
- elo: Number(agent.elo ?? 0),
310
- dirty: isCreateMode
311
- }),
312
- closeDrawer: () => set({
313
- agent: null,
314
- models: [],
315
- open: false,
316
- isCreateMode: false,
317
- activeTab: "config",
318
- selectedModelId: "",
319
- selectedFramework: "",
320
- temperature: 0,
321
- elo: 0,
322
- dirty: false
323
- }),
324
- setActiveTab: (activeTab) => set({ activeTab, dirty: true }),
325
- setSelectedModelId: (selectedModelId) => set({ selectedModelId, dirty: true }),
326
- setSelectedFramework: (selectedFramework) => set({ selectedFramework, dirty: true }),
327
- setTemperature: (temperature) => set({ temperature, dirty: true }),
328
- setElo: (elo) => set({ elo, dirty: true }),
329
- markDirty: () => set({ dirty: true }),
330
- markSaved: () => set({ dirty: false })
331
- }));
332
- var useLogicNodeDrawerStore = zustand.create((set) => ({
333
- // State
334
- nodeId: null,
335
- nodeLabel: "",
336
- config: null,
337
- open: false,
338
- // Actions
339
- openDrawer: (nodeId, nodeLabel, config) => set({
340
- nodeId,
341
- nodeLabel,
342
- config,
343
- open: true
344
- }),
345
- closeDrawer: () => set({
346
- nodeId: null,
347
- nodeLabel: "",
348
- config: null,
349
- open: false
350
- })
351
- }));
352
287
  var GRAPH_ACTIVE_EDGE_COLOR = "#14b8a6";
353
288
  var GRAPH_TRUE_EDGE_COLOR = "#22c55e";
354
289
  var GRAPH_FALSE_EDGE_COLOR = "#ef4444";
@@ -8405,8 +8340,7 @@ var NODE_TITLE_KEYS = {
8405
8340
  entity: "entityNodeConfig",
8406
8341
  group: "groupNodeConfig"
8407
8342
  };
8408
- function LogicNodeDrawer({ onSave, entities = [] }) {
8409
- const { nodeId, nodeLabel, config, open, closeDrawer: onClose } = useLogicNodeDrawerStore();
8343
+ function LogicNodeDrawer({ nodeId, nodeLabel, config, open, onClose, onSave, entities = [] }) {
8410
8344
  const t = nextIntl.useTranslations("agents.workflow");
8411
8345
  if (!config || !nodeId) return null;
8412
8346
  const entityMasterId = config.type === "entity" ? config.entityMasterId : void 0;
@@ -8899,27 +8833,16 @@ function WorkflowCanvasInner({
8899
8833
  const sortedAgents = React8.useMemo(() => [...agents].sort((agentA, agentB) => (agentA.order ?? 0) - (agentB.order ?? 0)), [agents]);
8900
8834
  const [selectedAgentId, setSelectedAgentId] = React8.useState(null);
8901
8835
  const [drawerOpen, setDrawerOpen] = React8.useState(false);
8902
- const openAgentDrawerRaw = useAgentDrawerStore((s) => s.openDrawer);
8903
- const closeAgentDrawer = useAgentDrawerStore((s) => s.closeDrawer);
8904
- const closeLogicNodeDrawerAction = useLogicNodeDrawerStore((s) => s.closeDrawer);
8905
8836
  const closeAllDrawers = React8.useCallback(() => {
8906
- closeAgentDrawer();
8907
- closeLogicNodeDrawerAction();
8908
8837
  setEditingLogicNodeId(null);
8909
8838
  setDrawerOpen(false);
8910
8839
  setSelectedAgentId(null);
8911
- }, [closeAgentDrawer, closeLogicNodeDrawerAction]);
8912
- const openAgentDrawer = React8.useCallback((agent, agentModels, isCreate = false) => {
8913
- closeLogicNodeDrawerAction();
8840
+ }, []);
8841
+ const openAgentDrawer = React8.useCallback((agent, _agentModels, _isCreate = false) => {
8914
8842
  setEditingLogicNodeId(null);
8915
8843
  setDrawerOpen(true);
8916
- openAgentDrawerRaw(agent, agentModels, isCreate);
8917
- }, [closeLogicNodeDrawerAction, openAgentDrawerRaw]);
8918
- React8.useEffect(() => {
8919
- if (isCreatingAgent) {
8920
- openAgentDrawer({ agentId: "", name: "", order: 0, enabled: true, temperature: 0.7, maxTokens: 4096 }, models, true);
8921
- }
8922
- }, [isCreatingAgent]);
8844
+ setSelectedAgentId(agent.agentId);
8845
+ }, []);
8923
8846
  const graphChangeTimerRef = React8.useRef(null);
8924
8847
  const insertNodeOnEdgeRef = React8.useRef(() => {
8925
8848
  });
@@ -8955,8 +8878,6 @@ function WorkflowCanvasInner({
8955
8878
  const layoutDirection = useWorkflowStore((s) => s.layoutDirection);
8956
8879
  const setLayoutDirection = useWorkflowStore((s) => s.setLayoutDirection);
8957
8880
  const [editingLogicNodeId, setEditingLogicNodeId] = React8.useState(null);
8958
- const openLogicNodeDrawer = useLogicNodeDrawerStore((s) => s.openDrawer);
8959
- useLogicNodeDrawerStore((s) => s.closeDrawer);
8960
8881
  const handleEditLogicNode = React8.useCallback((nodeId) => {
8961
8882
  closeAllDrawers();
8962
8883
  setEditingLogicNodeId(nodeId);
@@ -10194,11 +10115,6 @@ function WorkflowCanvasInner({
10194
10115
  const label = nodeData.label ?? "";
10195
10116
  return { nodeId: editingLogicNodeId, config, label };
10196
10117
  }, [editingLogicNodeId, nodes]);
10197
- React8.useEffect(() => {
10198
- if (editingLogicNode) {
10199
- openLogicNodeDrawer(editingLogicNode.nodeId, editingLogicNode.label, editingLogicNode.config);
10200
- }
10201
- }, [editingLogicNode]);
10202
10118
  const handleSaveLogicNodeConfig = React8.useCallback((nodeId, updatedConfig) => {
10203
10119
  storeTakeSnapshot();
10204
10120
  setNodes(
@@ -11042,31 +10958,23 @@ function ResultsTab({ agentId, t }) {
11042
10958
  ] })
11043
10959
  ] });
11044
10960
  }
11045
- function AgentDrawer({ onSaved }) {
10961
+ function AgentDrawer({ agent, models, open, isCreateMode = false, onClose, onSaved }) {
11046
10962
  const t = nextIntl.useTranslations("agents.workflow");
11047
- const agent = useAgentDrawerStore((state) => state.agent);
11048
- const models = useAgentDrawerStore((state) => state.models);
11049
- const open = useAgentDrawerStore((state) => state.open);
11050
- const activeTab = useAgentDrawerStore((state) => state.activeTab);
11051
- const selectedModelId = useAgentDrawerStore((state) => state.selectedModelId);
11052
- const selectedFramework = useAgentDrawerStore((state) => state.selectedFramework);
11053
- const temperature = useAgentDrawerStore((state) => state.temperature);
11054
- const elo = useAgentDrawerStore((state) => state.elo);
11055
- const dirty = useAgentDrawerStore((state) => state.dirty);
11056
- const setActiveTab = useAgentDrawerStore((state) => state.setActiveTab);
11057
- const setSelectedModelId = useAgentDrawerStore((state) => state.setSelectedModelId);
11058
- const setSelectedFramework = useAgentDrawerStore((state) => state.setSelectedFramework);
11059
- const setTemperature = useAgentDrawerStore((state) => state.setTemperature);
11060
- const setElo = useAgentDrawerStore((state) => state.setElo);
11061
- const markDirty = useAgentDrawerStore((state) => state.markDirty);
11062
- const markSaved = useAgentDrawerStore((state) => state.markSaved);
11063
- const closeDrawer = useAgentDrawerStore((state) => state.closeDrawer);
10963
+ const [activeTab, setActiveTab] = React8.useState("config");
10964
+ const [selectedModelId, setSelectedModelId] = React8.useState(agent?.modelId ?? "");
10965
+ const [selectedFramework, setSelectedFramework] = React8.useState(String(agent?.framework ?? ""));
10966
+ const [temperature, setTemperature] = React8.useState(agent?.temperature ?? 0);
10967
+ const [elo, setElo] = React8.useState(Number(agent?.elo ?? 0));
10968
+ const [saved, setSaved] = React8.useState(!isCreateMode);
10969
+ const dirty = !saved;
10970
+ const markDirty = React8.useCallback(() => setSaved(false), []);
10971
+ const markSaved = React8.useCallback(() => setSaved(true), []);
11064
10972
  const handleClose = React8.useCallback(() => {
11065
- closeDrawer();
11066
- }, [closeDrawer]);
10973
+ onClose();
10974
+ }, [onClose]);
11067
10975
  const handleMarkSaved = React8.useCallback(() => {
11068
10976
  markSaved();
11069
- onSaved?.();
10977
+ onSaved();
11070
10978
  }, [markSaved, onSaved]);
11071
10979
  if (!agent) return null;
11072
10980
  const tabs = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex border-b border-white/20 dark:border-white/10", children: ["config", "results"].map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -11373,42 +11281,29 @@ function SubworkflowDrawer({ onSaved, onMaximize }) {
11373
11281
  }
11374
11282
  );
11375
11283
  }
11376
- var usePipelineSettingsStore = zustand.create((set) => ({
11377
- // State
11378
- open: false,
11379
- name: "",
11380
- description: "",
11381
- isSaving: false,
11382
- // Actions
11383
- openDrawer: (name, description) => set({
11384
- open: true,
11385
- name,
11386
- description,
11387
- isSaving: false
11388
- }),
11389
- closeDrawer: () => set({
11390
- open: false,
11391
- name: "",
11392
- description: "",
11393
- isSaving: false
11394
- }),
11395
- setName: (name) => set({ name }),
11396
- setDescription: (description) => set({ description }),
11397
- setIsSaving: (isSaving) => set({ isSaving })
11398
- }));
11399
11284
  function PipelineSettingsDrawer({
11285
+ open,
11286
+ onClose,
11287
+ name,
11288
+ description,
11400
11289
  onSave
11401
11290
  }) {
11402
11291
  const t = nextIntl.useTranslations("agents.workflow");
11403
- const { open, name, description, isSaving, setName, setDescription, setIsSaving, closeDrawer } = usePipelineSettingsStore();
11292
+ const [nameValue, setNameValue] = React8.useState(name);
11293
+ const [descriptionValue, setDescriptionValue] = React8.useState(description);
11294
+ const [isSaving, setIsSaving] = React8.useState(false);
11295
+ React8.useEffect(() => {
11296
+ setNameValue(name);
11297
+ setDescriptionValue(description);
11298
+ }, [name, description]);
11404
11299
  const handleSubmit = async (event) => {
11405
11300
  event.preventDefault();
11406
- const trimmedName = name.trim();
11301
+ const trimmedName = nameValue.trim();
11407
11302
  if (!trimmedName) return;
11408
11303
  setIsSaving(true);
11409
11304
  try {
11410
- await onSave(trimmedName, description.trim());
11411
- closeDrawer();
11305
+ await onSave(trimmedName, descriptionValue.trim());
11306
+ onClose();
11412
11307
  } catch {
11413
11308
  } finally {
11414
11309
  setIsSaving(false);
@@ -11418,7 +11313,7 @@ function PipelineSettingsDrawer({
11418
11313
  WorkspaceDrawer,
11419
11314
  {
11420
11315
  open,
11421
- onClose: closeDrawer,
11316
+ onClose,
11422
11317
  title: t("pipelineSettings"),
11423
11318
  subtitle: t("pipelineSettingsSubtitle"),
11424
11319
  icon: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.Cog6ToothIcon, { className: "h-5 w-5 text-white" }),
@@ -11428,8 +11323,8 @@ function PipelineSettingsDrawer({
11428
11323
  FormInput,
11429
11324
  {
11430
11325
  label: t("pipelineName"),
11431
- value: name,
11432
- onValueChange: setName,
11326
+ value: nameValue,
11327
+ onValueChange: setNameValue,
11433
11328
  placeholder: t("pipelineNamePlaceholder"),
11434
11329
  required: true
11435
11330
  }
@@ -11438,8 +11333,8 @@ function PipelineSettingsDrawer({
11438
11333
  FormTextarea,
11439
11334
  {
11440
11335
  label: t("pipelineDescription"),
11441
- value: description,
11442
- onValueChange: setDescription,
11336
+ value: descriptionValue,
11337
+ onValueChange: setDescriptionValue,
11443
11338
  placeholder: t("pipelineDescriptionPlaceholder"),
11444
11339
  rows: 4
11445
11340
  }
@@ -13884,7 +13779,6 @@ exports.getFrameworkMeta = getFrameworkMeta;
13884
13779
  exports.getModelIcon = getModelIcon;
13885
13780
  exports.isModelCompatibleWithFramework = isModelCompatibleWithFramework;
13886
13781
  exports.topologicalSortAgents = topologicalSortAgents;
13887
- exports.useAgentDrawerStore = useAgentDrawerStore;
13888
13782
  exports.useCanRedo = useCanRedo;
13889
13783
  exports.useCanUndo = useCanUndo;
13890
13784
  exports.useCanvasShortcuts = useCanvasShortcuts;
@@ -13894,9 +13788,7 @@ exports.useEditingNodeId = useEditingNodeId;
13894
13788
  exports.useHasCopied = useHasCopied;
13895
13789
  exports.useHelpLines = useHelpLines;
13896
13790
  exports.useIsRunning = useIsRunning;
13897
- exports.useLogicNodeDrawerStore = useLogicNodeDrawerStore;
13898
13791
  exports.useNodeResults = useNodeResults;
13899
- exports.usePipelineSettingsStore = usePipelineSettingsStore;
13900
13792
  exports.useSelectedNodeCount = useSelectedNodeCount;
13901
13793
  exports.useSubworkflowStore = useSubworkflowStore;
13902
13794
  exports.useUndoRedo = useUndoRedo;