@effect/language-service 0.24.2 → 0.25.0

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/cli.js CHANGED
@@ -78,9 +78,9 @@ var dual = function(arity, body) {
78
78
  if (arguments.length >= arity) {
79
79
  return body.apply(this, arguments);
80
80
  }
81
- const args2 = arguments;
81
+ const args3 = arguments;
82
82
  return function(self) {
83
- return body(self, ...args2);
83
+ return body(self, ...args3);
84
84
  };
85
85
  };
86
86
  }
@@ -184,7 +184,6 @@ var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue
184
184
 
185
185
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Utils.js
186
186
  var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
187
- var isGenKind = (u) => isObject(u) && GenKindTypeId in u;
188
187
  var GenKindImpl = class {
189
188
  value;
190
189
  constructor(value5) {
@@ -663,32 +662,32 @@ var redact = (u) => {
663
662
  };
664
663
 
665
664
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Pipeable.js
666
- var pipeArguments = (self, args2) => {
667
- switch (args2.length) {
665
+ var pipeArguments = (self, args3) => {
666
+ switch (args3.length) {
668
667
  case 0:
669
668
  return self;
670
669
  case 1:
671
- return args2[0](self);
670
+ return args3[0](self);
672
671
  case 2:
673
- return args2[1](args2[0](self));
672
+ return args3[1](args3[0](self));
674
673
  case 3:
675
- return args2[2](args2[1](args2[0](self)));
674
+ return args3[2](args3[1](args3[0](self)));
676
675
  case 4:
677
- return args2[3](args2[2](args2[1](args2[0](self))));
676
+ return args3[3](args3[2](args3[1](args3[0](self))));
678
677
  case 5:
679
- return args2[4](args2[3](args2[2](args2[1](args2[0](self)))));
678
+ return args3[4](args3[3](args3[2](args3[1](args3[0](self)))));
680
679
  case 6:
681
- return args2[5](args2[4](args2[3](args2[2](args2[1](args2[0](self))))));
680
+ return args3[5](args3[4](args3[3](args3[2](args3[1](args3[0](self))))));
682
681
  case 7:
683
- return args2[6](args2[5](args2[4](args2[3](args2[2](args2[1](args2[0](self)))))));
682
+ return args3[6](args3[5](args3[4](args3[3](args3[2](args3[1](args3[0](self)))))));
684
683
  case 8:
685
- return args2[7](args2[6](args2[5](args2[4](args2[3](args2[2](args2[1](args2[0](self))))))));
684
+ return args3[7](args3[6](args3[5](args3[4](args3[3](args3[2](args3[1](args3[0](self))))))));
686
685
  case 9:
687
- return args2[8](args2[7](args2[6](args2[5](args2[4](args2[3](args2[2](args2[1](args2[0](self)))))))));
686
+ return args3[8](args3[7](args3[6](args3[5](args3[4](args3[3](args3[2](args3[1](args3[0](self)))))))));
688
687
  default: {
689
688
  let ret = self;
690
- for (let i = 0, len = args2.length; i < len; i++) {
691
- ret = args2[i](ret);
689
+ for (let i = 0, len = args3.length; i < len; i++) {
690
+ ret = args3[i](ret);
692
691
  }
693
692
  return ret;
694
693
  }
@@ -3065,12 +3064,12 @@ var prettyErrorStack = (message, stack, span2) => {
3065
3064
  const stack2 = stackFn();
3066
3065
  if (typeof stack2 === "string") {
3067
3066
  const locationMatchAll = stack2.matchAll(locationRegex);
3068
- let match17 = false;
3067
+ let match18 = false;
3069
3068
  for (const [, location] of locationMatchAll) {
3070
- match17 = true;
3069
+ match18 = true;
3071
3070
  out.push(` at ${current.name} (${location})`);
3072
3071
  }
3073
- if (!match17) {
3072
+ if (!match18) {
3074
3073
  out.push(` at ${current.name} (${stack2.replace(/^at /, "")})`);
3075
3074
  }
3076
3075
  } else {
@@ -3124,9 +3123,9 @@ var decode = (input) => {
3124
3123
  }
3125
3124
  return nanos(BigInt(Math.round(input[0] * 1e9)) + BigInt(Math.round(input[1])));
3126
3125
  } else if (isString(input)) {
3127
- const match17 = DURATION_REGEX.exec(input);
3128
- if (match17) {
3129
- const [_, valueStr, unit] = match17;
3126
+ const match18 = DURATION_REGEX.exec(input);
3127
+ if (match18) {
3128
+ const [_, valueStr, unit] = match18;
3130
3129
  const value5 = Number(valueStr);
3131
3130
  switch (unit) {
3132
3131
  case "nano":
@@ -3746,9 +3745,9 @@ var ArrayProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Arr
3746
3745
  }
3747
3746
  });
3748
3747
  var Structural = /* @__PURE__ */ function() {
3749
- function Structural2(args2) {
3750
- if (args2) {
3751
- Object.assign(this, args2);
3748
+ function Structural2(args3) {
3749
+ if (args3) {
3750
+ Object.assign(this, args3);
3752
3751
  }
3753
3752
  }
3754
3753
  Structural2.prototype = StructuralPrototype;
@@ -4712,13 +4711,13 @@ var exit = (self) => matchCause(self, {
4712
4711
  onSuccess: exitSucceed
4713
4712
  });
4714
4713
  var fail2 = (error4) => isObject(error4) && !(spanSymbol in error4) ? withFiberRuntime((fiber) => failCause(fail(capture(error4, currentSpanFromFiber(fiber))))) : failCause(fail(error4));
4715
- var failSync = (evaluate2) => flatMap7(sync(evaluate2), fail2);
4714
+ var failSync = (evaluate3) => flatMap7(sync(evaluate3), fail2);
4716
4715
  var failCause = (cause2) => {
4717
4716
  const effect3 = new EffectPrimitiveFailure(OP_FAILURE);
4718
4717
  effect3.effect_instruction_i0 = cause2;
4719
4718
  return effect3;
4720
4719
  };
4721
- var failCauseSync = (evaluate2) => flatMap7(sync(evaluate2), failCause);
4720
+ var failCauseSync = (evaluate3) => flatMap7(sync(evaluate3), failCause);
4722
4721
  var fiberId = /* @__PURE__ */ withFiberRuntime((state) => succeed(state.id()));
4723
4722
  var fiberIdWith = (f) => withFiberRuntime((state) => f(state.id()));
4724
4723
  var flatMap7 = /* @__PURE__ */ dual(2, (self, f) => {
@@ -4838,9 +4837,9 @@ var succeed = (value5) => {
4838
4837
  effect3.effect_instruction_i0 = value5;
4839
4838
  return effect3;
4840
4839
  };
4841
- var suspend = (evaluate2) => {
4840
+ var suspend = (evaluate3) => {
4842
4841
  const effect3 = new EffectPrimitive(OP_COMMIT);
4843
- effect3.commit = evaluate2;
4842
+ effect3.commit = evaluate3;
4844
4843
  return effect3;
4845
4844
  };
4846
4845
  var sync = (thunk) => {
@@ -4848,7 +4847,7 @@ var sync = (thunk) => {
4848
4847
  effect3.effect_instruction_i0 = thunk;
4849
4848
  return effect3;
4850
4849
  };
4851
- var tap = /* @__PURE__ */ dual((args2) => args2.length === 3 || args2.length === 2 && !(isObject(args2[1]) && "onlyEffect" in args2[1]), (self, f) => flatMap7(self, (a) => {
4850
+ var tap = /* @__PURE__ */ dual((args3) => args3.length === 3 || args3.length === 2 && !(isObject(args3[1]) && "onlyEffect" in args3[1]), (self, f) => flatMap7(self, (a) => {
4852
4851
  const b = typeof f === "function" ? f(a) : f;
4853
4852
  if (isEffect(b)) {
4854
4853
  return as(b, a);
@@ -5984,9 +5983,9 @@ var indicesFrom = (quotedIndices) => pipe(forEachSequential(quotedIndices, parse
5984
5983
  }), either2, map10(merge));
5985
5984
  var QUOTED_INDEX_REGEX = /^(\[(\d+)\])$/;
5986
5985
  var parseQuotedIndex = (str) => {
5987
- const match17 = str.match(QUOTED_INDEX_REGEX);
5988
- if (match17 !== null) {
5989
- const matchedIndex = match17[2];
5986
+ const match18 = str.match(QUOTED_INDEX_REGEX);
5987
+ if (match18 !== null) {
5988
+ const matchedIndex = match18[2];
5990
5989
  return pipe(matchedIndex !== void 0 && matchedIndex.length > 0 ? some2(matchedIndex) : none2(), flatMap(parseInteger));
5991
5990
  }
5992
5991
  return none2();
@@ -6001,9 +6000,9 @@ var TypeId8 = /* @__PURE__ */ Symbol.for("effect/Console");
6001
6000
  var consoleTag = /* @__PURE__ */ GenericTag("effect/Console");
6002
6001
  var defaultConsole = {
6003
6002
  [TypeId8]: TypeId8,
6004
- assert(condition, ...args2) {
6003
+ assert(condition, ...args3) {
6005
6004
  return sync(() => {
6006
- console.assert(condition, ...args2);
6005
+ console.assert(condition, ...args3);
6007
6006
  });
6008
6007
  },
6009
6008
  clear: /* @__PURE__ */ sync(() => {
@@ -6019,9 +6018,9 @@ var defaultConsole = {
6019
6018
  console.countReset(label);
6020
6019
  });
6021
6020
  },
6022
- debug(...args2) {
6021
+ debug(...args3) {
6023
6022
  return sync(() => {
6024
- console.debug(...args2);
6023
+ console.debug(...args3);
6025
6024
  });
6026
6025
  },
6027
6026
  dir(item, options3) {
@@ -6029,14 +6028,14 @@ var defaultConsole = {
6029
6028
  console.dir(item, options3);
6030
6029
  });
6031
6030
  },
6032
- dirxml(...args2) {
6031
+ dirxml(...args3) {
6033
6032
  return sync(() => {
6034
- console.dirxml(...args2);
6033
+ console.dirxml(...args3);
6035
6034
  });
6036
6035
  },
6037
- error(...args2) {
6036
+ error(...args3) {
6038
6037
  return sync(() => {
6039
- console.error(...args2);
6038
+ console.error(...args3);
6040
6039
  });
6041
6040
  },
6042
6041
  group(options3) {
@@ -6045,14 +6044,14 @@ var defaultConsole = {
6045
6044
  groupEnd: /* @__PURE__ */ sync(() => {
6046
6045
  console.groupEnd();
6047
6046
  }),
6048
- info(...args2) {
6047
+ info(...args3) {
6049
6048
  return sync(() => {
6050
- console.info(...args2);
6049
+ console.info(...args3);
6051
6050
  });
6052
6051
  },
6053
- log(...args2) {
6052
+ log(...args3) {
6054
6053
  return sync(() => {
6055
- console.log(...args2);
6054
+ console.log(...args3);
6056
6055
  });
6057
6056
  },
6058
6057
  table(tabularData, properties) {
@@ -6066,19 +6065,19 @@ var defaultConsole = {
6066
6065
  timeEnd(label) {
6067
6066
  return sync(() => console.timeEnd(label));
6068
6067
  },
6069
- timeLog(label, ...args2) {
6068
+ timeLog(label, ...args3) {
6070
6069
  return sync(() => {
6071
- console.timeLog(label, ...args2);
6070
+ console.timeLog(label, ...args3);
6072
6071
  });
6073
6072
  },
6074
- trace(...args2) {
6073
+ trace(...args3) {
6075
6074
  return sync(() => {
6076
- console.trace(...args2);
6075
+ console.trace(...args3);
6077
6076
  });
6078
6077
  },
6079
- warn(...args2) {
6078
+ warn(...args3) {
6080
6079
  return sync(() => {
6081
- console.warn(...args2);
6080
+ console.warn(...args3);
6082
6081
  });
6083
6082
  },
6084
6083
  unsafe: console
@@ -7594,39 +7593,39 @@ var make27 = (key, value5) => {
7594
7593
  var isMetricLabel = (u) => hasProperty(u, MetricLabelTypeId);
7595
7594
 
7596
7595
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/internal/core-effect.js
7597
- var annotateLogs = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), function() {
7598
- const args2 = arguments;
7599
- return fiberRefLocallyWith(args2[0], currentLogAnnotations, typeof args2[1] === "string" ? set3(args2[1], args2[2]) : (annotations2) => Object.entries(args2[1]).reduce((acc, [key, value5]) => set3(acc, key, value5), annotations2));
7596
+ var annotateLogs = /* @__PURE__ */ dual((args3) => isEffect(args3[0]), function() {
7597
+ const args3 = arguments;
7598
+ return fiberRefLocallyWith(args3[0], currentLogAnnotations, typeof args3[1] === "string" ? set3(args3[1], args3[2]) : (annotations2) => Object.entries(args3[1]).reduce((acc, [key, value5]) => set3(acc, key, value5), annotations2));
7600
7599
  });
7601
7600
  var asSome = (self) => map10(self, some2);
7602
7601
  var try_ = (arg) => {
7603
- let evaluate2;
7602
+ let evaluate3;
7604
7603
  let onFailure = void 0;
7605
7604
  if (typeof arg === "function") {
7606
- evaluate2 = arg;
7605
+ evaluate3 = arg;
7607
7606
  } else {
7608
- evaluate2 = arg.try;
7607
+ evaluate3 = arg.try;
7609
7608
  onFailure = arg.catch;
7610
7609
  }
7611
7610
  return suspend(() => {
7612
7611
  try {
7613
- return succeed(internalCall(evaluate2));
7612
+ return succeed(internalCall(evaluate3));
7614
7613
  } catch (error4) {
7615
7614
  return fail2(onFailure ? internalCall(() => onFailure(error4)) : new UnknownException(error4, "An unknown error occurred in Effect.try"));
7616
7615
  }
7617
7616
  });
7618
7617
  };
7619
- var catchTag = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, ...args2) => {
7620
- const f = args2[args2.length - 1];
7618
+ var catchTag = /* @__PURE__ */ dual((args3) => isEffect(args3[0]), (self, ...args3) => {
7619
+ const f = args3[args3.length - 1];
7621
7620
  let predicate;
7622
- if (args2.length === 2) {
7623
- predicate = isTagged(args2[0]);
7621
+ if (args3.length === 2) {
7622
+ predicate = isTagged(args3[0]);
7624
7623
  } else {
7625
7624
  predicate = (e) => {
7626
7625
  const tag4 = hasProperty(e, "_tag") ? e["_tag"] : void 0;
7627
7626
  if (!tag4) return false;
7628
- for (let i = 0; i < args2.length - 1; i++) {
7629
- if (args2[i] === tag4) return true;
7627
+ for (let i = 0; i < args3.length - 1; i++) {
7628
+ if (args3[i] === tag4) return true;
7630
7629
  }
7631
7630
  return false;
7632
7631
  };
@@ -7682,7 +7681,7 @@ var mapErrorCause = /* @__PURE__ */ dual(2, (self, f) => matchCauseEffect(self,
7682
7681
  onSuccess: succeed
7683
7682
  }));
7684
7683
  var negate = (self) => map10(self, (b) => !b);
7685
- var orElseFail = /* @__PURE__ */ dual(2, (self, evaluate2) => orElse2(self, () => failSync(evaluate2)));
7684
+ var orElseFail = /* @__PURE__ */ dual(2, (self, evaluate3) => orElse2(self, () => failSync(evaluate3)));
7686
7685
  var patchFiberRefs = (patch9) => updateFiberRefs((fiberId2, fiberRefs3) => pipe(patch9, patch6(fiberId2, fiberRefs3)));
7687
7686
  var provideService = /* @__PURE__ */ dual(3, (self, tag4, service3) => contextWithEffect((env2) => provideContext(self, add2(env2, tag4, service3))));
7688
7687
  var provideServiceEffect = /* @__PURE__ */ dual(3, (self, tag4, effect3) => contextWithEffect((env2) => flatMap7(effect3, (service3) => provideContext(self, pipe(env2, add2(tag4, service3))))));
@@ -7696,19 +7695,19 @@ var tapErrorCause = /* @__PURE__ */ dual(2, (self, f) => matchCauseEffect(self,
7696
7695
  onSuccess: succeed
7697
7696
  }));
7698
7697
  var tryPromise = (arg) => {
7699
- let evaluate2;
7698
+ let evaluate3;
7700
7699
  let catcher = void 0;
7701
7700
  if (typeof arg === "function") {
7702
- evaluate2 = arg;
7701
+ evaluate3 = arg;
7703
7702
  } else {
7704
- evaluate2 = arg.try;
7703
+ evaluate3 = arg.try;
7705
7704
  catcher = arg.catch;
7706
7705
  }
7707
7706
  const fail19 = (e) => catcher ? failSync(() => catcher(e)) : fail2(new UnknownException(e, "An unknown error occurred in Effect.tryPromise"));
7708
- if (evaluate2.length >= 1) {
7707
+ if (evaluate3.length >= 1) {
7709
7708
  return async_((resolve3, signal) => {
7710
7709
  try {
7711
- evaluate2(signal).then((a) => resolve3(exitSucceed(a)), (e) => resolve3(fail19(e)));
7710
+ evaluate3(signal).then((a) => resolve3(exitSucceed(a)), (e) => resolve3(fail19(e)));
7712
7711
  } catch (e) {
7713
7712
  resolve3(fail19(e));
7714
7713
  }
@@ -7716,7 +7715,7 @@ var tryPromise = (arg) => {
7716
7715
  }
7717
7716
  return async_((resolve3) => {
7718
7717
  try {
7719
- evaluate2().then((a) => resolve3(exitSucceed(a)), (e) => resolve3(fail19(e)));
7718
+ evaluate3().then((a) => resolve3(exitSucceed(a)), (e) => resolve3(fail19(e)));
7720
7719
  } catch (e) {
7721
7720
  resolve3(fail19(e));
7722
7721
  }
@@ -11264,7 +11263,7 @@ var tracerLogger = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effec
11264
11263
  span2.value.event(toStringUnknown(Array.isArray(message) ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
11265
11264
  }));
11266
11265
  var currentLoggers = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLoggers"), () => fiberRefUnsafeMakeHashSet(make11(defaultLogger, tracerLogger)));
11267
- var acquireRelease = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (acquire, release) => uninterruptible(tap(acquire, (a) => addFinalizer((exit4) => release(a, exit4)))));
11266
+ var acquireRelease = /* @__PURE__ */ dual((args3) => isEffect(args3[0]), (acquire, release) => uninterruptible(tap(acquire, (a) => addFinalizer((exit4) => release(a, exit4)))));
11268
11267
  var addFinalizer = (finalizer2) => withFiberRuntime((runtime5) => {
11269
11268
  const acquireRefs = runtime5.getFiberRefs();
11270
11269
  const acquireFlags = disable2(runtime5.currentRuntimeFlags, Interruption);
@@ -11280,7 +11279,7 @@ var addFinalizer = (finalizer2) => withFiberRuntime((runtime5) => {
11280
11279
  }));
11281
11280
  })));
11282
11281
  });
11283
- var filter6 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, predicate, options3) => {
11282
+ var filter6 = /* @__PURE__ */ dual((args3) => isIterable(args3[0]) && !isEffect(args3[0]), (elements, predicate, options3) => {
11284
11283
  const predicate_ = options3?.negate ? (a, i) => map10(predicate(a, i), not) : predicate;
11285
11284
  return matchSimple(options3?.concurrency, () => suspend(() => fromIterable(elements).reduceRight((effect3, a, i) => zipWith2(effect3, suspend(() => predicate_(a, i)), (list4, b) => b ? [a, ...list4] : list4), sync(() => new Array()))), () => map10(forEach7(elements, (a, i) => map10(predicate_(a, i), (b) => b ? some2(a) : none2()), options3), getSomes));
11286
11285
  });
@@ -11360,7 +11359,7 @@ var all3 = (arg, options3) => {
11360
11359
  }
11361
11360
  return options3?.discard !== true && reconcile._tag === "Some" ? map10(forEach7(effects, identity, options3), reconcile.value) : forEach7(effects, identity, options3);
11362
11361
  };
11363
- var forEach7 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]), (self, f, options3) => withFiberRuntime((r) => {
11362
+ var forEach7 = /* @__PURE__ */ dual((args3) => isIterable(args3[0]), (self, f, options3) => withFiberRuntime((r) => {
11364
11363
  const isRequestBatchingEnabled = options3?.batching === true || options3?.batching === "inherit" && r.getFiberRef(currentRequestBatching);
11365
11364
  if (options3?.discard) {
11366
11365
  return match7(options3.concurrency, () => finalizersMaskInternal(sequential3, options3?.concurrentFinalizers)((restore) => isRequestBatchingEnabled ? forEachConcurrentDiscard(self, (a, i) => restore(f(a, i)), true, false, 1) : forEachSequentialDiscard(self, (a, i) => restore(f(a, i)))), () => finalizersMaskInternal(parallel3, options3?.concurrentFinalizers)((restore) => forEachConcurrentDiscard(self, (a, i) => restore(f(a, i)), isRequestBatchingEnabled, false)), (n) => finalizersMaskInternal(parallelN2(n), options3?.concurrentFinalizers)((restore) => forEachConcurrentDiscard(self, (a, i) => restore(f(a, i)), isRequestBatchingEnabled, false, n)));
@@ -11612,20 +11611,20 @@ var sequentialFinalizers = (self) => contextWithEffect((context7) => match2(getO
11612
11611
  }
11613
11612
  }
11614
11613
  }));
11615
- var zipOptions = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options3) => zipWithOptions(self, that, (a, b) => [a, b], options3));
11616
- var zipLeftOptions = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options3) => {
11614
+ var zipOptions = /* @__PURE__ */ dual((args3) => isEffect(args3[1]), (self, that, options3) => zipWithOptions(self, that, (a, b) => [a, b], options3));
11615
+ var zipLeftOptions = /* @__PURE__ */ dual((args3) => isEffect(args3[1]), (self, that, options3) => {
11617
11616
  if (options3?.concurrent !== true && (options3?.batching === void 0 || options3.batching === false)) {
11618
11617
  return zipLeft(self, that);
11619
11618
  }
11620
11619
  return zipWithOptions(self, that, (a, _) => a, options3);
11621
11620
  });
11622
- var zipRightOptions = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options3) => {
11621
+ var zipRightOptions = /* @__PURE__ */ dual((args3) => isEffect(args3[1]), (self, that, options3) => {
11623
11622
  if (options3?.concurrent !== true && (options3?.batching === void 0 || options3.batching === false)) {
11624
11623
  return zipRight(self, that);
11625
11624
  }
11626
11625
  return zipWithOptions(self, that, (_, b) => b, options3);
11627
11626
  });
11628
- var zipWithOptions = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, f, options3) => map10(all3([self, that], {
11627
+ var zipWithOptions = /* @__PURE__ */ dual((args3) => isEffect(args3[1]), (self, that, f, options3) => map10(all3([self, that], {
11629
11628
  concurrency: options3?.concurrent ? 2 : 1,
11630
11629
  batching: options3?.batching,
11631
11630
  concurrentFinalizers: options3?.concurrentFinalizers
@@ -12161,7 +12160,7 @@ var join3 = join2;
12161
12160
  var makeDual = (f) => function() {
12162
12161
  if (arguments.length === 1) {
12163
12162
  const runtime5 = arguments[0];
12164
- return (effect3, ...args2) => f(runtime5, effect3, ...args2);
12163
+ return (effect3, ...args3) => f(runtime5, effect3, ...args3);
12165
12164
  }
12166
12165
  return f.apply(this, arguments);
12167
12166
  };
@@ -12500,11 +12499,11 @@ var succeed6 = /* @__PURE__ */ dual(2, (a, b) => {
12500
12499
  const resource = tagFirst ? b : a;
12501
12500
  return fromEffectContext(succeed(make6(tag4, resource)));
12502
12501
  });
12503
- var suspend3 = (evaluate2) => {
12504
- const suspend11 = Object.create(proto3);
12505
- suspend11._op_layer = OP_SUSPEND;
12506
- suspend11.evaluate = evaluate2;
12507
- return suspend11;
12502
+ var suspend3 = (evaluate3) => {
12503
+ const suspend12 = Object.create(proto3);
12504
+ suspend12._op_layer = OP_SUSPEND;
12505
+ suspend12.evaluate = evaluate3;
12506
+ return suspend12;
12508
12507
  };
12509
12508
  var provide = /* @__PURE__ */ dual(2, (self, that) => suspend3(() => {
12510
12509
  const provideTo = Object.create(proto3);
@@ -12583,13 +12582,13 @@ var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
12583
12582
 
12584
12583
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/internal/console.js
12585
12584
  var consoleWith = (f) => fiberRefGetWith(currentServices, (services) => f(get3(services, consoleTag)));
12586
- var error = (...args2) => consoleWith((_) => _.error(...args2));
12587
- var log = (...args2) => consoleWith((_) => _.log(...args2));
12585
+ var error = (...args3) => consoleWith((_) => _.error(...args3));
12586
+ var log = (...args3) => consoleWith((_) => _.log(...args3));
12588
12587
 
12589
12588
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Data.js
12590
12589
  var struct2 = struct;
12591
- var tagged2 = (tag4) => (args2) => {
12592
- const value5 = args2 === void 0 ? Object.create(StructuralPrototype) : struct2(args2);
12590
+ var tagged2 = (tag4) => (args3) => {
12591
+ const value5 = args3 === void 0 ? Object.create(StructuralPrototype) : struct2(args3);
12593
12592
  value5._tag = tag4;
12594
12593
  return value5;
12595
12594
  };
@@ -12618,14 +12617,14 @@ var Error3 = /* @__PURE__ */ function() {
12618
12617
  const plainArgsSymbol = /* @__PURE__ */ Symbol.for("effect/Data/Error/plainArgs");
12619
12618
  const O = {
12620
12619
  BaseEffectError: class extends YieldableError {
12621
- constructor(args2) {
12622
- super(args2?.message, args2?.cause ? {
12623
- cause: args2.cause
12620
+ constructor(args3) {
12621
+ super(args3?.message, args3?.cause ? {
12622
+ cause: args3.cause
12624
12623
  } : void 0);
12625
- if (args2) {
12626
- Object.assign(this, args2);
12624
+ if (args3) {
12625
+ Object.assign(this, args3);
12627
12626
  Object.defineProperty(this, plainArgsSymbol, {
12628
- value: args2,
12627
+ value: args3,
12629
12628
  enumerable: false
12630
12629
  });
12631
12630
  }
@@ -13460,10 +13459,10 @@ var color = (color3) => make42({
13460
13459
  var black2 = /* @__PURE__ */ color(black);
13461
13460
  var red3 = /* @__PURE__ */ color(red);
13462
13461
  var green2 = /* @__PURE__ */ color(green);
13462
+ var yellow2 = /* @__PURE__ */ color(yellow);
13463
13463
  var white3 = /* @__PURE__ */ color(white);
13464
13464
  var blackBright = /* @__PURE__ */ brightColor(black);
13465
13465
  var redBright = /* @__PURE__ */ brightColor(red);
13466
- var yellowBright = /* @__PURE__ */ brightColor(yellow);
13467
13466
  var blueBright = /* @__PURE__ */ brightColor(blue);
13468
13467
  var cyanBright = /* @__PURE__ */ brightColor(cyan);
13469
13468
  var beep = /* @__PURE__ */ make42({
@@ -13568,10 +13567,10 @@ var color2 = color;
13568
13567
  var black3 = black2;
13569
13568
  var red4 = red3;
13570
13569
  var green3 = green2;
13570
+ var yellow3 = yellow2;
13571
13571
  var white4 = white3;
13572
13572
  var blackBright2 = blackBright;
13573
13573
  var redBright2 = redBright;
13574
- var yellowBright2 = yellowBright;
13575
13574
  var blueBright2 = blueBright;
13576
13575
  var cyanBright2 = cyanBright;
13577
13576
  var combine10 = combine9;
@@ -14580,7 +14579,7 @@ var Deep = {
14580
14579
  };
14581
14580
  var optimize3 = optimize2;
14582
14581
 
14583
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/helpDoc/span.js
14582
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/helpDoc/span.js
14584
14583
  var text4 = (value5) => ({
14585
14584
  _tag: "Text",
14586
14585
  value: value5
@@ -14671,7 +14670,7 @@ var toAnsiDoc = (self) => {
14671
14670
  }
14672
14671
  };
14673
14672
 
14674
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/helpDoc.js
14673
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/helpDoc.js
14675
14674
  var isEmpty13 = (helpDoc) => helpDoc._tag === "Empty";
14676
14675
  var isHeader = (helpDoc) => helpDoc._tag === "Header";
14677
14676
  var isParagraph = (helpDoc) => helpDoc._tag === "Paragraph";
@@ -17347,7 +17346,7 @@ var succeed10 = succeed6;
17347
17346
  var provide3 = provide;
17348
17347
  var provideMerge2 = provideMerge;
17349
17348
 
17350
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/cliConfig.js
17349
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/cliConfig.js
17351
17350
  var Tag3 = /* @__PURE__ */ GenericTag("@effect/cli/CliConfig");
17352
17351
  var defaultConfig = {
17353
17352
  isCaseSensitive: false,
@@ -17359,7 +17358,7 @@ var defaultConfig = {
17359
17358
  };
17360
17359
  var normalizeCase = /* @__PURE__ */ dual(2, (self, text8) => self.isCaseSensitive ? text8 : text8.toLowerCase());
17361
17360
 
17362
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/autoCorrect.js
17361
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/autoCorrect.js
17363
17362
  var levensteinDistance = (first3, second, config2) => {
17364
17363
  if (first3.length === 0 && second.length === 0) {
17365
17364
  return 0;
@@ -17394,10 +17393,10 @@ var levensteinDistance = (first3, second, config2) => {
17394
17393
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Brand.js
17395
17394
  var RefinedConstructorsTypeId = /* @__PURE__ */ Symbol.for("effect/Brand/Refined");
17396
17395
  var nominal = () => {
17397
- return Object.assign((args2) => args2, {
17396
+ return Object.assign((args3) => args3, {
17398
17397
  [RefinedConstructorsTypeId]: RefinedConstructorsTypeId,
17399
- option: (args2) => some2(args2),
17400
- either: (args2) => right2(args2),
17398
+ option: (args3) => some2(args3),
17399
+ either: (args3) => right2(args3),
17401
17400
  is: (_args) => true
17402
17401
  });
17403
17402
  };
@@ -17996,10 +17995,10 @@ var ensuringWith = /* @__PURE__ */ dual(2, (self, finalizer2) => {
17996
17995
  });
17997
17996
  var fail13 = (error4) => failCause8(fail5(error4));
17998
17997
  var failCause8 = (cause2) => failCauseSync3(() => cause2);
17999
- var failCauseSync3 = (evaluate2) => {
17998
+ var failCauseSync3 = (evaluate3) => {
18000
17999
  const op = Object.create(proto12);
18001
18000
  op._tag = OP_FAIL3;
18002
- op.error = evaluate2;
18001
+ op.error = evaluate3;
18003
18002
  return op;
18004
18003
  };
18005
18004
  var flatMap12 = /* @__PURE__ */ dual(2, (self, f) => {
@@ -18044,16 +18043,16 @@ var succeedNow = (result) => {
18044
18043
  op.terminal = result;
18045
18044
  return op;
18046
18045
  };
18047
- var suspend6 = (evaluate2) => {
18046
+ var suspend6 = (evaluate3) => {
18048
18047
  const op = Object.create(proto12);
18049
18048
  op._tag = OP_SUSPEND2;
18050
- op.channel = evaluate2;
18049
+ op.channel = evaluate3;
18051
18050
  return op;
18052
18051
  };
18053
- var sync6 = (evaluate2) => {
18052
+ var sync6 = (evaluate3) => {
18054
18053
  const op = Object.create(proto12);
18055
18054
  op._tag = OP_SUCCEED;
18056
- op.evaluate = evaluate2;
18055
+ op.evaluate = evaluate3;
18057
18056
  return op;
18058
18057
  };
18059
18058
  var void_5 = /* @__PURE__ */ succeedNow(void 0);
@@ -19422,12 +19421,12 @@ var writeChunk = (outs) => writeChunkWriter(0, outs.length, outs);
19422
19421
  var writeChunkWriter = (idx, len, chunk4) => {
19423
19422
  return idx === len ? void_5 : pipe(write(pipe(chunk4, unsafeGet4(idx))), flatMap12(() => writeChunkWriter(idx + 1, len, chunk4)));
19424
19423
  };
19425
- var zip7 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? mergeWith2(self, {
19424
+ var zip7 = /* @__PURE__ */ dual((args3) => isChannel(args3[1]), (self, that, options3) => options3?.concurrent ? mergeWith2(self, {
19426
19425
  other: that,
19427
19426
  onSelfDone: (exit1) => Await((exit22) => suspend4(() => zip3(exit1, exit22))),
19428
19427
  onOtherDone: (exit22) => Await((exit1) => suspend4(() => zip3(exit1, exit22)))
19429
19428
  }) : flatMap12(self, (a) => map24(that, (b) => [a, b])));
19430
- var zipRight4 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? map24(zip7(self, that, {
19429
+ var zipRight4 = /* @__PURE__ */ dual((args3) => isChannel(args3[1]), (self, that, options3) => options3?.concurrent ? map24(zip7(self, that, {
19431
19430
  concurrent: true
19432
19431
  }), (tuple3) => tuple3[1]) : flatMap12(self, () => that));
19433
19432
  var ChannelExceptionTypeId = /* @__PURE__ */ Symbol.for("effect/Channel/ChannelException");
@@ -19462,7 +19461,7 @@ var SinkImpl = class {
19462
19461
  return pipeArguments(this, arguments);
19463
19462
  }
19464
19463
  };
19465
- var suspend7 = (evaluate2) => new SinkImpl(suspend6(() => toChannel(evaluate2())));
19464
+ var suspend7 = (evaluate3) => new SinkImpl(suspend6(() => toChannel(evaluate3())));
19466
19465
  var collectAll = () => new SinkImpl(collectAllLoop(empty5()));
19467
19466
  var collectAllLoop = (acc) => readWithCause({
19468
19467
  onInput: (chunk4) => collectAllLoop(pipe(acc, appendAll2(chunk4))),
@@ -19499,6 +19498,7 @@ var unwrapScoped3 = (effect3) => new SinkImpl(unwrapScoped2(effect3.pipe(map16((
19499
19498
 
19500
19499
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Runtime.js
19501
19500
  var runFork3 = unsafeFork3;
19501
+ var runSync2 = unsafeRunSync;
19502
19502
  var runPromiseExit = unsafeRunPromiseExit;
19503
19503
  var updateContext3 = updateContext2;
19504
19504
 
@@ -19677,7 +19677,7 @@ var bufferSignal = (scoped6, bufferChannel) => {
19677
19677
  };
19678
19678
  return unwrapScoped2(pipe(scoped6, flatMap9((queue) => pipe(make24(), tap2((start4) => succeed2(start4, void 0)), flatMap9((start4) => pipe(make26(start4), flatMap9((ref) => pipe(bufferChannel, pipeTo(producer(queue, ref)), runScoped, forkScoped2)), as4(consumer(queue))))))));
19679
19679
  };
19680
- var flatMap14 = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, f, options3) => {
19680
+ var flatMap14 = /* @__PURE__ */ dual((args3) => isStream(args3[0]), (self, f, options3) => {
19681
19681
  const bufferSize = options3?.bufferSize ?? 16;
19682
19682
  if (options3?.switch) {
19683
19683
  return matchConcurrency(options3?.concurrency, () => flatMapParSwitchBuffer(self, 1, bufferSize, f), (n) => flatMapParSwitchBuffer(self, n, bufferSize, f));
@@ -19699,7 +19699,7 @@ var flatMapParSwitchBuffer = /* @__PURE__ */ dual(4, (self, n, bufferSize, f) =>
19699
19699
  mergeStrategy: BufferSliding(),
19700
19700
  bufferSize
19701
19701
  }))));
19702
- var flatten12 = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options3) => flatMap14(self, identity, options3));
19702
+ var flatten12 = /* @__PURE__ */ dual((args3) => isStream(args3[0]), (self, options3) => flatMap14(self, identity, options3));
19703
19703
  var fromChannel2 = (channel) => new StreamImpl(channel);
19704
19704
  var toChannel2 = (stream3) => {
19705
19705
  if ("channel" in stream3) {
@@ -19737,7 +19737,7 @@ var runIntoQueueScoped = /* @__PURE__ */ dual(2, (self, queue) => {
19737
19737
  var scoped5 = (effect3) => new StreamImpl(ensuring3(scoped4(pipe(effect3, map16(of2))), _void));
19738
19738
  var splitLines2 = (self) => pipeThroughChannel(self, splitLines());
19739
19739
  var suspend8 = (stream3) => new StreamImpl(suspend6(() => toChannel2(stream3())));
19740
- var toQueue = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options3) => tap2(acquireRelease2(options3?.strategy === "unbounded" ? unbounded5() : options3?.strategy === "dropping" ? dropping2(options3.capacity ?? 2) : options3?.strategy === "sliding" ? sliding2(options3.capacity ?? 2) : bounded3(options3?.capacity ?? 2), (queue) => shutdown2(queue)), (queue) => forkScoped2(runIntoQueueScoped(self, queue))));
19740
+ var toQueue = /* @__PURE__ */ dual((args3) => isStream(args3[0]), (self, options3) => tap2(acquireRelease2(options3?.strategy === "unbounded" ? unbounded5() : options3?.strategy === "dropping" ? dropping2(options3.capacity ?? 2) : options3?.strategy === "sliding" ? sliding2(options3.capacity ?? 2) : bounded3(options3?.capacity ?? 2), (queue) => shutdown2(queue)), (queue) => forkScoped2(runIntoQueueScoped(self, queue))));
19741
19741
  var transduce = /* @__PURE__ */ dual(2, (self, sink) => {
19742
19742
  const newChannel = suspend6(() => {
19743
19743
  const leftovers = {
@@ -19825,7 +19825,7 @@ var IntSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Int");
19825
19825
  var make49 = make43;
19826
19826
 
19827
19827
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Struct.js
19828
- var pick2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys5) => {
19828
+ var pick2 = /* @__PURE__ */ dual((args3) => isObject(args3[0]), (s, ...keys5) => {
19829
19829
  const out = {};
19830
19830
  for (const k of keys5) {
19831
19831
  if (k in s) {
@@ -19834,7 +19834,7 @@ var pick2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys5) =>
19834
19834
  }
19835
19835
  return out;
19836
19836
  });
19837
- var omit3 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys5) => {
19837
+ var omit3 = /* @__PURE__ */ dual((args3) => isObject(args3[0]), (s, ...keys5) => {
19838
19838
  const out = {
19839
19839
  ...s
19840
19840
  };
@@ -20360,7 +20360,7 @@ var intersectUnionMembers = (xs, ys, path2) => flatMap2(xs, (x) => flatMap2(ys,
20360
20360
  throw new Error(getSchemaExtendErrorMessage(x, y, path2));
20361
20361
  }));
20362
20362
  var extend3 = /* @__PURE__ */ dual(2, (self, that) => make50(extendAST(self.ast, that.ast, [])));
20363
- var compose3 = /* @__PURE__ */ dual((args2) => isSchema(args2[1]), (from, to) => makeTransformationClass(from, to, compose(from.ast, to.ast)));
20363
+ var compose3 = /* @__PURE__ */ dual((args3) => isSchema(args3[1]), (from, to) => makeTransformationClass(from, to, compose(from.ast, to.ast)));
20364
20364
  var suspend10 = (f) => make50(new Suspend(() => f().ast));
20365
20365
  var RefineSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Refine");
20366
20366
  function makeRefineClass(from, filter11, ast) {
@@ -20422,8 +20422,8 @@ function makeTransformationClass(from, to, ast) {
20422
20422
  static to = to;
20423
20423
  };
20424
20424
  }
20425
- var transformOrFail = /* @__PURE__ */ dual((args2) => isSchema(args2[0]) && isSchema(args2[1]), (from, to, options3) => makeTransformationClass(from, to, new Transformation(from.ast, to.ast, new FinalTransformation(options3.decode, options3.encode))));
20426
- var transform2 = /* @__PURE__ */ dual((args2) => isSchema(args2[0]) && isSchema(args2[1]), (from, to, options3) => transformOrFail(from, to, {
20425
+ var transformOrFail = /* @__PURE__ */ dual((args3) => isSchema(args3[0]) && isSchema(args3[1]), (from, to, options3) => makeTransformationClass(from, to, new Transformation(from.ast, to.ast, new FinalTransformation(options3.decode, options3.encode))));
20426
+ var transform2 = /* @__PURE__ */ dual((args3) => isSchema(args3[0]) && isSchema(args3[1]), (from, to, options3) => transformOrFail(from, to, {
20427
20427
  strict: true,
20428
20428
  decode: (fromA, _options, _ast, toA) => succeed9(options3.decode(fromA, toA)),
20429
20429
  encode: (toI, _options, _ast, toA) => succeed9(options3.encode(toI, toA))
@@ -20689,8 +20689,8 @@ var makeClass = ({
20689
20689
  // ----------------
20690
20690
  // Class interface
20691
20691
  // ----------------
20692
- static make(...args2) {
20693
- return new this(...args2);
20692
+ static make(...args3) {
20693
+ return new this(...args3);
20694
20694
  }
20695
20695
  static fields = {
20696
20696
  ...fields
@@ -21005,7 +21005,7 @@ var Defect = class extends (/* @__PURE__ */ transform2(Unknown, Unknown, {
21005
21005
  })) {
21006
21006
  };
21007
21007
 
21008
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/Error.js
21008
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/Error.js
21009
21009
  var TypeId17 = /* @__PURE__ */ Symbol.for("@effect/platform/Error");
21010
21010
  var Module = /* @__PURE__ */ Literal2("Clipboard", "Command", "FileSystem", "KeyValueStore", "Path", "Stream", "Terminal");
21011
21011
  var BadArgument = class extends (/* @__PURE__ */ TaggedError2("@effect/platform/Error/BadArgument")("BadArgument", {
@@ -21047,7 +21047,7 @@ var SystemError = class extends (/* @__PURE__ */ TaggedError2("@effect/platform/
21047
21047
  }
21048
21048
  };
21049
21049
 
21050
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/fileSystem.js
21050
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/fileSystem.js
21051
21051
  var tag = /* @__PURE__ */ GenericTag("@effect/platform/FileSystem");
21052
21052
  var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
21053
21053
  var bigint1024 = /* @__PURE__ */ BigInt(1024);
@@ -21105,7 +21105,7 @@ var stream = (file3, {
21105
21105
  });
21106
21106
  };
21107
21107
 
21108
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/FileSystem.js
21108
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/FileSystem.js
21109
21109
  var Size2 = Size;
21110
21110
  var FileSystem = tag;
21111
21111
  var make52 = make51;
@@ -21120,18 +21120,18 @@ var WatchBackend = class extends (/* @__PURE__ */ Tag2("@effect/platform/FileSys
21120
21120
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Secret.js
21121
21121
  var fromString2 = fromString;
21122
21122
 
21123
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/terminal.js
21123
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/terminal.js
21124
21124
  var tag2 = /* @__PURE__ */ GenericTag("@effect/platform/Terminal");
21125
21125
 
21126
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/Terminal.js
21126
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/Terminal.js
21127
21127
  var QuitException = class extends (/* @__PURE__ */ TaggedError("QuitException")) {
21128
21128
  };
21129
21129
  var Terminal = tag2;
21130
21130
 
21131
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/action.js
21131
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/action.js
21132
21132
  var Action = /* @__PURE__ */ taggedEnum();
21133
21133
 
21134
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt.js
21134
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt.js
21135
21135
  var PromptSymbolKey = "@effect/cli/Prompt";
21136
21136
  var PromptTypeId = /* @__PURE__ */ Symbol.for(PromptSymbolKey);
21137
21137
  var proto18 = {
@@ -21263,10 +21263,10 @@ function makeValueMatcher(provided, value5) {
21263
21263
  matcher.value = value5;
21264
21264
  return matcher;
21265
21265
  }
21266
- var makeWhen = (guard, evaluate2) => ({
21266
+ var makeWhen = (guard, evaluate3) => ({
21267
21267
  _tag: "When",
21268
21268
  guard,
21269
- evaluate: evaluate2
21269
+ evaluate: evaluate3
21270
21270
  });
21271
21271
  var makePredicate = (pattern2) => {
21272
21272
  if (typeof pattern2 === "function") {
@@ -21349,7 +21349,7 @@ var value4 = value3;
21349
21349
  var when5 = when4;
21350
21350
  var orElse12 = orElse11;
21351
21351
 
21352
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/ansi-utils.js
21352
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/ansi-utils.js
21353
21353
  var defaultFigures = {
21354
21354
  arrowUp: /* @__PURE__ */ text3("\u2191"),
21355
21355
  arrowDown: /* @__PURE__ */ text3("\u2193"),
@@ -21399,7 +21399,7 @@ function lines(prompt3, columns) {
21399
21399
  return columns === 0 ? lines3.length : pipe(map3(lines3, (line4) => Math.ceil(line4.length / columns)), reduce(0, (left3, right3) => left3 + right3));
21400
21400
  }
21401
21401
 
21402
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/date.js
21402
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/date.js
21403
21403
  var renderBeep = /* @__PURE__ */ render3(beep3, {
21404
21404
  style: "pretty"
21405
21405
  });
@@ -21672,10 +21672,10 @@ var makeDateParts = (dateMask, date5, locales) => {
21672
21672
  const parts2 = [];
21673
21673
  let result = null;
21674
21674
  while (result = DATE_PART_REGEX.exec(dateMask)) {
21675
- const match17 = result.shift();
21675
+ const match18 = result.shift();
21676
21676
  const index = result.findIndex((group4) => group4 !== void 0);
21677
21677
  if (index in regexGroups) {
21678
- const token = result[index] || match17;
21678
+ const token = result[index] || match18;
21679
21679
  parts2.push(regexGroups[index]({
21680
21680
  token,
21681
21681
  date: date5,
@@ -21684,7 +21684,7 @@ var makeDateParts = (dateMask, date5, locales) => {
21684
21684
  }));
21685
21685
  } else {
21686
21686
  parts2.push(new Token({
21687
- token: result[index] || match17,
21687
+ token: result[index] || match18,
21688
21688
  date: date5,
21689
21689
  parts: parts2,
21690
21690
  locales
@@ -21876,7 +21876,7 @@ var Meridiem = class extends DatePart {
21876
21876
  }
21877
21877
  };
21878
21878
 
21879
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/path.js
21879
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/path.js
21880
21880
  var TypeId19 = /* @__PURE__ */ Symbol.for("@effect/platform/Path");
21881
21881
  var Path = /* @__PURE__ */ GenericTag("@effect/platform/Path");
21882
21882
  function normalizeStringPosix(path2, allowAboveRoot) {
@@ -22346,11 +22346,11 @@ var posixImpl = /* @__PURE__ */ Path.of({
22346
22346
  toNamespacedPath: identity
22347
22347
  });
22348
22348
 
22349
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/Path.js
22349
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/Path.js
22350
22350
  var TypeId20 = TypeId19;
22351
22351
  var Path2 = Path;
22352
22352
 
22353
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/utils.js
22353
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/utils.js
22354
22354
  var entriesToDisplay = (cursor, total, maxVisible) => {
22355
22355
  const max6 = maxVisible === void 0 ? total : maxVisible;
22356
22356
  let startIndex = Math.min(total - max6, cursor - Math.floor(max6 / 2));
@@ -22364,7 +22364,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
22364
22364
  };
22365
22365
  };
22366
22366
 
22367
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/file.js
22367
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/file.js
22368
22368
  var CONFIRM_MESSAGE = "The selected directory contains files. Would you like to traverse the selected directory?";
22369
22369
  var Confirm = /* @__PURE__ */ taggedEnum();
22370
22370
  var showConfirmation = /* @__PURE__ */ Confirm.$is("Show");
@@ -22655,7 +22655,7 @@ var file = (options3 = {}) => {
22655
22655
  });
22656
22656
  };
22657
22657
 
22658
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/number.js
22658
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/number.js
22659
22659
  var parseInt2 = /* @__PURE__ */ NumberFromString.pipe(/* @__PURE__ */ int(), decodeUnknown2);
22660
22660
  var parseFloat = /* @__PURE__ */ decodeUnknown2(NumberFromString);
22661
22661
  var renderBeep3 = /* @__PURE__ */ render3(beep3, {
@@ -22992,7 +22992,7 @@ var float = (options3) => {
22992
22992
  });
22993
22993
  };
22994
22994
 
22995
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/select.js
22995
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/select.js
22996
22996
  var renderBeep4 = /* @__PURE__ */ render3(beep3, {
22997
22997
  style: "pretty"
22998
22998
  });
@@ -23021,16 +23021,16 @@ function renderChoicePrefix(state, choices, toDisplay, currentIndex, figures2) {
23021
23021
  }
23022
23022
  return state === currentIndex ? figures2.pointer.pipe(annotate2(cyanBright2), cat2(prefix)) : prefix.pipe(cat2(space2));
23023
23023
  }
23024
- function renderChoiceTitle(choice3, isSelected) {
23025
- const title = text3(choice3.title);
23024
+ function renderChoiceTitle(choice4, isSelected) {
23025
+ const title = text3(choice4.title);
23026
23026
  if (isSelected) {
23027
- return choice3.disabled ? annotate2(title, combine10(underlined2, blackBright2)) : annotate2(title, combine10(underlined2, cyanBright2));
23027
+ return choice4.disabled ? annotate2(title, combine10(underlined2, blackBright2)) : annotate2(title, combine10(underlined2, cyanBright2));
23028
23028
  }
23029
- return choice3.disabled ? annotate2(title, combine10(strikethrough2, blackBright2)) : title;
23029
+ return choice4.disabled ? annotate2(title, combine10(strikethrough2, blackBright2)) : title;
23030
23030
  }
23031
- function renderChoiceDescription(choice3, isSelected) {
23032
- if (!choice3.disabled && choice3.description && isSelected) {
23033
- return char3("-").pipe(cat2(space2), cat2(text3(choice3.description)), annotate2(blackBright2));
23031
+ function renderChoiceDescription(choice4, isSelected) {
23032
+ if (!choice4.disabled && choice4.description && isSelected) {
23033
+ return char3("-").pipe(cat2(space2), cat2(text3(choice4.description)), annotate2(blackBright2));
23034
23034
  }
23035
23035
  return empty32;
23036
23036
  }
@@ -23039,11 +23039,11 @@ function renderChoices(state, options3, figures2) {
23039
23039
  const toDisplay = entriesToDisplay(state, choices.length, options3.maxPerPage);
23040
23040
  const documents = [];
23041
23041
  for (let index = toDisplay.startIndex; index < toDisplay.endIndex; index++) {
23042
- const choice3 = choices[index];
23042
+ const choice4 = choices[index];
23043
23043
  const isSelected = state === index;
23044
23044
  const prefix = renderChoicePrefix(state, choices, toDisplay, index, figures2);
23045
- const title = renderChoiceTitle(choice3, isSelected);
23046
- const description = renderChoiceDescription(choice3, isSelected);
23045
+ const title = renderChoiceTitle(choice4, isSelected);
23046
+ const description = renderChoiceDescription(choice4, isSelected);
23047
23047
  documents.push(prefix.pipe(cat2(title), cat2(space2), cat2(description)));
23048
23048
  }
23049
23049
  return vsep2(documents);
@@ -23175,7 +23175,7 @@ var select = (options3) => {
23175
23175
  });
23176
23176
  };
23177
23177
 
23178
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/text.js
23178
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/text.js
23179
23179
  function getValue(state, options3) {
23180
23180
  return state.value.length > 0 ? state.value : options3.default;
23181
23181
  }
@@ -23444,7 +23444,7 @@ function basePrompt(options3, type2) {
23444
23444
  var hidden = (options3) => basePrompt(options3, "hidden").pipe(map27(make49));
23445
23445
  var text5 = (options3) => basePrompt(options3, "text");
23446
23446
 
23447
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/toggle.js
23447
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/toggle.js
23448
23448
  var renderBeep6 = /* @__PURE__ */ render3(beep3, {
23449
23449
  style: "pretty"
23450
23450
  });
@@ -23578,7 +23578,7 @@ var toggle2 = (options3) => {
23578
23578
  });
23579
23579
  };
23580
23580
 
23581
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/primitive.js
23581
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/primitive.js
23582
23582
  var PrimitiveSymbolKey = "@effect/cli/Primitive";
23583
23583
  var PrimitiveTypeId = /* @__PURE__ */ Symbol.for(PrimitiveSymbolKey);
23584
23584
  var proto19 = {
@@ -23619,7 +23619,7 @@ var getChoicesInternal = (self) => {
23619
23619
  return some2("true | false");
23620
23620
  }
23621
23621
  case "Choice": {
23622
- const choices = pipe(map3(self.alternatives, ([choice3]) => choice3), join(" | "));
23622
+ const choices = pipe(map3(self.alternatives, ([choice4]) => choice4), join(" | "));
23623
23623
  return some2(choices);
23624
23624
  }
23625
23625
  case "DateTime": {
@@ -23641,7 +23641,7 @@ var getHelpInternal = (self) => {
23641
23641
  return text4("A true or false value.");
23642
23642
  }
23643
23643
  case "Choice": {
23644
- const choices = pipe(map3(self.alternatives, ([choice3]) => choice3), join(", "));
23644
+ const choices = pipe(map3(self.alternatives, ([choice4]) => choice4), join(", "));
23645
23645
  return text4(`One of the following: ${choices}`);
23646
23646
  }
23647
23647
  case "DateTime": {
@@ -23735,9 +23735,9 @@ var validateInternal = (self, value5, config2) => {
23735
23735
  }));
23736
23736
  }
23737
23737
  case "Choice": {
23738
- return orElseFail2(value5, () => `Choice options to not have a default value`).pipe(flatMap9((value6) => findFirst2(self.alternatives, ([choice3]) => choice3 === value6)), mapBoth4({
23738
+ return orElseFail2(value5, () => `Choice options to not have a default value`).pipe(flatMap9((value6) => findFirst2(self.alternatives, ([choice4]) => choice4 === value6)), mapBoth4({
23739
23739
  onFailure: () => {
23740
- const choices = pipe(map3(self.alternatives, ([choice3]) => choice3), join(", "));
23740
+ const choices = pipe(map3(self.alternatives, ([choice4]) => choice4), join(", "));
23741
23741
  return `Expected one of the following cases: ${choices}`;
23742
23742
  },
23743
23743
  onSuccess: ([, value6]) => value6
@@ -23898,7 +23898,7 @@ var getBashCompletions = (self) => {
23898
23898
  }
23899
23899
  }
23900
23900
  case "Choice": {
23901
- const choices = pipe(map3(self.alternatives, ([choice3]) => choice3), join(","));
23901
+ const choices = pipe(map3(self.alternatives, ([choice4]) => choice4), join(","));
23902
23902
  return `$(compgen -W "${choices}" -- "\${cur}")`;
23903
23903
  }
23904
23904
  }
@@ -23930,7 +23930,7 @@ var getFishCompletions = (self) => {
23930
23930
  }
23931
23931
  }
23932
23932
  case "Choice": {
23933
- const choices = pipe(map3(self.alternatives, ([choice3]) => `${choice3}''`), join(","));
23933
+ const choices = pipe(map3(self.alternatives, ([choice4]) => `${choice4}''`), join(","));
23934
23934
  return make4("-r", "-f", "-a", `"{${choices}}"`);
23935
23935
  }
23936
23936
  }
@@ -23974,10 +23974,10 @@ var getZshCompletions = (self) => {
23974
23974
  }
23975
23975
  };
23976
23976
 
23977
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/list.js
23977
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/prompt/list.js
23978
23978
  var list3 = (options3) => text5(options3).pipe(map27((output) => output.split(options3.delimiter || ",")));
23979
23979
 
23980
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/usage.js
23980
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/usage.js
23981
23981
  var empty37 = {
23982
23982
  _tag: "Empty"
23983
23983
  };
@@ -24095,7 +24095,7 @@ var render4 = (self, config2) => {
24095
24095
  }
24096
24096
  };
24097
24097
 
24098
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/validationError.js
24098
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/validationError.js
24099
24099
  var ValidationErrorSymbolKey = "@effect/cli/ValidationError";
24100
24100
  var ValidationErrorTypeId = /* @__PURE__ */ Symbol.for(ValidationErrorSymbolKey);
24101
24101
  var proto20 = {
@@ -24164,7 +24164,7 @@ var unclusteredFlag = (error4, unclustered, rest) => {
24164
24164
  return op;
24165
24165
  };
24166
24166
 
24167
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/options.js
24167
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/options.js
24168
24168
  var OptionsSymbolKey = "@effect/cli/Options";
24169
24169
  var OptionsTypeId = /* @__PURE__ */ Symbol.for(OptionsSymbolKey);
24170
24170
  var proto21 = {
@@ -24227,6 +24227,10 @@ var boolean4 = (name, options3) => {
24227
24227
  }
24228
24228
  return withDefault2(option5, !ifPresent);
24229
24229
  };
24230
+ var choice2 = (name, choices) => {
24231
+ const primitive2 = choice(map3(choices, (choice4) => [choice4, choice4]));
24232
+ return makeSingle(name, empty2(), primitive2);
24233
+ };
24230
24234
  var choiceWithValue = (name, choices) => makeSingle(name, empty2(), choice(choices));
24231
24235
  var none10 = /* @__PURE__ */ (() => {
24232
24236
  const op = /* @__PURE__ */ Object.create(proto21);
@@ -24239,7 +24243,7 @@ var map28 = /* @__PURE__ */ dual(2, (self, f) => makeMap(self, (a) => right2(f(a
24239
24243
  var optional3 = (self) => withDefault2(map28(self, some2), none2());
24240
24244
  var orElse13 = /* @__PURE__ */ dual(2, (self, that) => orElseEither4(self, that).pipe(map28(merge)));
24241
24245
  var orElseEither4 = /* @__PURE__ */ dual(2, (self, that) => makeOrElse(self, that));
24242
- var processCommandLine = /* @__PURE__ */ dual(3, (self, args2, config2) => matchOptions(args2, toParseableInstruction(self), config2).pipe(flatMap9(([error4, commandArgs, matchedOptions]) => parseInternal(self, matchedOptions, config2).pipe(catchAll2((e) => match2(error4, {
24246
+ var processCommandLine = /* @__PURE__ */ dual(3, (self, args3, config2) => matchOptions(args3, toParseableInstruction(self), config2).pipe(flatMap9(([error4, commandArgs, matchedOptions]) => parseInternal(self, matchedOptions, config2).pipe(catchAll2((e) => match2(error4, {
24243
24247
  onNone: () => fail7(e),
24244
24248
  onSome: (err) => fail7(err)
24245
24249
  })), map16((a) => [error4, commandArgs, a])))));
@@ -24606,13 +24610,13 @@ var toParseableInstruction = (self) => {
24606
24610
  }
24607
24611
  };
24608
24612
  var keyValueSplitter = /=(.*)/;
24609
- var parseInternal = (self, args2, config2) => {
24613
+ var parseInternal = (self, args3, config2) => {
24610
24614
  switch (self._tag) {
24611
24615
  case "Empty": {
24612
24616
  return _void;
24613
24617
  }
24614
24618
  case "Single": {
24615
- const singleNames = filterMap2(getNames(self), (name) => get7(args2, name));
24619
+ const singleNames = filterMap2(getNames(self), (name) => get7(args3, name));
24616
24620
  if (isNonEmptyReadonlyArray(singleNames)) {
24617
24621
  const head5 = headNonEmpty(singleNames);
24618
24622
  const tail = tailNonEmpty(singleNames);
@@ -24641,33 +24645,33 @@ var parseInternal = (self, args2, config2) => {
24641
24645
  const error4 = p(`Expected a key/value pair but received '${value5}'`);
24642
24646
  return fail7(invalidArgument(error4));
24643
24647
  };
24644
- return parseInternal(self.argumentOption, args2, config2).pipe(matchEffect2({
24648
+ return parseInternal(self.argumentOption, args3, config2).pipe(matchEffect2({
24645
24649
  onFailure: (e) => isMultipleValuesDetected(e) ? forEach8(e.values, (kv) => extractKeyValue(kv)).pipe(map16(fromIterable6)) : fail7(e),
24646
24650
  onSuccess: (kv) => extractKeyValue(kv).pipe(map16(make16))
24647
24651
  }));
24648
24652
  }
24649
24653
  case "Map": {
24650
- return parseInternal(self.options, args2, config2).pipe(flatMap9((a) => self.f(a)));
24654
+ return parseInternal(self.options, args3, config2).pipe(flatMap9((a) => self.f(a)));
24651
24655
  }
24652
24656
  case "Both": {
24653
- return parseInternal(self.left, args2, config2).pipe(catchAll2((err1) => parseInternal(self.right, args2, config2).pipe(matchEffect2({
24657
+ return parseInternal(self.left, args3, config2).pipe(catchAll2((err1) => parseInternal(self.right, args3, config2).pipe(matchEffect2({
24654
24658
  onFailure: (err2) => {
24655
24659
  const error4 = sequence(err1.error, err2.error);
24656
24660
  return fail7(missingValue(error4));
24657
24661
  },
24658
24662
  onSuccess: () => fail7(err1)
24659
- }))), zip5(parseInternal(self.right, args2, config2)));
24663
+ }))), zip5(parseInternal(self.right, args3, config2)));
24660
24664
  }
24661
24665
  case "OrElse": {
24662
- return parseInternal(self.left, args2, config2).pipe(matchEffect2({
24663
- onFailure: (err1) => parseInternal(self.right, args2, config2).pipe(mapBoth4({
24666
+ return parseInternal(self.left, args3, config2).pipe(matchEffect2({
24667
+ onFailure: (err1) => parseInternal(self.right, args3, config2).pipe(mapBoth4({
24664
24668
  onFailure: (err2) => (
24665
24669
  // orElse option is only missing in case neither option was given
24666
24670
  isMissingValue(err1) && isMissingValue(err2) ? missingValue(sequence(err1.error, err2.error)) : invalidValue(sequence(err1.error, err2.error))
24667
24671
  ),
24668
24672
  onSuccess: (b) => right2(b)
24669
24673
  })),
24670
- onSuccess: (a) => parseInternal(self.right, args2, config2).pipe(matchEffect2({
24674
+ onSuccess: (a) => parseInternal(self.right, args3, config2).pipe(matchEffect2({
24671
24675
  onFailure: () => succeed7(left2(a)),
24672
24676
  onSuccess: () => {
24673
24677
  const leftUid = getOrElse2(getIdentifierInternal(self.left), () => "???");
@@ -24681,7 +24685,7 @@ var parseInternal = (self, args2, config2) => {
24681
24685
  case "Variadic": {
24682
24686
  const min4 = getOrElse2(self.min, () => 0);
24683
24687
  const max6 = getOrElse2(self.max, () => Number.MAX_SAFE_INTEGER);
24684
- const matchedArgument = filterMap2(getNames(self), (name) => get7(args2, name));
24688
+ const matchedArgument = filterMap2(getNames(self), (name) => get7(args3, name));
24685
24689
  const validateMinMax = (values3) => {
24686
24690
  if (values3.length < min4) {
24687
24691
  const name = self.argumentOption.fullName;
@@ -24700,16 +24704,16 @@ var parseInternal = (self, args2, config2) => {
24700
24704
  if (every(matchedArgument, isEmptyReadonlyArray)) {
24701
24705
  return validateMinMax(empty2());
24702
24706
  }
24703
- return parseInternal(self.argumentOption, args2, config2).pipe(matchEffect2({
24707
+ return parseInternal(self.argumentOption, args3, config2).pipe(matchEffect2({
24704
24708
  onFailure: (error4) => isMultipleValuesDetected(error4) ? validateMinMax(error4.values) : fail7(error4),
24705
24709
  onSuccess: (value5) => validateMinMax(of(value5))
24706
24710
  }));
24707
24711
  }
24708
24712
  case "WithDefault": {
24709
- return parseInternal(self.options, args2, config2).pipe(catchTag2("MissingValue", () => succeed7(self.fallback)));
24713
+ return parseInternal(self.options, args3, config2).pipe(catchTag2("MissingValue", () => succeed7(self.fallback)));
24710
24714
  }
24711
24715
  case "WithFallback": {
24712
- return parseInternal(self.options, args2, config2).pipe(catchTag2("MissingValue", (e) => self.effect.pipe(catchAll2((e2) => {
24716
+ return parseInternal(self.options, args3, config2).pipe(catchTag2("MissingValue", (e) => self.effect.pipe(catchAll2((e2) => {
24713
24717
  if (isTagged(e2, "QuitException")) {
24714
24718
  return die5(e2);
24715
24719
  }
@@ -24731,8 +24735,8 @@ var wizardInternal2 = (self, config2) => {
24731
24735
  case "Single": {
24732
24736
  const help = getHelpInternal2(self);
24733
24737
  return wizard(self.primitiveType, help).pipe(flatMap9((input) => {
24734
- const args2 = make4(getNames(self)[0], input);
24735
- return parseCommandLine(self, args2, config2).pipe(as4(args2));
24738
+ const args3 = make4(getNames(self)[0], input);
24739
+ return parseCommandLine(self, args3, config2).pipe(as4(args3));
24736
24740
  }), zipLeft2(log3()));
24737
24741
  }
24738
24742
  case "KeyValueMap": {
@@ -24740,9 +24744,9 @@ var wizardInternal2 = (self, config2) => {
24740
24744
  return list3({
24741
24745
  message: toAnsiText(message).trim(),
24742
24746
  delimiter: " "
24743
- }).pipe(flatMap9((args2) => {
24747
+ }).pipe(flatMap9((args3) => {
24744
24748
  const identifier2 = getOrElse2(getIdentifierInternal(self), () => "");
24745
- return parseInternal(self, make16([identifier2, args2]), config2).pipe(as4(prepend(args2, identifier2)));
24749
+ return parseInternal(self, make16([identifier2, args3]), config2).pipe(as4(prepend(args3, identifier2)));
24746
24750
  }), zipLeft2(log3()));
24747
24751
  }
24748
24752
  case "Map": {
@@ -24771,7 +24775,7 @@ var wizardInternal2 = (self, config2) => {
24771
24775
  message: toAnsiText(message).trimEnd(),
24772
24776
  min: getMinSizeInternal(self),
24773
24777
  max: getMaxSizeInternal(self)
24774
- }).pipe(flatMap9((n) => n <= 0 ? succeed7(empty2()) : make26(empty2()).pipe(flatMap9((ref) => wizardInternal2(self.argumentOption, config2).pipe(flatMap9((args2) => update3(ref, appendAll(args2))), repeatN2(n - 1), zipRight3(get10(ref)))))));
24778
+ }).pipe(flatMap9((n) => n <= 0 ? succeed7(empty2()) : make26(empty2()).pipe(flatMap9((ref) => wizardInternal2(self.argumentOption, config2).pipe(flatMap9((args3) => update3(ref, appendAll(args3))), repeatN2(n - 1), zipRight3(get10(ref)))))));
24775
24779
  }
24776
24780
  case "WithDefault": {
24777
24781
  if (isBoolInternal(self.options)) {
@@ -24847,7 +24851,7 @@ var findOptions = (input, options3, config2) => matchLeft(options3, {
24847
24851
  });
24848
24852
  var CLUSTERED_REGEX = /^-{1}([^-]{2,}$)/;
24849
24853
  var FLAG_REGEX = /^(--[^=]+)(?:=(.+))?$/;
24850
- var processArgs = (args2) => matchLeft(args2, {
24854
+ var processArgs = (args3) => matchLeft(args3, {
24851
24855
  onEmpty: () => succeed7(empty2()),
24852
24856
  onNonEmpty: (head5, tail) => {
24853
24857
  const value5 = head5.trim();
@@ -24861,13 +24865,13 @@ var processArgs = (args2) => matchLeft(args2, {
24861
24865
  return succeed7(appendAll([result[1], result[2]], tail));
24862
24866
  }
24863
24867
  }
24864
- return succeed7(args2);
24868
+ return succeed7(args3);
24865
24869
  }
24866
24870
  });
24867
- var parseCommandLine = (self, args2, config2) => {
24871
+ var parseCommandLine = (self, args3, config2) => {
24868
24872
  switch (self._tag) {
24869
24873
  case "Single": {
24870
- return processArgs(args2).pipe(flatMap9((args3) => matchLeft(args3, {
24874
+ return processArgs(args3).pipe(flatMap9((args4) => matchLeft(args4, {
24871
24875
  onEmpty: () => {
24872
24876
  const error4 = p(`Expected to find option: '${self.fullName}'`);
24873
24877
  return fail7(missingFlag(error4));
@@ -24949,15 +24953,15 @@ var parseCommandLine = (self, args2, config2) => {
24949
24953
  }
24950
24954
  case "KeyValueMap": {
24951
24955
  const normalizedNames = map3(getNames(self.argumentOption), (name) => normalizeCase(config2, name));
24952
- return matchLeft(args2, {
24956
+ return matchLeft(args3, {
24953
24957
  onEmpty: () => succeed7({
24954
24958
  parsed: none2(),
24955
- leftover: args2
24959
+ leftover: args3
24956
24960
  }),
24957
24961
  onNonEmpty: (head5, tail) => {
24958
- const loop2 = (args3) => {
24962
+ const loop2 = (args4) => {
24959
24963
  let keyValues = empty2();
24960
- let leftover2 = args3;
24964
+ let leftover2 = args4;
24961
24965
  while (isNonEmptyReadonlyArray(leftover2)) {
24962
24966
  const name = headNonEmpty(leftover2).trim();
24963
24967
  const normalizedName2 = normalizeCase(config2, name);
@@ -24995,7 +24999,7 @@ var parseCommandLine = (self, args2, config2) => {
24995
24999
  }
24996
25000
  return succeed7({
24997
25001
  parsed: none2(),
24998
- leftover: args2
25002
+ leftover: args3
24999
25003
  });
25000
25004
  }
25001
25005
  });
@@ -25004,7 +25008,7 @@ var parseCommandLine = (self, args2, config2) => {
25004
25008
  const normalizedNames = map3(getNames(self.argumentOption), (name) => normalizeCase(config2, name));
25005
25009
  let optionName = void 0;
25006
25010
  let values3 = empty2();
25007
- let unparsed = args2;
25011
+ let unparsed = args3;
25008
25012
  let leftover2 = empty2();
25009
25013
  while (isNonEmptyReadonlyArray(unparsed)) {
25010
25014
  const name = headNonEmpty(unparsed);
@@ -25188,10 +25192,13 @@ var getZshCompletions2 = (self, state = {
25188
25192
  }
25189
25193
  };
25190
25194
 
25191
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/Options.js
25195
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/Options.js
25192
25196
  var all7 = all6;
25197
+ var choice3 = choice2;
25198
+ var withDefault3 = withDefault2;
25199
+ var withDescription3 = withDescription2;
25193
25200
 
25194
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/args.js
25201
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/args.js
25195
25202
  var ArgsSymbolKey = "@effect/cli/Args";
25196
25203
  var ArgsTypeId = /* @__PURE__ */ Symbol.for(ArgsSymbolKey);
25197
25204
  var proto22 = {
@@ -25239,7 +25246,7 @@ var getHelp4 = (self) => getHelpInternal3(self);
25239
25246
  var getUsage2 = (self) => getUsageInternal2(self);
25240
25247
  var map29 = /* @__PURE__ */ dual(2, (self, f) => mapEffect6(self, (a) => succeed7(f(a))));
25241
25248
  var mapEffect6 = /* @__PURE__ */ dual(2, (self, f) => makeMap2(self, f));
25242
- var validate5 = /* @__PURE__ */ dual(3, (self, args2, config2) => validateInternal2(self, args2, config2));
25249
+ var validate5 = /* @__PURE__ */ dual(3, (self, args3, config2) => validateInternal2(self, args3, config2));
25243
25250
  var wizard3 = /* @__PURE__ */ dual(2, (self, config2) => wizardInternal3(self, config2));
25244
25251
  var allTupled2 = (arg) => {
25245
25252
  if (arg.length === 0) {
@@ -25382,14 +25389,14 @@ var makeBoth2 = (left3, right3) => {
25382
25389
  op.right = right3;
25383
25390
  return op;
25384
25391
  };
25385
- var validateInternal2 = (self, args2, config2) => {
25392
+ var validateInternal2 = (self, args3, config2) => {
25386
25393
  switch (self._tag) {
25387
25394
  case "Empty": {
25388
- return succeed7([args2, void 0]);
25395
+ return succeed7([args3, void 0]);
25389
25396
  }
25390
25397
  case "Single": {
25391
25398
  return suspend4(() => {
25392
- return matchLeft(args2, {
25399
+ return matchLeft(args3, {
25393
25400
  onEmpty: () => {
25394
25401
  const choices = getChoices(self.primitiveType);
25395
25402
  if (isSome2(self.pseudoName) && isSome2(choices)) {
@@ -25411,40 +25418,40 @@ var validateInternal2 = (self, args2, config2) => {
25411
25418
  });
25412
25419
  }
25413
25420
  case "Map": {
25414
- return validateInternal2(self.args, args2, config2).pipe(flatMap9(([leftover2, a]) => matchEffect2(self.f(a), {
25421
+ return validateInternal2(self.args, args3, config2).pipe(flatMap9(([leftover2, a]) => matchEffect2(self.f(a), {
25415
25422
  onFailure: (doc) => fail7(invalidArgument(doc)),
25416
25423
  onSuccess: (b) => succeed7([leftover2, b])
25417
25424
  })));
25418
25425
  }
25419
25426
  case "Both": {
25420
- return validateInternal2(self.left, args2, config2).pipe(flatMap9(([args3, a]) => validateInternal2(self.right, args3, config2).pipe(map16(([args4, b]) => [args4, [a, b]]))));
25427
+ return validateInternal2(self.left, args3, config2).pipe(flatMap9(([args4, a]) => validateInternal2(self.right, args4, config2).pipe(map16(([args5, b]) => [args5, [a, b]]))));
25421
25428
  }
25422
25429
  case "Variadic": {
25423
25430
  const min1 = getOrElse2(self.min, () => 0);
25424
25431
  const max1 = getOrElse2(self.max, () => Number.MAX_SAFE_INTEGER);
25425
- const loop2 = (args3, acc) => {
25432
+ const loop2 = (args4, acc) => {
25426
25433
  if (acc.length >= max1) {
25427
- return succeed7([args3, acc]);
25434
+ return succeed7([args4, acc]);
25428
25435
  }
25429
- return validateInternal2(self.args, args3, config2).pipe(matchEffect2({
25430
- onFailure: (failure) => acc.length >= min1 && isEmptyReadonlyArray(args3) ? succeed7([args3, acc]) : fail7(failure),
25431
- onSuccess: ([args4, a]) => loop2(args4, append(acc, a))
25436
+ return validateInternal2(self.args, args4, config2).pipe(matchEffect2({
25437
+ onFailure: (failure) => acc.length >= min1 && isEmptyReadonlyArray(args4) ? succeed7([args4, acc]) : fail7(failure),
25438
+ onSuccess: ([args5, a]) => loop2(args5, append(acc, a))
25432
25439
  }));
25433
25440
  };
25434
- return loop2(args2, empty2()).pipe(map16(([args3, acc]) => [args3, acc]));
25441
+ return loop2(args3, empty2()).pipe(map16(([args4, acc]) => [args4, acc]));
25435
25442
  }
25436
25443
  case "WithDefault": {
25437
- return validateInternal2(self.args, args2, config2).pipe(catchTag2("MissingValue", () => succeed7([args2, self.fallback])));
25444
+ return validateInternal2(self.args, args3, config2).pipe(catchTag2("MissingValue", () => succeed7([args3, self.fallback])));
25438
25445
  }
25439
25446
  case "WithFallbackConfig": {
25440
- return validateInternal2(self.args, args2, config2).pipe(catchTag2("MissingValue", (e) => map16(catchAll2(self.config, (e2) => {
25447
+ return validateInternal2(self.args, args3, config2).pipe(catchTag2("MissingValue", (e) => map16(catchAll2(self.config, (e2) => {
25441
25448
  if (isMissingDataOnly2(e2)) {
25442
25449
  const help = p(String(e2));
25443
25450
  const error4 = invalidValue(help);
25444
25451
  return fail7(error4);
25445
25452
  }
25446
25453
  return fail7(e);
25447
- }), (value5) => [args2, value5])));
25454
+ }), (value5) => [args3, value5])));
25448
25455
  }
25449
25456
  }
25450
25457
  };
@@ -25456,15 +25463,15 @@ var wizardInternal3 = (self, config2) => {
25456
25463
  case "Single": {
25457
25464
  const help = getHelpInternal3(self);
25458
25465
  return wizard(self.primitiveType, help).pipe(zipLeft2(log3()), flatMap9((input) => {
25459
- const args2 = of(input);
25460
- return validateInternal2(self, args2, config2).pipe(as4(args2));
25466
+ const args3 = of(input);
25467
+ return validateInternal2(self, args3, config2).pipe(as4(args3));
25461
25468
  }));
25462
25469
  }
25463
25470
  case "Map": {
25464
- return wizardInternal3(self.args, config2).pipe(tap2((args2) => validateInternal2(self.args, args2, config2)));
25471
+ return wizardInternal3(self.args, config2).pipe(tap2((args3) => validateInternal2(self.args, args3, config2)));
25465
25472
  }
25466
25473
  case "Both": {
25467
- return zipWith4(wizardInternal3(self.left, config2), wizardInternal3(self.right, config2), (left3, right3) => appendAll(left3, right3)).pipe(tap2((args2) => validateInternal2(self, args2, config2)));
25474
+ return zipWith4(wizardInternal3(self.left, config2), wizardInternal3(self.right, config2), (left3, right3) => appendAll(left3, right3)).pipe(tap2((args3) => validateInternal2(self, args3, config2)));
25468
25475
  }
25469
25476
  case "Variadic": {
25470
25477
  const repeatHelp = p("How many times should this argument should be repeated?");
@@ -25473,7 +25480,7 @@ var wizardInternal3 = (self, config2) => {
25473
25480
  message: toAnsiText(message).trimEnd(),
25474
25481
  min: getMinSizeInternal2(self),
25475
25482
  max: getMaxSizeInternal2(self)
25476
- }).pipe(zipLeft2(log3()), flatMap9((n) => n <= 0 ? succeed7(empty2()) : make26(empty2()).pipe(flatMap9((ref) => wizardInternal3(self.args, config2).pipe(flatMap9((args2) => update3(ref, appendAll(args2))), repeatN2(n - 1), zipRight3(get10(ref)), tap2((args2) => validateInternal2(self, args2, config2)))))));
25483
+ }).pipe(zipLeft2(log3()), flatMap9((n) => n <= 0 ? succeed7(empty2()) : make26(empty2()).pipe(flatMap9((ref) => wizardInternal3(self.args, config2).pipe(flatMap9((args3) => update3(ref, appendAll(args3))), repeatN2(n - 1), zipRight3(get10(ref)), tap2((args3) => validateInternal2(self, args3, config2)))))));
25477
25484
  }
25478
25485
  case "WithDefault": {
25479
25486
  const defaultHelp = p(`This argument is optional - use the default?`);
@@ -25582,7 +25589,7 @@ var getZshCompletions3 = (self, state = {
25582
25589
  }
25583
25590
  };
25584
25591
 
25585
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/builtInOptions.js
25592
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/builtInOptions.js
25586
25593
  var setLogLevel = (level) => ({
25587
25594
  _tag: "SetLogLevel",
25588
25595
  level
@@ -25636,7 +25643,7 @@ var builtInOptions = (command, usage, helpDoc) => map28(builtIns, (builtIn2) =>
25636
25643
  return none2();
25637
25644
  });
25638
25645
 
25639
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/commandDirective.js
25646
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/commandDirective.js
25640
25647
  var builtIn = (option5) => ({
25641
25648
  _tag: "BuiltIn",
25642
25649
  option: option5
@@ -25650,7 +25657,7 @@ var isBuiltIn = (self) => self._tag === "BuiltIn";
25650
25657
  var isUserDefined = (self) => self._tag === "UserDefined";
25651
25658
  var map30 = /* @__PURE__ */ dual(2, (self, f) => isUserDefined(self) ? userDefined(self.leftover, f(self.value)) : self);
25652
25659
 
25653
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/commandDescriptor.js
25660
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/commandDescriptor.js
25654
25661
  var CommandDescriptorSymbolKey = "@effect/cli/CommandDescriptor";
25655
25662
  var TypeId21 = /* @__PURE__ */ Symbol.for(CommandDescriptorSymbolKey);
25656
25663
  var proto23 = {
@@ -25663,13 +25670,13 @@ var proto23 = {
25663
25670
  };
25664
25671
  var isCommand = (u) => typeof u === "object" && u != null && TypeId21 in u;
25665
25672
  var isStandard = (self) => self._tag === "Standard";
25666
- var make53 = (name, options3 = none10, args2 = none11) => {
25673
+ var make53 = (name, options3 = none10, args3 = none11) => {
25667
25674
  const op = Object.create(proto23);
25668
25675
  op._tag = "Standard";
25669
25676
  op.name = name;
25670
25677
  op.description = empty34;
25671
25678
  op.options = options3;
25672
- op.args = args2;
25679
+ op.args = args3;
25673
25680
  return op;
25674
25681
  };
25675
25682
  var getHelp5 = (self, config2) => getHelpInternal4(self, config2);
@@ -25687,7 +25694,7 @@ var mapEffect7 = /* @__PURE__ */ dual(2, (self, f) => {
25687
25694
  op.f = f;
25688
25695
  return op;
25689
25696
  });
25690
- var parse3 = /* @__PURE__ */ dual(3, (self, args2, config2) => parseInternal2(self, args2, config2));
25697
+ var parse3 = /* @__PURE__ */ dual(3, (self, args3, config2) => parseInternal2(self, args3, config2));
25691
25698
  var withSubcommands = /* @__PURE__ */ dual(2, (self, subcommands) => {
25692
25699
  const op = Object.create(proto23);
25693
25700
  op._tag = "Subcommands";
@@ -25798,8 +25805,8 @@ var getUsageInternal3 = (self) => {
25798
25805
  }
25799
25806
  }
25800
25807
  };
25801
- var parseInternal2 = (self, args2, config2) => {
25802
- const parseCommandLine2 = (self2, args3) => matchLeft(args3, {
25808
+ var parseInternal2 = (self, args3, config2) => {
25809
+ const parseCommandLine2 = (self2, args4) => matchLeft(args4, {
25803
25810
  onEmpty: () => {
25804
25811
  const error4 = p(`Missing command name: '${self2.name}'`);
25805
25812
  return fail7(commandMismatch(error4));
@@ -25815,7 +25822,7 @@ var parseInternal2 = (self, args2, config2) => {
25815
25822
  });
25816
25823
  switch (self._tag) {
25817
25824
  case "Standard": {
25818
- const parseBuiltInArgs = (args3) => matchLeft(args3, {
25825
+ const parseBuiltInArgs = (args4) => matchLeft(args4, {
25819
25826
  onEmpty: () => {
25820
25827
  const error4 = p(`Missing command name: '${self.name}'`);
25821
25828
  return fail7(commandMismatch(error4));
@@ -25827,7 +25834,7 @@ var parseInternal2 = (self, args2, config2) => {
25827
25834
  const help = getHelpInternal4(self, config2);
25828
25835
  const usage = getUsageInternal3(self);
25829
25836
  const options3 = builtInOptions(self, usage, help);
25830
- const argsWithoutCommand = drop(args3, 1);
25837
+ const argsWithoutCommand = drop(args4, 1);
25831
25838
  return processCommandLine(options3, argsWithoutCommand, config2).pipe(flatMap9((tuple3) => tuple3[2]), catchTag2("NoSuchElementException", () => {
25832
25839
  const error5 = p("No built-in option was matched");
25833
25840
  return fail7(noBuiltInMatch(error5));
@@ -25837,7 +25844,7 @@ var parseInternal2 = (self, args2, config2) => {
25837
25844
  return fail7(commandMismatch(error4));
25838
25845
  }
25839
25846
  });
25840
- const parseUserDefinedArgs = (args3) => parseCommandLine2(self, args3).pipe(flatMap9((commandOptionsAndArgs) => {
25847
+ const parseUserDefinedArgs = (args4) => parseCommandLine2(self, args4).pipe(flatMap9((commandOptionsAndArgs) => {
25841
25848
  const [optionsAndArgs, forcedCommandArgs] = splitForcedArgs(commandOptionsAndArgs);
25842
25849
  return processCommandLine(self.options, optionsAndArgs, config2).pipe(flatMap9(([error4, commandArgs, optionsType]) => validate5(self.args, appendAll(commandArgs, forcedCommandArgs), config2).pipe(catchAll2((e) => match2(error4, {
25843
25850
  onNone: () => fail7(e),
@@ -25848,23 +25855,23 @@ var parseInternal2 = (self, args2, config2) => {
25848
25855
  args: argsType
25849
25856
  })))));
25850
25857
  }));
25851
- const exhaustiveSearch = (args3) => {
25852
- if (contains2(args3, "--help") || contains2(args3, "-h")) {
25858
+ const exhaustiveSearch = (args4) => {
25859
+ if (contains2(args4, "--help") || contains2(args4, "-h")) {
25853
25860
  return parseBuiltInArgs(make4(self.name, "--help"));
25854
25861
  }
25855
- if (contains2(args3, "--wizard")) {
25862
+ if (contains2(args4, "--wizard")) {
25856
25863
  return parseBuiltInArgs(make4(self.name, "--wizard"));
25857
25864
  }
25858
- if (contains2(args3, "--version")) {
25865
+ if (contains2(args4, "--version")) {
25859
25866
  return parseBuiltInArgs(make4(self.name, "--version"));
25860
25867
  }
25861
25868
  const error4 = p(`Missing command name: '${self.name}'`);
25862
25869
  return fail7(commandMismatch(error4));
25863
25870
  };
25864
- return parseBuiltInArgs(args2).pipe(orElse4(() => parseUserDefinedArgs(args2)), catchSome2((e) => {
25871
+ return parseBuiltInArgs(args3).pipe(orElse4(() => parseUserDefinedArgs(args3)), catchSome2((e) => {
25865
25872
  if (isValidationError(e)) {
25866
25873
  if (config2.finalCheckBuiltIn) {
25867
- return some2(exhaustiveSearch(args2).pipe(catchSome2((_) => isValidationError(_) ? some2(fail7(e)) : none2())));
25874
+ return some2(exhaustiveSearch(args3).pipe(catchSome2((_) => isValidationError(_) ? some2(fail7(e)) : none2())));
25868
25875
  }
25869
25876
  return some2(fail7(e));
25870
25877
  }
@@ -25872,13 +25879,13 @@ var parseInternal2 = (self, args2, config2) => {
25872
25879
  }));
25873
25880
  }
25874
25881
  case "GetUserInput": {
25875
- return parseCommandLine2(self, args2).pipe(zipRight3(run5(self.prompt)), catchTag2("QuitException", (e) => die5(e)), map16((value5) => userDefined(drop(args2, 1), {
25882
+ return parseCommandLine2(self, args3).pipe(zipRight3(run5(self.prompt)), catchTag2("QuitException", (e) => die5(e)), map16((value5) => userDefined(drop(args3, 1), {
25876
25883
  name: self.name,
25877
25884
  value: value5
25878
25885
  })));
25879
25886
  }
25880
25887
  case "Map": {
25881
- return parseInternal2(self.command, args2, config2).pipe(flatMap9((directive) => {
25888
+ return parseInternal2(self.command, args3, config2).pipe(flatMap9((directive) => {
25882
25889
  if (isUserDefined(directive)) {
25883
25890
  return self.f(directive.value).pipe(map16((value5) => userDefined(directive.leftover, value5)));
25884
25891
  }
@@ -25888,7 +25895,7 @@ var parseInternal2 = (self, args2, config2) => {
25888
25895
  case "Subcommands": {
25889
25896
  const names = getNamesInternal(self);
25890
25897
  const subcommands = getSubcommandsInternal(self);
25891
- const [parentArgs, childArgs] = span(args2, (arg) => !some3(subcommands, ([name]) => name === arg));
25898
+ const [parentArgs, childArgs] = span(args3, (arg) => !some3(subcommands, ([name]) => name === arg));
25892
25899
  const parseChildren = suspend4(() => {
25893
25900
  const iterator = self.children[Symbol.iterator]();
25894
25901
  const loop2 = (next) => {
@@ -25929,8 +25936,8 @@ var parseInternal2 = (self, args2, config2) => {
25929
25936
  return succeed7(directive);
25930
25937
  }
25931
25938
  case "UserDefined": {
25932
- const args3 = appendAll(directive.leftover, childArgs);
25933
- if (isNonEmptyReadonlyArray(args3)) {
25939
+ const args4 = appendAll(directive.leftover, childArgs);
25940
+ if (isNonEmptyReadonlyArray(args4)) {
25934
25941
  return parseChildren.pipe(mapBoth4({
25935
25942
  onFailure: (err) => {
25936
25943
  if (isCommandMismatch(err)) {
@@ -25954,12 +25961,12 @@ var parseInternal2 = (self, args2, config2) => {
25954
25961
  }));
25955
25962
  }
25956
25963
  }
25957
- }), catchSome2(() => isEmptyReadonlyArray(args2) ? some2(helpDirectiveForParent) : none2())));
25964
+ }), catchSome2(() => isEmptyReadonlyArray(args3) ? some2(helpDirectiveForParent) : none2())));
25958
25965
  }
25959
25966
  }
25960
25967
  };
25961
- var splitForcedArgs = (args2) => {
25962
- const [remainingArgs, forcedArgs] = span(args2, (str) => str !== "--");
25968
+ var splitForcedArgs = (args3) => {
25969
+ const [remainingArgs, forcedArgs] = span(args3, (str) => str !== "--");
25963
25970
  return [remainingArgs, drop(forcedArgs, 1)];
25964
25971
  };
25965
25972
  var argsWizardHeader = /* @__PURE__ */ code("Args Wizard - ");
@@ -26142,9 +26149,9 @@ var getZshSubcommandCases = (self, parentCommands, subcommands) => {
26142
26149
  case "Standard":
26143
26150
  case "GetUserInput": {
26144
26151
  const options3 = isStandard(self) ? all6([builtIns, self.options]) : builtIns;
26145
- const args2 = isStandard(self) ? self.args : none11;
26152
+ const args3 = isStandard(self) ? self.args : none11;
26146
26153
  const optionCompletions = pipe(getZshCompletions2(options3), map3((completion) => `'${completion}' \\`));
26147
- const argCompletions = pipe(getZshCompletions3(args2), map3((completion) => `'${completion}' \\`));
26154
+ const argCompletions = pipe(getZshCompletions3(args3), map3((completion) => `'${completion}' \\`));
26148
26155
  if (isEmptyReadonlyArray(parentCommands)) {
26149
26156
  return ['_arguments "${_arguments_options[@]}" \\', ...indentAll(optionCompletions, 4), ...indentAll(argCompletions, 4), ` ":: :_${self.name}_commands" \\`, ` "*::: :->${self.name}" \\`, " && ret=0"];
26150
26157
  }
@@ -26175,7 +26182,7 @@ var helpRequestedError = (command) => {
26175
26182
  return op;
26176
26183
  };
26177
26184
 
26178
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/ValidationError.js
26185
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/ValidationError.js
26179
26186
  var helpRequested = helpRequestedError;
26180
26187
 
26181
26188
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Logger.js
@@ -26186,7 +26193,7 @@ var prettyLoggerDefault2 = prettyLoggerDefault;
26186
26193
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/Unify.js
26187
26194
  var unify2 = identity;
26188
26195
 
26189
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/cliApp.js
26196
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/cliApp.js
26190
26197
  var proto24 = {
26191
26198
  pipe() {
26192
26199
  return pipeArguments(this, arguments);
@@ -26202,9 +26209,9 @@ var make54 = (config2) => {
26202
26209
  op.footer = config2.footer || empty34;
26203
26210
  return op;
26204
26211
  };
26205
- var run6 = /* @__PURE__ */ dual(3, (self, args2, execute2) => contextWithEffect2((context7) => {
26212
+ var run6 = /* @__PURE__ */ dual(3, (self, args3, execute2) => contextWithEffect2((context7) => {
26206
26213
  const config2 = getOrElse2(getOption2(context7, Tag3), () => defaultConfig);
26207
- const [executable, filteredArgs] = splitExecutable(self, args2);
26214
+ const [executable, filteredArgs] = splitExecutable(self, args3);
26208
26215
  const prefixedArgs = appendAll(prefixCommand(self.command), filteredArgs);
26209
26216
  return matchEffect2(parse3(self.command, prefixedArgs, config2), {
26210
26217
  onFailure: (e) => zipRight3(printDocs(e.error), fail7(e)),
@@ -26226,24 +26233,24 @@ var run6 = /* @__PURE__ */ dual(3, (self, args2, execute2) => contextWithEffect2
26226
26233
  })
26227
26234
  });
26228
26235
  }));
26229
- var splitExecutable = (self, args2) => {
26236
+ var splitExecutable = (self, args3) => {
26230
26237
  if (self.executable !== void 0) {
26231
- return [self.executable, drop(args2, 2)];
26238
+ return [self.executable, drop(args3, 2)];
26232
26239
  }
26233
- const [[runtime5, script], optionsAndArgs] = splitAt(args2, 2);
26240
+ const [[runtime5, script], optionsAndArgs] = splitAt(args3, 2);
26234
26241
  return [`${runtime5} ${script}`, optionsAndArgs];
26235
26242
  };
26236
26243
  var printDocs = (error4) => error2(toAnsiText(error4));
26237
26244
  var isQuitException = (u) => typeof u === "object" && u != null && "_tag" in u && u._tag === "QuitException";
26238
- var handleBuiltInOption = (self, executable, args2, builtIn2, execute2, config2) => {
26245
+ var handleBuiltInOption = (self, executable, args3, builtIn2, execute2, config2) => {
26239
26246
  switch (builtIn2._tag) {
26240
26247
  case "SetLogLevel": {
26241
26248
  const nextArgs = executable.split(/\s+/);
26242
- for (let i = 0; i < args2.length; i++) {
26243
- if (args2[i] === "--log-level" || args2[i - 1] === "--log-level") {
26249
+ for (let i = 0; i < args3.length; i++) {
26250
+ if (args3[i] === "--log-level" || args3[i - 1] === "--log-level") {
26244
26251
  continue;
26245
26252
  }
26246
- nextArgs.push(args2[i]);
26253
+ nextArgs.push(args3[i]);
26247
26254
  }
26248
26255
  return run6(self, nextArgs, execute2).pipe(withMinimumLogLevel2(builtIn2.level));
26249
26256
  }
@@ -26275,14 +26282,14 @@ var handleBuiltInOption = (self, executable, args2, builtIn2, execute2, config2)
26275
26282
  const help = sequence(header, description);
26276
26283
  const text8 = toAnsiText(help);
26277
26284
  const command = fromIterable(getNames2(self.command))[0];
26278
- const wizardPrefix = getWizardPrefix(builtIn2, command, args2);
26279
- return log3(text8).pipe(zipRight3(wizard4(builtIn2.command, wizardPrefix, config2)), tap2((args3) => log3(toAnsiText(renderWizardArgs(args3)))), flatMap9((args3) => toggle2({
26285
+ const wizardPrefix = getWizardPrefix(builtIn2, command, args3);
26286
+ return log3(text8).pipe(zipRight3(wizard4(builtIn2.command, wizardPrefix, config2)), tap2((args4) => log3(toAnsiText(renderWizardArgs(args4)))), flatMap9((args4) => toggle2({
26280
26287
  message: "Would you like to run the command?",
26281
26288
  initial: true,
26282
26289
  active: "yes",
26283
26290
  inactive: "no"
26284
26291
  }).pipe(flatMap9((shouldRunCommand) => {
26285
- const finalArgs = pipe(drop(args3, 1), prependAll(executable.split(/\s+/)));
26292
+ const finalArgs = pipe(drop(args4, 1), prependAll(executable.split(/\s+/)));
26286
26293
  return shouldRunCommand ? log3().pipe(zipRight3(run6(self, finalArgs, execute2))) : _void;
26287
26294
  }))), catchAll2((e) => {
26288
26295
  if (isQuitException(e)) {
@@ -26328,23 +26335,23 @@ var prefixCommand = (self) => {
26328
26335
  var getWizardPrefix = (builtIn2, rootCommand, commandLineArgs) => {
26329
26336
  const subcommands = getSubcommands(builtIn2.command);
26330
26337
  const [parentArgs, childArgs] = span(commandLineArgs, (name) => !has4(subcommands, name));
26331
- const args2 = matchLeft(childArgs, {
26338
+ const args3 = matchLeft(childArgs, {
26332
26339
  onEmpty: () => filter2(parentArgs, (arg) => arg !== "--wizard"),
26333
26340
  onNonEmpty: (head5) => append(parentArgs, head5)
26334
26341
  });
26335
- return appendAll(rootCommand.split(/\s+/), args2);
26342
+ return appendAll(rootCommand.split(/\s+/), args3);
26336
26343
  };
26337
- var renderWizardArgs = (args2) => {
26338
- const params = pipe(filter2(args2, (param) => param.length > 0), join(" "));
26344
+ var renderWizardArgs = (args3) => {
26345
+ const params = pipe(filter2(args3, (param) => param.length > 0), join(" "));
26339
26346
  const executeMsg = text4("You may now execute your command directly with the following options and arguments:");
26340
26347
  return blocks([p(strong(code("Wizard Mode Complete!"))), p(executeMsg), p(concat2(text4(" "), highlight(params, cyan2)))]);
26341
26348
  };
26342
26349
 
26343
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/command.js
26350
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/internal/command.js
26344
26351
  var CommandSymbolKey = "@effect/cli/Command";
26345
26352
  var TypeId22 = /* @__PURE__ */ Symbol.for(CommandSymbolKey);
26346
26353
  var parseConfig = (config2) => {
26347
- const args2 = [];
26354
+ const args3 = [];
26348
26355
  let argsIndex = 0;
26349
26356
  const options3 = [];
26350
26357
  let optionsIndex = 0;
@@ -26362,7 +26369,7 @@ var parseConfig = (config2) => {
26362
26369
  children: map3(value5, parseValue)
26363
26370
  };
26364
26371
  } else if (isArgs(value5)) {
26365
- args2.push(value5);
26372
+ args3.push(value5);
26366
26373
  return {
26367
26374
  _tag: "Args",
26368
26375
  index: argsIndex++
@@ -26381,12 +26388,12 @@ var parseConfig = (config2) => {
26381
26388
  }
26382
26389
  }
26383
26390
  return {
26384
- args: args2,
26391
+ args: args3,
26385
26392
  options: options3,
26386
26393
  tree: parse5(config2)
26387
26394
  };
26388
26395
  };
26389
- var reconstructConfigTree = (tree, args2, options3) => {
26396
+ var reconstructConfigTree = (tree, args3, options3) => {
26390
26397
  const output = {};
26391
26398
  for (const key in tree) {
26392
26399
  output[key] = nodeValue(tree[key]);
@@ -26394,13 +26401,13 @@ var reconstructConfigTree = (tree, args2, options3) => {
26394
26401
  return output;
26395
26402
  function nodeValue(node) {
26396
26403
  if (node._tag === "Args") {
26397
- return args2[node.index];
26404
+ return args3[node.index];
26398
26405
  } else if (node._tag === "Options") {
26399
26406
  return options3[node.index];
26400
26407
  } else if (node._tag === "Array") {
26401
26408
  return map3(node.children, nodeValue);
26402
26409
  } else {
26403
- return reconstructConfigTree(node.tree, args2, options3);
26410
+ return reconstructConfigTree(node.tree, args3, options3);
26404
26411
  }
26405
26412
  }
26406
26413
  };
@@ -26432,20 +26439,20 @@ var makeDerive = (self, options3) => {
26432
26439
  command.tag = self.tag;
26433
26440
  return command;
26434
26441
  };
26435
- var fromDescriptor = /* @__PURE__ */ dual((args2) => isCommand(args2[0]), (descriptor2, handler) => {
26442
+ var fromDescriptor = /* @__PURE__ */ dual((args3) => isCommand(args3[0]), (descriptor2, handler) => {
26436
26443
  const self = makeProto(descriptor2, handler ?? ((_) => failSync2(() => helpRequested(getDescriptor(self)))), GenericTag(`@effect/cli/Command/(${fromIterable(getNames2(descriptor2)).join("|")})`));
26437
26444
  return self;
26438
26445
  });
26439
26446
  var makeDescriptor = (name, config2) => {
26440
26447
  const {
26441
- args: args2,
26448
+ args: args3,
26442
26449
  options: options3,
26443
26450
  tree
26444
26451
  } = parseConfig(config2);
26445
- return map31(make53(name, all6(options3), all8(args2)), ({
26446
- args: args3,
26452
+ return map31(make53(name, all6(options3), all8(args3)), ({
26453
+ args: args4,
26447
26454
  options: options4
26448
- }) => reconstructConfigTree(tree, args3, options4));
26455
+ }) => reconstructConfigTree(tree, args4, options4));
26449
26456
  };
26450
26457
  var make55 = (name, config2 = {}, handler) => fromDescriptor(makeDescriptor(name, config2), handler);
26451
26458
  var withSubcommands2 = /* @__PURE__ */ dual(2, (self, subcommands) => {
@@ -26455,14 +26462,14 @@ var withSubcommands2 = /* @__PURE__ */ dual(2, (self, subcommands) => {
26455
26462
  registeredDescriptors.set(subcommand.tag, subcommand.descriptor);
26456
26463
  return handlers;
26457
26464
  });
26458
- function handler(args2) {
26459
- if (args2.subcommand._tag === "Some") {
26460
- const [tag4, value5] = args2.subcommand.value;
26465
+ function handler(args3) {
26466
+ if (args3.subcommand._tag === "Some") {
26467
+ const [tag4, value5] = args3.subcommand.value;
26461
26468
  const subcommand = subcommandMap.get(tag4);
26462
26469
  const subcommandEffect = subcommand.transform(subcommand.handler(value5), value5);
26463
- return provideService2(subcommandEffect, self.tag, args2);
26470
+ return provideService2(subcommandEffect, self.tag, args3);
26464
26471
  }
26465
- return self.handler(args2);
26472
+ return self.handler(args3);
26466
26473
  }
26467
26474
  return makeDerive(self, {
26468
26475
  descriptor: command,
@@ -26475,16 +26482,16 @@ var run7 = /* @__PURE__ */ dual(2, (self, config2) => {
26475
26482
  command: self.descriptor
26476
26483
  });
26477
26484
  registeredDescriptors.set(self.tag, self.descriptor);
26478
- const handler = (args2) => self.transform(self.handler(args2), args2);
26479
- return (args2) => run6(app, args2, handler);
26485
+ const handler = (args3) => self.transform(self.handler(args3), args3);
26486
+ return (args3) => run6(app, args3, handler);
26480
26487
  });
26481
26488
 
26482
- // node_modules/.pnpm/@effect+cli@0.66.11_@effect+platform@0.87.11_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/Command.js
26489
+ // node_modules/.pnpm/@effect+cli@0.66.12_@effect+platform@0.87.12_@effect+printer-ansi@0.44.12_@effect+printer@0.44.12_effect@3.16.12/node_modules/@effect/cli/dist/esm/Command.js
26483
26490
  var make56 = make55;
26484
26491
  var withSubcommands3 = withSubcommands2;
26485
26492
  var run8 = run7;
26486
26493
 
26487
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/commandExecutor.js
26494
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/commandExecutor.js
26488
26495
  var TypeId23 = /* @__PURE__ */ Symbol.for("@effect/platform/CommandExecutor");
26489
26496
  var ProcessTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Process");
26490
26497
  var ExitCode = /* @__PURE__ */ nominal();
@@ -26518,7 +26525,7 @@ var collectUint8Array = /* @__PURE__ */ foldLeftChunks2(/* @__PURE__ */ new Uint
26518
26525
  return newArray;
26519
26526
  }));
26520
26527
 
26521
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/command.js
26528
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/command.js
26522
26529
  var CommandTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Command");
26523
26530
  var flatten13 = (self) => Array.from(flattenLoop(self));
26524
26531
  var flattenLoop = (self) => {
@@ -26588,21 +26595,21 @@ var stdin = /* @__PURE__ */ dual(2, (self, input) => {
26588
26595
  }
26589
26596
  });
26590
26597
 
26591
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/Command.js
26598
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/Command.js
26592
26599
  var flatten14 = flatten13;
26593
26600
  var stdin2 = stdin;
26594
26601
 
26595
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/CommandExecutor.js
26602
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/CommandExecutor.js
26596
26603
  var CommandExecutor2 = CommandExecutor;
26597
26604
  var ProcessTypeId2 = ProcessTypeId;
26598
26605
  var ExitCode2 = ExitCode;
26599
26606
  var ProcessId2 = ProcessId;
26600
26607
  var makeExecutor2 = makeExecutor;
26601
26608
 
26602
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
26609
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
26603
26610
  var ChildProcess = __toESM(require("child_process"), 1);
26604
26611
 
26605
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/error.js
26612
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/error.js
26606
26613
  var handleErrnoException = (module2, method) => (err, [path2]) => {
26607
26614
  let reason = "Unknown";
26608
26615
  switch (err.code) {
@@ -27053,12 +27060,12 @@ var isMailbox = (u) => hasProperty(u, TypeId25);
27053
27060
  var make59 = make58;
27054
27061
  var toChannel4 = toChannel3;
27055
27062
 
27056
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/stream.js
27063
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/stream.js
27057
27064
  var import_node_stream = require("stream");
27058
- var fromReadable = (evaluate2, onError4, {
27065
+ var fromReadable = (evaluate3, onError4, {
27059
27066
  chunkSize
27060
- } = {}) => fromChannel4(fromReadableChannel(evaluate2, onError4, chunkSize ? Number(chunkSize) : void 0));
27061
- var fromReadableChannel = (evaluate2, onError4, chunkSize) => acquireUseRelease4(tap2(zip5(sync4(evaluate2), make59()), ([readable, mailbox]) => readableOffer(readable, mailbox, onError4)), ([readable, mailbox]) => readableTake(readable, mailbox, chunkSize), ([readable, mailbox]) => zipRight3(sync4(() => {
27067
+ } = {}) => fromChannel4(fromReadableChannel(evaluate3, onError4, chunkSize ? Number(chunkSize) : void 0));
27068
+ var fromReadableChannel = (evaluate3, onError4, chunkSize) => acquireUseRelease4(tap2(zip5(sync4(evaluate3), make59()), ([readable, mailbox]) => readableOffer(readable, mailbox, onError4)), ([readable, mailbox]) => readableTake(readable, mailbox, chunkSize), ([readable, mailbox]) => zipRight3(sync4(() => {
27062
27069
  if ("closed" in readable && !readable.closed) {
27063
27070
  readable.destroy();
27064
27071
  }
@@ -27132,8 +27139,8 @@ var readChunkChannel = (readable, chunkSize) => suspend9(() => {
27132
27139
  return write2(unsafeFromArray(arr));
27133
27140
  });
27134
27141
 
27135
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/sink.js
27136
- var fromWritable = (evaluate2, onError4, options3) => fromChannel3(fromWritableChannel(evaluate2, onError4, options3));
27142
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/sink.js
27143
+ var fromWritable = (evaluate3, onError4, options3) => fromChannel3(fromWritableChannel(evaluate3, onError4, options3));
27137
27144
  var fromWritableChannel = (writable, onError4, options3) => flatMap15(zip5(sync4(() => writable()), make24()), ([writable2, deferred]) => embedInput2(writableOutput(writable2, deferred, onError4), writeInput(writable2, (cause2) => failCause2(deferred, cause2), options3, complete(deferred, _void))));
27138
27145
  var writableOutput = (writable, deferred, onError4) => suspend4(() => {
27139
27146
  function handleError(err) {
@@ -27145,7 +27152,7 @@ var writableOutput = (writable, deferred, onError4) => suspend4(() => {
27145
27152
  }));
27146
27153
  });
27147
27154
 
27148
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
27155
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
27149
27156
  var inputToStdioOption = (stdin3) => typeof stdin3 === "string" ? stdin3 : "pipe";
27150
27157
  var outputToStdioOption = (output) => typeof output === "string" ? output : "pipe";
27151
27158
  var toError = (err) => err instanceof globalThis.Error ? err : new globalThis.Error(String(err));
@@ -27182,8 +27189,8 @@ var runCommand = (fileSystem) => (command) => {
27182
27189
  handle.on("error", (err) => {
27183
27190
  resume2(fail7(toPlatformError("spawn", err, command)));
27184
27191
  });
27185
- handle.on("exit", (...args2) => {
27186
- unsafeDone(exitCode2, succeed7(args2));
27192
+ handle.on("exit", (...args3) => {
27193
+ unsafeDone(exitCode2, succeed7(args3));
27187
27194
  });
27188
27195
  handle.on("spawn", () => {
27189
27196
  resume2(succeed7([handle, exitCode2]));
@@ -27252,28 +27259,28 @@ var runCommand = (fileSystem) => (command) => {
27252
27259
  };
27253
27260
  var layer2 = /* @__PURE__ */ effect(CommandExecutor2, /* @__PURE__ */ pipe(FileSystem, /* @__PURE__ */ map16((fileSystem) => makeExecutor2(runCommand(fileSystem)))));
27254
27261
 
27255
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.js
27262
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.js
27256
27263
  var layer3 = layer2;
27257
27264
 
27258
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/effectify.js
27259
- var effectify = (fn2, onError4, onSyncError) => (...args2) => async2((resume2) => {
27265
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/effectify.js
27266
+ var effectify = (fn2, onError4, onSyncError) => (...args3) => async2((resume2) => {
27260
27267
  try {
27261
- fn2(...args2, (err, result) => {
27268
+ fn2(...args3, (err, result) => {
27262
27269
  if (err) {
27263
- resume2(fail7(onError4 ? onError4(err, args2) : err));
27270
+ resume2(fail7(onError4 ? onError4(err, args3) : err));
27264
27271
  } else {
27265
27272
  resume2(succeed7(result));
27266
27273
  }
27267
27274
  });
27268
27275
  } catch (err) {
27269
- resume2(onSyncError ? fail7(onSyncError(err, args2)) : die5(err));
27276
+ resume2(onSyncError ? fail7(onSyncError(err, args3)) : die5(err));
27270
27277
  }
27271
27278
  });
27272
27279
 
27273
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/Effectify.js
27280
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/Effectify.js
27274
27281
  var effectify2 = effectify;
27275
27282
 
27276
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/fileSystem.js
27283
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/fileSystem.js
27277
27284
  var Crypto = __toESM(require("crypto"), 1);
27278
27285
  var NFS = __toESM(require("fs"), 1);
27279
27286
  var OS = __toESM(require("os"), 1);
@@ -27544,8 +27551,10 @@ var utimes2 = /* @__PURE__ */ (() => {
27544
27551
  const nodeUtimes = /* @__PURE__ */ effectify2(NFS.utimes, /* @__PURE__ */ handleErrnoException("FileSystem", "utime"), /* @__PURE__ */ handleBadArgument("utime"));
27545
27552
  return (path2, atime, mtime) => nodeUtimes(path2, atime, mtime);
27546
27553
  })();
27547
- var watchNode = (path2) => asyncScoped2((emit) => acquireRelease2(sync4(() => {
27548
- const watcher = NFS.watch(path2, {}, (event, path3) => {
27554
+ var watchNode = (path2, options3) => asyncScoped2((emit) => acquireRelease2(sync4(() => {
27555
+ const watcher = NFS.watch(path2, {
27556
+ recursive: options3?.recursive
27557
+ }, (event, path3) => {
27549
27558
  if (!path3) return;
27550
27559
  switch (event) {
27551
27560
  case "rename": {
@@ -27581,7 +27590,7 @@ var watchNode = (path2) => asyncScoped2((emit) => acquireRelease2(sync4(() => {
27581
27590
  });
27582
27591
  return watcher;
27583
27592
  }), (watcher) => sync4(() => watcher.close())));
27584
- var watch2 = (backend, path2) => stat2(path2).pipe(map16((stat3) => backend.pipe(flatMap((_) => _.register(path2, stat3)), getOrElse2(() => watchNode(path2)))), unwrap5);
27593
+ var watch2 = (backend, path2, options3) => stat2(path2).pipe(map16((stat3) => backend.pipe(flatMap((_) => _.register(path2, stat3, options3)), getOrElse2(() => watchNode(path2, options3)))), unwrap5);
27585
27594
  var writeFile2 = (path2, data, options3) => async2((resume2, signal) => {
27586
27595
  try {
27587
27596
  NFS.writeFile(path2, data, {
@@ -27622,17 +27631,17 @@ var makeFileSystem = /* @__PURE__ */ map16(/* @__PURE__ */ serviceOption2(WatchB
27622
27631
  symlink: symlink2,
27623
27632
  truncate: truncate2,
27624
27633
  utimes: utimes2,
27625
- watch(path2) {
27626
- return watch2(backend, path2);
27634
+ watch(path2, options3) {
27635
+ return watch2(backend, path2, options3);
27627
27636
  },
27628
27637
  writeFile: writeFile2
27629
27638
  }));
27630
27639
  var layer4 = /* @__PURE__ */ effect(FileSystem, makeFileSystem);
27631
27640
 
27632
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.js
27641
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.js
27633
27642
  var layer5 = layer4;
27634
27643
 
27635
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/path.js
27644
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/path.js
27636
27645
  var NodePath = __toESM(require("path"), 1);
27637
27646
  var NodeUrl = __toESM(require("url"), 1);
27638
27647
  var fromFileUrl2 = (url2) => try_2({
@@ -27672,10 +27681,10 @@ var layer6 = /* @__PURE__ */ succeed10(Path2, /* @__PURE__ */ Path2.of({
27672
27681
  toFileUrl: toFileUrl2
27673
27682
  }));
27674
27683
 
27675
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/NodePath.js
27684
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/NodePath.js
27676
27685
  var layer7 = layer6;
27677
27686
 
27678
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/terminal.js
27687
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/terminal.js
27679
27688
  var readline = __toESM(require("readline"), 1);
27680
27689
  var defaultShouldQuit = (input) => input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
27681
27690
  var make60 = (shouldQuit = defaultShouldQuit) => gen2(function* () {
@@ -27754,7 +27763,7 @@ var make60 = (shouldQuit = defaultShouldQuit) => gen2(function* () {
27754
27763
  });
27755
27764
  var layer8 = /* @__PURE__ */ scoped3(Terminal, /* @__PURE__ */ make60(defaultShouldQuit));
27756
27765
 
27757
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.js
27766
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.js
27758
27767
  var layer9 = layer8;
27759
27768
 
27760
27769
  // node_modules/.pnpm/effect@3.16.12/node_modules/effect/dist/esm/FiberSet.js
@@ -27812,7 +27821,7 @@ var isInternalInterruption = /* @__PURE__ */ reduceWithContext3(void 0, {
27812
27821
  sequentialCase: (_, left3, right3) => left3 || right3,
27813
27822
  parallelCase: (_, left3, right3) => left3 || right3
27814
27823
  });
27815
- var unsafeAdd = /* @__PURE__ */ dual((args2) => isFiberSet(args2[0]), (self, fiber, options3) => {
27824
+ var unsafeAdd = /* @__PURE__ */ dual((args3) => isFiberSet(args3[0]), (self, fiber, options3) => {
27816
27825
  if (self.state._tag === "Closed") {
27817
27826
  fiber.unsafeInterruptAsFork(combine3(options3?.interruptAs ?? none4, internalFiberId));
27818
27827
  return;
@@ -27832,7 +27841,7 @@ var unsafeAdd = /* @__PURE__ */ dual((args2) => isFiberSet(args2[0]), (self, fib
27832
27841
  });
27833
27842
  var join5 = (self) => _await(self.deferred);
27834
27843
 
27835
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/Transferable.js
27844
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/Transferable.js
27836
27845
  var Collector = class extends (/* @__PURE__ */ Tag2("@effect/platform/Transferable/Collector")()) {
27837
27846
  };
27838
27847
  var unsafeMakeCollector = () => {
@@ -27856,10 +27865,10 @@ var unsafeMakeCollector = () => {
27856
27865
  });
27857
27866
  };
27858
27867
 
27859
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/workerError.js
27868
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/workerError.js
27860
27869
  var WorkerErrorTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/WorkerError");
27861
27870
 
27862
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/WorkerError.js
27871
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/WorkerError.js
27863
27872
  var WorkerErrorTypeId2 = WorkerErrorTypeId;
27864
27873
  var WorkerError = class extends (/* @__PURE__ */ TaggedError2()("WorkerError", {
27865
27874
  reason: /* @__PURE__ */ Literal2("spawn", "decode", "send", "unknown", "encode"),
@@ -27903,7 +27912,7 @@ var WorkerError = class extends (/* @__PURE__ */ TaggedError2()("WorkerError", {
27903
27912
  }
27904
27913
  };
27905
27914
 
27906
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/worker.js
27915
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/internal/worker.js
27907
27916
  var PlatformWorkerTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Worker/PlatformWorker");
27908
27917
  var PlatformWorker = /* @__PURE__ */ GenericTag("@effect/platform/Worker/PlatformWorker");
27909
27918
  var WorkerManagerTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Worker/WorkerManager");
@@ -28062,12 +28071,12 @@ var makePlatform = () => (options3) => PlatformWorker.of({
28062
28071
  }
28063
28072
  });
28064
28073
 
28065
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/Worker.js
28074
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/Worker.js
28066
28075
  var makePlatform2 = makePlatform;
28067
28076
  var PlatformWorker2 = PlatformWorker;
28068
28077
  var layerManager2 = layerManager;
28069
28078
 
28070
- // node_modules/.pnpm/@effect+platform-node@0.89.3_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect+rpc@0.6_dhn6dhroj73fsdhqyd6tb7tzzy/node_modules/@effect/platform-node/dist/esm/internal/worker.js
28079
+ // node_modules/.pnpm/@effect+platform-node@0.89.5_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect+rpc@0.6_sr25567vovx2tzrgsyzt4avpa4/node_modules/@effect/platform-node/dist/esm/internal/worker.js
28071
28080
  var platformWorkerImpl = /* @__PURE__ */ makePlatform2()({
28072
28081
  setup({
28073
28082
  scope: scope4,
@@ -28128,13 +28137,13 @@ var platformWorkerImpl = /* @__PURE__ */ makePlatform2()({
28128
28137
  var layerWorker = /* @__PURE__ */ succeed10(PlatformWorker2, platformWorkerImpl);
28129
28138
  var layerManager3 = /* @__PURE__ */ provide3(layerManager2, layerWorker);
28130
28139
 
28131
- // node_modules/.pnpm/@effect+platform-node@0.89.3_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect+rpc@0.6_dhn6dhroj73fsdhqyd6tb7tzzy/node_modules/@effect/platform-node/dist/esm/NodeWorker.js
28140
+ // node_modules/.pnpm/@effect+platform-node@0.89.5_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect+rpc@0.6_sr25567vovx2tzrgsyzt4avpa4/node_modules/@effect/platform-node/dist/esm/NodeWorker.js
28132
28141
  var layerManager4 = layerManager3;
28133
28142
 
28134
- // node_modules/.pnpm/@effect+platform-node@0.89.3_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect+rpc@0.6_dhn6dhroj73fsdhqyd6tb7tzzy/node_modules/@effect/platform-node/dist/esm/NodeContext.js
28143
+ // node_modules/.pnpm/@effect+platform-node@0.89.5_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect+rpc@0.6_sr25567vovx2tzrgsyzt4avpa4/node_modules/@effect/platform-node/dist/esm/NodeContext.js
28135
28144
  var layer11 = /* @__PURE__ */ pipe(/* @__PURE__ */ mergeAll4(layer7, layer3, layer9, layerManager4), /* @__PURE__ */ provideMerge2(layer5));
28136
28145
 
28137
- // node_modules/.pnpm/@effect+platform@0.87.11_effect@3.16.12/node_modules/@effect/platform/dist/esm/Runtime.js
28146
+ // node_modules/.pnpm/@effect+platform@0.87.12_effect@3.16.12/node_modules/@effect/platform/dist/esm/Runtime.js
28138
28147
  var defaultTeardown = (exit4, onExit3) => {
28139
28148
  onExit3(isFailure(exit4) && !isInterruptedOnly2(exit4.cause) ? 1 : 0);
28140
28149
  };
@@ -28149,7 +28158,7 @@ var addPrettyLogger = (refs, fiberId2) => {
28149
28158
  value: loggers.pipe(remove4(defaultLogger2), add4(prettyLoggerDefault2))
28150
28159
  });
28151
28160
  };
28152
- var makeRunMain = (f) => dual((args2) => isEffect2(args2[0]), (effect3, options3) => {
28161
+ var makeRunMain = (f) => dual((args3) => isEffect2(args3[0]), (effect3, options3) => {
28153
28162
  const fiber = options3?.disableErrorReporting === true ? runFork2(effect3, {
28154
28163
  updateRefs: options3?.disablePrettyLogger === true ? void 0 : addPrettyLogger
28155
28164
  }) : runFork2(tapErrorCause2(effect3, (cause2) => {
@@ -28167,7 +28176,7 @@ var makeRunMain = (f) => dual((args2) => isEffect2(args2[0]), (effect3, options3
28167
28176
  });
28168
28177
  });
28169
28178
 
28170
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/internal/runtime.js
28179
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/internal/runtime.js
28171
28180
  var runMain = /* @__PURE__ */ makeRunMain(({
28172
28181
  fiber,
28173
28182
  teardown
@@ -28196,191 +28205,263 @@ var runMain = /* @__PURE__ */ makeRunMain(({
28196
28205
  process.on("SIGTERM", onSigint);
28197
28206
  });
28198
28207
 
28199
- // node_modules/.pnpm/@effect+platform-node-shared@0.42.15_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect_3gippcsmq5pk3fqkdfztxbglru/node_modules/@effect/platform-node-shared/dist/esm/NodeRuntime.js
28208
+ // node_modules/.pnpm/@effect+platform-node-shared@0.42.17_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect_4gcr4mmnr23kd4czky4xf3cnsa/node_modules/@effect/platform-node-shared/dist/esm/NodeRuntime.js
28200
28209
  var runMain2 = runMain;
28201
28210
 
28202
- // node_modules/.pnpm/@effect+platform-node@0.89.3_@effect+cluster@0.41.15_@effect+platform@0.87.11_@effect+rpc@0.6_dhn6dhroj73fsdhqyd6tb7tzzy/node_modules/@effect/platform-node/dist/esm/NodeRuntime.js
28211
+ // node_modules/.pnpm/@effect+platform-node@0.89.5_@effect+cluster@0.41.17_@effect+platform@0.87.12_@effect+rpc@0.6_sr25567vovx2tzrgsyzt4avpa4/node_modules/@effect/platform-node/dist/esm/NodeRuntime.js
28203
28212
  var runMain3 = runMain2;
28204
28213
 
28205
28214
  // src/cli.ts
28206
28215
  var ts = __toESM(require("typescript"));
28207
28216
 
28208
28217
  // src/core/Nano.ts
28209
- function makeInternalSuccess(value5) {
28210
- return { _tag: "Right", value: value5 };
28211
- }
28212
- function makeInternalDefect(value5) {
28213
- return { _tag: "Defect", value: value5 };
28214
- }
28218
+ var NanoTag = class {
28219
+ constructor(key) {
28220
+ this.key = key;
28221
+ }
28222
+ };
28223
+ var Tag4 = (identifier2) => new NanoTag(identifier2);
28224
+ var evaluate2 = Symbol.for("Nano.evaluate");
28225
+ var contA = Symbol.for("Nano.contA");
28226
+ var contE = Symbol.for("Nano.contE");
28227
+ var contAll = Symbol.for("Nano.contAll");
28228
+ var NanoYield = Symbol.for("Nano.yield");
28229
+ var args2 = Symbol.for("Nano.args");
28215
28230
  var NanoDefectException = class {
28216
28231
  constructor(message) {
28217
28232
  this.message = message;
28218
28233
  }
28219
28234
  _tag = "@effect/language-service/NanoDefectException";
28220
28235
  };
28221
- var NanoTag = class {
28222
- constructor(key) {
28223
- this.key = key;
28236
+ var PrimitiveProto = {
28237
+ [Symbol.iterator]() {
28238
+ return new SingleShotGen(new YieldWrap(this));
28224
28239
  }
28225
28240
  };
28226
- var Tag4 = (identifier2) => new NanoTag(identifier2);
28227
- var contextEmpty = { value: {} };
28228
- function make62(run10) {
28229
- const nano = {
28230
- run: run10,
28231
- [Symbol.iterator]() {
28232
- return new SingleShotGen(new YieldWrap(this));
28233
- }
28234
- };
28241
+ var SucceedProto = {
28242
+ ...PrimitiveProto,
28243
+ _tag: "Success",
28244
+ get value() {
28245
+ return this[args2];
28246
+ },
28247
+ [evaluate2](fiber) {
28248
+ const cont = fiber.getCont(contA);
28249
+ return cont ? cont[contA](this[args2], fiber) : fiber.yieldWith(this);
28250
+ }
28251
+ };
28252
+ var succeed17 = (value5) => {
28253
+ const nano = Object.create(SucceedProto);
28254
+ nano[args2] = value5;
28235
28255
  return nano;
28236
- }
28237
- var unsafeRun = (fa) => {
28238
- const program = provideService7(internalNanoCache, {})(fa);
28239
- const result = program.run(contextEmpty);
28240
- switch (result._tag) {
28241
- case "Left":
28242
- return left2(result.value);
28243
- case "Defect":
28244
- return left2(new NanoDefectException(result.value));
28245
- case "Right":
28246
- return right2(result.value);
28256
+ };
28257
+ var FailureProto = {
28258
+ ...PrimitiveProto,
28259
+ _tag: "Failure",
28260
+ get value() {
28261
+ return this[args2];
28262
+ },
28263
+ [evaluate2](fiber) {
28264
+ const cont = fiber.getCont(contE);
28265
+ return cont ? cont[contE](this[args2], fiber) : fiber.yieldWith(this);
28266
+ }
28267
+ };
28268
+ var fail18 = (error4) => {
28269
+ const nano = Object.create(FailureProto);
28270
+ nano[args2] = error4;
28271
+ return nano;
28272
+ };
28273
+ var SuspendProto = {
28274
+ ...PrimitiveProto,
28275
+ [evaluate2]() {
28276
+ return this[args2]();
28277
+ }
28278
+ };
28279
+ var suspend11 = (fn2) => {
28280
+ const nano = Object.create(SuspendProto);
28281
+ nano[args2] = fn2;
28282
+ return nano;
28283
+ };
28284
+ var NanoFiber = class {
28285
+ _stack = [];
28286
+ _yielded = void 0;
28287
+ _services = {};
28288
+ runLoop(nano) {
28289
+ let current = nano;
28290
+ while (true) {
28291
+ current = current[evaluate2](this);
28292
+ if (current === NanoYield) {
28293
+ return this._yielded;
28294
+ }
28295
+ }
28296
+ }
28297
+ getCont(symbol3) {
28298
+ while (true) {
28299
+ const op = this._stack.pop();
28300
+ if (!op) return void 0;
28301
+ const cont = op[contAll] && op[contAll](this);
28302
+ if (cont) return { [symbol3]: cont };
28303
+ if (op[symbol3]) return op;
28304
+ }
28305
+ }
28306
+ yieldWith(value5) {
28307
+ this._yielded = value5;
28308
+ return NanoYield;
28309
+ }
28310
+ };
28311
+ var unsafeRun = (nano) => {
28312
+ const fiber = new NanoFiber();
28313
+ const result = fiber.runLoop(nano);
28314
+ if (result._tag === "Success") {
28315
+ return right2(result.value);
28247
28316
  }
28317
+ return left2(result.value);
28248
28318
  };
28249
- var run9 = (fa) => {
28319
+ var run9 = (nano) => {
28250
28320
  try {
28251
- return unsafeRun(fa);
28321
+ return unsafeRun(nano);
28252
28322
  } catch (e) {
28253
28323
  return left2(new NanoDefectException(e));
28254
28324
  }
28255
28325
  };
28256
- var succeed17 = (value5) => {
28257
- const nano = {
28258
- run: () => ({ _tag: "Right", value: value5 }),
28259
- [Symbol.iterator]() {
28260
- return new SingleShotGen(new YieldWrap(this));
28261
- }
28262
- };
28326
+ var OnSuccessProto2 = {
28327
+ ...PrimitiveProto,
28328
+ [evaluate2](fiber) {
28329
+ fiber._stack.push(this);
28330
+ return this[args2];
28331
+ }
28332
+ };
28333
+ var flatMap18 = dual(2, (fa, f) => {
28334
+ const nano = Object.create(OnSuccessProto2);
28335
+ nano[args2] = fa;
28336
+ nano[contA] = f;
28263
28337
  return nano;
28338
+ });
28339
+ var map33 = dual(2, (fa, f) => flatMap18(fa, (_) => succeed17(f(_))));
28340
+ var SyncProto = {
28341
+ ...PrimitiveProto,
28342
+ [evaluate2](fiber) {
28343
+ const value5 = this[args2]();
28344
+ const cont = fiber.getCont(contA);
28345
+ return cont ? cont[contA](value5, fiber) : fiber.yieldWith(succeed17(value5));
28346
+ }
28264
28347
  };
28265
- var fail18 = (value5) => {
28266
- const nano = {
28267
- run: () => ({ _tag: "Left", value: value5 }),
28268
- [Symbol.iterator]() {
28269
- return new SingleShotGen(new YieldWrap(this));
28270
- }
28271
- };
28348
+ var sync11 = (f) => {
28349
+ const nano = Object.create(SyncProto);
28350
+ nano[args2] = f;
28272
28351
  return nano;
28273
28352
  };
28274
- var sync11 = (value5) => {
28275
- const nano = {
28276
- run: () => ({ _tag: "Right", value: value5() }),
28277
- [Symbol.iterator]() {
28278
- return new SingleShotGen(new YieldWrap(this));
28279
- }
28280
- };
28353
+ var void_8 = succeed17(void 0);
28354
+ var FromIteratorProto = {
28355
+ ...PrimitiveProto,
28356
+ [contA](value5, fiber) {
28357
+ const state = this[args2][0].next(value5);
28358
+ if (state.done) return succeed17(state.value);
28359
+ fiber._stack.push(this);
28360
+ return yieldWrapGet(state.value);
28361
+ },
28362
+ [evaluate2](fiber) {
28363
+ return this[contA](this[args2][1], fiber);
28364
+ }
28365
+ };
28366
+ var unsafeFromIterator = (iterator, initial) => {
28367
+ const nano = Object.create(FromIteratorProto);
28368
+ nano[args2] = [iterator, initial];
28369
+ return nano;
28370
+ };
28371
+ var gen3 = (...args3) => suspend11(() => unsafeFromIterator(args3[0]()));
28372
+ var fn = (_) => (body) => (...args3) => suspend11(() => unsafeFromIterator(body(...args3)));
28373
+ var MatchProto = {
28374
+ ...PrimitiveProto,
28375
+ [evaluate2](fiber) {
28376
+ fiber._stack.push(this);
28377
+ return this[args2];
28378
+ }
28379
+ };
28380
+ var match17 = (fa, opts) => {
28381
+ const nano = Object.create(MatchProto);
28382
+ nano[args2] = fa;
28383
+ nano[contA] = opts.onSuccess;
28384
+ nano[contE] = opts.onFailure;
28385
+ return nano;
28386
+ };
28387
+ var orElse14 = (f) => (fa) => {
28388
+ const nano = Object.create(MatchProto);
28389
+ nano[args2] = fa;
28390
+ nano[contE] = f;
28281
28391
  return nano;
28282
28392
  };
28283
- var flatMap18 = dual(2, (fa, f) => make62((ctx) => {
28284
- const result = fa.run(ctx);
28285
- if (result._tag !== "Right") return result;
28286
- return f(result.value).run(ctx);
28287
- }));
28288
- var map33 = dual(2, (fa, f) => make62((ctx) => {
28289
- const result = fa.run(ctx);
28290
- if (result._tag !== "Right") return result;
28291
- return makeInternalSuccess(f(result.value));
28292
- }));
28293
- var orElse14 = (f) => (fa) => make62((ctx) => {
28294
- const result = fa.run(ctx);
28295
- if (result._tag === "Left") return f(result.value).run(ctx);
28296
- return result;
28297
- });
28298
28393
  var firstSuccessOf2 = (arr) => arr.slice(1).reduce((arr2, fa) => orElse14(() => fa)(arr2), arr[0]);
28299
- var service2 = (tag4) => make62(
28300
- (ctx) => tag4.key in ctx.value ? ctx.value[tag4.key] : makeInternalDefect(`Cannot find service ${tag4.key}`)
28301
- );
28302
- var provideService7 = (tag4, value5) => (fa) => make62((ctx) => {
28303
- return fa.run({
28304
- ...ctx,
28305
- value: {
28306
- ...ctx.value,
28307
- [tag4.key]: makeInternalSuccess(value5)
28308
- }
28309
- });
28310
- });
28311
- var gen3 = (...args2) => make62((ctx) => {
28312
- const iterator = args2[0]();
28313
- let state = iterator.next();
28314
- while (!state.done) {
28315
- const current = isGenKind(state.value) ? state.value.value : yieldWrapGet(state.value);
28316
- const result = current.run(ctx);
28317
- if (result._tag !== "Right") {
28318
- return result;
28319
- }
28320
- state = iterator.next(result.value);
28394
+ var ProvideServiceProto = {
28395
+ ...PrimitiveProto,
28396
+ [evaluate2](fiber) {
28397
+ const prevServices = fiber._services;
28398
+ const [fa, tag4, value5] = this[args2];
28399
+ fiber._services = {
28400
+ ...fiber._services,
28401
+ [tag4.key]: value5
28402
+ };
28403
+ return match17(fa, {
28404
+ onSuccess: (_) => {
28405
+ fiber._services = prevServices;
28406
+ return succeed17(_);
28407
+ },
28408
+ onFailure: (_) => {
28409
+ fiber._services = prevServices;
28410
+ return fail18(_);
28411
+ }
28412
+ });
28321
28413
  }
28322
- return makeInternalSuccess(state.value);
28323
- });
28324
- var fn = (_) => (body) => (...args2) => make62((ctx) => {
28325
- const iterator = body(...args2);
28326
- let state = iterator.next();
28327
- while (!state.done) {
28328
- const current = isGenKind(state.value) ? state.value.value : yieldWrapGet(state.value);
28329
- const result = current.run(ctx);
28330
- if (result._tag !== "Right") {
28331
- return result;
28414
+ };
28415
+ var provideService7 = (tag4, value5) => (fa) => {
28416
+ const nano = Object.create(ProvideServiceProto);
28417
+ nano[args2] = [fa, tag4, value5];
28418
+ return nano;
28419
+ };
28420
+ var ServiceProto = {
28421
+ ...PrimitiveProto,
28422
+ [evaluate2](fiber) {
28423
+ const tag4 = this[args2];
28424
+ if (tag4.key in fiber._services) {
28425
+ const value5 = fiber._services[tag4.key];
28426
+ const cont2 = fiber.getCont(contA);
28427
+ return cont2 ? cont2[contA](value5, fiber) : fiber.yieldWith(succeed17(value5));
28332
28428
  }
28333
- state = iterator.next(result.value);
28429
+ const cont = fiber.getCont(contE);
28430
+ return cont ? cont[contE](tag4, fiber) : fiber.yieldWith(fail18(new NanoDefectException(`Service ${tag4.key} not found`)));
28334
28431
  }
28335
- return makeInternalSuccess(state.value);
28336
- });
28337
- var option4 = (fa) => make62((ctx) => {
28338
- const result = fa.run(ctx);
28339
- switch (result._tag) {
28340
- case "Right":
28341
- return makeInternalSuccess(some2(result.value));
28342
- case "Left":
28343
- return makeInternalSuccess(none2());
28344
- case "Defect":
28345
- return result;
28346
- }
28347
- });
28348
- var successUndefined = makeInternalSuccess(void 0);
28349
- var void_8 = make62(() => successUndefined);
28350
- var ignore3 = (fa) => make62((ctx) => {
28351
- fa.run(ctx);
28352
- return successUndefined;
28353
- });
28354
- var all9 = (...args2) => make62((ctx) => {
28355
- const results = [];
28356
- for (const arg of args2) {
28357
- const result = arg.run(ctx);
28358
- if (result._tag !== "Right") return result;
28359
- results.push(result.value);
28432
+ };
28433
+ var service2 = (tag4) => {
28434
+ const nano = Object.create(ServiceProto);
28435
+ nano[args2] = tag4;
28436
+ return nano;
28437
+ };
28438
+ function cachedBy(fa, _key, _lookupKey) {
28439
+ return (...args3) => fa(...args3);
28440
+ }
28441
+ var option4 = (fa) => {
28442
+ const nano = Object.create(MatchProto);
28443
+ nano[args2] = fa;
28444
+ nano[contA] = (_) => succeed17(some2(_));
28445
+ nano[contE] = (_) => _ instanceof NanoDefectException ? fail18(_) : succeed17(none2());
28446
+ return nano;
28447
+ };
28448
+ var ignore3 = (fa) => {
28449
+ const nano = Object.create(MatchProto);
28450
+ nano[args2] = fa;
28451
+ nano[contA] = (_) => void_8;
28452
+ nano[contE] = (_) => _ instanceof NanoDefectException ? fail18(_) : void_8;
28453
+ return nano;
28454
+ };
28455
+ var all9 = fn("all")(
28456
+ function* (...args3) {
28457
+ const results = [];
28458
+ for (const fa of args3) {
28459
+ const result = yield* fa;
28460
+ results.push(result);
28461
+ }
28462
+ return results;
28360
28463
  }
28361
- return makeInternalSuccess(results);
28362
- });
28363
- var internalNanoCache = Tag4(
28364
- "@effect/language-service/internalNanoCache"
28365
28464
  );
28366
- function cachedBy(fa, key, lookupKey) {
28367
- return (...args2) => make62((ctx) => {
28368
- const cacheObj = ctx.value[internalNanoCache.key];
28369
- let cache = cacheObj[key];
28370
- if (!cache) {
28371
- cache = /* @__PURE__ */ new Map();
28372
- cacheObj[key] = cache;
28373
- }
28374
- const lookup = lookupKey(...args2);
28375
- const cached3 = cache.get(lookup);
28376
- if (cached3 !== void 0) {
28377
- return cached3;
28378
- }
28379
- const result = fa(...args2).run(ctx);
28380
- cache.set(lookup, result);
28381
- return result;
28382
- });
28383
- }
28384
28465
 
28385
28466
  // src/core/LanguageServicePluginOptions.ts
28386
28467
  var LanguageServicePluginOptions = Tag4("PluginOptions");
@@ -28586,10 +28667,10 @@ var createDiagnosticExecutor = fn("LSP.createCommentDirectivesProcessor")(
28586
28667
  const sectionOverrides = {};
28587
28668
  const skippedRules = [];
28588
28669
  const regex = /@effect-diagnostics(-next-line)?((?:\s[a-zA-Z0-9/]+:(?:off|warning|error|message|suggestion|skip-file))+)?/gm;
28589
- let match17;
28590
- while ((match17 = regex.exec(sourceFile.text)) !== null) {
28591
- const nextLineCaptureGroup = match17[1];
28592
- const rulesCaptureGroup = match17[2];
28670
+ let match18;
28671
+ while ((match18 = regex.exec(sourceFile.text)) !== null) {
28672
+ const nextLineCaptureGroup = match18[1];
28673
+ const rulesCaptureGroup = match18[2];
28593
28674
  if (rulesCaptureGroup) {
28594
28675
  const trimmedRuleString = rulesCaptureGroup.trim();
28595
28676
  if (trimmedRuleString) {
@@ -28601,7 +28682,7 @@ var createDiagnosticExecutor = fn("LSP.createCommentDirectivesProcessor")(
28601
28682
  if (ruleLevel === "skip-file") skippedRules.push(ruleName);
28602
28683
  const isOverrideNextLine = nextLineCaptureGroup && nextLineCaptureGroup.trim().toLowerCase() === "-next-line";
28603
28684
  if (isOverrideNextLine) {
28604
- const node = findNodeWithLeadingCommentAtPosition(match17.index);
28685
+ const node = findNodeWithLeadingCommentAtPosition(match18.index);
28605
28686
  if (node) {
28606
28687
  lineOverrides[ruleName] = lineOverrides[ruleName] || [];
28607
28688
  lineOverrides[ruleName].unshift({
@@ -28613,7 +28694,7 @@ var createDiagnosticExecutor = fn("LSP.createCommentDirectivesProcessor")(
28613
28694
  } else {
28614
28695
  sectionOverrides[ruleName] = sectionOverrides[ruleName] || [];
28615
28696
  sectionOverrides[ruleName].unshift({
28616
- pos: match17.index,
28697
+ pos: match18.index,
28617
28698
  level: ruleLevel
28618
28699
  });
28619
28700
  }
@@ -28916,6 +28997,19 @@ var expectedAndRealType = fn("TypeCheckerApi.expectedAndRealType")(function* (so
28916
28997
  cache.expectedAndRealType.set(sourceFile, result);
28917
28998
  return result;
28918
28999
  });
29000
+ var unrollUnionMembers = (type2) => {
29001
+ const result = [];
29002
+ let toTest = [type2];
29003
+ while (toTest.length > 0) {
29004
+ const type3 = toTest.pop();
29005
+ if (type3.isUnion()) {
29006
+ toTest = toTest.concat(type3.types);
29007
+ } else {
29008
+ result.push(type3);
29009
+ }
29010
+ }
29011
+ return result;
29012
+ };
28919
29013
  var appendToUniqueTypesMap = fn(
28920
29014
  "TypeCheckerApi.appendToUniqueTypesMap"
28921
29015
  )(
@@ -29319,10 +29413,10 @@ var TypeParserIssue = class _TypeParserIssue {
29319
29413
  _tag = "@effect/language-service/TypeParserIssue";
29320
29414
  static issue = fail18(new _TypeParserIssue());
29321
29415
  };
29322
- function make63(ts2, typeChecker) {
29323
- function typeParserIssue(_message, _type, _node) {
29324
- return TypeParserIssue.issue;
29325
- }
29416
+ function typeParserIssue(_message, _type, _node) {
29417
+ return TypeParserIssue.issue;
29418
+ }
29419
+ function make62(ts2, typeChecker) {
29326
29420
  function covariantTypeArgument(type2) {
29327
29421
  const signatures = type2.getCallSignatures();
29328
29422
  if (signatures.length !== 1) {
@@ -29767,8 +29861,8 @@ function make63(ts2, typeChecker) {
29767
29861
  return succeed17({ node, subject: node.expression.expression, args: Array.from(node.arguments) });
29768
29862
  }
29769
29863
  if (ts2.isCallExpression(node) && ts2.isIdentifier(node.expression) && node.expression.text === "pipe" && node.arguments.length > 0) {
29770
- const [subject, ...args2] = node.arguments;
29771
- return succeed17({ node, subject, args: args2 });
29864
+ const [subject, ...args3] = node.arguments;
29865
+ return succeed17({ node, subject, args: args3 });
29772
29866
  }
29773
29867
  return typeParserIssue("Node is not a pipe call", void 0, node);
29774
29868
  },
@@ -29860,6 +29954,53 @@ ${versions.map((version) => `- found ${version} at ${resolvedPackages[packageNam
29860
29954
  })
29861
29955
  });
29862
29956
 
29957
+ // src/diagnostics/effectInVoidSuccess.ts
29958
+ var effectInVoidSuccess = createDiagnostic({
29959
+ name: "effectInVoidSuccess",
29960
+ code: 14,
29961
+ severity: "warning",
29962
+ apply: fn("effectInVoidSuccess.apply")(function* (sourceFile, report) {
29963
+ const ts2 = yield* service2(TypeScriptApi);
29964
+ const typeChecker = yield* service2(TypeCheckerApi);
29965
+ const typeParser = yield* service2(TypeParser);
29966
+ const checkForEffectInVoid = fn("effectInVoidSuccess.checkForEffectInVoid")(function* (node, expectedType, valueNode, realType) {
29967
+ const expectedEffect = yield* typeParser.effectType(expectedType, node);
29968
+ const realEffect = yield* typeParser.effectType(realType, valueNode);
29969
+ if (expectedEffect.A.flags & ts2.TypeFlags.Void) {
29970
+ const voidValueTypes = unrollUnionMembers(realEffect.A);
29971
+ const voidedEffect = yield* firstSuccessOf2(
29972
+ voidValueTypes.map((_) => map33(typeParser.strictEffectType(_, node), () => _))
29973
+ );
29974
+ return { voidedEffect };
29975
+ }
29976
+ return yield* fail18(typeParserIssue("expectedEffect success is not void"));
29977
+ });
29978
+ const entries2 = yield* expectedAndRealType(sourceFile);
29979
+ for (const [node, expectedType, valueNode, realType] of entries2) {
29980
+ if (expectedType !== realType) {
29981
+ yield* pipe(
29982
+ checkForEffectInVoid(
29983
+ node,
29984
+ expectedType,
29985
+ valueNode,
29986
+ realType
29987
+ ),
29988
+ map33(({ voidedEffect }) => {
29989
+ report(
29990
+ {
29991
+ node,
29992
+ messageText: `There is a nested '${typeChecker.typeToString(voidedEffect)}' in the 'void' success channel, beware that this could lead to nested Effect<Effect<...>> that won't be executed.`,
29993
+ fixes: []
29994
+ }
29995
+ );
29996
+ }),
29997
+ ignore3
29998
+ );
29999
+ }
30000
+ }
30001
+ })
30002
+ });
30003
+
29863
30004
  // src/diagnostics/floatingEffect.ts
29864
30005
  var floatingEffect = createDiagnostic({
29865
30006
  name: "floatingEffect",
@@ -30682,6 +30823,51 @@ Consider using "scoped" instead to get rid of the scope in the requirements.`,
30682
30823
  })
30683
30824
  });
30684
30825
 
30826
+ // src/diagnostics/tryCatchInEffectGen.ts
30827
+ var tryCatchInEffectGen = createDiagnostic({
30828
+ name: "tryCatchInEffectGen",
30829
+ code: 12,
30830
+ severity: "warning",
30831
+ apply: fn("tryCatchInEffectGen.apply")(function* (sourceFile, report) {
30832
+ const ts2 = yield* service2(TypeScriptApi);
30833
+ const typeParser = yield* service2(TypeParser);
30834
+ const nodeToVisit = [];
30835
+ const appendNodeToVisit = (node) => {
30836
+ nodeToVisit.push(node);
30837
+ return void 0;
30838
+ };
30839
+ ts2.forEachChild(sourceFile, appendNodeToVisit);
30840
+ while (nodeToVisit.length > 0) {
30841
+ const node = nodeToVisit.shift();
30842
+ ts2.forEachChild(node, appendNodeToVisit);
30843
+ if (ts2.isTryStatement(node)) {
30844
+ const generatorOrRegularFunction = ts2.findAncestor(
30845
+ node,
30846
+ (_) => ts2.isFunctionExpression(_) || ts2.isFunctionDeclaration(_) || ts2.isMethodDeclaration(_) || ts2.isArrowFunction(_) || ts2.isGetAccessor(_) || ts2.isFunctionLike(_)
30847
+ );
30848
+ if (!(generatorOrRegularFunction && "asteriskToken" in generatorOrRegularFunction && generatorOrRegularFunction.asteriskToken)) continue;
30849
+ if (!generatorOrRegularFunction) continue;
30850
+ if (generatorOrRegularFunction && generatorOrRegularFunction.parent) {
30851
+ const effectGenNode = generatorOrRegularFunction.parent;
30852
+ yield* pipe(
30853
+ typeParser.effectGen(effectGenNode),
30854
+ orElse14(() => typeParser.effectFnUntracedGen(effectGenNode)),
30855
+ orElse14(() => typeParser.effectFnGen(effectGenNode)),
30856
+ map33(() => {
30857
+ report({
30858
+ node,
30859
+ messageText: "Avoid using try/catch inside Effect generators. Use Effect's error handling mechanisms instead (e.g., Effect.try, Effect.tryPromise, Effect.catchAll, Effect.catchTag).",
30860
+ fixes: []
30861
+ });
30862
+ }),
30863
+ ignore3
30864
+ );
30865
+ }
30866
+ }
30867
+ }
30868
+ })
30869
+ });
30870
+
30685
30871
  // src/diagnostics/unnecessaryEffectGen.ts
30686
30872
  var unnecessaryEffectGen = createDiagnostic({
30687
30873
  name: "unnecessaryEffectGen",
@@ -30745,8 +30931,8 @@ var unnecessaryPipe = createDiagnostic({
30745
30931
  if (ts2.isCallExpression(node)) {
30746
30932
  yield* pipe(
30747
30933
  typeParser.pipeCall(node),
30748
- map33(({ args: args2, subject }) => {
30749
- if (args2.length === 0) {
30934
+ map33(({ args: args3, subject }) => {
30935
+ if (args3.length === 0) {
30750
30936
  report({
30751
30937
  node,
30752
30938
  messageText: `This pipe call contains no arguments.`,
@@ -30783,8 +30969,10 @@ var diagnostics = [
30783
30969
  unnecessaryPipe,
30784
30970
  genericEffectServices,
30785
30971
  returnEffectInGen,
30972
+ tryCatchInEffectGen,
30786
30973
  importFromBarrel,
30787
- scopeInLayerEffect
30974
+ scopeInLayerEffect,
30975
+ effectInVoidSuccess
30788
30976
  ];
30789
30977
 
30790
30978
  // src/cli.ts
@@ -30823,8 +31011,14 @@ var printCodeSnippet = (sourceFile, showStartPosition, showEndPosition) => gen2(
30823
31011
  const out = [];
30824
31012
  for (let lineIdx = 0; lineIdx < lines3.length; lineIdx++) {
30825
31013
  const lineNumber = (startLine + 1 + lineIdx).toFixed(0);
30826
- const lineCounterText = " ".repeat(lineNumberMaxLength - lineNumber.length) + lineNumber + " | ";
30827
- out.push(hcat2([string4(lineCounterText), space2, string4(lines3[lineIdx])]));
31014
+ const lineCounterText = " ".repeat(lineNumberMaxLength - lineNumber.length) + lineNumber + " ";
31015
+ out.push(
31016
+ hcat2([
31017
+ string4(lineCounterText),
31018
+ space2,
31019
+ string4(lines3[lineIdx])
31020
+ ]).pipe(annotate2(blackBright2))
31021
+ );
30828
31022
  }
30829
31023
  return vcat2(out);
30830
31024
  });
@@ -30833,7 +31027,7 @@ var applyColorBasedOnCategory = (severity) => (doc) => {
30833
31027
  case ts.DiagnosticCategory.Error:
30834
31028
  return annotate2(doc, redBright2);
30835
31029
  case ts.DiagnosticCategory.Warning:
30836
- return annotate2(doc, yellowBright2);
31030
+ return annotate2(doc, yellow3);
30837
31031
  case ts.DiagnosticCategory.Suggestion:
30838
31032
  return doc;
30839
31033
  case ts.DiagnosticCategory.Message:
@@ -30877,42 +31071,49 @@ var formatDiagnostic = (cwd, sourceFile, diagnostic) => gen2(function* () {
30877
31071
  ]);
30878
31072
  console.log(render3(doc, { style: "pretty", options: { lineWidth: terminalColumns } }));
30879
31073
  });
30880
- var checkEffect2 = gen2(function* () {
30881
- ;
30882
- ts.commonOptionsWithBuild.push(
30883
- { name: "noEmit" }
30884
- );
31074
+ var formatDiagnosticAsJson = (cwd, sourceFile, diagnostic) => {
31075
+ const ruleName = Object.values(diagnostics).find((_) => _.code === diagnostic.code)?.name || "unknown";
31076
+ const messageText = typeof diagnostic.messageText === "string" ? diagnostic.messageText : diagnostic.messageText.messageText;
31077
+ const relativePath = sourceFile.fileName.startsWith(cwd) ? "." + sourceFile.fileName.slice(cwd.length) : sourceFile.fileName;
31078
+ const { character, line: line4 } = diagnostic.start ? ts.getLineAndCharacterOfPosition(sourceFile, diagnostic.start) : { character: 0, line: 0 };
31079
+ const severityMap = {
31080
+ [ts.DiagnosticCategory.Error]: "error",
31081
+ [ts.DiagnosticCategory.Warning]: "warning",
31082
+ [ts.DiagnosticCategory.Suggestion]: "suggestion",
31083
+ [ts.DiagnosticCategory.Message]: "message"
31084
+ };
31085
+ return {
31086
+ file: relativePath,
31087
+ line: line4 + 1,
31088
+ column: character + 1,
31089
+ severity: severityMap[diagnostic.category],
31090
+ code: diagnostic.code,
31091
+ rule: ruleName,
31092
+ message: messageText
31093
+ };
31094
+ };
31095
+ var checkEffect2 = (format6) => gen2(function* () {
30885
31096
  const host = ts.createSolutionBuilderHost(
30886
31097
  ts.sys,
30887
- ts.createSemanticDiagnosticsBuilderProgram,
30888
- () => {
30889
- },
30890
- () => {
30891
- },
30892
- () => {
30893
- }
31098
+ ts.createSemanticDiagnosticsBuilderProgram
30894
31099
  );
30895
31100
  const cwd = host.getCurrentDirectory();
30896
- const solution = ts.createSolutionBuilder(host, ["./tsconfig.json"], {
30897
- force: true,
30898
- noEmit: true
30899
- });
30900
- let project2 = solution.getNextInvalidatedProject();
30901
- while (project2) {
30902
- const program = project2.getProgram();
31101
+ const runtime5 = yield* runtime4();
31102
+ host.afterProgramEmitAndDiagnostics = (_) => {
31103
+ const program = _.getProgram();
30903
31104
  const compilerOptions = program.getCompilerOptions();
30904
31105
  const pluginOptions = hasProperty(compilerOptions, "plugins") && isArray(compilerOptions.plugins) && compilerOptions.plugins.find(
30905
- (_) => hasProperty(_, "name") && _.name === "@effect/language-service"
31106
+ (_2) => hasProperty(_2, "name") && _2.name === "@effect/language-service"
30906
31107
  ) || {};
30907
31108
  const rootNames = program.getRootFileNames();
30908
- const sourceFiles = program.getSourceFiles().filter((_) => rootNames.indexOf(_.fileName) !== -1);
31109
+ const sourceFiles = program.getSourceFiles().filter((_2) => rootNames.indexOf(_2.fileName) !== -1);
30909
31110
  for (const sourceFile of sourceFiles) {
30910
31111
  const outputDiagnostics = pipe(
30911
31112
  getSemanticDiagnosticsWithCodeFixes(diagnostics, sourceFile),
30912
31113
  provideService7(TypeScriptApi, ts),
30913
31114
  provideService7(TypeScriptProgram, program),
30914
31115
  provideService7(TypeCheckerApi, program.getTypeChecker()),
30915
- provideService7(TypeParser, make63(ts, program.getTypeChecker())),
31116
+ provideService7(TypeParser, make62(ts, program.getTypeChecker())),
30916
31117
  provideService7(
30917
31118
  TypeCheckerApiCache,
30918
31119
  makeTypeCheckerApiCache()
@@ -30922,17 +31123,43 @@ var checkEffect2 = gen2(function* () {
30922
31123
  parse4(pluginOptions)
30923
31124
  ),
30924
31125
  run9,
30925
- map((_) => _.diagnostics),
31126
+ map((_2) => _2.diagnostics),
30926
31127
  getOrElse(() => [])
30927
31128
  );
30928
- yield* forEach8(outputDiagnostics, (diagnostic) => formatDiagnostic(cwd, sourceFile, diagnostic));
31129
+ if (format6 === "json") {
31130
+ for (const diagnostic of outputDiagnostics) {
31131
+ allDiagnostics.push(formatDiagnosticAsJson(cwd, sourceFile, diagnostic));
31132
+ }
31133
+ } else {
31134
+ runSync2(
31135
+ runtime5,
31136
+ forEach8(outputDiagnostics, (diagnostic) => formatDiagnostic(cwd, sourceFile, diagnostic))
31137
+ );
31138
+ }
30929
31139
  }
30930
- project2.done(void 0, () => {
30931
- });
31140
+ };
31141
+ const allDiagnostics = [];
31142
+ const solution = ts.createSolutionBuilder(host, ["./tsconfig.json"], {
31143
+ force: true,
31144
+ emitDeclarationOnly: true
31145
+ });
31146
+ let project2 = solution.getNextInvalidatedProject();
31147
+ while (project2) {
31148
+ project2.done(
31149
+ void 0,
31150
+ (fileName, text8, bom) => {
31151
+ if (fileName.endsWith(".d.ts") || fileName.endsWith(".map")) return;
31152
+ return ts.sys.writeFile(fileName, text8, bom);
31153
+ }
31154
+ );
30932
31155
  project2 = solution.getNextInvalidatedProject();
30933
31156
  }
30934
31157
  });
30935
- var checkCommand = make56("check", {}, () => checkEffect2);
31158
+ var formatOption = choice3("format", ["default", "json"]).pipe(
31159
+ withDefault3("default"),
31160
+ withDescription3("Output format for diagnostics (default or json)")
31161
+ );
31162
+ var checkCommand = make56("check", { format: formatOption }, ({ format: format6 }) => checkEffect2(format6));
30936
31163
  var cliCommand = make56(
30937
31164
  "effect-language-service",
30938
31165
  {},