@vibedeckx/linux-x64 0.3.19 → 0.3.21

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.
Files changed (2) hide show
  1. package/dist/bin.js +1291 -886
  2. 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(str) {
532
- if (typeof str !== "string") {
533
- diag.error("Cannot create baggage metadata from unknown type: " + typeof str);
534
- str = "";
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 str;
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(str) {
10693
+ match(str2) {
10694
10694
  if (this._matchAll) {
10695
10695
  return true;
10696
10696
  }
10697
- return this._regexp.test(str);
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(str) {
10714
+ match(str2) {
10715
10715
  if (this._matchAll) {
10716
10716
  return true;
10717
10717
  }
10718
- if (str === this._pattern) {
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, fp35, fpr, fb, to, tM, tm, tp, tpr) => {
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(fp35)) {
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(str) {
13654
- str = String(str);
13655
- if (str.length > 100) {
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
- str
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((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
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((str) => str.trim()).join(" ");
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, str) {
15426
+ function semconvStabilityFromStr(namespace, str2) {
15427
15427
  let semconvStability = SemconvStability.OLD;
15428
- const entries = str?.split(",").map((v2) => v2.trim()).filter((s3) => s3 !== "");
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(str) {
15971
+ writeString(str2) {
15972
15972
  let isAscii = true;
15973
- const len = str.length;
15973
+ const len = str2.length;
15974
15974
  for (let i = 0; i < len; i++) {
15975
- if (str.charCodeAt(i) > 127) {
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++] = str.charCodeAt(i);
15984
+ this._buffer[this.pos++] = str2.charCodeAt(i);
15985
15985
  }
15986
15986
  } else {
15987
- const bytes = this._textEncoder.encode(str);
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(str) {
16145
- const len = str.length;
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 = str.charCodeAt(i);
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(str) {
16190
- const byteLen = utf8ByteLength(str);
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 sign2 = val < 0 ? 1 : 0;
16745
- if (sign2)
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((sign2 << 31 | 2139095040) >>> 0, buf, pos);
16758
+ writeUint((sign3 << 31 | 2139095040) >>> 0, buf, pos);
16759
16759
  else if (val < 11754943508222875e-54)
16760
- writeUint((sign2 << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
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((sign2 << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
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), sign2 = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
16770
- return exponent === 255 ? mantissa ? NaN : sign2 * Infinity : exponent === 0 ? sign2 * 1401298464324817e-60 * mantissa : sign2 * Math.pow(2, exponent - 150) * (mantissa + 8388608);
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 sign2 = val < 0 ? 1 : 0;
16829
- if (sign2)
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((sign2 << 31 | 2146435072) >>> 0, buf, pos + off1);
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((sign2 << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
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((sign2 << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
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 sign2 = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
16867
- return exponent === 2047 ? mantissa ? NaN : sign2 * Infinity : exponent === 0 ? sign2 * 5e-324 * mantissa : sign2 * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
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 str = "";
16941
+ var str2 = "";
16942
16942
  for (var i = start; i < end; ) {
16943
16943
  var t = buffer[i++];
16944
16944
  if (t <= 127) {
16945
- str += String.fromCharCode(t);
16945
+ str2 += String.fromCharCode(t);
16946
16946
  } else if (t >= 192 && t < 224) {
16947
16947
  var c2 = (t & 31) << 6 | buffer[i++] & 63;
16948
- str += c2 >= 128 ? String.fromCharCode(c2) : replacementChar;
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
- str += c3 >= 2048 ? String.fromCharCode(c3) : replacementChar;
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
- str += replacementChar;
16955
+ str2 += replacementChar;
16956
16956
  else {
16957
16957
  t2 -= 65536;
16958
- str += String.fromCharCode(55296 + (t2 >> 10));
16959
- str += String.fromCharCode(56320 + (t2 & 1023));
16958
+ str2 += String.fromCharCode(55296 + (t2 >> 10));
16959
+ str2 += String.fromCharCode(56320 + (t2 & 1023));
16960
16960
  }
16961
16961
  }
16962
16962
  }
16963
- return str;
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 sign2 = value < 0;
17043
- if (sign2)
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 (sign2) {
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(str) {
17206
- return str.charAt(0).toLowerCase() + str.substring(1);
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(str) {
24988
- if (str === void 0)
24987
+ function optionalHexToBinary(str2) {
24988
+ if (str2 === void 0)
24989
24989
  return void 0;
24990
- return (0, hex_to_binary_1.hexToBinary)(str);
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 sign2 = value < 0;
30871
- if (sign2)
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 (sign2) {
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(str) {
31044
- return str.charAt(0).toLowerCase() + str.substring(1);
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(str) {
33540
- return str.charAt(0).toUpperCase() + str.substring(1);
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(str) {
33544
- return str.substring(0, 1) + str.substring(1).replace(camelCaseRe, function($0, $1) {
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(str) {
34525
- return str.replace(unescapeRe, function($0, $1) {
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 str = readString();
34853
- target.push(str);
34852
+ var str2 = readString();
34853
+ target.push(str2);
34854
34854
  if (edition >= 2023) {
34855
- throw illegal(str, "id");
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 sign2 = 1;
34889
+ var sign3 = 1;
34890
34890
  if (token2.charAt(0) === "-") {
34891
- sign2 = -1;
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 sign2 * Infinity;
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 sign2 * parseInt(token2, 10);
34908
+ return sign3 * parseInt(token2, 10);
34909
34909
  if (base16Re.test(token2))
34910
- return sign2 * parseInt(token2, 16);
34910
+ return sign3 * parseInt(token2, 16);
34911
34911
  if (base8Re.test(token2))
34912
- return sign2 * parseInt(token2, 8);
34912
+ return sign3 * parseInt(token2, 8);
34913
34913
  if (numberRe.test(token2))
34914
- return sign2 * parseFloat(token2);
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(str) {
37764
- return str.substring(0, 1) + str.substring(1).replace(/([A-Z])(?=[a-z]|$)/g, function($0, $1) {
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(str, unsigned, radix) {
38649
- if (str.length === 0) throw Error("empty string");
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 (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
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 = str.indexOf("-")) > 0) throw Error("interior hyphen");
38661
+ if ((p2 = str2.indexOf("-")) > 0) throw Error("interior hyphen");
38662
38662
  else if (p2 === 0) {
38663
- return fromString(str.substring(1), unsigned, radix).neg();
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 < str.length; i += 8) {
38668
- var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
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(str) {
50197
- return str.replace(/\\/g, "\\\\").replace(/\n/g, "\\n");
50196
+ function escapeString(str2) {
50197
+ return str2.replace(/\\/g, "\\\\").replace(/\n/g, "\\n");
50198
50198
  }
50199
- function escapeAttributeValue(str = "") {
50200
- if (typeof str !== "string") {
50201
- str = JSON.stringify(str);
50199
+ function escapeAttributeValue(str2 = "") {
50200
+ if (typeof str2 !== "string") {
50201
+ str2 = JSON.stringify(str2);
50202
50202
  }
50203
- return escapeString(str).replace(/"/g, '\\"');
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 str = "";
50279
+ let str2 = "";
50280
50280
  this._additionalAttributes = this._filterResourceConstantLabels(resourceMetrics.resource.attributes, this._withResourceConstantLabels);
50281
50281
  for (const scopeMetrics of resourceMetrics.scopeMetrics) {
50282
- str += this._serializeScopeMetrics(scopeMetrics);
50282
+ str2 += this._serializeScopeMetrics(scopeMetrics);
50283
50283
  }
50284
- if (str === "") {
50285
- str += NO_REGISTERED_METRICS;
50284
+ if (str2 === "") {
50285
+ str2 += NO_REGISTERED_METRICS;
50286
50286
  }
50287
- return this._serializeResource(resourceMetrics.resource) + str;
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 str = "";
50302
+ let str2 = "";
50303
50303
  for (const metric of scopeMetrics.metrics) {
50304
- str += this._serializeMetricData(metric, scopeMetrics.scope) + "\n";
50304
+ str2 += this._serializeMetricData(metric, scopeMetrics.scope) + "\n";
50305
50305
  }
50306
- return str;
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 = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
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 = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
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 = (str) => /^(%|---|\.\.\.)/m.test(str);
54787
- function lineLengthOverLimit(str, lineWidth, indentLength) {
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 = str.length;
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 (str[i] === "\n") {
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 str = "";
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
- str += json3.slice(start, i) + "\\ ";
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
- str += json3.slice(start, i);
54825
+ str2 += json3.slice(start, i);
54826
54826
  const code = json3.substr(i + 2, 4);
54827
54827
  switch (code) {
54828
54828
  case "0000":
54829
- str += "\\0";
54829
+ str2 += "\\0";
54830
54830
  break;
54831
54831
  case "0007":
54832
- str += "\\a";
54832
+ str2 += "\\a";
54833
54833
  break;
54834
54834
  case "000b":
54835
- str += "\\v";
54835
+ str2 += "\\v";
54836
54836
  break;
54837
54837
  case "001b":
54838
- str += "\\e";
54838
+ str2 += "\\e";
54839
54839
  break;
54840
54840
  case "0085":
54841
- str += "\\N";
54841
+ str2 += "\\N";
54842
54842
  break;
54843
54843
  case "00a0":
54844
- str += "\\_";
54844
+ str2 += "\\_";
54845
54845
  break;
54846
54846
  case "2028":
54847
- str += "\\L";
54847
+ str2 += "\\L";
54848
54848
  break;
54849
54849
  case "2029":
54850
- str += "\\P";
54850
+ str2 += "\\P";
54851
54851
  break;
54852
54852
  default:
54853
54853
  if (code.substr(0, 2) === "00")
54854
- str += "\\x" + code.substr(2);
54854
+ str2 += "\\x" + code.substr(2);
54855
54855
  else
54856
- str += json3.substr(i, 6);
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
- str += json3.slice(start, i) + "\n\n";
54866
+ str2 += json3.slice(start, i) + "\n\n";
54867
54867
  while (json3[i + 2] === "\\" && json3[i + 3] === "n" && json3[i + 4] !== '"') {
54868
- str += "\n";
54868
+ str2 += "\n";
54869
54869
  i += 2;
54870
54870
  }
54871
- str += indent;
54871
+ str2 += indent;
54872
54872
  if (json3[i + 2] === " ")
54873
- str += "\\";
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
- str = start ? str + json3.slice(start) : json3;
54883
- return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx, false));
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 str = value.replace(/\n+/g, `$&
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(str);
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 ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
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 str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
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 str;
55174
- return identity.isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}
55175
- ${ctx.indent}${str}`;
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 str = stringify2.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
55211
- if (!explicitKey && !ctx.inFlow && str.length > 1024) {
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 str === "" ? "?" : explicitKey ? `? ${str}` : str;
55220
+ return str2 === "" ? "?" : explicitKey ? `? ${str2}` : str2;
55221
55221
  }
55222
55222
  } else if (allNullValues && !simpleKeys || value == null && explicitKey) {
55223
- str = `? ${str}`;
55223
+ str2 = `? ${str2}`;
55224
55224
  if (keyComment && !keyCommentDone) {
55225
- str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
55225
+ str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment));
55226
55226
  } else if (chompKeep && onChompKeep)
55227
55227
  onChompKeep();
55228
- return str;
55228
+ return str2;
55229
55229
  }
55230
55230
  if (keyCommentDone)
55231
55231
  keyComment = null;
55232
55232
  if (explicitKey) {
55233
55233
  if (keyComment)
55234
- str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
55235
- str = `? ${str}
55234
+ str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment));
55235
+ str2 = `? ${str2}
55236
55236
  ${indent}:`;
55237
55237
  } else {
55238
- str = `${str}:`;
55238
+ str2 = `${str2}:`;
55239
55239
  if (keyComment)
55240
- str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
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 = str.length + 1;
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
- str += ws + valueStr;
55300
+ str2 += ws + valueStr;
55301
55301
  if (ctx.inFlow) {
55302
55302
  if (valueCommentDone && onComment)
55303
55303
  onComment();
55304
55304
  } else if (valueComment && !valueCommentDone) {
55305
- str += stringifyComment.lineComment(str, ctx.indent, commentString(valueComment));
55305
+ str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(valueComment));
55306
55306
  } else if (chompKeep && onChompKeep) {
55307
55307
  onChompKeep();
55308
55308
  }
55309
- return str;
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 str2 = stringify2.stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
55536
+ let str3 = stringify2.stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
55537
55537
  if (comment2)
55538
- str2 += stringifyComment.lineComment(str2, itemIndent, commentString(comment2));
55538
+ str3 += stringifyComment.lineComment(str3, itemIndent, commentString(comment2));
55539
55539
  if (chompKeep && comment2)
55540
55540
  chompKeep = false;
55541
- lines.push(blockItemPrefix + str2);
55541
+ lines.push(blockItemPrefix + str3);
55542
55542
  }
55543
- let str;
55543
+ let str2;
55544
55544
  if (lines.length === 0) {
55545
- str = flowChars.start + flowChars.end;
55545
+ str2 = flowChars.start + flowChars.end;
55546
55546
  } else {
55547
- str = lines[0];
55547
+ str2 = lines[0];
55548
55548
  for (let i = 1; i < lines.length; ++i) {
55549
55549
  const line = lines[i];
55550
- str += line ? `
55550
+ str2 += line ? `
55551
55551
  ${indent}${line}` : "\n";
55552
55552
  }
55553
55553
  }
55554
55554
  if (comment) {
55555
- str += "\n" + stringifyComment.indentComment(commentString(comment), indent);
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 str;
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 str = stringify2.stringify(item, itemCtx, () => comment = null);
55604
- reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
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
- str += ",";
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) + (str.length + 2) > ctx.options.lineWidth);
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
- str += ",";
55612
+ str2 += ",";
55613
55613
  }
55614
55614
  }
55615
55615
  if (comment)
55616
- str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
55617
- lines.push(str);
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 str = start;
55629
+ let str2 = start;
55630
55630
  for (const line of lines)
55631
- str += line ? `
55631
+ str2 += line ? `
55632
55632
  ${indentStep}${indent}${line}` : "\n";
55633
- return `${str}
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: (str) => str,
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: (str) => new Scalar.Scalar(str[0] === "t" || str[0] === "T"),
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: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
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: (str) => parseFloat(str),
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(str) {
56076
- const node = new Scalar.Scalar(parseFloat(str));
56077
- const dot = str.indexOf(".");
56078
- if (dot !== -1 && str[str.length - 1] === "0")
56079
- node.minFractionDigits = str.length - dot - 1;
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 = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
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: (str, _onError, opt) => intResolve(str, 2, 8, opt),
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: (str, _onError, opt) => intResolve(str, 0, 10, opt),
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: (str, _onError, opt) => intResolve(str, 2, 16, opt),
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: (str) => str,
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: (str) => str === "true",
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: (str, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str, 10),
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: (str) => parseFloat(str),
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(str, onError) {
56221
- onError(`Unresolved plain scalar ${JSON.stringify(str)}`);
56222
- return str;
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 str = atob(src.replace(/[\n\r]/g, ""));
56255
- const buffer = new Uint8Array(str.length);
56256
- for (let i = 0; i < str.length; ++i)
56257
- buffer[i] = str.charCodeAt(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 str;
56268
+ let str2;
56269
56269
  if (typeof node_buffer.Buffer === "function") {
56270
- str = buf instanceof node_buffer.Buffer ? buf.toString("base64") : node_buffer.Buffer.from(buf.buffer).toString("base64");
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
- str = btoa(s3);
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(str.length / lineWidth);
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] = str.substr(o, lineWidth);
56285
+ lines[i] = str2.substr(o, lineWidth);
56286
56286
  }
56287
- str = lines.join(type === Scalar.Scalar.BLOCK_LITERAL ? "\n" : " ");
56287
+ str2 = lines.join(type === Scalar.Scalar.BLOCK_LITERAL ? "\n" : " ");
56288
56288
  }
56289
- return stringifyString.stringifyString({ comment, type, value: str }, ctx, onComment, onChompKeep);
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: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
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: (str) => parseFloat(str.replace(/_/g, "")),
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(str) {
56516
- const node = new Scalar.Scalar(parseFloat(str.replace(/_/g, "")));
56517
- const dot = str.indexOf(".");
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 = str.substring(dot + 1).replace(/_/g, "");
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(str, offset, radix, { intAsBigInt }) {
56540
- const sign2 = str[0];
56541
- if (sign2 === "-" || sign2 === "+")
56539
+ function intResolve(str2, offset, radix, { intAsBigInt }) {
56540
+ const sign3 = str2[0];
56541
+ if (sign3 === "-" || sign3 === "+")
56542
56542
  offset += 1;
56543
- str = str.substring(offset).replace(/_/g, "");
56543
+ str2 = str2.substring(offset).replace(/_/g, "");
56544
56544
  if (intAsBigInt) {
56545
56545
  switch (radix) {
56546
56546
  case 2:
56547
- str = `0b${str}`;
56547
+ str2 = `0b${str2}`;
56548
56548
  break;
56549
56549
  case 8:
56550
- str = `0o${str}`;
56550
+ str2 = `0o${str2}`;
56551
56551
  break;
56552
56552
  case 16:
56553
- str = `0x${str}`;
56553
+ str2 = `0x${str2}`;
56554
56554
  break;
56555
56555
  }
56556
- const n2 = BigInt(str);
56557
- return sign2 === "-" ? BigInt(-1) * n2 : n2;
56556
+ const n2 = BigInt(str2);
56557
+ return sign3 === "-" ? BigInt(-1) * n2 : n2;
56558
56558
  }
56559
- const n = parseInt(str, radix);
56560
- return sign2 === "-" ? -1 * n : n;
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 str = value.toString(radix);
56566
- return value < 0 ? "-" + prefix + str.substr(1) : prefix + str;
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: (str, _onError, opt) => intResolve(str, 2, 2, opt),
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: (str, _onError, opt) => intResolve(str, 1, 8, opt),
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: (str, _onError, opt) => intResolve(str, 0, 10, opt),
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: (str, _onError, opt) => intResolve(str, 2, 16, opt),
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(str, asBigInt) {
56707
- const sign2 = str[0];
56708
- const parts = sign2 === "-" || sign2 === "+" ? str.substring(1) : str;
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 sign2 === "-" ? num(-1) * res : res;
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 sign2 = "";
56720
+ let sign3 = "";
56721
56721
  if (value < 0) {
56722
- sign2 = "-";
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 sign2 + parts.map((n) => String(n).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
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: (str, _onError, { intAsBigInt }) => parseSexagesimal(str, intAsBigInt),
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: (str) => parseSexagesimal(str, false),
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(str) {
56766
- const match2 = str.match(timestamp.test);
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, str) => {
66633
+ const shape = paths.reduce((o, str2) => {
66634
66634
  rx.lastIndex = 0;
66635
- const first = rx.exec(str);
66636
- const next = rx.exec(str);
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 = `${str.substr(index, str.length - 1)}`;
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 str = "";
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
- str += f2.slice(lastPos, i);
66781
- str += Number(args[a]);
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
- str += f2.slice(lastPos, i);
66791
- str += Math.floor(Number(args[a]));
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
- str += f2.slice(lastPos, i);
66804
+ str2 += f2.slice(lastPos, i);
66805
66805
  var type = typeof args[a];
66806
66806
  if (type === "string") {
66807
- str += "'" + args[a] + "'";
66807
+ str2 += "'" + args[a] + "'";
66808
66808
  lastPos = i + 2;
66809
66809
  i++;
66810
66810
  break;
66811
66811
  }
66812
66812
  if (type === "function") {
66813
- str += args[a].name || "<anonymous>";
66813
+ str2 += args[a].name || "<anonymous>";
66814
66814
  lastPos = i + 2;
66815
66815
  i++;
66816
66816
  break;
66817
66817
  }
66818
- str += ss(args[a]);
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
- str += f2.slice(lastPos, i);
66827
- str += String(args[a]);
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
- str += f2.slice(lastPos, i);
66834
- str += "%";
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
- str += f2.slice(lastPos);
66847
+ str2 += f2.slice(lastPos);
66848
66848
  }
66849
- return str;
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 ? (str) => JSON.stringify(str) : _asString;
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(str) {
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 = str.length;
68406
+ const l = str2.length;
68407
68407
  if (l > 100) {
68408
- return JSON.stringify(str);
68408
+ return JSON.stringify(str2);
68409
68409
  }
68410
68410
  for (var i = 0; i < l && point >= 32; i++) {
68411
- point = str.charCodeAt(i);
68411
+ point = str2.charCodeAt(i);
68412
68412
  if (point === 34 || point === 92) {
68413
- result += str.slice(last, i) + "\\";
68413
+ result += str2.slice(last, i) + "\\";
68414
68414
  last = i;
68415
68415
  found = true;
68416
68416
  }
68417
68417
  }
68418
68418
  if (!found) {
68419
- result = str;
68419
+ result = str2;
68420
68420
  } else {
68421
- result += str.slice(last);
68421
+ result += str2.slice(last);
68422
68422
  }
68423
- return point < 32 ? JSON.stringify(str) : '"' + result + '"';
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(str) {
69128
- if (str.length < 5e3 && !strEscapeSequencesRegExp.test(str)) {
69129
- return `"${str}"`;
69127
+ function strEscape(str2) {
69128
+ if (str2.length < 5e3 && !strEscapeSequencesRegExp.test(str2)) {
69129
+ return `"${str2}"`;
69130
69130
  }
69131
- return JSON.stringify(str);
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(str) {
70664
- const len = str.length;
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 = str.charCodeAt(i);
70672
+ point = str2.charCodeAt(i);
70673
70673
  if (point === 34 || // '"'
70674
70674
  point === 92) {
70675
70675
  last === -1 && (last = 0);
70676
- result += str.slice(last, i) + "\\";
70676
+ result += str2.slice(last, i) + "\\";
70677
70677
  last = i;
70678
70678
  } else if (point < 32 || point >= 55296 && point <= 57343) {
70679
- return JSON.stringify(str);
70679
+ return JSON.stringify(str2);
70680
70680
  }
70681
70681
  }
70682
- return last === -1 && '"' + str + '"' || '"' + result + str.slice(last) + '"';
70683
- } else if (len < 5e3 && STR_ESCAPE.test(str) === false) {
70684
- return '"' + str + '"';
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(str);
70686
+ return JSON.stringify(str2);
70687
70687
  }
70688
70688
  }
70689
- asUnsafeString(str) {
70690
- return '"' + str + '"';
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 str = pos !== -1 ? note.substring(0, pos) : note;
72774
- if (!isip(str)) {
72775
- throw new TypeError("invalid IP address: " + str);
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(str);
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 str(strs, ...args) {
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 = 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 : str`${c1}${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(str) {
75483
- return unescapeJsonPointer(decodeURIComponent(str));
75482
+ function unescapeFragment(str2) {
75483
+ return unescapeJsonPointer(decodeURIComponent(str2));
75484
75484
  }
75485
75485
  exports.unescapeFragment = unescapeFragment;
75486
- function escapeFragment(str) {
75487
- return encodeURIComponent(escapeJsonPointer(str));
75486
+ function escapeFragment(str2) {
75487
+ return encodeURIComponent(escapeJsonPointer(str2));
75488
75488
  }
75489
75489
  exports.escapeFragment = escapeFragment;
75490
- function escapeJsonPointer(str) {
75491
- if (typeof str == "number")
75492
- return `${str}`;
75493
- return str.replace(/~/g, "~0").replace(/\//g, "~1");
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(str) {
75497
- return str.replace(/~1/g, "/").replace(/~0/g, "~");
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(str) {
76523
- return str.replace(/~/g, "~0").replace(/\//g, "~1");
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(str, token) {
77584
+ function findToken(str2, token) {
77585
77585
  let ind = 0;
77586
- for (let i = 0; i < str.length; i++) {
77587
- if (str[i] === token) ind++;
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 = (str, flags) => new RegExp(str, flags);
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(str) {
79036
- const len = str.length;
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 = str.charCodeAt(pos++);
79042
+ value = str2.charCodeAt(pos++);
79043
79043
  if (value >= 55296 && value <= 56319 && pos < len) {
79044
- value = str.charCodeAt(pos);
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(str, allowDate) {
80952
- const dt = str.split(DT_SEPARATOR);
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(str) {
80957
- const matches2 = DATE.exec(str);
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(str) {
80967
- const matches2 = TIME.exec(str);
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 str = "";
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
- str += escapedChars[c];
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
- str += String.fromCharCode(code);
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
- str += c;
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 str;
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(str) {
82627
- const matches2 = DATE.exec(str);
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(str) {
82647
- const matches2 = TIME.exec(str);
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(str) {
82694
- const dateTime = str.split(DATE_TIME_SEPARATOR);
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(str) {
82720
- return NOT_URI_FRAGMENT.test(str) && URI.test(str);
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(str) {
82723
+ function byte(str2) {
82724
82724
  BYTE.lastIndex = 0;
82725
- return BYTE.test(str);
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(str) {
82740
- if (Z_ANCHOR.test(str))
82739
+ function regex(str2) {
82740
+ if (Z_ANCHOR.test(str2))
82741
82741
  return false;
82742
82742
  try {
82743
- new RegExp(str);
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, fp35, fpr, fb, to, tM, tm, tp, tpr) => {
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(fp35)) {
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(str) {
89127
- const len = str.length;
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 = str.charCodeAt(i);
89133
+ let c = str2.charCodeAt(i);
89134
89134
  while (c < 128) {
89135
89135
  if (noEscape[c] !== 1) {
89136
- if (lastPos < i) out += str.slice(lastPos, i);
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 = str.charCodeAt(i);
89141
+ c = str2.charCodeAt(i);
89142
89142
  }
89143
- if (lastPos < i) out += str.slice(lastPos, i);
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 = str.charCodeAt(i) & 1023;
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 str;
89164
- if (lastPos < len) return out + str.slice(lastPos);
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 = (str) => {
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 str.replace(charsRegex, (s3, b2, lbs, a16, b16, dctrl, eslsh) => {
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 = (str, regexpStr) => {
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(str)) !== null) {
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 str = util2.strToChars(regexpStr);
89466
- while (i < str.length) {
89467
- switch (c = str[i++]) {
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 === str.length) {
89470
+ if (i === str2.length) {
89471
89471
  throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: \\ at end of pattern`);
89472
89472
  }
89473
- switch (c = str[i++]) {
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 < str.length && digit.test(str[i])) {
89502
- digits += str[i++];
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 (str[i] === "^") {
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(str.slice(i), regexpStr);
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 (str[i] === "?") {
89550
- c = str[i + 1];
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(str[i])) {
89561
- name25 += str[i];
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 '${str[i]}' after '<' at column ${i + 1}`);
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 < str.length && captureGroupChars.test(str[i])) {
89567
- name25 += str[i];
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 '${str[i]}' after '<' at column ${i + 1}`);
89571
+ throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Invalid capture group name, character '${str2[i]}' after '<' at column ${i + 1}`);
89572
89572
  }
89573
- if (str[i] !== ">") {
89574
- throw new SyntaxError(`Invalid regular expression: /${regexpStr}/: Unclosed capture group name, expected '>', found '${str[i]}' at column ${i + 1}`);
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(str.slice(i)), min, max;
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(routes34) {
90115
- return routes34.reduce((mergedRoutes, route) => {
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 routes34 = node.routes;
90127
+ let routes35 = node.routes;
90128
90128
  if (options.method === void 0) {
90129
- routes34 = routes34.map(normalizeRoute);
90129
+ routes35 = routes35.map(normalizeRoute);
90130
90130
  }
90131
- routes34 = routes34.map((route) => {
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
- routes34 = mergeSimilarRoutes(routes34);
90136
+ routes35 = mergeSimilarRoutes(routes35);
90137
90137
  }
90138
- return routes34.map(serializeRoute).join(`
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(routes34) {
91405
+ Router.prototype._rebuild = function(routes35) {
91406
91406
  this.reset();
91407
- for (const route of routes34) {
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(str, options) {
93484
+ function parseCookie(str2, options) {
93485
93485
  const obj = new NullObject();
93486
- const len = str.length;
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(str, index, len);
93492
+ const eqIdx = eqIndex(str2, index, len);
93493
93493
  if (eqIdx === -1)
93494
93494
  break;
93495
- const endIdx = endIndex(str, index, len);
93495
+ const endIdx = endIndex(str2, index, len);
93496
93496
  if (eqIdx > endIdx) {
93497
- index = str.lastIndexOf(";", eqIdx - 1) + 1;
93497
+ index = str2.lastIndexOf(";", eqIdx - 1) + 1;
93498
93498
  continue;
93499
93499
  }
93500
- const key2 = valueSlice(str, index, eqIdx);
93500
+ const key2 = valueSlice(str2, index, eqIdx);
93501
93501
  if (obj[key2] === void 0) {
93502
- obj[key2] = dec(valueSlice(str, eqIdx + 1, endIdx));
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 str = cookie.name + "=" + value;
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
- str += "; Max-Age=" + cookie.maxAge;
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
- str += "; Domain=" + cookie.domain;
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
- str += "; Path=" + cookie.path;
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
- str += "; Expires=" + cookie.expires.toUTCString();
93560
+ str2 += "; Expires=" + cookie.expires.toUTCString();
93561
93561
  }
93562
93562
  if (cookie.httpOnly) {
93563
- str += "; HttpOnly";
93563
+ str2 += "; HttpOnly";
93564
93564
  }
93565
93565
  if (cookie.secure) {
93566
- str += "; Secure";
93566
+ str2 += "; Secure";
93567
93567
  }
93568
93568
  if (cookie.partitioned) {
93569
- str += "; Partitioned";
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
- str += "; Priority=Low";
93575
+ str2 += "; Priority=Low";
93576
93576
  break;
93577
93577
  case "medium":
93578
- str += "; Priority=Medium";
93578
+ str2 += "; Priority=Medium";
93579
93579
  break;
93580
93580
  case "high":
93581
- str += "; Priority=High";
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
- str += "; SameSite=Strict";
93592
+ str2 += "; SameSite=Strict";
93593
93593
  break;
93594
93594
  case "lax":
93595
- str += "; SameSite=Lax";
93595
+ str2 += "; SameSite=Lax";
93596
93596
  break;
93597
93597
  case "none":
93598
- str += "; SameSite=None";
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 str;
93604
+ return str2;
93605
93605
  }
93606
- function parseSetCookie(str, options) {
93606
+ function parseSetCookie(str2, options) {
93607
93607
  const dec = options?.decode || decode3;
93608
- const len = str.length;
93609
- const endIdx = endIndex(str, 0, len);
93610
- const eqIdx = eqIndex(str, 0, endIdx);
93611
- const setCookie = eqIdx === -1 ? { name: "", value: dec(valueSlice(str, 0, endIdx)) } : {
93612
- name: valueSlice(str, 0, eqIdx),
93613
- value: dec(valueSlice(str, eqIdx + 1, endIdx))
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(str, index, len);
93618
- const eqIdx2 = eqIndex(str, index, endIdx2);
93619
- const attr = eqIdx2 === -1 ? valueSlice(str, index, endIdx2) : valueSlice(str, index, eqIdx2);
93620
- const val = eqIdx2 === -1 ? void 0 : valueSlice(str, eqIdx2 + 1, endIdx2);
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(str, min, len) {
93670
- const index = str.indexOf(";", min);
93669
+ function endIndex(str2, min, len) {
93670
+ const index = str2.indexOf(";", min);
93671
93671
  return index === -1 ? len : index;
93672
93672
  }
93673
- function eqIndex(str, min, max) {
93674
- const index = str.indexOf("=", min);
93673
+ function eqIndex(str2, min, max) {
93674
+ const index = str2.indexOf("=", min);
93675
93675
  return index < max ? index : -1;
93676
93676
  }
93677
- function valueSlice(str, min, max) {
93677
+ function valueSlice(str2, min, max) {
93678
93678
  let start = min;
93679
93679
  let end = max;
93680
93680
  do {
93681
- const code = str.charCodeAt(start);
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 = str.charCodeAt(end - 1);
93686
+ const code = str2.charCodeAt(end - 1);
93687
93687
  if (code !== 32 && code !== 9)
93688
93688
  break;
93689
93689
  end--;
93690
93690
  }
93691
- return str.slice(start, end);
93691
+ return str2.slice(start, end);
93692
93692
  }
93693
- function decode3(str) {
93694
- if (str.indexOf("%") === -1)
93695
- return str;
93693
+ function decode3(str2) {
93694
+ if (str2.indexOf("%") === -1)
93695
+ return str2;
93696
93696
  try {
93697
- return decodeURIComponent(str);
93697
+ return decodeURIComponent(str2);
93698
93698
  } catch (e) {
93699
- return str;
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 = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
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(str) {
94066
- return typeof str === "string" && !!str.trim();
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(str) {
94158
- return parseString(str, options);
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, str) {
94163
- var cookie = parseString(str, options);
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, str) => {
96222
- const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
96223
- const mb = b2 instanceof RegExp ? maybeMatch(b2, str) : b2;
96224
- const r = ma !== null && mb != null && (0, exports.range)(ma, mb, str);
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: str.slice(0, r[0]),
96229
- body: str.slice(r[0] + ma.length, r[1]),
96230
- post: str.slice(r[1] + mb.length)
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, str) => {
96235
- const m2 = str.match(reg);
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, str) => {
96238
+ var range = (a, b2, str2) => {
96239
96239
  let begs, beg, left, right = void 0, result;
96240
- let ai = str.indexOf(a);
96241
- let bi = str.indexOf(b2, ai + 1);
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 = str.length;
96248
+ left = str2.length;
96249
96249
  while (i >= 0 && !result) {
96250
96250
  if (i === ai) {
96251
96251
  begs.push(i);
96252
- ai = str.indexOf(a, i + 1);
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 = str.indexOf(b2, i + 1);
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(str) {
96300
- return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
96299
+ function numeric(str2) {
96300
+ return !isNaN(str2) ? parseInt(str2, 10) : str2.charCodeAt(0);
96301
96301
  }
96302
- function escapeBraces(str) {
96303
- return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
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(str) {
96306
- return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
96305
+ function unescapeBraces(str2) {
96306
+ return str2.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
96307
96307
  }
96308
- function parseCommaParts(str) {
96309
- if (!str) {
96308
+ function parseCommaParts(str2) {
96309
+ if (!str2) {
96310
96310
  return [""];
96311
96311
  }
96312
96312
  const parts = [];
96313
- const m2 = (0, balanced_match_1.balanced)("{", "}", str);
96313
+ const m2 = (0, balanced_match_1.balanced)("{", "}", str2);
96314
96314
  if (!m2) {
96315
- return str.split(",");
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(str) {
96330
- if (!str) {
96329
+ function expand(str2) {
96330
+ if (!str2) {
96331
96331
  return [];
96332
96332
  }
96333
- if (str.slice(0, 2) === "{}") {
96334
- str = "\\{\\}" + str.slice(2);
96333
+ if (str2.slice(0, 2) === "{}") {
96334
+ str2 = "\\{\\}" + str2.slice(2);
96335
96335
  }
96336
- return expand_(escapeBraces(str), true).map(unescapeBraces);
96336
+ return expand_(escapeBraces(str2), true).map(unescapeBraces);
96337
96337
  }
96338
- function embrace(str) {
96339
- return "{" + str + "}";
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_(str, isTop) {
96350
+ function expand_(str2, isTop) {
96351
96351
  const expansions = [];
96352
- const m2 = (0, balanced_match_1.balanced)("{", "}", str);
96352
+ const m2 = (0, balanced_match_1.balanced)("{", "}", str2);
96353
96353
  if (!m2)
96354
- return [str];
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
- str = m2.pre + "{" + m2.body + escClose + m2.post;
96370
- return expand_(str);
96369
+ str2 = m2.pre + "{" + m2.body + escClose + m2.post;
96370
+ return expand_(str2);
96371
96371
  }
96372
- return [str];
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(str, ast, pos, opt) {
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 < str.length) {
96759
- const c = str.charAt(i2++);
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) && str.charAt(i2) === "(") {
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(str, ext, i2, opt);
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 < str.length) {
96800
- const c = str.charAt(i++);
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) && str.charAt(i) === "(") {
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(str, ext, i, opt);
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 = [str.substring(pos - 1)];
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 fp35 = pv + (!p2.parent ? "" : this.sep) + name25;
100616
- return this.#fullpath = fp35;
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 str = "" + string4;
103305
- var match2 = matchHtmlRegExp.exec(str);
103304
+ var str2 = "" + string4;
103305
+ var match2 = matchHtmlRegExp.exec(str2);
103306
103306
  if (!match2) {
103307
- return str;
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 < str.length; index++) {
103314
- switch (str.charCodeAt(index)) {
103313
+ for (index = match2.index; index < str2.length; index++) {
103314
+ switch (str2.charCodeAt(index)) {
103315
103315
  case 34:
103316
103316
  escape2 = "&quot;";
103317
103317
  break;
@@ -103331,12 +103331,12 @@ var require_escape_html = __commonJS({
103331
103331
  continue;
103332
103332
  }
103333
103333
  if (lastIndex !== index) {
103334
- html += str.substring(lastIndex, index);
103334
+ html += str2.substring(lastIndex, index);
103335
103335
  }
103336
103336
  lastIndex = index + 1;
103337
103337
  html += escape2;
103338
103338
  }
103339
- return lastIndex !== index ? html + str.substring(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, str, long) {
103365
+ function fmt(val, pfx, str2, long) {
103366
103366
  var num = (val | 0) === val ? val : ~~(val + 0.5);
103367
- return pfx + num + (long ? " " + str + (num != 1 ? "s" : "") : str[0]);
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(str) {
103388
- if (str[0] !== "/" || str[1] !== "/") {
103389
- return str;
103387
+ function collapseLeadingSlashes(str2) {
103388
+ if (str2[0] !== "/" || str2[1] !== "/") {
103389
+ return str2;
103390
103390
  }
103391
- for (let i = 2, il = str.length; i < il; ++i) {
103392
- if (str[i] !== "/") {
103393
- return str.slice(i - 1);
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, str) {
103469
- const values = str.slice(str.indexOf("=") + 1);
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(str, cb) {
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 = str.length; i < len; i++) {
103553
- switch (str.charCodeAt(i)) {
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(str, start, end));
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(str, start, end));
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(str, namespace) {
103588
- var vals = str.split(/[ ,]+/);
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 str = "";
103615
+ var str2 = "";
103616
103616
  for (var i = 0; i < arity; i++) {
103617
- str += ", arg" + i;
103617
+ str2 += ", arg" + i;
103618
103618
  }
103619
- return str.substr(2);
103619
+ return str2.substr(2);
103620
103620
  }
103621
103621
  function createStackString(stack) {
103622
- var str = this.name + ": " + this.namespace;
103622
+ var str2 = this.name + ": " + this.namespace;
103623
103623
  if (this.message) {
103624
- str += " deprecated " + this.message;
103624
+ str2 += " deprecated " + this.message;
103625
103625
  }
103626
103626
  for (var i = 0; i < stack.length; i++) {
103627
- str += "\n at " + stack[i].toString();
103627
+ str2 += "\n at " + stack[i].toString();
103628
103628
  }
103629
- return str;
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 str = process.env.NO_DEPRECATION || "";
103659
- return containsNamespace(str, namespace);
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 str = process.env.TRACE_DEPRECATION || "";
103666
- return containsNamespace(str, namespace);
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(str) {
104101
- return str.split(" ").map(function(token) {
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 str = "";
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(str, 1)) {
104854
+ if (processMatch(str2, 1)) {
104855
104855
  state = END;
104856
104856
  break;
104857
104857
  }
104858
104858
  state = BEGIN;
104859
- str = "";
104859
+ str2 = "";
104860
104860
  } else if (state === QUALITY) {
104861
- if (processMatch(str, parseFloat(quality) || 0)) {
104861
+ if (processMatch(str2, parseFloat(quality) || 0)) {
104862
104862
  state = END;
104863
104863
  break;
104864
104864
  }
104865
104865
  state = BEGIN;
104866
- str = "";
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
- str += char;
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
- str = "";
104885
+ str2 = "";
104886
104886
  }
104887
- str += char;
104887
+ str2 += char;
104888
104888
  continue;
104889
104889
  }
104890
- if (processMatch(str, parseFloat(quality) || 0)) {
104890
+ if (processMatch(str2, parseFloat(quality) || 0)) {
104891
104891
  state = END;
104892
104892
  break;
104893
104893
  }
104894
104894
  state = BEGIN;
104895
- str = char;
104895
+ str2 = char;
104896
104896
  quality = "";
104897
104897
  }
104898
104898
  if (state === TOKEN) {
104899
- processMatch(str, 1);
104899
+ processMatch(str2, 1);
104900
104900
  } else if (state === QUALITY) {
104901
- processMatch(str, parseFloat(quality) || 0);
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(str) {
105042
- var match2 = EXT_VALUE_REGEXP.exec(str);
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(str, hex3) {
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 str = String(val);
105118
- return '"' + str.replace(QUOTE_REGEXP, "\\$1") + '"';
105117
+ var str2 = String(val);
105118
+ return '"' + str2.replace(QUOTE_REGEXP, "\\$1") + '"';
105119
105119
  }
105120
105120
  function ustring(val) {
105121
- var str = String(val);
105122
- var encoded = encodeURIComponent(str).replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode);
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 fp35 = require_plugin2();
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 routes34 = /* @__PURE__ */ new Set();
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 (routes34.has(route)) {
105452
+ if (routes35.has(route)) {
105453
105453
  continue;
105454
105454
  }
105455
- routes34.add(route);
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 = fp35(fastifyStatic2, {
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: randomBytes3, createHash: createHash9 } = __require("crypto");
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 = randomBytes3(16).toString("base64");
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 str = p2.data;
109572
- var nb = n > str.length ? str.length : n;
109573
- if (nb === str.length) ret += str;
109574
- else ret += str.slice(0, n);
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 === str.length) {
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 = str.slice(nb);
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(str, search, pos) {
109769
- return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
109768
+ function startsWith(str2, search, pos) {
109769
+ return str2.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
109770
109770
  }
109771
- function endsWith(str, search, this_len) {
109772
- if (this_len === void 0 || this_len > str.length) {
109773
- this_len = str.length;
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 str.substring(this_len - search.length, this_len) === search;
109775
+ return str2.substring(this_len - search.length, this_len) === search;
109776
109776
  }
109777
- function includes(str, search, start) {
109777
+ function includes(str2, search, start) {
109778
109778
  if (typeof start !== "number") {
109779
109779
  start = 0;
109780
109780
  }
109781
- if (start + search.length > str.length) {
109781
+ if (start + search.length > str2.length) {
109782
109782
  return false;
109783
109783
  } else {
109784
- return str.indexOf(search, start) !== -1;
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: randomBytes3 } = __require("node:crypto");
112393
- var fp35 = require_plugin2();
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": randomBytes3(16).toString("base64")
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 = fp35(fastifyWebsocket2, {
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(str) {
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 = str.length;
113709
+ const len = str2.length;
113710
113710
  for (var i = 0; i < len; ++i) {
113711
- const char = str[i];
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 && str[i + 1] !== ";") {
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(str) {
114244
- str = str.replace(RE_PLUS, " ");
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 = str.length;
114248
+ const len = str2.length;
114249
114249
  for (; i < len; ++i) {
114250
114250
  if (this.buffer !== void 0) {
114251
- if (!HEX[str.charCodeAt(i)]) {
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 += str[i];
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 (str[i] === "%") {
114263
+ } else if (str2[i] === "%") {
114264
114264
  if (i > p2) {
114265
- res += str.substring(p2, i);
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 += str.substring(p2);
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 str = seed();
114846
+ let str2 = seed();
114847
114847
  return function generateId3() {
114848
- return num === 255 ? (str = seed()) + HEX[num = 0] : str + HEX[++num];
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 fp35 = require_plugin2();
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 = fp35(fastifyMultipart2, {
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(str, leading = true, trailing = true) {
119989
- return removeChars(str, leading, trailing, isASCIIWhitespace);
119988
+ function removeASCIIWhitespace(str2, leading = true, trailing = true) {
119989
+ return removeChars(str2, leading, trailing, isASCIIWhitespace);
119990
119990
  }
119991
- function removeChars(str, leading, trailing, predicate) {
119991
+ function removeChars(str2, leading, trailing, predicate) {
119992
119992
  let lead = 0;
119993
- let trail = str.length - 1;
119993
+ let trail = str2.length - 1;
119994
119994
  if (leading) {
119995
- while (lead < str.length && predicate(str.charCodeAt(lead))) lead++;
119995
+ while (lead < str2.length && predicate(str2.charCodeAt(lead))) lead++;
119996
119996
  }
119997
119997
  if (trailing) {
119998
- while (trail > 0 && predicate(str.charCodeAt(trail))) trail--;
119998
+ while (trail > 0 && predicate(str2.charCodeAt(trail))) trail--;
119999
119999
  }
120000
- return lead === 0 && trail === str.length - 1 ? str : str.slice(lead, trail + 1);
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(str, leading = true, trailing = true) {
120252
- return removeChars(str, leading, trailing, isHTTPWhiteSpace);
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 = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
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 str = stringify2(cookie);
136921
- if (str) {
136922
- headers.append("set-cookie", str, true);
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 str = buf.toString("utf8");
139890
+ const str2 = buf.toString("utf8");
139891
139891
  try {
139892
- return JSON.parse(str);
139892
+ return JSON.parse(str2);
139893
139893
  } catch (_err) {
139894
139894
  const err = _err;
139895
- err.message += ` (input: ${str})`;
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(str, options) {
148138
+ function match(str2, options) {
148139
148139
  try {
148140
- return H(str, options);
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(str, options) {
149427
+ function parse22(str2, options) {
149428
149428
  const obj = new NullObject();
149429
- const len = str.length;
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 = str.indexOf("=", index);
149435
+ const eqIdx = str2.indexOf("=", index);
149436
149436
  if (eqIdx === -1)
149437
149437
  break;
149438
- const colonIdx = str.indexOf(";", index);
149438
+ const colonIdx = str2.indexOf(";", index);
149439
149439
  const endIdx = colonIdx === -1 ? len : colonIdx;
149440
149440
  if (eqIdx > endIdx) {
149441
- index = str.lastIndexOf(";", eqIdx - 1) + 1;
149441
+ index = str2.lastIndexOf(";", eqIdx - 1) + 1;
149442
149442
  continue;
149443
149443
  }
149444
- const keyStartIdx = startIndex(str, index, eqIdx);
149445
- const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
149446
- const key2 = str.slice(keyStartIdx, keyEndIdx);
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(str, eqIdx + 1, endIdx);
149449
- let valEndIdx = endIndex(str, endIdx, valStartIdx);
149450
- const value = dec(str.slice(valStartIdx, valEndIdx));
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(str, index, max) {
149457
+ function startIndex(str2, index, max) {
149458
149458
  do {
149459
- const code = str.charCodeAt(index);
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(str, index, min) {
149465
+ function endIndex(str2, index, min) {
149466
149466
  while (index > min) {
149467
- const code = str.charCodeAt(--index);
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 str = name25 + "=" + value;
149482
+ let str2 = name25 + "=" + value;
149483
149483
  if (!options)
149484
- return str;
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
- str += "; Max-Age=" + options.maxAge;
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
- str += "; Domain=" + options.domain;
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
- str += "; Path=" + options.path;
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
- str += "; Expires=" + options.expires.toUTCString();
149507
+ str2 += "; Expires=" + options.expires.toUTCString();
149508
149508
  }
149509
149509
  if (options.httpOnly) {
149510
- str += "; HttpOnly";
149510
+ str2 += "; HttpOnly";
149511
149511
  }
149512
149512
  if (options.secure) {
149513
- str += "; Secure";
149513
+ str2 += "; Secure";
149514
149514
  }
149515
149515
  if (options.partitioned) {
149516
- str += "; Partitioned";
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
- str += "; Priority=Low";
149522
+ str2 += "; Priority=Low";
149523
149523
  break;
149524
149524
  case "medium":
149525
- str += "; Priority=Medium";
149525
+ str2 += "; Priority=Medium";
149526
149526
  break;
149527
149527
  case "high":
149528
- str += "; Priority=High";
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
- str += "; SameSite=Strict";
149539
+ str2 += "; SameSite=Strict";
149540
149540
  break;
149541
149541
  case "lax":
149542
- str += "; SameSite=Lax";
149542
+ str2 += "; SameSite=Lax";
149543
149543
  break;
149544
149544
  case "none":
149545
- str += "; SameSite=None";
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 str;
149551
+ return str2;
149552
149552
  }
149553
- function decode3(str) {
149554
- if (str.indexOf("%") === -1)
149555
- return str;
149553
+ function decode3(str2) {
149554
+ if (str2.indexOf("%") === -1)
149555
+ return str2;
149556
149556
  try {
149557
- return decodeURIComponent(str);
149557
+ return decodeURIComponent(str2);
149558
149558
  } catch (e) {
149559
- return str;
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(str) {
153067
- return str ? str.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent) : str;
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(str) {
153945
- return str ? str.replace(/([-_][a-z])/g, (match2) => match2.toUpperCase().replace(/-|_/, "")) : "";
153944
+ function snakeToCamel(str2) {
153945
+ return str2 ? str2.replace(/([-_][a-z])/g, (match2) => match2.toUpperCase().replace(/-|_/, "")) : "";
153946
153946
  }
153947
- function camelToSnake(str) {
153948
- return str ? str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`) : "";
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(str) {
155756
- if (!str) return str;
155755
+ function trimSlashes(str2) {
155756
+ if (!str2) return str2;
155757
155757
  let start = 0;
155758
- let end = str.length;
155759
- if (str.startsWith("/")) start = 1;
155760
- if (str.endsWith("/")) end = str.length - 1;
155761
- return start === 0 && end === str.length ? str : str.slice(start, 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(str) {
167240
- return str.replace(/-./g, (match2) => match2[1].toUpperCase());
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, str, i, arr) => {
167376
- const paddedStr = arr.length === i + 1 ? str : str.padEnd(maxLengths[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((str) => `"${str}"`),
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
- (str) => `\`${str}\``
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(routes34, docs, args) {
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(routes34)) {
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(routes34).filter(
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: routes34,
169086
+ routes: routes35,
169087
169087
  defaultCommand: defaultCommandRoute,
169088
169088
  docs,
169089
169089
  aliases
169090
169090
  }) {
169091
- if (Object.entries(routes34).length === 0) {
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 routes34) {
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 ? routes34[defaultCommandRoute] : void 0;
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 routes34) {
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(routes34, docs, config2)];
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 routes34[routeName];
169173
+ return routes35[routeName];
169174
169174
  },
169175
169175
  getAllEntries() {
169176
169176
  const hiddenRoutes = docs.hideRoute;
169177
- return Object.entries(routes34).map(([originalRouteName, target]) => {
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(str) {
170133
- return str.trim();
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(str) {
178092
- return str.trim();
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(str) {
180895
- return str.trim();
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(str) {
184468
- this.#sql += str;
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
- }).execute();
185663
- const row = await kdb.selectFrom("scheduled_tasks").selectAll().where("id", "=", opts.id).executeTakeFirstOrThrow();
185664
- return mapTask(row);
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 str = "";
189382
+ let str2 = "";
189372
189383
  for (let i = 0; i < length; i++) {
189373
- str += chars[Math.floor(Math.random() * chars.length)];
189384
+ str2 += chars[Math.floor(Math.random() * chars.length)];
189374
189385
  }
189375
- return str;
189386
+ return str2;
189376
189387
  }
189377
- function esc(str) {
189378
- return JSON.stringify(str);
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(str) {
189479
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
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,133 @@ 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
+ "Give EXACTLY ONE of `prompt` or `command`:",
205500
+ "- `command` runs a shell command in the project directory. Prefer it when the check is",
205501
+ " mechanical and its output speaks for itself (a test suite, a health request, a disk",
205502
+ " check). It is cheaper and its result is unambiguous.",
205503
+ "- `prompt` starts a fresh agent. Use it when the check needs judgement \u2014 reading logs,",
205504
+ " comparing behaviour, deciding whether something counts as a regression.",
205505
+ "",
205506
+ "`prompt` must be self-contained: the scheduled run is a fresh agent with none of this",
205507
+ "conversation's context. Spell out what to check, how to tell pass from fail, and what to",
205508
+ "write in the report when something regressed. A `command` should likewise be non-interactive",
205509
+ "and exit non-zero when the check fails.",
205510
+ "",
205511
+ "Project, execution target and branch are taken from this session \u2014 do not describe them here."
205512
+ ].join("\n");
205513
+ var PROPOSE_SCHEDULE_INPUT_SCHEMA = {
205514
+ type: "object",
205515
+ properties: {
205516
+ name: { type: "string", description: 'Short label for the scheduled check, e.g. "Watch nightly build flakiness"' },
205517
+ cron_expr: { type: "string", description: '5-field cron expression, e.g. "0 9 * * *" for every day at 09:00' },
205518
+ prompt: { type: "string", description: "Self-contained instructions for a scheduled agent run. Give this OR command, not both." },
205519
+ command: { type: "string", description: 'Non-interactive shell command to run for the check, e.g. "pnpm test --run flaky". Give this OR prompt, not both.' },
205520
+ timezone: { type: "string", description: `Optional IANA timezone for the cron expression, e.g. "Asia/Shanghai". Defaults to the user's browser timezone.` }
205521
+ },
205522
+ required: ["name", "cron_expr"]
205523
+ };
205524
+ 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.";
205525
+ var NAME_MAX = 200;
205526
+ var CRON_MAX = 200;
205527
+ var CONTENT_MAX = 2e4;
205528
+ var TIMEZONE_MAX = 100;
205529
+ var str = (value) => typeof value === "string" ? value.trim() : null;
205530
+ function parseProposeScheduleArgs(args) {
205531
+ const name25 = str(args.name);
205532
+ if (!name25) return { ok: false, error: "name is required" };
205533
+ if (name25.length > NAME_MAX) return { ok: false, error: `name must be at most ${NAME_MAX} characters` };
205534
+ const cronExpr = str(args.cron_expr);
205535
+ if (!cronExpr) return { ok: false, error: "cron_expr is required" };
205536
+ if (cronExpr.length > CRON_MAX) return { ok: false, error: `cron_expr must be at most ${CRON_MAX} characters` };
205537
+ const prompt = typeof args.prompt === "string" && args.prompt.trim() ? args.prompt : null;
205538
+ const command = typeof args.command === "string" && args.command.trim() ? args.command : null;
205539
+ if (prompt && command) return { ok: false, error: "give either prompt or command, not both" };
205540
+ if (!prompt && !command) return { ok: false, error: "either prompt or command is required" };
205541
+ const run_type = prompt ? "prompt" : "command";
205542
+ const content = prompt ?? command;
205543
+ if (content.length > CONTENT_MAX) {
205544
+ return { ok: false, error: `${run_type} must be at most ${CONTENT_MAX} characters` };
205545
+ }
205546
+ const timezone = str(args.timezone) ?? void 0;
205547
+ if (timezone && timezone.length > TIMEZONE_MAX) {
205548
+ return { ok: false, error: `timezone must be at most ${TIMEZONE_MAX} characters` };
205549
+ }
205550
+ return { ok: true, value: { name: name25, cron_expr: cronExpr, run_type, content, ...timezone ? { timezone } : {} } };
205551
+ }
205552
+ var PROPOSE_SCHEDULE_ALIASES = new Set(
205553
+ [
205554
+ PROPOSE_SCHEDULE_TOOL,
205555
+ CANONICAL_PROPOSE_SCHEDULE_TOOL,
205556
+ `${SESSION_TOOLS_MCP_SERVER_NAME}.${PROPOSE_SCHEDULE_TOOL}`,
205557
+ `${SESSION_TOOLS_MCP_SERVER_NAME}/${PROPOSE_SCHEDULE_TOOL}`,
205558
+ `${SESSION_TOOLS_MCP_SERVER_NAME}__${PROPOSE_SCHEDULE_TOOL}`,
205559
+ `${SESSION_TOOLS_MCP_SERVER_NAME}-${PROPOSE_SCHEDULE_TOOL}`
205560
+ ].map((n) => n.toLowerCase())
205561
+ );
205562
+ function canonicalizeSessionToolName(tool2, server) {
205563
+ if (server !== void 0 && server.trim().toLowerCase() !== SESSION_TOOLS_MCP_SERVER_NAME) return tool2;
205564
+ return PROPOSE_SCHEDULE_ALIASES.has(tool2.trim().toLowerCase()) ? CANONICAL_PROPOSE_SCHEDULE_TOOL : tool2;
205565
+ }
205566
+ async function mintSessionToolsMcpConfig(deps, args) {
205567
+ const origin = args.origin?.trim();
205568
+ if (!origin || !origin.startsWith("http://")) return void 0;
205569
+ if (!args.sessionId) return void 0;
205570
+ const secret = await getSessionToolsSecret(deps.storage);
205571
+ const token = signSessionToolsToken(secret, { sessionId: args.sessionId }, Date.now());
205572
+ return { url: `${origin.replace(/\/+$/, "")}${SESSION_TOOLS_MCP_PATH}`, token };
205573
+ }
205574
+
205421
205575
  // src/protocol/codex/schema.ts
205422
205576
  var CODEX_BINARY_NAME = "codex";
205423
205577
  var CODEX_NPM_PACKAGE = "@openai/codex";
@@ -205511,6 +205665,8 @@ var WebSearchItemSchema = external_exports.looseObject({
205511
205665
  var McpToolCallItemSchema = external_exports.looseObject({
205512
205666
  type: external_exports.literal("mcpToolCall"),
205513
205667
  id: idish.optional(),
205668
+ /** MCP server the tool belongs to; `tool` is the bare name within it. */
205669
+ server: external_exports.string().optional(),
205514
205670
  tool: external_exports.string().optional(),
205515
205671
  arguments: external_exports.unknown().optional(),
205516
205672
  result: external_exports.unknown().optional(),
@@ -205586,22 +205742,30 @@ var UserInputParamsSchema = external_exports.looseObject({
205586
205742
 
205587
205743
  // src/protocol/codex/cli.ts
205588
205744
  var CROSS_REMOTE_MCP_TOKEN_ENV = "VIBEDECKX_CROSS_REMOTE_MCP_TOKEN";
205589
- function buildCodexAppServerSpawnConfig(nativeBinary, crossRemoteMcp, model) {
205745
+ var SESSION_TOOLS_MCP_TOKEN_ENV = "VIBEDECKX_SESSION_MCP_TOKEN";
205746
+ var mcpServerOverride = (name25, url2, tokenEnvVar) => `mcp_servers.${name25}={ url = ${JSON.stringify(url2)}, bearer_token_env_var = ${JSON.stringify(tokenEnvVar)}, default_tools_approval_mode = "approve" }`;
205747
+ function buildCodexAppServerSpawnConfig(nativeBinary, crossRemoteMcp, model, sessionToolsMcp) {
205590
205748
  const args = ["app-server"];
205591
205749
  if (model && model.trim()) {
205592
205750
  args.push("-c", `model=${JSON.stringify(model.trim())}`);
205593
205751
  }
205594
205752
  if (crossRemoteMcp) {
205753
+ args.push("-c", mcpServerOverride("cross-remote", crossRemoteMcp.url, CROSS_REMOTE_MCP_TOKEN_ENV));
205754
+ }
205755
+ if (sessionToolsMcp) {
205595
205756
  args.push(
205596
205757
  "-c",
205597
- `mcp_servers.cross-remote={ url = ${JSON.stringify(crossRemoteMcp.url)}, bearer_token_env_var = ${JSON.stringify(CROSS_REMOTE_MCP_TOKEN_ENV)}, default_tools_approval_mode = "approve" }`
205758
+ mcpServerOverride(SESSION_TOOLS_MCP_SERVER_NAME, sessionToolsMcp.url, SESSION_TOOLS_MCP_TOKEN_ENV)
205598
205759
  );
205599
205760
  }
205600
- const env = crossRemoteMcp ? { [CROSS_REMOTE_MCP_TOKEN_ENV]: crossRemoteMcp.token } : void 0;
205761
+ const env = {};
205762
+ if (crossRemoteMcp) env[CROSS_REMOTE_MCP_TOKEN_ENV] = crossRemoteMcp.token;
205763
+ if (sessionToolsMcp) env[SESSION_TOOLS_MCP_TOKEN_ENV] = sessionToolsMcp.token;
205764
+ const hasEnv = Object.keys(env).length > 0;
205601
205765
  if (nativeBinary) {
205602
- return { command: nativeBinary, args, ...env ? { env } : {}, shell: false };
205766
+ return { command: nativeBinary, args, ...hasEnv ? { env } : {}, shell: false };
205603
205767
  }
205604
- return { command: "npx", args: ["-y", CODEX_NPM_PACKAGE, ...args], ...env ? { env } : {}, shell: false };
205768
+ return { command: "npx", args: ["-y", CODEX_NPM_PACKAGE, ...args], ...hasEnv ? { env } : {}, shell: false };
205605
205769
  }
205606
205770
  function buildCodexExecCommand(nativeBinary, prompt, outputLastMessageFile) {
205607
205771
  const escapedPrompt = prompt.replace(/'/g, "'\\''");
@@ -205669,13 +205833,23 @@ var ClaudeResultMessageSchema = external_exports.looseObject({
205669
205833
 
205670
205834
  // src/protocol/claude-code/cli.ts
205671
205835
  var STREAM_JSON_ARGS = ["--output-format=stream-json", "--input-format=stream-json"];
205836
+ function buildClaudeMcpConfigArg(servers) {
205837
+ return JSON.stringify({
205838
+ mcpServers: Object.fromEntries(
205839
+ Object.entries(servers).map(([name25, { url: url2, token }]) => [
205840
+ name25,
205841
+ { type: "http", url: url2, headers: { Authorization: `Bearer ${token}` } }
205842
+ ])
205843
+ )
205844
+ });
205845
+ }
205672
205846
  function withNpxFallback(nativeBinary, args) {
205673
205847
  if (nativeBinary) {
205674
205848
  return { command: nativeBinary, args };
205675
205849
  }
205676
205850
  return { command: "npx", args: ["-y", CLAUDE_NPM_PACKAGE, ...args] };
205677
205851
  }
205678
- function buildClaudeSessionSpawnConfig(nativeBinary, permissionMode, mcpConfigArg, model) {
205852
+ function buildClaudeSessionSpawnConfig(nativeBinary, permissionMode, mcpConfigArg, model, allowedTools) {
205679
205853
  const permissionFlag = permissionMode === "plan" ? "--permission-mode=plan" : "--dangerously-skip-permissions";
205680
205854
  const args = [
205681
205855
  ...STREAM_JSON_ARGS,
@@ -205696,6 +205870,9 @@ function buildClaudeSessionSpawnConfig(nativeBinary, permissionMode, mcpConfigAr
205696
205870
  if (mcpConfigArg) {
205697
205871
  args.push("--mcp-config", mcpConfigArg);
205698
205872
  }
205873
+ if (allowedTools?.length) {
205874
+ args.push("--allowedTools", allowedTools.join(","));
205875
+ }
205699
205876
  return withNpxFallback(nativeBinary, args);
205700
205877
  }
205701
205878
  function buildClaudeStreamExecutorSpawn(nativeBinary) {
@@ -206881,132 +207058,6 @@ function sessionMilestoneForTurnEnd(opts) {
206881
207058
  return void 0;
206882
207059
  }
206883
207060
 
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
207061
  // src/providers/claude-code-provider.ts
207011
207062
  var ClaudeCodeProvider = class {
207012
207063
  getAgentType() {
@@ -207024,12 +207075,16 @@ var ClaudeCodeProvider = class {
207024
207075
  isAvailable() {
207025
207076
  return true;
207026
207077
  }
207027
- buildSpawnConfig(_cwd, permissionMode, crossRemoteMcp, model) {
207078
+ buildSpawnConfig(_cwd, permissionMode, crossRemoteMcp, model, sessionToolsMcp) {
207079
+ const mcpServers = {};
207080
+ if (crossRemoteMcp) mcpServers["cross-remote"] = crossRemoteMcp;
207081
+ if (sessionToolsMcp) mcpServers[SESSION_TOOLS_MCP_SERVER_NAME] = sessionToolsMcp;
207028
207082
  return buildClaudeSessionSpawnConfig(
207029
207083
  this.detectBinary(),
207030
207084
  permissionMode,
207031
- crossRemoteMcp ? buildMcpConfigArg(crossRemoteMcp) : void 0,
207032
- model
207085
+ Object.keys(mcpServers).length > 0 ? buildClaudeMcpConfigArg(mcpServers) : void 0,
207086
+ model,
207087
+ sessionToolsMcp ? [CANONICAL_PROPOSE_SCHEDULE_TOOL] : void 0
207033
207088
  );
207034
207089
  }
207035
207090
  parseStdoutLine(line, _sessionId) {
@@ -207237,9 +207292,9 @@ var CodexProvider = class _CodexProvider {
207237
207292
  isAvailable() {
207238
207293
  return true;
207239
207294
  }
207240
- buildSpawnConfig(_cwd, permissionMode, crossRemoteMcp, model) {
207295
+ buildSpawnConfig(_cwd, permissionMode, crossRemoteMcp, model, sessionToolsMcp) {
207241
207296
  this.lastPermissionMode = permissionMode;
207242
- return buildCodexAppServerSpawnConfig(this.detectBinary(), crossRemoteMcp, model);
207297
+ return buildCodexAppServerSpawnConfig(this.detectBinary(), crossRemoteMcp, model, sessionToolsMcp);
207243
207298
  }
207244
207299
  // ============ Task 5.5: parseStdoutLine — JSON-RPC message routing ============
207245
207300
  parseStdoutLine(line, sessionId) {
@@ -207400,7 +207455,7 @@ var CodexProvider = class _CodexProvider {
207400
207455
  }
207401
207456
  case "mcpToolCall": {
207402
207457
  const id = item.id ?? this.generateId();
207403
- const toolName = item.tool ?? "MCP";
207458
+ const toolName = item.tool ? canonicalizeSessionToolName(item.tool, item.server) : "MCP";
207404
207459
  const output = item.error?.message ?? (item.result ? JSON.stringify(item.result) : "");
207405
207460
  return [
207406
207461
  { type: "tool_use", tool: toolName, input: item.arguments, toolUseId: id },
@@ -207785,7 +207840,7 @@ var EntryTracker = class {
207785
207840
  // src/utils/worktree-paths.ts
207786
207841
  import path7 from "path";
207787
207842
  import { createHash } from "crypto";
207788
- import { execSync } from "child_process";
207843
+ import { execSync, execFileSync as execFileSync2 } from "child_process";
207789
207844
  var WORKTREE_BASE_DIR = "/var/tmp/vibedeckx/worktrees";
207790
207845
  var WORKTREE_LIST_TTL_MS = 1e4;
207791
207846
  var worktreeListCache = /* @__PURE__ */ new Map();
@@ -207990,6 +208045,41 @@ async function anchorRootWorkspaceBranch(storage, projectId, projectPath, observ
207990
208045
  });
207991
208046
  return { anchored: true, expectedBranch: rootEntry.branch };
207992
208047
  }
208048
+ function localBranchExists(projectPath, branch) {
208049
+ try {
208050
+ execFileSync2("git", ["show-ref", "--verify", "--quiet", `refs/heads/${branch}`], {
208051
+ cwd: projectPath,
208052
+ encoding: "utf-8",
208053
+ stdio: ["pipe", "pipe", "pipe"]
208054
+ });
208055
+ return true;
208056
+ } catch {
208057
+ return false;
208058
+ }
208059
+ }
208060
+ async function setRootWorkspaceAnchor(storage, projectId, projectPath, branch) {
208061
+ invalidateWorktreeListCache(projectPath);
208062
+ const entries = readWorktreeListTolerant(projectPath);
208063
+ const rootEntry = entries[0];
208064
+ if (!rootEntry || !localBranchExists(projectPath, branch)) {
208065
+ return { anchored: false, reason: rootEntry ? "unknown-branch" : "not-a-repository" };
208066
+ }
208067
+ const registered = await storage.workspaceRegistry.listByProject(projectId, "local");
208068
+ const takenByWorkspace = registered.some((row) => row.workspace.branch !== "" && row.workspace.branch === branch);
208069
+ const takenByWorktree = entries.slice(1).some((entry) => entry.branch === branch);
208070
+ if (takenByWorkspace || takenByWorktree) {
208071
+ return { anchored: false, reason: "branch-is-another-workspace" };
208072
+ }
208073
+ await storage.workspaceRegistry.registerReadyCheckout({
208074
+ projectId,
208075
+ branch: "",
208076
+ // The main-workspace identity sentinel; never the branch name.
208077
+ targetId: "local",
208078
+ worktreePath: rootEntry.path,
208079
+ expectedBranch: branch
208080
+ });
208081
+ return { anchored: true, expectedBranch: branch };
208082
+ }
207993
208083
 
207994
208084
  // ../../node_modules/.pnpm/@ai-sdk+provider@3.0.8/node_modules/@ai-sdk/provider/dist/index.mjs
207995
208085
  var marker = "vercel.ai.error";
@@ -228912,11 +229002,11 @@ async function generateSessionTitle(storage, userMessage, userId) {
228912
229002
  }
228913
229003
 
228914
229004
  // src/utils/review-snapshot.ts
228915
- import { execFileSync as execFileSync2 } from "child_process";
229005
+ import { execFileSync as execFileSync3 } from "child_process";
228916
229006
  var MAX_BUFFER = 10 * 1024 * 1024;
228917
229007
  var ABSENT = "absent";
228918
229008
  function git(cwd, args, input) {
228919
- return execFileSync2("git", args, {
229009
+ return execFileSync3("git", args, {
228920
229010
  cwd,
228921
229011
  encoding: "utf-8",
228922
229012
  maxBuffer: MAX_BUFFER,
@@ -229405,6 +229495,14 @@ var AgentSessionManager = class {
229405
229495
  * Set to true from `vibedeckx connect` after `createServer`.
229406
229496
  */
229407
229497
  suppressTitleGeneration = false;
229498
+ /**
229499
+ * Loopback base URL of this process's own HTTP server (e.g.
229500
+ * "http://127.0.0.1:5173"), set by server.start/startLocal once bound. Agent
229501
+ * processes are spawned by this same process, so this is how they reach the
229502
+ * session-scoped MCP tools. Null until the server listens, and under local
229503
+ * TLS termination — in both cases the tools are simply not offered.
229504
+ */
229505
+ localApiOrigin = null;
229408
229506
  capacityQueue = Promise.resolve();
229409
229507
  /**
229410
229508
  * Sessions whose retention delete has passed its re-check and is in flight.
@@ -229907,7 +230005,20 @@ var AgentSessionManager = class {
229907
230005
  this.broadcastRaw(session.id, { finished: true });
229908
230006
  return;
229909
230007
  }
229910
- const config2 = provider.buildSpawnConfig(cwd, session.permissionMode, session.crossRemoteMcp, session.model);
230008
+ const sessionToolsMcp = await mintSessionToolsMcpConfig(
230009
+ { storage: this.storage },
230010
+ { sessionId: session.id, origin: this.localApiOrigin }
230011
+ ).catch((err) => {
230012
+ console.error(`[AgentSession] Failed to mint session tools MCP config for ${session.id}:`, err);
230013
+ return void 0;
230014
+ });
230015
+ const config2 = provider.buildSpawnConfig(
230016
+ cwd,
230017
+ session.permissionMode,
230018
+ session.crossRemoteMcp,
230019
+ session.model,
230020
+ sessionToolsMcp
230021
+ );
229911
230022
  if (config2.command !== "npx") {
229912
230023
  const agentVersion = getBinaryVersion(config2.command);
229913
230024
  console.log(`[AgentSession] ${provider.getDisplayName()} version: ${agentVersion ?? "unknown (--version probe failed)"}`);
@@ -231800,8 +231911,8 @@ var VirtualWsAdapter = class _VirtualWsAdapter extends EventEmitter {
231800
231911
  /** Send data to the remote side via the provided callback. */
231801
231912
  send(data) {
231802
231913
  if (this.readyState !== _VirtualWsAdapter.OPEN) return;
231803
- const str = typeof data === "string" ? data : data.toString("utf-8");
231804
- this.sendFn(str);
231914
+ const str2 = typeof data === "string" ? data : data.toString("utf-8");
231915
+ this.sendFn(str2);
231805
231916
  }
231806
231917
  /** Close the virtual connection. */
231807
231918
  close(code, reason) {
@@ -231902,6 +232013,121 @@ function runUpdatedFrameForSubscribers(evt) {
231902
232013
  return JSON.stringify({ workflowRunUpdated: evt.run });
231903
232014
  }
231904
232015
 
232016
+ // src/utils/cross-remote-token.ts
232017
+ import { createHmac as createHmac2, randomBytes as randomBytes2, timingSafeEqual as timingSafeEqual2 } from "crypto";
232018
+ var CROSS_REMOTE_SECRET_SETTING = "cross_remote_token_secret";
232019
+ var CROSS_REMOTE_TOKEN_TTL_MS = 864e5;
232020
+ var sign2 = (secret, body) => createHmac2("sha256", secret).update(body).digest("base64url");
232021
+ function signCrossRemoteToken(secret, payload, nowMs, ttlMs = CROSS_REMOTE_TOKEN_TTL_MS) {
232022
+ const wire = {
232023
+ u: payload.userId,
232024
+ s: payload.sessionId,
232025
+ src: payload.sourceRemoteServerId,
232026
+ exp: nowMs + ttlMs
232027
+ };
232028
+ const body = Buffer.from(JSON.stringify(wire)).toString("base64url");
232029
+ return `${body}.${sign2(secret, body)}`;
232030
+ }
232031
+ function verifyCrossRemoteToken(secret, token, nowMs) {
232032
+ const parts = token.split(".");
232033
+ if (parts.length !== 2) return null;
232034
+ const [body, providedSig] = parts;
232035
+ if (!body || !providedSig) return null;
232036
+ const expectedSig = sign2(secret, body);
232037
+ const provided = Buffer.from(providedSig);
232038
+ const expected = Buffer.from(expectedSig);
232039
+ if (provided.length !== expected.length) return null;
232040
+ if (!timingSafeEqual2(provided, expected)) return null;
232041
+ let wire;
232042
+ try {
232043
+ wire = JSON.parse(Buffer.from(body, "base64url").toString());
232044
+ } catch {
232045
+ return null;
232046
+ }
232047
+ if (typeof wire.u !== "string" || typeof wire.s !== "string" || typeof wire.exp !== "number") return null;
232048
+ if (wire.src !== null && typeof wire.src !== "string") return null;
232049
+ if (!wire.u || !wire.s) return null;
232050
+ if (nowMs >= wire.exp) return null;
232051
+ return { userId: wire.u, sessionId: wire.s, sourceRemoteServerId: wire.src };
232052
+ }
232053
+ async function getCrossRemoteSecret(storage) {
232054
+ return storage.settings.getOrCreate(
232055
+ CROSS_REMOTE_SECRET_SETTING,
232056
+ () => randomBytes2(32).toString("hex")
232057
+ );
232058
+ }
232059
+
232060
+ // src/cross-remote-access.ts
232061
+ var CROSS_REMOTE_MCP_PATH = "/api/cross-remote-mcp";
232062
+ var TOOL_TIERS = {
232063
+ remote_read_file: "read",
232064
+ remote_list_dir: "read",
232065
+ remote_stat_path: "read",
232066
+ remote_process_list: "read",
232067
+ remote_bash: "exec"
232068
+ };
232069
+ var MAX_IN_FLIGHT_PER_SESSION = 4;
232070
+ var tierSatisfies = (granted, required2) => granted === "exec" || granted === "read" && required2 === "read";
232071
+ var isOnline = (deps, server) => deps.reverseConnectManager.isConnected(server.id);
232072
+ function isSessionUsable(deps, sessionId) {
232073
+ if (sessionId.startsWith("remote-")) return deps.remoteSessionMap.has(sessionId);
232074
+ return deps.agentSessionManager.getSessionProcessAlive(sessionId);
232075
+ }
232076
+ async function resolveTarget(deps, payload, targetRemoteId, requiredTier) {
232077
+ if (payload.sourceRemoteServerId && payload.sourceRemoteServerId === targetRemoteId) {
232078
+ return { ok: false, reason: "not_accessible" };
232079
+ }
232080
+ const server = await deps.storage.remoteServers.getById(targetRemoteId, payload.userId);
232081
+ if (!server) return { ok: false, reason: "not_accessible" };
232082
+ if (!tierSatisfies(server.cross_remote_access, requiredTier)) {
232083
+ return { ok: false, reason: "not_accessible" };
232084
+ }
232085
+ if (!isOnline(deps, server)) return { ok: false, reason: "offline" };
232086
+ return { ok: true, server };
232087
+ }
232088
+ async function listAccessibleRemotes(deps, payload) {
232089
+ const servers = await deps.storage.remoteServers.getAll(payload.userId);
232090
+ 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) }));
232091
+ }
232092
+ var SessionConcurrencyGuard = class {
232093
+ constructor(maxInFlight = MAX_IN_FLIGHT_PER_SESSION) {
232094
+ this.maxInFlight = maxInFlight;
232095
+ }
232096
+ maxInFlight;
232097
+ inFlight = /* @__PURE__ */ new Map();
232098
+ acquire(sessionId) {
232099
+ const current = this.inFlight.get(sessionId) ?? 0;
232100
+ if (current >= this.maxInFlight) return false;
232101
+ this.inFlight.set(sessionId, current + 1);
232102
+ return true;
232103
+ }
232104
+ release(sessionId) {
232105
+ const current = this.inFlight.get(sessionId) ?? 0;
232106
+ if (current <= 1) this.inFlight.delete(sessionId);
232107
+ else this.inFlight.set(sessionId, current - 1);
232108
+ }
232109
+ };
232110
+
232111
+ // src/cross-remote-mcp-config.ts
232112
+ async function mintCrossRemoteMcpConfig(deps, args) {
232113
+ const baseUrl = process.env.VIBEDECKX_PUBLIC_URL?.trim();
232114
+ if (!baseUrl) return void 0;
232115
+ const { userId } = args;
232116
+ if (!userId) return void 0;
232117
+ const servers = await deps.storage.remoteServers.getAll(userId);
232118
+ const hasTarget = servers.some(
232119
+ (s3) => s3.cross_remote_access !== "off" && s3.id !== args.sourceRemoteServerId
232120
+ );
232121
+ if (!hasTarget) return void 0;
232122
+ const secret = await getCrossRemoteSecret(deps.storage);
232123
+ const token = signCrossRemoteToken(
232124
+ secret,
232125
+ { userId, sessionId: args.sessionId, sourceRemoteServerId: args.sourceRemoteServerId },
232126
+ Date.now()
232127
+ );
232128
+ return { url: `${baseUrl.replace(/\/+$/, "")}${CROSS_REMOTE_MCP_PATH}`, token };
232129
+ }
232130
+
231905
232131
  // src/routes/notification-outbox-routes.ts
231906
232132
  var import_fastify_plugin = __toESM(require_plugin2(), 1);
231907
232133
  var MAX_SESSIONS_PER_REQUEST = 100;
@@ -238788,11 +239014,11 @@ var ProjectChatManager = class {
238788
239014
  import { randomUUID as randomUUID6 } from "crypto";
238789
239015
 
238790
239016
  // src/utils/review-target.ts
238791
- import { execFileSync as execFileSync3 } from "child_process";
239017
+ import { execFileSync as execFileSync4 } from "child_process";
238792
239018
  import { createHash as createHash3 } from "crypto";
238793
239019
  var MAX_BUFFER2 = 10 * 1024 * 1024;
238794
239020
  function git2(cwd, args) {
238795
- return execFileSync3("git", args, {
239021
+ return execFileSync4("git", args, {
238796
239022
  cwd,
238797
239023
  encoding: "utf-8",
238798
239024
  maxBuffer: MAX_BUFFER2,
@@ -238978,6 +239204,7 @@ ${opts.reviewFocus}` : null,
238978
239204
  "- Verify whether your previous feedback was addressed correctly.",
238979
239205
  "- 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
239206
  "- Check for regressions and remaining correctness or test gaps.",
239207
+ "- 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
239208
  "- Do NOT modify files \u2014 remain in read-only review mode.",
238982
239209
  reviewTargetPromptLine(opts.target),
238983
239210
  ...VERDICT_INSTRUCTIONS
@@ -239484,33 +239711,27 @@ var WorkflowEngine = class {
239484
239711
  return updated;
239485
239712
  }
239486
239713
  /**
239487
- * Human takeover (spec §3.4): user sent a message directly to a run session.
239714
+ * Handle a user message sent directly to a review participant.
239488
239715
  *
239489
- * Reviewer 分流:向 reviewer 发消息不再是接管——它开启一轮讨论,把 run
239490
- * 移入 `discussing`(gate 收起),等待显式的 requestFinalVerdict 重新出稿。
239491
- * 只有向 source session 发消息才算接管,结束 run
239716
+ * Reviewer 分流:向 reviewer 发消息会开启一轮讨论,把 run 移入
239717
+ * `discussing`(gate 收起),等待显式的 requestFinalVerdict 重新出稿。
239718
+ * source session 发消息不改变 review run:review 针对启动时捕获的
239719
+ * 快照继续独立运行,只有显式取消操作才会结束它。
239492
239720
  *
239493
239721
  * Never-throws contract: this is called inline from the agent-session
239494
239722
  * `/message` route BEFORE the user's message is delivered
239495
239723
  * (agentOps.sendUserMessage). A throw here would abort delivery of that
239496
- * message, so this method must never throw any error from cancelRun is
239497
- * caught and swallowed, never rethrown. `bad-state` is the expected case:
239498
- * it means the run is mid-send (approveFeedback's own CAS holds it in
239499
- * `sending_feedback`), a transient race, so we just log and let the
239500
- * takeover no-op; the run resolves on its own via approveFeedback's
239501
- * completion/rollback. Any other error is unexpected but still swallowed
239502
- * to honor the contract, with a louder log so it isn't silently lost.
239724
+ * message, so this method must never throw. Storage errors from the reviewer
239725
+ * transition are caught and swallowed so they cannot block message delivery.
239503
239726
  */
239504
239727
  async handleExternalUserMessage(sessionId) {
239505
239728
  const p2 = this.participants.get(sessionId);
239506
239729
  if (!p2) return;
239507
239730
  if (p2.role === "reviewer") {
239508
239731
  try {
239509
- const moved = await this.storage.workflowRuns.transition(p2.runId, "waiting_feedback", "discussing", { error: null }) || await this.storage.workflowRuns.transition(p2.runId, "waiting_reviewer", "discussing", { error: null });
239510
- if (moved) {
239511
- const updated = await this.storage.workflowRuns.getById(p2.runId);
239512
- if (updated) this.emitRunUpdated(updated);
239513
- }
239732
+ await this.storage.workflowRuns.transition(p2.runId, "waiting_feedback", "discussing", { error: null }) || await this.storage.workflowRuns.transition(p2.runId, "waiting_reviewer", "discussing", { error: null });
239733
+ const updated = await this.storage.workflowRuns.getById(p2.runId);
239734
+ if (updated) this.emitRunUpdated(updated);
239514
239735
  } catch (err) {
239515
239736
  console.error(
239516
239737
  `[WorkflowEngine] handleExternalUserMessage: failed moving run ${p2.runId} to discussing; swallowed to honor never-throws contract`,
@@ -239519,20 +239740,6 @@ var WorkflowEngine = class {
239519
239740
  }
239520
239741
  return;
239521
239742
  }
239522
- try {
239523
- await this.cancelRun(p2.runId, "\u7528\u6237\u63A5\u7BA1\uFF1A\u76F4\u63A5\u5411 source session \u53D1\u9001\u4E86\u6D88\u606F\uFF0Creview \u5DF2\u7ED3\u675F\u3002");
239524
- } catch (err) {
239525
- if (err instanceof WorkflowError && err.code === "bad-state") {
239526
- console.warn(
239527
- `[WorkflowEngine] handleExternalUserMessage: run ${p2.runId} is mid-send (sending_feedback); skipping takeover cancel`
239528
- );
239529
- } else {
239530
- console.error(
239531
- `[WorkflowEngine] handleExternalUserMessage: unexpected error cancelling run ${p2.runId}; swallowed to honor never-throws contract`,
239532
- err
239533
- );
239534
- }
239535
- }
239536
239743
  }
239537
239744
  emitRunUpdated(run2) {
239538
239745
  this.eventBus?.emit({ type: "workflow:run-updated", projectId: run2.project_id, branch: run2.branch, run: run2 });
@@ -244104,6 +244311,16 @@ async function getRemoteConfig(fastify2, project) {
244104
244311
  const all = await getAllRemoteConfigs(fastify2, project);
244105
244312
  return all.length > 0 ? all[0] : null;
244106
244313
  }
244314
+ function anchorFailure(reason, branch) {
244315
+ switch (reason) {
244316
+ case "unknown-branch":
244317
+ return { code: 400, error: `Branch '${branch}' does not exist in this repository` };
244318
+ case "branch-is-another-workspace":
244319
+ return { code: 409, error: `'${branch}' already has its own workspace` };
244320
+ case "not-a-repository":
244321
+ return { code: 400, error: "The main workspace is not a Git repository" };
244322
+ }
244323
+ }
244107
244324
  async function ensurePathProject(fastify2, projectPath) {
244108
244325
  const projectId = await ensurePathProjectId(fastify2, projectPath);
244109
244326
  const project = await fastify2.storage.projects.getById(projectId);
@@ -244209,9 +244426,9 @@ var routes8 = async (fastify2) => {
244209
244426
  console.log(`[worktree] ${requestId} Creating: branch=${trimmedBranch}, base=${startPoint}, path=${projectPath}`);
244210
244427
  let pendingCheckoutId = null;
244211
244428
  try {
244212
- const { execFileSync: execFileSync7 } = await import("child_process");
244429
+ const { execFileSync: execFileSync8 } = await import("child_process");
244213
244430
  try {
244214
- execFileSync7("git", ["rev-parse", "--verify", `refs/heads/${trimmedBranch}`], {
244431
+ execFileSync8("git", ["rev-parse", "--verify", `refs/heads/${trimmedBranch}`], {
244215
244432
  cwd: projectPath,
244216
244433
  encoding: "utf-8",
244217
244434
  stdio: ["pipe", "pipe", "pipe"]
@@ -244230,7 +244447,7 @@ var routes8 = async (fastify2) => {
244230
244447
  });
244231
244448
  pendingCheckoutId = pending.checkout.id;
244232
244449
  await mkdir4(getWorktreeBaseForProject(projectPath), { recursive: true });
244233
- execFileSync7("git", ["worktree", "add", "-b", trimmedBranch, worktreeAbsolutePath, startPoint], {
244450
+ execFileSync8("git", ["worktree", "add", "-b", trimmedBranch, worktreeAbsolutePath, startPoint], {
244234
244451
  cwd: projectPath,
244235
244452
  encoding: "utf-8",
244236
244453
  stdio: ["pipe", "pipe", "pipe"]
@@ -244266,7 +244483,7 @@ var routes8 = async (fastify2) => {
244266
244483
  }
244267
244484
  let worktreeRemoved = false;
244268
244485
  try {
244269
- const { execSync: execSync2, execFileSync: execFileSync7 } = await import("child_process");
244486
+ const { execSync: execSync2, execFileSync: execFileSync8 } = await import("child_process");
244270
244487
  const worktreeAbsPath = resolveWorktreePath(projectPath, branch);
244271
244488
  try {
244272
244489
  const statusOutput = execSync2("git status --porcelain", {
@@ -244296,7 +244513,7 @@ var routes8 = async (fastify2) => {
244296
244513
  if (match2) branchToDelete = match2.branch;
244297
244514
  } catch {
244298
244515
  }
244299
- execFileSync7("git", ["worktree", "remove", worktreeAbsPath], {
244516
+ execFileSync8("git", ["worktree", "remove", worktreeAbsPath], {
244300
244517
  cwd: projectPath,
244301
244518
  encoding: "utf-8",
244302
244519
  stdio: ["pipe", "pipe", "pipe"]
@@ -244305,7 +244522,7 @@ var routes8 = async (fastify2) => {
244305
244522
  invalidateWorktreeListCache(projectPath);
244306
244523
  if (branchToDelete) {
244307
244524
  try {
244308
- execFileSync7("git", ["branch", "-d", branchToDelete], {
244525
+ execFileSync8("git", ["branch", "-d", branchToDelete], {
244309
244526
  cwd: projectPath,
244310
244527
  encoding: "utf-8",
244311
244528
  stdio: ["pipe", "pipe", "pipe"]
@@ -244347,6 +244564,24 @@ var routes8 = async (fastify2) => {
244347
244564
  return reply.code(500).send({ error: `Failed to anchor workspace: ${errorMessage}` });
244348
244565
  }
244349
244566
  });
244567
+ fastify2.post("/api/path/worktrees/anchor-branch", async (req, reply) => {
244568
+ const { path: projectPath, branch } = req.body ?? {};
244569
+ if (!projectPath || !branch) {
244570
+ return reply.code(400).send({ error: "Path and branch are required" });
244571
+ }
244572
+ try {
244573
+ const project = await ensurePathProject(fastify2, projectPath);
244574
+ const result = await setRootWorkspaceAnchor(fastify2.storage, project.id, projectPath, branch);
244575
+ if (!result.anchored) {
244576
+ const failure = anchorFailure(result.reason, branch);
244577
+ return reply.code(failure.code).send({ error: failure.error });
244578
+ }
244579
+ return reply.code(200).send({ expectedBranch: result.expectedBranch });
244580
+ } catch (error48) {
244581
+ const errorMessage = error48 instanceof Error ? error48.message : "Unknown error";
244582
+ return reply.code(500).send({ error: `Failed to anchor workspace: ${errorMessage}` });
244583
+ }
244584
+ });
244350
244585
  fastify2.get("/api/projects/:id/worktrees", async (req, reply) => {
244351
244586
  const userId = requireUserFacingUserId(req, reply);
244352
244587
  if (userId === null) return;
@@ -244447,6 +244682,54 @@ var routes8 = async (fastify2) => {
244447
244682
  return reply.code(500).send({ error: `Failed to anchor workspace: ${errorMessage}` });
244448
244683
  }
244449
244684
  });
244685
+ fastify2.post("/api/projects/:id/worktrees/anchor-branch", async (req, reply) => {
244686
+ const userId = requireUserFacingUserId(req, reply);
244687
+ if (userId === null) return;
244688
+ const project = await fastify2.storage.projects.getById(req.params.id, userId);
244689
+ if (!project) {
244690
+ return reply.code(404).send({ error: "Project not found" });
244691
+ }
244692
+ const branch = req.body?.branch;
244693
+ if (!branch) return reply.code(400).send({ error: "Branch is required" });
244694
+ const requestedTarget = req.body.target ?? "local";
244695
+ let remoteConfig;
244696
+ if (requestedTarget === "local") {
244697
+ remoteConfig = project.path ? null : await getRemoteConfig(fastify2, project);
244698
+ } else {
244699
+ const targetRemote = await fastify2.storage.projectRemotes.getByProjectAndServer(project.id, requestedTarget);
244700
+ if (!targetRemote) return reply.code(400).send({ error: "Unknown remote target" });
244701
+ remoteConfig = { serverId: targetRemote.remote_server_id, remotePath: targetRemote.remote_path };
244702
+ }
244703
+ if (remoteConfig) {
244704
+ const result = await proxyToRemoteAuto(
244705
+ remoteConfig.serverId,
244706
+ "POST",
244707
+ "/api/path/worktrees/anchor-branch",
244708
+ { path: remoteConfig.remotePath, branch },
244709
+ { reverseConnectManager: fastify2.reverseConnectManager }
244710
+ );
244711
+ if (result.status === 404) {
244712
+ return reply.code(501).send({
244713
+ error: "This remote worker is too old to change a workspace branch. Update it and try again."
244714
+ });
244715
+ }
244716
+ return reply.code(proxyStatus(result)).send(result.data);
244717
+ }
244718
+ if (!project.path) {
244719
+ return reply.code(400).send({ error: "Project has no local path" });
244720
+ }
244721
+ try {
244722
+ const result = await setRootWorkspaceAnchor(fastify2.storage, project.id, project.path, branch);
244723
+ if (!result.anchored) {
244724
+ const failure = anchorFailure(result.reason, branch);
244725
+ return reply.code(failure.code).send({ error: failure.error });
244726
+ }
244727
+ return reply.code(200).send({ expectedBranch: result.expectedBranch });
244728
+ } catch (error48) {
244729
+ const errorMessage = error48 instanceof Error ? error48.message : "Unknown error";
244730
+ return reply.code(500).send({ error: `Failed to anchor workspace: ${errorMessage}` });
244731
+ }
244732
+ });
244450
244733
  fastify2.get("/api/projects/:id/branches", async (req, reply) => {
244451
244734
  const userId = requireUserFacingUserId(req, reply);
244452
244735
  if (userId === null) return;
@@ -244583,7 +244866,7 @@ var routes8 = async (fastify2) => {
244583
244866
  return reply.code(400).send({ error: "Project has no local path" });
244584
244867
  }
244585
244868
  const deleteLocal = async () => {
244586
- const { execSync: execSync2, execFileSync: execFileSync7 } = await import("child_process");
244869
+ const { execSync: execSync2, execFileSync: execFileSync8 } = await import("child_process");
244587
244870
  const worktreeAbsPath = resolveWorktreePath(project.path, branch);
244588
244871
  const registered = await fastify2.storage.workspaceRegistry.getByProjectBranch(project.id, branch, "local");
244589
244872
  if (registered) {
@@ -244615,7 +244898,7 @@ var routes8 = async (fastify2) => {
244615
244898
  if (match2) branchToDelete = match2.branch;
244616
244899
  } catch {
244617
244900
  }
244618
- execFileSync7("git", ["worktree", "remove", worktreeAbsPath], {
244901
+ execFileSync8("git", ["worktree", "remove", worktreeAbsPath], {
244619
244902
  cwd: project.path,
244620
244903
  encoding: "utf-8",
244621
244904
  stdio: ["pipe", "pipe", "pipe"]
@@ -244624,7 +244907,7 @@ var routes8 = async (fastify2) => {
244624
244907
  invalidateWorktreeListCache(project.path);
244625
244908
  if (branchToDelete) {
244626
244909
  try {
244627
- execFileSync7("git", ["branch", "-d", branchToDelete], {
244910
+ execFileSync8("git", ["branch", "-d", branchToDelete], {
244628
244911
  cwd: project.path,
244629
244912
  encoding: "utf-8",
244630
244913
  stdio: ["pipe", "pipe", "pipe"]
@@ -244819,9 +245102,9 @@ var routes8 = async (fastify2) => {
244819
245102
  return reply.code(201).send({ worktree: { branch: trimmedBranch }, results: results2 });
244820
245103
  }
244821
245104
  const createLocal = async () => {
244822
- const { execFileSync: execFileSync7 } = await import("child_process");
245105
+ const { execFileSync: execFileSync8 } = await import("child_process");
244823
245106
  try {
244824
- execFileSync7("git", ["rev-parse", "--verify", `refs/heads/${trimmedBranch}`], {
245107
+ execFileSync8("git", ["rev-parse", "--verify", `refs/heads/${trimmedBranch}`], {
244825
245108
  cwd: project.path,
244826
245109
  encoding: "utf-8",
244827
245110
  stdio: ["pipe", "pipe", "pipe"]
@@ -244840,7 +245123,7 @@ var routes8 = async (fastify2) => {
244840
245123
  });
244841
245124
  try {
244842
245125
  await mkdir4(getWorktreeBaseForProject(project.path), { recursive: true });
244843
- execFileSync7("git", ["worktree", "add", "-b", trimmedBranch, worktreeAbsolutePath, localStartPoint], {
245126
+ execFileSync8("git", ["worktree", "add", "-b", trimmedBranch, worktreeAbsolutePath, localStartPoint], {
244844
245127
  cwd: project.path,
244845
245128
  encoding: "utf-8",
244846
245129
  stdio: ["pipe", "pipe", "pipe"]
@@ -244919,7 +245202,7 @@ var worktree_routes_default = (0, import_fastify_plugin9.default)(routes8, { nam
244919
245202
  var import_fastify_plugin10 = __toESM(require_plugin2(), 1);
244920
245203
  import path12 from "path";
244921
245204
  import { readFileSync as readFileSync4 } from "fs";
244922
- import { execFileSync as execFileSync5 } from "child_process";
245205
+ import { execFileSync as execFileSync6 } from "child_process";
244923
245206
 
244924
245207
  // src/utils/diff-parser.ts
244925
245208
  function parseDiffOutput(diffOutput) {
@@ -245012,10 +245295,10 @@ function parseDiffOutput(diffOutput) {
245012
245295
  }
245013
245296
 
245014
245297
  // src/merge-status.ts
245015
- import { execFileSync as execFileSync4 } from "child_process";
245298
+ import { execFileSync as execFileSync5 } from "child_process";
245016
245299
  var MAX_BUFFER3 = 10 * 1024 * 1024;
245017
245300
  function git3(cwd, args) {
245018
- return execFileSync4("git", args, {
245301
+ return execFileSync5("git", args, {
245019
245302
  cwd,
245020
245303
  encoding: "utf-8",
245021
245304
  maxBuffer: MAX_BUFFER3,
@@ -245168,7 +245451,7 @@ function buildDiffFallbackCommand(commit) {
245168
245451
  return `git show ${commit} --format="" --no-color`;
245169
245452
  }
245170
245453
  function runCompareToDiff(cwd, compareTo) {
245171
- return execFileSync5("git", ["diff", `${compareTo}...HEAD`, "--no-color"], {
245454
+ return execFileSync6("git", ["diff", `${compareTo}...HEAD`, "--no-color"], {
245172
245455
  cwd,
245173
245456
  encoding: "utf-8",
245174
245457
  maxBuffer: 10 * 1024 * 1024
@@ -251299,7 +251582,7 @@ var websocket_routes_default = (0, import_fastify_plugin24.default)(routes23, {
251299
251582
 
251300
251583
  // src/routes/reverse-connect-routes.ts
251301
251584
  var import_fastify_plugin25 = __toESM(require_plugin2(), 1);
251302
- import { randomBytes as randomBytes2, createHash as createHash8, verify as cryptoVerify } from "crypto";
251585
+ import { randomBytes as randomBytes3, createHash as createHash8, verify as cryptoVerify } from "crypto";
251303
251586
 
251304
251587
  // src/utils/rate-limited-warn.ts
251305
251588
  function createRateLimitedWarn(windowMs, maxKeys) {
@@ -251382,7 +251665,7 @@ var routes24 = async (fastify2) => {
251382
251665
  const ws = socket;
251383
251666
  const serverId = server.id;
251384
251667
  const ownerId = await fastify2.storage.remoteServers.getOwnerId(serverId) ?? "";
251385
- const nonce = randomBytes2(32);
251668
+ const nonce = randomBytes3(32);
251386
251669
  let settled = false;
251387
251670
  let stashedVersion;
251388
251671
  const recordWorkerVersion = async (reported) => {
@@ -252899,12 +253182,89 @@ var routes30 = async (fastify2) => {
252899
253182
  };
252900
253183
  var cross_remote_mcp_routes_default = (0, import_fastify_plugin31.default)(routes30, { name: "cross-remote-mcp-routes" });
252901
253184
 
252902
- // src/routes/schedule-routes.ts
253185
+ // src/routes/session-mcp-routes.ts
252903
253186
  var import_fastify_plugin32 = __toESM(require_plugin2(), 1);
253187
+ var PROTOCOL_VERSION2 = "2024-11-05";
253188
+ var TOOLS2 = [
253189
+ {
253190
+ name: PROPOSE_SCHEDULE_TOOL,
253191
+ description: PROPOSE_SCHEDULE_DESCRIPTION,
253192
+ inputSchema: PROPOSE_SCHEDULE_INPUT_SCHEMA
253193
+ }
253194
+ ];
253195
+ var textResult2 = (text2, isError = false) => ({
253196
+ content: [{ type: "text", text: text2 }],
253197
+ ...isError ? { isError: true } : {}
253198
+ });
253199
+ var routes31 = async (fastify2) => {
253200
+ let cachedSecret;
253201
+ const getSecret = () => {
253202
+ if (!cachedSecret) cachedSecret = getSessionToolsSecret(fastify2.storage);
253203
+ return cachedSecret;
253204
+ };
253205
+ const authenticate = async (request) => {
253206
+ const header = request.headers.authorization;
253207
+ if (!header?.startsWith("Bearer ")) return null;
253208
+ const secret = await getSecret();
253209
+ const payload = verifySessionToolsToken(secret, header.slice("Bearer ".length), Date.now());
253210
+ if (!payload) return null;
253211
+ if (!fastify2.agentSessionManager.getSessionProcessAlive(payload.sessionId)) return null;
253212
+ return payload;
253213
+ };
253214
+ const callTool = (toolName, args) => {
253215
+ if (toolName !== PROPOSE_SCHEDULE_TOOL) return textResult2(`Unknown tool: ${toolName}`, true);
253216
+ const parsed = parseProposeScheduleArgs(args);
253217
+ if (!parsed.ok) return textResult2(parsed.error, true);
253218
+ const cronError = validateCron(parsed.value.cron_expr, parsed.value.timezone);
253219
+ if (cronError) return textResult2(`Invalid cron expression: ${cronError}`, true);
253220
+ return textResult2(PROPOSE_SCHEDULE_ACK);
253221
+ };
253222
+ fastify2.post(SESSION_TOOLS_MCP_PATH, async (request, reply) => {
253223
+ const payload = await authenticate(request);
253224
+ if (!payload) return reply.code(401).send({ error: "Unauthorized" });
253225
+ const rpc = request.body;
253226
+ if (!rpc || rpc.jsonrpc !== "2.0" || typeof rpc.method !== "string") {
253227
+ return reply.code(400).send({ error: "Invalid JSON-RPC request" });
253228
+ }
253229
+ if (rpc.id === void 0) return reply.code(202).send();
253230
+ const respond = (result) => reply.send({ jsonrpc: "2.0", id: rpc.id, result });
253231
+ switch (rpc.method) {
253232
+ case "initialize":
253233
+ return respond({
253234
+ protocolVersion: PROTOCOL_VERSION2,
253235
+ capabilities: { tools: {} },
253236
+ serverInfo: { name: "vibedeckx-session-tools", version: "1.0.0" }
253237
+ });
253238
+ case "ping":
253239
+ return respond({});
253240
+ case "tools/list":
253241
+ return respond({ tools: TOOLS2 });
253242
+ case "tools/call": {
253243
+ const name25 = rpc.params?.name;
253244
+ if (typeof name25 !== "string") {
253245
+ return reply.send({ jsonrpc: "2.0", id: rpc.id, error: { code: -32602, message: "Missing tool name" } });
253246
+ }
253247
+ return respond(callTool(name25, rpc.params?.arguments ?? {}));
253248
+ }
253249
+ default:
253250
+ return reply.send({
253251
+ jsonrpc: "2.0",
253252
+ id: rpc.id,
253253
+ error: { code: -32601, message: `Method not found: ${rpc.method}` }
253254
+ });
253255
+ }
253256
+ });
253257
+ };
253258
+ var session_mcp_routes_default = (0, import_fastify_plugin32.default)(routes31, { name: "session-mcp-routes" });
253259
+
253260
+ // src/routes/schedule-routes.ts
253261
+ var import_fastify_plugin33 = __toESM(require_plugin2(), 1);
252904
253262
  import { randomUUID as randomUUID21 } from "crypto";
252905
253263
  import path17 from "path";
252906
253264
  var RUN_TYPES = ["command", "prompt"];
252907
253265
  var CWD_MODES = ["branch", "directory"];
253266
+ var SOURCE_ID_MAX = 200;
253267
+ var validSourceId = (value) => typeof value === "string" && value.length > 0 && value.length <= SOURCE_ID_MAX && value.trim() === value;
252908
253268
  function validRequestId(value) {
252909
253269
  return typeof value === "string" && value.length > 0 && value.length <= 200 && value.trim() === value;
252910
253270
  }
@@ -252919,7 +253279,7 @@ function validateResolved(b2) {
252919
253279
  if (cronError) return `Invalid cron expression: ${cronError}`;
252920
253280
  return null;
252921
253281
  }
252922
- var routes31 = async (fastify2) => {
253282
+ var routes32 = async (fastify2) => {
252923
253283
  const sendTerminalManualOutcome = (reply, request, replay) => {
252924
253284
  if (!request.terminalStatus || request.terminalResponseStatus === null) return null;
252925
253285
  const common = { runId: request.runId, status: request.terminalStatus, durable: true, replay };
@@ -252989,8 +253349,22 @@ var routes31 = async (fastify2) => {
252989
253349
  if (target !== "local" && !await fastify2.storage.projectRemotes.getByProjectAndServer(req.params.projectId, target)) {
252990
253350
  return reply.code(400).send({ error: "Unknown remote target" });
252991
253351
  }
253352
+ let source = null;
253353
+ if (b2.source) {
253354
+ if (!validSourceId(b2.source.session_id) || !validSourceId(b2.source.tool_use_id)) {
253355
+ return reply.code(400).send({ error: "Invalid source" });
253356
+ }
253357
+ const sourceSession = await fastify2.storage.agentSessions.getById(b2.source.session_id);
253358
+ const owned = sourceSession ? sourceSession.project_id === req.params.projectId : !!await fastify2.storage.remoteSessionMappings.getAuthorizedByLocal(
253359
+ b2.source.session_id,
253360
+ req.params.projectId
253361
+ );
253362
+ if (!owned) return reply.code(400).send({ error: "Invalid source" });
253363
+ source = { session_id: b2.source.session_id, tool_use_id: b2.source.tool_use_id };
253364
+ }
253365
+ const newId = randomUUID21();
252992
253366
  const schedule = await fastify2.storage.scheduledTasks.create({
252993
- id: randomUUID21(),
253367
+ id: newId,
252994
253368
  project_id: req.params.projectId,
252995
253369
  name: b2.name.trim(),
252996
253370
  cron_expr: resolved.cron_expr,
@@ -253003,10 +253377,20 @@ var routes31 = async (fastify2) => {
253003
253377
  directory: resolved.directory,
253004
253378
  timeout_seconds: resolved.timeout_seconds,
253005
253379
  enabled: b2.enabled ?? true,
253006
- target
253380
+ target,
253381
+ source
253007
253382
  });
253008
253383
  await fastify2.scheduler.reschedule(schedule.id);
253009
- return reply.code(201).send({ schedule });
253384
+ const created = schedule.id === newId;
253385
+ if (created) {
253386
+ fastify2.eventBus.emit({
253387
+ type: "schedule:changed",
253388
+ projectId: req.params.projectId,
253389
+ scheduleId: schedule.id,
253390
+ change: "created"
253391
+ });
253392
+ }
253393
+ return reply.code(created ? 201 : 200).send({ schedule });
253010
253394
  }
253011
253395
  );
253012
253396
  fastify2.put(
@@ -253051,6 +253435,12 @@ var routes31 = async (fastify2) => {
253051
253435
  target: b2.target
253052
253436
  });
253053
253437
  await fastify2.scheduler.reschedule(req.params.id);
253438
+ fastify2.eventBus.emit({
253439
+ type: "schedule:changed",
253440
+ projectId: existing.project_id,
253441
+ scheduleId: req.params.id,
253442
+ change: "updated"
253443
+ });
253054
253444
  return reply.code(200).send({ schedule });
253055
253445
  }
253056
253446
  );
@@ -253063,6 +253453,12 @@ var routes31 = async (fastify2) => {
253063
253453
  if (!existing) return;
253064
253454
  fastify2.scheduler.unschedule(req.params.id);
253065
253455
  await fastify2.storage.scheduledTasks.delete(req.params.id);
253456
+ fastify2.eventBus.emit({
253457
+ type: "schedule:changed",
253458
+ projectId: existing.project_id,
253459
+ scheduleId: req.params.id,
253460
+ change: "deleted"
253461
+ });
253066
253462
  return reply.code(204).send();
253067
253463
  }
253068
253464
  );
@@ -253150,7 +253546,7 @@ var routes31 = async (fastify2) => {
253150
253546
  }
253151
253547
  );
253152
253548
  };
253153
- var schedule_routes_default = (0, import_fastify_plugin32.default)(routes31, { name: "schedule-routes" });
253549
+ var schedule_routes_default = (0, import_fastify_plugin33.default)(routes32, { name: "schedule-routes" });
253154
253550
 
253155
253551
  // src/search/catalog.ts
253156
253552
  var parseDbTimestamp5 = (ts) => {
@@ -253327,10 +253723,10 @@ var searchRoutes = async (fastify2) => {
253327
253723
  var search_routes_default = searchRoutes;
253328
253724
 
253329
253725
  // src/routes/notification-routes.ts
253330
- var import_fastify_plugin33 = __toESM(require_plugin2(), 1);
253726
+ var import_fastify_plugin34 = __toESM(require_plugin2(), 1);
253331
253727
  var MAX_LIMIT = 500;
253332
253728
  var DEFAULT_LIMIT = 100;
253333
- var routes32 = async (fastify2) => {
253729
+ var routes33 = async (fastify2) => {
253334
253730
  fastify2.get(
253335
253731
  "/api/notifications",
253336
253732
  async (req, reply) => {
@@ -253362,7 +253758,7 @@ var routes32 = async (fastify2) => {
253362
253758
  return reply.code(200).send({ ok: true });
253363
253759
  });
253364
253760
  };
253365
- var notification_routes_default = (0, import_fastify_plugin33.default)(routes32, { name: "notification-routes" });
253761
+ var notification_routes_default = (0, import_fastify_plugin34.default)(routes33, { name: "notification-routes" });
253366
253762
 
253367
253763
  // ../../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
253764
  import { Readable as Readable2 } from "stream";
@@ -253414,7 +253810,7 @@ var requestToProxyRequest = (req) => {
253414
253810
 
253415
253811
  // ../../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
253812
  init_dist();
253417
- var import_fastify_plugin34 = __toESM(require_plugin2(), 1);
253813
+ var import_fastify_plugin35 = __toESM(require_plugin2(), 1);
253418
253814
 
253419
253815
  // ../../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
253816
  init_chunk_JW73PKED();
@@ -253454,11 +253850,11 @@ function fapiUrlFromPublishableKey(publishableKey) {
253454
253850
  }
253455
253851
  return PROD_FAPI_URL;
253456
253852
  }
253457
- function stripTrailingSlashes(str) {
253458
- while (str.endsWith("/")) {
253459
- str = str.slice(0, -1);
253853
+ function stripTrailingSlashes(str2) {
253854
+ while (str2.endsWith("/")) {
253855
+ str2 = str2.slice(0, -1);
253460
253856
  }
253461
- return str;
253857
+ return str2;
253462
253858
  }
253463
253859
  function createErrorResponse(code, message, status) {
253464
253860
  const error48 = { code, message };
@@ -253702,7 +254098,7 @@ var plugin = (instance, opts, done) => {
253702
254098
  instance.addHook(hookName, withClerkMiddleware(opts));
253703
254099
  done();
253704
254100
  };
253705
- var clerkPlugin = (0, import_fastify_plugin34.default)(plugin, {
254101
+ var clerkPlugin = (0, import_fastify_plugin35.default)(plugin, {
253706
254102
  name: "@clerk/fastify",
253707
254103
  fastify: "5.x"
253708
254104
  });
@@ -253931,6 +254327,7 @@ var createServer = async (opts) => {
253931
254327
  server.register(browser_proxy_routes_default);
253932
254328
  server.register(cross_remote_target_routes_default);
253933
254329
  server.register(cross_remote_mcp_routes_default);
254330
+ server.register(session_mcp_routes_default);
253934
254331
  if (UI_ROOT) {
253935
254332
  server.register(import_static.fastifyStatic, {
253936
254333
  root: UI_ROOT,
@@ -253978,6 +254375,9 @@ var createServer = async (opts) => {
253978
254375
  start: async (port, host = "127.0.0.1") => {
253979
254376
  await server.listen({ port, host });
253980
254377
  const protocol = tls ? "https" : "http";
254378
+ const boundAddr = server.server.address();
254379
+ const boundPort = typeof boundAddr === "object" && boundAddr ? boundAddr.port : port;
254380
+ server.agentSessionManager.localApiOrigin = tls ? null : `http://127.0.0.1:${boundPort}`;
253981
254381
  const displayHost = host === "0.0.0.0" || host === "::" ? "localhost" : host;
253982
254382
  return `${protocol}://${displayHost}:${port}`;
253983
254383
  },
@@ -253985,6 +254385,7 @@ var createServer = async (opts) => {
253985
254385
  await server.listen({ port, host: "127.0.0.1" });
253986
254386
  const addr = server.server.address();
253987
254387
  const actualPort = typeof addr === "object" && addr ? addr.port : port;
254388
+ server.agentSessionManager.localApiOrigin = `http://127.0.0.1:${actualPort}`;
253988
254389
  return { url: `http://127.0.0.1:${actualPort}`, port: actualPort, instance: server };
253989
254390
  },
253990
254391
  close: async () => {
@@ -254187,6 +254588,10 @@ var WORKER_CAPABILITIES = {
254187
254588
  // Additive: a worker below 0.3.13 404s it and the hub answers 501 with an
254188
254589
  // "update the worker" message instead of proxying the failure through.
254189
254590
  "http:POST /api/path/worktrees/anchor": { since: "0.3.13", summary: "\u91CD\u951A\u4E3B\u5DE5\u4F5C\u533A\u5206\u652F" },
254591
+ // Additive: a worker below 0.3.21 404s it and the hub answers 501 with an
254592
+ // "update the worker" message. Deliberately not folded into /anchor, whose
254593
+ // live-branch guard would reject the very case this serves.
254594
+ "http:POST /api/path/worktrees/anchor-branch": { since: "0.3.21", summary: "\u6539\u4E3B\u5DE5\u4F5C\u533A\u951A\u70B9\u5230\u6307\u5B9A\u5206\u652F" },
254190
254595
  "http:GET /api/path/branches": { since: "0.2.0", summary: "\u5206\u652F\u5217\u8868" },
254191
254596
  "http:GET /api/path/branches/activity": { since: "0.2.0", summary: "\u5206\u652F\u6D3B\u52A8\u6982\u89C8" },
254192
254597
  "http:POST /api/path/branches/merge-status": { since: "0.2.0", summary: "\u5206\u652F\u5408\u5E76\u72B6\u6001\u68C0\u6D4B" },
@@ -255584,7 +255989,7 @@ async function defaultBrowserId() {
255584
255989
  // ../../node_modules/.pnpm/run-applescript@7.1.0/node_modules/run-applescript/index.js
255585
255990
  import process6 from "node:process";
255586
255991
  import { promisify as promisify5 } from "node:util";
255587
- import { execFile as execFile4, execFileSync as execFileSync6 } from "node:child_process";
255992
+ import { execFile as execFile4, execFileSync as execFileSync7 } from "node:child_process";
255588
255993
  var execFileAsync4 = promisify5(execFile4);
255589
255994
  async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
255590
255995
  if (process6.platform !== "darwin") {
@@ -256312,7 +256717,7 @@ var connectRoutes = buildRouteMap({
256312
256717
  defaultCommand: "run",
256313
256718
  docs: { brief: "Connect to a Vibedeckx server as an inbound node" }
256314
256719
  });
256315
- var routes33 = buildRouteMap({
256720
+ var routes34 = buildRouteMap({
256316
256721
  routes: {
256317
256722
  start: startCommand,
256318
256723
  connect: connectRoutes
@@ -256322,7 +256727,7 @@ var routes33 = buildRouteMap({
256322
256727
  brief: "Vibedeckx - AI-powered app generator"
256323
256728
  }
256324
256729
  });
256325
- var program = buildApplication(routes33, {
256730
+ var program = buildApplication(routes34, {
256326
256731
  name: "vibedeckx",
256327
256732
  versionInfo: {
256328
256733
  currentVersion: readPackageVersion()