@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { changeOperationsSchema, decodeChangeOperations } from './flow-change-schema.js';
|
|
1
2
|
export type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
|
|
2
3
|
readonly [key: string]: JsonValue;
|
|
3
4
|
};
|
|
@@ -48,7 +49,6 @@ export interface OutputMapping {
|
|
|
48
49
|
readonly sources: readonly (FlowSource | NodeSource)[];
|
|
49
50
|
}
|
|
50
51
|
interface GraphNodeBase {
|
|
51
|
-
readonly concurrency: number;
|
|
52
52
|
readonly description?: string;
|
|
53
53
|
readonly icon?: string;
|
|
54
54
|
readonly inputs: Readonly<Record<string, InputMapping>>;
|
|
@@ -103,9 +103,14 @@ export type ManagedTaskExecutor = {
|
|
|
103
103
|
};
|
|
104
104
|
export interface ConnectorCapability {
|
|
105
105
|
readonly action: string;
|
|
106
|
-
readonly
|
|
106
|
+
readonly connections: readonly {
|
|
107
|
+
readonly connectionId: string;
|
|
108
|
+
readonly alias?: string;
|
|
109
|
+
}[];
|
|
110
|
+
readonly connectionId?: string;
|
|
107
111
|
readonly kind: 'connector';
|
|
108
112
|
}
|
|
113
|
+
export declare function decodeConnectorCapabilities(value: unknown): readonly ConnectorCapability[];
|
|
109
114
|
interface TaskDefinitionBase {
|
|
110
115
|
readonly inputs: readonly (InputPort | Group)[];
|
|
111
116
|
readonly name: string;
|
|
@@ -131,6 +136,7 @@ export type TaskNode = GraphNodeBase & {
|
|
|
131
136
|
readonly taskId: string;
|
|
132
137
|
});
|
|
133
138
|
export interface Graph {
|
|
139
|
+
readonly edges: readonly GraphEdge[];
|
|
134
140
|
readonly nodes: Readonly<Record<string, GraphNode>>;
|
|
135
141
|
}
|
|
136
142
|
export type TriggerSchedule = {
|
|
@@ -185,6 +191,8 @@ interface TriggerNodeBase {
|
|
|
185
191
|
readonly name: string;
|
|
186
192
|
}
|
|
187
193
|
export type TriggerNode = (TriggerNodeBase & {
|
|
194
|
+
readonly kind: 'manual';
|
|
195
|
+
}) | (TriggerNodeBase & {
|
|
188
196
|
readonly inputsDef: readonly WebhookInputDefinition[];
|
|
189
197
|
readonly kind: 'webhook';
|
|
190
198
|
readonly options?: WebhookOptions;
|
|
@@ -240,11 +248,19 @@ export type GraphTarget = {
|
|
|
240
248
|
};
|
|
241
249
|
export interface GraphEdge {
|
|
242
250
|
readonly source: string;
|
|
243
|
-
readonly sourceHandle
|
|
251
|
+
readonly sourceHandle?: string;
|
|
244
252
|
readonly target: string;
|
|
245
|
-
readonly targetHandle: string;
|
|
246
253
|
}
|
|
254
|
+
export declare function normalizeNodeName(value: string): string;
|
|
255
|
+
export declare function nextNodeName(value: string, names: Iterable<string>): string;
|
|
256
|
+
export declare function nodeNameIssue(graph: Graph, nodeId: string, value: string): 'duplicate' | 'empty' | undefined;
|
|
247
257
|
export type ChangeOperation = {
|
|
258
|
+
readonly before?: readonly ConnectorCapability[];
|
|
259
|
+
readonly kind: 'graph.node.task.capabilities.set';
|
|
260
|
+
readonly nodeId: string;
|
|
261
|
+
readonly target: GraphTarget;
|
|
262
|
+
readonly value?: readonly ConnectorCapability[];
|
|
263
|
+
} | {
|
|
248
264
|
readonly binding: FlowDocument['bindings'][string];
|
|
249
265
|
readonly bindingId: string;
|
|
250
266
|
readonly kind: 'binding.create';
|
|
@@ -257,12 +273,10 @@ export type ChangeOperation = {
|
|
|
257
273
|
readonly kind: 'binding.target.set';
|
|
258
274
|
readonly value: string;
|
|
259
275
|
} | {
|
|
260
|
-
readonly before?: InputMapping;
|
|
261
276
|
readonly kind: 'graph.edge.connect';
|
|
262
277
|
readonly edge: GraphEdge;
|
|
263
278
|
readonly target: GraphTarget;
|
|
264
279
|
} | {
|
|
265
|
-
readonly before?: InputMapping;
|
|
266
280
|
readonly kind: 'graph.edge.disconnect';
|
|
267
281
|
readonly edge: GraphEdge;
|
|
268
282
|
readonly target: GraphTarget;
|
|
@@ -289,7 +303,7 @@ export type ChangeOperation = {
|
|
|
289
303
|
readonly target: GraphTarget;
|
|
290
304
|
} | {
|
|
291
305
|
readonly before?: number | string;
|
|
292
|
-
readonly field: '
|
|
306
|
+
readonly field: 'description' | 'icon' | 'name' | 'timeoutMs';
|
|
293
307
|
readonly kind: 'graph.node.field.set';
|
|
294
308
|
readonly nodeId: string;
|
|
295
309
|
readonly target: GraphTarget;
|
|
@@ -408,4 +422,3 @@ export declare class FlowChangeError extends Error {
|
|
|
408
422
|
constructor(message: string);
|
|
409
423
|
}
|
|
410
424
|
export declare function applyFlowChanges(content: RevisionContent, operations: readonly ChangeOperation[]): RevisionContent;
|
|
411
|
-
export {};
|