@oomol-lab/open-flow 0.1.0-beta.56 → 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 (36) hide show
  1. package/dist/browser/{createResourceDialog-Btjes3wD.js → createResourceDialog-C23SBjYd.js} +2 -2
  2. package/dist/browser/flow-authoring-node.d.ts +6 -2
  3. package/dist/browser/flow-authoring.js +44 -12
  4. package/dist/browser/flow-change-schema.d.ts +266 -0
  5. package/dist/browser/flow-change.d.ts +5 -0
  6. package/dist/browser/flow-change.js +33 -2
  7. package/dist/browser/{flowChanges-BxutPLYO.js → flowChanges-fBiAeTzR.js} +954 -487
  8. package/dist/browser/{flowWorkspace-Dg4mqfa6.js → flowWorkspace-MqcEfg7T.js} +3 -3
  9. package/dist/browser/{icons-p2A9zs8t.js → icons-6oQ8Q9Wm.js} +4298 -4252
  10. package/dist/browser/preview.js +354 -36
  11. package/dist/browser/workbench.js +21 -10
  12. package/dist/browser/{workbenchSelect-LRp_Xjeq.js → workbenchSelect-DpLbIr29.js} +1 -1
  13. package/dist/common/authoring.d.ts +207 -0
  14. package/dist/common/authoringSchema.d.ts +1293 -0
  15. package/dist/common/control-api-conformance.js +975 -505
  16. package/dist/common/control-api-errors.d.ts +2 -1
  17. package/dist/common/control-api.d.ts +81 -0
  18. package/dist/common/control-api.js +973 -586
  19. package/dist/common/control-requests.d.ts +128 -0
  20. package/dist/common/control-requests.js +3122 -346
  21. package/dist/common/decision.js +12 -2
  22. package/dist/common/flow-encoding.js +12 -2
  23. package/dist/common/flow-semantics.d.ts +9 -0
  24. package/dist/common/flow-semantics.js +28 -3
  25. package/dist/common/integration-trigger.js +12 -2
  26. package/dist/common/lib-DrKav3HG.js +11403 -0
  27. package/dist/common/mcp.d.ts +120 -11
  28. package/dist/common/mcp.js +423 -51
  29. package/dist/common/openapi.js +12 -2
  30. package/dist/common/poll-trigger.js +12 -2
  31. package/dist/common/scheduler.js +12 -2
  32. package/dist/common/webhook-trigger.js +12 -2
  33. package/package.json +7 -1
  34. package/skills/open-flow/SKILL.md +32 -0
  35. package/skills/open-flow/references/flow-authoring.md +356 -0
  36. 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,9 +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
97
  };
87
98
  } | {
88
99
  issues: {
@@ -111,8 +122,9 @@ export declare const mcpTools: {
111
122
  };
112
123
  validate(value: unknown): {
113
124
  value: {
114
- kind?: string | undefined;
115
- 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;
116
128
  };
117
129
  } | {
118
130
  issues: {
@@ -154,7 +166,7 @@ export declare const mcpTools: {
154
166
  };
155
167
  };
156
168
  };
157
- flow_apply: {
169
+ flow_edit: {
158
170
  description: string;
159
171
  annotations: {
160
172
  readOnlyHint: boolean;
@@ -172,10 +184,107 @@ export declare const mcpTools: {
172
184
  };
173
185
  validate(value: unknown): {
174
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
+ })[];
175
287
  flowId: string;
176
- expectedRevisionId: string;
177
- idempotencyKey: string;
178
- operations: JsonValue[];
179
288
  };
180
289
  } | {
181
290
  issues: {