@oomol-lab/open-flow 0.1.0-alpha.12 → 0.1.0-alpha.14

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.
@@ -8699,74 +8699,74 @@ var Ta = class {
8699
8699
  if (e) return a(e, (e) => e && Ke(e, (e) => $i(e) ? { group: e.group } : { handle: e.handle }), L);
8700
8700
  }
8701
8701
  deriveHandles$(e, t, n, r) {
8702
- let i = this.deriveHandleIndices$(n.inputHandleDefs), o, s = c((s) => {
8703
- let c = [], u = s(i);
8704
- if (!u?.length) return o?.forEach((e) => e.dispose()), o = void 0, c;
8705
- for (let i of u) {
8702
+ let i = this.deriveHandleIndices$(n.inputHandleDefs), o = n.boundHandles, s, f = c((u) => {
8703
+ let d = [], f = u(i);
8704
+ if (!f?.length) return s?.forEach((e) => e.dispose()), s = void 0, d;
8705
+ for (let i of f) {
8706
8706
  if (i.handle == null) {
8707
- c.push(i.group);
8707
+ d.push(i.group);
8708
8708
  continue;
8709
8709
  }
8710
- let s = i.handle, u = o?.find((e) => e.name === s);
8711
- if (u) {
8712
- c.push(u);
8710
+ let u = i.handle, f = s?.find((e) => e.name === u);
8711
+ if (f) {
8712
+ d.push(f);
8713
8713
  continue;
8714
8714
  }
8715
- let { schema$: d, defaultValue$: f, description$: p, displayDescription$: m, kind$: h, nullable$: g, showSettings$: _, schemaOverrides$: v, value$: y } = this.deriveHandleRowVals$(n, n.inputHandleDefs, s, n.role), b = l(a(e, (e) => e?.[s], L), ot(e, s)), x = l(a(t, (e) => e?.[s], L), ot(t, s)), S = a(r, (e) => e.has(s)), C = new Xi({
8715
+ let { schema$: p, defaultValue$: m, description$: h, displayDescription$: g, kind$: _, nullable$: v, showSettings$: y, schemaOverrides$: b, value$: x } = this.deriveHandleRowVals$(n, n.inputHandleDefs, u, n.role), S = l(a(e, (e) => e?.[u], L), ot(e, u)), C = l(a(t, (e) => e?.[u], L), ot(t, u)), w = o ? c((e) => e(r).has(u) || e(o).has(u)) : a(r, (e) => e.has(u)), T = new Xi({
8716
8716
  role: n.role,
8717
8717
  inout: "in",
8718
8718
  userLocales: n.userLocales
8719
- }, d, v, f, b, x, n.createSchemaEditor), w = new $(s, p, m, n.lang, h, S, g, _, C, y), T = S.subscribe((e) => {
8720
- e ? w.error$.set(void 0) : w.validate(!0);
8719
+ }, p, b, m, S, C, n.createSchemaEditor), E = new $(u, h, g, n.lang, _, w, v, y, T, x), D = w.subscribe((e) => {
8720
+ e ? E.error$.set(void 0) : E.validate(!0);
8721
8721
  });
8722
- w.dispose.add([
8723
- T,
8724
- d,
8725
- S,
8726
- g,
8727
- _,
8722
+ E.dispose.add([
8723
+ D,
8724
+ p,
8725
+ w,
8728
8726
  v,
8727
+ y,
8729
8728
  b,
8730
- y
8731
- ]), c.push(w);
8732
- }
8733
- if (o) for (let e of o) c.some((t) => $.is(t) && t.name === e.name) || e.dispose();
8734
- return o = c.filter($.is), c;
8735
- }, { equal: d }), f = this.deriveHandleIndices$(n.additionalInputDefs), p, m = c((i) => {
8736
- let o = [];
8737
- if (!i(n.additionalInputs) || !n.additionalInputDefs) return o;
8738
- let s = i(f) || [];
8739
- for (let { handle: i } of s) {
8729
+ S,
8730
+ x
8731
+ ]), d.push(E);
8732
+ }
8733
+ if (s) for (let e of s) d.some((t) => $.is(t) && t.name === e.name) || e.dispose();
8734
+ return s = d.filter($.is), d;
8735
+ }, { equal: d }), p = this.deriveHandleIndices$(n.additionalInputDefs), m, h = c((i) => {
8736
+ let s = [];
8737
+ if (!i(n.additionalInputs) || !n.additionalInputDefs) return s;
8738
+ let u = i(p) || [];
8739
+ for (let { handle: i } of u) {
8740
8740
  if (i == null) continue;
8741
- let s = p?.find((e) => e.name === i);
8742
- if (s) {
8743
- o.push(s);
8741
+ let u = m?.find((e) => e.name === i);
8742
+ if (u) {
8743
+ s.push(u);
8744
8744
  continue;
8745
8745
  }
8746
- let c = n.role === "user" ? "author" : n.role, { schema$: u, defaultValue$: d, description$: f, displayDescription$: m, kind$: h, nullable$: g, showSettings$: _, schemaOverrides$: v, value$: y } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, c), b = l(a(e, (e) => e?.[i], L), ot(e, i)), x = l(a(t, (e) => e?.[i], L), ot(t, i)), S = a(r, (e) => e.has(i)), C = new Xi({
8747
- role: c,
8746
+ let d = n.role === "user" ? "author" : n.role, { schema$: f, defaultValue$: p, description$: h, displayDescription$: g, kind$: _, nullable$: v, showSettings$: y, schemaOverrides$: b, value$: x } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, d), S = l(a(e, (e) => e?.[i], L), ot(e, i)), C = l(a(t, (e) => e?.[i], L), ot(t, i)), w = o ? c((e) => e(r).has(i) || e(o).has(i)) : a(r, (e) => e.has(i)), T = new Xi({
8747
+ role: d,
8748
8748
  inout: "in",
8749
8749
  additional: !0,
8750
8750
  restrict: n.additionalInputs,
8751
8751
  userLocales: n.userLocales
8752
- }, u, v, d, b, x, n.createSchemaEditor), w = new $(i, f, m, n.lang, h, S, g, _, C, y), T = S.subscribe((e) => {
8753
- e ? w.error$.set(void 0) : w.validate(!0);
8752
+ }, f, b, p, S, C, n.createSchemaEditor), E = new $(i, h, g, n.lang, _, w, v, y, T, x), D = w.subscribe((e) => {
8753
+ e ? E.error$.set(void 0) : E.validate(!0);
8754
8754
  });
8755
- w.dispose.add([
8756
- T,
8757
- u,
8758
- S,
8759
- g,
8760
- _,
8755
+ E.dispose.add([
8756
+ D,
8757
+ f,
8758
+ w,
8761
8759
  v,
8760
+ y,
8762
8761
  b,
8763
- y
8764
- ]), o.push(w);
8762
+ S,
8763
+ x
8764
+ ]), s.push(E);
8765
8765
  }
8766
- if (p) for (let e of p) o.some((t) => t.name === e.name) || e.dispose();
8767
- return p = o, o;
8766
+ if (m) for (let e of m) s.some((t) => t.name === e.name) || e.dispose();
8767
+ return m = s, s;
8768
8768
  }, { equal: d });
8769
- return u([s, m], ([e, t]) => e.concat(t));
8769
+ return u([f, h], ([e, t]) => e.concat(t));
8770
8770
  }
8771
8771
  deriveHandleRowVals$({ showSettings: e, handleInputsFrom: t, lang: n, userLocales: r }, i, u, d) {
8772
8772
  let f = l(a(i, (e) => e?.find((e) => e.handle === u)), (e) => {