lalph 0.3.121 → 0.3.123

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
@@ -65,7 +65,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
65
65
  }) : target, mod));
66
66
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
67
67
  //#endregion
68
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Pipeable.js
68
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Pipeable.js
69
69
  /**
70
70
  * @since 2.0.0
71
71
  */
@@ -124,7 +124,7 @@ const Class$6 = /* @__PURE__ */ function() {
124
124
  return PipeableBase;
125
125
  }();
126
126
  //#endregion
127
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Function.js
127
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Function.js
128
128
  /**
129
129
  * Creates a function that can be used in a data-last (aka `pipe`able) or
130
130
  * data-first style.
@@ -407,7 +407,7 @@ function memoize$1(f) {
407
407
  };
408
408
  }
409
409
  //#endregion
410
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/equal.js
410
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/equal.js
411
411
  /** @internal */
412
412
  const getAllObjectKeys = (obj) => {
413
413
  const keys = new Set(Reflect.ownKeys(obj));
@@ -426,7 +426,7 @@ const getAllObjectKeys = (obj) => {
426
426
  /** @internal */
427
427
  const byReferenceInstances = /* @__PURE__ */ new WeakSet();
428
428
  //#endregion
429
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Predicate.js
429
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Predicate.js
430
430
  /**
431
431
  * Predicate and Refinement helpers for runtime checks, filtering, and type narrowing.
432
432
  * This module provides small, pure functions you can combine to decide whether a
@@ -1075,7 +1075,7 @@ function isIterable(input) {
1075
1075
  */
1076
1076
  const or$1 = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) || that(a));
1077
1077
  //#endregion
1078
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Hash.js
1078
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Hash.js
1079
1079
  /**
1080
1080
  * This module provides utilities for hashing values in TypeScript.
1081
1081
  *
@@ -1424,7 +1424,7 @@ function withVisitedTracking$1(obj, fn) {
1424
1424
  return result;
1425
1425
  }
1426
1426
  //#endregion
1427
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Equal.js
1427
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Equal.js
1428
1428
  /**
1429
1429
  * The unique string identifier for the {@link Equal} interface.
1430
1430
  *
@@ -1694,7 +1694,7 @@ const byReferenceUnsafe = (obj) => {
1694
1694
  return obj;
1695
1695
  };
1696
1696
  //#endregion
1697
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Redactable.js
1697
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Redactable.js
1698
1698
  /**
1699
1699
  * @since 4.0.0
1700
1700
  */
@@ -1788,7 +1788,7 @@ const emptyServiceMap$1 = {
1788
1788
  }
1789
1789
  };
1790
1790
  //#endregion
1791
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Formatter.js
1791
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Formatter.js
1792
1792
  /**
1793
1793
  * Utilities for converting arbitrary JavaScript values into human-readable
1794
1794
  * strings, with support for circular references, redaction, and common JS
@@ -2130,7 +2130,7 @@ function formatJson$1(input, options) {
2130
2130
  return out;
2131
2131
  }
2132
2132
  //#endregion
2133
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Inspectable.js
2133
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Inspectable.js
2134
2134
  /**
2135
2135
  * This module provides utilities for making values inspectable and debuggable in TypeScript.
2136
2136
  *
@@ -2333,7 +2333,7 @@ var Class$5 = class {
2333
2333
  }
2334
2334
  };
2335
2335
  //#endregion
2336
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Utils.js
2336
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Utils.js
2337
2337
  /**
2338
2338
  * An `IterableIterator` that yields its wrapped value exactly once.
2339
2339
  *
@@ -2411,7 +2411,7 @@ const forced = { [InternalTypeId]: (body) => {
2411
2411
  /** @internal */
2412
2412
  const internalCall = /* @__PURE__ */ standard[InternalTypeId](() => (/* @__PURE__ */ new Error()).stack)?.includes(InternalTypeId) === true ? standard[InternalTypeId] : forced[InternalTypeId];
2413
2413
  //#endregion
2414
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/core.js
2414
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/core.js
2415
2415
  /** @internal */
2416
2416
  const EffectTypeId$1 = `~effect/Effect`;
2417
2417
  /** @internal */
@@ -2810,7 +2810,7 @@ const done$2 = (value) => {
2810
2810
  return exitFail(Done$1(value));
2811
2811
  };
2812
2812
  //#endregion
2813
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Data.js
2813
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Data.js
2814
2814
  /**
2815
2815
  * Base class for immutable data types.
2816
2816
  *
@@ -3043,7 +3043,7 @@ const Error$3 = Error$4;
3043
3043
  */
3044
3044
  const TaggedError = TaggedError$1;
3045
3045
  //#endregion
3046
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Equivalence.js
3046
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Equivalence.js
3047
3047
  /**
3048
3048
  * Creates a custom equivalence relation with an optimized reference equality check.
3049
3049
  *
@@ -3218,7 +3218,7 @@ function Array_$1(item) {
3218
3218
  });
3219
3219
  }
3220
3220
  //#endregion
3221
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/option.js
3221
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/option.js
3222
3222
  /**
3223
3223
  * @since 2.0.0
3224
3224
  */
@@ -3293,7 +3293,7 @@ const some$3 = (value) => {
3293
3293
  return a;
3294
3294
  };
3295
3295
  //#endregion
3296
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/result.js
3296
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/result.js
3297
3297
  const TypeId$77 = "~effect/data/Result";
