@oomol-lab/open-flow 0.1.0-beta.3 → 0.1.0-beta.30

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 (123) 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-_y2xHaUA.js +110 -0
  4. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  5. package/dist/browser/dist-CoszrK7m.js +4 -0
  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/editorComponent-Dq4IKp5R.js +14790 -0
  16. package/dist/browser/{esm-C2UUqIUP.js → esm-B7A42FzW.js} +68 -59
  17. package/dist/browser/event-sources.d.ts +30 -0
  18. package/dist/browser/flow-authoring-module.d.ts +2 -2
  19. package/dist/browser/flow-authoring-node.d.ts +26 -8
  20. package/dist/browser/flow-authoring.d.ts +1 -1
  21. package/dist/browser/flow-authoring.js +5282 -313
  22. package/dist/browser/flow-change-schema.d.ts +11 -0
  23. package/dist/browser/flow-change.d.ts +193 -18
  24. package/dist/browser/flow-change.js +5192 -137
  25. package/dist/browser/flow-notifications.d.ts +11 -2
  26. package/dist/browser/flowChanges-AdN0Iqma.js +12304 -0
  27. package/dist/browser/{flowRunInputEditorStore-CwvOiIiU.js → flowRunInputEditorStore-CTORQcA2.js} +864 -4000
  28. package/dist/browser/flowWorkspace-BrtzLKWB.js +153066 -0
  29. package/dist/browser/host-conformance.d.ts +7 -0
  30. package/dist/browser/host-conformance.js +39 -0
  31. package/dist/browser/inputValues-DJfFraxG.js +43 -0
  32. package/dist/browser/licenses.md +195 -662
  33. package/dist/browser/lite-BuKZ8joP.js +8545 -0
  34. package/dist/browser/main-BDnNHhkU.js +50 -0
  35. package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-D2oHGWc6.js} +53 -53
  36. package/dist/browser/theme.css +527 -34
  37. package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
  38. package/dist/browser/ui-input.d.ts +5 -0
  39. package/dist/browser/ui-label.d.ts +3 -0
  40. package/dist/browser/ui-textarea.d.ts +3 -0
  41. package/dist/browser/ui.css +2 -0
  42. package/dist/browser/ui.css.d.ts +1 -0
  43. package/dist/browser/ui.d.ts +34 -0
  44. package/dist/browser/ui.js +2632 -0
  45. package/dist/browser/value-DPg_9yXB.js +93 -0
  46. package/dist/browser/warmCodeTheme-DVv4-rDO.js +35 -0
  47. package/dist/browser/workbench-contract.d.ts +27 -2
  48. package/dist/browser/workbench.css +1 -1
  49. package/dist/browser/workbench.d.ts +2 -0
  50. package/dist/browser/workbench.js +2767 -1406
  51. package/dist/browser/workbenchSelect-BDPIQxYK.js +5967 -0
  52. package/dist/common/authoringExamples.d.ts +28 -0
  53. package/dist/common/control-api-conformance.d.ts +7 -0
  54. package/dist/common/control-api-conformance.js +5568 -171
  55. package/dist/common/control-api-errors.d.ts +37 -0
  56. package/dist/common/control-api.d.ts +394 -47
  57. package/dist/common/control-api.js +6066 -569
  58. package/dist/common/control-requests.d.ts +98 -0
  59. package/dist/common/control-requests.js +5412 -0
  60. package/dist/common/cron-trigger.d.ts +2 -1
  61. package/dist/common/cron-trigger.js +27 -24
  62. package/dist/common/draftOperations.d.ts +14 -0
  63. package/dist/common/engine-contract.d.ts +3 -1
  64. package/dist/common/event-sources.d.ts +50 -0
  65. package/dist/common/feishu-events.d.ts +20 -0
  66. package/dist/common/feishu-subscriptions.d.ts +10 -0
  67. package/dist/common/flow-agent.d.ts +10 -0
  68. package/dist/common/flow-encoding.d.ts +16 -2
  69. package/dist/common/flow-encoding.js +5092 -68
  70. package/dist/common/flow-graph.d.ts +52 -0
  71. package/dist/common/flow-json.d.ts +2 -0
  72. package/dist/common/flow-modules.d.ts +20 -0
  73. package/dist/common/flow-notifications.d.ts +11 -2
  74. package/dist/common/flow-schema.d.ts +17 -0
  75. package/dist/common/flow-semantics.d.ts +12 -6
  76. package/dist/common/flow-semantics.js +15870 -9668
  77. package/dist/common/flowInspection.d.ts +16 -0
  78. package/dist/common/fr-iv1541dF.js +93 -0
  79. package/dist/common/integration-trigger.d.ts +29 -2
  80. package/dist/common/integration-trigger.js +192 -56
  81. package/dist/common/ja-Bq-ZDOD4.js +93 -0
  82. package/dist/common/ko-Z-k9R2c6.js +93 -0
  83. package/dist/common/localization.d.ts +2 -0
  84. package/dist/common/localization.js +37 -1
  85. package/dist/common/mcp-conformance.d.ts +2 -0
  86. package/dist/common/mcp.d.ts +767 -0
  87. package/dist/common/mcp.js +6733 -0
  88. package/dist/common/poll-trigger.d.ts +5 -0
  89. package/dist/common/poll-trigger.js +26 -22
  90. package/dist/common/provider-triggers.d.ts +4 -0
  91. package/dist/common/provider-triggers.js +7310 -1736
  92. package/dist/common/ru-B4gFecYZ.js +93 -0
  93. package/dist/common/run-events.d.ts +2 -2
  94. package/dist/common/run-events.js +13 -17
  95. package/dist/common/run-lifecycle.d.ts +21 -2
  96. package/dist/common/run-lifecycle.js +83 -2
  97. package/dist/common/run-results.d.ts +57 -0
  98. package/dist/common/runtime-contract.d.ts +38 -3
  99. package/dist/common/runtime-contract.js +291 -19
  100. package/dist/common/scheduler.d.ts +97 -19
  101. package/dist/common/scheduler.js +8234 -261
  102. package/dist/common/trigger-catalog.d.ts +17 -0
  103. package/dist/common/trigger-config-options.d.ts +13 -0
  104. package/dist/common/trigger-contract.d.ts +5 -0
  105. package/dist/common/trigger-localization.d.ts +7 -0
  106. package/dist/common/webhook-trigger.d.ts +3 -3
  107. package/dist/common/webhook-trigger.js +64 -18
  108. package/dist/common/zh-CN-ByQ6nYam.js +93 -0
  109. package/dist/common/zh-TW-QjIarvX9.js +93 -0
  110. package/dist/index.d.ts +6 -5
  111. package/package.json +21 -1
  112. package/dist/browser/carbon-DMCVsjHo.js +0 -53
  113. package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
  114. package/dist/browser/diagnostics-SDCyFuxm.js +0 -11634
  115. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  116. package/dist/browser/dist-BpopSHwP.js +0 -1543
  117. package/dist/browser/dist-CP0883sY.js +0 -4
  118. package/dist/browser/dist-CUSrALSX.js +0 -1620
  119. package/dist/browser/flowWorkspace-BZ_eiQNR.js +0 -45393
  120. package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
  121. package/dist/browser/languages-DgJehE1g.js +0 -62
  122. package/dist/browser/main-DmjVyuWr.js +0 -76
  123. 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 };