@oomol-lab/open-flow 0.1.0-beta.30 → 0.1.0-beta.31
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/{createResourceDialog-_y2xHaUA.js → createResourceDialog-FBRnCMK6.js} +1 -1
- package/dist/browser/{editorComponent-Dq4IKp5R.js → editorComponent-CyH2o-Ji.js} +21 -0
- package/dist/browser/flow-authoring.js +68 -72
- package/dist/browser/flow-change.d.ts +3 -3
- package/dist/browser/flow-change.js +796 -792
- package/dist/browser/{flowChanges-AdN0Iqma.js → flowChanges-ScpWTKtQ.js} +581 -592
- package/dist/browser/{flowWorkspace-BrtzLKWB.js → flowWorkspace-CY1r6dwz.js} +26551 -26516
- package/dist/browser/{inputValues-DJfFraxG.js → inputValues-C21gYJuc.js} +1 -1
- package/dist/browser/ui.css +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +6 -6
- package/dist/browser/{workbenchSelect-BDPIQxYK.js → workbenchSelect-DAaGuZwP.js} +110 -106
- package/dist/common/control-api-conformance.js +80 -78
- package/dist/common/control-api.d.ts +15 -1
- package/dist/common/control-api.js +158 -153
- package/dist/common/control-requests.d.ts +6 -0
- package/dist/common/control-requests.js +761 -772
- package/dist/common/flow-encoding.js +757 -752
- package/dist/common/flow-semantics.js +260 -263
- package/dist/common/mcp.d.ts +1 -0
- package/dist/common/mcp.js +120 -114
- package/dist/common/provider-triggers.js +1284 -1283
- package/dist/common/scheduler.d.ts +7 -1
- package/dist/common/scheduler.js +696 -690
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e } from "./main-BDnNHhkU.js";
|
|
2
2
|
import { Bn as t, kt as n } from "./lite-BuKZ8joP.js";
|
|
3
|
-
import { a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, p, r as m, s as h, t as g } from "./workbenchSelect-
|
|
3
|
+
import { a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, p, r as m, s as h, t as g } from "./workbenchSelect-DAaGuZwP.js";
|
|
4
4
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
5
5
|
import { useEffect as b, useRef as x, useState as S } from "react";
|
|
6
6
|
//#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
|
|
@@ -6852,6 +6852,8 @@ var ot = (e, t = {}, n = "") => {
|
|
|
6852
6852
|
timelineEmpty: "Run the selected Draft to inspect its timeline and output.",
|
|
6853
6853
|
submitting: "Submitting this fixed revision and creating its run record…",
|
|
6854
6854
|
waiting: "Waiting for the first event…",
|
|
6855
|
+
waitComment: "Comment (optional)",
|
|
6856
|
+
waitCommentTooLong: "Use at most 2,000 characters.",
|
|
6855
6857
|
waitExpires: "Expires {{date}}",
|
|
6856
6858
|
savedResults: "Saved tool results",
|
|
6857
6859
|
refreshResults: "Refresh",
|
|
@@ -7273,6 +7275,7 @@ var ot = (e, t = {}, n = "") => {
|
|
|
7273
7275
|
needsSetupDescription: "Add or reauthorize an account to use these apps.",
|
|
7274
7276
|
clearSearch: "Clear search",
|
|
7275
7277
|
search: "Search nodes, apps, or actions…",
|
|
7278
|
+
searchActions: "Search actions…",
|
|
7276
7279
|
apps: "Apps",
|
|
7277
7280
|
searching: "Searching…",
|
|
7278
7281
|
browseNodes: "Browse all nodes",
|
|
@@ -8013,6 +8016,8 @@ var ot = (e, t = {}, n = "") => {
|
|
|
8013
8016
|
timelineEmpty: "运行当前选中的草稿后,可查看时间线和输出。",
|
|
8014
8017
|
submitting: "正在提交当前固定修订并创建运行记录…",
|
|
8015
8018
|
waiting: "正在等待第一个事件…",
|
|
8019
|
+
waitComment: "备注(可选)",
|
|
8020
|
+
waitCommentTooLong: "备注最多 2,000 个字符。",
|
|
8016
8021
|
waitExpires: "到期时间:{{date}}",
|
|
8017
8022
|
savedResults: "工具执行结果",
|
|
8018
8023
|
refreshResults: "刷新",
|
|
@@ -8434,6 +8439,7 @@ var ot = (e, t = {}, n = "") => {
|
|
|
8434
8439
|
needsSetupDescription: "添加或重新授权账号后即可使用。",
|
|
8435
8440
|
clearSearch: "清空搜索",
|
|
8436
8441
|
search: "搜索节点、应用或操作…",
|
|
8442
|
+
searchActions: "搜索操作…",
|
|
8437
8443
|
apps: "应用",
|
|
8438
8444
|
searching: "正在搜索…",
|
|
8439
8445
|
browseNodes: "浏览全部节点",
|
|
@@ -9174,6 +9180,8 @@ var ot = (e, t = {}, n = "") => {
|
|
|
9174
9180
|
timelineEmpty: "執行選取的草稿後,就可以檢視它的時間軸與輸出。",
|
|
9175
9181
|
submitting: "正在提交這個固定修訂並建立執行紀錄…",
|
|
9176
9182
|
waiting: "正在等待第一個事件…",
|
|
9183
|
+
waitComment: "備註(選填)",
|
|
9184
|
+
waitCommentTooLong: "備註最多 2,000 個字元。",
|
|
9177
9185
|
waitExpires: "到期時間:{{date}}",
|
|
9178
9186
|
savedResults: "Saved tool results",
|
|
9179
9187
|
refreshResults: "Refresh",
|
|
@@ -9595,6 +9603,7 @@ var ot = (e, t = {}, n = "") => {
|
|
|
9595
9603
|
needsSetupDescription: "新增或重新授權帳號後即可使用。",
|
|
9596
9604
|
clearSearch: "清空搜尋",
|
|
9597
9605
|
search: "搜尋節點、應用或操作…",
|
|
9606
|
+
searchActions: "搜尋操作…",
|
|
9598
9607
|
apps: "應用",
|
|
9599
9608
|
searching: "正在搜尋…",
|
|
9600
9609
|
browseNodes: "瀏覽全部節點",
|
|
@@ -10335,6 +10344,8 @@ var ot = (e, t = {}, n = "") => {
|
|
|
10335
10344
|
timelineEmpty: "選択中のドラフトを実行すると、タイムラインと出力を確認できます。",
|
|
10336
10345
|
submitting: "この固定リビジョンを送信し、実行記録を作成しています…",
|
|
10337
10346
|
waiting: "最初のイベントを待っています…",
|
|
10347
|
+
waitComment: "コメント(任意)",
|
|
10348
|
+
waitCommentTooLong: "2,000文字以内で入力してください。",
|
|
10338
10349
|
waitExpires: "期限: {{date}}",
|
|
10339
10350
|
savedResults: "Saved tool results",
|
|
10340
10351
|
refreshResults: "Refresh",
|
|
@@ -10756,6 +10767,7 @@ var ot = (e, t = {}, n = "") => {
|
|
|
10756
10767
|
needsSetupDescription: "アカウントを追加または再認証すると利用できます。",
|
|
10757
10768
|
clearSearch: "検索をクリア",
|
|
10758
10769
|
search: "ノード、アプリ、操作を検索…",
|
|
10770
|
+
searchActions: "操作を検索…",
|
|
10759
10771
|
apps: "アプリ",
|
|
10760
10772
|
searching: "検索中…",
|
|
10761
10773
|
browseNodes: "すべてのノードを表示",
|
|
@@ -11496,6 +11508,8 @@ var ot = (e, t = {}, n = "") => {
|
|
|
11496
11508
|
timelineEmpty: "선택한 초안을 실행하면 타임라인과 출력을 확인할 수 있습니다.",
|
|
11497
11509
|
submitting: "고정된 리비전을 제출하고 실행 기록을 만드는 중…",
|
|
11498
11510
|
waiting: "첫 이벤트를 기다리는 중…",
|
|
11511
|
+
waitComment: "메모 (선택 사항)",
|
|
11512
|
+
waitCommentTooLong: "2,000자 이내로 입력하세요.",
|
|
11499
11513
|
waitExpires: "만료: {{date}}",
|
|
11500
11514
|
savedResults: "Saved tool results",
|
|
11501
11515
|
refreshResults: "Refresh",
|
|
@@ -11917,6 +11931,7 @@ var ot = (e, t = {}, n = "") => {
|
|
|
11917
11931
|
needsSetupDescription: "계정을 추가하거나 다시 인증하면 사용할 수 있습니다.",
|
|
11918
11932
|
clearSearch: "검색 지우기",
|
|
11919
11933
|
search: "노드, 앱 또는 작업 검색…",
|
|
11934
|
+
searchActions: "작업 검색…",
|
|
11920
11935
|
apps: "앱",
|
|
11921
11936
|
searching: "검색 중…",
|
|
11922
11937
|
browseNodes: "모든 노드 보기",
|
|
@@ -12471,6 +12486,8 @@ var ot = (e, t = {}, n = "") => {
|
|
|
12471
12486
|
timelineEmpty: "Запустите выбранный черновик, чтобы посмотреть его хронологию и выходные данные.",
|
|
12472
12487
|
submitting: "Отправка зафиксированной ревизии и создание записи о запуске…",
|
|
12473
12488
|
waiting: "Ожидание первого события…",
|
|
12489
|
+
waitComment: "Комментарий (необязательно)",
|
|
12490
|
+
waitCommentTooLong: "Не более 2 000 символов.",
|
|
12474
12491
|
waitExpires: "Истекает {{date}}",
|
|
12475
12492
|
savedResults: "Saved tool results",
|
|
12476
12493
|
refreshResults: "Refresh",
|
|
@@ -12892,6 +12909,7 @@ var ot = (e, t = {}, n = "") => {
|
|
|
12892
12909
|
needsSetupDescription: "Добавьте аккаунт или повторно авторизуйте его для использования этих приложений.",
|
|
12893
12910
|
clearSearch: "Очистить поиск",
|
|
12894
12911
|
search: "Поиск узлов, приложений и действий…",
|
|
12912
|
+
searchActions: "Поиск действий…",
|
|
12895
12913
|
apps: "Приложения",
|
|
12896
12914
|
searching: "Поиск…",
|
|
12897
12915
|
browseNodes: "Просмотреть все узлы",
|
|
@@ -13491,6 +13509,8 @@ var ot = (e, t = {}, n = "") => {
|
|
|
13491
13509
|
timelineEmpty: "Exécutez le Brouillon sélectionné pour inspecter sa chronologie et sa sortie.",
|
|
13492
13510
|
submitting: "Envoi de cette révision figée et création de son enregistrement d'exécution…",
|
|
13493
13511
|
waiting: "En attente du premier événement…",
|
|
13512
|
+
waitComment: "Commentaire (facultatif)",
|
|
13513
|
+
waitCommentTooLong: "Utilisez au maximum 2 000 caractères.",
|
|
13494
13514
|
waitExpires: "Expire le {{date}}",
|
|
13495
13515
|
savedResults: "Saved tool results",
|
|
13496
13516
|
refreshResults: "Refresh",
|
|
@@ -13912,6 +13932,7 @@ var ot = (e, t = {}, n = "") => {
|
|
|
13912
13932
|
needsSetupDescription: "Ajoutez un compte ou renouvelez son autorisation pour utiliser ces applications.",
|
|
13913
13933
|
clearSearch: "Effacer la recherche",
|
|
13914
13934
|
search: "Rechercher des nœuds, applications ou actions…",
|
|
13935
|
+
searchActions: "Rechercher des actions…",
|
|
13915
13936
|
apps: "Applications",
|
|
13916
13937
|
searching: "Recherche en cours…",
|
|
13917
13938
|
browseNodes: "Parcourir tous les nœuds",
|
|
@@ -4349,7 +4349,10 @@ var Fs = z(V([B({
|
|
|
4349
4349
|
}))
|
|
4350
4350
|
})),
|
|
4351
4351
|
defaultOutput: G.optional()
|
|
4352
|
-
}, Zs = {
|
|
4352
|
+
}, Zs = {
|
|
4353
|
+
inputDefinitions: z(q),
|
|
4354
|
+
prompt: G
|
|
4355
|
+
}, Qs = {
|
|
4353
4356
|
bodyFields: z(q),
|
|
4354
4357
|
options: B({
|
|
4355
4358
|
allowedMethods: Is.optional(),
|
|
@@ -4431,13 +4434,11 @@ var Fs = z(V([B({
|
|
|
4431
4434
|
ns({
|
|
4432
4435
|
...J,
|
|
4433
4436
|
kind: W("approval"),
|
|
4434
|
-
input: q,
|
|
4435
4437
|
...Zs
|
|
4436
4438
|
}).omit({ timeoutMs: !0 }),
|
|
4437
4439
|
ns({
|
|
4438
4440
|
...J,
|
|
4439
4441
|
kind: W("wait"),
|
|
4440
|
-
input: q,
|
|
4441
4442
|
...Zs
|
|
4442
4443
|
}).omit({ timeoutMs: !0 }),
|
|
4443
4444
|
B({
|
|
@@ -4505,16 +4506,16 @@ var Fs = z(V([B({
|
|
|
4505
4506
|
graph: oc,
|
|
4506
4507
|
subflows: H(G, ac.extend({ graph: oc })),
|
|
4507
4508
|
tasks: H(G, Ys)
|
|
4508
|
-
})
|
|
4509
|
+
});
|
|
4510
|
+
B({
|
|
4509
4511
|
modelVersion: V([W(2), W(3)]),
|
|
4510
4512
|
document: lc,
|
|
4511
4513
|
modules: H(G, cc)
|
|
4512
|
-
})
|
|
4513
|
-
uc.extend({ modelVersion: W(3) }), uc.extend({
|
|
4514
|
+
}).extend({
|
|
4514
4515
|
kind: W("open-flow-flow-revision"),
|
|
4515
4516
|
version: W(1)
|
|
4516
4517
|
});
|
|
4517
|
-
var
|
|
4518
|
+
var uc = {
|
|
4518
4519
|
"binding.create": {
|
|
4519
4520
|
bindingId: G,
|
|
4520
4521
|
binding: sc
|
|
@@ -4677,13 +4678,13 @@ var dc = {
|
|
|
4677
4678
|
value: G
|
|
4678
4679
|
}
|
|
4679
4680
|
};
|
|
4680
|
-
z(V([...new Map(Object.entries(
|
|
4681
|
+
z(V([...new Map(Object.entries(uc).map(([e, t]) => [e, t instanceof F ? t : B({
|
|
4681
4682
|
kind: W(e),
|
|
4682
4683
|
...t
|
|
4683
4684
|
})])).values()])).min(1);
|
|
4684
4685
|
//#endregion
|
|
4685
4686
|
//#region src/flow/common/change.ts
|
|
4686
|
-
function
|
|
4687
|
+
function dc(e) {
|
|
4687
4688
|
if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
|
|
4688
4689
|
let t = /* @__PURE__ */ new Set();
|
|
4689
4690
|
return e.map((e) => {
|
|
@@ -4719,20 +4720,20 @@ function fc(e) {
|
|
|
4719
4720
|
};
|
|
4720
4721
|
});
|
|
4721
4722
|
}
|
|
4722
|
-
function
|
|
4723
|
+
function fc(e) {
|
|
4723
4724
|
return e.trim().normalize("NFC");
|
|
4724
4725
|
}
|
|
4725
|
-
function
|
|
4726
|
-
let r =
|
|
4727
|
-
return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null &&
|
|
4726
|
+
function pc(e, t, n) {
|
|
4727
|
+
let r = fc(n);
|
|
4728
|
+
return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && fc(n.name) == r) ? "duplicate" : void 0;
|
|
4728
4729
|
}
|
|
4729
|
-
var
|
|
4730
|
+
var mc = class extends Error {
|
|
4730
4731
|
constructor(e) {
|
|
4731
4732
|
super(e), this.name = "FlowChangeError";
|
|
4732
4733
|
}
|
|
4733
4734
|
};
|
|
4734
4735
|
function X(e) {
|
|
4735
|
-
throw new
|
|
4736
|
+
throw new mc(e);
|
|
4736
4737
|
}
|
|
4737
4738
|
function Z(e, t) {
|
|
4738
4739
|
if (t.kind == "flow") return e.graph;
|
|
@@ -4756,7 +4757,7 @@ function Q(e, t, n) {
|
|
|
4756
4757
|
}
|
|
4757
4758
|
};
|
|
4758
4759
|
}
|
|
4759
|
-
function
|
|
4760
|
+
function hc(e, t) {
|
|
4760
4761
|
let n = { ...e.document }, r = { ...e.modules };
|
|
4761
4762
|
for (let e of t) switch (e.kind) {
|
|
4762
4763
|
case "binding.create":
|
|
@@ -4837,8 +4838,8 @@ function gc(e, t) {
|
|
|
4837
4838
|
}
|
|
4838
4839
|
case "graph.node.create": {
|
|
4839
4840
|
let t = Z(n, e.target);
|
|
4840
|
-
t.nodes[e.nodeId] != null && X("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && X("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && X("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 &&
|
|
4841
|
-
let r =
|
|
4841
|
+
t.nodes[e.nodeId] != null && X("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && X("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && X("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && dc(e.node.task.capabilities), e.node.name ?? X("A Node name cannot be empty.");
|
|
4842
|
+
let r = fc(e.node.name), i = pc(t, e.nodeId, r);
|
|
4842
4843
|
i == "empty" && X("A Node name cannot be empty."), i == "duplicate" && X("A Node with this name already exists in the target graph.");
|
|
4843
4844
|
let a = r == e.node.name ? e.node : {
|
|
4844
4845
|
...e.node,
|
|
@@ -4870,7 +4871,7 @@ function gc(e, t) {
|
|
|
4870
4871
|
let a = { ...r };
|
|
4871
4872
|
if (e.field == "name") {
|
|
4872
4873
|
typeof e.value != "string" && X("A Node name cannot be empty.");
|
|
4873
|
-
let n =
|
|
4874
|
+
let n = fc(e.value), r = pc(t, e.nodeId, n);
|
|
4874
4875
|
r == "empty" && X("A Node name cannot be empty."), r == "duplicate" && X("A Node with this name already exists in the target graph."), Object.assign(a, { name: n });
|
|
4875
4876
|
} else e.value == null ? Reflect.deleteProperty(a, e.field) : Object.assign(a, { [e.field]: e.value });
|
|
4876
4877
|
Object.assign(n, Q(n, e.target, {
|
|
@@ -4902,7 +4903,7 @@ function gc(e, t) {
|
|
|
4902
4903
|
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
4903
4904
|
(r?.kind != "task" || r.task == null) && X("The inline Task Node does not exist."), i(r.task.capabilities, e.before) || X("The inline Task capabilities changed before this operation was applied.");
|
|
4904
4905
|
let a = { ...r.task };
|
|
4905
|
-
e.value === void 0 ? delete a.capabilities : a.capabilities =
|
|
4906
|
+
e.value === void 0 ? delete a.capabilities : a.capabilities = dc(e.value), Object.assign(n, Q(n, e.target, {
|
|
4906
4907
|
...t,
|
|
4907
4908
|
nodes: {
|
|
4908
4909
|
...t.nodes,
|
|
@@ -4972,7 +4973,10 @@ function gc(e, t) {
|
|
|
4972
4973
|
}
|
|
4973
4974
|
case "graph.node.resolution.set": {
|
|
4974
4975
|
let t = n.graph, r = t.nodes[e.nodeId];
|
|
4975
|
-
(r?.kind != "wait" && r?.kind != "approval" || !i({
|
|
4976
|
+
(r?.kind != "wait" && r?.kind != "approval" || !i({
|
|
4977
|
+
inputDefinitions: r.inputDefinitions,
|
|
4978
|
+
prompt: r.prompt
|
|
4979
|
+
}, e.before)) && X("The resolution node changed before this operation was applied.");
|
|
4976
4980
|
let a = {
|
|
4977
4981
|
...r,
|
|
4978
4982
|
...e.value
|
|
@@ -5065,7 +5069,7 @@ function gc(e, t) {
|
|
|
5065
5069
|
}
|
|
5066
5070
|
case "subflow.create":
|
|
5067
5071
|
n.subflows[e.subflowId] != null && X("A Subflow with this ID already exists.");
|
|
5068
|
-
for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 &&
|
|
5072
|
+
for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && dc(t.task.capabilities);
|
|
5069
5073
|
n.subflows = {
|
|
5070
5074
|
...n.subflows,
|
|
5071
5075
|
[e.subflowId]: e.subflow
|
|
@@ -5162,8 +5166,8 @@ function gc(e, t) {
|
|
|
5162
5166
|
}
|
|
5163
5167
|
//#endregion
|
|
5164
5168
|
//#region src/flow/common/nodeChanges.ts
|
|
5165
|
-
var
|
|
5166
|
-
function
|
|
5169
|
+
var gc = "export default async function (inputs, context) {\n return { result: inputs.value }\n}\n";
|
|
5170
|
+
function _c(e, t, n, r = void 0, i = {
|
|
5167
5171
|
inputs: [{
|
|
5168
5172
|
handle: "value",
|
|
5169
5173
|
jsonSchema: {},
|
|
@@ -5181,7 +5185,7 @@ function vc(e, t, n, r = void 0, i = {
|
|
|
5181
5185
|
module: {
|
|
5182
5186
|
...r ?? {
|
|
5183
5187
|
imports: [],
|
|
5184
|
-
source:
|
|
5188
|
+
source: gc
|
|
5185
5189
|
},
|
|
5186
5190
|
name: n
|
|
5187
5191
|
},
|
|
@@ -5189,7 +5193,7 @@ function vc(e, t, n, r = void 0, i = {
|
|
|
5189
5193
|
}, {
|
|
5190
5194
|
kind: "graph.node.create",
|
|
5191
5195
|
node: {
|
|
5192
|
-
inputs:
|
|
5196
|
+
inputs: Ic(i.inputs),
|
|
5193
5197
|
kind: "task",
|
|
5194
5198
|
name: n,
|
|
5195
5199
|
task: {
|
|
@@ -5204,7 +5208,7 @@ function vc(e, t, n, r = void 0, i = {
|
|
|
5204
5208
|
target: e
|
|
5205
5209
|
}];
|
|
5206
5210
|
}
|
|
5207
|
-
function
|
|
5211
|
+
function vc(e, t, n) {
|
|
5208
5212
|
return [{
|
|
5209
5213
|
kind: "task.create",
|
|
5210
5214
|
task: n,
|
|
@@ -5212,7 +5216,7 @@ function yc(e, t, n) {
|
|
|
5212
5216
|
}, {
|
|
5213
5217
|
kind: "graph.node.create",
|
|
5214
5218
|
node: {
|
|
5215
|
-
inputs:
|
|
5219
|
+
inputs: Ic(n.inputs),
|
|
5216
5220
|
kind: "task",
|
|
5217
5221
|
name: n.name,
|
|
5218
5222
|
taskId: t.taskId
|
|
@@ -5221,9 +5225,9 @@ function yc(e, t, n) {
|
|
|
5221
5225
|
target: e
|
|
5222
5226
|
}];
|
|
5223
5227
|
}
|
|
5224
|
-
function
|
|
5228
|
+
function yc(e, t, n) {
|
|
5225
5229
|
if (e.kind != "flow") throw Error("Agent nodes are only supported in the root Flow.");
|
|
5226
|
-
return
|
|
5230
|
+
return vc(e, t, {
|
|
5227
5231
|
name: n,
|
|
5228
5232
|
inputs: [{
|
|
5229
5233
|
handle: "input",
|
|
@@ -5249,9 +5253,9 @@ function bc(e, t, n) {
|
|
|
5249
5253
|
}
|
|
5250
5254
|
});
|
|
5251
5255
|
}
|
|
5252
|
-
function
|
|
5256
|
+
function bc(e, t, n, r, i, a = {}) {
|
|
5253
5257
|
let o = a.inputs ?? {};
|
|
5254
|
-
return
|
|
5258
|
+
return vc(e, t, {
|
|
5255
5259
|
executor: {
|
|
5256
5260
|
kind: "llm",
|
|
5257
5261
|
mode: r
|
|
@@ -5264,13 +5268,13 @@ function xc(e, t, n, r, i, a = {}) {
|
|
|
5264
5268
|
type: "array"
|
|
5265
5269
|
},
|
|
5266
5270
|
nullable: !0,
|
|
5267
|
-
value:
|
|
5271
|
+
value: Lc(o, "messages", null)
|
|
5268
5272
|
},
|
|
5269
5273
|
{
|
|
5270
5274
|
handle: "input",
|
|
5271
5275
|
jsonSchema: { type: "string" },
|
|
5272
5276
|
nullable: !1,
|
|
5273
|
-
value:
|
|
5277
|
+
value: Lc(o, "input", "Alex")
|
|
5274
5278
|
},
|
|
5275
5279
|
{
|
|
5276
5280
|
handle: "template",
|
|
@@ -5280,7 +5284,7 @@ function xc(e, t, n, r, i, a = {}) {
|
|
|
5280
5284
|
type: "array"
|
|
5281
5285
|
},
|
|
5282
5286
|
nullable: !1,
|
|
5283
|
-
value:
|
|
5287
|
+
value: Lc(o, "template", [{
|
|
5284
5288
|
content: "Hello, I'm {{input}}",
|
|
5285
5289
|
role: "user"
|
|
5286
5290
|
}])
|
|
@@ -5289,7 +5293,7 @@ function xc(e, t, n, r, i, a = {}) {
|
|
|
5289
5293
|
handle: "model",
|
|
5290
5294
|
jsonSchema: { type: "object" },
|
|
5291
5295
|
nullable: !1,
|
|
5292
|
-
value:
|
|
5296
|
+
value: Lc(o, "model", { model: "deepseek-v4-flash" })
|
|
5293
5297
|
}
|
|
5294
5298
|
],
|
|
5295
5299
|
name: n,
|
|
@@ -5302,7 +5306,7 @@ function xc(e, t, n, r, i, a = {}) {
|
|
|
5302
5306
|
}]
|
|
5303
5307
|
});
|
|
5304
5308
|
}
|
|
5305
|
-
function
|
|
5309
|
+
function xc(e, t, n) {
|
|
5306
5310
|
return [{
|
|
5307
5311
|
kind: "graph.node.create",
|
|
5308
5312
|
node: {
|
|
@@ -5332,7 +5336,7 @@ function Sc(e, t, n) {
|
|
|
5332
5336
|
target: e
|
|
5333
5337
|
}];
|
|
5334
5338
|
}
|
|
5335
|
-
function
|
|
5339
|
+
function Sc(e, t, n) {
|
|
5336
5340
|
return [{
|
|
5337
5341
|
kind: "graph.node.create",
|
|
5338
5342
|
node: {
|
|
@@ -5350,20 +5354,12 @@ function Cc(e, t, n) {
|
|
|
5350
5354
|
target: e
|
|
5351
5355
|
}];
|
|
5352
5356
|
}
|
|
5353
|
-
function
|
|
5357
|
+
function Cc(e, t, n) {
|
|
5354
5358
|
return [{
|
|
5355
5359
|
kind: "graph.node.create",
|
|
5356
5360
|
node: {
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
jsonSchema: {},
|
|
5360
|
-
nullable: !0,
|
|
5361
|
-
value: null
|
|
5362
|
-
},
|
|
5363
|
-
inputs: { value: {
|
|
5364
|
-
kind: "value",
|
|
5365
|
-
value: null
|
|
5366
|
-
} },
|
|
5361
|
+
inputDefinitions: [],
|
|
5362
|
+
inputs: {},
|
|
5367
5363
|
kind: "wait",
|
|
5368
5364
|
name: n,
|
|
5369
5365
|
prompt: n
|
|
@@ -5372,7 +5368,7 @@ function wc(e, t, n) {
|
|
|
5372
5368
|
target: e
|
|
5373
5369
|
}];
|
|
5374
5370
|
}
|
|
5375
|
-
function
|
|
5371
|
+
function wc(e, t, n) {
|
|
5376
5372
|
return [{
|
|
5377
5373
|
kind: "graph.node.create",
|
|
5378
5374
|
node: n,
|
|
@@ -5380,7 +5376,7 @@ function Tc(e, t, n) {
|
|
|
5380
5376
|
target: e
|
|
5381
5377
|
}];
|
|
5382
5378
|
}
|
|
5383
|
-
function
|
|
5379
|
+
function Tc(e, t, n, r) {
|
|
5384
5380
|
let i = r.name ?? n.displayName, a = n.type == "poll" ? {
|
|
5385
5381
|
bindingId: t.bindingId,
|
|
5386
5382
|
config: r.config,
|
|
@@ -5413,8 +5409,8 @@ function Ec(e, t, n, r) {
|
|
|
5413
5409
|
target: e
|
|
5414
5410
|
}];
|
|
5415
5411
|
}
|
|
5416
|
-
function
|
|
5417
|
-
let r =
|
|
5412
|
+
function Ec(e, t, n) {
|
|
5413
|
+
let r = Fc(e, t)?.nodes;
|
|
5418
5414
|
if (r == null) return [];
|
|
5419
5415
|
let i = new Set(n), a = n.flatMap((e) => {
|
|
5420
5416
|
let n = r[e];
|
|
@@ -5438,8 +5434,8 @@ function Dc(e, t, n) {
|
|
|
5438
5434
|
});
|
|
5439
5435
|
return $(e, a);
|
|
5440
5436
|
}
|
|
5441
|
-
function
|
|
5442
|
-
let i =
|
|
5437
|
+
function Dc(e, t, n, r) {
|
|
5438
|
+
let i = Fc(e, t)?.nodes[n];
|
|
5443
5439
|
if (i == null || !("inputs" in i)) return;
|
|
5444
5440
|
let a = [];
|
|
5445
5441
|
return i.name != r.name && a.push({
|
|
@@ -5465,8 +5461,8 @@ function Oc(e, t, n, r) {
|
|
|
5465
5461
|
value: r.timeoutMs
|
|
5466
5462
|
}), a;
|
|
5467
5463
|
}
|
|
5468
|
-
function
|
|
5469
|
-
let a =
|
|
5464
|
+
function Oc(e, t, n, r) {
|
|
5465
|
+
let a = Fc(e, t)?.nodes[n];
|
|
5470
5466
|
if (a == null || !("inputs" in a)) return;
|
|
5471
5467
|
let o = [];
|
|
5472
5468
|
for (let [e, s] of Object.entries(r)) {
|
|
@@ -5485,7 +5481,7 @@ function kc(e, t, n, r) {
|
|
|
5485
5481
|
}
|
|
5486
5482
|
return $(e, o);
|
|
5487
5483
|
}
|
|
5488
|
-
function
|
|
5484
|
+
function kc(e, t, n, r, i) {
|
|
5489
5485
|
let a = (t.kind == "flow" ? e.document.graph : e.document.subflows[t.id]?.graph)?.nodes[n];
|
|
5490
5486
|
return a == null || !("inputs" in a) ? [] : $(e, [{
|
|
5491
5487
|
kind: "graph.node.input.set",
|
|
@@ -5499,10 +5495,10 @@ function Ac(e, t, n, r, i) {
|
|
|
5499
5495
|
}
|
|
5500
5496
|
}]);
|
|
5501
5497
|
}
|
|
5502
|
-
function
|
|
5503
|
-
let o =
|
|
5498
|
+
function Ac(e, t, n, r, i, a) {
|
|
5499
|
+
let o = Fc(e, t)?.nodes[n];
|
|
5504
5500
|
if (o == null || !("inputs" in o)) return;
|
|
5505
|
-
let s = o.inputs[r], c = s?.kind == "sources" && s.sources.length == 1 && s.sources[0]?.kind == "binding" ? s.sources[0].bindingId : void 0, l = c == null ? void 0 : e.document.bindings[c], u =
|
|
5501
|
+
let s = o.inputs[r], c = s?.kind == "sources" && s.sources.length == 1 && s.sources[0]?.kind == "binding" ? s.sources[0].bindingId : void 0, l = c == null ? void 0 : e.document.bindings[c], u = jc(e.document);
|
|
5506
5502
|
return c != null && l?.kind == "variable" && (u.get(c) ?? 0) == 1 ? l.target == i ? [] : [{
|
|
5507
5503
|
before: l.target,
|
|
5508
5504
|
bindingId: c,
|
|
@@ -5531,13 +5527,13 @@ function jc(e, t, n, r, i, a) {
|
|
|
5531
5527
|
}])];
|
|
5532
5528
|
}
|
|
5533
5529
|
function $(e, t) {
|
|
5534
|
-
let n =
|
|
5530
|
+
let n = jc(e.document), r = hc(e, t), i = jc(r.document);
|
|
5535
5531
|
return [...t, ...[...n.keys()].flatMap((e) => i.has(e) || r.document.bindings[e]?.kind != "variable" ? [] : [{
|
|
5536
5532
|
bindingId: e,
|
|
5537
5533
|
kind: "binding.delete"
|
|
5538
5534
|
}])];
|
|
5539
5535
|
}
|
|
5540
|
-
function
|
|
5536
|
+
function jc(e) {
|
|
5541
5537
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
5542
5538
|
t.set(e, (t.get(e) ?? 0) + 1);
|
|
5543
5539
|
};
|
|
@@ -5548,7 +5544,7 @@ function Mc(e) {
|
|
|
5548
5544
|
}
|
|
5549
5545
|
return t;
|
|
5550
5546
|
}
|
|
5551
|
-
function
|
|
5547
|
+
function Mc(e, t, n) {
|
|
5552
5548
|
let r = e.document.tasks[t];
|
|
5553
5549
|
if (!(r == null || !("executor" in r) || r.executor.kind != "connector")) return r.executor.connectionId == n ? [] : [{
|
|
5554
5550
|
before: r.executor.connectionId,
|
|
@@ -5557,7 +5553,7 @@ function Nc(e, t, n) {
|
|
|
5557
5553
|
value: n
|
|
5558
5554
|
}];
|
|
5559
5555
|
}
|
|
5560
|
-
function
|
|
5556
|
+
function Nc(e, t, n, r) {
|
|
5561
5557
|
let a = e.document.graph.nodes[n];
|
|
5562
5558
|
if (a == null) return;
|
|
5563
5559
|
let o = [];
|
|
@@ -5634,7 +5630,7 @@ function Pc(e, t, n, r) {
|
|
|
5634
5630
|
}
|
|
5635
5631
|
return o;
|
|
5636
5632
|
}
|
|
5637
|
-
function
|
|
5633
|
+
function Pc(e, t, n, r) {
|
|
5638
5634
|
let i = e.document.graph.nodes[n];
|
|
5639
5635
|
if (i == null || i.kind != "poll" && i.kind != "integration") return;
|
|
5640
5636
|
let a = e.document.bindings[i.bindingId];
|
|
@@ -5653,19 +5649,19 @@ function Fc(e, t, n, r) {
|
|
|
5653
5649
|
value: r
|
|
5654
5650
|
}];
|
|
5655
5651
|
}
|
|
5656
|
-
function
|
|
5652
|
+
function Fc(e, t) {
|
|
5657
5653
|
return t.kind == "flow" ? e.document.graph : e.document.subflows[t.id]?.graph;
|
|
5658
5654
|
}
|
|
5659
|
-
function
|
|
5655
|
+
function Ic(e) {
|
|
5660
5656
|
return Object.fromEntries(e.flatMap((e) => "handle" in e && Object.hasOwn(e, "value") ? [[e.handle, {
|
|
5661
5657
|
kind: "value",
|
|
5662
5658
|
value: e.value
|
|
5663
5659
|
}]] : []));
|
|
5664
5660
|
}
|
|
5665
|
-
function
|
|
5661
|
+
function Lc(e, t, n) {
|
|
5666
5662
|
return e != null && Object.hasOwn(e, t) ? e[t] : n;
|
|
5667
5663
|
}
|
|
5668
|
-
function
|
|
5664
|
+
function Rc(e, t, n, r) {
|
|
5669
5665
|
let a = (t.kind == "flow" ? e.document.graph : e.document.subflows[t.id]?.graph)?.nodes[n];
|
|
5670
5666
|
if (!(a?.kind != "task" || a.task == null || i(a.task.capabilities ?? [], r))) return [{
|
|
5671
5667
|
kind: "graph.node.task.capabilities.set",
|
|
@@ -5675,6 +5671,6 @@ function zc(e, t, n, r) {
|
|
|
5675
5671
|
value: r
|
|
5676
5672
|
}];
|
|
5677
5673
|
}
|
|
5678
|
-
var
|
|
5674
|
+
var zc = n("23456789abcdefghjkmnpqrstuvwxyz", 10);
|
|
5679
5675
|
//#endregion
|
|
5680
|
-
export { $ as cleanVariableBindings, a as connect,
|
|
5676
|
+
export { $ as cleanVariableBindings, a as connect, yc as createAgentTask, zc as createAuthoringId, wc as createBuiltinTrigger, _c as createCodeTask, xc as createCondition, bc as createLlmTask, vc as createManagedTask, Tc as createProviderTrigger, Sc as createValue, Cc as createWait, Ec as deleteNodes, o as disconnect, c as moduleImports, u as renameModule, l as replaceModuleSource, Rc as setCodeActions, Mc as setConnectorConnection, kc as setInputSources, Oc as setInputValues, Ac as setInputVariable, Pc as setTriggerConnection, Dc as updateSettings, Nc as updateTrigger };
|
|
@@ -81,7 +81,7 @@ export interface ValueNode extends GraphNodeBase {
|
|
|
81
81
|
}
|
|
82
82
|
export type WaitAction = 'approve' | 'continue' | 'reject';
|
|
83
83
|
interface ResolutionNodeBase extends GraphNodeBase {
|
|
84
|
-
readonly
|
|
84
|
+
readonly inputDefinitions: readonly InputPort[];
|
|
85
85
|
readonly prompt: string;
|
|
86
86
|
readonly timeoutMs?: never;
|
|
87
87
|
}
|
|
@@ -387,13 +387,13 @@ export type ChangeOperation = {
|
|
|
387
387
|
readonly target: GraphTarget;
|
|
388
388
|
readonly value: readonly InputPort[];
|
|
389
389
|
} | {
|
|
390
|
-
readonly before: Pick<ResolutionNode, 'prompt'>;
|
|
390
|
+
readonly before: Pick<ResolutionNode, 'inputDefinitions' | 'prompt'>;
|
|
391
391
|
readonly kind: 'graph.node.resolution.set';
|
|
392
392
|
readonly nodeId: string;
|
|
393
393
|
readonly target: Extract<GraphTarget, {
|
|
394
394
|
readonly kind: 'flow';
|
|
395
395
|
}>;
|
|
396
|
-
readonly value: Pick<ResolutionNode, 'prompt'>;
|
|
396
|
+
readonly value: Pick<ResolutionNode, 'inputDefinitions' | 'prompt'>;
|
|
397
397
|
} | {
|
|
398
398
|
readonly before: Pick<Extract<TriggerNode, {
|
|
399
399
|
readonly kind: 'webhook';
|