@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChangeOperation, JsonValue, RevisionContent, TriggerKeySnapshot } from '../browser/flow-change.js';
|
|
2
|
+
import type { WorkflowContract, WorkflowCandidate } from './workflow.js';
|
|
2
3
|
import type { ConnectorAction, Diagnostic } from './control-api.js';
|
|
3
4
|
import type { AuthoringRead, AuthoringRequest, AuthoringSearch } from './authoringSchema.js';
|
|
4
5
|
export * from './authoringSchema.js';
|
|
@@ -9,7 +10,7 @@ export declare class AuthoringError extends Error {
|
|
|
9
10
|
}
|
|
10
11
|
export declare function authoringNode(content: RevisionContent, ref: string): {
|
|
11
12
|
ref: string;
|
|
12
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "
|
|
13
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "workflow";
|
|
13
14
|
name: string;
|
|
14
15
|
readOnly: boolean;
|
|
15
16
|
description?: string | undefined;
|
|
@@ -71,6 +72,7 @@ export declare function authoringNode(content: RevisionContent, ref: string): {
|
|
|
71
72
|
})[];
|
|
72
73
|
};
|
|
73
74
|
export declare function readAuthoring(content: RevisionContent, query?: AuthoringRead): {
|
|
75
|
+
nodes?: undefined;
|
|
74
76
|
text: {
|
|
75
77
|
node: string;
|
|
76
78
|
field: "code" | "prompt";
|
|
@@ -81,13 +83,12 @@ export declare function readAuthoring(content: RevisionContent, query?: Authorin
|
|
|
81
83
|
nextStart?: number | undefined;
|
|
82
84
|
truncated: boolean;
|
|
83
85
|
};
|
|
84
|
-
nodes?: undefined;
|
|
85
86
|
edges?: undefined;
|
|
86
87
|
} | {
|
|
87
88
|
text?: undefined;
|
|
88
89
|
nodes: {
|
|
89
90
|
ref: string;
|
|
90
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "
|
|
91
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "workflow";
|
|
91
92
|
name: string;
|
|
92
93
|
readOnly: boolean;
|
|
93
94
|
description?: string | undefined;
|
|
@@ -153,7 +154,7 @@ export declare function readAuthoring(content: RevisionContent, query?: Authorin
|
|
|
153
154
|
text?: undefined;
|
|
154
155
|
nodes: {
|
|
155
156
|
ref: string;
|
|
156
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "
|
|
157
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "workflow";
|
|
157
158
|
name: string;
|
|
158
159
|
readOnly: boolean;
|
|
159
160
|
inputHandles: string[];
|
|
@@ -178,7 +179,7 @@ export declare function readAuthoring(content: RevisionContent, query?: Authorin
|
|
|
178
179
|
};
|
|
179
180
|
export declare function searchAuthoring(content: RevisionContent, query: AuthoringSearch): {
|
|
180
181
|
matches: {
|
|
181
|
-
node
|
|
182
|
+
node?: string;
|
|
182
183
|
field: string;
|
|
183
184
|
line?: number;
|
|
184
185
|
excerpt: string;
|
|
@@ -187,6 +188,7 @@ export declare function searchAuthoring(content: RevisionContent, query: Authori
|
|
|
187
188
|
nextOffset?: number | undefined;
|
|
188
189
|
};
|
|
189
190
|
export interface AuthoringHost {
|
|
191
|
+
workflow?(flowId: string): Promise<WorkflowContract | WorkflowCandidate>;
|
|
190
192
|
id(label: string): string;
|
|
191
193
|
action(id: string): Promise<ConnectorAction>;
|
|
192
194
|
trigger(key: string): TriggerKeySnapshot;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DraftOperation } from './draftOperations.js';
|
|
2
2
|
declare const descriptions: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly start: 'A Start node with a required message parameter. Supply it through trigger.outputs.';
|
|
4
4
|
readonly error: 'A Flow Error node. Select upstream Flows, then publish and enable this Flow to listen for failures in their automatic runs.';
|
|
5
5
|
readonly webhook: 'A Webhook start node.';
|
|
6
6
|
readonly cron: 'An hourly scheduled start node.';
|
|
@@ -8,7 +8,7 @@ declare const descriptions: {
|
|
|
8
8
|
readonly integration: 'Telegram webhook integration by key; replace CONNECTION_ID with an active Telegram connection.';
|
|
9
9
|
readonly decision: 'AI Decision evaluates named questions against target and returns a complete answer object per output. Configure target before running.';
|
|
10
10
|
readonly openapi: 'A fixed JSON API operation. Replace the example document and URL before running.';
|
|
11
|
-
readonly connector: 'A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show.';
|
|
11
|
+
readonly connector: 'A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show. Set connectionId to an empty string to defer account configuration; execution will require an account.';
|
|
12
12
|
readonly code: 'A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions.';
|
|
13
13
|
readonly condition: 'A condition with true and false execution branches.';
|
|
14
14
|
readonly value: 'A fixed value node.';
|
|
@@ -21,8 +21,8 @@ declare const descriptions: {
|
|
|
21
21
|
};
|
|
22
22
|
export declare const authoringExampleNames: (keyof typeof descriptions)[];
|
|
23
23
|
export declare const authoringExamples: {
|
|
24
|
-
name: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm-chat" | "llm-json" | "
|
|
25
|
-
description: "A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show." | "A Flow Error node. Select upstream Flows, then publish and enable this Flow to listen for failures in their automatic runs." | "A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions." | "A
|
|
24
|
+
name: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm-chat" | "llm-json" | "openapi" | "poll" | "poll-notification" | "start" | "value" | "wait" | "webhook";
|
|
25
|
+
description: "A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show. Set connectionId to an empty string to defer account configuration; execution will require an account." | "A Flow Error node. Select upstream Flows, then publish and enable this Flow to listen for failures in their automatic runs." | "A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions." | "A Start node with a required message parameter. Supply it through trigger.outputs." | "A Wait with a continue action and a built-in notification output." | "A Webhook start node." | "A condition with true and false execution branches." | "A fixed JSON API operation. Replace the example document and URL before running." | "A fixed value node." | "AI Decision evaluates named questions against target and returns a complete answer object per output. Configure target before running." | "An Agent with code computation enabled. Configure a model available in the deployment." | "An Approval with approve and reject decision branches and a built-in notification output." | "An LLM JSON Task and its node; configure a model available in the deployment." | "An LLM chat Task and its node; configure a model available in the deployment." | "An hourly scheduled start node." | "Gmail events → JavaScript text formatting → Connector notification. Replace connection/action IDs and match the notification input ports." | "Gmail polling by key; replace CONNECTION_ID with an active Gmail connection." | "Telegram webhook integration by key; replace CONNECTION_ID with an active Telegram connection.";
|
|
26
26
|
}[];
|
|
27
27
|
export declare function authoringExample(name: string): {
|
|
28
28
|
version: 1;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InputPort, Group, JsonValue, RevisionContent } from '../browser/flow-change.js';
|
|
2
|
+
/** Business field contracts, independent of storage handles and presentation groups. */
|
|
3
|
+
export declare function fieldsView(ports: readonly (InputPort | Group)[]): {
|
|
4
|
+
[k: string]: {
|
|
5
|
+
schema: JsonValue;
|
|
6
|
+
nullable: boolean;
|
|
7
|
+
description?: string | undefined;
|
|
8
|
+
default?: JsonValue | undefined;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare function fieldsToPorts(fields: unknown, previous: readonly (InputPort | Group)[]): readonly (InputPort | Group)[];
|
|
12
|
+
/** The workflow input contract shared by draft authoring and published views. */
|
|
13
|
+
export declare function flowInputDefinitions(content: RevisionContent): {
|
|
14
|
+
[k: string]: {
|
|
15
|
+
schema: JsonValue;
|
|
16
|
+
nullable: boolean;
|
|
17
|
+
description?: string | undefined;
|
|
18
|
+
default?: JsonValue | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|