create-efffrida-app 0.0.14 → 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 +554 -463
  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.105/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,
@@ -145,7 +145,7 @@ __export(Effect_exports, {
145
145
  interruptible: () => interruptible2,
146
146
  interruptibleMask: () => interruptibleMask2,
147
147
  isEffect: () => isEffect2,
148
- isFailure: () => isFailure4,
148
+ isFailure: () => isFailure5,
149
149
  isSuccess: () => isSuccess5,
150
150
  let: () => let_3,
151
151
  linkSpans: () => linkSpans2,
@@ -287,7 +287,7 @@ __export(Effect_exports, {
287
287
  zipWith: () => zipWith2
288
288
  });
289
289
 
290
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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.105/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() {
@@ -430,8 +430,19 @@ function memoize(f2) {
430
430
  return result3;
431
431
  };
432
432
  }
433
+ function memoizeIdempotent(f2) {
434
+ const cache = /* @__PURE__ */ new WeakMap();
435
+ return (a) => {
436
+ const cached3 = cache.get(a);
437
+ if (cached3 !== void 0) return cached3;
438
+ const result3 = f2(a);
439
+ cache.set(a, result3);
440
+ cache.set(result3, result3);
441
+ return result3;
442
+ };
443
+ }
433
444
 
434
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/equal.js
445
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/equal.js
435
446
  var getAllObjectKeys = (obj) => {
436
447
  const keys2 = new Set(Reflect.ownKeys(obj));
437
448
  if (obj.constructor === Object) return keys2;
@@ -454,7 +465,7 @@ var getAllObjectKeys = (obj) => {
454
465
  };
455
466
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
456
467
 
457
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Predicate.js
468
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Predicate.js
458
469
  function isString(input) {
459
470
  return typeof input === "string";
460
471
  }
@@ -500,7 +511,7 @@ function isIterable(input) {
500
511
  return hasProperty(input, Symbol.iterator) || isString(input);
501
512
  }
502
513
 
503
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Hash.js
514
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Hash.js
504
515
  var symbol = "~effect/interfaces/Hash";
505
516
  var hash = (self) => {
506
517
  switch (typeof self) {
@@ -624,7 +635,7 @@ function withVisitedTracking(obj, fn3) {
624
635
  return result3;
625
636
  }
626
637
 
627
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Equal.js
638
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equal.js
628
639
  var symbol2 = "~effect/interfaces/Equal";
629
640
  function equals() {
630
641
  if (arguments.length === 1) {
@@ -816,7 +827,7 @@ function makeCompareSet(equivalence) {
816
827
  var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
817
828
  var isEqual = (u2) => hasProperty(u2, symbol2);
818
829
 
819
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Redactable.js
830
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redactable.js
820
831
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
821
832
  var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
822
833
  function redact(u2) {
@@ -838,7 +849,7 @@ var emptyContext = {
838
849
  }
839
850
  };
840
851
 
841
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Formatter.js
852
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Formatter.js
842
853
  function format(input, options) {
843
854
  const space = options?.space ?? 0;
844
855
  const ancestors = /* @__PURE__ */ new WeakSet();
@@ -856,23 +867,6 @@ function format(input, options) {
856
867
  }
857
868
  };
858
869
  function recur(v2, d = 0) {
859
- if (Array.isArray(v2)) {
860
- if (ancestors.has(v2)) return CIRCULAR;
861
- ancestors.add(v2);
862
- const output = !gap || v2.length <= 1 ? `[${v2.map((x) => recur(x, d)).join(",")}]` : `[
863
- ${ind(d + 1)}${v2.map((x) => recur(x, d + 1)).join(",\n" + ind(d + 1))}
864
- ${ind(d)}]`;
865
- ancestors.delete(v2);
866
- return output;
867
- }
868
- if (v2 instanceof Date) return formatDate(v2);
869
- if (!options?.ignoreToString && hasProperty(v2, "toString") && typeof v2["toString"] === "function" && v2["toString"] !== Object.prototype.toString && v2["toString"] !== Array.prototype.toString) {
870
- const s3 = safeToString(v2);
871
- if (v2 instanceof Error && v2.cause) {
872
- return `${s3} (cause: ${recur(v2.cause, d)})`;
873
- }
874
- return s3;
875
- }
876
870
  if (typeof v2 === "string") return JSON.stringify(v2);
877
871
  if (typeof v2 === "number" || v2 == null || typeof v2 === "boolean" || typeof v2 === "symbol") return String(v2);
878
872
  if (typeof v2 === "bigint") return String(v2) + "n";
@@ -881,7 +875,16 @@ ${ind(d)}]`;
881
875
  ancestors.add(v2);
882
876
  let output;
883
877
  if (symbolRedactable in v2) {
884
- 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;
885
888
  } else if (Symbol.iterator in v2) {
886
889
  output = `${v2.constructor.name}(${recur(Array.from(v2), d)})`;
887
890
  } else {
@@ -927,8 +930,12 @@ function safeToString(input) {
927
930
  }
928
931
  function formatJson(input, options) {
929
932
  const ancestors = [];
930
- return JSON.stringify(input, function(_key, value3) {
931
- 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
+ }
932
939
  if (typeof redacted5 !== "object" || redacted5 === null) {
933
940
  return redacted5;
934
941
  }
@@ -943,19 +950,20 @@ function formatJson(input, options) {
943
950
  }, options?.space) ?? "null";
944
951
  }
945
952
 
946
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Inspectable.js
953
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Inspectable.js
947
954
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
948
955
  var toJson = (input) => {
949
956
  try {
957
+ input = redact(input);
950
958
  if (hasProperty(input, "toJSON") && isFunction(input["toJSON"]) && input["toJSON"].length === 0) {
951
959
  return input.toJSON();
952
960
  } else if (Array.isArray(input)) {
953
961
  return input.map(toJson);
954
962
  }
963
+ return input;
955
964
  } catch {
956
965
  return "[toJSON threw]";
957
966
  }
958
- return redact(input);
959
967
  };
960
968
  var toStringUnknown = (u2, whitespace = 2) => {
961
969
  if (typeof u2 === "string") {
@@ -964,7 +972,9 @@ var toStringUnknown = (u2, whitespace = 2) => {
964
972
  try {
965
973
  return typeof u2 === "object" ? formatJson(u2, {
966
974
  space: whitespace
967
- }) : String(u2);
975
+ }) : format(u2, {
976
+ space: whitespace
977
+ });
968
978
  } catch {
969
979
  return String(u2);
970
980
  }
@@ -1007,7 +1017,7 @@ var Class2 = class {
1007
1017
  }
1008
1018
  };
1009
1019
 
1010
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Utils.js
1020
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Utils.js
1011
1021
  var SingleShotGen = class _SingleShotGen {
1012
1022
  called = false;
1013
1023
  self;
@@ -1067,7 +1077,7 @@ var pickInternalCall = () => {
1067
1077
  };
1068
1078
  var internalCall = /* @__PURE__ */ pickInternalCall();
1069
1079
 
1070
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/record.js
1080
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/record.js
1071
1081
  function assignProperty(self, key, value3) {
1072
1082
  if (key === "__proto__") {
1073
1083
  Object.defineProperty(self, key, {
@@ -1088,7 +1098,7 @@ function assignProperties(self, source) {
1088
1098
  }
1089
1099
  }
1090
1100
 
1091
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/core.js
1101
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/core.js
1092
1102
  var EffectTypeId = `~effect/Effect`;
1093
1103
  var ExitTypeId = `~effect/Exit`;
1094
1104
  var effectVariance = {
@@ -1431,13 +1441,13 @@ var done = (value3) => {
1431
1441
  return exitFail(Done(value3));
1432
1442
  };
1433
1443
 
1434
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Effectable.js
1444
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effectable.js
1435
1445
  var Prototype2 = (options) => makePrimitiveProto({
1436
1446
  op: options.label,
1437
1447
  [evaluate]: options.evaluate
1438
1448
  });
1439
1449
 
1440
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Equivalence.js
1450
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equivalence.js
1441
1451
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1442
1452
  var isStrictEquivalent = (x, y) => x === y;
1443
1453
  var strictEqual = () => isStrictEquivalent;
@@ -1464,7 +1474,7 @@ function Array_(item) {
1464
1474
  });
1465
1475
  }
1466
1476
 
1467
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/doNotation.js
1477
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/doNotation.js
1468
1478
  var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
1469
1479
  ...a,
1470
1480
  [name]: f2(a)
@@ -1477,7 +1487,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
1477
1487
  [name]: b2
1478
1488
  }))));
1479
1489
 
1480
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/option.js
1490
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/option.js
1481
1491
  var TypeId = "~effect/data/Option";
1482
1492
  var CommonProto = {
1483
1493
  [TypeId]: {
@@ -1543,7 +1553,7 @@ var some = (value3) => {
1543
1553
  return a;
1544
1554
  };
1545
1555
 
1546
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/result.js
1556
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/result.js
1547
1557
  var TypeId2 = "~effect/data/Result";
1548
1558
  var CommonProto2 = {
1549
1559
  [TypeId2]: {
@@ -1610,7 +1620,7 @@ var succeed = (success) => {
1610
1620
  return a;
1611
1621
  };
1612
1622
 
1613
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Order.js
1623
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Order.js
1614
1624
  function make2(compare) {
1615
1625
  return (self, that) => self === that ? 0 : compare(self, that);
1616
1626
  }
@@ -1624,7 +1634,7 @@ var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b
1624
1634
  var Date2 = /* @__PURE__ */ mapInput(Number2, (date6) => date6.getTime());
1625
1635
  var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
1626
1636
 
1627
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Option.js
1637
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Option.js
1628
1638
  var none2 = () => none;
1629
1639
  var some2 = some;
1630
1640
  var isOption2 = isOption;
@@ -1644,7 +1654,7 @@ var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2(
1644
1654
  var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
1645
1655
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
1646
1656
 
1647
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Context.js
1657
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Context.js
1648
1658
  var ServiceTypeId = "~effect/Context/Service";
1649
1659
  var Service = function() {
1650
1660
  function KeyClass() {
@@ -1844,7 +1854,7 @@ var mergeAll = (...ctxs) => {
1844
1854
  };
1845
1855
  var Reference = Service;
1846
1856
 
1847
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Duration.js
1857
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Duration.js
1848
1858
  var TypeId4 = "~effect/time/Duration";
1849
1859
  var bigint0 = /* @__PURE__ */ BigInt(0);
1850
1860
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -1957,7 +1967,16 @@ var negativeInfinityDurationValue = {
1957
1967
  var DurationProto = {
1958
1968
  [TypeId4]: TypeId4,
1959
1969
  [symbol]() {
1960
- 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
+ }
1961
1980
  },
1962
1981
  [symbol2](that) {
1963
1982
  return isDuration(that) && equals2(this, that);
@@ -2103,10 +2122,10 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
2103
2122
  }));
2104
2123
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
2105
2124
 
2106
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/array.js
2125
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/array.js
2107
2126
  var isArrayNonEmpty = (self) => self.length > 0;
2108
2127
 
2109
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Result.js
2128
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Result.js
2110
2129
  var succeed2 = succeed;
2111
2130
  var fail2 = fail;
2112
2131
  var try_ = (evaluate2) => {
@@ -2131,10 +2150,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
2131
2150
  onSuccess
2132
2151
  }) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
2133
2152
 
2134
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Tuple.js
2153
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tuple.js
2135
2154
  var makeEquivalence = Tuple;
2136
2155
 
2137
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Iterable.js
2156
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Iterable.js
2138
2157
  var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
2139
2158
  let i = 0;
2140
2159
  for (const a of self) {
@@ -2177,7 +2196,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
2177
2196
  }
2178
2197
  }));
2179
2198
 
2180
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Record.js
2199
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Record.js
2181
2200
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
2182
2201
  var map2 = /* @__PURE__ */ dual(2, (self, f2) => {
2183
2202
  const out = {
@@ -2202,7 +2221,7 @@ var makeEquivalence2 = (equivalence) => {
2202
2221
  return (self, that) => is4(self, that) && is4(that, self);
2203
2222
  };
2204
2223
 
2205
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Array.js
2224
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Array.js
2206
2225
  var Array2 = globalThis.Array;
2207
2226
  var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
2208
2227
  var ensure = (self) => Array2.isArray(self) ? self : [self];
@@ -2299,7 +2318,7 @@ var dedupe = (self) => {
2299
2318
  return out;
2300
2319
  };
2301
2320
 
2302
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Filter.js
2321
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Filter.js
2303
2322
  var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2304
2323
  const leftOut = left(input);
2305
2324
  if (isFailure2(leftOut)) return fail2(input);
@@ -2308,7 +2327,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2308
2327
  return rightOut;
2309
2328
  });
2310
2329
 
2311
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Scheduler.js
2330
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scheduler.js
2312
2331
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
2313
2332
  fiberCached: true,
2314
2333
  defaultValue: () => new MixedScheduler()
@@ -2322,7 +2341,7 @@ var setImmediate = "setImmediate" in globalThis ? (f2) => {
2322
2341
  };
2323
2342
  var setMicrotask = (f2) => {
2324
2343
  let cancelled = false;
2325
- queueMicrotask(() => {
2344
+ Promise.resolve().then(() => {
2326
2345
  if (!cancelled) f2();
2327
2346
  });
2328
2347
  return () => {
@@ -2445,7 +2464,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
2445
2464
  defaultValue: () => false
2446
2465
  });
2447
2466
 
2448
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Tracer.js
2467
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tracer.js
2449
2468
  var ParentSpanKey = "effect/Tracer/ParentSpan";
2450
2469
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
2451
2470
  fiberCached: true
@@ -2528,10 +2547,10 @@ var randomHexString = /* @__PURE__ */ (function() {
2528
2547
  };
2529
2548
  })();
2530
2549
 
2531
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/metric.js
2550
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/metric.js
2532
2551
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
2533
2552
 
2534
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/references.js
2553
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/references.js
2535
2554
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
2536
2555
  defaultValue: () => /* @__PURE__ */ new Set()
2537
2556
  });
@@ -2566,7 +2585,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
2566
2585
  defaultValue: () => []
2567
2586
  });
2568
2587
 
2569
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/stackTraceLimit.js
2588
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/stackTraceLimit.js
2570
2589
  var isStackTraceLimitWritable = () => {
2571
2590
  const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
2572
2591
  if (desc === void 0) {
@@ -2582,7 +2601,7 @@ var setStackTraceLimit = (value3) => {
2582
2601
  }
2583
2602
  };
2584
2603
 
2585
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/tracer.js
2604
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/tracer.js
2586
2605
  var addSpanStackTrace = (options) => {
2587
2606
  if (options?.captureStackTrace === false) {
2588
2607
  return options;
@@ -2613,7 +2632,7 @@ var makeStackCleaner = (line) => (stack) => {
2613
2632
  };
2614
2633
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
2615
2634
 
2616
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/effect.js
2635
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/effect.js
2617
2636
  var Interrupt = class extends ReasonBase {
2618
2637
  fiberId;
2619
2638
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -3499,6 +3518,7 @@ var catchEager = /* @__PURE__ */ dual(2, (self, f2) => {
3499
3518
  });
3500
3519
  var exitInterrupt = (fiberId3) => exitFailCause(causeInterrupt(fiberId3));
3501
3520
  var exitIsSuccess = (self) => self._tag === "Success";
3521
+ var exitIsFailure = (self) => self._tag === "Failure";
3502
3522
  var exitFilterCause = (self) => self._tag === "Failure" ? succeed2(self.cause) : fail2(self);
3503
3523
  var exitVoid = /* @__PURE__ */ exitSucceed(void 0);
3504
3524
  var exitMap = /* @__PURE__ */ dual(2, (self, f2) => self._tag === "Success" ? exitSucceed(f2(self.value)) : self);
@@ -4722,10 +4742,8 @@ var useSpan = (name, ...args2) => {
4722
4742
  return withFiber((fiber3) => {
4723
4743
  const span = makeSpanUnsafe(fiber3, name, options);
4724
4744
  const clock = fiber3.getRef(ClockRef);
4725
- return onExit(internalCall(() => evaluate2(span)), (exit3) => sync(() => {
4726
- if (span.status._tag === "Ended") return;
4727
- span.end(clock.currentTimeNanosUnsafe(), exit3);
4728
- }));
4745
+ const timingEnabled = fiber3.getRef(TracerTimingEnabled);
4746
+ return onExit(internalCall(() => evaluate2(span)), (exit3) => endSpan(span, exit3, clock, timingEnabled));
4729
4747
  });
4730
4748
  };
4731
4749
  var provideParentSpan = /* @__PURE__ */ provideService(ParentSpan);
@@ -5073,14 +5091,15 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
5073
5091
  reporters.forEach((reporter) => reporter.report(opts));
5074
5092
  };
5075
5093
 
5076
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Exit.js
5094
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Exit.js
5077
5095
  var succeed4 = exitSucceed;
5078
5096
  var failCause2 = exitFailCause;
5079
5097
  var fail4 = exitFail;
5080
5098
  var void_2 = exitVoid;
5081
5099
  var isSuccess4 = exitIsSuccess;
5100
+ var isFailure4 = exitIsFailure;
5082
5101
 
5083
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Deferred.js
5102
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Deferred.js
5084
5103
  var TypeId5 = "~effect/Deferred";
5085
5104
  var DeferredProto = {
5086
5105
  [TypeId5]: {
@@ -5102,8 +5121,10 @@ var _await = (self) => callback((resume) => {
5102
5121
  self.resumes ??= [];
5103
5122
  self.resumes.push(resume);
5104
5123
  return sync(() => {
5105
- const index = self.resumes.indexOf(resume);
5106
- 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);
5107
5128
  });
5108
5129
  });
5109
5130
  var completeWith = /* @__PURE__ */ dual(2, (self, effect2) => sync(() => doneUnsafe(self, effect2)));
@@ -5122,12 +5143,12 @@ var doneUnsafe = (self, effect2) => {
5122
5143
  return true;
5123
5144
  };
5124
5145
 
5125
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/References.js
5146
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/References.js
5126
5147
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
5127
5148
  var CurrentLogSpans2 = CurrentLogSpans;
5128
5149
  var MinimumLogLevel2 = MinimumLogLevel;
5129
5150
 
5130
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Scope.js
5151
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scope.js
5131
5152
  var Scope = scopeTag;
5132
5153
  var makeUnsafe3 = scopeMakeUnsafe;
5133
5154
  var provide = provideScope;
@@ -5136,7 +5157,7 @@ var addFinalizer2 = scopeAddFinalizer;
5136
5157
  var forkUnsafe2 = scopeForkUnsafe;
5137
5158
  var close = scopeClose;
5138
5159
 
5139
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Layer.js
5160
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Layer.js
5140
5161
  var TypeId6 = "~effect/Layer";
5141
5162
  var MemoMapTypeId = "~effect/Layer/MemoMap";
5142
5163
  var memoMapReuse = (entry, scope3) => {
@@ -5254,7 +5275,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
5254
5275
  })
5255
5276
  });
5256
5277
 
5257
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Cause.js
5278
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Cause.js
5258
5279
  var isFailReason2 = isFailReason;
5259
5280
  var fail5 = causeFail;
5260
5281
  var hasInterruptsOnly2 = hasInterruptsOnly;
@@ -5267,7 +5288,7 @@ var Done2 = Done;
5267
5288
  var done3 = done;
5268
5289
  var UnknownError2 = UnknownError;
5269
5290
 
5270
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Data.js
5291
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Data.js
5271
5292
  var taggedEnum = () => new Proxy({}, {
5272
5293
  get(_target, tag2, _receiver) {
5273
5294
  if (tag2 === "$is") {
@@ -5300,7 +5321,7 @@ var round = /* @__PURE__ */ dual(2, (self, precision) => {
5300
5321
  return Math.round(self * factor) / factor;
5301
5322
  });
5302
5323
 
5303
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Pull.js
5324
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Pull.js
5304
5325
  var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
5305
5326
  var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
5306
5327
  var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
@@ -5318,7 +5339,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5318
5339
  }
5319
5340
  }));
5320
5341
 
5321
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Schedule.js
5342
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schedule.js
5322
5343
  var TypeId8 = "~effect/Schedule";
5323
5344
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
5324
5345
  defaultValue: /* @__PURE__ */ constant({
@@ -5410,11 +5431,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(s
5410
5431
  })));
5411
5432
  var forever2 = /* @__PURE__ */ spaced(zero);
5412
5433
 
5413
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/layer.js
5434
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/layer.js
5414
5435
  var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
5415
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));
5416
5437
 
5417
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/schedule.js
5438
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schedule.js
5418
5439
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse4) => flatMap2(toStepWithMetadata(schedule3), (step) => {
5419
5440
  let meta = CurrentMetadata2.defaultValue();
5420
5441
  return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
@@ -5485,10 +5506,11 @@ var buildFromOptions = (options) => {
5485
5506
  return schedule3;
5486
5507
  };
5487
5508
 
5488
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/executionPlan.js
5509
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/executionPlan.js
5489
5510
  var makeEventEmitter = (onEvent, currentMetadata) => {
5490
5511
  let lastStepIndex = -1;
5491
5512
  let stepAttempt = 0;
5513
+ const emit = (event) => ignoreCause(onEvent(event));
5492
5514
  return {
5493
5515
  begin: clockWith((clock) => suspend(() => {
5494
5516
  const meta = currentMetadata();
@@ -5503,7 +5525,7 @@ var makeEventEmitter = (onEvent, currentMetadata) => {
5503
5525
  stepIndex: meta.stepIndex,
5504
5526
  startNanos: clock.monotonicTimeNanosUnsafe()
5505
5527
  };
5506
- return as(onEvent({
5528
+ return as(emit({
5507
5529
  _tag: "AttemptStart",
5508
5530
  attempt: state.attempt,
5509
5531
  stepAttempt: state.stepAttempt,
@@ -5512,7 +5534,7 @@ var makeEventEmitter = (onEvent, currentMetadata) => {
5512
5534
  })),
5513
5535
  end: (state, exit3) => clockWith((clock) => {
5514
5536
  const duration = nanos(clock.monotonicTimeNanosUnsafe() - state.startNanos);
5515
- return onEvent(exit3._tag === "Success" ? {
5537
+ return emit(exit3._tag === "Success" ? {
5516
5538
  _tag: "AttemptSuccess",
5517
5539
  attempt: state.attempt,
5518
5540
  stepAttempt: state.stepAttempt,
@@ -5590,7 +5612,7 @@ var scheduleFromStep = (step, first) => {
5590
5612
  var scheduleOnce = /* @__PURE__ */ recurs(1);
5591
5613
  var makeEntry = (options) => options;
5592
5614
 
5593
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/request.js
5615
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/request.js
5594
5616
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
5595
5617
  const withResolver = (resolver2) => callback((resume) => {
5596
5618
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -5701,7 +5723,7 @@ function runBatch(batch) {
5701
5723
  }
5702
5724
  var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
5703
5725
 
5704
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Effect.js
5726
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effect.js
5705
5727
  var TypeId11 = EffectTypeId;
5706
5728
  var isEffect2 = isEffect;
5707
5729
  var all2 = all;
@@ -5812,7 +5834,7 @@ var matchCauseEager2 = matchCauseEager;
5812
5834
  var matchCauseEffectEager2 = matchCauseEffectEager;
5813
5835
  var matchCauseEffect2 = matchCauseEffect;
5814
5836
  var matchEffect3 = matchEffect;
5815
- var isFailure4 = isFailure3;
5837
+ var isFailure5 = isFailure3;
5816
5838
  var isSuccess5 = isSuccess3;
5817
5839
  var context2 = context;
5818
5840
  var contextWith2 = contextWith;
@@ -6056,7 +6078,7 @@ var flatMapEager2 = flatMapEager;
6056
6078
  var catchEager2 = catchEager;
6057
6079
  var fnUntracedEager2 = fnUntracedEager;
6058
6080
 
6059
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/FileSystem.js
6081
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/FileSystem.js
6060
6082
  var FileSystem_exports = {};
6061
6083
  __export(FileSystem_exports, {
6062
6084
  FileSystem: () => FileSystem,
@@ -6074,7 +6096,7 @@ __export(FileSystem_exports, {
6074
6096
  makeNoop: () => makeNoop
6075
6097
  });
6076
6098
 
6077
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/PlatformError.js
6099
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/PlatformError.js
6078
6100
  var TypeId12 = "~effect/platform/PlatformError";
6079
6101
  var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
6080
6102
  /**
@@ -6134,14 +6156,14 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
6134
6156
  var systemError = (options) => new PlatformError(new SystemError(options));
6135
6157
  var badArgument = (options) => new PlatformError(new BadArgument(options));
6136
6158
 
6137
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Fiber.js
6159
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Fiber.js
6138
6160
  var interrupt3 = fiberInterrupt;
6139
6161
  var runIn = fiberRunIn;
6140
6162
 
6141
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Latch.js
6163
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Latch.js
6142
6164
  var makeUnsafe4 = makeLatchUnsafe;
6143
6165
 
6144
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/MutableRef.js
6166
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/MutableRef.js
6145
6167
  var TypeId13 = "~effect/MutableRef";
6146
6168
  var MutableRefProto = {
6147
6169
  [TypeId13]: TypeId13,
@@ -6159,7 +6181,7 @@ var make6 = (value3) => {
6159
6181
  return ref;
6160
6182
  };
6161
6183
 
6162
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/MutableList.js
6184
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/MutableList.js
6163
6185
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
6164
6186
  var make7 = () => ({
6165
6187
  head: void 0,
@@ -6230,7 +6252,7 @@ var take = (self) => {
6230
6252
  return message;
6231
6253
  };
6232
6254
 
6233
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Queue.js
6255
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Queue.js
6234
6256
  var TypeId14 = "~effect/Queue";
6235
6257
  var EnqueueTypeId = "~effect/Queue/Enqueue";
6236
6258
  var DequeueTypeId = "~effect/Queue/Dequeue";
@@ -6504,7 +6526,7 @@ var finalize = (self, exit3) => {
6504
6526
  openState.awaiters.clear();
6505
6527
  };
6506
6528
 
6507
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Semaphore.js
6529
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Semaphore.js
6508
6530
  var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
6509
6531
  var waitForPermits = (self, n, effect2) => callback((resume) => {
6510
6532
  if (self.free >= n) return resume(effect2);
@@ -6600,7 +6622,7 @@ var SemaphoreImpl = class {
6600
6622
  }
6601
6623
  };
6602
6624
 
6603
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Channel.js
6625
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Channel.js
6604
6626
  var TypeId15 = "~effect/Channel";
6605
6627
  var isChannel = (u2) => hasProperty(u2, TypeId15);
6606
6628
  var ChannelProto = {
@@ -6805,7 +6827,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
6805
6827
  }));
6806
6828
  var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
6807
6829
 
6808
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/stream.js
6830
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/stream.js
6809
6831
  var TypeId16 = "~effect/Stream";
6810
6832
  var streamVariance = {
6811
6833
  _R: identity,
@@ -6824,7 +6846,7 @@ var fromChannel = (channel) => {
6824
6846
  return self;
6825
6847
  };
6826
6848
 
6827
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Sink.js
6849
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Sink.js
6828
6850
  var TypeId17 = "~effect/Sink";
6829
6851
  var endVoid = /* @__PURE__ */ succeed6([void 0]);
6830
6852
  var sinkVariance = {
@@ -6863,7 +6885,7 @@ var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f
6863
6885
  }), catchDone(() => endVoid)));
6864
6886
  var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
6865
6887
 
6866
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/rcRef.js
6888
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/rcRef.js
6867
6889
  var TypeId18 = "~effect/RcRef";
6868
6890
  var stateEmpty = {
6869
6891
  _tag: "Empty"
@@ -6903,7 +6925,7 @@ var make9 = (options) => withFiber2((fiber3) => {
6903
6925
  return close3;
6904
6926
  }), ref);
6905
6927
  });
6906
- var getState = (self) => uninterruptibleMask2((restore) => {
6928
+ var getState = (self) => uninterruptibleMask2(function loop(restore) {
6907
6929
  switch (self.state._tag) {
6908
6930
  case "Closed": {
6909
6931
  return interrupt2;
@@ -6914,18 +6936,23 @@ var getState = (self) => uninterruptibleMask2((restore) => {
6914
6936
  }
6915
6937
  case "Empty": {
6916
6938
  const scope3 = makeUnsafe3();
6917
- return self.semaphore.withPermits(1)(restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map6((value3) => {
6918
- const state = {
6919
- _tag: "Acquired",
6920
- value: value3,
6921
- scope: scope3,
6922
- fiber: void 0,
6923
- refCount: 1,
6924
- invalidated: false
6925
- };
6926
- self.state = state;
6927
- return state;
6928
- })));
6939
+ return self.semaphore.withPermit(suspend2(() => {
6940
+ if (self.state._tag !== "Empty") {
6941
+ return loop(restore);
6942
+ }
6943
+ return restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map6((value3) => {
6944
+ const state = {
6945
+ _tag: "Acquired",
6946
+ value: value3,
6947
+ scope: scope3,
6948
+ fiber: void 0,
6949
+ refCount: 1,
6950
+ invalidated: false
6951
+ };
6952
+ self.state = state;
6953
+ return state;
6954
+ }), onExit2((exit3) => isFailure4(exit3) ? close(scope3, exit3) : void_3));
6955
+ }));
6929
6956
  }
6930
6957
  }
6931
6958
  });
@@ -6961,11 +6988,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
6961
6988
  return state.value;
6962
6989
  });
6963
6990
 
6964
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/RcRef.js
6991
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/RcRef.js
6965
6992
  var make10 = make9;
6966
6993
  var get3 = get2;
6967
6994
 
6968
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Stream.js
6995
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Stream.js
6969
6996
  var TypeId19 = "~effect/Stream";
6970
6997
  var isStream = (u2) => hasProperty(u2, TypeId19);
6971
6998
  var fromChannel3 = fromChannel;
@@ -7056,7 +7083,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
7056
7083
  });
7057
7084
  var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map6(context2(), (context3) => toReadableStreamWith(self, context3, options)));
7058
7085
 
7059
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/FileSystem.js
7086
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/FileSystem.js
7060
7087
  var TypeId20 = "~effect/platform/FileSystem";
7061
7088
  var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
7062
7089
  var KiB = (n) => Size(n * 1024);
@@ -7225,7 +7252,7 @@ var isFile = (u2) => hasProperty(u2, FileTypeId);
7225
7252
  var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
7226
7253
  };
7227
7254
 
7228
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Logger.js
7255
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Logger.js
7229
7256
  var CurrentLoggers2 = CurrentLoggers;
7230
7257
  var make12 = loggerMake;
7231
7258
  var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
@@ -7236,24 +7263,20 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
7236
7263
  return currentLoggers;
7237
7264
  })));
7238
7265
 
7239
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
7240
7267
  function resolve(ast) {
7241
7268
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
7242
7269
  }
7243
- function resolveAt(key) {
7244
- return (ast) => resolve(ast)?.[key];
7245
- }
7246
7270
  var STRUCTURAL_ANNOTATION_KEY = "~structural";
7247
7271
  var SENTINELS_ANNOTATION_KEY = "~sentinels";
7248
7272
  var CONSTRUCTOR_ANNOTATION_KEY = "~constructor";
7249
- var resolveIdentifier = /* @__PURE__ */ resolveAt("identifier");
7250
7273
  var getExpected = /* @__PURE__ */ memoize((ast) => {
7251
- const identifier2 = resolveIdentifier(ast);
7274
+ const identifier2 = resolve(ast)?.identifier;
7252
7275
  if (typeof identifier2 === "string") return identifier2;
7253
7276
  return ast.getExpected(getExpected);
7254
7277
  });
7255
7278
 
7256
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
7257
7280
  var missing = /* @__PURE__ */ Symbol();
7258
7281
  var succeed8 = succeed4;
7259
7282
  var missingExit = /* @__PURE__ */ succeed8(missing);
@@ -7261,7 +7284,7 @@ var sameExit = /* @__PURE__ */ succeed8(missing);
7261
7284
  var toOption = (value3) => value3 === missing ? none2() : some2(value3);
7262
7285
  var fromOptionExit = (option4) => option4._tag === "None" ? missingExit : succeed8(option4.value);
7263
7286
 
7264
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaIssue.js
7287
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaIssue.js
7265
7288
  var TypeId21 = "~effect/SchemaIssue/Issue";
7266
7289
  function isIssue(u2) {
7267
7290
  return hasProperty(u2, TypeId21) && u2[TypeId21] === TypeId21;
@@ -7487,47 +7510,6 @@ function getExpectedMessage(expected, issue) {
7487
7510
  const input = formatInput(issue);
7488
7511
  return input === void 0 ? `Expected ${expected}` : `Expected ${expected}, got ${input}`;
7489
7512
  }
7490
- function toDefaultIssues(issue, path5, leafHook, checkHook) {
7491
- switch (issue._tag) {
7492
- case "Filter": {
7493
- const message = checkHook(issue);
7494
- if (message !== void 0) {
7495
- return [{
7496
- path: path5,
7497
- message
7498
- }];
7499
- }
7500
- if (issue.issue._tag !== "InvalidValue") {
7501
- return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
7502
- }
7503
- const expected = findExpected(issue.issue);
7504
- return [{
7505
- path: path5,
7506
- message: expected === void 0 ? getExpectedMessage(formatCheck(issue.filter), issue) : getExpectedMessage(expected, issue.issue)
7507
- }];
7508
- }
7509
- case "Encoding":
7510
- return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
7511
- case "Pointer":
7512
- return toDefaultIssues(issue.issue, [...path5, ...issue.path], leafHook, checkHook);
7513
- case "Composite":
7514
- return issue.issues.flatMap((issue2) => toDefaultIssues(issue2, path5, leafHook, checkHook));
7515
- case "AnyOf": {
7516
- if (issue.issues.length === 0) {
7517
- return [{
7518
- path: path5,
7519
- message: findMessage(issue) ?? getExpectedMessage(getExpected(issue.ast), issue)
7520
- }];
7521
- }
7522
- return issue.issues.flatMap((issue2) => toDefaultIssues(issue2, path5, leafHook, checkHook));
7523
- }
7524
- default:
7525
- return [{
7526
- path: path5,
7527
- message: leafHook(issue)
7528
- }];
7529
- }
7530
- }
7531
7513
  function formatCheck(check) {
7532
7514
  const expected = check.annotations?.expected;
7533
7515
  if (typeof expected === "string") return expected;
@@ -7539,44 +7521,53 @@ function formatCheck(check) {
7539
7521
  }
7540
7522
  }
7541
7523
  function makeFormatterDefault() {
7542
- return (issue) => toDefaultIssues(issue, [], defaultLeafHook, defaultCheckHook).map(formatDefaultIssue).join("\n");
7524
+ return (issue) => formatIssue(issue, "");
7543
7525
  }
7544
7526
  var defaultFormatter = /* @__PURE__ */ makeFormatterDefault();
7545
- function formatDefaultIssue(issue) {
7546
- let out = issue.message;
7547
- if (issue.path && issue.path.length > 0) {
7548
- const path5 = formatPath(issue.path);
7549
- out += `
7550
- at ${path5}`;
7551
- }
7552
- return out;
7553
- }
7554
- function findMessage(issue) {
7527
+ function formatIssue(issue, path5) {
7528
+ let message;
7555
7529
  switch (issue._tag) {
7556
- case "InvalidType":
7557
- case "OneOf":
7558
- case "Composite":
7559
- case "AnyOf":
7560
- return getMessageAnnotation(issue.ast.annotations);
7561
- case "InvalidValue":
7562
- case "Forbidden":
7563
- return getMessageAnnotation(issue.annotations);
7564
- case "MissingKey":
7565
- return getMessageAnnotation(issue.annotations, "messageMissingKey");
7566
- case "UnexpectedKey":
7567
- return getMessageAnnotation(issue.ast.annotations, "messageUnexpectedKey");
7568
- case "Filter":
7569
- 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
+ }
7570
7543
  case "Encoding":
7571
- 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;
7572
7558
  }
7559
+ return path5 ? `${message}
7560
+ at ${path5}` : message;
7573
7561
  }
7574
- function getMessageAnnotation(annotations, type = "message") {
7575
- 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"];
7576
7567
  if (typeof message === "string") return message;
7577
7568
  }
7578
7569
 
7579
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
7580
7571
  function getSchemaIssue(cause) {
7581
7572
  let issue;
7582
7573
  for (const reason of cause.reasons) {
@@ -7597,7 +7588,7 @@ function getSchemaIssueOrThrow(cause, message) {
7597
7588
  return issue;
7598
7589
  }
7599
7590
 
7600
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaGetter.js
7591
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaGetter.js
7601
7592
  var Getter = class _Getter extends Class {
7602
7593
  run;
7603
7594
  constructor(run6) {
@@ -7646,7 +7637,7 @@ function Date3() {
7646
7637
  return transform((u2) => new globalThis.Date(u2));
7647
7638
  }
7648
7639
 
7649
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaTransformation.js
7640
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaTransformation.js
7650
7641
  var TypeId22 = "~effect/SchemaTransformation/Transformation";
7651
7642
  var Transformation = class _Transformation {
7652
7643
  [TypeId22] = TypeId22;
@@ -7735,7 +7726,7 @@ var defectFromJson = (options) => transform2({
7735
7726
  encode: makeEncodeDefect(options)
7736
7727
  });
7737
7728
 
7738
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaAST.js
7729
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaAST.js
7739
7730
  function makeGuard(tag2) {
7740
7731
  return (ast) => ast._tag === tag2;
7741
7732
  }
@@ -7745,7 +7736,6 @@ var isLiteral = /* @__PURE__ */ makeGuard("Literal");
7745
7736
  var isUniqueSymbol = /* @__PURE__ */ makeGuard("UniqueSymbol");
7746
7737
  var isArrays = /* @__PURE__ */ makeGuard("Arrays");
7747
7738
  var isObjects = /* @__PURE__ */ makeGuard("Objects");
7748
- var isUnion = /* @__PURE__ */ makeGuard("Union");
7749
7739
  var isSuspend = /* @__PURE__ */ makeGuard("Suspend");
7750
7740
  var Link = class {
7751
7741
  to;
@@ -8437,7 +8427,7 @@ function getAST(self) {
8437
8427
  function union2(members, mode, checks) {
8438
8428
  return new Union(members.map(getAST), mode, void 0, checks);
8439
8429
  }
8440
- var toCandidate = /* @__PURE__ */ memoize((ast) => {
8430
+ var toCandidate = /* @__PURE__ */ memoizeIdempotent((ast) => {
8441
8431
  while (true) {
8442
8432
  if (isSuspend(ast)) return unknown;
8443
8433
  const encoding = ast.encoding;
@@ -8527,6 +8517,11 @@ function collectSentinels(ast) {
8527
8517
  }
8528
8518
  return [];
8529
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
+ }
8530
8525
  case "Suspend":
8531
8526
  return collectSentinels(ast.thunk());
8532
8527
  }
@@ -8534,15 +8529,18 @@ function collectSentinels(ast) {
8534
8529
  var candidateIndexCache = /* @__PURE__ */ new WeakMap();
8535
8530
  var emptyCandidates = /* @__PURE__ */ Object.freeze([]);
8536
8531
  function getIndex(types) {
8537
- let idx = candidateIndexCache.get(types);
8538
- if (idx) return idx;
8539
- idx = {};
8532
+ let index = candidateIndexCache.get(types);
8533
+ if (index) return index;
8534
+ let bySentinel;
8535
+ let sentinelCandidateCount = 0;
8536
+ let otherwise;
8540
8537
  let literalCandidates;
8538
+ let onlyLiterals = true;
8541
8539
  for (let i = 0; i < types.length; i++) {
8542
8540
  const a = types[i];
8543
8541
  const encoded = toCandidate(a);
8544
8542
  if (isNever2(encoded)) continue;
8545
- if (literalCandidates !== null) {
8543
+ if (onlyLiterals) {
8546
8544
  if (isLiteral(encoded) || isUniqueSymbol(encoded)) {
8547
8545
  literalCandidates ??= /* @__PURE__ */ new Map();
8548
8546
  const literal = isLiteral(encoded) ? encoded.literal : encoded.symbol;
@@ -8550,49 +8548,106 @@ function getIndex(types) {
8550
8548
  if (!arr) literalCandidates.set(literal, arr = []);
8551
8549
  arr.push(a);
8552
8550
  } else {
8553
- literalCandidates = null;
8551
+ onlyLiterals = false;
8554
8552
  }
8555
8553
  }
8556
8554
  const sentinels = collectSentinels(encoded);
8557
8555
  if (sentinels.length) {
8558
- idx.bySentinel ??= /* @__PURE__ */ new Map();
8556
+ bySentinel ??= /* @__PURE__ */ new Map();
8557
+ sentinelCandidateCount++;
8559
8558
  for (const {
8560
8559
  key,
8561
8560
  literal
8562
8561
  } of sentinels) {
8563
- let m2 = idx.bySentinel.get(key);
8564
- if (!m2) idx.bySentinel.set(key, m2 = /* @__PURE__ */ new Map());
8565
- let arr = m2.get(literal);
8566
- if (!arr) m2.set(literal, arr = []);
8567
- 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);
8568
8568
  }
8569
8569
  } else {
8570
- idx.otherwise ??= {};
8570
+ otherwise ??= {};
8571
8571
  const candidateTypes = getCandidateTypes(encoded);
8572
- for (const t of candidateTypes) (idx.otherwise[t] ??= []).push(i);
8572
+ for (const t of candidateTypes) (otherwise[t] ??= []).push(i);
8573
8573
  }
8574
8574
  }
8575
- if (literalCandidates) {
8575
+ if (onlyLiterals && literalCandidates) {
8576
8576
  literalCandidates.forEach(Object.freeze);
8577
- idx = (input) => literalCandidates.get(input) ?? emptyCandidates;
8578
- } else if (idx.bySentinel?.size === 1 && !idx.otherwise) {
8579
- for (const [key, byValue] of idx.bySentinel) {
8580
- const candidates = byValue;
8581
- for (const [literal, indexes] of byValue) {
8582
- candidates.set(literal, Object.freeze(indexes.map((index) => types[index])));
8583
- }
8584
- idx = (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
- };
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
+ }
8592
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
+ };
8593
8648
  }
8594
- candidateIndexCache.set(types, idx);
8595
- return idx;
8649
+ candidateIndexCache.set(types, index);
8650
+ return index;
8596
8651
  }
8597
8652
  function filterLiterals(input) {
8598
8653
  return (ast) => {
@@ -8601,31 +8656,7 @@ function filterLiterals(input) {
8601
8656
  };
8602
8657
  }
8603
8658
  function getCandidates(input, types, isConstructor = false) {
8604
- const idx = getIndex(types);
8605
- if (typeof idx === "function") return idx(input, isConstructor);
8606
- const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
8607
- if (idx.bySentinel) {
8608
- const base = idx.otherwise?.[runtimeType] ?? emptyCandidates;
8609
- if (isObjectKeyword(input)) {
8610
- const selected = new Set(base);
8611
- for (const [k2, m2] of idx.bySentinel) {
8612
- const value3 = Object.hasOwn(input, k2) ? input[k2] : void 0;
8613
- if (value3 !== void 0) {
8614
- const match7 = m2.get(value3);
8615
- if (match7) {
8616
- for (const candidate of match7) selected.add(candidate);
8617
- }
8618
- } else if (isConstructor) {
8619
- for (const indexes of m2.values()) {
8620
- for (const candidate of indexes) selected.add(candidate);
8621
- }
8622
- }
8623
- }
8624
- return Array.from(selected).sort((a, b2) => a - b2).map((i) => types[i]);
8625
- }
8626
- return base.map((i) => types[i]);
8627
- }
8628
- return (idx.otherwise?.[runtimeType] ?? emptyCandidates).map((i) => types[i]).filter(filterLiterals(input));
8659
+ return getIndex(types)(input, isConstructor);
8629
8660
  }
8630
8661
  var Union = class _Union extends Base2 {
8631
8662
  _tag = "Union";
@@ -8866,6 +8897,10 @@ function modifyOwnPropertyDescriptors(ast, f2) {
8866
8897
  f2(d);
8867
8898
  return Object.create(Object.getPrototypeOf(ast), d);
8868
8899
  }
8900
+ var contextOwners = /* @__PURE__ */ new WeakMap();
8901
+ function getContextOwner(ast) {
8902
+ return contextOwners.get(ast) ?? ast;
8903
+ }
8869
8904
  function replaceEncoding(ast, encoding) {
8870
8905
  if (ast.encoding === encoding) {
8871
8906
  return ast;
@@ -8878,9 +8913,15 @@ function replaceContext(ast, context3) {
8878
8913
  if (ast.context === context3) {
8879
8914
  return ast;
8880
8915
  }
8881
- return modifyOwnPropertyDescriptors(ast, (d) => {
8916
+ const owner = getContextOwner(ast);
8917
+ if (owner.context === context3) {
8918
+ return owner;
8919
+ }
8920
+ const out = modifyOwnPropertyDescriptors(ast, (d) => {
8882
8921
  d.context.value = context3;
8883
8922
  });
8923
+ contextOwners.set(out, owner);
8924
+ return out;
8884
8925
  }
8885
8926
  function annotate(ast, annotations) {
8886
8927
  if (ast.checks) {
@@ -8924,11 +8965,15 @@ function applyToLastLink(f2) {
8924
8965
  function replaceContextLastLink(ast, context3) {
8925
8966
  return applyToLastLink((ast2) => replaceContext(ast2, context3))(ast);
8926
8967
  }
8927
- function applyToSelfOrLastLinkEncoding(f2) {
8968
+ function applyToSelfOrLastLinkEncodingIdempotent(f2, options) {
8928
8969
  function out(ast) {
8929
- return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f2(ast);
8970
+ if (ast.encoding) {
8971
+ const last = ast.encoding[ast.encoding.length - 1];
8972
+ return options?.stopAt?.(last) ? ast : replaceEncoding(ast, updateLastLink(ast.encoding, out));
8973
+ }
8974
+ return f2(ast);
8930
8975
  }
8931
- return memoize(out);
8976
+ return memoizeIdempotent(out);
8932
8977
  }
8933
8978
  function appendTransformation(from, transformation, to2) {
8934
8979
  const link4 = new Link(from, transformation);
@@ -8954,11 +8999,12 @@ function annotateKey(ast, annotations) {
8954
8999
  }) : new Context(false, false, void 0, annotations);
8955
9000
  return replaceContext(ast, context3);
8956
9001
  }
8957
- var optionalKeyLastLink = /* @__PURE__ */ applyToLastLink(optionalKey);
8958
- function optionalKey(ast) {
9002
+ var optionalKey = /* @__PURE__ */ memoizeIdempotent((ast) => {
8959
9003
  const context3 = ast.context ? ast.context.isOptional === false ? new Context(true, ast.context.isMutable, ast.context.constructorDefault, ast.context.annotations) : ast.context : new Context(true, false);
8960
9004
  return optionalKeyLastLink(replaceContext(ast, context3));
8961
- }
9005
+ });
9006
+ var optionalKeyLastLink = /* @__PURE__ */ applyToLastLink(optionalKey);
9007
+ var optional = /* @__PURE__ */ memoize((ast) => optionalKey(new Union([ast, undefined_3], "anyOf")));
8962
9008
  function withConstructorDefault(ast, defaultValue) {
8963
9009
  const transformation = new Transformation(withDefault(defaultValue), passthrough2());
8964
9010
  const constructorDefault = new Link(unknown, transformation);
@@ -8982,7 +9028,7 @@ function extractStructuralChecks(checks) {
8982
9028
  const out = checks.flatMap(extract);
8983
9029
  return isArrayNonEmpty2(out) ? out : void 0;
8984
9030
  }
8985
- var toType = /* @__PURE__ */ memoize((ast) => {
9031
+ var toType = /* @__PURE__ */ memoizeIdempotent((ast) => {
8986
9032
  if (ast.encoding) {
8987
9033
  return toType(replaceEncoding(ast, void 0));
8988
9034
  }
@@ -8998,7 +9044,7 @@ var toType = /* @__PURE__ */ memoize((ast) => {
8998
9044
  }
8999
9045
  return type;
9000
9046
  });
9001
- var toEncoded = /* @__PURE__ */ memoize((ast) => {
9047
+ var toEncoded = /* @__PURE__ */ memoizeIdempotent((ast) => {
9002
9048
  return toType(flip3(ast));
9003
9049
  });
9004
9050
  function flipEncoding(ast, encoding) {
@@ -9048,7 +9094,7 @@ function fromRefinement(ast, refinement) {
9048
9094
  return fail6(new InvalidType(ast, input, options));
9049
9095
  };
9050
9096
  }
9051
- var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
9097
+ var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
9052
9098
  switch (ast._tag) {
9053
9099
  default:
9054
9100
  return ast;
@@ -9058,7 +9104,7 @@ var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((as
9058
9104
  return ast.recur(parameterFromPropertyKey);
9059
9105
  }
9060
9106
  });
9061
- var parameterFromString = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
9107
+ var parameterFromString = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
9062
9108
  switch (ast._tag) {
9063
9109
  default:
9064
9110
  return ast;
@@ -9190,7 +9236,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options)
9190
9236
  });
9191
9237
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
9192
9238
 
9193
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaParser.js
9239
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaParser.js
9194
9240
  function makeEffect(schema) {
9195
9241
  const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
9196
9242
  return (input, options) => {
@@ -9282,8 +9328,8 @@ function compileConstructorDefault(ast) {
9282
9328
  function applyTransformation(result3, current, transformation, options) {
9283
9329
  let transformed;
9284
9330
  if (effectIsExit(result3) && result3._tag === "Success") {
9285
- const optional5 = toOption(result3 === sameExit ? current : result3[args]);
9286
- transformed = transformation._tag === "Transformation" ? transformation.decode.run(optional5, options) : transformation.decode(succeed8(optional5), options);
9331
+ const optional6 = toOption(result3 === sameExit ? current : result3[args]);
9332
+ transformed = transformation._tag === "Transformation" ? transformation.decode.run(optional6, options) : transformation.decode(succeed8(optional6), options);
9287
9333
  } else if (transformation._tag === "Transformation") {
9288
9334
  transformed = flatMapEager2(result3, (value3) => transformation.decode.run(toOption(value3), options));
9289
9335
  } else {
@@ -9401,7 +9447,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9401
9447
  };
9402
9448
  }
9403
9449
 
9404
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
9405
9451
  var TypeId24 = "~effect/Schema/Schema";
9406
9452
  var SchemaProto = {
9407
9453
  [TypeId24]: TypeId24,
@@ -9432,10 +9478,10 @@ function make15(ast, options) {
9432
9478
  return self;
9433
9479
  }
9434
9480
 
9435
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Struct.js
9481
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Struct.js
9436
9482
  var lambda = (f2) => f2;
9437
9483
 
9438
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/redacted.js
9484
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/redacted.js
9439
9485
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
9440
9486
  var value = (self) => {
9441
9487
  if (redactedRegistry.has(self)) {
@@ -9445,7 +9491,7 @@ var value = (self) => {
9445
9491
  }
9446
9492
  };
9447
9493
 
9448
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Redacted.js
9494
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redacted.js
9449
9495
  var TypeId25 = "~effect/data/Redacted";
9450
9496
  var isRedacted = (u2) => hasProperty(u2, TypeId25);
9451
9497
  var make16 = (value3, options) => {
@@ -9477,10 +9523,19 @@ var Proto3 = {
9477
9523
  };
9478
9524
  var value2 = value;
9479
9525
 
9480
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaError.js
9481
- 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";
9482
9537
  var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9483
- [TypeId26] = TypeId26;
9538
+ [SchemaErrorTypeId] = SchemaErrorTypeId;
9484
9539
  constructor(issue) {
9485
9540
  super({
9486
9541
  issue
@@ -9493,17 +9548,6 @@ var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9493
9548
  return `SchemaError(${this.message})`;
9494
9549
  }
9495
9550
  };
9496
-
9497
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Schema.js
9498
- var TypeId27 = TypeId24;
9499
- function declareConstructor() {
9500
- return (typeParameters, run6, annotations) => {
9501
- return make17(new Declaration(typeParameters.map(getAST), (typeParameters2) => run6(typeParameters2.map((ast) => make17(ast))), annotations));
9502
- };
9503
- }
9504
- function declare(is4, annotations) {
9505
- return declareConstructor()([], () => (input, ast, options) => is4(input) ? succeed6(input) : fail6(new InvalidType(ast, input, options)), annotations);
9506
- }
9507
9551
  var is2 = is;
9508
9552
  function decodeUnknownEffect2(schema, options) {
9509
9553
  const parser = decodeUnknownEffect(schema);
@@ -9516,12 +9560,17 @@ function fromIssueEffect(self) {
9516
9560
  }
9517
9561
  var make17 = make15;
9518
9562
  function isSchema(u2) {
9519
- return hasProperty(u2, TypeId27) && u2[TypeId27] === TypeId27;
9563
+ return hasProperty(u2, TypeId26) && u2[TypeId26] === TypeId26;
9520
9564
  }
9521
9565
  var optionalKey2 = /* @__PURE__ */ lambda((schema) => make17(optionalKey(schema.ast), {
9522
9566
  schema
9523
9567
  }));
9524
- var optional = /* @__PURE__ */ lambda((self) => optionalKey2(UndefinedOr(self)));
9568
+ var optional2 = /* @__PURE__ */ lambda((self) => {
9569
+ const schema = UndefinedOr(self);
9570
+ return make17(optional(self.ast), {
9571
+ schema
9572
+ });
9573
+ });
9525
9574
  function Literal2(literal) {
9526
9575
  const out = make17(new Literal(literal), {
9527
9576
  literal,
@@ -9791,7 +9840,7 @@ function makeClass(Inherited, identifier2, struct2, annotations, proto2) {
9791
9840
  }
9792
9841
  });
9793
9842
  }
9794
- static [TypeId27] = TypeId27;
9843
+ static [TypeId26] = TypeId26;
9795
9844
  get [ClassTypeId]() {
9796
9845
  return ClassTypeId;
9797
9846
  }
@@ -9938,7 +9987,7 @@ function makeReorder(getPriority) {
9938
9987
  };
9939
9988
  }
9940
9989
  function toCodecStringTree(schema) {
9941
- return make17(serializerStringTree(schema.ast), {
9990
+ return make17(toCodecStringTreeAST(schema.ast), {
9942
9991
  schema
9943
9992
  });
9944
9993
  }
@@ -9955,7 +10004,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
9955
10004
  return 1;
9956
10005
  }
9957
10006
  });
9958
- function serializerTree(ast, recur, onMissingAnnotation) {
10007
+ function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
9959
10008
  switch (ast._tag) {
9960
10009
  case "Declaration": {
9961
10010
  const typeParameters = ast.typeParameters.map((tp) => make17(recur(toEncoded(tp))));
@@ -10004,13 +10053,10 @@ function serializerTree(ast, recur, onMissingAnnotation) {
10004
10053
  }
10005
10054
  var nullToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Literal("null"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform(() => null), /* @__PURE__ */ transform(() => "null")));
10006
10055
  var booleanToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union([/* @__PURE__ */ new Literal("true"), /* @__PURE__ */ new Literal("false")], "anyOf"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform((s3) => s3 === "true"), /* @__PURE__ */ String2()));
10007
- var SERIALIZER_ENSURE_ARRAY = "~effect/Schema/SERIALIZER_ENSURE_ARRAY";
10008
- var isSerializerArrayFromSingle = (ast) => isUnion(ast) && ast.annotations?.[SERIALIZER_ENSURE_ARRAY] === true;
10009
- var serializerStringTree = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
10010
- if (isSerializerArrayFromSingle(ast)) {
10011
- return ast;
10012
- }
10013
- const out = serializerTree(ast, serializerStringTree, (ast2) => {
10056
+ var arrayFromSingleTransformation = /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform((input) => typeof input === "string" ? [input] : input), /* @__PURE__ */ passthrough2());
10057
+ var isCodecArrayFromSingleLink = (link4) => link4.transformation === arrayFromSingleTransformation;
10058
+ var toCodecStringTreeAST = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
10059
+ const out = toCodecStringTreeASTStep(ast, toCodecStringTreeAST, (ast2) => {
10014
10060
  throw new globalThis.Error("Missing structural codec for StringTree", {
10015
10061
  cause: ast2
10016
10062
  });
@@ -10019,6 +10065,8 @@ var serializerStringTree = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) =
10019
10065
  return replaceContextLastLink(out, withoutConstructorDefault(ast.context));
10020
10066
  }
10021
10067
  return out;
10068
+ }, {
10069
+ stopAt: isCodecArrayFromSingleLink
10022
10070
  });
10023
10071
  var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10024
10072
  toCode: () => ({
@@ -10027,11 +10075,11 @@ var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10027
10075
  })
10028
10076
  }));
10029
10077
 
10030
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/Cookies.js
10031
- 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";
10032
10080
  var CookieTypeId = "~effect/http/Cookies/Cookie";
10033
10081
  var Proto4 = {
10034
- [TypeId28]: TypeId28,
10082
+ [TypeId27]: TypeId27,
10035
10083
  ...BaseProto,
10036
10084
  toJSON() {
10037
10085
  return {
@@ -10210,11 +10258,11 @@ var tryDecodeURIComponent = (str) => {
10210
10258
  }
10211
10259
  };
10212
10260
 
10213
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/Headers.js
10214
- 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");
10215
10263
  var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
10216
- [TypeId29]: {
10217
- value: TypeId29
10264
+ [TypeId28]: {
10265
+ value: TypeId28
10218
10266
  },
10219
10267
  [symbolRedactable]: {
10220
10268
  value(context3) {
@@ -10317,12 +10365,12 @@ var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentReda
10317
10365
  defaultValue: () => ["authorization", "cookie", "set-cookie", "x-api-key"]
10318
10366
  });
10319
10367
 
10320
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/UrlParams.js
10321
- var TypeId30 = "~effect/http/UrlParams";
10322
- 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);
10323
10371
  var Proto6 = {
10324
10372
  ...PipeInspectableProto,
10325
- [TypeId30]: TypeId30,
10373
+ [TypeId29]: TypeId29,
10326
10374
  [Symbol.iterator]() {
10327
10375
  return this.params[Symbol.iterator]();
10328
10376
  },
@@ -10398,12 +10446,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
10398
10446
  return out;
10399
10447
  });
10400
10448
 
10401
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpBody.js
10402
- 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";
10403
10451
  var Proto7 = class {
10404
- [TypeId31];
10452
+ [TypeId30];
10405
10453
  constructor() {
10406
- this[TypeId31] = TypeId31;
10454
+ this[TypeId30] = TypeId30;
10407
10455
  }
10408
10456
  [NodeInspectSymbol]() {
10409
10457
  return this.toJSON();
@@ -10425,8 +10473,8 @@ var Empty2 = class extends Proto7 {
10425
10473
  };
10426
10474
  var empty9 = /* @__PURE__ */ new Empty2();
10427
10475
 
10428
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpClientError.js
10429
- 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";
10430
10478
  var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
10431
10479
  constructor(props) {
10432
10480
  if ("cause" in props.reason) {
@@ -10443,7 +10491,7 @@ var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientErr
10443
10491
  *
10444
10492
  * @since 4.0.0
10445
10493
  */
10446
- [TypeId32] = TypeId32;
10494
+ [TypeId31] = TypeId31;
10447
10495
  /**
10448
10496
  * HTTP request associated with the client failure.
10449
10497
  *
@@ -10560,10 +10608,10 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
10560
10608
  }
10561
10609
  };
10562
10610
 
10563
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
10564
10612
  var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"]];
10565
10613
 
10566
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
10567
10615
  var updateHeaders = (headers, body) => {
10568
10616
  if (body._tag === "Empty" || body._tag === "FormData") {
10569
10617
  return remove2(remove2(headers, "content-type"), "content-length");
@@ -10572,7 +10620,7 @@ var updateHeaders = (headers, body) => {
10572
10620
  return body.contentLength === void 0 ? remove2(headers, "content-length") : set2(headers, "content-length", body.contentLength.toString());
10573
10621
  };
10574
10622
 
10575
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
10576
10624
  var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
10577
10625
  };
10578
10626
  var make20 = (url, params, hash2) => try_({
@@ -10600,10 +10648,10 @@ var baseUrl = () => {
10600
10648
  return void 0;
10601
10649
  };
10602
10650
 
10603
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10604
- 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";
10605
10653
  var Proto8 = {
10606
- [TypeId33]: TypeId33,
10654
+ [TypeId32]: TypeId32,
10607
10655
  ...BaseProto,
10608
10656
  toJSON() {
10609
10657
  return {
@@ -10697,8 +10745,8 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
10697
10745
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
10698
10746
  });
10699
10747
 
10700
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10701
- 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";
10702
10750
  var inspect = (self, that) => {
10703
10751
  const contentType = self.headers["content-type"] ?? "";
10704
10752
  let body;
@@ -10724,8 +10772,8 @@ var inspect = (self, that) => {
10724
10772
  return obj;
10725
10773
  };
10726
10774
 
10727
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10728
- 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";
10729
10777
  var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
10730
10778
  var stream2 = (effect2) => unwrap3(map6(effect2, (self) => self.stream));
10731
10779
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail6(new HttpClientError({
@@ -10736,16 +10784,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10736
10784
  })
10737
10785
  }));
10738
10786
  var WebHttpClientResponse = class extends Class2 {
10787
+ [TypeId33];
10739
10788
  [TypeId34];
10740
- [TypeId35];
10741
10789
  request;
10742
10790
  source;
10743
10791
  constructor(request5, source) {
10744
10792
  super();
10745
10793
  this.request = request5;
10746
10794
  this.source = source;
10795
+ this[TypeId33] = TypeId33;
10747
10796
  this[TypeId34] = TypeId34;
10748
- this[TypeId35] = TypeId35;
10749
10797
  }
10750
10798
  toJSON() {
10751
10799
  return inspect(this, {
@@ -10851,7 +10899,7 @@ var WebHttpClientResponse = class extends Class2 {
10851
10899
  }
10852
10900
  };
10853
10901
 
10854
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
10855
10903
  var toHeaders = (span) => fromRecordUnsafe({
10856
10904
  b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
10857
10905
  onNone: () => "",
@@ -10860,8 +10908,8 @@ var toHeaders = (span) => fromRecordUnsafe({
10860
10908
  traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
10861
10909
  });
10862
10910
 
10863
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpClient.js
10864
- 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";
10865
10913
  var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
10866
10914
  var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
10867
10915
  var filterStatusOk2 = /* @__PURE__ */ transformResponse(/* @__PURE__ */ flatMap3(filterStatusOk));
@@ -10875,7 +10923,7 @@ var makeWith2 = (postprocess, preprocess) => {
10875
10923
  return self;
10876
10924
  };
10877
10925
  var Proto9 = {
10878
- [TypeId36]: TypeId36,
10926
+ [TypeId35]: TypeId35,
10879
10927
  pipe() {
10880
10928
  return pipeArguments(this, arguments);
10881
10929
  },
@@ -11014,8 +11062,8 @@ var InterruptibleResponse = class {
11014
11062
  this.original = original;
11015
11063
  this.controller = controller;
11016
11064
  }
11017
- [TypeId35] = TypeId35;
11018
11065
  [TypeId34] = TypeId34;
11066
+ [TypeId33] = TypeId33;
11019
11067
  applyInterrupt(effect2) {
11020
11068
  return suspend2(() => {
11021
11069
  responseRegistry.unregister(this.original);
@@ -11073,7 +11121,7 @@ var InterruptibleResponse = class {
11073
11121
  }
11074
11122
  };
11075
11123
 
11076
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/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
11077
11125
  var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
11078
11126
  var fromWritableChannel = (options) => fromTransform((pull) => {
11079
11127
  const writable = options.evaluate();
@@ -11113,7 +11161,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
11113
11161
  });
11114
11162
  }) : identity);
11115
11163
 
11116
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/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
11117
11165
  var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
11118
11166
  var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
11119
11167
  scope: scope3,
@@ -11172,7 +11220,7 @@ var readableToPullUnsafe = (options) => {
11172
11220
  };
11173
11221
  var defaultOnError = (error2) => new UnknownError2(error2);
11174
11222
 
11175
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
11176
11224
  var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
11177
11225
  defaultValue: () => globalThis.fetch
11178
11226
  });
@@ -11214,7 +11262,7 @@ var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
11214
11262
  });
11215
11263
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
11216
11264
 
11217
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Runtime.js
11265
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Runtime.js
11218
11266
  var defaultTeardown = (exit3, onExit4) => {
11219
11267
  if (isSuccess4(exit3)) return onExit4(0);
11220
11268
  if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
@@ -11260,7 +11308,7 @@ var getErrorReported = (u2) => {
11260
11308
  return true;
11261
11309
  };
11262
11310
 
11263
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/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
11264
11312
  var runMain = /* @__PURE__ */ makeRunMain(({
11265
11313
  fiber: fiber3,
11266
11314
  teardown
@@ -11283,17 +11331,17 @@ var runMain = /* @__PURE__ */ makeRunMain(({
11283
11331
  process.on("SIGTERM", onSigint);
11284
11332
  });
11285
11333
 
11286
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_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
11287
11335
  var runMain2 = runMain;
11288
11336
 
11289
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Path.js
11337
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Path.js
11290
11338
  var Path_exports = {};
11291
11339
  __export(Path_exports, {
11292
11340
  Path: () => Path,
11293
- TypeId: () => TypeId37,
11341
+ TypeId: () => TypeId36,
11294
11342
  layer: () => layer3
11295
11343
  });
11296
- var TypeId37 = "~effect/platform/Path";
11344
+ var TypeId36 = "~effect/platform/Path";
11297
11345
  var Path = /* @__PURE__ */ Service("effect/Path");
11298
11346
  function normalizeStringPosix(path5, allowAboveRoot) {
11299
11347
  let res = "";
@@ -11469,7 +11517,7 @@ function encodePathChars(filepath) {
11469
11517
  return filepath;
11470
11518
  }
11471
11519
  var posixImpl = /* @__PURE__ */ Path.of({
11472
- [TypeId37]: TypeId37,
11520
+ [TypeId36]: TypeId36,
11473
11521
  resolve: resolve2,
11474
11522
  normalize(path5) {
11475
11523
  if (path5.length === 0) return ".";
@@ -11760,7 +11808,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
11760
11808
  });
11761
11809
  var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
11762
11810
 
11763
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Brand.js
11811
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Brand.js
11764
11812
  function nominal() {
11765
11813
  return Object.assign((input) => input, {
11766
11814
  option: (input) => some2(input),
@@ -11769,7 +11817,7 @@ function nominal() {
11769
11817
  });
11770
11818
  }
11771
11819
 
11772
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
11773
11821
  var ExitCode = /* @__PURE__ */ nominal();
11774
11822
  var ProcessId = /* @__PURE__ */ nominal();
11775
11823
  var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
@@ -11801,8 +11849,8 @@ var make23 = (spawn2) => {
11801
11849
  var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
11802
11850
  };
11803
11851
 
11804
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/process/ChildProcess.js
11805
- 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";
11806
11854
  var Proto10 = {
11807
11855
  .../* @__PURE__ */ Prototype2({
11808
11856
  label: "Command",
@@ -11810,7 +11858,7 @@ var Proto10 = {
11810
11858
  return getUnsafe(fiber3.context, ChildProcessSpawner).spawn(this);
11811
11859
  }
11812
11860
  }),
11813
- [TypeId38]: TypeId38
11861
+ [TypeId37]: TypeId37
11814
11862
  };
11815
11863
  var makeStandardCommand = (command2, args2, options) => Object.assign(Object.create(Proto10), {
11816
11864
  _tag: "StandardCommand",
@@ -11925,7 +11973,18 @@ var splitByWhitespaces = (template, rawTemplate) => {
11925
11973
  };
11926
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)];
11927
11975
 
11928
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/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
11929
11988
  var handleErrnoException = (module, method) => (err, [path5]) => {
11930
11989
  let reason = "Unknown";
11931
11990
  switch (err.code) {
@@ -11961,7 +12020,7 @@ var handleErrnoException = (module, method) => (err, [path5]) => {
11961
12020
  });
11962
12021
  };
11963
12022
 
11964
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/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
11965
12024
  var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
11966
12025
  var toPlatformError = (method, error2, command2) => {
11967
12026
  const {
@@ -11973,6 +12032,10 @@ var toPlatformError = (method, error2, command2) => {
11973
12032
  }, "");
11974
12033
  return handleErrnoException("ChildProcess", method)(error2, [commandStr]);
11975
12034
  };
12035
+ var taskkill = (childProcess, onExit4 = () => {
12036
+ }) => NodeChildProcess__namespace.execFile("taskkill", ["/pid", String(childProcess.pid), "/T", "/F"], {
12037
+ windowsHide: true
12038
+ }, onExit4);
11976
12039
  var make26 = /* @__PURE__ */ gen2(function* () {
11977
12040
  const fs2 = yield* FileSystem;
11978
12041
  const path5 = yield* Path;
@@ -12190,7 +12253,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12190
12253
  const killProcessGroup = (command2, childProcess, signal) => {
12191
12254
  if (globalThis.process.platform === "win32") {
12192
12255
  return callback2((resume) => {
12193
- NodeChildProcess__namespace.exec(`taskkill /pid ${childProcess.pid} /T /F`, (error2) => {
12256
+ taskkill(childProcess, (error2) => {
12194
12257
  if (error2) {
12195
12258
  resume(fail6(toPlatformError("kill", toError(error2), command2)));
12196
12259
  } else {
@@ -12208,8 +12271,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12208
12271
  };
12209
12272
  const killProcessGroupOnExit = (childProcess, signal) => {
12210
12273
  if (globalThis.process.platform === "win32") {
12211
- NodeChildProcess__namespace.exec(`taskkill /pid ${childProcess.pid} /T /F`, () => {
12212
- });
12274
+ taskkill(childProcess);
12213
12275
  return;
12214
12276
  }
12215
12277
  try {
@@ -12261,13 +12323,11 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12261
12323
  const cwd = yield* resolveWorkingDirectory(cmd.options);
12262
12324
  const env = resolveEnvironment(cmd.options);
12263
12325
  const stdio = buildStdioArray(stdinConfig, stdoutConfig, stderrConfig, resolvedAdditionalFds);
12264
- const [childProcess, exitSignal] = yield* acquireRelease2(spawn2(cmd, {
12326
+ const [childProcess, exitSignal] = yield* acquireRelease2(spawn2(cmd, buildSpawnOptions(cmd.options, {
12265
12327
  cwd,
12266
12328
  env,
12267
- stdio,
12268
- detached: cmd.options.detached ?? process.platform !== "win32",
12269
- shell: cmd.options.shell
12270
- }), fnUntraced2(function* ([childProcess2, exitSignal2]) {
12329
+ stdio
12330
+ }, process.platform)), fnUntraced2(function* ([childProcess2, exitSignal2]) {
12271
12331
  const exited = yield* isDone2(exitSignal2);
12272
12332
  const killWithTimeout = withTimeout(childProcess2, cmd, cmd.options);
12273
12333
  if (exited) {
@@ -12445,8 +12505,8 @@ var flattenCommand = (command2) => {
12445
12505
  };
12446
12506
  };
12447
12507
 
12448
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Crypto.js
12449
- 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";
12450
12510
  var Crypto = /* @__PURE__ */ Service("effect/Crypto");
12451
12511
  var make27 = (impl) => {
12452
12512
  const randomBytesUnsafe = impl.randomBytes;
@@ -12466,7 +12526,7 @@ var make27 = (impl) => {
12466
12526
  }
12467
12527
  };
12468
12528
  return Crypto.of({
12469
- [TypeId39]: TypeId39,
12529
+ [TypeId38]: TypeId38,
12470
12530
  randomBytes: randomBytes3,
12471
12531
  nextDoubleUnsafe,
12472
12532
  nextIntUnsafe,
@@ -12553,7 +12613,7 @@ var make28 = /* @__PURE__ */ make27({
12553
12613
  });
12554
12614
  var layer5 = /* @__PURE__ */ succeed5(Crypto, make28);
12555
12615
 
12556
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_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
12557
12617
  var layer6 = layer5;
12558
12618
  var handleBadArgument = (method) => (err) => badArgument({
12559
12619
  module: "FileSystem",
@@ -12933,7 +12993,7 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
12933
12993
  }));
12934
12994
  var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
12935
12995
 
12936
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_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
12937
12997
  var layer8 = layer7;
12938
12998
  var fileUrlOps = (windows) => ({
12939
12999
  fromFileUrl: (url) => try_3({
@@ -12958,25 +13018,25 @@ var fileUrlOps = (windows) => ({
12958
13018
  })
12959
13019
  });
12960
13020
  var layer9 = /* @__PURE__ */ succeed5(Path)({
12961
- [TypeId37]: TypeId37,
13021
+ [TypeId36]: TypeId36,
12962
13022
  ...R__namespace,
12963
13023
  .../* @__PURE__ */ fileUrlOps(void 0)
12964
13024
  });
12965
13025
 
12966
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_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
12967
13027
  var layer10 = layer9;
12968
13028
 
12969
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Stdio.js
12970
- var TypeId40 = "~effect/Stdio";
12971
- 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);
12972
13032
  var make29 = (options) => ({
12973
- [TypeId40]: TypeId40,
13033
+ [TypeId39]: TypeId39,
12974
13034
  stdinIsTerminal: succeed6(false),
12975
13035
  stdoutIsTerminal: succeed6(false),
12976
13036
  ...options
12977
13037
  });
12978
13038
 
12979
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/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
12980
13040
  var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
12981
13041
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
12982
13042
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
@@ -13013,11 +13073,11 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13013
13073
  })
13014
13074
  }));
13015
13075
 
13016
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_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
13017
13077
  var layer12 = layer11;
13018
13078
 
13019
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Terminal.js
13020
- 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";
13021
13081
  var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
13022
13082
  var QuitError = class extends (/* @__PURE__ */ Error4("QuitError")({
13023
13083
  _tag: /* @__PURE__ */ tag("QuitError")
@@ -13033,7 +13093,7 @@ var isQuitError = (u2) => hasProperty(u2, QuitErrorTypeId);
13033
13093
  var Terminal = /* @__PURE__ */ Service("effect/platform/Terminal");
13034
13094
  var make30 = (impl) => Terminal.of({
13035
13095
  ...impl,
13036
- [TypeId41]: TypeId41
13096
+ [TypeId40]: TypeId40
13037
13097
  });
13038
13098
  var make31 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQuit) {
13039
13099
  const stdin = process.stdin;
@@ -13087,7 +13147,8 @@ var make31 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
13087
13147
  if (inputEnded) {
13088
13148
  endUnsafe(lines2);
13089
13149
  }
13090
- }))
13150
+ })),
13151
+ idleTimeToLive: "10 millis"
13091
13152
  });
13092
13153
  const columns = sync2(() => stdout.columns ?? 0);
13093
13154
  const rows = sync2(() => stdout.rows ?? 0);
@@ -13153,13 +13214,13 @@ function defaultShouldQuit(input) {
13153
13214
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
13154
13215
  }
13155
13216
 
13156
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_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
13157
13218
  var layer14 = layer13;
13158
13219
 
13159
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_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
13160
13221
  var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
13161
13222
 
13162
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/ConfigProvider.js
13223
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/ConfigProvider.js
13163
13224
  function makeValue(value3) {
13164
13225
  return {
13165
13226
  _tag: "Value",
@@ -13207,13 +13268,16 @@ function make32(get4) {
13207
13268
  function emptyStringAsMissing(value3, preserveEmptyStrings) {
13208
13269
  return value3 === "" && true ? void 0 : value3;
13209
13270
  }
13271
+ function fromEnvRecord(env, options) {
13272
+ const trie = buildEnvTrie(env);
13273
+ return make32((path5) => succeed6(nodeAtEnv(trie, env, path5)));
13274
+ }
13210
13275
  function fromEnv(options) {
13211
13276
  const env = {
13212
13277
  ...globalThis.process?.env,
13213
13278
  ...undefined
13214
13279
  };
13215
- const trie = buildEnvTrie(env);
13216
- return make32((path5) => succeed6(nodeAtEnv(trie, env, path5)));
13280
+ return fromEnvRecord(env);
13217
13281
  }
13218
13282
  function buildEnvTrie(env) {
13219
13283
  const trie = {};
@@ -13254,8 +13318,8 @@ function trieNodeAt(root, path5) {
13254
13318
  return node;
13255
13319
  }
13256
13320
 
13257
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Config.js
13258
- 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";
13259
13323
  var Proto12 = {
13260
13324
  .../* @__PURE__ */ Prototype2({
13261
13325
  label: "Config",
@@ -13263,7 +13327,7 @@ var Proto12 = {
13263
13327
  return this.parse(fiber3.getRef(ConfigProvider));
13264
13328
  }
13265
13329
  }),
13266
- [TypeId42]: TypeId42,
13330
+ [TypeId41]: TypeId41,
13267
13331
  toJSON() {
13268
13332
  return {
13269
13333
  _id: "Config"
@@ -13296,7 +13360,7 @@ var Boolean3 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValues.
13296
13360
  encode: (value3) => value3 ? "true" : "false"
13297
13361
  })));
13298
13362
 
13299
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Console.js
13363
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Console.js
13300
13364
  var Console = ConsoleRef;
13301
13365
  var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
13302
13366
  var error = (...args2) => consoleWith((console) => sync(() => {
@@ -13306,7 +13370,7 @@ var log2 = (...args2) => consoleWith((console) => sync(() => {
13306
13370
  console.log(...args2);
13307
13371
  }));
13308
13372
 
13309
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
13310
13374
  var Argument_exports = {};
13311
13375
  __export(Argument_exports, {
13312
13376
  atLeast: () => atLeast2,
@@ -13328,7 +13392,7 @@ __export(Argument_exports, {
13328
13392
  mapEffect: () => mapEffect3,
13329
13393
  mapTryCatch: () => mapTryCatch2,
13330
13394
  none: () => none5,
13331
- optional: () => optional3,
13395
+ optional: () => optional4,
13332
13396
  orElse: () => orElse2,
13333
13397
  orElseResult: () => orElseResult2,
13334
13398
  path: () => path3,
@@ -13343,12 +13407,12 @@ __export(Argument_exports, {
13343
13407
  withSchema: () => withSchema2
13344
13408
  });
13345
13409
 
13346
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/CliError.js
13347
- var TypeId43 = "~effect/cli/CliError";
13348
- var isCliError = (u2) => hasProperty(u2, TypeId43);
13349
- 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", {
13350
13414
  option: String4,
13351
- command: /* @__PURE__ */ optional(/* @__PURE__ */ ArraySchema(String4)),
13415
+ command: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13352
13416
  suggestions: /* @__PURE__ */ ArraySchema(String4)
13353
13417
  })) {
13354
13418
  /**
@@ -13356,7 +13420,7 @@ var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13356
13420
  *
13357
13421
  * @since 4.0.0
13358
13422
  */
13359
- [TypeId43] = TypeId43;
13423
+ [TypeId42] = TypeId42;
13360
13424
  /**
13361
13425
  * Formats the unrecognized option with command context and suggestions.
13362
13426
  *
@@ -13371,7 +13435,7 @@ var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13371
13435
  return baseMessage + suggestionText;
13372
13436
  }
13373
13437
  };
13374
- var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/DuplicateOption`)("DuplicateOption", {
13438
+ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/DuplicateOption`)("DuplicateOption", {
13375
13439
  option: String4,
13376
13440
  parentCommand: String4,
13377
13441
  childCommand: String4
@@ -13381,7 +13445,7 @@ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/D
13381
13445
  *
13382
13446
  * @since 4.0.0
13383
13447
  */
13384
- [TypeId43] = TypeId43;
13448
+ [TypeId42] = TypeId42;
13385
13449
  /**
13386
13450
  * Explains which parent and child commands define the duplicate option.
13387
13451
  *
@@ -13391,7 +13455,7 @@ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/D
13391
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.`;
13392
13456
  }
13393
13457
  };
13394
- var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/MissingOption`)("MissingOption", {
13458
+ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/MissingOption`)("MissingOption", {
13395
13459
  option: String4
13396
13460
  })) {
13397
13461
  /**
@@ -13399,7 +13463,7 @@ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Mis
13399
13463
  *
13400
13464
  * @since 4.0.0
13401
13465
  */
13402
- [TypeId43] = TypeId43;
13466
+ [TypeId42] = TypeId42;
13403
13467
  /**
13404
13468
  * Formats the missing required flag for display.
13405
13469
  *
@@ -13409,7 +13473,7 @@ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Mis
13409
13473
  return `Missing required flag: --${this.option}`;
13410
13474
  }
13411
13475
  };
13412
- var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/MissingArgument`)("MissingArgument", {
13476
+ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/MissingArgument`)("MissingArgument", {
13413
13477
  argument: String4
13414
13478
  })) {
13415
13479
  /**
@@ -13417,7 +13481,7 @@ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/M
13417
13481
  *
13418
13482
  * @since 4.0.0
13419
13483
  */
13420
- [TypeId43] = TypeId43;
13484
+ [TypeId42] = TypeId42;
13421
13485
  /**
13422
13486
  * Formats the missing required positional argument for display.
13423
13487
  *
@@ -13427,7 +13491,7 @@ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/M
13427
13491
  return `Missing required argument: ${this.argument}`;
13428
13492
  }
13429
13493
  };
13430
- var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnexpectedArgument`)("UnexpectedArgument", {
13494
+ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnexpectedArgument`)("UnexpectedArgument", {
13431
13495
  arguments: /* @__PURE__ */ ArraySchema(String4)
13432
13496
  })) {
13433
13497
  /**
@@ -13435,7 +13499,7 @@ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13435
13499
  *
13436
13500
  * @since 4.0.0
13437
13501
  */
13438
- [TypeId43] = TypeId43;
13502
+ [TypeId42] = TypeId42;
13439
13503
  /**
13440
13504
  * Formats the unexpected positional arguments for display.
13441
13505
  *
@@ -13446,7 +13510,7 @@ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13446
13510
  return `Unexpected positional ${label}: ${this.arguments.map((value3) => JSON.stringify(value3)).join(", ")}`;
13447
13511
  }
13448
13512
  };
13449
- var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/InvalidValue`)("InvalidValue", {
13513
+ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/InvalidValue`)("InvalidValue", {
13450
13514
  option: String4,
13451
13515
  value: String4,
13452
13516
  expected: String4,
@@ -13457,7 +13521,7 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Inv
13457
13521
  *
13458
13522
  * @since 4.0.0
13459
13523
  */
13460
- [TypeId43] = TypeId43;
13524
+ [TypeId42] = TypeId42;
13461
13525
  /**
13462
13526
  * Formats the invalid flag or argument value with the expected input.
13463
13527
  *
@@ -13474,9 +13538,9 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Inv
13474
13538
  return `Invalid value for flag --${this.option}: "${this.value}". ${expectation}`;
13475
13539
  }
13476
13540
  };
13477
- var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnknownSubcommand`)("UnknownSubcommand", {
13541
+ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnknownSubcommand`)("UnknownSubcommand", {
13478
13542
  subcommand: String4,
13479
- parent: /* @__PURE__ */ optional(/* @__PURE__ */ ArraySchema(String4)),
13543
+ parent: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13480
13544
  suggestions: /* @__PURE__ */ ArraySchema(String4)
13481
13545
  })) {
13482
13546
  /**
@@ -13484,7 +13548,7 @@ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}
13484
13548
  *
13485
13549
  * @since 4.0.0
13486
13550
  */
13487
- [TypeId43] = TypeId43;
13551
+ [TypeId42] = TypeId42;
13488
13552
  /**
13489
13553
  * Formats the unknown subcommand with parent command context and suggestions.
13490
13554
  *
@@ -13498,22 +13562,41 @@ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}
13498
13562
  return this.parent ? `Unknown subcommand "${this.subcommand}" for "${this.parent.join(" ")}"${suggestionText}` : `Unknown subcommand "${this.subcommand}"${suggestionText}`;
13499
13563
  }
13500
13564
  };
13501
- var UserError = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UserError`)("UserError", {
13502
- cause: /* @__PURE__ */ Defect()
13565
+ var UserError = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UserError`)("UserError", {
13566
+ cause: /* @__PURE__ */ Defect(),
13567
+ userMessage: /* @__PURE__ */ optionalKey2(String4)
13503
13568
  })) {
13504
13569
  /**
13505
13570
  * Marks this value as a user handler error for runtime guards.
13506
13571
  *
13507
13572
  * @since 4.0.0
13508
13573
  */
13509
- [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
+ }
13510
13593
  };
13511
13594
  var NonShowHelpErrors = /* @__PURE__ */ Union2([UnrecognizedOption, DuplicateOption, MissingOption, MissingArgument, UnexpectedArgument, InvalidValue2, UnknownSubcommand, UserError]);
13512
- var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/ShowHelp`)("ShowHelp", {
13595
+ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/ShowHelp`)("ShowHelp", {
13513
13596
  commandPath: /* @__PURE__ */ ArraySchema(String4),
13514
13597
  errors: /* @__PURE__ */ ArraySchema(NonShowHelpErrors)
13515
13598
  })) {
13516
- [TypeId43] = TypeId43;
13599
+ [TypeId42] = TypeId42;
13517
13600
  [errorExitCode] = this.errors.length ? 1 : 0;
13518
13601
  [errorReported] = false;
13519
13602
  get message() {
@@ -13521,7 +13604,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/ShowHelp
13521
13604
  }
13522
13605
  };
13523
13606
 
13524
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
13525
13608
  var hasOwn = Object.prototype.hasOwnProperty;
13526
13609
  var splitSections = (value3) => {
13527
13610
  const sections = [];
@@ -13640,7 +13723,7 @@ var parse = (input) => {
13640
13723
  return output;
13641
13724
  };
13642
13725
 
13643
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
13644
13727
  var hasOwn2 = Object.prototype.hasOwnProperty;
13645
13728
  var makeTable = () => /* @__PURE__ */ Object.create(null);
13646
13729
  var isTable = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3) && !(value3 instanceof Date);
@@ -14058,7 +14141,7 @@ var TomlParser = class {
14058
14141
  };
14059
14142
  var parse2 = (input) => new TomlParser(input.replace(/^\uFEFF/, "")).parse();
14060
14143
 
14061
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
14062
14145
  var hasOwn3 = Object.prototype.hasOwnProperty;
14063
14146
  var setProperty = (record2, key, value3) => {
14064
14147
  Object.defineProperty(record2, key, {
@@ -14511,10 +14594,10 @@ var parse3 = (input) => {
14511
14594
  return new YamlParser(lines2).parse();
14512
14595
  };
14513
14596
 
14514
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Primitive.js
14515
- 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";
14516
14599
  var Proto13 = {
14517
- [TypeId44]: {
14600
+ [TypeId43]: {
14518
14601
  _A: identity
14519
14602
  }
14520
14603
  };
@@ -14665,7 +14748,7 @@ var getTypeName = (primitive) => {
14665
14748
  var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
14666
14749
  var getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
14667
14750
 
14668
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
14669
14752
  var Prompt_exports = {};
14670
14753
  __export(Prompt_exports, {
14671
14754
  all: () => all3,
@@ -14691,7 +14774,7 @@ __export(Prompt_exports, {
14691
14774
  toggle: () => toggle
14692
14775
  });
14693
14776
 
14694
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
14695
14778
  var ESC = "\x1B[";
14696
14779
  var BEL = "\x07";
14697
14780
  var reset = `${ESC}0m`;
@@ -14752,9 +14835,9 @@ var eraseLines = (rows) => {
14752
14835
  return command2;
14753
14836
  };
14754
14837
 
14755
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Prompt.js
14756
- var TypeId45 = "~effect/cli/Prompt";
14757
- 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);
14758
14841
  var defaultFigures = {
14759
14842
  arrowUp: "\u2191",
14760
14843
  arrowDown: "\u2193",
@@ -15099,7 +15182,7 @@ var proto = {
15099
15182
  return run3(this);
15100
15183
  }
15101
15184
  }),
15102
- [TypeId45]: {
15185
+ [TypeId44]: {
15103
15186
  _Output: (_2) => _2
15104
15187
  }
15105
15188
  };
@@ -17268,19 +17351,19 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
17268
17351
  };
17269
17352
  };
17270
17353
 
17271
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Param.js
17272
- 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";
17273
17356
  var argumentKind = "argument";
17274
17357
  var flagKind = "flag";
17275
17358
  var Proto14 = {
17276
- [TypeId46]: {
17359
+ [TypeId45]: {
17277
17360
  _A: identity
17278
17361
  },
17279
17362
  pipe() {
17280
17363
  return pipeArguments(this, arguments);
17281
17364
  }
17282
17365
  };
17283
- var isParam = (u2) => hasProperty(u2, TypeId46);
17366
+ var isParam = (u2) => hasProperty(u2, TypeId45);
17284
17367
  var isFlagParam = (single) => single.kind === "flag";
17285
17368
  var makeSingle2 = (params) => {
17286
17369
  const parse4 = (args2) => params.kind === argumentKind ? parsePositional(params.name, params.primitiveType, args2) : parseFlag(params.name, params.primitiveType, args2);
@@ -17426,7 +17509,7 @@ var mapTryCatch = /* @__PURE__ */ dual(3, (self, f2, onError4) => {
17426
17509
  kind: single.kind
17427
17510
  })), map6((b2) => [leftover, b2]))));
17428
17511
  });
17429
- var optional2 = (param) => {
17512
+ var optional3 = (param) => {
17430
17513
  const parse4 = fnUntraced2(function* (args2) {
17431
17514
  const single = getUnderlyingSingleOrThrow(param);
17432
17515
  if (isFlagParam(single) && isBoolean2(single.primitiveType) && ![single.name, ...single.aliases].some((name) => (args2.flags[name] ?? []).length > 0)) {
@@ -17450,9 +17533,9 @@ var optional2 = (param) => {
17450
17533
  };
17451
17534
  var withDefault3 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
17452
17535
  if (!isEffect2(defaultValue)) {
17453
- return map12(optional2(self), getOrElse(() => defaultValue));
17536
+ return map12(optional3(self), getOrElse(() => defaultValue));
17454
17537
  }
17455
- return mapEffect2(optional2(self), match({
17538
+ return mapEffect2(optional3(self), match({
17456
17539
  onNone: () => defaultValue,
17457
17540
  onSome: succeed6
17458
17541
  }));
@@ -17668,7 +17751,7 @@ var transformSingle = (param, f2) => {
17668
17751
  Single: (single) => f2(single),
17669
17752
  Map: (mapped) => map12(transformSingle(mapped.param, f2), mapped.f),
17670
17753
  Transform: (mapped) => transform3(transformSingle(mapped.param, f2), mapped.f, mapped.alternatives.map((alternative) => () => transformSingle(alternative(), f2))),
17671
- Optional: (p2) => optional2(transformSingle(p2.param, f2)),
17754
+ Optional: (p2) => optional3(transformSingle(p2.param, f2)),
17672
17755
  Variadic: (p2) => variadic(transformSingle(p2.param, f2), {
17673
17756
  min: getOrUndefined(p2.min),
17674
17757
  max: getOrUndefined(p2.max)
@@ -17680,7 +17763,7 @@ var extractSingleParams = (param) => {
17680
17763
  Single: (single) => [single],
17681
17764
  Map: (mapped) => extractSingleParams(mapped.param),
17682
17765
  Transform: (mapped) => [...extractSingleParams(mapped.param), ...mapped.alternatives.flatMap((alternative) => extractSingleParams(alternative()))],
17683
- Optional: (optional5) => extractSingleParams(optional5.param),
17766
+ Optional: (optional6) => extractSingleParams(optional6.param),
17684
17767
  Variadic: (variadic3) => extractSingleParams(variadic3.param)
17685
17768
  });
17686
17769
  };
@@ -17704,8 +17787,8 @@ var getParamMetadata = (param) => {
17704
17787
  }),
17705
17788
  Map: (mapped) => getParamMetadata(mapped.param),
17706
17789
  Transform: (mapped) => getParamMetadata(mapped.param),
17707
- Optional: (optional5) => ({
17708
- ...getParamMetadata(optional5.param),
17790
+ Optional: (optional6) => ({
17791
+ ...getParamMetadata(optional6.param),
17709
17792
  isOptional: true
17710
17793
  }),
17711
17794
  Variadic: (variadic3) => ({
@@ -17717,7 +17800,7 @@ var getParamMetadata = (param) => {
17717
17800
  });
17718
17801
  };
17719
17802
 
17720
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
17721
17804
  var string5 = (name) => string4(argumentKind, name);
17722
17805
  var integer4 = (name) => integer3(argumentKind, name);
17723
17806
  var file4 = (name, options) => file3(argumentKind, name, options);
@@ -17731,7 +17814,7 @@ var fileText3 = (name) => fileText2(argumentKind, name);
17731
17814
  var fileParse3 = (name, options) => fileParse2(argumentKind, name, options);
17732
17815
  var fileSchema3 = (name, schema, options) => fileSchema2(argumentKind, name, schema, options);
17733
17816
  var none5 = /* @__PURE__ */ none4(argumentKind);
17734
- var optional3 = (arg) => optional2(arg);
17817
+ var optional4 = (arg) => optional3(arg);
17735
17818
  var withDescription2 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
17736
17819
  var withDefault4 = withDefault3;
17737
17820
  var withFallbackConfig2 = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig(self, config));
@@ -17751,7 +17834,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
17751
17834
  var orElse2 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
17752
17835
  var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
17753
17836
 
17754
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
17755
17838
  var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
17756
17839
  defaultValue: () => defaultFormatter2()
17757
17840
  });
@@ -17947,7 +18030,7 @@ var formatHelpDocImpl = (doc, colors2) => {
17947
18030
  return sections.join("\n");
17948
18031
  };
17949
18032
 
17950
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
17951
18034
  var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
17952
18035
  var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
17953
18036
  var flagNamesForWordlist = (flag) => {
@@ -18169,7 +18252,7 @@ var generate = (executableName, descriptor) => {
18169
18252
  return lines2.join("\n");
18170
18253
  };
18171
18254
 
18172
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
18173
18256
  var escapeFishString = (s3) => s3.replace(/'/g, "\\'");
18174
18257
  var subcommandCondition = (parentPath, childSubcommandNames) => {
18175
18258
  if (parentPath.length === 0) {
@@ -18337,7 +18420,7 @@ var generate2 = (executableName, descriptor) => {
18337
18420
  return lines2.join("\n");
18338
18421
  };
18339
18422
 
18340
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
18341
18424
  var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
18342
18425
  var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
18343
18426
  var allForms = (flag) => {
@@ -18495,7 +18578,7 @@ var generate3 = (executableName, descriptor) => {
18495
18578
  return lines2.join("\n");
18496
18579
  };
18497
18580
 
18498
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
18499
18582
  var generate4 = (executableName, shell, descriptor) => {
18500
18583
  switch (shell) {
18501
18584
  case "bash":
@@ -18507,7 +18590,7 @@ var generate4 = (executableName, shell, descriptor) => {
18507
18590
  }
18508
18591
  };
18509
18592
 
18510
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
18511
18594
  var Flag_exports = {};
18512
18595
  __export(Flag_exports, {
18513
18596
  atLeast: () => atLeast3,
@@ -18531,7 +18614,7 @@ __export(Flag_exports, {
18531
18614
  mapEffect: () => mapEffect4,
18532
18615
  mapTryCatch: () => mapTryCatch3,
18533
18616
  none: () => none6,
18534
- optional: () => optional4,
18617
+ optional: () => optional5,
18535
18618
  orElse: () => orElse3,
18536
18619
  orElseResult: () => orElseResult3,
18537
18620
  path: () => path4,
@@ -18566,7 +18649,7 @@ var withAlias2 = /* @__PURE__ */ dual(2, (self, alias) => withAlias(self, alias)
18566
18649
  var withDescription3 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
18567
18650
  var withMetavar3 = /* @__PURE__ */ dual(2, (self, metavar) => withMetavar(self, metavar));
18568
18651
  var withHidden2 = (self) => withHidden(self);
18569
- var optional4 = (param) => optional2(param);
18652
+ var optional5 = (param) => optional3(param);
18570
18653
  var withDefault5 = withDefault3;
18571
18654
  var withFallbackConfig3 = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig(self, config));
18572
18655
  var withFallbackPrompt3 = /* @__PURE__ */ dual(2, (self, prompt) => withFallbackPrompt(self, prompt));
@@ -18582,7 +18665,7 @@ var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
18582
18665
  var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
18583
18666
  var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
18584
18667
 
18585
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
18586
18669
  var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
18587
18670
  var parseConfig = (config) => {
18588
18671
  const orderedParams = [];
@@ -18683,8 +18766,8 @@ var reconstructTree = (tree, results) => {
18683
18766
  }
18684
18767
  };
18685
18768
 
18686
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/command.js
18687
- 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";
18688
18771
  var toImpl = (self) => self;
18689
18772
  var Proto15 = {
18690
18773
  .../* @__PURE__ */ Prototype2({
@@ -18697,7 +18780,7 @@ var Proto15 = {
18697
18780
  var makeCommand = (options) => {
18698
18781
  const config = options.config;
18699
18782
  const contextConfig = options.contextConfig ?? emptyConfig;
18700
- const service3 = options.service ?? Service(`${TypeId47}/${options.name}`);
18783
+ const service3 = options.service ?? Service(`${TypeId46}/${options.name}`);
18701
18784
  const annotations = options.annotations ?? empty();
18702
18785
  const globalFlags = options.globalFlags ?? [];
18703
18786
  const subcommands = options.subcommands ?? [];
@@ -18774,7 +18857,7 @@ var makeCommand = (options) => {
18774
18857
  };
18775
18858
  };
18776
18859
  return Object.assign(Object.create(Proto15), {
18777
- [TypeId47]: TypeId47,
18860
+ [TypeId46]: TypeId46,
18778
18861
  name: options.name,
18779
18862
  examples: options.examples ?? [],
18780
18863
  annotations,
@@ -18874,7 +18957,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
18874
18957
  }
18875
18958
  };
18876
18959
 
18877
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
18878
18961
  var toFlagType = (single) => {
18879
18962
  const tag2 = single.primitiveType._tag;
18880
18963
  switch (tag2) {
@@ -19007,7 +19090,7 @@ var fromCommand = (cmd) => {
19007
19090
  };
19008
19091
  };
19009
19092
 
19010
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
19011
19094
  var dedupeGlobalFlags = (flags) => {
19012
19095
  const seen = /* @__PURE__ */ new Set();
19013
19096
  const deduped = [];
@@ -19112,7 +19195,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
19112
19195
  };
19113
19196
  });
19114
19197
 
19115
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
19116
19199
  var action = (options) => ({
19117
19200
  _tag: "Action",
19118
19201
  flag: options.flag,
@@ -19155,7 +19238,7 @@ var Wizard = /* @__PURE__ */ action({
19155
19238
  run: () => void_3
19156
19239
  });
19157
19240
  var Completions = /* @__PURE__ */ action({
19158
- flag: /* @__PURE__ */ choice4("completions", ["bash", "zsh", "fish", "sh"]).pipe(optional4, /* @__PURE__ */ map14((v2) => map(v2, (s3) => s3 === "sh" ? "bash" : s3)), /* @__PURE__ */ withMetavar3("<bash|zsh|fish|sh>"), /* @__PURE__ */ withDescription3("Print shell completion script")),
19241
+ flag: /* @__PURE__ */ choice4("completions", ["bash", "zsh", "fish", "sh"]).pipe(optional5, /* @__PURE__ */ map14((v2) => map(v2, (s3) => s3 === "sh" ? "bash" : s3)), /* @__PURE__ */ withMetavar3("<bash|zsh|fish|sh>"), /* @__PURE__ */ withDescription3("Print shell completion script")),
19159
19242
  run: /* @__PURE__ */ fnUntraced2(function* (shell, {
19160
19243
  command: command2
19161
19244
  }) {
@@ -19165,11 +19248,11 @@ var Completions = /* @__PURE__ */ action({
19165
19248
  })
19166
19249
  });
19167
19250
  var LogLevel = /* @__PURE__ */ setting("log-level")({
19168
- flag: /* @__PURE__ */ choiceWithValue3("log-level", [["all", "All"], ["trace", "Trace"], ["debug", "Debug"], ["info", "Info"], ["warn", "Warn"], ["warning", "Warn"], ["error", "Error"], ["fatal", "Fatal"], ["none", "None"]]).pipe(optional4, /* @__PURE__ */ withDescription3("Sets the minimum log level"), /* @__PURE__ */ withMetavar3("<all|trace|debug|info|warn|warning|error|fatal|none>"))
19251
+ flag: /* @__PURE__ */ choiceWithValue3("log-level", [["all", "All"], ["trace", "Trace"], ["debug", "Debug"], ["info", "Info"], ["warn", "Warn"], ["warning", "Warn"], ["error", "Error"], ["fatal", "Fatal"], ["none", "None"]]).pipe(optional5, /* @__PURE__ */ withDescription3("Sets the minimum log level"), /* @__PURE__ */ withMetavar3("<all|trace|debug|info|warn|warning|error|fatal|none>"))
19169
19252
  });
19170
19253
  var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
19171
19254
 
19172
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
19173
19256
  var CliConfig = class extends (/* @__PURE__ */ Reference("effect/unstable/cli/CliConfig", {
19174
19257
  defaultValue: () => defaults
19175
19258
  })) {
@@ -19178,7 +19261,7 @@ var defaults = {
19178
19261
  builtIns: BuiltIns
19179
19262
  };
19180
19263
 
19181
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
19182
19265
  var Command_exports = {};
19183
19266
  __export(Command_exports, {
19184
19267
  annotate: () => annotate3,
@@ -19203,7 +19286,7 @@ __export(Command_exports, {
19203
19286
  wizard: () => wizard
19204
19287
  });
19205
19288
 
19206
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
19207
19290
  function lex(argv) {
19208
19291
  const endIndex = argv.indexOf("--");
19209
19292
  if (endIndex === -1) {
@@ -19274,7 +19357,7 @@ var lexTokens = (args2) => {
19274
19357
  return tokens;
19275
19358
  };
19276
19359
 
19277
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
19278
19361
  var levenshtein = (a, b2) => {
19279
19362
  const m2 = a.length;
19280
19363
  const n = b2.length;
@@ -19298,7 +19381,7 @@ var suggest = (input, candidates) => {
19298
19381
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
19299
19382
  };
19300
19383
 
19301
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
19302
19385
  var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
19303
19386
  onNone: () => [],
19304
19387
  onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
@@ -19801,7 +19884,7 @@ var scanCommandLevel = (tokens, context3) => {
19801
19884
  return toLeafResult(state);
19802
19885
  };
19803
19886
 
19804
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/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
19805
19888
  var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
19806
19889
  const commandPath = options?.commandPath ?? [command2.name];
19807
19890
  const selected = getCommandAtPath(command2, commandPath);
@@ -20005,8 +20088,8 @@ var wrapCommand = (commandLine) => {
20005
20088
  };
20006
20089
  var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
20007
20090
 
20008
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Command.js
20009
- 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);
20010
20093
  var make34 = (name, config, handler) => {
20011
20094
  const parsedConfig = parseConfig(config ?? {});
20012
20095
  return makeCommand({
@@ -20252,17 +20335,22 @@ var getOutOfScopeGlobalFlagErrors = (allFlags, activeFlags, flagMap, commandPath
20252
20335
  }
20253
20336
  return errors;
20254
20337
  };
20255
- var showHelp = (command2, error2) => gen2(function* () {
20338
+ var showHelp = (command2, error2, renderErrors) => gen2(function* () {
20256
20339
  const {
20257
20340
  builtIns
20258
20341
  } = yield* CliConfig;
20259
20342
  const formatter = yield* Formatter;
20260
20343
  const helpDoc = yield* getHelpForCommandPath(command2, error2.commandPath, builtIns);
20261
20344
  yield* log2(formatter.formatHelpDoc(helpDoc));
20262
- if (error2.errors.length > 0) {
20345
+ if (renderErrors && error2.errors.length > 0) {
20263
20346
  yield* error(formatter.formatErrors(error2.errors));
20264
20347
  }
20265
20348
  });
20349
+ var showUserError = (error2) => gen2(function* () {
20350
+ const formatter = yield* Formatter;
20351
+ yield* error(formatter.formatError(error2));
20352
+ error2[errorReported] = false;
20353
+ });
20266
20354
  var run5 = /* @__PURE__ */ dual(2, (command2, config) => Stdio.use(({
20267
20355
  args: args2
20268
20356
  }) => flatMap3(args2, (args3) => runWith2(command2, config)(args3))));
@@ -20334,7 +20422,10 @@ var runWith2 = (command2, config) => {
20334
20422
  }));
20335
20423
  if (shouldRun) {
20336
20424
  yield* log2();
20337
- yield* runWith2(command2, config)(wizardArgs.slice(1));
20425
+ yield* runWith2(command2, {
20426
+ ...config,
20427
+ renderErrors: false
20428
+ })(wizardArgs.slice(1));
20338
20429
  }
20339
20430
  }).pipe(catchTag2("QuitError", () => log2(renderQuit())));
20340
20431
  }
@@ -20367,7 +20458,7 @@ var runWith2 = (command2, config) => {
20367
20458
  onSome: (level) => make3(MinimumLogLevel2, level)
20368
20459
  });
20369
20460
  yield* provideContext2(program, services);
20370
- }, 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));
20371
20462
  };
20372
20463
 
20373
20464
  // src/Domain.ts