lalph 0.1.64 → 0.1.65

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 (3) hide show
  1. package/dist/cli.mjs +578 -417
  2. package/package.json +3 -3
  3. package/src/Prd.ts +1 -3
package/dist/cli.mjs CHANGED
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
45
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
46
46
 
47
47
  //#endregion
48
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Pipeable.js
48
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Pipeable.js
49
49
  /**
50
50
  * @since 2.0.0
51
51
  */
@@ -98,7 +98,7 @@ const Class$3 = class {
98
98
  };
99
99
 
100
100
  //#endregion
101
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Function.js
101
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Function.js
102
102
  /**
103
103
  * Creates a function that can be used in a data-last (aka `pipe`able) or
104
104
  * data-first style.
@@ -382,7 +382,7 @@ function memoize(f) {
382
382
  }
383
383
 
384
384
  //#endregion
385
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/equal.js
385
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/equal.js
386
386
  /** @internal */
387
387
  const getAllObjectKeys = (obj) => {
388
388
  const keys$1 = new Set(Reflect.ownKeys(obj));
@@ -402,7 +402,7 @@ const getAllObjectKeys = (obj) => {
402
402
  const byReferenceInstances = /* @__PURE__ */ new WeakSet();
403
403
 
404
404
  //#endregion
405
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Predicate.js
405
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Predicate.js
406
406
  /**
407
407
  * Predicate and Refinement helpers for runtime checks, filtering, and type narrowing.
408
408
  * This module provides small, pure functions you can combine to decide whether a
@@ -1080,7 +1080,7 @@ function isRegExp$1(input) {
1080
1080
  const or = /* @__PURE__ */ dual(2, (self$1, that) => (a) => self$1(a) || that(a));
1081
1081
 
1082
1082
  //#endregion
1083
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Hash.js
1083
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Hash.js
1084
1084
  /**
1085
1085
  * This module provides utilities for hashing values in TypeScript.
1086
1086
  *
@@ -1430,7 +1430,7 @@ function withVisitedTracking$1(obj, fn$2) {
1430
1430
  }
1431
1431
 
1432
1432
  //#endregion
1433
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Equal.js
1433
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Equal.js
1434
1434
  /**
1435
1435
  * The unique identifier used to identify objects that implement the `Equal` interface.
1436
1436
  *
@@ -1632,7 +1632,7 @@ const byReferenceUnsafe = (obj) => {
1632
1632
  };
1633
1633
 
1634
1634
  //#endregion
1635
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Redactable.js
1635
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Redactable.js
1636
1636
  /**
1637
1637
  * @since 4.0.0
1638
1638
  */
@@ -1727,7 +1727,7 @@ const emptyServiceMap$1 = {
1727
1727
  };
1728
1728
 
1729
1729
  //#endregion
1730
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Formatter.js
1730
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Formatter.js
1731
1731
  /**
1732
1732
  * @since 4.0.0
1733
1733
  */
@@ -1892,7 +1892,7 @@ function formatJson(input, options) {
1892
1892
  }
1893
1893
 
1894
1894
  //#endregion
1895
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Inspectable.js
1895
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Inspectable.js
1896
1896
  /**
1897
1897
  * This module provides utilities for making values inspectable and debuggable in TypeScript.
1898
1898
  *
@@ -2096,7 +2096,7 @@ var Class$2 = class {
2096
2096
  };
2097
2097
 
2098
2098
  //#endregion
2099
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Utils.js
2099
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Utils.js
2100
2100
  /**
2101
2101
  * @since 2.0.0
2102
2102
  */
@@ -2174,7 +2174,7 @@ const internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[Inte
2174
2174
  const genConstructor = function* () {}.constructor;
2175
2175
 
2176
2176
  //#endregion
2177
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/core.js
2177
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/core.js
2178
2178
  /** @internal */
2179
2179
  const EffectTypeId = `~effect/Effect`;
2180
2180
  /** @internal */
@@ -2567,7 +2567,7 @@ const done$2 = (value) => {
2567
2567
  };
2568
2568
 
2569
2569
  //#endregion
2570
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Data.js
2570
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Data.js
2571
2571
  /**
2572
2572
  * Provides a constructor for a Case Class.
2573
2573
  *
@@ -2718,7 +2718,7 @@ const Error$2 = Error$3;
2718
2718
  const TaggedError = TaggedError$1;
2719
2719
 
2720
2720
  //#endregion
2721
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Order.js
2721
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Order.js
2722
2722
  /**
2723
2723
  * This module provides the `Order` type class for defining total orderings on types.
2724
2724
  * An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than).
@@ -3403,7 +3403,7 @@ const clamp$2 = (O) => dual(2, (self$1, options) => min$2(O)(options.maximum, ma
3403
3403
  const isBetween$1 = (O) => dual(2, (self$1, options) => !isLessThan$3(O)(self$1, options.minimum) && !isGreaterThan$4(O)(self$1, options.maximum));
3404
3404
 
3405
3405
  //#endregion
3406
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/UndefinedOr.js
3406
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/UndefinedOr.js
3407
3407
  /**
3408
3408
  * @since 4.0.0
3409
3409
  */
@@ -3424,7 +3424,7 @@ const liftThrowable = (f) => (...a) => {
3424
3424
  };
3425
3425
 
3426
3426
  //#endregion
3427
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Duration.js
3427
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Duration.js
3428
3428
  const TypeId$56 = "~effect/time/Duration";
3429
3429
  const bigint0$1 = /* @__PURE__ */ BigInt(0);
3430
3430
  const bigint1e3 = /* @__PURE__ */ BigInt(1e3);
@@ -3937,7 +3937,7 @@ const Equivalence$4 = (self$1, that) => matchPair(self$1, that, {
3937
3937
  const equals = /* @__PURE__ */ dual(2, (self$1, that) => Equivalence$4(self$1, that));
3938
3938
 
3939
3939
  //#endregion
3940
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Equivalence.js
3940
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Equivalence.js
3941
3941
  /**
3942
3942
  * Creates a custom equivalence relation with an optimized reference equality check.
3943
3943
  *
@@ -4235,7 +4235,7 @@ function Struct$1(fields) {
4235
4235
  }
4236
4236
 
4237
4237
  //#endregion
4238
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/option.js
4238
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/option.js
4239
4239
  /**
4240
4240
  * @since 2.0.0
4241
4241
  */
@@ -4307,7 +4307,7 @@ const some$1 = (value) => {
4307
4307
  };
4308
4308
 
4309
4309
  //#endregion
4310
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/result.js
4310
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/result.js
4311
4311
  const TypeId$54 = "~effect/data/Result";
4312
4312
  const CommonProto = {
4313
4313
  [TypeId$54]: {
@@ -4389,7 +4389,7 @@ const getSuccess$3 = (self$1) => isFailure$5(self$1) ? none$4 : some$1(self$1.su
4389
4389
  const fromOption$4 = /* @__PURE__ */ dual(2, (self$1, onNone) => isNone$1(self$1) ? fail$10(onNone()) : succeed$7(self$1.value));
4390
4390
 
4391
4391
  //#endregion
4392
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Option.js
4392
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Option.js
4393
4393
  /**
4394
4394
  * Represents the absence of a value by creating an empty `Option`.
4395
4395
  *
@@ -4983,7 +4983,7 @@ const filter$5 = /* @__PURE__ */ dual(2, (self$1, predicate) => filterMap$2(self
4983
4983
  const makeEquivalence$4 = (isEquivalent) => make$50((x, y) => isNone(x) ? isNone(y) : isNone(y) ? false : isEquivalent(x.value, y.value));
4984
4984
 
4985
4985
  //#endregion
4986
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Result.js
4986
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Result.js
4987
4987
  /**
4988
4988
  * Constructs a new `Result` holding a `Success` value.
4989
4989
  *
@@ -5251,7 +5251,7 @@ const getOrThrow = /* @__PURE__ */ getOrThrowWith(identity);
5251
5251
  const succeedNone$2 = /* @__PURE__ */ succeed$6(none$4);
5252
5252
 
5253
5253
  //#endregion
5254
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Filter.js
5254
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Filter.js
5255
5255
  const FailTypeId = "~effect/data/Filter/fail";
5256
5256
  /**
5257
5257
  * @since 4.0.0
@@ -5495,7 +5495,7 @@ const toOption = (self$1) => (input) => {
5495
5495
  };
5496
5496
 
5497
5497
  //#endregion
5498
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/array.js
5498
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/array.js
5499
5499
  /**
5500
5500
  * @since 2.0.0
5501
5501
  */
@@ -5503,7 +5503,7 @@ const toOption = (self$1) => (input) => {
5503
5503
  const isArrayNonEmpty$1 = (self$1) => self$1.length > 0;
5504
5504
 
5505
5505
  //#endregion
5506
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Tuple.js
5506
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Tuple.js
5507
5507
  /**
5508
5508
  * Creates an `Equivalence` for tuples by comparing corresponding elements using the provided `Equivalence`s.
5509
5509
  *
@@ -5541,7 +5541,7 @@ const makeEquivalence$3 = Tuple$1;
5541
5541
  const makeOrder$2 = Tuple$2;
5542
5542
 
5543
5543
  //#endregion
5544
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Iterable.js
5544
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Iterable.js
5545
5545
  /**
5546
5546
  * Return the number of elements in a `Iterable`.
5547
5547
  *
@@ -5694,7 +5694,7 @@ const constEmptyIterator = { next() {
5694
5694
  const empty$13 = () => constEmpty;
5695
5695
 
5696
5696
  //#endregion
5697
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Record.js
5697
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Record.js
5698
5698
  /**
5699
5699
  * Creates a new, empty record.
5700
5700
  *
@@ -5898,7 +5898,7 @@ const makeEquivalence$2 = (equivalence) => {
5898
5898
  };
5899
5899
 
5900
5900
  //#endregion
5901
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Array.js
5901
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Array.js
5902
5902
  /**
5903
5903
  * This module provides utility functions for working with arrays in TypeScript.
5904
5904
  *
@@ -6402,7 +6402,7 @@ const dedupeWith = /* @__PURE__ */ dual(2, (self$1, isEquivalent) => {
6402
6402
  });
6403
6403
 
6404
6404
  //#endregion
6405
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/ServiceMap.js
6405
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/ServiceMap.js
6406
6406
  const ServiceTypeId = "~effect/ServiceMap/Service";
6407
6407
  /**
6408
6408
  * @example
@@ -6880,7 +6880,7 @@ const mergeAll$1 = (...ctxs) => {
6880
6880
  const Reference = Service;
6881
6881
 
6882
6882
  //#endregion
6883
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Scheduler.js
6883
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Scheduler.js
6884
6884
  /**
6885
6885
  * @since 4.0.0
6886
6886
  * @category references
@@ -7086,7 +7086,7 @@ var MixedScheduler = class {
7086
7086
  const MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBeforeYield", { defaultValue: () => 2048 });
7087
7087
 
7088
7088
  //#endregion
7089
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Tracer.js
7089
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Tracer.js
7090
7090
  /**
7091
7091
  * @since 2.0.0
7092
7092
  * @category tags
@@ -7295,7 +7295,7 @@ const randomHexString = /* @__PURE__ */ function() {
7295
7295
  }();
7296
7296
 
7297
7297
  //#endregion
7298
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/References.js
7298
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/References.js
7299
7299
  /**
7300
7300
  * This module provides a collection of reference implementations for commonly used
7301
7301
  * Effect runtime configuration values. These references allow you to access and
@@ -7758,12 +7758,12 @@ const CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogS
7758
7758
  const MinimumLogLevel = /* @__PURE__ */ Reference("effect/References/MinimumLogLevel", { defaultValue: () => "Info" });
7759
7759
 
7760
7760
  //#endregion
7761
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/metric.js
7761
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/metric.js
7762
7762
  /** @internal */
7763
7763
  const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
7764
7764
 
7765
7765
  //#endregion
7766
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/tracer.js
7766
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/tracer.js
7767
7767
  /** @internal */
7768
7768
  const addSpanStackTrace = (options) => {
7769
7769
  if (options?.captureStackTrace === false) return options;
@@ -7794,11 +7794,11 @@ const makeStackCleaner = (line) => (stack) => {
7794
7794
  const spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
7795
7795
 
7796
7796
  //#endregion
7797
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/version.js
7797
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/version.js
7798
7798
  const version$1 = "dev";
7799
7799
 
7800
7800
  //#endregion
7801
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/effect.js
7801
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/effect.js
7802
7802
  /** @internal */
7803
7803
  var Interrupt = class extends FailureBase {
7804
7804
  fiberId;
@@ -9990,7 +9990,7 @@ function interruptChildrenPatch() {
9990
9990
  const undefined_$2 = /* @__PURE__ */ succeed$5(void 0);
9991
9991
 
9992
9992
  //#endregion
9993
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Exit.js
9993
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Exit.js
9994
9994
  ExitTypeId;
9995
9995
  /**
9996
9996
  * Tests if a value is an `Exit`.
@@ -10364,7 +10364,7 @@ const getCause = exitGetCause;
10364
10364
  const getError = exitGetError;
10365
10365
 
10366
10366
  //#endregion
10367
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Deferred.js
10367
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Deferred.js
10368
10368
  const DeferredProto = {
10369
10369
  ["~effect/Deferred"]: {
10370
10370
  _A: identity,
@@ -10584,7 +10584,7 @@ const doneUnsafe = (self$1, effect$1) => {
10584
10584
  const into = /* @__PURE__ */ dual(2, (self$1, deferred) => uninterruptibleMask$1((restore) => flatMap$2(exit$1(restore(self$1)), (exit$2) => done$1(deferred, exit$2))));
10585
10585
 
10586
10586
  //#endregion
10587
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Scope.js
10587
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Scope.js
10588
10588
  /**
10589
10589
  * The `Scope` module provides functionality for managing resource lifecycles
10590
10590
  * and cleanup operations in a functional and composable manner.
@@ -10858,7 +10858,7 @@ const closeUnsafe = scopeCloseUnsafe;
10858
10858
  const use$1 = scopeUse;
10859
10859
 
10860
10860
  //#endregion
10861
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Layer.js
10861
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Layer.js
10862
10862
  const TypeId$52 = "~effect/Layer";
10863
10863
  const MemoMapTypeId = "~effect/Layer/MemoMap";
10864
10864
  /**
@@ -11662,7 +11662,7 @@ const flatMap$1 = /* @__PURE__ */ dual(2, (self$1, f) => fromBuild((memoMap, sco
11662
11662
  const fresh = (self$1) => fromBuildUnsafe((_, scope$2) => self$1.build(makeMemoMapUnsafe(), scope$2));
11663
11663
 
11664
11664
  //#endregion
11665
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/ExecutionPlan.js
11665
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/ExecutionPlan.js
11666
11666
  /**
11667
11667
  * @since 3.16.0
11668
11668
  * @category Type IDs
@@ -11696,7 +11696,7 @@ const CurrentMetadata$1 = /* @__PURE__ */ Reference("effect/ExecutionPlan/Curren
11696
11696
  }) });
11697
11697
 
11698
11698
  //#endregion
11699
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Cause.js
11699
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Cause.js
11700
11700
  /**
11701
11701
  * @since 2.0.0
11702
11702
  */
@@ -12263,7 +12263,7 @@ const failureAnnotations = failureAnnotations$1;
12263
12263
  const annotations = causeAnnotations;
12264
12264
 
12265
12265
  //#endregion
12266
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Clock.js
12266
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Clock.js
12267
12267
  /**
12268
12268
  * A reference to the current Clock service in the environment.
12269
12269
  *
@@ -12339,7 +12339,7 @@ const currentTimeMillis = currentTimeMillis$1;
12339
12339
  const currentTimeNanos = currentTimeNanos$1;
12340
12340
 
12341
12341
  //#endregion
12342
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/dateTime.js
12342
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/dateTime.js
12343
12343
  /** @internal */
12344
12344
  const TypeId$49 = "~effect/time/DateTime";
12345
12345
  /** @internal */
@@ -12950,7 +12950,7 @@ const formatIsoOffset$1 = (self$1) => {
12950
12950
  const formatIsoZoned$1 = (self$1) => self$1.zone._tag === "Offset" ? formatIsoOffset$1(self$1) : `${formatIsoOffset$1(self$1)}[${self$1.zone.id}]`;
12951
12951
 
12952
12952
  //#endregion
12953
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/String.js
12953
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/String.js
12954
12954
  /**
12955
12955
  * Reference to the global `String` constructor.
12956
12956
  *
@@ -13024,7 +13024,7 @@ const trim = (self$1) => self$1.trim();
13024
13024
  const isNonEmpty = (self$1) => self$1.length > 0;
13025
13025
 
13026
13026
  //#endregion
13027
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Pull.js
13027
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Pull.js
13028
13028
  /**
13029
13029
  * @since 4.0.0
13030
13030
  */
@@ -13106,7 +13106,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self$1, options) => matchCauseEff
13106
13106
  }));
13107
13107
 
13108
13108
  //#endregion
13109
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Schedule.js
13109
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Schedule.js
13110
13110
  /**
13111
13111
  * This module provides utilities for creating and composing schedules for retrying operations,
13112
13112
  * repeating effects, and implementing various timing strategies.
@@ -13486,13 +13486,13 @@ const while_ = /* @__PURE__ */ dual(2, (self$1, predicate) => fromStep(map$8(toS
13486
13486
  const forever$1 = /* @__PURE__ */ spaced(zero);
13487
13487
 
13488
13488
  //#endregion
13489
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/layer.js
13489
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/layer.js
13490
13490
  const provideLayer = (self$1, layer$16) => scopedWith$1((scope$2) => flatMap$2(buildWithScope(layer$16, scope$2), (context) => provideServices$1(self$1, context)));
13491
13491
  /** @internal */
13492
13492
  const provide$2 = /* @__PURE__ */ dual(2, (self$1, source) => isServiceMap(source) ? provideServices$1(self$1, source) : provideLayer(self$1, Array.isArray(source) ? mergeAll(...source) : source));
13493
13493
 
13494
13494
  //#endregion
13495
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/schedule.js
13495
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/schedule.js
13496
13496
  /** @internal */
13497
13497
  const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self$1, schedule, orElse$1) => flatMap$2(toStepWithMetadata(schedule), (step) => {
13498
13498
  let meta = CurrentMetadata.defaultValue();
@@ -13514,9 +13514,13 @@ const retryOrElse$1 = /* @__PURE__ */ dual(3, (self$1, policy, orElse$1) => flat
13514
13514
  return catchDone(loop, (out) => internalCall(() => orElse$1(lastError, out)));
13515
13515
  }));
13516
13516
  /** @internal */
13517
- const repeat$1 = /* @__PURE__ */ dual(2, (self$1, options) => repeatOrElse$1(self$1, isSchedule(options) ? options : buildFromOptions(options), fail$7));
13517
+ const repeat$1 = /* @__PURE__ */ dual(2, (self$1, options) => {
13518
+ return repeatOrElse$1(self$1, typeof options === "function" ? options(identity) : isSchedule(options) ? options : buildFromOptions(options), fail$7);
13519
+ });
13518
13520
  /** @internal */
13519
- const retry$2 = /* @__PURE__ */ dual(2, (self$1, options) => retryOrElse$1(self$1, isSchedule(options) ? options : buildFromOptions(options), fail$7));
13521
+ const retry$2 = /* @__PURE__ */ dual(2, (self$1, options) => {
13522
+ return retryOrElse$1(self$1, typeof options === "function" ? options(identity) : isSchedule(options) ? options : buildFromOptions(options), fail$7);
13523
+ });
13520
13524
  /** @internal */
13521
13525
  const scheduleFrom$1 = /* @__PURE__ */ dual(3, (self$1, initial, schedule) => flatMap$2(toStepWithMetadata(schedule), (step) => {
13522
13526
  let meta = CurrentMetadata.defaultValue();
@@ -13547,7 +13551,7 @@ const buildFromOptions = (options) => {
13547
13551
  };
13548
13552
 
13549
13553
  //#endregion
13550
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/executionPlan.js
13554
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/executionPlan.js
13551
13555
  /** @internal */
13552
13556
  const withExecutionPlan$1 = /* @__PURE__ */ dual(2, (self$1, plan$1) => suspend$4(() => {
13553
13557
  let i = 0;
@@ -13606,7 +13610,7 @@ const scheduleFromStep = (step, first) => {
13606
13610
  const scheduleOnce = /* @__PURE__ */ recurs(1);
13607
13611
 
13608
13612
  //#endregion
13609
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Request.js
13613
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Request.js
13610
13614
  const TypeId$47 = "~effect/Request";
13611
13615
  const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
13612
13616
  _E: (_) => _,
@@ -13627,7 +13631,7 @@ const RequestPrototype = {
13627
13631
  const makeEntry = (options) => options;
13628
13632
 
13629
13633
  //#endregion
13630
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/request.js
13634
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/request.js
13631
13635
  /** @internal */
13632
13636
  const request$2 = /* @__PURE__ */ dual(2, (self$1, resolver) => {
13633
13637
  const withResolver = (resolver$1) => callback$2((resume) => {
@@ -13727,7 +13731,7 @@ function runBatch(batch) {
13727
13731
  }
13728
13732
 
13729
13733
  //#endregion
13730
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Effect.js
13734
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Effect.js
13731
13735
  const TypeId$46 = EffectTypeId;
13732
13736
  /**
13733
13737
  * Tests if a value is an `Effect`.
@@ -19864,7 +19868,7 @@ const catchEager = catchEager$1;
19864
19868
  const fnUntracedEager = fnUntracedEager$1;
19865
19869
 
19866
19870
  //#endregion
19867
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/record.js
19871
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/record.js
19868
19872
  /**
19869
19873
  * @since 4.0.0
19870
19874
  */
@@ -19881,7 +19885,7 @@ function set$5(self$1, key, value) {
19881
19885
  }
19882
19886
 
19883
19887
  //#endregion
19884
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/schema/annotations.js
19888
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/schema/annotations.js
19885
19889
  /** @internal */
19886
19890
  function resolve$2(ast) {
19887
19891
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
@@ -19902,7 +19906,7 @@ const getExpected = /* @__PURE__ */ memoize((ast) => {
19902
19906
  });
19903
19907
 
19904
19908
  //#endregion
19905
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/RegExp.js
19909
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/RegExp.js
19906
19910
  /**
19907
19911
  * This module provides utility functions for working with RegExp in TypeScript.
19908
19912
  *
@@ -19957,7 +19961,7 @@ const isRegExp = isRegExp$1;
19957
19961
  const escape = (string$8) => string$8.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
19958
19962
 
19959
19963
  //#endregion
19960
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/DateTime.js
19964
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/DateTime.js
19961
19965
  TypeId$49;
19962
19966
  TimeZoneTypeId;
19963
19967
  /**
@@ -21571,7 +21575,7 @@ const formatIsoZoned = formatIsoZoned$1;
21571
21575
  const layerCurrentZoneNamed = /* @__PURE__ */ effect(CurrentTimeZone)(zoneMakeNamedEffect$1);
21572
21576
 
21573
21577
  //#endregion
21574
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/encoding/EncodingError.js
21578
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/encoding/EncodingError.js
21575
21579
  /**
21576
21580
  * @since 4.0.0
21577
21581
  */
@@ -21588,7 +21592,7 @@ var EncodingError = class extends TaggedError("EncodingError") {
21588
21592
  };
21589
21593
 
21590
21594
  //#endregion
21591
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/encoding/Base64.js
21595
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/encoding/Base64.js
21592
21596
  /**
21593
21597
  * This module provides encoding & decoding functionality for:
21594
21598
  *
@@ -21661,14 +21665,14 @@ const decode$1 = (str) => {
21661
21665
  const stripped = stripCrlf(str);
21662
21666
  const length = stripped.length;
21663
21667
  if (length % 4 !== 0) return fail$9(new EncodingError({
21664
- reason: "Decode",
21668
+ kind: "Decode",
21665
21669
  module: "Base64",
21666
21670
  input: stripped,
21667
21671
  message: `Length must be a multiple of 4, but is ${length}`
21668
21672
  }));
21669
21673
  const index = stripped.indexOf("=");
21670
21674
  if (index !== -1 && (index < length - 2 || index === length - 2 && stripped[length - 1] !== "=")) return fail$9(new EncodingError({
21671
- reason: "Decode",
21675
+ kind: "Decode",
21672
21676
  module: "Base64",
21673
21677
  input: stripped,
21674
21678
  message: `Found a '=' character, but it is not at the end`
@@ -21685,7 +21689,7 @@ const decode$1 = (str) => {
21685
21689
  return succeed$6(result$2);
21686
21690
  } catch (e) {
21687
21691
  return fail$9(new EncodingError({
21688
- reason: "Decode",
21692
+ kind: "Decode",
21689
21693
  module: "Base64",
21690
21694
  input: stripped,
21691
21695
  message: e instanceof Error ? e.message : "Invalid input"
@@ -21893,7 +21897,7 @@ const base64codes = [
21893
21897
  ];
21894
21898
 
21895
21899
  //#endregion
21896
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/encoding/Base64Url.js
21900
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/encoding/Base64Url.js
21897
21901
  /**
21898
21902
  * Encodes the given value into a base64 (URL) `string`.
21899
21903
  *
@@ -21916,12 +21920,12 @@ const encodeUint8Array = (data) => encode$1(data).replace(/=/g, "").replace(/\+/
21916
21920
  const encoder$1 = /* @__PURE__ */ new TextEncoder();
21917
21921
 
21918
21922
  //#endregion
21919
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/redacted.js
21923
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/redacted.js
21920
21924
  /** @internal */
21921
21925
  const redactedRegistry = /* @__PURE__ */ new WeakMap();
21922
21926
 
21923
21927
  //#endregion
21924
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Redacted.js
21928
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Redacted.js
21925
21929
  /**
21926
21930
  * The Redacted module provides functionality for handling sensitive information
21927
21931
  * securely within your application. By using the `Redacted` data type, you can
@@ -21986,7 +21990,7 @@ const Proto$16 = {
21986
21990
  };
21987
21991
 
21988
21992
  //#endregion
21989
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaIssue.js
21993
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaIssue.js
21990
21994
  const TypeId$44 = "~effect/SchemaIssue/Issue";
21991
21995
  /**
21992
21996
  * @since 4.0.0
@@ -22392,7 +22396,7 @@ function formatOption(actual) {
22392
22396
  }
22393
22397
 
22394
22398
  //#endregion
22395
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaGetter.js
22399
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaGetter.js
22396
22400
  /**
22397
22401
  * @since 4.0.0
22398
22402
  */
@@ -22568,7 +22572,7 @@ function collectBracketPathEntries(isLeaf) {
22568
22572
  }
22569
22573
 
22570
22574
  //#endregion
22571
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaTransformation.js
22575
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaTransformation.js
22572
22576
  /**
22573
22577
  * @since 4.0.0
22574
22578
  */
@@ -22680,7 +22684,7 @@ const uint8ArrayFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE
22680
22684
  const fromJsonString$1 = /* @__PURE__ */ new Transformation(/* @__PURE__ */ parseJson$1(), /* @__PURE__ */ stringifyJson());
22681
22685
 
22682
22686
  //#endregion
22683
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaAST.js
22687
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaAST.js
22684
22688
  /**
22685
22689
  * @since 4.0.0
22686
22690
  */
@@ -24126,7 +24130,7 @@ const resolveTitle = resolveTitle$1;
24126
24130
  const resolveDescription = resolveDescription$1;
24127
24131
 
24128
24132
  //#endregion
24129
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Brand.js
24133
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Brand.js
24130
24134
  /**
24131
24135
  * This function returns a `Constructor` that **does not apply any runtime
24132
24136
  * checks**, it just returns the provided value. It can be used to create
@@ -24148,7 +24152,7 @@ function nominal() {
24148
24152
  }
24149
24153
 
24150
24154
  //#endregion
24151
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/PlatformError.js
24155
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/PlatformError.js
24152
24156
  /**
24153
24157
  * @since 4.0.0
24154
24158
  */
@@ -24157,15 +24161,7 @@ const TypeId$41 = "~effect/platform/PlatformError";
24157
24161
  * @since 4.0.0
24158
24162
  * @category Models
24159
24163
  */
24160
- var BadArgument = class extends TaggedError("PlatformError") {
24161
- /**
24162
- * @since 4.0.0
24163
- */
24164
- [TypeId$41] = TypeId$41;
24165
- /**
24166
- * @since 4.0.0
24167
- */
24168
- reason = "BadArgument";
24164
+ var BadArgument = class extends TaggedError("BadArgument") {
24169
24165
  /**
24170
24166
  * @since 4.0.0
24171
24167
  */
@@ -24177,21 +24173,47 @@ var BadArgument = class extends TaggedError("PlatformError") {
24177
24173
  * @since 4.0.0
24178
24174
  * @category models
24179
24175
  */
24180
- var SystemError = class extends TaggedError("PlatformError") {
24176
+ var SystemError = class extends TaggedError("SystemError") {
24181
24177
  /**
24182
24178
  * @since 4.0.0
24183
24179
  */
24184
- [TypeId$41] = TypeId$41;
24180
+ get message() {
24181
+ return `${this.kind}: ${this.module}.${this.method}${this.pathOrDescriptor !== void 0 ? ` (${this.pathOrDescriptor})` : ""}${this.description ? `: ${this.description}` : ""}`;
24182
+ }
24183
+ };
24184
+ /**
24185
+ * @since 4.0.0
24186
+ * @category Models
24187
+ */
24188
+ var PlatformError = class extends TaggedError("PlatformError") {
24189
+ constructor(reason) {
24190
+ if ("cause" in reason) super({
24191
+ reason,
24192
+ cause: reason.cause
24193
+ });
24194
+ else super({ reason });
24195
+ }
24185
24196
  /**
24186
24197
  * @since 4.0.0
24187
24198
  */
24199
+ [TypeId$41] = TypeId$41;
24188
24200
  get message() {
24189
- return `${this.reason}: ${this.module}.${this.method}${this.pathOrDescriptor !== void 0 ? ` (${this.pathOrDescriptor})` : ""}${this.description ? `: ${this.description}` : ""}`;
24201
+ return this.reason.message;
24190
24202
  }
24191
24203
  };
24204
+ /**
24205
+ * @since 4.0.0
24206
+ * @category constructors
24207
+ */
24208
+ const systemError = (options) => new PlatformError(new SystemError(options));
24209
+ /**
24210
+ * @since 4.0.0
24211
+ * @category constructors
24212
+ */
24213
+ const badArgument = (options) => new PlatformError(new BadArgument(options));
24192
24214
 
24193
24215
  //#endregion
24194
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Fiber.js
24216
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Fiber.js
24195
24217
  `${version$1}`;
24196
24218
  const await_ = fiberAwait;
24197
24219
  /**
@@ -24399,7 +24421,7 @@ const getCurrent = getCurrentFiber;
24399
24421
  const runIn = fiberRunIn;
24400
24422
 
24401
24423
  //#endregion
24402
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/MutableList.js
24424
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/MutableList.js
24403
24425
  /**
24404
24426
  * @fileoverview
24405
24427
  * MutableList is an efficient, mutable linked list implementation optimized for high-throughput
@@ -24801,7 +24823,7 @@ const take$1 = (self$1) => {
24801
24823
  };
24802
24824
 
24803
24825
  //#endregion
24804
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/MutableRef.js
24826
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/MutableRef.js
24805
24827
  const TypeId$40 = "~effect/MutableRef";
24806
24828
  const MutableRefProto = {
24807
24829
  [TypeId$40]: TypeId$40,
@@ -24844,7 +24866,7 @@ const make$39 = (value) => {
24844
24866
  };
24845
24867
 
24846
24868
  //#endregion
24847
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Queue.js
24869
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Queue.js
24848
24870
  /**
24849
24871
  * This module provides utilities for working with asynchronous queues that support various backpressure strategies.
24850
24872
  *
@@ -25625,7 +25647,7 @@ const finalize = (self$1, exit$2) => {
25625
25647
  };
25626
25648
 
25627
25649
  //#endregion
25628
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Channel.js
25650
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Channel.js
25629
25651
  /**
25630
25652
  * The `Channel` module provides a powerful abstraction for bi-directional communication
25631
25653
  * and streaming operations. A `Channel` is a nexus of I/O operations that supports both
@@ -26564,7 +26586,7 @@ const runFold = /* @__PURE__ */ dual(3, (self$1, initial, f) => suspend$3(() =>
26564
26586
  const toPullScoped = (self$1, scope$2) => toTransform(self$1)(done(), scope$2);
26565
26587
 
26566
26588
  //#endregion
26567
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/stream.js
26589
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/stream.js
26568
26590
  const TypeId$37 = "~effect/Stream";
26569
26591
  const streamVariance = {
26570
26592
  _R: identity,
@@ -26585,7 +26607,7 @@ const fromChannel$2 = (channel) => {
26585
26607
  };
26586
26608
 
26587
26609
  //#endregion
26588
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Sink.js
26610
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Sink.js
26589
26611
  const TypeId$36 = "~effect/Sink";
26590
26612
  const endVoid = /* @__PURE__ */ succeed$1([void 0]);
26591
26613
  const sinkVariance = {
@@ -26791,7 +26813,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap(f)
26791
26813
  const unwrap$1 = (effect$1) => fromChannel$1(unwrap$2(map$5(effect$1, toChannel$1)));
26792
26814
 
26793
26815
  //#endregion
26794
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/MutableHashMap.js
26816
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/MutableHashMap.js
26795
26817
  const TypeId$35 = "~effect/collections/MutableHashMap";
26796
26818
  const MutableHashMapProto = {
26797
26819
  [TypeId$35]: TypeId$35,
@@ -27129,7 +27151,7 @@ const clear$1 = (self$1) => {
27129
27151
  const size = (self$1) => self$1.backing.size;
27130
27152
 
27131
27153
  //#endregion
27132
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/RcMap.js
27154
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/RcMap.js
27133
27155
  /**
27134
27156
  * @since 3.5.0
27135
27157
  */
@@ -27329,7 +27351,7 @@ const invalidate$2 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function
27329
27351
  }, uninterruptible));
27330
27352
 
27331
27353
  //#endregion
27332
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/rcRef.js
27354
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/rcRef.js
27333
27355
  const TypeId$33 = "~effect/RcRef";
27334
27356
  const stateEmpty = { _tag: "Empty" };
27335
27357
  const stateClosed = { _tag: "Closed" };
@@ -27428,7 +27450,7 @@ const invalidate$1 = (self_) => {
27428
27450
  };
27429
27451
 
27430
27452
  //#endregion
27431
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/RcRef.js
27453
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/RcRef.js
27432
27454
  /**
27433
27455
  * Create an `RcRef` from an acquire `Effect`.
27434
27456
  *
@@ -27503,7 +27525,7 @@ const get$3 = get$4;
27503
27525
  const invalidate = invalidate$1;
27504
27526
 
27505
27527
  //#endregion
27506
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Stream.js
27528
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Stream.js
27507
27529
  /**
27508
27530
  * @since 2.0.0
27509
27531
  */
@@ -28253,7 +28275,7 @@ const toReadableStreamWith = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]
28253
28275
  const toReadableStreamEffect = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]), (self$1, options) => map$5(services(), (context) => toReadableStreamWith(self$1, context, options)));
28254
28276
 
28255
28277
  //#endregion
28256
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/FileSystem.js
28278
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/FileSystem.js
28257
28279
  /**
28258
28280
  * This module provides a comprehensive file system abstraction that supports both synchronous
28259
28281
  * and asynchronous file operations through Effect. It includes utilities for file I/O, directory
@@ -28381,10 +28403,10 @@ const FileSystem = /* @__PURE__ */ Service("effect/platform/FileSystem");
28381
28403
  const make$33 = (impl) => FileSystem.of({
28382
28404
  ...impl,
28383
28405
  [TypeId$31]: TypeId$31,
28384
- exists: (path$2) => pipe(impl.access(path$2), as(true), catchTag("PlatformError", (e) => e.reason === "NotFound" ? succeed$1(false) : fail$4(e))),
28406
+ exists: (path$2) => pipe(impl.access(path$2), as(true), catchTag("PlatformError", (e) => e.reason._tag === "SystemError" && e.reason.kind === "NotFound" ? succeed$1(false) : fail$4(e))),
28385
28407
  readFileString: (path$2, encoding) => flatMap(impl.readFile(path$2), (_) => try_({
28386
28408
  try: () => new TextDecoder(encoding).decode(_),
28387
- catch: (cause) => new BadArgument({
28409
+ catch: (cause) => badArgument({
28388
28410
  module: "FileSystem",
28389
28411
  method: "readFileString",
28390
28412
  description: "invalid encoding",
@@ -28413,7 +28435,7 @@ const make$33 = (impl) => FileSystem.of({
28413
28435
  }), map$5((file) => forEach((_) => file.writeAll(_))), unwrap$1),
28414
28436
  writeFileString: (path$2, data, options) => flatMap(try_({
28415
28437
  try: () => new TextEncoder().encode(data),
28416
- catch: (cause) => new BadArgument({
28438
+ catch: (cause) => badArgument({
28417
28439
  module: "FileSystem",
28418
28440
  method: "writeFileString",
28419
28441
  description: "could not encode string",
@@ -28476,7 +28498,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
28476
28498
  var WatchBackend = class extends Service()("effect/platform/FileSystem/WatchBackend") {};
28477
28499
 
28478
28500
  //#endregion
28479
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Path.js
28501
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Path.js
28480
28502
  /**
28481
28503
  * @since 4.0.0
28482
28504
  */
@@ -28901,7 +28923,7 @@ const posixImpl = /* @__PURE__ */ Path$1.of({
28901
28923
  });
28902
28924
 
28903
28925
  //#endregion
28904
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/ConfigProvider.js
28926
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/ConfigProvider.js
28905
28927
  /**
28906
28928
  * @category Constructors
28907
28929
  * @since 4.0.0
@@ -29012,7 +29034,7 @@ function trieNodeAt(root, path$2) {
29012
29034
  }
29013
29035
 
29014
29036
  //#endregion
29015
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/LogLevel.js
29037
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/LogLevel.js
29016
29038
  /**
29017
29039
  * @since 2.0.0
29018
29040
  *
@@ -29181,7 +29203,7 @@ const Order = LogLevelOrder;
29181
29203
  const isGreaterThan$1 = isLogLevelGreaterThan;
29182
29204
 
29183
29205
  //#endregion
29184
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Struct.js
29206
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Struct.js
29185
29207
  /**
29186
29208
  * Given a struct of `Equivalence`s returns a new `Equivalence` that compares values of a struct
29187
29209
  * by applying each `Equivalence` to the corresponding property of the struct.
@@ -29256,7 +29278,7 @@ const makeOrder = Struct$2;
29256
29278
  const lambda = (f) => f;
29257
29279
 
29258
29280
  //#endregion
29259
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaParser.js
29281
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaParser.js
29260
29282
  /**
29261
29283
  * @since 4.0.0
29262
29284
  */
@@ -29494,7 +29516,7 @@ const recur$1 = /* @__PURE__ */ memoize((ast) => {
29494
29516
  });
29495
29517
 
29496
29518
  //#endregion
29497
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/JsonPointer.js
29519
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/JsonPointer.js
29498
29520
  /**
29499
29521
  * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901.
29500
29522
  *
@@ -29588,7 +29610,7 @@ function escapeToken(token) {
29588
29610
  }
29589
29611
 
29590
29612
  //#endregion
29591
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/schema/schema.js
29613
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/schema/schema.js
29592
29614
  /** @internal */
29593
29615
  const TypeId$29 = "~effect/Schema/Schema";
29594
29616
  const SchemaProto = {
@@ -29617,7 +29639,7 @@ function make$31(ast, options) {
29617
29639
  }
29618
29640
 
29619
29641
  //#endregion
29620
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/schema/to-codec.js
29642
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/schema/to-codec.js
29621
29643
  /** @internal */
29622
29644
  const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
29623
29645
  const out = toCodecJsonBase(ast);
@@ -29687,7 +29709,7 @@ function makeReorder(getPriority) {
29687
29709
  const unknownToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough$1(), /* @__PURE__ */ transform$2(() => null)));
29688
29710
 
29689
29711
  //#endregion
29690
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/internal/schema/representation.js
29712
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/schema/representation.js
29691
29713
  /** @internal */
29692
29714
  function fromAST(ast) {
29693
29715
  const { references, representations: schemas } = fromASTs([ast]);
@@ -29845,10 +29867,7 @@ function fromASTs(asts) {
29845
29867
  _tag: last$1._tag,
29846
29868
  checks: fromASTChecks(last$1.checks),
29847
29869
  ...annotations$1,
29848
- ...typeof contentMediaType === "string" && isAST(contentSchema) ? {
29849
- contentMediaType,
29850
- contentSchema: recur$2(contentSchema)
29851
- } : void 0
29870
+ ...typeof contentMediaType === "string" && isAST(contentSchema) ? { contentSchema: recur$2(contentSchema) } : void 0
29852
29871
  };
29853
29872
  }
29854
29873
  case "Number":
@@ -30162,6 +30181,9 @@ function toJsonSchemaMultiDocument(multiDocument, options) {
30162
30181
  if (Array.isArray(annotations$1.examples)) out.examples = annotations$1.examples;
30163
30182
  if (typeof annotations$1.readOnly === "boolean") out.readOnly = annotations$1.readOnly;
30164
30183
  if (typeof annotations$1.writeOnly === "boolean") out.writeOnly = annotations$1.writeOnly;
30184
+ if (typeof annotations$1.format === "string") out.format = annotations$1.format;
30185
+ if (typeof annotations$1.contentEncoding === "string") out.contentEncoding = annotations$1.contentEncoding;
30186
+ if (typeof annotations$1.contentMediaType === "string") out.contentMediaType = annotations$1.contentMediaType;
30165
30187
  if (Object.keys(out).length > 0) return out;
30166
30188
  }
30167
30189
  }
@@ -30299,7 +30321,7 @@ function getPartPattern(part) {
30299
30321
  }
30300
30322
 
30301
30323
  //#endregion
30302
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Schema.js
30324
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Schema.js
30303
30325
  const TypeId$28 = TypeId$29;
30304
30326
  /**
30305
30327
  * An API for creating schemas for parametric types.
@@ -31969,6 +31991,11 @@ const NumberFromString = /* @__PURE__ */ String$1.annotate({ expected: "a string
31969
31991
  * @since 4.0.0
31970
31992
  */
31971
31993
  const FiniteFromString = /* @__PURE__ */ String$1.annotate({ expected: "a string that will be decoded as a finite number" }).pipe(/* @__PURE__ */ decodeTo(Finite, numberFromString));
31994
+ const Base64String = /* @__PURE__ */ String$1.annotate({
31995
+ expected: "a base64 encoded string that will be decoded as Uint8Array",
31996
+ format: "byte",
31997
+ contentEncoding: "base64"
31998
+ });
31972
31999
  /**
31973
32000
  * A schema for JavaScript `Uint8Array` objects.
31974
32001
  *
@@ -31986,7 +32013,7 @@ const Uint8Array$2 = /* @__PURE__ */ instanceOf(globalThis.Uint8Array, {
31986
32013
  Type: `globalThis.Uint8Array`
31987
32014
  },
31988
32015
  expected: "Uint8Array",
31989
- toCodecJson: () => link$1()(String$1.annotate({ expected: "a base64 encoded string that will be decoded as Uint8Array" }), uint8ArrayFromBase64String),
32016
+ toCodecJson: () => link$1()(Base64String, uint8ArrayFromBase64String),
31990
32017
  toArbitrary: () => (fc) => fc.uint8Array()
31991
32018
  });
31992
32019
  /**
@@ -32002,7 +32029,7 @@ const Uint8Array$2 = /* @__PURE__ */ instanceOf(globalThis.Uint8Array, {
32002
32029
  * @category Uint8Array
32003
32030
  * @since 4.0.0
32004
32031
  */
32005
- const Uint8ArrayFromBase64 = /* @__PURE__ */ String$1.annotate({ expected: "a base64 encoded string that will be decoded as a Uint8Array" }).pipe(/* @__PURE__ */ decodeTo(Uint8Array$2, uint8ArrayFromBase64String));
32032
+ const Uint8ArrayFromBase64 = /* @__PURE__ */ Base64String.pipe(/* @__PURE__ */ decodeTo(Uint8Array$2, uint8ArrayFromBase64String));
32006
32033
  /**
32007
32034
  * A schema for `DateTime.Utc` values.
32008
32035
  *
@@ -32306,7 +32333,7 @@ function onSerializerEnsureArray(ast) {
32306
32333
  }
32307
32334
 
32308
32335
  //#endregion
32309
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Config.js
32336
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Config.js
32310
32337
  const TypeId$27 = "~effect/Config";
32311
32338
  /**
32312
32339
  * @since 4.0.0
@@ -32596,7 +32623,7 @@ function int(name) {
32596
32623
  }
32597
32624
 
32598
32625
  //#endregion
32599
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/CliError.js
32626
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/CliError.js
32600
32627
  /**
32601
32628
  * @since 4.0.0
32602
32629
  */
@@ -43602,7 +43629,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
43602
43629
  }));
43603
43630
 
43604
43631
  //#endregion
43605
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/Primitive.js
43632
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/Primitive.js
43606
43633
  var import_ini = /* @__PURE__ */ __toESM(require_ini(), 1);
43607
43634
  var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
43608
43635
  var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
@@ -43895,7 +43922,7 @@ const getTypeName = (primitive) => {
43895
43922
  };
43896
43923
 
43897
43924
  //#endregion
43898
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Terminal.js
43925
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Terminal.js
43899
43926
  const TypeId$25 = "~effect/platform/Terminal";
43900
43927
  const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
43901
43928
  /**
@@ -43928,7 +43955,7 @@ const make$28 = (impl) => Terminal.of({
43928
43955
  });
43929
43956
 
43930
43957
  //#endregion
43931
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/ansi.js
43958
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/ansi.js
43932
43959
  const ESC = "\x1B[";
43933
43960
  const BEL = "\x07";
43934
43961
  const SEP = ";";
@@ -44019,7 +44046,7 @@ const eraseLines = (rows) => {
44019
44046
  };
44020
44047
 
44021
44048
  //#endregion
44022
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/Prompt.js
44049
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/Prompt.js
44023
44050
  /**
44024
44051
  * @since 4.0.0
44025
44052
  */
@@ -44637,7 +44664,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
44637
44664
  };
44638
44665
 
44639
44666
  //#endregion
44640
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/Param.js
44667
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/Param.js
44641
44668
  /**
44642
44669
  * @internal
44643
44670
  *
@@ -45353,7 +45380,7 @@ const getParamMetadata = (param) => {
45353
45380
  };
45354
45381
 
45355
45382
  //#endregion
45356
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/CliOutput.js
45383
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/CliOutput.js
45357
45384
  /**
45358
45385
  * Service reference for the CLI output formatter. Provides a default implementation
45359
45386
  * that can be overridden for custom formatting or testing.
@@ -45555,7 +45582,7 @@ const formatHelpDocImpl = (doc, colors$1) => {
45555
45582
  };
45556
45583
 
45557
45584
  //#endregion
45558
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Console.js
45585
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Console.js
45559
45586
  /**
45560
45587
  * A reference to the current console service in the Effect system.
45561
45588
  *
@@ -45648,7 +45675,7 @@ const log = (...args$1) => consoleWith((console$1) => sync$1(() => {
45648
45675
  }));
45649
45676
 
45650
45677
  //#endregion
45651
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/config.js
45678
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/config.js
45652
45679
  const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
45653
45680
  /**
45654
45681
  * Parses a Command.Config into a ConfigInternal.
@@ -45718,7 +45745,7 @@ const reconstructTree = (tree, results) => {
45718
45745
  };
45719
45746
 
45720
45747
  //#endregion
45721
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/command.js
45748
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/command.js
45722
45749
  /**
45723
45750
  * Command Implementation
45724
45751
  * ======================
@@ -45871,7 +45898,7 @@ const getHelpForCommandPath = (command, commandPath) => {
45871
45898
  };
45872
45899
 
45873
45900
  //#endregion
45874
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/bash.js
45901
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/bash.js
45875
45902
  /**
45876
45903
  * Dynamic Bash completion template.
45877
45904
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -45928,7 +45955,7 @@ complete -F _${executableName}_dynamic_completions ${executableName}
45928
45955
  };
45929
45956
 
45930
45957
  //#endregion
45931
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/fish.js
45958
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/fish.js
45932
45959
  /**
45933
45960
  * Dynamic Fish completion template.
45934
45961
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -45988,7 +46015,7 @@ complete -c ${executableName} -f -a '(__${executableName}_complete)'
45988
46015
  };
45989
46016
 
45990
46017
  //#endregion
45991
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/zsh.js
46018
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/zsh.js
45992
46019
  /**
45993
46020
  * Dynamic Zsh completion template.
45994
46021
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -46110,7 +46137,7 @@ fi
46110
46137
  };
46111
46138
 
46112
46139
  //#endregion
46113
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/core.js
46140
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/core.js
46114
46141
  /**
46115
46142
  * Core dynamic completion functions.
46116
46143
  */
@@ -46140,7 +46167,7 @@ const isCompletionRequest = (args$1) => {
46140
46167
  };
46141
46168
 
46142
46169
  //#endregion
46143
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/completions/shared.js
46170
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/completions/shared.js
46144
46171
  /** @internal */
46145
46172
  const getSingles = (flags) => flags.flatMap(extractSingleParams).filter((s) => s.kind === "flag").map((s) => {
46146
46173
  const description = s.description;
@@ -46157,12 +46184,12 @@ const getSingles = (flags) => flags.flatMap(extractSingleParams).filter((s) => s
46157
46184
  });
46158
46185
 
46159
46186
  //#endregion
46160
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/completions/types.js
46187
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/completions/types.js
46161
46188
  /** @internal */
46162
46189
  const optionRequiresValue = (s) => s.primitiveTag !== "Boolean";
46163
46190
 
46164
46191
  //#endregion
46165
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/handler.js
46192
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/handler.js
46166
46193
  /**
46167
46194
  * Runtime completion handler for dynamic completion.
46168
46195
  * This processes completion requests from the shell and returns appropriate suggestions.
@@ -46334,7 +46361,7 @@ const handleCompletionRequest = (rootCmd) => {
46334
46361
  };
46335
46362
 
46336
46363
  //#endregion
46337
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/lexer.js
46364
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/lexer.js
46338
46365
  /** @internal */
46339
46366
  function lex(argv) {
46340
46367
  const endIndex = argv.indexOf("--");
@@ -46386,7 +46413,7 @@ const lexTokens = (args$1) => {
46386
46413
  };
46387
46414
 
46388
46415
  //#endregion
46389
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
46416
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
46390
46417
  /**
46391
46418
  * Simple Levenshtein distance implementation (small N, no perf worries)
46392
46419
  */
@@ -46415,7 +46442,7 @@ const suggest = (input, candidates) => {
46415
46442
  };
46416
46443
 
46417
46444
  //#endregion
46418
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/Flag.js
46445
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/Flag.js
46419
46446
  /**
46420
46447
  * Creates a string flag that accepts text input.
46421
46448
  *
@@ -46660,7 +46687,7 @@ const withFallbackConfig = /* @__PURE__ */ dual(2, (self$1, config) => withFallb
46660
46687
  const map = /* @__PURE__ */ dual(2, (self$1, f) => map$1(self$1, f));
46661
46688
 
46662
46689
  //#endregion
46663
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
46690
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
46664
46691
  /**
46665
46692
  * Built-in options that are automatically available for CLI commands.
46666
46693
  * @since 4.0.0
@@ -46714,7 +46741,7 @@ const completionsFlag = /* @__PURE__ */ choice("completions", [
46714
46741
  ]).pipe(optional, /* @__PURE__ */ map((v) => map$11(v, (s) => s === "sh" ? "bash" : s)), /* @__PURE__ */ withDescription$1("Print shell completion script for the given shell"));
46715
46742
 
46716
46743
  //#endregion
46717
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/internal/parser.js
46744
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/internal/parser.js
46718
46745
  /**
46719
46746
  * Parsing Pipeline for CLI Commands
46720
46747
  * ==================================
@@ -47025,7 +47052,7 @@ const scanCommandLevel = (tokens, context) => {
47025
47052
  };
47026
47053
 
47027
47054
  //#endregion
47028
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/cli/Command.js
47055
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/cli/Command.js
47029
47056
  /**
47030
47057
  * @since 4.0.0
47031
47058
  */
@@ -47245,7 +47272,7 @@ const mapHandler = (self$1, f) => {
47245
47272
  * : FileSystem.layerNoop({
47246
47273
  * access: () =>
47247
47274
  * Effect.fail(
47248
- * new PlatformError.BadArgument({
47275
+ * PlatformError.badArgument({
47249
47276
  * module: "FileSystem",
47250
47277
  * method: "access"
47251
47278
  * })
@@ -47377,7 +47404,7 @@ const runWith = (command, config) => {
47377
47404
  };
47378
47405
 
47379
47406
  //#endregion
47380
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Cache.js
47407
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Cache.js
47381
47408
  /**
47382
47409
  * @since 4.0.0
47383
47410
  */
@@ -47748,7 +47775,7 @@ const set$3 = /* @__PURE__ */ dual(3, (self$1, key, value) => withFiber$1((fiber
47748
47775
  }));
47749
47776
 
47750
47777
  //#endregion
47751
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/FiberHandle.js
47778
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/FiberHandle.js
47752
47779
  /**
47753
47780
  * @since 2.0.0
47754
47781
  */
@@ -47944,7 +47971,7 @@ const runImpl$1 = (self$1, effect$1, options) => withFiber((parent) => {
47944
47971
  });
47945
47972
 
47946
47973
  //#endregion
47947
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/FiberSet.js
47974
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/FiberSet.js
47948
47975
  /**
47949
47976
  * @since 2.0.0
47950
47977
  */
@@ -48197,7 +48224,7 @@ const awaitEmpty = (self$1) => whileLoop({
48197
48224
  });
48198
48225
 
48199
48226
  //#endregion
48200
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
48227
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
48201
48228
  /**
48202
48229
  * @since 4.0.0
48203
48230
  */
@@ -48262,13 +48289,13 @@ const layerFileSystem = (directory$2) => effect(KeyValueStore)(gen(function* ()
48262
48289
  const keyPath = (key) => path$2.join(directory$2, encodeURIComponent(key));
48263
48290
  if (!(yield* fs.exists(directory$2))) yield* fs.makeDirectory(directory$2, { recursive: true });
48264
48291
  return make$23({
48265
- get: (key) => catchTag(fs.readFileString(keyPath(key)), "PlatformError", (cause) => cause.reason === "NotFound" ? undefined_$1 : fail$4(new KeyValueStoreError({
48292
+ get: (key) => catchTag(fs.readFileString(keyPath(key)), "PlatformError", (cause) => cause.reason._tag === "SystemError" && cause.reason.kind === "NotFound" ? undefined_$1 : fail$4(new KeyValueStoreError({
48266
48293
  method: "get",
48267
48294
  key,
48268
48295
  message: `Unable to get item with key ${key}`,
48269
48296
  cause
48270
48297
  }))),
48271
- getUint8Array: (key) => catchTag(fs.readFile(keyPath(key)), "PlatformError", (cause) => cause.reason === "NotFound" ? undefined_$1 : fail$4(new KeyValueStoreError({
48298
+ getUint8Array: (key) => catchTag(fs.readFile(keyPath(key)), "PlatformError", (cause) => cause.reason._tag === "SystemError" && cause.reason.kind === "NotFound" ? undefined_$1 : fail$4(new KeyValueStoreError({
48272
48299
  method: "getUint8Array",
48273
48300
  key,
48274
48301
  message: `Unable to get item with key ${key}`,
@@ -48341,7 +48368,7 @@ const toSchemaStore = (self$1, schema$1) => {
48341
48368
  };
48342
48369
 
48343
48370
  //#endregion
48344
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Runtime.js
48371
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Runtime.js
48345
48372
  /**
48346
48373
  * This module provides utilities for running Effect programs and managing their execution lifecycle.
48347
48374
  *
@@ -48477,7 +48504,7 @@ const makeRunMain = (f) => dual((args$1) => isEffect(args$1[0]), (effect$1, opti
48477
48504
  });
48478
48505
 
48479
48506
  //#endregion
48480
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Stdio.js
48507
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Stdio.js
48481
48508
  /**
48482
48509
  * @since 4.0.0
48483
48510
  * @category Type IDs
@@ -49888,7 +49915,7 @@ var Mime_default$1 = Mime;
49888
49915
  var src_default = new Mime_default$1(standard_default, other_default)._freeze();
49889
49916
 
49890
49917
  //#endregion
49891
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/Mime.js
49918
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/Mime.js
49892
49919
  /**
49893
49920
  * @since 1.0.0
49894
49921
  */
@@ -49899,7 +49926,7 @@ var src_default = new Mime_default$1(standard_default, other_default)._freeze();
49899
49926
  var Mime_default = src_default;
49900
49927
 
49901
49928
  //#endregion
49902
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
49929
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
49903
49930
  /**
49904
49931
  * A module providing a generic service interface for spawning child processes.
49905
49932
  *
@@ -49945,7 +49972,7 @@ const makeHandle = (params) => Object.assign(Object.create(HandleProto), params)
49945
49972
  const ChildProcessSpawner = /* @__PURE__ */ Service("effect/process/ChildProcessSpawner");
49946
49973
 
49947
49974
  //#endregion
49948
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/process/ChildProcess.js
49975
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/process/ChildProcess.js
49949
49976
  const TypeId$16 = "~effect/unstable/process/ChildProcess";
49950
49977
  const Proto$7 = {
49951
49978
  ...PipeInspectableProto,
@@ -50282,7 +50309,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
50282
50309
  ];
50283
50310
 
50284
50311
  //#endregion
50285
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/internal/utils.js
50312
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/internal/utils.js
50286
50313
  /** @internal */
50287
50314
  const handleErrnoException = (module$1, method) => (err, [path$2]) => {
50288
50315
  let reason = "Unknown";
@@ -50309,8 +50336,8 @@ const handleErrnoException = (module$1, method) => (err, [path$2]) => {
50309
50336
  reason = "BadResource";
50310
50337
  break;
50311
50338
  }
50312
- return new SystemError({
50313
- reason,
50339
+ return systemError({
50340
+ kind: reason,
50314
50341
  module: module$1,
50315
50342
  method,
50316
50343
  pathOrDescriptor: path$2,
@@ -50320,7 +50347,7 @@ const handleErrnoException = (module$1, method) => (err, [path$2]) => {
50320
50347
  };
50321
50348
 
50322
50349
  //#endregion
50323
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/NodeSink.js
50350
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/NodeSink.js
50324
50351
  /**
50325
50352
  * @category constructors
50326
50353
  * @since 1.0.0
@@ -50359,7 +50386,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap((chunk) => {
50359
50386
  }) : identity);
50360
50387
 
50361
50388
  //#endregion
50362
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/NodeStream.js
50389
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/NodeStream.js
50363
50390
  /**
50364
50391
  * @since 1.0.0
50365
50392
  */
@@ -50490,7 +50517,7 @@ const readableToPullUnsafe = (options) => {
50490
50517
  const defaultOnError = (error$1) => new UnknownError(error$1);
50491
50518
 
50492
50519
  //#endregion
50493
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
50520
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
50494
50521
  const toError = (error$1) => error$1 instanceof globalThis.Error ? error$1 : new globalThis.Error(String(error$1));
50495
50522
  const toPlatformError = (method, error$1, command) => {
50496
50523
  const { commands } = flattenCommand(command);
@@ -50893,7 +50920,7 @@ const flattenCommand = (command) => {
50893
50920
  };
50894
50921
 
50895
50922
  //#endregion
50896
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/Cookies.js
50923
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/Cookies.js
50897
50924
  /**
50898
50925
  * @since 4.0.0
50899
50926
  */
@@ -50949,7 +50976,21 @@ const CookieErrorTypeId = "~effect/http/Cookies/CookieError";
50949
50976
  * @since 4.0.0
50950
50977
  * @category errors
50951
50978
  */
50952
- var CookiesError = class extends TaggedError("CookieError") {
50979
+ var CookiesErrorReason = class extends Error$2 {};
50980
+ /**
50981
+ * @since 4.0.0
50982
+ * @category errors
50983
+ */
50984
+ var CookiesError = class CookiesError extends TaggedError("CookieError") {
50985
+ /**
50986
+ * @since 4.0.0
50987
+ */
50988
+ static fromReason(reason, cause) {
50989
+ return new CookiesError({ reason: new CookiesErrorReason({
50990
+ _tag: reason,
50991
+ cause
50992
+ }) });
50993
+ }
50953
50994
  /**
50954
50995
  * @since 4.0.0
50955
50996
  */
@@ -50958,7 +50999,7 @@ var CookiesError = class extends TaggedError("CookieError") {
50958
50999
  * @since 4.0.0
50959
51000
  */
50960
51001
  get message() {
50961
- return this.reason;
51002
+ return this.reason._tag;
50962
51003
  }
50963
51004
  };
50964
51005
  const Proto$6 = {
@@ -51132,13 +51173,13 @@ const CookieProto = {
51132
51173
  * @category constructors
51133
51174
  */
51134
51175
  function makeCookie(name, value, options) {
51135
- if (!fieldContentRegExp.test(name)) return fail$9(new CookiesError({ reason: "InvalidName" }));
51176
+ if (!fieldContentRegExp.test(name)) return fail$9(CookiesError.fromReason("InvalidCookieName"));
51136
51177
  const encodedValue = encodeURIComponent(value);
51137
- if (encodedValue && !fieldContentRegExp.test(encodedValue)) return fail$9(new CookiesError({ reason: "InvalidValue" }));
51178
+ if (encodedValue && !fieldContentRegExp.test(encodedValue)) return fail$9(CookiesError.fromReason("InvalidCookieValue"));
51138
51179
  if (options !== void 0) {
51139
- if (options.domain !== void 0 && !fieldContentRegExp.test(options.domain)) return fail$9(new CookiesError({ reason: "InvalidDomain" }));
51140
- if (options.path !== void 0 && !fieldContentRegExp.test(options.path)) return fail$9(new CookiesError({ reason: "InvalidPath" }));
51141
- if (options.maxAge !== void 0 && !isFinite$2(fromDurationInputUnsafe(options.maxAge))) return fail$9(new CookiesError({ reason: "InfinityMaxAge" }));
51180
+ if (options.domain !== void 0 && !fieldContentRegExp.test(options.domain)) return fail$9(CookiesError.fromReason("InvalidCookieDomain"));
51181
+ if (options.path !== void 0 && !fieldContentRegExp.test(options.path)) return fail$9(CookiesError.fromReason("InvalidCookiePath"));
51182
+ if (options.maxAge !== void 0 && !isFinite$2(fromDurationInputUnsafe(options.maxAge))) return fail$9(CookiesError.fromReason("CookieInfinityMaxAge"));
51142
51183
  }
51143
51184
  return succeed$6(Object.assign(Object.create(CookieProto), {
51144
51185
  name,
@@ -51269,7 +51310,7 @@ const tryDecodeURIComponent = (str) => {
51269
51310
  };
51270
51311
 
51271
51312
  //#endregion
51272
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/Headers.js
51313
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/Headers.js
51273
51314
  /**
51274
51315
  * @since 4.0.0
51275
51316
  */
@@ -51390,7 +51431,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
51390
51431
  ] });
51391
51432
 
51392
51433
  //#endregion
51393
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpClientError.js
51434
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpClientError.js
51394
51435
  /**
51395
51436
  * @since 4.0.0
51396
51437
  */
@@ -51404,11 +51445,41 @@ const isHttpClientError = (u) => hasProperty(u, TypeId$13);
51404
51445
  * @since 4.0.0
51405
51446
  * @category error
51406
51447
  */
51407
- var RequestError$2 = class extends TaggedError("RequestError") {
51448
+ var HttpClientError = class extends TaggedError("HttpClientError") {
51449
+ constructor(props) {
51450
+ if ("cause" in props.reason) super({
51451
+ ...props,
51452
+ cause: props.reason.cause
51453
+ });
51454
+ else super(props);
51455
+ }
51408
51456
  /**
51409
51457
  * @since 4.0.0
51410
51458
  */
51411
51459
  [TypeId$13] = TypeId$13;
51460
+ /**
51461
+ * @since 4.0.0
51462
+ */
51463
+ get request() {
51464
+ return this.reason.request;
51465
+ }
51466
+ /**
51467
+ * @since 4.0.0
51468
+ */
51469
+ get response() {
51470
+ return "response" in this.reason ? this.reason.response : void 0;
51471
+ }
51472
+ get message() {
51473
+ return this.reason.message;
51474
+ }
51475
+ };
51476
+ const formatReason = (tag$1) => tag$1.endsWith("Error") ? tag$1.slice(0, -5) : tag$1;
51477
+ const formatMessage = (reason, description, info) => description ? `${reason}: ${description} (${info})` : `${reason} error (${info})`;
51478
+ /**
51479
+ * @since 4.0.0
51480
+ * @category error
51481
+ */
51482
+ var TransportError = class extends TaggedError("TransportError") {
51412
51483
  /**
51413
51484
  * @since 4.0.0
51414
51485
  */
@@ -51419,18 +51490,70 @@ var RequestError$2 = class extends TaggedError("RequestError") {
51419
51490
  * @since 4.0.0
51420
51491
  */
51421
51492
  get message() {
51422
- return this.description ? `${this.reason}: ${this.description} (${this.methodAndUrl})` : `${this.reason} error (${this.methodAndUrl})`;
51493
+ return formatMessage(formatReason(this._tag), this.description, this.methodAndUrl);
51423
51494
  }
51424
51495
  };
51425
51496
  /**
51426
51497
  * @since 4.0.0
51427
51498
  * @category error
51428
51499
  */
51429
- var ResponseError$1 = class extends TaggedError("ResponseError") {
51500
+ var InvalidUrlError = class extends TaggedError("InvalidUrlError") {
51430
51501
  /**
51431
51502
  * @since 4.0.0
51432
51503
  */
51433
- [TypeId$13] = TypeId$13;
51504
+ get methodAndUrl() {
51505
+ return `${this.request.method} ${this.request.url}`;
51506
+ }
51507
+ /**
51508
+ * @since 4.0.0
51509
+ */
51510
+ get message() {
51511
+ return formatMessage(formatReason(this._tag), this.description, this.methodAndUrl);
51512
+ }
51513
+ };
51514
+ /**
51515
+ * @since 4.0.0
51516
+ * @category error
51517
+ */
51518
+ var StatusCodeError = class extends TaggedError("StatusCodeError") {
51519
+ /**
51520
+ * @since 4.0.0
51521
+ */
51522
+ get methodAndUrl() {
51523
+ return `${this.request.method} ${this.request.url}`;
51524
+ }
51525
+ /**
51526
+ * @since 4.0.0
51527
+ */
51528
+ get message() {
51529
+ const info = `${this.response.status} ${this.methodAndUrl}`;
51530
+ return formatMessage(formatReason(this._tag), this.description, info);
51531
+ }
51532
+ };
51533
+ /**
51534
+ * @since 4.0.0
51535
+ * @category error
51536
+ */
51537
+ var DecodeError = class extends TaggedError("DecodeError") {
51538
+ /**
51539
+ * @since 4.0.0
51540
+ */
51541
+ get methodAndUrl() {
51542
+ return `${this.request.method} ${this.request.url}`;
51543
+ }
51544
+ /**
51545
+ * @since 4.0.0
51546
+ */
51547
+ get message() {
51548
+ const info = `${this.response.status} ${this.methodAndUrl}`;
51549
+ return formatMessage(formatReason(this._tag), this.description, info);
51550
+ }
51551
+ };
51552
+ /**
51553
+ * @since 4.0.0
51554
+ * @category error
51555
+ */
51556
+ var EmptyBodyError = class extends TaggedError("EmptyBodyError") {
51434
51557
  /**
51435
51558
  * @since 4.0.0
51436
51559
  */
@@ -51442,12 +51565,12 @@ var ResponseError$1 = class extends TaggedError("ResponseError") {
51442
51565
  */
51443
51566
  get message() {
51444
51567
  const info = `${this.response.status} ${this.methodAndUrl}`;
51445
- return this.description ? `${this.reason}: ${this.description} (${info})` : `${this.reason} error (${info})`;
51568
+ return formatMessage(formatReason(this._tag), this.description, info);
51446
51569
  }
51447
51570
  };
51448
51571
 
51449
51572
  //#endregion
51450
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/UrlParams.js
51573
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/UrlParams.js
51451
51574
  /**
51452
51575
  * @since 4.0.0
51453
51576
  */
@@ -51660,7 +51783,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
51660
51783
  })));
51661
51784
 
51662
51785
  //#endregion
51663
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpBody.js
51786
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpBody.js
51664
51787
  /**
51665
51788
  * @since 4.0.0
51666
51789
  */
@@ -51808,7 +51931,7 @@ var Stream = class extends Proto$3 {
51808
51931
  const stream$2 = (body, contentType, contentLength) => new Stream(body, contentType ?? "application/octet-stream", contentLength);
51809
51932
 
51810
51933
  //#endregion
51811
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpClientRequest.js
51934
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpClientRequest.js
51812
51935
  const TypeId$10 = "~effect/http/HttpClientRequest";
51813
51936
  const Proto$2 = {
51814
51937
  [TypeId$10]: TypeId$10,
@@ -51946,7 +52069,7 @@ const setBody = /* @__PURE__ */ dual(2, (self$1, body) => {
51946
52069
  const bodyUrlParams = /* @__PURE__ */ dual(2, (self$1, input) => setBody(self$1, urlParams(fromInput(input))));
51947
52070
 
51948
52071
  //#endregion
51949
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
52072
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
51950
52073
  /**
51951
52074
  * @since 4.0.0
51952
52075
  */
@@ -51998,7 +52121,7 @@ const inspect = (self$1, that) => {
51998
52121
  };
51999
52122
 
52000
52123
  //#endregion
52001
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpClientResponse.js
52124
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpClientResponse.js
52002
52125
  /**
52003
52126
  * @since 4.0.0
52004
52127
  */
@@ -52016,12 +52139,11 @@ const fromWeb = (request$3, source) => new WebHttpClientResponse(request$3, sour
52016
52139
  * @since 4.0.0
52017
52140
  * @category filters
52018
52141
  */
52019
- const filterStatusOk$1 = (self$1) => self$1.status >= 200 && self$1.status < 300 ? succeed$1(self$1) : fail$4(new ResponseError$1({
52142
+ const filterStatusOk$1 = (self$1) => self$1.status >= 200 && self$1.status < 300 ? succeed$1(self$1) : fail$4(new HttpClientError({ reason: new StatusCodeError({
52020
52143
  response: self$1,
52021
52144
  request: self$1.request,
52022
- reason: "StatusCode",
52023
52145
  description: "non 2xx status code"
52024
- }));
52146
+ }) }));
52025
52147
  var WebHttpClientResponse = class extends Class$2 {
52026
52148
  [TypeId$9];
52027
52149
  [TypeId$8];
@@ -52056,81 +52178,74 @@ var WebHttpClientResponse = class extends Class$2 {
52056
52178
  get stream() {
52057
52179
  return this.source.body ? fromReadableStream({
52058
52180
  evaluate: () => this.source.body,
52059
- onError: (cause) => new ResponseError$1({
52181
+ onError: (cause) => new HttpClientError({ reason: new DecodeError({
52060
52182
  request: this.request,
52061
52183
  response: this,
52062
- reason: "Decode",
52063
52184
  cause
52064
- })
52065
- }) : fail$1(new ResponseError$1({
52185
+ }) })
52186
+ }) : fail$1(new HttpClientError({ reason: new EmptyBodyError({
52066
52187
  request: this.request,
52067
52188
  response: this,
52068
- reason: "EmptyBody",
52069
52189
  description: "can not create stream from empty body"
52070
- }));
52190
+ }) }));
52071
52191
  }
52072
52192
  get json() {
52073
52193
  return flatMap(this.text, (text$3) => try_({
52074
52194
  try: () => text$3 === "" ? null : JSON.parse(text$3),
52075
- catch: (cause) => new ResponseError$1({
52195
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52076
52196
  request: this.request,
52077
52197
  response: this,
52078
- reason: "Decode",
52079
52198
  cause
52080
- })
52199
+ }) })
52081
52200
  }));
52082
52201
  }
52083
52202
  textBody;
52084
52203
  get text() {
52085
52204
  return this.textBody ??= tryPromise({
52086
52205
  try: () => this.source.text(),
52087
- catch: (cause) => new ResponseError$1({
52206
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52088
52207
  request: this.request,
52089
52208
  response: this,
52090
- reason: "Decode",
52091
52209
  cause
52092
- })
52210
+ }) })
52093
52211
  }).pipe(cached, runSync);
52094
52212
  }
52095
52213
  get urlParamsBody() {
52096
52214
  return flatMap(this.text, (_) => try_({
52097
52215
  try: () => fromInput(new URLSearchParams(_)),
52098
- catch: (cause) => new ResponseError$1({
52216
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52099
52217
  request: this.request,
52100
52218
  response: this,
52101
- reason: "Decode",
52102
52219
  cause
52103
- })
52220
+ }) })
52104
52221
  }));
52105
52222
  }
52106
52223
  formDataBody;
52107
52224
  get formData() {
52108
52225
  return this.formDataBody ??= tryPromise({
52109
52226
  try: () => this.source.formData(),
52110
- catch: (cause) => new ResponseError$1({
52227
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52111
52228
  request: this.request,
52112
52229
  response: this,
52113
- reason: "Decode",
52114
52230
  cause
52115
- })
52231
+ }) })
52116
52232
  }).pipe(cached, runSync);
52117
52233
  }
52118
52234
  arrayBufferBody;
52119
52235
  get arrayBuffer() {
52120
52236
  return this.arrayBufferBody ??= tryPromise({
52121
52237
  try: () => this.source.arrayBuffer(),
52122
- catch: (cause) => new ResponseError$1({
52238
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52123
52239
  request: this.request,
52124
52240
  response: this,
52125
- reason: "Decode",
52126
52241
  cause
52127
- })
52242
+ }) })
52128
52243
  }).pipe(cached, runSync);
52129
52244
  }
52130
52245
  };
52131
52246
 
52132
52247
  //#endregion
52133
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpMethod.js
52248
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpMethod.js
52134
52249
  /**
52135
52250
  * @since 4.0.0
52136
52251
  */
@@ -52145,7 +52260,7 @@ const allShort = [
52145
52260
  ];
52146
52261
 
52147
52262
  //#endregion
52148
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpTraceContext.js
52263
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpTraceContext.js
52149
52264
  /**
52150
52265
  * @since 4.0.0
52151
52266
  */
@@ -52214,7 +52329,7 @@ const w3c = (headers) => {
52214
52329
  };
52215
52330
 
52216
52331
  //#endregion
52217
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpClient.js
52332
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpClient.js
52218
52333
  const TypeId$7 = "~effect/http/HttpClient";
52219
52334
  /**
52220
52335
  * @since 4.0.0
@@ -52267,11 +52382,10 @@ const make$16 = (f) => makeWith((effect$1) => flatMap(effect$1, (request$3) => w
52267
52382
  const scopedController = scopedRequests.get(request$3);
52268
52383
  const controller = scopedController ?? new AbortController();
52269
52384
  const urlResult = makeUrl(request$3.url, request$3.urlParams, request$3.hash);
52270
- if (isFailure$4(urlResult)) return fail$4(new RequestError$2({
52385
+ if (isFailure$4(urlResult)) return fail$4(new HttpClientError({ reason: new InvalidUrlError({
52271
52386
  request: request$3,
52272
- reason: "InvalidUrl",
52273
52387
  cause: urlResult.failure
52274
- }));
52388
+ }) }));
52275
52389
  const url = urlResult.success;
52276
52390
  if (fiber$2.getRef(DisablePropagation) || fiber$2.getRef(TracerDisabledWhen$1)(request$3)) {
52277
52391
  const effect$2 = f(request$3, url, controller.signal, fiber$2);
@@ -52461,7 +52575,7 @@ var InterruptibleResponse = class {
52461
52575
  }
52462
52576
  };
52463
52577
  const isTransientError = (error$1) => isTimeoutError(error$1) || isTransientHttpError(error$1);
52464
- const isTransientHttpError = (error$1) => isHttpClientError(error$1) && (error$1._tag === "RequestError" && error$1.reason === "Transport" || error$1._tag === "ResponseError" && isTransientResponse(error$1.response));
52578
+ const isTransientHttpError = (error$1) => isHttpClientError(error$1) && (error$1.reason._tag === "TransportError" || error$1.reason._tag === "StatusCodeError" && isTransientResponse(error$1.reason.response));
52465
52579
  const transientStatuses = /* @__PURE__ */ new Set([
52466
52580
  408,
52467
52581
  429,
@@ -53066,7 +53180,7 @@ const httpMethods = [
53066
53180
  const make$14 = make$15;
53067
53181
 
53068
53182
  //#endregion
53069
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/Template.js
53183
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/Template.js
53070
53184
  /**
53071
53185
  * @since 4.0.0
53072
53186
  */
@@ -53116,7 +53230,7 @@ function isSuccess(u) {
53116
53230
  }
53117
53231
 
53118
53232
  //#endregion
53119
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpServerResponse.js
53233
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpServerResponse.js
53120
53234
  /**
53121
53235
  * @since 4.0.0
53122
53236
  */
@@ -53219,7 +53333,7 @@ const makeResponse = (options) => {
53219
53333
  };
53220
53334
 
53221
53335
  //#endregion
53222
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
53336
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
53223
53337
  /**
53224
53338
  * @since 4.0.0
53225
53339
  */
@@ -53257,7 +53371,7 @@ const toResponseOrElseDefect = (u, orElse$1) => {
53257
53371
  };
53258
53372
 
53259
53373
  //#endregion
53260
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpServerError.js
53374
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpServerError.js
53261
53375
  /**
53262
53376
  * @since 4.0.0
53263
53377
  */
@@ -53266,7 +53380,14 @@ const TypeId$4 = "~effect/http/HttpServerError";
53266
53380
  * @since 4.0.0
53267
53381
  * @category error
53268
53382
  */
53269
- var RequestError$1 = class extends TaggedError("HttpServerError") {
53383
+ var HttpServerError = class extends TaggedError("HttpServerError") {
53384
+ constructor(props) {
53385
+ if ("cause" in props.reason) super({
53386
+ ...props,
53387
+ cause: props.reason.cause
53388
+ });
53389
+ else super(props);
53390
+ }
53270
53391
  /**
53271
53392
  * @since 4.0.0
53272
53393
  */
@@ -53278,34 +53399,84 @@ var RequestError$1 = class extends TaggedError("HttpServerError") {
53278
53399
  /**
53279
53400
  * @since 4.0.0
53280
53401
  */
53281
- [TypeId$5]() {
53282
- return succeed$1(empty({ status: this.reason === "InternalError" ? 500 : this.reason === "RouteNotFound" ? 404 : 400 }));
53402
+ get request() {
53403
+ return this.reason.request;
53283
53404
  }
53284
- get methodAndUrl() {
53285
- return `${this.request.method} ${this.request.url}`;
53405
+ /**
53406
+ * @since 4.0.0
53407
+ */
53408
+ get response() {
53409
+ return "response" in this.reason ? this.reason.response : void 0;
53410
+ }
53411
+ /**
53412
+ * @since 4.0.0
53413
+ */
53414
+ [TypeId$5]() {
53415
+ return this.reason[TypeId$5]();
53286
53416
  }
53287
53417
  get message() {
53288
- const prefix$2 = `${this.reason} (${this.methodAndUrl})`;
53289
- return this.description ? `${prefix$2}: ${this.description}` : prefix$2;
53418
+ return this.reason.message;
53290
53419
  }
53291
53420
  };
53292
53421
  /**
53293
53422
  * @since 4.0.0
53294
53423
  * @category error
53295
53424
  */
53296
- var ResponseError = class extends TaggedError("HttpServerError") {
53425
+ var RequestParseError = class extends TaggedError("RequestParseError") {
53297
53426
  /**
53298
53427
  * @since 4.0.0
53299
53428
  */
53300
- [TypeId$4] = TypeId$4;
53429
+ [TypeId$5]() {
53430
+ return succeed$1(empty({ status: 400 }));
53431
+ }
53432
+ get methodAndUrl() {
53433
+ return `${this.request.method} ${this.request.url}`;
53434
+ }
53435
+ get message() {
53436
+ return formatRequestMessage(this._tag, this.description, this.methodAndUrl);
53437
+ }
53438
+ };
53439
+ /**
53440
+ * @since 4.0.0
53441
+ * @category error
53442
+ */
53443
+ var RouteNotFound = class extends TaggedError("RouteNotFound") {
53301
53444
  /**
53302
53445
  * @since 4.0.0
53303
53446
  */
53304
- reason = "ResponseError";
53447
+ [TypeId$5]() {
53448
+ return succeed$1(empty({ status: 404 }));
53449
+ }
53450
+ get methodAndUrl() {
53451
+ return `${this.request.method} ${this.request.url}`;
53452
+ }
53453
+ get message() {
53454
+ return formatRequestMessage(this._tag, this.description, this.methodAndUrl);
53455
+ }
53456
+ };
53457
+ /**
53458
+ * @since 4.0.0
53459
+ * @category error
53460
+ */
53461
+ var InternalError = class extends TaggedError("InternalError") {
53305
53462
  /**
53306
53463
  * @since 4.0.0
53307
53464
  */
53308
- stack = `${this.name}: ${this.message}`;
53465
+ [TypeId$5]() {
53466
+ return succeed$1(empty({ status: 500 }));
53467
+ }
53468
+ get methodAndUrl() {
53469
+ return `${this.request.method} ${this.request.url}`;
53470
+ }
53471
+ get message() {
53472
+ return formatRequestMessage(this._tag, this.description, this.methodAndUrl);
53473
+ }
53474
+ };
53475
+ /**
53476
+ * @since 4.0.0
53477
+ * @category error
53478
+ */
53479
+ var ResponseError = class extends TaggedError("ResponseError") {
53309
53480
  /**
53310
53481
  * @since 4.0.0
53311
53482
  */
@@ -53316,7 +53487,7 @@ var ResponseError = class extends TaggedError("HttpServerError") {
53316
53487
  return `${this.request.method} ${this.request.url}`;
53317
53488
  }
53318
53489
  get message() {
53319
- const info = `${this.reason} (${this.response.status} ${this.methodAndUrl})`;
53490
+ const info = `${this._tag} (${this.response.status} ${this.methodAndUrl})`;
53320
53491
  return this.description ? `${info}: ${this.description}` : info;
53321
53492
  }
53322
53493
  };
@@ -53324,11 +53495,10 @@ var ResponseError = class extends TaggedError("HttpServerError") {
53324
53495
  * @since 4.0.0
53325
53496
  * @category error
53326
53497
  */
53327
- var ServeError = class extends TaggedError("ServeError") {
53328
- /**
53329
- * @since 4.0.0
53330
- */
53331
- [TypeId$4] = TypeId$4;
53498
+ var ServeError = class extends TaggedError("ServeError") {};
53499
+ const formatRequestMessage = (reason, description, info) => {
53500
+ const prefix$2 = `${reason} (${info})`;
53501
+ return description ? `${prefix$2}: ${description}` : prefix$2;
53332
53502
  };
53333
53503
  /**
53334
53504
  * @since 4.0.0
@@ -53401,7 +53571,7 @@ const exitResponse = (exit$2) => {
53401
53571
  };
53402
53572
 
53403
53573
  //#endregion
53404
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/socket/Socket.js
53574
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/socket/Socket.js
53405
53575
  /**
53406
53576
  * @since 4.0.0
53407
53577
  * @category Type IDs
@@ -53445,7 +53615,7 @@ const isCloseEvent = (u) => hasProperty(u, CloseEventTypeId);
53445
53615
  * @since 4.0.0
53446
53616
  * @category type ids
53447
53617
  */
53448
- const SocketErrorTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Socket/SocketError");
53618
+ const SocketErrorTypeId = "~effect/socket/Socket/SocketError";
53449
53619
  /**
53450
53620
  * @since 4.0.0
53451
53621
  * @category refinements
@@ -53455,48 +53625,100 @@ const isSocketError = (u) => hasProperty(u, SocketErrorTypeId);
53455
53625
  * @since 4.0.0
53456
53626
  * @category errors
53457
53627
  */
53458
- var SocketGenericError = class extends TaggedError("SocketError") {
53628
+ var SocketReadError = class extends ErrorClass("effect/socket/Socket/SocketReadError")({
53629
+ _tag: /* @__PURE__ */ tag("SocketReadError"),
53630
+ cause: Defect
53631
+ }) {
53459
53632
  /**
53460
53633
  * @since 4.0.0
53461
53634
  */
53462
- [SocketErrorTypeId] = SocketErrorTypeId;
53635
+ message = `An error occurred during Read`;
53636
+ };
53637
+ /**
53638
+ * @since 4.0.0
53639
+ * @category errors
53640
+ */
53641
+ var SocketWriteError = class extends ErrorClass("effect/socket/Socket/SocketWriteError")({
53642
+ _tag: /* @__PURE__ */ tag("SocketWriteError"),
53643
+ cause: Defect
53644
+ }) {
53463
53645
  /**
53464
53646
  * @since 4.0.0
53465
53647
  */
53466
- get message() {
53467
- return `An error occurred during ${this.reason}`;
53468
- }
53648
+ message = `An error occurred during Write`;
53469
53649
  };
53470
53650
  /**
53471
53651
  * @since 4.0.0
53472
53652
  * @category errors
53473
53653
  */
53474
- var SocketCloseError = class SocketCloseError extends TaggedError("SocketError") {
53654
+ var SocketOpenError = class extends ErrorClass("effect/socket/Socket/SocketOpenError")({
53655
+ _tag: /* @__PURE__ */ tag("SocketOpenError"),
53656
+ kind: /* @__PURE__ */ Literals(["Unknown", "Timeout"]),
53657
+ cause: Defect
53658
+ }) {
53475
53659
  /**
53476
53660
  * @since 4.0.0
53477
53661
  */
53478
- [SocketErrorTypeId] = SocketErrorTypeId;
53662
+ get message() {
53663
+ return this.kind === "Timeout" ? `timeout waiting for "open"` : `An error occurred during Open`;
53664
+ }
53665
+ };
53666
+ /**
53667
+ * @since 4.0.0
53668
+ * @category errors
53669
+ */
53670
+ var SocketCloseError = class extends ErrorClass("effect/socket/Socket/SocketCloseError")({
53671
+ _tag: /* @__PURE__ */ tag("SocketCloseError"),
53672
+ code: Number$1,
53673
+ closeReason: /* @__PURE__ */ optional$2(String$1)
53674
+ }) {
53479
53675
  /**
53480
53676
  * @since 4.0.0
53481
53677
  */
53482
- reason = "Close";
53678
+ static filterClean(isClean) {
53679
+ return function(u) {
53680
+ return SocketError.is(u) && u.reason._tag === "SocketCloseError" && isClean(u.reason.code) ? u.reason : fail$8(u);
53681
+ };
53682
+ }
53683
+ get message() {
53684
+ if (this.closeReason) return `${this.code}: ${this.closeReason}`;
53685
+ return `${this.code}`;
53686
+ }
53687
+ };
53688
+ /**
53689
+ * @since 4.0.0
53690
+ * @category errors
53691
+ */
53692
+ const SocketErrorReason = /* @__PURE__ */ Union([
53693
+ SocketReadError,
53694
+ SocketWriteError,
53695
+ SocketOpenError,
53696
+ SocketCloseError
53697
+ ]);
53698
+ /**
53699
+ * @since 4.0.0
53700
+ * @category errors
53701
+ */
53702
+ var SocketError = class extends ErrorClass(SocketErrorTypeId)({
53703
+ _tag: /* @__PURE__ */ tag("SocketError"),
53704
+ reason: SocketErrorReason
53705
+ }) {
53706
+ constructor(props) {
53707
+ if ("cause" in props.reason) super({
53708
+ ...props,
53709
+ cause: props.reason.cause
53710
+ });
53711
+ else super(props);
53712
+ }
53483
53713
  /**
53484
53714
  * @since 4.0.0
53485
53715
  */
53486
- static is(u) {
53487
- return isSocketError(u) && u.reason === "Close";
53488
- }
53716
+ [SocketErrorTypeId] = SocketErrorTypeId;
53489
53717
  /**
53490
53718
  * @since 4.0.0
53491
53719
  */
53492
- static isClean(isClean) {
53493
- return function(u) {
53494
- return SocketCloseError.is(u) && isClean(u.code) ? u : fail$8(u);
53495
- };
53496
- }
53497
- get message() {
53498
- if (this.closeReason) return `${this.reason}: ${this.code}: ${this.closeReason}`;
53499
- return `${this.reason}: ${this.code}`;
53720
+ static is(u) {
53721
+ return isSocketError(u);
53500
53722
  }
53501
53723
  };
53502
53724
  /**
@@ -53530,18 +53752,18 @@ const fromWebSocket = (acquire, options) => withFiber((fiber$2) => {
53530
53752
  function onError$2(cause) {
53531
53753
  ws.removeEventListener("message", onMessage);
53532
53754
  ws.removeEventListener("close", onClose);
53533
- doneUnsafe(fiberSet.deferred, fail$4(new SocketGenericError({
53534
- reason: open$1 ? "Read" : "Open",
53755
+ doneUnsafe(fiberSet.deferred, fail$4(new SocketError({ reason: open$1 ? new SocketReadError({ cause }) : new SocketOpenError({
53756
+ kind: "Unknown",
53535
53757
  cause
53536
- })));
53758
+ }) })));
53537
53759
  }
53538
53760
  function onClose(event) {
53539
53761
  ws.removeEventListener("message", onMessage);
53540
53762
  ws.removeEventListener("error", onError$2);
53541
- doneUnsafe(fiberSet.deferred, fail$4(new SocketCloseError({
53763
+ doneUnsafe(fiberSet.deferred, fail$4(new SocketError({ reason: new SocketCloseError({
53542
53764
  code: event.code,
53543
53765
  closeReason: event.reason
53544
- })));
53766
+ }) })));
53545
53767
  }
53546
53768
  ws.addEventListener("close", onClose, { once: true });
53547
53769
  ws.addEventListener("error", onError$2, { once: true });
@@ -53554,17 +53776,17 @@ const fromWebSocket = (acquire, options) => withFiber((fiber$2) => {
53554
53776
  }, { once: true });
53555
53777
  yield* _await(openDeferred).pipe(timeoutOrElse({
53556
53778
  duration: options?.openTimeout ?? 1e4,
53557
- onTimeout: () => fail$4(new SocketGenericError({
53558
- reason: "OpenTimeout",
53559
- cause: "timeout waiting for \"open\""
53560
- }))
53779
+ onTimeout: () => fail$4(new SocketError({ reason: new SocketOpenError({
53780
+ kind: "Timeout",
53781
+ cause: /* @__PURE__ */ new Error("timeout waiting for \"open\"")
53782
+ }) }))
53561
53783
  }), raceFirst(join(fiberSet)));
53562
53784
  }
53563
53785
  open$1 = true;
53564
53786
  currentWS = ws;
53565
53787
  latch.openUnsafe();
53566
53788
  if (opts?.onOpen) yield* opts.onOpen;
53567
- return yield* join(fiberSet).pipe(catchFilter(SocketCloseError.isClean((_) => !closeCodeIsError(_)), (_) => void_$1));
53789
+ return yield* join(fiberSet).pipe(catchFilter(SocketCloseError.filterClean((_) => !closeCodeIsError(_)), (_) => void_$1));
53568
53790
  })).pipe(updateServices((input) => merge$5(acquireContext, input)), ensuring(sync(() => {
53569
53791
  latch.closeUnsafe();
53570
53792
  currentWS = void 0;
@@ -54482,7 +54704,7 @@ const defaultIsFile = defaultIsFile$1;
54482
54704
  const decodeField = decodeField$1;
54483
54705
 
54484
54706
  //#endregion
54485
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/Multipart.js
54707
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/Multipart.js
54486
54708
  /**
54487
54709
  * @since 4.0.0
54488
54710
  */
@@ -54495,18 +54717,21 @@ const MultipartErrorTypeId = "~effect/http/Multipart/MultipartError";
54495
54717
  * @since 4.0.0
54496
54718
  * @category Errors
54497
54719
  */
54498
- var MultipartError = class extends ErrorClass(MultipartErrorTypeId)({
54499
- _tag: /* @__PURE__ */ tag("MultipartError"),
54500
- reason: /* @__PURE__ */ Literals([
54501
- "FileTooLarge",
54502
- "FieldTooLarge",
54503
- "BodyTooLarge",
54504
- "TooManyParts",
54505
- "InternalError",
54506
- "Parse"
54507
- ]),
54508
- cause: Defect
54509
- }) {
54720
+ var MultipartErrorReason = class extends Error$2 {};
54721
+ /**
54722
+ * @since 4.0.0
54723
+ * @category Errors
54724
+ */
54725
+ var MultipartError = class MultipartError extends TaggedError("MultipartError") {
54726
+ /**
54727
+ * @since 4.0.0
54728
+ */
54729
+ static fromReason(reason, cause) {
54730
+ return new MultipartError({ reason: new MultipartErrorReason({
54731
+ _tag: reason,
54732
+ cause
54733
+ }) });
54734
+ }
54510
54735
  /**
54511
54736
  * @since 4.0.0
54512
54737
  */
@@ -54515,7 +54740,7 @@ var MultipartError = class extends ErrorClass(MultipartErrorTypeId)({
54515
54740
  * @since 4.0.0
54516
54741
  */
54517
54742
  get message() {
54518
- return this.reason;
54743
+ return this.reason._tag;
54519
54744
  }
54520
54745
  };
54521
54746
  /**
@@ -54588,27 +54813,12 @@ const makeChannel = (headers) => fromTransform$1((upstream) => map$5(makeConfig(
54588
54813
  function convertError$1(cause) {
54589
54814
  switch (cause._tag) {
54590
54815
  case "ReachedLimit": switch (cause.limit) {
54591
- case "MaxParts": return new MultipartError({
54592
- reason: "TooManyParts",
54593
- cause
54594
- });
54595
- case "MaxFieldSize": return new MultipartError({
54596
- reason: "FieldTooLarge",
54597
- cause
54598
- });
54599
- case "MaxPartSize": return new MultipartError({
54600
- reason: "FileTooLarge",
54601
- cause
54602
- });
54603
- case "MaxTotalSize": return new MultipartError({
54604
- reason: "BodyTooLarge",
54605
- cause
54606
- });
54816
+ case "MaxParts": return MultipartError.fromReason("TooManyParts", cause);
54817
+ case "MaxFieldSize": return MultipartError.fromReason("FieldTooLarge", cause);
54818
+ case "MaxPartSize": return MultipartError.fromReason("FileTooLarge", cause);
54819
+ case "MaxTotalSize": return MultipartError.fromReason("BodyTooLarge", cause);
54607
54820
  }
54608
- default: return new MultipartError({
54609
- reason: "Parse",
54610
- cause
54611
- });
54821
+ default: return MultipartError.fromReason("Parse", cause);
54612
54822
  }
54613
54823
  }
54614
54824
  var PartBase$1 = class extends Class$2 {
@@ -54652,10 +54862,7 @@ var FileImpl$1 = class extends PartBase$1 {
54652
54862
  this.name = info.filename ?? info.name;
54653
54863
  this.contentType = info.contentType;
54654
54864
  this.content = fromChannel(channel);
54655
- this.contentEffect = channel.pipe(collectUint8Array, mapError$2((cause) => new MultipartError({
54656
- reason: "InternalError",
54657
- cause
54658
- })));
54865
+ this.contentEffect = channel.pipe(collectUint8Array, mapError$2((cause) => MultipartError.fromReason("InternalError", cause)));
54659
54866
  }
54660
54867
  toJSON() {
54661
54868
  return {
@@ -54667,10 +54874,7 @@ var FileImpl$1 = class extends PartBase$1 {
54667
54874
  };
54668
54875
  }
54669
54876
  };
54670
- const defaultWriteFile = (path$2, file) => flatMap(FileSystem.asEffect(), (fs) => mapError$2(run$6(file.content, fs.sink(path$2)), (cause) => new MultipartError({
54671
- reason: "InternalError",
54672
- cause
54673
- })));
54877
+ const defaultWriteFile = (path$2, file) => flatMap(FileSystem.asEffect(), (fs) => mapError$2(run$6(file.content, fs.sink(path$2)), (cause) => MultipartError.fromReason("InternalError", cause)));
54674
54878
  /**
54675
54879
  * @since 4.0.0
54676
54880
  */
@@ -54709,10 +54913,7 @@ const toPersisted = (stream$3, writeFile$1 = defaultWriteFile) => gen(function*
54709
54913
  return writeFile$1(path$2, file);
54710
54914
  });
54711
54915
  return persisted$1;
54712
- }).pipe(catchTag("PlatformError", (cause) => fail$4(new MultipartError({
54713
- reason: "InternalError",
54714
- cause
54715
- }))));
54916
+ }).pipe(catchTag("PlatformError", (cause) => fail$4(MultipartError.fromReason("InternalError", cause))));
54716
54917
  var PersistedFileImpl = class extends PartBase$1 {
54717
54918
  _tag = "PersistedFile";
54718
54919
  key;
@@ -54759,7 +54960,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
54759
54960
  const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
54760
54961
 
54761
54962
  //#endregion
54762
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpServerRequest.js
54963
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpServerRequest.js
54763
54964
  /**
54764
54965
  * @since 4.0.0
54765
54966
  * @category Type IDs
@@ -54830,48 +55031,43 @@ var ServerRequestImpl$1 = class ServerRequestImpl$1 extends Class$2 {
54830
55031
  get stream() {
54831
55032
  return this.source.body ? fromReadableStream({
54832
55033
  evaluate: () => this.source.body,
54833
- onError: (cause) => new RequestError$1({
55034
+ onError: (cause) => new HttpServerError({ reason: new RequestParseError({
54834
55035
  request: this,
54835
- reason: "RequestParseError",
54836
55036
  cause
54837
- })
54838
- }) : fail$1(new RequestError$1({
55037
+ }) })
55038
+ }) : fail$1(new HttpServerError({ reason: new RequestParseError({
54839
55039
  request: this,
54840
- reason: "RequestParseError",
54841
55040
  description: "can not create stream from empty body"
54842
- }));
55041
+ }) }));
54843
55042
  }
54844
55043
  textEffect;
54845
55044
  get text() {
54846
55045
  if (this.textEffect) return this.textEffect;
54847
55046
  this.textEffect = runSync(cached(tryPromise({
54848
55047
  try: () => this.source.text(),
54849
- catch: (cause) => new RequestError$1({
55048
+ catch: (cause) => new HttpServerError({ reason: new RequestParseError({
54850
55049
  request: this,
54851
- reason: "RequestParseError",
54852
55050
  cause
54853
- })
55051
+ }) })
54854
55052
  })));
54855
55053
  return this.textEffect;
54856
55054
  }
54857
55055
  get json() {
54858
55056
  return flatMap(this.text, (text$3) => try_({
54859
55057
  try: () => JSON.parse(text$3),
54860
- catch: (cause) => new RequestError$1({
55058
+ catch: (cause) => new HttpServerError({ reason: new RequestParseError({
54861
55059
  request: this,
54862
- reason: "RequestParseError",
54863
55060
  cause
54864
- })
55061
+ }) })
54865
55062
  }));
54866
55063
  }
54867
55064
  get urlParamsBody() {
54868
55065
  return flatMap(this.text, (_) => try_({
54869
55066
  try: () => fromInput(new URLSearchParams(_)),
54870
- catch: (cause) => new RequestError$1({
55067
+ catch: (cause) => new HttpServerError({ reason: new RequestParseError({
54871
55068
  request: this,
54872
- reason: "RequestParseError",
54873
55069
  cause
54874
- })
55070
+ }) })
54875
55071
  }));
54876
55072
  }
54877
55073
  multipartEffect;
@@ -54881,30 +55077,25 @@ var ServerRequestImpl$1 = class ServerRequestImpl$1 extends Class$2 {
54881
55077
  return this.multipartEffect;
54882
55078
  }
54883
55079
  get multipartStream() {
54884
- return pipeThroughChannel(mapError(this.stream, (cause) => new MultipartError({
54885
- reason: "InternalError",
54886
- cause
54887
- })), makeChannel(this.headers));
55080
+ return pipeThroughChannel(mapError(this.stream, (cause) => MultipartError.fromReason("InternalError", cause)), makeChannel(this.headers));
54888
55081
  }
54889
55082
  arrayBufferEffect;
54890
55083
  get arrayBuffer() {
54891
55084
  if (this.arrayBufferEffect) return this.arrayBufferEffect;
54892
55085
  this.arrayBufferEffect = runSync(cached(tryPromise({
54893
55086
  try: () => this.source.arrayBuffer(),
54894
- catch: (cause) => new RequestError$1({
55087
+ catch: (cause) => new HttpServerError({ reason: new RequestParseError({
54895
55088
  request: this,
54896
- reason: "RequestParseError",
54897
55089
  cause
54898
- })
55090
+ }) })
54899
55091
  })));
54900
55092
  return this.arrayBufferEffect;
54901
55093
  }
54902
55094
  get upgrade() {
54903
- return fail$4(new RequestError$1({
55095
+ return fail$4(new HttpServerError({ reason: new RequestParseError({
54904
55096
  request: this,
54905
- reason: "RequestParseError",
54906
55097
  description: "Not an upgradeable ServerRequest"
54907
- }));
55098
+ }) }));
54908
55099
  }
54909
55100
  };
54910
55101
  /**
@@ -54922,7 +55113,7 @@ const toURL = (self$1) => {
54922
55113
  };
54923
55114
 
54924
55115
  //#endregion
54925
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpMiddleware.js
55116
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpMiddleware.js
54926
55117
  /**
54927
55118
  * @since 4.0.0
54928
55119
  */
@@ -55025,7 +55216,7 @@ const tracer = /* @__PURE__ */ make$8((httpApp) => withFiber((fiber$2) => {
55025
55216
  }));
55026
55217
 
55027
55218
  //#endregion
55028
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpEffect.js
55219
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpEffect.js
55029
55220
  /**
55030
55221
  * @since 4.0.0
55031
55222
  * @category combinators
@@ -55103,7 +55294,7 @@ const scoped = (effect$1) => withFiber((fiber$2) => {
55103
55294
  const PreResponseHandlers = /* @__PURE__ */ Reference("effect/http/HttpEffect/PreResponseHandlers", { defaultValue: () => void 0 });
55104
55295
 
55105
55296
  //#endregion
55106
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/Etag.js
55297
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/Etag.js
55107
55298
  /**
55108
55299
  * @since 4.0.0
55109
55300
  */
@@ -55167,7 +55358,7 @@ const layerWeak = /* @__PURE__ */ succeed$2(Generator)({
55167
55358
  });
55168
55359
 
55169
55360
  //#endregion
55170
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpPlatform.js
55361
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpPlatform.js
55171
55362
  /**
55172
55363
  * @since 4.0.0
55173
55364
  */
@@ -55234,7 +55425,7 @@ const layer$13 = /* @__PURE__ */ effect(HttpPlatform)(flatMap(FileSystem.asEffec
55234
55425
  }))).pipe(/* @__PURE__ */ provide$3(layerWeak));
55235
55426
 
55236
55427
  //#endregion
55237
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpServer.js
55428
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpServer.js
55238
55429
  /**
55239
55430
  * @since 4.0.0
55240
55431
  */
@@ -55297,7 +55488,7 @@ const makeTestClient = /* @__PURE__ */ gen(function* () {
55297
55488
  const layerTestClient = /* @__PURE__ */ effect(HttpClient)(makeTestClient);
55298
55489
 
55299
55490
  //#endregion
55300
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/HttpRouter.js
55491
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/HttpRouter.js
55301
55492
  /**
55302
55493
  * @since 4.0.0
55303
55494
  */
@@ -55363,10 +55554,7 @@ const make$5 = /* @__PURE__ */ gen(function* () {
55363
55554
  const request$3 = contextMap.get(HttpServerRequest.key);
55364
55555
  let result$2 = router.find(request$3.method, request$3.url);
55365
55556
  if (result$2 === void 0 && request$3.method === "HEAD") result$2 = router.find("GET", request$3.url);
55366
- if (result$2 === void 0) return fail$4(new RequestError$1({
55367
- reason: "RouteNotFound",
55368
- request: request$3
55369
- }));
55557
+ if (result$2 === void 0) return fail$4(new HttpServerError({ reason: new RouteNotFound({ request: request$3 }) }));
55370
55558
  const route$1 = result$2.handler;
55371
55559
  if (route$1.prefix !== void 0) contextMap.set(HttpServerRequest.key, sliceRequestUrl(request$3, route$1.prefix));
55372
55560
  contextMap.set(ParsedSearchParams.key, result$2.searchParams);
@@ -59167,11 +59355,11 @@ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
59167
59355
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
59168
59356
 
59169
59357
  //#endregion
59170
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
59358
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
59171
59359
  /**
59172
59360
  * @since 1.0.0
59173
59361
  */
59174
- const handleBadArgument = (method) => (err) => new BadArgument({
59362
+ const handleBadArgument = (method) => (err) => badArgument({
59175
59363
  module: "FileSystem",
59176
59364
  method,
59177
59365
  description: err.message ?? String(err)
@@ -59331,10 +59519,10 @@ const makeFile = /* @__PURE__ */ (() => {
59331
59519
  return suspend$3(() => {
59332
59520
  const position = this.position;
59333
59521
  return flatMap(nodeWriteAll(this.fd, buffer$1, void 0, void 0, this.append ? void 0 : Number(position)), (bytesWritten) => {
59334
- if (bytesWritten === 0) return fail$4(new SystemError({
59522
+ if (bytesWritten === 0) return fail$4(systemError({
59335
59523
  module: "FileSystem",
59336
59524
  method: "writeAll",
59337
- reason: "WriteZero",
59525
+ kind: "WriteZero",
59338
59526
  pathOrDescriptor: this.fd,
59339
59527
  description: "write returned 0 bytes written"
59340
59528
  }));
@@ -59448,9 +59636,9 @@ const watchNode = (path$2) => callback((queue) => acquireRelease(sync(() => {
59448
59636
  }
59449
59637
  });
59450
59638
  watcher.on("error", (error$1) => {
59451
- failCauseUnsafe(queue, fail$5(new SystemError({
59639
+ failCauseUnsafe(queue, fail$5(systemError({
59452
59640
  module: "FileSystem",
59453
- reason: "Unknown",
59641
+ kind: "Unknown",
59454
59642
  method: "watch",
59455
59643
  pathOrDescriptor: path$2,
59456
59644
  cause: error$1
@@ -59517,7 +59705,7 @@ const makeFileSystem = /* @__PURE__ */ map$5(/* @__PURE__ */ serviceOption(Watch
59517
59705
  const layer$11 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
59518
59706
 
59519
59707
  //#endregion
59520
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeFileSystem.js
59708
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeFileSystem.js
59521
59709
  /**
59522
59710
  * @since 1.0.0
59523
59711
  */
@@ -59528,7 +59716,7 @@ const layer$11 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
59528
59716
  const layer$10 = layer$11;
59529
59717
 
59530
59718
  //#endregion
59531
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
59719
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
59532
59720
  /**
59533
59721
  * @since 1.0.0
59534
59722
  */
@@ -59599,7 +59787,7 @@ var NodeHttpIncomingMessage = class extends Class$2 {
59599
59787
  };
59600
59788
 
59601
59789
  //#endregion
59602
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/unstable/http/FetchHttpClient.js
59790
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/unstable/http/FetchHttpClient.js
59603
59791
  /**
59604
59792
  * @since 4.0.0
59605
59793
  */
@@ -59626,11 +59814,10 @@ const fetch$1 = /* @__PURE__ */ make$16((request$3, url, signal, fiber$2) => {
59626
59814
  duplex: request$3.body._tag === "Stream" ? "half" : void 0,
59627
59815
  signal
59628
59816
  }),
59629
- catch: (cause) => new RequestError$2({
59817
+ catch: (cause) => new HttpClientError({ reason: new TransportError({
59630
59818
  request: request$3,
59631
- reason: "Transport",
59632
59819
  cause
59633
- })
59820
+ }) })
59634
59821
  }), (response) => fromWeb(request$3, response));
59635
59822
  switch (request$3.body._tag) {
59636
59823
  case "Raw":
@@ -59647,7 +59834,7 @@ const fetch$1 = /* @__PURE__ */ make$16((request$3, url, signal, fiber$2) => {
59647
59834
  const layer$9 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed$1(fetch$1));
59648
59835
 
59649
59836
  //#endregion
59650
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
59837
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
59651
59838
  /**
59652
59839
  * @since 1.0.0
59653
59840
  */
@@ -59771,7 +59958,7 @@ var FileStream = class extends Readable {
59771
59958
  };
59772
59959
 
59773
59960
  //#endregion
59774
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeMultipart.js
59961
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeMultipart.js
59775
59962
  /**
59776
59963
  * @since 1.0.0
59777
59964
  */
@@ -59793,10 +59980,7 @@ const stream = (source, headers) => makeConfig(headers).pipe(map$5((config) => f
59793
59980
  */
59794
59981
  const persisted = (source, headers) => toPersisted(stream(source, headers), (path$2, file) => tryPromise({
59795
59982
  try: (signal) => NodeStreamP.pipeline(file.file, NFS.createWriteStream(path$2), { signal }),
59796
- catch: (cause) => new MultipartError({
59797
- reason: "InternalError",
59798
- cause
59799
- })
59983
+ catch: (cause) => MultipartError.fromReason("InternalError", cause)
59800
59984
  }));
59801
59985
  const convertPart = (part) => part._tag === "Field" ? new FieldImpl(part.info, part.value) : new FileImpl(part);
59802
59986
  var PartBase = class extends Class$2 {
@@ -59843,15 +60027,9 @@ var FileImpl = class extends PartBase {
59843
60027
  this.contentType = file.info.contentType;
59844
60028
  this.content = fromReadable({
59845
60029
  evaluate: () => file,
59846
- onError: (cause) => new MultipartError({
59847
- reason: "InternalError",
59848
- cause
59849
- })
60030
+ onError: (cause) => MultipartError.fromReason("InternalError", cause)
59850
60031
  });
59851
- this.contentEffect = toUint8Array(() => file, { onError: (cause) => new MultipartError({
59852
- reason: "InternalError",
59853
- cause
59854
- }) });
60032
+ this.contentEffect = toUint8Array(() => file, { onError: (cause) => MultipartError.fromReason("InternalError", cause) });
59855
60033
  }
59856
60034
  toJSON() {
59857
60035
  return {
@@ -59866,32 +60044,17 @@ var FileImpl = class extends PartBase {
59866
60044
  function convertError(cause) {
59867
60045
  switch (cause._tag) {
59868
60046
  case "ReachedLimit": switch (cause.limit) {
59869
- case "MaxParts": return new MultipartError({
59870
- reason: "TooManyParts",
59871
- cause
59872
- });
59873
- case "MaxFieldSize": return new MultipartError({
59874
- reason: "FieldTooLarge",
59875
- cause
59876
- });
59877
- case "MaxPartSize": return new MultipartError({
59878
- reason: "FileTooLarge",
59879
- cause
59880
- });
59881
- case "MaxTotalSize": return new MultipartError({
59882
- reason: "BodyTooLarge",
59883
- cause
59884
- });
60047
+ case "MaxParts": return MultipartError.fromReason("TooManyParts", cause);
60048
+ case "MaxFieldSize": return MultipartError.fromReason("FieldTooLarge", cause);
60049
+ case "MaxPartSize": return MultipartError.fromReason("FileTooLarge", cause);
60050
+ case "MaxTotalSize": return MultipartError.fromReason("BodyTooLarge", cause);
59885
60051
  }
59886
- default: return new MultipartError({
59887
- reason: "Parse",
59888
- cause
59889
- });
60052
+ default: return MultipartError.fromReason("Parse", cause);
59890
60053
  }
59891
60054
  }
59892
60055
 
59893
60056
  //#endregion
59894
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/NodePath.js
60057
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/NodePath.js
59895
60058
  /**
59896
60059
  * @since 1.0.0
59897
60060
  */
@@ -59943,7 +60106,7 @@ const layer$7 = /* @__PURE__ */ succeed$2(Path$1)({
59943
60106
  });
59944
60107
 
59945
60108
  //#endregion
59946
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodePath.js
60109
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodePath.js
59947
60110
  /**
59948
60111
  * @since 1.0.0
59949
60112
  */
@@ -59964,7 +60127,7 @@ const layerPosix = layerPosix$1;
59964
60127
  const layerWin32 = layerWin32$1;
59965
60128
 
59966
60129
  //#endregion
59967
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
60130
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
59968
60131
  /**
59969
60132
  * @since 1.0.0
59970
60133
  */
@@ -59975,28 +60138,28 @@ const layerWin32 = layerWin32$1;
59975
60138
  const layer$5 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$22({
59976
60139
  stdout: /* @__PURE__ */ fromWritable({
59977
60140
  evaluate: () => process.stdout,
59978
- onError: (cause) => new SystemError({
60141
+ onError: (cause) => systemError({
59979
60142
  module: "Stdio",
59980
60143
  method: "stdout",
59981
- reason: "Unknown",
60144
+ kind: "Unknown",
59982
60145
  cause
59983
60146
  })
59984
60147
  }),
59985
60148
  stderr: /* @__PURE__ */ fromWritable({
59986
60149
  evaluate: () => process.stderr,
59987
- onError: (cause) => new SystemError({
60150
+ onError: (cause) => systemError({
59988
60151
  module: "Stdio",
59989
60152
  method: "stderr",
59990
- reason: "Unknown",
60153
+ kind: "Unknown",
59991
60154
  cause
59992
60155
  })
59993
60156
  }),
59994
60157
  stdin: /* @__PURE__ */ fromReadable({
59995
60158
  evaluate: () => process.stdin,
59996
- onError: (cause) => new SystemError({
60159
+ onError: (cause) => systemError({
59997
60160
  module: "Stdio",
59998
60161
  method: "stdin",
59999
- reason: "Unknown",
60162
+ kind: "Unknown",
60000
60163
  cause
60001
60164
  }),
60002
60165
  closeOnDone: false
@@ -60004,7 +60167,7 @@ const layer$5 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$22({
60004
60167
  }));
60005
60168
 
60006
60169
  //#endregion
60007
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeStdio.js
60170
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeStdio.js
60008
60171
  /**
60009
60172
  * @since 1.0.0
60010
60173
  */
@@ -60015,7 +60178,7 @@ const layer$5 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$22({
60015
60178
  const layer$4 = layer$5;
60016
60179
 
60017
60180
  //#endregion
60018
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
60181
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
60019
60182
  /**
60020
60183
  * @since 1.0.0
60021
60184
  * @category constructors
@@ -60062,7 +60225,7 @@ const make$2 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQ
60062
60225
  return sync(() => readlineInterface.off("line", onLine));
60063
60226
  })));
60064
60227
  const display = (prompt) => uninterruptible(callback$1((resume) => {
60065
- stdout.write(prompt, (err) => isNullish(err) ? resume(void_$1) : resume(fail$4(new BadArgument({
60228
+ stdout.write(prompt, (err) => isNullish(err) ? resume(void_$1) : resume(fail$4(badArgument({
60066
60229
  module: "Terminal",
60067
60230
  method: "display",
60068
60231
  description: "Failed to write prompt to stdout",
@@ -60086,7 +60249,7 @@ function defaultShouldQuit(input) {
60086
60249
  }
60087
60250
 
60088
60251
  //#endregion
60089
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeTerminal.js
60252
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeTerminal.js
60090
60253
  /**
60091
60254
  * @since 1.0.0
60092
60255
  */
@@ -60102,7 +60265,7 @@ const make$1 = make$2;
60102
60265
  const layer$2 = layer$3;
60103
60266
 
60104
60267
  //#endregion
60105
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeServices.js
60268
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeServices.js
60106
60269
  /**
60107
60270
  * @since 1.0.0
60108
60271
  * @category layer
@@ -60110,7 +60273,7 @@ const layer$2 = layer$3;
60110
60273
  const layer$1 = /* @__PURE__ */ provideMerge(layer$15, /* @__PURE__ */ mergeAll(layer$10, layer$6, layer$4, layer$2));
60111
60274
 
60112
60275
  //#endregion
60113
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeHttpServer.js
60276
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeHttpServer.js
60114
60277
  /**
60115
60278
  * @since 1.0.0
60116
60279
  */
@@ -60223,11 +60386,10 @@ var ServerRequestImpl = class ServerRequestImpl extends NodeHttpIncomingMessage
60223
60386
  url;
60224
60387
  headersOverride;
60225
60388
  constructor(source, response, upgradeEffect, url = source.url, headersOverride, remoteAddressOverride) {
60226
- super(source, (cause) => new RequestError$1({
60389
+ super(source, (cause) => new HttpServerError({ reason: new RequestParseError({
60227
60390
  request: this,
60228
- reason: "RequestParseError",
60229
60391
  cause
60230
- }), remoteAddressOverride);
60392
+ }) }), remoteAddressOverride);
60231
60393
  this[TypeId$1] = TypeId$1;
60232
60394
  this.response = response;
60233
60395
  this.upgradeEffect = upgradeEffect;
@@ -60265,11 +60427,10 @@ var ServerRequestImpl = class ServerRequestImpl extends NodeHttpIncomingMessage
60265
60427
  return stream(this.source, this.source.headers);
60266
60428
  }
60267
60429
  get upgrade() {
60268
- return this.upgradeEffect ?? fail$4(new RequestError$1({
60430
+ return this.upgradeEffect ?? fail$4(new HttpServerError({ reason: new RequestParseError({
60269
60431
  request: this,
60270
- reason: "RequestParseError",
60271
60432
  description: "not an upgradeable ServerRequest"
60272
- }));
60433
+ }) }));
60273
60434
  }
60274
60435
  toString() {
60275
60436
  return `ServerRequest(${this.method} ${this.url})`;
@@ -60331,12 +60492,12 @@ const handleResponse = (request$3, response) => {
60331
60492
  signal,
60332
60493
  end: true
60333
60494
  }),
60334
- catch: (cause) => new ResponseError({
60495
+ catch: (cause) => new HttpServerError({ reason: new ResponseError({
60335
60496
  request: request$3,
60336
60497
  response,
60337
60498
  description: "Error writing raw response",
60338
60499
  cause
60339
- })
60500
+ }) })
60340
60501
  }).pipe(interruptible, tapCause(handleCause(nodeResponse, response)));
60341
60502
  return callback$1((resume) => {
60342
60503
  nodeResponse.end(body.body, () => resume(void_$1));
@@ -60358,12 +60519,12 @@ const handleResponse = (request$3, response) => {
60358
60519
  });
60359
60520
  return callback$1((resume, signal) => {
60360
60521
  Readable.fromWeb(r.body, { signal }).pipe(nodeResponse).on("error", (cause) => {
60361
- resume(fail$4(new ResponseError({
60522
+ resume(fail$4(new HttpServerError({ reason: new ResponseError({
60362
60523
  request: request$3,
60363
60524
  response,
60364
60525
  description: "Error writing FormData response",
60365
60526
  cause
60366
- })));
60527
+ }) })));
60367
60528
  }).once("finish", () => {
60368
60529
  resume(void_$1);
60369
60530
  });
@@ -60399,7 +60560,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
60399
60560
  });
60400
60561
 
60401
60562
  //#endregion
60402
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_d49233d2d88341acc8c4d0ea7e2b0fdd/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
60563
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_183d314ff8bd0438e73a347997b72fbf/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
60403
60564
  /**
60404
60565
  * @since 1.0.0
60405
60566
  * @category Run main
@@ -60426,7 +60587,7 @@ const runMain$1 = /* @__PURE__ */ makeRunMain(({ fiber: fiber$2, teardown }) =>
60426
60587
  });
60427
60588
 
60428
60589
  //#endregion
60429
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@15_11270d6f0ccda65a508da7579e3fa650/node_modules/@effect/platform-node/dist/NodeRuntime.js
60590
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@53_5b8d4363b1a233241d72e28fa547e150/node_modules/@effect/platform-node/dist/NodeRuntime.js
60430
60591
  /**
60431
60592
  * @since 1.0.0
60432
60593
  */
@@ -141868,7 +142029,7 @@ var Prd = class extends Service()("lalph/Prd", { make: gen(function* () {
141868
142029
  state: issue.state,
141869
142030
  blockedBy: issue.blockedBy
141870
142031
  });
141871
- if (!updatedIssues.has(issue.id)) updatedIssues.set(issue.id, issue);
142032
+ updatedIssues.set(issue.id, issue);
141872
142033
  }
141873
142034
  yield* forEach$1(toRemove, (issueId) => source.cancelIssue(issueId), { concurrency: "unbounded" });
141874
142035
  current = yield* source.issues;
@@ -142229,7 +142390,7 @@ const commandAgent = make$27("agent").pipe(withDescription("Select the CLI agent
142229
142390
 
142230
142391
  //#endregion
142231
142392
  //#region package.json
142232
- var version = "0.1.64";
142393
+ var version = "0.1.65";
142233
142394
 
142234
142395
  //#endregion
142235
142396
  //#region src/cli.ts