create-efffrida-app 0.0.15 → 0.0.17

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 +744 -652
  2. package/package.json +4 -4
package/dist/bin.cjs CHANGED
@@ -55,7 +55,7 @@ var __export = (target, all4) => {
55
55
  __defProp(target, name, { get: all4[name], enumerable: true });
56
56
  };
57
57
 
58
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effect.js
58
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Effect.js
59
59
  var Effect_exports = {};
60
60
  __export(Effect_exports, {
61
61
  Do: () => Do2,
@@ -139,6 +139,7 @@ __export(Effect_exports, {
139
139
  fromOption: () => fromOption3,
140
140
  fromResult: () => fromResult2,
141
141
  gen: () => gen2,
142
+ head: () => head2,
142
143
  ignore: () => ignore2,
143
144
  ignoreCause: () => ignoreCause2,
144
145
  interrupt: () => interrupt2,
@@ -159,11 +160,11 @@ __export(Effect_exports, {
159
160
  logWithLevel: () => logWithLevel2,
160
161
  makeSpan: () => makeSpan2,
161
162
  makeSpanScoped: () => makeSpanScoped2,
162
- map: () => map6,
163
+ map: () => map7,
163
164
  mapBoth: () => mapBoth2,
164
165
  mapBothEager: () => mapBothEager2,
165
166
  mapEager: () => mapEager2,
166
- mapError: () => mapError3,
167
+ mapError: () => mapError2,
167
168
  mapErrorEager: () => mapErrorEager2,
168
169
  match: () => match6,
169
170
  matchCause: () => matchCause2,
@@ -287,7 +288,7 @@ __export(Effect_exports, {
287
288
  zipWith: () => zipWith2
288
289
  });
289
290
 
290
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Pipeable.js
291
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Pipeable.js
291
292
  var pipeArguments = (self, args2) => {
292
293
  switch (args2.length) {
293
294
  case 0:
@@ -331,7 +332,7 @@ var Class = /* @__PURE__ */ (function() {
331
332
  return PipeableBase;
332
333
  })();
333
334
 
334
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Function.js
335
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Function.js
335
336
  var dual = function(arity, body) {
336
337
  if (typeof arity === "function") {
337
338
  return function() {
@@ -442,7 +443,7 @@ function memoizeIdempotent(f2) {
442
443
  };
443
444
  }
444
445
 
445
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/equal.js
446
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/equal.js
446
447
  var getAllObjectKeys = (obj) => {
447
448
  const keys2 = new Set(Reflect.ownKeys(obj));
448
449
  if (obj.constructor === Object) return keys2;
@@ -465,7 +466,7 @@ var getAllObjectKeys = (obj) => {
465
466
  };
466
467
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
467
468
 
468
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Predicate.js
469
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Predicate.js
469
470
  function isString(input) {
470
471
  return typeof input === "string";
471
472
  }
@@ -511,7 +512,7 @@ function isIterable(input) {
511
512
  return hasProperty(input, Symbol.iterator) || isString(input);
512
513
  }
513
514
 
514
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Hash.js
515
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Hash.js
515
516
  var symbol = "~effect/interfaces/Hash";
516
517
  var hash = (self) => {
517
518
  switch (typeof self) {
@@ -635,7 +636,7 @@ function withVisitedTracking(obj, fn3) {
635
636
  return result3;
636
637
  }
637
638
 
638
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Equal.js
639
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Equal.js
639
640
  var symbol2 = "~effect/interfaces/Equal";
640
641
  function equals() {
641
642
  if (arguments.length === 1) {
@@ -827,7 +828,7 @@ function makeCompareSet(equivalence) {
827
828
  var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
828
829
  var isEqual = (u2) => hasProperty(u2, symbol2);
829
830
 
830
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Redactable.js
831
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Redactable.js
831
832
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
832
833
  var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
833
834
  function redact(u2) {
@@ -849,7 +850,7 @@ var emptyContext = {
849
850
  }
850
851
  };
851
852
 
852
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Formatter.js
853
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Formatter.js
853
854
  function format(input, options) {
854
855
  const space = options?.space ?? 0;
855
856
  const ancestors = /* @__PURE__ */ new WeakSet();
@@ -867,23 +868,6 @@ function format(input, options) {
867
868
  }
868
869
  };
869
870
  function recur(v2, d = 0) {
870
- if (Array.isArray(v2)) {
871
- if (ancestors.has(v2)) return CIRCULAR;
872
- ancestors.add(v2);
873
- const output = !gap || v2.length <= 1 ? `[${v2.map((x) => recur(x, d)).join(",")}]` : `[
874
- ${ind(d + 1)}${v2.map((x) => recur(x, d + 1)).join(",\n" + ind(d + 1))}
875
- ${ind(d)}]`;
876
- ancestors.delete(v2);
877
- return output;
878
- }
879
- if (v2 instanceof Date) return formatDate(v2);
880
- if (!options?.ignoreToString && hasProperty(v2, "toString") && typeof v2["toString"] === "function" && v2["toString"] !== Object.prototype.toString && v2["toString"] !== Array.prototype.toString) {
881
- const s3 = safeToString(v2);
882
- if (v2 instanceof Error && v2.cause) {
883
- return `${s3} (cause: ${recur(v2.cause, d)})`;
884
- }
885
- return s3;
886
- }
887
871
  if (typeof v2 === "string") return JSON.stringify(v2);
888
872
  if (typeof v2 === "number" || v2 == null || typeof v2 === "boolean" || typeof v2 === "symbol") return String(v2);
889
873
  if (typeof v2 === "bigint") return String(v2) + "n";
@@ -892,7 +876,16 @@ ${ind(d)}]`;
892
876
  ancestors.add(v2);
893
877
  let output;
894
878
  if (symbolRedactable in v2) {
895
- output = format(getRedacted(v2));
879
+ output = recur(getRedacted(v2), d);
880
+ } else if (Array.isArray(v2)) {
881
+ output = !gap || v2.length <= 1 ? `[${v2.map((x) => recur(x, d)).join(",")}]` : `[
882
+ ${ind(d + 1)}${v2.map((x) => recur(x, d + 1)).join(",\n" + ind(d + 1))}
883
+ ${ind(d)}]`;
884
+ } else if (v2 instanceof Date) {
885
+ output = formatDate(v2);
886
+ } else if (!options?.ignoreToString && hasProperty(v2, "toString") && typeof v2["toString"] === "function" && v2["toString"] !== Object.prototype.toString && v2["toString"] !== Array.prototype.toString) {
887
+ const s3 = safeToString(v2);
888
+ output = v2 instanceof Error && v2.cause ? `${s3} (cause: ${recur(v2.cause, d)})` : s3;
896
889
  } else if (Symbol.iterator in v2) {
897
890
  output = `${v2.constructor.name}(${recur(Array.from(v2), d)})`;
898
891
  } else {
@@ -938,8 +931,12 @@ function safeToString(input) {
938
931
  }
939
932
  function formatJson(input, options) {
940
933
  const ancestors = [];
941
- return JSON.stringify(input, function(_key, value3) {
942
- const redacted5 = redact(value3);
934
+ return JSON.stringify(input, function(key, value3) {
935
+ const original = Object.getOwnPropertyDescriptor(this, key)?.value;
936
+ const redacted5 = hasProperty(original, symbolRedactable) ? redact(original) : redact(value3);
937
+ if (typeof redacted5 === "bigint") {
938
+ return format(redacted5);
939
+ }
943
940
  if (typeof redacted5 !== "object" || redacted5 === null) {
944
941
  return redacted5;
945
942
  }
@@ -954,19 +951,20 @@ function formatJson(input, options) {
954
951
  }, options?.space) ?? "null";
955
952
  }
956
953
 
957
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Inspectable.js
954
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Inspectable.js
958
955
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
959
956
  var toJson = (input) => {
960
957
  try {
958
+ input = redact(input);
961
959
  if (hasProperty(input, "toJSON") && isFunction(input["toJSON"]) && input["toJSON"].length === 0) {
962
960
  return input.toJSON();
963
961
  } else if (Array.isArray(input)) {
964
962
  return input.map(toJson);
965
963
  }
964
+ return input;
966
965
  } catch {
967
966
  return "[toJSON threw]";
968
967
  }
969
- return redact(input);
970
968
  };
971
969
  var toStringUnknown = (u2, whitespace = 2) => {
972
970
  if (typeof u2 === "string") {
@@ -975,7 +973,9 @@ var toStringUnknown = (u2, whitespace = 2) => {
975
973
  try {
976
974
  return typeof u2 === "object" ? formatJson(u2, {
977
975
  space: whitespace
978
- }) : String(u2);
976
+ }) : format(u2, {
977
+ space: whitespace
978
+ });
979
979
  } catch {
980
980
  return String(u2);
981
981
  }
@@ -1018,7 +1018,7 @@ var Class2 = class {
1018
1018
  }
1019
1019
  };
1020
1020
 
1021
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Utils.js
1021
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Utils.js
1022
1022
  var SingleShotGen = class _SingleShotGen {
1023
1023
  called = false;
1024
1024
  self;
@@ -1078,7 +1078,7 @@ var pickInternalCall = () => {
1078
1078
  };
1079
1079
  var internalCall = /* @__PURE__ */ pickInternalCall();
1080
1080
 
1081
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/record.js
1081
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/record.js
1082
1082
  function assignProperty(self, key, value3) {
1083
1083
  if (key === "__proto__") {
1084
1084
  Object.defineProperty(self, key, {
@@ -1099,7 +1099,7 @@ function assignProperties(self, source) {
1099
1099
  }
1100
1100
  }
1101
1101
 
1102
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/core.js
1102
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/core.js
1103
1103
  var EffectTypeId = `~effect/Effect`;
1104
1104
  var ExitTypeId = `~effect/Exit`;
1105
1105
  var effectVariance = {
@@ -1442,13 +1442,13 @@ var done = (value3) => {
1442
1442
  return exitFail(Done(value3));
1443
1443
  };
1444
1444
 
1445
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effectable.js
1445
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Effectable.js
1446
1446
  var Prototype2 = (options) => makePrimitiveProto({
1447
1447
  op: options.label,
1448
1448
  [evaluate]: options.evaluate
1449
1449
  });
1450
1450
 
1451
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Equivalence.js
1451
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Equivalence.js
1452
1452
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1453
1453
  var isStrictEquivalent = (x, y) => x === y;
1454
1454
  var strictEqual = () => isStrictEquivalent;
@@ -1475,7 +1475,7 @@ function Array_(item) {
1475
1475
  });
1476
1476
  }
1477
1477
 
1478
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/doNotation.js
1478
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/doNotation.js
1479
1479
  var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
1480
1480
  ...a,
1481
1481
  [name]: f2(a)
@@ -1488,7 +1488,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
1488
1488
  [name]: b2
1489
1489
  }))));
1490
1490
 
1491
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/option.js
1491
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/option.js
1492
1492
  var TypeId = "~effect/data/Option";
1493
1493
  var CommonProto = {
1494
1494
  [TypeId]: {
@@ -1554,7 +1554,7 @@ var some = (value3) => {
1554
1554
  return a;
1555
1555
  };
1556
1556
 
1557
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/result.js
1557
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/result.js
1558
1558
  var TypeId2 = "~effect/data/Result";
1559
1559
  var CommonProto2 = {
1560
1560
  [TypeId2]: {
@@ -1621,7 +1621,7 @@ var succeed = (success) => {
1621
1621
  return a;
1622
1622
  };
1623
1623
 
1624
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Order.js
1624
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Order.js
1625
1625
  function make2(compare) {
1626
1626
  return (self, that) => self === that ? 0 : compare(self, that);
1627
1627
  }
@@ -1635,7 +1635,7 @@ var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b
1635
1635
  var Date2 = /* @__PURE__ */ mapInput(Number2, (date6) => date6.getTime());
1636
1636
  var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
1637
1637
 
1638
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Option.js
1638
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Option.js
1639
1639
  var none2 = () => none;
1640
1640
  var some2 = some;
1641
1641
  var isOption2 = isOption;
@@ -1655,7 +1655,7 @@ var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2(
1655
1655
  var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
1656
1656
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
1657
1657
 
1658
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Context.js
1658
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Context.js
1659
1659
  var ServiceTypeId = "~effect/Context/Service";
1660
1660
  var Service = function() {
1661
1661
  function KeyClass() {
@@ -1754,13 +1754,13 @@ var lookup = (self, key) => {
1754
1754
  };
1755
1755
  var makeUnsafe = (mapUnsafe) => makeImpl(void 0, mapUnsafe, void 0, 0);
1756
1756
  var Proto = {
1757
+ get mapUnsafe() {
1758
+ return flatten(this);
1759
+ },
1757
1760
  ...PipeInspectableProto,
1758
1761
  [TypeId3]: {
1759
1762
  _Services: (_2) => _2
1760
1763
  },
1761
- get mapUnsafe() {
1762
- return flatten(this);
1763
- },
1764
1764
  toJSON() {
1765
1765
  return {
1766
1766
  _id: "Context",
@@ -1790,20 +1790,21 @@ var isReference = (u2) => !!u2[ReferenceTypeId];
1790
1790
  var empty = () => emptyContext2;
1791
1791
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map());
1792
1792
  var make3 = (key, service3) => makeUnsafe(/* @__PURE__ */ new Map([[key.key, service3]]));
1793
- var add = /* @__PURE__ */ dual(3, (self, key, service3) => {
1793
+ var add = /* @__PURE__ */ dual(3, (self, key, service3) => addUnsafe(self, key.key, service3));
1794
+ var addUnsafe = (self, key, service3) => {
1794
1795
  const impl = self;
1795
- const cacheRoot = cacheKeys.has(key.key) ? void 0 : impl.cacheRoot;
1796
+ const cacheRoot = cacheKeys.has(key) ? void 0 : impl.cacheRoot;
1796
1797
  if (impl.depth >= MaxDepth) {
1797
1798
  const map15 = new Map(impl.mapUnsafe);
1798
- map15.set(key.key, service3);
1799
+ map15.set(key, service3);
1799
1800
  return makeImpl(cacheRoot, map15, void 0, 0);
1800
1801
  }
1801
1802
  return makeImpl(cacheRoot, impl.base, {
1802
- key: key.key,
1803
+ key,
1803
1804
  value: service3,
1804
1805
  parent: impl.overlay
1805
1806
  }, impl.depth + 1);
1806
- });
1807
+ };
1807
1808
  var getOrUndefined2 = /* @__PURE__ */ dual(2, (self, key) => getOrUndefinedUnsafe(self, key.key));
1808
1809
  var getOrUndefinedUnsafe = (self, key) => {
1809
1810
  const value3 = lookup(self, key);
@@ -1855,7 +1856,7 @@ var mergeAll = (...ctxs) => {
1855
1856
  };
1856
1857
  var Reference = Service;
1857
1858
 
1858
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Duration.js
1859
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Duration.js
1859
1860
  var TypeId4 = "~effect/time/Duration";
1860
1861
  var bigint0 = /* @__PURE__ */ BigInt(0);
1861
1862
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -1968,7 +1969,16 @@ var negativeInfinityDurationValue = {
1968
1969
  var DurationProto = {
1969
1970
  [TypeId4]: TypeId4,
1970
1971
  [symbol]() {
1971
- return structure(this.value);
1972
+ switch (this.value._tag) {
1973
+ case "Millis": {
1974
+ const nanos2 = this.value.millis * 1e6;
1975
+ return Number.isFinite(nanos2) ? hash(roundTiesAwayFromZero(nanos2)) : number(this.value.millis);
1976
+ }
1977
+ case "Nanos":
1978
+ return hash(this.value.nanos);
1979
+ default:
1980
+ return structure(this.value);
1981
+ }
1972
1982
  },
1973
1983
  [symbol2](that) {
1974
1984
  return isDuration(that) && equals2(this, that);
@@ -2114,10 +2124,10 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
2114
2124
  }));
2115
2125
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
2116
2126
 
2117
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/array.js
2127
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/array.js
2118
2128
  var isArrayNonEmpty = (self) => self.length > 0;
2119
2129
 
2120
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Result.js
2130
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Result.js
2121
2131
  var succeed2 = succeed;
2122
2132
  var fail2 = fail;
2123
2133
  var try_ = (evaluate2) => {
@@ -2142,10 +2152,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
2142
2152
  onSuccess
2143
2153
  }) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
2144
2154
 
2145
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Tuple.js
2155
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Tuple.js
2146
2156
  var makeEquivalence = Tuple;
2147
2157
 
2148
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Iterable.js
2158
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Iterable.js
2149
2159
  var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
2150
2160
  let i = 0;
2151
2161
  for (const a of self) {
@@ -2188,7 +2198,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
2188
2198
  }
2189
2199
  }));
2190
2200
 
2191
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Record.js
2201
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Record.js
2192
2202
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
2193
2203
  var map2 = /* @__PURE__ */ dual(2, (self, f2) => {
2194
2204
  const out = {
@@ -2213,7 +2223,7 @@ var makeEquivalence2 = (equivalence) => {
2213
2223
  return (self, that) => is4(self, that) && is4(that, self);
2214
2224
  };
2215
2225
 
2216
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Array.js
2226
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Array.js
2217
2227
  var Array2 = globalThis.Array;
2218
2228
  var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
2219
2229
  var ensure = (self) => Array2.isArray(self) ? self : [self];
@@ -2310,16 +2320,7 @@ var dedupe = (self) => {
2310
2320
  return out;
2311
2321
  };
2312
2322
 
2313
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Filter.js
2314
- var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2315
- const leftOut = left(input);
2316
- if (isFailure2(leftOut)) return fail2(input);
2317
- const rightOut = right(leftOut.success);
2318
- if (isFailure2(rightOut)) return fail2(input);
2319
- return rightOut;
2320
- });
2321
-
2322
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Scheduler.js
2323
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Scheduler.js
2323
2324
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
2324
2325
  fiberCached: true,
2325
2326
  defaultValue: () => new MixedScheduler()
@@ -2333,7 +2334,7 @@ var setImmediate = "setImmediate" in globalThis ? (f2) => {
2333
2334
  };
2334
2335
  var setMicrotask = (f2) => {
2335
2336
  let cancelled = false;
2336
- queueMicrotask(() => {
2337
+ Promise.resolve().then(() => {
2337
2338
  if (!cancelled) f2();
2338
2339
  });
2339
2340
  return () => {
@@ -2456,7 +2457,47 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
2456
2457
  defaultValue: () => false
2457
2458
  });
2458
2459
 
2459
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Tracer.js
2460
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Data.js
2461
+ var taggedEnum = () => new Proxy({}, {
2462
+ get(_target, tag2, _receiver) {
2463
+ if (tag2 === "$is") {
2464
+ return isTagged;
2465
+ } else if (tag2 === "$match") {
2466
+ return taggedMatch;
2467
+ }
2468
+ return (props) => ({
2469
+ ...props,
2470
+ _tag: tag2
2471
+ });
2472
+ }
2473
+ });
2474
+ function taggedMatch() {
2475
+ if (arguments.length === 1) {
2476
+ const cases2 = arguments[0];
2477
+ return function(value4) {
2478
+ return cases2[value4._tag](value4);
2479
+ };
2480
+ }
2481
+ const value3 = arguments[0];
2482
+ const cases = arguments[1];
2483
+ return cases[value3._tag](value3);
2484
+ }
2485
+ var Error3 = Error2;
2486
+ var TaggedError2 = TaggedError;
2487
+ var randomHex = (length) => {
2488
+ let result3 = "";
2489
+ for (let i = length >>> 3; i > 0; i--) {
2490
+ const word = Math.random() * 4294967296 >>> 0;
2491
+ result3 += byteToHex[word >>> 24] + byteToHex[word >>> 16 & 255] + byteToHex[word >>> 8 & 255] + byteToHex[word & 255];
2492
+ }
2493
+ return result3;
2494
+ };
2495
+ var byteToHex = [];
2496
+ for (let i = 0; i < 256; i++) {
2497
+ byteToHex.push(i.toString(16).padStart(2, "0"));
2498
+ }
2499
+
2500
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Tracer.js
2460
2501
  var ParentSpanKey = "effect/Tracer/ParentSpan";
2461
2502
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
2462
2503
  fiberCached: true
@@ -2506,8 +2547,8 @@ var NativeSpan = class {
2506
2547
  startTime: options.startTime
2507
2548
  };
2508
2549
  this.attributes = /* @__PURE__ */ new Map();
2509
- this.traceId = getOrUndefined(options.parent)?.traceId ?? randomHexString(32);
2510
- this.spanId = randomHexString(16);
2550
+ this.traceId = getOrUndefined(options.parent)?.traceId ?? randomHex(32);
2551
+ this.spanId = randomHex(16);
2511
2552
  }
2512
2553
  end(endTime, exit3) {
2513
2554
  this.status = {
@@ -2527,22 +2568,11 @@ var NativeSpan = class {
2527
2568
  this.links.push(...links);
2528
2569
  }
2529
2570
  };
2530
- var randomHexString = /* @__PURE__ */ (function() {
2531
- const characters = "abcdef0123456789";
2532
- const charactersLength = characters.length;
2533
- return function(length) {
2534
- let result3 = "";
2535
- for (let i = 0; i < length; i++) {
2536
- result3 += characters.charAt(Math.floor(Math.random() * charactersLength));
2537
- }
2538
- return result3;
2539
- };
2540
- })();
2541
2571
 
2542
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/metric.js
2572
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/metric.js
2543
2573
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
2544
2574
 
2545
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/references.js
2575
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/references.js
2546
2576
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
2547
2577
  defaultValue: () => /* @__PURE__ */ new Set()
2548
2578
  });
@@ -2577,7 +2607,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
2577
2607
  defaultValue: () => []
2578
2608
  });
2579
2609
 
2580
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/stackTraceLimit.js
2610
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/stackTraceLimit.js
2581
2611
  var isStackTraceLimitWritable = () => {
2582
2612
  const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
2583
2613
  if (desc === void 0) {
@@ -2593,7 +2623,7 @@ var setStackTraceLimit = (value3) => {
2593
2623
  }
2594
2624
  };
2595
2625
 
2596
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/tracer.js
2626
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/tracer.js
2597
2627
  var addSpanStackTrace = (options) => {
2598
2628
  if (options?.captureStackTrace === false) {
2599
2629
  return options;
@@ -2624,7 +2654,7 @@ var makeStackCleaner = (line) => (stack) => {
2624
2654
  };
2625
2655
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
2626
2656
 
2627
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/effect.js
2657
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/effect.js
2628
2658
  var Interrupt = class extends ReasonBase {
2629
2659
  fiberId;
2630
2660
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -2922,6 +2952,7 @@ var FiberImpl = class {
2922
2952
  }
2923
2953
  this._observers.push(cb);
2924
2954
  return () => {
2955
+ if (this._exit) return;
2925
2956
  const index = this._observers.indexOf(cb);
2926
2957
  if (index >= 0) {
2927
2958
  this._observers.splice(index, 1);
@@ -3180,7 +3211,7 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
3180
3211
  var yieldNow = /* @__PURE__ */ yieldNowWith(0);
3181
3212
  var succeedSome = (a) => succeed3(some2(a));
3182
3213
  var succeedNone = /* @__PURE__ */ succeed3(/* @__PURE__ */ none2());
3183
- var transposeOption = (self) => isNone2(self) ? succeedNone : map4(self.value, some2);
3214
+ var transposeOption = (self) => isNone2(self) ? succeedNone : map5(self.value, some2);
3184
3215
  var failCauseSync = (evaluate2) => suspend(() => failCause(internalCall(evaluate2)));
3185
3216
  var die = (defect) => exitDie(defect);
3186
3217
  var failSync = (error2) => suspend(() => fail3(internalCall(error2)));
@@ -3299,7 +3330,7 @@ var fn = function() {
3299
3330
  return makeFn(name, arguments[0], defError, Array.prototype.slice.call(arguments, 1), nameFirst, spanOptions);
3300
3331
  };
3301
3332
  var makeFn = (name, bodyOrOptions, defError, pipeables, addSpan, spanOptions) => {
3302
- const body = typeof bodyOrOptions === "function" ? bodyOrOptions : pipeables.pop().bind(bodyOrOptions.self);
3333
+ const body = typeof bodyOrOptions === "function" ? bodyOrOptions : pipeables.shift().bind(bodyOrOptions.self);
3303
3334
  return defineFunctionLength(body.length, function(...args2) {
3304
3335
  let result3 = suspend(() => {
3305
3336
  const iter = body.apply(this, arguments);
@@ -3391,7 +3422,7 @@ var as = /* @__PURE__ */ dual(2, (self, value3) => {
3391
3422
  const b2 = succeed3(value3);
3392
3423
  return flatMap2(self, (_2) => b2);
3393
3424
  });
3394
- var asSome = (self) => map4(self, some2);
3425
+ var asSome = (self) => map5(self, some2);
3395
3426
  var flip = (self) => matchEffect(self, {
3396
3427
  onFailure: succeed3,
3397
3428
  onSuccess: fail3
@@ -3495,9 +3526,9 @@ var flatMapEager = /* @__PURE__ */ dual(2, (self, f2) => {
3495
3526
  return flatMap2(self, f2);
3496
3527
  });
3497
3528
  var flatten2 = (self) => flatMap2(self, identity);
3498
- var map4 = /* @__PURE__ */ dual(2, (self, f2) => flatMap2(self, (a) => succeed3(internalCall(() => f2(a)))));
3499
- var mapEager = /* @__PURE__ */ dual(2, (self, f2) => effectIsExit(self) ? exitMap(self, f2) : map4(self, f2));
3500
- var mapErrorEager = /* @__PURE__ */ dual(2, (self, f2) => effectIsExit(self) ? exitMapError(self, f2) : mapError2(self, f2));
3529
+ var map5 = /* @__PURE__ */ dual(2, (self, f2) => flatMap2(self, (a) => succeed3(internalCall(() => f2(a)))));
3530
+ var mapEager = /* @__PURE__ */ dual(2, (self, f2) => effectIsExit(self) ? exitMap(self, f2) : map5(self, f2));
3531
+ var mapErrorEager = /* @__PURE__ */ dual(2, (self, f2) => effectIsExit(self) ? exitMapError(self, f2) : mapError(self, f2));
3501
3532
  var mapBothEager = /* @__PURE__ */ dual(2, (self, options) => effectIsExit(self) ? exitMapBoth(self, options) : mapBoth(self, options));
3502
3533
  var catchEager = /* @__PURE__ */ dual(2, (self, f2) => {
3503
3534
  if (effectIsExit(self)) {
@@ -3538,7 +3569,7 @@ var exitAsVoidAll = (exits) => {
3538
3569
  };
3539
3570
  var service = (service3) => service3;
3540
3571
  var serviceOption = (service3) => withFiber((fiber3) => succeed3(getOption(fiber3.context, service3)));
3541
- var serviceOptional = (service3) => withFiber((fiber3) => fiber3.context.mapUnsafe.has(service3.key) ? succeed3(getUnsafe(fiber3.context, service3)) : fail3(new NoSuchElementError()));
3572
+ var serviceOptional = (service3) => withFiber((fiber3) => fromOption2(getOption(fiber3.context, service3)));
3542
3573
  var updateContext = /* @__PURE__ */ dual(2, (self, f2) => withFiber((fiber3) => {
3543
3574
  const prevContext = fiber3.context;
3544
3575
  const nextContext = f2(prevContext);
@@ -3586,16 +3617,12 @@ var provideService = function() {
3586
3617
  }
3587
3618
  return dual(3, (self, service3, impl) => provideServiceImpl(self, service3, impl)).apply(this, arguments);
3588
3619
  };
3589
- var provideServiceImpl = (self, service3, implementation) => updateContext(self, (s3) => {
3590
- const prev = s3.mapUnsafe.get(service3.key);
3591
- if (prev === implementation) return s3;
3592
- return add(s3, service3, implementation);
3593
- });
3620
+ var provideServiceImpl = (self, service3, implementation) => updateContext(self, add(service3, implementation));
3594
3621
  var provideServiceEffect = /* @__PURE__ */ dual(3, (self, service3, acquire) => flatMap2(acquire, (implementation) => provideService(self, service3, implementation)));
3595
3622
  var zip = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options) => zipWith(self, that, (a, a2) => [a, a2], options));
3596
- var zipWith = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, f2, options) => options?.concurrent ? map4(all([self, that], {
3623
+ var zipWith = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, f2, options) => options?.concurrent ? map5(all([self, that], {
3597
3624
  concurrency: 2
3598
- }), ([a, a2]) => internalCall(() => f2(a, a2))) : flatMap2(self, (a) => map4(that, (a2) => internalCall(() => f2(a, a2)))));
3625
+ }), ([a, a2]) => internalCall(() => f2(a, a2))) : flatMap2(self, (a) => map5(that, (a2) => internalCall(() => f2(a, a2)))));
3599
3626
  var filterOrFail = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, predicate, orFailWith) => filterOrElse(self, predicate, orFailWith ? (a) => fail3(orFailWith(a)) : () => fail3(new NoSuchElementError())));
3600
3627
  var when = /* @__PURE__ */ dual(2, (self, condition) => flatMap2(condition, (pass) => pass ? asSome(self) : succeedNone));
3601
3628
  var replicate = /* @__PURE__ */ dual(2, (self, n) => Array.from({
@@ -3701,7 +3728,7 @@ var unwrapReason = /* @__PURE__ */ dual(2, (self, errorTag) => catchFilter(self,
3701
3728
  }
3702
3729
  return fail2(e);
3703
3730
  }, fail3));
3704
- var mapError2 = /* @__PURE__ */ dual(2, (self, f2) => catch_(self, (error2) => failSync(() => f2(error2))));
3731
+ var mapError = /* @__PURE__ */ dual(2, (self, f2) => catch_(self, (error2) => failSync(() => f2(error2))));
3705
3732
  var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchEffect(self, {
3706
3733
  onFailure: (e) => failSync(() => options.onFailure(e)),
3707
3734
  onSuccess: (a) => sync(() => options.onSuccess(a))
@@ -3835,7 +3862,7 @@ var timeout = /* @__PURE__ */ dual(2, (self, duration) => timeoutOrElse(self, {
3835
3862
  var timeoutOption = /* @__PURE__ */ dual(2, (self, duration) => raceFirst(asSome(self), as(sleep(duration), none2())));
3836
3863
  var timed = (self) => clockWith((clock) => {
3837
3864
  const start = clock.monotonicTimeNanosUnsafe();
3838
- return map4(self, (a) => [nanos(clock.monotonicTimeNanosUnsafe() - start), a]);
3865
+ return map5(self, (a) => [nanos(clock.monotonicTimeNanosUnsafe() - start), a]);
3839
3866
  });
3840
3867
  var ScopeTypeId = "~effect/Scope";
3841
3868
  var ScopeCloseableTypeId = "~effect/Scope/Closeable";
@@ -3862,6 +3889,7 @@ var scopeCloseUnsafe = (self, exit_) => {
3862
3889
  }
3863
3890
  return scopeCloseFinalizers(self, finalizers, exit_);
3864
3891
  };
3892
+ var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause(finalizer, (cause) => failCause(causeCombine(exit_.cause, cause)));
3865
3893
  var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced(function* (self, finalizers, exit_) {
3866
3894
  let exits = [];
3867
3895
  const fibers = [];
@@ -3963,7 +3991,7 @@ var onExitPrimitive = /* @__PURE__ */ makePrimitive({
3963
3991
  [contE](cause, _2, exit3) {
3964
3992
  exit3 ??= exitFailCause(cause);
3965
3993
  const eff = this[args][1](exit3);
3966
- return eff ? flatMap2(eff, (_3) => exit3) : exit3;
3994
+ return eff ? flatMap2(combineFinalizerCause(exit3, eff), (_3) => exit3) : exit3;
3967
3995
  }
3968
3996
  });
3969
3997
  var onExit = /* @__PURE__ */ dual(2, onExitPrimitive);
@@ -4022,7 +4050,7 @@ var cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, ttl) => sync(() =>
4022
4050
  exit3 = void 0;
4023
4051
  })];
4024
4052
  }));
4025
- var cachedWithTTL = /* @__PURE__ */ dual(2, (self, timeToLive) => map4(cachedInvalidateWithTTL(self, timeToLive), (tuple2) => tuple2[0]));
4053
+ var cachedWithTTL = /* @__PURE__ */ dual(2, (self, timeToLive) => map5(cachedInvalidateWithTTL(self, timeToLive), (tuple2) => tuple2[0]));
4026
4054
  var cached = (self) => cachedWithTTL(self, infinity);
4027
4055
  var interrupt = /* @__PURE__ */ withFiber((fiber3) => failCause(causeInterrupt(fiber3.id)));
4028
4056
  var uninterruptible = (self) => withFiber((fiber3) => {
@@ -4063,7 +4091,7 @@ var interruptibleMask = (f2) => withFiber((fiber3) => {
4063
4091
  const effect2 = f2(uninterruptible);
4064
4092
  return interrupted ?? effect2;
4065
4093
  });
4066
- var abortSignal = /* @__PURE__ */ map4(/* @__PURE__ */ acquireRelease(/* @__PURE__ */ sync(() => new AbortController()), (controller) => sync(() => controller.abort())), (_2) => _2.signal);
4094
+ var abortSignal = /* @__PURE__ */ map5(/* @__PURE__ */ acquireRelease(/* @__PURE__ */ sync(() => new AbortController()), (controller) => sync(() => controller.abort())), (_2) => _2.signal);
4067
4095
  var all = (arg, options) => {
4068
4096
  if (isIterable(arg)) {
4069
4097
  return options?.mode === "result" ? forEach(arg, result, options) : forEach(arg, identity, options);
@@ -4072,7 +4100,7 @@ var all = (arg, options) => {
4072
4100
  }
4073
4101
  return suspend(() => {
4074
4102
  const out = {};
4075
- return as(forEach(Object.entries(arg), ([key, effect2]) => map4(options?.mode === "result" ? result(effect2) : effect2, (value3) => {
4103
+ return as(forEach(Object.entries(arg), ([key, effect2]) => map5(options?.mode === "result" ? result(effect2) : effect2, (value3) => {
4076
4104
  assignProperty(out, key, value3);
4077
4105
  }), {
4078
4106
  discard: true,
@@ -4080,14 +4108,14 @@ var all = (arg, options) => {
4080
4108
  }), out);
4081
4109
  });
4082
4110
  };
4083
- var partition2 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f2, options) => map4(forEach(elements, (a, i) => result(f2(a, i)), options), (results) => partition(results, identity)));
4111
+ var partition2 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f2, options) => map5(forEach(elements, (a, i) => result(f2(a, i)), options), (results) => partition(results, identity)));
4084
4112
  var reduce2 = /* @__PURE__ */ dual(3, (elements, zero2, f2) => {
4085
4113
  const arr = fromIterable(elements);
4086
4114
  if (arr.length === 0) return sync(zero2);
4087
4115
  return suspend(() => {
4088
4116
  let index = 0;
4089
4117
  let state = zero2();
4090
- return map4(whileLoop({
4118
+ return map5(whileLoop({
4091
4119
  while: () => index < arr.length,
4092
4120
  body: () => f2(state, arr[index], index),
4093
4121
  step(next) {
@@ -4179,6 +4207,10 @@ var forEach = /* @__PURE__ */ dual((args2) => typeof args2[1] === "function", (i
4179
4207
  });
4180
4208
  return eff ? as(eff, out) : succeed3(out);
4181
4209
  }));
4210
+ var head = (self) => flatMap2(self, (elements) => {
4211
+ const result3 = elements[Symbol.iterator]().next();
4212
+ return result3.done ? fail3(new NoSuchElementError()) : succeed3(result3.value);
4213
+ });
4182
4214
  var forEachSequential = (iterable, f2, options) => suspend(() => {
4183
4215
  const out = options?.discard ? void 0 : [];
4184
4216
  const iterator = iterable[Symbol.iterator]();
@@ -4365,7 +4397,7 @@ var filter3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(
4365
4397
  if (result3) out.push(a);
4366
4398
  return void_;
4367
4399
  }
4368
- return map4(result3, (keep) => {
4400
+ return map5(result3, (keep) => {
4369
4401
  if (keep) {
4370
4402
  out.push(a);
4371
4403
  }
@@ -4387,7 +4419,7 @@ var filterMap = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffec
4387
4419
  }));
4388
4420
  var filterMapEffect = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, filter10, options) => suspend(() => {
4389
4421
  const out = [];
4390
- return as(forEach(elements, (a) => map4(filter10(a), (result3) => {
4422
+ return as(forEach(elements, (a) => map5(filter10(a), (result3) => {
4391
4423
  if (isSuccess2(result3)) {
4392
4424
  out.push(result3.success);
4393
4425
  }
@@ -4397,9 +4429,9 @@ var filterMapEffect = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !i
4397
4429
  }), out);
4398
4430
  }));
4399
4431
  var Do = /* @__PURE__ */ succeed3({});
4400
- var bindTo2 = /* @__PURE__ */ bindTo(map4);
4401
- var bind2 = /* @__PURE__ */ bind(map4, flatMap2);
4402
- var let_2 = /* @__PURE__ */ let_(map4);
4432
+ var bindTo2 = /* @__PURE__ */ bindTo(map5);
4433
+ var bind2 = /* @__PURE__ */ bind(map5, flatMap2);
4434
+ var let_2 = /* @__PURE__ */ let_(map5);
4403
4435
  var forkChild = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, options) => withFiber((fiber3) => {
4404
4436
  interruptChildrenPatch();
4405
4437
  return succeed3(forkUnsafe(fiber3, self, options?.startImmediately, false, options?.uninterruptible ?? false));
@@ -4666,7 +4698,7 @@ var makeSpanUnsafe = (fiber3, name, options) => {
4666
4698
  const annotationsFromEnv = fiber3.getRef(TracerSpanAnnotations);
4667
4699
  const linksFromEnv = fiber3.getRef(TracerSpanLinks);
4668
4700
  const level = options?.level ?? fiber3.getRef(CurrentTraceLevel);
4669
- const links = options?.links !== void 0 ? [...linksFromEnv, ...options.links] : linksFromEnv.slice();
4701
+ const links = options?.links !== void 0 ? [...linksFromEnv, ...options.links] : linksFromEnv.length === 0 ? [] : linksFromEnv.slice();
4670
4702
  span = tracer3.span({
4671
4703
  name,
4672
4704
  parent,
@@ -4677,12 +4709,12 @@ var makeSpanUnsafe = (fiber3, name, options) => {
4677
4709
  root: options?.root ?? isNone2(parent),
4678
4710
  sampled: options?.sampled ?? (isSome2(parent) && parent.value.sampled === false ? false : !isLogLevelGreaterThan(fiber3.getRef(MinimumTraceLevel), level))
4679
4711
  });
4680
- for (const [key, value3] of Object.entries(annotationsFromEnv)) {
4681
- span.attribute(key, value3);
4712
+ for (const key in annotationsFromEnv) {
4713
+ span.attribute(key, annotationsFromEnv[key]);
4682
4714
  }
4683
4715
  if (options?.attributes !== void 0) {
4684
- for (const [key, value3] of Object.entries(options.attributes)) {
4685
- span.attribute(key, value3);
4716
+ for (const key in options.attributes) {
4717
+ span.attribute(key, options.attributes[key]);
4686
4718
  }
4687
4719
  }
4688
4720
  }
@@ -5083,7 +5115,7 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
5083
5115
  reporters.forEach((reporter) => reporter.report(opts));
5084
5116
  };
5085
5117
 
5086
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Exit.js
5118
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Exit.js
5087
5119
  var succeed4 = exitSucceed;
5088
5120
  var failCause2 = exitFailCause;
5089
5121
  var fail4 = exitFail;
@@ -5091,7 +5123,7 @@ var void_2 = exitVoid;
5091
5123
  var isSuccess4 = exitIsSuccess;
5092
5124
  var isFailure4 = exitIsFailure;
5093
5125
 
5094
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Deferred.js
5126
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Deferred.js
5095
5127
  var TypeId5 = "~effect/Deferred";
5096
5128
  var DeferredProto = {
5097
5129
  [TypeId5]: {
@@ -5113,8 +5145,10 @@ var _await = (self) => callback((resume) => {
5113
5145
  self.resumes ??= [];
5114
5146
  self.resumes.push(resume);
5115
5147
  return sync(() => {
5116
- const index = self.resumes.indexOf(resume);
5117
- self.resumes.splice(index, 1);
5148
+ const resumes = self.resumes;
5149
+ if (resumes === void 0) return;
5150
+ const index = resumes.indexOf(resume);
5151
+ if (index >= 0) resumes.splice(index, 1);
5118
5152
  });
5119
5153
  });
5120
5154
  var completeWith = /* @__PURE__ */ dual(2, (self, effect2) => sync(() => doneUnsafe(self, effect2)));
@@ -5125,20 +5159,21 @@ var doneUnsafe = (self, effect2) => {
5125
5159
  if (self.effect) return false;
5126
5160
  self.effect = effect2;
5127
5161
  if (self.resumes) {
5128
- for (let i = 0; i < self.resumes.length; i++) {
5129
- self.resumes[i](effect2);
5130
- }
5162
+ const resumes = self.resumes;
5131
5163
  self.resumes = void 0;
5164
+ for (let i = 0; i < resumes.length; i++) {
5165
+ resumes[i](effect2);
5166
+ }
5132
5167
  }
5133
5168
  return true;
5134
5169
  };
5135
5170
 
5136
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/References.js
5171
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/References.js
5137
5172
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
5138
5173
  var CurrentLogSpans2 = CurrentLogSpans;
5139
5174
  var MinimumLogLevel2 = MinimumLogLevel;
5140
5175
 
5141
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Scope.js
5176
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Scope.js
5142
5177
  var Scope = scopeTag;
5143
5178
  var makeUnsafe3 = scopeMakeUnsafe;
5144
5179
  var provide = provideScope;
@@ -5147,7 +5182,7 @@ var addFinalizer2 = scopeAddFinalizer;
5147
5182
  var forkUnsafe2 = scopeForkUnsafe;
5148
5183
  var close = scopeClose;
5149
5184
 
5150
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Layer.js
5185
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Layer.js
5151
5186
  var TypeId6 = "~effect/Layer";
5152
5187
  var MemoMapTypeId = "~effect/Layer/MemoMap";
5153
5188
  var memoMapReuse = (entry, scope3) => {
@@ -5232,7 +5267,7 @@ var CurrentMemoMap = class _CurrentMemoMap extends (/* @__PURE__ */ Service()("e
5232
5267
  return current ? forkMemoMapUnsafe(current) : makeMemoMapUnsafe();
5233
5268
  }
5234
5269
  };
5235
- var buildWithMemoMap = /* @__PURE__ */ dual(3, (self, memoMap, scope3) => provideService(map4(self.build(memoMap, scope3), add(CurrentMemoMap, memoMap)), CurrentMemoMap, memoMap));
5270
+ var buildWithMemoMap = /* @__PURE__ */ dual(3, (self, memoMap, scope3) => provideService(map5(self.build(memoMap, scope3), add(CurrentMemoMap, memoMap)), CurrentMemoMap, memoMap));
5236
5271
  var buildWithScope = /* @__PURE__ */ dual(2, (self, scope3) => withFiber((fiber3) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber3.context), scope3)));
5237
5272
  var succeed5 = function() {
5238
5273
  if (arguments.length === 1) {
@@ -5247,16 +5282,16 @@ var effect = function() {
5247
5282
  }
5248
5283
  return effectImpl(arguments[0], arguments[1]);
5249
5284
  };
5250
- var effectImpl = (service3, effect2) => effectContext(map4(effect2, (value3) => make3(service3, value3)));
5285
+ var effectImpl = (service3, effect2) => effectContext(map5(effect2, (value3) => make3(service3, value3)));
5251
5286
  var effectContext = (effect2) => fromBuildMemo((_2, scope3) => provide(effect2, scope3));
5252
5287
  var mergeAllEffect = (layers, memoMap, scope3) => {
5253
5288
  const parentScope = forkUnsafe2(scope3, "parallel");
5254
5289
  return forEach(layers, (layer16) => layer16.build(memoMap, forkUnsafe2(parentScope, "sequential")), {
5255
5290
  concurrency: layers.length
5256
- }).pipe(map4((context3) => mergeAll(...context3)));
5291
+ }).pipe(map5((context3) => mergeAll(...context3)));
5257
5292
  };
5258
5293
  var mergeAll2 = (...layers) => fromBuild((memoMap, scope3) => mergeAllEffect(layers, memoMap, scope3));
5259
- var provideWith = (self, that, f2) => fromBuild((memoMap, scope3) => flatMap2(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context3) => self.build(memoMap, scope3).pipe(provideContext(context3), map4((merged) => f2(merged, context3)))));
5294
+ var provideWith = (self, that, f2) => fromBuild((memoMap, scope3) => flatMap2(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context3) => self.build(memoMap, scope3).pipe(provideContext(context3), map5((merged) => f2(merged, context3)))));
5260
5295
  var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, (self2, that2) => merge(that2, self2)));
5261
5296
  var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMetadata", {
5262
5297
  defaultValue: /* @__PURE__ */ constant({
@@ -5265,58 +5300,45 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
5265
5300
  })
5266
5301
  });
5267
5302
 
5268
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Cause.js
5303
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Cause.js
5269
5304
  var isFailReason2 = isFailReason;
5305
+ var fromReasons = causeFromReasons;
5270
5306
  var fail5 = causeFail;
5271
5307
  var hasInterruptsOnly2 = hasInterruptsOnly;
5272
- var map5 = causeMap;
5308
+ var map6 = causeMap;
5273
5309
  var squash = causeSquash;
5274
- var findError2 = findError;
5275
5310
  var hasInterrupts2 = hasInterrupts;
5276
5311
  var isDone3 = isDone;
5277
5312
  var Done2 = Done;
5278
5313
  var done3 = done;
5279
5314
  var UnknownError2 = UnknownError;
5280
-
5281
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Data.js
5282
- var taggedEnum = () => new Proxy({}, {
5283
- get(_target, tag2, _receiver) {
5284
- if (tag2 === "$is") {
5285
- return isTagged;
5286
- } else if (tag2 === "$match") {
5287
- return taggedMatch;
5288
- }
5289
- return (props) => ({
5290
- ...props,
5291
- _tag: tag2
5292
- });
5293
- }
5294
- });
5295
- function taggedMatch() {
5296
- if (arguments.length === 1) {
5297
- const cases2 = arguments[0];
5298
- return function(value4) {
5299
- return cases2[value4._tag](value4);
5300
- };
5301
- }
5302
- const value3 = arguments[0];
5303
- const cases = arguments[1];
5304
- return cases[value3._tag](value3);
5305
- }
5306
- var Error3 = Error2;
5307
- var TaggedError2 = TaggedError;
5308
5315
  var Order = Number2;
5309
5316
  var round = /* @__PURE__ */ dual(2, (self, precision) => {
5310
5317
  const factor = Math.pow(10, precision);
5311
5318
  return Math.round(self * factor) / factor;
5312
5319
  });
5313
5320
 
5314
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Pull.js
5321
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Pull.js
5315
5322
  var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
5316
5323
  var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
5317
5324
  var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
5318
- var filterDone = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone3(e) ? succeed2(e) : fail2(e));
5319
- var filterDoneLeftover = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone3(e) ? succeed2(e.value) : fail2(e));
5325
+ var filterDone = (cause) => {
5326
+ let done4;
5327
+ let hasFailure = false;
5328
+ for (const reason of cause.reasons) {
5329
+ if (isDoneFailure(reason)) {
5330
+ done4 ??= reason.error;
5331
+ } else if (reason._tag !== "Interrupt") {
5332
+ hasFailure = true;
5333
+ }
5334
+ }
5335
+ if (done4 === void 0) return fail2(cause);
5336
+ return hasFailure ? fail2(fromReasons(cause.reasons.filter((reason) => !isDoneFailure(reason)))) : succeed2(done4);
5337
+ };
5338
+ var filterDoneLeftover = (cause) => {
5339
+ const done4 = filterDone(cause);
5340
+ return isFailure2(done4) ? done4 : succeed2(done4.success.value);
5341
+ };
5320
5342
  var doneExitFromCause = (cause) => {
5321
5343
  const halt = filterDone(cause);
5322
5344
  return !isFailure2(halt) ? succeed4(halt.success.value) : failCause2(halt.failure);
@@ -5329,7 +5351,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5329
5351
  }
5330
5352
  }));
5331
5353
 
5332
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Schedule.js
5354
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Schedule.js
5333
5355
  var TypeId8 = "~effect/Schedule";
5334
5356
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
5335
5357
  defaultValue: /* @__PURE__ */ constant({
@@ -5378,12 +5400,12 @@ var metadataFn = () => {
5378
5400
  };
5379
5401
  };
5380
5402
  };
5381
- var fromStepWithMetadata = (step) => fromStep(map4(step, (f2) => {
5403
+ var fromStepWithMetadata = (step) => fromStep(map5(step, (f2) => {
5382
5404
  const meta = metadataFn();
5383
5405
  return (now, input) => f2(meta(now, input));
5384
5406
  }));
5385
5407
  var toStep = (schedule3) => catchCause(schedule3.step, (cause) => succeed3(() => failCause(cause)));
5386
- var toStepWithMetadata = (schedule3) => clockWith((clock) => map4(toStep(schedule3), (step) => {
5408
+ var toStepWithMetadata = (schedule3) => clockWith((clock) => map5(toStep(schedule3), (step) => {
5387
5409
  const metaFn = metadataFn();
5388
5410
  return (input) => suspend(() => {
5389
5411
  const now = clock.currentTimeMillisUnsafe();
@@ -5395,7 +5417,7 @@ var toStepWithMetadata = (schedule3) => clockWith((clock) => map4(toStep(schedul
5395
5417
  });
5396
5418
  });
5397
5419
  }));
5398
- var passthrough = (self) => fromStep(map4(toStep(self), (step) => (now, input) => matchEffect2(step(now, input), {
5420
+ var passthrough = (self) => fromStep(map5(toStep(self), (step) => (now, input) => matchEffect2(step(now, input), {
5399
5421
  onSuccess: (result3) => succeed3([input, result3[1]]),
5400
5422
  onFailure: failCause,
5401
5423
  onDone: () => done3(input)
@@ -5407,7 +5429,7 @@ var spaced = (duration) => {
5407
5429
  const decoded = fromInputUnsafe(duration);
5408
5430
  return fromStepWithMetadata(succeed3((meta) => succeed3([meta.attempt - 1, decoded])));
5409
5431
  };
5410
- var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(self), (step) => {
5432
+ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map5(toStep(self), (step) => {
5411
5433
  const meta = metadataFn();
5412
5434
  return (now, input) => flatMap2(step(now, input), (result3) => {
5413
5435
  const [output, duration] = result3;
@@ -5421,11 +5443,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(s
5421
5443
  })));
5422
5444
  var forever2 = /* @__PURE__ */ spaced(zero);
5423
5445
 
5424
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/layer.js
5446
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/layer.js
5425
5447
  var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
5426
5448
  var provide3 = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, source, options) => isContext(source) ? provideContext(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
5427
5449
 
5428
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schedule.js
5450
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schedule.js
5429
5451
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse4) => flatMap2(toStepWithMetadata(schedule3), (step) => {
5430
5452
  let meta = CurrentMetadata2.defaultValue();
5431
5453
  return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
@@ -5485,7 +5507,7 @@ var buildFromOptions = (options) => {
5485
5507
  input
5486
5508
  }) => {
5487
5509
  const applied = options.until(input);
5488
- return isEffect(applied) ? map4(applied, (b2) => !b2) : succeed3(!applied);
5510
+ return isEffect(applied) ? map5(applied, (b2) => !b2) : succeed3(!applied);
5489
5511
  });
5490
5512
  }
5491
5513
  if (options.times !== void 0) {
@@ -5496,7 +5518,7 @@ var buildFromOptions = (options) => {
5496
5518
  return schedule3;
5497
5519
  };
5498
5520
 
5499
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/executionPlan.js
5521
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/executionPlan.js
5500
5522
  var makeEventEmitter = (onEvent, currentMetadata) => {
5501
5523
  let lastStepIndex = -1;
5502
5524
  let stepAttempt = 0;
@@ -5602,7 +5624,7 @@ var scheduleFromStep = (step, first) => {
5602
5624
  var scheduleOnce = /* @__PURE__ */ recurs(1);
5603
5625
  var makeEntry = (options) => options;
5604
5626
 
5605
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/request.js
5627
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/request.js
5606
5628
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
5607
5629
  const withResolver = (resolver2) => callback((resume) => {
5608
5630
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -5713,7 +5735,7 @@ function runBatch(batch) {
5713
5735
  }
5714
5736
  var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
5715
5737
 
5716
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effect.js
5738
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Effect.js
5717
5739
  var TypeId11 = EffectTypeId;
5718
5740
  var isEffect2 = isEffect;
5719
5741
  var all2 = all;
@@ -5723,6 +5745,7 @@ var validate2 = validate;
5723
5745
  var findFirst4 = findFirst3;
5724
5746
  var findFirstFilter2 = findFirstFilter;
5725
5747
  var forEach2 = forEach;
5748
+ var head2 = head;
5726
5749
  var whileLoop2 = whileLoop;
5727
5750
  var promise2 = promise;
5728
5751
  var tryPromise2 = tryPromise;
@@ -5760,7 +5783,7 @@ var tap2 = tap;
5760
5783
  var result2 = result;
5761
5784
  var option2 = option;
5762
5785
  var exit2 = exit;
5763
- var map6 = map4;
5786
+ var map7 = map5;
5764
5787
  var as2 = as;
5765
5788
  var asSome2 = asSome;
5766
5789
  var asVoid2 = asVoid;
@@ -5780,7 +5803,7 @@ var catchFilter2 = catchFilter;
5780
5803
  var catchNoSuchElement2 = catchNoSuchElement;
5781
5804
  var catchCauseIf2 = catchCauseIf;
5782
5805
  var catchCauseFilter2 = catchCauseFilter;
5783
- var mapError3 = mapError2;
5806
+ var mapError2 = mapError;
5784
5807
  var mapBoth2 = mapBoth;
5785
5808
  var orDie2 = orDie;
5786
5809
  var tapError2 = tapError;
@@ -5967,10 +5990,11 @@ var trackDuration = /* @__PURE__ */ dual((args2) => isEffect2(args2[0]), (self,
5967
5990
  var Transaction = class extends (/* @__PURE__ */ Service()("effect/Effect/Transaction")) {
5968
5991
  };
5969
5992
  var tx = (effect2) => withFiber2((fiber3) => {
5970
- if (fiber3.context.mapUnsafe.has(Transaction.key)) {
5993
+ let state = getOrUndefined2(fiber3.context, Transaction);
5994
+ if (state) {
5971
5995
  return effect2;
5972
5996
  }
5973
- const state = {
5997
+ state = {
5974
5998
  journal: /* @__PURE__ */ new Map(),
5975
5999
  retry: false
5976
6000
  };
@@ -6068,7 +6092,7 @@ var flatMapEager2 = flatMapEager;
6068
6092
  var catchEager2 = catchEager;
6069
6093
  var fnUntracedEager2 = fnUntracedEager;
6070
6094
 
6071
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/FileSystem.js
6095
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/FileSystem.js
6072
6096
  var FileSystem_exports = {};
6073
6097
  __export(FileSystem_exports, {
6074
6098
  FileSystem: () => FileSystem,
@@ -6086,7 +6110,7 @@ __export(FileSystem_exports, {
6086
6110
  makeNoop: () => makeNoop
6087
6111
  });
6088
6112
 
6089
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/PlatformError.js
6113
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/PlatformError.js
6090
6114
  var TypeId12 = "~effect/platform/PlatformError";
6091
6115
  var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
6092
6116
  /**
@@ -6146,14 +6170,14 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
6146
6170
  var systemError = (options) => new PlatformError(new SystemError(options));
6147
6171
  var badArgument = (options) => new PlatformError(new BadArgument(options));
6148
6172
 
6149
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Fiber.js
6173
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Fiber.js
6150
6174
  var interrupt3 = fiberInterrupt;
6151
6175
  var runIn = fiberRunIn;
6152
6176
 
6153
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Latch.js
6177
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Latch.js
6154
6178
  var makeUnsafe4 = makeLatchUnsafe;
6155
6179
 
6156
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/MutableRef.js
6180
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/MutableRef.js
6157
6181
  var TypeId13 = "~effect/MutableRef";
6158
6182
  var MutableRefProto = {
6159
6183
  [TypeId13]: TypeId13,
@@ -6171,7 +6195,7 @@ var make6 = (value3) => {
6171
6195
  return ref;
6172
6196
  };
6173
6197
 
6174
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/MutableList.js
6198
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/MutableList.js
6175
6199
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
6176
6200
  var make7 = () => ({
6177
6201
  head: void 0,
@@ -6242,7 +6266,7 @@ var take = (self) => {
6242
6266
  return message;
6243
6267
  };
6244
6268
 
6245
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Queue.js
6269
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Queue.js
6246
6270
  var TypeId14 = "~effect/Queue";
6247
6271
  var EnqueueTypeId = "~effect/Queue/Enqueue";
6248
6272
  var DequeueTypeId = "~effect/Queue/Dequeue";
@@ -6516,7 +6540,7 @@ var finalize = (self, exit3) => {
6516
6540
  openState.awaiters.clear();
6517
6541
  };
6518
6542
 
6519
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Semaphore.js
6543
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Semaphore.js
6520
6544
  var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
6521
6545
  var waitForPermits = (self, n, effect2) => callback((resume) => {
6522
6546
  if (self.free >= n) return resume(effect2);
@@ -6612,7 +6636,7 @@ var SemaphoreImpl = class {
6612
6636
  }
6613
6637
  };
6614
6638
 
6615
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Channel.js
6639
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Channel.js
6616
6640
  var TypeId15 = "~effect/Channel";
6617
6641
  var isChannel = (u2) => hasProperty(u2, TypeId15);
6618
6642
  var ChannelProto = {
@@ -6645,7 +6669,7 @@ var asyncQueue = (scope3, f2, options) => make8({
6645
6669
  capacity: options?.bufferSize,
6646
6670
  strategy: options?.strategy
6647
6671
  }).pipe(tap2((queue) => addFinalizer2(scope3, shutdown(queue))), tap2((queue) => forkIn2(provide(f2(queue), scope3), scope3)));
6648
- var callbackArray = (f2, options) => fromTransform((_2, scope3) => map6(asyncQueue(scope3, f2, options), takeAll2));
6672
+ var callbackArray = (f2, options) => fromTransform((_2, scope3) => map7(asyncQueue(scope3, f2, options), takeAll2));
6649
6673
  var suspend3 = (evaluate2) => fromTransform((upstream, scope3) => suspend2(() => toTransform(evaluate2())(upstream, scope3)));
6650
6674
  var empty3 = /* @__PURE__ */ fromPull(/* @__PURE__ */ succeed6(/* @__PURE__ */ done3()));
6651
6675
  var fail7 = (error2) => fromPull(succeed6(fail6(error2)));
@@ -6676,9 +6700,9 @@ var readableStreamToPullUnsafe = (options) => {
6676
6700
  });
6677
6701
  return as2(addFinalizer2(options.scope, options.releaseLockOnEnd ? sync2(() => reader.releaseLock()) : promise2(() => reader.cancel().catch(constVoid))), pull);
6678
6702
  };
6679
- var map7 = /* @__PURE__ */ dual(2, (self, f2) => transformPull(self, (pull) => sync2(() => {
6703
+ var map8 = /* @__PURE__ */ dual(2, (self, f2) => transformPull(self, (pull) => sync2(() => {
6680
6704
  let i = 0;
6681
- return map6(pull, (o) => f2(o, i++));
6705
+ return map7(pull, (o) => f2(o, i++));
6682
6706
  })));
6683
6707
  var mapDone = /* @__PURE__ */ dual(2, (self, f2) => mapDoneEffect(self, (o) => succeed6(f2(o))));
6684
6708
  var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f2) => transformPull(self, (pull) => succeed6(catchDone(pull, (done4) => flatMap3(f2(done4), done3)))));
@@ -6817,7 +6841,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
6817
6841
  }));
6818
6842
  var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
6819
6843
 
6820
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/stream.js
6844
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/stream.js
6821
6845
  var TypeId16 = "~effect/Stream";
6822
6846
  var streamVariance = {
6823
6847
  _R: identity,
@@ -6836,7 +6860,7 @@ var fromChannel = (channel) => {
6836
6860
  return self;
6837
6861
  };
6838
6862
 
6839
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Sink.js
6863
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Sink.js
6840
6864
  var TypeId17 = "~effect/Sink";
6841
6865
  var endVoid = /* @__PURE__ */ succeed6([void 0]);
6842
6866
  var sinkVariance = {
@@ -6873,9 +6897,9 @@ var forEach3 = (f2) => forEachArray(forEach2((_2) => f2(_2), {
6873
6897
  var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f2), forever3({
6874
6898
  disableYield: true
6875
6899
  }), catchDone(() => endVoid)));
6876
- var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
6900
+ var unwrap2 = (effect2) => fromChannel2(unwrap(map7(effect2, toChannel)));
6877
6901
 
6878
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/rcRef.js
6902
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/rcRef.js
6879
6903
  var TypeId18 = "~effect/RcRef";
6880
6904
  var stateEmpty = {
6881
6905
  _tag: "Empty"
@@ -6930,7 +6954,7 @@ var getState = (self) => uninterruptibleMask2(function loop(restore) {
6930
6954
  if (self.state._tag !== "Empty") {
6931
6955
  return loop(restore);
6932
6956
  }
6933
- return restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map6((value3) => {
6957
+ return restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map7((value3) => {
6934
6958
  const state = {
6935
6959
  _tag: "Acquired",
6936
6960
  value: value3,
@@ -6978,11 +7002,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
6978
7002
  return state.value;
6979
7003
  });
6980
7004
 
6981
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/RcRef.js
7005
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/RcRef.js
6982
7006
  var make10 = make9;
6983
7007
  var get3 = get2;
6984
7008
 
6985
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Stream.js
7009
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Stream.js
6986
7010
  var TypeId19 = "~effect/Stream";
6987
7011
  var isStream = (u2) => hasProperty(u2, TypeId19);
6988
7012
  var fromChannel3 = fromChannel;
@@ -6994,10 +7018,10 @@ var empty4 = /* @__PURE__ */ fromChannel3(empty3);
6994
7018
  var suspend4 = (stream3) => fromChannel3(suspend3(() => stream3().channel));
6995
7019
  var fail9 = (error2) => fromChannel3(fail7(error2));
6996
7020
  var fromReadableStream2 = (options) => fromChannel3(fromReadableStream(options));
6997
- var unwrap3 = (effect2) => fromChannel3(unwrap(map6(effect2, toChannel2)));
6998
- var map8 = /* @__PURE__ */ dual(2, (self, f2) => suspend4(() => {
7021
+ var unwrap3 = (effect2) => fromChannel3(unwrap(map7(effect2, toChannel2)));
7022
+ var map9 = /* @__PURE__ */ dual(2, (self, f2) => suspend4(() => {
6999
7023
  let i = 0;
7000
- return fromChannel3(map7(self.channel, map3((o) => f2(o, i++))));
7024
+ return fromChannel3(map8(self.channel, map3((o) => f2(o, i++))));
7001
7025
  }));
7002
7026
  var merge3 = /* @__PURE__ */ dual((args2) => isStream(args2[0]) && isStream(args2[1]), (self, that, options) => fromChannel3(merge2(toChannel2(self), toChannel2(that), options)));
7003
7027
  var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (upstream, scope3) => sync2(() => {
@@ -7014,7 +7038,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
7014
7038
  done4 = fail4(error2);
7015
7039
  return done3();
7016
7040
  }));
7017
- const pull = map6(suspend2(() => sink.transform(upstreamWithLeftover, scope3)), ([value3, leftover_]) => {
7041
+ const pull = map7(suspend2(() => sink.transform(upstreamWithLeftover, scope3)), ([value3, leftover_]) => {
7018
7042
  leftover = leftover_;
7019
7043
  return of(value3);
7020
7044
  });
@@ -7022,13 +7046,13 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
7022
7046
  })));
7023
7047
  var decodeText = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => suspend4(() => {
7024
7048
  const decoder = new TextDecoder(options?.encoding);
7025
- return map8(self, (chunk) => decoder.decode(chunk, {
7049
+ return map9(self, (chunk) => decoder.decode(chunk, {
7026
7050
  stream: true
7027
7051
  }));
7028
7052
  }));
7029
7053
  var splitLines2 = (self) => self.channel.pipe(pipeTo(splitLines()), fromChannel3);
7030
7054
  var ensuring4 = /* @__PURE__ */ dual(2, (self, finalizer) => fromChannel3(ensuring3(self.channel, finalizer)));
7031
- var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith2((scope3) => toPullScoped(self.channel, scope3).pipe(flatMap3((upstream) => sink.transform(upstream, scope3)), map6(([a]) => a))));
7055
+ var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith2((scope3) => toPullScoped(self.channel, scope3).pipe(flatMap3((upstream) => sink.transform(upstream, scope3)), map7(([a]) => a))));
7032
7056
  var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
7033
7057
  for (let i = 0; i < chunk.length; i++) {
7034
7058
  acc.push(chunk[i]);
@@ -7071,9 +7095,9 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
7071
7095
  }
7072
7096
  }, options?.strategy);
7073
7097
  });
7074
- var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map6(context2(), (context3) => toReadableStreamWith(self, context3, options)));
7098
+ var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map7(context2(), (context3) => toReadableStreamWith(self, context3, options)));
7075
7099
 
7076
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/FileSystem.js
7100
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/FileSystem.js
7077
7101
  var TypeId20 = "~effect/platform/FileSystem";
7078
7102
  var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
7079
7103
  var KiB = (n) => Size(n * 1024);
@@ -7124,7 +7148,7 @@ var make11 = (impl) => FileSystem.of({
7124
7148
  sink: (path5, options) => pipe(impl.open(path5, {
7125
7149
  flag: "w",
7126
7150
  ...options
7127
- }), map6((file6) => forEach3((_2) => file6.writeAll(_2))), unwrap2),
7151
+ }), map7((file6) => forEach3((_2) => file6.writeAll(_2))), unwrap2),
7128
7152
  writeFileString: (path5, data, options) => flatMap3(try_3({
7129
7153
  try: () => new TextEncoder().encode(data),
7130
7154
  catch: (cause) => badArgument({
@@ -7242,7 +7266,7 @@ var isFile = (u2) => hasProperty(u2, FileTypeId);
7242
7266
  var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
7243
7267
  };
7244
7268
 
7245
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Logger.js
7269
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Logger.js
7246
7270
  var CurrentLoggers2 = CurrentLoggers;
7247
7271
  var make12 = loggerMake;
7248
7272
  var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
@@ -7253,24 +7277,20 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
7253
7277
  return currentLoggers;
7254
7278
  })));
7255
7279
 
7256
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/annotations.js
7280
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schema/annotations.js
7257
7281
  function resolve(ast) {
7258
7282
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
7259
7283
  }
7260
- function resolveAt(key) {
7261
- return (ast) => resolve(ast)?.[key];
7262
- }
7263
7284
  var STRUCTURAL_ANNOTATION_KEY = "~structural";
7264
7285
  var SENTINELS_ANNOTATION_KEY = "~sentinels";
7265
7286
  var CONSTRUCTOR_ANNOTATION_KEY = "~constructor";
7266
- var resolveIdentifier = /* @__PURE__ */ resolveAt("identifier");
7267
7287
  var getExpected = /* @__PURE__ */ memoize((ast) => {
7268
- const identifier2 = resolveIdentifier(ast);
7288
+ const identifier2 = resolve(ast)?.identifier;
7269
7289
  if (typeof identifier2 === "string") return identifier2;
7270
7290
  return ast.getExpected(getExpected);
7271
7291
  });
7272
7292
 
7273
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/parser.js
7293
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schema/parser.js
7274
7294
  var missing = /* @__PURE__ */ Symbol();
7275
7295
  var succeed8 = succeed4;
7276
7296
  var missingExit = /* @__PURE__ */ succeed8(missing);
@@ -7278,7 +7298,7 @@ var sameExit = /* @__PURE__ */ succeed8(missing);
7278
7298
  var toOption = (value3) => value3 === missing ? none2() : some2(value3);
7279
7299
  var fromOptionExit = (option4) => option4._tag === "None" ? missingExit : succeed8(option4.value);
7280
7300
 
7281
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaIssue.js
7301
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaIssue.js
7282
7302
  var TypeId21 = "~effect/SchemaIssue/Issue";
7283
7303
  function isIssue(u2) {
7284
7304
  return hasProperty(u2, TypeId21) && u2[TypeId21] === TypeId21;
@@ -7504,47 +7524,6 @@ function getExpectedMessage(expected, issue) {
7504
7524
  const input = formatInput(issue);
7505
7525
  return input === void 0 ? `Expected ${expected}` : `Expected ${expected}, got ${input}`;
7506
7526
  }
7507
- function toDefaultIssues(issue, path5, leafHook, checkHook) {
7508
- switch (issue._tag) {
7509
- case "Filter": {
7510
- const message = checkHook(issue);
7511
- if (message !== void 0) {
7512
- return [{
7513
- path: path5,
7514
- message
7515
- }];
7516
- }
7517
- if (issue.issue._tag !== "InvalidValue") {
7518
- return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
7519
- }
7520
- const expected = findExpected(issue.issue);
7521
- return [{
7522
- path: path5,
7523
- message: expected === void 0 ? getExpectedMessage(formatCheck(issue.filter), issue) : getExpectedMessage(expected, issue.issue)
7524
- }];
7525
- }
7526
- case "Encoding":
7527
- return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
7528
- case "Pointer":
7529
- return toDefaultIssues(issue.issue, [...path5, ...issue.path], leafHook, checkHook);
7530
- case "Composite":
7531
- return issue.issues.flatMap((issue2) => toDefaultIssues(issue2, path5, leafHook, checkHook));
7532
- case "AnyOf": {
7533
- if (issue.issues.length === 0) {
7534
- return [{
7535
- path: path5,
7536
- message: findMessage(issue) ?? getExpectedMessage(getExpected(issue.ast), issue)
7537
- }];
7538
- }
7539
- return issue.issues.flatMap((issue2) => toDefaultIssues(issue2, path5, leafHook, checkHook));
7540
- }
7541
- default:
7542
- return [{
7543
- path: path5,
7544
- message: leafHook(issue)
7545
- }];
7546
- }
7547
- }
7548
7527
  function formatCheck(check) {
7549
7528
  const expected = check.annotations?.expected;
7550
7529
  if (typeof expected === "string") return expected;
@@ -7556,44 +7535,53 @@ function formatCheck(check) {
7556
7535
  }
7557
7536
  }
7558
7537
  function makeFormatterDefault() {
7559
- return (issue) => toDefaultIssues(issue, [], defaultLeafHook, defaultCheckHook).map(formatDefaultIssue).join("\n");
7538
+ return (issue) => formatIssue(issue, "");
7560
7539
  }
7561
7540
  var defaultFormatter = /* @__PURE__ */ makeFormatterDefault();
7562
- function formatDefaultIssue(issue) {
7563
- let out = issue.message;
7564
- if (issue.path && issue.path.length > 0) {
7565
- const path5 = formatPath(issue.path);
7566
- out += `
7567
- at ${path5}`;
7568
- }
7569
- return out;
7570
- }
7571
- function findMessage(issue) {
7541
+ function formatIssue(issue, path5) {
7542
+ let message;
7572
7543
  switch (issue._tag) {
7573
- case "InvalidType":
7574
- case "OneOf":
7575
- case "Composite":
7576
- case "AnyOf":
7577
- return getMessageAnnotation(issue.ast.annotations);
7578
- case "InvalidValue":
7579
- case "Forbidden":
7580
- return getMessageAnnotation(issue.annotations);
7581
- case "MissingKey":
7582
- return getMessageAnnotation(issue.annotations, "messageMissingKey");
7583
- case "UnexpectedKey":
7584
- return getMessageAnnotation(issue.ast.annotations, "messageUnexpectedKey");
7585
- case "Filter":
7586
- return getMessageAnnotation(issue.filter.annotations);
7544
+ case "Filter": {
7545
+ const annotated = defaultCheckHook(issue);
7546
+ if (annotated !== void 0) {
7547
+ message = annotated;
7548
+ } else {
7549
+ if (issue.issue._tag !== "InvalidValue") {
7550
+ return formatIssue(issue.issue, path5);
7551
+ }
7552
+ const expected = findExpected(issue.issue);
7553
+ message = expected === void 0 ? getExpectedMessage(formatCheck(issue.filter), issue) : getExpectedMessage(expected, issue.issue);
7554
+ }
7555
+ break;
7556
+ }
7587
7557
  case "Encoding":
7588
- return findMessage(issue.issue);
7558
+ return formatIssue(issue.issue, path5);
7559
+ case "Pointer":
7560
+ return formatIssue(issue.issue, path5 + formatPath(issue.path));
7561
+ case "Composite":
7562
+ case "AnyOf": {
7563
+ if (issue._tag === "Composite" || issue.issues.length > 0) {
7564
+ return issue.issues.map((issue2) => formatIssue(issue2, path5)).join("\n");
7565
+ }
7566
+ message = findMessage(issue) ?? getExpectedMessage(getExpected(issue.ast), issue);
7567
+ break;
7568
+ }
7569
+ default:
7570
+ message = defaultLeafHook(issue);
7571
+ break;
7589
7572
  }
7573
+ return path5 ? `${message}
7574
+ at ${path5}` : message;
7590
7575
  }
7591
- function getMessageAnnotation(annotations, type = "message") {
7592
- const message = annotations?.[type];
7576
+ function findMessage(issue) {
7577
+ if (issue._tag === "Pointer") return;
7578
+ if (issue._tag === "Encoding") return findMessage(issue.issue);
7579
+ const annotations = issue._tag === "Filter" ? issue.filter.annotations : "annotations" in issue ? issue.annotations : issue.ast.annotations;
7580
+ const message = annotations?.[issue._tag === "MissingKey" ? "messageMissingKey" : issue._tag === "UnexpectedKey" ? "messageUnexpectedKey" : "message"];
7593
7581
  if (typeof message === "string") return message;
7594
7582
  }
7595
7583
 
7596
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/cause.js
7584
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schema/cause.js
7597
7585
  function getSchemaIssue(cause) {
7598
7586
  let issue;
7599
7587
  for (const reason of cause.reasons) {
@@ -7614,7 +7602,7 @@ function getSchemaIssueOrThrow(cause, message) {
7614
7602
  return issue;
7615
7603
  }
7616
7604
 
7617
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaGetter.js
7605
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaGetter.js
7618
7606
  var Getter = class _Getter extends Class {
7619
7607
  run;
7620
7608
  constructor(run6) {
@@ -7663,7 +7651,7 @@ function Date3() {
7663
7651
  return transform((u2) => new globalThis.Date(u2));
7664
7652
  }
7665
7653
 
7666
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaTransformation.js
7654
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaTransformation.js
7667
7655
  var TypeId22 = "~effect/SchemaTransformation/Transformation";
7668
7656
  var Transformation = class _Transformation {
7669
7657
  [TypeId22] = TypeId22;
@@ -7752,7 +7740,7 @@ var defectFromJson = (options) => transform2({
7752
7740
  encode: makeEncodeDefect(options)
7753
7741
  });
7754
7742
 
7755
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaAST.js
7743
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaAST.js
7756
7744
  function makeGuard(tag2) {
7757
7745
  return (ast) => ast._tag === tag2;
7758
7746
  }
@@ -7958,7 +7946,7 @@ var Number5 = class extends Base2 {
7958
7946
  if (this.checks && (hasCheck(this.checks, "effect/schema/isFinite") || hasCheck(this.checks, "effect/schema/isInt"))) {
7959
7947
  return this;
7960
7948
  }
7961
- return replaceEncoding(this, [numberToJson(this.checks)]);
7949
+ return replaceEncoding(this, [numberToJson]);
7962
7950
  }
7963
7951
  /** @internal */
7964
7952
  toCodecStringTree() {
@@ -7975,10 +7963,6 @@ var Number5 = class extends Base2 {
7975
7963
  function hasCheck(checks, id) {
7976
7964
  return checks.some((check) => check.annotations?.representation?.id === id || check._tag === "FilterGroup" && hasCheck(check.checks, id));
7977
7965
  }
7978
- function numberToJson(checks) {
7979
- const encodedFinite = !checks ? finite : appendChecks(finite, checks);
7980
- return new Link(new Union([encodedFinite, nonFiniteLiterals], "anyOf"), new Transformation(Number4(), transform((n) => globalThis.Number.isFinite(n) ? n : globalThis.String(n))));
7981
- }
7982
7966
  var number2 = /* @__PURE__ */ new Number5();
7983
7967
  var Boolean = class extends Base2 {
7984
7968
  _tag = "Boolean";
@@ -8143,7 +8127,7 @@ var wrapPropertyKeyIssue = (s3, ast, key, exit3) => {
8143
8127
  }
8144
8128
  const issue = getSchemaIssue(exit3.cause);
8145
8129
  if (issue === void 0) {
8146
- return failCause2(map5(exit3.cause, (issue2) => new Composite(ast, [new Pointer([key], issue2)], s3.input, s3.options)));
8130
+ return failCause2(map6(exit3.cause, (issue2) => new Composite(ast, [new Pointer([key], issue2)], s3.input, s3.options)));
8147
8131
  }
8148
8132
  const pointer = new Pointer([key], issue);
8149
8133
  if (s3.options.errors === "all") {
@@ -8543,6 +8527,11 @@ function collectSentinels(ast) {
8543
8527
  }
8544
8528
  return [];
8545
8529
  });
8530
+ case "Union": {
8531
+ if (ast.types.length === 0) return [];
8532
+ const members = ast.types.map((type) => collectSentinels(toCandidate(type)));
8533
+ return members[0].filter((s3) => members.every((sentinels) => sentinels.some((o) => o.key === s3.key && o.literal === s3.literal)));
8534
+ }
8546
8535
  case "Suspend":
8547
8536
  return collectSentinels(ast.thunk());
8548
8537
  }
@@ -8550,15 +8539,18 @@ function collectSentinels(ast) {
8550
8539
  var candidateIndexCache = /* @__PURE__ */ new WeakMap();
8551
8540
  var emptyCandidates = /* @__PURE__ */ Object.freeze([]);
8552
8541
  function getIndex(types) {
8553
- let idx = candidateIndexCache.get(types);
8554
- if (idx) return idx;
8555
- idx = {};
8542
+ let index = candidateIndexCache.get(types);
8543
+ if (index) return index;
8544
+ let bySentinel;
8545
+ let sentinelCandidateCount = 0;
8546
+ let otherwise;
8556
8547
  let literalCandidates;
8548
+ let onlyLiterals = true;
8557
8549
  for (let i = 0; i < types.length; i++) {
8558
8550
  const a = types[i];
8559
8551
  const encoded = toCandidate(a);
8560
8552
  if (isNever2(encoded)) continue;
8561
- if (literalCandidates !== null) {
8553
+ if (onlyLiterals) {
8562
8554
  if (isLiteral(encoded) || isUniqueSymbol(encoded)) {
8563
8555
  literalCandidates ??= /* @__PURE__ */ new Map();
8564
8556
  const literal = isLiteral(encoded) ? encoded.literal : encoded.symbol;
@@ -8566,49 +8558,106 @@ function getIndex(types) {
8566
8558
  if (!arr) literalCandidates.set(literal, arr = []);
8567
8559
  arr.push(a);
8568
8560
  } else {
8569
- literalCandidates = null;
8561
+ onlyLiterals = false;
8570
8562
  }
8571
8563
  }
8572
8564
  const sentinels = collectSentinels(encoded);
8573
8565
  if (sentinels.length) {
8574
- idx.bySentinel ??= /* @__PURE__ */ new Map();
8566
+ bySentinel ??= /* @__PURE__ */ new Map();
8567
+ sentinelCandidateCount++;
8575
8568
  for (const {
8576
8569
  key,
8577
8570
  literal
8578
8571
  } of sentinels) {
8579
- let m2 = idx.bySentinel.get(key);
8580
- if (!m2) idx.bySentinel.set(key, m2 = /* @__PURE__ */ new Map());
8581
- let arr = m2.get(literal);
8582
- if (!arr) m2.set(literal, arr = []);
8583
- if (arr[arr.length - 1] !== i) arr.push(i);
8572
+ let entry = bySentinel.get(key);
8573
+ if (!entry) bySentinel.set(key, entry = [/* @__PURE__ */ new Map(), /* @__PURE__ */ new Set()]);
8574
+ entry[1].add(i);
8575
+ let indexes = entry[0].get(literal);
8576
+ if (!indexes) entry[0].set(literal, indexes = /* @__PURE__ */ new Set());
8577
+ indexes.add(i);
8584
8578
  }
8585
8579
  } else {
8586
- idx.otherwise ??= {};
8580
+ otherwise ??= {};
8587
8581
  const candidateTypes = getCandidateTypes(encoded);
8588
- for (const t of candidateTypes) (idx.otherwise[t] ??= []).push(i);
8582
+ for (const t of candidateTypes) (otherwise[t] ??= []).push(i);
8589
8583
  }
8590
8584
  }
8591
- if (literalCandidates) {
8585
+ if (onlyLiterals && literalCandidates) {
8592
8586
  literalCandidates.forEach(Object.freeze);
8593
- idx = (input) => literalCandidates.get(input) ?? emptyCandidates;
8594
- } else if (idx.bySentinel?.size === 1 && !idx.otherwise) {
8595
- for (const [key, byValue] of idx.bySentinel) {
8596
- const candidates = byValue;
8597
- for (const [literal, indexes] of byValue) {
8598
- candidates.set(literal, Object.freeze(indexes.map((index) => types[index])));
8599
- }
8600
- idx = (input, isConstructor) => {
8601
- if (isObjectKeyword(input)) {
8602
- const value3 = Object.hasOwn(input, key) ? input[key] : void 0;
8603
- if (value3 !== void 0) return candidates.get(value3) ?? emptyCandidates;
8604
- if (isConstructor) return types;
8605
- }
8606
- return emptyCandidates;
8607
- };
8587
+ index = (input) => literalCandidates.get(input) ?? emptyCandidates;
8588
+ } else if (bySentinel?.size === 1 && !otherwise) {
8589
+ const [key, [byValue]] = bySentinel.entries().next().value;
8590
+ const candidates = byValue;
8591
+ for (const [literal, indexes] of byValue) {
8592
+ candidates.set(literal, Object.freeze(Array.from(indexes, (index2) => types[index2])));
8593
+ }
8594
+ index = (input, isConstructor) => {
8595
+ if (isObjectKeyword(input)) {
8596
+ const value3 = Object.hasOwn(input, key) ? input[key] : void 0;
8597
+ if (value3 !== void 0) return candidates.get(value3) ?? emptyCandidates;
8598
+ if (isConstructor) return types;
8599
+ }
8600
+ return emptyCandidates;
8601
+ };
8602
+ } else if (bySentinel) {
8603
+ let commonSentinel;
8604
+ for (const entry of bySentinel) {
8605
+ if ((!commonSentinel || entry[1][0].size > commonSentinel[1][0].size) && entry[1][1].size === sentinelCandidateCount) {
8606
+ commonSentinel = entry;
8607
+ }
8608
8608
  }
8609
+ index = (input, isConstructor) => {
8610
+ const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
8611
+ const base = otherwise?.[runtimeType] ?? emptyCandidates;
8612
+ if (!isObjectKeyword(input)) return base.map((i) => types[i]);
8613
+ const selected = new Set(base);
8614
+ let directKey;
8615
+ if (commonSentinel) {
8616
+ const [key, [byValue]] = commonSentinel;
8617
+ const hasKey = Object.hasOwn(input, key);
8618
+ const value3 = hasKey ? input[key] : void 0;
8619
+ if (hasKey && (!isConstructor || value3 !== void 0)) {
8620
+ const match7 = byValue.get(value3);
8621
+ if (!match7) return base.map((i) => types[i]);
8622
+ for (const i of match7) selected.add(i);
8623
+ directKey = key;
8624
+ }
8625
+ }
8626
+ if (directKey === void 0) {
8627
+ for (const [key, [byValue, all4]] of bySentinel) {
8628
+ const hasKey = Object.hasOwn(input, key);
8629
+ const value3 = hasKey ? input[key] : void 0;
8630
+ if (hasKey && (!isConstructor || value3 !== void 0)) {
8631
+ const match7 = byValue.get(value3);
8632
+ if (match7) {
8633
+ for (const i of match7) selected.add(i);
8634
+ }
8635
+ } else if (isConstructor) {
8636
+ for (const i of all4) selected.add(i);
8637
+ }
8638
+ }
8639
+ }
8640
+ for (const [key, [byValue, all4]] of bySentinel) {
8641
+ if (key === directKey) continue;
8642
+ const hasKey = Object.hasOwn(input, key);
8643
+ const value3 = hasKey ? input[key] : void 0;
8644
+ if (hasKey && (!isConstructor || value3 !== void 0)) {
8645
+ const match7 = byValue.get(value3);
8646
+ for (const i of selected) {
8647
+ if (all4.has(i) && !match7?.has(i)) selected.delete(i);
8648
+ }
8649
+ }
8650
+ }
8651
+ return Array.from(selected).sort((a, b2) => a - b2).map((i) => types[i]);
8652
+ };
8653
+ } else {
8654
+ index = (input) => {
8655
+ const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
8656
+ return (otherwise?.[runtimeType] ?? emptyCandidates).map((i) => types[i]).filter(filterLiterals(input));
8657
+ };
8609
8658
  }
8610
- candidateIndexCache.set(types, idx);
8611
- return idx;
8659
+ candidateIndexCache.set(types, index);
8660
+ return index;
8612
8661
  }
8613
8662
  function filterLiterals(input) {
8614
8663
  return (ast) => {
@@ -8617,31 +8666,7 @@ function filterLiterals(input) {
8617
8666
  };
8618
8667
  }
8619
8668
  function getCandidates(input, types, isConstructor = false) {
8620
- const idx = getIndex(types);
8621
- if (typeof idx === "function") return idx(input, isConstructor);
8622
- const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
8623
- if (idx.bySentinel) {
8624
- const base = idx.otherwise?.[runtimeType] ?? emptyCandidates;
8625
- if (isObjectKeyword(input)) {
8626
- const selected = new Set(base);
8627
- for (const [k2, m2] of idx.bySentinel) {
8628
- const value3 = Object.hasOwn(input, k2) ? input[k2] : void 0;
8629
- if (value3 !== void 0) {
8630
- const match7 = m2.get(value3);
8631
- if (match7) {
8632
- for (const candidate of match7) selected.add(candidate);
8633
- }
8634
- } else if (isConstructor) {
8635
- for (const indexes of m2.values()) {
8636
- for (const candidate of indexes) selected.add(candidate);
8637
- }
8638
- }
8639
- }
8640
- return Array.from(selected).sort((a, b2) => a - b2).map((i) => types[i]);
8641
- }
8642
- return base.map((i) => types[i]);
8643
- }
8644
- return (idx.otherwise?.[runtimeType] ?? emptyCandidates).map((i) => types[i]).filter(filterLiterals(input));
8669
+ return getIndex(types)(input, isConstructor);
8645
8670
  }
8646
8671
  var Union = class _Union extends Base2 {
8647
8672
  _tag = "Union";
@@ -8851,6 +8876,7 @@ function isFinite3(annotations) {
8851
8876
  });
8852
8877
  }
8853
8878
  var finite = /* @__PURE__ */ appendChecks(number2, [/* @__PURE__ */ isFinite3()]);
8879
+ var numberToJson = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union([finite, nonFiniteLiterals], "anyOf"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ Number4(), /* @__PURE__ */ transform((n) => globalThis.Number.isFinite(n) ? n : globalThis.String(n))));
8854
8880
  function isPattern(regExp, annotations) {
8855
8881
  const source = regExp.source;
8856
8882
  const pattern = new globalThis.RegExp(source, regExp.flags);
@@ -9221,7 +9247,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options)
9221
9247
  });
9222
9248
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
9223
9249
 
9224
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaParser.js
9250
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaParser.js
9225
9251
  function makeEffect(schema) {
9226
9252
  const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
9227
9253
  return (input, options) => {
@@ -9424,7 +9450,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9424
9450
  const local = parseLocal(value3, options);
9425
9451
  return local === sameExit ? result3 : local;
9426
9452
  }
9427
- result3 = catchCause2(result3, (cause) => failCauseSync2(() => map5(cause, (issue) => new Encoding(ast, issue, input, options))));
9453
+ result3 = catchCause2(result3, (cause) => failCauseSync2(() => map6(cause, (issue) => new Encoding(ast, issue, input, options))));
9428
9454
  return flatMapEager2(result3, (value3) => {
9429
9455
  const local = parseLocal(value3, options);
9430
9456
  return local === sameExit ? succeed8(value3) : local;
@@ -9432,7 +9458,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9432
9458
  };
9433
9459
  }
9434
9460
 
9435
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/schema.js
9461
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schema/schema.js
9436
9462
  var TypeId24 = "~effect/Schema/Schema";
9437
9463
  var SchemaProto = {
9438
9464
  [TypeId24]: TypeId24,
@@ -9463,10 +9489,10 @@ function make15(ast, options) {
9463
9489
  return self;
9464
9490
  }
9465
9491
 
9466
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Struct.js
9492
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Struct.js
9467
9493
  var lambda = (f2) => f2;
9468
9494
 
9469
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/redacted.js
9495
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/redacted.js
9470
9496
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
9471
9497
  var value = (self) => {
9472
9498
  if (redactedRegistry.has(self)) {
@@ -9476,7 +9502,7 @@ var value = (self) => {
9476
9502
  }
9477
9503
  };
9478
9504
 
9479
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Redacted.js
9505
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Redacted.js
9480
9506
  var TypeId25 = "~effect/data/Redacted";
9481
9507
  var isRedacted = (u2) => hasProperty(u2, TypeId25);
9482
9508
  var make16 = (value3, options) => {
@@ -9508,10 +9534,19 @@ var Proto3 = {
9508
9534
  };
9509
9535
  var value2 = value;
9510
9536
 
9511
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaError.js
9512
- var TypeId26 = "~effect/SchemaError/SchemaError";
9537
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Schema.js
9538
+ var TypeId26 = TypeId24;
9539
+ function declareConstructor() {
9540
+ return (typeParameters, run6, annotations) => {
9541
+ return make17(new Declaration(typeParameters.map(getAST), (typeParameters2) => run6(typeParameters2.map((ast) => make17(ast))), annotations));
9542
+ };
9543
+ }
9544
+ function declare(is4, annotations) {
9545
+ return declareConstructor()([], () => (input, ast, options) => is4(input) ? succeed6(input) : fail6(new InvalidType(ast, input, options)), annotations);
9546
+ }
9547
+ var SchemaErrorTypeId = "~effect/SchemaError/SchemaError";
9513
9548
  var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9514
- [TypeId26] = TypeId26;
9549
+ [SchemaErrorTypeId] = SchemaErrorTypeId;
9515
9550
  constructor(issue) {
9516
9551
  super({
9517
9552
  issue
@@ -9524,17 +9559,6 @@ var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9524
9559
  return `SchemaError(${this.message})`;
9525
9560
  }
9526
9561
  };
9527
-
9528
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Schema.js
9529
- var TypeId27 = TypeId24;
9530
- function declareConstructor() {
9531
- return (typeParameters, run6, annotations) => {
9532
- return make17(new Declaration(typeParameters.map(getAST), (typeParameters2) => run6(typeParameters2.map((ast) => make17(ast))), annotations));
9533
- };
9534
- }
9535
- function declare(is4, annotations) {
9536
- return declareConstructor()([], () => (input, ast, options) => is4(input) ? succeed6(input) : fail6(new InvalidType(ast, input, options)), annotations);
9537
- }
9538
9562
  var is2 = is;
9539
9563
  function decodeUnknownEffect2(schema, options) {
9540
9564
  const parser = decodeUnknownEffect(schema);
@@ -9543,12 +9567,15 @@ function decodeUnknownEffect2(schema, options) {
9543
9567
  };
9544
9568
  }
9545
9569
  function fromIssueEffect(self) {
9546
- return catchCause2(self, (cause) => failCauseSync2(() => map5(cause, (issue) => new SchemaError(issue))));
9570
+ return catchCause2(self, (cause) => failCauseSync2(() => map6(cause, (issue) => new SchemaError(issue))));
9547
9571
  }
9548
9572
  var make17 = make15;
9549
9573
  function isSchema(u2) {
9550
- return hasProperty(u2, TypeId27) && u2[TypeId27] === TypeId27;
9574
+ return hasProperty(u2, TypeId26) && u2[TypeId26] === TypeId26;
9551
9575
  }
9576
+ var optionalKey2 = /* @__PURE__ */ lambda((schema) => make17(optionalKey(schema.ast), {
9577
+ schema
9578
+ }));
9552
9579
  var optional2 = /* @__PURE__ */ lambda((self) => {
9553
9580
  const schema = UndefinedOr(self);
9554
9581
  return make17(optional(self.ast), {
@@ -9824,7 +9851,7 @@ function makeClass(Inherited, identifier2, struct2, annotations, proto2) {
9824
9851
  }
9825
9852
  });
9826
9853
  }
9827
- static [TypeId27] = TypeId27;
9854
+ static [TypeId26] = TypeId26;
9828
9855
  get [ClassTypeId]() {
9829
9856
  return ClassTypeId;
9830
9857
  }
@@ -10059,11 +10086,11 @@ var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10059
10086
  })
10060
10087
  }));
10061
10088
 
10062
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Cookies.js
10063
- var TypeId28 = "~effect/http/Cookies";
10089
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/Cookies.js
10090
+ var TypeId27 = "~effect/http/Cookies";
10064
10091
  var CookieTypeId = "~effect/http/Cookies/Cookie";
10065
10092
  var Proto4 = {
10066
- [TypeId28]: TypeId28,
10093
+ [TypeId27]: TypeId27,
10067
10094
  ...BaseProto,
10068
10095
  toJSON() {
10069
10096
  return {
@@ -10242,11 +10269,11 @@ var tryDecodeURIComponent = (str) => {
10242
10269
  }
10243
10270
  };
10244
10271
 
10245
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Headers.js
10246
- var TypeId29 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
10272
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/Headers.js
10273
+ var TypeId28 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
10247
10274
  var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
10248
- [TypeId29]: {
10249
- value: TypeId29
10275
+ [TypeId28]: {
10276
+ value: TypeId28
10250
10277
  },
10251
10278
  [symbolRedactable]: {
10252
10279
  value(context3) {
@@ -10345,16 +10372,29 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
10345
10372
  }
10346
10373
  return out;
10347
10374
  });
10375
+ var isRedactedName = (name, patterns) => {
10376
+ for (let i = 0; i < patterns.length; i++) {
10377
+ const pattern = patterns[i];
10378
+ if (typeof pattern === "string") {
10379
+ if (pattern.toLowerCase() === name) {
10380
+ return true;
10381
+ }
10382
+ } else if (pattern.test(name)) {
10383
+ return true;
10384
+ }
10385
+ }
10386
+ return false;
10387
+ };
10348
10388
  var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRedactedNames", {
10349
10389
  defaultValue: () => ["authorization", "cookie", "set-cookie", "x-api-key"]
10350
10390
  });
10351
10391
 
10352
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/UrlParams.js
10353
- var TypeId30 = "~effect/http/UrlParams";
10354
- var isUrlParams = (u2) => hasProperty(u2, TypeId30);
10392
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/UrlParams.js
10393
+ var TypeId29 = "~effect/http/UrlParams";
10394
+ var isUrlParams = (u2) => hasProperty(u2, TypeId29);
10355
10395
  var Proto6 = {
10356
10396
  ...PipeInspectableProto,
10357
- [TypeId30]: TypeId30,
10397
+ [TypeId29]: TypeId29,
10358
10398
  [Symbol.iterator]() {
10359
10399
  return this.params[Symbol.iterator]();
10360
10400
  },
@@ -10430,12 +10470,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
10430
10470
  return out;
10431
10471
  });
10432
10472
 
10433
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpBody.js
10434
- var TypeId31 = "~effect/http/HttpBody";
10473
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpBody.js
10474
+ var TypeId30 = "~effect/http/HttpBody";
10435
10475
  var Proto7 = class {
10436
- [TypeId31];
10476
+ [TypeId30];
10437
10477
  constructor() {
10438
- this[TypeId31] = TypeId31;
10478
+ this[TypeId30] = TypeId30;
10439
10479
  }
10440
10480
  [NodeInspectSymbol]() {
10441
10481
  return this.toJSON();
@@ -10457,8 +10497,8 @@ var Empty2 = class extends Proto7 {
10457
10497
  };
10458
10498
  var empty9 = /* @__PURE__ */ new Empty2();
10459
10499
 
10460
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientError.js
10461
- var TypeId32 = "~effect/http/HttpClientError";
10500
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpClientError.js
10501
+ var TypeId31 = "~effect/http/HttpClientError";
10462
10502
  var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
10463
10503
  constructor(props) {
10464
10504
  if ("cause" in props.reason) {
@@ -10475,7 +10515,7 @@ var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientErr
10475
10515
  *
10476
10516
  * @since 4.0.0
10477
10517
  */
10478
- [TypeId32] = TypeId32;
10518
+ [TypeId31] = TypeId31;
10479
10519
  /**
10480
10520
  * HTTP request associated with the client failure.
10481
10521
  *
@@ -10592,10 +10632,10 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
10592
10632
  }
10593
10633
  };
10594
10634
 
10595
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpMethod.js
10635
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpMethod.js
10596
10636
  var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"]];
10597
10637
 
10598
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/internal/httpBody.js
10638
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/internal/httpBody.js
10599
10639
  var updateHeaders = (headers, body) => {
10600
10640
  if (body._tag === "Empty" || body._tag === "FormData") {
10601
10641
  return remove2(remove2(headers, "content-type"), "content-length");
@@ -10604,7 +10644,7 @@ var updateHeaders = (headers, body) => {
10604
10644
  return body.contentLength === void 0 ? remove2(headers, "content-length") : set2(headers, "content-length", body.contentLength.toString());
10605
10645
  };
10606
10646
 
10607
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Url.js
10647
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/Url.js
10608
10648
  var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
10609
10649
  };
10610
10650
  var make20 = (url, params, hash2) => try_({
@@ -10632,10 +10672,10 @@ var baseUrl = () => {
10632
10672
  return void 0;
10633
10673
  };
10634
10674
 
10635
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10636
- var TypeId33 = "~effect/http/HttpClientRequest";
10675
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10676
+ var TypeId32 = "~effect/http/HttpClientRequest";
10637
10677
  var Proto8 = {
10638
- [TypeId33]: TypeId33,
10678
+ [TypeId32]: TypeId32,
10639
10679
  ...BaseProto,
10640
10680
  toJSON() {
10641
10681
  return {
@@ -10729,8 +10769,8 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
10729
10769
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
10730
10770
  });
10731
10771
 
10732
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10733
- var TypeId34 = "~effect/http/HttpIncomingMessage";
10772
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10773
+ var TypeId33 = "~effect/http/HttpIncomingMessage";
10734
10774
  var inspect = (self, that) => {
10735
10775
  const contentType = self.headers["content-type"] ?? "";
10736
10776
  let body;
@@ -10756,10 +10796,10 @@ var inspect = (self, that) => {
10756
10796
  return obj;
10757
10797
  };
10758
10798
 
10759
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10760
- var TypeId35 = "~effect/http/HttpClientResponse";
10799
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10800
+ var TypeId34 = "~effect/http/HttpClientResponse";
10761
10801
  var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
10762
- var stream2 = (effect2) => unwrap3(map6(effect2, (self) => self.stream));
10802
+ var stream2 = (effect2) => unwrap3(map7(effect2, (self) => self.stream));
10763
10803
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail6(new HttpClientError({
10764
10804
  reason: new StatusCodeError({
10765
10805
  response: self,
@@ -10768,16 +10808,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10768
10808
  })
10769
10809
  }));
10770
10810
  var WebHttpClientResponse = class extends Class2 {
10811
+ [TypeId33];
10771
10812
  [TypeId34];
10772
- [TypeId35];
10773
10813
  request;
10774
10814
  source;
10775
10815
  constructor(request5, source) {
10776
10816
  super();
10777
10817
  this.request = request5;
10778
10818
  this.source = source;
10819
+ this[TypeId33] = TypeId33;
10779
10820
  this[TypeId34] = TypeId34;
10780
- this[TypeId35] = TypeId35;
10781
10821
  }
10782
10822
  toJSON() {
10783
10823
  return inspect(this, {
@@ -10834,7 +10874,7 @@ var WebHttpClientResponse = class extends Class2 {
10834
10874
  }
10835
10875
  textBody;
10836
10876
  get text() {
10837
- return this.textBody ??= map6(this.arrayBuffer, (_2) => new TextDecoder().decode(_2));
10877
+ return this.textBody ??= map7(this.arrayBuffer, (_2) => new TextDecoder().decode(_2));
10838
10878
  }
10839
10879
  get urlParamsBody() {
10840
10880
  return flatMap3(this.text, (_2) => try_3({
@@ -10883,7 +10923,7 @@ var WebHttpClientResponse = class extends Class2 {
10883
10923
  }
10884
10924
  };
10885
10925
 
10886
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10926
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10887
10927
  var toHeaders = (span) => fromRecordUnsafe({
10888
10928
  b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
10889
10929
  onNone: () => "",
@@ -10892,8 +10932,8 @@ var toHeaders = (span) => fromRecordUnsafe({
10892
10932
  traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
10893
10933
  });
10894
10934
 
10895
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClient.js
10896
- var TypeId36 = "~effect/http/HttpClient";
10935
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpClient.js
10936
+ var TypeId35 = "~effect/http/HttpClient";
10897
10937
  var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
10898
10938
  var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
10899
10939
  var filterStatusOk2 = /* @__PURE__ */ transformResponse(/* @__PURE__ */ flatMap3(filterStatusOk));
@@ -10907,7 +10947,7 @@ var makeWith2 = (postprocess, preprocess) => {
10907
10947
  return self;
10908
10948
  };
10909
10949
  var Proto9 = {
10910
- [TypeId36]: TypeId36,
10950
+ [TypeId35]: TypeId35,
10911
10951
  pipe() {
10912
10952
  return pipeArguments(this, arguments);
10913
10953
  },
@@ -10968,10 +11008,9 @@ var make22 = (f2) => makeWith2((effect2) => flatMap3(effect2, (request5) => with
10968
11008
  }
10969
11009
  const redactedHeaderNames = fiber3.getRef(CurrentRedactedNames);
10970
11010
  const headerFilter = fiber3.getRef(TracerHeaderFilter);
10971
- const redactedHeaders = redact2(request5.headers, redactedHeaderNames);
10972
- for (const name in redactedHeaders) {
11011
+ for (const name in request5.headers) {
10973
11012
  if (!headerFilter(name, "request")) continue;
10974
- span.attribute(`http.request.header.${name}`, String(redactedHeaders[name]));
11013
+ span.attribute(`http.request.header.${name}`, isRedactedName(name, redactedHeaderNames) ? "<redacted>" : request5.headers[name]);
10975
11014
  }
10976
11015
  request5 = fiber3.getRef(TracerPropagationEnabled) ? setHeaders(request5, toHeaders(span)) : request5;
10977
11016
  return uninterruptibleMask2((restore) => restore(f2(request5, url, controller.signal, fiber3)).pipe(withParentSpan2(span, {
@@ -10979,10 +11018,9 @@ var make22 = (f2) => makeWith2((effect2) => flatMap3(effect2, (request5) => with
10979
11018
  }), matchCauseEffect2({
10980
11019
  onSuccess: (response) => {
10981
11020
  span.attribute("http.response.status_code", response.status);
10982
- const redactedHeaders2 = redact2(response.headers, redactedHeaderNames);
10983
- for (const name in redactedHeaders2) {
11021
+ for (const name in response.headers) {
10984
11022
  if (!headerFilter(name, "response")) continue;
10985
- span.attribute(`http.response.header.${name}`, String(redactedHeaders2[name]));
11023
+ span.attribute(`http.response.header.${name}`, isRedactedName(name, redactedHeaderNames) ? "<redacted>" : response.headers[name]);
10986
11024
  }
10987
11025
  if (scopedController) return succeed6(response);
10988
11026
  responseRegistry.register(response, controller);
@@ -10997,7 +11035,7 @@ var make22 = (f2) => makeWith2((effect2) => flatMap3(effect2, (request5) => with
10997
11035
  })));
10998
11036
  });
10999
11037
  })), succeed6);
11000
- var mapRequest = /* @__PURE__ */ dual(2, (self, f2) => makeWith2(self.postprocess, (request5) => map6(self.preprocess(request5), f2)));
11038
+ var mapRequest = /* @__PURE__ */ dual(2, (self, f2) => makeWith2(self.postprocess, (request5) => map7(self.preprocess(request5), f2)));
11001
11039
  var TracerDisabledWhen = /* @__PURE__ */ Reference("effect/http/HttpClient/TracerDisabledWhen", {
11002
11040
  defaultValue: () => constFalse
11003
11041
  });
@@ -11010,7 +11048,7 @@ var TracerPropagationEnabled = /* @__PURE__ */ Reference("effect/HttpClient/Trac
11010
11048
  var SpanNameGenerator = /* @__PURE__ */ Reference("effect/http/HttpClient/SpanNameGenerator", {
11011
11049
  defaultValue: () => (request5) => `http.client ${request5.method}`
11012
11050
  });
11013
- var layerMergedContext = (effect2) => effect(HttpClient)(contextWith2((context3) => map6(effect2, (client) => transformResponse(client, updateContext2((input) => merge(context3, input))))));
11051
+ var layerMergedContext = (effect2) => effect(HttpClient)(contextWith2((context3) => map7(effect2, (client) => transformResponse(client, updateContext2((input) => merge(context3, input))))));
11014
11052
  var responseRegistry = /* @__PURE__ */ (() => {
11015
11053
  if ("FinalizationRegistry" in globalThis && globalThis.FinalizationRegistry) {
11016
11054
  const registry = /* @__PURE__ */ new FinalizationRegistry((controller) => {
@@ -11046,8 +11084,8 @@ var InterruptibleResponse = class {
11046
11084
  this.original = original;
11047
11085
  this.controller = controller;
11048
11086
  }
11049
- [TypeId35] = TypeId35;
11050
11087
  [TypeId34] = TypeId34;
11088
+ [TypeId33] = TypeId33;
11051
11089
  applyInterrupt(effect2) {
11052
11090
  return suspend2(() => {
11053
11091
  responseRegistry.unregister(this.original);
@@ -11105,7 +11143,7 @@ var InterruptibleResponse = class {
11105
11143
  }
11106
11144
  };
11107
11145
 
11108
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11146
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11109
11147
  var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
11110
11148
  var fromWritableChannel = (options) => fromTransform((pull) => {
11111
11149
  const writable = options.evaluate();
@@ -11145,7 +11183,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
11145
11183
  });
11146
11184
  }) : identity);
11147
11185
 
11148
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11186
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11149
11187
  var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
11150
11188
  var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
11151
11189
  scope: scope3,
@@ -11204,7 +11242,7 @@ var readableToPullUnsafe = (options) => {
11204
11242
  };
11205
11243
  var defaultOnError = (error2) => new UnknownError2(error2);
11206
11244
 
11207
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11245
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11208
11246
  var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
11209
11247
  defaultValue: () => globalThis.fetch
11210
11248
  });
@@ -11212,12 +11250,12 @@ var RequestInit = class extends (/* @__PURE__ */ Service()("effect/http/FetchHtt
11212
11250
  };
11213
11251
  var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
11214
11252
  const fetch2 = fiber3.getRef(Fetch);
11215
- const options = fiber3.context.mapUnsafe.get(RequestInit.key) ?? {};
11253
+ const options = getOrUndefined2(fiber3.context, RequestInit) ?? {};
11216
11254
  let headers = options.headers ? merge4(fromInput(options.headers), request5.headers) : request5.headers;
11217
11255
  if (headers["content-length"]) {
11218
11256
  headers = remove2(headers, "content-length");
11219
11257
  }
11220
- const send = (body) => map6(tryPromise2({
11258
+ const send = (body) => map7(tryPromise2({
11221
11259
  try: () => fetch2(url, {
11222
11260
  ...options,
11223
11261
  method: request5.method,
@@ -11246,7 +11284,7 @@ var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
11246
11284
  });
11247
11285
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
11248
11286
 
11249
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Runtime.js
11287
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Runtime.js
11250
11288
  var defaultTeardown = (exit3, onExit4) => {
11251
11289
  if (isSuccess4(exit3)) return onExit4(0);
11252
11290
  if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
@@ -11292,7 +11330,7 @@ var getErrorReported = (u2) => {
11292
11330
  return true;
11293
11331
  };
11294
11332
 
11295
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11333
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11296
11334
  var runMain = /* @__PURE__ */ makeRunMain(({
11297
11335
  fiber: fiber3,
11298
11336
  teardown
@@ -11315,17 +11353,17 @@ var runMain = /* @__PURE__ */ makeRunMain(({
11315
11353
  process.on("SIGTERM", onSigint);
11316
11354
  });
11317
11355
 
11318
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11356
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11319
11357
  var runMain2 = runMain;
11320
11358
 
11321
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Path.js
11359
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Path.js
11322
11360
  var Path_exports = {};
11323
11361
  __export(Path_exports, {
11324
11362
  Path: () => Path,
11325
- TypeId: () => TypeId37,
11363
+ TypeId: () => TypeId36,
11326
11364
  layer: () => layer3
11327
11365
  });
11328
- var TypeId37 = "~effect/platform/Path";
11366
+ var TypeId36 = "~effect/platform/Path";
11329
11367
  var Path = /* @__PURE__ */ Service("effect/Path");
11330
11368
  function normalizeStringPosix(path5, allowAboveRoot) {
11331
11369
  let res = "";
@@ -11501,7 +11539,7 @@ function encodePathChars(filepath) {
11501
11539
  return filepath;
11502
11540
  }
11503
11541
  var posixImpl = /* @__PURE__ */ Path.of({
11504
- [TypeId37]: TypeId37,
11542
+ [TypeId36]: TypeId36,
11505
11543
  resolve: resolve2,
11506
11544
  normalize(path5) {
11507
11545
  if (path5.length === 0) return ".";
@@ -11792,7 +11830,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
11792
11830
  });
11793
11831
  var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
11794
11832
 
11795
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Brand.js
11833
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Brand.js
11796
11834
  function nominal() {
11797
11835
  return Object.assign((input) => input, {
11798
11836
  option: (input) => some2(input),
@@ -11801,7 +11839,7 @@ function nominal() {
11801
11839
  });
11802
11840
  }
11803
11841
 
11804
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11842
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11805
11843
  var ExitCode = /* @__PURE__ */ nominal();
11806
11844
  var ProcessId = /* @__PURE__ */ nominal();
11807
11845
  var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
@@ -11819,7 +11857,7 @@ var makeHandle = (params) => Object.setPrototypeOf({
11819
11857
  ...params
11820
11858
  }, HandleProto);
11821
11859
  var make23 = (spawn2) => {
11822
- const streamString = (command2, options) => spawn2(command2).pipe(map6((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap3);
11860
+ const streamString = (command2, options) => spawn2(command2).pipe(map7((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap3);
11823
11861
  const streamLines = (command2, options) => splitLines2(streamString(command2, options));
11824
11862
  return ChildProcessSpawner.of({
11825
11863
  spawn: spawn2,
@@ -11833,8 +11871,8 @@ var make23 = (spawn2) => {
11833
11871
  var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
11834
11872
  };
11835
11873
 
11836
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/process/ChildProcess.js
11837
- var TypeId38 = "~effect/unstable/process/ChildProcess";
11874
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/process/ChildProcess.js
11875
+ var TypeId37 = "~effect/unstable/process/ChildProcess";
11838
11876
  var Proto10 = {
11839
11877
  .../* @__PURE__ */ Prototype2({
11840
11878
  label: "Command",
@@ -11842,7 +11880,7 @@ var Proto10 = {
11842
11880
  return getUnsafe(fiber3.context, ChildProcessSpawner).spawn(this);
11843
11881
  }
11844
11882
  }),
11845
- [TypeId38]: TypeId38
11883
+ [TypeId37]: TypeId37
11846
11884
  };
11847
11885
  var makeStandardCommand = (command2, args2, options) => Object.assign(Object.create(Proto10), {
11848
11886
  _tag: "StandardCommand",
@@ -11957,7 +11995,18 @@ var splitByWhitespaces = (template, rawTemplate) => {
11957
11995
  };
11958
11996
  var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
11959
11997
 
11960
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11998
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
11999
+ var buildSpawnOptions = (options, base, platform) => {
12000
+ const detached = options.detached ?? platform !== "win32";
12001
+ return {
12002
+ ...base,
12003
+ detached,
12004
+ shell: options.shell,
12005
+ windowsHide: options.windowsHide ?? !detached
12006
+ };
12007
+ };
12008
+
12009
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11961
12010
  var handleErrnoException = (module, method) => (err, [path5]) => {
11962
12011
  let reason = "Unknown";
11963
12012
  switch (err.code) {
@@ -11993,7 +12042,7 @@ var handleErrnoException = (module, method) => (err, [path5]) => {
11993
12042
  });
11994
12043
  };
11995
12044
 
11996
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
12045
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
11997
12046
  var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
11998
12047
  var toPlatformError = (method, error2, command2) => {
11999
12048
  const {
@@ -12005,6 +12054,10 @@ var toPlatformError = (method, error2, command2) => {
12005
12054
  }, "");
12006
12055
  return handleErrnoException("ChildProcess", method)(error2, [commandStr]);
12007
12056
  };
12057
+ var taskkill = (childProcess, onExit4 = () => {
12058
+ }) => NodeChildProcess__namespace.execFile("taskkill", ["/pid", String(childProcess.pid), "/T", "/F"], {
12059
+ windowsHide: true
12060
+ }, onExit4);
12008
12061
  var make26 = /* @__PURE__ */ gen2(function* () {
12009
12062
  const fs2 = yield* FileSystem;
12010
12063
  const path5 = yield* Path;
@@ -12222,7 +12275,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12222
12275
  const killProcessGroup = (command2, childProcess, signal) => {
12223
12276
  if (globalThis.process.platform === "win32") {
12224
12277
  return callback2((resume) => {
12225
- NodeChildProcess__namespace.exec(`taskkill /pid ${childProcess.pid} /T /F`, (error2) => {
12278
+ taskkill(childProcess, (error2) => {
12226
12279
  if (error2) {
12227
12280
  resume(fail6(toPlatformError("kill", toError(error2), command2)));
12228
12281
  } else {
@@ -12240,8 +12293,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12240
12293
  };
12241
12294
  const killProcessGroupOnExit = (childProcess, signal) => {
12242
12295
  if (globalThis.process.platform === "win32") {
12243
- NodeChildProcess__namespace.exec(`taskkill /pid ${childProcess.pid} /T /F`, () => {
12244
- });
12296
+ taskkill(childProcess);
12245
12297
  return;
12246
12298
  }
12247
12299
  try {
@@ -12293,13 +12345,11 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12293
12345
  const cwd = yield* resolveWorkingDirectory(cmd.options);
12294
12346
  const env = resolveEnvironment(cmd.options);
12295
12347
  const stdio = buildStdioArray(stdinConfig, stdoutConfig, stderrConfig, resolvedAdditionalFds);
12296
- const [childProcess, exitSignal] = yield* acquireRelease2(spawn2(cmd, {
12348
+ const [childProcess, exitSignal] = yield* acquireRelease2(spawn2(cmd, buildSpawnOptions(cmd.options, {
12297
12349
  cwd,
12298
12350
  env,
12299
- stdio,
12300
- detached: cmd.options.detached ?? process.platform !== "win32",
12301
- shell: cmd.options.shell
12302
- }), fnUntraced2(function* ([childProcess2, exitSignal2]) {
12351
+ stdio
12352
+ }, process.platform)), fnUntraced2(function* ([childProcess2, exitSignal2]) {
12303
12353
  const exited = yield* isDone2(exitSignal2);
12304
12354
  const killWithTimeout = withTimeout(childProcess2, cmd, cmd.options);
12305
12355
  if (exited) {
@@ -12343,7 +12393,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12343
12393
  getInputFd,
12344
12394
  getOutputFd
12345
12395
  } = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds);
12346
- const isRunning = map6(isDone2(exitSignal), (done4) => !done4);
12396
+ const isRunning = map7(isDone2(exitSignal), (done4) => !done4);
12347
12397
  const exitCode = flatMap3(_await(exitSignal), ([code, signal]) => {
12348
12398
  if (isNotNull(code)) {
12349
12399
  return succeed6(ExitCode(code));
@@ -12477,12 +12527,40 @@ var flattenCommand = (command2) => {
12477
12527
  };
12478
12528
  };
12479
12529
 
12480
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Crypto.js
12481
- var TypeId39 = "~effect/platform/Crypto";
12530
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/uuid.js
12531
+ var hex = (byte) => byte.toString(16).padStart(2, "0");
12532
+ var stringify = (bytes) => {
12533
+ const segments = [bytes.subarray(0, 4), bytes.subarray(4, 6), bytes.subarray(6, 8), bytes.subarray(8, 10), bytes.subarray(10, 16)];
12534
+ return segments.map((segment) => Array.from(segment, hex).join("")).join("-");
12535
+ };
12536
+ var randomBytes = () => globalThis.crypto.getRandomValues(new Uint8Array(16));
12537
+ function v4Bytes(bytes = randomBytes()) {
12538
+ bytes[6] = bytes[6] & 15 | 64;
12539
+ bytes[8] = bytes[8] & 63 | 128;
12540
+ return bytes;
12541
+ }
12542
+ var v4String = (bytes) => stringify(bytes === void 0 ? v4Bytes() : v4Bytes(bytes));
12543
+ var maxV7Timestamp = 2 ** 48 - 1;
12544
+ function v7Bytes(timestampMillis, bytes = randomBytes()) {
12545
+ const timestamp = Math.min(Math.max(0, Math.trunc(timestampMillis)), maxV7Timestamp);
12546
+ bytes[0] = Math.floor(timestamp / 2 ** 40);
12547
+ bytes[1] = Math.floor(timestamp / 2 ** 32) & 255;
12548
+ bytes[2] = Math.floor(timestamp / 2 ** 24) & 255;
12549
+ bytes[3] = Math.floor(timestamp / 2 ** 16) & 255;
12550
+ bytes[4] = Math.floor(timestamp / 2 ** 8) & 255;
12551
+ bytes[5] = timestamp & 255;
12552
+ bytes[6] = bytes[6] & 15 | 112;
12553
+ bytes[8] = bytes[8] & 63 | 128;
12554
+ return bytes;
12555
+ }
12556
+ var v7String = (timestampMillis, bytes) => stringify(bytes === void 0 ? v7Bytes(timestampMillis) : v7Bytes(timestampMillis, bytes));
12557
+
12558
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Crypto.js
12559
+ var TypeId38 = "~effect/platform/Crypto";
12482
12560
  var Crypto = /* @__PURE__ */ Service("effect/Crypto");
12483
12561
  var make27 = (impl) => {
12484
12562
  const randomBytesUnsafe = impl.randomBytes;
12485
- const randomBytes3 = (size) => map6(validateSize("randomBytes", size), randomBytesUnsafe);
12563
+ const randomBytes4 = (size) => map7(validateSize("randomBytes", size), randomBytesUnsafe);
12486
12564
  const readUint53 = (bytes) => (bytes[0] & 31) * 2 ** 48 + bytes[1] * 2 ** 40 + bytes[2] * 2 ** 32 + bytes[3] * 2 ** 24 + bytes[4] * 2 ** 16 + bytes[5] * 2 ** 8 + bytes[6];
12487
12565
  const nextDoubleUnsafe = () => readUint53(randomBytesUnsafe(7)) / 2 ** 53;
12488
12566
  const nextIntUnsafe = () => {
@@ -12498,8 +12576,8 @@ var make27 = (impl) => {
12498
12576
  }
12499
12577
  };
12500
12578
  return Crypto.of({
12501
- [TypeId39]: TypeId39,
12502
- randomBytes: randomBytes3,
12579
+ [TypeId38]: TypeId38,
12580
+ randomBytes: randomBytes4,
12503
12581
  nextDoubleUnsafe,
12504
12582
  nextIntUnsafe,
12505
12583
  digest: impl.digest,
@@ -12525,8 +12603,8 @@ var make27 = (impl) => {
12525
12603
  }
12526
12604
  return buffer2;
12527
12605
  }),
12528
- randomUUIDv4: sync2(() => formatUUIDv4(randomBytesUnsafe(16))),
12529
- randomUUIDv7: clockWith2((clock) => succeed6(formatUUIDv7(clock.currentTimeMillisUnsafe(), randomBytesUnsafe(16))))
12606
+ randomUUIDv4: sync2(() => v4String(randomBytesUnsafe(16))),
12607
+ randomUUIDv7: clockWith2((clock) => succeed6(v7String(clock.currentTimeMillisUnsafe(), randomBytesUnsafe(16))))
12530
12608
  });
12531
12609
  };
12532
12610
  var validateSize = (method, size) => Number.isSafeInteger(size) && size >= 0 ? succeed6(size) : fail6(badArgument({
@@ -12534,29 +12612,6 @@ var validateSize = (method, size) => Number.isSafeInteger(size) && size >= 0 ? s
12534
12612
  method,
12535
12613
  description: "size must be a non-negative safe integer"
12536
12614
  }));
12537
- var hex = (byte) => byte.toString(16).padStart(2, "0");
12538
- var formatUUID = (bytes) => {
12539
- const segments = [bytes.subarray(0, 4), bytes.subarray(4, 6), bytes.subarray(6, 8), bytes.subarray(8, 10), bytes.subarray(10, 16)];
12540
- return segments.map((segment) => Array.from(segment, hex).join("")).join("-");
12541
- };
12542
- var formatUUIDv4 = (bytes) => {
12543
- bytes[6] = bytes[6] & 15 | 64;
12544
- bytes[8] = bytes[8] & 63 | 128;
12545
- return formatUUID(bytes);
12546
- };
12547
- var maxUUIDv7Timestamp = 2 ** 48 - 1;
12548
- var formatUUIDv7 = (timestampMillis, bytes) => {
12549
- const timestamp = Math.min(Math.max(0, Math.trunc(timestampMillis)), maxUUIDv7Timestamp);
12550
- bytes[0] = Math.floor(timestamp / 2 ** 40);
12551
- bytes[1] = Math.floor(timestamp / 2 ** 32) & 255;
12552
- bytes[2] = Math.floor(timestamp / 2 ** 24) & 255;
12553
- bytes[3] = Math.floor(timestamp / 2 ** 16) & 255;
12554
- bytes[4] = Math.floor(timestamp / 2 ** 8) & 255;
12555
- bytes[5] = timestamp & 255;
12556
- bytes[6] = bytes[6] & 15 | 112;
12557
- bytes[8] = bytes[8] & 63 | 128;
12558
- return formatUUID(bytes);
12559
- };
12560
12615
  var toHashAlgorithm = (algorithm) => {
12561
12616
  switch (algorithm) {
12562
12617
  case "SHA-1":
@@ -12585,7 +12640,7 @@ var make28 = /* @__PURE__ */ make27({
12585
12640
  });
12586
12641
  var layer5 = /* @__PURE__ */ succeed5(Crypto, make28);
12587
12642
 
12588
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12643
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12589
12644
  var layer6 = layer5;
12590
12645
  var handleBadArgument = (method) => (err) => badArgument({
12591
12646
  module: "FileSystem",
@@ -12670,7 +12725,7 @@ var makeTempDirectoryScoped = /* @__PURE__ */ (() => {
12670
12725
  var openFactory = (method) => {
12671
12726
  const nodeOpen = effectify(u__namespace.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
12672
12727
  const nodeClose = effectify(u__namespace.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
12673
- return (path5, options) => pipe(acquireRelease2(nodeOpen(path5, options?.flag ?? "r", options?.mode), (fd) => orDie2(nodeClose(fd))), map6((fd) => makeFile(fd, options?.flag?.startsWith("a") ?? false)));
12728
+ return (path5, options) => pipe(acquireRelease2(nodeOpen(path5, options?.flag ?? "r", options?.mode), (fd) => orDie2(nodeClose(fd))), map7((fd) => makeFile(fd, options?.flag?.startsWith("a") ?? false)));
12674
12729
  };
12675
12730
  var open2 = /* @__PURE__ */ openFactory("open");
12676
12731
  var makeFile = /* @__PURE__ */ (() => {
@@ -12694,7 +12749,7 @@ var makeFile = /* @__PURE__ */ (() => {
12694
12749
  this.append = append4;
12695
12750
  }
12696
12751
  get stat() {
12697
- return map6(nodeStat(this.fd), makeFileInfo);
12752
+ return map7(nodeStat(this.fd), makeFileInfo);
12698
12753
  }
12699
12754
  get sync() {
12700
12755
  return nodeSync(this.fd);
@@ -12713,7 +12768,7 @@ var makeFile = /* @__PURE__ */ (() => {
12713
12768
  read(buffer2) {
12714
12769
  return suspend2(() => {
12715
12770
  const position = this.position;
12716
- return map6(nodeRead(this.fd, {
12771
+ return map7(nodeRead(this.fd, {
12717
12772
  buffer: buffer2,
12718
12773
  position
12719
12774
  }), (bytesRead) => {
@@ -12728,7 +12783,7 @@ var makeFile = /* @__PURE__ */ (() => {
12728
12783
  return suspend2(() => {
12729
12784
  const buffer2 = Buffer.allocUnsafeSlow(sizeNumber);
12730
12785
  const position = this.position;
12731
- return map6(nodeReadAlloc(this.fd, {
12786
+ return map7(nodeReadAlloc(this.fd, {
12732
12787
  buffer: buffer2,
12733
12788
  position
12734
12789
  }), (bytesRead) => {
@@ -12746,7 +12801,7 @@ var makeFile = /* @__PURE__ */ (() => {
12746
12801
  });
12747
12802
  }
12748
12803
  truncate(length) {
12749
- return map6(nodeTruncate(this.fd, length ? Number(length) : void 0), () => {
12804
+ return map7(nodeTruncate(this.fd, length ? Number(length) : void 0), () => {
12750
12805
  if (!this.append) {
12751
12806
  const len = BigInt(length ?? 0);
12752
12807
  if (this.position > len) {
@@ -12758,7 +12813,7 @@ var makeFile = /* @__PURE__ */ (() => {
12758
12813
  write(buffer2) {
12759
12814
  return suspend2(() => {
12760
12815
  const position = this.position;
12761
- return map6(nodeWrite(this.fd, buffer2, void 0, void 0, this.append ? void 0 : Number(position)), (bytesWritten) => {
12816
+ return map7(nodeWrite(this.fd, buffer2, void 0, void 0, this.append ? void 0 : Number(position)), (bytesWritten) => {
12762
12817
  const sizeWritten = Size(bytesWritten);
12763
12818
  if (!this.append) {
12764
12819
  this.position = position + sizeWritten;
@@ -12860,7 +12915,7 @@ var makeFileInfo = (stat3) => ({
12860
12915
  });
12861
12916
  var stat2 = /* @__PURE__ */ (() => {
12862
12917
  const nodeStat = /* @__PURE__ */ effectify(u__namespace.stat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
12863
- return (path5) => map6(nodeStat(path5), makeFileInfo);
12918
+ return (path5) => map7(nodeStat(path5), makeFileInfo);
12864
12919
  })();
12865
12920
  var symlink2 = /* @__PURE__ */ (() => {
12866
12921
  const nodeSymlink = /* @__PURE__ */ effectify(u__namespace.symlink, /* @__PURE__ */ handleErrnoException("FileSystem", "symlink"), /* @__PURE__ */ handleBadArgument("symlink"));
@@ -12916,7 +12971,7 @@ var watchNode = (path5, options) => callback3((queue) => acquireRelease2(sync2((
12916
12971
  });
12917
12972
  return watcher;
12918
12973
  }), (watcher) => sync2(() => watcher.close())));
12919
- var watch2 = (backend, path5, options) => stat2(path5).pipe(map6((stat3) => backend.pipe(flatMap((_2) => _2.register(path5, stat3, options)), getOrElse(() => watchNode(path5, options)))), unwrap3);
12974
+ var watch2 = (backend, path5, options) => stat2(path5).pipe(map7((stat3) => backend.pipe(flatMap((_2) => _2.register(path5, stat3, options)), getOrElse(() => watchNode(path5, options)))), unwrap3);
12920
12975
  var writeFile2 = (path5, data, options) => callback2((resume, signal) => {
12921
12976
  try {
12922
12977
  u__namespace.writeFile(path5, data, {
@@ -12934,7 +12989,7 @@ var writeFile2 = (path5, data, options) => callback2((resume, signal) => {
12934
12989
  resume(fail6(handleBadArgument("writeFile")(err)));
12935
12990
  }
12936
12991
  });
12937
- var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBackend), (backend) => make11({
12992
+ var makeFileSystem = /* @__PURE__ */ map7(/* @__PURE__ */ serviceOption2(WatchBackend), (backend) => make11({
12938
12993
  access: access2,
12939
12994
  chmod: chmod2,
12940
12995
  chown: chown2,
@@ -12965,7 +13020,7 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
12965
13020
  }));
12966
13021
  var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
12967
13022
 
12968
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
13023
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
12969
13024
  var layer8 = layer7;
12970
13025
  var fileUrlOps = (windows) => ({
12971
13026
  fromFileUrl: (url) => try_3({
@@ -12990,25 +13045,25 @@ var fileUrlOps = (windows) => ({
12990
13045
  })
12991
13046
  });
12992
13047
  var layer9 = /* @__PURE__ */ succeed5(Path)({
12993
- [TypeId37]: TypeId37,
13048
+ [TypeId36]: TypeId36,
12994
13049
  ...R__namespace,
12995
13050
  .../* @__PURE__ */ fileUrlOps(void 0)
12996
13051
  });
12997
13052
 
12998
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
13053
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodePath.js
12999
13054
  var layer10 = layer9;
13000
13055
 
13001
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Stdio.js
13002
- var TypeId40 = "~effect/Stdio";
13003
- var Stdio = /* @__PURE__ */ Service(TypeId40);
13056
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Stdio.js
13057
+ var TypeId39 = "~effect/Stdio";
13058
+ var Stdio = /* @__PURE__ */ Service(TypeId39);
13004
13059
  var make29 = (options) => ({
13005
- [TypeId40]: TypeId40,
13060
+ [TypeId39]: TypeId39,
13006
13061
  stdinIsTerminal: succeed6(false),
13007
13062
  stdoutIsTerminal: succeed6(false),
13008
13063
  ...options
13009
13064
  });
13010
13065
 
13011
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
13066
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
13012
13067
  var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13013
13068
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
13014
13069
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
@@ -13045,11 +13100,11 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13045
13100
  })
13046
13101
  }));
13047
13102
 
13048
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13103
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13049
13104
  var layer12 = layer11;
13050
13105
 
13051
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Terminal.js
13052
- var TypeId41 = "~effect/platform/Terminal";
13106
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Terminal.js
13107
+ var TypeId40 = "~effect/platform/Terminal";
13053
13108
  var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
13054
13109
  var QuitError = class extends (/* @__PURE__ */ Error4("QuitError")({
13055
13110
  _tag: /* @__PURE__ */ tag("QuitError")
@@ -13065,7 +13120,7 @@ var isQuitError = (u2) => hasProperty(u2, QuitErrorTypeId);
13065
13120
  var Terminal = /* @__PURE__ */ Service("effect/platform/Terminal");
13066
13121
  var make30 = (impl) => Terminal.of({
13067
13122
  ...impl,
13068
- [TypeId41]: TypeId41
13123
+ [TypeId40]: TypeId40
13069
13124
  });
13070
13125
  var make31 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQuit) {
13071
13126
  const stdin = process.stdin;
@@ -13164,7 +13219,7 @@ var make31 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
13164
13219
  const readLine = suspend2(() => poll(lines2).pipe(flatMap3(match({
13165
13220
  onNone: () => scoped2(andThen2(get3(rlRef), take2(lines2))),
13166
13221
  onSome: succeed6
13167
- })), mapError3(() => new QuitError({}))));
13222
+ })), mapError2(() => new QuitError({}))));
13168
13223
  const display = (prompt) => uninterruptible2(callback2((resume) => {
13169
13224
  stdout.write(prompt, (err) => isNullish(err) ? resume(void_3) : resume(fail6(badArgument({
13170
13225
  module: "Terminal",
@@ -13186,13 +13241,13 @@ function defaultShouldQuit(input) {
13186
13241
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
13187
13242
  }
13188
13243
 
13189
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13244
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13190
13245
  var layer14 = layer13;
13191
13246
 
13192
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
13247
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeServices.js
13193
13248
  var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
13194
13249
 
13195
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/ConfigProvider.js
13250
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/ConfigProvider.js
13196
13251
  function makeValue(value3) {
13197
13252
  return {
13198
13253
  _tag: "Value",
@@ -13290,8 +13345,8 @@ function trieNodeAt(root, path5) {
13290
13345
  return node;
13291
13346
  }
13292
13347
 
13293
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Config.js
13294
- var TypeId42 = "~effect/Config";
13348
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Config.js
13349
+ var TypeId41 = "~effect/Config";
13295
13350
  var Proto12 = {
13296
13351
  .../* @__PURE__ */ Prototype2({
13297
13352
  label: "Config",
@@ -13299,7 +13354,7 @@ var Proto12 = {
13299
13354
  return this.parse(fiber3.getRef(ConfigProvider));
13300
13355
  }
13301
13356
  }),
13302
- [TypeId42]: TypeId42,
13357
+ [TypeId41]: TypeId41,
13303
13358
  toJSON() {
13304
13359
  return {
13305
13360
  _id: "Config"
@@ -13319,7 +13374,7 @@ var resolved = (value3, hasInput2) => ({
13319
13374
  hasInput: hasInput2
13320
13375
  });
13321
13376
  var map10 = /* @__PURE__ */ dual(2, (self, f2) => {
13322
- return make33((provider, pathPrefix) => map6(evaluateAt(self, provider, pathPrefix), (resolution) => resolution._tag === "Resolved" ? resolved(f2(resolution.value), resolution.hasInput) : resolution));
13377
+ return make33((provider, pathPrefix) => map7(evaluateAt(self, provider, pathPrefix), (resolution) => resolution._tag === "Resolved" ? resolved(f2(resolution.value), resolution.hasInput) : resolution));
13323
13378
  });
13324
13379
  var withDefault2 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
13325
13380
  return make33((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => resolution._tag === "Absent" ? resolved(defaultValue, false) : resolution));
@@ -13332,7 +13387,7 @@ var Boolean3 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValues.
13332
13387
  encode: (value3) => value3 ? "true" : "false"
13333
13388
  })));
13334
13389
 
13335
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Console.js
13390
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Console.js
13336
13391
  var Console = ConsoleRef;
13337
13392
  var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
13338
13393
  var error = (...args2) => consoleWith((console) => sync(() => {
@@ -13342,7 +13397,7 @@ var log2 = (...args2) => consoleWith((console) => sync(() => {
13342
13397
  console.log(...args2);
13343
13398
  }));
13344
13399
 
13345
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Argument.js
13400
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Argument.js
13346
13401
  var Argument_exports = {};
13347
13402
  __export(Argument_exports, {
13348
13403
  atLeast: () => atLeast2,
@@ -13379,10 +13434,10 @@ __export(Argument_exports, {
13379
13434
  withSchema: () => withSchema2
13380
13435
  });
13381
13436
 
13382
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliError.js
13383
- var TypeId43 = "~effect/cli/CliError";
13384
- var isCliError = (u2) => hasProperty(u2, TypeId43);
13385
- var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnrecognizedOption`)("UnrecognizedOption", {
13437
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/CliError.js
13438
+ var TypeId42 = "~effect/cli/CliError";
13439
+ var isCliError = (u2) => hasProperty(u2, TypeId42);
13440
+ var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnrecognizedOption`)("UnrecognizedOption", {
13386
13441
  option: String4,
13387
13442
  command: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13388
13443
  suggestions: /* @__PURE__ */ ArraySchema(String4)
@@ -13392,7 +13447,7 @@ var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13392
13447
  *
13393
13448
  * @since 4.0.0
13394
13449
  */
13395
- [TypeId43] = TypeId43;
13450
+ [TypeId42] = TypeId42;
13396
13451
  /**
13397
13452
  * Formats the unrecognized option with command context and suggestions.
13398
13453
  *
@@ -13407,7 +13462,7 @@ var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13407
13462
  return baseMessage + suggestionText;
13408
13463
  }
13409
13464
  };
13410
- var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/DuplicateOption`)("DuplicateOption", {
13465
+ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/DuplicateOption`)("DuplicateOption", {
13411
13466
  option: String4,
13412
13467
  parentCommand: String4,
13413
13468
  childCommand: String4
@@ -13417,7 +13472,7 @@ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/D
13417
13472
  *
13418
13473
  * @since 4.0.0
13419
13474
  */
13420
- [TypeId43] = TypeId43;
13475
+ [TypeId42] = TypeId42;
13421
13476
  /**
13422
13477
  * Explains which parent and child commands define the duplicate option.
13423
13478
  *
@@ -13427,7 +13482,7 @@ var DuplicateOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/D
13427
13482
  return `Duplicate flag name "${this.option}" in parent command "${this.parentCommand}" and subcommand "${this.childCommand}". Parent will always claim this flag (Mode A semantics). Consider renaming one of them to avoid confusion.`;
13428
13483
  }
13429
13484
  };
13430
- var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/MissingOption`)("MissingOption", {
13485
+ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/MissingOption`)("MissingOption", {
13431
13486
  option: String4
13432
13487
  })) {
13433
13488
  /**
@@ -13435,7 +13490,7 @@ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Mis
13435
13490
  *
13436
13491
  * @since 4.0.0
13437
13492
  */
13438
- [TypeId43] = TypeId43;
13493
+ [TypeId42] = TypeId42;
13439
13494
  /**
13440
13495
  * Formats the missing required flag for display.
13441
13496
  *
@@ -13445,7 +13500,7 @@ var MissingOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Mis
13445
13500
  return `Missing required flag: --${this.option}`;
13446
13501
  }
13447
13502
  };
13448
- var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/MissingArgument`)("MissingArgument", {
13503
+ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/MissingArgument`)("MissingArgument", {
13449
13504
  argument: String4
13450
13505
  })) {
13451
13506
  /**
@@ -13453,7 +13508,7 @@ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/M
13453
13508
  *
13454
13509
  * @since 4.0.0
13455
13510
  */
13456
- [TypeId43] = TypeId43;
13511
+ [TypeId42] = TypeId42;
13457
13512
  /**
13458
13513
  * Formats the missing required positional argument for display.
13459
13514
  *
@@ -13463,7 +13518,7 @@ var MissingArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/M
13463
13518
  return `Missing required argument: ${this.argument}`;
13464
13519
  }
13465
13520
  };
13466
- var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnexpectedArgument`)("UnexpectedArgument", {
13521
+ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnexpectedArgument`)("UnexpectedArgument", {
13467
13522
  arguments: /* @__PURE__ */ ArraySchema(String4)
13468
13523
  })) {
13469
13524
  /**
@@ -13471,7 +13526,7 @@ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13471
13526
  *
13472
13527
  * @since 4.0.0
13473
13528
  */
13474
- [TypeId43] = TypeId43;
13529
+ [TypeId42] = TypeId42;
13475
13530
  /**
13476
13531
  * Formats the unexpected positional arguments for display.
13477
13532
  *
@@ -13482,7 +13537,7 @@ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43
13482
13537
  return `Unexpected positional ${label}: ${this.arguments.map((value3) => JSON.stringify(value3)).join(", ")}`;
13483
13538
  }
13484
13539
  };
13485
- var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/InvalidValue`)("InvalidValue", {
13540
+ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/InvalidValue`)("InvalidValue", {
13486
13541
  option: String4,
13487
13542
  value: String4,
13488
13543
  expected: String4,
@@ -13493,7 +13548,7 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Inv
13493
13548
  *
13494
13549
  * @since 4.0.0
13495
13550
  */
13496
- [TypeId43] = TypeId43;
13551
+ [TypeId42] = TypeId42;
13497
13552
  /**
13498
13553
  * Formats the invalid flag or argument value with the expected input.
13499
13554
  *
@@ -13510,7 +13565,7 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Inv
13510
13565
  return `Invalid value for flag --${this.option}: "${this.value}". ${expectation}`;
13511
13566
  }
13512
13567
  };
13513
- var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnknownSubcommand`)("UnknownSubcommand", {
13568
+ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnknownSubcommand`)("UnknownSubcommand", {
13514
13569
  subcommand: String4,
13515
13570
  parent: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13516
13571
  suggestions: /* @__PURE__ */ ArraySchema(String4)
@@ -13520,7 +13575,7 @@ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}
13520
13575
  *
13521
13576
  * @since 4.0.0
13522
13577
  */
13523
- [TypeId43] = TypeId43;
13578
+ [TypeId42] = TypeId42;
13524
13579
  /**
13525
13580
  * Formats the unknown subcommand with parent command context and suggestions.
13526
13581
  *
@@ -13534,22 +13589,41 @@ var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}
13534
13589
  return this.parent ? `Unknown subcommand "${this.subcommand}" for "${this.parent.join(" ")}"${suggestionText}` : `Unknown subcommand "${this.subcommand}"${suggestionText}`;
13535
13590
  }
13536
13591
  };
13537
- var UserError = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UserError`)("UserError", {
13538
- cause: /* @__PURE__ */ Defect()
13592
+ var UserError = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UserError`)("UserError", {
13593
+ cause: /* @__PURE__ */ Defect(),
13594
+ userMessage: /* @__PURE__ */ optionalKey2(String4)
13539
13595
  })) {
13540
13596
  /**
13541
13597
  * Marks this value as a user handler error for runtime guards.
13542
13598
  *
13543
13599
  * @since 4.0.0
13544
13600
  */
13545
- [TypeId43] = TypeId43;
13601
+ [TypeId42] = TypeId42;
13602
+ /**
13603
+ * Controls whether the runtime logger should report this error. The CLI
13604
+ * runner sets this to `false` after rendering the error itself.
13605
+ *
13606
+ * @since 4.0.0
13607
+ */
13608
+ [errorReported] = true;
13609
+ /**
13610
+ * Returns the explicit user-facing message or a safe fallback from `cause`.
13611
+ *
13612
+ * @since 4.0.0
13613
+ */
13614
+ get message() {
13615
+ if (this.userMessage) return this.userMessage;
13616
+ if (typeof this.cause === "string" && this.cause) return this.cause;
13617
+ if (this.cause instanceof Error && this.cause.message) return this.cause.message;
13618
+ return "An error occurred";
13619
+ }
13546
13620
  };
13547
13621
  var NonShowHelpErrors = /* @__PURE__ */ Union2([UnrecognizedOption, DuplicateOption, MissingOption, MissingArgument, UnexpectedArgument, InvalidValue2, UnknownSubcommand, UserError]);
13548
- var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/ShowHelp`)("ShowHelp", {
13622
+ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/ShowHelp`)("ShowHelp", {
13549
13623
  commandPath: /* @__PURE__ */ ArraySchema(String4),
13550
13624
  errors: /* @__PURE__ */ ArraySchema(NonShowHelpErrors)
13551
13625
  })) {
13552
- [TypeId43] = TypeId43;
13626
+ [TypeId42] = TypeId42;
13553
13627
  [errorExitCode] = this.errors.length ? 1 : 0;
13554
13628
  [errorReported] = false;
13555
13629
  get message() {
@@ -13557,7 +13631,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/ShowHelp
13557
13631
  }
13558
13632
  };
13559
13633
 
13560
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Ini.js
13634
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/encoding/Ini.js
13561
13635
  var hasOwn = Object.prototype.hasOwnProperty;
13562
13636
  var splitSections = (value3) => {
13563
13637
  const sections = [];
@@ -13676,7 +13750,7 @@ var parse = (input) => {
13676
13750
  return output;
13677
13751
  };
13678
13752
 
13679
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Toml.js
13753
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/encoding/Toml.js
13680
13754
  var hasOwn2 = Object.prototype.hasOwnProperty;
13681
13755
  var makeTable = () => /* @__PURE__ */ Object.create(null);
13682
13756
  var isTable = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3) && !(value3 instanceof Date);
@@ -14094,7 +14168,7 @@ var TomlParser = class {
14094
14168
  };
14095
14169
  var parse2 = (input) => new TomlParser(input.replace(/^\uFEFF/, "")).parse();
14096
14170
 
14097
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Yaml.js
14171
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/encoding/Yaml.js
14098
14172
  var hasOwn3 = Object.prototype.hasOwnProperty;
14099
14173
  var setProperty = (record2, key, value3) => {
14100
14174
  Object.defineProperty(record2, key, {
@@ -14547,10 +14621,10 @@ var parse3 = (input) => {
14547
14621
  return new YamlParser(lines2).parse();
14548
14622
  };
14549
14623
 
14550
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Primitive.js
14551
- var TypeId44 = "~effect/cli/Primitive";
14624
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Primitive.js
14625
+ var TypeId43 = "~effect/cli/Primitive";
14552
14626
  var Proto13 = {
14553
- [TypeId44]: {
14627
+ [TypeId43]: {
14554
14628
  _A: identity
14555
14629
  }
14556
14630
  };
@@ -14564,7 +14638,7 @@ var makePrimitive2 = (tag2, parse4) => Object.assign(Object.create(Proto13), {
14564
14638
  var makeSchemaPrimitive = (tag2, schema) => {
14565
14639
  const toCodecStringTree2 = toCodecStringTree(schema);
14566
14640
  const decode = decodeUnknownEffect2(toCodecStringTree2);
14567
- return makePrimitive2(tag2, (value3) => mapError3(decode(value3), (error2) => error2.message));
14641
+ return makePrimitive2(tag2, (value3) => mapError2(decode(value3), (error2) => error2.message));
14568
14642
  };
14569
14643
  var boolean2 = /* @__PURE__ */ makeSchemaPrimitive("Boolean", Boolean3);
14570
14644
  var float = /* @__PURE__ */ makeSchemaPrimitive("Float", Finite);
@@ -14589,12 +14663,12 @@ var path = (pathType, mustExist) => {
14589
14663
  const fs2 = yield* FileSystem;
14590
14664
  const path5 = yield* Path;
14591
14665
  const absolutePath = path5.isAbsolute(value3) ? value3 : path5.resolve(value3);
14592
- const exists2 = yield* mapError3(fs2.exists(absolutePath), (error2) => `Failed to check path existence: ${error2.message}`);
14666
+ const exists2 = yield* mapError2(fs2.exists(absolutePath), (error2) => `Failed to check path existence: ${error2.message}`);
14593
14667
  if (mustExist === true && !exists2) {
14594
14668
  return yield* fail6(`Path does not exist: ${absolutePath}`);
14595
14669
  }
14596
14670
  if (exists2 && pathType !== "either") {
14597
- const stat3 = yield* mapError3(fs2.stat(absolutePath), (error2) => `Failed to stat path: ${error2.message}`);
14671
+ const stat3 = yield* mapError2(fs2.stat(absolutePath), (error2) => `Failed to stat path: ${error2.message}`);
14598
14672
  if (pathType === "file" && stat3.type !== "File") {
14599
14673
  return yield* fail6(`Path is not a file: ${absolutePath}`);
14600
14674
  }
@@ -14613,15 +14687,15 @@ var fileText = /* @__PURE__ */ makePrimitive2("FileText", /* @__PURE__ */ fnUntr
14613
14687
  const fs2 = yield* FileSystem;
14614
14688
  const path5 = yield* Path;
14615
14689
  const absolutePath = path5.isAbsolute(filePath) ? filePath : path5.resolve(filePath);
14616
- const exists2 = yield* mapError3(fs2.exists(absolutePath), (error2) => `Failed to check file existence: ${error2.message}`);
14690
+ const exists2 = yield* mapError2(fs2.exists(absolutePath), (error2) => `Failed to check file existence: ${error2.message}`);
14617
14691
  if (!exists2) {
14618
14692
  return yield* fail6(`File does not exist: ${absolutePath}`);
14619
14693
  }
14620
- const stat3 = yield* mapError3(fs2.stat(absolutePath), (error2) => `Failed to stat file: ${error2.message}`);
14694
+ const stat3 = yield* mapError2(fs2.stat(absolutePath), (error2) => `Failed to stat file: ${error2.message}`);
14621
14695
  if (stat3.type !== "File") {
14622
14696
  return yield* fail6(`Path is not a file: ${absolutePath}`);
14623
14697
  }
14624
- const content = yield* mapError3(fs2.readFileString(absolutePath), (error2) => `Failed to read file: ${error2.message}`);
14698
+ const content = yield* mapError2(fs2.readFileString(absolutePath), (error2) => `Failed to read file: ${error2.message}`);
14625
14699
  return content;
14626
14700
  }));
14627
14701
  var fileParsers = {
@@ -14649,7 +14723,7 @@ var fileSchema = (schema, options) => {
14649
14723
  const decode = decodeUnknownEffect2(schema);
14650
14724
  return makePrimitive2("FileSchema", fnUntraced2(function* (filePath) {
14651
14725
  const content = yield* fileParse(options).parse(filePath);
14652
- return yield* mapError3(decode(content), (error2) => options?.errorFormatter?.(error2.issue) ?? error2.toString());
14726
+ return yield* mapError2(decode(content), (error2) => options?.errorFormatter?.(error2.issue) ?? error2.toString());
14653
14727
  }));
14654
14728
  };
14655
14729
  var keyValuePair = /* @__PURE__ */ makePrimitive2("KeyValuePair", /* @__PURE__ */ fnUntraced2(function* (value3) {
@@ -14701,7 +14775,7 @@ var getTypeName = (primitive) => {
14701
14775
  var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
14702
14776
  var getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
14703
14777
 
14704
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Prompt.js
14778
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Prompt.js
14705
14779
  var Prompt_exports = {};
14706
14780
  __export(Prompt_exports, {
14707
14781
  all: () => all3,
@@ -14727,7 +14801,7 @@ __export(Prompt_exports, {
14727
14801
  toggle: () => toggle
14728
14802
  });
14729
14803
 
14730
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/ansi.js
14804
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/ansi.js
14731
14805
  var ESC = "\x1B[";
14732
14806
  var BEL = "\x07";
14733
14807
  var reset = `${ESC}0m`;
@@ -14788,9 +14862,9 @@ var eraseLines = (rows) => {
14788
14862
  return command2;
14789
14863
  };
14790
14864
 
14791
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Prompt.js
14792
- var TypeId45 = "~effect/cli/Prompt";
14793
- var isPrompt = (u2) => hasProperty(u2, TypeId45);
14865
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Prompt.js
14866
+ var TypeId44 = "~effect/cli/Prompt";
14867
+ var isPrompt = (u2) => hasProperty(u2, TypeId44);
14794
14868
  var defaultFigures = {
14795
14869
  arrowUp: "\u2191",
14796
14870
  arrowDown: "\u2193",
@@ -14807,6 +14881,7 @@ var defaultFigures = {
14807
14881
  line: "\u2500",
14808
14882
  pointer: "\u276F"
14809
14883
  };
14884
+ var DEFAULT_PREFIX = "?";
14810
14885
  var windowsFigures = {
14811
14886
  arrowUp: defaultFigures.arrowUp,
14812
14887
  arrowDown: defaultFigures.arrowDown,
@@ -14823,7 +14898,7 @@ var windowsFigures = {
14823
14898
  line: "\u2500",
14824
14899
  pointer: ">"
14825
14900
  };
14826
- var platformFigures = /* @__PURE__ */ map6(/* @__PURE__ */ sync2(() => process.platform === "win32"), (isWindows) => isWindows ? windowsFigures : defaultFigures);
14901
+ var platformFigures = /* @__PURE__ */ map7(/* @__PURE__ */ sync2(() => process.platform === "win32"), (isWindows) => isWindows ? windowsFigures : defaultFigures);
14827
14902
  var all3 = function() {
14828
14903
  if (arguments.length === 1) {
14829
14904
  if (isPrompt(arguments[0])) {
@@ -14859,6 +14934,7 @@ var confirm = (options) => {
14859
14934
  const opts = {
14860
14935
  initial: false,
14861
14936
  ...options,
14937
+ prefix: options.prefix ?? DEFAULT_PREFIX,
14862
14938
  label: {
14863
14939
  confirm: "yes",
14864
14940
  deny: "no",
@@ -14896,6 +14972,7 @@ var date2 = (options) => {
14896
14972
  dateMask: "YYYY-MM-DD HH:mm:ss",
14897
14973
  validate: succeed6,
14898
14974
  ...options,
14975
+ prefix: options.prefix ?? DEFAULT_PREFIX,
14899
14976
  locales: {
14900
14977
  ...defaultLocales,
14901
14978
  ...options.locales
@@ -14920,6 +14997,7 @@ var file2 = (options = {}) => {
14920
14997
  const opts = {
14921
14998
  type: options.type ?? "file",
14922
14999
  message: options.message ?? `Choose a file`,
15000
+ prefix: options.prefix ?? DEFAULT_PREFIX,
14923
15001
  startingPath: fromUndefinedOr(options.startingPath),
14924
15002
  default: fromUndefinedOr(options.default),
14925
15003
  maxPerPage: options.maxPerPage ?? 10,
@@ -14981,7 +15059,8 @@ var float2 = (options) => {
14981
15059
  }
14982
15060
  return succeed6(n);
14983
15061
  },
14984
- ...options
15062
+ ...options,
15063
+ prefix: options.prefix ?? DEFAULT_PREFIX
14985
15064
  };
14986
15065
  const initialValue = options.default === void 0 ? "" : `${opts.default}`;
14987
15066
  const initialState = {
@@ -15012,7 +15091,8 @@ var integer2 = (options) => {
15012
15091
  }
15013
15092
  return succeed6(n);
15014
15093
  },
15015
- ...options
15094
+ ...options,
15095
+ prefix: options.prefix ?? DEFAULT_PREFIX
15016
15096
  };
15017
15097
  const initialValue = options.default === void 0 ? "" : `${opts.default}`;
15018
15098
  const initialState = {
@@ -15033,7 +15113,7 @@ var run3 = /* @__PURE__ */ fnUntraced2(function* (self) {
15033
15113
  const terminal = yield* Terminal;
15034
15114
  const input = yield* terminal.readInput;
15035
15115
  return yield* runWithInput(self, terminal, input);
15036
- }, /* @__PURE__ */ mapError3(() => new QuitError({})), scoped2);
15116
+ }, /* @__PURE__ */ mapError2(() => new QuitError({})), scoped2);
15037
15117
  var getSelectInitialIndex = (choices) => {
15038
15118
  let initialIndex = 0;
15039
15119
  let seenSelected = -1;
@@ -15054,7 +15134,8 @@ var getSelectInitialIndex = (choices) => {
15054
15134
  var select = (options) => {
15055
15135
  const opts = {
15056
15136
  maxPerPage: 10,
15057
- ...options
15137
+ ...options,
15138
+ prefix: options.prefix ?? DEFAULT_PREFIX
15058
15139
  };
15059
15140
  const initialIndex = getSelectInitialIndex(opts.choices);
15060
15141
  return custom(initialIndex, {
@@ -15069,7 +15150,8 @@ var autoComplete = (options) => {
15069
15150
  filterLabel: "filter",
15070
15151
  filterPlaceholder: "type to filter",
15071
15152
  emptyMessage: "No matches",
15072
- ...options
15153
+ ...options,
15154
+ prefix: options.prefix ?? DEFAULT_PREFIX
15073
15155
  };
15074
15156
  const initialIndex = getSelectInitialIndex(opts.choices);
15075
15157
  const filtered = filterAutoCompleteChoices(opts.choices, "");
@@ -15088,7 +15170,8 @@ var autoComplete = (options) => {
15088
15170
  var multiSelect = (options) => {
15089
15171
  const opts = {
15090
15172
  maxPerPage: 10,
15091
- ...options
15173
+ ...options,
15174
+ prefix: options.prefix ?? DEFAULT_PREFIX
15092
15175
  };
15093
15176
  const initialSelected = /* @__PURE__ */ new Set();
15094
15177
  for (let i = 0; i < opts.choices.length; i++) {
@@ -15120,7 +15203,8 @@ var toggle = (options) => {
15120
15203
  initial: false,
15121
15204
  active: "on",
15122
15205
  inactive: "off",
15123
- ...options
15206
+ ...options,
15207
+ prefix: options.prefix ?? DEFAULT_PREFIX
15124
15208
  };
15125
15209
  return custom(opts.initial, {
15126
15210
  render: handleToggleRender(opts),
@@ -15135,7 +15219,7 @@ var proto = {
15135
15219
  return run3(this);
15136
15220
  }
15137
15221
  }),
15138
- [TypeId45]: {
15222
+ [TypeId44]: {
15139
15223
  _Output: (_2) => _2
15140
15224
  }
15141
15225
  };
@@ -15176,11 +15260,11 @@ var runLoop = /* @__PURE__ */ fnUntraced2(function* (loop, terminal, input) {
15176
15260
  const msg = yield* loop.render(state, action2);
15177
15261
  yield* orDie2(terminal.display(msg));
15178
15262
  if (loop.events) {
15179
- const takeInput = take2(input).pipe(map6((input2) => ({
15263
+ const takeInput = take2(input).pipe(map7((input2) => ({
15180
15264
  _tag: "Input",
15181
15265
  input: input2
15182
15266
  })));
15183
- const result3 = yield* raceFirst2(takeInput, take2(loop.events).pipe(map6((value3) => ({
15267
+ const result3 = yield* raceFirst2(takeInput, take2(loop.events).pipe(map7((value3) => ({
15184
15268
  _tag: "Event",
15185
15269
  value: value3
15186
15270
  }))));
@@ -15237,7 +15321,7 @@ var handleConfirmClear = (options) => {
15237
15321
  const columns = yield* terminal.columns;
15238
15322
  const figures = yield* platformFigures;
15239
15323
  const confirmMessage = state.value ? options.placeholder.defaultConfirm : options.placeholder.defaultDeny;
15240
- const promptText = renderConfirmOutput(confirmMessage, "?", figures.pointerSmall, options, {
15324
+ const promptText = renderConfirmOutput(confirmMessage, options.prefix, figures.pointerSmall, options, {
15241
15325
  plain: true
15242
15326
  });
15243
15327
  const clearOutput = eraseText(promptText, columns);
@@ -15248,7 +15332,7 @@ var handleConfirmClear = (options) => {
15248
15332
  var renderConfirmOutput = (confirm2, leadingSymbol, trailingSymbol, options, renderOptions) => renderPrompt(confirm2, options.message, leadingSymbol, trailingSymbol, renderOptions);
15249
15333
  var renderConfirmNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
15250
15334
  const figures = yield* platformFigures;
15251
- const leadingSymbol = annotate2("?", cyanBright);
15335
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
15252
15336
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
15253
15337
  const confirmMessage = state.value ? options.placeholder.defaultConfirm : options.placeholder.defaultDeny;
15254
15338
  const confirm2 = annotate2(confirmMessage, blackBright);
@@ -15304,7 +15388,7 @@ var handleDateClear = (options) => {
15304
15388
  const figures = yield* platformFigures;
15305
15389
  const resetCurrentLine = eraseLine + cursorLeft;
15306
15390
  const parts = reduce(state.dateParts, "", (doc, part) => doc + part.toString());
15307
- const promptText = renderDateOutput("?", figures.pointerSmall, parts, options, {
15391
+ const promptText = renderDateOutput(options.prefix, figures.pointerSmall, parts, options, {
15308
15392
  plain: true
15309
15393
  });
15310
15394
  const errorText = isSome2(state.error) ? match4(state.error.value.split(NEWLINE_REGEXP), {
@@ -15339,7 +15423,7 @@ var renderParts = (state, submitted = false) => {
15339
15423
  var renderDateOutput = (leadingSymbol, trailingSymbol, parts, options, renderOptions) => renderPrompt(parts, options.message, leadingSymbol, trailingSymbol, renderOptions);
15340
15424
  var renderDateNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
15341
15425
  const figures = yield* platformFigures;
15342
- const leadingSymbol = annotate2("?", cyanBright);
15426
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
15343
15427
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
15344
15428
  const parts = renderParts(state);
15345
15429
  const promptMsg = renderDateOutput(leadingSymbol, trailingSymbol, parts, options);
@@ -15770,12 +15854,12 @@ var getFileList = /* @__PURE__ */ fnUntraced2(function* (directory4, options) {
15770
15854
  const files = yield* orDie2(fs2.readDirectory(directory4)).pipe(
15771
15855
  // Always prepend the `".."` option to the file list but allow it
15772
15856
  // to be filtered out if the user so desires
15773
- map6((files2) => ["..", ...files2])
15857
+ map7((files2) => ["..", ...files2])
15774
15858
  );
15775
15859
  return yield* filter4(files, (file6) => {
15776
15860
  const result3 = options.filter(file6);
15777
15861
  const userDefinedFilter = isEffect2(result3) ? result3 : succeed6(result3);
15778
- const directoryFilter = options.type === "directory" ? map6(orDie2(fs2.stat(path5.join(directory4, file6))), (info) => info.type === "Directory") : succeed6(true);
15862
+ const directoryFilter = options.type === "directory" ? map7(orDie2(fs2.stat(path5.join(directory4, file6))), (info) => info.type === "Directory") : succeed6(true);
15779
15863
  return zipWith2(userDefinedFilter, directoryFilter, (a, b2) => a && b2);
15780
15864
  }, {
15781
15865
  concurrency: files.length
@@ -15826,7 +15910,7 @@ var handleFileClear = (options) => {
15826
15910
  const resolvedPath = selectedPath === void 0 ? currentPath : path5.resolve(currentPath, selectedPath);
15827
15911
  const resolvedPathText = `${figures.pointerSmall} ${resolvedPath}`;
15828
15912
  const isConfirming = showConfirmation(state.confirm);
15829
- const promptText = isConfirming ? renderPrompt("(Y/n)", CONFIRM_MESSAGE, "?", figures.pointerSmall, {
15913
+ const promptText = isConfirming ? renderPrompt("(Y/n)", CONFIRM_MESSAGE, options.prefix, figures.pointerSmall, {
15830
15914
  plain: true
15831
15915
  }) : renderPrompt(renderFileFilter(state, {
15832
15916
  plain: true
@@ -15901,7 +15985,7 @@ var renderFileNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options)
15901
15985
  const resolvedPath = selectedPath === void 0 ? currentPath : path5.resolve(currentPath, selectedPath);
15902
15986
  const resolvedPathMsg = annotate2(figures.pointerSmall + " " + resolvedPath, blackBright);
15903
15987
  if (showConfirmation(state.confirm)) {
15904
- const leadingSymbol2 = annotate2("?", cyanBright);
15988
+ const leadingSymbol2 = annotate2(options.prefix, cyanBright);
15905
15989
  const trailingSymbol2 = annotate2(figures.pointerSmall, blackBright);
15906
15990
  const confirm2 = annotate2("(Y/n)", blackBright);
15907
15991
  const promptMsg2 = renderPrompt(confirm2, CONFIRM_MESSAGE, leadingSymbol2, trailingSymbol2);
@@ -16161,7 +16245,7 @@ var renderMultiSelectChoices = (state, options, figures, renderOptions) => {
16161
16245
  var renderMultiSelectNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16162
16246
  const figures = yield* platformFigures;
16163
16247
  const choices = renderMultiSelectChoices(state, options, figures);
16164
- const leadingSymbol = annotate2("?", cyanBright);
16248
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
16165
16249
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
16166
16250
  const promptMsg = renderSelectOutput(leadingSymbol, trailingSymbol, options);
16167
16251
  const error2 = renderMultiSelectError(state, figures.pointer);
@@ -16238,7 +16322,7 @@ var handleMultiSelectClear = (options) => fnUntraced2(function* (state, _2) {
16238
16322
  const columns = yield* terminal.columns;
16239
16323
  const figures = yield* platformFigures;
16240
16324
  const clearPrompt = eraseLine + cursorLeft;
16241
- const promptText = renderSelectOutput("?", figures.pointerSmall, options, {
16325
+ const promptText = renderSelectOutput(options.prefix, figures.pointerSmall, options, {
16242
16326
  plain: true
16243
16327
  });
16244
16328
  const choicesText = renderMultiSelectChoices(state, options, figures, {
@@ -16324,7 +16408,7 @@ var handleNumberClear = (options) => {
16324
16408
  const errorText = renderNumberError(state, figures.pointerSmall, {
16325
16409
  plain: true
16326
16410
  });
16327
- const promptText = renderNumberOutput(state, "?", figures.pointerSmall, options, {
16411
+ const promptText = renderNumberOutput(state, options.prefix, figures.pointerSmall, options, {
16328
16412
  plain: true
16329
16413
  });
16330
16414
  const clearOutput = clearOutputWithError(promptText, columns, errorText);
@@ -16361,7 +16445,7 @@ var renderNumberOutput = (state, leadingSymbol, trailingSymbol, options, renderO
16361
16445
  };
16362
16446
  var renderNumberNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16363
16447
  const figures = yield* platformFigures;
16364
- const leadingSymbol = annotate2("?", cyanBright);
16448
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
16365
16449
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
16366
16450
  const errorMsg = renderNumberError(state, figures.pointerSmall);
16367
16451
  const promptMsg = renderNumberOutput(state, leadingSymbol, trailingSymbol, options);
@@ -16707,7 +16791,7 @@ var renderAutoCompleteChoices = (state, options, figures, renderOptions) => {
16707
16791
  var renderSelectNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16708
16792
  const figures = yield* platformFigures;
16709
16793
  const choices = renderSelectChoices(state, options, figures);
16710
- const leadingSymbol = annotate2("?", cyanBright);
16794
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
16711
16795
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
16712
16796
  const promptMsg = renderSelectOutput(leadingSymbol, trailingSymbol, options);
16713
16797
  return cursorHide + promptMsg + "\n" + choices;
@@ -16715,7 +16799,7 @@ var renderSelectNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, option
16715
16799
  var renderAutoCompleteNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16716
16800
  const figures = yield* platformFigures;
16717
16801
  const choices = renderAutoCompleteChoices(state, options, figures);
16718
- const leadingSymbol = annotate2("?", cyanBright);
16802
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
16719
16803
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
16720
16804
  const promptMsg = renderAutoCompleteOutput(state, leadingSymbol, trailingSymbol, options);
16721
16805
  return cursorHide + promptMsg + "\n" + choices;
@@ -16836,7 +16920,7 @@ var handleSelectClear = (options) => fnUntraced2(function* (state, _2) {
16836
16920
  const columns = yield* terminal.columns;
16837
16921
  const figures = yield* platformFigures;
16838
16922
  const clearPrompt = eraseLine + cursorLeft;
16839
- const promptText = renderSelectOutput("?", figures.pointerSmall, options, {
16923
+ const promptText = renderSelectOutput(options.prefix, figures.pointerSmall, options, {
16840
16924
  plain: true
16841
16925
  });
16842
16926
  const choicesText = renderSelectChoices(state, options, figures, {
@@ -16851,7 +16935,7 @@ var handleAutoCompleteClear = (options) => fnUntraced2(function* (state, _2) {
16851
16935
  const columns = yield* terminal.columns;
16852
16936
  const figures = yield* platformFigures;
16853
16937
  const clearPrompt = eraseLine + cursorLeft;
16854
- const promptText = renderAutoCompleteOutput(state, "?", figures.pointerSmall, options, {
16938
+ const promptText = renderAutoCompleteOutput(state, options.prefix, figures.pointerSmall, options, {
16855
16939
  plain: true
16856
16940
  });
16857
16941
  const choicesText = renderAutoCompleteChoices(state, options, figures, {
@@ -16941,7 +17025,7 @@ var renderClearScreen = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16941
17025
  const errorText = renderTextError(state, figures.pointerSmall, {
16942
17026
  plain: true
16943
17027
  });
16944
- const clearOutput = clearOutputWithError(renderTextOutput(state, "?", figures.pointerSmall, options, {
17028
+ const clearOutput = clearOutputWithError(renderTextOutput(state, options.prefix, figures.pointerSmall, options, {
16945
17029
  plain: true
16946
17030
  }), columns, errorText);
16947
17031
  return clearOutput + resetCurrentLine;
@@ -16996,7 +17080,7 @@ var renderTextOutput = (nextState, leadingSymbol, trailingSymbol, options, rende
16996
17080
  };
16997
17081
  var renderTextNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16998
17082
  const figures = yield* platformFigures;
16999
- const leadingSymbol = annotate2("?", cyanBright);
17083
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
17000
17084
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
17001
17085
  const promptMsg = renderTextOutput(state, leadingSymbol, trailingSymbol, options);
17002
17086
  const errorMsg = renderTextError(state, figures.pointerSmall);
@@ -17183,7 +17267,8 @@ var basePrompt = (options, type) => {
17183
17267
  default: "",
17184
17268
  type,
17185
17269
  validate: succeed6,
17186
- ...options
17270
+ ...options,
17271
+ prefix: options.prefix ?? DEFAULT_PREFIX
17187
17272
  };
17188
17273
  const initialState = {
17189
17274
  cursor: opts.default.length,
@@ -17202,7 +17287,7 @@ var handleToggleClear = /* @__PURE__ */ fnUntraced2(function* (options) {
17202
17287
  const figures = yield* platformFigures;
17203
17288
  const clearPrompt = eraseLine + cursorLeft;
17204
17289
  const toggleText = `${options.active} / ${options.inactive}`;
17205
- const promptText = renderPrompt(toggleText, options.message, "?", figures.pointerSmall, {
17290
+ const promptText = renderPrompt(toggleText, options.message, options.prefix, figures.pointerSmall, {
17206
17291
  plain: true
17207
17292
  });
17208
17293
  const clearOutput = eraseText(promptText, columns);
@@ -17226,7 +17311,7 @@ var renderToggleOutput = (toggle2, leadingSymbol, trailingSymbol, options) => {
17226
17311
  };
17227
17312
  var renderToggleNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
17228
17313
  const figures = yield* platformFigures;
17229
- const leadingSymbol = annotate2("?", cyanBright);
17314
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
17230
17315
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
17231
17316
  const toggle2 = renderToggle(state, options);
17232
17317
  const promptMsg = renderToggleOutput(toggle2, leadingSymbol, trailingSymbol, options);
@@ -17304,19 +17389,19 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
17304
17389
  };
17305
17390
  };
17306
17391
 
17307
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Param.js
17308
- var TypeId46 = "~effect/cli/Param";
17392
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Param.js
17393
+ var TypeId45 = "~effect/cli/Param";
17309
17394
  var argumentKind = "argument";
17310
17395
  var flagKind = "flag";
17311
17396
  var Proto14 = {
17312
- [TypeId46]: {
17397
+ [TypeId45]: {
17313
17398
  _A: identity
17314
17399
  },
17315
17400
  pipe() {
17316
17401
  return pipeArguments(this, arguments);
17317
17402
  }
17318
17403
  };
17319
- var isParam = (u2) => hasProperty(u2, TypeId46);
17404
+ var isParam = (u2) => hasProperty(u2, TypeId45);
17320
17405
  var isFlagParam = (single) => single.kind === "flag";
17321
17406
  var makeSingle2 = (params) => {
17322
17407
  const parse4 = (args2) => params.kind === argumentKind ? parsePositional(params.name, params.primitiveType, args2) : parseFlag(params.name, params.primitiveType, args2);
@@ -17429,7 +17514,7 @@ var withHidden = (self) => transformSingle(self, (single) => makeSingle2({
17429
17514
  hidden: true
17430
17515
  }));
17431
17516
  var map12 = /* @__PURE__ */ dual(2, (self, f2) => {
17432
- const parse4 = (args2) => map6(self.parse(args2), ([operands, value3]) => [operands, f2(value3)]);
17517
+ const parse4 = (args2) => map7(self.parse(args2), ([operands, value3]) => [operands, f2(value3)]);
17433
17518
  return Object.assign(Object.create(Proto14), {
17434
17519
  _tag: "Map",
17435
17520
  kind: self.kind,
@@ -17449,27 +17534,24 @@ var transform3 = (self, f2, alternatives = []) => {
17449
17534
  parse: f2(self.parse, alternativeParsers)
17450
17535
  });
17451
17536
  };
17452
- var mapEffect2 = /* @__PURE__ */ dual(2, (self, f2) => transform3(self, (parse4) => (args2) => flatMap3(parse4(args2), ([leftover, a]) => f2(a).pipe(map6((b2) => [leftover, b2])))));
17537
+ var mapEffect2 = /* @__PURE__ */ dual(2, (self, f2) => transform3(self, (parse4) => (args2) => flatMap3(parse4(args2), ([leftover, a]) => f2(a).pipe(map7((b2) => [leftover, b2])))));
17453
17538
  var mapTryCatch = /* @__PURE__ */ dual(3, (self, f2, onError4) => {
17454
17539
  const single = getUnderlyingSingleOrThrow(self);
17455
17540
  return transform3(self, (parse4) => (args2) => flatMap3(parse4(args2), ([leftover, a]) => try_3({
17456
17541
  try: () => f2(a),
17457
17542
  catch: (error2) => onError4(error2)
17458
- }).pipe(mapError3((error2) => new InvalidValue2({
17543
+ }).pipe(mapError2((error2) => new InvalidValue2({
17459
17544
  option: single.name,
17460
17545
  value: String(a),
17461
17546
  expected: error2,
17462
17547
  kind: single.kind
17463
- })), map6((b2) => [leftover, b2]))));
17548
+ })), map7((b2) => [leftover, b2]))));
17464
17549
  });
17465
17550
  var optional3 = (param) => {
17466
17551
  const parse4 = fnUntraced2(function* (args2) {
17467
- const single = getUnderlyingSingleOrThrow(param);
17468
- if (isFlagParam(single) && isBoolean2(single.primitiveType) && ![single.name, ...single.aliases].some((name) => (args2.flags[name] ?? []).length > 0)) {
17469
- return [args2.arguments, none2()];
17470
- }
17552
+ getUnderlyingSingleOrThrow(param);
17471
17553
  return yield* param.parse(args2).pipe(
17472
- map6(([leftover, value3]) => [leftover, some2(value3)]),
17554
+ map7(([leftover, value3]) => [leftover, some2(value3)]),
17473
17555
  // Catch both MissingOption (for flags) and MissingArgument (for positional arguments)
17474
17556
  catchTags2({
17475
17557
  MissingOption: () => succeed6([args2.arguments, none2()]),
@@ -17500,14 +17582,14 @@ var withFallbackConfig = /* @__PURE__ */ dual(2, (self, config) => {
17500
17582
  expected: configError.message,
17501
17583
  kind: error2._tag === "MissingOption" ? "flag" : "argument"
17502
17584
  });
17503
- const runConfig = (error2, args2) => option3(config).pipe(mapError3((configError) => toInvalidValue(error2, configError)), flatMap3(match({
17585
+ const runConfig = (error2, args2) => option3(config).pipe(mapError2((configError) => toInvalidValue(error2, configError)), flatMap3(match({
17504
17586
  onNone: () => fail6(error2),
17505
17587
  onSome: (value3) => succeed6([args2.arguments, value3])
17506
17588
  })));
17507
17589
  return transform3(self, (parse4) => (args2) => parse4(args2).pipe(catchTag2(["MissingOption", "MissingArgument"], (error2) => runConfig(error2, args2))));
17508
17590
  });
17509
17591
  var withFallbackPrompt = /* @__PURE__ */ dual(2, (self, prompt) => {
17510
- const runPrompt = (error2, args2) => flatMap3(isPrompt(prompt) ? succeed6(prompt) : prompt, run3).pipe(map6((value3) => [args2.arguments, value3]), catchTag2("QuitError", () => fail6(error2)));
17592
+ const runPrompt = (error2, args2) => flatMap3(isPrompt(prompt) ? succeed6(prompt) : prompt, run3).pipe(map7((value3) => [args2.arguments, value3]), catchTag2("QuitError", () => fail6(error2)));
17511
17593
  return transform3(self, (parse4) => (args2) => parse4(args2).pipe(catchTag2(["MissingOption", "MissingArgument"], (error2) => runPrompt(error2, args2))));
17512
17594
  });
17513
17595
  var variadic = (self, options) => {
@@ -17576,7 +17658,7 @@ var withMetavar = /* @__PURE__ */ dual(2, (self, metavar) => transformSingle(sel
17576
17658
  })));
17577
17659
  var withSchema = /* @__PURE__ */ dual(2, (self, schema) => {
17578
17660
  const decodeParam = decodeUnknownEffect2(schema);
17579
- return mapEffect2(self, (value3) => mapError3(decodeParam(value3), (error2) => {
17661
+ return mapEffect2(self, (value3) => mapError2(decodeParam(value3), (error2) => {
17580
17662
  const single = getUnderlyingSingleOrThrow(self);
17581
17663
  return new InvalidValue2({
17582
17664
  option: single.name,
@@ -17588,7 +17670,7 @@ var withSchema = /* @__PURE__ */ dual(2, (self, schema) => {
17588
17670
  });
17589
17671
  var orElse = /* @__PURE__ */ dual(2, (self, orElse4) => transform3(self, (parse4, alternatives) => (args2) => catch_2(parse4(args2), () => alternatives[0]()(args2)), [orElse4]));
17590
17672
  var orElseResult = /* @__PURE__ */ dual(2, (self, orElse4) => {
17591
- return transform3(self, (parse4, alternatives) => (args2) => catch_2(map6(parse4(args2), ([leftover, value3]) => [leftover, succeed2(value3)]), () => map6(alternatives[0]()(args2), ([leftover, value3]) => [leftover, fail2(value3)])), [orElse4]);
17673
+ return transform3(self, (parse4, alternatives) => (args2) => catch_2(map7(parse4(args2), ([leftover, value3]) => [leftover, succeed2(value3)]), () => map7(alternatives[0]()(args2), ([leftover, value3]) => [leftover, fail2(value3)])), [orElse4]);
17592
17674
  });
17593
17675
  var parsePositional = /* @__PURE__ */ fnUntraced2(function* (name, primitiveType, args2) {
17594
17676
  if (args2.arguments.length === 0) {
@@ -17597,7 +17679,7 @@ var parsePositional = /* @__PURE__ */ fnUntraced2(function* (name, primitiveType
17597
17679
  });
17598
17680
  }
17599
17681
  const arg = args2.arguments[0];
17600
- const value3 = yield* mapError3(primitiveType.parse(arg), (error2) => new InvalidValue2({
17682
+ const value3 = yield* mapError2(primitiveType.parse(arg), (error2) => new InvalidValue2({
17601
17683
  option: name,
17602
17684
  value: arg,
17603
17685
  expected: error2,
@@ -17608,16 +17690,12 @@ var parsePositional = /* @__PURE__ */ fnUntraced2(function* (name, primitiveType
17608
17690
  var parseFlag = /* @__PURE__ */ fnUntraced2(function* (name, primitiveType, args2) {
17609
17691
  const providedValues = args2.flags[name];
17610
17692
  if (providedValues === void 0 || providedValues.length === 0) {
17611
- if (isBoolean2(primitiveType)) {
17612
- return [args2.arguments, false];
17613
- } else {
17614
- return yield* new MissingOption({
17615
- option: name
17616
- });
17617
- }
17693
+ return yield* new MissingOption({
17694
+ option: name
17695
+ });
17618
17696
  }
17619
17697
  const arg = providedValues[0];
17620
- const value3 = yield* mapError3(primitiveType.parse(arg), (error2) => new InvalidValue2({
17698
+ const value3 = yield* mapError2(primitiveType.parse(arg), (error2) => new InvalidValue2({
17621
17699
  option: name,
17622
17700
  value: arg,
17623
17701
  expected: error2,
@@ -17753,7 +17831,7 @@ var getParamMetadata = (param) => {
17753
17831
  });
17754
17832
  };
17755
17833
 
17756
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Argument.js
17834
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Argument.js
17757
17835
  var string5 = (name) => string4(argumentKind, name);
17758
17836
  var integer4 = (name) => integer3(argumentKind, name);
17759
17837
  var file4 = (name, options) => file3(argumentKind, name, options);
@@ -17787,7 +17865,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
17787
17865
  var orElse2 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
17788
17866
  var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
17789
17867
 
17790
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliOutput.js
17868
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/CliOutput.js
17791
17869
  var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
17792
17870
  defaultValue: () => defaultFormatter2()
17793
17871
  });
@@ -17983,7 +18061,7 @@ var formatHelpDocImpl = (doc, colors2) => {
17983
18061
  return sections.join("\n");
17984
18062
  };
17985
18063
 
17986
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
18064
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
17987
18065
  var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
17988
18066
  var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
17989
18067
  var flagNamesForWordlist = (flag) => {
@@ -18205,7 +18283,7 @@ var generate = (executableName, descriptor) => {
18205
18283
  return lines2.join("\n");
18206
18284
  };
18207
18285
 
18208
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18286
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18209
18287
  var escapeFishString = (s3) => s3.replace(/'/g, "\\'");
18210
18288
  var subcommandCondition = (parentPath, childSubcommandNames) => {
18211
18289
  if (parentPath.length === 0) {
@@ -18373,7 +18451,7 @@ var generate2 = (executableName, descriptor) => {
18373
18451
  return lines2.join("\n");
18374
18452
  };
18375
18453
 
18376
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18454
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18377
18455
  var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
18378
18456
  var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
18379
18457
  var allForms = (flag) => {
@@ -18459,8 +18537,14 @@ var generateFunction2 = (descriptor, parentPath, lines2) => {
18459
18537
  lines2.push(` ${spec}`);
18460
18538
  }
18461
18539
  }
18462
- for (const arg of descriptor.arguments) {
18463
- lines2.push(` ${argSpec(arg)}`);
18540
+ if (descriptor.arguments.length > 0) {
18541
+ lines2.push(` -`);
18542
+ lines2.push(` parent-arguments`);
18543
+ for (const arg of descriptor.arguments) {
18544
+ lines2.push(` ${argSpec(arg)}`);
18545
+ }
18546
+ lines2.push(` -`);
18547
+ lines2.push(` subcommands`);
18464
18548
  }
18465
18549
  lines2.push(` '1:command:->command'`);
18466
18550
  lines2.push(` '*::arg:->args'`);
@@ -18531,7 +18615,7 @@ var generate3 = (executableName, descriptor) => {
18531
18615
  return lines2.join("\n");
18532
18616
  };
18533
18617
 
18534
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Completions.js
18618
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Completions.js
18535
18619
  var generate4 = (executableName, shell, descriptor) => {
18536
18620
  switch (shell) {
18537
18621
  case "bash":
@@ -18543,7 +18627,7 @@ var generate4 = (executableName, shell, descriptor) => {
18543
18627
  }
18544
18628
  };
18545
18629
 
18546
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Flag.js
18630
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Flag.js
18547
18631
  var Flag_exports = {};
18548
18632
  __export(Flag_exports, {
18549
18633
  atLeast: () => atLeast3,
@@ -18618,7 +18702,7 @@ var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
18618
18702
  var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
18619
18703
  var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
18620
18704
 
18621
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/config.js
18705
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/config.js
18622
18706
  var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
18623
18707
  var parseConfig = (config) => {
18624
18708
  const orderedParams = [];
@@ -18719,8 +18803,8 @@ var reconstructTree = (tree, results) => {
18719
18803
  }
18720
18804
  };
18721
18805
 
18722
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/command.js
18723
- var TypeId47 = "~effect/cli/Command";
18806
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/command.js
18807
+ var TypeId46 = "~effect/cli/Command";
18724
18808
  var toImpl = (self) => self;
18725
18809
  var Proto15 = {
18726
18810
  .../* @__PURE__ */ Prototype2({
@@ -18733,7 +18817,7 @@ var Proto15 = {
18733
18817
  var makeCommand = (options) => {
18734
18818
  const config = options.config;
18735
18819
  const contextConfig = options.contextConfig ?? emptyConfig;
18736
- const service3 = options.service ?? Service(`${TypeId47}/${options.name}`);
18820
+ const service3 = options.service ?? Service(`${TypeId46}/${options.name}`);
18737
18821
  const annotations = options.annotations ?? empty();
18738
18822
  const globalFlags = options.globalFlags ?? [];
18739
18823
  const subcommands = options.subcommands ?? [];
@@ -18810,7 +18894,7 @@ var makeCommand = (options) => {
18810
18894
  };
18811
18895
  };
18812
18896
  return Object.assign(Object.create(Proto15), {
18813
- [TypeId47]: TypeId47,
18897
+ [TypeId46]: TypeId46,
18814
18898
  name: options.name,
18815
18899
  examples: options.examples ?? [],
18816
18900
  annotations,
@@ -18910,7 +18994,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
18910
18994
  }
18911
18995
  };
18912
18996
 
18913
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18997
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18914
18998
  var toFlagType = (single) => {
18915
18999
  const tag2 = single.primitiveType._tag;
18916
19000
  switch (tag2) {
@@ -19043,7 +19127,7 @@ var fromCommand = (cmd) => {
19043
19127
  };
19044
19128
  };
19045
19129
 
19046
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/help.js
19130
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/help.js
19047
19131
  var dedupeGlobalFlags = (flags) => {
19048
19132
  const seen = /* @__PURE__ */ new Set();
19049
19133
  const deduped = [];
@@ -19148,7 +19232,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
19148
19232
  };
19149
19233
  });
19150
19234
 
19151
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19235
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19152
19236
  var action = (options) => ({
19153
19237
  _tag: "Action",
19154
19238
  flag: options.flag,
@@ -19165,7 +19249,7 @@ var setting = (id) => (options) => {
19165
19249
  };
19166
19250
  var settingIdCounter = 0;
19167
19251
  var Help = /* @__PURE__ */ action({
19168
- flag: /* @__PURE__ */ boolean4("help").pipe(/* @__PURE__ */ withAlias2("h"), /* @__PURE__ */ withDescription3("Show help information")),
19252
+ flag: /* @__PURE__ */ boolean4("help").pipe(/* @__PURE__ */ withAlias2("h"), /* @__PURE__ */ withDescription3("Show help information"), /* @__PURE__ */ withDefault5(false)),
19169
19253
  run: /* @__PURE__ */ fnUntraced2(function* (_2, {
19170
19254
  builtIns,
19171
19255
  command: command2,
@@ -19177,7 +19261,7 @@ var Help = /* @__PURE__ */ action({
19177
19261
  })
19178
19262
  });
19179
19263
  var Version = /* @__PURE__ */ action({
19180
- flag: /* @__PURE__ */ boolean4("version").pipe(/* @__PURE__ */ withAlias2("v"), /* @__PURE__ */ withDescription3("Show version information")),
19264
+ flag: /* @__PURE__ */ boolean4("version").pipe(/* @__PURE__ */ withAlias2("v"), /* @__PURE__ */ withDescription3("Show version information"), /* @__PURE__ */ withDefault5(false)),
19181
19265
  run: /* @__PURE__ */ fnUntraced2(function* (_2, {
19182
19266
  command: command2,
19183
19267
  version
@@ -19187,7 +19271,7 @@ var Version = /* @__PURE__ */ action({
19187
19271
  })
19188
19272
  });
19189
19273
  var Wizard = /* @__PURE__ */ action({
19190
- flag: /* @__PURE__ */ boolean4("wizard").pipe(/* @__PURE__ */ withDescription3("Start wizard mode for a command")),
19274
+ flag: /* @__PURE__ */ boolean4("wizard").pipe(/* @__PURE__ */ withDescription3("Start wizard mode for a command"), /* @__PURE__ */ withDefault5(false)),
19191
19275
  run: () => void_3
19192
19276
  });
19193
19277
  var Completions = /* @__PURE__ */ action({
@@ -19205,7 +19289,7 @@ var LogLevel = /* @__PURE__ */ setting("log-level")({
19205
19289
  });
19206
19290
  var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
19207
19291
 
19208
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliConfig.js
19292
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/CliConfig.js
19209
19293
  var CliConfig = class extends (/* @__PURE__ */ Reference("effect/unstable/cli/CliConfig", {
19210
19294
  defaultValue: () => defaults
19211
19295
  })) {
@@ -19214,7 +19298,7 @@ var defaults = {
19214
19298
  builtIns: BuiltIns
19215
19299
  };
19216
19300
 
19217
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Command.js
19301
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Command.js
19218
19302
  var Command_exports = {};
19219
19303
  __export(Command_exports, {
19220
19304
  annotate: () => annotate3,
@@ -19239,7 +19323,7 @@ __export(Command_exports, {
19239
19323
  wizard: () => wizard
19240
19324
  });
19241
19325
 
19242
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/lexer.js
19326
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/lexer.js
19243
19327
  function lex(argv) {
19244
19328
  const endIndex = argv.indexOf("--");
19245
19329
  if (endIndex === -1) {
@@ -19310,7 +19394,7 @@ var lexTokens = (args2) => {
19310
19394
  return tokens;
19311
19395
  };
19312
19396
 
19313
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19397
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19314
19398
  var levenshtein = (a, b2) => {
19315
19399
  const m2 = a.length;
19316
19400
  const n = b2.length;
@@ -19334,7 +19418,7 @@ var suggest = (input, candidates) => {
19334
19418
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
19335
19419
  };
19336
19420
 
19337
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/parser.js
19421
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/parser.js
19338
19422
  var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
19339
19423
  onNone: () => [],
19340
19424
  onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
@@ -19837,7 +19921,7 @@ var scanCommandLevel = (tokens, context3) => {
19837
19921
  return toLeafResult(state);
19838
19922
  };
19839
19923
 
19840
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/wizard.js
19924
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/wizard.js
19841
19925
  var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
19842
19926
  const commandPath = options?.commandPath ?? [command2.name];
19843
19927
  const selected = getCommandAtPath(command2, commandPath);
@@ -19950,7 +20034,7 @@ var promptSingle = (single) => {
19950
20034
  const message = renderParamMessage(single);
19951
20035
  switch (single.primitiveType._tag) {
19952
20036
  case "Boolean":
19953
- return map6(run3(confirm({
20037
+ return map7(run3(confirm({
19954
20038
  message,
19955
20039
  label: {
19956
20040
  confirm: "true",
@@ -19972,19 +20056,19 @@ var promptSingle = (single) => {
19972
20056
  }));
19973
20057
  }
19974
20058
  case "Date":
19975
- return map6(run3(date2({
20059
+ return map7(run3(date2({
19976
20060
  message
19977
20061
  })), (date6) => date6.toISOString());
19978
20062
  case "Float":
19979
- return map6(run3(float2({
20063
+ return map7(run3(float2({
19980
20064
  message
19981
20065
  })), String);
19982
20066
  case "Integer":
19983
- return map6(run3(integer2({
20067
+ return map7(run3(integer2({
19984
20068
  message
19985
20069
  })), String);
19986
20070
  case "Redacted":
19987
- return map6(run3(password({
20071
+ return map7(run3(password({
19988
20072
  message
19989
20073
  })), value2);
19990
20074
  default:
@@ -20041,8 +20125,8 @@ var wrapCommand = (commandLine) => {
20041
20125
  };
20042
20126
  var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
20043
20127
 
20044
- // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Command.js
20045
- var isCommand = (u2) => hasProperty(u2, TypeId47);
20128
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Command.js
20129
+ var isCommand = (u2) => hasProperty(u2, TypeId46);
20046
20130
  var make34 = (name, config, handler) => {
20047
20131
  const parsedConfig = parseConfig(config ?? {});
20048
20132
  return makeCommand({
@@ -20288,17 +20372,22 @@ var getOutOfScopeGlobalFlagErrors = (allFlags, activeFlags, flagMap, commandPath
20288
20372
  }
20289
20373
  return errors;
20290
20374
  };
20291
- var showHelp = (command2, error2) => gen2(function* () {
20375
+ var showHelp = (command2, error2, renderErrors) => gen2(function* () {
20292
20376
  const {
20293
20377
  builtIns
20294
20378
  } = yield* CliConfig;
20295
20379
  const formatter = yield* Formatter;
20296
20380
  const helpDoc = yield* getHelpForCommandPath(command2, error2.commandPath, builtIns);
20297
20381
  yield* log2(formatter.formatHelpDoc(helpDoc));
20298
- if (error2.errors.length > 0) {
20382
+ if (renderErrors && error2.errors.length > 0) {
20299
20383
  yield* error(formatter.formatErrors(error2.errors));
20300
20384
  }
20301
20385
  });
20386
+ var showUserError = (error2) => gen2(function* () {
20387
+ const formatter = yield* Formatter;
20388
+ yield* error(formatter.formatError(error2));
20389
+ error2[errorReported] = false;
20390
+ });
20302
20391
  var run5 = /* @__PURE__ */ dual(2, (command2, config) => Stdio.use(({
20303
20392
  args: args2
20304
20393
  }) => flatMap3(args2, (args3) => runWith2(command2, config)(args3))));
@@ -20370,7 +20459,10 @@ var runWith2 = (command2, config) => {
20370
20459
  }));
20371
20460
  if (shouldRun) {
20372
20461
  yield* log2();
20373
- yield* runWith2(command2, config)(wizardArgs.slice(1));
20462
+ yield* runWith2(command2, {
20463
+ ...config,
20464
+ renderErrors: false
20465
+ })(wizardArgs.slice(1));
20374
20466
  }
20375
20467
  }).pipe(catchTag2("QuitError", () => log2(renderQuit())));
20376
20468
  }
@@ -20403,7 +20495,7 @@ var runWith2 = (command2, config) => {
20403
20495
  onSome: (level) => make3(MinimumLogLevel2, level)
20404
20496
  });
20405
20497
  yield* provideContext2(program, services);
20406
- }, catchFilter2((error2) => isCliError(error2) && error2._tag === "ShowHelp" ? succeed2(error2) : fail2(error2), (error2) => andThen2(showHelp(command2, error2), fail6(error2))), catchFilter2((e) => isQuitError(e) ? succeed2(e) : fail2(e), (_2) => interrupt2));
20498
+ }, catchFilter2((error2) => isCliError(error2) && error2._tag === "ShowHelp" ? succeed2(error2) : fail2(error2), (error2) => andThen2(showHelp(command2, error2, config.renderErrors !== false), fail6(error2))), catchFilter2((error2) => config.renderErrors !== false && isCliError(error2) && error2._tag === "UserError" ? succeed2(error2) : fail2(error2), (error2) => andThen2(showUserError(error2), fail6(error2))), catchFilter2((e) => isQuitError(e) ? succeed2(e) : fail2(e), (_2) => interrupt2));
20407
20499
  };
20408
20500
 
20409
20501
  // src/Domain.ts