@oomol-lab/open-flow 0.1.0-beta.4 → 0.1.0-beta.6

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.
Files changed (41) hide show
  1. package/dist/browser/{DesignerIcon-DdfuH2jW.js → DesignerIcon-XKBRy_0Q.js} +640 -640
  2. package/dist/browser/createResourceDialog-Cf7QpXp6.js +505 -0
  3. package/dist/browser/{dist-BMqL-qR5.js → dist-BMRLCebL.js} +291 -292
  4. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  5. package/dist/browser/{dist-CJpzJrLM.js → dist-Cc0y2Pli.js} +811 -812
  6. package/dist/browser/{dist-DUzA0Ukh.js → dist-Dg_VXC8f.js} +134 -135
  7. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  8. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  9. package/dist/browser/dist-DxahK_I8.js +2688 -0
  10. package/dist/browser/{dist-CPuF50D9.js → dist-meg_oHVR.js} +335 -335
  11. package/dist/browser/{esm-C9jQK70n.js → esm-CTcBY7hh.js} +5 -6
  12. package/dist/browser/flow-authoring-module.d.ts +2 -2
  13. package/dist/browser/flow-authoring-node.d.ts +2 -2
  14. package/dist/browser/flow-authoring.js +475 -209
  15. package/dist/browser/flow-change.d.ts +98 -8
  16. package/dist/browser/flow-change.js +319 -96
  17. package/dist/browser/{flowChanges-Bs-ZcJV8.js → flowChanges-BDqD_Q4G.js} +1628 -1555
  18. package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-DDidwd8h.js} +9 -1
  19. package/dist/browser/{flowWorkspace-BewofPeU.js → flowWorkspace-CPBHm14t.js} +9803 -9769
  20. package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → getPseudoElementBounds-5LArT6Xc.js} +494 -474
  21. package/dist/browser/icons-CRxvozBE.js +726 -0
  22. package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-_TgJ_7Oq.js} +256 -257
  23. package/dist/browser/{waitNotificationInputs-DtrPBwA1.js → waitNotificationInputs-lPrLDTOd.js} +2 -2
  24. package/dist/browser/workbench.css +1 -1
  25. package/dist/browser/workbench.js +573 -578
  26. package/dist/browser/{workbenchSelect-CX8KtT7L.js → workbenchSelect-Cf1zlVm9.js} +398 -398
  27. package/dist/common/control-api-conformance.js +27 -19
  28. package/dist/common/control-api.d.ts +4 -11
  29. package/dist/common/control-api.js +6 -18
  30. package/dist/common/flow-encoding.js +4 -0
  31. package/dist/common/flow-semantics.js +8 -10
  32. package/dist/common/runtime-contract.d.ts +1 -1
  33. package/dist/common/runtime-contract.js +27 -0
  34. package/dist/common/scheduler.d.ts +1 -1
  35. package/dist/common/scheduler.js +17 -18
  36. package/dist/index.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
  39. package/dist/browser/dist-BpopSHwP.js +0 -1543
  40. package/dist/browser/dist-CUSrALSX.js +0 -1620
  41. package/dist/browser/icons-DRoMXL5h.js +0 -521
