lalph 0.3.32 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +819 -616
- package/package.json +3 -3
- package/src/GitFlow.ts +10 -0
- package/src/cli.ts +4 -8
- package/src/commands/agents.ts +1 -7
- package/src/commands/edit.ts +1 -7
- package/src/commands/issue.ts +1 -7
- package/src/commands/projects.ts +1 -5
package/dist/cli.mjs
CHANGED
|
@@ -44,7 +44,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
44
44
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
45
45
|
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
47
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Pipeable.js
|
|
48
48
|
/**
|
|
49
49
|
* @since 2.0.0
|
|
50
50
|
*/
|
|
@@ -104,7 +104,7 @@ const Class$4 = /* @__PURE__ */ function() {
|
|
|
104
104
|
}();
|
|
105
105
|
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
107
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Function.js
|
|
108
108
|
/**
|
|
109
109
|
* Creates a function that can be used in a data-last (aka `pipe`able) or
|
|
110
110
|
* data-first style.
|
|
@@ -373,7 +373,7 @@ function memoize(f) {
|
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
//#endregion
|
|
376
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
376
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/equal.js
|
|
377
377
|
/** @internal */
|
|
378
378
|
const getAllObjectKeys = (obj) => {
|
|
379
379
|
const keys = new Set(Reflect.ownKeys(obj));
|
|
@@ -393,7 +393,7 @@ const getAllObjectKeys = (obj) => {
|
|
|
393
393
|
const byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
394
394
|
|
|
395
395
|
//#endregion
|
|
396
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
396
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Predicate.js
|
|
397
397
|
/**
|
|
398
398
|
* Predicate and Refinement helpers for runtime checks, filtering, and type narrowing.
|
|
399
399
|
* This module provides small, pure functions you can combine to decide whether a
|
|
@@ -1071,7 +1071,7 @@ function isRegExp$1(input) {
|
|
|
1071
1071
|
const or = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) || that(a));
|
|
1072
1072
|
|
|
1073
1073
|
//#endregion
|
|
1074
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
1074
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Hash.js
|
|
1075
1075
|
/**
|
|
1076
1076
|
* This module provides utilities for hashing values in TypeScript.
|
|
1077
1077
|
*
|
|
@@ -1421,7 +1421,7 @@ function withVisitedTracking$1(obj, fn) {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
|
|
1423
1423
|
//#endregion
|
|
1424
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
1424
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Equal.js
|
|
1425
1425
|
/**
|
|
1426
1426
|
* The unique string identifier for the {@link Equal} interface.
|
|
1427
1427
|
*
|
|
@@ -1692,7 +1692,7 @@ const byReferenceUnsafe = (obj) => {
|
|
|
1692
1692
|
};
|
|
1693
1693
|
|
|
1694
1694
|
//#endregion
|
|
1695
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
1695
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Redactable.js
|
|
1696
1696
|
/**
|
|
1697
1697
|
* @since 4.0.0
|
|
1698
1698
|
*/
|
|
@@ -1787,7 +1787,7 @@ const emptyServiceMap$1 = {
|
|
|
1787
1787
|
};
|
|
1788
1788
|
|
|
1789
1789
|
//#endregion
|
|
1790
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
1790
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Formatter.js
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Utilities for converting arbitrary JavaScript values into human-readable
|
|
1793
1793
|
* strings, with support for circular references, redaction, and common JS
|
|
@@ -2130,7 +2130,7 @@ function formatJson$1(input, options) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
|
|
2132
2132
|
//#endregion
|
|
2133
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
2133
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Inspectable.js
|
|
2134
2134
|
/**
|
|
2135
2135
|
* This module provides utilities for making values inspectable and debuggable in TypeScript.
|
|
2136
2136
|
*
|
|
@@ -2334,7 +2334,7 @@ var Class$3 = class {
|
|
|
2334
2334
|
};
|
|
2335
2335
|
|
|
2336
2336
|
//#endregion
|
|
2337
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
2337
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Utils.js
|
|
2338
2338
|
/**
|
|
2339
2339
|
* @since 2.0.0
|
|
2340
2340
|
*/
|
|
@@ -2412,7 +2412,7 @@ const internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[Inte
|
|
|
2412
2412
|
const genConstructor = function* () {}.constructor;
|
|
2413
2413
|
|
|
2414
2414
|
//#endregion
|
|
2415
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
2415
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/core.js
|
|
2416
2416
|
/** @internal */
|
|
2417
2417
|
const EffectTypeId$1 = `~effect/Effect`;
|
|
2418
2418
|
/** @internal */
|
|
@@ -2812,7 +2812,7 @@ const done$2 = (value) => {
|
|
|
2812
2812
|
};
|
|
2813
2813
|
|
|
2814
2814
|
//#endregion
|
|
2815
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
2815
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Data.js
|
|
2816
2816
|
/**
|
|
2817
2817
|
* Base class for immutable data types.
|
|
2818
2818
|
*
|
|
@@ -3011,7 +3011,7 @@ const Error$2 = Error$3;
|
|
|
3011
3011
|
const TaggedError = TaggedError$1;
|
|
3012
3012
|
|
|
3013
3013
|
//#endregion
|
|
3014
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
3014
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Order.js
|
|
3015
3015
|
/**
|
|
3016
3016
|
* This module provides the `Order` type class for defining total orderings on types.
|
|
3017
3017
|
* An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than).
|
|
@@ -3696,7 +3696,7 @@ const clamp$2 = (O) => dual(2, (self, options) => min$3(O)(options.maximum, max$
|
|
|
3696
3696
|
const isBetween$1 = (O) => dual(2, (self, options) => !isLessThan$4(O)(self, options.minimum) && !isGreaterThan$4(O)(self, options.maximum));
|
|
3697
3697
|
|
|
3698
3698
|
//#endregion
|
|
3699
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
3699
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/UndefinedOr.js
|
|
3700
3700
|
/**
|
|
3701
3701
|
* @since 4.0.0
|
|
3702
3702
|
*/
|
|
@@ -3717,7 +3717,7 @@ const liftThrowable = (f) => (...a) => {
|
|
|
3717
3717
|
};
|
|
3718
3718
|
|
|
3719
3719
|
//#endregion
|
|
3720
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
3720
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Duration.js
|
|
3721
3721
|
const TypeId$67 = "~effect/time/Duration";
|
|
3722
3722
|
const bigint0$2 = /* @__PURE__ */ BigInt(0);
|
|
3723
3723
|
const bigint24 = /* @__PURE__ */ BigInt(24);
|
|
@@ -4454,7 +4454,7 @@ const format$3 = (self) => {
|
|
|
4454
4454
|
};
|
|
4455
4455
|
|
|
4456
4456
|
//#endregion
|
|
4457
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
4457
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Equivalence.js
|
|
4458
4458
|
/**
|
|
4459
4459
|
* Creates a custom equivalence relation with an optimized reference equality check.
|
|
4460
4460
|
*
|
|
@@ -4785,7 +4785,7 @@ function Struct$1(fields) {
|
|
|
4785
4785
|
}
|
|
4786
4786
|
|
|
4787
4787
|
//#endregion
|
|
4788
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
4788
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/doNotation.js
|
|
4789
4789
|
/** @internal */
|
|
4790
4790
|
const let_$2 = (map) => dual(3, (self, name, f) => map(self, (a) => ({
|
|
4791
4791
|
...a,
|
|
@@ -4800,7 +4800,7 @@ const bind$3 = (map, flatMap) => dual(3, (self, name, f) => flatMap(self, (a) =>
|
|
|
4800
4800
|
}))));
|
|
4801
4801
|
|
|
4802
4802
|
//#endregion
|
|
4803
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
4803
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/option.js
|
|
4804
4804
|
/**
|
|
4805
4805
|
* @since 2.0.0
|
|
4806
4806
|
*/
|
|
@@ -4872,7 +4872,7 @@ const some$3 = (value) => {
|
|
|
4872
4872
|
};
|
|
4873
4873
|
|
|
4874
4874
|
//#endregion
|
|
4875
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
4875
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/result.js
|
|
4876
4876
|
const TypeId$65 = "~effect/data/Result";
|
|
4877
4877
|
const CommonProto = {
|
|
4878
4878
|
[TypeId$65]: {
|
|
@@ -4954,7 +4954,7 @@ const getSuccess$3 = (self) => isFailure$5(self) ? none$5 : some$3(self.success)
|
|
|
4954
4954
|
const fromOption$4 = /* @__PURE__ */ dual(2, (self, onNone) => isNone$1(self) ? fail$9(onNone()) : succeed$7(self.value));
|
|
4955
4955
|
|
|
4956
4956
|
//#endregion
|
|
4957
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
4957
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Option.js
|
|
4958
4958
|
/**
|
|
4959
4959
|
* Creates an `Option` representing the absence of a value.
|
|
4960
4960
|
*
|
|
@@ -5728,7 +5728,7 @@ const makeEquivalence$5 = (isEquivalent) => make$62((x, y) => isNone(x) ? isNone
|
|
|
5728
5728
|
const liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some$2(b) : none$4());
|
|
5729
5729
|
|
|
5730
5730
|
//#endregion
|
|
5731
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
5731
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Result.js
|
|
5732
5732
|
/**
|
|
5733
5733
|
* Creates a `Result` holding a `Success` value.
|
|
5734
5734
|
*
|
|
@@ -6091,7 +6091,7 @@ const getOrThrow$1 = /* @__PURE__ */ getOrThrowWith(identity);
|
|
|
6091
6091
|
const succeedNone$2 = /* @__PURE__ */ succeed$6(none$5);
|
|
6092
6092
|
|
|
6093
6093
|
//#endregion
|
|
6094
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
6094
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Filter.js
|
|
6095
6095
|
/**
|
|
6096
6096
|
* Applies a filter, predicate, or refinement to an input and returns a boxed
|
|
6097
6097
|
* result. Extra arguments are forwarded to the function.
|
|
@@ -6250,7 +6250,7 @@ const toOption = (self) => (input) => {
|
|
|
6250
6250
|
};
|
|
6251
6251
|
|
|
6252
6252
|
//#endregion
|
|
6253
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
6253
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/array.js
|
|
6254
6254
|
/**
|
|
6255
6255
|
* @since 2.0.0
|
|
6256
6256
|
*/
|
|
@@ -6258,7 +6258,7 @@ const toOption = (self) => (input) => {
|
|
|
6258
6258
|
const isArrayNonEmpty$1 = (self) => self.length > 0;
|
|
6259
6259
|
|
|
6260
6260
|
//#endregion
|
|
6261
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
6261
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Tuple.js
|
|
6262
6262
|
/**
|
|
6263
6263
|
* Creates an `Equivalence` for tuples by comparing corresponding elements
|
|
6264
6264
|
* using the provided per-position `Equivalence`s. Two tuples are equivalent
|
|
@@ -6316,7 +6316,7 @@ const makeEquivalence$4 = Tuple$1;
|
|
|
6316
6316
|
const makeOrder$2 = Tuple$2;
|
|
6317
6317
|
|
|
6318
6318
|
//#endregion
|
|
6319
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
6319
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Iterable.js
|
|
6320
6320
|
/**
|
|
6321
6321
|
* Return the number of elements in a `Iterable`.
|
|
6322
6322
|
*
|
|
@@ -6530,7 +6530,7 @@ const filter$8 = /* @__PURE__ */ dual(2, (self, predicate) => ({ [Symbol.iterato
|
|
|
6530
6530
|
} }));
|
|
6531
6531
|
|
|
6532
6532
|
//#endregion
|
|
6533
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
6533
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Record.js
|
|
6534
6534
|
/**
|
|
6535
6535
|
* Creates a new, empty record.
|
|
6536
6536
|
*
|
|
@@ -6734,7 +6734,7 @@ const makeEquivalence$3 = (equivalence) => {
|
|
|
6734
6734
|
};
|
|
6735
6735
|
|
|
6736
6736
|
//#endregion
|
|
6737
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
6737
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Array.js
|
|
6738
6738
|
/**
|
|
6739
6739
|
* Utilities for working with immutable arrays (and non-empty arrays) in a
|
|
6740
6740
|
* functional style. All functions treat arrays as immutable — they return new
|
|
@@ -7672,7 +7672,7 @@ const dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
7672
7672
|
const join$3 = /* @__PURE__ */ dual(2, (self, sep) => fromIterable$4(self).join(sep));
|
|
7673
7673
|
|
|
7674
7674
|
//#endregion
|
|
7675
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
7675
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/ServiceMap.js
|
|
7676
7676
|
const ServiceTypeId = "~effect/ServiceMap/Service";
|
|
7677
7677
|
/**
|
|
7678
7678
|
* @example
|
|
@@ -8176,7 +8176,7 @@ const mergeAll$1 = (...ctxs) => {
|
|
|
8176
8176
|
const Reference = Service$1;
|
|
8177
8177
|
|
|
8178
8178
|
//#endregion
|
|
8179
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
8179
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Scheduler.js
|
|
8180
8180
|
/**
|
|
8181
8181
|
* @since 4.0.0
|
|
8182
8182
|
* @category references
|
|
@@ -8405,7 +8405,7 @@ var MixedScheduler = class {
|
|
|
8405
8405
|
const MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBeforeYield", { defaultValue: () => 2048 });
|
|
8406
8406
|
|
|
8407
8407
|
//#endregion
|
|
8408
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
8408
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Tracer.js
|
|
8409
8409
|
/**
|
|
8410
8410
|
* @since 2.0.0
|
|
8411
8411
|
* @category tags
|
|
@@ -8590,7 +8590,7 @@ const randomHexString = /* @__PURE__ */ function() {
|
|
|
8590
8590
|
}();
|
|
8591
8591
|
|
|
8592
8592
|
//#endregion
|
|
8593
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
8593
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/References.js
|
|
8594
8594
|
/**
|
|
8595
8595
|
* This module provides a collection of reference implementations for commonly used
|
|
8596
8596
|
* Effect runtime configuration values. These references allow you to access and
|
|
@@ -9053,12 +9053,12 @@ const MinimumLogLevel = /* @__PURE__ */ Reference("effect/References/MinimumLogL
|
|
|
9053
9053
|
const CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpans", { defaultValue: () => [] });
|
|
9054
9054
|
|
|
9055
9055
|
//#endregion
|
|
9056
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
9056
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/metric.js
|
|
9057
9057
|
/** @internal */
|
|
9058
9058
|
const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
|
|
9059
9059
|
|
|
9060
9060
|
//#endregion
|
|
9061
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
9061
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/tracer.js
|
|
9062
9062
|
/** @internal */
|
|
9063
9063
|
const addSpanStackTrace = (options) => {
|
|
9064
9064
|
if (options?.captureStackTrace === false) return options;
|
|
@@ -9089,11 +9089,11 @@ const makeStackCleaner = (line) => (stack) => {
|
|
|
9089
9089
|
const spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
|
|
9090
9090
|
|
|
9091
9091
|
//#endregion
|
|
9092
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
9092
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/version.js
|
|
9093
9093
|
const version$1 = "dev";
|
|
9094
9094
|
|
|
9095
9095
|
//#endregion
|
|
9096
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
9096
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/effect.js
|
|
9097
9097
|
/** @internal */
|
|
9098
9098
|
var Interrupt$1 = class extends ReasonBase {
|
|
9099
9099
|
fiberId;
|
|
@@ -10175,8 +10175,8 @@ const catchTags$1 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, c
|
|
|
10175
10175
|
/** @internal */
|
|
10176
10176
|
const catchReason$1 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, errorTag, reasonTag, f, orElse) => catchIf$1(self, (e) => isTagged(e, errorTag) && hasProperty(e, "reason"), (e) => {
|
|
10177
10177
|
const reason = e.reason;
|
|
10178
|
-
if (isTagged(reason, reasonTag)) return f(reason);
|
|
10179
|
-
return orElse ? internalCall(() => orElse(reason)) : fail$7(e);
|
|
10178
|
+
if (isTagged(reason, reasonTag)) return f(reason, e);
|
|
10179
|
+
return orElse ? internalCall(() => orElse(reason, e)) : fail$7(e);
|
|
10180
10180
|
}));
|
|
10181
10181
|
/** @internal */
|
|
10182
10182
|
const catchReasons$1 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, errorTag, cases, orElse) => {
|
|
@@ -10184,8 +10184,8 @@ const catchReasons$1 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self
|
|
|
10184
10184
|
return catchIf$1(self, (e) => isTagged(e, errorTag) && hasProperty(e, "reason") && hasProperty(e.reason, "_tag") && isString$1(e.reason._tag), (e) => {
|
|
10185
10185
|
const reason = e.reason;
|
|
10186
10186
|
keys ??= Object.keys(cases);
|
|
10187
|
-
if (keys.includes(reason._tag)) return internalCall(() => cases[reason._tag](reason));
|
|
10188
|
-
return orElse ? internalCall(() => orElse(reason)) : fail$7(e);
|
|
10187
|
+
if (keys.includes(reason._tag)) return internalCall(() => cases[reason._tag](reason, e));
|
|
10188
|
+
return orElse ? internalCall(() => orElse(reason, e)) : fail$7(e);
|
|
10189
10189
|
});
|
|
10190
10190
|
});
|
|
10191
10191
|
/** @internal */
|
|
@@ -11513,7 +11513,7 @@ const reportCauseUnsafe = (fiber, cause, defectsOnly) => {
|
|
|
11513
11513
|
};
|
|
11514
11514
|
|
|
11515
11515
|
//#endregion
|
|
11516
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
11516
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Exit.js
|
|
11517
11517
|
ExitTypeId;
|
|
11518
11518
|
/**
|
|
11519
11519
|
* Tests whether an unknown value is an Exit.
|
|
@@ -12188,7 +12188,7 @@ const getCause = exitGetCause;
|
|
|
12188
12188
|
const findErrorOption$1 = exitFindErrorOption;
|
|
12189
12189
|
|
|
12190
12190
|
//#endregion
|
|
12191
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
12191
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Deferred.js
|
|
12192
12192
|
const DeferredProto = {
|
|
12193
12193
|
["~effect/Deferred"]: {
|
|
12194
12194
|
_A: identity,
|
|
@@ -12449,7 +12449,7 @@ const doneUnsafe = (self, effect) => {
|
|
|
12449
12449
|
const into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask$1((restore) => flatMap$4(exit$1(restore(self)), (exit) => done$1(deferred, exit))));
|
|
12450
12450
|
|
|
12451
12451
|
//#endregion
|
|
12452
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
12452
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Scope.js
|
|
12453
12453
|
/**
|
|
12454
12454
|
* The `Scope` module provides functionality for managing resource lifecycles
|
|
12455
12455
|
* and cleanup operations in a functional and composable manner.
|
|
@@ -12729,7 +12729,7 @@ const closeUnsafe = scopeCloseUnsafe;
|
|
|
12729
12729
|
const use$1 = scopeUse;
|
|
12730
12730
|
|
|
12731
12731
|
//#endregion
|
|
12732
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
12732
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Layer.js
|
|
12733
12733
|
const TypeId$63 = "~effect/Layer";
|
|
12734
12734
|
const MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
12735
12735
|
/**
|
|
@@ -13590,7 +13590,7 @@ const orDie$3 = (self) => fromBuildUnsafe((memoMap, scope) => orDie$4(self.build
|
|
|
13590
13590
|
const fresh = (self) => fromBuildUnsafe((_, scope) => self.build(makeMemoMapUnsafe(), scope));
|
|
13591
13591
|
|
|
13592
13592
|
//#endregion
|
|
13593
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
13593
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/ExecutionPlan.js
|
|
13594
13594
|
/**
|
|
13595
13595
|
* @since 3.16.0
|
|
13596
13596
|
* @category Type IDs
|
|
@@ -13624,7 +13624,7 @@ const CurrentMetadata$1 = /* @__PURE__ */ Reference("effect/ExecutionPlan/Curren
|
|
|
13624
13624
|
}) });
|
|
13625
13625
|
|
|
13626
13626
|
//#endregion
|
|
13627
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
13627
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Cause.js
|
|
13628
13628
|
/**
|
|
13629
13629
|
* Unique brand for `Cause` values, used for runtime type checks via {@link isCause}.
|
|
13630
13630
|
*
|
|
@@ -14637,7 +14637,7 @@ const annotations = causeAnnotations;
|
|
|
14637
14637
|
var StackTrace = class extends Service$1()("effect/Cause/StackTrace") {};
|
|
14638
14638
|
|
|
14639
14639
|
//#endregion
|
|
14640
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
14640
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Clock.js
|
|
14641
14641
|
/**
|
|
14642
14642
|
* A reference to the current Clock service in the environment.
|
|
14643
14643
|
*
|
|
@@ -14713,7 +14713,7 @@ const currentTimeMillis = currentTimeMillis$1;
|
|
|
14713
14713
|
const currentTimeNanos = currentTimeNanos$1;
|
|
14714
14714
|
|
|
14715
14715
|
//#endregion
|
|
14716
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
14716
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/dateTime.js
|
|
14717
14717
|
/** @internal */
|
|
14718
14718
|
const TypeId$60 = "~effect/time/DateTime";
|
|
14719
14719
|
/** @internal */
|
|
@@ -15317,7 +15317,7 @@ const formatIsoOffset$1 = (self) => {
|
|
|
15317
15317
|
const formatIsoZoned$1 = (self) => self.zone._tag === "Offset" ? formatIsoOffset$1(self) : `${formatIsoOffset$1(self)}[${self.zone.id}]`;
|
|
15318
15318
|
|
|
15319
15319
|
//#endregion
|
|
15320
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
15320
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Number.js
|
|
15321
15321
|
/**
|
|
15322
15322
|
* This module provides utility functions and type class instances for working with the `number` type in TypeScript.
|
|
15323
15323
|
* It includes functions for basic arithmetic operations.
|
|
@@ -15394,7 +15394,7 @@ const Order$4 = Number$6;
|
|
|
15394
15394
|
const Equivalence$5 = Number$5;
|
|
15395
15395
|
|
|
15396
15396
|
//#endregion
|
|
15397
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
15397
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/String.js
|
|
15398
15398
|
/**
|
|
15399
15399
|
* This module provides utility functions and type class instances for working with the `string` type in TypeScript.
|
|
15400
15400
|
* It includes functions for basic string manipulation.
|
|
@@ -15489,7 +15489,7 @@ const trim = (self) => self.trim();
|
|
|
15489
15489
|
const isNonEmpty$1 = (self) => self.length > 0;
|
|
15490
15490
|
|
|
15491
15491
|
//#endregion
|
|
15492
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
15492
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Pull.js
|
|
15493
15493
|
/**
|
|
15494
15494
|
* @since 4.0.0
|
|
15495
15495
|
*/
|
|
@@ -15571,7 +15571,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffec
|
|
|
15571
15571
|
}));
|
|
15572
15572
|
|
|
15573
15573
|
//#endregion
|
|
15574
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
15574
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Schedule.js
|
|
15575
15575
|
/**
|
|
15576
15576
|
* This module provides utilities for creating and composing schedules for retrying operations,
|
|
15577
15577
|
* repeating effects, and implementing various timing strategies.
|
|
@@ -16117,13 +16117,13 @@ const while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map$11(toSt
|
|
|
16117
16117
|
const forever$1 = /* @__PURE__ */ spaced(zero$1);
|
|
16118
16118
|
|
|
16119
16119
|
//#endregion
|
|
16120
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
16120
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/layer.js
|
|
16121
16121
|
const provideLayer = (self, layer, options) => scopedWith$1((scope) => flatMap$4(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideServices$1(self, context)));
|
|
16122
16122
|
/** @internal */
|
|
16123
16123
|
const provide$2 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, source, options) => isServiceMap(source) ? provideServices$1(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source, options));
|
|
16124
16124
|
|
|
16125
16125
|
//#endregion
|
|
16126
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
16126
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/schedule.js
|
|
16127
16127
|
/** @internal */
|
|
16128
16128
|
const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self, schedule, orElse) => flatMap$4(toStepWithMetadata(schedule), (step) => {
|
|
16129
16129
|
let meta = CurrentMetadata.defaultValue();
|
|
@@ -16185,7 +16185,7 @@ const buildFromOptions = (options) => {
|
|
|
16185
16185
|
};
|
|
16186
16186
|
|
|
16187
16187
|
//#endregion
|
|
16188
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
16188
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/executionPlan.js
|
|
16189
16189
|
/** @internal */
|
|
16190
16190
|
const withExecutionPlan$1 = /* @__PURE__ */ dual(2, (self, plan) => suspend$4(() => {
|
|
16191
16191
|
let i = 0;
|
|
@@ -16244,7 +16244,7 @@ const scheduleFromStep = (step, first) => {
|
|
|
16244
16244
|
const scheduleOnce = /* @__PURE__ */ recurs(1);
|
|
16245
16245
|
|
|
16246
16246
|
//#endregion
|
|
16247
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
16247
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Request.js
|
|
16248
16248
|
const TypeId$58 = "~effect/Request";
|
|
16249
16249
|
const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
|
|
16250
16250
|
_E: (_) => _,
|
|
@@ -16265,7 +16265,7 @@ const RequestPrototype = {
|
|
|
16265
16265
|
const makeEntry = (options) => options;
|
|
16266
16266
|
|
|
16267
16267
|
//#endregion
|
|
16268
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
16268
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/request.js
|
|
16269
16269
|
/** @internal */
|
|
16270
16270
|
const request$2 = /* @__PURE__ */ dual(2, (self, resolver) => {
|
|
16271
16271
|
const withResolver = (resolver) => callback$2((resume) => {
|
|
@@ -16334,13 +16334,13 @@ const addEntry = (resolver, request, resume, fiber) => {
|
|
|
16334
16334
|
batch = newBatch;
|
|
16335
16335
|
}
|
|
16336
16336
|
batchMap.set(key, batch);
|
|
16337
|
-
batch.fiber =
|
|
16337
|
+
batch.fiber = runForkWith$1(fiber.services)(batch.delayEffect, { scheduler: fiber.currentScheduler });
|
|
16338
16338
|
}
|
|
16339
16339
|
batch.entrySet.add(entry);
|
|
16340
16340
|
batch.entries.add(entry);
|
|
16341
16341
|
if (batch.resolver.collectWhile(batch.entries)) return entry;
|
|
16342
16342
|
batch.fiber.interruptUnsafe(fiber.id);
|
|
16343
|
-
batch.fiber =
|
|
16343
|
+
batch.fiber = runForkWith$1(fiber.services)(runBatch(batch), { scheduler: fiber.currentScheduler });
|
|
16344
16344
|
return entry;
|
|
16345
16345
|
};
|
|
16346
16346
|
const removeEntryUnsafe = (resolver, entry) => {
|
|
@@ -16365,7 +16365,7 @@ function runBatch(batch) {
|
|
|
16365
16365
|
}
|
|
16366
16366
|
|
|
16367
16367
|
//#endregion
|
|
16368
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
16368
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Effect.js
|
|
16369
16369
|
const TypeId$57 = EffectTypeId$1;
|
|
16370
16370
|
/**
|
|
16371
16371
|
* Tests if a value is an `Effect`.
|
|
@@ -22879,7 +22879,7 @@ const catchEager = catchEager$1;
|
|
|
22879
22879
|
const fnUntracedEager = fnUntracedEager$1;
|
|
22880
22880
|
|
|
22881
22881
|
//#endregion
|
|
22882
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
22882
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/record.js
|
|
22883
22883
|
/**
|
|
22884
22884
|
* @since 4.0.0
|
|
22885
22885
|
*/
|
|
@@ -22896,7 +22896,7 @@ function set$10(self, key, value) {
|
|
|
22896
22896
|
}
|
|
22897
22897
|
|
|
22898
22898
|
//#endregion
|
|
22899
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
22899
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/schema/annotations.js
|
|
22900
22900
|
/** @internal */
|
|
22901
22901
|
function resolve$2(ast) {
|
|
22902
22902
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -22915,11 +22915,13 @@ const resolveDescription$1 = /* @__PURE__ */ resolveAt$1("description");
|
|
|
22915
22915
|
const resolveBrands = /* @__PURE__ */ resolveAt$1("brands");
|
|
22916
22916
|
/** @internal */
|
|
22917
22917
|
const getExpected = /* @__PURE__ */ memoize((ast) => {
|
|
22918
|
+
const identifier = resolveIdentifier$1(ast);
|
|
22919
|
+
if (typeof identifier === "string") return identifier;
|
|
22918
22920
|
return ast.getExpected(getExpected);
|
|
22919
22921
|
});
|
|
22920
22922
|
|
|
22921
22923
|
//#endregion
|
|
22922
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
22924
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/RegExp.js
|
|
22923
22925
|
/**
|
|
22924
22926
|
* This module provides utility functions for working with RegExp in TypeScript.
|
|
22925
22927
|
*
|
|
@@ -22974,7 +22976,7 @@ const isRegExp = isRegExp$1;
|
|
|
22974
22976
|
const escape = (string) => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
22975
22977
|
|
|
22976
22978
|
//#endregion
|
|
22977
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
22979
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/DateTime.js
|
|
22978
22980
|
TypeId$60;
|
|
22979
22981
|
TimeZoneTypeId;
|
|
22980
22982
|
/**
|
|
@@ -24543,7 +24545,7 @@ const formatIsoZoned = formatIsoZoned$1;
|
|
|
24543
24545
|
const layerCurrentZoneNamed = /* @__PURE__ */ flow(zoneMakeNamedEffect$1, /* @__PURE__ */ effect$1(CurrentTimeZone));
|
|
24544
24546
|
|
|
24545
24547
|
//#endregion
|
|
24546
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
24548
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Encoding.js
|
|
24547
24549
|
/**
|
|
24548
24550
|
* Encoding & decoding for Base64 (RFC4648), Base64Url, and Hex.
|
|
24549
24551
|
*
|
|
@@ -24877,7 +24879,7 @@ const base64codes = [
|
|
|
24877
24879
|
const base64UrlEncodeUint8Array = (data) => base64EncodeUint8Array(data).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
|
|
24878
24880
|
|
|
24879
24881
|
//#endregion
|
|
24880
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
24882
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/redacted.js
|
|
24881
24883
|
/** @internal */
|
|
24882
24884
|
const redactedRegistry = /* @__PURE__ */ new WeakMap();
|
|
24883
24885
|
/** @internal */
|
|
@@ -24887,7 +24889,7 @@ const value$3 = (self) => {
|
|
|
24887
24889
|
};
|
|
24888
24890
|
|
|
24889
24891
|
//#endregion
|
|
24890
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
24892
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Redacted.js
|
|
24891
24893
|
/**
|
|
24892
24894
|
* The Redacted module provides functionality for handling sensitive information
|
|
24893
24895
|
* securely within your application. By using the `Redacted` data type, you can
|
|
@@ -24970,7 +24972,7 @@ const Proto$20 = {
|
|
|
24970
24972
|
const value$2 = value$3;
|
|
24971
24973
|
|
|
24972
24974
|
//#endregion
|
|
24973
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
24975
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/SchemaIssue.js
|
|
24974
24976
|
const TypeId$55 = "~effect/SchemaIssue/Issue";
|
|
24975
24977
|
/**
|
|
24976
24978
|
* Returns `true` if the given value is an {@link Issue}.
|
|
@@ -25698,7 +25700,7 @@ function formatOption(actual) {
|
|
|
25698
25700
|
}
|
|
25699
25701
|
|
|
25700
25702
|
//#endregion
|
|
25701
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
25703
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/SchemaGetter.js
|
|
25702
25704
|
/**
|
|
25703
25705
|
* Composable transformation primitives for the Effect Schema system.
|
|
25704
25706
|
*
|
|
@@ -26399,7 +26401,7 @@ function collectBracketPathEntries(isLeaf) {
|
|
|
26399
26401
|
}
|
|
26400
26402
|
|
|
26401
26403
|
//#endregion
|
|
26402
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
26404
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/BigDecimal.js
|
|
26403
26405
|
/**
|
|
26404
26406
|
* This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript.
|
|
26405
26407
|
* It includes functions for basic arithmetic operations.
|
|
@@ -26816,7 +26818,7 @@ const isZero = (n) => n.value === bigint0;
|
|
|
26816
26818
|
const isNegative = (n) => n.value < bigint0;
|
|
26817
26819
|
|
|
26818
26820
|
//#endregion
|
|
26819
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
26821
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/SchemaTransformation.js
|
|
26820
26822
|
/**
|
|
26821
26823
|
* Bidirectional transformations for the Effect Schema system.
|
|
26822
26824
|
*
|
|
@@ -27374,7 +27376,7 @@ const dateTimeUtcFromString = /* @__PURE__ */ transformOrFail({
|
|
|
27374
27376
|
});
|
|
27375
27377
|
|
|
27376
27378
|
//#endregion
|
|
27377
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
27379
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/SchemaAST.js
|
|
27378
27380
|
/**
|
|
27379
27381
|
* Abstract Syntax Tree (AST) representation for Effect schemas.
|
|
27380
27382
|
*
|
|
@@ -27643,7 +27645,7 @@ var Declaration = class Declaration extends Base {
|
|
|
27643
27645
|
}
|
|
27644
27646
|
/** @internal */
|
|
27645
27647
|
getExpected() {
|
|
27646
|
-
const expected = this.annotations?.
|
|
27648
|
+
const expected = this.annotations?.expected;
|
|
27647
27649
|
if (typeof expected === "string") return expected;
|
|
27648
27650
|
return "<Declaration>";
|
|
27649
27651
|
}
|
|
@@ -28133,15 +28135,15 @@ var Arrays = class Arrays extends Base {
|
|
|
28133
28135
|
const e = elements[i];
|
|
28134
28136
|
const value = i < input.length ? some$2(input[i]) : none$4();
|
|
28135
28137
|
const eff = e.parser(value, options);
|
|
28136
|
-
const exit$
|
|
28137
|
-
if (exit$
|
|
28138
|
-
const issueElement = findError(exit$
|
|
28139
|
-
if (isFailure$4(issueElement)) return yield* exit$
|
|
28138
|
+
const exit$9 = effectIsExit(eff) ? eff : yield* exit(eff);
|
|
28139
|
+
if (exit$9._tag === "Failure") {
|
|
28140
|
+
const issueElement = findError(exit$9.cause);
|
|
28141
|
+
if (isFailure$4(issueElement)) return yield* exit$9;
|
|
28140
28142
|
const issue = new Pointer([i], issueElement.success);
|
|
28141
28143
|
if (errorsAllOption) if (issues) issues.push(issue);
|
|
28142
28144
|
else issues = [issue];
|
|
28143
28145
|
else return yield* fail$4(new Composite(ast, oinput, [issue]));
|
|
28144
|
-
} else if (exit$
|
|
28146
|
+
} else if (exit$9.value._tag === "Some") output[i] = exit$9.value.value;
|
|
28145
28147
|
else if (!isOptional(e.ast)) {
|
|
28146
28148
|
const issue = new Pointer([i], new MissingKey(e.ast.context?.annotations));
|
|
28147
28149
|
if (errorsAllOption) if (issues) issues.push(issue);
|
|
@@ -28155,15 +28157,15 @@ var Arrays = class Arrays extends Base {
|
|
|
28155
28157
|
const keyAnnotations = head.ast.context?.annotations;
|
|
28156
28158
|
for (; i < len - tail.length; i++) {
|
|
28157
28159
|
const eff = head.parser(some$2(input[i]), options);
|
|
28158
|
-
const exit$
|
|
28159
|
-
if (exit$
|
|
28160
|
-
const issueRest = findError(exit$
|
|
28161
|
-
if (isFailure$4(issueRest)) return yield* exit$
|
|
28160
|
+
const exit$5 = effectIsExit(eff) ? eff : yield* exit(eff);
|
|
28161
|
+
if (exit$5._tag === "Failure") {
|
|
28162
|
+
const issueRest = findError(exit$5.cause);
|
|
28163
|
+
if (isFailure$4(issueRest)) return yield* exit$5;
|
|
28162
28164
|
const issue = new Pointer([i], issueRest.success);
|
|
28163
28165
|
if (errorsAllOption) if (issues) issues.push(issue);
|
|
28164
28166
|
else issues = [issue];
|
|
28165
28167
|
else return yield* fail$4(new Composite(ast, oinput, [issue]));
|
|
28166
|
-
} else if (exit$
|
|
28168
|
+
} else if (exit$5.value._tag === "Some") output[i] = exit$5.value.value;
|
|
28167
28169
|
else {
|
|
28168
28170
|
const issue = new Pointer([i], new MissingKey(keyAnnotations));
|
|
28169
28171
|
if (errorsAllOption) if (issues) issues.push(issue);
|
|
@@ -28178,15 +28180,15 @@ var Arrays = class Arrays extends Base {
|
|
|
28178
28180
|
const tailj = tail[j];
|
|
28179
28181
|
const keyAnnotations = tailj.ast.context?.annotations;
|
|
28180
28182
|
const eff = tailj.parser(some$2(input[i]), options);
|
|
28181
|
-
const exit$
|
|
28182
|
-
if (exit$
|
|
28183
|
-
const issueRest = findError(exit$
|
|
28184
|
-
if (isFailure$4(issueRest)) return yield* exit$
|
|
28183
|
+
const exit$8 = effectIsExit(eff) ? eff : yield* exit(eff);
|
|
28184
|
+
if (exit$8._tag === "Failure") {
|
|
28185
|
+
const issueRest = findError(exit$8.cause);
|
|
28186
|
+
if (isFailure$4(issueRest)) return yield* exit$8;
|
|
28185
28187
|
const issue = new Pointer([i], issueRest.success);
|
|
28186
28188
|
if (errorsAllOption) if (issues) issues.push(issue);
|
|
28187
28189
|
else issues = [issue];
|
|
28188
28190
|
else return yield* fail$4(new Composite(ast, oinput, [issue]));
|
|
28189
|
-
} else if (exit$
|
|
28191
|
+
} else if (exit$8.value._tag === "Some") output[i] = exit$8.value.value;
|
|
28190
28192
|
else {
|
|
28191
28193
|
const issue = new Pointer([i], new MissingKey(keyAnnotations));
|
|
28192
28194
|
if (errorsAllOption) if (issues) issues.push(issue);
|
|
@@ -28407,17 +28409,17 @@ var Objects = class Objects extends Base {
|
|
|
28407
28409
|
const p = properties[i];
|
|
28408
28410
|
const value = Object.hasOwn(input, p.name) ? some$2(input[p.name]) : none$4();
|
|
28409
28411
|
const eff = p.parser(value, options);
|
|
28410
|
-
const exit$
|
|
28411
|
-
if (exit$
|
|
28412
|
-
const issueProp = findError(exit$
|
|
28413
|
-
if (isFailure$4(issueProp)) return yield* exit$
|
|
28412
|
+
const exit$6 = effectIsExit(eff) ? eff : yield* exit(eff);
|
|
28413
|
+
if (exit$6._tag === "Failure") {
|
|
28414
|
+
const issueProp = findError(exit$6.cause);
|
|
28415
|
+
if (isFailure$4(issueProp)) return yield* exit$6;
|
|
28414
28416
|
const issue = new Pointer([p.name], issueProp.success);
|
|
28415
28417
|
if (errorsAllOption) {
|
|
28416
28418
|
if (issues) issues.push(issue);
|
|
28417
28419
|
else issues = [issue];
|
|
28418
28420
|
continue;
|
|
28419
28421
|
} else return yield* fail$4(new Composite(ast, oinput, [issue]));
|
|
28420
|
-
} else if (exit$
|
|
28422
|
+
} else if (exit$6.value._tag === "Some") set$10(out, p.name, exit$6.value.value);
|
|
28421
28423
|
else if (!isOptional(p.type)) {
|
|
28422
28424
|
const issue = new Pointer([p.name], new MissingKey(p.type.context?.annotations));
|
|
28423
28425
|
if (errorsAllOption) {
|
|
@@ -28693,10 +28695,10 @@ var Union$1 = class Union$1 extends Base {
|
|
|
28693
28695
|
for (let i = 0; i < candidates.length; i++) {
|
|
28694
28696
|
const candidate = candidates[i];
|
|
28695
28697
|
const eff = recur(candidate)(oinput, options);
|
|
28696
|
-
const exit$
|
|
28697
|
-
if (exit$
|
|
28698
|
-
const issueResult = findError(exit$
|
|
28699
|
-
if (isFailure$4(issueResult)) return yield* exit$
|
|
28698
|
+
const exit$7 = effectIsExit(eff) ? eff : yield* exit(eff);
|
|
28699
|
+
if (exit$7._tag === "Failure") {
|
|
28700
|
+
const issueResult = findError(exit$7.cause);
|
|
28701
|
+
if (isFailure$4(issueResult)) return yield* exit$7;
|
|
28700
28702
|
if (issues) issues.push(issueResult.success);
|
|
28701
28703
|
else issues = [issueResult.success];
|
|
28702
28704
|
continue;
|
|
@@ -28705,7 +28707,7 @@ var Union$1 = class Union$1 extends Base {
|
|
|
28705
28707
|
tracking.successes.push(candidate);
|
|
28706
28708
|
return yield* fail$4(new OneOf(ast, input, tracking.successes));
|
|
28707
28709
|
}
|
|
28708
|
-
tracking.out = exit$
|
|
28710
|
+
tracking.out = exit$7.value;
|
|
28709
28711
|
tracking.successes.push(candidate);
|
|
28710
28712
|
if (!oneOf) break;
|
|
28711
28713
|
}
|
|
@@ -29411,7 +29413,7 @@ const resolveTitle = resolveTitle$1;
|
|
|
29411
29413
|
const resolveDescription = resolveDescription$1;
|
|
29412
29414
|
|
|
29413
29415
|
//#endregion
|
|
29414
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
29416
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Brand.js
|
|
29415
29417
|
/**
|
|
29416
29418
|
* This function returns a `Constructor` that **does not apply any runtime
|
|
29417
29419
|
* checks**, it just returns the provided value. It can be used to create
|
|
@@ -29433,7 +29435,7 @@ function nominal() {
|
|
|
29433
29435
|
}
|
|
29434
29436
|
|
|
29435
29437
|
//#endregion
|
|
29436
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
29438
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/PlatformError.js
|
|
29437
29439
|
/**
|
|
29438
29440
|
* @since 4.0.0
|
|
29439
29441
|
*/
|
|
@@ -29494,7 +29496,7 @@ const systemError = (options) => new PlatformError(new SystemError(options));
|
|
|
29494
29496
|
const badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
29495
29497
|
|
|
29496
29498
|
//#endregion
|
|
29497
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
29499
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Chunk.js
|
|
29498
29500
|
/**
|
|
29499
29501
|
* The `Chunk` module provides an immutable, high-performance sequence data structure
|
|
29500
29502
|
* optimized for functional programming patterns. A `Chunk` is a persistent data structure
|
|
@@ -30236,7 +30238,7 @@ const reduce$2 = reduce$3;
|
|
|
30236
30238
|
const reduceRight = reduceRight$1;
|
|
30237
30239
|
|
|
30238
30240
|
//#endregion
|
|
30239
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
30241
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Fiber.js
|
|
30240
30242
|
`${version$1}`;
|
|
30241
30243
|
const await_ = fiberAwait;
|
|
30242
30244
|
/**
|
|
@@ -30444,7 +30446,7 @@ const getCurrent = getCurrentFiber;
|
|
|
30444
30446
|
const runIn = fiberRunIn;
|
|
30445
30447
|
|
|
30446
30448
|
//#endregion
|
|
30447
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
30449
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Latch.js
|
|
30448
30450
|
/**
|
|
30449
30451
|
* Creates a new Latch unsafely.
|
|
30450
30452
|
*
|
|
@@ -30517,7 +30519,7 @@ const makeUnsafe$9 = makeLatchUnsafe;
|
|
|
30517
30519
|
const make$51 = makeLatch;
|
|
30518
30520
|
|
|
30519
30521
|
//#endregion
|
|
30520
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
30522
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/MutableList.js
|
|
30521
30523
|
/**
|
|
30522
30524
|
* A unique symbol used to represent an empty result when taking elements from a MutableList.
|
|
30523
30525
|
* This symbol is returned by `take` when the list is empty, allowing for safe type checking.
|
|
@@ -30938,7 +30940,7 @@ const filter$3 = (self, f) => {
|
|
|
30938
30940
|
const remove$6 = (self, value) => filter$3(self, (v) => v !== value);
|
|
30939
30941
|
|
|
30940
30942
|
//#endregion
|
|
30941
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
30943
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/MutableRef.js
|
|
30942
30944
|
const TypeId$49 = "~effect/MutableRef";
|
|
30943
30945
|
const MutableRefProto = {
|
|
30944
30946
|
[TypeId$49]: TypeId$49,
|
|
@@ -31023,7 +31025,7 @@ const set$9 = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
31023
31025
|
});
|
|
31024
31026
|
|
|
31025
31027
|
//#endregion
|
|
31026
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
31028
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/PubSub.js
|
|
31027
31029
|
/**
|
|
31028
31030
|
* This module provides utilities for working with publish-subscribe (PubSub) systems.
|
|
31029
31031
|
*
|
|
@@ -31257,7 +31259,7 @@ var PubSubImpl = class {
|
|
|
31257
31259
|
};
|
|
31258
31260
|
|
|
31259
31261
|
//#endregion
|
|
31260
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
31262
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Queue.js
|
|
31261
31263
|
const TypeId$47 = "~effect/Queue";
|
|
31262
31264
|
const EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
31263
31265
|
const DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -31888,7 +31890,7 @@ const finalize = (self, exit) => {
|
|
|
31888
31890
|
};
|
|
31889
31891
|
|
|
31890
31892
|
//#endregion
|
|
31891
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
31893
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/MutableHashMap.js
|
|
31892
31894
|
const TypeId$46 = "~effect/collections/MutableHashMap";
|
|
31893
31895
|
const MutableHashMapProto = {
|
|
31894
31896
|
[TypeId$46]: TypeId$46,
|
|
@@ -32255,7 +32257,7 @@ const clear$1 = (self) => {
|
|
|
32255
32257
|
const size$2 = (self) => self.backing.size;
|
|
32256
32258
|
|
|
32257
32259
|
//#endregion
|
|
32258
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
32260
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Semaphore.js
|
|
32259
32261
|
/**
|
|
32260
32262
|
* Unsafely creates a new Semaphore.
|
|
32261
32263
|
*
|
|
@@ -32330,7 +32332,7 @@ const makeUnsafe$8 = makeSemaphoreUnsafe;
|
|
|
32330
32332
|
const make$46 = makeSemaphore;
|
|
32331
32333
|
|
|
32332
32334
|
//#endregion
|
|
32333
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
32335
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Channel.js
|
|
32334
32336
|
/**
|
|
32335
32337
|
* The `Channel` module provides a powerful abstraction for bi-directional communication
|
|
32336
32338
|
* and streaming operations. A `Channel` is a nexus of I/O operations that supports both
|
|
@@ -33677,7 +33679,7 @@ const toPull$1 = /* @__PURE__ */ fnUntraced(function* (self) {
|
|
|
33677
33679
|
const toPullScoped = (self, scope) => toTransform(self)(done(), scope);
|
|
33678
33680
|
|
|
33679
33681
|
//#endregion
|
|
33680
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
33682
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/stream.js
|
|
33681
33683
|
const TypeId$44 = "~effect/Stream";
|
|
33682
33684
|
const streamVariance = {
|
|
33683
33685
|
_R: identity,
|
|
@@ -33698,7 +33700,7 @@ const fromChannel$2 = (channel) => {
|
|
|
33698
33700
|
};
|
|
33699
33701
|
|
|
33700
33702
|
//#endregion
|
|
33701
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
33703
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Sink.js
|
|
33702
33704
|
const TypeId$43 = "~effect/Sink";
|
|
33703
33705
|
const endVoid = /* @__PURE__ */ succeed$1([void 0]);
|
|
33704
33706
|
const sinkVariance = {
|
|
@@ -33904,7 +33906,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap$2(
|
|
|
33904
33906
|
const unwrap$1 = (effect) => fromChannel$1(unwrap$2(map$8(effect, toChannel$1)));
|
|
33905
33907
|
|
|
33906
33908
|
//#endregion
|
|
33907
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
33909
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/RcMap.js
|
|
33908
33910
|
/**
|
|
33909
33911
|
* @since 3.5.0
|
|
33910
33912
|
*/
|
|
@@ -34104,7 +34106,7 @@ const invalidate$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function
|
|
|
34104
34106
|
}, uninterruptible));
|
|
34105
34107
|
|
|
34106
34108
|
//#endregion
|
|
34107
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
34109
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/rcRef.js
|
|
34108
34110
|
const TypeId$41 = "~effect/RcRef";
|
|
34109
34111
|
const stateEmpty = { _tag: "Empty" };
|
|
34110
34112
|
const stateClosed = { _tag: "Closed" };
|
|
@@ -34206,7 +34208,7 @@ const invalidate$3 = (self_) => {
|
|
|
34206
34208
|
};
|
|
34207
34209
|
|
|
34208
34210
|
//#endregion
|
|
34209
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
34211
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/RcRef.js
|
|
34210
34212
|
/**
|
|
34211
34213
|
* Create an `RcRef` from an acquire `Effect`.
|
|
34212
34214
|
*
|
|
@@ -34281,7 +34283,7 @@ const get$8 = get$9;
|
|
|
34281
34283
|
const invalidate$2 = invalidate$3;
|
|
34282
34284
|
|
|
34283
34285
|
//#endregion
|
|
34284
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
34286
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Stream.js
|
|
34285
34287
|
/**
|
|
34286
34288
|
* @since 2.0.0
|
|
34287
34289
|
*/
|
|
@@ -34667,11 +34669,11 @@ const fromReadableStream = (options) => fromChannel(fromTransform$1(fnUntraced(f
|
|
|
34667
34669
|
*/
|
|
34668
34670
|
const paginate$1 = (s, f) => fromPull(sync(() => {
|
|
34669
34671
|
let state = s;
|
|
34670
|
-
let done$
|
|
34672
|
+
let done$7 = false;
|
|
34671
34673
|
return suspend$3(function loop() {
|
|
34672
|
-
if (done$
|
|
34674
|
+
if (done$7) return done();
|
|
34673
34675
|
return flatMap$2(f(state), ([a, s]) => {
|
|
34674
|
-
if (isNone(s)) done$
|
|
34676
|
+
if (isNone(s)) done$7 = true;
|
|
34675
34677
|
else state = s.value;
|
|
34676
34678
|
if (!isReadonlyArrayNonEmpty(a)) return loop();
|
|
34677
34679
|
return succeed$1(a);
|
|
@@ -35452,7 +35454,7 @@ const toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
35452
35454
|
const toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map$8(services(), (context) => toReadableStreamWith(self, context, options)));
|
|
35453
35455
|
|
|
35454
35456
|
//#endregion
|
|
35455
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
35457
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/FileSystem.js
|
|
35456
35458
|
/**
|
|
35457
35459
|
* This module provides a comprehensive file system abstraction that supports both synchronous
|
|
35458
35460
|
* and asynchronous file operations through Effect. It includes utilities for file I/O, directory
|
|
@@ -35675,7 +35677,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
|
|
|
35675
35677
|
var WatchBackend = class extends Service$1()("effect/platform/FileSystem/WatchBackend") {};
|
|
35676
35678
|
|
|
35677
35679
|
//#endregion
|
|
35678
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
35680
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Path.js
|
|
35679
35681
|
/**
|
|
35680
35682
|
* @since 4.0.0
|
|
35681
35683
|
*/
|
|
@@ -36100,7 +36102,7 @@ const posixImpl = /* @__PURE__ */ Path$1.of({
|
|
|
36100
36102
|
});
|
|
36101
36103
|
|
|
36102
36104
|
//#endregion
|
|
36103
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
36105
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/ConfigProvider.js
|
|
36104
36106
|
/**
|
|
36105
36107
|
* Creates a `Value` node representing a terminal string leaf.
|
|
36106
36108
|
*
|
|
@@ -36375,7 +36377,7 @@ function trieNodeAt(root, path) {
|
|
|
36375
36377
|
}
|
|
36376
36378
|
|
|
36377
36379
|
//#endregion
|
|
36378
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
36380
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/LogLevel.js
|
|
36379
36381
|
/**
|
|
36380
36382
|
* @since 4.0.0
|
|
36381
36383
|
* @category models
|
|
@@ -36476,7 +36478,7 @@ const isGreaterThan$1 = isLogLevelGreaterThan;
|
|
|
36476
36478
|
const isLessThan$1 = /* @__PURE__ */ isLessThan$4(Order);
|
|
36477
36479
|
|
|
36478
36480
|
//#endregion
|
|
36479
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
36481
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/hashMap.js
|
|
36480
36482
|
/**
|
|
36481
36483
|
* @since 2.0.0
|
|
36482
36484
|
*/
|
|
@@ -37205,7 +37207,7 @@ const every$1 = /* @__PURE__ */ dual(2, (self, predicate) => {
|
|
|
37205
37207
|
});
|
|
37206
37208
|
|
|
37207
37209
|
//#endregion
|
|
37208
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
37210
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/HashMap.js
|
|
37209
37211
|
/**
|
|
37210
37212
|
* @since 2.0.0
|
|
37211
37213
|
*/
|
|
@@ -38010,7 +38012,7 @@ const some = some$1;
|
|
|
38010
38012
|
const every = every$1;
|
|
38011
38013
|
|
|
38012
38014
|
//#endregion
|
|
38013
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
38015
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Struct.js
|
|
38014
38016
|
/**
|
|
38015
38017
|
* Creates an `Equivalence` for a struct by providing an `Equivalence` for each
|
|
38016
38018
|
* property. Two structs are equivalent when all their corresponding properties
|
|
@@ -38108,7 +38110,7 @@ const makeOrder = Struct$2;
|
|
|
38108
38110
|
const lambda = (f) => f;
|
|
38109
38111
|
|
|
38110
38112
|
//#endregion
|
|
38111
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
38113
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/SchemaParser.js
|
|
38112
38114
|
/**
|
|
38113
38115
|
* @since 4.0.0
|
|
38114
38116
|
*/
|
|
@@ -38346,7 +38348,7 @@ const recur$1 = /* @__PURE__ */ memoize((ast) => {
|
|
|
38346
38348
|
});
|
|
38347
38349
|
|
|
38348
38350
|
//#endregion
|
|
38349
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
38351
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/JsonPointer.js
|
|
38350
38352
|
/**
|
|
38351
38353
|
* Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901.
|
|
38352
38354
|
*
|
|
@@ -38440,7 +38442,7 @@ function escapeToken(token) {
|
|
|
38440
38442
|
}
|
|
38441
38443
|
|
|
38442
38444
|
//#endregion
|
|
38443
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
38445
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/schema/schema.js
|
|
38444
38446
|
/** @internal */
|
|
38445
38447
|
const TypeId$37 = "~effect/Schema/Schema";
|
|
38446
38448
|
const SchemaProto = {
|
|
@@ -38469,7 +38471,7 @@ function make$38(ast, options) {
|
|
|
38469
38471
|
}
|
|
38470
38472
|
|
|
38471
38473
|
//#endregion
|
|
38472
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
38474
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/schema/to-codec.js
|
|
38473
38475
|
/** @internal */
|
|
38474
38476
|
const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
|
|
38475
38477
|
const out = toCodecJsonBase(ast);
|
|
@@ -38539,7 +38541,7 @@ function makeReorder(getPriority) {
|
|
|
38539
38541
|
const unknownToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough$1(), /* @__PURE__ */ transform$3(() => null)));
|
|
38540
38542
|
|
|
38541
38543
|
//#endregion
|
|
38542
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
38544
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/internal/schema/representation.js
|
|
38543
38545
|
/** @internal */
|
|
38544
38546
|
function fromAST(ast) {
|
|
38545
38547
|
const { references, representations: schemas } = fromASTs([ast]);
|
|
@@ -39151,7 +39153,7 @@ function getPartPattern(part) {
|
|
|
39151
39153
|
}
|
|
39152
39154
|
|
|
39153
39155
|
//#endregion
|
|
39154
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
39156
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Schema.js
|
|
39155
39157
|
const TypeId$36 = TypeId$37;
|
|
39156
39158
|
/**
|
|
39157
39159
|
* An API for creating schemas for parametric types.
|
|
@@ -41634,7 +41636,7 @@ function onSerializerEnsureArray(ast) {
|
|
|
41634
41636
|
}
|
|
41635
41637
|
|
|
41636
41638
|
//#endregion
|
|
41637
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
41639
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Config.js
|
|
41638
41640
|
const TypeId$35 = "~effect/Config";
|
|
41639
41641
|
/**
|
|
41640
41642
|
* The error type produced when config loading or validation fails.
|
|
@@ -42044,7 +42046,7 @@ const Duration = /* @__PURE__ */ String$1.pipe(/* @__PURE__ */ decodeTo(Duration
|
|
|
42044
42046
|
* @category Schema
|
|
42045
42047
|
* @since 4.0.0
|
|
42046
42048
|
*/
|
|
42047
|
-
const LogLevel = /* @__PURE__ */ Literals(values$2);
|
|
42049
|
+
const LogLevel$1 = /* @__PURE__ */ Literals(values$2);
|
|
42048
42050
|
/**
|
|
42049
42051
|
* Creates a config that always fails with the given error.
|
|
42050
42052
|
*
|
|
@@ -42126,7 +42128,7 @@ function int(name) {
|
|
|
42126
42128
|
}
|
|
42127
42129
|
|
|
42128
42130
|
//#endregion
|
|
42129
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
42131
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/CliError.js
|
|
42130
42132
|
/**
|
|
42131
42133
|
* @since 4.0.0
|
|
42132
42134
|
*/
|
|
@@ -53130,7 +53132,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
53130
53132
|
}));
|
|
53131
53133
|
|
|
53132
53134
|
//#endregion
|
|
53133
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
53135
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/Primitive.js
|
|
53134
53136
|
var import_ini = /* @__PURE__ */ __toESM(require_ini(), 1);
|
|
53135
53137
|
var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
|
|
53136
53138
|
var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
|
|
@@ -53402,7 +53404,7 @@ const getTypeName = (primitive) => {
|
|
|
53402
53404
|
const getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
53403
53405
|
|
|
53404
53406
|
//#endregion
|
|
53405
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
53407
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Terminal.js
|
|
53406
53408
|
const TypeId$33 = "~effect/platform/Terminal";
|
|
53407
53409
|
const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
|
|
53408
53410
|
/**
|
|
@@ -53440,7 +53442,7 @@ const make$35 = (impl) => Terminal.of({
|
|
|
53440
53442
|
});
|
|
53441
53443
|
|
|
53442
53444
|
//#endregion
|
|
53443
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
53445
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/ansi.js
|
|
53444
53446
|
const ESC = "\x1B[";
|
|
53445
53447
|
const BEL = "\x07";
|
|
53446
53448
|
const SEP = ";";
|
|
@@ -53531,7 +53533,7 @@ const eraseLines = (rows) => {
|
|
|
53531
53533
|
};
|
|
53532
53534
|
|
|
53533
53535
|
//#endregion
|
|
53534
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
53536
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/Prompt.js
|
|
53535
53537
|
/**
|
|
53536
53538
|
* @since 4.0.0
|
|
53537
53539
|
*/
|
|
@@ -54524,7 +54526,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
54524
54526
|
};
|
|
54525
54527
|
|
|
54526
54528
|
//#endregion
|
|
54527
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
54529
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/Param.js
|
|
54528
54530
|
/**
|
|
54529
54531
|
* @internal
|
|
54530
54532
|
*
|
|
@@ -54858,7 +54860,7 @@ const FLAG_DASH_REGEXP = /^-+/;
|
|
|
54858
54860
|
* @since 4.0.0
|
|
54859
54861
|
* @category combinators
|
|
54860
54862
|
*/
|
|
54861
|
-
const withAlias$
|
|
54863
|
+
const withAlias$2 = /* @__PURE__ */ dual(2, (self, alias) => {
|
|
54862
54864
|
return transformSingle(self, (single) => makeSingle({
|
|
54863
54865
|
...single,
|
|
54864
54866
|
aliases: [...single.aliases, alias.replace(FLAG_DASH_REGEXP, "")]
|
|
@@ -55243,7 +55245,7 @@ const getParamMetadata = (param) => {
|
|
|
55243
55245
|
};
|
|
55244
55246
|
|
|
55245
55247
|
//#endregion
|
|
55246
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
55248
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/Argument.js
|
|
55247
55249
|
/**
|
|
55248
55250
|
* Creates a positional path argument.
|
|
55249
55251
|
*
|
|
@@ -55305,7 +55307,7 @@ const withDescription$2 = /* @__PURE__ */ dual(2, (self, description) => withDes
|
|
|
55305
55307
|
const withDefault$1 = withDefault$2;
|
|
55306
55308
|
|
|
55307
55309
|
//#endregion
|
|
55308
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
55310
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/CliOutput.js
|
|
55309
55311
|
/**
|
|
55310
55312
|
* Service reference for the CLI output formatter. Provides a default implementation
|
|
55311
55313
|
* that can be overridden for custom formatting or testing.
|
|
@@ -55450,6 +55452,7 @@ const renderTable = (rows, widthCap) => {
|
|
|
55450
55452
|
const col = Math.min(Math.max(...rows.map((r) => visualLength(r.left))) + 4, widthCap);
|
|
55451
55453
|
return rows.map(({ left, right }) => ` ${pad(left, col)}${right}`).join("\n");
|
|
55452
55454
|
};
|
|
55455
|
+
const formatSubcommandName = (name, alias) => alias ? `${name}, ${alias}` : name;
|
|
55453
55456
|
/**
|
|
55454
55457
|
* Internal implementation of help formatting that accepts configurable color functions.
|
|
55455
55458
|
* @internal
|
|
@@ -55493,12 +55496,26 @@ const formatHelpDocImpl = (doc, colors) => {
|
|
|
55493
55496
|
sections.push(renderTable(flagRows, 30));
|
|
55494
55497
|
sections.push("");
|
|
55495
55498
|
}
|
|
55499
|
+
if (doc.globalFlags && doc.globalFlags.length > 0) {
|
|
55500
|
+
sections.push(colors.bold("GLOBAL FLAGS"));
|
|
55501
|
+
const globalFlagRows = doc.globalFlags.map((flag) => {
|
|
55502
|
+
const names = [];
|
|
55503
|
+
names.push(colors.green(`--${flag.name}`));
|
|
55504
|
+
for (const alias of flag.aliases) names.push(colors.green(alias));
|
|
55505
|
+
return {
|
|
55506
|
+
left: names.join(", ") + (flag.type !== "boolean" ? ` ${colors.dim(flag.type)}` : ""),
|
|
55507
|
+
right: flag.description ?? ""
|
|
55508
|
+
};
|
|
55509
|
+
});
|
|
55510
|
+
sections.push(renderTable(globalFlagRows, 30));
|
|
55511
|
+
sections.push("");
|
|
55512
|
+
}
|
|
55496
55513
|
if (doc.subcommands && doc.subcommands.length > 0) {
|
|
55497
55514
|
const ungrouped = doc.subcommands.find((group) => group.group === void 0);
|
|
55498
55515
|
if (ungrouped) {
|
|
55499
55516
|
sections.push(colors.bold("SUBCOMMANDS"));
|
|
55500
55517
|
sections.push(renderTable(ungrouped.commands.map((sub) => ({
|
|
55501
|
-
left: colors.cyan(sub.name),
|
|
55518
|
+
left: colors.cyan(formatSubcommandName(sub.name, sub.alias)),
|
|
55502
55519
|
right: sub.shortDescription ?? sub.description
|
|
55503
55520
|
})), 20));
|
|
55504
55521
|
if (doc.subcommands.length > 1) sections.push("");
|
|
@@ -55507,7 +55524,7 @@ const formatHelpDocImpl = (doc, colors) => {
|
|
|
55507
55524
|
if (group.group === void 0) continue;
|
|
55508
55525
|
sections.push(colors.bold(`${group.group}:`));
|
|
55509
55526
|
sections.push(renderTable(group.commands.map((sub) => ({
|
|
55510
|
-
left: colors.cyan(sub.name),
|
|
55527
|
+
left: colors.cyan(formatSubcommandName(sub.name, sub.alias)),
|
|
55511
55528
|
right: sub.shortDescription ?? sub.description
|
|
55512
55529
|
})), 20));
|
|
55513
55530
|
sections.push("");
|
|
@@ -55533,7 +55550,7 @@ const formatHelpDocImpl = (doc, colors) => {
|
|
|
55533
55550
|
};
|
|
55534
55551
|
|
|
55535
55552
|
//#endregion
|
|
55536
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
55553
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Console.js
|
|
55537
55554
|
/**
|
|
55538
55555
|
* A reference to the current console service in the Effect system.
|
|
55539
55556
|
*
|
|
@@ -55626,7 +55643,257 @@ const log = (...args) => consoleWith((console) => sync$1(() => {
|
|
|
55626
55643
|
}));
|
|
55627
55644
|
|
|
55628
55645
|
//#endregion
|
|
55629
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
55646
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/Flag.js
|
|
55647
|
+
/**
|
|
55648
|
+
* Creates a boolean flag that can be enabled or disabled.
|
|
55649
|
+
*
|
|
55650
|
+
* @example
|
|
55651
|
+
* ```ts
|
|
55652
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55653
|
+
*
|
|
55654
|
+
* const verboseFlag = Flag.boolean("verbose")
|
|
55655
|
+
* // Usage: --verbose (true) or --no-verbose (false)
|
|
55656
|
+
* ```
|
|
55657
|
+
*
|
|
55658
|
+
* @since 4.0.0
|
|
55659
|
+
* @category constructors
|
|
55660
|
+
*/
|
|
55661
|
+
const boolean = (name) => boolean$1(flagKind, name);
|
|
55662
|
+
/**
|
|
55663
|
+
* Creates an integer flag that accepts whole number input.
|
|
55664
|
+
*
|
|
55665
|
+
* @example
|
|
55666
|
+
* ```ts
|
|
55667
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55668
|
+
*
|
|
55669
|
+
* const portFlag = Flag.integer("port")
|
|
55670
|
+
* // Usage: --port 8080
|
|
55671
|
+
* ```
|
|
55672
|
+
*
|
|
55673
|
+
* @since 4.0.0
|
|
55674
|
+
* @category constructors
|
|
55675
|
+
*/
|
|
55676
|
+
const integer = (name) => integer$1(flagKind, name);
|
|
55677
|
+
/**
|
|
55678
|
+
* Constructs option parameters that represent a choice between several inputs.
|
|
55679
|
+
* Each tuple maps a string flag value to an associated typed value.
|
|
55680
|
+
*
|
|
55681
|
+
* @example
|
|
55682
|
+
* ```ts
|
|
55683
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55684
|
+
*
|
|
55685
|
+
* // simple enum like choice mapping directly to string union
|
|
55686
|
+
* const color = Flag.choice("color", ["red", "green", "blue"])
|
|
55687
|
+
*
|
|
55688
|
+
* // choice with custom value mapping
|
|
55689
|
+
* const logLevel = Flag.choiceWithValue("log-level", [
|
|
55690
|
+
* ["debug", "Debug" as const],
|
|
55691
|
+
* ["info", "Info" as const],
|
|
55692
|
+
* ["error", "Error" as const]
|
|
55693
|
+
* ])
|
|
55694
|
+
* ```
|
|
55695
|
+
*
|
|
55696
|
+
* @since 4.0.0
|
|
55697
|
+
* @category constructors
|
|
55698
|
+
*/
|
|
55699
|
+
const choiceWithValue = (name, choices) => choiceWithValue$1(flagKind, name, choices);
|
|
55700
|
+
/**
|
|
55701
|
+
* Simpler variant of `choiceWithValue` which maps each string to itself.
|
|
55702
|
+
*
|
|
55703
|
+
* @since 4.0.0
|
|
55704
|
+
* @category constructors
|
|
55705
|
+
*/
|
|
55706
|
+
const choice = (name, choices) => choice$1(flagKind, name, choices);
|
|
55707
|
+
/**
|
|
55708
|
+
* Creates a file path flag that accepts file paths with optional existence validation.
|
|
55709
|
+
*
|
|
55710
|
+
* @example
|
|
55711
|
+
* ```ts
|
|
55712
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55713
|
+
*
|
|
55714
|
+
* // Basic file flag
|
|
55715
|
+
* const inputFlag = Flag.file("input")
|
|
55716
|
+
* // Usage: --input ./data.json
|
|
55717
|
+
*
|
|
55718
|
+
* // File that must exist
|
|
55719
|
+
* const configFlag = Flag.file("config", { mustExist: true })
|
|
55720
|
+
* // Usage: --config ./config.yaml (file must exist)
|
|
55721
|
+
* ```
|
|
55722
|
+
*
|
|
55723
|
+
* @since 4.0.0
|
|
55724
|
+
* @category constructors
|
|
55725
|
+
*/
|
|
55726
|
+
const file$1 = (name, options) => file$2(flagKind, name, options);
|
|
55727
|
+
/**
|
|
55728
|
+
* Creates a directory path flag that accepts directory paths with optional existence validation.
|
|
55729
|
+
*
|
|
55730
|
+
* @example
|
|
55731
|
+
* ```ts
|
|
55732
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55733
|
+
*
|
|
55734
|
+
* // Basic directory flag
|
|
55735
|
+
* const outputFlag = Flag.directory("output")
|
|
55736
|
+
* // Usage: --output ./build
|
|
55737
|
+
*
|
|
55738
|
+
* // Directory that must exist
|
|
55739
|
+
* const sourceFlag = Flag.directory("source", { mustExist: true })
|
|
55740
|
+
* // Usage: --source ./src (directory must exist)
|
|
55741
|
+
* ```
|
|
55742
|
+
*
|
|
55743
|
+
* @since 4.0.0
|
|
55744
|
+
* @category constructors
|
|
55745
|
+
*/
|
|
55746
|
+
const directory = (name, options) => directory$1(flagKind, name, options);
|
|
55747
|
+
/**
|
|
55748
|
+
* Creates an empty sentinel flag that always fails to parse.
|
|
55749
|
+
* This is useful for creating placeholder flags or for combinators.
|
|
55750
|
+
*
|
|
55751
|
+
* @example
|
|
55752
|
+
* ```ts
|
|
55753
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55754
|
+
*
|
|
55755
|
+
* // Used as a placeholder in flag combinators
|
|
55756
|
+
* const conditionalFlag = true ? Flag.string("value") : Flag.none
|
|
55757
|
+
* ```
|
|
55758
|
+
*
|
|
55759
|
+
* @since 4.0.0
|
|
55760
|
+
* @category constructors
|
|
55761
|
+
*/
|
|
55762
|
+
const none = /* @__PURE__ */ none$2(flagKind);
|
|
55763
|
+
/**
|
|
55764
|
+
* Adds an alias to a flag, allowing it to be referenced by multiple names.
|
|
55765
|
+
*
|
|
55766
|
+
* @example
|
|
55767
|
+
* ```ts
|
|
55768
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55769
|
+
*
|
|
55770
|
+
* // Flag can be used as both --verbose and -v
|
|
55771
|
+
* const verboseFlag = Flag.boolean("verbose").pipe(
|
|
55772
|
+
* Flag.withAlias("v")
|
|
55773
|
+
* )
|
|
55774
|
+
*
|
|
55775
|
+
* // Multiple aliases can be chained
|
|
55776
|
+
* const helpFlag = Flag.boolean("help").pipe(
|
|
55777
|
+
* Flag.withAlias("h"),
|
|
55778
|
+
* Flag.withAlias("?")
|
|
55779
|
+
* )
|
|
55780
|
+
* ```
|
|
55781
|
+
*
|
|
55782
|
+
* @since 4.0.0
|
|
55783
|
+
* @category aliasing
|
|
55784
|
+
*/
|
|
55785
|
+
const withAlias$1 = /* @__PURE__ */ dual(2, (self, alias) => withAlias$2(self, alias));
|
|
55786
|
+
/**
|
|
55787
|
+
* Adds a description to a flag for help documentation.
|
|
55788
|
+
*
|
|
55789
|
+
* @example
|
|
55790
|
+
* ```ts
|
|
55791
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55792
|
+
*
|
|
55793
|
+
* const portFlag = Flag.integer("port").pipe(
|
|
55794
|
+
* Flag.withDescription("The port number to listen on")
|
|
55795
|
+
* )
|
|
55796
|
+
*
|
|
55797
|
+
* const configFlag = Flag.file("config").pipe(
|
|
55798
|
+
* Flag.withDescription("Path to the configuration file")
|
|
55799
|
+
* )
|
|
55800
|
+
* ```
|
|
55801
|
+
*
|
|
55802
|
+
* @since 4.0.0
|
|
55803
|
+
* @category help documentation
|
|
55804
|
+
*/
|
|
55805
|
+
const withDescription$1 = /* @__PURE__ */ dual(2, (self, description) => withDescription$3(self, description));
|
|
55806
|
+
/**
|
|
55807
|
+
* Makes a flag optional, returning an Option type that can be None if not provided.
|
|
55808
|
+
*
|
|
55809
|
+
* @example
|
|
55810
|
+
* ```ts
|
|
55811
|
+
* import { Effect, Option } from "effect"
|
|
55812
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55813
|
+
*
|
|
55814
|
+
* const optionalPort = Flag.optional(Flag.integer("port"))
|
|
55815
|
+
*
|
|
55816
|
+
* const program = Effect.gen(function*() {
|
|
55817
|
+
* const [leftover, port] = yield* optionalPort.parse({
|
|
55818
|
+
* arguments: [],
|
|
55819
|
+
* flags: { "port": ["4000"] }
|
|
55820
|
+
* })
|
|
55821
|
+
* if (Option.isSome(port)) {
|
|
55822
|
+
* console.log("Port specified:", port.value)
|
|
55823
|
+
* } else {
|
|
55824
|
+
* console.log("No port specified, using default")
|
|
55825
|
+
* }
|
|
55826
|
+
* })
|
|
55827
|
+
* ```
|
|
55828
|
+
*
|
|
55829
|
+
* @since 4.0.0
|
|
55830
|
+
* @category optionality
|
|
55831
|
+
*/
|
|
55832
|
+
const optional = (param) => optional$1(param);
|
|
55833
|
+
/**
|
|
55834
|
+
* Provides a default value for a flag when it's not specified.
|
|
55835
|
+
*
|
|
55836
|
+
* @example
|
|
55837
|
+
* ```ts
|
|
55838
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55839
|
+
*
|
|
55840
|
+
* const portFlag = Flag.integer("port").pipe(
|
|
55841
|
+
* Flag.withDefault(8080)
|
|
55842
|
+
* )
|
|
55843
|
+
* // If --port is not provided, defaults to 8080
|
|
55844
|
+
*
|
|
55845
|
+
* const hostFlag = Flag.string("host").pipe(
|
|
55846
|
+
* Flag.withDefault("localhost")
|
|
55847
|
+
* )
|
|
55848
|
+
* // If --host is not provided, defaults to "localhost"
|
|
55849
|
+
* ```
|
|
55850
|
+
*
|
|
55851
|
+
* @since 4.0.0
|
|
55852
|
+
* @category optionality
|
|
55853
|
+
*/
|
|
55854
|
+
const withDefault = withDefault$2;
|
|
55855
|
+
/**
|
|
55856
|
+
* Adds a fallback config that is loaded when a required flag is missing.
|
|
55857
|
+
*
|
|
55858
|
+
* @example
|
|
55859
|
+
* ```ts
|
|
55860
|
+
* import { Config } from "effect"
|
|
55861
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55862
|
+
*
|
|
55863
|
+
* const verbose = Flag.boolean("verbose").pipe(
|
|
55864
|
+
* Flag.withFallbackConfig(Config.boolean("VERBOSE"))
|
|
55865
|
+
* )
|
|
55866
|
+
* ```
|
|
55867
|
+
*
|
|
55868
|
+
* @since 4.0.0
|
|
55869
|
+
* @category combinators
|
|
55870
|
+
*/
|
|
55871
|
+
const withFallbackConfig = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig$1(self, config));
|
|
55872
|
+
/**
|
|
55873
|
+
* Transforms the parsed value of a flag using a mapping function.
|
|
55874
|
+
*
|
|
55875
|
+
* @example
|
|
55876
|
+
* ```ts
|
|
55877
|
+
* import { Flag } from "effect/unstable/cli"
|
|
55878
|
+
*
|
|
55879
|
+
* // Convert string to uppercase
|
|
55880
|
+
* const nameFlag = Flag.string("name").pipe(
|
|
55881
|
+
* Flag.map((name) => name.toUpperCase())
|
|
55882
|
+
* )
|
|
55883
|
+
*
|
|
55884
|
+
* // Convert port to URL
|
|
55885
|
+
* const urlFlag = Flag.integer("port").pipe(
|
|
55886
|
+
* Flag.map((port) => `http://localhost:${port}`)
|
|
55887
|
+
* )
|
|
55888
|
+
* ```
|
|
55889
|
+
*
|
|
55890
|
+
* @since 4.0.0
|
|
55891
|
+
* @category mapping
|
|
55892
|
+
*/
|
|
55893
|
+
const map$1 = /* @__PURE__ */ dual(2, (self, f) => map$2(self, f));
|
|
55894
|
+
|
|
55895
|
+
//#endregion
|
|
55896
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/config.js
|
|
55630
55897
|
const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
55631
55898
|
/**
|
|
55632
55899
|
* Parses a Command.Config into a ConfigInternal.
|
|
@@ -55696,7 +55963,7 @@ const reconstructTree = (tree, results) => {
|
|
|
55696
55963
|
};
|
|
55697
55964
|
|
|
55698
55965
|
//#endregion
|
|
55699
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
55966
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/command.js
|
|
55700
55967
|
/**
|
|
55701
55968
|
* Command Implementation
|
|
55702
55969
|
* ======================
|
|
@@ -55726,6 +55993,7 @@ const makeCommand = (options) => {
|
|
|
55726
55993
|
const service = options.service ?? Service$1(`${TypeId$30}/${options.name}`);
|
|
55727
55994
|
const config = options.config;
|
|
55728
55995
|
const annotations = options.annotations ?? empty$14();
|
|
55996
|
+
const globalFlags = options.globalFlags ?? [];
|
|
55729
55997
|
const subcommands = options.subcommands ?? [];
|
|
55730
55998
|
const handle = (input, commandPath) => isNotUndefined(options.handle) ? options.handle(input, commandPath) : fail$4(new ShowHelp({ commandPath }));
|
|
55731
55999
|
const parse = options.parse ?? fnUntraced(function* (input) {
|
|
@@ -55774,6 +56042,7 @@ const makeCommand = (options) => {
|
|
|
55774
56042
|
group: group.group,
|
|
55775
56043
|
commands: map$12(group.commands, (subcommand) => ({
|
|
55776
56044
|
name: subcommand.name,
|
|
56045
|
+
alias: subcommand.alias,
|
|
55777
56046
|
shortDescription: subcommand.shortDescription,
|
|
55778
56047
|
description: subcommand.description ?? ""
|
|
55779
56048
|
}))
|
|
@@ -55794,6 +56063,7 @@ const makeCommand = (options) => {
|
|
|
55794
56063
|
name: options.name,
|
|
55795
56064
|
examples: options.examples ?? [],
|
|
55796
56065
|
annotations,
|
|
56066
|
+
globalFlags,
|
|
55797
56067
|
subcommands,
|
|
55798
56068
|
config,
|
|
55799
56069
|
service,
|
|
@@ -55801,7 +56071,8 @@ const makeCommand = (options) => {
|
|
|
55801
56071
|
handle,
|
|
55802
56072
|
buildHelpDoc,
|
|
55803
56073
|
...isNotUndefined(options.description) ? { description: options.description } : {},
|
|
55804
|
-
...isNotUndefined(options.shortDescription) ? { shortDescription: options.shortDescription } : {}
|
|
56074
|
+
...isNotUndefined(options.shortDescription) ? { shortDescription: options.shortDescription } : {},
|
|
56075
|
+
...isNotUndefined(options.alias) ? { alias: options.alias } : {}
|
|
55805
56076
|
});
|
|
55806
56077
|
};
|
|
55807
56078
|
/**
|
|
@@ -55846,26 +56117,9 @@ const checkForDuplicateFlags = (parent, subcommands) => {
|
|
|
55846
56117
|
}
|
|
55847
56118
|
}
|
|
55848
56119
|
};
|
|
55849
|
-
/**
|
|
55850
|
-
* Helper function to get help documentation for a specific command path.
|
|
55851
|
-
* Navigates through the command hierarchy to find the right command.
|
|
55852
|
-
*/
|
|
55853
|
-
const getHelpForCommandPath = (command, commandPath) => {
|
|
55854
|
-
let currentCommand = command;
|
|
55855
|
-
for (let i = 1; i < commandPath.length; i++) {
|
|
55856
|
-
const subcommandName = commandPath[i];
|
|
55857
|
-
let subcommand = void 0;
|
|
55858
|
-
for (const group of currentCommand.subcommands) {
|
|
55859
|
-
subcommand = group.commands.find((sub) => sub.name === subcommandName);
|
|
55860
|
-
if (subcommand) break;
|
|
55861
|
-
}
|
|
55862
|
-
if (subcommand) currentCommand = subcommand;
|
|
55863
|
-
}
|
|
55864
|
-
return toImpl(currentCommand).buildHelpDoc(commandPath);
|
|
55865
|
-
};
|
|
55866
56120
|
|
|
55867
56121
|
//#endregion
|
|
55868
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
56122
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
|
|
55869
56123
|
const toFlagType = (single) => {
|
|
55870
56124
|
switch (single.primitiveType._tag) {
|
|
55871
56125
|
case "Boolean": return { _tag: "Boolean" };
|
|
@@ -55948,7 +56202,7 @@ const fromCommand = (cmd) => {
|
|
|
55948
56202
|
};
|
|
55949
56203
|
|
|
55950
56204
|
//#endregion
|
|
55951
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
56205
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
|
|
55952
56206
|
const escapeForBash = (s) => s.replace(/'/g, "'\\''");
|
|
55953
56207
|
const sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
55954
56208
|
const flagNamesForWordlist = (flag) => {
|
|
@@ -56100,7 +56354,7 @@ const generate$3 = (executableName, descriptor) => {
|
|
|
56100
56354
|
};
|
|
56101
56355
|
|
|
56102
56356
|
//#endregion
|
|
56103
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
56357
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
|
|
56104
56358
|
const escapeFishString = (s) => s.replace(/'/g, "\\'");
|
|
56105
56359
|
/**
|
|
56106
56360
|
* Build a Fish condition that checks the current subcommand context.
|
|
@@ -56239,7 +56493,7 @@ const generate$2 = (executableName, descriptor) => {
|
|
|
56239
56493
|
};
|
|
56240
56494
|
|
|
56241
56495
|
//#endregion
|
|
56242
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
56496
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
|
|
56243
56497
|
const escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
56244
56498
|
const sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
56245
56499
|
/**
|
|
@@ -56377,7 +56631,7 @@ const generate$1 = (executableName, descriptor) => {
|
|
|
56377
56631
|
};
|
|
56378
56632
|
|
|
56379
56633
|
//#endregion
|
|
56380
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
56634
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/completions/Completions.js
|
|
56381
56635
|
/**
|
|
56382
56636
|
* Top-level completions dispatcher.
|
|
56383
56637
|
*
|
|
@@ -56396,7 +56650,210 @@ const generate = (executableName, shell, descriptor) => {
|
|
|
56396
56650
|
};
|
|
56397
56651
|
|
|
56398
56652
|
//#endregion
|
|
56399
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
56653
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/help.js
|
|
56654
|
+
/**
|
|
56655
|
+
* Help Documentation
|
|
56656
|
+
* ================
|
|
56657
|
+
*
|
|
56658
|
+
* Internal helpers for generating help documentation.
|
|
56659
|
+
* Extracted from command.ts to avoid circular dependencies.
|
|
56660
|
+
*/
|
|
56661
|
+
const dedupeGlobalFlags = (flags) => {
|
|
56662
|
+
const seen = /* @__PURE__ */ new Set();
|
|
56663
|
+
const deduped = [];
|
|
56664
|
+
for (const flag of flags) {
|
|
56665
|
+
if (seen.has(flag)) continue;
|
|
56666
|
+
seen.add(flag);
|
|
56667
|
+
deduped.push(flag);
|
|
56668
|
+
}
|
|
56669
|
+
return deduped;
|
|
56670
|
+
};
|
|
56671
|
+
/**
|
|
56672
|
+
* Returns the resolved command lineage for the provided path.
|
|
56673
|
+
* Includes the root command as the first element.
|
|
56674
|
+
*/
|
|
56675
|
+
const getCommandsForCommandPath = (command, commandPath) => {
|
|
56676
|
+
const commands = [command];
|
|
56677
|
+
let currentCommand = command;
|
|
56678
|
+
for (let i = 1; i < commandPath.length; i++) {
|
|
56679
|
+
const subcommandName = commandPath[i];
|
|
56680
|
+
let subcommand = void 0;
|
|
56681
|
+
for (const group of currentCommand.subcommands) {
|
|
56682
|
+
subcommand = group.commands.find((sub) => sub.name === subcommandName);
|
|
56683
|
+
if (subcommand) break;
|
|
56684
|
+
}
|
|
56685
|
+
if (!subcommand) break;
|
|
56686
|
+
commands.push(subcommand);
|
|
56687
|
+
currentCommand = subcommand;
|
|
56688
|
+
}
|
|
56689
|
+
return commands;
|
|
56690
|
+
};
|
|
56691
|
+
/**
|
|
56692
|
+
* Returns active global flags for a command path.
|
|
56693
|
+
* Built-ins are prepended and declarations are collected root -> leaf.
|
|
56694
|
+
*/
|
|
56695
|
+
const getGlobalFlagsForCommandPath = (command, commandPath, builtIns) => {
|
|
56696
|
+
const declared = getCommandsForCommandPath(command, commandPath).flatMap((current) => toImpl(current).globalFlags);
|
|
56697
|
+
return dedupeGlobalFlags([...builtIns, ...declared]);
|
|
56698
|
+
};
|
|
56699
|
+
const collectDeclaredGlobalFlags = (command) => {
|
|
56700
|
+
const collected = [];
|
|
56701
|
+
const visit = (current) => {
|
|
56702
|
+
const impl = toImpl(current);
|
|
56703
|
+
for (const flag of impl.globalFlags) collected.push(flag);
|
|
56704
|
+
for (const group of current.subcommands) for (const subcommand of group.commands) visit(subcommand);
|
|
56705
|
+
};
|
|
56706
|
+
visit(command);
|
|
56707
|
+
return dedupeGlobalFlags(collected);
|
|
56708
|
+
};
|
|
56709
|
+
/**
|
|
56710
|
+
* Returns all global flags declared in a command tree.
|
|
56711
|
+
* Built-ins are prepended and command declarations are deduplicated by identity.
|
|
56712
|
+
*/
|
|
56713
|
+
const getGlobalFlagsForCommandTree = (command, builtIns) => dedupeGlobalFlags([...builtIns, ...collectDeclaredGlobalFlags(command)]);
|
|
56714
|
+
/**
|
|
56715
|
+
* Helper function to get help documentation for a specific command path.
|
|
56716
|
+
* Navigates through the command hierarchy to find the right command.
|
|
56717
|
+
* Reads active global flags for the path and includes them in the help doc.
|
|
56718
|
+
*/
|
|
56719
|
+
const getHelpForCommandPath = (command, commandPath, builtIns) => gen(function* () {
|
|
56720
|
+
const commands = getCommandsForCommandPath(command, commandPath);
|
|
56721
|
+
const baseDoc = toImpl(commands.length > 0 ? commands[commands.length - 1] : command).buildHelpDoc(commandPath);
|
|
56722
|
+
const flags = getGlobalFlagsForCommandPath(command, commandPath, builtIns);
|
|
56723
|
+
const globalFlagDocs = [];
|
|
56724
|
+
for (const flag of flags) {
|
|
56725
|
+
const singles = extractSingleParams(flag.flag);
|
|
56726
|
+
for (const single of singles) {
|
|
56727
|
+
const formattedAliases = single.aliases.map((alias) => alias.length === 1 ? `-${alias}` : `--${alias}`);
|
|
56728
|
+
globalFlagDocs.push({
|
|
56729
|
+
name: single.name,
|
|
56730
|
+
aliases: formattedAliases,
|
|
56731
|
+
type: single.typeName ?? getTypeName(single.primitiveType),
|
|
56732
|
+
description: single.description,
|
|
56733
|
+
required: false
|
|
56734
|
+
});
|
|
56735
|
+
}
|
|
56736
|
+
}
|
|
56737
|
+
return {
|
|
56738
|
+
...baseDoc,
|
|
56739
|
+
globalFlags: globalFlagDocs
|
|
56740
|
+
};
|
|
56741
|
+
});
|
|
56742
|
+
|
|
56743
|
+
//#endregion
|
|
56744
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/GlobalFlag.js
|
|
56745
|
+
/**
|
|
56746
|
+
* @since 4.0.0
|
|
56747
|
+
*/
|
|
56748
|
+
/**
|
|
56749
|
+
* Creates an Action flag that performs a side effect and exits.
|
|
56750
|
+
*
|
|
56751
|
+
* @since 4.0.0
|
|
56752
|
+
* @category constructors
|
|
56753
|
+
*/
|
|
56754
|
+
const action = (options) => ({
|
|
56755
|
+
_tag: "Action",
|
|
56756
|
+
flag: options.flag,
|
|
56757
|
+
run: options.run
|
|
56758
|
+
});
|
|
56759
|
+
/**
|
|
56760
|
+
* Creates a Setting flag that configures the command handler's environment.
|
|
56761
|
+
*
|
|
56762
|
+
* @since 4.0.0
|
|
56763
|
+
* @category constructors
|
|
56764
|
+
*/
|
|
56765
|
+
const setting = (id) => (options) => {
|
|
56766
|
+
settingIdCounter += 1;
|
|
56767
|
+
const ref = Service$1(`effect/unstable/cli/GlobalFlag/${id}/${settingIdCounter}`);
|
|
56768
|
+
return Object.assign(ref, {
|
|
56769
|
+
_tag: "Setting",
|
|
56770
|
+
id,
|
|
56771
|
+
flag: options.flag
|
|
56772
|
+
});
|
|
56773
|
+
};
|
|
56774
|
+
let settingIdCounter = 0;
|
|
56775
|
+
/**
|
|
56776
|
+
* The `--help` / `-h` global flag.
|
|
56777
|
+
* Shows help documentation for the command.
|
|
56778
|
+
*
|
|
56779
|
+
* @since 4.0.0
|
|
56780
|
+
* @category references
|
|
56781
|
+
*/
|
|
56782
|
+
const Help = /* @__PURE__ */ action({
|
|
56783
|
+
flag: /* @__PURE__ */ boolean("help").pipe(/* @__PURE__ */ withAlias$1("h"), /* @__PURE__ */ withDescription$1("Show help information")),
|
|
56784
|
+
run: (_, { command, commandPath }) => gen(function* () {
|
|
56785
|
+
const formatter = yield* Formatter;
|
|
56786
|
+
const helpDoc = yield* getHelpForCommandPath(command, commandPath, BuiltIns);
|
|
56787
|
+
yield* log(formatter.formatHelpDoc(helpDoc));
|
|
56788
|
+
})
|
|
56789
|
+
});
|
|
56790
|
+
/**
|
|
56791
|
+
* The `--version` global flag.
|
|
56792
|
+
* Shows version information for the command.
|
|
56793
|
+
*
|
|
56794
|
+
* @since 4.0.0
|
|
56795
|
+
* @category references
|
|
56796
|
+
*/
|
|
56797
|
+
const Version = /* @__PURE__ */ action({
|
|
56798
|
+
flag: /* @__PURE__ */ boolean("version").pipe(/* @__PURE__ */ withDescription$1("Show version information")),
|
|
56799
|
+
run: (_, { command, version }) => gen(function* () {
|
|
56800
|
+
const formatter = yield* Formatter;
|
|
56801
|
+
yield* log(formatter.formatVersion(command.name, version));
|
|
56802
|
+
})
|
|
56803
|
+
});
|
|
56804
|
+
/**
|
|
56805
|
+
* The `--completions` global flag.
|
|
56806
|
+
* Prints shell completion script for the given shell.
|
|
56807
|
+
*
|
|
56808
|
+
* @since 4.0.0
|
|
56809
|
+
* @category references
|
|
56810
|
+
*/
|
|
56811
|
+
const Completions = /* @__PURE__ */ action({
|
|
56812
|
+
flag: /* @__PURE__ */ choice("completions", [
|
|
56813
|
+
"bash",
|
|
56814
|
+
"zsh",
|
|
56815
|
+
"fish",
|
|
56816
|
+
"sh"
|
|
56817
|
+
]).pipe(optional, /* @__PURE__ */ map$1((v) => map$14(v, (s) => s === "sh" ? "bash" : s)), /* @__PURE__ */ withDescription$1("Print shell completion script")),
|
|
56818
|
+
run: (shell, { command }) => gen(function* () {
|
|
56819
|
+
if (isNone(shell)) return;
|
|
56820
|
+
const descriptor = fromCommand(command);
|
|
56821
|
+
yield* log(generate(command.name, shell.value, descriptor));
|
|
56822
|
+
})
|
|
56823
|
+
});
|
|
56824
|
+
/**
|
|
56825
|
+
* The `--log-level` global flag.
|
|
56826
|
+
* Sets the minimum log level for the command.
|
|
56827
|
+
*
|
|
56828
|
+
* @since 4.0.0
|
|
56829
|
+
* @category references
|
|
56830
|
+
*/
|
|
56831
|
+
const LogLevel = /* @__PURE__ */ setting("log-level")({ flag: /* @__PURE__ */ choiceWithValue("log-level", [
|
|
56832
|
+
["all", "All"],
|
|
56833
|
+
["trace", "Trace"],
|
|
56834
|
+
["debug", "Debug"],
|
|
56835
|
+
["info", "Info"],
|
|
56836
|
+
["warn", "Warn"],
|
|
56837
|
+
["warning", "Warn"],
|
|
56838
|
+
["error", "Error"],
|
|
56839
|
+
["fatal", "Fatal"],
|
|
56840
|
+
["none", "None"]
|
|
56841
|
+
]).pipe(optional, /* @__PURE__ */ withDescription$1("Sets the minimum log level")) });
|
|
56842
|
+
/**
|
|
56843
|
+
* Built-in global flags in default precedence order.
|
|
56844
|
+
*
|
|
56845
|
+
* @since 4.0.0
|
|
56846
|
+
* @category references
|
|
56847
|
+
*/
|
|
56848
|
+
const BuiltIns = [
|
|
56849
|
+
Help,
|
|
56850
|
+
Version,
|
|
56851
|
+
Completions,
|
|
56852
|
+
LogLevel
|
|
56853
|
+
];
|
|
56854
|
+
|
|
56855
|
+
//#endregion
|
|
56856
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/lexer.js
|
|
56400
56857
|
/** @internal */
|
|
56401
56858
|
function lex(argv) {
|
|
56402
56859
|
const endIndex = argv.indexOf("--");
|
|
@@ -56448,7 +56905,7 @@ const lexTokens = (args) => {
|
|
|
56448
56905
|
};
|
|
56449
56906
|
|
|
56450
56907
|
//#endregion
|
|
56451
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
56908
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
|
|
56452
56909
|
/**
|
|
56453
56910
|
* Simple Levenshtein distance implementation (small N, no perf worries)
|
|
56454
56911
|
*/
|
|
@@ -56477,311 +56934,7 @@ const suggest = (input, candidates) => {
|
|
|
56477
56934
|
};
|
|
56478
56935
|
|
|
56479
56936
|
//#endregion
|
|
56480
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
56481
|
-
/**
|
|
56482
|
-
* Creates a boolean flag that can be enabled or disabled.
|
|
56483
|
-
*
|
|
56484
|
-
* @example
|
|
56485
|
-
* ```ts
|
|
56486
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56487
|
-
*
|
|
56488
|
-
* const verboseFlag = Flag.boolean("verbose")
|
|
56489
|
-
* // Usage: --verbose (true) or --no-verbose (false)
|
|
56490
|
-
* ```
|
|
56491
|
-
*
|
|
56492
|
-
* @since 4.0.0
|
|
56493
|
-
* @category constructors
|
|
56494
|
-
*/
|
|
56495
|
-
const boolean = (name) => boolean$1(flagKind, name);
|
|
56496
|
-
/**
|
|
56497
|
-
* Creates an integer flag that accepts whole number input.
|
|
56498
|
-
*
|
|
56499
|
-
* @example
|
|
56500
|
-
* ```ts
|
|
56501
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56502
|
-
*
|
|
56503
|
-
* const portFlag = Flag.integer("port")
|
|
56504
|
-
* // Usage: --port 8080
|
|
56505
|
-
* ```
|
|
56506
|
-
*
|
|
56507
|
-
* @since 4.0.0
|
|
56508
|
-
* @category constructors
|
|
56509
|
-
*/
|
|
56510
|
-
const integer = (name) => integer$1(flagKind, name);
|
|
56511
|
-
/**
|
|
56512
|
-
* Constructs option parameters that represent a choice between several inputs.
|
|
56513
|
-
* Each tuple maps a string flag value to an associated typed value.
|
|
56514
|
-
*
|
|
56515
|
-
* @example
|
|
56516
|
-
* ```ts
|
|
56517
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56518
|
-
*
|
|
56519
|
-
* // simple enum like choice mapping directly to string union
|
|
56520
|
-
* const color = Flag.choice("color", ["red", "green", "blue"])
|
|
56521
|
-
*
|
|
56522
|
-
* // choice with custom value mapping
|
|
56523
|
-
* const logLevel = Flag.choiceWithValue("log-level", [
|
|
56524
|
-
* ["debug", "Debug" as const],
|
|
56525
|
-
* ["info", "Info" as const],
|
|
56526
|
-
* ["error", "Error" as const]
|
|
56527
|
-
* ])
|
|
56528
|
-
* ```
|
|
56529
|
-
*
|
|
56530
|
-
* @since 4.0.0
|
|
56531
|
-
* @category constructors
|
|
56532
|
-
*/
|
|
56533
|
-
const choiceWithValue = (name, choices) => choiceWithValue$1(flagKind, name, choices);
|
|
56534
|
-
/**
|
|
56535
|
-
* Simpler variant of `choiceWithValue` which maps each string to itself.
|
|
56536
|
-
*
|
|
56537
|
-
* @since 4.0.0
|
|
56538
|
-
* @category constructors
|
|
56539
|
-
*/
|
|
56540
|
-
const choice = (name, choices) => choice$1(flagKind, name, choices);
|
|
56541
|
-
/**
|
|
56542
|
-
* Creates a file path flag that accepts file paths with optional existence validation.
|
|
56543
|
-
*
|
|
56544
|
-
* @example
|
|
56545
|
-
* ```ts
|
|
56546
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56547
|
-
*
|
|
56548
|
-
* // Basic file flag
|
|
56549
|
-
* const inputFlag = Flag.file("input")
|
|
56550
|
-
* // Usage: --input ./data.json
|
|
56551
|
-
*
|
|
56552
|
-
* // File that must exist
|
|
56553
|
-
* const configFlag = Flag.file("config", { mustExist: true })
|
|
56554
|
-
* // Usage: --config ./config.yaml (file must exist)
|
|
56555
|
-
* ```
|
|
56556
|
-
*
|
|
56557
|
-
* @since 4.0.0
|
|
56558
|
-
* @category constructors
|
|
56559
|
-
*/
|
|
56560
|
-
const file$1 = (name, options) => file$2(flagKind, name, options);
|
|
56561
|
-
/**
|
|
56562
|
-
* Creates a directory path flag that accepts directory paths with optional existence validation.
|
|
56563
|
-
*
|
|
56564
|
-
* @example
|
|
56565
|
-
* ```ts
|
|
56566
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56567
|
-
*
|
|
56568
|
-
* // Basic directory flag
|
|
56569
|
-
* const outputFlag = Flag.directory("output")
|
|
56570
|
-
* // Usage: --output ./build
|
|
56571
|
-
*
|
|
56572
|
-
* // Directory that must exist
|
|
56573
|
-
* const sourceFlag = Flag.directory("source", { mustExist: true })
|
|
56574
|
-
* // Usage: --source ./src (directory must exist)
|
|
56575
|
-
* ```
|
|
56576
|
-
*
|
|
56577
|
-
* @since 4.0.0
|
|
56578
|
-
* @category constructors
|
|
56579
|
-
*/
|
|
56580
|
-
const directory = (name, options) => directory$1(flagKind, name, options);
|
|
56581
|
-
/**
|
|
56582
|
-
* Creates an empty sentinel flag that always fails to parse.
|
|
56583
|
-
* This is useful for creating placeholder flags or for combinators.
|
|
56584
|
-
*
|
|
56585
|
-
* @example
|
|
56586
|
-
* ```ts
|
|
56587
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56588
|
-
*
|
|
56589
|
-
* // Used as a placeholder in flag combinators
|
|
56590
|
-
* const conditionalFlag = true ? Flag.string("value") : Flag.none
|
|
56591
|
-
* ```
|
|
56592
|
-
*
|
|
56593
|
-
* @since 4.0.0
|
|
56594
|
-
* @category constructors
|
|
56595
|
-
*/
|
|
56596
|
-
const none = /* @__PURE__ */ none$2(flagKind);
|
|
56597
|
-
/**
|
|
56598
|
-
* Adds an alias to a flag, allowing it to be referenced by multiple names.
|
|
56599
|
-
*
|
|
56600
|
-
* @example
|
|
56601
|
-
* ```ts
|
|
56602
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56603
|
-
*
|
|
56604
|
-
* // Flag can be used as both --verbose and -v
|
|
56605
|
-
* const verboseFlag = Flag.boolean("verbose").pipe(
|
|
56606
|
-
* Flag.withAlias("v")
|
|
56607
|
-
* )
|
|
56608
|
-
*
|
|
56609
|
-
* // Multiple aliases can be chained
|
|
56610
|
-
* const helpFlag = Flag.boolean("help").pipe(
|
|
56611
|
-
* Flag.withAlias("h"),
|
|
56612
|
-
* Flag.withAlias("?")
|
|
56613
|
-
* )
|
|
56614
|
-
* ```
|
|
56615
|
-
*
|
|
56616
|
-
* @since 4.0.0
|
|
56617
|
-
* @category aliasing
|
|
56618
|
-
*/
|
|
56619
|
-
const withAlias = /* @__PURE__ */ dual(2, (self, alias) => withAlias$1(self, alias));
|
|
56620
|
-
/**
|
|
56621
|
-
* Adds a description to a flag for help documentation.
|
|
56622
|
-
*
|
|
56623
|
-
* @example
|
|
56624
|
-
* ```ts
|
|
56625
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56626
|
-
*
|
|
56627
|
-
* const portFlag = Flag.integer("port").pipe(
|
|
56628
|
-
* Flag.withDescription("The port number to listen on")
|
|
56629
|
-
* )
|
|
56630
|
-
*
|
|
56631
|
-
* const configFlag = Flag.file("config").pipe(
|
|
56632
|
-
* Flag.withDescription("Path to the configuration file")
|
|
56633
|
-
* )
|
|
56634
|
-
* ```
|
|
56635
|
-
*
|
|
56636
|
-
* @since 4.0.0
|
|
56637
|
-
* @category help documentation
|
|
56638
|
-
*/
|
|
56639
|
-
const withDescription$1 = /* @__PURE__ */ dual(2, (self, description) => withDescription$3(self, description));
|
|
56640
|
-
/**
|
|
56641
|
-
* Makes a flag optional, returning an Option type that can be None if not provided.
|
|
56642
|
-
*
|
|
56643
|
-
* @example
|
|
56644
|
-
* ```ts
|
|
56645
|
-
* import { Effect, Option } from "effect"
|
|
56646
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56647
|
-
*
|
|
56648
|
-
* const optionalPort = Flag.optional(Flag.integer("port"))
|
|
56649
|
-
*
|
|
56650
|
-
* const program = Effect.gen(function*() {
|
|
56651
|
-
* const [leftover, port] = yield* optionalPort.parse({
|
|
56652
|
-
* arguments: [],
|
|
56653
|
-
* flags: { "port": ["4000"] }
|
|
56654
|
-
* })
|
|
56655
|
-
* if (Option.isSome(port)) {
|
|
56656
|
-
* console.log("Port specified:", port.value)
|
|
56657
|
-
* } else {
|
|
56658
|
-
* console.log("No port specified, using default")
|
|
56659
|
-
* }
|
|
56660
|
-
* })
|
|
56661
|
-
* ```
|
|
56662
|
-
*
|
|
56663
|
-
* @since 4.0.0
|
|
56664
|
-
* @category optionality
|
|
56665
|
-
*/
|
|
56666
|
-
const optional = (param) => optional$1(param);
|
|
56667
|
-
/**
|
|
56668
|
-
* Provides a default value for a flag when it's not specified.
|
|
56669
|
-
*
|
|
56670
|
-
* @example
|
|
56671
|
-
* ```ts
|
|
56672
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56673
|
-
*
|
|
56674
|
-
* const portFlag = Flag.integer("port").pipe(
|
|
56675
|
-
* Flag.withDefault(8080)
|
|
56676
|
-
* )
|
|
56677
|
-
* // If --port is not provided, defaults to 8080
|
|
56678
|
-
*
|
|
56679
|
-
* const hostFlag = Flag.string("host").pipe(
|
|
56680
|
-
* Flag.withDefault("localhost")
|
|
56681
|
-
* )
|
|
56682
|
-
* // If --host is not provided, defaults to "localhost"
|
|
56683
|
-
* ```
|
|
56684
|
-
*
|
|
56685
|
-
* @since 4.0.0
|
|
56686
|
-
* @category optionality
|
|
56687
|
-
*/
|
|
56688
|
-
const withDefault = withDefault$2;
|
|
56689
|
-
/**
|
|
56690
|
-
* Adds a fallback config that is loaded when a required flag is missing.
|
|
56691
|
-
*
|
|
56692
|
-
* @example
|
|
56693
|
-
* ```ts
|
|
56694
|
-
* import { Config } from "effect"
|
|
56695
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56696
|
-
*
|
|
56697
|
-
* const verbose = Flag.boolean("verbose").pipe(
|
|
56698
|
-
* Flag.withFallbackConfig(Config.boolean("VERBOSE"))
|
|
56699
|
-
* )
|
|
56700
|
-
* ```
|
|
56701
|
-
*
|
|
56702
|
-
* @since 4.0.0
|
|
56703
|
-
* @category combinators
|
|
56704
|
-
*/
|
|
56705
|
-
const withFallbackConfig = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig$1(self, config));
|
|
56706
|
-
/**
|
|
56707
|
-
* Transforms the parsed value of a flag using a mapping function.
|
|
56708
|
-
*
|
|
56709
|
-
* @example
|
|
56710
|
-
* ```ts
|
|
56711
|
-
* import { Flag } from "effect/unstable/cli"
|
|
56712
|
-
*
|
|
56713
|
-
* // Convert string to uppercase
|
|
56714
|
-
* const nameFlag = Flag.string("name").pipe(
|
|
56715
|
-
* Flag.map((name) => name.toUpperCase())
|
|
56716
|
-
* )
|
|
56717
|
-
*
|
|
56718
|
-
* // Convert port to URL
|
|
56719
|
-
* const urlFlag = Flag.integer("port").pipe(
|
|
56720
|
-
* Flag.map((port) => `http://localhost:${port}`)
|
|
56721
|
-
* )
|
|
56722
|
-
* ```
|
|
56723
|
-
*
|
|
56724
|
-
* @since 4.0.0
|
|
56725
|
-
* @category mapping
|
|
56726
|
-
*/
|
|
56727
|
-
const map$1 = /* @__PURE__ */ dual(2, (self, f) => map$2(self, f));
|
|
56728
|
-
|
|
56729
|
-
//#endregion
|
|
56730
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.12/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
|
|
56731
|
-
/**
|
|
56732
|
-
* Built-in options that are automatically available for CLI commands.
|
|
56733
|
-
* @since 4.0.0
|
|
56734
|
-
* @internal
|
|
56735
|
-
*/
|
|
56736
|
-
/**
|
|
56737
|
-
* Built-in --log-level option with all Effect LogLevel values.
|
|
56738
|
-
* Maps CLI strings to proper LogLevel constants.
|
|
56739
|
-
*
|
|
56740
|
-
* @since 4.0.0
|
|
56741
|
-
* @internal
|
|
56742
|
-
*/
|
|
56743
|
-
const logLevelFlag = /* @__PURE__ */ choiceWithValue("log-level", [
|
|
56744
|
-
["all", "All"],
|
|
56745
|
-
["trace", "Trace"],
|
|
56746
|
-
["debug", "Debug"],
|
|
56747
|
-
["info", "Info"],
|
|
56748
|
-
["warn", "Warn"],
|
|
56749
|
-
["warning", "Warn"],
|
|
56750
|
-
["error", "Error"],
|
|
56751
|
-
["fatal", "Fatal"],
|
|
56752
|
-
["none", "None"]
|
|
56753
|
-
]).pipe(optional, /* @__PURE__ */ withDescription$1("Sets the minimum log level for the command"));
|
|
56754
|
-
/**
|
|
56755
|
-
* Built-in --help/-h option.
|
|
56756
|
-
*
|
|
56757
|
-
* @since 4.0.0
|
|
56758
|
-
* @internal
|
|
56759
|
-
*/
|
|
56760
|
-
const helpFlag = /* @__PURE__ */ boolean("help").pipe(/* @__PURE__ */ withAlias("h"), /* @__PURE__ */ withDescription$1("Show help information"));
|
|
56761
|
-
/**
|
|
56762
|
-
* Built-in --version option.
|
|
56763
|
-
*
|
|
56764
|
-
* @since 4.0.0
|
|
56765
|
-
* @internal
|
|
56766
|
-
*/
|
|
56767
|
-
const versionFlag = /* @__PURE__ */ boolean("version").pipe(/* @__PURE__ */ withDescription$1("Show version information"));
|
|
56768
|
-
/**
|
|
56769
|
-
* Built-in --completions option to print shell completion scripts.
|
|
56770
|
-
* Generates a dynamic completion shim that calls the CLI at runtime.
|
|
56771
|
-
* Accepts one of: bash | zsh | fish | sh (alias of bash).
|
|
56772
|
-
*
|
|
56773
|
-
* @since 4.0.0
|
|
56774
|
-
* @internal
|
|
56775
|
-
*/
|
|
56776
|
-
const completionsFlag = /* @__PURE__ */ choice("completions", [
|
|
56777
|
-
"bash",
|
|
56778
|
-
"zsh",
|
|
56779
|
-
"fish",
|
|
56780
|
-
"sh"
|
|
56781
|
-
]).pipe(optional, /* @__PURE__ */ map$1((v) => map$14(v, (s) => s === "sh" ? "bash" : s)), /* @__PURE__ */ withDescription$1("Print shell completion script for the given shell"));
|
|
56782
|
-
|
|
56783
|
-
//#endregion
|
|
56784
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.12/node_modules/effect/dist/unstable/cli/internal/parser.js
|
|
56937
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/internal/parser.js
|
|
56785
56938
|
/**
|
|
56786
56939
|
* Parsing Pipeline for CLI Commands
|
|
56787
56940
|
* ==================================
|
|
@@ -56811,25 +56964,6 @@ const completionsFlag = /* @__PURE__ */ choice("completions", [
|
|
|
56811
56964
|
/** @internal */
|
|
56812
56965
|
const getCommandPath = (parsedInput) => parsedInput.subcommand ? [parsedInput.subcommand.name, ...getCommandPath(parsedInput.subcommand.parsedInput)] : [];
|
|
56813
56966
|
/** @internal */
|
|
56814
|
-
const extractBuiltInOptions = (tokens) => gen(function* () {
|
|
56815
|
-
const { flagMap, remainder } = consumeKnownFlags(tokens, builtInFlagRegistry);
|
|
56816
|
-
const emptyArgs = {
|
|
56817
|
-
flags: flagMap,
|
|
56818
|
-
arguments: []
|
|
56819
|
-
};
|
|
56820
|
-
const [, help] = yield* helpFlag.parse(emptyArgs);
|
|
56821
|
-
const [, logLevel] = yield* logLevelFlag.parse(emptyArgs);
|
|
56822
|
-
const [, version] = yield* versionFlag.parse(emptyArgs);
|
|
56823
|
-
const [, completions] = yield* completionsFlag.parse(emptyArgs);
|
|
56824
|
-
return {
|
|
56825
|
-
help,
|
|
56826
|
-
logLevel: getOrUndefined(logLevel),
|
|
56827
|
-
version,
|
|
56828
|
-
completions: getOrUndefined(completions),
|
|
56829
|
-
remainder
|
|
56830
|
-
};
|
|
56831
|
-
});
|
|
56832
|
-
/** @internal */
|
|
56833
56967
|
const parseArgs = (lexResult, command, commandPath = []) => gen(function* () {
|
|
56834
56968
|
const { tokens, trailingOperands: afterEndOfOptions } = lexResult;
|
|
56835
56969
|
const newCommandPath = [...commandPath, command.name];
|
|
@@ -56869,6 +57003,7 @@ const makeCursor = (tokens) => {
|
|
|
56869
57003
|
/**
|
|
56870
57004
|
* Creates a registry for O(1) flag lookup by name or alias.
|
|
56871
57005
|
* @throws Error if duplicate names or aliases are detected (developer error)
|
|
57006
|
+
* @internal
|
|
56872
57007
|
*/
|
|
56873
57008
|
const createFlagRegistry = (params) => {
|
|
56874
57009
|
const index = /* @__PURE__ */ new Map();
|
|
@@ -56887,10 +57022,20 @@ const createFlagRegistry = (params) => {
|
|
|
56887
57022
|
};
|
|
56888
57023
|
const buildSubcommandIndex = (subcommands) => {
|
|
56889
57024
|
const index = /* @__PURE__ */ new Map();
|
|
56890
|
-
|
|
57025
|
+
const setKey = (key, command) => {
|
|
57026
|
+
const existing = index.get(key);
|
|
57027
|
+
if (existing && existing !== command) throw new Error(`Duplicate subcommand name/alias "${key}" in command definition (conflicts with "${existing.name}")`);
|
|
57028
|
+
index.set(key, command);
|
|
57029
|
+
};
|
|
57030
|
+
for (const group of subcommands) for (const subcommand of group.commands) {
|
|
57031
|
+
setKey(subcommand.name, subcommand);
|
|
57032
|
+
if (subcommand.alias && subcommand.alias !== subcommand.name) setKey(subcommand.alias, subcommand);
|
|
57033
|
+
}
|
|
56891
57034
|
return index;
|
|
56892
57035
|
};
|
|
56893
|
-
/** Creates an empty flag map with all known flag names initialized to [].
|
|
57036
|
+
/** Creates an empty flag map with all known flag names initialized to [].
|
|
57037
|
+
* @internal
|
|
57038
|
+
*/
|
|
56894
57039
|
const createEmptyFlagMap = (params) => Object.fromEntries(params.map((p) => [p.name, []]));
|
|
56895
57040
|
/**
|
|
56896
57041
|
* Creates a mutable accumulator for collecting flag values.
|
|
@@ -56942,7 +57087,8 @@ const consumeFlagValue = (cursor, token, spec) => {
|
|
|
56942
57087
|
/**
|
|
56943
57088
|
* Consumes known flags from a token stream.
|
|
56944
57089
|
* Unrecognized tokens are passed through to remainder.
|
|
56945
|
-
* Used for both
|
|
57090
|
+
* Used for both global flag extraction and npm-style parent flag collection.
|
|
57091
|
+
* @internal
|
|
56946
57092
|
*/
|
|
56947
57093
|
const consumeKnownFlags = (tokens, registry) => {
|
|
56948
57094
|
const flagMap = createEmptyFlagMap(registry.params);
|
|
@@ -56966,12 +57112,6 @@ const consumeKnownFlags = (tokens, registry) => {
|
|
|
56966
57112
|
remainder
|
|
56967
57113
|
};
|
|
56968
57114
|
};
|
|
56969
|
-
const builtInFlagRegistry = /* @__PURE__ */ createFlagRegistry([
|
|
56970
|
-
.../* @__PURE__ */ extractSingleParams(logLevelFlag),
|
|
56971
|
-
.../* @__PURE__ */ extractSingleParams(helpFlag),
|
|
56972
|
-
.../* @__PURE__ */ extractSingleParams(versionFlag),
|
|
56973
|
-
.../* @__PURE__ */ extractSingleParams(completionsFlag)
|
|
56974
|
-
]);
|
|
56975
57115
|
const createUnrecognizedFlagError = (token, params, commandPath) => {
|
|
56976
57116
|
const printable = token._tag === "LongOption" ? `--${token.name}` : `-${token.flag}`;
|
|
56977
57117
|
const validNames = [];
|
|
@@ -57096,7 +57236,7 @@ const scanCommandLevel = (tokens, context) => {
|
|
|
57096
57236
|
};
|
|
57097
57237
|
|
|
57098
57238
|
//#endregion
|
|
57099
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
57239
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/cli/Command.js
|
|
57100
57240
|
/**
|
|
57101
57241
|
* @since 4.0.0
|
|
57102
57242
|
* @category Guards
|
|
@@ -57290,7 +57430,9 @@ const withSubcommands = /* @__PURE__ */ dual(2, (self, subcommands) => {
|
|
|
57290
57430
|
config: impl.config,
|
|
57291
57431
|
description: impl.description,
|
|
57292
57432
|
shortDescription: impl.shortDescription,
|
|
57433
|
+
alias: impl.alias,
|
|
57293
57434
|
annotations: impl.annotations,
|
|
57435
|
+
globalFlags: impl.globalFlags,
|
|
57294
57436
|
examples: impl.examples,
|
|
57295
57437
|
service: impl.service,
|
|
57296
57438
|
subcommands: normalized.groups,
|
|
@@ -57326,6 +57468,19 @@ const withDescription = /* @__PURE__ */ dual(2, (self, description) => makeComma
|
|
|
57326
57468
|
...toImpl(self),
|
|
57327
57469
|
description
|
|
57328
57470
|
}));
|
|
57471
|
+
/**
|
|
57472
|
+
* Sets an alias for a command.
|
|
57473
|
+
*
|
|
57474
|
+
* Aliases are accepted as alternate subcommand names during parsing and are
|
|
57475
|
+
* shown in help output as `name, alias`.
|
|
57476
|
+
*
|
|
57477
|
+
* @since 4.0.0
|
|
57478
|
+
* @category combinators
|
|
57479
|
+
*/
|
|
57480
|
+
const withAlias = /* @__PURE__ */ dual(2, (self, alias) => makeCommand({
|
|
57481
|
+
...toImpl(self),
|
|
57482
|
+
alias
|
|
57483
|
+
}));
|
|
57329
57484
|
const mapHandler = (self, f) => {
|
|
57330
57485
|
const impl = toImpl(self);
|
|
57331
57486
|
return makeCommand({
|
|
@@ -57370,9 +57525,31 @@ const mapHandler = (self, f) => {
|
|
|
57370
57525
|
* @category providing services
|
|
57371
57526
|
*/
|
|
57372
57527
|
const provide = /* @__PURE__ */ dual((args) => isCommand$1(args[0]), (self, layer, options) => mapHandler(self, (handler, input) => provide$1(handler, typeof layer === "function" ? layer(input) : layer, options)));
|
|
57528
|
+
const getOutOfScopeGlobalFlagErrors = (allFlags, activeFlags, flagMap, commandPath) => {
|
|
57529
|
+
const activeSet = new Set(activeFlags);
|
|
57530
|
+
const errors = [];
|
|
57531
|
+
const seen = /* @__PURE__ */ new Set();
|
|
57532
|
+
for (const flag of allFlags) {
|
|
57533
|
+
if (activeSet.has(flag)) continue;
|
|
57534
|
+
const singles = extractSingleParams(flag.flag);
|
|
57535
|
+
for (const single of singles) {
|
|
57536
|
+
const entries = flagMap[single.name];
|
|
57537
|
+
if (!entries || entries.length === 0) continue;
|
|
57538
|
+
const option = `--${single.name}`;
|
|
57539
|
+
if (seen.has(option)) continue;
|
|
57540
|
+
seen.add(option);
|
|
57541
|
+
errors.push(new UnrecognizedOption({
|
|
57542
|
+
option,
|
|
57543
|
+
suggestions: [],
|
|
57544
|
+
command: commandPath
|
|
57545
|
+
}));
|
|
57546
|
+
}
|
|
57547
|
+
}
|
|
57548
|
+
return errors;
|
|
57549
|
+
};
|
|
57373
57550
|
const showHelp = (command, commandPath, errors) => gen(function* () {
|
|
57374
57551
|
const formatter = yield* Formatter;
|
|
57375
|
-
const helpDoc = getHelpForCommandPath(command, commandPath);
|
|
57552
|
+
const helpDoc = yield* getHelpForCommandPath(command, commandPath, BuiltIns);
|
|
57376
57553
|
yield* log(formatter.formatHelpDoc(helpDoc));
|
|
57377
57554
|
if (errors && errors.length > 0) yield* error(formatter.formatErrors(errors));
|
|
57378
57555
|
});
|
|
@@ -57447,37 +57624,61 @@ const runWith = (command, config) => {
|
|
|
57447
57624
|
const commandImpl = toImpl(command);
|
|
57448
57625
|
return fnUntraced(function* (args) {
|
|
57449
57626
|
const { tokens, trailingOperands } = lex(args);
|
|
57450
|
-
const
|
|
57627
|
+
const allFlags = getGlobalFlagsForCommandTree(command, BuiltIns);
|
|
57628
|
+
const allFlagParams = allFlags.flatMap((f) => extractSingleParams(f.flag));
|
|
57629
|
+
const globalRegistry = createFlagRegistry(allFlagParams.filter(isFlagParam));
|
|
57630
|
+
const { flagMap, remainder } = consumeKnownFlags(tokens, globalRegistry);
|
|
57631
|
+
const emptyArgs = {
|
|
57632
|
+
flags: flagMap,
|
|
57633
|
+
arguments: []
|
|
57634
|
+
};
|
|
57451
57635
|
const parsedArgs = yield* parseArgs({
|
|
57452
57636
|
tokens: remainder,
|
|
57453
57637
|
trailingOperands
|
|
57454
57638
|
}, command);
|
|
57455
57639
|
const commandPath = [command.name, ...getCommandPath(parsedArgs)];
|
|
57456
|
-
const
|
|
57457
|
-
|
|
57458
|
-
|
|
57459
|
-
|
|
57460
|
-
}
|
|
57461
|
-
|
|
57462
|
-
|
|
57463
|
-
|
|
57464
|
-
|
|
57465
|
-
|
|
57466
|
-
|
|
57467
|
-
|
|
57640
|
+
const handlerCtx = {
|
|
57641
|
+
command,
|
|
57642
|
+
commandPath,
|
|
57643
|
+
version: config.version
|
|
57644
|
+
};
|
|
57645
|
+
const activeFlags = getGlobalFlagsForCommandPath(command, commandPath, BuiltIns);
|
|
57646
|
+
const outOfScopeErrors = getOutOfScopeGlobalFlagErrors(allFlags, activeFlags, flagMap, commandPath);
|
|
57647
|
+
if (outOfScopeErrors.length > 0) {
|
|
57648
|
+
const parseErrors = parsedArgs.errors ?? [];
|
|
57649
|
+
return yield* showHelp(command, commandPath, [...outOfScopeErrors, ...parseErrors]);
|
|
57650
|
+
}
|
|
57651
|
+
for (const flag of activeFlags) {
|
|
57652
|
+
if (flag._tag !== "Action") continue;
|
|
57653
|
+
if (!extractSingleParams(flag.flag).some((s) => {
|
|
57654
|
+
const entries = flagMap[s.name];
|
|
57655
|
+
return entries !== void 0 && entries.length > 0;
|
|
57656
|
+
})) continue;
|
|
57657
|
+
const [, value] = yield* flag.flag.parse(emptyArgs);
|
|
57658
|
+
yield* flag.run(value, handlerCtx);
|
|
57468
57659
|
return;
|
|
57469
57660
|
}
|
|
57470
57661
|
if (parsedArgs.errors && parsedArgs.errors.length > 0) return yield* showHelp(command, commandPath, parsedArgs.errors);
|
|
57471
57662
|
const parseResult = yield* result(commandImpl.parse(parsedArgs));
|
|
57472
57663
|
if (parseResult._tag === "Failure") return yield* showHelp(command, commandPath, [parseResult.failure]);
|
|
57473
|
-
|
|
57474
|
-
const
|
|
57475
|
-
|
|
57664
|
+
let program = commandImpl.handle(parseResult.success, [command.name]);
|
|
57665
|
+
for (const flag of activeFlags) {
|
|
57666
|
+
if (flag._tag !== "Setting") continue;
|
|
57667
|
+
const [, value] = yield* flag.flag.parse(emptyArgs);
|
|
57668
|
+
program = provideService(program, flag, value);
|
|
57669
|
+
}
|
|
57670
|
+
const [, logLevel] = yield* LogLevel.flag.parse(emptyArgs);
|
|
57671
|
+
program = provideService(program, LogLevel, logLevel);
|
|
57672
|
+
const services = match$7(logLevel, {
|
|
57673
|
+
onNone: () => empty$14(),
|
|
57674
|
+
onSome: (level) => make$61(MinimumLogLevel, level)
|
|
57675
|
+
});
|
|
57676
|
+
yield* provideServices(program, services);
|
|
57476
57677
|
}, catchIf((error) => isCliError(error) && error._tag === "ShowHelp" ? succeed$6(error) : fail$8(error), (error) => showHelp(command, error.commandPath)), catchIf((e) => isQuitError(e) ? succeed$6(e) : fail$8(e), (_) => interrupt$1));
|
|
57477
57678
|
};
|
|
57478
57679
|
|
|
57479
57680
|
//#endregion
|
|
57480
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
57681
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Cache.js
|
|
57481
57682
|
/**
|
|
57482
57683
|
* @since 4.0.0
|
|
57483
57684
|
*/
|
|
@@ -57895,7 +58096,7 @@ const invalidate$1 = /* @__PURE__ */ dual(2, (self, key) => sync$1(() => {
|
|
|
57895
58096
|
}));
|
|
57896
58097
|
|
|
57897
58098
|
//#endregion
|
|
57898
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
58099
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/ErrorReporter.js
|
|
57899
58100
|
/**
|
|
57900
58101
|
* A `ServiceMap.Reference` holding the set of active `ErrorReporter`s for the
|
|
57901
58102
|
* current fiber. Defaults to an empty set (no reporting).
|
|
@@ -57929,7 +58130,7 @@ const CurrentErrorReporters = CurrentErrorReporters$1;
|
|
|
57929
58130
|
const ignore = "~effect/ErrorReporter/ignore";
|
|
57930
58131
|
|
|
57931
58132
|
//#endregion
|
|
57932
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
58133
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/FiberHandle.js
|
|
57933
58134
|
/**
|
|
57934
58135
|
* @since 2.0.0
|
|
57935
58136
|
*/
|
|
@@ -58125,7 +58326,7 @@ const runImpl$2 = (self, effect, options) => withFiber((parent) => {
|
|
|
58125
58326
|
});
|
|
58126
58327
|
|
|
58127
58328
|
//#endregion
|
|
58128
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
58329
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/FiberMap.js
|
|
58129
58330
|
/**
|
|
58130
58331
|
* @since 2.0.0
|
|
58131
58332
|
*/
|
|
@@ -58356,7 +58557,7 @@ const runImpl$1 = (self, key, effect, options) => withFiber((parent) => {
|
|
|
58356
58557
|
});
|
|
58357
58558
|
|
|
58358
58559
|
//#endregion
|
|
58359
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
58560
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/FiberSet.js
|
|
58360
58561
|
/**
|
|
58361
58562
|
* @since 2.0.0
|
|
58362
58563
|
*/
|
|
@@ -58609,7 +58810,7 @@ const awaitEmpty = (self) => whileLoop({
|
|
|
58609
58810
|
});
|
|
58610
58811
|
|
|
58611
58812
|
//#endregion
|
|
58612
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
58813
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/PrimaryKey.js
|
|
58613
58814
|
/**
|
|
58614
58815
|
* The unique identifier used to identify objects that implement the `PrimaryKey` interface.
|
|
58615
58816
|
*
|
|
@@ -58647,7 +58848,7 @@ const symbol$2 = "~effect/interfaces/PrimaryKey";
|
|
|
58647
58848
|
const value$1 = (self) => self[symbol$2]();
|
|
58648
58849
|
|
|
58649
58850
|
//#endregion
|
|
58650
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
58851
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/LayerMap.js
|
|
58651
58852
|
const TypeId$25 = "~effect/LayerMap";
|
|
58652
58853
|
/**
|
|
58653
58854
|
* @since 3.14.0
|
|
@@ -58814,7 +59015,7 @@ const Service = () => (id, options) => {
|
|
|
58814
59015
|
};
|
|
58815
59016
|
|
|
58816
59017
|
//#endregion
|
|
58817
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
59018
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Logger.js
|
|
58818
59019
|
/**
|
|
58819
59020
|
* @since 2.0.0
|
|
58820
59021
|
*
|
|
@@ -59262,7 +59463,7 @@ const consolePretty = consolePretty$1;
|
|
|
59262
59463
|
const tracerLogger = tracerLogger$1;
|
|
59263
59464
|
|
|
59264
59465
|
//#endregion
|
|
59265
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
59466
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Ref.js
|
|
59266
59467
|
const RefProto = {
|
|
59267
59468
|
["~effect/Ref"]: { _A: identity },
|
|
59268
59469
|
...PipeInspectableProto,
|
|
@@ -59304,7 +59505,7 @@ const makeUnsafe$2 = (value) => {
|
|
|
59304
59505
|
};
|
|
59305
59506
|
|
|
59306
59507
|
//#endregion
|
|
59307
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
59508
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/reactivity/Reactivity.js
|
|
59308
59509
|
/**
|
|
59309
59510
|
* @since 4.0.0
|
|
59310
59511
|
*/
|
|
@@ -59441,7 +59642,7 @@ const keysToHashes = (keys, f) => {
|
|
|
59441
59642
|
};
|
|
59442
59643
|
|
|
59443
59644
|
//#endregion
|
|
59444
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
59645
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
|
|
59445
59646
|
/**
|
|
59446
59647
|
* @since 4.0.0
|
|
59447
59648
|
*/
|
|
@@ -59585,7 +59786,7 @@ const toSchemaStore = (self, schema) => {
|
|
|
59585
59786
|
};
|
|
59586
59787
|
|
|
59587
59788
|
//#endregion
|
|
59588
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
59789
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/persistence/Persistable.js
|
|
59589
59790
|
/**
|
|
59590
59791
|
* @since 4.0.0
|
|
59591
59792
|
* @category Symbols
|
|
@@ -59642,7 +59843,7 @@ const deserializeExit = (self, encoded) => {
|
|
|
59642
59843
|
};
|
|
59643
59844
|
|
|
59644
59845
|
//#endregion
|
|
59645
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
59846
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/persistence/Persistence.js
|
|
59646
59847
|
/**
|
|
59647
59848
|
* @since 4.0.0
|
|
59648
59849
|
*/
|
|
@@ -59819,7 +60020,7 @@ const layerKvs$1 = /* @__PURE__ */ layer$17.pipe(/* @__PURE__ */ provide$3(layer
|
|
|
59819
60020
|
const unsafeTtlToExpires = (clock, ttl) => ttl ? clock.currentTimeMillisUnsafe() + toMillis(ttl) : null;
|
|
59820
60021
|
|
|
59821
60022
|
//#endregion
|
|
59822
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
60023
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/SynchronizedRef.js
|
|
59823
60024
|
const TypeId$23 = "~effect/SynchronizedRef";
|
|
59824
60025
|
const Proto$10 = {
|
|
59825
60026
|
...PipeInspectableProto,
|
|
@@ -59843,7 +60044,7 @@ const makeUnsafe$1 = (value) => {
|
|
|
59843
60044
|
};
|
|
59844
60045
|
|
|
59845
60046
|
//#endregion
|
|
59846
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
60047
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/ScopedRef.js
|
|
59847
60048
|
/**
|
|
59848
60049
|
* @since 2.0.0
|
|
59849
60050
|
*/
|
|
@@ -59909,7 +60110,7 @@ const set$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function* (self
|
|
|
59909
60110
|
}, uninterruptible, (effect, self) => self.backing.semaphore.withPermit(effect)));
|
|
59910
60111
|
|
|
59911
60112
|
//#endregion
|
|
59912
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
60113
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Runtime.js
|
|
59913
60114
|
/**
|
|
59914
60115
|
* This module provides utilities for running Effect programs and managing their execution lifecycle.
|
|
59915
60116
|
*
|
|
@@ -60045,7 +60246,7 @@ const makeRunMain = (f) => dual((args) => isEffect(args[0]), (effect, options) =
|
|
|
60045
60246
|
});
|
|
60046
60247
|
|
|
60047
60248
|
//#endregion
|
|
60048
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
60249
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/Stdio.js
|
|
60049
60250
|
/**
|
|
60050
60251
|
* @since 4.0.0
|
|
60051
60252
|
* @category Type IDs
|
|
@@ -60066,7 +60267,7 @@ const make$25 = (options) => ({
|
|
|
60066
60267
|
});
|
|
60067
60268
|
|
|
60068
60269
|
//#endregion
|
|
60069
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
60270
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/SubscriptionRef.js
|
|
60070
60271
|
/**
|
|
60071
60272
|
* @since 2.0.0
|
|
60072
60273
|
*/
|
|
@@ -61572,7 +61773,7 @@ _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /
|
|
|
61572
61773
|
var src_default = new Mime(types, types$1)._freeze();
|
|
61573
61774
|
|
|
61574
61775
|
//#endregion
|
|
61575
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
61776
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/Mime.js
|
|
61576
61777
|
/**
|
|
61577
61778
|
* @since 1.0.0
|
|
61578
61779
|
*/
|
|
@@ -61583,7 +61784,7 @@ var src_default = new Mime(types, types$1)._freeze();
|
|
|
61583
61784
|
var Mime_default = src_default;
|
|
61584
61785
|
|
|
61585
61786
|
//#endregion
|
|
61586
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
61787
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
|
|
61587
61788
|
/**
|
|
61588
61789
|
* A module providing a generic service interface for spawning child processes.
|
|
61589
61790
|
*
|
|
@@ -61629,7 +61830,7 @@ const makeHandle = (params) => Object.assign(Object.create(HandleProto), params)
|
|
|
61629
61830
|
const ChildProcessSpawner = /* @__PURE__ */ Service$1("effect/process/ChildProcessSpawner");
|
|
61630
61831
|
|
|
61631
61832
|
//#endregion
|
|
61632
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
61833
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/process/ChildProcess.js
|
|
61633
61834
|
const TypeId$19 = "~effect/unstable/process/ChildProcess";
|
|
61634
61835
|
const Proto$7 = {
|
|
61635
61836
|
...PipeInspectableProto,
|
|
@@ -61966,7 +62167,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
|
|
|
61966
62167
|
];
|
|
61967
62168
|
|
|
61968
62169
|
//#endregion
|
|
61969
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
62170
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
61970
62171
|
/** @internal */
|
|
61971
62172
|
const handleErrnoException = (module, method) => (err, [path]) => {
|
|
61972
62173
|
let reason = "Unknown";
|
|
@@ -62004,7 +62205,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
|
|
|
62004
62205
|
};
|
|
62005
62206
|
|
|
62006
62207
|
//#endregion
|
|
62007
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
62208
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
62008
62209
|
/**
|
|
62009
62210
|
* @category constructors
|
|
62010
62211
|
* @since 1.0.0
|
|
@@ -62043,7 +62244,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap$2((chunk) => {
|
|
|
62043
62244
|
}) : identity);
|
|
62044
62245
|
|
|
62045
62246
|
//#endregion
|
|
62046
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
62247
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
62047
62248
|
/**
|
|
62048
62249
|
* @since 1.0.0
|
|
62049
62250
|
*/
|
|
@@ -62175,7 +62376,7 @@ const readableToPullUnsafe = (options) => {
|
|
|
62175
62376
|
const defaultOnError = (error) => new UnknownError(error);
|
|
62176
62377
|
|
|
62177
62378
|
//#endregion
|
|
62178
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
62379
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
62179
62380
|
const toError = (error) => error instanceof globalThis.Error ? error : new globalThis.Error(String(error));
|
|
62180
62381
|
const toPlatformError = (method, error, command) => {
|
|
62181
62382
|
const { commands } = flattenCommand(command);
|
|
@@ -62518,7 +62719,7 @@ const flattenCommand = (command) => {
|
|
|
62518
62719
|
};
|
|
62519
62720
|
|
|
62520
62721
|
//#endregion
|
|
62521
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
62722
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/Cookies.js
|
|
62522
62723
|
/**
|
|
62523
62724
|
* @since 4.0.0
|
|
62524
62725
|
*/
|
|
@@ -62908,7 +63109,7 @@ const tryDecodeURIComponent = (str) => {
|
|
|
62908
63109
|
};
|
|
62909
63110
|
|
|
62910
63111
|
//#endregion
|
|
62911
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
63112
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/Headers.js
|
|
62912
63113
|
/**
|
|
62913
63114
|
* @since 4.0.0
|
|
62914
63115
|
*/
|
|
@@ -63032,7 +63233,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
|
|
|
63032
63233
|
] });
|
|
63033
63234
|
|
|
63034
63235
|
//#endregion
|
|
63035
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
63236
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpClientError.js
|
|
63036
63237
|
/**
|
|
63037
63238
|
* @since 4.0.0
|
|
63038
63239
|
*/
|
|
@@ -63171,7 +63372,7 @@ var EmptyBodyError = class extends TaggedError("EmptyBodyError") {
|
|
|
63171
63372
|
};
|
|
63172
63373
|
|
|
63173
63374
|
//#endregion
|
|
63174
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
63375
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/UrlParams.js
|
|
63175
63376
|
/**
|
|
63176
63377
|
* @since 4.0.0
|
|
63177
63378
|
*/
|
|
@@ -63384,7 +63585,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
|
|
|
63384
63585
|
})));
|
|
63385
63586
|
|
|
63386
63587
|
//#endregion
|
|
63387
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
63588
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpBody.js
|
|
63388
63589
|
/**
|
|
63389
63590
|
* @since 4.0.0
|
|
63390
63591
|
*/
|
|
@@ -63532,7 +63733,7 @@ var Stream = class extends Proto$3 {
|
|
|
63532
63733
|
const stream$3 = (body, contentType, contentLength) => new Stream(body, contentType ?? "application/octet-stream", contentLength);
|
|
63533
63734
|
|
|
63534
63735
|
//#endregion
|
|
63535
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
63736
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpClientRequest.js
|
|
63536
63737
|
const TypeId$13 = "~effect/http/HttpClientRequest";
|
|
63537
63738
|
const Proto$2 = {
|
|
63538
63739
|
[TypeId$13]: TypeId$13,
|
|
@@ -63678,7 +63879,7 @@ const setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
63678
63879
|
const bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput(input))));
|
|
63679
63880
|
|
|
63680
63881
|
//#endregion
|
|
63681
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
63882
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
|
|
63682
63883
|
/**
|
|
63683
63884
|
* @since 4.0.0
|
|
63684
63885
|
*/
|
|
@@ -63730,7 +63931,7 @@ const inspect = (self, that) => {
|
|
|
63730
63931
|
};
|
|
63731
63932
|
|
|
63732
63933
|
//#endregion
|
|
63733
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
63934
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpClientResponse.js
|
|
63734
63935
|
/**
|
|
63735
63936
|
* @since 4.0.0
|
|
63736
63937
|
*/
|
|
@@ -63854,7 +64055,7 @@ var WebHttpClientResponse = class extends Class$3 {
|
|
|
63854
64055
|
};
|
|
63855
64056
|
|
|
63856
64057
|
//#endregion
|
|
63857
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
64058
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpMethod.js
|
|
63858
64059
|
/**
|
|
63859
64060
|
* @since 4.0.0
|
|
63860
64061
|
*/
|
|
@@ -63870,7 +64071,7 @@ const allShort = [
|
|
|
63870
64071
|
];
|
|
63871
64072
|
|
|
63872
64073
|
//#endregion
|
|
63873
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
64074
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpTraceContext.js
|
|
63874
64075
|
/**
|
|
63875
64076
|
* @since 4.0.0
|
|
63876
64077
|
*/
|
|
@@ -63939,7 +64140,7 @@ const w3c = (headers) => {
|
|
|
63939
64140
|
};
|
|
63940
64141
|
|
|
63941
64142
|
//#endregion
|
|
63942
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
64143
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpClient.js
|
|
63943
64144
|
const TypeId$10 = "~effect/http/HttpClient";
|
|
63944
64145
|
/**
|
|
63945
64146
|
* @since 4.0.0
|
|
@@ -64782,7 +64983,7 @@ const httpMethods = [
|
|
|
64782
64983
|
const make$17 = make$18;
|
|
64783
64984
|
|
|
64784
64985
|
//#endregion
|
|
64785
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
64986
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/Template.js
|
|
64786
64987
|
/**
|
|
64787
64988
|
* @since 4.0.0
|
|
64788
64989
|
*/
|
|
@@ -64832,7 +65033,7 @@ function isSuccess$1(u) {
|
|
|
64832
65033
|
}
|
|
64833
65034
|
|
|
64834
65035
|
//#endregion
|
|
64835
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
65036
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpServerResponse.js
|
|
64836
65037
|
/**
|
|
64837
65038
|
* @since 4.0.0
|
|
64838
65039
|
*/
|
|
@@ -64936,7 +65137,7 @@ const makeResponse = (options) => {
|
|
|
64936
65137
|
};
|
|
64937
65138
|
|
|
64938
65139
|
//#endregion
|
|
64939
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
65140
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
|
|
64940
65141
|
/**
|
|
64941
65142
|
* @since 4.0.0
|
|
64942
65143
|
*/
|
|
@@ -64974,7 +65175,7 @@ const toResponseOrElseDefect = (u, orElse) => {
|
|
|
64974
65175
|
};
|
|
64975
65176
|
|
|
64976
65177
|
//#endregion
|
|
64977
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
65178
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpServerError.js
|
|
64978
65179
|
/**
|
|
64979
65180
|
* @since 4.0.0
|
|
64980
65181
|
*/
|
|
@@ -65164,7 +65365,7 @@ const exitResponse = (exit) => {
|
|
|
65164
65365
|
};
|
|
65165
65366
|
|
|
65166
65367
|
//#endregion
|
|
65167
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
65368
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/socket/Socket.js
|
|
65168
65369
|
/**
|
|
65169
65370
|
* @since 4.0.0
|
|
65170
65371
|
* @category Type IDs
|
|
@@ -66300,7 +66501,7 @@ const defaultIsFile = defaultIsFile$1;
|
|
|
66300
66501
|
const decodeField = decodeField$1;
|
|
66301
66502
|
|
|
66302
66503
|
//#endregion
|
|
66303
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
66504
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/Multipart.js
|
|
66304
66505
|
/**
|
|
66305
66506
|
* @since 4.0.0
|
|
66306
66507
|
*/
|
|
@@ -66556,7 +66757,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
|
|
|
66556
66757
|
const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
|
|
66557
66758
|
|
|
66558
66759
|
//#endregion
|
|
66559
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
66760
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpServerRequest.js
|
|
66560
66761
|
/**
|
|
66561
66762
|
* @since 4.0.0
|
|
66562
66763
|
* @category Type IDs
|
|
@@ -66709,12 +66910,12 @@ const toURL = (self) => {
|
|
|
66709
66910
|
};
|
|
66710
66911
|
|
|
66711
66912
|
//#endregion
|
|
66712
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
66913
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/internal/preResponseHandler.js
|
|
66713
66914
|
/** @internal */
|
|
66714
66915
|
const requestPreResponseHandlers = /* @__PURE__ */ new WeakMap();
|
|
66715
66916
|
|
|
66716
66917
|
//#endregion
|
|
66717
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
66918
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpMiddleware.js
|
|
66718
66919
|
/**
|
|
66719
66920
|
* @since 4.0.0
|
|
66720
66921
|
*/
|
|
@@ -66814,7 +67015,7 @@ const tracer = /* @__PURE__ */ make$11((httpApp) => withFiber((fiber) => {
|
|
|
66814
67015
|
}));
|
|
66815
67016
|
|
|
66816
67017
|
//#endregion
|
|
66817
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
67018
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpEffect.js
|
|
66818
67019
|
/**
|
|
66819
67020
|
* @since 4.0.0
|
|
66820
67021
|
* @category combinators
|
|
@@ -66888,7 +67089,7 @@ const scoped = (effect) => withFiber((fiber) => {
|
|
|
66888
67089
|
});
|
|
66889
67090
|
|
|
66890
67091
|
//#endregion
|
|
66891
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
67092
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/Etag.js
|
|
66892
67093
|
/**
|
|
66893
67094
|
* @since 4.0.0
|
|
66894
67095
|
*/
|
|
@@ -66952,7 +67153,7 @@ const layerWeak = /* @__PURE__ */ succeed$2(Generator)({
|
|
|
66952
67153
|
});
|
|
66953
67154
|
|
|
66954
67155
|
//#endregion
|
|
66955
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
67156
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpPlatform.js
|
|
66956
67157
|
/**
|
|
66957
67158
|
* @since 4.0.0
|
|
66958
67159
|
*/
|
|
@@ -67019,7 +67220,7 @@ const layer$14 = /* @__PURE__ */ effect$1(HttpPlatform)(flatMap$2(FileSystem.asE
|
|
|
67019
67220
|
}))).pipe(/* @__PURE__ */ provide$3(layerWeak));
|
|
67020
67221
|
|
|
67021
67222
|
//#endregion
|
|
67022
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
67223
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpServer.js
|
|
67023
67224
|
/**
|
|
67024
67225
|
* @since 4.0.0
|
|
67025
67226
|
*/
|
|
@@ -67082,7 +67283,7 @@ const makeTestClient = /* @__PURE__ */ gen(function* () {
|
|
|
67082
67283
|
const layerTestClient = /* @__PURE__ */ effect$1(HttpClient)(makeTestClient);
|
|
67083
67284
|
|
|
67084
67285
|
//#endregion
|
|
67085
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
67286
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/HttpRouter.js
|
|
67086
67287
|
/**
|
|
67087
67288
|
* @since 4.0.0
|
|
67088
67289
|
*/
|
|
@@ -70949,7 +71150,7 @@ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
|
|
|
70949
71150
|
var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
|
|
70950
71151
|
|
|
70951
71152
|
//#endregion
|
|
70952
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
71153
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
|
|
70953
71154
|
/**
|
|
70954
71155
|
* @since 1.0.0
|
|
70955
71156
|
*/
|
|
@@ -71206,7 +71407,7 @@ const utimes = /* @__PURE__ */ (() => {
|
|
|
71206
71407
|
return (path, atime, mtime) => nodeUtimes(path, atime, mtime);
|
|
71207
71408
|
})();
|
|
71208
71409
|
const watchNode = (path) => callback((queue) => acquireRelease(sync(() => {
|
|
71209
|
-
const watcher = NFS.watch(path, {}, (event, path) => {
|
|
71410
|
+
const watcher = NFS.watch(path, { recursive: true }, (event, path) => {
|
|
71210
71411
|
if (!path) return;
|
|
71211
71412
|
switch (event) {
|
|
71212
71413
|
case "rename":
|
|
@@ -71299,7 +71500,7 @@ const makeFileSystem = /* @__PURE__ */ map$8(/* @__PURE__ */ serviceOption(Watch
|
|
|
71299
71500
|
const layer$12 = /* @__PURE__ */ effect$1(FileSystem)(makeFileSystem);
|
|
71300
71501
|
|
|
71301
71502
|
//#endregion
|
|
71302
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
71503
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
71303
71504
|
/**
|
|
71304
71505
|
* @since 1.0.0
|
|
71305
71506
|
*/
|
|
@@ -71310,7 +71511,7 @@ const layer$12 = /* @__PURE__ */ effect$1(FileSystem)(makeFileSystem);
|
|
|
71310
71511
|
const layer$11 = layer$12;
|
|
71311
71512
|
|
|
71312
71513
|
//#endregion
|
|
71313
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
71514
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
|
|
71314
71515
|
/**
|
|
71315
71516
|
* @since 1.0.0
|
|
71316
71517
|
*/
|
|
@@ -71381,7 +71582,7 @@ var NodeHttpIncomingMessage = class extends Class$3 {
|
|
|
71381
71582
|
};
|
|
71382
71583
|
|
|
71383
71584
|
//#endregion
|
|
71384
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
71585
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/http/FetchHttpClient.js
|
|
71385
71586
|
/**
|
|
71386
71587
|
* @since 4.0.0
|
|
71387
71588
|
*/
|
|
@@ -71428,7 +71629,7 @@ const fetch$1 = /* @__PURE__ */ make$19((request, url, signal, fiber) => {
|
|
|
71428
71629
|
const layer$10 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed$1(fetch$1));
|
|
71429
71630
|
|
|
71430
71631
|
//#endregion
|
|
71431
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
71632
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
|
|
71432
71633
|
/**
|
|
71433
71634
|
* @since 1.0.0
|
|
71434
71635
|
*/
|
|
@@ -71552,7 +71753,7 @@ var FileStream = class extends Readable {
|
|
|
71552
71753
|
};
|
|
71553
71754
|
|
|
71554
71755
|
//#endregion
|
|
71555
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
71756
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeMultipart.js
|
|
71556
71757
|
/**
|
|
71557
71758
|
* @since 1.0.0
|
|
71558
71759
|
*/
|
|
@@ -71648,7 +71849,7 @@ function convertError(cause) {
|
|
|
71648
71849
|
}
|
|
71649
71850
|
|
|
71650
71851
|
//#endregion
|
|
71651
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
71852
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
71652
71853
|
/**
|
|
71653
71854
|
* @since 1.0.0
|
|
71654
71855
|
*/
|
|
@@ -71700,7 +71901,7 @@ const layer$8 = /* @__PURE__ */ succeed$2(Path$1)({
|
|
|
71700
71901
|
});
|
|
71701
71902
|
|
|
71702
71903
|
//#endregion
|
|
71703
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
71904
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodePath.js
|
|
71704
71905
|
/**
|
|
71705
71906
|
* @since 1.0.0
|
|
71706
71907
|
*/
|
|
@@ -71721,7 +71922,7 @@ const layerPosix = layerPosix$1;
|
|
|
71721
71922
|
const layerWin32 = layerWin32$1;
|
|
71722
71923
|
|
|
71723
71924
|
//#endregion
|
|
71724
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
71925
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
71725
71926
|
/**
|
|
71726
71927
|
* @since 1.0.0
|
|
71727
71928
|
*/
|
|
@@ -71761,7 +71962,7 @@ const layer$6 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$25({
|
|
|
71761
71962
|
}));
|
|
71762
71963
|
|
|
71763
71964
|
//#endregion
|
|
71764
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
71965
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
71765
71966
|
/**
|
|
71766
71967
|
* @since 1.0.0
|
|
71767
71968
|
*/
|
|
@@ -71772,7 +71973,7 @@ const layer$6 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$25({
|
|
|
71772
71973
|
const layer$5 = layer$6;
|
|
71773
71974
|
|
|
71774
71975
|
//#endregion
|
|
71775
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
71976
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
71776
71977
|
/**
|
|
71777
71978
|
* @since 1.0.0
|
|
71778
71979
|
* @category constructors
|
|
@@ -71843,7 +72044,7 @@ function defaultShouldQuit(input) {
|
|
|
71843
72044
|
}
|
|
71844
72045
|
|
|
71845
72046
|
//#endregion
|
|
71846
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
72047
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
71847
72048
|
/**
|
|
71848
72049
|
* @since 1.0.0
|
|
71849
72050
|
*/
|
|
@@ -71859,7 +72060,7 @@ const make$4 = make$5;
|
|
|
71859
72060
|
const layer$3 = layer$4;
|
|
71860
72061
|
|
|
71861
72062
|
//#endregion
|
|
71862
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
72063
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
71863
72064
|
/**
|
|
71864
72065
|
* @since 1.0.0
|
|
71865
72066
|
* @category layer
|
|
@@ -71867,7 +72068,7 @@ const layer$3 = layer$4;
|
|
|
71867
72068
|
const layer$2 = /* @__PURE__ */ provideMerge(layer$16, /* @__PURE__ */ mergeAll(layer$11, layer$7, layer$5, layer$3));
|
|
71868
72069
|
|
|
71869
72070
|
//#endregion
|
|
71870
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
72071
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpServer.js
|
|
71871
72072
|
/**
|
|
71872
72073
|
* @since 1.0.0
|
|
71873
72074
|
*/
|
|
@@ -72158,7 +72359,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
|
|
|
72158
72359
|
});
|
|
72159
72360
|
|
|
72160
72361
|
//#endregion
|
|
72161
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
72362
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.15_effect@4.0.0-beta.15/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
72162
72363
|
/**
|
|
72163
72364
|
* @since 1.0.0
|
|
72164
72365
|
* @category Run main
|
|
@@ -72185,7 +72386,7 @@ const runMain$1 = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
|
|
|
72185
72386
|
});
|
|
72186
72387
|
|
|
72187
72388
|
//#endregion
|
|
72188
|
-
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
72389
|
+
//#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.15_effect@4.0.0-beta.15_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
72189
72390
|
/**
|
|
72190
72391
|
* @since 1.0.0
|
|
72191
72392
|
*/
|
|
@@ -72219,7 +72420,7 @@ const runMain$1 = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
|
|
|
72219
72420
|
const runMain = runMain$1;
|
|
72220
72421
|
|
|
72221
72422
|
//#endregion
|
|
72222
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
72423
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/persistence/PersistedCache.js
|
|
72223
72424
|
/**
|
|
72224
72425
|
* @since 4.0.0
|
|
72225
72426
|
*/
|
|
@@ -72580,7 +72781,7 @@ const CliAgentFromId = Literals(allCliAgents.map((agent) => agent.id)).pipe(deco
|
|
|
72580
72781
|
})));
|
|
72581
72782
|
|
|
72582
72783
|
//#endregion
|
|
72583
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
72784
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/reactivity/AsyncResult.js
|
|
72584
72785
|
/**
|
|
72585
72786
|
* @since 4.0.0
|
|
72586
72787
|
*/
|
|
@@ -72743,7 +72944,7 @@ const toExit = (self) => {
|
|
|
72743
72944
|
};
|
|
72744
72945
|
|
|
72745
72946
|
//#endregion
|
|
72746
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
72947
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
|
|
72747
72948
|
/**
|
|
72748
72949
|
* @since 4.0.0
|
|
72749
72950
|
*/
|
|
@@ -72977,8 +73178,8 @@ var RegistryImpl = class {
|
|
|
72977
73178
|
const nodes = this.timeoutBuckets.get(bucket)[0];
|
|
72978
73179
|
this.timeoutBuckets.delete(bucket);
|
|
72979
73180
|
nodes.forEach((node) => {
|
|
72980
|
-
if (!node.canBeRemoved) return;
|
|
72981
73181
|
this.nodeTimeoutBucket.delete(node);
|
|
73182
|
+
if (!node.canBeRemoved) return;
|
|
72982
73183
|
this.nodes.delete(atomKey(node.atom));
|
|
72983
73184
|
this.onNodeRemoved?.(node);
|
|
72984
73185
|
this.#currentSweepTTL = node.atom.idleTTL ?? this.defaultIdleTTL;
|
|
@@ -73348,7 +73549,7 @@ function batchRebuildNode(node) {
|
|
|
73348
73549
|
}
|
|
73349
73550
|
|
|
73350
73551
|
//#endregion
|
|
73351
|
-
//#region node_modules/.pnpm/effect@4.0.0-beta.
|
|
73552
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.15/node_modules/effect/dist/unstable/reactivity/Atom.js
|
|
73352
73553
|
/**
|
|
73353
73554
|
* @since 4.0.0
|
|
73354
73555
|
*/
|
|
@@ -159096,6 +159297,8 @@ After making any changes, commit and push them to the same pull request.
|
|
|
159096
159297
|
postWork: () => void_$1,
|
|
159097
159298
|
autoMerge: fnUntraced(function* (options) {
|
|
159098
159299
|
const prd = yield* Prd;
|
|
159300
|
+
const source = yield* IssueSource;
|
|
159301
|
+
const projectId = yield* CurrentProjectId;
|
|
159099
159302
|
const worktree = options.worktree;
|
|
159100
159303
|
let prState = (yield* worktree.viewPrState()).pipe(filter$9((pr) => pr.state === "OPEN"));
|
|
159101
159304
|
yield* log$1("PR state", prState);
|
|
@@ -159105,7 +159308,15 @@ After making any changes, commit and push them to the same pull request.
|
|
|
159105
159308
|
yield* sleep(seconds(3));
|
|
159106
159309
|
prState = yield* worktree.viewPrState(prState.value.number);
|
|
159107
159310
|
yield* log$1("PR state after merge", prState);
|
|
159108
|
-
if (isSome(prState) && prState.value.state === "MERGED")
|
|
159311
|
+
if (isSome(prState) && prState.value.state === "MERGED") {
|
|
159312
|
+
const issue = yield* prd.findById(options.issueId);
|
|
159313
|
+
if (issue && issue.state !== "done") yield* source.updateIssue({
|
|
159314
|
+
projectId,
|
|
159315
|
+
issueId: options.issueId,
|
|
159316
|
+
state: "done"
|
|
159317
|
+
});
|
|
159318
|
+
return;
|
|
159319
|
+
}
|
|
159109
159320
|
yield* log$1("Flagging unmergable PR");
|
|
159110
159321
|
yield* prd.flagUnmergable({ issueId: options.issueId });
|
|
159111
159322
|
yield* worktree.exec`gh pr close -d`;
|
|
@@ -159382,11 +159593,11 @@ const runProject = fnUntraced(function* (options) {
|
|
|
159382
159593
|
}
|
|
159383
159594
|
yield* awaitEmpty(fibers);
|
|
159384
159595
|
}, (effect, options) => annotateLogs(effect, { project: options.project.id }));
|
|
159385
|
-
const iterations = integer("iterations").pipe(withDescription$1("Limit how many task iterations run per enabled project (default: unlimited). Use -i 1 to run a single iteration and exit."), withAlias("i"), withDefault(Number.POSITIVE_INFINITY));
|
|
159596
|
+
const iterations = integer("iterations").pipe(withDescription$1("Limit how many task iterations run per enabled project (default: unlimited). Use -i 1 to run a single iteration and exit."), withAlias$1("i"), withDefault(Number.POSITIVE_INFINITY));
|
|
159386
159597
|
const maxIterationMinutes = integer("max-minutes").pipe(withDescription$1("Timeout an iteration if execution (and review, if enabled) exceeds this many minutes (default: LALPH_MAX_MINUTES or 90)."), withFallbackConfig(int("LALPH_MAX_MINUTES")), withDefault(90));
|
|
159387
159598
|
const stallMinutes = integer("stall-minutes").pipe(withDescription$1("Fail an iteration if the agent stops responding for this many minutes (default: LALPH_STALL_MINUTES or 5)."), withFallbackConfig(int("LALPH_STALL_MINUTES")), withDefault(5));
|
|
159388
|
-
const specsDirectory = directory("specs").pipe(withDescription$1("Directory where plan specs are written and read (default: LALPH_SPECS or .specs)."), withAlias("s"), withFallbackConfig(string$1("LALPH_SPECS")), withDefault(".specs"));
|
|
159389
|
-
const verbose = boolean("verbose").pipe(withDescription$1("Increase log output for debugging. Use -v when you need detailed logs."), withAlias("v"));
|
|
159599
|
+
const specsDirectory = directory("specs").pipe(withDescription$1("Directory where plan specs are written and read (default: LALPH_SPECS or .specs)."), withAlias$1("s"), withFallbackConfig(string$1("LALPH_SPECS")), withDefault(".specs"));
|
|
159600
|
+
const verbose = boolean("verbose").pipe(withDescription$1("Increase log output for debugging. Use -v when you need detailed logs."), withAlias$1("v"));
|
|
159390
159601
|
const commandRoot = make$34("lalph", {
|
|
159391
159602
|
iterations,
|
|
159392
159603
|
maxIterationMinutes,
|
|
@@ -159533,9 +159744,9 @@ var Editor = class extends Service$1()("lalph/Editor", { make: gen(function* ()
|
|
|
159533
159744
|
|
|
159534
159745
|
//#endregion
|
|
159535
159746
|
//#region src/commands/plan.ts
|
|
159536
|
-
const dangerous = boolean("dangerous").pipe(withAlias("d"), withDescription$1("Skip permission prompts while generating the specification from your plan"));
|
|
159537
|
-
const withNewProject = boolean("new").pipe(withAlias("n"), withDescription$1("Create a new project (via prompts) before starting plan mode"));
|
|
159538
|
-
const file = file$1("file", { mustExist: true }).pipe(withAlias("f"), withDescription$1("Read the plan from a markdown file instead of opening an editor"), optional);
|
|
159747
|
+
const dangerous = boolean("dangerous").pipe(withAlias$1("d"), withDescription$1("Skip permission prompts while generating the specification from your plan"));
|
|
159748
|
+
const withNewProject = boolean("new").pipe(withAlias$1("n"), withDescription$1("Create a new project (via prompts) before starting plan mode"));
|
|
159749
|
+
const file = file$1("file", { mustExist: true }).pipe(withAlias$1("f"), withDescription$1("Read the plan from a markdown file instead of opening an editor"), optional);
|
|
159539
159750
|
const commandPlan = make$34("plan", {
|
|
159540
159751
|
dangerous,
|
|
159541
159752
|
withNewProject,
|
|
@@ -159669,8 +159880,7 @@ const handler$1 = flow(withHandler(fnUntraced(function* () {
|
|
|
159669
159880
|
console.log(`URL: ${created.url}`);
|
|
159670
159881
|
}).pipe(provide$1([layerProjectIdPrompt, CurrentIssueSource.layer]));
|
|
159671
159882
|
})), provide(Editor.layer));
|
|
159672
|
-
const commandIssue = make$34("issue").pipe(withDescription("Create a new issue in your editor."), handler$1);
|
|
159673
|
-
const commandIssueAlias = make$34("i").pipe(withDescription("Alias for 'issue' (create a new issue in your editor)."), handler$1);
|
|
159883
|
+
const commandIssue = make$34("issue").pipe(withDescription("Create a new issue in your editor."), withAlias("i"), handler$1);
|
|
159674
159884
|
|
|
159675
159885
|
//#endregion
|
|
159676
159886
|
//#region src/commands/edit.ts
|
|
@@ -159678,8 +159888,7 @@ const handler = withHandler(fnUntraced(function* () {
|
|
|
159678
159888
|
const prd = yield* Prd;
|
|
159679
159889
|
yield* (yield* Editor).edit(prd.path);
|
|
159680
159890
|
}, provide$1([Prd.layerLocalProvided.pipe(provideMerge(layerProjectIdPrompt)), Editor.layer])));
|
|
159681
|
-
const commandEdit = make$34("edit").pipe(withDescription("Open the selected project's .lalph/prd.yml in your editor."), handler);
|
|
159682
|
-
const commandEditAlias = make$34("e").pipe(withDescription("Alias for 'edit' (open the selected project's .lalph/prd.yml in your editor)."), handler);
|
|
159891
|
+
const commandEdit = make$34("edit").pipe(withDescription("Open the selected project's .lalph/prd.yml in your editor."), withAlias("e"), handler);
|
|
159683
159892
|
|
|
159684
159893
|
//#endregion
|
|
159685
159894
|
//#region src/commands/source.ts
|
|
@@ -159687,7 +159896,7 @@ const commandSource = make$34("source").pipe(withDescription("Select the issue s
|
|
|
159687
159896
|
|
|
159688
159897
|
//#endregion
|
|
159689
159898
|
//#region package.json
|
|
159690
|
-
var version = "0.3.
|
|
159899
|
+
var version = "0.3.33";
|
|
159691
159900
|
|
|
159692
159901
|
//#endregion
|
|
159693
159902
|
//#region src/commands/projects/ls.ts
|
|
@@ -159766,8 +159975,7 @@ const subcommands$1 = withSubcommands([
|
|
|
159766
159975
|
commandProjectsToggle,
|
|
159767
159976
|
commandProjectsRm
|
|
159768
159977
|
]);
|
|
159769
|
-
const commandProjects = make$34("projects").pipe(withDescription("Manage projects and their execution settings (enabled state, concurrency, target branch, git flow, review agent). Use 'ls' to inspect and 'add', 'edit', or 'toggle' to configure."), subcommands$1);
|
|
159770
|
-
const commandProjectsAlias = make$34("p").pipe(withDescription("Alias for 'projects'."), subcommands$1);
|
|
159978
|
+
const commandProjects = make$34("projects").pipe(withDescription("Manage projects and their execution settings (enabled state, concurrency, target branch, git flow, review agent). Use 'ls' to inspect and 'add', 'edit', or 'toggle' to configure."), withAlias("p"), subcommands$1);
|
|
159771
159979
|
|
|
159772
159980
|
//#endregion
|
|
159773
159981
|
//#region src/commands/sh.ts
|
|
@@ -159837,8 +160045,7 @@ const subcommands = withSubcommands([
|
|
|
159837
160045
|
commandAgentsEdit,
|
|
159838
160046
|
commandAgentsRm
|
|
159839
160047
|
]);
|
|
159840
|
-
const commandAgents = make$34("agents").pipe(withDescription("Manage agent presets used to run tasks. Use 'ls' to inspect presets and 'add'/'edit' to configure agents, arguments, and any issue-source options."), subcommands);
|
|
159841
|
-
const commandAgentsAlias = make$34("a").pipe(withDescription("Alias for 'agents' (manage agent presets used to run tasks)."), subcommands);
|
|
160048
|
+
const commandAgents = make$34("agents").pipe(withDescription("Manage agent presets used to run tasks. Use 'ls' to inspect presets and 'add'/'edit' to configure agents, arguments, and any issue-source options."), withAlias("a"), subcommands);
|
|
159842
160049
|
|
|
159843
160050
|
//#endregion
|
|
159844
160051
|
//#region src/cli.ts
|
|
@@ -159849,11 +160056,7 @@ commandRoot.pipe(withSubcommands([
|
|
|
159849
160056
|
commandSh,
|
|
159850
160057
|
commandSource,
|
|
159851
160058
|
commandAgents,
|
|
159852
|
-
commandProjects
|
|
159853
|
-
commandAgentsAlias,
|
|
159854
|
-
commandEditAlias,
|
|
159855
|
-
commandIssueAlias,
|
|
159856
|
-
commandProjectsAlias
|
|
160059
|
+
commandProjects
|
|
159857
160060
|
]), provide(Settings.layer), provide(TracingLayer), provide(({ verbose }) => {
|
|
159858
160061
|
if (!verbose) return empty$13;
|
|
159859
160062
|
const logLevel = succeed$2(MinimumLogLevel, "All");
|