@oomol-lab/open-flow 0.1.0-beta.2 → 0.1.0-beta.20

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 (93) hide show
  1. package/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
  2. package/dist/browser/carbon-Cn-DTyjG.js +54 -0
  3. package/dist/browser/createResourceDialog-DlrAMxmo.js +110 -0
  4. package/dist/browser/dist-B_T-OpQp.js +4 -0
  5. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  6. package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
  7. package/dist/browser/dist-DSe6KRsr.js +1224 -0
  8. package/dist/browser/dist-DYjIVIZC.js +795 -0
  9. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  10. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  11. package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
  12. package/dist/browser/dist-DxahK_I8.js +2688 -0
  13. package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
  14. package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
  15. package/dist/browser/{esm-B_PbUobB.js → esm-B7A42FzW.js} +68 -59
  16. package/dist/browser/flow-authoring-module.d.ts +2 -2
  17. package/dist/browser/flow-authoring-node.d.ts +20 -6
  18. package/dist/browser/flow-authoring.d.ts +1 -1
  19. package/dist/browser/flow-authoring.js +5405 -286
  20. package/dist/browser/flow-change-schema.d.ts +6 -0
  21. package/dist/browser/flow-change.d.ts +173 -14
  22. package/dist/browser/flow-change.js +5271 -114
  23. package/dist/browser/flow-notifications.d.ts +5 -0
  24. package/dist/browser/flowChanges-jX3KYcb0.js +11020 -0
  25. package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-BBqQIOCR.js} +1020 -4104
  26. package/dist/browser/flowWorkspace-BIYwslVl.js +148497 -0
  27. package/dist/browser/host-conformance.d.ts +7 -0
  28. package/dist/browser/host-conformance.js +33 -0
  29. package/dist/browser/{diagnostics-giPSzyMo.js → i18n-CVBh0Ni1.js} +3390 -5715
  30. package/dist/browser/inputValues-BWfRHJWC.js +43 -0
  31. package/dist/browser/{languages-DgJehE1g.js → languages-C0zQ4GSo.js} +5 -25
  32. package/dist/browser/licenses.md +149 -700
  33. package/dist/browser/main-BDnNHhkU.js +50 -0
  34. package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BBgH9ZIV.js} +41 -41
  35. package/dist/browser/theme.css +461 -34
  36. package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
  37. package/dist/browser/ui-input.d.ts +3 -0
  38. package/dist/browser/ui-label.d.ts +3 -0
  39. package/dist/browser/ui-textarea.d.ts +3 -0
  40. package/dist/browser/ui.css +2 -0
  41. package/dist/browser/ui.css.d.ts +1 -0
  42. package/dist/browser/ui.d.ts +12 -0
  43. package/dist/browser/ui.js +2598 -0
  44. package/dist/browser/useValueChanged-BY05Usw-.js +2944 -0
  45. package/dist/browser/workbench-contract.d.ts +8 -2
  46. package/dist/browser/workbench.css +1 -1
  47. package/dist/browser/workbench.d.ts +1 -0
  48. package/dist/browser/workbench.js +2043 -1327
  49. package/dist/browser/workbenchSelect-CwP6rphY.js +11666 -0
  50. package/dist/common/control-api-conformance.d.ts +7 -0
  51. package/dist/common/control-api-conformance.js +5568 -166
  52. package/dist/common/control-api-errors.d.ts +9 -0
  53. package/dist/common/control-api.d.ts +309 -38
  54. package/dist/common/control-api.js +5817 -576
  55. package/dist/common/control-requests.d.ts +68 -0
  56. package/dist/common/control-requests.js +4950 -0
  57. package/dist/common/engine-contract.d.ts +3 -1
  58. package/dist/common/flow-agent.d.ts +10 -0
  59. package/dist/common/flow-encoding.d.ts +5 -2
  60. package/dist/common/flow-encoding.js +4820 -66
  61. package/dist/common/flow-graph.d.ts +6 -0
  62. package/dist/common/flow-json.d.ts +2 -0
  63. package/dist/common/flow-modules.d.ts +20 -0
  64. package/dist/common/flow-notifications.d.ts +5 -0
  65. package/dist/common/flow-schema.d.ts +8 -0
  66. package/dist/common/flow-semantics.d.ts +10 -6
  67. package/dist/common/flow-semantics.js +9982 -1701
  68. package/dist/common/integration-trigger.d.ts +24 -1
  69. package/dist/common/integration-trigger.js +188 -52
  70. package/dist/common/mcp-conformance.d.ts +2 -0
  71. package/dist/common/mcp.d.ts +765 -0
  72. package/dist/common/mcp.js +6477 -0
  73. package/dist/common/provider-triggers.js +5996 -993
  74. package/dist/common/run-events.d.ts +2 -2
  75. package/dist/common/run-events.js +12 -17
  76. package/dist/common/run-lifecycle.d.ts +21 -2
  77. package/dist/common/run-lifecycle.js +83 -2
  78. package/dist/common/run-results.d.ts +57 -0
  79. package/dist/common/runtime-contract.d.ts +36 -3
  80. package/dist/common/runtime-contract.js +227 -19
  81. package/dist/common/scheduler.d.ts +77 -18
  82. package/dist/common/scheduler.js +8259 -248
  83. package/dist/index.d.ts +6 -5
  84. package/package.json +21 -1
  85. package/dist/browser/carbon-DMCVsjHo.js +0 -53
  86. package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
  87. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  88. package/dist/browser/dist-BpopSHwP.js +0 -1543
  89. package/dist/browser/dist-CUSrALSX.js +0 -1620
  90. package/dist/browser/flowWorkspace-DAMLVMcF.js +0 -47584
  91. package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
  92. package/dist/browser/main-DmjVyuWr.js +0 -76
  93. package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
