@oomol-lab/open-flow 0.1.0-beta.10 → 0.1.0-beta.12
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-2pESP2wA.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-BPZ0P6x4.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 +5032 -275
- package/dist/browser/flow-change-schema.d.ts +6 -0
- package/dist/browser/flow-change.d.ts +21 -8
- package/dist/browser/flow-change.js +5048 -155
- package/dist/browser/{flowChanges-B2ttnaj9.js → flowChanges-CHPdBmZb.js} +4433 -3786
- package/dist/browser/{flowRunInputEditorStore-DDidwd8h.js → flowRunInputEditorStore-NPGePkvP.js} +679 -689
- package/dist/browser/flowWorkspace-BLGcgnHj.js +158418 -0
- package/dist/browser/{getPseudoElementBounds-5LArT6Xc.js → getPseudoElementBounds-Dfqo78k7.js} +691 -687
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +33 -0
- 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-Dn3vpjGC.js +6872 -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-BFbQUOyp.js +29 -0
- package/dist/browser/workbench-contract.d.ts +8 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +1277 -1021
- package/dist/browser/workbenchSelect-DzF8oik9.js +435 -0
- package/dist/common/control-api-conformance.d.ts +6 -0
- package/dist/common/control-api-conformance.js +300 -85
- package/dist/common/control-api.d.ts +37 -10
- package/dist/common/control-api.js +5199 -437
- package/dist/common/control-requests.d.ts +68 -0
- package/dist/common/control-requests.js +4913 -0
- package/dist/common/engine-contract.d.ts +1 -1
- package/dist/common/flow-encoding.d.ts +3 -1
- package/dist/common/flow-encoding.js +4761 -63
- package/dist/common/flow-graph.d.ts +6 -0
- package/dist/common/flow-json.d.ts +2 -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 +14641 -9800
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/mcp-conformance.d.ts +2 -0
- package/dist/common/mcp.d.ts +545 -0
- package/dist/common/mcp.js +4964 -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 +7241 -428
- package/dist/index.d.ts +5 -5
- package/package.json +13 -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
|
@@ -6,6 +6,11 @@ export { controlErrorCode, controlErrorMetadata, type ControlErrorCode } from '.
|
|
|
6
6
|
export type { FlowCatalogEvent, FlowChangeEvent } from './flow-notifications.js';
|
|
7
7
|
export type ControlRequest = (path: string, init?: RequestInit) => Promise<Response>;
|
|
8
8
|
export interface Flow {
|
|
9
|
+
readonly live?: {
|
|
10
|
+
readonly enabled: boolean;
|
|
11
|
+
readonly publicationId: string;
|
|
12
|
+
readonly revisionId: string;
|
|
13
|
+
};
|
|
9
14
|
readonly createdAt: string;
|
|
10
15
|
readonly draftRevisionId: string;
|
|
11
16
|
readonly flowId: string;
|
|
@@ -14,6 +19,12 @@ export interface Flow {
|
|
|
14
19
|
readonly updatedAt: string;
|
|
15
20
|
readonly version: 1;
|
|
16
21
|
}
|
|
22
|
+
export interface Presentation {
|
|
23
|
+
readonly revision: number;
|
|
24
|
+
readonly updatedAt: string;
|
|
25
|
+
readonly value: Readonly<Record<string, JsonValue>>;
|
|
26
|
+
readonly version: 1;
|
|
27
|
+
}
|
|
17
28
|
export interface FlowPage {
|
|
18
29
|
readonly flows: readonly Flow[];
|
|
19
30
|
readonly nextCursor?: string;
|
|
@@ -72,6 +83,7 @@ export interface PollTriggerTestResult {
|
|
|
72
83
|
readonly version: 1;
|
|
73
84
|
}
|
|
74
85
|
export interface ConnectorConnection {
|
|
86
|
+
readonly alias?: string;
|
|
75
87
|
readonly connectionId: string;
|
|
76
88
|
readonly displayName: string;
|
|
77
89
|
readonly isDefault: boolean;
|
|
@@ -79,6 +91,8 @@ export interface ConnectorConnection {
|
|
|
79
91
|
readonly status: 'active' | 'disconnected' | 'error' | 'reauth_required';
|
|
80
92
|
}
|
|
81
93
|
export interface ConnectorAction {
|
|
94
|
+
readonly inputSchema?: JsonValue;
|
|
95
|
+
readonly outputSchema?: JsonValue;
|
|
82
96
|
readonly actionId: string;
|
|
83
97
|
readonly authenticated: boolean;
|
|
84
98
|
readonly defaultConnection?: ConnectorConnection;
|
|
@@ -244,7 +258,7 @@ export interface RunPage {
|
|
|
244
258
|
readonly runs: readonly Run[];
|
|
245
259
|
readonly version: 1;
|
|
246
260
|
}
|
|
247
|
-
export type RunEventKind = 'node.artifact' | 'node.completed' | 'node.failed' | 'node.log' | 'node.
|
|
261
|
+
export type RunEventKind = 'node.artifact' | 'node.completed' | 'node.failed' | 'node.log' | 'node.progress' | 'node.started' | 'run.canceled' | 'run.completed' | 'run.events-truncated' | 'run.failed' | 'run.indeterminate' | 'run.progress' | 'run.queued' | 'run.resolved' | 'run.started' | 'run.waiting';
|
|
248
262
|
export interface RunEvent {
|
|
249
263
|
readonly createdAt: string;
|
|
250
264
|
readonly kind: RunEventKind;
|
|
@@ -289,6 +303,10 @@ export type RunResult = {
|
|
|
289
303
|
readonly version: 1;
|
|
290
304
|
};
|
|
291
305
|
interface RunOptions {
|
|
306
|
+
readonly trigger: {
|
|
307
|
+
readonly nodeId: string;
|
|
308
|
+
readonly payload: JsonValue;
|
|
309
|
+
};
|
|
292
310
|
readonly idempotencyKey?: string;
|
|
293
311
|
readonly inputs?: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
|
|
294
312
|
}
|
|
@@ -322,7 +340,7 @@ export declare class ControlClient {
|
|
|
322
340
|
listTriggerKeys(signal?: AbortSignal): Promise<readonly TriggerKeySummary[]>;
|
|
323
341
|
listTriggerDefinitions(signal?: AbortSignal): Promise<readonly TriggerKeySnapshot[]>;
|
|
324
342
|
getTriggerKey(key: string, signal?: AbortSignal): Promise<TriggerKeySnapshot>;
|
|
325
|
-
listFlowTriggerBindings(flowId: string): Promise<readonly TriggerBinding[]>;
|
|
343
|
+
listFlowTriggerBindings(flowId: string, signal?: AbortSignal): Promise<readonly TriggerBinding[]>;
|
|
326
344
|
getFlowTriggerBinding(flowId: string, triggerNodeId: string): Promise<TriggerBindingDetail>;
|
|
327
345
|
listFlowTriggerActivities(flowId: string, triggerNodeId: string, options?: {
|
|
328
346
|
readonly cursor?: string;
|
|
@@ -331,6 +349,14 @@ export declare class ControlClient {
|
|
|
331
349
|
pauseFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
332
350
|
resumeFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
|
|
333
351
|
testFlowPollTrigger(flowId: string, triggerNodeId: string): Promise<PollTriggerTestResult>;
|
|
352
|
+
getEditor(flowId: string): Promise<{
|
|
353
|
+
readonly flow: Flow;
|
|
354
|
+
readonly draft: Draft;
|
|
355
|
+
readonly live: Live;
|
|
356
|
+
readonly presentation: Presentation;
|
|
357
|
+
readonly version: 1;
|
|
358
|
+
}>;
|
|
359
|
+
getPresentation(flowId: string): Promise<Presentation>;
|
|
334
360
|
getDraft(flowId: string): Promise<Draft>;
|
|
335
361
|
syncDraft(flowId: string): Promise<DraftSync>;
|
|
336
362
|
getRevision(flowId: string, revisionId: string): Promise<Draft>;
|
|
@@ -342,18 +368,19 @@ export declare class ControlClient {
|
|
|
342
368
|
createConnectorConnectionPage(serviceId: string, flowId?: string): Promise<string>;
|
|
343
369
|
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly ChangeOperation[], changeId?: string): Promise<DraftChange>;
|
|
344
370
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
345
|
-
getLive(flowId: string): Promise<Live>;
|
|
371
|
+
getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
|
|
346
372
|
listPublications(flowId: string, options?: {
|
|
347
373
|
readonly cursor?: string;
|
|
348
374
|
readonly includeTotal?: boolean;
|
|
349
375
|
readonly limit?: number;
|
|
350
|
-
}): Promise<PublicationPage>;
|
|
351
|
-
createDraftRun(flowId: string, revisionId: string, options
|
|
352
|
-
createLiveRun(publicationId: string, options
|
|
376
|
+
}, signal?: AbortSignal): Promise<PublicationPage>;
|
|
377
|
+
createDraftRun(flowId: string, revisionId: string, options: RunOptions): Promise<DraftRun>;
|
|
378
|
+
createLiveRun(publicationId: string, options: RunOptions): Promise<LiveRun>;
|
|
379
|
+
setFlowEnabled(flowId: string, publicationId: string, enabled: boolean): Promise<Flow>;
|
|
353
380
|
publishFlow(flowId: string, revisionId: string, expectedLivePublicationId: string | null, options?: PublicationOptions): Promise<PublishOperation>;
|
|
354
|
-
getPublishOperation(flowId: string, operationId: string): Promise<PublishOperation>;
|
|
381
|
+
getPublishOperation(flowId: string, operationId: string, signal?: AbortSignal): Promise<PublishOperation>;
|
|
355
382
|
rollbackFlow(flowId: string, publicationId: string, expectedLivePublicationId: string, options?: PublicationOptions): Promise<Publication>;
|
|
356
|
-
getRun(runId: string): Promise<RunDetails>;
|
|
383
|
+
getRun(runId: string, signal?: AbortSignal): Promise<RunDetails>;
|
|
357
384
|
listRuns(flowId: string, options?: {
|
|
358
385
|
readonly cursor?: string;
|
|
359
386
|
readonly limit?: number;
|
|
@@ -362,8 +389,8 @@ export declare class ControlClient {
|
|
|
362
389
|
getRunEvents(runId: string, options?: {
|
|
363
390
|
readonly after?: number;
|
|
364
391
|
readonly limit?: number;
|
|
365
|
-
}): Promise<RunEvents>;
|
|
366
|
-
getRunResult(runId: string): Promise<RunResult>;
|
|
392
|
+
}, signal?: AbortSignal): Promise<RunEvents>;
|
|
393
|
+
getRunResult(runId: string, signal?: AbortSignal): Promise<RunResult>;
|
|
367
394
|
cancelRun(runId: string): Promise<RunCancellation>;
|
|
368
395
|
resolveRunWait(runId: string, waitId: string, action: WaitAction): Promise<{
|
|
369
396
|
readonly action: WaitAction | null;
|