@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,4 @@
1
- import { St as SelectItem, Tt as SelectValue, bt as SelectContent, vi as cn, vt as Select, wt as SelectTrigger, xt as SelectGroup } from "./icons-CdAB9wyS.js";
1
+ import { Ct as SelectGroup, Dt as SelectValue, Et as SelectTrigger, St as SelectContent, bi as cn, bt as Select, wt as SelectItem } from "./icons-6oQ8Q9Wm.js";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  //#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
4
4
  function WorkbenchSelect({ ariaLabel, className, disabled = false, id, onValueChange, options, portalRoot, size, value, variant }) {
@@ -0,0 +1,207 @@
1
+ import type { ChangeOperation, JsonValue, RevisionContent, TriggerKeySnapshot } from '../browser/flow-change.js';
2
+ import type { ConnectorAction, Diagnostic } from './control-api.js';
3
+ import type { AuthoringRead, AuthoringRequest, AuthoringSearch } from './authoringSchema.js';
4
+ export * from './authoringSchema.js';
5
+ export declare class AuthoringError extends Error {
6
+ readonly code: string;
7
+ readonly details: Record<string, unknown>;
8
+ constructor(code: string, message: string, details?: Record<string, unknown>);
9
+ }
10
+ export declare function authoringNode(content: RevisionContent, ref: string): {
11
+ ref: string;
12
+ type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
13
+ name: string;
14
+ readOnly: boolean;
15
+ description?: string | undefined;
16
+ icon?: string | undefined;
17
+ timeoutMs?: number | undefined;
18
+ maxExecutions?: number | undefined;
19
+ config: JsonValue;
20
+ texts: {
21
+ [k: string]: {
22
+ lines: number;
23
+ characters: number;
24
+ };
25
+ };
26
+ inputs: unknown;
27
+ inputPorts: {
28
+ [k: string]: {
29
+ schema: JsonValue;
30
+ nullable: boolean;
31
+ description?: string | undefined;
32
+ default?: JsonValue | undefined;
33
+ };
34
+ };
35
+ outputPorts: {
36
+ [k: string]: {
37
+ schema: JsonValue;
38
+ nullable: boolean;
39
+ description?: string | undefined;
40
+ default?: JsonValue | undefined;
41
+ };
42
+ };
43
+ authenticationChoices?: ({
44
+ label: string;
45
+ } & ({
46
+ error: string | undefined;
47
+ authentication?: undefined;
48
+ } | {
49
+ error?: undefined;
50
+ authentication: {
51
+ schemes: string[];
52
+ };
53
+ }))[] | undefined;
54
+ incoming: ({
55
+ source: string;
56
+ target: string;
57
+ branch?: undefined;
58
+ } | {
59
+ source: string;
60
+ target: string;
61
+ branch: string;
62
+ })[];
63
+ outgoing: ({
64
+ source: string;
65
+ target: string;
66
+ branch?: undefined;
67
+ } | {
68
+ source: string;
69
+ target: string;
70
+ branch: string;
71
+ })[];
72
+ };
73
+ export declare function readAuthoring(content: RevisionContent, query?: AuthoringRead): {
74
+ text: {
75
+ node: string;
76
+ field: "code" | "prompt";
77
+ start: number;
78
+ lines: number;
79
+ content: string;
80
+ totalLines: number;
81
+ nextStart?: number | undefined;
82
+ truncated: boolean;
83
+ };
84
+ nodes?: undefined;
85
+ edges?: undefined;
86
+ } | {
87
+ text?: undefined;
88
+ nodes: {
89
+ ref: string;
90
+ type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
91
+ name: string;
92
+ readOnly: boolean;
93
+ description?: string | undefined;
94
+ icon?: string | undefined;
95
+ timeoutMs?: number | undefined;
96
+ maxExecutions?: number | undefined;
97
+ config: JsonValue;
98
+ texts: {
99
+ [k: string]: {
100
+ lines: number;
101
+ characters: number;
102
+ };
103
+ };
104
+ inputs: unknown;
105
+ inputPorts: {
106
+ [k: string]: {
107
+ schema: JsonValue;
108
+ nullable: boolean;
109
+ description?: string | undefined;
110
+ default?: JsonValue | undefined;
111
+ };
112
+ };
113
+ outputPorts: {
114
+ [k: string]: {
115
+ schema: JsonValue;
116
+ nullable: boolean;
117
+ description?: string | undefined;
118
+ default?: JsonValue | undefined;
119
+ };
120
+ };
121
+ authenticationChoices?: ({
122
+ label: string;
123
+ } & ({
124
+ error: string | undefined;
125
+ authentication?: undefined;
126
+ } | {
127
+ error?: undefined;
128
+ authentication: {
129
+ schemes: string[];
130
+ };
131
+ }))[] | undefined;
132
+ incoming: ({
133
+ source: string;
134
+ target: string;
135
+ branch?: undefined;
136
+ } | {
137
+ source: string;
138
+ target: string;
139
+ branch: string;
140
+ })[];
141
+ outgoing: ({
142
+ source: string;
143
+ target: string;
144
+ branch?: undefined;
145
+ } | {
146
+ source: string;
147
+ target: string;
148
+ branch: string;
149
+ })[];
150
+ }[];
151
+ edges?: undefined;
152
+ } | {
153
+ text?: undefined;
154
+ nodes: {
155
+ ref: string;
156
+ type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
157
+ name: string;
158
+ readOnly: boolean;
159
+ inputHandles: string[];
160
+ outputHandles: string[];
161
+ inputs: unknown;
162
+ texts: {
163
+ [k: string]: {
164
+ lines: number;
165
+ characters: number;
166
+ };
167
+ };
168
+ }[];
169
+ edges: ({
170
+ source: string;
171
+ target: string;
172
+ branch?: undefined;
173
+ } | {
174
+ source: string;
175
+ target: string;
176
+ branch: string;
177
+ })[];
178
+ };
179
+ export declare function searchAuthoring(content: RevisionContent, query: AuthoringSearch): {
180
+ matches: {
181
+ node: string;
182
+ field: string;
183
+ line?: number;
184
+ excerpt: string;
185
+ }[];
186
+ total: number;
187
+ nextOffset?: number | undefined;
188
+ };
189
+ export interface AuthoringHost {
190
+ id(label: string): string;
191
+ action(id: string): Promise<ConnectorAction>;
192
+ trigger(key: string): TriggerKeySnapshot;
193
+ openapi(url: string): Promise<JsonValue>;
194
+ }
195
+ export declare function compileAuthoring(base: RevisionContent, request: AuthoringRequest, host: AuthoringHost): Promise<{
196
+ operations: readonly ChangeOperation[];
197
+ content: RevisionContent;
198
+ nodes: Record<string, string>;
199
+ }>;
200
+ export declare function authoringDiagnostics(content: RevisionContent, diagnostics: readonly Diagnostic[]): {
201
+ code: string;
202
+ message: string;
203
+ nodes: string[];
204
+ field: string;
205
+ line?: number | undefined;
206
+ column?: number | undefined;
207
+ }[];