@@ -1,14 +1,23 @@
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-DAMLVMcF.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
+ //#region ../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
4
+ function i() {
5
+ return i = Object.assign ? Object.assign.bind() : function(e) {
6
+ for (var t = 1; t < arguments.length; t++) {
7
+ var n = arguments[t];
8
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
9
+ }
10
+ return e;
11
+ }, i.apply(null, arguments);
12
+ }
13
+ //#endregion
5
14
  //#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 = {};
15
+ var a = (t) => {
16
+ 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
17
  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
18
  var d = {};
10
19
  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);
20
+ var f = e.theme(l, { dark: i === "dark" }), p = r.define(c);
12
21
  return [f, n(p)];
13
22
  }, o = {
14
23
  background: "#fff",
@@ -19,89 +28,89 @@ var a = (e) => {
19
28
  gutterForeground: "#6e7781"
20
29
  }, s = [
21
30
  {
22
- tag: [e.standard(e.tagName), e.tagName],
31
+ tag: [t.standard(t.tagName), t.tagName],
23
32
  color: "#116329"
24
33
  },
25
34
  {
26
- tag: [e.comment, e.bracket],
35
+ tag: [t.comment, t.bracket],
27
36
  color: "#6a737d"
28
37
  },
29
38
  {
30
- tag: [e.className, e.propertyName],
39
+ tag: [t.className, t.propertyName],
31
40
  color: "#6f42c1"
32
41
  },
33
42
  {
34
43
  tag: [
35
- e.variableName,
36
- e.attributeName,
37
- e.number,
38
- e.operator
44
+ t.variableName,
45
+ t.attributeName,
46
+ t.number,
47
+ t.operator
39
48
  ],
40
49
  color: "#005cc5"
41
50
  },
42
51
  {
43
52
  tag: [
44
- e.keyword,
45
- e.typeName,
46
- e.typeOperator,
47
- e.typeName
53
+ t.keyword,
54
+ t.typeName,
55
+ t.typeOperator,
56
+ t.typeName
48
57
  ],
49
58
  color: "#d73a49"
50
59
  },
51
60
  {
52
61
  tag: [
53
- e.string,
54
- e.meta,
55
- e.regexp
62
+ t.string,
63
+ t.meta,
64
+ t.regexp
56
65
  ],
57
66
  color: "#032f62"
58
67
  },
59
68
  {
60
- tag: [e.name, e.quote],
69
+ tag: [t.name, t.quote],
61
70
  color: "#22863a"
62
71
  },
63
72
  {
64
- tag: [e.heading, e.strong],
73
+ tag: [t.heading, t.strong],
65
74
  color: "#24292e",
66
75
  fontWeight: "bold"
67
76
  },
68
77
  {
69
- tag: [e.emphasis],
78
+ tag: [t.emphasis],
70
79
  color: "#24292e",
71
80
  fontStyle: "italic"
72
81
  },
73
82
  {
74
- tag: [e.deleted],
83
+ tag: [t.deleted],
75
84
  color: "#b31d28",
76
85
  backgroundColor: "ffeef0"
77
86
  },
78
87
  {
79
88
  tag: [
80
- e.atom,
81
- e.bool,
82
- e.special(e.variableName)
89
+ t.atom,
90
+ t.bool,
91
+ t.special(t.variableName)
83
92
  ],
84
93
  color: "#e36209"
85
94
  },
86
95
  {
87
96
  tag: [
88
- e.url,
89
- e.escape,
90
- e.regexp,
91
- e.link
97
+ t.url,
98
+ t.escape,
99
+ t.regexp,
100
+ t.link
92
101
  ],
93
102
  color: "#032f62"
94
103
  },
95
104
  {
96
- tag: e.link,
105
+ tag: t.link,
97
106
  textDecoration: "underline"
98
107
  },
99
108
  {
100
- tag: e.strikethrough,
109
+ tag: t.strikethrough,
101
110
  textDecoration: "line-through"
102
111
  },
103
112
  {
104
- tag: e.invalid,
113
+ tag: t.invalid,
105
114
  color: "#cb2431"
106
115
  }
107
116
  ], c = (e) => {
@@ -120,80 +129,80 @@ var a = (e) => {
120
129
  lineHighlight: "#36334280"
121
130
  }, d = [
122
131
  {
123
- tag: [e.standard(e.tagName), e.tagName],
132
+ tag: [t.standard(t.tagName), t.tagName],
124
133
  color: "#7ee787"
125
134
  },
126
135
  {
127
- tag: [e.comment, e.bracket],
136
+ tag: [t.comment, t.bracket],
128
137
  color: "#8b949e"
129
138
  },
130
139
  {
131
- tag: [e.className, e.propertyName],
140
+ tag: [t.className, t.propertyName],
132
141
  color: "#d2a8ff"
133
142
  },
134
143
  {
135
144
  tag: [
136
- e.variableName,
137
- e.attributeName,
138
- e.number,
139
- e.operator
145
+ t.variableName,
146
+ t.attributeName,
147
+ t.number,
148
+ t.operator
140
149
  ],
141
150
  color: "#79c0ff"
142
151
  },
143
152
  {
144
153
  tag: [
145
- e.keyword,
146
- e.typeName,
147
- e.typeOperator,
148
- e.typeName
154
+ t.keyword,
155
+ t.typeName,
156
+ t.typeOperator,
157
+ t.typeName
149
158
  ],
150
159
  color: "#ff7b72"
151
160
  },
152
161
  {
153
162
  tag: [
154
- e.string,
155
- e.meta,
156
- e.regexp
163
+ t.string,
164
+ t.meta,
165
+ t.regexp
157
166
  ],
158
167
  color: "#a5d6ff"
159
168
  },
160
169
  {
161
- tag: [e.name, e.quote],
170
+ tag: [t.name, t.quote],
162
171
  color: "#7ee787"
163
172
  },
164
173
  {
165
- tag: [e.heading, e.strong],
174
+ tag: [t.heading, t.strong],
166
175
  color: "#d2a8ff",
167
176
  fontWeight: "bold"
168
177
  },
169
178
  {
170
- tag: [e.emphasis],
179
+ tag: [t.emphasis],
171
180
  color: "#d2a8ff",
172
181
  fontStyle: "italic"
173
182
  },
174
183
  {
175
- tag: [e.deleted],
184
+ tag: [t.deleted],
176
185
  color: "#ffdcd7",
177
186
  backgroundColor: "ffeef0"
178
187
  },
179
188
  {
180
189
  tag: [
181
- e.atom,
182
- e.bool,
183
- e.special(e.variableName)
190
+ t.atom,
191
+ t.bool,
192
+ t.special(t.variableName)
184
193
  ],
185
194
  color: "#ffab70"
186
195
  },
187
196
  {
188
- tag: e.link,
197
+ tag: t.link,
189
198
  textDecoration: "underline"
190
199
  },
191
200
  {
192
- tag: e.strikethrough,
201
+ tag: t.strikethrough,
193
202
  textDecoration: "line-through"
194
203
  },
195
204
  {
196
- tag: e.invalid,
205
+ tag: t.invalid,
197
206
  color: "#f97583"
198
207
  }
199
208
  ], 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,23 +38,30 @@ 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;
42
45
  }, task: Extract<TaskDefinition, {
43
46
  readonly executor: unknown;
44
47
  }>): readonly ChangeOperation[];
