@oomol-lab/open-flow 0.1.0-beta.4 → 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.
Files changed (34) 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-xWDFFpGd.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 +469 -209
  15. package/dist/browser/flow-change.d.ts +96 -8
  16. package/dist/browser/flow-change.js +319 -96
  17. package/dist/browser/{flowChanges-Bs-ZcJV8.js → flowChanges-CeMiiZIO.js} +1578 -1541
  18. package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-DDidwd8h.js} +9 -1
  19. package/dist/browser/{flowWorkspace-BewofPeU.js → flowWorkspace-VnS8nLMT.js} +9354 -9349
  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-Bj2HDFRd.js} +255 -256
  23. package/dist/browser/{waitNotificationInputs-DtrPBwA1.js → waitNotificationInputs-ClCAEIAM.js} +2 -2
  24. package/dist/browser/workbench.css +1 -1
  25. package/dist/browser/workbench.js +547 -611
  26. package/dist/browser/{workbenchSelect-CX8KtT7L.js → workbenchSelect-Cf1zlVm9.js} +398 -398
  27. package/dist/common/control-api-conformance.js +21 -19
  28. package/dist/common/control-api.d.ts +4 -11
  29. package/dist/common/control-api.js +6 -18
  30. package/package.json +1 -1
  31. package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
  32. package/dist/browser/dist-BpopSHwP.js +0 -1543
  33. package/dist/browser/dist-CUSrALSX.js +0 -1620
  34. package/dist/browser/icons-DRoMXL5h.js +0 -521
@@ -247,20 +247,35 @@ export type ChangeOperation = {
247
247
  readonly bindingId: string;
248
248
  readonly kind: 'binding.create';
249
249
  } | {
250
- readonly binding: FlowDocument['bindings'][string];
251
250
  readonly bindingId: string;
252
- readonly kind: 'binding.replace';
251
+ readonly kind: 'binding.delete';
253
252
  } | {
253
+ readonly before: string;
254
254
  readonly bindingId: string;
255
- readonly kind: 'binding.delete';
255
+ readonly kind: 'binding.target.set';
256
+ readonly value: string;
256
257
  } | {
258
+ readonly before?: InputMapping;
257
259
  readonly kind: 'graph.edge.connect';
258
260
  readonly edge: GraphEdge;
259
261
  readonly target: GraphTarget;
260
262
  } | {
263
+ readonly before?: InputMapping;
261
264
  readonly kind: 'graph.edge.disconnect';
262
265
  readonly edge: GraphEdge;
263
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'>;
264
279
  } | {
265
280
  readonly kind: 'graph.node.create';
266
281
  readonly node: GraphNode;
@@ -271,10 +286,68 @@ export type ChangeOperation = {
271
286
  readonly nodeId: string;
272
287
  readonly target: GraphTarget;
273
288
  } | {
274
- readonly kind: 'graph.node.replace';
275
- readonly node: GraphNode;
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';
276
311
  readonly nodeId: string;
277
312
  readonly target: GraphTarget;
313
+ readonly value: string;
314
+ } | {
315
+ readonly before: readonly InputPort[];
316
+ readonly kind: 'graph.node.values.set';
317
+ readonly nodeId: string;
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[];
278
351
  } | {
279
352
  readonly kind: 'module.create';
280
353
  readonly module: CodeModule;
@@ -283,10 +356,13 @@ export type ChangeOperation = {
283
356
  readonly kind: 'module.delete';
284
357
  readonly moduleId: string;
285
358
  } | {
359
+ readonly before: string;
286
360
  readonly kind: 'module.rename';
287
361
  readonly moduleId: string;
288
362
  readonly name: string;
289
363
  } | {
364
+ readonly beforeImports: readonly string[];
365
+ readonly beforeSource: string;
290
366
  readonly imports: readonly string[];
291
367
  readonly kind: 'module.source.replace';
292
368
  readonly moduleId: string;
@@ -296,8 +372,9 @@ export type ChangeOperation = {
296
372
  readonly subflow: FlowDocument['subflows'][string];
297
373
  readonly subflowId: string;
298
374
  } | {
375
+ readonly before: Omit<FlowDocument['subflows'][string], 'graph'>;
299
376
  readonly definition: Omit<FlowDocument['subflows'][string], 'graph'>;
300
- readonly kind: 'subflow.definition.replace';
377
+ readonly kind: 'subflow.definition.set';
301
378
  readonly subflowId: string;
302
379
  } | {
303
380
  readonly kind: 'subflow.delete';
@@ -306,13 +383,24 @@ export type ChangeOperation = {
306
383
  readonly kind: 'task.create';
307
384
  readonly task: FlowDocument['tasks'][string];
308
385
  readonly taskId: string;
386
+ } | {
387
+ readonly before?: string;
388
+ readonly kind: 'task.connector.connection.set';
389
+ readonly taskId: string;
390
+ readonly value?: string;
309
391
  } | {
310
392
  readonly kind: 'task.delete';
311
393
  readonly taskId: string;
312
394
  } | {
313
- readonly kind: 'task.replace';
314
- readonly task: FlowDocument['tasks'][string];
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';
315
402
  readonly taskId: string;
403
+ readonly value: string;
316
404
  };
317
405
  export declare class FlowChangeError extends Error {
318
406
  }