@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,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;