@oomol-lab/open-flow 0.1.0-beta.65 → 0.1.0-beta.67
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-BAJXbzNH.js → createResourceDialog-BQVD8Rqb.js} +2 -2
- package/dist/browser/{icons-Db2Jb2iX.js → dialog-CS2Vt2if.js} +5736 -5621
- package/dist/browser/event-sources.d.ts +4 -1
- package/dist/browser/flow-authoring-node.d.ts +14 -3
- package/dist/browser/flow-authoring.js +120 -24
- package/dist/browser/flow-change-schema.d.ts +3 -1
- package/dist/browser/flow-change.d.ts +15 -3
- package/dist/browser/flow-change.js +117 -21
- package/dist/browser/{flowChanges-DkvG5uDq.js → flowChanges-VB9Y4iy7.js} +3423 -2380
- package/dist/browser/{flowRunInputEditorStore-B2Rw4VsT.js → flowRunInputEditorStore-DJqmR6Qh.js} +3 -2
- package/dist/browser/{flowWorkspace-BEp-lxqF.js → flowWorkspace-C1hlTnZq.js} +1410 -799
- package/dist/browser/preview.css +273 -119
- package/dist/browser/preview.js +17118 -15810
- package/dist/browser/theme.css +1 -0
- package/dist/browser/ui.css +119 -7
- package/dist/browser/ui.js +8 -5
- package/dist/browser/workbench-contract.d.ts +1 -1
- package/dist/browser/workbench.css +282 -162
- package/dist/browser/workbench.d.ts +0 -1
- package/dist/browser/workbench.js +503 -173
- package/dist/browser/{workbenchSelect-C-jf6NIM.js → workbenchSelect-CpXhjUou.js} +1 -1
- package/dist/command/index.js +49 -49
- package/dist/common/authoring.d.ts +7 -5
- package/dist/common/authoringExamples.d.ts +4 -4
- package/dist/common/authoringFields.d.ts +20 -0
- package/dist/common/authoringSchema.d.ts +404 -15
- package/dist/common/control-api-conformance.js +415 -146
- package/dist/common/control-api.d.ts +67 -8
- package/dist/common/control-api.js +3587 -3443
- package/dist/common/control-requests.d.ts +10 -3
- package/dist/common/control-requests.js +425 -49
- package/dist/common/decision.js +33 -7
- package/dist/common/flow-encoding.d.ts +4 -2
- package/dist/common/flow-encoding.js +151 -14
- package/dist/common/flow-graph.d.ts +1 -1
- package/dist/common/flow-semantics.d.ts +12 -2
- package/dist/common/flow-semantics.js +157 -41
- package/dist/common/integration-trigger.js +33 -7
- package/dist/common/liveDetails.d.ts +26 -11
- package/dist/common/mcp.d.ts +6 -3
- package/dist/common/mcp.js +219 -90
- package/dist/common/openapi.js +33 -7
- package/dist/common/poll-trigger.js +33 -7
- package/dist/common/run-events.d.ts +2 -0
- package/dist/common/run-events.js +9 -3
- package/dist/common/scheduler.d.ts +10 -1
- package/dist/common/scheduler.js +172 -49
- package/dist/common/trigger-contract.d.ts +2 -0
- package/dist/common/webhook-trigger.js +33 -7
- package/dist/common/workflow.d.ts +93 -0
- package/dist/common/workflow.js +10492 -0
- package/package.json +5 -1
- package/skills/open-flow/SKILL.md +9 -0
- package/skills/open-flow/references/flow-authoring.md +28 -16
|
@@ -2,6 +2,7 @@ import type { CanvasCommand } from './canvas-commands.js';
|
|
|
2
2
|
export type { CanvasCommand, CanvasCommandSubscriber } from './canvas-commands.js';
|
|
3
3
|
import type { LiveDetails } from './liveDetails.js';
|
|
4
4
|
export { liveEntries } from './liveDetails.js';
|
|
5
|
+
export { flowInputDefinitions } from './authoringFields.js';
|
|
5
6
|
export type { LiveDetails, LiveEntry } from './liveDetails.js';
|
|
6
7
|
import type { AuthoringRead, AuthoringSearch, AuthoringRequest, AuthoringType } from './authoringSchema.js';
|
|
7
8
|
import type { ProviderIconAppearance } from './providerIconSprite.js';
|
|
@@ -60,6 +61,7 @@ export interface FlowResources {
|
|
|
60
61
|
export interface Flow {
|
|
61
62
|
readonly live?: {
|
|
62
63
|
readonly enabled: boolean;
|
|
64
|
+
readonly hasStart: boolean;
|
|
63
65
|
readonly publicationId: string;
|
|
64
66
|
readonly revisionId: string;
|
|
65
67
|
};
|
|
@@ -84,8 +86,11 @@ export interface Presentation {
|
|
|
84
86
|
readonly value: Readonly<Record<string, JsonValue>>;
|
|
85
87
|
readonly version: 1;
|
|
86
88
|
}
|
|
89
|
+
export interface FlowListItem extends Flow {
|
|
90
|
+
readonly referenceCount: number;
|
|
91
|
+
}
|
|
87
92
|
export interface FlowPage {
|
|
88
|
-
readonly flows: readonly
|
|
93
|
+
readonly flows: readonly FlowListItem[];
|
|
89
94
|
readonly nextCursor?: string;
|
|
90
95
|
readonly total?: number;
|
|
91
96
|
readonly version: 1;
|
|
@@ -102,11 +107,9 @@ export interface VariableReference {
|
|
|
102
107
|
export interface VariableReferences {
|
|
103
108
|
readonly version: 1;
|
|
104
109
|
readonly references: readonly VariableReference[];
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
readonly scope: 'draft' | 'live';
|
|
109
|
-
}[];
|
|
110
|
+
}
|
|
111
|
+
export interface VariableListItem extends Variable {
|
|
112
|
+
readonly referenceCount: number;
|
|
110
113
|
}
|
|
111
114
|
export interface Variable {
|
|
112
115
|
readonly name: string;
|
|
@@ -409,7 +412,19 @@ export type ErrorDispatch = {
|
|
|
409
412
|
readonly flowId: string;
|
|
410
413
|
readonly message: string;
|
|
411
414
|
};
|
|
415
|
+
export interface WorkflowCaller {
|
|
416
|
+
readonly flowId: string;
|
|
417
|
+
readonly runId: string;
|
|
418
|
+
readonly nodeId: string;
|
|
419
|
+
readonly executionId: string;
|
|
420
|
+
}
|
|
421
|
+
export interface WorkflowRunCall extends WorkflowCaller {
|
|
422
|
+
readonly status: RunStatus | null;
|
|
423
|
+
}
|
|
412
424
|
type RunDetailsBase = Run & {
|
|
425
|
+
readonly caller?: WorkflowCaller;
|
|
426
|
+
readonly calls?: readonly WorkflowRunCall[];
|
|
427
|
+
readonly triggerNodeId?: string;
|
|
413
428
|
readonly errorDispatches?: readonly ErrorDispatch[];
|
|
414
429
|
readonly errorSource?: {
|
|
415
430
|
readonly flowId: string;
|
|
@@ -779,6 +794,7 @@ export declare class ControlClient {
|
|
|
779
794
|
readonly cursor?: string;
|
|
780
795
|
readonly includeTotal?: boolean;
|
|
781
796
|
readonly limit?: number;
|
|
797
|
+
readonly signal?: AbortSignal;
|
|
782
798
|
}): Promise<FlowPage>;
|
|
783
799
|
listEventSources(flowId?: string, signal?: AbortSignal): Promise<{
|
|
784
800
|
readonly version: 1;
|
|
@@ -790,9 +806,49 @@ export declare class ControlClient {
|
|
|
790
806
|
updateEventSource(sourceId: string, input: UpdateEventSource): Promise<EventSource>;
|
|
791
807
|
deleteEventSource(sourceId: string, expectedRevision: number): Promise<void>;
|
|
792
808
|
listVariables(): Promise<{
|
|
793
|
-
readonly variables: readonly
|
|
809
|
+
readonly variables: readonly VariableListItem[];
|
|
794
810
|
readonly version: 1;
|
|
795
811
|
}>;
|
|
812
|
+
getFlowReferences(flowId: string, options?: {
|
|
813
|
+
direction?: 'incoming' | 'outgoing';
|
|
814
|
+
offset?: number;
|
|
815
|
+
limit?: number;
|
|
816
|
+
signal?: AbortSignal;
|
|
817
|
+
}): Promise<{
|
|
818
|
+
version: 1;
|
|
819
|
+
direction: "incoming" | "outgoing";
|
|
820
|
+
total: number;
|
|
821
|
+
nextOffset?: number | undefined;
|
|
822
|
+
references: {
|
|
823
|
+
flowId: string;
|
|
824
|
+
name: string | null;
|
|
825
|
+
available: boolean;
|
|
826
|
+
draft: boolean;
|
|
827
|
+
live: {
|
|
828
|
+
publicationId: string;
|
|
829
|
+
enabled: boolean;
|
|
830
|
+
} | null;
|
|
831
|
+
}[];
|
|
832
|
+
}>;
|
|
833
|
+
getWorkflowContract(flowId: string, signal?: AbortSignal): Promise<{
|
|
834
|
+
version: 1;
|
|
835
|
+
flowId: string;
|
|
836
|
+
name: string;
|
|
837
|
+
revisionId: string;
|
|
838
|
+
publicationId: string;
|
|
839
|
+
inputs: {
|
|
840
|
+
handle: string;
|
|
841
|
+
jsonSchema: JsonValue;
|
|
842
|
+
nullable: boolean;
|
|
843
|
+
description?: string | undefined;
|
|
844
|
+
}[];
|
|
845
|
+
outputs: {
|
|
846
|
+
handle: string;
|
|
847
|
+
jsonSchema: JsonValue;
|
|
848
|
+
nullable: boolean;
|
|
849
|
+
description?: string | undefined;
|
|
850
|
+
}[] | null;
|
|
851
|
+
}>;
|
|
796
852
|
getVariableReferences(name: string, signal?: AbortSignal): Promise<VariableReferences>;
|
|
797
853
|
getVariable(name: string): Promise<Variable>;
|
|
798
854
|
putVariable(name: string, value: string): Promise<Variable>;
|
|
@@ -876,7 +932,7 @@ export declare class ControlClient {
|
|
|
876
932
|
revision: string;
|
|
877
933
|
data: {
|
|
878
934
|
matches: {
|
|
879
|
-
node
|
|
935
|
+
node?: string | undefined;
|
|
880
936
|
field: string;
|
|
881
937
|
line?: number | undefined;
|
|
882
938
|
excerpt: string;
|
|
@@ -929,6 +985,9 @@ export declare class ControlClient {
|
|
|
929
985
|
}>;
|
|
930
986
|
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly DraftOperation[], changeId?: string): Promise<DraftChange>;
|
|
931
987
|
repairDraft(flowId: string, expectedRevisionId: string, changeId?: string): Promise<DraftChange>;
|
|
988
|
+
upgradeDraft(flowId: string, expectedRevisionId: string, options?: {
|
|
989
|
+
readonly idempotencyKey?: string;
|
|
990
|
+
}): Promise<DraftChange>;
|
|
932
991
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
933
992
|
getLiveDetails(flowId: string, signal?: AbortSignal): Promise<LiveDetails>;
|
|
934
993
|
getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
|