@oomol-lab/open-flow 0.1.0-beta.65 → 0.1.0-beta.67
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.
- package/dist/browser/{createResourceDialog-BAJXbzNH.js → createResourceDialog-BQVD8Rqb.js} +2 -2
- package/dist/browser/{icons-Db2Jb2iX.js → dialog-CS2Vt2if.js} +5736 -5621
- package/dist/browser/event-sources.d.ts +4 -1
- package/dist/browser/flow-authoring-node.d.ts +14 -3
- package/dist/browser/flow-authoring.js +120 -24
- package/dist/browser/flow-change-schema.d.ts +3 -1
- package/dist/browser/flow-change.d.ts +15 -3
- package/dist/browser/flow-change.js +117 -21
- package/dist/browser/{flowChanges-DkvG5uDq.js → flowChanges-VB9Y4iy7.js} +3423 -2380
- package/dist/browser/{flowRunInputEditorStore-B2Rw4VsT.js → flowRunInputEditorStore-DJqmR6Qh.js} +3 -2
- package/dist/browser/{flowWorkspace-BEp-lxqF.js → flowWorkspace-C1hlTnZq.js} +1410 -799
- package/dist/browser/preview.css +273 -119
- package/dist/browser/preview.js +17118 -15810
- package/dist/browser/theme.css +1 -0
- package/dist/browser/ui.css +119 -7
- package/dist/browser/ui.js +8 -5
- package/dist/browser/workbench-contract.d.ts +1 -1
- package/dist/browser/workbench.css +282 -162
- package/dist/browser/workbench.d.ts +0 -1
- package/dist/browser/workbench.js +503 -173
- package/dist/browser/{workbenchSelect-C-jf6NIM.js → workbenchSelect-CpXhjUou.js} +1 -1
- package/dist/command/index.js +49 -49
- package/dist/common/authoring.d.ts +7 -5
- package/dist/common/authoringExamples.d.ts +4 -4
- package/dist/common/authoringFields.d.ts +20 -0
- package/dist/common/authoringSchema.d.ts +404 -15
- package/dist/common/control-api-conformance.js +415 -146
- package/dist/common/control-api.d.ts +67 -8
- package/dist/common/control-api.js +3587 -3443
- package/dist/common/control-requests.d.ts +10 -3
- package/dist/common/control-requests.js +425 -49
- package/dist/common/decision.js +33 -7
- package/dist/common/flow-encoding.d.ts +4 -2
- package/dist/common/flow-encoding.js +151 -14
- package/dist/common/flow-graph.d.ts +1 -1
- package/dist/common/flow-semantics.d.ts +12 -2
- package/dist/common/flow-semantics.js +157 -41
- package/dist/common/integration-trigger.js +33 -7
- package/dist/common/liveDetails.d.ts +26 -11
- package/dist/common/mcp.d.ts +6 -3
- package/dist/common/mcp.js +219 -90
- package/dist/common/openapi.js +33 -7
- package/dist/common/poll-trigger.js +33 -7
- package/dist/common/run-events.d.ts +2 -0
- package/dist/common/run-events.js +9 -3
- package/dist/common/scheduler.d.ts +10 -1
- package/dist/common/scheduler.js +172 -49
- package/dist/common/trigger-contract.d.ts +2 -0
- package/dist/common/webhook-trigger.js +33 -7
- package/dist/common/workflow.d.ts +93 -0
- package/dist/common/workflow.js +10492 -0
- package/package.json +5 -1
- package/skills/open-flow/SKILL.md +9 -0
- package/skills/open-flow/references/flow-authoring.md +28 -16
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import type { RevisionContent } from '../browser/flow-change.js';
|
|
2
2
|
import type { Publication, TriggerBinding } from './control-api.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import { flowInputFieldsView } from './authoringSchema.js';
|
|
4
5
|
declare const entrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
nodeId: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
type: z.ZodLiteral<"start">;
|
|
10
|
+
config: z.ZodObject<{
|
|
11
|
+
inputDefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
12
|
+
schema: z.ZodOptional<z.ZodJSONSchema>;
|
|
13
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strict>>>;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5
18
|
nodeId: z.ZodString;
|
|
6
19
|
name: z.ZodString;
|
|
7
20
|
description: z.ZodOptional<z.ZodString>;
|
|
8
21
|
type: z.ZodLiteral<"manual">;
|
|
9
|
-
config: z.ZodObject<{}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
22
|
+
config: z.ZodObject<{}, z.core.$strip>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11
24
|
nodeId: z.ZodString;
|
|
12
25
|
name: z.ZodString;
|
|
13
26
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -36,7 +49,7 @@ declare const entrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
36
49
|
}, z.core.$strict>>;
|
|
37
50
|
}, z.core.$strict>;
|
|
38
51
|
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
39
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
53
|
nodeId: z.ZodString;
|
|
41
54
|
name: z.ZodString;
|
|
42
55
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -59,7 +72,7 @@ declare const entrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
59
72
|
}, z.core.$strip>]>>;
|
|
60
73
|
}, z.core.$strict>;
|
|
61
74
|
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
62
|
-
}, z.core.$
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
76
|
nodeId: z.ZodString;
|
|
64
77
|
name: z.ZodString;
|
|
65
78
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -68,7 +81,7 @@ declare const entrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
68
81
|
sourceFlowIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
82
|
}, z.core.$strict>;
|
|
70
83
|
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
71
|
-
}, z.core.$
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
85
|
nodeId: z.ZodString;
|
|
73
86
|
name: z.ZodString;
|
|
74
87
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -76,9 +89,9 @@ declare const entrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
76
89
|
inputs: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
90
|
kind: z.ZodLiteral<"value">;
|
|
78
91
|
value: z.ZodJSONSchema;
|
|
79
|
-
}, z.core.$
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
93
|
kind: z.ZodLiteral<"unset">;
|
|
81
|
-
}, z.core.$
|
|
94
|
+
}, z.core.$strip>], "kind">>;
|
|
82
95
|
type: z.ZodLiteral<"poll">;
|
|
83
96
|
config: z.ZodObject<{
|
|
84
97
|
key: z.ZodString;
|
|
@@ -100,7 +113,7 @@ declare const entrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
100
113
|
}, z.core.$strip>]>>;
|
|
101
114
|
}, z.core.$strict>;
|
|
102
115
|
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
103
|
-
}, z.core.$
|
|
116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
117
|
nodeId: z.ZodString;
|
|
105
118
|
name: z.ZodString;
|
|
106
119
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -108,25 +121,27 @@ declare const entrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
108
121
|
inputs: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
109
122
|
kind: z.ZodLiteral<"value">;
|
|
110
123
|
value: z.ZodJSONSchema;
|
|
111
|
-
}, z.core.$
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
125
|
kind: z.ZodLiteral<"unset">;
|
|
113
|
-
}, z.core.$
|
|
126
|
+
}, z.core.$strip>], "kind">>;
|
|
114
127
|
type: z.ZodLiteral<"integration">;
|
|
115
128
|
config: z.ZodObject<{
|
|
116
129
|
key: z.ZodString;
|
|
117
130
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
118
131
|
}, z.core.$strict>;
|
|
119
132
|
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
120
|
-
}, z.core.$
|
|
133
|
+
}, z.core.$strip>], "type">;
|
|
121
134
|
export type LiveEntry = z.infer<typeof entrySchema>;
|
|
122
135
|
export type LiveDetails = {
|
|
123
136
|
readonly flowId: string;
|
|
124
137
|
readonly version: 1;
|
|
125
138
|
} & ({
|
|
139
|
+
readonly inputDefs: null;
|
|
126
140
|
readonly publication: null;
|
|
127
141
|
readonly status: 'not-published';
|
|
128
142
|
readonly entries: readonly [];
|
|
129
143
|
} | {
|
|
144
|
+
readonly inputDefs: z.infer<typeof flowInputFieldsView>;
|
|
130
145
|
readonly publication: Publication;
|
|
131
146
|
readonly status: 'runnable' | 'suspended';
|
|
132
147
|
readonly enabled: boolean;
|
package/dist/common/mcp.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ export declare const mcpTools: {
|
|
|
161
161
|
value: {
|
|
162
162
|
revision?: string | undefined;
|
|
163
163
|
query: string;
|
|
164
|
-
type?: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "
|
|
164
|
+
type?: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "workflow" | undefined;
|
|
165
165
|
offset: number;
|
|
166
166
|
limit: number;
|
|
167
167
|
flowId: string;
|
|
@@ -193,7 +193,7 @@ export declare const mcpTools: {
|
|
|
193
193
|
};
|
|
194
194
|
validate(value: unknown): {
|
|
195
195
|
value: {
|
|
196
|
-
type?: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "
|
|
196
|
+
type?: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "workflow" | undefined;
|
|
197
197
|
action?: string | undefined;
|
|
198
198
|
flowId?: string | undefined;
|
|
199
199
|
};
|
|
@@ -321,7 +321,7 @@ export declare const mcpTools: {
|
|
|
321
321
|
edits: ({
|
|
322
322
|
op: "node.add";
|
|
323
323
|
as: string;
|
|
324
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "
|
|
324
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "workflow";
|
|
325
325
|
name: string;
|
|
326
326
|
config?: Record<string, z.JSONType> | undefined;
|
|
327
327
|
inputs?: Record<string, {
|
|
@@ -365,6 +365,9 @@ export declare const mcpTools: {
|
|
|
365
365
|
config?: Record<string, z.JSONType> | undefined;
|
|
366
366
|
} | undefined;
|
|
367
367
|
clear?: string[][] | undefined;
|
|
368
|
+
} | {
|
|
369
|
+
op: "node.refresh";
|
|
370
|
+
node: string;
|
|
368
371
|
} | {
|
|
369
372
|
op: "node.remove";
|
|
370
373
|
node: string;
|