@oomol-lab/open-flow 0.1.0-alpha.9 → 0.1.0-beta.10

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 (74) hide show
  1. package/README.md +5 -1
  2. package/dist/browser/DesignerIcon-DjgOMYI5.js +2065 -0
  3. package/dist/browser/createResourceDialog-DNBueSYZ.js +505 -0
  4. package/dist/browser/{dist-n9WmBm5w.js → dist-BKuSVKCC.js} +1 -1
  5. package/dist/browser/dist-BMRLCebL.js +1893 -0
  6. package/dist/browser/{dist-DWzdGVm9.js → dist-By46o5UV.js} +74 -74
  7. package/dist/browser/dist-CP0883sY.js +4 -0
  8. package/dist/browser/{dist-B0Q2Mn0n.js → dist-Cc0y2Pli.js} +809 -810
  9. package/dist/browser/dist-CeSZ2xSM.js +444 -0
  10. package/dist/browser/{dist-Bc9TvHYl.js → dist-Dg_VXC8f.js} +134 -135
  11. package/dist/browser/{dist-DhsGR_K3.js → dist-DmuE3M0R.js} +47 -48
  12. package/dist/browser/{dist-D5mdziGP.js → dist-DpDLsYtO.js} +18 -19
  13. package/dist/browser/dist-DxahK_I8.js +2688 -0
  14. package/dist/browser/{dist-DXgEYMFx.js → dist-meg_oHVR.js} +230 -230
  15. package/dist/browser/{esm-YIGXG-Js.js → esm-yhVU_KbQ.js} +14 -15
  16. package/dist/browser/flow-authoring-module.d.ts +2 -2
  17. package/dist/browser/flow-authoring-node.d.ts +9 -4
  18. package/dist/browser/flow-authoring.d.ts +2 -1
  19. package/dist/browser/flow-authoring.js +752 -162
  20. package/dist/browser/flow-change.d.ts +122 -13
  21. package/dist/browser/flow-change.js +326 -96
  22. package/dist/browser/flow-notifications.d.ts +5 -0
  23. package/dist/browser/flowChanges-B2ttnaj9.js +12265 -0
  24. package/dist/browser/{flowRunInputEditorStore-DXOyyY7o.js → flowRunInputEditorStore-DDidwd8h.js} +1528 -783
  25. package/dist/browser/{flowWorkspace-D7-rBA1-.js → flowWorkspace-Dr8-Hut9.js} +42428 -42499
  26. package/dist/browser/getPseudoElementBounds-5LArT6Xc.js +7147 -0
  27. package/dist/browser/icons-KIOgjHpD.js +730 -0
  28. package/dist/browser/languages-DgJehE1g.js +62 -0
  29. package/dist/browser/lib-C5Ipyfps.js +7856 -0
  30. package/dist/browser/licenses.md +119 -1
  31. package/dist/browser/main-DmjVyuWr.js +76 -0
  32. package/dist/browser/{markdownContent-ColGUxHy.js → markdownContent-DUfLdnUt.js} +4811 -4795
  33. package/dist/browser/theme.css +63 -0
  34. package/dist/browser/theme.css.d.ts +1 -0
  35. package/dist/browser/typeScriptSession-_TgJ_7Oq.js +2578 -0
  36. package/dist/browser/waitNotificationInputs-BPulOxYt.js +26 -0
  37. package/dist/browser/workbench-contract.d.ts +2 -1
  38. package/dist/browser/workbench.css +1 -1
  39. package/dist/browser/workbench.d.ts +47 -1
  40. package/dist/browser/workbench.js +1524 -1768
  41. package/dist/browser/workbenchSelect-CbXrdwxW.js +1375 -0
  42. package/dist/common/connector-action.d.ts +6 -0
  43. package/dist/common/connector-action.js +37 -29
  44. package/dist/common/control-api-conformance.d.ts +1 -0
  45. package/dist/common/control-api-conformance.js +171 -51
  46. package/dist/common/control-api-errors.d.ts +28 -0
  47. package/dist/common/control-api.d.ts +80 -21
  48. package/dist/common/control-api.js +311 -131
  49. package/dist/common/flow-encoding.d.ts +2 -2
  50. package/dist/common/flow-encoding.js +28 -9
  51. package/dist/common/flow-notifications.d.ts +5 -0
  52. package/dist/common/flow-semantics.d.ts +4 -0
  53. package/dist/common/flow-semantics.js +3544 -1098
  54. package/dist/common/integration-trigger.d.ts +1 -0
  55. package/dist/common/licenses.md +1 -25
  56. package/dist/common/localization.d.ts +21 -0
  57. package/dist/common/localization.js +62 -0
  58. package/dist/common/provider-triggers.js +4 -1
  59. package/dist/common/run-events.js +2 -1
  60. package/dist/common/run-lifecycle.d.ts +17 -2
  61. package/dist/common/run-lifecycle.js +53 -2
  62. package/dist/common/runtime-contract.d.ts +1 -1
  63. package/dist/common/runtime-contract.js +27 -0
  64. package/dist/common/scheduler.d.ts +68 -7
  65. package/dist/common/scheduler.js +528 -240
  66. package/dist/index.d.ts +2 -1
  67. package/package.json +10 -1
  68. package/dist/browser/addNodeOptions-DRndy4EK.js +0 -6910
  69. package/dist/browser/createLucideIcon-CqjqCezK.js +0 -5537
  70. package/dist/browser/createResourceDialog-A64dDFCG.js +0 -467
  71. package/dist/browser/dist-CUkceEvN.js +0 -1620
  72. package/dist/browser/dist-CVtP-E2c.js +0 -1543
  73. package/dist/browser/dist-DQVavPcf.js +0 -2328
  74. package/dist/browser/field-CKGQHCIi.js +0 -312
