lalph 0.3.92 → 0.3.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -65,7 +65,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
65
65
  }) : target, mod));
66
66
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
67
67
  //#endregion
68
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Pipeable.js
68
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Function.js
127
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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.
@@ -397,7 +397,7 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
397
397
  /**
398
398
  * @since 4.0.0
399
399
  */
400
- function memoize(f) {
400
+ function memoize$1(f) {
401
401
  const cache = /* @__PURE__ */ new WeakMap();
402
402
  return (a) => {
403
403
  if (cache.has(a)) return cache.get(a);
@@ -407,7 +407,7 @@ function memoize(f) {
407
407
  };
408
408
  }
409
409
  //#endregion
410
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/equal.js
410
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Predicate.js
429
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Hash.js
1078
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Equal.js
1427
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Redactable.js
1697
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Formatter.js
1791
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Inspectable.js
2133
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Utils.js
2336
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/core.js
2414
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Data.js
2813
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Equivalence.js
3046
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/option.js
3268
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/result.js
3343
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/result.js
3344
3344
  const TypeId$77 = "~effect/data/Result";
3345
3345
  const CommonProto = {
3346
3346
  [TypeId$77]: {
@@ -3415,7 +3415,7 @@ const succeed$9 = (success) => {
3415
3415
  return a;
3416
3416
  };
3417
3417
  //#endregion
3418
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Order.js
3418
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Option.js
3756
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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$90((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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Duration.js
4614
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Duration.js
4615
4615
  const TypeId$76 = "~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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/array.js
5335
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Result.js
5342
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Tuple.js
5552
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Iterable.js
5583
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Record.js
5735
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Array.js
5899
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/ServiceMap.js
6733
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Scheduler.js
7263
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Tracer.js
7397
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/References.js
7581
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/metric.js
8043
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/tracer.js
8047
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/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@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/effect.js
8077
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/effect.js
8078
8078
  /** @internal */
8079
8079
  var Interrupt$1 = class extends ReasonBase {
8080
8080
  fiberId;
@@ -9292,14 +9292,15 @@ const cachedInvalidateWithTTL$1 = /* @__PURE__ */ dual(2, (self, ttl) => sync$2(
9292
9292
  let exit;
9293
9293
  const wait = flatMap$6(latch.await, () => exit);
9294
9294
  return [withFiber$1((fiber) => {
9295
- const now = isFinite ? fiber.getRef(ClockRef).currentTimeMillisUnsafe() : 0;
9295
+ const clock = fiber.getRef(ClockRef);
9296
+ const now = isFinite ? clock.currentTimeMillisUnsafe() : 0;
9296
9297
  if (running || now < expiresAt) return exit ?? wait;
9297
9298
  running = true;
9298
9299
  latch.closeUnsafe();
9299
9300
  exit = void 0;
9300
9301
  return onExit$2(self, (exit_) => sync$2(() => {
9301
9302
  running = false;
9302
- expiresAt = now + ttlMillis;
9303
+ expiresAt = clock.currentTimeMillisUnsafe() + ttlMillis;
9303
9304
  exit = exit_;
9304
9305
  latch.openUnsafe();
9305
9306
  }));
@@ -10302,7 +10303,7 @@ const asVoid$1 = exitAsVoid;
10302
10303
  */
10303
10304
  const getSuccess = exitGetSuccess;
10304
10305
  //#endregion
10305
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Deferred.js
10306
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Deferred.js
10306
10307
  const DeferredProto = {
10307
10308
  ["~effect/Deferred"]: {
10308
10309
  _A: identity,
@@ -10787,7 +10788,7 @@ const close = scopeClose;
10787
10788
  */
10788
10789
  const closeUnsafe = scopeCloseUnsafe;
10789
10790
  //#endregion
10790
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Layer.js
10791
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Layer.js
10791
10792
  const TypeId$74 = "~effect/Layer";
10792
10793
  const MemoMapTypeId = "~effect/Layer/MemoMap";
10793
10794
  /**
@@ -11834,7 +11835,7 @@ const makeUnimplemented = (error) => {
11834
11835
  const StreamTypeId$1 = "~effect/Stream";
11835
11836
  const ChannelTypeId = "~effect/Channel";
11836
11837
  //#endregion
11837
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/ExecutionPlan.js
11838
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ExecutionPlan.js
11838
11839
  /**
11839
11840
  * @since 3.16.0
11840
11841
  * @category Type IDs
@@ -12427,7 +12428,7 @@ const UnknownError$1 = UnknownError$2;
12427
12428
  */
12428
12429
  var StackTrace = class extends Service$1()("effect/Cause/StackTrace") {};
12429
12430
  //#endregion
12430
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Clock.js
12431
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Clock.js
12431
12432
  /**
12432
12433
  * A reference to the current Clock service in the environment.
12433
12434
  *
@@ -12446,7 +12447,7 @@ var StackTrace = class extends Service$1()("effect/Cause/StackTrace") {};
12446
12447
  */
12447
12448
  const Clock = ClockRef;
12448
12449
  //#endregion
12449
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/dateTime.js
12450
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/dateTime.js
12450
12451
  /** @internal */
12451
12452
  const TypeId$71 = "~effect/time/DateTime";
12452
12453
  /** @internal */
@@ -12729,7 +12730,7 @@ const formatIsoOffset$1 = (self) => {
12729
12730
  /** @internal */
12730
12731
  const formatIsoZoned$1 = (self) => self.zone._tag === "Offset" ? formatIsoOffset$1(self) : `${formatIsoOffset$1(self)}[${self.zone.id}]`;
12731
12732
  //#endregion
12732
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Number.js
12733
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Number.js
12733
12734
  /**
12734
12735
  * This module provides utility functions and type class instances for working with the `number` type in TypeScript.
12735
12736
  * It includes functions for basic arithmetic operations.
@@ -12898,7 +12899,7 @@ const isNonEmpty$1 = (self) => self.length > 0;
12898
12899
  */
12899
12900
  const camelToSnake = (self) => self.replace(/([A-Z])/g, "_$1").toLowerCase();
12900
12901
  //#endregion
12901
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/random.js
12902
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/random.js
12902
12903
  /** @internal */
12903
12904
  const Random$1 = /* @__PURE__ */ Reference("effect/Random", { defaultValue: () => ({
12904
12905
  nextIntUnsafe() {
@@ -12909,7 +12910,7 @@ const Random$1 = /* @__PURE__ */ Reference("effect/Random", { defaultValue: () =
12909
12910
  }
12910
12911
  }) });
12911
12912
  //#endregion
12912
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Pull.js
12913
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Pull.js
12913
12914
  /**
12914
12915
  * @since 4.0.0
12915
12916
  */
@@ -12983,7 +12984,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffec
12983
12984
  }
12984
12985
  }));
12985
12986
  //#endregion
12986
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Schedule.js
12987
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Schedule.js
12987
12988
  /**
12988
12989
  * This module provides utilities for creating and composing schedules for retrying operations,
12989
12990
  * repeating effects, and implementing various timing strategies.
@@ -13524,12 +13525,12 @@ const while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map$12(toSt
13524
13525
  */
13525
13526
  const forever$1 = /* @__PURE__ */ spaced(zero$1);
13526
13527
  //#endregion
13527
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/layer.js
13528
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/layer.js
13528
13529
  const provideLayer = (self, layer, options) => scopedWith$1((scope) => flatMap$6(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideServices$3(self, context)));
13529
13530
  /** @internal */
13530
13531
  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));
13531
13532
  //#endregion
13532
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/schedule.js
13533
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schedule.js
13533
13534
  /** @internal */
13534
13535
  const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self, schedule, orElse) => flatMap$6(toStepWithMetadata(schedule), (step) => {
13535
13536
  let meta = CurrentMetadata.defaultValue();
@@ -13574,7 +13575,7 @@ const buildFromOptions = (options) => {
13574
13575
  return schedule;
13575
13576
  };
13576
13577
  //#endregion
13577
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Request.js
13578
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Request.js
13578
13579
  const TypeId$69 = "~effect/Request";
13579
13580
  const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
13580
13581
  _E: (_) => _,
@@ -13641,7 +13642,7 @@ const TaggedClass$1 = (tag) => {
13641
13642
  */
13642
13643
  const makeEntry = (options) => options;
13643
13644
  //#endregion
13644
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/request.js
13645
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/request.js
13645
13646
  /** @internal */
13646
13647
  const request$3 = /* @__PURE__ */ dual(2, (self, resolver) => {
13647
13648
  const withResolver = (resolver) => callback$2((resume) => {
@@ -18362,7 +18363,7 @@ const catchEager = catchEager$1;
18362
18363
  */
18363
18364
  const fnUntracedEager = fnUntracedEager$1;
18364
18365
  //#endregion
18365
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/record.js
18366
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/record.js
18366
18367
  /**
18367
18368
  * @since 4.0.0
18368
18369
  */
@@ -18378,7 +18379,7 @@ function set$10(self, key, value) {
18378
18379
  return self;
18379
18380
  }
18380
18381
  //#endregion
18381
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/schema/annotations.js
18382
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schema/annotations.js
18382
18383
  /** @internal */
18383
18384
  function resolve$5(ast) {
18384
18385
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
@@ -18394,7 +18395,7 @@ const resolveDescription$1 = /* @__PURE__ */ resolveAt$1("description");
18394
18395
  /** @internal */
18395
18396
  const resolveBrands = /* @__PURE__ */ resolveAt$1("brands");
18396
18397
  /** @internal */
18397
- const getExpected = /* @__PURE__ */ memoize((ast) => {
18398
+ const getExpected = /* @__PURE__ */ memoize$1((ast) => {
18398
18399
  const identifier = resolveIdentifier$1(ast);
18399
18400
  if (typeof identifier === "string") return identifier;
18400
18401
  return ast.getExpected(getExpected);
@@ -18733,7 +18734,7 @@ const subtract = subtract$1;
18733
18734
  */
18734
18735
  const formatIso = formatIso$1;
18735
18736
  //#endregion
18736
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Encoding.js
18737
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Encoding.js
18737
18738
  /**
18738
18739
  * Encoding & decoding for Base64 (RFC4648), Base64Url, and Hex.
18739
18740
  *
@@ -19119,7 +19120,7 @@ const base64codes = [
19119
19120
  ];
19120
19121
  const base64UrlEncodeUint8Array = (data) => base64EncodeUint8Array(data).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
19121
19122
  //#endregion
19122
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/redacted.js
19123
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/redacted.js
19123
19124
  /** @internal */
19124
19125
  const redactedRegistry = /* @__PURE__ */ new WeakMap();
19125
19126
  /** @internal */
@@ -19130,7 +19131,7 @@ const value$3 = (self) => {
19130
19131
  /** @internal */
19131
19132
  const stringOrRedacted = (val) => typeof val === "string" ? val : value$3(val);
19132
19133
  //#endregion
19133
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Redacted.js
19134
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Redacted.js
19134
19135
  /**
19135
19136
  * The Redacted module provides functionality for handling sensitive information
19136
19137
  * securely within your application. By using the `Redacted` data type, you can
@@ -19236,7 +19237,7 @@ const value$2 = value$3;
19236
19237
  */
19237
19238
  const makeEquivalence$2 = (isEquivalent) => make$90((x, y) => isEquivalent(value$2(x), value$2(y)));
19238
19239
  //#endregion
19239
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/SchemaIssue.js
19240
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaIssue.js
19240
19241
  const TypeId$67 = "~effect/SchemaIssue/Issue";
19241
19242
  /**
19242
19243
  * Returns `true` if the given value is an {@link Issue}.
@@ -19979,7 +19980,7 @@ function redact$2(issue) {
19979
19980
  }
19980
19981
  }
19981
19982
  //#endregion
19982
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/SchemaGetter.js
19983
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaGetter.js
19983
19984
  /**
19984
19985
  * Composable transformation primitives for the Effect Schema system.
19985
19986
  *
@@ -20954,7 +20955,7 @@ const isZero = (n) => n.value === bigint0;
20954
20955
  */
20955
20956
  const isNegative = (n) => n.value < bigint0;
20956
20957
  //#endregion
20957
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/SchemaTransformation.js
20958
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaTransformation.js
20958
20959
  /**
20959
20960
  * Bidirectional transformations for the Effect Schema system.
20960
20961
  *
@@ -21566,7 +21567,7 @@ const dateTimeUtcFromString = /* @__PURE__ */ transformOrFail({
21566
21567
  encode: (utc) => succeed$3(formatIso(utc))
21567
21568
  });
21568
21569
  //#endregion
21569
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/SchemaAST.js
21570
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaAST.js
21570
21571
  /**
21571
21572
  * Abstract Syntax Tree (AST) representation for Effect schemas.
21572
21573
  *
@@ -23313,7 +23314,7 @@ function isMutable(ast) {
23313
23314
  *
23314
23315
  * @since 4.0.0
23315
23316
  */
23316
- const toType$1 = /* @__PURE__ */ memoize((ast) => {
23317
+ const toType$1 = /* @__PURE__ */ memoize$1((ast) => {
23317
23318
  if (ast.encoding) return toType$1(replaceEncoding(ast, void 0));
23318
23319
  const out = ast;
23319
23320
  return out.recur?.(toType$1) ?? out;
@@ -23343,7 +23344,7 @@ const toType$1 = /* @__PURE__ */ memoize((ast) => {
23343
23344
  *
23344
23345
  * @since 4.0.0
23345
23346
  */
23346
- const toEncoded$1 = /* @__PURE__ */ memoize((ast) => {
23347
+ const toEncoded$1 = /* @__PURE__ */ memoize$1((ast) => {
23347
23348
  return toType$1(flip(ast));
23348
23349
  });
23349
23350
  function flipEncoding(ast, encoding) {
@@ -23372,7 +23373,7 @@ function flipEncoding(ast, encoding) {
23372
23373
  *
23373
23374
  * @since 4.0.0
23374
23375
  */
23375
- const flip = /* @__PURE__ */ memoize((ast) => {
23376
+ const flip = /* @__PURE__ */ memoize$1((ast) => {
23376
23377
  if (ast.encoding) return flipEncoding(ast, ast.encoding);
23377
23378
  const out = ast;
23378
23379
  return out.flip?.(flip) ?? out.recur?.(flip) ?? out;
@@ -23389,7 +23390,7 @@ function getTemplateLiteralSource(ast, top) {
23389
23390
  return ast.encodedParts.map((part) => handleTemplateLiteralASTPartParens(part, getTemplateLiteralASTPartPattern(part), top)).join("");
23390
23391
  }
23391
23392
  /** @internal */
23392
- const getTemplateLiteralRegExp = /* @__PURE__ */ memoize((ast) => {
23393
+ const getTemplateLiteralRegExp = /* @__PURE__ */ memoize$1((ast) => {
23393
23394
  return new globalThis.RegExp(`^${getTemplateLiteralSource(ast, true)}$`);
23394
23395
  });
23395
23396
  function getTemplateLiteralASTPartPattern(part) {
@@ -23426,7 +23427,7 @@ function toCodec(f) {
23426
23427
  function out(ast) {
23427
23428
  return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f(ast);
23428
23429
  }
23429
- return memoize(out);
23430
+ return memoize$1(out);
23430
23431
  }
23431
23432
  const indexSignatureParameterFromString = /* @__PURE__ */ toCodec((ast) => {
23432
23433
  switch (ast._tag) {
@@ -23590,7 +23591,7 @@ const unknownToStringTree = /* @__PURE__ */ new Link(/* @__PURE__ */ new Declara
23590
23591
  toCodecStringTree: () => new Link(unknown$1, passthrough())
23591
23592
  }), /* @__PURE__ */ passthrough());
23592
23593
  //#endregion
23593
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Brand.js
23594
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Brand.js
23594
23595
  /**
23595
23596
  * This function returns a `Constructor` that **does not apply any runtime
23596
23597
  * checks**, it just returns the provided value. It can be used to create
@@ -23611,7 +23612,7 @@ function nominal() {
23611
23612
  });
23612
23613
  }
23613
23614
  //#endregion
23614
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/PlatformError.js
23615
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/PlatformError.js
23615
23616
  /**
23616
23617
  * @since 4.0.0
23617
23618
  */
@@ -23671,7 +23672,7 @@ const systemError = (options) => new PlatformError(new SystemError(options));
23671
23672
  */
23672
23673
  const badArgument = (options) => new PlatformError(new BadArgument(options));
23673
23674
  //#endregion
23674
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Chunk.js
23675
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Chunk.js
23675
23676
  /**
23676
23677
  * The `Chunk` module provides an immutable, high-performance sequence data structure
23677
23678
  * optimized for functional programming patterns. A `Chunk` is a persistent data structure
@@ -24314,7 +24315,7 @@ const getCurrent = getCurrentFiber;
24314
24315
  */
24315
24316
  const runIn = fiberRunIn;
24316
24317
  //#endregion
24317
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Latch.js
24318
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Latch.js
24318
24319
  /**
24319
24320
  * Creates a new Latch unsafely.
24320
24321
  *
@@ -24386,7 +24387,7 @@ const makeUnsafe$10 = makeLatchUnsafe;
24386
24387
  */
24387
24388
  const make$77 = makeLatch;
24388
24389
  //#endregion
24389
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/MutableList.js
24390
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/MutableList.js
24390
24391
  /**
24391
24392
  * @fileoverview
24392
24393
  * MutableList is an efficient, mutable linked list implementation optimized for high-throughput
@@ -24968,7 +24969,7 @@ const filter$4 = (self, f) => {
24968
24969
  */
24969
24970
  const remove$6 = (self, value) => filter$4(self, (v) => v !== value);
24970
24971
  //#endregion
24971
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/MutableRef.js
24972
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/MutableRef.js
24972
24973
  const TypeId$61 = "~effect/MutableRef";
24973
24974
  const MutableRefProto = {
24974
24975
  [TypeId$61]: TypeId$61,
@@ -25208,7 +25209,7 @@ const update = /* @__PURE__ */ dual(2, (self, f) => set$9(self, f(get$14(self)))
25208
25209
  */
25209
25210
  const updateAndGet = /* @__PURE__ */ dual(2, (self, f) => setAndGet(self, f(get$14(self))));
25210
25211
  //#endregion
25211
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/PubSub.js
25212
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/PubSub.js
25212
25213
  /**
25213
25214
  * This module provides utilities for working with publish-subscribe (PubSub) systems.
25214
25215
  *
@@ -25509,7 +25510,7 @@ const shutdown$1 = (self) => uninterruptible(withFiber((fiber) => {
25509
25510
  * @category publishing
25510
25511
  */
25511
25512
  const publish = /* @__PURE__ */ dual(2, (self, value) => suspend$3(() => {
25512
- if (self.shutdownFlag.current) return interrupt$1;
25513
+ if (self.shutdownFlag.current) return succeed$3(false);
25513
25514
  if (self.pubsub.publish(value)) {
25514
25515
  self.strategy.completeSubscribersUnsafe(self.pubsub, self.subscribers);
25515
25516
  return succeed$3(true);
@@ -25590,7 +25591,7 @@ const publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
25590
25591
  * @category publishing
25591
25592
  */
25592
25593
  const publishAll = /* @__PURE__ */ dual(2, (self, elements) => suspend$3(() => {
25593
- if (self.shutdownFlag.current) return interrupt$1;
25594
+ if (self.shutdownFlag.current) return succeed$3(false);
25594
25595
  const surplus = self.pubsub.publishAll(elements);
25595
25596
  self.strategy.completeSubscribersUnsafe(self.pubsub, self.subscribers);
25596
25597
  if (surplus.length === 0) return succeed$3(true);
@@ -25643,7 +25644,12 @@ const publishAll = /* @__PURE__ */ dual(2, (self, elements) => suspend$3(() => {
25643
25644
  * @since 2.0.0
25644
25645
  * @category subscription
25645
25646
  */
25646
- const subscribe = (self) => acquireRelease(sync(() => makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy)), unsubscribe);
25647
+ const subscribe = (self) => uninterruptible(servicesWith((services) => {
25648
+ const localScope = get$15(services, Scope);
25649
+ const scope = forkUnsafe(self.scope);
25650
+ const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy);
25651
+ return addFinalizer$1(scope, unsubscribe(subscription)).pipe(andThen(addFinalizerExit(localScope, (exit) => close(scope, exit))), as$1(subscription));
25652
+ }));
25647
25653
  const unsubscribe = (self) => uninterruptible(withFiber((state) => {
25648
25654
  set$9(self.shutdownFlag, true);
25649
25655
  return forEach$4(takeAll$2(self.pollers), (d) => interruptWith(d, state.id), {
@@ -26641,7 +26647,7 @@ const emptyReplayWindow = {
26641
26647
  takeAll: () => []
26642
26648
  };
26643
26649
  //#endregion
26644
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Queue.js
26650
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Queue.js
26645
26651
  /**
26646
26652
  * @since 3.8.0
26647
26653
  */
@@ -27460,7 +27466,7 @@ const finalize$1 = (self, exit) => {
27460
27466
  openState.awaiters.clear();
27461
27467
  };
27462
27468
  //#endregion
27463
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Semaphore.js
27469
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Semaphore.js
27464
27470
  /**
27465
27471
  * Unsafely creates a new Semaphore.
27466
27472
  *
@@ -27610,14 +27616,14 @@ var SemaphoreImpl = class {
27610
27616
  */
27611
27617
  const make$72 = (permits) => sync$2(() => new SemaphoreImpl(permits));
27612
27618
  //#endregion
27613
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Take.js
27619
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Take.js
27614
27620
  /**
27615
27621
  * @since 4.0.0
27616
27622
  * @category Conversions
27617
27623
  */
27618
27624
  const toPull$2 = (take) => isExit(take) ? isSuccess$3(take) ? done(take.value) : take : succeed$3(take);
27619
27625
  //#endregion
27620
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Channel.js
27626
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Channel.js
27621
27627
  /**
27622
27628
  * The `Channel` module provides a powerful abstraction for bi-directional communication
27623
27629
  * and streaming operations. A `Channel` is a nexus of I/O operations that supports both
@@ -29402,7 +29408,7 @@ const toPubSubTake$1 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(functi
29402
29408
  return pubsub;
29403
29409
  }));
29404
29410
  //#endregion
29405
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/stream.js
29411
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/stream.js
29406
29412
  const TypeId$57 = "~effect/Stream";
29407
29413
  const streamVariance = {
29408
29414
  _R: identity,
@@ -29422,7 +29428,7 @@ const fromChannel$2 = (channel) => {
29422
29428
  return self;
29423
29429
  };
29424
29430
  //#endregion
29425
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Sink.js
29431
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Sink.js
29426
29432
  const TypeId$56 = "~effect/Sink";
29427
29433
  const endVoid = /* @__PURE__ */ succeed$3([void 0]);
29428
29434
  const sinkVariance = {
@@ -29599,7 +29605,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap$4(
29599
29605
  */
29600
29606
  const unwrap$1 = (effect) => fromChannel$1(unwrap$2(map$9(effect, toChannel$1)));
29601
29607
  //#endregion
29602
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/MutableHashMap.js
29608
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/MutableHashMap.js
29603
29609
  const TypeId$55 = "~effect/collections/MutableHashMap";
29604
29610
  const MutableHashMapProto = {
29605
29611
  [TypeId$55]: TypeId$55,
@@ -29975,7 +29981,7 @@ const forEach$2 = /* @__PURE__ */ dual(2, (self, f) => {
29975
29981
  self.backing.forEach(f);
29976
29982
  });
29977
29983
  //#endregion
29978
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/RcMap.js
29984
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/RcMap.js
29979
29985
  /**
29980
29986
  * @since 3.5.0
29981
29987
  */
@@ -30173,7 +30179,7 @@ const invalidate$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function
30173
30179
  yield* close(entry.scope, void_$3);
30174
30180
  }, uninterruptible));
30175
30181
  //#endregion
30176
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/rcRef.js
30182
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/rcRef.js
30177
30183
  const TypeId$53 = "~effect/RcRef";
30178
30184
  const stateEmpty = { _tag: "Empty" };
30179
30185
  const stateClosed = { _tag: "Closed" };
@@ -30261,7 +30267,7 @@ const get$11 = /* @__PURE__ */ fnUntraced(function* (self_) {
30261
30267
  return state.value;
30262
30268
  });
30263
30269
  //#endregion
30264
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/RcRef.js
30270
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/RcRef.js
30265
30271
  /**
30266
30272
  * Create an `RcRef` from an acquire `Effect`.
30267
30273
  *
@@ -30330,7 +30336,7 @@ const make$68 = make$69;
30330
30336
  */
30331
30337
  const get$10 = get$11;
30332
30338
  //#endregion
30333
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Stream.js
30339
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Stream.js
30334
30340
  /**
30335
30341
  * @since 2.0.0
30336
30342
  */
@@ -32416,7 +32422,7 @@ const runIntoPubSub = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, p
32416
32422
  */
32417
32423
  const toPubSubTake = /* @__PURE__ */ dual(2, (self, options) => toPubSubTake$1(self.channel, options));
32418
32424
  //#endregion
32419
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/FileSystem.js
32425
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/FileSystem.js
32420
32426
  /**
32421
32427
  * This module provides a comprehensive file system abstraction that supports both synchronous
32422
32428
  * and asynchronous file operations through Effect. It includes utilities for file I/O, directory
@@ -32640,7 +32646,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
32640
32646
  */
32641
32647
  var WatchBackend = class extends Service$1()("effect/platform/FileSystem/WatchBackend") {};
32642
32648
  //#endregion
32643
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Path.js
32649
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Path.js
32644
32650
  /**
32645
32651
  * @since 4.0.0
32646
32652
  */
@@ -33064,7 +33070,7 @@ const posixImpl = /* @__PURE__ */ Path$1.of({
33064
33070
  toNamespacedPath: identity
33065
33071
  });
33066
33072
  //#endregion
33067
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/ConfigProvider.js
33073
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ConfigProvider.js
33068
33074
  /**
33069
33075
  * Creates a `Value` node representing a terminal string leaf.
33070
33076
  *
@@ -33370,7 +33376,7 @@ function trieNodeAt(root, path) {
33370
33376
  */
33371
33377
  const isLessThan$1 = /* @__PURE__ */ isLessThan$4(LogLevelOrder);
33372
33378
  //#endregion
33373
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/hashMap.js
33379
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/hashMap.js
33374
33380
  /**
33375
33381
  * @since 2.0.0
33376
33382
  */
@@ -33954,7 +33960,7 @@ const set$6 = set$7;
33954
33960
  */
33955
33961
  const remove$3 = remove$4;
33956
33962
  //#endregion
33957
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Struct.js
33963
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Struct.js
33958
33964
  /**
33959
33965
  * Creates a new struct containing only the specified keys.
33960
33966
  *
@@ -34092,7 +34098,7 @@ function buildStruct(source, f) {
34092
34098
  return out;
34093
34099
  }
34094
34100
  //#endregion
34095
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/UndefinedOr.js
34101
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/UndefinedOr.js
34096
34102
  /**
34097
34103
  * @since 4.0.0
34098
34104
  */
@@ -34102,11 +34108,11 @@ const map$4 = /* @__PURE__ */ dual(2, (self, f) => self === void 0 ? void 0 : f(
34102
34108
  */
34103
34109
  const match$1 = /* @__PURE__ */ dual(2, (self, { onDefined, onUndefined }) => self === void 0 ? onUndefined() : onDefined(self));
34104
34110
  //#endregion
34105
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/SchemaParser.js
34111
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SchemaParser.js
34106
34112
  /**
34107
34113
  * @since 4.0.0
34108
34114
  */
34109
- const recurDefaults = /* @__PURE__ */ memoize((ast) => {
34115
+ const recurDefaults = /* @__PURE__ */ memoize$1((ast) => {
34110
34116
  switch (ast._tag) {
34111
34117
  case "Declaration": {
34112
34118
  const getLink = ast.annotations?.[ClassTypeId];
@@ -34255,7 +34261,7 @@ function asOption(parser) {
34255
34261
  function asSync(parser) {
34256
34262
  return (input, options) => runSync(mapErrorEager(parser(input, options), (issue) => new Error(issue.toString(), { cause: issue })));
34257
34263
  }
34258
- const recur$1 = /* @__PURE__ */ memoize((ast) => {
34264
+ const recur$1 = /* @__PURE__ */ memoize$1((ast) => {
34259
34265
  let parser;
34260
34266
  if (!ast.context && !ast.encoding && !ast.checks) return (ou, options) => {
34261
34267
  parser ??= ast.getParser(recur$1);
@@ -34304,7 +34310,7 @@ const recur$1 = /* @__PURE__ */ memoize((ast) => {
34304
34310
  };
34305
34311
  });
34306
34312
  //#endregion
34307
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/JsonPointer.js
34313
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/JsonPointer.js
34308
34314
  /**
34309
34315
  * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901.
34310
34316
  *
@@ -34397,7 +34403,7 @@ function escapeToken(token) {
34397
34403
  return token.replace(/~/g, "~0").replace(/\//g, "~1");
34398
34404
  }
34399
34405
  //#endregion
34400
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/schema/schema.js
34406
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schema/schema.js
34401
34407
  /** @internal */
34402
34408
  const TypeId$49 = "~effect/Schema/Schema";
34403
34409
  const SchemaProto = {
@@ -34426,7 +34432,7 @@ function make$63(ast, options) {
34426
34432
  return self;
34427
34433
  }
34428
34434
  //#endregion
34429
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/schema/to-codec.js
34435
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schema/to-codec.js
34430
34436
  /** @internal */
34431
34437
  const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
34432
34438
  const out = toCodecJsonBase(ast);
@@ -34494,7 +34500,7 @@ function makeReorder(getPriority) {
34494
34500
  };
34495
34501
  }
34496
34502
  //#endregion
34497
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/internal/schema/representation.js
34503
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/internal/schema/representation.js
34498
34504
  /** @internal */
34499
34505
  function fromAST(ast) {
34500
34506
  const { references, representations: schemas } = fromASTs([ast]);
@@ -35050,7 +35056,7 @@ function getPartPattern(part) {
35050
35056
  }
35051
35057
  }
35052
35058
  //#endregion
35053
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Schema.js
35059
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Schema.js
35054
35060
  /**
35055
35061
  * Define data shapes, validate unknown input, and transform values between formats.
35056
35062
  *
@@ -37735,7 +37741,7 @@ const Json = /* @__PURE__ */ make$62(Json$1);
37735
37741
  */
37736
37742
  const MutableJson = /* @__PURE__ */ make$62(MutableJson$1);
37737
37743
  //#endregion
37738
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Config.js
37744
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Config.js
37739
37745
  const TypeId$47 = "~effect/Config";
37740
37746
  /**
37741
37747
  * The error type produced when config loading or validation fails.
@@ -38222,7 +38228,7 @@ function redacted(name) {
38222
38228
  return schema$2(Redacted(String$1), name);
38223
38229
  }
38224
38230
  //#endregion
38225
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Runtime.js
38231
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Runtime.js
38226
38232
  /**
38227
38233
  * This module provides utilities for running Effect programs and managing their execution lifecycle.
38228
38234
  *
@@ -38428,7 +38434,7 @@ const getErrorReported = (u) => {
38428
38434
  return true;
38429
38435
  };
38430
38436
  //#endregion
38431
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/CliError.js
38437
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/CliError.js
38432
38438
  /**
38433
38439
  * @since 4.0.0
38434
38440
  */
@@ -49518,7 +49524,7 @@ const getTypeName = (primitive) => {
49518
49524
  /** @internal */
49519
49525
  const getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
49520
49526
  //#endregion
49521
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Terminal.js
49527
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Terminal.js
49522
49528
  const TypeId$45 = "~effect/platform/Terminal";
49523
49529
  const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
49524
49530
  /**
@@ -49555,7 +49561,7 @@ const make$60 = (impl) => Terminal.of({
49555
49561
  [TypeId$45]: TypeId$45
49556
49562
  });
49557
49563
  //#endregion
49558
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/ansi.js
49564
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/ansi.js
49559
49565
  const ESC = "\x1B[";
49560
49566
  const SEP = ";";
49561
49567
  /** @internal */
@@ -49631,7 +49637,7 @@ const eraseLines = (rows) => {
49631
49637
  return command;
49632
49638
  };
49633
49639
  //#endregion
49634
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/Prompt.js
49640
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Prompt.js
49635
49641
  /**
49636
49642
  * @since 4.0.0
49637
49643
  */
@@ -49726,6 +49732,8 @@ const file$3 = (options = {}) => {
49726
49732
  return {
49727
49733
  cursor: 0,
49728
49734
  files,
49735
+ allFiles: files,
49736
+ query: "",
49729
49737
  path: none$4(),
49730
49738
  confirm
49731
49739
  };
@@ -49944,6 +49952,9 @@ const clearOutputWithError = (outputText, columns, errorText) => {
49944
49952
  const renderBeep = "\x07";
49945
49953
  const NEWLINE_REGEXP = /\r?\n/;
49946
49954
  const CONFIRM_MESSAGE = "The selected directory contains files. Would you like to traverse the selected directory?";
49955
+ const FILE_FILTER_LABEL = "filter";
49956
+ const FILE_FILTER_PLACEHOLDER = "type to filter";
49957
+ const FILE_EMPTY_MESSAGE = "No matches";
49947
49958
  const Confirm = /* @__PURE__ */ taggedEnum();
49948
49959
  const showConfirmation = /* @__PURE__ */ Confirm.$is("Show");
49949
49960
  const resolveCurrentPath = (path, options) => {
@@ -49963,6 +49974,32 @@ const getFileList = /* @__PURE__ */ fnUntraced(function* (directory, options) {
49963
49974
  return zipWith(isEffect(result) ? result : succeed$3(result), options.type === "directory" ? map$9(orDie$2(fs.stat(path.join(directory, file))), (info) => info.type === "Directory") : succeed$3(true), (a, b) => a && b);
49964
49975
  }, { concurrency: files.length });
49965
49976
  });
49977
+ const filterFiles = (files, query) => {
49978
+ if (query.length === 0) return files;
49979
+ const normalizedQuery = query.toLowerCase();
49980
+ const filtered = [];
49981
+ for (let index = 0; index < files.length; index++) if (files[index].toLowerCase().includes(normalizedQuery)) filtered.push(files[index]);
49982
+ return filtered;
49983
+ };
49984
+ const updateFileState = (state, query, allFiles = state.allFiles) => {
49985
+ const files = filterFiles(allFiles, query);
49986
+ if (files.length === 0) return {
49987
+ ...state,
49988
+ query,
49989
+ allFiles,
49990
+ files,
49991
+ cursor: 0
49992
+ };
49993
+ const selected = state.files[state.cursor];
49994
+ const cursor = selected === void 0 ? 0 : files.indexOf(selected);
49995
+ return {
49996
+ ...state,
49997
+ query,
49998
+ allFiles,
49999
+ files,
50000
+ cursor: cursor === -1 ? 0 : cursor
50001
+ };
50002
+ };
49966
50003
  const handleFileClear = (options) => {
49967
50004
  return fnUntraced(function* (state, _) {
49968
50005
  const columns = yield* (yield* Terminal).columns;
@@ -49970,10 +50007,10 @@ const handleFileClear = (options) => {
49970
50007
  const figures = yield* platformFigures;
49971
50008
  const currentPath = yield* resolveCurrentPath(state.path, options);
49972
50009
  const selectedPath = state.files[state.cursor];
49973
- const resolvedPath = path.resolve(currentPath, selectedPath);
50010
+ const resolvedPath = selectedPath === void 0 ? currentPath : path.resolve(currentPath, selectedPath);
49974
50011
  const resolvedPathText = `${figures.pointerSmall} ${resolvedPath}`;
49975
50012
  const isConfirming = showConfirmation(state.confirm);
49976
- const promptText = isConfirming ? renderPrompt("(Y/n)", CONFIRM_MESSAGE, "?", figures.pointerSmall, { plain: true }) : renderPrompt("", options.message, figures.tick, figures.ellipsis, { plain: true });
50013
+ const promptText = isConfirming ? renderPrompt("(Y/n)", CONFIRM_MESSAGE, "?", figures.pointerSmall, { plain: true }) : renderPrompt(renderFileFilter(state, { plain: true }), options.message, figures.tick, figures.ellipsis, { plain: true });
49977
50014
  const filesText = isConfirming ? "" : renderFiles(state, state.files, figures, options, { plain: true });
49978
50015
  return eraseText(isConfirming ? `${promptText}\n${resolvedPathText}` : `${promptText}\n${resolvedPathText}\n${filesText}`, columns) + (eraseLine + cursorLeft);
49979
50016
  });
@@ -49999,8 +50036,12 @@ const renderFileName = (file, isSelected, renderOptions) => {
49999
50036
  if (renderOptions?.plain === true) return file;
50000
50037
  return isSelected ? annotate(file, combine(underlined, cyanBright)) : file;
50001
50038
  };
50039
+ const renderFileFilter = (state, renderOptions) => {
50040
+ return `[${FILE_FILTER_LABEL}: ${state.query.length === 0 ? renderOptions?.plain === true ? FILE_FILTER_PLACEHOLDER : annotate(FILE_FILTER_PLACEHOLDER, blackBright) : renderOptions?.plain === true ? state.query : annotate(state.query, combine(underlined, cyanBright))}]`;
50041
+ };
50002
50042
  const renderFiles = (state, files, figures, options, renderOptions) => {
50003
50043
  const length = files.length;
50044
+ if (length === 0) return renderOptions?.plain === true ? FILE_EMPTY_MESSAGE : annotate(FILE_EMPTY_MESSAGE, blackBright);
50004
50045
  const toDisplay = entriesToDisplay(state.cursor, length, options.maxPerPage);
50005
50046
  const documents = [];
50006
50047
  for (let index = toDisplay.startIndex; index < toDisplay.endIndex; index++) {
@@ -50016,7 +50057,7 @@ const renderFileNextFrame = /* @__PURE__ */ fnUntraced(function* (state, options
50016
50057
  const figures = yield* platformFigures;
50017
50058
  const currentPath = yield* resolveCurrentPath(state.path, options);
50018
50059
  const selectedPath = state.files[state.cursor];
50019
- const resolvedPath = path.resolve(currentPath, selectedPath);
50060
+ const resolvedPath = selectedPath === void 0 ? currentPath : path.resolve(currentPath, selectedPath);
50020
50061
  const resolvedPathMsg = annotate(figures.pointerSmall + " " + resolvedPath, blackBright);
50021
50062
  if (showConfirmation(state.confirm)) {
50022
50063
  const leadingSymbol = annotate("?", cyanBright);
@@ -50025,26 +50066,27 @@ const renderFileNextFrame = /* @__PURE__ */ fnUntraced(function* (state, options
50025
50066
  }
50026
50067
  const leadingSymbol = annotate(figures.tick, green$1);
50027
50068
  const trailingSymbol = annotate(figures.ellipsis, blackBright);
50028
- const promptMsg = renderPrompt("", options.message, leadingSymbol, trailingSymbol);
50069
+ const promptMsg = renderPrompt(renderFileFilter(state), options.message, leadingSymbol, trailingSymbol);
50029
50070
  const files = renderFiles(state, state.files, figures, options);
50030
50071
  return cursorHide + promptMsg + "\n" + resolvedPathMsg + "\n" + files;
50031
50072
  });
50032
- const renderFileSubmission = /* @__PURE__ */ fnUntraced(function* (value, options) {
50073
+ const renderFileSubmission = /* @__PURE__ */ fnUntraced(function* (state, value, options) {
50033
50074
  const figures = yield* platformFigures;
50034
50075
  const leadingSymbol = annotate(figures.tick, green$1);
50035
50076
  const trailingSymbol = annotate(figures.ellipsis, blackBright);
50036
- return renderPrompt("", options.message, leadingSymbol, trailingSymbol) + " " + annotate(value, white) + "\n";
50077
+ return renderPrompt(renderFileFilter(state), options.message, leadingSymbol, trailingSymbol) + " " + annotate(value, white) + "\n";
50037
50078
  });
50038
50079
  const handleFileRender = (options) => {
50039
- return (_, action) => {
50080
+ return (state, action) => {
50040
50081
  return Action.$match(action, {
50041
50082
  Beep: () => succeed$3(renderBeep),
50042
50083
  NextFrame: ({ state }) => renderFileNextFrame(state, options),
50043
- Submit: ({ value }) => renderFileSubmission(value, options)
50084
+ Submit: ({ value }) => renderFileSubmission(state, value, options)
50044
50085
  });
50045
50086
  };
50046
50087
  };
50047
50088
  const processFileCursorUp = (state) => {
50089
+ if (state.files.length === 0) return succeed$3(Action.Beep());
50048
50090
  const cursor = state.cursor - 1;
50049
50091
  return succeed$3(Action.NextFrame({ state: {
50050
50092
  ...state,
@@ -50052,12 +50094,25 @@ const processFileCursorUp = (state) => {
50052
50094
  } }));
50053
50095
  };
50054
50096
  const processFileCursorDown = (state) => {
50097
+ if (state.files.length === 0) return succeed$3(Action.Beep());
50055
50098
  return succeed$3(Action.NextFrame({ state: {
50056
50099
  ...state,
50057
50100
  cursor: (state.cursor + 1) % state.files.length
50058
50101
  } }));
50059
50102
  };
50103
+ const processFileBackspace = (state) => {
50104
+ if (state.query.length === 0) return succeed$3(Action.Beep());
50105
+ const query = state.query.slice(0, state.query.length - 1);
50106
+ return succeed$3(Action.NextFrame({ state: updateFileState(state, query) }));
50107
+ };
50108
+ const processFileClear = (state) => succeed$3(Action.NextFrame({ state: updateFileState(state, "") }));
50109
+ const processFileInput = (input, state) => {
50110
+ if (input.length === 0) return succeed$3(Action.Beep());
50111
+ const query = state.query + input;
50112
+ return succeed$3(Action.NextFrame({ state: updateFileState(state, query) }));
50113
+ };
50060
50114
  const processSelection = /* @__PURE__ */ fnUntraced(function* (state, options) {
50115
+ if (state.files.length === 0) return Action.Beep();
50061
50116
  const fs = yield* FileSystem;
50062
50117
  const path = yield* Path$1;
50063
50118
  const currentPath = yield* resolveCurrentPath(state.path, options);
@@ -50073,6 +50128,8 @@ const processSelection = /* @__PURE__ */ fnUntraced(function* (state, options) {
50073
50128
  return Action.NextFrame({ state: {
50074
50129
  cursor: 0,
50075
50130
  files,
50131
+ allFiles: files,
50132
+ query: "",
50076
50133
  path: some$2(resolvedPath),
50077
50134
  confirm: Confirm.Hide()
50078
50135
  } });
@@ -50081,12 +50138,19 @@ const processSelection = /* @__PURE__ */ fnUntraced(function* (state, options) {
50081
50138
  });
50082
50139
  const handleFileProcess = (options) => {
50083
50140
  return fnUntraced(function* (input, state) {
50141
+ if (input.key.ctrl && input.key.name === "u") {
50142
+ if (showConfirmation(state.confirm)) return Action.Beep();
50143
+ return yield* processFileClear(state);
50144
+ }
50084
50145
  switch (input.key.name) {
50085
50146
  case "k":
50086
50147
  case "up": return yield* processFileCursorUp(state);
50087
50148
  case "j":
50088
50149
  case "down":
50089
50150
  case "tab": return yield* processFileCursorDown(state);
50151
+ case "backspace":
50152
+ if (showConfirmation(state.confirm)) return Action.Beep();
50153
+ return yield* processFileBackspace(state);
50090
50154
  case "enter":
50091
50155
  case "return": return yield* processSelection(state, options);
50092
50156
  case "y":
@@ -50100,11 +50164,13 @@ const handleFileProcess = (options) => {
50100
50164
  return Action.NextFrame({ state: {
50101
50165
  cursor: 0,
50102
50166
  files,
50167
+ allFiles: files,
50168
+ query: "",
50103
50169
  path: some$2(resolvedPath),
50104
50170
  confirm: Confirm.Hide()
50105
50171
  } });
50106
50172
  }
50107
- return Action.Beep();
50173
+ return yield* processFileInput(getOrElse$2(input.input, () => ""), state);
50108
50174
  case "n":
50109
50175
  case "f":
50110
50176
  if (showConfirmation(state.confirm)) {
@@ -50114,8 +50180,10 @@ const handleFileProcess = (options) => {
50114
50180
  const resolvedPath = path.resolve(currentPath, selectedPath);
50115
50181
  return Action.Submit({ value: resolvedPath });
50116
50182
  }
50117
- return Action.Beep();
50118
- default: return Action.Beep();
50183
+ return yield* processFileInput(getOrElse$2(input.input, () => ""), state);
50184
+ default:
50185
+ if (showConfirmation(state.confirm)) return Action.Beep();
50186
+ return yield* processFileInput(getOrElse$2(input.input, () => ""), state);
50119
50187
  }
50120
50188
  });
50121
50189
  };
@@ -50679,6 +50747,16 @@ const processTextCursorRight = (state) => {
50679
50747
  error: none$4()
50680
50748
  } }));
50681
50749
  };
50750
+ const processTextCursorStart = (state) => succeed$3(Action.NextFrame({ state: {
50751
+ ...state,
50752
+ cursor: 0,
50753
+ error: none$4()
50754
+ } }));
50755
+ const processTextCursorEnd = (state) => succeed$3(Action.NextFrame({ state: {
50756
+ ...state,
50757
+ cursor: state.value.length,
50758
+ error: none$4()
50759
+ } }));
50682
50760
  const processTab = (state, options) => {
50683
50761
  if (state.value === options.default) return succeed$3(Action.Beep());
50684
50762
  const value = state.value.length === 0 ? options.default : state.value;
@@ -50710,11 +50788,17 @@ const handleTextRender = (options) => {
50710
50788
  };
50711
50789
  const handleTextProcess = (options) => {
50712
50790
  return (input, state) => {
50713
- if (input.key.ctrl && input.key.name === "u") return processTextClear(state);
50791
+ if (input.key.ctrl) switch (input.key.name) {
50792
+ case "u": return processTextClear(state);
50793
+ case "a": return processTextCursorStart(state);
50794
+ case "e": return processTextCursorEnd(state);
50795
+ }
50714
50796
  switch (input.key.name) {
50715
50797
  case "backspace": return processTextBackspace(state);
50716
50798
  case "left": return processTextCursorLeft(state);
50717
50799
  case "right": return processTextCursorRight(state);
50800
+ case "home": return processTextCursorStart(state);
50801
+ case "end": return processTextCursorEnd(state);
50718
50802
  case "enter":
50719
50803
  case "return": {
50720
50804
  const value = state.value;
@@ -50824,7 +50908,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
50824
50908
  };
50825
50909
  };
50826
50910
  //#endregion
50827
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/Param.js
50911
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Param.js
50828
50912
  /**
50829
50913
  * @internal
50830
50914
  *
@@ -51514,7 +51598,7 @@ const getParamMetadata = (param) => {
51514
51598
  });
51515
51599
  };
51516
51600
  //#endregion
51517
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/Argument.js
51601
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Argument.js
51518
51602
  /**
51519
51603
  * Creates a positional path argument.
51520
51604
  *
@@ -51546,7 +51630,7 @@ const path = (name, options) => path$1(argumentKind, name, options);
51546
51630
  */
51547
51631
  const withDescription$2 = /* @__PURE__ */ dual(2, (self, description) => withDescription$3(self, description));
51548
51632
  //#endregion
51549
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/CliOutput.js
51633
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/CliOutput.js
51550
51634
  /**
51551
51635
  * Service reference for the CLI output formatter. Provides a default implementation
51552
51636
  * that can be overridden for custom formatting or testing.
@@ -51789,7 +51873,7 @@ const formatHelpDocImpl = (doc, colors) => {
51789
51873
  return sections.join("\n");
51790
51874
  };
51791
51875
  //#endregion
51792
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Console.js
51876
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Console.js
51793
51877
  /**
51794
51878
  * A reference to the current console service in the Effect system.
51795
51879
  *
@@ -51905,7 +51989,7 @@ const warn = (...args) => consoleWith((console) => sync$2(() => {
51905
51989
  console.warn(...args);
51906
51990
  }));
51907
51991
  //#endregion
51908
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Stdio.js
51992
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Stdio.js
51909
51993
  /**
51910
51994
  * @since 4.0.0
51911
51995
  * @category Type IDs
@@ -51925,7 +52009,7 @@ const make$59 = (options) => ({
51925
52009
  ...options
51926
52010
  });
51927
52011
  //#endregion
51928
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
52012
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
51929
52013
  const escapeForBash = (s) => s.replace(/'/g, "'\\''");
51930
52014
  const sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
51931
52015
  const flagNamesForWordlist = (flag) => {
@@ -52076,7 +52160,7 @@ const generate$3 = (executableName, descriptor) => {
52076
52160
  return lines.join("\n");
52077
52161
  };
52078
52162
  //#endregion
52079
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
52163
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
52080
52164
  const escapeFishString = (s) => s.replace(/'/g, "\\'");
52081
52165
  /**
52082
52166
  * Build a Fish condition that checks the current subcommand context.
@@ -52214,7 +52298,7 @@ const generate$2 = (executableName, descriptor) => {
52214
52298
  return lines.join("\n");
52215
52299
  };
52216
52300
  //#endregion
52217
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
52301
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
52218
52302
  const escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
52219
52303
  const sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
52220
52304
  /**
@@ -52351,7 +52435,7 @@ const generate$1 = (executableName, descriptor) => {
52351
52435
  return lines.join("\n");
52352
52436
  };
52353
52437
  //#endregion
52354
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/Completions.js
52438
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Completions.js
52355
52439
  /**
52356
52440
  * @since 4.0.0
52357
52441
  */
@@ -52369,7 +52453,7 @@ const generate = (executableName, shell, descriptor) => {
52369
52453
  }
52370
52454
  };
52371
52455
  //#endregion
52372
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/Flag.js
52456
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Flag.js
52373
52457
  /**
52374
52458
  * Creates a boolean flag that can be enabled or disabled.
52375
52459
  *
@@ -52602,7 +52686,7 @@ const withFallbackConfig = /* @__PURE__ */ dual(2, (self, config) => withFallbac
52602
52686
  */
52603
52687
  const map$1 = /* @__PURE__ */ dual(2, (self, f) => map$2(self, f));
52604
52688
  //#endregion
52605
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/config.js
52689
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/config.js
52606
52690
  const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
52607
52691
  /**
52608
52692
  * Parses a Command.Config into a ConfigInternal.
@@ -52708,7 +52792,7 @@ const reconstructTree = (tree, results) => {
52708
52792
  }
52709
52793
  };
52710
52794
  //#endregion
52711
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/command.js
52795
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/command.js
52712
52796
  /**
52713
52797
  * Command Implementation
52714
52798
  * ======================
@@ -52880,7 +52964,7 @@ const checkForDuplicateFlags = (parent, subcommands, options) => {
52880
52964
  }
52881
52965
  };
52882
52966
  //#endregion
52883
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
52967
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
52884
52968
  /**
52885
52969
  * CommandDescriptor — pure-data representation of a command tree for
52886
52970
  * shell completion generation.
@@ -52968,7 +53052,7 @@ const fromCommand = (cmd) => {
52968
53052
  };
52969
53053
  };
52970
53054
  //#endregion
52971
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/help.js
53055
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/help.js
52972
53056
  /**
52973
53057
  * Help Documentation
52974
53058
  * ================
@@ -53071,7 +53155,7 @@ const getHelpForCommandPath = (command, commandPath, builtIns) => gen(function*
53071
53155
  };
53072
53156
  });
53073
53157
  //#endregion
53074
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/GlobalFlag.js
53158
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/GlobalFlag.js
53075
53159
  /**
53076
53160
  * @since 4.0.0
53077
53161
  */
@@ -53181,7 +53265,7 @@ const BuiltIns = [
53181
53265
  LogLevel
53182
53266
  ];
53183
53267
  //#endregion
53184
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/lexer.js
53268
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/lexer.js
53185
53269
  /** @internal */
53186
53270
  function lex(argv) {
53187
53271
  const endIndex = argv.indexOf("--");
@@ -53232,7 +53316,7 @@ const lexTokens = (args) => {
53232
53316
  return tokens;
53233
53317
  };
53234
53318
  //#endregion
53235
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
53319
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
53236
53320
  /**
53237
53321
  * Simple Levenshtein distance implementation (small N, no perf worries)
53238
53322
  */
@@ -53260,7 +53344,7 @@ const suggest = (input, candidates) => {
53260
53344
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
53261
53345
  };
53262
53346
  //#endregion
53263
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/internal/parser.js
53347
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/internal/parser.js
53264
53348
  /**
53265
53349
  * Parsing Pipeline for CLI Commands
53266
53350
  * ==================================
@@ -53582,7 +53666,7 @@ const scanCommandLevel = (tokens, context) => {
53582
53666
  return toLeafResult(state);
53583
53667
  };
53584
53668
  //#endregion
53585
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/cli/Command.js
53669
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/cli/Command.js
53586
53670
  /**
53587
53671
  * @since 4.0.0
53588
53672
  * @category Guards
@@ -54080,7 +54164,7 @@ const runWith = (command, config) => {
54080
54164
  }, 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));
54081
54165
  };
54082
54166
  //#endregion
54083
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Cache.js
54167
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Cache.js
54084
54168
  /**
54085
54169
  * @since 4.0.0
54086
54170
  */
@@ -54497,7 +54581,7 @@ const invalidate$1 = /* @__PURE__ */ dual(2, (self, key) => sync$2(() => {
54497
54581
  remove$5(self.map, key);
54498
54582
  }));
54499
54583
  //#endregion
54500
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/ChannelSchema.js
54584
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ChannelSchema.js
54501
54585
  /**
54502
54586
  * @since 4.0.0
54503
54587
  * @category constructors
@@ -54526,7 +54610,7 @@ const decode$4 = (schema) => () => {
54526
54610
  */
54527
54611
  const ignore = "~effect/ErrorReporter/ignore";
54528
54612
  //#endregion
54529
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/FiberHandle.js
54613
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/FiberHandle.js
54530
54614
  /**
54531
54615
  * @since 2.0.0
54532
54616
  */
@@ -54721,7 +54805,7 @@ const runImpl$2 = (self, effect, options) => withFiber((parent) => {
54721
54805
  return succeed$3(fiber);
54722
54806
  });
54723
54807
  //#endregion
54724
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/FiberMap.js
54808
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/FiberMap.js
54725
54809
  /**
54726
54810
  * @since 2.0.0
54727
54811
  */
@@ -54951,7 +55035,7 @@ const runImpl$1 = (self, key, effect, options) => withFiber((parent) => {
54951
55035
  return succeed$3(fiber);
54952
55036
  });
54953
55037
  //#endregion
54954
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/FiberSet.js
55038
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/FiberSet.js
54955
55039
  /**
54956
55040
  * @since 2.0.0
54957
55041
  */
@@ -55203,7 +55287,7 @@ const awaitEmpty = (self) => whileLoop({
55203
55287
  step: constVoid
55204
55288
  });
55205
55289
  //#endregion
55206
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/PrimaryKey.js
55290
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/PrimaryKey.js
55207
55291
  /**
55208
55292
  * The unique identifier used to identify objects that implement the `PrimaryKey` interface.
55209
55293
  *
@@ -55240,7 +55324,7 @@ const symbol$2 = "~effect/interfaces/PrimaryKey";
55240
55324
  */
55241
55325
  const value$1 = (self) => self[symbol$2]();
55242
55326
  //#endregion
55243
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/LayerMap.js
55327
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/LayerMap.js
55244
55328
  const TypeId$36 = "~effect/LayerMap";
55245
55329
  /**
55246
55330
  * @since 3.14.0
@@ -55406,7 +55490,7 @@ const Service = () => (id, options) => {
55406
55490
  return TagClass;
55407
55491
  };
55408
55492
  //#endregion
55409
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Logger.js
55493
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Logger.js
55410
55494
  /**
55411
55495
  * @since 2.0.0
55412
55496
  *
@@ -55533,7 +55617,7 @@ const Service = () => (id, options) => {
55533
55617
  */
55534
55618
  const CurrentLoggers = CurrentLoggers$1;
55535
55619
  //#endregion
55536
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Random.js
55620
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Random.js
55537
55621
  /**
55538
55622
  * The Random module provides a service for generating random numbers in Effect
55539
55623
  * programs. It offers a testable and composable way to work with randomness,
@@ -55626,7 +55710,7 @@ const shuffle = (elements) => randomWith((r) => {
55626
55710
  return buffer;
55627
55711
  });
55628
55712
  //#endregion
55629
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Ref.js
55713
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Ref.js
55630
55714
  const RefProto = {
55631
55715
  ["~effect/Ref"]: { _A: identity },
55632
55716
  ...PipeInspectableProto,
@@ -55667,7 +55751,7 @@ const makeUnsafe$3 = (value) => {
55667
55751
  return self;
55668
55752
  };
55669
55753
  //#endregion
55670
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/reactivity/Reactivity.js
55754
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/reactivity/Reactivity.js
55671
55755
  /**
55672
55756
  * @since 4.0.0
55673
55757
  */
@@ -55802,7 +55886,7 @@ const keysToHashes = (keys, f) => {
55802
55886
  }
55803
55887
  };
55804
55888
  //#endregion
55805
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/sql/Statement.js
55889
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/Statement.js
55806
55890
  /**
55807
55891
  * @since 4.0.0
55808
55892
  */
@@ -56361,7 +56445,7 @@ function in_() {
56361
56445
  }
56362
56446
  const neverFragment = /* @__PURE__ */ fragment([/* @__PURE__ */ literal$1("1=0")]);
56363
56447
  //#endregion
56364
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/sql/SqlClient.js
56448
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlClient.js
56365
56449
  /**
56366
56450
  * @since 4.0.0
56367
56451
  */
@@ -56455,7 +56539,7 @@ var TransactionConnection = class extends Service$1()("effect/sql/SqlClient/Tran
56455
56539
  */
56456
56540
  const SafeIntegers = /* @__PURE__ */ Reference("effect/sql/SqlClient/SafeIntegers", { defaultValue: () => false });
56457
56541
  //#endregion
56458
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
56542
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
56459
56543
  /**
56460
56544
  * @since 4.0.0
56461
56545
  */
@@ -56597,7 +56681,7 @@ const toSchemaStore = (self, schema) => {
56597
56681
  };
56598
56682
  };
56599
56683
  //#endregion
56600
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/persistence/Persistable.js
56684
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/persistence/Persistable.js
56601
56685
  /**
56602
56686
  * @since 4.0.0
56603
56687
  * @category Symbols
@@ -56651,7 +56735,7 @@ const deserializeExit = (self, encoded) => {
56651
56735
  return decodeUnknownEffect(toCodecJson(exitSchema$1(self)))(encoded);
56652
56736
  };
56653
56737
  //#endregion
56654
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/persistence/Persistence.js
56738
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/persistence/Persistence.js
56655
56739
  /**
56656
56740
  * @since 4.0.0
56657
56741
  */
@@ -56827,7 +56911,7 @@ const layerKvs$1 = /* @__PURE__ */ layer$31.pipe(/* @__PURE__ */ provide$3(layer
56827
56911
  */
56828
56912
  const unsafeTtlToExpires = (clock, ttl) => ttl ? clock.currentTimeMillisUnsafe() + toMillis(ttl) : null;
56829
56913
  //#endregion
56830
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/RequestResolver.js
56914
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/RequestResolver.js
56831
56915
  const TypeId$33 = "~effect/RequestResolver";
56832
56916
  const RequestResolverProto = {
56833
56917
  [TypeId$33]: {
@@ -57090,7 +57174,7 @@ const withSpan = /* @__PURE__ */ dual((args) => isRequestResolver(args[0]), (sel
57090
57174
  })
57091
57175
  }));
57092
57176
  //#endregion
57093
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/SynchronizedRef.js
57177
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SynchronizedRef.js
57094
57178
  const TypeId$32 = "~effect/SynchronizedRef";
57095
57179
  const Proto$15 = {
57096
57180
  ...PipeInspectableProto,
@@ -57113,7 +57197,7 @@ const makeUnsafe$1 = (value) => {
57113
57197
  return self;
57114
57198
  };
57115
57199
  //#endregion
57116
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/ScopedRef.js
57200
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/ScopedRef.js
57117
57201
  /**
57118
57202
  * @since 2.0.0
57119
57203
  */
@@ -57178,7 +57262,7 @@ const set$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function* (self
57178
57262
  self.backing.backing.ref.current = [scope, value];
57179
57263
  }, uninterruptible, (effect, self) => self.backing.semaphore.withPermit(effect)));
57180
57264
  //#endregion
57181
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/SubscriptionRef.js
57265
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/SubscriptionRef.js
57182
57266
  /**
57183
57267
  * @since 2.0.0
57184
57268
  */
@@ -57265,7 +57349,7 @@ const setUnsafe = (self, value) => {
57265
57349
  */
57266
57350
  const set$3 = /* @__PURE__ */ dual(2, (self, value) => self.semaphore.withPermit(sync(() => setUnsafe(self, value))));
57267
57351
  //#endregion
57268
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/Unify.js
57352
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/Unify.js
57269
57353
  /**
57270
57354
  * @since 2.0.0
57271
57355
  */
@@ -58685,7 +58769,7 @@ var Mime = class {
58685
58769
  };
58686
58770
  _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
58687
58771
  //#endregion
58688
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/Mime.js
58772
+ //#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
58689
58773
  /**
58690
58774
  * @since 1.0.0
58691
58775
  */
@@ -58695,7 +58779,7 @@ _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /
58695
58779
  */
58696
58780
  var Mime_default = new Mime(types$1, types$2)._freeze();
58697
58781
  //#endregion
58698
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
58782
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
58699
58783
  /**
58700
58784
  * A module providing a generic service interface for spawning child processes.
58701
58785
  *
@@ -58758,7 +58842,7 @@ const make$46 = (spawn) => {
58758
58842
  */
58759
58843
  var ChildProcessSpawner = class extends Service$1()("effect/process/ChildProcessSpawner") {};
58760
58844
  //#endregion
58761
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/process/ChildProcess.js
58845
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/process/ChildProcess.js
58762
58846
  const TypeId$29 = "~effect/unstable/process/ChildProcess";
58763
58847
  const Proto$12 = {
58764
58848
  ...PipeInspectableProto,
@@ -59042,7 +59126,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
59042
59126
  ...nextTokens.slice(1)
59043
59127
  ];
59044
59128
  //#endregion
59045
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-s_40ab1e092236dbc8a6ca0a9a9f62ead5/node_modules/@effect/platform-node-shared/dist/internal/utils.js
59129
+ //#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
59046
59130
  /** @internal */
59047
59131
  const handleErrnoException = (module, method) => (err, [path]) => {
59048
59132
  let reason = "Unknown";
@@ -59079,7 +59163,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
59079
59163
  });
59080
59164
  };
59081
59165
  //#endregion
59082
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-s_40ab1e092236dbc8a6ca0a9a9f62ead5/node_modules/@effect/platform-node-shared/dist/NodeSink.js
59166
+ //#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
59083
59167
  /**
59084
59168
  * @category constructors
59085
59169
  * @since 1.0.0
@@ -59123,7 +59207,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap$4((chunk) => {
59123
59207
  });
59124
59208
  }) : identity);
59125
59209
  //#endregion
59126
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-s_40ab1e092236dbc8a6ca0a9a9f62ead5/node_modules/@effect/platform-node-shared/dist/NodeStream.js
59210
+ //#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
59127
59211
  /**
59128
59212
  * @since 1.0.0
59129
59213
  */
@@ -59289,7 +59373,7 @@ var StreamAdapter = class extends Readable {
59289
59373
  };
59290
59374
  const defaultOnError = (error) => new UnknownError$1(error);
59291
59375
  //#endregion
59292
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-s_40ab1e092236dbc8a6ca0a9a9f62ead5/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
59376
+ //#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
59293
59377
  const toError = (error) => error instanceof globalThis.Error ? error : new globalThis.Error(String(error));
59294
59378
  const toPlatformError = (method, error, command) => {
59295
59379
  const { commands } = flattenCommand(command);
@@ -59623,7 +59707,7 @@ const flattenCommand = (command) => {
59623
59707
  };
59624
59708
  };
59625
59709
  //#endregion
59626
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/Cookies.js
59710
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Cookies.js
59627
59711
  /**
59628
59712
  * @since 4.0.0
59629
59713
  */
@@ -59887,7 +59971,7 @@ const tryDecodeURIComponent = (str) => {
59887
59971
  }
59888
59972
  };
59889
59973
  //#endregion
59890
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/Headers.js
59974
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Headers.js
59891
59975
  /**
59892
59976
  * @since 4.0.0
59893
59977
  */
@@ -60010,7 +60094,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
60010
60094
  "x-api-key"
60011
60095
  ] });
60012
60096
  //#endregion
60013
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpClientError.js
60097
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpClientError.js
60014
60098
  /**
60015
60099
  * @since 4.0.0
60016
60100
  */
@@ -60148,7 +60232,7 @@ var EmptyBodyError = class extends TaggedError("EmptyBodyError") {
60148
60232
  }
60149
60233
  };
60150
60234
  //#endregion
60151
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/UrlParams.js
60235
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/UrlParams.js
60152
60236
  /**
60153
60237
  * @since 4.0.0
60154
60238
  */
@@ -60360,7 +60444,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
60360
60444
  encode: fromInput
60361
60445
  })));
60362
60446
  //#endregion
60363
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpBody.js
60447
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpBody.js
60364
60448
  /**
60365
60449
  * @since 4.0.0
60366
60450
  */
@@ -60499,7 +60583,7 @@ var FormData$1 = class extends Proto$8 {
60499
60583
  */
60500
60584
  const formData = (body) => new FormData$1(body);
60501
60585
  //#endregion
60502
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpClientRequest.js
60586
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpClientRequest.js
60503
60587
  const TypeId$23 = "~effect/http/HttpClientRequest";
60504
60588
  const Proto$7 = {
60505
60589
  [TypeId$23]: TypeId$23,
@@ -60669,7 +60753,7 @@ const bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, url
60669
60753
  */
60670
60754
  const bodyFormData = /* @__PURE__ */ dual(2, (self, body) => setBody(self, formData(body)));
60671
60755
  //#endregion
60672
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
60756
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
60673
60757
  /**
60674
60758
  * @since 4.0.0
60675
60759
  */
@@ -60720,7 +60804,7 @@ const inspect$1 = (self, that) => {
60720
60804
  return obj;
60721
60805
  };
60722
60806
  //#endregion
60723
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpClientResponse.js
60807
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpClientResponse.js
60724
60808
  /**
60725
60809
  * @since 4.0.0
60726
60810
  */
@@ -60861,7 +60945,7 @@ var WebHttpClientResponse = class extends Class$5 {
60861
60945
  }
60862
60946
  };
60863
60947
  //#endregion
60864
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpMethod.js
60948
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpMethod.js
60865
60949
  /**
60866
60950
  * @since 4.0.0
60867
60951
  */
@@ -60876,7 +60960,7 @@ const allShort = [
60876
60960
  ["TRACE", "trace"]
60877
60961
  ];
60878
60962
  //#endregion
60879
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpTraceContext.js
60963
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpTraceContext.js
60880
60964
  /**
60881
60965
  * @since 4.0.0
60882
60966
  */
@@ -60951,7 +61035,7 @@ const w3c = (headers) => {
60951
61035
  }
60952
61036
  };
60953
61037
  //#endregion
60954
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpClient.js
61038
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpClient.js
60955
61039
  const TypeId$20 = "~effect/http/HttpClient";
60956
61040
  /**
60957
61041
  * @since 4.0.0
@@ -61380,7 +61464,7 @@ var RouterImpl = class {
61380
61464
  if (staticPart) {
61381
61465
  staticPart = staticPart.split("::").join(":");
61382
61466
  staticPart = staticPart.split("%").join("%25");
61383
- regexps.push(escapeRegExp(staticPart));
61467
+ regexps.push(escapeRegExp$1(staticPart));
61384
61468
  }
61385
61469
  lastParamStartIndex = j + 1;
61386
61470
  if (isEndOfNode || pattern.charCodeAt(j) === 47 || j === pattern.length) {
@@ -61694,7 +61778,7 @@ function trimRegExpStartAndEnd(regexString) {
61694
61778
  if (regexString.charCodeAt(regexString.length - 2) === 36) regexString = regexString.slice(0, regexString.length - 2) + regexString.slice(regexString.length - 1);
61695
61779
  return regexString;
61696
61780
  }
61697
- function escapeRegExp(string) {
61781
+ function escapeRegExp$1(string) {
61698
61782
  return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
61699
61783
  }
61700
61784
  function decodeComponentChar(highCharCode, lowCharCode) {
@@ -61814,7 +61898,7 @@ const httpMethods = [
61814
61898
  */
61815
61899
  const make$38 = make$39;
61816
61900
  //#endregion
61817
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/Template.js
61901
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Template.js
61818
61902
  /**
61819
61903
  * @since 4.0.0
61820
61904
  */
@@ -61863,7 +61947,7 @@ function isSuccess$1(u) {
61863
61947
  return isExit(u) && u._tag === "Success";
61864
61948
  }
61865
61949
  //#endregion
61866
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpServerResponse.js
61950
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServerResponse.js
61867
61951
  /**
61868
61952
  * @since 4.0.0
61869
61953
  */
@@ -61952,7 +62036,7 @@ const makeResponse$2 = (options) => {
61952
62036
  return self;
61953
62037
  };
61954
62038
  //#endregion
61955
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
62039
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
61956
62040
  /**
61957
62041
  * @since 4.0.0
61958
62042
  */
@@ -61989,7 +62073,7 @@ const toResponseOrElseDefect = (u, orElse) => {
61989
62073
  return succeed$3(orElse);
61990
62074
  };
61991
62075
  //#endregion
61992
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpServerError.js
62076
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServerError.js
61993
62077
  /**
61994
62078
  * @since 4.0.0
61995
62079
  */
@@ -62161,7 +62245,7 @@ const exitResponse = (exit) => {
62161
62245
  return causeResponseStripped(exit.cause)[0];
62162
62246
  };
62163
62247
  //#endregion
62164
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/socket/Socket.js
62248
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/socket/Socket.js
62165
62249
  /**
62166
62250
  * @since 4.0.0
62167
62251
  * @category Type IDs
@@ -63280,7 +63364,7 @@ const make$33 = make$34;
63280
63364
  const defaultIsFile = defaultIsFile$1;
63281
63365
  const decodeField = decodeField$1;
63282
63366
  //#endregion
63283
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/Multipart.js
63367
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Multipart.js
63284
63368
  /**
63285
63369
  * @since 4.0.0
63286
63370
  */
@@ -63412,7 +63496,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
63412
63496
  */
63413
63497
  const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
63414
63498
  //#endregion
63415
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpServerRequest.js
63499
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServerRequest.js
63416
63500
  /**
63417
63501
  * @since 4.0.0
63418
63502
  * @category Type IDs
@@ -63450,11 +63534,11 @@ const toURL = (self) => {
63450
63534
  }
63451
63535
  };
63452
63536
  //#endregion
63453
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/internal/preResponseHandler.js
63537
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/internal/preResponseHandler.js
63454
63538
  /** @internal */
63455
63539
  const requestPreResponseHandlers = /* @__PURE__ */ new WeakMap();
63456
63540
  //#endregion
63457
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpMiddleware.js
63541
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpMiddleware.js
63458
63542
  /**
63459
63543
  * @since 4.0.0
63460
63544
  */
@@ -63552,7 +63636,7 @@ const tracer = /* @__PURE__ */ make$32((httpApp) => withFiber((fiber) => {
63552
63636
  }, true);
63553
63637
  }));
63554
63638
  //#endregion
63555
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpEffect.js
63639
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpEffect.js
63556
63640
  /**
63557
63641
  * @since 4.0.0
63558
63642
  * @category combinators
@@ -63622,7 +63706,7 @@ const scoped = (effect) => withFiber((fiber) => {
63622
63706
  }, true);
63623
63707
  });
63624
63708
  //#endregion
63625
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/Etag.js
63709
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/Etag.js
63626
63710
  /**
63627
63711
  * @since 4.0.0
63628
63712
  */
@@ -63688,7 +63772,7 @@ const layerWeak = /* @__PURE__ */ succeed$4(Generator)({
63688
63772
  }
63689
63773
  });
63690
63774
  //#endregion
63691
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpPlatform.js
63775
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpPlatform.js
63692
63776
  /**
63693
63777
  * @since 4.0.0
63694
63778
  */
@@ -63727,7 +63811,7 @@ const make$31 = /* @__PURE__ */ fnUntraced(function* (impl) {
63727
63811
  });
63728
63812
  });
63729
63813
  //#endregion
63730
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpServer.js
63814
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpServer.js
63731
63815
  /**
63732
63816
  * @since 4.0.0
63733
63817
  */
@@ -63772,7 +63856,7 @@ const logAddress = /* @__PURE__ */ addressFormattedWith((_) => log$1(`Listening
63772
63856
  */
63773
63857
  const withLogAddress = (layer) => effectDiscard(logAddress).pipe(provideMerge(layer));
63774
63858
  //#endregion
63775
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/HttpRouter.js
63859
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/HttpRouter.js
63776
63860
  /**
63777
63861
  * @since 4.0.0
63778
63862
  */
@@ -64088,7 +64172,7 @@ const serve = (appLayer, options) => {
64088
64172
  }).pipe(unwrap$3, provideMerge(appLayer), provide$3(RouterLayer), options?.disableListenLog ? identity : withLogAddress);
64089
64173
  };
64090
64174
  //#endregion
64091
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/workers/Transferable.js
64175
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/workers/Transferable.js
64092
64176
  /**
64093
64177
  * @since 1.0.0
64094
64178
  */
@@ -64122,7 +64206,7 @@ const makeCollectorUnsafe = () => {
64122
64206
  });
64123
64207
  };
64124
64208
  //#endregion
64125
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/rpc/RpcSchema.js
64209
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/RpcSchema.js
64126
64210
  /**
64127
64211
  * @since 4.0.0
64128
64212
  */
@@ -64155,7 +64239,7 @@ function Stream(success, error) {
64155
64239
  }
64156
64240
  Service$1()("effect/rpc/RpcSchema/ClientAbort");
64157
64241
  //#endregion
64158
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/rpc/Rpc.js
64242
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/Rpc.js
64159
64243
  const TypeId$13 = "~effect/rpc/Rpc";
64160
64244
  const Proto$4 = {
64161
64245
  [TypeId$13]: TypeId$13,
@@ -64295,14 +64379,14 @@ const WrapperTypeId = "~effect/rpc/Rpc/Wrapper";
64295
64379
  */
64296
64380
  const isWrapper = (u) => WrapperTypeId in u;
64297
64381
  //#endregion
64298
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/rpc/RpcMessage.js
64382
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/RpcMessage.js
64299
64383
  /**
64300
64384
  * @since 4.0.0
64301
64385
  * @category request
64302
64386
  */
64303
64387
  const RequestId = (id) => typeof id === "bigint" ? id : BigInt(id);
64304
64388
  //#endregion
64305
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/rpc/Utils.js
64389
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/Utils.js
64306
64390
  /**
64307
64391
  * @since 4.0.0
64308
64392
  */
@@ -64333,7 +64417,7 @@ const withRun = () => (f) => suspend$3(() => {
64333
64417
  }));
64334
64418
  });
64335
64419
  //#endregion
64336
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/rpc/RpcClient.js
64420
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/RpcClient.js
64337
64421
  let requestIdCounter = /* @__PURE__ */ BigInt(0);
64338
64422
  /**
64339
64423
  * @since 4.0.0
@@ -64671,7 +64755,7 @@ var Protocol$1 = class extends Service$1()("effect/rpc/RpcClient/Protocol") {
64671
64755
  };
64672
64756
  const decodeDefect = /* @__PURE__ */ decodeSync(Defect);
64673
64757
  //#endregion
64674
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/rpc/RpcGroup.js
64758
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/rpc/RpcGroup.js
64675
64759
  const RpcGroupProto = {
64676
64760
  add(...rpcs) {
64677
64761
  const requests = new Map(this.requests);
@@ -68405,7 +68489,7 @@ require_sender$1();
68405
68489
  var import_websocket = /* @__PURE__ */ __toESM(require_websocket$1(), 1);
68406
68490
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
68407
68491
  //#endregion
68408
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-s_40ab1e092236dbc8a6ca0a9a9f62ead5/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
68492
+ //#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
68409
68493
  /**
68410
68494
  * @since 1.0.0
68411
68495
  */
@@ -68743,7 +68827,7 @@ const makeFileSystem = /* @__PURE__ */ map$9(/* @__PURE__ */ serviceOption(Watch
68743
68827
  writeFile: writeFile$1
68744
68828
  }));
68745
68829
  //#endregion
68746
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeFileSystem.js
68830
+ //#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
68747
68831
  /**
68748
68832
  * @since 1.0.0
68749
68833
  */
@@ -68753,7 +68837,7 @@ const makeFileSystem = /* @__PURE__ */ map$9(/* @__PURE__ */ serviceOption(Watch
68753
68837
  */
68754
68838
  const layer$25 = /* @__PURE__ */ effect$1(FileSystem)(makeFileSystem);
68755
68839
  //#endregion
68756
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
68840
+ //#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
68757
68841
  /**
68758
68842
  * @since 1.0.0
68759
68843
  */
@@ -90224,7 +90308,7 @@ var require_undici = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
90224
90308
  module.exports.install = install;
90225
90309
  }));
90226
90310
  //#endregion
90227
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/Undici.js
90311
+ //#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
90228
90312
  var Undici_exports = /* @__PURE__ */ __exportAll({ default: () => Undici_default });
90229
90313
  var import_undici = /* @__PURE__ */ __toESM(require_undici(), 1);
90230
90314
  __reExport(Undici_exports, /* @__PURE__ */ __toESM(require_undici(), 1));
@@ -90234,7 +90318,7 @@ __reExport(Undici_exports, /* @__PURE__ */ __toESM(require_undici(), 1));
90234
90318
  */
90235
90319
  var Undici_default = import_undici.default;
90236
90320
  //#endregion
90237
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/http/FetchHttpClient.js
90321
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/http/FetchHttpClient.js
90238
90322
  /**
90239
90323
  * @since 4.0.0
90240
90324
  */
@@ -90279,7 +90363,7 @@ const layer$24 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed$3(/
90279
90363
  return send(void 0);
90280
90364
  })));
90281
90365
  //#endregion
90282
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeHttpClient.js
90366
+ //#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
90283
90367
  /**
90284
90368
  * @since 1.0.0
90285
90369
  */
@@ -90446,7 +90530,7 @@ var UndiciResponse = class extends Class$5 {
90446
90530
  */
90447
90531
  const layerUndici = /* @__PURE__ */ provide$3(/* @__PURE__ */ layerMergedServices(makeUndici), layerDispatcher);
90448
90532
  //#endregion
90449
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
90533
+ //#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
90450
90534
  /**
90451
90535
  * @since 1.0.0
90452
90536
  */
@@ -90567,7 +90651,7 @@ var FileStream = class extends Readable {
90567
90651
  }
90568
90652
  };
90569
90653
  //#endregion
90570
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeMultipart.js
90654
+ //#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
90571
90655
  /**
90572
90656
  * @since 1.0.0
90573
90657
  */
@@ -90662,7 +90746,7 @@ function convertError(cause) {
90662
90746
  }
90663
90747
  }
90664
90748
  //#endregion
90665
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-s_40ab1e092236dbc8a6ca0a9a9f62ead5/node_modules/@effect/platform-node-shared/dist/NodePath.js
90749
+ //#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
90666
90750
  /**
90667
90751
  * @since 1.0.0
90668
90752
  */
@@ -90685,7 +90769,7 @@ const toFileUrl = (path) => try_({
90685
90769
  ({ ...Path.posix });
90686
90770
  ({ ...Path.win32 });
90687
90771
  //#endregion
90688
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodePath.js
90772
+ //#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
90689
90773
  /**
90690
90774
  * @since 1.0.0
90691
90775
  */
@@ -90700,7 +90784,7 @@ const layer$21 = /* @__PURE__ */ succeed$4(Path$1)({
90700
90784
  toFileUrl
90701
90785
  });
90702
90786
  //#endregion
90703
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeStdio.js
90787
+ //#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
90704
90788
  /**
90705
90789
  * @since 1.0.0
90706
90790
  */
@@ -90805,7 +90889,7 @@ function defaultShouldQuit(input) {
90805
90889
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
90806
90890
  }
90807
90891
  //#endregion
90808
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeServices.js
90892
+ //#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
90809
90893
  /**
90810
90894
  * @since 1.0.0
90811
90895
  * @category layer
@@ -90817,7 +90901,7 @@ const layer$16 = /* @__PURE__ */ provideMerge(layer$30, /* @__PURE__ */ mergeAll
90817
90901
  */
90818
90902
  const layerWebSocketConstructorWS = /* @__PURE__ */ succeed$4(WebSocketConstructor)((url, protocols) => new import_websocket.default(url, protocols));
90819
90903
  //#endregion
90820
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeHttpServer.js
90904
+ //#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
90821
90905
  /**
90822
90906
  * @since 1.0.0
90823
90907
  */
@@ -91110,7 +91194,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
91110
91194
  return failCause$2(headersSent ? combine$1(originalCause, die$3(originalResponse)) : cause);
91111
91195
  });
91112
91196
  //#endregion
91113
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+eff_78e1d909c33c8fc433414669eda872b6/node_modules/@effect/platform-node/dist/NodeRuntime.js
91197
+ //#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
91114
91198
  /**
91115
91199
  * @since 1.0.0
91116
91200
  */
@@ -91161,7 +91245,7 @@ const runMain = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
91161
91245
  process.on("SIGTERM", onSigint);
91162
91246
  });
91163
91247
  //#endregion
91164
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/persistence/PersistedCache.js
91248
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/persistence/PersistedCache.js
91165
91249
  /**
91166
91250
  * @since 4.0.0
91167
91251
  */
@@ -91708,7 +91792,7 @@ const toExit = (self) => {
91708
91792
  }
91709
91793
  };
91710
91794
  //#endregion
91711
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
91795
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
91712
91796
  /**
91713
91797
  * @since 4.0.0
91714
91798
  */
@@ -92330,7 +92414,7 @@ function batchRebuildNode(node) {
92330
92414
  if (node.state !== NodeState.valid) node.value();
92331
92415
  }
92332
92416
  //#endregion
92333
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/reactivity/Atom.js
92417
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/reactivity/Atom.js
92334
92418
  /**
92335
92419
  * @since 4.0.0
92336
92420
  */
@@ -178373,7 +178457,7 @@ const parseCommand = (command) => {
178373
178457
  return args;
178374
178458
  };
178375
178459
  //#endregion
178376
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/Model.js
178460
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Model.js
178377
178461
  /**
178378
178462
  * The `Model` module provides a unified interface for AI service providers.
178379
178463
  *
@@ -181596,7 +181680,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
181596
181680
  });
181597
181681
  Ze.glob = Ze;
181598
181682
  //#endregion
181599
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/ApplyPatch.js
181683
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/ApplyPatch.js
181600
181684
  /**
181601
181685
  * @since 1.0.0
181602
181686
  */
@@ -196469,7 +196553,7 @@ var StreamableHTTPClientTransport = class {
196469
196553
  }
196470
196554
  };
196471
196555
  //#endregion
196472
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/McpClient.js
196556
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/McpClient.js
196473
196557
  /**
196474
196558
  * @since 1.0.0
196475
196559
  */
@@ -196514,7 +196598,7 @@ const layer$13 = effect$1(McpClient, gen(function* () {
196514
196598
  });
196515
196599
  }));
196516
196600
  //#endregion
196517
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/ExaSearch.js
196601
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/ExaSearch.js
196518
196602
  /**
196519
196603
  * @since 1.0.0
196520
196604
  */
@@ -211464,7 +211548,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin$1(((exports) => {
211464
211548
  exports.impl = impl;
211465
211549
  }));
211466
211550
  //#endregion
211467
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/WebToMarkdown.js
211551
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/WebToMarkdown.js
211468
211552
  /**
211469
211553
  * @since 1.0.0
211470
211554
  */
@@ -212228,7 +212312,7 @@ const layer$11 = effect$1(WebToMarkdown, gen(function* () {
212228
212312
  });
212229
212313
  }));
212230
212314
  //#endregion
212231
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/Response.js
212315
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Response.js
212232
212316
  const PartTypeId$1 = "~effect/ai/Content/Part";
212233
212317
  const constEmptyObject$1 = () => ({});
212234
212318
  const constPartTypeId$1 = () => PartTypeId$1;
@@ -212734,7 +212818,7 @@ const ErrorPart = /* @__PURE__ */ Struct$2({
212734
212818
  error: Unknown
212735
212819
  }).annotate({ identifier: "ErrorPart" });
212736
212820
  //#endregion
212737
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/AiError.js
212821
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/AiError.js
212738
212822
  /**
212739
212823
  * The `AiError` module provides comprehensive, provider-agnostic error handling
212740
212824
  * for AI operations.
@@ -213957,7 +214041,7 @@ const reasonFromHttpStatus = (params) => {
213957
214041
  }
213958
214042
  };
213959
214043
  //#endregion
213960
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/Toolkit.js
214044
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Toolkit.js
213961
214045
  const TypeId$6 = "~effect/ai/Toolkit";
213962
214046
  const Proto$2 = {
213963
214047
  ...YieldableProto,
@@ -214181,7 +214265,7 @@ const merge$1 = (...toolkits) => {
214181
214265
  return makeProto(tools);
214182
214266
  };
214183
214267
  //#endregion
214184
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/Tool.js
214268
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Tool.js
214185
214269
  /**
214186
214270
  * @since 1.0.0
214187
214271
  * @category type ids
@@ -214603,7 +214687,7 @@ function isEmptyParamsRecord(indexSignature) {
214603
214687
  return indexSignature.parameter === string$3 && isNever(indexSignature.type);
214604
214688
  }
214605
214689
  //#endregion
214606
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/schema/VariantSchema.js
214690
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/schema/VariantSchema.js
214607
214691
  /**
214608
214692
  * @since 4.0.0
214609
214693
  * @category Type IDs
@@ -214711,7 +214795,7 @@ const Union$1 = (members, variants) => {
214711
214795
  return VariantUnion;
214712
214796
  };
214713
214797
  //#endregion
214714
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/schema/Model.js
214798
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/schema/Model.js
214715
214799
  const { Class, Field, FieldExcept, FieldOnly, Struct, Union, extract, fieldEvolve } = /* @__PURE__ */ make$12({
214716
214800
  variants: [
214717
214801
  "select",
@@ -214737,7 +214821,7 @@ const Generated = (schema) => Field({
214737
214821
  json: schema
214738
214822
  });
214739
214823
  //#endregion
214740
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/sql/SqlError.js
214824
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlError.js
214741
214825
  /**
214742
214826
  * @since 4.0.0
214743
214827
  */
@@ -214773,7 +214857,7 @@ var ResultLengthMismatch = class extends TaggedErrorClass("effect/sql/ResultLeng
214773
214857
  }
214774
214858
  };
214775
214859
  //#endregion
214776
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/sql/SqlResolver.js
214860
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlResolver.js
214777
214861
  /**
214778
214862
  * @since 4.0.0
214779
214863
  */
@@ -214921,7 +215005,7 @@ function transactionKey(entry) {
214921
215005
  return byReferenceUnsafe(conn);
214922
215006
  }
214923
215007
  //#endregion
214924
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/sql/SqlSchema.js
215008
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlSchema.js
214925
215009
  /**
214926
215010
  * Run a sql query with a request schema and a result schema.
214927
215011
  *
@@ -214934,7 +215018,7 @@ const findAll = (options) => {
214934
215018
  return (request) => flatMap$4(flatMap$4(encodeRequest(request), options.execute), decode);
214935
215019
  };
214936
215020
  //#endregion
214937
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/sql/SqlModel.js
215021
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/sql/SqlModel.js
214938
215022
  /**
214939
215023
  * Create some simple data loaders from a model.
214940
215024
  *
@@ -214983,7 +215067,7 @@ select * from ${sql(options.tableName)} where ${sql(idColumn)} = LAST_INSERT_ID(
214983
215067
  };
214984
215068
  });
214985
215069
  //#endregion
214986
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/EmbeddingModel.js
215070
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/EmbeddingModel.js
214987
215071
  /**
214988
215072
  * The `EmbeddingModel` module provides provider-agnostic text embedding capabilities.
214989
215073
  *
@@ -215082,7 +215166,7 @@ const mapProviderResults = (inputLength, results) => {
215082
215166
  return succeed$3(embeddings);
215083
215167
  };
215084
215168
  //#endregion
215085
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/ChunkRepo.js
215169
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/ChunkRepo.js
215086
215170
  /**
215087
215171
  * @since 1.0.0
215088
215172
  * @category Models
@@ -215213,7 +215297,7 @@ const layer$10 = effect$1(ChunkRepo, gen(function* () {
215213
215297
  });
215214
215298
  }));
215215
215299
  //#endregion
215216
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/CodeChunker.js
215300
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/CodeChunker.js
215217
215301
  /**
215218
215302
  * @since 1.0.0
215219
215303
  */
@@ -215325,7 +215409,8 @@ const resolveChunkSettings = (options) => {
215325
215409
  const chunkSize = Math.max(1, options.chunkSize);
215326
215410
  return {
215327
215411
  chunkSize,
215328
- chunkOverlap: Math.max(0, Math.min(chunkSize - 1, options.chunkOverlap))
215412
+ chunkOverlap: Math.max(0, Math.min(chunkSize - 1, options.chunkOverlap)),
215413
+ chunkMaxCharacters: options.chunkMaxCharacters !== void 0 && Number.isFinite(options.chunkMaxCharacters) ? Math.max(1, Math.floor(options.chunkMaxCharacters)) : Number.POSITIVE_INFINITY
215329
215414
  };
215330
215415
  };
215331
215416
  const getPathExtension = (path) => {
@@ -215376,17 +215461,38 @@ const normalizeLineRange = (range, lineCount) => {
215376
215461
  endLine
215377
215462
  };
215378
215463
  };
215379
- const splitRange = (range, settings) => {
215380
- if (range.endLine - range.startLine + 1 <= settings.chunkSize) return [range];
215381
- const step = settings.chunkSize - settings.chunkOverlap;
215464
+ const lineLengthPrefixSums = (lines) => {
215465
+ const sums = [0];
215466
+ for (let index = 0; index < lines.length; index++) sums.push(sums[index] + lines[index].length);
215467
+ return sums;
215468
+ };
215469
+ const lineRangeCharacterLength = (prefixSums, range) => prefixSums[range.endLine] - prefixSums[range.startLine - 1] + (range.endLine - range.startLine);
215470
+ const resolveSegmentEndLine = (options) => {
215471
+ if (options.settings.chunkMaxCharacters === Number.POSITIVE_INFINITY) return options.maxEndLine;
215472
+ let endLine = options.maxEndLine;
215473
+ while (endLine > options.startLine && lineRangeCharacterLength(options.prefixSums, {
215474
+ startLine: options.startLine,
215475
+ endLine
215476
+ }) > options.settings.chunkMaxCharacters) endLine--;
215477
+ return endLine;
215478
+ };
215479
+ const splitRange = (range, settings, prefixSums) => {
215480
+ if (range.endLine - range.startLine + 1 <= settings.chunkSize && lineRangeCharacterLength(prefixSums, range) <= settings.chunkMaxCharacters) return [range];
215382
215481
  const out = [];
215383
- for (let startLine = range.startLine; startLine <= range.endLine; startLine += step) {
215384
- const endLine = Math.min(range.endLine, startLine + settings.chunkSize - 1);
215482
+ for (let startLine = range.startLine; startLine <= range.endLine;) {
215483
+ const maxEndLine = Math.min(range.endLine, startLine + settings.chunkSize - 1);
215484
+ const endLine = resolveSegmentEndLine({
215485
+ startLine,
215486
+ maxEndLine,
215487
+ settings,
215488
+ prefixSums
215489
+ });
215385
215490
  out.push({
215386
215491
  startLine,
215387
215492
  endLine
215388
215493
  });
215389
215494
  if (endLine >= range.endLine) break;
215495
+ startLine = Math.max(startLine + 1, endLine - settings.chunkOverlap + 1);
215390
215496
  }
215391
215497
  return out;
215392
215498
  };
@@ -215530,10 +215636,11 @@ const chunksFromRanges = (path, lines, ranges, settings) => {
215530
215636
  };
215531
215637
  const out = [];
215532
215638
  const seen = /* @__PURE__ */ new Set();
215639
+ const prefixSums = lineLengthPrefixSums(lines);
215533
215640
  for (const range of ranges) {
215534
215641
  const normalizedRange = normalizeLineRange(range, lines.length);
215535
215642
  if (normalizedRange === void 0) continue;
215536
- const allSegments = splitRange(normalizedRange, settings);
215643
+ const allSegments = splitRange(normalizedRange, settings, prefixSums);
215537
215644
  const segments = range.type === "class" && allSegments.length > 1 && hasMethodChildRange({
215538
215645
  ...normalizedRange,
215539
215646
  name: range.name
@@ -215558,27 +215665,32 @@ const chunksFromRanges = (path, lines, ranges, settings) => {
215558
215665
  return out.toSorted((left, right) => left.startLine - right.startLine || left.endLine - right.endLine || (left.name ?? "").localeCompare(right.name ?? ""));
215559
215666
  };
215560
215667
  const chunkWithLineWindows = (path, lines, settings) => {
215561
- const step = settings.chunkSize - settings.chunkOverlap;
215562
215668
  const out = [];
215669
+ const prefixSums = lineLengthPrefixSums(lines);
215563
215670
  for (let index = 0; index < lines.length;) {
215564
215671
  if (!isMeaningfulLine(lines[index])) {
215565
215672
  index++;
215566
215673
  continue;
215567
215674
  }
215568
- const start = index;
215569
- const end = Math.min(lines.length, start + settings.chunkSize);
215570
- const chunkLines = lines.slice(start, end);
215675
+ const startLine = index + 1;
215676
+ const endLine = resolveSegmentEndLine({
215677
+ startLine,
215678
+ maxEndLine: Math.min(lines.length, startLine + settings.chunkSize - 1),
215679
+ settings,
215680
+ prefixSums
215681
+ });
215682
+ const chunkLines = lines.slice(startLine - 1, endLine);
215571
215683
  out.push({
215572
215684
  path,
215573
- startLine: start + 1,
215574
- endLine: end,
215685
+ startLine,
215686
+ endLine,
215575
215687
  name: void 0,
215576
215688
  type: void 0,
215577
215689
  parent: void 0,
215578
215690
  content: chunkLines.join("\n")
215579
215691
  });
215580
- index += step;
215581
- if (end >= lines.length) break;
215692
+ if (endLine >= lines.length) break;
215693
+ index = Math.max(startLine + 1, endLine - settings.chunkOverlap + 1) - 1;
215582
215694
  }
215583
215695
  return out;
215584
215696
  };
@@ -215635,7 +215747,8 @@ const layer$9 = effect$1(CodeChunker, gen(function* () {
215635
215747
  root: options.root,
215636
215748
  path,
215637
215749
  chunkSize: options.chunkSize,
215638
- chunkOverlap: options.chunkOverlap
215750
+ chunkOverlap: options.chunkOverlap,
215751
+ ...options.chunkMaxCharacters === void 0 ? {} : { chunkMaxCharacters: options.chunkMaxCharacters }
215639
215752
  }), fromArrayEffect), { concurrency: 5 }));
215640
215753
  const chunkCodebase = fnUntraced(function* (options) {
215641
215754
  const root = pathService.resolve(options.root);
@@ -215646,7 +215759,8 @@ const layer$9 = effect$1(CodeChunker, gen(function* () {
215646
215759
  ...options.maxFileSize === void 0 ? {} : { maxFileSize: options.maxFileSize }
215647
215760
  }),
215648
215761
  chunkSize: options.chunkSize,
215649
- chunkOverlap: options.chunkOverlap
215762
+ chunkOverlap: options.chunkOverlap,
215763
+ ...options.chunkMaxCharacters === void 0 ? {} : { chunkMaxCharacters: options.chunkMaxCharacters }
215650
215764
  });
215651
215765
  }, unwrap);
215652
215766
  return CodeChunker.of({
@@ -215657,7 +215771,7 @@ const layer$9 = effect$1(CodeChunker, gen(function* () {
215657
215771
  });
215658
215772
  }));
215659
215773
  //#endregion
215660
- //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+e_0974d85d78528a59d7928a54d40ee141/node_modules/@effect/sql-sqlite-node/dist/SqliteClient.js
215774
+ //#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
215661
215775
  /**
215662
215776
  * @since 1.0.0
215663
215777
  */
@@ -215794,7 +215908,7 @@ const make$10 = (options) => gen(function* () {
215794
215908
  */
215795
215909
  const layer$8 = (config) => effectServices(map$9(make$10(config), (client) => make$87(SqliteClient, client).pipe(add$3(SqlClient, client)))).pipe(provide$3(layer$32));
215796
215910
  //#endregion
215797
- //#region node_modules/.pnpm/@effect+sql-sqlite-node@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+e_0974d85d78528a59d7928a54d40ee141/node_modules/@effect/sql-sqlite-node/dist/SqliteMigrator.js
215911
+ //#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
215798
215912
  /**
215799
215913
  * @category constructor
215800
215914
  * @since 1.0.0
@@ -215806,7 +215920,7 @@ const run$1 = /* @__PURE__ */ make$25({});
215806
215920
  */
215807
215921
  const layer$7 = (options) => effectDiscard(run$1(options));
215808
215922
  //#endregion
215809
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/internal/sqlite-vector.js
215923
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/internal/sqlite-vector.js
215810
215924
  /**
215811
215925
  * Binary extension for each platform
215812
215926
  */
@@ -215923,7 +216037,7 @@ function getExtensionPath() {
215923
216037
  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`);
215924
216038
  }
215925
216039
  //#endregion
215926
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/Sqlite.js
216040
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/Sqlite.js
215927
216041
  /**
215928
216042
  * @since 1.0.0
215929
216043
  */
@@ -215951,7 +216065,7 @@ const SqliteLayer = (database) => layer$7({ loader: fromRecord({ "0001_create_ch
215951
216065
  yield* fs.makeDirectory(directory, { recursive: true });
215952
216066
  }))));
215953
216067
  //#endregion
215954
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/SemanticSearch.js
216068
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/SemanticSearch.js
215955
216069
  /**
215956
216070
  * @since 1.0.0
215957
216071
  */
@@ -215961,10 +216075,11 @@ const SqliteLayer = (database) => layer$7({ loader: fromRecord({ "0001_create_ch
215961
216075
  */
215962
216076
  var SemanticSearch = class extends Service$1()("clanka/SemanticSearch/SemanticSearch") {};
215963
216077
  const normalizePath = (path) => path.replace(/\\/g, "/");
215964
- const chunkConfig = {
216078
+ const resolveChunkConfig = (options) => ({
215965
216079
  chunkSize: 30,
215966
- chunkOverlap: 0
215967
- };
216080
+ chunkOverlap: 0,
216081
+ chunkMaxCharacters: options.chunkMaxCharacters ?? 1e4
216082
+ });
215968
216083
  const makeEmbeddingResolver = (resolver, options) => resolver.pipe(setDelay(options.embeddingRequestDelay ?? millis(50)), batchN(options.embeddingBatchSize ?? 500));
215969
216084
  const chunkEmbeddingInput = (chunk) => {
215970
216085
  const headerLines = ["---", "file: " + chunk.path];
@@ -215993,6 +216108,7 @@ const layer$6 = (options) => effect$1(SemanticSearch, gen(function* () {
215993
216108
  const root = pathService.resolve(options.directory);
215994
216109
  const resolver = makeEmbeddingResolver(embeddings.resolver, options);
215995
216110
  const concurrency = options.concurrency ?? 2e3;
216111
+ const chunkConfig = resolveChunkConfig(options);
215996
216112
  const indexHandle = yield* make$56();
215997
216113
  const console = yield* Console$1;
215998
216114
  const resolveIndexedPath = (path) => {
@@ -216093,7 +216209,7 @@ const maybeRemoveFile = (path) => serviceOption(SemanticSearch).pipe(flatMap$4(m
216093
216209
  onSome: (service) => service.removeFile(path)
216094
216210
  })));
216095
216211
  //#endregion
216096
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/AgentTools.js
216212
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/AgentTools.js
216097
216213
  /**
216098
216214
  * @since 1.0.0
216099
216215
  */
@@ -216444,7 +216560,7 @@ const AgentToolHandlers = AgentToolHandlersNoDeps.pipe(provide$3([layer$12, laye
216444
216560
  AgentToolHandlersNoDeps.pipe(provide$3([mock(ExaSearch)({}), mock(WebToMarkdown)({})]));
216445
216561
  var ApplyPatchError = class extends TaggedClass$2("ApplyPatchError") {};
216446
216562
  //#endregion
216447
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/TypeBuilder.js
216563
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/TypeBuilder.js
216448
216564
  const resolveDocumentation = resolveAt("documentation");
216449
216565
  const identifierPattern = /^[$A-Z_a-z][$0-9A-Z_a-z]*$/u;
216450
216566
  const Precedence = {
@@ -216717,7 +216833,7 @@ const render = (schema, options) => {
216717
216833
  return printNode({ text: documentation === void 0 ? rendered.text : `${renderJsDoc(documentation, 0, printerOptions)}${printerOptions.newLine}${rendered.text}` }, printerOptions);
216718
216834
  };
216719
216835
  //#endregion
216720
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/ToolkitRenderer.js
216836
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/ToolkitRenderer.js
216721
216837
  /**
216722
216838
  * @since 1.0.0
216723
216839
  */
@@ -216726,7 +216842,7 @@ const render = (schema, options) => {
216726
216842
  * @category Services
216727
216843
  */
216728
216844
  var ToolkitRenderer = class ToolkitRenderer extends Service$1()("clanka/ToolkitRenderer") {
216729
- static layer = succeed$4(ToolkitRenderer, { render: memoize((tools) => {
216845
+ static layer = succeed$4(ToolkitRenderer, { render: memoize$1((tools) => {
216730
216846
  const output = empty$17();
216731
216847
  for (const [name, tool] of Object.entries(tools.tools)) {
216732
216848
  const paramName = resolveIdentifier(tool.parametersSchema.ast) ?? "options";
@@ -216739,7 +216855,7 @@ declare function ${name}(${params}): Promise<${render(tool.successSchema)}>`);
216739
216855
  }) });
216740
216856
  };
216741
216857
  //#endregion
216742
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/ScriptPreprocessing.js
216858
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/ScriptPreprocessing.js
216743
216859
  const isIdentifierChar = (char) => char !== void 0 && /[A-Za-z0-9_$]/.test(char);
216744
216860
  const isIdentifierStartChar = (char) => char !== void 0 && /[A-Za-z_$]/.test(char);
216745
216861
  const hasIdentifierBoundary = (text, index, length) => !isIdentifierChar(text[index - 1]) && !isIdentifierChar(text[index + length]);
@@ -216924,6 +217040,80 @@ const findClosingParen = (text, openParen) => {
216924
217040
  }
216925
217041
  return -1;
216926
217042
  };
217043
+ const findClosingBrace = (text, openBrace) => {
217044
+ let depth = 1;
217045
+ let stringDelimiter;
217046
+ for (let i = openBrace + 1; i < text.length; i++) {
217047
+ const char = text[i];
217048
+ if (stringDelimiter !== void 0) {
217049
+ if (char === stringDelimiter && !isEscaped(text, i)) stringDelimiter = void 0;
217050
+ continue;
217051
+ }
217052
+ if (char === "\"" || char === "'" || char === "`") {
217053
+ stringDelimiter = char;
217054
+ continue;
217055
+ }
217056
+ if (char === "{") {
217057
+ depth++;
217058
+ continue;
217059
+ }
217060
+ if (char === "}") {
217061
+ depth--;
217062
+ if (depth === 0) return i;
217063
+ }
217064
+ }
217065
+ return -1;
217066
+ };
217067
+ const fixObjectLiteralTemplateValues = (text) => text.replace(/\\{2,}(?=`|\$\{)/g, "\\");
217068
+ const fixAssignedObjectTemplateValues = (script, variableName) => {
217069
+ let out = script;
217070
+ let cursor = 0;
217071
+ while (cursor < out.length) {
217072
+ const variableStart = findNextIdentifier(out, variableName, cursor);
217073
+ if (variableStart === -1) break;
217074
+ let assignmentStart = skipWhitespace(out, variableStart + variableName.length);
217075
+ if (out[assignmentStart] === ":") {
217076
+ assignmentStart = findTypeAnnotationAssignment(out, assignmentStart + 1);
217077
+ if (assignmentStart === -1) {
217078
+ cursor = variableStart + variableName.length;
217079
+ continue;
217080
+ }
217081
+ }
217082
+ if (out[assignmentStart] !== "=" || out[assignmentStart + 1] === "=" || out[assignmentStart + 1] === ">") {
217083
+ cursor = variableStart + variableName.length;
217084
+ continue;
217085
+ }
217086
+ const objectStart = skipWhitespace(out, assignmentStart + 1);
217087
+ if (out[objectStart] !== "{") {
217088
+ cursor = objectStart + 1;
217089
+ continue;
217090
+ }
217091
+ const objectEnd = findClosingBrace(out, objectStart);
217092
+ if (objectEnd === -1) {
217093
+ cursor = objectStart + 1;
217094
+ continue;
217095
+ }
217096
+ const original = out.slice(objectStart, objectEnd + 1);
217097
+ const escaped = fixObjectLiteralTemplateValues(original);
217098
+ if (escaped !== original) {
217099
+ out = `${out.slice(0, objectStart)}${escaped}${out.slice(objectEnd + 1)}`;
217100
+ cursor = objectEnd + (escaped.length - original.length) + 1;
217101
+ continue;
217102
+ }
217103
+ cursor = objectEnd + 1;
217104
+ }
217105
+ return out;
217106
+ };
217107
+ const escapeRegExp = (text) => text.replace(/[.*+?^${}()|[\\]\\]/g, "\\$&");
217108
+ const collectObjectEntryMapSources = (script, valueIdentifier) => {
217109
+ const out = /* @__PURE__ */ new Set();
217110
+ const pattern = new RegExp(`Object\\.entries\\(\\s*([A-Za-z_$][A-Za-z0-9_$]*)\\s*\\)\\s*\\.map\\(\\s*(?:async\\s*)?\\(\\s*\\[\\s*[A-Za-z_$][A-Za-z0-9_$]*\\s*,\\s*${escapeRegExp(valueIdentifier)}\\s*\\]\\s*\\)\\s*=>`, "g");
217111
+ for (const match of script.matchAll(pattern)) {
217112
+ const sourceIdentifier = match[1];
217113
+ if (sourceIdentifier !== void 0) out.add(sourceIdentifier);
217114
+ }
217115
+ return out;
217116
+ };
216927
217117
  const findCallTemplateEnd = (text, templateStart, openParen) => {
216928
217118
  const closeParen = findClosingParen(text, openParen);
216929
217119
  if (closeParen === -1) return -1;
@@ -217105,13 +217295,16 @@ const fixAssignedTemplatesForToolCalls = (script) => {
217105
217295
  for (const functionName of ["applyPatch", "taskComplete"]) for (const identifier of collectCallArgumentIdentifiers(script, functionName)) identifiers.add(identifier);
217106
217296
  for (const [functionName, propertyName] of callObjectPropertyTargets) for (const identifier of collectCallObjectPropertyIdentifiers(script, functionName, propertyName)) identifiers.add(identifier);
217107
217297
  if (script.includes("*** Begin Patch")) identifiers.add("patch");
217298
+ const objectTemplateIdentifiers = /* @__PURE__ */ new Set();
217299
+ for (const identifier of identifiers) for (const sourceIdentifier of collectObjectEntryMapSources(script, identifier)) objectTemplateIdentifiers.add(sourceIdentifier);
217108
217300
  let out = script;
217109
217301
  for (const identifier of identifiers) out = fixAssignedTemplate(out, identifier);
217302
+ for (const identifier of objectTemplateIdentifiers) out = fixAssignedObjectTemplateValues(out, identifier);
217110
217303
  return out;
217111
217304
  };
217112
217305
  const preprocessScript = (script) => fixAssignedTemplatesForToolCalls(["applyPatch", "taskComplete"].reduce((current, functionName) => fixCallTemplateArgument(current, functionName), fixTargetCallObjectPropertyTemplates(script)));
217113
217306
  //#endregion
217114
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/AgentExecutor.js
217307
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/AgentExecutor.js
217115
217308
  /**
217116
217309
  * @since 1.0.0
217117
217310
  */
@@ -217296,7 +217489,7 @@ var QueueWriteStream = class extends Writable {
217296
217489
  }
217297
217490
  };
217298
217491
  //#endregion
217299
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/ScriptExtraction.js
217492
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/ScriptExtraction.js
217300
217493
  const stripWrappingCodeFence = (script) => {
217301
217494
  const lines = script.split(/\r?\n/);
217302
217495
  if (lines.length < 2) return script;
@@ -217321,7 +217514,7 @@ const stripWrappingCodeFence = (script) => {
217321
217514
  return lines.slice(firstNonEmpty + 1, lastNonEmpty).join(newLine);
217322
217515
  };
217323
217516
  //#endregion
217324
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/Prompt.js
217517
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Prompt.js
217325
217518
  /**
217326
217519
  * The `Prompt` module provides several data structures to simplify creating and
217327
217520
  * combining prompts.
@@ -217860,7 +218053,7 @@ const setSystem = /* @__PURE__ */ dual(2, (self, content) => {
217860
218053
  return makePrompt(messages);
217861
218054
  });
217862
218055
  //#endregion
217863
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/IdGenerator.js
218056
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/IdGenerator.js
217864
218057
  /**
217865
218058
  * The `IdGenerator` service tag for dependency injection.
217866
218059
  *
@@ -217929,7 +218122,7 @@ const makeGenerator = ({ alphabet = DEFAULT_ALPHABET, prefix, separator = DEFAUL
217929
218122
  */
217930
218123
  const defaultIdGenerator = { generateId: /* @__PURE__ */ makeGenerator({ prefix: "id" }) };
217931
218124
  //#endregion
217932
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/internal/codec-transformer.js
218125
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/internal/codec-transformer.js
217933
218126
  /** @internal */
217934
218127
  const defaultCodecTransformer$1 = (codec) => {
217935
218128
  const document = toJsonSchemaDocument(codec);
@@ -217941,7 +218134,7 @@ const defaultCodecTransformer$1 = (codec) => {
217941
218134
  };
217942
218135
  };
217943
218136
  //#endregion
217944
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/ResponseIdTracker.js
218137
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/ResponseIdTracker.js
217945
218138
  /**
217946
218139
  * @since 4.0.0
217947
218140
  */
@@ -217998,7 +218191,7 @@ const make$8 = /* @__PURE__ */ sync(() => {
217998
218191
  };
217999
218192
  });
218000
218193
  //#endregion
218001
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/Telemetry.js
218194
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/Telemetry.js
218002
218195
  /**
218003
218196
  * The `Telemetry` module provides OpenTelemetry integration for operations
218004
218197
  * performed against a large language model provider by defining telemetry
@@ -218114,7 +218307,7 @@ const addGenAIAnnotations$2 = /* @__PURE__ */ dual(2, (span, options) => {
218114
218307
  */
218115
218308
  var CurrentSpanTransformer = class extends Service$1()("effect/ai/Telemetry/CurrentSpanTransformer") {};
218116
218309
  //#endregion
218117
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/LanguageModel.js
218310
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/LanguageModel.js
218118
218311
  /**
218119
218312
  * The `LanguageModel` service key for dependency injection.
218120
218313
  *
@@ -218845,7 +219038,7 @@ const applySpanTransformer = (transformer, response, options) => {
218845
219038
  });
218846
219039
  };
218847
219040
  //#endregion
218848
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/Agent.js
219041
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/Agent.js
218849
219042
  /**
218850
219043
  * @since 1.0.0
218851
219044
  */
@@ -219135,9 +219328,10 @@ const generateSystemTools = (capabilities) => `**YOU ONLY HAVE ACCESS TO ONE TOO
219135
219328
  - Top level await is supported.${capabilities.supportsSearch ? `
219136
219329
  - AVOID USING the "rg" function and instead use "search", unless you are targeting specific files or patterns.` : ""}
219137
219330
  - Do as much work as possible in a single script, using \`Promise.all\` to run multiple functions in parallel.
219331
+ - You can add / update / remove multiple files in one go with "applyPatch".
219138
219332
  - AVOID passing scripts into the "bash" function, and instead write javascript.
219139
219333
  - **Variables are not shared** between executions, so you must include all necessary code in each script you execute.
219140
- - DO NOT use \`require\`, \`import\`, \`process\`, or any other node apis.
219334
+ - DO NOT use \`require\`, \`import\`, \`process\`, or any other node.js apis.
219141
219335
 
219142
219336
  When you have fully completed your task, call the "taskComplete" function with the final output.
219143
219337
  DO NOT output the final result without wrapping it with "taskComplete".
@@ -219332,7 +219526,7 @@ Union$2([
219332
219526
  */
219333
219527
  var AgentFinished = class extends TaggedErrorClass()("AgentFinished", { summary: String$1 }) {};
219334
219528
  //#endregion
219335
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/encoding/Sse.js
219529
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/encoding/Sse.js
219336
219530
  /**
219337
219531
  * @since 4.0.0
219338
219532
  * @category Decoding
@@ -219515,7 +219709,7 @@ var Retry = class Retry extends TaggedClass$2("Retry") {
219515
219709
  }
219516
219710
  };
219517
219711
  //#endregion
219518
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@_40f0ed42a1f1ef763719c6656513513d/node_modules/@effect/ai-openai/dist/Generated.js
219712
+ //#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
219519
219713
  /**
219520
219714
  * @since 1.0.0
219521
219715
  */ const AdminApiKey = /* @__PURE__ */ Struct$2({
@@ -227583,7 +227777,7 @@ const OpenAiClientError = (tag, cause, response) => new OpenAiClientErrorImpl({
227583
227777
  request: response.request
227584
227778
  });
227585
227779
  //#endregion
227586
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@_40f0ed42a1f1ef763719c6656513513d/node_modules/@effect/ai-openai/dist/internal/errors.js
227780
+ //#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
227587
227781
  /** @internal */
227588
227782
  const OpenAiErrorBody$1 = /* @__PURE__ */ Struct$2({ error: /* @__PURE__ */ Struct$2({
227589
227783
  message: String$1,
@@ -227796,7 +227990,7 @@ const mapStatusCodeToReason$1 = ({ status, headers, message, metadata, http }) =
227796
227990
  }
227797
227991
  };
227798
227992
  //#endregion
227799
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@_40f0ed42a1f1ef763719c6656513513d/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
227993
+ //#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
227800
227994
  /**
227801
227995
  * @since 1.0.0
227802
227996
  */
@@ -227811,7 +228005,7 @@ var OpenAiConfig$1 = class OpenAiConfig$1 extends Service$1()("@effect/ai-openai
227811
228005
  static getOrUndefined = /* @__PURE__ */ map$9(/* @__PURE__ */ services(), (context) => context.mapUnsafe.get(OpenAiConfig$1.key));
227812
228006
  };
227813
228007
  //#endregion
227814
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@_40f0ed42a1f1ef763719c6656513513d/node_modules/@effect/ai-openai/dist/OpenAiClient.js
228008
+ //#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
227815
228009
  /**
227816
228010
  * OpenAI Client module for interacting with OpenAI's API.
227817
228011
  *
@@ -228028,7 +228222,7 @@ const decodeEvent = /* @__PURE__ */ decodeUnknownSync(/* @__PURE__ */ fromJsonSt
228028
228222
  */
228029
228223
  const layerWebSocketMode = /* @__PURE__ */ effectServices(makeSocket);
228030
228224
  //#endregion
228031
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@_40f0ed42a1f1ef763719c6656513513d/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
228225
+ //#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
228032
228226
  /**
228033
228227
  * OpenAI Embedding Model implementation.
228034
228228
  *
@@ -228108,7 +228302,7 @@ const invalidOutput = (description) => make$15({
228108
228302
  reason: new InvalidOutputError({ description })
228109
228303
  });
228110
228304
  //#endregion
228111
- //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@89c3e98_93a464473af948c1df5177f5de78d2bc/node_modules/effect/dist/unstable/ai/OpenAiStructuredOutput.js
228305
+ //#region node_modules/.pnpm/effect@4.0.0-beta.36/node_modules/effect/dist/unstable/ai/OpenAiStructuredOutput.js
228112
228306
  /**
228113
228307
  * Provides codec transformations for OpenAI structured output.
228114
228308
  *
@@ -228413,7 +228607,7 @@ const formats = [
228413
228607
  "uuid"
228414
228608
  ];
228415
228609
  //#endregion
228416
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@_40f0ed42a1f1ef763719c6656513513d/node_modules/@effect/ai-openai/dist/internal/utilities.js
228610
+ //#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
228417
228611
  const finishReasonMap$1 = {
228418
228612
  content_filter: "content-filter",
228419
228613
  function_call: "tool-calls",
@@ -228431,7 +228625,7 @@ const resolveFinishReason$1 = (finishReason, hasToolCalls) => {
228431
228625
  return reason;
228432
228626
  };
228433
228627
  //#endregion
228434
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@_40f0ed42a1f1ef763719c6656513513d/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
228628
+ //#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
228435
228629
  /**
228436
228630
  * OpenAI telemetry attributes for OpenTelemetry integration.
228437
228631
  *
@@ -228460,7 +228654,7 @@ const addGenAIAnnotations$1 = /* @__PURE__ */ dual(2, (span, options) => {
228460
228654
  }
228461
228655
  });
228462
228656
  //#endregion
228463
- //#region node_modules/.pnpm/@effect+ai-openai@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@_40f0ed42a1f1ef763719c6656513513d/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
228657
+ //#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
228464
228658
  /**
228465
228659
  * OpenAI Language Model implementation.
228466
228660
  *
@@ -229208,6 +229402,19 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229208
229402
  let hasToolCalls = false;
229209
229403
  const activeAnnotations = [];
229210
229404
  const activeReasoning = {};
229405
+ const getOrCreateReasoningPart = (itemId, encryptedContent) => {
229406
+ const activePart = activeReasoning[itemId];
229407
+ if (isNotUndefined(activePart)) {
229408
+ if (isNotNullish(encryptedContent)) activePart.encryptedContent = encryptedContent;
229409
+ return activePart;
229410
+ }
229411
+ const reasoningPart = {
229412
+ encryptedContent: isNotNullish(encryptedContent) ? encryptedContent : void 0,
229413
+ summaryParts: {}
229414
+ };
229415
+ activeReasoning[itemId] = reasoningPart;
229416
+ return reasoningPart;
229417
+ };
229211
229418
  const activeToolCalls = {};
229212
229419
  const webSearchTool = options.tools.find((tool) => isProviderDefined(tool) && (tool.name === "OpenAiWebSearch" || tool.name === "OpenAiWebSearchPreview"));
229213
229420
  return stream.pipe(mapEffect$1(fnUntraced(function* (event) {
@@ -229328,7 +229535,8 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229328
229535
  case "function_call":
229329
229536
  activeToolCalls[event.output_index] = {
229330
229537
  id: event.item.call_id,
229331
- name: event.item.name
229538
+ name: event.item.name,
229539
+ functionCall: { emitted: false }
229332
229540
  };
229333
229541
  parts.push({
229334
229542
  type: "tool-params-start",
@@ -229359,19 +229567,18 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229359
229567
  });
229360
229568
  break;
229361
229569
  case "reasoning": {
229362
- const encryptedContent = event.item.encrypted_content ?? void 0;
229363
- activeReasoning[event.item.id] = {
229364
- encryptedContent,
229365
- summaryParts: { 0: "active" }
229366
- };
229367
- parts.push({
229368
- type: "reasoning-start",
229369
- id: `${event.item.id}:0`,
229370
- metadata: { openai: {
229371
- ...makeItemIdMetadata$1(event.item.id),
229372
- ...makeEncryptedContentMetadata(event.item.encrypted_content)
229373
- } }
229374
- });
229570
+ const reasoningPart = getOrCreateReasoningPart(event.item.id, event.item.encrypted_content);
229571
+ if (isUndefined(reasoningPart.summaryParts[0])) {
229572
+ reasoningPart.summaryParts[0] = "active";
229573
+ parts.push({
229574
+ type: "reasoning-start",
229575
+ id: `${event.item.id}:0`,
229576
+ metadata: { openai: {
229577
+ ...makeItemIdMetadata$1(event.item.id),
229578
+ ...makeEncryptedContentMetadata(reasoningPart.encryptedContent)
229579
+ } }
229580
+ });
229581
+ }
229375
229582
  break;
229376
229583
  }
229377
229584
  case "shell_call": {
@@ -229501,6 +229708,11 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229501
229708
  break;
229502
229709
  }
229503
229710
  case "function_call": {
229711
+ const toolCall = activeToolCalls[event.output_index];
229712
+ if (isNotUndefined(toolCall?.functionCall?.emitted) && toolCall.functionCall.emitted) {
229713
+ delete activeToolCalls[event.output_index];
229714
+ break;
229715
+ }
229504
229716
  delete activeToolCalls[event.output_index];
229505
229717
  hasToolCalls = true;
229506
229718
  const toolName = event.item.name;
@@ -229616,13 +229828,13 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229616
229828
  break;
229617
229829
  }
229618
229830
  case "reasoning": {
229619
- const reasoningPart = activeReasoning[event.item.id];
229831
+ const reasoningPart = getOrCreateReasoningPart(event.item.id, event.item.encrypted_content);
229620
229832
  for (const [summaryIndex, status] of Object.entries(reasoningPart.summaryParts)) if (status === "active" || status === "can-conclude") parts.push({
229621
229833
  type: "reasoning-end",
229622
229834
  id: `${event.item.id}:${summaryIndex}`,
229623
229835
  metadata: { openai: {
229624
229836
  ...makeItemIdMetadata$1(event.item.id),
229625
- ...makeEncryptedContentMetadata(event.item.encrypted_content)
229837
+ ...makeEncryptedContentMetadata(reasoningPart.encryptedContent)
229626
229838
  } }
229627
229839
  });
229628
229840
  delete activeReasoning[event.item.id];
@@ -229730,6 +229942,38 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229730
229942
  });
229731
229943
  break;
229732
229944
  }
229945
+ case "response.function_call_arguments.done": {
229946
+ const toolCall = activeToolCalls[event.output_index];
229947
+ if (isNotUndefined(toolCall?.functionCall) && !toolCall.functionCall.emitted) {
229948
+ hasToolCalls = true;
229949
+ const toolParams = yield* try_({
229950
+ try: () => unsafeSecureJsonParse(event.arguments),
229951
+ catch: (cause) => make$15({
229952
+ module: "OpenAiLanguageModel",
229953
+ method: "makeStreamResponse",
229954
+ reason: new ToolParameterValidationError({
229955
+ toolName: toolCall.name,
229956
+ toolParams: {},
229957
+ description: `Failed securely JSON parse tool parameters: ${cause}`
229958
+ })
229959
+ })
229960
+ });
229961
+ const params = yield* transformToolCallParams(options.tools, toolCall.name, toolParams);
229962
+ parts.push({
229963
+ type: "tool-params-end",
229964
+ id: toolCall.id
229965
+ });
229966
+ parts.push({
229967
+ type: "tool-call",
229968
+ id: toolCall.id,
229969
+ name: toolCall.name,
229970
+ params,
229971
+ metadata: { openai: { ...makeItemIdMetadata$1(event.item_id) } }
229972
+ });
229973
+ toolCall.functionCall.emitted = true;
229974
+ }
229975
+ break;
229976
+ }
229733
229977
  case "response.apply_patch_call_operation_diff.delta": {
229734
229978
  const toolCall = activeToolCalls[event.output_index];
229735
229979
  if (isNotUndefined(toolCall?.applyPatch)) {
@@ -229814,23 +230058,23 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229814
230058
  });
229815
230059
  break;
229816
230060
  }
229817
- case "response.reasoning_summary_part.added":
230061
+ case "response.reasoning_summary_part.added": {
230062
+ const reasoningPart = getOrCreateReasoningPart(event.item_id);
229818
230063
  if (event.summary_index > 0) {
229819
- const reasoningPart = activeReasoning[event.item_id];
229820
- if (isNotUndefined(reasoningPart)) {
229821
- for (const [summaryIndex, status] of Object.entries(reasoningPart.summaryParts)) if (status === "can-conclude") {
229822
- parts.push({
229823
- type: "reasoning-end",
229824
- id: `${event.item_id}:${summaryIndex}`,
229825
- metadata: { openai: {
229826
- ...makeItemIdMetadata$1(event.item_id),
229827
- ...makeEncryptedContentMetadata(reasoningPart.encryptedContent)
229828
- } }
229829
- });
229830
- reasoningPart.summaryParts[Number(summaryIndex)] = "concluded";
229831
- }
229832
- reasoningPart.summaryParts[event.summary_index] = "active";
230064
+ for (const [summaryIndex, status] of Object.entries(reasoningPart.summaryParts)) if (status === "can-conclude") {
230065
+ parts.push({
230066
+ type: "reasoning-end",
230067
+ id: `${event.item_id}:${summaryIndex}`,
230068
+ metadata: { openai: {
230069
+ ...makeItemIdMetadata$1(event.item_id),
230070
+ ...makeEncryptedContentMetadata(reasoningPart.encryptedContent)
230071
+ } }
230072
+ });
230073
+ reasoningPart.summaryParts[Number(summaryIndex)] = "concluded";
229833
230074
  }
230075
+ }
230076
+ if (isUndefined(reasoningPart.summaryParts[event.summary_index])) {
230077
+ reasoningPart.summaryParts[event.summary_index] = "active";
229834
230078
  parts.push({
229835
230079
  type: "reasoning-start",
229836
230080
  id: `${event.item_id}:${event.summary_index}`,
@@ -229841,6 +230085,7 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229841
230085
  });
229842
230086
  }
229843
230087
  break;
230088
+ }
229844
230089
  case "response.reasoning_summary_text.delta":
229845
230090
  parts.push({
229846
230091
  type: "reasoning-delta",
@@ -229849,16 +230094,18 @@ const makeStreamResponse$1 = /* @__PURE__ */ fnUntraced(function* ({ stream, res
229849
230094
  metadata: { openai: { ...makeItemIdMetadata$1(event.item_id) } }
229850
230095
  });
229851
230096
  break;
229852
- case "response.reasoning_summary_part.done":
230097
+ case "response.reasoning_summary_part.done": {
230098
+ const reasoningPart = getOrCreateReasoningPart(event.item_id);
229853
230099
  if (config.store === true) {
229854
230100
  parts.push({
229855
230101
  type: "reasoning-end",
229856
230102
  id: `${event.item_id}:${event.summary_index}`,
229857
230103
  metadata: { openai: { ...makeItemIdMetadata$1(event.item_id) } }
229858
230104
  });
229859
- activeReasoning[event.item_id].summaryParts[event.summary_index] = "concluded";
229860
- } else activeReasoning[event.item_id].summaryParts[event.summary_index] = "can-conclude";
230105
+ reasoningPart.summaryParts[event.summary_index] = "concluded";
230106
+ } else reasoningPart.summaryParts[event.summary_index] = "can-conclude";
229861
230107
  break;
230108
+ }
229862
230109
  }
229863
230110
  return parts;
229864
230111
  })), flattenIterable);
@@ -230175,7 +230422,7 @@ const transformToolCallParams = /* @__PURE__ */ fnUntraced(function* (tools, too
230175
230422
  })));
230176
230423
  });
230177
230424
  //#endregion
230178
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/CodexAuth.js
230425
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/CodexAuth.js
230179
230426
  /**
230180
230427
  * @since 1.0.0
230181
230428
  */
@@ -230395,7 +230642,7 @@ var CodexAuth = class CodexAuth extends Service$1()("clanka/CodexAuth") {
230395
230642
  static layerClient = this.layerClientNoDeps.pipe(provide$3(CodexAuth.layer));
230396
230643
  };
230397
230644
  //#endregion
230398
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/Codex.js
230645
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/Codex.js
230399
230646
  /**
230400
230647
  * @since 1.0.0
230401
230648
  */
@@ -230421,7 +230668,7 @@ const layerModel = (model, options) => layer$2({
230421
230668
  }
230422
230669
  }).pipe(merge$6(AgentModelConfig.layer({ systemPromptTransform: (system, effect) => withConfigOverride(effect, { instructions: system }) })));
230423
230670
  //#endregion
230424
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+_befad5c1bff5b88048bb3de34e7e8912/node_modules/@effect/ai-openai-compat/dist/internal/errors.js
230671
+ //#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
230425
230672
  /** @internal */
230426
230673
  const OpenAiErrorBody = /* @__PURE__ */ Struct$2({ error: /* @__PURE__ */ Struct$2({
230427
230674
  message: String$1,
@@ -230629,7 +230876,7 @@ const mapStatusCodeToReason = ({ status, headers, message, metadata, http }) =>
230629
230876
  }
230630
230877
  };
230631
230878
  //#endregion
230632
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+_befad5c1bff5b88048bb3de34e7e8912/node_modules/@effect/ai-openai-compat/dist/OpenAiConfig.js
230879
+ //#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
230633
230880
  /**
230634
230881
  * @since 1.0.0
230635
230882
  */
@@ -230644,7 +230891,7 @@ var OpenAiConfig = class OpenAiConfig extends Service$1()("@effect/ai-openai-com
230644
230891
  static getOrUndefined = /* @__PURE__ */ map$9(/* @__PURE__ */ services(), (context) => context.mapUnsafe.get(OpenAiConfig.key));
230645
230892
  };
230646
230893
  //#endregion
230647
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+_befad5c1bff5b88048bb3de34e7e8912/node_modules/@effect/ai-openai-compat/dist/OpenAiClient.js
230894
+ //#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
230648
230895
  /**
230649
230896
  * @since 1.0.0
230650
230897
  */
@@ -230780,7 +231027,7 @@ const decodeChatCompletionSseData = (data) => {
230780
231027
  return isChatCompletionChunk(parsed) ? parsed : void 0;
230781
231028
  };
230782
231029
  //#endregion
230783
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+_befad5c1bff5b88048bb3de34e7e8912/node_modules/@effect/ai-openai-compat/dist/internal/utilities.js
231030
+ //#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
230784
231031
  const finishReasonMap = {
230785
231032
  content_filter: "content-filter",
230786
231033
  function_call: "tool-calls",
@@ -230796,7 +231043,7 @@ const resolveFinishReason = (finishReason, hasToolCalls) => {
230796
231043
  return reason;
230797
231044
  };
230798
231045
  //#endregion
230799
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+_befad5c1bff5b88048bb3de34e7e8912/node_modules/@effect/ai-openai-compat/dist/OpenAiTelemetry.js
231046
+ //#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
230800
231047
  /**
230801
231048
  * OpenAI telemetry attributes for OpenTelemetry integration.
230802
231049
  *
@@ -230825,7 +231072,7 @@ const addGenAIAnnotations = /* @__PURE__ */ dual(2, (span, options) => {
230825
231072
  }
230826
231073
  });
230827
231074
  //#endregion
230828
- //#region node_modules/.pnpm/@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-TS+effect-smol+_befad5c1bff5b88048bb3de34e7e8912/node_modules/@effect/ai-openai-compat/dist/OpenAiLanguageModel.js
231075
+ //#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
230829
231076
  /**
230830
231077
  * OpenAI Language Model implementation.
230831
231078
  *
@@ -231707,7 +231954,7 @@ const getUsageDetailNumber = (details, field) => {
231707
231954
  return typeof value === "number" ? value : void 0;
231708
231955
  };
231709
231956
  //#endregion
231710
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/CopilotAuth.js
231957
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/CopilotAuth.js
231711
231958
  /**
231712
231959
  * @since 1.0.0
231713
231960
  */
@@ -231898,7 +232145,7 @@ var GithubCopilotAuth = class GithubCopilotAuth extends Service$1()("clanka/Gith
231898
232145
  static layerClient = this.layerClientNoDeps.pipe(provide$3(GithubCopilotAuth.layer));
231899
232146
  };
231900
232147
  //#endregion
231901
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/Copilot.js
232148
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/Copilot.js
231902
232149
  /**
231903
232150
  * @since 1.0.0
231904
232151
  */
@@ -232318,7 +232565,7 @@ Object.defineProperties(createChalk.prototype, styles);
232318
232565
  const chalk = createChalk();
232319
232566
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
232320
232567
  //#endregion
232321
- //#region node_modules/.pnpm/clanka@0.2.19_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_3ecf2271901c4565ca12cd64815ad5c2/node_modules/clanka/dist/OutputFormatter.js
232568
+ //#region node_modules/.pnpm/clanka@0.2.21_@effect+ai-openai-compat@4.0.0-beta.36_effect@4.0.0-beta.36__@effect+ai-o_09288369fd42a7055df614a5b619d2f6/node_modules/clanka/dist/OutputFormatter.js
232322
232569
  /**
232323
232570
  * @since 1.0.0
232324
232571
  */
@@ -232651,19 +232898,34 @@ const LinearIssueSource = effect$1(IssueSource, gen(function* () {
232651
232898
  const presets = yield* getPresetsWithMetadata("linear", PresetMetadata$1);
232652
232899
  const identifierMap = /* @__PURE__ */ new Map();
232653
232900
  const presetMap = /* @__PURE__ */ new Map();
232654
- const backlogState = state.states.find((s) => s.type === "backlog" && s.name.toLowerCase().includes("backlog")) || state.states.find((s) => s.type === "backlog");
232655
- const todoState = state.states.find((s) => s.type === "unstarted" && (s.name.toLowerCase().includes("todo") || s.name.toLowerCase().includes("unstarted"))) || state.states.find((s) => s.type === "unstarted");
232656
- const inProgressState = state.states.find((s) => s.type === "started" && (s.name.toLowerCase().includes("progress") || s.name.toLowerCase().includes("started"))) || state.states.find((s) => s.type === "started");
232657
- const inReviewState = state.states.find((s) => s.type === "started" && s.name.toLowerCase().includes("review")) || state.states.find((s) => s.type === "completed");
232658
- const doneState = state.states.find((s) => s.type === "completed");
232659
- const canceledState = state.states.find((state) => state.type === "canceled");
232660
- const linearStateToPrdState = (state) => {
232901
+ const findState = (teamId, type, names = [], fallbackType = type) => {
232902
+ const filtered = state.states.filter((s) => {
232903
+ if (names.length === 0) return s.type === type;
232904
+ const name = s.name.toLowerCase();
232905
+ return s.type === type && names.some((n) => name.includes(n));
232906
+ });
232907
+ const withTeamId = filtered.filter((s) => s.teamId === teamId);
232908
+ if (withTeamId.length > 0) return withTeamId[0];
232909
+ const withoutTeamId = filtered.filter((s) => s.teamId === void 0);
232910
+ if (withoutTeamId.length > 0) return withoutTeamId[0];
232911
+ return state.states.find((s) => s.type === fallbackType);
232912
+ };
232913
+ const statesForTeamId = memoize((teamId) => ({
232914
+ backlog: findState(teamId, "backlog", ["backlog"]),
232915
+ todo: findState(teamId, "unstarted", ["todo", "unstarted"]),
232916
+ inProgress: findState(teamId, "started", ["progress", "started"]),
232917
+ inReview: findState(teamId, "started", ["review"], "completed"),
232918
+ done: findState(teamId, "completed"),
232919
+ canceled: findState(teamId, "canceled")
232920
+ }));
232921
+ const linearStateToPrdState = (state, teamId) => {
232922
+ const states = statesForTeamId(teamId);
232661
232923
  switch (state.id) {
232662
- case backlogState.id: return "backlog";
232663
- case todoState.id: return "todo";
232664
- case inProgressState.id: return "in-progress";
232665
- case inReviewState.id: return "in-review";
232666
- case doneState.id: return "done";
232924
+ case states.backlog.id: return "backlog";
232925
+ case states.todo.id: return "todo";
232926
+ case states.inProgress.id: return "in-progress";
232927
+ case states.inReview.id: return "in-review";
232928
+ case states.done.id: return "done";
232667
232929
  default:
232668
232930
  if (state.type === "backlog") return "backlog";
232669
232931
  if (state.type === "unstarted") return "todo";
@@ -232672,16 +232934,17 @@ const LinearIssueSource = effect$1(IssueSource, gen(function* () {
232672
232934
  return "backlog";
232673
232935
  }
232674
232936
  };
232675
- const prdStateToLinearStateId = (state) => {
232937
+ const prdStateToLinearStateId = (state, teamId) => {
232938
+ const states = statesForTeamId(teamId);
232676
232939
  switch (state) {
232677
- case "backlog": return backlogState.id;
232678
- case "todo": return todoState.id;
232679
- case "in-progress": return inProgressState.id;
232680
- case "in-review": return inReviewState.id;
232681
- case "done": return doneState.id;
232940
+ case "backlog": return states.backlog.id;
232941
+ case "todo": return states.todo.id;
232942
+ case "in-progress": return states.inProgress.id;
232943
+ case "in-review": return states.inReview.id;
232944
+ case "done": return states.done.id;
232682
232945
  }
232683
232946
  };
232684
- const issues = ({ labelId, projectId, autoMergeLabelId }) => linear.issues({
232947
+ const issues = ({ labelId, projectId, teamId, autoMergeLabelId }) => linear.issues({
232685
232948
  labelId,
232686
232949
  projectId
232687
232950
  }).pipe(mapError$2((cause) => new IssueSourceError({ cause })), map$9((issues) => {
@@ -232699,7 +232962,7 @@ const LinearIssueSource = effect$1(IssueSource, gen(function* () {
232699
232962
  description: issue.description ?? "",
232700
232963
  priority: issue.priority,
232701
232964
  estimate: issue.estimate ?? null,
232702
- state: linearStateToPrdState(issue.state),
232965
+ state: linearStateToPrdState(issue.state, teamId),
232703
232966
  blockedBy: issue.blockedBy.map((r) => r.issue.identifier),
232704
232967
  autoMerge: autoMergeLabelId.pipe(map$16((labelId) => issue.labelIds.includes(labelId)), getOrElse$2(() => false))
232705
232968
  })));
@@ -232709,10 +232972,20 @@ const LinearIssueSource = effect$1(IssueSource, gen(function* () {
232709
232972
  const settings = yield* get$7(projectSettings, projectId);
232710
232973
  return yield* issues({
232711
232974
  projectId: settings.project.id,
232975
+ teamId: settings.teamId,
232712
232976
  labelId: settings.labelId,
232713
232977
  autoMergeLabelId: settings.autoMergeLabelId
232714
232978
  });
232715
232979
  }),
232980
+ findById: fnUntraced(function* (projectId, issueId) {
232981
+ const settings = yield* get$7(projectSettings, projectId);
232982
+ return (yield* issues({
232983
+ projectId: settings.project.id,
232984
+ labelId: settings.labelId,
232985
+ teamId: settings.teamId,
232986
+ autoMergeLabelId: settings.autoMergeLabelId
232987
+ })).find((issue) => issue.id === issueId) ?? null;
232988
+ }),
232716
232989
  createIssue: fnUntraced(function* (projectId, issue) {
232717
232990
  const { teamId, labelId, autoMergeLabelId, project } = yield* get$7(projectSettings, projectId);
232718
232991
  const created = yield* linear.use((c) => c.createIssue({
@@ -232724,7 +232997,7 @@ const LinearIssueSource = effect$1(IssueSource, gen(function* () {
232724
232997
  description: issue.description,
232725
232998
  priority: issue.priority,
232726
232999
  estimate: issue.estimate,
232727
- stateId: prdStateToLinearStateId(issue.state)
233000
+ stateId: prdStateToLinearStateId(issue.state, teamId)
232728
233001
  }));
232729
233002
  const linearIssue = yield* linear.use(() => created.issue);
232730
233003
  identifierMap.set(linearIssue.identifier, linearIssue.id);
@@ -232747,13 +233020,13 @@ const LinearIssueSource = effect$1(IssueSource, gen(function* () {
232747
233020
  };
232748
233021
  }, mapError$2((cause) => new IssueSourceError({ cause }))),
232749
233022
  updateIssue: fnUntraced(function* (options) {
232750
- const { autoMergeLabelId } = yield* get$7(projectSettings, options.projectId);
233023
+ const { autoMergeLabelId, teamId } = yield* get$7(projectSettings, options.projectId);
232751
233024
  const issueId = identifierMap.get(options.issueId);
232752
233025
  const linearIssue = yield* linear.issueById(issueId);
232753
233026
  const update = { labelIds: linearIssue.labelIds.slice() };
232754
233027
  if (options.title) update.title = options.title;
232755
233028
  if (options.description) update.description = options.description;
232756
- if (options.state) update.stateId = prdStateToLinearStateId(options.state);
233029
+ if (options.state) update.stateId = prdStateToLinearStateId(options.state, teamId);
232757
233030
  if (options.autoMerge !== void 0 && isSome(autoMergeLabelId)) {
232758
233031
  const hasLabel = update.labelIds.includes(autoMergeLabelId.value);
232759
233032
  if (options.autoMerge && !hasLabel) update.labelIds.push(autoMergeLabelId.value);
@@ -232776,9 +233049,11 @@ const LinearIssueSource = effect$1(IssueSource, gen(function* () {
232776
233049
  })).pipe(ignore$1), { concurrency: 5 });
232777
233050
  yield* forEach$4(toRemove, (relation) => linear.use((c) => c.deleteIssueRelation(relation.id)).pipe(ignore$1), { concurrency: 5 });
232778
233051
  }, mapError$2((cause) => new IssueSourceError({ cause }))),
232779
- cancelIssue: fnUntraced(function* (_project, issueId) {
233052
+ cancelIssue: fnUntraced(function* (projectId, issueId) {
233053
+ const { teamId } = yield* get$7(projectSettings, projectId);
233054
+ const states = statesForTeamId(teamId);
232780
233055
  const linearIssueId = identifierMap.get(issueId);
232781
- yield* linear.use((c) => c.updateIssue(linearIssueId, { stateId: canceledState.id }));
233056
+ yield* linear.use((c) => c.updateIssue(linearIssueId, { stateId: states.canceled.id }));
232782
233057
  }, mapError$2((cause) => new IssueSourceError({ cause }))),
232783
233058
  reset: gen(function* () {
232784
233059
  const projectId = yield* CurrentProjectId;
@@ -233042,11 +233317,22 @@ var LinearState = class extends Class$1()("lalph/LinearState", {
233042
233317
  states: Array$1(Struct$2({
233043
233318
  id: String$1,
233044
233319
  name: String$1,
233045
- type: String$1
233320
+ type: String$1,
233321
+ teamId: optional$3(String$1)
233046
233322
  })),
233047
233323
  viewer: Struct$2({ id: String$1 })
233048
233324
  })
233049
233325
  }) {};
233326
+ const memoize = (f) => {
233327
+ const cache = /* @__PURE__ */ new Map();
233328
+ return (a) => {
233329
+ const cached = cache.get(a);
233330
+ if (cached) return cached;
233331
+ const b = f(a);
233332
+ cache.set(a, b);
233333
+ return b;
233334
+ };
233335
+ };
233050
233336
  //#endregion
233051
233337
  //#region node_modules/.pnpm/universal-user-agent@7.0.3/node_modules/universal-user-agent/index.js
233052
233338
  function getUserAgent() {
@@ -239528,6 +239814,9 @@ const GithubIssueSource = effect$1(IssueSource, gen(function* () {
239528
239814
  issues: fnUntraced(function* (projectId) {
239529
239815
  return yield* issues(yield* get$7(projectSettings, projectId));
239530
239816
  }),
239817
+ findById: fnUntraced(function* (projectId, issueId) {
239818
+ return (yield* issues(yield* get$7(projectSettings, projectId))).find((issue) => issue.id === issueId) ?? null;
239819
+ }),
239531
239820
  createIssue: fnUntraced(function* (projectId, issue) {
239532
239821
  const { labelFilter, autoMergeLabelName } = yield* get$7(projectSettings, projectId);
239533
239822
  const created = yield* createIssue({
@@ -239850,6 +240139,7 @@ var CurrentIssueSource = class CurrentIssueSource extends Service$1()("lalph/Cur
239850
240139
  })));
239851
240140
  const proxy = IssueSource.of({
239852
240141
  issues: (projectId) => get$6(ref).pipe(flatMap$4((source) => source.issues(projectId)), tapErrorTag("IssueSourceError", (e) => logWarning("Rebuilding issue source due to error", fail$7(e)).pipe(andThen(ignore$1(refresh)))), retry$3(refreshSchedule), unlessRalph(projectId, succeed$3([]))),
240142
+ findById: (projectId, issueId) => get$6(ref).pipe(flatMap$4((source) => source.findById(projectId, issueId)), unlessRalph(projectId, succeed$3(null))),
239853
240143
  createIssue: (projectId, options) => get$6(ref).pipe(flatMap$4((source) => source.createIssue(projectId, options)), unlessRalph(projectId, interrupt$1)),
239854
240144
  updateIssue: (options) => get$6(ref).pipe(flatMap$4((source) => source.updateIssue(options)), unlessRalph(options.projectId, void_$2)),
239855
240145
  cancelIssue: (projectId, issueId) => get$6(ref).pipe(flatMap$4((source) => source.cancelIssue(projectId, issueId)), unlessRalph(projectId, void_$2)),
@@ -240829,7 +241119,7 @@ var CurrentTaskRef = class CurrentTaskRef extends Service$1()("lalph/TaskTools/C
240829
241119
  return serviceOption(CurrentTaskRef).pipe(map$9(map$16((ref) => updateAndGet(ref, f))));
240830
241120
  }
240831
241121
  };
240832
- const TaskList = Array$1(Struct$2({
241122
+ const Task = Struct$2({
240833
241123
  id: String$1.annotate({ documentation: "The unique identifier of the task." }),
240834
241124
  ...pick$1(PrdIssue.fields, [
240835
241125
  "title",
@@ -240838,7 +241128,8 @@ const TaskList = Array$1(Struct$2({
240838
241128
  "priority",
240839
241129
  "blockedBy"
240840
241130
  ])
240841
- }));
241131
+ });
241132
+ const TaskList = Array$1(Task);
240842
241133
  const toTaskListItem = (issue) => ({
240843
241134
  id: issue.id ?? "",
240844
241135
  title: issue.title,
@@ -240862,6 +241153,11 @@ var TaskTools = class extends make$14(make$13("listTasks", {
240862
241153
  }),
240863
241154
  success: String$1,
240864
241155
  dependencies: [CurrentProjectId]
241156
+ }), make$13("findTaskById", {
241157
+ description: "Find a task by it's id. Returns null if not found.",
241158
+ parameters: String$1.annotate({ identifier: "taskId" }),
241159
+ success: NullOr(Task),
241160
+ dependencies: [CurrentProjectId]
240865
241161
  }), make$13("updateTask", {
240866
241162
  description: "Update a task. Supports partial updates",
240867
241163
  parameters: Struct$2({
@@ -240917,6 +241213,12 @@ const TaskToolsHandlers = TaskToolsWithChoose.toLayer(gen(function* () {
240917
241213
  autoMerge: false
240918
241214
  }))).id;
240919
241215
  }, orDie$2),
241216
+ findTaskById: fn("TaskTools.findTaskById")(function* (taskId) {
241217
+ yield* log$1(`Calling "findTaskById"`).pipe(annotateLogs({ taskId }));
241218
+ const projectId = yield* CurrentProjectId;
241219
+ const task = yield* source.findById(projectId, taskId);
241220
+ return task ? toTaskListItem(task) : null;
241221
+ }, orDie$2),
240920
241222
  updateTask: fn("TaskTools.updateTask")(function* (options) {
240921
241223
  yield* log$1(`Calling "updateTask"`).pipe(annotateLogs({ taskId: options.taskId }));
240922
241224
  const projectId = yield* CurrentProjectId;
@@ -241989,7 +242291,7 @@ const commandEdit = make$58("edit").pipe(withDescription("Open the selected proj
241989
242291
  const commandSource = make$58("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));
241990
242292
  //#endregion
241991
242293
  //#region package.json
241992
- var version = "0.3.92";
242294
+ var version = "0.3.94";
241993
242295
  //#endregion
241994
242296
  //#region src/commands/projects/ls.ts
241995
242297
  const commandProjectsLs = make$58("ls").pipe(withDescription("List configured projects and how they run (enabled state, concurrency, branch, git flow, review agent)."), withHandler(fnUntraced(function* () {