@oomol-lab/open-flow 0.1.0-beta.10 → 0.1.0-beta.11
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/DesignerIcon-ckcKnxxJ.js +2267 -0
- package/dist/browser/createResourceDialog-DhIU-HYW.js +111 -0
- package/dist/browser/{dist-meg_oHVR.js → dist-BZ5PTFAs.js} +335 -335
- package/dist/browser/dist-Bmb2mZvW.js +795 -0
- package/dist/browser/{dist-Cc0y2Pli.js → dist-Ce71Szg7.js} +622 -622
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/{dist-Dg_VXC8f.js → dist-DY4qlXTK.js} +134 -134
- package/dist/browser/{esm-yhVU_KbQ.js → esm-C64_h7HF.js} +59 -59
- package/dist/browser/flow-authoring-node.d.ts +11 -4
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +5018 -275
- package/dist/browser/flow-change-schema.d.ts +3 -0
- package/dist/browser/flow-change.d.ts +21 -8
- package/dist/browser/flow-change.js +5030 -155
- package/dist/browser/{flowChanges-B2ttnaj9.js → flowChanges-BINNGoug.js} +4397 -3766
- package/dist/browser/{flowRunInputEditorStore-DDidwd8h.js → flowRunInputEditorStore-NPGePkvP.js} +679 -689
- package/dist/browser/flowWorkspace-Dp_b8KXF.js +158409 -0
- package/dist/browser/{getPseudoElementBounds-5LArT6Xc.js → getPseudoElementBounds-Dfqo78k7.js} +691 -687
- package/dist/browser/{languages-DgJehE1g.js → languages-i3Xmpt6S.js} +6 -15
- package/dist/browser/licenses.md +82 -0
- package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-BawLYUjh.js} +23 -23
- package/dist/browser/select-CbQHq-GM.js +6851 -0
- package/dist/browser/theme.css +34 -34
- package/dist/browser/{typeScriptSession-_TgJ_7Oq.js → typeScriptSession-BoV-FDl3.js} +257 -257
- package/dist/browser/waitNotificationInputs-fzyKN6mk.js +29 -0
- package/dist/browser/workbench-contract.d.ts +8 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +1256 -1006
- package/dist/browser/workbenchSelect-BjbJjlNd.js +435 -0
- package/dist/common/control-api-conformance.js +234 -85
- package/dist/common/control-api.d.ts +37 -10
- package/dist/common/control-api.js +421 -342
- package/dist/common/engine-contract.d.ts +1 -1
- package/dist/common/flow-encoding.js +9 -7
- package/dist/common/flow-graph.d.ts +6 -0
- package/dist/common/flow-modules.d.ts +20 -0
- package/dist/common/flow-schema.d.ts +8 -0
- package/dist/common/flow-semantics.d.ts +6 -5
- package/dist/common/flow-semantics.js +14651 -9824
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +8 -15
- package/dist/common/runtime-contract.d.ts +9 -1
- package/dist/common/runtime-contract.js +137 -27
- package/dist/common/scheduler.d.ts +11 -33
- package/dist/common/scheduler.js +7227 -428
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
- package/dist/browser/DesignerIcon-DjgOMYI5.js +0 -2065
- package/dist/browser/createResourceDialog-DNBueSYZ.js +0 -505
- package/dist/browser/dist-BMRLCebL.js +0 -1893
- package/dist/browser/flowWorkspace-Dr8-Hut9.js +0 -45541
- package/dist/browser/icons-KIOgjHpD.js +0 -730
- package/dist/browser/waitNotificationInputs-BPulOxYt.js +0 -26
- package/dist/browser/workbenchSelect-CbXrdwxW.js +0 -1375
|
@@ -3,5 +3,5 @@ export interface EngineContract {
|
|
|
3
3
|
readonly platformModule: string;
|
|
4
4
|
readonly platformSource: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const currentEngineContract = "open-flow-engine/
|
|
6
|
+
export declare const currentEngineContract = "open-flow-engine/v2";
|
|
7
7
|
export declare function findEngineContract(contract: string): EngineContract | undefined;
|
|
@@ -58,7 +58,6 @@ function u(e) {
|
|
|
58
58
|
function d(e) {
|
|
59
59
|
if (!("inputs" in e)) return v(e);
|
|
60
60
|
let t = {
|
|
61
|
-
concurrency: e.concurrency,
|
|
62
61
|
...e.description == null ? {} : { description: e.description },
|
|
63
62
|
...e.icon == null ? {} : { icon: e.icon },
|
|
64
63
|
inputs: l(e.inputs),
|
|
@@ -122,7 +121,13 @@ function d(e) {
|
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
function f(e) {
|
|
125
|
-
return {
|
|
124
|
+
return {
|
|
125
|
+
edges: e.edges.map((e) => ({ ...e })).toSorted((e, t) => {
|
|
126
|
+
let r = n(e), i = n(t);
|
|
127
|
+
return r < i ? -1 : +(r > i);
|
|
128
|
+
}),
|
|
129
|
+
nodes: Object.fromEntries(a(e.nodes).map(([e, t]) => [e, d(t)]))
|
|
130
|
+
};
|
|
126
131
|
}
|
|
127
132
|
function p(e) {
|
|
128
133
|
return {
|
|
@@ -134,11 +139,7 @@ function p(e) {
|
|
|
134
139
|
}
|
|
135
140
|
function m(e) {
|
|
136
141
|
return {
|
|
137
|
-
...e.capabilities == null ? {} : { capabilities: e.capabilities
|
|
138
|
-
action: e,
|
|
139
|
-
connectionId: t,
|
|
140
|
-
kind: n
|
|
141
|
-
})) },
|
|
142
|
+
...e.capabilities == null ? {} : { capabilities: e.capabilities },
|
|
142
143
|
inputs: s(e.inputs),
|
|
143
144
|
moduleId: e.moduleId,
|
|
144
145
|
name: e.name,
|
|
@@ -199,6 +200,7 @@ function v(e) {
|
|
|
199
200
|
name: e.name
|
|
200
201
|
});
|
|
201
202
|
switch (e.kind) {
|
|
203
|
+
case "manual": return t(e.kind);
|
|
202
204
|
case "webhook": return {
|
|
203
205
|
...t(e.kind),
|
|
204
206
|
inputsDef: e.inputsDef.map((e) => ({
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FlowDocument, Graph, GraphNode, InputPortDefinition, RevisionContent } from '../browser/flow-change.js';
|
|
2
|
+
import type { Diagnostic, SemanticClosure } from './flow-semantics.js';
|
|
3
|
+
export declare function nodeInputPorts(document: FlowDocument, node: GraphNode): Readonly<Record<string, InputPortDefinition>>;
|
|
4
|
+
export declare function graphOrder(graph: Graph): readonly string[];
|
|
5
|
+
export declare function availableOutputs(document: FlowDocument, graph: Graph, target: string, handle?: string): Readonly<Record<string, readonly string[]>>;
|
|
6
|
+
export declare function validateFlowGraph(revision: RevisionContent, closure: SemanticClosure): readonly Diagnostic[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EngineContract } from './engine-contract.js';
|
|
2
|
+
import type { RevisionContent } from '../browser/flow-change.js';
|
|
3
|
+
import type { Diagnostic } from './flow-semantics.js';
|
|
4
|
+
interface ImportReference {
|
|
5
|
+
readonly column: number;
|
|
6
|
+
readonly imported: readonly string[];
|
|
7
|
+
readonly line: number;
|
|
8
|
+
readonly specifier: string;
|
|
9
|
+
}
|
|
10
|
+
interface ModuleAnalysis {
|
|
11
|
+
readonly exports: ReadonlySet<string>;
|
|
12
|
+
readonly imports: readonly ImportReference[];
|
|
13
|
+
}
|
|
14
|
+
export declare function compareDiagnostics(left: Diagnostic, right: Diagnostic): number;
|
|
15
|
+
export declare function validateModuleGraph(revision: RevisionContent, moduleIds: readonly string[], engine: EngineContract): {
|
|
16
|
+
readonly analysis: ReadonlyMap<string, ModuleAnalysis>;
|
|
17
|
+
readonly diagnostics: Diagnostic[];
|
|
18
|
+
};
|
|
19
|
+
export declare function validateModules(revision: RevisionContent, moduleIds: readonly string[], engine: EngineContract): readonly Diagnostic[];
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { JsonValue, PortDefinition, TriggerNode } from '../browser/flow-change.js';
|
|
2
|
+
export declare function triggerPayloadSchema(trigger: TriggerNode): JsonValue;
|
|
3
|
+
export declare function schemaObject(schema: JsonValue): Readonly<Record<string, JsonValue>> | undefined;
|
|
4
|
+
export declare function schemaList(value: JsonValue | undefined): readonly JsonValue[] | undefined;
|
|
5
|
+
export declare function matchesSchema(value: JsonValue, schema: JsonValue): boolean;
|
|
6
|
+
export declare function portsAssignable(source: PortDefinition, target: PortDefinition): boolean;
|
|
7
|
+
export declare function variableInputCompatible(jsonSchema: JsonValue): boolean;
|
|
8
|
+
export declare function hasRetiredRef(value: unknown): boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type { FlowDocument, Graph, JsonValue, RevisionContent, TriggerNode } from '@oomol-lab/open-flow/flow-change';
|
|
2
1
|
import type { EngineContract } from './engine-contract.js';
|
|
3
2
|
import type { RuntimeProgram } from './runtime-contract.js';
|
|
3
|
+
import type { ConnectorCapability, FlowDocument, Graph, RevisionContent } from '../browser/flow-change.js';
|
|
4
|
+
export { availableOutputs, graphOrder, nodeInputPorts } from './flow-graph.js';
|
|
5
|
+
export { validateModules } from './flow-modules.js';
|
|
6
|
+
export { matchesSchema, triggerPayloadSchema, variableInputCompatible } from './flow-schema.js';
|
|
4
7
|
export interface SemanticClosure {
|
|
5
8
|
readonly dependencies: {
|
|
6
9
|
readonly bindings: ReadonlySet<string>;
|
|
@@ -27,12 +30,9 @@ export interface FlowValidation {
|
|
|
27
30
|
readonly diagnostics: readonly Diagnostic[];
|
|
28
31
|
readonly valid: boolean;
|
|
29
32
|
}
|
|
30
|
-
export declare function triggerPayloadSchema(trigger: TriggerNode): JsonValue;
|
|
31
|
-
export declare function matchesSchema(value: JsonValue, schema: JsonValue): boolean;
|
|
32
|
-
export declare function variableInputCompatible(jsonSchema: JsonValue): boolean;
|
|
33
33
|
export type FlowInputsValidation = 'invalid' | 'valid';
|
|
34
|
+
export declare function validRunTrigger(revision: RevisionContent, value: unknown): boolean;
|
|
34
35
|
export declare function validateFlowInputs(revision: RevisionContent, value: unknown): FlowInputsValidation;
|
|
35
|
-
export declare function validateModules(revision: RevisionContent, moduleIds: readonly string[], engine: EngineContract): readonly Diagnostic[];
|
|
36
36
|
export declare function validateFlow(revision: RevisionContent, engine: EngineContract): Promise<FlowValidation>;
|
|
37
37
|
export interface PreparedFlow {
|
|
38
38
|
readonly closureDigest: string;
|
|
@@ -54,3 +54,4 @@ export type PrepareFlowResult = {
|
|
|
54
54
|
};
|
|
55
55
|
export declare function prepareFlow(revision: RevisionContent, engineContract: string): Promise<PrepareFlowResult>;
|
|
56
56
|
export declare function createRuntimeProgram(prepared: PreparedFlow, entryModuleId: string, engineDigest: string): RuntimeProgram | undefined;
|
|
57
|
+
export declare function codeActions(flow: Pick<PreparedFlow, 'graph' | 'subflows'>): readonly ConnectorCapability[];
|