lalph 0.1.51 → 0.1.52

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@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Pipeable.js
48
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/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@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Function.js
101
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/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@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/equal.js
385
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/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@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Predicate.js
405
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/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
@@ -1116,7 +1116,7 @@ const or = /* @__PURE__ */ dual(2, (self$1, that) => (a) => self$1(a) || that(a)
1116
1116
  const and = /* @__PURE__ */ dual(2, (self$1, that) => (a) => self$1(a) && that(a));
1117
1117
 
1118
1118
  //#endregion
1119
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Hash.js
1119
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Hash.js
1120
1120
  /**
1121
1121
  * This module provides utilities for hashing values in TypeScript.
1122
1122
  *
@@ -1466,7 +1466,7 @@ function withVisitedTracking$1(obj, fn$2) {
1466
1466
  }
1467
1467
 
1468
1468
  //#endregion
1469
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Equal.js
1469
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Equal.js
1470
1470
  /**
1471
1471
  * The unique identifier used to identify objects that implement the `Equal` interface.
1472
1472
  *
@@ -1668,7 +1668,7 @@ const byReferenceUnsafe = (obj) => {
1668
1668
  };
1669
1669
 
1670
1670
  //#endregion
1671
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Redactable.js
1671
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Redactable.js
1672
1672
  /**
1673
1673
  * @since 4.0.0
1674
1674
  */
@@ -1763,7 +1763,7 @@ const emptyServiceMap$1 = {
1763
1763
  };
1764
1764
 
1765
1765
  //#endregion
1766
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Formatter.js
1766
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Formatter.js
1767
1767
  /**
1768
1768
  * @since 4.0.0
1769
1769
  */
@@ -1928,7 +1928,7 @@ function formatJson(input, options) {
1928
1928
  }
1929
1929
 
1930
1930
  //#endregion
1931
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Inspectable.js
1931
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Inspectable.js
1932
1932
  /**
1933
1933
  * This module provides utilities for making values inspectable and debuggable in TypeScript.
1934
1934
  *
@@ -2132,7 +2132,7 @@ var Class$2 = class {
2132
2132
  };
2133
2133
 
2134
2134
  //#endregion
2135
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Utils.js
2135
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Utils.js
2136
2136
  /**
2137
2137
  * @since 2.0.0
2138
2138
  */
@@ -2210,7 +2210,7 @@ const internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[Inte
2210
2210
  const genConstructor = function* () {}.constructor;
2211
2211
 
2212
2212
  //#endregion
2213
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/core.js
2213
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/core.js
2214
2214
  /** @internal */
2215
2215
  const EffectTypeId = `~effect/Effect`;
2216
2216
  /** @internal */
@@ -2603,7 +2603,7 @@ const done$2 = (value) => {
2603
2603
  };
2604
2604
 
2605
2605
  //#endregion
2606
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Data.js
2606
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Data.js
2607
2607
  /**
2608
2608
  * Provides a constructor for a Case Class.
2609
2609
  *
@@ -2754,7 +2754,7 @@ const Error$2 = Error$3;
2754
2754
  const TaggedError = TaggedError$1;
2755
2755
 
2756
2756
  //#endregion
2757
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Order.js
2757
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Order.js
2758
2758
  /**
2759
2759
  * This module provides the `Order` type class for defining total orderings on types.
2760
2760
  * An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than).
@@ -3439,7 +3439,7 @@ const clamp$2 = (O) => dual(2, (self$1, options) => min$2(O)(options.maximum, ma
3439
3439
  const isBetween$1 = (O) => dual(2, (self$1, options) => !isLessThan$3(O)(self$1, options.minimum) && !isGreaterThan$4(O)(self$1, options.maximum));
3440
3440
 
3441
3441
  //#endregion
3442
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/UndefinedOr.js
3442
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/UndefinedOr.js
3443
3443
  /**
3444
3444
  * @since 4.0.0
3445
3445
  */
@@ -3460,7 +3460,7 @@ const liftThrowable = (f) => (...a) => {
3460
3460
  };
3461
3461
 
3462
3462
  //#endregion
3463
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Duration.js
3463
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Duration.js
3464
3464
  const TypeId$56 = "~effect/time/Duration";
3465
3465
  const bigint0$1 = /* @__PURE__ */ BigInt(0);
3466
3466
  const bigint1e3 = /* @__PURE__ */ BigInt(1e3);
@@ -3973,7 +3973,7 @@ const Equivalence$4 = (self$1, that) => matchPair(self$1, that, {
3973
3973
  const equals = /* @__PURE__ */ dual(2, (self$1, that) => Equivalence$4(self$1, that));
3974
3974
 
3975
3975
  //#endregion
3976
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Equivalence.js
3976
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Equivalence.js
3977
3977
  /**
3978
3978
  * Creates a custom equivalence relation with an optimized reference equality check.
3979
3979
  *
@@ -4271,7 +4271,7 @@ function Struct$1(fields) {
4271
4271
  }
4272
4272
 
4273
4273
  //#endregion
4274
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/option.js
4274
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/option.js
4275
4275
  /**
4276
4276
  * @since 2.0.0
4277
4277
  */
@@ -4343,7 +4343,7 @@ const some$1 = (value) => {
4343
4343
  };
4344
4344
 
4345
4345
  //#endregion
4346
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/result.js
4346
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/result.js
4347
4347
  const TypeId$54 = "~effect/data/Result";
4348
4348
  const CommonProto = {
4349
4349
  [TypeId$54]: {
@@ -4425,7 +4425,7 @@ const getSuccess$3 = (self$1) => isFailure$5(self$1) ? none$4 : some$1(self$1.su
4425
4425
  const fromOption$4 = /* @__PURE__ */ dual(2, (self$1, onNone) => isNone$1(self$1) ? fail$10(onNone()) : succeed$7(self$1.value));
4426
4426
 
4427
4427
  //#endregion
4428
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Option.js
4428
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Option.js
4429
4429
  /**
4430
4430
  * Represents the absence of a value by creating an empty `Option`.
4431
4431
  *
@@ -5019,7 +5019,7 @@ const filter$5 = /* @__PURE__ */ dual(2, (self$1, predicate) => filterMap$2(self
5019
5019
  const makeEquivalence$4 = (isEquivalent) => make$50((x, y) => isNone(x) ? isNone(y) : isNone(y) ? false : isEquivalent(x.value, y.value));
5020
5020
 
5021
5021
  //#endregion
5022
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Result.js
5022
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Result.js
5023
5023
  /**
5024
5024
  * Constructs a new `Result` holding a `Success` value.
5025
5025
  *
@@ -5287,7 +5287,7 @@ const getOrThrow = /* @__PURE__ */ getOrThrowWith(identity);
5287
5287
  const succeedNone$2 = /* @__PURE__ */ succeed$6(none$4);
5288
5288
 
5289
5289
  //#endregion
5290
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Filter.js
5290
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Filter.js
5291
5291
  const FailTypeId = "~effect/data/Filter/fail";
5292
5292
  /**
5293
5293
  * @since 4.0.0
@@ -5531,7 +5531,7 @@ const toOption = (self$1) => (input) => {
5531
5531
  };
5532
5532
 
5533
5533
  //#endregion
5534
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/array.js
5534
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/array.js
5535
5535
  /**
5536
5536
  * @since 2.0.0
5537
5537
  */
@@ -5539,7 +5539,7 @@ const toOption = (self$1) => (input) => {
5539
5539
  const isArrayNonEmpty$1 = (self$1) => self$1.length > 0;
5540
5540
 
5541
5541
  //#endregion
5542
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Tuple.js
5542
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Tuple.js
5543
5543
  /**
5544
5544
  * Creates an `Equivalence` for tuples by comparing corresponding elements using the provided `Equivalence`s.
5545
5545
  *
@@ -5577,7 +5577,7 @@ const makeEquivalence$3 = Tuple$1;
5577
5577
  const makeOrder$2 = Tuple$2;
5578
5578
 
5579
5579
  //#endregion
5580
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Iterable.js
5580
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Iterable.js
5581
5581
  /**
5582
5582
  * Get the first element of a `Iterable`, or throw an error if the `Iterable` is empty.
5583
5583
  *
@@ -5699,7 +5699,7 @@ const constEmptyIterator = { next() {
5699
5699
  const empty$13 = () => constEmpty;
5700
5700
 
5701
5701
  //#endregion
5702
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Record.js
5702
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Record.js
5703
5703
  /**
5704
5704
  * Creates a new, empty record.
5705
5705
  *
@@ -5903,7 +5903,7 @@ const makeEquivalence$2 = (equivalence) => {
5903
5903
  };
5904
5904
 
5905
5905
  //#endregion
5906
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Array.js
5906
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Array.js
5907
5907
  /**
5908
5908
  * This module provides utility functions for working with arrays in TypeScript.
5909
5909
  *
@@ -6168,6 +6168,30 @@ const lastNonEmpty = (self$1) => self$1[self$1.length - 1];
6168
6168
  */
6169
6169
  const tailNonEmpty = (self$1) => self$1.slice(1);
6170
6170
  /**
6171
+ * Return the first index for which a predicate holds.
6172
+ *
6173
+ * **Example**
6174
+ *
6175
+ * ```ts
6176
+ * import { Array } from "effect"
6177
+ *
6178
+ * Array.findFirstIndex(
6179
+ * [5, 3, 8, 9],
6180
+ * (x) => x > 5
6181
+ * ) // 2
6182
+ * ```
6183
+ *
6184
+ * @category elements
6185
+ * @since 2.0.0
6186
+ */
6187
+ const findFirstIndex = /* @__PURE__ */ dual(2, (self$1, predicate) => {
6188
+ let i = 0;
6189
+ for (const a of self$1) {
6190
+ if (predicate(a, i)) return i;
6191
+ i++;
6192
+ }
6193
+ });
6194
+ /**
6171
6195
  * Returns the first element that satisfies the specified
6172
6196
  * predicate, or `None` if no such element exists.
6173
6197
  *
@@ -6383,7 +6407,7 @@ const dedupeWith = /* @__PURE__ */ dual(2, (self$1, isEquivalent) => {
6383
6407
  });
6384
6408
 
6385
6409
  //#endregion
6386
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/ServiceMap.js
6410
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/ServiceMap.js
6387
6411
  const ServiceTypeId = "~effect/ServiceMap/Service";
6388
6412
  /**
6389
6413
  * @example
@@ -6861,7 +6885,7 @@ const mergeAll$1 = (...ctxs) => {
6861
6885
  const Reference = Service;
6862
6886
 
6863
6887
  //#endregion
6864
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Scheduler.js
6888
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Scheduler.js
6865
6889
  /**
6866
6890
  * @since 4.0.0
6867
6891
  * @category references
@@ -7067,7 +7091,7 @@ var MixedScheduler = class {
7067
7091
  const MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBeforeYield", { defaultValue: () => 2048 });
7068
7092
 
7069
7093
  //#endregion
7070
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Tracer.js
7094
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Tracer.js
7071
7095
  /**
7072
7096
  * @since 2.0.0
7073
7097
  * @category tags
@@ -7276,7 +7300,7 @@ const randomHexString = /* @__PURE__ */ function() {
7276
7300
  }();
7277
7301
 
7278
7302
  //#endregion
7279
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/References.js
7303
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/References.js
7280
7304
  /**
7281
7305
  * This module provides a collection of reference implementations for commonly used
7282
7306
  * Effect runtime configuration values. These references allow you to access and
@@ -7739,12 +7763,12 @@ const CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogS
7739
7763
  const MinimumLogLevel = /* @__PURE__ */ Reference("effect/References/MinimumLogLevel", { defaultValue: () => "Info" });
7740
7764
 
7741
7765
  //#endregion
7742
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/metric.js
7766
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/metric.js
7743
7767
  /** @internal */
7744
7768
  const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
7745
7769
 
7746
7770
  //#endregion
7747
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/tracer.js
7771
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/tracer.js
7748
7772
  /** @internal */
7749
7773
  const addSpanStackTrace = (options) => {
7750
7774
  if (options?.captureStackTrace === false) return options;
@@ -7775,11 +7799,11 @@ const makeStackCleaner = (line) => (stack) => {
7775
7799
  const spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
7776
7800
 
7777
7801
  //#endregion
7778
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/version.js
7802
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/version.js
7779
7803
  const version = "dev";
7780
7804
 
7781
7805
  //#endregion
7782
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/effect.js
7806
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/effect.js
7783
7807
  /** @internal */
7784
7808
  var Interrupt = class extends FailureBase {
7785
7809
  fiberId;
@@ -9971,7 +9995,7 @@ function interruptChildrenPatch() {
9971
9995
  const undefined_$2 = /* @__PURE__ */ succeed$5(void 0);
9972
9996
 
9973
9997
  //#endregion
9974
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Exit.js
9998
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Exit.js
9975
9999
  ExitTypeId;
9976
10000
  /**
9977
10001
  * Tests if a value is an `Exit`.
@@ -10345,7 +10369,7 @@ const getCause = exitGetCause;
10345
10369
  const getError = exitGetError;
10346
10370
 
10347
10371
  //#endregion
10348
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Deferred.js
10372
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Deferred.js
10349
10373
  const DeferredProto = {
10350
10374
  ["~effect/Deferred"]: {
10351
10375
  _A: identity,
@@ -10565,7 +10589,7 @@ const doneUnsafe = (self$1, effect$1) => {
10565
10589
  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))));
10566
10590
 
10567
10591
  //#endregion
10568
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Scope.js
10592
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Scope.js
10569
10593
  /**
10570
10594
  * The `Scope` module provides functionality for managing resource lifecycles
10571
10595
  * and cleanup operations in a functional and composable manner.
@@ -10839,7 +10863,7 @@ const closeUnsafe = scopeCloseUnsafe;
10839
10863
  const use$1 = scopeUse;
10840
10864
 
10841
10865
  //#endregion
10842
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Layer.js
10866
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Layer.js
10843
10867
  const TypeId$52 = "~effect/Layer";
10844
10868
  const MemoMapTypeId = "~effect/Layer/MemoMap";
10845
10869
  /**
@@ -11643,7 +11667,7 @@ const flatMap$1 = /* @__PURE__ */ dual(2, (self$1, f) => fromBuild((memoMap, sco
11643
11667
  const fresh = (self$1) => fromBuildUnsafe((_, scope$2) => self$1.build(makeMemoMapUnsafe(), scope$2));
11644
11668
 
11645
11669
  //#endregion
11646
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/ExecutionPlan.js
11670
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/ExecutionPlan.js
11647
11671
  /**
11648
11672
  * @since 3.16.0
11649
11673
  * @category Type IDs
@@ -11677,7 +11701,7 @@ const CurrentMetadata$1 = /* @__PURE__ */ Reference("effect/ExecutionPlan/Curren
11677
11701
  }) });
11678
11702
 
11679
11703
  //#endregion
11680
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Cause.js
11704
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Cause.js
11681
11705
  /**
11682
11706
  * @since 2.0.0
11683
11707
  */
@@ -12244,7 +12268,7 @@ const failureAnnotations = failureAnnotations$1;
12244
12268
  const annotations = causeAnnotations;
12245
12269
 
12246
12270
  //#endregion
12247
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Clock.js
12271
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Clock.js
12248
12272
  /**
12249
12273
  * A reference to the current Clock service in the environment.
12250
12274
  *
@@ -12320,7 +12344,7 @@ const currentTimeMillis = currentTimeMillis$1;
12320
12344
  const currentTimeNanos = currentTimeNanos$1;
12321
12345
 
12322
12346
  //#endregion
12323
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/dateTime.js
12347
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/dateTime.js
12324
12348
  /** @internal */
12325
12349
  const TypeId$49 = "~effect/time/DateTime";
12326
12350
  /** @internal */
@@ -12931,7 +12955,7 @@ const formatIsoOffset$1 = (self$1) => {
12931
12955
  const formatIsoZoned$1 = (self$1) => self$1.zone._tag === "Offset" ? formatIsoOffset$1(self$1) : `${formatIsoOffset$1(self$1)}[${self$1.zone.id}]`;
12932
12956
 
12933
12957
  //#endregion
12934
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/String.js
12958
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/String.js
12935
12959
  /**
12936
12960
  * Reference to the global `String` constructor.
12937
12961
  *
@@ -13005,7 +13029,7 @@ const trim = (self$1) => self$1.trim();
13005
13029
  const isNonEmpty = (self$1) => self$1.length > 0;
13006
13030
 
13007
13031
  //#endregion
13008
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Pull.js
13032
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Pull.js
13009
13033
  /**
13010
13034
  * @since 4.0.0
13011
13035
  */
@@ -13087,7 +13111,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self$1, options) => matchCauseEff
13087
13111
  }));
13088
13112
 
13089
13113
  //#endregion
13090
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Schedule.js
13114
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Schedule.js
13091
13115
  /**
13092
13116
  * This module provides utilities for creating and composing schedules for retrying operations,
13093
13117
  * repeating effects, and implementing various timing strategies.
@@ -13467,13 +13491,13 @@ const while_ = /* @__PURE__ */ dual(2, (self$1, predicate) => fromStep(map$8(toS
13467
13491
  const forever$1 = /* @__PURE__ */ spaced(zero);
13468
13492
 
13469
13493
  //#endregion
13470
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/layer.js
13494
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/layer.js
13471
13495
  const provideLayer = (self$1, layer$16) => scopedWith$1((scope$2) => flatMap$2(buildWithScope(layer$16, scope$2), (context) => provideServices$1(self$1, context)));
13472
13496
  /** @internal */
13473
13497
  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));
13474
13498
 
13475
13499
  //#endregion
13476
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/schedule.js
13500
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/schedule.js
13477
13501
  /** @internal */
13478
13502
  const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self$1, schedule, orElse$1) => flatMap$2(toStepWithMetadata(schedule), (step) => {
13479
13503
  let meta = CurrentMetadata.defaultValue();
@@ -13528,7 +13552,7 @@ const buildFromOptions = (options) => {
13528
13552
  };
13529
13553
 
13530
13554
  //#endregion
13531
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/executionPlan.js
13555
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/executionPlan.js
13532
13556
  /** @internal */
13533
13557
  const withExecutionPlan$1 = /* @__PURE__ */ dual(2, (self$1, plan$1) => suspend$3(() => {
13534
13558
  let i = 0;
@@ -13587,7 +13611,7 @@ const scheduleFromStep = (step, first) => {
13587
13611
  const scheduleOnce = /* @__PURE__ */ recurs(1);
13588
13612
 
13589
13613
  //#endregion
13590
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Request.js
13614
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Request.js
13591
13615
  const TypeId$47 = "~effect/Request";
13592
13616
  const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
13593
13617
  _E: (_) => _,
@@ -13608,7 +13632,7 @@ const RequestPrototype = {
13608
13632
  const makeEntry = (options) => options;
13609
13633
 
13610
13634
  //#endregion
13611
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/request.js
13635
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/request.js
13612
13636
  /** @internal */
13613
13637
  const request$2 = /* @__PURE__ */ dual(2, (self$1, resolver) => {
13614
13638
  const withResolver = (resolver$1) => callback$2((resume) => {
@@ -13708,7 +13732,7 @@ function runBatch(batch) {
13708
13732
  }
13709
13733
 
13710
13734
  //#endregion
13711
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Effect.js
13735
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Effect.js
13712
13736
  const TypeId$46 = EffectTypeId;
13713
13737
  /**
13714
13738
  * Tests if a value is an `Effect`.
@@ -19845,7 +19869,7 @@ const catchEager = catchEager$1;
19845
19869
  const fnUntracedEager = fnUntracedEager$1;
19846
19870
 
19847
19871
  //#endregion
19848
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/record.js
19872
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/record.js
19849
19873
  /**
19850
19874
  * @since 4.0.0
19851
19875
  */
@@ -19862,7 +19886,7 @@ function set$5(self$1, key, value) {
19862
19886
  }
19863
19887
 
19864
19888
  //#endregion
19865
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/schema/annotations.js
19889
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/schema/annotations.js
19866
19890
  /** @internal */
19867
19891
  function resolve$2(ast) {
19868
19892
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
@@ -19883,7 +19907,7 @@ const getExpected = /* @__PURE__ */ memoize((ast) => {
19883
19907
  });
19884
19908
 
19885
19909
  //#endregion
19886
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/RegExp.js
19910
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/RegExp.js
19887
19911
  /**
19888
19912
  * This module provides utility functions for working with RegExp in TypeScript.
19889
19913
  *
@@ -19938,7 +19962,7 @@ const isRegExp = isRegExp$1;
19938
19962
  const escape = (string$8) => string$8.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
19939
19963
 
19940
19964
  //#endregion
19941
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/DateTime.js
19965
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/DateTime.js
19942
19966
  TypeId$49;
19943
19967
  TimeZoneTypeId;
19944
19968
  /**
@@ -21552,7 +21576,7 @@ const formatIsoZoned = formatIsoZoned$1;
21552
21576
  const layerCurrentZoneNamed = /* @__PURE__ */ effect(CurrentTimeZone)(zoneMakeNamedEffect$1);
21553
21577
 
21554
21578
  //#endregion
21555
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/encoding/EncodingError.js
21579
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/encoding/EncodingError.js
21556
21580
  /**
21557
21581
  * @since 4.0.0
21558
21582
  */
@@ -21569,7 +21593,7 @@ var EncodingError = class extends TaggedError("EncodingError") {
21569
21593
  };
21570
21594
 
21571
21595
  //#endregion
21572
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/encoding/Base64.js
21596
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/encoding/Base64.js
21573
21597
  /**
21574
21598
  * This module provides encoding & decoding functionality for:
21575
21599
  *
@@ -21874,7 +21898,7 @@ const base64codes = [
21874
21898
  ];
21875
21899
 
21876
21900
  //#endregion
21877
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/encoding/Base64Url.js
21901
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/encoding/Base64Url.js
21878
21902
  /**
21879
21903
  * Encodes the given value into a base64 (URL) `string`.
21880
21904
  *
@@ -21897,12 +21921,12 @@ const encodeUint8Array = (data) => encode$1(data).replace(/=/g, "").replace(/\+/
21897
21921
  const encoder$1 = /* @__PURE__ */ new TextEncoder();
21898
21922
 
21899
21923
  //#endregion
21900
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/redacted.js
21924
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/redacted.js
21901
21925
  /** @internal */
21902
21926
  const redactedRegistry = /* @__PURE__ */ new WeakMap();
21903
21927
 
21904
21928
  //#endregion
21905
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Redacted.js
21929
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Redacted.js
21906
21930
  /**
21907
21931
  * The Redacted module provides functionality for handling sensitive information
21908
21932
  * securely within your application. By using the `Redacted` data type, you can
@@ -21967,7 +21991,7 @@ const Proto$16 = {
21967
21991
  };
21968
21992
 
21969
21993
  //#endregion
21970
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/SchemaIssue.js
21994
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/SchemaIssue.js
21971
21995
  const TypeId$44 = "~effect/SchemaIssue/Issue";
21972
21996
  /**
21973
21997
  * @since 4.0.0
@@ -22373,7 +22397,7 @@ function formatOption(actual) {
22373
22397
  }
22374
22398
 
22375
22399
  //#endregion
22376
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/SchemaGetter.js
22400
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/SchemaGetter.js
22377
22401
  /**
22378
22402
  * @since 4.0.0
22379
22403
  */
@@ -22549,7 +22573,7 @@ function collectBracketPathEntries(isLeaf) {
22549
22573
  }
22550
22574
 
22551
22575
  //#endregion
22552
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/SchemaTransformation.js
22576
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/SchemaTransformation.js
22553
22577
  /**
22554
22578
  * @since 4.0.0
22555
22579
  */
@@ -22661,7 +22685,7 @@ const uint8ArrayFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE
22661
22685
  const fromJsonString$1 = /* @__PURE__ */ new Transformation(/* @__PURE__ */ parseJson$1(), /* @__PURE__ */ stringifyJson());
22662
22686
 
22663
22687
  //#endregion
22664
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/SchemaAST.js
22688
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/SchemaAST.js
22665
22689
  /**
22666
22690
  * @since 4.0.0
22667
22691
  */
@@ -24072,7 +24096,7 @@ const resolveTitle = resolveTitle$1;
24072
24096
  const resolveDescription = resolveDescription$1;
24073
24097
 
24074
24098
  //#endregion
24075
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Brand.js
24099
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Brand.js
24076
24100
  /**
24077
24101
  * This function returns a `Constructor` that **does not apply any runtime
24078
24102
  * checks**, it just returns the provided value. It can be used to create
@@ -24094,7 +24118,7 @@ function nominal() {
24094
24118
  }
24095
24119
 
24096
24120
  //#endregion
24097
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/PlatformError.js
24121
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/PlatformError.js
24098
24122
  /**
24099
24123
  * @since 4.0.0
24100
24124
  */
@@ -24137,7 +24161,7 @@ var SystemError = class extends TaggedError("PlatformError") {
24137
24161
  };
24138
24162
 
24139
24163
  //#endregion
24140
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Fiber.js
24164
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Fiber.js
24141
24165
  `${version}`;
24142
24166
  const await_ = fiberAwait;
24143
24167
  /**
@@ -24345,7 +24369,7 @@ const getCurrent = getCurrentFiber;
24345
24369
  const runIn = fiberRunIn;
24346
24370
 
24347
24371
  //#endregion
24348
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/MutableList.js
24372
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/MutableList.js
24349
24373
  /**
24350
24374
  * @fileoverview
24351
24375
  * MutableList is an efficient, mutable linked list implementation optimized for high-throughput
@@ -24747,7 +24771,7 @@ const take$1 = (self$1) => {
24747
24771
  };
24748
24772
 
24749
24773
  //#endregion
24750
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/MutableRef.js
24774
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/MutableRef.js
24751
24775
  const TypeId$40 = "~effect/MutableRef";
24752
24776
  const MutableRefProto = {
24753
24777
  [TypeId$40]: TypeId$40,
@@ -24790,7 +24814,7 @@ const make$39 = (value) => {
24790
24814
  };
24791
24815
 
24792
24816
  //#endregion
24793
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Queue.js
24817
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Queue.js
24794
24818
  /**
24795
24819
  * This module provides utilities for working with asynchronous queues that support various backpressure strategies.
24796
24820
  *
@@ -25571,7 +25595,7 @@ const finalize = (self$1, exit$2) => {
25571
25595
  };
25572
25596
 
25573
25597
  //#endregion
25574
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Channel.js
25598
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Channel.js
25575
25599
  /**
25576
25600
  * The `Channel` module provides a powerful abstraction for bi-directional communication
25577
25601
  * and streaming operations. A `Channel` is a nexus of I/O operations that supports both
@@ -26033,7 +26057,7 @@ const concurrencyIsSequential = (concurrency$1) => concurrency$1 === void 0 || c
26033
26057
  * @since 2.0.0
26034
26058
  * @category sequencing
26035
26059
  */
26036
- const mapEffect$1 = /* @__PURE__ */ dual((args$1) => isChannel(args$1[0]), (self$1, f, options) => concurrencyIsSequential(options?.concurrency) ? mapEffectSequential(self$1, f) : mapEffectConcurrent(self$1, f, options));
26060
+ const mapEffect$2 = /* @__PURE__ */ dual((args$1) => isChannel(args$1[0]), (self$1, f, options) => concurrencyIsSequential(options?.concurrency) ? mapEffectSequential(self$1, f) : mapEffectConcurrent(self$1, f, options));
26037
26061
  const mapEffectSequential = (self$1, f) => fromTransform$1((upstream, scope$2) => {
26038
26062
  let i = 0;
26039
26063
  return map$5(toTransform(self$1)(upstream, scope$2), flatMap((o) => f(o, i++)));
@@ -26510,7 +26534,7 @@ const runFold = /* @__PURE__ */ dual(3, (self$1, initial, f) => suspend$2(() =>
26510
26534
  const toPullScoped = (self$1, scope$2) => toTransform(self$1)(done(), scope$2);
26511
26535
 
26512
26536
  //#endregion
26513
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/stream.js
26537
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/stream.js
26514
26538
  const TypeId$37 = "~effect/Stream";
26515
26539
  const streamVariance = {
26516
26540
  _R: identity,
@@ -26531,7 +26555,7 @@ const fromChannel$2 = (channel) => {
26531
26555
  };
26532
26556
 
26533
26557
  //#endregion
26534
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Sink.js
26558
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Sink.js
26535
26559
  const TypeId$36 = "~effect/Sink";
26536
26560
  const endVoid = /* @__PURE__ */ succeed$1([void 0]);
26537
26561
  const sinkVariance = {
@@ -26737,7 +26761,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap(f)
26737
26761
  const unwrap$1 = (effect$1) => fromChannel$1(unwrap$2(map$5(effect$1, toChannel$1)));
26738
26762
 
26739
26763
  //#endregion
26740
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/MutableHashMap.js
26764
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/MutableHashMap.js
26741
26765
  const TypeId$35 = "~effect/collections/MutableHashMap";
26742
26766
  const MutableHashMapProto = {
26743
26767
  [TypeId$35]: TypeId$35,
@@ -27075,7 +27099,7 @@ const clear$1 = (self$1) => {
27075
27099
  const size = (self$1) => self$1.backing.size;
27076
27100
 
27077
27101
  //#endregion
27078
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/RcMap.js
27102
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/RcMap.js
27079
27103
  /**
27080
27104
  * @since 3.5.0
27081
27105
  */
@@ -27275,7 +27299,7 @@ const invalidate$2 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function
27275
27299
  }, uninterruptible));
27276
27300
 
27277
27301
  //#endregion
27278
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/rcRef.js
27302
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/rcRef.js
27279
27303
  const TypeId$33 = "~effect/RcRef";
27280
27304
  const stateEmpty = { _tag: "Empty" };
27281
27305
  const stateClosed = { _tag: "Closed" };
@@ -27374,7 +27398,7 @@ const invalidate$1 = (self_) => {
27374
27398
  };
27375
27399
 
27376
27400
  //#endregion
27377
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/RcRef.js
27401
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/RcRef.js
27378
27402
  /**
27379
27403
  * Create an `RcRef` from an acquire `Effect`.
27380
27404
  *
@@ -27449,7 +27473,7 @@ const get$3 = get$4;
27449
27473
  const invalidate = invalidate$1;
27450
27474
 
27451
27475
  //#endregion
27452
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Stream.js
27476
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Stream.js
27453
27477
  /**
27454
27478
  * @since 2.0.0
27455
27479
  */
@@ -27819,7 +27843,7 @@ const map$3 = /* @__PURE__ */ dual(2, (self$1, f) => suspend(() => {
27819
27843
  * @since 2.0.0
27820
27844
  * @category mapping
27821
27845
  */
27822
- const mapEffect = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]), (self$1, f, options) => self$1.channel.pipe(flattenArray, mapEffect$1(f, options), map$4(of), fromChannel));
27846
+ const mapEffect$1 = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]), (self$1, f, options) => self$1.channel.pipe(flattenArray, mapEffect$2(f, options), map$4(of), fromChannel));
27823
27847
  /**
27824
27848
  * @since 2.0.0
27825
27849
  * @category merging
@@ -28199,7 +28223,7 @@ const toReadableStreamWith = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]
28199
28223
  const toReadableStreamEffect = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]), (self$1, options) => map$5(services(), (context) => toReadableStreamWith(self$1, context, options)));
28200
28224
 
28201
28225
  //#endregion
28202
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/FileSystem.js
28226
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/FileSystem.js
28203
28227
  /**
28204
28228
  * This module provides a comprehensive file system abstraction that supports both synchronous
28205
28229
  * and asynchronous file operations through Effect. It includes utilities for file I/O, directory
@@ -28422,7 +28446,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
28422
28446
  var WatchBackend = class extends Service()("effect/platform/FileSystem/WatchBackend") {};
28423
28447
 
28424
28448
  //#endregion
28425
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Path.js
28449
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Path.js
28426
28450
  /**
28427
28451
  * @since 4.0.0
28428
28452
  */
@@ -28847,7 +28871,7 @@ const posixImpl = /* @__PURE__ */ Path$1.of({
28847
28871
  });
28848
28872
 
28849
28873
  //#endregion
28850
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/ConfigProvider.js
28874
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/ConfigProvider.js
28851
28875
  /**
28852
28876
  * @category Constructors
28853
28877
  * @since 4.0.0
@@ -28958,7 +28982,7 @@ function trieNodeAt(root$1, path$2) {
28958
28982
  }
28959
28983
 
28960
28984
  //#endregion
28961
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/LogLevel.js
28985
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/LogLevel.js
28962
28986
  /**
28963
28987
  * @since 2.0.0
28964
28988
  *
@@ -29127,7 +29151,7 @@ const Order = LogLevelOrder;
29127
29151
  const isGreaterThan$1 = isLogLevelGreaterThan;
29128
29152
 
29129
29153
  //#endregion
29130
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Struct.js
29154
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Struct.js
29131
29155
  /**
29132
29156
  * Given a struct of `Equivalence`s returns a new `Equivalence` that compares values of a struct
29133
29157
  * by applying each `Equivalence` to the corresponding property of the struct.
@@ -29202,7 +29226,7 @@ const makeOrder = Struct$2;
29202
29226
  const lambda = (f) => f;
29203
29227
 
29204
29228
  //#endregion
29205
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/SchemaParser.js
29229
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/SchemaParser.js
29206
29230
  /**
29207
29231
  * @since 4.0.0
29208
29232
  */
@@ -29440,7 +29464,7 @@ const recur$1 = /* @__PURE__ */ memoize((ast) => {
29440
29464
  });
29441
29465
 
29442
29466
  //#endregion
29443
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/JsonPointer.js
29467
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/JsonPointer.js
29444
29468
  /**
29445
29469
  * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901.
29446
29470
  *
@@ -29534,7 +29558,7 @@ function escapeToken(token) {
29534
29558
  }
29535
29559
 
29536
29560
  //#endregion
29537
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/schema/schema.js
29561
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/schema/schema.js
29538
29562
  /** @internal */
29539
29563
  const TypeId$29 = "~effect/Schema/Schema";
29540
29564
  const SchemaProto = {
@@ -29563,7 +29587,7 @@ function make$31(ast, options) {
29563
29587
  }
29564
29588
 
29565
29589
  //#endregion
29566
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/schema/to-codec.js
29590
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/schema/to-codec.js
29567
29591
  /** @internal */
29568
29592
  const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
29569
29593
  const out = toCodecJsonBase(ast);
@@ -29633,7 +29657,7 @@ function makeReorder(getPriority) {
29633
29657
  const unknownToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough$1(), /* @__PURE__ */ transform$2(() => null)));
29634
29658
 
29635
29659
  //#endregion
29636
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/internal/schema/representation.js
29660
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/internal/schema/representation.js
29637
29661
  /** @internal */
29638
29662
  function fromAST(ast) {
29639
29663
  const { references, representations: schemas } = fromASTs([ast]);
@@ -30245,7 +30269,7 @@ function getPartPattern(part) {
30245
30269
  }
30246
30270
 
30247
30271
  //#endregion
30248
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Schema.js
30272
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Schema.js
30249
30273
  const TypeId$28 = TypeId$29;
30250
30274
  /**
30251
30275
  * An API for creating schemas for parametric types.
@@ -32241,7 +32265,7 @@ function onSerializerEnsureArray(ast) {
32241
32265
  }
32242
32266
 
32243
32267
  //#endregion
32244
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Config.js
32268
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Config.js
32245
32269
  const TypeId$27 = "~effect/Config";
32246
32270
  /**
32247
32271
  * @since 4.0.0
@@ -32531,7 +32555,7 @@ function int(name) {
32531
32555
  }
32532
32556
 
32533
32557
  //#endregion
32534
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/CliError.js
32558
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/CliError.js
32535
32559
  /**
32536
32560
  * @since 4.0.0
32537
32561
  */
@@ -43537,7 +43561,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
43537
43561
  }));
43538
43562
 
43539
43563
  //#endregion
43540
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/Primitive.js
43564
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/Primitive.js
43541
43565
  var import_ini = /* @__PURE__ */ __toESM(require_ini(), 1);
43542
43566
  var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
43543
43567
  var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
@@ -43830,7 +43854,7 @@ const getTypeName = (primitive) => {
43830
43854
  };
43831
43855
 
43832
43856
  //#endregion
43833
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Terminal.js
43857
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Terminal.js
43834
43858
  const TypeId$25 = "~effect/platform/Terminal";
43835
43859
  const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
43836
43860
  /**
@@ -43863,7 +43887,7 @@ const make$28 = (impl) => Terminal.of({
43863
43887
  });
43864
43888
 
43865
43889
  //#endregion
43866
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/ansi.js
43890
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/ansi.js
43867
43891
  const ESC = "\x1B[";
43868
43892
  const BEL = "\x07";
43869
43893
  const SEP = ";";
@@ -43954,7 +43978,7 @@ const eraseLines = (rows) => {
43954
43978
  };
43955
43979
 
43956
43980
  //#endregion
43957
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/Prompt.js
43981
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/Prompt.js
43958
43982
  /**
43959
43983
  * @since 4.0.0
43960
43984
  */
@@ -44041,6 +44065,16 @@ const run$4 = /* @__PURE__ */ fnUntraced(function* (self$1) {
44041
44065
  const terminal = yield* Terminal;
44042
44066
  return yield* runWithInput(self$1, terminal, yield* terminal.readInput);
44043
44067
  }, /* @__PURE__ */ mapError$2(() => new QuitError({})), scoped$1);
44068
+ const getSelectInitialIndex = (choices) => {
44069
+ let initialIndex = 0;
44070
+ let seenSelected = -1;
44071
+ for (let i = 0; i < choices.length; i++) if (choices[i].selected === true) {
44072
+ if (seenSelected !== -1) throw new Error("InvalidArgumentException: only a single choice can be selected by default for Prompt.select");
44073
+ seenSelected = i;
44074
+ }
44075
+ if (seenSelected !== -1) initialIndex = seenSelected;
44076
+ return initialIndex;
44077
+ };
44044
44078
  /**
44045
44079
  * @since 4.0.0
44046
44080
  * @category constructors
@@ -44050,20 +44084,54 @@ const select = (options) => {
44050
44084
  maxPerPage: 10,
44051
44085
  ...options
44052
44086
  };
44053
- let initialIndex = 0;
44054
- let seenSelected = -1;
44055
- for (let i = 0; i < opts.choices.length; i++) if (opts.choices[i].selected === true) {
44056
- if (seenSelected !== -1) throw new Error("InvalidArgumentException: only a single choice can be selected by default for Prompt.select");
44057
- seenSelected = i;
44058
- }
44059
- if (seenSelected !== -1) initialIndex = seenSelected;
44060
- return custom(initialIndex, {
44087
+ return custom(getSelectInitialIndex(opts.choices), {
44061
44088
  render: handleSelectRender(opts),
44062
44089
  process: handleSelectProcess(opts),
44063
44090
  clear: () => handleSelectClear(opts)
44064
44091
  });
44065
44092
  };
44066
44093
  /**
44094
+ * Creates a prompt that lets users filter select choices by typing.
44095
+ *
44096
+ * **Example**
44097
+ *
44098
+ * ```ts
44099
+ * import { Prompt } from "effect/unstable/cli"
44100
+ *
44101
+ * const language = Prompt.autoComplete({
44102
+ * message: "Choose a language",
44103
+ * choices: [
44104
+ * { title: "TypeScript", value: "ts" },
44105
+ * { title: "Rust", value: "rs" },
44106
+ * { title: "Kotlin", value: "kt" }
44107
+ * ]
44108
+ * })
44109
+ * ```
44110
+ *
44111
+ * @since 4.0.0
44112
+ * @category constructors
44113
+ */
44114
+ const autoComplete = (options) => {
44115
+ const opts = {
44116
+ maxPerPage: 10,
44117
+ filterLabel: "filter",
44118
+ filterPlaceholder: "type to filter",
44119
+ emptyMessage: "No matches",
44120
+ ...options
44121
+ };
44122
+ const initialIndex = getSelectInitialIndex(opts.choices);
44123
+ const filtered = filterAutoCompleteChoices(opts.choices, "");
44124
+ return custom({
44125
+ query: "",
44126
+ index: filtered.length === 0 ? 0 : filtered.includes(initialIndex) ? initialIndex : filtered[0],
44127
+ filtered
44128
+ }, {
44129
+ render: handleAutoCompleteRender(opts),
44130
+ process: handleAutoCompleteProcess(opts),
44131
+ clear: handleAutoCompleteClear(opts)
44132
+ });
44133
+ };
44134
+ /**
44067
44135
  * @since 4.0.0
44068
44136
  * @category constructors
44069
44137
  */
@@ -44130,6 +44198,33 @@ const renderChoiceDescription = (choice$3, isActive) => {
44130
44198
  if (!choice$3.disabled && choice$3.description && isActive) return annotate("- " + choice$3.description, blackBright);
44131
44199
  return "";
44132
44200
  };
44201
+ const filterAutoCompleteChoices = (choices, query) => {
44202
+ const normalizedQuery = query.toLowerCase();
44203
+ const indices = [];
44204
+ for (let i = 0; i < choices.length; i++) if (choices[i].title.toLowerCase().includes(normalizedQuery)) indices.push(i);
44205
+ return indices;
44206
+ };
44207
+ const updateAutoCompleteState = (state, options, query) => {
44208
+ const filtered = filterAutoCompleteChoices(options.choices, query);
44209
+ if (filtered.length === 0) return {
44210
+ ...state,
44211
+ query,
44212
+ filtered,
44213
+ index: 0
44214
+ };
44215
+ if (filtered.includes(state.index)) return {
44216
+ ...state,
44217
+ query,
44218
+ filtered
44219
+ };
44220
+ return {
44221
+ ...state,
44222
+ query,
44223
+ filtered,
44224
+ index: filtered[0]
44225
+ };
44226
+ };
44227
+ const autoCompleteCursor = (state) => findFirstIndex(state.filtered, (index) => index === state.index) ?? 0;
44133
44228
  const renderSelectOutput = (leadingSymbol, trailingSymbol, options) => {
44134
44229
  const prefix$1 = leadingSymbol + " ";
44135
44230
  return match$5(options.message.split(NEWLINE_REGEXP), {
@@ -44139,6 +44234,20 @@ const renderSelectOutput = (leadingSymbol, trailingSymbol, options) => {
44139
44234
  }
44140
44235
  });
44141
44236
  };
44237
+ const renderAutoCompleteFilter = (state, options) => {
44238
+ const filterValue$1 = state.query.length === 0 ? annotate(options.filterPlaceholder, blackBright) : annotate(state.query, combine(underlined, cyanBright));
44239
+ return `[${options.filterLabel}: ${filterValue$1}]`;
44240
+ };
44241
+ const renderAutoCompleteOutput = (state, leadingSymbol, trailingSymbol, options) => {
44242
+ const prefix$1 = leadingSymbol + " ";
44243
+ const filter$6 = renderAutoCompleteFilter(state, options);
44244
+ return match$5(options.message.split(NEWLINE_REGEXP), {
44245
+ onEmpty: () => prefix$1 + " " + trailingSymbol + " " + filter$6,
44246
+ onNonEmpty: (promptLines) => {
44247
+ return prefix$1 + map$9(promptLines, (line) => annotateLine(line)).join("\n") + " " + trailingSymbol + " " + filter$6;
44248
+ }
44249
+ });
44250
+ };
44142
44251
  const renderChoicePrefix = (state, choices, toDisplay, currentIndex, figures) => {
44143
44252
  let prefix$1 = " ";
44144
44253
  if (currentIndex === toDisplay.startIndex && toDisplay.startIndex > 0) prefix$1 = figures.arrowUp;
@@ -44149,6 +44258,17 @@ const renderChoicePrefix = (state, choices, toDisplay, currentIndex, figures) =>
44149
44258
  }
44150
44259
  return state === currentIndex ? annotate(figures.pointer, cyanBright) + prefix$1 : prefix$1 + " ";
44151
44260
  };
44261
+ const renderAutoCompleteChoicePrefix = (state, options, toDisplay, currentIndex, figures) => {
44262
+ let prefix$1 = " ";
44263
+ if (currentIndex === toDisplay.startIndex && toDisplay.startIndex > 0) prefix$1 = figures.arrowUp;
44264
+ else if (currentIndex === toDisplay.endIndex - 1 && toDisplay.endIndex < state.filtered.length) prefix$1 = figures.arrowDown;
44265
+ const choiceIndex = state.filtered[currentIndex];
44266
+ if (options.choices[choiceIndex].disabled) {
44267
+ const annotation = combine(bold, blackBright);
44268
+ return state.index === choiceIndex ? annotate(figures.pointer, annotation) + prefix$1 : prefix$1 + " ";
44269
+ }
44270
+ return state.index === choiceIndex ? annotate(figures.pointer, cyanBright) + prefix$1 : prefix$1 + " ";
44271
+ };
44152
44272
  const renderChoiceTitle = (choice$3, isSelected) => {
44153
44273
  const title = choice$3.title;
44154
44274
  if (isSelected) return choice$3.disabled ? annotate(title, combine(underlined, blackBright)) : annotate(title, combine(underlined, cyanBright));
@@ -44168,17 +44288,43 @@ const renderSelectChoices = (state, options, figures) => {
44168
44288
  }
44169
44289
  return documents.join("\n");
44170
44290
  };
44291
+ const renderAutoCompleteChoices = (state, options, figures) => {
44292
+ if (state.filtered.length === 0) return annotate(options.emptyMessage, blackBright);
44293
+ const toDisplay = entriesToDisplay(autoCompleteCursor(state), state.filtered.length, options.maxPerPage);
44294
+ const documents = [];
44295
+ for (let index = toDisplay.startIndex; index < toDisplay.endIndex; index++) {
44296
+ const choiceIndex = state.filtered[index];
44297
+ const choice$3 = options.choices[choiceIndex];
44298
+ const isSelected = state.index === choiceIndex;
44299
+ const prefix$1 = renderAutoCompleteChoicePrefix(state, options, toDisplay, index, figures);
44300
+ const title = renderChoiceTitle(choice$3, isSelected);
44301
+ const description = renderChoiceDescription(choice$3, isSelected);
44302
+ documents.push(prefix$1 + title + " " + description);
44303
+ }
44304
+ return documents.join("\n");
44305
+ };
44171
44306
  const renderSelectNextFrame = /* @__PURE__ */ fnUntraced(function* (state, options) {
44172
44307
  const figures = yield* platformFigures;
44173
44308
  const choices = renderSelectChoices(state, options, figures);
44174
44309
  const promptMsg = renderSelectOutput(annotate("?", cyanBright), annotate(figures.pointerSmall, blackBright), options);
44175
44310
  return cursorHide + promptMsg + "\n" + choices;
44176
44311
  });
44312
+ const renderAutoCompleteNextFrame = /* @__PURE__ */ fnUntraced(function* (state, options) {
44313
+ const figures = yield* platformFigures;
44314
+ const choices = renderAutoCompleteChoices(state, options, figures);
44315
+ const promptMsg = renderAutoCompleteOutput(state, annotate("?", cyanBright), annotate(figures.pointerSmall, blackBright), options);
44316
+ return cursorHide + promptMsg + "\n" + choices;
44317
+ });
44177
44318
  const renderSelectSubmission = /* @__PURE__ */ fnUntraced(function* (state, options) {
44178
44319
  const figures = yield* platformFigures;
44179
44320
  const selected = options.choices[state].title;
44180
44321
  return renderSelectOutput(annotate(figures.tick, green), annotate(figures.ellipsis, blackBright), options) + " " + annotate(selected, white) + "\n";
44181
44322
  });
44323
+ const renderAutoCompleteSubmission = /* @__PURE__ */ fnUntraced(function* (state, options) {
44324
+ const figures = yield* platformFigures;
44325
+ const selected = options.choices[state.index].title;
44326
+ return renderAutoCompleteOutput(state, annotate(figures.tick, green), annotate(figures.ellipsis, blackBright), options) + " " + annotate(selected, white) + "\n";
44327
+ });
44182
44328
  const processSelectCursorUp = (state, choices) => {
44183
44329
  if (state === 0) return succeed$1(Action.NextFrame({ state: choices.length - 1 }));
44184
44330
  return succeed$1(Action.NextFrame({ state: state - 1 }));
@@ -44190,6 +44336,34 @@ const processSelectCursorDown = (state, choices) => {
44190
44336
  const processSelectNext = (state, choices) => {
44191
44337
  return succeed$1(Action.NextFrame({ state: (state + 1) % choices.length }));
44192
44338
  };
44339
+ const processAutoCompleteCursorUp = (state) => {
44340
+ if (state.filtered.length === 0) return succeed$1(Action.Beep());
44341
+ const cursor = autoCompleteCursor(state);
44342
+ const nextCursor = cursor === 0 ? state.filtered.length - 1 : cursor - 1;
44343
+ return succeed$1(Action.NextFrame({ state: {
44344
+ ...state,
44345
+ index: state.filtered[nextCursor]
44346
+ } }));
44347
+ };
44348
+ const processAutoCompleteCursorDown = (state) => {
44349
+ if (state.filtered.length === 0) return succeed$1(Action.Beep());
44350
+ const nextCursor = (autoCompleteCursor(state) + 1) % state.filtered.length;
44351
+ return succeed$1(Action.NextFrame({ state: {
44352
+ ...state,
44353
+ index: state.filtered[nextCursor]
44354
+ } }));
44355
+ };
44356
+ const processAutoCompleteNext = (state) => processAutoCompleteCursorDown(state);
44357
+ const processAutoCompleteBackspace = (state, options) => {
44358
+ if (state.query.length === 0) return succeed$1(Action.Beep());
44359
+ const query = state.query.slice(0, state.query.length - 1);
44360
+ return succeed$1(Action.NextFrame({ state: updateAutoCompleteState(state, options, query) }));
44361
+ };
44362
+ const processAutoCompleteInput = (input, state, options) => {
44363
+ if (input.length === 0) return succeed$1(Action.Beep());
44364
+ const query = state.query + input;
44365
+ return succeed$1(Action.NextFrame({ state: updateAutoCompleteState(state, options, query) }));
44366
+ };
44193
44367
  const handleSelectRender = (options) => {
44194
44368
  return (state, action) => {
44195
44369
  return Action.$match(action, {
@@ -44199,11 +44373,28 @@ const handleSelectRender = (options) => {
44199
44373
  });
44200
44374
  };
44201
44375
  };
44376
+ const handleAutoCompleteRender = (options) => {
44377
+ return (state, action) => {
44378
+ return Action.$match(action, {
44379
+ Beep: () => succeed$1(renderBeep),
44380
+ NextFrame: ({ state: state$1 }) => renderAutoCompleteNextFrame(state$1, options),
44381
+ Submit: () => renderAutoCompleteSubmission(state, options)
44382
+ });
44383
+ };
44384
+ };
44202
44385
  const handleSelectClear = /* @__PURE__ */ fnUntraced(function* (options) {
44203
44386
  const columns = yield* (yield* Terminal).columns;
44204
44387
  const clearPrompt = eraseLine + cursorLeft;
44205
44388
  return eraseText("\n".repeat(Math.min(options.choices.length, options.maxPerPage)) + options.message, columns) + clearPrompt;
44206
44389
  });
44390
+ const handleAutoCompleteClear = (options) => fnUntraced(function* (state, _) {
44391
+ const columns = yield* (yield* Terminal).columns;
44392
+ const clearPrompt = eraseLine + cursorLeft;
44393
+ const filterValue$1 = state.query.length === 0 ? options.filterPlaceholder : state.query;
44394
+ const prompt = `${options.message} [${options.filterLabel}: ${filterValue$1}]`;
44395
+ const visibleChoices = Math.min(Math.max(state.filtered.length, 1), options.maxPerPage);
44396
+ return eraseText("\n".repeat(visibleChoices) + prompt, columns) + clearPrompt;
44397
+ });
44207
44398
  const handleSelectProcess = (options) => {
44208
44399
  return (input, state) => {
44209
44400
  switch (input.key.name) {
@@ -44222,6 +44413,26 @@ const handleSelectProcess = (options) => {
44222
44413
  }
44223
44414
  };
44224
44415
  };
44416
+ const handleAutoCompleteProcess = (options) => {
44417
+ return (input, state) => {
44418
+ switch (input.key.name) {
44419
+ case "k":
44420
+ case "up": return processAutoCompleteCursorUp(state);
44421
+ case "j":
44422
+ case "down": return processAutoCompleteCursorDown(state);
44423
+ case "tab": return processAutoCompleteNext(state);
44424
+ case "backspace": return processAutoCompleteBackspace(state, options);
44425
+ case "enter":
44426
+ case "return": {
44427
+ if (state.filtered.length === 0) return succeed$1(Action.Beep());
44428
+ const selected = options.choices[state.index];
44429
+ if (selected.disabled) return succeed$1(Action.Beep());
44430
+ return succeed$1(Action.Submit({ value: selected.value }));
44431
+ }
44432
+ default: return processAutoCompleteInput(input.input ?? "", state, options);
44433
+ }
44434
+ };
44435
+ };
44225
44436
  const getValue = (state, options) => {
44226
44437
  return state.value.length > 0 ? state.value : options.default;
44227
44438
  };
@@ -44385,7 +44596,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
44385
44596
  };
44386
44597
 
44387
44598
  //#endregion
44388
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/Param.js
44599
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/Param.js
44389
44600
  /**
44390
44601
  * @internal
44391
44602
  *
@@ -44784,6 +44995,37 @@ const transform = (self$1, f) => Object.assign(Object.create(Proto$12), {
44784
44995
  parse: f(self$1.parse)
44785
44996
  });
44786
44997
  /**
44998
+ * Transforms the parsed value of an option using an effectful mapping function.
44999
+ *
45000
+ * @example
45001
+ * ```ts
45002
+ * import * as Param from "effect/unstable/cli/Param"
45003
+ *
45004
+ * // @internal - this module is not exported publicly
45005
+ * import { Effect } from "effect"
45006
+ * import { CliError } from "effect/unstable/cli"
45007
+ *
45008
+ * const validatedEmail = Param.string(Param.flagKind, "email").pipe(
45009
+ * Param.mapEffect((email) =>
45010
+ * email.includes("@")
45011
+ * ? Effect.succeed(email)
45012
+ * : Effect.fail(
45013
+ * new CliError.InvalidValue({
45014
+ * option: "email",
45015
+ * value: email,
45016
+ * expected: "valid email format",
45017
+ * kind: "flag"
45018
+ * })
45019
+ * )
45020
+ * )
45021
+ * )
45022
+ * ```
45023
+ *
45024
+ * @since 4.0.0
45025
+ * @category combinators
45026
+ */
45027
+ const mapEffect = /* @__PURE__ */ dual(2, (self$1, f) => transform(self$1, (parse$3) => (args$1) => flatMap(parse$3(args$1), ([leftover, a]) => f(a).pipe(map$5((b) => [leftover, b])))));
45028
+ /**
44787
45029
  * Creates an optional option that returns None when not provided.
44788
45030
  *
44789
45031
  * Optional options never fail with MissingOption errors. If the option is not
@@ -44842,7 +45084,13 @@ const optional$1 = (param) => {
44842
45084
  * @since 4.0.0
44843
45085
  * @category combinators
44844
45086
  */
44845
- const withDefault$1 = /* @__PURE__ */ dual(2, (self$1, defaultValue) => map$1(optional$1(self$1), getOrElse(() => defaultValue)));
45087
+ const withDefault$1 = /* @__PURE__ */ dual(2, (self$1, defaultValue) => {
45088
+ if (!isEffect(defaultValue)) return map$1(optional$1(self$1), getOrElse(() => defaultValue));
45089
+ return mapEffect(optional$1(self$1), match$7({
45090
+ onNone: () => defaultValue,
45091
+ onSome: succeed$1
45092
+ }));
45093
+ });
44846
45094
  /**
44847
45095
  * Adds a fallback config that is loaded when a required parameter is missing.
44848
45096
  *
@@ -45064,7 +45312,7 @@ const getParamMetadata = (param) => {
45064
45312
  };
45065
45313
 
45066
45314
  //#endregion
45067
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/CliOutput.js
45315
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/CliOutput.js
45068
45316
  /**
45069
45317
  * Service reference for the CLI output formatter. Provides a default implementation
45070
45318
  * that can be overridden for custom formatting or testing.
@@ -45266,7 +45514,7 @@ const formatHelpDocImpl = (doc, colors$1) => {
45266
45514
  };
45267
45515
 
45268
45516
  //#endregion
45269
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Console.js
45517
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Console.js
45270
45518
  /**
45271
45519
  * A reference to the current console service in the Effect system.
45272
45520
  *
@@ -45359,7 +45607,7 @@ const log = (...args$1) => consoleWith((console$1) => sync$1(() => {
45359
45607
  }));
45360
45608
 
45361
45609
  //#endregion
45362
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/config.js
45610
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/config.js
45363
45611
  const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
45364
45612
  /**
45365
45613
  * Parses a Command.Config into a ConfigInternal.
@@ -45429,7 +45677,7 @@ const reconstructTree = (tree, results) => {
45429
45677
  };
45430
45678
 
45431
45679
  //#endregion
45432
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/command.js
45680
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/command.js
45433
45681
  /**
45434
45682
  * Command Implementation
45435
45683
  * ======================
@@ -45582,7 +45830,7 @@ const getHelpForCommandPath = (command, commandPath) => {
45582
45830
  };
45583
45831
 
45584
45832
  //#endregion
45585
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/bash.js
45833
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/bash.js
45586
45834
  /**
45587
45835
  * Dynamic Bash completion template.
45588
45836
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -45639,7 +45887,7 @@ complete -F _${executableName}_dynamic_completions ${executableName}
45639
45887
  };
45640
45888
 
45641
45889
  //#endregion
45642
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/fish.js
45890
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/fish.js
45643
45891
  /**
45644
45892
  * Dynamic Fish completion template.
45645
45893
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -45699,7 +45947,7 @@ complete -c ${executableName} -f -a '(__${executableName}_complete)'
45699
45947
  };
45700
45948
 
45701
45949
  //#endregion
45702
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/zsh.js
45950
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/zsh.js
45703
45951
  /**
45704
45952
  * Dynamic Zsh completion template.
45705
45953
  * This generates a completion script that calls the CLI at runtime to get completions.
@@ -45821,7 +46069,7 @@ fi
45821
46069
  };
45822
46070
 
45823
46071
  //#endregion
45824
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/core.js
46072
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/core.js
45825
46073
  /**
45826
46074
  * Core dynamic completion functions.
45827
46075
  */
@@ -45851,7 +46099,7 @@ const isCompletionRequest = (args$1) => {
45851
46099
  };
45852
46100
 
45853
46101
  //#endregion
45854
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/completions/shared.js
46102
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/completions/shared.js
45855
46103
  /** @internal */
45856
46104
  const getSingles = (flags) => flags.flatMap(extractSingleParams).filter((s) => s.kind === "flag").map((s) => {
45857
46105
  const description = s.description;
@@ -45868,12 +46116,12 @@ const getSingles = (flags) => flags.flatMap(extractSingleParams).filter((s) => s
45868
46116
  });
45869
46117
 
45870
46118
  //#endregion
45871
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/completions/types.js
46119
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/completions/types.js
45872
46120
  /** @internal */
45873
46121
  const optionRequiresValue = (s) => s.primitiveTag !== "Boolean";
45874
46122
 
45875
46123
  //#endregion
45876
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/handler.js
46124
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/handler.js
45877
46125
  /**
45878
46126
  * Runtime completion handler for dynamic completion.
45879
46127
  * This processes completion requests from the shell and returns appropriate suggestions.
@@ -46045,7 +46293,7 @@ const handleCompletionRequest = (rootCmd) => {
46045
46293
  };
46046
46294
 
46047
46295
  //#endregion
46048
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/lexer.js
46296
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/lexer.js
46049
46297
  /** @internal */
46050
46298
  function lex(argv) {
46051
46299
  const endIndex = argv.indexOf("--");
@@ -46097,7 +46345,7 @@ const lexTokens = (args$1) => {
46097
46345
  };
46098
46346
 
46099
46347
  //#endregion
46100
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
46348
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
46101
46349
  /**
46102
46350
  * Simple Levenshtein distance implementation (small N, no perf worries)
46103
46351
  */
@@ -46126,7 +46374,7 @@ const suggest = (input, candidates) => {
46126
46374
  };
46127
46375
 
46128
46376
  //#endregion
46129
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/Flag.js
46377
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/Flag.js
46130
46378
  /**
46131
46379
  * Creates a string flag that accepts text input.
46132
46380
  *
@@ -46329,7 +46577,7 @@ const optional = (param) => optional$1(param);
46329
46577
  * @since 4.0.0
46330
46578
  * @category optionality
46331
46579
  */
46332
- const withDefault = /* @__PURE__ */ dual(2, (self$1, defaultValue) => withDefault$1(self$1, defaultValue));
46580
+ const withDefault = withDefault$1;
46333
46581
  /**
46334
46582
  * Adds a fallback config that is loaded when a required flag is missing.
46335
46583
  *
@@ -46371,7 +46619,7 @@ const withFallbackConfig = /* @__PURE__ */ dual(2, (self$1, config) => withFallb
46371
46619
  const map = /* @__PURE__ */ dual(2, (self$1, f) => map$1(self$1, f));
46372
46620
 
46373
46621
  //#endregion
46374
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
46622
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
46375
46623
  /**
46376
46624
  * Built-in options that are automatically available for CLI commands.
46377
46625
  * @since 4.0.0
@@ -46425,7 +46673,7 @@ const completionsFlag = /* @__PURE__ */ choice("completions", [
46425
46673
  ]).pipe(optional, /* @__PURE__ */ map((v) => map$11(v, (s) => s === "sh" ? "bash" : s)), /* @__PURE__ */ withDescription$1("Print shell completion script for the given shell"));
46426
46674
 
46427
46675
  //#endregion
46428
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/internal/parser.js
46676
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/internal/parser.js
46429
46677
  /**
46430
46678
  * Parsing Pipeline for CLI Commands
46431
46679
  * ==================================
@@ -46736,7 +46984,7 @@ const scanCommandLevel = (tokens, context) => {
46736
46984
  };
46737
46985
 
46738
46986
  //#endregion
46739
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/cli/Command.js
46987
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/cli/Command.js
46740
46988
  /**
46741
46989
  * @since 4.0.0
46742
46990
  */
@@ -47080,7 +47328,7 @@ const runWith = (command, config) => {
47080
47328
  };
47081
47329
 
47082
47330
  //#endregion
47083
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Cache.js
47331
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Cache.js
47084
47332
  /**
47085
47333
  * @since 4.0.0
47086
47334
  */
@@ -47451,7 +47699,7 @@ const set$3 = /* @__PURE__ */ dual(3, (self$1, key, value) => withFiber$1((fiber
47451
47699
  }));
47452
47700
 
47453
47701
  //#endregion
47454
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/FiberHandle.js
47702
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/FiberHandle.js
47455
47703
  /**
47456
47704
  * @since 2.0.0
47457
47705
  */
@@ -47647,7 +47895,7 @@ const runImpl$1 = (self$1, effect$1, options) => withFiber((parent) => {
47647
47895
  });
47648
47896
 
47649
47897
  //#endregion
47650
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/FiberSet.js
47898
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/FiberSet.js
47651
47899
  /**
47652
47900
  * @since 2.0.0
47653
47901
  */
@@ -47900,7 +48148,7 @@ const awaitEmpty = (self$1) => whileLoop({
47900
48148
  });
47901
48149
 
47902
48150
  //#endregion
47903
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
48151
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
47904
48152
  /**
47905
48153
  * @since 4.0.0
47906
48154
  */
@@ -48044,7 +48292,7 @@ const toSchemaStore = (self$1, schema$1) => {
48044
48292
  };
48045
48293
 
48046
48294
  //#endregion
48047
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Runtime.js
48295
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Runtime.js
48048
48296
  /**
48049
48297
  * This module provides utilities for running Effect programs and managing their execution lifecycle.
48050
48298
  *
@@ -48180,7 +48428,7 @@ const makeRunMain = (f) => dual((args$1) => isEffect(args$1[0]), (effect$1, opti
48180
48428
  });
48181
48429
 
48182
48430
  //#endregion
48183
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/Stdio.js
48431
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/Stdio.js
48184
48432
  /**
48185
48433
  * @since 4.0.0
48186
48434
  * @category Type IDs
@@ -49591,7 +49839,7 @@ var Mime_default$1 = Mime;
49591
49839
  var src_default = new Mime_default$1(standard_default, other_default)._freeze();
49592
49840
 
49593
49841
  //#endregion
49594
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/Mime.js
49842
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/Mime.js
49595
49843
  /**
49596
49844
  * @since 1.0.0
49597
49845
  */
@@ -49602,7 +49850,7 @@ var src_default = new Mime_default$1(standard_default, other_default)._freeze();
49602
49850
  var Mime_default = src_default;
49603
49851
 
49604
49852
  //#endregion
49605
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
49853
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
49606
49854
  /**
49607
49855
  * A module providing a generic service interface for spawning child processes.
49608
49856
  *
@@ -49648,7 +49896,7 @@ const makeHandle = (params) => Object.assign(Object.create(HandleProto), params)
49648
49896
  const ChildProcessSpawner = /* @__PURE__ */ Service("effect/process/ChildProcessSpawner");
49649
49897
 
49650
49898
  //#endregion
49651
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/process/ChildProcess.js
49899
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/process/ChildProcess.js
49652
49900
  const TypeId$16 = "~effect/unstable/process/ChildProcess";
49653
49901
  const Proto$7 = {
49654
49902
  ...PipeInspectableProto,
@@ -49805,7 +50053,7 @@ const parseFdName = (name) => {
49805
50053
  const fdName = (fd) => `fd${fd}`;
49806
50054
 
49807
50055
  //#endregion
49808
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/internal/process.js
50056
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/internal/process.js
49809
50057
  /**
49810
50058
  * This is a derivative work copyright (c) 2025 Effectful Technologies Inc, under MIT license.
49811
50059
  *
@@ -49926,7 +50174,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
49926
50174
  ];
49927
50175
 
49928
50176
  //#endregion
49929
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/internal/utils.js
50177
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/internal/utils.js
49930
50178
  /** @internal */
49931
50179
  const handleErrnoException = (module$1, method) => (err, [path$2]) => {
49932
50180
  let reason = "Unknown";
@@ -49964,7 +50212,7 @@ const handleErrnoException = (module$1, method) => (err, [path$2]) => {
49964
50212
  };
49965
50213
 
49966
50214
  //#endregion
49967
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/NodeSink.js
50215
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/NodeSink.js
49968
50216
  /**
49969
50217
  * @category constructors
49970
50218
  * @since 1.0.0
@@ -50003,7 +50251,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap((chunk) => {
50003
50251
  }) : identity);
50004
50252
 
50005
50253
  //#endregion
50006
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/NodeStream.js
50254
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/NodeStream.js
50007
50255
  /**
50008
50256
  * @since 1.0.0
50009
50257
  */
@@ -50134,7 +50382,7 @@ const readableToPullUnsafe = (options) => {
50134
50382
  const defaultOnError = (error$1) => new UnknownError(error$1);
50135
50383
 
50136
50384
  //#endregion
50137
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
50385
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
50138
50386
  const toError = (error$1) => error$1 instanceof globalThis.Error ? error$1 : new globalThis.Error(String(error$1));
50139
50387
  const toPlatformError = (method, error$1, command) => {
50140
50388
  const { commands } = flattenCommand(command);
@@ -50550,7 +50798,7 @@ const flattenCommand = (command) => {
50550
50798
  };
50551
50799
 
50552
50800
  //#endregion
50553
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/Cookies.js
50801
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/Cookies.js
50554
50802
  /**
50555
50803
  * @since 4.0.0
50556
50804
  */
@@ -50926,7 +51174,7 @@ const tryDecodeURIComponent = (str) => {
50926
51174
  };
50927
51175
 
50928
51176
  //#endregion
50929
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/Headers.js
51177
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/Headers.js
50930
51178
  /**
50931
51179
  * @since 4.0.0
50932
51180
  */
@@ -51047,7 +51295,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
51047
51295
  ] });
51048
51296
 
51049
51297
  //#endregion
51050
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpClientError.js
51298
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpClientError.js
51051
51299
  /**
51052
51300
  * @since 4.0.0
51053
51301
  */
@@ -51104,7 +51352,7 @@ var ResponseError$1 = class extends TaggedError("ResponseError") {
51104
51352
  };
51105
51353
 
51106
51354
  //#endregion
51107
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/UrlParams.js
51355
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/UrlParams.js
51108
51356
  /**
51109
51357
  * @since 4.0.0
51110
51358
  */
@@ -51317,7 +51565,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
51317
51565
  })));
51318
51566
 
51319
51567
  //#endregion
51320
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpBody.js
51568
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpBody.js
51321
51569
  /**
51322
51570
  * @since 4.0.0
51323
51571
  */
@@ -51465,7 +51713,7 @@ var Stream = class extends Proto$3 {
51465
51713
  const stream$2 = (body, contentType, contentLength) => new Stream(body, contentType ?? "application/octet-stream", contentLength);
51466
51714
 
51467
51715
  //#endregion
51468
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpClientRequest.js
51716
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpClientRequest.js
51469
51717
  const TypeId$10 = "~effect/http/HttpClientRequest";
51470
51718
  const Proto$2 = {
51471
51719
  [TypeId$10]: TypeId$10,
@@ -51603,7 +51851,7 @@ const setBody = /* @__PURE__ */ dual(2, (self$1, body) => {
51603
51851
  const bodyUrlParams = /* @__PURE__ */ dual(2, (self$1, input) => setBody(self$1, urlParams(fromInput(input))));
51604
51852
 
51605
51853
  //#endregion
51606
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
51854
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
51607
51855
  /**
51608
51856
  * @since 4.0.0
51609
51857
  */
@@ -51655,7 +51903,7 @@ const inspect = (self$1, that) => {
51655
51903
  };
51656
51904
 
51657
51905
  //#endregion
51658
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpClientResponse.js
51906
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpClientResponse.js
51659
51907
  /**
51660
51908
  * @since 4.0.0
51661
51909
  */
@@ -51787,7 +52035,7 @@ var WebHttpClientResponse = class extends Class$2 {
51787
52035
  };
51788
52036
 
51789
52037
  //#endregion
51790
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpMethod.js
52038
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpMethod.js
51791
52039
  /**
51792
52040
  * @since 4.0.0
51793
52041
  */
@@ -51802,7 +52050,7 @@ const allShort = [
51802
52050
  ];
51803
52051
 
51804
52052
  //#endregion
51805
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpTraceContext.js
52053
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpTraceContext.js
51806
52054
  /**
51807
52055
  * @since 4.0.0
51808
52056
  */
@@ -51871,7 +52119,7 @@ const w3c = (headers) => {
51871
52119
  };
51872
52120
 
51873
52121
  //#endregion
51874
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpClient.js
52122
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpClient.js
51875
52123
  const TypeId$7 = "~effect/http/HttpClient";
51876
52124
  /**
51877
52125
  * @since 4.0.0
@@ -52715,7 +52963,7 @@ const httpMethods = [
52715
52963
  const make$14 = make$15;
52716
52964
 
52717
52965
  //#endregion
52718
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/Template.js
52966
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/Template.js
52719
52967
  /**
52720
52968
  * @since 4.0.0
52721
52969
  */
@@ -52765,7 +53013,7 @@ function isSuccess(u) {
52765
53013
  }
52766
53014
 
52767
53015
  //#endregion
52768
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpServerResponse.js
53016
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpServerResponse.js
52769
53017
  /**
52770
53018
  * @since 4.0.0
52771
53019
  */
@@ -52868,7 +53116,7 @@ const makeResponse = (options) => {
52868
53116
  };
52869
53117
 
52870
53118
  //#endregion
52871
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
53119
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
52872
53120
  /**
52873
53121
  * @since 4.0.0
52874
53122
  */
@@ -52906,7 +53154,7 @@ const toResponseOrElseDefect = (u, orElse$1) => {
52906
53154
  };
52907
53155
 
52908
53156
  //#endregion
52909
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpServerError.js
53157
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpServerError.js
52910
53158
  /**
52911
53159
  * @since 4.0.0
52912
53160
  */
@@ -53050,7 +53298,7 @@ const exitResponse = (exit$2) => {
53050
53298
  };
53051
53299
 
53052
53300
  //#endregion
53053
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/socket/Socket.js
53301
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/socket/Socket.js
53054
53302
  /**
53055
53303
  * @since 4.0.0
53056
53304
  * @category Type IDs
@@ -54131,7 +54379,7 @@ const defaultIsFile = defaultIsFile$1;
54131
54379
  const decodeField = decodeField$1;
54132
54380
 
54133
54381
  //#endregion
54134
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/Multipart.js
54382
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/Multipart.js
54135
54383
  /**
54136
54384
  * @since 4.0.0
54137
54385
  */
@@ -54408,7 +54656,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
54408
54656
  const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
54409
54657
 
54410
54658
  //#endregion
54411
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpServerRequest.js
54659
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpServerRequest.js
54412
54660
  /**
54413
54661
  * @since 4.0.0
54414
54662
  * @category Type IDs
@@ -54571,7 +54819,7 @@ const toURL = (self$1) => {
54571
54819
  };
54572
54820
 
54573
54821
  //#endregion
54574
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpMiddleware.js
54822
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpMiddleware.js
54575
54823
  /**
54576
54824
  * @since 4.0.0
54577
54825
  */
@@ -54674,7 +54922,7 @@ const tracer = /* @__PURE__ */ make$8((httpApp) => withFiber((fiber$2) => {
54674
54922
  }));
54675
54923
 
54676
54924
  //#endregion
54677
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpEffect.js
54925
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpEffect.js
54678
54926
  /**
54679
54927
  * @since 4.0.0
54680
54928
  * @category combinators
@@ -54752,7 +55000,7 @@ const scoped = (effect$1) => withFiber((fiber$2) => {
54752
55000
  const PreResponseHandlers = /* @__PURE__ */ Reference("effect/http/HttpEffect/PreResponseHandlers", { defaultValue: () => void 0 });
54753
55001
 
54754
55002
  //#endregion
54755
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/Etag.js
55003
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/Etag.js
54756
55004
  /**
54757
55005
  * @since 4.0.0
54758
55006
  */
@@ -54816,7 +55064,7 @@ const layerWeak = /* @__PURE__ */ succeed$2(Generator)({
54816
55064
  });
54817
55065
 
54818
55066
  //#endregion
54819
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpPlatform.js
55067
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpPlatform.js
54820
55068
  /**
54821
55069
  * @since 4.0.0
54822
55070
  */
@@ -54883,7 +55131,7 @@ const layer$13 = /* @__PURE__ */ effect(HttpPlatform)(flatMap(FileSystem.asEffec
54883
55131
  }))).pipe(/* @__PURE__ */ provide$3(layerWeak));
54884
55132
 
54885
55133
  //#endregion
54886
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpServer.js
55134
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpServer.js
54887
55135
  /**
54888
55136
  * @since 4.0.0
54889
55137
  */
@@ -54946,7 +55194,7 @@ const makeTestClient = /* @__PURE__ */ gen(function* () {
54946
55194
  const layerTestClient = /* @__PURE__ */ effect(HttpClient)(makeTestClient);
54947
55195
 
54948
55196
  //#endregion
54949
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/HttpRouter.js
55197
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/HttpRouter.js
54950
55198
  /**
54951
55199
  * @since 4.0.0
54952
55200
  */
@@ -58816,7 +59064,7 @@ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
58816
59064
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
58817
59065
 
58818
59066
  //#endregion
58819
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
59067
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
58820
59068
  /**
58821
59069
  * @since 1.0.0
58822
59070
  */
@@ -59166,7 +59414,7 @@ const makeFileSystem = /* @__PURE__ */ map$5(/* @__PURE__ */ serviceOption(Watch
59166
59414
  const layer$11 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
59167
59415
 
59168
59416
  //#endregion
59169
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeFileSystem.js
59417
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
59170
59418
  /**
59171
59419
  * @since 1.0.0
59172
59420
  */
@@ -59177,7 +59425,7 @@ const layer$11 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
59177
59425
  const layer$10 = layer$11;
59178
59426
 
59179
59427
  //#endregion
59180
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
59428
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
59181
59429
  /**
59182
59430
  * @since 1.0.0
59183
59431
  */
@@ -59248,7 +59496,7 @@ var NodeHttpIncomingMessage = class extends Class$2 {
59248
59496
  };
59249
59497
 
59250
59498
  //#endregion
59251
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@2e3e4b2_838b555e0564e3aedadd9fc8b6c7711d/node_modules/effect/dist/unstable/http/FetchHttpClient.js
59499
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@ebe9823_c0f064f881620a0abcd6a2c2ac2ce9e8/node_modules/effect/dist/unstable/http/FetchHttpClient.js
59252
59500
  /**
59253
59501
  * @since 4.0.0
59254
59502
  */
@@ -59296,7 +59544,7 @@ const fetch$1 = /* @__PURE__ */ make$16((request$3, url, signal, fiber$2) => {
59296
59544
  const layer$9 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed$1(fetch$1));
59297
59545
 
59298
59546
  //#endregion
59299
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
59547
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
59300
59548
  /**
59301
59549
  * @since 1.0.0
59302
59550
  */
@@ -59420,7 +59668,7 @@ var FileStream = class extends Readable {
59420
59668
  };
59421
59669
 
59422
59670
  //#endregion
59423
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeMultipart.js
59671
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeMultipart.js
59424
59672
  /**
59425
59673
  * @since 1.0.0
59426
59674
  */
@@ -59540,7 +59788,7 @@ function convertError(cause) {
59540
59788
  }
59541
59789
 
59542
59790
  //#endregion
59543
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/NodePath.js
59791
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/NodePath.js
59544
59792
  /**
59545
59793
  * @since 1.0.0
59546
59794
  */
@@ -59592,7 +59840,7 @@ const layer$7 = /* @__PURE__ */ succeed$2(Path$1)({
59592
59840
  });
59593
59841
 
59594
59842
  //#endregion
59595
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodePath.js
59843
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodePath.js
59596
59844
  /**
59597
59845
  * @since 1.0.0
59598
59846
  */
@@ -59613,7 +59861,7 @@ const layerPosix = layerPosix$1;
59613
59861
  const layerWin32 = layerWin32$1;
59614
59862
 
59615
59863
  //#endregion
59616
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
59864
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
59617
59865
  /**
59618
59866
  * @since 1.0.0
59619
59867
  */
@@ -59653,7 +59901,7 @@ const layer$5 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$22({
59653
59901
  }));
59654
59902
 
59655
59903
  //#endregion
59656
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeStdio.js
59904
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeStdio.js
59657
59905
  /**
59658
59906
  * @since 1.0.0
59659
59907
  */
@@ -59664,7 +59912,7 @@ const layer$5 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$22({
59664
59912
  const layer$4 = layer$5;
59665
59913
 
59666
59914
  //#endregion
59667
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
59915
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
59668
59916
  /**
59669
59917
  * @since 1.0.0
59670
59918
  * @category constructors
@@ -59735,7 +59983,7 @@ function defaultShouldQuit(input) {
59735
59983
  }
59736
59984
 
59737
59985
  //#endregion
59738
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeTerminal.js
59986
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeTerminal.js
59739
59987
  /**
59740
59988
  * @since 1.0.0
59741
59989
  */
@@ -59751,7 +59999,7 @@ const make$1 = make$2;
59751
59999
  const layer$2 = layer$3;
59752
60000
 
59753
60001
  //#endregion
59754
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeServices.js
60002
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeServices.js
59755
60003
  /**
59756
60004
  * @since 1.0.0
59757
60005
  * @category layer
@@ -59759,7 +60007,7 @@ const layer$2 = layer$3;
59759
60007
  const layer$1 = /* @__PURE__ */ provideMerge(layer$15, /* @__PURE__ */ mergeAll(layer$10, layer$6, layer$4, layer$2));
59760
60008
 
59761
60009
  //#endregion
59762
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeHttpServer.js
60010
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeHttpServer.js
59763
60011
  /**
59764
60012
  * @since 1.0.0
59765
60013
  */
@@ -60048,7 +60296,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
60048
60296
  });
60049
60297
 
60050
60298
  //#endregion
60051
- //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_4823a1d759466567e1c197e3c7e27589/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
60299
+ //#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_67de5f5f0488c1b2a7e98f733b18438b/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
60052
60300
  /**
60053
60301
  * @since 1.0.0
60054
60302
  * @category Run main
@@ -60075,7 +60323,7 @@ const runMain$1 = /* @__PURE__ */ makeRunMain(({ fiber: fiber$2, teardown }) =>
60075
60323
  });
60076
60324
 
60077
60325
  //#endregion
60078
- //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@2e_cea32597575288821635b2f6e246338c/node_modules/@effect/platform-node/dist/NodeRuntime.js
60326
+ //#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@eb_f0c1f20f0b5eb9691d271f294c29f8e1/node_modules/@effect/platform-node/dist/NodeRuntime.js
60079
60327
  /**
60080
60328
  * @since 1.0.0
60081
60329
  */
@@ -134448,7 +134696,7 @@ var Linear = class extends Service()("lalph/Linear", { make: gen(function* () {
134448
134696
  const states = yield* runCollect(stream$3((client) => client.workflowStates()));
134449
134697
  const viewer = yield* use$2((client) => client.viewer);
134450
134698
  const blockedByRelations = (issue) => stream$3(() => issue.relations()).pipe(merge$2(stream$3(() => issue.inverseRelations())), filter((relation) => relation.type === "blocks" && relation.relatedIssueId === issue.id));
134451
- const blockedBy = (issue) => blockedByRelations(issue).pipe(mapEffect((relation) => use$2(() => relation.issue), { concurrency: "unbounded" }), filter((issue$1) => {
134699
+ const blockedBy = (issue) => blockedByRelations(issue).pipe(mapEffect$1((relation) => use$2(() => relation.issue), { concurrency: "unbounded" }), filter((issue$1) => {
134452
134700
  return states.find((s) => s.id === issue$1.stateId).type !== "completed";
134453
134701
  }));
134454
134702
  return {
@@ -134515,7 +134763,7 @@ const LinearIssueSource = effect(IssueSource, gen(function* () {
134515
134763
  const completed = makeUnsafe$4(completedAt);
134516
134764
  const threeDaysAgo = nowUnsafe().pipe(subtract({ days: 3 }));
134517
134765
  return isGreaterThanOrEqualTo$1(completed, threeDaysAgo);
134518
- }), mapEffect(fnUntraced(function* (issue) {
134766
+ }), mapEffect$1(fnUntraced(function* (issue) {
134519
134767
  identifierMap.set(issue.identifier, issue.id);
134520
134768
  const linearState = linear.states.find((s) => s.id === issue.stateId);
134521
134769
  const blockedBy = yield* runCollect(linear.blockedBy(issue));
@@ -134608,7 +134856,7 @@ const selectedProjectId = new Setting("linear.selectedProjectId", String$1);
134608
134856
  const selectProject = gen(function* () {
134609
134857
  const linear = yield* Linear;
134610
134858
  const projects = yield* runCollect(linear.projects);
134611
- const project = yield* select({
134859
+ const project = yield* autoComplete({
134612
134860
  message: "Select a Linear project",
134613
134861
  choices: projects.map((project$1) => ({
134614
134862
  title: project$1.name,
@@ -134626,7 +134874,7 @@ const selectedTeamId = new Setting("linear.selectedTeamId", String$1);
134626
134874
  const teamSelect = fnUntraced(function* (project) {
134627
134875
  const linear = yield* Linear;
134628
134876
  const teams = yield* runCollect(linear.stream(() => project.teams()));
134629
- const teamId = yield* select({
134877
+ const teamId = yield* autoComplete({
134630
134878
  message: "Select a team for new issues",
134631
134879
  choices: teams.map((team) => ({
134632
134880
  title: team.name,
@@ -134645,7 +134893,7 @@ const selectedLabelId = new Setting("linear.selectedLabelId", Option(String$1));
134645
134893
  const labelIdSelect = gen(function* () {
134646
134894
  const linear = yield* Linear;
134647
134895
  const labels = yield* runCollect(linear.labels);
134648
- const labelId = yield* select({
134896
+ const labelId = yield* autoComplete({
134649
134897
  message: "Select a label to filter issues by",
134650
134898
  choices: [{
134651
134899
  title: "No Label",
@@ -134667,7 +134915,7 @@ const selectedAutoMergeLabelId = new Setting("linear.selectedAutoMergeLabelId",
134667
134915
  const autoMergeLabelIdSelect = gen(function* () {
134668
134916
  const linear = yield* Linear;
134669
134917
  const labels = yield* runCollect(linear.labels);
134670
- const labelId = yield* select({
134918
+ const labelId = yield* autoComplete({
134671
134919
  message: "Select a label to mark issues for auto merge",
134672
134920
  choices: [{
134673
134921
  title: "Disabled",
@@ -140824,7 +141072,7 @@ const GithubIssueSource = effect(IssueSource, gen(function* () {
140824
141072
  per_page: 100,
140825
141073
  page,
140826
141074
  labels: getOrUndefined(labelFilter$1)
140827
- })).pipe(merge$2(recentlyClosed), filter((issue) => issue.pull_request === void 0), mapEffect(fnUntraced(function* (issue) {
141075
+ })).pipe(merge$2(recentlyClosed), filter((issue) => issue.pull_request === void 0), mapEffect$1(fnUntraced(function* (issue) {
140828
141076
  const dependencies = yield* listOpenBlockedBy(issue.number).pipe(runCollect);
140829
141077
  const state = issue.state === "closed" ? "done" : hasLabel(issue.labels, "in-progress") ? "in-progress" : hasLabel(issue.labels, "in-review") ? "in-review" : "todo";
140830
141078
  return new PrdIssue({
@@ -141205,6 +141453,11 @@ ${prdNotes}`;
141205
141453
  var Worktree = class extends Service()("lalph/Worktree", { make: gen(function* () {
141206
141454
  const fs = yield* FileSystem;
141207
141455
  const pathService = yield* Path$1;
141456
+ const inExisting = yield* fs.exists(pathService.join(".lalph", "prd.yml"));
141457
+ if (inExisting) return {
141458
+ directory: pathService.resolve("."),
141459
+ inExisting
141460
+ };
141208
141461
  const directory$2 = yield* fs.makeTempDirectory();
141209
141462
  yield* addFinalizer(fnUntraced(function* () {
141210
141463
  yield* execIgnore(make$21`git worktree remove --force ${directory$2}`);
@@ -141217,11 +141470,17 @@ var Worktree = class extends Service()("lalph/Worktree", { make: gen(function* (
141217
141470
  extendEnv: true,
141218
141471
  shell: process.env.SHELL ?? true
141219
141472
  })`${setupPath}`.pipe(exitCode);
141220
- return { directory: directory$2 };
141473
+ return {
141474
+ directory: directory$2,
141475
+ inExisting
141476
+ };
141221
141477
  }) }) {
141222
141478
  static layer = effect(this, this.make);
141223
141479
  static layerLocal = effect(this, gen(function* () {
141224
- return { directory: (yield* Path$1).resolve(".") };
141480
+ return {
141481
+ directory: (yield* Path$1).resolve("."),
141482
+ inExisting: false
141483
+ };
141225
141484
  }));
141226
141485
  };
141227
141486
  const execIgnore = (command) => command.pipe(exitCode, catchCause$1(logWarning));
@@ -141235,13 +141494,56 @@ var Prd = class extends Service()("lalph/Prd", { make: gen(function* () {
141235
141494
  const source = yield* IssueSource;
141236
141495
  const lalphDir = pathService.join(worktree.directory, `.lalph`);
141237
141496
  const prdFile = pathService.join(worktree.directory, `.lalph`, `prd.yml`);
141497
+ const readPrd = gen(function* () {
141498
+ const yaml = yield* fs.readFileString(prdFile);
141499
+ return PrdIssue.arrayFromYaml(yaml);
141500
+ });
141501
+ const mergableGithubPrs = gen(function* () {
141502
+ const updated = yield* readPrd;
141503
+ const prs = empty$11();
141504
+ for (const issue of updated) {
141505
+ if (!updatedIssues.get(issue.id ?? "") || !issue.githubPrNumber || issue.state !== "in-review") continue;
141506
+ prs.push({
141507
+ issueId: issue.id,
141508
+ prNumber: issue.githubPrNumber
141509
+ });
141510
+ }
141511
+ return prs;
141512
+ });
141513
+ const maybeRevertIssue = fnUntraced(function* (options) {
141514
+ const issue = (yield* readPrd).find((i) => i.id === options.issueId);
141515
+ if (!issue || issue.state === "in-review") return;
141516
+ yield* source.updateIssue({
141517
+ issueId: issue.id,
141518
+ state: "todo"
141519
+ });
141520
+ });
141521
+ const mergeConflictInstruction = "Next step: Rebase PR and resolve merge conflicts.";
141522
+ const flagUnmergable = fnUntraced(function* (options) {
141523
+ const issue = current.find((entry) => entry.id === options.issueId);
141524
+ if (!issue) return;
141525
+ const nextDescription = issue.description.includes(mergeConflictInstruction) ? issue.description : `${mergeConflictInstruction}\n\n${issue.description.trim()}`;
141526
+ yield* source.updateIssue({
141527
+ issueId: issue.id,
141528
+ description: nextDescription,
141529
+ state: "todo"
141530
+ });
141531
+ });
141532
+ if (worktree.inExisting) return {
141533
+ path: prdFile,
141534
+ mergableGithubPrs,
141535
+ maybeRevertIssue,
141536
+ flagUnmergable,
141537
+ findById: fnUntraced(function* (issueId) {
141538
+ return (yield* readPrd).find((i) => i.id === issueId) ?? null;
141539
+ })
141540
+ };
141238
141541
  yield* addFinalizer(() => ignore(fs.remove(prdFile)));
141239
141542
  let current = yield* source.issues;
141240
141543
  yield* fs.writeFileString(prdFile, PrdIssue.arrayToYaml(current));
141241
141544
  const updatedIssues = /* @__PURE__ */ new Map();
141242
141545
  const sync$2 = gen(function* () {
141243
- const yaml = yield* fs.readFileString(prdFile);
141244
- const updated = PrdIssue.arrayFromYaml(yaml);
141546
+ const updated = yield* readPrd;
141245
141547
  if (!(updated.length !== current.length || updated.some((u, i) => u.isChangedComparedTo(current[i])))) return;
141246
141548
  const githubPrs = /* @__PURE__ */ new Map();
141247
141549
  const toRemove = new Set(current.filter((i) => i.id !== null).map((i) => i.id));
@@ -141288,62 +141590,18 @@ var Prd = class extends Service()("lalph/Prd", { make: gen(function* () {
141288
141590
  strategy: "dropping"
141289
141591
  }), runForEach((_) => clear(updateSyncHandle).pipe(andThen(ignore(sync$2)))), retry$1(forever$1), forkScoped);
141290
141592
  yield* updateSync.pipe(delay("1 minute"), forever, forkScoped);
141291
- const mergableGithubPrs = gen(function* () {
141292
- const yaml = yield* fs.readFileString(prdFile);
141293
- const updated = PrdIssue.arrayFromYaml(yaml);
141294
- const prs = empty$11();
141295
- for (const issue of updated) {
141296
- if (!updatedIssues.get(issue.id ?? "") || !issue.githubPrNumber || issue.state !== "in-review") continue;
141297
- prs.push({
141298
- issueId: issue.id,
141299
- prNumber: issue.githubPrNumber
141300
- });
141301
- }
141302
- return prs;
141303
- });
141304
- const revertStateIds = suspend$2(() => forEach$1(updatedIssues.values(), (issue) => {
141305
- if (current.find((i) => i.id === issue.id).state === "done") return void_$1;
141306
- return source.updateIssue({
141307
- issueId: issue.id,
141308
- state: "todo"
141309
- });
141310
- }, {
141311
- concurrency: "unbounded",
141312
- discard: true
141313
- }));
141314
- const maybeRevertIssue = fnUntraced(function* (options) {
141315
- const yaml = yield* fs.readFileString(prdFile);
141316
- const issue = PrdIssue.arrayFromYaml(yaml).find((i) => i.id === options.issueId);
141317
- if (!issue || issue.state === "in-review") return;
141318
- yield* source.updateIssue({
141319
- issueId: issue.id,
141320
- state: "todo"
141321
- });
141322
- });
141323
- const mergeConflictInstruction = "Next step: Rebase PR and resolve merge conflicts.";
141324
- const flagUnmergable = fnUntraced(function* (options) {
141325
- const issue = current.find((entry) => entry.id === options.issueId);
141326
- if (!issue) return;
141327
- const nextDescription = issue.description.includes(mergeConflictInstruction) ? issue.description : `${mergeConflictInstruction}\n\n${issue.description.trim()}`;
141328
- yield* source.updateIssue({
141329
- issueId: issue.id,
141330
- description: nextDescription,
141331
- state: "todo"
141332
- });
141333
- });
141334
141593
  const findById = (issueId) => sync(() => current.find((i) => i.id === issueId) ?? null);
141335
141594
  return {
141336
141595
  path: prdFile,
141337
141596
  mergableGithubPrs,
141338
- revertStateIds,
141339
141597
  maybeRevertIssue,
141340
141598
  flagUnmergable,
141341
141599
  findById
141342
141600
  };
141343
141601
  }) }) {
141344
141602
  static layerNoWorktree = effect(this, this.make);
141345
- static layer = this.layerNoWorktree.pipe(provide$3(Worktree.layer));
141346
- static layerLocal = this.layerNoWorktree.pipe(provide$3(Worktree.layerLocal));
141603
+ static layer = this.layerNoWorktree.pipe(provideMerge(Worktree.layer));
141604
+ static layerLocal = this.layerNoWorktree.pipe(provideMerge(Worktree.layerLocal));
141347
141605
  };
141348
141606
 
141349
141607
  //#endregion
@@ -141375,7 +141633,6 @@ const run = fnUntraced(function* (options) {
141375
141633
  const cliAgent = yield* getOrSelectCliAgent;
141376
141634
  const prd = yield* Prd;
141377
141635
  const exec = (template, ...args$1) => make$21({ cwd: worktree.directory })(template, ...args$1).pipe(exitCode);
141378
- const execOutput = (template, ...args$1) => make$21({ cwd: worktree.directory })(template, ...args$1).pipe(string, map$5((output) => output.trim()));
141379
141636
  const execWithStallTimeout = fnUntraced(function* (command) {
141380
141637
  let lastOutputAt = yield* now;
141381
141638
  const stallTimeout = suspend$2(function loop() {
@@ -141400,11 +141657,8 @@ const run = fnUntraced(function* (options) {
141400
141657
  }), raceFirst(stallTimeout));
141401
141658
  return yield* handle.exitCode;
141402
141659
  }, scoped$1);
141660
+ const currentBranch = (dir) => make$21({ cwd: dir })`git branch --show-current`.pipe(string, flatMap((output) => some(output.trim()).pipe(filter$5((b) => b.length > 0), fromOption)));
141403
141661
  if (isSome(options.targetBranch)) yield* exec`git checkout ${`origin/${options.targetBranch.value}`}`;
141404
- const currentBranch = execOutput`git branch --show-current`.pipe(map$5((branch) => {
141405
- branch = branch.trim();
141406
- return branch === "" ? null : branch;
141407
- }));
141408
141662
  yield* gen(function* () {
141409
141663
  const chooseCommand = cliAgent.command({
141410
141664
  prompt: promptGen.promptChoose,
@@ -141423,8 +141677,11 @@ const run = fnUntraced(function* (options) {
141423
141677
  }));
141424
141678
  const taskJson = yield* fs.readFileString(pathService.join(worktree.directory, ".lalph", "task.json"));
141425
141679
  const taskId = (yield* decodeEffect(ChosenTask)(taskJson)).id;
141426
- const task = yield* prd.findById(taskId);
141427
- if (!task) return;
141680
+ yield* addFinalizer(fnUntraced(function* (exit$2) {
141681
+ if (exit$2._tag === "Success") return;
141682
+ const prd$1 = yield* Prd;
141683
+ yield* ignore(prd$1.maybeRevertIssue({ issueId: taskId }));
141684
+ }));
141428
141685
  yield* completeWith(options.startedDeferred, void_$1);
141429
141686
  const exitCode$1 = yield* execWithStallTimeout(cliAgent.command({
141430
141687
  prompt: promptGen.prompt({
@@ -141442,25 +141699,19 @@ const run = fnUntraced(function* (options) {
141442
141699
  })));
141443
141700
  yield* log$1(`Agent exited with code: ${exitCode$1}`);
141444
141701
  const prs = yield* prd.mergableGithubPrs;
141702
+ const task = yield* prd.findById(taskId);
141445
141703
  if (prs.length === 0) yield* prd.maybeRevertIssue({ issueId: taskId });
141446
- else if (task.autoMerge) for (const pr of prs) {
141704
+ else if (task?.autoMerge) for (const pr of prs) {
141447
141705
  if (isSome(options.targetBranch)) yield* exec`gh pr edit ${pr.prNumber} --base ${options.targetBranch.value}`;
141448
141706
  if ((yield* exec`gh pr merge ${pr.prNumber} -sd`) !== 0) yield* prd.flagUnmergable({ issueId: pr.issueId });
141449
141707
  }
141450
141708
  }).pipe(ensuring(gen(function* () {
141451
- const currentBranchName = yield* currentBranch;
141709
+ const currentBranchName = yield* currentBranch(worktree.directory).pipe(option$1, map$5(getOrUndefined));
141452
141710
  if (!currentBranchName) return;
141453
141711
  yield* exec`git checkout --detach ${currentBranchName}`;
141454
141712
  yield* exec`git branch -D ${currentBranchName}`;
141455
141713
  }).pipe(ignore)));
141456
- }, onError(fnUntraced(function* () {
141457
- const prd = yield* Prd;
141458
- yield* ignore(prd.revertStateIds);
141459
- })), provide$1([
141460
- PromptGen.layer,
141461
- Prd.layer,
141462
- Worktree.layer
141463
- ]));
141714
+ }, scoped$1, provide$1([PromptGen.layer, Prd.layer]));
141464
141715
  var RunnerStalled = class extends TaggedError("RunnerStalled") {
141465
141716
  message = "The runner has stalled due to inactivity.";
141466
141717
  };
@@ -141492,7 +141743,7 @@ const plan = fnUntraced(function* (options) {
141492
141743
  stdin: "inherit"
141493
141744
  }).pipe(exitCode);
141494
141745
  yield* log$1(`Agent exited with code: ${exitCode$1}`);
141495
- yield* fs.copy(pathService.join(worktree.directory, options.specsDirectory), options.specsDirectory, { overwrite: true }).pipe(ignore);
141746
+ if (!worktree.inExisting) yield* fs.copy(pathService.join(worktree.directory, options.specsDirectory), options.specsDirectory, { overwrite: true }).pipe(ignore);
141496
141747
  }, scoped$1, provide$1([
141497
141748
  PromptGen.layer,
141498
141749
  Prd.layer,
@@ -141570,11 +141821,29 @@ const createIssue = make$27("issue").pipe(withDescription("Create a new issue in
141570
141821
  console.log(`Created issue with ID: ${issueId}`);
141571
141822
  }, scoped$1)), provide(CurrentIssueSource.layer));
141572
141823
 
141824
+ //#endregion
141825
+ //#region src/Shell.ts
141826
+ const enterShell = make$27("shell").pipe(withDescription("Enter an interactive shell in the worktree"), withHandler(fnUntraced(function* () {
141827
+ const worktree = yield* Worktree;
141828
+ const fs = yield* FileSystem;
141829
+ const pathService = yield* Path$1;
141830
+ yield* fs.symlink(pathService.resolve(pathService.join(".lalph", "config")), pathService.join(worktree.directory, ".lalph", "config"));
141831
+ yield* make$21(process.env.SHELL || "/bin/bash", [], {
141832
+ cwd: worktree.directory,
141833
+ stdin: "inherit",
141834
+ stdout: "inherit",
141835
+ stderr: "inherit"
141836
+ }).pipe(exitCode);
141837
+ }, scoped$1, provide$1(Prd.layer.pipe(provide$3(CurrentIssueSource.layer))))));
141838
+
141573
141839
  //#endregion
141574
141840
  //#region src/cli.ts
141575
141841
  const iterations = integer("iterations").pipe(withDescription$1("Number of iterations to run, defaults to unlimited"), withAlias("i"), withDefault(Number.POSITIVE_INFINITY));
141576
141842
  const concurrency = integer("concurrency").pipe(withDescription$1("Number of concurrent agents, defaults to 1"), withAlias("c"), withDefault(1));
141577
- const targetBranch = string$1("target-branch").pipe(withDescription$1("Target branch for PRs. Env variable: LALPH_TARGET_BRANCH"), withAlias("b"), withFallbackConfig(string$4("LALPH_TARGET_BRANCH")), optional);
141843
+ const targetBranch = string$1("target-branch").pipe(withDescription$1("Target branch for PRs. Env variable: LALPH_TARGET_BRANCH"), withAlias("b"), withFallbackConfig(string$4("LALPH_TARGET_BRANCH")), withDefault(make$21`git branch --show-current`.pipe(string, orDie$2, flatMap((output) => {
141844
+ const branch = output.trim();
141845
+ return branch === "" ? fail$4(new MissingOption({ option: "--target-branch" })) : succeed$1(branch);
141846
+ }))), optional);
141578
141847
  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));
141579
141848
  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));
141580
141849
  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"));
@@ -141642,6 +141911,7 @@ root.pipe(withSubcommands([
141642
141911
  planMode,
141643
141912
  createIssue,
141644
141913
  editPrd,
141914
+ enterShell,
141645
141915
  selectSource,
141646
141916
  selectAgent
141647
141917
  ]), (_) => run$3(_, { version: "0.1.0" }), provide$1(Settings.layer.pipe(provideMerge(layer$1))), runMain);