create-efffrida-app 0.0.15 → 0.0.16

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 (2) hide show
  1. package/dist/bin.cjs +454 -399
  2. package/package.json +3 -3
package/dist/bin.cjs CHANGED
@@ -55,7 +55,7 @@ var __export = (target, all4) => {
55
55
  __defProp(target, name, { get: all4[name], enumerable: true });
56
56
  };
57
57
 
58
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effect.js
58
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effect.js
59
59
  var Effect_exports = {};
60
60
  __export(Effect_exports, {
61
61
  Do: () => Do2,
@@ -287,7 +287,7 @@ __export(Effect_exports, {
287
287
  zipWith: () => zipWith2
288
288
  });
289
289
 
290
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Pipeable.js
290
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Pipeable.js
291
291
  var pipeArguments = (self, args2) => {
292
292
  switch (args2.length) {
293
293
  case 0:
@@ -331,7 +331,7 @@ var Class = /* @__PURE__ */ (function() {
331
331
  return PipeableBase;
332
332
  })();
333
333
 
334
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Function.js
334
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Function.js
335
335
  var dual = function(arity, body) {
336
336
  if (typeof arity === "function") {
337
337
  return function() {
@@ -442,7 +442,7 @@ function memoizeIdempotent(f2) {
442
442
  };
443
443
  }
444
444
 
445
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/equal.js
445
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/equal.js
446
446
  var getAllObjectKeys = (obj) => {
447
447
  const keys2 = new Set(Reflect.ownKeys(obj));
448
448
  if (obj.constructor === Object) return keys2;
@@ -465,7 +465,7 @@ var getAllObjectKeys = (obj) => {
465
465
  };
466
466
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
467
467
 
468
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Predicate.js
468
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Predicate.js
469
469
  function isString(input) {
470
470
  return typeof input === "string";
471
471
  }
@@ -511,7 +511,7 @@ function isIterable(input) {
511
511
  return hasProperty(input, Symbol.iterator) || isString(input);
512
512
  }
513
513
 
514
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Hash.js
514
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Hash.js
515
515
  var symbol = "~effect/interfaces/Hash";
516
516
  var hash = (self) => {
517
517
  switch (typeof self) {
@@ -635,7 +635,7 @@ function withVisitedTracking(obj, fn3) {
635
635
  return result3;
636
636
  }
637
637
 
638
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Equal.js
638
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equal.js
639
639
  var symbol2 = "~effect/interfaces/Equal";
640
640
  function equals() {
641
641
  if (arguments.length === 1) {
@@ -827,7 +827,7 @@ function makeCompareSet(equivalence) {
827
827
  var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
828
828
  var isEqual = (u2) => hasProperty(u2, symbol2);
829
829
 
830
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Redactable.js
830
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redactable.js
831
831
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
832
832
  var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
833
833
  function redact(u2) {
@@ -849,7 +849,7 @@ var emptyContext = {
849
849
  }
850
850
  };
851
851
 
852
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Formatter.js
852
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Formatter.js
853
853
  function format(input, options) {
854
854
  const space = options?.space ?? 0;
855
855
  const ancestors = /* @__PURE__ */ new WeakSet();
@@ -867,23 +867,6 @@ function format(input, options) {
867
867
  }
868
868
  };
869
869
  function recur(v2, d = 0) {
870
- if (Array.isArray(v2)) {
871
- if (ancestors.has(v2)) return CIRCULAR;
872
- ancestors.add(v2);
873
- const output = !gap || v2.length <= 1 ? `[${v2.map((x) => recur(x, d)).join(",")}]` : `[
874
- ${ind(d + 1)}${v2.map((x) => recur(x, d + 1)).join(",\n" + ind(d + 1))}
875
- ${ind(d)}]`;
876
- ancestors.delete(v2);
877
- return output;
878
- }
879
- if (v2 instanceof Date) return formatDate(v2);
880
- if (!options?.ignoreToString && hasProperty(v2, "toString") && typeof v2["toString"] === "function" && v2["toString"] !== Object.prototype.toString && v2["toString"] !== Array.prototype.toString) {
881
- const s3 = safeToString(v2);
882
- if (v2 instanceof Error && v2.cause) {
883
- return `${s3} (cause: ${recur(v2.cause, d)})`;
884
- }
885
- return s3;
886
- }
887
870
  if (typeof v2 === "string") return JSON.stringify(v2);
888
871
  if (typeof v2 === "number" || v2 == null || typeof v2 === "boolean" || typeof v2 === "symbol") return String(v2);
889
872
  if (typeof v2 === "bigint") return String(v2) + "n";
@@ -892,7 +875,16 @@ ${ind(d)}]`;
892
875
  ancestors.add(v2);
893
876
  let output;
894
877
  if (symbolRedactable in v2) {
895
- output = format(getRedacted(v2));
878
+ output = recur(getRedacted(v2), d);
879
+ } else if (Array.isArray(v2)) {
880
+ output = !gap || v2.length <= 1 ? `[${v2.map((x) => recur(x, d)).join(",")}]` : `[
881
+ ${ind(d + 1)}${v2.map((x) => recur(x, d + 1)).join(",\n" + ind(d + 1))}
882
+ ${ind(d)}]`;
883
+ } else if (v2 instanceof Date) {
884
+ output = formatDate(v2);
885
+ } else if (!options?.ignoreToString && hasProperty(v2, "toString") && typeof v2["toString"] === "function" && v2["toString"] !== Object.prototype.toString && v2["toString"] !== Array.prototype.toString) {
886
+ const s3 = safeToString(v2);
887
+ output = v2 instanceof Error && v2.cause ? `${s3} (cause: ${recur(v2.cause, d)})` : s3;
896
888
  } else if (Symbol.iterator in v2) {
897
889
  output = `${v2.constructor.name}(${recur(Array.from(v2), d)})`;
898
890
  } else {
@@ -938,8 +930,12 @@ function safeToString(input) {
938
930
  }
939
931
  function formatJson(input, options) {
940
932
  const ancestors = [];
941
- return JSON.stringify(input, function(_key, value3) {
942
- const redacted5 = redact(value3);
933
+ return JSON.stringify(input, function(key, value3) {
934
+ const original = Object.getOwnPropertyDescriptor(this, key)?.value;
935
+ const redacted5 = hasProperty(original, symbolRedactable) ? redact(original) : redact(value3);
936
+ if (typeof redacted5 === "bigint") {
937
+ return format(redacted5);
938
+ }
943
939
  if (typeof redacted5 !== "object" || redacted5 === null) {
944
940
  return redacted5;
945
941
  }
@@ -954,19 +950,20 @@ function formatJson(input, options) {
954
950
  }, options?.space) ?? "null";
955
951
  }
956
952
 
957
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Inspectable.js
953
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Inspectable.js
958
954
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
959
955
  var toJson = (input) => {
960
956
  try {
957
+ input = redact(input);
961
958
  if (hasProperty(input, "toJSON") && isFunction(input["toJSON"]) && input["toJSON"].length === 0) {
962
959
  return input.toJSON();
963
960
  } else if (Array.isArray(input)) {
964
961
  return input.map(toJson);
965
962
  }
963
+ return input;
966
964
  } catch {
967
965
  return "[toJSON threw]";
968
966
  }
969
- return redact(input);
970
967
  };
971
968
  var toStringUnknown = (u2, whitespace = 2) => {
972
969
  if (typeof u2 === "string") {
@@ -975,7 +972,9 @@ var toStringUnknown = (u2, whitespace = 2) => {
975
972
  try {
976
973
  return typeof u2 === "object" ? formatJson(u2, {
977
974
  space: whitespace
978
- }) : String(u2);
975
+ }) : format(u2, {
976
+ space: whitespace
977
+ });
979
978
  } catch {
980
979
  return String(u2);
981
980
  }
@@ -1018,7 +1017,7 @@ var Class2 = class {
1018
1017
  }
1019
1018
  };
1020
1019
 
1021
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Utils.js
1020
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Utils.js
1022
1021
  var SingleShotGen = class _SingleShotGen {
1023
1022
  called = false;
1024
1023
  self;
@@ -1078,7 +1077,7 @@ var pickInternalCall = () => {
1078
1077
  };
1079
1078
  var internalCall = /* @__PURE__ */ pickInternalCall();
1080
1079
 
1081
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/record.js
1080
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/record.js
1082
1081
  function assignProperty(self, key, value3) {
1083
1082
  if (key === "__proto__") {
1084
1083
  Object.defineProperty(self, key, {
@@ -1099,7 +1098,7 @@ function assignProperties(self, source) {
1099
1098
  }
1100
1099
  }
1101
1100
 
1102
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/core.js
1101
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/core.js
1103
1102
  var EffectTypeId = `~effect/Effect`;
1104
1103
  var ExitTypeId = `~effect/Exit`;
1105
1104
  var effectVariance = {
@@ -1442,13 +1441,13 @@ var done = (value3) => {
1442
1441
  return exitFail(Done(value3));
1443
1442
  };
1444
1443
 
1445
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effectable.js
1444
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effectable.js
1446
1445
  var Prototype2 = (options) => makePrimitiveProto({
1447
1446
  op: options.label,
1448
1447
  [evaluate]: options.evaluate
1449
1448
  });
1450
1449
 
1451
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Equivalence.js
1450
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equivalence.js
1452
1451
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1453
1452
  var isStrictEquivalent = (x, y) => x === y;
1454
1453
  var strictEqual = () => isStrictEquivalent;
@@ -1475,7 +1474,7 @@ function Array_(item) {
1475
1474
  });
1476
1475
  }
1477
1476
 
1478
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/doNotation.js
1477
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/doNotation.js
1479
1478
  var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
1480
1479
  ...a,
1481
1480
  [name]: f2(a)
@@ -1488,7 +1487,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
1488
1487
  [name]: b2
1489
1488
  }))));
1490
1489
 
1491
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/option.js
1490
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/option.js
1492
1491
  var TypeId = "~effect/data/Option";
1493
1492
  var CommonProto = {
1494
1493
  [TypeId]: {
@@ -1554,7 +1553,7 @@ var some = (value3) => {
1554
1553
  return a;
1555
1554
  };
1556
1555
 
1557
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/result.js
1556
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/result.js
1558
1557
  var TypeId2 = "~effect/data/Result";
1559
1558
  var CommonProto2 = {
1560
1559
  [TypeId2]: {
@@ -1621,7 +1620,7 @@ var succeed = (success) => {
1621
1620
  return a;
1622
1621
  };
1623
1622
 
1624
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Order.js
1623
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Order.js
1625
1624
  function make2(compare) {
1626
1625
  return (self, that) => self === that ? 0 : compare(self, that);
1627
1626
  }
@@ -1635,7 +1634,7 @@ var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b
1635
1634
  var Date2 = /* @__PURE__ */ mapInput(Number2, (date6) => date6.getTime());
1636
1635
  var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
1637
1636
 
1638
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Option.js
1637
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Option.js
1639
1638
  var none2 = () => none;
1640
1639
  var some2 = some;
1641
1640
  var isOption2 = isOption;
@@ -1655,7 +1654,7 @@ var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2(
1655
1654
  var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
1656
1655
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
1657
1656
 
1658
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Context.js
1657
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Context.js
1659
1658
  var ServiceTypeId = "~effect/Context/Service";
1660
1659
  var Service = function() {
1661
1660
  function KeyClass() {
@@ -1855,7 +1854,7 @@ var mergeAll = (...ctxs) => {
1855
1854
  };
1856
1855
  var Reference = Service;
1857
1856
 
1858
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Duration.js
1857
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Duration.js
1859
1858
  var TypeId4 = "~effect/time/Duration";
1860
1859
  var bigint0 = /* @__PURE__ */ BigInt(0);
1861
1860
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -1968,7 +1967,16 @@ var negativeInfinityDurationValue = {
1968
1967
  var DurationProto = {
1969
1968
  [TypeId4]: TypeId4,
1970
1969
  [symbol]() {
1971
- return structure(this.value);
1970
+ switch (this.value._tag) {
1971
+ case "Millis": {
1972
+ const nanos2 = this.value.millis * 1e6;
1973
+ return Number.isFinite(nanos2) ? hash(roundTiesAwayFromZero(nanos2)) : number(this.value.millis);
1974
+ }
1975
+ case "Nanos":
1976
+ return hash(this.value.nanos);
1977
+ default:
1978
+ return structure(this.value);
1979
+ }
1972
1980
  },
1973
1981
  [symbol2](that) {
1974
1982
  return isDuration(that) && equals2(this, that);
@@ -2114,10 +2122,10 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
2114
2122
  }));
2115
2123
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
2116
2124
 
2117
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/array.js
2125
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/array.js
2118
2126
  var isArrayNonEmpty = (self) => self.length > 0;
2119
2127
 
2120
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Result.js
2128
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Result.js
2121
2129
  var succeed2 = succeed;
2122
2130
  var fail2 = fail;
2123
2131
  var try_ = (evaluate2) => {
@@ -2142,10 +2150,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
2142
2150
  onSuccess
2143
2151
  }) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
2144
2152
 
2145
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Tuple.js
2153
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tuple.js
2146
2154
  var makeEquivalence = Tuple;
2147
2155
 
2148
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Iterable.js
2156
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Iterable.js
2149
2157
  var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
2150
2158
  let i = 0;
2151
2159
  for (const a of self) {
@@ -2188,7 +2196,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
2188
2196
  }
2189
2197
  }));
2190
2198
 
2191
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Record.js
2199
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Record.js
2192
2200
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
2193
2201
  var map2 = /* @__PURE__ */ dual(2, (self, f2) => {
2194
2202
  const out = {
@@ -2213,7 +2221,7 @@ var makeEquivalence2 = (equivalence) => {
2213
2221
  return (self, that) => is4(self, that) && is4(that, self);
2214
2222
  };
2215
2223
 
2216
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Array.js
2224
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Array.js
2217
2225
  var Array2 = globalThis.Array;
2218
2226
  var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
2219
2227
  var ensure = (self) => Array2.isArray(self) ? self : [self];
@@ -2310,7 +2318,7 @@ var dedupe = (self) => {
2310
2318
  return out;
2311
2319
  };
2312
2320
 
2313
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Filter.js
2321
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Filter.js
2314
2322
  var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2315
2323
  const leftOut = left(input);
2316
2324
  if (isFailure2(leftOut)) return fail2(input);
@@ -2319,7 +2327,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2319
2327
  return rightOut;
2320
2328
  });
2321
2329
 
2322
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Scheduler.js
2330
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scheduler.js
2323
2331
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
2324
2332
  fiberCached: true,
2325
2333
  defaultValue: () => new MixedScheduler()
@@ -2333,7 +2341,7 @@ var setImmediate = "setImmediate" in globalThis ? (f2) => {
2333
2341
  };
2334
2342
  var setMicrotask = (f2) => {
2335
2343
  let cancelled = false;
2336
- queueMicrotask(() => {
2344
+ Promise.resolve().then(() => {
2337
2345
  if (!cancelled) f2();
2338
2346
  });
2339
2347
  return () => {
@@ -2456,7 +2464,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
2456
2464
  defaultValue: () => false
2457
2465
  });
2458
2466
 
2459
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Tracer.js
2467
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tracer.js
2460
2468
  var ParentSpanKey = "effect/Tracer/ParentSpan";
2461
2469
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
2462
2470
  fiberCached: true
@@ -2539,10 +2547,10 @@ var randomHexString = /* @__PURE__ */ (function() {
2539
2547
  };
2540
2548
  })();
2541
2549
 
2542
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/metric.js
2550
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/metric.js
2543
2551
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
2544
2552
 
2545
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/references.js
2553
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/references.js
2546
2554
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
2547
2555
  defaultValue: () => /* @__PURE__ */ new Set()
2548
2556
  });
@@ -2577,7 +2585,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
2577
2585
  defaultValue: () => []
2578
2586
  });
2579
2587
 
2580
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/stackTraceLimit.js
2588
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/stackTraceLimit.js
2581
2589
  var isStackTraceLimitWritable = () => {
2582
2590
  const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
2583
2591
  if (desc === void 0) {
@@ -2593,7 +2601,7 @@ var setStackTraceLimit = (value3) => {
2593
2601
  }
2594
2602
  };
2595
2603
 
2596
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/tracer.js
2604
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/tracer.js
2597
2605
  var addSpanStackTrace = (options) => {
2598
2606
  if (options?.captureStackTrace === false) {
2599
2607
  return options;
@@ -2624,7 +2632,7 @@ var makeStackCleaner = (line) => (stack) => {
2624
2632
  };
2625
2633
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
2626
2634
 
2627
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/effect.js
2635
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/effect.js
2628
2636
  var Interrupt = class extends ReasonBase {
2629
2637
  fiberId;
2630
2638
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -5083,7 +5091,7 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
5083
5091
  reporters.forEach((reporter) => reporter.report(opts));
5084
5092
  };
5085
5093
 
5086
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Exit.js
5094
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Exit.js
5087
5095
  var succeed4 = exitSucceed;
5088
5096
  var failCause2 = exitFailCause;
5089
5097
  var fail4 = exitFail;
@@ -5091,7 +5099,7 @@ var void_2 = exitVoid;
5091
5099
  var isSuccess4 = exitIsSuccess;
5092
5100
  var isFailure4 = exitIsFailure;
5093
5101
 
5094
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Deferred.js
5102
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Deferred.js
5095
5103
  var TypeId5 = "~effect/Deferred";
5096
5104
  var DeferredProto = {
5097
5105
  [TypeId5]: {
@@ -5113,8 +5121,10 @@ var _await = (self) => callback((resume) => {
5113
5121
  self.resumes ??= [];
5114
5122
  self.resumes.push(resume);
5115
5123
  return sync(() => {
5116
- const index = self.resumes.indexOf(resume);
5117
- self.resumes.splice(index, 1);
5124
+ const resumes = self.resumes;
5125
+ if (resumes === void 0) return;
5126
+ const index = resumes.indexOf(resume);
5127
+ if (index >= 0) resumes.splice(index, 1);
5118
5128
  });
5119
5129
  });
5120
5130
  var completeWith = /* @__PURE__ */ dual(2, (self, effect2) => sync(() => doneUnsafe(self, effect2)));
@@ -5133,12 +5143,12 @@ var doneUnsafe = (self, effect2) => {
5133
5143
  return true;
5134
5144
  };
5135
5145
 
5136
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/References.js
5146
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/References.js
5137
5147
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
5138
5148
  var CurrentLogSpans2 = CurrentLogSpans;
5139
5149
  var MinimumLogLevel2 = MinimumLogLevel;
5140
5150
 
5141
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Scope.js
5151
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scope.js
5142
5152
  var Scope = scopeTag;
5143
5153
  var makeUnsafe3 = scopeMakeUnsafe;
5144
5154
  var provide = provideScope;
@@ -5147,7 +5157,7 @@ var addFinalizer2 = scopeAddFinalizer;
5147
5157
  var forkUnsafe2 = scopeForkUnsafe;
5148
5158
  var close = scopeClose;
5149
5159
 
5150
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Layer.js
5160
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Layer.js
5151
5161
  var TypeId6 = "~effect/Layer";
5152
5162
  var MemoMapTypeId = "~effect/Layer/MemoMap";
5153
5163
  var memoMapReuse = (entry, scope3) => {
@@ -5265,7 +5275,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
5265
5275
  })
5266
5276
  });
5267
5277
 
5268
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Cause.js
5278
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Cause.js
5269
5279
  var isFailReason2 = isFailReason;
5270
5280
  var fail5 = causeFail;
5271
5281
  var hasInterruptsOnly2 = hasInterruptsOnly;
@@ -5278,7 +5288,7 @@ var Done2 = Done;
5278
5288
  var done3 = done;
5279
5289
  var UnknownError2 = UnknownError;
5280
5290
 
5281
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Data.js
5291
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Data.js
5282
5292
  var taggedEnum = () => new Proxy({}, {
5283
5293
  get(_target, tag2, _receiver) {
5284
5294
  if (tag2 === "$is") {
@@ -5311,7 +5321,7 @@ var round = /* @__PURE__ */ dual(2, (self, precision) => {
5311
5321
  return Math.round(self * factor) / factor;
5312
5322
  });
5313
5323
 
5314
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Pull.js
5324
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Pull.js
5315
5325
  var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
5316
5326
  var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
5317
5327
  var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
@@ -5329,7 +5339,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5329
5339
  }
5330
5340
  }));
5331
5341
 
5332
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Schedule.js
5342
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schedule.js
5333
5343
  var TypeId8 = "~effect/Schedule";
5334
5344
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
5335
5345
  defaultValue: /* @__PURE__ */ constant({
@@ -5421,11 +5431,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(s
5421
5431
  })));
5422
5432
  var forever2 = /* @__PURE__ */ spaced(zero);
5423
5433
 
5424
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/layer.js
5434
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/layer.js
5425
5435
  var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
5426
5436
  var provide3 = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, source, options) => isContext(source) ? provideContext(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
5427
5437
 
5428
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schedule.js
5438
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schedule.js
5429
5439
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse4) => flatMap2(toStepWithMetadata(schedule3), (step) => {
5430
5440
  let meta = CurrentMetadata2.defaultValue();
5431
5441
  return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
@@ -5496,7 +5506,7 @@ var buildFromOptions = (options) => {
5496
5506
  return schedule3;
5497
5507
  };
5498
5508
 
5499
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/executionPlan.js
5509
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/executionPlan.js
5500
5510
  var makeEventEmitter = (onEvent, currentMetadata) => {
5501
5511
  let lastStepIndex = -1;
5502
5512
  let stepAttempt = 0;
@@ -5602,7 +5612,7 @@ var scheduleFromStep = (step, first) => {
5602
5612
  var scheduleOnce = /* @__PURE__ */ recurs(1);
5603
5613
  var makeEntry = (options) => options;
5604
5614
 
5605
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/request.js
5615
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/request.js
5606
5616
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
5607
5617
  const withResolver = (resolver2) => callback((resume) => {
5608
5618
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -5713,7 +5723,7 @@ function runBatch(batch) {
5713
5723
  }
5714
5724
  var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
5715
5725
 
5716
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effect.js
5726
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effect.js
5717
5727
  var TypeId11 = EffectTypeId;
5718
5728
  var isEffect2 = isEffect;
5719
5729
  var all2 = all;
@@ -6068,7 +6078,7 @@ var flatMapEager2 = flatMapEager;
6068
6078
  var catchEager2 = catchEager;
6069
6079
  var fnUntracedEager2 = fnUntracedEager;
6070
6080
 
6071
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/FileSystem.js
6081
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/FileSystem.js
6072
6082
  var FileSystem_exports = {};
6073
6083
  __export(FileSystem_exports, {
6074
6084
  FileSystem: () => FileSystem,
@@ -6086,7 +6096,7 @@ __export(FileSystem_exports, {
6086
6096
  makeNoop: () => makeNoop
6087
6097
  });
6088
6098
 
6089
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/PlatformError.js
6099
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/PlatformError.js
6090
6100
  var TypeId12 = "~effect/platform/PlatformError";
6091
6101
  var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
6092
6102
  /**
@@ -6146,14 +6156,14 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
6146
6156
  var systemError = (options) => new PlatformError(new SystemError(options));
6147
6157
  var badArgument = (options) => new PlatformError(new BadArgument(options));
6148
6158
 
6149
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Fiber.js
6159
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Fiber.js
6150
6160
  var interrupt3 = fiberInterrupt;
6151
6161
  var runIn = fiberRunIn;
6152
6162
 
6153
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Latch.js
6163
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Latch.js
6154
6164
  var makeUnsafe4 = makeLatchUnsafe;
6155
6165
 
6156
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/MutableRef.js
6166
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/MutableRef.js
6157
6167
  var TypeId13 = "~effect/MutableRef";
6158
6168
  var MutableRefProto = {
6159
6169
  [TypeId13]: TypeId13,
@@ -6171,7 +6181,7 @@ var make6 = (value3) => {
6171
6181
  return ref;
6172
6182
  };
6173
6183
 
6174
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/MutableList.js
6184
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/MutableList.js
6175
6185
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
6176
6186
  var make7 = () => ({
6177
6187
  head: void 0,
@@ -6242,7 +6252,7 @@ var take = (self) => {
6242
6252
  return message;
6243
6253
  };
6244
6254
 
6245
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Queue.js
6255
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Queue.js
6246
6256
  var TypeId14 = "~effect/Queue";
6247
6257
  var EnqueueTypeId = "~effect/Queue/Enqueue";
6248
6258
  var DequeueTypeId = "~effect/Queue/Dequeue";
@@ -6516,7 +6526,7 @@ var finalize = (self, exit3) => {
6516
6526
  openState.awaiters.clear();
6517
6527
  };
6518
6528
 
6519
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Semaphore.js
6529
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Semaphore.js
6520
6530
  var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
6521
6531
  var waitForPermits = (self, n, effect2) => callback((resume) => {
6522
6532
  if (self.free >= n) return resume(effect2);
@@ -6612,7 +6622,7 @@ var SemaphoreImpl = class {
6612
6622
  }
6613
6623
  };
6614
6624
 
6615
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Channel.js
6625
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Channel.js
6616
6626
  var TypeId15 = "~effect/Channel";
6617
6627
  var isChannel = (u2) => hasProperty(u2, TypeId15);
6618
6628
  var ChannelProto = {
@@ -6817,7 +6827,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
6817
6827
  }));
6818
6828
  var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
6819
6829
 
6820
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/stream.js
6830
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/stream.js
6821
6831
  var TypeId16 = "~effect/Stream";
6822
6832
  var streamVariance = {
6823
6833
  _R: identity,
@@ -6836,7 +6846,7 @@ var fromChannel = (channel) => {
6836
6846
  return self;
6837
6847
  };
6838
6848
 
6839
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Sink.js
6849
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Sink.js
6840
6850
  var TypeId17 = "~effect/Sink";
6841
6851
  var endVoid = /* @__PURE__ */ succeed6([void 0]);
6842
6852
  var sinkVariance = {
@@ -6875,7 +6885,7 @@ var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f
6875
6885
  }), catchDone(() => endVoid)));
6876
6886
  var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
6877
6887
 
6878
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/rcRef.js
6888
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/rcRef.js
6879
6889
  var TypeId18 = "~effect/RcRef";
6880
6890
  var stateEmpty = {
6881
6891
  _tag: "Empty"
@@ -6978,11 +6988,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
6978
6988
  return state.value;
6979
6989
  });
6980
6990
 
6981
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/RcRef.js
6991
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/RcRef.js
6982
6992
  var make10 = make9;
6983
6993
  var get3 = get2;
6984
6994
 
6985
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Stream.js
6995
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Stream.js
6986
6996
  var TypeId19 = "~effect/Stream";
6987
6997
  var isStream = (u2) => hasProperty(u2, TypeId19);
6988
6998
  var fromChannel3 = fromChannel;
@@ -7073,7 +7083,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
7073
7083
  });
7074
7084
  var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map6(context2(), (context3) => toReadableStreamWith(self, context3, options)));
7075
7085
 
7076
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/FileSystem.js
7086
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/FileSystem.js
7077
7087
  var TypeId20 = "~effect/platform/FileSystem";
7078
7088
  var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
7079
7089
  var KiB = (n) => Size(n * 1024);
@@ -7242,7 +7252,7 @@ var isFile = (u2) => hasProperty(u2, FileTypeId);
7242
7252
  var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
7243
7253
  };
7244
7254
 
7245
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Logger.js
7255
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Logger.js
7246
7256
  var CurrentLoggers2 = CurrentLoggers;
7247
7257
  var make12 = loggerMake;
7248
7258
  var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
@@ -7253,24 +7263,20 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
7253
7263
  return currentLoggers;
7254
7264
  })));
7255
7265
 
7256
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/annotations.js
7266
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/annotations.js
7257
7267
  function resolve(ast) {
7258
7268
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
7259
7269
  }
7260
- function resolveAt(key) {
7261
- return (ast) => resolve(ast)?.[key];
7262
- }
7263
7270
  var STRUCTURAL_ANNOTATION_KEY = "~structural";
7264
7271
  var SENTINELS_ANNOTATION_KEY = "~sentinels";
7265
7272
  var CONSTRUCTOR_ANNOTATION_KEY = "~constructor";
7266
- var resolveIdentifier = /* @__PURE__ */ resolveAt("identifier");
7267
7273
  var getExpected = /* @__PURE__ */ memoize((ast) => {
7268
- const identifier2 = resolveIdentifier(ast);
7274
+ const identifier2 = resolve(ast)?.identifier;
7269
7275
  if (typeof identifier2 === "string") return identifier2;
7270
7276
  return ast.getExpected(getExpected);
7271
7277
  });
7272
7278
 
7273
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/parser.js
7279
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/parser.js
7274
7280
  var missing = /* @__PURE__ */ Symbol();
7275
7281
  var succeed8 = succeed4;
7276
7282
  var missingExit = /* @__PURE__ */ succeed8(missing);
@@ -7278,7 +7284,7 @@ var sameExit = /* @__PURE__ */ succeed8(missing);
7278
7284
  var toOption = (value3) => value3 === missing ? none2() : some2(value3);
7279
7285
  var fromOptionExit = (option4) => option4._tag === "None" ? missingExit : succeed8(option4.value);
7280
7286
 
7281
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaIssue.js
7287
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaIssue.js
7282
7288
  var TypeId21 = "~effect/SchemaIssue/Issue";
7283
7289
  function isIssue(u2) {
7284
7290
  return hasProperty(u2, TypeId21) && u2[TypeId21] === TypeId21;
@@ -7504,47 +7510,6 @@ function getExpectedMessage(expected, issue) {
7504
7510
  const input = formatInput(issue);
7505
7511
  return input === void 0 ? `Expected ${expected}` : `Expected ${expected}, got ${input}`;
7506
7512
  }
7507
- function toDefaultIssues(issue, path5, leafHook, checkHook) {
7508
- switch (issue._tag) {
7509
- case "Filter": {
7510
- const message = checkHook(issue);
7511
- if (message !== void 0) {
7512
- return [{
7513
- path: path5,
7514
- message
7515
- }];
7516
- }
7517
- if (issue.issue._tag !== "InvalidValue") {
7518
- return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
7519
- }
7520
- const expected = findExpected(issue.issue);
7521
- return [{
7522
- path: path5,
7523
- message: expected === void 0 ? getExpectedMessage(formatCheck(issue.filter), issue) : getExpectedMessage(expected, issue.issue)
7524
- }];
7525
- }
7526
- case "Encoding":
7527
- return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
7528
- case "Pointer":
7529
- return toDefaultIssues(issue.issue, [...path5, ...issue.path], leafHook, checkHook);
7530
- case "Composite":
7531
- return issue.issues.flatMap((issue2) => toDefaultIssues(issue2, path5, leafHook, checkHook));
7532
- case "AnyOf": {
7533
- if (issue.issues.length === 0) {
7534
- return [{
7535
- path: path5,
7536
- message: findMessage(issue) ?? getExpectedMessage(getExpected(issue.ast), issue)
7537
- }];
7538
- }
7539
- return issue.issues.flatMap((issue2) => toDefaultIssues(issue2, path5, leafHook, checkHook));
7540
- }
7541
- default:
7542
- return [{
7543
- path: path5,
7544
- message: leafHook(issue)
7545
- }];
7546
- }
7547
- }
7548
7513
  function formatCheck(check) {
7549
7514
  const expected = check.annotations?.expected;
7550
7515
  if (typeof expected === "string") return expected;
@@ -7556,44 +7521,53 @@ function formatCheck(check) {
7556
7521
  }
7557
7522
  }
7558
7523
  function makeFormatterDefault() {
7559
- return (issue) => toDefaultIssues(issue, [], defaultLeafHook, defaultCheckHook).map(formatDefaultIssue).join("\n");
7524
+ return (issue) => formatIssue(issue, "");
7560
7525
  }
7561
7526
  var defaultFormatter = /* @__PURE__ */ makeFormatterDefault();
7562
- function formatDefaultIssue(issue) {
7563
- let out = issue.message;
7564
- if (issue.path && issue.path.length > 0) {
7565
- const path5 = formatPath(issue.path);
7566
- out += `
7567
- at ${path5}`;
7568
- }
7569
- return out;
7570
- }
7571
- function findMessage(issue) {
7527
+ function formatIssue(issue, path5) {
7528
+ let message;
7572
7529
  switch (issue._tag) {
7573
- case "InvalidType":
7574
- case "OneOf":
7575
- case "Composite":
7576
- case "AnyOf":
7577
- return getMessageAnnotation(issue.ast.annotations);
7578
- case "InvalidValue":
7579
- case "Forbidden":
7580
- return getMessageAnnotation(issue.annotations);
7581
- case "MissingKey":
7582
- return getMessageAnnotation(issue.annotations, "messageMissingKey");
7583
- case "UnexpectedKey":
7584
- return getMessageAnnotation(issue.ast.annotations, "messageUnexpectedKey");
7585
- case "Filter":
7586
- return getMessageAnnotation(issue.filter.annotations);
7530
+ case "Filter": {
7531
+ const annotated = defaultCheckHook(issue);
7532
+ if (annotated !== void 0) {
7533
+ message = annotated;
7534
+ } else {
7535
+ if (issue.issue._tag !== "InvalidValue") {
7536
+ return formatIssue(issue.issue, path5);
7537
+ }
7538
+ const expected = findExpected(issue.issue);
7539
+ message = expected === void 0 ? getExpectedMessage(formatCheck(issue.filter), issue) : getExpectedMessage(expected, issue.issue);
7540
+ }
7541
+ break;
7542
+ }
7587
7543
  case "Encoding":
7588
- return findMessage(issue.issue);
7544
+ return formatIssue(issue.issue, path5);
7545
+ case "Pointer":
7546
+ return formatIssue(issue.issue, path5 + formatPath(issue.path));
7547
+ case "Composite":
7548
+ case "AnyOf": {
7549
+ if (issue._tag === "Composite" || issue.issues.length > 0) {
7550
+ return issue.issues.map((issue2) => formatIssue(issue2, path5)).join("\n");
7551
+ }
7552
+ message = findMessage(issue) ?? getExpectedMessage(getExpected(issue.ast), issue);
7553
+ break;
7554
+ }
7555
+ default:
7556
+ message = defaultLeafHook(issue);
7557
+ break;
7589
7558
  }
7559
+ return path5 ? `${message}
7560
+ at ${path5}` : message;
7590
7561
  }
7591
- function getMessageAnnotation(annotations, type = "message") {
7592
- const message = annotations?.[type];
7562
+ function findMessage(issue) {
7563
+ if (issue._tag === "Pointer") return;
7564
+ if (issue._tag === "Encoding") return findMessage(issue.issue);
7565
+ const annotations = issue._tag === "Filter" ? issue.filter.annotations : "annotations" in issue ? issue.annotations : issue.ast.annotations;
7566
+ const message = annotations?.[issue._tag === "MissingKey" ? "messageMissingKey" : issue._tag === "UnexpectedKey" ? "messageUnexpectedKey" : "message"];
7593
7567
  if (typeof message === "string") return message;
7594
7568
  }
7595
7569
 
7596
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/cause.js
7570
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/cause.js
7597
7571
  function getSchemaIssue(cause) {
7598
7572
  let issue;
7599
7573
  for (const reason of cause.reasons) {
@@ -7614,7 +7588,7 @@ function getSchemaIssueOrThrow(cause, message) {
7614
7588
  return issue;
7615
7589
  }
7616
7590
 
7617
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaGetter.js
7591
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaGetter.js
7618
7592
  var Getter = class _Getter extends Class {
7619
7593
  run;
7620
7594
  constructor(run6) {
@@ -7663,7 +7637,7 @@ function Date3() {
7663
7637
  return transform((u2) => new globalThis.Date(u2));
7664
7638
  }
7665
7639
 
7666
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaTransformation.js
7640
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaTransformation.js
7667
7641
  var TypeId22 = "~effect/SchemaTransformation/Transformation";
7668
7642
  var Transformation = class _Transformation {
7669
7643
  [TypeId22] = TypeId22;
@@ -7752,7 +7726,7 @@ var defectFromJson = (options) => transform2({
7752
7726
  encode: makeEncodeDefect(options)
7753
7727
  });
7754
7728
 
7755
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaAST.js
7729
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaAST.js
7756
7730
  function makeGuard(tag2) {
7757
7731
  return (ast) => ast._tag === tag2;
7758
7732
  }
@@ -8543,6 +8517,11 @@ function collectSentinels(ast) {
8543
8517
  }
8544
8518
  return [];
8545
8519
  });
8520
+ case "Union": {
8521
+ if (ast.types.length === 0) return [];
8522
+ const members = ast.types.map((type) => collectSentinels(toCandidate(type)));
8523
+ return members[0].filter((s3) => members.every((sentinels) => sentinels.some((o) => o.key === s3.key && o.literal === s3.literal)));
8524
+ }
8546
8525
  case "Suspend":
8547
8526
  return collectSentinels(ast.thunk());
8548
8527
  }
@@ -8550,15 +8529,18 @@ function collectSentinels(ast) {
8550
8529
  var candidateIndexCache = /* @__PURE__ */ new WeakMap();
8551
8530
  var emptyCandidates = /* @__PURE__ */ Object.freeze([]);
8552
8531
  function getIndex(types) {
8553
- let idx = candidateIndexCache.get(types);
8554
- if (idx) return idx;
8555
- idx = {};
8532
+ let index = candidateIndexCache.get(types);
8533
+ if (index) return index;
8534
+ let bySentinel;
8535
+ let sentinelCandidateCount = 0;
8536
+ let otherwise;
8556
8537
  let literalCandidates;
8538
+ let onlyLiterals = true;
8557
8539
  for (let i = 0; i < types.length; i++) {
8558
8540
  const a = types[i];
8559
8541
  const encoded = toCandidate(a);
8560
8542
  if (isNever2(encoded)) continue;
8561
- if (literalCandidates !== null) {
8543
+ if (onlyLiterals) {
8562
8544
  if (isLiteral(encoded) || isUniqueSymbol(encoded)) {
8563
8545
  literalCandidates ??= /* @__PURE__ */ new Map();
8564
8546
  const literal = isLiteral(encoded) ? encoded.literal : encoded.symbol;
@@ -8566,49 +8548,106 @@ function getIndex(types) {
8566
8548
  if (!arr) literalCandidates.set(literal, arr = []);
8567
8549
  arr.push(a);
8568
8550
  } else {
8569
- literalCandidates = null;
8551
+ onlyLiterals = false;
8570
8552
  }
8571
8553
  }
8572
8554
  const sentinels = collectSentinels(encoded);
8573
8555
  if (sentinels.length) {
8574
- idx.bySentinel ??= /* @__PURE__ */ new Map();
8556
+ bySentinel ??= /* @__PURE__ */ new Map();
8557
+ sentinelCandidateCount++;
8575
8558
  for (const {
8576
8559
  key,
8577
8560
  literal
8578
8561
  } of sentinels) {
8579
- let m2 = idx.bySentinel.get(key);
8580
- if (!m2) idx.bySentinel.set(key, m2 = /* @__PURE__ */ new Map());
8581
- let arr = m2.get(literal);
8582
- if (!arr) m2.set(literal, arr = []);
8583
- if (arr[arr.length - 1] !== i) arr.push(i);
8562
+ let entry = bySentinel.get(key);
8563
+ if (!entry) bySentinel.set(key, entry = [/* @__PURE__ */ new Map(), /* @__PURE__ */ new Set()]);
8564
+ entry[1].add(i);
8565
+ let indexes = entry[0].get(literal);
8566
+ if (!indexes) entry[0].set(literal, indexes = /* @__PURE__ */ new Set());
8567
+ indexes.add(i);
8584
8568
  }
8585
8569
  } else {
8586
- idx.otherwise ??= {};
8570
+ otherwise ??= {};
8587
8571
  const candidateTypes = getCandidateTypes(encoded);
8588
- for (const t of candidateTypes) (idx.otherwise[t] ??= []).push(i);
8572
+ for (const t of candidateTypes) (otherwise[t] ??= []).push(i);
8589
8573
  }
8590
8574
  }
8591
- if (literalCandidates) {
8575
+ if (onlyLiterals && literalCandidates) {
8592
8576
  literalCandidates.forEach(Object.freeze);
8593
- idx = (input) => literalCandidates.get(input) ?? emptyCandidates;
8594
- } else if (idx.bySentinel?.size === 1 && !idx.otherwise) {
8595
- for (const [key, byValue] of idx.bySentinel) {
8596
- const candidates = byValue;
8597
- for (const [literal, indexes] of byValue) {
8598
- candidates.set(literal, Object.freeze(indexes.map((index) => types[index])));
8599
- }
8600
- idx = (input, isConstructor) => {
8601
- if (isObjectKeyword(input)) {
8602
- const value3 = Object.hasOwn(input, key) ? input[key] : void 0;
8603
- if (value3 !== void 0) return candidates.get(value3) ?? emptyCandidates;
8604
- if (isConstructor) return types;
8605
- }
8606
- return emptyCandidates;
8607
- };
8577
+ index = (input) => literalCandidates.get(input) ?? emptyCandidates;
8578
+ } else if (bySentinel?.size === 1 && !otherwise) {
8579
+ const [key, [byValue]] = bySentinel.entries().next().value;
8580
+ const candidates = byValue;
8581
+ for (const [literal, indexes] of byValue) {
8582
+ candidates.set(literal, Object.freeze(Array.from(indexes, (index2) => types[index2])));
8583
+ }
8584
+ index = (input, isConstructor) => {
8585
+ if (isObjectKeyword(input)) {
8586
+ const value3 = Object.hasOwn(input, key) ? input[key] : void 0;
8587
+ if (value3 !== void 0) return candidates.get(value3) ?? emptyCandidates;
8588
+ if (isConstructor) return types;
8589
+ }
8590
+ return emptyCandidates;
8591
+ };
8592
+ } else if (bySentinel) {
8593
+ let commonSentinel;
8594
+ for (const entry of bySentinel) {
8595
+ if ((!commonSentinel || entry[1][0].size > commonSentinel[1][0].size) && entry[1][1].size === sentinelCandidateCount) {
8596
+ commonSentinel = entry;
8597
+ }
8608
8598
  }
8599
+ index = (input, isConstructor) => {
8600
+ const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
8601
+ const base = otherwise?.[runtimeType] ?? emptyCandidates;
8602
+ if (!isObjectKeyword(input)) return base.map((i) => types[i]);
8603
+ const selected = new Set(base);
8604
+ let directKey;
8605
+ if (commonSentinel) {
8606
+ const [key, [byValue]] = commonSentinel;
8607
+ const hasKey = Object.hasOwn(input, key);
8608
+ const value3 = hasKey ? input[key] : void 0;
8609
+ if (hasKey && (!isConstructor || value3 !== void 0)) {
8610
+ const match7 = byValue.get(value3);
8611
+ if (!match7) return base.map((i) => types[i]);
8612
+ for (const i of match7) selected.add(i);
8613
+ directKey = key;
8614
+ }
8615
+ }
8616
+ if (directKey === void 0) {
8617
+ for (const [key, [byValue, all4]] of bySentinel) {
8618
+ const hasKey = Object.hasOwn(input, key);
8619
+ const value3 = hasKey ? input[key] : void 0;
8620
+ if (hasKey && (!isConstructor || value3 !== void 0)) {
8621
+ const match7 = byValue.get(value3);
8622
+ if (match7) {
8623
+ for (const i of match7) selected.add(i);
8624
+ }
8625
+ } else if (isConstructor) {
8626
+ for (const i of all4) selected.add(i);
8627
+ }
8628
+ }
8629
+ }
8630
+ for (const [key, [byValue, all4]] of bySentinel) {
8631
+ if (key === directKey) continue;
8632
+ const hasKey = Object.hasOwn(input, key);
8633
+ const value3 = hasKey ? input[key] : void 0;
8634
+ if (hasKey && (!isConstructor || value3 !== void 0)) {
8635
+ const match7 = byValue.get(value3);
8636
+ for (const i of selected) {
8637
+ if (all4.has(i) && !match7?.has(i)) selected.delete(i);
8638
+ }
8639
+ }
8640
+ }
8641
+ return Array.from(selected).sort((a, b2) => a - b2).map((i) => types[i]);
8642
+ };
8643
+ } else {
8644
+ index = (input) => {
8645
+ const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
8646
+ return (otherwise?.[runtimeType] ?? emptyCandidates).map((i) => types[i]).filter(filterLiterals(input));
8647
+ };
8609
8648
  }
8610
- candidateIndexCache.set(types, idx);
8611
- return idx;
8649
+ candidateIndexCache.set(types, index);
8650
+ return index;
8612
8651
  }
8613
8652
  function filterLiterals(input) {
8614
8653
  return (ast) => {
@@ -8617,31 +8656,7 @@ function filterLiterals(input) {
8617
8656
  };
8618
8657
  }
8619
8658
  function getCandidates(input, types, isConstructor = false) {
8620
- const idx = getIndex(types);
8621
- if (typeof idx === "function") return idx(input, isConstructor);
8622
- const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
8623
- if (idx.bySentinel) {
8624
- const base = idx.otherwise?.[runtimeType] ?? emptyCandidates;
8625
- if (isObjectKeyword(input)) {
8626
- const selected = new Set(base);
8627
- for (const [k2, m2] of idx.bySentinel) {
8628
- const value3 = Object.hasOwn(input, k2) ? input[k2] : void 0;
8629
- if (value3 !== void 0) {
8630
- const match7 = m2.get(value3);
8631
- if (match7) {
8632
- for (const candidate of match7) selected.add(candidate);
8633
- }
8634
- } else if (isConstructor) {
8635
- for (const indexes of m2.values()) {
8636
- for (const candidate of indexes) selected.add(candidate);
8637
- }
8638
- }
8639
- }
8640
- return Array.from(selected).sort((a, b2) => a - b2).map((i) => types[i]);
8641
- }
8642
- return base.map((i) => types[i]);
8643
- }
8644
- return (idx.otherwise?.[runtimeType] ?? emptyCandidates).map((i) => types[i]).filter(filterLiterals(input));
8659
+ return getIndex(types)(input, isConstructor);
8645
8660
  }
8646
8661
  var Union = class _Union extends Base2 {
8647
8662
  _tag = "Union";
@@ -9221,7 +9236,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options)
9221
9236
  });
9222
9237
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
9223
9238
 
9224
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaParser.js
9239
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaParser.js
9225
9240
  function makeEffect(schema) {
9226
9241
  const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
9227
9242
  return (input, options) => {
@@ -9432,7 +9447,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9432
9447
  };
9433
9448
  }
9434
9449
 
9435
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/schema.js
9450
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/schema.js
9436
9451
  var TypeId24 = "~effect/Schema/Schema";
9437
9452
  var SchemaProto = {
9438
9453
  [TypeId24]: TypeId24,
@@ -9463,10 +9478,10 @@ function make15(ast, options) {
9463
9478
  return self;
9464
9479
  }
9465
9480
 
9466
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Struct.js
9481
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Struct.js
9467
9482
  var lambda = (f2) => f2;
9468
9483
 
9469
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/redacted.js
9484
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/redacted.js
9470
9485
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
9471
9486
  var value = (self) => {
9472
9487
  if (redactedRegistry.has(self)) {
@@ -9476,7 +9491,7 @@ var value = (self) => {
9476
9491
  }
9477
9492
  };
9478
9493
 
9479
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Redacted.js
9494
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redacted.js
9480
9495
  var TypeId25 = "~effect/data/Redacted";
9481
9496
  var isRedacted = (u2) => hasProperty(u2, TypeId25);
9482
9497
  var make16 = (value3, options) => {
@@ -9508,10 +9523,19 @@ var Proto3 = {
9508
9523
  };
9509
9524
  var value2 = value;
9510
9525
 
9511
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaError.js
9512
- var TypeId26 = "~effect/SchemaError/SchemaError";
9526
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schema.js
9527
+ var TypeId26 = TypeId24;
9528
+ function declareConstructor() {
9529
+ return (typeParameters, run6, annotations) => {
9530
+ return make17(new Declaration(typeParameters.map(getAST), (typeParameters2) => run6(typeParameters2.map((ast) => make17(ast))), annotations));
9531
+ };
9532
+ }
9533
+ function declare(is4, annotations) {
9534
+ return declareConstructor()([], () => (input, ast, options) => is4(input) ? succeed6(input) : fail6(new InvalidType(ast, input, options)), annotations);
9535
+ }
9536
+ var SchemaErrorTypeId = "~effect/SchemaError/SchemaError";
9513
9537
  var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9514
- [TypeId26] = TypeId26;
9538
+ [SchemaErrorTypeId] = SchemaErrorTypeId;
9515
9539
  constructor(issue) {
9516
9540
  super({
9517
9541
  issue
@@ -9524,17 +9548,6 @@ var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9524
9548
  return `SchemaError(${this.message})`;
9525
9549
  }
9526
9550
  };
9527
-
9528
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Schema.js
9529
- var TypeId27 = TypeId24;
9530
- function declareConstructor() {
9531
- return (typeParameters, run6, annotations) => {
9532
- return make17(new Declaration(typeParameters.map(getAST), (typeParameters2) => run6(typeParameters2.map((ast) => make17(ast))), annotations));
9533
- };
9534
- }
9535
- function declare(is4, annotations) {
9536
- return declareConstructor()([], () => (input, ast, options) => is4(input) ? succeed6(input) : fail6(new InvalidType(ast, input, options)), annotations);
9537
- }
9538
9551
  var is2 = is;
9539
9552
  function decodeUnknownEffect2(schema, options) {
9540
9553
  const parser = decodeUnknownEffect(schema);
@@ -9547,8 +9560,11 @@ function fromIssueEffect(self) {
9547
9560
  }
9548
9561
  var make17 = make15;
9549
9562
  function isSchema(u2) {
9550
- return hasProperty(u2, TypeId27) && u2[TypeId27] === TypeId27;
9563
+ return hasProperty(u2, TypeId26) && u2[TypeId26] === TypeId26;
9551
9564
  }
9565
+ var optionalKey2 = /* @__PURE__ */ lambda((schema) => make17(optionalKey(schema.ast), {
9566
+ schema
9567
+ }));
9552
9568
  var optional2 = /* @__PURE__ */ lambda((self) => {
9553
9569
  const schema = UndefinedOr(self);
9554
9570
  return make17(optional(self.ast), {
@@ -9824,7 +9840,7 @@ function makeClass(Inherited, identifier2, struct2, annotations, proto2) {
9824
9840
  }
9825
9841
  });
9826
9842
  }
9827
- static [TypeId27] = TypeId27;
9843
+ static [TypeId26] = TypeId26;
9828
9844
  get [ClassTypeId]() {
9829
9845
  return ClassTypeId;
9830
9846
  }
@@ -10059,11 +10075,11 @@ var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10059
10075
  })
10060
10076
  }));
10061
10077
 
10062
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Cookies.js
10063
- var TypeId28 = "~effect/http/Cookies";
10078
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/Cookies.js
10079
+ var TypeId27 = "~effect/http/Cookies";
10064
10080
  var CookieTypeId = "~effect/http/Cookies/Cookie";
10065
10081
  var Proto4 = {
10066
- [TypeId28]: TypeId28,
10082
+ [TypeId27]: TypeId27,
10067
10083
  ...BaseProto,
10068
10084
  toJSON() {
10069
10085
  return {
@@ -10242,11 +10258,11 @@ var tryDecodeURIComponent = (str) => {
10242
10258
  }
10243
10259
  };
10244
10260
 
10245
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Headers.js
10246
- var TypeId29 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
10261
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/Headers.js
10262
+ var TypeId28 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
10247
10263
  var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
10248
- [TypeId29]: {
10249
- value: TypeId29
10264
+ [TypeId28]: {
10265
+ value: TypeId28
10250
10266
  },
10251
10267
  [symbolRedactable]: {
10252
10268
  value(context3) {
@@ -10349,12 +10365,12 @@ var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentReda
10349
10365
  defaultValue: () => ["authorization", "cookie", "set-cookie", "x-api-key"]
10350
10366
  });
10351
10367
 
10352
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/UrlParams.js
10353
- var TypeId30 = "~effect/http/UrlParams";
10354
- var isUrlParams = (u2) => hasProperty(u2, TypeId30);
10368
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/UrlParams.js
10369
+ var TypeId29 = "~effect/http/UrlParams";
10370
+ var isUrlParams = (u2) => hasProperty(u2, TypeId29);
10355
10371
  var Proto6 = {
10356
10372
  ...PipeInspectableProto,
10357
- [TypeId30]: TypeId30,
10373
+ [TypeId29]: TypeId29,
10358
10374
  [Symbol.iterator]() {
10359
10375
  return this.params[Symbol.iterator]();
10360
10376
  },
@@ -10430,12 +10446,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
10430
10446
  return out;
10431
10447
  });
10432
10448
 
10433
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpBody.js
10434
- var TypeId31 = "~effect/http/HttpBody";
10449
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpBody.js
10450
+ var TypeId30 = "~effect/http/HttpBody";
10435
10451
  var Proto7 = class {
10436
- [TypeId31];
10452
+ [TypeId30];
10437
10453
  constructor() {
10438
- this[TypeId31] = TypeId31;
10454
+ this[TypeId30] = TypeId30;
10439
10455
  }
10440
10456
  [NodeInspectSymbol]() {
10441
10457
  return this.toJSON();
@@ -10457,8 +10473,8 @@ var Empty2 = class extends Proto7 {
10457
10473
  };
10458
10474
  var empty9 = /* @__PURE__ */ new Empty2();
10459
10475
 
10460
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientError.js
10461
- var TypeId32 = "~effect/http/HttpClientError";
10476
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpClientError.js
10477
+ var TypeId31 = "~effect/http/HttpClientError";
10462
10478
  var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
10463
10479
  constructor(props) {
10464
10480
  if ("cause" in props.reason) {
@@ -10475,7 +10491,7 @@ var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientErr
10475
10491
  *
10476
10492
  * @since 4.0.0
10477
10493
  */
10478
- [TypeId32] = TypeId32;
10494
+ [TypeId31] = TypeId31;
10479
10495
  /**
10480
10496
  * HTTP request associated with the client failure.
10481
10497
  *
@@ -10592,10 +10608,10 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
10592
10608
  }
10593
10609
  };
10594
10610
 
10595
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpMethod.js
10611
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpMethod.js
10596
10612
  var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"]];
10597
10613
 
10598
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/internal/httpBody.js
10614
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/internal/httpBody.js
10599
10615
  var updateHeaders = (headers, body) => {
10600
10616
  if (body._tag === "Empty" || body._tag === "FormData") {
10601
10617
  return remove2(remove2(headers, "content-type"), "content-length");
@@ -10604,7 +10620,7 @@ var updateHeaders = (headers, body) => {
10604
10620
  return body.contentLength === void 0 ? remove2(headers, "content-length") : set2(headers, "content-length", body.contentLength.toString());
10605
10621
  };
10606
10622
 
10607
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Url.js
10623
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/Url.js
10608
10624
  var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
10609
10625
  };
10610
10626
  var make20 = (url, params, hash2) => try_({
@@ -10632,10 +10648,10 @@ var baseUrl = () => {
10632
10648
  return void 0;
10633
10649
  };
10634
10650
 
10635
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10636
- var TypeId33 = "~effect/http/HttpClientRequest";
10651
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10652
+ var TypeId32 = "~effect/http/HttpClientRequest";
10637
10653
  var Proto8 = {
10638
- [TypeId33]: TypeId33,
10654
+ [TypeId32]: TypeId32,
10639
10655
  ...BaseProto,
10640
10656
  toJSON() {
10641
10657
  return {
@@ -10729,8 +10745,8 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
10729
10745
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
10730
10746
  });
10731
10747
 
10732
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10733
- var TypeId34 = "~effect/http/HttpIncomingMessage";
10748
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10749
+ var TypeId33 = "~effect/http/HttpIncomingMessage";
10734
10750
  var inspect = (self, that) => {
10735
10751
  const contentType = self.headers["content-type"] ?? "";
10736
10752
  let body;
@@ -10756,8 +10772,8 @@ var inspect = (self, that) => {
10756
10772
  return obj;
10757
10773
  };
10758
10774
 
10759
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10760
- var TypeId35 = "~effect/http/HttpClientResponse";
10775
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10776
+ var TypeId34 = "~effect/http/HttpClientResponse";
10761
10777
  var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
10762
10778
  var stream2 = (effect2) => unwrap3(map6(effect2, (self) => self.stream));
10763
10779
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail6(new HttpClientError({
@@ -10768,16 +10784,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10768
10784
  })
10769
10785
  }));
10770
10786
  var WebHttpClientResponse = class extends Class2 {
10787
+ [TypeId33];
10771
10788
  [TypeId34];
10772
- [TypeId35];
10773
10789
  request;
10774
10790
  source;
10775
10791
  constructor(request5, source) {
10776
10792
  super();
10777
10793
  this.request = request5;
10778
10794
  this.source = source;
10795
+ this[TypeId33] = TypeId33;
10779
10796
  this[TypeId34] = TypeId34;
10780
- this[TypeId35] = TypeId35;
10781
10797
  }
10782
10798
  toJSON() {
10783
10799
  return inspect(this, {
@@ -10883,7 +10899,7 @@ var WebHttpClientResponse = class extends Class2 {
10883
10899
  }
10884
10900
  };
10885
10901
 
10886
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10902
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10887
10903
  var toHeaders = (span) => fromRecordUnsafe({
10888
10904
  b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
10889
10905
  onNone: () => "",
@@ -10892,8 +10908,8 @@ var toHeaders = (span) => fromRecordUnsafe({
10892
10908
  traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
10893
10909
  });
10894
10910
 
10895
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClient.js
10896
- var TypeId36 = "~effect/http/HttpClient";
10911
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpClient.js
10912
+ var TypeId35 = "~effect/http/HttpClient";
10897
10913
  var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
10898
10914
  var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
10899
10915
  var filterStatusOk2 = /* @__PURE__ */ transformResponse(/* @__PURE__ */ flatMap3(filterStatusOk));
@@ -10907,7 +10923,7 @@ var makeWith2 = (postprocess, preprocess) => {
10907
10923
  return self;
10908
10924
  };
10909
10925
  var Proto9 = {
10910
- [TypeId36]: TypeId36,
10926
+ [TypeId35]: TypeId35,
10911
10927
  pipe() {
10912
10928
  return pipeArguments(this, arguments);
10913
10929
  },
@@ -11046,8 +11062,8 @@ var InterruptibleResponse = class {
11046
11062
  this.original = original;
11047
11063
  this.controller = controller;
11048
11064
  }
11049
- [TypeId35] = TypeId35;
11050
11065
  [TypeId34] = TypeId34;
11066
+ [TypeId33] = TypeId33;
11051
11067
  applyInterrupt(effect2) {
11052
11068
  return suspend2(() => {
11053
11069
  responseRegistry.unregister(this.original);
@@ -11105,7 +11121,7 @@ var InterruptibleResponse = class {
11105
11121
  }
11106
11122
  };
11107
11123
 
11108
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11124
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11109
11125
  var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
11110
11126
  var fromWritableChannel = (options) => fromTransform((pull) => {
11111
11127
  const writable = options.evaluate();
@@ -11145,7 +11161,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
11145
11161
  });
11146
11162
  }) : identity);
11147
11163
 
11148
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11164
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11149
11165
  var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
11150
11166
  var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
11151
11167
  scope: scope3,
@@ -11204,7 +11220,7 @@ var readableToPullUnsafe = (options) => {
11204
11220
  };
11205
11221
  var defaultOnError = (error2) => new UnknownError2(error2);
11206
11222
 
11207
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11223
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11208
11224
  var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
11209
11225
  defaultValue: () => globalThis.fetch
11210
11226
  });
@@ -11246,7 +11262,7 @@ var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
11246
11262
  });
11247
11263
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
11248
11264
 
11249
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Runtime.js
11265
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Runtime.js
11250
11266
  var defaultTeardown = (exit3, onExit4) => {
11251
11267
  if (isSuccess4(exit3)) return onExit4(0);
11252
11268
  if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
@@ -11292,7 +11308,7 @@ var getErrorReported = (u2) => {
11292
11308
  return true;
11293
11309
  };
11294
11310
 
11295
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11311
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11296
11312
  var runMain = /* @__PURE__ */ makeRunMain(({
11297
11313
  fiber: fiber3,
11298
11314
  teardown
@@ -11315,17 +11331,17 @@ var runMain = /* @__PURE__ */ makeRunMain(({
11315
11331
  process.on("SIGTERM", onSigint);
11316
11332
  });
11317
11333
 
11318
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11334
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11319
11335
  var runMain2 = runMain;
11320
11336
 
11321
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Path.js
11337
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Path.js
11322
11338
  var Path_exports = {};
11323
11339
  __export(Path_exports, {
11324
11340
  Path: () => Path,
11325
- TypeId: () => TypeId37,
11341
+ TypeId: () => TypeId36,
11326
11342
  layer: () => layer3
11327
11343
  });
11328
- var TypeId37 = "~effect/platform/Path";
11344
+ var TypeId36 = "~effect/platform/Path";
11329
11345
  var Path = /* @__PURE__ */ Service("effect/Path");
11330
11346
  function normalizeStringPosix(path5, allowAboveRoot) {
11331
11347
  let res = "";
@@ -11501,7 +11517,7 @@ function encodePathChars(filepath) {
11501
11517
  return filepath;
11502
11518
  }
11503
11519
  var posixImpl = /* @__PURE__ */ Path.of({
11504
- [TypeId37]: TypeId37,
11520
+ [TypeId36]: TypeId36,
11505
11521
  resolve: resolve2,
11506
11522
  normalize(path5) {
11507
11523
  if (path5.length === 0) return ".";
@@ -11792,7 +11808,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
11792
11808
  });
11793
11809
  var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
11794
11810
 
11795
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Brand.js
11811
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Brand.js
11796
11812
  function nominal() {
11797
11813
  return Object.assign((input) => input, {
11798
11814
  option: (input) => some2(input),
@@ -11801,7 +11817,7 @@ function nominal() {
11801
11817
  });
11802
11818
  }
11803
11819
 
11804
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11820
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11805
11821
  var ExitCode = /* @__PURE__ */ nominal();
11806
11822
  var ProcessId = /* @__PURE__ */ nominal();
11807
11823
  var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
@@ -11833,8 +11849,8 @@ var make23 = (spawn2) => {
11833
11849
  var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
11834
11850
  };
11835
11851
 
11836
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/process/ChildProcess.js
11837
- var TypeId38 = "~effect/unstable/process/ChildProcess";
11852
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/process/ChildProcess.js
11853
+ var TypeId37 = "~effect/unstable/process/ChildProcess";
11838
11854
  var Proto10 = {
11839
11855
  .../* @__PURE__ */ Prototype2({
11840
11856
  label: "Command",
@@ -11842,7 +11858,7 @@ var Proto10 = {
11842
11858
  return getUnsafe(fiber3.context, ChildProcessSpawner).spawn(this);
11843
11859
  }
11844
11860
  }),
11845
- [TypeId38]: TypeId38
11861
+ [TypeId37]: TypeId37
11846
11862
  };
11847
11863
  var makeStandardCommand = (command2, args2, options) => Object.assign(Object.create(Proto10), {
11848
11864
  _tag: "StandardCommand",
@@ -11957,7 +11973,18 @@ var splitByWhitespaces = (template, rawTemplate) => {
11957
11973
  };
11958
11974
  var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
11959
11975
 
11960
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11976
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
11977
+ var buildSpawnOptions = (options, base, platform) => {
11978
+ const detached = options.detached ?? platform !== "win32";
11979
+ return {
11980
+ ...base,
11981
+ detached,
11982
+ shell: options.shell,
11983
+ windowsHide: options.windowsHide ?? !detached
11984
+ };
11985
+ };
11986
+
11987
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11961
11988
  var handleErrnoException = (module, method) => (err, [path5]) => {
11962
11989
  let reason = "Unknown";
11963
11990
  switch (err.code) {
@@ -11993,7 +12020,7 @@ var handleErrnoException = (module, method) => (err, [path5]) => {
11993
12020
  });
11994
12021
  };
11995
12022
 
11996
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
12023
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
11997
12024
  var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
11998
12025
  var toPlatformError = (method, error2, command2) => {
11999
12026
  const {
@@ -12005,6 +12032,10 @@ var toPlatformError = (method, error2, command2) => {
12005
12032
  }, "");
12006
12033
  return handleErrnoException("ChildProcess", method)(error2, [commandStr]);
12007
12034
  };
12035
+ var taskkill = (childProcess, onExit4 = () => {
12036
+ }) => NodeChildProcess__namespace.execFile("taskkill", ["/pid", String(childProcess.pid), "/T", "/F"], {
12037
+ windowsHide: true
12038
+ }, onExit4);
12008
12039
  var make26 = /* @__PURE__ */ gen2(function* () {
12009
12040
  const fs2 = yield* FileSystem;
12010
12041
  const path5 = yield* Path;
@@ -12222,7 +12253,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12222
12253
  const killProcessGroup = (command2, childProcess, signal) => {
12223
12254
  if (globalThis.process.platform === "win32") {
12224
12255
  return callback2((resume) => {
12225
- NodeChildProcess__namespace.exec(`taskkill /pid ${childProcess.pid} /T /F`, (error2) => {
12256
+ taskkill(childProcess, (error2) => {
12226
12257
  if (error2) {
12227
12258
  resume(fail6(toPlatformError("kill", toError(error2), command2)));
12228
12259
  } else {
@@ -12240,8 +12271,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12240
12271
  };
12241
12272
  const killProcessGroupOnExit = (childProcess, signal) => {
12242
12273
  if (globalThis.process.platform === "win32") {
12243
- NodeChildProcess__namespace.exec(`taskkill /pid ${childProcess.pid} /T /F`, () => {
12244
- });
12274
+ taskkill(childProcess);
12245
12275
  return;
12246
12276
  }
12247
12277
  try {
@@ -12293,13 +12323,11 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12293
12323
  const cwd = yield* resolveWorkingDirectory(cmd.options);
12294
12324
  const env = resolveEnvironment(cmd.options);
12295
12325
  const stdio = buildStdioArray(stdinConfig, stdoutConfig, stderrConfig, resolvedAdditionalFds);
12296
- const [childProcess, exitSignal] = yield* acquireRelease2(spawn2(cmd, {
12326
+ const [childProcess, exitSignal] = yield* acquireRelease2(spawn2(cmd, buildSpawnOptions(cmd.options, {
12297
12327
  cwd,
12298
12328
  env,
12299
- stdio,
12300
- detached: cmd.options.detached ?? process.platform !== "win32",
12301
- shell: cmd.options.shell
12302
- }), fnUntraced2(function* ([childProcess2, exitSignal2]) {
12329
+ stdio
12330
+ }, process.platform)), fnUntraced2(function* ([childProcess2, exitSignal2]) {
12303
12331
  const exited = yield* isDone2(exitSignal2);
12304
12332
  const killWithTimeout = withTimeout(childProcess2, cmd, cmd.options);
12305
12333
  if (exited) {
@@ -12477,8 +12505,8 @@ var flattenCommand = (command2) => {
12477
12505
  };
12478
12506
  };
12479
12507
 
12480
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Crypto.js
12481
- var TypeId39 = "~effect/platform/Crypto";
12508
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Crypto.js
12509
+ var TypeId38 = "~effect/platform/Crypto";
12482
12510
  var Crypto = /* @__PURE__ */ Service("effect/Crypto");
12483
12511
  var make27 = (impl) => {
12484
12512
  const randomBytesUnsafe = impl.randomBytes;
@@ -12498,7 +12526,7 @@ var make27 = (impl) => {
12498
12526
  }
12499
12527
  };
12500
12528
  return Crypto.of({
12501
- [TypeId39]: TypeId39,
12529
+ [TypeId38]: TypeId38,
12502
12530
  randomBytes: randomBytes3,
12503
12531
  nextDoubleUnsafe,
12504
12532
  nextIntUnsafe,
@@ -12585,7 +12613,7 @@ var make28 = /* @__PURE__ */ make27({
12585
12613
  });
12586
12614
  var layer5 = /* @__PURE__ */ succeed5(Crypto, make28);
12587
12615
 
12588
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12616
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12589
12617
  var layer6 = layer5;
12590
12618
  var handleBadArgument = (method) => (err) => badArgument({
12591
12619
  module: "FileSystem",
@@ -12965,7 +12993,7 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
12965
12993
  }));
12966
12994
  var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
12967
12995
 
12968
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
12996
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
12969
12997
  var layer8 = layer7;
12970
12998
  var fileUrlOps = (windows) => ({
12971
12999
  fromFileUrl: (url) => try_3({
@@ -12990,25 +13018,25 @@ var fileUrlOps = (windows) => ({
12990
13018
  })
12991
13019
  });
12992
13020
  var layer9 = /* @__PURE__ */ succeed5(Path)({
12993
- [TypeId37]: TypeId37,
13021
+ [TypeId36]: TypeId36,
12994
13022
  ...R__namespace,
12995
13023
  .../* @__PURE__ */ fileUrlOps(void 0)
12996
13024
  });
12997
13025
 
12998
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
13026
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
12999
13027
  var layer10 = layer9;
13000
13028
 
13001
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Stdio.js
13002
- var TypeId40 = "~effect/Stdio";
13003
- var Stdio = /* @__PURE__ */ Service(TypeId40);
13029
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Stdio.js
13030
+ var TypeId39 = "~effect/Stdio";
13031
+ var Stdio = /* @__PURE__ */ Service(TypeId39);
13004
13032
  var make29 = (options) => ({
13005
- [TypeId40]: TypeId40,
13033
+ [TypeId39]: TypeId39,
13006
13034
  stdinIsTerminal: succeed6(false),
13007
13035
  stdoutIsTerminal: succeed6(false),
13008
13036
  ...options
13009
13037
  });
13010
13038
 
13011
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
13039
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
13012
13040
  var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13013
13041
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
13014
13042
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
@@ -13045,11 +13073,11 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13045
13073
  })
13046
13074
  }));
13047
13075
 
13048
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13076
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13049
13077
  var layer12 = layer11;
13050
13078
 
13051
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Terminal.js
13052
- var TypeId41 = "~effect/platform/Terminal";
13079
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Terminal.js
13080
+ var TypeId40 = "~effect/platform/Terminal";
13053
13081
  var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
13054
13082
  var QuitError = class extends (/* @__PURE__ */ Error4("QuitError")({
13055
13083
  _tag: /* @__PURE__ */ tag("QuitError")
@@ -13065,7 +13093,7 @@ var isQuitError = (u2) => hasProperty(u2, QuitErrorTypeId);
13065
13093
  var Terminal = /* @__PURE__ */ Service("effect/platform/Terminal");
13066
13094
  var make30 = (impl) => Terminal.of({
13067
13095
  ...impl,
13068
- [TypeId41]: TypeId41
13096
+ [TypeId40]: TypeId40
13069
13097
  });
13070
13098
  var make31 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQuit) {
13071
13099
  const stdin = process.stdin;
@@ -13186,13 +13214,13 @@ function defaultShouldQuit(input) {
13186
13214
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
13187
13215
  }
13188
13216
 
13189
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13217
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13190
13218
  var layer14 = layer13;
13191
13219
 
13192
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
13220
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
13193
13221
  var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
13194
13222
 
13195
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/ConfigProvider.js
13223
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/ConfigProvider.js
13196
13224
  function makeValue(value3) {
13197
13225
  return {
13198
13226
  _tag: "Value",
@@ -13290,8 +13318,8 @@ function trieNodeAt(root, path5) {
13290
13318
  return node;
13291
13319
  }
13292
13320
 
13293
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Config.js
13294
- var TypeId42 = "~effect/Config";
13321
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Config.js
13322
+ var TypeId41 = "~effect/Config";
13295
13323
  var Proto12 = {
13296
13324
  .../* @__PURE__ */ Prototype2({
13297
13325
  label: "Config",
@@ -13299,7 +13327,7 @@ var Proto12 = {
13299
13327
  return this.parse(fiber3.getRef(ConfigProvider));
13300
13328
  }
13301
13329
  }),
13302
- [TypeId42]: TypeId42,
13330
+ [TypeId41]: TypeId41,
13303
13331
  toJSON() {
13304
13332
  return {
13305
13333
  _id: "Config"
@@ -13332,7 +13360,7 @@ var Boolean3 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValues.
13332
13360
  encode: (value3) => value3 ? "true" : "false"
13333
13361
  })));
13334
13362
 
13335
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Console.js
13363
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Console.js
13336
13364
  var Console = ConsoleRef;
13337
13365
  var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
13338
13366
  var error = (...args2) => consoleWith((console) => sync(() => {
@@ -13342,7 +13370,7 @@ var log2 = (...args2) => consoleWith((console) => sync(() => {
13342
13370
  console.log(...args2);
13343
13371
  }));
13344
13372
 
13345
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Argument.js
13373
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Argument.js
13346
13374
  var Argument_exports = {};
13347
13375
  __export(Argument_exports, {
13348
13376
  atLeast: () => atLeast2,
@@ -13379,10 +13407,10 @@ __export(Argument_exports, {
13379
13407
  withSchema: () => withSchema2
13380
13408
  });
13381
13409
 
13382
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliError.js
13383
- var TypeId43 = "~effect/cli/CliError";
13384
- var isCliError = (u2) => hasProperty(u2, TypeId43);
13385
- var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnrecognizedOption`)("UnrecognizedOption", {
13410
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/CliError.js
13411
+ var TypeId42 = "~effect/cli/CliError";
13412
+ var isCliError = (u2) => hasProperty(u2, TypeId42);
13413
+ var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnrecognizedOption`)("UnrecognizedOption", {
13386
13414
  option: String4,
13387
13415
  command: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13388
13416
  suggestions: /* @__PURE__ */ ArraySchema(String4)
@@ -13392,7 +13420,7 @@ var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13392
13420
  *
13393
13421
  * @since 4.0.0
13394
13422
  */
13395
- [TypeId43] = TypeId43;
13423
+ [TypeId42] = TypeId42;
13396
13424
  /**
13397
13425
  * Formats the unrecognized option with command context and suggestions.
13398
13426
  *
@@ -13407,7 +13435,7 @@ var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13407
13435
  return baseMessage + suggestionText;
13408
13436
  }
13409
13437
  };
13410
- var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/DuplicateOption`)("DuplicateOption", {
13438
+ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/DuplicateOption`)("DuplicateOption", {
13411
13439
  option: String4,
13412
13440
  parentCommand: String4,
13413
13441
  childCommand: String4
@@ -13417,7 +13445,7 @@ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/D
13417
13445
  *
13418
13446
  * @since 4.0.0
13419
13447
  */
13420
- [TypeId43] = TypeId43;
13448
+ [TypeId42] = TypeId42;
13421
13449
  /**
13422
13450
  * Explains which parent and child commands define the duplicate option.
13423
13451
  *
@@ -13427,7 +13455,7 @@ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/D
13427
13455
  return `Duplicate flag name "${this.option}" in parent command "${this.parentCommand}" and subcommand "${this.childCommand}". Parent will always claim this flag (Mode A semantics). Consider renaming one of them to avoid confusion.`;
13428
13456
  }
13429
13457
  };
13430
- var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/MissingOption`)("MissingOption", {
13458
+ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/MissingOption`)("MissingOption", {
13431
13459
  option: String4
13432
13460
  })) {
13433
13461
  /**
@@ -13435,7 +13463,7 @@ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Mis
13435
13463
  *
13436
13464
  * @since 4.0.0
13437
13465
  */
13438
- [TypeId43] = TypeId43;
13466
+ [TypeId42] = TypeId42;
13439
13467
  /**
13440
13468
  * Formats the missing required flag for display.
13441
13469
  *
@@ -13445,7 +13473,7 @@ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Mis
13445
13473
  return `Missing required flag: --${this.option}`;
13446
13474
  }
13447
13475
  };
13448
- var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/MissingArgument`)("MissingArgument", {
13476
+ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/MissingArgument`)("MissingArgument", {
13449
13477
  argument: String4
13450
13478
  })) {
13451
13479
  /**
@@ -13453,7 +13481,7 @@ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/M
13453
13481
  *
13454
13482
  * @since 4.0.0
13455
13483
  */
13456
- [TypeId43] = TypeId43;
13484
+ [TypeId42] = TypeId42;
13457
13485
  /**
13458
13486
  * Formats the missing required positional argument for display.
13459
13487
  *
@@ -13463,7 +13491,7 @@ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/M
13463
13491
  return `Missing required argument: ${this.argument}`;
13464
13492
  }
13465
13493
  };
13466
- var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnexpectedArgument`)("UnexpectedArgument", {
13494
+ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnexpectedArgument`)("UnexpectedArgument", {
13467
13495
  arguments: /* @__PURE__ */ ArraySchema(String4)
13468
13496
  })) {
13469
13497
  /**
@@ -13471,7 +13499,7 @@ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13471
13499
  *
13472
13500
  * @since 4.0.0
13473
13501
  */
13474
- [TypeId43] = TypeId43;
13502
+ [TypeId42] = TypeId42;
13475
13503
  /**
13476
13504
  * Formats the unexpected positional arguments for display.
13477
13505
  *
@@ -13482,7 +13510,7 @@ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13482
13510
  return `Unexpected positional ${label}: ${this.arguments.map((value3) => JSON.stringify(value3)).join(", ")}`;
13483
13511
  }
13484
13512
  };
13485
- var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/InvalidValue`)("InvalidValue", {
13513
+ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/InvalidValue`)("InvalidValue", {
13486
13514
  option: String4,
13487
13515
  value: String4,
13488
13516
  expected: String4,
@@ -13493,7 +13521,7 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Inv
13493
13521
  *
13494
13522
  * @since 4.0.0
13495
13523
  */
13496
- [TypeId43] = TypeId43;
13524
+ [TypeId42] = TypeId42;
13497
13525
  /**
13498
13526
  * Formats the invalid flag or argument value with the expected input.
13499
13527
  *
@@ -13510,7 +13538,7 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Inv
13510
13538
  return `Invalid value for flag --${this.option}: "${this.value}". ${expectation}`;
13511
13539
  }
13512
13540
  };
13513
- var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnknownSubcommand`)("UnknownSubcommand", {
13541
+ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnknownSubcommand`)("UnknownSubcommand", {
13514
13542
  subcommand: String4,
13515
13543
  parent: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13516
13544
  suggestions: /* @__PURE__ */ ArraySchema(String4)
@@ -13520,7 +13548,7 @@ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}
13520
13548
  *
13521
13549
  * @since 4.0.0
13522
13550
  */
13523
- [TypeId43] = TypeId43;
13551
+ [TypeId42] = TypeId42;
13524
13552
  /**
13525
13553
  * Formats the unknown subcommand with parent command context and suggestions.
13526
13554
  *
@@ -13534,22 +13562,41 @@ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}
13534
13562
  return this.parent ? `Unknown subcommand "${this.subcommand}" for "${this.parent.join(" ")}"${suggestionText}` : `Unknown subcommand "${this.subcommand}"${suggestionText}`;
13535
13563
  }
13536
13564
  };
13537
- var UserError = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UserError`)("UserError", {
13538
- cause: /* @__PURE__ */ Defect()
13565
+ var UserError = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UserError`)("UserError", {
13566
+ cause: /* @__PURE__ */ Defect(),
13567
+ userMessage: /* @__PURE__ */ optionalKey2(String4)
13539
13568
  })) {
13540
13569
  /**
13541
13570
  * Marks this value as a user handler error for runtime guards.
13542
13571
  *
13543
13572
  * @since 4.0.0
13544
13573
  */
13545
- [TypeId43] = TypeId43;
13574
+ [TypeId42] = TypeId42;
13575
+ /**
13576
+ * Controls whether the runtime logger should report this error. The CLI
13577
+ * runner sets this to `false` after rendering the error itself.
13578
+ *
13579
+ * @since 4.0.0
13580
+ */
13581
+ [errorReported] = true;
13582
+ /**
13583
+ * Returns the explicit user-facing message or a safe fallback from `cause`.
13584
+ *
13585
+ * @since 4.0.0
13586
+ */
13587
+ get message() {
13588
+ if (this.userMessage) return this.userMessage;
13589
+ if (typeof this.cause === "string" && this.cause) return this.cause;
13590
+ if (this.cause instanceof Error && this.cause.message) return this.cause.message;
13591
+ return "An error occurred";
13592
+ }
13546
13593
  };
13547
13594
  var NonShowHelpErrors = /* @__PURE__ */ Union2([UnrecognizedOption, DuplicateOption, MissingOption, MissingArgument, UnexpectedArgument, InvalidValue2, UnknownSubcommand, UserError]);
13548
- var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/ShowHelp`)("ShowHelp", {
13595
+ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/ShowHelp`)("ShowHelp", {
13549
13596
  commandPath: /* @__PURE__ */ ArraySchema(String4),
13550
13597
  errors: /* @__PURE__ */ ArraySchema(NonShowHelpErrors)
13551
13598
  })) {
13552
- [TypeId43] = TypeId43;
13599
+ [TypeId42] = TypeId42;
13553
13600
  [errorExitCode] = this.errors.length ? 1 : 0;
13554
13601
  [errorReported] = false;
13555
13602
  get message() {
@@ -13557,7 +13604,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/ShowHelp
13557
13604
  }
13558
13605
  };
13559
13606
 
13560
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Ini.js
13607
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/encoding/Ini.js
13561
13608
  var hasOwn = Object.prototype.hasOwnProperty;
13562
13609
  var splitSections = (value3) => {
13563
13610
  const sections = [];
@@ -13676,7 +13723,7 @@ var parse = (input) => {
13676
13723
  return output;
13677
13724
  };
13678
13725
 
13679
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Toml.js
13726
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/encoding/Toml.js
13680
13727
  var hasOwn2 = Object.prototype.hasOwnProperty;
13681
13728
  var makeTable = () => /* @__PURE__ */ Object.create(null);
13682
13729
  var isTable = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3) && !(value3 instanceof Date);
@@ -14094,7 +14141,7 @@ var TomlParser = class {
14094
14141
  };
14095
14142
  var parse2 = (input) => new TomlParser(input.replace(/^\uFEFF/, "")).parse();
14096
14143
 
14097
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Yaml.js
14144
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/encoding/Yaml.js
14098
14145
  var hasOwn3 = Object.prototype.hasOwnProperty;
14099
14146
  var setProperty = (record2, key, value3) => {
14100
14147
  Object.defineProperty(record2, key, {
@@ -14547,10 +14594,10 @@ var parse3 = (input) => {
14547
14594
  return new YamlParser(lines2).parse();
14548
14595
  };
14549
14596
 
14550
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Primitive.js
14551
- var TypeId44 = "~effect/cli/Primitive";
14597
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Primitive.js
14598
+ var TypeId43 = "~effect/cli/Primitive";
14552
14599
  var Proto13 = {
14553
- [TypeId44]: {
14600
+ [TypeId43]: {
14554
14601
  _A: identity
14555
14602
  }
14556
14603
  };
@@ -14701,7 +14748,7 @@ var getTypeName = (primitive) => {
14701
14748
  var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
14702
14749
  var getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
14703
14750
 
14704
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Prompt.js
14751
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Prompt.js
14705
14752
  var Prompt_exports = {};
14706
14753
  __export(Prompt_exports, {
14707
14754
  all: () => all3,
@@ -14727,7 +14774,7 @@ __export(Prompt_exports, {
14727
14774
  toggle: () => toggle
14728
14775
  });
14729
14776
 
14730
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/ansi.js
14777
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/ansi.js
14731
14778
  var ESC = "\x1B[";
14732
14779
  var BEL = "\x07";
14733
14780
  var reset = `${ESC}0m`;
@@ -14788,9 +14835,9 @@ var eraseLines = (rows) => {
14788
14835
  return command2;
14789
14836
  };
14790
14837
 
14791
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Prompt.js
14792
- var TypeId45 = "~effect/cli/Prompt";
14793
- var isPrompt = (u2) => hasProperty(u2, TypeId45);
14838
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Prompt.js
14839
+ var TypeId44 = "~effect/cli/Prompt";
14840
+ var isPrompt = (u2) => hasProperty(u2, TypeId44);
14794
14841
  var defaultFigures = {
14795
14842
  arrowUp: "\u2191",
14796
14843
  arrowDown: "\u2193",
@@ -15135,7 +15182,7 @@ var proto = {
15135
15182
  return run3(this);
15136
15183
  }
15137
15184
  }),
15138
- [TypeId45]: {
15185
+ [TypeId44]: {
15139
15186
  _Output: (_2) => _2
15140
15187
  }
15141
15188
  };
@@ -17304,19 +17351,19 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
17304
17351
  };
17305
17352
  };
17306
17353
 
17307
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Param.js
17308
- var TypeId46 = "~effect/cli/Param";
17354
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Param.js
17355
+ var TypeId45 = "~effect/cli/Param";
17309
17356
  var argumentKind = "argument";
17310
17357
  var flagKind = "flag";
17311
17358
  var Proto14 = {
17312
- [TypeId46]: {
17359
+ [TypeId45]: {
17313
17360
  _A: identity
17314
17361
  },
17315
17362
  pipe() {
17316
17363
  return pipeArguments(this, arguments);
17317
17364
  }
17318
17365
  };
17319
- var isParam = (u2) => hasProperty(u2, TypeId46);
17366
+ var isParam = (u2) => hasProperty(u2, TypeId45);
17320
17367
  var isFlagParam = (single) => single.kind === "flag";
17321
17368
  var makeSingle2 = (params) => {
17322
17369
  const parse4 = (args2) => params.kind === argumentKind ? parsePositional(params.name, params.primitiveType, args2) : parseFlag(params.name, params.primitiveType, args2);
@@ -17753,7 +17800,7 @@ var getParamMetadata = (param) => {
17753
17800
  });
17754
17801
  };
17755
17802
 
17756
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Argument.js
17803
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Argument.js
17757
17804
  var string5 = (name) => string4(argumentKind, name);
17758
17805
  var integer4 = (name) => integer3(argumentKind, name);
17759
17806
  var file4 = (name, options) => file3(argumentKind, name, options);
@@ -17787,7 +17834,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
17787
17834
  var orElse2 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
17788
17835
  var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
17789
17836
 
17790
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliOutput.js
17837
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/CliOutput.js
17791
17838
  var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
17792
17839
  defaultValue: () => defaultFormatter2()
17793
17840
  });
@@ -17983,7 +18030,7 @@ var formatHelpDocImpl = (doc, colors2) => {
17983
18030
  return sections.join("\n");
17984
18031
  };
17985
18032
 
17986
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
18033
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
17987
18034
  var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
17988
18035
  var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
17989
18036
  var flagNamesForWordlist = (flag) => {
@@ -18205,7 +18252,7 @@ var generate = (executableName, descriptor) => {
18205
18252
  return lines2.join("\n");
18206
18253
  };
18207
18254
 
18208
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18255
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18209
18256
  var escapeFishString = (s3) => s3.replace(/'/g, "\\'");
18210
18257
  var subcommandCondition = (parentPath, childSubcommandNames) => {
18211
18258
  if (parentPath.length === 0) {
@@ -18373,7 +18420,7 @@ var generate2 = (executableName, descriptor) => {
18373
18420
  return lines2.join("\n");
18374
18421
  };
18375
18422
 
18376
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18423
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18377
18424
  var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
18378
18425
  var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
18379
18426
  var allForms = (flag) => {
@@ -18531,7 +18578,7 @@ var generate3 = (executableName, descriptor) => {
18531
18578
  return lines2.join("\n");
18532
18579
  };
18533
18580
 
18534
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Completions.js
18581
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Completions.js
18535
18582
  var generate4 = (executableName, shell, descriptor) => {
18536
18583
  switch (shell) {
18537
18584
  case "bash":
@@ -18543,7 +18590,7 @@ var generate4 = (executableName, shell, descriptor) => {
18543
18590
  }
18544
18591
  };
18545
18592
 
18546
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Flag.js
18593
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Flag.js
18547
18594
  var Flag_exports = {};
18548
18595
  __export(Flag_exports, {
18549
18596
  atLeast: () => atLeast3,
@@ -18618,7 +18665,7 @@ var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
18618
18665
  var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
18619
18666
  var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
18620
18667
 
18621
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/config.js
18668
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/config.js
18622
18669
  var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
18623
18670
  var parseConfig = (config) => {
18624
18671
  const orderedParams = [];
@@ -18719,8 +18766,8 @@ var reconstructTree = (tree, results) => {
18719
18766
  }
18720
18767
  };
18721
18768
 
18722
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/command.js
18723
- var TypeId47 = "~effect/cli/Command";
18769
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/command.js
18770
+ var TypeId46 = "~effect/cli/Command";
18724
18771
  var toImpl = (self) => self;
18725
18772
  var Proto15 = {
18726
18773
  .../* @__PURE__ */ Prototype2({
@@ -18733,7 +18780,7 @@ var Proto15 = {
18733
18780
  var makeCommand = (options) => {
18734
18781
  const config = options.config;
18735
18782
  const contextConfig = options.contextConfig ?? emptyConfig;
18736
- const service3 = options.service ?? Service(`${TypeId47}/${options.name}`);
18783
+ const service3 = options.service ?? Service(`${TypeId46}/${options.name}`);
18737
18784
  const annotations = options.annotations ?? empty();
18738
18785
  const globalFlags = options.globalFlags ?? [];
18739
18786
  const subcommands = options.subcommands ?? [];
@@ -18810,7 +18857,7 @@ var makeCommand = (options) => {
18810
18857
  };
18811
18858
  };
18812
18859
  return Object.assign(Object.create(Proto15), {
18813
- [TypeId47]: TypeId47,
18860
+ [TypeId46]: TypeId46,
18814
18861
  name: options.name,
18815
18862
  examples: options.examples ?? [],
18816
18863
  annotations,
@@ -18910,7 +18957,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
18910
18957
  }
18911
18958
  };
18912
18959
 
18913
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18960
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18914
18961
  var toFlagType = (single) => {
18915
18962
  const tag2 = single.primitiveType._tag;
18916
18963
  switch (tag2) {
@@ -19043,7 +19090,7 @@ var fromCommand = (cmd) => {
19043
19090
  };
19044
19091
  };
19045
19092
 
19046
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/help.js
19093
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/help.js
19047
19094
  var dedupeGlobalFlags = (flags) => {
19048
19095
  const seen = /* @__PURE__ */ new Set();
19049
19096
  const deduped = [];
@@ -19148,7 +19195,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
19148
19195
  };
19149
19196
  });
19150
19197
 
19151
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19198
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19152
19199
  var action = (options) => ({
19153
19200
  _tag: "Action",
19154
19201
  flag: options.flag,
@@ -19205,7 +19252,7 @@ var LogLevel = /* @__PURE__ */ setting("log-level")({
19205
19252
  });
19206
19253
  var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
19207
19254
 
19208
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliConfig.js
19255
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/CliConfig.js
19209
19256
  var CliConfig = class extends (/* @__PURE__ */ Reference("effect/unstable/cli/CliConfig", {
19210
19257
  defaultValue: () => defaults
19211
19258
  })) {
@@ -19214,7 +19261,7 @@ var defaults = {
19214
19261
  builtIns: BuiltIns
19215
19262
  };
19216
19263
 
19217
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Command.js
19264
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Command.js
19218
19265
  var Command_exports = {};
19219
19266
  __export(Command_exports, {
19220
19267
  annotate: () => annotate3,
@@ -19239,7 +19286,7 @@ __export(Command_exports, {
19239
19286
  wizard: () => wizard
19240
19287
  });
19241
19288
 
19242
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/lexer.js
19289
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/lexer.js
19243
19290
  function lex(argv) {
19244
19291
  const endIndex = argv.indexOf("--");
19245
19292
  if (endIndex === -1) {
@@ -19310,7 +19357,7 @@ var lexTokens = (args2) => {
19310
19357
  return tokens;
19311
19358
  };
19312
19359
 
19313
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19360
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19314
19361
  var levenshtein = (a, b2) => {
19315
19362
  const m2 = a.length;
19316
19363
  const n = b2.length;
@@ -19334,7 +19381,7 @@ var suggest = (input, candidates) => {
19334
19381
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
19335
19382
  };
19336
19383
 
19337
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/parser.js
19384
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/parser.js
19338
19385
  var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
19339
19386
  onNone: () => [],
19340
19387
  onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
@@ -19837,7 +19884,7 @@ var scanCommandLevel = (tokens, context3) => {
19837
19884
  return toLeafResult(state);
19838
19885
  };
19839
19886
 
19840
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/wizard.js
19887
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/wizard.js
19841
19888
  var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
19842
19889
  const commandPath = options?.commandPath ?? [command2.name];
19843
19890
  const selected = getCommandAtPath(command2, commandPath);
@@ -20041,8 +20088,8 @@ var wrapCommand = (commandLine) => {
20041
20088
  };
20042
20089
  var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
20043
20090
 
20044
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Command.js
20045
- var isCommand = (u2) => hasProperty(u2, TypeId47);
20091
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Command.js
20092
+ var isCommand = (u2) => hasProperty(u2, TypeId46);
20046
20093
  var make34 = (name, config, handler) => {
20047
20094
  const parsedConfig = parseConfig(config ?? {});
20048
20095
  return makeCommand({
@@ -20288,17 +20335,22 @@ var getOutOfScopeGlobalFlagErrors = (allFlags, activeFlags, flagMap, commandPath
20288
20335
  }
20289
20336
  return errors;
20290
20337
  };
20291
- var showHelp = (command2, error2) => gen2(function* () {
20338
+ var showHelp = (command2, error2, renderErrors) => gen2(function* () {
20292
20339
  const {
20293
20340
  builtIns
20294
20341
  } = yield* CliConfig;
20295
20342
  const formatter = yield* Formatter;
20296
20343
  const helpDoc = yield* getHelpForCommandPath(command2, error2.commandPath, builtIns);
20297
20344
  yield* log2(formatter.formatHelpDoc(helpDoc));
20298
- if (error2.errors.length > 0) {
20345
+ if (renderErrors && error2.errors.length > 0) {
20299
20346
  yield* error(formatter.formatErrors(error2.errors));
20300
20347
  }
20301
20348
  });
20349
+ var showUserError = (error2) => gen2(function* () {
20350
+ const formatter = yield* Formatter;
20351
+ yield* error(formatter.formatError(error2));
20352
+ error2[errorReported] = false;
20353
+ });
20302
20354
  var run5 = /* @__PURE__ */ dual(2, (command2, config) => Stdio.use(({
20303
20355
  args: args2
20304
20356
  }) => flatMap3(args2, (args3) => runWith2(command2, config)(args3))));
@@ -20370,7 +20422,10 @@ var runWith2 = (command2, config) => {
20370
20422
  }));
20371
20423
  if (shouldRun) {
20372
20424
  yield* log2();
20373
- yield* runWith2(command2, config)(wizardArgs.slice(1));
20425
+ yield* runWith2(command2, {
20426
+ ...config,
20427
+ renderErrors: false
20428
+ })(wizardArgs.slice(1));
20374
20429
  }
20375
20430
  }).pipe(catchTag2("QuitError", () => log2(renderQuit())));
20376
20431
  }
@@ -20403,7 +20458,7 @@ var runWith2 = (command2, config) => {
20403
20458
  onSome: (level) => make3(MinimumLogLevel2, level)
20404
20459
  });
20405
20460
  yield* provideContext2(program, services);
20406
- }, catchFilter2((error2) => isCliError(error2) && error2._tag === "ShowHelp" ? succeed2(error2) : fail2(error2), (error2) => andThen2(showHelp(command2, error2), fail6(error2))), catchFilter2((e) => isQuitError(e) ? succeed2(e) : fail2(e), (_2) => interrupt2));
20461
+ }, catchFilter2((error2) => isCliError(error2) && error2._tag === "ShowHelp" ? succeed2(error2) : fail2(error2), (error2) => andThen2(showHelp(command2, error2, config.renderErrors !== false), fail6(error2))), catchFilter2((error2) => config.renderErrors !== false && isCliError(error2) && error2._tag === "UserError" ? succeed2(error2) : fail2(error2), (error2) => andThen2(showUserError(error2), fail6(error2))), catchFilter2((e) => isQuitError(e) ? succeed2(e) : fail2(e), (_2) => interrupt2));
20407
20462
  };
20408
20463
 
20409
20464
  // src/Domain.ts