lalph 0.1.64 → 0.1.66

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.
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
  *
@@ -4851,6 +4851,40 @@ const as$2 = /* @__PURE__ */ dual(2, (self$1, b) => map$11(self$1, () => b));
4851
4851
  */
4852
4852
  const flatMap$3 = /* @__PURE__ */ dual(2, (self$1, f) => isNone(self$1) ? none$3() : f(self$1.value));
4853
4853
  /**
4854
+ * Flattens an `Option` of `Option` into a single `Option`.
4855
+ *
4856
+ * **Details**
4857
+ *
4858
+ * This function takes an `Option` that wraps another `Option` and flattens it
4859
+ * into a single `Option`. If the outer `Option` is `Some`, the function
4860
+ * extracts the inner `Option`. If the outer `Option` is `None`, the result
4861
+ * remains `None`.
4862
+ *
4863
+ * This is useful for simplifying nested `Option` structures that may arise
4864
+ * during functional operations.
4865
+ *
4866
+ * @example
4867
+ * ```ts
4868
+ * import { Option } from "effect"
4869
+ *
4870
+ * const nested = Option.some(Option.some("value"))
4871
+ * console.log(Option.flatten(nested))
4872
+ * // Output: { _id: 'Option', _tag: 'Some', value: 'value' }
4873
+ *
4874
+ * const nestedNone = Option.some(Option.none())
4875
+ * console.log(Option.flatten(nestedNone))
4876
+ * // Output: { _id: 'Option', _tag: 'None' }
4877
+ *
4878
+ * const outerNone = Option.none<Option.Option<string>>()
4879
+ * console.log(Option.flatten(outerNone))
4880
+ * // Output: { _id: 'Option', _tag: 'None' }
4881
+ * ```
4882
+ *
4883
+ * @category Sequencing
4884
+ * @since 2.0.0
4885
+ */
4886
+ const flatten$2 = /* @__PURE__ */ flatMap$3(identity);
4887
+ /**
4854
4888
  * Converts an `Option` into an `Array`.
4855
4889
  *
4856
4890
  * **Details**
@@ -4983,7 +5017,7 @@ const filter$5 = /* @__PURE__ */ dual(2, (self$1, predicate) => filterMap$2(self
4983
5017
  const makeEquivalence$4 = (isEquivalent) => make$50((x, y) => isNone(x) ? isNone(y) : isNone(y) ? false : isEquivalent(x.value, y.value));
4984
5018
 
4985
5019
  //#endregion
4986
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Result.js
5020
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Result.js
4987
5021
  /**
4988
5022
  * Constructs a new `Result` holding a `Success` value.
4989
5023
  *
@@ -5251,7 +5285,7 @@ const getOrThrow = /* @__PURE__ */ getOrThrowWith(identity);
5251
5285
  const succeedNone$2 = /* @__PURE__ */ succeed$6(none$4);
5252
5286
 
5253
5287
  //#endregion
5254
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Filter.js
5288
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Filter.js
5255
5289
  const FailTypeId = "~effect/data/Filter/fail";
5256
5290
  /**
5257
5291
  * @since 4.0.0
@@ -5495,7 +5529,7 @@ const toOption = (self$1) => (input) => {
5495
5529
  };
5496
5530
 
5497
5531
  //#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
5532
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/array.js
5499
5533
  /**
5500
5534
  * @since 2.0.0
5501
5535
  */
@@ -5503,7 +5537,7 @@ const toOption = (self$1) => (input) => {
5503
5537
  const isArrayNonEmpty$1 = (self$1) => self$1.length > 0;
5504
5538
 
5505
5539
  //#endregion
5506
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Tuple.js
5540
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Tuple.js
5507
5541
  /**
5508
5542
  * Creates an `Equivalence` for tuples by comparing corresponding elements using the provided `Equivalence`s.
5509
5543
  *
@@ -5541,7 +5575,7 @@ const makeEquivalence$3 = Tuple$1;
5541
5575
  const makeOrder$2 = Tuple$2;
5542
5576
 
5543
5577
  //#endregion
5544
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Iterable.js
5578
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Iterable.js
5545
5579
  /**
5546
5580
  * Return the number of elements in a `Iterable`.
5547
5581
  *
@@ -5694,7 +5728,7 @@ const constEmptyIterator = { next() {
5694
5728
  const empty$13 = () => constEmpty;
5695
5729
 
5696
5730
  //#endregion
5697
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Record.js
5731
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Record.js
5698
5732
  /**
5699
5733
  * Creates a new, empty record.
5700
5734
  *
@@ -5898,7 +5932,7 @@ const makeEquivalence$2 = (equivalence) => {
5898
5932
  };
5899
5933
 
5900
5934
  //#endregion
5901
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Array.js
5935
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Array.js
5902
5936
  /**
5903
5937
  * This module provides utility functions for working with arrays in TypeScript.
5904
5938
  *
@@ -6402,7 +6436,7 @@ const dedupeWith = /* @__PURE__ */ dual(2, (self$1, isEquivalent) => {
6402
6436
  });
6403
6437
 
6404
6438
  //#endregion
6405
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/ServiceMap.js
6439
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/ServiceMap.js
6406
6440
  const ServiceTypeId = "~effect/ServiceMap/Service";
6407
6441
  /**
6408
6442
  * @example
@@ -6880,7 +6914,7 @@ const mergeAll$1 = (...ctxs) => {
6880
6914
  const Reference = Service;
6881
6915
 
6882
6916
  //#endregion
6883
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Scheduler.js
6917
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Scheduler.js
6884
6918
  /**
6885
6919
  * @since 4.0.0
6886
6920
  * @category references
@@ -7086,7 +7120,7 @@ var MixedScheduler = class {
7086
7120
  const MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBeforeYield", { defaultValue: () => 2048 });
7087
7121
 
7088
7122
  //#endregion
7089
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Tracer.js
7123
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Tracer.js
7090
7124
  /**
7091
7125
  * @since 2.0.0
7092
7126
  * @category tags
@@ -7295,7 +7329,7 @@ const randomHexString = /* @__PURE__ */ function() {
7295
7329
  }();
7296
7330
 
7297
7331
  //#endregion
7298
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/References.js
7332
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/References.js
7299
7333
  /**
7300
7334
  * This module provides a collection of reference implementations for commonly used
7301
7335
  * Effect runtime configuration values. These references allow you to access and
@@ -7758,12 +7792,12 @@ const CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogS
7758
7792
  const MinimumLogLevel = /* @__PURE__ */ Reference("effect/References/MinimumLogLevel", { defaultValue: () => "Info" });
7759
7793
 
7760
7794
  //#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
7795
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/metric.js
7762
7796
  /** @internal */
7763
7797
  const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
7764
7798
 
7765
7799
  //#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
7800
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/tracer.js
7767
7801
  /** @internal */
7768
7802
  const addSpanStackTrace = (options) => {
7769
7803
  if (options?.captureStackTrace === false) return options;
@@ -7794,11 +7828,11 @@ const makeStackCleaner = (line) => (stack) => {
7794
7828
  const spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
7795
7829
 
7796
7830
  //#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
7831
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/version.js
7798
7832
  const version$1 = "dev";
7799
7833
 
7800
7834
  //#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
7835
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/effect.js
7802
7836
  /** @internal */
7803
7837
  var Interrupt = class extends FailureBase {
7804
7838
  fiberId;
@@ -9990,7 +10024,7 @@ function interruptChildrenPatch() {
9990
10024
  const undefined_$2 = /* @__PURE__ */ succeed$5(void 0);
9991
10025
 
9992
10026
  //#endregion
9993
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Exit.js
10027
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Exit.js
9994
10028
  ExitTypeId;
9995
10029
  /**
9996
10030
  * Tests if a value is an `Exit`.
@@ -10364,7 +10398,7 @@ const getCause = exitGetCause;
10364
10398
  const getError = exitGetError;
10365
10399
 
10366
10400
  //#endregion
10367
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Deferred.js
10401
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Deferred.js
10368
10402
  const DeferredProto = {
10369
10403
  ["~effect/Deferred"]: {
10370
10404
  _A: identity,
@@ -10584,7 +10618,7 @@ const doneUnsafe = (self$1, effect$1) => {
10584
10618
  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
10619
 
10586
10620
  //#endregion
10587
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Scope.js
10621
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Scope.js
10588
10622
  /**
10589
10623
  * The `Scope` module provides functionality for managing resource lifecycles
10590
10624
  * and cleanup operations in a functional and composable manner.
@@ -10858,7 +10892,7 @@ const closeUnsafe = scopeCloseUnsafe;
10858
10892
  const use$1 = scopeUse;
10859
10893
 
10860
10894
  //#endregion
10861
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Layer.js
10895
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Layer.js
10862
10896
  const TypeId$52 = "~effect/Layer";
10863
10897
  const MemoMapTypeId = "~effect/Layer/MemoMap";
10864
10898
  /**
@@ -11662,7 +11696,7 @@ const flatMap$1 = /* @__PURE__ */ dual(2, (self$1, f) => fromBuild((memoMap, sco
11662
11696
  const fresh = (self$1) => fromBuildUnsafe((_, scope$2) => self$1.build(makeMemoMapUnsafe(), scope$2));
11663
11697
 
11664
11698
  //#endregion
11665
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/ExecutionPlan.js
11699
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/ExecutionPlan.js
11666
11700
  /**
11667
11701
  * @since 3.16.0
11668
11702
  * @category Type IDs
@@ -11696,7 +11730,7 @@ const CurrentMetadata$1 = /* @__PURE__ */ Reference("effect/ExecutionPlan/Curren
11696
11730
  }) });
11697
11731
 
11698
11732
  //#endregion
11699
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Cause.js
11733
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Cause.js
11700
11734
  /**
11701
11735
  * @since 2.0.0
11702
11736
  */
@@ -12263,7 +12297,7 @@ const failureAnnotations = failureAnnotations$1;
12263
12297
  const annotations = causeAnnotations;
12264
12298
 
12265
12299
  //#endregion
12266
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Clock.js
12300
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Clock.js
12267
12301
  /**
12268
12302
  * A reference to the current Clock service in the environment.
12269
12303
  *
@@ -12339,7 +12373,7 @@ const currentTimeMillis = currentTimeMillis$1;
12339
12373
  const currentTimeNanos = currentTimeNanos$1;
12340
12374
 
12341
12375
  //#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
12376
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/dateTime.js
12343
12377
  /** @internal */
12344
12378
  const TypeId$49 = "~effect/time/DateTime";
12345
12379
  /** @internal */
@@ -12950,7 +12984,7 @@ const formatIsoOffset$1 = (self$1) => {
12950
12984
  const formatIsoZoned$1 = (self$1) => self$1.zone._tag === "Offset" ? formatIsoOffset$1(self$1) : `${formatIsoOffset$1(self$1)}[${self$1.zone.id}]`;
12951
12985
 
12952
12986
  //#endregion
12953
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/String.js
12987
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/String.js
12954
12988
  /**
12955
12989
  * Reference to the global `String` constructor.
12956
12990
  *
@@ -13024,7 +13058,7 @@ const trim = (self$1) => self$1.trim();
13024
13058
  const isNonEmpty = (self$1) => self$1.length > 0;
13025
13059
 
13026
13060
  //#endregion
13027
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Pull.js
13061
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Pull.js
13028
13062
  /**
13029
13063
  * @since 4.0.0
13030
13064
  */
@@ -13106,7 +13140,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self$1, options) => matchCauseEff
13106
13140
  }));
13107
13141
 
13108
13142
  //#endregion
13109
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Schedule.js
13143
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Schedule.js
13110
13144
  /**
13111
13145
  * This module provides utilities for creating and composing schedules for retrying operations,
13112
13146
  * repeating effects, and implementing various timing strategies.
@@ -13486,13 +13520,13 @@ const while_ = /* @__PURE__ */ dual(2, (self$1, predicate) => fromStep(map$8(toS
13486
13520
  const forever$1 = /* @__PURE__ */ spaced(zero);
13487
13521
 
13488
13522
  //#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
13523
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/layer.js
13490
13524
  const provideLayer = (self$1, layer$16) => scopedWith$1((scope$2) => flatMap$2(buildWithScope(layer$16, scope$2), (context) => provideServices$1(self$1, context)));
13491
13525
  /** @internal */
13492
13526
  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
13527
 
13494
13528
  //#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
13529
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/schedule.js
13496
13530
  /** @internal */
13497
13531
  const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self$1, schedule, orElse$1) => flatMap$2(toStepWithMetadata(schedule), (step) => {
13498
13532
  let meta = CurrentMetadata.defaultValue();
@@ -13514,9 +13548,13 @@ const retryOrElse$1 = /* @__PURE__ */ dual(3, (self$1, policy, orElse$1) => flat
13514
13548
  return catchDone(loop, (out) => internalCall(() => orElse$1(lastError, out)));
13515
13549
  }));
13516
13550
  /** @internal */
13517
- const repeat$1 = /* @__PURE__ */ dual(2, (self$1, options) => repeatOrElse$1(self$1, isSchedule(options) ? options : buildFromOptions(options), fail$7));
13551
+ const repeat$1 = /* @__PURE__ */ dual(2, (self$1, options) => {
13552
+ return repeatOrElse$1(self$1, typeof options === "function" ? options(identity) : isSchedule(options) ? options : buildFromOptions(options), fail$7);
13553
+ });
13518
13554
  /** @internal */
13519
- const retry$2 = /* @__PURE__ */ dual(2, (self$1, options) => retryOrElse$1(self$1, isSchedule(options) ? options : buildFromOptions(options), fail$7));
13555
+ const retry$2 = /* @__PURE__ */ dual(2, (self$1, options) => {
13556
+ return retryOrElse$1(self$1, typeof options === "function" ? options(identity) : isSchedule(options) ? options : buildFromOptions(options), fail$7);
13557
+ });
13520
13558
  /** @internal */
13521
13559
  const scheduleFrom$1 = /* @__PURE__ */ dual(3, (self$1, initial, schedule) => flatMap$2(toStepWithMetadata(schedule), (step) => {
13522
13560
  let meta = CurrentMetadata.defaultValue();
@@ -13547,7 +13585,7 @@ const buildFromOptions = (options) => {
13547
13585
  };
13548
13586
 
13549
13587
  //#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
13588
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/executionPlan.js
13551
13589
  /** @internal */
13552
13590
  const withExecutionPlan$1 = /* @__PURE__ */ dual(2, (self$1, plan$1) => suspend$4(() => {
13553
13591
  let i = 0;
@@ -13606,7 +13644,7 @@ const scheduleFromStep = (step, first) => {
13606
13644
  const scheduleOnce = /* @__PURE__ */ recurs(1);
13607
13645
 
13608
13646
  //#endregion
13609
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Request.js
13647
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Request.js
13610
13648
  const TypeId$47 = "~effect/Request";
13611
13649
  const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
13612
13650
  _E: (_) => _,
@@ -13627,7 +13665,7 @@ const RequestPrototype = {
13627
13665
  const makeEntry = (options) => options;
13628
13666
 
13629
13667
  //#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
13668
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/request.js
13631
13669
  /** @internal */
13632
13670
  const request$2 = /* @__PURE__ */ dual(2, (self$1, resolver) => {
13633
13671
  const withResolver = (resolver$1) => callback$2((resume) => {
@@ -13727,7 +13765,7 @@ function runBatch(batch) {
13727
13765
  }
13728
13766
 
13729
13767
  //#endregion
13730
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Effect.js
13768
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Effect.js
13731
13769
  const TypeId$46 = EffectTypeId;
13732
13770
  /**
13733
13771
  * Tests if a value is an `Effect`.
@@ -19864,7 +19902,7 @@ const catchEager = catchEager$1;
19864
19902
  const fnUntracedEager = fnUntracedEager$1;
19865
19903
 
19866
19904
  //#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
19905
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/record.js
19868
19906
  /**
19869
19907
  * @since 4.0.0
19870
19908
  */
@@ -19881,7 +19919,7 @@ function set$5(self$1, key, value) {
19881
19919
  }
19882
19920
 
19883
19921
  //#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
19922
+ //#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
19923
  /** @internal */
19886
19924
  function resolve$2(ast) {
19887
19925
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
@@ -19902,7 +19940,7 @@ const getExpected = /* @__PURE__ */ memoize((ast) => {
19902
19940
  });
19903
19941
 
19904
19942
  //#endregion
19905
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/RegExp.js
19943
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/RegExp.js
19906
19944
  /**
19907
19945
  * This module provides utility functions for working with RegExp in TypeScript.
19908
19946
  *
@@ -19957,7 +19995,7 @@ const isRegExp = isRegExp$1;
19957
19995
  const escape = (string$8) => string$8.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
19958
19996
 
19959
19997
  //#endregion
19960
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/DateTime.js
19998
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/DateTime.js
19961
19999
  TypeId$49;
19962
20000
  TimeZoneTypeId;
19963
20001
  /**
@@ -21571,7 +21609,7 @@ const formatIsoZoned = formatIsoZoned$1;
21571
21609
  const layerCurrentZoneNamed = /* @__PURE__ */ effect(CurrentTimeZone)(zoneMakeNamedEffect$1);
21572
21610
 
21573
21611
  //#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
21612
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/encoding/EncodingError.js
21575
21613
  /**
21576
21614
  * @since 4.0.0
21577
21615
  */
@@ -21588,7 +21626,7 @@ var EncodingError = class extends TaggedError("EncodingError") {
21588
21626
  };
21589
21627
 
21590
21628
  //#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
21629
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/encoding/Base64.js
21592
21630
  /**
21593
21631
  * This module provides encoding & decoding functionality for:
21594
21632
  *
@@ -21661,14 +21699,14 @@ const decode$1 = (str) => {
21661
21699
  const stripped = stripCrlf(str);
21662
21700
  const length = stripped.length;
21663
21701
  if (length % 4 !== 0) return fail$9(new EncodingError({
21664
- reason: "Decode",
21702
+ kind: "Decode",
21665
21703
  module: "Base64",
21666
21704
  input: stripped,
21667
21705
  message: `Length must be a multiple of 4, but is ${length}`
21668
21706
  }));
21669
21707
  const index = stripped.indexOf("=");
21670
21708
  if (index !== -1 && (index < length - 2 || index === length - 2 && stripped[length - 1] !== "=")) return fail$9(new EncodingError({
21671
- reason: "Decode",
21709
+ kind: "Decode",
21672
21710
  module: "Base64",
21673
21711
  input: stripped,
21674
21712
  message: `Found a '=' character, but it is not at the end`
@@ -21685,7 +21723,7 @@ const decode$1 = (str) => {
21685
21723
  return succeed$6(result$2);
21686
21724
  } catch (e) {
21687
21725
  return fail$9(new EncodingError({
21688
- reason: "Decode",
21726
+ kind: "Decode",
21689
21727
  module: "Base64",
21690
21728
  input: stripped,
21691
21729
  message: e instanceof Error ? e.message : "Invalid input"
@@ -21893,7 +21931,7 @@ const base64codes = [
21893
21931
  ];
21894
21932
 
21895
21933
  //#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
21934
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/encoding/Base64Url.js
21897
21935
  /**
21898
21936
  * Encodes the given value into a base64 (URL) `string`.
21899
21937
  *
@@ -21916,12 +21954,12 @@ const encodeUint8Array = (data) => encode$1(data).replace(/=/g, "").replace(/\+/
21916
21954
  const encoder$1 = /* @__PURE__ */ new TextEncoder();
21917
21955
 
21918
21956
  //#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
21957
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/redacted.js
21920
21958
  /** @internal */
21921
21959
  const redactedRegistry = /* @__PURE__ */ new WeakMap();
21922
21960
 
21923
21961
  //#endregion
21924
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Redacted.js
21962
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Redacted.js
21925
21963
  /**
21926
21964
  * The Redacted module provides functionality for handling sensitive information
21927
21965
  * securely within your application. By using the `Redacted` data type, you can
@@ -21986,7 +22024,7 @@ const Proto$16 = {
21986
22024
  };
21987
22025
 
21988
22026
  //#endregion
21989
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaIssue.js
22027
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaIssue.js
21990
22028
  const TypeId$44 = "~effect/SchemaIssue/Issue";
21991
22029
  /**
21992
22030
  * @since 4.0.0
@@ -22392,7 +22430,7 @@ function formatOption(actual) {
22392
22430
  }
22393
22431
 
22394
22432
  //#endregion
22395
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaGetter.js
22433
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaGetter.js
22396
22434
  /**
22397
22435
  * @since 4.0.0
22398
22436
  */
@@ -22568,7 +22606,7 @@ function collectBracketPathEntries(isLeaf) {
22568
22606
  }
22569
22607
 
22570
22608
  //#endregion
22571
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaTransformation.js
22609
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaTransformation.js
22572
22610
  /**
22573
22611
  * @since 4.0.0
22574
22612
  */
@@ -22680,7 +22718,7 @@ const uint8ArrayFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE
22680
22718
  const fromJsonString$1 = /* @__PURE__ */ new Transformation(/* @__PURE__ */ parseJson$1(), /* @__PURE__ */ stringifyJson());
22681
22719
 
22682
22720
  //#endregion
22683
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaAST.js
22721
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaAST.js
22684
22722
  /**
22685
22723
  * @since 4.0.0
22686
22724
  */
@@ -24126,7 +24164,7 @@ const resolveTitle = resolveTitle$1;
24126
24164
  const resolveDescription = resolveDescription$1;
24127
24165
 
24128
24166
  //#endregion
24129
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Brand.js
24167
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Brand.js
24130
24168
  /**
24131
24169
  * This function returns a `Constructor` that **does not apply any runtime
24132
24170
  * checks**, it just returns the provided value. It can be used to create
@@ -24148,7 +24186,7 @@ function nominal() {
24148
24186
  }
24149
24187
 
24150
24188
  //#endregion
24151
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/PlatformError.js
24189
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/PlatformError.js
24152
24190
  /**
24153
24191
  * @since 4.0.0
24154
24192
  */
@@ -24157,15 +24195,7 @@ const TypeId$41 = "~effect/platform/PlatformError";
24157
24195
  * @since 4.0.0
24158
24196
  * @category Models
24159
24197
  */
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";
24198
+ var BadArgument = class extends TaggedError("BadArgument") {
24169
24199
  /**
24170
24200
  * @since 4.0.0
24171
24201
  */
@@ -24177,21 +24207,47 @@ var BadArgument = class extends TaggedError("PlatformError") {
24177
24207
  * @since 4.0.0
24178
24208
  * @category models
24179
24209
  */
24180
- var SystemError = class extends TaggedError("PlatformError") {
24210
+ var SystemError = class extends TaggedError("SystemError") {
24181
24211
  /**
24182
24212
  * @since 4.0.0
24183
24213
  */
24184
- [TypeId$41] = TypeId$41;
24214
+ get message() {
24215
+ return `${this.kind}: ${this.module}.${this.method}${this.pathOrDescriptor !== void 0 ? ` (${this.pathOrDescriptor})` : ""}${this.description ? `: ${this.description}` : ""}`;
24216
+ }
24217
+ };
24218
+ /**
24219
+ * @since 4.0.0
24220
+ * @category Models
24221
+ */
24222
+ var PlatformError = class extends TaggedError("PlatformError") {
24223
+ constructor(reason) {
24224
+ if ("cause" in reason) super({
24225
+ reason,
24226
+ cause: reason.cause
24227
+ });
24228
+ else super({ reason });
24229
+ }
24185
24230
  /**
24186
24231
  * @since 4.0.0
24187
24232
  */
24233
+ [TypeId$41] = TypeId$41;
24188
24234
  get message() {
24189
- return `${this.reason}: ${this.module}.${this.method}${this.pathOrDescriptor !== void 0 ? ` (${this.pathOrDescriptor})` : ""}${this.description ? `: ${this.description}` : ""}`;
24235
+ return this.reason.message;
24190
24236
  }
24191
24237
  };
24238
+ /**
24239
+ * @since 4.0.0
24240
+ * @category constructors
24241
+ */
24242
+ const systemError = (options) => new PlatformError(new SystemError(options));
24243
+ /**
24244
+ * @since 4.0.0
24245
+ * @category constructors
24246
+ */
24247
+ const badArgument = (options) => new PlatformError(new BadArgument(options));
24192
24248
 
24193
24249
  //#endregion
24194
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Fiber.js
24250
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Fiber.js
24195
24251
  `${version$1}`;
24196
24252
  const await_ = fiberAwait;
24197
24253
  /**
@@ -24399,7 +24455,7 @@ const getCurrent = getCurrentFiber;
24399
24455
  const runIn = fiberRunIn;
24400
24456
 
24401
24457
  //#endregion
24402
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/MutableList.js
24458
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/MutableList.js
24403
24459
  /**
24404
24460
  * @fileoverview
24405
24461
  * MutableList is an efficient, mutable linked list implementation optimized for high-throughput
@@ -24801,7 +24857,7 @@ const take$1 = (self$1) => {
24801
24857
  };
24802
24858
 
24803
24859
  //#endregion
24804
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/MutableRef.js
24860
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/MutableRef.js
24805
24861
  const TypeId$40 = "~effect/MutableRef";
24806
24862
  const MutableRefProto = {
24807
24863
  [TypeId$40]: TypeId$40,
@@ -24844,7 +24900,7 @@ const make$39 = (value) => {
24844
24900
  };
24845
24901
 
24846
24902
  //#endregion
24847
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Queue.js
24903
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Queue.js
24848
24904
  /**
24849
24905
  * This module provides utilities for working with asynchronous queues that support various backpressure strategies.
24850
24906
  *
@@ -25625,7 +25681,7 @@ const finalize = (self$1, exit$2) => {
25625
25681
  };
25626
25682
 
25627
25683
  //#endregion
25628
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Channel.js
25684
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Channel.js
25629
25685
  /**
25630
25686
  * The `Channel` module provides a powerful abstraction for bi-directional communication
25631
25687
  * and streaming operations. A `Channel` is a nexus of I/O operations that supports both
@@ -26564,7 +26620,7 @@ const runFold = /* @__PURE__ */ dual(3, (self$1, initial, f) => suspend$3(() =>
26564
26620
  const toPullScoped = (self$1, scope$2) => toTransform(self$1)(done(), scope$2);
26565
26621
 
26566
26622
  //#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
26623
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/stream.js
26568
26624
  const TypeId$37 = "~effect/Stream";
26569
26625
  const streamVariance = {
26570
26626
  _R: identity,
@@ -26585,7 +26641,7 @@ const fromChannel$2 = (channel) => {
26585
26641
  };
26586
26642
 
26587
26643
  //#endregion
26588
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Sink.js
26644
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Sink.js
26589
26645
  const TypeId$36 = "~effect/Sink";
26590
26646
  const endVoid = /* @__PURE__ */ succeed$1([void 0]);
26591
26647
  const sinkVariance = {
@@ -26791,7 +26847,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap(f)
26791
26847
  const unwrap$1 = (effect$1) => fromChannel$1(unwrap$2(map$5(effect$1, toChannel$1)));
26792
26848
 
26793
26849
  //#endregion
26794
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/MutableHashMap.js
26850
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/MutableHashMap.js
26795
26851
  const TypeId$35 = "~effect/collections/MutableHashMap";
26796
26852
  const MutableHashMapProto = {
26797
26853
  [TypeId$35]: TypeId$35,
@@ -27129,7 +27185,7 @@ const clear$1 = (self$1) => {
27129
27185
  const size = (self$1) => self$1.backing.size;
27130
27186
 
27131
27187
  //#endregion
27132
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/RcMap.js
27188
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/RcMap.js
27133
27189
  /**
27134
27190
  * @since 3.5.0
27135
27191
  */
@@ -27329,7 +27385,7 @@ const invalidate$2 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function
27329
27385
  }, uninterruptible));
27330
27386
 
27331
27387
  //#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
27388
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/internal/rcRef.js
27333
27389
  const TypeId$33 = "~effect/RcRef";
27334
27390
  const stateEmpty = { _tag: "Empty" };
27335
27391
  const stateClosed = { _tag: "Closed" };
@@ -27428,7 +27484,7 @@ const invalidate$1 = (self_) => {
27428
27484
  };
27429
27485
 
27430
27486
  //#endregion
27431
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/RcRef.js
27487
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/RcRef.js
27432
27488
  /**
27433
27489
  * Create an `RcRef` from an acquire `Effect`.
27434
27490
  *
@@ -27503,7 +27559,7 @@ const get$3 = get$4;
27503
27559
  const invalidate = invalidate$1;
27504
27560
 
27505
27561
  //#endregion
27506
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Stream.js
27562
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Stream.js
27507
27563
  /**
27508
27564
  * @since 2.0.0
27509
27565
  */
@@ -28253,7 +28309,7 @@ const toReadableStreamWith = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]
28253
28309
  const toReadableStreamEffect = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]), (self$1, options) => map$5(services(), (context) => toReadableStreamWith(self$1, context, options)));
28254
28310
 
28255
28311
  //#endregion
28256
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/FileSystem.js
28312
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/FileSystem.js
28257
28313
  /**
28258
28314
  * This module provides a comprehensive file system abstraction that supports both synchronous
28259
28315
  * and asynchronous file operations through Effect. It includes utilities for file I/O, directory
@@ -28381,10 +28437,10 @@ const FileSystem = /* @__PURE__ */ Service("effect/platform/FileSystem");
28381
28437
  const make$33 = (impl) => FileSystem.of({
28382
28438
  ...impl,
28383
28439
  [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))),
28440
+ 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
28441
  readFileString: (path$2, encoding) => flatMap(impl.readFile(path$2), (_) => try_({
28386
28442
  try: () => new TextDecoder(encoding).decode(_),
28387
- catch: (cause) => new BadArgument({
28443
+ catch: (cause) => badArgument({
28388
28444
  module: "FileSystem",
28389
28445
  method: "readFileString",
28390
28446
  description: "invalid encoding",
@@ -28413,7 +28469,7 @@ const make$33 = (impl) => FileSystem.of({
28413
28469
  }), map$5((file) => forEach((_) => file.writeAll(_))), unwrap$1),
28414
28470
  writeFileString: (path$2, data, options) => flatMap(try_({
28415
28471
  try: () => new TextEncoder().encode(data),
28416
- catch: (cause) => new BadArgument({
28472
+ catch: (cause) => badArgument({
28417
28473
  module: "FileSystem",
28418
28474
  method: "writeFileString",
28419
28475
  description: "could not encode string",
@@ -28476,7 +28532,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
28476
28532
  var WatchBackend = class extends Service()("effect/platform/FileSystem/WatchBackend") {};
28477
28533
 
28478
28534
  //#endregion
28479
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Path.js
28535
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Path.js
28480
28536
  /**
28481
28537
  * @since 4.0.0
28482
28538
  */
@@ -28901,7 +28957,7 @@ const posixImpl = /* @__PURE__ */ Path$1.of({
28901
28957
  });
28902
28958
 
28903
28959
  //#endregion
28904
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/ConfigProvider.js
28960
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/ConfigProvider.js
28905
28961
  /**
28906
28962
  * @category Constructors
28907
28963
  * @since 4.0.0
@@ -29012,7 +29068,7 @@ function trieNodeAt(root, path$2) {
29012
29068
  }
29013
29069
 
29014
29070
  //#endregion
29015
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/LogLevel.js
29071
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/LogLevel.js
29016
29072
  /**
29017
29073
  * @since 2.0.0
29018
29074
  *
@@ -29181,7 +29237,7 @@ const Order = LogLevelOrder;
29181
29237
  const isGreaterThan$1 = isLogLevelGreaterThan;
29182
29238
 
29183
29239
  //#endregion
29184
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Struct.js
29240
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Struct.js
29185
29241
  /**
29186
29242
  * Given a struct of `Equivalence`s returns a new `Equivalence` that compares values of a struct
29187
29243
  * by applying each `Equivalence` to the corresponding property of the struct.
@@ -29256,7 +29312,7 @@ const makeOrder = Struct$2;
29256
29312
  const lambda = (f) => f;
29257
29313
 
29258
29314
  //#endregion
29259
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/SchemaParser.js
29315
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/SchemaParser.js
29260
29316
  /**
29261
29317
  * @since 4.0.0
29262
29318
  */
@@ -29494,7 +29550,7 @@ const recur$1 = /* @__PURE__ */ memoize((ast) => {
29494
29550
  });
29495
29551
 
29496
29552
  //#endregion
29497
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/JsonPointer.js
29553
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/JsonPointer.js
29498
29554
  /**
29499
29555
  * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901.
29500
29556
  *
@@ -29588,7 +29644,7 @@ function escapeToken(token) {
29588
29644
  }
29589
29645
 
29590
29646
  //#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
29647
+ //#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
29648
  /** @internal */
29593
29649
  const TypeId$29 = "~effect/Schema/Schema";
29594
29650
  const SchemaProto = {
@@ -29617,7 +29673,7 @@ function make$31(ast, options) {
29617
29673
  }
29618
29674
 
29619
29675
  //#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
29676
+ //#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
29677
  /** @internal */
29622
29678
  const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
29623
29679
  const out = toCodecJsonBase(ast);
@@ -29687,7 +29743,7 @@ function makeReorder(getPriority) {
29687
29743
  const unknownToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough$1(), /* @__PURE__ */ transform$2(() => null)));
29688
29744
 
29689
29745
  //#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
29746
+ //#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
29747
  /** @internal */
29692
29748
  function fromAST(ast) {
29693
29749
  const { references, representations: schemas } = fromASTs([ast]);
@@ -29845,10 +29901,7 @@ function fromASTs(asts) {
29845
29901
  _tag: last$1._tag,
29846
29902
  checks: fromASTChecks(last$1.checks),
29847
29903
  ...annotations$1,
29848
- ...typeof contentMediaType === "string" && isAST(contentSchema) ? {
29849
- contentMediaType,
29850
- contentSchema: recur$2(contentSchema)
29851
- } : void 0
29904
+ ...typeof contentMediaType === "string" && isAST(contentSchema) ? { contentSchema: recur$2(contentSchema) } : void 0
29852
29905
  };
29853
29906
  }
29854
29907
  case "Number":
@@ -30162,6 +30215,9 @@ function toJsonSchemaMultiDocument(multiDocument, options) {
30162
30215
  if (Array.isArray(annotations$1.examples)) out.examples = annotations$1.examples;
30163
30216
  if (typeof annotations$1.readOnly === "boolean") out.readOnly = annotations$1.readOnly;
30164
30217
  if (typeof annotations$1.writeOnly === "boolean") out.writeOnly = annotations$1.writeOnly;
30218
+ if (typeof annotations$1.format === "string") out.format = annotations$1.format;
30219
+ if (typeof annotations$1.contentEncoding === "string") out.contentEncoding = annotations$1.contentEncoding;
30220
+ if (typeof annotations$1.contentMediaType === "string") out.contentMediaType = annotations$1.contentMediaType;
30165
30221
  if (Object.keys(out).length > 0) return out;
30166
30222
  }
30167
30223
  }
@@ -30299,7 +30355,7 @@ function getPartPattern(part) {
30299
30355
  }
30300
30356
 
30301
30357
  //#endregion
30302
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Schema.js
30358
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Schema.js
30303
30359
  const TypeId$28 = TypeId$29;
30304
30360
  /**
30305
30361
  * An API for creating schemas for parametric types.
@@ -31969,6 +32025,11 @@ const NumberFromString = /* @__PURE__ */ String$1.annotate({ expected: "a string
31969
32025
  * @since 4.0.0
31970
32026
  */
31971
32027
  const FiniteFromString = /* @__PURE__ */ String$1.annotate({ expected: "a string that will be decoded as a finite number" }).pipe(/* @__PURE__ */ decodeTo(Finite, numberFromString));
32028
+ const Base64String = /* @__PURE__ */ String$1.annotate({
32029
+ expected: "a base64 encoded string that will be decoded as Uint8Array",
32030
+ format: "byte",
32031
+ contentEncoding: "base64"
32032
+ });
31972
32033
  /**
31973
32034
  * A schema for JavaScript `Uint8Array` objects.
31974
32035
  *
@@ -31986,7 +32047,7 @@ const Uint8Array$2 = /* @__PURE__ */ instanceOf(globalThis.Uint8Array, {
31986
32047
  Type: `globalThis.Uint8Array`
31987
32048
  },
31988
32049
  expected: "Uint8Array",
31989
- toCodecJson: () => link$1()(String$1.annotate({ expected: "a base64 encoded string that will be decoded as Uint8Array" }), uint8ArrayFromBase64String),
32050
+ toCodecJson: () => link$1()(Base64String, uint8ArrayFromBase64String),
31990
32051
  toArbitrary: () => (fc) => fc.uint8Array()
31991
32052
  });
31992
32053
  /**
@@ -32002,7 +32063,7 @@ const Uint8Array$2 = /* @__PURE__ */ instanceOf(globalThis.Uint8Array, {
32002
32063
  * @category Uint8Array
32003
32064
  * @since 4.0.0
32004
32065
  */
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));
32066
+ const Uint8ArrayFromBase64 = /* @__PURE__ */ Base64String.pipe(/* @__PURE__ */ decodeTo(Uint8Array$2, uint8ArrayFromBase64String));
32006
32067
  /**
32007
32068
  * A schema for `DateTime.Utc` values.
32008
32069
  *
@@ -32306,7 +32367,7 @@ function onSerializerEnsureArray(ast) {
32306
32367
  }
32307
32368
 
32308
32369
  //#endregion
32309
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Config.js
32370
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Config.js
32310
32371
  const TypeId$27 = "~effect/Config";
32311
32372
  /**
32312
32373
  * @since 4.0.0
@@ -32596,7 +32657,7 @@ function int(name) {
32596
32657
  }
32597
32658
 
32598
32659
  //#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
32660
+ //#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
32661
  /**
32601
32662
  * @since 4.0.0
32602
32663
  */
@@ -43602,7 +43663,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
43602
43663
  }));
43603
43664
 
43604
43665
  //#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
43666
+ //#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
43667
  var import_ini = /* @__PURE__ */ __toESM(require_ini(), 1);
43607
43668
  var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
43608
43669
  var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
@@ -43895,7 +43956,7 @@ const getTypeName = (primitive) => {
43895
43956
  };
43896
43957
 
43897
43958
  //#endregion
43898
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Terminal.js
43959
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Terminal.js
43899
43960
  const TypeId$25 = "~effect/platform/Terminal";
43900
43961
  const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
43901
43962
  /**
@@ -43928,7 +43989,7 @@ const make$28 = (impl) => Terminal.of({
43928
43989
  });
43929
43990
 
43930
43991
  //#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
43992
+ //#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
43993
  const ESC = "\x1B[";
43933
43994
  const BEL = "\x07";
43934
43995
  const SEP = ";";
@@ -44019,7 +44080,7 @@ const eraseLines = (rows) => {
44019
44080
  };
44020
44081
 
44021
44082
  //#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
44083
+ //#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
44084
  /**
44024
44085
  * @since 4.0.0
44025
44086
  */
@@ -44637,7 +44698,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
44637
44698
  };
44638
44699
 
44639
44700
  //#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
44701
+ //#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
44702
  /**
44642
44703
  * @internal
44643
44704
  *
@@ -45353,7 +45414,7 @@ const getParamMetadata = (param) => {
45353
45414
  };
45354
45415
 
45355
45416
  //#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
45417
+ //#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
45418
  /**
45358
45419
  * Service reference for the CLI output formatter. Provides a default implementation
45359
45420
  * that can be overridden for custom formatting or testing.
@@ -45555,7 +45616,7 @@ const formatHelpDocImpl = (doc, colors$1) => {
45555
45616
  };
45556
45617
 
45557
45618
  //#endregion
45558
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Console.js
45619
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Console.js
45559
45620
  /**
45560
45621
  * A reference to the current console service in the Effect system.
45561
45622
  *
@@ -45648,7 +45709,7 @@ const log = (...args$1) => consoleWith((console$1) => sync$1(() => {
45648
45709
  }));
45649
45710
 
45650
45711
  //#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
45712
+ //#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
45713
  const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
45653
45714
  /**
45654
45715
  * Parses a Command.Config into a ConfigInternal.
@@ -45718,7 +45779,7 @@ const reconstructTree = (tree, results) => {
45718
45779
  };
45719
45780
 
45720
45781
  //#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
45782
+ //#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
45783
  /**
45723
45784
  * Command Implementation
45724
45785
  * ======================
@@ -45871,7 +45932,7 @@ const getHelpForCommandPath = (command, commandPath) => {
45871
45932
  };
45872
45933
 
45873
45934
  //#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
45935
+ //#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
45936
  /**
45876
45937
  * Dynamic Bash completion template.
45877
45938
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -45928,7 +45989,7 @@ complete -F _${executableName}_dynamic_completions ${executableName}
45928
45989
  };
45929
45990
 
45930
45991
  //#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
45992
+ //#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
45993
  /**
45933
45994
  * Dynamic Fish completion template.
45934
45995
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -45988,7 +46049,7 @@ complete -c ${executableName} -f -a '(__${executableName}_complete)'
45988
46049
  };
45989
46050
 
45990
46051
  //#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
46052
+ //#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
46053
  /**
45993
46054
  * Dynamic Zsh completion template.
45994
46055
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -46110,7 +46171,7 @@ fi
46110
46171
  };
46111
46172
 
46112
46173
  //#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
46174
+ //#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
46175
  /**
46115
46176
  * Core dynamic completion functions.
46116
46177
  */
@@ -46140,7 +46201,7 @@ const isCompletionRequest = (args$1) => {
46140
46201
  };
46141
46202
 
46142
46203
  //#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
46204
+ //#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
46205
  /** @internal */
46145
46206
  const getSingles = (flags) => flags.flatMap(extractSingleParams).filter((s) => s.kind === "flag").map((s) => {
46146
46207
  const description = s.description;
@@ -46157,12 +46218,12 @@ const getSingles = (flags) => flags.flatMap(extractSingleParams).filter((s) => s
46157
46218
  });
46158
46219
 
46159
46220
  //#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
46221
+ //#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
46222
  /** @internal */
46162
46223
  const optionRequiresValue = (s) => s.primitiveTag !== "Boolean";
46163
46224
 
46164
46225
  //#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
46226
+ //#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
46227
  /**
46167
46228
  * Runtime completion handler for dynamic completion.
46168
46229
  * This processes completion requests from the shell and returns appropriate suggestions.
@@ -46334,7 +46395,7 @@ const handleCompletionRequest = (rootCmd) => {
46334
46395
  };
46335
46396
 
46336
46397
  //#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
46398
+ //#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
46399
  /** @internal */
46339
46400
  function lex(argv) {
46340
46401
  const endIndex = argv.indexOf("--");
@@ -46386,7 +46447,7 @@ const lexTokens = (args$1) => {
46386
46447
  };
46387
46448
 
46388
46449
  //#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
46450
+ //#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
46451
  /**
46391
46452
  * Simple Levenshtein distance implementation (small N, no perf worries)
46392
46453
  */
@@ -46415,7 +46476,7 @@ const suggest = (input, candidates) => {
46415
46476
  };
46416
46477
 
46417
46478
  //#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
46479
+ //#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
46480
  /**
46420
46481
  * Creates a string flag that accepts text input.
46421
46482
  *
@@ -46660,7 +46721,7 @@ const withFallbackConfig = /* @__PURE__ */ dual(2, (self$1, config) => withFallb
46660
46721
  const map = /* @__PURE__ */ dual(2, (self$1, f) => map$1(self$1, f));
46661
46722
 
46662
46723
  //#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
46724
+ //#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
46725
  /**
46665
46726
  * Built-in options that are automatically available for CLI commands.
46666
46727
  * @since 4.0.0
@@ -46714,7 +46775,7 @@ const completionsFlag = /* @__PURE__ */ choice("completions", [
46714
46775
  ]).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
46776
 
46716
46777
  //#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
46778
+ //#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
46779
  /**
46719
46780
  * Parsing Pipeline for CLI Commands
46720
46781
  * ==================================
@@ -47025,7 +47086,7 @@ const scanCommandLevel = (tokens, context) => {
47025
47086
  };
47026
47087
 
47027
47088
  //#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
47089
+ //#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
47090
  /**
47030
47091
  * @since 4.0.0
47031
47092
  */
@@ -47245,7 +47306,7 @@ const mapHandler = (self$1, f) => {
47245
47306
  * : FileSystem.layerNoop({
47246
47307
  * access: () =>
47247
47308
  * Effect.fail(
47248
- * new PlatformError.BadArgument({
47309
+ * PlatformError.badArgument({
47249
47310
  * module: "FileSystem",
47250
47311
  * method: "access"
47251
47312
  * })
@@ -47377,7 +47438,7 @@ const runWith = (command, config) => {
47377
47438
  };
47378
47439
 
47379
47440
  //#endregion
47380
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Cache.js
47441
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Cache.js
47381
47442
  /**
47382
47443
  * @since 4.0.0
47383
47444
  */
@@ -47748,7 +47809,7 @@ const set$3 = /* @__PURE__ */ dual(3, (self$1, key, value) => withFiber$1((fiber
47748
47809
  }));
47749
47810
 
47750
47811
  //#endregion
47751
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/FiberHandle.js
47812
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/FiberHandle.js
47752
47813
  /**
47753
47814
  * @since 2.0.0
47754
47815
  */
@@ -47944,7 +48005,7 @@ const runImpl$1 = (self$1, effect$1, options) => withFiber((parent) => {
47944
48005
  });
47945
48006
 
47946
48007
  //#endregion
47947
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/FiberSet.js
48008
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/FiberSet.js
47948
48009
  /**
47949
48010
  * @since 2.0.0
47950
48011
  */
@@ -48197,7 +48258,7 @@ const awaitEmpty = (self$1) => whileLoop({
48197
48258
  });
48198
48259
 
48199
48260
  //#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
48261
+ //#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
48262
  /**
48202
48263
  * @since 4.0.0
48203
48264
  */
@@ -48262,13 +48323,13 @@ const layerFileSystem = (directory$2) => effect(KeyValueStore)(gen(function* ()
48262
48323
  const keyPath = (key) => path$2.join(directory$2, encodeURIComponent(key));
48263
48324
  if (!(yield* fs.exists(directory$2))) yield* fs.makeDirectory(directory$2, { recursive: true });
48264
48325
  return make$23({
48265
- get: (key) => catchTag(fs.readFileString(keyPath(key)), "PlatformError", (cause) => cause.reason === "NotFound" ? undefined_$1 : fail$4(new KeyValueStoreError({
48326
+ get: (key) => catchTag(fs.readFileString(keyPath(key)), "PlatformError", (cause) => cause.reason._tag === "SystemError" && cause.reason.kind === "NotFound" ? undefined_$1 : fail$4(new KeyValueStoreError({
48266
48327
  method: "get",
48267
48328
  key,
48268
48329
  message: `Unable to get item with key ${key}`,
48269
48330
  cause
48270
48331
  }))),
48271
- getUint8Array: (key) => catchTag(fs.readFile(keyPath(key)), "PlatformError", (cause) => cause.reason === "NotFound" ? undefined_$1 : fail$4(new KeyValueStoreError({
48332
+ getUint8Array: (key) => catchTag(fs.readFile(keyPath(key)), "PlatformError", (cause) => cause.reason._tag === "SystemError" && cause.reason.kind === "NotFound" ? undefined_$1 : fail$4(new KeyValueStoreError({
48272
48333
  method: "getUint8Array",
48273
48334
  key,
48274
48335
  message: `Unable to get item with key ${key}`,
@@ -48341,7 +48402,7 @@ const toSchemaStore = (self$1, schema$1) => {
48341
48402
  };
48342
48403
 
48343
48404
  //#endregion
48344
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Runtime.js
48405
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Runtime.js
48345
48406
  /**
48346
48407
  * This module provides utilities for running Effect programs and managing their execution lifecycle.
48347
48408
  *
@@ -48477,7 +48538,7 @@ const makeRunMain = (f) => dual((args$1) => isEffect(args$1[0]), (effect$1, opti
48477
48538
  });
48478
48539
 
48479
48540
  //#endregion
48480
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@152e1cf_26ad3c022fcc3a217f9f2eb0149d0b12/node_modules/effect/dist/Stdio.js
48541
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@53d2c5b_bb57938f6a2db8d6e7529a5713147df2/node_modules/effect/dist/Stdio.js
48481
48542
  /**
48482
48543
  * @since 4.0.0
48483
48544
  * @category Type IDs
@@ -49888,7 +49949,7 @@ var Mime_default$1 = Mime;
49888
49949
  var src_default = new Mime_default$1(standard_default, other_default)._freeze();
49889
49950
 
49890
49951
  //#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
49952
+ //#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
49953
  /**
49893
49954
  * @since 1.0.0
49894
49955
  */
@@ -49899,7 +49960,7 @@ var src_default = new Mime_default$1(standard_default, other_default)._freeze();
49899
49960
  var Mime_default = src_default;
49900
49961
 
49901
49962
  //#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
49963
+ //#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
49964
  /**
49904
49965
  * A module providing a generic service interface for spawning child processes.
49905
49966
  *
@@ -49945,7 +50006,7 @@ const makeHandle = (params) => Object.assign(Object.create(HandleProto), params)
49945
50006
  const ChildProcessSpawner = /* @__PURE__ */ Service("effect/process/ChildProcessSpawner");
49946
50007
 
49947
50008
  //#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
50009
+ //#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
50010
  const TypeId$16 = "~effect/unstable/process/ChildProcess";
49950
50011
  const Proto$7 = {
49951
50012
  ...PipeInspectableProto,
@@ -50282,7 +50343,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
50282
50343
  ];
50283
50344
 
50284
50345
  //#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
50346
+ //#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
50347
  /** @internal */
50287
50348
  const handleErrnoException = (module$1, method) => (err, [path$2]) => {
50288
50349
  let reason = "Unknown";
@@ -50309,8 +50370,8 @@ const handleErrnoException = (module$1, method) => (err, [path$2]) => {
50309
50370
  reason = "BadResource";
50310
50371
  break;
50311
50372
  }
50312
- return new SystemError({
50313
- reason,
50373
+ return systemError({
50374
+ kind: reason,
50314
50375
  module: module$1,
50315
50376
  method,
50316
50377
  pathOrDescriptor: path$2,
@@ -50320,7 +50381,7 @@ const handleErrnoException = (module$1, method) => (err, [path$2]) => {
50320
50381
  };
50321
50382
 
50322
50383
  //#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
50384
+ //#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
50385
  /**
50325
50386
  * @category constructors
50326
50387
  * @since 1.0.0
@@ -50359,7 +50420,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap((chunk) => {
50359
50420
  }) : identity);
50360
50421
 
50361
50422
  //#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
50423
+ //#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
50424
  /**
50364
50425
  * @since 1.0.0
50365
50426
  */
@@ -50490,7 +50551,7 @@ const readableToPullUnsafe = (options) => {
50490
50551
  const defaultOnError = (error$1) => new UnknownError(error$1);
50491
50552
 
50492
50553
  //#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
50554
+ //#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
50555
  const toError = (error$1) => error$1 instanceof globalThis.Error ? error$1 : new globalThis.Error(String(error$1));
50495
50556
  const toPlatformError = (method, error$1, command) => {
50496
50557
  const { commands } = flattenCommand(command);
@@ -50871,19 +50932,19 @@ const layer$15 = /* @__PURE__ */ effect(ChildProcessSpawner, make$20);
50871
50932
  const flattenCommand = (command) => {
50872
50933
  const commands = [];
50873
50934
  const pipeOptions = [];
50874
- const flatten$2 = (cmd) => {
50935
+ const flatten$3 = (cmd) => {
50875
50936
  switch (cmd._tag) {
50876
50937
  case "StandardCommand":
50877
50938
  commands.push(cmd);
50878
50939
  break;
50879
50940
  case "PipedCommand":
50880
- flatten$2(cmd.left);
50941
+ flatten$3(cmd.left);
50881
50942
  pipeOptions.push(cmd.options);
50882
- flatten$2(cmd.right);
50943
+ flatten$3(cmd.right);
50883
50944
  break;
50884
50945
  }
50885
50946
  };
50886
- flatten$2(command);
50947
+ flatten$3(command);
50887
50948
  if (commands.length === 0) throw new Error("flattenCommand produced empty commands array");
50888
50949
  const [first, ...rest] = commands;
50889
50950
  return {
@@ -50893,7 +50954,7 @@ const flattenCommand = (command) => {
50893
50954
  };
50894
50955
 
50895
50956
  //#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
50957
+ //#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
50958
  /**
50898
50959
  * @since 4.0.0
50899
50960
  */
@@ -50949,7 +51010,21 @@ const CookieErrorTypeId = "~effect/http/Cookies/CookieError";
50949
51010
  * @since 4.0.0
50950
51011
  * @category errors
50951
51012
  */
50952
- var CookiesError = class extends TaggedError("CookieError") {
51013
+ var CookiesErrorReason = class extends Error$2 {};
51014
+ /**
51015
+ * @since 4.0.0
51016
+ * @category errors
51017
+ */
51018
+ var CookiesError = class CookiesError extends TaggedError("CookieError") {
51019
+ /**
51020
+ * @since 4.0.0
51021
+ */
51022
+ static fromReason(reason, cause) {
51023
+ return new CookiesError({ reason: new CookiesErrorReason({
51024
+ _tag: reason,
51025
+ cause
51026
+ }) });
51027
+ }
50953
51028
  /**
50954
51029
  * @since 4.0.0
50955
51030
  */
@@ -50958,7 +51033,7 @@ var CookiesError = class extends TaggedError("CookieError") {
50958
51033
  * @since 4.0.0
50959
51034
  */
50960
51035
  get message() {
50961
- return this.reason;
51036
+ return this.reason._tag;
50962
51037
  }
50963
51038
  };
50964
51039
  const Proto$6 = {
@@ -51132,13 +51207,13 @@ const CookieProto = {
51132
51207
  * @category constructors
51133
51208
  */
51134
51209
  function makeCookie(name, value, options) {
51135
- if (!fieldContentRegExp.test(name)) return fail$9(new CookiesError({ reason: "InvalidName" }));
51210
+ if (!fieldContentRegExp.test(name)) return fail$9(CookiesError.fromReason("InvalidCookieName"));
51136
51211
  const encodedValue = encodeURIComponent(value);
51137
- if (encodedValue && !fieldContentRegExp.test(encodedValue)) return fail$9(new CookiesError({ reason: "InvalidValue" }));
51212
+ if (encodedValue && !fieldContentRegExp.test(encodedValue)) return fail$9(CookiesError.fromReason("InvalidCookieValue"));
51138
51213
  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" }));
51214
+ if (options.domain !== void 0 && !fieldContentRegExp.test(options.domain)) return fail$9(CookiesError.fromReason("InvalidCookieDomain"));
51215
+ if (options.path !== void 0 && !fieldContentRegExp.test(options.path)) return fail$9(CookiesError.fromReason("InvalidCookiePath"));
51216
+ if (options.maxAge !== void 0 && !isFinite$2(fromDurationInputUnsafe(options.maxAge))) return fail$9(CookiesError.fromReason("CookieInfinityMaxAge"));
51142
51217
  }
51143
51218
  return succeed$6(Object.assign(Object.create(CookieProto), {
51144
51219
  name,
@@ -51269,7 +51344,7 @@ const tryDecodeURIComponent = (str) => {
51269
51344
  };
51270
51345
 
51271
51346
  //#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
51347
+ //#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
51348
  /**
51274
51349
  * @since 4.0.0
51275
51350
  */
@@ -51390,7 +51465,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
51390
51465
  ] });
51391
51466
 
51392
51467
  //#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
51468
+ //#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
51469
  /**
51395
51470
  * @since 4.0.0
51396
51471
  */
@@ -51404,11 +51479,41 @@ const isHttpClientError = (u) => hasProperty(u, TypeId$13);
51404
51479
  * @since 4.0.0
51405
51480
  * @category error
51406
51481
  */
51407
- var RequestError$2 = class extends TaggedError("RequestError") {
51482
+ var HttpClientError = class extends TaggedError("HttpClientError") {
51483
+ constructor(props) {
51484
+ if ("cause" in props.reason) super({
51485
+ ...props,
51486
+ cause: props.reason.cause
51487
+ });
51488
+ else super(props);
51489
+ }
51408
51490
  /**
51409
51491
  * @since 4.0.0
51410
51492
  */
51411
51493
  [TypeId$13] = TypeId$13;
51494
+ /**
51495
+ * @since 4.0.0
51496
+ */
51497
+ get request() {
51498
+ return this.reason.request;
51499
+ }
51500
+ /**
51501
+ * @since 4.0.0
51502
+ */
51503
+ get response() {
51504
+ return "response" in this.reason ? this.reason.response : void 0;
51505
+ }
51506
+ get message() {
51507
+ return this.reason.message;
51508
+ }
51509
+ };
51510
+ const formatReason = (tag$1) => tag$1.endsWith("Error") ? tag$1.slice(0, -5) : tag$1;
51511
+ const formatMessage = (reason, description, info) => description ? `${reason}: ${description} (${info})` : `${reason} error (${info})`;
51512
+ /**
51513
+ * @since 4.0.0
51514
+ * @category error
51515
+ */
51516
+ var TransportError = class extends TaggedError("TransportError") {
51412
51517
  /**
51413
51518
  * @since 4.0.0
51414
51519
  */
@@ -51419,18 +51524,32 @@ var RequestError$2 = class extends TaggedError("RequestError") {
51419
51524
  * @since 4.0.0
51420
51525
  */
51421
51526
  get message() {
51422
- return this.description ? `${this.reason}: ${this.description} (${this.methodAndUrl})` : `${this.reason} error (${this.methodAndUrl})`;
51527
+ return formatMessage(formatReason(this._tag), this.description, this.methodAndUrl);
51423
51528
  }
51424
51529
  };
51425
51530
  /**
51426
51531
  * @since 4.0.0
51427
51532
  * @category error
51428
51533
  */
51429
- var ResponseError$1 = class extends TaggedError("ResponseError") {
51534
+ var InvalidUrlError = class extends TaggedError("InvalidUrlError") {
51430
51535
  /**
51431
51536
  * @since 4.0.0
51432
51537
  */
51433
- [TypeId$13] = TypeId$13;
51538
+ get methodAndUrl() {
51539
+ return `${this.request.method} ${this.request.url}`;
51540
+ }
51541
+ /**
51542
+ * @since 4.0.0
51543
+ */
51544
+ get message() {
51545
+ return formatMessage(formatReason(this._tag), this.description, this.methodAndUrl);
51546
+ }
51547
+ };
51548
+ /**
51549
+ * @since 4.0.0
51550
+ * @category error
51551
+ */
51552
+ var StatusCodeError = class extends TaggedError("StatusCodeError") {
51434
51553
  /**
51435
51554
  * @since 4.0.0
51436
51555
  */
@@ -51442,12 +51561,50 @@ var ResponseError$1 = class extends TaggedError("ResponseError") {
51442
51561
  */
51443
51562
  get message() {
51444
51563
  const info = `${this.response.status} ${this.methodAndUrl}`;
51445
- return this.description ? `${this.reason}: ${this.description} (${info})` : `${this.reason} error (${info})`;
51564
+ return formatMessage(formatReason(this._tag), this.description, info);
51565
+ }
51566
+ };
51567
+ /**
51568
+ * @since 4.0.0
51569
+ * @category error
51570
+ */
51571
+ var DecodeError = class extends TaggedError("DecodeError") {
51572
+ /**
51573
+ * @since 4.0.0
51574
+ */
51575
+ get methodAndUrl() {
51576
+ return `${this.request.method} ${this.request.url}`;
51577
+ }
51578
+ /**
51579
+ * @since 4.0.0
51580
+ */
51581
+ get message() {
51582
+ const info = `${this.response.status} ${this.methodAndUrl}`;
51583
+ return formatMessage(formatReason(this._tag), this.description, info);
51584
+ }
51585
+ };
51586
+ /**
51587
+ * @since 4.0.0
51588
+ * @category error
51589
+ */
51590
+ var EmptyBodyError = class extends TaggedError("EmptyBodyError") {
51591
+ /**
51592
+ * @since 4.0.0
51593
+ */
51594
+ get methodAndUrl() {
51595
+ return `${this.request.method} ${this.request.url}`;
51596
+ }
51597
+ /**
51598
+ * @since 4.0.0
51599
+ */
51600
+ get message() {
51601
+ const info = `${this.response.status} ${this.methodAndUrl}`;
51602
+ return formatMessage(formatReason(this._tag), this.description, info);
51446
51603
  }
51447
51604
  };
51448
51605
 
51449
51606
  //#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
51607
+ //#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
51608
  /**
51452
51609
  * @since 4.0.0
51453
51610
  */
@@ -51660,7 +51817,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
51660
51817
  })));
51661
51818
 
51662
51819
  //#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
51820
+ //#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
51821
  /**
51665
51822
  * @since 4.0.0
51666
51823
  */
@@ -51808,7 +51965,7 @@ var Stream = class extends Proto$3 {
51808
51965
  const stream$2 = (body, contentType, contentLength) => new Stream(body, contentType ?? "application/octet-stream", contentLength);
51809
51966
 
51810
51967
  //#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
51968
+ //#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
51969
  const TypeId$10 = "~effect/http/HttpClientRequest";
51813
51970
  const Proto$2 = {
51814
51971
  [TypeId$10]: TypeId$10,
@@ -51946,7 +52103,7 @@ const setBody = /* @__PURE__ */ dual(2, (self$1, body) => {
51946
52103
  const bodyUrlParams = /* @__PURE__ */ dual(2, (self$1, input) => setBody(self$1, urlParams(fromInput(input))));
51947
52104
 
51948
52105
  //#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
52106
+ //#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
52107
  /**
51951
52108
  * @since 4.0.0
51952
52109
  */
@@ -51998,7 +52155,7 @@ const inspect = (self$1, that) => {
51998
52155
  };
51999
52156
 
52000
52157
  //#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
52158
+ //#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
52159
  /**
52003
52160
  * @since 4.0.0
52004
52161
  */
@@ -52016,12 +52173,11 @@ const fromWeb = (request$3, source) => new WebHttpClientResponse(request$3, sour
52016
52173
  * @since 4.0.0
52017
52174
  * @category filters
52018
52175
  */
52019
- const filterStatusOk$1 = (self$1) => self$1.status >= 200 && self$1.status < 300 ? succeed$1(self$1) : fail$4(new ResponseError$1({
52176
+ 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
52177
  response: self$1,
52021
52178
  request: self$1.request,
52022
- reason: "StatusCode",
52023
52179
  description: "non 2xx status code"
52024
- }));
52180
+ }) }));
52025
52181
  var WebHttpClientResponse = class extends Class$2 {
52026
52182
  [TypeId$9];
52027
52183
  [TypeId$8];
@@ -52056,81 +52212,74 @@ var WebHttpClientResponse = class extends Class$2 {
52056
52212
  get stream() {
52057
52213
  return this.source.body ? fromReadableStream({
52058
52214
  evaluate: () => this.source.body,
52059
- onError: (cause) => new ResponseError$1({
52215
+ onError: (cause) => new HttpClientError({ reason: new DecodeError({
52060
52216
  request: this.request,
52061
52217
  response: this,
52062
- reason: "Decode",
52063
52218
  cause
52064
- })
52065
- }) : fail$1(new ResponseError$1({
52219
+ }) })
52220
+ }) : fail$1(new HttpClientError({ reason: new EmptyBodyError({
52066
52221
  request: this.request,
52067
52222
  response: this,
52068
- reason: "EmptyBody",
52069
52223
  description: "can not create stream from empty body"
52070
- }));
52224
+ }) }));
52071
52225
  }
52072
52226
  get json() {
52073
52227
  return flatMap(this.text, (text$3) => try_({
52074
52228
  try: () => text$3 === "" ? null : JSON.parse(text$3),
52075
- catch: (cause) => new ResponseError$1({
52229
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52076
52230
  request: this.request,
52077
52231
  response: this,
52078
- reason: "Decode",
52079
52232
  cause
52080
- })
52233
+ }) })
52081
52234
  }));
52082
52235
  }
52083
52236
  textBody;
52084
52237
  get text() {
52085
52238
  return this.textBody ??= tryPromise({
52086
52239
  try: () => this.source.text(),
52087
- catch: (cause) => new ResponseError$1({
52240
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52088
52241
  request: this.request,
52089
52242
  response: this,
52090
- reason: "Decode",
52091
52243
  cause
52092
- })
52244
+ }) })
52093
52245
  }).pipe(cached, runSync);
52094
52246
  }
52095
52247
  get urlParamsBody() {
52096
52248
  return flatMap(this.text, (_) => try_({
52097
52249
  try: () => fromInput(new URLSearchParams(_)),
52098
- catch: (cause) => new ResponseError$1({
52250
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52099
52251
  request: this.request,
52100
52252
  response: this,
52101
- reason: "Decode",
52102
52253
  cause
52103
- })
52254
+ }) })
52104
52255
  }));
52105
52256
  }
52106
52257
  formDataBody;
52107
52258
  get formData() {
52108
52259
  return this.formDataBody ??= tryPromise({
52109
52260
  try: () => this.source.formData(),
52110
- catch: (cause) => new ResponseError$1({
52261
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52111
52262
  request: this.request,
52112
52263
  response: this,
52113
- reason: "Decode",
52114
52264
  cause
52115
- })
52265
+ }) })
52116
52266
  }).pipe(cached, runSync);
52117
52267
  }
52118
52268
  arrayBufferBody;
52119
52269
  get arrayBuffer() {
52120
52270
  return this.arrayBufferBody ??= tryPromise({
52121
52271
  try: () => this.source.arrayBuffer(),
52122
- catch: (cause) => new ResponseError$1({
52272
+ catch: (cause) => new HttpClientError({ reason: new DecodeError({
52123
52273
  request: this.request,
52124
52274
  response: this,
52125
- reason: "Decode",
52126
52275
  cause
52127
- })
52276
+ }) })
52128
52277
  }).pipe(cached, runSync);
52129
52278
  }
52130
52279
  };
52131
52280
 
52132
52281
  //#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
52282
+ //#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
52283
  /**
52135
52284
  * @since 4.0.0
52136
52285
  */
@@ -52145,7 +52294,7 @@ const allShort = [
52145
52294
  ];
52146
52295
 
52147
52296
  //#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
52297
+ //#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
52298
  /**
52150
52299
  * @since 4.0.0
52151
52300
  */
@@ -52214,7 +52363,7 @@ const w3c = (headers) => {
52214
52363
  };
52215
52364
 
52216
52365
  //#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
52366
+ //#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
52367
  const TypeId$7 = "~effect/http/HttpClient";
52219
52368
  /**
52220
52369
  * @since 4.0.0
@@ -52267,11 +52416,10 @@ const make$16 = (f) => makeWith((effect$1) => flatMap(effect$1, (request$3) => w
52267
52416
  const scopedController = scopedRequests.get(request$3);
52268
52417
  const controller = scopedController ?? new AbortController();
52269
52418
  const urlResult = makeUrl(request$3.url, request$3.urlParams, request$3.hash);
52270
- if (isFailure$4(urlResult)) return fail$4(new RequestError$2({
52419
+ if (isFailure$4(urlResult)) return fail$4(new HttpClientError({ reason: new InvalidUrlError({
52271
52420
  request: request$3,
52272
- reason: "InvalidUrl",
52273
52421
  cause: urlResult.failure
52274
- }));
52422
+ }) }));
52275
52423
  const url = urlResult.success;
52276
52424
  if (fiber$2.getRef(DisablePropagation) || fiber$2.getRef(TracerDisabledWhen$1)(request$3)) {
52277
52425
  const effect$2 = f(request$3, url, controller.signal, fiber$2);
@@ -52461,7 +52609,7 @@ var InterruptibleResponse = class {
52461
52609
  }
52462
52610
  };
52463
52611
  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));
52612
+ const isTransientHttpError = (error$1) => isHttpClientError(error$1) && (error$1.reason._tag === "TransportError" || error$1.reason._tag === "StatusCodeError" && isTransientResponse(error$1.reason.response));
52465
52613
  const transientStatuses = /* @__PURE__ */ new Set([
52466
52614
  408,
52467
52615
  429,
@@ -53066,7 +53214,7 @@ const httpMethods = [
53066
53214
  const make$14 = make$15;
53067
53215
 
53068
53216
  //#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
53217
+ //#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
53218
  /**
53071
53219
  * @since 4.0.0
53072
53220
  */
@@ -53116,7 +53264,7 @@ function isSuccess(u) {
53116
53264
  }
53117
53265
 
53118
53266
  //#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
53267
+ //#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
53268
  /**
53121
53269
  * @since 4.0.0
53122
53270
  */
@@ -53219,7 +53367,7 @@ const makeResponse = (options) => {
53219
53367
  };
53220
53368
 
53221
53369
  //#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
53370
+ //#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
53371
  /**
53224
53372
  * @since 4.0.0
53225
53373
  */
@@ -53257,7 +53405,7 @@ const toResponseOrElseDefect = (u, orElse$1) => {
53257
53405
  };
53258
53406
 
53259
53407
  //#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
53408
+ //#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
53409
  /**
53262
53410
  * @since 4.0.0
53263
53411
  */
@@ -53266,7 +53414,14 @@ const TypeId$4 = "~effect/http/HttpServerError";
53266
53414
  * @since 4.0.0
53267
53415
  * @category error
53268
53416
  */
53269
- var RequestError$1 = class extends TaggedError("HttpServerError") {
53417
+ var HttpServerError = class extends TaggedError("HttpServerError") {
53418
+ constructor(props) {
53419
+ if ("cause" in props.reason) super({
53420
+ ...props,
53421
+ cause: props.reason.cause
53422
+ });
53423
+ else super(props);
53424
+ }
53270
53425
  /**
53271
53426
  * @since 4.0.0
53272
53427
  */
@@ -53278,34 +53433,84 @@ var RequestError$1 = class extends TaggedError("HttpServerError") {
53278
53433
  /**
53279
53434
  * @since 4.0.0
53280
53435
  */
53281
- [TypeId$5]() {
53282
- return succeed$1(empty({ status: this.reason === "InternalError" ? 500 : this.reason === "RouteNotFound" ? 404 : 400 }));
53436
+ get request() {
53437
+ return this.reason.request;
53283
53438
  }
53284
- get methodAndUrl() {
53285
- return `${this.request.method} ${this.request.url}`;
53439
+ /**
53440
+ * @since 4.0.0
53441
+ */
53442
+ get response() {
53443
+ return "response" in this.reason ? this.reason.response : void 0;
53444
+ }
53445
+ /**
53446
+ * @since 4.0.0
53447
+ */
53448
+ [TypeId$5]() {
53449
+ return this.reason[TypeId$5]();
53286
53450
  }
53287
53451
  get message() {
53288
- const prefix$2 = `${this.reason} (${this.methodAndUrl})`;
53289
- return this.description ? `${prefix$2}: ${this.description}` : prefix$2;
53452
+ return this.reason.message;
53290
53453
  }
53291
53454
  };
53292
53455
  /**
53293
53456
  * @since 4.0.0
53294
53457
  * @category error
53295
53458
  */
53296
- var ResponseError = class extends TaggedError("HttpServerError") {
53459
+ var RequestParseError = class extends TaggedError("RequestParseError") {
53297
53460
  /**
53298
53461
  * @since 4.0.0
53299
53462
  */
53300
- [TypeId$4] = TypeId$4;
53463
+ [TypeId$5]() {
53464
+ return succeed$1(empty({ status: 400 }));
53465
+ }
53466
+ get methodAndUrl() {
53467
+ return `${this.request.method} ${this.request.url}`;
53468
+ }
53469
+ get message() {
53470
+ return formatRequestMessage(this._tag, this.description, this.methodAndUrl);
53471
+ }
53472
+ };
53473
+ /**
53474
+ * @since 4.0.0
53475
+ * @category error
53476
+ */
53477
+ var RouteNotFound = class extends TaggedError("RouteNotFound") {
53301
53478
  /**
53302
53479
  * @since 4.0.0
53303
53480
  */
53304
- reason = "ResponseError";
53481
+ [TypeId$5]() {
53482
+ return succeed$1(empty({ status: 404 }));
53483
+ }
53484
+ get methodAndUrl() {
53485
+ return `${this.request.method} ${this.request.url}`;
53486
+ }
53487
+ get message() {
53488
+ return formatRequestMessage(this._tag, this.description, this.methodAndUrl);
53489
+ }
53490
+ };
53491
+ /**
53492
+ * @since 4.0.0
53493
+ * @category error
53494
+ */
53495
+ var InternalError = class extends TaggedError("InternalError") {
53305
53496
  /**
53306
53497
  * @since 4.0.0
53307
53498
  */
53308
- stack = `${this.name}: ${this.message}`;
53499
+ [TypeId$5]() {
53500
+ return succeed$1(empty({ status: 500 }));
53501
+ }
53502
+ get methodAndUrl() {
53503
+ return `${this.request.method} ${this.request.url}`;
53504
+ }
53505
+ get message() {
53506
+ return formatRequestMessage(this._tag, this.description, this.methodAndUrl);
53507
+ }
53508
+ };
53509
+ /**
53510
+ * @since 4.0.0
53511
+ * @category error
53512
+ */
53513
+ var ResponseError = class extends TaggedError("ResponseError") {
53309
53514
  /**
53310
53515
  * @since 4.0.0
53311
53516
  */
@@ -53316,7 +53521,7 @@ var ResponseError = class extends TaggedError("HttpServerError") {
53316
53521
  return `${this.request.method} ${this.request.url}`;
53317
53522
  }
53318
53523
  get message() {
53319
- const info = `${this.reason} (${this.response.status} ${this.methodAndUrl})`;
53524
+ const info = `${this._tag} (${this.response.status} ${this.methodAndUrl})`;
53320
53525
  return this.description ? `${info}: ${this.description}` : info;
53321
53526
  }
53322
53527
  };
@@ -53324,11 +53529,10 @@ var ResponseError = class extends TaggedError("HttpServerError") {
53324
53529
  * @since 4.0.0
53325
53530
  * @category error
53326
53531
  */
53327
- var ServeError = class extends TaggedError("ServeError") {
53328
- /**
53329
- * @since 4.0.0
53330
- */
53331
- [TypeId$4] = TypeId$4;
53532
+ var ServeError = class extends TaggedError("ServeError") {};
53533
+ const formatRequestMessage = (reason, description, info) => {
53534
+ const prefix$2 = `${reason} (${info})`;
53535
+ return description ? `${prefix$2}: ${description}` : prefix$2;
53332
53536
  };
53333
53537
  /**
53334
53538
  * @since 4.0.0
@@ -53401,7 +53605,7 @@ const exitResponse = (exit$2) => {
53401
53605
  };
53402
53606
 
53403
53607
  //#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
53608
+ //#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
53609
  /**
53406
53610
  * @since 4.0.0
53407
53611
  * @category Type IDs
@@ -53445,7 +53649,7 @@ const isCloseEvent = (u) => hasProperty(u, CloseEventTypeId);
53445
53649
  * @since 4.0.0
53446
53650
  * @category type ids
53447
53651
  */
53448
- const SocketErrorTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Socket/SocketError");
53652
+ const SocketErrorTypeId = "~effect/socket/Socket/SocketError";
53449
53653
  /**
53450
53654
  * @since 4.0.0
53451
53655
  * @category refinements
@@ -53455,48 +53659,100 @@ const isSocketError = (u) => hasProperty(u, SocketErrorTypeId);
53455
53659
  * @since 4.0.0
53456
53660
  * @category errors
53457
53661
  */
53458
- var SocketGenericError = class extends TaggedError("SocketError") {
53662
+ var SocketReadError = class extends ErrorClass("effect/socket/Socket/SocketReadError")({
53663
+ _tag: /* @__PURE__ */ tag("SocketReadError"),
53664
+ cause: Defect
53665
+ }) {
53459
53666
  /**
53460
53667
  * @since 4.0.0
53461
53668
  */
53462
- [SocketErrorTypeId] = SocketErrorTypeId;
53669
+ message = `An error occurred during Read`;
53670
+ };
53671
+ /**
53672
+ * @since 4.0.0
53673
+ * @category errors
53674
+ */
53675
+ var SocketWriteError = class extends ErrorClass("effect/socket/Socket/SocketWriteError")({
53676
+ _tag: /* @__PURE__ */ tag("SocketWriteError"),
53677
+ cause: Defect
53678
+ }) {
53463
53679
  /**
53464
53680
  * @since 4.0.0
53465
53681
  */
53466
- get message() {
53467
- return `An error occurred during ${this.reason}`;
53468
- }
53682
+ message = `An error occurred during Write`;
53469
53683
  };
53470
53684
  /**
53471
53685
  * @since 4.0.0
53472
53686
  * @category errors
53473
53687
  */
53474
- var SocketCloseError = class SocketCloseError extends TaggedError("SocketError") {
53688
+ var SocketOpenError = class extends ErrorClass("effect/socket/Socket/SocketOpenError")({
53689
+ _tag: /* @__PURE__ */ tag("SocketOpenError"),
53690
+ kind: /* @__PURE__ */ Literals(["Unknown", "Timeout"]),
53691
+ cause: Defect
53692
+ }) {
53475
53693
  /**
53476
53694
  * @since 4.0.0
53477
53695
  */
53478
- [SocketErrorTypeId] = SocketErrorTypeId;
53696
+ get message() {
53697
+ return this.kind === "Timeout" ? `timeout waiting for "open"` : `An error occurred during Open`;
53698
+ }
53699
+ };
53700
+ /**
53701
+ * @since 4.0.0
53702
+ * @category errors
53703
+ */
53704
+ var SocketCloseError = class extends ErrorClass("effect/socket/Socket/SocketCloseError")({
53705
+ _tag: /* @__PURE__ */ tag("SocketCloseError"),
53706
+ code: Number$1,
53707
+ closeReason: /* @__PURE__ */ optional$2(String$1)
53708
+ }) {
53479
53709
  /**
53480
53710
  * @since 4.0.0
53481
53711
  */
53482
- reason = "Close";
53712
+ static filterClean(isClean) {
53713
+ return function(u) {
53714
+ return SocketError.is(u) && u.reason._tag === "SocketCloseError" && isClean(u.reason.code) ? u.reason : fail$8(u);
53715
+ };
53716
+ }
53717
+ get message() {
53718
+ if (this.closeReason) return `${this.code}: ${this.closeReason}`;
53719
+ return `${this.code}`;
53720
+ }
53721
+ };
53722
+ /**
53723
+ * @since 4.0.0
53724
+ * @category errors
53725
+ */
53726
+ const SocketErrorReason = /* @__PURE__ */ Union([
53727
+ SocketReadError,
53728
+ SocketWriteError,
53729
+ SocketOpenError,
53730
+ SocketCloseError
53731
+ ]);
53732
+ /**
53733
+ * @since 4.0.0
53734
+ * @category errors
53735
+ */
53736
+ var SocketError = class extends ErrorClass(SocketErrorTypeId)({
53737
+ _tag: /* @__PURE__ */ tag("SocketError"),
53738
+ reason: SocketErrorReason
53739
+ }) {
53740
+ constructor(props) {
53741
+ if ("cause" in props.reason) super({
53742
+ ...props,
53743
+ cause: props.reason.cause
53744
+ });
53745
+ else super(props);
53746
+ }
53483
53747
  /**
53484
53748
  * @since 4.0.0
53485
53749
  */
53486
- static is(u) {
53487
- return isSocketError(u) && u.reason === "Close";
53488
- }
53750
+ [SocketErrorTypeId] = SocketErrorTypeId;
53489
53751
  /**
53490
53752
  * @since 4.0.0
53491
53753
  */
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}`;
53754
+ static is(u) {
53755
+ return isSocketError(u);
53500
53756
  }
53501
53757
  };
53502
53758
  /**
@@ -53530,18 +53786,18 @@ const fromWebSocket = (acquire, options) => withFiber((fiber$2) => {
53530
53786
  function onError$2(cause) {
53531
53787
  ws.removeEventListener("message", onMessage);
53532
53788
  ws.removeEventListener("close", onClose);
53533
- doneUnsafe(fiberSet.deferred, fail$4(new SocketGenericError({
53534
- reason: open$1 ? "Read" : "Open",
53789
+ doneUnsafe(fiberSet.deferred, fail$4(new SocketError({ reason: open$1 ? new SocketReadError({ cause }) : new SocketOpenError({
53790
+ kind: "Unknown",
53535
53791
  cause
53536
- })));
53792
+ }) })));
53537
53793
  }
53538
53794
  function onClose(event) {
53539
53795
  ws.removeEventListener("message", onMessage);
53540
53796
  ws.removeEventListener("error", onError$2);
53541
- doneUnsafe(fiberSet.deferred, fail$4(new SocketCloseError({
53797
+ doneUnsafe(fiberSet.deferred, fail$4(new SocketError({ reason: new SocketCloseError({
53542
53798
  code: event.code,
53543
53799
  closeReason: event.reason
53544
- })));
53800
+ }) })));
53545
53801
  }
53546
53802
  ws.addEventListener("close", onClose, { once: true });
53547
53803
  ws.addEventListener("error", onError$2, { once: true });
@@ -53554,17 +53810,17 @@ const fromWebSocket = (acquire, options) => withFiber((fiber$2) => {
53554
53810
  }, { once: true });
53555
53811
  yield* _await(openDeferred).pipe(timeoutOrElse({
53556
53812
  duration: options?.openTimeout ?? 1e4,
53557
- onTimeout: () => fail$4(new SocketGenericError({
53558
- reason: "OpenTimeout",
53559
- cause: "timeout waiting for \"open\""
53560
- }))
53813
+ onTimeout: () => fail$4(new SocketError({ reason: new SocketOpenError({
53814
+ kind: "Timeout",
53815
+ cause: /* @__PURE__ */ new Error("timeout waiting for \"open\"")
53816
+ }) }))
53561
53817
  }), raceFirst(join(fiberSet)));
53562
53818
  }
53563
53819
  open$1 = true;
53564
53820
  currentWS = ws;
53565
53821
  latch.openUnsafe();
53566
53822
  if (opts?.onOpen) yield* opts.onOpen;
53567
- return yield* join(fiberSet).pipe(catchFilter(SocketCloseError.isClean((_) => !closeCodeIsError(_)), (_) => void_$1));
53823
+ return yield* join(fiberSet).pipe(catchFilter(SocketCloseError.filterClean((_) => !closeCodeIsError(_)), (_) => void_$1));
53568
53824
  })).pipe(updateServices((input) => merge$5(acquireContext, input)), ensuring(sync(() => {
53569
53825
  latch.closeUnsafe();
53570
53826
  currentWS = void 0;
@@ -54482,7 +54738,7 @@ const defaultIsFile = defaultIsFile$1;
54482
54738
  const decodeField = decodeField$1;
54483
54739
 
54484
54740
  //#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
54741
+ //#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
54742
  /**
54487
54743
  * @since 4.0.0
54488
54744
  */
@@ -54495,18 +54751,21 @@ const MultipartErrorTypeId = "~effect/http/Multipart/MultipartError";
54495
54751
  * @since 4.0.0
54496
54752
  * @category Errors
54497
54753
  */
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
- }) {
54754
+ var MultipartErrorReason = class extends Error$2 {};
54755
+ /**
54756
+ * @since 4.0.0
54757
+ * @category Errors
54758
+ */
54759
+ var MultipartError = class MultipartError extends TaggedError("MultipartError") {
54760
+ /**
54761
+ * @since 4.0.0
54762
+ */
54763
+ static fromReason(reason, cause) {
54764
+ return new MultipartError({ reason: new MultipartErrorReason({
54765
+ _tag: reason,
54766
+ cause
54767
+ }) });
54768
+ }
54510
54769
  /**
54511
54770
  * @since 4.0.0
54512
54771
  */
@@ -54515,7 +54774,7 @@ var MultipartError = class extends ErrorClass(MultipartErrorTypeId)({
54515
54774
  * @since 4.0.0
54516
54775
  */
54517
54776
  get message() {
54518
- return this.reason;
54777
+ return this.reason._tag;
54519
54778
  }
54520
54779
  };
54521
54780
  /**
@@ -54588,27 +54847,12 @@ const makeChannel = (headers) => fromTransform$1((upstream) => map$5(makeConfig(
54588
54847
  function convertError$1(cause) {
54589
54848
  switch (cause._tag) {
54590
54849
  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
- });
54850
+ case "MaxParts": return MultipartError.fromReason("TooManyParts", cause);
54851
+ case "MaxFieldSize": return MultipartError.fromReason("FieldTooLarge", cause);
54852
+ case "MaxPartSize": return MultipartError.fromReason("FileTooLarge", cause);
54853
+ case "MaxTotalSize": return MultipartError.fromReason("BodyTooLarge", cause);
54607
54854
  }
54608
- default: return new MultipartError({
54609
- reason: "Parse",
54610
- cause
54611
- });
54855
+ default: return MultipartError.fromReason("Parse", cause);
54612
54856
  }
54613
54857
  }
54614
54858
  var PartBase$1 = class extends Class$2 {
@@ -54652,10 +54896,7 @@ var FileImpl$1 = class extends PartBase$1 {
54652
54896
  this.name = info.filename ?? info.name;
54653
54897
  this.contentType = info.contentType;
54654
54898
  this.content = fromChannel(channel);
54655
- this.contentEffect = channel.pipe(collectUint8Array, mapError$2((cause) => new MultipartError({
54656
- reason: "InternalError",
54657
- cause
54658
- })));
54899
+ this.contentEffect = channel.pipe(collectUint8Array, mapError$2((cause) => MultipartError.fromReason("InternalError", cause)));
54659
54900
  }
54660
54901
  toJSON() {
54661
54902
  return {
@@ -54667,10 +54908,7 @@ var FileImpl$1 = class extends PartBase$1 {
54667
54908
  };
54668
54909
  }
54669
54910
  };
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
- })));
54911
+ 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
54912
  /**
54675
54913
  * @since 4.0.0
54676
54914
  */
@@ -54709,10 +54947,7 @@ const toPersisted = (stream$3, writeFile$1 = defaultWriteFile) => gen(function*
54709
54947
  return writeFile$1(path$2, file);
54710
54948
  });
54711
54949
  return persisted$1;
54712
- }).pipe(catchTag("PlatformError", (cause) => fail$4(new MultipartError({
54713
- reason: "InternalError",
54714
- cause
54715
- }))));
54950
+ }).pipe(catchTag("PlatformError", (cause) => fail$4(MultipartError.fromReason("InternalError", cause))));
54716
54951
  var PersistedFileImpl = class extends PartBase$1 {
54717
54952
  _tag = "PersistedFile";
54718
54953
  key;
@@ -54759,7 +54994,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
54759
54994
  const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
54760
54995
 
54761
54996
  //#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
54997
+ //#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
54998
  /**
54764
54999
  * @since 4.0.0
54765
55000
  * @category Type IDs
@@ -54830,48 +55065,43 @@ var ServerRequestImpl$1 = class ServerRequestImpl$1 extends Class$2 {
54830
55065
  get stream() {
54831
55066
  return this.source.body ? fromReadableStream({
54832
55067
  evaluate: () => this.source.body,
54833
- onError: (cause) => new RequestError$1({
55068
+ onError: (cause) => new HttpServerError({ reason: new RequestParseError({
54834
55069
  request: this,
54835
- reason: "RequestParseError",
54836
55070
  cause
54837
- })
54838
- }) : fail$1(new RequestError$1({
55071
+ }) })
55072
+ }) : fail$1(new HttpServerError({ reason: new RequestParseError({
54839
55073
  request: this,
54840
- reason: "RequestParseError",
54841
55074
  description: "can not create stream from empty body"
54842
- }));
55075
+ }) }));
54843
55076
  }
54844
55077
  textEffect;
54845
55078
  get text() {
54846
55079
  if (this.textEffect) return this.textEffect;
54847
55080
  this.textEffect = runSync(cached(tryPromise({
54848
55081
  try: () => this.source.text(),
54849
- catch: (cause) => new RequestError$1({
55082
+ catch: (cause) => new HttpServerError({ reason: new RequestParseError({
54850
55083
  request: this,
54851
- reason: "RequestParseError",
54852
55084
  cause
54853
- })
55085
+ }) })
54854
55086
  })));
54855
55087
  return this.textEffect;
54856
55088
  }
54857
55089
  get json() {
54858
55090
  return flatMap(this.text, (text$3) => try_({
54859
55091
  try: () => JSON.parse(text$3),
54860
- catch: (cause) => new RequestError$1({
55092
+ catch: (cause) => new HttpServerError({ reason: new RequestParseError({
54861
55093
  request: this,
54862
- reason: "RequestParseError",
54863
55094
  cause
54864
- })
55095
+ }) })
54865
55096
  }));
54866
55097
  }
54867
55098
  get urlParamsBody() {
54868
55099
  return flatMap(this.text, (_) => try_({
54869
55100
  try: () => fromInput(new URLSearchParams(_)),
54870
- catch: (cause) => new RequestError$1({
55101
+ catch: (cause) => new HttpServerError({ reason: new RequestParseError({
54871
55102
  request: this,
54872
- reason: "RequestParseError",
54873
55103
  cause
54874
- })
55104
+ }) })
54875
55105
  }));
54876
55106
  }
54877
55107
  multipartEffect;
@@ -54881,30 +55111,25 @@ var ServerRequestImpl$1 = class ServerRequestImpl$1 extends Class$2 {
54881
55111
  return this.multipartEffect;
54882
55112
  }
54883
55113
  get multipartStream() {
54884
- return pipeThroughChannel(mapError(this.stream, (cause) => new MultipartError({
54885
- reason: "InternalError",
54886
- cause
54887
- })), makeChannel(this.headers));
55114
+ return pipeThroughChannel(mapError(this.stream, (cause) => MultipartError.fromReason("InternalError", cause)), makeChannel(this.headers));
54888
55115
  }
54889
55116
  arrayBufferEffect;
54890
55117
  get arrayBuffer() {
54891
55118
  if (this.arrayBufferEffect) return this.arrayBufferEffect;
54892
55119
  this.arrayBufferEffect = runSync(cached(tryPromise({
54893
55120
  try: () => this.source.arrayBuffer(),
54894
- catch: (cause) => new RequestError$1({
55121
+ catch: (cause) => new HttpServerError({ reason: new RequestParseError({
54895
55122
  request: this,
54896
- reason: "RequestParseError",
54897
55123
  cause
54898
- })
55124
+ }) })
54899
55125
  })));
54900
55126
  return this.arrayBufferEffect;
54901
55127
  }
54902
55128
  get upgrade() {
54903
- return fail$4(new RequestError$1({
55129
+ return fail$4(new HttpServerError({ reason: new RequestParseError({
54904
55130
  request: this,
54905
- reason: "RequestParseError",
54906
55131
  description: "Not an upgradeable ServerRequest"
54907
- }));
55132
+ }) }));
54908
55133
  }
54909
55134
  };
54910
55135
  /**
@@ -54922,7 +55147,7 @@ const toURL = (self$1) => {
54922
55147
  };
54923
55148
 
54924
55149
  //#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
55150
+ //#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
55151
  /**
54927
55152
  * @since 4.0.0
54928
55153
  */
@@ -55025,7 +55250,7 @@ const tracer = /* @__PURE__ */ make$8((httpApp) => withFiber((fiber$2) => {
55025
55250
  }));
55026
55251
 
55027
55252
  //#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
55253
+ //#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
55254
  /**
55030
55255
  * @since 4.0.0
55031
55256
  * @category combinators
@@ -55103,7 +55328,7 @@ const scoped = (effect$1) => withFiber((fiber$2) => {
55103
55328
  const PreResponseHandlers = /* @__PURE__ */ Reference("effect/http/HttpEffect/PreResponseHandlers", { defaultValue: () => void 0 });
55104
55329
 
55105
55330
  //#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
55331
+ //#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
55332
  /**
55108
55333
  * @since 4.0.0
55109
55334
  */
@@ -55167,7 +55392,7 @@ const layerWeak = /* @__PURE__ */ succeed$2(Generator)({
55167
55392
  });
55168
55393
 
55169
55394
  //#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
55395
+ //#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
55396
  /**
55172
55397
  * @since 4.0.0
55173
55398
  */
@@ -55234,7 +55459,7 @@ const layer$13 = /* @__PURE__ */ effect(HttpPlatform)(flatMap(FileSystem.asEffec
55234
55459
  }))).pipe(/* @__PURE__ */ provide$3(layerWeak));
55235
55460
 
55236
55461
  //#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
55462
+ //#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
55463
  /**
55239
55464
  * @since 4.0.0
55240
55465
  */
@@ -55297,7 +55522,7 @@ const makeTestClient = /* @__PURE__ */ gen(function* () {
55297
55522
  const layerTestClient = /* @__PURE__ */ effect(HttpClient)(makeTestClient);
55298
55523
 
55299
55524
  //#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
55525
+ //#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
55526
  /**
55302
55527
  * @since 4.0.0
55303
55528
  */
@@ -55363,10 +55588,7 @@ const make$5 = /* @__PURE__ */ gen(function* () {
55363
55588
  const request$3 = contextMap.get(HttpServerRequest.key);
55364
55589
  let result$2 = router.find(request$3.method, request$3.url);
55365
55590
  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
- }));
55591
+ if (result$2 === void 0) return fail$4(new HttpServerError({ reason: new RouteNotFound({ request: request$3 }) }));
55370
55592
  const route$1 = result$2.handler;
55371
55593
  if (route$1.prefix !== void 0) contextMap.set(HttpServerRequest.key, sliceRequestUrl(request$3, route$1.prefix));
55372
55594
  contextMap.set(ParsedSearchParams.key, result$2.searchParams);
@@ -59167,11 +59389,11 @@ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
59167
59389
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
59168
59390
 
59169
59391
  //#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
59392
+ //#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
59393
  /**
59172
59394
  * @since 1.0.0
59173
59395
  */
59174
- const handleBadArgument = (method) => (err) => new BadArgument({
59396
+ const handleBadArgument = (method) => (err) => badArgument({
59175
59397
  module: "FileSystem",
59176
59398
  method,
59177
59399
  description: err.message ?? String(err)
@@ -59331,10 +59553,10 @@ const makeFile = /* @__PURE__ */ (() => {
59331
59553
  return suspend$3(() => {
59332
59554
  const position = this.position;
59333
59555
  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({
59556
+ if (bytesWritten === 0) return fail$4(systemError({
59335
59557
  module: "FileSystem",
59336
59558
  method: "writeAll",
59337
- reason: "WriteZero",
59559
+ kind: "WriteZero",
59338
59560
  pathOrDescriptor: this.fd,
59339
59561
  description: "write returned 0 bytes written"
59340
59562
  }));
@@ -59448,9 +59670,9 @@ const watchNode = (path$2) => callback((queue) => acquireRelease(sync(() => {
59448
59670
  }
59449
59671
  });
59450
59672
  watcher.on("error", (error$1) => {
59451
- failCauseUnsafe(queue, fail$5(new SystemError({
59673
+ failCauseUnsafe(queue, fail$5(systemError({
59452
59674
  module: "FileSystem",
59453
- reason: "Unknown",
59675
+ kind: "Unknown",
59454
59676
  method: "watch",
59455
59677
  pathOrDescriptor: path$2,
59456
59678
  cause: error$1
@@ -59517,7 +59739,7 @@ const makeFileSystem = /* @__PURE__ */ map$5(/* @__PURE__ */ serviceOption(Watch
59517
59739
  const layer$11 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
59518
59740
 
59519
59741
  //#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
59742
+ //#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
59743
  /**
59522
59744
  * @since 1.0.0
59523
59745
  */
@@ -59528,7 +59750,7 @@ const layer$11 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
59528
59750
  const layer$10 = layer$11;
59529
59751
 
59530
59752
  //#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
59753
+ //#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
59754
  /**
59533
59755
  * @since 1.0.0
59534
59756
  */
@@ -59599,7 +59821,7 @@ var NodeHttpIncomingMessage = class extends Class$2 {
59599
59821
  };
59600
59822
 
59601
59823
  //#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
59824
+ //#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
59825
  /**
59604
59826
  * @since 4.0.0
59605
59827
  */
@@ -59626,11 +59848,10 @@ const fetch$1 = /* @__PURE__ */ make$16((request$3, url, signal, fiber$2) => {
59626
59848
  duplex: request$3.body._tag === "Stream" ? "half" : void 0,
59627
59849
  signal
59628
59850
  }),
59629
- catch: (cause) => new RequestError$2({
59851
+ catch: (cause) => new HttpClientError({ reason: new TransportError({
59630
59852
  request: request$3,
59631
- reason: "Transport",
59632
59853
  cause
59633
- })
59854
+ }) })
59634
59855
  }), (response) => fromWeb(request$3, response));
59635
59856
  switch (request$3.body._tag) {
59636
59857
  case "Raw":
@@ -59647,7 +59868,7 @@ const fetch$1 = /* @__PURE__ */ make$16((request$3, url, signal, fiber$2) => {
59647
59868
  const layer$9 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed$1(fetch$1));
59648
59869
 
59649
59870
  //#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
59871
+ //#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
59872
  /**
59652
59873
  * @since 1.0.0
59653
59874
  */
@@ -59771,7 +59992,7 @@ var FileStream = class extends Readable {
59771
59992
  };
59772
59993
 
59773
59994
  //#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
59995
+ //#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
59996
  /**
59776
59997
  * @since 1.0.0
59777
59998
  */
@@ -59793,10 +60014,7 @@ const stream = (source, headers) => makeConfig(headers).pipe(map$5((config) => f
59793
60014
  */
59794
60015
  const persisted = (source, headers) => toPersisted(stream(source, headers), (path$2, file) => tryPromise({
59795
60016
  try: (signal) => NodeStreamP.pipeline(file.file, NFS.createWriteStream(path$2), { signal }),
59796
- catch: (cause) => new MultipartError({
59797
- reason: "InternalError",
59798
- cause
59799
- })
60017
+ catch: (cause) => MultipartError.fromReason("InternalError", cause)
59800
60018
  }));
59801
60019
  const convertPart = (part) => part._tag === "Field" ? new FieldImpl(part.info, part.value) : new FileImpl(part);
59802
60020
  var PartBase = class extends Class$2 {
@@ -59843,15 +60061,9 @@ var FileImpl = class extends PartBase {
59843
60061
  this.contentType = file.info.contentType;
59844
60062
  this.content = fromReadable({
59845
60063
  evaluate: () => file,
59846
- onError: (cause) => new MultipartError({
59847
- reason: "InternalError",
59848
- cause
59849
- })
60064
+ onError: (cause) => MultipartError.fromReason("InternalError", cause)
59850
60065
  });
59851
- this.contentEffect = toUint8Array(() => file, { onError: (cause) => new MultipartError({
59852
- reason: "InternalError",
59853
- cause
59854
- }) });
60066
+ this.contentEffect = toUint8Array(() => file, { onError: (cause) => MultipartError.fromReason("InternalError", cause) });
59855
60067
  }
59856
60068
  toJSON() {
59857
60069
  return {
@@ -59866,32 +60078,17 @@ var FileImpl = class extends PartBase {
59866
60078
  function convertError(cause) {
59867
60079
  switch (cause._tag) {
59868
60080
  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
- });
60081
+ case "MaxParts": return MultipartError.fromReason("TooManyParts", cause);
60082
+ case "MaxFieldSize": return MultipartError.fromReason("FieldTooLarge", cause);
60083
+ case "MaxPartSize": return MultipartError.fromReason("FileTooLarge", cause);
60084
+ case "MaxTotalSize": return MultipartError.fromReason("BodyTooLarge", cause);
59885
60085
  }
59886
- default: return new MultipartError({
59887
- reason: "Parse",
59888
- cause
59889
- });
60086
+ default: return MultipartError.fromReason("Parse", cause);
59890
60087
  }
59891
60088
  }
59892
60089
 
59893
60090
  //#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
60091
+ //#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
60092
  /**
59896
60093
  * @since 1.0.0
59897
60094
  */
@@ -59943,7 +60140,7 @@ const layer$7 = /* @__PURE__ */ succeed$2(Path$1)({
59943
60140
  });
59944
60141
 
59945
60142
  //#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
60143
+ //#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
60144
  /**
59948
60145
  * @since 1.0.0
59949
60146
  */
@@ -59964,7 +60161,7 @@ const layerPosix = layerPosix$1;
59964
60161
  const layerWin32 = layerWin32$1;
59965
60162
 
59966
60163
  //#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
60164
+ //#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
60165
  /**
59969
60166
  * @since 1.0.0
59970
60167
  */
@@ -59975,28 +60172,28 @@ const layerWin32 = layerWin32$1;
59975
60172
  const layer$5 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$22({
59976
60173
  stdout: /* @__PURE__ */ fromWritable({
59977
60174
  evaluate: () => process.stdout,
59978
- onError: (cause) => new SystemError({
60175
+ onError: (cause) => systemError({
59979
60176
  module: "Stdio",
59980
60177
  method: "stdout",
59981
- reason: "Unknown",
60178
+ kind: "Unknown",
59982
60179
  cause
59983
60180
  })
59984
60181
  }),
59985
60182
  stderr: /* @__PURE__ */ fromWritable({
59986
60183
  evaluate: () => process.stderr,
59987
- onError: (cause) => new SystemError({
60184
+ onError: (cause) => systemError({
59988
60185
  module: "Stdio",
59989
60186
  method: "stderr",
59990
- reason: "Unknown",
60187
+ kind: "Unknown",
59991
60188
  cause
59992
60189
  })
59993
60190
  }),
59994
60191
  stdin: /* @__PURE__ */ fromReadable({
59995
60192
  evaluate: () => process.stdin,
59996
- onError: (cause) => new SystemError({
60193
+ onError: (cause) => systemError({
59997
60194
  module: "Stdio",
59998
60195
  method: "stdin",
59999
- reason: "Unknown",
60196
+ kind: "Unknown",
60000
60197
  cause
60001
60198
  }),
60002
60199
  closeOnDone: false
@@ -60004,7 +60201,7 @@ const layer$5 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$22({
60004
60201
  }));
60005
60202
 
60006
60203
  //#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
60204
+ //#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
60205
  /**
60009
60206
  * @since 1.0.0
60010
60207
  */
@@ -60015,7 +60212,7 @@ const layer$5 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$22({
60015
60212
  const layer$4 = layer$5;
60016
60213
 
60017
60214
  //#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
60215
+ //#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
60216
  /**
60020
60217
  * @since 1.0.0
60021
60218
  * @category constructors
@@ -60062,7 +60259,7 @@ const make$2 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQ
60062
60259
  return sync(() => readlineInterface.off("line", onLine));
60063
60260
  })));
60064
60261
  const display = (prompt) => uninterruptible(callback$1((resume) => {
60065
- stdout.write(prompt, (err) => isNullish(err) ? resume(void_$1) : resume(fail$4(new BadArgument({
60262
+ stdout.write(prompt, (err) => isNullish(err) ? resume(void_$1) : resume(fail$4(badArgument({
60066
60263
  module: "Terminal",
60067
60264
  method: "display",
60068
60265
  description: "Failed to write prompt to stdout",
@@ -60086,7 +60283,7 @@ function defaultShouldQuit(input) {
60086
60283
  }
60087
60284
 
60088
60285
  //#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
60286
+ //#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
60287
  /**
60091
60288
  * @since 1.0.0
60092
60289
  */
@@ -60102,7 +60299,7 @@ const make$1 = make$2;
60102
60299
  const layer$2 = layer$3;
60103
60300
 
60104
60301
  //#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
60302
+ //#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
60303
  /**
60107
60304
  * @since 1.0.0
60108
60305
  * @category layer
@@ -60110,7 +60307,7 @@ const layer$2 = layer$3;
60110
60307
  const layer$1 = /* @__PURE__ */ provideMerge(layer$15, /* @__PURE__ */ mergeAll(layer$10, layer$6, layer$4, layer$2));
60111
60308
 
60112
60309
  //#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
60310
+ //#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
60311
  /**
60115
60312
  * @since 1.0.0
60116
60313
  */
@@ -60223,11 +60420,10 @@ var ServerRequestImpl = class ServerRequestImpl extends NodeHttpIncomingMessage
60223
60420
  url;
60224
60421
  headersOverride;
60225
60422
  constructor(source, response, upgradeEffect, url = source.url, headersOverride, remoteAddressOverride) {
60226
- super(source, (cause) => new RequestError$1({
60423
+ super(source, (cause) => new HttpServerError({ reason: new RequestParseError({
60227
60424
  request: this,
60228
- reason: "RequestParseError",
60229
60425
  cause
60230
- }), remoteAddressOverride);
60426
+ }) }), remoteAddressOverride);
60231
60427
  this[TypeId$1] = TypeId$1;
60232
60428
  this.response = response;
60233
60429
  this.upgradeEffect = upgradeEffect;
@@ -60265,11 +60461,10 @@ var ServerRequestImpl = class ServerRequestImpl extends NodeHttpIncomingMessage
60265
60461
  return stream(this.source, this.source.headers);
60266
60462
  }
60267
60463
  get upgrade() {
60268
- return this.upgradeEffect ?? fail$4(new RequestError$1({
60464
+ return this.upgradeEffect ?? fail$4(new HttpServerError({ reason: new RequestParseError({
60269
60465
  request: this,
60270
- reason: "RequestParseError",
60271
60466
  description: "not an upgradeable ServerRequest"
60272
- }));
60467
+ }) }));
60273
60468
  }
60274
60469
  toString() {
60275
60470
  return `ServerRequest(${this.method} ${this.url})`;
@@ -60331,12 +60526,12 @@ const handleResponse = (request$3, response) => {
60331
60526
  signal,
60332
60527
  end: true
60333
60528
  }),
60334
- catch: (cause) => new ResponseError({
60529
+ catch: (cause) => new HttpServerError({ reason: new ResponseError({
60335
60530
  request: request$3,
60336
60531
  response,
60337
60532
  description: "Error writing raw response",
60338
60533
  cause
60339
- })
60534
+ }) })
60340
60535
  }).pipe(interruptible, tapCause(handleCause(nodeResponse, response)));
60341
60536
  return callback$1((resume) => {
60342
60537
  nodeResponse.end(body.body, () => resume(void_$1));
@@ -60358,12 +60553,12 @@ const handleResponse = (request$3, response) => {
60358
60553
  });
60359
60554
  return callback$1((resume, signal) => {
60360
60555
  Readable.fromWeb(r.body, { signal }).pipe(nodeResponse).on("error", (cause) => {
60361
- resume(fail$4(new ResponseError({
60556
+ resume(fail$4(new HttpServerError({ reason: new ResponseError({
60362
60557
  request: request$3,
60363
60558
  response,
60364
60559
  description: "Error writing FormData response",
60365
60560
  cause
60366
- })));
60561
+ }) })));
60367
60562
  }).once("finish", () => {
60368
60563
  resume(void_$1);
60369
60564
  });
@@ -60399,7 +60594,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
60399
60594
  });
60400
60595
 
60401
60596
  //#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
60597
+ //#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
60598
  /**
60404
60599
  * @since 1.0.0
60405
60600
  * @category Run main
@@ -60426,7 +60621,7 @@ const runMain$1 = /* @__PURE__ */ makeRunMain(({ fiber: fiber$2, teardown }) =>
60426
60621
  });
60427
60622
 
60428
60623
  //#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
60624
+ //#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
60625
  /**
60431
60626
  * @since 1.0.0
60432
60627
  */
@@ -141868,7 +142063,7 @@ var Prd = class extends Service()("lalph/Prd", { make: gen(function* () {
141868
142063
  state: issue.state,
141869
142064
  blockedBy: issue.blockedBy
141870
142065
  });
141871
- if (!updatedIssues.has(issue.id)) updatedIssues.set(issue.id, issue);
142066
+ updatedIssues.set(issue.id, issue);
141872
142067
  }
141873
142068
  yield* forEach$1(toRemove, (issueId) => source.cancelIssue(issueId), { concurrency: "unbounded" });
141874
142069
  current = yield* source.issues;
@@ -141919,7 +142114,25 @@ var Prd = class extends Service()("lalph/Prd", { make: gen(function* () {
141919
142114
  };
141920
142115
 
141921
142116
  //#endregion
141922
- //#region src/CliAgent.ts
142117
+ //#region src/commands/agent.ts
142118
+ const commandPrefixSetting = new Setting("commandPrefix", Option(String$1));
142119
+ const parseCommandPrefix = (value) => {
142120
+ const parts = value.trim().split(/\s+/).filter((part) => part.length > 0);
142121
+ return isArrayNonEmpty(parts) ? prefix(parts[0], parts.slice(1)) : identity;
142122
+ };
142123
+ const normalizePrefix = (value) => some(value.trim()).pipe(filter$5(isNonEmpty));
142124
+ const promptForCommandPrefix = gen(function* () {
142125
+ const prefixOption = normalizePrefix(yield* text$2({ message: "Command prefix for agent commands? (leave empty for none)" }));
142126
+ yield* commandPrefixSetting.set(some(prefixOption));
142127
+ return prefixOption;
142128
+ });
142129
+ const getCommandPrefix = gen(function* () {
142130
+ const stored = yield* commandPrefixSetting.get;
142131
+ return match$7(flatten$2(stored), {
142132
+ onNone: () => identity,
142133
+ onSome: parseCommandPrefix
142134
+ });
142135
+ });
141923
142136
  const selectCliAgent = gen(function* () {
141924
142137
  const agent = yield* select({
141925
142138
  message: "Select the CLI agent to use",
@@ -141929,6 +142142,7 @@ const selectCliAgent = gen(function* () {
141929
142142
  }))
141930
142143
  });
141931
142144
  yield* selectedCliAgentId.set(some(agent.id));
142145
+ yield* promptForCommandPrefix;
141932
142146
  return agent;
141933
142147
  });
141934
142148
  const getOrSelectCliAgent = gen(function* () {
@@ -141936,6 +142150,7 @@ const getOrSelectCliAgent = gen(function* () {
141936
142150
  if (isSome(selectedAgent)) return selectedAgent.value;
141937
142151
  return yield* selectCliAgent;
141938
142152
  });
142153
+ const commandAgent = make$27("agent").pipe(withDescription("Select the CLI agent to use"), withHandler(() => selectCliAgent));
141939
142154
 
141940
142155
  //#endregion
141941
142156
  //#region src/commands/root.ts
@@ -141948,10 +142163,6 @@ const targetBranch = string$1("target-branch").pipe(withDescription$1("Target br
141948
142163
  const maxIterationMinutes = integer("max-minutes").pipe(withDescription$1("Maximum number of minutes to allow an iteration to run. Defaults to 90 minutes. Env variable: LALPH_MAX_MINUTES"), withFallbackConfig(int("LALPH_MAX_MINUTES")), withDefault(90));
141949
142164
  const stallMinutes = integer("stall-minutes").pipe(withDescription$1("If no activity occurs for this many minutes, the iteration will be stopped. Defaults to 5 minutes. Env variable: LALPH_STALL_MINUTES"), withFallbackConfig(int("LALPH_STALL_MINUTES")), withDefault(5));
141950
142165
  const specsDirectory = directory("specs").pipe(withDescription$1("Directory to store plan specifications. Env variable: LALPH_SPECS"), withAlias("s"), withFallbackConfig(string$4("LALPH_SPECS")), withDefault(".specs"));
141951
- const commandPrefix = string$1("command-prefix").pipe(withDescription$1(`Prefix to add before the agent command (i.e. "docker sandbox run"). Env variable: LALPH_COMMAND_PREFIX`), withAlias("p"), withFallbackConfig(string$4("LALPH_COMMAND_PREFIX")), map((s) => {
141952
- const parts = s.trim().split(/\s+/).filter((part) => part.length > 0);
141953
- return isArrayNonEmpty(parts) ? prefix(parts[0], parts.slice(1)) : identity;
141954
- }), withDefault(identity));
141955
142166
  const reset = boolean("reset").pipe(withDescription$1("Reset the current issue source before running"), withAlias("r"));
141956
142167
  const commandRoot = make$27("lalph", {
141957
142168
  iterations,
@@ -141960,10 +142171,10 @@ const commandRoot = make$27("lalph", {
141960
142171
  maxIterationMinutes,
141961
142172
  stallMinutes,
141962
142173
  reset,
141963
- specsDirectory,
141964
- commandPrefix
141965
- }).pipe(withHandler(fnUntraced(function* ({ iterations: iterations$1, concurrency: concurrency$1, targetBranch: targetBranch$1, maxIterationMinutes: maxIterationMinutes$1, stallMinutes: stallMinutes$1, specsDirectory: specsDirectory$1, commandPrefix: commandPrefix$1 }) {
142174
+ specsDirectory
142175
+ }).pipe(withHandler(fnUntraced(function* ({ iterations: iterations$1, concurrency: concurrency$1, targetBranch: targetBranch$1, maxIterationMinutes: maxIterationMinutes$1, stallMinutes: stallMinutes$1, specsDirectory: specsDirectory$1 }) {
141966
142176
  const source = yield* build(CurrentIssueSource.layer);
142177
+ const commandPrefix = yield* getCommandPrefix;
141967
142178
  yield* getOrSelectCliAgent;
141968
142179
  const isFinite$3 = Number.isFinite(iterations$1);
141969
142180
  const iterationsDisplay = isFinite$3 ? iterations$1 : "unlimited";
@@ -141984,7 +142195,7 @@ const commandRoot = make$27("lalph", {
141984
142195
  specsDirectory: specsDirectory$1,
141985
142196
  stallTimeout: minutes(stallMinutes$1),
141986
142197
  runTimeout: minutes(maxIterationMinutes$1),
141987
- commandPrefix: commandPrefix$1
142198
+ commandPrefix
141988
142199
  })), catchFilter((e) => e._tag === "NoMoreWork" || e._tag === "QuitError" ? fail$8(e) : e, (e) => logWarning(fail$5(e))), catchTags({
141989
142200
  NoMoreWork(_) {
141990
142201
  if (isFinite$3) {
@@ -142103,11 +142314,11 @@ const ChosenTask = fromJsonString(Struct({
142103
142314
  //#endregion
142104
142315
  //#region src/commands/plan.ts
142105
142316
  const commandPlan = make$27("plan").pipe(withDescription("Iterate on an issue plan and create PRD tasks"), withHandler(fnUntraced(function* () {
142106
- const { specsDirectory: specsDirectory$1, targetBranch: targetBranch$1, commandPrefix: commandPrefix$1 } = yield* commandRoot;
142317
+ const { specsDirectory: specsDirectory$1, targetBranch: targetBranch$1 } = yield* commandRoot;
142107
142318
  yield* plan({
142108
142319
  specsDirectory: specsDirectory$1,
142109
142320
  targetBranch: targetBranch$1,
142110
- commandPrefix: commandPrefix$1
142321
+ commandPrefix: yield* getCommandPrefix
142111
142322
  }).pipe(provide$1(CurrentIssueSource.layer));
142112
142323
  })));
142113
142324
  const plan = fnUntraced(function* (options) {
@@ -142223,13 +142434,9 @@ const commandShell = make$27("shell").pipe(withDescription("Enter an interactive
142223
142434
  //#region src/commands/source.ts
142224
142435
  const commandSource = make$27("source").pipe(withDescription("Select the issue source to use"), withHandler(() => selectIssueSource));
142225
142436
 
142226
- //#endregion
142227
- //#region src/commands/agent.ts
142228
- const commandAgent = make$27("agent").pipe(withDescription("Select the CLI agent to use"), withHandler(() => selectCliAgent));
142229
-
142230
142437
  //#endregion
142231
142438
  //#region package.json
142232
- var version = "0.1.64";
142439
+ var version = "0.1.66";
142233
142440
 
142234
142441
  //#endregion
142235
142442
  //#region src/cli.ts