@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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { TaskNode, ManagedTaskDefinition, Port, JsonValue, RevisionContent } from '../browser/flow-change.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export interface WorkflowExecutor {
|
|
4
|
+
readonly kind: 'workflow';
|
|
5
|
+
readonly flowId: string;
|
|
6
|
+
readonly revisionId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const publishedWorkflowInterfaceSchema: z.ZodObject<{
|
|
9
|
+
inputs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
handle: z.ZodString;
|
|
11
|
+
jsonSchema: z.ZodType<JsonValue>;
|
|
12
|
+
nullable: z.ZodBoolean;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
15
|
+
outputs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
handle: z.ZodString;
|
|
17
|
+
jsonSchema: z.ZodType<JsonValue>;
|
|
18
|
+
nullable: z.ZodBoolean;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export type PublishedWorkflowInterface = z.infer<typeof publishedWorkflowInterfaceSchema>;
|
|
23
|
+
/** The callable interface of one fixed definition; absence differs from empty ports. */
|
|
24
|
+
export declare function publishedWorkflowInterface(content: Pick<RevisionContent, 'document'>): PublishedWorkflowInterface;
|
|
25
|
+
export declare function sameWorkflowInterface(left: PublishedWorkflowInterface, right: PublishedWorkflowInterface): boolean;
|
|
26
|
+
export declare const workflowContractSchema: z.ZodObject<{
|
|
27
|
+
version: z.ZodLiteral<1>;
|
|
28
|
+
flowId: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
revisionId: z.ZodString;
|
|
31
|
+
publicationId: z.ZodString;
|
|
32
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
33
|
+
handle: z.ZodString;
|
|
34
|
+
jsonSchema: z.ZodType<JsonValue>;
|
|
35
|
+
nullable: z.ZodBoolean;
|
|
36
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
outputs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
|
+
handle: z.ZodString;
|
|
40
|
+
jsonSchema: z.ZodType<JsonValue>;
|
|
41
|
+
nullable: z.ZodBoolean;
|
|
42
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type WorkflowContract = z.infer<typeof workflowContractSchema>;
|
|
46
|
+
export interface WorkflowCandidate {
|
|
47
|
+
readonly flowId: string;
|
|
48
|
+
readonly name: string;
|
|
49
|
+
readonly problem: 'unpublished' | 'disabled' | 'retiring' | 'recursive' | 'missing-start' | null;
|
|
50
|
+
}
|
|
51
|
+
/** Classify only list metadata; opening the selector does not inspect a Revision. */
|
|
52
|
+
export declare function workflowCandidate(flow: {
|
|
53
|
+
flowId: string;
|
|
54
|
+
name: string;
|
|
55
|
+
status: string;
|
|
56
|
+
live?: {
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
hasStart: boolean;
|
|
59
|
+
} | null;
|
|
60
|
+
}, sourceFlowId?: string): WorkflowCandidate;
|
|
61
|
+
export declare function workflowCandidateGroup(candidate: WorkflowCandidate): 'published' | 'missingStart' | 'other';
|
|
62
|
+
/** A selected target is durable even before its callable interface is available. */
|
|
63
|
+
export declare function workflowSelectionTask(candidate: Pick<WorkflowCandidate, 'flowId' | 'name'>, contract?: WorkflowContract, previous?: ManagedTaskDefinition): ManagedTaskDefinition;
|
|
64
|
+
export declare function workflowTask(contract: WorkflowContract, name?: string): ManagedTaskDefinition;
|
|
65
|
+
export declare function workflowPorts(ports: readonly Port[]): WorkflowContract['inputs'];
|
|
66
|
+
export declare function workflowCompatibility(node: TaskNode, contract: WorkflowContract, previous?: PublishedWorkflowInterface): readonly {
|
|
67
|
+
side: 'revision' | 'input' | 'output';
|
|
68
|
+
field: string;
|
|
69
|
+
message: string;
|
|
70
|
+
reason?: 'snapshot-missing' | 'interface-required' | 'revision-stale';
|
|
71
|
+
}[];
|
|
72
|
+
/** Refresh capability ports by exact name; removed outputs remain unresolved at consumers. */
|
|
73
|
+
export declare function withWorkflowTask(node: TaskNode, task: ManagedTaskDefinition): TaskNode;
|
|
74
|
+
export declare const workflowReferencesSchema: z.ZodObject<{
|
|
75
|
+
version: z.ZodLiteral<1>;
|
|
76
|
+
direction: z.ZodEnum<{
|
|
77
|
+
incoming: "incoming";
|
|
78
|
+
outgoing: "outgoing";
|
|
79
|
+
}>;
|
|
80
|
+
total: z.ZodInt;
|
|
81
|
+
nextOffset: z.ZodOptional<z.ZodInt>;
|
|
82
|
+
references: z.ZodArray<z.ZodObject<{
|
|
83
|
+
flowId: z.ZodString;
|
|
84
|
+
name: z.ZodNullable<z.ZodString>;
|
|
85
|
+
available: z.ZodBoolean;
|
|
86
|
+
draft: z.ZodBoolean;
|
|
87
|
+
live: z.ZodNullable<z.ZodObject<{
|
|
88
|
+
publicationId: z.ZodString;
|
|
89
|
+
enabled: z.ZodBoolean;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type WorkflowReferences = z.infer<typeof workflowReferencesSchema>;
|