@oomol-lab/open-flow 0.1.0-beta.27 → 0.1.0-beta.29

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 (56) hide show
  1. package/dist/browser/{createResourceDialog-BwI2JmPE.js → createResourceDialog-C_8I3Fua.js} +1 -1
  2. package/dist/browser/dist-CoszrK7m.js +4 -0
  3. package/dist/browser/{switch-CyZ96-UF.js → editorComponent-Dq4IKp5R.js} +5787 -651
  4. package/dist/browser/flow-authoring-node.d.ts +6 -2
  5. package/dist/browser/flow-authoring.js +1489 -1638
  6. package/dist/browser/flow-change-schema.d.ts +4 -0
  7. package/dist/browser/flow-change.d.ts +20 -14
  8. package/dist/browser/flow-change.js +1057 -1179
  9. package/dist/browser/flow-notifications.d.ts +6 -2
  10. package/dist/browser/{flowChanges-DhEjA0n5.js → flowChanges-BBtkyUGd.js} +2192 -1975
  11. package/dist/browser/{flowRunInputEditorStore-BBqQIOCR.js → flowRunInputEditorStore-CTORQcA2.js} +378 -429
  12. package/dist/browser/{flowWorkspace-zcweMsLS.js → flowWorkspace-DNmBb3ZW.js} +62886 -66618
  13. package/dist/browser/host-conformance.js +7 -1
  14. package/dist/browser/{inputValues-C5ExCCf0.js → inputValues-BbSVOWQP.js} +2 -2
  15. package/dist/browser/{markdownContent-SIlWuHve.js → markdownContent-D2oHGWc6.js} +24 -24
  16. package/dist/browser/ui.css +1 -1
  17. package/dist/browser/value-DPg_9yXB.js +93 -0
  18. package/dist/browser/workbench.css +1 -1
  19. package/dist/browser/workbench.js +769 -605
  20. package/dist/browser/{workbenchSelect-BUu7CjUA.js → workbenchSelect-CQOvpteT.js} +1507 -1642
  21. package/dist/common/authoringExamples.d.ts +28 -0
  22. package/dist/common/control-api-conformance.js +1449 -1556
  23. package/dist/common/control-api-errors.d.ts +8 -0
  24. package/dist/common/control-api.d.ts +12 -4
  25. package/dist/common/control-api.js +1480 -1560
  26. package/dist/common/control-requests.d.ts +13 -6
  27. package/dist/common/control-requests.js +1886 -1445
  28. package/dist/common/cron-trigger.d.ts +2 -1
  29. package/dist/common/cron-trigger.js +27 -24
  30. package/dist/common/draftOperations.d.ts +14 -0
  31. package/dist/common/engine-contract.d.ts +2 -2
  32. package/dist/common/flow-encoding.d.ts +3 -0
  33. package/dist/common/flow-encoding.js +1488 -1524
  34. package/dist/common/flow-graph.d.ts +18 -2
  35. package/dist/common/flow-notifications.d.ts +6 -2
  36. package/dist/common/flow-schema.d.ts +1 -2
  37. package/dist/common/flow-semantics.d.ts +2 -1
  38. package/dist/common/flow-semantics.js +7809 -7820
  39. package/dist/common/flowInspection.d.ts +16 -0
  40. package/dist/common/integration-trigger.d.ts +2 -2
  41. package/dist/common/integration-trigger.js +8 -8
  42. package/dist/common/mcp.d.ts +2 -1
  43. package/dist/common/mcp.js +985 -1060
  44. package/dist/common/poll-trigger.d.ts +3 -0
  45. package/dist/common/poll-trigger.js +26 -22
  46. package/dist/common/provider-triggers.js +3096 -3126
  47. package/dist/common/run-events.js +1 -0
  48. package/dist/common/runtime-contract.js +3 -3
  49. package/dist/common/scheduler.d.ts +6 -5
  50. package/dist/common/scheduler.js +2318 -2383
  51. package/dist/common/trigger-contract.d.ts +5 -0
  52. package/dist/common/webhook-trigger.d.ts +3 -3
  53. package/dist/common/webhook-trigger.js +64 -18
  54. package/package.json +1 -1
  55. package/dist/browser/dist-B_T-OpQp.js +0 -4
  56. package/dist/browser/languages-C0zQ4GSo.js +0 -42
