@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.
Files changed (93) hide show
  1. package/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
  2. package/dist/browser/carbon-Cn-DTyjG.js +54 -0
  3. package/dist/browser/createResourceDialog-CjuJryCv.js +110 -0
  4. package/dist/browser/dist-B_T-OpQp.js +4 -0
  5. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  6. package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
  7. package/dist/browser/dist-DSe6KRsr.js +1224 -0
  8. package/dist/browser/dist-DYjIVIZC.js +795 -0
  9. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  10. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  11. package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
  12. package/dist/browser/dist-DxahK_I8.js +2688 -0
  13. package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
  14. package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
  15. package/dist/browser/{esm-B_PbUobB.js → esm-B7A42FzW.js} +68 -59
  16. package/dist/browser/flow-authoring-module.d.ts +2 -2
  17. package/dist/browser/flow-authoring-node.d.ts +20 -6
  18. package/dist/browser/flow-authoring.d.ts +1 -1
  19. package/dist/browser/flow-authoring.js +5405 -286
  20. package/dist/browser/flow-change-schema.d.ts +6 -0
  21. package/dist/browser/flow-change.d.ts +173 -14
  22. package/dist/browser/flow-change.js +5271 -114
  23. package/dist/browser/flow-notifications.d.ts +5 -0
  24. package/dist/browser/flowChanges-Tg1duLry.js +11081 -0
  25. package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-BBqQIOCR.js} +1020 -4104
  26. package/dist/browser/flowWorkspace-CoK10XHY.js +148497 -0
  27. package/dist/browser/host-conformance.d.ts +7 -0
  28. package/dist/browser/host-conformance.js +33 -0
  29. package/dist/browser/{diagnostics-giPSzyMo.js → i18n-CVBh0Ni1.js} +3390 -5715
  30. package/dist/browser/inputValues-CDiBMKu8.js +43 -0
  31. package/dist/browser/{languages-DgJehE1g.js → languages-C0zQ4GSo.js} +5 -25
  32. package/dist/browser/licenses.md +149 -700
  33. package/dist/browser/main-BDnNHhkU.js +50 -0
  34. package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BBgH9ZIV.js} +41 -41
  35. package/dist/browser/theme.css +461 -34
  36. package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
  37. package/dist/browser/ui-input.d.ts +3 -0
  38. package/dist/browser/ui-label.d.ts +3 -0
  39. package/dist/browser/ui-textarea.d.ts +3 -0
  40. package/dist/browser/ui.css +2 -0
  41. package/dist/browser/ui.css.d.ts +1 -0
  42. package/dist/browser/ui.d.ts +12 -0
  43. package/dist/browser/ui.js +2598 -0
  44. package/dist/browser/useValueChanged-BY05Usw-.js +2944 -0
  45. package/dist/browser/workbench-contract.d.ts +8 -2
  46. package/dist/browser/workbench.css +1 -1
  47. package/dist/browser/workbench.d.ts +1 -0
  48. package/dist/browser/workbench.js +2043 -1327
  49. package/dist/browser/workbenchSelect-DEmv7SLW.js +11666 -0
  50. package/dist/common/control-api-conformance.d.ts +7 -0
  51. package/dist/common/control-api-conformance.js +5629 -166
  52. package/dist/common/control-api-errors.d.ts +9 -0
  53. package/dist/common/control-api.d.ts +309 -38
  54. package/dist/common/control-api.js +5877 -575
  55. package/dist/common/control-requests.d.ts +68 -0
  56. package/dist/common/control-requests.js +4950 -0
  57. package/dist/common/engine-contract.d.ts +3 -1
  58. package/dist/common/flow-agent.d.ts +10 -0
  59. package/dist/common/flow-encoding.d.ts +11 -2
  60. package/dist/common/flow-encoding.js +4972 -66
  61. package/dist/common/flow-graph.d.ts +6 -0
  62. package/dist/common/flow-json.d.ts +2 -0
  63. package/dist/common/flow-modules.d.ts +20 -0
  64. package/dist/common/flow-notifications.d.ts +5 -0
  65. package/dist/common/flow-schema.d.ts +8 -0
  66. package/dist/common/flow-semantics.d.ts +10 -6
  67. package/dist/common/flow-semantics.js +10042 -1700
  68. package/dist/common/integration-trigger.d.ts +24 -1
  69. package/dist/common/integration-trigger.js +188 -52
  70. package/dist/common/mcp-conformance.d.ts +2 -0
  71. package/dist/common/mcp.d.ts +765 -0
  72. package/dist/common/mcp.js +6538 -0
  73. package/dist/common/provider-triggers.js +6057 -993
  74. package/dist/common/run-events.d.ts +2 -2
  75. package/dist/common/run-events.js +12 -17
  76. package/dist/common/run-lifecycle.d.ts +21 -2
  77. package/dist/common/run-lifecycle.js +83 -2
  78. package/dist/common/run-results.d.ts +57 -0
  79. package/dist/common/runtime-contract.d.ts +36 -3
  80. package/dist/common/runtime-contract.js +227 -19
  81. package/dist/common/scheduler.d.ts +77 -18
  82. package/dist/common/scheduler.js +8259 -248
  83. package/dist/index.d.ts +6 -5
  84. package/package.json +21 -1
  85. package/dist/browser/carbon-DMCVsjHo.js +0 -53
  86. package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
  87. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  88. package/dist/browser/dist-BpopSHwP.js +0 -1543
  89. package/dist/browser/dist-CUSrALSX.js +0 -1620
  90. package/dist/browser/flowWorkspace-DAMLVMcF.js +0 -47584
  91. package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
  92. package/dist/browser/main-DmjVyuWr.js +0 -76
  93. 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, t) => e?.set?.(t), n = (e) => e, r = Object.is, i = (e, t) => {
3
- if (r(e, t)) return !0;
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 n = e.length;
6
- if (t.length !== n) return !1;
7
- for (let i = 0; i < n; i++) if (!r(e[i], t[i])) return !1;
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
- }, a = (e) => e.value, o = (e) => e.map(a), s = (e) => e.$version, c = (e, t) => {
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
- }, l = (e, t) => (e.set = t, e), u = (e) => !!e?.$valCompute, d = (e) => !!e?.set;
16
- function f() {
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) => u(t) ? [
19
+ header: (t) => l(t) ? [
20
20
  "div",
21
21
  e,
22
- `${d(t) ? "Val" : "ReadonlyVal"}`,
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 p() {
51
- f();
50
+ function f() {
51
+ d();
52
52
  }
53
- var m = /* @__PURE__ */ Promise.resolve(), h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), _ = h, v, y = () => {
54
- let e = _;
55
- _ = _ === h ? g : h, v = !1;
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
- }, b = (e) => {
59
- _.add(e), v ||= m.then(y);
60
- }, x = (e) => _.delete(e), S = /* @__PURE__ */ new FinalizationRegistry(c), C = class {
61
- constructor(e, t, n) {
62
- if (this.#n = e, this.q = (t?.equal ?? r) || void 0, this.e = t?.eager, this.m = t?.name, this.#t = t?.onDisposeValue, n) {
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 (r) {
65
- let e = r;
66
- r = void 0, e();
64
+ if (n) {
65
+ let e = n;
66
+ n = void 0, e();
67
67
  }
68
- }, r = n(() => {
68
+ }, n = r(() => {
69
69
  let n = e.deref();
70
70
  n ? n.n() : t();
71
71
  });
72
- r && S.register(this, this.#e = t);
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] ? b(this) : this.s &= -4);
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, x(this);
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(), S.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);
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 && c(t, this.c);
129
+ for (let [t, n] of this.b) n === e && s(t, this.c);
130
130
  }
131
131
  #i;
132
- }, w = class {
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
- }, T = class {
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 T(new w(this.#e));
176
- return e && this.set ? l(t, this.set) : t;
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 c(e, this.get()), n;
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
- }, E = (e, t) => {
202
- let n = e, r = new C(() => n, t);
203
- return [new T(r), (e) => {
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
- }, D = (e, t) => l(...E(e, t)), O = (e, t, n) => new T(new C(e, n, t)), k = (e, t = n, r) => {
207
- let a, l;
208
- return O(() => {
209
- let n = e.map(s);
210
- return (!l || !i(n, l)) && (l = n, a = t(o(e))), a;
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(c);
214
- }, r);
215
- }, A = (t, n) => {
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 (!u(t)) {
218
- if (!u(t?.$)) return t;
217
+ if (!l(t)) {
218
+ if (!l(t?.$)) return t;
219
219
  t = t.$;
220
220
  }
221
- return a.has(t) ? r(t.$version, a.get(t)) || a.set(t, e) : (o.delete(t) || t.$valCompute(l.n), a.set(t, t.$version)), t.value;
222
- }, c, l = new 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 (!r(e.$version, t)) break x;
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(l.n);
232
+ for (let e of o.keys()) e.unsubscribe(u.n);
233
233
  o.clear();
234
234
  }
235
235
  return c;
236
- }, n, () => () => {
236
+ }, r, () => () => {
237
237
  if (a.size) {
238
- for (let e of a.keys()) e.unsubscribe(l.n);
238
+ for (let e of a.keys()) e.unsubscribe(u.n);
239
239
  a.clear();
240
240
  }
241
241
  });
242
- return new T(l);
243
- }, j = (t, i = n, a) => {
242
+ return new w(u);
243
+ }, A = (r, i = t, a) => {
244
244
  let o, s = e;
245
- return O(() => {
246
- let e = t.$version;
247
- return r(e, s) || (s = e, o = i(t.value)), o;
248
- }, (e) => t.$valCompute(e), a);
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" && p();
250
+ process.env.NODE_ENV !== "production" && f();
251
251
  //#endregion
252
- export { j as a, d as c, r as d, D as f, A as i, E as l, l as n, n as o, k as r, u as s, i as t, t as u };
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 };