48
+ export declare function createAgentTask(target: GraphTarget, identity: {
49
+ readonly nodeId: string;
50
+ readonly taskId: string;
51
+ }, name: string): readonly ChangeOperation[];
45
52
  export declare function createLlmTask(target: GraphTarget, identity: {
46
53
  readonly nodeId: string;
47
54
  readonly taskId: string;
48
55
  }, name: string, mode: 'chat' | 'json', outputDescription: string, options?: LlmTaskOptions): readonly ChangeOperation[];
49
56
  export declare function createCondition(target: GraphTarget, nodeId: string, name: string): readonly ChangeOperation[];
50
57
  export declare function createValue(target: GraphTarget, nodeId: string, name: string): readonly ChangeOperation[];
58
+ export declare function createWait(target: Extract<GraphTarget, {
59
+ readonly kind: 'flow';
60
+ }>, nodeId: string, name: string): readonly ChangeOperation[];
51
61
  export declare function createBuiltinTrigger(target: Extract<GraphTarget, {
52
62
  readonly kind: 'flow';
53
63
  }>, nodeId: string, node: Extract<TriggerNode, {
54
- readonly kind: 'cron' | 'webhook';
64
+ readonly kind: 'cron' | 'manual' | 'webhook';
55
65
  }>): readonly ChangeOperation[];