@@ -0,0 +1,16 @@
1
+ import type { Draft, Flow } from './control-api.js';
2
+ export declare function inspectFlowDraft(flow: Flow, readDraft: () => Draft | Promise<Draft>): Promise<{
3
+ flow: Flow;
4
+ draft: Draft;
5
+ version: 1;
6
+ draftIssue?: undefined;
7
+ } | {
8
+ flow: Flow;
9
+ draft: null;
10
+ draftIssue: {
11
+ code: unknown;
12
+ message: string;
13
+ revisionId: string;
14
+ };
15
+ version: 1;
16
+ }>;
@@ -14,7 +14,7 @@ export interface ListenerPage {
14
14
  readonly checkpoint: JsonValue;
15
15
  readonly dedupeKey: string;
16
16
  readonly hasMore: boolean;
17
- readonly payload: Readonly<Record<string, JsonValue>> | null;
17
+ readonly outputs: Readonly<Record<string, JsonValue>> | null;
18
18
  }
19
19
  export interface ListenerSource {
20
20
  readonly intervalMs: number;
@@ -28,7 +28,7 @@ export type IntegrationReceiveResult = {
28
28
  readonly continue?: boolean;
29
29
  readonly dedupeKey?: string;
30
30
  readonly outcome: 'event';
31
- readonly payload: Readonly<Record<string, JsonValue>>;
31
+ readonly outputs: Readonly<Record<string, JsonValue>>;
32
32
  } | {
33
33
  readonly checkpoint?: JsonValue;
34
34
  readonly continue?: boolean;
@@ -90,7 +90,7 @@ var a = 65536, o = 5, s = /^\/v1\/integrations\/(endpoint_[0-9a-f]{32})$/, c = n
90
90
  function l(e) {
91
91
  if (!i(e) || e.checkpoint == null || !r(e.checkpoint) || typeof e.hasMore != "boolean") throw TypeError("Listener page must contain a JSON checkpoint and a boolean hasMore.");
92
92
  if (typeof e.dedupeKey != "string" || e.dedupeKey.length == 0 || c.encode(e.dedupeKey).byteLength > 1024) throw TypeError("Listener page identity must contain between 1 and 1024 bytes.");
93
- if (e.payload !== null && !i(e.payload)) throw TypeError("Listener page payload must be an object or null.");
93
+ if (e.outputs !== null && !i(e.outputs)) throw TypeError("Listener page outputs must be an object or null.");
94
94
  if (c.encode(JSON.stringify(e.checkpoint)).byteLength > 65536) throw TypeError("Listener checkpoint exceeds 64 KiB.");
95
95
  }
96
96
  var u = class extends Error {
@@ -163,11 +163,11 @@ var g = {
163
163
  continue: r < i,
164
164
  dedupeKey: `${a}:${r}`,
165
165
  outcome: "event",
166
- payload: {
166
+ outputs: { payload: {
167
167
  body: { page: r },
168
168
  deliveryId: a,
169
169
  event: "conformance"
170
- }
170
+ } }
171
171
  };
172
172
  }
173
173
  let n = typeof t?.deliveryId == "string" ? t.deliveryId : "delivery", r = C(t?.body) ?? {};
@@ -175,11 +175,11 @@ var g = {
175
175
  checkpoint: { deliveryId: n },
176
176
  dedupeKey: n,
177
177
  outcome: "event",
178
- payload: {
178
+ outputs: { payload: {
179
179
  body: r,
180
180
  deliveryId: n,
181
181
  event: "conformance"
182
- }
182
+ } }
183
183
  };
184
184
  },
185
185
  async reconcile(e) {
@@ -359,16 +359,16 @@ var g = {
359
359
  checkpoint: n + 1,
360
360
  dedupeKey: String(n),
361
361
  hasMore: n + 1 < r,
362
- payload: {
362
+ outputs: { payload: {
363
363
  body: {},
364
364
  deliveryId: String(n),
365
365
  event: "change"
366
- }
366
+ } }
367
367
  } : {
368
368
  checkpoint: e,
369
369
  dedupeKey: String(n),
370
370
  hasMore: !1,
371
- payload: null
371
+ outputs: null
372
372
  };
373
373
  }
374
374
  }
@@ -80,6 +80,7 @@ export declare const mcpTools: {
80
80
  validate(value: unknown): {
81
81
  value: {
82
82
  kind?: string | undefined;
83
+ example?: string | undefined;
83
84
  };
84
85
  } | {
85
86
  issues: {
@@ -300,7 +301,7 @@ export declare const mcpTools: {
300
301
  publicationId?: string | undefined;
301
302
  trigger: {
302
303
  nodeId: string;
303
- payload: JsonValue;
304
+ outputs: Record<string, JsonValue>;
304
305
  };
305
306
  inputs: Record<string, Record<string, JsonValue>>;
306
307
  idempotencyKey: string;