@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.
Files changed (50) hide show
  1. package/dist/browser/{createResourceDialog-BAJXbzNH.js → createResourceDialog-C-Si_cYs.js} +2 -2
  2. package/dist/browser/flow-authoring-node.d.ts +12 -3
  3. package/dist/browser/flow-authoring.js +135 -21
  4. package/dist/browser/flow-change-schema.d.ts +3 -1
  5. package/dist/browser/flow-change.d.ts +15 -3
  6. package/dist/browser/flow-change.js +111 -16
  7. package/dist/browser/{flowChanges-BAMkSaKF.js → flowChanges-T4_R5p1f.js} +3031 -2124
  8. package/dist/browser/{flowRunInputEditorStore-B2Rw4VsT.js → flowRunInputEditorStore-DJqmR6Qh.js} +3 -2
  9. package/dist/browser/{flowWorkspace-DxLc1Ybv.js → flowWorkspace-C0J5C0oM.js} +754 -163
  10. package/dist/browser/{icons-Db2Jb2iX.js → icons-BD3m0RQq.js} +4484 -4370
  11. package/dist/browser/preview.css +160 -64
  12. package/dist/browser/preview.js +6487 -5232
  13. package/dist/browser/ui.css +93 -3
  14. package/dist/browser/ui.js +8 -5
  15. package/dist/browser/workbench.css +160 -64
  16. package/dist/browser/workbench.js +175 -59
  17. package/dist/browser/{workbenchSelect-C-jf6NIM.js → workbenchSelect-B-PFpF_Q.js} +1 -1
  18. package/dist/command/index.js +49 -49
  19. package/dist/common/authoring.d.ts +7 -5
  20. package/dist/common/authoringExamples.d.ts +3 -3
  21. package/dist/common/authoringFields.d.ts +20 -0
  22. package/dist/common/authoringSchema.d.ts +404 -15
  23. package/dist/common/connectorDecoders.d.ts +2 -1
  24. package/dist/common/control-api-conformance.js +403 -137
  25. package/dist/common/control-api.d.ts +70 -7
  26. package/dist/common/control-api.js +3587 -3428
  27. package/dist/common/control-requests.d.ts +10 -3
  28. package/dist/common/control-requests.js +463 -48
  29. package/dist/common/decision.js +28 -3
  30. package/dist/common/flow-encoding.d.ts +4 -2
  31. package/dist/common/flow-encoding.js +144 -10
  32. package/dist/common/flow-graph.d.ts +1 -1
  33. package/dist/common/flow-semantics.d.ts +12 -2
  34. package/dist/common/flow-semantics.js +152 -33
  35. package/dist/common/integration-trigger.js +28 -3
  36. package/dist/common/liveDetails.d.ts +26 -11
  37. package/dist/common/mcp.d.ts +6 -3
  38. package/dist/common/mcp.js +3541 -3403
  39. package/dist/common/openapi.js +28 -3
  40. package/dist/common/poll-trigger.js +28 -3
  41. package/dist/common/run-events.d.ts +2 -0
  42. package/dist/common/run-events.js +9 -3
  43. package/dist/common/scheduler.d.ts +11 -1
  44. package/dist/common/scheduler.js +216 -48
  45. package/dist/common/trigger-contract.d.ts +2 -0
  46. package/dist/common/webhook-trigger.js +28 -3
  47. package/dist/common/workflow.d.ts +93 -0
  48. package/dist/common/workflow.js +10491 -0
  49. package/package.json +5 -1
  50. package/skills/open-flow/references/flow-authoring.md +26 -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" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
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" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
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" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
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: string;
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 manual: 'A Manual start node.';
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.';
@@ -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" | "manual" | "openapi" | "poll" | "poll-notification" | "value" | "wait" | "webhook";
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 Manual start node." | "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.";
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." | "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
+ };