@effect/language-service 0.76.0 → 0.77.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/README.md +1 -0
- package/cli.js +1240 -312
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +850 -20
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +882 -25
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +850 -20
- package/transform.js.map +1 -1
package/cli.js
CHANGED
|
@@ -12333,7 +12333,7 @@ var require_dist3 = __commonJS({
|
|
|
12333
12333
|
}
|
|
12334
12334
|
});
|
|
12335
12335
|
|
|
12336
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12336
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Pipeable.js
|
|
12337
12337
|
var pipeArguments = (self, args3) => {
|
|
12338
12338
|
switch (args3.length) {
|
|
12339
12339
|
case 0:
|
|
@@ -12377,7 +12377,7 @@ var Class = /* @__PURE__ */ (function() {
|
|
|
12377
12377
|
return PipeableBase;
|
|
12378
12378
|
})();
|
|
12379
12379
|
|
|
12380
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12380
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Function.js
|
|
12381
12381
|
var dual = function(arity, body) {
|
|
12382
12382
|
if (typeof arity === "function") {
|
|
12383
12383
|
return function() {
|
|
@@ -12439,7 +12439,7 @@ function memoize(f) {
|
|
|
12439
12439
|
};
|
|
12440
12440
|
}
|
|
12441
12441
|
|
|
12442
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12442
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/equal.js
|
|
12443
12443
|
var getAllObjectKeys = (obj) => {
|
|
12444
12444
|
const keys2 = new Set(Reflect.ownKeys(obj));
|
|
12445
12445
|
if (obj.constructor === Object) return keys2;
|
|
@@ -12462,7 +12462,7 @@ var getAllObjectKeys = (obj) => {
|
|
|
12462
12462
|
};
|
|
12463
12463
|
var byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
12464
12464
|
|
|
12465
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12465
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Predicate.js
|
|
12466
12466
|
function isString(input) {
|
|
12467
12467
|
return typeof input === "string";
|
|
12468
12468
|
}
|
|
@@ -12511,7 +12511,7 @@ function isObjectKeyword(input) {
|
|
|
12511
12511
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObjectKeyword(self) && property in self);
|
|
12512
12512
|
var isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag") && self["_tag"] === tag2);
|
|
12513
12513
|
|
|
12514
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12514
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Hash.js
|
|
12515
12515
|
var symbol = "~effect/interfaces/Hash";
|
|
12516
12516
|
var hash = (self) => {
|
|
12517
12517
|
switch (typeof self) {
|
|
@@ -12630,7 +12630,7 @@ function withVisitedTracking(obj, fn4) {
|
|
|
12630
12630
|
return result3;
|
|
12631
12631
|
}
|
|
12632
12632
|
|
|
12633
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12633
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Equal.js
|
|
12634
12634
|
var symbol2 = "~effect/interfaces/Equal";
|
|
12635
12635
|
function equals() {
|
|
12636
12636
|
if (arguments.length === 1) {
|
|
@@ -12792,7 +12792,7 @@ var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
|
|
|
12792
12792
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
12793
12793
|
var asEquivalence = () => equals;
|
|
12794
12794
|
|
|
12795
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12795
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Redactable.js
|
|
12796
12796
|
var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Inspectable/redactable");
|
|
12797
12797
|
var isRedactable = (u) => hasProperty(u, symbolRedactable);
|
|
12798
12798
|
function redact(u) {
|
|
@@ -12811,7 +12811,7 @@ var emptyServiceMap = {
|
|
|
12811
12811
|
}
|
|
12812
12812
|
};
|
|
12813
12813
|
|
|
12814
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12814
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Formatter.js
|
|
12815
12815
|
function format(input, options) {
|
|
12816
12816
|
const space = options?.space ?? 0;
|
|
12817
12817
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -12899,7 +12899,7 @@ function formatJson(input, options) {
|
|
|
12899
12899
|
return out;
|
|
12900
12900
|
}
|
|
12901
12901
|
|
|
12902
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12902
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Inspectable.js
|
|
12903
12903
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
12904
12904
|
var toJson = (input) => {
|
|
12905
12905
|
try {
|
|
@@ -12959,7 +12959,7 @@ var Class2 = class {
|
|
|
12959
12959
|
}
|
|
12960
12960
|
};
|
|
12961
12961
|
|
|
12962
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12962
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Utils.js
|
|
12963
12963
|
var GenKindTypeId = "~effect/Utils/GenKind";
|
|
12964
12964
|
var GenKindImpl = class {
|
|
12965
12965
|
value;
|
|
@@ -13027,7 +13027,7 @@ var internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[Intern
|
|
|
13027
13027
|
var genConstructor = function* () {
|
|
13028
13028
|
}.constructor;
|
|
13029
13029
|
|
|
13030
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13030
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/core.js
|
|
13031
13031
|
var EffectTypeId = `~effect/Effect`;
|
|
13032
13032
|
var ExitTypeId = `~effect/Exit`;
|
|
13033
13033
|
var effectVariance = {
|
|
@@ -13396,7 +13396,7 @@ var done = (value2) => {
|
|
|
13396
13396
|
return exitFail(Done(value2));
|
|
13397
13397
|
};
|
|
13398
13398
|
|
|
13399
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13399
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/option.js
|
|
13400
13400
|
var TypeId = "~effect/data/Option";
|
|
13401
13401
|
var CommonProto = {
|
|
13402
13402
|
[TypeId]: {
|
|
@@ -13461,7 +13461,7 @@ var some = (value2) => {
|
|
|
13461
13461
|
return a;
|
|
13462
13462
|
};
|
|
13463
13463
|
|
|
13464
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13464
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/result.js
|
|
13465
13465
|
var TypeId2 = "~effect/data/Result";
|
|
13466
13466
|
var CommonProto2 = {
|
|
13467
13467
|
[TypeId2]: {
|
|
@@ -13532,7 +13532,7 @@ var succeed = (success) => {
|
|
|
13532
13532
|
return a;
|
|
13533
13533
|
};
|
|
13534
13534
|
|
|
13535
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13535
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Order.js
|
|
13536
13536
|
function make(compare) {
|
|
13537
13537
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
13538
13538
|
}
|
|
@@ -13556,7 +13556,7 @@ var combine2 = /* @__PURE__ */ dual(2, (self, that) => make((a1, a2) => {
|
|
|
13556
13556
|
var mapInput = /* @__PURE__ */ dual(2, (self, f) => make((b1, b2) => self(f(b1), f(b2))));
|
|
13557
13557
|
var isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
13558
13558
|
|
|
13559
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13559
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Option.js
|
|
13560
13560
|
var none2 = () => none;
|
|
13561
13561
|
var some2 = some;
|
|
13562
13562
|
var isNone2 = isNone;
|
|
@@ -13575,7 +13575,7 @@ var filterMap = flatMap;
|
|
|
13575
13575
|
var filter = /* @__PURE__ */ dual(2, (self, predicate) => filterMap(self, (b) => predicate(b) ? some(b) : none));
|
|
13576
13576
|
var liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some2(b) : none2());
|
|
13577
13577
|
|
|
13578
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13578
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Result.js
|
|
13579
13579
|
var succeed2 = succeed;
|
|
13580
13580
|
var fail2 = fail;
|
|
13581
13581
|
var isFailure2 = isFailure;
|
|
@@ -13588,7 +13588,7 @@ var match2 = /* @__PURE__ */ dual(2, (self, {
|
|
|
13588
13588
|
}) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
|
|
13589
13589
|
var getOrElse2 = /* @__PURE__ */ dual(2, (self, onFailure) => isFailure2(self) ? onFailure(self.failure) : self.success);
|
|
13590
13590
|
|
|
13591
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13591
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Filter.js
|
|
13592
13592
|
var apply = (filter8, input, ...args3) => {
|
|
13593
13593
|
const result3 = filter8(input, ...args3);
|
|
13594
13594
|
if (result3 === true) return succeed2(input);
|
|
@@ -13607,10 +13607,10 @@ var toOption = (self) => (input) => {
|
|
|
13607
13607
|
return isFailure2(result3) ? none2() : some2(result3.success);
|
|
13608
13608
|
};
|
|
13609
13609
|
|
|
13610
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13610
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/array.js
|
|
13611
13611
|
var isArrayNonEmpty = (self) => self.length > 0;
|
|
13612
13612
|
|
|
13613
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13613
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Iterable.js
|
|
13614
13614
|
var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
13615
13615
|
let i = 0;
|
|
13616
13616
|
for (const a of self) {
|
|
@@ -13629,7 +13629,7 @@ var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
13629
13629
|
return none2();
|
|
13630
13630
|
});
|
|
13631
13631
|
|
|
13632
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13632
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Record.js
|
|
13633
13633
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
13634
13634
|
const out = {
|
|
13635
13635
|
...self
|
|
@@ -13641,7 +13641,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
13641
13641
|
});
|
|
13642
13642
|
var keys = (self) => Object.keys(self);
|
|
13643
13643
|
|
|
13644
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13644
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Array.js
|
|
13645
13645
|
var Array2 = globalThis.Array;
|
|
13646
13646
|
var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
|
|
13647
13647
|
var match3 = /* @__PURE__ */ dual(2, (self, {
|
|
@@ -13781,7 +13781,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
13781
13781
|
var dedupe = (self) => dedupeWith(self, asEquivalence());
|
|
13782
13782
|
var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
|
|
13783
13783
|
|
|
13784
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13784
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Duration.js
|
|
13785
13785
|
var TypeId3 = "~effect/time/Duration";
|
|
13786
13786
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
13787
13787
|
var bigint1e3 = /* @__PURE__ */ BigInt(1e3);
|
|
@@ -13985,7 +13985,7 @@ var Equivalence = (self, that) => matchPair(self, that, {
|
|
|
13985
13985
|
});
|
|
13986
13986
|
var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
|
|
13987
13987
|
|
|
13988
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13988
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/ServiceMap.js
|
|
13989
13989
|
var ServiceTypeId = "~effect/ServiceMap/Service";
|
|
13990
13990
|
var Service = function() {
|
|
13991
13991
|
const prevLimit = Error.stackTraceLimit;
|
|
@@ -14162,7 +14162,7 @@ var mergeAll = (...ctxs) => {
|
|
|
14162
14162
|
};
|
|
14163
14163
|
var Reference = Service;
|
|
14164
14164
|
|
|
14165
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14165
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Scheduler.js
|
|
14166
14166
|
var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
|
|
14167
14167
|
defaultValue: () => new MixedScheduler()
|
|
14168
14168
|
});
|
|
@@ -14258,7 +14258,7 @@ var MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBefore
|
|
|
14258
14258
|
defaultValue: () => 2048
|
|
14259
14259
|
});
|
|
14260
14260
|
|
|
14261
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14261
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Tracer.js
|
|
14262
14262
|
var ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
14263
14263
|
var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey)) {
|
|
14264
14264
|
};
|
|
@@ -14338,7 +14338,7 @@ var randomHexString = /* @__PURE__ */ (function() {
|
|
|
14338
14338
|
};
|
|
14339
14339
|
})();
|
|
14340
14340
|
|
|
14341
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14341
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/References.js
|
|
14342
14342
|
var CurrentConcurrency = /* @__PURE__ */ Reference("effect/References/CurrentConcurrency", {
|
|
14343
14343
|
defaultValue: () => "unbounded"
|
|
14344
14344
|
});
|
|
@@ -14370,10 +14370,10 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
|
|
|
14370
14370
|
defaultValue: () => []
|
|
14371
14371
|
});
|
|
14372
14372
|
|
|
14373
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14373
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/metric.js
|
|
14374
14374
|
var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
|
|
14375
14375
|
|
|
14376
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14376
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/tracer.js
|
|
14377
14377
|
var makeStackCleaner = (line) => (stack) => {
|
|
14378
14378
|
let cache;
|
|
14379
14379
|
return () => {
|
|
@@ -14388,10 +14388,10 @@ var makeStackCleaner = (line) => (stack) => {
|
|
|
14388
14388
|
};
|
|
14389
14389
|
};
|
|
14390
14390
|
|
|
14391
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14391
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/version.js
|
|
14392
14392
|
var version = "dev";
|
|
14393
14393
|
|
|
14394
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14394
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/effect.js
|
|
14395
14395
|
var Interrupt = class extends ReasonBase {
|
|
14396
14396
|
fiberId;
|
|
14397
14397
|
constructor(fiberId2, annotations = constEmptyAnnotations) {
|
|
@@ -16139,7 +16139,7 @@ var tracerLogger = /* @__PURE__ */ loggerMake(({
|
|
|
16139
16139
|
span.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clock.currentTimeNanosUnsafe(), attributes);
|
|
16140
16140
|
});
|
|
16141
16141
|
|
|
16142
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16142
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Cause.js
|
|
16143
16143
|
var fail4 = causeFail;
|
|
16144
16144
|
var hasInterruptsOnly2 = hasInterruptsOnly;
|
|
16145
16145
|
var findError2 = findError;
|
|
@@ -16151,7 +16151,7 @@ var Done2 = Done;
|
|
|
16151
16151
|
var done2 = done;
|
|
16152
16152
|
var UnknownError2 = UnknownError;
|
|
16153
16153
|
|
|
16154
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16154
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Exit.js
|
|
16155
16155
|
var succeed4 = exitSucceed;
|
|
16156
16156
|
var failCause2 = exitFailCause;
|
|
16157
16157
|
var fail5 = exitFail;
|
|
@@ -16160,7 +16160,7 @@ var isSuccess3 = exitIsSuccess;
|
|
|
16160
16160
|
var isFailure3 = exitIsFailure;
|
|
16161
16161
|
var match6 = exitMatch;
|
|
16162
16162
|
|
|
16163
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16163
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Deferred.js
|
|
16164
16164
|
var TypeId5 = "~effect/Deferred";
|
|
16165
16165
|
var DeferredProto = {
|
|
16166
16166
|
[TypeId5]: {
|
|
@@ -16202,7 +16202,7 @@ var doneUnsafe = (self, effect2) => {
|
|
|
16202
16202
|
return true;
|
|
16203
16203
|
};
|
|
16204
16204
|
|
|
16205
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16205
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Scope.js
|
|
16206
16206
|
var Scope = scopeTag;
|
|
16207
16207
|
var makeUnsafe3 = scopeMakeUnsafe;
|
|
16208
16208
|
var provide = provideScope;
|
|
@@ -16211,7 +16211,7 @@ var addFinalizer2 = scopeAddFinalizer;
|
|
|
16211
16211
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
16212
16212
|
var close = scopeClose;
|
|
16213
16213
|
|
|
16214
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16214
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Layer.js
|
|
16215
16215
|
var TypeId6 = "~effect/Layer";
|
|
16216
16216
|
var MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
16217
16217
|
var LayerProto = {
|
|
@@ -16282,6 +16282,7 @@ var succeed5 = function() {
|
|
|
16282
16282
|
return succeedServices(make3(arguments[0], arguments[1]));
|
|
16283
16283
|
};
|
|
16284
16284
|
var succeedServices = (services3) => fromBuildUnsafe(constant(succeed3(services3)));
|
|
16285
|
+
var empty3 = /* @__PURE__ */ succeedServices(/* @__PURE__ */ empty2());
|
|
16285
16286
|
var effect = function() {
|
|
16286
16287
|
if (arguments.length === 1) {
|
|
16287
16288
|
return (effect2) => effectImpl(arguments[0], effect2);
|
|
@@ -16301,7 +16302,7 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => mergeAll2(self, ...Array.is
|
|
|
16301
16302
|
var provideWith = (self, that, f) => fromBuild((memoMap, scope3) => flatMap3(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context) => self.build(memoMap, scope3).pipe(provideServices(context), map5((merged) => f(merged, context)))));
|
|
16302
16303
|
var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, (self2, that2) => merge(that2, self2)));
|
|
16303
16304
|
|
|
16304
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16305
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Data.js
|
|
16305
16306
|
var Class3 = class extends Class {
|
|
16306
16307
|
constructor(props) {
|
|
16307
16308
|
super();
|
|
@@ -16337,15 +16338,15 @@ function taggedMatch() {
|
|
|
16337
16338
|
var Error3 = Error2;
|
|
16338
16339
|
var TaggedError2 = TaggedError;
|
|
16339
16340
|
|
|
16340
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16341
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Number.js
|
|
16341
16342
|
var Number3 = globalThis.Number;
|
|
16342
16343
|
var Order = Number2;
|
|
16343
16344
|
|
|
16344
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16345
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/String.js
|
|
16345
16346
|
var String3 = globalThis.String;
|
|
16346
16347
|
var Order2 = String2;
|
|
16347
16348
|
|
|
16348
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16349
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Pull.js
|
|
16349
16350
|
var catchDone = /* @__PURE__ */ dual(2, (effect2, f) => catchCauseIf(effect2, filterDoneLeftover, (l) => f(l)));
|
|
16350
16351
|
var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
|
|
16351
16352
|
var isDoneFailure = (failure) => failure._tag === "Fail" && isDone2(failure.error);
|
|
@@ -16356,11 +16357,11 @@ var doneExitFromCause = (cause) => {
|
|
|
16356
16357
|
return !isFailure2(halt) ? succeed4(halt.success.value) : failCause2(halt.failure);
|
|
16357
16358
|
};
|
|
16358
16359
|
|
|
16359
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16360
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/layer.js
|
|
16360
16361
|
var provideLayer = (self, layer11, options) => scopedWith((scope3) => flatMap3(options?.local ? buildWithMemoMap(layer11, makeMemoMapUnsafe(), scope3) : buildWithScope(layer11, scope3), (context) => provideServices(self, context)));
|
|
16361
16362
|
var provide2 = /* @__PURE__ */ dual((args3) => isEffect(args3[0]), (self, source, options) => isServiceMap(source) ? provideServices(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
|
|
16362
16363
|
|
|
16363
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16364
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Effect.js
|
|
16364
16365
|
var TypeId7 = EffectTypeId;
|
|
16365
16366
|
var isEffect2 = (u) => typeof u === "object" && u !== null && TypeId7 in u;
|
|
16366
16367
|
var forEach2 = forEach;
|
|
@@ -16448,7 +16449,7 @@ var flatMapEager2 = flatMapEager;
|
|
|
16448
16449
|
var catchEager2 = catchEager;
|
|
16449
16450
|
var fnUntracedEager2 = fnUntracedEager;
|
|
16450
16451
|
|
|
16451
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16452
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Runtime.js
|
|
16452
16453
|
var defaultTeardown = (exit3, onExit4) => {
|
|
16453
16454
|
onExit4(isFailure3(exit3) ? hasInterruptsOnly2(exit3.cause) ? 130 : 1 : 0);
|
|
16454
16455
|
};
|
|
@@ -16466,7 +16467,7 @@ var makeRunMain = (f) => dual((args3) => isEffect2(args3[0]), (effect2, options)
|
|
|
16466
16467
|
});
|
|
16467
16468
|
});
|
|
16468
16469
|
|
|
16469
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
16470
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
16470
16471
|
var runMain = /* @__PURE__ */ makeRunMain(({
|
|
16471
16472
|
fiber: fiber2,
|
|
16472
16473
|
teardown
|
|
@@ -16493,10 +16494,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
|
|
|
16493
16494
|
process.on("SIGTERM", onSigint);
|
|
16494
16495
|
});
|
|
16495
16496
|
|
|
16496
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
16497
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.14_effect@4.0.0-beta.14_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
16497
16498
|
var runMain2 = runMain;
|
|
16498
16499
|
|
|
16499
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16500
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/record.js
|
|
16500
16501
|
function set(self, key, value2) {
|
|
16501
16502
|
if (key === "__proto__") {
|
|
16502
16503
|
Object.defineProperty(self, key, {
|
|
@@ -16511,19 +16512,25 @@ function set(self, key, value2) {
|
|
|
16511
16512
|
return self;
|
|
16512
16513
|
}
|
|
16513
16514
|
|
|
16514
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16515
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/schema/annotations.js
|
|
16515
16516
|
function resolve(ast) {
|
|
16516
16517
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
16517
16518
|
}
|
|
16519
|
+
function resolveAt(key) {
|
|
16520
|
+
return (ast) => resolve(ast)?.[key];
|
|
16521
|
+
}
|
|
16522
|
+
var resolveIdentifier = /* @__PURE__ */ resolveAt("identifier");
|
|
16518
16523
|
var getExpected = /* @__PURE__ */ memoize((ast) => {
|
|
16524
|
+
const identifier2 = resolveIdentifier(ast);
|
|
16525
|
+
if (typeof identifier2 === "string") return identifier2;
|
|
16519
16526
|
return ast.getExpected(getExpected);
|
|
16520
16527
|
});
|
|
16521
16528
|
|
|
16522
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16529
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/RegExp.js
|
|
16523
16530
|
var RegExp2 = globalThis.RegExp;
|
|
16524
16531
|
var escape = (string6) => string6.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
16525
16532
|
|
|
16526
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16533
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Encoding.js
|
|
16527
16534
|
var EncodingErrorTypeId = "~effect/encoding/EncodingError";
|
|
16528
16535
|
var EncodingError = class extends (/* @__PURE__ */ TaggedError2("EncodingError")) {
|
|
16529
16536
|
/**
|
|
@@ -16609,10 +16616,10 @@ function getBase64Code(charCode) {
|
|
|
16609
16616
|
var base64abc = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"];
|
|
16610
16617
|
var base64codes = [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 0, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51];
|
|
16611
16618
|
|
|
16612
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16619
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/redacted.js
|
|
16613
16620
|
var redactedRegistry = /* @__PURE__ */ new WeakMap();
|
|
16614
16621
|
|
|
16615
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16622
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Redacted.js
|
|
16616
16623
|
var TypeId8 = "~effect/data/Redacted";
|
|
16617
16624
|
var isRedacted = (u) => hasProperty(u, TypeId8);
|
|
16618
16625
|
var make5 = (value2, options) => {
|
|
@@ -16643,7 +16650,7 @@ var Proto2 = {
|
|
|
16643
16650
|
}
|
|
16644
16651
|
};
|
|
16645
16652
|
|
|
16646
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16653
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/SchemaIssue.js
|
|
16647
16654
|
var TypeId9 = "~effect/SchemaIssue/Issue";
|
|
16648
16655
|
function isIssue(u) {
|
|
16649
16656
|
return hasProperty(u, TypeId9);
|
|
@@ -16977,7 +16984,7 @@ function formatOption(actual) {
|
|
|
16977
16984
|
return format(actual.value);
|
|
16978
16985
|
}
|
|
16979
16986
|
|
|
16980
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16987
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/SchemaGetter.js
|
|
16981
16988
|
var Getter = class _Getter extends Class {
|
|
16982
16989
|
run;
|
|
16983
16990
|
constructor(run6) {
|
|
@@ -17051,7 +17058,7 @@ function decodeBase642() {
|
|
|
17051
17058
|
})).asEffect());
|
|
17052
17059
|
}
|
|
17053
17060
|
|
|
17054
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17061
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/SchemaTransformation.js
|
|
17055
17062
|
var TypeId10 = "~effect/SchemaTransformation/Transformation";
|
|
17056
17063
|
var Transformation = class _Transformation {
|
|
17057
17064
|
[TypeId10] = TypeId10;
|
|
@@ -17119,7 +17126,7 @@ var urlFromString = /* @__PURE__ */ transformOrFail2({
|
|
|
17119
17126
|
var uint8ArrayFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE__ */ decodeBase642(), /* @__PURE__ */ encodeBase642());
|
|
17120
17127
|
var fromJsonString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ parseJson(), /* @__PURE__ */ stringifyJson());
|
|
17121
17128
|
|
|
17122
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17129
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/SchemaAST.js
|
|
17123
17130
|
function makeGuard(tag2) {
|
|
17124
17131
|
return (ast) => ast._tag === tag2;
|
|
17125
17132
|
}
|
|
@@ -17192,7 +17199,7 @@ var Declaration = class _Declaration extends Base2 {
|
|
|
17192
17199
|
}
|
|
17193
17200
|
/** @internal */
|
|
17194
17201
|
getExpected() {
|
|
17195
|
-
const expected = this.annotations?.
|
|
17202
|
+
const expected = this.annotations?.expected;
|
|
17196
17203
|
if (typeof expected === "string") return expected;
|
|
17197
17204
|
return "<Declaration>";
|
|
17198
17205
|
}
|
|
@@ -18352,7 +18359,7 @@ function collectIssues(checks, value2, issues, ast, options) {
|
|
|
18352
18359
|
var ClassTypeId = "~effect/Schema/Class";
|
|
18353
18360
|
var STRUCTURAL_ANNOTATION_KEY = "~structural";
|
|
18354
18361
|
|
|
18355
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18362
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Brand.js
|
|
18356
18363
|
function nominal() {
|
|
18357
18364
|
return Object.assign((input) => input, {
|
|
18358
18365
|
option: (input) => some2(input),
|
|
@@ -18361,7 +18368,7 @@ function nominal() {
|
|
|
18361
18368
|
});
|
|
18362
18369
|
}
|
|
18363
18370
|
|
|
18364
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18371
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/PlatformError.js
|
|
18365
18372
|
var TypeId12 = "~effect/platform/PlatformError";
|
|
18366
18373
|
var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
|
|
18367
18374
|
/**
|
|
@@ -18403,15 +18410,15 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
|
|
|
18403
18410
|
var systemError = (options) => new PlatformError(new SystemError(options));
|
|
18404
18411
|
var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
18405
18412
|
|
|
18406
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18413
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Fiber.js
|
|
18407
18414
|
var TypeId13 = `~effect/Fiber/${version}`;
|
|
18408
18415
|
var interrupt3 = fiberInterrupt;
|
|
18409
18416
|
var runIn = fiberRunIn;
|
|
18410
18417
|
|
|
18411
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18418
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Latch.js
|
|
18412
18419
|
var makeUnsafe4 = makeLatchUnsafe;
|
|
18413
18420
|
|
|
18414
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18421
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/MutableList.js
|
|
18415
18422
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
18416
18423
|
var make8 = () => ({
|
|
18417
18424
|
head: void 0,
|
|
@@ -18482,7 +18489,7 @@ var take = (self) => {
|
|
|
18482
18489
|
return message;
|
|
18483
18490
|
};
|
|
18484
18491
|
|
|
18485
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18492
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/MutableRef.js
|
|
18486
18493
|
var TypeId14 = "~effect/MutableRef";
|
|
18487
18494
|
var MutableRefProto = {
|
|
18488
18495
|
[TypeId14]: TypeId14,
|
|
@@ -18500,7 +18507,7 @@ var make9 = (value2) => {
|
|
|
18500
18507
|
return ref;
|
|
18501
18508
|
};
|
|
18502
18509
|
|
|
18503
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18510
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Queue.js
|
|
18504
18511
|
var TypeId15 = "~effect/Queue";
|
|
18505
18512
|
var EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
18506
18513
|
var DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -18764,10 +18771,10 @@ var finalize = (self, exit3) => {
|
|
|
18764
18771
|
openState.awaiters.clear();
|
|
18765
18772
|
};
|
|
18766
18773
|
|
|
18767
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18774
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Semaphore.js
|
|
18768
18775
|
var makeUnsafe5 = makeSemaphoreUnsafe;
|
|
18769
18776
|
|
|
18770
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18777
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Channel.js
|
|
18771
18778
|
var TypeId16 = "~effect/Channel";
|
|
18772
18779
|
var isChannel = (u) => hasProperty(u, TypeId16);
|
|
18773
18780
|
var ChannelProto = {
|
|
@@ -18801,7 +18808,7 @@ var asyncQueue = (scope3, f, options) => make10({
|
|
|
18801
18808
|
strategy: options?.strategy
|
|
18802
18809
|
}).pipe(tap2((queue) => addFinalizer2(scope3, shutdown(queue))), tap2((queue) => forkIn2(provide(f(queue), scope3), scope3)));
|
|
18803
18810
|
var callbackArray = (f, options) => fromTransform((_, scope3) => map6(asyncQueue(scope3, f, options), takeAll2));
|
|
18804
|
-
var
|
|
18811
|
+
var empty4 = /* @__PURE__ */ fromPull(/* @__PURE__ */ succeed6(/* @__PURE__ */ done2()));
|
|
18805
18812
|
var mapDone = /* @__PURE__ */ dual(2, (self, f) => mapDoneEffect(self, (o) => succeed6(f(o))));
|
|
18806
18813
|
var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => succeed6(catchDone(pull, (done4) => flatMap4(f(done4), done2)))));
|
|
18807
18814
|
var merge3 = /* @__PURE__ */ dual((args3) => isChannel(args3[0]) && isChannel(args3[1]), (left, right, options) => fromTransformBracket(fnUntraced2(function* (upstream, _scope, forkedScope) {
|
|
@@ -18841,7 +18848,7 @@ var unwrap = (channel) => fromTransform((upstream, scope3) => {
|
|
|
18841
18848
|
});
|
|
18842
18849
|
var toPullScoped = (self, scope3) => toTransform(self)(done2(), scope3);
|
|
18843
18850
|
|
|
18844
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18851
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/stream.js
|
|
18845
18852
|
var TypeId17 = "~effect/Stream";
|
|
18846
18853
|
var streamVariance = {
|
|
18847
18854
|
_R: identity,
|
|
@@ -18860,7 +18867,7 @@ var fromChannel = (channel) => {
|
|
|
18860
18867
|
return self;
|
|
18861
18868
|
};
|
|
18862
18869
|
|
|
18863
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18870
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Sink.js
|
|
18864
18871
|
var TypeId18 = "~effect/Sink";
|
|
18865
18872
|
var endVoid = /* @__PURE__ */ succeed6([void 0]);
|
|
18866
18873
|
var sinkVariance = {
|
|
@@ -18897,7 +18904,7 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap4(f)
|
|
|
18897
18904
|
}), catchDone(() => endVoid)));
|
|
18898
18905
|
var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
|
|
18899
18906
|
|
|
18900
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18907
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/rcRef.js
|
|
18901
18908
|
var TypeId19 = "~effect/RcRef";
|
|
18902
18909
|
var stateEmpty = {
|
|
18903
18910
|
_tag: "Empty"
|
|
@@ -18995,11 +19002,11 @@ var get3 = /* @__PURE__ */ fnUntraced2(function* (self_) {
|
|
|
18995
19002
|
return state.value;
|
|
18996
19003
|
});
|
|
18997
19004
|
|
|
18998
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19005
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/RcRef.js
|
|
18999
19006
|
var make12 = make11;
|
|
19000
19007
|
var get4 = get3;
|
|
19001
19008
|
|
|
19002
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19009
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Stream.js
|
|
19003
19010
|
var TypeId20 = "~effect/Stream";
|
|
19004
19011
|
var isStream = (u) => hasProperty(u, TypeId20);
|
|
19005
19012
|
var fromChannel3 = fromChannel;
|
|
@@ -19007,7 +19014,7 @@ var fromPull2 = (pull) => fromChannel3(fromPull(pull));
|
|
|
19007
19014
|
var transformPull2 = (self, f) => fromChannel3(fromTransform((_, scope3) => flatMap4(toPullScoped(self.channel, scope3), (pull) => f(pull, scope3))));
|
|
19008
19015
|
var toChannel2 = (stream) => stream.channel;
|
|
19009
19016
|
var callback3 = (f, options) => fromChannel3(callbackArray(f, options));
|
|
19010
|
-
var
|
|
19017
|
+
var empty5 = /* @__PURE__ */ fromChannel3(empty4);
|
|
19011
19018
|
var unwrap3 = (effect2) => fromChannel3(unwrap(map6(effect2, toChannel2)));
|
|
19012
19019
|
var merge4 = /* @__PURE__ */ dual(2, (self, that, options) => fromChannel3(merge3(toChannel2(self), toChannel2(that), options)));
|
|
19013
19020
|
var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (upstream, scope3) => sync2(() => {
|
|
@@ -19032,7 +19039,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
|
|
|
19032
19039
|
})));
|
|
19033
19040
|
var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith2((scope3) => toPullScoped(self.channel, scope3).pipe(flatMap4((upstream) => sink.transform(upstream, scope3)), map6(([a]) => a))));
|
|
19034
19041
|
|
|
19035
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19042
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/FileSystem.js
|
|
19036
19043
|
var TypeId21 = "~effect/platform/FileSystem";
|
|
19037
19044
|
var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
|
|
19038
19045
|
var bigint1024 = /* @__PURE__ */ BigInt(1024);
|
|
@@ -19092,7 +19099,7 @@ var FileDescriptor = /* @__PURE__ */ nominal();
|
|
|
19092
19099
|
var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
|
|
19093
19100
|
};
|
|
19094
19101
|
|
|
19095
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19102
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Path.js
|
|
19096
19103
|
var TypeId22 = "~effect/platform/Path";
|
|
19097
19104
|
var Path = /* @__PURE__ */ Service("effect/Path");
|
|
19098
19105
|
function normalizeStringPosix(path4, allowAboveRoot) {
|
|
@@ -19560,7 +19567,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
|
|
|
19560
19567
|
toNamespacedPath: identity
|
|
19561
19568
|
});
|
|
19562
19569
|
|
|
19563
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19570
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
|
|
19564
19571
|
var ExitCode = /* @__PURE__ */ nominal();
|
|
19565
19572
|
var ProcessId = /* @__PURE__ */ nominal();
|
|
19566
19573
|
var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
|
|
@@ -19577,7 +19584,7 @@ var HandleProto = {
|
|
|
19577
19584
|
var makeHandle = (params) => Object.assign(Object.create(HandleProto), params);
|
|
19578
19585
|
var ChildProcessSpawner = /* @__PURE__ */ Service("effect/process/ChildProcessSpawner");
|
|
19579
19586
|
|
|
19580
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19587
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/process/ChildProcess.js
|
|
19581
19588
|
var TypeId23 = "~effect/unstable/process/ChildProcess";
|
|
19582
19589
|
var Proto3 = {
|
|
19583
19590
|
...PipeInspectableProto,
|
|
@@ -19701,10 +19708,10 @@ var splitByWhitespaces = (template, rawTemplate) => {
|
|
|
19701
19708
|
};
|
|
19702
19709
|
var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
|
|
19703
19710
|
|
|
19704
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
19711
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
19705
19712
|
var NodeChildProcess = __toESM(require("child_process"), 1);
|
|
19706
19713
|
|
|
19707
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
19714
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
19708
19715
|
var handleErrnoException = (module2, method) => (err, [path4]) => {
|
|
19709
19716
|
let reason = "Unknown";
|
|
19710
19717
|
switch (err.code) {
|
|
@@ -19740,7 +19747,7 @@ var handleErrnoException = (module2, method) => (err, [path4]) => {
|
|
|
19740
19747
|
});
|
|
19741
19748
|
};
|
|
19742
19749
|
|
|
19743
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
19750
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
19744
19751
|
var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_) => [_]));
|
|
19745
19752
|
var fromWritableChannel = (options) => fromTransform((pull) => {
|
|
19746
19753
|
const writable = options.evaluate();
|
|
@@ -19774,7 +19781,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap4((chunk) => {
|
|
|
19774
19781
|
});
|
|
19775
19782
|
}) : identity);
|
|
19776
19783
|
|
|
19777
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
19784
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
19778
19785
|
var import_node_stream = require("stream");
|
|
19779
19786
|
var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
|
|
19780
19787
|
var fromReadableChannel = (options) => fromTransform((_, scope3) => readableToPullUnsafe({
|
|
@@ -19832,7 +19839,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
19832
19839
|
};
|
|
19833
19840
|
var defaultOnError = (error2) => new UnknownError2(error2);
|
|
19834
19841
|
|
|
19835
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
19842
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
19836
19843
|
var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
|
|
19837
19844
|
var toPlatformError = (method, error2, command) => {
|
|
19838
19845
|
const {
|
|
@@ -19946,7 +19953,7 @@ var make16 = /* @__PURE__ */ gen2(function* () {
|
|
|
19946
19953
|
if (additionalFds.length === 0) {
|
|
19947
19954
|
return {
|
|
19948
19955
|
getInputFd: () => drain,
|
|
19949
|
-
getOutputFd: () =>
|
|
19956
|
+
getOutputFd: () => empty5
|
|
19950
19957
|
};
|
|
19951
19958
|
}
|
|
19952
19959
|
const inputSinks = /* @__PURE__ */ new Map();
|
|
@@ -19972,7 +19979,7 @@ var make16 = /* @__PURE__ */ gen2(function* () {
|
|
|
19972
19979
|
break;
|
|
19973
19980
|
}
|
|
19974
19981
|
case "output": {
|
|
19975
|
-
let stream =
|
|
19982
|
+
let stream = empty5;
|
|
19976
19983
|
if (nodeStream && "read" in nodeStream) {
|
|
19977
19984
|
stream = fromReadable({
|
|
19978
19985
|
evaluate: () => nodeStream,
|
|
@@ -19989,7 +19996,7 @@ var make16 = /* @__PURE__ */ gen2(function* () {
|
|
|
19989
19996
|
}
|
|
19990
19997
|
return {
|
|
19991
19998
|
getInputFd: (fd) => inputSinks.get(fd) ?? drain,
|
|
19992
|
-
getOutputFd: (fd) => outputStreams.get(fd) ??
|
|
19999
|
+
getOutputFd: (fd) => outputStreams.get(fd) ?? empty5
|
|
19993
20000
|
};
|
|
19994
20001
|
});
|
|
19995
20002
|
const setupChildStdin = (command, childProcess, config) => suspend2(() => {
|
|
@@ -20011,11 +20018,11 @@ var make16 = /* @__PURE__ */ gen2(function* () {
|
|
|
20011
20018
|
let stdout = childProcess.stdout ? fromReadable({
|
|
20012
20019
|
evaluate: () => childProcess.stdout,
|
|
20013
20020
|
onError: (error2) => toPlatformError("fromReadable(stdout)", toError(error2), command)
|
|
20014
|
-
}) :
|
|
20021
|
+
}) : empty5;
|
|
20015
20022
|
let stderr = childProcess.stderr ? fromReadable({
|
|
20016
20023
|
evaluate: () => childProcess.stderr,
|
|
20017
20024
|
onError: (error2) => toPlatformError("fromReadable(stderr)", toError(error2), command)
|
|
20018
|
-
}) :
|
|
20025
|
+
}) : empty5;
|
|
20019
20026
|
if (isSink(stdoutConfig.stream)) {
|
|
20020
20027
|
stdout = transduce(stdout, stdoutConfig.stream);
|
|
20021
20028
|
}
|
|
@@ -20246,7 +20253,7 @@ var flattenCommand = (command) => {
|
|
|
20246
20253
|
};
|
|
20247
20254
|
};
|
|
20248
20255
|
|
|
20249
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20256
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
|
|
20250
20257
|
var Crypto = __toESM(require("crypto"), 1);
|
|
20251
20258
|
var NFS = __toESM(require("fs"), 1);
|
|
20252
20259
|
var OS = __toESM(require("os"), 1);
|
|
@@ -20532,7 +20539,9 @@ var utimes2 = /* @__PURE__ */ (() => {
|
|
|
20532
20539
|
return (path4, atime, mtime) => nodeUtimes(path4, atime, mtime);
|
|
20533
20540
|
})();
|
|
20534
20541
|
var watchNode = (path4) => callback3((queue) => acquireRelease2(sync2(() => {
|
|
20535
|
-
const watcher = NFS.watch(path4, {
|
|
20542
|
+
const watcher = NFS.watch(path4, {
|
|
20543
|
+
recursive: true
|
|
20544
|
+
}, (event, path5) => {
|
|
20536
20545
|
if (!path5) return;
|
|
20537
20546
|
switch (event) {
|
|
20538
20547
|
case "rename": {
|
|
@@ -20625,10 +20634,10 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
|
|
|
20625
20634
|
}));
|
|
20626
20635
|
var layer2 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
20627
20636
|
|
|
20628
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
20637
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.14_effect@4.0.0-beta.14_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
20629
20638
|
var layer3 = layer2;
|
|
20630
20639
|
|
|
20631
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20640
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
20632
20641
|
var NodePath = __toESM(require("path"), 1);
|
|
20633
20642
|
var NodeUrl = __toESM(require("url"), 1);
|
|
20634
20643
|
var fromFileUrl2 = (url) => try_2({
|
|
@@ -20666,10 +20675,10 @@ var layer4 = /* @__PURE__ */ succeed5(Path)({
|
|
|
20666
20675
|
toFileUrl: toFileUrl2
|
|
20667
20676
|
});
|
|
20668
20677
|
|
|
20669
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
20678
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.14_effect@4.0.0-beta.14_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodePath.js
|
|
20670
20679
|
var layer5 = layer4;
|
|
20671
20680
|
|
|
20672
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20681
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Stdio.js
|
|
20673
20682
|
var TypeId24 = "~effect/Stdio";
|
|
20674
20683
|
var Stdio = /* @__PURE__ */ Service(TypeId24);
|
|
20675
20684
|
var make17 = (options) => ({
|
|
@@ -20677,7 +20686,7 @@ var make17 = (options) => ({
|
|
|
20677
20686
|
...options
|
|
20678
20687
|
});
|
|
20679
20688
|
|
|
20680
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20689
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
20681
20690
|
var layer6 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make17({
|
|
20682
20691
|
stdout: /* @__PURE__ */ fromWritable({
|
|
20683
20692
|
evaluate: () => process.stdout,
|
|
@@ -20709,13 +20718,13 @@ var layer6 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make17({
|
|
|
20709
20718
|
})
|
|
20710
20719
|
}));
|
|
20711
20720
|
|
|
20712
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
20721
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.14_effect@4.0.0-beta.14_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
20713
20722
|
var layer7 = layer6;
|
|
20714
20723
|
|
|
20715
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20724
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Struct.js
|
|
20716
20725
|
var lambda = (f) => f;
|
|
20717
20726
|
|
|
20718
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20727
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/SchemaParser.js
|
|
20719
20728
|
var recurDefaults = /* @__PURE__ */ memoize((ast) => {
|
|
20720
20729
|
switch (ast._tag) {
|
|
20721
20730
|
case "Declaration": {
|
|
@@ -20842,7 +20851,7 @@ var recur = /* @__PURE__ */ memoize((ast) => {
|
|
|
20842
20851
|
};
|
|
20843
20852
|
});
|
|
20844
20853
|
|
|
20845
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20854
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/schema/schema.js
|
|
20846
20855
|
var TypeId25 = "~effect/Schema/Schema";
|
|
20847
20856
|
var SchemaProto = {
|
|
20848
20857
|
[TypeId25]: TypeId25,
|
|
@@ -20870,7 +20879,7 @@ function make18(ast, options) {
|
|
|
20870
20879
|
return self;
|
|
20871
20880
|
}
|
|
20872
20881
|
|
|
20873
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20882
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/internal/schema/to-codec.js
|
|
20874
20883
|
function makeReorder(getPriority) {
|
|
20875
20884
|
return (types) => {
|
|
20876
20885
|
const indexMap = /* @__PURE__ */ new Map();
|
|
@@ -20891,7 +20900,7 @@ function makeReorder(getPriority) {
|
|
|
20891
20900
|
};
|
|
20892
20901
|
}
|
|
20893
20902
|
|
|
20894
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20903
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Schema.js
|
|
20895
20904
|
var TypeId26 = TypeId25;
|
|
20896
20905
|
function declareConstructor() {
|
|
20897
20906
|
return (typeParameters, run6, annotations) => {
|
|
@@ -21560,7 +21569,7 @@ function onSerializerEnsureArray(ast) {
|
|
|
21560
21569
|
}
|
|
21561
21570
|
}
|
|
21562
21571
|
|
|
21563
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21572
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Terminal.js
|
|
21564
21573
|
var TypeId27 = "~effect/platform/Terminal";
|
|
21565
21574
|
var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
|
|
21566
21575
|
var QuitError = class extends (/* @__PURE__ */ ErrorClass("QuitError")({
|
|
@@ -21578,7 +21587,7 @@ var make20 = (impl) => Terminal.of({
|
|
|
21578
21587
|
[TypeId27]: TypeId27
|
|
21579
21588
|
});
|
|
21580
21589
|
|
|
21581
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
21590
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.14_effect@4.0.0-beta.14/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
21582
21591
|
var readline = __toESM(require("readline"), 1);
|
|
21583
21592
|
var make21 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQuit) {
|
|
21584
21593
|
const stdin = process.stdin;
|
|
@@ -21649,13 +21658,13 @@ function defaultShouldQuit(input) {
|
|
|
21649
21658
|
return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
21650
21659
|
}
|
|
21651
21660
|
|
|
21652
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
21661
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.14_effect@4.0.0-beta.14_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
21653
21662
|
var layer9 = layer8;
|
|
21654
21663
|
|
|
21655
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
21664
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.14_effect@4.0.0-beta.14_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
21656
21665
|
var layer10 = /* @__PURE__ */ provideMerge(layer, /* @__PURE__ */ mergeAll2(layer3, layer5, layer7, layer9));
|
|
21657
21666
|
|
|
21658
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21667
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Console.js
|
|
21659
21668
|
var Console = ConsoleRef;
|
|
21660
21669
|
var consoleWith = (f) => withFiber((fiber2) => f(fiber2.getRef(Console)));
|
|
21661
21670
|
var error = (...args3) => consoleWith((console2) => sync(() => {
|
|
@@ -21665,7 +21674,7 @@ var log = (...args3) => consoleWith((console2) => sync(() => {
|
|
|
21665
21674
|
console2.log(...args3);
|
|
21666
21675
|
}));
|
|
21667
21676
|
|
|
21668
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21677
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/ConfigProvider.js
|
|
21669
21678
|
var import_meta = {};
|
|
21670
21679
|
function makeValue(value2) {
|
|
21671
21680
|
return {
|
|
@@ -21758,7 +21767,7 @@ function trieNodeAt(root, path4) {
|
|
|
21758
21767
|
return node;
|
|
21759
21768
|
}
|
|
21760
21769
|
|
|
21761
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21770
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Config.js
|
|
21762
21771
|
var TypeId28 = "~effect/Config";
|
|
21763
21772
|
var ConfigError = class {
|
|
21764
21773
|
_tag = "ConfigError";
|
|
@@ -21846,7 +21855,7 @@ function succeed8(value2) {
|
|
|
21846
21855
|
return make23(() => succeed6(value2));
|
|
21847
21856
|
}
|
|
21848
21857
|
|
|
21849
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21858
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/CliError.js
|
|
21850
21859
|
var CliError_exports = {};
|
|
21851
21860
|
__export(CliError_exports, {
|
|
21852
21861
|
DuplicateOption: () => DuplicateOption,
|
|
@@ -21997,7 +22006,7 @@ var UserError = class extends (/* @__PURE__ */ ErrorClass(`${TypeId29}/UserError
|
|
|
21997
22006
|
[TypeId29] = TypeId29;
|
|
21998
22007
|
};
|
|
21999
22008
|
|
|
22000
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22009
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/Primitive.js
|
|
22001
22010
|
var Ini = __toESM(require_ini(), 1);
|
|
22002
22011
|
var Toml = __toESM(require_toml(), 1);
|
|
22003
22012
|
var Yaml = __toESM(require_dist(), 1);
|
|
@@ -22148,7 +22157,7 @@ var getTypeName = (primitive) => {
|
|
|
22148
22157
|
};
|
|
22149
22158
|
var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
22150
22159
|
|
|
22151
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22160
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/ansi.js
|
|
22152
22161
|
var ESC = "\x1B[";
|
|
22153
22162
|
var BEL = "\x07";
|
|
22154
22163
|
var SEP = ";";
|
|
@@ -22221,7 +22230,7 @@ var eraseLines = (rows) => {
|
|
|
22221
22230
|
return command;
|
|
22222
22231
|
};
|
|
22223
22232
|
|
|
22224
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22233
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/Prompt.js
|
|
22225
22234
|
var TypeId31 = "~effect/cli/Prompt";
|
|
22226
22235
|
var defaultFigures = {
|
|
22227
22236
|
arrowUp: "\u2191",
|
|
@@ -22377,27 +22386,27 @@ var runWithInput = (prompt, terminal, input) => suspend2(() => {
|
|
|
22377
22386
|
});
|
|
22378
22387
|
var runLoop = /* @__PURE__ */ fnUntraced2(function* (loop, terminal, input) {
|
|
22379
22388
|
let state = isEffect2(loop.initialState) ? yield* loop.initialState : loop.initialState;
|
|
22380
|
-
let
|
|
22389
|
+
let action2 = Action.NextFrame({
|
|
22381
22390
|
state
|
|
22382
22391
|
});
|
|
22383
22392
|
while (true) {
|
|
22384
|
-
const msg = yield* loop.render(state,
|
|
22393
|
+
const msg = yield* loop.render(state, action2);
|
|
22385
22394
|
yield* orDie2(terminal.display(msg));
|
|
22386
22395
|
const event = yield* take2(input);
|
|
22387
|
-
|
|
22388
|
-
switch (
|
|
22396
|
+
action2 = yield* loop.process(event, state);
|
|
22397
|
+
switch (action2._tag) {
|
|
22389
22398
|
case "Beep":
|
|
22390
22399
|
continue;
|
|
22391
22400
|
case "NextFrame": {
|
|
22392
|
-
yield* orDie2(terminal.display(yield* loop.clear(state,
|
|
22393
|
-
state =
|
|
22401
|
+
yield* orDie2(terminal.display(yield* loop.clear(state, action2)));
|
|
22402
|
+
state = action2.state;
|
|
22394
22403
|
continue;
|
|
22395
22404
|
}
|
|
22396
22405
|
case "Submit": {
|
|
22397
|
-
yield* orDie2(terminal.display(yield* loop.clear(state,
|
|
22398
|
-
const msg2 = yield* loop.render(state,
|
|
22406
|
+
yield* orDie2(terminal.display(yield* loop.clear(state, action2)));
|
|
22407
|
+
const msg2 = yield* loop.render(state, action2);
|
|
22399
22408
|
yield* orDie2(terminal.display(msg2));
|
|
22400
|
-
return
|
|
22409
|
+
return action2.value;
|
|
22401
22410
|
}
|
|
22402
22411
|
}
|
|
22403
22412
|
}
|
|
@@ -22460,8 +22469,8 @@ var renderConfirmSubmission = /* @__PURE__ */ fnUntraced2(function* (value2, opt
|
|
|
22460
22469
|
return promptMsg + "\n";
|
|
22461
22470
|
});
|
|
22462
22471
|
var handleConfirmRender = (options) => {
|
|
22463
|
-
return (_,
|
|
22464
|
-
return Action.$match(
|
|
22472
|
+
return (_, action2) => {
|
|
22473
|
+
return Action.$match(action2, {
|
|
22465
22474
|
Beep: () => succeed6(renderBeep),
|
|
22466
22475
|
NextFrame: ({
|
|
22467
22476
|
state
|
|
@@ -22706,8 +22715,8 @@ var handleMultiSelectProcess = (options) => {
|
|
|
22706
22715
|
};
|
|
22707
22716
|
};
|
|
22708
22717
|
var handleMultiSelectRender = (options) => {
|
|
22709
|
-
return (state,
|
|
22710
|
-
return Action.$match(
|
|
22718
|
+
return (state, action2) => {
|
|
22719
|
+
return Action.$match(action2, {
|
|
22711
22720
|
Beep: () => succeed6(renderBeep),
|
|
22712
22721
|
NextFrame: ({
|
|
22713
22722
|
state: state2
|
|
@@ -22799,8 +22808,8 @@ var processSelectNext = (state, choices) => {
|
|
|
22799
22808
|
}));
|
|
22800
22809
|
};
|
|
22801
22810
|
var handleSelectRender = (options) => {
|
|
22802
|
-
return (state,
|
|
22803
|
-
return Action.$match(
|
|
22811
|
+
return (state, action2) => {
|
|
22812
|
+
return Action.$match(action2, {
|
|
22804
22813
|
Beep: () => succeed6(renderBeep),
|
|
22805
22814
|
NextFrame: ({
|
|
22806
22815
|
state: state2
|
|
@@ -23007,8 +23016,8 @@ var defaultTextProcessor = (input, state) => {
|
|
|
23007
23016
|
}));
|
|
23008
23017
|
};
|
|
23009
23018
|
var handleTextRender = (options) => {
|
|
23010
|
-
return (state,
|
|
23011
|
-
return Action.$match(
|
|
23019
|
+
return (state, action2) => {
|
|
23020
|
+
return Action.$match(action2, {
|
|
23012
23021
|
Beep: () => succeed6(renderBeep),
|
|
23013
23022
|
NextFrame: ({
|
|
23014
23023
|
state: state2
|
|
@@ -23090,7 +23099,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
23090
23099
|
};
|
|
23091
23100
|
};
|
|
23092
23101
|
|
|
23093
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23102
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/Param.js
|
|
23094
23103
|
var TypeId32 = "~effect/cli/Param";
|
|
23095
23104
|
var argumentKind = "argument";
|
|
23096
23105
|
var flagKind = "flag";
|
|
@@ -23518,7 +23527,7 @@ var getParamMetadata = (param) => {
|
|
|
23518
23527
|
});
|
|
23519
23528
|
};
|
|
23520
23529
|
|
|
23521
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23530
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/CliOutput.js
|
|
23522
23531
|
var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
|
|
23523
23532
|
defaultValue: () => defaultFormatter2()
|
|
23524
23533
|
});
|
|
@@ -23597,6 +23606,7 @@ var renderTable = (rows, widthCap) => {
|
|
|
23597
23606
|
right
|
|
23598
23607
|
}) => ` ${pad(left, col)}${right}`).join("\n");
|
|
23599
23608
|
};
|
|
23609
|
+
var formatSubcommandName = (name, alias) => alias ? `${name}, ${alias}` : name;
|
|
23600
23610
|
var formatHelpDocImpl = (doc, colors2) => {
|
|
23601
23611
|
const sections = [];
|
|
23602
23612
|
if (doc.description) {
|
|
@@ -23645,12 +23655,30 @@ var formatHelpDocImpl = (doc, colors2) => {
|
|
|
23645
23655
|
sections.push(renderTable(flagRows, 30));
|
|
23646
23656
|
sections.push("");
|
|
23647
23657
|
}
|
|
23658
|
+
if (doc.globalFlags && doc.globalFlags.length > 0) {
|
|
23659
|
+
sections.push(colors2.bold("GLOBAL FLAGS"));
|
|
23660
|
+
const globalFlagRows = doc.globalFlags.map((flag) => {
|
|
23661
|
+
const names = [];
|
|
23662
|
+
names.push(colors2.green(`--${flag.name}`));
|
|
23663
|
+
for (const alias of flag.aliases) {
|
|
23664
|
+
names.push(colors2.green(alias));
|
|
23665
|
+
}
|
|
23666
|
+
const namesPart = names.join(", ");
|
|
23667
|
+
const typePart = flag.type !== "boolean" ? ` ${colors2.dim(flag.type)}` : "";
|
|
23668
|
+
return {
|
|
23669
|
+
left: namesPart + typePart,
|
|
23670
|
+
right: flag.description ?? ""
|
|
23671
|
+
};
|
|
23672
|
+
});
|
|
23673
|
+
sections.push(renderTable(globalFlagRows, 30));
|
|
23674
|
+
sections.push("");
|
|
23675
|
+
}
|
|
23648
23676
|
if (doc.subcommands && doc.subcommands.length > 0) {
|
|
23649
23677
|
const ungrouped = doc.subcommands.find((group) => group.group === void 0);
|
|
23650
23678
|
if (ungrouped) {
|
|
23651
23679
|
sections.push(colors2.bold("SUBCOMMANDS"));
|
|
23652
23680
|
sections.push(renderTable(ungrouped.commands.map((sub) => ({
|
|
23653
|
-
left: colors2.cyan(sub.name),
|
|
23681
|
+
left: colors2.cyan(formatSubcommandName(sub.name, sub.alias)),
|
|
23654
23682
|
right: sub.shortDescription ?? sub.description
|
|
23655
23683
|
})), 20));
|
|
23656
23684
|
if (doc.subcommands.length > 1) {
|
|
@@ -23661,7 +23689,7 @@ var formatHelpDocImpl = (doc, colors2) => {
|
|
|
23661
23689
|
if (group.group === void 0) continue;
|
|
23662
23690
|
sections.push(colors2.bold(`${group.group}:`));
|
|
23663
23691
|
sections.push(renderTable(group.commands.map((sub) => ({
|
|
23664
|
-
left: colors2.cyan(sub.name),
|
|
23692
|
+
left: colors2.cyan(formatSubcommandName(sub.name, sub.alias)),
|
|
23665
23693
|
right: sub.shortDescription ?? sub.description
|
|
23666
23694
|
})), 20));
|
|
23667
23695
|
sections.push("");
|
|
@@ -23690,7 +23718,7 @@ var formatHelpDocImpl = (doc, colors2) => {
|
|
|
23690
23718
|
return sections.join("\n");
|
|
23691
23719
|
};
|
|
23692
23720
|
|
|
23693
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23721
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/Command.js
|
|
23694
23722
|
var Command_exports = {};
|
|
23695
23723
|
__export(Command_exports, {
|
|
23696
23724
|
annotate: () => annotate3,
|
|
@@ -23703,6 +23731,7 @@ __export(Command_exports, {
|
|
|
23703
23731
|
provideSync: () => provideSync,
|
|
23704
23732
|
run: () => run4,
|
|
23705
23733
|
runWith: () => runWith,
|
|
23734
|
+
withAlias: () => withAlias3,
|
|
23706
23735
|
withDescription: () => withDescription3,
|
|
23707
23736
|
withExamples: () => withExamples,
|
|
23708
23737
|
withHandler: () => withHandler,
|
|
@@ -23710,7 +23739,80 @@ __export(Command_exports, {
|
|
|
23710
23739
|
withSubcommands: () => withSubcommands
|
|
23711
23740
|
});
|
|
23712
23741
|
|
|
23713
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23742
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/Flag.js
|
|
23743
|
+
var Flag_exports = {};
|
|
23744
|
+
__export(Flag_exports, {
|
|
23745
|
+
atLeast: () => atLeast2,
|
|
23746
|
+
atMost: () => atMost2,
|
|
23747
|
+
between: () => between2,
|
|
23748
|
+
boolean: () => boolean4,
|
|
23749
|
+
choice: () => choice3,
|
|
23750
|
+
choiceWithValue: () => choiceWithValue2,
|
|
23751
|
+
date: () => date3,
|
|
23752
|
+
directory: () => directory2,
|
|
23753
|
+
file: () => file2,
|
|
23754
|
+
fileParse: () => fileParse3,
|
|
23755
|
+
fileSchema: () => fileSchema3,
|
|
23756
|
+
fileText: () => fileText3,
|
|
23757
|
+
filter: () => filter7,
|
|
23758
|
+
filterMap: () => filterMap3,
|
|
23759
|
+
float: () => float3,
|
|
23760
|
+
integer: () => integer3,
|
|
23761
|
+
keyValuePair: () => keyValuePair3,
|
|
23762
|
+
map: () => map10,
|
|
23763
|
+
mapEffect: () => mapEffect3,
|
|
23764
|
+
mapTryCatch: () => mapTryCatch2,
|
|
23765
|
+
none: () => none5,
|
|
23766
|
+
optional: () => optional3,
|
|
23767
|
+
orElse: () => orElse4,
|
|
23768
|
+
orElseResult: () => orElseResult2,
|
|
23769
|
+
path: () => path3,
|
|
23770
|
+
redacted: () => redacted3,
|
|
23771
|
+
string: () => string5,
|
|
23772
|
+
withAlias: () => withAlias2,
|
|
23773
|
+
withDefault: () => withDefault4,
|
|
23774
|
+
withDescription: () => withDescription2,
|
|
23775
|
+
withFallbackConfig: () => withFallbackConfig2,
|
|
23776
|
+
withFallbackPrompt: () => withFallbackPrompt2,
|
|
23777
|
+
withMetavar: () => withMetavar2,
|
|
23778
|
+
withSchema: () => withSchema2
|
|
23779
|
+
});
|
|
23780
|
+
var string5 = (name) => string4(flagKind, name);
|
|
23781
|
+
var boolean4 = (name) => boolean3(flagKind, name);
|
|
23782
|
+
var integer3 = (name) => integer2(flagKind, name);
|
|
23783
|
+
var float3 = (name) => float2(flagKind, name);
|
|
23784
|
+
var date3 = (name) => date2(flagKind, name);
|
|
23785
|
+
var choiceWithValue2 = (name, choices) => choiceWithValue(flagKind, name, choices);
|
|
23786
|
+
var choice3 = (name, choices) => choice2(flagKind, name, choices);
|
|
23787
|
+
var path3 = (name, options) => path2(flagKind, name, options);
|
|
23788
|
+
var file2 = (name, options) => file(flagKind, name, options);
|
|
23789
|
+
var directory2 = (name, options) => directory(flagKind, name, options);
|
|
23790
|
+
var redacted3 = (name) => redacted2(flagKind, name);
|
|
23791
|
+
var fileText3 = (name) => fileText2(flagKind, name);
|
|
23792
|
+
var fileParse3 = (name, options) => fileParse2(flagKind, name, options);
|
|
23793
|
+
var fileSchema3 = (name, schema, options) => fileSchema2(flagKind, name, schema, options);
|
|
23794
|
+
var keyValuePair3 = (name) => keyValuePair2(flagKind, name);
|
|
23795
|
+
var none5 = /* @__PURE__ */ none4(flagKind);
|
|
23796
|
+
var withAlias2 = /* @__PURE__ */ dual(2, (self, alias) => withAlias(self, alias));
|
|
23797
|
+
var withDescription2 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
|
|
23798
|
+
var withMetavar2 = /* @__PURE__ */ dual(2, (self, metavar) => withMetavar(self, metavar));
|
|
23799
|
+
var optional3 = (param) => optional2(param);
|
|
23800
|
+
var withDefault4 = withDefault3;
|
|
23801
|
+
var withFallbackConfig2 = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig(self, config));
|
|
23802
|
+
var withFallbackPrompt2 = /* @__PURE__ */ dual(2, (self, prompt) => withFallbackPrompt(self, prompt));
|
|
23803
|
+
var map10 = /* @__PURE__ */ dual(2, (self, f) => map9(self, f));
|
|
23804
|
+
var mapEffect3 = /* @__PURE__ */ dual(2, (self, f) => mapEffect2(self, f));
|
|
23805
|
+
var mapTryCatch2 = /* @__PURE__ */ dual(3, (self, f, onError4) => mapTryCatch(self, f, onError4));
|
|
23806
|
+
var atLeast2 = /* @__PURE__ */ dual(2, (self, min2) => atLeast(self, min2));
|
|
23807
|
+
var atMost2 = /* @__PURE__ */ dual(2, (self, max2) => atMost(self, max2));
|
|
23808
|
+
var between2 = /* @__PURE__ */ dual(3, (self, min2, max2) => between(self, min2, max2));
|
|
23809
|
+
var filterMap3 = /* @__PURE__ */ dual(3, (self, f, onNone) => filterMap2(self, f, onNone));
|
|
23810
|
+
var filter7 = /* @__PURE__ */ dual(3, (self, predicate, onFalse) => filter6(self, predicate, onFalse));
|
|
23811
|
+
var orElse4 = /* @__PURE__ */ dual(2, (self, that) => orElse3(self, that));
|
|
23812
|
+
var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
|
|
23813
|
+
var withSchema2 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
|
|
23814
|
+
|
|
23815
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/config.js
|
|
23714
23816
|
var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
23715
23817
|
var parseConfig = (config) => {
|
|
23716
23818
|
const orderedParams = [];
|
|
@@ -23774,7 +23876,7 @@ var reconstructTree = (tree, results) => {
|
|
|
23774
23876
|
}
|
|
23775
23877
|
};
|
|
23776
23878
|
|
|
23777
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23879
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/command.js
|
|
23778
23880
|
var TypeId33 = "~effect/cli/Command";
|
|
23779
23881
|
var toImpl = (self) => self;
|
|
23780
23882
|
var Proto8 = {
|
|
@@ -23846,6 +23948,7 @@ var makeCommand = (options) => {
|
|
|
23846
23948
|
group: group.group,
|
|
23847
23949
|
commands: map4(group.commands, (subcommand) => ({
|
|
23848
23950
|
name: subcommand.name,
|
|
23951
|
+
alias: subcommand.alias,
|
|
23849
23952
|
shortDescription: subcommand.shortDescription,
|
|
23850
23953
|
description: subcommand.description ?? ""
|
|
23851
23954
|
}))
|
|
@@ -23884,6 +23987,9 @@ var makeCommand = (options) => {
|
|
|
23884
23987
|
} : {},
|
|
23885
23988
|
...isNotUndefined(options.shortDescription) ? {
|
|
23886
23989
|
shortDescription: options.shortDescription
|
|
23990
|
+
} : {},
|
|
23991
|
+
...isNotUndefined(options.alias) ? {
|
|
23992
|
+
alias: options.alias
|
|
23887
23993
|
} : {}
|
|
23888
23994
|
});
|
|
23889
23995
|
};
|
|
@@ -23928,25 +24034,8 @@ var checkForDuplicateFlags = (parent, subcommands) => {
|
|
|
23928
24034
|
}
|
|
23929
24035
|
}
|
|
23930
24036
|
};
|
|
23931
|
-
var getHelpForCommandPath = (command, commandPath) => {
|
|
23932
|
-
let currentCommand = command;
|
|
23933
|
-
for (let i = 1; i < commandPath.length; i++) {
|
|
23934
|
-
const subcommandName = commandPath[i];
|
|
23935
|
-
let subcommand = void 0;
|
|
23936
|
-
for (const group of currentCommand.subcommands) {
|
|
23937
|
-
subcommand = group.commands.find((sub) => sub.name === subcommandName);
|
|
23938
|
-
if (subcommand) {
|
|
23939
|
-
break;
|
|
23940
|
-
}
|
|
23941
|
-
}
|
|
23942
|
-
if (subcommand) {
|
|
23943
|
-
currentCommand = subcommand;
|
|
23944
|
-
}
|
|
23945
|
-
}
|
|
23946
|
-
return toImpl(currentCommand).buildHelpDoc(commandPath);
|
|
23947
|
-
};
|
|
23948
24037
|
|
|
23949
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24038
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
|
|
23950
24039
|
var toFlagType = (single) => {
|
|
23951
24040
|
const tag2 = single.primitiveType._tag;
|
|
23952
24041
|
switch (tag2) {
|
|
@@ -24069,7 +24158,7 @@ var fromCommand = (cmd) => {
|
|
|
24069
24158
|
};
|
|
24070
24159
|
};
|
|
24071
24160
|
|
|
24072
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24161
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
|
|
24073
24162
|
var escapeForBash = (s) => s.replace(/'/g, "'\\''");
|
|
24074
24163
|
var sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
24075
24164
|
var flagNamesForWordlist = (flag) => {
|
|
@@ -24231,7 +24320,7 @@ var generate = (executableName, descriptor) => {
|
|
|
24231
24320
|
return lines2.join("\n");
|
|
24232
24321
|
};
|
|
24233
24322
|
|
|
24234
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24323
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
|
|
24235
24324
|
var escapeFishString = (s) => s.replace(/'/g, "\\'");
|
|
24236
24325
|
var subcommandCondition = (parentPath, childSubcommandNames) => {
|
|
24237
24326
|
if (parentPath.length === 0) {
|
|
@@ -24399,7 +24488,7 @@ var generate2 = (executableName, descriptor) => {
|
|
|
24399
24488
|
return lines2.join("\n");
|
|
24400
24489
|
};
|
|
24401
24490
|
|
|
24402
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24491
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
|
|
24403
24492
|
var escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
24404
24493
|
var sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
24405
24494
|
var allForms = (flag) => {
|
|
@@ -24443,12 +24532,12 @@ var argAction = (type) => {
|
|
|
24443
24532
|
var flagSpecs = (flag) => {
|
|
24444
24533
|
const specs = [];
|
|
24445
24534
|
const desc = flag.description ? `[${escapeZsh(flag.description)}]` : "";
|
|
24446
|
-
const
|
|
24535
|
+
const action2 = valueAction(flag.type);
|
|
24447
24536
|
const excl = `(${allForms(flag).join(" ")})`;
|
|
24448
|
-
specs.push(`'${excl}--${flag.name}${desc}${
|
|
24537
|
+
specs.push(`'${excl}--${flag.name}${desc}${action2}'`);
|
|
24449
24538
|
for (const alias of flag.aliases) {
|
|
24450
24539
|
const prefix = alias.length === 1 ? "-" : "--";
|
|
24451
|
-
specs.push(`'${excl}${prefix}${alias}${desc}${
|
|
24540
|
+
specs.push(`'${excl}${prefix}${alias}${desc}${action2}'`);
|
|
24452
24541
|
}
|
|
24453
24542
|
if (flag.type._tag === "Boolean") {
|
|
24454
24543
|
const negDesc = flag.description ? `[${escapeZsh(`Disable ${flag.name}`)}]` : "";
|
|
@@ -24458,9 +24547,9 @@ var flagSpecs = (flag) => {
|
|
|
24458
24547
|
};
|
|
24459
24548
|
var argSpec = (arg) => {
|
|
24460
24549
|
const desc = arg.description ? escapeZsh(arg.description) : arg.name;
|
|
24461
|
-
const
|
|
24550
|
+
const action2 = argAction(arg.type);
|
|
24462
24551
|
const prefix = arg.variadic ? "*" : "";
|
|
24463
|
-
return `'${prefix}:${desc}:${
|
|
24552
|
+
return `'${prefix}:${desc}:${action2}'`;
|
|
24464
24553
|
};
|
|
24465
24554
|
var generateFunction2 = (descriptor, parentPath, lines2) => {
|
|
24466
24555
|
const currentPath = [...parentPath, descriptor.name];
|
|
@@ -24557,7 +24646,7 @@ var generate3 = (executableName, descriptor) => {
|
|
|
24557
24646
|
return lines2.join("\n");
|
|
24558
24647
|
};
|
|
24559
24648
|
|
|
24560
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24649
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/completions/Completions.js
|
|
24561
24650
|
var generate4 = (executableName, shell, descriptor) => {
|
|
24562
24651
|
switch (shell) {
|
|
24563
24652
|
case "bash":
|
|
@@ -24569,7 +24658,101 @@ var generate4 = (executableName, shell, descriptor) => {
|
|
|
24569
24658
|
}
|
|
24570
24659
|
};
|
|
24571
24660
|
|
|
24572
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24661
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/help.js
|
|
24662
|
+
var getHelpForCommandPath = (command, commandPath, registry) => gen2(function* () {
|
|
24663
|
+
let currentCommand = command;
|
|
24664
|
+
for (let i = 1; i < commandPath.length; i++) {
|
|
24665
|
+
const subcommandName = commandPath[i];
|
|
24666
|
+
let subcommand = void 0;
|
|
24667
|
+
for (const group of currentCommand.subcommands) {
|
|
24668
|
+
subcommand = group.commands.find((sub) => sub.name === subcommandName);
|
|
24669
|
+
if (subcommand) {
|
|
24670
|
+
break;
|
|
24671
|
+
}
|
|
24672
|
+
}
|
|
24673
|
+
if (subcommand) {
|
|
24674
|
+
currentCommand = subcommand;
|
|
24675
|
+
}
|
|
24676
|
+
}
|
|
24677
|
+
const baseDoc = toImpl(currentCommand).buildHelpDoc(commandPath);
|
|
24678
|
+
const flags = yield* registry;
|
|
24679
|
+
const globalFlagDocs = [];
|
|
24680
|
+
for (const flag of flags) {
|
|
24681
|
+
const singles = extractSingleParams(flag.flag);
|
|
24682
|
+
for (const single of singles) {
|
|
24683
|
+
const formattedAliases = single.aliases.map((alias) => alias.length === 1 ? `-${alias}` : `--${alias}`);
|
|
24684
|
+
globalFlagDocs.push({
|
|
24685
|
+
name: single.name,
|
|
24686
|
+
aliases: formattedAliases,
|
|
24687
|
+
type: single.typeName ?? getTypeName(single.primitiveType),
|
|
24688
|
+
description: single.description,
|
|
24689
|
+
required: false
|
|
24690
|
+
});
|
|
24691
|
+
}
|
|
24692
|
+
}
|
|
24693
|
+
return {
|
|
24694
|
+
...baseDoc,
|
|
24695
|
+
globalFlags: globalFlagDocs
|
|
24696
|
+
};
|
|
24697
|
+
});
|
|
24698
|
+
|
|
24699
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/GlobalFlag.js
|
|
24700
|
+
var action = (options) => ({
|
|
24701
|
+
_tag: "Action",
|
|
24702
|
+
flag: options.flag,
|
|
24703
|
+
run: options.run
|
|
24704
|
+
});
|
|
24705
|
+
var setting = (options) => {
|
|
24706
|
+
settingIdCounter += 1;
|
|
24707
|
+
const ref = Reference(`effect/cli/GlobalFlag/Setting/${settingIdCounter}`, {
|
|
24708
|
+
defaultValue: options.defaultValue
|
|
24709
|
+
});
|
|
24710
|
+
return Object.assign(ref, {
|
|
24711
|
+
_tag: "Setting",
|
|
24712
|
+
flag: options.flag
|
|
24713
|
+
});
|
|
24714
|
+
};
|
|
24715
|
+
var settingIdCounter = 0;
|
|
24716
|
+
var Help = /* @__PURE__ */ action({
|
|
24717
|
+
flag: /* @__PURE__ */ boolean4("help").pipe(/* @__PURE__ */ withAlias2("h"), /* @__PURE__ */ withDescription2("Show help information")),
|
|
24718
|
+
run: (_, {
|
|
24719
|
+
command,
|
|
24720
|
+
commandPath
|
|
24721
|
+
}) => gen2(function* () {
|
|
24722
|
+
const formatter = yield* Formatter;
|
|
24723
|
+
const helpDoc = yield* getHelpForCommandPath(command, commandPath, Registry);
|
|
24724
|
+
yield* log(formatter.formatHelpDoc(helpDoc));
|
|
24725
|
+
})
|
|
24726
|
+
});
|
|
24727
|
+
var Version = /* @__PURE__ */ action({
|
|
24728
|
+
flag: /* @__PURE__ */ boolean4("version").pipe(/* @__PURE__ */ withDescription2("Show version information")),
|
|
24729
|
+
run: (_, {
|
|
24730
|
+
command,
|
|
24731
|
+
version: version2
|
|
24732
|
+
}) => gen2(function* () {
|
|
24733
|
+
const formatter = yield* Formatter;
|
|
24734
|
+
yield* log(formatter.formatVersion(command.name, version2));
|
|
24735
|
+
})
|
|
24736
|
+
});
|
|
24737
|
+
var Completions = /* @__PURE__ */ action({
|
|
24738
|
+
flag: /* @__PURE__ */ choice3("completions", ["bash", "zsh", "fish", "sh"]).pipe(optional3, /* @__PURE__ */ map10((v) => map(v, (s) => s === "sh" ? "bash" : s)), /* @__PURE__ */ withDescription2("Print shell completion script")),
|
|
24739
|
+
run: (shell, {
|
|
24740
|
+
command
|
|
24741
|
+
}) => gen2(function* () {
|
|
24742
|
+
if (isNone2(shell)) return;
|
|
24743
|
+
const descriptor = fromCommand(command);
|
|
24744
|
+
yield* log(generate4(command.name, shell.value, descriptor));
|
|
24745
|
+
})
|
|
24746
|
+
});
|
|
24747
|
+
var LogLevel = /* @__PURE__ */ setting({
|
|
24748
|
+
flag: /* @__PURE__ */ choiceWithValue2("log-level", [["all", "All"], ["trace", "Trace"], ["debug", "Debug"], ["info", "Info"], ["warn", "Warn"], ["warning", "Warn"], ["error", "Error"], ["fatal", "Fatal"], ["none", "None"]]).pipe(optional3, /* @__PURE__ */ withDescription2("Sets the minimum log level")),
|
|
24749
|
+
defaultValue: () => none2()
|
|
24750
|
+
});
|
|
24751
|
+
var Registry = /* @__PURE__ */ Reference("effect/cli/GlobalFlag/Registry", {
|
|
24752
|
+
defaultValue: () => /* @__PURE__ */ new Set([Help, Version, Completions, LogLevel])
|
|
24753
|
+
});
|
|
24754
|
+
|
|
24755
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/lexer.js
|
|
24573
24756
|
function lex(argv) {
|
|
24574
24757
|
const endIndex = argv.indexOf("--");
|
|
24575
24758
|
if (endIndex === -1) {
|
|
@@ -24630,7 +24813,7 @@ var lexTokens = (args3) => {
|
|
|
24630
24813
|
return tokens;
|
|
24631
24814
|
};
|
|
24632
24815
|
|
|
24633
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24816
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
|
|
24634
24817
|
var levenshtein = (a, b) => {
|
|
24635
24818
|
const m = a.length;
|
|
24636
24819
|
const n = b.length;
|
|
@@ -24654,124 +24837,8 @@ var suggest = (input, candidates) => {
|
|
|
24654
24837
|
return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
|
|
24655
24838
|
};
|
|
24656
24839
|
|
|
24657
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24658
|
-
var Flag_exports = {};
|
|
24659
|
-
__export(Flag_exports, {
|
|
24660
|
-
atLeast: () => atLeast2,
|
|
24661
|
-
atMost: () => atMost2,
|
|
24662
|
-
between: () => between2,
|
|
24663
|
-
boolean: () => boolean4,
|
|
24664
|
-
choice: () => choice3,
|
|
24665
|
-
choiceWithValue: () => choiceWithValue2,
|
|
24666
|
-
date: () => date3,
|
|
24667
|
-
directory: () => directory2,
|
|
24668
|
-
file: () => file2,
|
|
24669
|
-
fileParse: () => fileParse3,
|
|
24670
|
-
fileSchema: () => fileSchema3,
|
|
24671
|
-
fileText: () => fileText3,
|
|
24672
|
-
filter: () => filter7,
|
|
24673
|
-
filterMap: () => filterMap3,
|
|
24674
|
-
float: () => float3,
|
|
24675
|
-
integer: () => integer3,
|
|
24676
|
-
keyValuePair: () => keyValuePair3,
|
|
24677
|
-
map: () => map10,
|
|
24678
|
-
mapEffect: () => mapEffect3,
|
|
24679
|
-
mapTryCatch: () => mapTryCatch2,
|
|
24680
|
-
none: () => none5,
|
|
24681
|
-
optional: () => optional3,
|
|
24682
|
-
orElse: () => orElse4,
|
|
24683
|
-
orElseResult: () => orElseResult2,
|
|
24684
|
-
path: () => path3,
|
|
24685
|
-
redacted: () => redacted3,
|
|
24686
|
-
string: () => string5,
|
|
24687
|
-
withAlias: () => withAlias2,
|
|
24688
|
-
withDefault: () => withDefault4,
|
|
24689
|
-
withDescription: () => withDescription2,
|
|
24690
|
-
withFallbackConfig: () => withFallbackConfig2,
|
|
24691
|
-
withFallbackPrompt: () => withFallbackPrompt2,
|
|
24692
|
-
withMetavar: () => withMetavar2,
|
|
24693
|
-
withSchema: () => withSchema2
|
|
24694
|
-
});
|
|
24695
|
-
var string5 = (name) => string4(flagKind, name);
|
|
24696
|
-
var boolean4 = (name) => boolean3(flagKind, name);
|
|
24697
|
-
var integer3 = (name) => integer2(flagKind, name);
|
|
24698
|
-
var float3 = (name) => float2(flagKind, name);
|
|
24699
|
-
var date3 = (name) => date2(flagKind, name);
|
|
24700
|
-
var choiceWithValue2 = (name, choices) => choiceWithValue(flagKind, name, choices);
|
|
24701
|
-
var choice3 = (name, choices) => choice2(flagKind, name, choices);
|
|
24702
|
-
var path3 = (name, options) => path2(flagKind, name, options);
|
|
24703
|
-
var file2 = (name, options) => file(flagKind, name, options);
|
|
24704
|
-
var directory2 = (name, options) => directory(flagKind, name, options);
|
|
24705
|
-
var redacted3 = (name) => redacted2(flagKind, name);
|
|
24706
|
-
var fileText3 = (name) => fileText2(flagKind, name);
|
|
24707
|
-
var fileParse3 = (name, options) => fileParse2(flagKind, name, options);
|
|
24708
|
-
var fileSchema3 = (name, schema, options) => fileSchema2(flagKind, name, schema, options);
|
|
24709
|
-
var keyValuePair3 = (name) => keyValuePair2(flagKind, name);
|
|
24710
|
-
var none5 = /* @__PURE__ */ none4(flagKind);
|
|
24711
|
-
var withAlias2 = /* @__PURE__ */ dual(2, (self, alias) => withAlias(self, alias));
|
|
24712
|
-
var withDescription2 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
|
|
24713
|
-
var withMetavar2 = /* @__PURE__ */ dual(2, (self, metavar) => withMetavar(self, metavar));
|
|
24714
|
-
var optional3 = (param) => optional2(param);
|
|
24715
|
-
var withDefault4 = withDefault3;
|
|
24716
|
-
var withFallbackConfig2 = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig(self, config));
|
|
24717
|
-
var withFallbackPrompt2 = /* @__PURE__ */ dual(2, (self, prompt) => withFallbackPrompt(self, prompt));
|
|
24718
|
-
var map10 = /* @__PURE__ */ dual(2, (self, f) => map9(self, f));
|
|
24719
|
-
var mapEffect3 = /* @__PURE__ */ dual(2, (self, f) => mapEffect2(self, f));
|
|
24720
|
-
var mapTryCatch2 = /* @__PURE__ */ dual(3, (self, f, onError4) => mapTryCatch(self, f, onError4));
|
|
24721
|
-
var atLeast2 = /* @__PURE__ */ dual(2, (self, min2) => atLeast(self, min2));
|
|
24722
|
-
var atMost2 = /* @__PURE__ */ dual(2, (self, max2) => atMost(self, max2));
|
|
24723
|
-
var between2 = /* @__PURE__ */ dual(3, (self, min2, max2) => between(self, min2, max2));
|
|
24724
|
-
var filterMap3 = /* @__PURE__ */ dual(3, (self, f, onNone) => filterMap2(self, f, onNone));
|
|
24725
|
-
var filter7 = /* @__PURE__ */ dual(3, (self, predicate, onFalse) => filter6(self, predicate, onFalse));
|
|
24726
|
-
var orElse4 = /* @__PURE__ */ dual(2, (self, that) => orElse3(self, that));
|
|
24727
|
-
var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
|
|
24728
|
-
var withSchema2 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
|
|
24729
|
-
|
|
24730
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.12/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
|
|
24731
|
-
var logLevelFlag = /* @__PURE__ */ choiceWithValue2("log-level", [
|
|
24732
|
-
["all", "All"],
|
|
24733
|
-
["trace", "Trace"],
|
|
24734
|
-
["debug", "Debug"],
|
|
24735
|
-
["info", "Info"],
|
|
24736
|
-
["warn", "Warn"],
|
|
24737
|
-
["warning", "Warn"],
|
|
24738
|
-
// alias
|
|
24739
|
-
["error", "Error"],
|
|
24740
|
-
["fatal", "Fatal"],
|
|
24741
|
-
["none", "None"]
|
|
24742
|
-
]).pipe(optional3, /* @__PURE__ */ withDescription2("Sets the minimum log level for the command"));
|
|
24743
|
-
var helpFlag = /* @__PURE__ */ boolean4("help").pipe(/* @__PURE__ */ withAlias2("h"), /* @__PURE__ */ withDescription2("Show help information"));
|
|
24744
|
-
var versionFlag = /* @__PURE__ */ boolean4("version").pipe(/* @__PURE__ */ withDescription2("Show version information"));
|
|
24745
|
-
var completionsFlag = /* @__PURE__ */ choice3("completions", ["bash", "zsh", "fish", "sh"]).pipe(
|
|
24746
|
-
optional3,
|
|
24747
|
-
// Map "sh" to "bash" while preserving Option-ness
|
|
24748
|
-
/* @__PURE__ */ map10((v) => map(v, (s) => s === "sh" ? "bash" : s)),
|
|
24749
|
-
/* @__PURE__ */ withDescription2("Print shell completion script for the given shell")
|
|
24750
|
-
);
|
|
24751
|
-
|
|
24752
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.12/node_modules/effect/dist/unstable/cli/internal/parser.js
|
|
24840
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/internal/parser.js
|
|
24753
24841
|
var getCommandPath = (parsedInput) => parsedInput.subcommand ? [parsedInput.subcommand.name, ...getCommandPath(parsedInput.subcommand.parsedInput)] : [];
|
|
24754
|
-
var extractBuiltInOptions = (tokens) => gen2(function* () {
|
|
24755
|
-
const {
|
|
24756
|
-
flagMap,
|
|
24757
|
-
remainder
|
|
24758
|
-
} = consumeKnownFlags(tokens, builtInFlagRegistry);
|
|
24759
|
-
const emptyArgs = {
|
|
24760
|
-
flags: flagMap,
|
|
24761
|
-
arguments: []
|
|
24762
|
-
};
|
|
24763
|
-
const [, help] = yield* helpFlag.parse(emptyArgs);
|
|
24764
|
-
const [, logLevel] = yield* logLevelFlag.parse(emptyArgs);
|
|
24765
|
-
const [, version2] = yield* versionFlag.parse(emptyArgs);
|
|
24766
|
-
const [, completions] = yield* completionsFlag.parse(emptyArgs);
|
|
24767
|
-
return {
|
|
24768
|
-
help,
|
|
24769
|
-
logLevel: getOrUndefined(logLevel),
|
|
24770
|
-
version: version2,
|
|
24771
|
-
completions: getOrUndefined(completions),
|
|
24772
|
-
remainder
|
|
24773
|
-
};
|
|
24774
|
-
});
|
|
24775
24842
|
var parseArgs = (lexResult, command, commandPath = []) => gen2(function* () {
|
|
24776
24843
|
const {
|
|
24777
24844
|
tokens,
|
|
@@ -24844,9 +24911,19 @@ var createFlagRegistry = (params) => {
|
|
|
24844
24911
|
};
|
|
24845
24912
|
var buildSubcommandIndex = (subcommands) => {
|
|
24846
24913
|
const index = /* @__PURE__ */ new Map();
|
|
24914
|
+
const setKey = (key, command) => {
|
|
24915
|
+
const existing = index.get(key);
|
|
24916
|
+
if (existing && existing !== command) {
|
|
24917
|
+
throw new Error(`Duplicate subcommand name/alias "${key}" in command definition (conflicts with "${existing.name}")`);
|
|
24918
|
+
}
|
|
24919
|
+
index.set(key, command);
|
|
24920
|
+
};
|
|
24847
24921
|
for (const group of subcommands) {
|
|
24848
24922
|
for (const subcommand of group.commands) {
|
|
24849
|
-
|
|
24923
|
+
setKey(subcommand.name, subcommand);
|
|
24924
|
+
if (subcommand.alias && subcommand.alias !== subcommand.name) {
|
|
24925
|
+
setKey(subcommand.alias, subcommand);
|
|
24926
|
+
}
|
|
24850
24927
|
}
|
|
24851
24928
|
}
|
|
24852
24929
|
return index;
|
|
@@ -24914,8 +24991,6 @@ var consumeKnownFlags = (tokens, registry) => {
|
|
|
24914
24991
|
remainder
|
|
24915
24992
|
};
|
|
24916
24993
|
};
|
|
24917
|
-
var builtInFlagParams = [.../* @__PURE__ */ extractSingleParams(logLevelFlag), .../* @__PURE__ */ extractSingleParams(helpFlag), .../* @__PURE__ */ extractSingleParams(versionFlag), .../* @__PURE__ */ extractSingleParams(completionsFlag)];
|
|
24918
|
-
var builtInFlagRegistry = /* @__PURE__ */ createFlagRegistry(builtInFlagParams);
|
|
24919
24994
|
var createUnrecognizedFlagError = (token, params, commandPath) => {
|
|
24920
24995
|
const printable = token._tag === "LongOption" ? `--${token.name}` : `-${token.flag}`;
|
|
24921
24996
|
const validNames = [];
|
|
@@ -25023,7 +25098,7 @@ var scanCommandLevel = (tokens, context) => {
|
|
|
25023
25098
|
return toLeafResult(state);
|
|
25024
25099
|
};
|
|
25025
25100
|
|
|
25026
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25101
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/unstable/cli/Command.js
|
|
25027
25102
|
var isCommand = (u) => hasProperty(u, TypeId33);
|
|
25028
25103
|
var make24 = (name, config, handler) => {
|
|
25029
25104
|
const parsedConfig = parseConfig(config ?? {});
|
|
@@ -25122,6 +25197,7 @@ var withSubcommands = /* @__PURE__ */ dual(2, (self, subcommands) => {
|
|
|
25122
25197
|
config: impl.config,
|
|
25123
25198
|
description: impl.description,
|
|
25124
25199
|
shortDescription: impl.shortDescription,
|
|
25200
|
+
alias: impl.alias,
|
|
25125
25201
|
annotations: impl.annotations,
|
|
25126
25202
|
examples: impl.examples,
|
|
25127
25203
|
service: impl.service,
|
|
@@ -25138,6 +25214,10 @@ var withShortDescription = /* @__PURE__ */ dual(2, (self, shortDescription) => m
|
|
|
25138
25214
|
...toImpl(self),
|
|
25139
25215
|
shortDescription
|
|
25140
25216
|
}));
|
|
25217
|
+
var withAlias3 = /* @__PURE__ */ dual(2, (self, alias) => makeCommand({
|
|
25218
|
+
...toImpl(self),
|
|
25219
|
+
alias
|
|
25220
|
+
}));
|
|
25141
25221
|
var annotate3 = /* @__PURE__ */ dual(3, (self, service3, value2) => {
|
|
25142
25222
|
const impl = toImpl(self);
|
|
25143
25223
|
return makeCommand({
|
|
@@ -25169,7 +25249,7 @@ var provideEffect = /* @__PURE__ */ dual(3, (self, service3, effect2) => mapHand
|
|
|
25169
25249
|
var provideEffectDiscard = /* @__PURE__ */ dual(2, (self, effect2) => mapHandler(self, (handler, input) => andThen2(typeof effect2 === "function" ? effect2(input) : effect2, handler)));
|
|
25170
25250
|
var showHelp = (command, commandPath, errors) => gen2(function* () {
|
|
25171
25251
|
const formatter = yield* Formatter;
|
|
25172
|
-
const helpDoc = getHelpForCommandPath(command, commandPath);
|
|
25252
|
+
const helpDoc = yield* getHelpForCommandPath(command, commandPath, Registry);
|
|
25173
25253
|
yield* log(formatter.formatHelpDoc(helpDoc));
|
|
25174
25254
|
if (errors && errors.length > 0) {
|
|
25175
25255
|
yield* error(formatter.formatErrors(errors));
|
|
@@ -25186,30 +25266,37 @@ var runWith = (command, config) => {
|
|
|
25186
25266
|
tokens,
|
|
25187
25267
|
trailingOperands
|
|
25188
25268
|
} = lex(args3);
|
|
25269
|
+
const flags = Array.from(yield* Registry);
|
|
25270
|
+
const allFlagParams = flags.flatMap((f) => extractSingleParams(f.flag));
|
|
25271
|
+
const globalRegistry = createFlagRegistry(allFlagParams.filter(isFlagParam));
|
|
25189
25272
|
const {
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25273
|
+
flagMap,
|
|
25274
|
+
remainder
|
|
25275
|
+
} = consumeKnownFlags(tokens, globalRegistry);
|
|
25276
|
+
const emptyArgs = {
|
|
25277
|
+
flags: flagMap,
|
|
25278
|
+
arguments: []
|
|
25279
|
+
};
|
|
25196
25280
|
const parsedArgs = yield* parseArgs({
|
|
25197
25281
|
tokens: remainder,
|
|
25198
25282
|
trailingOperands
|
|
25199
25283
|
}, command);
|
|
25200
25284
|
const commandPath = [command.name, ...getCommandPath(parsedArgs)];
|
|
25201
|
-
const
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
}
|
|
25206
|
-
|
|
25207
|
-
|
|
25208
|
-
|
|
25209
|
-
|
|
25210
|
-
|
|
25211
|
-
|
|
25212
|
-
|
|
25285
|
+
const handlerCtx = {
|
|
25286
|
+
command,
|
|
25287
|
+
commandPath,
|
|
25288
|
+
version: config.version
|
|
25289
|
+
};
|
|
25290
|
+
for (const flag of flags) {
|
|
25291
|
+
if (flag._tag !== "Action") continue;
|
|
25292
|
+
const singles = extractSingleParams(flag.flag);
|
|
25293
|
+
const hasEntry = singles.some((s) => {
|
|
25294
|
+
const entries2 = flagMap[s.name];
|
|
25295
|
+
return entries2 !== void 0 && entries2.length > 0;
|
|
25296
|
+
});
|
|
25297
|
+
if (!hasEntry) continue;
|
|
25298
|
+
const [, value2] = yield* flag.flag.parse(emptyArgs);
|
|
25299
|
+
yield* flag.run(value2, handlerCtx);
|
|
25213
25300
|
return;
|
|
25214
25301
|
}
|
|
25215
25302
|
if (parsedArgs.errors && parsedArgs.errors.length > 0) {
|
|
@@ -25219,17 +25306,28 @@ var runWith = (command, config) => {
|
|
|
25219
25306
|
if (parseResult._tag === "Failure") {
|
|
25220
25307
|
return yield* showHelp(command, commandPath, [parseResult.failure]);
|
|
25221
25308
|
}
|
|
25222
|
-
|
|
25223
|
-
const
|
|
25224
|
-
|
|
25225
|
-
|
|
25309
|
+
let contextLayer = empty3;
|
|
25310
|
+
for (const flag of flags) {
|
|
25311
|
+
if (flag._tag !== "Setting") continue;
|
|
25312
|
+
const [, value2] = yield* flag.flag.parse(emptyArgs);
|
|
25313
|
+
contextLayer = merge2(contextLayer, succeed5(flag, value2));
|
|
25314
|
+
}
|
|
25315
|
+
if (flags.includes(LogLevel)) {
|
|
25316
|
+
const [, logLevel] = yield* LogLevel.flag.parse(emptyArgs);
|
|
25317
|
+
contextLayer = merge2(contextLayer, match(logLevel, {
|
|
25318
|
+
onNone: () => empty3,
|
|
25319
|
+
onSome: (level) => succeed5(MinimumLogLevel, level)
|
|
25320
|
+
}));
|
|
25321
|
+
}
|
|
25322
|
+
const program = commandImpl.handle(parseResult.success, [command.name]);
|
|
25323
|
+
yield* provide3(program, contextLayer);
|
|
25226
25324
|
}, catchIf2((error2) => isCliError(error2) && error2._tag === "ShowHelp" ? succeed2(error2) : fail2(error2), (error2) => showHelp(command, error2.commandPath)), catchIf2((e) => isQuitError(e) ? succeed2(e) : fail2(e), (_) => interrupt2));
|
|
25227
25325
|
};
|
|
25228
25326
|
|
|
25229
25327
|
// package.json
|
|
25230
25328
|
var package_default = {
|
|
25231
25329
|
name: "@effect/language-service",
|
|
25232
|
-
version: "0.
|
|
25330
|
+
version: "0.77.0",
|
|
25233
25331
|
publishConfig: {
|
|
25234
25332
|
access: "public",
|
|
25235
25333
|
directory: "dist"
|
|
@@ -25272,14 +25370,14 @@ var package_default = {
|
|
|
25272
25370
|
devDependencies: {
|
|
25273
25371
|
pako: "^2.1.0",
|
|
25274
25372
|
"@typescript-eslint/project-service": "^8.52.0",
|
|
25275
|
-
"@effect/platform-node": "^4.0.0-beta.
|
|
25373
|
+
"@effect/platform-node": "^4.0.0-beta.14",
|
|
25276
25374
|
"@types/pako": "^2.0.4",
|
|
25277
|
-
effect: "^4.0.0-beta.
|
|
25375
|
+
effect: "^4.0.0-beta.14",
|
|
25278
25376
|
"ts-patch": "^3.3.0"
|
|
25279
25377
|
}
|
|
25280
25378
|
};
|
|
25281
25379
|
|
|
25282
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25380
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.14/node_modules/effect/dist/Graph.js
|
|
25283
25381
|
var TypeId34 = "~effect/collections/Graph";
|
|
25284
25382
|
var Edge = class extends Class3 {
|
|
25285
25383
|
};
|
|
@@ -29408,6 +29506,73 @@ function make25(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
29408
29506
|
"TypeParser.extendsEffectSqlModelClass",
|
|
29409
29507
|
(atLocation) => atLocation
|
|
29410
29508
|
);
|
|
29509
|
+
const isEffectSchemaModelTypeSourceFile = cachedBy(
|
|
29510
|
+
fn3("TypeParser.isEffectSchemaModelTypeSourceFile")(function* (sourceFile) {
|
|
29511
|
+
const moduleSymbol = typeChecker.getSymbolAtLocation(sourceFile);
|
|
29512
|
+
if (!moduleSymbol) return yield* typeParserIssue("Node has no symbol", void 0, sourceFile);
|
|
29513
|
+
const classSymbol = typeChecker.tryGetMemberInModuleExports("Class", moduleSymbol);
|
|
29514
|
+
if (!classSymbol) return yield* typeParserIssue("Model's Class type not found", void 0, sourceFile);
|
|
29515
|
+
const generatedSymbol = typeChecker.tryGetMemberInModuleExports("Generated", moduleSymbol);
|
|
29516
|
+
if (!generatedSymbol) {
|
|
29517
|
+
return yield* typeParserIssue("Model's Generated type not found", void 0, sourceFile);
|
|
29518
|
+
}
|
|
29519
|
+
const fieldOptionSymbol = typeChecker.tryGetMemberInModuleExports("FieldOption", moduleSymbol);
|
|
29520
|
+
if (!fieldOptionSymbol) {
|
|
29521
|
+
return yield* typeParserIssue("Model's FieldOption type not found", void 0, sourceFile);
|
|
29522
|
+
}
|
|
29523
|
+
return sourceFile;
|
|
29524
|
+
}),
|
|
29525
|
+
"TypeParser.isEffectSchemaModelTypeSourceFile",
|
|
29526
|
+
(sourceFile) => sourceFile
|
|
29527
|
+
);
|
|
29528
|
+
const isNodeReferenceToEffectSchemaModelModuleApi = (memberName) => cachedBy(
|
|
29529
|
+
fn3("TypeParser.isNodeReferenceToEffectSchemaModelModuleApi")(function* (node) {
|
|
29530
|
+
return yield* isNodeReferenceToExportOfPackageModule(
|
|
29531
|
+
node,
|
|
29532
|
+
"effect",
|
|
29533
|
+
isEffectSchemaModelTypeSourceFile,
|
|
29534
|
+
memberName
|
|
29535
|
+
);
|
|
29536
|
+
}),
|
|
29537
|
+
`TypeParser.isNodeReferenceToEffectSchemaModelModuleApi(${memberName})`,
|
|
29538
|
+
(node) => node
|
|
29539
|
+
);
|
|
29540
|
+
const extendsEffectSchemaModelClass = cachedBy(
|
|
29541
|
+
fn3("TypeParser.extendsEffectSchemaModelClass")(function* (atLocation) {
|
|
29542
|
+
if (!atLocation.name) {
|
|
29543
|
+
return yield* typeParserIssue("Class has no name", void 0, atLocation);
|
|
29544
|
+
}
|
|
29545
|
+
const heritageClauses = atLocation.heritageClauses;
|
|
29546
|
+
if (!heritageClauses) {
|
|
29547
|
+
return yield* typeParserIssue("Class has no heritage clauses", void 0, atLocation);
|
|
29548
|
+
}
|
|
29549
|
+
for (const heritageClause of heritageClauses) {
|
|
29550
|
+
for (const typeX of heritageClause.types) {
|
|
29551
|
+
if (ts.isExpressionWithTypeArguments(typeX)) {
|
|
29552
|
+
const expression = typeX.expression;
|
|
29553
|
+
if (ts.isCallExpression(expression)) {
|
|
29554
|
+
const schemaCall = expression.expression;
|
|
29555
|
+
if (ts.isCallExpression(schemaCall) && schemaCall.typeArguments && schemaCall.typeArguments.length > 0) {
|
|
29556
|
+
const isEffectSchemaModelModuleApi = yield* pipe(
|
|
29557
|
+
isNodeReferenceToEffectSchemaModelModuleApi("Class")(schemaCall.expression),
|
|
29558
|
+
orUndefined
|
|
29559
|
+
);
|
|
29560
|
+
if (isEffectSchemaModelModuleApi) {
|
|
29561
|
+
return {
|
|
29562
|
+
className: atLocation.name,
|
|
29563
|
+
selfTypeNode: schemaCall.typeArguments[0]
|
|
29564
|
+
};
|
|
29565
|
+
}
|
|
29566
|
+
}
|
|
29567
|
+
}
|
|
29568
|
+
}
|
|
29569
|
+
}
|
|
29570
|
+
}
|
|
29571
|
+
return yield* typeParserIssue("Class does not extend effect's Model.Class", void 0, atLocation);
|
|
29572
|
+
}),
|
|
29573
|
+
"TypeParser.extendsEffectSchemaModelClass",
|
|
29574
|
+
(atLocation) => atLocation
|
|
29575
|
+
);
|
|
29411
29576
|
const isEffectLayerTypeSourceFile = cachedBy(
|
|
29412
29577
|
fn3("TypeParser.isEffectLayerTypeSourceFile")(function* (sourceFile) {
|
|
29413
29578
|
const moduleSymbol = typeChecker.getSymbolAtLocation(sourceFile);
|
|
@@ -29780,6 +29945,7 @@ function make25(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
29780
29945
|
isNodeReferenceToEffectDataModuleApi,
|
|
29781
29946
|
isNodeReferenceToEffectContextModuleApi,
|
|
29782
29947
|
isNodeReferenceToEffectSqlModelModuleApi,
|
|
29948
|
+
isNodeReferenceToEffectSchemaModelModuleApi,
|
|
29783
29949
|
isNodeReferenceToEffectLayerModuleApi,
|
|
29784
29950
|
isNodeReferenceToEffectSchemaParserModuleApi,
|
|
29785
29951
|
isServiceMapTypeSourceFile,
|
|
@@ -29817,6 +29983,7 @@ function make25(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
29817
29983
|
extendsSchemaTaggedRequest,
|
|
29818
29984
|
extendsSchemaRequestClass,
|
|
29819
29985
|
extendsEffectSqlModelClass,
|
|
29986
|
+
extendsEffectSchemaModelClass,
|
|
29820
29987
|
lazyExpression,
|
|
29821
29988
|
emptyFunction,
|
|
29822
29989
|
pipingFlows,
|
|
@@ -31333,6 +31500,7 @@ var classSelfMismatch = createDiagnostic({
|
|
|
31333
31500
|
)
|
|
31334
31501
|
),
|
|
31335
31502
|
orElse5(() => typeParser.extendsEffectSqlModelClass(node)),
|
|
31503
|
+
orElse5(() => typeParser.extendsEffectSchemaModelClass(node)),
|
|
31336
31504
|
orElse5(() => void_5)
|
|
31337
31505
|
);
|
|
31338
31506
|
if (result3) {
|
|
@@ -33791,6 +33959,765 @@ var nonObjectEffectServiceType = createDiagnostic({
|
|
|
33791
33959
|
})
|
|
33792
33960
|
});
|
|
33793
33961
|
|
|
33962
|
+
// src/diagnostics/outdatedApi.db.ts
|
|
33963
|
+
var asUnchanged = {
|
|
33964
|
+
_tag: "Unchanged"
|
|
33965
|
+
};
|
|
33966
|
+
var asRenamedSameBehaviour = (newName) => ({
|
|
33967
|
+
_tag: "RenamedSameBehaviour",
|
|
33968
|
+
newName
|
|
33969
|
+
});
|
|
33970
|
+
var asRenamedAndNeedsOptions = (newName, optionsInstructions) => ({
|
|
33971
|
+
_tag: "RenamedAndNeedsOptions",
|
|
33972
|
+
newName,
|
|
33973
|
+
optionsInstructions
|
|
33974
|
+
});
|
|
33975
|
+
var asRemoved = (alternativePattern) => ({
|
|
33976
|
+
_tag: "Removed",
|
|
33977
|
+
alternativePattern
|
|
33978
|
+
});
|
|
33979
|
+
var effectModuleMigrationDb = {
|
|
33980
|
+
// Common APIs (in both v3 and v4, unchanged)
|
|
33981
|
+
"acquireRelease": asUnchanged,
|
|
33982
|
+
"acquireUseRelease": asUnchanged,
|
|
33983
|
+
"addFinalizer": asUnchanged,
|
|
33984
|
+
"all": asUnchanged,
|
|
33985
|
+
"andThen": asUnchanged,
|
|
33986
|
+
"annotateCurrentSpan": asUnchanged,
|
|
33987
|
+
"annotateLogs": asUnchanged,
|
|
33988
|
+
"annotateSpans": asUnchanged,
|
|
33989
|
+
"as": asUnchanged,
|
|
33990
|
+
"asSome": asUnchanged,
|
|
33991
|
+
"asVoid": asUnchanged,
|
|
33992
|
+
"cached": asUnchanged,
|
|
33993
|
+
"cachedInvalidateWithTTL": asUnchanged,
|
|
33994
|
+
"cachedWithTTL": asUnchanged,
|
|
33995
|
+
"catch": asUnchanged,
|
|
33996
|
+
"catchIf": asUnchanged,
|
|
33997
|
+
"catchTag": asUnchanged,
|
|
33998
|
+
"catchTags": asUnchanged,
|
|
33999
|
+
"clockWith": asUnchanged,
|
|
34000
|
+
"currentParentSpan": asUnchanged,
|
|
34001
|
+
"currentSpan": asUnchanged,
|
|
34002
|
+
"delay": asUnchanged,
|
|
34003
|
+
"die": asUnchanged,
|
|
34004
|
+
"ensuring": asUnchanged,
|
|
34005
|
+
"eventually": asUnchanged,
|
|
34006
|
+
"exit": asUnchanged,
|
|
34007
|
+
"fail": asUnchanged,
|
|
34008
|
+
"failCause": asUnchanged,
|
|
34009
|
+
"failCauseSync": asUnchanged,
|
|
34010
|
+
"failSync": asUnchanged,
|
|
34011
|
+
"fiberId": asUnchanged,
|
|
34012
|
+
"filter": asUnchanged,
|
|
34013
|
+
"filterMap": asRemoved(
|
|
34014
|
+
"Use Effect.filter or Effect.map with Option instead."
|
|
34015
|
+
),
|
|
34016
|
+
"filterOrElse": asUnchanged,
|
|
34017
|
+
"filterOrFail": asUnchanged,
|
|
34018
|
+
"flatMap": asUnchanged,
|
|
34019
|
+
"flatten": asUnchanged,
|
|
34020
|
+
"flip": asUnchanged,
|
|
34021
|
+
"fn": asUnchanged,
|
|
34022
|
+
"fnUntraced": asUnchanged,
|
|
34023
|
+
"forEach": asUnchanged,
|
|
34024
|
+
"forever": asUnchanged,
|
|
34025
|
+
"forkIn": asUnchanged,
|
|
34026
|
+
"forkScoped": asUnchanged,
|
|
34027
|
+
"gen": asUnchanged,
|
|
34028
|
+
"ignore": asUnchanged,
|
|
34029
|
+
"interrupt": asUnchanged,
|
|
34030
|
+
"interruptible": asUnchanged,
|
|
34031
|
+
"interruptibleMask": asUnchanged,
|
|
34032
|
+
"isEffect": asUnchanged,
|
|
34033
|
+
"isFailure": asUnchanged,
|
|
34034
|
+
"isSuccess": asUnchanged,
|
|
34035
|
+
"linkSpans": asUnchanged,
|
|
34036
|
+
"log": asUnchanged,
|
|
34037
|
+
"logDebug": asUnchanged,
|
|
34038
|
+
"logError": asUnchanged,
|
|
34039
|
+
"logFatal": asUnchanged,
|
|
34040
|
+
"logInfo": asUnchanged,
|
|
34041
|
+
"logTrace": asUnchanged,
|
|
34042
|
+
"logWarning": asUnchanged,
|
|
34043
|
+
"logWithLevel": asUnchanged,
|
|
34044
|
+
"makeLatch": asRemoved(
|
|
34045
|
+
"Use Latch.make instead of Effect.makeLatch."
|
|
34046
|
+
),
|
|
34047
|
+
"makeSemaphore": asRemoved(
|
|
34048
|
+
"Use Semaphore.make instead of Effect.makeSemaphore."
|
|
34049
|
+
),
|
|
34050
|
+
"makeSpan": asUnchanged,
|
|
34051
|
+
"makeSpanScoped": asUnchanged,
|
|
34052
|
+
"map": asUnchanged,
|
|
34053
|
+
"mapBoth": asUnchanged,
|
|
34054
|
+
"mapError": asUnchanged,
|
|
34055
|
+
"match": asUnchanged,
|
|
34056
|
+
"matchCause": asUnchanged,
|
|
34057
|
+
"matchCauseEffect": asUnchanged,
|
|
34058
|
+
"matchEffect": asUnchanged,
|
|
34059
|
+
"never": asUnchanged,
|
|
34060
|
+
"onError": asUnchanged,
|
|
34061
|
+
"onExit": asUnchanged,
|
|
34062
|
+
"onInterrupt": asUnchanged,
|
|
34063
|
+
"option": asUnchanged,
|
|
34064
|
+
"orDie": asUnchanged,
|
|
34065
|
+
"orElseSucceed": asUnchanged,
|
|
34066
|
+
"promise": asUnchanged,
|
|
34067
|
+
"provide": asUnchanged,
|
|
34068
|
+
"provideService": asUnchanged,
|
|
34069
|
+
"provideServiceEffect": asUnchanged,
|
|
34070
|
+
"race": asUnchanged,
|
|
34071
|
+
"raceAll": asUnchanged,
|
|
34072
|
+
"raceFirst": asUnchanged,
|
|
34073
|
+
"repeat": asUnchanged,
|
|
34074
|
+
"repeatOrElse": asUnchanged,
|
|
34075
|
+
"replicate": asUnchanged,
|
|
34076
|
+
"replicateEffect": asUnchanged,
|
|
34077
|
+
"request": asUnchanged,
|
|
34078
|
+
"retry": asUnchanged,
|
|
34079
|
+
"retryOrElse": asUnchanged,
|
|
34080
|
+
"runCallback": asUnchanged,
|
|
34081
|
+
"runFork": asUnchanged,
|
|
34082
|
+
"runPromise": asUnchanged,
|
|
34083
|
+
"runPromiseExit": asUnchanged,
|
|
34084
|
+
"runSync": asUnchanged,
|
|
34085
|
+
"runSyncExit": asUnchanged,
|
|
34086
|
+
"sandbox": asUnchanged,
|
|
34087
|
+
"schedule": asUnchanged,
|
|
34088
|
+
"scheduleFrom": asUnchanged,
|
|
34089
|
+
"scope": asUnchanged,
|
|
34090
|
+
"scoped": asUnchanged,
|
|
34091
|
+
"scopedWith": asUnchanged,
|
|
34092
|
+
"serviceOption": asUnchanged,
|
|
34093
|
+
"sleep": asUnchanged,
|
|
34094
|
+
"spanAnnotations": asUnchanged,
|
|
34095
|
+
"spanLinks": asUnchanged,
|
|
34096
|
+
"succeed": asUnchanged,
|
|
34097
|
+
"succeedNone": asUnchanged,
|
|
34098
|
+
"succeedSome": asUnchanged,
|
|
34099
|
+
"suspend": asUnchanged,
|
|
34100
|
+
"sync": asUnchanged,
|
|
34101
|
+
"tap": asUnchanged,
|
|
34102
|
+
"tapDefect": asUnchanged,
|
|
34103
|
+
"tapError": asUnchanged,
|
|
34104
|
+
"tapErrorTag": asUnchanged,
|
|
34105
|
+
"timed": asUnchanged,
|
|
34106
|
+
"timeout": asUnchanged,
|
|
34107
|
+
"timeoutOption": asUnchanged,
|
|
34108
|
+
"tracer": asUnchanged,
|
|
34109
|
+
"try": asUnchanged,
|
|
34110
|
+
"tryPromise": asUnchanged,
|
|
34111
|
+
"uninterruptible": asUnchanged,
|
|
34112
|
+
"uninterruptibleMask": asUnchanged,
|
|
34113
|
+
"updateService": asUnchanged,
|
|
34114
|
+
"useSpan": asUnchanged,
|
|
34115
|
+
"void": asUnchanged,
|
|
34116
|
+
"when": asUnchanged,
|
|
34117
|
+
"whileLoop": asUnchanged,
|
|
34118
|
+
"withConcurrency": asUnchanged,
|
|
34119
|
+
"withExecutionPlan": asUnchanged,
|
|
34120
|
+
"withLogSpan": asUnchanged,
|
|
34121
|
+
"withParentSpan": asUnchanged,
|
|
34122
|
+
"withSpan": asUnchanged,
|
|
34123
|
+
"withSpanScoped": asUnchanged,
|
|
34124
|
+
"withTracer": asUnchanged,
|
|
34125
|
+
"withTracerEnabled": asUnchanged,
|
|
34126
|
+
"withTracerTiming": asUnchanged,
|
|
34127
|
+
"yieldNow": asUnchanged,
|
|
34128
|
+
"zip": asUnchanged,
|
|
34129
|
+
"zipWith": asUnchanged,
|
|
34130
|
+
// Renamed APIs (v3 name → v4 name)
|
|
34131
|
+
"catchAll": asRenamedSameBehaviour("catch"),
|
|
34132
|
+
"catchAllCause": asRenamedSameBehaviour("catchCause"),
|
|
34133
|
+
"catchAllDefect": asRenamedSameBehaviour("catchDefect"),
|
|
34134
|
+
"catchSome": asRemoved(
|
|
34135
|
+
"Use Effect.catchIf instead. Note: the API shape changed from returning Option<Effect> to taking a predicate and handler separately."
|
|
34136
|
+
),
|
|
34137
|
+
"catchSomeCause": asRemoved(
|
|
34138
|
+
"Use Effect.catchCauseIf instead. Note: the API shape changed from returning Option<Effect> to taking a predicate and handler separately."
|
|
34139
|
+
),
|
|
34140
|
+
"ensureErrorType": asRenamedSameBehaviour("satisfiesErrorType"),
|
|
34141
|
+
"ensureRequirementsType": asRenamedSameBehaviour("satisfiesServicesType"),
|
|
34142
|
+
"ensureSuccessType": asRenamedSameBehaviour("satisfiesSuccessType"),
|
|
34143
|
+
"fork": asRenamedSameBehaviour("forkChild"),
|
|
34144
|
+
"forkDaemon": asRenamedSameBehaviour("forkDetach"),
|
|
34145
|
+
"scopeWith": asRenamedSameBehaviour("scopedWith"),
|
|
34146
|
+
"serviceOptional": asRenamedSameBehaviour("serviceOption"),
|
|
34147
|
+
"tapErrorCause": asRenamedSameBehaviour("tapCause"),
|
|
34148
|
+
// Removed APIs
|
|
34149
|
+
"annotateLogsScoped": asUnchanged,
|
|
34150
|
+
"awaitAllChildren": asUnchanged,
|
|
34151
|
+
"bind": asUnchanged,
|
|
34152
|
+
"bindTo": asUnchanged,
|
|
34153
|
+
"Do": asUnchanged,
|
|
34154
|
+
"let": asUnchanged,
|
|
34155
|
+
"partition": asUnchanged,
|
|
34156
|
+
"validate": asUnchanged,
|
|
34157
|
+
"catchSomeDefect": asRemoved(
|
|
34158
|
+
"Use Effect.catchDefect or Effect.matchCause to handle specific defects."
|
|
34159
|
+
),
|
|
34160
|
+
"forkAll": asRemoved(
|
|
34161
|
+
"Fork effects individually with Effect.forEach and Effect.forkChild, or use Effect.all with concurrency options."
|
|
34162
|
+
),
|
|
34163
|
+
"forkWithErrorHandler": asRemoved(
|
|
34164
|
+
"Fork the effect with Effect.forkChild and observe the fiber result via Fiber.join or Fiber.await."
|
|
34165
|
+
),
|
|
34166
|
+
"Tag": asRemoved(
|
|
34167
|
+
"Use ServiceMap.Service instead of Effect.Tag."
|
|
34168
|
+
),
|
|
34169
|
+
"Service": asRemoved(
|
|
34170
|
+
"Use ServiceMap.Service instead of Effect.Service."
|
|
34171
|
+
),
|
|
34172
|
+
"runtime": asRemoved(
|
|
34173
|
+
"Runtime has been removed in Effect v4. Use Effect.services to grab services and then run using Effect.runPromiseWith."
|
|
34174
|
+
),
|
|
34175
|
+
"bindAll": asRemoved(
|
|
34176
|
+
"Use Effect.gen instead of Effect.bindAll."
|
|
34177
|
+
),
|
|
34178
|
+
"EffectTypeId": asRemoved(
|
|
34179
|
+
"EffectTypeId has been removed in Effect v4."
|
|
34180
|
+
),
|
|
34181
|
+
"acquireReleaseInterruptible": asRemoved(
|
|
34182
|
+
"Use Effect.acquireRelease instead."
|
|
34183
|
+
),
|
|
34184
|
+
"allSuccesses": asRemoved(
|
|
34185
|
+
"Use Effect.all with the { mode: 'either' } option and filter successes."
|
|
34186
|
+
),
|
|
34187
|
+
"allWith": asRemoved(
|
|
34188
|
+
"Use Effect.all with options instead."
|
|
34189
|
+
),
|
|
34190
|
+
"allowInterrupt": asRemoved(
|
|
34191
|
+
"Use Effect.yieldNow instead."
|
|
34192
|
+
),
|
|
34193
|
+
"ap": asRemoved(
|
|
34194
|
+
"Use Effect.map and Effect.flatMap to apply functions instead."
|
|
34195
|
+
),
|
|
34196
|
+
"asSomeError": asRemoved(
|
|
34197
|
+
"Use Effect.mapError(Option.some) instead."
|
|
34198
|
+
),
|
|
34199
|
+
"async": asRenamedAndNeedsOptions("callback", "Note: in v4 the callback receives a Scheduler as 'this' context."),
|
|
34200
|
+
"asyncEffect": asRemoved(
|
|
34201
|
+
"Use Effect.suspend combined with Effect.promise instead."
|
|
34202
|
+
),
|
|
34203
|
+
"blocked": asRemoved(
|
|
34204
|
+
"The request batching API has been reworked in Effect v4."
|
|
34205
|
+
),
|
|
34206
|
+
"cacheRequestResult": asRemoved(
|
|
34207
|
+
"The request batching API has been reworked in Effect v4."
|
|
34208
|
+
),
|
|
34209
|
+
"cachedFunction": asRemoved(
|
|
34210
|
+
"Use Effect.cached or implement caching with a Ref instead."
|
|
34211
|
+
),
|
|
34212
|
+
"cause": asRemoved(
|
|
34213
|
+
"Use Effect.matchCause or Effect.sandbox to access the cause."
|
|
34214
|
+
),
|
|
34215
|
+
"checkInterruptible": asRemoved(
|
|
34216
|
+
"Interruption checking has been removed in Effect v4."
|
|
34217
|
+
),
|
|
34218
|
+
"clock": asRemoved(
|
|
34219
|
+
"Use Effect.clockWith instead."
|
|
34220
|
+
),
|
|
34221
|
+
"configProviderWith": asRemoved(
|
|
34222
|
+
"ConfigProvider access has been reworked in Effect v4."
|
|
34223
|
+
),
|
|
34224
|
+
"console": asRemoved(
|
|
34225
|
+
"Use Effect.consoleWith or the Console service directly."
|
|
34226
|
+
),
|
|
34227
|
+
"consoleWith": asRemoved(
|
|
34228
|
+
"Console access has been reworked in Effect v4."
|
|
34229
|
+
),
|
|
34230
|
+
"context": asRemoved(
|
|
34231
|
+
"Use Effect.context is removed. Access services directly via yield* or Effect.provideService."
|
|
34232
|
+
),
|
|
34233
|
+
"contextWith": asRemoved(
|
|
34234
|
+
"Use Effect.map with service access instead."
|
|
34235
|
+
),
|
|
34236
|
+
"contextWithEffect": asRemoved(
|
|
34237
|
+
"Use Effect.flatMap with service access instead."
|
|
34238
|
+
),
|
|
34239
|
+
"custom": asRemoved(
|
|
34240
|
+
"Use Effect.suspend or Effect.sync to create custom effects."
|
|
34241
|
+
),
|
|
34242
|
+
"daemonChildren": asRemoved(
|
|
34243
|
+
"Use Effect.forkDetach to fork detached fibers instead."
|
|
34244
|
+
),
|
|
34245
|
+
"descriptor": asRemoved(
|
|
34246
|
+
"Fiber descriptor access has been removed in Effect v4."
|
|
34247
|
+
),
|
|
34248
|
+
"descriptorWith": asRemoved(
|
|
34249
|
+
"Fiber descriptor access has been removed in Effect v4."
|
|
34250
|
+
),
|
|
34251
|
+
"dieMessage": asRemoved(
|
|
34252
|
+
"Use Effect.die(new Error(message)) instead."
|
|
34253
|
+
),
|
|
34254
|
+
"dieSync": asRemoved(
|
|
34255
|
+
"Use Effect.die with a lazily evaluated value instead."
|
|
34256
|
+
),
|
|
34257
|
+
"diffFiberRefs": asRemoved(
|
|
34258
|
+
"FiberRef has been replaced by ServiceMap.Reference in Effect v4."
|
|
34259
|
+
),
|
|
34260
|
+
"disconnect": asRemoved(
|
|
34261
|
+
"Fiber disconnect has been removed in Effect v4."
|
|
34262
|
+
),
|
|
34263
|
+
"dropUntil": asRemoved(
|
|
34264
|
+
"Use Array.dropUntil and Effect.forEach instead."
|
|
34265
|
+
),
|
|
34266
|
+
"dropWhile": asRemoved(
|
|
34267
|
+
"Use Array.dropWhile and Effect.forEach instead."
|
|
34268
|
+
),
|
|
34269
|
+
"either": asRenamedAndNeedsOptions(
|
|
34270
|
+
"result",
|
|
34271
|
+
"Note: returns Result.Result<A, E> instead of Either<E, A>. Use the Result module to work with the result."
|
|
34272
|
+
),
|
|
34273
|
+
"ensuringChild": asRemoved(
|
|
34274
|
+
"Use Effect.onExit to manage child fiber cleanup instead."
|
|
34275
|
+
),
|
|
34276
|
+
"ensuringChildren": asRemoved(
|
|
34277
|
+
"Use Effect.onExit to manage child fiber cleanup instead."
|
|
34278
|
+
),
|
|
34279
|
+
"every": asRemoved(
|
|
34280
|
+
"Use Effect.forEach with a predicate check instead."
|
|
34281
|
+
),
|
|
34282
|
+
"exists": asRemoved(
|
|
34283
|
+
"Use Effect.forEach with a predicate check instead."
|
|
34284
|
+
),
|
|
34285
|
+
"fiberIdWith": asRemoved(
|
|
34286
|
+
"Use Effect.fiberId instead."
|
|
34287
|
+
),
|
|
34288
|
+
"filterEffectOrElse": asRemoved(
|
|
34289
|
+
"Use Effect.filterOrElse with an effectful predicate instead."
|
|
34290
|
+
),
|
|
34291
|
+
"filterEffectOrFail": asRemoved(
|
|
34292
|
+
"Use Effect.filterOrFail with an effectful predicate instead."
|
|
34293
|
+
),
|
|
34294
|
+
"filterOrDie": asRemoved(
|
|
34295
|
+
"Use Effect.filterOrFail and Effect.orDie instead."
|
|
34296
|
+
),
|
|
34297
|
+
"filterOrDieMessage": asRemoved(
|
|
34298
|
+
"Use Effect.filterOrFail and Effect.orDie instead."
|
|
34299
|
+
),
|
|
34300
|
+
"finalizersMask": asRemoved(
|
|
34301
|
+
"Finalizer masking has been removed in Effect v4."
|
|
34302
|
+
),
|
|
34303
|
+
"findFirst": asRemoved(
|
|
34304
|
+
"Use Effect.forEach with early return instead."
|
|
34305
|
+
),
|
|
34306
|
+
"firstSuccessOf": asRemoved(
|
|
34307
|
+
"Use Effect.raceAll instead."
|
|
34308
|
+
),
|
|
34309
|
+
"flipWith": asRemoved(
|
|
34310
|
+
"Use Effect.flip combined with the desired transformation instead."
|
|
34311
|
+
),
|
|
34312
|
+
"fromFiber": asRemoved(
|
|
34313
|
+
"Use Fiber.join instead."
|
|
34314
|
+
),
|
|
34315
|
+
"fromFiberEffect": asRemoved(
|
|
34316
|
+
"Use Effect.flatMap with Fiber.join instead."
|
|
34317
|
+
),
|
|
34318
|
+
"fromNullable": asRemoved(
|
|
34319
|
+
"Use Effect.suspend with null checks instead."
|
|
34320
|
+
),
|
|
34321
|
+
"functionWithSpan": asRemoved(
|
|
34322
|
+
"Use Effect.withSpan instead."
|
|
34323
|
+
),
|
|
34324
|
+
"getFiberRefs": asRemoved(
|
|
34325
|
+
"FiberRef has been replaced by ServiceMap.Reference in Effect v4."
|
|
34326
|
+
),
|
|
34327
|
+
"getRuntimeFlags": asRemoved(
|
|
34328
|
+
"Runtime flags have been removed in Effect v4."
|
|
34329
|
+
),
|
|
34330
|
+
"head": asRemoved(
|
|
34331
|
+
"Use Array.head and Effect.flatMap instead."
|
|
34332
|
+
),
|
|
34333
|
+
"if": asRemoved(
|
|
34334
|
+
"Use Effect.when instead of Effect.if."
|
|
34335
|
+
),
|
|
34336
|
+
"ignoreLogged": asRemoved(
|
|
34337
|
+
"Logging configuration has been reworked in Effect v4."
|
|
34338
|
+
),
|
|
34339
|
+
"inheritFiberRefs": asRemoved(
|
|
34340
|
+
"FiberRef has been replaced by ServiceMap.Reference in Effect v4."
|
|
34341
|
+
),
|
|
34342
|
+
"interruptWith": asRemoved(
|
|
34343
|
+
"Use Effect.interrupt instead."
|
|
34344
|
+
),
|
|
34345
|
+
"intoDeferred": asRemoved(
|
|
34346
|
+
"Use Deferred.complete instead."
|
|
34347
|
+
),
|
|
34348
|
+
"iterate": asRemoved(
|
|
34349
|
+
"Use Effect.whileLoop or recursion with Effect.suspend instead."
|
|
34350
|
+
),
|
|
34351
|
+
"labelMetrics": asRemoved(
|
|
34352
|
+
"Metric labeling has been reworked in Effect v4."
|
|
34353
|
+
),
|
|
34354
|
+
"labelMetricsScoped": asRemoved(
|
|
34355
|
+
"Metric labeling has been reworked in Effect v4."
|
|
34356
|
+
),
|
|
34357
|
+
"liftPredicate": asRemoved(
|
|
34358
|
+
"Use Effect.filterOrFail instead."
|
|
34359
|
+
),
|
|
34360
|
+
"linkSpanCurrent": asRemoved(
|
|
34361
|
+
"Use Effect.linkSpans instead."
|
|
34362
|
+
),
|
|
34363
|
+
"locally": asRemoved(
|
|
34364
|
+
"FiberRef.locally has been removed. Use Effect.provideService with ServiceMap.Reference instead."
|
|
34365
|
+
),
|
|
34366
|
+
"locallyScoped": asRemoved(
|
|
34367
|
+
"FiberRef.locally has been removed. Use Effect.provideService with ServiceMap.Reference instead."
|
|
34368
|
+
),
|
|
34369
|
+
"locallyScopedWith": asRemoved(
|
|
34370
|
+
"FiberRef.locally has been removed. Use Effect.provideService with ServiceMap.Reference instead."
|
|
34371
|
+
),
|
|
34372
|
+
"locallyWith": asRemoved(
|
|
34373
|
+
"FiberRef.locally has been removed. Use Effect.provideService with ServiceMap.Reference instead."
|
|
34374
|
+
),
|
|
34375
|
+
"logAnnotations": asRemoved(
|
|
34376
|
+
"Use Effect.annotateLogs instead."
|
|
34377
|
+
),
|
|
34378
|
+
"loop": asRemoved(
|
|
34379
|
+
"Use Effect.whileLoop or recursion with Effect.suspend instead."
|
|
34380
|
+
),
|
|
34381
|
+
"mapAccum": asRemoved(
|
|
34382
|
+
"Use Effect.gen with a mutable accumulator instead."
|
|
34383
|
+
),
|
|
34384
|
+
"mapErrorCause": asRemoved(
|
|
34385
|
+
"Use Effect.sandbox and Effect.mapError instead."
|
|
34386
|
+
),
|
|
34387
|
+
"mapInputContext": asRemoved(
|
|
34388
|
+
"Use Effect.provide with a layer instead."
|
|
34389
|
+
),
|
|
34390
|
+
"merge": asRemoved(
|
|
34391
|
+
"Use Effect.match or Effect.exit instead."
|
|
34392
|
+
),
|
|
34393
|
+
"mergeAll": asRemoved(
|
|
34394
|
+
"Use Effect.forEach with a mutable accumulator instead."
|
|
34395
|
+
),
|
|
34396
|
+
"metricLabels": asRemoved(
|
|
34397
|
+
"Metric labeling has been reworked in Effect v4."
|
|
34398
|
+
),
|
|
34399
|
+
"negate": asRemoved(
|
|
34400
|
+
"Use Effect.map with boolean negation instead."
|
|
34401
|
+
),
|
|
34402
|
+
"none": asRemoved(
|
|
34403
|
+
"Use Effect.filterOrFail or Effect.option instead."
|
|
34404
|
+
),
|
|
34405
|
+
"once": asRemoved(
|
|
34406
|
+
"Use Effect.cached instead."
|
|
34407
|
+
),
|
|
34408
|
+
"optionFromOptional": asRemoved(
|
|
34409
|
+
"Use Effect.option instead."
|
|
34410
|
+
),
|
|
34411
|
+
"orDieWith": asRemoved(
|
|
34412
|
+
"Use Effect.orDie or Effect.mapError combined with Effect.orDie instead."
|
|
34413
|
+
),
|
|
34414
|
+
"orElse": asRemoved(
|
|
34415
|
+
"Use Effect.catch or Effect.matchEffect instead."
|
|
34416
|
+
),
|
|
34417
|
+
"orElseFail": asRemoved(
|
|
34418
|
+
"Use Effect.mapError instead."
|
|
34419
|
+
),
|
|
34420
|
+
"parallelErrors": asRemoved(
|
|
34421
|
+
"Use Effect.all with concurrency options instead."
|
|
34422
|
+
),
|
|
34423
|
+
"parallelFinalizers": asRemoved(
|
|
34424
|
+
"Finalizer ordering configuration has been removed in Effect v4."
|
|
34425
|
+
),
|
|
34426
|
+
"patchFiberRefs": asRemoved(
|
|
34427
|
+
"FiberRef has been replaced by ServiceMap.Reference in Effect v4."
|
|
34428
|
+
),
|
|
34429
|
+
"patchRuntimeFlags": asRemoved(
|
|
34430
|
+
"Runtime flags have been removed in Effect v4."
|
|
34431
|
+
),
|
|
34432
|
+
"raceWith": asRemoved(
|
|
34433
|
+
"Use Effect.race or Effect.raceFirst instead."
|
|
34434
|
+
),
|
|
34435
|
+
"random": asRemoved(
|
|
34436
|
+
"Use Effect.randomWith instead."
|
|
34437
|
+
),
|
|
34438
|
+
"randomWith": asRemoved(
|
|
34439
|
+
"Random access has been reworked in Effect v4."
|
|
34440
|
+
),
|
|
34441
|
+
"reduce": asRemoved(
|
|
34442
|
+
"Use Effect.forEach with a mutable accumulator or Effect.gen instead."
|
|
34443
|
+
),
|
|
34444
|
+
"reduceEffect": asRemoved(
|
|
34445
|
+
"Use Effect.forEach with a mutable accumulator or Effect.gen instead."
|
|
34446
|
+
),
|
|
34447
|
+
"reduceRight": asRemoved(
|
|
34448
|
+
"Use Effect.forEach with a mutable accumulator or Effect.gen instead."
|
|
34449
|
+
),
|
|
34450
|
+
"reduceWhile": asRemoved(
|
|
34451
|
+
"Use Effect.gen with early return instead."
|
|
34452
|
+
),
|
|
34453
|
+
"repeatN": asRemoved(
|
|
34454
|
+
"Use Effect.repeat with a schedule instead."
|
|
34455
|
+
),
|
|
34456
|
+
"runRequestBlock": asRemoved(
|
|
34457
|
+
"The request batching API has been reworked in Effect v4."
|
|
34458
|
+
),
|
|
34459
|
+
"scheduleForked": asRemoved(
|
|
34460
|
+
"Use Effect.schedule combined with Effect.forkChild instead."
|
|
34461
|
+
),
|
|
34462
|
+
"sequentialFinalizers": asRemoved(
|
|
34463
|
+
"Finalizer ordering configuration has been removed in Effect v4."
|
|
34464
|
+
),
|
|
34465
|
+
"serviceConstants": asRemoved(
|
|
34466
|
+
"Service helpers have been removed. Use ServiceMap.Service and yield* to access services."
|
|
34467
|
+
),
|
|
34468
|
+
"serviceFunction": asRemoved(
|
|
34469
|
+
"Service helpers have been removed. Use ServiceMap.Service and yield* to access services."
|
|
34470
|
+
),
|
|
34471
|
+
"serviceFunctionEffect": asRemoved(
|
|
34472
|
+
"Service helpers have been removed. Use ServiceMap.Service and yield* to access services."
|
|
34473
|
+
),
|
|
34474
|
+
"serviceFunctions": asRemoved(
|
|
34475
|
+
"Service helpers have been removed. Use ServiceMap.Service and yield* to access services."
|
|
34476
|
+
),
|
|
34477
|
+
"serviceMembers": asRemoved(
|
|
34478
|
+
"Service helpers have been removed. Use ServiceMap.Service and yield* to access services."
|
|
34479
|
+
),
|
|
34480
|
+
"setFiberRefs": asRemoved(
|
|
34481
|
+
"FiberRef has been replaced by ServiceMap.Reference in Effect v4."
|
|
34482
|
+
),
|
|
34483
|
+
"step": asRemoved(
|
|
34484
|
+
"The request batching API has been reworked in Effect v4."
|
|
34485
|
+
),
|
|
34486
|
+
"summarized": asRemoved(
|
|
34487
|
+
"Use Effect.gen to capture before/after state instead."
|
|
34488
|
+
),
|
|
34489
|
+
"supervised": asRemoved(
|
|
34490
|
+
"Supervision has been reworked in Effect v4."
|
|
34491
|
+
),
|
|
34492
|
+
"tagMetrics": asRemoved(
|
|
34493
|
+
"Metric labeling has been reworked in Effect v4."
|
|
34494
|
+
),
|
|
34495
|
+
"tagMetricsScoped": asRemoved(
|
|
34496
|
+
"Metric labeling has been reworked in Effect v4."
|
|
34497
|
+
),
|
|
34498
|
+
"takeUntil": asRemoved(
|
|
34499
|
+
"Use Array.takeUntil and Effect.forEach instead."
|
|
34500
|
+
),
|
|
34501
|
+
"takeWhile": asRemoved(
|
|
34502
|
+
"Use Array.takeWhile and Effect.forEach instead."
|
|
34503
|
+
),
|
|
34504
|
+
"tapBoth": asRemoved(
|
|
34505
|
+
"Use Effect.tap and Effect.tapError instead."
|
|
34506
|
+
),
|
|
34507
|
+
"timedWith": asRemoved(
|
|
34508
|
+
"Use Effect.timed instead."
|
|
34509
|
+
),
|
|
34510
|
+
"timeoutFail": asRemoved(
|
|
34511
|
+
"Use Effect.timeout combined with Effect.catchTag for TimeoutException instead."
|
|
34512
|
+
),
|
|
34513
|
+
"timeoutFailCause": asRemoved(
|
|
34514
|
+
"Use Effect.timeout combined with Effect.sandbox instead."
|
|
34515
|
+
),
|
|
34516
|
+
"timeoutTo": asRemoved(
|
|
34517
|
+
"Use Effect.timeoutOption and Effect.map instead."
|
|
34518
|
+
),
|
|
34519
|
+
"tracerWith": asRemoved(
|
|
34520
|
+
"Use Effect.tracer instead."
|
|
34521
|
+
),
|
|
34522
|
+
"transplant": asRemoved(
|
|
34523
|
+
"Fiber transplanting has been removed in Effect v4."
|
|
34524
|
+
),
|
|
34525
|
+
"transposeMapOption": asRemoved(
|
|
34526
|
+
"Use Effect.map with Option operations instead."
|
|
34527
|
+
),
|
|
34528
|
+
"transposeOption": asRemoved(
|
|
34529
|
+
"Use Effect.option instead."
|
|
34530
|
+
),
|
|
34531
|
+
"tryMap": asRemoved(
|
|
34532
|
+
"Use Effect.map inside Effect.try instead."
|
|
34533
|
+
),
|
|
34534
|
+
"tryMapPromise": asRemoved(
|
|
34535
|
+
"Use Effect.tryPromise instead."
|
|
34536
|
+
),
|
|
34537
|
+
"unless": asRemoved(
|
|
34538
|
+
"Use Effect.when with a negated condition instead."
|
|
34539
|
+
),
|
|
34540
|
+
"unlessEffect": asRemoved(
|
|
34541
|
+
"Use Effect.when with a negated effectful condition instead."
|
|
34542
|
+
),
|
|
34543
|
+
"unsafeMakeLatch": asRemoved(
|
|
34544
|
+
"Use Effect.makeLatch instead."
|
|
34545
|
+
),
|
|
34546
|
+
"unsafeMakeSemaphore": asRemoved(
|
|
34547
|
+
"Use Effect.makeSemaphore instead."
|
|
34548
|
+
),
|
|
34549
|
+
"unsandbox": asRemoved(
|
|
34550
|
+
"Use Effect.catchCause instead."
|
|
34551
|
+
),
|
|
34552
|
+
"updateFiberRefs": asRemoved(
|
|
34553
|
+
"FiberRef has been replaced by ServiceMap.Reference in Effect v4."
|
|
34554
|
+
),
|
|
34555
|
+
"using": asRemoved(
|
|
34556
|
+
"Use Effect.scoped instead."
|
|
34557
|
+
),
|
|
34558
|
+
"validateAll": asRemoved(
|
|
34559
|
+
"Use Effect.all with { mode: 'validate' } instead."
|
|
34560
|
+
),
|
|
34561
|
+
"validateFirst": asRemoved(
|
|
34562
|
+
"Use Effect.all with { mode: 'validate' } instead."
|
|
34563
|
+
),
|
|
34564
|
+
"validateWith": asRemoved(
|
|
34565
|
+
"Use Effect.all with { mode: 'validate' } instead."
|
|
34566
|
+
),
|
|
34567
|
+
"whenEffect": asRemoved(
|
|
34568
|
+
"Use Effect.when with an effectful condition via Effect.flatMap instead."
|
|
34569
|
+
),
|
|
34570
|
+
"whenFiberRef": asRemoved(
|
|
34571
|
+
"FiberRef has been replaced by ServiceMap.Reference in Effect v4."
|
|
34572
|
+
),
|
|
34573
|
+
"whenLogLevel": asRemoved(
|
|
34574
|
+
"Log level checking has been reworked in Effect v4."
|
|
34575
|
+
),
|
|
34576
|
+
"whenRef": asRemoved(
|
|
34577
|
+
"Use Ref.get and Effect.when instead."
|
|
34578
|
+
),
|
|
34579
|
+
"withClock": asRemoved(
|
|
34580
|
+
"Clock configuration has been reworked in Effect v4."
|
|
34581
|
+
),
|
|
34582
|
+
"withClockScoped": asRemoved(
|
|
34583
|
+
"Clock configuration has been reworked in Effect v4."
|
|
34584
|
+
),
|
|
34585
|
+
"withConfigProvider": asRemoved(
|
|
34586
|
+
"ConfigProvider configuration has been reworked in Effect v4."
|
|
34587
|
+
),
|
|
34588
|
+
"withConfigProviderScoped": asRemoved(
|
|
34589
|
+
"ConfigProvider configuration has been reworked in Effect v4."
|
|
34590
|
+
),
|
|
34591
|
+
"withConsole": asRemoved(
|
|
34592
|
+
"Console configuration has been reworked in Effect v4."
|
|
34593
|
+
),
|
|
34594
|
+
"withConsoleScoped": asRemoved(
|
|
34595
|
+
"Console configuration has been reworked in Effect v4."
|
|
34596
|
+
),
|
|
34597
|
+
"withEarlyRelease": asRemoved(
|
|
34598
|
+
"Use Effect.scoped with manual resource management instead."
|
|
34599
|
+
),
|
|
34600
|
+
"withFiberRuntime": asRenamedAndNeedsOptions(
|
|
34601
|
+
"withFiber",
|
|
34602
|
+
"Note: in v4, only the Fiber is provided (not the full FiberRuntime with status). The callback receives (fiber: Fiber<unknown, unknown>) instead of (fiber: FiberRuntime<A, E>, status: FiberStatus)."
|
|
34603
|
+
),
|
|
34604
|
+
"withMaxOpsBeforeYield": asRemoved(
|
|
34605
|
+
"Use ServiceMap.Reference for MaxOpsBeforeYield configuration instead."
|
|
34606
|
+
),
|
|
34607
|
+
"withMetric": asRemoved(
|
|
34608
|
+
"Metric configuration has been reworked in Effect v4."
|
|
34609
|
+
),
|
|
34610
|
+
"withRandom": asRemoved(
|
|
34611
|
+
"Random configuration has been reworked in Effect v4."
|
|
34612
|
+
),
|
|
34613
|
+
"withRandomFixed": asRemoved(
|
|
34614
|
+
"Random configuration has been reworked in Effect v4."
|
|
34615
|
+
),
|
|
34616
|
+
"withRandomScoped": asRemoved(
|
|
34617
|
+
"Random configuration has been reworked in Effect v4."
|
|
34618
|
+
),
|
|
34619
|
+
"withRequestBatching": asRemoved(
|
|
34620
|
+
"Request batching configuration has been reworked in Effect v4."
|
|
34621
|
+
),
|
|
34622
|
+
"withRequestCache": asRemoved(
|
|
34623
|
+
"Request caching configuration has been reworked in Effect v4."
|
|
34624
|
+
),
|
|
34625
|
+
"withRequestCaching": asRemoved(
|
|
34626
|
+
"Request caching configuration has been reworked in Effect v4."
|
|
34627
|
+
),
|
|
34628
|
+
"withRuntimeFlagsPatch": asRemoved(
|
|
34629
|
+
"Runtime flags have been removed in Effect v4."
|
|
34630
|
+
),
|
|
34631
|
+
"withRuntimeFlagsPatchScoped": asRemoved(
|
|
34632
|
+
"Runtime flags have been removed in Effect v4."
|
|
34633
|
+
),
|
|
34634
|
+
"withScheduler": asRemoved(
|
|
34635
|
+
"Use ServiceMap.Reference for Scheduler configuration instead."
|
|
34636
|
+
),
|
|
34637
|
+
"withSchedulingPriority": asRemoved(
|
|
34638
|
+
"Scheduling priority configuration has been removed in Effect v4."
|
|
34639
|
+
),
|
|
34640
|
+
"withTracerScoped": asRemoved(
|
|
34641
|
+
"Use Effect.withTracer instead."
|
|
34642
|
+
),
|
|
34643
|
+
"withUnhandledErrorLogLevel": asRemoved(
|
|
34644
|
+
"Use ServiceMap.Reference for UnhandledLogLevel configuration instead."
|
|
34645
|
+
),
|
|
34646
|
+
"zipLeft": asRemoved(
|
|
34647
|
+
"Use Effect.tap instead of Effect.zipLeft."
|
|
34648
|
+
),
|
|
34649
|
+
"zipRight": asRemoved(
|
|
34650
|
+
"Use Effect.andThen instead of Effect.zipRight."
|
|
34651
|
+
)
|
|
34652
|
+
};
|
|
34653
|
+
|
|
34654
|
+
// src/diagnostics/outdatedApi.ts
|
|
34655
|
+
var outdatedApi = createDiagnostic({
|
|
34656
|
+
name: "outdatedApi",
|
|
34657
|
+
code: 48,
|
|
34658
|
+
description: "Detects usage of APIs that have been removed or renamed in Effect v4",
|
|
34659
|
+
severity: "warning",
|
|
34660
|
+
apply: fn3("outdatedApi.apply")(function* (sourceFile, report) {
|
|
34661
|
+
const typeParser = yield* service2(TypeParser);
|
|
34662
|
+
const ts = yield* service2(TypeScriptApi);
|
|
34663
|
+
const typeChecker = yield* service2(TypeCheckerApi);
|
|
34664
|
+
const typeCheckerUtils = yield* service2(TypeCheckerUtils);
|
|
34665
|
+
if (typeParser.supportedEffect() === "v3") return;
|
|
34666
|
+
let hasReported = false;
|
|
34667
|
+
function reportMigration(propertyAccess, propertyName, _migration) {
|
|
34668
|
+
hasReported = true;
|
|
34669
|
+
report({
|
|
34670
|
+
location: propertyAccess.name,
|
|
34671
|
+
messageText: `${propertyName} is an Effect v3 API, but the project is using Effect v4.`,
|
|
34672
|
+
fixes: []
|
|
34673
|
+
});
|
|
34674
|
+
}
|
|
34675
|
+
const checkPropertyAccessMigration = (propertyAccess, checkRightNode, migrationDb) => {
|
|
34676
|
+
if (!ts.isPropertyAccessExpression(propertyAccess)) return;
|
|
34677
|
+
const identifier2 = propertyAccess.name;
|
|
34678
|
+
if (!ts.isIdentifier(identifier2)) return;
|
|
34679
|
+
const identifierName = ts.idText(identifier2);
|
|
34680
|
+
const migration = migrationDb[identifierName];
|
|
34681
|
+
if (!migration) return;
|
|
34682
|
+
if (migration._tag === "Unchanged") return;
|
|
34683
|
+
const targetType = typeCheckerUtils.getTypeAtLocation(propertyAccess.expression);
|
|
34684
|
+
if (!targetType) return;
|
|
34685
|
+
const targetPropertySymbol = typeChecker.getPropertyOfType(targetType, identifierName);
|
|
34686
|
+
if (targetPropertySymbol) return;
|
|
34687
|
+
return pipe(
|
|
34688
|
+
checkRightNode(propertyAccess.expression),
|
|
34689
|
+
map11(() => reportMigration(propertyAccess, identifierName, migration)),
|
|
34690
|
+
ignore4
|
|
34691
|
+
);
|
|
34692
|
+
};
|
|
34693
|
+
const nodeToVisit = [];
|
|
34694
|
+
const appendNodeToVisit = (node) => {
|
|
34695
|
+
nodeToVisit.push(node);
|
|
34696
|
+
return void 0;
|
|
34697
|
+
};
|
|
34698
|
+
ts.forEachChild(sourceFile, appendNodeToVisit);
|
|
34699
|
+
while (nodeToVisit.length > 0) {
|
|
34700
|
+
const node = nodeToVisit.shift();
|
|
34701
|
+
ts.forEachChild(node, appendNodeToVisit);
|
|
34702
|
+
const checkEffectMigration = checkPropertyAccessMigration(
|
|
34703
|
+
node,
|
|
34704
|
+
typeParser.importedEffectModule,
|
|
34705
|
+
effectModuleMigrationDb
|
|
34706
|
+
);
|
|
34707
|
+
if (checkEffectMigration) {
|
|
34708
|
+
yield* ignore4(checkEffectMigration);
|
|
34709
|
+
}
|
|
34710
|
+
}
|
|
34711
|
+
if (hasReported) {
|
|
34712
|
+
report({
|
|
34713
|
+
location: { pos: 0, end: 0 },
|
|
34714
|
+
messageText: "This project targets Effect v4, but is using Effect v3 APIs. To find the correct API to use, clone and consult the github.com/effect-ts/effect-smol repository for the corresponding v4 replacement.",
|
|
34715
|
+
fixes: []
|
|
34716
|
+
});
|
|
34717
|
+
}
|
|
34718
|
+
})
|
|
34719
|
+
});
|
|
34720
|
+
|
|
33794
34721
|
// src/diagnostics/outdatedEffectCodegen.ts
|
|
33795
34722
|
var outdatedEffectCodegen = createDiagnostic({
|
|
33796
34723
|
name: "outdatedEffectCodegen",
|
|
@@ -35161,6 +36088,7 @@ var unsupportedServiceAccessors = createDiagnostic({
|
|
|
35161
36088
|
|
|
35162
36089
|
// src/diagnostics.ts
|
|
35163
36090
|
var diagnostics = [
|
|
36091
|
+
outdatedApi,
|
|
35164
36092
|
anyUnknownInErrorContext,
|
|
35165
36093
|
instanceOfSchema,
|
|
35166
36094
|
catchAllToMapError,
|
|
@@ -38583,8 +39511,8 @@ function handleClear(options) {
|
|
|
38583
39511
|
});
|
|
38584
39512
|
}
|
|
38585
39513
|
function handleRender(options) {
|
|
38586
|
-
return (state,
|
|
38587
|
-
return Action2.$match(
|
|
39514
|
+
return (state, action2) => {
|
|
39515
|
+
return Action2.$match(action2, {
|
|
38588
39516
|
Beep: () => succeed6(BEEP),
|
|
38589
39517
|
NextFrame: ({ state: state2 }) => renderNextFrame(state2, options),
|
|
38590
39518
|
Submit: () => renderSubmission(state, options)
|