@@ -1,4 +1,4 @@
1
- import { c as e, d as t, l as n, m as r, p as i, s as a, u as o } from "./dist-CVtP-E2c.js";
1
+ import { B as e, L as t, R as n, U as r, V as i, W as a, z as o } from "./dist-DxahK_I8.js";
2
2
  //#region ../../node_modules/.bun/@lezer+lr@1.4.10/node_modules/@lezer/lr/dist/index.js
3
3
  var s = class e {
4
4
  constructor(e, t, n, r, i, a, o, s, c, l = 0, u) {
@@ -435,12 +435,12 @@ function b(e, t, n, r) {
435
435
  return i < 0 || y(n, r, e) < i;
436
436
  }
437
437
  var x = typeof process < "u" && /\bparse\b/.test({}.LOG), S = null;
438
- function C(t, n, r) {
439
- let i = t.cursor(e.IncludeAnonymous);
440
- for (i.moveTo(n);;) if (!(r < 0 ? i.childBefore(n) : i.childAfter(n))) for (;;) {
441
- if ((r < 0 ? i.to < n : i.from > n) && !i.type.isError) return r < 0 ? Math.max(0, Math.min(i.to - 1, n - 25)) : Math.min(t.length, Math.max(i.from + 1, n + 25));
438
+ function C(e, t, r) {
439
+ let i = e.cursor(n.IncludeAnonymous);
440
+ for (i.moveTo(t);;) if (!(r < 0 ? i.childBefore(t) : i.childAfter(t))) for (;;) {
441
+ if ((r < 0 ? i.to < t : i.from > t) && !i.type.isError) return r < 0 ? Math.max(0, Math.min(i.to - 1, t - 25)) : Math.min(e.length, Math.max(i.from + 1, t + 25));
442
442
  if (r < 0 ? i.prevSibling() : i.nextSibling()) break;
443
- if (!i.parent()) return r < 0 ? 0 : t.length;
443
+ if (!i.parent()) return r < 0 ? 0 : e.length;
444
444
  }
445
445
  }
446
446
  var w = class {
@@ -461,24 +461,24 @@ var w = class {
461
461
  for (;;) {
462
462
  let t = this.trees.length - 1;
463
463
  if (t < 0) return this.nextFragment(), null;
464
- let i = this.trees[t], a = this.index[t];
465
- if (a == i.children.length) {
464
+ let n = this.trees[t], r = this.index[t];
465
+ if (r == n.children.length) {
466
466
  this.trees.pop(), this.start.pop(), this.index.pop();
467
467
  continue;
468
468
  }
469
- let o = i.children[a], s = this.start[t] + i.positions[a];
469
+ let i = n.children[r], s = this.start[t] + n.positions[r];
470
470
  if (s > e) return this.nextStart = s, null;
471
- if (o instanceof r) {
471
+ if (i instanceof a) {
472
472
  if (s == e) {
473
473
  if (s < this.safeFrom) return null;
474
- let e = s + o.length;
474
+ let e = s + i.length;
475
475
  if (e <= this.safeTo) {
476
- let t = o.prop(n.lookAhead);
477
- if (!t || e + t < this.fragment.to) return o;
476
+ let t = i.prop(o.lookAhead);
477
+ if (!t || e + t < this.fragment.to) return i;
478
478
  }
479
479
  }
480
- this.index[t]++, s + o.length >= Math.max(this.safeFrom, e) && (this.trees.push(o), this.start.push(s), this.index.push(0));
481
- } else this.index[t]++, this.nextStart = s + o.length;
480
+ this.index[t]++, s + i.length >= Math.max(this.safeFrom, e) && (this.trees.push(i), this.start.push(s), this.index.push(0));
481
+ } else this.index[t]++, this.nextStart = s + i.length;
482
482
  }
483
483
  }
484
484
  }, T = class {
@@ -601,28 +601,28 @@ var w = class {
601
601
  if (this.stoppedAt != null && this.stoppedAt < e) throw RangeError("Can't move stoppedAt forward");
602
602
  this.stoppedAt = e;
603
603
  }
604
- advanceStack(e, t, i) {
605
- let a = e.pos, { parser: o } = this, s = x ? this.stackID(e) + " -> " : "";
606
- if (this.stoppedAt != null && a > this.stoppedAt) return e.forceReduce() ? e : null;
604
+ advanceStack(e, t, n) {
605
+ let r = e.pos, { parser: i } = this, s = x ? this.stackID(e) + " -> " : "";
606
+ if (this.stoppedAt != null && r > this.stoppedAt) return e.forceReduce() ? e : null;
607
607
  if (this.fragments) {
608
- let t = e.curContext && e.curContext.tracker.strict, i = t ? e.curContext.hash : 0;
609
- for (let c = this.fragments.nodeAt(a); c;) {
610
- let a = this.parser.nodeSet.types[c.type.id] == c.type ? o.getGoto(e.state, c.type.id) : -1;
611
- if (a > -1 && c.length && (!t || (c.prop(n.contextHash) || 0) == i)) return e.useNode(c, a), x && console.log(s + this.stackID(e) + ` (via reuse of ${o.getName(c.type.id)})`), !0;
612
- if (!(c instanceof r) || c.children.length == 0 || c.positions[0] > 0) break;
608
+ let t = e.curContext && e.curContext.tracker.strict, n = t ? e.curContext.hash : 0;
609
+ for (let c = this.fragments.nodeAt(r); c;) {
610
+ let r = this.parser.nodeSet.types[c.type.id] == c.type ? i.getGoto(e.state, c.type.id) : -1;
611
+ if (r > -1 && c.length && (!t || (c.prop(o.contextHash) || 0) == n)) return e.useNode(c, r), x && console.log(s + this.stackID(e) + ` (via reuse of ${i.getName(c.type.id)})`), !0;
612
+ if (!(c instanceof a) || c.children.length == 0 || c.positions[0] > 0) break;
613
613
  let l = c.children[0];
614
- if (l instanceof r && c.positions[0] == 0) c = l;
614
+ if (l instanceof a && c.positions[0] == 0) c = l;
615
615
  else break;
616
616
  }
617
617
  }
618
- let c = o.stateSlot(e.state, 4);
619
- if (c > 0) return e.reduce(c), x && console.log(s + this.stackID(e) + ` (via always-reduce ${o.getName(c & 65535)})`), !0;
618
+ let c = i.stateSlot(e.state, 4);
619
+ if (c > 0) return e.reduce(c), x && console.log(s + this.stackID(e) + ` (via always-reduce ${i.getName(c & 65535)})`), !0;
620
620
  if (e.stack.length >= 8400) for (; e.stack.length > 6e3 && e.forceReduce(););
621
621
  let l = this.tokens.getActions(e);
622
- for (let n = 0; n < l.length;) {
623
- let r = l[n++], c = l[n++], u = l[n++], d = n == l.length || !i, f = d ? e : e.split(), p = this.tokens.mainToken;
624
- if (f.apply(r, c, p ? p.start : f.pos, u), x && console.log(s + this.stackID(f) + ` (via ${r & 65536 ? `reduce of ${o.getName(r & 65535)}` : "shift"} for ${o.getName(c)} @ ${a}${f == e ? "" : ", split"})`), d) return !0;
625
- f.pos > a ? t.push(f) : i.push(f);
622
+ for (let a = 0; a < l.length;) {
623
+ let o = l[a++], c = l[a++], u = l[a++], d = a == l.length || !n, f = d ? e : e.split(), p = this.tokens.mainToken;
624
+ if (f.apply(o, c, p ? p.start : f.pos, u), x && console.log(s + this.stackID(f) + ` (via ${o & 65536 ? `reduce of ${i.getName(o & 65535)}` : "shift"} for ${i.getName(c)} @ ${r}${f == e ? "" : ", split"})`), d) return !0;
625
+ f.pos > r ? t.push(f) : n.push(f);
626
626
  }
627
627
  return !1;
628
628
  }
@@ -646,7 +646,7 @@ var w = class {
646
646
  return r;
647
647
  }
648
648
  stackToTree(e) {
649
- return e.close(), r.build({
649
+ return e.close(), a.build({
650
650
  buffer: u.create(e),
651
651
  nodeSet: this.parser.nodeSet,
652
652
  topID: this.topTerm,
@@ -683,42 +683,42 @@ var O = class {
683
683
  constructor(e) {
684
684
  this.start = e.start, this.shift = e.shift || k, this.reduce = e.reduce || k, this.reuse = e.reuse || k, this.hash = e.hash || (() => 0), this.strict = e.strict !== !1;
685
685
  }
686
- }, j = class e extends i {
687
- constructor(e) {
688
- if (super(), this.wrappers = [], e.version != 14) throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);
689
- let r = e.nodeNames.split(" ");
686
+ }, j = class n extends r {
687
+ constructor(n) {
688
+ if (super(), this.wrappers = [], n.version != 14) throw RangeError(`Parser version (${n.version}) doesn't match runtime version (14)`);
689
+ let r = n.nodeNames.split(" ");
690
690
  this.minRepeatTerm = r.length;
691
- for (let t = 0; t < e.repeatNodeCount; t++) r.push("");
692
- let i = Object.keys(e.topRules).map((t) => e.topRules[t][1]), s = [];
691
+ for (let e = 0; e < n.repeatNodeCount; e++) r.push("");
692
+ let a = Object.keys(n.topRules).map((e) => n.topRules[e][1]), s = [];
693
693
  for (let e = 0; e < r.length; e++) s.push([]);
694
694
  function c(e, t, n) {
695
695
  s[e].push([t, t.deserialize(String(n))]);
696
696
  }
697
- if (e.nodeProps) for (let t of e.nodeProps) {
698
- let e = t[0];
699
- typeof e == "string" && (e = n[e]);
700
- for (let n = 1; n < t.length;) {
701
- let r = t[n++];
702
- if (r >= 0) c(r, e, t[n++]);
697
+ if (n.nodeProps) for (let e of n.nodeProps) {
698
+ let t = e[0];
699
+ typeof t == "string" && (t = o[t]);
700
+ for (let n = 1; n < e.length;) {
701
+ let r = e[n++];
702
+ if (r >= 0) c(r, t, e[n++]);
703
703
  else {
704
- let i = t[n + -r];
705
- for (let a = -r; a > 0; a--) c(t[n++], e, i);
704
+ let i = e[n + -r];
705
+ for (let a = -r; a > 0; a--) c(e[n++], t, i);
706
706
  n++;
707
707
  }
708
708
  }
709
709
  }
710
- this.nodeSet = new o(r.map((n, r) => t.define({
711
- name: r >= this.minRepeatTerm ? void 0 : n,
712
- id: r,
713
- props: s[r],
714
- top: i.indexOf(r) > -1,
715
- error: r == 0,
716
- skipped: e.skippedNodes && e.skippedNodes.indexOf(r) > -1
717
- }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = a;
718
- let l = d(e.tokenData);
719
- this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
710
+ this.nodeSet = new e(r.map((e, t) => i.define({
711
+ name: t >= this.minRepeatTerm ? void 0 : e,
712
+ id: t,
713
+ props: s[t],
714
+ top: a.indexOf(t) > -1,
715
+ error: t == 0,
716
+ skipped: n.skippedNodes && n.skippedNodes.indexOf(t) > -1
717
+ }))), n.propSources && (this.nodeSet = this.nodeSet.extend(...n.propSources)), this.strict = !1, this.bufferLength = t;
718
+ let l = d(n.tokenData);
719
+ this.context = n.context, this.specializerSpecs = n.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
720
720
  for (let e = 0; e < this.specializerSpecs.length; e++) this.specialized[e] = this.specializerSpecs[e].term;
721
- this.specializers = this.specializerSpecs.map(P), this.states = d(e.states, Uint32Array), this.data = d(e.stateData), this.goto = d(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((e) => typeof e == "number" ? new h(l, e) : e), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
721
+ this.specializers = this.specializerSpecs.map(P), this.states = d(n.states, Uint32Array), this.data = d(n.stateData), this.goto = d(n.goto), this.maxTerm = n.maxTerm, this.tokenizers = n.tokenizers.map((e) => typeof e == "number" ? new h(l, e) : e), this.topRules = n.topRules, this.dialects = n.dialects || {}, this.dynamicPrecedences = n.dynamicPrecedences || null, this.tokenPrecTable = n.tokenPrec, this.termNames = n.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
722
722
  }
723
723
  createParse(e, t, n) {
724
724
  let r = new E(this, e, t, n);
@@ -781,22 +781,22 @@ var O = class {
781
781
  }
782
782
  return t;
783
783
  }
784
- configure(t) {
785
- let n = Object.assign(Object.create(e.prototype), this);
786
- if (t.props && (n.nodeSet = this.nodeSet.extend(...t.props)), t.top) {
787
- let e = this.topRules[t.top];
788
- if (!e) throw RangeError(`Invalid top rule name ${t.top}`);
789
- n.top = e;
790
- }
791
- return t.tokenizers && (n.tokenizers = this.tokenizers.map((e) => {
792
- let n = t.tokenizers.find((t) => t.from == e);
793
- return n ? n.to : e;
794
- })), t.specializers && (n.specializers = this.specializers.slice(), n.specializerSpecs = this.specializerSpecs.map((e, r) => {
795
- let i = t.specializers.find((t) => t.from == e.external);
796
- if (!i) return e;
797
- let a = Object.assign(Object.assign({}, e), { external: i.to });
798
- return n.specializers[r] = P(a), a;
799
- })), t.contextTracker && (n.context = t.contextTracker), t.dialect && (n.dialect = this.parseDialect(t.dialect)), t.strict != null && (n.strict = t.strict), t.wrap && (n.wrappers = n.wrappers.concat(t.wrap)), t.bufferLength != null && (n.bufferLength = t.bufferLength), n;
784
+ configure(e) {
785
+ let t = Object.assign(Object.create(n.prototype), this);
786
+ if (e.props && (t.nodeSet = this.nodeSet.extend(...e.props)), e.top) {
787
+ let n = this.topRules[e.top];
788
+ if (!n) throw RangeError(`Invalid top rule name ${e.top}`);
789
+ t.top = n;
790
+ }
791
+ return e.tokenizers && (t.tokenizers = this.tokenizers.map((t) => {
792
+ let n = e.tokenizers.find((e) => e.from == t);
793
+ return n ? n.to : t;
794
+ })), e.specializers && (t.specializers = this.specializers.slice(), t.specializerSpecs = this.specializerSpecs.map((n, r) => {
795
+ let i = e.specializers.find((e) => e.from == n.external);
796
+ if (!i) return n;
797
+ let a = Object.assign(Object.assign({}, n), { external: i.to });
798
+ return t.specializers[r] = P(a), a;
799
+ })), e.contextTracker && (t.context = e.contextTracker), e.dialect && (t.dialect = this.parseDialect(e.dialect)), e.strict != null && (t.strict = e.strict), e.wrap && (t.wrappers = t.wrappers.concat(e.wrap)), e.bufferLength != null && (t.bufferLength = e.bufferLength), t;
800
800
  }
801
801
  hasWrappers() {
802
802
  return this.wrappers.length > 0;
@@ -824,8 +824,8 @@ var O = class {
824
824
  for (let e = 0; e < t.length; e++) if (!n[e]) for (let n = this.dialects[t[e]], i; (i = this.data[n++]) != 65535;) (r ||= new Uint8Array(this.maxTerm + 1))[i] = 1;
825
825
  return new O(e, n, r);
826
826
  }
827
- static deserialize(t) {
828
- return new e(t);
827
+ static deserialize(e) {
828
+ return new n(e);
829
829
  }
830
830
  };
831
831
  function M(e, t) {
@@ -0,0 +1,4 @@
1
+ //#region ../../node_modules/.bun/@wopjs+cast@0.1.16/node_modules/@wopjs/cast/dist/index.mjs
2
+ var e = (e) => e !== void 0, t = (e) => !!e, n = (e) => e === !0 || e === !1, r = (e) => typeof e == "string", i = Array.isArray, a = (e) => typeof e == "object" && !!e, o = (e) => a(e) && !i(e), s = (e) => o(e) ? e : void 0, c = () => !0;
3
+ //#endregion
4
+ export { r as a, s as c, o as i, n, t as o, e as r, c as s, i as t };