@datatechsolutions/ui 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astrlabe/index.js +108 -108
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-SEYUYGER.mjs → chunk-2MJAHST4.mjs} +12 -11
- package/dist/chunk-2MJAHST4.mjs.map +1 -0
- package/dist/{chunk-SQ4KGLBZ.mjs → chunk-3OLYSMI5.mjs} +41 -7
- package/dist/chunk-3OLYSMI5.mjs.map +1 -0
- package/dist/{chunk-RLVOG5OQ.mjs → chunk-4PFU6A2B.mjs} +3 -3
- package/dist/{chunk-RLVOG5OQ.mjs.map → chunk-4PFU6A2B.mjs.map} +1 -1
- package/dist/{chunk-RFRXS4PC.mjs → chunk-5BEVTOZV.mjs} +4 -4
- package/dist/{chunk-RFRXS4PC.mjs.map → chunk-5BEVTOZV.mjs.map} +1 -1
- package/dist/{chunk-NCLZKVJK.js → chunk-5I7F7KZ6.js} +10 -10
- package/dist/{chunk-NCLZKVJK.js.map → chunk-5I7F7KZ6.js.map} +1 -1
- package/dist/{chunk-NAFWHJCM.mjs → chunk-6V3DUBOZ.mjs} +7 -7
- package/dist/{chunk-NAFWHJCM.mjs.map → chunk-6V3DUBOZ.mjs.map} +1 -1
- package/dist/{chunk-AL73YAV4.mjs → chunk-6W7VTZG6.mjs} +3 -3
- package/dist/{chunk-AL73YAV4.mjs.map → chunk-6W7VTZG6.mjs.map} +1 -1
- package/dist/{chunk-ERCDMBRT.js → chunk-74MHWEDC.js} +168 -167
- package/dist/chunk-74MHWEDC.js.map +1 -0
- package/dist/{chunk-CUWPLPVY.mjs → chunk-7CEZB3ZD.mjs} +3 -3
- package/dist/{chunk-CUWPLPVY.mjs.map → chunk-7CEZB3ZD.mjs.map} +1 -1
- package/dist/{chunk-QBFE7ABE.mjs → chunk-7UHV6A4C.mjs} +6 -6
- package/dist/{chunk-QBFE7ABE.mjs.map → chunk-7UHV6A4C.mjs.map} +1 -1
- package/dist/{chunk-TUQLZ4QD.js → chunk-A7FI4K7Z.js} +5 -5
- package/dist/{chunk-TUQLZ4QD.js.map → chunk-A7FI4K7Z.js.map} +1 -1
- package/dist/{chunk-RLLP7VQJ.js → chunk-AVM53A3Y.js} +63 -29
- package/dist/chunk-AVM53A3Y.js.map +1 -0
- package/dist/{chunk-FSBR4RCK.js → chunk-AWDH6WNA.js} +139 -109
- package/dist/chunk-AWDH6WNA.js.map +1 -0
- package/dist/{chunk-Y2AYFG4E.js → chunk-BVXATTTA.js} +4 -4
- package/dist/{chunk-Y2AYFG4E.js.map → chunk-BVXATTTA.js.map} +1 -1
- package/dist/{chunk-CF7GOUBQ.js → chunk-C4NRF2G2.js} +13 -13
- package/dist/{chunk-CF7GOUBQ.js.map → chunk-C4NRF2G2.js.map} +1 -1
- package/dist/{chunk-45QAUEYT.js → chunk-CY2MBKVG.js} +4 -4
- package/dist/{chunk-45QAUEYT.js.map → chunk-CY2MBKVG.js.map} +1 -1
- package/dist/{chunk-PGVZKMOA.js → chunk-FK3WDELF.js} +40 -40
- package/dist/{chunk-PGVZKMOA.js.map → chunk-FK3WDELF.js.map} +1 -1
- package/dist/{chunk-ZKSDDFHG.mjs → chunk-IOEQ2GET.mjs} +4 -4
- package/dist/{chunk-ZKSDDFHG.mjs.map → chunk-IOEQ2GET.mjs.map} +1 -1
- package/dist/{chunk-MO5FBVV3.js → chunk-NCDBNGIB.js} +62 -62
- package/dist/{chunk-MO5FBVV3.js.map → chunk-NCDBNGIB.js.map} +1 -1
- package/dist/{chunk-4GDWGWHY.mjs → chunk-NJ5RVWLA.mjs} +4 -4
- package/dist/{chunk-4GDWGWHY.mjs.map → chunk-NJ5RVWLA.mjs.map} +1 -1
- package/dist/{chunk-UJVDI66K.js → chunk-NKXQYFS7.js} +16 -16
- package/dist/{chunk-UJVDI66K.js.map → chunk-NKXQYFS7.js.map} +1 -1
- package/dist/{chunk-AGGOHPMZ.mjs → chunk-NOHHZ6FM.mjs} +139 -109
- package/dist/chunk-NOHHZ6FM.mjs.map +1 -0
- package/dist/{chunk-VV6SYMPM.mjs → chunk-OASC7NYV.mjs} +3 -3
- package/dist/{chunk-VV6SYMPM.mjs.map → chunk-OASC7NYV.mjs.map} +1 -1
- package/dist/{chunk-6MBWKOPF.js → chunk-P43PX75J.js} +33 -33
- package/dist/{chunk-6MBWKOPF.js.map → chunk-P43PX75J.js.map} +1 -1
- package/dist/{chunk-BW67WFHT.mjs → chunk-QLFSJ6HK.mjs} +3 -3
- package/dist/{chunk-BW67WFHT.mjs.map → chunk-QLFSJ6HK.mjs.map} +1 -1
- package/dist/{chunk-X3GW7UPN.mjs → chunk-QPSHM2JQ.mjs} +4 -4
- package/dist/{chunk-X3GW7UPN.mjs.map → chunk-QPSHM2JQ.mjs.map} +1 -1
- package/dist/{chunk-M7KSEUZR.js → chunk-QSMPKL27.js} +74 -74
- package/dist/{chunk-M7KSEUZR.js.map → chunk-QSMPKL27.js.map} +1 -1
- package/dist/{chunk-IDEM3DYF.mjs → chunk-UHMAKUON.mjs} +3 -3
- package/dist/{chunk-IDEM3DYF.mjs.map → chunk-UHMAKUON.mjs.map} +1 -1
- package/dist/{chunk-YV7F7IXG.js → chunk-V5VBYOF5.js} +36 -36
- package/dist/{chunk-YV7F7IXG.js.map → chunk-V5VBYOF5.js.map} +1 -1
- package/dist/{chunk-4ICEQJH4.js → chunk-VMGNQFRO.js} +53 -53
- package/dist/{chunk-4ICEQJH4.js.map → chunk-VMGNQFRO.js.map} +1 -1
- package/dist/{chunk-UE2RDQIK.js → chunk-Z7VY5M4T.js} +77 -77
- package/dist/{chunk-UE2RDQIK.js.map → chunk-Z7VY5M4T.js.map} +1 -1
- package/dist/{chunk-NVQWHJQH.mjs → chunk-ZM2Q2SMC.mjs} +3 -3
- package/dist/{chunk-NVQWHJQH.mjs.map → chunk-ZM2Q2SMC.mjs.map} +1 -1
- package/dist/index.js +721 -721
- package/dist/index.mjs +2 -2
- package/dist/platform/admin/index.js +11 -11
- package/dist/platform/admin/index.mjs +5 -5
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.js +28 -28
- package/dist/platform/auth/index.mjs +5 -5
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.js +89 -89
- package/dist/platform/index.mjs +19 -19
- package/dist/platform/pages/index.js +318 -202
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +144 -28
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +8 -8
- package/dist/platform/settings/index.mjs +7 -7
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/package.json +1 -1
- package/dist/astrlabe/contracts.d.mts +0 -517
- package/dist/astrlabe/contracts.d.ts +0 -517
- package/dist/astrlabe/graph-node.d.mts +0 -28
- package/dist/astrlabe/graph-node.d.ts +0 -28
- package/dist/astrlabe/index.d.mts +0 -743
- package/dist/astrlabe/index.d.ts +0 -743
- package/dist/astrlabe/utils.d.mts +0 -60
- package/dist/astrlabe/utils.d.ts +0 -60
- package/dist/astrlabe/workflow-canvas.d.mts +0 -6
- package/dist/astrlabe/workflow-canvas.d.ts +0 -6
- package/dist/astrlabe/workflow-preview-canvas.d.mts +0 -10
- package/dist/astrlabe/workflow-preview-canvas.d.ts +0 -10
- package/dist/billing-panel-DsHhhJqG.d.mts +0 -18
- package/dist/billing-panel-DsHhhJqG.d.ts +0 -18
- package/dist/brand/index.d.mts +0 -71
- package/dist/brand/index.d.ts +0 -71
- package/dist/chunk-AGGOHPMZ.mjs.map +0 -1
- package/dist/chunk-ERCDMBRT.js.map +0 -1
- package/dist/chunk-FSBR4RCK.js.map +0 -1
- package/dist/chunk-RLLP7VQJ.js.map +0 -1
- package/dist/chunk-SEYUYGER.mjs.map +0 -1
- package/dist/chunk-SQ4KGLBZ.mjs.map +0 -1
- package/dist/dynamic-island-confirm-BKsZkAEP.d.mts +0 -17
- package/dist/dynamic-island-confirm-BKsZkAEP.d.ts +0 -17
- package/dist/index-BNRGVAS5.d.mts +0 -222
- package/dist/index-BoebbJ44.d.mts +0 -49
- package/dist/index-BoebbJ44.d.ts +0 -49
- package/dist/index-CnCY-b5V.d.ts +0 -222
- package/dist/index.d.mts +0 -5263
- package/dist/index.d.ts +0 -5263
- package/dist/layout-engine-YZcVr20M.d.mts +0 -19
- package/dist/layout-engine-YZcVr20M.d.ts +0 -19
- package/dist/lib/i18n-context.d.mts +0 -36
- package/dist/lib/i18n-context.d.ts +0 -36
- package/dist/lib/router-context.d.mts +0 -35
- package/dist/lib/router-context.d.ts +0 -35
- package/dist/navigation-BiWVffAN.d.mts +0 -49
- package/dist/navigation-BiWVffAN.d.ts +0 -49
- package/dist/platform/admin/index.d.mts +0 -17
- package/dist/platform/admin/index.d.ts +0 -17
- package/dist/platform/agents-workspace.d.mts +0 -19
- package/dist/platform/agents-workspace.d.ts +0 -19
- package/dist/platform/app-shell.d.mts +0 -58
- package/dist/platform/app-shell.d.ts +0 -58
- package/dist/platform/auth/index.d.mts +0 -73
- package/dist/platform/auth/index.d.ts +0 -73
- package/dist/platform/billing/index.d.mts +0 -29
- package/dist/platform/billing/index.d.ts +0 -29
- package/dist/platform/impersonation/index.d.mts +0 -19
- package/dist/platform/impersonation/index.d.ts +0 -19
- package/dist/platform/index.d.mts +0 -188
- package/dist/platform/index.d.ts +0 -188
- package/dist/platform/pages/index.d.mts +0 -432
- package/dist/platform/pages/index.d.ts +0 -432
- package/dist/platform/rbac.d.mts +0 -42
- package/dist/platform/rbac.d.ts +0 -42
- package/dist/platform/settings/index.d.mts +0 -31
- package/dist/platform/settings/index.d.ts +0 -31
- package/dist/platform/telemetry/index.d.mts +0 -51
- package/dist/platform/telemetry/index.d.ts +0 -51
- package/dist/platform/utils/index.d.mts +0 -32
- package/dist/platform/utils/index.d.ts +0 -32
- package/dist/platform/windsock-admin-client.d.mts +0 -57
- package/dist/platform/windsock-admin-client.d.ts +0 -57
- package/dist/platform/workflow-api-client.d.mts +0 -6
- package/dist/platform/workflow-api-client.d.ts +0 -6
- package/dist/platform/workflow-canvas-shell.d.mts +0 -18
- package/dist/platform/workflow-canvas-shell.d.ts +0 -18
- package/dist/rule-form-BYJzyork.d.mts +0 -128
- package/dist/rule-form-BYJzyork.d.ts +0 -128
- package/dist/workflow-api-client-CpFl3WcG.d.mts +0 -468
- package/dist/workflow-api-client-uLICOanv.d.ts +0 -468
- package/dist/workflow-canvas--qaYKuMm.d.ts +0 -113
- package/dist/workflow-canvas-B80fmD_n.d.mts +0 -113
- package/dist/workflow-store-o17I6L6A.d.ts +0 -79
- package/dist/workflow-store-ppVHdMZi.d.mts +0 -79
|
@@ -1,743 +0,0 @@
|
|
|
1
|
-
import { W as WorkspaceProps, M as ModelProvider } from '../workflow-canvas-B80fmD_n.mjs';
|
|
2
|
-
export { N as NodePalette, a as Workspace } from '../workflow-canvas-B80fmD_n.mjs';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { Workflow, WorkflowGraph, AgentModel, WorkflowTool, AgentRule, AgentPersistPayload, LogicNodeConfig, AgentOutputSchema, WorkflowRun, AgentTool } from './contracts.mjs';
|
|
5
|
-
export { AgentNodeConfig, ModelProviderNodeConfig, ModelProviderType } from './contracts.mjs';
|
|
6
|
-
import { A as AgentWithPrompts, a as AgentNodeData, T as ToolCanvasData, R as RuleNodeData, E as EntityNodeData, M as ModelProviderNodeData, S as StartNodeData, b as EndNodeData, I as IfElseNodeData, C as CodeNodeData, H as HttpRequestNodeData, c as S3WriteNodeData, d as TemplateTransformNodeData, e as IterationNodeData, K as KnowledgeBaseNodeData, f as AnswerNodeData, Q as QuestionClassifierNodeData, P as ParameterExtractorNodeData, V as VariableAssignerNodeData, g as VariableAggregatorNodeData, D as DocumentExtractorNodeData, L as ListOperatorNodeData, h as IterationStartNodeData, N as NoteNodeData, G as GroupNodeData, W as WorkflowEntityDefinition } from '../index-BNRGVAS5.mjs';
|
|
7
|
-
export { i as AgentNodeTool, j as DashboardOutputNodeData } from '../index-BNRGVAS5.mjs';
|
|
8
|
-
import * as React$1 from 'react';
|
|
9
|
-
import { ReactNode, ComponentProps } from 'react';
|
|
10
|
-
export { GraphNodeBadge, GraphNodeHeader, GraphNodeIconBubble, GraphNodeMeta } from './graph-node.mjs';
|
|
11
|
-
import { a as RuleCondition, b as RuleAction } from '../rule-form-BYJzyork.mjs';
|
|
12
|
-
export { c as ExecutionTimelineEntry, E as ExecutionTimelineLabels, d as ExecutionTimelineMetrics, e as ExecutionTimelinePanel, f as ExecutionTimelinePanelProps, g as ExecutionTimelineStatus, h as RULE_STATUS_OPTIONS, i as RuleConditionOperator, j as RuleForm, R as RuleFormValue, k as RuleStatus, T as TIMEZONE_OPTIONS, l as TimeWindow, m as defaultRuleForm } from '../rule-form-BYJzyork.mjs';
|
|
13
|
-
import { D as DynamicIslandConfirm$1 } from '../dynamic-island-confirm-BKsZkAEP.mjs';
|
|
14
|
-
import { N as NodeRunResult } from '../workflow-store-ppVHdMZi.mjs';
|
|
15
|
-
export { W as WorkflowStore, u as useWorkflowStore } from '../workflow-store-ppVHdMZi.mjs';
|
|
16
|
-
import * as zustand from 'zustand';
|
|
17
|
-
import { Node, Edge } from '@xyflow/react';
|
|
18
|
-
export { AgentTier, NodeValidationIssue, ValidationResult, createDefaultLogicNodeConfig, getAgentTier, topologicalSortAgents, validateGraphNodeConfigs, validateNodeConfig, validateWorkflowGraph } from './utils.mjs';
|
|
19
|
-
export { L as LayoutDirection, a as applyDagreLayout } from '../layout-engine-YZcVr20M.mjs';
|
|
20
|
-
|
|
21
|
-
type WorkspaceBootstrapPayload = {
|
|
22
|
-
workflow: Workflow | null;
|
|
23
|
-
graph: WorkflowGraph | null;
|
|
24
|
-
agents: AgentWithPrompts[];
|
|
25
|
-
models: AgentModel[];
|
|
26
|
-
tools: WorkflowTool[];
|
|
27
|
-
rules: AgentRule[];
|
|
28
|
-
};
|
|
29
|
-
type WorkflowBuilderClient = {
|
|
30
|
-
publishableKey: string;
|
|
31
|
-
getWorkspaceBootstrap: (workflowId: string) => Promise<WorkspaceBootstrapPayload>;
|
|
32
|
-
};
|
|
33
|
-
type WorkflowBuilderProviderProps = {
|
|
34
|
-
publishableKey: string;
|
|
35
|
-
children: React.ReactNode;
|
|
36
|
-
};
|
|
37
|
-
declare function WorkflowBuilderProvider({ publishableKey, children, }: WorkflowBuilderProviderProps): react_jsx_runtime.JSX.Element;
|
|
38
|
-
declare function useWorkflowBuilderClient(): WorkflowBuilderClient;
|
|
39
|
-
declare function useWorkflowBuilderClientOptional(): WorkflowBuilderClient | null;
|
|
40
|
-
|
|
41
|
-
interface NodeCardProps {
|
|
42
|
-
/** React Flow selection state */
|
|
43
|
-
selected?: boolean;
|
|
44
|
-
/** Node type key for border colors (e.g. 'agent', 'tool', 'if_else') */
|
|
45
|
-
nodeType: string;
|
|
46
|
-
/** Width class — defaults to 'w-[260px]' */
|
|
47
|
-
width?: string;
|
|
48
|
-
/** Custom border class override (e.g. group node with dynamic colors) */
|
|
49
|
-
customBorder?: string;
|
|
50
|
-
/** Display variant — 'error' shows dashed amber border for missing entities */
|
|
51
|
-
variant?: 'default' | 'error';
|
|
52
|
-
/** Compact density mode for short-card view */
|
|
53
|
-
compact?: boolean;
|
|
54
|
-
/** Additional CSS classes */
|
|
55
|
-
className?: string;
|
|
56
|
-
/** Inline styles */
|
|
57
|
-
style?: React.CSSProperties;
|
|
58
|
-
/** Interactive attributes for div-based clickable nodes */
|
|
59
|
-
role?: string;
|
|
60
|
-
tabIndex?: number;
|
|
61
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
62
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
63
|
-
onDoubleClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
64
|
-
children: ReactNode;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Base card container for all standard flow nodes.
|
|
68
|
-
*
|
|
69
|
-
* Provides shared styling: rounded corners, border, glassmorphism surface,
|
|
70
|
-
* padding, selection/hover state ring, and group context for child hover effects.
|
|
71
|
-
*
|
|
72
|
-
* Nodes that do NOT use this: NoteFlowNode (custom bg/border), GroupFlowNode expanded (resizable container).
|
|
73
|
-
*/
|
|
74
|
-
declare function NodeCard({ selected, nodeType, width, customBorder, variant, compact, className, style, role, tabIndex, onClick, onKeyDown, onDoubleClick, children, }: NodeCardProps): react_jsx_runtime.JSX.Element;
|
|
75
|
-
|
|
76
|
-
declare const AgentFlowNode: React$1.NamedExoticComponent<{
|
|
77
|
-
id: string;
|
|
78
|
-
data: AgentNodeData;
|
|
79
|
-
selected?: boolean;
|
|
80
|
-
}>;
|
|
81
|
-
|
|
82
|
-
declare const ToolFlowNode: React$1.NamedExoticComponent<{
|
|
83
|
-
id: string;
|
|
84
|
-
data: ToolCanvasData;
|
|
85
|
-
selected?: boolean;
|
|
86
|
-
}>;
|
|
87
|
-
|
|
88
|
-
declare const RuleFlowNode: React$1.NamedExoticComponent<{
|
|
89
|
-
id: string;
|
|
90
|
-
data: RuleNodeData;
|
|
91
|
-
selected?: boolean;
|
|
92
|
-
}>;
|
|
93
|
-
|
|
94
|
-
declare const EntityFlowNode: React$1.NamedExoticComponent<{
|
|
95
|
-
id: string;
|
|
96
|
-
data: EntityNodeData;
|
|
97
|
-
selected?: boolean;
|
|
98
|
-
}>;
|
|
99
|
-
|
|
100
|
-
declare const ModelProviderFlowNode: React$1.NamedExoticComponent<{
|
|
101
|
-
id: string;
|
|
102
|
-
data: ModelProviderNodeData;
|
|
103
|
-
selected?: boolean;
|
|
104
|
-
}>;
|
|
105
|
-
|
|
106
|
-
declare const StartFlowNode: React$1.NamedExoticComponent<{
|
|
107
|
-
id: string;
|
|
108
|
-
data: StartNodeData;
|
|
109
|
-
selected?: boolean;
|
|
110
|
-
}>;
|
|
111
|
-
|
|
112
|
-
declare const EndFlowNode: React$1.NamedExoticComponent<{
|
|
113
|
-
id: string;
|
|
114
|
-
data: EndNodeData;
|
|
115
|
-
selected?: boolean;
|
|
116
|
-
}>;
|
|
117
|
-
|
|
118
|
-
declare const IfElseFlowNode: React$1.NamedExoticComponent<{
|
|
119
|
-
id: string;
|
|
120
|
-
data: IfElseNodeData;
|
|
121
|
-
selected?: boolean;
|
|
122
|
-
}>;
|
|
123
|
-
|
|
124
|
-
declare const CodeFlowNode: React$1.NamedExoticComponent<{
|
|
125
|
-
id: string;
|
|
126
|
-
data: CodeNodeData;
|
|
127
|
-
selected?: boolean;
|
|
128
|
-
}>;
|
|
129
|
-
|
|
130
|
-
declare const HttpRequestFlowNode: React$1.NamedExoticComponent<{
|
|
131
|
-
id: string;
|
|
132
|
-
data: HttpRequestNodeData;
|
|
133
|
-
selected?: boolean;
|
|
134
|
-
}>;
|
|
135
|
-
|
|
136
|
-
declare const S3WriteFlowNode: React$1.NamedExoticComponent<{
|
|
137
|
-
id: string;
|
|
138
|
-
data: S3WriteNodeData;
|
|
139
|
-
selected?: boolean;
|
|
140
|
-
}>;
|
|
141
|
-
|
|
142
|
-
declare const TemplateTransformFlowNode: React$1.NamedExoticComponent<{
|
|
143
|
-
id: string;
|
|
144
|
-
data: TemplateTransformNodeData;
|
|
145
|
-
selected?: boolean;
|
|
146
|
-
}>;
|
|
147
|
-
|
|
148
|
-
declare const IterationFlowNode: React$1.NamedExoticComponent<{
|
|
149
|
-
id: string;
|
|
150
|
-
data: IterationNodeData;
|
|
151
|
-
selected?: boolean;
|
|
152
|
-
}>;
|
|
153
|
-
|
|
154
|
-
declare const KnowledgeBaseFlowNode: React$1.NamedExoticComponent<{
|
|
155
|
-
id: string;
|
|
156
|
-
data: KnowledgeBaseNodeData;
|
|
157
|
-
selected?: boolean;
|
|
158
|
-
}>;
|
|
159
|
-
|
|
160
|
-
declare const AnswerFlowNode: React$1.NamedExoticComponent<{
|
|
161
|
-
id: string;
|
|
162
|
-
data: AnswerNodeData;
|
|
163
|
-
selected?: boolean;
|
|
164
|
-
}>;
|
|
165
|
-
|
|
166
|
-
declare const QuestionClassifierFlowNode: React$1.NamedExoticComponent<{
|
|
167
|
-
id: string;
|
|
168
|
-
data: QuestionClassifierNodeData;
|
|
169
|
-
selected?: boolean;
|
|
170
|
-
}>;
|
|
171
|
-
|
|
172
|
-
declare const ParameterExtractorFlowNode: React$1.NamedExoticComponent<{
|
|
173
|
-
id: string;
|
|
174
|
-
data: ParameterExtractorNodeData;
|
|
175
|
-
selected?: boolean;
|
|
176
|
-
}>;
|
|
177
|
-
|
|
178
|
-
declare const VariableAssignerFlowNode: React$1.NamedExoticComponent<{
|
|
179
|
-
id: string;
|
|
180
|
-
data: VariableAssignerNodeData;
|
|
181
|
-
selected?: boolean;
|
|
182
|
-
}>;
|
|
183
|
-
|
|
184
|
-
declare const VariableAggregatorFlowNode: React$1.NamedExoticComponent<{
|
|
185
|
-
id: string;
|
|
186
|
-
data: VariableAggregatorNodeData;
|
|
187
|
-
selected?: boolean;
|
|
188
|
-
}>;
|
|
189
|
-
|
|
190
|
-
declare const DocumentExtractorFlowNode: React$1.NamedExoticComponent<{
|
|
191
|
-
id: string;
|
|
192
|
-
data: DocumentExtractorNodeData;
|
|
193
|
-
selected?: boolean;
|
|
194
|
-
}>;
|
|
195
|
-
|
|
196
|
-
declare const ListOperatorFlowNode: React$1.NamedExoticComponent<{
|
|
197
|
-
id: string;
|
|
198
|
-
data: ListOperatorNodeData;
|
|
199
|
-
selected?: boolean;
|
|
200
|
-
}>;
|
|
201
|
-
|
|
202
|
-
declare const IterationStartFlowNode: React$1.NamedExoticComponent<{
|
|
203
|
-
id: string;
|
|
204
|
-
data: IterationStartNodeData;
|
|
205
|
-
selected?: boolean;
|
|
206
|
-
}>;
|
|
207
|
-
|
|
208
|
-
declare const NoteFlowNode: React$1.NamedExoticComponent<{
|
|
209
|
-
id: string;
|
|
210
|
-
data: NoteNodeData;
|
|
211
|
-
selected?: boolean;
|
|
212
|
-
}>;
|
|
213
|
-
|
|
214
|
-
declare const GroupFlowNode: React$1.NamedExoticComponent<{
|
|
215
|
-
id: string;
|
|
216
|
-
data: GroupNodeData;
|
|
217
|
-
selected?: boolean;
|
|
218
|
-
}>;
|
|
219
|
-
|
|
220
|
-
type AgentModalProps = {
|
|
221
|
-
onSaved?: () => void;
|
|
222
|
-
/**
|
|
223
|
-
* Called when the user clicks Save in the sidebar footer. The modal
|
|
224
|
-
* collects its local editable state (profile + framework + prompt +
|
|
225
|
-
* advanced + tools + connection) into a canonical payload so the
|
|
226
|
-
* parent can decide how to persist (POST for create, PATCH for edit).
|
|
227
|
-
* Returning a rejected promise re-opens the unsaved-changes banner.
|
|
228
|
-
*/
|
|
229
|
-
onPersist?: (payload: AgentPersistPayload) => Promise<void>;
|
|
230
|
-
};
|
|
231
|
-
declare function AgentModal({ onSaved, onPersist }: AgentModalProps): react_jsx_runtime.JSX.Element | null;
|
|
232
|
-
|
|
233
|
-
type SubworkflowModalProps = {
|
|
234
|
-
/** Called when save/create is clicked — receives the merged workflow tool with updated graph */
|
|
235
|
-
onSaved?: (tool: WorkflowTool) => void;
|
|
236
|
-
/** Called when maximize is clicked — navigate to full workflow editor */
|
|
237
|
-
onMaximize?: (subworkflowId: string) => void;
|
|
238
|
-
};
|
|
239
|
-
declare function SubworkflowModal({ onSaved, onMaximize }: SubworkflowModalProps): react_jsx_runtime.JSX.Element | null;
|
|
240
|
-
|
|
241
|
-
type DatasourceDefinition = {
|
|
242
|
-
id: string;
|
|
243
|
-
name: string;
|
|
244
|
-
dialect: string;
|
|
245
|
-
};
|
|
246
|
-
type LogicNodeModalProps = {
|
|
247
|
-
onSave: (nodeId: string, updatedConfig: LogicNodeConfig) => void;
|
|
248
|
-
entities?: WorkflowEntityDefinition[];
|
|
249
|
-
datasources?: DatasourceDefinition[];
|
|
250
|
-
onLoadTables?: (datasourceId: string) => Promise<string[]>;
|
|
251
|
-
onLoadSchema?: (datasourceId: string, table: string) => Promise<Array<{
|
|
252
|
-
name: string;
|
|
253
|
-
type: string;
|
|
254
|
-
nullable?: boolean;
|
|
255
|
-
}>>;
|
|
256
|
-
};
|
|
257
|
-
declare function LogicNodeModal({ onSave, entities, datasources, onLoadTables, onLoadSchema }: LogicNodeModalProps): react_jsx_runtime.JSX.Element | null;
|
|
258
|
-
|
|
259
|
-
type PipelineSettingsPatch = {
|
|
260
|
-
name: string;
|
|
261
|
-
description: string;
|
|
262
|
-
slug?: string | null;
|
|
263
|
-
isDraft?: boolean;
|
|
264
|
-
isActive?: boolean;
|
|
265
|
-
};
|
|
266
|
-
type PipelineSettingsModalProps = {
|
|
267
|
-
/** Receives only the fields that actually changed — the page wrapper
|
|
268
|
-
* can then PATCH once with exactly the delta. */
|
|
269
|
-
onSave: (changes: PipelineSettingsPatch) => Promise<void>;
|
|
270
|
-
};
|
|
271
|
-
declare function PipelineSettingsModal({ onSave }: PipelineSettingsModalProps): react_jsx_runtime.JSX.Element;
|
|
272
|
-
|
|
273
|
-
type ReplayInputVariables = Record<string, unknown>;
|
|
274
|
-
type RunReplayModalProps = {
|
|
275
|
-
open: boolean;
|
|
276
|
-
onClose: () => void;
|
|
277
|
-
runId: string;
|
|
278
|
-
workflowId: string;
|
|
279
|
-
/** The original run's `inputVariables` map. Keys become the form
|
|
280
|
-
* rows; types are inferred (string/number/boolean/json) so the
|
|
281
|
-
* inputs render appropriately. */
|
|
282
|
-
originalInputs: ReplayInputVariables;
|
|
283
|
-
/** Receives the override map. Empty object → verbatim re-run. */
|
|
284
|
-
onReplay: (overrides: ReplayInputVariables) => Promise<void>;
|
|
285
|
-
};
|
|
286
|
-
declare function RunReplayModal({ open, onClose, runId, workflowId, originalInputs, onReplay, }: RunReplayModalProps): react_jsx_runtime.JSX.Element;
|
|
287
|
-
|
|
288
|
-
type OutputSchemaBuilderProps = {
|
|
289
|
-
/** Stored schema. `undefined` renders the "no schema yet" state with
|
|
290
|
-
* a single button to create one. */
|
|
291
|
-
value?: AgentOutputSchema;
|
|
292
|
-
onChange: (next: AgentOutputSchema | undefined) => void;
|
|
293
|
-
/** Recursion depth — used to cap the nesting UI offers (deeper trees
|
|
294
|
-
* are still expressible by hand-editing JSON, but the visual builder
|
|
295
|
-
* tops out at 2 to keep the page readable). */
|
|
296
|
-
depth?: number;
|
|
297
|
-
};
|
|
298
|
-
declare function OutputSchemaBuilder({ value, onChange, depth }: OutputSchemaBuilderProps): react_jsx_runtime.JSX.Element;
|
|
299
|
-
declare function defaultAgentOutputSchema(): AgentOutputSchema;
|
|
300
|
-
|
|
301
|
-
type Props$1 = {
|
|
302
|
-
value: RuleCondition;
|
|
303
|
-
onChange: (next: RuleCondition) => void;
|
|
304
|
-
/** Recursion depth. Boolean_expression is capped at one level to keep
|
|
305
|
-
* the UI legible — deeper trees remain round-trippable via the raw
|
|
306
|
-
* JSON fallback but the visual builder won't surface sub-boolean
|
|
307
|
-
* operands. */
|
|
308
|
-
depth?: number;
|
|
309
|
-
};
|
|
310
|
-
declare function RuleConditionBuilder({ value, onChange, depth }: Props$1): react_jsx_runtime.JSX.Element;
|
|
311
|
-
declare function defaultRuleCondition(): RuleCondition;
|
|
312
|
-
|
|
313
|
-
type Props = {
|
|
314
|
-
value: RuleAction;
|
|
315
|
-
onChange: (next: RuleAction) => void;
|
|
316
|
-
};
|
|
317
|
-
/**
|
|
318
|
-
* Action builder — emits a single `{ type, params }` object matching the
|
|
319
|
-
* executor contract. The `custom` type drops to a raw key/value editor for
|
|
320
|
-
* actions the UI doesn't have a dedicated template for.
|
|
321
|
-
*/
|
|
322
|
-
declare function RuleActionBuilder({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
|
|
323
|
-
declare function defaultRuleAction(): RuleAction;
|
|
324
|
-
|
|
325
|
-
type WorkflowListBarProps = {
|
|
326
|
-
workflows: Workflow[];
|
|
327
|
-
activeWorkflowId: string | null;
|
|
328
|
-
isLoading: boolean;
|
|
329
|
-
onSelect: (workflow: Workflow) => void;
|
|
330
|
-
onCreate: () => void;
|
|
331
|
-
onDelete: (workflowId: string, workflowName: string) => void;
|
|
332
|
-
onConvertToSubworkflow?: (workflow: Workflow) => void;
|
|
333
|
-
};
|
|
334
|
-
declare function WorkflowListBar({ workflows, activeWorkflowId, isLoading, onSelect, onCreate, onDelete, onConvertToSubworkflow, }: WorkflowListBarProps): react_jsx_runtime.JSX.Element;
|
|
335
|
-
|
|
336
|
-
type WorkflowVersion = {
|
|
337
|
-
version: number;
|
|
338
|
-
publishedAt: string;
|
|
339
|
-
publishedBy: string;
|
|
340
|
-
nodeCount: number;
|
|
341
|
-
edgeCount: number;
|
|
342
|
-
};
|
|
343
|
-
type VersionHistoryPanelProps = {
|
|
344
|
-
open: boolean;
|
|
345
|
-
onClose: () => void;
|
|
346
|
-
workflowId: string;
|
|
347
|
-
currentVersion: number;
|
|
348
|
-
onPreview: (version: WorkflowVersion) => void;
|
|
349
|
-
onRestore: (version: WorkflowVersion) => void;
|
|
350
|
-
fetchVersions?: (workflowId: string) => Promise<WorkflowVersion[]>;
|
|
351
|
-
};
|
|
352
|
-
declare function VersionHistoryPanel({ open, onClose, workflowId, currentVersion, onPreview, onRestore, fetchVersions, }: VersionHistoryPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
353
|
-
|
|
354
|
-
type RunPanelProps = {
|
|
355
|
-
open: boolean;
|
|
356
|
-
onClose: () => void;
|
|
357
|
-
onRun: () => void;
|
|
358
|
-
onStop: () => void;
|
|
359
|
-
};
|
|
360
|
-
declare function RunPanel({ open, onClose, onRun, onStop }: RunPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
361
|
-
|
|
362
|
-
type VariableInspectorProps = {
|
|
363
|
-
open: boolean;
|
|
364
|
-
onClose: () => void;
|
|
365
|
-
};
|
|
366
|
-
declare function VariableInspector({ open, onClose }: VariableInspectorProps): react_jsx_runtime.JSX.Element | null;
|
|
367
|
-
|
|
368
|
-
type VariableValue = string | number | boolean | null;
|
|
369
|
-
type RunInputDialogProps = {
|
|
370
|
-
open: boolean;
|
|
371
|
-
onClose: () => void;
|
|
372
|
-
onRun: (inputVariables: Record<string, VariableValue>) => void;
|
|
373
|
-
};
|
|
374
|
-
declare function RunInputDialog({ open, onClose, onRun, }: RunInputDialogProps): react_jsx_runtime.JSX.Element | null;
|
|
375
|
-
|
|
376
|
-
type PreviewPanelProps = {
|
|
377
|
-
open: boolean;
|
|
378
|
-
onClose: () => void;
|
|
379
|
-
workflowId: string;
|
|
380
|
-
loadRuns: (workflowId: string) => Promise<WorkflowRun[]>;
|
|
381
|
-
};
|
|
382
|
-
declare function PreviewPanel({ open, onClose, workflowId, loadRuns }: PreviewPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
383
|
-
|
|
384
|
-
type SaveStatusBadgeProps = {
|
|
385
|
-
status: 'idle' | 'saving' | 'saved';
|
|
386
|
-
/** Localized status messages so screen readers + low-vision users
|
|
387
|
-
* hear "saving / saved" instead of just a bullet. Defaults to PT-BR
|
|
388
|
-
* fallback so the badge never ships a silent symbol. */
|
|
389
|
-
labels?: {
|
|
390
|
-
saving?: string;
|
|
391
|
-
saved?: string;
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* Tiny status badge for autosave indicators. Always announces the
|
|
396
|
-
* current state via `aria-live="polite"` so screen-reader users
|
|
397
|
-
* notice the transition without losing focus. The visible glyph is
|
|
398
|
-
* purely decorative (`aria-hidden`) — the visually-hidden label
|
|
399
|
-
* carries the meaning. WCAG 4.1.3 (status messages) + 1.4.1 (color
|
|
400
|
-
* is not the only channel).
|
|
401
|
-
*/
|
|
402
|
-
declare function SaveStatusBadge({ status, labels }: SaveStatusBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
403
|
-
|
|
404
|
-
type AutoSaveWorkspaceProps = Omit<WorkspaceProps, 'onGraphChange'> & {
|
|
405
|
-
onAutoSaveGraph: (graph: WorkflowGraph) => void;
|
|
406
|
-
onGraphSnapshot?: (graph: WorkflowGraph) => void;
|
|
407
|
-
};
|
|
408
|
-
declare const AutoSaveWorkspace: React$1.NamedExoticComponent<AutoSaveWorkspaceProps>;
|
|
409
|
-
|
|
410
|
-
type NodeContextMenuProps = {
|
|
411
|
-
position: {
|
|
412
|
-
x: number;
|
|
413
|
-
y: number;
|
|
414
|
-
};
|
|
415
|
-
targetId: string;
|
|
416
|
-
onClose: () => void;
|
|
417
|
-
onEdit: (nodeId: string) => void;
|
|
418
|
-
onDuplicate: (nodeId: string) => void;
|
|
419
|
-
onCopy: (nodeId: string) => void;
|
|
420
|
-
onDelete: (nodeId: string) => void;
|
|
421
|
-
};
|
|
422
|
-
declare function NodeContextMenu({ position, targetId, onClose, onEdit, onDuplicate, onCopy, onDelete }: NodeContextMenuProps): react_jsx_runtime.JSX.Element;
|
|
423
|
-
|
|
424
|
-
type AlignDirection = 'left' | 'right' | 'top' | 'bottom' | 'centerHorizontal' | 'centerVertical';
|
|
425
|
-
type DistributeDirection = 'horizontal' | 'vertical';
|
|
426
|
-
type SelectionContextMenuProps = {
|
|
427
|
-
position: {
|
|
428
|
-
x: number;
|
|
429
|
-
y: number;
|
|
430
|
-
};
|
|
431
|
-
onClose: () => void;
|
|
432
|
-
onCopy: () => void;
|
|
433
|
-
onDuplicate: () => void;
|
|
434
|
-
onDelete: () => void;
|
|
435
|
-
onGroupSelected: () => void;
|
|
436
|
-
onAlign: (direction: AlignDirection) => void;
|
|
437
|
-
onDistribute: (direction: DistributeDirection) => void;
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
declare function SelectionContextMenu({ position, onClose, onCopy, onDuplicate, onDelete, onGroupSelected, onAlign, onDistribute, }: SelectionContextMenuProps): react_jsx_runtime.JSX.Element;
|
|
441
|
-
|
|
442
|
-
type PanelContextMenuProps = {
|
|
443
|
-
position: {
|
|
444
|
-
x: number;
|
|
445
|
-
y: number;
|
|
446
|
-
};
|
|
447
|
-
onClose: () => void;
|
|
448
|
-
onPaste: () => void;
|
|
449
|
-
onSelectAll: () => void;
|
|
450
|
-
onFitView: () => void;
|
|
451
|
-
onAddNote: (flowPosition: {
|
|
452
|
-
x: number;
|
|
453
|
-
y: number;
|
|
454
|
-
}) => void;
|
|
455
|
-
flowPosition: {
|
|
456
|
-
x: number;
|
|
457
|
-
y: number;
|
|
458
|
-
};
|
|
459
|
-
hasClipboardContent: boolean;
|
|
460
|
-
};
|
|
461
|
-
declare function PanelContextMenu({ position, onClose, onPaste, onSelectAll, onFitView, onAddNote, flowPosition, hasClipboardContent }: PanelContextMenuProps): react_jsx_runtime.JSX.Element;
|
|
462
|
-
|
|
463
|
-
type DynamicIslandConfirmProps = ComponentProps<typeof DynamicIslandConfirm$1>;
|
|
464
|
-
declare function DynamicIslandConfirm(props: DynamicIslandConfirmProps): react_jsx_runtime.JSX.Element;
|
|
465
|
-
|
|
466
|
-
type DslExportModalProps = {
|
|
467
|
-
open: boolean;
|
|
468
|
-
onClose: () => void;
|
|
469
|
-
workflow: Workflow;
|
|
470
|
-
graph: WorkflowGraph;
|
|
471
|
-
};
|
|
472
|
-
declare function DslExportModal({ open, onClose, workflow, graph }: DslExportModalProps): react_jsx_runtime.JSX.Element | null;
|
|
473
|
-
|
|
474
|
-
type DslImportModalProps = {
|
|
475
|
-
open: boolean;
|
|
476
|
-
onClose: () => void;
|
|
477
|
-
onImport: (graph: WorkflowGraph) => void;
|
|
478
|
-
};
|
|
479
|
-
declare function DslImportModal({ open, onClose, onImport }: DslImportModalProps): react_jsx_runtime.JSX.Element | null;
|
|
480
|
-
|
|
481
|
-
type SubworkflowStoreState = {
|
|
482
|
-
/** The workflow tool being edited (null = modal closed) */
|
|
483
|
-
tool: WorkflowTool | null;
|
|
484
|
-
/** Whether the modal is open */
|
|
485
|
-
open: boolean;
|
|
486
|
-
/** Editable fields */
|
|
487
|
-
name: string;
|
|
488
|
-
category: string;
|
|
489
|
-
description: string;
|
|
490
|
-
timeoutMs: number;
|
|
491
|
-
retryCount: number;
|
|
492
|
-
/** Whether there are unsaved changes */
|
|
493
|
-
dirty: boolean;
|
|
494
|
-
};
|
|
495
|
-
type SubworkflowStoreActions = {
|
|
496
|
-
/** Open the modal with a workflow tool (empty toolId = create mode) */
|
|
497
|
-
openModal: (tool: WorkflowTool) => void;
|
|
498
|
-
/** Close the modal and reset state */
|
|
499
|
-
closeModal: () => void;
|
|
500
|
-
/** Update a field and mark dirty */
|
|
501
|
-
setName: (name: string) => void;
|
|
502
|
-
setCategory: (category: string) => void;
|
|
503
|
-
setDescription: (description: string) => void;
|
|
504
|
-
setTimeoutMs: (timeoutMs: number) => void;
|
|
505
|
-
setRetryCount: (retryCount: number) => void;
|
|
506
|
-
/** Mark as dirty (e.g. when graph changes) */
|
|
507
|
-
markDirty: () => void;
|
|
508
|
-
/** Mark as saved */
|
|
509
|
-
markSaved: () => void;
|
|
510
|
-
};
|
|
511
|
-
type SubworkflowStore = SubworkflowStoreState & SubworkflowStoreActions;
|
|
512
|
-
declare const useSubworkflowStore: zustand.UseBoundStore<zustand.StoreApi<SubworkflowStore>>;
|
|
513
|
-
|
|
514
|
-
type ModalType = 'agent' | 'logic-node' | 'pipeline-settings' | null;
|
|
515
|
-
type AgentModalData = {
|
|
516
|
-
agent: AgentWithPrompts;
|
|
517
|
-
models: AgentModel[];
|
|
518
|
-
/** Available agent tools the agent can use */
|
|
519
|
-
agentTools?: AgentTool[];
|
|
520
|
-
/** Available model providers for credential config */
|
|
521
|
-
modelProviders?: ModelProvider[];
|
|
522
|
-
isCreateMode: boolean;
|
|
523
|
-
};
|
|
524
|
-
type LogicNodeModalData = {
|
|
525
|
-
nodeId: string;
|
|
526
|
-
nodeLabel: string;
|
|
527
|
-
config: LogicNodeConfig;
|
|
528
|
-
};
|
|
529
|
-
type PipelineSettingsModalData = {
|
|
530
|
-
name: string;
|
|
531
|
-
description: string;
|
|
532
|
-
/** Optional — populated when opening the modal against an already-
|
|
533
|
-
* loaded workflow so admins can archive / flip draft state without
|
|
534
|
-
* closing the modal. Callers that don't care about lifecycle (e.g.
|
|
535
|
-
* create-from-dialog flows) can leave these out. */
|
|
536
|
-
slug?: string | null;
|
|
537
|
-
isDraft?: boolean;
|
|
538
|
-
isActive?: boolean;
|
|
539
|
-
};
|
|
540
|
-
type ModalEntry = {
|
|
541
|
-
type: ModalType;
|
|
542
|
-
agentData: AgentModalData | null;
|
|
543
|
-
logicNodeData: LogicNodeModalData | null;
|
|
544
|
-
pipelineSettingsData: PipelineSettingsModalData | null;
|
|
545
|
-
};
|
|
546
|
-
type ModalStoreState = {
|
|
547
|
-
/** Current active modal (top of stack) */
|
|
548
|
-
activeModal: ModalType;
|
|
549
|
-
agentData: AgentModalData | null;
|
|
550
|
-
logicNodeData: LogicNodeModalData | null;
|
|
551
|
-
pipelineSettingsData: PipelineSettingsModalData | null;
|
|
552
|
-
/** Stack of previous modals (for back-navigation) */
|
|
553
|
-
stack: ModalEntry[];
|
|
554
|
-
};
|
|
555
|
-
type ModalStoreActions = {
|
|
556
|
-
openAgentModal: (agent: AgentWithPrompts, models: AgentModel[], isCreateMode?: boolean, agentTools?: AgentTool[], modelProviders?: ModelProvider[]) => void;
|
|
557
|
-
openLogicNodeModal: (nodeId: string, nodeLabel: string, config: LogicNodeConfig) => void;
|
|
558
|
-
openPipelineSettingsModal: (name: string, description: string, lifecycle?: {
|
|
559
|
-
slug?: string | null;
|
|
560
|
-
isDraft?: boolean;
|
|
561
|
-
isActive?: boolean;
|
|
562
|
-
}) => void;
|
|
563
|
-
/** Close current modal. If stack has entries, restores the previous modal. */
|
|
564
|
-
closeModal: () => void;
|
|
565
|
-
/** Close all modals and clear the stack. */
|
|
566
|
-
closeAllModals: () => void;
|
|
567
|
-
};
|
|
568
|
-
type ModalStore = ModalStoreState & ModalStoreActions;
|
|
569
|
-
declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<ModalStore>>;
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* Workflow Store Selectors
|
|
573
|
-
* ========================
|
|
574
|
-
* Derived state hooks for granular subscriptions.
|
|
575
|
-
* Each selector subscribes only to the slice it needs,
|
|
576
|
-
* preventing unnecessary re-renders in consuming components.
|
|
577
|
-
*/
|
|
578
|
-
declare const useCanUndo: () => boolean;
|
|
579
|
-
declare const useCanRedo: () => boolean;
|
|
580
|
-
declare const useHasCopied: () => boolean;
|
|
581
|
-
declare const useContextMenu: () => {
|
|
582
|
-
type: "node" | "edge" | "panel";
|
|
583
|
-
position: {
|
|
584
|
-
x: number;
|
|
585
|
-
y: number;
|
|
586
|
-
};
|
|
587
|
-
targetId?: string;
|
|
588
|
-
} | null;
|
|
589
|
-
declare const useEditingNodeId: () => string | null;
|
|
590
|
-
declare const useSelectedNodeCount: () => number;
|
|
591
|
-
declare const useIsRunning: () => boolean;
|
|
592
|
-
declare const useNodeResults: () => Record<string, NodeRunResult>;
|
|
593
|
-
|
|
594
|
-
type UseUndoRedoReturn = {
|
|
595
|
-
undo: () => void;
|
|
596
|
-
redo: () => void;
|
|
597
|
-
canUndo: boolean;
|
|
598
|
-
canRedo: boolean;
|
|
599
|
-
takeSnapshot: () => void;
|
|
600
|
-
};
|
|
601
|
-
declare function useUndoRedo(nodes: Node[], edges: Edge[], setNodes: (nodes: Node[]) => void, setEdges: (edges: Edge[]) => void, maxHistory?: number): UseUndoRedoReturn;
|
|
602
|
-
|
|
603
|
-
type UseClipboardReturn = {
|
|
604
|
-
copy: () => void;
|
|
605
|
-
paste: () => void;
|
|
606
|
-
hasCopied: boolean;
|
|
607
|
-
};
|
|
608
|
-
declare function useClipboard(nodes: Node[], edges: Edge[], setNodes: (updater: (nodes: Node[]) => Node[]) => void, setEdges: (updater: (edges: Edge[]) => Edge[]) => void, takeSnapshot: () => void): UseClipboardReturn;
|
|
609
|
-
|
|
610
|
-
type UseCanvasShortcutsOptions = {
|
|
611
|
-
undo: () => void;
|
|
612
|
-
redo: () => void;
|
|
613
|
-
copy: () => void;
|
|
614
|
-
paste: () => void;
|
|
615
|
-
canUndo: boolean;
|
|
616
|
-
canRedo: boolean;
|
|
617
|
-
selectAll: () => void;
|
|
618
|
-
fitView: () => void;
|
|
619
|
-
};
|
|
620
|
-
declare function useCanvasShortcuts({ undo, redo, copy, paste, canUndo, canRedo, selectAll, fitView, }: UseCanvasShortcutsOptions): void;
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* Help Lines Hook
|
|
624
|
-
* ===============
|
|
625
|
-
* Detects alignment between the currently dragged node and
|
|
626
|
-
* all other nodes on the canvas. When edges (left, center, right,
|
|
627
|
-
* top, center-y, bottom) are within a 5px threshold, returns
|
|
628
|
-
* horizontal and/or vertical guide line positions for visual feedback.
|
|
629
|
-
*/
|
|
630
|
-
|
|
631
|
-
type NodeDragHandler = (event: React.MouseEvent, node: Node, nodes: Node[]) => void;
|
|
632
|
-
type HelpLinePosition = {
|
|
633
|
-
horizontal: number | null;
|
|
634
|
-
vertical: number | null;
|
|
635
|
-
};
|
|
636
|
-
/**
|
|
637
|
-
* Basic help lines hook. Returns a drag handler factory that accepts
|
|
638
|
-
* the full node list for alignment detection.
|
|
639
|
-
*
|
|
640
|
-
* Example:
|
|
641
|
-
* const { helpLines, createDragHandler, onNodeDragStop } = useHelpLines()
|
|
642
|
-
* const onNodeDrag = createDragHandler(nodes)
|
|
643
|
-
*/
|
|
644
|
-
declare function useHelpLines(): {
|
|
645
|
-
helpLines: HelpLinePosition;
|
|
646
|
-
createDragHandler: (allNodes: Node[]) => NodeDragHandler;
|
|
647
|
-
onNodeDragStop: NodeDragHandler;
|
|
648
|
-
};
|
|
649
|
-
|
|
650
|
-
/**
|
|
651
|
-
* Agent framework icons — LangChain, CrewAI, Google ADK, Anthropic Claude Agent SDK.
|
|
652
|
-
* SVG paths sourced from simple-icons where available.
|
|
653
|
-
*/
|
|
654
|
-
type AgentFramework = 'langchain' | 'crewai' | 'google-adk' | 'anthropic' | 'strands' | 'openai' | 'custom';
|
|
655
|
-
type FrameworkIconProps = {
|
|
656
|
-
className?: string;
|
|
657
|
-
};
|
|
658
|
-
declare function LangChainIcon({ className }: FrameworkIconProps): react_jsx_runtime.JSX.Element;
|
|
659
|
-
declare function CrewAIIcon({ className }: FrameworkIconProps): react_jsx_runtime.JSX.Element;
|
|
660
|
-
declare function AnthropicIcon({ className }: FrameworkIconProps): react_jsx_runtime.JSX.Element;
|
|
661
|
-
declare function GoogleADKIcon({ className }: FrameworkIconProps): react_jsx_runtime.JSX.Element;
|
|
662
|
-
declare function StrandsIcon({ className }: FrameworkIconProps): react_jsx_runtime.JSX.Element;
|
|
663
|
-
declare function OpenAIIcon({ className }: FrameworkIconProps): react_jsx_runtime.JSX.Element;
|
|
664
|
-
/** Color + label metadata for each framework */
|
|
665
|
-
declare const FRAMEWORK_META: Record<AgentFramework, {
|
|
666
|
-
label: string;
|
|
667
|
-
color: string;
|
|
668
|
-
badgeColor: string;
|
|
669
|
-
IconComponent: (props: FrameworkIconProps) => React.ReactNode;
|
|
670
|
-
}>;
|
|
671
|
-
/** Get the framework icon + metadata for a given framework key */
|
|
672
|
-
declare function getFrameworkMeta(framework: string | undefined): {
|
|
673
|
-
label: string;
|
|
674
|
-
color: string;
|
|
675
|
-
badgeColor: string;
|
|
676
|
-
IconComponent: (props: FrameworkIconProps) => React.ReactNode;
|
|
677
|
-
};
|
|
678
|
-
/** Check if a model ID is compatible with a framework */
|
|
679
|
-
declare function isModelCompatibleWithFramework(modelId: string, framework: AgentFramework): boolean;
|
|
680
|
-
/** Filter models to only those compatible with a framework */
|
|
681
|
-
declare function getCompatibleModels<T extends {
|
|
682
|
-
id: string;
|
|
683
|
-
}>(models: T[], framework: AgentFramework): T[];
|
|
684
|
-
/** Get the first compatible framework for a given model, or 'custom' as fallback */
|
|
685
|
-
declare function getDefaultFrameworkForModel(modelId: string): AgentFramework;
|
|
686
|
-
|
|
687
|
-
type AgentToolNodeData = {
|
|
688
|
-
agentTool: AgentTool;
|
|
689
|
-
order?: number;
|
|
690
|
-
displayMode?: 'detailed' | 'compact';
|
|
691
|
-
onEdit?: (agentTool: AgentTool) => void;
|
|
692
|
-
onToggle?: (agentTool: AgentTool) => void;
|
|
693
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
694
|
-
label?: string;
|
|
695
|
-
};
|
|
696
|
-
declare const AgentToolFlowNode: React$1.NamedExoticComponent<{
|
|
697
|
-
id: string;
|
|
698
|
-
data: AgentToolNodeData;
|
|
699
|
-
selected?: boolean;
|
|
700
|
-
}>;
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* Model provider icons for AWS Bedrock models.
|
|
704
|
-
* Anthropic (Claude), Amazon (Nova), Meta (Llama).
|
|
705
|
-
*/
|
|
706
|
-
type IconProps = {
|
|
707
|
-
className?: string;
|
|
708
|
-
};
|
|
709
|
-
declare function AnthropicModelIcon({ className }: IconProps): react_jsx_runtime.JSX.Element;
|
|
710
|
-
declare function AmazonNovaIcon({ className }: IconProps): react_jsx_runtime.JSX.Element;
|
|
711
|
-
declare function MetaLlamaIcon({ className }: IconProps): react_jsx_runtime.JSX.Element;
|
|
712
|
-
/** Returns the icon component and color for a model ID */
|
|
713
|
-
declare function getModelIcon(modelId: string): {
|
|
714
|
-
IconComponent: (props: IconProps) => React.ReactNode;
|
|
715
|
-
color: string;
|
|
716
|
-
providerLabel: string;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
declare const LOGIC_NODE_GRADIENTS: Record<string, string>;
|
|
720
|
-
declare const LOGIC_NODE_BADGE_COLORS: Record<string, string>;
|
|
721
|
-
declare const LOGIC_ICON_MAP: Record<string, React.ComponentType<{
|
|
722
|
-
className?: string;
|
|
723
|
-
}>>;
|
|
724
|
-
declare const MINIMAP_NODE_COLORS: Record<string, string>;
|
|
725
|
-
declare const NODE_EXECUTION_ACCENT_COLORS: Record<string, string>;
|
|
726
|
-
declare function getNodeExecutionAccent(nodeType?: string): string;
|
|
727
|
-
declare function getNodeExecutionAccentRgb(nodeType?: string): string;
|
|
728
|
-
declare const LOGIC_NODE_HANDLE_COLORS: Record<string, string>;
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* Entity Visual Helpers
|
|
732
|
-
* =====================
|
|
733
|
-
* Generic appearance helpers for entity nodes independent of hardcoded entity types.
|
|
734
|
-
*/
|
|
735
|
-
declare function getEntityIcon(entityKey: string | undefined): React.ComponentType<{
|
|
736
|
-
className?: string;
|
|
737
|
-
}>;
|
|
738
|
-
declare function getEntityGradient(entityKey: string | undefined): string;
|
|
739
|
-
declare function getEntityBadgeColor(entityKey: string | undefined): string;
|
|
740
|
-
declare function getEntityHandleColor(entityKey: string | undefined): string;
|
|
741
|
-
declare function getEntityMinimapColor(entityKey: string | undefined): string;
|
|
742
|
-
|
|
743
|
-
export { AgentFlowNode, type AgentFramework, AgentModal, AgentNodeData, AgentOutputSchema, 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, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeModal, MINIMAP_NODE_COLORS, MetaLlamaIcon, ModelProvider, ModelProviderFlowNode, ModelProviderNodeData, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, OutputSchemaBuilder, type OutputSchemaBuilderProps, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsModal, type PipelineSettingsPatch, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, type ReplayInputVariables, RuleAction, RuleActionBuilder, RuleCondition, RuleConditionBuilder, RuleFlowNode, RuleNodeData, RunInputDialog, type RunInputDialogProps, RunPanel, RunReplayModal, type RunReplayModalProps, S3WriteFlowNode, S3WriteNodeData, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowModal, type SubworkflowStore, TemplateTransformFlowNode, TemplateTransformNodeData, ToolCanvasData, ToolFlowNode, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowEntityDefinition, WorkflowGraph, WorkflowListBar, type WorkspaceBootstrapPayload, WorkspaceProps, defaultAgentOutputSchema, defaultRuleAction, defaultRuleCondition, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useModalStore, useNodeResults, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional };
|