@@ -66,6 +66,7 @@ export interface ValueNode extends GraphNodeBase {
66
66
  export type WaitAction = 'approve' | 'continue' | 'reject';
67
67
  export interface WaitNode extends GraphNodeBase {
68
68
  readonly actions: readonly ['continue'] | readonly ['approve', 'reject'];
69
+ readonly input: InputPort;
69
70
  readonly kind: 'wait';
70
71
  readonly notification?: {
71
72
  readonly inputs: Readonly<Record<string, InputMapping>>;
@@ -73,6 +74,7 @@ export interface WaitNode extends GraphNodeBase {
73
74
  readonly taskId: string;
74
75
  };
75
76
  readonly prompt: string;
77
+ readonly timeoutMs?: never;
76
78
  }
77
79
  export type ConditionOperator = '!=' | '<' | '<=' | '==' | '>' | '>=' | 'contains' | 'endsWith' | 'hasKey' | 'hasValue' | 'isEmpty' | 'isFalse' | 'isNotEmpty' | 'isNotNull' | 'isNull' | 'isTrue' | 'notContains' | 'notHasKey' | 'notHasValue' | 'startsWith';
78
80
  export interface ConditionExpression {
@@ -247,20 +249,35 @@ export type ChangeOperation = {
247
249
  readonly bindingId: string;
248
250
  readonly kind: 'binding.create';
249
251
  } | {
250
- readonly binding: FlowDocument['bindings'][string];
251
252
  readonly bindingId: string;
252
- readonly kind: 'binding.replace';
253
+ readonly kind: 'binding.delete';
253
254
  } | {
255
+ readonly before: string;
254
256
  readonly bindingId: string;
255
- readonly kind: 'binding.delete';
257
+ readonly kind: 'binding.target.set';
258
+ readonly value: string;
256
259
  } | {
260
+ readonly before?: InputMapping;
257
261
  readonly kind: 'graph.edge.connect';
258
262
  readonly edge: GraphEdge;
259
263
  readonly target: GraphTarget;
260
264
  } | {
265
+ readonly before?: InputMapping;
261
266
  readonly kind: 'graph.edge.disconnect';
262
267
  readonly edge: GraphEdge;
263
268
  readonly target: GraphTarget;
269
+ } | {
270
+ readonly before?: readonly InputPort[];
271
+ readonly kind: 'graph.node.additional-inputs.set';
272
+ readonly nodeId: string;
273
+ readonly target: GraphTarget;
274
+ readonly value?: readonly InputPort[];
275
+ } | {
276
+ readonly before: Pick<ConditionNode, 'cases' | 'defaultOutput' | 'input'>;
277
+ readonly kind: 'graph.node.condition.set';
278
+ readonly nodeId: string;
279
+ readonly target: GraphTarget;
280
+ readonly value: Pick<ConditionNode, 'cases' | 'defaultOutput' | 'input'>;
264
281
  } | {
265
282
  readonly kind: 'graph.node.create';
266
283
  readonly node: GraphNode;
@@ -271,10 +288,68 @@ export type ChangeOperation = {
271
288
  readonly nodeId: string;
272
289
  readonly target: GraphTarget;
273
290
  } | {
274
- readonly kind: 'graph.node.replace';
275
- readonly node: GraphNode;
291
+ readonly before?: number | string;
292
+ readonly field: 'concurrency' | 'description' | 'icon' | 'name' | 'timeoutMs';
293
+ readonly kind: 'graph.node.field.set';
294
+ readonly nodeId: string;
295
+ readonly target: GraphTarget;
296
+ readonly value?: number | string;
297
+ } | {
298
+ readonly before?: InputMapping;
299
+ readonly handle: string;
300
+ readonly kind: 'graph.node.input.set';
276
301
  readonly nodeId: string;
277
302
  readonly target: GraphTarget;
303
+ readonly value?: InputMapping;
304
+ } | {
305
+ readonly before: Pick<InlineTaskDefinition, 'inputs' | 'outputs'>;
306
+ readonly kind: 'graph.node.task.ports.set';
307
+ readonly nodeId: string;
308
+ readonly target: GraphTarget;
309
+ readonly value: Pick<InlineTaskDefinition, 'inputs' | 'outputs'>;
310
+ } | {
311
+ readonly before: string;
312
+ readonly kind: 'graph.node.task.name.set';
313
+ readonly nodeId: string;
314
+ readonly target: GraphTarget;
315
+ readonly value: string;
316
+ } | {
317
+ readonly before: readonly InputPort[];
318
+ readonly kind: 'graph.node.values.set';
319
+ readonly nodeId: string;
320
+ readonly target: GraphTarget;
321
+ readonly value: readonly InputPort[];
322
+ } | {
323
+ readonly before: Pick<WaitNode, 'actions' | 'notification' | 'prompt'>;
324
+ readonly kind: 'graph.node.wait.set';
325
+ readonly nodeId: string;
326
+ readonly target: Extract<GraphTarget, {
327
+ readonly kind: 'flow';
328
+ }>;
329
+ readonly value: Pick<WaitNode, 'actions' | 'notification' | 'prompt'>;
330
+ } | {
331
+ readonly before: Pick<Extract<TriggerNode, {
332
+ readonly kind: 'webhook';
333
+ }>, 'inputsDef' | 'options'>;
334
+ readonly kind: 'graph.node.webhook.set';
335
+ readonly nodeId: string;
336
+ readonly target: Extract<GraphTarget, {
337
+ readonly kind: 'flow';
338
+ }>;
339
+ readonly value: Pick<Extract<TriggerNode, {
340
+ readonly kind: 'webhook';
341
+ }>, 'inputsDef' | 'options'>;
342
+ } | {
343
+ readonly before?: JsonValue;
344
+ readonly kind: 'graph.trigger.config.set';
345
+ readonly name: string;
346
+ readonly nodeId: string;
347
+ readonly value?: JsonValue;
348
+ } | {
349
+ readonly before: readonly TriggerSchedule[];
350
+ readonly kind: 'graph.trigger.schedule.set';
351
+ readonly nodeId: string;
352
+ readonly value: readonly TriggerSchedule[];
278
353
  } | {
279
354
  readonly kind: 'module.create';
280
355
  readonly module: CodeModule;
@@ -283,10 +358,13 @@ export type ChangeOperation = {
283
358
  readonly kind: 'module.delete';
284
359
  readonly moduleId: string;
285
360
  } | {
361
+ readonly before: string;
286
362
  readonly kind: 'module.rename';
287
363
  readonly moduleId: string;
288
364
  readonly name: string;
289
365
  } | {
366
+ readonly beforeImports: readonly string[];
367
+ readonly beforeSource: string;
290
368
  readonly imports: readonly string[];
291
369
  readonly kind: 'module.source.replace';
292
370
  readonly moduleId: string;
@@ -296,8 +374,9 @@ export type ChangeOperation = {
296
374
  readonly subflow: FlowDocument['subflows'][string];
297
375
  readonly subflowId: string;
298
376
  } | {
377
+ readonly before: Omit<FlowDocument['subflows'][string], 'graph'>;
299
378
  readonly definition: Omit<FlowDocument['subflows'][string], 'graph'>;
300
- readonly kind: 'subflow.definition.replace';
379
+ readonly kind: 'subflow.definition.set';
301
380
  readonly subflowId: string;
302
381
  } | {
303
382
  readonly kind: 'subflow.delete';
@@ -306,13 +385,24 @@ export type ChangeOperation = {
306
385
  readonly kind: 'task.create';
307
386
  readonly task: FlowDocument['tasks'][string];
308
387
  readonly taskId: string;
388
+ } | {
389
+ readonly before?: string;
390
+ readonly kind: 'task.connector.connection.set';
391
+ readonly taskId: string;
392
+ readonly value?: string;
309
393
  } | {
310
394
  readonly kind: 'task.delete';
311
395
  readonly taskId: string;
312
396
  } | {
313
- readonly kind: 'task.replace';
314
- readonly task: FlowDocument['tasks'][string];
397
+ readonly before: 'chat' | 'json';
398
+ readonly kind: 'task.llm.mode.set';
399
+ readonly taskId: string;
400
+ readonly value: 'chat' | 'json';
401
+ } | {
402
+ readonly before: string;
403
+ readonly kind: 'task.name.set';
315
404
  readonly taskId: string;
405
+ readonly value: string;
316
406
  };
317
407
  export declare class FlowChangeError extends Error {
318
408
  }