@oomol-lab/open-flow 0.1.0-beta.20 → 0.1.0-beta.21
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-DlrAMxmo.js → createResourceDialog-CjuJryCv.js} +13 -13
- package/dist/browser/{flowChanges-jX3KYcb0.js → flowChanges-Tg1duLry.js} +2269 -2208
- package/dist/browser/{flowWorkspace-BIYwslVl.js → flowWorkspace-CoK10XHY.js} +306 -306
- package/dist/browser/{inputValues-BWfRHJWC.js → inputValues-CDiBMKu8.js} +1 -1
- package/dist/browser/workbench.js +23 -23
- package/dist/browser/{workbenchSelect-CwP6rphY.js → workbenchSelect-DEmv7SLW.js} +1 -1
- package/dist/common/control-api-conformance.js +871 -810
- package/dist/common/control-api.js +249 -188
- package/dist/common/flow-encoding.d.ts +6 -0
- package/dist/common/flow-encoding.js +1323 -1171
- package/dist/common/flow-semantics.js +1872 -1811
- package/dist/common/mcp.js +176 -115
- package/dist/common/provider-triggers.js +1307 -1246
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as e } from "./dist-Dz6Nglsd.js";
|
|
2
2
|
import { a as t } from "./main-BDnNHhkU.js";
|
|
3
3
|
import { t as n } from "./flowRunInputEditorStore-BBqQIOCR.js";
|
|
4
|
-
import { n as r } from "./flowWorkspace-
|
|
4
|
+
import { n as r } from "./flowWorkspace-CoK10XHY.js";
|
|
5
5
|
import { useEffect as i, useRef as a, useState as o } from "react";
|
|
6
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
7
7
|
//#region src/workbench/browser/runtime/editor/inputValues.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, i as t, l as n } from "./dist-Dz6Nglsd.js";
|
|
2
2
|
import { a as r, i, r as a, t as o } from "./main-BDnNHhkU.js";
|
|
3
|
-
import { $ as s, $t as c, A as l, C as u, Ct as d, D as f, Dt as p, F as m, G as h, I as g, J as _, L as v, M as y, N as b, O as x, P as S, Q as C, Qt as w, R as T, S as E, St as D, T as O, Tt as ee, X as k, Zt as A, _ as j, _t as te, a as M, at as ne, b as re, bt as ie, c as ae, ct as oe, d as se, dt as ce, en as le, et as ue, f as de, ft as fe, g as pe, gt as me, h as he, ht as ge, it as _e, jt as ve, k as N, l as ye, lt as be, m as xe, mt as Se, o as Ce, ot as we, p as Te, pt as P, q as F, r as I, rt as Ee, s as De, st as Oe, t as ke, tn as L, tt as Ae, u as je, ut as Me, v as Ne, vt as Pe, w as Fe, x as Ie, xt as Le, y as Re, yt as ze, z as R } from "./flowChanges-
|
|
3
|
+
import { $ as s, $t as c, A as l, C as u, Ct as d, D as f, Dt as p, F as m, G as h, I as g, J as _, L as v, M as y, N as b, O as x, P as S, Q as C, Qt as w, R as T, S as E, St as D, T as O, Tt as ee, X as k, Zt as A, _ as j, _t as te, a as M, at as ne, b as re, bt as ie, c as ae, ct as oe, d as se, dt as ce, en as le, et as ue, f as de, ft as fe, g as pe, gt as me, h as he, ht as ge, it as _e, jt as ve, k as N, l as ye, lt as be, m as xe, mt as Se, o as Ce, ot as we, p as Te, pt as P, q as F, r as I, rt as Ee, s as De, st as Oe, t as ke, tn as L, tt as Ae, u as je, ut as Me, v as Ne, vt as Pe, w as Fe, x as Ie, xt as Le, y as Re, yt as ze, z as R } from "./flowChanges-Tg1duLry.js";
|
|
4
4
|
import { Y as Be, c as z, i as B, q as V } from "./useValueChanged-BY05Usw-.js";
|
|
5
|
-
import {
|
|
5
|
+
import { An as Ve, C as He, Dn as Ue, E as We, Mn as Ge, Nt as Ke, Pt as qe, Rt as Je, S as Ye, T as Xe, b as Ze, jn as Qe, kn as $e, l as H, t as et, tn as tt, w as nt, x as rt, zt as U } from "./workbenchSelect-DEmv7SLW.js";
|
|
6
6
|
import { t as W } from "./i18n-CVBh0Ni1.js";
|
|
7
7
|
import { i as it, n as at, r as ot, t as st } from "./languages-C0zQ4GSo.js";
|
|
8
8
|
import { Suspense as ct, lazy as lt, useEffect as G, useRef as K, useState as q } from "react";
|
|
@@ -95,7 +95,7 @@ function ht(e, t) {
|
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
|
|
98
|
-
var gt = lt(() => import("./createResourceDialog-
|
|
98
|
+
var gt = lt(() => import("./createResourceDialog-CjuJryCv.js")), _t = it.map((e) => ({
|
|
99
99
|
label: ot[e],
|
|
100
100
|
value: e
|
|
101
101
|
}));
|
|
@@ -107,7 +107,7 @@ function vt({ language: e, onLanguageChange: t }) {
|
|
|
107
107
|
children: [/* @__PURE__ */ J("span", {
|
|
108
108
|
className: "sr-only",
|
|
109
109
|
children: n("language.label")
|
|
110
|
-
}), /* @__PURE__ */ J(
|
|
110
|
+
}), /* @__PURE__ */ J(et, {
|
|
111
111
|
ariaLabel: n("language.label"),
|
|
112
112
|
onValueChange: (e) => t(e),
|
|
113
113
|
options: _t,
|
|
@@ -195,7 +195,7 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
|
|
|
195
195
|
className: "resource-status",
|
|
196
196
|
title: g("resource.publishFirst"),
|
|
197
197
|
children: "—"
|
|
198
|
-
}) : /* @__PURE__ */ Y(
|
|
198
|
+
}) : /* @__PURE__ */ Y(Ge, {
|
|
199
199
|
className: "resource-enable",
|
|
200
200
|
title: g("resource.enabledHint"),
|
|
201
201
|
children: [/* @__PURE__ */ J(fe, {
|
|
@@ -239,12 +239,12 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
|
|
|
239
239
|
children: g("common.delete")
|
|
240
240
|
})]
|
|
241
241
|
})] }),
|
|
242
|
-
/* @__PURE__ */ J(
|
|
242
|
+
/* @__PURE__ */ J(Ze, {
|
|
243
243
|
open: _ == "rename",
|
|
244
244
|
onOpenChange: (e) => {
|
|
245
245
|
e || v("idle");
|
|
246
246
|
},
|
|
247
|
-
children: /* @__PURE__ */ J(
|
|
247
|
+
children: /* @__PURE__ */ J(Ye, {
|
|
248
248
|
container: c,
|
|
249
249
|
initialFocus: f,
|
|
250
250
|
finalFocus: u,
|
|
@@ -253,11 +253,11 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
|
|
|
253
253
|
className: "flex flex-col gap-4",
|
|
254
254
|
onSubmit: (e) => void E(e),
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */ J(
|
|
257
|
-
/* @__PURE__ */ Y(
|
|
256
|
+
/* @__PURE__ */ J(Xe, { children: /* @__PURE__ */ J(We, { children: g("sidebar.renameFlow", { name: n.name }) }) }),
|
|
257
|
+
/* @__PURE__ */ Y(Ue, {
|
|
258
258
|
"data-invalid": y.length > 0 && T != null,
|
|
259
259
|
children: [
|
|
260
|
-
/* @__PURE__ */ J(
|
|
260
|
+
/* @__PURE__ */ J(Qe, {
|
|
261
261
|
htmlFor: `rename-flow-${n.flowId}`,
|
|
262
262
|
children: g("resource.flowName")
|
|
263
263
|
}),
|
|
@@ -272,7 +272,7 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
|
|
|
272
272
|
required: !0,
|
|
273
273
|
value: y
|
|
274
274
|
}),
|
|
275
|
-
y.length > 0 && T != null && /* @__PURE__ */ J(
|
|
275
|
+
y.length > 0 && T != null && /* @__PURE__ */ J($e, {
|
|
276
276
|
id: `rename-error-${n.flowId}`,
|
|
277
277
|
children: g(`resource.nameIssue.${T}`, { max: 80 })
|
|
278
278
|
})
|
|
@@ -291,17 +291,17 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
|
|
|
291
291
|
})
|
|
292
292
|
})
|
|
293
293
|
}),
|
|
294
|
-
/* @__PURE__ */ J(
|
|
294
|
+
/* @__PURE__ */ J(Ze, {
|
|
295
295
|
open: _ == "delete",
|
|
296
296
|
onOpenChange: (e) => {
|
|
297
297
|
e || v("idle");
|
|
298
298
|
},
|
|
299
|
-
children: /* @__PURE__ */ Y(
|
|
299
|
+
children: /* @__PURE__ */ Y(Ye, {
|
|
300
300
|
container: c,
|
|
301
301
|
initialFocus: m,
|
|
302
302
|
finalFocus: u,
|
|
303
303
|
showCloseButton: !1,
|
|
304
|
-
children: [/* @__PURE__ */ Y(
|
|
304
|
+
children: [/* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J(We, { children: g("sidebar.deleteFlowConfirm", { name: n.name }) }), /* @__PURE__ */ J(He, { children: g("resource.deleteDescription") })] }), /* @__PURE__ */ Y(nt, { children: [/* @__PURE__ */ J(rt, {
|
|
305
305
|
render: /* @__PURE__ */ J(V, {
|
|
306
306
|
ref: m,
|
|
307
307
|
variant: "outline"
|
|
@@ -1015,8 +1015,8 @@ var Pt = class {
|
|
|
1015
1015
|
function It(e) {
|
|
1016
1016
|
switch (e.kind) {
|
|
1017
1017
|
case "condition": return { [e.node.input.handle]: e.node.input };
|
|
1018
|
-
case "subflow": return
|
|
1019
|
-
case "task": return
|
|
1018
|
+
case "subflow": return Je(e.definition?.inputs ?? []);
|
|
1019
|
+
case "task": return Je(e.definition?.inputs ?? []);
|
|
1020
1020
|
case "value": return {};
|
|
1021
1021
|
case "wait": return { [e.node.input.handle]: e.node.input };
|
|
1022
1022
|
}
|
|
@@ -1833,7 +1833,7 @@ var tn = class {
|
|
|
1833
1833
|
function nn(e, t) {
|
|
1834
1834
|
let n = e, r = [];
|
|
1835
1835
|
for (let e of t) {
|
|
1836
|
-
let t =
|
|
1836
|
+
let t = qe(n, [e]), i = [];
|
|
1837
1837
|
switch (e.kind) {
|
|
1838
1838
|
case "graph.node.create":
|
|
1839
1839
|
i.push({
|
|
@@ -3510,7 +3510,7 @@ var Sn = { openExternalPage: async () => !1 }, Cn = class {
|
|
|
3510
3510
|
return;
|
|
3511
3511
|
}
|
|
3512
3512
|
}
|
|
3513
|
-
}, wn = lt(() => import("./flowWorkspace-
|
|
3513
|
+
}, wn = lt(() => import("./flowWorkspace-CoK10XHY.js").then((e) => e.t));
|
|
3514
3514
|
function Tn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: c }) {
|
|
3515
3515
|
let l = s != null && c != null && i != null, u = s ?? "", d = /* @__PURE__ */ Y(ut, { children: [
|
|
3516
3516
|
/* @__PURE__ */ J("div", {
|
|
@@ -3543,10 +3543,10 @@ function Tn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
|
|
|
3543
3543
|
children: t
|
|
3544
3544
|
})]
|
|
3545
3545
|
}),
|
|
3546
|
-
l && /* @__PURE__ */ J(
|
|
3546
|
+
l && /* @__PURE__ */ J(Ve, { children: /* @__PURE__ */ Y(Ue, {
|
|
3547
3547
|
"data-invalid": n != null,
|
|
3548
3548
|
children: [
|
|
3549
|
-
/* @__PURE__ */ J(
|
|
3549
|
+
/* @__PURE__ */ J(Qe, {
|
|
3550
3550
|
htmlFor: "session-token",
|
|
3551
3551
|
children: c
|
|
3552
3552
|
}),
|
|
@@ -3569,19 +3569,19 @@ function Tn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
|
|
|
3569
3569
|
type: "password",
|
|
3570
3570
|
value: u
|
|
3571
3571
|
}),
|
|
3572
|
-
n != null && /* @__PURE__ */ J(
|
|
3572
|
+
n != null && /* @__PURE__ */ J($e, { children: n })
|
|
3573
3573
|
]
|
|
3574
3574
|
}) }),
|
|
3575
3575
|
e != null && r != null && /* @__PURE__ */ Y(V, {
|
|
3576
3576
|
disabled: a || l && u.length == 0,
|
|
3577
3577
|
size: "lg",
|
|
3578
3578
|
type: "submit",
|
|
3579
|
-
children: [a && /* @__PURE__ */ J(
|
|
3579
|
+
children: [a && /* @__PURE__ */ J(tt, {
|
|
3580
3580
|
"aria-label": e,
|
|
3581
3581
|
"data-icon": "inline-start"
|
|
3582
3582
|
}), e]
|
|
3583
3583
|
}),
|
|
3584
|
-
a && e == null && /* @__PURE__ */ J(
|
|
3584
|
+
a && e == null && /* @__PURE__ */ J(tt, { "aria-label": t })
|
|
3585
3585
|
] }), f = "m-auto flex w-full max-w-[420px] flex-col gap-5 rounded-xl bg-card p-6 shadow-lg shadow-black/10";
|
|
3586
3586
|
return /* @__PURE__ */ J("main", {
|
|
3587
3587
|
className: "open-flow-workbench",
|
|
@@ -11663,4 +11663,4 @@ function Cv({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
|
|
|
11663
11663
|
});
|
|
11664
11664
|
}
|
|
11665
11665
|
//#endregion
|
|
11666
|
-
export { sh as $,
|
|
11666
|
+
export { sh as $, Du as $t, Yh as A, ze as An, _f as At, Nh as B, Kd as Bt, Eg as C, pt as Cn, Gf as Ct, vg as D, Ve as Dn, Cf as Dt, Tg as E, Ze as En, wf as Et, Ah as F, Qd as Ft, Hh as G, ud as Gt, Bh as H, Cu as Ht, jh as I, $d as It, Sh as J, du as Jt, Uh as K, od as Kt, Oh as L, Zd as Lt, Rh as M, Re as Mn, hf as Mt, kh as N, ef as Nt, cg as O, Ue as On, Sf as Ot, Lh as P, af as Pt, ah as Q, zl as Qt, zh as R, Yd as Rt, Sg as S, ut as Sn, Wf as St, Cg as T, $e as Tn, Ef as Tt, Fh as U, hu as Ut, Ph as V, Lu as Vt, Ih as W, ku as Wt, dh as X, Fu as Xt, bh as Y, q as Yt, uh as Z, Tu as Zt, Ng as _, un as _n, rp as _t, bv as a, An as an, Hm as at, _g as b, vt as bn, Xf as bt, gv as c, Fn as cn, km as ct, Zg as d, cn as dn, gp as dt, yu as en, rh as et, Yg as f, ln as fn, hp as ft, Fg as g, tn as gn, np as gt, Bg as h, nn as hn, ip as ht, hv as i, Bn as in, Xm as it, Jh as j, He as jn, gf as jt, Zh as k, We as kn, lf as kt, t_ as l, sn as ln, Z as lt, Ug as m, rn as mn, op as mt, mv as n, Un as nn, nh as nt, yv as o, Nn as on, Um as ot, Gg as p, on as pn, ap as pt, Ch as q, J as qt, vv as r, zn as rn, eh as rt, _v as s, Pn as sn, Fm as st, Cv as t, Wn as tn, th as tt, Qg as u, an as un, bp as ut, Mg as v, wt as vn, $f as vt, wg as w, gt as wn, Df as wt, bg as x, mt as xn, Uf as xt, Ag as y, bt as yn, Zf as yt, Mh as z, Jd as zt };
|