@oomol-lab/open-flow 0.1.0-beta.2 → 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/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
- package/dist/browser/carbon-Cn-DTyjG.js +54 -0
- package/dist/browser/createResourceDialog-CjuJryCv.js +110 -0
- package/dist/browser/dist-B_T-OpQp.js +4 -0
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/dist-DYjIVIZC.js +795 -0
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
- package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
- package/dist/browser/{esm-B_PbUobB.js → esm-B7A42FzW.js} +68 -59
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +20 -6
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +5405 -286
- package/dist/browser/flow-change-schema.d.ts +6 -0
- package/dist/browser/flow-change.d.ts +173 -14
- package/dist/browser/flow-change.js +5271 -114
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-Tg1duLry.js +11081 -0
- package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-BBqQIOCR.js} +1020 -4104
- package/dist/browser/flowWorkspace-CoK10XHY.js +148497 -0
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +33 -0
- package/dist/browser/{diagnostics-giPSzyMo.js → i18n-CVBh0Ni1.js} +3390 -5715
- package/dist/browser/inputValues-CDiBMKu8.js +43 -0
- package/dist/browser/{languages-DgJehE1g.js → languages-C0zQ4GSo.js} +5 -25
- package/dist/browser/licenses.md +149 -700
- package/dist/browser/main-BDnNHhkU.js +50 -0
- package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BBgH9ZIV.js} +41 -41
- package/dist/browser/theme.css +461 -34
- package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
- package/dist/browser/ui-input.d.ts +3 -0
- package/dist/browser/ui-label.d.ts +3 -0
- package/dist/browser/ui-textarea.d.ts +3 -0
- package/dist/browser/ui.css +2 -0
- package/dist/browser/ui.css.d.ts +1 -0
- package/dist/browser/ui.d.ts +12 -0
- package/dist/browser/ui.js +2598 -0
- package/dist/browser/useValueChanged-BY05Usw-.js +2944 -0
- package/dist/browser/workbench-contract.d.ts +8 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +2043 -1327
- package/dist/browser/workbenchSelect-DEmv7SLW.js +11666 -0
- package/dist/common/control-api-conformance.d.ts +7 -0
- package/dist/common/control-api-conformance.js +5629 -166
- package/dist/common/control-api-errors.d.ts +9 -0
- package/dist/common/control-api.d.ts +309 -38
- package/dist/common/control-api.js +5877 -575
- package/dist/common/control-requests.d.ts +68 -0
- package/dist/common/control-requests.js +4950 -0
- package/dist/common/engine-contract.d.ts +3 -1
- package/dist/common/flow-agent.d.ts +10 -0
- package/dist/common/flow-encoding.d.ts +11 -2
- package/dist/common/flow-encoding.js +4972 -66
- package/dist/common/flow-graph.d.ts +6 -0
- package/dist/common/flow-json.d.ts +2 -0
- package/dist/common/flow-modules.d.ts +20 -0
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-schema.d.ts +8 -0
- package/dist/common/flow-semantics.d.ts +10 -6
- package/dist/common/flow-semantics.js +10042 -1700
- package/dist/common/integration-trigger.d.ts +24 -1
- package/dist/common/integration-trigger.js +188 -52
- package/dist/common/mcp-conformance.d.ts +2 -0
- package/dist/common/mcp.d.ts +765 -0
- package/dist/common/mcp.js +6538 -0
- package/dist/common/provider-triggers.js +6057 -993
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +12 -17
- package/dist/common/run-lifecycle.d.ts +21 -2
- package/dist/common/run-lifecycle.js +83 -2
- package/dist/common/run-results.d.ts +57 -0
- package/dist/common/runtime-contract.d.ts +36 -3
- package/dist/common/runtime-contract.js +227 -19
- package/dist/common/scheduler.d.ts +77 -18
- package/dist/common/scheduler.js +8259 -248
- package/dist/index.d.ts +6 -5
- package/package.json +21 -1
- package/dist/browser/carbon-DMCVsjHo.js +0 -53
- package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
- package/dist/browser/dist-BMqL-qR5.js +0 -1894
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/flowWorkspace-DAMLVMcF.js +0 -47584
- package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
- package/dist/browser/main-DmjVyuWr.js +0 -76
- package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
//#region ../../node_modules/.bun/value-enhancer@5.7.2/node_modules/value-enhancer/dist/index.mjs
|
|
2
|
-
var e = {}, t = (e
|
|
3
|
-
if (
|
|
2
|
+
var e = {}, t = (e) => e, n = Object.is, r = (e, t) => {
|
|
3
|
+
if (n(e, t)) return !0;
|
|
4
4
|
if (!Array.isArray(e) || !Array.isArray(t)) return !1;
|
|
5
|
-
let
|
|
6
|
-
if (t.length !==
|
|
7
|
-
for (let i = 0; i <
|
|
5
|
+
let r = e.length;
|
|
6
|
+
if (t.length !== r) return !1;
|
|
7
|
+
for (let i = 0; i < r; i++) if (!n(e[i], t[i])) return !1;
|
|
8
8
|
return !0;
|
|
9
|
-
},
|
|
9
|
+
}, i = (e) => e.value, a = (e) => e.map(i), o = (e) => e.$version, s = (e, t) => {
|
|
10
10
|
try {
|
|
11
11
|
e(t);
|
|
12
12
|
} catch (e) {
|
|
13
13
|
console.error(e);
|
|
14
14
|
}
|
|
15
|
-
},
|
|
16
|
-
function
|
|
15
|
+
}, c = (e, t) => (e.set = t, e), l = (e) => !!e?.$valCompute, u = (e) => !!e?.set;
|
|
16
|
+
function d() {
|
|
17
17
|
if (typeof window > "u") return;
|
|
18
18
|
let e = { style: "color:#a225c2" }, t = { style: "color:#268bd2" }, n = { style: "color:#e28c5f" }, r = { style: "color:#eb2f96" }, i = {
|
|
19
|
-
header: (t) =>
|
|
19
|
+
header: (t) => l(t) ? [
|
|
20
20
|
"div",
|
|
21
21
|
e,
|
|
22
|
-
`${
|
|
22
|
+
`${u(t) ? "Val" : "ReadonlyVal"}`,
|
|
23
23
|
"<",
|
|
24
24
|
a(t.value),
|
|
25
25
|
">"
|
|
@@ -47,29 +47,29 @@ function f() {
|
|
|
47
47
|
}
|
|
48
48
|
(window.devtoolsFormatters ??= []).push(i);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function f() {
|
|
51
|
+
d();
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
let e =
|
|
55
|
-
|
|
53
|
+
var p = /* @__PURE__ */ Promise.resolve(), m = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), g = m, _, v = () => {
|
|
54
|
+
let e = g;
|
|
55
|
+
g = g === m ? h : m, _ = !1;
|
|
56
56
|
for (let t of e) t.t();
|
|
57
57
|
e.clear();
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
constructor(e, t,
|
|
62
|
-
if (this.#n = e, this.q = (t?.equal ??
|
|
58
|
+
}, y = (e) => {
|
|
59
|
+
g.add(e), _ ||= p.then(v);
|
|
60
|
+
}, b = (e) => g.delete(e), x = /* @__PURE__ */ new FinalizationRegistry(s), S = class {
|
|
61
|
+
constructor(e, t, r) {
|
|
62
|
+
if (this.#n = e, this.q = (t?.equal ?? n) || void 0, this.e = t?.eager, this.m = t?.name, this.#t = t?.onDisposeValue, r) {
|
|
63
63
|
let e = new WeakRef(this), t = () => {
|
|
64
|
-
if (
|
|
65
|
-
let e =
|
|
66
|
-
|
|
64
|
+
if (n) {
|
|
65
|
+
let e = n;
|
|
66
|
+
n = void 0, e();
|
|
67
67
|
}
|
|
68
|
-
},
|
|
68
|
+
}, n = r(() => {
|
|
69
69
|
let n = e.deref();
|
|
70
70
|
n ? n.n() : t();
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
n && x.register(this, this.#e = t);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
g = this;
|
|
@@ -89,7 +89,7 @@ var m = /* @__PURE__ */ Promise.resolve(), h = /* @__PURE__ */ new Set(), g = /*
|
|
|
89
89
|
return this.c;
|
|
90
90
|
};
|
|
91
91
|
n = () => {
|
|
92
|
-
this.#i && (console.error(this.c, /* @__PURE__ */ Error(`${this.m || ""} disposed`)), process.env.NODE_ENV !== "production" && console.error(this.#i)), this.s |= 4, this.b.size && (this.s |= 1, this[3] && this.#r(3), this[2] && (this.u(), this.s & 2 && this.#r(2)), this[1] ?
|
|
92
|
+
this.#i && (console.error(this.c, /* @__PURE__ */ Error(`${this.m || ""} disposed`)), process.env.NODE_ENV !== "production" && console.error(this.#i)), this.s |= 4, this.b.size && (this.s |= 1, this[3] && this.#r(3), this[2] && (this.u(), this.s & 2 && this.#r(2)), this[1] ? y(this) : this.s &= -4);
|
|
93
93
|
};
|
|
94
94
|
a(e, t) {
|
|
95
95
|
let n = this.b.get(e);
|
|
@@ -99,14 +99,14 @@ var m = /* @__PURE__ */ Promise.resolve(), h = /* @__PURE__ */ new Set(), g = /*
|
|
|
99
99
|
if (e) {
|
|
100
100
|
let t = this.b.get(e);
|
|
101
101
|
t && (this.b.delete(e), this[t]--);
|
|
102
|
-
} else this.b.clear(), this[1] = this[2] = this[3] = 0,
|
|
102
|
+
} else this.b.clear(), this[1] = this[2] = this[3] = 0, b(this);
|
|
103
103
|
}
|
|
104
104
|
t() {
|
|
105
105
|
this[1] && (this.u(), this.s & 2 && this.#r(1)), this.s &= -4;
|
|
106
106
|
}
|
|
107
107
|
d() {
|
|
108
108
|
let t = this.c;
|
|
109
|
-
this.r(),
|
|
109
|
+
this.r(), x.unregister(this), this.#e?.(), this.#i = process.env.NODE_ENV === "production" || /* @__PURE__ */ Error("[val-dev] Val disposed at:"), this.#t && t !== e && this.#t(t);
|
|
110
110
|
}
|
|
111
111
|
w(e) {
|
|
112
112
|
this.w = this.q?.(e, e) ? this.y : this.x, this.w(e);
|
|
@@ -126,10 +126,10 @@ var m = /* @__PURE__ */ Promise.resolve(), h = /* @__PURE__ */ new Set(), g = /*
|
|
|
126
126
|
#t;
|
|
127
127
|
#n;
|
|
128
128
|
#r(e) {
|
|
129
|
-
for (let [t, n] of this.b) n === e &&
|
|
129
|
+
for (let [t, n] of this.b) n === e && s(t, this.c);
|
|
130
130
|
}
|
|
131
131
|
#i;
|
|
132
|
-
},
|
|
132
|
+
}, C = class {
|
|
133
133
|
#e = /* @__PURE__ */ new WeakSet();
|
|
134
134
|
constructor(e) {
|
|
135
135
|
this.g = e.g, this.e = e.e, this.u = e.u, this.n = e.n, this.b = e.b;
|
|
@@ -152,7 +152,7 @@ var m = /* @__PURE__ */ Promise.resolve(), h = /* @__PURE__ */ new Set(), g = /*
|
|
|
152
152
|
d() {
|
|
153
153
|
this.r();
|
|
154
154
|
}
|
|
155
|
-
},
|
|
155
|
+
}, w = class {
|
|
156
156
|
#e;
|
|
157
157
|
constructor(e) {
|
|
158
158
|
this.#e = e, this.get = e.u, e.u();
|
|
@@ -172,15 +172,15 @@ var m = /* @__PURE__ */ Promise.resolve(), h = /* @__PURE__ */ new Set(), g = /*
|
|
|
172
172
|
set;
|
|
173
173
|
get;
|
|
174
174
|
ref(e) {
|
|
175
|
-
let t = new
|
|
176
|
-
return e && this.set ?
|
|
175
|
+
let t = new w(new C(this.#e));
|
|
176
|
+
return e && this.set ? c(t, this.set) : t;
|
|
177
177
|
}
|
|
178
178
|
reaction(e, t = this.#e.e) {
|
|
179
179
|
return this.#e.a(e, t ? 2 : 1);
|
|
180
180
|
}
|
|
181
181
|
subscribe(e, t = this.#e.e) {
|
|
182
182
|
let n = this.reaction(e, t);
|
|
183
|
-
return
|
|
183
|
+
return s(e, this.get()), n;
|
|
184
184
|
}
|
|
185
185
|
$valCompute(e) {
|
|
186
186
|
return this.#e.a(e, 3);
|
|
@@ -198,55 +198,55 @@ var m = /* @__PURE__ */ Promise.resolve(), h = /* @__PURE__ */ new Set(), g = /*
|
|
|
198
198
|
let t = this.get();
|
|
199
199
|
return t && t.toJSON ? t.toJSON(e) : t;
|
|
200
200
|
}
|
|
201
|
-
},
|
|
202
|
-
let n = e, r = new
|
|
203
|
-
return [new
|
|
201
|
+
}, T = (e, t) => {
|
|
202
|
+
let n = e, r = new S(() => n, t);
|
|
203
|
+
return [new w(r), (e) => {
|
|
204
204
|
r.q?.(e, n) || (n = e, r.n());
|
|
205
205
|
}];
|
|
206
|
-
},
|
|
207
|
-
let
|
|
208
|
-
return
|
|
209
|
-
let
|
|
210
|
-
return (!l || !
|
|
206
|
+
}, E = (e, t) => c(...T(e, t)), D = (e, t, n) => new w(new S(e, n, t)), O = (e, n = t, i) => {
|
|
207
|
+
let c, l;
|
|
208
|
+
return D(() => {
|
|
209
|
+
let t = e.map(o);
|
|
210
|
+
return (!l || !r(t, l)) && (l = t, c = n(a(e))), c;
|
|
211
211
|
}, (t) => {
|
|
212
212
|
let n = e.map((e) => e.$valCompute(t));
|
|
213
|
-
return () => n.forEach(
|
|
214
|
-
},
|
|
215
|
-
},
|
|
213
|
+
return () => n.forEach(s);
|
|
214
|
+
}, i);
|
|
215
|
+
}, k = (t, r) => {
|
|
216
216
|
let i = 0, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = (t) => {
|
|
217
|
-
if (!
|
|
218
|
-
if (!
|
|
217
|
+
if (!l(t)) {
|
|
218
|
+
if (!l(t?.$)) return t;
|
|
219
219
|
t = t.$;
|
|
220
220
|
}
|
|
221
|
-
return a.has(t) ?
|
|
222
|
-
}, c,
|
|
221
|
+
return a.has(t) ? n(t.$version, a.get(t)) || a.set(t, e) : (o.delete(t) || t.$valCompute(u.n), a.set(t, t.$version)), t.value;
|
|
222
|
+
}, c, u = new S(() => {
|
|
223
223
|
if (!i) {
|
|
224
224
|
if (a.size) x: {
|
|
225
|
-
for (let [e, t] of a) if (!
|
|
225
|
+
for (let [e, t] of a) if (!n(e.$version, t)) break x;
|
|
226
226
|
return c;
|
|
227
227
|
}
|
|
228
228
|
let e = a;
|
|
229
229
|
a = o, o = e, i++;
|
|
230
230
|
}
|
|
231
231
|
if (c = t(s), !--i && o.size) {
|
|
232
|
-
for (let e of o.keys()) e.unsubscribe(
|
|
232
|
+
for (let e of o.keys()) e.unsubscribe(u.n);
|
|
233
233
|
o.clear();
|
|
234
234
|
}
|
|
235
235
|
return c;
|
|
236
|
-
},
|
|
236
|
+
}, r, () => () => {
|
|
237
237
|
if (a.size) {
|
|
238
|
-
for (let e of a.keys()) e.unsubscribe(
|
|
238
|
+
for (let e of a.keys()) e.unsubscribe(u.n);
|
|
239
239
|
a.clear();
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
|
-
return new
|
|
243
|
-
},
|
|
242
|
+
return new w(u);
|
|
243
|
+
}, A = (r, i = t, a) => {
|
|
244
244
|
let o, s = e;
|
|
245
|
-
return
|
|
246
|
-
let e =
|
|
247
|
-
return
|
|
248
|
-
}, (e) =>
|
|
245
|
+
return D(() => {
|
|
246
|
+
let e = r.$version;
|
|
247
|
+
return n(e, s) || (s = e, o = i(r.value)), o;
|
|
248
|
+
}, (e) => r.$valCompute(e), a);
|
|
249
249
|
};
|
|
250
|
-
process.env.NODE_ENV !== "production" &&
|
|
250
|
+
process.env.NODE_ENV !== "production" && f();
|
|
251
251
|
//#endregion
|
|
252
|
-
export {
|
|
252
|
+
export { A as a, n as c, k as i, E as l, c as n, l as o, O as r, T as s, r as t };
|