@datatechsolutions/ui 2.10.8 → 2.11.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/package.json +2 -1
- package/dist/astrlabe/contracts.d.mts +0 -293
- package/dist/astrlabe/contracts.d.ts +0 -293
- package/dist/astrlabe/contracts.js +0 -5
- package/dist/astrlabe/contracts.js.map +0 -1
- package/dist/astrlabe/contracts.mjs +0 -4
- package/dist/astrlabe/contracts.mjs.map +0 -1
- package/dist/astrlabe/graph-node.d.mts +0 -28
- package/dist/astrlabe/graph-node.d.ts +0 -28
- package/dist/astrlabe/graph-node.js +0 -27
- package/dist/astrlabe/graph-node.js.map +0 -1
- package/dist/astrlabe/graph-node.mjs +0 -6
- package/dist/astrlabe/graph-node.mjs.map +0 -1
- package/dist/astrlabe/index.d.mts +0 -707
- package/dist/astrlabe/index.d.ts +0 -707
- package/dist/astrlabe/index.js +0 -3248
- package/dist/astrlabe/index.js.map +0 -1
- package/dist/astrlabe/index.mjs +0 -2957
- package/dist/astrlabe/index.mjs.map +0 -1
- package/dist/astrlabe/utils.d.mts +0 -71
- package/dist/astrlabe/utils.d.ts +0 -71
- package/dist/astrlabe/utils.js +0 -31
- package/dist/astrlabe/utils.js.map +0 -1
- package/dist/astrlabe/utils.mjs +0 -6
- package/dist/astrlabe/utils.mjs.map +0 -1
- package/dist/astrlabe/workflow-canvas.d.mts +0 -5
- package/dist/astrlabe/workflow-canvas.d.ts +0 -5
- package/dist/astrlabe/workflow-canvas.js +0 -20
- package/dist/astrlabe/workflow-canvas.js.map +0 -1
- package/dist/astrlabe/workflow-canvas.mjs +0 -11
- package/dist/astrlabe/workflow-canvas.mjs.map +0 -1
- package/dist/astrlabe/workflow-preview-canvas.d.mts +0 -10
- package/dist/astrlabe/workflow-preview-canvas.d.ts +0 -10
- package/dist/astrlabe/workflow-preview-canvas.js +0 -28
- package/dist/astrlabe/workflow-preview-canvas.js.map +0 -1
- package/dist/astrlabe/workflow-preview-canvas.mjs +0 -26
- package/dist/astrlabe/workflow-preview-canvas.mjs.map +0 -1
- package/dist/chunk-2XQ2GYYV.mjs +0 -7167
- package/dist/chunk-2XQ2GYYV.mjs.map +0 -1
- package/dist/chunk-3GDQP6AS.mjs +0 -15
- package/dist/chunk-3GDQP6AS.mjs.map +0 -1
- package/dist/chunk-3GE3MBUZ.js +0 -279
- package/dist/chunk-3GE3MBUZ.js.map +0 -1
- package/dist/chunk-55H6WZQP.js +0 -5
- package/dist/chunk-55H6WZQP.js.map +0 -1
- package/dist/chunk-7VJ7CMMT.mjs +0 -96
- package/dist/chunk-7VJ7CMMT.mjs.map +0 -1
- package/dist/chunk-AM2TTPYM.mjs +0 -189
- package/dist/chunk-AM2TTPYM.mjs.map +0 -1
- package/dist/chunk-BLNXRUC4.mjs +0 -276
- package/dist/chunk-BLNXRUC4.mjs.map +0 -1
- package/dist/chunk-D2JF6C3E.mjs +0 -46
- package/dist/chunk-D2JF6C3E.mjs.map +0 -1
- package/dist/chunk-DFR6CMJH.js +0 -197
- package/dist/chunk-DFR6CMJH.js.map +0 -1
- package/dist/chunk-JB6RNAD2.mjs +0 -4
- package/dist/chunk-JB6RNAD2.mjs.map +0 -1
- package/dist/chunk-OZNTQROP.mjs +0 -39
- package/dist/chunk-OZNTQROP.mjs.map +0 -1
- package/dist/chunk-P4YYEM4B.js +0 -44
- package/dist/chunk-P4YYEM4B.js.map +0 -1
- package/dist/chunk-QWG2FMUN.mjs +0 -60
- package/dist/chunk-QWG2FMUN.mjs.map +0 -1
- package/dist/chunk-S7KHTUHA.js +0 -65
- package/dist/chunk-S7KHTUHA.js.map +0 -1
- package/dist/chunk-UPTU224P.js +0 -23923
- package/dist/chunk-UPTU224P.js.map +0 -1
- package/dist/chunk-UZ3CMNUJ.js +0 -49
- package/dist/chunk-UZ3CMNUJ.js.map +0 -1
- package/dist/chunk-VUNV25KB.js +0 -18
- package/dist/chunk-VUNV25KB.js.map +0 -1
- package/dist/chunk-WURR63IK.mjs +0 -23189
- package/dist/chunk-WURR63IK.mjs.map +0 -1
- package/dist/chunk-XJV5ERUJ.js +0 -7228
- package/dist/chunk-XJV5ERUJ.js.map +0 -1
- package/dist/chunk-YXN2K77G.js +0 -102
- package/dist/chunk-YXN2K77G.js.map +0 -1
- package/dist/entity-drawer-D2H7ugi9.d.mts +0 -31
- package/dist/entity-drawer-D2H7ugi9.d.ts +0 -31
- package/dist/index.d.mts +0 -4791
- package/dist/index.d.ts +0 -4791
- package/dist/index.js +0 -2893
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -8
- package/dist/index.mjs.map +0 -1
- package/dist/lib/i18n-context.d.mts +0 -36
- package/dist/lib/i18n-context.d.ts +0 -36
- package/dist/lib/i18n-context.js +0 -30
- package/dist/lib/i18n-context.js.map +0 -1
- package/dist/lib/i18n-context.mjs +0 -5
- package/dist/lib/i18n-context.mjs.map +0 -1
- package/dist/lib/router-context.d.mts +0 -35
- package/dist/lib/router-context.d.ts +0 -35
- package/dist/lib/router-context.js +0 -26
- package/dist/lib/router-context.js.map +0 -1
- package/dist/lib/router-context.mjs +0 -5
- package/dist/lib/router-context.mjs.map +0 -1
- package/dist/navigation-ANFMVDVW.mjs +0 -2445
- package/dist/navigation-ANFMVDVW.mjs.map +0 -1
- package/dist/navigation-JQ2TJKKI.js +0 -2447
- package/dist/navigation-JQ2TJKKI.js.map +0 -1
- package/dist/use-haptic-2SHBMEY5.js +0 -18
- package/dist/use-haptic-2SHBMEY5.js.map +0 -1
- package/dist/use-haptic-4UCNQATC.mjs +0 -5
- package/dist/use-haptic-4UCNQATC.mjs.map +0 -1
- package/dist/workflow-canvas-CGeuIgBQ.d.ts +0 -241
- package/dist/workflow-canvas-at3LMbkg.d.mts +0 -241
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datatechsolutions/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@dagrejs/dagre": "^1.1.8",
|
|
73
|
+
"@datatechsolutions/ui": "2.10.9",
|
|
73
74
|
"@radix-ui/react-progress": "^1.1.8",
|
|
74
75
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
75
76
|
"typescript": "^5.3.0"
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core Contracts
|
|
3
|
-
* ==============
|
|
4
|
-
* Self-contained workflow contracts for embeddable usage.
|
|
5
|
-
* No dependency on shared-domain.
|
|
6
|
-
*/
|
|
7
|
-
type WorkflowNodeType = 'agent' | 'tool' | 'agent_tool' | 'rule' | 'start' | 'end' | 'if_else' | 'code' | 'http_request' | 'template_transform' | 'iteration' | 'knowledge_base' | 'answer' | 'question_classifier' | 'parameter_extractor' | 'variable_assigner' | 'variable_aggregator' | 'document_extractor' | 'list_operator' | 'iteration_start' | 'note' | 'entity' | 'datasource' | 'group';
|
|
8
|
-
type StartNodeConfig = {
|
|
9
|
-
type: 'start';
|
|
10
|
-
inputVariables: string[];
|
|
11
|
-
};
|
|
12
|
-
type EndNodeConfig = {
|
|
13
|
-
type: 'end';
|
|
14
|
-
outputVariables: string[];
|
|
15
|
-
};
|
|
16
|
-
type IfElseNodeConfig = {
|
|
17
|
-
type: 'if_else';
|
|
18
|
-
conditions: Array<{
|
|
19
|
-
variable: string;
|
|
20
|
-
operator: string;
|
|
21
|
-
value: string;
|
|
22
|
-
}>;
|
|
23
|
-
logicalOperator: 'and' | 'or';
|
|
24
|
-
};
|
|
25
|
-
type CodeNodeConfig = {
|
|
26
|
-
type: 'code';
|
|
27
|
-
language: 'javascript' | 'python' | 'typescript';
|
|
28
|
-
code: string;
|
|
29
|
-
};
|
|
30
|
-
type HttpRequestNodeConfig = {
|
|
31
|
-
type: 'http_request';
|
|
32
|
-
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
33
|
-
url: string;
|
|
34
|
-
headers: Record<string, string>;
|
|
35
|
-
body: string;
|
|
36
|
-
timeoutMs: number;
|
|
37
|
-
};
|
|
38
|
-
type TemplateTransformNodeConfig = {
|
|
39
|
-
type: 'template_transform';
|
|
40
|
-
template: string;
|
|
41
|
-
outputVariable: string;
|
|
42
|
-
};
|
|
43
|
-
type IterationNodeConfig = {
|
|
44
|
-
type: 'iteration';
|
|
45
|
-
iteratorVariable: string;
|
|
46
|
-
maxIterations: number;
|
|
47
|
-
};
|
|
48
|
-
type KnowledgeBaseNodeConfig = {
|
|
49
|
-
type: 'knowledge_base';
|
|
50
|
-
sourceId: string;
|
|
51
|
-
topK: number;
|
|
52
|
-
similarityThreshold: number;
|
|
53
|
-
};
|
|
54
|
-
type AnswerNodeConfig = {
|
|
55
|
-
type: 'answer';
|
|
56
|
-
outputTemplate: string;
|
|
57
|
-
outputVariables: string[];
|
|
58
|
-
};
|
|
59
|
-
type QuestionClassifierNodeConfig = {
|
|
60
|
-
type: 'question_classifier';
|
|
61
|
-
modelId: string;
|
|
62
|
-
instructions: string;
|
|
63
|
-
categories: Array<{
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
description: string;
|
|
67
|
-
}>;
|
|
68
|
-
};
|
|
69
|
-
type ParameterExtractorNodeConfig = {
|
|
70
|
-
type: 'parameter_extractor';
|
|
71
|
-
modelId: string;
|
|
72
|
-
parameters: Array<{
|
|
73
|
-
name: string;
|
|
74
|
-
type: 'string' | 'number' | 'boolean' | 'array';
|
|
75
|
-
description: string;
|
|
76
|
-
required: boolean;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
type VariableAssignerNodeConfig = {
|
|
80
|
-
type: 'variable_assigner';
|
|
81
|
-
assignments: Array<{
|
|
82
|
-
target: string;
|
|
83
|
-
source: string;
|
|
84
|
-
}>;
|
|
85
|
-
};
|
|
86
|
-
type VariableAggregatorNodeConfig = {
|
|
87
|
-
type: 'variable_aggregator';
|
|
88
|
-
inputVariables: string[];
|
|
89
|
-
outputVariable: string;
|
|
90
|
-
aggregationMode: 'array' | 'object' | 'concatenate';
|
|
91
|
-
};
|
|
92
|
-
type DocumentExtractorNodeConfig = {
|
|
93
|
-
type: 'document_extractor';
|
|
94
|
-
extractionMode: 'text' | 'table' | 'structured';
|
|
95
|
-
outputVariable: string;
|
|
96
|
-
};
|
|
97
|
-
type ListOperatorNodeConfig = {
|
|
98
|
-
type: 'list_operator';
|
|
99
|
-
operation: 'filter' | 'map' | 'sort' | 'limit' | 'deduplicate' | 'flatten';
|
|
100
|
-
inputVariable: string;
|
|
101
|
-
outputVariable: string;
|
|
102
|
-
condition?: string;
|
|
103
|
-
sortKey?: string;
|
|
104
|
-
sortOrder?: 'asc' | 'desc';
|
|
105
|
-
limitCount?: number;
|
|
106
|
-
};
|
|
107
|
-
type IterationStartNodeConfig = {
|
|
108
|
-
type: 'iteration_start';
|
|
109
|
-
iteratorVariable: string;
|
|
110
|
-
itemVariable: string;
|
|
111
|
-
indexVariable: string;
|
|
112
|
-
};
|
|
113
|
-
type NoteNodeConfig = {
|
|
114
|
-
type: 'note';
|
|
115
|
-
text: string;
|
|
116
|
-
color: 'yellow' | 'blue' | 'green' | 'pink' | 'purple';
|
|
117
|
-
width: number;
|
|
118
|
-
height: number;
|
|
119
|
-
};
|
|
120
|
-
type GroupNodeConfig = {
|
|
121
|
-
type: 'group';
|
|
122
|
-
label: string;
|
|
123
|
-
description?: string;
|
|
124
|
-
color: 'indigo' | 'teal' | 'amber' | 'rose' | 'slate';
|
|
125
|
-
isExpanded: boolean;
|
|
126
|
-
width: number;
|
|
127
|
-
height: number;
|
|
128
|
-
collapsedWidth: number;
|
|
129
|
-
collapsedHeight: number;
|
|
130
|
-
};
|
|
131
|
-
type EntityNodeConfig = {
|
|
132
|
-
type: 'entity';
|
|
133
|
-
entityMasterId: string;
|
|
134
|
-
selectedFields: string[];
|
|
135
|
-
filterVariables: Record<string, string>;
|
|
136
|
-
outputVariable: string;
|
|
137
|
-
limit: number;
|
|
138
|
-
};
|
|
139
|
-
type DatasourceNodeConfig = {
|
|
140
|
-
type: 'datasource';
|
|
141
|
-
datasourceId: string;
|
|
142
|
-
dialect: string;
|
|
143
|
-
table: string;
|
|
144
|
-
selectedColumns: string[];
|
|
145
|
-
filterVariables: Record<string, string>;
|
|
146
|
-
outputVariable: string;
|
|
147
|
-
limit: number;
|
|
148
|
-
};
|
|
149
|
-
type RuleNodeConfig = {
|
|
150
|
-
type: 'rule';
|
|
151
|
-
entityId?: string;
|
|
152
|
-
outputVariable?: string;
|
|
153
|
-
priceVariable?: string;
|
|
154
|
-
contextVariables?: Record<string, string>;
|
|
155
|
-
};
|
|
156
|
-
type LogicNodeConfig = StartNodeConfig | EndNodeConfig | IfElseNodeConfig | CodeNodeConfig | HttpRequestNodeConfig | TemplateTransformNodeConfig | IterationNodeConfig | KnowledgeBaseNodeConfig | AnswerNodeConfig | QuestionClassifierNodeConfig | ParameterExtractorNodeConfig | VariableAssignerNodeConfig | VariableAggregatorNodeConfig | DocumentExtractorNodeConfig | ListOperatorNodeConfig | IterationStartNodeConfig | NoteNodeConfig | GroupNodeConfig | EntityNodeConfig | DatasourceNodeConfig | RuleNodeConfig;
|
|
157
|
-
type WorkflowNodeData = {
|
|
158
|
-
entityId: string;
|
|
159
|
-
label: string;
|
|
160
|
-
config?: LogicNodeConfig;
|
|
161
|
-
errorStrategy?: 'fail_graph' | 'fail_branch' | 'continue';
|
|
162
|
-
};
|
|
163
|
-
type WorkflowNode = {
|
|
164
|
-
id: string;
|
|
165
|
-
type: WorkflowNodeType;
|
|
166
|
-
position: {
|
|
167
|
-
x: number;
|
|
168
|
-
y: number;
|
|
169
|
-
};
|
|
170
|
-
data: WorkflowNodeData;
|
|
171
|
-
parentId?: string;
|
|
172
|
-
extent?: 'parent';
|
|
173
|
-
style?: {
|
|
174
|
-
width?: number;
|
|
175
|
-
height?: number;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
type WorkflowEdge = {
|
|
179
|
-
id: string;
|
|
180
|
-
source: string;
|
|
181
|
-
target: string;
|
|
182
|
-
sourceHandle: string | null;
|
|
183
|
-
targetHandle: string | null;
|
|
184
|
-
};
|
|
185
|
-
type WorkflowViewport = {
|
|
186
|
-
x: number;
|
|
187
|
-
y: number;
|
|
188
|
-
zoom: number;
|
|
189
|
-
};
|
|
190
|
-
type WorkflowGraph = {
|
|
191
|
-
nodes: WorkflowNode[];
|
|
192
|
-
edges: WorkflowEdge[];
|
|
193
|
-
viewport?: WorkflowViewport;
|
|
194
|
-
};
|
|
195
|
-
type Workflow = {
|
|
196
|
-
id: string;
|
|
197
|
-
organizationId: string;
|
|
198
|
-
name: string;
|
|
199
|
-
description?: string;
|
|
200
|
-
graph: WorkflowGraph;
|
|
201
|
-
publishedGraph: WorkflowGraph | null;
|
|
202
|
-
version: number;
|
|
203
|
-
isDraft?: boolean;
|
|
204
|
-
createdAt: Date | string;
|
|
205
|
-
updatedAt: Date | string;
|
|
206
|
-
};
|
|
207
|
-
type WorkflowNodeStatus = 'pending' | 'running' | 'success' | 'error' | 'skipped';
|
|
208
|
-
type VariableValue = string | number | boolean | null | VariableValue[] | {
|
|
209
|
-
[key: string]: VariableValue;
|
|
210
|
-
};
|
|
211
|
-
type NodeExecutionResult = {
|
|
212
|
-
nodeId: string;
|
|
213
|
-
nodeType: WorkflowNodeType;
|
|
214
|
-
status: WorkflowNodeStatus;
|
|
215
|
-
inputs?: Record<string, VariableValue>;
|
|
216
|
-
outputs: Record<string, VariableValue>;
|
|
217
|
-
error?: string;
|
|
218
|
-
durationMs: number;
|
|
219
|
-
startedAt: string;
|
|
220
|
-
completedAt: string;
|
|
221
|
-
};
|
|
222
|
-
type WorkflowRunStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
223
|
-
type WorkflowRun = {
|
|
224
|
-
id: string;
|
|
225
|
-
workflowId: string;
|
|
226
|
-
organizationId: string;
|
|
227
|
-
status: WorkflowRunStatus;
|
|
228
|
-
inputVariables: Record<string, VariableValue>;
|
|
229
|
-
outputVariables: Record<string, VariableValue>;
|
|
230
|
-
nodeResults: NodeExecutionResult[];
|
|
231
|
-
error: string | null;
|
|
232
|
-
totalDurationMs: number | null;
|
|
233
|
-
triggeredBy: string;
|
|
234
|
-
graphSnapshot: WorkflowGraph;
|
|
235
|
-
createdAt: string;
|
|
236
|
-
updatedAt: string;
|
|
237
|
-
};
|
|
238
|
-
type AgentConfig = {
|
|
239
|
-
agentId: string;
|
|
240
|
-
id?: string;
|
|
241
|
-
name: string;
|
|
242
|
-
role?: string;
|
|
243
|
-
modelId?: string;
|
|
244
|
-
order?: number;
|
|
245
|
-
temperature?: number;
|
|
246
|
-
maxTokens?: number;
|
|
247
|
-
enabled?: boolean;
|
|
248
|
-
[key: string]: unknown;
|
|
249
|
-
};
|
|
250
|
-
type AgentModel = {
|
|
251
|
-
id: string;
|
|
252
|
-
name: string;
|
|
253
|
-
provider: string;
|
|
254
|
-
enabled: boolean;
|
|
255
|
-
};
|
|
256
|
-
type Subworkflow = {
|
|
257
|
-
toolId: string;
|
|
258
|
-
name: string;
|
|
259
|
-
category?: string;
|
|
260
|
-
icon?: string;
|
|
261
|
-
endpoint?: string;
|
|
262
|
-
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
263
|
-
enabled: boolean;
|
|
264
|
-
[key: string]: unknown;
|
|
265
|
-
};
|
|
266
|
-
type AgentTool = {
|
|
267
|
-
agentToolId: string;
|
|
268
|
-
name: string;
|
|
269
|
-
description?: string;
|
|
270
|
-
category?: 'search' | 'code' | 'file' | 'web' | 'math' | 'custom';
|
|
271
|
-
icon?: string;
|
|
272
|
-
enabled: boolean;
|
|
273
|
-
parameters?: Array<{
|
|
274
|
-
name: string;
|
|
275
|
-
type: string;
|
|
276
|
-
description: string;
|
|
277
|
-
required: boolean;
|
|
278
|
-
}>;
|
|
279
|
-
[key: string]: unknown;
|
|
280
|
-
};
|
|
281
|
-
type AgentRule = {
|
|
282
|
-
ruleId: string;
|
|
283
|
-
name: string;
|
|
284
|
-
description?: string;
|
|
285
|
-
enabled: boolean;
|
|
286
|
-
order?: number;
|
|
287
|
-
condition?: Record<string, unknown>;
|
|
288
|
-
conditions?: Array<Record<string, unknown>>;
|
|
289
|
-
actions?: Array<Record<string, unknown>>;
|
|
290
|
-
[key: string]: unknown;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
export type { AgentConfig, AgentModel, AgentRule, AgentTool, AnswerNodeConfig, CodeNodeConfig, DatasourceNodeConfig, DocumentExtractorNodeConfig, EndNodeConfig, EntityNodeConfig, GroupNodeConfig, HttpRequestNodeConfig, IfElseNodeConfig, IterationNodeConfig, IterationStartNodeConfig, KnowledgeBaseNodeConfig, ListOperatorNodeConfig, LogicNodeConfig, NodeExecutionResult, NoteNodeConfig, ParameterExtractorNodeConfig, QuestionClassifierNodeConfig, RuleNodeConfig, StartNodeConfig, Subworkflow, TemplateTransformNodeConfig, VariableAggregatorNodeConfig, VariableAssignerNodeConfig, VariableValue, Workflow, WorkflowEdge, WorkflowGraph, WorkflowNode, WorkflowNodeData, WorkflowNodeStatus, WorkflowNodeType, WorkflowRun, WorkflowRunStatus, WorkflowViewport };
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core Contracts
|
|
3
|
-
* ==============
|
|
4
|
-
* Self-contained workflow contracts for embeddable usage.
|
|
5
|
-
* No dependency on shared-domain.
|
|
6
|
-
*/
|
|
7
|
-
type WorkflowNodeType = 'agent' | 'tool' | 'agent_tool' | 'rule' | 'start' | 'end' | 'if_else' | 'code' | 'http_request' | 'template_transform' | 'iteration' | 'knowledge_base' | 'answer' | 'question_classifier' | 'parameter_extractor' | 'variable_assigner' | 'variable_aggregator' | 'document_extractor' | 'list_operator' | 'iteration_start' | 'note' | 'entity' | 'datasource' | 'group';
|
|
8
|
-
type StartNodeConfig = {
|
|
9
|
-
type: 'start';
|
|
10
|
-
inputVariables: string[];
|
|
11
|
-
};
|
|
12
|
-
type EndNodeConfig = {
|
|
13
|
-
type: 'end';
|
|
14
|
-
outputVariables: string[];
|
|
15
|
-
};
|
|
16
|
-
type IfElseNodeConfig = {
|
|
17
|
-
type: 'if_else';
|
|
18
|
-
conditions: Array<{
|
|
19
|
-
variable: string;
|
|
20
|
-
operator: string;
|
|
21
|
-
value: string;
|
|
22
|
-
}>;
|
|
23
|
-
logicalOperator: 'and' | 'or';
|
|
24
|
-
};
|
|
25
|
-
type CodeNodeConfig = {
|
|
26
|
-
type: 'code';
|
|
27
|
-
language: 'javascript' | 'python' | 'typescript';
|
|
28
|
-
code: string;
|
|
29
|
-
};
|
|
30
|
-
type HttpRequestNodeConfig = {
|
|
31
|
-
type: 'http_request';
|
|
32
|
-
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
33
|
-
url: string;
|
|
34
|
-
headers: Record<string, string>;
|
|
35
|
-
body: string;
|
|
36
|
-
timeoutMs: number;
|
|
37
|
-
};
|
|
38
|
-
type TemplateTransformNodeConfig = {
|
|
39
|
-
type: 'template_transform';
|
|
40
|
-
template: string;
|
|
41
|
-
outputVariable: string;
|
|
42
|
-
};
|
|
43
|
-
type IterationNodeConfig = {
|
|
44
|
-
type: 'iteration';
|
|
45
|
-
iteratorVariable: string;
|
|
46
|
-
maxIterations: number;
|
|
47
|
-
};
|
|
48
|
-
type KnowledgeBaseNodeConfig = {
|
|
49
|
-
type: 'knowledge_base';
|
|
50
|
-
sourceId: string;
|
|
51
|
-
topK: number;
|
|
52
|
-
similarityThreshold: number;
|
|
53
|
-
};
|
|
54
|
-
type AnswerNodeConfig = {
|
|
55
|
-
type: 'answer';
|
|
56
|
-
outputTemplate: string;
|
|
57
|
-
outputVariables: string[];
|
|
58
|
-
};
|
|
59
|
-
type QuestionClassifierNodeConfig = {
|
|
60
|
-
type: 'question_classifier';
|
|
61
|
-
modelId: string;
|
|
62
|
-
instructions: string;
|
|
63
|
-
categories: Array<{
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
description: string;
|
|
67
|
-
}>;
|
|
68
|
-
};
|
|
69
|
-
type ParameterExtractorNodeConfig = {
|
|
70
|
-
type: 'parameter_extractor';
|
|
71
|
-
modelId: string;
|
|
72
|
-
parameters: Array<{
|
|
73
|
-
name: string;
|
|
74
|
-
type: 'string' | 'number' | 'boolean' | 'array';
|
|
75
|
-
description: string;
|
|
76
|
-
required: boolean;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
type VariableAssignerNodeConfig = {
|
|
80
|
-
type: 'variable_assigner';
|
|
81
|
-
assignments: Array<{
|
|
82
|
-
target: string;
|
|
83
|
-
source: string;
|
|
84
|
-
}>;
|
|
85
|
-
};
|
|
86
|
-
type VariableAggregatorNodeConfig = {
|
|
87
|
-
type: 'variable_aggregator';
|
|
88
|
-
inputVariables: string[];
|
|
89
|
-
outputVariable: string;
|
|
90
|
-
aggregationMode: 'array' | 'object' | 'concatenate';
|
|
91
|
-
};
|
|
92
|
-
type DocumentExtractorNodeConfig = {
|
|
93
|
-
type: 'document_extractor';
|
|
94
|
-
extractionMode: 'text' | 'table' | 'structured';
|
|
95
|
-
outputVariable: string;
|
|
96
|
-
};
|
|
97
|
-
type ListOperatorNodeConfig = {
|
|
98
|
-
type: 'list_operator';
|
|
99
|
-
operation: 'filter' | 'map' | 'sort' | 'limit' | 'deduplicate' | 'flatten';
|
|
100
|
-
inputVariable: string;
|
|
101
|
-
outputVariable: string;
|
|
102
|
-
condition?: string;
|
|
103
|
-
sortKey?: string;
|
|
104
|
-
sortOrder?: 'asc' | 'desc';
|
|
105
|
-
limitCount?: number;
|
|
106
|
-
};
|
|
107
|
-
type IterationStartNodeConfig = {
|
|
108
|
-
type: 'iteration_start';
|
|
109
|
-
iteratorVariable: string;
|
|
110
|
-
itemVariable: string;
|
|
111
|
-
indexVariable: string;
|
|
112
|
-
};
|
|
113
|
-
type NoteNodeConfig = {
|
|
114
|
-
type: 'note';
|
|
115
|
-
text: string;
|
|
116
|
-
color: 'yellow' | 'blue' | 'green' | 'pink' | 'purple';
|
|
117
|
-
width: number;
|
|
118
|
-
height: number;
|
|
119
|
-
};
|
|
120
|
-
type GroupNodeConfig = {
|
|
121
|
-
type: 'group';
|
|
122
|
-
label: string;
|
|
123
|
-
description?: string;
|
|
124
|
-
color: 'indigo' | 'teal' | 'amber' | 'rose' | 'slate';
|
|
125
|
-
isExpanded: boolean;
|
|
126
|
-
width: number;
|
|
127
|
-
height: number;
|
|
128
|
-
collapsedWidth: number;
|
|
129
|
-
collapsedHeight: number;
|
|
130
|
-
};
|
|
131
|
-
type EntityNodeConfig = {
|
|
132
|
-
type: 'entity';
|
|
133
|
-
entityMasterId: string;
|
|
134
|
-
selectedFields: string[];
|
|
135
|
-
filterVariables: Record<string, string>;
|
|
136
|
-
outputVariable: string;
|
|
137
|
-
limit: number;
|
|
138
|
-
};
|
|
139
|
-
type DatasourceNodeConfig = {
|
|
140
|
-
type: 'datasource';
|
|
141
|
-
datasourceId: string;
|
|
142
|
-
dialect: string;
|
|
143
|
-
table: string;
|
|
144
|
-
selectedColumns: string[];
|
|
145
|
-
filterVariables: Record<string, string>;
|
|
146
|
-
outputVariable: string;
|
|
147
|
-
limit: number;
|
|
148
|
-
};
|
|
149
|
-
type RuleNodeConfig = {
|
|
150
|
-
type: 'rule';
|
|
151
|
-
entityId?: string;
|
|
152
|
-
outputVariable?: string;
|
|
153
|
-
priceVariable?: string;
|
|
154
|
-
contextVariables?: Record<string, string>;
|
|
155
|
-
};
|
|
156
|
-
type LogicNodeConfig = StartNodeConfig | EndNodeConfig | IfElseNodeConfig | CodeNodeConfig | HttpRequestNodeConfig | TemplateTransformNodeConfig | IterationNodeConfig | KnowledgeBaseNodeConfig | AnswerNodeConfig | QuestionClassifierNodeConfig | ParameterExtractorNodeConfig | VariableAssignerNodeConfig | VariableAggregatorNodeConfig | DocumentExtractorNodeConfig | ListOperatorNodeConfig | IterationStartNodeConfig | NoteNodeConfig | GroupNodeConfig | EntityNodeConfig | DatasourceNodeConfig | RuleNodeConfig;
|
|
157
|
-
type WorkflowNodeData = {
|
|
158
|
-
entityId: string;
|
|
159
|
-
label: string;
|
|
160
|
-
config?: LogicNodeConfig;
|
|
161
|
-
errorStrategy?: 'fail_graph' | 'fail_branch' | 'continue';
|
|
162
|
-
};
|
|
163
|
-
type WorkflowNode = {
|
|
164
|
-
id: string;
|
|
165
|
-
type: WorkflowNodeType;
|
|
166
|
-
position: {
|
|
167
|
-
x: number;
|
|
168
|
-
y: number;
|
|
169
|
-
};
|
|
170
|
-
data: WorkflowNodeData;
|
|
171
|
-
parentId?: string;
|
|
172
|
-
extent?: 'parent';
|
|
173
|
-
style?: {
|
|
174
|
-
width?: number;
|
|
175
|
-
height?: number;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
type WorkflowEdge = {
|
|
179
|
-
id: string;
|
|
180
|
-
source: string;
|
|
181
|
-
target: string;
|
|
182
|
-
sourceHandle: string | null;
|
|
183
|
-
targetHandle: string | null;
|
|
184
|
-
};
|
|
185
|
-
type WorkflowViewport = {
|
|
186
|
-
x: number;
|
|
187
|
-
y: number;
|
|
188
|
-
zoom: number;
|
|
189
|
-
};
|
|
190
|
-
type WorkflowGraph = {
|
|
191
|
-
nodes: WorkflowNode[];
|
|
192
|
-
edges: WorkflowEdge[];
|
|
193
|
-
viewport?: WorkflowViewport;
|
|
194
|
-
};
|
|
195
|
-
type Workflow = {
|
|
196
|
-
id: string;
|
|
197
|
-
organizationId: string;
|
|
198
|
-
name: string;
|
|
199
|
-
description?: string;
|
|
200
|
-
graph: WorkflowGraph;
|
|
201
|
-
publishedGraph: WorkflowGraph | null;
|
|
202
|
-
version: number;
|
|
203
|
-
isDraft?: boolean;
|
|
204
|
-
createdAt: Date | string;
|
|
205
|
-
updatedAt: Date | string;
|
|
206
|
-
};
|
|
207
|
-
type WorkflowNodeStatus = 'pending' | 'running' | 'success' | 'error' | 'skipped';
|
|
208
|
-
type VariableValue = string | number | boolean | null | VariableValue[] | {
|
|
209
|
-
[key: string]: VariableValue;
|
|
210
|
-
};
|
|
211
|
-
type NodeExecutionResult = {
|
|
212
|
-
nodeId: string;
|
|
213
|
-
nodeType: WorkflowNodeType;
|
|
214
|
-
status: WorkflowNodeStatus;
|
|
215
|
-
inputs?: Record<string, VariableValue>;
|
|
216
|
-
outputs: Record<string, VariableValue>;
|
|
217
|
-
error?: string;
|
|
218
|
-
durationMs: number;
|
|
219
|
-
startedAt: string;
|
|
220
|
-
completedAt: string;
|
|
221
|
-
};
|
|
222
|
-
type WorkflowRunStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
223
|
-
type WorkflowRun = {
|
|
224
|
-
id: string;
|
|
225
|
-
workflowId: string;
|
|
226
|
-
organizationId: string;
|
|
227
|
-
status: WorkflowRunStatus;
|
|
228
|
-
inputVariables: Record<string, VariableValue>;
|
|
229
|
-
outputVariables: Record<string, VariableValue>;
|
|
230
|
-
nodeResults: NodeExecutionResult[];
|
|
231
|
-
error: string | null;
|
|
232
|
-
totalDurationMs: number | null;
|
|
233
|
-
triggeredBy: string;
|
|
234
|
-
graphSnapshot: WorkflowGraph;
|
|
235
|
-
createdAt: string;
|
|
236
|
-
updatedAt: string;
|
|
237
|
-
};
|
|
238
|
-
type AgentConfig = {
|
|
239
|
-
agentId: string;
|
|
240
|
-
id?: string;
|
|
241
|
-
name: string;
|
|
242
|
-
role?: string;
|
|
243
|
-
modelId?: string;
|
|
244
|
-
order?: number;
|
|
245
|
-
temperature?: number;
|
|
246
|
-
maxTokens?: number;
|
|
247
|
-
enabled?: boolean;
|
|
248
|
-
[key: string]: unknown;
|
|
249
|
-
};
|
|
250
|
-
type AgentModel = {
|
|
251
|
-
id: string;
|
|
252
|
-
name: string;
|
|
253
|
-
provider: string;
|
|
254
|
-
enabled: boolean;
|
|
255
|
-
};
|
|
256
|
-
type Subworkflow = {
|
|
257
|
-
toolId: string;
|
|
258
|
-
name: string;
|
|
259
|
-
category?: string;
|
|
260
|
-
icon?: string;
|
|
261
|
-
endpoint?: string;
|
|
262
|
-
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
263
|
-
enabled: boolean;
|
|
264
|
-
[key: string]: unknown;
|
|
265
|
-
};
|
|
266
|
-
type AgentTool = {
|
|
267
|
-
agentToolId: string;
|
|
268
|
-
name: string;
|
|
269
|
-
description?: string;
|
|
270
|
-
category?: 'search' | 'code' | 'file' | 'web' | 'math' | 'custom';
|
|
271
|
-
icon?: string;
|
|
272
|
-
enabled: boolean;
|
|
273
|
-
parameters?: Array<{
|
|
274
|
-
name: string;
|
|
275
|
-
type: string;
|
|
276
|
-
description: string;
|
|
277
|
-
required: boolean;
|
|
278
|
-
}>;
|
|
279
|
-
[key: string]: unknown;
|
|
280
|
-
};
|
|
281
|
-
type AgentRule = {
|
|
282
|
-
ruleId: string;
|
|
283
|
-
name: string;
|
|
284
|
-
description?: string;
|
|
285
|
-
enabled: boolean;
|
|
286
|
-
order?: number;
|
|
287
|
-
condition?: Record<string, unknown>;
|
|
288
|
-
conditions?: Array<Record<string, unknown>>;
|
|
289
|
-
actions?: Array<Record<string, unknown>>;
|
|
290
|
-
[key: string]: unknown;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
export type { AgentConfig, AgentModel, AgentRule, AgentTool, AnswerNodeConfig, CodeNodeConfig, DatasourceNodeConfig, DocumentExtractorNodeConfig, EndNodeConfig, EntityNodeConfig, GroupNodeConfig, HttpRequestNodeConfig, IfElseNodeConfig, IterationNodeConfig, IterationStartNodeConfig, KnowledgeBaseNodeConfig, ListOperatorNodeConfig, LogicNodeConfig, NodeExecutionResult, NoteNodeConfig, ParameterExtractorNodeConfig, QuestionClassifierNodeConfig, RuleNodeConfig, StartNodeConfig, Subworkflow, TemplateTransformNodeConfig, VariableAggregatorNodeConfig, VariableAssignerNodeConfig, VariableValue, Workflow, WorkflowEdge, WorkflowGraph, WorkflowNode, WorkflowNodeData, WorkflowNodeStatus, WorkflowNodeType, WorkflowRun, WorkflowRunStatus, WorkflowViewport };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"contracts.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"contracts.mjs"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface GraphNodeIconBubbleProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
declare function GraphNodeIconBubble({ children, className }: GraphNodeIconBubbleProps): react_jsx_runtime.JSX.Element;
|
|
9
|
-
interface GraphNodeHeaderProps {
|
|
10
|
-
icon: ReactNode;
|
|
11
|
-
title: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
compact?: boolean;
|
|
14
|
-
iconClassName?: string;
|
|
15
|
-
}
|
|
16
|
-
declare function GraphNodeHeader({ icon, title, description, compact, iconClassName, }: GraphNodeHeaderProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
interface GraphNodeMetaProps {
|
|
18
|
-
compact?: boolean;
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}
|
|
21
|
-
declare function GraphNodeMeta({ compact, children }: GraphNodeMetaProps): react_jsx_runtime.JSX.Element | null;
|
|
22
|
-
interface GraphNodeBadgeProps {
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
declare function GraphNodeBadge({ children, className }: GraphNodeBadgeProps): react_jsx_runtime.JSX.Element;
|
|
27
|
-
|
|
28
|
-
export { GraphNodeBadge, GraphNodeHeader, GraphNodeIconBubble, GraphNodeMeta };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface GraphNodeIconBubbleProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
declare function GraphNodeIconBubble({ children, className }: GraphNodeIconBubbleProps): react_jsx_runtime.JSX.Element;
|
|
9
|
-
interface GraphNodeHeaderProps {
|
|
10
|
-
icon: ReactNode;
|
|
11
|
-
title: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
compact?: boolean;
|
|
14
|
-
iconClassName?: string;
|
|
15
|
-
}
|
|
16
|
-
declare function GraphNodeHeader({ icon, title, description, compact, iconClassName, }: GraphNodeHeaderProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
interface GraphNodeMetaProps {
|
|
18
|
-
compact?: boolean;
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}
|
|
21
|
-
declare function GraphNodeMeta({ compact, children }: GraphNodeMetaProps): react_jsx_runtime.JSX.Element | null;
|
|
22
|
-
interface GraphNodeBadgeProps {
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
declare function GraphNodeBadge({ children, className }: GraphNodeBadgeProps): react_jsx_runtime.JSX.Element;
|
|
27
|
-
|
|
28
|
-
export { GraphNodeBadge, GraphNodeHeader, GraphNodeIconBubble, GraphNodeMeta };
|