@oomol-lab/open-flow 0.1.0-beta.64 → 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 +135 -21
- 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-BAMkSaKF.js → flowChanges-T4_R5p1f.js} +3031 -2124
- package/dist/browser/{flowRunInputEditorStore-B2Rw4VsT.js → flowRunInputEditorStore-DJqmR6Qh.js} +3 -2
- package/dist/browser/{flowWorkspace-DxLc1Ybv.js → flowWorkspace-C0J5C0oM.js} +754 -163
- package/dist/browser/{icons-Db2Jb2iX.js → icons-BD3m0RQq.js} +4484 -4370
- package/dist/browser/preview.css +160 -64
- package/dist/browser/preview.js +6487 -5232
- package/dist/browser/ui.css +93 -3
- package/dist/browser/ui.js +8 -5
- package/dist/browser/workbench.css +160 -64
- package/dist/browser/workbench.js +175 -59
- 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/connectorDecoders.d.ts +2 -1
- package/dist/common/control-api-conformance.js +403 -137
- package/dist/common/control-api.d.ts +70 -7
- package/dist/common/control-api.js +3587 -3428
- package/dist/common/control-requests.d.ts +10 -3
- package/dist/common/control-requests.js +463 -48
- 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 +152 -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 +3541 -3403
- 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 +11 -1
- package/dist/common/scheduler.js +216 -48
- 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;
|
|
@@ -201,6 +201,12 @@ export interface ConnectorProvider extends ProviderIconAppearance {
|
|
|
201
201
|
readonly serviceName: string;
|
|
202
202
|
}
|
|
203
203
|
export type ConnectorAccessMode = 'implicit' | 'selectable';
|
|
204
|
+
export interface LeinaBot {
|
|
205
|
+
readonly leinaId: string;
|
|
206
|
+
readonly name: string;
|
|
207
|
+
readonly status: string;
|
|
208
|
+
readonly platforms: readonly string[];
|
|
209
|
+
}
|
|
204
210
|
export type ProviderAccessBindingStatus = 'active' | 'forbidden' | 'invalid' | 'missing';
|
|
205
211
|
export type ProviderAccessBinding = ((ProviderAccessIdentity & {
|
|
206
212
|
readonly status: ProviderAccessBindingStatus;
|
|
@@ -403,7 +409,19 @@ export type ErrorDispatch = {
|
|
|
403
409
|
readonly flowId: string;
|
|
404
410
|
readonly message: string;
|
|
405
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
|
+
}
|
|
406
421
|
type RunDetailsBase = Run & {
|
|
422
|
+
readonly caller?: WorkflowCaller;
|
|
423
|
+
readonly calls?: readonly WorkflowRunCall[];
|
|
424
|
+
readonly triggerNodeId?: string;
|
|
407
425
|
readonly errorDispatches?: readonly ErrorDispatch[];
|
|
408
426
|
readonly errorSource?: {
|
|
409
427
|
readonly flowId: string;
|
|
@@ -773,6 +791,7 @@ export declare class ControlClient {
|
|
|
773
791
|
readonly cursor?: string;
|
|
774
792
|
readonly includeTotal?: boolean;
|
|
775
793
|
readonly limit?: number;
|
|
794
|
+
readonly signal?: AbortSignal;
|
|
776
795
|
}): Promise<FlowPage>;
|
|
777
796
|
listEventSources(flowId?: string, signal?: AbortSignal): Promise<{
|
|
778
797
|
readonly version: 1;
|
|
@@ -784,9 +803,49 @@ export declare class ControlClient {
|
|
|
784
803
|
updateEventSource(sourceId: string, input: UpdateEventSource): Promise<EventSource>;
|
|
785
804
|
deleteEventSource(sourceId: string, expectedRevision: number): Promise<void>;
|
|
786
805
|
listVariables(): Promise<{
|
|
787
|
-
readonly variables: readonly
|
|
806
|
+
readonly variables: readonly VariableListItem[];
|
|
788
807
|
readonly version: 1;
|
|
789
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
|
+
}>;
|
|
790
849
|
getVariableReferences(name: string, signal?: AbortSignal): Promise<VariableReferences>;
|
|
791
850
|
getVariable(name: string): Promise<Variable>;
|
|
792
851
|
putVariable(name: string, value: string): Promise<Variable>;
|
|
@@ -841,6 +900,7 @@ export declare class ControlClient {
|
|
|
841
900
|
version: 1;
|
|
842
901
|
}>;
|
|
843
902
|
listConnectorProviders(signal?: AbortSignal, flowId?: string, locale?: string): Promise<readonly ConnectorProvider[]>;
|
|
903
|
+
listLeinaBots(flowId: string, signal?: AbortSignal): Promise<readonly LeinaBot[]>;
|
|
844
904
|
removeConnectionUsage(flowId: string, connectionId: string, expectedRevisionId: string, expectedAccessRevision: number, idempotencyKey: string): Promise<DraftChange>;
|
|
845
905
|
getConnectorAccess(flowId: string, signal?: AbortSignal): Promise<ConnectorAccess>;
|
|
846
906
|
getPublishedConnectorAccess(flowId: string, publicationId: string, signal?: AbortSignal): Promise<ConnectorAccessSnapshot>;
|
|
@@ -869,7 +929,7 @@ export declare class ControlClient {
|
|
|
869
929
|
revision: string;
|
|
870
930
|
data: {
|
|
871
931
|
matches: {
|
|
872
|
-
node
|
|
932
|
+
node?: string | undefined;
|
|
873
933
|
field: string;
|
|
874
934
|
line?: number | undefined;
|
|
875
935
|
excerpt: string;
|
|
@@ -922,6 +982,9 @@ export declare class ControlClient {
|
|
|
922
982
|
}>;
|
|
923
983
|
changeDraft(flowId: string, expectedRevisionId: string, operations: readonly DraftOperation[], changeId?: string): Promise<DraftChange>;
|
|
924
984
|
repairDraft(flowId: string, expectedRevisionId: string, changeId?: string): Promise<DraftChange>;
|
|
985
|
+
upgradeDraft(flowId: string, expectedRevisionId: string, options?: {
|
|
986
|
+
readonly idempotencyKey?: string;
|
|
987
|
+
}): Promise<DraftChange>;
|
|
925
988
|
checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
|
|
926
989
|
getLiveDetails(flowId: string, signal?: AbortSignal): Promise<LiveDetails>;
|
|
927
990
|
getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
|