@oomol-lab/open-flow 0.1.0-beta.3 → 0.1.0-beta.5
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/browser/DesignerIcon-XKBRy_0Q.js +2066 -0
- package/dist/browser/{createResourceDialog-BkZns-oZ.js → createResourceDialog-Cf7QpXp6.js} +161 -160
- package/dist/browser/{dist-BMqL-qR5.js → dist-BMRLCebL.js} +291 -292
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/{dist-CJpzJrLM.js → dist-Cc0y2Pli.js} +811 -812
- package/dist/browser/{dist-DUzA0Ukh.js → dist-Dg_VXC8f.js} +134 -135
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-meg_oHVR.js} +335 -335
- package/dist/browser/{esm-C2UUqIUP.js → esm-xWDFFpGd.js} +5 -6
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +5 -2
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +489 -209
- package/dist/browser/flow-change.d.ts +110 -9
- package/dist/browser/flow-change.js +319 -96
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/{diagnostics-SDCyFuxm.js → flowChanges-CeMiiZIO.js} +4234 -3825
- package/dist/browser/{flowRunInputEditorStore-CwvOiIiU.js → flowRunInputEditorStore-DDidwd8h.js} +10 -2
- package/dist/browser/{flowWorkspace-BZ_eiQNR.js → flowWorkspace-VnS8nLMT.js} +35268 -35081
- package/dist/browser/{getPseudoElementBounds-ESJExRFX.js → getPseudoElementBounds-5LArT6Xc.js} +1827 -2322
- package/dist/browser/icons-CRxvozBE.js +726 -0
- package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-Bj2HDFRd.js} +256 -257
- package/dist/browser/waitNotificationInputs-ClCAEIAM.js +26 -0
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +851 -840
- package/dist/browser/{workbenchSelect-B2s1HV-Y.js → workbenchSelect-Cf1zlVm9.js} +479 -478
- package/dist/common/control-api-conformance.d.ts +1 -0
- package/dist/common/control-api-conformance.js +80 -19
- package/dist/common/control-api-errors.d.ts +4 -0
- package/dist/common/control-api.d.ts +26 -14
- package/dist/common/control-api.js +138 -89
- package/dist/common/flow-encoding.js +20 -8
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-semantics.d.ts +1 -0
- package/dist/common/flow-semantics.js +467 -381
- package/dist/common/run-events.js +2 -1
- package/dist/common/run-lifecycle.d.ts +17 -2
- package/dist/common/run-lifecycle.js +53 -2
- package/dist/common/scheduler.d.ts +64 -3
- package/dist/common/scheduler.js +417 -142
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
|
@@ -63,6 +63,17 @@ export interface ValueNode extends GraphNodeBase {
|
|
|
63
63
|
readonly kind: 'value';
|
|
64
64
|
readonly values: readonly InputPort[];
|
|
65
65
|
}
|
|
66
|
+
export type WaitAction = 'approve' | 'continue' | 'reject';
|
|
67
|
+
export interface WaitNode extends GraphNodeBase {
|
|
68
|
+
readonly actions: readonly ['continue'] | readonly ['approve', 'reject'];
|
|
69
|
+
readonly kind: 'wait';
|
|
70
|
+
readonly notification?: {
|
|
71
|
+
readonly inputs: Readonly<Record<string, InputMapping>>;
|
|
72
|
+
readonly messageHandle: string;
|
|
73
|
+
readonly taskId: string;
|
|
74
|
+
};
|
|
75
|
+
readonly prompt: string;
|
|
76
|
+
}
|
|
66
77
|
export type ConditionOperator = '!=' | '<' | '<=' | '==' | '>' | '>=' | 'contains' | 'endsWith' | 'hasKey' | 'hasValue' | 'isEmpty' | 'isFalse' | 'isNotEmpty' | 'isNotNull' | 'isNull' | 'isTrue' | 'notContains' | 'notHasKey' | 'notHasValue' | 'startsWith';
|
|
67
78
|
export interface ConditionExpression {
|
|
68
79
|
readonly input: string;
|
|
@@ -109,9 +120,11 @@ export type TaskDefinition = InlineTaskDefinition | ManagedTaskDefinition;
|
|
|
109
120
|
export type TaskNode = GraphNodeBase & {
|
|
110
121
|
readonly kind: 'task';
|
|
111
122
|
} & ({
|
|
123
|
+
readonly additionalInputs?: readonly InputPort[];
|
|
112
124
|
readonly task: InlineTaskDefinition;
|
|
113
125
|
readonly taskId?: never;
|
|
114
126
|
} | {
|
|
127
|
+
readonly additionalInputs?: readonly InputPort[];
|
|
115
128
|
readonly task?: never;
|
|
116
129
|
readonly taskId: string;
|
|
117
130
|
});
|
|
@@ -192,7 +205,7 @@ export type TriggerNode = (TriggerNodeBase & {
|
|
|
192
205
|
};
|
|
193
206
|
readonly kind: 'integration';
|
|
194
207
|
});
|
|
195
|
-
export type GraphNode = ConditionNode | SubflowNode | TaskNode | TriggerNode | ValueNode;
|
|
208
|
+
export type GraphNode = ConditionNode | SubflowNode | TaskNode | TriggerNode | ValueNode | WaitNode;
|
|
196
209
|
export interface FlowDocument {
|
|
197
210
|
readonly bindings: Readonly<Record<string, {
|
|
198
211
|
readonly kind: 'connection' | 'variable';
|
|
@@ -234,20 +247,35 @@ export type ChangeOperation = {
|
|
|
234
247
|
readonly bindingId: string;
|
|
235
248
|
readonly kind: 'binding.create';
|
|
236
249
|
} | {
|
|
237
|
-
readonly binding: FlowDocument['bindings'][string];
|
|
238
250
|
readonly bindingId: string;
|
|
239
|
-
readonly kind: 'binding.
|
|
251
|
+
readonly kind: 'binding.delete';
|
|
240
252
|
} | {
|
|
253
|
+
readonly before: string;
|
|
241
254
|
readonly bindingId: string;
|
|
242
|
-
readonly kind: 'binding.
|
|
255
|
+
readonly kind: 'binding.target.set';
|
|
256
|
+
readonly value: string;
|
|
243
257
|
} | {
|
|
258
|
+
readonly before?: InputMapping;
|
|
244
259
|
readonly kind: 'graph.edge.connect';
|
|
245
260
|
readonly edge: GraphEdge;
|
|
246
261
|
readonly target: GraphTarget;
|
|
247
262
|
} | {
|
|
263
|
+
readonly before?: InputMapping;
|
|
248
264
|
readonly kind: 'graph.edge.disconnect';
|
|
249
265
|
readonly edge: GraphEdge;
|
|
250
266
|
readonly target: GraphTarget;
|
|
267
|
+
} | {
|
|
268
|
+
readonly before?: readonly InputPort[];
|
|
269
|
+
readonly kind: 'graph.node.additional-inputs.set';
|
|
270
|
+
readonly nodeId: string;
|
|
271
|
+
readonly target: GraphTarget;
|
|
272
|
+
readonly value?: readonly InputPort[];
|
|
273
|
+
} | {
|
|
274
|
+
readonly before: Pick<ConditionNode, 'cases' | 'defaultOutput' | 'input'>;
|
|
275
|
+
readonly kind: 'graph.node.condition.set';
|
|
276
|
+
readonly nodeId: string;
|
|
277
|
+
readonly target: GraphTarget;
|
|
278
|
+
readonly value: Pick<ConditionNode, 'cases' | 'defaultOutput' | 'input'>;
|
|
251
279
|
} | {
|
|
252
280
|
readonly kind: 'graph.node.create';
|
|
253
281
|
readonly node: GraphNode;
|
|
@@ -258,10 +286,68 @@ export type ChangeOperation = {
|
|
|
258
286
|
readonly nodeId: string;
|
|
259
287
|
readonly target: GraphTarget;
|
|
260
288
|
} | {
|
|
261
|
-
readonly
|
|
262
|
-
readonly
|
|
289
|
+
readonly before?: number | string;
|
|
290
|
+
readonly field: 'concurrency' | 'description' | 'icon' | 'name' | 'timeoutMs';
|
|
291
|
+
readonly kind: 'graph.node.field.set';
|
|
292
|
+
readonly nodeId: string;
|
|
293
|
+
readonly target: GraphTarget;
|
|
294
|
+
readonly value?: number | string;
|
|
295
|
+
} | {
|
|
296
|
+
readonly before?: InputMapping;
|
|
297
|
+
readonly handle: string;
|
|
298
|
+
readonly kind: 'graph.node.input.set';
|
|
299
|
+
readonly nodeId: string;
|
|
300
|
+
readonly target: GraphTarget;
|
|
301
|
+
readonly value?: InputMapping;
|
|
302
|
+
} | {
|
|
303
|
+
readonly before: Pick<InlineTaskDefinition, 'inputs' | 'outputs'>;
|
|
304
|
+
readonly kind: 'graph.node.task.ports.set';
|
|
305
|
+
readonly nodeId: string;
|
|
306
|
+
readonly target: GraphTarget;
|
|
307
|
+
readonly value: Pick<InlineTaskDefinition, 'inputs' | 'outputs'>;
|
|
308
|
+
} | {
|
|
309
|
+
readonly before: string;
|
|
310
|
+
readonly kind: 'graph.node.task.name.set';
|
|
311
|
+
readonly nodeId: string;
|
|
312
|
+
readonly target: GraphTarget;
|
|
313
|
+
readonly value: string;
|
|
314
|
+
} | {
|
|
315
|
+
readonly before: readonly InputPort[];
|
|
316
|
+
readonly kind: 'graph.node.values.set';
|
|
263
317
|
readonly nodeId: string;
|
|
264
318
|
readonly target: GraphTarget;
|
|
319
|
+
readonly value: readonly InputPort[];
|
|
320
|
+
} | {
|
|
321
|
+
readonly before: Pick<WaitNode, 'actions' | 'notification' | 'prompt'>;
|
|
322
|
+
readonly kind: 'graph.node.wait.set';
|
|
323
|
+
readonly nodeId: string;
|
|
324
|
+
readonly target: Extract<GraphTarget, {
|
|
325
|
+
readonly kind: 'flow';
|
|
326
|
+
}>;
|
|
327
|
+
readonly value: Pick<WaitNode, 'actions' | 'notification' | 'prompt'>;
|
|
328
|
+
} | {
|
|
329
|
+
readonly before: Pick<Extract<TriggerNode, {
|
|
330
|
+
readonly kind: 'webhook';
|
|
331
|
+
}>, 'inputsDef' | 'options'>;
|
|
332
|
+
readonly kind: 'graph.node.webhook.set';
|
|
333
|
+
readonly nodeId: string;
|
|
334
|
+
readonly target: Extract<GraphTarget, {
|
|
335
|
+
readonly kind: 'flow';
|
|
336
|
+
}>;
|
|
337
|
+
readonly value: Pick<Extract<TriggerNode, {
|
|
338
|
+
readonly kind: 'webhook';
|
|
339
|
+
}>, 'inputsDef' | 'options'>;
|
|
340
|
+
} | {
|
|
341
|
+
readonly before?: JsonValue;
|
|
342
|
+
readonly kind: 'graph.trigger.config.set';
|
|
343
|
+
readonly name: string;
|
|
344
|
+
readonly nodeId: string;
|
|
345
|
+
readonly value?: JsonValue;
|
|
346
|
+
} | {
|
|
347
|
+
readonly before: readonly TriggerSchedule[];
|
|
348
|
+
readonly kind: 'graph.trigger.schedule.set';
|
|
349
|
+
readonly nodeId: string;
|
|
350
|
+
readonly value: readonly TriggerSchedule[];
|
|
265
351
|
} | {
|
|
266
352
|
readonly kind: 'module.create';
|
|
267
353
|
readonly module: CodeModule;
|
|
@@ -270,10 +356,13 @@ export type ChangeOperation = {
|
|
|
270
356
|
readonly kind: 'module.delete';
|
|
271
357
|
readonly moduleId: string;
|
|
272
358
|
} | {
|
|
359
|
+
readonly before: string;
|
|
273
360
|
readonly kind: 'module.rename';
|
|
274
361
|
readonly moduleId: string;
|
|
275
362
|
readonly name: string;
|
|
276
363
|
} | {
|
|
364
|
+
readonly beforeImports: readonly string[];
|
|
365
|
+
readonly beforeSource: string;
|
|
277
366
|
readonly imports: readonly string[];
|
|
278
367
|
readonly kind: 'module.source.replace';
|
|
279
368
|
readonly moduleId: string;
|
|
@@ -283,8 +372,9 @@ export type ChangeOperation = {
|
|
|
283
372
|
readonly subflow: FlowDocument['subflows'][string];
|
|
284
373
|
readonly subflowId: string;
|
|
285
374
|
} | {
|
|
375
|
+
readonly before: Omit<FlowDocument['subflows'][string], 'graph'>;
|
|
286
376
|
readonly definition: Omit<FlowDocument['subflows'][string], 'graph'>;
|
|
287
|
-
readonly kind: 'subflow.definition.
|
|
377
|
+
readonly kind: 'subflow.definition.set';
|
|
288
378
|
readonly subflowId: string;
|
|
289
379
|
} | {
|
|
290
380
|
readonly kind: 'subflow.delete';
|
|
@@ -293,13 +383,24 @@ export type ChangeOperation = {
|
|
|
293
383
|
readonly kind: 'task.create';
|
|
294
384
|
readonly task: FlowDocument['tasks'][string];
|
|
295
385
|
readonly taskId: string;
|
|
386
|
+
} | {
|
|
387
|
+
readonly before?: string;
|
|
388
|
+
readonly kind: 'task.connector.connection.set';
|
|
389
|
+
readonly taskId: string;
|
|
390
|
+
readonly value?: string;
|
|
296
391
|
} | {
|
|
297
392
|
readonly kind: 'task.delete';
|
|
298
393
|
readonly taskId: string;
|
|
299
394
|
} | {
|
|
300
|
-
readonly
|
|
301
|
-
readonly
|
|
395
|
+
readonly before: 'chat' | 'json';
|
|
396
|
+
readonly kind: 'task.llm.mode.set';
|
|
397
|
+
readonly taskId: string;
|
|
398
|
+
readonly value: 'chat' | 'json';
|
|
399
|
+
} | {
|
|
400
|
+
readonly before: string;
|
|
401
|
+
readonly kind: 'task.name.set';
|
|
302
402
|
readonly taskId: string;
|
|
403
|
+
readonly value: string;
|
|
303
404
|
};
|
|
304
405
|
export declare class FlowChangeError extends Error {
|
|
305
406
|
}
|