@oomol-lab/open-flow 0.1.0-beta.1 → 0.1.0-beta.11

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 (69) hide show
  1. package/dist/browser/DesignerIcon-ckcKnxxJ.js +2267 -0
  2. package/dist/browser/createResourceDialog-DhIU-HYW.js +111 -0
  3. package/dist/browser/{dist-CPuF50D9.js → dist-BZ5PTFAs.js} +1 -1
  4. package/dist/browser/dist-Bmb2mZvW.js +795 -0
  5. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  6. package/dist/browser/dist-CP0883sY.js +4 -0
  7. package/dist/browser/{dist-CJpzJrLM.js → dist-Ce71Szg7.js} +894 -895
  8. package/dist/browser/dist-DSe6KRsr.js +1224 -0
  9. package/dist/browser/{dist-DUzA0Ukh.js → dist-DY4qlXTK.js} +140 -141
  10. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  11. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  12. package/dist/browser/dist-DxahK_I8.js +2688 -0
  13. package/dist/browser/{esm-DGQbgYoJ.js → esm-C64_h7HF.js} +58 -59
  14. package/dist/browser/flow-authoring-module.d.ts +2 -2
  15. package/dist/browser/flow-authoring-node.d.ts +17 -7
  16. package/dist/browser/flow-authoring.d.ts +1 -1
  17. package/dist/browser/flow-authoring.js +5329 -286
  18. package/dist/browser/flow-change-schema.d.ts +3 -0
  19. package/dist/browser/flow-change.d.ts +131 -14
  20. package/dist/browser/flow-change.js +5216 -114
  21. package/dist/browser/flow-notifications.d.ts +5 -0
  22. package/dist/browser/flowChanges-BINNGoug.js +12896 -0
  23. package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-NPGePkvP.js} +775 -776
  24. package/dist/browser/flowWorkspace-Dp_b8KXF.js +158409 -0
  25. package/dist/browser/{getPseudoElementBounds-ESJExRFX.js → getPseudoElementBounds-Dfqo78k7.js} +2051 -2542
  26. package/dist/browser/{languages-DgJehE1g.js → languages-i3Xmpt6S.js} +6 -15
  27. package/dist/browser/licenses.md +82 -0
  28. package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BawLYUjh.js} +24 -24
  29. package/dist/browser/select-CbQHq-GM.js +6851 -0
  30. package/dist/browser/theme.css +34 -34
  31. package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-BoV-FDl3.js} +68 -69
  32. package/dist/browser/waitNotificationInputs-fzyKN6mk.js +29 -0
  33. package/dist/browser/workbench-contract.d.ts +8 -2
  34. package/dist/browser/workbench.css +1 -1
  35. package/dist/browser/workbench.d.ts +3 -1
  36. package/dist/browser/workbench.js +1647 -1299
  37. package/dist/browser/workbenchSelect-BjbJjlNd.js +435 -0
  38. package/dist/common/control-api-conformance.d.ts +1 -0
  39. package/dist/common/control-api-conformance.js +309 -81
  40. package/dist/common/control-api-errors.d.ts +12 -0
  41. package/dist/common/control-api.d.ts +95 -23
  42. package/dist/common/control-api.js +567 -364
  43. package/dist/common/engine-contract.d.ts +1 -1
  44. package/dist/common/flow-encoding.js +33 -15
  45. package/dist/common/flow-graph.d.ts +6 -0
  46. package/dist/common/flow-modules.d.ts +20 -0
  47. package/dist/common/flow-notifications.d.ts +5 -0
  48. package/dist/common/flow-schema.d.ts +8 -0
  49. package/dist/common/flow-semantics.d.ts +7 -5
  50. package/dist/common/flow-semantics.js +8880 -1702
  51. package/dist/common/integration-trigger.d.ts +2 -0
  52. package/dist/common/provider-triggers.js +4 -1
  53. package/dist/common/run-events.d.ts +2 -2
  54. package/dist/common/run-events.js +10 -16
  55. package/dist/common/run-lifecycle.d.ts +17 -2
  56. package/dist/common/run-lifecycle.js +53 -2
  57. package/dist/common/runtime-contract.d.ts +10 -2
  58. package/dist/common/runtime-contract.js +143 -6
  59. package/dist/common/scheduler.d.ts +52 -13
  60. package/dist/common/scheduler.js +7315 -242
  61. package/dist/index.d.ts +6 -5
  62. package/package.json +1 -1
  63. package/dist/browser/createResourceDialog-DXQz0thK.js +0 -504
  64. package/dist/browser/diagnostics-BGoGFvHA.js +0 -9237
  65. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  66. package/dist/browser/dist-BpopSHwP.js +0 -1543
  67. package/dist/browser/dist-CUSrALSX.js +0 -1620
  68. package/dist/browser/flowWorkspace-DwyxAOBH.js +0 -47615
  69. package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
