@oomol-lab/open-flow 0.1.0-beta.65 → 0.1.0-beta.66
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-C-Si_cYs.js} +2 -2
- package/dist/browser/flow-authoring-node.d.ts +12 -3
- package/dist/browser/flow-authoring.js +114 -19
- 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 +111 -16
- package/dist/browser/{flowChanges-DkvG5uDq.js → flowChanges-T4_R5p1f.js} +2654 -1858
- package/dist/browser/{flowRunInputEditorStore-B2Rw4VsT.js → flowRunInputEditorStore-DJqmR6Qh.js} +3 -2
- package/dist/browser/{flowWorkspace-BEp-lxqF.js → flowWorkspace-C0J5C0oM.js} +700 -224
- package/dist/browser/{icons-Db2Jb2iX.js → icons-BD3m0RQq.js} +4484 -4370
- package/dist/browser/preview.css +152 -64
- package/dist/browser/preview.js +4460 -3412
- package/dist/browser/ui.css +85 -3
- package/dist/browser/ui.js +8 -5
- package/dist/browser/workbench.css +152 -64
- package/dist/browser/workbench.js +146 -57
- package/dist/browser/{workbenchSelect-C-jf6NIM.js → workbenchSelect-B-PFpF_Q.js} +1 -1
- package/dist/command/index.js +49 -49
- package/dist/common/authoring.d.ts +7 -5
- package/dist/common/authoringExamples.d.ts +3 -3
- package/dist/common/authoringFields.d.ts +20 -0
- package/dist/common/authoringSchema.d.ts +404 -15
- package/dist/common/control-api-conformance.js +384 -137
- package/dist/common/control-api.d.ts +63 -7
- package/dist/common/control-api.js +3562 -3428
- package/dist/common/control-requests.d.ts +10 -3
- package/dist/common/control-requests.js +418 -43
- package/dist/common/decision.js +28 -3
- package/dist/common/flow-encoding.d.ts +4 -2
- package/dist/common/flow-encoding.js +144 -10
- package/dist/common/flow-graph.d.ts +1 -1
- package/dist/common/flow-semantics.d.ts +12 -2
- package/dist/common/flow-semantics.js +146 -33
- package/dist/common/integration-trigger.js +28 -3
- package/dist/common/liveDetails.d.ts +26 -11
- package/dist/common/mcp.d.ts +6 -3
- package/dist/common/mcp.js +203 -84
- package/dist/common/openapi.js +28 -3
- package/dist/common/poll-trigger.js +28 -3
- 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 +167 -45
- package/dist/common/trigger-contract.d.ts +2 -0
- package/dist/common/webhook-trigger.js +28 -3
- package/dist/common/workflow.d.ts +93 -0
- package/dist/common/workflow.js +10491 -0
- package/package.json +5 -1
- package/skills/open-flow/references/flow-authoring.md +26 -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
|
};
|
|
@@ -102,11 +104,9 @@ export interface VariableReference {
|
|
|
102
104
|
export interface VariableReferences {
|
|
103
105
|
readonly version: 1;
|
|
104
106
|
readonly references: readonly VariableReference[];
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
readonly scope: 'draft' | 'live';
|
|
109
|
-
}[];
|
|
107
|
+
}
|
|
108
|
+
export interface VariableListItem extends Variable {
|
|
109
|
+
readonly referenceCount: number;
|
|
110
110
|
}
|
|
111
111
|
export interface Variable {
|
|
112
112
|
readonly name: string;
|
|
@@ -409,7 +409,19 @@ export type ErrorDispatch = {
|
|
|
409
409
|
readonly flowId: string;
|
|
410
410
|
readonly message: string;
|
|
411
411
|
};
|
|
412
|
+
export interface WorkflowCaller {
|
|
413
|
+
readonly flowId: string;
|
|
414
|
+
readonly runId: string;
|
|
415
|
+
readonly nodeId: string;
|
|
416
|
+
readonly executionId: string;
|
|
417
|
+
}
|
|
418
|
+
export interface WorkflowRunCall extends WorkflowCaller {
|
|
419
|
+
readonly status: RunStatus | null;
|
|
420
|
+
}
|
|
412
421
|
type RunDetailsBase = Run & {
|
|
422
|
+
readonly caller?: WorkflowCaller;
|
|
423
|
+
readonly calls?: readonly WorkflowRunCall[];
|
|
424
|
+
readonly triggerNodeId?: string;
|
|
413
425
|
readonly errorDispatches?: readonly ErrorDispatch[];
|
|
414
426
|
readonly errorSource?: {
|
|
415
427
|
readonly flowId: string;
|
|
@@ -779,6 +791,7 @@ export declare class ControlClient {
|
|
|
779
791
|
readonly cursor?: string;
|
|
780
792
|
readonly includeTotal?: boolean;
|
|
781
793
|
readonly limit?: number;
|
|
794
|
+
readonly signal?: AbortSignal;
|
|
782
795
|
}): Promise<FlowPage>;
|
|
783
796
|
listEventSources(flowId?: string, signal?: AbortSignal): Promise<{
|
|
784
797
|
readonly version: 1;
|
|
@@ -790,9 +803,49 @@ export declare class ControlClient {
|
|
|
790
803
|
updateEventSource(sourceId: string, input: UpdateEventSource): Promise<EventSource>;
|
|
791
804
|
deleteEventSource(sourceId: string, expectedRevision: number): Promise<void>;
|
|
792
805
|
listVariables(): Promise<{
|
|
793
|
-
readonly variables: readonly
|
|
806
|
+
readonly variables: readonly VariableListItem[];
|
|
794
807
|
readonly version: 1;
|
|
795
808
|
}>;
|
|
809
|
+
getFlowReferences(flowId: string, options?: {
|
|
810
|
+
direction?: 'incoming' | 'outgoing';
|
|
811
|
+
offset?: number;
|
|
812
|
+
limit?: number;
|
|
813
|
+
signal?: AbortSignal;
|
|
814
|
+
}): Promise<{
|
|
815
|
+
version: 1;
|
|
816
|
+
direction: "incoming" | "outgoing";
|
|
817
|
+
total: number;
|
|
818
|
+
nextOffset?: number | undefined;
|
|
819
|
+
references: {
|
|
820
|
+
flowId: string;
|
|
821
|
+
name: string | null;
|
|
822
|
+
available: boolean;
|
|
823
|
+
draft: boolean;
|
|
824
|
+
live: {
|
|
825
|
+
publicationId: string;
|
|
826
|
+
enabled: boolean;
|
|
827
|
+
} | null;
|
|
828
|
+
}[];
|
|
829
|
+
}>;
|
|
830
|
+
getWorkflowContract(flowId: string, signal?: AbortSignal): Promise<{
|
|
831
|
+
version: 1;
|
|
832
|
+
flowId: string;
|
|
833
|
+
name: string;
|
|
834
|
+
revisionId: string;
|
|
835
|
+
publicationId: string;
|
|
836
|
+
inputs: {
|
|
837
|
+
handle: string;
|
|
838
|
+
jsonSchema: JsonValue;
|
|
839
|
+
nullable: boolean;
|
|
840
|
+
description?: string | undefined;
|
|
841
|
+
}[];
|
|
842
|
+
outputs: {
|
|
843
|
+
handle: string;
|
|
844
|
+
jsonSchema: JsonValue;
|
|
845
|
+
nullable: boolean;
|
|
846
|
+
description?: string | undefined;
|
|
847
|
+
}[] | null;
|
|
848
|
+
}>;
|
|
796
849
|
getVariableReferences(name: string, signal?: AbortSignal): Promise<VariableReferences>;
|
|
797
850
|
getVariable(name: string): Promise<Variable>;
|
|
798
851
|
putVariable(name: string, value: string): Promise<Variable>;
|
|
@@ -876,7 +929,7 @@ export declare class ControlClient {
|
|
|
876
929
|
revision: string;
|
|
877
930
|
data: {
|
|
878
931
|
matches: {
|
|
879
|
-
node
|
|
932
|
+
node?: string | undefined;
|
|
880
933
|
field: string;
|
|
881
934
|
line?: number | undefined;
|
|
882
935
|
excerpt: string;
|
|
@@ -929,6 +982,9 @@ export declare class ControlClient {
|
|
|
929
982
|
}>;
|
|
930
983
|
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly DraftOperation[], changeId?: string): Promise<DraftChange>;
|
|
931
984
|
repairDraft(flowId: string, expectedRevisionId: string, changeId?: string): Promise<DraftChange>;
|
|
985
|
+
upgradeDraft(flowId: string, expectedRevisionId: string, options?: {
|
|
986
|
+
readonly idempotencyKey?: string;
|
|
987
|
+
}): Promise<DraftChange>;
|
|
932
988
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
933
989
|
getLiveDetails(flowId: string, signal?: AbortSignal): Promise<LiveDetails>;
|
|
934
990
|
getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
|