@oomol-lab/open-flow 0.1.0-beta.10 → 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.
- package/dist/browser/DesignerIcon-ckcKnxxJ.js +2267 -0
- package/dist/browser/createResourceDialog-DhIU-HYW.js +111 -0
- package/dist/browser/{dist-meg_oHVR.js → dist-BZ5PTFAs.js} +335 -335
- package/dist/browser/dist-Bmb2mZvW.js +795 -0
- package/dist/browser/{dist-Cc0y2Pli.js → dist-Ce71Szg7.js} +622 -622
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/{dist-Dg_VXC8f.js → dist-DY4qlXTK.js} +134 -134
- package/dist/browser/{esm-yhVU_KbQ.js → esm-C64_h7HF.js} +59 -59
- package/dist/browser/flow-authoring-node.d.ts +11 -4
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +5018 -275
- package/dist/browser/flow-change-schema.d.ts +3 -0
- package/dist/browser/flow-change.d.ts +21 -8
- package/dist/browser/flow-change.js +5030 -155
- package/dist/browser/{flowChanges-B2ttnaj9.js → flowChanges-BINNGoug.js} +4397 -3766
- package/dist/browser/{flowRunInputEditorStore-DDidwd8h.js → flowRunInputEditorStore-NPGePkvP.js} +679 -689
- package/dist/browser/flowWorkspace-Dp_b8KXF.js +158409 -0
- package/dist/browser/{getPseudoElementBounds-5LArT6Xc.js → getPseudoElementBounds-Dfqo78k7.js} +691 -687
- package/dist/browser/{languages-DgJehE1g.js → languages-i3Xmpt6S.js} +6 -15
- package/dist/browser/licenses.md +82 -0
- package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-BawLYUjh.js} +23 -23
- package/dist/browser/select-CbQHq-GM.js +6851 -0
- package/dist/browser/theme.css +34 -34
- package/dist/browser/{typeScriptSession-_TgJ_7Oq.js → typeScriptSession-BoV-FDl3.js} +257 -257
- package/dist/browser/waitNotificationInputs-fzyKN6mk.js +29 -0
- package/dist/browser/workbench-contract.d.ts +8 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +1256 -1006
- package/dist/browser/workbenchSelect-BjbJjlNd.js +435 -0
- package/dist/common/control-api-conformance.js +234 -85
- package/dist/common/control-api.d.ts +37 -10
- package/dist/common/control-api.js +421 -342
- package/dist/common/engine-contract.d.ts +1 -1
- package/dist/common/flow-encoding.js +9 -7
- package/dist/common/flow-graph.d.ts +6 -0
- package/dist/common/flow-modules.d.ts +20 -0
- package/dist/common/flow-schema.d.ts +8 -0
- package/dist/common/flow-semantics.d.ts +6 -5
- package/dist/common/flow-semantics.js +14651 -9824
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +8 -15
- package/dist/common/runtime-contract.d.ts +9 -1
- package/dist/common/runtime-contract.js +137 -27
- package/dist/common/scheduler.d.ts +11 -33
- package/dist/common/scheduler.js +7227 -428
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
- package/dist/browser/DesignerIcon-DjgOMYI5.js +0 -2065
- package/dist/browser/createResourceDialog-DNBueSYZ.js +0 -505
- package/dist/browser/dist-BMRLCebL.js +0 -1893
- package/dist/browser/flowWorkspace-Dr8-Hut9.js +0 -45541
- package/dist/browser/icons-KIOgjHpD.js +0 -730
- package/dist/browser/waitNotificationInputs-BPulOxYt.js +0 -26
- package/dist/browser/workbenchSelect-CbXrdwxW.js +0 -1375
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r } from "./dist-
|
|
3
|
-
import { r as i } from "./flowWorkspace-
|
|
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";
|
|
4
4
|
//#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
|
|
5
|
-
var a = (
|
|
6
|
-
var i =
|
|
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 = {};
|
|
7
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 });
|
|
8
8
|
var d = {};
|
|
9
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 });
|
|
10
|
-
var f =
|
|
11
|
-
return [f,
|
|
10
|
+
var f = e.theme(l, { dark: i === "dark" }), p = r.define(c);
|
|
11
|
+
return [f, n(p)];
|
|
12
12
|
}, o = {
|
|
13
13
|
background: "#fff",
|
|
14
14
|
foreground: "#24292e",
|
|
@@ -18,89 +18,89 @@ var a = (e) => {
|
|
|
18
18
|
gutterForeground: "#6e7781"
|
|
19
19
|
}, s = [
|
|
20
20
|
{
|
|
21
|
-
tag: [
|
|
21
|
+
tag: [t.standard(t.tagName), t.tagName],
|
|
22
22
|
color: "#116329"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
tag: [
|
|
25
|
+
tag: [t.comment, t.bracket],
|
|
26
26
|
color: "#6a737d"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
tag: [
|
|
29
|
+
tag: [t.className, t.propertyName],
|
|
30
30
|
color: "#6f42c1"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
tag: [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
t.variableName,
|
|
35
|
+
t.attributeName,
|
|
36
|
+
t.number,
|
|
37
|
+
t.operator
|
|
38
38
|
],
|
|
39
39
|
color: "#005cc5"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
tag: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
t.keyword,
|
|
44
|
+
t.typeName,
|
|
45
|
+
t.typeOperator,
|
|
46
|
+
t.typeName
|
|
47
47
|
],
|
|
48
48
|
color: "#d73a49"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
tag: [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
t.string,
|
|
53
|
+
t.meta,
|
|
54
|
+
t.regexp
|
|
55
55
|
],
|
|
56
56
|
color: "#032f62"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
tag: [
|
|
59
|
+
tag: [t.name, t.quote],
|
|
60
60
|
color: "#22863a"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
tag: [
|
|
63
|
+
tag: [t.heading, t.strong],
|
|
64
64
|
color: "#24292e",
|
|
65
65
|
fontWeight: "bold"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
tag: [
|
|
68
|
+
tag: [t.emphasis],
|
|
69
69
|
color: "#24292e",
|
|
70
70
|
fontStyle: "italic"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
tag: [
|
|
73
|
+
tag: [t.deleted],
|
|
74
74
|
color: "#b31d28",
|
|
75
75
|
backgroundColor: "ffeef0"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
tag: [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
t.atom,
|
|
80
|
+
t.bool,
|
|
81
|
+
t.special(t.variableName)
|
|
82
82
|
],
|
|
83
83
|
color: "#e36209"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
tag: [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
t.url,
|
|
88
|
+
t.escape,
|
|
89
|
+
t.regexp,
|
|
90
|
+
t.link
|
|
91
91
|
],
|
|
92
92
|
color: "#032f62"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
tag:
|
|
95
|
+
tag: t.link,
|
|
96
96
|
textDecoration: "underline"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
tag:
|
|
99
|
+
tag: t.strikethrough,
|
|
100
100
|
textDecoration: "line-through"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
tag:
|
|
103
|
+
tag: t.invalid,
|
|
104
104
|
color: "#cb2431"
|
|
105
105
|
}
|
|
106
106
|
], c = (e) => {
|
|
@@ -119,80 +119,80 @@ var a = (e) => {
|
|
|
119
119
|
lineHighlight: "#36334280"
|
|
120
120
|
}, d = [
|
|
121
121
|
{
|
|
122
|
-
tag: [
|
|
122
|
+
tag: [t.standard(t.tagName), t.tagName],
|
|
123
123
|
color: "#7ee787"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
tag: [
|
|
126
|
+
tag: [t.comment, t.bracket],
|
|
127
127
|
color: "#8b949e"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
tag: [
|
|
130
|
+
tag: [t.className, t.propertyName],
|
|
131
131
|
color: "#d2a8ff"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
tag: [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
t.variableName,
|
|
136
|
+
t.attributeName,
|
|
137
|
+
t.number,
|
|
138
|
+
t.operator
|
|
139
139
|
],
|
|
140
140
|
color: "#79c0ff"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
tag: [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
t.keyword,
|
|
145
|
+
t.typeName,
|
|
146
|
+
t.typeOperator,
|
|
147
|
+
t.typeName
|
|
148
148
|
],
|
|
149
149
|
color: "#ff7b72"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
tag: [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
t.string,
|
|
154
|
+
t.meta,
|
|
155
|
+
t.regexp
|
|
156
156
|
],
|
|
157
157
|
color: "#a5d6ff"
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
|
-
tag: [
|
|
160
|
+
tag: [t.name, t.quote],
|
|
161
161
|
color: "#7ee787"
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
|
-
tag: [
|
|
164
|
+
tag: [t.heading, t.strong],
|
|
165
165
|
color: "#d2a8ff",
|
|
166
166
|
fontWeight: "bold"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
tag: [
|
|
169
|
+
tag: [t.emphasis],
|
|
170
170
|
color: "#d2a8ff",
|
|
171
171
|
fontStyle: "italic"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
tag: [
|
|
174
|
+
tag: [t.deleted],
|
|
175
175
|
color: "#ffdcd7",
|
|
176
176
|
backgroundColor: "ffeef0"
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
tag: [
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
t.atom,
|
|
181
|
+
t.bool,
|
|
182
|
+
t.special(t.variableName)
|
|
183
183
|
],
|
|
184
184
|
color: "#ffab70"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
|
-
tag:
|
|
187
|
+
tag: t.link,
|
|
188
188
|
textDecoration: "underline"
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
|
-
tag:
|
|
191
|
+
tag: t.strikethrough,
|
|
192
192
|
textDecoration: "line-through"
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
tag:
|
|
195
|
+
tag: t.invalid,
|
|
196
196
|
color: "#f97583"
|
|
197
197
|
}
|
|
198
198
|
], f = (e) => {
|
|
@@ -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;
|
|
@@ -54,7 +57,7 @@ export declare function createWait(target: Extract<GraphTarget, {
|
|
|
54
57
|
export declare function createBuiltinTrigger(target: Extract<GraphTarget, {
|
|
55
58
|
readonly kind: 'flow';
|
|
56
59
|
}>, nodeId: string, node: Extract<TriggerNode, {
|
|
57
|
-
readonly kind: 'cron' | 'webhook';
|
|
60
|
+
readonly kind: 'cron' | 'manual' | 'webhook';
|
|
58
61
|
}>): readonly ChangeOperation[];
|
|
59
62
|
export declare function createProviderTrigger(target: Extract<GraphTarget, {
|
|
60
63
|
readonly kind: 'flow';
|
|
@@ -71,6 +74,9 @@ export declare function deleteNodes(content: RevisionContent, target: GraphTarge
|
|
|
71
74
|
export declare function updateSettings(content: RevisionContent, target: GraphTarget, nodeId: string, settings: Settings): readonly ChangeOperation[] | undefined;
|
|
72
75
|
export declare function setInputValue(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, value: JsonValue | undefined): readonly ChangeOperation[] | undefined;
|
|
73
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[];
|
|
74
80
|
export declare function setInputVariable(content: RevisionContent, target: GraphTarget, nodeId: string, handle: string, name: string, bindingId: string): readonly ChangeOperation[] | undefined;
|
|
75
81
|
export declare function cleanVariableBindings(content: RevisionContent, operations: readonly ChangeOperation[]): readonly ChangeOperation[];
|
|
76
82
|
export declare function setConnectorConnection(content: RevisionContent, taskId: string, connectionId: string): readonly ChangeOperation[] | undefined;
|
|
@@ -86,4 +92,5 @@ export declare function updateTriggerSchedule(content: RevisionContent, _target:
|
|
|
86
92
|
export declare function setTriggerConnection(content: RevisionContent, _target: {
|
|
87
93
|
readonly kind: 'flow';
|
|
88
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;
|
|
89
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, createWait, 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';
|