@oomol-lab/open-flow 0.1.0-beta.55 → 0.1.0-beta.57

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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/{createResourceDialog-4H5_lZ6s.js → createResourceDialog-C23SBjYd.js} +2 -2
  3. package/dist/browser/flow-authoring-edge.d.ts +3 -3
  4. package/dist/browser/flow-authoring-node.d.ts +30 -46
  5. package/dist/browser/flow-authoring.js +9215 -21030
  6. package/dist/browser/flow-change-schema.d.ts +267 -1
  7. package/dist/browser/flow-change.d.ts +19 -104
  8. package/dist/browser/flow-change.js +154 -298
  9. package/dist/browser/{flowChanges-ZzG-f9cg.js → flowChanges-fBiAeTzR.js} +2347 -2216
  10. package/dist/browser/{flowWorkspace-ChpRaTMX.js → flowWorkspace-MqcEfg7T.js} +118 -293
  11. package/dist/browser/{icons-CdAB9wyS.js → icons-6oQ8Q9Wm.js} +4309 -4454
  12. package/dist/browser/lib-DrKav3HG.js +11403 -0
  13. package/dist/browser/preview.css +1 -1
  14. package/dist/browser/preview.js +9609 -9548
  15. package/dist/browser/ui-idTooltip.d.ts +11 -0
  16. package/dist/browser/ui.d.ts +5 -0
  17. package/dist/browser/ui.js +83 -1
  18. package/dist/browser/workbench.css +1 -1
  19. package/dist/browser/workbench.js +227 -417
  20. package/dist/browser/{workbenchSelect-BRZN4ish.js → workbenchSelect-DpLbIr29.js} +1 -1
  21. package/dist/common/authoring.d.ts +207 -0
  22. package/dist/common/authoringSchema.d.ts +1293 -0
  23. package/dist/common/control-api-conformance.js +1060 -623
  24. package/dist/common/control-api-errors.d.ts +2 -1
  25. package/dist/common/control-api.d.ts +87 -6
  26. package/dist/common/control-api.js +1058 -705
  27. package/dist/common/control-requests.d.ts +128 -0
  28. package/dist/common/control-requests.js +2913 -1145
  29. package/dist/common/decision.js +6337 -6371
  30. package/dist/common/flow-agent.d.ts +1 -1
  31. package/dist/common/flow-connectionUsage.d.ts +1 -2
  32. package/dist/common/flow-encoding.d.ts +2 -4
  33. package/dist/common/flow-encoding.js +131 -182
  34. package/dist/common/flow-graph.d.ts +10 -10
  35. package/dist/common/flow-semantics.d.ts +13 -9
  36. package/dist/common/flow-semantics.js +9051 -9232
  37. package/dist/common/flowInspection.d.ts +3 -21
  38. package/dist/common/integration-trigger.js +8653 -8687
  39. package/dist/common/lib-DrKav3HG.js +11403 -0
  40. package/dist/common/mcp.d.ts +120 -12
  41. package/dist/common/mcp.js +537 -188
  42. package/dist/common/openapi.js +6337 -6371
  43. package/dist/common/poll-trigger.js +8653 -8687
  44. package/dist/common/run-events.js +0 -1
  45. package/dist/common/scheduler.d.ts +3 -9
  46. package/dist/common/scheduler.js +128 -209
  47. package/dist/common/webhook-trigger.js +6337 -6371
  48. package/package.json +7 -1
  49. package/skills/open-flow/SKILL.md +32 -0
  50. package/skills/open-flow/references/flow-authoring.md +356 -0
  51. package/skills/open-flow/references/flow-n8n-conversion.md +196 -0
@@ -1,4 +1,5 @@
1
1
  import type { JsonValue } from '../browser/flow-change.js';
2
+ import { z } from 'zod';
2
3
  export declare const mcpProtocolVersion = "2026-07-28";
3
4
  export declare const mcpInstructions: string;
4
5
  export declare const mcpTools: {
@@ -32,7 +33,7 @@ export declare const mcpTools: {
32
33
  };
33
34
  };
34
35
  };
