@oomol-lab/open-flow 0.1.0-beta.25 → 0.1.0-beta.26

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.
@@ -4801,7 +4801,30 @@ V(U([...new Map(Object.entries(pl).map(([e, t]) => [e, t instanceof L ? t : H({
4801
4801
  kind: K(e),
4802
4802
  ...t
4803
4803
  })])).values()])).min(1);
4804
- function ml(e) {
4804
+ //#endregion
4805
+ //#region src/flow/common/change.ts
4806
+ var ml = /* @__PURE__ */ new Set([
4807
+ "const",
4808
+ "enum",
4809
+ "exclusiveMaximum",
4810
+ "exclusiveMinimum",
4811
+ "maximum",
4812
+ "maxItems",
4813
+ "maxLength",
4814
+ "maxProperties",
4815
+ "minimum",
4816
+ "minItems",
4817
+ "minLength",
4818
+ "minProperties",
4819
+ "multipleOf",
4820
+ "pattern",
4821
+ "required",
4822
+ "type"
4823
+ ]);
4824
+ function hl(e) {
4825
+ return ml.has(e);
4826
+ }
4827
+ function gl(e) {
4805
4828
  let t = e.trim();
4806
4829
  if (t.length == 0) return "empty";
4807
4830
  if (t.length > 80) return "tooLong";
@@ -4811,10 +4834,10 @@ function ml(e) {
4811
4834
  }
4812
4835
  if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
4813
4836
  }
4814
- function hl(e) {
4837
+ function _l(e) {
4815
4838
  return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
4816
4839
  }
4817
- function gl(e) {
4840
+ function vl(e) {
4818
4841
  if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
4819
4842
  let t = /* @__PURE__ */ new Set();
4820
4843
  return e.map((e) => {
@@ -4850,27 +4873,27 @@ function gl(e) {
4850
4873
  };
4851
4874
  });
4852
4875
  }
4853
- function _l(e) {
4876
+ function yl(e) {
4854
4877
  return e.trim().normalize("NFC");
4855
4878
  }
4856
- function vl(e, t) {
4857
- let n = _l(e), r = new Set([...t].map(_l));
4879
+ function bl(e, t) {
4880
+ let n = yl(e), r = new Set([...t].map(yl));
4858
4881
  if (!r.has(n)) return n;
4859
4882
  let i = /^(.*) \((\d+)\)$/.exec(n), a = i?.[2], o = a != null && Number(a) >= 2 ? Number(a) : void 0, s = o == null ? n : i?.[1] ?? n, c = o == null ? 2 : o + 1;
4860
4883
  for (; r.has(`${s} (${c})`);) c += 1;
4861
4884
  return `${s} (${c})`;
4862
4885
  }
4863
- function yl(e, t, n) {
4864
- let r = _l(n);
4865
- return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && _l(n.name) == r) ? "duplicate" : void 0;
4886
+ function xl(e, t, n) {
4887
+ let r = yl(n);
4888
+ return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && yl(n.name) == r) ? "duplicate" : void 0;
4866
4889
  }
4867
- var bl = class extends Error {
4890
+ var Sl = class extends Error {
4868
4891
  constructor(e) {
4869
4892
  super(e), this.name = "FlowChangeError";
4870
4893
  }
4871
4894
  };
4872
4895
  function Z(e) {
4873
- throw new bl(e);
4896
+ throw new Sl(e);
4874
4897
  }
4875
4898
  function Q(e, t) {
4876
4899
  if (t.kind == "flow") return e.graph;
@@ -4894,7 +4917,7 @@ function $(e, t, n) {
4894
4917
  }
4895
4918
  };
4896
4919
  }
4897
- function xl(e, t) {
4920
+ function Cl(e, t) {
4898
4921
  if (!("inputs" in e)) return e;
4899
4922
  let n = { ...e.inputs };
4900
4923
  for (let [e, r] of Object.entries(n)) {
@@ -4910,7 +4933,7 @@ function xl(e, t) {
4910
4933
  inputs: n
4911
4934
  };
4912
4935
  }
4913
- function Sl(e, t) {
4936
+ function wl(e, t) {
4914
4937
  let n = { ...e.document }, r = { ...e.modules };
4915
4938
  for (let e of t) switch (e.kind) {
4916
4939
  case "binding.create":
@@ -4991,8 +5014,8 @@ function Sl(e, t) {
4991
5014
  }
4992
5015
  case "graph.node.create": {
4993
5016
  let t = Q(n, e.target);
4994
- t.nodes[e.nodeId] != null && Z("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && Z("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && Z("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && gl(e.node.task.capabilities), e.node.name ?? Z("A Node name cannot be empty.");
4995
- let r = _l(e.node.name), i = yl(t, e.nodeId, r);
5017
+ t.nodes[e.nodeId] != null && Z("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && Z("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && Z("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && vl(e.node.task.capabilities), e.node.name ?? Z("A Node name cannot be empty.");
5018
+ let r = yl(e.node.name), i = xl(t, e.nodeId, r);
4996
5019
  i == "empty" && Z("A Node name cannot be empty."), i == "duplicate" && Z("A Node with this name already exists in the target graph.");
4997
5020
  let a = r == e.node.name ? e.node : {
4998
5021
  ...e.node,
@@ -5010,7 +5033,7 @@ function Sl(e, t) {
5010
5033
  case "graph.node.delete": {
5011
5034
  let t = Q(n, e.target);
5012
5035
  t.nodes[e.nodeId] ?? Z("The Node does not exist in the target graph.");
5013
- let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).flatMap(([e, t]) => r.has(e) ? [] : [[e, xl(t, r)]]));
5036
+ let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).flatMap(([e, t]) => r.has(e) ? [] : [[e, Cl(t, r)]]));
5014
5037
  if (Object.assign(n, $(n, e.target, {
5015
5038
  ...t,
5016
5039
  edges: t.edges.filter((e) => !r.has(e.source) && !r.has(e.target)),
@@ -5036,7 +5059,7 @@ function Sl(e, t) {
5036
5059
  let i = { ...r };
5037
5060
  if (e.field == "name") {
5038
5061
  typeof e.value != "string" && Z("A Node name cannot be empty.");
5039
- let n = _l(e.value), r = yl(t, e.nodeId, n);
5062
+ let n = yl(e.value), r = xl(t, e.nodeId, n);
5040
5063
  r == "empty" && Z("A Node name cannot be empty."), r == "duplicate" && Z("A Node with this name already exists in the target graph."), Object.assign(i, { name: n });
5041
5064
  } else e.value == null ? Reflect.deleteProperty(i, e.field) : Object.assign(i, { [e.field]: e.value });
5042
5065
  Object.assign(n, $(n, e.target, {
@@ -5068,7 +5091,7 @@ function Sl(e, t) {
5068
5091
  let t = Q(n, e.target), r = t.nodes[e.nodeId];
5069
5092
  (r?.kind != "task" || r.task == null) && Z("The inline Task Node does not exist."), v(r.task.capabilities, e.before) || Z("The inline Task capabilities changed before this operation was applied.");
5070
5093
  let i = { ...r.task };
5071
- e.value === void 0 ? delete i.capabilities : i.capabilities = gl(e.value), Object.assign(n, $(n, e.target, {
5094
+ e.value === void 0 ? delete i.capabilities : i.capabilities = vl(e.value), Object.assign(n, $(n, e.target, {
5072
5095
  ...t,
5073
5096
  nodes: {
5074
5097
  ...t.nodes,
@@ -5236,7 +5259,7 @@ function Sl(e, t) {
5236
5259
  }
5237
5260
  case "subflow.create":
5238
5261
  n.subflows[e.subflowId] != null && Z("A Subflow with this ID already exists.");
5239
- for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && gl(t.task.capabilities);
5262
+ for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && vl(t.task.capabilities);
5240
5263
  n.subflows = {
5241
5264
  ...n.subflows,
5242
5265
  [e.subflowId]: e.subflow
@@ -5333,14 +5356,14 @@ function Sl(e, t) {
5333
5356
  }
5334
5357
  //#endregion
5335
5358
  //#region src/ui/browser/field.tsx
5336
- function Cl({ className: e, ...t }) {
5359
+ function Tl({ className: e, ...t }) {
5337
5360
  return /* @__PURE__ */ b("div", {
5338
5361
  "data-slot": "field-group",
5339
5362
  className: a("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
5340
5363
  ...t
5341
5364
  });
5342
5365
  }
5343
- var wl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
5366
+ var El = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
5344
5367
  variants: { orientation: {
5345
5368
  vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
5346
5369
  horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
@@ -5348,30 +5371,30 @@ var wl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
5348
5371
  } },
5349
5372
  defaultVariants: { orientation: "vertical" }
5350
5373
  });
5351
- function Tl({ className: e, orientation: t = "vertical", ...n }) {
5374
+ function Dl({ className: e, orientation: t = "vertical", ...n }) {
5352
5375
  return /* @__PURE__ */ b("div", {
5353
5376
  role: "group",
5354
5377
  "data-slot": "field",
5355
5378
  "data-orientation": t,
5356
- className: a(wl({ orientation: t }), e),
5379
+ className: a(El({ orientation: t }), e),
5357
5380
  ...n
5358
5381
  });
5359
5382
  }
5360
- function El({ className: e, ...t }) {
5383
+ function Ol({ className: e, ...t }) {
5361
5384
  return /* @__PURE__ */ b(Me, {
5362
5385
  "data-slot": "field-label",
5363
5386
  className: a("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:outline-2 has-[>[data-slot=field]]:has-[:focus-visible]:outline-solid has-[>[data-slot=field]]:has-[:focus-visible]:ring-0 has-[>[data-slot=field]]:has-[:focus-visible]:outline-offset-1 has-[>[data-slot=field]]:has-[:focus-visible]:outline-ring *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
5364
5387
  ...t
5365
5388
  });
5366
5389
  }
5367
- function Dl({ className: e, ...t }) {
5390
+ function kl({ className: e, ...t }) {
5368
5391
  return /* @__PURE__ */ b("p", {
5369
5392
  "data-slot": "field-description",
5370
5393
  className: a("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
5371
5394
  ...t
5372
5395
  });
5373
5396
  }
5374
- function Ol({ className: e, children: t, errors: n, ...r }) {
5397
+ function Al({ className: e, children: t, errors: n, ...r }) {
5375
5398
  let i = ke(() => {
5376
5399
  if (t) return t;
5377
5400
  if (!n?.length) return null;
@@ -5391,7 +5414,7 @@ function Ol({ className: e, children: t, errors: n, ...r }) {
5391
5414
  }
5392
5415
  //#endregion
5393
5416
  //#region src/ui/browser/spinner.tsx
5394
- function kl({ className: e, ...t }) {
5417
+ function jl({ className: e, ...t }) {
5395
5418
  return /* @__PURE__ */ b(Ae, {
5396
5419
  "data-slot": "spinner",
5397
5420
  role: "status",
@@ -5402,27 +5425,27 @@ function kl({ className: e, ...t }) {
5402
5425
  }
5403
5426
  //#endregion
5404
5427
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
5405
- var Al = /*#__PURE__*/ S.createContext(void 0);
5406
- process.env.NODE_ENV !== "production" && (Al.displayName = "DialogRootContext");
5407
- function jl(e) {
5408
- let t = S.useContext(Al);
5428
+ var Ml = /*#__PURE__*/ S.createContext(void 0);
5429
+ process.env.NODE_ENV !== "production" && (Ml.displayName = "DialogRootContext");
5430
+ function Nl(e) {
5431
+ let t = S.useContext(Ml);
5409
5432
  if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
5410
5433
  return t;
5411
5434
  }
5412
5435
  //#endregion
5413
5436
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
5414
- var Ml = {
5437
+ var Pl = {
5415
5438
  ...h,
5416
5439
  ...ue
5417
- }, Nl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5418
- let { render: n, className: r, style: a, forceRender: o = !1, ...s } = e, { store: c } = jl(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
5440
+ }, Fl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5441
+ let { render: n, className: r, style: a, forceRender: o = !1, ...s } = e, { store: c } = Nl(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
5419
5442
  open: l,
5420
5443
  transitionStatus: c.useState("transitionStatus")
5421
5444
  };
5422
5445
  return i("div", e, {
5423
5446
  state: f,
5424
5447
  ref: [c.context.backdropRef, t],
5425
- stateAttributesMapping: Ml,
5448
+ stateAttributesMapping: Pl,
5426
5449
  props: [{
5427
5450
  role: "presentation",
5428
5451
  hidden: !d,
@@ -5434,11 +5457,11 @@ var Ml = {
5434
5457
  enabled: o || !u
5435
5458
  });
5436
5459
  });
5437
- process.env.NODE_ENV !== "production" && (Nl.displayName = "DialogBackdrop");
5460
+ process.env.NODE_ENV !== "production" && (Fl.displayName = "DialogBackdrop");
5438
5461
  //#endregion
5439
5462
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
5440
- var Pl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5441
- let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = jl(), u = l.useState("open");
5463
+ var Il = /*#__PURE__*/ S.forwardRef(function(e, t) {
5464
+ let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = Nl(), u = l.useState("open");
5442
5465
  function d(e) {
5443
5466
  u && l.setOpen(!1, fe(re, e.nativeEvent));
5444
5467
  }
@@ -5456,41 +5479,41 @@ var Pl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5456
5479
  ]
5457
5480
  });
5458
5481
  });
5459
- process.env.NODE_ENV !== "production" && (Pl.displayName = "DialogClose");
5482
+ process.env.NODE_ENV !== "production" && (Il.displayName = "DialogClose");
5460
5483
  //#endregion
5461
5484
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
5462
- var Fl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5463
- let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = jl(), l = d(o);
5485
+ var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5486
+ let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = Nl(), l = d(o);
5464
5487
  return c.useSyncedValueWithCleanup("descriptionElementId", l), i("p", e, {
5465
5488
  ref: t,
5466
5489
  props: [{ id: l }, s]
5467
5490
  });
5468
5491
  });
5469
- process.env.NODE_ENV !== "production" && (Fl.displayName = "DialogDescription");
5492
+ process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogDescription");
5470
5493
  //#endregion
5471
5494
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
5472
- var Il = /*#__PURE__*/ function(e) {
5495
+ var Rl = /*#__PURE__*/ function(e) {
5473
5496
  return e.nestedDialogs = "--nested-dialogs", e;
5474
- }({}), Ll = function(e) {
5497
+ }({}), zl = function(e) {
5475
5498
  return e[e.open = Oe.open] = "open", e[e.closed = Oe.closed] = "closed", e[e.startingStyle = Oe.startingStyle] = "startingStyle", e[e.endingStyle = Oe.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
5476
- }({}), Rl = /*#__PURE__*/ S.createContext(void 0);
5477
- process.env.NODE_ENV !== "production" && (Rl.displayName = "DialogPortalContext");
5478
- function zl() {
5479
- let e = S.useContext(Rl);
5499
+ }({}), Bl = /*#__PURE__*/ S.createContext(void 0);
5500
+ process.env.NODE_ENV !== "production" && (Bl.displayName = "DialogPortalContext");
5501
+ function Vl() {
5502
+ let e = S.useContext(Bl);
5480
5503
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(26) : "Base UI: <Dialog.Portal> is missing.");
5481
5504
  return e;
5482
5505
  }
5483
5506
  //#endregion
5484
5507
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
5485
- var Bl = {
5508
+ var Hl = {
5486
5509
  ...h,
5487
5510
  ...ue,
5488
5511
  nestedDialogOpen(e) {
5489
- return e ? { [Ll.nestedDialogOpen]: "" } : null;
5512
+ return e ? { [zl.nestedDialogOpen]: "" } : null;
5490
5513
  }
5491
- }, Vl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5492
- let { className: n, finalFocus: r, initialFocus: a, render: o, style: s, ...c } = e, { store: l } = jl(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), ee = l.useState("open"), te = l.useState("openMethod"), ne = l.useState("titleElementId"), re = l.useState("transitionStatus"), ie = l.useState("role");
5493
- zl(), _e({
5514
+ }, Ul = /*#__PURE__*/ S.forwardRef(function(e, t) {
5515
+ let { className: n, finalFocus: r, initialFocus: a, render: o, style: s, ...c } = e, { store: l } = Nl(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), ee = l.useState("open"), te = l.useState("openMethod"), ne = l.useState("titleElementId"), re = l.useState("transitionStatus"), ie = l.useState("role");
5516
+ Vl(), _e({
5494
5517
  open: ee,
5495
5518
  ref: l.context.popupRef,
5496
5519
  onComplete() {
@@ -5518,7 +5541,7 @@ var Bl = {
5518
5541
  onKeyDown(e) {
5519
5542
  Te.has(e.key) && e.stopPropagation();
5520
5543
  },
5521
- style: { [Il.nestedDialogs]: _ }
5544
+ style: { [Rl.nestedDialogs]: _ }
5522
5545
  },
5523
5546
  c
5524
5547
  ],
@@ -5527,7 +5550,7 @@ var Bl = {
5527
5550
  l.context.popupRef,
5528
5551
  l.useStateSetter("popupElement")
5529
5552
  ],
5530
- stateAttributesMapping: Bl
5553
+ stateAttributesMapping: Hl
5531
5554
  });
5532
5555
  return /*#__PURE__*/ b(ae, {
5533
5556
  context: f,
@@ -5541,12 +5564,12 @@ var Bl = {
5541
5564
  children: ce
5542
5565
  });
5543
5566
  });
5544
- process.env.NODE_ENV !== "production" && (Vl.displayName = "DialogPopup");
5567
+ process.env.NODE_ENV !== "production" && (Ul.displayName = "DialogPopup");
5545
5568
  //#endregion
5546
5569
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
5547
- var Hl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5548
- let { keepMounted: n = !1, ...r } = e, { store: i } = jl(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
5549
- return a || n ? /*#__PURE__*/ b(Rl.Provider, {
5570
+ var Wl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5571
+ let { keepMounted: n = !1, ...r } = e, { store: i } = Nl(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
5572
+ return a || n ? /*#__PURE__*/ b(Bl.Provider, {
5550
5573
  value: n,
5551
5574
  children: /*#__PURE__*/ x(de, {
5552
5575
  ref: t,
@@ -5558,10 +5581,10 @@ var Hl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5558
5581
  })
5559
5582
  }) : null;
5560
5583
  });
5561
- process.env.NODE_ENV !== "production" && (Hl.displayName = "DialogPortal");
5584
+ process.env.NODE_ENV !== "production" && (Wl.displayName = "DialogPortal");
5562
5585
  //#endregion
5563
5586
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
5564
- function Ul(n) {
5587
+ function Gl(n) {
5565
5588
  let { store: r, parentContext: i, actionsRef: a, isDrawer: c } = n, l = r.useState("open"), u = r.useState("disablePointerDismissal"), d = r.useState("modal"), f = r.useState("popupElement"), { openMethod: p, triggerProps: m } = g(l);
5566
5589
  e(r);
5567
5590
  let { forceUnmount: h } = le(l, r), _ = S.useCallback(() => {
@@ -5621,7 +5644,7 @@ function Ul(n) {
5621
5644
  }
5622
5645
  //#endregion
5623
5646
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
5624
- var Wl = {
5647
+ var Kl = {
5625
5648
  ...te,
5626
5649
  modal: r((e) => e.modal),
5627
5650
  nested: r((e) => e.nested),
@@ -5633,9 +5656,9 @@ var Wl = {
5633
5656
  titleElementId: r((e) => e.titleElementId),
5634
5657
  viewportElement: r((e) => e.viewportElement),
5635
5658
  role: r((e) => e.role)
5636
- }, Gl = class e extends De {
5659
+ }, ql = class e extends De {
5637
5660
  constructor(e) {
5638
- super(Kl(e), {
5661
+ super(Jl(e), {
5639
5662
  popupRef: /*#__PURE__*/ S.createRef(),
5640
5663
  backdropRef: /*#__PURE__*/ S.createRef(),
5641
5664
  internalBackdropRef: /*#__PURE__*/ S.createRef(),
@@ -5643,7 +5666,7 @@ var Wl = {
5643
5666
  triggerElements: new f(),
5644
5667
  onOpenChange: void 0,
5645
5668
  onOpenChangeComplete: void 0
5646
- }, Wl);
5669
+ }, Kl);
5647
5670
  }
5648
5671
  setOpen = (e, t) => {
5649
5672
  if (t.preventUnmountOnClose = () => {
@@ -5658,7 +5681,7 @@ var Wl = {
5658
5681
  return t ?? r;
5659
5682
  }
5660
5683
  };
5661
- function Kl(e = {}) {
5684
+ function Jl(e = {}) {
5662
5685
  return {
5663
5686
  ..._(),
5664
5687
  modal: !0,
@@ -5677,10 +5700,10 @@ function Kl(e = {}) {
5677
5700
  }
5678
5701
  //#endregion
5679
5702
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
5680
- var ql = /*#__PURE__*/ S.createContext(!1);
5681
- process.env.NODE_ENV !== "production" && (ql.displayName = "IsDrawerContext");
5682
- function Jl(e) {
5683
- let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p = jl(!0), m = S.useContext(ql), h = !!p, g = Gl.useStore(l?.store, {
5703
+ var Yl = /*#__PURE__*/ S.createContext(!1);
5704
+ process.env.NODE_ENV !== "production" && (Yl.displayName = "IsDrawerContext");
5705
+ function Xl(e) {
5706
+ let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p = Nl(!0), m = S.useContext(Yl), h = !!p, g = ql.useStore(l?.store, {
5684
5707
  open: r,
5685
5708
  openProp: n,
5686
5709
  activeTriggerId: f,
@@ -5700,7 +5723,7 @@ function Jl(e) {
5700
5723
  modal: s
5701
5724
  }), g.useContextCallback("onOpenChange", i), g.useContextCallback("onOpenChangeComplete", a);
5702
5725
  let _ = g.useState("payload");
5703
- Ul({
5726
+ Gl({
5704
5727
  store: g,
5705
5728
  actionsRef: c,
5706
5729
  parentContext: p?.store.context,
@@ -5709,9 +5732,9 @@ function Jl(e) {
5709
5732
  triggerIdProp: d
5710
5733
  });
5711
5734
  let ee = S.useMemo(() => ({ store: g }), [g]);
5712
- return /*#__PURE__*/ b(ql.Provider, {
5735
+ return /*#__PURE__*/ b(Yl.Provider, {
5713
5736
  value: !1,
5714
- children: /*#__PURE__*/ b(Al.Provider, {
5737
+ children: /*#__PURE__*/ b(Ml.Provider, {
5715
5738
  value: ee,
5716
5739
  children: typeof t == "function" ? t({ payload: _ }) : t
5717
5740
  })
@@ -5719,18 +5742,18 @@ function Jl(e) {
5719
5742
  }
5720
5743
  //#endregion
5721
5744
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
5722
- var Yl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5723
- let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = jl(), l = d(o);
5745
+ var Zl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5746
+ let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = Nl(), l = d(o);
5724
5747
  return c.useSyncedValueWithCleanup("titleElementId", l), i("h2", e, {
5725
5748
  ref: t,
5726
5749
  props: [{ id: l }, s]
5727
5750
  });
5728
5751
  });
5729
- process.env.NODE_ENV !== "production" && (Yl.displayName = "DialogTitle");
5752
+ process.env.NODE_ENV !== "production" && (Zl.displayName = "DialogTitle");
5730
5753
  //#endregion
5731
5754
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js
5732
- var Xl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5733
- let { render: n, className: r, disabled: a = !1, nativeButton: s = !0, id: c, payload: l, handle: u, style: f, ...m } = e, h = jl(!0), g = u?.store ?? h?.store;
5755
+ var Ql = /*#__PURE__*/ S.forwardRef(function(e, t) {
5756
+ let { render: n, className: r, disabled: a = !1, nativeButton: s = !0, id: c, payload: l, handle: u, style: f, ...m } = e, h = Nl(!0), g = u?.store ?? h?.store;
5734
5757
  if (!g) throw Error(process.env.NODE_ENV === "production" ? ce(79) : "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");
5735
5758
  let _ = d(c), ee = g.useState("floatingRootContext"), te = g.useState("isOpenedByTrigger", _), re = S.useRef(null), { registerTrigger: ie, isMountedByThisTrigger: ae } = we(_, re, g, { payload: l }), { getButtonProps: oe, buttonRef: se } = ne({
5736
5759
  disabled: a,
@@ -5760,48 +5783,48 @@ var Xl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5760
5783
  stateAttributesMapping: p
5761
5784
  });
5762
5785
  });
5763
- process.env.NODE_ENV !== "production" && (Xl.displayName = "DialogTrigger");
5786
+ process.env.NODE_ENV !== "production" && (Ql.displayName = "DialogTrigger");
5764
5787
  //#endregion
5765
5788
  //#region src/ui/browser/dialog.tsx
5766
- function Zl(e) {
5767
- return /* @__PURE__ */ b(Jl, {
5789
+ function $l(e) {
5790
+ return /* @__PURE__ */ b(Xl, {
5768
5791
  "data-slot": "dialog",
5769
5792
  ...e
5770
5793
  });
5771
5794
  }
5772
- function Ql(e) {
5773
- return /* @__PURE__ */ b(Xl, {
5795
+ function eu(e) {
5796
+ return /* @__PURE__ */ b(Ql, {
5774
5797
  "data-slot": "dialog-trigger",
5775
5798
  ...e
5776
5799
  });
5777
5800
  }
5778
- function $l(e) {
5779
- return /* @__PURE__ */ b(Hl, {
5801
+ function tu(e) {
5802
+ return /* @__PURE__ */ b(Wl, {
5780
5803
  "data-slot": "dialog-portal",
5781
5804
  ...e
5782
5805
  });
5783
5806
  }
5784
- function eu(e) {
5785
- return /* @__PURE__ */ b(Pl, {
5807
+ function nu(e) {
5808
+ return /* @__PURE__ */ b(Il, {
5786
5809
  "data-slot": "dialog-close",
5787
5810
  ...e
5788
5811
  });
5789
5812
  }
5790
- function tu({ className: e, ...t }) {
5791
- return /* @__PURE__ */ b(Nl, {
5813
+ function ru({ className: e, ...t }) {
5814
+ return /* @__PURE__ */ b(Fl, {
5792
5815
  "data-slot": "dialog-overlay",
5793
5816
  className: a("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
5794
5817
  ...t
5795
5818
  });
5796
5819
  }
5797
- function nu({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
5798
- return /* @__PURE__ */ x($l, {
5820
+ function iu({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
5821
+ return /* @__PURE__ */ x(tu, {
5799
5822
  container: i,
5800
- children: [/* @__PURE__ */ b(tu, {}), /* @__PURE__ */ x(Vl, {
5823
+ children: [/* @__PURE__ */ b(ru, {}), /* @__PURE__ */ x(Ul, {
5801
5824
  "data-slot": "dialog-content",
5802
5825
  className: a("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", t),
5803
5826
  ...s,
5804
- children: [e, o && /* @__PURE__ */ x(Pl, {
5827
+ children: [e, o && /* @__PURE__ */ x(Il, {
5805
5828
  "data-slot": "dialog-close",
5806
5829
  render: /* @__PURE__ */ b(n, {
5807
5830
  className: "absolute top-2 right-2",
@@ -5816,29 +5839,29 @@ function nu({ children: e, className: t, closeLabel: r = "Close", container: i,
5816
5839
  })]
5817
5840
  });
5818
5841
  }
5819
- function ru({ className: e, ...t }) {
5842
+ function au({ className: e, ...t }) {
5820
5843
  return /* @__PURE__ */ b("div", {
5821
5844
  "data-slot": "dialog-header",
5822
5845
  className: a("flex flex-col gap-2", e),
5823
5846
  ...t
5824
5847
  });
5825
5848
  }
5826
- function iu({ className: e, ...t }) {
5849
+ function ou({ className: e, ...t }) {
5827
5850
  return /* @__PURE__ */ b("div", {
5828
5851
  "data-slot": "dialog-footer",
5829
5852
  className: a("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-border bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
5830
5853
  ...t
5831
5854
  });
5832
5855
  }
5833
- function au({ className: e, ...t }) {
5834
- return /* @__PURE__ */ b(Yl, {
5856
+ function su({ className: e, ...t }) {
5857
+ return /* @__PURE__ */ b(Zl, {
5835
5858
  "data-slot": "dialog-title",
5836
5859
  className: a("text-base leading-none font-medium", e),
5837
5860
  ...t
5838
5861
  });
5839
5862
  }
5840
- function ou({ className: e, ...t }) {
5841
- return /* @__PURE__ */ b(Fl, {
5863
+ function cu({ className: e, ...t }) {
5864
+ return /* @__PURE__ */ b(Ll, {
5842
5865
  "data-slot": "dialog-description",
5843
5866
  className: a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
5844
5867
  ...t
@@ -5846,7 +5869,7 @@ function ou({ className: e, ...t }) {
5846
5869
  }
5847
5870
  //#endregion
5848
5871
  //#region src/workbench/browser/runtime/icons.tsx
5849
- function su(e) {
5872
+ function lu(e) {
5850
5873
  switch (e) {
5851
5874
  case "alert": return /* @__PURE__ */ x(y, { children: [
5852
5875
  /* @__PURE__ */ b("circle", {
@@ -6030,7 +6053,7 @@ function su(e) {
6030
6053
  ] });
6031
6054
  }
6032
6055
  }
6033
- function cu({ name: e, size: t = 18, ...n }) {
6056
+ function uu({ name: e, size: t = 18, ...n }) {
6034
6057
  return /* @__PURE__ */ b("svg", {
6035
6058
  "aria-hidden": "true",
6036
6059
  fill: "none",
@@ -6043,13 +6066,13 @@ function cu({ name: e, size: t = 18, ...n }) {
6043
6066
  strokeLinecap: "round",
6044
6067
  strokeLinejoin: "round",
6045
6068
  strokeWidth: "1.7",
6046
- children: su(e)
6069
+ children: lu(e)
6047
6070
  })
6048
6071
  });
6049
6072
  }
6050
6073
  //#endregion
6051
6074
  //#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
6052
- function lu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
6075
+ function du({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
6053
6076
  return /* @__PURE__ */ x(ye, {
6054
6077
  disabled: n,
6055
6078
  onValueChange: (e) => {
@@ -6076,4 +6099,4 @@ function lu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
6076
6099
  });
6077
6100
  }
6078
6101
  //#endregion
6079
- export { Nc as A, Me as B, ml as C, B as D, V as E, W as F, Zs as I, hs as L, K as M, z as N, ec as O, H as P, U as R, hl as S, G as T, je as V, bl as _, nu as a, yl as b, ru as c, kl as d, Tl as f, El as g, Cl as h, eu as i, kc as j, Vs as k, au as l, Ol as m, cu as n, ou as o, Dl as p, Zl as r, iu as s, lu as t, Ql as u, Sl as v, fl as w, _l as x, vl as y, Ks as z };
6102
+ export { Vs as A, Ks as B, _l as C, V as D, G as E, H as F, je as H, W as I, Zs as L, kc as M, K as N, B as O, z as P, hs as R, yl as S, fl as T, Me as V, Sl as _, iu as a, bl as b, au as c, jl as d, Dl as f, Ol as g, Tl as h, nu as i, Nc as j, ec as k, su as l, Al as m, uu as n, cu as o, kl as p, $l as r, ou as s, du as t, eu as u, wl as v, gl as w, xl as x, hl as y, U as z };
@@ -5173,7 +5173,7 @@ function Bc(e) {
5173
5173
  }
5174
5174
  //#endregion
5175
5175
  //#region src/control/common/conformance.ts
5176
- var U = "open-flow-engine/v3";
5176
+ var U = "open-flow-engine/v4";
5177
5177
  function W(e) {
5178
5178
  throw Error(e);
5179
5179
  }
@@ -1,3 +1,4 @@
1
+ import type { SchemaMismatch } from '../browser/flow-change.js';
1
2
  import type { CreateEventSource, UpdateEventSource, EventSource } from './event-sources.js';
2
3
  export { decodeEventSource, decodeEventSources, type CreateEventSource, type UpdateEventSource, type EventSource } from './event-sources.js';
3
4
  import type { TriggerCatalogCache } from './trigger-catalog.js';
@@ -205,6 +206,7 @@ export interface Diagnostic {
205
206
  readonly column: number;
206
207
  readonly line: number;
207
208
  readonly message: string;
209
+ readonly mismatch?: SchemaMismatch;
208
210
  readonly path: string;
209
211
  readonly values?: Readonly<Record<string, string | number>>;
210
212
  }