@datatechsolutions/ui 2.7.111 → 2.7.113
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/workflow/index.d.mts +19 -105
- package/dist/workflow/index.d.ts +19 -105
- package/dist/workflow/index.js +39 -151
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/index.mjs +40 -149
- package/dist/workflow/index.mjs.map +1 -1
- package/dist/workflow/workflow-canvas.js +5 -89
- package/dist/workflow/workflow-canvas.js.map +1 -1
- package/dist/workflow/workflow-canvas.mjs +5 -89
- package/dist/workflow/workflow-canvas.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -199,14 +199,14 @@ declare const GroupFlowNode: React$1.NamedExoticComponent<{
|
|
|
199
199
|
}>;
|
|
200
200
|
|
|
201
201
|
type AgentDrawerProps = {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
onClose
|
|
207
|
-
onSaved
|
|
202
|
+
agent: AgentWithPrompts | null;
|
|
203
|
+
models: AgentModel[];
|
|
204
|
+
open: boolean;
|
|
205
|
+
isCreateMode?: boolean;
|
|
206
|
+
onClose: () => void;
|
|
207
|
+
onSaved: () => void;
|
|
208
208
|
};
|
|
209
|
-
declare function AgentDrawer({ agent
|
|
209
|
+
declare function AgentDrawer({ agent, models, open, isCreateMode, onClose, onSaved }: AgentDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
210
210
|
|
|
211
211
|
type SubworkflowDrawerProps = {
|
|
212
212
|
/** Called when save/create is clicked — receives the merged subworkflow with updated graph */
|
|
@@ -217,10 +217,15 @@ type SubworkflowDrawerProps = {
|
|
|
217
217
|
declare function SubworkflowDrawer({ onSaved, onMaximize }: SubworkflowDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
218
218
|
|
|
219
219
|
type LogicNodeDrawerProps = {
|
|
220
|
+
nodeId: string | null;
|
|
221
|
+
nodeLabel: string;
|
|
222
|
+
config: LogicNodeConfig | null;
|
|
223
|
+
open: boolean;
|
|
224
|
+
onClose: () => void;
|
|
220
225
|
onSave: (nodeId: string, updatedConfig: LogicNodeConfig) => void;
|
|
221
226
|
entities?: WorkflowEntityDefinition[];
|
|
222
227
|
};
|
|
223
|
-
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;
|
|
224
229
|
|
|
225
230
|
type WorkspaceDrawerProps = {
|
|
226
231
|
open: boolean;
|
|
@@ -236,9 +241,13 @@ type WorkspaceDrawerProps = {
|
|
|
236
241
|
declare function WorkspaceDrawer({ open, onClose, title, subtitle, icon, gradient, maxWidth, tabs, children, }: WorkspaceDrawerProps): react_jsx_runtime.JSX.Element;
|
|
237
242
|
|
|
238
243
|
type PipelineSettingsDrawerProps = {
|
|
244
|
+
open: boolean;
|
|
245
|
+
onClose: () => void;
|
|
246
|
+
name: string;
|
|
247
|
+
description: string;
|
|
239
248
|
onSave: (name: string, description: string) => Promise<void>;
|
|
240
249
|
};
|
|
241
|
-
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;
|
|
242
251
|
|
|
243
252
|
type NodePaletteProps = {
|
|
244
253
|
agents: AgentWithPrompts[];
|
|
@@ -492,101 +501,6 @@ type SubworkflowStoreActions = {
|
|
|
492
501
|
type SubworkflowStore = SubworkflowStoreState & SubworkflowStoreActions;
|
|
493
502
|
declare const useSubworkflowStore: zustand.UseBoundStore<zustand.StoreApi<SubworkflowStore>>;
|
|
494
503
|
|
|
495
|
-
type AgentDrawerStoreState = {
|
|
496
|
-
/** The agent being edited (null = drawer closed) */
|
|
497
|
-
agent: AgentWithPrompts | null;
|
|
498
|
-
/** Available models for the agent */
|
|
499
|
-
models: AgentModel[];
|
|
500
|
-
/** Whether the drawer is open */
|
|
501
|
-
open: boolean;
|
|
502
|
-
/** Whether we are creating a new agent */
|
|
503
|
-
isCreateMode: boolean;
|
|
504
|
-
/** Active tab in the drawer */
|
|
505
|
-
activeTab: 'config' | 'results';
|
|
506
|
-
/** Currently selected model ID */
|
|
507
|
-
selectedModelId: string;
|
|
508
|
-
/** Currently selected framework */
|
|
509
|
-
selectedFramework: string;
|
|
510
|
-
/** Model temperature */
|
|
511
|
-
temperature: number;
|
|
512
|
-
/** Model ELO rating */
|
|
513
|
-
elo: number;
|
|
514
|
-
/** Whether there are unsaved changes */
|
|
515
|
-
dirty: boolean;
|
|
516
|
-
};
|
|
517
|
-
type AgentDrawerStoreActions = {
|
|
518
|
-
/** Open the drawer with an agent and available models */
|
|
519
|
-
openDrawer: (agent: AgentWithPrompts, models: AgentModel[], isCreateMode?: boolean) => void;
|
|
520
|
-
/** Close the drawer and reset state */
|
|
521
|
-
closeDrawer: () => void;
|
|
522
|
-
/** Set active tab and mark dirty */
|
|
523
|
-
setActiveTab: (activeTab: 'config' | 'results') => void;
|
|
524
|
-
/** Set selected model ID and mark dirty */
|
|
525
|
-
setSelectedModelId: (selectedModelId: string) => void;
|
|
526
|
-
/** Set selected framework and mark dirty */
|
|
527
|
-
setSelectedFramework: (selectedFramework: string) => void;
|
|
528
|
-
/** Set temperature and mark dirty */
|
|
529
|
-
setTemperature: (temperature: number) => void;
|
|
530
|
-
/** Set ELO and mark dirty */
|
|
531
|
-
setElo: (elo: number) => void;
|
|
532
|
-
/** Mark as dirty (e.g. when configuration changes) */
|
|
533
|
-
markDirty: () => void;
|
|
534
|
-
/** Mark as saved */
|
|
535
|
-
markSaved: () => void;
|
|
536
|
-
};
|
|
537
|
-
type AgentDrawerStore = AgentDrawerStoreState & AgentDrawerStoreActions;
|
|
538
|
-
declare const useAgentDrawerStore: zustand.UseBoundStore<zustand.StoreApi<AgentDrawerStore>>;
|
|
539
|
-
|
|
540
|
-
type LogicNodeDrawerStoreState = {
|
|
541
|
-
/** The ID of the node being viewed (null = drawer closed) */
|
|
542
|
-
nodeId: string | null;
|
|
543
|
-
/** The label of the node */
|
|
544
|
-
nodeLabel: string;
|
|
545
|
-
/** The logic node configuration */
|
|
546
|
-
config: LogicNodeConfig | null;
|
|
547
|
-
/** Whether the drawer is open */
|
|
548
|
-
open: boolean;
|
|
549
|
-
};
|
|
550
|
-
type LogicNodeDrawerStoreActions = {
|
|
551
|
-
/** Open the drawer with a logic node */
|
|
552
|
-
openDrawer: (nodeId: string, nodeLabel: string, config: LogicNodeConfig) => void;
|
|
553
|
-
/** Close the drawer and reset state */
|
|
554
|
-
closeDrawer: () => void;
|
|
555
|
-
};
|
|
556
|
-
type LogicNodeDrawerStore = LogicNodeDrawerStoreState & LogicNodeDrawerStoreActions;
|
|
557
|
-
declare const useLogicNodeDrawerStore: zustand.UseBoundStore<zustand.StoreApi<LogicNodeDrawerStore>>;
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Pipeline Settings Store (Zustand)
|
|
561
|
-
* ==================================
|
|
562
|
-
* State management for the pipeline settings drawer — tracks
|
|
563
|
-
* the pipeline name, description, and saving state.
|
|
564
|
-
*/
|
|
565
|
-
type PipelineSettingsStoreState = {
|
|
566
|
-
/** Whether the drawer is open */
|
|
567
|
-
open: boolean;
|
|
568
|
-
/** Pipeline name */
|
|
569
|
-
name: string;
|
|
570
|
-
/** Pipeline description */
|
|
571
|
-
description: string;
|
|
572
|
-
/** Whether a save operation is in progress */
|
|
573
|
-
isSaving: boolean;
|
|
574
|
-
};
|
|
575
|
-
type PipelineSettingsStoreActions = {
|
|
576
|
-
/** Open the drawer with current pipeline settings */
|
|
577
|
-
openDrawer: (name: string, description: string) => void;
|
|
578
|
-
/** Close the drawer and reset state */
|
|
579
|
-
closeDrawer: () => void;
|
|
580
|
-
/** Update pipeline name */
|
|
581
|
-
setName: (name: string) => void;
|
|
582
|
-
/** Update pipeline description */
|
|
583
|
-
setDescription: (description: string) => void;
|
|
584
|
-
/** Set saving state */
|
|
585
|
-
setIsSaving: (saving: boolean) => void;
|
|
586
|
-
};
|
|
587
|
-
type PipelineSettingsStore = PipelineSettingsStoreState & PipelineSettingsStoreActions;
|
|
588
|
-
declare const usePipelineSettingsStore: zustand.UseBoundStore<zustand.StoreApi<PipelineSettingsStore>>;
|
|
589
|
-
|
|
590
504
|
/**
|
|
591
505
|
* Workflow Store Selectors
|
|
592
506
|
* ========================
|
|
@@ -756,4 +670,4 @@ declare function getEntityBadgeColor(entityKey: string | undefined): string;
|
|
|
756
670
|
declare function getEntityHandleColor(entityKey: string | undefined): string;
|
|
757
671
|
declare function getEntityMinimapColor(entityKey: string | undefined): string;
|
|
758
672
|
|
|
759
|
-
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,
|
|
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 };
|
package/dist/workflow/index.d.ts
CHANGED
|
@@ -199,14 +199,14 @@ declare const GroupFlowNode: React$1.NamedExoticComponent<{
|
|
|
199
199
|
}>;
|
|
200
200
|
|
|
201
201
|
type AgentDrawerProps = {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
onClose
|
|
207
|
-
onSaved
|
|
202
|
+
agent: AgentWithPrompts | null;
|
|
203
|
+
models: AgentModel[];
|
|
204
|
+
open: boolean;
|
|
205
|
+
isCreateMode?: boolean;
|
|
206
|
+
onClose: () => void;
|
|
207
|
+
onSaved: () => void;
|
|
208
208
|
};
|
|
209
|
-
declare function AgentDrawer({ agent
|
|
209
|
+
declare function AgentDrawer({ agent, models, open, isCreateMode, onClose, onSaved }: AgentDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
210
210
|
|
|
211
211
|
type SubworkflowDrawerProps = {
|
|
212
212
|
/** Called when save/create is clicked — receives the merged subworkflow with updated graph */
|
|
@@ -217,10 +217,15 @@ type SubworkflowDrawerProps = {
|
|
|
217
217
|
declare function SubworkflowDrawer({ onSaved, onMaximize }: SubworkflowDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
218
218
|
|
|
219
219
|
type LogicNodeDrawerProps = {
|
|
220
|
+
nodeId: string | null;
|
|
221
|
+
nodeLabel: string;
|
|
222
|
+
config: LogicNodeConfig | null;
|
|
223
|
+
open: boolean;
|
|
224
|
+
onClose: () => void;
|
|
220
225
|
onSave: (nodeId: string, updatedConfig: LogicNodeConfig) => void;
|
|
221
226
|
entities?: WorkflowEntityDefinition[];
|
|
222
227
|
};
|
|
223
|
-
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;
|
|
224
229
|
|
|
225
230
|
type WorkspaceDrawerProps = {
|
|
226
231
|
open: boolean;
|
|
@@ -236,9 +241,13 @@ type WorkspaceDrawerProps = {
|
|
|
236
241
|
declare function WorkspaceDrawer({ open, onClose, title, subtitle, icon, gradient, maxWidth, tabs, children, }: WorkspaceDrawerProps): react_jsx_runtime.JSX.Element;
|
|
237
242
|
|
|
238
243
|
type PipelineSettingsDrawerProps = {
|
|
244
|
+
open: boolean;
|
|
245
|
+
onClose: () => void;
|
|
246
|
+
name: string;
|
|
247
|
+
description: string;
|
|
239
248
|
onSave: (name: string, description: string) => Promise<void>;
|
|
240
249
|
};
|
|
241
|
-
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;
|
|
242
251
|
|
|
243
252
|
type NodePaletteProps = {
|
|
244
253
|
agents: AgentWithPrompts[];
|
|
@@ -492,101 +501,6 @@ type SubworkflowStoreActions = {
|
|
|
492
501
|
type SubworkflowStore = SubworkflowStoreState & SubworkflowStoreActions;
|
|
493
502
|
declare const useSubworkflowStore: zustand.UseBoundStore<zustand.StoreApi<SubworkflowStore>>;
|
|
494
503
|
|
|
495
|
-
type AgentDrawerStoreState = {
|
|
496
|
-
/** The agent being edited (null = drawer closed) */
|
|
497
|
-
agent: AgentWithPrompts | null;
|
|
498
|
-
/** Available models for the agent */
|
|
499
|
-
models: AgentModel[];
|
|
500
|
-
/** Whether the drawer is open */
|
|
501
|
-
open: boolean;
|
|
502
|
-
/** Whether we are creating a new agent */
|
|
503
|
-
isCreateMode: boolean;
|
|
504
|
-
/** Active tab in the drawer */
|
|
505
|
-
activeTab: 'config' | 'results';
|
|
506
|
-
/** Currently selected model ID */
|
|
507
|
-
selectedModelId: string;
|
|
508
|
-
/** Currently selected framework */
|
|
509
|
-
selectedFramework: string;
|
|
510
|
-
/** Model temperature */
|
|
511
|
-
temperature: number;
|
|
512
|
-
/** Model ELO rating */
|
|
513
|
-
elo: number;
|
|
514
|
-
/** Whether there are unsaved changes */
|
|
515
|
-
dirty: boolean;
|
|
516
|
-
};
|
|
517
|
-
type AgentDrawerStoreActions = {
|
|
518
|
-
/** Open the drawer with an agent and available models */
|
|
519
|
-
openDrawer: (agent: AgentWithPrompts, models: AgentModel[], isCreateMode?: boolean) => void;
|
|
520
|
-
/** Close the drawer and reset state */
|
|
521
|
-
closeDrawer: () => void;
|
|
522
|
-
/** Set active tab and mark dirty */
|
|
523
|
-
setActiveTab: (activeTab: 'config' | 'results') => void;
|
|
524
|
-
/** Set selected model ID and mark dirty */
|
|
525
|
-
setSelectedModelId: (selectedModelId: string) => void;
|
|
526
|
-
/** Set selected framework and mark dirty */
|
|
527
|
-
setSelectedFramework: (selectedFramework: string) => void;
|
|
528
|
-
/** Set temperature and mark dirty */
|
|
529
|
-
setTemperature: (temperature: number) => void;
|
|
530
|
-
/** Set ELO and mark dirty */
|
|
531
|
-
setElo: (elo: number) => void;
|
|
532
|
-
/** Mark as dirty (e.g. when configuration changes) */
|
|
533
|
-
markDirty: () => void;
|
|
534
|
-
/** Mark as saved */
|
|
535
|
-
markSaved: () => void;
|
|
536
|
-
};
|
|
537
|
-
type AgentDrawerStore = AgentDrawerStoreState & AgentDrawerStoreActions;
|
|
538
|
-
declare const useAgentDrawerStore: zustand.UseBoundStore<zustand.StoreApi<AgentDrawerStore>>;
|
|
539
|
-
|
|
540
|
-
type LogicNodeDrawerStoreState = {
|
|
541
|
-
/** The ID of the node being viewed (null = drawer closed) */
|
|
542
|
-
nodeId: string | null;
|
|
543
|
-
/** The label of the node */
|
|
544
|
-
nodeLabel: string;
|
|
545
|
-
/** The logic node configuration */
|
|
546
|
-
config: LogicNodeConfig | null;
|
|
547
|
-
/** Whether the drawer is open */
|
|
548
|
-
open: boolean;
|
|
549
|
-
};
|
|
550
|
-
type LogicNodeDrawerStoreActions = {
|
|
551
|
-
/** Open the drawer with a logic node */
|
|
552
|
-
openDrawer: (nodeId: string, nodeLabel: string, config: LogicNodeConfig) => void;
|
|
553
|
-
/** Close the drawer and reset state */
|
|
554
|
-
closeDrawer: () => void;
|
|
555
|
-
};
|
|
556
|
-
type LogicNodeDrawerStore = LogicNodeDrawerStoreState & LogicNodeDrawerStoreActions;
|
|
557
|
-
declare const useLogicNodeDrawerStore: zustand.UseBoundStore<zustand.StoreApi<LogicNodeDrawerStore>>;
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Pipeline Settings Store (Zustand)
|
|
561
|
-
* ==================================
|
|
562
|
-
* State management for the pipeline settings drawer — tracks
|
|
563
|
-
* the pipeline name, description, and saving state.
|
|
564
|
-
*/
|
|
565
|
-
type PipelineSettingsStoreState = {
|
|
566
|
-
/** Whether the drawer is open */
|
|
567
|
-
open: boolean;
|
|
568
|
-
/** Pipeline name */
|
|
569
|
-
name: string;
|
|
570
|
-
/** Pipeline description */
|
|
571
|
-
description: string;
|
|
572
|
-
/** Whether a save operation is in progress */
|
|
573
|
-
isSaving: boolean;
|
|
574
|
-
};
|
|
575
|
-
type PipelineSettingsStoreActions = {
|
|
576
|
-
/** Open the drawer with current pipeline settings */
|
|
577
|
-
openDrawer: (name: string, description: string) => void;
|
|
578
|
-
/** Close the drawer and reset state */
|
|
579
|
-
closeDrawer: () => void;
|
|
580
|
-
/** Update pipeline name */
|
|
581
|
-
setName: (name: string) => void;
|
|
582
|
-
/** Update pipeline description */
|
|
583
|
-
setDescription: (description: string) => void;
|
|
584
|
-
/** Set saving state */
|
|
585
|
-
setIsSaving: (saving: boolean) => void;
|
|
586
|
-
};
|
|
587
|
-
type PipelineSettingsStore = PipelineSettingsStoreState & PipelineSettingsStoreActions;
|
|
588
|
-
declare const usePipelineSettingsStore: zustand.UseBoundStore<zustand.StoreApi<PipelineSettingsStore>>;
|
|
589
|
-
|
|
590
504
|
/**
|
|
591
505
|
* Workflow Store Selectors
|
|
592
506
|
* ========================
|
|
@@ -756,4 +670,4 @@ declare function getEntityBadgeColor(entityKey: string | undefined): string;
|
|
|
756
670
|
declare function getEntityHandleColor(entityKey: string | undefined): string;
|
|
757
671
|
declare function getEntityMinimapColor(entityKey: string | undefined): string;
|
|
758
672
|
|
|
759
|
-
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,
|
|
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 };
|
package/dist/workflow/index.js
CHANGED
|
@@ -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";
|
|
@@ -1373,13 +1308,13 @@ var FRAMEWORK_ALLOWED_PROVIDERS = {
|
|
|
1373
1308
|
};
|
|
1374
1309
|
function isModelCompatibleWithFramework(modelId, framework) {
|
|
1375
1310
|
const allowed = FRAMEWORK_ALLOWED_PROVIDERS[framework];
|
|
1376
|
-
if (allowed === "all") return true;
|
|
1311
|
+
if (!allowed || allowed === "all") return true;
|
|
1377
1312
|
const provider = modelId.split(".")[0];
|
|
1378
1313
|
return allowed.includes(provider);
|
|
1379
1314
|
}
|
|
1380
1315
|
function getCompatibleModels(models, framework) {
|
|
1381
1316
|
const allowed = FRAMEWORK_ALLOWED_PROVIDERS[framework];
|
|
1382
|
-
if (allowed === "all") return models;
|
|
1317
|
+
if (!allowed || allowed === "all") return models;
|
|
1383
1318
|
return models.filter((model) => {
|
|
1384
1319
|
const provider = model.id.split(".")[0];
|
|
1385
1320
|
return allowed.includes(provider);
|
|
@@ -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
|
-
}, [
|
|
8912
|
-
const openAgentDrawer = React8.useCallback((agent,
|
|
8913
|
-
closeLogicNodeDrawerAction();
|
|
8840
|
+
}, []);
|
|
8841
|
+
const openAgentDrawer = React8.useCallback((agent, _agentModels, _isCreate = false) => {
|
|
8914
8842
|
setEditingLogicNodeId(null);
|
|
8915
8843
|
setDrawerOpen(true);
|
|
8916
|
-
|
|
8917
|
-
}, [
|
|
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,35 +10958,23 @@ function ResultsTab({ agentId, t }) {
|
|
|
11042
10958
|
] })
|
|
11043
10959
|
] });
|
|
11044
10960
|
}
|
|
11045
|
-
function AgentDrawer({ agent
|
|
10961
|
+
function AgentDrawer({ agent, models, open, isCreateMode = false, onClose, onSaved }) {
|
|
11046
10962
|
const t = nextIntl.useTranslations("agents.workflow");
|
|
11047
|
-
const
|
|
11048
|
-
const
|
|
11049
|
-
const
|
|
11050
|
-
const
|
|
11051
|
-
const
|
|
11052
|
-
const
|
|
11053
|
-
const
|
|
11054
|
-
const
|
|
11055
|
-
const
|
|
11056
|
-
const temperature = useAgentDrawerStore((state) => state.temperature);
|
|
11057
|
-
const elo = useAgentDrawerStore((state) => state.elo);
|
|
11058
|
-
const dirty = useAgentDrawerStore((state) => state.dirty);
|
|
11059
|
-
const setActiveTab = useAgentDrawerStore((state) => state.setActiveTab);
|
|
11060
|
-
const setSelectedModelId = useAgentDrawerStore((state) => state.setSelectedModelId);
|
|
11061
|
-
const setSelectedFramework = useAgentDrawerStore((state) => state.setSelectedFramework);
|
|
11062
|
-
const setTemperature = useAgentDrawerStore((state) => state.setTemperature);
|
|
11063
|
-
const setElo = useAgentDrawerStore((state) => state.setElo);
|
|
11064
|
-
const markDirty = useAgentDrawerStore((state) => state.markDirty);
|
|
11065
|
-
const markSaved = useAgentDrawerStore((state) => state.markSaved);
|
|
11066
|
-
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), []);
|
|
11067
10972
|
const handleClose = React8.useCallback(() => {
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
}, [onCloseProp, closeDrawer]);
|
|
10973
|
+
onClose();
|
|
10974
|
+
}, [onClose]);
|
|
11071
10975
|
const handleMarkSaved = React8.useCallback(() => {
|
|
11072
10976
|
markSaved();
|
|
11073
|
-
onSaved
|
|
10977
|
+
onSaved();
|
|
11074
10978
|
}, [markSaved, onSaved]);
|
|
11075
10979
|
if (!agent) return null;
|
|
11076
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(
|
|
@@ -11377,42 +11281,29 @@ function SubworkflowDrawer({ onSaved, onMaximize }) {
|
|
|
11377
11281
|
}
|
|
11378
11282
|
);
|
|
11379
11283
|
}
|
|
11380
|
-
var usePipelineSettingsStore = zustand.create((set) => ({
|
|
11381
|
-
// State
|
|
11382
|
-
open: false,
|
|
11383
|
-
name: "",
|
|
11384
|
-
description: "",
|
|
11385
|
-
isSaving: false,
|
|
11386
|
-
// Actions
|
|
11387
|
-
openDrawer: (name, description) => set({
|
|
11388
|
-
open: true,
|
|
11389
|
-
name,
|
|
11390
|
-
description,
|
|
11391
|
-
isSaving: false
|
|
11392
|
-
}),
|
|
11393
|
-
closeDrawer: () => set({
|
|
11394
|
-
open: false,
|
|
11395
|
-
name: "",
|
|
11396
|
-
description: "",
|
|
11397
|
-
isSaving: false
|
|
11398
|
-
}),
|
|
11399
|
-
setName: (name) => set({ name }),
|
|
11400
|
-
setDescription: (description) => set({ description }),
|
|
11401
|
-
setIsSaving: (isSaving) => set({ isSaving })
|
|
11402
|
-
}));
|
|
11403
11284
|
function PipelineSettingsDrawer({
|
|
11285
|
+
open,
|
|
11286
|
+
onClose,
|
|
11287
|
+
name,
|
|
11288
|
+
description,
|
|
11404
11289
|
onSave
|
|
11405
11290
|
}) {
|
|
11406
11291
|
const t = nextIntl.useTranslations("agents.workflow");
|
|
11407
|
-
const
|
|
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]);
|
|
11408
11299
|
const handleSubmit = async (event) => {
|
|
11409
11300
|
event.preventDefault();
|
|
11410
|
-
const trimmedName =
|
|
11301
|
+
const trimmedName = nameValue.trim();
|
|
11411
11302
|
if (!trimmedName) return;
|
|
11412
11303
|
setIsSaving(true);
|
|
11413
11304
|
try {
|
|
11414
|
-
await onSave(trimmedName,
|
|
11415
|
-
|
|
11305
|
+
await onSave(trimmedName, descriptionValue.trim());
|
|
11306
|
+
onClose();
|
|
11416
11307
|
} catch {
|
|
11417
11308
|
} finally {
|
|
11418
11309
|
setIsSaving(false);
|
|
@@ -11422,7 +11313,7 @@ function PipelineSettingsDrawer({
|
|
|
11422
11313
|
WorkspaceDrawer,
|
|
11423
11314
|
{
|
|
11424
11315
|
open,
|
|
11425
|
-
onClose
|
|
11316
|
+
onClose,
|
|
11426
11317
|
title: t("pipelineSettings"),
|
|
11427
11318
|
subtitle: t("pipelineSettingsSubtitle"),
|
|
11428
11319
|
icon: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.Cog6ToothIcon, { className: "h-5 w-5 text-white" }),
|
|
@@ -11432,8 +11323,8 @@ function PipelineSettingsDrawer({
|
|
|
11432
11323
|
FormInput,
|
|
11433
11324
|
{
|
|
11434
11325
|
label: t("pipelineName"),
|
|
11435
|
-
value:
|
|
11436
|
-
onValueChange:
|
|
11326
|
+
value: nameValue,
|
|
11327
|
+
onValueChange: setNameValue,
|
|
11437
11328
|
placeholder: t("pipelineNamePlaceholder"),
|
|
11438
11329
|
required: true
|
|
11439
11330
|
}
|
|
@@ -11442,8 +11333,8 @@ function PipelineSettingsDrawer({
|
|
|
11442
11333
|
FormTextarea,
|
|
11443
11334
|
{
|
|
11444
11335
|
label: t("pipelineDescription"),
|
|
11445
|
-
value:
|
|
11446
|
-
onValueChange:
|
|
11336
|
+
value: descriptionValue,
|
|
11337
|
+
onValueChange: setDescriptionValue,
|
|
11447
11338
|
placeholder: t("pipelineDescriptionPlaceholder"),
|
|
11448
11339
|
rows: 4
|
|
11449
11340
|
}
|
|
@@ -13888,7 +13779,6 @@ exports.getFrameworkMeta = getFrameworkMeta;
|
|
|
13888
13779
|
exports.getModelIcon = getModelIcon;
|
|
13889
13780
|
exports.isModelCompatibleWithFramework = isModelCompatibleWithFramework;
|
|
13890
13781
|
exports.topologicalSortAgents = topologicalSortAgents;
|
|
13891
|
-
exports.useAgentDrawerStore = useAgentDrawerStore;
|
|
13892
13782
|
exports.useCanRedo = useCanRedo;
|
|
13893
13783
|
exports.useCanUndo = useCanUndo;
|
|
13894
13784
|
exports.useCanvasShortcuts = useCanvasShortcuts;
|
|
@@ -13898,9 +13788,7 @@ exports.useEditingNodeId = useEditingNodeId;
|
|
|
13898
13788
|
exports.useHasCopied = useHasCopied;
|
|
13899
13789
|
exports.useHelpLines = useHelpLines;
|
|
13900
13790
|
exports.useIsRunning = useIsRunning;
|
|
13901
|
-
exports.useLogicNodeDrawerStore = useLogicNodeDrawerStore;
|
|
13902
13791
|
exports.useNodeResults = useNodeResults;
|
|
13903
|
-
exports.usePipelineSettingsStore = usePipelineSettingsStore;
|
|
13904
13792
|
exports.useSelectedNodeCount = useSelectedNodeCount;
|
|
13905
13793
|
exports.useSubworkflowStore = useSubworkflowStore;
|
|
13906
13794
|
exports.useUndoRedo = useUndoRedo;
|