@oomol-lab/open-flow 0.1.0-beta.55 → 0.1.0-beta.57

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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/{createResourceDialog-4H5_lZ6s.js → createResourceDialog-C23SBjYd.js} +2 -2
  3. package/dist/browser/flow-authoring-edge.d.ts +3 -3
  4. package/dist/browser/flow-authoring-node.d.ts +30 -46
  5. package/dist/browser/flow-authoring.js +9215 -21030
  6. package/dist/browser/flow-change-schema.d.ts +267 -1
  7. package/dist/browser/flow-change.d.ts +19 -104
  8. package/dist/browser/flow-change.js +154 -298
  9. package/dist/browser/{flowChanges-ZzG-f9cg.js → flowChanges-fBiAeTzR.js} +2347 -2216
  10. package/dist/browser/{flowWorkspace-ChpRaTMX.js → flowWorkspace-MqcEfg7T.js} +118 -293
  11. package/dist/browser/{icons-CdAB9wyS.js → icons-6oQ8Q9Wm.js} +4309 -4454
  12. package/dist/browser/lib-DrKav3HG.js +11403 -0
  13. package/dist/browser/preview.css +1 -1
  14. package/dist/browser/preview.js +9609 -9548
  15. package/dist/browser/ui-idTooltip.d.ts +11 -0
  16. package/dist/browser/ui.d.ts +5 -0
  17. package/dist/browser/ui.js +83 -1
  18. package/dist/browser/workbench.css +1 -1
  19. package/dist/browser/workbench.js +227 -417
  20. package/dist/browser/{workbenchSelect-BRZN4ish.js → workbenchSelect-DpLbIr29.js} +1 -1
  21. package/dist/common/authoring.d.ts +207 -0
  22. package/dist/common/authoringSchema.d.ts +1293 -0
  23. package/dist/common/control-api-conformance.js +1060 -623
  24. package/dist/common/control-api-errors.d.ts +2 -1
  25. package/dist/common/control-api.d.ts +87 -6
  26. package/dist/common/control-api.js +1058 -705
  27. package/dist/common/control-requests.d.ts +128 -0
  28. package/dist/common/control-requests.js +2913 -1145
  29. package/dist/common/decision.js +6337 -6371
  30. package/dist/common/flow-agent.d.ts +1 -1
  31. package/dist/common/flow-connectionUsage.d.ts +1 -2
  32. package/dist/common/flow-encoding.d.ts +2 -4
  33. package/dist/common/flow-encoding.js +131 -182
  34. package/dist/common/flow-graph.d.ts +10 -10
  35. package/dist/common/flow-semantics.d.ts +13 -9
  36. package/dist/common/flow-semantics.js +9051 -9232
  37. package/dist/common/flowInspection.d.ts +3 -21
  38. package/dist/common/integration-trigger.js +8653 -8687
  39. package/dist/common/lib-DrKav3HG.js +11403 -0
  40. package/dist/common/mcp.d.ts +120 -12
  41. package/dist/common/mcp.js +537 -188
  42. package/dist/common/openapi.js +6337 -6371
  43. package/dist/common/poll-trigger.js +8653 -8687
  44. package/dist/common/run-events.js +0 -1
  45. package/dist/common/scheduler.d.ts +3 -9
  46. package/dist/common/scheduler.js +128 -209
  47. package/dist/common/webhook-trigger.js +6337 -6371
  48. package/package.json +7 -1
  49. package/skills/open-flow/SKILL.md +32 -0
  50. package/skills/open-flow/references/flow-authoring.md +356 -0
  51. package/skills/open-flow/references/flow-n8n-conversion.md +196 -0
package/README.md CHANGED
@@ -6,7 +6,7 @@ The offline Publications viewer is available as `OpenFlowPreview` from
6
6
  `@oomol-lab/open-flow/preview`, with standalone `@oomol-lab/open-flow/preview.css`.
7
7
  Supply `draft`, `presentation` (or null), `language` and `theme`; the entry also exports
