@vibedeckx/linux-x64 0.3.18 → 0.3.20
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/bin.js +1110 -836
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -528,15 +528,15 @@ function createBaggage(entries) {
|
|
|
528
528
|
}
|
|
529
529
|
return new BaggageImpl(new Map(Object.entries(entries)));
|
|
530
530
|
}
|
|
531
|
-
function baggageEntryMetadataFromString(
|
|
532
|
-
if (typeof
|
|
533
|
-
diag.error("Cannot create baggage metadata from unknown type: " + typeof
|
|
534
|
-
|
|
531
|
+
function baggageEntryMetadataFromString(str2) {
|
|
532
|
+
if (typeof str2 !== "string") {
|
|
533
|
+
diag.error("Cannot create baggage metadata from unknown type: " + typeof str2);
|
|
534
|
+
str2 = "";
|
|
535
535
|
}
|
|
536
536
|
return {
|
|
537
537
|
__TYPE__: baggageEntryMetadataSymbol,
|
|
538
538
|
toString: function() {
|
|
539
|
-
return
|
|
539
|
+
return str2;
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
542
|
}
|
|
@@ -10690,11 +10690,11 @@ var require_Predicate = __commonJS({
|
|
|
10690
10690
|
this._regexp = new RegExp(_PatternPredicate.escapePattern(pattern));
|
|
10691
10691
|
}
|
|
10692
10692
|
}
|
|
10693
|
-
match(
|
|
10693
|
+
match(str2) {
|
|
10694
10694
|
if (this._matchAll) {
|
|
10695
10695
|
return true;
|
|
10696
10696
|
}
|
|
10697
|
-
return this._regexp.test(
|
|
10697
|
+
return this._regexp.test(str2);
|
|
10698
10698
|
}
|
|
10699
10699
|
static escapePattern(pattern) {
|
|
10700
10700
|
return `^${pattern.replace(ESCAPE, "\\$&").replace("*", ".*")}$`;
|
|
@@ -10711,11 +10711,11 @@ var require_Predicate = __commonJS({
|
|
|
10711
10711
|
this._matchAll = pattern === void 0;
|
|
10712
10712
|
this._pattern = pattern;
|
|
10713
10713
|
}
|
|
10714
|
-
match(
|
|
10714
|
+
match(str2) {
|
|
10715
10715
|
if (this._matchAll) {
|
|
10716
10716
|
return true;
|
|
10717
10717
|
}
|
|
10718
|
-
if (
|
|
10718
|
+
if (str2 === this._pattern) {
|
|
10719
10719
|
return true;
|
|
10720
10720
|
}
|
|
10721
10721
|
return false;
|
|
@@ -13356,12 +13356,12 @@ var require_semver = __commonJS({
|
|
|
13356
13356
|
}
|
|
13357
13357
|
function replaceHyphen(comp, options) {
|
|
13358
13358
|
const r = HYPHENRANGE_REGEXP;
|
|
13359
|
-
return comp.replace(r, (_3, from, fM, fm,
|
|
13359
|
+
return comp.replace(r, (_3, from, fM, fm, fp36, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
13360
13360
|
if (isX(fM)) {
|
|
13361
13361
|
from = "";
|
|
13362
13362
|
} else if (isX(fm)) {
|
|
13363
13363
|
from = `>=${fM}.0.0${options?.includePrerelease ? "-0" : ""}`;
|
|
13364
|
-
} else if (isX(
|
|
13364
|
+
} else if (isX(fp36)) {
|
|
13365
13365
|
from = `>=${fM}.${fm}.0${options?.includePrerelease ? "-0" : ""}`;
|
|
13366
13366
|
} else if (fpr) {
|
|
13367
13367
|
from = `>=${from}`;
|
|
@@ -13650,13 +13650,13 @@ var require_ms = __commonJS({
|
|
|
13650
13650
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
13651
13651
|
);
|
|
13652
13652
|
};
|
|
13653
|
-
function parse4(
|
|
13654
|
-
|
|
13655
|
-
if (
|
|
13653
|
+
function parse4(str2) {
|
|
13654
|
+
str2 = String(str2);
|
|
13655
|
+
if (str2.length > 100) {
|
|
13656
13656
|
return;
|
|
13657
13657
|
}
|
|
13658
13658
|
var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
13659
|
-
|
|
13659
|
+
str2
|
|
13660
13660
|
);
|
|
13661
13661
|
if (!match2) {
|
|
13662
13662
|
return;
|
|
@@ -14173,7 +14173,7 @@ var require_supports_color = __commonJS({
|
|
|
14173
14173
|
return 1;
|
|
14174
14174
|
}
|
|
14175
14175
|
if ("CI" in env) {
|
|
14176
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((
|
|
14176
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign3) => sign3 in env) || env.CI_NAME === "codeship") {
|
|
14177
14177
|
return 1;
|
|
14178
14178
|
}
|
|
14179
14179
|
return min;
|
|
@@ -14384,7 +14384,7 @@ var require_node5 = __commonJS({
|
|
|
14384
14384
|
var { formatters } = module.exports;
|
|
14385
14385
|
formatters.o = function(v2) {
|
|
14386
14386
|
this.inspectOpts.colors = this.useColors;
|
|
14387
|
-
return util2.inspect(v2, this.inspectOpts).split("\n").map((
|
|
14387
|
+
return util2.inspect(v2, this.inspectOpts).split("\n").map((str2) => str2.trim()).join(" ");
|
|
14388
14388
|
};
|
|
14389
14389
|
formatters.O = function(v2) {
|
|
14390
14390
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -15423,9 +15423,9 @@ var require_semconvStability = __commonJS({
|
|
|
15423
15423
|
SemconvStability2[SemconvStability2["OLD"] = 2] = "OLD";
|
|
15424
15424
|
SemconvStability2[SemconvStability2["DUPLICATE"] = 3] = "DUPLICATE";
|
|
15425
15425
|
})(SemconvStability = exports.SemconvStability || (exports.SemconvStability = {}));
|
|
15426
|
-
function semconvStabilityFromStr(namespace,
|
|
15426
|
+
function semconvStabilityFromStr(namespace, str2) {
|
|
15427
15427
|
let semconvStability = SemconvStability.OLD;
|
|
15428
|
-
const entries =
|
|
15428
|
+
const entries = str2?.split(",").map((v2) => v2.trim()).filter((s3) => s3 !== "");
|
|
15429
15429
|
for (const entry of entries ?? []) {
|
|
15430
15430
|
if (entry.toLowerCase() === namespace + "/dup") {
|
|
15431
15431
|
semconvStability = SemconvStability.DUPLICATE;
|
|
@@ -15968,11 +15968,11 @@ var require_protobuf_writer = __commonJS({
|
|
|
15968
15968
|
/**
|
|
15969
15969
|
* Write a string as UTF-8 bytes (length-delimited)
|
|
15970
15970
|
*/
|
|
15971
|
-
writeString(
|
|
15971
|
+
writeString(str2) {
|
|
15972
15972
|
let isAscii = true;
|
|
15973
|
-
const len =
|
|
15973
|
+
const len = str2.length;
|
|
15974
15974
|
for (let i = 0; i < len; i++) {
|
|
15975
|
-
if (
|
|
15975
|
+
if (str2.charCodeAt(i) > 127) {
|
|
15976
15976
|
isAscii = false;
|
|
15977
15977
|
break;
|
|
15978
15978
|
}
|
|
@@ -15981,10 +15981,10 @@ var require_protobuf_writer = __commonJS({
|
|
|
15981
15981
|
this.writeVarint(len);
|
|
15982
15982
|
this._ensureCapacity(len);
|
|
15983
15983
|
for (let i = 0; i < len; i++) {
|
|
15984
|
-
this._buffer[this.pos++] =
|
|
15984
|
+
this._buffer[this.pos++] = str2.charCodeAt(i);
|
|
15985
15985
|
}
|
|
15986
15986
|
} else {
|
|
15987
|
-
const bytes = this._textEncoder.encode(
|
|
15987
|
+
const bytes = this._textEncoder.encode(str2);
|
|
15988
15988
|
this.writeBytes(bytes);
|
|
15989
15989
|
}
|
|
15990
15990
|
}
|
|
@@ -16141,11 +16141,11 @@ var require_protobuf_size_estimator = __commonJS({
|
|
|
16141
16141
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16142
16142
|
exports.ProtobufSizeEstimator = void 0;
|
|
16143
16143
|
var utils_1 = require_utils7();
|
|
16144
|
-
function utf8ByteLength(
|
|
16145
|
-
const len =
|
|
16144
|
+
function utf8ByteLength(str2) {
|
|
16145
|
+
const len = str2.length;
|
|
16146
16146
|
let byteLen = 0;
|
|
16147
16147
|
for (let i = 0; i < len; i++) {
|
|
16148
|
-
const code =
|
|
16148
|
+
const code = str2.charCodeAt(i);
|
|
16149
16149
|
if (code < 128) {
|
|
16150
16150
|
byteLen += 1;
|
|
16151
16151
|
} else if (code < 2048) {
|
|
@@ -16186,8 +16186,8 @@ var require_protobuf_size_estimator = __commonJS({
|
|
|
16186
16186
|
writeDouble(_value) {
|
|
16187
16187
|
this.pos += 8;
|
|
16188
16188
|
}
|
|
16189
|
-
writeString(
|
|
16190
|
-
const byteLen = utf8ByteLength(
|
|
16189
|
+
writeString(str2) {
|
|
16190
|
+
const byteLen = utf8ByteLength(str2);
|
|
16191
16191
|
this.pos += (0, utils_1.estimateVarintSize)(byteLen);
|
|
16192
16192
|
this.pos += byteLen;
|
|
16193
16193
|
}
|
|
@@ -16741,8 +16741,8 @@ var require_float = __commonJS({
|
|
|
16741
16741
|
})();
|
|
16742
16742
|
else (function() {
|
|
16743
16743
|
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
16744
|
-
var
|
|
16745
|
-
if (
|
|
16744
|
+
var sign3 = val < 0 ? 1 : 0;
|
|
16745
|
+
if (sign3)
|
|
16746
16746
|
val = -val;
|
|
16747
16747
|
if (val === 0)
|
|
16748
16748
|
writeUint(1 / val > 0 ? (
|
|
@@ -16755,19 +16755,19 @@ var require_float = __commonJS({
|
|
|
16755
16755
|
else if (isNaN(val))
|
|
16756
16756
|
writeUint(2143289344, buf, pos);
|
|
16757
16757
|
else if (val > 34028234663852886e22)
|
|
16758
|
-
writeUint((
|
|
16758
|
+
writeUint((sign3 << 31 | 2139095040) >>> 0, buf, pos);
|
|
16759
16759
|
else if (val < 11754943508222875e-54)
|
|
16760
|
-
writeUint((
|
|
16760
|
+
writeUint((sign3 << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
|
|
16761
16761
|
else {
|
|
16762
16762
|
var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
16763
|
-
writeUint((
|
|
16763
|
+
writeUint((sign3 << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
16764
16764
|
}
|
|
16765
16765
|
}
|
|
16766
16766
|
exports2.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
16767
16767
|
exports2.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
16768
16768
|
function readFloat_ieee754(readUint, buf, pos) {
|
|
16769
|
-
var uint = readUint(buf, pos),
|
|
16770
|
-
return exponent === 255 ? mantissa ? NaN :
|
|
16769
|
+
var uint = readUint(buf, pos), sign3 = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
16770
|
+
return exponent === 255 ? mantissa ? NaN : sign3 * Infinity : exponent === 0 ? sign3 * 1401298464324817e-60 * mantissa : sign3 * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
16771
16771
|
}
|
|
16772
16772
|
exports2.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
16773
16773
|
exports2.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
@@ -16825,8 +16825,8 @@ var require_float = __commonJS({
|
|
|
16825
16825
|
})();
|
|
16826
16826
|
else (function() {
|
|
16827
16827
|
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
16828
|
-
var
|
|
16829
|
-
if (
|
|
16828
|
+
var sign3 = val < 0 ? 1 : 0;
|
|
16829
|
+
if (sign3)
|
|
16830
16830
|
val = -val;
|
|
16831
16831
|
if (val === 0) {
|
|
16832
16832
|
writeUint(0, buf, pos + off0);
|
|
@@ -16842,20 +16842,20 @@ var require_float = __commonJS({
|
|
|
16842
16842
|
writeUint(2146959360, buf, pos + off1);
|
|
16843
16843
|
} else if (val > 17976931348623157e292) {
|
|
16844
16844
|
writeUint(0, buf, pos + off0);
|
|
16845
|
-
writeUint((
|
|
16845
|
+
writeUint((sign3 << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
16846
16846
|
} else {
|
|
16847
16847
|
var mantissa;
|
|
16848
16848
|
if (val < 22250738585072014e-324) {
|
|
16849
16849
|
mantissa = val / 5e-324;
|
|
16850
16850
|
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
16851
|
-
writeUint((
|
|
16851
|
+
writeUint((sign3 << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
16852
16852
|
} else {
|
|
16853
16853
|
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
16854
16854
|
if (exponent === 1024)
|
|
16855
16855
|
exponent = 1023;
|
|
16856
16856
|
mantissa = val * Math.pow(2, -exponent);
|
|
16857
16857
|
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
16858
|
-
writeUint((
|
|
16858
|
+
writeUint((sign3 << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
16859
16859
|
}
|
|
16860
16860
|
}
|
|
16861
16861
|
}
|
|
@@ -16863,8 +16863,8 @@ var require_float = __commonJS({
|
|
|
16863
16863
|
exports2.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
16864
16864
|
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
16865
16865
|
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
16866
|
-
var
|
|
16867
|
-
return exponent === 2047 ? mantissa ? NaN :
|
|
16866
|
+
var sign3 = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
16867
|
+
return exponent === 2047 ? mantissa ? NaN : sign3 * Infinity : exponent === 0 ? sign3 * 5e-324 * mantissa : sign3 * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
16868
16868
|
}
|
|
16869
16869
|
exports2.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
16870
16870
|
exports2.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
@@ -16938,29 +16938,29 @@ var require_utf8 = __commonJS({
|
|
|
16938
16938
|
if (end - start < 1) {
|
|
16939
16939
|
return "";
|
|
16940
16940
|
}
|
|
16941
|
-
var
|
|
16941
|
+
var str2 = "";
|
|
16942
16942
|
for (var i = start; i < end; ) {
|
|
16943
16943
|
var t = buffer[i++];
|
|
16944
16944
|
if (t <= 127) {
|
|
16945
|
-
|
|
16945
|
+
str2 += String.fromCharCode(t);
|
|
16946
16946
|
} else if (t >= 192 && t < 224) {
|
|
16947
16947
|
var c2 = (t & 31) << 6 | buffer[i++] & 63;
|
|
16948
|
-
|
|
16948
|
+
str2 += c2 >= 128 ? String.fromCharCode(c2) : replacementChar;
|
|
16949
16949
|
} else if (t >= 224 && t < 240) {
|
|
16950
16950
|
var c3 = (t & 15) << 12 | (buffer[i++] & 63) << 6 | buffer[i++] & 63;
|
|
16951
|
-
|
|
16951
|
+
str2 += c3 >= 2048 ? String.fromCharCode(c3) : replacementChar;
|
|
16952
16952
|
} else if (t >= 240) {
|
|
16953
16953
|
var t2 = (t & 7) << 18 | (buffer[i++] & 63) << 12 | (buffer[i++] & 63) << 6 | buffer[i++] & 63;
|
|
16954
16954
|
if (t2 < 65536 || t2 > 1114111)
|
|
16955
|
-
|
|
16955
|
+
str2 += replacementChar;
|
|
16956
16956
|
else {
|
|
16957
16957
|
t2 -= 65536;
|
|
16958
|
-
|
|
16959
|
-
|
|
16958
|
+
str2 += String.fromCharCode(55296 + (t2 >> 10));
|
|
16959
|
+
str2 += String.fromCharCode(56320 + (t2 & 1023));
|
|
16960
16960
|
}
|
|
16961
16961
|
}
|
|
16962
16962
|
}
|
|
16963
|
-
return
|
|
16963
|
+
return str2;
|
|
16964
16964
|
};
|
|
16965
16965
|
utf8.write = function utf8_write(string4, buffer, offset) {
|
|
16966
16966
|
var start = offset, c1, c2;
|
|
@@ -17039,11 +17039,11 @@ var require_longbits = __commonJS({
|
|
|
17039
17039
|
LongBits.fromNumber = function fromNumber(value) {
|
|
17040
17040
|
if (value === 0)
|
|
17041
17041
|
return zero;
|
|
17042
|
-
var
|
|
17043
|
-
if (
|
|
17042
|
+
var sign3 = value < 0;
|
|
17043
|
+
if (sign3)
|
|
17044
17044
|
value = -value;
|
|
17045
17045
|
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
17046
|
-
if (
|
|
17046
|
+
if (sign3) {
|
|
17047
17047
|
hi = ~hi >>> 0;
|
|
17048
17048
|
lo = ~lo >>> 0;
|
|
17049
17049
|
if (++lo > 4294967295) {
|
|
@@ -17202,8 +17202,8 @@ var require_minimal = __commonJS({
|
|
|
17202
17202
|
return dst;
|
|
17203
17203
|
}
|
|
17204
17204
|
util2.merge = merge2;
|
|
17205
|
-
util2.lcFirst = function lcFirst(
|
|
17206
|
-
return
|
|
17205
|
+
util2.lcFirst = function lcFirst(str2) {
|
|
17206
|
+
return str2.charAt(0).toLowerCase() + str2.substring(1);
|
|
17207
17207
|
};
|
|
17208
17208
|
function newError(name25) {
|
|
17209
17209
|
function CustomError(message, properties) {
|
|
@@ -24984,10 +24984,10 @@ var require_utils8 = __commonJS({
|
|
|
24984
24984
|
function identity(value) {
|
|
24985
24985
|
return value;
|
|
24986
24986
|
}
|
|
24987
|
-
function optionalHexToBinary(
|
|
24988
|
-
if (
|
|
24987
|
+
function optionalHexToBinary(str2) {
|
|
24988
|
+
if (str2 === void 0)
|
|
24989
24989
|
return void 0;
|
|
24990
|
-
return (0, hex_to_binary_1.hexToBinary)(
|
|
24990
|
+
return (0, hex_to_binary_1.hexToBinary)(str2);
|
|
24991
24991
|
}
|
|
24992
24992
|
exports.PROTOBUF_ENCODER = {
|
|
24993
24993
|
encodeHrTime: encodeAsLongBits,
|
|
@@ -30867,11 +30867,11 @@ var require_longbits2 = __commonJS({
|
|
|
30867
30867
|
LongBits.fromNumber = function fromNumber(value) {
|
|
30868
30868
|
if (value === 0)
|
|
30869
30869
|
return zero;
|
|
30870
|
-
var
|
|
30871
|
-
if (
|
|
30870
|
+
var sign3 = value < 0;
|
|
30871
|
+
if (sign3)
|
|
30872
30872
|
value = -value;
|
|
30873
30873
|
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
30874
|
-
if (
|
|
30874
|
+
if (sign3) {
|
|
30875
30875
|
hi = ~hi >>> 0;
|
|
30876
30876
|
lo = ~lo >>> 0;
|
|
30877
30877
|
if (++lo > 4294967295) {
|
|
@@ -31040,8 +31040,8 @@ var require_minimal3 = __commonJS({
|
|
|
31040
31040
|
writable: true
|
|
31041
31041
|
});
|
|
31042
31042
|
};
|
|
31043
|
-
util2.lcFirst = function lcFirst(
|
|
31044
|
-
return
|
|
31043
|
+
util2.lcFirst = function lcFirst(str2) {
|
|
31044
|
+
return str2.charAt(0).toLowerCase() + str2.substring(1);
|
|
31045
31045
|
};
|
|
31046
31046
|
function newError(name25) {
|
|
31047
31047
|
function CustomError(message, properties) {
|
|
@@ -33536,12 +33536,12 @@ var require_util2 = __commonJS({
|
|
|
33536
33536
|
return "[" + JSON.stringify(prop) + "]";
|
|
33537
33537
|
return "." + prop;
|
|
33538
33538
|
};
|
|
33539
|
-
util2.ucFirst = function ucFirst(
|
|
33540
|
-
return
|
|
33539
|
+
util2.ucFirst = function ucFirst(str2) {
|
|
33540
|
+
return str2.charAt(0).toUpperCase() + str2.substring(1);
|
|
33541
33541
|
};
|
|
33542
33542
|
var camelCaseRe = /_([a-z])/g;
|
|
33543
|
-
util2.camelCase = function camelCase(
|
|
33544
|
-
return
|
|
33543
|
+
util2.camelCase = function camelCase(str2) {
|
|
33544
|
+
return str2.substring(0, 1) + str2.substring(1).replace(camelCaseRe, function($0, $1) {
|
|
33545
33545
|
return $1.toUpperCase();
|
|
33546
33546
|
});
|
|
33547
33547
|
};
|
|
@@ -34521,8 +34521,8 @@ var require_tokenize = __commonJS({
|
|
|
34521
34521
|
"n": "\n",
|
|
34522
34522
|
"t": " "
|
|
34523
34523
|
};
|
|
34524
|
-
function unescape2(
|
|
34525
|
-
return
|
|
34524
|
+
function unescape2(str2) {
|
|
34525
|
+
return str2.replace(unescapeRe, function($0, $1) {
|
|
34526
34526
|
switch ($1) {
|
|
34527
34527
|
case "\\":
|
|
34528
34528
|
case "":
|
|
@@ -34849,10 +34849,10 @@ var require_parse = __commonJS({
|
|
|
34849
34849
|
var token2, start;
|
|
34850
34850
|
do {
|
|
34851
34851
|
if (acceptStrings && ((token2 = peek()) === '"' || token2 === "'")) {
|
|
34852
|
-
var
|
|
34853
|
-
target.push(
|
|
34852
|
+
var str2 = readString();
|
|
34853
|
+
target.push(str2);
|
|
34854
34854
|
if (edition >= 2023) {
|
|
34855
|
-
throw illegal(
|
|
34855
|
+
throw illegal(str2, "id");
|
|
34856
34856
|
}
|
|
34857
34857
|
} else {
|
|
34858
34858
|
try {
|
|
@@ -34886,16 +34886,16 @@ var require_parse = __commonJS({
|
|
|
34886
34886
|
);
|
|
34887
34887
|
}
|
|
34888
34888
|
function parseNumber(token2, insideTryCatch) {
|
|
34889
|
-
var
|
|
34889
|
+
var sign3 = 1;
|
|
34890
34890
|
if (token2.charAt(0) === "-") {
|
|
34891
|
-
|
|
34891
|
+
sign3 = -1;
|
|
34892
34892
|
token2 = token2.substring(1);
|
|
34893
34893
|
}
|
|
34894
34894
|
switch (token2) {
|
|
34895
34895
|
case "inf":
|
|
34896
34896
|
case "INF":
|
|
34897
34897
|
case "Inf":
|
|
34898
|
-
return
|
|
34898
|
+
return sign3 * Infinity;
|
|
34899
34899
|
case "nan":
|
|
34900
34900
|
case "NAN":
|
|
34901
34901
|
case "Nan":
|
|
@@ -34905,13 +34905,13 @@ var require_parse = __commonJS({
|
|
|
34905
34905
|
return 0;
|
|
34906
34906
|
}
|
|
34907
34907
|
if (base10Re.test(token2))
|
|
34908
|
-
return
|
|
34908
|
+
return sign3 * parseInt(token2, 10);
|
|
34909
34909
|
if (base16Re.test(token2))
|
|
34910
|
-
return
|
|
34910
|
+
return sign3 * parseInt(token2, 16);
|
|
34911
34911
|
if (base8Re.test(token2))
|
|
34912
|
-
return
|
|
34912
|
+
return sign3 * parseInt(token2, 8);
|
|
34913
34913
|
if (numberRe.test(token2))
|
|
34914
|
-
return
|
|
34914
|
+
return sign3 * parseFloat(token2);
|
|
34915
34915
|
throw illegal(token2, "number", insideTryCatch);
|
|
34916
34916
|
}
|
|
34917
34917
|
function parseId(token2, acceptNegative) {
|
|
@@ -37760,8 +37760,8 @@ var require_descriptor2 = __commonJS({
|
|
|
37760
37760
|
for (; i < fromPath.length && j < k2 && fromPath[i] === toPath[j]; ++i, ++j) ;
|
|
37761
37761
|
return toPath.slice(j).join(".");
|
|
37762
37762
|
}
|
|
37763
|
-
function underScore(
|
|
37764
|
-
return
|
|
37763
|
+
function underScore(str2) {
|
|
37764
|
+
return str2.substring(0, 1) + str2.substring(1).replace(/([A-Z])(?=[a-z]|$)/g, function($0, $1) {
|
|
37765
37765
|
return "_" + $1.toLowerCase();
|
|
37766
37766
|
});
|
|
37767
37767
|
}
|
|
@@ -38645,27 +38645,27 @@ var require_umd = __commonJS({
|
|
|
38645
38645
|
}
|
|
38646
38646
|
Long.fromBits = fromBits;
|
|
38647
38647
|
var pow_dbl = Math.pow;
|
|
38648
|
-
function fromString(
|
|
38649
|
-
if (
|
|
38648
|
+
function fromString(str2, unsigned, radix) {
|
|
38649
|
+
if (str2.length === 0) throw Error("empty string");
|
|
38650
38650
|
if (typeof unsigned === "number") {
|
|
38651
38651
|
radix = unsigned;
|
|
38652
38652
|
unsigned = false;
|
|
38653
38653
|
} else {
|
|
38654
38654
|
unsigned = !!unsigned;
|
|
38655
38655
|
}
|
|
38656
|
-
if (
|
|
38656
|
+
if (str2 === "NaN" || str2 === "Infinity" || str2 === "+Infinity" || str2 === "-Infinity")
|
|
38657
38657
|
return unsigned ? UZERO : ZERO;
|
|
38658
38658
|
radix = radix || 10;
|
|
38659
38659
|
if (radix < 2 || 36 < radix) throw RangeError("radix");
|
|
38660
38660
|
var p2;
|
|
38661
|
-
if ((p2 =
|
|
38661
|
+
if ((p2 = str2.indexOf("-")) > 0) throw Error("interior hyphen");
|
|
38662
38662
|
else if (p2 === 0) {
|
|
38663
|
-
return fromString(
|
|
38663
|
+
return fromString(str2.substring(1), unsigned, radix).neg();
|
|
38664
38664
|
}
|
|
38665
38665
|
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
|
38666
38666
|
var result = ZERO;
|
|
38667
|
-
for (var i = 0; i <
|
|
38668
|
-
var size = Math.min(8,
|
|
38667
|
+
for (var i = 0; i < str2.length; i += 8) {
|
|
38668
|
+
var size = Math.min(8, str2.length - i), value = parseInt(str2.substring(i, i + size), radix);
|
|
38669
38669
|
if (size < 8) {
|
|
38670
38670
|
var power = fromNumber(pow_dbl(radix, size));
|
|
38671
38671
|
result = result.mul(power).add(fromNumber(value));
|
|
@@ -50193,14 +50193,14 @@ var require_PrometheusSerializer = __commonJS({
|
|
|
50193
50193
|
var core_1 = require_src();
|
|
50194
50194
|
var semantic_conventions_1 = (init_esm2(), __toCommonJS(esm_exports2));
|
|
50195
50195
|
var ATTR_OTEL_SCOPE_SCHEMA_URL = "otel.scope.schema_url";
|
|
50196
|
-
function escapeString(
|
|
50197
|
-
return
|
|
50196
|
+
function escapeString(str2) {
|
|
50197
|
+
return str2.replace(/\\/g, "\\\\").replace(/\n/g, "\\n");
|
|
50198
50198
|
}
|
|
50199
|
-
function escapeAttributeValue(
|
|
50200
|
-
if (typeof
|
|
50201
|
-
|
|
50199
|
+
function escapeAttributeValue(str2 = "") {
|
|
50200
|
+
if (typeof str2 !== "string") {
|
|
50201
|
+
str2 = JSON.stringify(str2);
|
|
50202
50202
|
}
|
|
50203
|
-
return escapeString(
|
|
50203
|
+
return escapeString(str2).replace(/"/g, '\\"');
|
|
50204
50204
|
}
|
|
50205
50205
|
var invalidCharacterRegex = /[^a-z0-9_]/gi;
|
|
50206
50206
|
var multipleUnderscoreRegex = /_{2,}/g;
|
|
@@ -50276,15 +50276,15 @@ var require_PrometheusSerializer = __commonJS({
|
|
|
50276
50276
|
this._withoutTargetInfo = !!withoutTargetInfo;
|
|
50277
50277
|
}
|
|
50278
50278
|
serialize(resourceMetrics) {
|
|
50279
|
-
let
|
|
50279
|
+
let str2 = "";
|
|
50280
50280
|
this._additionalAttributes = this._filterResourceConstantLabels(resourceMetrics.resource.attributes, this._withResourceConstantLabels);
|
|
50281
50281
|
for (const scopeMetrics of resourceMetrics.scopeMetrics) {
|
|
50282
|
-
|
|
50282
|
+
str2 += this._serializeScopeMetrics(scopeMetrics);
|
|
50283
50283
|
}
|
|
50284
|
-
if (
|
|
50285
|
-
|
|
50284
|
+
if (str2 === "") {
|
|
50285
|
+
str2 += NO_REGISTERED_METRICS;
|
|
50286
50286
|
}
|
|
50287
|
-
return this._serializeResource(resourceMetrics.resource) +
|
|
50287
|
+
return this._serializeResource(resourceMetrics.resource) + str2;
|
|
50288
50288
|
}
|
|
50289
50289
|
_filterResourceConstantLabels(attributes, pattern) {
|
|
50290
50290
|
if (pattern) {
|
|
@@ -50299,11 +50299,11 @@ var require_PrometheusSerializer = __commonJS({
|
|
|
50299
50299
|
return;
|
|
50300
50300
|
}
|
|
50301
50301
|
_serializeScopeMetrics(scopeMetrics) {
|
|
50302
|
-
let
|
|
50302
|
+
let str2 = "";
|
|
50303
50303
|
for (const metric of scopeMetrics.metrics) {
|
|
50304
|
-
|
|
50304
|
+
str2 += this._serializeMetricData(metric, scopeMetrics.scope) + "\n";
|
|
50305
50305
|
}
|
|
50306
|
-
return
|
|
50306
|
+
return str2;
|
|
50307
50307
|
}
|
|
50308
50308
|
_serializeMetricData(metricData, scope) {
|
|
50309
50309
|
let name25 = sanitizePrometheusMetricName(escapeString(metricData.descriptor.name));
|
|
@@ -54623,13 +54623,13 @@ var require_Collection = __commonJS({
|
|
|
54623
54623
|
var require_stringifyComment = __commonJS({
|
|
54624
54624
|
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
54625
54625
|
"use strict";
|
|
54626
|
-
var stringifyComment = (
|
|
54626
|
+
var stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
|
|
54627
54627
|
function indentComment(comment, indent) {
|
|
54628
54628
|
if (/^\n+$/.test(comment))
|
|
54629
54629
|
return comment.substring(1);
|
|
54630
54630
|
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
|
54631
54631
|
}
|
|
54632
|
-
var lineComment = (
|
|
54632
|
+
var lineComment = (str2, indent, comment) => str2.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str2.endsWith(" ") ? "" : " ") + comment;
|
|
54633
54633
|
exports.indentComment = indentComment;
|
|
54634
54634
|
exports.lineComment = lineComment;
|
|
54635
54635
|
exports.stringifyComment = stringifyComment;
|
|
@@ -54783,16 +54783,16 @@ var require_stringifyString = __commonJS({
|
|
|
54783
54783
|
lineWidth: ctx.options.lineWidth,
|
|
54784
54784
|
minContentWidth: ctx.options.minContentWidth
|
|
54785
54785
|
});
|
|
54786
|
-
var containsDocumentMarker = (
|
|
54787
|
-
function lineLengthOverLimit(
|
|
54786
|
+
var containsDocumentMarker = (str2) => /^(%|---|\.\.\.)/m.test(str2);
|
|
54787
|
+
function lineLengthOverLimit(str2, lineWidth, indentLength) {
|
|
54788
54788
|
if (!lineWidth || lineWidth < 0)
|
|
54789
54789
|
return false;
|
|
54790
54790
|
const limit = lineWidth - indentLength;
|
|
54791
|
-
const strLen =
|
|
54791
|
+
const strLen = str2.length;
|
|
54792
54792
|
if (strLen <= limit)
|
|
54793
54793
|
return false;
|
|
54794
54794
|
for (let i = 0, start = 0; i < strLen; ++i) {
|
|
54795
|
-
if (
|
|
54795
|
+
if (str2[i] === "\n") {
|
|
54796
54796
|
if (i - start > limit)
|
|
54797
54797
|
return true;
|
|
54798
54798
|
start = i + 1;
|
|
@@ -54809,11 +54809,11 @@ var require_stringifyString = __commonJS({
|
|
|
54809
54809
|
const { implicitKey } = ctx;
|
|
54810
54810
|
const minMultiLineLength = ctx.options.doubleQuotedMinMultiLineLength;
|
|
54811
54811
|
const indent = ctx.indent || (containsDocumentMarker(value) ? " " : "");
|
|
54812
|
-
let
|
|
54812
|
+
let str2 = "";
|
|
54813
54813
|
let start = 0;
|
|
54814
54814
|
for (let i = 0, ch = json3[i]; ch; ch = json3[++i]) {
|
|
54815
54815
|
if (ch === " " && json3[i + 1] === "\\" && json3[i + 2] === "n") {
|
|
54816
|
-
|
|
54816
|
+
str2 += json3.slice(start, i) + "\\ ";
|
|
54817
54817
|
i += 1;
|
|
54818
54818
|
start = i;
|
|
54819
54819
|
ch = "\\";
|
|
@@ -54822,38 +54822,38 @@ var require_stringifyString = __commonJS({
|
|
|
54822
54822
|
switch (json3[i + 1]) {
|
|
54823
54823
|
case "u":
|
|
54824
54824
|
{
|
|
54825
|
-
|
|
54825
|
+
str2 += json3.slice(start, i);
|
|
54826
54826
|
const code = json3.substr(i + 2, 4);
|
|
54827
54827
|
switch (code) {
|
|
54828
54828
|
case "0000":
|
|
54829
|
-
|
|
54829
|
+
str2 += "\\0";
|
|
54830
54830
|
break;
|
|
54831
54831
|
case "0007":
|
|
54832
|
-
|
|
54832
|
+
str2 += "\\a";
|
|
54833
54833
|
break;
|
|
54834
54834
|
case "000b":
|
|
54835
|
-
|
|
54835
|
+
str2 += "\\v";
|
|
54836
54836
|
break;
|
|
54837
54837
|
case "001b":
|
|
54838
|
-
|
|
54838
|
+
str2 += "\\e";
|
|
54839
54839
|
break;
|
|
54840
54840
|
case "0085":
|
|
54841
|
-
|
|
54841
|
+
str2 += "\\N";
|
|
54842
54842
|
break;
|
|
54843
54843
|
case "00a0":
|
|
54844
|
-
|
|
54844
|
+
str2 += "\\_";
|
|
54845
54845
|
break;
|
|
54846
54846
|
case "2028":
|
|
54847
|
-
|
|
54847
|
+
str2 += "\\L";
|
|
54848
54848
|
break;
|
|
54849
54849
|
case "2029":
|
|
54850
|
-
|
|
54850
|
+
str2 += "\\P";
|
|
54851
54851
|
break;
|
|
54852
54852
|
default:
|
|
54853
54853
|
if (code.substr(0, 2) === "00")
|
|
54854
|
-
|
|
54854
|
+
str2 += "\\x" + code.substr(2);
|
|
54855
54855
|
else
|
|
54856
|
-
|
|
54856
|
+
str2 += json3.substr(i, 6);
|
|
54857
54857
|
}
|
|
54858
54858
|
i += 5;
|
|
54859
54859
|
start = i + 1;
|
|
@@ -54863,14 +54863,14 @@ var require_stringifyString = __commonJS({
|
|
|
54863
54863
|
if (implicitKey || json3[i + 2] === '"' || json3.length < minMultiLineLength) {
|
|
54864
54864
|
i += 1;
|
|
54865
54865
|
} else {
|
|
54866
|
-
|
|
54866
|
+
str2 += json3.slice(start, i) + "\n\n";
|
|
54867
54867
|
while (json3[i + 2] === "\\" && json3[i + 3] === "n" && json3[i + 4] !== '"') {
|
|
54868
|
-
|
|
54868
|
+
str2 += "\n";
|
|
54869
54869
|
i += 2;
|
|
54870
54870
|
}
|
|
54871
|
-
|
|
54871
|
+
str2 += indent;
|
|
54872
54872
|
if (json3[i + 2] === " ")
|
|
54873
|
-
|
|
54873
|
+
str2 += "\\";
|
|
54874
54874
|
i += 1;
|
|
54875
54875
|
start = i + 1;
|
|
54876
54876
|
}
|
|
@@ -54879,8 +54879,8 @@ var require_stringifyString = __commonJS({
|
|
|
54879
54879
|
i += 1;
|
|
54880
54880
|
}
|
|
54881
54881
|
}
|
|
54882
|
-
|
|
54883
|
-
return implicitKey ?
|
|
54882
|
+
str2 = start ? str2 + json3.slice(start) : json3;
|
|
54883
|
+
return implicitKey ? str2 : foldFlowLines.foldFlowLines(str2, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx, false));
|
|
54884
54884
|
}
|
|
54885
54885
|
function singleQuotedString(value, ctx) {
|
|
54886
54886
|
if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes("\n") || /[ \t]\n|\n[ \t]/.test(value))
|
|
@@ -55008,15 +55008,15 @@ ${indent}${start}${value}${end}`;
|
|
|
55008
55008
|
return quotedString(value, ctx);
|
|
55009
55009
|
}
|
|
55010
55010
|
}
|
|
55011
|
-
const
|
|
55011
|
+
const str2 = value.replace(/\n+/g, `$&
|
|
55012
55012
|
${indent}`);
|
|
55013
55013
|
if (actualString) {
|
|
55014
|
-
const test = (tag) => tag.default && tag.tag !== "tag:yaml.org,2002:str" && tag.test?.test(
|
|
55014
|
+
const test = (tag) => tag.default && tag.tag !== "tag:yaml.org,2002:str" && tag.test?.test(str2);
|
|
55015
55015
|
const { compat, tags } = ctx.doc.schema;
|
|
55016
55016
|
if (tags.some(test) || compat?.some(test))
|
|
55017
55017
|
return quotedString(value, ctx);
|
|
55018
55018
|
}
|
|
55019
|
-
return implicitKey ?
|
|
55019
|
+
return implicitKey ? str2 : foldFlowLines.foldFlowLines(str2, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
|
|
55020
55020
|
}
|
|
55021
55021
|
function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
55022
55022
|
const { implicitKey, inFlow } = ctx;
|
|
@@ -55168,11 +55168,11 @@ var require_stringify = __commonJS({
|
|
|
55168
55168
|
const props = stringifyProps(node, tagObj, ctx);
|
|
55169
55169
|
if (props.length > 0)
|
|
55170
55170
|
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
55171
|
-
const
|
|
55171
|
+
const str2 = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
|
|
55172
55172
|
if (!props)
|
|
55173
|
-
return
|
|
55174
|
-
return identity.isScalar(node) ||
|
|
55175
|
-
${ctx.indent}${
|
|
55173
|
+
return str2;
|
|
55174
|
+
return identity.isScalar(node) || str2[0] === "{" || str2[0] === "[" ? `${props} ${str2}` : `${props}
|
|
55175
|
+
${ctx.indent}${str2}`;
|
|
55176
55176
|
}
|
|
55177
55177
|
exports.createStringifyContext = createStringifyContext;
|
|
55178
55178
|
exports.stringify = stringify2;
|
|
@@ -55207,8 +55207,8 @@ var require_stringifyPair = __commonJS({
|
|
|
55207
55207
|
});
|
|
55208
55208
|
let keyCommentDone = false;
|
|
55209
55209
|
let chompKeep = false;
|
|
55210
|
-
let
|
|
55211
|
-
if (!explicitKey && !ctx.inFlow &&
|
|
55210
|
+
let str2 = stringify2.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
55211
|
+
if (!explicitKey && !ctx.inFlow && str2.length > 1024) {
|
|
55212
55212
|
if (simpleKeys)
|
|
55213
55213
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
55214
55214
|
explicitKey = true;
|
|
@@ -55217,27 +55217,27 @@ var require_stringifyPair = __commonJS({
|
|
|
55217
55217
|
if (allNullValues || value == null) {
|
|
55218
55218
|
if (keyCommentDone && onComment)
|
|
55219
55219
|
onComment();
|
|
55220
|
-
return
|
|
55220
|
+
return str2 === "" ? "?" : explicitKey ? `? ${str2}` : str2;
|
|
55221
55221
|
}
|
|
55222
55222
|
} else if (allNullValues && !simpleKeys || value == null && explicitKey) {
|
|
55223
|
-
|
|
55223
|
+
str2 = `? ${str2}`;
|
|
55224
55224
|
if (keyComment && !keyCommentDone) {
|
|
55225
|
-
|
|
55225
|
+
str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment));
|
|
55226
55226
|
} else if (chompKeep && onChompKeep)
|
|
55227
55227
|
onChompKeep();
|
|
55228
|
-
return
|
|
55228
|
+
return str2;
|
|
55229
55229
|
}
|
|
55230
55230
|
if (keyCommentDone)
|
|
55231
55231
|
keyComment = null;
|
|
55232
55232
|
if (explicitKey) {
|
|
55233
55233
|
if (keyComment)
|
|
55234
|
-
|
|
55235
|
-
|
|
55234
|
+
str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment));
|
|
55235
|
+
str2 = `? ${str2}
|
|
55236
55236
|
${indent}:`;
|
|
55237
55237
|
} else {
|
|
55238
|
-
|
|
55238
|
+
str2 = `${str2}:`;
|
|
55239
55239
|
if (keyComment)
|
|
55240
|
-
|
|
55240
|
+
str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment));
|
|
55241
55241
|
}
|
|
55242
55242
|
let vsb, vcb, valueComment;
|
|
55243
55243
|
if (identity.isNode(value)) {
|
|
@@ -55253,7 +55253,7 @@ ${indent}:`;
|
|
|
55253
55253
|
}
|
|
55254
55254
|
ctx.implicitKey = false;
|
|
55255
55255
|
if (!explicitKey && !keyComment && identity.isScalar(value))
|
|
55256
|
-
ctx.indentAtStart =
|
|
55256
|
+
ctx.indentAtStart = str2.length + 1;
|
|
55257
55257
|
chompKeep = false;
|
|
55258
55258
|
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && identity.isSeq(value) && !value.flow && !value.tag && !value.anchor) {
|
|
55259
55259
|
ctx.indent = ctx.indent.substring(2);
|
|
@@ -55297,16 +55297,16 @@ ${ctx.indent}`;
|
|
|
55297
55297
|
} else if (valueStr === "" || valueStr[0] === "\n") {
|
|
55298
55298
|
ws = "";
|
|
55299
55299
|
}
|
|
55300
|
-
|
|
55300
|
+
str2 += ws + valueStr;
|
|
55301
55301
|
if (ctx.inFlow) {
|
|
55302
55302
|
if (valueCommentDone && onComment)
|
|
55303
55303
|
onComment();
|
|
55304
55304
|
} else if (valueComment && !valueCommentDone) {
|
|
55305
|
-
|
|
55305
|
+
str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(valueComment));
|
|
55306
55306
|
} else if (chompKeep && onChompKeep) {
|
|
55307
55307
|
onChompKeep();
|
|
55308
55308
|
}
|
|
55309
|
-
return
|
|
55309
|
+
return str2;
|
|
55310
55310
|
}
|
|
55311
55311
|
exports.stringifyPair = stringifyPair;
|
|
55312
55312
|
}
|
|
@@ -55533,31 +55533,31 @@ var require_stringifyCollection = __commonJS({
|
|
|
55533
55533
|
}
|
|
55534
55534
|
}
|
|
55535
55535
|
chompKeep = false;
|
|
55536
|
-
let
|
|
55536
|
+
let str3 = stringify2.stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
|
|
55537
55537
|
if (comment2)
|
|
55538
|
-
|
|
55538
|
+
str3 += stringifyComment.lineComment(str3, itemIndent, commentString(comment2));
|
|
55539
55539
|
if (chompKeep && comment2)
|
|
55540
55540
|
chompKeep = false;
|
|
55541
|
-
lines.push(blockItemPrefix +
|
|
55541
|
+
lines.push(blockItemPrefix + str3);
|
|
55542
55542
|
}
|
|
55543
|
-
let
|
|
55543
|
+
let str2;
|
|
55544
55544
|
if (lines.length === 0) {
|
|
55545
|
-
|
|
55545
|
+
str2 = flowChars.start + flowChars.end;
|
|
55546
55546
|
} else {
|
|
55547
|
-
|
|
55547
|
+
str2 = lines[0];
|
|
55548
55548
|
for (let i = 1; i < lines.length; ++i) {
|
|
55549
55549
|
const line = lines[i];
|
|
55550
|
-
|
|
55550
|
+
str2 += line ? `
|
|
55551
55551
|
${indent}${line}` : "\n";
|
|
55552
55552
|
}
|
|
55553
55553
|
}
|
|
55554
55554
|
if (comment) {
|
|
55555
|
-
|
|
55555
|
+
str2 += "\n" + stringifyComment.indentComment(commentString(comment), indent);
|
|
55556
55556
|
if (onComment)
|
|
55557
55557
|
onComment();
|
|
55558
55558
|
} else if (chompKeep && onChompKeep)
|
|
55559
55559
|
onChompKeep();
|
|
55560
|
-
return
|
|
55560
|
+
return str2;
|
|
55561
55561
|
}
|
|
55562
55562
|
function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
55563
55563
|
const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
|
|
@@ -55600,21 +55600,21 @@ ${indent}${line}` : "\n";
|
|
|
55600
55600
|
}
|
|
55601
55601
|
if (comment)
|
|
55602
55602
|
reqNewline = true;
|
|
55603
|
-
let
|
|
55604
|
-
reqNewline || (reqNewline = lines.length > linesAtValue ||
|
|
55603
|
+
let str2 = stringify2.stringify(item, itemCtx, () => comment = null);
|
|
55604
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str2.includes("\n"));
|
|
55605
55605
|
if (i < items.length - 1) {
|
|
55606
|
-
|
|
55606
|
+
str2 += ",";
|
|
55607
55607
|
} else if (ctx.options.trailingComma) {
|
|
55608
55608
|
if (ctx.options.lineWidth > 0) {
|
|
55609
|
-
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (
|
|
55609
|
+
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str2.length + 2) > ctx.options.lineWidth);
|
|
55610
55610
|
}
|
|
55611
55611
|
if (reqNewline) {
|
|
55612
|
-
|
|
55612
|
+
str2 += ",";
|
|
55613
55613
|
}
|
|
55614
55614
|
}
|
|
55615
55615
|
if (comment)
|
|
55616
|
-
|
|
55617
|
-
lines.push(
|
|
55616
|
+
str2 += stringifyComment.lineComment(str2, itemIndent, commentString(comment));
|
|
55617
|
+
lines.push(str2);
|
|
55618
55618
|
linesAtValue = lines.length;
|
|
55619
55619
|
}
|
|
55620
55620
|
const { start, end } = flowChars;
|
|
@@ -55626,11 +55626,11 @@ ${indent}${line}` : "\n";
|
|
|
55626
55626
|
reqNewline = ctx.options.lineWidth > 0 && len > ctx.options.lineWidth;
|
|
55627
55627
|
}
|
|
55628
55628
|
if (reqNewline) {
|
|
55629
|
-
let
|
|
55629
|
+
let str2 = start;
|
|
55630
55630
|
for (const line of lines)
|
|
55631
|
-
|
|
55631
|
+
str2 += line ? `
|
|
55632
55632
|
${indentStep}${indent}${line}` : "\n";
|
|
55633
|
-
return `${
|
|
55633
|
+
return `${str2}
|
|
55634
55634
|
${indent}${end}`;
|
|
55635
55635
|
} else {
|
|
55636
55636
|
return `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
|
|
@@ -55962,7 +55962,7 @@ var require_string = __commonJS({
|
|
|
55962
55962
|
identify: (value) => typeof value === "string",
|
|
55963
55963
|
default: true,
|
|
55964
55964
|
tag: "tag:yaml.org,2002:str",
|
|
55965
|
-
resolve: (
|
|
55965
|
+
resolve: (str2) => str2,
|
|
55966
55966
|
stringify(item, ctx, onComment, onChompKeep) {
|
|
55967
55967
|
ctx = Object.assign({ actualString: true }, ctx);
|
|
55968
55968
|
return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
|
|
@@ -56000,7 +56000,7 @@ var require_bool = __commonJS({
|
|
|
56000
56000
|
default: true,
|
|
56001
56001
|
tag: "tag:yaml.org,2002:bool",
|
|
56002
56002
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
56003
|
-
resolve: (
|
|
56003
|
+
resolve: (str2) => new Scalar.Scalar(str2[0] === "t" || str2[0] === "T"),
|
|
56004
56004
|
stringify({ source, value }, ctx) {
|
|
56005
56005
|
if (source && boolTag.test.test(source)) {
|
|
56006
56006
|
const sv = source[0] === "t" || source[0] === "T";
|
|
@@ -56052,7 +56052,7 @@ var require_float2 = __commonJS({
|
|
|
56052
56052
|
default: true,
|
|
56053
56053
|
tag: "tag:yaml.org,2002:float",
|
|
56054
56054
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
56055
|
-
resolve: (
|
|
56055
|
+
resolve: (str2) => str2.slice(-3).toLowerCase() === "nan" ? NaN : str2[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
56056
56056
|
stringify: stringifyNumber.stringifyNumber
|
|
56057
56057
|
};
|
|
56058
56058
|
var floatExp = {
|
|
@@ -56061,7 +56061,7 @@ var require_float2 = __commonJS({
|
|
|
56061
56061
|
tag: "tag:yaml.org,2002:float",
|
|
56062
56062
|
format: "EXP",
|
|
56063
56063
|
test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
|
|
56064
|
-
resolve: (
|
|
56064
|
+
resolve: (str2) => parseFloat(str2),
|
|
56065
56065
|
stringify(node) {
|
|
56066
56066
|
const num = Number(node.value);
|
|
56067
56067
|
return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node);
|
|
@@ -56072,11 +56072,11 @@ var require_float2 = __commonJS({
|
|
|
56072
56072
|
default: true,
|
|
56073
56073
|
tag: "tag:yaml.org,2002:float",
|
|
56074
56074
|
test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
|
|
56075
|
-
resolve(
|
|
56076
|
-
const node = new Scalar.Scalar(parseFloat(
|
|
56077
|
-
const dot =
|
|
56078
|
-
if (dot !== -1 &&
|
|
56079
|
-
node.minFractionDigits =
|
|
56075
|
+
resolve(str2) {
|
|
56076
|
+
const node = new Scalar.Scalar(parseFloat(str2));
|
|
56077
|
+
const dot = str2.indexOf(".");
|
|
56078
|
+
if (dot !== -1 && str2[str2.length - 1] === "0")
|
|
56079
|
+
node.minFractionDigits = str2.length - dot - 1;
|
|
56080
56080
|
return node;
|
|
56081
56081
|
},
|
|
56082
56082
|
stringify: stringifyNumber.stringifyNumber
|
|
@@ -56093,7 +56093,7 @@ var require_int = __commonJS({
|
|
|
56093
56093
|
"use strict";
|
|
56094
56094
|
var stringifyNumber = require_stringifyNumber();
|
|
56095
56095
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
56096
|
-
var intResolve = (
|
|
56096
|
+
var intResolve = (str2, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2.substring(offset), radix);
|
|
56097
56097
|
function intStringify(node, radix, prefix) {
|
|
56098
56098
|
const { value } = node;
|
|
56099
56099
|
if (intIdentify(value) && value >= 0)
|
|
@@ -56106,7 +56106,7 @@ var require_int = __commonJS({
|
|
|
56106
56106
|
tag: "tag:yaml.org,2002:int",
|
|
56107
56107
|
format: "OCT",
|
|
56108
56108
|
test: /^0o[0-7]+$/,
|
|
56109
|
-
resolve: (
|
|
56109
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 2, 8, opt),
|
|
56110
56110
|
stringify: (node) => intStringify(node, 8, "0o")
|
|
56111
56111
|
};
|
|
56112
56112
|
var int2 = {
|
|
@@ -56114,7 +56114,7 @@ var require_int = __commonJS({
|
|
|
56114
56114
|
default: true,
|
|
56115
56115
|
tag: "tag:yaml.org,2002:int",
|
|
56116
56116
|
test: /^[-+]?[0-9]+$/,
|
|
56117
|
-
resolve: (
|
|
56117
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 0, 10, opt),
|
|
56118
56118
|
stringify: stringifyNumber.stringifyNumber
|
|
56119
56119
|
};
|
|
56120
56120
|
var intHex = {
|
|
@@ -56123,7 +56123,7 @@ var require_int = __commonJS({
|
|
|
56123
56123
|
tag: "tag:yaml.org,2002:int",
|
|
56124
56124
|
format: "HEX",
|
|
56125
56125
|
test: /^0x[0-9a-fA-F]+$/,
|
|
56126
|
-
resolve: (
|
|
56126
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 2, 16, opt),
|
|
56127
56127
|
stringify: (node) => intStringify(node, 16, "0x")
|
|
56128
56128
|
};
|
|
56129
56129
|
exports.int = int2;
|
|
@@ -56176,7 +56176,7 @@ var require_schema2 = __commonJS({
|
|
|
56176
56176
|
identify: (value) => typeof value === "string",
|
|
56177
56177
|
default: true,
|
|
56178
56178
|
tag: "tag:yaml.org,2002:str",
|
|
56179
|
-
resolve: (
|
|
56179
|
+
resolve: (str2) => str2,
|
|
56180
56180
|
stringify: stringifyJSON
|
|
56181
56181
|
},
|
|
56182
56182
|
{
|
|
@@ -56193,7 +56193,7 @@ var require_schema2 = __commonJS({
|
|
|
56193
56193
|
default: true,
|
|
56194
56194
|
tag: "tag:yaml.org,2002:bool",
|
|
56195
56195
|
test: /^true$|^false$/,
|
|
56196
|
-
resolve: (
|
|
56196
|
+
resolve: (str2) => str2 === "true",
|
|
56197
56197
|
stringify: stringifyJSON
|
|
56198
56198
|
},
|
|
56199
56199
|
{
|
|
@@ -56201,7 +56201,7 @@ var require_schema2 = __commonJS({
|
|
|
56201
56201
|
default: true,
|
|
56202
56202
|
tag: "tag:yaml.org,2002:int",
|
|
56203
56203
|
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
56204
|
-
resolve: (
|
|
56204
|
+
resolve: (str2, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2, 10),
|
|
56205
56205
|
stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value)
|
|
56206
56206
|
},
|
|
56207
56207
|
{
|
|
@@ -56209,7 +56209,7 @@ var require_schema2 = __commonJS({
|
|
|
56209
56209
|
default: true,
|
|
56210
56210
|
tag: "tag:yaml.org,2002:float",
|
|
56211
56211
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
56212
|
-
resolve: (
|
|
56212
|
+
resolve: (str2) => parseFloat(str2),
|
|
56213
56213
|
stringify: stringifyJSON
|
|
56214
56214
|
}
|
|
56215
56215
|
];
|
|
@@ -56217,9 +56217,9 @@ var require_schema2 = __commonJS({
|
|
|
56217
56217
|
default: true,
|
|
56218
56218
|
tag: "",
|
|
56219
56219
|
test: /^/,
|
|
56220
|
-
resolve(
|
|
56221
|
-
onError(`Unresolved plain scalar ${JSON.stringify(
|
|
56222
|
-
return
|
|
56220
|
+
resolve(str2, onError) {
|
|
56221
|
+
onError(`Unresolved plain scalar ${JSON.stringify(str2)}`);
|
|
56222
|
+
return str2;
|
|
56223
56223
|
}
|
|
56224
56224
|
};
|
|
56225
56225
|
var schema = [map2.map, seq.seq].concat(jsonScalars, jsonError);
|
|
@@ -56251,10 +56251,10 @@ var require_binary = __commonJS({
|
|
|
56251
56251
|
if (typeof node_buffer.Buffer === "function") {
|
|
56252
56252
|
return node_buffer.Buffer.from(src, "base64");
|
|
56253
56253
|
} else if (typeof atob === "function") {
|
|
56254
|
-
const
|
|
56255
|
-
const buffer = new Uint8Array(
|
|
56256
|
-
for (let i = 0; i <
|
|
56257
|
-
buffer[i] =
|
|
56254
|
+
const str2 = atob(src.replace(/[\n\r]/g, ""));
|
|
56255
|
+
const buffer = new Uint8Array(str2.length);
|
|
56256
|
+
for (let i = 0; i < str2.length; ++i)
|
|
56257
|
+
buffer[i] = str2.charCodeAt(i);
|
|
56258
56258
|
return buffer;
|
|
56259
56259
|
} else {
|
|
56260
56260
|
onError("This environment does not support reading binary tags; either Buffer or atob is required");
|
|
@@ -56265,28 +56265,28 @@ var require_binary = __commonJS({
|
|
|
56265
56265
|
if (!value)
|
|
56266
56266
|
return "";
|
|
56267
56267
|
const buf = value;
|
|
56268
|
-
let
|
|
56268
|
+
let str2;
|
|
56269
56269
|
if (typeof node_buffer.Buffer === "function") {
|
|
56270
|
-
|
|
56270
|
+
str2 = buf instanceof node_buffer.Buffer ? buf.toString("base64") : node_buffer.Buffer.from(buf.buffer).toString("base64");
|
|
56271
56271
|
} else if (typeof btoa === "function") {
|
|
56272
56272
|
let s3 = "";
|
|
56273
56273
|
for (let i = 0; i < buf.length; ++i)
|
|
56274
56274
|
s3 += String.fromCharCode(buf[i]);
|
|
56275
|
-
|
|
56275
|
+
str2 = btoa(s3);
|
|
56276
56276
|
} else {
|
|
56277
56277
|
throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
|
|
56278
56278
|
}
|
|
56279
56279
|
type ?? (type = Scalar.Scalar.BLOCK_LITERAL);
|
|
56280
56280
|
if (type !== Scalar.Scalar.QUOTE_DOUBLE) {
|
|
56281
56281
|
const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
|
|
56282
|
-
const n = Math.ceil(
|
|
56282
|
+
const n = Math.ceil(str2.length / lineWidth);
|
|
56283
56283
|
const lines = new Array(n);
|
|
56284
56284
|
for (let i = 0, o = 0; i < n; ++i, o += lineWidth) {
|
|
56285
|
-
lines[i] =
|
|
56285
|
+
lines[i] = str2.substr(o, lineWidth);
|
|
56286
56286
|
}
|
|
56287
|
-
|
|
56287
|
+
str2 = lines.join(type === Scalar.Scalar.BLOCK_LITERAL ? "\n" : " ");
|
|
56288
56288
|
}
|
|
56289
|
-
return stringifyString.stringifyString({ comment, type, value:
|
|
56289
|
+
return stringifyString.stringifyString({ comment, type, value: str2 }, ctx, onComment, onChompKeep);
|
|
56290
56290
|
}
|
|
56291
56291
|
};
|
|
56292
56292
|
exports.binary = binary;
|
|
@@ -56492,7 +56492,7 @@ var require_float3 = __commonJS({
|
|
|
56492
56492
|
default: true,
|
|
56493
56493
|
tag: "tag:yaml.org,2002:float",
|
|
56494
56494
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
56495
|
-
resolve: (
|
|
56495
|
+
resolve: (str2) => str2.slice(-3).toLowerCase() === "nan" ? NaN : str2[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
56496
56496
|
stringify: stringifyNumber.stringifyNumber
|
|
56497
56497
|
};
|
|
56498
56498
|
var floatExp = {
|
|
@@ -56501,7 +56501,7 @@ var require_float3 = __commonJS({
|
|
|
56501
56501
|
tag: "tag:yaml.org,2002:float",
|
|
56502
56502
|
format: "EXP",
|
|
56503
56503
|
test: /^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,
|
|
56504
|
-
resolve: (
|
|
56504
|
+
resolve: (str2) => parseFloat(str2.replace(/_/g, "")),
|
|
56505
56505
|
stringify(node) {
|
|
56506
56506
|
const num = Number(node.value);
|
|
56507
56507
|
return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node);
|
|
@@ -56512,11 +56512,11 @@ var require_float3 = __commonJS({
|
|
|
56512
56512
|
default: true,
|
|
56513
56513
|
tag: "tag:yaml.org,2002:float",
|
|
56514
56514
|
test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
|
|
56515
|
-
resolve(
|
|
56516
|
-
const node = new Scalar.Scalar(parseFloat(
|
|
56517
|
-
const dot =
|
|
56515
|
+
resolve(str2) {
|
|
56516
|
+
const node = new Scalar.Scalar(parseFloat(str2.replace(/_/g, "")));
|
|
56517
|
+
const dot = str2.indexOf(".");
|
|
56518
56518
|
if (dot !== -1) {
|
|
56519
|
-
const f2 =
|
|
56519
|
+
const f2 = str2.substring(dot + 1).replace(/_/g, "");
|
|
56520
56520
|
if (f2[f2.length - 1] === "0")
|
|
56521
56521
|
node.minFractionDigits = f2.length;
|
|
56522
56522
|
}
|
|
@@ -56536,34 +56536,34 @@ var require_int2 = __commonJS({
|
|
|
56536
56536
|
"use strict";
|
|
56537
56537
|
var stringifyNumber = require_stringifyNumber();
|
|
56538
56538
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
56539
|
-
function intResolve(
|
|
56540
|
-
const
|
|
56541
|
-
if (
|
|
56539
|
+
function intResolve(str2, offset, radix, { intAsBigInt }) {
|
|
56540
|
+
const sign3 = str2[0];
|
|
56541
|
+
if (sign3 === "-" || sign3 === "+")
|
|
56542
56542
|
offset += 1;
|
|
56543
|
-
|
|
56543
|
+
str2 = str2.substring(offset).replace(/_/g, "");
|
|
56544
56544
|
if (intAsBigInt) {
|
|
56545
56545
|
switch (radix) {
|
|
56546
56546
|
case 2:
|
|
56547
|
-
|
|
56547
|
+
str2 = `0b${str2}`;
|
|
56548
56548
|
break;
|
|
56549
56549
|
case 8:
|
|
56550
|
-
|
|
56550
|
+
str2 = `0o${str2}`;
|
|
56551
56551
|
break;
|
|
56552
56552
|
case 16:
|
|
56553
|
-
|
|
56553
|
+
str2 = `0x${str2}`;
|
|
56554
56554
|
break;
|
|
56555
56555
|
}
|
|
56556
|
-
const n2 = BigInt(
|
|
56557
|
-
return
|
|
56556
|
+
const n2 = BigInt(str2);
|
|
56557
|
+
return sign3 === "-" ? BigInt(-1) * n2 : n2;
|
|
56558
56558
|
}
|
|
56559
|
-
const n = parseInt(
|
|
56560
|
-
return
|
|
56559
|
+
const n = parseInt(str2, radix);
|
|
56560
|
+
return sign3 === "-" ? -1 * n : n;
|
|
56561
56561
|
}
|
|
56562
56562
|
function intStringify(node, radix, prefix) {
|
|
56563
56563
|
const { value } = node;
|
|
56564
56564
|
if (intIdentify(value)) {
|
|
56565
|
-
const
|
|
56566
|
-
return value < 0 ? "-" + prefix +
|
|
56565
|
+
const str2 = value.toString(radix);
|
|
56566
|
+
return value < 0 ? "-" + prefix + str2.substr(1) : prefix + str2;
|
|
56567
56567
|
}
|
|
56568
56568
|
return stringifyNumber.stringifyNumber(node);
|
|
56569
56569
|
}
|
|
@@ -56573,7 +56573,7 @@ var require_int2 = __commonJS({
|
|
|
56573
56573
|
tag: "tag:yaml.org,2002:int",
|
|
56574
56574
|
format: "BIN",
|
|
56575
56575
|
test: /^[-+]?0b[0-1_]+$/,
|
|
56576
|
-
resolve: (
|
|
56576
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 2, 2, opt),
|
|
56577
56577
|
stringify: (node) => intStringify(node, 2, "0b")
|
|
56578
56578
|
};
|
|
56579
56579
|
var intOct = {
|
|
@@ -56582,7 +56582,7 @@ var require_int2 = __commonJS({
|
|
|
56582
56582
|
tag: "tag:yaml.org,2002:int",
|
|
56583
56583
|
format: "OCT",
|
|
56584
56584
|
test: /^[-+]?0[0-7_]+$/,
|
|
56585
|
-
resolve: (
|
|
56585
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 1, 8, opt),
|
|
56586
56586
|
stringify: (node) => intStringify(node, 8, "0")
|
|
56587
56587
|
};
|
|
56588
56588
|
var int2 = {
|
|
@@ -56590,7 +56590,7 @@ var require_int2 = __commonJS({
|
|
|
56590
56590
|
default: true,
|
|
56591
56591
|
tag: "tag:yaml.org,2002:int",
|
|
56592
56592
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
56593
|
-
resolve: (
|
|
56593
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 0, 10, opt),
|
|
56594
56594
|
stringify: stringifyNumber.stringifyNumber
|
|
56595
56595
|
};
|
|
56596
56596
|
var intHex = {
|
|
@@ -56599,7 +56599,7 @@ var require_int2 = __commonJS({
|
|
|
56599
56599
|
tag: "tag:yaml.org,2002:int",
|
|
56600
56600
|
format: "HEX",
|
|
56601
56601
|
test: /^[-+]?0x[0-9a-fA-F_]+$/,
|
|
56602
|
-
resolve: (
|
|
56602
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 2, 16, opt),
|
|
56603
56603
|
stringify: (node) => intStringify(node, 16, "0x")
|
|
56604
56604
|
};
|
|
56605
56605
|
exports.int = int2;
|
|
@@ -56703,12 +56703,12 @@ var require_timestamp = __commonJS({
|
|
|
56703
56703
|
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
56704
56704
|
"use strict";
|
|
56705
56705
|
var stringifyNumber = require_stringifyNumber();
|
|
56706
|
-
function parseSexagesimal(
|
|
56707
|
-
const
|
|
56708
|
-
const parts =
|
|
56706
|
+
function parseSexagesimal(str2, asBigInt) {
|
|
56707
|
+
const sign3 = str2[0];
|
|
56708
|
+
const parts = sign3 === "-" || sign3 === "+" ? str2.substring(1) : str2;
|
|
56709
56709
|
const num = (n) => asBigInt ? BigInt(n) : Number(n);
|
|
56710
56710
|
const res = parts.replace(/_/g, "").split(":").reduce((res2, p2) => res2 * num(60) + num(p2), num(0));
|
|
56711
|
-
return
|
|
56711
|
+
return sign3 === "-" ? num(-1) * res : res;
|
|
56712
56712
|
}
|
|
56713
56713
|
function stringifySexagesimal(node) {
|
|
56714
56714
|
let { value } = node;
|
|
@@ -56717,9 +56717,9 @@ var require_timestamp = __commonJS({
|
|
|
56717
56717
|
num = (n) => BigInt(n);
|
|
56718
56718
|
else if (isNaN(value) || !isFinite(value))
|
|
56719
56719
|
return stringifyNumber.stringifyNumber(node);
|
|
56720
|
-
let
|
|
56720
|
+
let sign3 = "";
|
|
56721
56721
|
if (value < 0) {
|
|
56722
|
-
|
|
56722
|
+
sign3 = "-";
|
|
56723
56723
|
value *= num(-1);
|
|
56724
56724
|
}
|
|
56725
56725
|
const _60 = num(60);
|
|
@@ -56734,7 +56734,7 @@ var require_timestamp = __commonJS({
|
|
|
56734
56734
|
parts.unshift(value);
|
|
56735
56735
|
}
|
|
56736
56736
|
}
|
|
56737
|
-
return
|
|
56737
|
+
return sign3 + parts.map((n) => String(n).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
|
|
56738
56738
|
}
|
|
56739
56739
|
var intTime = {
|
|
56740
56740
|
identify: (value) => typeof value === "bigint" || Number.isInteger(value),
|
|
@@ -56742,7 +56742,7 @@ var require_timestamp = __commonJS({
|
|
|
56742
56742
|
tag: "tag:yaml.org,2002:int",
|
|
56743
56743
|
format: "TIME",
|
|
56744
56744
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
|
|
56745
|
-
resolve: (
|
|
56745
|
+
resolve: (str2, _onError, { intAsBigInt }) => parseSexagesimal(str2, intAsBigInt),
|
|
56746
56746
|
stringify: stringifySexagesimal
|
|
56747
56747
|
};
|
|
56748
56748
|
var floatTime = {
|
|
@@ -56751,7 +56751,7 @@ var require_timestamp = __commonJS({
|
|
|
56751
56751
|
tag: "tag:yaml.org,2002:float",
|
|
56752
56752
|
format: "TIME",
|
|
56753
56753
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
|
|
56754
|
-
resolve: (
|
|
56754
|
+
resolve: (str2) => parseSexagesimal(str2, false),
|
|
56755
56755
|
stringify: stringifySexagesimal
|
|
56756
56756
|
};
|
|
56757
56757
|
var timestamp = {
|
|
@@ -56762,8 +56762,8 @@ var require_timestamp = __commonJS({
|
|
|
56762
56762
|
// may be omitted altogether, resulting in a date format. In such a case, the time part is
|
|
56763
56763
|
// assumed to be 00:00:00Z (start of day, UTC).
|
|
56764
56764
|
test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
|
|
56765
|
-
resolve(
|
|
56766
|
-
const match2 =
|
|
56765
|
+
resolve(str2) {
|
|
56766
|
+
const match2 = str2.match(timestamp.test);
|
|
56767
56767
|
if (!match2)
|
|
56768
56768
|
throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
|
|
56769
56769
|
const [, year, month, day, hour, minute, second] = match2.map(Number);
|
|
@@ -66630,10 +66630,10 @@ var require_redaction = __commonJS({
|
|
|
66630
66630
|
var strict = false;
|
|
66631
66631
|
function redaction(opts, serialize) {
|
|
66632
66632
|
const { paths, censor, remove } = handle(opts);
|
|
66633
|
-
const shape = paths.reduce((o,
|
|
66633
|
+
const shape = paths.reduce((o, str2) => {
|
|
66634
66634
|
rx.lastIndex = 0;
|
|
66635
|
-
const first = rx.exec(
|
|
66636
|
-
const next = rx.exec(
|
|
66635
|
+
const first = rx.exec(str2);
|
|
66636
|
+
const next = rx.exec(str2);
|
|
66637
66637
|
let ns = first[1] !== void 0 ? first[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/, "$1") : first[0];
|
|
66638
66638
|
if (ns === "*") {
|
|
66639
66639
|
ns = wildcardFirstSym;
|
|
@@ -66646,7 +66646,7 @@ var require_redaction = __commonJS({
|
|
|
66646
66646
|
return o;
|
|
66647
66647
|
}
|
|
66648
66648
|
const { index } = next;
|
|
66649
|
-
const nextPath = `${
|
|
66649
|
+
const nextPath = `${str2.substr(index, str2.length - 1)}`;
|
|
66650
66650
|
o[ns] = o[ns] || [];
|
|
66651
66651
|
if (ns !== wildcardFirstSym && o[ns].length === 0) {
|
|
66652
66652
|
o[ns].push(...o[wildcardFirstSym] || []);
|
|
@@ -66762,7 +66762,7 @@ var require_quick_format_unescaped = __commonJS({
|
|
|
66762
66762
|
}
|
|
66763
66763
|
var argLen = args.length;
|
|
66764
66764
|
if (argLen === 0) return f2;
|
|
66765
|
-
var
|
|
66765
|
+
var str2 = "";
|
|
66766
66766
|
var a = 1 - offset;
|
|
66767
66767
|
var lastPos = -1;
|
|
66768
66768
|
var flen = f2 && f2.length || 0;
|
|
@@ -66777,8 +66777,8 @@ var require_quick_format_unescaped = __commonJS({
|
|
|
66777
66777
|
break;
|
|
66778
66778
|
if (args[a] == null) break;
|
|
66779
66779
|
if (lastPos < i)
|
|
66780
|
-
|
|
66781
|
-
|
|
66780
|
+
str2 += f2.slice(lastPos, i);
|
|
66781
|
+
str2 += Number(args[a]);
|
|
66782
66782
|
lastPos = i + 2;
|
|
66783
66783
|
i++;
|
|
66784
66784
|
break;
|
|
@@ -66787,8 +66787,8 @@ var require_quick_format_unescaped = __commonJS({
|
|
|
66787
66787
|
break;
|
|
66788
66788
|
if (args[a] == null) break;
|
|
66789
66789
|
if (lastPos < i)
|
|
66790
|
-
|
|
66791
|
-
|
|
66790
|
+
str2 += f2.slice(lastPos, i);
|
|
66791
|
+
str2 += Math.floor(Number(args[a]));
|
|
66792
66792
|
lastPos = i + 2;
|
|
66793
66793
|
i++;
|
|
66794
66794
|
break;
|
|
@@ -66801,21 +66801,21 @@ var require_quick_format_unescaped = __commonJS({
|
|
|
66801
66801
|
break;
|
|
66802
66802
|
if (args[a] === void 0) break;
|
|
66803
66803
|
if (lastPos < i)
|
|
66804
|
-
|
|
66804
|
+
str2 += f2.slice(lastPos, i);
|
|
66805
66805
|
var type = typeof args[a];
|
|
66806
66806
|
if (type === "string") {
|
|
66807
|
-
|
|
66807
|
+
str2 += "'" + args[a] + "'";
|
|
66808
66808
|
lastPos = i + 2;
|
|
66809
66809
|
i++;
|
|
66810
66810
|
break;
|
|
66811
66811
|
}
|
|
66812
66812
|
if (type === "function") {
|
|
66813
|
-
|
|
66813
|
+
str2 += args[a].name || "<anonymous>";
|
|
66814
66814
|
lastPos = i + 2;
|
|
66815
66815
|
i++;
|
|
66816
66816
|
break;
|
|
66817
66817
|
}
|
|
66818
|
-
|
|
66818
|
+
str2 += ss(args[a]);
|
|
66819
66819
|
lastPos = i + 2;
|
|
66820
66820
|
i++;
|
|
66821
66821
|
break;
|
|
@@ -66823,15 +66823,15 @@ var require_quick_format_unescaped = __commonJS({
|
|
|
66823
66823
|
if (a >= argLen)
|
|
66824
66824
|
break;
|
|
66825
66825
|
if (lastPos < i)
|
|
66826
|
-
|
|
66827
|
-
|
|
66826
|
+
str2 += f2.slice(lastPos, i);
|
|
66827
|
+
str2 += String(args[a]);
|
|
66828
66828
|
lastPos = i + 2;
|
|
66829
66829
|
i++;
|
|
66830
66830
|
break;
|
|
66831
66831
|
case 37:
|
|
66832
66832
|
if (lastPos < i)
|
|
66833
|
-
|
|
66834
|
-
|
|
66833
|
+
str2 += f2.slice(lastPos, i);
|
|
66834
|
+
str2 += "%";
|
|
66835
66835
|
lastPos = i + 2;
|
|
66836
66836
|
i++;
|
|
66837
66837
|
a--;
|
|
@@ -66844,9 +66844,9 @@ var require_quick_format_unescaped = __commonJS({
|
|
|
66844
66844
|
if (lastPos === -1)
|
|
66845
66845
|
return f2;
|
|
66846
66846
|
else if (lastPos < flen) {
|
|
66847
|
-
|
|
66847
|
+
str2 += f2.slice(lastPos);
|
|
66848
66848
|
}
|
|
66849
|
-
return
|
|
66849
|
+
return str2;
|
|
66850
66850
|
}
|
|
66851
66851
|
}
|
|
66852
66852
|
});
|
|
@@ -68360,7 +68360,7 @@ var require_tools = __commonJS({
|
|
|
68360
68360
|
var transport = require_transport2();
|
|
68361
68361
|
var [nodeMajor] = process.versions.node.split(".").map((v2) => Number(v2));
|
|
68362
68362
|
var asJsonChan = diagChan.tracingChannel("pino_asJson");
|
|
68363
|
-
var asString = nodeMajor >= 25 ? (
|
|
68363
|
+
var asString = nodeMajor >= 25 ? (str2) => JSON.stringify(str2) : _asString;
|
|
68364
68364
|
function noop4() {
|
|
68365
68365
|
}
|
|
68366
68366
|
function genLog(level, hook) {
|
|
@@ -68398,29 +68398,29 @@ var require_tools = __commonJS({
|
|
|
68398
68398
|
}
|
|
68399
68399
|
}
|
|
68400
68400
|
}
|
|
68401
|
-
function _asString(
|
|
68401
|
+
function _asString(str2) {
|
|
68402
68402
|
let result = "";
|
|
68403
68403
|
let last = 0;
|
|
68404
68404
|
let found = false;
|
|
68405
68405
|
let point = 255;
|
|
68406
|
-
const l =
|
|
68406
|
+
const l = str2.length;
|
|
68407
68407
|
if (l > 100) {
|
|
68408
|
-
return JSON.stringify(
|
|
68408
|
+
return JSON.stringify(str2);
|
|
68409
68409
|
}
|
|
68410
68410
|
for (var i = 0; i < l && point >= 32; i++) {
|
|
68411
|
-
point =
|
|
68411
|
+
point = str2.charCodeAt(i);
|
|
68412
68412
|
if (point === 34 || point === 92) {
|
|
68413
|
-
result +=
|
|
68413
|
+
result += str2.slice(last, i) + "\\";
|
|
68414
68414
|
last = i;
|
|
68415
68415
|
found = true;
|
|
68416
68416
|
}
|
|
68417
68417
|
}
|
|
68418
68418
|
if (!found) {
|
|
68419
|
-
result =
|
|
68419
|
+
result = str2;
|
|
68420
68420
|
} else {
|
|
68421
|
-
result +=
|
|
68421
|
+
result += str2.slice(last);
|
|
68422
68422
|
}
|
|
68423
|
-
return point < 32 ? JSON.stringify(
|
|
68423
|
+
return point < 32 ? JSON.stringify(str2) : '"' + result + '"';
|
|
68424
68424
|
}
|
|
68425
68425
|
function asJson(obj, msg, num, time3) {
|
|
68426
68426
|
if (asJsonChan.hasSubscribers === false) {
|
|
@@ -69124,11 +69124,11 @@ var require_safe_stable_stringify = __commonJS({
|
|
|
69124
69124
|
exports.configure = configure;
|
|
69125
69125
|
module.exports = stringify2;
|
|
69126
69126
|
var strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;
|
|
69127
|
-
function strEscape(
|
|
69128
|
-
if (
|
|
69129
|
-
return `"${
|
|
69127
|
+
function strEscape(str2) {
|
|
69128
|
+
if (str2.length < 5e3 && !strEscapeSequencesRegExp.test(str2)) {
|
|
69129
|
+
return `"${str2}"`;
|
|
69130
69130
|
}
|
|
69131
|
-
return JSON.stringify(
|
|
69131
|
+
return JSON.stringify(str2);
|
|
69132
69132
|
}
|
|
69133
69133
|
function sort(array3, comparator) {
|
|
69134
69134
|
if (array3.length > 200 || comparator) {
|
|
@@ -70660,8 +70660,8 @@ var require_serializer = __commonJS({
|
|
|
70660
70660
|
}
|
|
70661
70661
|
throw new Error(`The value "${date5}" cannot be converted to a time.`);
|
|
70662
70662
|
}
|
|
70663
|
-
asString(
|
|
70664
|
-
const len =
|
|
70663
|
+
asString(str2) {
|
|
70664
|
+
const len = str2.length;
|
|
70665
70665
|
if (len === 0) {
|
|
70666
70666
|
return '""';
|
|
70667
70667
|
} else if (len < 42) {
|
|
@@ -70669,25 +70669,25 @@ var require_serializer = __commonJS({
|
|
|
70669
70669
|
let last = -1;
|
|
70670
70670
|
let point = 255;
|
|
70671
70671
|
for (let i = 0; i < len; i++) {
|
|
70672
|
-
point =
|
|
70672
|
+
point = str2.charCodeAt(i);
|
|
70673
70673
|
if (point === 34 || // '"'
|
|
70674
70674
|
point === 92) {
|
|
70675
70675
|
last === -1 && (last = 0);
|
|
70676
|
-
result +=
|
|
70676
|
+
result += str2.slice(last, i) + "\\";
|
|
70677
70677
|
last = i;
|
|
70678
70678
|
} else if (point < 32 || point >= 55296 && point <= 57343) {
|
|
70679
|
-
return JSON.stringify(
|
|
70679
|
+
return JSON.stringify(str2);
|
|
70680
70680
|
}
|
|
70681
70681
|
}
|
|
70682
|
-
return last === -1 && '"' +
|
|
70683
|
-
} else if (len < 5e3 && STR_ESCAPE.test(
|
|
70684
|
-
return '"' +
|
|
70682
|
+
return last === -1 && '"' + str2 + '"' || '"' + result + str2.slice(last) + '"';
|
|
70683
|
+
} else if (len < 5e3 && STR_ESCAPE.test(str2) === false) {
|
|
70684
|
+
return '"' + str2 + '"';
|
|
70685
70685
|
} else {
|
|
70686
|
-
return JSON.stringify(
|
|
70686
|
+
return JSON.stringify(str2);
|
|
70687
70687
|
}
|
|
70688
70688
|
}
|
|
70689
|
-
asUnsafeString(
|
|
70690
|
-
return '"' +
|
|
70689
|
+
asUnsafeString(str2) {
|
|
70690
|
+
return '"' + str2 + '"';
|
|
70691
70691
|
}
|
|
70692
70692
|
getState() {
|
|
70693
70693
|
return this._options;
|
|
@@ -72770,11 +72770,11 @@ var require_proxy_addr = __commonJS({
|
|
|
72770
72770
|
}
|
|
72771
72771
|
function parseipNotation(note) {
|
|
72772
72772
|
const pos = note.lastIndexOf("/");
|
|
72773
|
-
const
|
|
72774
|
-
if (!isip(
|
|
72775
|
-
throw new TypeError("invalid IP address: " +
|
|
72773
|
+
const str2 = pos !== -1 ? note.substring(0, pos) : note;
|
|
72774
|
+
if (!isip(str2)) {
|
|
72775
|
+
throw new TypeError("invalid IP address: " + str2);
|
|
72776
72776
|
}
|
|
72777
|
-
let ip = parseip(
|
|
72777
|
+
let ip = parseip(str2);
|
|
72778
72778
|
if (pos === -1 && ip.kind() === "ipv6" && ip.isIPv4MappedAddress()) {
|
|
72779
72779
|
ip = ip.toIPv4Address();
|
|
72780
72780
|
}
|
|
@@ -74463,7 +74463,7 @@ var require_code = __commonJS({
|
|
|
74463
74463
|
}
|
|
74464
74464
|
exports._ = _3;
|
|
74465
74465
|
var plus = new _Code("+");
|
|
74466
|
-
function
|
|
74466
|
+
function str2(strs, ...args) {
|
|
74467
74467
|
const expr = [safeStringify(strs[0])];
|
|
74468
74468
|
let i = 0;
|
|
74469
74469
|
while (i < args.length) {
|
|
@@ -74474,7 +74474,7 @@ var require_code = __commonJS({
|
|
|
74474
74474
|
optimize(expr);
|
|
74475
74475
|
return new _Code(expr);
|
|
74476
74476
|
}
|
|
74477
|
-
exports.str =
|
|
74477
|
+
exports.str = str2;
|
|
74478
74478
|
function addCodeArg(code, arg) {
|
|
74479
74479
|
if (arg instanceof _Code)
|
|
74480
74480
|
code.push(...arg._items);
|
|
@@ -74517,7 +74517,7 @@ var require_code = __commonJS({
|
|
|
74517
74517
|
return;
|
|
74518
74518
|
}
|
|
74519
74519
|
function strConcat(c1, c2) {
|
|
74520
|
-
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 :
|
|
74520
|
+
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str2`${c1}${c2}`;
|
|
74521
74521
|
}
|
|
74522
74522
|
exports.strConcat = strConcat;
|
|
74523
74523
|
function interpolate(x2) {
|
|
@@ -75479,22 +75479,22 @@ var require_util5 = __commonJS({
|
|
|
75479
75479
|
return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
|
|
75480
75480
|
}
|
|
75481
75481
|
exports.schemaRefOrVal = schemaRefOrVal;
|
|
75482
|
-
function unescapeFragment(
|
|
75483
|
-
return unescapeJsonPointer(decodeURIComponent(
|
|
75482
|
+
function unescapeFragment(str2) {
|
|
75483
|
+
return unescapeJsonPointer(decodeURIComponent(str2));
|
|
75484
75484
|
}
|
|
75485
75485
|
exports.unescapeFragment = unescapeFragment;
|
|
75486
|
-
function escapeFragment(
|
|
75487
|
-
return encodeURIComponent(escapeJsonPointer(
|
|
75486
|
+
function escapeFragment(str2) {
|
|
75487
|
+
return encodeURIComponent(escapeJsonPointer(str2));
|
|
75488
75488
|
}
|
|
75489
75489
|
exports.escapeFragment = escapeFragment;
|
|
75490
|
-
function escapeJsonPointer(
|
|
75491
|
-
if (typeof
|
|
75492
|
-
return `${
|
|
75493
|
-
return
|
|
75490
|
+
function escapeJsonPointer(str2) {
|
|
75491
|
+
if (typeof str2 == "number")
|
|
75492
|
+
return `${str2}`;
|
|
75493
|
+
return str2.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
75494
75494
|
}
|
|
75495
75495
|
exports.escapeJsonPointer = escapeJsonPointer;
|
|
75496
|
-
function unescapeJsonPointer(
|
|
75497
|
-
return
|
|
75496
|
+
function unescapeJsonPointer(str2) {
|
|
75497
|
+
return str2.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
75498
75498
|
}
|
|
75499
75499
|
exports.unescapeJsonPointer = unescapeJsonPointer;
|
|
75500
75500
|
function eachItem(xs, f2) {
|
|
@@ -76519,8 +76519,8 @@ var require_json_schema_traverse = __commonJS({
|
|
|
76519
76519
|
post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
76520
76520
|
}
|
|
76521
76521
|
}
|
|
76522
|
-
function escapeJsonPtr(
|
|
76523
|
-
return
|
|
76522
|
+
function escapeJsonPtr(str2) {
|
|
76523
|
+
return str2.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
76524
76524
|
}
|
|
76525
76525
|
}
|
|
76526
76526
|
});
|
|
@@ -77581,10 +77581,10 @@ var require_utils12 = __commonJS({
|
|
|
77581
77581
|
return { host, isIPV6: false };
|
|
77582
77582
|
}
|
|
77583
77583
|
}
|
|
77584
|
-
function findToken(
|
|
77584
|
+
function findToken(str2, token) {
|
|
77585
77585
|
let ind = 0;
|
|
77586
|
-
for (let i = 0; i <
|
|
77587
|
-
if (
|
|
77586
|
+
for (let i = 0; i < str2.length; i++) {
|
|
77587
|
+
if (str2[i] === token) ind++;
|
|
77588
77588
|
}
|
|
77589
77589
|
return ind;
|
|
77590
77590
|
}
|
|
@@ -78237,7 +78237,7 @@ var require_core = __commonJS({
|
|
|
78237
78237
|
var util_1 = require_util5();
|
|
78238
78238
|
var $dataRefSchema = require_data();
|
|
78239
78239
|
var uri_1 = require_uri();
|
|
78240
|
-
var defaultRegExp = (
|
|
78240
|
+
var defaultRegExp = (str2, flags) => new RegExp(str2, flags);
|
|
78241
78241
|
defaultRegExp.code = "new RegExp";
|
|
78242
78242
|
var META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"];
|
|
78243
78243
|
var EXT_SCOPE_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -79032,16 +79032,16 @@ var require_ucs2length = __commonJS({
|
|
|
79032
79032
|
"../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
79033
79033
|
"use strict";
|
|
79034
79034
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79035
|
-
function ucs2length(
|
|
79036
|
-
const len =
|
|
79035
|
+
function ucs2length(str2) {
|
|
79036
|
+
const len = str2.length;
|
|
79037
79037
|
let length = 0;
|
|
79038
79038
|
let pos = 0;
|
|
79039
79039
|
let value;
|
|
79040
79040
|
while (pos < len) {
|
|
79041
79041
|
length++;
|
|
79042
|
-
value =
|
|
79042
|
+
value = str2.charCodeAt(pos++);
|
|
79043
79043
|
if (value >= 55296 && value <= 56319 && pos < len) {
|
|
79044
|
-
value =
|
|
79044
|
+
value = str2.charCodeAt(pos);
|
|
79045
79045
|
if ((value & 64512) === 56320)
|
|
79046
79046
|
pos++;
|
|
79047
79047
|
}
|
|
@@ -80948,13 +80948,13 @@ var require_timestamp2 = __commonJS({
|
|
|
80948
80948
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
80949
80949
|
var TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i;
|
|
80950
80950
|
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
80951
|
-
function validTimestamp(
|
|
80952
|
-
const dt =
|
|
80951
|
+
function validTimestamp(str2, allowDate) {
|
|
80952
|
+
const dt = str2.split(DT_SEPARATOR);
|
|
80953
80953
|
return dt.length === 2 && validDate(dt[0]) && validTime(dt[1]) || allowDate && dt.length === 1 && validDate(dt[0]);
|
|
80954
80954
|
}
|
|
80955
80955
|
exports.default = validTimestamp;
|
|
80956
|
-
function validDate(
|
|
80957
|
-
const matches2 = DATE.exec(
|
|
80956
|
+
function validDate(str2) {
|
|
80957
|
+
const matches2 = DATE.exec(str2);
|
|
80958
80958
|
if (!matches2)
|
|
80959
80959
|
return false;
|
|
80960
80960
|
const y = +matches2[1];
|
|
@@ -80963,8 +80963,8 @@ var require_timestamp2 = __commonJS({
|
|
|
80963
80963
|
return m2 >= 1 && m2 <= 12 && d >= 1 && (d <= DAYS[m2] || // leap year: https://tools.ietf.org/html/rfc3339#appendix-C
|
|
80964
80964
|
m2 === 2 && d === 29 && (y % 100 === 0 ? y % 400 === 0 : y % 4 === 0));
|
|
80965
80965
|
}
|
|
80966
|
-
function validTime(
|
|
80967
|
-
const matches2 = TIME.exec(
|
|
80966
|
+
function validTime(str2) {
|
|
80967
|
+
const matches2 = TIME.exec(str2);
|
|
80968
80968
|
if (!matches2)
|
|
80969
80969
|
return false;
|
|
80970
80970
|
const hr = +matches2[1];
|
|
@@ -82022,7 +82022,7 @@ var require_parseJson = __commonJS({
|
|
|
82022
82022
|
var CODE_A = "a".charCodeAt(0);
|
|
82023
82023
|
var CODE_0 = "0".charCodeAt(0);
|
|
82024
82024
|
function parseJsonString(s3, pos) {
|
|
82025
|
-
let
|
|
82025
|
+
let str2 = "";
|
|
82026
82026
|
let c;
|
|
82027
82027
|
parseJsonString.message = void 0;
|
|
82028
82028
|
while (true) {
|
|
@@ -82032,7 +82032,7 @@ var require_parseJson = __commonJS({
|
|
|
82032
82032
|
if (c === "\\") {
|
|
82033
82033
|
c = s3[pos];
|
|
82034
82034
|
if (c in escapedChars) {
|
|
82035
|
-
|
|
82035
|
+
str2 += escapedChars[c];
|
|
82036
82036
|
pos++;
|
|
82037
82037
|
} else if (c === "u") {
|
|
82038
82038
|
pos++;
|
|
@@ -82056,7 +82056,7 @@ var require_parseJson = __commonJS({
|
|
|
82056
82056
|
}
|
|
82057
82057
|
pos++;
|
|
82058
82058
|
}
|
|
82059
|
-
|
|
82059
|
+
str2 += String.fromCharCode(code);
|
|
82060
82060
|
} else {
|
|
82061
82061
|
errorMessage(`unexpected token ${c}`);
|
|
82062
82062
|
return void 0;
|
|
@@ -82066,7 +82066,7 @@ var require_parseJson = __commonJS({
|
|
|
82066
82066
|
return void 0;
|
|
82067
82067
|
} else {
|
|
82068
82068
|
if (c.charCodeAt(0) >= 32) {
|
|
82069
|
-
|
|
82069
|
+
str2 += c;
|
|
82070
82070
|
} else {
|
|
82071
82071
|
errorMessage(`unexpected token ${c}`);
|
|
82072
82072
|
return void 0;
|
|
@@ -82074,7 +82074,7 @@ var require_parseJson = __commonJS({
|
|
|
82074
82074
|
}
|
|
82075
82075
|
}
|
|
82076
82076
|
parseJsonString.position = pos;
|
|
82077
|
-
return
|
|
82077
|
+
return str2;
|
|
82078
82078
|
function errorMessage(msg) {
|
|
82079
82079
|
parseJsonString.position = pos;
|
|
82080
82080
|
parseJsonString.message = msg;
|
|
@@ -82623,8 +82623,8 @@ var require_formats = __commonJS({
|
|
|
82623
82623
|
}
|
|
82624
82624
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
82625
82625
|
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
82626
|
-
function date5(
|
|
82627
|
-
const matches2 = DATE.exec(
|
|
82626
|
+
function date5(str2) {
|
|
82627
|
+
const matches2 = DATE.exec(str2);
|
|
82628
82628
|
if (!matches2)
|
|
82629
82629
|
return false;
|
|
82630
82630
|
const year = +matches2[1];
|
|
@@ -82643,8 +82643,8 @@ var require_formats = __commonJS({
|
|
|
82643
82643
|
}
|
|
82644
82644
|
var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
|
|
82645
82645
|
function getTime(strictTimeZone) {
|
|
82646
|
-
return function time3(
|
|
82647
|
-
const matches2 = TIME.exec(
|
|
82646
|
+
return function time3(str2) {
|
|
82647
|
+
const matches2 = TIME.exec(str2);
|
|
82648
82648
|
if (!matches2)
|
|
82649
82649
|
return false;
|
|
82650
82650
|
const hr = +matches2[1];
|
|
@@ -82690,8 +82690,8 @@ var require_formats = __commonJS({
|
|
|
82690
82690
|
var DATE_TIME_SEPARATOR = /t|\s/i;
|
|
82691
82691
|
function getDateTime(strictTimeZone) {
|
|
82692
82692
|
const time3 = getTime(strictTimeZone);
|
|
82693
|
-
return function date_time(
|
|
82694
|
-
const dateTime =
|
|
82693
|
+
return function date_time(str2) {
|
|
82694
|
+
const dateTime = str2.split(DATE_TIME_SEPARATOR);
|
|
82695
82695
|
return dateTime.length === 2 && date5(dateTime[0]) && time3(dateTime[1]);
|
|
82696
82696
|
};
|
|
82697
82697
|
}
|
|
@@ -82716,13 +82716,13 @@ var require_formats = __commonJS({
|
|
|
82716
82716
|
}
|
|
82717
82717
|
var NOT_URI_FRAGMENT = /\/|:/;
|
|
82718
82718
|
var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
82719
|
-
function uri(
|
|
82720
|
-
return NOT_URI_FRAGMENT.test(
|
|
82719
|
+
function uri(str2) {
|
|
82720
|
+
return NOT_URI_FRAGMENT.test(str2) && URI.test(str2);
|
|
82721
82721
|
}
|
|
82722
82722
|
var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
82723
|
-
function byte(
|
|
82723
|
+
function byte(str2) {
|
|
82724
82724
|
BYTE.lastIndex = 0;
|
|
82725
|
-
return BYTE.test(
|
|
82725
|
+
return BYTE.test(str2);
|
|
82726
82726
|
}
|
|
82727
82727
|
var MIN_INT32 = -(2 ** 31);
|
|
82728
82728
|
var MAX_INT32 = 2 ** 31 - 1;
|
|
@@ -82736,11 +82736,11 @@ var require_formats = __commonJS({
|
|
|
82736
82736
|
return true;
|
|
82737
82737
|
}
|
|
82738
82738
|
var Z_ANCHOR = /[^\\]\\Z/;
|
|
82739
|
-
function regex(
|
|
82740
|
-
if (Z_ANCHOR.test(
|
|
82739
|
+
function regex(str2) {
|
|
82740
|
+
if (Z_ANCHOR.test(str2))
|
|
82741
82741
|
return false;
|
|
82742
82742
|
try {
|
|
82743
|
-
new RegExp(
|
|
82743
|
+
new RegExp(str2);
|
|
82744
82744
|
return true;
|
|
82745
82745
|
} catch (e) {
|
|
82746
82746
|
return false;
|
|
@@ -87525,12 +87525,12 @@ var require_range = __commonJS({
|
|
|
87525
87525
|
debug("replaceGTE0", comp, options);
|
|
87526
87526
|
return comp.trim().replace(re2[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
87527
87527
|
};
|
|
87528
|
-
var hyphenReplace = (incPr) => ($0, from, fM, fm,
|
|
87528
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp36, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
87529
87529
|
if (isX(fM)) {
|
|
87530
87530
|
from = "";
|
|
87531
87531
|
} else if (isX(fm)) {
|
|
87532
87532
|
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
87533
|
-
} else if (isX(
|
|
87533
|
+
} else if (isX(fp36)) {
|
|
87534
87534
|
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
87535
87535
|
} else if (fpr) {
|
|
87536
87536
|
from = `>=${from}`;
|
|
@@ -89123,24 +89123,24 @@ var require_querystring = __commonJS({
|
|
|
89123
89123
|
0
|
|
89124
89124
|
// 112 - 127
|
|
89125
89125
|
]);
|
|
89126
|
-
function encodeString(
|
|
89127
|
-
const len =
|
|
89126
|
+
function encodeString(str2) {
|
|
89127
|
+
const len = str2.length;
|
|
89128
89128
|
if (len === 0) return "";
|
|
89129
89129
|
let out = "";
|
|
89130
89130
|
let lastPos = 0;
|
|
89131
89131
|
let i = 0;
|
|
89132
89132
|
outer: for (; i < len; i++) {
|
|
89133
|
-
let c =
|
|
89133
|
+
let c = str2.charCodeAt(i);
|
|
89134
89134
|
while (c < 128) {
|
|
89135
89135
|
if (noEscape[c] !== 1) {
|
|
89136
|
-
if (lastPos < i) out +=
|
|
89136
|
+
if (lastPos < i) out += str2.slice(lastPos, i);
|
|
89137
89137
|
lastPos = i + 1;
|
|
89138
89138
|
out += hexTable[c];
|
|
89139
89139
|
}
|
|
89140
89140
|
if (++i === len) break outer;
|
|
89141
|
-
c =
|
|
89141
|
+
c = str2.charCodeAt(i);
|
|
89142
89142
|
}
|
|
89143
|
-
if (lastPos < i) out +=
|
|
89143
|
+
if (lastPos < i) out += str2.slice(lastPos, i);
|
|
89144
89144
|
if (c < 2048) {
|
|
89145
89145
|
lastPos = i + 1;
|
|
89146
89146
|
out += hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
@@ -89155,13 +89155,13 @@ var require_querystring = __commonJS({
|
|
|
89155
89155
|
if (i >= len) {
|
|
89156
89156
|
throw new Error("URI malformed");
|
|
89157
89157
|
}
|
|
89158
|
-
const c2 =
|
|
89158
|
+
const c2 = str2.charCodeAt(i) & 1023;
|
|
89159
89159
|
lastPos = i + 1;
|
|
89160
89160
|
c = 65536 + ((c & 1023) << 10 | c2);
|
|
89161
89161
|
out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
89162
89162
|
}
|
|
89163
|
-
if (lastPos === 0) return
|
|
89164
|
-
if (lastPos < len) return out +
|
|
89163
|
+
if (lastPos === 0) return str2;
|
|
89164
|
+
if (lastPos < len) return out + str2.slice(lastPos);
|
|
89165
89165
|
return out;
|
|
89166
89166
|
}
|
|
89167
89167
|
module.exports = { encodeString };
|
|
@@ -89377,9 +89377,9 @@ var require_util6 = __commonJS({
|
|
|
89377
89377
|
var types_1 = require_types9();
|
|
89378
89378
|
var sets = __importStar(require_sets());
|
|
89379
89379
|
var CTRL = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";
|
|
89380
|
-
exports.strToChars = (
|
|
89380
|
+
exports.strToChars = (str2) => {
|
|
89381
89381
|
const charsRegex = /(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;
|
|
89382
|
-
return
|
|
89382
|
+
return str2.replace(charsRegex, (s3, b2, lbs, a16, b16, dctrl, eslsh) => {
|
|
89383
89383
|
if (lbs) {
|
|
89384
89384
|
return s3;
|
|
89385
89385
|
}
|
|
@@ -89395,11 +89395,11 @@ var require_util6 = __commonJS({
|
|
|
89395
89395
|
return /[[\]{}^$.|?*+()]/.test(c) ? `\\${c}` : c;
|
|
89396
89396
|
});
|
|
89397
89397
|
};
|
|
89398
|
-
exports.tokenizeClass = (
|
|
89398
|
+
exports.tokenizeClass = (str2, regexpStr) => {
|
|
89399
89399
|
var _a26, _b18, _c, _d, _e, _f, _g;
|
|
89400
89400
|
let tokens = [], rs, c;
|
|
89401
89401
|
const regexp = /\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(((?:\\)])|(((?:\\)?([^\]])))))|(\])|(?:\\)?([^])/g;
|
|
89402
|
-
while ((rs = regexp.exec(
|
|
89402
|
+
while ((rs = regexp.exec(str2)) !== null) {
|
|
89403
89403
|
const p2 = (_g = (_f = (_e = (_d = (_c = (_b18 = (_a26 = rs[1] && sets.words()) !== null && _a26 !== void 0 ? _a26 : rs[2] && sets.ints()) !== null && _b18 !== void 0 ? _b18 : rs[3] && sets.whitespace()) !== null && _c !== void 0 ? _c : rs[4] && sets.notWords()) !== null && _d !== void 0 ? _d : rs[5] && sets.notInts()) !== null && _e !== void 0 ? _e : rs[6] && sets.notWhitespace()) !== null && _f !== void 0 ? _f : rs[7] && {
|
|
89404
89404
|
type: types_1.types.RANGE,
|
|
89405
89405
|
from: (rs[8] || rs[9]).charCodeAt(0),
|
|
@@ -89462,15 +89462,15 @@ var require_tokenizer = __commonJS({
|
|
|
89462
89462
|
const repeatErr = (col) => {
|
|
89463
89463
|
throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Nothing to repeat at column ${col - 1}`);
|
|
89464
89464
|
};
|
|
89465
|
-
let
|
|
89466
|
-
while (i <
|
|
89467
|
-
switch (c =
|
|
89465
|
+
let str2 = util2.strToChars(regexpStr);
|
|
89466
|
+
while (i < str2.length) {
|
|
89467
|
+
switch (c = str2[i++]) {
|
|
89468
89468
|
// Handle escaped characters, inclues a few sets.
|
|
89469
89469
|
case "\\":
|
|
89470
|
-
if (i ===
|
|
89470
|
+
if (i === str2.length) {
|
|
89471
89471
|
throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: \\ at end of pattern`);
|
|
89472
89472
|
}
|
|
89473
|
-
switch (c =
|
|
89473
|
+
switch (c = str2[i++]) {
|
|
89474
89474
|
case "b":
|
|
89475
89475
|
last.push({ type: types_1.types.POSITION, value: "b" });
|
|
89476
89476
|
break;
|
|
@@ -89498,8 +89498,8 @@ var require_tokenizer = __commonJS({
|
|
|
89498
89498
|
default:
|
|
89499
89499
|
if (digit.test(c)) {
|
|
89500
89500
|
let digits = c;
|
|
89501
|
-
while (i <
|
|
89502
|
-
digits +=
|
|
89501
|
+
while (i < str2.length && digit.test(str2[i])) {
|
|
89502
|
+
digits += str2[i++];
|
|
89503
89503
|
}
|
|
89504
89504
|
let value = parseInt(digits, 10);
|
|
89505
89505
|
const reference = { type: types_1.types.REFERENCE, value };
|
|
@@ -89520,13 +89520,13 @@ var require_tokenizer = __commonJS({
|
|
|
89520
89520
|
// Handle custom sets.
|
|
89521
89521
|
case "[": {
|
|
89522
89522
|
let not;
|
|
89523
|
-
if (
|
|
89523
|
+
if (str2[i] === "^") {
|
|
89524
89524
|
not = true;
|
|
89525
89525
|
i++;
|
|
89526
89526
|
} else {
|
|
89527
89527
|
not = false;
|
|
89528
89528
|
}
|
|
89529
|
-
let classTokens = util2.tokenizeClass(
|
|
89529
|
+
let classTokens = util2.tokenizeClass(str2.slice(i), regexpStr);
|
|
89530
89530
|
i += classTokens[1];
|
|
89531
89531
|
last.push({
|
|
89532
89532
|
type: types_1.types.SET,
|
|
@@ -89546,8 +89546,8 @@ var require_tokenizer = __commonJS({
|
|
|
89546
89546
|
stack: [],
|
|
89547
89547
|
remember: true
|
|
89548
89548
|
};
|
|
89549
|
-
if (
|
|
89550
|
-
c =
|
|
89549
|
+
if (str2[i] === "?") {
|
|
89550
|
+
c = str2[i + 1];
|
|
89551
89551
|
i += 2;
|
|
89552
89552
|
if (c === "=") {
|
|
89553
89553
|
group2.followedBy = true;
|
|
@@ -89557,21 +89557,21 @@ var require_tokenizer = __commonJS({
|
|
|
89557
89557
|
group2.remember = false;
|
|
89558
89558
|
} else if (c === "<") {
|
|
89559
89559
|
let name25 = "";
|
|
89560
|
-
if (captureGroupFirstChar.test(
|
|
89561
|
-
name25 +=
|
|
89560
|
+
if (captureGroupFirstChar.test(str2[i])) {
|
|
89561
|
+
name25 += str2[i];
|
|
89562
89562
|
i++;
|
|
89563
89563
|
} else {
|
|
89564
|
-
throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Invalid capture group name, character '${
|
|
89564
|
+
throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Invalid capture group name, character '${str2[i]}' after '<' at column ${i + 1}`);
|
|
89565
89565
|
}
|
|
89566
|
-
while (i <
|
|
89567
|
-
name25 +=
|
|
89566
|
+
while (i < str2.length && captureGroupChars.test(str2[i])) {
|
|
89567
|
+
name25 += str2[i];
|
|
89568
89568
|
i++;
|
|
89569
89569
|
}
|
|
89570
89570
|
if (!name25) {
|
|
89571
|
-
throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Invalid capture group name, character '${
|
|
89571
|
+
throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Invalid capture group name, character '${str2[i]}' after '<' at column ${i + 1}`);
|
|
89572
89572
|
}
|
|
89573
|
-
if (
|
|
89574
|
-
throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Unclosed capture group name, expected '>', found '${
|
|
89573
|
+
if (str2[i] !== ">") {
|
|
89574
|
+
throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Unclosed capture group name, expected '>', found '${str2[i]}' at column ${i + 1}`);
|
|
89575
89575
|
}
|
|
89576
89576
|
group2.name = name25;
|
|
89577
89577
|
i++;
|
|
@@ -89614,7 +89614,7 @@ var require_tokenizer = __commonJS({
|
|
|
89614
89614
|
// This design is chosen because there could be more than
|
|
89615
89615
|
// one repetition symbols in a regex i.e. `a?+{2,3}`.
|
|
89616
89616
|
case "{": {
|
|
89617
|
-
let rs = /^(\d+)(,(\d+)?)?\}/.exec(
|
|
89617
|
+
let rs = /^(\d+)(,(\d+)?)?\}/.exec(str2.slice(i)), min, max;
|
|
89618
89618
|
if (rs !== null) {
|
|
89619
89619
|
if (last.length === 0) {
|
|
89620
89620
|
repeatErr(i);
|
|
@@ -90111,8 +90111,8 @@ var require_pretty_print = __commonJS({
|
|
|
90111
90111
|
serializedRoute += serializeMetaData(route.metaData);
|
|
90112
90112
|
return serializedRoute;
|
|
90113
90113
|
}
|
|
90114
|
-
function mergeSimilarRoutes(
|
|
90115
|
-
return
|
|
90114
|
+
function mergeSimilarRoutes(routes35) {
|
|
90115
|
+
return routes35.reduce((mergedRoutes, route) => {
|
|
90116
90116
|
for (const nodeRoute of mergedRoutes) {
|
|
90117
90117
|
if (deepEqual(route.opts.constraints, nodeRoute.opts.constraints) && deepEqual(route.metaData, nodeRoute.metaData)) {
|
|
90118
90118
|
nodeRoute.method += ", " + route.method;
|
|
@@ -90124,18 +90124,18 @@ var require_pretty_print = __commonJS({
|
|
|
90124
90124
|
}, []);
|
|
90125
90125
|
}
|
|
90126
90126
|
function serializeNode(node, prefix, options) {
|
|
90127
|
-
let
|
|
90127
|
+
let routes35 = node.routes;
|
|
90128
90128
|
if (options.method === void 0) {
|
|
90129
|
-
|
|
90129
|
+
routes35 = routes35.map(normalizeRoute);
|
|
90130
90130
|
}
|
|
90131
|
-
|
|
90131
|
+
routes35 = routes35.map((route) => {
|
|
90132
90132
|
route.metaData = getRouteMetaData(route, options);
|
|
90133
90133
|
return route;
|
|
90134
90134
|
});
|
|
90135
90135
|
if (options.method === void 0) {
|
|
90136
|
-
|
|
90136
|
+
routes35 = mergeSimilarRoutes(routes35);
|
|
90137
90137
|
}
|
|
90138
|
-
return
|
|
90138
|
+
return routes35.map(serializeRoute).join(`
|
|
90139
90139
|
${prefix}`);
|
|
90140
90140
|
}
|
|
90141
90141
|
function buildObjectTree(node, tree, prefix, options) {
|
|
@@ -91402,9 +91402,9 @@ var require_find_my_way = __commonJS({
|
|
|
91402
91402
|
pathIndex = paramEndIndex;
|
|
91403
91403
|
}
|
|
91404
91404
|
};
|
|
91405
|
-
Router.prototype._rebuild = function(
|
|
91405
|
+
Router.prototype._rebuild = function(routes35) {
|
|
91406
91406
|
this.reset();
|
|
91407
|
-
for (const route of
|
|
91407
|
+
for (const route of routes35) {
|
|
91408
91408
|
const { method, path: path23, opts, handler, store } = route;
|
|
91409
91409
|
this._on(method, path23, opts, handler, store);
|
|
91410
91410
|
}
|
|
@@ -93481,25 +93481,25 @@ var require_dist5 = __commonJS({
|
|
|
93481
93481
|
C2.prototype = /* @__PURE__ */ Object.create(null);
|
|
93482
93482
|
return C2;
|
|
93483
93483
|
})();
|
|
93484
|
-
function parseCookie(
|
|
93484
|
+
function parseCookie(str2, options) {
|
|
93485
93485
|
const obj = new NullObject();
|
|
93486
|
-
const len =
|
|
93486
|
+
const len = str2.length;
|
|
93487
93487
|
if (len < 2)
|
|
93488
93488
|
return obj;
|
|
93489
93489
|
const dec = options?.decode || decode3;
|
|
93490
93490
|
let index = 0;
|
|
93491
93491
|
do {
|
|
93492
|
-
const eqIdx = eqIndex(
|
|
93492
|
+
const eqIdx = eqIndex(str2, index, len);
|
|
93493
93493
|
if (eqIdx === -1)
|
|
93494
93494
|
break;
|
|
93495
|
-
const endIdx = endIndex(
|
|
93495
|
+
const endIdx = endIndex(str2, index, len);
|
|
93496
93496
|
if (eqIdx > endIdx) {
|
|
93497
|
-
index =
|
|
93497
|
+
index = str2.lastIndexOf(";", eqIdx - 1) + 1;
|
|
93498
93498
|
continue;
|
|
93499
93499
|
}
|
|
93500
|
-
const key2 = valueSlice(
|
|
93500
|
+
const key2 = valueSlice(str2, index, eqIdx);
|
|
93501
93501
|
if (obj[key2] === void 0) {
|
|
93502
|
-
obj[key2] = dec(valueSlice(
|
|
93502
|
+
obj[key2] = dec(valueSlice(str2, eqIdx + 1, endIdx));
|
|
93503
93503
|
}
|
|
93504
93504
|
index = endIdx + 1;
|
|
93505
93505
|
} while (index < len);
|
|
@@ -93534,51 +93534,51 @@ var require_dist5 = __commonJS({
|
|
|
93534
93534
|
if (!cookieValueRegExp.test(value)) {
|
|
93535
93535
|
throw new TypeError(`argument val is invalid: ${cookie.value}`);
|
|
93536
93536
|
}
|
|
93537
|
-
let
|
|
93537
|
+
let str2 = cookie.name + "=" + value;
|
|
93538
93538
|
if (cookie.maxAge !== void 0) {
|
|
93539
93539
|
if (!Number.isInteger(cookie.maxAge)) {
|
|
93540
93540
|
throw new TypeError(`option maxAge is invalid: ${cookie.maxAge}`);
|
|
93541
93541
|
}
|
|
93542
|
-
|
|
93542
|
+
str2 += "; Max-Age=" + cookie.maxAge;
|
|
93543
93543
|
}
|
|
93544
93544
|
if (cookie.domain) {
|
|
93545
93545
|
if (!domainValueRegExp.test(cookie.domain)) {
|
|
93546
93546
|
throw new TypeError(`option domain is invalid: ${cookie.domain}`);
|
|
93547
93547
|
}
|
|
93548
|
-
|
|
93548
|
+
str2 += "; Domain=" + cookie.domain;
|
|
93549
93549
|
}
|
|
93550
93550
|
if (cookie.path) {
|
|
93551
93551
|
if (!pathValueRegExp.test(cookie.path)) {
|
|
93552
93552
|
throw new TypeError(`option path is invalid: ${cookie.path}`);
|
|
93553
93553
|
}
|
|
93554
|
-
|
|
93554
|
+
str2 += "; Path=" + cookie.path;
|
|
93555
93555
|
}
|
|
93556
93556
|
if (cookie.expires) {
|
|
93557
93557
|
if (!isDate2(cookie.expires) || !Number.isFinite(cookie.expires.valueOf())) {
|
|
93558
93558
|
throw new TypeError(`option expires is invalid: ${cookie.expires}`);
|
|
93559
93559
|
}
|
|
93560
|
-
|
|
93560
|
+
str2 += "; Expires=" + cookie.expires.toUTCString();
|
|
93561
93561
|
}
|
|
93562
93562
|
if (cookie.httpOnly) {
|
|
93563
|
-
|
|
93563
|
+
str2 += "; HttpOnly";
|
|
93564
93564
|
}
|
|
93565
93565
|
if (cookie.secure) {
|
|
93566
|
-
|
|
93566
|
+
str2 += "; Secure";
|
|
93567
93567
|
}
|
|
93568
93568
|
if (cookie.partitioned) {
|
|
93569
|
-
|
|
93569
|
+
str2 += "; Partitioned";
|
|
93570
93570
|
}
|
|
93571
93571
|
if (cookie.priority) {
|
|
93572
93572
|
const priority = typeof cookie.priority === "string" ? cookie.priority.toLowerCase() : void 0;
|
|
93573
93573
|
switch (priority) {
|
|
93574
93574
|
case "low":
|
|
93575
|
-
|
|
93575
|
+
str2 += "; Priority=Low";
|
|
93576
93576
|
break;
|
|
93577
93577
|
case "medium":
|
|
93578
|
-
|
|
93578
|
+
str2 += "; Priority=Medium";
|
|
93579
93579
|
break;
|
|
93580
93580
|
case "high":
|
|
93581
|
-
|
|
93581
|
+
str2 += "; Priority=High";
|
|
93582
93582
|
break;
|
|
93583
93583
|
default:
|
|
93584
93584
|
throw new TypeError(`option priority is invalid: ${cookie.priority}`);
|
|
@@ -93589,35 +93589,35 @@ var require_dist5 = __commonJS({
|
|
|
93589
93589
|
switch (sameSite) {
|
|
93590
93590
|
case true:
|
|
93591
93591
|
case "strict":
|
|
93592
|
-
|
|
93592
|
+
str2 += "; SameSite=Strict";
|
|
93593
93593
|
break;
|
|
93594
93594
|
case "lax":
|
|
93595
|
-
|
|
93595
|
+
str2 += "; SameSite=Lax";
|
|
93596
93596
|
break;
|
|
93597
93597
|
case "none":
|
|
93598
|
-
|
|
93598
|
+
str2 += "; SameSite=None";
|
|
93599
93599
|
break;
|
|
93600
93600
|
default:
|
|
93601
93601
|
throw new TypeError(`option sameSite is invalid: ${cookie.sameSite}`);
|
|
93602
93602
|
}
|
|
93603
93603
|
}
|
|
93604
|
-
return
|
|
93604
|
+
return str2;
|
|
93605
93605
|
}
|
|
93606
|
-
function parseSetCookie(
|
|
93606
|
+
function parseSetCookie(str2, options) {
|
|
93607
93607
|
const dec = options?.decode || decode3;
|
|
93608
|
-
const len =
|
|
93609
|
-
const endIdx = endIndex(
|
|
93610
|
-
const eqIdx = eqIndex(
|
|
93611
|
-
const setCookie = eqIdx === -1 ? { name: "", value: dec(valueSlice(
|
|
93612
|
-
name: valueSlice(
|
|
93613
|
-
value: dec(valueSlice(
|
|
93608
|
+
const len = str2.length;
|
|
93609
|
+
const endIdx = endIndex(str2, 0, len);
|
|
93610
|
+
const eqIdx = eqIndex(str2, 0, endIdx);
|
|
93611
|
+
const setCookie = eqIdx === -1 ? { name: "", value: dec(valueSlice(str2, 0, endIdx)) } : {
|
|
93612
|
+
name: valueSlice(str2, 0, eqIdx),
|
|
93613
|
+
value: dec(valueSlice(str2, eqIdx + 1, endIdx))
|
|
93614
93614
|
};
|
|
93615
93615
|
let index = endIdx + 1;
|
|
93616
93616
|
while (index < len) {
|
|
93617
|
-
const endIdx2 = endIndex(
|
|
93618
|
-
const eqIdx2 = eqIndex(
|
|
93619
|
-
const attr = eqIdx2 === -1 ? valueSlice(
|
|
93620
|
-
const val = eqIdx2 === -1 ? void 0 : valueSlice(
|
|
93617
|
+
const endIdx2 = endIndex(str2, index, len);
|
|
93618
|
+
const eqIdx2 = eqIndex(str2, index, endIdx2);
|
|
93619
|
+
const attr = eqIdx2 === -1 ? valueSlice(str2, index, endIdx2) : valueSlice(str2, index, eqIdx2);
|
|
93620
|
+
const val = eqIdx2 === -1 ? void 0 : valueSlice(str2, eqIdx2 + 1, endIdx2);
|
|
93621
93621
|
switch (attr.toLowerCase()) {
|
|
93622
93622
|
case "httponly":
|
|
93623
93623
|
setCookie.httpOnly = true;
|
|
@@ -93666,37 +93666,37 @@ var require_dist5 = __commonJS({
|
|
|
93666
93666
|
}
|
|
93667
93667
|
return setCookie;
|
|
93668
93668
|
}
|
|
93669
|
-
function endIndex(
|
|
93670
|
-
const index =
|
|
93669
|
+
function endIndex(str2, min, len) {
|
|
93670
|
+
const index = str2.indexOf(";", min);
|
|
93671
93671
|
return index === -1 ? len : index;
|
|
93672
93672
|
}
|
|
93673
|
-
function eqIndex(
|
|
93674
|
-
const index =
|
|
93673
|
+
function eqIndex(str2, min, max) {
|
|
93674
|
+
const index = str2.indexOf("=", min);
|
|
93675
93675
|
return index < max ? index : -1;
|
|
93676
93676
|
}
|
|
93677
|
-
function valueSlice(
|
|
93677
|
+
function valueSlice(str2, min, max) {
|
|
93678
93678
|
let start = min;
|
|
93679
93679
|
let end = max;
|
|
93680
93680
|
do {
|
|
93681
|
-
const code =
|
|
93681
|
+
const code = str2.charCodeAt(start);
|
|
93682
93682
|
if (code !== 32 && code !== 9)
|
|
93683
93683
|
break;
|
|
93684
93684
|
} while (++start < end);
|
|
93685
93685
|
while (end > start) {
|
|
93686
|
-
const code =
|
|
93686
|
+
const code = str2.charCodeAt(end - 1);
|
|
93687
93687
|
if (code !== 32 && code !== 9)
|
|
93688
93688
|
break;
|
|
93689
93689
|
end--;
|
|
93690
93690
|
}
|
|
93691
|
-
return
|
|
93691
|
+
return str2.slice(start, end);
|
|
93692
93692
|
}
|
|
93693
|
-
function decode3(
|
|
93694
|
-
if (
|
|
93695
|
-
return
|
|
93693
|
+
function decode3(str2) {
|
|
93694
|
+
if (str2.indexOf("%") === -1)
|
|
93695
|
+
return str2;
|
|
93696
93696
|
try {
|
|
93697
|
-
return decodeURIComponent(
|
|
93697
|
+
return decodeURIComponent(str2);
|
|
93698
93698
|
} catch (e) {
|
|
93699
|
-
return
|
|
93699
|
+
return str2;
|
|
93700
93700
|
}
|
|
93701
93701
|
}
|
|
93702
93702
|
function isDate2(val) {
|
|
@@ -93816,7 +93816,7 @@ var require_form_data = __commonJS({
|
|
|
93816
93816
|
const boundary = `----formdata-${randomUUID23()}`;
|
|
93817
93817
|
const prefix = `--${boundary}\r
|
|
93818
93818
|
Content-Disposition: form-data`;
|
|
93819
|
-
const escape2 = (
|
|
93819
|
+
const escape2 = (str2) => str2.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
|
|
93820
93820
|
const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, "\r\n");
|
|
93821
93821
|
const linebreak = new Uint8Array([13, 10]);
|
|
93822
93822
|
async function* asyncIterator() {
|
|
@@ -94062,8 +94062,8 @@ var require_set_cookie = __commonJS({
|
|
|
94062
94062
|
function createNullObj() {
|
|
94063
94063
|
return /* @__PURE__ */ Object.create(null);
|
|
94064
94064
|
}
|
|
94065
|
-
function isNonEmptyString(
|
|
94066
|
-
return typeof
|
|
94065
|
+
function isNonEmptyString(str2) {
|
|
94066
|
+
return typeof str2 === "string" && !!str2.trim();
|
|
94067
94067
|
}
|
|
94068
94068
|
function parseString(setCookieValue, options) {
|
|
94069
94069
|
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
@@ -94154,13 +94154,13 @@ var require_set_cookie = __commonJS({
|
|
|
94154
94154
|
input = [input];
|
|
94155
94155
|
}
|
|
94156
94156
|
if (!options.map) {
|
|
94157
|
-
return input.filter(isNonEmptyString).map(function(
|
|
94158
|
-
return parseString(
|
|
94157
|
+
return input.filter(isNonEmptyString).map(function(str2) {
|
|
94158
|
+
return parseString(str2, options);
|
|
94159
94159
|
}).filter(Boolean);
|
|
94160
94160
|
} else {
|
|
94161
94161
|
var cookies = createNullObj();
|
|
94162
|
-
return input.filter(isNonEmptyString).reduce(function(cookies2,
|
|
94163
|
-
var cookie = parseString(
|
|
94162
|
+
return input.filter(isNonEmptyString).reduce(function(cookies2, str2) {
|
|
94163
|
+
var cookie = parseString(str2, options);
|
|
94164
94164
|
if (cookie && !isForbiddenKey(cookie.name)) {
|
|
94165
94165
|
cookies2[cookie.name] = cookie;
|
|
94166
94166
|
}
|
|
@@ -96218,38 +96218,38 @@ var require_commonjs = __commonJS({
|
|
|
96218
96218
|
"use strict";
|
|
96219
96219
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
96220
96220
|
exports.range = exports.balanced = void 0;
|
|
96221
|
-
var balanced = (a, b2,
|
|
96222
|
-
const ma = a instanceof RegExp ? maybeMatch(a,
|
|
96223
|
-
const mb = b2 instanceof RegExp ? maybeMatch(b2,
|
|
96224
|
-
const r = ma !== null && mb != null && (0, exports.range)(ma, mb,
|
|
96221
|
+
var balanced = (a, b2, str2) => {
|
|
96222
|
+
const ma = a instanceof RegExp ? maybeMatch(a, str2) : a;
|
|
96223
|
+
const mb = b2 instanceof RegExp ? maybeMatch(b2, str2) : b2;
|
|
96224
|
+
const r = ma !== null && mb != null && (0, exports.range)(ma, mb, str2);
|
|
96225
96225
|
return r && {
|
|
96226
96226
|
start: r[0],
|
|
96227
96227
|
end: r[1],
|
|
96228
|
-
pre:
|
|
96229
|
-
body:
|
|
96230
|
-
post:
|
|
96228
|
+
pre: str2.slice(0, r[0]),
|
|
96229
|
+
body: str2.slice(r[0] + ma.length, r[1]),
|
|
96230
|
+
post: str2.slice(r[1] + mb.length)
|
|
96231
96231
|
};
|
|
96232
96232
|
};
|
|
96233
96233
|
exports.balanced = balanced;
|
|
96234
|
-
var maybeMatch = (reg,
|
|
96235
|
-
const m2 =
|
|
96234
|
+
var maybeMatch = (reg, str2) => {
|
|
96235
|
+
const m2 = str2.match(reg);
|
|
96236
96236
|
return m2 ? m2[0] : null;
|
|
96237
96237
|
};
|
|
96238
|
-
var range = (a, b2,
|
|
96238
|
+
var range = (a, b2, str2) => {
|
|
96239
96239
|
let begs, beg, left, right = void 0, result;
|
|
96240
|
-
let ai =
|
|
96241
|
-
let bi =
|
|
96240
|
+
let ai = str2.indexOf(a);
|
|
96241
|
+
let bi = str2.indexOf(b2, ai + 1);
|
|
96242
96242
|
let i = ai;
|
|
96243
96243
|
if (ai >= 0 && bi > 0) {
|
|
96244
96244
|
if (a === b2) {
|
|
96245
96245
|
return [ai, bi];
|
|
96246
96246
|
}
|
|
96247
96247
|
begs = [];
|
|
96248
|
-
left =
|
|
96248
|
+
left = str2.length;
|
|
96249
96249
|
while (i >= 0 && !result) {
|
|
96250
96250
|
if (i === ai) {
|
|
96251
96251
|
begs.push(i);
|
|
96252
|
-
ai =
|
|
96252
|
+
ai = str2.indexOf(a, i + 1);
|
|
96253
96253
|
} else if (begs.length === 1) {
|
|
96254
96254
|
const r = begs.pop();
|
|
96255
96255
|
if (r !== void 0)
|
|
@@ -96260,7 +96260,7 @@ var require_commonjs = __commonJS({
|
|
|
96260
96260
|
left = beg;
|
|
96261
96261
|
right = bi;
|
|
96262
96262
|
}
|
|
96263
|
-
bi =
|
|
96263
|
+
bi = str2.indexOf(b2, i + 1);
|
|
96264
96264
|
}
|
|
96265
96265
|
i = ai < bi && ai >= 0 ? ai : bi;
|
|
96266
96266
|
}
|
|
@@ -96296,23 +96296,23 @@ var require_commonjs2 = __commonJS({
|
|
|
96296
96296
|
var closePattern = /\\}/g;
|
|
96297
96297
|
var commaPattern = /\\,/g;
|
|
96298
96298
|
var periodPattern = /\\./g;
|
|
96299
|
-
function numeric(
|
|
96300
|
-
return !isNaN(
|
|
96299
|
+
function numeric(str2) {
|
|
96300
|
+
return !isNaN(str2) ? parseInt(str2, 10) : str2.charCodeAt(0);
|
|
96301
96301
|
}
|
|
96302
|
-
function escapeBraces(
|
|
96303
|
-
return
|
|
96302
|
+
function escapeBraces(str2) {
|
|
96303
|
+
return str2.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
|
|
96304
96304
|
}
|
|
96305
|
-
function unescapeBraces(
|
|
96306
|
-
return
|
|
96305
|
+
function unescapeBraces(str2) {
|
|
96306
|
+
return str2.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
|
|
96307
96307
|
}
|
|
96308
|
-
function parseCommaParts(
|
|
96309
|
-
if (!
|
|
96308
|
+
function parseCommaParts(str2) {
|
|
96309
|
+
if (!str2) {
|
|
96310
96310
|
return [""];
|
|
96311
96311
|
}
|
|
96312
96312
|
const parts = [];
|
|
96313
|
-
const m2 = (0, balanced_match_1.balanced)("{", "}",
|
|
96313
|
+
const m2 = (0, balanced_match_1.balanced)("{", "}", str2);
|
|
96314
96314
|
if (!m2) {
|
|
96315
|
-
return
|
|
96315
|
+
return str2.split(",");
|
|
96316
96316
|
}
|
|
96317
96317
|
const { pre, body, post } = m2;
|
|
96318
96318
|
const p2 = pre.split(",");
|
|
@@ -96326,17 +96326,17 @@ var require_commonjs2 = __commonJS({
|
|
|
96326
96326
|
parts.push.apply(parts, p2);
|
|
96327
96327
|
return parts;
|
|
96328
96328
|
}
|
|
96329
|
-
function expand(
|
|
96330
|
-
if (!
|
|
96329
|
+
function expand(str2) {
|
|
96330
|
+
if (!str2) {
|
|
96331
96331
|
return [];
|
|
96332
96332
|
}
|
|
96333
|
-
if (
|
|
96334
|
-
|
|
96333
|
+
if (str2.slice(0, 2) === "{}") {
|
|
96334
|
+
str2 = "\\{\\}" + str2.slice(2);
|
|
96335
96335
|
}
|
|
96336
|
-
return expand_(escapeBraces(
|
|
96336
|
+
return expand_(escapeBraces(str2), true).map(unescapeBraces);
|
|
96337
96337
|
}
|
|
96338
|
-
function embrace(
|
|
96339
|
-
return "{" +
|
|
96338
|
+
function embrace(str2) {
|
|
96339
|
+
return "{" + str2 + "}";
|
|
96340
96340
|
}
|
|
96341
96341
|
function isPadded(el) {
|
|
96342
96342
|
return /^-?0\d/.test(el);
|
|
@@ -96347,11 +96347,11 @@ var require_commonjs2 = __commonJS({
|
|
|
96347
96347
|
function gte(i, y) {
|
|
96348
96348
|
return i >= y;
|
|
96349
96349
|
}
|
|
96350
|
-
function expand_(
|
|
96350
|
+
function expand_(str2, isTop) {
|
|
96351
96351
|
const expansions = [];
|
|
96352
|
-
const m2 = (0, balanced_match_1.balanced)("{", "}",
|
|
96352
|
+
const m2 = (0, balanced_match_1.balanced)("{", "}", str2);
|
|
96353
96353
|
if (!m2)
|
|
96354
|
-
return [
|
|
96354
|
+
return [str2];
|
|
96355
96355
|
const pre = m2.pre;
|
|
96356
96356
|
const post = m2.post.length ? expand_(m2.post, false) : [""];
|
|
96357
96357
|
if (/\$$/.test(m2.pre)) {
|
|
@@ -96366,10 +96366,10 @@ var require_commonjs2 = __commonJS({
|
|
|
96366
96366
|
const isOptions = m2.body.indexOf(",") >= 0;
|
|
96367
96367
|
if (!isSequence && !isOptions) {
|
|
96368
96368
|
if (m2.post.match(/,(?!,).*\}/)) {
|
|
96369
|
-
|
|
96370
|
-
return expand_(
|
|
96369
|
+
str2 = m2.pre + "{" + m2.body + escClose + m2.post;
|
|
96370
|
+
return expand_(str2);
|
|
96371
96371
|
}
|
|
96372
|
-
return [
|
|
96372
|
+
return [str2];
|
|
96373
96373
|
}
|
|
96374
96374
|
let n;
|
|
96375
96375
|
if (isSequence) {
|
|
@@ -96747,7 +96747,7 @@ var require_ast = __commonJS({
|
|
|
96747
96747
|
}
|
|
96748
96748
|
return c;
|
|
96749
96749
|
}
|
|
96750
|
-
static #parseAST(
|
|
96750
|
+
static #parseAST(str2, ast, pos, opt) {
|
|
96751
96751
|
let escaping = false;
|
|
96752
96752
|
let inBrace = false;
|
|
96753
96753
|
let braceStart = -1;
|
|
@@ -96755,8 +96755,8 @@ var require_ast = __commonJS({
|
|
|
96755
96755
|
if (ast.type === null) {
|
|
96756
96756
|
let i2 = pos;
|
|
96757
96757
|
let acc2 = "";
|
|
96758
|
-
while (i2 <
|
|
96759
|
-
const c =
|
|
96758
|
+
while (i2 < str2.length) {
|
|
96759
|
+
const c = str2.charAt(i2++);
|
|
96760
96760
|
if (escaping || c === "\\") {
|
|
96761
96761
|
escaping = !escaping;
|
|
96762
96762
|
acc2 += c;
|
|
@@ -96779,11 +96779,11 @@ var require_ast = __commonJS({
|
|
|
96779
96779
|
acc2 += c;
|
|
96780
96780
|
continue;
|
|
96781
96781
|
}
|
|
96782
|
-
if (!opt.noext && isExtglobType(c) &&
|
|
96782
|
+
if (!opt.noext && isExtglobType(c) && str2.charAt(i2) === "(") {
|
|
96783
96783
|
ast.push(acc2);
|
|
96784
96784
|
acc2 = "";
|
|
96785
96785
|
const ext = new _AST(c, ast);
|
|
96786
|
-
i2 = _AST.#parseAST(
|
|
96786
|
+
i2 = _AST.#parseAST(str2, ext, i2, opt);
|
|
96787
96787
|
ast.push(ext);
|
|
96788
96788
|
continue;
|
|
96789
96789
|
}
|
|
@@ -96796,8 +96796,8 @@ var require_ast = __commonJS({
|
|
|
96796
96796
|
let part = new _AST(null, ast);
|
|
96797
96797
|
const parts = [];
|
|
96798
96798
|
let acc = "";
|
|
96799
|
-
while (i <
|
|
96800
|
-
const c =
|
|
96799
|
+
while (i < str2.length) {
|
|
96800
|
+
const c = str2.charAt(i++);
|
|
96801
96801
|
if (escaping || c === "\\") {
|
|
96802
96802
|
escaping = !escaping;
|
|
96803
96803
|
acc += c;
|
|
@@ -96820,12 +96820,12 @@ var require_ast = __commonJS({
|
|
|
96820
96820
|
acc += c;
|
|
96821
96821
|
continue;
|
|
96822
96822
|
}
|
|
96823
|
-
if (isExtglobType(c) &&
|
|
96823
|
+
if (isExtglobType(c) && str2.charAt(i) === "(") {
|
|
96824
96824
|
part.push(acc);
|
|
96825
96825
|
acc = "";
|
|
96826
96826
|
const ext = new _AST(c, part);
|
|
96827
96827
|
part.push(ext);
|
|
96828
|
-
i = _AST.#parseAST(
|
|
96828
|
+
i = _AST.#parseAST(str2, ext, i, opt);
|
|
96829
96829
|
continue;
|
|
96830
96830
|
}
|
|
96831
96831
|
if (c === "|") {
|
|
@@ -96848,7 +96848,7 @@ var require_ast = __commonJS({
|
|
|
96848
96848
|
}
|
|
96849
96849
|
ast.type = null;
|
|
96850
96850
|
ast.#hasMagic = void 0;
|
|
96851
|
-
ast.#parts = [
|
|
96851
|
+
ast.#parts = [str2.substring(pos - 1)];
|
|
96852
96852
|
return i;
|
|
96853
96853
|
}
|
|
96854
96854
|
static fromGlob(pattern, options = {}) {
|
|
@@ -100612,8 +100612,8 @@ var require_commonjs6 = __commonJS({
|
|
|
100612
100612
|
return this.#fullpath = this.name;
|
|
100613
100613
|
}
|
|
100614
100614
|
const pv = p2.fullpath();
|
|
100615
|
-
const
|
|
100616
|
-
return this.#fullpath =
|
|
100615
|
+
const fp36 = pv + (!p2.parent ? "" : this.sep) + name25;
|
|
100616
|
+
return this.#fullpath = fp36;
|
|
100617
100617
|
}
|
|
100618
100618
|
/**
|
|
100619
100619
|
* On platforms other than windows, this is identical to fullpath.
|
|
@@ -103301,17 +103301,17 @@ var require_escape_html = __commonJS({
|
|
|
103301
103301
|
var matchHtmlRegExp = /["'&<>]/;
|
|
103302
103302
|
module.exports = escapeHtml;
|
|
103303
103303
|
function escapeHtml(string4) {
|
|
103304
|
-
var
|
|
103305
|
-
var match2 = matchHtmlRegExp.exec(
|
|
103304
|
+
var str2 = "" + string4;
|
|
103305
|
+
var match2 = matchHtmlRegExp.exec(str2);
|
|
103306
103306
|
if (!match2) {
|
|
103307
|
-
return
|
|
103307
|
+
return str2;
|
|
103308
103308
|
}
|
|
103309
103309
|
var escape2;
|
|
103310
103310
|
var html = "";
|
|
103311
103311
|
var index = 0;
|
|
103312
103312
|
var lastIndex = 0;
|
|
103313
|
-
for (index = match2.index; index <
|
|
103314
|
-
switch (
|
|
103313
|
+
for (index = match2.index; index < str2.length; index++) {
|
|
103314
|
+
switch (str2.charCodeAt(index)) {
|
|
103315
103315
|
case 34:
|
|
103316
103316
|
escape2 = """;
|
|
103317
103317
|
break;
|
|
@@ -103331,12 +103331,12 @@ var require_escape_html = __commonJS({
|
|
|
103331
103331
|
continue;
|
|
103332
103332
|
}
|
|
103333
103333
|
if (lastIndex !== index) {
|
|
103334
|
-
html +=
|
|
103334
|
+
html += str2.substring(lastIndex, index);
|
|
103335
103335
|
}
|
|
103336
103336
|
lastIndex = index + 1;
|
|
103337
103337
|
html += escape2;
|
|
103338
103338
|
}
|
|
103339
|
-
return lastIndex !== index ? html +
|
|
103339
|
+
return lastIndex !== index ? html + str2.substring(lastIndex, index) : html;
|
|
103340
103340
|
}
|
|
103341
103341
|
}
|
|
103342
103342
|
});
|
|
@@ -103362,9 +103362,9 @@ var require_dist6 = __commonJS({
|
|
|
103362
103362
|
return num;
|
|
103363
103363
|
}
|
|
103364
103364
|
}
|
|
103365
|
-
function fmt(val, pfx,
|
|
103365
|
+
function fmt(val, pfx, str2, long) {
|
|
103366
103366
|
var num = (val | 0) === val ? val : ~~(val + 0.5);
|
|
103367
|
-
return pfx + num + (long ? " " +
|
|
103367
|
+
return pfx + num + (long ? " " + str2 + (num != 1 ? "s" : "") : str2[0]);
|
|
103368
103368
|
}
|
|
103369
103369
|
function format2(num, long) {
|
|
103370
103370
|
var pfx = num < 0 ? "-" : "", abs = num < 0 ? -num : num;
|
|
@@ -103384,13 +103384,13 @@ var require_dist6 = __commonJS({
|
|
|
103384
103384
|
var require_collapseLeadingSlashes = __commonJS({
|
|
103385
103385
|
"../../node_modules/.pnpm/@fastify+send@4.1.0/node_modules/@fastify/send/lib/collapseLeadingSlashes.js"(exports, module) {
|
|
103386
103386
|
"use strict";
|
|
103387
|
-
function collapseLeadingSlashes(
|
|
103388
|
-
if (
|
|
103389
|
-
return
|
|
103387
|
+
function collapseLeadingSlashes(str2) {
|
|
103388
|
+
if (str2[0] !== "/" || str2[1] !== "/") {
|
|
103389
|
+
return str2;
|
|
103390
103390
|
}
|
|
103391
|
-
for (let i = 2, il =
|
|
103392
|
-
if (
|
|
103393
|
-
return
|
|
103391
|
+
for (let i = 2, il = str2.length; i < il; ++i) {
|
|
103392
|
+
if (str2[i] !== "/") {
|
|
103393
|
+
return str2.slice(i - 1);
|
|
103394
103394
|
}
|
|
103395
103395
|
}
|
|
103396
103396
|
}
|
|
@@ -103465,8 +103465,8 @@ var require_normalizeList = __commonJS({
|
|
|
103465
103465
|
var require_parseBytesRange = __commonJS({
|
|
103466
103466
|
"../../node_modules/.pnpm/@fastify+send@4.1.0/node_modules/@fastify/send/lib/parseBytesRange.js"(exports, module) {
|
|
103467
103467
|
"use strict";
|
|
103468
|
-
function parseBytesRange(size,
|
|
103469
|
-
const values =
|
|
103468
|
+
function parseBytesRange(size, str2) {
|
|
103469
|
+
const values = str2.slice(str2.indexOf("=") + 1);
|
|
103470
103470
|
const ranges = [];
|
|
103471
103471
|
const len = values.length;
|
|
103472
103472
|
let i = 0;
|
|
@@ -103545,12 +103545,12 @@ var require_parseTokenList = __commonJS({
|
|
|
103545
103545
|
"../../node_modules/.pnpm/@fastify+send@4.1.0/node_modules/@fastify/send/lib/parseTokenList.js"(exports, module) {
|
|
103546
103546
|
"use strict";
|
|
103547
103547
|
var slice = String.prototype.slice;
|
|
103548
|
-
function parseTokenList(
|
|
103548
|
+
function parseTokenList(str2, cb) {
|
|
103549
103549
|
let end = 0;
|
|
103550
103550
|
let start = 0;
|
|
103551
103551
|
let result;
|
|
103552
|
-
for (let i = 0, len =
|
|
103553
|
-
switch (
|
|
103552
|
+
for (let i = 0, len = str2.length; i < len; i++) {
|
|
103553
|
+
switch (str2.charCodeAt(i)) {
|
|
103554
103554
|
case 32:
|
|
103555
103555
|
if (start === end) {
|
|
103556
103556
|
start = end = i + 1;
|
|
@@ -103558,7 +103558,7 @@ var require_parseTokenList = __commonJS({
|
|
|
103558
103558
|
break;
|
|
103559
103559
|
case 44:
|
|
103560
103560
|
if (start !== end) {
|
|
103561
|
-
result = cb(slice.call(
|
|
103561
|
+
result = cb(slice.call(str2, start, end));
|
|
103562
103562
|
if (result !== void 0) {
|
|
103563
103563
|
return result;
|
|
103564
103564
|
}
|
|
@@ -103571,7 +103571,7 @@ var require_parseTokenList = __commonJS({
|
|
|
103571
103571
|
}
|
|
103572
103572
|
}
|
|
103573
103573
|
if (start !== end) {
|
|
103574
|
-
return cb(slice.call(
|
|
103574
|
+
return cb(slice.call(str2, start, end));
|
|
103575
103575
|
}
|
|
103576
103576
|
}
|
|
103577
103577
|
module.exports.parseTokenList = parseTokenList;
|
|
@@ -103584,8 +103584,8 @@ var require_depd = __commonJS({
|
|
|
103584
103584
|
var relative = __require("path").relative;
|
|
103585
103585
|
module.exports = depd;
|
|
103586
103586
|
var basePath33 = process.cwd();
|
|
103587
|
-
function containsNamespace(
|
|
103588
|
-
var vals =
|
|
103587
|
+
function containsNamespace(str2, namespace) {
|
|
103588
|
+
var vals = str2.split(/[ ,]+/);
|
|
103589
103589
|
var ns = String(namespace).toLowerCase();
|
|
103590
103590
|
for (var i = 0; i < vals.length; i++) {
|
|
103591
103591
|
var val = vals[i];
|
|
@@ -103612,21 +103612,21 @@ var require_depd = __commonJS({
|
|
|
103612
103612
|
return descriptor;
|
|
103613
103613
|
}
|
|
103614
103614
|
function createArgumentsString(arity) {
|
|
103615
|
-
var
|
|
103615
|
+
var str2 = "";
|
|
103616
103616
|
for (var i = 0; i < arity; i++) {
|
|
103617
|
-
|
|
103617
|
+
str2 += ", arg" + i;
|
|
103618
103618
|
}
|
|
103619
|
-
return
|
|
103619
|
+
return str2.substr(2);
|
|
103620
103620
|
}
|
|
103621
103621
|
function createStackString(stack) {
|
|
103622
|
-
var
|
|
103622
|
+
var str2 = this.name + ": " + this.namespace;
|
|
103623
103623
|
if (this.message) {
|
|
103624
|
-
|
|
103624
|
+
str2 += " deprecated " + this.message;
|
|
103625
103625
|
}
|
|
103626
103626
|
for (var i = 0; i < stack.length; i++) {
|
|
103627
|
-
|
|
103627
|
+
str2 += "\n at " + stack[i].toString();
|
|
103628
103628
|
}
|
|
103629
|
-
return
|
|
103629
|
+
return str2;
|
|
103630
103630
|
}
|
|
103631
103631
|
function depd(namespace) {
|
|
103632
103632
|
if (!namespace) {
|
|
@@ -103655,15 +103655,15 @@ var require_depd = __commonJS({
|
|
|
103655
103655
|
if (process.noDeprecation) {
|
|
103656
103656
|
return true;
|
|
103657
103657
|
}
|
|
103658
|
-
var
|
|
103659
|
-
return containsNamespace(
|
|
103658
|
+
var str2 = process.env.NO_DEPRECATION || "";
|
|
103659
|
+
return containsNamespace(str2, namespace);
|
|
103660
103660
|
}
|
|
103661
103661
|
function istraced(namespace) {
|
|
103662
103662
|
if (process.traceDeprecation) {
|
|
103663
103663
|
return true;
|
|
103664
103664
|
}
|
|
103665
|
-
var
|
|
103666
|
-
return containsNamespace(
|
|
103665
|
+
var str2 = process.env.TRACE_DEPRECATION || "";
|
|
103666
|
+
return containsNamespace(str2, namespace);
|
|
103667
103667
|
}
|
|
103668
103668
|
function log(message, site) {
|
|
103669
103669
|
var haslisteners = eehaslisteners(process, "deprecation");
|
|
@@ -104097,8 +104097,8 @@ var require_toidentifier = __commonJS({
|
|
|
104097
104097
|
"../../node_modules/.pnpm/toidentifier@1.0.1/node_modules/toidentifier/index.js"(exports, module) {
|
|
104098
104098
|
"use strict";
|
|
104099
104099
|
module.exports = toIdentifier;
|
|
104100
|
-
function toIdentifier(
|
|
104101
|
-
return
|
|
104100
|
+
function toIdentifier(str2) {
|
|
104101
|
+
return str2.split(" ").map(function(token) {
|
|
104102
104102
|
return token.slice(0, 1).toUpperCase() + token.slice(1);
|
|
104103
104103
|
}).join("").replace(/[^ _0-9a-z]/gi, "");
|
|
104104
104104
|
}
|
|
@@ -104836,7 +104836,7 @@ var require_accept_negotiator = __commonJS({
|
|
|
104836
104836
|
var QUALITY = 2;
|
|
104837
104837
|
var END = 3;
|
|
104838
104838
|
function parse4(header, processMatch) {
|
|
104839
|
-
let
|
|
104839
|
+
let str2 = "";
|
|
104840
104840
|
let quality;
|
|
104841
104841
|
let state = BEGIN;
|
|
104842
104842
|
for (let i = 0, il = header.length; i < il; ++i) {
|
|
@@ -104851,19 +104851,19 @@ var require_accept_negotiator = __commonJS({
|
|
|
104851
104851
|
continue;
|
|
104852
104852
|
} else if (char === ",") {
|
|
104853
104853
|
if (state === TOKEN) {
|
|
104854
|
-
if (processMatch(
|
|
104854
|
+
if (processMatch(str2, 1)) {
|
|
104855
104855
|
state = END;
|
|
104856
104856
|
break;
|
|
104857
104857
|
}
|
|
104858
104858
|
state = BEGIN;
|
|
104859
|
-
|
|
104859
|
+
str2 = "";
|
|
104860
104860
|
} else if (state === QUALITY) {
|
|
104861
|
-
if (processMatch(
|
|
104861
|
+
if (processMatch(str2, parseFloat(quality) || 0)) {
|
|
104862
104862
|
state = END;
|
|
104863
104863
|
break;
|
|
104864
104864
|
}
|
|
104865
104865
|
state = BEGIN;
|
|
104866
|
-
|
|
104866
|
+
str2 = "";
|
|
104867
104867
|
quality = "";
|
|
104868
104868
|
}
|
|
104869
104869
|
continue;
|
|
@@ -104876,29 +104876,29 @@ var require_accept_negotiator = __commonJS({
|
|
|
104876
104876
|
}
|
|
104877
104877
|
} else if (state === BEGIN) {
|
|
104878
104878
|
state = TOKEN;
|
|
104879
|
-
|
|
104879
|
+
str2 += char;
|
|
104880
104880
|
continue;
|
|
104881
104881
|
}
|
|
104882
104882
|
if (state === TOKEN) {
|
|
104883
104883
|
const prevChar = header[i - 1];
|
|
104884
104884
|
if (prevChar === " " || prevChar === " ") {
|
|
104885
|
-
|
|
104885
|
+
str2 = "";
|
|
104886
104886
|
}
|
|
104887
|
-
|
|
104887
|
+
str2 += char;
|
|
104888
104888
|
continue;
|
|
104889
104889
|
}
|
|
104890
|
-
if (processMatch(
|
|
104890
|
+
if (processMatch(str2, parseFloat(quality) || 0)) {
|
|
104891
104891
|
state = END;
|
|
104892
104892
|
break;
|
|
104893
104893
|
}
|
|
104894
104894
|
state = BEGIN;
|
|
104895
|
-
|
|
104895
|
+
str2 = char;
|
|
104896
104896
|
quality = "";
|
|
104897
104897
|
}
|
|
104898
104898
|
if (state === TOKEN) {
|
|
104899
|
-
processMatch(
|
|
104899
|
+
processMatch(str2, 1);
|
|
104900
104900
|
} else if (state === QUALITY) {
|
|
104901
|
-
processMatch(
|
|
104901
|
+
processMatch(str2, parseFloat(quality) || 0);
|
|
104902
104902
|
}
|
|
104903
104903
|
}
|
|
104904
104904
|
module.exports = negotiate;
|
|
@@ -105038,8 +105038,8 @@ var require_content_disposition = __commonJS({
|
|
|
105038
105038
|
}
|
|
105039
105039
|
return string4;
|
|
105040
105040
|
}
|
|
105041
|
-
function decodefield(
|
|
105042
|
-
var match2 = EXT_VALUE_REGEXP.exec(
|
|
105041
|
+
function decodefield(str2) {
|
|
105042
|
+
var match2 = EXT_VALUE_REGEXP.exec(str2);
|
|
105043
105043
|
if (!match2) {
|
|
105044
105044
|
throw new TypeError("invalid extended field value");
|
|
105045
105045
|
}
|
|
@@ -105107,19 +105107,19 @@ var require_content_disposition = __commonJS({
|
|
|
105107
105107
|
}
|
|
105108
105108
|
return new ContentDisposition(type, params);
|
|
105109
105109
|
}
|
|
105110
|
-
function pdecode(
|
|
105110
|
+
function pdecode(str2, hex3) {
|
|
105111
105111
|
return String.fromCharCode(parseInt(hex3, 16));
|
|
105112
105112
|
}
|
|
105113
105113
|
function pencode(char) {
|
|
105114
105114
|
return "%" + String(char).charCodeAt(0).toString(16).toUpperCase();
|
|
105115
105115
|
}
|
|
105116
105116
|
function qstring(val) {
|
|
105117
|
-
var
|
|
105118
|
-
return '"' +
|
|
105117
|
+
var str2 = String(val);
|
|
105118
|
+
return '"' + str2.replace(QUOTE_REGEXP, "\\$1") + '"';
|
|
105119
105119
|
}
|
|
105120
105120
|
function ustring(val) {
|
|
105121
|
-
var
|
|
105122
|
-
var encoded = encodeURIComponent(
|
|
105121
|
+
var str2 = String(val);
|
|
105122
|
+
var encoded = encodeURIComponent(str2).replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode);
|
|
105123
105123
|
return "UTF-8''" + encoded;
|
|
105124
105124
|
}
|
|
105125
105125
|
function ContentDisposition(type, parameters) {
|
|
@@ -105329,7 +105329,7 @@ var require_static = __commonJS({
|
|
|
105329
105329
|
var { fileURLToPath: fileURLToPath4 } = __require("node:url");
|
|
105330
105330
|
var { statSync: statSync2 } = __require("node:fs");
|
|
105331
105331
|
var { glob } = require_commonjs7();
|
|
105332
|
-
var
|
|
105332
|
+
var fp36 = require_plugin2();
|
|
105333
105333
|
var send = require_send2();
|
|
105334
105334
|
var encodingNegotiator = require_accept_negotiator();
|
|
105335
105335
|
var contentDisposition = require_content_disposition();
|
|
@@ -105433,7 +105433,7 @@ var require_static = __commonJS({
|
|
|
105433
105433
|
} else {
|
|
105434
105434
|
const indexes = new Set(opts.index === void 0 ? ["index.html"] : [].concat(opts.index));
|
|
105435
105435
|
const indexDirs = /* @__PURE__ */ new Map();
|
|
105436
|
-
const
|
|
105436
|
+
const routes35 = /* @__PURE__ */ new Set();
|
|
105437
105437
|
const roots = Array.isArray(sendOptions.root) ? sendOptions.root : [sendOptions.root];
|
|
105438
105438
|
for (let rootPath of roots) {
|
|
105439
105439
|
rootPath = rootPath.split(path23.win32.sep).join(path23.posix.sep);
|
|
@@ -105449,10 +105449,10 @@ var require_static = __commonJS({
|
|
|
105449
105449
|
for (let file2 of files) {
|
|
105450
105450
|
file2 = file2.split(path23.win32.sep).join(path23.posix.sep);
|
|
105451
105451
|
const route = prefix + file2;
|
|
105452
|
-
if (
|
|
105452
|
+
if (routes35.has(route)) {
|
|
105453
105453
|
continue;
|
|
105454
105454
|
}
|
|
105455
|
-
|
|
105455
|
+
routes35.add(route);
|
|
105456
105456
|
setUpHeadAndGet(routeOpts, route, `/${file2}`, rootPath);
|
|
105457
105457
|
const key2 = path23.posix.basename(route);
|
|
105458
105458
|
if (indexes.has(key2) && !indexDirs.has(key2)) {
|
|
@@ -105747,7 +105747,7 @@ var require_static = __commonJS({
|
|
|
105747
105747
|
throw err;
|
|
105748
105748
|
}
|
|
105749
105749
|
}
|
|
105750
|
-
module.exports =
|
|
105750
|
+
module.exports = fp36(fastifyStatic2, {
|
|
105751
105751
|
fastify: "5.x",
|
|
105752
105752
|
name: "@fastify/static"
|
|
105753
105753
|
});
|
|
@@ -107959,7 +107959,7 @@ var require_websocket = __commonJS({
|
|
|
107959
107959
|
var http = __require("http");
|
|
107960
107960
|
var net2 = __require("net");
|
|
107961
107961
|
var tls = __require("tls");
|
|
107962
|
-
var { randomBytes:
|
|
107962
|
+
var { randomBytes: randomBytes4, createHash: createHash9 } = __require("crypto");
|
|
107963
107963
|
var { Duplex, Readable: Readable4 } = __require("stream");
|
|
107964
107964
|
var { URL: URL2 } = __require("url");
|
|
107965
107965
|
var PerMessageDeflate = require_permessage_deflate();
|
|
@@ -108489,7 +108489,7 @@ var require_websocket = __commonJS({
|
|
|
108489
108489
|
}
|
|
108490
108490
|
}
|
|
108491
108491
|
const defaultPort = isSecure ? 443 : 80;
|
|
108492
|
-
const key2 =
|
|
108492
|
+
const key2 = randomBytes4(16).toString("base64");
|
|
108493
108493
|
const request = isSecure ? https.request : http.request;
|
|
108494
108494
|
const protocolSet = /* @__PURE__ */ new Set();
|
|
108495
108495
|
let perMessageDeflate;
|
|
@@ -109568,19 +109568,19 @@ var require_buffer_list = __commonJS({
|
|
|
109568
109568
|
var ret = p2.data;
|
|
109569
109569
|
n -= ret.length;
|
|
109570
109570
|
while (p2 = p2.next) {
|
|
109571
|
-
var
|
|
109572
|
-
var nb = n >
|
|
109573
|
-
if (nb ===
|
|
109574
|
-
else ret +=
|
|
109571
|
+
var str2 = p2.data;
|
|
109572
|
+
var nb = n > str2.length ? str2.length : n;
|
|
109573
|
+
if (nb === str2.length) ret += str2;
|
|
109574
|
+
else ret += str2.slice(0, n);
|
|
109575
109575
|
n -= nb;
|
|
109576
109576
|
if (n === 0) {
|
|
109577
|
-
if (nb ===
|
|
109577
|
+
if (nb === str2.length) {
|
|
109578
109578
|
++c;
|
|
109579
109579
|
if (p2.next) this.head = p2.next;
|
|
109580
109580
|
else this.head = this.tail = null;
|
|
109581
109581
|
} else {
|
|
109582
109582
|
this.head = p2;
|
|
109583
|
-
p2.data =
|
|
109583
|
+
p2.data = str2.slice(nb);
|
|
109584
109584
|
}
|
|
109585
109585
|
break;
|
|
109586
109586
|
}
|
|
@@ -109765,23 +109765,23 @@ var require_errors6 = __commonJS({
|
|
|
109765
109765
|
return `of ${thing} ${String(expected)}`;
|
|
109766
109766
|
}
|
|
109767
109767
|
}
|
|
109768
|
-
function startsWith(
|
|
109769
|
-
return
|
|
109768
|
+
function startsWith(str2, search, pos) {
|
|
109769
|
+
return str2.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
|
|
109770
109770
|
}
|
|
109771
|
-
function endsWith(
|
|
109772
|
-
if (this_len === void 0 || this_len >
|
|
109773
|
-
this_len =
|
|
109771
|
+
function endsWith(str2, search, this_len) {
|
|
109772
|
+
if (this_len === void 0 || this_len > str2.length) {
|
|
109773
|
+
this_len = str2.length;
|
|
109774
109774
|
}
|
|
109775
|
-
return
|
|
109775
|
+
return str2.substring(this_len - search.length, this_len) === search;
|
|
109776
109776
|
}
|
|
109777
|
-
function includes(
|
|
109777
|
+
function includes(str2, search, start) {
|
|
109778
109778
|
if (typeof start !== "number") {
|
|
109779
109779
|
start = 0;
|
|
109780
109780
|
}
|
|
109781
|
-
if (start + search.length >
|
|
109781
|
+
if (start + search.length > str2.length) {
|
|
109782
109782
|
return false;
|
|
109783
109783
|
} else {
|
|
109784
|
-
return
|
|
109784
|
+
return str2.indexOf(search, start) !== -1;
|
|
109785
109785
|
}
|
|
109786
109786
|
}
|
|
109787
109787
|
createErrorType("ERR_INVALID_OPT_VALUE", function(name25, value) {
|
|
@@ -112389,8 +112389,8 @@ var require_websocket2 = __commonJS({
|
|
|
112389
112389
|
"use strict";
|
|
112390
112390
|
var { ServerResponse } = __require("node:http");
|
|
112391
112391
|
var { PassThrough } = __require("node:stream");
|
|
112392
|
-
var { randomBytes:
|
|
112393
|
-
var
|
|
112392
|
+
var { randomBytes: randomBytes4 } = __require("node:crypto");
|
|
112393
|
+
var fp36 = require_plugin2();
|
|
112394
112394
|
var WebSocket2 = require_ws();
|
|
112395
112395
|
var Duplexify = require_duplexify();
|
|
112396
112396
|
var kWs = /* @__PURE__ */ Symbol("ws-socket");
|
|
@@ -112460,7 +112460,7 @@ var require_websocket2 = __commonJS({
|
|
|
112460
112460
|
connection: "upgrade",
|
|
112461
112461
|
upgrade: "websocket",
|
|
112462
112462
|
"sec-websocket-version": 13,
|
|
112463
|
-
"sec-websocket-key":
|
|
112463
|
+
"sec-websocket-key": randomBytes4(16).toString("base64")
|
|
112464
112464
|
},
|
|
112465
112465
|
httpVersion: "1.1",
|
|
112466
112466
|
url: path23,
|
|
@@ -112576,7 +112576,7 @@ var require_websocket2 = __commonJS({
|
|
|
112576
112576
|
}
|
|
112577
112577
|
next();
|
|
112578
112578
|
}
|
|
112579
|
-
module.exports =
|
|
112579
|
+
module.exports = fp36(fastifyWebsocket2, {
|
|
112580
112580
|
fastify: "5.x",
|
|
112581
112581
|
name: "@fastify/websocket"
|
|
112582
112582
|
});
|
|
@@ -113698,7 +113698,7 @@ var require_parseParams = __commonJS({
|
|
|
113698
113698
|
var STATE_VALUE = 1;
|
|
113699
113699
|
var STATE_CHARSET = 2;
|
|
113700
113700
|
var STATE_LANG = 3;
|
|
113701
|
-
function parseParams(
|
|
113701
|
+
function parseParams(str2) {
|
|
113702
113702
|
const res = [];
|
|
113703
113703
|
let state = STATE_KEY;
|
|
113704
113704
|
let charset = "";
|
|
@@ -113706,9 +113706,9 @@ var require_parseParams = __commonJS({
|
|
|
113706
113706
|
let escaping = false;
|
|
113707
113707
|
let p2 = 0;
|
|
113708
113708
|
let tmp = "";
|
|
113709
|
-
const len =
|
|
113709
|
+
const len = str2.length;
|
|
113710
113710
|
for (var i = 0; i < len; ++i) {
|
|
113711
|
-
const char =
|
|
113711
|
+
const char = str2[i];
|
|
113712
113712
|
if (char === "\\" && inquote) {
|
|
113713
113713
|
if (escaping) {
|
|
113714
113714
|
escaping = false;
|
|
@@ -113721,7 +113721,7 @@ var require_parseParams = __commonJS({
|
|
|
113721
113721
|
if (inquote) {
|
|
113722
113722
|
inquote = false;
|
|
113723
113723
|
state = STATE_KEY;
|
|
113724
|
-
while (i + 1 < len &&
|
|
113724
|
+
while (i + 1 < len && str2[i + 1] !== ";") {
|
|
113725
113725
|
++i;
|
|
113726
113726
|
}
|
|
113727
113727
|
} else {
|
|
@@ -114240,29 +114240,29 @@ var require_Decoder = __commonJS({
|
|
|
114240
114240
|
function Decoder() {
|
|
114241
114241
|
this.buffer = void 0;
|
|
114242
114242
|
}
|
|
114243
|
-
Decoder.prototype.write = function(
|
|
114244
|
-
|
|
114243
|
+
Decoder.prototype.write = function(str2) {
|
|
114244
|
+
str2 = str2.replace(RE_PLUS, " ");
|
|
114245
114245
|
let res = "";
|
|
114246
114246
|
let i = 0;
|
|
114247
114247
|
let p2 = 0;
|
|
114248
|
-
const len =
|
|
114248
|
+
const len = str2.length;
|
|
114249
114249
|
for (; i < len; ++i) {
|
|
114250
114250
|
if (this.buffer !== void 0) {
|
|
114251
|
-
if (!HEX[
|
|
114251
|
+
if (!HEX[str2.charCodeAt(i)]) {
|
|
114252
114252
|
res += "%" + this.buffer;
|
|
114253
114253
|
this.buffer = void 0;
|
|
114254
114254
|
--i;
|
|
114255
114255
|
} else {
|
|
114256
|
-
this.buffer +=
|
|
114256
|
+
this.buffer += str2[i];
|
|
114257
114257
|
++p2;
|
|
114258
114258
|
if (this.buffer.length === 2) {
|
|
114259
114259
|
res += String.fromCharCode(parseInt(this.buffer, 16));
|
|
114260
114260
|
this.buffer = void 0;
|
|
114261
114261
|
}
|
|
114262
114262
|
}
|
|
114263
|
-
} else if (
|
|
114263
|
+
} else if (str2[i] === "%") {
|
|
114264
114264
|
if (i > p2) {
|
|
114265
|
-
res +=
|
|
114265
|
+
res += str2.substring(p2, i);
|
|
114266
114266
|
p2 = i;
|
|
114267
114267
|
}
|
|
114268
114268
|
this.buffer = "";
|
|
@@ -114270,7 +114270,7 @@ var require_Decoder = __commonJS({
|
|
|
114270
114270
|
}
|
|
114271
114271
|
}
|
|
114272
114272
|
if (p2 < len && this.buffer === void 0) {
|
|
114273
|
-
res +=
|
|
114273
|
+
res += str2.substring(p2);
|
|
114274
114274
|
}
|
|
114275
114275
|
return res;
|
|
114276
114276
|
};
|
|
@@ -114843,9 +114843,9 @@ var require_generateId = __commonJS({
|
|
|
114843
114843
|
}
|
|
114844
114844
|
module.exports.generateId = (function generateIdFn() {
|
|
114845
114845
|
let num = 0;
|
|
114846
|
-
let
|
|
114846
|
+
let str2 = seed();
|
|
114847
114847
|
return function generateId3() {
|
|
114848
|
-
return num === 255 ? (
|
|
114848
|
+
return num === 255 ? (str2 = seed()) + HEX[num = 0] : str2 + HEX[++num];
|
|
114849
114849
|
};
|
|
114850
114850
|
})();
|
|
114851
114851
|
}
|
|
@@ -115020,7 +115020,7 @@ var require_multipart2 = __commonJS({
|
|
|
115020
115020
|
"use strict";
|
|
115021
115021
|
var Busboy = require_main();
|
|
115022
115022
|
var os2 = __require("node:os");
|
|
115023
|
-
var
|
|
115023
|
+
var fp36 = require_plugin2();
|
|
115024
115024
|
var { createWriteStream: createWriteStream2 } = __require("node:fs");
|
|
115025
115025
|
var { unlink: unlink2 } = __require("node:fs/promises");
|
|
115026
115026
|
var path23 = __require("node:path");
|
|
@@ -115469,7 +115469,7 @@ var require_multipart2 = __commonJS({
|
|
|
115469
115469
|
}
|
|
115470
115470
|
});
|
|
115471
115471
|
}
|
|
115472
|
-
module.exports =
|
|
115472
|
+
module.exports = fp36(fastifyMultipart2, {
|
|
115473
115473
|
fastify: "5.x",
|
|
115474
115474
|
name: "@fastify/multipart"
|
|
115475
115475
|
});
|
|
@@ -119985,19 +119985,19 @@ var require_infra = __commonJS({
|
|
|
119985
119985
|
function parseJSONFromBytes(bytes) {
|
|
119986
119986
|
return JSON.parse(utf8DecodeBytes(bytes));
|
|
119987
119987
|
}
|
|
119988
|
-
function removeASCIIWhitespace(
|
|
119989
|
-
return removeChars(
|
|
119988
|
+
function removeASCIIWhitespace(str2, leading = true, trailing = true) {
|
|
119989
|
+
return removeChars(str2, leading, trailing, isASCIIWhitespace);
|
|
119990
119990
|
}
|
|
119991
|
-
function removeChars(
|
|
119991
|
+
function removeChars(str2, leading, trailing, predicate) {
|
|
119992
119992
|
let lead = 0;
|
|
119993
|
-
let trail =
|
|
119993
|
+
let trail = str2.length - 1;
|
|
119994
119994
|
if (leading) {
|
|
119995
|
-
while (lead <
|
|
119995
|
+
while (lead < str2.length && predicate(str2.charCodeAt(lead))) lead++;
|
|
119996
119996
|
}
|
|
119997
119997
|
if (trailing) {
|
|
119998
|
-
while (trail > 0 && predicate(
|
|
119998
|
+
while (trail > 0 && predicate(str2.charCodeAt(trail))) trail--;
|
|
119999
119999
|
}
|
|
120000
|
-
return lead === 0 && trail ===
|
|
120000
|
+
return lead === 0 && trail === str2.length - 1 ? str2 : str2.slice(lead, trail + 1);
|
|
120001
120001
|
}
|
|
120002
120002
|
function serializeJavascriptValueToJSONString(value) {
|
|
120003
120003
|
const result = JSON.stringify(value);
|
|
@@ -120248,8 +120248,8 @@ var require_data_url = __commonJS({
|
|
|
120248
120248
|
function isHTTPWhiteSpace(char) {
|
|
120249
120249
|
return char === 13 || char === 10 || char === 9 || char === 32;
|
|
120250
120250
|
}
|
|
120251
|
-
function removeHTTPWhitespace(
|
|
120252
|
-
return removeChars(
|
|
120251
|
+
function removeHTTPWhitespace(str2, leading = true, trailing = true) {
|
|
120252
|
+
return removeChars(str2, leading, trailing, isHTTPWhiteSpace);
|
|
120253
120253
|
}
|
|
120254
120254
|
function minimizeSupportedMimeType(mimeType) {
|
|
120255
120255
|
switch (mimeType.essence) {
|
|
@@ -122344,7 +122344,7 @@ var require_body = __commonJS({
|
|
|
122344
122344
|
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
|
|
122345
122345
|
const prefix = `--${boundary}\r
|
|
122346
122346
|
Content-Disposition: form-data`;
|
|
122347
|
-
const formdataEscape = (
|
|
122347
|
+
const formdataEscape = (str2) => str2.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
|
|
122348
122348
|
const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, "\r\n");
|
|
122349
122349
|
const blobParts = [];
|
|
122350
122350
|
const rn = new Uint8Array([13, 10]);
|
|
@@ -136917,9 +136917,9 @@ var require_cookies = __commonJS({
|
|
|
136917
136917
|
webidl.argumentLengthCheck(arguments, 2, "setCookie");
|
|
136918
136918
|
brandChecks(headers);
|
|
136919
136919
|
cookie = webidl.converters.Cookie(cookie);
|
|
136920
|
-
const
|
|
136921
|
-
if (
|
|
136922
|
-
headers.append("set-cookie",
|
|
136920
|
+
const str2 = stringify2(cookie);
|
|
136921
|
+
if (str2) {
|
|
136922
|
+
headers.append("set-cookie", str2, true);
|
|
136923
136923
|
}
|
|
136924
136924
|
}
|
|
136925
136925
|
webidl.converters.DeleteCookieAttributes = webidl.dictionaryConverter([
|
|
@@ -139887,12 +139887,12 @@ var require_helpers = __commonJS({
|
|
|
139887
139887
|
exports.toBuffer = toBuffer;
|
|
139888
139888
|
async function json3(stream) {
|
|
139889
139889
|
const buf = await toBuffer(stream);
|
|
139890
|
-
const
|
|
139890
|
+
const str2 = buf.toString("utf8");
|
|
139891
139891
|
try {
|
|
139892
|
-
return JSON.parse(
|
|
139892
|
+
return JSON.parse(str2);
|
|
139893
139893
|
} catch (_err) {
|
|
139894
139894
|
const err = _err;
|
|
139895
|
-
err.message += ` (input: ${
|
|
139895
|
+
err.message += ` (input: ${str2})`;
|
|
139896
139896
|
throw err;
|
|
139897
139897
|
}
|
|
139898
139898
|
}
|
|
@@ -148135,9 +148135,9 @@ function U(r, n, e) {
|
|
|
148135
148135
|
function P2(r, n, e) {
|
|
148136
148136
|
return r instanceof RegExp ? $(r, n) : Array.isArray(r) ? W2(r, n, e) : L(r, n, e);
|
|
148137
148137
|
}
|
|
148138
|
-
function match(
|
|
148138
|
+
function match(str2, options) {
|
|
148139
148139
|
try {
|
|
148140
|
-
return H(
|
|
148140
|
+
return H(str2, options);
|
|
148141
148141
|
} catch (e) {
|
|
148142
148142
|
throw new Error(`Invalid path and options: Consult the documentation of path-to-regexp here: https://github.com/pillarjs/path-to-regexp/tree/6.x
|
|
148143
148143
|
${e.message}`);
|
|
@@ -149424,47 +149424,47 @@ var init_chunk_JW73PKED = __esm({
|
|
|
149424
149424
|
C2.prototype = /* @__PURE__ */ Object.create(null);
|
|
149425
149425
|
return C2;
|
|
149426
149426
|
})();
|
|
149427
|
-
function parse22(
|
|
149427
|
+
function parse22(str2, options) {
|
|
149428
149428
|
const obj = new NullObject();
|
|
149429
|
-
const len =
|
|
149429
|
+
const len = str2.length;
|
|
149430
149430
|
if (len < 2)
|
|
149431
149431
|
return obj;
|
|
149432
149432
|
const dec = options?.decode || decode3;
|
|
149433
149433
|
let index = 0;
|
|
149434
149434
|
do {
|
|
149435
|
-
const eqIdx =
|
|
149435
|
+
const eqIdx = str2.indexOf("=", index);
|
|
149436
149436
|
if (eqIdx === -1)
|
|
149437
149437
|
break;
|
|
149438
|
-
const colonIdx =
|
|
149438
|
+
const colonIdx = str2.indexOf(";", index);
|
|
149439
149439
|
const endIdx = colonIdx === -1 ? len : colonIdx;
|
|
149440
149440
|
if (eqIdx > endIdx) {
|
|
149441
|
-
index =
|
|
149441
|
+
index = str2.lastIndexOf(";", eqIdx - 1) + 1;
|
|
149442
149442
|
continue;
|
|
149443
149443
|
}
|
|
149444
|
-
const keyStartIdx = startIndex(
|
|
149445
|
-
const keyEndIdx = endIndex(
|
|
149446
|
-
const key2 =
|
|
149444
|
+
const keyStartIdx = startIndex(str2, index, eqIdx);
|
|
149445
|
+
const keyEndIdx = endIndex(str2, eqIdx, keyStartIdx);
|
|
149446
|
+
const key2 = str2.slice(keyStartIdx, keyEndIdx);
|
|
149447
149447
|
if (obj[key2] === void 0) {
|
|
149448
|
-
let valStartIdx = startIndex(
|
|
149449
|
-
let valEndIdx = endIndex(
|
|
149450
|
-
const value = dec(
|
|
149448
|
+
let valStartIdx = startIndex(str2, eqIdx + 1, endIdx);
|
|
149449
|
+
let valEndIdx = endIndex(str2, endIdx, valStartIdx);
|
|
149450
|
+
const value = dec(str2.slice(valStartIdx, valEndIdx));
|
|
149451
149451
|
obj[key2] = value;
|
|
149452
149452
|
}
|
|
149453
149453
|
index = endIdx + 1;
|
|
149454
149454
|
} while (index < len);
|
|
149455
149455
|
return obj;
|
|
149456
149456
|
}
|
|
149457
|
-
function startIndex(
|
|
149457
|
+
function startIndex(str2, index, max) {
|
|
149458
149458
|
do {
|
|
149459
|
-
const code =
|
|
149459
|
+
const code = str2.charCodeAt(index);
|
|
149460
149460
|
if (code !== 32 && code !== 9)
|
|
149461
149461
|
return index;
|
|
149462
149462
|
} while (++index < max);
|
|
149463
149463
|
return max;
|
|
149464
149464
|
}
|
|
149465
|
-
function endIndex(
|
|
149465
|
+
function endIndex(str2, index, min) {
|
|
149466
149466
|
while (index > min) {
|
|
149467
|
-
const code =
|
|
149467
|
+
const code = str2.charCodeAt(--index);
|
|
149468
149468
|
if (code !== 32 && code !== 9)
|
|
149469
149469
|
return index + 1;
|
|
149470
149470
|
}
|
|
@@ -149479,53 +149479,53 @@ var init_chunk_JW73PKED = __esm({
|
|
|
149479
149479
|
if (!cookieValueRegExp.test(value)) {
|
|
149480
149480
|
throw new TypeError(`argument val is invalid: ${val}`);
|
|
149481
149481
|
}
|
|
149482
|
-
let
|
|
149482
|
+
let str2 = name25 + "=" + value;
|
|
149483
149483
|
if (!options)
|
|
149484
|
-
return
|
|
149484
|
+
return str2;
|
|
149485
149485
|
if (options.maxAge !== void 0) {
|
|
149486
149486
|
if (!Number.isInteger(options.maxAge)) {
|
|
149487
149487
|
throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);
|
|
149488
149488
|
}
|
|
149489
|
-
|
|
149489
|
+
str2 += "; Max-Age=" + options.maxAge;
|
|
149490
149490
|
}
|
|
149491
149491
|
if (options.domain) {
|
|
149492
149492
|
if (!domainValueRegExp.test(options.domain)) {
|
|
149493
149493
|
throw new TypeError(`option domain is invalid: ${options.domain}`);
|
|
149494
149494
|
}
|
|
149495
|
-
|
|
149495
|
+
str2 += "; Domain=" + options.domain;
|
|
149496
149496
|
}
|
|
149497
149497
|
if (options.path) {
|
|
149498
149498
|
if (!pathValueRegExp.test(options.path)) {
|
|
149499
149499
|
throw new TypeError(`option path is invalid: ${options.path}`);
|
|
149500
149500
|
}
|
|
149501
|
-
|
|
149501
|
+
str2 += "; Path=" + options.path;
|
|
149502
149502
|
}
|
|
149503
149503
|
if (options.expires) {
|
|
149504
149504
|
if (!isDate2(options.expires) || !Number.isFinite(options.expires.valueOf())) {
|
|
149505
149505
|
throw new TypeError(`option expires is invalid: ${options.expires}`);
|
|
149506
149506
|
}
|
|
149507
|
-
|
|
149507
|
+
str2 += "; Expires=" + options.expires.toUTCString();
|
|
149508
149508
|
}
|
|
149509
149509
|
if (options.httpOnly) {
|
|
149510
|
-
|
|
149510
|
+
str2 += "; HttpOnly";
|
|
149511
149511
|
}
|
|
149512
149512
|
if (options.secure) {
|
|
149513
|
-
|
|
149513
|
+
str2 += "; Secure";
|
|
149514
149514
|
}
|
|
149515
149515
|
if (options.partitioned) {
|
|
149516
|
-
|
|
149516
|
+
str2 += "; Partitioned";
|
|
149517
149517
|
}
|
|
149518
149518
|
if (options.priority) {
|
|
149519
149519
|
const priority = typeof options.priority === "string" ? options.priority.toLowerCase() : void 0;
|
|
149520
149520
|
switch (priority) {
|
|
149521
149521
|
case "low":
|
|
149522
|
-
|
|
149522
|
+
str2 += "; Priority=Low";
|
|
149523
149523
|
break;
|
|
149524
149524
|
case "medium":
|
|
149525
|
-
|
|
149525
|
+
str2 += "; Priority=Medium";
|
|
149526
149526
|
break;
|
|
149527
149527
|
case "high":
|
|
149528
|
-
|
|
149528
|
+
str2 += "; Priority=High";
|
|
149529
149529
|
break;
|
|
149530
149530
|
default:
|
|
149531
149531
|
throw new TypeError(`option priority is invalid: ${options.priority}`);
|
|
@@ -149536,27 +149536,27 @@ var init_chunk_JW73PKED = __esm({
|
|
|
149536
149536
|
switch (sameSite) {
|
|
149537
149537
|
case true:
|
|
149538
149538
|
case "strict":
|
|
149539
|
-
|
|
149539
|
+
str2 += "; SameSite=Strict";
|
|
149540
149540
|
break;
|
|
149541
149541
|
case "lax":
|
|
149542
|
-
|
|
149542
|
+
str2 += "; SameSite=Lax";
|
|
149543
149543
|
break;
|
|
149544
149544
|
case "none":
|
|
149545
|
-
|
|
149545
|
+
str2 += "; SameSite=None";
|
|
149546
149546
|
break;
|
|
149547
149547
|
default:
|
|
149548
149548
|
throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);
|
|
149549
149549
|
}
|
|
149550
149550
|
}
|
|
149551
|
-
return
|
|
149551
|
+
return str2;
|
|
149552
149552
|
}
|
|
149553
|
-
function decode3(
|
|
149554
|
-
if (
|
|
149555
|
-
return
|
|
149553
|
+
function decode3(str2) {
|
|
149554
|
+
if (str2.indexOf("%") === -1)
|
|
149555
|
+
return str2;
|
|
149556
149556
|
try {
|
|
149557
|
-
return decodeURIComponent(
|
|
149557
|
+
return decodeURIComponent(str2);
|
|
149558
149558
|
} catch (e) {
|
|
149559
|
-
return
|
|
149559
|
+
return str2;
|
|
149560
149560
|
}
|
|
149561
149561
|
}
|
|
149562
149562
|
function isDate2(val) {
|
|
@@ -153063,8 +153063,8 @@ var init_chunk_JW73PKED = __esm({
|
|
|
153063
153063
|
const cookiesRecord = (0, import_cookie.parse)(this.decodeCookieValue(req.headers.get("cookie") || ""));
|
|
153064
153064
|
return new Map(Object.entries(cookiesRecord));
|
|
153065
153065
|
}
|
|
153066
|
-
decodeCookieValue(
|
|
153067
|
-
return
|
|
153066
|
+
decodeCookieValue(str2) {
|
|
153067
|
+
return str2 ? str2.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent) : str2;
|
|
153068
153068
|
}
|
|
153069
153069
|
};
|
|
153070
153070
|
createClerkRequest = (...args) => {
|
|
@@ -153941,11 +153941,11 @@ var init_chunk_P263NW7Z = __esm({
|
|
|
153941
153941
|
});
|
|
153942
153942
|
|
|
153943
153943
|
// ../../node_modules/.pnpm/@clerk+shared@4.3.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@clerk/shared/dist/runtime/underscore-ClYSgvuy.mjs
|
|
153944
|
-
function snakeToCamel(
|
|
153945
|
-
return
|
|
153944
|
+
function snakeToCamel(str2) {
|
|
153945
|
+
return str2 ? str2.replace(/([-_][a-z])/g, (match2) => match2.toUpperCase().replace(/-|_/, "")) : "";
|
|
153946
153946
|
}
|
|
153947
|
-
function camelToSnake(
|
|
153948
|
-
return
|
|
153947
|
+
function camelToSnake(str2) {
|
|
153948
|
+
return str2 ? str2.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`) : "";
|
|
153949
153949
|
}
|
|
153950
153950
|
function isTruthy(value) {
|
|
153951
153951
|
if (typeof value === `boolean`) return value;
|
|
@@ -155752,13 +155752,13 @@ function joinPathSegments(left, right) {
|
|
|
155752
155752
|
}
|
|
155753
155753
|
return left + "/" + right;
|
|
155754
155754
|
}
|
|
155755
|
-
function trimSlashes(
|
|
155756
|
-
if (!
|
|
155755
|
+
function trimSlashes(str2) {
|
|
155756
|
+
if (!str2) return str2;
|
|
155757
155757
|
let start = 0;
|
|
155758
|
-
let end =
|
|
155759
|
-
if (
|
|
155760
|
-
if (
|
|
155761
|
-
return start === 0 && end ===
|
|
155758
|
+
let end = str2.length;
|
|
155759
|
+
if (str2.startsWith("/")) start = 1;
|
|
155760
|
+
if (str2.endsWith("/")) end = str2.length - 1;
|
|
155761
|
+
return start === 0 && end === str2.length ? str2 : str2.slice(start, end);
|
|
155762
155762
|
}
|
|
155763
155763
|
function base64ToBytes2(base643) {
|
|
155764
155764
|
const binString = atob(base643);
|
|
@@ -167236,8 +167236,8 @@ var ExitCode = {
|
|
|
167236
167236
|
*/
|
|
167237
167237
|
CommandRunError: 1
|
|
167238
167238
|
};
|
|
167239
|
-
function convertKebabCaseToCamelCase(
|
|
167240
|
-
return
|
|
167239
|
+
function convertKebabCaseToCamelCase(str2) {
|
|
167240
|
+
return str2.replace(/-./g, (match2) => match2[1].toUpperCase());
|
|
167241
167241
|
}
|
|
167242
167242
|
function convertCamelCaseToKebabCase(name25) {
|
|
167243
167243
|
return Array.from(name25).map((char, i) => {
|
|
@@ -167372,8 +167372,8 @@ function formatRowsWithColumns(cells, separators) {
|
|
|
167372
167372
|
return cells.map((cellRow) => {
|
|
167373
167373
|
const firstCell = (cellRow[0] ?? "").padEnd(maxLengths[0]);
|
|
167374
167374
|
return cellRow.slice(1).reduce(
|
|
167375
|
-
(parts,
|
|
167376
|
-
const paddedStr = arr.length === i + 1 ?
|
|
167375
|
+
(parts, str2, i, arr) => {
|
|
167376
|
+
const paddedStr = arr.length === i + 1 ? str2 : str2.padEnd(maxLengths[i + 1]);
|
|
167377
167377
|
return [...parts, separators?.[i] ?? " ", paddedStr];
|
|
167378
167378
|
},
|
|
167379
167379
|
[firstCell]
|
|
@@ -167556,7 +167556,7 @@ var EnumValidationError = class extends ArgumentScannerError {
|
|
|
167556
167556
|
let message = `Expected "${input}" to be one of (${values.join("|")})`;
|
|
167557
167557
|
if (corrections.length > 0) {
|
|
167558
167558
|
const formattedCorrections = joinWithGrammar(
|
|
167559
|
-
corrections.map((
|
|
167559
|
+
corrections.map((str2) => `"${str2}"`),
|
|
167560
167560
|
{
|
|
167561
167561
|
kind: "conjunctive",
|
|
167562
167562
|
conjunction: "or",
|
|
@@ -168539,7 +168539,7 @@ async function runApplication({ root, defaultText, config: config2 }, rawInputs,
|
|
|
168539
168539
|
config2.completion
|
|
168540
168540
|
);
|
|
168541
168541
|
const corrections = filterClosestAlternatives(error48.input, routeNames, config2.scanner.distanceOptions).map(
|
|
168542
|
-
(
|
|
168542
|
+
(str2) => `\`${str2}\``
|
|
168543
168543
|
);
|
|
168544
168544
|
const ansiColor = shouldUseAnsiColor(context2.process, context2.process.stderr, config2.documentation);
|
|
168545
168545
|
const errorMessage = text2.noCommandRegisteredForInput({ input: error48.input, corrections, ansiColor });
|
|
@@ -169021,11 +169021,11 @@ function buildCommand(builderArgs) {
|
|
|
169021
169021
|
}
|
|
169022
169022
|
};
|
|
169023
169023
|
}
|
|
169024
|
-
function* generateRouteMapHelpLines(
|
|
169024
|
+
function* generateRouteMapHelpLines(routes35, docs, args) {
|
|
169025
169025
|
const { brief, fullDescription, hideRoute } = docs;
|
|
169026
169026
|
const { headers } = args.text;
|
|
169027
169027
|
yield args.ansiColor ? `\x1B[1m${headers.usage}\x1B[22m` : headers.usage;
|
|
169028
|
-
for (const [name25, route] of Object.entries(
|
|
169028
|
+
for (const [name25, route] of Object.entries(routes35)) {
|
|
169029
169029
|
if (!hideRoute || !hideRoute[name25] || args.includeHidden) {
|
|
169030
169030
|
const externalRouteName = args.config.caseStyle === "convert-camel-to-kebab" ? convertCamelCaseToKebabCase(name25) : name25;
|
|
169031
169031
|
yield ` ${route.formatUsageLine({
|
|
@@ -169055,7 +169055,7 @@ function* generateRouteMapHelpLines(routes34, docs, args) {
|
|
|
169055
169055
|
}
|
|
169056
169056
|
yield "";
|
|
169057
169057
|
yield args.ansiColor ? `\x1B[1m${headers.commands}\x1B[22m` : headers.commands;
|
|
169058
|
-
const visibleRoutes = Object.entries(
|
|
169058
|
+
const visibleRoutes = Object.entries(routes35).filter(
|
|
169059
169059
|
([name25]) => !hideRoute || !hideRoute[name25] || args.includeHidden
|
|
169060
169060
|
);
|
|
169061
169061
|
const rows = visibleRoutes.map(([internalRouteName, route]) => {
|
|
@@ -169083,24 +169083,24 @@ function* generateRouteMapHelpLines(routes34, docs, args) {
|
|
|
169083
169083
|
}
|
|
169084
169084
|
}
|
|
169085
169085
|
function buildRouteMap({
|
|
169086
|
-
routes:
|
|
169086
|
+
routes: routes35,
|
|
169087
169087
|
defaultCommand: defaultCommandRoute,
|
|
169088
169088
|
docs,
|
|
169089
169089
|
aliases
|
|
169090
169090
|
}) {
|
|
169091
|
-
if (Object.entries(
|
|
169091
|
+
if (Object.entries(routes35).length === 0) {
|
|
169092
169092
|
throw new InternalError("Route map must contain at least one route");
|
|
169093
169093
|
}
|
|
169094
169094
|
const activeAliases = aliases ?? {};
|
|
169095
169095
|
const aliasesByRoute = /* @__PURE__ */ new Map();
|
|
169096
169096
|
for (const [alias, routeName] of Object.entries(activeAliases)) {
|
|
169097
|
-
if (alias in
|
|
169097
|
+
if (alias in routes35) {
|
|
169098
169098
|
throw new InternalError(`Cannot use "${alias}" as an alias when a route with that name already exists`);
|
|
169099
169099
|
}
|
|
169100
169100
|
const routeAliases = aliasesByRoute.get(routeName) ?? [];
|
|
169101
169101
|
aliasesByRoute.set(routeName, [...routeAliases, alias]);
|
|
169102
169102
|
}
|
|
169103
|
-
const defaultCommand = defaultCommandRoute ?
|
|
169103
|
+
const defaultCommand = defaultCommandRoute ? routes35[defaultCommandRoute] : void 0;
|
|
169104
169104
|
if (defaultCommand && defaultCommand.kind === RouteMapSymbol) {
|
|
169105
169105
|
throw new InternalError(
|
|
169106
169106
|
`Cannot use "${defaultCommandRoute}" as the default command because it is not a Command`
|
|
@@ -169109,7 +169109,7 @@ function buildRouteMap({
|
|
|
169109
169109
|
const resolveRouteName = (input) => {
|
|
169110
169110
|
if (input in activeAliases) {
|
|
169111
169111
|
return activeAliases[input];
|
|
169112
|
-
} else if (input in
|
|
169112
|
+
} else if (input in routes35) {
|
|
169113
169113
|
return input;
|
|
169114
169114
|
}
|
|
169115
169115
|
};
|
|
@@ -169127,7 +169127,7 @@ function buildRouteMap({
|
|
|
169127
169127
|
return `${args.prefix.join(" ")} ${routeNames.join("|")} ...`;
|
|
169128
169128
|
},
|
|
169129
169129
|
formatHelp: (config2) => {
|
|
169130
|
-
const lines = [...generateRouteMapHelpLines(
|
|
169130
|
+
const lines = [...generateRouteMapHelpLines(routes35, docs, config2)];
|
|
169131
169131
|
const text2 = lines.join("\n");
|
|
169132
169132
|
return text2 + "\n";
|
|
169133
169133
|
},
|
|
@@ -169170,11 +169170,11 @@ function buildRouteMap({
|
|
|
169170
169170
|
},
|
|
169171
169171
|
getRoutingTargetForInput: (input) => {
|
|
169172
169172
|
const routeName = input in activeAliases ? activeAliases[input] : input;
|
|
169173
|
-
return
|
|
169173
|
+
return routes35[routeName];
|
|
169174
169174
|
},
|
|
169175
169175
|
getAllEntries() {
|
|
169176
169176
|
const hiddenRoutes = docs.hideRoute;
|
|
169177
|
-
return Object.entries(
|
|
169177
|
+
return Object.entries(routes35).map(([originalRouteName, target]) => {
|
|
169178
169178
|
return {
|
|
169179
169179
|
name: {
|
|
169180
169180
|
original: originalRouteName,
|
|
@@ -170129,8 +170129,8 @@ function parseStringReferenceWithTable(parts) {
|
|
|
170129
170129
|
const [table, column] = parts;
|
|
170130
170130
|
return ReferenceNode.create(ColumnNode.create(column), TableNode.create(table));
|
|
170131
170131
|
}
|
|
170132
|
-
function trim(
|
|
170133
|
-
return
|
|
170132
|
+
function trim(str2) {
|
|
170133
|
+
return str2.trim();
|
|
170134
170134
|
}
|
|
170135
170135
|
|
|
170136
170136
|
// ../../node_modules/.pnpm/kysely@0.29.2/node_modules/kysely/dist/operation-node/primitive-value-list-node.js
|
|
@@ -178088,8 +178088,8 @@ function parseTable(from) {
|
|
|
178088
178088
|
return TableNode.create(from);
|
|
178089
178089
|
}
|
|
178090
178090
|
}
|
|
178091
|
-
function trim2(
|
|
178092
|
-
return
|
|
178091
|
+
function trim2(str2) {
|
|
178092
|
+
return str2.trim();
|
|
178093
178093
|
}
|
|
178094
178094
|
|
|
178095
178095
|
// ../../node_modules/.pnpm/kysely@0.29.2/node_modules/kysely/dist/operation-node/add-column-node.js
|
|
@@ -180891,8 +180891,8 @@ function parseSchemableIdentifierArray(id) {
|
|
|
180891
180891
|
}
|
|
180892
180892
|
return id.map(parseSchemableIdentifier);
|
|
180893
180893
|
}
|
|
180894
|
-
function trim3(
|
|
180895
|
-
return
|
|
180894
|
+
function trim3(str2) {
|
|
180895
|
+
return str2.trim();
|
|
180896
180896
|
}
|
|
180897
180897
|
|
|
180898
180898
|
// ../../node_modules/.pnpm/kysely@0.29.2/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.js
|
|
@@ -184464,8 +184464,8 @@ var DefaultQueryCompiler = class extends OperationNodeVisitor {
|
|
|
184464
184464
|
this.append("collate ");
|
|
184465
184465
|
this.visitNode(node.collation);
|
|
184466
184466
|
}
|
|
184467
|
-
append(
|
|
184468
|
-
this.#sql +=
|
|
184467
|
+
append(str2) {
|
|
184468
|
+
this.#sql += str2;
|
|
184469
184469
|
}
|
|
184470
184470
|
appendValue(parameter) {
|
|
184471
184471
|
this.addParameter(parameter);
|
|
@@ -185658,10 +185658,21 @@ var createScheduledRepos = (kdb, h) => ({
|
|
|
185658
185658
|
branch: opts.branch ?? null,
|
|
185659
185659
|
directory: opts.directory ?? null,
|
|
185660
185660
|
timeout_seconds: opts.timeout_seconds ?? 1800,
|
|
185661
|
-
next_run_at: computeNextRunAt(opts.cron_expr, opts.timezone, opts.enabled !== false)
|
|
185662
|
-
|
|
185663
|
-
|
|
185664
|
-
|
|
185661
|
+
next_run_at: computeNextRunAt(opts.cron_expr, opts.timezone, opts.enabled !== false),
|
|
185662
|
+
source_session_id: opts.source?.session_id ?? null,
|
|
185663
|
+
source_tool_use_id: opts.source?.tool_use_id ?? null
|
|
185664
|
+
}).onConflict((oc) => oc.doNothing()).execute();
|
|
185665
|
+
const row = await kdb.selectFrom("scheduled_tasks").selectAll().where("id", "=", opts.id).executeTakeFirst();
|
|
185666
|
+
if (row) return mapTask(row);
|
|
185667
|
+
if (opts.source) {
|
|
185668
|
+
const existing = await kdb.selectFrom("scheduled_tasks").selectAll().where("project_id", "=", opts.project_id).where("source_session_id", "=", opts.source.session_id).where("source_tool_use_id", "=", opts.source.tool_use_id).executeTakeFirst();
|
|
185669
|
+
if (existing) return mapTask(existing);
|
|
185670
|
+
}
|
|
185671
|
+
throw new Error(`Failed to create schedule ${opts.id}`);
|
|
185672
|
+
},
|
|
185673
|
+
getBySource: async (projectId, sessionId, toolUseId) => {
|
|
185674
|
+
const row = await kdb.selectFrom("scheduled_tasks").selectAll().where("project_id", "=", projectId).where("source_session_id", "=", sessionId).where("source_tool_use_id", "=", toolUseId).executeTakeFirst();
|
|
185675
|
+
return row ? mapTask(row) : void 0;
|
|
185665
185676
|
},
|
|
185666
185677
|
getByProjectId: async (projectId) => {
|
|
185667
185678
|
const rows = await kdb.selectFrom("scheduled_tasks").selectAll().where("project_id", "=", projectId).orderBy("created_at", "asc").orderBy("id", "asc").execute();
|
|
@@ -189368,14 +189379,14 @@ function promiseAllObject(promisesObj) {
|
|
|
189368
189379
|
}
|
|
189369
189380
|
function randomString2(length = 10) {
|
|
189370
189381
|
const chars = "abcdefghijklmnopqrstuvwxyz";
|
|
189371
|
-
let
|
|
189382
|
+
let str2 = "";
|
|
189372
189383
|
for (let i = 0; i < length; i++) {
|
|
189373
|
-
|
|
189384
|
+
str2 += chars[Math.floor(Math.random() * chars.length)];
|
|
189374
189385
|
}
|
|
189375
|
-
return
|
|
189386
|
+
return str2;
|
|
189376
189387
|
}
|
|
189377
|
-
function esc(
|
|
189378
|
-
return JSON.stringify(
|
|
189388
|
+
function esc(str2) {
|
|
189389
|
+
return JSON.stringify(str2);
|
|
189379
189390
|
}
|
|
189380
189391
|
function slugify(input) {
|
|
189381
189392
|
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
@@ -189475,8 +189486,8 @@ var getParsedType = (data) => {
|
|
|
189475
189486
|
};
|
|
189476
189487
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
189477
189488
|
var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
189478
|
-
function escapeRegex(
|
|
189479
|
-
return
|
|
189489
|
+
function escapeRegex(str2) {
|
|
189490
|
+
return str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
189480
189491
|
}
|
|
189481
189492
|
function clone(inst, def, params) {
|
|
189482
189493
|
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
@@ -204813,6 +204824,8 @@ var initializeSchema = (db) => {
|
|
|
204813
204824
|
directory TEXT,
|
|
204814
204825
|
timeout_seconds INTEGER NOT NULL DEFAULT 1800,
|
|
204815
204826
|
next_run_at TEXT,
|
|
204827
|
+
source_session_id TEXT,
|
|
204828
|
+
source_tool_use_id TEXT,
|
|
204816
204829
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
204817
204830
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
204818
204831
|
FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE
|
|
@@ -204951,6 +204964,12 @@ var initializeSchema = (db) => {
|
|
|
204951
204964
|
if (!scheduledTaskCols.some((c) => c.name === "next_run_at")) {
|
|
204952
204965
|
db.exec("ALTER TABLE scheduled_tasks ADD COLUMN next_run_at TEXT");
|
|
204953
204966
|
}
|
|
204967
|
+
if (!scheduledTaskCols.some((c) => c.name === "source_session_id")) {
|
|
204968
|
+
db.exec("ALTER TABLE scheduled_tasks ADD COLUMN source_session_id TEXT");
|
|
204969
|
+
}
|
|
204970
|
+
if (!scheduledTaskCols.some((c) => c.name === "source_tool_use_id")) {
|
|
204971
|
+
db.exec("ALTER TABLE scheduled_tasks ADD COLUMN source_tool_use_id TEXT");
|
|
204972
|
+
}
|
|
204954
204973
|
const scheduledRunCols = db.prepare("PRAGMA table_info(scheduled_task_runs)").all();
|
|
204955
204974
|
if (!scheduledRunCols.some((c) => c.name === "report")) {
|
|
204956
204975
|
db.exec("ALTER TABLE scheduled_task_runs ADD COLUMN report TEXT DEFAULT NULL");
|
|
@@ -205158,6 +205177,14 @@ var initializeSchema = (db) => {
|
|
|
205158
205177
|
ON scheduled_tasks(project_id, created_at ASC, id ASC);
|
|
205159
205178
|
CREATE INDEX IF NOT EXISTS idx_scheduled_tasks_project_enabled_next_run
|
|
205160
205179
|
ON scheduled_tasks(project_id, enabled, next_run_at ASC);
|
|
205180
|
+
-- Idempotency for agent-proposed schedules: confirming the same proposal
|
|
205181
|
+
-- twice (double click, two tabs) can only ever produce one row. Partial so
|
|
205182
|
+
-- ordinary schedules \u2014 both columns NULL \u2014 stay unconstrained explicitly,
|
|
205183
|
+
-- rather than relying on a dialect's NULL-distinctness rules. Doubles as
|
|
205184
|
+
-- the lookup index for the card's state recovery.
|
|
205185
|
+
CREATE UNIQUE INDEX IF NOT EXISTS idx_scheduled_tasks_source
|
|
205186
|
+
ON scheduled_tasks(source_session_id, source_tool_use_id)
|
|
205187
|
+
WHERE source_tool_use_id IS NOT NULL;
|
|
205161
205188
|
CREATE INDEX IF NOT EXISTS idx_scheduled_task_runs_schedule_started_id
|
|
205162
205189
|
ON scheduled_task_runs(schedule_id, started_at DESC, id DESC);
|
|
205163
205190
|
CREATE INDEX IF NOT EXISTS idx_scheduled_task_runs_project_started_id
|
|
@@ -205418,6 +205445,118 @@ function getBinaryVersion(command) {
|
|
|
205418
205445
|
return version2;
|
|
205419
205446
|
}
|
|
205420
205447
|
|
|
205448
|
+
// src/utils/session-tools-token.ts
|
|
205449
|
+
import { createHmac, randomBytes, timingSafeEqual } from "crypto";
|
|
205450
|
+
var SESSION_TOOLS_SECRET_SETTING = "session_tools_token_secret";
|
|
205451
|
+
var SESSION_TOOLS_TOKEN_TTL_MS = 864e5;
|
|
205452
|
+
var sign = (secret, body) => createHmac("sha256", secret).update(body).digest("base64url");
|
|
205453
|
+
function signSessionToolsToken(secret, payload, nowMs, ttlMs = SESSION_TOOLS_TOKEN_TTL_MS) {
|
|
205454
|
+
const wire = { s: payload.sessionId, exp: nowMs + ttlMs };
|
|
205455
|
+
const body = Buffer.from(JSON.stringify(wire)).toString("base64url");
|
|
205456
|
+
return `${body}.${sign(secret, body)}`;
|
|
205457
|
+
}
|
|
205458
|
+
function verifySessionToolsToken(secret, token, nowMs) {
|
|
205459
|
+
const parts = token.split(".");
|
|
205460
|
+
if (parts.length !== 2) return null;
|
|
205461
|
+
const [body, providedSig] = parts;
|
|
205462
|
+
if (!body || !providedSig) return null;
|
|
205463
|
+
const expectedSig = sign(secret, body);
|
|
205464
|
+
const provided = Buffer.from(providedSig);
|
|
205465
|
+
const expected = Buffer.from(expectedSig);
|
|
205466
|
+
if (provided.length !== expected.length) return null;
|
|
205467
|
+
if (!timingSafeEqual(provided, expected)) return null;
|
|
205468
|
+
let wire;
|
|
205469
|
+
try {
|
|
205470
|
+
wire = JSON.parse(Buffer.from(body, "base64url").toString());
|
|
205471
|
+
} catch {
|
|
205472
|
+
return null;
|
|
205473
|
+
}
|
|
205474
|
+
if (typeof wire.s !== "string" || !wire.s) return null;
|
|
205475
|
+
if (typeof wire.exp !== "number" || nowMs >= wire.exp) return null;
|
|
205476
|
+
return { sessionId: wire.s };
|
|
205477
|
+
}
|
|
205478
|
+
async function getSessionToolsSecret(storage) {
|
|
205479
|
+
return storage.settings.getOrCreate(
|
|
205480
|
+
SESSION_TOOLS_SECRET_SETTING,
|
|
205481
|
+
() => randomBytes(32).toString("hex")
|
|
205482
|
+
);
|
|
205483
|
+
}
|
|
205484
|
+
|
|
205485
|
+
// src/session-tools-mcp.ts
|
|
205486
|
+
var SESSION_TOOLS_MCP_PATH = "/api/session-mcp";
|
|
205487
|
+
var SESSION_TOOLS_MCP_SERVER_NAME = "vibedeckx";
|
|
205488
|
+
var PROPOSE_SCHEDULE_TOOL = "propose_schedule";
|
|
205489
|
+
var CANONICAL_PROPOSE_SCHEDULE_TOOL = `mcp__${SESSION_TOOLS_MCP_SERVER_NAME}__${PROPOSE_SCHEDULE_TOOL}`;
|
|
205490
|
+
var PROPOSE_SCHEDULE_DESCRIPTION = [
|
|
205491
|
+
"Propose a recurring scheduled check to the user. Call this when you tell the user that",
|
|
205492
|
+
"something needs periodic follow-up observation \u2014 e.g. after a fix whose effect can only be",
|
|
205493
|
+
"confirmed over time, or a flaky failure worth watching.",
|
|
205494
|
+
"",
|
|
205495
|
+
"The proposal is shown to the user as a confirmation card; it does NOT create anything by",
|
|
205496
|
+
"itself and this call does not wait for the user. Say you have SUGGESTED a scheduled check",
|
|
205497
|
+
"(never that you created one) and continue.",
|
|
205498
|
+
"",
|
|
205499
|
+
"`prompt` must be self-contained: the scheduled run is a fresh agent with none of this",
|
|
205500
|
+
"conversation's context. Spell out what to check, how to tell pass from fail, and what to",
|
|
205501
|
+
"write in the report when something regressed.",
|
|
205502
|
+
"",
|
|
205503
|
+
"Project, execution target and branch are taken from this session \u2014 do not describe them here."
|
|
205504
|
+
].join("\n");
|
|
205505
|
+
var PROPOSE_SCHEDULE_INPUT_SCHEMA = {
|
|
205506
|
+
type: "object",
|
|
205507
|
+
properties: {
|
|
205508
|
+
name: { type: "string", description: 'Short label for the scheduled check, e.g. "Watch nightly build flakiness"' },
|
|
205509
|
+
cron_expr: { type: "string", description: '5-field cron expression, e.g. "0 9 * * *" for every day at 09:00' },
|
|
205510
|
+
prompt: { type: "string", description: "Self-contained instructions for the scheduled agent run" },
|
|
205511
|
+
timezone: { type: "string", description: `Optional IANA timezone for the cron expression, e.g. "Asia/Shanghai". Defaults to the user's browser timezone.` }
|
|
205512
|
+
},
|
|
205513
|
+
required: ["name", "cron_expr", "prompt"]
|
|
205514
|
+
};
|
|
205515
|
+
var PROPOSE_SCHEDULE_ACK = "Proposal shown to the user as a confirmation card. Nothing has been created yet \u2014 the user decides whether to accept it, outside this conversation. Tell the user you SUGGESTED a scheduled check and that they can confirm it on the card above.";
|
|
205516
|
+
var NAME_MAX = 200;
|
|
205517
|
+
var CRON_MAX = 200;
|
|
205518
|
+
var PROMPT_MAX = 2e4;
|
|
205519
|
+
var TIMEZONE_MAX = 100;
|
|
205520
|
+
var str = (value) => typeof value === "string" ? value.trim() : null;
|
|
205521
|
+
function parseProposeScheduleArgs(args) {
|
|
205522
|
+
const name25 = str(args.name);
|
|
205523
|
+
if (!name25) return { ok: false, error: "name is required" };
|
|
205524
|
+
if (name25.length > NAME_MAX) return { ok: false, error: `name must be at most ${NAME_MAX} characters` };
|
|
205525
|
+
const cronExpr = str(args.cron_expr);
|
|
205526
|
+
if (!cronExpr) return { ok: false, error: "cron_expr is required" };
|
|
205527
|
+
if (cronExpr.length > CRON_MAX) return { ok: false, error: `cron_expr must be at most ${CRON_MAX} characters` };
|
|
205528
|
+
const prompt = typeof args.prompt === "string" ? args.prompt : null;
|
|
205529
|
+
if (!prompt?.trim()) return { ok: false, error: "prompt is required" };
|
|
205530
|
+
if (prompt.length > PROMPT_MAX) return { ok: false, error: `prompt must be at most ${PROMPT_MAX} characters` };
|
|
205531
|
+
const timezone = str(args.timezone) ?? void 0;
|
|
205532
|
+
if (timezone && timezone.length > TIMEZONE_MAX) {
|
|
205533
|
+
return { ok: false, error: `timezone must be at most ${TIMEZONE_MAX} characters` };
|
|
205534
|
+
}
|
|
205535
|
+
return { ok: true, value: { name: name25, cron_expr: cronExpr, prompt, ...timezone ? { timezone } : {} } };
|
|
205536
|
+
}
|
|
205537
|
+
var PROPOSE_SCHEDULE_ALIASES = new Set(
|
|
205538
|
+
[
|
|
205539
|
+
PROPOSE_SCHEDULE_TOOL,
|
|
205540
|
+
CANONICAL_PROPOSE_SCHEDULE_TOOL,
|
|
205541
|
+
`${SESSION_TOOLS_MCP_SERVER_NAME}.${PROPOSE_SCHEDULE_TOOL}`,
|
|
205542
|
+
`${SESSION_TOOLS_MCP_SERVER_NAME}/${PROPOSE_SCHEDULE_TOOL}`,
|
|
205543
|
+
`${SESSION_TOOLS_MCP_SERVER_NAME}__${PROPOSE_SCHEDULE_TOOL}`,
|
|
205544
|
+
`${SESSION_TOOLS_MCP_SERVER_NAME}-${PROPOSE_SCHEDULE_TOOL}`
|
|
205545
|
+
].map((n) => n.toLowerCase())
|
|
205546
|
+
);
|
|
205547
|
+
function canonicalizeSessionToolName(tool2, server) {
|
|
205548
|
+
if (server !== void 0 && server.trim().toLowerCase() !== SESSION_TOOLS_MCP_SERVER_NAME) return tool2;
|
|
205549
|
+
return PROPOSE_SCHEDULE_ALIASES.has(tool2.trim().toLowerCase()) ? CANONICAL_PROPOSE_SCHEDULE_TOOL : tool2;
|
|
205550
|
+
}
|
|
205551
|
+
async function mintSessionToolsMcpConfig(deps, args) {
|
|
205552
|
+
const origin = args.origin?.trim();
|
|
205553
|
+
if (!origin || !origin.startsWith("http://")) return void 0;
|
|
205554
|
+
if (!args.sessionId) return void 0;
|
|
205555
|
+
const secret = await getSessionToolsSecret(deps.storage);
|
|
205556
|
+
const token = signSessionToolsToken(secret, { sessionId: args.sessionId }, Date.now());
|
|
205557
|
+
return { url: `${origin.replace(/\/+$/, "")}${SESSION_TOOLS_MCP_PATH}`, token };
|
|
205558
|
+
}
|
|
205559
|
+
|
|
205421
205560
|
// src/protocol/codex/schema.ts
|
|
205422
205561
|
var CODEX_BINARY_NAME = "codex";
|
|
205423
205562
|
var CODEX_NPM_PACKAGE = "@openai/codex";
|
|
@@ -205511,6 +205650,8 @@ var WebSearchItemSchema = external_exports.looseObject({
|
|
|
205511
205650
|
var McpToolCallItemSchema = external_exports.looseObject({
|
|
205512
205651
|
type: external_exports.literal("mcpToolCall"),
|
|
205513
205652
|
id: idish.optional(),
|
|
205653
|
+
/** MCP server the tool belongs to; `tool` is the bare name within it. */
|
|
205654
|
+
server: external_exports.string().optional(),
|
|
205514
205655
|
tool: external_exports.string().optional(),
|
|
205515
205656
|
arguments: external_exports.unknown().optional(),
|
|
205516
205657
|
result: external_exports.unknown().optional(),
|
|
@@ -205586,22 +205727,30 @@ var UserInputParamsSchema = external_exports.looseObject({
|
|
|
205586
205727
|
|
|
205587
205728
|
// src/protocol/codex/cli.ts
|
|
205588
205729
|
var CROSS_REMOTE_MCP_TOKEN_ENV = "VIBEDECKX_CROSS_REMOTE_MCP_TOKEN";
|
|
205589
|
-
|
|
205730
|
+
var SESSION_TOOLS_MCP_TOKEN_ENV = "VIBEDECKX_SESSION_MCP_TOKEN";
|
|
205731
|
+
var mcpServerOverride = (name25, url2, tokenEnvVar) => `mcp_servers.${name25}={ url = ${JSON.stringify(url2)}, bearer_token_env_var = ${JSON.stringify(tokenEnvVar)}, default_tools_approval_mode = "approve" }`;
|
|
205732
|
+
function buildCodexAppServerSpawnConfig(nativeBinary, crossRemoteMcp, model, sessionToolsMcp) {
|
|
205590
205733
|
const args = ["app-server"];
|
|
205591
205734
|
if (model && model.trim()) {
|
|
205592
205735
|
args.push("-c", `model=${JSON.stringify(model.trim())}`);
|
|
205593
205736
|
}
|
|
205594
205737
|
if (crossRemoteMcp) {
|
|
205738
|
+
args.push("-c", mcpServerOverride("cross-remote", crossRemoteMcp.url, CROSS_REMOTE_MCP_TOKEN_ENV));
|
|
205739
|
+
}
|
|
205740
|
+
if (sessionToolsMcp) {
|
|
205595
205741
|
args.push(
|
|
205596
205742
|
"-c",
|
|
205597
|
-
|
|
205743
|
+
mcpServerOverride(SESSION_TOOLS_MCP_SERVER_NAME, sessionToolsMcp.url, SESSION_TOOLS_MCP_TOKEN_ENV)
|
|
205598
205744
|
);
|
|
205599
205745
|
}
|
|
205600
|
-
const env =
|
|
205746
|
+
const env = {};
|
|
205747
|
+
if (crossRemoteMcp) env[CROSS_REMOTE_MCP_TOKEN_ENV] = crossRemoteMcp.token;
|
|
205748
|
+
if (sessionToolsMcp) env[SESSION_TOOLS_MCP_TOKEN_ENV] = sessionToolsMcp.token;
|
|
205749
|
+
const hasEnv = Object.keys(env).length > 0;
|
|
205601
205750
|
if (nativeBinary) {
|
|
205602
|
-
return { command: nativeBinary, args, ...
|
|
205751
|
+
return { command: nativeBinary, args, ...hasEnv ? { env } : {}, shell: false };
|
|
205603
205752
|
}
|
|
205604
|
-
return { command: "npx", args: ["-y", CODEX_NPM_PACKAGE, ...args], ...
|
|
205753
|
+
return { command: "npx", args: ["-y", CODEX_NPM_PACKAGE, ...args], ...hasEnv ? { env } : {}, shell: false };
|
|
205605
205754
|
}
|
|
205606
205755
|
function buildCodexExecCommand(nativeBinary, prompt, outputLastMessageFile) {
|
|
205607
205756
|
const escapedPrompt = prompt.replace(/'/g, "'\\''");
|
|
@@ -205669,13 +205818,23 @@ var ClaudeResultMessageSchema = external_exports.looseObject({
|
|
|
205669
205818
|
|
|
205670
205819
|
// src/protocol/claude-code/cli.ts
|
|
205671
205820
|
var STREAM_JSON_ARGS = ["--output-format=stream-json", "--input-format=stream-json"];
|
|
205821
|
+
function buildClaudeMcpConfigArg(servers) {
|
|
205822
|
+
return JSON.stringify({
|
|
205823
|
+
mcpServers: Object.fromEntries(
|
|
205824
|
+
Object.entries(servers).map(([name25, { url: url2, token }]) => [
|
|
205825
|
+
name25,
|
|
205826
|
+
{ type: "http", url: url2, headers: { Authorization: `Bearer ${token}` } }
|
|
205827
|
+
])
|
|
205828
|
+
)
|
|
205829
|
+
});
|
|
205830
|
+
}
|
|
205672
205831
|
function withNpxFallback(nativeBinary, args) {
|
|
205673
205832
|
if (nativeBinary) {
|
|
205674
205833
|
return { command: nativeBinary, args };
|
|
205675
205834
|
}
|
|
205676
205835
|
return { command: "npx", args: ["-y", CLAUDE_NPM_PACKAGE, ...args] };
|
|
205677
205836
|
}
|
|
205678
|
-
function buildClaudeSessionSpawnConfig(nativeBinary, permissionMode, mcpConfigArg, model) {
|
|
205837
|
+
function buildClaudeSessionSpawnConfig(nativeBinary, permissionMode, mcpConfigArg, model, allowedTools) {
|
|
205679
205838
|
const permissionFlag = permissionMode === "plan" ? "--permission-mode=plan" : "--dangerously-skip-permissions";
|
|
205680
205839
|
const args = [
|
|
205681
205840
|
...STREAM_JSON_ARGS,
|
|
@@ -205696,6 +205855,9 @@ function buildClaudeSessionSpawnConfig(nativeBinary, permissionMode, mcpConfigAr
|
|
|
205696
205855
|
if (mcpConfigArg) {
|
|
205697
205856
|
args.push("--mcp-config", mcpConfigArg);
|
|
205698
205857
|
}
|
|
205858
|
+
if (allowedTools?.length) {
|
|
205859
|
+
args.push("--allowedTools", allowedTools.join(","));
|
|
205860
|
+
}
|
|
205699
205861
|
return withNpxFallback(nativeBinary, args);
|
|
205700
205862
|
}
|
|
205701
205863
|
function buildClaudeStreamExecutorSpawn(nativeBinary) {
|
|
@@ -206881,132 +207043,6 @@ function sessionMilestoneForTurnEnd(opts) {
|
|
|
206881
207043
|
return void 0;
|
|
206882
207044
|
}
|
|
206883
207045
|
|
|
206884
|
-
// src/utils/cross-remote-token.ts
|
|
206885
|
-
import { createHmac, randomBytes, timingSafeEqual } from "crypto";
|
|
206886
|
-
var CROSS_REMOTE_SECRET_SETTING = "cross_remote_token_secret";
|
|
206887
|
-
var CROSS_REMOTE_TOKEN_TTL_MS = 864e5;
|
|
206888
|
-
var sign = (secret, body) => createHmac("sha256", secret).update(body).digest("base64url");
|
|
206889
|
-
function signCrossRemoteToken(secret, payload, nowMs, ttlMs = CROSS_REMOTE_TOKEN_TTL_MS) {
|
|
206890
|
-
const wire = {
|
|
206891
|
-
u: payload.userId,
|
|
206892
|
-
s: payload.sessionId,
|
|
206893
|
-
src: payload.sourceRemoteServerId,
|
|
206894
|
-
exp: nowMs + ttlMs
|
|
206895
|
-
};
|
|
206896
|
-
const body = Buffer.from(JSON.stringify(wire)).toString("base64url");
|
|
206897
|
-
return `${body}.${sign(secret, body)}`;
|
|
206898
|
-
}
|
|
206899
|
-
function verifyCrossRemoteToken(secret, token, nowMs) {
|
|
206900
|
-
const parts = token.split(".");
|
|
206901
|
-
if (parts.length !== 2) return null;
|
|
206902
|
-
const [body, providedSig] = parts;
|
|
206903
|
-
if (!body || !providedSig) return null;
|
|
206904
|
-
const expectedSig = sign(secret, body);
|
|
206905
|
-
const provided = Buffer.from(providedSig);
|
|
206906
|
-
const expected = Buffer.from(expectedSig);
|
|
206907
|
-
if (provided.length !== expected.length) return null;
|
|
206908
|
-
if (!timingSafeEqual(provided, expected)) return null;
|
|
206909
|
-
let wire;
|
|
206910
|
-
try {
|
|
206911
|
-
wire = JSON.parse(Buffer.from(body, "base64url").toString());
|
|
206912
|
-
} catch {
|
|
206913
|
-
return null;
|
|
206914
|
-
}
|
|
206915
|
-
if (typeof wire.u !== "string" || typeof wire.s !== "string" || typeof wire.exp !== "number") return null;
|
|
206916
|
-
if (wire.src !== null && typeof wire.src !== "string") return null;
|
|
206917
|
-
if (!wire.u || !wire.s) return null;
|
|
206918
|
-
if (nowMs >= wire.exp) return null;
|
|
206919
|
-
return { userId: wire.u, sessionId: wire.s, sourceRemoteServerId: wire.src };
|
|
206920
|
-
}
|
|
206921
|
-
async function getCrossRemoteSecret(storage) {
|
|
206922
|
-
return storage.settings.getOrCreate(
|
|
206923
|
-
CROSS_REMOTE_SECRET_SETTING,
|
|
206924
|
-
() => randomBytes(32).toString("hex")
|
|
206925
|
-
);
|
|
206926
|
-
}
|
|
206927
|
-
|
|
206928
|
-
// src/cross-remote-access.ts
|
|
206929
|
-
var CROSS_REMOTE_MCP_PATH = "/api/cross-remote-mcp";
|
|
206930
|
-
var TOOL_TIERS = {
|
|
206931
|
-
remote_read_file: "read",
|
|
206932
|
-
remote_list_dir: "read",
|
|
206933
|
-
remote_stat_path: "read",
|
|
206934
|
-
remote_process_list: "read",
|
|
206935
|
-
remote_bash: "exec"
|
|
206936
|
-
};
|
|
206937
|
-
var MAX_IN_FLIGHT_PER_SESSION = 4;
|
|
206938
|
-
var tierSatisfies = (granted, required2) => granted === "exec" || granted === "read" && required2 === "read";
|
|
206939
|
-
var isOnline = (deps, server) => deps.reverseConnectManager.isConnected(server.id);
|
|
206940
|
-
function isSessionUsable(deps, sessionId) {
|
|
206941
|
-
if (sessionId.startsWith("remote-")) return deps.remoteSessionMap.has(sessionId);
|
|
206942
|
-
return deps.agentSessionManager.getSessionProcessAlive(sessionId);
|
|
206943
|
-
}
|
|
206944
|
-
async function resolveTarget(deps, payload, targetRemoteId, requiredTier) {
|
|
206945
|
-
if (payload.sourceRemoteServerId && payload.sourceRemoteServerId === targetRemoteId) {
|
|
206946
|
-
return { ok: false, reason: "not_accessible" };
|
|
206947
|
-
}
|
|
206948
|
-
const server = await deps.storage.remoteServers.getById(targetRemoteId, payload.userId);
|
|
206949
|
-
if (!server) return { ok: false, reason: "not_accessible" };
|
|
206950
|
-
if (!tierSatisfies(server.cross_remote_access, requiredTier)) {
|
|
206951
|
-
return { ok: false, reason: "not_accessible" };
|
|
206952
|
-
}
|
|
206953
|
-
if (!isOnline(deps, server)) return { ok: false, reason: "offline" };
|
|
206954
|
-
return { ok: true, server };
|
|
206955
|
-
}
|
|
206956
|
-
async function listAccessibleRemotes(deps, payload) {
|
|
206957
|
-
const servers = await deps.storage.remoteServers.getAll(payload.userId);
|
|
206958
|
-
return servers.filter((s3) => s3.cross_remote_access !== "off").filter((s3) => s3.id !== payload.sourceRemoteServerId).map((s3) => ({ id: s3.id, name: s3.name, access: s3.cross_remote_access, online: isOnline(deps, s3) }));
|
|
206959
|
-
}
|
|
206960
|
-
var SessionConcurrencyGuard = class {
|
|
206961
|
-
constructor(maxInFlight = MAX_IN_FLIGHT_PER_SESSION) {
|
|
206962
|
-
this.maxInFlight = maxInFlight;
|
|
206963
|
-
}
|
|
206964
|
-
maxInFlight;
|
|
206965
|
-
inFlight = /* @__PURE__ */ new Map();
|
|
206966
|
-
acquire(sessionId) {
|
|
206967
|
-
const current = this.inFlight.get(sessionId) ?? 0;
|
|
206968
|
-
if (current >= this.maxInFlight) return false;
|
|
206969
|
-
this.inFlight.set(sessionId, current + 1);
|
|
206970
|
-
return true;
|
|
206971
|
-
}
|
|
206972
|
-
release(sessionId) {
|
|
206973
|
-
const current = this.inFlight.get(sessionId) ?? 0;
|
|
206974
|
-
if (current <= 1) this.inFlight.delete(sessionId);
|
|
206975
|
-
else this.inFlight.set(sessionId, current - 1);
|
|
206976
|
-
}
|
|
206977
|
-
};
|
|
206978
|
-
|
|
206979
|
-
// src/cross-remote-mcp-config.ts
|
|
206980
|
-
function buildMcpConfigArg(config2) {
|
|
206981
|
-
return JSON.stringify({
|
|
206982
|
-
mcpServers: {
|
|
206983
|
-
"cross-remote": {
|
|
206984
|
-
type: "http",
|
|
206985
|
-
url: config2.url,
|
|
206986
|
-
headers: { Authorization: `Bearer ${config2.token}` }
|
|
206987
|
-
}
|
|
206988
|
-
}
|
|
206989
|
-
});
|
|
206990
|
-
}
|
|
206991
|
-
async function mintCrossRemoteMcpConfig(deps, args) {
|
|
206992
|
-
const baseUrl = process.env.VIBEDECKX_PUBLIC_URL?.trim();
|
|
206993
|
-
if (!baseUrl) return void 0;
|
|
206994
|
-
const { userId } = args;
|
|
206995
|
-
if (!userId) return void 0;
|
|
206996
|
-
const servers = await deps.storage.remoteServers.getAll(userId);
|
|
206997
|
-
const hasTarget = servers.some(
|
|
206998
|
-
(s3) => s3.cross_remote_access !== "off" && s3.id !== args.sourceRemoteServerId
|
|
206999
|
-
);
|
|
207000
|
-
if (!hasTarget) return void 0;
|
|
207001
|
-
const secret = await getCrossRemoteSecret(deps.storage);
|
|
207002
|
-
const token = signCrossRemoteToken(
|
|
207003
|
-
secret,
|
|
207004
|
-
{ userId, sessionId: args.sessionId, sourceRemoteServerId: args.sourceRemoteServerId },
|
|
207005
|
-
Date.now()
|
|
207006
|
-
);
|
|
207007
|
-
return { url: `${baseUrl.replace(/\/+$/, "")}${CROSS_REMOTE_MCP_PATH}`, token };
|
|
207008
|
-
}
|
|
207009
|
-
|
|
207010
207046
|
// src/providers/claude-code-provider.ts
|
|
207011
207047
|
var ClaudeCodeProvider = class {
|
|
207012
207048
|
getAgentType() {
|
|
@@ -207024,12 +207060,16 @@ var ClaudeCodeProvider = class {
|
|
|
207024
207060
|
isAvailable() {
|
|
207025
207061
|
return true;
|
|
207026
207062
|
}
|
|
207027
|
-
buildSpawnConfig(_cwd, permissionMode, crossRemoteMcp, model) {
|
|
207063
|
+
buildSpawnConfig(_cwd, permissionMode, crossRemoteMcp, model, sessionToolsMcp) {
|
|
207064
|
+
const mcpServers = {};
|
|
207065
|
+
if (crossRemoteMcp) mcpServers["cross-remote"] = crossRemoteMcp;
|
|
207066
|
+
if (sessionToolsMcp) mcpServers[SESSION_TOOLS_MCP_SERVER_NAME] = sessionToolsMcp;
|
|
207028
207067
|
return buildClaudeSessionSpawnConfig(
|
|
207029
207068
|
this.detectBinary(),
|
|
207030
207069
|
permissionMode,
|
|
207031
|
-
|
|
207032
|
-
model
|
|
207070
|
+
Object.keys(mcpServers).length > 0 ? buildClaudeMcpConfigArg(mcpServers) : void 0,
|
|
207071
|
+
model,
|
|
207072
|
+
sessionToolsMcp ? [CANONICAL_PROPOSE_SCHEDULE_TOOL] : void 0
|
|
207033
207073
|
);
|
|
207034
207074
|
}
|
|
207035
207075
|
parseStdoutLine(line, _sessionId) {
|
|
@@ -207237,9 +207277,9 @@ var CodexProvider = class _CodexProvider {
|
|
|
207237
207277
|
isAvailable() {
|
|
207238
207278
|
return true;
|
|
207239
207279
|
}
|
|
207240
|
-
buildSpawnConfig(_cwd, permissionMode, crossRemoteMcp, model) {
|
|
207280
|
+
buildSpawnConfig(_cwd, permissionMode, crossRemoteMcp, model, sessionToolsMcp) {
|
|
207241
207281
|
this.lastPermissionMode = permissionMode;
|
|
207242
|
-
return buildCodexAppServerSpawnConfig(this.detectBinary(), crossRemoteMcp, model);
|
|
207282
|
+
return buildCodexAppServerSpawnConfig(this.detectBinary(), crossRemoteMcp, model, sessionToolsMcp);
|
|
207243
207283
|
}
|
|
207244
207284
|
// ============ Task 5.5: parseStdoutLine — JSON-RPC message routing ============
|
|
207245
207285
|
parseStdoutLine(line, sessionId) {
|
|
@@ -207400,7 +207440,7 @@ var CodexProvider = class _CodexProvider {
|
|
|
207400
207440
|
}
|
|
207401
207441
|
case "mcpToolCall": {
|
|
207402
207442
|
const id = item.id ?? this.generateId();
|
|
207403
|
-
const toolName = item.tool
|
|
207443
|
+
const toolName = item.tool ? canonicalizeSessionToolName(item.tool, item.server) : "MCP";
|
|
207404
207444
|
const output = item.error?.message ?? (item.result ? JSON.stringify(item.result) : "");
|
|
207405
207445
|
return [
|
|
207406
207446
|
{ type: "tool_use", tool: toolName, input: item.arguments, toolUseId: id },
|
|
@@ -229405,6 +229445,14 @@ var AgentSessionManager = class {
|
|
|
229405
229445
|
* Set to true from `vibedeckx connect` after `createServer`.
|
|
229406
229446
|
*/
|
|
229407
229447
|
suppressTitleGeneration = false;
|
|
229448
|
+
/**
|
|
229449
|
+
* Loopback base URL of this process's own HTTP server (e.g.
|
|
229450
|
+
* "http://127.0.0.1:5173"), set by server.start/startLocal once bound. Agent
|
|
229451
|
+
* processes are spawned by this same process, so this is how they reach the
|
|
229452
|
+
* session-scoped MCP tools. Null until the server listens, and under local
|
|
229453
|
+
* TLS termination — in both cases the tools are simply not offered.
|
|
229454
|
+
*/
|
|
229455
|
+
localApiOrigin = null;
|
|
229408
229456
|
capacityQueue = Promise.resolve();
|
|
229409
229457
|
/**
|
|
229410
229458
|
* Sessions whose retention delete has passed its re-check and is in flight.
|
|
@@ -229907,7 +229955,20 @@ var AgentSessionManager = class {
|
|
|
229907
229955
|
this.broadcastRaw(session.id, { finished: true });
|
|
229908
229956
|
return;
|
|
229909
229957
|
}
|
|
229910
|
-
const
|
|
229958
|
+
const sessionToolsMcp = await mintSessionToolsMcpConfig(
|
|
229959
|
+
{ storage: this.storage },
|
|
229960
|
+
{ sessionId: session.id, origin: this.localApiOrigin }
|
|
229961
|
+
).catch((err) => {
|
|
229962
|
+
console.error(`[AgentSession] Failed to mint session tools MCP config for ${session.id}:`, err);
|
|
229963
|
+
return void 0;
|
|
229964
|
+
});
|
|
229965
|
+
const config2 = provider.buildSpawnConfig(
|
|
229966
|
+
cwd,
|
|
229967
|
+
session.permissionMode,
|
|
229968
|
+
session.crossRemoteMcp,
|
|
229969
|
+
session.model,
|
|
229970
|
+
sessionToolsMcp
|
|
229971
|
+
);
|
|
229911
229972
|
if (config2.command !== "npx") {
|
|
229912
229973
|
const agentVersion = getBinaryVersion(config2.command);
|
|
229913
229974
|
console.log(`[AgentSession] ${provider.getDisplayName()} version: ${agentVersion ?? "unknown (--version probe failed)"}`);
|
|
@@ -231800,8 +231861,8 @@ var VirtualWsAdapter = class _VirtualWsAdapter extends EventEmitter {
|
|
|
231800
231861
|
/** Send data to the remote side via the provided callback. */
|
|
231801
231862
|
send(data) {
|
|
231802
231863
|
if (this.readyState !== _VirtualWsAdapter.OPEN) return;
|
|
231803
|
-
const
|
|
231804
|
-
this.sendFn(
|
|
231864
|
+
const str2 = typeof data === "string" ? data : data.toString("utf-8");
|
|
231865
|
+
this.sendFn(str2);
|
|
231805
231866
|
}
|
|
231806
231867
|
/** Close the virtual connection. */
|
|
231807
231868
|
close(code, reason) {
|
|
@@ -231902,6 +231963,121 @@ function runUpdatedFrameForSubscribers(evt) {
|
|
|
231902
231963
|
return JSON.stringify({ workflowRunUpdated: evt.run });
|
|
231903
231964
|
}
|
|
231904
231965
|
|
|
231966
|
+
// src/utils/cross-remote-token.ts
|
|
231967
|
+
import { createHmac as createHmac2, randomBytes as randomBytes2, timingSafeEqual as timingSafeEqual2 } from "crypto";
|
|
231968
|
+
var CROSS_REMOTE_SECRET_SETTING = "cross_remote_token_secret";
|
|
231969
|
+
var CROSS_REMOTE_TOKEN_TTL_MS = 864e5;
|
|
231970
|
+
var sign2 = (secret, body) => createHmac2("sha256", secret).update(body).digest("base64url");
|
|
231971
|
+
function signCrossRemoteToken(secret, payload, nowMs, ttlMs = CROSS_REMOTE_TOKEN_TTL_MS) {
|
|
231972
|
+
const wire = {
|
|
231973
|
+
u: payload.userId,
|
|
231974
|
+
s: payload.sessionId,
|
|
231975
|
+
src: payload.sourceRemoteServerId,
|
|
231976
|
+
exp: nowMs + ttlMs
|
|
231977
|
+
};
|
|
231978
|
+
const body = Buffer.from(JSON.stringify(wire)).toString("base64url");
|
|
231979
|
+
return `${body}.${sign2(secret, body)}`;
|
|
231980
|
+
}
|
|
231981
|
+
function verifyCrossRemoteToken(secret, token, nowMs) {
|
|
231982
|
+
const parts = token.split(".");
|
|
231983
|
+
if (parts.length !== 2) return null;
|
|
231984
|
+
const [body, providedSig] = parts;
|
|
231985
|
+
if (!body || !providedSig) return null;
|
|
231986
|
+
const expectedSig = sign2(secret, body);
|
|
231987
|
+
const provided = Buffer.from(providedSig);
|
|
231988
|
+
const expected = Buffer.from(expectedSig);
|
|
231989
|
+
if (provided.length !== expected.length) return null;
|
|
231990
|
+
if (!timingSafeEqual2(provided, expected)) return null;
|
|
231991
|
+
let wire;
|
|
231992
|
+
try {
|
|
231993
|
+
wire = JSON.parse(Buffer.from(body, "base64url").toString());
|
|
231994
|
+
} catch {
|
|
231995
|
+
return null;
|
|
231996
|
+
}
|
|
231997
|
+
if (typeof wire.u !== "string" || typeof wire.s !== "string" || typeof wire.exp !== "number") return null;
|
|
231998
|
+
if (wire.src !== null && typeof wire.src !== "string") return null;
|
|
231999
|
+
if (!wire.u || !wire.s) return null;
|
|
232000
|
+
if (nowMs >= wire.exp) return null;
|
|
232001
|
+
return { userId: wire.u, sessionId: wire.s, sourceRemoteServerId: wire.src };
|
|
232002
|
+
}
|
|
232003
|
+
async function getCrossRemoteSecret(storage) {
|
|
232004
|
+
return storage.settings.getOrCreate(
|
|
232005
|
+
CROSS_REMOTE_SECRET_SETTING,
|
|
232006
|
+
() => randomBytes2(32).toString("hex")
|
|
232007
|
+
);
|
|
232008
|
+
}
|
|
232009
|
+
|
|
232010
|
+
// src/cross-remote-access.ts
|
|
232011
|
+
var CROSS_REMOTE_MCP_PATH = "/api/cross-remote-mcp";
|
|
232012
|
+
var TOOL_TIERS = {
|
|
232013
|
+
remote_read_file: "read",
|
|
232014
|
+
remote_list_dir: "read",
|
|
232015
|
+
remote_stat_path: "read",
|
|
232016
|
+
remote_process_list: "read",
|
|
232017
|
+
remote_bash: "exec"
|
|
232018
|
+
};
|
|
232019
|
+
var MAX_IN_FLIGHT_PER_SESSION = 4;
|
|
232020
|
+
var tierSatisfies = (granted, required2) => granted === "exec" || granted === "read" && required2 === "read";
|
|
232021
|
+
var isOnline = (deps, server) => deps.reverseConnectManager.isConnected(server.id);
|
|
232022
|
+
function isSessionUsable(deps, sessionId) {
|
|
232023
|
+
if (sessionId.startsWith("remote-")) return deps.remoteSessionMap.has(sessionId);
|
|
232024
|
+
return deps.agentSessionManager.getSessionProcessAlive(sessionId);
|
|
232025
|
+
}
|
|
232026
|
+
async function resolveTarget(deps, payload, targetRemoteId, requiredTier) {
|
|
232027
|
+
if (payload.sourceRemoteServerId && payload.sourceRemoteServerId === targetRemoteId) {
|
|
232028
|
+
return { ok: false, reason: "not_accessible" };
|
|
232029
|
+
}
|
|
232030
|
+
const server = await deps.storage.remoteServers.getById(targetRemoteId, payload.userId);
|
|
232031
|
+
if (!server) return { ok: false, reason: "not_accessible" };
|
|
232032
|
+
if (!tierSatisfies(server.cross_remote_access, requiredTier)) {
|
|
232033
|
+
return { ok: false, reason: "not_accessible" };
|
|
232034
|
+
}
|
|
232035
|
+
if (!isOnline(deps, server)) return { ok: false, reason: "offline" };
|
|
232036
|
+
return { ok: true, server };
|
|
232037
|
+
}
|
|
232038
|
+
async function listAccessibleRemotes(deps, payload) {
|
|
232039
|
+
const servers = await deps.storage.remoteServers.getAll(payload.userId);
|
|
232040
|
+
return servers.filter((s3) => s3.cross_remote_access !== "off").filter((s3) => s3.id !== payload.sourceRemoteServerId).map((s3) => ({ id: s3.id, name: s3.name, access: s3.cross_remote_access, online: isOnline(deps, s3) }));
|
|
232041
|
+
}
|
|
232042
|
+
var SessionConcurrencyGuard = class {
|
|
232043
|
+
constructor(maxInFlight = MAX_IN_FLIGHT_PER_SESSION) {
|
|
232044
|
+
this.maxInFlight = maxInFlight;
|
|
232045
|
+
}
|
|
232046
|
+
maxInFlight;
|
|
232047
|
+
inFlight = /* @__PURE__ */ new Map();
|
|
232048
|
+
acquire(sessionId) {
|
|
232049
|
+
const current = this.inFlight.get(sessionId) ?? 0;
|
|
232050
|
+
if (current >= this.maxInFlight) return false;
|
|
232051
|
+
this.inFlight.set(sessionId, current + 1);
|
|
232052
|
+
return true;
|
|
232053
|
+
}
|
|
232054
|
+
release(sessionId) {
|
|
232055
|
+
const current = this.inFlight.get(sessionId) ?? 0;
|
|
232056
|
+
if (current <= 1) this.inFlight.delete(sessionId);
|
|
232057
|
+
else this.inFlight.set(sessionId, current - 1);
|
|
232058
|
+
}
|
|
232059
|
+
};
|
|
232060
|
+
|
|
232061
|
+
// src/cross-remote-mcp-config.ts
|
|
232062
|
+
async function mintCrossRemoteMcpConfig(deps, args) {
|
|
232063
|
+
const baseUrl = process.env.VIBEDECKX_PUBLIC_URL?.trim();
|
|
232064
|
+
if (!baseUrl) return void 0;
|
|
232065
|
+
const { userId } = args;
|
|
232066
|
+
if (!userId) return void 0;
|
|
232067
|
+
const servers = await deps.storage.remoteServers.getAll(userId);
|
|
232068
|
+
const hasTarget = servers.some(
|
|
232069
|
+
(s3) => s3.cross_remote_access !== "off" && s3.id !== args.sourceRemoteServerId
|
|
232070
|
+
);
|
|
232071
|
+
if (!hasTarget) return void 0;
|
|
232072
|
+
const secret = await getCrossRemoteSecret(deps.storage);
|
|
232073
|
+
const token = signCrossRemoteToken(
|
|
232074
|
+
secret,
|
|
232075
|
+
{ userId, sessionId: args.sessionId, sourceRemoteServerId: args.sourceRemoteServerId },
|
|
232076
|
+
Date.now()
|
|
232077
|
+
);
|
|
232078
|
+
return { url: `${baseUrl.replace(/\/+$/, "")}${CROSS_REMOTE_MCP_PATH}`, token };
|
|
232079
|
+
}
|
|
232080
|
+
|
|
231905
232081
|
// src/routes/notification-outbox-routes.ts
|
|
231906
232082
|
var import_fastify_plugin = __toESM(require_plugin2(), 1);
|
|
231907
232083
|
var MAX_SESSIONS_PER_REQUEST = 100;
|
|
@@ -238978,6 +239154,7 @@ ${opts.reviewFocus}` : null,
|
|
|
238978
239154
|
"- Verify whether your previous feedback was addressed correctly.",
|
|
238979
239155
|
"- Treat the changed areas as new code: look for bugs the fix itself may have introduced, not only whether your old items were closed.",
|
|
238980
239156
|
"- Check for regressions and remaining correctness or test gaps.",
|
|
239157
|
+
"- Do not expand scope: no new enhancement asks, refactors, or abstractions for hypothetical cases. A new blocking finding must be a real defect the fix introduced or exposed \u2014 anything else is at most a non-blocking note.",
|
|
238981
239158
|
"- Do NOT modify files \u2014 remain in read-only review mode.",
|
|
238982
239159
|
reviewTargetPromptLine(opts.target),
|
|
238983
239160
|
...VERDICT_INSTRUCTIONS
|
|
@@ -251299,7 +251476,7 @@ var websocket_routes_default = (0, import_fastify_plugin24.default)(routes23, {
|
|
|
251299
251476
|
|
|
251300
251477
|
// src/routes/reverse-connect-routes.ts
|
|
251301
251478
|
var import_fastify_plugin25 = __toESM(require_plugin2(), 1);
|
|
251302
|
-
import { randomBytes as
|
|
251479
|
+
import { randomBytes as randomBytes3, createHash as createHash8, verify as cryptoVerify } from "crypto";
|
|
251303
251480
|
|
|
251304
251481
|
// src/utils/rate-limited-warn.ts
|
|
251305
251482
|
function createRateLimitedWarn(windowMs, maxKeys) {
|
|
@@ -251382,7 +251559,7 @@ var routes24 = async (fastify2) => {
|
|
|
251382
251559
|
const ws = socket;
|
|
251383
251560
|
const serverId = server.id;
|
|
251384
251561
|
const ownerId = await fastify2.storage.remoteServers.getOwnerId(serverId) ?? "";
|
|
251385
|
-
const nonce =
|
|
251562
|
+
const nonce = randomBytes3(32);
|
|
251386
251563
|
let settled = false;
|
|
251387
251564
|
let stashedVersion;
|
|
251388
251565
|
const recordWorkerVersion = async (reported) => {
|
|
@@ -252899,12 +253076,89 @@ var routes30 = async (fastify2) => {
|
|
|
252899
253076
|
};
|
|
252900
253077
|
var cross_remote_mcp_routes_default = (0, import_fastify_plugin31.default)(routes30, { name: "cross-remote-mcp-routes" });
|
|
252901
253078
|
|
|
252902
|
-
// src/routes/
|
|
253079
|
+
// src/routes/session-mcp-routes.ts
|
|
252903
253080
|
var import_fastify_plugin32 = __toESM(require_plugin2(), 1);
|
|
253081
|
+
var PROTOCOL_VERSION2 = "2024-11-05";
|
|
253082
|
+
var TOOLS2 = [
|
|
253083
|
+
{
|
|
253084
|
+
name: PROPOSE_SCHEDULE_TOOL,
|
|
253085
|
+
description: PROPOSE_SCHEDULE_DESCRIPTION,
|
|
253086
|
+
inputSchema: PROPOSE_SCHEDULE_INPUT_SCHEMA
|
|
253087
|
+
}
|
|
253088
|
+
];
|
|
253089
|
+
var textResult2 = (text2, isError = false) => ({
|
|
253090
|
+
content: [{ type: "text", text: text2 }],
|
|
253091
|
+
...isError ? { isError: true } : {}
|
|
253092
|
+
});
|
|
253093
|
+
var routes31 = async (fastify2) => {
|
|
253094
|
+
let cachedSecret;
|
|
253095
|
+
const getSecret = () => {
|
|
253096
|
+
if (!cachedSecret) cachedSecret = getSessionToolsSecret(fastify2.storage);
|
|
253097
|
+
return cachedSecret;
|
|
253098
|
+
};
|
|
253099
|
+
const authenticate = async (request) => {
|
|
253100
|
+
const header = request.headers.authorization;
|
|
253101
|
+
if (!header?.startsWith("Bearer ")) return null;
|
|
253102
|
+
const secret = await getSecret();
|
|
253103
|
+
const payload = verifySessionToolsToken(secret, header.slice("Bearer ".length), Date.now());
|
|
253104
|
+
if (!payload) return null;
|
|
253105
|
+
if (!fastify2.agentSessionManager.getSessionProcessAlive(payload.sessionId)) return null;
|
|
253106
|
+
return payload;
|
|
253107
|
+
};
|
|
253108
|
+
const callTool = (toolName, args) => {
|
|
253109
|
+
if (toolName !== PROPOSE_SCHEDULE_TOOL) return textResult2(`Unknown tool: ${toolName}`, true);
|
|
253110
|
+
const parsed = parseProposeScheduleArgs(args);
|
|
253111
|
+
if (!parsed.ok) return textResult2(parsed.error, true);
|
|
253112
|
+
const cronError = validateCron(parsed.value.cron_expr, parsed.value.timezone);
|
|
253113
|
+
if (cronError) return textResult2(`Invalid cron expression: ${cronError}`, true);
|
|
253114
|
+
return textResult2(PROPOSE_SCHEDULE_ACK);
|
|
253115
|
+
};
|
|
253116
|
+
fastify2.post(SESSION_TOOLS_MCP_PATH, async (request, reply) => {
|
|
253117
|
+
const payload = await authenticate(request);
|
|
253118
|
+
if (!payload) return reply.code(401).send({ error: "Unauthorized" });
|
|
253119
|
+
const rpc = request.body;
|
|
253120
|
+
if (!rpc || rpc.jsonrpc !== "2.0" || typeof rpc.method !== "string") {
|
|
253121
|
+
return reply.code(400).send({ error: "Invalid JSON-RPC request" });
|
|
253122
|
+
}
|
|
253123
|
+
if (rpc.id === void 0) return reply.code(202).send();
|
|
253124
|
+
const respond = (result) => reply.send({ jsonrpc: "2.0", id: rpc.id, result });
|
|
253125
|
+
switch (rpc.method) {
|
|
253126
|
+
case "initialize":
|
|
253127
|
+
return respond({
|
|
253128
|
+
protocolVersion: PROTOCOL_VERSION2,
|
|
253129
|
+
capabilities: { tools: {} },
|
|
253130
|
+
serverInfo: { name: "vibedeckx-session-tools", version: "1.0.0" }
|
|
253131
|
+
});
|
|
253132
|
+
case "ping":
|
|
253133
|
+
return respond({});
|
|
253134
|
+
case "tools/list":
|
|
253135
|
+
return respond({ tools: TOOLS2 });
|
|
253136
|
+
case "tools/call": {
|
|
253137
|
+
const name25 = rpc.params?.name;
|
|
253138
|
+
if (typeof name25 !== "string") {
|
|
253139
|
+
return reply.send({ jsonrpc: "2.0", id: rpc.id, error: { code: -32602, message: "Missing tool name" } });
|
|
253140
|
+
}
|
|
253141
|
+
return respond(callTool(name25, rpc.params?.arguments ?? {}));
|
|
253142
|
+
}
|
|
253143
|
+
default:
|
|
253144
|
+
return reply.send({
|
|
253145
|
+
jsonrpc: "2.0",
|
|
253146
|
+
id: rpc.id,
|
|
253147
|
+
error: { code: -32601, message: `Method not found: ${rpc.method}` }
|
|
253148
|
+
});
|
|
253149
|
+
}
|
|
253150
|
+
});
|
|
253151
|
+
};
|
|
253152
|
+
var session_mcp_routes_default = (0, import_fastify_plugin32.default)(routes31, { name: "session-mcp-routes" });
|
|
253153
|
+
|
|
253154
|
+
// src/routes/schedule-routes.ts
|
|
253155
|
+
var import_fastify_plugin33 = __toESM(require_plugin2(), 1);
|
|
252904
253156
|
import { randomUUID as randomUUID21 } from "crypto";
|
|
252905
253157
|
import path17 from "path";
|
|
252906
253158
|
var RUN_TYPES = ["command", "prompt"];
|
|
252907
253159
|
var CWD_MODES = ["branch", "directory"];
|
|
253160
|
+
var SOURCE_ID_MAX = 200;
|
|
253161
|
+
var validSourceId = (value) => typeof value === "string" && value.length > 0 && value.length <= SOURCE_ID_MAX && value.trim() === value;
|
|
252908
253162
|
function validRequestId(value) {
|
|
252909
253163
|
return typeof value === "string" && value.length > 0 && value.length <= 200 && value.trim() === value;
|
|
252910
253164
|
}
|
|
@@ -252919,7 +253173,7 @@ function validateResolved(b2) {
|
|
|
252919
253173
|
if (cronError) return `Invalid cron expression: ${cronError}`;
|
|
252920
253174
|
return null;
|
|
252921
253175
|
}
|
|
252922
|
-
var
|
|
253176
|
+
var routes32 = async (fastify2) => {
|
|
252923
253177
|
const sendTerminalManualOutcome = (reply, request, replay) => {
|
|
252924
253178
|
if (!request.terminalStatus || request.terminalResponseStatus === null) return null;
|
|
252925
253179
|
const common = { runId: request.runId, status: request.terminalStatus, durable: true, replay };
|
|
@@ -252989,8 +253243,22 @@ var routes31 = async (fastify2) => {
|
|
|
252989
253243
|
if (target !== "local" && !await fastify2.storage.projectRemotes.getByProjectAndServer(req.params.projectId, target)) {
|
|
252990
253244
|
return reply.code(400).send({ error: "Unknown remote target" });
|
|
252991
253245
|
}
|
|
253246
|
+
let source = null;
|
|
253247
|
+
if (b2.source) {
|
|
253248
|
+
if (!validSourceId(b2.source.session_id) || !validSourceId(b2.source.tool_use_id)) {
|
|
253249
|
+
return reply.code(400).send({ error: "Invalid source" });
|
|
253250
|
+
}
|
|
253251
|
+
const sourceSession = await fastify2.storage.agentSessions.getById(b2.source.session_id);
|
|
253252
|
+
const owned = sourceSession ? sourceSession.project_id === req.params.projectId : !!await fastify2.storage.remoteSessionMappings.getAuthorizedByLocal(
|
|
253253
|
+
b2.source.session_id,
|
|
253254
|
+
req.params.projectId
|
|
253255
|
+
);
|
|
253256
|
+
if (!owned) return reply.code(400).send({ error: "Invalid source" });
|
|
253257
|
+
source = { session_id: b2.source.session_id, tool_use_id: b2.source.tool_use_id };
|
|
253258
|
+
}
|
|
253259
|
+
const newId = randomUUID21();
|
|
252992
253260
|
const schedule = await fastify2.storage.scheduledTasks.create({
|
|
252993
|
-
id:
|
|
253261
|
+
id: newId,
|
|
252994
253262
|
project_id: req.params.projectId,
|
|
252995
253263
|
name: b2.name.trim(),
|
|
252996
253264
|
cron_expr: resolved.cron_expr,
|
|
@@ -253003,10 +253271,11 @@ var routes31 = async (fastify2) => {
|
|
|
253003
253271
|
directory: resolved.directory,
|
|
253004
253272
|
timeout_seconds: resolved.timeout_seconds,
|
|
253005
253273
|
enabled: b2.enabled ?? true,
|
|
253006
|
-
target
|
|
253274
|
+
target,
|
|
253275
|
+
source
|
|
253007
253276
|
});
|
|
253008
253277
|
await fastify2.scheduler.reschedule(schedule.id);
|
|
253009
|
-
return reply.code(201).send({ schedule });
|
|
253278
|
+
return reply.code(schedule.id === newId ? 201 : 200).send({ schedule });
|
|
253010
253279
|
}
|
|
253011
253280
|
);
|
|
253012
253281
|
fastify2.put(
|
|
@@ -253150,7 +253419,7 @@ var routes31 = async (fastify2) => {
|
|
|
253150
253419
|
}
|
|
253151
253420
|
);
|
|
253152
253421
|
};
|
|
253153
|
-
var schedule_routes_default = (0,
|
|
253422
|
+
var schedule_routes_default = (0, import_fastify_plugin33.default)(routes32, { name: "schedule-routes" });
|
|
253154
253423
|
|
|
253155
253424
|
// src/search/catalog.ts
|
|
253156
253425
|
var parseDbTimestamp5 = (ts) => {
|
|
@@ -253327,10 +253596,10 @@ var searchRoutes = async (fastify2) => {
|
|
|
253327
253596
|
var search_routes_default = searchRoutes;
|
|
253328
253597
|
|
|
253329
253598
|
// src/routes/notification-routes.ts
|
|
253330
|
-
var
|
|
253599
|
+
var import_fastify_plugin34 = __toESM(require_plugin2(), 1);
|
|
253331
253600
|
var MAX_LIMIT = 500;
|
|
253332
253601
|
var DEFAULT_LIMIT = 100;
|
|
253333
|
-
var
|
|
253602
|
+
var routes33 = async (fastify2) => {
|
|
253334
253603
|
fastify2.get(
|
|
253335
253604
|
"/api/notifications",
|
|
253336
253605
|
async (req, reply) => {
|
|
@@ -253362,7 +253631,7 @@ var routes32 = async (fastify2) => {
|
|
|
253362
253631
|
return reply.code(200).send({ ok: true });
|
|
253363
253632
|
});
|
|
253364
253633
|
};
|
|
253365
|
-
var notification_routes_default = (0,
|
|
253634
|
+
var notification_routes_default = (0, import_fastify_plugin34.default)(routes33, { name: "notification-routes" });
|
|
253366
253635
|
|
|
253367
253636
|
// ../../node_modules/.pnpm/@clerk+fastify@3.1.2_fastify@5.7.2_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@clerk/fastify/dist/chunk-RY4T2JMQ.mjs
|
|
253368
253637
|
import { Readable as Readable2 } from "stream";
|
|
@@ -253414,7 +253683,7 @@ var requestToProxyRequest = (req) => {
|
|
|
253414
253683
|
|
|
253415
253684
|
// ../../node_modules/.pnpm/@clerk+fastify@3.1.2_fastify@5.7.2_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@clerk/fastify/dist/index.mjs
|
|
253416
253685
|
init_dist();
|
|
253417
|
-
var
|
|
253686
|
+
var import_fastify_plugin35 = __toESM(require_plugin2(), 1);
|
|
253418
253687
|
|
|
253419
253688
|
// ../../node_modules/.pnpm/@clerk+backend@3.2.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@clerk/backend/dist/internal.mjs
|
|
253420
253689
|
init_chunk_JW73PKED();
|
|
@@ -253454,11 +253723,11 @@ function fapiUrlFromPublishableKey(publishableKey) {
|
|
|
253454
253723
|
}
|
|
253455
253724
|
return PROD_FAPI_URL;
|
|
253456
253725
|
}
|
|
253457
|
-
function stripTrailingSlashes(
|
|
253458
|
-
while (
|
|
253459
|
-
|
|
253726
|
+
function stripTrailingSlashes(str2) {
|
|
253727
|
+
while (str2.endsWith("/")) {
|
|
253728
|
+
str2 = str2.slice(0, -1);
|
|
253460
253729
|
}
|
|
253461
|
-
return
|
|
253730
|
+
return str2;
|
|
253462
253731
|
}
|
|
253463
253732
|
function createErrorResponse(code, message, status) {
|
|
253464
253733
|
const error48 = { code, message };
|
|
@@ -253702,7 +253971,7 @@ var plugin = (instance, opts, done) => {
|
|
|
253702
253971
|
instance.addHook(hookName, withClerkMiddleware(opts));
|
|
253703
253972
|
done();
|
|
253704
253973
|
};
|
|
253705
|
-
var clerkPlugin = (0,
|
|
253974
|
+
var clerkPlugin = (0, import_fastify_plugin35.default)(plugin, {
|
|
253706
253975
|
name: "@clerk/fastify",
|
|
253707
253976
|
fastify: "5.x"
|
|
253708
253977
|
});
|
|
@@ -253931,6 +254200,7 @@ var createServer = async (opts) => {
|
|
|
253931
254200
|
server.register(browser_proxy_routes_default);
|
|
253932
254201
|
server.register(cross_remote_target_routes_default);
|
|
253933
254202
|
server.register(cross_remote_mcp_routes_default);
|
|
254203
|
+
server.register(session_mcp_routes_default);
|
|
253934
254204
|
if (UI_ROOT) {
|
|
253935
254205
|
server.register(import_static.fastifyStatic, {
|
|
253936
254206
|
root: UI_ROOT,
|
|
@@ -253978,6 +254248,9 @@ var createServer = async (opts) => {
|
|
|
253978
254248
|
start: async (port, host = "127.0.0.1") => {
|
|
253979
254249
|
await server.listen({ port, host });
|
|
253980
254250
|
const protocol = tls ? "https" : "http";
|
|
254251
|
+
const boundAddr = server.server.address();
|
|
254252
|
+
const boundPort = typeof boundAddr === "object" && boundAddr ? boundAddr.port : port;
|
|
254253
|
+
server.agentSessionManager.localApiOrigin = tls ? null : `http://127.0.0.1:${boundPort}`;
|
|
253981
254254
|
const displayHost = host === "0.0.0.0" || host === "::" ? "localhost" : host;
|
|
253982
254255
|
return `${protocol}://${displayHost}:${port}`;
|
|
253983
254256
|
},
|
|
@@ -253985,6 +254258,7 @@ var createServer = async (opts) => {
|
|
|
253985
254258
|
await server.listen({ port, host: "127.0.0.1" });
|
|
253986
254259
|
const addr = server.server.address();
|
|
253987
254260
|
const actualPort = typeof addr === "object" && addr ? addr.port : port;
|
|
254261
|
+
server.agentSessionManager.localApiOrigin = `http://127.0.0.1:${actualPort}`;
|
|
253988
254262
|
return { url: `http://127.0.0.1:${actualPort}`, port: actualPort, instance: server };
|
|
253989
254263
|
},
|
|
253990
254264
|
close: async () => {
|
|
@@ -254145,8 +254419,8 @@ var WORKER_CAPABILITIES = {
|
|
|
254145
254419
|
"http:POST /api/path/agent-sessions": { since: "0.2.0", summary: "\u521B\u5EFA\u4F1A\u8BDD" },
|
|
254146
254420
|
"http:POST /api/path/agent-sessions/new": { since: "0.2.0", summary: "\u521B\u5EFA\u4F1A\u8BDD(\u6307\u5B9A ID)" },
|
|
254147
254421
|
"http:GET /api/agent-sessions/:param": { since: "0.2.0", summary: "\u8BFB\u4F1A\u8BDD\u8BE6\u60C5/\u5BF9\u8BDD" },
|
|
254148
|
-
"http:GET /api/agent-sessions/:param/history-window": { since: "0.
|
|
254149
|
-
"http:GET /api/agent-sessions/:param/history-head": { since: "0.
|
|
254422
|
+
"http:GET /api/agent-sessions/:param/history-window": { since: "0.3.18", summary: "\u6309 turn \u8FB9\u754C\u8BFB\u53D6\u4F1A\u8BDD\u7A97\u53E3" },
|
|
254423
|
+
"http:GET /api/agent-sessions/:param/history-head": { since: "0.3.18", summary: "\u8BFB\u53D6\u4F1A\u8BDD\u5386\u53F2\u6E38\u6807" },
|
|
254150
254424
|
// Additive: a worker below 0.3.6 404s it and the hub's intent-brief
|
|
254151
254425
|
// distillation degrades to the deterministic excerpt (tier 2).
|
|
254152
254426
|
"http:GET /api/agent-sessions/:param/brief-source": { since: "0.3.6", summary: "\u8BFB\u4F1A\u8BDD\u5BF9\u8BDD(\u4EC5\u84B8\u998F\u7528\u6587\u672C)" },
|
|
@@ -256312,7 +256586,7 @@ var connectRoutes = buildRouteMap({
|
|
|
256312
256586
|
defaultCommand: "run",
|
|
256313
256587
|
docs: { brief: "Connect to a Vibedeckx server as an inbound node" }
|
|
256314
256588
|
});
|
|
256315
|
-
var
|
|
256589
|
+
var routes34 = buildRouteMap({
|
|
256316
256590
|
routes: {
|
|
256317
256591
|
start: startCommand,
|
|
256318
256592
|
connect: connectRoutes
|
|
@@ -256322,7 +256596,7 @@ var routes33 = buildRouteMap({
|
|
|
256322
256596
|
brief: "Vibedeckx - AI-powered app generator"
|
|
256323
256597
|
}
|
|
256324
256598
|
});
|
|
256325
|
-
var program = buildApplication(
|
|
256599
|
+
var program = buildApplication(routes34, {
|
|
256326
256600
|
name: "vibedeckx",
|
|
256327
256601
|
versionInfo: {
|
|
256328
256602
|
currentVersion: readPackageVersion()
|