@oomol-lab/open-flow 0.1.0-beta.61 → 0.1.0-beta.63
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-BAJXbzNH.js} +20 -7
- package/dist/browser/flow-authoring.js +8 -7
- package/dist/browser/flow-change-schema.d.ts +1 -0
- package/dist/browser/flow-change.d.ts +1 -0
- package/dist/browser/flow-change.js +8 -7
- package/dist/browser/{flowChanges-DSA0FxxN.js → flowChanges-DpZOQuJE.js} +3001 -2588
- package/dist/browser/{flowRunInputEditorStore-Dsxyfwae.js → flowRunInputEditorStore-B2Rw4VsT.js} +1 -1
- package/dist/browser/{flowWorkspace-0sUJ5JhQ.js → flowWorkspace-B7a5NNA_.js} +217 -83
- package/dist/browser/{icons-DVJvrj1H.js → icons-Db2Jb2iX.js} +2907 -2887
- package/dist/browser/preview.css +5 -6
- package/dist/browser/preview.js +889 -541
- package/dist/browser/{typeScriptSession-fXPMFGjW.js → typeScriptSession-D0bjYDeg.js} +1 -1
- package/dist/browser/ui.css +4 -5
- package/dist/browser/ui.js +2 -2
- package/dist/browser/{value-DL_poNiC.js → value-BADHeZ9I.js} +12 -1
- package/dist/browser/workbench-contract.d.ts +10 -0
- package/dist/browser/workbench.css +9 -26
- package/dist/browser/workbench.d.ts +5 -3
- package/dist/browser/workbench.js +272 -178
- package/dist/browser/{workbenchSelect-cr4-mKq3.js → workbenchSelect-C-jf6NIM.js} +1 -1
- package/dist/command/index.js +45 -44
- package/dist/common/authoring.d.ts +1 -1
- package/dist/common/authoringSchema.d.ts +1 -0
- package/dist/common/connector-action.d.ts +1 -0
- package/dist/common/connector-action.js +15 -12
- package/dist/common/control-api-conformance.js +1371 -1207
- package/dist/common/control-api-errors.d.ts +0 -4
- package/dist/common/control-api.d.ts +18 -11
- package/dist/common/control-api.js +2053 -2274
- package/dist/common/control-requests.d.ts +6 -0
- package/dist/common/control-requests.js +64 -33
- package/dist/common/decision.js +8 -7
- package/dist/common/flow-connectionUsage.d.ts +1 -0
- package/dist/common/flow-encoding.d.ts +1 -0
- package/dist/common/flow-encoding.js +202 -10
- package/dist/common/flow-semantics.js +64 -46
- package/dist/common/flow-workflowFile.d.ts +23 -0
- package/dist/common/integration-trigger.js +8 -7
- package/dist/common/liveDetails.d.ts +138 -0
- package/dist/common/localization.d.ts +1 -0
- package/dist/common/localization.js +12 -1
- package/dist/common/mcp.d.ts +55 -26
- package/dist/common/mcp.js +377 -245
- package/dist/common/openapi.js +8 -7
- package/dist/common/poll-trigger.js +8 -7
- package/dist/common/runtime-contract.js +1 -1
- package/dist/common/scheduler.d.ts +22 -2
- package/dist/common/scheduler.js +354 -83
- package/dist/common/trigger-config.d.ts +2 -0
- package/dist/common/webhook-trigger.js +8 -7
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/skills/open-flow/SKILL.md +6 -3
- package/skills/open-flow/references/flow-authoring.md +48 -24
- package/dist/common/publicationResources.d.ts +0 -29
|
@@ -71,7 +71,6 @@ export declare function authoringNode(content: RevisionContent, ref: string): {
|
|
|
71
71
|
})[];
|
|
72
72
|
};
|
|
73
73
|
export declare function readAuthoring(content: RevisionContent, query?: AuthoringRead): {
|
|
74
|
-
nodes?: undefined;
|
|
75
74
|
text: {
|
|
76
75
|
node: string;
|
|
77
76
|
field: "code" | "prompt";
|
|
@@ -82,6 +81,7 @@ export declare function readAuthoring(content: RevisionContent, query?: Authorin
|
|
|
82
81
|
nextStart?: number | undefined;
|
|
83
82
|
truncated: boolean;
|
|
84
83
|
};
|
|
84
|
+
nodes?: undefined;
|
|
85
85
|
edges?: undefined;
|
|
86
86
|
} | {
|
|
87
87
|
text?: undefined;
|
|
@@ -209,6 +209,7 @@ export declare const authoringConfigurations: {
|
|
|
209
209
|
notification: z.ZodOptional<z.ZodObject<{
|
|
210
210
|
action: z.ZodString;
|
|
211
211
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
212
|
+
outputMode: z.ZodOptional<z.ZodLiteral<"value">>;
|
|
212
213
|
messageHandle: z.ZodString;
|
|
213
214
|
inputs: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
214
215
|
kind: z.ZodLiteral<"value">;
|
|
@@ -24,3 +24,4 @@ export interface ConnectorRuntimeInputPort {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function connectorActionPorts(inputSchema: unknown, outputSchema: unknown): ConnectorActionPorts;
|
|
26
26
|
export declare function normalizeConnectorRuntimeInputs<Value>(ports: readonly ConnectorRuntimeInputPort[], inputs: Readonly<Record<string, Value>>): Readonly<Record<string, Value>>;
|
|
27
|
+
export declare function connectorOutputMode(schema: unknown): 'fields' | 'value';
|
|
@@ -43,24 +43,27 @@ function inputPorts(schema) {
|
|
|
43
43
|
};
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function connectorOutputMode(schema) {
|
|
47
47
|
const root = toPlainObject(schema);
|
|
48
48
|
const properties = toPlainObject(root?.properties);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
handle,
|
|
55
|
-
json_schema: propertySchemaWithDefinitions(root, propertySchema),
|
|
56
|
-
nullable: !required.has(handle) || schemaAllowsNull(propertySchema, root)
|
|
57
|
-
}));
|
|
58
|
-
} else return [{
|
|
49
|
+
return properties != null && Object.keys(properties).length > 0 || root?.type == "object" && root.additionalProperties === false ? "fields" : "value";
|
|
50
|
+
}
|
|
51
|
+
function outputPorts(schema) {
|
|
52
|
+
const root = toPlainObject(schema);
|
|
53
|
+
if (connectorOutputMode(schema) == "value") return [{
|
|
59
54
|
description: schemaDescription(root, schema),
|
|
60
55
|
handle: "output",
|
|
61
56
|
json_schema: schema,
|
|
62
57
|
nullable: schemaAllowsNull(schema)
|
|
63
58
|
}];
|
|
59
|
+
const properties = toPlainObject(root?.properties) ?? {};
|
|
60
|
+
const required = stringSet(root?.required);
|
|
61
|
+
return Object.entries(properties).map(([handle, propertySchema]) => ({
|
|
62
|
+
description: schemaDescription(root, propertySchema),
|
|
63
|
+
handle,
|
|
64
|
+
json_schema: propertySchemaWithDefinitions(root, propertySchema),
|
|
65
|
+
nullable: !required.has(handle) || schemaAllowsNull(propertySchema, root)
|
|
66
|
+
}));
|
|
64
67
|
}
|
|
65
68
|
function propertySchemaWithDefinitions(root, schema) {
|
|
66
69
|
const property = toPlainObject(schema);
|
|
@@ -124,4 +127,4 @@ function resolveLocalReference(root, reference) {
|
|
|
124
127
|
return current;
|
|
125
128
|
}
|
|
126
129
|
//#endregion
|
|
127
|
-
export { connectorActionPorts, normalizeConnectorRuntimeInputs };
|
|
130
|
+
export { connectorActionPorts, connectorOutputMode, normalizeConnectorRuntimeInputs };
|