8
8
  `Draft`, `Presentation` and `OpenFlowPreviewProps` types. Give its parent an explicit height.
9
- It supports temporary node movement, restore layout, read-only properties and subflows without
9
+ It supports temporary node movement, restore layout, read-only properties without
10
10
  fetching or saving a workflow. Use a new React key to reset the session when switching examples.
11
11
  A Shadow DOM host must load the stylesheet inside its shadow root before mounting the component;
12
12
  Vite hosts can import `@oomol-lab/open-flow/preview.css?url` for the stylesheet URL.
@@ -1,6 +1,6 @@
1
1
  import { l as useTranslate } from "./dist-BFmpkX4P.js";
2
- import { C as FieldDescription, E as FieldLabel, S as Field, T as FieldGroup, c as DialogTitle, gi as Button, i as DialogContent, ir as Input, n as Dialog, o as DialogFooter, r as DialogClose, s as DialogHeader, t as Icon, w as FieldError, x as Spinner } from "./icons-CdAB9wyS.js";
3
- import { t as WorkbenchSelect } from "./workbenchSelect-BRZN4ish.js";
2
+ import { C as FieldDescription, E as FieldLabel, S as Field, T as FieldGroup, c as DialogTitle, i as DialogContent, n as Dialog, o as DialogFooter, or as Input, r as DialogClose, s as DialogHeader, t as Icon, vi as Button, w as FieldError, x as Spinner } from "./icons-6oQ8Q9Wm.js";
3
+ import { t as WorkbenchSelect } from "./workbenchSelect-DpLbIr29.js";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
@@ -1,3 +1,3 @@
1
- import type { ChangeOperation, GraphEdge, GraphTarget, RevisionContent } from './flow-change.js';
2
- export declare function connect(content: RevisionContent, target: GraphTarget, edge: GraphEdge): readonly ChangeOperation[];
3
- export declare function disconnect(content: RevisionContent, target: GraphTarget, edge: GraphEdge): readonly ChangeOperation[];
1
+ import type { ChangeOperation, GraphEdge, RevisionContent } from './flow-change.js';
2
+ export declare function connect(content: RevisionContent, edge: GraphEdge): readonly ChangeOperation[];
3
+ export declare function disconnect(content: RevisionContent, edge: GraphEdge): readonly ChangeOperation[];
@@ -1,5 +1,8 @@
1
1
  import type { DecisionQuestion } from '../common/decision.js';