35
- flow_get: {
36
+ flow_read: {
36
37
  description: string;
37
38
  annotations: {
38
39
  readOnlyHint: boolean;
@@ -50,8 +51,15 @@ export declare const mcpTools: {
50
51
  };
51
52
  validate(value: unknown): {
52
53
  value: {
54
+ revision?: string | undefined;
55
+ nodes?: string[] | undefined;
56
+ text?: {
57
+ node: string;
58
+ field: "code" | "prompt";
59
+ start: number;
60
+ lines: number;
61
+ } | undefined;
53
62
  flowId: string;
54
- full?: boolean | undefined;
55
63
  };
56
64
  } | {
57
65
  issues: {
@@ -62,7 +70,7 @@ export declare const mcpTools: {
62
70
  };
63
71
  };
64
72
  };
65
- flow_node_get: {
73
+ flow_search: {
66
74
  description: string;
67
75
  annotations: {
68
76
  readOnlyHint: boolean;
@@ -80,10 +88,12 @@ export declare const mcpTools: {
80
88
  };
81
89
  validate(value: unknown): {
82
90
  value: {
91
+ revision?: string | undefined;
92
+ query: string;
93
+ type?: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook" | undefined;
94
+ offset: number;
95
+ limit: number;
83
96
  flowId: string;
84
- revisionId: string;
85
- nodeId: string;
86
- subflowId?: string | undefined;
87
97
  };
88
98
  } | {
89
99
  issues: {
@@ -112,8 +122,9 @@ export declare const mcpTools: {
112
122
  };
113
123
  validate(value: unknown): {
114
124
  value: {
115
- kind?: string | undefined;
116
- example?: string | undefined;
125
+ type?: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook" | undefined;
126
+ action?: string | undefined;
127
+ flowId?: string | undefined;
117
128
  };
118
129
  } | {
119
130
  issues: {
@@ -155,7 +166,7 @@ export declare const mcpTools: {
155
166
  };
156
167
  };
157
168
  };
158
- flow_apply: {
169
+ flow_edit: {
159
170
  description: string;
160
171
  annotations: {
161
172
  readOnlyHint: boolean;
@@ -173,10 +184,107 @@ export declare const mcpTools: {
173
184
  };
174
185
  validate(value: unknown): {
175
186
  value: {
187
+ baseRevision: string;
188
+ requestId: string;
189
+ edits: ({
190
+ op: "node.add";
191
+ as: string;
192
+ type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
193
+ name: string;
194
+ config?: Record<string, z.JSONType> | undefined;
195
+ inputs?: Record<string, {
196
+ kind: "output";
197
+ node: string;
198
+ port?: string | undefined;
199
+ field?: string | undefined;
200
+ } | {
201
+ kind: "variable";
202
+ name: string;
203
+ } | {
204
+ kind: "value";
205
+ value: z.JSONType;
206
+ } | {
207
+ kind: "unset";
208
+ } | {
209
+ kind: "default";
210
+ } | {
211
+ kind: "sources";
212
+ sources: ({
213
+ kind: "output";
214
+ node: string;
215
+ port?: string | undefined;
216
+ field?: string | undefined;
217
+ } | {
218
+ kind: "variable";
219
+ name: string;
220
+ })[];
221
+ }> | undefined;
222
+ code?: string | undefined;
223
+ prompt?: string | undefined;
224
+ } | {
225
+ op: "node.update";
226
+ node: string;
227
+ set?: {
228
+ name?: string | undefined;
229
+ description?: string | undefined;
230
+ icon?: string | undefined;
231
+ maxExecutions?: number | undefined;
232
+ timeoutMs?: number | undefined;
233
+ config?: Record<string, z.JSONType> | undefined;
234
+ } | undefined;
235
+ clear?: string[][] | undefined;
236
+ } | {
237
+ op: "node.remove";
238
+ node: string;
239
+ } | {
240
+ op: "input.set";
241
+ node: string;
242
+ input: string;
243
+ source: {
244
+ kind: "output";
245
+ node: string;
246
+ port?: string | undefined;
247
+ field?: string | undefined;
248
+ } | {
249
+ kind: "variable";
250
+ name: string;
251
+ } | {
252
+ kind: "value";
253
+ value: z.JSONType;
254
+ } | {
255
+ kind: "unset";
256
+ } | {
257
+ kind: "default";
258
+ } | {
259
+ kind: "sources";
260
+ sources: ({
261
+ kind: "output";
262
+ node: string;
263
+ port?: string | undefined;
264
+ field?: string | undefined;
265
+ } | {
266
+ kind: "variable";
267
+ name: string;
268
+ })[];
269
+ };
270
+ } | {
271
+ op: "edge.connect" | "edge.disconnect";
272
+ source: string;
273
+ target: string;
274
+ branch?: string | undefined;
275
+ } | {
276
+ op: "text.edit";
277
+ node: string;
278
+ field: "code" | "prompt";
279
+ oldText: string;
280
+ newText: string;
281
+ } | {
282
+ op: "text.set";
283
+ node: string;
284
+ field: "code" | "prompt";
285
+ text: string;
286
+ })[];
176
287
  flowId: string;
177
- expectedRevisionId: string;
178
- idempotencyKey: string;
179
- operations: JsonValue[];
180
288
  };
181
289
  } | {
182
290
  issues: {