@@ -1,14 +1,13 @@
1
- import { s as e } from "./dist-BpopSHwP.js";
2
- import { r as t } from "./dist-BKuSVKCC.js";
3
- import { M as n, t as r } from "./dist-CUSrALSX.js";
4
- import { n as i } from "./flowWorkspace-DwyxAOBH.js";
1
+ import { r as e } from "./dist-BKuSVKCC.js";
2
+ import { I as t, j as n, t as r } from "./dist-DxahK_I8.js";
3
+ import { r as i } from "./flowWorkspace-Dp_b8KXF.js";
5
4
  //#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
6
- var a = (e) => {
7
- var i = e.theme, a = e.settings, o = a === void 0 ? {} : a, s = e.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};
5
+ var a = (t) => {
6
+ var i = t.theme, a = t.settings, o = a === void 0 ? {} : a, s = t.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};
8
7
  o.background && (u.backgroundColor = o.background), o.backgroundImage && (u.backgroundImage = o.backgroundImage), o.foreground && (u.color = o.foreground), o.fontSize && (u.fontSize = o.fontSize), (o.background || o.foreground) && (l["&"] = u), o.fontFamily && (l["&.cm-editor .cm-scroller"] = { fontFamily: o.fontFamily }), o.gutterBackground && (l[".cm-gutters"].backgroundColor = o.gutterBackground), o.gutterForeground && (l[".cm-gutters"].color = o.gutterForeground), o.gutterBorder && (l[".cm-gutters"].borderRightColor = o.gutterBorder), o.caret && (l[".cm-content"] = { caretColor: o.caret }, l[".cm-cursor, .cm-dropCursor"] = { borderLeftColor: o.caret });
9
8
  var d = {};
10
9
  o.gutterActiveForeground && (d.color = o.gutterActiveForeground), o.lineHighlight && (l[".cm-activeLine"] = { backgroundColor: o.lineHighlight }, d.backgroundColor = o.lineHighlight), l[".cm-activeLineGutter"] = d, o.selection && (l["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"] = { background: o.selection + " !important" }), o.selectionMatch && (l["& .cm-selectionMatch"] = { backgroundColor: o.selectionMatch });
11
- var f = t.theme(l, { dark: i === "dark" }), p = r.define(c);
10
+ var f = e.theme(l, { dark: i === "dark" }), p = r.define(c);
12
11
  return [f, n(p)];