2
- import type { ChangeOperation, CodeModule, ConnectorCapability, GraphNode, GraphTarget, InputMapping, InputValues, JsonValue, PortDefinition, RevisionContent, TaskDefinition, TriggerKeySnapshot, TriggerNode, TriggerSchedule, WebhookOptions } from './flow-change.js';
2
+ import type { ChangeOperation, CodeModule, ConnectorCapability, GraphNode, InputMapping, InputValues, InputPort, JsonValue, PortDefinition, RevisionContent, TaskDefinition, TriggerKeySnapshot, TriggerNode, TriggerSchedule, WebhookOptions } from './flow-change.js';
3
+ export declare const defaultCodeTaskPorts: Pick<Extract<TaskDefinition, {
4
+ readonly moduleId: string;
5
+ }>, 'inputs' | 'outputs' | 'capabilities'>;
3
6
  export interface Settings {
4
7
  readonly name?: string;
5
8
  readonly maxExecutions?: number;
@@ -10,7 +13,7 @@ export interface LlmTaskOptions {
10
13
  readonly output?: PortDefinition;
11
14
  }
12
15
  export type LlmInputHandle = 'input' | 'messages' | 'model' | 'template';
13
- export declare function defaultNodeName(content: RevisionContent, node: GraphNode): string;
16
+ export declare function defaultNodeName(_content: RevisionContent, node: GraphNode): string;
14
17
  export declare function repairNodeNames(content: RevisionContent): readonly ChangeOperation[];
15
18
  interface TriggerSettingsBase {
16
19
  readonly description?: string;
@@ -40,77 +43,58 @@ export type TriggerSettings = (TriggerSettingsBase & {
40
43
  readonly config: InputValues;
41
44
  readonly kind: 'integration';
42
45
  });
43
- export declare function createCodeTask(target: GraphTarget, identity: {
46
+ export declare function createCodeTask(identity: {
44
47
  readonly moduleId: string;
45
48
  readonly nodeId: string;
46
49
  }, name: string, module?: Pick<CodeModule, 'imports' | 'source'> | undefined, ports?: Pick<Extract<TaskDefinition, {
47
50
  readonly moduleId: string;
48
51
  }>, 'inputs' | 'outputs' | 'capabilities'>): readonly ChangeOperation[];
49
- export declare function createManagedTask(target: GraphTarget, identity: {
52
+ export declare function createManagedTask(identity: {
50
53
  readonly nodeId: string;
51
- readonly taskId: string;
52
54
  }, task: Extract<TaskDefinition, {
53
55
  readonly executor: unknown;
54
56
  }>): readonly ChangeOperation[];
55
- export declare function createAgentTask(target: GraphTarget, identity: {
57
+ export declare function createAgentTask(identity: {
56
58
  readonly nodeId: string;
57
- readonly taskId: string;
58
59
  }, name: string, defaults?: {
59
60
  readonly prompt?: string;
60
61
  readonly outputDescription?: string;
62
+ readonly inputs?: TaskDefinition['inputs'];
61
63
  }): readonly ChangeOperation[];
62
- export declare function createLlmTask(target: GraphTarget, identity: {
64
+ export declare function createLlmTask(identity: {
63
65
  readonly nodeId: string;
64
- readonly taskId: string;
65
66
  }, name: string, mode: 'chat' | 'json', outputDescription: string, options?: LlmTaskOptions): readonly ChangeOperation[];
66
- export declare function createCondition(target: GraphTarget, nodeId: string, name: string): readonly ChangeOperation[];
67
- export declare function createValue(target: GraphTarget, nodeId: string, name: string): readonly ChangeOperation[];
68
- export declare function createWait(target: Extract<GraphTarget, {
69
- readonly kind: 'flow';
70
- }>, nodeId: string, name: string): readonly ChangeOperation[];
71
- export declare function createApproval(target: Extract<GraphTarget, {
72
- readonly kind: 'flow';
73
- }>, nodeId: string, name: string): readonly ChangeOperation[];
74
- export declare function createBuiltinTrigger(target: Extract<GraphTarget, {
75
- readonly kind: 'flow';
76
- }>, nodeId: string, node: Extract<TriggerNode, {
67
+ export declare function createCondition(nodeId: string, name: string): readonly ChangeOperation[];
68
+ export declare function createValue(nodeId: string, name: string, values?: readonly InputPort[]): readonly ChangeOperation[];
69
+ export declare function createWait(nodeId: string, name: string): readonly ChangeOperation[];
70
+ export declare function createApproval(nodeId: string, name: string): readonly ChangeOperation[];
71
+ export declare function createBuiltinTrigger(nodeId: string, node: Extract<TriggerNode, {
77
72
  readonly kind: 'error' | 'cron' | 'manual' | 'webhook';
78
73
  }>): readonly ChangeOperation[];
79
- export declare function createProviderTrigger(target: Extract<GraphTarget, {
80
- readonly kind: 'flow';
81
- }>, nodeId: string, definition: TriggerKeySnapshot, options: {
74
+ export declare function createProviderTrigger(nodeId: string, definition: TriggerKeySnapshot, options: {
82
75
  readonly config: Readonly<Record<string, JsonValue>>;
83
76
  readonly connectionId?: string;
84
77
  readonly name?: string;
85
78
  readonly schedule?: readonly TriggerSchedule[];
86
79
  }): readonly ChangeOperation[];
87
- export declare function deleteNodes(content: RevisionContent, target: GraphTarget, nodeIds: readonly string[]): readonly ChangeOperation[];
88
- export declare function updateSettings(content: RevisionContent, target: GraphTarget, nodeId: string, settings: Settings): readonly ChangeOperation[] | undefined;
89
- export declare function setInputValue(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
90
- export declare function setInputValues(content: RevisionContent, target: GraphTarget, nodeId: string, values: Readonly<Record<string, JsonValue | undefined>>): readonly ChangeOperation[] | undefined;
80
+ export declare function deleteNodes(content: RevisionContent, nodeIds: readonly string[]): readonly ChangeOperation[];
81
+ export declare function updateSettings(content: RevisionContent, nodeId: string, settings: Settings): readonly ChangeOperation[] | undefined;
82
+ export declare function setInputValue(content: RevisionContent, nodeId: string, handle: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
83
+ export declare function setInputValues(content: RevisionContent, nodeId: string, values: Readonly<Record<string, JsonValue | undefined>>): readonly ChangeOperation[] | undefined;
91
84
  /** Restore inheritance for this form in one undoable change. */
92
- export declare function resetInputValues(content: RevisionContent, target: GraphTarget, nodeId: string, handles: readonly string[]): readonly ChangeOperation[];
93
- export declare function setInputSources(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, sources: Extract<InputMapping, {
85
+ export declare function resetInputValues(content: RevisionContent, nodeId: string, handles: readonly string[]): readonly ChangeOperation[];
86
+ export declare function setInputSources(content: RevisionContent, nodeId: string, handle: string, sources: Extract<InputMapping, {
94
87
  readonly kind: 'sources';
95
88
  }>['sources']): readonly ChangeOperation[];
96
- export declare function setInputVariable(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, name: string, bindingId: string): readonly ChangeOperation[] | undefined;
89
+ export declare function setInputVariable(content: RevisionContent, nodeId: string, handle: string, name: string, bindingId: string): readonly ChangeOperation[] | undefined;
97
90
  export declare function cleanVariableBindings(content: RevisionContent, operations: readonly ChangeOperation[]): readonly ChangeOperation[];
98
- export declare function setConnectorConnection(content: RevisionContent, taskId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
99
- export declare function updateTrigger(content: RevisionContent, target: {
100
- readonly kind: 'flow';
101
- }, nodeId: string, settings: TriggerSettings): readonly ChangeOperation[] | undefined;
102
- export declare function updateTriggerConfig(content: RevisionContent, _target: {
103
- readonly kind: 'flow';
104
- }, nodeId: string, name: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
105
- export declare function updateTriggerSchedule(content: RevisionContent, _target: {
106
- readonly kind: 'flow';
107
- }, nodeId: string, schedule: readonly TriggerSchedule[]): readonly ChangeOperation[] | undefined;
108
- export declare function setTriggerConnection(content: RevisionContent, target: {
109
- readonly kind: 'flow';
110
- }, nodeId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
111
- export declare function setCodeActions(content: RevisionContent, target: GraphTarget, nodeId: string, capabilities: readonly ConnectorCapability[]): readonly ChangeOperation[] | undefined;
112
- export declare function createDecisionTask(target: GraphTarget, identity: {
91
+ export declare function setConnectorConnection(content: RevisionContent, nodeId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
92
+ export declare function updateTrigger(content: RevisionContent, nodeId: string, settings: TriggerSettings): readonly ChangeOperation[] | undefined;
93
+ export declare function updateTriggerConfig(content: RevisionContent, nodeId: string, name: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
94
+ export declare function updateTriggerSchedule(content: RevisionContent, nodeId: string, schedule: readonly TriggerSchedule[]): readonly ChangeOperation[] | undefined;
95
+ export declare function setTriggerConnection(content: RevisionContent, nodeId: string, connectionId: string | undefined): readonly ChangeOperation[] | undefined;
96
+ export declare function setCodeActions(content: RevisionContent, nodeId: string, capabilities: readonly ConnectorCapability[]): readonly ChangeOperation[] | undefined;
97
+ export declare function createDecisionTask(identity: {
113
98
  readonly nodeId: string;
114
- readonly taskId: string;
115
99
  }, name?: string, questions?: readonly DecisionQuestion[]): readonly ChangeOperation[];
116
100
  export {};