56
66
  export declare function createProviderTrigger(target: Extract<GraphTarget, {
57
67
  readonly kind: 'flow';
@@ -68,19 +78,23 @@ export declare function deleteNodes(content: RevisionContent, target: GraphTarge
68
78
  export declare function updateSettings(content: RevisionContent, target: GraphTarget, nodeId: string, settings: Settings): readonly ChangeOperation[] | undefined;
69
79
  export declare function setInputValue(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
70
80
  export declare function setInputValues(content: RevisionContent, target: GraphTarget, nodeId: string, values: Readonly<Record<string, JsonValue | undefined>>): readonly ChangeOperation[] | undefined;
81
+ export declare function setInputSources(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, sources: Extract<InputMapping, {
82
+ readonly kind: 'sources';
83
+ }>['sources']): readonly ChangeOperation[];
71
84
  export declare function setInputVariable(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, name: string, bindingId: string): readonly ChangeOperation[] | undefined;
72
85
  export declare function cleanVariableBindings(content: RevisionContent, operations: readonly ChangeOperation[]): readonly ChangeOperation[];
73
86
  export declare function setConnectorConnection(content: RevisionContent, taskId: string, connectionId: string): readonly ChangeOperation[] | undefined;
74
87
  export declare function updateTrigger(content: RevisionContent, target: {
75
88
  readonly kind: 'flow';
76
89
  }, nodeId: string, settings: TriggerSettings): readonly ChangeOperation[] | undefined;
77
- export declare function updateTriggerConfig(content: RevisionContent, target: {
90
+ export declare function updateTriggerConfig(content: RevisionContent, _target: {
78
91
  readonly kind: 'flow';
79
92
  }, nodeId: string, name: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
80
- export declare function updateTriggerSchedule(content: RevisionContent, target: {
93
+ export declare function updateTriggerSchedule(content: RevisionContent, _target: {
81
94
  readonly kind: 'flow';
82
95
  }, nodeId: string, schedule: readonly TriggerSchedule[]): readonly ChangeOperation[] | undefined;
83
96
  export declare function setTriggerConnection(content: RevisionContent, _target: {
84
97
  readonly kind: 'flow';
85
98
  }, nodeId: string, connectionId: string): readonly ChangeOperation[] | undefined;
99
+ export declare function setCodeActions(content: RevisionContent, target: GraphTarget, nodeId: string, capabilities: readonly ConnectorCapability[]): readonly ChangeOperation[] | undefined;
86
100
  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, createAgentTask, createLlmTask, createManagedTask, createProviderTrigger, createValue, createWait, deleteNodes, cleanVariableBindings, setConnectorConnection, setCodeActions, setInputSources, setInputVariable, setInputValues, setTriggerConnection, updateSettings, updateTrigger, } from './flow-authoring-node.js';