3298
3298
  const CommonProto = {
3299
3299
  [TypeId$77]: {
@@ -3368,7 +3368,7 @@ const succeed$10 = (success) => {
3368
3368
  return a;
3369
3369
  };
3370
3370
  //#endregion
3371
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Order.js
3371
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Order.js
3372
3372
  /**
3373
3373
  * This module provides the `Order` type class for defining total orderings on types.
3374
3374
  * An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than).
@@ -3706,7 +3706,7 @@ const isGreaterThanOrEqualTo$3 = (O) => dual(2, (self, that) => O(self, that) !=
3706
3706
  */
3707
3707
  const min$3 = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
3708
3708
  //#endregion
3709
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Option.js
3709
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Option.js
3710
3710
  /**
3711
3711
  * Creates an `Option` representing the absence of a value.
3712
3712
  *
@@ -4564,7 +4564,7 @@ const makeEquivalence$6 = (isEquivalent) => make$92((x, y) => isNone(x) ? isNone
4564
4564
  */
4565
4565
  const liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some$2(b) : none$4());
4566
4566
  //#endregion
4567
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Duration.js
4567
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Duration.js
4568
4568
  const TypeId$76 = "~effect/time/Duration";
4569
4569
  const bigint0$2 = /* @__PURE__ */ BigInt(0);
4570
4570
  const bigint24 = /* @__PURE__ */ BigInt(24);
@@ -5285,14 +5285,14 @@ const format$3 = (self) => {
5285
5285
  return pieces.join(" ");
5286
5286
  };
5287
5287
  //#endregion
5288
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/array.js
5288
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/array.js
5289
5289
  /**
5290
5290
  * @since 2.0.0
5291
5291
  */
5292
5292
  /** @internal */
5293
5293
  const isArrayNonEmpty$1 = (self) => self.length > 0;
5294
5294
  //#endregion
5295
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Result.js
5295
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Result.js
5296
5296
  /**
5297
5297
  * Creates a `Result` holding a `Success` value.
5298
5298
  *
@@ -5502,7 +5502,7 @@ const map$16 = /* @__PURE__ */ dual(2, (self, f) => isSuccess$5(self) ? succeed$
5502
5502
  */
5503
5503
  const getOrUndefined$1 = /* @__PURE__ */ (/* @__PURE__ */ dual(2, (self, onFailure) => isFailure$4(self) ? onFailure(self.failure) : self.success))(constUndefined);
5504
5504
  //#endregion
5505
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Tuple.js
5505
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Tuple.js
5506
5506
  /**
5507
5507
  * Creates an `Equivalence` for tuples by comparing corresponding elements
5508
5508
  * using the provided per-position `Equivalence`s. Two tuples are equivalent
@@ -5533,7 +5533,7 @@ const getOrUndefined$1 = /* @__PURE__ */ (/* @__PURE__ */ dual(2, (self, onFailu
5533
5533
  */
5534
5534
  const makeEquivalence$5 = Tuple$2;
5535
5535
  //#endregion
5536
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Iterable.js
5536
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Iterable.js
5537
5537
  /**
5538
5538
  * Return the number of elements in a `Iterable`.
5539
5539
  *
@@ -5685,7 +5685,7 @@ const constEmptyIterator = { next() {
5685
5685
  */
5686
5686
  const empty$19 = () => constEmpty;
5687
5687
  //#endregion
5688
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Record.js
5688
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Record.js
5689
5689
  /**
5690
5690
  * Creates a new, empty record.
5691
5691
  *
@@ -5849,7 +5849,7 @@ const makeEquivalence$4 = (equivalence) => {
5849
5849
  return (self, that) => is(self, that) && is(that, self);
5850
5850
  };
5851
5851
  //#endregion
5852
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Array.js
5852
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Array.js
5853
5853
  /**
5854
5854
  * Utilities for working with immutable arrays (and non-empty arrays) in a
5855
5855
  * functional style. All functions treat arrays as immutable — they return new
@@ -6683,7 +6683,7 @@ const composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
6683
6683
  return rightOut;
6684
6684
  });
6685
6685
  //#endregion
6686
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/ServiceMap.js
6686
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/ServiceMap.js
6687
6687
  /**
6688
6688
  * @since 4.0.0
6689
6689
  * @category Type Identifiers
@@ -7214,7 +7214,7 @@ const withMapUnsafe = (self, f) => {
7214
7214
  */
7215
7215
  const Reference = Service$1;
7216
7216
  //#endregion
7217
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Scheduler.js
7217
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Scheduler.js
7218
7218
  /**
7219
7219
  * @since 4.0.0
7220
7220
  * @category references
@@ -7348,7 +7348,7 @@ const MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBefo
7348
7348
  */
7349
7349
  const PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventSchedulerYield", { defaultValue: () => false });
7350
7350
  //#endregion
7351
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Tracer.js
7351
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Tracer.js
7352
7352
  /**
7353
7353
  * @since 2.0.0
7354
7354
  * @category tags
@@ -7532,11 +7532,11 @@ const randomHexString = /* @__PURE__ */ function() {
7532
7532
  };
7533
7533
  }();
7534
7534
  //#endregion
7535
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/metric.js
7535
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/metric.js
7536
7536
  /** @internal */
7537
7537
  const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
7538
7538
  //#endregion
7539
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/references.js
7539
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/references.js
7540
7540
  /** @internal */
7541
7541
  const CurrentConcurrency$1 = /* @__PURE__ */ Reference("effect/References/CurrentConcurrency", { defaultValue: () => "unbounded" });
7542
7542
  /** @internal */
@@ -7560,7 +7560,7 @@ const MinimumLogLevel$1 = /* @__PURE__ */ Reference("effect/References/MinimumLo
7560
7560
  /** @internal */
7561
7561
  const CurrentLogSpans$1 = /* @__PURE__ */ Reference("effect/References/CurrentLogSpans", { defaultValue: () => [] });
7562
7562
  //#endregion
7563
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/tracer.js
7563
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/tracer.js
7564
7564
  /** @internal */
7565
7565
  const addSpanStackTrace = (options) => {
7566
7566
  if (options?.captureStackTrace === false) return options;
@@ -7590,7 +7590,7 @@ const makeStackCleaner = (line) => (stack) => {
7590
7590
  };
7591
7591
  const spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
7592
7592
  //#endregion
7593
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/effect.js
7593
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/effect.js
7594
7594
  /** @internal */
7595
7595
  var Interrupt$1 = class extends ReasonBase {
7596
7596
  fiberId;
@@ -9804,7 +9804,7 @@ const asVoid$1 = exitAsVoid;
9804
9804
  */
9805
9805
  const getSuccess = exitGetSuccess;
9806
9806
  //#endregion
9807
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Deferred.js
9807
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Deferred.js
9808
9808
  const DeferredProto = {
9809
9809
  ["~effect/Deferred"]: {
9810
9810
  _A: identity,
@@ -10064,7 +10064,7 @@ const doneUnsafe = (self, effect) => {
10064
10064
  */
10065
10065
  const into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask$1((restore) => flatMap$7(exit$1(restore(self)), (exit) => done$1(deferred, exit))));
10066
10066
  //#endregion
10067
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/References.js
10067
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/References.js
10068
10068
  /**
10069
10069
  * This module provides a collection of reference implementations for commonly used
10070
10070
  * Effect runtime configuration values. These references allow you to access and
@@ -10593,7 +10593,7 @@ const close = scopeClose;
10593
10593
  */
10594
10594
  const closeUnsafe = scopeCloseUnsafe;
10595
10595
  //#endregion
10596
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Layer.js
10596
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Layer.js
10597
10597
  const TypeId$74 = "~effect/Layer";
10598
10598
  const MemoMapTypeId = "~effect/Layer/MemoMap";
10599
10599
  const LayerProto = {
@@ -12185,7 +12185,7 @@ const UnknownError$2 = UnknownError$3;
12185
12185
  var StackTrace = class extends Service$1()("effect/Cause/StackTrace") {};
12186
12186
  Service$1()("effect/Cause/InterruptorStackTrace");
12187
12187
  //#endregion
12188
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Clock.js
12188
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Clock.js
12189
12189
  /**
12190
12190
  * A reference to the current Clock service in the environment.
12191
12191
  *
@@ -12204,7 +12204,7 @@ Service$1()("effect/Cause/InterruptorStackTrace");
12204
12204
  */
12205
12205
  const Clock = ClockRef;
12206
12206
  //#endregion
12207
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/dateTime.js
12207
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/dateTime.js
12208
12208
  /** @internal */
12209
12209
  const TypeId$72 = "~effect/time/DateTime";
12210
12210
  /** @internal */
@@ -12487,7 +12487,7 @@ const formatIsoOffset$1 = (self) => {
12487
12487
  /** @internal */
12488
12488
  const formatIsoZoned$1 = (self) => self.zone._tag === "Offset" ? formatIsoOffset$1(self) : `${formatIsoOffset$1(self)}[${self.zone.id}]`;
12489
12489
  //#endregion
12490
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Number.js
12490
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Number.js
12491
12491
  /**
12492
12492
  * This module provides utility functions and type class instances for working with the `number` type in TypeScript.
12493
12493
  * It includes functions for basic arithmetic operations.
@@ -12656,7 +12656,7 @@ const isNonEmpty$1 = (self) => self.length > 0;
12656
12656
  */
12657
12657
  const camelToSnake = (self) => self.replace(/([A-Z])/g, "_$1").toLowerCase();
12658
12658
  //#endregion
12659
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/random.js
12659
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/random.js
12660
12660
  /** @internal */
12661
12661
  const Random$1 = /* @__PURE__ */ Reference("effect/Random", { defaultValue: () => ({
12662
12662
  nextIntUnsafe() {
@@ -12667,7 +12667,7 @@ const Random$1 = /* @__PURE__ */ Reference("effect/Random", { defaultValue: () =
12667
12667
  }
12668
12668
  }) });
12669
12669
  //#endregion
12670
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Pull.js
12670
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Pull.js
12671
12671
  /**
12672
12672
  * @since 4.0.0
12673
12673
  */
@@ -12741,7 +12741,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffec
12741
12741
  }
12742
12742
  }));
12743
12743
  //#endregion
12744
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Schedule.js
12744
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Schedule.js
12745
12745
  /**
12746
12746
  * This module provides utilities for creating and composing schedules for retrying operations,
12747
12747
  * repeating effects, and implementing various timing strategies.
@@ -13282,12 +13282,12 @@ const while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map$13(toSt
13282
13282
  */
13283
13283
  const forever$1 = /* @__PURE__ */ spaced(zero$1);
13284
13284
  //#endregion
13285
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/layer.js
13285
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/layer.js
13286
13286
  const provideLayer = (self, layer, options) => scopedWith$1((scope) => flatMap$7(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideServices$3(self, context)));
13287
13287
  /** @internal */
13288
13288
  const provide$2 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, source, options) => isServiceMap(source) ? provideServices$3(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll$2(...source) : source, options));
13289
13289
  //#endregion
13290
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/schedule.js
13290
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/schedule.js
13291
13291
  /** @internal */
13292
13292
  const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self, schedule, orElse) => flatMap$7(toStepWithMetadata(schedule), (step) => {
13293
13293
  let meta = CurrentMetadata.defaultValue();
@@ -13332,7 +13332,7 @@ const buildFromOptions = (options) => {
13332
13332
  return schedule;
13333
13333
  };
13334
13334
  //#endregion
13335
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Request.js
13335
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Request.js
13336
13336
  const TypeId$70 = "~effect/Request";
13337
13337
  const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
13338
13338
  _E: (_) => _,
@@ -13399,7 +13399,7 @@ const TaggedClass$1 = (tag) => {
13399
13399
  */
13400
13400
  const makeEntry = (options) => options;
13401
13401
  //#endregion
13402
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/request.js
13402
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/request.js
13403
13403
  /** @internal */
13404
13404
  const request$3 = /* @__PURE__ */ dual(2, (self, resolver) => {
13405
13405
  const withResolver = (resolver) => callback$2((resume) => {
@@ -18156,7 +18156,7 @@ const catchEager = catchEager$1;
18156
18156
  */
18157
18157
  const fnUntracedEager = fnUntracedEager$1;
18158
18158
  //#endregion
18159
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/record.js
18159
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/record.js
18160
18160
  /**
18161
18161
  * @since 4.0.0
18162
18162
  */
@@ -18172,7 +18172,7 @@ function set$10(self, key, value) {
18172
18172
  return self;
18173
18173
  }
18174
18174
  //#endregion
18175
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/schema/annotations.js
18175
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/schema/annotations.js
18176
18176
  /** @internal */
18177
18177
  function resolve$4(ast) {
18178
18178
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
@@ -18527,7 +18527,7 @@ const subtract = subtract$1;
18527
18527
  */
18528
18528
  const formatIso = formatIso$1;
18529
18529
  //#endregion
18530
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Encoding.js
18530
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Encoding.js
18531
18531
  /**
18532
18532
  * Encoding & decoding for Base64 (RFC4648), Base64Url, and Hex.
18533
18533
  *
@@ -18913,7 +18913,7 @@ const base64codes = [
18913
18913
  ];
18914
18914
  const base64UrlEncodeUint8Array = (data) => base64EncodeUint8Array(data).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
18915
18915
  //#endregion
18916
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/redacted.js
18916
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/redacted.js
18917
18917
  /** @internal */
18918
18918
  const redactedRegistry = /* @__PURE__ */ new WeakMap();
18919
18919
  /** @internal */
@@ -18924,7 +18924,7 @@ const value$3 = (self) => {
18924
18924
  /** @internal */
18925
18925
  const stringOrRedacted = (val) => typeof val === "string" ? val : value$3(val);
18926
18926
  //#endregion
18927
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Redacted.js
18927
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Redacted.js
18928
18928
  /**
18929
18929
  * The Redacted module provides functionality for handling sensitive information
18930
18930
  * securely within your application. By using the `Redacted` data type, you can
@@ -19030,7 +19030,7 @@ const value$2 = value$3;
19030
19030
  */
19031
19031
  const makeEquivalence$2 = (isEquivalent) => make$92((x, y) => isEquivalent(value$2(x), value$2(y)));
19032
19032
  //#endregion
19033
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/SchemaIssue.js
19033
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/SchemaIssue.js
19034
19034
  const TypeId$68 = "~effect/SchemaIssue/Issue";
19035
19035
  /**
19036
19036
  * Returns `true` if the given value is an {@link Issue}.
@@ -19773,7 +19773,7 @@ function redact$2(issue) {
19773
19773
  }
19774
19774
  }
19775
19775
  //#endregion
19776
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/SchemaGetter.js
19776
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/SchemaGetter.js
19777
19777
  /**
19778
19778
  * Composable transformation primitives for the Effect Schema system.
19779
19779
  *
@@ -20748,7 +20748,7 @@ const isZero = (n) => n.value === bigint0;
20748
20748
  */
20749
20749
  const isNegative = (n) => n.value < bigint0;
20750
20750
  //#endregion
20751
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/SchemaTransformation.js
20751
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/SchemaTransformation.js
20752
20752
  /**
20753
20753
  * Bidirectional transformations for the Effect Schema system.
20754
20754
  *
@@ -21360,7 +21360,7 @@ const dateTimeUtcFromString = /* @__PURE__ */ transformOrFail({
21360
21360
  encode: (utc) => succeed$4(formatIso(utc))
21361
21361
  });
21362
21362
  //#endregion
21363
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/SchemaAST.js
21363
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/SchemaAST.js
21364
21364
  /**
21365
21365
  * Abstract Syntax Tree (AST) representation for Effect schemas.
21366
21366
  *
@@ -23384,7 +23384,7 @@ const unknownToStringTree = /* @__PURE__ */ new Link(/* @__PURE__ */ new Declara
23384
23384
  toCodecStringTree: () => new Link(unknown$1, passthrough())
23385
23385
  }), /* @__PURE__ */ passthrough());
23386
23386
  //#endregion
23387
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Brand.js
23387
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Brand.js
23388
23388
  /**
23389
23389
  * This function returns a `Constructor` that **does not apply any runtime
23390
23390
  * checks**, it just returns the provided value. It can be used to create
@@ -23405,7 +23405,7 @@ function nominal() {
23405
23405
  });
23406
23406
  }
23407
23407
  //#endregion
23408
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/PlatformError.js
23408
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/PlatformError.js
23409
23409
  /**
23410
23410
  * @since 4.0.0
23411
23411
  */
@@ -23465,7 +23465,7 @@ const systemError = (options) => new PlatformError(new SystemError(options));
23465
23465
  */
23466
23466
  const badArgument = (options) => new PlatformError(new BadArgument(options));
23467
23467
  //#endregion
23468
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Chunk.js
23468
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Chunk.js
23469
23469
  /**
23470
23470
  * The `Chunk` module provides an immutable, high-performance sequence data structure
23471
23471
  * optimized for functional programming patterns. A `Chunk` is a persistent data structure
@@ -24108,7 +24108,7 @@ const getCurrent = getCurrentFiber;
24108
24108
  */
24109
24109
  const runIn = fiberRunIn;
24110
24110
  //#endregion
24111
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Latch.js
24111
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Latch.js
24112
24112
  /**
24113
24113
  * Creates a new Latch unsafely.
24114
24114
  *
@@ -24180,7 +24180,7 @@ const makeUnsafe$10 = makeLatchUnsafe;
24180
24180
  */
24181
24181
  const make$79 = makeLatch;
24182
24182
  //#endregion
24183
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/MutableList.js
24183
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/MutableList.js
24184
24184
  /**
24185
24185
  * @fileoverview
24186
24186
  * MutableList is an efficient, mutable linked list implementation optimized for high-throughput
@@ -24445,6 +24445,7 @@ const appendAll = (self, messages) => appendAllUnsafe(self, fromIterable$5(messa
24445
24445
  * @category mutations
24446
24446
  */
24447
24447
  const appendAllUnsafe = (self, messages, mutable = false) => {
24448
+ if (messages.length === 0) return 0;
24448
24449
  const chunk = {
24449
24450
  array: messages,
24450
24451
  mutable,
@@ -24762,7 +24763,7 @@ const filter$4 = (self, f) => {
24762
24763
  */
24763
24764
  const remove$6 = (self, value) => filter$4(self, (v) => v !== value);
24764
24765
  //#endregion
24765
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/MutableRef.js
24766
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/MutableRef.js
24766
24767
  const TypeId$62 = "~effect/MutableRef";
24767
24768
  const MutableRefProto = {
24768
24769
  [TypeId$62]: TypeId$62,
@@ -24918,7 +24919,7 @@ const set$9 = /* @__PURE__ */ dual(2, (self, value) => {
24918
24919
  */
24919
24920
  const update$1 = /* @__PURE__ */ dual(2, (self, f) => set$9(self, f(get$15(self))));
24920
24921
  //#endregion
24921
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/PubSub.js
24922
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/PubSub.js
24922
24923
  /**
24923
24924
  * This module provides utilities for working with publish-subscribe (PubSub) systems.
24924
24925
  *
@@ -26356,7 +26357,7 @@ const emptyReplayWindow = {
26356
26357
  takeAll: () => []
26357
26358
  };
26358
26359
  //#endregion
26359
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Queue.js
26360
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Queue.js
26360
26361
  /**
26361
26362
  * @since 3.8.0
26362
26363
  */
@@ -27175,7 +27176,7 @@ const finalize$1 = (self, exit) => {
27175
27176
  openState.awaiters.clear();
27176
27177
  };
27177
27178
  //#endregion
27178
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Semaphore.js
27179
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Semaphore.js
27179
27180
  /**
27180
27181
  * Unsafely creates a new Semaphore.
27181
27182
  *
@@ -27325,14 +27326,14 @@ var SemaphoreImpl = class {
27325
27326
  */
27326
27327
  const make$74 = (permits) => sync$2(() => new SemaphoreImpl(permits));
27327
27328
  //#endregion
27328
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Take.js
27329
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Take.js
27329
27330
  /**
27330
27331
  * @since 4.0.0
27331
27332
  * @category Conversions
27332
27333
  */
27333
27334
  const toPull$2 = (take) => isExit(take) ? isSuccess$3(take) ? done(take.value) : take : succeed$4(take);
27334
27335
  //#endregion
27335
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Channel.js
27336
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Channel.js
27336
27337
  /**
27337
27338
  * The `Channel` module provides a powerful abstraction for bi-directional communication
27338
27339
  * and streaming operations. A `Channel` is a nexus of I/O operations that supports both
@@ -29078,7 +29079,7 @@ const toPubSubTake$1 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(functi
29078
29079
  return pubsub;
29079
29080
  }));
29080
29081
  //#endregion
29081
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/stream.js
29082
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/stream.js
29082
29083
  const TypeId$58 = "~effect/Stream";
29083
29084
  const streamVariance = {
29084
29085
  _R: identity,
@@ -29098,7 +29099,7 @@ const fromChannel$2 = (channel) => {
29098
29099
  return self;
29099
29100
  };
29100
29101
  //#endregion
29101
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Sink.js
29102
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Sink.js
29102
29103
  const TypeId$57 = "~effect/Sink";
29103
29104
  const endVoid = /* @__PURE__ */ succeed$4([void 0]);
29104
29105
  const sinkVariance = {
@@ -29275,7 +29276,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap$5(
29275
29276
  */
29276
29277
  const unwrap$1 = (effect) => fromChannel$1(unwrap$2(map$10(effect, toChannel$1)));
29277
29278
  //#endregion
29278
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/MutableHashMap.js
29279
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/MutableHashMap.js
29279
29280
  const TypeId$56 = "~effect/collections/MutableHashMap";
29280
29281
  const MutableHashMapProto = {
29281
29282
  [TypeId$56]: TypeId$56,
@@ -29651,7 +29652,7 @@ const forEach$2 = /* @__PURE__ */ dual(2, (self, f) => {
29651
29652
  self.backing.forEach(f);
29652
29653
  });
29653
29654
  //#endregion
29654
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/RcMap.js
29655
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/RcMap.js
29655
29656
  /**
29656
29657
  * @since 3.5.0
29657
29658
  */
@@ -29849,7 +29850,7 @@ const invalidate$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function
29849
29850
  yield* close(entry.scope, void_$3);
29850
29851
  }, uninterruptible));
29851
29852
  //#endregion
29852
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/rcRef.js
29853
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/rcRef.js
29853
29854
  const TypeId$54 = "~effect/RcRef";
29854
29855
  const stateEmpty = { _tag: "Empty" };
29855
29856
  const stateClosed = { _tag: "Closed" };
@@ -29913,9 +29914,9 @@ const getState = (self) => uninterruptibleMask((restore) => {
29913
29914
  const get$12 = /* @__PURE__ */ fnUntraced(function* (self_) {
29914
29915
  const self = self_;
29915
29916
  const state = yield* getState(self);
29916
- const scope$10 = yield* scope;
29917
+ const scope$12 = yield* scope;
29917
29918
  const isFinite = self.idleTimeToLive !== void 0 && isFinite$2(self.idleTimeToLive);
29918
- yield* addFinalizerExit(scope$10, () => {
29919
+ yield* addFinalizerExit(scope$12, () => {
29919
29920
  state.refCount--;
29920
29921
  if (state.refCount > 0) return void_$2;
29921
29922
  if (self.idleTimeToLive === void 0) {
@@ -29950,7 +29951,7 @@ const invalidate$3 = (self_) => {
29950
29951
  }));
29951
29952
  };
29952
29953
  //#endregion
29953
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/RcRef.js
29954
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/RcRef.js
29954
29955
  /**
29955
29956
  * Create an `RcRef` from an acquire `Effect`.
29956
29957
  *
@@ -30024,7 +30025,7 @@ const get$11 = get$12;
30024
30025
  */
30025
30026
  const invalidate$2 = invalidate$3;
30026
30027
  //#endregion
30027
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Stream.js
30028
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Stream.js
30028
30029
  /**
30029
30030
  * @since 2.0.0
30030
30031
  */
@@ -32046,7 +32047,7 @@ const runIntoPubSub = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, p
32046
32047
  */
32047
32048
  const toPubSubTake = /* @__PURE__ */ dual(2, (self, options) => toPubSubTake$1(self.channel, options));
32048
32049
  //#endregion
32049
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/FileSystem.js
32050
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/FileSystem.js
32050
32051
  /**
32051
32052
  * This module provides a comprehensive file system abstraction that supports both synchronous
32052
32053
  * and asynchronous file operations through Effect. It includes utilities for file I/O, directory
@@ -32270,7 +32271,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
32270
32271
  */
32271
32272
  var WatchBackend = class extends Service$1()("effect/platform/FileSystem/WatchBackend") {};
32272
32273
  //#endregion
32273
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Path.js
32274
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Path.js
32274
32275
  /**
32275
32276
  * @since 4.0.0
32276
32277
  */
@@ -32335,7 +32336,7 @@ const TypeId$51 = "~effect/platform/Path";
32335
32336
  */
32336
32337
  const Path$1 = /* @__PURE__ */ Service$1("effect/Path");
32337
32338
  //#endregion
32338
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/ConfigProvider.js
32339
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/ConfigProvider.js
32339
32340
  /**
32340
32341
  * Provides the data source layer for the `Config` module. A `ConfigProvider`
32341
32342
  * knows how to load raw configuration nodes from a backing store (environment
@@ -32721,7 +32722,7 @@ function trieNodeAt(root, path) {
32721
32722
  */
32722
32723
  const isLessThan$1 = /* @__PURE__ */ isLessThan$4(LogLevelOrder);
32723
32724
  //#endregion
32724
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/hashMap.js
32725
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/hashMap.js
32725
32726
  /**
32726
32727
  * @since 2.0.0
32727
32728
  */
@@ -33305,7 +33306,7 @@ const set$6 = set$7;
33305
33306
  */
33306
33307
  const remove$3 = remove$4;
33307
33308
  //#endregion
33308
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Struct.js
33309
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Struct.js
33309
33310
  /**
33310
33311
  * Creates a new struct containing only the specified keys.
33311
33312
  *
@@ -33443,7 +33444,7 @@ function buildStruct(source, f) {
33443
33444
  return out;
33444
33445
  }
33445
33446
  //#endregion
33446
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/UndefinedOr.js
33447
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/UndefinedOr.js
33447
33448
  /**
33448
33449
  * @since 4.0.0
33449
33450
  */
@@ -33453,7 +33454,7 @@ const map$5 = /* @__PURE__ */ dual(2, (self, f) => self === void 0 ? void 0 : f(
33453
33454
  */
33454
33455
  const match$1 = /* @__PURE__ */ dual(2, (self, { onDefined, onUndefined }) => self === void 0 ? onUndefined() : onDefined(self));
33455
33456
  //#endregion
33456
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/SchemaParser.js
33457
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/SchemaParser.js
33457
33458
  /**
33458
33459
  * @since 4.0.0
33459
33460
  */
@@ -33658,7 +33659,7 @@ const recur$1 = /* @__PURE__ */ memoize$1((ast) => {
33658
33659
  };
33659
33660
  });
33660
33661
  //#endregion
33661
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/JsonPointer.js
33662
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/JsonPointer.js
33662
33663
  /**
33663
33664
  * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901.
33664
33665
  *
@@ -33750,8 +33751,46 @@ const recur$1 = /* @__PURE__ */ memoize$1((ast) => {
33750
33751
  function escapeToken(token) {
33751
33752
  return token.replace(/~/g, "~0").replace(/\//g, "~1");
33752
33753
  }
33754
+ /**
33755
+ * Unescapes a JSON Pointer reference token according to RFC 6901.
33756
+ *
33757
+ * Decodes escaped characters in a reference token to recover the original token value.
33758
+ *
33759
+ * ## When to use this
33760
+ *
33761
+ * - Parsing JSON Pointers to extract the original token values from escaped segments
33762
+ * - Converting escaped tokens back to their original form for use as object keys or identifiers
33763
+ * - Resolving schema references or JSON Patch paths that use escaped tokens
33764
+ *
33765
+ * ## Behavior
33766
+ *
33767
+ * - Does not mutate the input string; returns a new unescaped string
33768
+ * - Replaces `~1` with `/` (forward slash) and `~0` with `~` (tilde)
33769
+ * - Replacement order matters: `~1` is replaced before `~0` to prevent incorrect decoding
33770
+ * - Returns the input unchanged if it contains no escaped sequences
33771
+ * - Empty strings are valid and returned unchanged
33772
+ *
33773
+ * **Example** (Unescaping special characters)
33774
+ *
33775
+ * ```ts
33776
+ * import { unescapeToken } from "effect/JsonPointer"
33777
+ *
33778
+ * unescapeToken("a~1b") // "a/b"
33779
+ * unescapeToken("c~0d") // "c~d"
33780
+ * unescapeToken("path~1to~0key") // "path/to~key"
33781
+ * ```
33782
+ *
33783
+ * ## See also
33784
+ *
33785
+ * - {@link escapeToken} - The inverse operation for encoding tokens
33786
+ *
33787
+ * @since 4.0.0
33788
+ */
33789
+ function unescapeToken(token) {
33790
+ return token.replace(/~1/g, "/").replace(/~0/g, "~");
33791
+ }
33753
33792
  //#endregion
33754
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/schema/schema.js
33793
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/schema/schema.js
33755
33794
  /** @internal */
33756
33795
  const TypeId$50 = "~effect/Schema/Schema";
33757
33796
  const SchemaProto = {
@@ -33780,7 +33819,7 @@ function make$65(ast, options) {
33780
33819
  return self;
33781
33820
  }
33782
33821
  //#endregion
33783
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/schema/to-codec.js
33822
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/schema/to-codec.js
33784
33823
  /** @internal */
33785
33824
  const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
33786
33825
  const out = toCodecJsonBase(ast);
@@ -33848,7 +33887,7 @@ function makeReorder(getPriority) {
33848
33887
  };
33849
33888
  }
33850
33889
  //#endregion
33851
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/internal/schema/representation.js
33890
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/internal/schema/representation.js
33852
33891
  /** @internal */
33853
33892
  function fromAST(ast) {
33854
33893
  const { references, representations: schemas } = fromASTs([ast]);
@@ -34422,7 +34461,91 @@ function getPartPattern(part) {
34422
34461
  }
34423
34462
  }
34424
34463
  //#endregion
34425
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Schema.js
34464
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/JsonSchema.js
34465
+ /**
34466
+ * Resolves a `$ref` string by looking up the last path segment in a
34467
+ * definitions map.
34468
+ *
34469
+ * - Use when you need to dereference a `$ref` pointer to get the
34470
+ * actual schema it points to.
34471
+ * - Only resolves the final segment of the ref path (e.g. `"User"` from
34472
+ * `"#/$defs/User"`); does not follow arbitrary JSON Pointer paths.
34473
+ * - Returns `undefined` if the definition is not found.
34474
+ * - Does not mutate anything. Pure function.
34475
+ *
34476
+ * **Example** (Resolving a $ref)
34477
+ *
34478
+ * ```ts
34479
+ * import { JsonSchema } from "effect"
34480
+ *
34481
+ * const definitions: JsonSchema.Definitions = {
34482
+ * User: { type: "object", properties: { name: { type: "string" } } }
34483
+ * }
34484
+ *
34485
+ * const result = JsonSchema.resolve$ref("#/$defs/User", definitions)
34486
+ * console.log(result) // { type: "object", properties: { name: { type: "string" } } }
34487
+ *
34488
+ * const missing = JsonSchema.resolve$ref("#/$defs/Unknown", definitions)
34489
+ * console.log(missing) // undefined
34490
+ * ```
34491
+ *
34492
+ * @see {@link resolveTopLevel$ref}
34493
+ * @see {@link Definitions}
34494
+ *
34495
+ * @since 4.0.0
34496
+ */
34497
+ function resolve$ref($ref, definitions) {
34498
+ const tokens = $ref.split("/");
34499
+ if (tokens.length > 0) {
34500
+ const definition = definitions[unescapeToken(tokens[tokens.length - 1])];
34501
+ if (definition !== void 0) return definition;
34502
+ }
34503
+ }
34504
+ /**
34505
+ * If the root schema of a document is a `$ref`, resolves it against the
34506
+ * document's definitions and returns a new document with the inlined
34507
+ * schema. Returns the original document unchanged if the root schema is
34508
+ * not a `$ref` or if the referenced definition is not found.
34509
+ *
34510
+ * - Use to dereference a top-level `$ref` before inspecting the root
34511
+ * schema's properties directly.
34512
+ * - Does not mutate the input. Returns the same object if no change is
34513
+ * needed, or a shallow copy with the resolved schema.
34514
+ *
34515
+ * **Example** (Resolving a top-level $ref)
34516
+ *
34517
+ * ```ts
34518
+ * import { JsonSchema } from "effect"
34519
+ *
34520
+ * const doc: JsonSchema.Document<"draft-2020-12"> = {
34521
+ * dialect: "draft-2020-12",
34522
+ * schema: { $ref: "#/$defs/User" },
34523
+ * definitions: {
34524
+ * User: { type: "object", properties: { name: { type: "string" } } }
34525
+ * }
34526
+ * }
34527
+ *
34528
+ * const resolved = JsonSchema.resolveTopLevel$ref(doc)
34529
+ * console.log(resolved.schema) // { type: "object", properties: { name: { type: "string" } } }
34530
+ * ```
34531
+ *
34532
+ * @see {@link resolve$ref}
34533
+ * @see {@link Document}
34534
+ *
34535
+ * @since 4.0.0
34536
+ */
34537
+ function resolveTopLevel$ref(document) {
34538
+ if (typeof document.schema.$ref === "string") {
34539
+ const schema = resolve$ref(document.schema.$ref, document.definitions);
34540
+ if (schema !== void 0) return {
34541
+ ...document,
34542
+ schema
34543
+ };
34544
+ }
34545
+ return document;
34546
+ }
34547
+ //#endregion
34548
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Schema.js
34426
34549
  /**
34427
34550
  * Define data shapes, validate unknown input, and transform values between formats.
34428
34551
  *
@@ -37117,7 +37240,7 @@ const Json = /* @__PURE__ */ make$64(Json$1);
37117
37240
  */
37118
37241
  const MutableJson = /* @__PURE__ */ make$64(MutableJson$1);
37119
37242
  //#endregion
37120
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Config.js
37243
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Config.js
37121
37244
  const TypeId$48 = "~effect/Config";
37122
37245
  /**
37123
37246
  * The error type produced when config loading or validation fails.
@@ -37604,7 +37727,7 @@ function redacted(name) {
37604
37727
  return schema$2(Redacted(String$1), name);
37605
37728
  }
37606
37729
  //#endregion
37607
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Runtime.js
37730
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Runtime.js
37608
37731
  /**
37609
37732
  * This module provides utilities for running Effect programs and managing their execution lifecycle.
37610
37733
  *
@@ -37810,7 +37933,7 @@ const getErrorReported = (u) => {
37810
37933
  return true;
37811
37934
  };
37812
37935
  //#endregion
37813
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/CliError.js
37936
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/CliError.js
37814
37937
  /**
37815
37938
  * @since 4.0.0
37816
37939
  */
@@ -48909,7 +49032,7 @@ const getTypeName = (primitive) => {
48909
49032
  /** @internal */
48910
49033
  const getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
48911
49034
  //#endregion
48912
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Terminal.js
49035
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Terminal.js
48913
49036
  const TypeId$46 = "~effect/platform/Terminal";
48914
49037
  const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
48915
49038
  /**
@@ -48946,7 +49069,7 @@ const make$62 = (impl) => Terminal.of({
48946
49069
  [TypeId$46]: TypeId$46
48947
49070
  });
48948
49071
  //#endregion
48949
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/ansi.js
49072
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/ansi.js
48950
49073
  const ESC = "\x1B[";
48951
49074
  const SEP = ";";
48952
49075
  /** @internal */
@@ -49022,7 +49145,7 @@ const eraseLines = (rows) => {
49022
49145
  return command;
49023
49146
  };
49024
49147
  //#endregion
49025
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/Prompt.js
49148
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/Prompt.js
49026
49149
  /**
49027
49150
  * @since 4.0.0
49028
49151
  */
@@ -50336,7 +50459,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
50336
50459
  };
50337
50460
  };
50338
50461
  //#endregion
50339
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/Param.js
50462
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/Param.js
50340
50463
  /**
50341
50464
  * @internal
50342
50465
  *
@@ -51026,7 +51149,7 @@ const getParamMetadata = (param) => {
51026
51149
  });
51027
51150
  };
51028
51151
  //#endregion
51029
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/Argument.js
51152
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/Argument.js
51030
51153
  /**
51031
51154
  * Creates a positional path argument.
51032
51155
  *
@@ -51058,7 +51181,7 @@ const path = (name, options) => path$1(argumentKind, name, options);
51058
51181
  */
51059
51182
  const withDescription$2 = /* @__PURE__ */ dual(2, (self, description) => withDescription$3(self, description));
51060
51183
  //#endregion
51061
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/CliOutput.js
51184
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/CliOutput.js
51062
51185
  /**
51063
51186
  * Service reference for the CLI output formatter. Provides a default implementation
51064
51187
  * that can be overridden for custom formatting or testing.
@@ -51301,7 +51424,7 @@ const formatHelpDocImpl = (doc, colors) => {
51301
51424
  return sections.join("\n");
51302
51425
  };
51303
51426
  //#endregion
51304
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Console.js
51427
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Console.js
51305
51428
  /**
51306
51429
  * A reference to the current console service in the Effect system.
51307
51430
  *
@@ -51417,7 +51540,7 @@ const warn = (...args) => consoleWith((console) => sync$2(() => {
51417
51540
  console.warn(...args);
51418
51541
  }));
51419
51542
  //#endregion
51420
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Stdio.js
51543
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Stdio.js
51421
51544
  /**
51422
51545
  * @since 4.0.0
51423
51546
  * @category Type IDs
@@ -51437,7 +51560,7 @@ const make$61 = (options) => ({
51437
51560
  ...options
51438
51561
  });
51439
51562
  //#endregion
51440
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
51563
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
51441
51564
  const escapeForBash = (s) => s.replace(/'/g, "'\\''");
51442
51565
  const sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
51443
51566
  const flagNamesForWordlist = (flag) => {
@@ -51588,7 +51711,7 @@ const generate$3 = (executableName, descriptor) => {
51588
51711
  return lines.join("\n");
51589
51712
  };
51590
51713
  //#endregion
51591
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
51714
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
51592
51715
  const escapeFishString = (s) => s.replace(/'/g, "\\'");
51593
51716
  /**
51594
51717
  * Build a Fish condition that checks the current subcommand context.
@@ -51726,7 +51849,7 @@ const generate$2 = (executableName, descriptor) => {
51726
51849
  return lines.join("\n");
51727
51850
  };
51728
51851
  //#endregion
51729
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
51852
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
51730
51853
  const escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
51731
51854
  const sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
51732
51855
  /**
@@ -51863,7 +51986,7 @@ const generate$1 = (executableName, descriptor) => {
51863
51986
  return lines.join("\n");
51864
51987
  };
51865
51988
  //#endregion
51866
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/Completions.js
51989
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/Completions.js
51867
51990
  /**
51868
51991
  * @since 4.0.0
51869
51992
  */
@@ -51881,7 +52004,7 @@ const generate = (executableName, shell, descriptor) => {
51881
52004
  }
51882
52005
  };
51883
52006
  //#endregion
51884
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/Flag.js
52007
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/Flag.js
51885
52008
  /**
51886
52009
  * Creates a boolean flag that can be enabled or disabled.
51887
52010
  *
@@ -52114,7 +52237,7 @@ const withFallbackConfig = /* @__PURE__ */ dual(2, (self, config) => withFallbac
52114
52237
  */
52115
52238
  const map$1 = /* @__PURE__ */ dual(2, (self, f) => map$2(self, f));
52116
52239
  //#endregion
52117
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/config.js
52240
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/config.js
52118
52241
  const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
52119
52242
  /**
52120
52243
  * Parses a Command.Config into a ConfigInternal.
@@ -52220,7 +52343,7 @@ const reconstructTree = (tree, results) => {
52220
52343
  }
52221
52344
  };
52222
52345
  //#endregion
52223
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/command.js
52346
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/command.js
52224
52347
  /**
52225
52348
  * Command Implementation
52226
52349
  * ======================
@@ -52333,10 +52456,18 @@ const toFlagDoc = (single) => {
52333
52456
  name: single.name,
52334
52457
  aliases: formattedAliases,
52335
52458
  type: single.typeName ?? getTypeName(single.primitiveType),
52336
- description: single.description,
52459
+ description: appendChoiceKeys(single.description, getChoiceKeys(single.primitiveType)),
52337
52460
  required: single.primitiveType._tag !== "Boolean"
52338
52461
  };
52339
52462
  };
52463
+ const appendChoiceKeys = (description, choiceKeys) => {
52464
+ if (choiceKeys === void 0 || choiceKeys.length === 0) return description;
52465
+ const choiceSuffix = `(choices: ${choiceKeys.join(", ")})`;
52466
+ return match$10(description, {
52467
+ onNone: () => some$2(choiceSuffix),
52468
+ onSome: (value) => some$2(`${value} ${choiceSuffix}`)
52469
+ });
52470
+ };
52340
52471
  /**
52341
52472
  * Creates a parser for a given config. Used as the default for both `parse`
52342
52473
  * and `parseContext`, and also by `withSharedFlags` to avoid constructing a
@@ -52392,7 +52523,7 @@ const checkForDuplicateFlags = (parent, subcommands, options) => {
52392
52523
  }
52393
52524
  };
52394
52525
  //#endregion
52395
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
52526
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
52396
52527
  /**
52397
52528
  * CommandDescriptor — pure-data representation of a command tree for
52398
52529
  * shell completion generation.
@@ -52480,7 +52611,7 @@ const fromCommand = (cmd) => {
52480
52611
  };
52481
52612
  };
52482
52613
  //#endregion
52483
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/help.js
52614
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/help.js
52484
52615
  /**
52485
52616
  * Help Documentation
52486
52617
  * ================
@@ -52583,7 +52714,7 @@ const getHelpForCommandPath = (command, commandPath, builtIns) => gen(function*
52583
52714
  };
52584
52715
  });
52585
52716
  //#endregion
52586
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/GlobalFlag.js
52717
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/GlobalFlag.js
52587
52718
  /**
52588
52719
  * @since 4.0.0
52589
52720
  */
@@ -52693,7 +52824,7 @@ const BuiltIns = [
52693
52824
  LogLevel
52694
52825
  ];
52695
52826
  //#endregion
52696
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/lexer.js
52827
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/lexer.js
52697
52828
  /** @internal */
52698
52829
  function lex(argv) {
52699
52830
  const endIndex = argv.indexOf("--");
@@ -52744,7 +52875,7 @@ const lexTokens = (args) => {
52744
52875
  return tokens;
52745
52876
  };
52746
52877
  //#endregion
52747
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
52878
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
52748
52879
  /**
52749
52880
  * Simple Levenshtein distance implementation (small N, no perf worries)
52750
52881
  */
@@ -52772,7 +52903,7 @@ const suggest = (input, candidates) => {
52772
52903
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
52773
52904
  };
52774
52905
  //#endregion
52775
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/internal/parser.js
52906
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/internal/parser.js
52776
52907
  /**
52777
52908
  * Parsing Pipeline for CLI Commands
52778
52909
  * ==================================
@@ -53094,7 +53225,7 @@ const scanCommandLevel = (tokens, context) => {
53094
53225
  return toLeafResult(state);
53095
53226
  };
53096
53227
  //#endregion
53097
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/cli/Command.js
53228
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/cli/Command.js
53098
53229
  /**
53099
53230
  * @since 4.0.0
53100
53231
  * @category Guards
@@ -53592,7 +53723,7 @@ const runWith = (command, config) => {
53592
53723
  }, catchFilter$2((error) => isCliError(error) && error._tag === "ShowHelp" ? succeed$9(error) : fail$10(error), (error) => andThen(showHelp(command, error), fail$6(error))), catchFilter$2((e) => isQuitError(e) ? succeed$9(e) : fail$10(e), (_) => interrupt$1));
53593
53724
  };
53594
53725
  //#endregion
53595
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Cache.js
53726
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Cache.js
53596
53727
  /**
53597
53728
  * @since 4.0.0
53598
53729
  */
@@ -54009,7 +54140,7 @@ const invalidate$1 = /* @__PURE__ */ dual(2, (self, key) => sync$2(() => {
54009
54140
  remove$5(self.map, key);
54010
54141
  }));
54011
54142
  //#endregion
54012
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/ChannelSchema.js
54143
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/ChannelSchema.js
54013
54144
  /**
54014
54145
  * @since 4.0.0
54015
54146
  * @category constructors
@@ -54038,7 +54169,7 @@ const decode$4 = (schema) => () => {
54038
54169
  */
54039
54170
  const ignore = "~effect/ErrorReporter/ignore";
54040
54171
  //#endregion
54041
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/FiberHandle.js
54172
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/FiberHandle.js
54042
54173
  /**
54043
54174
  * @since 2.0.0
54044
54175
  */
@@ -54233,7 +54364,7 @@ const runImpl$2 = (self, effect, options) => withFiber((parent) => {
54233
54364
  return succeed$4(fiber);
54234
54365
  });
54235
54366
  //#endregion
54236
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/FiberMap.js
54367
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/FiberMap.js
54237
54368
  /**
54238
54369
  * @since 2.0.0
54239
54370
  */
@@ -54463,7 +54594,7 @@ const runImpl$1 = (self, key, effect, options) => withFiber((parent) => {
54463
54594
  return succeed$4(fiber);
54464
54595
  });
54465
54596
  //#endregion
54466
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/FiberSet.js
54597
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/FiberSet.js
54467
54598
  /**
54468
54599
  * @since 2.0.0
54469
54600
  */
@@ -54715,7 +54846,7 @@ const awaitEmpty = (self) => whileLoop({
54715
54846
  step: constVoid
54716
54847
  });
54717
54848
  //#endregion
54718
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/PrimaryKey.js
54849
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/PrimaryKey.js
54719
54850
  /**
54720
54851
  * The unique identifier used to identify objects that implement the `PrimaryKey` interface.
54721
54852
  *
@@ -54752,7 +54883,7 @@ const symbol$2 = "~effect/interfaces/PrimaryKey";
54752
54883
  */
54753
54884
  const value$1 = (self) => self[symbol$2]();
54754
54885
  //#endregion
54755
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/LayerMap.js
54886
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/LayerMap.js
54756
54887
  const TypeId$37 = "~effect/LayerMap";
54757
54888
  /**
54758
54889
  * @since 3.14.0
@@ -54918,7 +55049,7 @@ const Service = () => (id, options) => {
54918
55049
  return TagClass;
54919
55050
  };
54920
55051
  //#endregion
54921
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Logger.js
55052
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Logger.js
54922
55053
  /**
54923
55054
  * @since 2.0.0
54924
55055
  *
@@ -55045,7 +55176,7 @@ const Service = () => (id, options) => {
55045
55176
  */
55046
55177
  const CurrentLoggers = CurrentLoggers$2;
55047
55178
  //#endregion
55048
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Random.js
55179
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Random.js
55049
55180
  /**
55050
55181
  * The Random module provides a service for generating random numbers in Effect
55051
55182
  * programs. It offers a testable and composable way to work with randomness,
@@ -55138,7 +55269,7 @@ const shuffle = (elements) => randomWith((r) => {
55138
55269
  return buffer;
55139
55270
  });
55140
55271
  //#endregion
55141
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Ref.js
55272
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Ref.js
55142
55273
  const RefProto = {
55143
55274
  ["~effect/Ref"]: { _A: identity },
55144
55275
  ...PipeInspectableProto,
@@ -55179,7 +55310,7 @@ const makeUnsafe$3 = (value) => {
55179
55310
  return self;
55180
55311
  };
55181
55312
  //#endregion
55182
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/reactivity/Reactivity.js
55313
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/reactivity/Reactivity.js
55183
55314
  /**
55184
55315
  * @since 4.0.0
55185
55316
  */
@@ -55314,7 +55445,7 @@ const keysToHashes = (keys, f) => {
55314
55445
  }
55315
55446
  };
55316
55447
  //#endregion
55317
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/sql/Statement.js
55448
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/sql/Statement.js
55318
55449
  /**
55319
55450
  * @since 4.0.0
55320
55451
  */
@@ -55873,7 +56004,7 @@ function in_() {
55873
56004
  }
55874
56005
  const neverFragment = /* @__PURE__ */ fragment([/* @__PURE__ */ literal$1("1=0")]);
55875
56006
  //#endregion
55876
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/sql/SqlClient.js
56007
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/sql/SqlClient.js
55877
56008
  /**
55878
56009
  * @since 4.0.0
55879
56010
  */
@@ -55967,7 +56098,7 @@ var TransactionConnection = class extends Service$1()("effect/sql/SqlClient/Tran
55967
56098
  */
55968
56099
  const SafeIntegers = /* @__PURE__ */ Reference("effect/sql/SqlClient/SafeIntegers", { defaultValue: () => false });
55969
56100
  //#endregion
55970
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
56101
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
55971
56102
  /**
55972
56103
  * @since 4.0.0
55973
56104
  */
@@ -56109,7 +56240,7 @@ const toSchemaStore = (self, schema) => {
56109
56240
  };
56110
56241
  };
56111
56242
  //#endregion
56112
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/persistence/Persistable.js
56243
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/persistence/Persistable.js
56113
56244
  /**
56114
56245
  * @since 4.0.0
56115
56246
  * @category Symbols
@@ -56163,7 +56294,7 @@ const deserializeExit = (self, encoded) => {
56163
56294
  return decodeUnknownEffect(toCodecJson(exitSchema$1(self)))(encoded);
56164
56295
  };
56165
56296
  //#endregion
56166
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/persistence/Persistence.js
56297
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/persistence/Persistence.js
56167
56298
  /**
56168
56299
  * @since 4.0.0
56169
56300
  */
@@ -56198,7 +56329,7 @@ var BackingPersistence = class extends Service$1()("effect/persistence/BackingPe
56198
56329
  */
56199
56330
  const layer$31 = /* @__PURE__ */ effect$1(Persistence)(/* @__PURE__ */ gen(function* () {
56200
56331
  const backing = yield* BackingPersistence;
56201
- const scope$8 = yield* scope;
56332
+ const scope$10 = yield* scope;
56202
56333
  return Persistence.of({ make: fnUntraced(function* (options) {
56203
56334
  const storage = yield* backing.make(options.storeId);
56204
56335
  const timeToLive = options.timeToLive ?? (() => infinity);
@@ -56233,7 +56364,7 @@ const layer$31 = /* @__PURE__ */ effect$1(Persistence)(/* @__PURE__ */ gen(funct
56233
56364
  }
56234
56365
  out[i] = exit$3.value;
56235
56366
  }
56236
- if (toRemove) for (let i = 0; i < toRemove.length; i++) yield* forkIn(storage.remove(toRemove[i]), scope$8);
56367
+ if (toRemove) for (let i = 0; i < toRemove.length; i++) yield* forkIn(storage.remove(toRemove[i]), scope$10);
56237
56368
  return out;
56238
56369
  }),
56239
56370
  set(key, value) {
@@ -56339,7 +56470,7 @@ const layerKvs$1 = /* @__PURE__ */ layer$31.pipe(/* @__PURE__ */ provide$3(layer
56339
56470
  */
56340
56471
  const unsafeTtlToExpires = (clock, ttl) => ttl ? clock.currentTimeMillisUnsafe() + toMillis(ttl) : null;
56341
56472
  //#endregion
56342
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/RequestResolver.js
56473
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/RequestResolver.js
56343
56474
  const TypeId$34 = "~effect/RequestResolver";
56344
56475
  const RequestResolverProto = {
56345
56476
  [TypeId$34]: {
@@ -56602,7 +56733,7 @@ const withSpan = /* @__PURE__ */ dual((args) => isRequestResolver(args[0]), (sel
56602
56733
  })
56603
56734
  }));
56604
56735
  //#endregion
56605
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/SynchronizedRef.js
56736
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/SynchronizedRef.js
56606
56737
  const TypeId$33 = "~effect/SynchronizedRef";
56607
56738
  const Proto$16 = {
56608
56739
  ...PipeInspectableProto,
@@ -56625,7 +56756,7 @@ const makeUnsafe$1 = (value) => {
56625
56756
  return self;
56626
56757
  };
56627
56758
  //#endregion
56628
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/ScopedRef.js
56759
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/ScopedRef.js
56629
56760
  /**
56630
56761
  * @since 2.0.0
56631
56762
  */
@@ -56690,7 +56821,7 @@ const set$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function* (self
56690
56821
  self.backing.backing.ref.current = [scope, value];
56691
56822
  }, uninterruptible, (effect, self) => self.backing.semaphore.withPermit(effect)));
56692
56823
  //#endregion
56693
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/ScopedCache.js
56824
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/ScopedCache.js
56694
56825
  /**
56695
56826
  * @since 4.0.0
56696
56827
  */
@@ -56787,7 +56918,7 @@ const invalidateAllImpl = (parent, map) => {
56787
56918
  return fiberAwaitAll(fibers);
56788
56919
  };
56789
56920
  //#endregion
56790
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/SubscriptionRef.js
56921
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/SubscriptionRef.js
56791
56922
  /**
56792
56923
  * @since 2.0.0
56793
56924
  */
@@ -56919,7 +57050,7 @@ const set$3 = /* @__PURE__ */ dual(2, (self, value) => self.semaphore.withPermit
56919
57050
  */
56920
57051
  const update = /* @__PURE__ */ dual(2, (self, update) => self.semaphore.withPermit(sync(() => setUnsafe(self, update(self.value)))));
56921
57052
  //#endregion
56922
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/Unify.js
57053
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/Unify.js
56923
57054
  /**
56924
57055
  * @since 2.0.0
56925
57056
  */
@@ -58339,7 +58470,7 @@ var Mime = class {
58339
58470
  };
58340
58471
  _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
58341
58472
  //#endregion
58342
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/Mime.js
58473
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/Mime.js
58343
58474
  /**
58344
58475
  * @since 1.0.0
58345
58476
  */
@@ -58349,7 +58480,7 @@ _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /
58349
58480
  */
58350
58481
  var Mime_default = new Mime(types$1, types$2)._freeze();
58351
58482
  //#endregion
58352
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
58483
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
58353
58484
  /**
58354
58485
  * A module providing a generic service interface for spawning child processes.
58355
58486
  *
@@ -58412,7 +58543,7 @@ const make$46 = (spawn) => {
58412
58543
  */
58413
58544
  var ChildProcessSpawner = class extends Service$1()("effect/process/ChildProcessSpawner") {};
58414
58545
  //#endregion
58415
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/process/ChildProcess.js
58546
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/process/ChildProcess.js
58416
58547
  const TypeId$29 = "~effect/unstable/process/ChildProcess";
58417
58548
  const Proto$12 = {
58418
58549
  ...PipeInspectableProto,
@@ -58696,7 +58827,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
58696
58827
  ...nextTokens.slice(1)
58697
58828
  ];
58698
58829
  //#endregion
58699
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/platform-node-shared/dist/internal/utils.js
58830
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/platform-node-shared/dist/internal/utils.js
58700
58831
  /** @internal */
58701
58832
  const handleErrnoException = (module, method) => (err, [path]) => {
58702
58833
  let reason = "Unknown";
@@ -58733,7 +58864,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
58733
58864
  });
58734
58865
  };
58735
58866
  //#endregion
58736
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/platform-node-shared/dist/NodeSink.js
58867
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/platform-node-shared/dist/NodeSink.js
58737
58868
  /**
58738
58869
  * @category constructors
58739
58870
  * @since 1.0.0
@@ -58777,7 +58908,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap$5((chunk) => {
58777
58908
  });
58778
58909
  }) : identity);
58779
58910
  //#endregion
58780
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/platform-node-shared/dist/NodeStream.js
58911
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/platform-node-shared/dist/NodeStream.js
58781
58912
  /**
58782
58913
  * @since 1.0.0
58783
58914
  */
@@ -58943,7 +59074,7 @@ var StreamAdapter = class extends Readable {
58943
59074
  };
58944
59075
  const defaultOnError = (error) => new UnknownError$2(error);
58945
59076
  //#endregion
58946
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
59077
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
58947
59078
  const toError = (error) => error instanceof globalThis.Error ? error : new globalThis.Error(String(error));
58948
59079
  const toPlatformError = (method, error, command) => {
58949
59080
  const { commands } = flattenCommand(command);
@@ -59277,7 +59408,7 @@ const flattenCommand = (command) => {
59277
59408
  };
59278
59409
  };
59279
59410
  //#endregion
59280
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/Cookies.js
59411
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/Cookies.js
59281
59412
  /**
59282
59413
  * @since 4.0.0
59283
59414
  */
@@ -59541,7 +59672,7 @@ const tryDecodeURIComponent = (str) => {
59541
59672
  }
59542
59673
  };
59543
59674
  //#endregion
59544
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/Headers.js
59675
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/Headers.js
59545
59676
  /**
59546
59677
  * @since 4.0.0
59547
59678
  */
@@ -59664,7 +59795,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
59664
59795
  "x-api-key"
59665
59796
  ] });
59666
59797
  //#endregion
59667
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpClientError.js
59798
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpClientError.js
59668
59799
  /**
59669
59800
  * @since 4.0.0
59670
59801
  */
@@ -59815,7 +59946,7 @@ ErrorClass(TypeId$26)({
59815
59946
  cause: /* @__PURE__ */ optional$3(Defect)
59816
59947
  });
59817
59948
  //#endregion
59818
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/UrlParams.js
59949
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/UrlParams.js
59819
59950
  /**
59820
59951
  * @since 4.0.0
59821
59952
  */
@@ -60027,7 +60158,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
60027
60158
  encode: fromInput
60028
60159
  })));
60029
60160
  //#endregion
60030
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpBody.js
60161
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpBody.js
60031
60162
  /**
60032
60163
  * @since 4.0.0
60033
60164
  */
@@ -60166,7 +60297,7 @@ var FormData$1 = class extends Proto$8 {
60166
60297
  */
60167
60298
  const formData = (body) => new FormData$1(body);
60168
60299
  //#endregion
60169
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpMethod.js
60300
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpMethod.js
60170
60301
  /**
60171
60302
  * @since 4.0.0
60172
60303
  */
@@ -60181,7 +60312,7 @@ const allShort = [
60181
60312
  ["TRACE", "trace"]
60182
60313
  ];
60183
60314
  //#endregion
60184
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpClientRequest.js
60315
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpClientRequest.js
60185
60316
  const TypeId$23 = "~effect/http/HttpClientRequest";
60186
60317
  const Proto$7 = {
60187
60318
  [TypeId$23]: TypeId$23,
@@ -60351,7 +60482,7 @@ const bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, url
60351
60482
  */
60352
60483
  const bodyFormData = /* @__PURE__ */ dual(2, (self, body) => setBody(self, formData(body)));
60353
60484
  //#endregion
60354
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
60485
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
60355
60486
  /**
60356
60487
  * @since 4.0.0
60357
60488
  */
@@ -60402,7 +60533,7 @@ const inspect$1 = (self, that) => {
60402
60533
  return obj;
60403
60534
  };
60404
60535
  //#endregion
60405
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpClientResponse.js
60536
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpClientResponse.js
60406
60537
  /**
60407
60538
  * @since 4.0.0
60408
60539
  */
@@ -60543,7 +60674,7 @@ var WebHttpClientResponse = class extends Class$5 {
60543
60674
  }
60544
60675
  };
60545
60676
  //#endregion
60546
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpTraceContext.js
60677
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpTraceContext.js
60547
60678
  /**
60548
60679
  * @since 4.0.0
60549
60680
  */
@@ -60618,7 +60749,7 @@ const w3c = (headers) => {
60618
60749
  }
60619
60750
  };
60620
60751
  //#endregion
60621
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpClient.js
60752
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpClient.js
60622
60753
  const TypeId$20 = "~effect/http/HttpClient";
60623
60754
  /**
60624
60755
  * @since 4.0.0
@@ -61481,7 +61612,7 @@ const httpMethods = [
61481
61612
  */
61482
61613
  const make$38 = make$39;
61483
61614
  //#endregion
61484
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/Template.js
61615
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/Template.js
61485
61616
  /**
61486
61617
  * @since 4.0.0
61487
61618
  */
@@ -61530,7 +61661,7 @@ function isSuccess$1(u) {
61530
61661
  return isExit(u) && u._tag === "Success";
61531
61662
  }
61532
61663
  //#endregion
61533
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpServerResponse.js
61664
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpServerResponse.js
61534
61665
  /**
61535
61666
  * @since 4.0.0
61536
61667
  */
@@ -61619,7 +61750,7 @@ const makeResponse$2 = (options) => {
61619
61750
  return self;
61620
61751
  };
61621
61752
  //#endregion
61622
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
61753
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
61623
61754
  /**
61624
61755
  * @since 4.0.0
61625
61756
  */
@@ -61656,7 +61787,7 @@ const toResponseOrElseDefect = (u, orElse) => {
61656
61787
  return succeed$4(orElse);
61657
61788
  };
61658
61789
  //#endregion
61659
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpServerError.js
61790
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpServerError.js
61660
61791
  /**
61661
61792
  * @since 4.0.0
61662
61793
  */
@@ -61828,7 +61959,7 @@ const exitResponse = (exit) => {
61828
61959
  return causeResponseStripped(exit.cause)[0];
61829
61960
  };
61830
61961
  //#endregion
61831
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/socket/Socket.js
61962
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/socket/Socket.js
61832
61963
  /**
61833
61964
  * @since 4.0.0
61834
61965
  * @category Type IDs
@@ -61959,7 +62090,7 @@ var SocketError = class extends TaggedErrorClass(SocketErrorTypeId)("SocketError
61959
62090
  /**
61960
62091
  * @since 4.0.0
61961
62092
  */
61962
- const defaultCloseCodeIsError = (code) => code !== 1e3 && code !== 1006;
62093
+ const defaultCloseCodeIsError = (_code) => true;
61963
62094
  /**
61964
62095
  * @since 4.0.0
61965
62096
  * @category tags
@@ -62947,7 +63078,7 @@ const make$33 = make$34;
62947
63078
  const defaultIsFile = defaultIsFile$1;
62948
63079
  const decodeField = decodeField$1;
62949
63080
  //#endregion
62950
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/Multipart.js
63081
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/Multipart.js
62951
63082
  /**
62952
63083
  * @since 4.0.0
62953
63084
  */
@@ -63079,7 +63210,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
63079
63210
  */
63080
63211
  const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
63081
63212
  //#endregion
63082
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpServerRequest.js
63213
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpServerRequest.js
63083
63214
  /**
63084
63215
  * @since 4.0.0
63085
63216
  * @category Type IDs
@@ -63117,11 +63248,11 @@ const toURL = (self) => {
63117
63248
  }
63118
63249
  };
63119
63250
  //#endregion
63120
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/internal/preResponseHandler.js
63251
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/internal/preResponseHandler.js
63121
63252
  /** @internal */
63122
63253
  const requestPreResponseHandlers = /* @__PURE__ */ new WeakMap();
63123
63254
  //#endregion
63124
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpMiddleware.js
63255
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpMiddleware.js
63125
63256
  /**
63126
63257
  * @since 4.0.0
63127
63258
  */
@@ -63219,7 +63350,7 @@ const tracer = /* @__PURE__ */ make$32((httpApp) => withFiber((fiber) => {
63219
63350
  }, true);
63220
63351
  }));
63221
63352
  //#endregion
63222
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpEffect.js
63353
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpEffect.js
63223
63354
  /**
63224
63355
  * @since 4.0.0
63225
63356
  * @category combinators
@@ -63289,7 +63420,7 @@ const scoped = (effect) => withFiber((fiber) => {
63289
63420
  }, true);
63290
63421
  });
63291
63422
  //#endregion
63292
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/Etag.js
63423
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/Etag.js
63293
63424
  /**
63294
63425
  * @since 4.0.0
63295
63426
  */
@@ -63355,7 +63486,7 @@ const layerWeak = /* @__PURE__ */ succeed$5(Generator)({
63355
63486
  }
63356
63487
  });
63357
63488
  //#endregion
63358
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpPlatform.js
63489
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpPlatform.js
63359
63490
  /**
63360
63491
  * @since 4.0.0
63361
63492
  */
@@ -63394,7 +63525,7 @@ const make$31 = /* @__PURE__ */ fnUntraced(function* (impl) {
63394
63525
  });
63395
63526
  });
63396
63527
  //#endregion
63397
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpServer.js
63528
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpServer.js
63398
63529
  /**
63399
63530
  * @since 4.0.0
63400
63531
  */
@@ -63439,7 +63570,7 @@ const logAddress = /* @__PURE__ */ addressFormattedWith((_) => log$1(`Listening
63439
63570
  */
63440
63571
  const withLogAddress = (layer) => effectDiscard(logAddress).pipe(provideMerge(layer));
63441
63572
  //#endregion
63442
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/HttpRouter.js
63573
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/HttpRouter.js
63443
63574
  /**
63444
63575
  * @since 4.0.0
63445
63576
  */
@@ -63755,7 +63886,7 @@ const serve = (appLayer, options) => {
63755
63886
  }).pipe(unwrap$3, provideMerge(appLayer), provide$3(RouterLayer), options?.disableListenLog ? identity : withLogAddress);
63756
63887
  };
63757
63888
  //#endregion
63758
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/workers/Transferable.js
63889
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/workers/Transferable.js
63759
63890
  /**
63760
63891
  * @since 1.0.0
63761
63892
  */
@@ -63789,7 +63920,7 @@ const makeCollectorUnsafe = () => {
63789
63920
  });
63790
63921
  };
63791
63922
  //#endregion
63792
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/rpc/RpcSchema.js
63923
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/rpc/RpcSchema.js
63793
63924
  /**
63794
63925
  * @since 4.0.0
63795
63926
  */
@@ -63822,7 +63953,7 @@ function Stream(success, error) {
63822
63953
  }
63823
63954
  Service$1()("effect/rpc/RpcSchema/ClientAbort");
63824
63955
  //#endregion
63825
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/rpc/Rpc.js
63956
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/rpc/Rpc.js
63826
63957
  const TypeId$13 = "~effect/rpc/Rpc";
63827
63958
  const Proto$4 = {
63828
63959
  [TypeId$13]: TypeId$13,
@@ -63962,14 +64093,14 @@ const WrapperTypeId = "~effect/rpc/Rpc/Wrapper";
63962
64093
  */
63963
64094
  const isWrapper = (u) => WrapperTypeId in u;
63964
64095
  //#endregion
63965
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/rpc/RpcMessage.js
64096
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/rpc/RpcMessage.js
63966
64097
  /**
63967
64098
  * @since 4.0.0
63968
64099
  * @category request
63969
64100
  */
63970
64101
  const RequestId = (id) => typeof id === "bigint" ? id : BigInt(id);
63971
64102
  //#endregion
63972
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/rpc/Utils.js
64103
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/rpc/Utils.js
63973
64104
  /**
63974
64105
  * @since 4.0.0
63975
64106
  */
@@ -64000,7 +64131,7 @@ const withRun = () => (f) => suspend$3(() => {
64000
64131
  }));
64001
64132
  });
64002
64133
  //#endregion
64003
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/rpc/RpcClient.js
64134
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/rpc/RpcClient.js
64004
64135
  let requestIdCounter = /* @__PURE__ */ BigInt(0);
64005
64136
  /**
64006
64137
  * @since 4.0.0
@@ -64338,7 +64469,7 @@ var Protocol$1 = class extends Service$1()("effect/rpc/RpcClient/Protocol") {
64338
64469
  };
64339
64470
  const decodeDefect = /* @__PURE__ */ decodeSync(Defect);
64340
64471
  //#endregion
64341
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/rpc/RpcGroup.js
64472
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/rpc/RpcGroup.js
64342
64473
  const RpcGroupProto = {
64343
64474
  add(...rpcs) {
64344
64475
  const requests = new Map(this.requests);
@@ -64571,7 +64702,7 @@ const fromRecord = (migrations) => pipe$1(Object.keys(migrations), flatMapNullis
64571
64702
  succeed$4(migrations[key])
64572
64703
  ]), sort(migrationOrder), succeed$4);
64573
64704
  //#endregion
64574
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/sql/SqlError.js
64705
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/sql/SqlError.js
64575
64706
  /**
64576
64707
  * @since 4.0.0
64577
64708
  */
@@ -68341,7 +68472,7 @@ require_subprotocol();
68341
68472
  var import_websocket = /* @__PURE__ */ __toESM(require_websocket$1(), 1);
68342
68473
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
68343
68474
  //#endregion
68344
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
68475
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
68345
68476
  /**
68346
68477
  * @since 1.0.0
68347
68478
  */
@@ -68679,7 +68810,7 @@ const makeFileSystem = /* @__PURE__ */ map$10(/* @__PURE__ */ serviceOption(Watc
68679
68810
  writeFile: writeFile$1
68680
68811
  }));
68681
68812
  //#endregion
68682
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeFileSystem.js
68813
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeFileSystem.js
68683
68814
  /**
68684
68815
  * @since 1.0.0
68685
68816
  */
@@ -68689,7 +68820,7 @@ const makeFileSystem = /* @__PURE__ */ map$10(/* @__PURE__ */ serviceOption(Watc
68689
68820
  */
68690
68821
  const layer$25 = /* @__PURE__ */ effect$1(FileSystem)(makeFileSystem);
68691
68822
  //#endregion
68692
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
68823
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
68693
68824
  /**
68694
68825
  * @since 1.0.0
68695
68826
  */
@@ -90197,7 +90328,7 @@ var require_undici = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
90197
90328
  module.exports.install = install;
90198
90329
  }));
90199
90330
  //#endregion
90200
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/Undici.js
90331
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/Undici.js
90201
90332
  var Undici_exports = /* @__PURE__ */ __exportAll({ default: () => Undici_default });
90202
90333
  var import_undici = /* @__PURE__ */ __toESM(require_undici(), 1);
90203
90334
  __reExport(Undici_exports, /* @__PURE__ */ __toESM(require_undici(), 1));
@@ -90207,7 +90338,7 @@ __reExport(Undici_exports, /* @__PURE__ */ __toESM(require_undici(), 1));
90207
90338
  */
90208
90339
  var Undici_default = import_undici.default;
90209
90340
  //#endregion
90210
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/http/FetchHttpClient.js
90341
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/http/FetchHttpClient.js
90211
90342
  /**
90212
90343
  * @since 4.0.0
90213
90344
  */
@@ -90252,7 +90383,7 @@ const layer$24 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed$4(/
90252
90383
  return send(void 0);
90253
90384
  })));
90254
90385
  //#endregion
90255
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpClient.js
90386
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpClient.js
90256
90387
  /**
90257
90388
  * @since 1.0.0
90258
90389
  */
@@ -90420,7 +90551,7 @@ var UndiciResponse = class extends Class$5 {
90420
90551
  const layerUndici = /* @__PURE__ */ provide$3(/* @__PURE__ */ layerMergedServices(makeUndici), layerDispatcher);
90421
90552
  Service$1()("@effect/platform-node/NodeHttpClient/HttpAgent");
90422
90553
  //#endregion
90423
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
90554
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
90424
90555
  /**
90425
90556
  * @since 1.0.0
90426
90557
  */
@@ -90541,7 +90672,7 @@ var FileStream = class extends Readable {
90541
90672
  }
90542
90673
  };
90543
90674
  //#endregion
90544
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeMultipart.js
90675
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeMultipart.js
90545
90676
  /**
90546
90677
  * @since 1.0.0
90547
90678
  */
@@ -90636,7 +90767,7 @@ function convertError(cause) {
90636
90767
  }
90637
90768
  }
90638
90769
  //#endregion
90639
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/platform-node-shared/dist/NodePath.js
90770
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/platform-node-shared/dist/NodePath.js
90640
90771
  /**
90641
90772
  * @since 1.0.0
90642
90773
  */
@@ -90659,7 +90790,7 @@ const toFileUrl = (path) => try_({
90659
90790
  ({ ...Path.posix });
90660
90791
  ({ ...Path.win32 });
90661
90792
  //#endregion
90662
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodePath.js
90793
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodePath.js
90663
90794
  /**
90664
90795
  * @since 1.0.0
90665
90796
  */
@@ -90674,7 +90805,7 @@ const layer$21 = /* @__PURE__ */ succeed$5(Path$1)({
90674
90805
  toFileUrl
90675
90806
  });
90676
90807
  //#endregion
90677
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeStdio.js
90808
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeStdio.js
90678
90809
  /**
90679
90810
  * @since 1.0.0
90680
90811
  */
@@ -90779,7 +90910,7 @@ function defaultShouldQuit(input) {
90779
90910
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
90780
90911
  }
90781
90912
  //#endregion
90782
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeServices.js
90913
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeServices.js
90783
90914
  /**
90784
90915
  * @since 1.0.0
90785
90916
  * @category layer
@@ -90791,7 +90922,7 @@ const layer$16 = /* @__PURE__ */ provideMerge(layer$30, /* @__PURE__ */ mergeAll
90791
90922
  */
90792
90923
  const layerWebSocketConstructorWS = /* @__PURE__ */ succeed$5(WebSocketConstructor)((url, protocols) => new import_websocket.default(url, protocols));
90793
90924
  //#endregion
90794
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpServer.js
90925
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpServer.js
90795
90926
  /**
90796
90927
  * @since 1.0.0
90797
90928
  */
@@ -90800,7 +90931,7 @@ const layerWebSocketConstructorWS = /* @__PURE__ */ succeed$5(WebSocketConstruct
90800
90931
  * @category constructors
90801
90932
  */
90802
90933
  const make$20 = /* @__PURE__ */ fnUntraced(function* (evaluate, options) {
90803
- const scope$5 = yield* scope;
90934
+ const scope$7 = yield* scope;
90804
90935
  const server = evaluate();
90805
90936
  const shutdown = yield* callback$1((resume) => {
90806
90937
  if (!server.listening) return resume(void_$2);
@@ -90813,7 +90944,7 @@ const make$20 = /* @__PURE__ */ fnUntraced(function* (evaluate, options) {
90813
90944
  duration: options.gracefulShutdownTimeout ?? seconds(20),
90814
90945
  orElse: () => void_$2
90815
90946
  });
90816
- yield* addFinalizer$1(scope$5, shutdown);
90947
+ yield* addFinalizer$1(scope$7, shutdown);
90817
90948
  yield* callback$1((resume) => {
90818
90949
  function onError(cause) {
90819
90950
  resume(fail$6(new ServeError({ cause })));
@@ -90827,7 +90958,7 @@ const make$20 = /* @__PURE__ */ fnUntraced(function* (evaluate, options) {
90827
90958
  const address = server.address();
90828
90959
  const wss = yield* acquireRelease(sync(() => new import_websocket_server.default({ noServer: true })), (wss) => callback$1((resume) => {
90829
90960
  wss.close(() => resume(void_$2));
90830
- })).pipe(provide$4(scope$5), cached$1);
90961
+ })).pipe(provide$4(scope$7), cached$1);
90831
90962
  return make$30({
90832
90963
  address: typeof address === "string" ? {
90833
90964
  _tag: "UnixAddress",
@@ -90839,14 +90970,14 @@ const make$20 = /* @__PURE__ */ fnUntraced(function* (evaluate, options) {
90839
90970
  },
90840
90971
  serve: fnUntraced(function* (httpApp, middleware) {
90841
90972
  const serveScope = yield* scope;
90842
- const scope$6 = forkUnsafe(serveScope, "parallel");
90973
+ const scope$8 = forkUnsafe(serveScope, "parallel");
90843
90974
  const handler = yield* makeHandler(httpApp, {
90844
90975
  middleware,
90845
- scope: scope$6
90976
+ scope: scope$8
90846
90977
  });
90847
90978
  const upgradeHandler = yield* makeUpgradeHandler(wss, httpApp, {
90848
90979
  middleware,
90849
- scope: scope$6
90980
+ scope: scope$8
90850
90981
  });
90851
90982
  yield* addFinalizerExit(serveScope, () => {
90852
90983
  server.off("request", handler);
@@ -91084,7 +91215,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
91084
91215
  return failCause$2(headersSent ? combine$1(originalCause, die$3(originalResponse)) : cause);
91085
91216
  });
91086
91217
  //#endregion
91087
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.41_effect@4.0.0-beta.41_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeRuntime.js
91218
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.43_effect@4.0.0-beta.43_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeRuntime.js
91088
91219
  /**
91089
91220
  * @since 1.0.0
91090
91221
  */
@@ -91135,7 +91266,7 @@ const runMain = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
91135
91266
  process.on("SIGTERM", onSigint);
91136
91267
  });
91137
91268
  //#endregion
91138
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/persistence/PersistedCache.js
91269
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/persistence/PersistedCache.js
91139
91270
  /**
91140
91271
  * @since 4.0.0
91141
91272
  */
@@ -91494,7 +91625,9 @@ ${prompt}` : prompt
91494
91625
  ], {
91495
91626
  stdout: "pipe",
91496
91627
  stderr: "pipe",
91497
- stdin: "inherit"
91628
+ stdin: "inherit",
91629
+ env: { FORCE_COLOR: "1" },
91630
+ extendEnv: true
91498
91631
  }),
91499
91632
  commandPlan: ({ prompt, prdFilePath, dangerous }) => make$45("codex", [
91500
91633
  ...dangerous ? ["--dangerously-bypass-approvals-and-sandbox"] : [],
@@ -91687,7 +91820,7 @@ const toExit = (self) => {
91687
91820
  }
91688
91821
  };
91689
91822
  //#endregion
91690
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
91823
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
91691
91824
  /**
91692
91825
  * @since 4.0.0
91693
91826
  */
@@ -91711,12 +91844,12 @@ const AtomRegistry = /* @__PURE__ */ Service$1(TypeId$9);
91711
91844
  * @category Layers
91712
91845
  */
91713
91846
  const layerOptions = (options) => effect$1(AtomRegistry, gen(function* () {
91714
- const scope$4 = yield* scope;
91847
+ const scope$6 = yield* scope;
91715
91848
  const registry = make$18({
91716
91849
  ...options,
91717
91850
  scheduleTask: options?.scheduleTask
91718
91851
  });
91719
- yield* addFinalizer$1(scope$4, sync(() => registry.dispose()));
91852
+ yield* addFinalizer$1(scope$6, sync(() => registry.dispose()));
91720
91853
  return registry;
91721
91854
  }));
91722
91855
  /**
@@ -92274,7 +92407,7 @@ function batchRebuildNode(node) {
92274
92407
  if (node.state !== NodeState.valid) node.value();
92275
92408
  }
92276
92409
  //#endregion
92277
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/reactivity/Atom.js
92410
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/reactivity/Atom.js
92278
92411
  /**
92279
92412
  * @since 4.0.0
92280
92413
  */
@@ -179511,7 +179644,7 @@ const parseCommand = (command) => {
179511
179644
  return args;
179512
179645
  };
179513
179646
  //#endregion
179514
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/Model.js
179647
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/Model.js
179515
179648
  /**
179516
179649
  * The `Model` module provides a unified interface for AI service providers.
179517
179650
  *
@@ -182734,7 +182867,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
182734
182867
  });
182735
182868
  Ze.glob = Ze;
182736
182869
  //#endregion
182737
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/ApplyPatch.js
182870
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/ApplyPatch.js
182738
182871
  /**
182739
182872
  * @since 1.0.0
182740
182873
  */
@@ -197615,7 +197748,7 @@ var StreamableHTTPClientTransport = class {
197615
197748
  }
197616
197749
  };
197617
197750
  //#endregion
197618
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/McpClient.js
197751
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/McpClient.js
197619
197752
  /**
197620
197753
  * @since 1.0.0
197621
197754
  */
@@ -197660,7 +197793,7 @@ const layer$13 = effect$1(McpClient, gen(function* () {
197660
197793
  });
197661
197794
  }));
197662
197795
  //#endregion
197663
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/ExaSearch.js
197796
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/ExaSearch.js
197664
197797
  /**
197665
197798
  * @since 1.0.0
197666
197799
  */
@@ -212610,7 +212743,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin$1(((exports) => {
212610
212743
  exports.impl = impl;
212611
212744
  }));
212612
212745
  //#endregion
212613
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/WebToMarkdown.js
212746
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/WebToMarkdown.js
212614
212747
  /**
212615
212748
  * @since 1.0.0
212616
212749
  */
@@ -213374,7 +213507,7 @@ const layer$11 = effect$1(WebToMarkdown, gen(function* () {
213374
213507
  });
213375
213508
  }));
213376
213509
  //#endregion
213377
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/Response.js
213510
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/Response.js
213378
213511
  const PartTypeId$1 = "~effect/ai/Content/Part";
213379
213512
  const constEmptyObject$1 = () => ({});
213380
213513
  const constPartTypeId$1 = () => PartTypeId$1;
@@ -213880,7 +214013,7 @@ const ErrorPart = /* @__PURE__ */ Struct$2({
213880
214013
  error: Unknown
213881
214014
  }).annotate({ identifier: "ErrorPart" });
213882
214015
  //#endregion
213883
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/AiError.js
214016
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/AiError.js
213884
214017
  /**
213885
214018
  * The `AiError` module provides comprehensive, provider-agnostic error handling
213886
214019
  * for AI operations.
@@ -215103,7 +215236,7 @@ const reasonFromHttpStatus = (params) => {
215103
215236
  }
215104
215237
  };
215105
215238
  //#endregion
215106
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/Toolkit.js
215239
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/Toolkit.js
215107
215240
  const TypeId$5 = "~effect/ai/Toolkit";
215108
215241
  const Proto$2 = {
215109
215242
  ...YieldableProto,
@@ -215327,7 +215460,7 @@ const merge$1 = (...toolkits) => {
215327
215460
  return makeProto(tools);
215328
215461
  };
215329
215462
  //#endregion
215330
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/Tool.js
215463
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/Tool.js
215331
215464
  /**
215332
215465
  * @since 1.0.0
215333
215466
  * @category type ids
@@ -215751,7 +215884,7 @@ function isEmptyParamsRecord(indexSignature) {
215751
215884
  return indexSignature.parameter === string$3 && isNever(indexSignature.type);
215752
215885
  }
215753
215886
  //#endregion
215754
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/SemanticSearch/Service.js
215887
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/SemanticSearch/Service.js
215755
215888
  /**
215756
215889
  * @since 1.0.0
215757
215890
  */
@@ -215777,7 +215910,7 @@ const maybeRemoveFile = (path) => serviceOption(SemanticSearch).pipe(flatMap$5(m
215777
215910
  onSome: (service) => service.removeFile(path)
215778
215911
  })));
215779
215912
  //#endregion
215780
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/AgentTools.js
215913
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/AgentTools.js
215781
215914
  /**
215782
215915
  * @since 1.0.0
215783
215916
  */
@@ -216180,7 +216313,7 @@ const AgentToolHandlers = AgentToolHandlersNoDeps.pipe(provide$3([layer$12, laye
216180
216313
  AgentToolHandlersNoDeps.pipe(provide$3([mock(ExaSearch)({}), mock(WebToMarkdown)({})]));
216181
216314
  var ApplyPatchError = class extends TaggedClass$2("ApplyPatchError") {};
216182
216315
  //#endregion
216183
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/TypeBuilder.js
216316
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/TypeBuilder.js
216184
216317
  const resolveDocumentation = resolveAt("documentation");
216185
216318
  const identifierPattern = /^[$A-Z_a-z][$0-9A-Z_a-z]*$/u;
216186
216319
  const Precedence = {
@@ -216453,7 +216586,7 @@ const render = (schema, options) => {
216453
216586
  return printNode({ text: documentation === void 0 ? rendered.text : `${renderJsDoc(documentation, 0, printerOptions)}${printerOptions.newLine}${rendered.text}` }, printerOptions);
216454
216587
  };
216455
216588
  //#endregion
216456
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/ToolkitRenderer.js
216589
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/ToolkitRenderer.js
216457
216590
  /**
216458
216591
  * @since 1.0.0
216459
216592
  */
@@ -216475,7 +216608,7 @@ declare function ${name}(${params}): Promise<${render(tool.successSchema)}>`);
216475
216608
  }) });
216476
216609
  };
216477
216610
  //#endregion
216478
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/ScriptPreprocessing.js
216611
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/ScriptPreprocessing.js
216479
216612
  const callTemplateTargets = ["applyPatch", "taskComplete"];
216480
216613
  const objectPropertyTargets = [{
216481
216614
  functionName: "writeFile",
@@ -216979,6 +217112,35 @@ const collectObjectPropertyIdentifiers = (script, target) => {
216979
217112
  }
216980
217113
  return identifiers;
216981
217114
  };
217115
+ const collectAssignedValueRootIdentifiers = (script, variableName) => {
217116
+ const identifiers = /* @__PURE__ */ new Set();
217117
+ let cursor = 0;
217118
+ while (cursor < script.length) {
217119
+ const variableStart = findNextIdentifier(script, variableName, cursor);
217120
+ if (variableStart === -1) break;
217121
+ let assignmentStart = skipWhitespace(script, variableStart + variableName.length);
217122
+ if (script[assignmentStart] === ":") {
217123
+ assignmentStart = findTypeAnnotationAssignment(script, assignmentStart + 1);
217124
+ if (assignmentStart === -1) {
217125
+ cursor = variableStart + variableName.length;
217126
+ continue;
217127
+ }
217128
+ }
217129
+ if (script[assignmentStart] !== "=" || script[assignmentStart + 1] === "=" || script[assignmentStart + 1] === ">") {
217130
+ cursor = variableStart + variableName.length;
217131
+ continue;
217132
+ }
217133
+ const valueStart = skipWhitespace(script, assignmentStart + 1);
217134
+ const rootIdentifier = parseIdentifier(script, valueStart);
217135
+ if (rootIdentifier !== void 0) {
217136
+ identifiers.add(rootIdentifier.name);
217137
+ cursor = rootIdentifier.end;
217138
+ continue;
217139
+ }
217140
+ cursor = valueStart + 1;
217141
+ }
217142
+ return identifiers;
217143
+ };
216982
217144
  const rewriteAssignedTemplate = (script, variableName) => rewriteTemplateContents(script, (text, from) => {
216983
217145
  let cursor = from;
216984
217146
  while (cursor < text.length) {
@@ -217071,6 +217233,17 @@ const collectReferencedTemplateIdentifiers = (script) => {
217071
217233
  for (const functionName of callTemplateTargets) for (const identifier of collectCallArgumentIdentifiers(script, functionName)) templateIdentifiers.add(identifier);
217072
217234
  for (const target of objectPropertyTargets) for (const identifier of collectObjectPropertyIdentifiers(script, target)) templateIdentifiers.add(identifier);
217073
217235
  if (script.includes("*** Begin Patch")) templateIdentifiers.add("patch");
217236
+ const pendingIdentifiers = Array.from(templateIdentifiers);
217237
+ const visitedIdentifiers = /* @__PURE__ */ new Set();
217238
+ while (pendingIdentifiers.length > 0) {
217239
+ const identifier = pendingIdentifiers.pop();
217240
+ if (visitedIdentifiers.has(identifier)) continue;
217241
+ visitedIdentifiers.add(identifier);
217242
+ for (const source of collectAssignedValueRootIdentifiers(script, identifier)) if (!templateIdentifiers.has(source)) {
217243
+ templateIdentifiers.add(source);
217244
+ pendingIdentifiers.push(source);
217245
+ }
217246
+ }
217074
217247
  const objectIdentifiers = /* @__PURE__ */ new Set();
217075
217248
  for (const identifier of templateIdentifiers) for (const source of collectObjectEntryMapSources(script, identifier)) objectIdentifiers.add(source);
217076
217249
  return {
@@ -217087,7 +217260,7 @@ const rewriteAssignedTargets = (script) => {
217087
217260
  };
217088
217261
  const preprocessScript = (script) => rewriteAssignedTargets(rewriteDirectTemplates(script));
217089
217262
  //#endregion
217090
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/AgentExecutor.js
217263
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/AgentExecutor.js
217091
217264
  /**
217092
217265
  * @since 1.0.0
217093
217266
  */
@@ -217272,7 +217445,7 @@ var QueueWriteStream = class extends Writable {
217272
217445
  }
217273
217446
  };
217274
217447
  //#endregion
217275
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/ScriptExtraction.js
217448
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/ScriptExtraction.js
217276
217449
  const stripWrappingCodeFence = (script) => {
217277
217450
  const lines = script.split(/\r?\n/);
217278
217451
  if (lines.length < 2) return script;
@@ -217297,7 +217470,7 @@ const stripWrappingCodeFence = (script) => {
217297
217470
  return lines.slice(firstNonEmpty + 1, lastNonEmpty).join(newLine);
217298
217471
  };
217299
217472
  //#endregion
217300
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/Prompt.js
217473
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/Prompt.js
217301
217474
  /**
217302
217475
  * The `Prompt` module provides several data structures to simplify creating and
217303
217476
  * combining prompts.
@@ -217836,7 +218009,7 @@ const setSystem = /* @__PURE__ */ dual(2, (self, content) => {
217836
218009
  return makePrompt(messages);
217837
218010
  });
217838
218011
  //#endregion
217839
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/IdGenerator.js
218012
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/IdGenerator.js
217840
218013
  /**
217841
218014
  * The `IdGenerator` service tag for dependency injection.
217842
218015
  *
@@ -217905,11 +218078,11 @@ const makeGenerator = ({ alphabet = DEFAULT_ALPHABET, prefix, separator = DEFAUL
217905
218078
  */
217906
218079
  const defaultIdGenerator = { generateId: /* @__PURE__ */ makeGenerator({ prefix: "id" }) };
217907
218080
  //#endregion
217908
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/internal/codec-transformer.js
218081
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/internal/codec-transformer.js
217909
218082
  /** @internal */
217910
218083
  const defaultCodecTransformer$1 = (codec) => {
217911
- const document = toJsonSchemaDocument(codec);
217912
- const jsonSchema = document.schema;
218084
+ const document = resolveTopLevel$ref(toJsonSchemaDocument(codec));
218085
+ const jsonSchema = { ...document.schema };
217913
218086
  if (Object.keys(document.definitions).length > 0) jsonSchema.$defs = document.definitions;
217914
218087
  return {
217915
218088
  codec,
@@ -217917,7 +218090,7 @@ const defaultCodecTransformer$1 = (codec) => {
217917
218090
  };
217918
218091
  };
217919
218092
  //#endregion
217920
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/ResponseIdTracker.js
218093
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/ResponseIdTracker.js
217921
218094
  /**
217922
218095
  * @since 4.0.0
217923
218096
  */
@@ -217974,7 +218147,7 @@ const make$11 = /* @__PURE__ */ sync(() => {
217974
218147
  };
217975
218148
  });
217976
218149
  //#endregion
217977
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/Telemetry.js
218150
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/Telemetry.js
217978
218151
  /**
217979
218152
  * The `Telemetry` module provides OpenTelemetry integration for operations
217980
218153
  * performed against a large language model provider by defining telemetry
@@ -218090,7 +218263,7 @@ const addGenAIAnnotations$2 = /* @__PURE__ */ dual(2, (span, options) => {
218090
218263
  */
218091
218264
  var CurrentSpanTransformer = class extends Service$1()("effect/ai/Telemetry/CurrentSpanTransformer") {};
218092
218265
  //#endregion
218093
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/LanguageModel.js
218266
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/LanguageModel.js
218094
218267
  /**
218095
218268
  * The `LanguageModel` service key for dependency injection.
218096
218269
  *
@@ -218843,7 +219016,7 @@ const applySpanTransformer = (transformer, response, options) => {
218843
219016
  });
218844
219017
  };
218845
219018
  //#endregion
218846
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/Agent.js
219019
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/Agent.js
218847
219020
  /**
218848
219021
  * @since 1.0.0
218849
219022
  */
@@ -219406,7 +219579,7 @@ Union$2([
219406
219579
  */
219407
219580
  var AgentFinished = class extends TaggedErrorClass()("AgentFinished", { summary: String$1 }) {};
219408
219581
  //#endregion
219409
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/encoding/Sse.js
219582
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/encoding/Sse.js
219410
219583
  /**
219411
219584
  * @since 4.0.0
219412
219585
  * @category Decoding
@@ -219589,7 +219762,7 @@ var Retry = class Retry extends TaggedClass$2("Retry") {
219589
219762
  }
219590
219763
  };
219591
219764
  //#endregion
219592
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@0e9bd09_ef_fc05a9a2e4ce5ce1a36b1e88e6fef9d4/node_modules/@effect/ai-openai/dist/Generated.js
219765
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai/dist/Generated.js
219593
219766
  /**
219594
219767
  * @since 1.0.0
219595
219768
  */ const AdminApiKey = /* @__PURE__ */ Struct$2({
@@ -227657,7 +227830,7 @@ const OpenAiClientError = (tag, cause, response) => new OpenAiClientErrorImpl({
227657
227830
  request: response.request
227658
227831
  });
227659
227832
  //#endregion
227660
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@0e9bd09_ef_fc05a9a2e4ce5ce1a36b1e88e6fef9d4/node_modules/@effect/ai-openai/dist/internal/errors.js
227833
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai/dist/internal/errors.js
227661
227834
  /** @internal */
227662
227835
  const OpenAiErrorBody$1 = /* @__PURE__ */ Struct$2({ error: /* @__PURE__ */ Struct$2({
227663
227836
  message: String$1,
@@ -227870,7 +228043,7 @@ const mapStatusCodeToReason$1 = ({ status, headers, message, metadata, http }) =
227870
228043
  }
227871
228044
  };
227872
228045
  //#endregion
227873
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@0e9bd09_ef_fc05a9a2e4ce5ce1a36b1e88e6fef9d4/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
228046
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
227874
228047
  /**
227875
228048
  * @since 1.0.0
227876
228049
  */
@@ -227885,7 +228058,7 @@ var OpenAiConfig$1 = class OpenAiConfig$1 extends Service$1()("@effect/ai-openai
227885
228058
  static getOrUndefined = /* @__PURE__ */ map$10(/* @__PURE__ */ services(), (context) => context.mapUnsafe.get(OpenAiConfig$1.key));
227886
228059
  };
227887
228060
  //#endregion
227888
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@0e9bd09_ef_fc05a9a2e4ce5ce1a36b1e88e6fef9d4/node_modules/@effect/ai-openai/dist/OpenAiClient.js
228061
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai/dist/OpenAiClient.js
227889
228062
  /**
227890
228063
  * OpenAI Client module for interacting with OpenAI's API.
227891
228064
  *
@@ -227969,15 +228142,22 @@ var OpenAiSocket = class extends Service$1()("@effect/ai-openai/OpenAiClient/Ope
227969
228142
  const makeSocket = /* @__PURE__ */ gen(function* () {
227970
228143
  const client = yield* OpenAiClient$1;
227971
228144
  const tracker = yield* make$11;
227972
- const request = yield* orDie$2(client.client.httpClient.preprocess(post("/responses")));
228145
+ const socketScope = yield* scope;
228146
+ const makeRequest = orDie$2(client.client.httpClient.preprocess(post("/responses")));
228147
+ const makeWebSocket$1 = yield* WebSocketConstructor;
227973
228148
  const decoder = new TextDecoder();
227974
228149
  const queueRef = yield* make$70({
227975
228150
  idleTimeToLive: 6e4,
227976
228151
  acquire: gen(function* () {
227977
- const request = yield* orDie$2(client.client.httpClient.preprocess(post("/responses")));
227978
- const socket = yield* makeWebSocket(request.url.replace(/^http/, "ws"), { closeCodeIsError: constTrue }).pipe(updateService(WebSocketConstructor, (f) => (url) => f(url, { headers: request.headers })));
228152
+ const scope$5 = yield* scope;
228153
+ const request = yield* makeRequest;
228154
+ const socket = yield* makeWebSocket(request.url.replace(/^http/, "ws")).pipe(provideService$2(WebSocketConstructor, (url) => makeWebSocket$1(url, { headers: request.headers })));
227979
228155
  const write = yield* socket.writer;
227980
- let incoming = yield* unbounded();
228156
+ yield* addFinalizerExit(scope$5, () => {
228157
+ tracker.clearUnsafe();
228158
+ return void_$2;
228159
+ });
228160
+ const incoming = yield* unbounded();
227981
228161
  const send = (message) => write(JSON.stringify({
227982
228162
  type: "response.create",
227983
228163
  ...message
@@ -227997,11 +228177,9 @@ const makeSocket = /* @__PURE__ */ gen(function* () {
227997
228177
  })
227998
228178
  })));
227999
228179
  yield* socket.runRaw((msg) => {
228000
- if (!incoming) return;
228001
228180
  const text = typeof msg === "string" ? msg : decoder.decode(msg);
228002
228181
  try {
228003
228182
  const event = decodeEvent(text);
228004
- if (event.type === "error") tracker.clearUnsafe();
228005
228183
  if (event.type === "error" && "status" in event) {
228006
228184
  const json = JSON.stringify(event.error);
228007
228185
  return fail$6(make$15({
@@ -228026,7 +228204,7 @@ const makeSocket = /* @__PURE__ */ gen(function* () {
228026
228204
  }
228027
228205
  offerUnsafe(incoming, event);
228028
228206
  } catch {}
228029
- }).pipe(catchCause$1((cause) => fail$4(incoming, make$15({
228207
+ }).pipe(catchTag$1("SocketError", (error) => make$15({
228030
228208
  module: "OpenAiClient",
228031
228209
  method: "createResponseStream",
228032
228210
  reason: new NetworkError({
@@ -228038,32 +228216,31 @@ const makeSocket = /* @__PURE__ */ gen(function* () {
228038
228216
  hash: void 0,
228039
228217
  headers: request.headers
228040
228218
  },
228041
- description: pretty$1(cause)
228219
+ description: error.message
228042
228220
  })
228043
- }))), ensuring$2(invalidate$2(queueRef)), forkScoped({ startImmediately: true }));
228221
+ }).asEffect()), catchCause$1((cause) => failCause$1(incoming, cause)), ensuring$2(forkIn(invalidate$2(queueRef), socketScope, { startImmediately: true })), forkScoped({ startImmediately: true }));
228044
228222
  return {
228045
228223
  send,
228046
228224
  incoming
228047
228225
  };
228048
228226
  })
228049
228227
  });
228050
- yield* forkScoped(get$11(queueRef));
228228
+ yield* scoped$1(get$11(queueRef));
228051
228229
  const semaphore = makeUnsafe$9(1);
228230
+ const request = yield* makeRequest;
228052
228231
  return OpenAiSocket.serviceMap({ createResponseStream(options) {
228053
- const stream = gen(function* () {
228232
+ const stream = unwrap(gen(function* () {
228233
+ const scope$4 = yield* scope;
228054
228234
  yield* acquireRelease(semaphore.take(1), () => semaphore.release(1), { interruptible: true });
228055
228235
  const { send, incoming } = yield* get$11(queueRef);
228056
228236
  let done = false;
228057
- yield* acquireRelease(send(options), () => {
228058
- if (done) return void_$2;
228059
- tracker.clearUnsafe();
228060
- return invalidate$2(queueRef);
228061
- }, { interruptible: true }).pipe(forkScoped({ startImmediately: true }));
228237
+ yield* addFinalizerExit(scope$4, () => done ? void_$2 : invalidate$2(queueRef));
228238
+ yield* send(options).pipe(forkScoped({ startImmediately: true }));
228062
228239
  return fromQueue(incoming).pipe(takeUntil((e) => {
228063
228240
  done = e.type === "response.completed" || e.type === "response.incomplete";
228064
228241
  return done;
228065
228242
  }));
228066
- }).pipe(unwrap);
228243
+ }));
228067
228244
  return succeed$4([fromWeb(request, new Response()), stream]);
228068
228245
  } }).pipe(add$3(ResponseIdTracker, tracker));
228069
228246
  });
@@ -228091,7 +228268,7 @@ const decodeEvent = /* @__PURE__ */ decodeUnknownSync(/* @__PURE__ */ fromJsonSt
228091
228268
  */
228092
228269
  const layerWebSocketMode = /* @__PURE__ */ effectServices(makeSocket);
228093
228270
  //#endregion
228094
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/EmbeddingModel.js
228271
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/EmbeddingModel.js
228095
228272
  /**
228096
228273
  * The `EmbeddingModel` module provides provider-agnostic text embedding capabilities.
228097
228274
  *
@@ -228190,7 +228367,7 @@ const mapProviderResults = (inputLength, results) => {
228190
228367
  return succeed$4(embeddings);
228191
228368
  };
228192
228369
  //#endregion
228193
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@0e9bd09_ef_fc05a9a2e4ce5ce1a36b1e88e6fef9d4/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
228370
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
228194
228371
  /**
228195
228372
  * OpenAI Embedding Model implementation.
228196
228373
  *
@@ -228270,7 +228447,7 @@ const invalidOutput = (description) => make$15({
228270
228447
  reason: new InvalidOutputError({ description })
228271
228448
  });
228272
228449
  //#endregion
228273
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/ai/OpenAiStructuredOutput.js
228450
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/ai/OpenAiStructuredOutput.js
228274
228451
  /**
228275
228452
  * Provides codec transformations for OpenAI structured output.
228276
228453
  *
@@ -228307,7 +228484,7 @@ function toCodecOpenAI(schema) {
228307
228484
  const to = schema.ast;
228308
228485
  const from = recurOpenAI(toEncoded$1(to));
228309
228486
  const codec = from === to ? schema : make$64(decodeTo$1(from, to, passthrough()));
228310
- const document = toJsonSchemaDocument(codec);
228487
+ const document = resolveTopLevel$ref(toJsonSchemaDocument(codec));
228311
228488
  const jsonSchema = rewriteOpenAI(document.schema);
228312
228489
  if (Object.keys(document.definitions).length > 0) jsonSchema.$defs = map$15(document.definitions, rewriteOpenAI);
228313
228490
  return {
@@ -228327,6 +228504,7 @@ function rewriteOpenAI(schema) {
228327
228504
  else if (Array.isArray(v)) out[k] = v.map((item) => typeof item === "object" && item !== null && !Array.isArray(item) ? rewriteOpenAI(item) : item);
228328
228505
  else if (typeof v === "object" && v !== null) out[k] = rewriteOpenAI(v);
228329
228506
  else out[k] = v;
228507
+ if (out.type === "object" && out.properties === void 0 && out.additionalProperties === false) out.properties = {};
228330
228508
  return out;
228331
228509
  }
228332
228510
  function recurOpenAI(ast) {
@@ -228575,7 +228753,7 @@ const formats = [
228575
228753
  "uuid"
228576
228754
  ];
228577
228755
  //#endregion
228578
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@0e9bd09_ef_fc05a9a2e4ce5ce1a36b1e88e6fef9d4/node_modules/@effect/ai-openai/dist/internal/utilities.js
228756
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai/dist/internal/utilities.js
228579
228757
  const finishReasonMap$1 = {
228580
228758
  content_filter: "content-filter",
228581
228759
  function_call: "tool-calls",
@@ -228593,7 +228771,7 @@ const resolveFinishReason$1 = (finishReason, hasToolCalls) => {
228593
228771
  return reason;
228594
228772
  };
228595
228773
  //#endregion
228596
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@0e9bd09_ef_fc05a9a2e4ce5ce1a36b1e88e6fef9d4/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
228774
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
228597
228775
  /**
228598
228776
  * OpenAI telemetry attributes for OpenTelemetry integration.
228599
228777
  *
@@ -228622,7 +228800,7 @@ const addGenAIAnnotations$1 = /* @__PURE__ */ dual(2, (span, options) => {
228622
228800
  }
228623
228801
  });
228624
228802
  //#endregion
228625
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@0e9bd09_ef_fc05a9a2e4ce5ce1a36b1e88e6fef9d4/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
228803
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
228626
228804
  /**
228627
228805
  * OpenAI Language Model implementation.
228628
228806
  *
@@ -230140,10 +230318,10 @@ const prepareTools$1 = /* @__PURE__ */ fnUntraced(function* ({ config, options,
230140
230318
  toolChoice = options.toolChoice.mode === "required" ? "required" : "auto";
230141
230319
  }
230142
230320
  for (const tool of allowedTools) {
230143
- if (isUserDefined(tool)) {
230321
+ if (isUserDefined(tool) || isDynamic(tool)) {
230144
230322
  const strict = getStrictMode(tool) ?? config.strictJsonSchema ?? true;
230145
230323
  const description = getDescription(tool);
230146
- const parameters = yield* tryJsonSchema$1(tool.parametersSchema, "prepareTools");
230324
+ const parameters = yield* tryToolJsonSchema$1(tool, "prepareTools");
230147
230325
  tools.push({
230148
230326
  type: "function",
230149
230327
  name: tool.name,
@@ -230296,6 +230474,10 @@ const tryJsonSchema$1 = (schema, method) => try_({
230296
230474
  try: () => getJsonSchemaFromSchema(schema, { transformer: toCodecOpenAI }),
230297
230475
  catch: (error) => unsupportedSchemaError$1(error, method)
230298
230476
  });
230477
+ const tryToolJsonSchema$1 = (tool, method) => try_({
230478
+ try: () => getJsonSchema(tool, { transformer: toCodecOpenAI }),
230479
+ catch: (error) => unsupportedSchemaError$1(error, method)
230480
+ });
230299
230481
  const prepareResponseFormat$1 = /* @__PURE__ */ fnUntraced(function* ({ config, options }) {
230300
230482
  if (options.responseFormat.type === "json") {
230301
230483
  const name = options.responseFormat.objectName;
@@ -230390,7 +230572,7 @@ const transformToolCallParams = /* @__PURE__ */ fnUntraced(function* (tools, too
230390
230572
  })));
230391
230573
  });
230392
230574
  //#endregion
230393
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/CodexAuth.js
230575
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/CodexAuth.js
230394
230576
  /**
230395
230577
  * @since 1.0.0
230396
230578
  */
@@ -230610,7 +230792,7 @@ var CodexAuth = class CodexAuth extends Service$1()("clanka/CodexAuth") {
230610
230792
  static layerClient = this.layerClientNoDeps.pipe(provide$3(CodexAuth.layer));
230611
230793
  };
230612
230794
  //#endregion
230613
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/Codex.js
230795
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/Codex.js
230614
230796
  /**
230615
230797
  * @since 1.0.0
230616
230798
  */
@@ -230636,7 +230818,7 @@ const layerModel = (model, options) => layer$7({
230636
230818
  }
230637
230819
  }).pipe(merge$6(AgentModelConfig.layer({ systemPromptTransform: (system, effect) => withConfigOverride(effect, { instructions: system }) })));
230638
230820
  //#endregion
230639
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/CodeChunker.js
230821
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/CodeChunker.js
230640
230822
  /**
230641
230823
  * @since 1.0.0
230642
230824
  */
@@ -231110,7 +231292,7 @@ const layer$6 = effect$1(CodeChunker, gen(function* () {
231110
231292
  });
231111
231293
  }));
231112
231294
  //#endregion
231113
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/ai-openai-compat/dist/internal/errors.js
231295
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai-compat/dist/internal/errors.js
231114
231296
  /** @internal */
231115
231297
  const OpenAiErrorBody = /* @__PURE__ */ Struct$2({ error: /* @__PURE__ */ Struct$2({
231116
231298
  message: String$1,
@@ -231318,7 +231500,7 @@ const mapStatusCodeToReason = ({ status, headers, message, metadata, http }) =>
231318
231500
  }
231319
231501
  };
231320
231502
  //#endregion
231321
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/ai-openai-compat/dist/OpenAiConfig.js
231503
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai-compat/dist/OpenAiConfig.js
231322
231504
  /**
231323
231505
  * @since 1.0.0
231324
231506
  */
@@ -231333,7 +231515,7 @@ var OpenAiConfig = class OpenAiConfig extends Service$1()("@effect/ai-openai-com
231333
231515
  static getOrUndefined = /* @__PURE__ */ map$10(/* @__PURE__ */ services(), (context) => context.mapUnsafe.get(OpenAiConfig.key));
231334
231516
  };
231335
231517
  //#endregion
231336
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/ai-openai-compat/dist/OpenAiClient.js
231518
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai-compat/dist/OpenAiClient.js
231337
231519
  /**
231338
231520
  * @since 1.0.0
231339
231521
  */
@@ -231469,7 +231651,7 @@ const decodeChatCompletionSseData = (data) => {
231469
231651
  return isChatCompletionChunk(parsed) ? parsed : void 0;
231470
231652
  };
231471
231653
  //#endregion
231472
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/ai-openai-compat/dist/internal/utilities.js
231654
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai-compat/dist/internal/utilities.js
231473
231655
  const finishReasonMap = {
231474
231656
  content_filter: "content-filter",
231475
231657
  function_call: "tool-calls",
@@ -231485,7 +231667,7 @@ const resolveFinishReason = (finishReason, hasToolCalls) => {
231485
231667
  return reason;
231486
231668
  };
231487
231669
  //#endregion
231488
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/ai-openai-compat/dist/OpenAiTelemetry.js
231670
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai-compat/dist/OpenAiTelemetry.js
231489
231671
  /**
231490
231672
  * OpenAI telemetry attributes for OpenTelemetry integration.
231491
231673
  *
@@ -231514,7 +231696,7 @@ const addGenAIAnnotations = /* @__PURE__ */ dual(2, (span, options) => {
231514
231696
  }
231515
231697
  });
231516
231698
  //#endregion
231517
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/ai-openai-compat/dist/OpenAiLanguageModel.js
231699
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/ai-openai-compat/dist/OpenAiLanguageModel.js
231518
231700
  /**
231519
231701
  * OpenAI Language Model implementation.
231520
231702
  *
@@ -232078,7 +232260,7 @@ const prepareTools = /* @__PURE__ */ fnUntraced(function* ({ config, options, to
232078
232260
  toolChoice = options.toolChoice.mode === "required" ? "required" : "auto";
232079
232261
  }
232080
232262
  for (const tool of allowedTools) {
232081
- if (isUserDefined(tool)) {
232263
+ if (isUserDefined(tool) || isDynamic(tool)) {
232082
232264
  const strict = getStrictMode(tool) ?? config.strictJsonSchema ?? true;
232083
232265
  const parameters = yield* tryToolJsonSchema(tool, "prepareTools");
232084
232266
  tools.push({
@@ -232396,7 +232578,7 @@ const getUsageDetailNumber = (details, field) => {
232396
232578
  return typeof value === "number" ? value : void 0;
232397
232579
  };
232398
232580
  //#endregion
232399
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/CopilotAuth.js
232581
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/CopilotAuth.js
232400
232582
  /**
232401
232583
  * @since 1.0.0
232402
232584
  */
@@ -232587,7 +232769,7 @@ var GithubCopilotAuth = class GithubCopilotAuth extends Service$1()("clanka/Gith
232587
232769
  static layerClient = this.layerClientNoDeps.pipe(provide$3(GithubCopilotAuth.layer));
232588
232770
  };
232589
232771
  //#endregion
232590
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/Copilot.js
232772
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/Copilot.js
232591
232773
  /**
232592
232774
  * @since 1.0.0
232593
232775
  */
@@ -233007,7 +233189,7 @@ Object.defineProperties(createChalk.prototype, styles);
233007
233189
  const chalk = createChalk();
233008
233190
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
233009
233191
  //#endregion
233010
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/OutputFormatter.js
233192
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/OutputFormatter.js
233011
233193
  /**
233012
233194
  * @since 1.0.0
233013
233195
  */
@@ -233113,7 +233295,7 @@ const layerMuxer = (formatter) => effect$1(Muxer, gen(function* () {
233113
233295
  });
233114
233296
  }));
233115
233297
  //#endregion
233116
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/schema/VariantSchema.js
233298
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/schema/VariantSchema.js
233117
233299
  /**
233118
233300
  * @since 4.0.0
233119
233301
  * @category Type IDs
@@ -233221,7 +233403,7 @@ const Union$1 = (members, variants) => {
233221
233403
  return VariantUnion;
233222
233404
  };
233223
233405
  //#endregion
233224
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/schema/Model.js
233406
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/schema/Model.js
233225
233407
  const { Class, Field, FieldExcept, FieldOnly, Struct, Union, extract, fieldEvolve } = /* @__PURE__ */ make$1({
233226
233408
  variants: [
233227
233409
  "select",
@@ -233247,7 +233429,7 @@ const Generated = (schema) => Field({
233247
233429
  json: schema
233248
233430
  });
233249
233431
  //#endregion
233250
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/sql/SqlResolver.js
233432
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/sql/SqlResolver.js
233251
233433
  /**
233252
233434
  * @since 4.0.0
233253
233435
  */
@@ -233395,7 +233577,7 @@ function transactionKey(entry) {
233395
233577
  return byReferenceUnsafe(conn);
233396
233578
  }
233397
233579
  //#endregion
233398
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/sql/SqlSchema.js
233580
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/sql/SqlSchema.js
233399
233581
  /**
233400
233582
  * Run a sql query with a request schema and a result schema.
233401
233583
  *
@@ -233408,7 +233590,7 @@ const findAll = (options) => {
233408
233590
  return (request) => flatMap$5(flatMap$5(encodeRequest(request), options.execute), decode);
233409
233591
  };
233410
233592
  //#endregion
233411
- //#region node_modules/.pnpm/effect@4.0.0-beta.41/node_modules/effect/dist/unstable/sql/SqlModel.js
233593
+ //#region node_modules/.pnpm/effect@4.0.0-beta.43/node_modules/effect/dist/unstable/sql/SqlModel.js
233412
233594
  /**
233413
233595
  * Create some simple data loaders from a model.
233414
233596
  *
@@ -233457,7 +233639,7 @@ select * from ${sql(options.tableName)} where ${sql(idColumn)} = LAST_INSERT_ID(
233457
233639
  };
233458
233640
  });
233459
233641
  //#endregion
233460
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/ChunkRepo.js
233642
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/ChunkRepo.js
233461
233643
  /**
233462
233644
  * @since 1.0.0
233463
233645
  * @category Models
@@ -233588,7 +233770,7 @@ const layer$3 = effect$1(ChunkRepo, gen(function* () {
233588
233770
  });
233589
233771
  }));
233590
233772
  //#endregion
233591
- //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/sql-sqlite-node/dist/SqliteClient.js
233773
+ //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/sql-sqlite-node/dist/SqliteClient.js
233592
233774
  /**
233593
233775
  * @since 1.0.0
233594
233776
  */
@@ -233711,7 +233893,7 @@ const make = (options) => gen(function* () {
233711
233893
  */
233712
233894
  const layer$2 = (config) => effectServices(map$10(make(config), (client) => make$89(SqliteClient, client).pipe(add$3(SqlClient, client)))).pipe(provide$3(layer$32));
233713
233895
  //#endregion
233714
- //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.41_effect@4.0.0-beta.41/node_modules/@effect/sql-sqlite-node/dist/SqliteMigrator.js
233896
+ //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.43_effect@4.0.0-beta.43/node_modules/@effect/sql-sqlite-node/dist/SqliteMigrator.js
233715
233897
  /**
233716
233898
  * @category constructor
233717
233899
  * @since 1.0.0
@@ -233723,7 +233905,7 @@ const run$1 = /* @__PURE__ */ make$25({});
233723
233905
  */
233724
233906
  const layer$1 = (options) => effectDiscard(run$1(options));
233725
233907
  //#endregion
233726
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/internal/sqlite-vector.js
233908
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/internal/sqlite-vector.js
233727
233909
  /**
233728
233910
  * Binary extension for each platform
233729
233911
  */
@@ -233840,7 +234022,7 @@ function getExtensionPath() {
233840
234022
  throw new ExtensionNotFoundError(`SQLite Vector extension not found for platform: ${getCurrentPlatform()}\n\nThe platform-specific package "${getPlatformPackageName()}" is not installed.\nThis usually happens when:\n 1. Your platform is not supported\n 2. npm failed to install optional dependencies\n 3. You're installing with --no-optional flag\n\nTry running: npm install --force`);
233841
234023
  }
233842
234024
  //#endregion
233843
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/Sqlite.js
234025
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/Sqlite.js
233844
234026
  /**
233845
234027
  * @since 1.0.0
233846
234028
  */
@@ -233868,7 +234050,7 @@ const SqliteLayer = (database) => layer$1({ loader: fromRecord({ "0001_create_ch
233868
234050
  yield* fs.makeDirectory(directory, { recursive: true });
233869
234051
  }))));
233870
234052
  //#endregion
233871
- //#region node_modules/.pnpm/clanka@0.2.46_@effect+ai-openai-compat@4.0.0-beta.41_effect@4.0.0-beta.41__@effect+ai-o_19e59bd11005b5b9e50b91bcf0e3e7f5/node_modules/clanka/dist/SemanticSearch.js
234053
+ //#region node_modules/.pnpm/clanka@0.2.49_@effect+ai-openai-compat@4.0.0-beta.43_effect@4.0.0-beta.43__@effect+ai-o_3a2c1e7582815b20ac31aeba1722d03f/node_modules/clanka/dist/SemanticSearch.js
233872
234054
  /**
233873
234055
  * @since 1.0.0
233874
234056
  */
@@ -241969,6 +242151,7 @@ const welcomeWizard = gen(function* () {
241969
242151
  return yield* addOrUpdateProject();
241970
242152
  });
241971
242153
  const addOrUpdateProject = fnUntraced(function* (existing, fromPlanMode = false) {
242154
+ const pathService = yield* Path$1;
241972
242155
  const projects = yield* getAllProjects;
241973
242156
  const id = existing ? existing.id : yield* text$2({
241974
242157
  message: "Project name",
@@ -242011,7 +242194,11 @@ const addOrUpdateProject = fnUntraced(function* (existing, fromPlanMode = false)
242011
242194
  ]
242012
242195
  });
242013
242196
  let ralphSpec = none$4();
242014
- if (gitFlow === "ralph" && !fromPlanMode) ralphSpec = yield* file$3({ message: "Path to Ralph spec file" }).pipe(fromYieldable, map$10(some$2));
242197
+ if (gitFlow === "ralph" && !fromPlanMode) {
242198
+ const cwd = pathService.resolve(".");
242199
+ const relativeRoot = pipe$1(yield* findProjectRoot(cwd), getOrElse$2(() => cwd));
242200
+ ralphSpec = yield* file$3({ message: "Path to Ralph spec file" }).pipe(fromYieldable, map$10((selectedPath) => pathService.relative(relativeRoot, selectedPath)), map$10(some$2));
242201
+ }
242015
242202
  const researchAgent = yield* toggle({
242016
242203
  message: "Enable research agent?",
242017
242204
  initial: existing ? existing.researchAgent : false
@@ -243549,7 +243736,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
243549
243736
  const commandSource = make$60("source").pipe(withDescription("Select the issue source to use (e.g. GitHub Issues or Linear). This applies to all projects."), withHandler(() => selectIssueSource), provide(Settings.layer));
243550
243737
  //#endregion
243551
243738
  //#region package.json
243552
- var version = "0.3.121";
243739
+ var version = "0.3.123";
243553
243740
  //#endregion
243554
243741
  //#region src/Tracing.ts
243555
243742
  const TracingLayer = unwrap$3(gen(function* () {