@kitman-sh/cli 0.12.0-rc.8 → 0.12.1
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/{chunk-dh09wyed.js → chunk-0367j54r.js} +42 -42
- package/dist/{chunk-y7vjk8vv.js → chunk-0h49y8gf.js} +165 -31
- package/dist/{chunk-3kxwb7qn.js → chunk-13yrey2v.js} +7 -7
- package/dist/{chunk-7959aeck.js → chunk-1wbdexzg.js} +14 -6
- package/dist/{chunk-jg8n8z0z.js → chunk-4d4n8qjs.js} +4 -4
- package/dist/{chunk-8sz25ptv.js → chunk-5zhh41gb.js} +4 -4
- package/dist/{chunk-e711ebdj.js → chunk-5zth85pj.js} +2 -2
- package/dist/{chunk-6pqxsnk1.js → chunk-711r4pfw.js} +20 -20
- package/dist/{chunk-9q7qc1dg.js → chunk-adbzjs9g.js} +1 -1
- package/dist/{chunk-det0tmx7.js → chunk-beagq0pp.js} +27 -17
- package/dist/{chunk-9c9vrbh4.js → chunk-c7253rcg.js} +171 -132
- package/dist/{chunk-mmpcdj8f.js → chunk-c76ngzr6.js} +7 -7
- package/dist/{chunk-vkchn89k.js → chunk-cbpb2rww.js} +7 -7
- package/dist/{chunk-jwc8bdga.js → chunk-fs72937p.js} +5 -5
- package/dist/{chunk-mm2m3bys.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-bz4bp0q7.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-3cgshf16.js → chunk-hvwkpnv5.js} +24 -24
- package/dist/{chunk-ey4mf341.js → chunk-kvt8cr8m.js} +6 -6
- package/dist/{chunk-892qrkb3.js → chunk-mtkstrh3.js} +60 -14
- package/dist/{chunk-s8m2tzdr.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-vrms6e1m.js → chunk-rgby07sa.js} +4 -4
- package/dist/{chunk-scb6qgy2.js → chunk-xmdjysn2.js} +52 -24
- package/dist/{chunk-skqn4h13.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-d8qcmqh5.js → chunk-y39h1gzp.js} +4 -4
- package/dist/{chunk-x3cc7dfc.js → chunk-zw3gf6r5.js} +40 -226
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
|
|
|
1331
1331
|
});
|
|
1332
1332
|
|
|
1333
1333
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
|
|
1334
|
-
var
|
|
1334
|
+
var make14 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1335
1335
|
var isStrictEquivalent = (x, y) => x === y;
|
|
1336
1336
|
var strictEqual = () => isStrictEquivalent;
|
|
1337
1337
|
function Tuple(elements) {
|
|
1338
|
-
return
|
|
1338
|
+
return make14((self, that) => {
|
|
1339
1339
|
if (self.length !== that.length) {
|
|
1340
1340
|
return false;
|
|
1341
1341
|
}
|
|
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
1350
|
function Array_(item) {
|
|
1351
|
-
return
|
|
1351
|
+
return make14((self, that) => {
|
|
1352
1352
|
if (self.length !== that.length)
|
|
1353
1353
|
return false;
|
|
1354
1354
|
for (let i = 0;i < self.length; i++) {
|
|
@@ -1579,7 +1579,7 @@ var ServiceProto = {
|
|
|
1579
1579
|
return self;
|
|
1580
1580
|
},
|
|
1581
1581
|
context(self) {
|
|
1582
|
-
return
|
|
1582
|
+
return make15(this, self);
|
|
1583
1583
|
},
|
|
1584
1584
|
use(f) {
|
|
1585
1585
|
return withFiber((fiber) => f(get4(fiber.context, this)));
|
|
@@ -1683,7 +1683,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1683
1683
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1684
1684
|
var empty3 = () => emptyContext2;
|
|
1685
1685
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1686
|
-
var
|
|
1686
|
+
var make15 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1687
1687
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1688
1688
|
var addUnsafe = (self, key, service) => {
|
|
1689
1689
|
const impl = self;
|
|
@@ -3029,7 +3029,7 @@ class FiberImpl {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
let cause = causeInterrupt(fiberId);
|
|
3031
3031
|
if (this.cache.stackFrame) {
|
|
3032
|
-
cause = causeAnnotate(cause,
|
|
3032
|
+
cause = causeAnnotate(cause, make15(StackTraceKey, this.cache.stackFrame));
|
|
3033
3033
|
}
|
|
3034
3034
|
if (annotations) {
|
|
3035
3035
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -5126,7 +5126,7 @@ var DeferredImpl = function() {
|
|
|
5126
5126
|
};
|
|
5127
5127
|
DeferredImpl.prototype = DeferredProto;
|
|
5128
5128
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5129
|
-
var
|
|
5129
|
+
var make16 = () => sync(() => makeUnsafe5());
|
|
5130
5130
|
var _await = (self) => callback2((resume) => {
|
|
5131
5131
|
if (self.effect)
|
|
5132
5132
|
return resume(self.effect);
|
|
@@ -5274,9 +5274,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5274
5274
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5275
5275
|
var succeed5 = function() {
|
|
5276
5276
|
if (arguments.length === 1) {
|
|
5277
|
-
return (resource) => succeedContext(
|
|
5277
|
+
return (resource) => succeedContext(make15(arguments[0], resource));
|
|
5278
5278
|
}
|
|
5279
|
-
return succeedContext(
|
|
5279
|
+
return succeedContext(make15(arguments[0], arguments[1]));
|
|
5280
5280
|
};
|
|
5281
5281
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5282
5282
|
var effect = function() {
|
|
@@ -5285,7 +5285,7 @@ var effect = function() {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
return effectImpl(arguments[0], arguments[1]);
|
|
5287
5287
|
};
|
|
5288
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5288
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make15(service, value)));
|
|
5289
5289
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5290
5290
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5291
5291
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -5752,150 +5752,6 @@ var flatMapEager = flatMapEager2;
|
|
|
5752
5752
|
var catchEager = catchEager2;
|
|
5753
5753
|
var fnUntracedEager2 = fnUntracedEager;
|
|
5754
5754
|
|
|
5755
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
5756
|
-
var BigInt2 = globalThis.BigInt;
|
|
5757
|
-
var toNumber = (b) => {
|
|
5758
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
5759
|
-
return none();
|
|
5760
|
-
}
|
|
5761
|
-
return some(Number(b));
|
|
5762
|
-
};
|
|
5763
|
-
|
|
5764
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
5765
|
-
var bigint03 = /* @__PURE__ */ BigInt(0);
|
|
5766
|
-
var bigint12 = /* @__PURE__ */ BigInt(1);
|
|
5767
|
-
var decimalBase = /* @__PURE__ */ BigInt(1000);
|
|
5768
|
-
var binaryBase = /* @__PURE__ */ BigInt(1024);
|
|
5769
|
-
var decimalUnits = [{
|
|
5770
|
-
symbol: "B",
|
|
5771
|
-
factor: bigint12,
|
|
5772
|
-
names: ["B", "byte", "bytes"]
|
|
5773
|
-
}, {
|
|
5774
|
-
symbol: "kB",
|
|
5775
|
-
factor: decimalBase,
|
|
5776
|
-
names: ["kB", "kilobyte", "kilobytes"]
|
|
5777
|
-
}, {
|
|
5778
|
-
symbol: "MB",
|
|
5779
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(2),
|
|
5780
|
-
names: ["MB", "megabyte", "megabytes"]
|
|
5781
|
-
}, {
|
|
5782
|
-
symbol: "GB",
|
|
5783
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(3),
|
|
5784
|
-
names: ["GB", "gigabyte", "gigabytes"]
|
|
5785
|
-
}, {
|
|
5786
|
-
symbol: "TB",
|
|
5787
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(4),
|
|
5788
|
-
names: ["TB", "terabyte", "terabytes"]
|
|
5789
|
-
}, {
|
|
5790
|
-
symbol: "PB",
|
|
5791
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(5),
|
|
5792
|
-
names: ["PB", "petabyte", "petabytes"]
|
|
5793
|
-
}, {
|
|
5794
|
-
symbol: "EB",
|
|
5795
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(6),
|
|
5796
|
-
names: ["EB", "exabyte", "exabytes"]
|
|
5797
|
-
}, {
|
|
5798
|
-
symbol: "ZB",
|
|
5799
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(7),
|
|
5800
|
-
names: ["ZB", "zettabyte", "zettabytes"]
|
|
5801
|
-
}, {
|
|
5802
|
-
symbol: "YB",
|
|
5803
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(8),
|
|
5804
|
-
names: ["YB", "yottabyte", "yottabytes"]
|
|
5805
|
-
}, {
|
|
5806
|
-
symbol: "RB",
|
|
5807
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(9),
|
|
5808
|
-
names: ["RB", "ronnabyte", "ronnabytes"]
|
|
5809
|
-
}, {
|
|
5810
|
-
symbol: "QB",
|
|
5811
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(10),
|
|
5812
|
-
names: ["QB", "quettabyte", "quettabytes"]
|
|
5813
|
-
}];
|
|
5814
|
-
var binaryUnits = [decimalUnits[0], {
|
|
5815
|
-
symbol: "KiB",
|
|
5816
|
-
factor: binaryBase,
|
|
5817
|
-
names: ["KiB", "kibibyte", "kibibytes"]
|
|
5818
|
-
}, {
|
|
5819
|
-
symbol: "MiB",
|
|
5820
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(2),
|
|
5821
|
-
names: ["MiB", "mebibyte", "mebibytes"]
|
|
5822
|
-
}, {
|
|
5823
|
-
symbol: "GiB",
|
|
5824
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(3),
|
|
5825
|
-
names: ["GiB", "gibibyte", "gibibytes"]
|
|
5826
|
-
}, {
|
|
5827
|
-
symbol: "TiB",
|
|
5828
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(4),
|
|
5829
|
-
names: ["TiB", "tebibyte", "tebibytes"]
|
|
5830
|
-
}, {
|
|
5831
|
-
symbol: "PiB",
|
|
5832
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(5),
|
|
5833
|
-
names: ["PiB", "pebibyte", "pebibytes"]
|
|
5834
|
-
}, {
|
|
5835
|
-
symbol: "EiB",
|
|
5836
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(6),
|
|
5837
|
-
names: ["EiB", "exbibyte", "exbibytes"]
|
|
5838
|
-
}, {
|
|
5839
|
-
symbol: "ZiB",
|
|
5840
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(7),
|
|
5841
|
-
names: ["ZiB", "zebibyte", "zebibytes"]
|
|
5842
|
-
}, {
|
|
5843
|
-
symbol: "YiB",
|
|
5844
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(8),
|
|
5845
|
-
names: ["YiB", "yobibyte", "yobibytes"]
|
|
5846
|
-
}];
|
|
5847
|
-
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
5848
|
-
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
5849
|
-
var make4 = (value) => value;
|
|
5850
|
-
var invalid2 = (message) => {
|
|
5851
|
-
throw new Error(`Invalid ByteSize: ${message}`);
|
|
5852
|
-
};
|
|
5853
|
-
var fromNumber = (input) => {
|
|
5854
|
-
if (!Number.isSafeInteger(input) || input < 0) {
|
|
5855
|
-
return invalid2(`expected a non-negative safe integer, received ${input}`);
|
|
5856
|
-
}
|
|
5857
|
-
return make4(BigInt(input));
|
|
5858
|
-
};
|
|
5859
|
-
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
5860
|
-
var scaleDecimal = (quantity, factor) => {
|
|
5861
|
-
const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
|
|
5862
|
-
if (match === null)
|
|
5863
|
-
return;
|
|
5864
|
-
const fraction = match[2] ?? "";
|
|
5865
|
-
const numerator = BigInt(match[1] + fraction) * factor;
|
|
5866
|
-
const shift = Number(match[3] ?? 0) - fraction.length;
|
|
5867
|
-
if (shift >= 0)
|
|
5868
|
-
return numerator * BigInt(10) ** BigInt(shift);
|
|
5869
|
-
const scale = BigInt(10) ** BigInt(-shift);
|
|
5870
|
-
return numerator % scale === bigint03 ? numerator / scale : undefined;
|
|
5871
|
-
};
|
|
5872
|
-
var fromStringUnsafe = (input) => {
|
|
5873
|
-
const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
|
|
5874
|
-
if (match === null)
|
|
5875
|
-
return invalid2(`unsupported syntax ${JSON.stringify(input)}`);
|
|
5876
|
-
const unit = unitsByName.get(match[2]);
|
|
5877
|
-
if (unit === undefined)
|
|
5878
|
-
return invalid2(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
5879
|
-
const value = scaleDecimal(match[1], unit.factor);
|
|
5880
|
-
if (value === undefined)
|
|
5881
|
-
return invalid2(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
5882
|
-
return make4(value);
|
|
5883
|
-
};
|
|
5884
|
-
var fromInputUnsafe2 = (input) => {
|
|
5885
|
-
switch (typeof input) {
|
|
5886
|
-
case "bigint":
|
|
5887
|
-
if (input < bigint03)
|
|
5888
|
-
return invalid2(`expected a non-negative bigint, received ${input}`);
|
|
5889
|
-
return make4(input);
|
|
5890
|
-
case "number":
|
|
5891
|
-
return fromNumber(input);
|
|
5892
|
-
case "string":
|
|
5893
|
-
return fromStringUnsafe(input);
|
|
5894
|
-
}
|
|
5895
|
-
return invalid2(`unsupported input ${input}`);
|
|
5896
|
-
};
|
|
5897
|
-
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
5898
|
-
|
|
5899
5755
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/encoding/Base64.js
|
|
5900
5756
|
var encode2 = (input) => encodeBytes(typeof input === "string" ? encoder2.encode(input) : input);
|
|
5901
5757
|
var decode = (str) => {
|
|
@@ -6009,48 +5865,6 @@ var getCode = (charCode) => {
|
|
|
6009
5865
|
return codes[charCode];
|
|
6010
5866
|
};
|
|
6011
5867
|
|
|
6012
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
6013
|
-
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
6014
|
-
var value2 = (self) => {
|
|
6015
|
-
if (redactedRegistry.has(self)) {
|
|
6016
|
-
return redactedRegistry.get(self);
|
|
6017
|
-
} else {
|
|
6018
|
-
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
6019
|
-
}
|
|
6020
|
-
};
|
|
6021
|
-
|
|
6022
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
6023
|
-
var TypeId8 = "~effect/Redacted";
|
|
6024
|
-
var isRedacted = (u) => hasProperty(u, TypeId8);
|
|
6025
|
-
var make16 = (value, options) => {
|
|
6026
|
-
const self = Object.create(Proto2);
|
|
6027
|
-
if (options?.label) {
|
|
6028
|
-
self.label = options.label;
|
|
6029
|
-
}
|
|
6030
|
-
redactedRegistry.set(self, value);
|
|
6031
|
-
return self;
|
|
6032
|
-
};
|
|
6033
|
-
var Proto2 = {
|
|
6034
|
-
[TypeId8]: {
|
|
6035
|
-
_A: (_) => _
|
|
6036
|
-
},
|
|
6037
|
-
label: undefined,
|
|
6038
|
-
...PipeInspectableProto,
|
|
6039
|
-
toJSON() {
|
|
6040
|
-
return this.toString();
|
|
6041
|
-
},
|
|
6042
|
-
toString() {
|
|
6043
|
-
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
6044
|
-
},
|
|
6045
|
-
[symbol]() {
|
|
6046
|
-
return hash(redactedRegistry.get(this));
|
|
6047
|
-
},
|
|
6048
|
-
[symbol2](that) {
|
|
6049
|
-
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
6050
|
-
}
|
|
6051
|
-
};
|
|
6052
|
-
var value = value2;
|
|
6053
|
-
|
|
6054
5868
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
|
|
6055
5869
|
function resolve(ast) {
|
|
6056
5870
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -6074,16 +5888,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
|
|
|
6074
5888
|
var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
|
|
6075
5889
|
|
|
6076
5890
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
|
|
6077
|
-
var
|
|
5891
|
+
var TypeId8 = "~effect/SchemaIssue/Issue";
|
|
6078
5892
|
function isIssue(u) {
|
|
6079
|
-
return hasProperty(u,
|
|
5893
|
+
return hasProperty(u, TypeId8) && u[TypeId8] === TypeId8;
|
|
6080
5894
|
}
|
|
6081
5895
|
function hasInput(issue) {
|
|
6082
5896
|
return Object.hasOwn(issue, "input");
|
|
6083
5897
|
}
|
|
6084
5898
|
|
|
6085
5899
|
class IssueNodeImpl {
|
|
6086
|
-
[
|
|
5900
|
+
[TypeId8] = TypeId8;
|
|
6087
5901
|
constructor(input, options) {
|
|
6088
5902
|
if (options?.reportInput === true && input !== missing) {
|
|
6089
5903
|
this.input = input;
|
|
@@ -6457,9 +6271,9 @@ function setContent(operation, content) {
|
|
|
6457
6271
|
}
|
|
6458
6272
|
|
|
6459
6273
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
|
|
6460
|
-
var
|
|
6274
|
+
var TypeId9 = "~effect/SchemaTransformation/Transformation";
|
|
6461
6275
|
var Transformation = class extends Class3 {
|
|
6462
|
-
[
|
|
6276
|
+
[TypeId9] = TypeId9;
|
|
6463
6277
|
_tag = "Transformation";
|
|
6464
6278
|
decode;
|
|
6465
6279
|
encode;
|
|
@@ -6473,7 +6287,7 @@ var Transformation = class extends Class3 {
|
|
|
6473
6287
|
}
|
|
6474
6288
|
};
|
|
6475
6289
|
function isTransformation(u) {
|
|
6476
|
-
return hasProperty(u,
|
|
6290
|
+
return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
|
|
6477
6291
|
}
|
|
6478
6292
|
var makeTransformation = (options) => {
|
|
6479
6293
|
if (isTransformation(options)) {
|
|
@@ -6593,10 +6407,10 @@ var Context = class {
|
|
|
6593
6407
|
this.annotations = annotations;
|
|
6594
6408
|
}
|
|
6595
6409
|
};
|
|
6596
|
-
var
|
|
6410
|
+
var TypeId10 = "~effect/Schema";
|
|
6597
6411
|
|
|
6598
6412
|
class ASTNodeImpl {
|
|
6599
|
-
[
|
|
6413
|
+
[TypeId10] = TypeId10;
|
|
6600
6414
|
annotations;
|
|
6601
6415
|
checks;
|
|
6602
6416
|
encoding;
|
|
@@ -8515,7 +8329,7 @@ function compile(ast, compile, compileField, base, specialize) {
|
|
|
8515
8329
|
}
|
|
8516
8330
|
|
|
8517
8331
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/compilerRegistry.js
|
|
8518
|
-
var
|
|
8332
|
+
var invalid2 = /* @__PURE__ */ Symbol();
|
|
8519
8333
|
var cache = /* @__PURE__ */ new WeakMap;
|
|
8520
8334
|
var compiler;
|
|
8521
8335
|
var compilerAdaptersEnabled = false;
|
|
@@ -8590,7 +8404,7 @@ function withDecode(fastDecode, decodeEffect) {
|
|
|
8590
8404
|
if (input !== missing) {
|
|
8591
8405
|
try {
|
|
8592
8406
|
const value = fastDecode(input, options);
|
|
8593
|
-
if (value !==
|
|
8407
|
+
if (value !== invalid2)
|
|
8594
8408
|
return value === input ? sameExit : succeed8(value);
|
|
8595
8409
|
} catch (error) {
|
|
8596
8410
|
return die3(error);
|
|
@@ -8640,7 +8454,7 @@ function makeOption(schema) {
|
|
|
8640
8454
|
return none();
|
|
8641
8455
|
};
|
|
8642
8456
|
}
|
|
8643
|
-
function
|
|
8457
|
+
function make4(schema) {
|
|
8644
8458
|
return makeConstructorSync(toType2(schema.ast));
|
|
8645
8459
|
}
|
|
8646
8460
|
function is2(schema) {
|
|
@@ -8787,7 +8601,7 @@ function constructSync(entry, input, options) {
|
|
|
8787
8601
|
} catch (error) {
|
|
8788
8602
|
throwConstructorDefect(error);
|
|
8789
8603
|
}
|
|
8790
|
-
if (output !==
|
|
8604
|
+
if (output !== invalid2 && output !== missing)
|
|
8791
8605
|
return output;
|
|
8792
8606
|
}
|
|
8793
8607
|
return runSync3(parserResult(entry.makeEffect(input, parseOptions), input), constructorDefectMessage);
|
|
@@ -8811,12 +8625,12 @@ var normalCompiler = (ast) => resolve2(ast).parser;
|
|
|
8811
8625
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
8812
8626
|
|
|
8813
8627
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
8814
|
-
var
|
|
8628
|
+
var TypeId11 = "~effect/Schema/Schema";
|
|
8815
8629
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
8816
8630
|
var SchemaProto = {
|
|
8817
|
-
[
|
|
8631
|
+
[TypeId11]: TypeId11,
|
|
8818
8632
|
get make() {
|
|
8819
|
-
const value =
|
|
8633
|
+
const value = make4(this);
|
|
8820
8634
|
Object.defineProperty(this, "make", {
|
|
8821
8635
|
value,
|
|
8822
8636
|
enumerable: true
|
|
@@ -8852,10 +8666,10 @@ var SchemaProto = {
|
|
|
8852
8666
|
return this.rebuild(appendChecks(this.ast, checks));
|
|
8853
8667
|
},
|
|
8854
8668
|
rebuild(ast) {
|
|
8855
|
-
return
|
|
8669
|
+
return make5(ast, this[RebuildOptions]);
|
|
8856
8670
|
}
|
|
8857
8671
|
};
|
|
8858
|
-
function
|
|
8672
|
+
function make5(ast, options) {
|
|
8859
8673
|
function Schema() {}
|
|
8860
8674
|
const self = Object.setPrototypeOf(Schema, SchemaProto);
|
|
8861
8675
|
if (options && (Object.hasOwn(options, "name") || Object.hasOwn(options, "length") || Object.hasOwn(options, "__proto__"))) {
|
|
@@ -8872,7 +8686,7 @@ function make6(ast, options) {
|
|
|
8872
8686
|
|
|
8873
8687
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/toCodec.js
|
|
8874
8688
|
function toCodecJson2(schema) {
|
|
8875
|
-
return
|
|
8689
|
+
return make5(toCodecJsonAST(schema.ast), {
|
|
8876
8690
|
schema
|
|
8877
8691
|
});
|
|
8878
8692
|
}
|
|
@@ -8928,7 +8742,7 @@ function toCodecJsonASTStep(ast, recur) {
|
|
|
8928
8742
|
if (!isFunction(getLink)) {
|
|
8929
8743
|
return replaceEncoding(ast, [unknownToJson]);
|
|
8930
8744
|
}
|
|
8931
|
-
const typeParameters = ast.typeParameters.map((tp) =>
|
|
8745
|
+
const typeParameters = ast.typeParameters.map((tp) => make5(toEncoded(tp)));
|
|
8932
8746
|
const link = getLink(typeParameters);
|
|
8933
8747
|
return link === undefined ? ast : replaceEncoding(ast, [mapLink(link, recur)]);
|
|
8934
8748
|
}
|
|
@@ -8963,7 +8777,7 @@ function toCodecJsonASTStep(ast, recur) {
|
|
|
8963
8777
|
return ast;
|
|
8964
8778
|
}
|
|
8965
8779
|
function toCodecStringTree2(schema) {
|
|
8966
|
-
return
|
|
8780
|
+
return make5(toCodecStringTreeAST(schema.ast), {
|
|
8967
8781
|
schema
|
|
8968
8782
|
});
|
|
8969
8783
|
}
|
|
@@ -8983,7 +8797,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
|
|
|
8983
8797
|
function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
|
|
8984
8798
|
switch (ast._tag) {
|
|
8985
8799
|
case "Declaration": {
|
|
8986
|
-
const typeParameters = ast.typeParameters.map((tp) =>
|
|
8800
|
+
const typeParameters = ast.typeParameters.map((tp) => make5(recur(toEncoded(tp))));
|
|
8987
8801
|
const getStringTreeLink = ast.annotations?.toCodecStringTree;
|
|
8988
8802
|
if (isFunction(getStringTreeLink)) {
|
|
8989
8803
|
const link = getStringTreeLink(typeParameters);
|
|
@@ -9075,7 +8889,7 @@ function recur(ast) {
|
|
|
9075
8889
|
const rest = ast.rest.map(recur);
|
|
9076
8890
|
const [head, ...tail] = rest;
|
|
9077
8891
|
const tailLength = tail.length;
|
|
9078
|
-
return
|
|
8892
|
+
return make14((a, b) => {
|
|
9079
8893
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
9080
8894
|
return false;
|
|
9081
8895
|
}
|
|
@@ -9110,7 +8924,7 @@ function recur(ast) {
|
|
|
9110
8924
|
}
|
|
9111
8925
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
9112
8926
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
9113
|
-
return
|
|
8927
|
+
return make14((a, b) => {
|
|
9114
8928
|
if (!isObject(a) || !isObject(b)) {
|
|
9115
8929
|
return false;
|
|
9116
8930
|
}
|
|
@@ -9148,7 +8962,7 @@ function recur(ast) {
|
|
|
9148
8962
|
const types = toType2(ast).types;
|
|
9149
8963
|
const index = getCandidateIndex(types);
|
|
9150
8964
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
9151
|
-
return
|
|
8965
|
+
return make14((a, b) => {
|
|
9152
8966
|
const candidates = index(a, false);
|
|
9153
8967
|
for (let i = 0;i < candidates.length; i++) {
|
|
9154
8968
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -9161,7 +8975,7 @@ function recur(ast) {
|
|
|
9161
8975
|
}
|
|
9162
8976
|
case "Suspend": {
|
|
9163
8977
|
let equivalence;
|
|
9164
|
-
return
|
|
8978
|
+
return make14((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
9165
8979
|
}
|
|
9166
8980
|
}
|
|
9167
8981
|
}
|
|
@@ -9259,7 +9073,7 @@ function isSchemaError(u) {
|
|
|
9259
9073
|
}
|
|
9260
9074
|
|
|
9261
9075
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
9262
|
-
var
|
|
9076
|
+
var TypeId12 = TypeId11;
|
|
9263
9077
|
function declareConstructor() {
|
|
9264
9078
|
return (typeParameters, run, annotations) => {
|
|
9265
9079
|
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
@@ -9370,9 +9184,9 @@ function encodeUnknownSync(schema, options) {
|
|
|
9370
9184
|
};
|
|
9371
9185
|
}
|
|
9372
9186
|
var encodeSync = encodeUnknownSync;
|
|
9373
|
-
var make17 =
|
|
9187
|
+
var make17 = make5;
|
|
9374
9188
|
function isSchema(u) {
|
|
9375
|
-
return hasProperty(u,
|
|
9189
|
+
return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
|
|
9376
9190
|
}
|
|
9377
9191
|
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
9378
9192
|
schema
|
|
@@ -10203,7 +10017,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
|
|
|
10203
10017
|
}
|
|
10204
10018
|
});
|
|
10205
10019
|
}
|
|
10206
|
-
static [
|
|
10020
|
+
static [TypeId12] = TypeId12;
|
|
10207
10021
|
get [ClassTypeId]() {
|
|
10208
10022
|
return ClassTypeId;
|
|
10209
10023
|
}
|
|
@@ -10482,4 +10296,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
10482
10296
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
10483
10297
|
var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
|
|
10484
10298
|
|
|
10485
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype,
|
|
10299
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-5zth85pj.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-gy9rf14f.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-5zhh41gb.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-xmdjysn2.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|