@oomol-lab/open-flow 0.1.0-beta.25 → 0.1.0-beta.26
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-DNgEsFmG.js → createResourceDialog-BwI2JmPE.js} +1 -1
- package/dist/browser/flow-change.d.ts +14 -0
- package/dist/browser/flow-change.js +38 -17
- package/dist/browser/{flowChanges-CfvUDu1U.js → flowChanges-BqPtWEI9.js} +2209 -2290
- package/dist/browser/{flowWorkspace-BsMrs6KT.js → flowWorkspace-CpMGzmfz.js} +31856 -31817
- package/dist/browser/{inputValues-BXC9GGGa.js → inputValues-CeeJw_G8.js} +1 -1
- package/dist/browser/{switch-Db5aHXHa.js → switch-CyZ96-UF.js} +835 -512
- package/dist/browser/theme.css +22 -0
- package/dist/browser/ui.css +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +340 -340
- package/dist/browser/{workbenchSelect-CXeaZhuN.js → workbenchSelect-BUu7CjUA.js} +127 -104
- package/dist/common/control-api-conformance.js +1 -1
- package/dist/common/control-api.d.ts +2 -0
- package/dist/common/control-api.js +1783 -1742
- package/dist/common/engine-contract.d.ts +2 -2
- package/dist/common/flow-graph.d.ts +25 -3
- package/dist/common/flow-schema.d.ts +11 -1
- package/dist/common/flow-semantics.d.ts +2 -1
- package/dist/common/flow-semantics.js +1460 -1374
- package/dist/common/mcp.js +283 -243
- package/dist/common/runtime-contract.d.ts +2 -0
- package/dist/common/runtime-contract.js +96 -32
- package/dist/common/scheduler.js +98 -128
- package/package.json +1 -1
|
@@ -4,6 +4,6 @@ export interface EngineContract {
|
|
|
4
4
|
readonly platformModule: string;
|
|
5
5
|
readonly platformSource: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const currentEngineContract = "open-flow-engine/
|
|
8
|
-
export declare const nodejsEngineContract = "open-flow-engine/
|
|
7
|
+
export declare const currentEngineContract = "open-flow-engine/v4";
|
|
8
|
+
export declare const nodejsEngineContract = "open-flow-engine/v4/nodejs-compat-v1";
|
|
9
9
|
export declare function findEngineContract(contract: string): EngineContract | undefined;
|
|
@@ -1,14 +1,36 @@
|
|
|
1
|
-
import type { FlowDocument, Graph, GraphNode, InputPortDefinition, PortDefinition, RevisionContent } from '../browser/flow-change.js';
|
|
1
|
+
import type { FlowDocument, Graph, GraphNode, InputPortDefinition, PortDefinition, RevisionContent, SchemaMismatch } from '../browser/flow-change.js';
|
|
2
2
|
import type { Diagnostic, SemanticClosure } from './flow-semantics.js';
|
|
3
3
|
export declare function nodeInputPorts(document: FlowDocument, node: GraphNode): Readonly<Record<string, InputPortDefinition>>;
|
|
4
4
|
export declare function waitOutputPorts(node: Extract<GraphNode, {
|
|
5
5
|
readonly kind: 'wait';
|
|
6
6
|
}>): Readonly<Record<string, PortDefinition>>;
|
|
7
7
|
export declare function graphOrder(graph: Graph): readonly string[];
|
|
8
|
+
export type InputSourceCheck = {
|
|
9
|
+
readonly kind: 'available';
|
|
10
|
+
} | {
|
|
11
|
+
readonly kind: 'source-missing';
|
|
12
|
+
} | {
|
|
13
|
+
readonly kind: 'output-missing';
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: 'not-ready';
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: 'schema';
|
|
18
|
+
readonly mismatch: SchemaMismatch;
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'schema-error';
|
|
21
|
+
};
|
|
22
|
+
export interface InputSourcesCheck {
|
|
23
|
+
readonly conflict: boolean;
|
|
24
|
+
readonly sources: readonly InputSourceCheck[];
|
|
25
|
+
}
|
|
8
26
|
/** Check one saved binding without enumerating candidate ports. */
|
|
9
|
-
export declare function
|
|
27
|
+
export declare function checkInputSource(document: FlowDocument, graph: Graph, target: string, handle: string, source: {
|
|
10
28
|
nodeId: string;
|
|
11
29
|
output: string;
|
|
12
|
-
}):
|
|
30
|
+
}): InputSourceCheck;
|
|
31
|
+
export declare function checkInputSources(document: FlowDocument, graph: Graph, target: string, handle: string, sources: readonly {
|
|
32
|
+
readonly nodeId: string;
|
|
33
|
+
readonly output: string;
|
|
34
|
+
}[]): InputSourcesCheck;
|
|
13
35
|
export declare function availableOutputs(document: FlowDocument, graph: Graph, target: string, handle?: string): Readonly<Record<string, readonly string[]>>;
|
|
14
36
|
export declare function validateFlowGraph(revision: RevisionContent, closure: SemanticClosure): readonly Diagnostic[];
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import type { JsonValue, PortDefinition, TriggerNode } from '../browser/flow-change.js';
|
|
1
|
+
import type { JsonValue, PortDefinition, SchemaMismatch, TriggerNode } from '../browser/flow-change.js';
|
|
2
2
|
export declare function triggerPayloadSchema(trigger: TriggerNode): JsonValue;
|
|
3
3
|
export declare function schemaObject(schema: JsonValue): Readonly<Record<string, JsonValue>> | undefined;
|
|
4
4
|
export declare function schemaList(value: JsonValue | undefined): readonly JsonValue[] | undefined;
|
|
5
5
|
export declare function matchesSchema(value: JsonValue, schema: JsonValue): boolean;
|
|
6
|
+
export type PortCompareResult = {
|
|
7
|
+
readonly kind: 'compatible';
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: 'compare-error';
|
|
10
|
+
readonly message: string;
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: 'incompatible';
|
|
13
|
+
readonly mismatch: SchemaMismatch;
|
|
14
|
+
};
|
|
15
|
+
export declare function comparePorts(source: PortDefinition, target: PortDefinition): PortCompareResult;
|
|
6
16
|
export declare function portsAssignable(source: PortDefinition, target: PortDefinition): boolean;
|
|
7
17
|
export declare function variableInputCompatible(jsonSchema: JsonValue): boolean;
|
|
8
18
|
export declare function hasRetiredRef(value: unknown): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EngineContract } from './engine-contract.js';
|
|
2
2
|
import type { RuntimeProgram } from './runtime-contract.js';
|
|
3
|
-
import type { ConnectorCapability, FlowDocument, Graph, RevisionContent } from '../browser/flow-change.js';
|
|
3
|
+
import type { ConnectorCapability, FlowDocument, Graph, RevisionContent, SchemaMismatch } from '../browser/flow-change.js';
|
|
4
4
|
export { availableOutputs, graphOrder, nodeInputPorts } from './flow-graph.js';
|
|
5
5
|
export { validateModules } from './flow-modules.js';
|
|
6
6
|
export { matchesSchema, triggerPayloadSchema, variableInputCompatible } from './flow-schema.js';
|
|
@@ -23,6 +23,7 @@ export interface Diagnostic {
|
|
|
23
23
|
readonly column: number;
|
|
24
24
|
readonly line: number;
|
|
25
25
|
readonly message: string;
|
|
26
|
+
readonly mismatch?: SchemaMismatch;
|
|
26
27
|
readonly path: string;
|
|
27
28
|
readonly values?: Readonly<Record<string, string | number>>;
|
|
28
29
|
}
|