@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.
- package/dist/browser/{createResourceDialog-Btjes3wD.js → createResourceDialog-C23SBjYd.js} +2 -2
- package/dist/browser/flow-authoring-node.d.ts +6 -2
- package/dist/browser/flow-authoring.js +44 -12
- package/dist/browser/flow-change-schema.d.ts +266 -0
- package/dist/browser/flow-change.d.ts +5 -0
- package/dist/browser/flow-change.js +33 -2
- package/dist/browser/{flowChanges-BxutPLYO.js → flowChanges-fBiAeTzR.js} +954 -487
- package/dist/browser/{flowWorkspace-Dg4mqfa6.js → flowWorkspace-MqcEfg7T.js} +3 -3
- package/dist/browser/{icons-p2A9zs8t.js → icons-6oQ8Q9Wm.js} +4298 -4252
- package/dist/browser/preview.js +354 -36
- package/dist/browser/workbench.js +21 -10
- package/dist/browser/{workbenchSelect-LRp_Xjeq.js → workbenchSelect-DpLbIr29.js} +1 -1
- package/dist/common/authoring.d.ts +207 -0
- package/dist/common/authoringSchema.d.ts +1293 -0
- package/dist/common/control-api-conformance.js +975 -505
- package/dist/common/control-api-errors.d.ts +2 -1
- package/dist/common/control-api.d.ts +81 -0
- package/dist/common/control-api.js +973 -586
- package/dist/common/control-requests.d.ts +128 -0
- package/dist/common/control-requests.js +3122 -346
- package/dist/common/decision.js +12 -2
- package/dist/common/flow-encoding.js +12 -2
- package/dist/common/flow-semantics.d.ts +9 -0
- package/dist/common/flow-semantics.js +28 -3
- package/dist/common/integration-trigger.js +12 -2
- package/dist/common/lib-DrKav3HG.js +11403 -0
- package/dist/common/mcp.d.ts +120 -11
- package/dist/common/mcp.js +423 -51
- package/dist/common/openapi.js +12 -2
- package/dist/common/poll-trigger.js +12 -2
- package/dist/common/scheduler.js +12 -2
- package/dist/common/webhook-trigger.js +12 -2
- package/package.json +7 -1
- package/skills/open-flow/SKILL.md +32 -0
- package/skills/open-flow/references/flow-authoring.md +356 -0
- package/skills/open-flow/references/flow-n8n-conversion.md +196 -0
package/dist/common/decision.js
CHANGED
|
@@ -6704,7 +6704,7 @@ var decisionQuestion = discriminatedUnion("type", [
|
|
|
6704
6704
|
criteria: strings
|
|
6705
6705
|
})
|
|
6706
6706
|
]);
|
|
6707
|
-
var
|
|
6707
|
+
var managedFields = object({
|
|
6708
6708
|
...ports,
|
|
6709
6709
|
name: text,
|
|
6710
6710
|
executor: union([
|
|
@@ -6763,7 +6763,8 @@ var managed = object({
|
|
|
6763
6763
|
}).optional()
|
|
6764
6764
|
})
|
|
6765
6765
|
])
|
|
6766
|
-
})
|
|
6766
|
+
});
|
|
6767
|
+
var managed = managedFields.transform(limitDecisionTask);
|
|
6767
6768
|
var operand = union([object({
|
|
6768
6769
|
kind: literal("value"),
|
|
6769
6770
|
value: json.optional(),
|
|
@@ -6938,6 +6939,10 @@ var node = union([
|
|
|
6938
6939
|
})
|
|
6939
6940
|
})
|
|
6940
6941
|
]);
|
|
6942
|
+
strictObject(condition), strictObject(wait), strictObject(webhook), managedFields.shape.executor.options[0].omit({ kind: true }).strict(), managedFields.shape.executor.options[1].omit({ kind: true }).strict(), managedFields.shape.executor.options[2].omit({ kind: true }).strict(), managedFields.shape.executor.options[3].omit({ kind: true }).strict(), managedFields.shape.executor.options[4].omit({
|
|
6943
|
+
kind: true,
|
|
6944
|
+
notification: true
|
|
6945
|
+
}).strict();
|
|
6941
6946
|
var edge = object({
|
|
6942
6947
|
source: text,
|
|
6943
6948
|
target: text,
|
|
@@ -7017,6 +7022,11 @@ var shapes = {
|
|
|
7017
7022
|
...at,
|
|
7018
7023
|
node
|
|
7019
7024
|
},
|
|
7025
|
+
"graph.node.replace": {
|
|
7026
|
+
...at,
|
|
7027
|
+
before: node,
|
|
7028
|
+
node
|
|
7029
|
+
},
|
|
7020
7030
|
"graph.node.delete": at,
|
|
7021
7031
|
"graph.node.field.set": union([
|
|
7022
7032
|
object({
|
|
@@ -8686,7 +8686,7 @@ var decisionQuestion = discriminatedUnion("type", [
|
|
|
8686
8686
|
criteria: strings
|
|
8687
8687
|
})
|
|
8688
8688
|
]);
|
|
8689
|
-
var
|
|
8689
|
+
var managedFields = object({
|
|
8690
8690
|
...ports,
|
|
8691
8691
|
name: text,
|
|
8692
8692
|
executor: union([
|
|
@@ -8745,7 +8745,8 @@ var managed = object({
|
|
|
8745
8745
|
}).optional()
|
|
8746
8746
|
})
|
|
8747
8747
|
])
|
|
8748
|
-
})
|
|
8748
|
+
});
|
|
8749
|
+
var managed = managedFields.transform(limitDecisionTask);
|
|
8749
8750
|
var operand = union([object({
|
|
8750
8751
|
kind: literal("value"),
|
|
8751
8752
|
value: json.optional(),
|
|
@@ -8920,6 +8921,10 @@ var node = union([
|
|
|
8920
8921
|
})
|
|
8921
8922
|
})
|
|
8922
8923
|
]);
|
|
8924
|
+
strictObject(condition), strictObject(wait), strictObject(webhook), managedFields.shape.executor.options[0].omit({ kind: true }).strict(), managedFields.shape.executor.options[1].omit({ kind: true }).strict(), managedFields.shape.executor.options[2].omit({ kind: true }).strict(), managedFields.shape.executor.options[3].omit({ kind: true }).strict(), managedFields.shape.executor.options[4].omit({
|
|
8925
|
+
kind: true,
|
|
8926
|
+
notification: true
|
|
8927
|
+
}).strict();
|
|
8923
8928
|
var edge = object({
|
|
8924
8929
|
source: text,
|
|
8925
8930
|
target: text,
|
|
@@ -9218,6 +9223,11 @@ var shapes = {
|
|
|
9218
9223
|
...at,
|
|
9219
9224
|
node
|
|
9220
9225
|
},
|
|
9226
|
+
"graph.node.replace": {
|
|
9227
|
+
...at,
|
|
9228
|
+
before: node,
|
|
9229
|
+
node
|
|
9230
|
+
},
|
|
9221
9231
|
"graph.node.delete": at,
|
|
9222
9232
|
"graph.node.field.set": union([
|
|
9223
9233
|
object({
|
|
@@ -19,6 +19,15 @@ export interface SemanticClosure {
|
|
|
19
19
|
export declare function flowDependencies(content: RevisionContent, triggerId?: string): SemanticClosure['dependencies'];
|
|
20
20
|
export declare function flowClosure(content: RevisionContent): Promise<SemanticClosure>;
|
|
21
21
|
export declare function variableBindings(revision: RevisionContent, bindingIds: Iterable<string>): Readonly<Record<string, string>>;
|
|
22
|
+
export interface FlowResourceReferences {
|
|
23
|
+
readonly variableNames: readonly string[];
|
|
24
|
+
readonly connections: readonly {
|
|
25
|
+
readonly providerId: string;
|
|
26
|
+
readonly connectionId: string;
|
|
27
|
+
}[];
|
|
28
|
+
readonly errorSourceFlowIds: readonly string[];
|
|
29
|
+
}
|
|
30
|
+
export declare function flowResourceReferences(content: RevisionContent): FlowResourceReferences;
|
|
22
31
|
export interface Diagnostic {
|
|
23
32
|
readonly code: string;
|
|
24
33
|
readonly column: number;
|
|
@@ -6718,7 +6718,7 @@ var decisionQuestion = discriminatedUnion("type", [
|
|
|
6718
6718
|
criteria: strings
|
|
6719
6719
|
})
|
|
6720
6720
|
]);
|
|
6721
|
-
var
|
|
6721
|
+
var managedFields = object$1({
|
|
6722
6722
|
...ports,
|
|
6723
6723
|
name: text,
|
|
6724
6724
|
executor: union([
|
|
@@ -6777,7 +6777,8 @@ var managed = object$1({
|
|
|
6777
6777
|
}).optional()
|
|
6778
6778
|
})
|
|
6779
6779
|
])
|
|
6780
|
-
})
|
|
6780
|
+
});
|
|
6781
|
+
var managed = managedFields.transform(limitDecisionTask);
|
|
6781
6782
|
var operand = union([object$1({
|
|
6782
6783
|
kind: literal("value"),
|
|
6783
6784
|
value: json.optional(),
|
|
@@ -6952,6 +6953,10 @@ var node = union([
|
|
|
6952
6953
|
})
|
|
6953
6954
|
})
|
|
6954
6955
|
]);
|
|
6956
|
+
strictObject(condition), strictObject(wait), strictObject(webhook), managedFields.shape.executor.options[0].omit({ kind: true }).strict(), managedFields.shape.executor.options[1].omit({ kind: true }).strict(), managedFields.shape.executor.options[2].omit({ kind: true }).strict(), managedFields.shape.executor.options[3].omit({ kind: true }).strict(), managedFields.shape.executor.options[4].omit({
|
|
6957
|
+
kind: true,
|
|
6958
|
+
notification: true
|
|
6959
|
+
}).strict();
|
|
6955
6960
|
var edge = object$1({
|
|
6956
6961
|
source: text,
|
|
6957
6962
|
target: text,
|
|
@@ -7031,6 +7036,11 @@ var shapes = {
|
|
|
7031
7036
|
...at,
|
|
7032
7037
|
node
|
|
7033
7038
|
},
|
|
7039
|
+
"graph.node.replace": {
|
|
7040
|
+
...at,
|
|
7041
|
+
before: node,
|
|
7042
|
+
node
|
|
7043
|
+
},
|
|
7034
7044
|
"graph.node.delete": at,
|
|
7035
7045
|
"graph.node.field.set": union([
|
|
7036
7046
|
object$1({
|
|
@@ -24059,6 +24069,21 @@ function variableBindings(revision, bindingIds) {
|
|
|
24059
24069
|
return binding?.kind == "variable" ? [[bindingId, binding.target]] : [];
|
|
24060
24070
|
}));
|
|
24061
24071
|
}
|
|
24072
|
+
function flowResourceReferences(content) {
|
|
24073
|
+
const connections = /* @__PURE__ */ new Map();
|
|
24074
|
+
for (const use of connectionUsage(content.document)) {
|
|
24075
|
+
if (use.connectionId == null) continue;
|
|
24076
|
+
connections.set(JSON.stringify([use.providerId, use.connectionId]), {
|
|
24077
|
+
providerId: use.providerId,
|
|
24078
|
+
connectionId: use.connectionId
|
|
24079
|
+
});
|
|
24080
|
+
}
|
|
24081
|
+
return {
|
|
24082
|
+
variableNames: [...new Set(Object.values(variableBindings(content, flowDependencies(content).bindings)))].toSorted(),
|
|
24083
|
+
connections: [...connections].toSorted(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([, value]) => value),
|
|
24084
|
+
errorSourceFlowIds: [...new Set(Object.values(content.document.graph.nodes).flatMap((node) => node.kind == "error" ? node.sourceFlowIds ?? [] : []))].toSorted()
|
|
24085
|
+
};
|
|
24086
|
+
}
|
|
24062
24087
|
function validRunTrigger(revision, value) {
|
|
24063
24088
|
if (value == null || typeof value != "object" || Array.isArray(value)) return false;
|
|
24064
24089
|
const trigger = value;
|
|
@@ -24281,4 +24306,4 @@ function codeActions(flow) {
|
|
|
24281
24306
|
return Object.values(flow.graph.nodes).flatMap((node) => node.kind == "task" && "moduleId" in node.task ? node.task.capabilities ?? [] : []);
|
|
24282
24307
|
}
|
|
24283
24308
|
//#endregion
|
|
24284
|
-
export { agentActions, agentInput, agentToolInput, agentToolSchema, availableOutputs, codeActions, connectionUsage, createRuntimeProgram, flowClosure, flowDependencies, graphOrder, matchesSchema, matchesTriggerOutputs, nodeInputPorts, prepareFlow, removeConnectionUsage, renderPrompt, schemaValidationErrors, triggerOutputDefinitions, triggerOutputPorts, validRunTrigger, validateFlow, validateFlowInputs, validateModules, variableBindings, variableInputCompatible };
|
|
24309
|
+
export { agentActions, agentInput, agentToolInput, agentToolSchema, availableOutputs, codeActions, connectionUsage, createRuntimeProgram, flowClosure, flowDependencies, flowResourceReferences, graphOrder, matchesSchema, matchesTriggerOutputs, nodeInputPorts, prepareFlow, removeConnectionUsage, renderPrompt, schemaValidationErrors, triggerOutputDefinitions, triggerOutputPorts, validRunTrigger, validateFlow, validateFlowInputs, validateModules, variableBindings, variableInputCompatible };
|
|
@@ -6801,7 +6801,7 @@ var decisionQuestion = discriminatedUnion("type", [
|
|
|
6801
6801
|
criteria: strings
|
|
6802
6802
|
})
|
|
6803
6803
|
]);
|
|
6804
|
-
var
|
|
6804
|
+
var managedFields = object({
|
|
6805
6805
|
...ports,
|
|
6806
6806
|
name: text,
|
|
6807
6807
|
executor: union([
|
|
@@ -6860,7 +6860,8 @@ var managed = object({
|
|
|
6860
6860
|
}).optional()
|
|
6861
6861
|
})
|
|
6862
6862
|
])
|
|
6863
|
-
})
|
|
6863
|
+
});
|
|
6864
|
+
var managed = managedFields.transform(limitDecisionTask);
|
|
6864
6865
|
var operand = union([object({
|
|
6865
6866
|
kind: literal("value"),
|
|
6866
6867
|
value: json.optional(),
|
|
@@ -7035,6 +7036,10 @@ var node = union([
|
|
|
7035
7036
|
})
|
|
7036
7037
|
})
|
|
7037
7038
|
]);
|
|
7039
|
+
strictObject(condition), strictObject(wait), strictObject(webhook), managedFields.shape.executor.options[0].omit({ kind: true }).strict(), managedFields.shape.executor.options[1].omit({ kind: true }).strict(), managedFields.shape.executor.options[2].omit({ kind: true }).strict(), managedFields.shape.executor.options[3].omit({ kind: true }).strict(), managedFields.shape.executor.options[4].omit({
|
|
7040
|
+
kind: true,
|
|
7041
|
+
notification: true
|
|
7042
|
+
}).strict();
|
|
7038
7043
|
var edge = object({
|
|
7039
7044
|
source: text,
|
|
7040
7045
|
target: text,
|
|
@@ -7114,6 +7119,11 @@ var shapes = {
|
|
|
7114
7119
|
...at,
|
|
7115
7120
|
node
|
|
7116
7121
|
},
|
|
7122
|
+
"graph.node.replace": {
|
|
7123
|
+
...at,
|
|
7124
|
+
before: node,
|
|
7125
|
+
node
|
|
7126
|
+
},
|
|
7117
7127
|
"graph.node.delete": at,
|
|
7118
7128
|
"graph.node.field.set": union([
|
|
7119
7129
|
object({
|