@oomol-lab/open-flow 0.1.0-beta.61 → 0.1.0-beta.62
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-D71fO68i.js → createResourceDialog-DZgJsr3e.js} +2 -2
- package/dist/browser/{flowChanges-DSA0FxxN.js → flowChanges-CzYIVevI.js} +2244 -2172
- package/dist/browser/{flowWorkspace-0sUJ5JhQ.js → flowWorkspace-BgZaFKZm.js} +179 -57
- package/dist/browser/{icons-DVJvrj1H.js → icons-CajfDpy_.js} +2879 -2879
- package/dist/browser/preview.js +453 -140
- package/dist/browser/workbench.css +4 -20
- package/dist/browser/workbench.js +78 -11
- package/dist/browser/{workbenchSelect-cr4-mKq3.js → workbenchSelect-H9wzEFkH.js} +1 -1
- package/dist/command/index.js +37 -37
- package/dist/common/authoring.d.ts +1 -1
- package/dist/common/control-api-conformance.js +2149 -2084
- package/dist/common/control-api-errors.d.ts +0 -4
- package/dist/common/control-api.d.ts +10 -11
- package/dist/common/control-api.js +2495 -2755
- package/dist/common/control-requests.js +23 -15
- package/dist/common/liveDetails.d.ts +138 -0
- package/dist/common/mcp.d.ts +1 -33
- package/dist/common/mcp.js +287 -238
- package/package.json +1 -1
- package/skills/open-flow/SKILL.md +6 -3
- package/skills/open-flow/references/flow-authoring.md +28 -24
- package/dist/common/publicationResources.d.ts +0 -29
|
@@ -12814,6 +12814,27 @@ async function prepareAgentTools(tools, previous, action, id) {
|
|
|
12814
12814
|
return prepared;
|
|
12815
12815
|
}
|
|
12816
12816
|
//#endregion
|
|
12817
|
+
//#region src/control/common/authoringTriggers.ts
|
|
12818
|
+
/** Shared business configuration for authoring and published entry inspection. */
|
|
12819
|
+
function triggerConfiguration(node) {
|
|
12820
|
+
switch (node.kind) {
|
|
12821
|
+
case "manual": return {};
|
|
12822
|
+
case "webhook": return {
|
|
12823
|
+
body: fieldsView(node.bodyFields),
|
|
12824
|
+
method: node.method,
|
|
12825
|
+
...node.options == null ? {} : { options: node.options }
|
|
12826
|
+
};
|
|
12827
|
+
case "cron": return { schedule: node.cronTimes };
|
|
12828
|
+
case "error": return node.sourceFlowIds == null ? {} : { sourceFlowIds: node.sourceFlowIds };
|
|
12829
|
+
case "poll":
|
|
12830
|
+
case "integration": return {
|
|
12831
|
+
key: node.definition.key,
|
|
12832
|
+
...node.connectionId == null ? {} : { connectionId: node.connectionId },
|
|
12833
|
+
...node.kind == "poll" ? { schedule: node.pollTimes } : {}
|
|
12834
|
+
};
|
|
12835
|
+
}
|
|
12836
|
+
}
|
|
12837
|
+
//#endregion
|
|
12817
12838
|
//#region src/control/common/authoring.ts
|
|
12818
12839
|
var record = (value) => value != null && typeof value == "object" && !Array.isArray(value) ? value : {};
|
|
12819
12840
|
var json$2 = (value) => JSON.parse(JSON.stringify(value));
|
|
@@ -12926,25 +12947,12 @@ function authoringNode(content, ref) {
|
|
|
12926
12947
|
config = { inputs: fieldsView(node.inputDefinitions) };
|
|
12927
12948
|
texts.prompt = node.prompt;
|
|
12928
12949
|
break;
|
|
12950
|
+
case "manual":
|
|
12929
12951
|
case "webhook":
|
|
12930
|
-
config = {
|
|
12931
|
-
body: fieldsView(node.bodyFields),
|
|
12932
|
-
method: node.method,
|
|
12933
|
-
...node.options == null ? {} : { options: node.options }
|
|
12934
|
-
};
|
|
12935
|
-
break;
|
|
12936
12952
|
case "cron":
|
|
12937
|
-
config = { schedule: node.cronTimes };
|
|
12938
|
-
break;
|
|
12939
12953
|
case "error":
|
|
12940
|
-
config = node.sourceFlowIds == null ? {} : { sourceFlowIds: node.sourceFlowIds };
|
|
12941
|
-
break;
|
|
12942
12954
|
case "poll":
|
|
12943
|
-
case "integration": config =
|
|
12944
|
-
key: node.definition.key,
|
|
12945
|
-
...node.connectionId == null ? {} : { connectionId: node.connectionId },
|
|
12946
|
-
...node.kind == "poll" ? { schedule: node.pollTimes } : {}
|
|
12947
|
-
};
|
|
12955
|
+
case "integration": config = triggerConfiguration(node);
|
|
12948
12956
|
}
|
|
12949
12957
|
const edges = authoringEdges(content.document.graph.edges);
|
|
12950
12958
|
return {
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { RevisionContent } from '../browser/flow-change.js';
|
|
2
|
+
import type { Publication, TriggerBinding } from './control-api.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
declare const entrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
+
nodeId: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
type: z.ZodLiteral<"manual">;
|
|
9
|
+
config: z.ZodObject<{}, z.core.$strict>;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
+
nodeId: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
type: z.ZodLiteral<"webhook">;
|
|
15
|
+
config: z.ZodObject<{
|
|
16
|
+
method: z.ZodEnum<{
|
|
17
|
+
DELETE: "DELETE";
|
|
18
|
+
GET: "GET";
|
|
19
|
+
PATCH: "PATCH";
|
|
20
|
+
POST: "POST";
|
|
21
|
+
PUT: "PUT";
|
|
22
|
+
}>;
|
|
23
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
allowedMethods: z.ZodOptional<z.ZodNever>;
|
|
25
|
+
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
noResponseBody: z.ZodOptional<z.ZodNever>;
|
|
27
|
+
responseData: z.ZodOptional<z.ZodString>;
|
|
28
|
+
responseHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
|
+
responseStatusCode: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
body: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
32
|
+
schema: z.ZodOptional<z.ZodJSONSchema>;
|
|
33
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
default: z.ZodOptional<z.ZodJSONSchema>;
|
|
36
|
+
}, z.core.$strict>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
39
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
|
+
nodeId: z.ZodString;
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43
|
+
type: z.ZodLiteral<"cron">;
|
|
44
|
+
config: z.ZodObject<{
|
|
45
|
+
schedule: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
46
|
+
type: z.ZodLiteral<"cron">;
|
|
47
|
+
expression: z.ZodString;
|
|
48
|
+
timezone: z.ZodString;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<"every">;
|
|
51
|
+
unit: z.ZodEnum<{
|
|
52
|
+
day: "day";
|
|
53
|
+
hour: "hour";
|
|
54
|
+
minute: "minute";
|
|
55
|
+
month: "month";
|
|
56
|
+
week: "week";
|
|
57
|
+
}>;
|
|
58
|
+
value: z.ZodNumber;
|
|
59
|
+
}, z.core.$strip>]>>;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
nodeId: z.ZodString;
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
description: z.ZodOptional<z.ZodString>;
|
|
66
|
+
type: z.ZodLiteral<"error">;
|
|
67
|
+
config: z.ZodObject<{
|
|
68
|
+
sourceFlowIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
71
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
|
+
nodeId: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
description: z.ZodOptional<z.ZodString>;
|
|
75
|
+
provider: z.ZodString;
|
|
76
|
+
inputs: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
+
kind: z.ZodLiteral<"value">;
|
|
78
|
+
value: z.ZodJSONSchema;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"unset">;
|
|
81
|
+
}, z.core.$strict>], "kind">>;
|
|
82
|
+
type: z.ZodLiteral<"poll">;
|
|
83
|
+
config: z.ZodObject<{
|
|
84
|
+
key: z.ZodString;
|
|
85
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
schedule: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<"cron">;
|
|
88
|
+
expression: z.ZodString;
|
|
89
|
+
timezone: z.ZodString;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<"every">;
|
|
92
|
+
unit: z.ZodEnum<{
|
|
93
|
+
day: "day";
|
|
94
|
+
hour: "hour";
|
|
95
|
+
minute: "minute";
|
|
96
|
+
month: "month";
|
|
97
|
+
week: "week";
|
|
98
|
+
}>;
|
|
99
|
+
value: z.ZodNumber;
|
|
100
|
+
}, z.core.$strip>]>>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
103
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
104
|
+
nodeId: z.ZodString;
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
107
|
+
provider: z.ZodString;
|
|
108
|
+
inputs: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
109
|
+
kind: z.ZodLiteral<"value">;
|
|
110
|
+
value: z.ZodJSONSchema;
|
|
111
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
112
|
+
kind: z.ZodLiteral<"unset">;
|
|
113
|
+
}, z.core.$strict>], "kind">>;
|
|
114
|
+
type: z.ZodLiteral<"integration">;
|
|
115
|
+
config: z.ZodObject<{
|
|
116
|
+
key: z.ZodString;
|
|
117
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
binding: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TriggerBinding, unknown>>;
|
|
120
|
+
}, z.core.$strict>], "type">;
|
|
121
|
+
export type LiveEntry = z.infer<typeof entrySchema>;
|
|
122
|
+
export type LiveDetails = {
|
|
123
|
+
readonly flowId: string;
|
|
124
|
+
readonly version: 1;
|
|
125
|
+
} & ({
|
|
126
|
+
readonly publication: null;
|
|
127
|
+
readonly status: 'not-published';
|
|
128
|
+
readonly entries: readonly [];
|
|
129
|
+
} | {
|
|
130
|
+
readonly publication: Publication;
|
|
131
|
+
readonly status: 'runnable' | 'suspended';
|
|
132
|
+
readonly enabled: boolean;
|
|
133
|
+
readonly entries: readonly LiveEntry[];
|
|
134
|
+
});
|
|
135
|
+
/** Project only the selected published definition and its current bindings. */
|
|
136
|
+
export declare function liveEntries(content: RevisionContent, current: Publication, bindings: readonly TriggerBinding[]): readonly LiveEntry[];
|
|
137
|
+
export declare function decodeLiveDetails(value: unknown): LiveDetails;
|
|
138
|
+
export {};
|
package/dist/common/mcp.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const mcpProtocolVersion = "2026-07-28";
|
|
4
4
|
export declare const mcpInstructions: string;
|
|
5
5
|
export declare const mcpTools: {
|
|
6
|
-
|
|
6
|
+
flow_live: {
|
|
7
7
|
description: string;
|
|
8
8
|
annotations: {
|
|
9
9
|
readOnlyHint: boolean;
|
|
@@ -22,38 +22,6 @@ export declare const mcpTools: {
|
|
|
22
22
|
validate(value: unknown): {
|
|
23
23
|
value: {
|
|
24
24
|
flowId: string;
|
|
25
|
-
publicationId?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
} | {
|
|
28
|
-
issues: {
|
|
29
|
-
message: string;
|
|
30
|
-
path: string[];
|
|
31
|
-
}[];
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
flow_resource_get: {
|
|
37
|
-
description: string;
|
|
38
|
-
annotations: {
|
|
39
|
-
readOnlyHint: boolean;
|
|
40
|
-
destructiveHint: boolean;
|
|
41
|
-
idempotentHint: boolean;
|
|
42
|
-
openWorldHint: boolean;
|
|
43
|
-
};
|
|
44
|
-
inputSchema: {
|
|
45
|
-
'~standard': {
|
|
46
|
-
version: 1;
|
|
47
|
-
vendor: string;
|
|
48
|
-
jsonSchema: {
|
|
49
|
-
input: () => Record<string, unknown>;
|
|
50
|
-
output: () => Record<string, unknown>;
|
|
51
|
-
};
|
|
52
|
-
validate(value: unknown): {
|
|
53
|
-
value: {
|
|
54
|
-
flowId: string;
|
|
55
|
-
resourceId: string;
|
|
56
|
-
publicationId?: string | undefined;
|
|
57
25
|
};
|
|
58
26
|
} | {
|
|
59
27
|
issues: {
|