@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,12 +1,140 @@
1
+ export * from './authoring.js';
1
2
  import type { JsonValue } from '../browser/flow-change.js';
2
3
  import type { DraftOperation } from './draftOperations.js';
3
4
  export { decodeDraftOperations, draftOperationsSchema, resolveDraftOperations, type DraftOperation } from './draftOperations.js';
5
+ import { z } from 'zod';
4
6
  export declare const waitActionBodySchema: {
5
7
  parse(value: unknown): {
6
8
  comment?: string | null;
7
9
  };
8
10
  };
9
11
  export declare const controlRequests: {
12
+ authoringCheck: (value: unknown) => {
13
+ revisionId: string;
14
+ };
15
+ authoringEdit: (value: unknown) => {
16
+ baseRevision: string;
17
+ requestId: string;
18
+ edits: ({
19
+ op: "node.add";
20
+ as: string;
21
+ type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
22
+ name: string;
23
+ config?: Record<string, z.JSONType> | undefined;
24
+ inputs?: Record<string, {
25
+ kind: "output";
26
+ node: string;
27
+ port?: string | undefined;
28
+ field?: string | undefined;
29
+ } | {
30
+ kind: "variable";
31
+ name: string;
32
+ } | {
33
+ kind: "value";
34
+ value: z.JSONType;
35
+ } | {
36
+ kind: "unset";
37
+ } | {
38
+ kind: "default";
39
+ } | {
40
+ kind: "sources";
41
+ sources: ({
42
+ kind: "output";
43
+ node: string;
44
+ port?: string | undefined;
45
+ field?: string | undefined;
46
+ } | {
47
+ kind: "variable";
48
+ name: string;
49
+ })[];
50
+ }> | undefined;
51
+ code?: string | undefined;
52
+ prompt?: string | undefined;
53
+ } | {
54
+ op: "node.update";
55
+ node: string;
56
+ set?: {
57
+ name?: string | undefined;
58
+ description?: string | undefined;
59
+ icon?: string | undefined;
60
+ maxExecutions?: number | undefined;
61
+ timeoutMs?: number | undefined;
62
+ config?: Record<string, z.JSONType> | undefined;
63
+ } | undefined;
64
+ clear?: string[][] | undefined;
65
+ } | {
66
+ op: "node.remove";
67
+ node: string;
68
+ } | {
69
+ op: "input.set";
70
+ node: string;
71
+ input: string;
72
+ source: {
73
+ kind: "output";
74
+ node: string;
75
+ port?: string | undefined;
76
+ field?: string | undefined;
77
+ } | {
78
+ kind: "variable";
79
+ name: string;
80
+ } | {
81
+ kind: "value";
82
+ value: z.JSONType;
83
+ } | {
84
+ kind: "unset";
85
+ } | {
86
+ kind: "default";
87
+ } | {
88
+ kind: "sources";
89
+ sources: ({
90
+ kind: "output";
91
+ node: string;
92
+ port?: string | undefined;
93
+ field?: string | undefined;
94
+ } | {
95
+ kind: "variable";
96
+ name: string;
97
+ })[];
98
+ };
99
+ } | {
100
+ op: "edge.connect" | "edge.disconnect";
101
+ source: string;
102
+ target: string;
103
+ branch?: string | undefined;
104
+ } | {
105
+ op: "text.edit";
106
+ node: string;
107
+ field: "code" | "prompt";
108
+ oldText: string;
109
+ newText: string;
110
+ } | {
111
+ op: "text.set";
112
+ node: string;
113
+ field: "code" | "prompt";
114
+ text: string;
115
+ })[];
116
+ };
117
+ authoringRead: (value: unknown) => {
118
+ revision?: string | undefined;
119
+ nodes?: string[] | undefined;
120
+ text?: {
121
+ node: string;
122
+ field: "code" | "prompt";
123
+ start: number;
124
+ lines: number;
125
+ } | undefined;
126
+ };
127
+ authoringSearch: (value: unknown) => {
128
+ revision?: string | undefined;
129
+ query: string;
130
+ type?: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook" | undefined;
131
+ offset: number;
132
+ limit: number;
133
+ };
134
+ authoringSchema: (value: unknown) => {
135
+ type?: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook" | undefined;
136
+ action?: string | undefined;
137
+ };
10
138
  loadOpenApiDocument: (value: unknown) => {
11
139
  url: string;
12
140
  version: 1;