13
12
  }, o = {
14
13
  background: "#fff",
@@ -19,89 +18,89 @@ var a = (e) => {
19
18
  gutterForeground: "#6e7781"
20
19
  }, s = [
21
20
  {
22
- tag: [e.standard(e.tagName), e.tagName],
21
+ tag: [t.standard(t.tagName), t.tagName],
23
22
  color: "#116329"
24
23
  },
25
24
  {
26
- tag: [e.comment, e.bracket],
25
+ tag: [t.comment, t.bracket],
27
26
  color: "#6a737d"
28
27
  },
29
28
  {
30
- tag: [e.className, e.propertyName],
29
+ tag: [t.className, t.propertyName],
31
30
  color: "#6f42c1"
32
31
  },
33
32
  {
34
33
  tag: [
35
- e.variableName,
36
- e.attributeName,
37
- e.number,
38
- e.operator
34
+ t.variableName,
35
+ t.attributeName,
36
+ t.number,
37
+ t.operator
39
38
  ],
40
39
  color: "#005cc5"
41
40
  },
42
41
  {
43
42
  tag: [
44
- e.keyword,
45
- e.typeName,
46
- e.typeOperator,
47
- e.typeName
43
+ t.keyword,
44
+ t.typeName,
45
+ t.typeOperator,
46
+ t.typeName
48
47
  ],
49
48
  color: "#d73a49"
50
49
  },
51
50
  {
52
51
  tag: [
53
- e.string,
54
- e.meta,
55
- e.regexp
52
+ t.string,
53
+ t.meta,
54
+ t.regexp
56
55
  ],
57
56
  color: "#032f62"
58
57
  },
59
58
  {
60
- tag: [e.name, e.quote],
59
+ tag: [t.name, t.quote],
61
60
  color: "#22863a"
62
61
  },
63
62
  {
64
- tag: [e.heading, e.strong],
63
+ tag: [t.heading, t.strong],
65
64
  color: "#24292e",
66
65
  fontWeight: "bold"
67
66
  },
68
67
  {
69
- tag: [e.emphasis],
68
+ tag: [t.emphasis],
70
69
  color: "#24292e",
71
70
  fontStyle: "italic"
72
71
  },
73
72
  {
74
- tag: [e.deleted],
73
+ tag: [t.deleted],
75
74
  color: "#b31d28",
76
75
  backgroundColor: "ffeef0"
77
76
  },
78
77
  {
79
78
  tag: [
80
- e.atom,
81
- e.bool,
82
- e.special(e.variableName)
79
+ t.atom,
80
+ t.bool,
81
+ t.special(t.variableName)
83
82
  ],
84
83
  color: "#e36209"
85
84
  },
86
85
  {
87
86
  tag: [
88
- e.url,
89
- e.escape,
90
- e.regexp,
91
- e.link
87
+ t.url,
88
+ t.escape,
89
+ t.regexp,
90
+ t.link
92
91
  ],
93
92
  color: "#032f62"
94
93
  },
95
94
  {
96
- tag: e.link,
95
+ tag: t.link,
97
96
  textDecoration: "underline"
98
97
  },
99
98
  {
100
- tag: e.strikethrough,
99
+ tag: t.strikethrough,
101
100
  textDecoration: "line-through"
102
101
  },
103
102
  {
104
- tag: e.invalid,
103
+ tag: t.invalid,
105
104
  color: "#cb2431"
106
105
  }
107
106
  ], c = (e) => {
@@ -120,80 +119,80 @@ var a = (e) => {
120
119
  lineHighlight: "#36334280"
121
120
  }, d = [
122
121
  {
123
- tag: [e.standard(e.tagName), e.tagName],
122
+ tag: [t.standard(t.tagName), t.tagName],
124
123
  color: "#7ee787"
125
124
  },
126
125
  {
127
- tag: [e.comment, e.bracket],
126
+ tag: [t.comment, t.bracket],
128
127
  color: "#8b949e"
129
128
  },
130
129
  {
131
- tag: [e.className, e.propertyName],
130
+ tag: [t.className, t.propertyName],
132
131
  color: "#d2a8ff"
133
132
  },
134
133
  {
135
134
  tag: [
136
- e.variableName,
137
- e.attributeName,
138
- e.number,
139
- e.operator
135
+ t.variableName,
136
+ t.attributeName,
137
+ t.number,
138
+ t.operator
140
139
  ],
141
140
  color: "#79c0ff"
142
141
  },
143
142
  {
144
143
  tag: [
145
- e.keyword,
146
- e.typeName,
147
- e.typeOperator,
148
- e.typeName
144
+ t.keyword,
145
+ t.typeName,
146
+ t.typeOperator,
147
+ t.typeName
149
148
  ],
150
149
  color: "#ff7b72"
151
150
  },
152
151
  {
153
152
  tag: [
154
- e.string,
155
- e.meta,
156
- e.regexp
153
+ t.string,
154
+ t.meta,
155
+ t.regexp
157
156
  ],
158
157
  color: "#a5d6ff"
159
158
  },
160
159
  {
161
- tag: [e.name, e.quote],
160
+ tag: [t.name, t.quote],
162
161
  color: "#7ee787"
163
162
  },
164
163
  {
165
- tag: [e.heading, e.strong],
164
+ tag: [t.heading, t.strong],
166
165
  color: "#d2a8ff",
167
166
  fontWeight: "bold"
168
167
  },
169
168
  {
170
- tag: [e.emphasis],
169
+ tag: [t.emphasis],
171
170
  color: "#d2a8ff",
172
171
  fontStyle: "italic"
173
172
  },
174
173
  {
175
- tag: [e.deleted],
174
+ tag: [t.deleted],
176
175
  color: "#ffdcd7",
177
176
  backgroundColor: "ffeef0"
178
177
  },
179
178
  {
180
179
  tag: [
181
- e.atom,
182
- e.bool,
183
- e.special(e.variableName)
180
+ t.atom,
181
+ t.bool,
182
+ t.special(t.variableName)
184
183
  ],
185
184
  color: "#ffab70"
186
185
  },
187
186
  {
188
- tag: e.link,
187
+ tag: t.link,
189
188
  textDecoration: "underline"
190
189
  },
191
190
  {
192
- tag: e.strikethrough,
191
+ tag: t.strikethrough,
193
192
  textDecoration: "line-through"
194
193
  },
195
194
  {
196
- tag: e.invalid,
195
+ tag: t.invalid,
197
196
  color: "#f97583"
198
197
  }
199
198
  ], f = (e) => {
@@ -1,4 +1,4 @@
1
1
  import type { ChangeOperation } from './flow-change.js';
2
2
  export declare function imports(source: string): Promise<readonly string[]>;
3
- export declare function replaceSource(moduleId: string, source: string, moduleImports: readonly string[]): readonly ChangeOperation[];
4
- export declare function rename(moduleId: string, name: string): readonly ChangeOperation[];
3
+ export declare function replaceSource(moduleId: string, beforeSource: string, beforeImports: readonly string[], source: string, moduleImports: readonly string[]): readonly ChangeOperation[];
4
+ export declare function rename(moduleId: string, before: string, name: string): readonly ChangeOperation[];
@@ -1,6 +1,5 @@
1
- import type { ChangeOperation, CodeModule, GraphTarget, JsonValue, PortDefinition, RevisionContent, TaskDefinition, TriggerKeySnapshot, TriggerNode, TriggerSchedule, WebhookOptions } from './flow-change.js';
1
+ import type { ChangeOperation, CodeModule, ConnectorCapability, GraphNode, GraphTarget, InputMapping, JsonValue, PortDefinition, RevisionContent, TaskDefinition, TriggerKeySnapshot, TriggerNode, TriggerSchedule, WebhookOptions } from './flow-change.js';
2
2
  export interface Settings {
3
- readonly concurrency: number;
4
3
  readonly name?: string;
5
4
  readonly timeoutMs?: number;
6
5
  }
@@ -9,11 +8,15 @@ export interface LlmTaskOptions {
9
8
  readonly output?: PortDefinition;
10
9
  }
11
10
  export type LlmInputHandle = 'input' | 'messages' | 'model' | 'template';
11
+ export declare function defaultNodeName(content: RevisionContent, node: GraphNode): string;
12
+ export declare function repairNodeNames(content: RevisionContent): readonly ChangeOperation[];
12
13
  interface TriggerSettingsBase {
13
14
  readonly description?: string;
14
15
  readonly name: string;
15
16
  }
16
17
  export type TriggerSettings = (TriggerSettingsBase & {
18
+ readonly kind: 'manual';
19
+ }) | (TriggerSettingsBase & {
17
20
  readonly inputs: Extract<TriggerNode, {
18
21
  readonly kind: 'webhook';
19
22
  }>['inputsDef'];
@@ -35,7 +38,7 @@ export declare function createCodeTask(target: GraphTarget, identity: {
35
38
  readonly nodeId: string;
36
39
  }, name: string, module?: Pick<CodeModule, 'imports' | 'source'> | undefined, ports?: Pick<Extract<TaskDefinition, {
37
40
  readonly moduleId: string;
38
- }>, 'inputs' | 'outputs'>): readonly ChangeOperation[];
41
+ }>, 'inputs' | 'outputs' | 'capabilities'>): readonly ChangeOperation[];
39
42
  export declare function createManagedTask(target: GraphTarget, identity: {
40
43
  readonly nodeId: string;
41
44
  readonly taskId: string;
@@ -48,10 +51,13 @@ export declare function createLlmTask(target: GraphTarget, identity: {
48
51
  }, name: string, mode: 'chat' | 'json', outputDescription: string, options?: LlmTaskOptions): readonly ChangeOperation[];
49
52
  export declare function createCondition(target: GraphTarget, nodeId: string, name: string): readonly ChangeOperation[];
50
53
  export declare function createValue(target: GraphTarget, nodeId: string, name: string): readonly ChangeOperation[];
54
+ export declare function createWait(target: Extract<GraphTarget, {
55
+ readonly kind: 'flow';
56
+ }>, nodeId: string, name: string): readonly ChangeOperation[];
51
57
  export declare function createBuiltinTrigger(target: Extract<GraphTarget, {
52
58
  readonly kind: 'flow';
53
59
  }>, nodeId: string, node: Extract<TriggerNode, {
54
- readonly kind: 'cron' | 'webhook';
60
+ readonly kind: 'cron' | 'manual' | 'webhook';
55
61
  }>): readonly ChangeOperation[];
56
62
  export declare function createProviderTrigger(target: Extract<GraphTarget, {
57
63
  readonly kind: 'flow';
@@ -60,7 +66,7 @@ export declare function createProviderTrigger(target: Extract<GraphTarget, {
60
66
  readonly nodeId: string;
61
67
  }, definition: TriggerKeySnapshot, options: {
62
68
  readonly config: Readonly<Record<string, JsonValue>>;
63
- readonly connectionId: string;
69
+ readonly connectionId?: string;
64
70
  readonly name?: string;
65
71
  readonly schedule?: readonly TriggerSchedule[];
66
72
  }): readonly ChangeOperation[];
@@ -68,19 +74,23 @@ export declare function deleteNodes(content: RevisionContent, target: GraphTarge
68
74
  export declare function updateSettings(content: RevisionContent, target: GraphTarget, nodeId: string, settings: Settings): readonly ChangeOperation[] | undefined;
69
75
  export declare function setInputValue(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
70
76
  export declare function setInputValues(content: RevisionContent, target: GraphTarget, nodeId: string, values: Readonly<Record<string, JsonValue | undefined>>): readonly ChangeOperation[] | undefined;
77
+ export declare function setInputSources(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, sources: Extract<InputMapping, {
78
+ readonly kind: 'sources';
79
+ }>['sources']): readonly ChangeOperation[];
71
80
  export declare function setInputVariable(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, name: string, bindingId: string): readonly ChangeOperation[] | undefined;
72
81
  export declare function cleanVariableBindings(content: RevisionContent, operations: readonly ChangeOperation[]): readonly ChangeOperation[];
73
82
  export declare function setConnectorConnection(content: RevisionContent, taskId: string, connectionId: string): readonly ChangeOperation[] | undefined;
74
83
  export declare function updateTrigger(content: RevisionContent, target: {
75
84
  readonly kind: 'flow';
76
85
  }, nodeId: string, settings: TriggerSettings): readonly ChangeOperation[] | undefined;
77
- export declare function updateTriggerConfig(content: RevisionContent, target: {
86
+ export declare function updateTriggerConfig(content: RevisionContent, _target: {
78
87
  readonly kind: 'flow';
79
88
  }, nodeId: string, name: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
80
- export declare function updateTriggerSchedule(content: RevisionContent, target: {
89
+ export declare function updateTriggerSchedule(content: RevisionContent, _target: {
81
90
  readonly kind: 'flow';
82
91
  }, nodeId: string, schedule: readonly TriggerSchedule[]): readonly ChangeOperation[] | undefined;
83
92
  export declare function setTriggerConnection(content: RevisionContent, _target: {
84
93
  readonly kind: 'flow';
85
94
  }, nodeId: string, connectionId: string): readonly ChangeOperation[] | undefined;
95
+ export declare function setCodeActions(content: RevisionContent, target: GraphTarget, nodeId: string, capabilities: readonly ConnectorCapability[]): readonly ChangeOperation[] | undefined;
86
96
  export {};
@@ -1,4 +1,4 @@
1
1
  export declare const createAuthoringId: (size?: number) => string;
2
2
  export { connect, disconnect } from './flow-authoring-edge.js';
3
3
  export { imports as moduleImports, rename as renameModule, replaceSource as replaceModuleSource } from './flow-authoring-module.js';
4
- export { createBuiltinTrigger, createCodeTask, createCondition, createLlmTask, createManagedTask, createProviderTrigger, createValue, deleteNodes, cleanVariableBindings, setConnectorConnection, setInputVariable, setInputValues, setTriggerConnection, updateSettings, updateTrigger, } from './flow-authoring-node.js';
4
+ export { createBuiltinTrigger, createCodeTask, createCondition, createLlmTask, createManagedTask, createProviderTrigger, createValue, createWait, deleteNodes, cleanVariableBindings, setConnectorConnection, setCodeActions, setInputSources, setInputVariable, setInputValues, setTriggerConnection, updateSettings, updateTrigger, } from './flow-authoring-node.js';