lalph 0.3.100 → 0.3.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +647 -340
  2. package/package.json +6 -6
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.36/node_modules/effect/dist/Pipeable.js
68
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Function.js
127
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/internal/equal.js
410
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Predicate.js
429
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Hash.js
1078
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Equal.js
1427
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Redactable.js
1697
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Formatter.js
1791
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Inspectable.js
2133
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Utils.js
2336
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/internal/core.js
2414
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Data.js
2813
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/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.36/node_modules/effect/dist/Equivalence.js
3046
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Equivalence.js
3047
3047
  /**
3048
3048
  * Creates a custom equivalence relation with an optimized reference equality check.
3049
3049
  *
@@ -3265,7 +3265,7 @@ function Array$4(item) {
3265
3265
  });
3266
3266
  }
3267
3267
  //#endregion
3268
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/option.js
3268
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/option.js
3269
3269
  /**
3270
3270
  * @since 2.0.0
3271
3271
  */
@@ -3340,7 +3340,7 @@ const some$3 = (value) => {
3340
3340
  return a;
3341
3341
  };
3342
3342
  //#endregion
3343
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/result.js
3343
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/result.js
3344
3344
  const TypeId$78 = "~effect/data/Result";
3345
3345
  const CommonProto = {
3346
3346
  [TypeId$78]: {
@@ -3415,7 +3415,7 @@ const succeed$9 = (success) => {
3415
3415
  return a;
3416
3416
  };
3417
3417
  //#endregion
3418
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Order.js
3418
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Order.js
3419
3419
  /**
3420
3420
  * This module provides the `Order` type class for defining total orderings on types.
3421
3421
  * An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than).
@@ -3753,7 +3753,7 @@ const isGreaterThanOrEqualTo$3 = (O) => dual(2, (self, that) => O(self, that) !=
3753
3753
  */
3754
3754
  const min$3 = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
3755
3755
  //#endregion
3756
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Option.js
3756
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Option.js
3757
3757
  /**
3758
3758
  * Creates an `Option` representing the absence of a value.
3759
3759
  *
@@ -4611,7 +4611,7 @@ const makeEquivalence$6 = (isEquivalent) => make$92((x, y) => isNone(x) ? isNone
4611
4611
  */
4612
4612
  const liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some$2(b) : none$4());
4613
4613
  //#endregion
4614
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Duration.js
4614
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Duration.js
4615
4615
  const TypeId$77 = "~effect/time/Duration";
4616
4616
  const bigint0$2 = /* @__PURE__ */ BigInt(0);
4617
4617
  const bigint24 = /* @__PURE__ */ BigInt(24);
@@ -5332,14 +5332,14 @@ const format$3 = (self) => {
5332
5332
  return pieces.join(" ");
5333
5333
  };
5334
5334
  //#endregion
5335
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/array.js
5335
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/array.js
5336
5336
  /**
5337
5337
  * @since 2.0.0
5338
5338
  */
5339
5339
  /** @internal */
5340
5340
  const isArrayNonEmpty$1 = (self) => self.length > 0;
5341
5341
  //#endregion
5342
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Result.js
5342
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Result.js
5343
5343
  /**
5344
5344
  * Creates a `Result` holding a `Success` value.
5345
5345
  *
@@ -5549,7 +5549,7 @@ const map$15 = /* @__PURE__ */ dual(2, (self, f) => isSuccess$5(self) ? succeed$
5549
5549
  */
5550
5550
  const getOrUndefined$1 = /* @__PURE__ */ (/* @__PURE__ */ dual(2, (self, onFailure) => isFailure$4(self) ? onFailure(self.failure) : self.success))(constUndefined);
5551
5551
  //#endregion
5552
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Tuple.js
5552
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Tuple.js
5553
5553
  /**
5554
5554
  * Creates an `Equivalence` for tuples by comparing corresponding elements
5555
5555
  * using the provided per-position `Equivalence`s. Two tuples are equivalent
@@ -5580,7 +5580,7 @@ const getOrUndefined$1 = /* @__PURE__ */ (/* @__PURE__ */ dual(2, (self, onFailu
5580
5580
  */
5581
5581
  const makeEquivalence$5 = Tuple$2;
5582
5582
  //#endregion
5583
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Iterable.js
5583
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Iterable.js
5584
5584
  /**
5585
5585
  * Return the number of elements in a `Iterable`.
5586
5586
  *
@@ -5732,7 +5732,7 @@ const constEmptyIterator = { next() {
5732
5732
  */
5733
5733
  const empty$19 = () => constEmpty;
5734
5734
  //#endregion
5735
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Record.js
5735
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Record.js
5736
5736
  /**
5737
5737
  * Creates a new, empty record.
5738
5738
  *
@@ -5896,7 +5896,7 @@ const makeEquivalence$4 = (equivalence) => {
5896
5896
  return (self, that) => is(self, that) && is(that, self);
5897
5897
  };
5898
5898
  //#endregion
5899
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Array.js
5899
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Array.js
5900
5900
  /**
5901
5901
  * Utilities for working with immutable arrays (and non-empty arrays) in a
5902
5902
  * functional style. All functions treat arrays as immutable — they return new
@@ -6730,7 +6730,7 @@ const composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
6730
6730
  return rightOut;
6731
6731
  });
6732
6732
  //#endregion
6733
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ServiceMap.js
6733
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/ServiceMap.js
6734
6734
  const ServiceTypeId = "~effect/ServiceMap/Service";
6735
6735
  /**
6736
6736
  * @example
@@ -7260,7 +7260,7 @@ const withMapUnsafe = (self, f) => {
7260
7260
  */
7261
7261
  const Reference = Service$1;
7262
7262
  //#endregion
7263
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Scheduler.js
7263
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Scheduler.js
7264
7264
  /**
7265
7265
  * @since 4.0.0
7266
7266
  * @category references
@@ -7394,7 +7394,7 @@ const MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBefo
7394
7394
  */
7395
7395
  const PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventSchedulerYield", { defaultValue: () => false });
7396
7396
  //#endregion
7397
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Tracer.js
7397
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Tracer.js
7398
7398
  /**
7399
7399
  * @since 2.0.0
7400
7400
  * @category tags
@@ -7578,7 +7578,7 @@ const randomHexString = /* @__PURE__ */ function() {
7578
7578
  };
7579
7579
  }();
7580
7580
  //#endregion
7581
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/References.js
7581
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/References.js
7582
7582
  /**
7583
7583
  * This module provides a collection of reference implementations for commonly used
7584
7584
  * Effect runtime configuration values. These references allow you to access and
@@ -8040,11 +8040,11 @@ const MinimumLogLevel = /* @__PURE__ */ Reference("effect/References/MinimumLogL
8040
8040
  */
8041
8041
  const CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpans", { defaultValue: () => [] });
8042
8042
  //#endregion
8043
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/metric.js
8043
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/metric.js
8044
8044
  /** @internal */
8045
8045
  const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
8046
8046
  //#endregion
8047
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/tracer.js
8047
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/tracer.js
8048
8048
  /** @internal */
8049
8049
  const addSpanStackTrace = (options) => {
8050
8050
  if (options?.captureStackTrace === false) return options;
@@ -8074,7 +8074,7 @@ const makeStackCleaner = (line) => (stack) => {
8074
8074
  };
8075
8075
  const spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
8076
8076
  //#endregion
8077
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/effect.js
8077
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/effect.js
8078
8078
  /** @internal */
8079
8079
  var Interrupt$1 = class extends ReasonBase {
8080
8080
  fiberId;
@@ -8596,7 +8596,7 @@ const promise$1 = (evaluate) => callbackOptions(function(resume, signal) {
8596
8596
  /** @internal */
8597
8597
  const tryPromise$1 = (options) => {
8598
8598
  const f = typeof options === "function" ? options : options.try;
8599
- const catcher = typeof options === "function" ? (cause) => new UnknownError$2(cause, "An error occurred in Effect.tryPromise") : options.catch;
8599
+ const catcher = typeof options === "function" ? (cause) => new UnknownError$3(cause, "An error occurred in Effect.tryPromise") : options.catch;
8600
8600
  return callbackOptions(function(resume, signal) {
8601
8601
  try {
8602
8602
  internalCall(() => f(signal)).then((a) => resume(succeed$7(a)), (e) => resume(fail$9(internalCall(() => catcher(e)))));
@@ -9614,7 +9614,7 @@ const runSyncExitWith$1 = (services) => {
9614
9614
  if (effectIsExit(effect)) return effect;
9615
9615
  const fiber = runFork(effect, { scheduler: new MixedScheduler("sync") });
9616
9616
  fiber.currentDispatcher?.flush();
9617
- return fiber._exit ?? exitDie(fiber);
9617
+ return fiber._exit ?? exitDie(new AsyncFiberError$1(fiber));
9618
9618
  };
9619
9619
  };
9620
9620
  /** @internal */
@@ -9881,9 +9881,21 @@ var ExceededCapacityError$1 = class extends TaggedError$1("ExceededCapacityError
9881
9881
  }
9882
9882
  };
9883
9883
  /** @internal */
9884
+ const AsyncFiberErrorTypeId$1 = "~effect/Cause/AsyncFiberError";
9885
+ /** @internal */
9886
+ var AsyncFiberError$1 = class extends TaggedError$1("AsyncFiberError") {
9887
+ [AsyncFiberErrorTypeId$1] = AsyncFiberErrorTypeId$1;
9888
+ constructor(fiber) {
9889
+ super({
9890
+ message: "An asynchronous Effect was executed with Effect.runSync",
9891
+ fiber
9892
+ });
9893
+ }
9894
+ };
9895
+ /** @internal */
9884
9896
  const UnknownErrorTypeId$1 = "~effect/Cause/UnknownError";
9885
9897
  /** @internal */
9886
- var UnknownError$2 = class extends TaggedError$1("UnknownError") {
9898
+ var UnknownError$3 = class extends TaggedError$1("UnknownError") {
9887
9899
  [UnknownErrorTypeId$1] = UnknownErrorTypeId$1;
9888
9900
  constructor(cause, message) {
9889
9901
  super({
@@ -10315,7 +10327,7 @@ const asVoid$1 = exitAsVoid;
10315
10327
  */
10316
10328
  const getSuccess = exitGetSuccess;
10317
10329
  //#endregion
10318
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Deferred.js
10330
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Deferred.js
10319
10331
  const DeferredProto = {
10320
10332
  ["~effect/Deferred"]: {
10321
10333
  _A: identity,
@@ -10800,7 +10812,7 @@ const close = scopeClose;
10800
10812
  */
10801
10813
  const closeUnsafe = scopeCloseUnsafe;
10802
10814
  //#endregion
10803
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Layer.js
10815
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Layer.js
10804
10816
  const TypeId$75 = "~effect/Layer";
10805
10817
  const MemoMapTypeId = "~effect/Layer/MemoMap";
10806
10818
  /**
@@ -11847,7 +11859,7 @@ const makeUnimplemented = (error) => {
11847
11859
  const StreamTypeId$1 = "~effect/Stream";
11848
11860
  const ChannelTypeId = "~effect/Channel";
11849
11861
  //#endregion
11850
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ExecutionPlan.js
11862
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/ExecutionPlan.js
11851
11863
  /**
11852
11864
  * @since 3.16.0
11853
11865
  * @category Type IDs
@@ -12427,7 +12439,7 @@ const ExceededCapacityError = ExceededCapacityError$1;
12427
12439
  * @category constructors
12428
12440
  * @since 4.0.0
12429
12441
  */
12430
- const UnknownError$1 = UnknownError$2;
12442
+ const UnknownError$2 = UnknownError$3;
12431
12443
  /**
12432
12444
  * `ServiceMap` key for the stack frame captured at the point of failure.
12433
12445
  *
@@ -12440,7 +12452,7 @@ const UnknownError$1 = UnknownError$2;
12440
12452
  */
12441
12453
  var StackTrace = class extends Service$1()("effect/Cause/StackTrace") {};
12442
12454
  //#endregion
12443
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Clock.js
12455
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Clock.js
12444
12456
  /**
12445
12457
  * A reference to the current Clock service in the environment.
12446
12458
  *
@@ -12459,7 +12471,7 @@ var StackTrace = class extends Service$1()("effect/Cause/StackTrace") {};
12459
12471
  */
12460
12472
  const Clock = ClockRef;
12461
12473
  //#endregion
12462
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/dateTime.js
12474
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/dateTime.js
12463
12475
  /** @internal */
12464
12476
  const TypeId$72 = "~effect/time/DateTime";
12465
12477
  /** @internal */
@@ -12742,7 +12754,7 @@ const formatIsoOffset$1 = (self) => {
12742
12754
  /** @internal */
12743
12755
  const formatIsoZoned$1 = (self) => self.zone._tag === "Offset" ? formatIsoOffset$1(self) : `${formatIsoOffset$1(self)}[${self.zone.id}]`;
12744
12756
  //#endregion
12745
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Number.js
12757
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Number.js
12746
12758
  /**
12747
12759
  * This module provides utility functions and type class instances for working with the `number` type in TypeScript.
12748
12760
  * It includes functions for basic arithmetic operations.
@@ -12911,7 +12923,7 @@ const isNonEmpty$1 = (self) => self.length > 0;
12911
12923
  */
12912
12924
  const camelToSnake = (self) => self.replace(/([A-Z])/g, "_$1").toLowerCase();
12913
12925
  //#endregion
12914
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/random.js
12926
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/random.js
12915
12927
  /** @internal */
12916
12928
  const Random$1 = /* @__PURE__ */ Reference("effect/Random", { defaultValue: () => ({
12917
12929
  nextIntUnsafe() {
@@ -12922,7 +12934,7 @@ const Random$1 = /* @__PURE__ */ Reference("effect/Random", { defaultValue: () =
12922
12934
  }
12923
12935
  }) });
12924
12936
  //#endregion
12925
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Pull.js
12937
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Pull.js
12926
12938
  /**
12927
12939
  * @since 4.0.0
12928
12940
  */
@@ -12996,7 +13008,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffec
12996
13008
  }
12997
13009
  }));
12998
13010
  //#endregion
12999
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Schedule.js
13011
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Schedule.js
13000
13012
  /**
13001
13013
  * This module provides utilities for creating and composing schedules for retrying operations,
13002
13014
  * repeating effects, and implementing various timing strategies.
@@ -13537,12 +13549,12 @@ const while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map$12(toSt
13537
13549
  */
13538
13550
  const forever$1 = /* @__PURE__ */ spaced(zero$1);
13539
13551
  //#endregion
13540
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/layer.js
13552
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/layer.js
13541
13553
  const provideLayer = (self, layer, options) => scopedWith$1((scope) => flatMap$6(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideServices$3(self, context)));
13542
13554
  /** @internal */
13543
13555
  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));
13544
13556
  //#endregion
13545
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schedule.js
13557
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/schedule.js
13546
13558
  /** @internal */
13547
13559
  const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self, schedule, orElse) => flatMap$6(toStepWithMetadata(schedule), (step) => {
13548
13560
  let meta = CurrentMetadata.defaultValue();
@@ -13587,7 +13599,7 @@ const buildFromOptions = (options) => {
13587
13599
  return schedule;
13588
13600
  };
13589
13601
  //#endregion
13590
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Request.js
13602
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Request.js
13591
13603
  const TypeId$70 = "~effect/Request";
13592
13604
  const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
13593
13605
  _E: (_) => _,
@@ -13654,7 +13666,7 @@ const TaggedClass$1 = (tag) => {
13654
13666
  */
13655
13667
  const makeEntry = (options) => options;
13656
13668
  //#endregion
13657
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/request.js
13669
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/request.js
13658
13670
  /** @internal */
13659
13671
  const request$3 = /* @__PURE__ */ dual(2, (self, resolver) => {
13660
13672
  const withResolver = (resolver) => callback$2((resume) => {
@@ -18395,7 +18407,7 @@ const catchEager = catchEager$1;
18395
18407
  */
18396
18408
  const fnUntracedEager = fnUntracedEager$1;
18397
18409
  //#endregion
18398
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/record.js
18410
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/record.js
18399
18411
  /**
18400
18412
  * @since 4.0.0
18401
18413
  */
@@ -18411,7 +18423,7 @@ function set$10(self, key, value) {
18411
18423
  return self;
18412
18424
  }
18413
18425
  //#endregion
18414
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schema/annotations.js
18426
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/schema/annotations.js
18415
18427
  /** @internal */
18416
18428
  function resolve$5(ast) {
18417
18429
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
@@ -18766,7 +18778,7 @@ const subtract = subtract$1;
18766
18778
  */
18767
18779
  const formatIso = formatIso$1;
18768
18780
  //#endregion
18769
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Encoding.js
18781
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Encoding.js
18770
18782
  /**
18771
18783
  * Encoding & decoding for Base64 (RFC4648), Base64Url, and Hex.
18772
18784
  *
@@ -19152,7 +19164,7 @@ const base64codes = [
19152
19164
  ];
19153
19165
  const base64UrlEncodeUint8Array = (data) => base64EncodeUint8Array(data).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
19154
19166
  //#endregion
19155
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/redacted.js
19167
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/redacted.js
19156
19168
  /** @internal */
19157
19169
  const redactedRegistry = /* @__PURE__ */ new WeakMap();
19158
19170
  /** @internal */
@@ -19163,7 +19175,7 @@ const value$3 = (self) => {
19163
19175
  /** @internal */
19164
19176
  const stringOrRedacted = (val) => typeof val === "string" ? val : value$3(val);
19165
19177
  //#endregion
19166
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Redacted.js
19178
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Redacted.js
19167
19179
  /**
19168
19180
  * The Redacted module provides functionality for handling sensitive information
19169
19181
  * securely within your application. By using the `Redacted` data type, you can
@@ -19269,7 +19281,7 @@ const value$2 = value$3;
19269
19281
  */
19270
19282
  const makeEquivalence$2 = (isEquivalent) => make$92((x, y) => isEquivalent(value$2(x), value$2(y)));
19271
19283
  //#endregion
19272
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaIssue.js
19284
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/SchemaIssue.js
19273
19285
  const TypeId$68 = "~effect/SchemaIssue/Issue";
19274
19286
  /**
19275
19287
  * Returns `true` if the given value is an {@link Issue}.
@@ -20012,7 +20024,7 @@ function redact$2(issue) {
20012
20024
  }
20013
20025
  }
20014
20026
  //#endregion
20015
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaGetter.js
20027
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/SchemaGetter.js
20016
20028
  /**
20017
20029
  * Composable transformation primitives for the Effect Schema system.
20018
20030
  *
@@ -20987,7 +20999,7 @@ const isZero = (n) => n.value === bigint0;
20987
20999
  */
20988
21000
  const isNegative = (n) => n.value < bigint0;
20989
21001
  //#endregion
20990
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaTransformation.js
21002
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/SchemaTransformation.js
20991
21003
  /**
20992
21004
  * Bidirectional transformations for the Effect Schema system.
20993
21005
  *
@@ -21599,7 +21611,7 @@ const dateTimeUtcFromString = /* @__PURE__ */ transformOrFail({
21599
21611
  encode: (utc) => succeed$3(formatIso(utc))
21600
21612
  });
21601
21613
  //#endregion
21602
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaAST.js
21614
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/SchemaAST.js
21603
21615
  /**
21604
21616
  * Abstract Syntax Tree (AST) representation for Effect schemas.
21605
21617
  *
@@ -23623,7 +23635,7 @@ const unknownToStringTree = /* @__PURE__ */ new Link(/* @__PURE__ */ new Declara
23623
23635
  toCodecStringTree: () => new Link(unknown$1, passthrough())
23624
23636
  }), /* @__PURE__ */ passthrough());
23625
23637
  //#endregion
23626
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Brand.js
23638
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Brand.js
23627
23639
  /**
23628
23640
  * This function returns a `Constructor` that **does not apply any runtime
23629
23641
  * checks**, it just returns the provided value. It can be used to create
@@ -23644,7 +23656,7 @@ function nominal() {
23644
23656
  });
23645
23657
  }
23646
23658
  //#endregion
23647
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/PlatformError.js
23659
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/PlatformError.js
23648
23660
  /**
23649
23661
  * @since 4.0.0
23650
23662
  */
@@ -23704,7 +23716,7 @@ const systemError = (options) => new PlatformError(new SystemError(options));
23704
23716
  */
23705
23717
  const badArgument = (options) => new PlatformError(new BadArgument(options));
23706
23718
  //#endregion
23707
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Chunk.js
23719
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Chunk.js
23708
23720
  /**
23709
23721
  * The `Chunk` module provides an immutable, high-performance sequence data structure
23710
23722
  * optimized for functional programming patterns. A `Chunk` is a persistent data structure
@@ -24347,7 +24359,7 @@ const getCurrent = getCurrentFiber;
24347
24359
  */
24348
24360
  const runIn = fiberRunIn;
24349
24361
  //#endregion
24350
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Latch.js
24362
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Latch.js
24351
24363
  /**
24352
24364
  * Creates a new Latch unsafely.
24353
24365
  *
@@ -24419,7 +24431,7 @@ const makeUnsafe$10 = makeLatchUnsafe;
24419
24431
  */
24420
24432
  const make$79 = makeLatch;
24421
24433
  //#endregion
24422
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/MutableList.js
24434
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/MutableList.js
24423
24435
  /**
24424
24436
  * @fileoverview
24425
24437
  * MutableList is an efficient, mutable linked list implementation optimized for high-throughput
@@ -25001,7 +25013,7 @@ const filter$4 = (self, f) => {
25001
25013
  */
25002
25014
  const remove$6 = (self, value) => filter$4(self, (v) => v !== value);
25003
25015
  //#endregion
25004
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/MutableRef.js
25016
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/MutableRef.js
25005
25017
  const TypeId$62 = "~effect/MutableRef";
25006
25018
  const MutableRefProto = {
25007
25019
  [TypeId$62]: TypeId$62,
@@ -25157,7 +25169,7 @@ const set$9 = /* @__PURE__ */ dual(2, (self, value) => {
25157
25169
  */
25158
25170
  const update = /* @__PURE__ */ dual(2, (self, f) => set$9(self, f(get$15(self))));
25159
25171
  //#endregion
25160
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/PubSub.js
25172
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/PubSub.js
25161
25173
  /**
25162
25174
  * This module provides utilities for working with publish-subscribe (PubSub) systems.
25163
25175
  *
@@ -26595,7 +26607,7 @@ const emptyReplayWindow = {
26595
26607
  takeAll: () => []
26596
26608
  };
26597
26609
  //#endregion
26598
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Queue.js
26610
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Queue.js
26599
26611
  /**
26600
26612
  * @since 3.8.0
26601
26613
  */
@@ -27414,7 +27426,7 @@ const finalize$1 = (self, exit) => {
27414
27426
  openState.awaiters.clear();
27415
27427
  };
27416
27428
  //#endregion
27417
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Semaphore.js
27429
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Semaphore.js
27418
27430
  /**
27419
27431
  * Unsafely creates a new Semaphore.
27420
27432
  *
@@ -27564,14 +27576,14 @@ var SemaphoreImpl = class {
27564
27576
  */
27565
27577
  const make$74 = (permits) => sync$2(() => new SemaphoreImpl(permits));
27566
27578
  //#endregion
27567
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Take.js
27579
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Take.js
27568
27580
  /**
27569
27581
  * @since 4.0.0
27570
27582
  * @category Conversions
27571
27583
  */
27572
27584
  const toPull$2 = (take) => isExit(take) ? isSuccess$3(take) ? done(take.value) : take : succeed$3(take);
27573
27585
  //#endregion
27574
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Channel.js
27586
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Channel.js
27575
27587
  /**
27576
27588
  * The `Channel` module provides a powerful abstraction for bi-directional communication
27577
27589
  * and streaming operations. A `Channel` is a nexus of I/O operations that supports both
@@ -29317,7 +29329,7 @@ const toPubSubTake$1 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(functi
29317
29329
  return pubsub;
29318
29330
  }));
29319
29331
  //#endregion
29320
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/stream.js
29332
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/stream.js
29321
29333
  const TypeId$58 = "~effect/Stream";
29322
29334
  const streamVariance = {
29323
29335
  _R: identity,
@@ -29337,7 +29349,7 @@ const fromChannel$2 = (channel) => {
29337
29349
  return self;
29338
29350
  };
29339
29351
  //#endregion
29340
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Sink.js
29352
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Sink.js
29341
29353
  const TypeId$57 = "~effect/Sink";
29342
29354
  const endVoid = /* @__PURE__ */ succeed$3([void 0]);
29343
29355
  const sinkVariance = {
@@ -29514,7 +29526,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap$4(
29514
29526
  */
29515
29527
  const unwrap$1 = (effect) => fromChannel$1(unwrap$2(map$9(effect, toChannel$1)));
29516
29528
  //#endregion
29517
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/MutableHashMap.js
29529
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/MutableHashMap.js
29518
29530
  const TypeId$56 = "~effect/collections/MutableHashMap";
29519
29531
  const MutableHashMapProto = {
29520
29532
  [TypeId$56]: TypeId$56,
@@ -29890,7 +29902,7 @@ const forEach$2 = /* @__PURE__ */ dual(2, (self, f) => {
29890
29902
  self.backing.forEach(f);
29891
29903
  });
29892
29904
  //#endregion
29893
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/RcMap.js
29905
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/RcMap.js
29894
29906
  /**
29895
29907
  * @since 3.5.0
29896
29908
  */
@@ -30088,7 +30100,7 @@ const invalidate$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function
30088
30100
  yield* close(entry.scope, void_$3);
30089
30101
  }, uninterruptible));
30090
30102
  //#endregion
30091
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/rcRef.js
30103
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/rcRef.js
30092
30104
  const TypeId$54 = "~effect/RcRef";
30093
30105
  const stateEmpty = { _tag: "Empty" };
30094
30106
  const stateClosed = { _tag: "Closed" };
@@ -30176,7 +30188,7 @@ const get$12 = /* @__PURE__ */ fnUntraced(function* (self_) {
30176
30188
  return state.value;
30177
30189
  });
30178
30190
  //#endregion
30179
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/RcRef.js
30191
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/RcRef.js
30180
30192
  /**
30181
30193
  * Create an `RcRef` from an acquire `Effect`.
30182
30194
  *
@@ -30245,7 +30257,7 @@ const make$70 = make$71;
30245
30257
  */
30246
30258
  const get$11 = get$12;
30247
30259
  //#endregion
30248
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Stream.js
30260
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Stream.js
30249
30261
  /**
30250
30262
  * @since 2.0.0
30251
30263
  */
@@ -32267,7 +32279,7 @@ const runIntoPubSub = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, p
32267
32279
  */
32268
32280
  const toPubSubTake = /* @__PURE__ */ dual(2, (self, options) => toPubSubTake$1(self.channel, options));
32269
32281
  //#endregion
32270
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/FileSystem.js
32282
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/FileSystem.js
32271
32283
  /**
32272
32284
  * This module provides a comprehensive file system abstraction that supports both synchronous
32273
32285
  * and asynchronous file operations through Effect. It includes utilities for file I/O, directory
@@ -32491,7 +32503,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
32491
32503
  */
32492
32504
  var WatchBackend = class extends Service$1()("effect/platform/FileSystem/WatchBackend") {};
32493
32505
  //#endregion
32494
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Path.js
32506
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Path.js
32495
32507
  /**
32496
32508
  * @since 4.0.0
32497
32509
  */
@@ -32915,7 +32927,7 @@ const posixImpl = /* @__PURE__ */ Path$1.of({
32915
32927
  toNamespacedPath: identity
32916
32928
  });
32917
32929
  //#endregion
32918
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ConfigProvider.js
32930
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/ConfigProvider.js
32919
32931
  /**
32920
32932
  * Creates a `Value` node representing a terminal string leaf.
32921
32933
  *
@@ -33221,7 +33233,7 @@ function trieNodeAt(root, path) {
33221
33233
  */
33222
33234
  const isLessThan$1 = /* @__PURE__ */ isLessThan$4(LogLevelOrder);
33223
33235
  //#endregion
33224
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/hashMap.js
33236
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/hashMap.js
33225
33237
  /**
33226
33238
  * @since 2.0.0
33227
33239
  */
@@ -33805,7 +33817,7 @@ const set$6 = set$7;
33805
33817
  */
33806
33818
  const remove$3 = remove$4;
33807
33819
  //#endregion
33808
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Struct.js
33820
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Struct.js
33809
33821
  /**
33810
33822
  * Creates a new struct containing only the specified keys.
33811
33823
  *
@@ -33943,7 +33955,7 @@ function buildStruct(source, f) {
33943
33955
  return out;
33944
33956
  }
33945
33957
  //#endregion
33946
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/UndefinedOr.js
33958
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/UndefinedOr.js
33947
33959
  /**
33948
33960
  * @since 4.0.0
33949
33961
  */
@@ -33953,7 +33965,7 @@ const map$4 = /* @__PURE__ */ dual(2, (self, f) => self === void 0 ? void 0 : f(
33953
33965
  */
33954
33966
  const match$1 = /* @__PURE__ */ dual(2, (self, { onDefined, onUndefined }) => self === void 0 ? onUndefined() : onDefined(self));
33955
33967
  //#endregion
33956
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaParser.js
33968
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/SchemaParser.js
33957
33969
  /**
33958
33970
  * @since 4.0.0
33959
33971
  */
@@ -34155,7 +34167,7 @@ const recur$1 = /* @__PURE__ */ memoize$1((ast) => {
34155
34167
  };
34156
34168
  });
34157
34169
  //#endregion
34158
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/JsonPointer.js
34170
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/JsonPointer.js
34159
34171
  /**
34160
34172
  * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901.
34161
34173
  *
@@ -34248,7 +34260,7 @@ function escapeToken(token) {
34248
34260
  return token.replace(/~/g, "~0").replace(/\//g, "~1");
34249
34261
  }
34250
34262
  //#endregion
34251
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schema/schema.js
34263
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/schema/schema.js
34252
34264
  /** @internal */
34253
34265
  const TypeId$50 = "~effect/Schema/Schema";
34254
34266
  const SchemaProto = {
@@ -34277,7 +34289,7 @@ function make$65(ast, options) {
34277
34289
  return self;
34278
34290
  }
34279
34291
  //#endregion
34280
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schema/to-codec.js
34292
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/schema/to-codec.js
34281
34293
  /** @internal */
34282
34294
  const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
34283
34295
  const out = toCodecJsonBase(ast);
@@ -34345,7 +34357,7 @@ function makeReorder(getPriority) {
34345
34357
  };
34346
34358
  }
34347
34359
  //#endregion
34348
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schema/representation.js
34360
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/internal/schema/representation.js
34349
34361
  /** @internal */
34350
34362
  function fromAST(ast) {
34351
34363
  const { references, representations: schemas } = fromASTs([ast]);
@@ -34901,7 +34913,7 @@ function getPartPattern(part) {
34901
34913
  }
34902
34914
  }
34903
34915
  //#endregion
34904
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Schema.js
34916
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Schema.js
34905
34917
  /**
34906
34918
  * Define data shapes, validate unknown input, and transform values between formats.
34907
34919
  *
@@ -36135,6 +36147,33 @@ function TaggedUnion(casesByTag) {
36135
36147
  });
36136
36148
  }
36137
36149
  /**
36150
+ * Wraps a schema so that its decoded `Type` becomes a nominally distinct type `Self`.
36151
+ * Useful for creating opaque types that are structurally identical to a base schema
36152
+ * but type-incompatible with it.
36153
+ *
36154
+ * **Example** (Opaque user ID)
36155
+ *
36156
+ * ```ts
36157
+ * import { Schema } from "effect"
36158
+ *
36159
+ * type UserId = string & { readonly _tag: "UserId" }
36160
+ * const UserId = Schema.Opaque<UserId>()(Schema.String)
36161
+ *
36162
+ * // Decoded value is UserId, not plain string
36163
+ * const id = Schema.decodeUnknownSync(UserId)("abc")
36164
+ * // id: UserId
36165
+ * ```
36166
+ *
36167
+ * @since 4.0.0
36168
+ */
36169
+ function Opaque() {
36170
+ return (schema) => {
36171
+ class Opaque {}
36172
+ Object.setPrototypeOf(Opaque, schema);
36173
+ return Opaque;
36174
+ };
36175
+ }
36176
+ /**
36138
36177
  * Creates a schema that validates values using `instanceof`.
36139
36178
  * Decoding and encoding pass the value through unchanged.
36140
36179
  *
@@ -37586,7 +37625,7 @@ const Json = /* @__PURE__ */ make$64(Json$1);
37586
37625
  */
37587
37626
  const MutableJson = /* @__PURE__ */ make$64(MutableJson$1);
37588
37627
  //#endregion
37589
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Config.js
37628
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Config.js
37590
37629
  const TypeId$48 = "~effect/Config";
37591
37630
  /**
37592
37631
  * The error type produced when config loading or validation fails.
@@ -38073,7 +38112,7 @@ function redacted(name) {
38073
38112
  return schema$2(Redacted(String$1), name);
38074
38113
  }
38075
38114
  //#endregion
38076
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Runtime.js
38115
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Runtime.js
38077
38116
  /**
38078
38117
  * This module provides utilities for running Effect programs and managing their execution lifecycle.
38079
38118
  *
@@ -38279,7 +38318,7 @@ const getErrorReported = (u) => {
38279
38318
  return true;
38280
38319
  };
38281
38320
  //#endregion
38282
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/CliError.js
38321
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/CliError.js
38283
38322
  /**
38284
38323
  * @since 4.0.0
38285
38324
  */
@@ -49378,7 +49417,7 @@ const getTypeName = (primitive) => {
49378
49417
  /** @internal */
49379
49418
  const getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
49380
49419
  //#endregion
49381
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Terminal.js
49420
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Terminal.js
49382
49421
  const TypeId$46 = "~effect/platform/Terminal";
49383
49422
  const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
49384
49423
  /**
@@ -49415,7 +49454,7 @@ const make$62 = (impl) => Terminal.of({
49415
49454
  [TypeId$46]: TypeId$46
49416
49455
  });
49417
49456
  //#endregion
49418
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/ansi.js
49457
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/ansi.js
49419
49458
  const ESC = "\x1B[";
49420
49459
  const SEP = ";";
49421
49460
  /** @internal */
@@ -49491,7 +49530,7 @@ const eraseLines = (rows) => {
49491
49530
  return command;
49492
49531
  };
49493
49532
  //#endregion
49494
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Prompt.js
49533
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/Prompt.js
49495
49534
  /**
49496
49535
  * @since 4.0.0
49497
49536
  */
@@ -49992,9 +50031,12 @@ const processSelection = /* @__PURE__ */ fnUntraced(function* (state, options) {
49992
50031
  });
49993
50032
  const handleFileProcess = (options) => {
49994
50033
  return fnUntraced(function* (input, state) {
49995
- if (input.key.ctrl && input.key.name === "u") {
49996
- if (showConfirmation(state.confirm)) return Action.Beep();
49997
- return yield* processFileClear(state);
50034
+ if (input.key.ctrl) {
50035
+ if (input.key.name === "u") {
50036
+ if (showConfirmation(state.confirm)) return Action.Beep();
50037
+ return yield* processFileClear(state);
50038
+ }
50039
+ return Action.Beep();
49998
50040
  }
49999
50041
  switch (input.key.name) {
50000
50042
  case "k":
@@ -50498,7 +50540,10 @@ const handleSelectProcess = (options) => {
50498
50540
  };
50499
50541
  const handleAutoCompleteProcess = (options) => {
50500
50542
  return (input, state) => {
50501
- if (input.key.ctrl && input.key.name === "u") return processAutoCompleteClear(state, options);
50543
+ if (input.key.ctrl) {
50544
+ if (input.key.name === "u") return processAutoCompleteClear(state, options);
50545
+ return succeed$3(Action.Beep());
50546
+ }
50502
50547
  switch (input.key.name) {
50503
50548
  case "k":
50504
50549
  case "up": return processAutoCompleteCursorUp(state);
@@ -50646,6 +50691,7 @@ const handleTextProcess = (options) => {
50646
50691
  case "u": return processTextClear(state);
50647
50692
  case "a": return processTextCursorStart(state);
50648
50693
  case "e": return processTextCursorEnd(state);
50694
+ default: return succeed$3(Action.Beep());
50649
50695
  }
50650
50696
  switch (input.key.name) {
50651
50697
  case "backspace": return processTextBackspace(state);
@@ -50762,7 +50808,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
50762
50808
  };
50763
50809
  };
50764
50810
  //#endregion
50765
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Param.js
50811
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/Param.js
50766
50812
  /**
50767
50813
  * @internal
50768
50814
  *
@@ -51452,7 +51498,7 @@ const getParamMetadata = (param) => {
51452
51498
  });
51453
51499
  };
51454
51500
  //#endregion
51455
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Argument.js
51501
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/Argument.js
51456
51502
  /**
51457
51503
  * Creates a positional path argument.
51458
51504
  *
@@ -51484,7 +51530,7 @@ const path = (name, options) => path$1(argumentKind, name, options);
51484
51530
  */
51485
51531
  const withDescription$2 = /* @__PURE__ */ dual(2, (self, description) => withDescription$3(self, description));
51486
51532
  //#endregion
51487
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/CliOutput.js
51533
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/CliOutput.js
51488
51534
  /**
51489
51535
  * Service reference for the CLI output formatter. Provides a default implementation
51490
51536
  * that can be overridden for custom formatting or testing.
@@ -51727,7 +51773,7 @@ const formatHelpDocImpl = (doc, colors) => {
51727
51773
  return sections.join("\n");
51728
51774
  };
51729
51775
  //#endregion
51730
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Console.js
51776
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Console.js
51731
51777
  /**
51732
51778
  * A reference to the current console service in the Effect system.
51733
51779
  *
@@ -51843,7 +51889,7 @@ const warn = (...args) => consoleWith((console) => sync$2(() => {
51843
51889
  console.warn(...args);
51844
51890
  }));
51845
51891
  //#endregion
51846
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Stdio.js
51892
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Stdio.js
51847
51893
  /**
51848
51894
  * @since 4.0.0
51849
51895
  * @category Type IDs
@@ -51863,7 +51909,7 @@ const make$61 = (options) => ({
51863
51909
  ...options
51864
51910
  });
51865
51911
  //#endregion
51866
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
51912
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
51867
51913
  const escapeForBash = (s) => s.replace(/'/g, "'\\''");
51868
51914
  const sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
51869
51915
  const flagNamesForWordlist = (flag) => {
@@ -52014,7 +52060,7 @@ const generate$3 = (executableName, descriptor) => {
52014
52060
  return lines.join("\n");
52015
52061
  };
52016
52062
  //#endregion
52017
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
52063
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
52018
52064
  const escapeFishString = (s) => s.replace(/'/g, "\\'");
52019
52065
  /**
52020
52066
  * Build a Fish condition that checks the current subcommand context.
@@ -52152,7 +52198,7 @@ const generate$2 = (executableName, descriptor) => {
52152
52198
  return lines.join("\n");
52153
52199
  };
52154
52200
  //#endregion
52155
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
52201
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
52156
52202
  const escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
52157
52203
  const sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
52158
52204
  /**
@@ -52289,7 +52335,7 @@ const generate$1 = (executableName, descriptor) => {
52289
52335
  return lines.join("\n");
52290
52336
  };
52291
52337
  //#endregion
52292
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Completions.js
52338
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/Completions.js
52293
52339
  /**
52294
52340
  * @since 4.0.0
52295
52341
  */
@@ -52307,7 +52353,7 @@ const generate = (executableName, shell, descriptor) => {
52307
52353
  }
52308
52354
  };
52309
52355
  //#endregion
52310
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Flag.js
52356
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/Flag.js
52311
52357
  /**
52312
52358
  * Creates a boolean flag that can be enabled or disabled.
52313
52359
  *
@@ -52540,7 +52586,7 @@ const withFallbackConfig = /* @__PURE__ */ dual(2, (self, config) => withFallbac
52540
52586
  */
52541
52587
  const map$1 = /* @__PURE__ */ dual(2, (self, f) => map$2(self, f));
52542
52588
  //#endregion
52543
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/config.js
52589
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/config.js
52544
52590
  const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
52545
52591
  /**
52546
52592
  * Parses a Command.Config into a ConfigInternal.
@@ -52646,7 +52692,7 @@ const reconstructTree = (tree, results) => {
52646
52692
  }
52647
52693
  };
52648
52694
  //#endregion
52649
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/command.js
52695
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/command.js
52650
52696
  /**
52651
52697
  * Command Implementation
52652
52698
  * ======================
@@ -52818,7 +52864,7 @@ const checkForDuplicateFlags = (parent, subcommands, options) => {
52818
52864
  }
52819
52865
  };
52820
52866
  //#endregion
52821
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
52867
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
52822
52868
  /**
52823
52869
  * CommandDescriptor — pure-data representation of a command tree for
52824
52870
  * shell completion generation.
@@ -52906,7 +52952,7 @@ const fromCommand = (cmd) => {
52906
52952
  };
52907
52953
  };
52908
52954
  //#endregion
52909
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/help.js
52955
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/help.js
52910
52956
  /**
52911
52957
  * Help Documentation
52912
52958
  * ================
@@ -53009,7 +53055,7 @@ const getHelpForCommandPath = (command, commandPath, builtIns) => gen(function*
53009
53055
  };
53010
53056
  });
53011
53057
  //#endregion
53012
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/GlobalFlag.js
53058
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/GlobalFlag.js
53013
53059
  /**
53014
53060
  * @since 4.0.0
53015
53061
  */
@@ -53119,7 +53165,7 @@ const BuiltIns = [
53119
53165
  LogLevel
53120
53166
  ];
53121
53167
  //#endregion
53122
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/lexer.js
53168
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/lexer.js
53123
53169
  /** @internal */
53124
53170
  function lex(argv) {
53125
53171
  const endIndex = argv.indexOf("--");
@@ -53170,7 +53216,7 @@ const lexTokens = (args) => {
53170
53216
  return tokens;
53171
53217
  };
53172
53218
  //#endregion
53173
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
53219
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
53174
53220
  /**
53175
53221
  * Simple Levenshtein distance implementation (small N, no perf worries)
53176
53222
  */
@@ -53198,7 +53244,7 @@ const suggest = (input, candidates) => {
53198
53244
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
53199
53245
  };
53200
53246
  //#endregion
53201
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/parser.js
53247
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/internal/parser.js
53202
53248
  /**
53203
53249
  * Parsing Pipeline for CLI Commands
53204
53250
  * ==================================
@@ -53520,7 +53566,7 @@ const scanCommandLevel = (tokens, context) => {
53520
53566
  return toLeafResult(state);
53521
53567
  };
53522
53568
  //#endregion
53523
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Command.js
53569
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/cli/Command.js
53524
53570
  /**
53525
53571
  * @since 4.0.0
53526
53572
  * @category Guards
@@ -54018,7 +54064,7 @@ const runWith = (command, config) => {
54018
54064
  }, catchFilter$2((error) => isCliError(error) && error._tag === "ShowHelp" ? succeed$8(error) : fail$10(error), (error) => andThen(showHelp(command, error), fail$6(error))), catchFilter$2((e) => isQuitError(e) ? succeed$8(e) : fail$10(e), (_) => interrupt$1));
54019
54065
  };
54020
54066
  //#endregion
54021
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Cache.js
54067
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Cache.js
54022
54068
  /**
54023
54069
  * @since 4.0.0
54024
54070
  */
@@ -54435,7 +54481,7 @@ const invalidate$1 = /* @__PURE__ */ dual(2, (self, key) => sync$2(() => {
54435
54481
  remove$5(self.map, key);
54436
54482
  }));
54437
54483
  //#endregion
54438
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ChannelSchema.js
54484
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/ChannelSchema.js
54439
54485
  /**
54440
54486
  * @since 4.0.0
54441
54487
  * @category constructors
@@ -54464,7 +54510,7 @@ const decode$4 = (schema) => () => {
54464
54510
  */
54465
54511
  const ignore = "~effect/ErrorReporter/ignore";
54466
54512
  //#endregion
54467
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/FiberHandle.js
54513
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/FiberHandle.js
54468
54514
  /**
54469
54515
  * @since 2.0.0
54470
54516
  */
@@ -54659,7 +54705,7 @@ const runImpl$2 = (self, effect, options) => withFiber((parent) => {
54659
54705
  return succeed$3(fiber);
54660
54706
  });
54661
54707
  //#endregion
54662
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/FiberMap.js
54708
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/FiberMap.js
54663
54709
  /**
54664
54710
  * @since 2.0.0
54665
54711
  */
@@ -54889,7 +54935,7 @@ const runImpl$1 = (self, key, effect, options) => withFiber((parent) => {
54889
54935
  return succeed$3(fiber);
54890
54936
  });
54891
54937
  //#endregion
54892
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/FiberSet.js
54938
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/FiberSet.js
54893
54939
  /**
54894
54940
  * @since 2.0.0
54895
54941
  */
@@ -55141,7 +55187,7 @@ const awaitEmpty = (self) => whileLoop({
55141
55187
  step: constVoid
55142
55188
  });
55143
55189
  //#endregion
55144
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/PrimaryKey.js
55190
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/PrimaryKey.js
55145
55191
  /**
55146
55192
  * The unique identifier used to identify objects that implement the `PrimaryKey` interface.
55147
55193
  *
@@ -55178,7 +55224,7 @@ const symbol$2 = "~effect/interfaces/PrimaryKey";
55178
55224
  */
55179
55225
  const value$1 = (self) => self[symbol$2]();
55180
55226
  //#endregion
55181
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/LayerMap.js
55227
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/LayerMap.js
55182
55228
  const TypeId$37 = "~effect/LayerMap";
55183
55229
  /**
55184
55230
  * @since 3.14.0
@@ -55344,7 +55390,7 @@ const Service = () => (id, options) => {
55344
55390
  return TagClass;
55345
55391
  };
55346
55392
  //#endregion
55347
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Logger.js
55393
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Logger.js
55348
55394
  /**
55349
55395
  * @since 2.0.0
55350
55396
  *
@@ -55471,7 +55517,7 @@ const Service = () => (id, options) => {
55471
55517
  */
55472
55518
  const CurrentLoggers = CurrentLoggers$1;
55473
55519
  //#endregion
55474
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Random.js
55520
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Random.js
55475
55521
  /**
55476
55522
  * The Random module provides a service for generating random numbers in Effect
55477
55523
  * programs. It offers a testable and composable way to work with randomness,
@@ -55564,7 +55610,7 @@ const shuffle = (elements) => randomWith((r) => {
55564
55610
  return buffer;
55565
55611
  });
55566
55612
  //#endregion
55567
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Ref.js
55613
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Ref.js
55568
55614
  const RefProto = {
55569
55615
  ["~effect/Ref"]: { _A: identity },
55570
55616
  ...PipeInspectableProto,
@@ -55605,7 +55651,7 @@ const makeUnsafe$3 = (value) => {
55605
55651
  return self;
55606
55652
  };
55607
55653
  //#endregion
55608
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/reactivity/Reactivity.js
55654
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/reactivity/Reactivity.js
55609
55655
  /**
55610
55656
  * @since 4.0.0
55611
55657
  */
@@ -55740,7 +55786,7 @@ const keysToHashes = (keys, f) => {
55740
55786
  }
55741
55787
  };
55742
55788
  //#endregion
55743
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/Statement.js
55789
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/sql/Statement.js
55744
55790
  /**
55745
55791
  * @since 4.0.0
55746
55792
  */
@@ -56299,7 +56345,7 @@ function in_() {
56299
56345
  }
56300
56346
  const neverFragment = /* @__PURE__ */ fragment([/* @__PURE__ */ literal$1("1=0")]);
56301
56347
  //#endregion
56302
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlClient.js
56348
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/sql/SqlClient.js
56303
56349
  /**
56304
56350
  * @since 4.0.0
56305
56351
  */
@@ -56393,7 +56439,7 @@ var TransactionConnection = class extends Service$1()("effect/sql/SqlClient/Tran
56393
56439
  */
56394
56440
  const SafeIntegers = /* @__PURE__ */ Reference("effect/sql/SqlClient/SafeIntegers", { defaultValue: () => false });
56395
56441
  //#endregion
56396
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
56442
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
56397
56443
  /**
56398
56444
  * @since 4.0.0
56399
56445
  */
@@ -56535,7 +56581,7 @@ const toSchemaStore = (self, schema) => {
56535
56581
  };
56536
56582
  };
56537
56583
  //#endregion
56538
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/persistence/Persistable.js
56584
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/persistence/Persistable.js
56539
56585
  /**
56540
56586
  * @since 4.0.0
56541
56587
  * @category Symbols
@@ -56589,7 +56635,7 @@ const deserializeExit = (self, encoded) => {
56589
56635
  return decodeUnknownEffect(toCodecJson(exitSchema$1(self)))(encoded);
56590
56636
  };
56591
56637
  //#endregion
56592
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/persistence/Persistence.js
56638
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/persistence/Persistence.js
56593
56639
  /**
56594
56640
  * @since 4.0.0
56595
56641
  */
@@ -56765,7 +56811,7 @@ const layerKvs$1 = /* @__PURE__ */ layer$31.pipe(/* @__PURE__ */ provide$3(layer
56765
56811
  */
56766
56812
  const unsafeTtlToExpires = (clock, ttl) => ttl ? clock.currentTimeMillisUnsafe() + toMillis(ttl) : null;
56767
56813
  //#endregion
56768
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/RequestResolver.js
56814
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/RequestResolver.js
56769
56815
  const TypeId$34 = "~effect/RequestResolver";
56770
56816
  const RequestResolverProto = {
56771
56817
  [TypeId$34]: {
@@ -57028,7 +57074,7 @@ const withSpan = /* @__PURE__ */ dual((args) => isRequestResolver(args[0]), (sel
57028
57074
  })
57029
57075
  }));
57030
57076
  //#endregion
57031
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SynchronizedRef.js
57077
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/SynchronizedRef.js
57032
57078
  const TypeId$33 = "~effect/SynchronizedRef";
57033
57079
  const Proto$16 = {
57034
57080
  ...PipeInspectableProto,
@@ -57051,7 +57097,7 @@ const makeUnsafe$1 = (value) => {
57051
57097
  return self;
57052
57098
  };
57053
57099
  //#endregion
57054
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ScopedRef.js
57100
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/ScopedRef.js
57055
57101
  /**
57056
57102
  * @since 2.0.0
57057
57103
  */
@@ -57116,7 +57162,7 @@ const set$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function* (self
57116
57162
  self.backing.backing.ref.current = [scope, value];
57117
57163
  }, uninterruptible, (effect, self) => self.backing.semaphore.withPermit(effect)));
57118
57164
  //#endregion
57119
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ScopedCache.js
57165
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/ScopedCache.js
57120
57166
  /**
57121
57167
  * @since 4.0.0
57122
57168
  */
@@ -57213,7 +57259,7 @@ const invalidateAllImpl = (parent, map) => {
57213
57259
  return fiberAwaitAll(fibers);
57214
57260
  };
57215
57261
  //#endregion
57216
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SubscriptionRef.js
57262
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/SubscriptionRef.js
57217
57263
  /**
57218
57264
  * @since 2.0.0
57219
57265
  */
@@ -57323,7 +57369,7 @@ const setUnsafe = (self, value) => {
57323
57369
  */
57324
57370
  const set$3 = /* @__PURE__ */ dual(2, (self, value) => self.semaphore.withPermit(sync(() => setUnsafe(self, value))));
57325
57371
  //#endregion
57326
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Unify.js
57372
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/Unify.js
57327
57373
  /**
57328
57374
  * @since 2.0.0
57329
57375
  */
@@ -58743,7 +58789,7 @@ var Mime = class {
58743
58789
  };
58744
58790
  _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
58745
58791
  //#endregion
58746
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/Mime.js
58792
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/Mime.js
58747
58793
  /**
58748
58794
  * @since 1.0.0
58749
58795
  */
@@ -58753,7 +58799,7 @@ _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /
58753
58799
  */
58754
58800
  var Mime_default = new Mime(types$1, types$2)._freeze();
58755
58801
  //#endregion
58756
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
58802
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
58757
58803
  /**
58758
58804
  * A module providing a generic service interface for spawning child processes.
58759
58805
  *
@@ -58816,7 +58862,7 @@ const make$46 = (spawn) => {
58816
58862
  */
58817
58863
  var ChildProcessSpawner = class extends Service$1()("effect/process/ChildProcessSpawner") {};
58818
58864
  //#endregion
58819
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/process/ChildProcess.js
58865
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/process/ChildProcess.js
58820
58866
  const TypeId$29 = "~effect/unstable/process/ChildProcess";
58821
58867
  const Proto$12 = {
58822
58868
  ...PipeInspectableProto,
@@ -59100,7 +59146,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
59100
59146
  ...nextTokens.slice(1)
59101
59147
  ];
59102
59148
  //#endregion
59103
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/platform-node-shared/dist/internal/utils.js
59149
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/platform-node-shared/dist/internal/utils.js
59104
59150
  /** @internal */
59105
59151
  const handleErrnoException = (module, method) => (err, [path]) => {
59106
59152
  let reason = "Unknown";
@@ -59137,7 +59183,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
59137
59183
  });
59138
59184
  };
59139
59185
  //#endregion
59140
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/platform-node-shared/dist/NodeSink.js
59186
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/platform-node-shared/dist/NodeSink.js
59141
59187
  /**
59142
59188
  * @category constructors
59143
59189
  * @since 1.0.0
@@ -59181,7 +59227,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap$4((chunk) => {
59181
59227
  });
59182
59228
  }) : identity);
59183
59229
  //#endregion
59184
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/platform-node-shared/dist/NodeStream.js
59230
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/platform-node-shared/dist/NodeStream.js
59185
59231
  /**
59186
59232
  * @since 1.0.0
59187
59233
  */
@@ -59345,9 +59391,9 @@ var StreamAdapter = class extends Readable {
59345
59391
  });
59346
59392
  }
59347
59393
  };
59348
- const defaultOnError = (error) => new UnknownError$1(error);
59394
+ const defaultOnError = (error) => new UnknownError$2(error);
59349
59395
  //#endregion
59350
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
59396
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
59351
59397
  const toError = (error) => error instanceof globalThis.Error ? error : new globalThis.Error(String(error));
59352
59398
  const toPlatformError = (method, error, command) => {
59353
59399
  const { commands } = flattenCommand(command);
@@ -59681,7 +59727,7 @@ const flattenCommand = (command) => {
59681
59727
  };
59682
59728
  };
59683
59729
  //#endregion
59684
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Cookies.js
59730
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/Cookies.js
59685
59731
  /**
59686
59732
  * @since 4.0.0
59687
59733
  */
@@ -59945,7 +59991,7 @@ const tryDecodeURIComponent = (str) => {
59945
59991
  }
59946
59992
  };
59947
59993
  //#endregion
59948
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Headers.js
59994
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/Headers.js
59949
59995
  /**
59950
59996
  * @since 4.0.0
59951
59997
  */
@@ -60068,7 +60114,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
60068
60114
  "x-api-key"
60069
60115
  ] });
60070
60116
  //#endregion
60071
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpClientError.js
60117
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpClientError.js
60072
60118
  /**
60073
60119
  * @since 4.0.0
60074
60120
  */
@@ -60206,7 +60252,7 @@ var EmptyBodyError = class extends TaggedError("EmptyBodyError") {
60206
60252
  }
60207
60253
  };
60208
60254
  //#endregion
60209
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/UrlParams.js
60255
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/UrlParams.js
60210
60256
  /**
60211
60257
  * @since 4.0.0
60212
60258
  */
@@ -60418,7 +60464,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
60418
60464
  encode: fromInput
60419
60465
  })));
60420
60466
  //#endregion
60421
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpBody.js
60467
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpBody.js
60422
60468
  /**
60423
60469
  * @since 4.0.0
60424
60470
  */
@@ -60557,7 +60603,22 @@ var FormData$1 = class extends Proto$8 {
60557
60603
  */
60558
60604
  const formData = (body) => new FormData$1(body);
60559
60605
  //#endregion
60560
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpClientRequest.js
60606
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpMethod.js
60607
+ /**
60608
+ * @since 4.0.0
60609
+ */
60610
+ const allShort = [
60611
+ ["GET", "get"],
60612
+ ["POST", "post"],
60613
+ ["PUT", "put"],
60614
+ ["DELETE", "del"],
60615
+ ["PATCH", "patch"],
60616
+ ["HEAD", "head"],
60617
+ ["OPTIONS", "options"],
60618
+ ["TRACE", "trace"]
60619
+ ];
60620
+ //#endregion
60621
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpClientRequest.js
60561
60622
  const TypeId$23 = "~effect/http/HttpClientRequest";
60562
60623
  const Proto$7 = {
60563
60624
  [TypeId$23]: TypeId$23,
@@ -60727,7 +60788,7 @@ const bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, url
60727
60788
  */
60728
60789
  const bodyFormData = /* @__PURE__ */ dual(2, (self, body) => setBody(self, formData(body)));
60729
60790
  //#endregion
60730
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
60791
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
60731
60792
  /**
60732
60793
  * @since 4.0.0
60733
60794
  */
@@ -60778,7 +60839,7 @@ const inspect$1 = (self, that) => {
60778
60839
  return obj;
60779
60840
  };
60780
60841
  //#endregion
60781
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpClientResponse.js
60842
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpClientResponse.js
60782
60843
  /**
60783
60844
  * @since 4.0.0
60784
60845
  */
@@ -60919,22 +60980,7 @@ var WebHttpClientResponse = class extends Class$5 {
60919
60980
  }
60920
60981
  };
60921
60982
  //#endregion
60922
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpMethod.js
60923
- /**
60924
- * @since 4.0.0
60925
- */
60926
- const allShort = [
60927
- ["GET", "get"],
60928
- ["POST", "post"],
60929
- ["PUT", "put"],
60930
- ["DELETE", "del"],
60931
- ["PATCH", "patch"],
60932
- ["HEAD", "head"],
60933
- ["OPTIONS", "options"],
60934
- ["TRACE", "trace"]
60935
- ];
60936
- //#endregion
60937
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpTraceContext.js
60983
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpTraceContext.js
60938
60984
  /**
60939
60985
  * @since 4.0.0
60940
60986
  */
@@ -61009,7 +61055,7 @@ const w3c = (headers) => {
61009
61055
  }
61010
61056
  };
61011
61057
  //#endregion
61012
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpClient.js
61058
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpClient.js
61013
61059
  const TypeId$20 = "~effect/http/HttpClient";
61014
61060
  /**
61015
61061
  * @since 4.0.0
@@ -61872,7 +61918,7 @@ const httpMethods = [
61872
61918
  */
61873
61919
  const make$38 = make$39;
61874
61920
  //#endregion
61875
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Template.js
61921
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/Template.js
61876
61922
  /**
61877
61923
  * @since 4.0.0
61878
61924
  */
@@ -61921,7 +61967,7 @@ function isSuccess$1(u) {
61921
61967
  return isExit(u) && u._tag === "Success";
61922
61968
  }
61923
61969
  //#endregion
61924
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServerResponse.js
61970
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpServerResponse.js
61925
61971
  /**
61926
61972
  * @since 4.0.0
61927
61973
  */
@@ -62010,7 +62056,7 @@ const makeResponse$2 = (options) => {
62010
62056
  return self;
62011
62057
  };
62012
62058
  //#endregion
62013
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
62059
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
62014
62060
  /**
62015
62061
  * @since 4.0.0
62016
62062
  */
@@ -62047,7 +62093,7 @@ const toResponseOrElseDefect = (u, orElse) => {
62047
62093
  return succeed$3(orElse);
62048
62094
  };
62049
62095
  //#endregion
62050
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServerError.js
62096
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpServerError.js
62051
62097
  /**
62052
62098
  * @since 4.0.0
62053
62099
  */
@@ -62219,7 +62265,7 @@ const exitResponse = (exit) => {
62219
62265
  return causeResponseStripped(exit.cause)[0];
62220
62266
  };
62221
62267
  //#endregion
62222
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/socket/Socket.js
62268
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/socket/Socket.js
62223
62269
  /**
62224
62270
  * @since 4.0.0
62225
62271
  * @category Type IDs
@@ -63338,7 +63384,7 @@ const make$33 = make$34;
63338
63384
  const defaultIsFile = defaultIsFile$1;
63339
63385
  const decodeField = decodeField$1;
63340
63386
  //#endregion
63341
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Multipart.js
63387
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/Multipart.js
63342
63388
  /**
63343
63389
  * @since 4.0.0
63344
63390
  */
@@ -63470,7 +63516,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
63470
63516
  */
63471
63517
  const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
63472
63518
  //#endregion
63473
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServerRequest.js
63519
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpServerRequest.js
63474
63520
  /**
63475
63521
  * @since 4.0.0
63476
63522
  * @category Type IDs
@@ -63508,11 +63554,11 @@ const toURL = (self) => {
63508
63554
  }
63509
63555
  };
63510
63556
  //#endregion
63511
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/internal/preResponseHandler.js
63557
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/internal/preResponseHandler.js
63512
63558
  /** @internal */
63513
63559
  const requestPreResponseHandlers = /* @__PURE__ */ new WeakMap();
63514
63560
  //#endregion
63515
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpMiddleware.js
63561
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpMiddleware.js
63516
63562
  /**
63517
63563
  * @since 4.0.0
63518
63564
  */
@@ -63610,7 +63656,7 @@ const tracer = /* @__PURE__ */ make$32((httpApp) => withFiber((fiber) => {
63610
63656
  }, true);
63611
63657
  }));
63612
63658
  //#endregion
63613
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpEffect.js
63659
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpEffect.js
63614
63660
  /**
63615
63661
  * @since 4.0.0
63616
63662
  * @category combinators
@@ -63680,7 +63726,7 @@ const scoped = (effect) => withFiber((fiber) => {
63680
63726
  }, true);
63681
63727
  });
63682
63728
  //#endregion
63683
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Etag.js
63729
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/Etag.js
63684
63730
  /**
63685
63731
  * @since 4.0.0
63686
63732
  */
@@ -63746,7 +63792,7 @@ const layerWeak = /* @__PURE__ */ succeed$4(Generator)({
63746
63792
  }
63747
63793
  });
63748
63794
  //#endregion
63749
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpPlatform.js
63795
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpPlatform.js
63750
63796
  /**
63751
63797
  * @since 4.0.0
63752
63798
  */
@@ -63785,7 +63831,7 @@ const make$31 = /* @__PURE__ */ fnUntraced(function* (impl) {
63785
63831
  });
63786
63832
  });
63787
63833
  //#endregion
63788
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServer.js
63834
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpServer.js
63789
63835
  /**
63790
63836
  * @since 4.0.0
63791
63837
  */
@@ -63830,7 +63876,7 @@ const logAddress = /* @__PURE__ */ addressFormattedWith((_) => log$1(`Listening
63830
63876
  */
63831
63877
  const withLogAddress = (layer) => effectDiscard(logAddress).pipe(provideMerge(layer));
63832
63878
  //#endregion
63833
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpRouter.js
63879
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/HttpRouter.js
63834
63880
  /**
63835
63881
  * @since 4.0.0
63836
63882
  */
@@ -64146,7 +64192,7 @@ const serve = (appLayer, options) => {
64146
64192
  }).pipe(unwrap$3, provideMerge(appLayer), provide$3(RouterLayer), options?.disableListenLog ? identity : withLogAddress);
64147
64193
  };
64148
64194
  //#endregion
64149
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/workers/Transferable.js
64195
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/workers/Transferable.js
64150
64196
  /**
64151
64197
  * @since 1.0.0
64152
64198
  */
@@ -64180,7 +64226,7 @@ const makeCollectorUnsafe = () => {
64180
64226
  });
64181
64227
  };
64182
64228
  //#endregion
64183
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/RpcSchema.js
64229
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/rpc/RpcSchema.js
64184
64230
  /**
64185
64231
  * @since 4.0.0
64186
64232
  */
@@ -64213,7 +64259,7 @@ function Stream(success, error) {
64213
64259
  }
64214
64260
  Service$1()("effect/rpc/RpcSchema/ClientAbort");
64215
64261
  //#endregion
64216
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/Rpc.js
64262
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/rpc/Rpc.js
64217
64263
  const TypeId$13 = "~effect/rpc/Rpc";
64218
64264
  const Proto$4 = {
64219
64265
  [TypeId$13]: TypeId$13,
@@ -64353,14 +64399,14 @@ const WrapperTypeId = "~effect/rpc/Rpc/Wrapper";
64353
64399
  */
64354
64400
  const isWrapper = (u) => WrapperTypeId in u;
64355
64401
  //#endregion
64356
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/RpcMessage.js
64402
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/rpc/RpcMessage.js
64357
64403
  /**
64358
64404
  * @since 4.0.0
64359
64405
  * @category request
64360
64406
  */
64361
64407
  const RequestId = (id) => typeof id === "bigint" ? id : BigInt(id);
64362
64408
  //#endregion
64363
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/Utils.js
64409
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/rpc/Utils.js
64364
64410
  /**
64365
64411
  * @since 4.0.0
64366
64412
  */
@@ -64391,7 +64437,7 @@ const withRun = () => (f) => suspend$3(() => {
64391
64437
  }));
64392
64438
  });
64393
64439
  //#endregion
64394
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/RpcClient.js
64440
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/rpc/RpcClient.js
64395
64441
  let requestIdCounter = /* @__PURE__ */ BigInt(0);
64396
64442
  /**
64397
64443
  * @since 4.0.0
@@ -64729,7 +64775,7 @@ var Protocol$1 = class extends Service$1()("effect/rpc/RpcClient/Protocol") {
64729
64775
  };
64730
64776
  const decodeDefect = /* @__PURE__ */ decodeSync(Defect);
64731
64777
  //#endregion
64732
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/RpcGroup.js
64778
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/rpc/RpcGroup.js
64733
64779
  const RpcGroupProto = {
64734
64780
  add(...rpcs) {
64735
64781
  const requests = new Map(this.requests);
@@ -64935,10 +64981,10 @@ const make$25 = ({ dumpSchema = () => void_$2 }) => ({ loader, schemaDirectory,
64935
64981
  yield* loadMigration(resolved)
64936
64982
  ]);
64937
64983
  }
64938
- if (required.length > 0) yield* pipe$1(insertMigrations(required.map(([id, name]) => [id, name])), mapError$2((_) => new MigrationError({
64984
+ if (required.length > 0) yield* pipe$1(insertMigrations(required.map(([id, name]) => [id, name])), mapError$2((error) => error.reason._tag === "ConstraintError" ? new MigrationError({
64939
64985
  kind: "Locked",
64940
64986
  message: "Migrations already running"
64941
- })));
64987
+ }) : error));
64942
64988
  yield* forEach$4(required, ([id, name, effect]) => logDebug(`Running migration`).pipe(flatMap$4(() => runMigration(id, name, effect)), annotateLogs("migration_id", String(id)), annotateLogs("migration_name", name), withSpan$1(`Migrator ${id}_${name}`)), { discard: true });
64943
64989
  yield* pipe$1(latestMigration, flatMap$4(match$10({
64944
64990
  onNone: () => logDebug(`Migrations complete`),
@@ -68463,7 +68509,7 @@ require_sender$1();
68463
68509
  var import_websocket = /* @__PURE__ */ __toESM(require_websocket$1(), 1);
68464
68510
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
68465
68511
  //#endregion
68466
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
68512
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
68467
68513
  /**
68468
68514
  * @since 1.0.0
68469
68515
  */
@@ -68801,7 +68847,7 @@ const makeFileSystem = /* @__PURE__ */ map$9(/* @__PURE__ */ serviceOption(Watch
68801
68847
  writeFile: writeFile$1
68802
68848
  }));
68803
68849
  //#endregion
68804
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeFileSystem.js
68850
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeFileSystem.js
68805
68851
  /**
68806
68852
  * @since 1.0.0
68807
68853
  */
@@ -68811,7 +68857,7 @@ const makeFileSystem = /* @__PURE__ */ map$9(/* @__PURE__ */ serviceOption(Watch
68811
68857
  */
68812
68858
  const layer$25 = /* @__PURE__ */ effect$1(FileSystem)(makeFileSystem);
68813
68859
  //#endregion
68814
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
68860
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
68815
68861
  /**
68816
68862
  * @since 1.0.0
68817
68863
  */
@@ -90282,7 +90328,7 @@ var require_undici = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
90282
90328
  module.exports.install = install;
90283
90329
  }));
90284
90330
  //#endregion
90285
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/Undici.js
90331
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/Undici.js
90286
90332
  var Undici_exports = /* @__PURE__ */ __exportAll({ default: () => Undici_default });
90287
90333
  var import_undici = /* @__PURE__ */ __toESM(require_undici(), 1);
90288
90334
  __reExport(Undici_exports, /* @__PURE__ */ __toESM(require_undici(), 1));
@@ -90292,7 +90338,7 @@ __reExport(Undici_exports, /* @__PURE__ */ __toESM(require_undici(), 1));
90292
90338
  */
90293
90339
  var Undici_default = import_undici.default;
90294
90340
  //#endregion
90295
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/FetchHttpClient.js
90341
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/http/FetchHttpClient.js
90296
90342
  /**
90297
90343
  * @since 4.0.0
90298
90344
  */
@@ -90337,7 +90383,7 @@ const layer$24 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed$3(/
90337
90383
  return send(void 0);
90338
90384
  })));
90339
90385
  //#endregion
90340
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpClient.js
90386
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpClient.js
90341
90387
  /**
90342
90388
  * @since 1.0.0
90343
90389
  */
@@ -90504,7 +90550,7 @@ var UndiciResponse = class extends Class$5 {
90504
90550
  */
90505
90551
  const layerUndici = /* @__PURE__ */ provide$3(/* @__PURE__ */ layerMergedServices(makeUndici), layerDispatcher);
90506
90552
  //#endregion
90507
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
90553
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
90508
90554
  /**
90509
90555
  * @since 1.0.0
90510
90556
  */
@@ -90625,7 +90671,7 @@ var FileStream = class extends Readable {
90625
90671
  }
90626
90672
  };
90627
90673
  //#endregion
90628
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeMultipart.js
90674
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeMultipart.js
90629
90675
  /**
90630
90676
  * @since 1.0.0
90631
90677
  */
@@ -90720,7 +90766,7 @@ function convertError(cause) {
90720
90766
  }
90721
90767
  }
90722
90768
  //#endregion
90723
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/platform-node-shared/dist/NodePath.js
90769
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/platform-node-shared/dist/NodePath.js
90724
90770
  /**
90725
90771
  * @since 1.0.0
90726
90772
  */
@@ -90743,7 +90789,7 @@ const toFileUrl = (path) => try_({
90743
90789
  ({ ...Path.posix });
90744
90790
  ({ ...Path.win32 });
90745
90791
  //#endregion
90746
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodePath.js
90792
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodePath.js
90747
90793
  /**
90748
90794
  * @since 1.0.0
90749
90795
  */
@@ -90758,7 +90804,7 @@ const layer$21 = /* @__PURE__ */ succeed$4(Path$1)({
90758
90804
  toFileUrl
90759
90805
  });
90760
90806
  //#endregion
90761
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeStdio.js
90807
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeStdio.js
90762
90808
  /**
90763
90809
  * @since 1.0.0
90764
90810
  */
@@ -90863,7 +90909,7 @@ function defaultShouldQuit(input) {
90863
90909
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
90864
90910
  }
90865
90911
  //#endregion
90866
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeServices.js
90912
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeServices.js
90867
90913
  /**
90868
90914
  * @since 1.0.0
90869
90915
  * @category layer
@@ -90875,7 +90921,7 @@ const layer$16 = /* @__PURE__ */ provideMerge(layer$30, /* @__PURE__ */ mergeAll
90875
90921
  */
90876
90922
  const layerWebSocketConstructorWS = /* @__PURE__ */ succeed$4(WebSocketConstructor)((url, protocols) => new import_websocket.default(url, protocols));
90877
90923
  //#endregion
90878
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpServer.js
90924
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeHttpServer.js
90879
90925
  /**
90880
90926
  * @since 1.0.0
90881
90927
  */
@@ -91168,7 +91214,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
91168
91214
  return failCause$2(headersSent ? combine$1(originalCause, die$3(originalResponse)) : cause);
91169
91215
  });
91170
91216
  //#endregion
91171
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.36_effect@4.0.0-beta.36_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeRuntime.js
91217
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.37_effect@4.0.0-beta.37_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeRuntime.js
91172
91218
  /**
91173
91219
  * @since 1.0.0
91174
91220
  */
@@ -91219,7 +91265,7 @@ const runMain = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
91219
91265
  process.on("SIGTERM", onSigint);
91220
91266
  });
91221
91267
  //#endregion
91222
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/persistence/PersistedCache.js
91268
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/persistence/PersistedCache.js
91223
91269
  /**
91224
91270
  * @since 4.0.0
91225
91271
  */
@@ -91766,7 +91812,7 @@ const toExit = (self) => {
91766
91812
  }
91767
91813
  };
91768
91814
  //#endregion
91769
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
91815
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
91770
91816
  /**
91771
91817
  * @since 4.0.0
91772
91818
  */
@@ -92353,7 +92399,7 @@ function batchRebuildNode(node) {
92353
92399
  if (node.state !== NodeState.valid) node.value();
92354
92400
  }
92355
92401
  //#endregion
92356
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/reactivity/Atom.js
92402
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/reactivity/Atom.js
92357
92403
  /**
92358
92404
  * @since 4.0.0
92359
92405
  */
@@ -178394,7 +178440,7 @@ const parseCommand = (command) => {
178394
178440
  return args;
178395
178441
  };
178396
178442
  //#endregion
178397
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Model.js
178443
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/Model.js
178398
178444
  /**
178399
178445
  * The `Model` module provides a unified interface for AI service providers.
178400
178446
  *
@@ -181617,7 +181663,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
181617
181663
  });
181618
181664
  Ze.glob = Ze;
181619
181665
  //#endregion
181620
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/ApplyPatch.js
181666
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/ApplyPatch.js
181621
181667
  /**
181622
181668
  * @since 1.0.0
181623
181669
  */
@@ -196490,7 +196536,7 @@ var StreamableHTTPClientTransport = class {
196490
196536
  }
196491
196537
  };
196492
196538
  //#endregion
196493
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/McpClient.js
196539
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/McpClient.js
196494
196540
  /**
196495
196541
  * @since 1.0.0
196496
196542
  */
@@ -196535,7 +196581,7 @@ const layer$13 = effect$1(McpClient, gen(function* () {
196535
196581
  });
196536
196582
  }));
196537
196583
  //#endregion
196538
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/ExaSearch.js
196584
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/ExaSearch.js
196539
196585
  /**
196540
196586
  * @since 1.0.0
196541
196587
  */
@@ -211485,7 +211531,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin$1(((exports) => {
211485
211531
  exports.impl = impl;
211486
211532
  }));
211487
211533
  //#endregion
211488
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/WebToMarkdown.js
211534
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/WebToMarkdown.js
211489
211535
  /**
211490
211536
  * @since 1.0.0
211491
211537
  */
@@ -212249,7 +212295,7 @@ const layer$11 = effect$1(WebToMarkdown, gen(function* () {
212249
212295
  });
212250
212296
  }));
212251
212297
  //#endregion
212252
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Response.js
212298
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/Response.js
212253
212299
  const PartTypeId$1 = "~effect/ai/Content/Part";
212254
212300
  const constEmptyObject$1 = () => ({});
212255
212301
  const constPartTypeId$1 = () => PartTypeId$1;
@@ -212755,7 +212801,7 @@ const ErrorPart = /* @__PURE__ */ Struct$2({
212755
212801
  error: Unknown
212756
212802
  }).annotate({ identifier: "ErrorPart" });
212757
212803
  //#endregion
212758
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/AiError.js
212804
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/AiError.js
212759
212805
  /**
212760
212806
  * The `AiError` module provides comprehensive, provider-agnostic error handling
212761
212807
  * for AI operations.
@@ -212836,7 +212882,7 @@ const ErrorPart = /* @__PURE__ */ Struct$2({
212836
212882
  *
212837
212883
  * @since 1.0.0
212838
212884
  */
212839
- const ReasonTypeId = "~effect/unstable/ai/AiError/Reason";
212885
+ const ReasonTypeId$1 = "~effect/unstable/ai/AiError/Reason";
212840
212886
  const providerMetadataWithDefaults = () => ProviderMetadata.pipe(withConstructorDefault(() => some$2({})), withDecodingDefault(() => ({})));
212841
212887
  const redactHeaders = (headers) => {
212842
212888
  const redacted = redact$3(headers);
@@ -212891,7 +212937,7 @@ var NetworkError = class NetworkError extends ErrorClass("effect/ai/AiError/Netw
212891
212937
  /**
212892
212938
  * @since 1.0.0
212893
212939
  */
212894
- [ReasonTypeId] = ReasonTypeId;
212940
+ [ReasonTypeId$1] = ReasonTypeId$1;
212895
212941
  /**
212896
212942
  * Transport errors are retryable; encoding and URL errors are not.
212897
212943
  *
@@ -213020,7 +213066,7 @@ var RateLimitError = class extends ErrorClass("effect/ai/AiError/RateLimitError"
213020
213066
  /**
213021
213067
  * @since 1.0.0
213022
213068
  */
213023
- [ReasonTypeId] = ReasonTypeId;
213069
+ [ReasonTypeId$1] = ReasonTypeId$1;
213024
213070
  /**
213025
213071
  * Rate limit errors are always retryable.
213026
213072
  *
@@ -213063,7 +213109,7 @@ var QuotaExhaustedError = class extends ErrorClass("effect/ai/AiError/QuotaExhau
213063
213109
  /**
213064
213110
  * @since 1.0.0
213065
213111
  */
213066
- [ReasonTypeId] = ReasonTypeId;
213112
+ [ReasonTypeId$1] = ReasonTypeId$1;
213067
213113
  /**
213068
213114
  * Quota exhausted errors require user action and are not retryable.
213069
213115
  *
@@ -213099,7 +213145,7 @@ var QuotaExhaustedError = class extends ErrorClass("effect/ai/AiError/QuotaExhau
213099
213145
  * @since 1.0.0
213100
213146
  * @category reason
213101
213147
  */
213102
- var AuthenticationError = class extends ErrorClass("effect/ai/AiError/AuthenticationError")({
213148
+ var AuthenticationError$1 = class extends ErrorClass("effect/ai/AiError/AuthenticationError")({
213103
213149
  _tag: /* @__PURE__ */ tag("AuthenticationError"),
213104
213150
  kind: /* @__PURE__ */ Literals([
213105
213151
  "InvalidKey",
@@ -213114,7 +213160,7 @@ var AuthenticationError = class extends ErrorClass("effect/ai/AiError/Authentica
213114
213160
  /**
213115
213161
  * @since 1.0.0
213116
213162
  */
213117
- [ReasonTypeId] = ReasonTypeId;
213163
+ [ReasonTypeId$1] = ReasonTypeId$1;
213118
213164
  /**
213119
213165
  * Authentication errors require credential changes and are not retryable.
213120
213166
  *
@@ -213163,7 +213209,7 @@ var ContentPolicyError = class extends ErrorClass("effect/ai/AiError/ContentPoli
213163
213209
  /**
213164
213210
  * @since 1.0.0
213165
213211
  */
213166
- [ReasonTypeId] = ReasonTypeId;
213212
+ [ReasonTypeId$1] = ReasonTypeId$1;
213167
213213
  /**
213168
213214
  * Content policy errors require content changes and are not retryable.
213169
213215
  *
@@ -213210,7 +213256,7 @@ var InvalidRequestError = class extends ErrorClass("effect/ai/AiError/InvalidReq
213210
213256
  /**
213211
213257
  * @since 1.0.0
213212
213258
  */
213213
- [ReasonTypeId] = ReasonTypeId;
213259
+ [ReasonTypeId$1] = ReasonTypeId$1;
213214
213260
  /**
213215
213261
  * Invalid request errors require fixing the request and are not retryable.
213216
213262
  *
@@ -213257,7 +213303,7 @@ var InternalProviderError = class extends ErrorClass("effect/ai/AiError/Internal
213257
213303
  /**
213258
213304
  * @since 1.0.0
213259
213305
  */
213260
- [ReasonTypeId] = ReasonTypeId;
213306
+ [ReasonTypeId$1] = ReasonTypeId$1;
213261
213307
  /**
213262
213308
  * Internal provider errors are typically transient and are retryable.
213263
213309
  *
@@ -213300,7 +213346,7 @@ var InvalidOutputError = class InvalidOutputError extends ErrorClass("effect/ai/
213300
213346
  /**
213301
213347
  * @since 1.0.0
213302
213348
  */
213303
- [ReasonTypeId] = ReasonTypeId;
213349
+ [ReasonTypeId$1] = ReasonTypeId$1;
213304
213350
  /**
213305
213351
  * Invalid output errors are retryable since LLM outputs are non-deterministic.
213306
213352
  *
@@ -213365,7 +213411,7 @@ var StructuredOutputError = class StructuredOutputError extends ErrorClass("effe
213365
213411
  /**
213366
213412
  * @since 1.0.0
213367
213413
  */
213368
- [ReasonTypeId] = ReasonTypeId;
213414
+ [ReasonTypeId$1] = ReasonTypeId$1;
213369
213415
  /**
213370
213416
  * Structured output errors are retryable since LLM outputs are non-deterministic.
213371
213417
  *
@@ -213432,7 +213478,7 @@ var UnsupportedSchemaError = class extends ErrorClass("effect/ai/AiError/Unsuppo
213432
213478
  /**
213433
213479
  * @since 1.0.0
213434
213480
  */
213435
- [ReasonTypeId] = ReasonTypeId;
213481
+ [ReasonTypeId$1] = ReasonTypeId$1;
213436
213482
  /**
213437
213483
  * Unsupported schema errors are not retryable because they indicate a programmer error.
213438
213484
  *
@@ -213466,7 +213512,7 @@ var UnsupportedSchemaError = class extends ErrorClass("effect/ai/AiError/Unsuppo
213466
213512
  * @since 1.0.0
213467
213513
  * @category reason
213468
213514
  */
213469
- var UnknownError = class extends ErrorClass("effect/ai/AiError/UnknownError")({
213515
+ var UnknownError$1 = class extends ErrorClass("effect/ai/AiError/UnknownError")({
213470
213516
  _tag: /* @__PURE__ */ tag("UnknownError"),
213471
213517
  description: /* @__PURE__ */ optional$3(String$1),
213472
213518
  metadata: /* @__PURE__ */ providerMetadataWithDefaults(),
@@ -213475,7 +213521,7 @@ var UnknownError = class extends ErrorClass("effect/ai/AiError/UnknownError")({
213475
213521
  /**
213476
213522
  * @since 1.0.0
213477
213523
  */
213478
- [ReasonTypeId] = ReasonTypeId;
213524
+ [ReasonTypeId$1] = ReasonTypeId$1;
213479
213525
  /**
213480
213526
  * Unknown errors are not retryable by default.
213481
213527
  *
@@ -213519,7 +213565,7 @@ var ToolNotFoundError = class extends ErrorClass("effect/ai/AiError/ToolNotFound
213519
213565
  /**
213520
213566
  * @since 1.0.0
213521
213567
  */
213522
- [ReasonTypeId] = ReasonTypeId;
213568
+ [ReasonTypeId$1] = ReasonTypeId$1;
213523
213569
  /**
213524
213570
  * Tool not found errors are retryable because the model may self-correct.
213525
213571
  *
@@ -213566,7 +213612,7 @@ var ToolParameterValidationError = class extends ErrorClass("effect/ai/AiError/T
213566
213612
  /**
213567
213613
  * @since 1.0.0
213568
213614
  */
213569
- [ReasonTypeId] = ReasonTypeId;
213615
+ [ReasonTypeId$1] = ReasonTypeId$1;
213570
213616
  /**
213571
213617
  * Parameter validation errors are retryable because the model may correct parameters.
213572
213618
  *
@@ -213611,7 +213657,7 @@ var InvalidToolResultError = class extends ErrorClass("effect/ai/AiError/Invalid
213611
213657
  /**
213612
213658
  * @since 1.0.0
213613
213659
  */
213614
- [ReasonTypeId] = ReasonTypeId;
213660
+ [ReasonTypeId$1] = ReasonTypeId$1;
213615
213661
  /**
213616
213662
  * Invalid tool result errors are not retryable because they indicate a bug in the handler.
213617
213663
  *
@@ -213657,7 +213703,7 @@ var ToolResultEncodingError = class extends ErrorClass("effect/ai/AiError/ToolRe
213657
213703
  /**
213658
213704
  * @since 1.0.0
213659
213705
  */
213660
- [ReasonTypeId] = ReasonTypeId;
213706
+ [ReasonTypeId$1] = ReasonTypeId$1;
213661
213707
  /**
213662
213708
  * Encoding errors are not retryable because they indicate a code bug.
213663
213709
  *
@@ -213701,7 +213747,7 @@ var ToolConfigurationError = class extends ErrorClass("effect/ai/AiError/ToolCon
213701
213747
  /**
213702
213748
  * @since 1.0.0
213703
213749
  */
213704
- [ReasonTypeId] = ReasonTypeId;
213750
+ [ReasonTypeId$1] = ReasonTypeId$1;
213705
213751
  /**
213706
213752
  * Configuration errors are not retryable because they indicate a code bug.
213707
213753
  *
@@ -213744,7 +213790,7 @@ var ToolkitRequiredError = class extends ErrorClass("effect/ai/AiError/ToolkitRe
213744
213790
  /**
213745
213791
  * @since 1.0.0
213746
213792
  */
213747
- [ReasonTypeId] = ReasonTypeId;
213793
+ [ReasonTypeId$1] = ReasonTypeId$1;
213748
213794
  /**
213749
213795
  * Toolkit required errors are not retryable without providing a toolkit.
213750
213796
  *
@@ -213787,7 +213833,7 @@ var InvalidUserInputError = class extends ErrorClass("effect/ai/AiError/InvalidU
213787
213833
  /**
213788
213834
  * @since 1.0.0
213789
213835
  */
213790
- [ReasonTypeId] = ReasonTypeId;
213836
+ [ReasonTypeId$1] = ReasonTypeId$1;
213791
213837
  /**
213792
213838
  * Invalid user input errors require fixing the input and are not retryable.
213793
213839
  *
@@ -213809,7 +213855,7 @@ var InvalidUserInputError = class extends ErrorClass("effect/ai/AiError/InvalidU
213809
213855
  const AiErrorReason = /* @__PURE__ */ Union$2([
213810
213856
  RateLimitError,
213811
213857
  QuotaExhaustedError,
213812
- AuthenticationError,
213858
+ AuthenticationError$1,
213813
213859
  ContentPolicyError,
213814
213860
  InvalidRequestError,
213815
213861
  InternalProviderError,
@@ -213817,7 +213863,7 @@ const AiErrorReason = /* @__PURE__ */ Union$2([
213817
213863
  InvalidOutputError,
213818
213864
  StructuredOutputError,
213819
213865
  UnsupportedSchemaError,
213820
- UnknownError,
213866
+ UnknownError$1,
213821
213867
  ToolNotFoundError,
213822
213868
  ToolParameterValidationError,
213823
213869
  InvalidToolResultError,
@@ -213906,7 +213952,7 @@ var AiError = class extends ErrorClass("effect/ai/AiError/AiError")({
213906
213952
  * @since 1.0.0
213907
213953
  * @category guards
213908
213954
  */
213909
- const isAiErrorReason = (u) => hasProperty(u, ReasonTypeId);
213955
+ const isAiErrorReason = (u) => hasProperty(u, ReasonTypeId$1);
213910
213956
  /**
213911
213957
  * Creates an `AiError` with the given reason.
213912
213958
  *
@@ -213960,11 +214006,11 @@ const reasonFromHttpStatus = (params) => {
213960
214006
  };
213961
214007
  switch (status) {
213962
214008
  case 400: return new InvalidRequestError(common);
213963
- case 401: return new AuthenticationError({
214009
+ case 401: return new AuthenticationError$1({
213964
214010
  kind: "InvalidKey",
213965
214011
  ...common
213966
214012
  });
213967
- case 403: return new AuthenticationError({
214013
+ case 403: return new AuthenticationError$1({
213968
214014
  kind: "InsufficientPermissions",
213969
214015
  ...common
213970
214016
  });
@@ -213974,11 +214020,11 @@ const reasonFromHttpStatus = (params) => {
213974
214020
  description: "Server error",
213975
214021
  ...common
213976
214022
  });
213977
- return new UnknownError(common);
214023
+ return new UnknownError$1(common);
213978
214024
  }
213979
214025
  };
213980
214026
  //#endregion
213981
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Toolkit.js
214027
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/Toolkit.js
213982
214028
  const TypeId$6 = "~effect/ai/Toolkit";
213983
214029
  const Proto$2 = {
213984
214030
  ...YieldableProto,
@@ -214202,7 +214248,7 @@ const merge$1 = (...toolkits) => {
214202
214248
  return makeProto(tools);
214203
214249
  };
214204
214250
  //#endregion
214205
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Tool.js
214251
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/Tool.js
214206
214252
  /**
214207
214253
  * @since 1.0.0
214208
214254
  * @category type ids
@@ -214624,7 +214670,7 @@ function isEmptyParamsRecord(indexSignature) {
214624
214670
  return indexSignature.parameter === string$3 && isNever(indexSignature.type);
214625
214671
  }
214626
214672
  //#endregion
214627
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/SemanticSearch/Service.js
214673
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/SemanticSearch/Service.js
214628
214674
  /**
214629
214675
  * @since 1.0.0
214630
214676
  */
@@ -214650,7 +214696,7 @@ const maybeRemoveFile = (path) => serviceOption(SemanticSearch).pipe(flatMap$4(m
214650
214696
  onSome: (service) => service.removeFile(path)
214651
214697
  })));
214652
214698
  //#endregion
214653
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/AgentTools.js
214699
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/AgentTools.js
214654
214700
  /**
214655
214701
  * @since 1.0.0
214656
214702
  */
@@ -214669,6 +214715,11 @@ var TaskCompleter = class extends Service$1()("clanka/AgentTools/TaskCompleter")
214669
214715
  * @category Context
214670
214716
  */
214671
214717
  var SubagentExecutor = class extends Service$1()("clanka/AgentTools/SubagentExecutor") {};
214718
+ var TodoItem = class extends Opaque()(Struct$2({
214719
+ id: Number$1,
214720
+ text: String$1,
214721
+ completed: Boolean$2
214722
+ })) {};
214672
214723
  /**
214673
214724
  * @since 1.0.0
214674
214725
  * @category Toolkit
@@ -214707,6 +214758,23 @@ const AgentTools = make$14(make$13("readFile", {
214707
214758
  parameters: Array$1(String$1).annotate({ identifier: "args" }),
214708
214759
  success: String$1,
214709
214760
  dependencies: [CurrentDirectory]
214761
+ }), make$13("listTodos", {
214762
+ description: "Read your todo list",
214763
+ parameters: Void,
214764
+ success: Array$1(TodoItem)
214765
+ }), make$13("addTodo", {
214766
+ description: "Add an item to your todo list",
214767
+ parameters: String$1.annotate({ identifier: "text" })
214768
+ }), make$13("updateTodo", {
214769
+ description: "Update an item in your todo list",
214770
+ parameters: Struct$2({
214771
+ id: Number$1,
214772
+ text: optional$3(String$1),
214773
+ completed: optional$3(Boolean$2)
214774
+ })
214775
+ }), make$13("clearTodos", {
214776
+ description: "Clear all items in your todo list",
214777
+ parameters: Void
214710
214778
  }), make$13("bash", {
214711
214779
  description: "Run a bash command and return the output",
214712
214780
  parameters: Struct$2({
@@ -214779,6 +214847,8 @@ const AgentToolHandlersNoDeps = AgentToolsWithSearch.toLayer(gen(function* () {
214779
214847
  const pathService = yield* Path$1;
214780
214848
  const webSearch = yield* ExaSearch;
214781
214849
  const fetchMarkdown = yield* WebToMarkdown;
214850
+ const todoMap = /* @__PURE__ */ new Map();
214851
+ let todoIdCounter = 0;
214782
214852
  const execute = fn(function* (command) {
214783
214853
  const handle = yield* spawner.spawn(command);
214784
214854
  return yield* handle.all.pipe(decodeText, mkString, flatMap$4(fnUntraced(function* (output) {
@@ -214860,6 +214930,34 @@ const AgentToolHandlersNoDeps = AgentToolsWithSearch.toLayer(gen(function* () {
214860
214930
  const cwd = yield* CurrentDirectory;
214861
214931
  return yield* promise(() => Ze(pattern, { cwd }));
214862
214932
  }),
214933
+ listTodos: fn("AgentTools.listTodos")(function* () {
214934
+ yield* logInfo(`Calling "listTodos"`);
214935
+ return fromIterable$5(todoMap.values());
214936
+ }),
214937
+ addTodo: fn("AgentTools.addTodo")(function* (text) {
214938
+ yield* logInfo(`Calling "addTodo"`).pipe(annotateLogs({ text }));
214939
+ const id = ++todoIdCounter;
214940
+ const item = {
214941
+ id,
214942
+ text,
214943
+ completed: false
214944
+ };
214945
+ todoMap.set(id, item);
214946
+ }),
214947
+ updateTodo: fn("AgentTools.updateTodo")(function* (options) {
214948
+ yield* logInfo(`Calling "updateTodo"`).pipe(annotateLogs(options));
214949
+ const item = todoMap.get(options.id);
214950
+ if (item === void 0) return yield* die$2(`Todo item ${options.id} not found`);
214951
+ todoMap.set(item.id, {
214952
+ ...item,
214953
+ text: options.text ?? item.text,
214954
+ completed: options.completed ?? item.completed
214955
+ });
214956
+ }),
214957
+ clearTodos: fn("AgentTools.clearTodos")(function* () {
214958
+ yield* logInfo(`Calling "clearTodos"`);
214959
+ todoMap.clear();
214960
+ }),
214863
214961
  bash: fn("AgentTools.bash")(function* (options) {
214864
214962
  const timeoutMs = Math.min(options.timeoutMs ?? 12e4, 24e4);
214865
214963
  yield* logInfo(`Calling "bash"`).pipe(annotateLogs({
@@ -215001,7 +215099,7 @@ const AgentToolHandlers = AgentToolHandlersNoDeps.pipe(provide$3([layer$12, laye
215001
215099
  AgentToolHandlersNoDeps.pipe(provide$3([mock(ExaSearch)({}), mock(WebToMarkdown)({})]));
215002
215100
  var ApplyPatchError = class extends TaggedClass$2("ApplyPatchError") {};
215003
215101
  //#endregion
215004
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/TypeBuilder.js
215102
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/TypeBuilder.js
215005
215103
  const resolveDocumentation = resolveAt("documentation");
215006
215104
  const identifierPattern = /^[$A-Z_a-z][$0-9A-Z_a-z]*$/u;
215007
215105
  const Precedence = {
@@ -215274,7 +215372,7 @@ const render = (schema, options) => {
215274
215372
  return printNode({ text: documentation === void 0 ? rendered.text : `${renderJsDoc(documentation, 0, printerOptions)}${printerOptions.newLine}${rendered.text}` }, printerOptions);
215275
215373
  };
215276
215374
  //#endregion
215277
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/ToolkitRenderer.js
215375
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/ToolkitRenderer.js
215278
215376
  /**
215279
215377
  * @since 1.0.0
215280
215378
  */
@@ -215296,7 +215394,7 @@ declare function ${name}(${params}): Promise<${render(tool.successSchema)}>`);
215296
215394
  }) });
215297
215395
  };
215298
215396
  //#endregion
215299
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/ScriptPreprocessing.js
215397
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/ScriptPreprocessing.js
215300
215398
  const callTemplateTargets = ["applyPatch", "taskComplete"];
215301
215399
  const objectPropertyTargets = [{
215302
215400
  functionName: "writeFile",
@@ -215775,7 +215873,7 @@ const rewriteAssignedTargets = (script) => {
215775
215873
  };
215776
215874
  const preprocessScript = (script) => rewriteAssignedTargets(rewriteDirectTemplates(script));
215777
215875
  //#endregion
215778
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/AgentExecutor.js
215876
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/AgentExecutor.js
215779
215877
  /**
215780
215878
  * @since 1.0.0
215781
215879
  */
@@ -215960,7 +216058,7 @@ var QueueWriteStream = class extends Writable {
215960
216058
  }
215961
216059
  };
215962
216060
  //#endregion
215963
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/ScriptExtraction.js
216061
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/ScriptExtraction.js
215964
216062
  const stripWrappingCodeFence = (script) => {
215965
216063
  const lines = script.split(/\r?\n/);
215966
216064
  if (lines.length < 2) return script;
@@ -215985,7 +216083,7 @@ const stripWrappingCodeFence = (script) => {
215985
216083
  return lines.slice(firstNonEmpty + 1, lastNonEmpty).join(newLine);
215986
216084
  };
215987
216085
  //#endregion
215988
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Prompt.js
216086
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/Prompt.js
215989
216087
  /**
215990
216088
  * The `Prompt` module provides several data structures to simplify creating and
215991
216089
  * combining prompts.
@@ -216524,7 +216622,7 @@ const setSystem = /* @__PURE__ */ dual(2, (self, content) => {
216524
216622
  return makePrompt(messages);
216525
216623
  });
216526
216624
  //#endregion
216527
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/IdGenerator.js
216625
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/IdGenerator.js
216528
216626
  /**
216529
216627
  * The `IdGenerator` service tag for dependency injection.
216530
216628
  *
@@ -216593,7 +216691,7 @@ const makeGenerator = ({ alphabet = DEFAULT_ALPHABET, prefix, separator = DEFAUL
216593
216691
  */
216594
216692
  const defaultIdGenerator = { generateId: /* @__PURE__ */ makeGenerator({ prefix: "id" }) };
216595
216693
  //#endregion
216596
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/internal/codec-transformer.js
216694
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/internal/codec-transformer.js
216597
216695
  /** @internal */
216598
216696
  const defaultCodecTransformer$1 = (codec) => {
216599
216697
  const document = toJsonSchemaDocument(codec);
@@ -216605,7 +216703,7 @@ const defaultCodecTransformer$1 = (codec) => {
216605
216703
  };
216606
216704
  };
216607
216705
  //#endregion
216608
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/ResponseIdTracker.js
216706
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/ResponseIdTracker.js
216609
216707
  /**
216610
216708
  * @since 4.0.0
216611
216709
  */
@@ -216662,7 +216760,7 @@ const make$11 = /* @__PURE__ */ sync(() => {
216662
216760
  };
216663
216761
  });
216664
216762
  //#endregion
216665
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Telemetry.js
216763
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/Telemetry.js
216666
216764
  /**
216667
216765
  * The `Telemetry` module provides OpenTelemetry integration for operations
216668
216766
  * performed against a large language model provider by defining telemetry
@@ -216778,7 +216876,7 @@ const addGenAIAnnotations$2 = /* @__PURE__ */ dual(2, (span, options) => {
216778
216876
  */
216779
216877
  var CurrentSpanTransformer = class extends Service$1()("effect/ai/Telemetry/CurrentSpanTransformer") {};
216780
216878
  //#endregion
216781
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/LanguageModel.js
216879
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/LanguageModel.js
216782
216880
  /**
216783
216881
  * The `LanguageModel` service key for dependency injection.
216784
216882
  *
@@ -217509,7 +217607,7 @@ const applySpanTransformer = (transformer, response, options) => {
217509
217607
  });
217510
217608
  };
217511
217609
  //#endregion
217512
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/Agent.js
217610
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/Agent.js
217513
217611
  /**
217514
217612
  * @since 1.0.0
217515
217613
  */
@@ -217545,7 +217643,7 @@ ${content}
217545
217643
  let agentCounter = 0;
217546
217644
  const outputBuffer = /* @__PURE__ */ new Map();
217547
217645
  let currentOutputAgent = null;
217548
- let history = make$77(empty);
217646
+ const history = make$77(empty);
217549
217647
  const spawn = fnUntraced(function* (opts) {
217550
217648
  const agentId = opts.agentId;
217551
217649
  const ai = yield* LanguageModel;
@@ -217770,6 +217868,7 @@ ${content}
217770
217868
  const sendLock = makeUnsafe$9(1);
217771
217869
  return Agent.of({
217772
217870
  [TypeId$3]: TypeId$3,
217871
+ history,
217773
217872
  send: (options) => spawn({
217774
217873
  agentId: agentCounter++,
217775
217874
  prompt: make$12(options.prompt),
@@ -217792,7 +217891,6 @@ const retryPolicy = exponential(100, 1.5).pipe(either(spaced(5e3)), jittered);
217792
217891
  const defaultSystem = (options) => `You are a world-class software engineer: precise, rigorous, thoughtful, and relentlessly careful. You fully understand the task, verify assumptions, and produce minimal, correct, maintainable solutions. You make no mistakes.
217793
217892
 
217794
217893
  - **Fully read and understand your task** before proceeding.
217795
- - Use the current state of the codebase to inform your decisions. Don't look at git history unless explicity asked to.
217796
217894
  - Only add comments when necessary.
217797
217895
 
217798
217896
  ${options.toolInstructions}
@@ -217802,13 +217900,14 @@ ${options.agentsMd}
217802
217900
  const generateSystemTools = (capabilities, conversationMode) => `**YOU ONLY HAVE ACCESS TO ONE TOOL** "execute", to run javascript code to do your work.
217803
217901
 
217804
217902
  - Use \`console.log\` to print any output you need.
217805
- - Top level await is supported.${capabilities.supportsSearch ? `
217806
- - AVOID USING the "rg" function and instead use "search", unless you are targeting specific files or patterns.` : ""}
217903
+ - Top level await is supported - no need to wrap with async functions.${capabilities.supportsSearch ? `
217904
+ - PREFER USING the "search" function over "rg", unless you are targeting specific files or patterns.` : ""}
217807
217905
  - Do as much work as possible in a single script, using \`Promise.all\` to run multiple functions in parallel.
217808
217906
  - You can add / update / remove multiple files in one go with "applyPatch".
217809
217907
  - AVOID passing scripts into the "bash" function, and instead write javascript.
217810
217908
  - **Variables are not shared** between executions, so you must include all necessary code in each script you execute.
217811
- - DO NOT use \`require\`, \`import\`, \`process\`, or any other node.js apis.${conversationMode ? "" : `
217909
+ - DO NOT use \`require\`, \`import\`, \`process\`, or any other Node.js apis.
217910
+ - Make use of the todo functions to keep track of your progress.${conversationMode ? "" : `
217812
217911
 
217813
217912
  When you have fully completed your task, call the "taskComplete" function with the final output.
217814
217913
  DO NOT output the final result without wrapping it with "taskComplete".
@@ -218019,7 +218118,7 @@ Union$2([
218019
218118
  */
218020
218119
  var AgentFinished = class extends TaggedErrorClass()("AgentFinished", { summary: String$1 }) {};
218021
218120
  //#endregion
218022
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/encoding/Sse.js
218121
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/encoding/Sse.js
218023
218122
  /**
218024
218123
  * @since 4.0.0
218025
218124
  * @category Decoding
@@ -218202,7 +218301,7 @@ var Retry = class Retry extends TaggedClass$2("Retry") {
218202
218301
  }
218203
218302
  };
218204
218303
  //#endregion
218205
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai/dist/Generated.js
218304
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai/dist/Generated.js
218206
218305
  /**
218207
218306
  * @since 1.0.0
218208
218307
  */ const AdminApiKey = /* @__PURE__ */ Struct$2({
@@ -226270,7 +226369,7 @@ const OpenAiClientError = (tag, cause, response) => new OpenAiClientErrorImpl({
226270
226369
  request: response.request
226271
226370
  });
226272
226371
  //#endregion
226273
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai/dist/internal/errors.js
226372
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai/dist/internal/errors.js
226274
226373
  /** @internal */
226275
226374
  const OpenAiErrorBody$1 = /* @__PURE__ */ Struct$2({ error: /* @__PURE__ */ Struct$2({
226276
226375
  message: String$1,
@@ -226433,12 +226532,12 @@ const mapStatusCodeToReason$1 = ({ status, headers, message, metadata, http }) =
226433
226532
  metadata: { openai: metadata },
226434
226533
  http
226435
226534
  });
226436
- case 401: return new AuthenticationError({
226535
+ case 401: return new AuthenticationError$1({
226437
226536
  kind: "InvalidKey",
226438
226537
  metadata,
226439
226538
  http
226440
226539
  });
226441
- case 403: return new AuthenticationError({
226540
+ case 403: return new AuthenticationError$1({
226442
226541
  kind: "InsufficientPermissions",
226443
226542
  metadata,
226444
226543
  http
@@ -226475,7 +226574,7 @@ const mapStatusCodeToReason$1 = ({ status, headers, message, metadata, http }) =
226475
226574
  metadata,
226476
226575
  http
226477
226576
  });
226478
- return new UnknownError({
226577
+ return new UnknownError$1({
226479
226578
  description: message,
226480
226579
  metadata,
226481
226580
  http
@@ -226483,7 +226582,7 @@ const mapStatusCodeToReason$1 = ({ status, headers, message, metadata, http }) =
226483
226582
  }
226484
226583
  };
226485
226584
  //#endregion
226486
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
226585
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
226487
226586
  /**
226488
226587
  * @since 1.0.0
226489
226588
  */
@@ -226498,7 +226597,7 @@ var OpenAiConfig$1 = class OpenAiConfig$1 extends Service$1()("@effect/ai-openai
226498
226597
  static getOrUndefined = /* @__PURE__ */ map$9(/* @__PURE__ */ services(), (context) => context.mapUnsafe.get(OpenAiConfig$1.key));
226499
226598
  };
226500
226599
  //#endregion
226501
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai/dist/OpenAiClient.js
226600
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai/dist/OpenAiClient.js
226502
226601
  /**
226503
226602
  * OpenAI Client module for interacting with OpenAI's API.
226504
226603
  *
@@ -226715,7 +226814,7 @@ const decodeEvent = /* @__PURE__ */ decodeUnknownSync(/* @__PURE__ */ fromJsonSt
226715
226814
  */
226716
226815
  const layerWebSocketMode = /* @__PURE__ */ effectServices(makeSocket);
226717
226816
  //#endregion
226718
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/EmbeddingModel.js
226817
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/EmbeddingModel.js
226719
226818
  /**
226720
226819
  * The `EmbeddingModel` module provides provider-agnostic text embedding capabilities.
226721
226820
  *
@@ -226814,7 +226913,7 @@ const mapProviderResults = (inputLength, results) => {
226814
226913
  return succeed$3(embeddings);
226815
226914
  };
226816
226915
  //#endregion
226817
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
226916
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
226818
226917
  /**
226819
226918
  * OpenAI Embedding Model implementation.
226820
226919
  *
@@ -226894,7 +226993,7 @@ const invalidOutput = (description) => make$15({
226894
226993
  reason: new InvalidOutputError({ description })
226895
226994
  });
226896
226995
  //#endregion
226897
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/OpenAiStructuredOutput.js
226996
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/ai/OpenAiStructuredOutput.js
226898
226997
  /**
226899
226998
  * Provides codec transformations for OpenAI structured output.
226900
226999
  *
@@ -227199,7 +227298,7 @@ const formats = [
227199
227298
  "uuid"
227200
227299
  ];
227201
227300
  //#endregion
227202
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai/dist/internal/utilities.js
227301
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai/dist/internal/utilities.js
227203
227302
  const finishReasonMap$1 = {
227204
227303
  content_filter: "content-filter",
227205
227304
  function_call: "tool-calls",
@@ -227217,7 +227316,7 @@ const resolveFinishReason$1 = (finishReason, hasToolCalls) => {
227217
227316
  return reason;
227218
227317
  };
227219
227318
  //#endregion
227220
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
227319
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
227221
227320
  /**
227222
227321
  * OpenAI telemetry attributes for OpenTelemetry integration.
227223
227322
  *
@@ -227246,7 +227345,7 @@ const addGenAIAnnotations$1 = /* @__PURE__ */ dual(2, (span, options) => {
227246
227345
  }
227247
227346
  });
227248
227347
  //#endregion
227249
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
227348
+ //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
227250
227349
  /**
227251
227350
  * OpenAI Language Model implementation.
227252
227351
  *
@@ -229014,7 +229113,7 @@ const transformToolCallParams = /* @__PURE__ */ fnUntraced(function* (tools, too
229014
229113
  })));
229015
229114
  });
229016
229115
  //#endregion
229017
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/CodexAuth.js
229116
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/CodexAuth.js
229018
229117
  /**
229019
229118
  * @since 1.0.0
229020
229119
  */
@@ -229234,7 +229333,7 @@ var CodexAuth = class CodexAuth extends Service$1()("clanka/CodexAuth") {
229234
229333
  static layerClient = this.layerClientNoDeps.pipe(provide$3(CodexAuth.layer));
229235
229334
  };
229236
229335
  //#endregion
229237
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/Codex.js
229336
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/Codex.js
229238
229337
  /**
229239
229338
  * @since 1.0.0
229240
229339
  */
@@ -229260,7 +229359,7 @@ const layerModel = (model, options) => layer$7({
229260
229359
  }
229261
229360
  }).pipe(merge$6(AgentModelConfig.layer({ systemPromptTransform: (system, effect) => withConfigOverride(effect, { instructions: system }) })));
229262
229361
  //#endregion
229263
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/CodeChunker.js
229362
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/CodeChunker.js
229264
229363
  /**
229265
229364
  * @since 1.0.0
229266
229365
  */
@@ -229734,7 +229833,7 @@ const layer$6 = effect$1(CodeChunker, gen(function* () {
229734
229833
  });
229735
229834
  }));
229736
229835
  //#endregion
229737
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai-compat/dist/internal/errors.js
229836
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai-compat/dist/internal/errors.js
229738
229837
  /** @internal */
229739
229838
  const OpenAiErrorBody = /* @__PURE__ */ Struct$2({ error: /* @__PURE__ */ Struct$2({
229740
229839
  message: String$1,
@@ -229892,12 +229991,12 @@ const mapStatusCodeToReason = ({ status, headers, message, metadata, http }) =>
229892
229991
  metadata: { openai: metadata },
229893
229992
  http
229894
229993
  });
229895
- case 401: return new AuthenticationError({
229994
+ case 401: return new AuthenticationError$1({
229896
229995
  kind: "InvalidKey",
229897
229996
  metadata,
229898
229997
  http
229899
229998
  });
229900
- case 403: return new AuthenticationError({
229999
+ case 403: return new AuthenticationError$1({
229901
230000
  kind: "InsufficientPermissions",
229902
230001
  metadata,
229903
230002
  http
@@ -229934,7 +230033,7 @@ const mapStatusCodeToReason = ({ status, headers, message, metadata, http }) =>
229934
230033
  metadata,
229935
230034
  http
229936
230035
  });
229937
- return new UnknownError({
230036
+ return new UnknownError$1({
229938
230037
  description: message,
229939
230038
  metadata,
229940
230039
  http
@@ -229942,7 +230041,7 @@ const mapStatusCodeToReason = ({ status, headers, message, metadata, http }) =>
229942
230041
  }
229943
230042
  };
229944
230043
  //#endregion
229945
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai-compat/dist/OpenAiConfig.js
230044
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai-compat/dist/OpenAiConfig.js
229946
230045
  /**
229947
230046
  * @since 1.0.0
229948
230047
  */
@@ -229957,7 +230056,7 @@ var OpenAiConfig = class OpenAiConfig extends Service$1()("@effect/ai-openai-com
229957
230056
  static getOrUndefined = /* @__PURE__ */ map$9(/* @__PURE__ */ services(), (context) => context.mapUnsafe.get(OpenAiConfig.key));
229958
230057
  };
229959
230058
  //#endregion
229960
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai-compat/dist/OpenAiClient.js
230059
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai-compat/dist/OpenAiClient.js
229961
230060
  /**
229962
230061
  * @since 1.0.0
229963
230062
  */
@@ -230093,7 +230192,7 @@ const decodeChatCompletionSseData = (data) => {
230093
230192
  return isChatCompletionChunk(parsed) ? parsed : void 0;
230094
230193
  };
230095
230194
  //#endregion
230096
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai-compat/dist/internal/utilities.js
230195
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai-compat/dist/internal/utilities.js
230097
230196
  const finishReasonMap = {
230098
230197
  content_filter: "content-filter",
230099
230198
  function_call: "tool-calls",
@@ -230109,7 +230208,7 @@ const resolveFinishReason = (finishReason, hasToolCalls) => {
230109
230208
  return reason;
230110
230209
  };
230111
230210
  //#endregion
230112
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai-compat/dist/OpenAiTelemetry.js
230211
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai-compat/dist/OpenAiTelemetry.js
230113
230212
  /**
230114
230213
  * OpenAI telemetry attributes for OpenTelemetry integration.
230115
230214
  *
@@ -230138,7 +230237,7 @@ const addGenAIAnnotations = /* @__PURE__ */ dual(2, (span, options) => {
230138
230237
  }
230139
230238
  });
230140
230239
  //#endregion
230141
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/ai-openai-compat/dist/OpenAiLanguageModel.js
230240
+ //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/ai-openai-compat/dist/OpenAiLanguageModel.js
230142
230241
  /**
230143
230242
  * OpenAI Language Model implementation.
230144
230243
  *
@@ -231020,7 +231119,7 @@ const getUsageDetailNumber = (details, field) => {
231020
231119
  return typeof value === "number" ? value : void 0;
231021
231120
  };
231022
231121
  //#endregion
231023
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/CopilotAuth.js
231122
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/CopilotAuth.js
231024
231123
  /**
231025
231124
  * @since 1.0.0
231026
231125
  */
@@ -231211,7 +231310,7 @@ var GithubCopilotAuth = class GithubCopilotAuth extends Service$1()("clanka/Gith
231211
231310
  static layerClient = this.layerClientNoDeps.pipe(provide$3(GithubCopilotAuth.layer));
231212
231311
  };
231213
231312
  //#endregion
231214
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/Copilot.js
231313
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/Copilot.js
231215
231314
  /**
231216
231315
  * @since 1.0.0
231217
231316
  */
@@ -231631,7 +231730,7 @@ Object.defineProperties(createChalk.prototype, styles);
231631
231730
  const chalk = createChalk();
231632
231731
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
231633
231732
  //#endregion
231634
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/OutputFormatter.js
231733
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/OutputFormatter.js
231635
231734
  /**
231636
231735
  * @since 1.0.0
231637
231736
  */
@@ -231737,7 +231836,7 @@ const layerMuxer = (formatter) => effect$1(Muxer, gen(function* () {
231737
231836
  });
231738
231837
  }));
231739
231838
  //#endregion
231740
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/schema/VariantSchema.js
231839
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/schema/VariantSchema.js
231741
231840
  /**
231742
231841
  * @since 4.0.0
231743
231842
  * @category Type IDs
@@ -231845,7 +231944,7 @@ const Union$1 = (members, variants) => {
231845
231944
  return VariantUnion;
231846
231945
  };
231847
231946
  //#endregion
231848
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/schema/Model.js
231947
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/schema/Model.js
231849
231948
  const { Class, Field, FieldExcept, FieldOnly, Struct, Union, extract, fieldEvolve } = /* @__PURE__ */ make$1({
231850
231949
  variants: [
231851
231950
  "select",
@@ -231871,22 +231970,248 @@ const Generated = (schema) => Field({
231871
231970
  json: schema
231872
231971
  });
231873
231972
  //#endregion
231874
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlError.js
231973
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/sql/SqlError.js
231875
231974
  /**
231876
231975
  * @since 4.0.0
231877
231976
  */
231878
231977
  const TypeId$1 = "~effect/sql/SqlError";
231978
+ const ReasonTypeId = "~effect/sql/SqlError/Reason";
231979
+ const ReasonFields = {
231980
+ cause: Defect,
231981
+ message: /* @__PURE__ */ optional$3(String$1),
231982
+ operation: /* @__PURE__ */ optional$3(String$1)
231983
+ };
231879
231984
  /**
231880
231985
  * @since 4.0.0
231881
231986
  */
231882
- var SqlError = class extends TaggedErrorClass("effect/sql/SqlError")("SqlError", {
231883
- cause: Defect,
231884
- message: /* @__PURE__ */ optional$3(String$1)
231885
- }) {
231987
+ var ConnectionError = class extends TaggedErrorClass("effect/sql/SqlError/ConnectionError")("ConnectionError", ReasonFields) {
231988
+ /**
231989
+ * @since 4.0.0
231990
+ */
231991
+ [ReasonTypeId] = ReasonTypeId;
231992
+ /**
231993
+ * @since 4.0.0
231994
+ */
231995
+ get isRetryable() {
231996
+ return true;
231997
+ }
231998
+ };
231999
+ /**
232000
+ * @since 4.0.0
232001
+ */
232002
+ var AuthenticationError = class extends TaggedErrorClass("effect/sql/SqlError/AuthenticationError")("AuthenticationError", ReasonFields) {
232003
+ /**
232004
+ * @since 4.0.0
232005
+ */
232006
+ [ReasonTypeId] = ReasonTypeId;
232007
+ /**
232008
+ * @since 4.0.0
232009
+ */
232010
+ get isRetryable() {
232011
+ return false;
232012
+ }
232013
+ };
232014
+ /**
232015
+ * @since 4.0.0
232016
+ */
232017
+ var AuthorizationError = class extends TaggedErrorClass("effect/sql/SqlError/AuthorizationError")("AuthorizationError", ReasonFields) {
232018
+ /**
232019
+ * @since 4.0.0
232020
+ */
232021
+ [ReasonTypeId] = ReasonTypeId;
232022
+ /**
232023
+ * @since 4.0.0
232024
+ */
232025
+ get isRetryable() {
232026
+ return false;
232027
+ }
232028
+ };
232029
+ /**
232030
+ * @since 4.0.0
232031
+ */
232032
+ var SqlSyntaxError = class extends TaggedErrorClass("effect/sql/SqlError/SqlSyntaxError")("SqlSyntaxError", ReasonFields) {
232033
+ /**
232034
+ * @since 4.0.0
232035
+ */
232036
+ [ReasonTypeId] = ReasonTypeId;
232037
+ /**
232038
+ * @since 4.0.0
232039
+ */
232040
+ get isRetryable() {
232041
+ return false;
232042
+ }
232043
+ };
232044
+ /**
232045
+ * @since 4.0.0
232046
+ */
232047
+ var ConstraintError = class extends TaggedErrorClass("effect/sql/SqlError/ConstraintError")("ConstraintError", ReasonFields) {
232048
+ /**
232049
+ * @since 4.0.0
232050
+ */
232051
+ [ReasonTypeId] = ReasonTypeId;
232052
+ /**
232053
+ * @since 4.0.0
232054
+ */
232055
+ get isRetryable() {
232056
+ return false;
232057
+ }
232058
+ };
232059
+ /**
232060
+ * @since 4.0.0
232061
+ */
232062
+ var DeadlockError = class extends TaggedErrorClass("effect/sql/SqlError/DeadlockError")("DeadlockError", ReasonFields) {
232063
+ /**
232064
+ * @since 4.0.0
232065
+ */
232066
+ [ReasonTypeId] = ReasonTypeId;
232067
+ /**
232068
+ * @since 4.0.0
232069
+ */
232070
+ get isRetryable() {
232071
+ return true;
232072
+ }
232073
+ };
232074
+ /**
232075
+ * @since 4.0.0
232076
+ */
232077
+ var SerializationError = class extends TaggedErrorClass("effect/sql/SqlError/SerializationError")("SerializationError", ReasonFields) {
232078
+ /**
232079
+ * @since 4.0.0
232080
+ */
232081
+ [ReasonTypeId] = ReasonTypeId;
232082
+ /**
232083
+ * @since 4.0.0
232084
+ */
232085
+ get isRetryable() {
232086
+ return true;
232087
+ }
232088
+ };
232089
+ /**
232090
+ * @since 4.0.0
232091
+ */
232092
+ var LockTimeoutError = class extends TaggedErrorClass("effect/sql/SqlError/LockTimeoutError")("LockTimeoutError", ReasonFields) {
232093
+ /**
232094
+ * @since 4.0.0
232095
+ */
232096
+ [ReasonTypeId] = ReasonTypeId;
232097
+ /**
232098
+ * @since 4.0.0
232099
+ */
232100
+ get isRetryable() {
232101
+ return true;
232102
+ }
232103
+ };
232104
+ /**
232105
+ * @since 4.0.0
232106
+ */
232107
+ var StatementTimeoutError = class extends TaggedErrorClass("effect/sql/SqlError/StatementTimeoutError")("StatementTimeoutError", ReasonFields) {
232108
+ /**
232109
+ * @since 4.0.0
232110
+ */
232111
+ [ReasonTypeId] = ReasonTypeId;
232112
+ /**
232113
+ * @since 4.0.0
232114
+ */
232115
+ get isRetryable() {
232116
+ return true;
232117
+ }
232118
+ };
232119
+ /**
232120
+ * @since 4.0.0
232121
+ */
232122
+ var UnknownError = class extends TaggedErrorClass("effect/sql/SqlError/UnknownError")("UnknownError", ReasonFields) {
232123
+ /**
232124
+ * @since 4.0.0
232125
+ */
232126
+ [ReasonTypeId] = ReasonTypeId;
232127
+ /**
232128
+ * @since 4.0.0
232129
+ */
232130
+ get isRetryable() {
232131
+ return false;
232132
+ }
232133
+ };
232134
+ /**
232135
+ * @since 4.0.0
232136
+ */
232137
+ const SqlErrorReason = /* @__PURE__ */ Union$2([
232138
+ ConnectionError,
232139
+ AuthenticationError,
232140
+ AuthorizationError,
232141
+ SqlSyntaxError,
232142
+ ConstraintError,
232143
+ DeadlockError,
232144
+ SerializationError,
232145
+ LockTimeoutError,
232146
+ StatementTimeoutError,
232147
+ UnknownError
232148
+ ]);
232149
+ /**
232150
+ * @since 4.0.0
232151
+ */
232152
+ var SqlError = class extends TaggedErrorClass("effect/sql/SqlError")("SqlError", { reason: SqlErrorReason }) {
231886
232153
  /**
231887
232154
  * @since 4.0.0
231888
232155
  */
231889
232156
  [TypeId$1] = TypeId$1;
232157
+ /**
232158
+ * @since 4.0.0
232159
+ */
232160
+ cause = this.reason;
232161
+ /**
232162
+ * @since 4.0.0
232163
+ */
232164
+ get message() {
232165
+ return this.reason.message || this.reason._tag;
232166
+ }
232167
+ /**
232168
+ * @since 4.0.0
232169
+ */
232170
+ get isRetryable() {
232171
+ return this.reason.isRetryable;
232172
+ }
232173
+ };
232174
+ const sqliteCodeFromCause = (cause) => {
232175
+ if (!hasProperty(cause, "code")) return;
232176
+ const code = cause.code;
232177
+ return typeof code === "string" || typeof code === "number" ? code : void 0;
232178
+ };
232179
+ const sqliteNumericCodeFromCause = (cause) => {
232180
+ const code = sqliteCodeFromCause(cause);
232181
+ if (typeof code === "number") return code;
232182
+ if (!hasProperty(cause, "errno")) return;
232183
+ const errno = cause.errno;
232184
+ return typeof errno === "number" ? errno : void 0;
232185
+ };
232186
+ const matchesSqliteCode = (code, expected) => code === expected || code.startsWith(expected + "_");
232187
+ /**
232188
+ * @since 4.0.0
232189
+ */
232190
+ const classifySqliteError = (cause, { message, operation } = {}) => {
232191
+ const props = {
232192
+ cause,
232193
+ message,
232194
+ operation
232195
+ };
232196
+ const code = sqliteCodeFromCause(cause);
232197
+ if (typeof code === "string") {
232198
+ if (matchesSqliteCode(code, "SQLITE_AUTH")) return new AuthenticationError(props);
232199
+ if (matchesSqliteCode(code, "SQLITE_PERM")) return new AuthorizationError(props);
232200
+ if (matchesSqliteCode(code, "SQLITE_CONSTRAINT")) return new ConstraintError(props);
232201
+ if (matchesSqliteCode(code, "SQLITE_BUSY") || matchesSqliteCode(code, "SQLITE_LOCKED")) return new LockTimeoutError(props);
232202
+ if (matchesSqliteCode(code, "SQLITE_CANTOPEN")) return new ConnectionError(props);
232203
+ }
232204
+ const numericCode = sqliteNumericCodeFromCause(cause);
232205
+ if (typeof numericCode === "number") switch (numericCode & 255) {
232206
+ case 23: return new AuthenticationError(props);
232207
+ case 3: return new AuthorizationError(props);
232208
+ case 19: return new ConstraintError(props);
232209
+ case 5:
232210
+ case 6: return new LockTimeoutError(props);
232211
+ case 14: return new ConnectionError(props);
232212
+ default: return new UnknownError(props);
232213
+ }
232214
+ return new UnknownError(props);
231890
232215
  };
231891
232216
  /**
231892
232217
  * @since 4.0.0
@@ -231895,10 +232220,6 @@ var ResultLengthMismatch = class extends TaggedErrorClass("effect/sql/ResultLeng
231895
232220
  expected: Number$1,
231896
232221
  actual: Number$1
231897
232222
  }) {
231898
- /**
231899
- * @since 4.0.0
231900
- */
231901
- [TypeId$1] = TypeId$1;
231902
232223
  /**
231903
232224
  * @since 4.0.0
231904
232225
  */
@@ -231907,7 +232228,7 @@ var ResultLengthMismatch = class extends TaggedErrorClass("effect/sql/ResultLeng
231907
232228
  }
231908
232229
  };
231909
232230
  //#endregion
231910
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlResolver.js
232231
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/sql/SqlResolver.js
231911
232232
  /**
231912
232233
  * @since 4.0.0
231913
232234
  */
@@ -232055,7 +232376,7 @@ function transactionKey(entry) {
232055
232376
  return byReferenceUnsafe(conn);
232056
232377
  }
232057
232378
  //#endregion
232058
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlSchema.js
232379
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/sql/SqlSchema.js
232059
232380
  /**
232060
232381
  * Run a sql query with a request schema and a result schema.
232061
232382
  *
@@ -232068,7 +232389,7 @@ const findAll = (options) => {
232068
232389
  return (request) => flatMap$4(flatMap$4(encodeRequest(request), options.execute), decode);
232069
232390
  };
232070
232391
  //#endregion
232071
- //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlModel.js
232392
+ //#region node_modules/.pnpm/effect@4.0.0-beta.37/node_modules/effect/dist/unstable/sql/SqlModel.js
232072
232393
  /**
232073
232394
  * Create some simple data loaders from a model.
232074
232395
  *
@@ -232117,7 +232438,7 @@ select * from ${sql(options.tableName)} where ${sql(idColumn)} = LAST_INSERT_ID(
232117
232438
  };
232118
232439
  });
232119
232440
  //#endregion
232120
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/ChunkRepo.js
232441
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/ChunkRepo.js
232121
232442
  /**
232122
232443
  * @since 1.0.0
232123
232444
  * @category Models
@@ -232248,11 +232569,15 @@ const layer$3 = effect$1(ChunkRepo, gen(function* () {
232248
232569
  });
232249
232570
  }));
232250
232571
  //#endregion
232251
- //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/sql-sqlite-node/dist/SqliteClient.js
232572
+ //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/sql-sqlite-node/dist/SqliteClient.js
232252
232573
  /**
232253
232574
  * @since 1.0.0
232254
232575
  */
232255
232576
  const ATTR_DB_SYSTEM_NAME = "db.system.name";
232577
+ const classifyError = (cause, message, operation) => classifySqliteError(cause, {
232578
+ message,
232579
+ operation
232580
+ });
232256
232581
  /**
232257
232582
  * @category type ids
232258
232583
  * @since 1.0.0
@@ -232280,10 +232605,7 @@ const make = (options) => gen(function* () {
232280
232605
  timeToLive: options.prepareCacheTTL ?? minutes(10),
232281
232606
  lookup: (sql) => try_({
232282
232607
  try: () => db.prepare(sql),
232283
- catch: (cause) => new SqlError({
232284
- cause,
232285
- message: "Failed to prepare statement "
232286
- })
232608
+ catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to prepare statement", "prepare") })
232287
232609
  })
232288
232610
  });
232289
232611
  const runStatement = (statement, params, raw) => withFiber((fiber) => {
@@ -232293,10 +232615,7 @@ const make = (options) => gen(function* () {
232293
232615
  const result = statement.run(...params);
232294
232616
  return succeed$3(raw ? result : []);
232295
232617
  } catch (cause) {
232296
- return fail$6(new SqlError({
232297
- cause,
232298
- message: "Failed to execute statement"
232299
- }));
232618
+ return fail$6(new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") }));
232300
232619
  }
232301
232620
  });
232302
232621
  const run = (sql, params, raw = false) => flatMap$4(get$8(prepareCache, sql), (s) => runStatement(s, params, raw));
@@ -232309,10 +232628,7 @@ const make = (options) => gen(function* () {
232309
232628
  statement.run(...params);
232310
232629
  return [];
232311
232630
  },
232312
- catch: (cause) => new SqlError({
232313
- cause,
232314
- message: "Failed to execute statement"
232315
- })
232631
+ catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") })
232316
232632
  }), (statement) => sync(() => statement.reader && statement.raw(false)));
232317
232633
  return identity({
232318
232634
  execute(sql, params, transformRows) {
@@ -232333,27 +232649,18 @@ const make = (options) => gen(function* () {
232333
232649
  },
232334
232650
  export: try_({
232335
232651
  try: () => db.serialize(),
232336
- catch: (cause) => new SqlError({
232337
- cause,
232338
- message: "Failed to export database"
232339
- })
232652
+ catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to export database", "export") })
232340
232653
  }),
232341
232654
  backup(destination) {
232342
232655
  return tryPromise({
232343
232656
  try: () => db.backup(destination),
232344
- catch: (cause) => new SqlError({
232345
- cause,
232346
- message: "Failed to backup database"
232347
- })
232657
+ catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to backup database", "backup") })
232348
232658
  });
232349
232659
  },
232350
232660
  loadExtension(path) {
232351
232661
  return try_({
232352
232662
  try: () => db.loadExtension(path),
232353
- catch: (cause) => new SqlError({
232354
- cause,
232355
- message: "Failed to load extension"
232356
- })
232663
+ catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to load extension", "loadExtension") })
232357
232664
  });
232358
232665
  }
232359
232666
  });
@@ -232385,7 +232692,7 @@ const make = (options) => gen(function* () {
232385
232692
  */
232386
232693
  const layer$2 = (config) => effectServices(map$9(make(config), (client) => make$89(SqliteClient, client).pipe(add$3(SqlClient, client)))).pipe(provide$3(layer$32));
232387
232694
  //#endregion
232388
- //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.36_effect@4.0.0-beta.36/node_modules/@effect/sql-sqlite-node/dist/SqliteMigrator.js
232695
+ //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.37_effect@4.0.0-beta.37/node_modules/@effect/sql-sqlite-node/dist/SqliteMigrator.js
232389
232696
  /**
232390
232697
  * @category constructor
232391
232698
  * @since 1.0.0
@@ -232397,7 +232704,7 @@ const run$1 = /* @__PURE__ */ make$25({});
232397
232704
  */
232398
232705
  const layer$1 = (options) => effectDiscard(run$1(options));
232399
232706
  //#endregion
232400
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/internal/sqlite-vector.js
232707
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/internal/sqlite-vector.js
232401
232708
  /**
232402
232709
  * Binary extension for each platform
232403
232710
  */
@@ -232514,7 +232821,7 @@ function getExtensionPath() {
232514
232821
  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`);
232515
232822
  }
232516
232823
  //#endregion
232517
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/Sqlite.js
232824
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/Sqlite.js
232518
232825
  /**
232519
232826
  * @since 1.0.0
232520
232827
  */
@@ -232542,7 +232849,7 @@ const SqliteLayer = (database) => layer$1({ loader: fromRecord({ "0001_create_ch
232542
232849
  yield* fs.makeDirectory(directory, { recursive: true });
232543
232850
  }))));
232544
232851
  //#endregion
232545
- //#region node_modules/.pnpm/clanka@0.2.29_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_c7bf3ff73fb714904da6f1876bc52310/node_modules/clanka/dist/SemanticSearch.js
232852
+ //#region node_modules/.pnpm/clanka@0.2.31_@effect+ai-openai-compat@4.0.0-beta.37_effect@4.0.0-beta.37__@effect+ai-o_e6618f2236cf2d744a8a10cef6e9a9fd/node_modules/clanka/dist/SemanticSearch.js
232546
232853
  /**
232547
232854
  * @since 1.0.0
232548
232855
  */
@@ -242255,7 +242562,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
242255
242562
  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));
242256
242563
  //#endregion
242257
242564
  //#region package.json
242258
- var version = "0.3.100";
242565
+ var version = "0.3.102";
242259
242566
  //#endregion
242260
242567
  //#region src/Tracing.ts
242261
242568
  const TracingLayer = unwrap$3(gen(function* () {