@kitman-sh/cli 0.12.5 → 0.12.6
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-4ksq2d3k.js → chunk-23245qh7.js} +5 -5
- package/dist/{chunk-34qnpbzd.js → chunk-7ncc3m3n.js} +4 -4
- package/dist/{chunk-ycb69yfq.js → chunk-7tnm4jef.js} +3 -3
- package/dist/{chunk-mtkstrh3.js → chunk-892qrkb3.js} +14 -60
- package/dist/{chunk-gzfcxjzb.js → chunk-8djn7v2p.js} +23 -23
- package/dist/{chunk-5zhh41gb.js → chunk-8sz25ptv.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-bz4bp0q7.js} +3 -3
- package/dist/{chunk-3bz9qx6q.js → chunk-dcnn882c.js} +13 -13
- package/dist/{chunk-5zth85pj.js → chunk-e711ebdj.js} +2 -2
- package/dist/{chunk-yj971evw.js → chunk-fen5480a.js} +7 -7
- package/dist/{chunk-csgqrjmm.js → chunk-gezjwdpw.js} +117 -125
- package/dist/{chunk-sk0j9vm2.js → chunk-gtsq369x.js} +7 -7
- package/dist/{chunk-5746z147.js → chunk-jk5fp5cy.js} +23 -23
- package/dist/{chunk-mgn7vmf0.js → chunk-k3ak93p1.js} +1 -1
- package/dist/{chunk-gq7y5v3e.js → chunk-mm2m3bys.js} +1 -1
- package/dist/{chunk-rvgc6sb6.js → chunk-n17dr5c1.js} +4 -4
- package/dist/{chunk-p5ct5y4z.js → chunk-rvpfyjtv.js} +1 -1
- package/dist/{chunk-q5w3v4k1.js → chunk-s8m2tzdr.js} +1 -1
- package/dist/{chunk-y1krmnbv.js → chunk-skqn4h13.js} +2 -2
- package/dist/{chunk-tfkgd2gr.js → chunk-v4wn0tz8.js} +6 -6
- package/dist/{chunk-cbpb2rww.js → chunk-vkchn89k.js} +7 -7
- package/dist/{chunk-q25thbsb.js → chunk-wberffvr.js} +24 -24
- package/dist/{chunk-zw3gf6r5.js → chunk-x3cc7dfc.js} +226 -40
- package/dist/{chunk-4ab93yg1.js → chunk-x5t0c4g4.js} +4 -4
- package/dist/{chunk-0h49y8gf.js → chunk-y7vjk8vv.js} +31 -165
- 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 make13 = (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 make13((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 make13((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 make14(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 make14 = (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, make14(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 make15 = () => 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(make14(arguments[0], resource));
|
|
5278
5278
|
}
|
|
5279
|
-
return succeedContext(
|
|
5279
|
+
return succeedContext(make14(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) => make14(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,6 +5752,150 @@ 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
|
+
|
|
5755
5899
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/encoding/Base64.js
|
|
5756
5900
|
var encode2 = (input) => encodeBytes(typeof input === "string" ? encoder2.encode(input) : input);
|
|
5757
5901
|
var decode = (str) => {
|
|
@@ -5865,6 +6009,48 @@ var getCode = (charCode) => {
|
|
|
5865
6009
|
return codes[charCode];
|
|
5866
6010
|
};
|
|
5867
6011
|
|
|
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
|
+
|
|
5868
6054
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
|
|
5869
6055
|
function resolve(ast) {
|
|
5870
6056
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -5888,16 +6074,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
|
|
|
5888
6074
|
var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
|
|
5889
6075
|
|
|
5890
6076
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
|
|
5891
|
-
var
|
|
6077
|
+
var TypeId9 = "~effect/SchemaIssue/Issue";
|
|
5892
6078
|
function isIssue(u) {
|
|
5893
|
-
return hasProperty(u,
|
|
6079
|
+
return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
|
|
5894
6080
|
}
|
|
5895
6081
|
function hasInput(issue) {
|
|
5896
6082
|
return Object.hasOwn(issue, "input");
|
|
5897
6083
|
}
|
|
5898
6084
|
|
|
5899
6085
|
class IssueNodeImpl {
|
|
5900
|
-
[
|
|
6086
|
+
[TypeId9] = TypeId9;
|
|
5901
6087
|
constructor(input, options) {
|
|
5902
6088
|
if (options?.reportInput === true && input !== missing) {
|
|
5903
6089
|
this.input = input;
|
|
@@ -6271,9 +6457,9 @@ function setContent(operation, content) {
|
|
|
6271
6457
|
}
|
|
6272
6458
|
|
|
6273
6459
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
|
|
6274
|
-
var
|
|
6460
|
+
var TypeId10 = "~effect/SchemaTransformation/Transformation";
|
|
6275
6461
|
var Transformation = class extends Class3 {
|
|
6276
|
-
[
|
|
6462
|
+
[TypeId10] = TypeId10;
|
|
6277
6463
|
_tag = "Transformation";
|
|
6278
6464
|
decode;
|
|
6279
6465
|
encode;
|
|
@@ -6287,7 +6473,7 @@ var Transformation = class extends Class3 {
|
|
|
6287
6473
|
}
|
|
6288
6474
|
};
|
|
6289
6475
|
function isTransformation(u) {
|
|
6290
|
-
return hasProperty(u,
|
|
6476
|
+
return hasProperty(u, TypeId10) && u[TypeId10] === TypeId10;
|
|
6291
6477
|
}
|
|
6292
6478
|
var makeTransformation = (options) => {
|
|
6293
6479
|
if (isTransformation(options)) {
|
|
@@ -6407,10 +6593,10 @@ var Context = class {
|
|
|
6407
6593
|
this.annotations = annotations;
|
|
6408
6594
|
}
|
|
6409
6595
|
};
|
|
6410
|
-
var
|
|
6596
|
+
var TypeId11 = "~effect/Schema";
|
|
6411
6597
|
|
|
6412
6598
|
class ASTNodeImpl {
|
|
6413
|
-
[
|
|
6599
|
+
[TypeId11] = TypeId11;
|
|
6414
6600
|
annotations;
|
|
6415
6601
|
checks;
|
|
6416
6602
|
encoding;
|
|
@@ -8329,7 +8515,7 @@ function compile(ast, compile, compileField, base, specialize) {
|
|
|
8329
8515
|
}
|
|
8330
8516
|
|
|
8331
8517
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/compilerRegistry.js
|
|
8332
|
-
var
|
|
8518
|
+
var invalid3 = /* @__PURE__ */ Symbol();
|
|
8333
8519
|
var cache = /* @__PURE__ */ new WeakMap;
|
|
8334
8520
|
var compiler;
|
|
8335
8521
|
var compilerAdaptersEnabled = false;
|
|
@@ -8404,7 +8590,7 @@ function withDecode(fastDecode, decodeEffect) {
|
|
|
8404
8590
|
if (input !== missing) {
|
|
8405
8591
|
try {
|
|
8406
8592
|
const value = fastDecode(input, options);
|
|
8407
|
-
if (value !==
|
|
8593
|
+
if (value !== invalid3)
|
|
8408
8594
|
return value === input ? sameExit : succeed8(value);
|
|
8409
8595
|
} catch (error) {
|
|
8410
8596
|
return die3(error);
|
|
@@ -8454,7 +8640,7 @@ function makeOption(schema) {
|
|
|
8454
8640
|
return none();
|
|
8455
8641
|
};
|
|
8456
8642
|
}
|
|
8457
|
-
function
|
|
8643
|
+
function make5(schema) {
|
|
8458
8644
|
return makeConstructorSync(toType2(schema.ast));
|
|
8459
8645
|
}
|
|
8460
8646
|
function is2(schema) {
|
|
@@ -8601,7 +8787,7 @@ function constructSync(entry, input, options) {
|
|
|
8601
8787
|
} catch (error) {
|
|
8602
8788
|
throwConstructorDefect(error);
|
|
8603
8789
|
}
|
|
8604
|
-
if (output !==
|
|
8790
|
+
if (output !== invalid3 && output !== missing)
|
|
8605
8791
|
return output;
|
|
8606
8792
|
}
|
|
8607
8793
|
return runSync3(parserResult(entry.makeEffect(input, parseOptions), input), constructorDefectMessage);
|
|
@@ -8625,12 +8811,12 @@ var normalCompiler = (ast) => resolve2(ast).parser;
|
|
|
8625
8811
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
8626
8812
|
|
|
8627
8813
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
8628
|
-
var
|
|
8814
|
+
var TypeId12 = "~effect/Schema/Schema";
|
|
8629
8815
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
8630
8816
|
var SchemaProto = {
|
|
8631
|
-
[
|
|
8817
|
+
[TypeId12]: TypeId12,
|
|
8632
8818
|
get make() {
|
|
8633
|
-
const value =
|
|
8819
|
+
const value = make5(this);
|
|
8634
8820
|
Object.defineProperty(this, "make", {
|
|
8635
8821
|
value,
|
|
8636
8822
|
enumerable: true
|
|
@@ -8666,10 +8852,10 @@ var SchemaProto = {
|
|
|
8666
8852
|
return this.rebuild(appendChecks(this.ast, checks));
|
|
8667
8853
|
},
|
|
8668
8854
|
rebuild(ast) {
|
|
8669
|
-
return
|
|
8855
|
+
return make6(ast, this[RebuildOptions]);
|
|
8670
8856
|
}
|
|
8671
8857
|
};
|
|
8672
|
-
function
|
|
8858
|
+
function make6(ast, options) {
|
|
8673
8859
|
function Schema() {}
|
|
8674
8860
|
const self = Object.setPrototypeOf(Schema, SchemaProto);
|
|
8675
8861
|
if (options && (Object.hasOwn(options, "name") || Object.hasOwn(options, "length") || Object.hasOwn(options, "__proto__"))) {
|
|
@@ -8686,7 +8872,7 @@ function make5(ast, options) {
|
|
|
8686
8872
|
|
|
8687
8873
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/toCodec.js
|
|
8688
8874
|
function toCodecJson2(schema) {
|
|
8689
|
-
return
|
|
8875
|
+
return make6(toCodecJsonAST(schema.ast), {
|
|
8690
8876
|
schema
|
|
8691
8877
|
});
|
|
8692
8878
|
}
|
|
@@ -8742,7 +8928,7 @@ function toCodecJsonASTStep(ast, recur) {
|
|
|
8742
8928
|
if (!isFunction(getLink)) {
|
|
8743
8929
|
return replaceEncoding(ast, [unknownToJson]);
|
|
8744
8930
|
}
|
|
8745
|
-
const typeParameters = ast.typeParameters.map((tp) =>
|
|
8931
|
+
const typeParameters = ast.typeParameters.map((tp) => make6(toEncoded(tp)));
|
|
8746
8932
|
const link = getLink(typeParameters);
|
|
8747
8933
|
return link === undefined ? ast : replaceEncoding(ast, [mapLink(link, recur)]);
|
|
8748
8934
|
}
|
|
@@ -8777,7 +8963,7 @@ function toCodecJsonASTStep(ast, recur) {
|
|
|
8777
8963
|
return ast;
|
|
8778
8964
|
}
|
|
8779
8965
|
function toCodecStringTree2(schema) {
|
|
8780
|
-
return
|
|
8966
|
+
return make6(toCodecStringTreeAST(schema.ast), {
|
|
8781
8967
|
schema
|
|
8782
8968
|
});
|
|
8783
8969
|
}
|
|
@@ -8797,7 +8983,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
|
|
|
8797
8983
|
function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
|
|
8798
8984
|
switch (ast._tag) {
|
|
8799
8985
|
case "Declaration": {
|
|
8800
|
-
const typeParameters = ast.typeParameters.map((tp) =>
|
|
8986
|
+
const typeParameters = ast.typeParameters.map((tp) => make6(recur(toEncoded(tp))));
|
|
8801
8987
|
const getStringTreeLink = ast.annotations?.toCodecStringTree;
|
|
8802
8988
|
if (isFunction(getStringTreeLink)) {
|
|
8803
8989
|
const link = getStringTreeLink(typeParameters);
|
|
@@ -8889,7 +9075,7 @@ function recur(ast) {
|
|
|
8889
9075
|
const rest = ast.rest.map(recur);
|
|
8890
9076
|
const [head, ...tail] = rest;
|
|
8891
9077
|
const tailLength = tail.length;
|
|
8892
|
-
return
|
|
9078
|
+
return make13((a, b) => {
|
|
8893
9079
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
8894
9080
|
return false;
|
|
8895
9081
|
}
|
|
@@ -8924,7 +9110,7 @@ function recur(ast) {
|
|
|
8924
9110
|
}
|
|
8925
9111
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
8926
9112
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
8927
|
-
return
|
|
9113
|
+
return make13((a, b) => {
|
|
8928
9114
|
if (!isObject(a) || !isObject(b)) {
|
|
8929
9115
|
return false;
|
|
8930
9116
|
}
|
|
@@ -8962,7 +9148,7 @@ function recur(ast) {
|
|
|
8962
9148
|
const types = toType2(ast).types;
|
|
8963
9149
|
const index = getCandidateIndex(types);
|
|
8964
9150
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
8965
|
-
return
|
|
9151
|
+
return make13((a, b) => {
|
|
8966
9152
|
const candidates = index(a, false);
|
|
8967
9153
|
for (let i = 0;i < candidates.length; i++) {
|
|
8968
9154
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -8975,7 +9161,7 @@ function recur(ast) {
|
|
|
8975
9161
|
}
|
|
8976
9162
|
case "Suspend": {
|
|
8977
9163
|
let equivalence;
|
|
8978
|
-
return
|
|
9164
|
+
return make13((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
8979
9165
|
}
|
|
8980
9166
|
}
|
|
8981
9167
|
}
|
|
@@ -9073,7 +9259,7 @@ function isSchemaError(u) {
|
|
|
9073
9259
|
}
|
|
9074
9260
|
|
|
9075
9261
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
9076
|
-
var
|
|
9262
|
+
var TypeId13 = TypeId12;
|
|
9077
9263
|
function declareConstructor() {
|
|
9078
9264
|
return (typeParameters, run, annotations) => {
|
|
9079
9265
|
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
@@ -9184,9 +9370,9 @@ function encodeUnknownSync(schema, options) {
|
|
|
9184
9370
|
};
|
|
9185
9371
|
}
|
|
9186
9372
|
var encodeSync = encodeUnknownSync;
|
|
9187
|
-
var make17 =
|
|
9373
|
+
var make17 = make6;
|
|
9188
9374
|
function isSchema(u) {
|
|
9189
|
-
return hasProperty(u,
|
|
9375
|
+
return hasProperty(u, TypeId13) && u[TypeId13] === TypeId13;
|
|
9190
9376
|
}
|
|
9191
9377
|
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
9192
9378
|
schema
|
|
@@ -10017,7 +10203,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
|
|
|
10017
10203
|
}
|
|
10018
10204
|
});
|
|
10019
10205
|
}
|
|
10020
|
-
static [
|
|
10206
|
+
static [TypeId13] = TypeId13;
|
|
10021
10207
|
get [ClassTypeId]() {
|
|
10022
10208
|
return ClassTypeId;
|
|
10023
10209
|
}
|
|
@@ -10296,4 +10482,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
10296
10482
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
10297
10483
|
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;
|
|
10298
10484
|
|
|
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,
|
|
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, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make14, 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, make15, _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, toNumber, fromInputUnsafe2, bytes, encode2, decode, isRedacted, make16, value, 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 };
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-x3cc7dfc.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-y7vjk8vv.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-gezjwdpw.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7tnm4jef.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|