@oomol-lab/open-flow 0.1.0-beta.13 → 0.1.0-beta.15
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-Cdixb0WC.js → createResourceDialog-mW21KMfJ.js} +2 -2
- package/dist/browser/{esm-nAA6DHox.js → esm-DOipoo54.js} +1 -1
- package/dist/browser/flow-authoring.js +1 -1
- package/dist/browser/flow-change.js +1 -1
- package/dist/browser/{flowChanges-CX0dLRzD.js → flowChanges-DYV6OEQd.js} +3 -9
- package/dist/browser/{flowWorkspace-BhpxeXhY.js → flowWorkspace-wssXq1cX.js} +18 -29
- package/dist/browser/{inputValues-CFlfnXlS.js → inputValues-CEe8GspD.js} +1 -1
- package/dist/browser/{select-DCGY8Lom.js → select-DIMWIiL5.js} +1 -1
- package/dist/browser/workbench.js +5 -5
- package/dist/browser/{workbenchSelect-DdXtOYD1.js → workbenchSelect-NZCIKdkk.js} +1 -1
- package/dist/common/control-api-conformance.js +3 -2
- package/dist/common/control-api.js +56 -40
- package/dist/common/control-requests.js +1 -1
- package/dist/common/flow-encoding.js +1 -1
- package/dist/common/flow-semantics.js +1 -1
- package/dist/common/mcp.js +1 -1
- package/dist/common/run-results.d.ts +1 -0
- package/dist/common/scheduler.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./main-DmjVyuWr.js";
|
|
2
2
|
import { Vn as t, jt as n } from "./getPseudoElementBounds-Dfqo78k7.js";
|
|
3
|
-
import { B as r, H as i, L as a, U as o, V as s, W as c, c as l, d as u, h as d, l as f, m as p, p as m, u as h } from "./select-
|
|
4
|
-
import { t as g } from "./workbenchSelect-
|
|
3
|
+
import { B as r, H as i, L as a, U as o, V as s, W as c, c as l, d as u, h as d, l as f, m as p, p as m, u as h } from "./select-DIMWIiL5.js";
|
|
4
|
+
import { t as g } from "./workbenchSelect-NZCIKdkk.js";
|
|
5
5
|
import { useEffect as _, useRef as v, useState as y } from "react";
|
|
6
6
|
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
7
7
|
//#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./dist-BKuSVKCC.js";
|
|
2
2
|
import { I as t, j as n, t as r } from "./dist-DxahK_I8.js";
|
|
3
|
-
import { r as i } from "./flowWorkspace-
|
|
3
|
+
import { r as i } from "./flowWorkspace-wssXq1cX.js";
|
|
4
4
|
//#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
|
|
5
5
|
var a = (t) => {
|
|
6
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 = {};
|
|
@@ -4622,7 +4622,7 @@ var G = To(), K = Bs(), Vs = z(G), Hs = B({
|
|
|
4622
4622
|
outputs: z(Hs.extend({ sources: z(V([Ws, Gs])) }))
|
|
4623
4623
|
}), fc = B({
|
|
4624
4624
|
nodes: H(G, cc),
|
|
4625
|
-
edges: z(uc)
|
|
4625
|
+
edges: z(uc).default([])
|
|
4626
4626
|
}), pc = B({
|
|
4627
4627
|
kind: U(["connection", "variable"]),
|
|
4628
4628
|
target: G
|
|
@@ -4656,7 +4656,7 @@ var K = Mo(), q = qs(), Ys = B(K), Xs = V({
|
|
|
4656
4656
|
outputs: B(Xs.extend({ sources: B(H([Qs, $s])) }))
|
|
4657
4657
|
}), xc = V({
|
|
4658
4658
|
nodes: U(K, _c),
|
|
4659
|
-
edges: B(yc)
|
|
4659
|
+
edges: B(yc).default([])
|
|
4660
4660
|
}), Sc = V({
|
|
4661
4661
|
kind: W(["connection", "variable"]),
|
|
4662
4662
|
target: K
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, f as t, t as n } from "./dist-C46JByB-.js";
|
|
2
2
|
import { Kn as r, Ot as i, Un as a, Vn as o, Wn as s, jt as c, nr as l } from "./getPseudoElementBounds-Dfqo78k7.js";
|
|
3
|
-
import { A as u, D as d, E as f, F as p, I as m, M as h, N as g, O as _, P as v, S as ee, T as te, c as ne, j as re, k as ie, v as ae, w as oe, x as se, y as ce } from "./select-
|
|
3
|
+
import { A as u, D as d, E as f, F as p, I as m, M as h, N as g, O as _, P as v, S as ee, T as te, c as ne, j as re, k as ie, v as ae, w as oe, x as se, y as ce } from "./select-DIMWIiL5.js";
|
|
4
4
|
import { R as le, _ as ue, c as de, d as fe, f as pe, n as me, p as he, u as ge } from "./DesignerIcon-Bzpx8BtG.js";
|
|
5
5
|
import { i as _e, n as ve } from "./languages-i3Xmpt6S.js";
|
|
6
6
|
import { a as ye, c as y, r as be } from "./dist-CP0883sY.js";
|
|
@@ -60,7 +60,8 @@ var Ee = ie(), De = v({
|
|
|
60
60
|
v({
|
|
61
61
|
pointer: p().max(4096).default(""),
|
|
62
62
|
offset: h().int().nonnegative().default(0),
|
|
63
|
-
limit: h().int().min(1).max(100).default(20)
|
|
63
|
+
limit: h().int().min(1).max(100).default(20),
|
|
64
|
+
maxBytes: h().int().min(1).max(1048576).default(15e3)
|
|
64
65
|
});
|
|
65
66
|
var Ae = v({
|
|
66
67
|
version: re(1),
|
|
@@ -2042,7 +2043,6 @@ var Dt = class {
|
|
|
2042
2043
|
execution: "Execution",
|
|
2043
2044
|
auto: "Run automatically",
|
|
2044
2045
|
confirm: "Confirm before running",
|
|
2045
|
-
chooseExecution: "Choose how this tool runs",
|
|
2046
2046
|
executionHint: "Choose whether each call runs directly or waits for your confirmation.",
|
|
2047
2047
|
modelParameters: "The Agent fills the parameters from the task.",
|
|
2048
2048
|
parameters: "Advanced parameter settings",
|
|
@@ -2797,7 +2797,6 @@ var Dt = class {
|
|
|
2797
2797
|
execution: "执行方式",
|
|
2798
2798
|
auto: "自动执行",
|
|
2799
2799
|
confirm: "执行前确认",
|
|
2800
|
-
chooseExecution: "选择执行方式",
|
|
2801
2800
|
executionHint: "选择直接执行,或每次调用前由你确认。",
|
|
2802
2801
|
modelParameters: "参数由 Agent 根据任务填写。",
|
|
2803
2802
|
parameters: "高级参数设置",
|
|
@@ -3552,7 +3551,6 @@ var Dt = class {
|
|
|
3552
3551
|
execution: "執行方式",
|
|
3553
3552
|
auto: "自動執行",
|
|
3554
3553
|
confirm: "執行前確認",
|
|
3555
|
-
chooseExecution: "選擇執行方式",
|
|
3556
3554
|
executionHint: "選擇直接執行,或每次呼叫前由你確認。",
|
|
3557
3555
|
modelParameters: "參數由 Agent 根據任務填寫。",
|
|
3558
3556
|
parameters: "進階參數設定",
|
|
@@ -4307,7 +4305,6 @@ var Dt = class {
|
|
|
4307
4305
|
execution: "実行方法",
|
|
4308
4306
|
auto: "自動実行",
|
|
4309
4307
|
confirm: "実行前に確認",
|
|
4310
|
-
chooseExecution: "実行方法を選択",
|
|
4311
4308
|
executionHint: "そのまま実行するか、呼び出しごとに確認するかを選択します。",
|
|
4312
4309
|
modelParameters: "Agent がタスクに応じてパラメーターを入力します。",
|
|
4313
4310
|
parameters: "パラメーターの詳細設定",
|
|
@@ -5062,7 +5059,6 @@ var Dt = class {
|
|
|
5062
5059
|
execution: "실행 방식",
|
|
5063
5060
|
auto: "자동 실행",
|
|
5064
5061
|
confirm: "실행 전 확인",
|
|
5065
|
-
chooseExecution: "실행 방식 선택",
|
|
5066
5062
|
executionHint: "즉시 실행할지, 호출할 때마다 확인할지 선택하세요.",
|
|
5067
5063
|
modelParameters: "Agent가 작업에 따라 매개변수를 입력합니다.",
|
|
5068
5064
|
parameters: "고급 매개변수 설정",
|
|
@@ -5817,7 +5813,6 @@ var Dt = class {
|
|
|
5817
5813
|
execution: "Способ выполнения",
|
|
5818
5814
|
auto: "Выполнять автоматически",
|
|
5819
5815
|
confirm: "Подтверждать перед выполнением",
|
|
5820
|
-
chooseExecution: "Выберите способ выполнения",
|
|
5821
5816
|
executionHint: "Выберите прямое выполнение или подтверждение каждого вызова.",
|
|
5822
5817
|
modelParameters: "Агент заполняет параметры по задаче.",
|
|
5823
5818
|
parameters: "Расширенные параметры",
|
|
@@ -6572,7 +6567,6 @@ var Dt = class {
|
|
|
6572
6567
|
execution: "Mode d’exécution",
|
|
6573
6568
|
auto: "Exécuter automatiquement",
|
|
6574
6569
|
confirm: "Confirmer avant d’exécuter",
|
|
6575
|
-
chooseExecution: "Choisir le mode d’exécution",
|
|
6576
6570
|
executionHint: "Choisissez une exécution directe ou une confirmation à chaque appel.",
|
|
6577
6571
|
modelParameters: "L’Agent remplit les paramètres selon la tâche.",
|
|
6578
6572
|
parameters: "Paramètres avancés",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as e, o as t, r as n, t as r } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
2
|
import { a as i, c as a, d as o, f as s, i as c, l, n as u, r as d, s as f, t as p, u as m } from "./dist-C46JByB-.js";
|
|
3
3
|
import { a as h, c as g, i as _, n as v, o as y, r as b, s as x, t as S } from "./main-DmjVyuWr.js";
|
|
4
|
-
import { A as C, E as w, K as T, R as E, at as D, ct as O, dt as k, et as A, ft as j, gt as M, i as ee, it as N, lt as P, n as te, nt as ne, ot as F, rt as I, st as L, tt as re, ut as ie } from "./flowChanges-
|
|
4
|
+
import { A as C, E as w, K as T, R as E, at as D, ct as O, dt as k, et as A, ft as j, gt as M, i as ee, it as N, lt as P, n as te, nt as ne, ot as F, rt as I, st as L, tt as re, ut as ie } from "./flowChanges-DYV6OEQd.js";
|
|
5
5
|
import { $ as R, $n as ae, $t as oe, A as z, At as se, B as ce, Bn as le, C as ue, D as de, Dn as fe, Dt as pe, E as me, Et as he, Fn as ge, Ft as _e, Gn as ve, Gt as ye, H as be, Hn as xe, I as Se, In as Ce, Jn as we, Jt as Te, K as Ee, Kn as De, Kt as Oe, L as ke, Ln as Ae, M as je, Mt as Me, Nn as Ne, Nt as Pe, O as Fe, On as Ie, Ot as Le, P as Re, Q as ze, Qn as Be, Qt as Ve, Rn as He, Rt as Ue, S as We, St as Ge, Tt as Ke, U as qe, Un as Je, V as Ye, Vn as Xe, Vt as Ze, W as Qe, Wn as $e, X as et, Xt as tt, Y as nt, Yn as rt, Yt as it, Z as at, Zn as ot, Zt as st, _ as ct, _n as B, _t as lt, a as V, ar as ut, at as dt, b as ft, bn as pt, bt as mt, c as ht, ct as gt, d as _t, dn as vt, dr as yt, dt as bt, en as xt, et as St, f as Ct, fn as wt, ft as Tt, g as Et, gn as Dt, h as Ot, hn as kt, ht as At, i as jt, in as Mt, it as Nt, j as Pt, jt as Ft, k as It, kn as Lt, kt as Rt, l as zt, ln as Bt, lr as Vt, mn as Ht, n as Ut, nn as Wt, nr as Gt, nt as Kt, o as qt, or as Jt, ot as Yt, p as Xt, pn as Zt, pt as Qt, qn as $t, r as en, rn as tn, rr as nn, rt as rn, s as an, sr as on, st as sn, tr as cn, un as ln, v as un, vt as dn, w as fn, wt as pn, x as mn, y as hn, yn as gn, yt as _n, z as vn, zn as yn } from "./getPseudoElementBounds-Dfqo78k7.js";
|
|
6
|
-
import { B as bn, H as xn, L as Sn, R as Cn, U as wn, V as Tn, W as En, a as Dn, b as On, c as H, d as kn, g as An, h as jn, i as Mn, l as Nn, n as Pn, o as Fn, r as In, s as Ln, t as Rn, w as zn, z as Bn } from "./select-
|
|
6
|
+
import { B as bn, H as xn, L as Sn, R as Cn, U as wn, V as Tn, W as En, a as Dn, b as On, c as H, d as kn, g as An, h as jn, i as Mn, l as Nn, n as Pn, o as Fn, r as In, s as Ln, t as Rn, w as zn, z as Bn } from "./select-DIMWIiL5.js";
|
|
7
7
|
import { A as Vn, B as Hn, C as Un, D as Wn, E as Gn, F as Kn, I as qn, L as Jn, M as Yn, N as Xn, O as Zn, P as Qn, R as $n, S as er, T as tr, _ as nr, a as rr, b as ir, c as ar, d as or, f as sr, g as cr, h as lr, i as ur, j as dr, k as fr, l as pr, m as mr, o as hr, p as gr, r as _r, s as vr, t as yr, u as br, v as xr, w as Sr, x as Cr, y as wr, z as Tr } from "./DesignerIcon-Bzpx8BtG.js";
|
|
8
8
|
import { n as Er } from "./languages-i3Xmpt6S.js";
|
|
9
9
|
import { a as Dr, i as Or, n as kr, r as Ar, s as jr, t as Mr } from "./dist-CP0883sY.js";
|
|
@@ -135793,7 +135793,7 @@ var yM = class {
|
|
|
135793
135793
|
}
|
|
135794
135794
|
return !0;
|
|
135795
135795
|
}
|
|
135796
|
-
}, bM = Za(async () => ({ default: (await import("./inputValues-
|
|
135796
|
+
}, bM = Za(async () => ({ default: (await import("./inputValues-CEe8GspD.js")).InputValues }));
|
|
135797
135797
|
function xM({ source: e, port: t, inputs: n, model: r, theme: i, onChange: a, onValidChange: o, onCommit: s, labelledBy: c }) {
|
|
135798
135798
|
let l = h(), u = _(), d = oo({
|
|
135799
135799
|
onChange: a,
|
|
@@ -135900,7 +135900,7 @@ function xM({ source: e, port: t, inputs: n, model: r, theme: i, onChange: a, on
|
|
|
135900
135900
|
] });
|
|
135901
135901
|
}
|
|
135902
135902
|
function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a }) {
|
|
135903
|
-
let o = h(), [s, c] = so(e.executor), [l, u] = so(), [d, f] = so(), [p, m] = so(), [g, _] = so(), [v] = so(n.$.flowId.value), [y] = so(() => new yM(e.executor, async (e, r) => {
|
|
135903
|
+
let o = h(), [s, c] = so(e.executor), [l, u] = so(), [d, f] = so(), [p, m] = so(!1), [g, _] = so(), [v] = so(n.$.flowId.value), [y] = so(() => new yM(e.executor, async (e, r) => {
|
|
135904
135904
|
if (n.$.flowId.value != v) return !1;
|
|
135905
135905
|
let i = n.$.revision.value?.node({ kind: "flow" }, t), a = i?.kind == "task" ? i.definition : void 0;
|
|
135906
135906
|
if (a == null || !("executor" in a) || !Le(a.executor, e)) return !1;
|
|
@@ -135960,7 +135960,7 @@ function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a
|
|
|
135960
135960
|
S({
|
|
135961
135961
|
...s,
|
|
135962
135962
|
tools: [...s.tools, te(e, t, crypto.randomUUID())]
|
|
135963
|
-
}), f(void 0), m(
|
|
135963
|
+
}), f(void 0), m(!1);
|
|
135964
135964
|
};
|
|
135965
135965
|
return /* @__PURE__ */ G("form", {
|
|
135966
135966
|
className: "inspector-section inspector-form agent-form",
|
|
@@ -136220,7 +136220,7 @@ function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a
|
|
|
136220
136220
|
connectors: r,
|
|
136221
136221
|
disabled: i,
|
|
136222
136222
|
label: o("agent.addTool"),
|
|
136223
|
-
onSelect: async (e) => (f(e), m(
|
|
136223
|
+
onSelect: async (e) => (f(e), m(!1), !0)
|
|
136224
136224
|
}) : /* @__PURE__ */ K("div", {
|
|
136225
136225
|
className: "inspector-disclosure-content",
|
|
136226
136226
|
children: [
|
|
@@ -136236,23 +136236,15 @@ function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a
|
|
|
136236
136236
|
}),
|
|
136237
136237
|
/* @__PURE__ */ K(jj, {
|
|
136238
136238
|
id: `${t}-new-approval`,
|
|
136239
|
-
value: p
|
|
136240
|
-
onChange: (e) => m(e.target.value == "
|
|
136241
|
-
children: [
|
|
136242
|
-
|
|
136243
|
-
|
|
136244
|
-
|
|
136245
|
-
|
|
136246
|
-
|
|
136247
|
-
|
|
136248
|
-
value: "auto",
|
|
136249
|
-
children: o("agent.auto")
|
|
136250
|
-
}),
|
|
136251
|
-
/* @__PURE__ */ G(Mj, {
|
|
136252
|
-
value: "confirm",
|
|
136253
|
-
children: o("agent.confirm")
|
|
136254
|
-
})
|
|
136255
|
-
]
|
|
136239
|
+
value: p ? "confirm" : "auto",
|
|
136240
|
+
onChange: (e) => m(e.target.value == "confirm"),
|
|
136241
|
+
children: [/* @__PURE__ */ G(Mj, {
|
|
136242
|
+
value: "auto",
|
|
136243
|
+
children: o("agent.auto")
|
|
136244
|
+
}), /* @__PURE__ */ G(Mj, {
|
|
136245
|
+
value: "confirm",
|
|
136246
|
+
children: o("agent.confirm")
|
|
136247
|
+
})]
|
|
136256
136248
|
}),
|
|
136257
136249
|
/* @__PURE__ */ G(Tn, { children: o("agent.executionHint") })
|
|
136258
136250
|
] }),
|
|
@@ -136262,10 +136254,7 @@ function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a
|
|
|
136262
136254
|
children: [/* @__PURE__ */ G(Xe, {
|
|
136263
136255
|
type: "button",
|
|
136264
136256
|
size: "sm",
|
|
136265
|
-
|
|
136266
|
-
onClick: () => {
|
|
136267
|
-
p != null && F(d, p);
|
|
136268
|
-
},
|
|
136257
|
+
onClick: () => F(d, p),
|
|
136269
136258
|
children: o("agent.addTool")
|
|
136270
136259
|
}), /* @__PURE__ */ G(Xe, {
|
|
136271
136260
|
type: "button",
|
|
@@ -136830,7 +136819,7 @@ async function OM() {
|
|
|
136830
136819
|
import("./dist-DYjIVIZC.js"),
|
|
136831
136820
|
import("./dist-Mecbzdl2.js").then((e) => e.x),
|
|
136832
136821
|
import("./dist-BKuSVKCC.js").then((e) => e.l),
|
|
136833
|
-
import("./esm-
|
|
136822
|
+
import("./esm-DOipoo54.js"),
|
|
136834
136823
|
import("./dist-TJfrvoIQ.js").then((e) => e.t),
|
|
136835
136824
|
import("./dist-DpDLsYtO.js"),
|
|
136836
136825
|
import("./dist-DwvhuMxw.js"),
|
|
@@ -137116,7 +137105,7 @@ function HM(e, t) {
|
|
|
137116
137105
|
}
|
|
137117
137106
|
//#endregion
|
|
137118
137107
|
//#region src/workbench/browser/runtime/designer/nodeInspector.tsx
|
|
137119
|
-
var UM = Za(async () => ({ default: (await import("./inputValues-
|
|
137108
|
+
var UM = Za(async () => ({ default: (await import("./inputValues-CEe8GspD.js")).InputValues }));
|
|
137120
137109
|
function WM(e, t) {
|
|
137121
137110
|
return e?.kind == "trigger" ? "trigger" : e?.kind == "condition" ? "condition" : e?.kind == "value" ? "value" : e?.kind == "wait" ? "wait" : e?.kind == "subflow" || e == null && t.kind == "subflow" ? "subflow" : e?.kind == "task" && e.definition != null && "executor" in e.definition ? e.definition.executor.kind == "connector" ? "connection" : "llm" : "task";
|
|
137122
137111
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as e } from "./dist-C46JByB-.js";
|
|
2
2
|
import { s as t } from "./main-DmjVyuWr.js";
|
|
3
3
|
import { n, t as r } from "./flowRunInputEditorStore-NPGePkvP.js";
|
|
4
|
-
import { n as i } from "./flowWorkspace-
|
|
4
|
+
import { n as i } from "./flowWorkspace-wssXq1cX.js";
|
|
5
5
|
import { useEffect as a, useState as o } from "react";
|
|
6
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
7
7
|
//#region src/workbench/browser/runtime/designer/inputValues.tsx
|
|
@@ -4698,7 +4698,7 @@ var Z = ic(), kl = Dl(), Al = J(Z), jl = Y({
|
|
|
4698
4698
|
outputs: J(jl.extend({ sources: J(Wc([Pl, Fl])) }))
|
|
4699
4699
|
}), iu = Y({
|
|
4700
4700
|
nodes: Qc(Z, $l),
|
|
4701
|
-
edges: J(tu)
|
|
4701
|
+
edges: J(tu).default([])
|
|
4702
4702
|
}), au = Y({
|
|
4703
4703
|
kind: el(["connection", "variable"]),
|
|
4704
4704
|
target: Z
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e, f as t, i as n } from "./dist-C46JByB-.js";
|
|
2
2
|
import { a as r, i, s as a, t as o } from "./main-DmjVyuWr.js";
|
|
3
|
-
import { $ as s, B as c, C as l, D as u, F as d, G as f, H as p, I as m, J as h, L as g, M as _, N as v, O as y, P as b, Q as x, S, T as C, U as w, V as T, W as E, X as D, Y as ee, Z as O, _ as k, _t as A, a as j, at as te, b as ne, c as re, ct as ie, d as ae, dt as oe, et as se, f as ce, ft as le, g as ue, gt as de, h as fe, ht as M, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, nt as N, o as be, ot as xe, p as Se, pt as P, q as Ce, r as F, rt as we, s as Te, st as Ee, t as De, tt as Oe, u as ke, ut as Ae, v as je, w as Me, x as Ne, y as Pe, z as I } from "./flowChanges-
|
|
3
|
+
import { $ as s, B as c, C as l, D as u, F as d, G as f, H as p, I as m, J as h, L as g, M as _, N as v, O as y, P as b, Q as x, S, T as C, U as w, V as T, W as E, X as D, Y as ee, Z as O, _ as k, _t as A, a as j, at as te, b as ne, c as re, ct as ie, d as ae, dt as oe, et as se, f as ce, ft as le, g as ue, gt as de, h as fe, ht as M, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, nt as N, o as be, ot as xe, p as Se, pt as P, q as Ce, r as F, rt as we, s as Te, st as Ee, t as De, tt as Oe, u as ke, ut as Ae, v as je, w as Me, x as Ne, y as Pe, z as I } from "./flowChanges-DYV6OEQd.js";
|
|
4
4
|
import { Ot as Fe, Un as Ie, Vn as L, jt as R } from "./getPseudoElementBounds-Dfqo78k7.js";
|
|
5
|
-
import { B as Le, C as z, G as Re, H as ze, L as Be, S as Ve, U as He, W as Ue, _ as We, c as B, d as Ge, f as Ke, h as qe, l as Je, m as Ye, p as Xe, u as Ze } from "./select-
|
|
5
|
+
import { B as Le, C as z, G as Re, H as ze, L as Be, S as Ve, U as He, W as Ue, _ as We, c as B, d as Ge, f as Ke, h as qe, l as Je, m as Ye, p as Xe, u as Ze } from "./select-DIMWIiL5.js";
|
|
6
6
|
import { _ as Qe, c as $e, f as et, s as tt, u as nt } from "./DesignerIcon-Bzpx8BtG.js";
|
|
7
7
|
import { i as rt, n as it, r as V, t as at } from "./languages-i3Xmpt6S.js";
|
|
8
|
-
import { t as ot } from "./workbenchSelect-
|
|
8
|
+
import { t as ot } from "./workbenchSelect-NZCIKdkk.js";
|
|
9
9
|
import { Suspense as st, lazy as ct, useEffect as H, useRef as U, useState as W } from "react";
|
|
10
10
|
import { Fragment as lt, jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
11
11
|
import * as ut from "effect/Cause";
|
|
@@ -96,7 +96,7 @@ function mt(e, t) {
|
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
|
|
99
|
-
var ht = ct(() => import("./createResourceDialog-
|
|
99
|
+
var ht = ct(() => import("./createResourceDialog-mW21KMfJ.js")), gt = rt.map((e) => ({
|
|
100
100
|
label: V[e],
|
|
101
101
|
value: e
|
|
102
102
|
}));
|
|
@@ -3209,7 +3209,7 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
|
|
|
3209
3209
|
return;
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
|
-
}, vn = ct(() => import("./flowWorkspace-
|
|
3212
|
+
}, vn = ct(() => import("./flowWorkspace-wssXq1cX.js").then((e) => e.t));
|
|
3213
3213
|
function yn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: c }) {
|
|
3214
3214
|
let l = s != null && c != null && i != null, u = s ?? "", d = /* @__PURE__ */ K(lt, { children: [
|
|
3215
3215
|
/* @__PURE__ */ G("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Un as e } from "./getPseudoElementBounds-Dfqo78k7.js";
|
|
2
|
-
import { i as t, n, o as r, r as i, s as a, t as o } from "./select-
|
|
2
|
+
import { i as t, n, o as r, r as i, s as a, t as o } from "./select-DIMWIiL5.js";
|
|
3
3
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
4
|
//#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
|
|
5
5
|
function l({ ariaLabel: l, className: u, disabled: d = !1, id: f, onValueChange: p, options: m, portalRoot: h, value: g }) {
|
|
@@ -4370,7 +4370,8 @@ var Gs = Ws(), Ks = cs({
|
|
|
4370
4370
|
cs({
|
|
4371
4371
|
pointer: D().max(4096).default(""),
|
|
4372
4372
|
offset: k().int().nonnegative().default(0),
|
|
4373
|
-
limit: k().int().min(1).max(100).default(20)
|
|
4373
|
+
limit: k().int().min(1).max(100).default(20),
|
|
4374
|
+
maxBytes: k().int().min(1).max(1048576).default(15e3)
|
|
4374
4375
|
}), cs({
|
|
4375
4376
|
version: F(1),
|
|
4376
4377
|
runId: D(),
|
|
@@ -4660,7 +4661,7 @@ var I = D(), L = Ws(), Ys = A(I), Xs = j({
|
|
|
4660
4661
|
outputs: A(Xs.extend({ sources: A(M([Qs, $s])) }))
|
|
4661
4662
|
}), xc = j({
|
|
4662
4663
|
nodes: N(I, _c),
|
|
4663
|
-
edges: A(yc)
|
|
4664
|
+
edges: A(yc).default([])
|
|
4664
4665
|
}), Sc = j({
|
|
4665
4666
|
kind: P(["connection", "variable"]),
|
|
4666
4667
|
target: I
|
|
@@ -4349,7 +4349,8 @@ var Ls = Is(), Rs = L({
|
|
|
4349
4349
|
}), Vs = L({
|
|
4350
4350
|
pointer: j().max(4096).default(""),
|
|
4351
4351
|
offset: N().int().nonnegative().default(0),
|
|
4352
|
-
limit: N().int().min(1).max(100).default(20)
|
|
4352
|
+
limit: N().int().min(1).max(100).default(20),
|
|
4353
|
+
maxBytes: N().int().min(1).max(1048576).default(15e3)
|
|
4353
4354
|
}), Hs = L({
|
|
4354
4355
|
version: V(1),
|
|
4355
4356
|
runId: j(),
|
|
@@ -4385,69 +4386,84 @@ function Ys(e, t) {
|
|
|
4385
4386
|
};
|
|
4386
4387
|
}
|
|
4387
4388
|
function Xs(e, t = {}) {
|
|
4388
|
-
let { pointer: n, offset: r, limit: i } = Ws(t),
|
|
4389
|
+
let { pointer: n, offset: r, limit: i, maxBytes: a } = Ws(t), o = e;
|
|
4389
4390
|
if (n != "") {
|
|
4390
4391
|
if (!n.startsWith("/")) throw Error("Result pointer must be a JSON Pointer.");
|
|
4391
4392
|
for (let e of n.slice(1).split("/")) {
|
|
4392
4393
|
if (/~(?:[^01]|$)/.test(e)) throw Error("Result pointer has an invalid escape.");
|
|
4393
4394
|
let t = e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
4394
|
-
if (typeof
|
|
4395
|
-
if (Array.isArray(
|
|
4395
|
+
if (typeof o != "object" || !o || !Object.hasOwn(o, t)) throw Error("Result path does not exist.");
|
|
4396
|
+
if (Array.isArray(o)) {
|
|
4396
4397
|
if (!/^(0|[1-9]\d*)$/.test(t)) throw Error("Invalid result array index.");
|
|
4397
|
-
|
|
4398
|
-
} else
|
|
4398
|
+
o = o[Number(t)];
|
|
4399
|
+
} else o = o[t];
|
|
4399
4400
|
}
|
|
4400
4401
|
}
|
|
4401
|
-
let
|
|
4402
|
-
...
|
|
4402
|
+
let s = Ys(o, n), c = {
|
|
4403
|
+
...s,
|
|
4403
4404
|
complete: !0,
|
|
4404
4405
|
offset: r,
|
|
4405
|
-
value:
|
|
4406
|
+
value: o
|
|
4406
4407
|
};
|
|
4407
|
-
if (r == 0 && (t.limit == null ||
|
|
4408
|
-
let
|
|
4409
|
-
if (typeof
|
|
4410
|
-
let e = 0
|
|
4411
|
-
for (let
|
|
4408
|
+
if (r == 0 && (t.limit == null || s.length == null || s.length <= i) && Js(c) <= a) return c;
|
|
4409
|
+
let l = s;
|
|
4410
|
+
if (typeof o == "string") {
|
|
4411
|
+
let e = 0;
|
|
4412
|
+
for (let t of o) e++;
|
|
4412
4413
|
if (r >= e) throw Error("Result offset is out of range.");
|
|
4413
|
-
let
|
|
4414
|
+
let t = a - Js({
|
|
4415
|
+
...l,
|
|
4416
|
+
length: e,
|
|
4417
|
+
offset: r,
|
|
4418
|
+
value: "",
|
|
4419
|
+
nextOffset: e
|
|
4420
|
+
}), n = 0, i = "", s = r, c = 0;
|
|
4421
|
+
for (let e of o) {
|
|
4422
|
+
if (c++ < r) continue;
|
|
4423
|
+
let a = Js(e) - 2;
|
|
4424
|
+
if (n + a > t) break;
|
|
4425
|
+
i += e, n += a, s++;
|
|
4426
|
+
}
|
|
4427
|
+
if (s == r) throw Error("Result byte budget cannot fit a string character and page metadata.");
|
|
4414
4428
|
return {
|
|
4415
|
-
...
|
|
4416
|
-
complete: r == 0 &&
|
|
4429
|
+
...l,
|
|
4430
|
+
complete: r == 0 && s == e,
|
|
4417
4431
|
length: e,
|
|
4418
4432
|
offset: r,
|
|
4419
|
-
value:
|
|
4420
|
-
...
|
|
4433
|
+
value: i,
|
|
4434
|
+
...s < e ? { nextOffset: s } : {}
|
|
4421
4435
|
};
|
|
4422
4436
|
}
|
|
4423
|
-
if (typeof
|
|
4424
|
-
let
|
|
4425
|
-
if (r >=
|
|
4426
|
-
let
|
|
4427
|
-
for (let e of
|
|
4428
|
-
let t = `${n}/${e.replace(/~/g, "~0").replace(/\//g, "~1")}`, i = Array.isArray(
|
|
4429
|
-
...
|
|
4437
|
+
if (typeof o != "object" || !o) throw Error("Result cannot be paged.");
|
|
4438
|
+
let u = Object.keys(o);
|
|
4439
|
+
if (r >= u.length) throw Error("Result offset is out of range.");
|
|
4440
|
+
let d = [];
|
|
4441
|
+
for (let e of u.slice(r, r + i)) {
|
|
4442
|
+
let t = `${n}/${e.replace(/~/g, "~0").replace(/\//g, "~1")}`, i = Array.isArray(o) ? o[Number(e)] : o[e], s = Ys(i, t), c = {
|
|
4443
|
+
...s,
|
|
4430
4444
|
complete: !0,
|
|
4431
4445
|
value: i
|
|
4432
|
-
},
|
|
4433
|
-
...
|
|
4446
|
+
}, f = Js({
|
|
4447
|
+
...l,
|
|
4434
4448
|
offset: r,
|
|
4435
|
-
entries: [
|
|
4436
|
-
|
|
4449
|
+
entries: [c],
|
|
4450
|
+
nextOffset: u.length
|
|
4451
|
+
}) <= a ? c : s;
|
|
4437
4452
|
if (Js({
|
|
4438
|
-
...
|
|
4453
|
+
...l,
|
|
4439
4454
|
offset: r,
|
|
4440
|
-
entries: [...
|
|
4441
|
-
|
|
4442
|
-
|
|
4455
|
+
entries: [...d, f],
|
|
4456
|
+
nextOffset: u.length
|
|
4457
|
+
}) > a) break;
|
|
4458
|
+
d.push(f);
|
|
4443
4459
|
}
|
|
4444
|
-
if (
|
|
4445
|
-
let
|
|
4460
|
+
if (d.length == 0) throw Error("Result property name exceeds the preview limit. Download the full result.");
|
|
4461
|
+
let f = r + d.length;
|
|
4446
4462
|
return {
|
|
4447
|
-
...
|
|
4463
|
+
...l,
|
|
4448
4464
|
offset: r,
|
|
4449
|
-
entries:
|
|
4450
|
-
...
|
|
4465
|
+
entries: d,
|
|
4466
|
+
...f < u.length ? { nextOffset: f } : {}
|
|
4451
4467
|
};
|
|
4452
4468
|
}
|
|
4453
4469
|
function Zs(e, t = 0) {
|
|
@@ -4732,7 +4748,7 @@ var H = j(), U = Is(), Qs = F(H), $s = I({
|
|
|
4732
4748
|
outputs: F($s.extend({ sources: F(R([tc, nc])) }))
|
|
4733
4749
|
}), wc = I({
|
|
4734
4750
|
nodes: z(H, bc),
|
|
4735
|
-
edges: F(Sc)
|
|
4751
|
+
edges: F(Sc).default([])
|
|
4736
4752
|
}), Tc = I({
|
|
4737
4753
|
kind: B(["connection", "variable"]),
|
|
4738
4754
|
target: H
|
|
@@ -4644,7 +4644,7 @@ var K = F(), q = Ks(), Js = z(K), Ys = B({
|
|
|
4644
4644
|
outputs: z(Ys.extend({ sources: z(H([Zs, Qs])) }))
|
|
4645
4645
|
}), bc = B({
|
|
4646
4646
|
nodes: U(K, gc),
|
|
4647
|
-
edges: z(vc)
|
|
4647
|
+
edges: z(vc).default([])
|
|
4648
4648
|
}), xc = B({
|
|
4649
4649
|
kind: W(["connection", "variable"]),
|
|
4650
4650
|
target: K
|
|
@@ -4532,7 +4532,7 @@ var q = fo(), J = Ds(), As = V(q), js = H({
|
|
|
4532
4532
|
outputs: V(js.extend({ sources: V(U([Ns, Ps])) }))
|
|
4533
4533
|
}), tc = H({
|
|
4534
4534
|
nodes: W(q, Zs),
|
|
4535
|
-
edges: V($s)
|
|
4535
|
+
edges: V($s).default([])
|
|
4536
4536
|
}), nc = H({
|
|
4537
4537
|
kind: G(["connection", "variable"]),
|
|
4538
4538
|
target: q
|
|
@@ -5257,7 +5257,7 @@ var j = w(), Mc = Ac(), Nc = D(j), Pc = O({
|
|
|
5257
5257
|
outputs: D(Pc.extend({ sources: D(k([Lc, Rc])) }))
|
|
5258
5258
|
}), sl = O({
|
|
5259
5259
|
nodes: tc(j, nl),
|
|
5260
|
-
edges: D(il)
|
|
5260
|
+
edges: D(il).default([])
|
|
5261
5261
|
}), cl = O({
|
|
5262
5262
|
kind: rc(["connection", "variable"]),
|
|
5263
5263
|
target: j
|
package/dist/common/mcp.js
CHANGED
|
@@ -4660,7 +4660,7 @@ var K = F(), q = Ks(), Ys = z(K), Xs = B({
|
|
|
4660
4660
|
outputs: z(Xs.extend({ sources: z(H([Qs, $s])) }))
|
|
4661
4661
|
}), xc = B({
|
|
4662
4662
|
nodes: U(K, _c),
|
|
4663
|
-
edges: z(yc)
|
|
4663
|
+
edges: z(yc).default([])
|
|
4664
4664
|
}), Sc = B({
|
|
4665
4665
|
kind: W(["connection", "variable"]),
|
|
4666
4666
|
target: K
|
|
@@ -38,6 +38,7 @@ export interface ResultQuery {
|
|
|
38
38
|
readonly pointer?: string;
|
|
39
39
|
readonly offset?: number;
|
|
40
40
|
readonly limit?: number;
|
|
41
|
+
readonly maxBytes?: number;
|
|
41
42
|
}
|
|
42
43
|
export declare function parseResultQuery(value: unknown): Required<ResultQuery>;
|
|
43
44
|
export declare function decodeResultList(value: unknown): {
|
package/dist/common/scheduler.js
CHANGED