meshy-node 0.10.9 → 0.10.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.cjs CHANGED
@@ -6635,7 +6635,7 @@ var require_supports_color = __commonJS({
6635
6635
  "../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
6636
6636
  "use strict";
6637
6637
  init_cjs_shims();
6638
- var os16 = require("os");
6638
+ var os17 = require("os");
6639
6639
  var tty = require("tty");
6640
6640
  var hasFlag = require_has_flag();
6641
6641
  var { env: env4 } = process;
@@ -6683,7 +6683,7 @@ var require_supports_color = __commonJS({
6683
6683
  return min;
6684
6684
  }
6685
6685
  if (process.platform === "win32") {
6686
- const osRelease = os16.release().split(".");
6686
+ const osRelease = os17.release().split(".");
6687
6687
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
6688
6688
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
6689
6689
  }
@@ -8647,8 +8647,8 @@ function getClient(endpoint, clientOptions = {}) {
8647
8647
  }
8648
8648
  const { allowInsecureConnection: allowInsecureConnection2, httpClient } = clientOptions;
8649
8649
  const endpointUrl = clientOptions.endpoint ?? endpoint;
8650
- const client = (path47, ...args) => {
8651
- const getUrl3 = (requestOptions) => buildRequestUrl(endpointUrl, path47, args, { allowInsecureConnection: allowInsecureConnection2, ...requestOptions });
8650
+ const client = (path48, ...args) => {
8651
+ const getUrl3 = (requestOptions) => buildRequestUrl(endpointUrl, path48, args, { allowInsecureConnection: allowInsecureConnection2, ...requestOptions });
8652
8652
  return {
8653
8653
  get: (requestOptions = {}) => {
8654
8654
  return buildOperation("GET", getUrl3(requestOptions), pipeline3, requestOptions, allowInsecureConnection2, httpClient);
@@ -9838,11 +9838,11 @@ var require_eventemitter3 = __commonJS({
9838
9838
  if (--emitter._eventsCount === 0) emitter._events = new Events();
9839
9839
  else delete emitter._events[evt];
9840
9840
  }
9841
- function EventEmitter2() {
9841
+ function EventEmitter3() {
9842
9842
  this._events = new Events();
9843
9843
  this._eventsCount = 0;
9844
9844
  }
9845
- EventEmitter2.prototype.eventNames = function eventNames() {
9845
+ EventEmitter3.prototype.eventNames = function eventNames() {
9846
9846
  var names = [], events, name2;
9847
9847
  if (this._eventsCount === 0) return names;
9848
9848
  for (name2 in events = this._events) {
@@ -9853,7 +9853,7 @@ var require_eventemitter3 = __commonJS({
9853
9853
  }
9854
9854
  return names;
9855
9855
  };
9856
- EventEmitter2.prototype.listeners = function listeners(event) {
9856
+ EventEmitter3.prototype.listeners = function listeners(event) {
9857
9857
  var evt = prefix ? prefix + event : event, handlers2 = this._events[evt];
9858
9858
  if (!handlers2) return [];
9859
9859
  if (handlers2.fn) return [handlers2.fn];
@@ -9862,13 +9862,13 @@ var require_eventemitter3 = __commonJS({
9862
9862
  }
9863
9863
  return ee;
9864
9864
  };
9865
- EventEmitter2.prototype.listenerCount = function listenerCount(event) {
9865
+ EventEmitter3.prototype.listenerCount = function listenerCount(event) {
9866
9866
  var evt = prefix ? prefix + event : event, listeners = this._events[evt];
9867
9867
  if (!listeners) return 0;
9868
9868
  if (listeners.fn) return 1;
9869
9869
  return listeners.length;
9870
9870
  };
9871
- EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
9871
+ EventEmitter3.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
9872
9872
  var evt = prefix ? prefix + event : event;
9873
9873
  if (!this._events[evt]) return false;
9874
9874
  var listeners = this._events[evt], len = arguments.length, args, i;
@@ -9919,13 +9919,13 @@ var require_eventemitter3 = __commonJS({
9919
9919
  }
9920
9920
  return true;
9921
9921
  };
9922
- EventEmitter2.prototype.on = function on(event, fn, context4) {
9922
+ EventEmitter3.prototype.on = function on(event, fn, context4) {
9923
9923
  return addListener(this, event, fn, context4, false);
9924
9924
  };
9925
- EventEmitter2.prototype.once = function once(event, fn, context4) {
9925
+ EventEmitter3.prototype.once = function once(event, fn, context4) {
9926
9926
  return addListener(this, event, fn, context4, true);
9927
9927
  };
9928
- EventEmitter2.prototype.removeListener = function removeListener(event, fn, context4, once) {
9928
+ EventEmitter3.prototype.removeListener = function removeListener(event, fn, context4, once) {
9929
9929
  var evt = prefix ? prefix + event : event;
9930
9930
  if (!this._events[evt]) return this;
9931
9931
  if (!fn) {
@@ -9948,7 +9948,7 @@ var require_eventemitter3 = __commonJS({
9948
9948
  }
9949
9949
  return this;
9950
9950
  };
9951
- EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
9951
+ EventEmitter3.prototype.removeAllListeners = function removeAllListeners(event) {
9952
9952
  var evt;
9953
9953
  if (event) {
9954
9954
  evt = prefix ? prefix + event : event;
@@ -9959,12 +9959,12 @@ var require_eventemitter3 = __commonJS({
9959
9959
  }
9960
9960
  return this;
9961
9961
  };
9962
- EventEmitter2.prototype.off = EventEmitter2.prototype.removeListener;
9963
- EventEmitter2.prototype.addListener = EventEmitter2.prototype.on;
9964
- EventEmitter2.prefixed = prefix;
9965
- EventEmitter2.EventEmitter = EventEmitter2;
9962
+ EventEmitter3.prototype.off = EventEmitter3.prototype.removeListener;
9963
+ EventEmitter3.prototype.addListener = EventEmitter3.prototype.on;
9964
+ EventEmitter3.prefixed = prefix;
9965
+ EventEmitter3.EventEmitter = EventEmitter3;
9966
9966
  if ("undefined" !== typeof module2) {
9967
- module2.exports = EventEmitter2;
9967
+ module2.exports = EventEmitter3;
9968
9968
  }
9969
9969
  }
9970
9970
  });
@@ -10391,8 +10391,8 @@ var init_parseUtil = __esm({
10391
10391
  init_errors();
10392
10392
  init_en();
10393
10393
  makeIssue = (params) => {
10394
- const { data, path: path47, errorMaps, issueData } = params;
10395
- const fullPath = [...path47, ...issueData.path || []];
10394
+ const { data, path: path48, errorMaps, issueData } = params;
10395
+ const fullPath = [...path48, ...issueData.path || []];
10396
10396
  const fullIssue = {
10397
10397
  ...issueData,
10398
10398
  path: fullPath
@@ -10706,11 +10706,11 @@ var init_types = __esm({
10706
10706
  init_parseUtil();
10707
10707
  init_util();
10708
10708
  ParseInputLazyPath = class {
10709
- constructor(parent, value, path47, key2) {
10709
+ constructor(parent, value, path48, key2) {
10710
10710
  this._cachedPath = [];
10711
10711
  this.parent = parent;
10712
10712
  this.data = value;
10713
- this._path = path47;
10713
+ this._path = path48;
10714
10714
  this._key = key2;
10715
10715
  }
10716
10716
  get path() {
@@ -15365,8 +15365,8 @@ var require_node2 = __commonJS({
15365
15365
  }
15366
15366
  break;
15367
15367
  case "FILE":
15368
- var fs43 = require("fs");
15369
- stream2 = new fs43.SyncWriteStream(fd2, { autoClose: false });
15368
+ var fs44 = require("fs");
15369
+ stream2 = new fs44.SyncWriteStream(fd2, { autoClose: false });
15370
15370
  stream2._type = "fs";
15371
15371
  break;
15372
15372
  case "PIPE":
@@ -15420,7 +15420,7 @@ var require_destroy = __commonJS({
15420
15420
  "../../node_modules/.pnpm/destroy@1.2.0/node_modules/destroy/index.js"(exports2, module2) {
15421
15421
  "use strict";
15422
15422
  init_cjs_shims();
15423
- var EventEmitter2 = require("events").EventEmitter;
15423
+ var EventEmitter3 = require("events").EventEmitter;
15424
15424
  var ReadStream = require("fs").ReadStream;
15425
15425
  var Stream = require("stream");
15426
15426
  var Zlib = require("zlib");
@@ -15482,7 +15482,7 @@ var require_destroy = __commonJS({
15482
15482
  return stream instanceof Stream && typeof stream.destroy === "function";
15483
15483
  }
15484
15484
  function isEventEmitter(val) {
15485
- return val instanceof EventEmitter2;
15485
+ return val instanceof EventEmitter3;
15486
15486
  }
15487
15487
  function isFsReadStream(stream) {
15488
15488
  return stream instanceof ReadStream;
@@ -28180,11 +28180,11 @@ var require_mime_types = __commonJS({
28180
28180
  }
28181
28181
  return exts[0];
28182
28182
  }
28183
- function lookup(path47) {
28184
- if (!path47 || typeof path47 !== "string") {
28183
+ function lookup(path48) {
28184
+ if (!path48 || typeof path48 !== "string") {
28185
28185
  return false;
28186
28186
  }
28187
- var extension3 = extname4("x." + path47).toLowerCase().substr(1);
28187
+ var extension3 = extname4("x." + path48).toLowerCase().substr(1);
28188
28188
  if (!extension3) {
28189
28189
  return false;
28190
28190
  }
@@ -31789,7 +31789,7 @@ var require_path_to_regexp = __commonJS({
31789
31789
  init_cjs_shims();
31790
31790
  module2.exports = pathToRegexp;
31791
31791
  var MATCHING_GROUP_REGEXP = /\\.|\((?:\?<(.*?)>)?(?!\?)/g;
31792
- function pathToRegexp(path47, keys2, options) {
31792
+ function pathToRegexp(path48, keys2, options) {
31793
31793
  options = options || {};
31794
31794
  keys2 = keys2 || [];
31795
31795
  var strict = options.strict;
@@ -31803,8 +31803,8 @@ var require_path_to_regexp = __commonJS({
31803
31803
  var pos = 0;
31804
31804
  var backtrack = "";
31805
31805
  var m;
31806
- if (path47 instanceof RegExp) {
31807
- while (m = MATCHING_GROUP_REGEXP.exec(path47.source)) {
31806
+ if (path48 instanceof RegExp) {
31807
+ while (m = MATCHING_GROUP_REGEXP.exec(path48.source)) {
31808
31808
  if (m[0][0] === "\\") continue;
31809
31809
  keys2.push({
31810
31810
  name: m[1] || name2++,
@@ -31812,18 +31812,18 @@ var require_path_to_regexp = __commonJS({
31812
31812
  offset: m.index
31813
31813
  });
31814
31814
  }
31815
- return path47;
31815
+ return path48;
31816
31816
  }
31817
- if (Array.isArray(path47)) {
31818
- path47 = path47.map(function(value) {
31817
+ if (Array.isArray(path48)) {
31818
+ path48 = path48.map(function(value) {
31819
31819
  return pathToRegexp(value, keys2, options).source;
31820
31820
  });
31821
- return new RegExp(path47.join("|"), flags);
31821
+ return new RegExp(path48.join("|"), flags);
31822
31822
  }
31823
- if (typeof path47 !== "string") {
31823
+ if (typeof path48 !== "string") {
31824
31824
  throw new TypeError("path must be a string, array of strings, or regular expression");
31825
31825
  }
31826
- path47 = path47.replace(
31826
+ path48 = path48.replace(
31827
31827
  /\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,
31828
31828
  function(match, slash, format, key2, capture, star, optional2, offset) {
31829
31829
  if (match[0] === "\\") {
@@ -31840,7 +31840,7 @@ var require_path_to_regexp = __commonJS({
31840
31840
  if (slash || format) {
31841
31841
  backtrack = "";
31842
31842
  } else {
31843
- backtrack += path47.slice(pos, offset);
31843
+ backtrack += path48.slice(pos, offset);
31844
31844
  }
31845
31845
  pos = offset + match.length;
31846
31846
  if (match === "*") {
@@ -31870,7 +31870,7 @@ var require_path_to_regexp = __commonJS({
31870
31870
  return result;
31871
31871
  }
31872
31872
  );
31873
- while (m = MATCHING_GROUP_REGEXP.exec(path47)) {
31873
+ while (m = MATCHING_GROUP_REGEXP.exec(path48)) {
31874
31874
  if (m[0][0] === "\\") continue;
31875
31875
  if (keysOffset + i === keys2.length || keys2[keysOffset + i].offset > m.index) {
31876
31876
  keys2.splice(keysOffset + i, 0, {
@@ -31882,13 +31882,13 @@ var require_path_to_regexp = __commonJS({
31882
31882
  }
31883
31883
  i++;
31884
31884
  }
31885
- path47 += strict ? "" : path47[path47.length - 1] === "/" ? "?" : "/?";
31885
+ path48 += strict ? "" : path48[path48.length - 1] === "/" ? "?" : "/?";
31886
31886
  if (end) {
31887
- path47 += "$";
31888
- } else if (path47[path47.length - 1] !== "/") {
31889
- path47 += lookahead ? "(?=/|$)" : "(?:/|$)";
31887
+ path48 += "$";
31888
+ } else if (path48[path48.length - 1] !== "/") {
31889
+ path48 += lookahead ? "(?=/|$)" : "(?:/|$)";
31890
31890
  }
31891
- return new RegExp("^" + path47, flags);
31891
+ return new RegExp("^" + path48, flags);
31892
31892
  }
31893
31893
  }
31894
31894
  });
@@ -31902,19 +31902,19 @@ var require_layer = __commonJS({
31902
31902
  var debug = require_src2()("express:router:layer");
31903
31903
  var hasOwnProperty3 = Object.prototype.hasOwnProperty;
31904
31904
  module2.exports = Layer;
31905
- function Layer(path47, options, fn) {
31905
+ function Layer(path48, options, fn) {
31906
31906
  if (!(this instanceof Layer)) {
31907
- return new Layer(path47, options, fn);
31907
+ return new Layer(path48, options, fn);
31908
31908
  }
31909
- debug("new %o", path47);
31909
+ debug("new %o", path48);
31910
31910
  var opts = options || {};
31911
31911
  this.handle = fn;
31912
31912
  this.name = fn.name || "<anonymous>";
31913
31913
  this.params = void 0;
31914
31914
  this.path = void 0;
31915
- this.regexp = pathRegexp(path47, this.keys = [], opts);
31916
- this.regexp.fast_star = path47 === "*";
31917
- this.regexp.fast_slash = path47 === "/" && opts.end === false;
31915
+ this.regexp = pathRegexp(path48, this.keys = [], opts);
31916
+ this.regexp.fast_star = path48 === "*";
31917
+ this.regexp.fast_slash = path48 === "/" && opts.end === false;
31918
31918
  }
31919
31919
  Layer.prototype.handle_error = function handle_error(error2, req, res, next2) {
31920
31920
  var fn = this.handle;
@@ -31938,20 +31938,20 @@ var require_layer = __commonJS({
31938
31938
  next2(err);
31939
31939
  }
31940
31940
  };
31941
- Layer.prototype.match = function match(path47) {
31941
+ Layer.prototype.match = function match(path48) {
31942
31942
  var match2;
31943
- if (path47 != null) {
31943
+ if (path48 != null) {
31944
31944
  if (this.regexp.fast_slash) {
31945
31945
  this.params = {};
31946
31946
  this.path = "";
31947
31947
  return true;
31948
31948
  }
31949
31949
  if (this.regexp.fast_star) {
31950
- this.params = { "0": decode_param(path47) };
31951
- this.path = path47;
31950
+ this.params = { "0": decode_param(path48) };
31951
+ this.path = path48;
31952
31952
  return true;
31953
31953
  }
31954
- match2 = this.regexp.exec(path47);
31954
+ match2 = this.regexp.exec(path48);
31955
31955
  }
31956
31956
  if (!match2) {
31957
31957
  this.params = void 0;
@@ -32046,10 +32046,10 @@ var require_route = __commonJS({
32046
32046
  var slice = Array.prototype.slice;
32047
32047
  var toString3 = Object.prototype.toString;
32048
32048
  module2.exports = Route;
32049
- function Route(path47) {
32050
- this.path = path47;
32049
+ function Route(path48) {
32050
+ this.path = path48;
32051
32051
  this.stack = [];
32052
- debug("new %o", path47);
32052
+ debug("new %o", path48);
32053
32053
  this.methods = {};
32054
32054
  }
32055
32055
  Route.prototype._handles_method = function _handles_method(method) {
@@ -32264,8 +32264,8 @@ var require_router = __commonJS({
32264
32264
  if (++sync > 100) {
32265
32265
  return setImmediate(next2, err);
32266
32266
  }
32267
- var path47 = getPathname(req);
32268
- if (path47 == null) {
32267
+ var path48 = getPathname(req);
32268
+ if (path48 == null) {
32269
32269
  return done(layerError);
32270
32270
  }
32271
32271
  var layer;
@@ -32273,7 +32273,7 @@ var require_router = __commonJS({
32273
32273
  var route;
32274
32274
  while (match !== true && idx < stack.length) {
32275
32275
  layer = stack[idx++];
32276
- match = matchLayer(layer, path47);
32276
+ match = matchLayer(layer, path48);
32277
32277
  route = layer.route;
32278
32278
  if (typeof match !== "boolean") {
32279
32279
  layerError = layerError || match;
@@ -32311,18 +32311,18 @@ var require_router = __commonJS({
32311
32311
  } else if (route) {
32312
32312
  layer.handle_request(req, res, next2);
32313
32313
  } else {
32314
- trim_prefix(layer, layerError, layerPath, path47);
32314
+ trim_prefix(layer, layerError, layerPath, path48);
32315
32315
  }
32316
32316
  sync = 0;
32317
32317
  });
32318
32318
  }
32319
- function trim_prefix(layer, layerError, layerPath, path47) {
32319
+ function trim_prefix(layer, layerError, layerPath, path48) {
32320
32320
  if (layerPath.length !== 0) {
32321
- if (layerPath !== path47.slice(0, layerPath.length)) {
32321
+ if (layerPath !== path48.slice(0, layerPath.length)) {
32322
32322
  next2(layerError);
32323
32323
  return;
32324
32324
  }
32325
- var c = path47[layerPath.length];
32325
+ var c = path48[layerPath.length];
32326
32326
  if (c && c !== "/" && c !== ".") return next2(layerError);
32327
32327
  debug("trim prefix (%s) from url %s", layerPath, req.url);
32328
32328
  removed = layerPath;
@@ -32400,7 +32400,7 @@ var require_router = __commonJS({
32400
32400
  };
32401
32401
  proto2.use = function use(fn) {
32402
32402
  var offset = 0;
32403
- var path47 = "/";
32403
+ var path48 = "/";
32404
32404
  if (typeof fn !== "function") {
32405
32405
  var arg = fn;
32406
32406
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -32408,7 +32408,7 @@ var require_router = __commonJS({
32408
32408
  }
32409
32409
  if (typeof arg !== "function") {
32410
32410
  offset = 1;
32411
- path47 = fn;
32411
+ path48 = fn;
32412
32412
  }
32413
32413
  }
32414
32414
  var callbacks = flatten(slice.call(arguments, offset));
@@ -32420,8 +32420,8 @@ var require_router = __commonJS({
32420
32420
  if (typeof fn !== "function") {
32421
32421
  throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn));
32422
32422
  }
32423
- debug("use %o %s", path47, fn.name || "<anonymous>");
32424
- var layer = new Layer(path47, {
32423
+ debug("use %o %s", path48, fn.name || "<anonymous>");
32424
+ var layer = new Layer(path48, {
32425
32425
  sensitive: this.caseSensitive,
32426
32426
  strict: false,
32427
32427
  end: false
@@ -32431,9 +32431,9 @@ var require_router = __commonJS({
32431
32431
  }
32432
32432
  return this;
32433
32433
  };
32434
- proto2.route = function route(path47) {
32435
- var route2 = new Route(path47);
32436
- var layer = new Layer(path47, {
32434
+ proto2.route = function route(path48) {
32435
+ var route2 = new Route(path48);
32436
+ var layer = new Layer(path48, {
32437
32437
  sensitive: this.caseSensitive,
32438
32438
  strict: this.strict,
32439
32439
  end: true
@@ -32443,8 +32443,8 @@ var require_router = __commonJS({
32443
32443
  return route2;
32444
32444
  };
32445
32445
  methods.concat("all").forEach(function(method) {
32446
- proto2[method] = function(path47) {
32447
- var route = this.route(path47);
32446
+ proto2[method] = function(path48) {
32447
+ var route = this.route(path48);
32448
32448
  route[method].apply(route, slice.call(arguments, 1));
32449
32449
  return this;
32450
32450
  };
@@ -32480,9 +32480,9 @@ var require_router = __commonJS({
32480
32480
  }
32481
32481
  return toString3.call(obj).replace(objectRegExp, "$1");
32482
32482
  }
32483
- function matchLayer(layer, path47) {
32483
+ function matchLayer(layer, path48) {
32484
32484
  try {
32485
- return layer.match(path47);
32485
+ return layer.match(path48);
32486
32486
  } catch (err) {
32487
32487
  return err;
32488
32488
  }
@@ -32603,13 +32603,13 @@ var require_view = __commonJS({
32603
32603
  "use strict";
32604
32604
  init_cjs_shims();
32605
32605
  var debug = require_src2()("express:view");
32606
- var path47 = require("path");
32607
- var fs43 = require("fs");
32608
- var dirname11 = path47.dirname;
32609
- var basename6 = path47.basename;
32610
- var extname4 = path47.extname;
32611
- var join31 = path47.join;
32612
- var resolve24 = path47.resolve;
32606
+ var path48 = require("path");
32607
+ var fs44 = require("fs");
32608
+ var dirname11 = path48.dirname;
32609
+ var basename6 = path48.basename;
32610
+ var extname4 = path48.extname;
32611
+ var join31 = path48.join;
32612
+ var resolve24 = path48.resolve;
32613
32613
  module2.exports = View3;
32614
32614
  function View3(name2, options) {
32615
32615
  var opts = options || {};
@@ -32638,17 +32638,17 @@ var require_view = __commonJS({
32638
32638
  this.path = this.lookup(fileName);
32639
32639
  }
32640
32640
  View3.prototype.lookup = function lookup(name2) {
32641
- var path48;
32641
+ var path49;
32642
32642
  var roots = [].concat(this.root);
32643
32643
  debug('lookup "%s"', name2);
32644
- for (var i = 0; i < roots.length && !path48; i++) {
32644
+ for (var i = 0; i < roots.length && !path49; i++) {
32645
32645
  var root7 = roots[i];
32646
32646
  var loc = resolve24(root7, name2);
32647
32647
  var dir = dirname11(loc);
32648
32648
  var file = basename6(loc);
32649
- path48 = this.resolve(dir, file);
32649
+ path49 = this.resolve(dir, file);
32650
32650
  }
32651
- return path48;
32651
+ return path49;
32652
32652
  };
32653
32653
  View3.prototype.render = function render(options, callback) {
32654
32654
  debug('render "%s"', this.path);
@@ -32656,21 +32656,21 @@ var require_view = __commonJS({
32656
32656
  };
32657
32657
  View3.prototype.resolve = function resolve25(dir, file) {
32658
32658
  var ext = this.ext;
32659
- var path48 = join31(dir, file);
32660
- var stat3 = tryStat(path48);
32659
+ var path49 = join31(dir, file);
32660
+ var stat3 = tryStat(path49);
32661
32661
  if (stat3 && stat3.isFile()) {
32662
- return path48;
32662
+ return path49;
32663
32663
  }
32664
- path48 = join31(dir, basename6(file, ext), "index" + ext);
32665
- stat3 = tryStat(path48);
32664
+ path49 = join31(dir, basename6(file, ext), "index" + ext);
32665
+ stat3 = tryStat(path49);
32666
32666
  if (stat3 && stat3.isFile()) {
32667
- return path48;
32667
+ return path49;
32668
32668
  }
32669
32669
  };
32670
- function tryStat(path48) {
32671
- debug('stat "%s"', path48);
32670
+ function tryStat(path49) {
32671
+ debug('stat "%s"', path49);
32672
32672
  try {
32673
- return fs43.statSync(path48);
32673
+ return fs44.statSync(path49);
32674
32674
  } catch (e) {
32675
32675
  return void 0;
32676
32676
  }
@@ -32971,8 +32971,8 @@ var require_mime = __commonJS({
32971
32971
  "../../node_modules/.pnpm/mime@1.6.0/node_modules/mime/mime.js"(exports2, module2) {
32972
32972
  "use strict";
32973
32973
  init_cjs_shims();
32974
- var path47 = require("path");
32975
- var fs43 = require("fs");
32974
+ var path48 = require("path");
32975
+ var fs44 = require("fs");
32976
32976
  function Mime() {
32977
32977
  this.types = /* @__PURE__ */ Object.create(null);
32978
32978
  this.extensions = /* @__PURE__ */ Object.create(null);
@@ -32993,7 +32993,7 @@ var require_mime = __commonJS({
32993
32993
  };
32994
32994
  Mime.prototype.load = function(file) {
32995
32995
  this._loading = file;
32996
- var map3 = {}, content3 = fs43.readFileSync(file, "ascii"), lines = content3.split(/[\r\n]+/);
32996
+ var map3 = {}, content3 = fs44.readFileSync(file, "ascii"), lines = content3.split(/[\r\n]+/);
32997
32997
  lines.forEach(function(line) {
32998
32998
  var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
32999
32999
  map3[fields.shift()] = fields;
@@ -33001,8 +33001,8 @@ var require_mime = __commonJS({
33001
33001
  this.define(map3);
33002
33002
  this._loading = null;
33003
33003
  };
33004
- Mime.prototype.lookup = function(path48, fallback) {
33005
- var ext = path48.replace(/^.*[\.\/\\]/, "").toLowerCase();
33004
+ Mime.prototype.lookup = function(path49, fallback) {
33005
+ var ext = path49.replace(/^.*[\.\/\\]/, "").toLowerCase();
33006
33006
  return this.types[ext] || fallback || this.default_type;
33007
33007
  };
33008
33008
  Mime.prototype.extension = function(mimeType) {
@@ -33117,33 +33117,33 @@ var require_send = __commonJS({
33117
33117
  var escapeHtml2 = require_escape_html();
33118
33118
  var etag = require_etag();
33119
33119
  var fresh = require_fresh();
33120
- var fs43 = require("fs");
33120
+ var fs44 = require("fs");
33121
33121
  var mime = require_mime();
33122
33122
  var ms = require_ms();
33123
33123
  var onFinished = require_on_finished();
33124
33124
  var parseRange = require_range_parser();
33125
- var path47 = require("path");
33125
+ var path48 = require("path");
33126
33126
  var statuses = require_statuses();
33127
33127
  var Stream = require("stream");
33128
33128
  var util5 = require("util");
33129
- var extname4 = path47.extname;
33130
- var join31 = path47.join;
33131
- var normalize8 = path47.normalize;
33132
- var resolve24 = path47.resolve;
33133
- var sep11 = path47.sep;
33129
+ var extname4 = path48.extname;
33130
+ var join31 = path48.join;
33131
+ var normalize8 = path48.normalize;
33132
+ var resolve24 = path48.resolve;
33133
+ var sep11 = path48.sep;
33134
33134
  var BYTES_RANGE_REGEXP = /^ *bytes=/;
33135
33135
  var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
33136
33136
  var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
33137
33137
  module2.exports = send;
33138
33138
  module2.exports.mime = mime;
33139
- function send(req, path48, options) {
33140
- return new SendStream(req, path48, options);
33139
+ function send(req, path49, options) {
33140
+ return new SendStream(req, path49, options);
33141
33141
  }
33142
- function SendStream(req, path48, options) {
33142
+ function SendStream(req, path49, options) {
33143
33143
  Stream.call(this);
33144
33144
  var opts = options || {};
33145
33145
  this.options = opts;
33146
- this.path = path48;
33146
+ this.path = path49;
33147
33147
  this.req = req;
33148
33148
  this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
33149
33149
  this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
@@ -33189,8 +33189,8 @@ var require_send = __commonJS({
33189
33189
  this._index = index3;
33190
33190
  return this;
33191
33191
  }, "send.index: pass index as option");
33192
- SendStream.prototype.root = function root7(path48) {
33193
- this._root = resolve24(String(path48));
33192
+ SendStream.prototype.root = function root7(path49) {
33193
+ this._root = resolve24(String(path49));
33194
33194
  debug("root %s", this._root);
33195
33195
  return this;
33196
33196
  };
@@ -33303,10 +33303,10 @@ var require_send = __commonJS({
33303
33303
  var lastModified = this.res.getHeader("Last-Modified");
33304
33304
  return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
33305
33305
  };
33306
- SendStream.prototype.redirect = function redirect(path48) {
33306
+ SendStream.prototype.redirect = function redirect(path49) {
33307
33307
  var res = this.res;
33308
33308
  if (hasListeners(this, "directory")) {
33309
- this.emit("directory", res, path48);
33309
+ this.emit("directory", res, path49);
33310
33310
  return;
33311
33311
  }
33312
33312
  if (this.hasTrailingSlash()) {
@@ -33326,42 +33326,42 @@ var require_send = __commonJS({
33326
33326
  SendStream.prototype.pipe = function pipe2(res) {
33327
33327
  var root7 = this._root;
33328
33328
  this.res = res;
33329
- var path48 = decode2(this.path);
33330
- if (path48 === -1) {
33329
+ var path49 = decode2(this.path);
33330
+ if (path49 === -1) {
33331
33331
  this.error(400);
33332
33332
  return res;
33333
33333
  }
33334
- if (~path48.indexOf("\0")) {
33334
+ if (~path49.indexOf("\0")) {
33335
33335
  this.error(400);
33336
33336
  return res;
33337
33337
  }
33338
33338
  var parts;
33339
33339
  if (root7 !== null) {
33340
- if (path48) {
33341
- path48 = normalize8("." + sep11 + path48);
33340
+ if (path49) {
33341
+ path49 = normalize8("." + sep11 + path49);
33342
33342
  }
33343
- if (UP_PATH_REGEXP.test(path48)) {
33344
- debug('malicious path "%s"', path48);
33343
+ if (UP_PATH_REGEXP.test(path49)) {
33344
+ debug('malicious path "%s"', path49);
33345
33345
  this.error(403);
33346
33346
  return res;
33347
33347
  }
33348
- parts = path48.split(sep11);
33349
- path48 = normalize8(join31(root7, path48));
33348
+ parts = path49.split(sep11);
33349
+ path49 = normalize8(join31(root7, path49));
33350
33350
  } else {
33351
- if (UP_PATH_REGEXP.test(path48)) {
33352
- debug('malicious path "%s"', path48);
33351
+ if (UP_PATH_REGEXP.test(path49)) {
33352
+ debug('malicious path "%s"', path49);
33353
33353
  this.error(403);
33354
33354
  return res;
33355
33355
  }
33356
- parts = normalize8(path48).split(sep11);
33357
- path48 = resolve24(path48);
33356
+ parts = normalize8(path49).split(sep11);
33357
+ path49 = resolve24(path49);
33358
33358
  }
33359
33359
  if (containsDotFile(parts)) {
33360
33360
  var access = this._dotfiles;
33361
33361
  if (access === void 0) {
33362
33362
  access = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
33363
33363
  }
33364
- debug('%s dotfile "%s"', access, path48);
33364
+ debug('%s dotfile "%s"', access, path49);
33365
33365
  switch (access) {
33366
33366
  case "allow":
33367
33367
  break;
@@ -33375,13 +33375,13 @@ var require_send = __commonJS({
33375
33375
  }
33376
33376
  }
33377
33377
  if (this._index.length && this.hasTrailingSlash()) {
33378
- this.sendIndex(path48);
33378
+ this.sendIndex(path49);
33379
33379
  return res;
33380
33380
  }
33381
- this.sendFile(path48);
33381
+ this.sendFile(path49);
33382
33382
  return res;
33383
33383
  };
33384
- SendStream.prototype.send = function send2(path48, stat3) {
33384
+ SendStream.prototype.send = function send2(path49, stat3) {
33385
33385
  var len = stat3.size;
33386
33386
  var options = this.options;
33387
33387
  var opts = {};
@@ -33393,9 +33393,9 @@ var require_send = __commonJS({
33393
33393
  this.headersAlreadySent();
33394
33394
  return;
33395
33395
  }
33396
- debug('pipe "%s"', path48);
33397
- this.setHeader(path48, stat3);
33398
- this.type(path48);
33396
+ debug('pipe "%s"', path49);
33397
+ this.setHeader(path49, stat3);
33398
+ this.type(path49);
33399
33399
  if (this.isConditionalGET()) {
33400
33400
  if (this.isPreconditionFailure()) {
33401
33401
  this.error(412);
@@ -33444,28 +33444,28 @@ var require_send = __commonJS({
33444
33444
  res.end();
33445
33445
  return;
33446
33446
  }
33447
- this.stream(path48, opts);
33447
+ this.stream(path49, opts);
33448
33448
  };
33449
- SendStream.prototype.sendFile = function sendFile(path48) {
33449
+ SendStream.prototype.sendFile = function sendFile(path49) {
33450
33450
  var i = 0;
33451
33451
  var self2 = this;
33452
- debug('stat "%s"', path48);
33453
- fs43.stat(path48, function onstat(err, stat3) {
33454
- if (err && err.code === "ENOENT" && !extname4(path48) && path48[path48.length - 1] !== sep11) {
33452
+ debug('stat "%s"', path49);
33453
+ fs44.stat(path49, function onstat(err, stat3) {
33454
+ if (err && err.code === "ENOENT" && !extname4(path49) && path49[path49.length - 1] !== sep11) {
33455
33455
  return next2(err);
33456
33456
  }
33457
33457
  if (err) return self2.onStatError(err);
33458
- if (stat3.isDirectory()) return self2.redirect(path48);
33459
- self2.emit("file", path48, stat3);
33460
- self2.send(path48, stat3);
33458
+ if (stat3.isDirectory()) return self2.redirect(path49);
33459
+ self2.emit("file", path49, stat3);
33460
+ self2.send(path49, stat3);
33461
33461
  });
33462
33462
  function next2(err) {
33463
33463
  if (self2._extensions.length <= i) {
33464
33464
  return err ? self2.onStatError(err) : self2.error(404);
33465
33465
  }
33466
- var p2 = path48 + "." + self2._extensions[i++];
33466
+ var p2 = path49 + "." + self2._extensions[i++];
33467
33467
  debug('stat "%s"', p2);
33468
- fs43.stat(p2, function(err2, stat3) {
33468
+ fs44.stat(p2, function(err2, stat3) {
33469
33469
  if (err2) return next2(err2);
33470
33470
  if (stat3.isDirectory()) return next2();
33471
33471
  self2.emit("file", p2, stat3);
@@ -33473,7 +33473,7 @@ var require_send = __commonJS({
33473
33473
  });
33474
33474
  }
33475
33475
  };
33476
- SendStream.prototype.sendIndex = function sendIndex(path48) {
33476
+ SendStream.prototype.sendIndex = function sendIndex(path49) {
33477
33477
  var i = -1;
33478
33478
  var self2 = this;
33479
33479
  function next2(err) {
@@ -33481,9 +33481,9 @@ var require_send = __commonJS({
33481
33481
  if (err) return self2.onStatError(err);
33482
33482
  return self2.error(404);
33483
33483
  }
33484
- var p2 = join31(path48, self2._index[i]);
33484
+ var p2 = join31(path49, self2._index[i]);
33485
33485
  debug('stat "%s"', p2);
33486
- fs43.stat(p2, function(err2, stat3) {
33486
+ fs44.stat(p2, function(err2, stat3) {
33487
33487
  if (err2) return next2(err2);
33488
33488
  if (stat3.isDirectory()) return next2();
33489
33489
  self2.emit("file", p2, stat3);
@@ -33492,10 +33492,10 @@ var require_send = __commonJS({
33492
33492
  }
33493
33493
  next2();
33494
33494
  };
33495
- SendStream.prototype.stream = function stream(path48, options) {
33495
+ SendStream.prototype.stream = function stream(path49, options) {
33496
33496
  var self2 = this;
33497
33497
  var res = this.res;
33498
- var stream2 = fs43.createReadStream(path48, options);
33498
+ var stream2 = fs44.createReadStream(path49, options);
33499
33499
  this.emit("stream", stream2);
33500
33500
  stream2.pipe(res);
33501
33501
  function cleanup() {
@@ -33510,10 +33510,10 @@ var require_send = __commonJS({
33510
33510
  self2.emit("end");
33511
33511
  });
33512
33512
  };
33513
- SendStream.prototype.type = function type(path48) {
33513
+ SendStream.prototype.type = function type(path49) {
33514
33514
  var res = this.res;
33515
33515
  if (res.getHeader("Content-Type")) return;
33516
- var type2 = mime.lookup(path48);
33516
+ var type2 = mime.lookup(path49);
33517
33517
  if (!type2) {
33518
33518
  debug("no content-type");
33519
33519
  return;
@@ -33522,9 +33522,9 @@ var require_send = __commonJS({
33522
33522
  debug("content-type %s", type2);
33523
33523
  res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
33524
33524
  };
33525
- SendStream.prototype.setHeader = function setHeader(path48, stat3) {
33525
+ SendStream.prototype.setHeader = function setHeader(path49, stat3) {
33526
33526
  var res = this.res;
33527
- this.emit("headers", res, path48, stat3);
33527
+ this.emit("headers", res, path49, stat3);
33528
33528
  if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
33529
33529
  debug("accept ranges");
33530
33530
  res.setHeader("Accept-Ranges", "bytes");
@@ -33583,9 +33583,9 @@ var require_send = __commonJS({
33583
33583
  }
33584
33584
  return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
33585
33585
  }
33586
- function decode2(path48) {
33586
+ function decode2(path49) {
33587
33587
  try {
33588
- return decodeURIComponent(path48);
33588
+ return decodeURIComponent(path49);
33589
33589
  } catch (err) {
33590
33590
  return -1;
33591
33591
  }
@@ -34499,10 +34499,10 @@ var require_utils2 = __commonJS({
34499
34499
  var querystring = require("querystring");
34500
34500
  exports2.etag = createETagGenerator({ weak: false });
34501
34501
  exports2.wetag = createETagGenerator({ weak: true });
34502
- exports2.isAbsolute = function(path47) {
34503
- if ("/" === path47[0]) return true;
34504
- if (":" === path47[1] && ("\\" === path47[2] || "/" === path47[2])) return true;
34505
- if ("\\\\" === path47.substring(0, 2)) return true;
34502
+ exports2.isAbsolute = function(path48) {
34503
+ if ("/" === path48[0]) return true;
34504
+ if (":" === path48[1] && ("\\" === path48[2] || "/" === path48[2])) return true;
34505
+ if ("\\\\" === path48.substring(0, 2)) return true;
34506
34506
  };
34507
34507
  exports2.flatten = deprecate.function(
34508
34508
  flatten,
@@ -34714,7 +34714,7 @@ var require_application = __commonJS({
34714
34714
  };
34715
34715
  app.use = function use(fn) {
34716
34716
  var offset = 0;
34717
- var path47 = "/";
34717
+ var path48 = "/";
34718
34718
  if (typeof fn !== "function") {
34719
34719
  var arg = fn;
34720
34720
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -34722,7 +34722,7 @@ var require_application = __commonJS({
34722
34722
  }
34723
34723
  if (typeof arg !== "function") {
34724
34724
  offset = 1;
34725
- path47 = fn;
34725
+ path48 = fn;
34726
34726
  }
34727
34727
  }
34728
34728
  var fns = flatten(slice.call(arguments, offset));
@@ -34733,12 +34733,12 @@ var require_application = __commonJS({
34733
34733
  var router = this._router;
34734
34734
  fns.forEach(function(fn2) {
34735
34735
  if (!fn2 || !fn2.handle || !fn2.set) {
34736
- return router.use(path47, fn2);
34736
+ return router.use(path48, fn2);
34737
34737
  }
34738
- debug(".use app under %s", path47);
34739
- fn2.mountpath = path47;
34738
+ debug(".use app under %s", path48);
34739
+ fn2.mountpath = path48;
34740
34740
  fn2.parent = this;
34741
- router.use(path47, function mounted_app(req, res, next2) {
34741
+ router.use(path48, function mounted_app(req, res, next2) {
34742
34742
  var orig = req.app;
34743
34743
  fn2.handle(req, res, function(err) {
34744
34744
  setPrototypeOf(req, orig.request);
@@ -34750,9 +34750,9 @@ var require_application = __commonJS({
34750
34750
  }, this);
34751
34751
  return this;
34752
34752
  };
34753
- app.route = function route(path47) {
34753
+ app.route = function route(path48) {
34754
34754
  this.lazyrouter();
34755
- return this._router.route(path47);
34755
+ return this._router.route(path48);
34756
34756
  };
34757
34757
  app.engine = function engine(ext, fn) {
34758
34758
  if (typeof fn !== "function") {
@@ -34803,7 +34803,7 @@ var require_application = __commonJS({
34803
34803
  }
34804
34804
  return this;
34805
34805
  };
34806
- app.path = function path47() {
34806
+ app.path = function path48() {
34807
34807
  return this.parent ? this.parent.path() + this.mountpath : "";
34808
34808
  };
34809
34809
  app.enabled = function enabled2(setting) {
@@ -34819,19 +34819,19 @@ var require_application = __commonJS({
34819
34819
  return this.set(setting, false);
34820
34820
  };
34821
34821
  methods.forEach(function(method) {
34822
- app[method] = function(path47) {
34822
+ app[method] = function(path48) {
34823
34823
  if (method === "get" && arguments.length === 1) {
34824
- return this.set(path47);
34824
+ return this.set(path48);
34825
34825
  }
34826
34826
  this.lazyrouter();
34827
- var route = this._router.route(path47);
34827
+ var route = this._router.route(path48);
34828
34828
  route[method].apply(route, slice.call(arguments, 1));
34829
34829
  return this;
34830
34830
  };
34831
34831
  });
34832
- app.all = function all6(path47) {
34832
+ app.all = function all6(path48) {
34833
34833
  this.lazyrouter();
34834
- var route = this._router.route(path47);
34834
+ var route = this._router.route(path48);
34835
34835
  var args = slice.call(arguments, 1);
34836
34836
  for (var i = 0; i < methods.length; i++) {
34837
34837
  route[methods[i]].apply(route, args);
@@ -35597,7 +35597,7 @@ var require_request = __commonJS({
35597
35597
  var subdomains2 = !isIP(hostname6) ? hostname6.split(".").reverse() : [hostname6];
35598
35598
  return subdomains2.slice(offset);
35599
35599
  });
35600
- defineGetter(req, "path", function path47() {
35600
+ defineGetter(req, "path", function path48() {
35601
35601
  return parse9(this).pathname;
35602
35602
  });
35603
35603
  defineGetter(req, "hostname", function hostname6() {
@@ -35924,7 +35924,7 @@ var require_response = __commonJS({
35924
35924
  var http6 = require("http");
35925
35925
  var isAbsolute13 = require_utils2().isAbsolute;
35926
35926
  var onFinished = require_on_finished();
35927
- var path47 = require("path");
35927
+ var path48 = require("path");
35928
35928
  var statuses = require_statuses();
35929
35929
  var merge4 = require_utils_merge();
35930
35930
  var sign = require_cookie_signature().sign;
@@ -35933,9 +35933,9 @@ var require_response = __commonJS({
35933
35933
  var setCharset = require_utils2().setCharset;
35934
35934
  var cookie = require_cookie();
35935
35935
  var send = require_send();
35936
- var extname4 = path47.extname;
35936
+ var extname4 = path48.extname;
35937
35937
  var mime = send.mime;
35938
- var resolve24 = path47.resolve;
35938
+ var resolve24 = path48.resolve;
35939
35939
  var vary = require_vary();
35940
35940
  var res = Object.create(http6.ServerResponse.prototype);
35941
35941
  module2.exports = res;
@@ -36112,26 +36112,26 @@ var require_response = __commonJS({
36112
36112
  this.type("txt");
36113
36113
  return this.send(body3);
36114
36114
  };
36115
- res.sendFile = function sendFile(path48, options, callback) {
36115
+ res.sendFile = function sendFile(path49, options, callback) {
36116
36116
  var done = callback;
36117
36117
  var req = this.req;
36118
36118
  var res2 = this;
36119
36119
  var next2 = req.next;
36120
36120
  var opts = options || {};
36121
- if (!path48) {
36121
+ if (!path49) {
36122
36122
  throw new TypeError("path argument is required to res.sendFile");
36123
36123
  }
36124
- if (typeof path48 !== "string") {
36124
+ if (typeof path49 !== "string") {
36125
36125
  throw new TypeError("path must be a string to res.sendFile");
36126
36126
  }
36127
36127
  if (typeof options === "function") {
36128
36128
  done = options;
36129
36129
  opts = {};
36130
36130
  }
36131
- if (!opts.root && !isAbsolute13(path48)) {
36131
+ if (!opts.root && !isAbsolute13(path49)) {
36132
36132
  throw new TypeError("path must be absolute or specify root to res.sendFile");
36133
36133
  }
36134
- var pathname = encodeURI(path48);
36134
+ var pathname = encodeURI(path49);
36135
36135
  var file = send(req, pathname, opts);
36136
36136
  sendfile(res2, file, opts, function(err) {
36137
36137
  if (done) return done(err);
@@ -36141,7 +36141,7 @@ var require_response = __commonJS({
36141
36141
  }
36142
36142
  });
36143
36143
  };
36144
- res.sendfile = function(path48, options, callback) {
36144
+ res.sendfile = function(path49, options, callback) {
36145
36145
  var done = callback;
36146
36146
  var req = this.req;
36147
36147
  var res2 = this;
@@ -36151,7 +36151,7 @@ var require_response = __commonJS({
36151
36151
  done = options;
36152
36152
  opts = {};
36153
36153
  }
36154
- var file = send(req, path48, opts);
36154
+ var file = send(req, path49, opts);
36155
36155
  sendfile(res2, file, opts, function(err) {
36156
36156
  if (done) return done(err);
36157
36157
  if (err && err.code === "EISDIR") return next2();
@@ -36164,7 +36164,7 @@ var require_response = __commonJS({
36164
36164
  res.sendfile,
36165
36165
  "res.sendfile: Use res.sendFile instead"
36166
36166
  );
36167
- res.download = function download(path48, filename, options, callback) {
36167
+ res.download = function download(path49, filename, options, callback) {
36168
36168
  var done = callback;
36169
36169
  var name2 = filename;
36170
36170
  var opts = options || null;
@@ -36181,7 +36181,7 @@ var require_response = __commonJS({
36181
36181
  opts = filename;
36182
36182
  }
36183
36183
  var headers = {
36184
- "Content-Disposition": contentDisposition(name2 || path48)
36184
+ "Content-Disposition": contentDisposition(name2 || path49)
36185
36185
  };
36186
36186
  if (opts && opts.headers) {
36187
36187
  var keys2 = Object.keys(opts.headers);
@@ -36194,7 +36194,7 @@ var require_response = __commonJS({
36194
36194
  }
36195
36195
  opts = Object.create(opts);
36196
36196
  opts.headers = headers;
36197
- var fullPath = !opts.root ? resolve24(path48) : path48;
36197
+ var fullPath = !opts.root ? resolve24(path49) : path49;
36198
36198
  return this.sendFile(fullPath, opts, done);
36199
36199
  };
36200
36200
  res.contentType = res.type = function contentType(type) {
@@ -36496,11 +36496,11 @@ var require_serve_static = __commonJS({
36496
36496
  }
36497
36497
  var forwardError = !fallthrough;
36498
36498
  var originalUrl = parseUrl.original(req);
36499
- var path47 = parseUrl(req).pathname;
36500
- if (path47 === "/" && originalUrl.pathname.substr(-1) !== "/") {
36501
- path47 = "";
36499
+ var path48 = parseUrl(req).pathname;
36500
+ if (path48 === "/" && originalUrl.pathname.substr(-1) !== "/") {
36501
+ path48 = "";
36502
36502
  }
36503
- var stream = send(req, path47, opts);
36503
+ var stream = send(req, path48, opts);
36504
36504
  stream.on("directory", onDirectory);
36505
36505
  if (setHeaders) {
36506
36506
  stream.on("headers", setHeaders);
@@ -36565,7 +36565,7 @@ var require_express = __commonJS({
36565
36565
  "use strict";
36566
36566
  init_cjs_shims();
36567
36567
  var bodyParser = require_body_parser();
36568
- var EventEmitter2 = require("events").EventEmitter;
36568
+ var EventEmitter3 = require("events").EventEmitter;
36569
36569
  var mixin = require_merge_descriptors();
36570
36570
  var proto2 = require_application();
36571
36571
  var Route = require_route();
@@ -36577,7 +36577,7 @@ var require_express = __commonJS({
36577
36577
  var app = function(req2, res2, next2) {
36578
36578
  app.handle(req2, res2, next2);
36579
36579
  };
36580
- mixin(app, EventEmitter2.prototype, false);
36580
+ mixin(app, EventEmitter3.prototype, false);
36581
36581
  mixin(app, proto2, false);
36582
36582
  app.request = Object.create(req, {
36583
36583
  app: { configurable: true, enumerable: true, writable: true, value: app }
@@ -36840,10 +36840,10 @@ function assignProp(target, prop, value) {
36840
36840
  configurable: true
36841
36841
  });
36842
36842
  }
36843
- function getElementAtPath(obj, path47) {
36844
- if (!path47)
36843
+ function getElementAtPath(obj, path48) {
36844
+ if (!path48)
36845
36845
  return obj;
36846
- return path47.reduce((acc, key2) => acc?.[key2], obj);
36846
+ return path48.reduce((acc, key2) => acc?.[key2], obj);
36847
36847
  }
36848
36848
  function promiseAllObject(promisesObj) {
36849
36849
  const keys2 = Object.keys(promisesObj);
@@ -37092,11 +37092,11 @@ function aborted(x, startIndex = 0) {
37092
37092
  }
37093
37093
  return false;
37094
37094
  }
37095
- function prefixIssues(path47, issues) {
37095
+ function prefixIssues(path48, issues) {
37096
37096
  return issues.map((iss) => {
37097
37097
  var _a2;
37098
37098
  (_a2 = iss).path ?? (_a2.path = []);
37099
- iss.path.unshift(path47);
37099
+ iss.path.unshift(path48);
37100
37100
  return iss;
37101
37101
  });
37102
37102
  }
@@ -46942,8 +46942,8 @@ var require_utils3 = __commonJS({
46942
46942
  }
46943
46943
  return ind;
46944
46944
  }
46945
- function removeDotSegments(path47) {
46946
- let input = path47;
46945
+ function removeDotSegments(path48) {
46946
+ let input = path48;
46947
46947
  const output = [];
46948
46948
  let nextSlash = -1;
46949
46949
  let len = 0;
@@ -47196,8 +47196,8 @@ var require_schemes = __commonJS({
47196
47196
  wsComponent.secure = void 0;
47197
47197
  }
47198
47198
  if (wsComponent.resourceName) {
47199
- const [path47, query] = wsComponent.resourceName.split("?");
47200
- wsComponent.path = path47 && path47 !== "/" ? path47 : void 0;
47199
+ const [path48, query] = wsComponent.resourceName.split("?");
47200
+ wsComponent.path = path48 && path48 !== "/" ? path48 : void 0;
47201
47201
  wsComponent.query = query;
47202
47202
  wsComponent.resourceName = void 0;
47203
47203
  }
@@ -50636,12 +50636,12 @@ var require_dist4 = __commonJS({
50636
50636
  throw new Error(`Unknown format "${name2}"`);
50637
50637
  return f;
50638
50638
  };
50639
- function addFormats(ajv, list4, fs43, exportName) {
50639
+ function addFormats(ajv, list4, fs44, exportName) {
50640
50640
  var _a2;
50641
50641
  var _b;
50642
50642
  (_a2 = (_b = ajv.opts.code).formats) !== null && _a2 !== void 0 ? _a2 : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
50643
50643
  for (const f of list4)
50644
- ajv.addFormat(f, fs43[f]);
50644
+ ajv.addFormat(f, fs44[f]);
50645
50645
  }
50646
50646
  module2.exports = exports2 = formatsPlugin;
50647
50647
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -51472,8 +51472,8 @@ var require_windows = __commonJS({
51472
51472
  init_cjs_shims();
51473
51473
  module2.exports = isexe;
51474
51474
  isexe.sync = sync;
51475
- var fs43 = require("fs");
51476
- function checkPathExt(path47, options) {
51475
+ var fs44 = require("fs");
51476
+ function checkPathExt(path48, options) {
51477
51477
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
51478
51478
  if (!pathext) {
51479
51479
  return true;
@@ -51484,25 +51484,25 @@ var require_windows = __commonJS({
51484
51484
  }
51485
51485
  for (var i = 0; i < pathext.length; i++) {
51486
51486
  var p2 = pathext[i].toLowerCase();
51487
- if (p2 && path47.substr(-p2.length).toLowerCase() === p2) {
51487
+ if (p2 && path48.substr(-p2.length).toLowerCase() === p2) {
51488
51488
  return true;
51489
51489
  }
51490
51490
  }
51491
51491
  return false;
51492
51492
  }
51493
- function checkStat(stat3, path47, options) {
51493
+ function checkStat(stat3, path48, options) {
51494
51494
  if (!stat3.isSymbolicLink() && !stat3.isFile()) {
51495
51495
  return false;
51496
51496
  }
51497
- return checkPathExt(path47, options);
51497
+ return checkPathExt(path48, options);
51498
51498
  }
51499
- function isexe(path47, options, cb) {
51500
- fs43.stat(path47, function(er, stat3) {
51501
- cb(er, er ? false : checkStat(stat3, path47, options));
51499
+ function isexe(path48, options, cb) {
51500
+ fs44.stat(path48, function(er, stat3) {
51501
+ cb(er, er ? false : checkStat(stat3, path48, options));
51502
51502
  });
51503
51503
  }
51504
- function sync(path47, options) {
51505
- return checkStat(fs43.statSync(path47), path47, options);
51504
+ function sync(path48, options) {
51505
+ return checkStat(fs44.statSync(path48), path48, options);
51506
51506
  }
51507
51507
  }
51508
51508
  });
@@ -51514,14 +51514,14 @@ var require_mode = __commonJS({
51514
51514
  init_cjs_shims();
51515
51515
  module2.exports = isexe;
51516
51516
  isexe.sync = sync;
51517
- var fs43 = require("fs");
51518
- function isexe(path47, options, cb) {
51519
- fs43.stat(path47, function(er, stat3) {
51517
+ var fs44 = require("fs");
51518
+ function isexe(path48, options, cb) {
51519
+ fs44.stat(path48, function(er, stat3) {
51520
51520
  cb(er, er ? false : checkStat(stat3, options));
51521
51521
  });
51522
51522
  }
51523
- function sync(path47, options) {
51524
- return checkStat(fs43.statSync(path47), options);
51523
+ function sync(path48, options) {
51524
+ return checkStat(fs44.statSync(path48), options);
51525
51525
  }
51526
51526
  function checkStat(stat3, options) {
51527
51527
  return stat3.isFile() && checkMode(stat3, options);
@@ -51547,7 +51547,7 @@ var require_isexe = __commonJS({
51547
51547
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
51548
51548
  "use strict";
51549
51549
  init_cjs_shims();
51550
- var fs43 = require("fs");
51550
+ var fs44 = require("fs");
51551
51551
  var core2;
51552
51552
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
51553
51553
  core2 = require_windows();
@@ -51556,7 +51556,7 @@ var require_isexe = __commonJS({
51556
51556
  }
51557
51557
  module2.exports = isexe;
51558
51558
  isexe.sync = sync;
51559
- function isexe(path47, options, cb) {
51559
+ function isexe(path48, options, cb) {
51560
51560
  if (typeof options === "function") {
51561
51561
  cb = options;
51562
51562
  options = {};
@@ -51566,7 +51566,7 @@ var require_isexe = __commonJS({
51566
51566
  throw new TypeError("callback not provided");
51567
51567
  }
51568
51568
  return new Promise(function(resolve24, reject) {
51569
- isexe(path47, options || {}, function(er, is2) {
51569
+ isexe(path48, options || {}, function(er, is2) {
51570
51570
  if (er) {
51571
51571
  reject(er);
51572
51572
  } else {
@@ -51575,7 +51575,7 @@ var require_isexe = __commonJS({
51575
51575
  });
51576
51576
  });
51577
51577
  }
51578
- core2(path47, options || {}, function(er, is2) {
51578
+ core2(path48, options || {}, function(er, is2) {
51579
51579
  if (er) {
51580
51580
  if (er.code === "EACCES" || options && options.ignoreErrors) {
51581
51581
  er = null;
@@ -51585,9 +51585,9 @@ var require_isexe = __commonJS({
51585
51585
  cb(er, is2);
51586
51586
  });
51587
51587
  }
51588
- function sync(path47, options) {
51588
+ function sync(path48, options) {
51589
51589
  try {
51590
- return core2.sync(path47, options || {});
51590
+ return core2.sync(path48, options || {});
51591
51591
  } catch (er) {
51592
51592
  if (options && options.ignoreErrors || er.code === "EACCES") {
51593
51593
  return false;
@@ -51605,7 +51605,7 @@ var require_which = __commonJS({
51605
51605
  "use strict";
51606
51606
  init_cjs_shims();
51607
51607
  var isWindows3 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
51608
- var path47 = require("path");
51608
+ var path48 = require("path");
51609
51609
  var COLON = isWindows3 ? ";" : ":";
51610
51610
  var isexe = require_isexe();
51611
51611
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -51643,7 +51643,7 @@ var require_which = __commonJS({
51643
51643
  return opt.all && found.length ? resolve24(found) : reject(getNotFoundError(cmd));
51644
51644
  const ppRaw = pathEnv[i];
51645
51645
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
51646
- const pCmd = path47.join(pathPart, cmd);
51646
+ const pCmd = path48.join(pathPart, cmd);
51647
51647
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
51648
51648
  resolve24(subStep(p2, i, 0));
51649
51649
  });
@@ -51670,7 +51670,7 @@ var require_which = __commonJS({
51670
51670
  for (let i = 0; i < pathEnv.length; i++) {
51671
51671
  const ppRaw = pathEnv[i];
51672
51672
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
51673
- const pCmd = path47.join(pathPart, cmd);
51673
+ const pCmd = path48.join(pathPart, cmd);
51674
51674
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
51675
51675
  for (let j = 0; j < pathExt.length; j++) {
51676
51676
  const cur = p2 + pathExt[j];
@@ -51720,7 +51720,7 @@ var require_resolveCommand = __commonJS({
51720
51720
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
51721
51721
  "use strict";
51722
51722
  init_cjs_shims();
51723
- var path47 = require("path");
51723
+ var path48 = require("path");
51724
51724
  var which = require_which();
51725
51725
  var getPathKey = require_path_key();
51726
51726
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -51738,7 +51738,7 @@ var require_resolveCommand = __commonJS({
51738
51738
  try {
51739
51739
  resolved = which.sync(parsed.command, {
51740
51740
  path: env4[getPathKey({ env: env4 })],
51741
- pathExt: withoutPathExt ? path47.delimiter : void 0
51741
+ pathExt: withoutPathExt ? path48.delimiter : void 0
51742
51742
  });
51743
51743
  } catch (e) {
51744
51744
  } finally {
@@ -51747,7 +51747,7 @@ var require_resolveCommand = __commonJS({
51747
51747
  }
51748
51748
  }
51749
51749
  if (resolved) {
51750
- resolved = path47.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
51750
+ resolved = path48.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
51751
51751
  }
51752
51752
  return resolved;
51753
51753
  }
@@ -51804,8 +51804,8 @@ var require_shebang_command = __commonJS({
51804
51804
  if (!match) {
51805
51805
  return null;
51806
51806
  }
51807
- const [path47, argument] = match[0].replace(/#! ?/, "").split(" ");
51808
- const binary = path47.split("/").pop();
51807
+ const [path48, argument] = match[0].replace(/#! ?/, "").split(" ");
51808
+ const binary = path48.split("/").pop();
51809
51809
  if (binary === "env") {
51810
51810
  return argument;
51811
51811
  }
@@ -51819,16 +51819,16 @@ var require_readShebang = __commonJS({
51819
51819
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
51820
51820
  "use strict";
51821
51821
  init_cjs_shims();
51822
- var fs43 = require("fs");
51822
+ var fs44 = require("fs");
51823
51823
  var shebangCommand = require_shebang_command();
51824
51824
  function readShebang(command) {
51825
51825
  const size = 150;
51826
51826
  const buffer = Buffer.alloc(size);
51827
51827
  let fd;
51828
51828
  try {
51829
- fd = fs43.openSync(command, "r");
51830
- fs43.readSync(fd, buffer, 0, size, 0);
51831
- fs43.closeSync(fd);
51829
+ fd = fs44.openSync(command, "r");
51830
+ fs44.readSync(fd, buffer, 0, size, 0);
51831
+ fs44.closeSync(fd);
51832
51832
  } catch (e) {
51833
51833
  }
51834
51834
  return shebangCommand(buffer.toString());
@@ -51842,7 +51842,7 @@ var require_parse3 = __commonJS({
51842
51842
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
51843
51843
  "use strict";
51844
51844
  init_cjs_shims();
51845
- var path47 = require("path");
51845
+ var path48 = require("path");
51846
51846
  var resolveCommand = require_resolveCommand();
51847
51847
  var escape2 = require_escape();
51848
51848
  var readShebang = require_readShebang();
@@ -51867,7 +51867,7 @@ var require_parse3 = __commonJS({
51867
51867
  const needsShell = !isExecutableRegExp.test(commandFile);
51868
51868
  if (parsed.options.forceShell || needsShell) {
51869
51869
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
51870
- parsed.command = path47.normalize(parsed.command);
51870
+ parsed.command = path48.normalize(parsed.command);
51871
51871
  parsed.command = escape2.command(parsed.command);
51872
51872
  parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
51873
51873
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -57936,9 +57936,9 @@ __export(getMachineId_linux_exports, {
57936
57936
  });
57937
57937
  async function getMachineId2() {
57938
57938
  const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
57939
- for (const path47 of paths) {
57939
+ for (const path48 of paths) {
57940
57940
  try {
57941
- const result = await import_fs.promises.readFile(path47, { encoding: "utf8" });
57941
+ const result = await import_fs.promises.readFile(path48, { encoding: "utf8" });
57942
57942
  return result.trim();
57943
57943
  } catch (e) {
57944
57944
  diag2.debug(`error reading machine id: ${e}`);
@@ -58147,14 +58147,14 @@ var init_OSDetector = __esm({
58147
58147
  });
58148
58148
 
58149
58149
  // ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js
58150
- var os8, ProcessDetector, processDetector;
58150
+ var os9, ProcessDetector, processDetector;
58151
58151
  var init_ProcessDetector = __esm({
58152
58152
  "../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js"() {
58153
58153
  "use strict";
58154
58154
  init_cjs_shims();
58155
58155
  init_esm8();
58156
58156
  init_semconv2();
58157
- os8 = __toESM(require("os"));
58157
+ os9 = __toESM(require("os"));
58158
58158
  ProcessDetector = class {
58159
58159
  detect(_config) {
58160
58160
  const attributes = {
@@ -58174,7 +58174,7 @@ var init_ProcessDetector = __esm({
58174
58174
  attributes[ATTR_PROCESS_COMMAND] = process.argv[1];
58175
58175
  }
58176
58176
  try {
58177
- const userInfo4 = os8.userInfo();
58177
+ const userInfo4 = os9.userInfo();
58178
58178
  attributes[ATTR_PROCESS_OWNER] = userInfo4.username;
58179
58179
  } catch (e) {
58180
58180
  diag2.debug(`error obtaining process owner: ${e}`);
@@ -65395,19 +65395,19 @@ var require_module_details_from_path = __commonJS({
65395
65395
  basedir += segments[i] + sep11;
65396
65396
  }
65397
65397
  }
65398
- var path47 = "";
65398
+ var path48 = "";
65399
65399
  var lastSegmentIndex = segments.length - 1;
65400
65400
  for (var i2 = index2 + offset; i2 <= lastSegmentIndex; i2++) {
65401
65401
  if (i2 === lastSegmentIndex) {
65402
- path47 += segments[i2];
65402
+ path48 += segments[i2];
65403
65403
  } else {
65404
- path47 += segments[i2] + sep11;
65404
+ path48 += segments[i2] + sep11;
65405
65405
  }
65406
65406
  }
65407
65407
  return {
65408
65408
  name: name2,
65409
65409
  basedir,
65410
- path: path47
65410
+ path: path48
65411
65411
  };
65412
65412
  };
65413
65413
  }
@@ -65418,7 +65418,7 @@ var require_require_in_the_middle = __commonJS({
65418
65418
  "../../node_modules/.pnpm/require-in-the-middle@8.0.1/node_modules/require-in-the-middle/index.js"(exports2, module2) {
65419
65419
  "use strict";
65420
65420
  init_cjs_shims();
65421
- var path47 = require("path");
65421
+ var path48 = require("path");
65422
65422
  var Module = require("module");
65423
65423
  var debug = require_src()("require-in-the-middle");
65424
65424
  var moduleDetailsFromPath = require_module_details_from_path();
@@ -65563,7 +65563,7 @@ var require_require_in_the_middle = __commonJS({
65563
65563
  }
65564
65564
  moduleName = filename;
65565
65565
  } else if (hasWhitelist === true && modules.includes(filename)) {
65566
- const parsedPath = path47.parse(filename);
65566
+ const parsedPath = path48.parse(filename);
65567
65567
  moduleName = parsedPath.name;
65568
65568
  basedir = parsedPath.dir;
65569
65569
  } else {
@@ -65601,7 +65601,7 @@ var require_require_in_the_middle = __commonJS({
65601
65601
  }
65602
65602
  if (res !== filename) {
65603
65603
  if (internals === true) {
65604
- moduleName = moduleName + path47.sep + path47.relative(basedir, filename);
65604
+ moduleName = moduleName + path48.sep + path48.relative(basedir, filename);
65605
65605
  debug("preparing to process require of internal file: %s", moduleName);
65606
65606
  } else {
65607
65607
  debug("ignoring require of non-main module file: %s", res);
@@ -65637,8 +65637,8 @@ var require_require_in_the_middle = __commonJS({
65637
65637
  }
65638
65638
  };
65639
65639
  function resolveModuleName(stat3) {
65640
- const normalizedPath = path47.sep !== "/" ? stat3.path.split(path47.sep).join("/") : stat3.path;
65641
- return path47.posix.join(stat3.name, normalizedPath).replace(normalize8, "");
65640
+ const normalizedPath = path48.sep !== "/" ? stat3.path.split(path48.sep).join("/") : stat3.path;
65641
+ return path48.posix.join(stat3.name, normalizedPath).replace(normalize8, "");
65642
65642
  }
65643
65643
  }
65644
65644
  });
@@ -65717,15 +65717,15 @@ var init_ModuleNameTrie = __esm({
65717
65717
 
65718
65718
  // ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
65719
65719
  function normalizePathSeparators(moduleNameOrPath) {
65720
- return path37.sep !== ModuleNameSeparator ? moduleNameOrPath.split(path37.sep).join(ModuleNameSeparator) : moduleNameOrPath;
65720
+ return path38.sep !== ModuleNameSeparator ? moduleNameOrPath.split(path38.sep).join(ModuleNameSeparator) : moduleNameOrPath;
65721
65721
  }
65722
- var import_require_in_the_middle, path37, isMocha, RequireInTheMiddleSingleton;
65722
+ var import_require_in_the_middle, path38, isMocha, RequireInTheMiddleSingleton;
65723
65723
  var init_RequireInTheMiddleSingleton = __esm({
65724
65724
  "../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js"() {
65725
65725
  "use strict";
65726
65726
  init_cjs_shims();
65727
65727
  import_require_in_the_middle = __toESM(require_require_in_the_middle());
65728
- path37 = __toESM(require("path"));
65728
+ path38 = __toESM(require("path"));
65729
65729
  init_ModuleNameTrie();
65730
65730
  isMocha = [
65731
65731
  "afterEach",
@@ -65850,7 +65850,7 @@ var require_import_in_the_middle = __commonJS({
65850
65850
  "../../node_modules/.pnpm/import-in-the-middle@3.0.2/node_modules/import-in-the-middle/index.js"(exports2, module2) {
65851
65851
  "use strict";
65852
65852
  init_cjs_shims();
65853
- var path47 = require("path");
65853
+ var path48 = require("path");
65854
65854
  var moduleDetailsFromPath = require_module_details_from_path();
65855
65855
  var { fileURLToPath: fileURLToPath3 } = require("url");
65856
65856
  var { MessageChannel } = require("worker_threads");
@@ -65969,7 +65969,7 @@ var require_import_in_the_middle = __commonJS({
65969
65969
  } else if (baseDir.endsWith(specifiers.get(loadUrl)) || isTurbopackSpecifier(specifiers.get(loadUrl), baseDir)) {
65970
65970
  callHookFn(hookFn, namespace, name2, baseDir);
65971
65971
  } else if (internals) {
65972
- const internalPath = name2 + path47.sep + path47.relative(baseDir, filePath);
65972
+ const internalPath = name2 + path48.sep + path48.relative(baseDir, filePath);
65973
65973
  callHookFn(hookFn, namespace, internalPath, baseDir);
65974
65974
  }
65975
65975
  } else if (matchArg === specifier) {
@@ -66043,12 +66043,12 @@ function isSupported(supportedVersions, version3, includePrerelease) {
66043
66043
  return satisfies(version3, supportedVersion, { includePrerelease });
66044
66044
  });
66045
66045
  }
66046
- var path38, import_util10, import_import_in_the_middle, import_require_in_the_middle2, import_fs3, InstrumentationBase;
66046
+ var path39, import_util10, import_import_in_the_middle, import_require_in_the_middle2, import_fs3, InstrumentationBase;
66047
66047
  var init_instrumentation2 = __esm({
66048
66048
  "../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js"() {
66049
66049
  "use strict";
66050
66050
  init_cjs_shims();
66051
- path38 = __toESM(require("path"));
66051
+ path39 = __toESM(require("path"));
66052
66052
  import_util10 = require("util");
66053
66053
  init_semver2();
66054
66054
  init_shimmer();
@@ -66149,7 +66149,7 @@ var init_instrumentation2 = __esm({
66149
66149
  }
66150
66150
  _extractPackageVersion(baseDir) {
66151
66151
  try {
66152
- const json = (0, import_fs3.readFileSync)(path38.join(baseDir, "package.json"), {
66152
+ const json = (0, import_fs3.readFileSync)(path39.join(baseDir, "package.json"), {
66153
66153
  encoding: "utf8"
66154
66154
  });
66155
66155
  const version3 = JSON.parse(json).version;
@@ -66191,7 +66191,7 @@ var init_instrumentation2 = __esm({
66191
66191
  return exports2;
66192
66192
  }
66193
66193
  const files = module2.files ?? [];
66194
- const normalizedName = path38.normalize(name2);
66194
+ const normalizedName = path39.normalize(name2);
66195
66195
  const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported(f.supportedVersions, version3, module2.includePrerelease));
66196
66196
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
66197
66197
  file.moduleExports = patchedExports;
@@ -66237,8 +66237,8 @@ var init_instrumentation2 = __esm({
66237
66237
  this._warnOnPreloadedModules();
66238
66238
  for (const module2 of this._modules) {
66239
66239
  const hookFn = (exports2, name2, baseDir) => {
66240
- if (!baseDir && path38.isAbsolute(name2)) {
66241
- const parsedPath = path38.parse(name2);
66240
+ if (!baseDir && path39.isAbsolute(name2)) {
66241
+ const parsedPath = path39.parse(name2);
66242
66242
  name2 = parsedPath.name;
66243
66243
  baseDir = parsedPath.dir;
66244
66244
  }
@@ -66247,7 +66247,7 @@ var init_instrumentation2 = __esm({
66247
66247
  const onRequire = (exports2, name2, baseDir) => {
66248
66248
  return this._onRequire(module2, exports2, name2, baseDir);
66249
66249
  };
66250
- const hook = path38.isAbsolute(module2.name) ? new import_require_in_the_middle2.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
66250
+ const hook = path39.isAbsolute(module2.name) ? new import_require_in_the_middle2.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
66251
66251
  this._hooks.push(hook);
66252
66252
  const esmHook = new import_import_in_the_middle.Hook([module2.name], { internals: true }, hookFn);
66253
66253
  this._hooks.push(esmHook);
@@ -69178,7 +69178,7 @@ function appendRootPathToUrlIfNeeded(url3) {
69178
69178
  return void 0;
69179
69179
  }
69180
69180
  }
69181
- function appendResourcePathToUrl(url3, path47) {
69181
+ function appendResourcePathToUrl(url3, path48) {
69182
69182
  try {
69183
69183
  new URL(url3);
69184
69184
  } catch {
@@ -69188,11 +69188,11 @@ function appendResourcePathToUrl(url3, path47) {
69188
69188
  if (!url3.endsWith("/")) {
69189
69189
  url3 = url3 + "/";
69190
69190
  }
69191
- url3 += path47;
69191
+ url3 += path48;
69192
69192
  try {
69193
69193
  new URL(url3);
69194
69194
  } catch {
69195
- diag2.warn(`Configuration: Provided URL appended with '${path47}' is not a valid URL, using 'undefined' instead of '${url3}'`);
69195
+ diag2.warn(`Configuration: Provided URL appended with '${path48}' is not a valid URL, using 'undefined' instead of '${url3}'`);
69196
69196
  return void 0;
69197
69197
  }
69198
69198
  return url3;
@@ -69217,7 +69217,7 @@ function readFileFromEnv(signalSpecificEnvVar, nonSignalSpecificEnvVar, warningM
69217
69217
  const filePath = signalSpecificPath ?? nonSignalSpecificPath;
69218
69218
  if (filePath != null) {
69219
69219
  try {
69220
- return fs36.readFileSync(path39.resolve(process.cwd(), filePath));
69220
+ return fs37.readFileSync(path40.resolve(process.cwd(), filePath));
69221
69221
  } catch {
69222
69222
  diag2.warn(warningMessage);
69223
69223
  return void 0;
@@ -69248,13 +69248,13 @@ function getNodeHttpConfigurationFromEnvironment(signalIdentifier, signalResourc
69248
69248
  })
69249
69249
  };
69250
69250
  }
69251
- var fs36, path39;
69251
+ var fs37, path40;
69252
69252
  var init_otlp_node_http_env_configuration = __esm({
69253
69253
  "../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-node-http-env-configuration.js"() {
69254
69254
  "use strict";
69255
69255
  init_cjs_shims();
69256
- fs36 = __toESM(require("fs"));
69257
- path39 = __toESM(require("path"));
69256
+ fs37 = __toESM(require("fs"));
69257
+ path40 = __toESM(require("path"));
69258
69258
  init_esm11();
69259
69259
  init_esm8();
69260
69260
  init_shared_env_configuration();
@@ -70055,14 +70055,14 @@ var require_tls_helpers = __commonJS({
70055
70055
  Object.defineProperty(exports2, "__esModule", { value: true });
70056
70056
  exports2.CIPHER_SUITES = void 0;
70057
70057
  exports2.getDefaultRootsData = getDefaultRootsData;
70058
- var fs43 = require("fs");
70058
+ var fs44 = require("fs");
70059
70059
  exports2.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES;
70060
70060
  var DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH;
70061
70061
  var defaultRootsData = null;
70062
70062
  function getDefaultRootsData() {
70063
70063
  if (DEFAULT_ROOTS_FILE_PATH) {
70064
70064
  if (defaultRootsData === null) {
70065
- defaultRootsData = fs43.readFileSync(DEFAULT_ROOTS_FILE_PATH);
70065
+ defaultRootsData = fs44.readFileSync(DEFAULT_ROOTS_FILE_PATH);
70066
70066
  }
70067
70067
  return defaultRootsData;
70068
70068
  }
@@ -70094,19 +70094,19 @@ var require_uri_parser = __commonJS({
70094
70094
  };
70095
70095
  }
70096
70096
  var NUMBER_REGEX = /^\d+$/;
70097
- function splitHostPort(path47) {
70098
- if (path47.startsWith("[")) {
70099
- const hostEnd = path47.indexOf("]");
70097
+ function splitHostPort(path48) {
70098
+ if (path48.startsWith("[")) {
70099
+ const hostEnd = path48.indexOf("]");
70100
70100
  if (hostEnd === -1) {
70101
70101
  return null;
70102
70102
  }
70103
- const host = path47.substring(1, hostEnd);
70103
+ const host = path48.substring(1, hostEnd);
70104
70104
  if (host.indexOf(":") === -1) {
70105
70105
  return null;
70106
70106
  }
70107
- if (path47.length > hostEnd + 1) {
70108
- if (path47[hostEnd + 1] === ":") {
70109
- const portString = path47.substring(hostEnd + 2);
70107
+ if (path48.length > hostEnd + 1) {
70108
+ if (path48[hostEnd + 1] === ":") {
70109
+ const portString = path48.substring(hostEnd + 2);
70110
70110
  if (NUMBER_REGEX.test(portString)) {
70111
70111
  return {
70112
70112
  host,
@@ -70124,7 +70124,7 @@ var require_uri_parser = __commonJS({
70124
70124
  };
70125
70125
  }
70126
70126
  } else {
70127
- const splitPath = path47.split(":");
70127
+ const splitPath = path48.split(":");
70128
70128
  if (splitPath.length === 2) {
70129
70129
  if (NUMBER_REGEX.test(splitPath[1])) {
70130
70130
  return {
@@ -70136,7 +70136,7 @@ var require_uri_parser = __commonJS({
70136
70136
  }
70137
70137
  } else {
70138
70138
  return {
70139
- host: path47
70139
+ host: path48
70140
70140
  };
70141
70141
  }
70142
70142
  }
@@ -70717,7 +70717,7 @@ var require_service_config = __commonJS({
70717
70717
  exports2.validateRetryThrottling = validateRetryThrottling;
70718
70718
  exports2.validateServiceConfig = validateServiceConfig;
70719
70719
  exports2.extractAndSelectServiceConfig = extractAndSelectServiceConfig;
70720
- var os16 = require("os");
70720
+ var os17 = require("os");
70721
70721
  var constants_1 = require_constants2();
70722
70722
  var DURATION_REGEX = /^\d+(\.\d{1,9})?s$/;
70723
70723
  var CLIENT_LANGUAGE_STRING = "node";
@@ -71016,7 +71016,7 @@ var require_service_config = __commonJS({
71016
71016
  if (Array.isArray(validatedConfig.clientHostname)) {
71017
71017
  let hostnameMatched = false;
71018
71018
  for (const hostname6 of validatedConfig.clientHostname) {
71019
- if (hostname6 === os16.hostname()) {
71019
+ if (hostname6 === os17.hostname()) {
71020
71020
  hostnameMatched = true;
71021
71021
  }
71022
71022
  }
@@ -73321,14 +73321,14 @@ var require_client_interceptors = __commonJS({
73321
73321
  }
73322
73322
  };
73323
73323
  exports2.InterceptingCall = InterceptingCall;
73324
- function getCall(channel, path47, options) {
73324
+ function getCall(channel, path48, options) {
73325
73325
  var _a2, _b;
73326
73326
  const deadline = (_a2 = options.deadline) !== null && _a2 !== void 0 ? _a2 : Infinity;
73327
73327
  const host = options.host;
73328
73328
  const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null;
73329
73329
  const propagateFlags = options.propagate_flags;
73330
73330
  const credentials = options.credentials;
73331
- const call = channel.createCall(path47, deadline, host, parent, propagateFlags);
73331
+ const call = channel.createCall(path48, deadline, host, parent, propagateFlags);
73332
73332
  if (credentials) {
73333
73333
  call.setCredentials(credentials);
73334
73334
  }
@@ -73900,9 +73900,9 @@ var require_make_client = __commonJS({
73900
73900
  ServiceClientImpl.serviceName = serviceName3;
73901
73901
  return ServiceClientImpl;
73902
73902
  }
73903
- function partial2(fn, path47, serialize4, deserialize2) {
73903
+ function partial2(fn, path48, serialize4, deserialize2) {
73904
73904
  return function(...args) {
73905
- return fn.call(this, path47, serialize4, deserialize2, ...args);
73905
+ return fn.call(this, path48, serialize4, deserialize2, ...args);
73906
73906
  };
73907
73907
  }
73908
73908
  function isProtobufTypeDefinition(obj) {
@@ -74457,18 +74457,18 @@ var require_eventemitter = __commonJS({
74457
74457
  "../../node_modules/.pnpm/@protobufjs+eventemitter@1.1.1/node_modules/@protobufjs/eventemitter/index.js"(exports2, module2) {
74458
74458
  "use strict";
74459
74459
  init_cjs_shims();
74460
- module2.exports = EventEmitter2;
74461
- function EventEmitter2() {
74460
+ module2.exports = EventEmitter3;
74461
+ function EventEmitter3() {
74462
74462
  this._listeners = /* @__PURE__ */ Object.create(null);
74463
74463
  }
74464
- EventEmitter2.prototype.on = function on(evt, fn, ctx) {
74464
+ EventEmitter3.prototype.on = function on(evt, fn, ctx) {
74465
74465
  (this._listeners[evt] || (this._listeners[evt] = [])).push({
74466
74466
  fn,
74467
74467
  ctx: ctx || this
74468
74468
  });
74469
74469
  return this;
74470
74470
  };
74471
- EventEmitter2.prototype.off = function off(evt, fn) {
74471
+ EventEmitter3.prototype.off = function off(evt, fn) {
74472
74472
  if (evt === void 0)
74473
74473
  this._listeners = /* @__PURE__ */ Object.create(null);
74474
74474
  else {
@@ -74487,7 +74487,7 @@ var require_eventemitter = __commonJS({
74487
74487
  }
74488
74488
  return this;
74489
74489
  };
74490
- EventEmitter2.prototype.emit = function emit(evt) {
74490
+ EventEmitter3.prototype.emit = function emit(evt) {
74491
74491
  var listeners = this._listeners[evt];
74492
74492
  if (listeners) {
74493
74493
  var args = [], i = 1;
@@ -76781,17 +76781,17 @@ var require_fs = __commonJS({
76781
76781
  "../../node_modules/.pnpm/@protobufjs+fetch@1.1.1/node_modules/@protobufjs/fetch/util/fs.js"(exports2, module2) {
76782
76782
  "use strict";
76783
76783
  init_cjs_shims();
76784
- var fs43 = null;
76784
+ var fs44 = null;
76785
76785
  try {
76786
- fs43 = require(
76786
+ fs44 = require(
76787
76787
  /* webpackIgnore: true */
76788
76788
  "fs"
76789
76789
  );
76790
- if (!fs43 || !fs43.readFile || !fs43.readFileSync)
76791
- fs43 = null;
76790
+ if (!fs44 || !fs44.readFile || !fs44.readFileSync)
76791
+ fs44 = null;
76792
76792
  } catch (e) {
76793
76793
  }
76794
- module2.exports = fs43;
76794
+ module2.exports = fs44;
76795
76795
  }
76796
76796
  });
76797
76797
 
@@ -76802,7 +76802,7 @@ var require_fetch = __commonJS({
76802
76802
  init_cjs_shims();
76803
76803
  module2.exports = fetch2;
76804
76804
  var asPromise = require_aspromise();
76805
- var fs43 = require_fs();
76805
+ var fs44 = require_fs();
76806
76806
  function fetch2(filename, options, callback) {
76807
76807
  if (typeof options === "function") {
76808
76808
  callback = options;
@@ -76811,8 +76811,8 @@ var require_fetch = __commonJS({
76811
76811
  options = {};
76812
76812
  if (!callback)
76813
76813
  return asPromise(fetch2, this, filename, options);
76814
- if (!options.xhr && fs43 && fs43.readFile)
76815
- return fs43.readFile(filename, function fetchReadFileCallback(err, contents) {
76814
+ if (!options.xhr && fs44 && fs44.readFile)
76815
+ return fs44.readFile(filename, function fetchReadFileCallback(err, contents) {
76816
76816
  return err && typeof XMLHttpRequest !== "undefined" ? fetch2.xhr(filename, options, callback) : err ? callback(err) : callback(null, options.binary ? contents : contents.toString("utf8"));
76817
76817
  });
76818
76818
  return fetch2.xhr(filename, options, callback);
@@ -76851,15 +76851,15 @@ var require_path = __commonJS({
76851
76851
  "../../node_modules/.pnpm/@protobufjs+path@1.1.2/node_modules/@protobufjs/path/index.js"(exports2) {
76852
76852
  "use strict";
76853
76853
  init_cjs_shims();
76854
- var path47 = exports2;
76854
+ var path48 = exports2;
76855
76855
  var isAbsolute13 = (
76856
76856
  /**
76857
76857
  * Tests if the specified path is absolute.
76858
76858
  * @param {string} path Path to test
76859
76859
  * @returns {boolean} `true` if path is absolute
76860
76860
  */
76861
- path47.isAbsolute = function isAbsolute14(path48) {
76862
- return /^(?:\/|\w+:)/.test(path48);
76861
+ path48.isAbsolute = function isAbsolute14(path49) {
76862
+ return /^(?:\/|\w+:)/.test(path49);
76863
76863
  }
76864
76864
  );
76865
76865
  var normalize8 = (
@@ -76868,9 +76868,9 @@ var require_path = __commonJS({
76868
76868
  * @param {string} path Path to normalize
76869
76869
  * @returns {string} Normalized path
76870
76870
  */
76871
- path47.normalize = function normalize9(path48) {
76872
- path48 = path48.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
76873
- var parts = path48.split("/"), absolute = isAbsolute13(path48), prefix = "";
76871
+ path48.normalize = function normalize9(path49) {
76872
+ path49 = path49.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
76873
+ var parts = path49.split("/"), absolute = isAbsolute13(path49), prefix = "";
76874
76874
  if (absolute)
76875
76875
  prefix = parts.shift() + "/";
76876
76876
  for (var i = 0; i < parts.length; ) {
@@ -76889,7 +76889,7 @@ var require_path = __commonJS({
76889
76889
  return prefix + parts.join("/");
76890
76890
  }
76891
76891
  );
76892
- path47.resolve = function resolve24(originPath, includePath, alreadyNormalized) {
76892
+ path48.resolve = function resolve24(originPath, includePath, alreadyNormalized) {
76893
76893
  if (!alreadyNormalized)
76894
76894
  includePath = normalize8(includePath);
76895
76895
  if (isAbsolute13(includePath))
@@ -76918,17 +76918,17 @@ var require_fs2 = __commonJS({
76918
76918
  "../../node_modules/.pnpm/protobufjs@7.6.4/node_modules/protobufjs/src/util/fs.js"(exports2, module2) {
76919
76919
  "use strict";
76920
76920
  init_cjs_shims();
76921
- var fs43 = null;
76921
+ var fs44 = null;
76922
76922
  try {
76923
- fs43 = require(
76923
+ fs44 = require(
76924
76924
  /* webpackIgnore: true */
76925
76925
  "fs"
76926
76926
  );
76927
- if (!fs43 || !fs43.readFile || !fs43.readFileSync)
76928
- fs43 = null;
76927
+ if (!fs44 || !fs44.readFile || !fs44.readFileSync)
76928
+ fs44 = null;
76929
76929
  } catch (e) {
76930
76930
  }
76931
- module2.exports = fs43;
76931
+ module2.exports = fs44;
76932
76932
  }
76933
76933
  });
76934
76934
 
@@ -77076,18 +77076,18 @@ var require_namespace = __commonJS({
77076
77076
  object3.onRemove(this);
77077
77077
  return clearCache(this);
77078
77078
  };
77079
- Namespace.prototype.define = function define2(path47, json) {
77080
- if (util5.isString(path47))
77081
- path47 = path47.split(".");
77082
- else if (!Array.isArray(path47))
77079
+ Namespace.prototype.define = function define2(path48, json) {
77080
+ if (util5.isString(path48))
77081
+ path48 = path48.split(".");
77082
+ else if (!Array.isArray(path48))
77083
77083
  throw TypeError("illegal path");
77084
- if (path47 && path47.length && path47[0] === "")
77084
+ if (path48 && path48.length && path48[0] === "")
77085
77085
  throw Error("path must be relative");
77086
- if (path47.length > util5.recursionLimit)
77086
+ if (path48.length > util5.recursionLimit)
77087
77087
  throw Error("max depth exceeded");
77088
77088
  var ptr = this;
77089
- while (path47.length > 0) {
77090
- var part = path47.shift();
77089
+ while (path48.length > 0) {
77090
+ var part = path48.shift();
77091
77091
  if (ptr.nested && ptr.nested[part]) {
77092
77092
  ptr = ptr.nested[part];
77093
77093
  if (!(ptr instanceof Namespace))
@@ -77122,26 +77122,26 @@ var require_namespace = __commonJS({
77122
77122
  });
77123
77123
  return this;
77124
77124
  };
77125
- Namespace.prototype.lookup = function lookup(path47, filterTypes, parentAlreadyChecked) {
77125
+ Namespace.prototype.lookup = function lookup(path48, filterTypes, parentAlreadyChecked) {
77126
77126
  if (typeof filterTypes === "boolean") {
77127
77127
  parentAlreadyChecked = filterTypes;
77128
77128
  filterTypes = void 0;
77129
77129
  } else if (filterTypes && !Array.isArray(filterTypes))
77130
77130
  filterTypes = [filterTypes];
77131
- if (util5.isString(path47) && path47.length) {
77132
- if (path47 === ".")
77131
+ if (util5.isString(path48) && path48.length) {
77132
+ if (path48 === ".")
77133
77133
  return this.root;
77134
- path47 = path47.split(".");
77135
- } else if (!path47.length)
77134
+ path48 = path48.split(".");
77135
+ } else if (!path48.length)
77136
77136
  return this;
77137
- var flatPath = path47.join(".");
77138
- if (path47[0] === "")
77139
- return this.root.lookup(path47.slice(1), filterTypes);
77137
+ var flatPath = path48.join(".");
77138
+ if (path48[0] === "")
77139
+ return this.root.lookup(path48.slice(1), filterTypes);
77140
77140
  var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath];
77141
77141
  if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
77142
77142
  return found;
77143
77143
  }
77144
- found = this._lookupImpl(path47, flatPath);
77144
+ found = this._lookupImpl(path48, flatPath);
77145
77145
  if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
77146
77146
  return found;
77147
77147
  }
@@ -77149,7 +77149,7 @@ var require_namespace = __commonJS({
77149
77149
  return null;
77150
77150
  var current = this;
77151
77151
  while (current.parent) {
77152
- found = current.parent._lookupImpl(path47, flatPath);
77152
+ found = current.parent._lookupImpl(path48, flatPath);
77153
77153
  if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
77154
77154
  return found;
77155
77155
  }
@@ -77157,22 +77157,22 @@ var require_namespace = __commonJS({
77157
77157
  }
77158
77158
  return null;
77159
77159
  };
77160
- Namespace.prototype._lookupImpl = function lookup(path47, flatPath) {
77160
+ Namespace.prototype._lookupImpl = function lookup(path48, flatPath) {
77161
77161
  if (Object.prototype.hasOwnProperty.call(this._lookupCache, flatPath)) {
77162
77162
  return this._lookupCache[flatPath];
77163
77163
  }
77164
- var found = this.get(path47[0]);
77164
+ var found = this.get(path48[0]);
77165
77165
  var exact = null;
77166
77166
  if (found) {
77167
- if (path47.length === 1) {
77167
+ if (path48.length === 1) {
77168
77168
  exact = found;
77169
77169
  } else if (found instanceof Namespace) {
77170
- path47 = path47.slice(1);
77171
- exact = found._lookupImpl(path47, path47.join("."));
77170
+ path48 = path48.slice(1);
77171
+ exact = found._lookupImpl(path48, path48.join("."));
77172
77172
  }
77173
77173
  } else {
77174
77174
  for (var i = 0; i < this.nestedArray.length; ++i)
77175
- if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path47, flatPath))) {
77175
+ if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path48, flatPath))) {
77176
77176
  exact = found;
77177
77177
  break;
77178
77178
  }
@@ -77180,28 +77180,28 @@ var require_namespace = __commonJS({
77180
77180
  this._lookupCache[flatPath] = exact;
77181
77181
  return exact;
77182
77182
  };
77183
- Namespace.prototype.lookupType = function lookupType(path47) {
77184
- var found = this.lookup(path47, [Type]);
77183
+ Namespace.prototype.lookupType = function lookupType(path48) {
77184
+ var found = this.lookup(path48, [Type]);
77185
77185
  if (!found)
77186
- throw Error("no such type: " + path47);
77186
+ throw Error("no such type: " + path48);
77187
77187
  return found;
77188
77188
  };
77189
- Namespace.prototype.lookupEnum = function lookupEnum(path47) {
77190
- var found = this.lookup(path47, [Enum]);
77189
+ Namespace.prototype.lookupEnum = function lookupEnum(path48) {
77190
+ var found = this.lookup(path48, [Enum]);
77191
77191
  if (!found)
77192
- throw Error("no such Enum '" + path47 + "' in " + this);
77192
+ throw Error("no such Enum '" + path48 + "' in " + this);
77193
77193
  return found;
77194
77194
  };
77195
- Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path47) {
77196
- var found = this.lookup(path47, [Type, Enum]);
77195
+ Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path48) {
77196
+ var found = this.lookup(path48, [Type, Enum]);
77197
77197
  if (!found)
77198
- throw Error("no such Type or Enum '" + path47 + "' in " + this);
77198
+ throw Error("no such Type or Enum '" + path48 + "' in " + this);
77199
77199
  return found;
77200
77200
  };
77201
- Namespace.prototype.lookupService = function lookupService(path47) {
77202
- var found = this.lookup(path47, [Service]);
77201
+ Namespace.prototype.lookupService = function lookupService(path48) {
77202
+ var found = this.lookup(path48, [Service]);
77203
77203
  if (!found)
77204
- throw Error("no such Service '" + path47 + "' in " + this);
77204
+ throw Error("no such Service '" + path48 + "' in " + this);
77205
77205
  return found;
77206
77206
  };
77207
77207
  Namespace._configure = function(Type_, Service_, Enum_) {
@@ -78624,13 +78624,13 @@ var require_util2 = __commonJS({
78624
78624
  Object.defineProperty(object3, "$type", { value: enm, enumerable: false });
78625
78625
  return enm;
78626
78626
  };
78627
- util5.setProperty = function setProperty(dst, path47, value, ifNotSet) {
78628
- function setProp(dst2, path48, value2) {
78629
- var part = path48.shift();
78627
+ util5.setProperty = function setProperty(dst, path48, value, ifNotSet) {
78628
+ function setProp(dst2, path49, value2) {
78629
+ var part = path49.shift();
78630
78630
  if (util5.isUnsafeProperty(part))
78631
78631
  return dst2;
78632
- if (path48.length > 0) {
78633
- dst2[part] = setProp(dst2[part] || {}, path48, value2);
78632
+ if (path49.length > 0) {
78633
+ dst2[part] = setProp(dst2[part] || {}, path49, value2);
78634
78634
  } else {
78635
78635
  var prevValue = dst2[part];
78636
78636
  if (prevValue && ifNotSet)
@@ -78643,12 +78643,12 @@ var require_util2 = __commonJS({
78643
78643
  }
78644
78644
  if (typeof dst !== "object")
78645
78645
  throw TypeError("dst must be an object");
78646
- if (!path47)
78646
+ if (!path48)
78647
78647
  throw TypeError("path must be specified");
78648
- path47 = path47.split(".");
78649
- if (path47.length > util5.recursionLimit)
78648
+ path48 = path48.split(".");
78649
+ if (path48.length > util5.recursionLimit)
78650
78650
  throw Error("max depth exceeded");
78651
- return setProp(dst, path47, value);
78651
+ return setProp(dst, path48, value);
78652
78652
  };
78653
78653
  Object.defineProperty(util5, "decorateRoot", {
78654
78654
  get: function() {
@@ -79198,12 +79198,12 @@ var require_object = __commonJS({
79198
79198
  */
79199
79199
  fullName: {
79200
79200
  get: function() {
79201
- var path47 = [this.name], ptr = this.parent;
79201
+ var path48 = [this.name], ptr = this.parent;
79202
79202
  while (ptr) {
79203
- path47.unshift(ptr.name);
79203
+ path48.unshift(ptr.name);
79204
79204
  ptr = ptr.parent;
79205
79205
  }
79206
- return path47.join(".");
79206
+ return path48.join(".");
79207
79207
  }
79208
79208
  }
79209
79209
  });
@@ -83247,19 +83247,19 @@ var require_util3 = __commonJS({
83247
83247
  init_cjs_shims();
83248
83248
  Object.defineProperty(exports2, "__esModule", { value: true });
83249
83249
  exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
83250
- var fs43 = require("fs");
83251
- var path47 = require("path");
83250
+ var fs44 = require("fs");
83251
+ var path48 = require("path");
83252
83252
  var Protobuf = require_protobufjs();
83253
83253
  function addIncludePathResolver(root7, includePaths) {
83254
83254
  const originalResolvePath = root7.resolvePath;
83255
83255
  root7.resolvePath = (origin, target) => {
83256
- if (path47.isAbsolute(target)) {
83256
+ if (path48.isAbsolute(target)) {
83257
83257
  return target;
83258
83258
  }
83259
83259
  for (const directory of includePaths) {
83260
- const fullPath = path47.join(directory, target);
83260
+ const fullPath = path48.join(directory, target);
83261
83261
  try {
83262
- fs43.accessSync(fullPath, fs43.constants.R_OK);
83262
+ fs44.accessSync(fullPath, fs44.constants.R_OK);
83263
83263
  return fullPath;
83264
83264
  } catch (err) {
83265
83265
  continue;
@@ -85755,7 +85755,7 @@ var require_subchannel_call = __commonJS({
85755
85755
  Object.defineProperty(exports2, "__esModule", { value: true });
85756
85756
  exports2.Http2SubchannelCall = void 0;
85757
85757
  var http22 = require("http2");
85758
- var os16 = require("os");
85758
+ var os17 = require("os");
85759
85759
  var constants_1 = require_constants2();
85760
85760
  var metadata_1 = require_metadata2();
85761
85761
  var stream_decoder_1 = require_stream_decoder();
@@ -85763,7 +85763,7 @@ var require_subchannel_call = __commonJS({
85763
85763
  var constants_2 = require_constants2();
85764
85764
  var TRACER_NAME = "subchannel_call";
85765
85765
  function getSystemErrorName(errno) {
85766
- for (const [name2, num] of Object.entries(os16.constants.errno)) {
85766
+ for (const [name2, num] of Object.entries(os17.constants.errno)) {
85767
85767
  if (num === errno) {
85768
85768
  return name2;
85769
85769
  }
@@ -88639,9 +88639,9 @@ var require_server_call = __commonJS({
88639
88639
  return status;
88640
88640
  }
88641
88641
  var ServerUnaryCallImpl = class extends events_1.EventEmitter {
88642
- constructor(path47, call, metadata, request2) {
88642
+ constructor(path48, call, metadata, request2) {
88643
88643
  super();
88644
- this.path = path47;
88644
+ this.path = path48;
88645
88645
  this.call = call;
88646
88646
  this.metadata = metadata;
88647
88647
  this.request = request2;
@@ -88671,9 +88671,9 @@ var require_server_call = __commonJS({
88671
88671
  };
88672
88672
  exports2.ServerUnaryCallImpl = ServerUnaryCallImpl;
88673
88673
  var ServerReadableStreamImpl = class extends stream_1.Readable {
88674
- constructor(path47, call, metadata) {
88674
+ constructor(path48, call, metadata) {
88675
88675
  super({ objectMode: true });
88676
- this.path = path47;
88676
+ this.path = path48;
88677
88677
  this.call = call;
88678
88678
  this.metadata = metadata;
88679
88679
  this.cancelled = false;
@@ -88705,9 +88705,9 @@ var require_server_call = __commonJS({
88705
88705
  };
88706
88706
  exports2.ServerReadableStreamImpl = ServerReadableStreamImpl;
88707
88707
  var ServerWritableStreamImpl = class extends stream_1.Writable {
88708
- constructor(path47, call, metadata, request2) {
88708
+ constructor(path48, call, metadata, request2) {
88709
88709
  super({ objectMode: true });
88710
- this.path = path47;
88710
+ this.path = path48;
88711
88711
  this.call = call;
88712
88712
  this.metadata = metadata;
88713
88713
  this.request = request2;
@@ -88761,9 +88761,9 @@ var require_server_call = __commonJS({
88761
88761
  };
88762
88762
  exports2.ServerWritableStreamImpl = ServerWritableStreamImpl;
88763
88763
  var ServerDuplexStreamImpl = class extends stream_1.Duplex {
88764
- constructor(path47, call, metadata) {
88764
+ constructor(path48, call, metadata) {
88765
88765
  super({ objectMode: true });
88766
- this.path = path47;
88766
+ this.path = path48;
88767
88767
  this.call = call;
88768
88768
  this.metadata = metadata;
88769
88769
  this.pendingStatus = {
@@ -91048,11 +91048,11 @@ var require_server = __commonJS({
91048
91048
  }
91049
91049
  return true;
91050
91050
  }
91051
- _retrieveHandler(path47) {
91052
- serverCallTrace("Received call to method " + path47 + " at address " + this.serverAddressString);
91053
- const handler = this.handlers.get(path47);
91051
+ _retrieveHandler(path48) {
91052
+ serverCallTrace("Received call to method " + path48 + " at address " + this.serverAddressString);
91053
+ const handler = this.handlers.get(path48);
91054
91054
  if (handler === void 0) {
91055
- serverCallTrace("No handler registered for method " + path47 + ". Sending UNIMPLEMENTED status.");
91055
+ serverCallTrace("No handler registered for method " + path48 + ". Sending UNIMPLEMENTED status.");
91056
91056
  return null;
91057
91057
  }
91058
91058
  return handler;
@@ -91076,10 +91076,10 @@ var require_server = __commonJS({
91076
91076
  channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed();
91077
91077
  return;
91078
91078
  }
91079
- const path47 = headers[HTTP2_HEADER_PATH];
91080
- const handler = this._retrieveHandler(path47);
91079
+ const path48 = headers[HTTP2_HEADER_PATH];
91080
+ const handler = this._retrieveHandler(path48);
91081
91081
  if (!handler) {
91082
- this._respondWithError(getUnimplementedStatusResponse(path47), stream, channelzSessionInfo);
91082
+ this._respondWithError(getUnimplementedStatusResponse(path48), stream, channelzSessionInfo);
91083
91083
  return;
91084
91084
  }
91085
91085
  const callEventTracker = {
@@ -91129,10 +91129,10 @@ var require_server = __commonJS({
91129
91129
  if (this._verifyContentType(stream, headers) !== true) {
91130
91130
  return;
91131
91131
  }
91132
- const path47 = headers[HTTP2_HEADER_PATH];
91133
- const handler = this._retrieveHandler(path47);
91132
+ const path48 = headers[HTTP2_HEADER_PATH];
91133
+ const handler = this._retrieveHandler(path48);
91134
91134
  if (!handler) {
91135
- this._respondWithError(getUnimplementedStatusResponse(path47), stream, null);
91135
+ this._respondWithError(getUnimplementedStatusResponse(path48), stream, null);
91136
91136
  return;
91137
91137
  }
91138
91138
  const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, null, handler, this.options);
@@ -92156,7 +92156,7 @@ var require_certificate_provider = __commonJS({
92156
92156
  init_cjs_shims();
92157
92157
  Object.defineProperty(exports2, "__esModule", { value: true });
92158
92158
  exports2.FileWatcherCertificateProvider = void 0;
92159
- var fs43 = require("fs");
92159
+ var fs44 = require("fs");
92160
92160
  var logging = require_logging();
92161
92161
  var constants_1 = require_constants2();
92162
92162
  var util_1 = require("util");
@@ -92164,7 +92164,7 @@ var require_certificate_provider = __commonJS({
92164
92164
  function trace2(text10) {
92165
92165
  logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text10);
92166
92166
  }
92167
- var readFilePromise = (0, util_1.promisify)(fs43.readFile);
92167
+ var readFilePromise = (0, util_1.promisify)(fs44.readFile);
92168
92168
  var FileWatcherCertificateProvider = class {
92169
92169
  constructor(config2) {
92170
92170
  this.config = config2;
@@ -92421,13 +92421,13 @@ var require_resolver_uds = __commonJS({
92421
92421
  this.listener = listener;
92422
92422
  this.hasReturnedResult = false;
92423
92423
  this.endpoints = [];
92424
- let path47;
92424
+ let path48;
92425
92425
  if (target.authority === "") {
92426
- path47 = "/" + target.path;
92426
+ path48 = "/" + target.path;
92427
92427
  } else {
92428
- path47 = target.path;
92428
+ path48 = target.path;
92429
92429
  }
92430
- this.endpoints = [{ addresses: [{ path: path47 }] }];
92430
+ this.endpoints = [{ addresses: [{ path: path48 }] }];
92431
92431
  }
92432
92432
  updateResolution() {
92433
92433
  if (!this.hasReturnedResult) {
@@ -92488,12 +92488,12 @@ var require_resolver_ip = __commonJS({
92488
92488
  return;
92489
92489
  }
92490
92490
  const pathList = target.path.split(",");
92491
- for (const path47 of pathList) {
92492
- const hostPort = (0, uri_parser_1.splitHostPort)(path47);
92491
+ for (const path48 of pathList) {
92492
+ const hostPort = (0, uri_parser_1.splitHostPort)(path48);
92493
92493
  if (hostPort === null) {
92494
92494
  this.error = {
92495
92495
  code: constants_1.Status.UNAVAILABLE,
92496
- details: `Failed to parse ${target.scheme} address ${path47}`,
92496
+ details: `Failed to parse ${target.scheme} address ${path48}`,
92497
92497
  metadata: new metadata_1.Metadata()
92498
92498
  };
92499
92499
  return;
@@ -92501,7 +92501,7 @@ var require_resolver_ip = __commonJS({
92501
92501
  if (target.scheme === IPV4_SCHEME && !(0, net_1.isIPv4)(hostPort.host) || target.scheme === IPV6_SCHEME && !(0, net_1.isIPv6)(hostPort.host)) {
92502
92502
  this.error = {
92503
92503
  code: constants_1.Status.UNAVAILABLE,
92504
- details: `Failed to parse ${target.scheme} address ${path47}`,
92504
+ details: `Failed to parse ${target.scheme} address ${path48}`,
92505
92505
  metadata: new metadata_1.Metadata()
92506
92506
  };
92507
92507
  return;
@@ -93863,10 +93863,10 @@ var require_create_service_client_constructor = __commonJS({
93863
93863
  Object.defineProperty(exports2, "__esModule", { value: true });
93864
93864
  exports2.createServiceClientConstructor = void 0;
93865
93865
  var grpc = require_src7();
93866
- function createServiceClientConstructor(path47, name2) {
93866
+ function createServiceClientConstructor(path48, name2) {
93867
93867
  const serviceDefinition = {
93868
93868
  export: {
93869
- path: path47,
93869
+ path: path48,
93870
93870
  requestStream: false,
93871
93871
  responseStream: false,
93872
93872
  requestSerialize: (arg) => {
@@ -94088,8 +94088,8 @@ var require_otlp_grpc_env_configuration = __commonJS({
94088
94088
  var core_1 = (init_esm11(), __toCommonJS(esm_exports4));
94089
94089
  var grpc_exporter_transport_1 = require_grpc_exporter_transport();
94090
94090
  var node_http_1 = (init_index_node_http(), __toCommonJS(index_node_http_exports));
94091
- var fs43 = require("fs");
94092
- var path47 = require("path");
94091
+ var fs44 = require("fs");
94092
+ var path48 = require("path");
94093
94093
  var api_1 = (init_esm8(), __toCommonJS(esm_exports));
94094
94094
  function fallbackIfNullishOrBlank(signalSpecific, nonSignalSpecific) {
94095
94095
  if (signalSpecific != null && signalSpecific !== "") {
@@ -94138,7 +94138,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
94138
94138
  const filePath = fallbackIfNullishOrBlank(signalSpecificPath, nonSignalSpecificPath);
94139
94139
  if (filePath != null) {
94140
94140
  try {
94141
- return fs43.readFileSync(path47.resolve(process.cwd(), filePath));
94141
+ return fs44.readFileSync(path48.resolve(process.cwd(), filePath));
94142
94142
  } catch {
94143
94143
  api_1.diag.warn(warningMessage);
94144
94144
  return void 0;
@@ -95823,7 +95823,7 @@ var require_utils4 = __commonJS({
95823
95823
  var exporter_metrics_otlp_http_1 = (init_esm27(), __toCommonJS(esm_exports20));
95824
95824
  var exporter_metrics_otlp_proto_1 = (init_esm28(), __toCommonJS(esm_exports21));
95825
95825
  var sdk_logs_1 = (init_esm13(), __toCommonJS(esm_exports6));
95826
- var fs43 = require("fs");
95826
+ var fs44 = require("fs");
95827
95827
  var RESOURCE_DETECTOR_ENVIRONMENT = "env";
95828
95828
  var RESOURCE_DETECTOR_HOST = "host";
95829
95829
  var RESOURCE_DETECTOR_OS = "os";
@@ -96246,21 +96246,21 @@ var require_utils4 = __commonJS({
96246
96246
  const httpsAgentOptions = {};
96247
96247
  if (tls.ca_file) {
96248
96248
  try {
96249
- httpsAgentOptions.ca = fs43.readFileSync(tls.ca_file);
96249
+ httpsAgentOptions.ca = fs44.readFileSync(tls.ca_file);
96250
96250
  } catch (e) {
96251
96251
  api_1.diag.warn(`Failed to read TLS CA file at ${tls.ca_file}: ${e}`);
96252
96252
  }
96253
96253
  }
96254
96254
  if (tls.cert_file) {
96255
96255
  try {
96256
- httpsAgentOptions.cert = fs43.readFileSync(tls.cert_file);
96256
+ httpsAgentOptions.cert = fs44.readFileSync(tls.cert_file);
96257
96257
  } catch (e) {
96258
96258
  api_1.diag.warn(`Failed to read TLS cert file at ${tls.cert_file}: ${e}`);
96259
96259
  }
96260
96260
  }
96261
96261
  if (tls.key_file) {
96262
96262
  try {
96263
- httpsAgentOptions.key = fs43.readFileSync(tls.key_file);
96263
+ httpsAgentOptions.key = fs44.readFileSync(tls.key_file);
96264
96264
  } catch (e) {
96265
96265
  api_1.diag.warn(`Failed to read TLS key file at ${tls.key_file}: ${e}`);
96266
96266
  }
@@ -97553,17 +97553,17 @@ var require_visit = __commonJS({
97553
97553
  visit2.BREAK = BREAK;
97554
97554
  visit2.SKIP = SKIP2;
97555
97555
  visit2.REMOVE = REMOVE;
97556
- function visit_(key2, node2, visitor, path47) {
97557
- const ctrl = callVisitor(key2, node2, visitor, path47);
97556
+ function visit_(key2, node2, visitor, path48) {
97557
+ const ctrl = callVisitor(key2, node2, visitor, path48);
97558
97558
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
97559
- replaceNode(key2, path47, ctrl);
97560
- return visit_(key2, ctrl, visitor, path47);
97559
+ replaceNode(key2, path48, ctrl);
97560
+ return visit_(key2, ctrl, visitor, path48);
97561
97561
  }
97562
97562
  if (typeof ctrl !== "symbol") {
97563
97563
  if (identity2.isCollection(node2)) {
97564
- path47 = Object.freeze(path47.concat(node2));
97564
+ path48 = Object.freeze(path48.concat(node2));
97565
97565
  for (let i = 0; i < node2.items.length; ++i) {
97566
- const ci = visit_(i, node2.items[i], visitor, path47);
97566
+ const ci = visit_(i, node2.items[i], visitor, path48);
97567
97567
  if (typeof ci === "number")
97568
97568
  i = ci - 1;
97569
97569
  else if (ci === BREAK)
@@ -97574,13 +97574,13 @@ var require_visit = __commonJS({
97574
97574
  }
97575
97575
  }
97576
97576
  } else if (identity2.isPair(node2)) {
97577
- path47 = Object.freeze(path47.concat(node2));
97578
- const ck = visit_("key", node2.key, visitor, path47);
97577
+ path48 = Object.freeze(path48.concat(node2));
97578
+ const ck = visit_("key", node2.key, visitor, path48);
97579
97579
  if (ck === BREAK)
97580
97580
  return BREAK;
97581
97581
  else if (ck === REMOVE)
97582
97582
  node2.key = null;
97583
- const cv = visit_("value", node2.value, visitor, path47);
97583
+ const cv = visit_("value", node2.value, visitor, path48);
97584
97584
  if (cv === BREAK)
97585
97585
  return BREAK;
97586
97586
  else if (cv === REMOVE)
@@ -97601,17 +97601,17 @@ var require_visit = __commonJS({
97601
97601
  visitAsync.BREAK = BREAK;
97602
97602
  visitAsync.SKIP = SKIP2;
97603
97603
  visitAsync.REMOVE = REMOVE;
97604
- async function visitAsync_(key2, node2, visitor, path47) {
97605
- const ctrl = await callVisitor(key2, node2, visitor, path47);
97604
+ async function visitAsync_(key2, node2, visitor, path48) {
97605
+ const ctrl = await callVisitor(key2, node2, visitor, path48);
97606
97606
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
97607
- replaceNode(key2, path47, ctrl);
97608
- return visitAsync_(key2, ctrl, visitor, path47);
97607
+ replaceNode(key2, path48, ctrl);
97608
+ return visitAsync_(key2, ctrl, visitor, path48);
97609
97609
  }
97610
97610
  if (typeof ctrl !== "symbol") {
97611
97611
  if (identity2.isCollection(node2)) {
97612
- path47 = Object.freeze(path47.concat(node2));
97612
+ path48 = Object.freeze(path48.concat(node2));
97613
97613
  for (let i = 0; i < node2.items.length; ++i) {
97614
- const ci = await visitAsync_(i, node2.items[i], visitor, path47);
97614
+ const ci = await visitAsync_(i, node2.items[i], visitor, path48);
97615
97615
  if (typeof ci === "number")
97616
97616
  i = ci - 1;
97617
97617
  else if (ci === BREAK)
@@ -97622,13 +97622,13 @@ var require_visit = __commonJS({
97622
97622
  }
97623
97623
  }
97624
97624
  } else if (identity2.isPair(node2)) {
97625
- path47 = Object.freeze(path47.concat(node2));
97626
- const ck = await visitAsync_("key", node2.key, visitor, path47);
97625
+ path48 = Object.freeze(path48.concat(node2));
97626
+ const ck = await visitAsync_("key", node2.key, visitor, path48);
97627
97627
  if (ck === BREAK)
97628
97628
  return BREAK;
97629
97629
  else if (ck === REMOVE)
97630
97630
  node2.key = null;
97631
- const cv = await visitAsync_("value", node2.value, visitor, path47);
97631
+ const cv = await visitAsync_("value", node2.value, visitor, path48);
97632
97632
  if (cv === BREAK)
97633
97633
  return BREAK;
97634
97634
  else if (cv === REMOVE)
@@ -97655,23 +97655,23 @@ var require_visit = __commonJS({
97655
97655
  }
97656
97656
  return visitor;
97657
97657
  }
97658
- function callVisitor(key2, node2, visitor, path47) {
97658
+ function callVisitor(key2, node2, visitor, path48) {
97659
97659
  if (typeof visitor === "function")
97660
- return visitor(key2, node2, path47);
97660
+ return visitor(key2, node2, path48);
97661
97661
  if (identity2.isMap(node2))
97662
- return visitor.Map?.(key2, node2, path47);
97662
+ return visitor.Map?.(key2, node2, path48);
97663
97663
  if (identity2.isSeq(node2))
97664
- return visitor.Seq?.(key2, node2, path47);
97664
+ return visitor.Seq?.(key2, node2, path48);
97665
97665
  if (identity2.isPair(node2))
97666
- return visitor.Pair?.(key2, node2, path47);
97666
+ return visitor.Pair?.(key2, node2, path48);
97667
97667
  if (identity2.isScalar(node2))
97668
- return visitor.Scalar?.(key2, node2, path47);
97668
+ return visitor.Scalar?.(key2, node2, path48);
97669
97669
  if (identity2.isAlias(node2))
97670
- return visitor.Alias?.(key2, node2, path47);
97670
+ return visitor.Alias?.(key2, node2, path48);
97671
97671
  return void 0;
97672
97672
  }
97673
- function replaceNode(key2, path47, node2) {
97674
- const parent = path47[path47.length - 1];
97673
+ function replaceNode(key2, path48, node2) {
97674
+ const parent = path48[path48.length - 1];
97675
97675
  if (identity2.isCollection(parent)) {
97676
97676
  parent.items[key2] = node2;
97677
97677
  } else if (identity2.isPair(parent)) {
@@ -98290,10 +98290,10 @@ var require_Collection = __commonJS({
98290
98290
  var createNode = require_createNode();
98291
98291
  var identity2 = require_identity();
98292
98292
  var Node = require_Node();
98293
- function collectionFromPath(schema, path47, value) {
98293
+ function collectionFromPath(schema, path48, value) {
98294
98294
  let v = value;
98295
- for (let i = path47.length - 1; i >= 0; --i) {
98296
- const k = path47[i];
98295
+ for (let i = path48.length - 1; i >= 0; --i) {
98296
+ const k = path48[i];
98297
98297
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
98298
98298
  const a = [];
98299
98299
  a[k] = v;
@@ -98312,7 +98312,7 @@ var require_Collection = __commonJS({
98312
98312
  sourceObjects: /* @__PURE__ */ new Map()
98313
98313
  });
98314
98314
  }
98315
- var isEmptyPath = (path47) => path47 == null || typeof path47 === "object" && !!path47[Symbol.iterator]().next().done;
98315
+ var isEmptyPath = (path48) => path48 == null || typeof path48 === "object" && !!path48[Symbol.iterator]().next().done;
98316
98316
  var Collection = class extends Node.NodeBase {
98317
98317
  constructor(type, schema) {
98318
98318
  super(type);
@@ -98342,11 +98342,11 @@ var require_Collection = __commonJS({
98342
98342
  * be a Pair instance or a `{ key, value }` object, which may not have a key
98343
98343
  * that already exists in the map.
98344
98344
  */
98345
- addIn(path47, value) {
98346
- if (isEmptyPath(path47))
98345
+ addIn(path48, value) {
98346
+ if (isEmptyPath(path48))
98347
98347
  this.add(value);
98348
98348
  else {
98349
- const [key2, ...rest] = path47;
98349
+ const [key2, ...rest] = path48;
98350
98350
  const node2 = this.get(key2, true);
98351
98351
  if (identity2.isCollection(node2))
98352
98352
  node2.addIn(rest, value);
@@ -98360,8 +98360,8 @@ var require_Collection = __commonJS({
98360
98360
  * Removes a value from the collection.
98361
98361
  * @returns `true` if the item was found and removed.
98362
98362
  */
98363
- deleteIn(path47) {
98364
- const [key2, ...rest] = path47;
98363
+ deleteIn(path48) {
98364
+ const [key2, ...rest] = path48;
98365
98365
  if (rest.length === 0)
98366
98366
  return this.delete(key2);
98367
98367
  const node2 = this.get(key2, true);
@@ -98375,8 +98375,8 @@ var require_Collection = __commonJS({
98375
98375
  * scalar values from their surrounding node; to disable set `keepScalar` to
98376
98376
  * `true` (collections are always returned intact).
98377
98377
  */
98378
- getIn(path47, keepScalar) {
98379
- const [key2, ...rest] = path47;
98378
+ getIn(path48, keepScalar) {
98379
+ const [key2, ...rest] = path48;
98380
98380
  const node2 = this.get(key2, true);
98381
98381
  if (rest.length === 0)
98382
98382
  return !keepScalar && identity2.isScalar(node2) ? node2.value : node2;
@@ -98394,8 +98394,8 @@ var require_Collection = __commonJS({
98394
98394
  /**
98395
98395
  * Checks if the collection includes a value with the key `key`.
98396
98396
  */
98397
- hasIn(path47) {
98398
- const [key2, ...rest] = path47;
98397
+ hasIn(path48) {
98398
+ const [key2, ...rest] = path48;
98399
98399
  if (rest.length === 0)
98400
98400
  return this.has(key2);
98401
98401
  const node2 = this.get(key2, true);
@@ -98405,8 +98405,8 @@ var require_Collection = __commonJS({
98405
98405
  * Sets a value in this collection. For `!!set`, `value` needs to be a
98406
98406
  * boolean to add/remove the item from the set.
98407
98407
  */
98408
- setIn(path47, value) {
98409
- const [key2, ...rest] = path47;
98408
+ setIn(path48, value) {
98409
+ const [key2, ...rest] = path48;
98410
98410
  if (rest.length === 0) {
98411
98411
  this.set(key2, value);
98412
98412
  } else {
@@ -100956,9 +100956,9 @@ var require_Document = __commonJS({
100956
100956
  this.contents.add(value);
100957
100957
  }
100958
100958
  /** Adds a value to the document. */
100959
- addIn(path47, value) {
100959
+ addIn(path48, value) {
100960
100960
  if (assertCollection(this.contents))
100961
- this.contents.addIn(path47, value);
100961
+ this.contents.addIn(path48, value);
100962
100962
  }
100963
100963
  /**
100964
100964
  * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -101033,14 +101033,14 @@ var require_Document = __commonJS({
101033
101033
  * Removes a value from the document.
101034
101034
  * @returns `true` if the item was found and removed.
101035
101035
  */
101036
- deleteIn(path47) {
101037
- if (Collection.isEmptyPath(path47)) {
101036
+ deleteIn(path48) {
101037
+ if (Collection.isEmptyPath(path48)) {
101038
101038
  if (this.contents == null)
101039
101039
  return false;
101040
101040
  this.contents = null;
101041
101041
  return true;
101042
101042
  }
101043
- return assertCollection(this.contents) ? this.contents.deleteIn(path47) : false;
101043
+ return assertCollection(this.contents) ? this.contents.deleteIn(path48) : false;
101044
101044
  }
101045
101045
  /**
101046
101046
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -101055,10 +101055,10 @@ var require_Document = __commonJS({
101055
101055
  * scalar values from their surrounding node; to disable set `keepScalar` to
101056
101056
  * `true` (collections are always returned intact).
101057
101057
  */
101058
- getIn(path47, keepScalar) {
101059
- if (Collection.isEmptyPath(path47))
101058
+ getIn(path48, keepScalar) {
101059
+ if (Collection.isEmptyPath(path48))
101060
101060
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
101061
- return identity2.isCollection(this.contents) ? this.contents.getIn(path47, keepScalar) : void 0;
101061
+ return identity2.isCollection(this.contents) ? this.contents.getIn(path48, keepScalar) : void 0;
101062
101062
  }
101063
101063
  /**
101064
101064
  * Checks if the document includes a value with the key `key`.
@@ -101069,10 +101069,10 @@ var require_Document = __commonJS({
101069
101069
  /**
101070
101070
  * Checks if the document includes a value at `path`.
101071
101071
  */
101072
- hasIn(path47) {
101073
- if (Collection.isEmptyPath(path47))
101072
+ hasIn(path48) {
101073
+ if (Collection.isEmptyPath(path48))
101074
101074
  return this.contents !== void 0;
101075
- return identity2.isCollection(this.contents) ? this.contents.hasIn(path47) : false;
101075
+ return identity2.isCollection(this.contents) ? this.contents.hasIn(path48) : false;
101076
101076
  }
101077
101077
  /**
101078
101078
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -101089,13 +101089,13 @@ var require_Document = __commonJS({
101089
101089
  * Sets a value in this document. For `!!set`, `value` needs to be a
101090
101090
  * boolean to add/remove the item from the set.
101091
101091
  */
101092
- setIn(path47, value) {
101093
- if (Collection.isEmptyPath(path47)) {
101092
+ setIn(path48, value) {
101093
+ if (Collection.isEmptyPath(path48)) {
101094
101094
  this.contents = value;
101095
101095
  } else if (this.contents == null) {
101096
- this.contents = Collection.collectionFromPath(this.schema, Array.from(path47), value);
101096
+ this.contents = Collection.collectionFromPath(this.schema, Array.from(path48), value);
101097
101097
  } else if (assertCollection(this.contents)) {
101098
- this.contents.setIn(path47, value);
101098
+ this.contents.setIn(path48, value);
101099
101099
  }
101100
101100
  }
101101
101101
  /**
@@ -103075,9 +103075,9 @@ var require_cst_visit = __commonJS({
103075
103075
  visit2.BREAK = BREAK;
103076
103076
  visit2.SKIP = SKIP2;
103077
103077
  visit2.REMOVE = REMOVE;
103078
- visit2.itemAtPath = (cst, path47) => {
103078
+ visit2.itemAtPath = (cst, path48) => {
103079
103079
  let item = cst;
103080
- for (const [field, index2] of path47) {
103080
+ for (const [field, index2] of path48) {
103081
103081
  const tok = item?.[field];
103082
103082
  if (tok && "items" in tok) {
103083
103083
  item = tok.items[index2];
@@ -103086,23 +103086,23 @@ var require_cst_visit = __commonJS({
103086
103086
  }
103087
103087
  return item;
103088
103088
  };
103089
- visit2.parentCollection = (cst, path47) => {
103090
- const parent = visit2.itemAtPath(cst, path47.slice(0, -1));
103091
- const field = path47[path47.length - 1][0];
103089
+ visit2.parentCollection = (cst, path48) => {
103090
+ const parent = visit2.itemAtPath(cst, path48.slice(0, -1));
103091
+ const field = path48[path48.length - 1][0];
103092
103092
  const coll = parent?.[field];
103093
103093
  if (coll && "items" in coll)
103094
103094
  return coll;
103095
103095
  throw new Error("Parent collection not found");
103096
103096
  };
103097
- function _visit(path47, item, visitor) {
103098
- let ctrl = visitor(item, path47);
103097
+ function _visit(path48, item, visitor) {
103098
+ let ctrl = visitor(item, path48);
103099
103099
  if (typeof ctrl === "symbol")
103100
103100
  return ctrl;
103101
103101
  for (const field of ["key", "value"]) {
103102
103102
  const token = item[field];
103103
103103
  if (token && "items" in token) {
103104
103104
  for (let i = 0; i < token.items.length; ++i) {
103105
- const ci = _visit(Object.freeze(path47.concat([[field, i]])), token.items[i], visitor);
103105
+ const ci = _visit(Object.freeze(path48.concat([[field, i]])), token.items[i], visitor);
103106
103106
  if (typeof ci === "number")
103107
103107
  i = ci - 1;
103108
103108
  else if (ci === BREAK)
@@ -103113,10 +103113,10 @@ var require_cst_visit = __commonJS({
103113
103113
  }
103114
103114
  }
103115
103115
  if (typeof ctrl === "function" && field === "key")
103116
- ctrl = ctrl(item, path47);
103116
+ ctrl = ctrl(item, path48);
103117
103117
  }
103118
103118
  }
103119
- return typeof ctrl === "function" ? ctrl(item, path47) : ctrl;
103119
+ return typeof ctrl === "function" ? ctrl(item, path48) : ctrl;
103120
103120
  }
103121
103121
  exports2.visit = visit2;
103122
103122
  }
@@ -104422,14 +104422,14 @@ var require_parser = __commonJS({
104422
104422
  case "scalar":
104423
104423
  case "single-quoted-scalar":
104424
104424
  case "double-quoted-scalar": {
104425
- const fs43 = this.flowScalar(this.type);
104425
+ const fs44 = this.flowScalar(this.type);
104426
104426
  if (atNextItem || it.value) {
104427
- map3.items.push({ start, key: fs43, sep: [] });
104427
+ map3.items.push({ start, key: fs44, sep: [] });
104428
104428
  this.onKeyLine = true;
104429
104429
  } else if (it.sep) {
104430
- this.stack.push(fs43);
104430
+ this.stack.push(fs44);
104431
104431
  } else {
104432
- Object.assign(it, { key: fs43, sep: [] });
104432
+ Object.assign(it, { key: fs44, sep: [] });
104433
104433
  this.onKeyLine = true;
104434
104434
  }
104435
104435
  return;
@@ -104557,13 +104557,13 @@ var require_parser = __commonJS({
104557
104557
  case "scalar":
104558
104558
  case "single-quoted-scalar":
104559
104559
  case "double-quoted-scalar": {
104560
- const fs43 = this.flowScalar(this.type);
104560
+ const fs44 = this.flowScalar(this.type);
104561
104561
  if (!it || it.value)
104562
- fc.items.push({ start: [], key: fs43, sep: [] });
104562
+ fc.items.push({ start: [], key: fs44, sep: [] });
104563
104563
  else if (it.sep)
104564
- this.stack.push(fs43);
104564
+ this.stack.push(fs44);
104565
104565
  else
104566
- Object.assign(it, { key: fs43, sep: [] });
104566
+ Object.assign(it, { key: fs44, sep: [] });
104567
104567
  return;
104568
104568
  }
104569
104569
  case "flow-map-end":
@@ -113270,7 +113270,7 @@ var require_FileConfigFactory = __commonJS({
113270
113270
  Object.defineProperty(exports2, "__esModule", { value: true });
113271
113271
  exports2.parseConfigFile = exports2.FileConfigFactory = void 0;
113272
113272
  var core_1 = (init_esm11(), __toCommonJS(esm_exports4));
113273
- var fs43 = require("fs");
113273
+ var fs44 = require("fs");
113274
113274
  var yaml = require_dist5();
113275
113275
  var utils_1 = require_utils5();
113276
113276
  var validateConfig = require_validator();
@@ -113287,7 +113287,7 @@ var require_FileConfigFactory = __commonJS({
113287
113287
  function parseConfigFile() {
113288
113288
  const supportedFileVersionPattern = /^1\.0$/;
113289
113289
  const configFile = (0, core_1.getStringFromEnv)("OTEL_CONFIG_FILE") || "";
113290
- const file = fs43.readFileSync(configFile, "utf8");
113290
+ const file = fs44.readFileSync(configFile, "utf8");
113291
113291
  const rawParsed = yaml.parse(file);
113292
113292
  const processed = substituteEnvVars(rawParsed);
113293
113293
  const fileFormat = processed?.file_format;
@@ -114162,9 +114162,9 @@ __export(getMachineId_linux_exports2, {
114162
114162
  });
114163
114163
  async function getMachineId8() {
114164
114164
  const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
114165
- for (const path47 of paths) {
114165
+ for (const path48 of paths) {
114166
114166
  try {
114167
- const result = await import_fs4.promises.readFile(path47, { encoding: "utf8" });
114167
+ const result = await import_fs4.promises.readFile(path48, { encoding: "utf8" });
114168
114168
  return result.trim();
114169
114169
  } catch (e) {
114170
114170
  diag2.debug(`error reading machine id: ${e}`);
@@ -114373,14 +114373,14 @@ var init_OSDetector2 = __esm({
114373
114373
  });
114374
114374
 
114375
114375
  // ../../node_modules/.pnpm/@opentelemetry+resources@2.8.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js
114376
- var os9, ProcessDetector2, processDetector2;
114376
+ var os10, ProcessDetector2, processDetector2;
114377
114377
  var init_ProcessDetector2 = __esm({
114378
114378
  "../../node_modules/.pnpm/@opentelemetry+resources@2.8.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js"() {
114379
114379
  "use strict";
114380
114380
  init_cjs_shims();
114381
114381
  init_esm8();
114382
114382
  init_semconv5();
114383
- os9 = __toESM(require("os"));
114383
+ os10 = __toESM(require("os"));
114384
114384
  ProcessDetector2 = class {
114385
114385
  detect(_config) {
114386
114386
  const attributes = {
@@ -114400,7 +114400,7 @@ var init_ProcessDetector2 = __esm({
114400
114400
  attributes[ATTR_PROCESS_COMMAND2] = process.argv[1];
114401
114401
  }
114402
114402
  try {
114403
- const userInfo4 = os9.userInfo();
114403
+ const userInfo4 = os10.userInfo();
114404
114404
  attributes[ATTR_PROCESS_OWNER2] = userInfo4.username;
114405
114405
  } catch (e) {
114406
114406
  diag2.debug(`error obtaining process owner: ${e}`);
@@ -114844,13 +114844,13 @@ var init_constants5 = __esm({
114844
114844
  });
114845
114845
 
114846
114846
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileAccessControl.js
114847
- var import_node_fs4, import_node_os6, import_node_child_process16, import_node_process6, FileAccessControl;
114847
+ var import_node_fs5, import_node_os7, import_node_child_process16, import_node_process6, FileAccessControl;
114848
114848
  var init_fileAccessControl = __esm({
114849
114849
  "../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileAccessControl.js"() {
114850
114850
  "use strict";
114851
114851
  init_cjs_shims();
114852
- import_node_fs4 = require("fs");
114853
- import_node_os6 = require("os");
114852
+ import_node_fs5 = require("fs");
114853
+ import_node_os7 = require("os");
114854
114854
  import_node_child_process16 = require("child_process");
114855
114855
  init_esm8();
114856
114856
  import_node_process6 = __toESM(require("process"), 1);
@@ -114861,14 +114861,14 @@ var init_fileAccessControl = __esm({
114861
114861
  static ACL_IDENTITY = null;
114862
114862
  static OS_FILE_PROTECTION_CHECKED = false;
114863
114863
  static OS_PROVIDES_FILE_PROTECTION = false;
114864
- static USE_ICACLS = (0, import_node_os6.type)() === "Windows_NT";
114864
+ static USE_ICACLS = (0, import_node_os7.type)() === "Windows_NT";
114865
114865
  // Check if file access control could be enabled
114866
114866
  static checkFileProtection() {
114867
114867
  if (!_FileAccessControl.OS_PROVIDES_FILE_PROTECTION && !_FileAccessControl.OS_FILE_PROTECTION_CHECKED) {
114868
114868
  _FileAccessControl.OS_FILE_PROTECTION_CHECKED = true;
114869
114869
  if (_FileAccessControl.USE_ICACLS) {
114870
114870
  try {
114871
- _FileAccessControl.OS_PROVIDES_FILE_PROTECTION = (0, import_node_fs4.existsSync)(_FileAccessControl.ICACLS_PATH);
114871
+ _FileAccessControl.OS_PROVIDES_FILE_PROTECTION = (0, import_node_fs5.existsSync)(_FileAccessControl.ICACLS_PATH);
114872
114872
  } catch (e) {
114873
114873
  }
114874
114874
  if (!_FileAccessControl.OS_PROVIDES_FILE_PROTECTION) {
@@ -114999,20 +114999,20 @@ var init_fileAccessControl = __esm({
114999
114999
  });
115000
115000
 
115001
115001
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileSystemHelpers.js
115002
- var import_node_path6, import_promises7, getShallowDirectorySize2, confirmDirExists2;
115002
+ var import_node_path7, import_promises7, getShallowDirectorySize2, confirmDirExists2;
115003
115003
  var init_fileSystemHelpers = __esm({
115004
115004
  "../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileSystemHelpers.js"() {
115005
115005
  "use strict";
115006
115006
  init_cjs_shims();
115007
115007
  init_esm8();
115008
- import_node_path6 = require("path");
115008
+ import_node_path7 = require("path");
115009
115009
  import_promises7 = require("fs/promises");
115010
115010
  getShallowDirectorySize2 = async (directory) => {
115011
115011
  let totalSize = 0;
115012
115012
  try {
115013
115013
  const files = await (0, import_promises7.readdir)(directory);
115014
115014
  for (const file of files) {
115015
- const fileStats = await (0, import_promises7.stat)((0, import_node_path6.join)(directory, file));
115015
+ const fileStats = await (0, import_promises7.stat)((0, import_node_path7.join)(directory, file));
115016
115016
  if (fileStats.isFile()) {
115017
115017
  totalSize += fileStats.size;
115018
115018
  }
@@ -115214,7 +115214,7 @@ function getStorageDirectory(instrumentationKey, storageDirectory) {
115214
115214
  let processName;
115215
115215
  let applicationDirectory;
115216
115216
  try {
115217
- const user = (0, import_node_os7.userInfo)();
115217
+ const user = (0, import_node_os8.userInfo)();
115218
115218
  userSegment = user.username;
115219
115219
  } catch (error2) {
115220
115220
  userSegment = "";
@@ -115224,7 +115224,7 @@ function getStorageDirectory(instrumentationKey, storageDirectory) {
115224
115224
  } else {
115225
115225
  processName = "";
115226
115226
  }
115227
- const applicationDir = (0, import_node_path7.dirname)(process.cwd() || process.argv[1]);
115227
+ const applicationDir = (0, import_node_path8.dirname)(process.cwd() || process.argv[1]);
115228
115228
  if (applicationDir) {
115229
115229
  applicationDirectory = applicationDir;
115230
115230
  } else {
@@ -115247,22 +115247,22 @@ function getStorageDirectory(instrumentationKey, storageDirectory) {
115247
115247
  if (storageDirectory) {
115248
115248
  sharedRoot = storageDirectory;
115249
115249
  } else {
115250
- sharedRoot = (0, import_node_os7.tmpdir)();
115250
+ sharedRoot = (0, import_node_os8.tmpdir)();
115251
115251
  }
115252
- return (0, import_node_path7.join)(sharedRoot, "Microsoft-AzureMonitor-" + subDirectory, FileSystemPersist.TEMPDIR_PREFIX + instrumentationKey);
115252
+ return (0, import_node_path8.join)(sharedRoot, "Microsoft-AzureMonitor-" + subDirectory, FileSystemPersist.TEMPDIR_PREFIX + instrumentationKey);
115253
115253
  }
115254
- var import_node_os7, import_node_path7, import_node_crypto9, import_node_fs5, import_promises8, FileSystemPersist;
115254
+ var import_node_os8, import_node_path8, import_node_crypto9, import_node_fs6, import_promises8, FileSystemPersist;
115255
115255
  var init_fileSystemPersist = __esm({
115256
115256
  "../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileSystemPersist.js"() {
115257
115257
  "use strict";
115258
115258
  init_cjs_shims();
115259
- import_node_os7 = require("os");
115260
- import_node_path7 = require("path");
115259
+ import_node_os8 = require("os");
115260
+ import_node_path8 = require("path");
115261
115261
  import_node_crypto9 = require("crypto");
115262
115262
  init_esm8();
115263
115263
  init_fileAccessControl();
115264
115264
  init_fileSystemHelpers();
115265
- import_node_fs5 = require("fs");
115265
+ import_node_fs6 = require("fs");
115266
115266
  import_promises8 = require("fs/promises");
115267
115267
  init_types10();
115268
115268
  FileSystemPersist = class _FileSystemPersist {
@@ -115348,12 +115348,12 @@ var init_fileSystemPersist = __esm({
115348
115348
  const stats = await (0, import_promises8.stat)(this._tempDirectory);
115349
115349
  if (stats.isDirectory()) {
115350
115350
  const origFiles = await (0, import_promises8.readdir)(this._tempDirectory);
115351
- const files = origFiles.filter((f) => (0, import_node_path7.basename)(f).includes(_FileSystemPersist.FILENAME_SUFFIX)).sort();
115351
+ const files = origFiles.filter((f) => (0, import_node_path8.basename)(f).includes(_FileSystemPersist.FILENAME_SUFFIX)).sort();
115352
115352
  if (files.length === 0) {
115353
115353
  return null;
115354
115354
  } else {
115355
115355
  const firstFile = files[0];
115356
- const filePath = (0, import_node_path7.join)(this._tempDirectory, firstFile);
115356
+ const filePath = (0, import_node_path8.join)(this._tempDirectory, firstFile);
115357
115357
  const payload = await (0, import_promises8.readFile)(filePath);
115358
115358
  await (0, import_promises8.unlink)(filePath);
115359
115359
  return payload;
@@ -115398,10 +115398,10 @@ var init_fileSystemPersist = __esm({
115398
115398
  return false;
115399
115399
  }
115400
115400
  const fileName = `${(/* @__PURE__ */ new Date()).getTime()}-${process.hrtime.bigint()}${_FileSystemPersist.FILENAME_SUFFIX}`;
115401
- const fileFullPath = (0, import_node_path7.join)(this._tempDirectory, fileName);
115401
+ const fileFullPath = (0, import_node_path8.join)(this._tempDirectory, fileName);
115402
115402
  diag2.info(`saving data to disk at: ${fileFullPath}`);
115403
115403
  try {
115404
- const handle3 = await (0, import_promises8.open)(fileFullPath, import_node_fs5.constants.O_CREAT | import_node_fs5.constants.O_EXCL | import_node_fs5.constants.O_WRONLY, 384);
115404
+ const handle3 = await (0, import_promises8.open)(fileFullPath, import_node_fs6.constants.O_CREAT | import_node_fs6.constants.O_EXCL | import_node_fs6.constants.O_WRONLY, 384);
115405
115405
  try {
115406
115406
  await handle3.writeFile(payload);
115407
115407
  } finally {
@@ -115424,7 +115424,7 @@ var init_fileSystemPersist = __esm({
115424
115424
  const stats = await (0, import_promises8.stat)(this._tempDirectory);
115425
115425
  if (stats.isDirectory()) {
115426
115426
  const origFiles = await (0, import_promises8.readdir)(this._tempDirectory);
115427
- const files = origFiles.filter((f) => (0, import_node_path7.basename)(f).includes(_FileSystemPersist.FILENAME_SUFFIX));
115427
+ const files = origFiles.filter((f) => (0, import_node_path8.basename)(f).includes(_FileSystemPersist.FILENAME_SUFFIX));
115428
115428
  if (files.length === 0) {
115429
115429
  return false;
115430
115430
  } else {
@@ -115432,7 +115432,7 @@ var init_fileSystemPersist = __esm({
115432
115432
  const fileCreationDate = new Date(parseInt(file.split(_FileSystemPersist.FILENAME_SUFFIX)[0]));
115433
115433
  const expired = new Date(+/* @__PURE__ */ new Date() - this.fileRetemptionPeriod) > fileCreationDate;
115434
115434
  if (expired) {
115435
- const filePath = (0, import_node_path7.join)(this._tempDirectory, file);
115435
+ const filePath = (0, import_node_path8.join)(this._tempDirectory, file);
115436
115436
  await (0, import_promises8.unlink)(filePath);
115437
115437
  }
115438
115438
  }
@@ -118901,7 +118901,7 @@ var init_esm30 = __esm({
118901
118901
  });
118902
118902
 
118903
118903
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/export/statsbeat/statsbeatMetrics.js
118904
- var import_node_os8, StatsbeatMetrics;
118904
+ var import_node_os9, StatsbeatMetrics;
118905
118905
  var init_statsbeatMetrics = __esm({
118906
118906
  "../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/export/statsbeat/statsbeatMetrics.js"() {
118907
118907
  "use strict";
@@ -118909,11 +118909,11 @@ var init_statsbeatMetrics = __esm({
118909
118909
  init_esm6();
118910
118910
  init_esm8();
118911
118911
  init_types10();
118912
- import_node_os8 = __toESM(require("os"), 1);
118912
+ import_node_os9 = __toESM(require("os"), 1);
118913
118913
  StatsbeatMetrics = class {
118914
118914
  resourceProvider = StatsbeatResourceProvider.unknown;
118915
118915
  vmInfo = {};
118916
- os = import_node_os8.default.type();
118916
+ os = import_node_os9.default.type();
118917
118917
  resourceIdentifier = "";
118918
118918
  async getResourceProvider() {
118919
118919
  this.resourceProvider = StatsbeatResourceProvider.unknown;
@@ -119333,31 +119333,31 @@ function getClient2(endpoint, credentialsOrPipelineOptions, clientOptions = {})
119333
119333
  ...clientOptions,
119334
119334
  pipeline: pipeline3
119335
119335
  });
119336
- const client = (path47, ...args) => {
119336
+ const client = (path48, ...args) => {
119337
119337
  return {
119338
119338
  get: (requestOptions = {}) => {
119339
- return tspClient.path(path47, ...args).get(wrapRequestParameters(requestOptions));
119339
+ return tspClient.path(path48, ...args).get(wrapRequestParameters(requestOptions));
119340
119340
  },
119341
119341
  post: (requestOptions = {}) => {
119342
- return tspClient.path(path47, ...args).post(wrapRequestParameters(requestOptions));
119342
+ return tspClient.path(path48, ...args).post(wrapRequestParameters(requestOptions));
119343
119343
  },
119344
119344
  put: (requestOptions = {}) => {
119345
- return tspClient.path(path47, ...args).put(wrapRequestParameters(requestOptions));
119345
+ return tspClient.path(path48, ...args).put(wrapRequestParameters(requestOptions));
119346
119346
  },
119347
119347
  patch: (requestOptions = {}) => {
119348
- return tspClient.path(path47, ...args).patch(wrapRequestParameters(requestOptions));
119348
+ return tspClient.path(path48, ...args).patch(wrapRequestParameters(requestOptions));
119349
119349
  },
119350
119350
  delete: (requestOptions = {}) => {
119351
- return tspClient.path(path47, ...args).delete(wrapRequestParameters(requestOptions));
119351
+ return tspClient.path(path48, ...args).delete(wrapRequestParameters(requestOptions));
119352
119352
  },
119353
119353
  head: (requestOptions = {}) => {
119354
- return tspClient.path(path47, ...args).head(wrapRequestParameters(requestOptions));
119354
+ return tspClient.path(path48, ...args).head(wrapRequestParameters(requestOptions));
119355
119355
  },
119356
119356
  options: (requestOptions = {}) => {
119357
- return tspClient.path(path47, ...args).options(wrapRequestParameters(requestOptions));
119357
+ return tspClient.path(path48, ...args).options(wrapRequestParameters(requestOptions));
119358
119358
  },
119359
119359
  trace: (requestOptions = {}) => {
119360
- return tspClient.path(path47, ...args).trace(wrapRequestParameters(requestOptions));
119360
+ return tspClient.path(path48, ...args).trace(wrapRequestParameters(requestOptions));
119361
119361
  }
119362
119362
  };
119363
119363
  };
@@ -121547,7 +121547,7 @@ function getCloudRoleInstance(resource) {
121547
121547
  if (serviceInstanceId) {
121548
121548
  return String(serviceInstanceId);
121549
121549
  }
121550
- return import_node_os9.default && import_node_os9.default.hostname();
121550
+ return import_node_os10.default && import_node_os10.default.hostname();
121551
121551
  }
121552
121552
  function isSqlDB(dbSystem) {
121553
121553
  return dbSystem === DBSYSTEMVALUES_DB2 || dbSystem === DBSYSTEMVALUES_DERBY || dbSystem === DBSYSTEMVALUES_MARIADB || dbSystem === DBSYSTEMVALUES_MSSQL || dbSystem === DBSYSTEMVALUES_ORACLE || dbSystem === DBSYSTEMVALUES_SQLITE || dbSystem === DBSYSTEMVALUES_OTHER_SQL || dbSystem === DBSYSTEMVALUES_HSQLDB || dbSystem === DBSYSTEMVALUES_H2;
@@ -121693,12 +121693,12 @@ function truncateCustomDimensions(properties2) {
121693
121693
  }
121694
121694
  return result;
121695
121695
  }
121696
- var import_node_os9;
121696
+ var import_node_os10;
121697
121697
  var init_common2 = __esm({
121698
121698
  "../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/utils/common.js"() {
121699
121699
  "use strict";
121700
121700
  init_cjs_shims();
121701
- import_node_os9 = __toESM(require("os"), 1);
121701
+ import_node_os10 = __toESM(require("os"), 1);
121702
121702
  init_esm4();
121703
121703
  init_esm10();
121704
121704
  init_types9();
@@ -122296,7 +122296,7 @@ var require_import_in_the_middle2 = __commonJS({
122296
122296
  "../../node_modules/.pnpm/import-in-the-middle@2.0.6/node_modules/import-in-the-middle/index.js"(exports2, module2) {
122297
122297
  "use strict";
122298
122298
  init_cjs_shims();
122299
- var path47 = require("path");
122299
+ var path48 = require("path");
122300
122300
  var moduleDetailsFromPath = require_module_details_from_path();
122301
122301
  var { fileURLToPath: fileURLToPath3 } = require("url");
122302
122302
  var { MessageChannel } = require("worker_threads");
@@ -122409,7 +122409,7 @@ var require_import_in_the_middle2 = __commonJS({
122409
122409
  } else if (baseDir.endsWith(specifiers.get(loadUrl))) {
122410
122410
  callHookFn(hookFn, namespace, name2, baseDir);
122411
122411
  } else if (internals) {
122412
- const internalPath = name2 + path47.sep + path47.relative(baseDir, filePath);
122412
+ const internalPath = name2 + path48.sep + path48.relative(baseDir, filePath);
122413
122413
  callHookFn(hookFn, namespace, internalPath, baseDir);
122414
122414
  }
122415
122415
  } else if (matchArg === specifier) {
@@ -122693,26 +122693,26 @@ var require_utils6 = __commonJS({
122693
122693
  const reqUrlObject = requestUrl || {};
122694
122694
  const protocol = reqUrlObject.protocol || fallbackProtocol;
122695
122695
  const port = (reqUrlObject.port || "").toString();
122696
- let path47 = reqUrlObject.path || "/";
122696
+ let path48 = reqUrlObject.path || "/";
122697
122697
  let host = reqUrlObject.host || reqUrlObject.hostname || headers.host || "localhost";
122698
122698
  if (host.indexOf(":") === -1 && port && port !== "80" && port !== "443") {
122699
122699
  host += `:${port}`;
122700
122700
  }
122701
- if (path47.includes("?")) {
122701
+ if (path48.includes("?")) {
122702
122702
  try {
122703
- const parsedUrl = new URL(path47, "http://localhost");
122703
+ const parsedUrl = new URL(path48, "http://localhost");
122704
122704
  const sensitiveParamsToRedact = redactedQueryParams || [];
122705
122705
  for (const sensitiveParam of sensitiveParamsToRedact) {
122706
122706
  if (parsedUrl.searchParams.get(sensitiveParam)) {
122707
122707
  parsedUrl.searchParams.set(sensitiveParam, internal_types_2.STR_REDACTED);
122708
122708
  }
122709
122709
  }
122710
- path47 = `${parsedUrl.pathname}${parsedUrl.search}`;
122710
+ path48 = `${parsedUrl.pathname}${parsedUrl.search}`;
122711
122711
  } catch {
122712
122712
  }
122713
122713
  }
122714
122714
  const authPart = reqUrlObject.auth ? `${internal_types_2.STR_REDACTED}:${internal_types_2.STR_REDACTED}@` : "";
122715
- return `${protocol}//${authPart}${host}${path47}`;
122715
+ return `${protocol}//${authPart}${host}${path48}`;
122716
122716
  };
122717
122717
  exports2.getAbsoluteUrl = getAbsoluteUrl;
122718
122718
  var parseResponseStatus = (kind, statusCode) => {
@@ -124865,15 +124865,15 @@ var init_ModuleNameTrie2 = __esm({
124865
124865
 
124866
124866
  // ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
124867
124867
  function normalizePathSeparators3(moduleNameOrPath) {
124868
- return path45.sep !== ModuleNameSeparator3 ? moduleNameOrPath.split(path45.sep).join(ModuleNameSeparator3) : moduleNameOrPath;
124868
+ return path46.sep !== ModuleNameSeparator3 ? moduleNameOrPath.split(path46.sep).join(ModuleNameSeparator3) : moduleNameOrPath;
124869
124869
  }
124870
- var import_require_in_the_middle5, path45, isMocha3, RequireInTheMiddleSingleton3;
124870
+ var import_require_in_the_middle5, path46, isMocha3, RequireInTheMiddleSingleton3;
124871
124871
  var init_RequireInTheMiddleSingleton2 = __esm({
124872
124872
  "../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js"() {
124873
124873
  "use strict";
124874
124874
  init_cjs_shims();
124875
124875
  import_require_in_the_middle5 = __toESM(require_require_in_the_middle());
124876
- path45 = __toESM(require("path"));
124876
+ path46 = __toESM(require("path"));
124877
124877
  init_ModuleNameTrie2();
124878
124878
  isMocha3 = [
124879
124879
  "afterEach",
@@ -124988,12 +124988,12 @@ function isSupported3(supportedVersions, version3, includePrerelease) {
124988
124988
  return satisfies3(version3, supportedVersion, { includePrerelease });
124989
124989
  });
124990
124990
  }
124991
- var path46, import_util15, import_import_in_the_middle3, import_require_in_the_middle6, import_fs7, InstrumentationBase3;
124991
+ var path47, import_util15, import_import_in_the_middle3, import_require_in_the_middle6, import_fs7, InstrumentationBase3;
124992
124992
  var init_instrumentation4 = __esm({
124993
124993
  "../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js"() {
124994
124994
  "use strict";
124995
124995
  init_cjs_shims();
124996
- path46 = __toESM(require("path"));
124996
+ path47 = __toESM(require("path"));
124997
124997
  import_util15 = require("util");
124998
124998
  init_semver3();
124999
124999
  init_shimmer2();
@@ -125094,7 +125094,7 @@ var init_instrumentation4 = __esm({
125094
125094
  }
125095
125095
  _extractPackageVersion(baseDir) {
125096
125096
  try {
125097
- const json = (0, import_fs7.readFileSync)(path46.join(baseDir, "package.json"), {
125097
+ const json = (0, import_fs7.readFileSync)(path47.join(baseDir, "package.json"), {
125098
125098
  encoding: "utf8"
125099
125099
  });
125100
125100
  const version3 = JSON.parse(json).version;
@@ -125136,7 +125136,7 @@ var init_instrumentation4 = __esm({
125136
125136
  return exports2;
125137
125137
  }
125138
125138
  const files = module2.files ?? [];
125139
- const normalizedName = path46.normalize(name2);
125139
+ const normalizedName = path47.normalize(name2);
125140
125140
  const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported3(f.supportedVersions, version3, module2.includePrerelease));
125141
125141
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
125142
125142
  file.moduleExports = patchedExports;
@@ -125182,8 +125182,8 @@ var init_instrumentation4 = __esm({
125182
125182
  this._warnOnPreloadedModules();
125183
125183
  for (const module2 of this._modules) {
125184
125184
  const hookFn = (exports2, name2, baseDir) => {
125185
- if (!baseDir && path46.isAbsolute(name2)) {
125186
- const parsedPath = path46.parse(name2);
125185
+ if (!baseDir && path47.isAbsolute(name2)) {
125186
+ const parsedPath = path47.parse(name2);
125187
125187
  name2 = parsedPath.name;
125188
125188
  baseDir = parsedPath.dir;
125189
125189
  }
@@ -125192,7 +125192,7 @@ var init_instrumentation4 = __esm({
125192
125192
  const onRequire = (exports2, name2, baseDir) => {
125193
125193
  return this._onRequire(module2, exports2, name2, baseDir);
125194
125194
  };
125195
- const hook = path46.isAbsolute(module2.name) ? new import_require_in_the_middle6.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
125195
+ const hook = path47.isAbsolute(module2.name) ? new import_require_in_the_middle6.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
125196
125196
  this._hooks.push(hook);
125197
125197
  const esmHook = new import_import_in_the_middle3.Hook([module2.name], { internals: true }, hookFn);
125198
125198
  this._hooks.push(esmHook);
@@ -136931,7 +136931,7 @@ function parseTask(value) {
136931
136931
  const status = asTaskStatus(value.status);
136932
136932
  const priority = asTaskPriority(value.priority);
136933
136933
  const conversationKind = value.conversationKind === void 0 ? "meshyChat" : asTaskConversationKind(value.conversationKind);
136934
- if (typeof value.id !== "string" || typeof value.title !== "string" || typeof value.description !== "string" || typeof value.agent !== "string" || value.project !== null && typeof value.project !== "string" || value.effectiveProjectPath !== null && value.effectiveProjectPath !== void 0 && typeof value.effectiveProjectPath !== "string" || value.branch !== null && value.branch !== void 0 && typeof value.branch !== "string" || conversationKind === null || !isPlainObject(value.payload) || status === null || priority === null || value.assignedTo !== null && typeof value.assignedTo !== "string" || value.assignedNodeName !== void 0 && value.assignedNodeName !== null && typeof value.assignedNodeName !== "string" || typeof value.createdBy !== "string" || value.result !== null && !isPlainObject(value.result) || value.error !== null && typeof value.error !== "string" || typeof value.retryCount !== "number" || !Number.isFinite(value.retryCount) || typeof value.maxRetries !== "number" || !Number.isFinite(value.maxRetries) || typeof value.createdAt !== "number" || !Number.isFinite(value.createdAt) || typeof value.updatedAt !== "number" || !Number.isFinite(value.updatedAt)) {
136934
+ if (typeof value.id !== "string" || typeof value.title !== "string" || typeof value.description !== "string" || typeof value.agent !== "string" || value.project !== null && typeof value.project !== "string" || value.effectiveProjectPath !== null && value.effectiveProjectPath !== void 0 && typeof value.effectiveProjectPath !== "string" || value.branch !== null && value.branch !== void 0 && typeof value.branch !== "string" || value.pinnedOnTop !== void 0 && typeof value.pinnedOnTop !== "boolean" || conversationKind === null || !isPlainObject(value.payload) || status === null || priority === null || value.assignedTo !== null && typeof value.assignedTo !== "string" || value.assignedNodeName !== void 0 && value.assignedNodeName !== null && typeof value.assignedNodeName !== "string" || typeof value.createdBy !== "string" || value.result !== null && !isPlainObject(value.result) || value.error !== null && typeof value.error !== "string" || typeof value.retryCount !== "number" || !Number.isFinite(value.retryCount) || typeof value.maxRetries !== "number" || !Number.isFinite(value.maxRetries) || typeof value.createdAt !== "number" || !Number.isFinite(value.createdAt) || typeof value.updatedAt !== "number" || !Number.isFinite(value.updatedAt)) {
136935
136935
  return null;
136936
136936
  }
136937
136937
  const queuedMessages = parseTaskQueuedMessages(value.queuedMessages);
@@ -136944,6 +136944,7 @@ function parseTask(value) {
136944
136944
  effectiveProjectPath: typeof value.effectiveProjectPath === "string" ? value.effectiveProjectPath : null,
136945
136945
  branch: value.branch === void 0 ? void 0 : typeof value.branch === "string" ? value.branch : null,
136946
136946
  conversationKind,
136947
+ ...typeof value.pinnedOnTop === "boolean" ? { pinnedOnTop: value.pinnedOnTop } : {},
136947
136948
  payload: clone(value.payload),
136948
136949
  ...queuedMessages ? { queuedMessages } : {},
136949
136950
  status,
@@ -137601,19 +137602,19 @@ async function fetchWithTimeout(url3, init, timeoutMs = DEFAULT_NODE_REQUEST_TIM
137601
137602
  cleanup();
137602
137603
  }
137603
137604
  }
137604
- async function fetchNodeWithFallback(node2, path47, init, timeoutMs = DEFAULT_NODE_REQUEST_TIMEOUT_MS, trace2, options) {
137605
+ async function fetchNodeWithFallback(node2, path48, init, timeoutMs = DEFAULT_NODE_REQUEST_TIMEOUT_MS, trace2, options) {
137605
137606
  let lastError;
137606
137607
  const endpoints = getNodeRequestEndpoints(node2, options);
137607
137608
  for (const [index2, endpoint] of endpoints.entries()) {
137608
137609
  const attempt = index2 + 1;
137609
- trace2?.onAttempt?.({ attempt, endpoint, path: path47, timeoutMs, totalEndpoints: endpoints.length });
137610
+ trace2?.onAttempt?.({ attempt, endpoint, path: path48, timeoutMs, totalEndpoints: endpoints.length });
137610
137611
  try {
137611
- const response = await fetchWithTimeout(`${endpoint}${path47}`, init, timeoutMs);
137612
- trace2?.onResponse?.({ attempt, endpoint, path: path47, response, timeoutMs, totalEndpoints: endpoints.length });
137612
+ const response = await fetchWithTimeout(`${endpoint}${path48}`, init, timeoutMs);
137613
+ trace2?.onResponse?.({ attempt, endpoint, path: path48, response, timeoutMs, totalEndpoints: endpoints.length });
137613
137614
  return { endpoint, response };
137614
137615
  } catch (error2) {
137615
137616
  lastError = error2;
137616
- trace2?.onError?.({ attempt, endpoint, error: error2, path: path47, timeoutMs, totalEndpoints: endpoints.length });
137617
+ trace2?.onError?.({ attempt, endpoint, error: error2, path: path48, timeoutMs, totalEndpoints: endpoints.length });
137617
137618
  }
137618
137619
  }
137619
137620
  throw lastError instanceof Error ? lastError : new Error("No reachable node endpoint");
@@ -138277,6 +138278,7 @@ function getPublicTaskUpdates(updates, updatedAt) {
138277
138278
  if (updates.error !== void 0) publicUpdates.error = updates.error;
138278
138279
  if (updates.effectiveProjectPath !== void 0) publicUpdates.effectiveProjectPath = updates.effectiveProjectPath;
138279
138280
  if (updates.branch !== void 0) publicUpdates.branch = updates.branch;
138281
+ if (updates.pinnedOnTop !== void 0) publicUpdates.pinnedOnTop = updates.pinnedOnTop;
138280
138282
  return publicUpdates;
138281
138283
  }
138282
138284
  var PRIORITY_ORDER = {
@@ -138404,7 +138406,10 @@ var TaskEngine = class {
138404
138406
  const existing = this.store.getTask(id);
138405
138407
  if (!existing) return null;
138406
138408
  const now = Date.now();
138407
- const merged = this.store.updateTask(id, { ...updates, updatedAt: now });
138409
+ const updateKeys = Object.keys(updates);
138410
+ const isPinnedOnlyUpdate = updateKeys.length === 1 && updateKeys[0] === "pinnedOnTop";
138411
+ const nextUpdatedAt = isPinnedOnlyUpdate ? existing.updatedAt : now;
138412
+ const merged = this.store.updateTask(id, { ...updates, updatedAt: nextUpdatedAt });
138408
138413
  if (!merged) return null;
138409
138414
  if (updates.status !== void 0 && updates.status !== existing.status) {
138410
138415
  const eventData = {
@@ -139864,9 +139869,9 @@ var DataRouter = class {
139864
139869
  /**
139865
139870
  * Returns true if the request should be proxied to the leader.
139866
139871
  */
139867
- shouldProxy(method, path47) {
139872
+ shouldProxy(method, path48) {
139868
139873
  if (this.election.isLeader()) return false;
139869
- if (this.isExcludedPath(path47)) return false;
139874
+ if (this.isExcludedPath(path48)) return false;
139870
139875
  if (method.toUpperCase() === "GET") return false;
139871
139876
  return WRITE_METHODS.has(method.toUpperCase());
139872
139877
  }
@@ -139970,8 +139975,8 @@ var DataRouter = class {
139970
139975
  };
139971
139976
  }
139972
139977
  // ── Helpers ───────────────────────────────────────────────────────────
139973
- isExcludedPath(path47) {
139974
- return EXCLUDED_PATH_PREFIXES.some((prefix) => path47.startsWith(prefix)) || EXCLUDED_PATH_SUFFIXES.some((suffix) => path47.endsWith(suffix));
139978
+ isExcludedPath(path48) {
139979
+ return EXCLUDED_PATH_PREFIXES.some((prefix) => path48.startsWith(prefix)) || EXCLUDED_PATH_SUFFIXES.some((suffix) => path48.endsWith(suffix));
139975
139980
  }
139976
139981
  };
139977
139982
 
@@ -144978,6 +144983,7 @@ ${joinErrors.map((e) => ` - ${e}`).join("\n")}`
144978
144983
  this.selfInfo.endpoint = newEndpoint;
144979
144984
  this.selfInfo.transportType = transportType;
144980
144985
  this.nodeRegistry.updateEndpoint(this.selfInfo.id, newEndpoint);
144986
+ this.nodeRegistry.updateDevTunnelHealth(this.selfInfo.id, void 0);
144981
144987
  this.config.transport = newTransportConfig;
144982
144988
  this.eventBus.emit("transport.changed", {
144983
144989
  nodeId: this.selfInfo.id,
@@ -146119,6 +146125,7 @@ var TaskListResponse = external_exports.object({
146119
146125
  effectiveProjectPath: external_exports.string().nullable(),
146120
146126
  branch: external_exports.string().nullable().optional(),
146121
146127
  conversationKind: external_exports.enum(TASK_CONVERSATION_KIND_OPTIONS).optional(),
146128
+ pinnedOnTop: external_exports.boolean().optional(),
146122
146129
  payload: external_exports.record(external_exports.unknown()),
146123
146130
  queuedMessages: external_exports.array(external_exports.object({
146124
146131
  id: external_exports.string(),
@@ -146159,7 +146166,8 @@ var UpdateTaskBody = external_exports.object({
146159
146166
  result: external_exports.record(external_exports.unknown()).nullable().optional(),
146160
146167
  error: external_exports.string().nullable().optional(),
146161
146168
  effectiveProjectPath: external_exports.string().nullable().optional(),
146162
- branch: external_exports.string().nullable().optional()
146169
+ branch: external_exports.string().nullable().optional(),
146170
+ pinnedOnTop: external_exports.boolean().optional()
146163
146171
  });
146164
146172
  var AssignTaskBody = external_exports.object({
146165
146173
  nodeId: external_exports.string().min(1)
@@ -146239,8 +146247,8 @@ var BatchTaskIdsBody = external_exports.object({
146239
146247
 
146240
146248
  // ../../packages/api/src/app/server.ts
146241
146249
  init_cjs_shims();
146242
- var path33 = __toESM(require("path"), 1);
146243
- var fs28 = __toESM(require("fs"), 1);
146250
+ var path34 = __toESM(require("path"), 1);
146251
+ var fs29 = __toESM(require("fs"), 1);
146244
146252
  var import_express18 = __toESM(require_express2(), 1);
146245
146253
 
146246
146254
  // ../../packages/api/src/middleware/auth.ts
@@ -146467,8 +146475,8 @@ function decodePathSegment(value) {
146467
146475
  return value;
146468
146476
  }
146469
146477
  }
146470
- function getSingleTaskDeleteId(path47) {
146471
- const match = /^\/api\/tasks\/([^/]+)$/.exec(path47);
146478
+ function getSingleTaskDeleteId(path48) {
146479
+ const match = /^\/api\/tasks\/([^/]+)$/.exec(path48);
146472
146480
  return match ? decodePathSegment(match[1]) : null;
146473
146481
  }
146474
146482
  function getSuccessfulBatchDeleteIds(body3) {
@@ -146645,15 +146653,15 @@ function createRequestLoggingMiddleware(rootLogger, options = {}) {
146645
146653
  return;
146646
146654
  }
146647
146655
  const startedAt = process.hrtime.bigint();
146648
- const path47 = req.path;
146656
+ const path48 = req.path;
146649
146657
  let logged = false;
146650
146658
  const logCompletion = (closed) => {
146651
146659
  if (logged) return;
146652
146660
  logged = true;
146653
146661
  const throttle = options.throttle;
146654
- if (throttle && throttle.intervalMs > 0 && throttle.shouldThrottle(req, res, closed, path47)) {
146662
+ if (throttle && throttle.intervalMs > 0 && throttle.shouldThrottle(req, res, closed, path48)) {
146655
146663
  const now = throttle.now?.() ?? Date.now();
146656
- const key2 = throttle.key?.(req, path47) ?? `${req.method.toUpperCase()} ${path47}`;
146664
+ const key2 = throttle.key?.(req, path48) ?? `${req.method.toUpperCase()} ${path48}`;
146657
146665
  const previousLoggedAt = lastLoggedAt.get(key2);
146658
146666
  if (previousLoggedAt !== void 0 && now - previousLoggedAt < throttle.intervalMs) {
146659
146667
  return;
@@ -146662,7 +146670,7 @@ function createRequestLoggingMiddleware(rootLogger, options = {}) {
146662
146670
  }
146663
146671
  log2.info("request completed", {
146664
146672
  method: req.method,
146665
- path: path47,
146673
+ path: path48,
146666
146674
  statusCode: res.statusCode,
146667
146675
  durationMs: durationMs(startedAt),
146668
146676
  closed,
@@ -146740,14 +146748,14 @@ function createRequestTelemetryMiddleware(telemetry, options = {}) {
146740
146748
  return;
146741
146749
  }
146742
146750
  const startedAt = process.hrtime.bigint();
146743
- const path47 = req.path;
146751
+ const path48 = req.path;
146744
146752
  let tracked = false;
146745
146753
  const trackCompletion = (closed) => {
146746
146754
  if (tracked) return;
146747
146755
  tracked = true;
146748
146756
  try {
146749
146757
  const duration3 = durationMs2(startedAt);
146750
- const route = resolveTelemetryRoute(path47);
146758
+ const route = resolveTelemetryRoute(path48);
146751
146759
  const dimensions = {
146752
146760
  method: req.method,
146753
146761
  routeGroup: route.routeGroup,
@@ -148565,7 +148573,11 @@ function isRecord11(value) {
148565
148573
  // ../../packages/api/src/node/copilot-tunnel-service.ts
148566
148574
  init_cjs_shims();
148567
148575
  var import_node_child_process10 = require("child_process");
148576
+ var import_node_events = require("events");
148577
+ var import_node_fs = __toESM(require("fs"), 1);
148568
148578
  var import_node_net = __toESM(require("net"), 1);
148579
+ var import_node_os4 = __toESM(require("os"), 1);
148580
+ var import_node_path = __toESM(require("path"), 1);
148569
148581
  var DEFAULT_HOST = "127.0.0.1";
148570
148582
  var DEFAULT_PORT = 8314;
148571
148583
  var DEFAULT_OUTPUT_LIMIT_BYTES = 8e3;
@@ -148578,6 +148590,46 @@ var GHC_TUNNEL_SETUP_ARGS = ["-y", "ghc-tunnel@latest", "--setup", "-d"];
148578
148590
  var GHC_TUNNEL_READY_PATTERN = /GitHub Copilot API Proxy/i;
148579
148591
  var GHC_TUNNEL_API_PATTERN = /^\s*(OpenAI API|Responses API|Anthropic API)\b/im;
148580
148592
  var trackedTunnels = /* @__PURE__ */ new Map();
148593
+ var FileTailOutputSource = class extends import_node_events.EventEmitter {
148594
+ constructor(filePath) {
148595
+ super();
148596
+ this.filePath = filePath;
148597
+ this.timer = setInterval(() => this.flush(), 100);
148598
+ this.timer.unref?.();
148599
+ }
148600
+ filePath;
148601
+ timer;
148602
+ offset = 0;
148603
+ flush() {
148604
+ try {
148605
+ const size = import_node_fs.default.statSync(this.filePath).size;
148606
+ if (size <= this.offset) return;
148607
+ const fd = import_node_fs.default.openSync(this.filePath, "r");
148608
+ try {
148609
+ let position4 = this.offset;
148610
+ while (position4 < size) {
148611
+ const buffer = Buffer.alloc(Math.min(64 * 1024, size - position4));
148612
+ const bytesRead = import_node_fs.default.readSync(fd, buffer, 0, buffer.length, position4);
148613
+ if (bytesRead <= 0) break;
148614
+ position4 += bytesRead;
148615
+ this.emit("data", buffer.subarray(0, bytesRead));
148616
+ }
148617
+ this.offset = position4;
148618
+ } finally {
148619
+ import_node_fs.default.closeSync(fd);
148620
+ }
148621
+ } catch {
148622
+ }
148623
+ }
148624
+ stop() {
148625
+ this.flush();
148626
+ if (this.timer) clearInterval(this.timer);
148627
+ this.timer = null;
148628
+ }
148629
+ unref() {
148630
+ this.timer?.unref?.();
148631
+ }
148632
+ };
148581
148633
  function createTail() {
148582
148634
  return { text: "", observedBytes: 0, truncated: false };
148583
148635
  }
@@ -148592,8 +148644,40 @@ function appendTail(tail, chunk, limitBytes) {
148592
148644
  function sleep2(ms) {
148593
148645
  return new Promise((resolve24) => setTimeout(resolve24, ms));
148594
148646
  }
148647
+ function createDetachedOutputLog() {
148648
+ const dir = import_node_fs.default.mkdtempSync(import_node_path.default.join(import_node_os4.default.tmpdir(), "meshy-ghc-tunnel-"));
148649
+ const logPath = import_node_path.default.join(dir, "output.log");
148650
+ const fd = import_node_fs.default.openSync(logPath, "a");
148651
+ return { dir, logPath, fd };
148652
+ }
148595
148653
  function defaultSpawnTunnel(command, args, options) {
148596
- return (0, import_node_child_process10.spawn)(command, args, options);
148654
+ const output = createDetachedOutputLog();
148655
+ let child;
148656
+ try {
148657
+ child = (0, import_node_child_process10.spawn)(command, args, {
148658
+ ...options,
148659
+ detached: true,
148660
+ stdio: ["ignore", output.fd, output.fd]
148661
+ });
148662
+ } finally {
148663
+ import_node_fs.default.closeSync(output.fd);
148664
+ }
148665
+ const tail = new FileTailOutputSource(output.logPath);
148666
+ const cleanup = () => {
148667
+ tail.stop();
148668
+ import_node_fs.default.rm(output.dir, { recursive: true, force: true }, () => {
148669
+ });
148670
+ };
148671
+ child.once("close", cleanup);
148672
+ child.once("error", cleanup);
148673
+ return {
148674
+ stdout: tail,
148675
+ stderr: null,
148676
+ pid: child.pid,
148677
+ kill: child.kill.bind(child),
148678
+ once: child.once.bind(child),
148679
+ unref: child.unref.bind(child)
148680
+ };
148597
148681
  }
148598
148682
  function execFileText(command, args) {
148599
148683
  return new Promise((resolve24) => {
@@ -148881,9 +148965,9 @@ async function enableGithubCopilotTunnel(options = {}) {
148881
148965
  const childState = { exit: null, spawnError: null };
148882
148966
  const child = (options.spawnTunnel ?? defaultSpawnTunnel)(invocation.command, invocation.args, {
148883
148967
  cwd: options.cwd ?? process.cwd(),
148968
+ detached: true,
148884
148969
  shell: false,
148885
- windowsHide: true,
148886
- stdio: ["ignore", "pipe", "pipe"]
148970
+ windowsHide: true
148887
148971
  });
148888
148972
  const pid = typeof child.pid === "number" ? child.pid : null;
148889
148973
  const publish2 = (status, detail) => {
@@ -148916,6 +149000,8 @@ ${stderr.text}`) ?? auth;
148916
149000
  child.stderr?.removeListener?.("data", stderrListener);
148917
149001
  child.stdout?.on("data", drainListener);
148918
149002
  child.stderr?.on("data", drainListener);
149003
+ child.stdout?.stop?.();
149004
+ child.stderr?.stop?.();
148919
149005
  };
148920
149006
  const deadline = Date.now() + startupTimeoutMs;
148921
149007
  while (Date.now() < deadline) {
@@ -148949,9 +149035,9 @@ async function runGithubCopilotTunnelSetup(options = {}) {
148949
149035
  let auth = null;
148950
149036
  const child = (options.spawnSetup ?? defaultSpawnTunnel)(invocation.command, invocation.args, {
148951
149037
  cwd: options.cwd ?? process.cwd(),
149038
+ detached: true,
148952
149039
  shell: false,
148953
- windowsHide: true,
148954
- stdio: ["ignore", "pipe", "pipe"]
149040
+ windowsHide: true
148955
149041
  });
148956
149042
  const pid = typeof child.pid === "number" ? child.pid : null;
148957
149043
  const publish2 = (status, detail) => {
@@ -148964,6 +149050,8 @@ async function runGithubCopilotTunnelSetup(options = {}) {
148964
149050
  child.stderr?.unref?.();
148965
149051
  child.stdout?.removeListener?.("data", stdoutListener);
148966
149052
  child.stderr?.removeListener?.("data", stderrListener);
149053
+ child.stdout?.stop?.();
149054
+ child.stderr?.stop?.();
148967
149055
  child.unref?.();
148968
149056
  };
148969
149057
  const settle = (result) => {
@@ -148978,6 +149066,7 @@ ${stderr.text}`) ?? auth;
148978
149066
  publish2(auth ? "auth-required" : "starting");
148979
149067
  if (options.resolveOnReadyOutput && hasGithubCopilotTunnelReadyOutput(`${stdout.text}
148980
149068
  ${stderr.text}`)) {
149069
+ trackedTunnels.set(tunnelKey(host, port), child);
148981
149070
  releaseSetupOutputCapture();
148982
149071
  settle(buildResult({ host, port, command, args, pid, status: "available", available: true, stdout, stderr, auth }));
148983
149072
  }
@@ -148994,6 +149083,7 @@ ${stderr.text}`)) {
148994
149083
  settle(buildResult({ host, port, command, args, pid, status: "failed", available: false, stdout, stderr, auth, detail: message }));
148995
149084
  });
148996
149085
  child.once("close", (code4, signal) => {
149086
+ if (trackedTunnels.get(tunnelKey(host, port)) === child) trackedTunnels.delete(tunnelKey(host, port));
148997
149087
  if (code4 === 0) {
148998
149088
  settle(buildResult({ host, port, command, args, pid, status: "available", available: true, stdout, stderr, auth }));
148999
149089
  return;
@@ -149530,7 +149620,7 @@ async function sendNodeWorkDirBranchCreateOperation(req, res, nodeId) {
149530
149620
 
149531
149621
  // ../../packages/api/src/tasks/task-route-utils.ts
149532
149622
  init_cjs_shims();
149533
- var fs21 = __toESM(require("fs"), 1);
149623
+ var fs22 = __toESM(require("fs"), 1);
149534
149624
  var import_node_stream3 = require("stream");
149535
149625
  var import_promises5 = require("stream/promises");
149536
149626
 
@@ -149596,10 +149686,10 @@ function readLocalTaskLogs(engineRegistry, taskId, after, agent) {
149596
149686
  throw new MeshyError("VALIDATION_ERROR", `Engine not registered for agent: ${agent}`, 400);
149597
149687
  }
149598
149688
  const logPath = engine.getLogPath(taskId);
149599
- if (!fs21.existsSync(logPath)) {
149689
+ if (!fs22.existsSync(logPath)) {
149600
149690
  return { logs: [], total: 0 };
149601
149691
  }
149602
- const content3 = fs21.readFileSync(logPath, "utf-8");
149692
+ const content3 = fs22.readFileSync(logPath, "utf-8");
149603
149693
  const allLines = content3.trim().split("\n").filter(Boolean);
149604
149694
  const logs4 = [];
149605
149695
  for (let i = after; i < allLines.length; i++) {
@@ -149839,19 +149929,19 @@ var import_node_crypto8 = require("crypto");
149839
149929
 
149840
149930
  // ../../packages/api/src/node/node-terminal-service.ts
149841
149931
  init_cjs_shims();
149842
- var fs22 = __toESM(require("fs"), 1);
149843
- var path26 = __toESM(require("path"), 1);
149932
+ var fs23 = __toESM(require("fs"), 1);
149933
+ var path27 = __toESM(require("path"), 1);
149844
149934
  var DEFAULT_OUTPUT_LIMIT_BYTES2 = 64 * 1024;
149845
149935
  function isAbsolutePath2(value) {
149846
- return path26.isAbsolute(value) || /^[A-Za-z]:[\/]/.test(value);
149936
+ return path27.isAbsolute(value) || /^[A-Za-z]:[\/]/.test(value);
149847
149937
  }
149848
149938
  function resolveNodeTerminalCwd(nodeId, rootPath, cwd) {
149849
149939
  if (!rootPath) {
149850
149940
  throw new MeshyError("VALIDATION_ERROR", `Node ${nodeId} does not expose a working directory`, 400);
149851
149941
  }
149852
149942
  const requestedCwd = cwd?.trim() || ".";
149853
- const resolved = isAbsolutePath2(requestedCwd) ? path26.resolve(requestedCwd) : path26.resolve(rootPath, requestedCwd);
149854
- if (!fs22.existsSync(resolved) || !fs22.statSync(resolved).isDirectory()) {
149943
+ const resolved = isAbsolutePath2(requestedCwd) ? path27.resolve(requestedCwd) : path27.resolve(rootPath, requestedCwd);
149944
+ if (!fs23.existsSync(resolved) || !fs23.statSync(resolved).isDirectory()) {
149855
149945
  throw new MeshyError("VALIDATION_ERROR", `Working directory does not exist: ${resolved}`, 400);
149856
149946
  }
149857
149947
  return resolved;
@@ -150023,13 +150113,13 @@ ${err.message}` : err.message;
150023
150113
 
150024
150114
  // ../../packages/api/src/node/node-native-session-service.ts
150025
150115
  init_cjs_shims();
150026
- var fs23 = __toESM(require("fs"), 1);
150027
- var path27 = __toESM(require("path"), 1);
150116
+ var fs24 = __toESM(require("fs"), 1);
150117
+ var path28 = __toESM(require("path"), 1);
150028
150118
  function defaultHiddenFile() {
150029
150119
  return { sessions: [], folders: [] };
150030
150120
  }
150031
150121
  function getHiddenFilePath(storagePath) {
150032
- return path27.join(storagePath, "native-session-hidden.json");
150122
+ return path28.join(storagePath, "native-session-hidden.json");
150033
150123
  }
150034
150124
  function isNativeSessionAgent(value) {
150035
150125
  return value === "codex" || value === "claudecode" || value === "copilot";
@@ -150043,7 +150133,7 @@ function isHiddenFolderEntry(value) {
150043
150133
  function readHiddenFile(storagePath) {
150044
150134
  if (!storagePath) return defaultHiddenFile();
150045
150135
  try {
150046
- const parsed = JSON.parse(fs23.readFileSync(getHiddenFilePath(storagePath), "utf8"));
150136
+ const parsed = JSON.parse(fs24.readFileSync(getHiddenFilePath(storagePath), "utf8"));
150047
150137
  return {
150048
150138
  sessions: Array.isArray(parsed.sessions) ? parsed.sessions.filter(isHiddenSessionEntry) : [],
150049
150139
  folders: Array.isArray(parsed.folders) ? parsed.folders.filter(isHiddenFolderEntry) : []
@@ -150053,8 +150143,8 @@ function readHiddenFile(storagePath) {
150053
150143
  }
150054
150144
  }
150055
150145
  function writeHiddenFile(storagePath, hidden) {
150056
- fs23.mkdirSync(storagePath, { recursive: true });
150057
- fs23.writeFileSync(getHiddenFilePath(storagePath), JSON.stringify(hidden, null, 2) + "\n", "utf8");
150146
+ fs24.mkdirSync(storagePath, { recursive: true });
150147
+ fs24.writeFileSync(getHiddenFilePath(storagePath), JSON.stringify(hidden, null, 2) + "\n", "utf8");
150058
150148
  }
150059
150149
  function isHiddenSession(session, hidden) {
150060
150150
  return hidden.sessions.some((entry) => entry.agent === session.agent && entry.sessionId === session.sessionId) || hidden.folders.some((entry) => entry.agent === session.agent && entry.cwd === session.cwd);
@@ -150155,8 +150245,8 @@ function cancelTaskOnCurrentNode(deps, taskId, options = {}) {
150155
150245
 
150156
150246
  // ../../packages/api/src/tasks/task-output-service.ts
150157
150247
  init_cjs_shims();
150158
- var fs25 = __toESM(require("fs"), 1);
150159
- var path30 = __toESM(require("path"), 1);
150248
+ var fs26 = __toESM(require("fs"), 1);
150249
+ var path31 = __toESM(require("path"), 1);
150160
150250
 
150161
150251
  // ../../packages/api/src/preview/index.ts
150162
150252
  init_cjs_shims();
@@ -150164,8 +150254,8 @@ init_cjs_shims();
150164
150254
  // ../../packages/api/src/preview/preview-server.ts
150165
150255
  init_cjs_shims();
150166
150256
  var crypto5 = __toESM(require("crypto"), 1);
150167
- var fs24 = __toESM(require("fs"), 1);
150168
- var path29 = __toESM(require("path"), 1);
150257
+ var fs25 = __toESM(require("fs"), 1);
150258
+ var path30 = __toESM(require("path"), 1);
150169
150259
  var http2 = __toESM(require("http"), 1);
150170
150260
  var import_node_stream4 = require("stream");
150171
150261
  var import_promises6 = require("stream/promises");
@@ -162563,7 +162653,7 @@ function transformGfmAutolinkLiterals(tree) {
162563
162653
  { ignore: ["link", "linkReference"] }
162564
162654
  );
162565
162655
  }
162566
- function findUrl(_, protocol, domain2, path47, match) {
162656
+ function findUrl(_, protocol, domain2, path48, match) {
162567
162657
  let prefix = "";
162568
162658
  if (!previous(match)) {
162569
162659
  return false;
@@ -162576,7 +162666,7 @@ function findUrl(_, protocol, domain2, path47, match) {
162576
162666
  if (!isCorrectDomain(domain2)) {
162577
162667
  return false;
162578
162668
  }
162579
- const parts = splitUrl(domain2 + path47);
162669
+ const parts = splitUrl(domain2 + path48);
162580
162670
  if (!parts[0]) return false;
162581
162671
  const result = {
162582
162672
  type: "link",
@@ -166526,7 +166616,7 @@ var domain = {
166526
166616
  tokenize: tokenizeDomain,
166527
166617
  partial: true
166528
166618
  };
166529
- var path28 = {
166619
+ var path29 = {
166530
166620
  tokenize: tokenizePath,
166531
166621
  partial: true
166532
166622
  };
@@ -166632,7 +166722,7 @@ function tokenizeWwwAutolink(effects, ok3, nok) {
166632
166722
  }
166633
166723
  effects.enter("literalAutolink");
166634
166724
  effects.enter("literalAutolinkWww");
166635
- return effects.check(wwwPrefix, effects.attempt(domain, effects.attempt(path28, wwwAfter), nok), nok)(code4);
166725
+ return effects.check(wwwPrefix, effects.attempt(domain, effects.attempt(path29, wwwAfter), nok), nok)(code4);
166636
166726
  }
166637
166727
  function wwwAfter(code4) {
166638
166728
  effects.exit("literalAutolinkWww");
@@ -166682,7 +166772,7 @@ function tokenizeProtocolAutolink(effects, ok3, nok) {
166682
166772
  return nok(code4);
166683
166773
  }
166684
166774
  function afterProtocol(code4) {
166685
- return code4 === null || asciiControl(code4) || markdownLineEndingOrSpace(code4) || unicodeWhitespace(code4) || unicodePunctuation(code4) ? nok(code4) : effects.attempt(domain, effects.attempt(path28, protocolAfter), nok)(code4);
166775
+ return code4 === null || asciiControl(code4) || markdownLineEndingOrSpace(code4) || unicodeWhitespace(code4) || unicodePunctuation(code4) ? nok(code4) : effects.attempt(domain, effects.attempt(path29, protocolAfter), nok)(code4);
166686
166776
  }
166687
166777
  function protocolAfter(code4) {
166688
166778
  effects.exit("literalAutolinkHttp");
@@ -173708,7 +173798,7 @@ VFileMessage.prototype.source = void 0;
173708
173798
 
173709
173799
  // ../../node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.js
173710
173800
  init_cjs_shims();
173711
- var import_node_path = __toESM(require("path"), 1);
173801
+ var import_node_path2 = __toESM(require("path"), 1);
173712
173802
 
173713
173803
  // ../../node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.js
173714
173804
  init_cjs_shims();
@@ -173802,7 +173892,7 @@ var VFile = class {
173802
173892
  * Basename.
173803
173893
  */
173804
173894
  get basename() {
173805
- return typeof this.path === "string" ? import_node_path.default.basename(this.path) : void 0;
173895
+ return typeof this.path === "string" ? import_node_path2.default.basename(this.path) : void 0;
173806
173896
  }
173807
173897
  /**
173808
173898
  * Set basename (including extname) (`'index.min.js'`).
@@ -173819,7 +173909,7 @@ var VFile = class {
173819
173909
  set basename(basename6) {
173820
173910
  assertNonEmpty(basename6, "basename");
173821
173911
  assertPart(basename6, "basename");
173822
- this.path = import_node_path.default.join(this.dirname || "", basename6);
173912
+ this.path = import_node_path2.default.join(this.dirname || "", basename6);
173823
173913
  }
173824
173914
  /**
173825
173915
  * Get the parent path (example: `'~'`).
@@ -173828,7 +173918,7 @@ var VFile = class {
173828
173918
  * Dirname.
173829
173919
  */
173830
173920
  get dirname() {
173831
- return typeof this.path === "string" ? import_node_path.default.dirname(this.path) : void 0;
173921
+ return typeof this.path === "string" ? import_node_path2.default.dirname(this.path) : void 0;
173832
173922
  }
173833
173923
  /**
173834
173924
  * Set the parent path (example: `'~'`).
@@ -173842,7 +173932,7 @@ var VFile = class {
173842
173932
  */
173843
173933
  set dirname(dirname11) {
173844
173934
  assertPath(this.basename, "dirname");
173845
- this.path = import_node_path.default.join(dirname11 || "", this.basename);
173935
+ this.path = import_node_path2.default.join(dirname11 || "", this.basename);
173846
173936
  }
173847
173937
  /**
173848
173938
  * Get the extname (including dot) (example: `'.js'`).
@@ -173851,7 +173941,7 @@ var VFile = class {
173851
173941
  * Extname.
173852
173942
  */
173853
173943
  get extname() {
173854
- return typeof this.path === "string" ? import_node_path.default.extname(this.path) : void 0;
173944
+ return typeof this.path === "string" ? import_node_path2.default.extname(this.path) : void 0;
173855
173945
  }
173856
173946
  /**
173857
173947
  * Set the extname (including dot) (example: `'.js'`).
@@ -173876,7 +173966,7 @@ var VFile = class {
173876
173966
  throw new Error("`extname` cannot contain multiple dots");
173877
173967
  }
173878
173968
  }
173879
- this.path = import_node_path.default.join(this.dirname, this.stem + (extname4 || ""));
173969
+ this.path = import_node_path2.default.join(this.dirname, this.stem + (extname4 || ""));
173880
173970
  }
173881
173971
  /**
173882
173972
  * Get the full path (example: `'~/index.min.js'`).
@@ -173899,13 +173989,13 @@ var VFile = class {
173899
173989
  * @returns {undefined}
173900
173990
  * Nothing.
173901
173991
  */
173902
- set path(path47) {
173903
- if (isUrl(path47)) {
173904
- path47 = (0, import_node_url.fileURLToPath)(path47);
173992
+ set path(path48) {
173993
+ if (isUrl(path48)) {
173994
+ path48 = (0, import_node_url.fileURLToPath)(path48);
173905
173995
  }
173906
- assertNonEmpty(path47, "path");
173907
- if (this.path !== path47) {
173908
- this.history.push(path47);
173996
+ assertNonEmpty(path48, "path");
173997
+ if (this.path !== path48) {
173998
+ this.history.push(path48);
173909
173999
  }
173910
174000
  }
173911
174001
  /**
@@ -173915,7 +174005,7 @@ var VFile = class {
173915
174005
  * Stem.
173916
174006
  */
173917
174007
  get stem() {
173918
- return typeof this.path === "string" ? import_node_path.default.basename(this.path, this.extname) : void 0;
174008
+ return typeof this.path === "string" ? import_node_path2.default.basename(this.path, this.extname) : void 0;
173919
174009
  }
173920
174010
  /**
173921
174011
  * Set the stem (basename w/o extname) (example: `'index.min'`).
@@ -173932,7 +174022,7 @@ var VFile = class {
173932
174022
  set stem(stem) {
173933
174023
  assertNonEmpty(stem, "stem");
173934
174024
  assertPart(stem, "stem");
173935
- this.path = import_node_path.default.join(this.dirname || "", stem + (this.extname || ""));
174025
+ this.path = import_node_path2.default.join(this.dirname || "", stem + (this.extname || ""));
173936
174026
  }
173937
174027
  // Normal prototypal methods.
173938
174028
  /**
@@ -174161,9 +174251,9 @@ var VFile = class {
174161
174251
  }
174162
174252
  };
174163
174253
  function assertPart(part, name2) {
174164
- if (part && part.includes(import_node_path.default.sep)) {
174254
+ if (part && part.includes(import_node_path2.default.sep)) {
174165
174255
  throw new Error(
174166
- "`" + name2 + "` cannot be a path: did not expect `" + import_node_path.default.sep + "`"
174256
+ "`" + name2 + "` cannot be a path: did not expect `" + import_node_path2.default.sep + "`"
174167
174257
  );
174168
174258
  }
174169
174259
  }
@@ -174172,8 +174262,8 @@ function assertNonEmpty(part, name2) {
174172
174262
  throw new Error("`" + name2 + "` cannot be empty");
174173
174263
  }
174174
174264
  }
174175
- function assertPath(path47, name2) {
174176
- if (!path47) {
174265
+ function assertPath(path48, name2) {
174266
+ if (!path48) {
174177
174267
  throw new Error("Setting `" + name2 + "` requires `path` to be set too");
174178
174268
  }
174179
174269
  }
@@ -174957,19 +175047,19 @@ function buildPreviewWorkerProxyHeaders(req) {
174957
175047
  // ../../packages/api/src/preview/preview-server.ts
174958
175048
  function resolvePreviewPath(rootPath, relativePath) {
174959
175049
  const sanitizedPath = relativePath.replace(/\\/g, "/");
174960
- const resolvedPath = path29.resolve(rootPath, sanitizedPath);
174961
- const normalizedRoot = path29.resolve(rootPath);
174962
- if (!resolvedPath.startsWith(normalizedRoot + path29.sep) && resolvedPath !== normalizedRoot) {
175050
+ const resolvedPath = path30.resolve(rootPath, sanitizedPath);
175051
+ const normalizedRoot = path30.resolve(rootPath);
175052
+ if (!resolvedPath.startsWith(normalizedRoot + path30.sep) && resolvedPath !== normalizedRoot) {
174963
175053
  throw new Error("Invalid preview path");
174964
175054
  }
174965
175055
  return {
174966
175056
  absolutePath: resolvedPath,
174967
- normalizedPath: path29.relative(normalizedRoot, resolvedPath).split(path29.sep).join("/")
175057
+ normalizedPath: path30.relative(normalizedRoot, resolvedPath).split(path30.sep).join("/")
174968
175058
  };
174969
175059
  }
174970
175060
  function resolvePreviewEntryPath(rootPath, entryPath) {
174971
175061
  const { absolutePath, normalizedPath } = resolvePreviewPath(rootPath, entryPath ?? "index.html");
174972
- if (!fs24.existsSync(absolutePath) || !fs24.statSync(absolutePath).isFile()) {
175062
+ if (!fs25.existsSync(absolutePath) || !fs25.statSync(absolutePath).isFile()) {
174973
175063
  throw new Error("Preview entry not found");
174974
175064
  }
174975
175065
  return normalizedPath;
@@ -175071,7 +175161,7 @@ var MIME_MAP2 = {
175071
175161
  ".mdx": "text/markdown"
175072
175162
  };
175073
175163
  function getMime(filePath) {
175074
- return MIME_MAP2[path29.extname(filePath).toLowerCase()] ?? "application/octet-stream";
175164
+ return MIME_MAP2[path30.extname(filePath).toLowerCase()] ?? "application/octet-stream";
175075
175165
  }
175076
175166
  function escapeHtml(value) {
175077
175167
  return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
@@ -175373,14 +175463,14 @@ async function sendPreviewAssetResponse(sessionManager, token, requestedPath, re
175373
175463
  res.end("Invalid path");
175374
175464
  return;
175375
175465
  }
175376
- if (!fs24.existsSync(resolved) || !fs24.statSync(resolved).isFile()) {
175466
+ if (!fs25.existsSync(resolved) || !fs25.statSync(resolved).isFile()) {
175377
175467
  res.writeHead(404, { "Content-Type": "text/plain" });
175378
175468
  res.end("File not found");
175379
175469
  return;
175380
175470
  }
175381
- const ext = path29.extname(resolved).toLowerCase();
175471
+ const ext = path30.extname(resolved).toLowerCase();
175382
175472
  const mime = ext === ".md" || ext === ".mdx" ? "text/html" : getMime(resolved);
175383
- const content3 = ext === ".md" || ext === ".mdx" ? renderMarkdownDocument(fs24.readFileSync(resolved, "utf8"), path29.basename(resolved)) : fs24.readFileSync(resolved);
175473
+ const content3 = ext === ".md" || ext === ".mdx" ? renderMarkdownDocument(fs25.readFileSync(resolved, "utf8"), path30.basename(resolved)) : fs25.readFileSync(resolved);
175384
175474
  res.writeHead(200, {
175385
175475
  "Content-Type": mime,
175386
175476
  "Content-Length": content3.length,
@@ -175710,13 +175800,13 @@ function getLocalTaskOutputDownload(taskEngine, taskId, filePath) {
175710
175800
  const rootPath = getTaskOutputRoot(taskEngine, taskId);
175711
175801
  try {
175712
175802
  const absolutePath = resolveOutputPath(rootPath, filePath);
175713
- if (!fs25.existsSync(absolutePath) || !fs25.statSync(absolutePath).isFile()) {
175803
+ if (!fs26.existsSync(absolutePath) || !fs26.statSync(absolutePath).isFile()) {
175714
175804
  throw new MeshyError("TASK_NOT_FOUND", `File not found: ${filePath}`, 404);
175715
175805
  }
175716
175806
  const { mimeType } = classifyFile(absolutePath);
175717
- const fileName = path30.basename(absolutePath).replace(/"/g, "");
175807
+ const fileName = path31.basename(absolutePath).replace(/"/g, "");
175718
175808
  return {
175719
- content: fs25.readFileSync(absolutePath),
175809
+ content: fs26.readFileSync(absolutePath),
175720
175810
  headers: {
175721
175811
  "Content-Type": mimeType,
175722
175812
  "Content-Disposition": `inline; filename="${fileName}"`,
@@ -175802,8 +175892,8 @@ async function createNodePreviewSessionPayload(deps, nodeId, options, requestOri
175802
175892
 
175803
175893
  // ../../packages/api/src/node/capability-service.ts
175804
175894
  init_cjs_shims();
175805
- var fs26 = __toESM(require("fs"), 1);
175806
- var path31 = __toESM(require("path"), 1);
175895
+ var fs27 = __toESM(require("fs"), 1);
175896
+ var path32 = __toESM(require("path"), 1);
175807
175897
  function getCapabilityService(deps) {
175808
175898
  if (deps.capabilityService) return deps.capabilityService;
175809
175899
  deps.capabilityService = createDefaultCapabilityService({
@@ -175813,8 +175903,8 @@ function getCapabilityService(deps) {
175813
175903
  }
175814
175904
  function createKnownProjectPredicate(deps) {
175815
175905
  return (projectPath) => {
175816
- const resolved = path31.resolve(projectPath);
175817
- if (collectKnownProjectPaths(deps).has(resolved)) return fs26.existsSync(resolved);
175906
+ const resolved = path32.resolve(projectPath);
175907
+ if (collectKnownProjectPaths(deps).has(resolved)) return fs27.existsSync(resolved);
175818
175908
  const self2 = deps.nodeRegistry.getSelf();
175819
175909
  const workDir = self2.workDir ?? deps.workDir;
175820
175910
  if (!workDir) return false;
@@ -175829,15 +175919,15 @@ function collectKnownProjectPaths(deps) {
175829
175919
  const paths = /* @__PURE__ */ new Set();
175830
175920
  const workDir = self2.workDir ?? deps.workDir;
175831
175921
  if (workDir) {
175832
- const resolvedWorkDir = path31.resolve(workDir);
175922
+ const resolvedWorkDir = path32.resolve(workDir);
175833
175923
  paths.add(resolvedWorkDir);
175834
175924
  for (const folder of self2.workDirFolders ?? []) {
175835
- paths.add(path31.resolve(resolvedWorkDir, folder));
175925
+ paths.add(path32.resolve(resolvedWorkDir, folder));
175836
175926
  }
175837
175927
  }
175838
175928
  const tasks = safeListTasks(deps);
175839
175929
  for (const task of tasks) {
175840
- if (task.effectiveProjectPath) paths.add(path31.resolve(task.effectiveProjectPath));
175930
+ if (task.effectiveProjectPath) paths.add(path32.resolve(task.effectiveProjectPath));
175841
175931
  }
175842
175932
  return paths;
175843
175933
  }
@@ -175849,13 +175939,13 @@ function safeListTasks(deps) {
175849
175939
  }
175850
175940
  }
175851
175941
  function isPathInsideOrEqual(parentPath, childPath) {
175852
- const relative6 = path31.relative(parentPath, childPath);
175853
- return relative6 === "" || !!relative6 && !relative6.startsWith("..") && !path31.isAbsolute(relative6);
175942
+ const relative6 = path32.relative(parentPath, childPath);
175943
+ return relative6 === "" || !!relative6 && !relative6.startsWith("..") && !path32.isAbsolute(relative6);
175854
175944
  }
175855
175945
  function realpathExistingDirectory(value) {
175856
175946
  try {
175857
- if (!fs26.statSync(value).isDirectory()) return null;
175858
- return fs26.realpathSync(value);
175947
+ if (!fs27.statSync(value).isDirectory()) return null;
175948
+ return fs27.realpathSync(value);
175859
175949
  } catch {
175860
175950
  return null;
175861
175951
  }
@@ -178233,19 +178323,27 @@ function buildTaskListResult(tasks, nodeRegistry, options) {
178233
178323
  }
178234
178324
  const completedGroups = [];
178235
178325
  for (const group of completedByGroup.values()) {
178236
- const visibleCompleted = group.tasks.slice(0, completedLimit);
178237
- for (const task of visibleCompleted) {
178326
+ const previewCompleted = group.tasks.slice(0, completedLimit);
178327
+ const visibleCompletedIds = new Set(previewCompleted.map((task) => task.id));
178328
+ for (const task of group.tasks) {
178329
+ if (task.pinnedOnTop === true) {
178330
+ visibleCompletedIds.add(task.id);
178331
+ }
178332
+ }
178333
+ for (const task of group.tasks) {
178334
+ if (!visibleCompletedIds.has(task.id)) continue;
178238
178335
  visibleIds.add(task.id);
178239
178336
  }
178240
- const hasMore = group.tasks.length > visibleCompleted.length;
178337
+ const returned = visibleCompletedIds.size;
178338
+ const hasMore = group.tasks.length > returned;
178241
178339
  if (hasMore) {
178242
178340
  completedGroups.push({
178243
178341
  assignedTo: group.assignedTo,
178244
178342
  projectPath: group.projectPath,
178245
178343
  total: group.tasks.length,
178246
- returned: visibleCompleted.length,
178344
+ returned,
178247
178345
  hasMore,
178248
- nextCursor: visibleCompleted.length > 0 ? encodeCursor(visibleCompleted[visibleCompleted.length - 1]) : null
178346
+ nextCursor: previewCompleted.length > 0 ? encodeCursor(previewCompleted[previewCompleted.length - 1]) : null
178249
178347
  });
178250
178348
  }
178251
178349
  }
@@ -179525,8 +179623,8 @@ var import_express13 = __toESM(require_express2(), 1);
179525
179623
 
179526
179624
  // ../../packages/api/src/node/quick-chat-store.ts
179527
179625
  init_cjs_shims();
179528
- var fs27 = __toESM(require("fs"), 1);
179529
- var path32 = __toESM(require("path"), 1);
179626
+ var fs28 = __toESM(require("fs"), 1);
179627
+ var path33 = __toESM(require("path"), 1);
179530
179628
  var QUICK_CHATS_FILE = "quick-chats.json";
179531
179629
  var QUICK_CHAT_ALIAS_PATTERN = /^[a-z0-9][a-z0-9_-]{0,63}$/;
179532
179630
  function normalizeQuickChatAlias(value) {
@@ -179565,20 +179663,20 @@ var FileQuickChatStore = class {
179565
179663
  }
179566
179664
  replace(quickChats) {
179567
179665
  this.quickChats = normalizeQuickChats(quickChats);
179568
- fs27.mkdirSync(this.storagePath, { recursive: true });
179569
- fs27.writeFileSync(this.filePath, JSON.stringify({ quickChats: this.quickChats }, null, 2) + "\n", "utf8");
179666
+ fs28.mkdirSync(this.storagePath, { recursive: true });
179667
+ fs28.writeFileSync(this.filePath, JSON.stringify({ quickChats: this.quickChats }, null, 2) + "\n", "utf8");
179570
179668
  return this.list();
179571
179669
  }
179572
179670
  load() {
179573
179671
  try {
179574
- const parsed = JSON.parse(fs27.readFileSync(this.filePath, "utf8"));
179672
+ const parsed = JSON.parse(fs28.readFileSync(this.filePath, "utf8"));
179575
179673
  return normalizeQuickChats(parsed.quickChats);
179576
179674
  } catch {
179577
179675
  return [];
179578
179676
  }
179579
179677
  }
179580
179678
  get filePath() {
179581
- return path32.join(this.storagePath, QUICK_CHATS_FILE);
179679
+ return path33.join(this.storagePath, QUICK_CHATS_FILE);
179582
179680
  }
179583
179681
  };
179584
179682
  function createQuickChatStore(storagePath) {
@@ -180166,8 +180264,8 @@ function hasAuthorizationHeader(req) {
180166
180264
  function resolveRuntimeBaseDir() {
180167
180265
  const entryPath = process.argv[1];
180168
180266
  if (typeof entryPath === "string" && entryPath.length > 0) {
180169
- const resolved = fs28.realpathSync(path33.resolve(entryPath));
180170
- return path33.dirname(resolved);
180267
+ const resolved = fs29.realpathSync(path34.resolve(entryPath));
180268
+ return path34.dirname(resolved);
180171
180269
  }
180172
180270
  return process.cwd();
180173
180271
  }
@@ -180175,18 +180273,18 @@ function resolveStaticDir(baseDir) {
180175
180273
  const envStaticDir = process.env.MESHY_STATIC_DIR;
180176
180274
  const candidateDirs = [
180177
180275
  envStaticDir,
180178
- path33.resolve(baseDir, "dashboard"),
180179
- path33.resolve(baseDir, "../dashboard"),
180180
- path33.resolve(baseDir, "../../dashboard/dist"),
180181
- path33.resolve(baseDir, "../../../packages/dashboard/dist"),
180182
- path33.resolve(baseDir, "../public"),
180183
- path33.resolve(baseDir, "../../packages/api/public"),
180184
- path33.resolve(baseDir, "../../../packages/api/public"),
180185
- path33.resolve(process.cwd(), "packages/dashboard/dist"),
180186
- path33.resolve(process.cwd(), "packages/api/public")
180276
+ path34.resolve(baseDir, "dashboard"),
180277
+ path34.resolve(baseDir, "../dashboard"),
180278
+ path34.resolve(baseDir, "../../dashboard/dist"),
180279
+ path34.resolve(baseDir, "../../../packages/dashboard/dist"),
180280
+ path34.resolve(baseDir, "../public"),
180281
+ path34.resolve(baseDir, "../../packages/api/public"),
180282
+ path34.resolve(baseDir, "../../../packages/api/public"),
180283
+ path34.resolve(process.cwd(), "packages/dashboard/dist"),
180284
+ path34.resolve(process.cwd(), "packages/api/public")
180187
180285
  ].filter((value) => typeof value === "string" && value.length > 0);
180188
180286
  for (const candidate of candidateDirs) {
180189
- if (fs28.existsSync(candidate)) {
180287
+ if (fs29.existsSync(candidate)) {
180190
180288
  return candidate;
180191
180289
  }
180192
180290
  }
@@ -180238,7 +180336,7 @@ function createServer2(deps) {
180238
180336
  shouldLog: (req) => isApiRequest(req) || isPreviewRequest(req),
180239
180337
  throttle: {
180240
180338
  intervalMs: REQUEST_LOGGING_THROTTLE_MS,
180241
- shouldThrottle: (req, res, closed, path47) => !closed && res.statusCode < 400 && isThrottledRequestLoggingRoute(req.method, path47)
180339
+ shouldThrottle: (req, res, closed, path48) => !closed && res.statusCode < 400 && isThrottledRequestLoggingRoute(req.method, path48)
180242
180340
  }
180243
180341
  }));
180244
180342
  app.use(createRequestTelemetryMiddleware(deps.telemetry ?? createNoopTelemetry(), {
@@ -180330,8 +180428,8 @@ function createServer2(deps) {
180330
180428
  app.use("/api/telemetry", createTelemetryRoutes());
180331
180429
  app.use("/api/events", createEventRoutes());
180332
180430
  if (staticDir) {
180333
- const indexPath = path33.join(staticDir, "index.html");
180334
- if (fs28.existsSync(indexPath)) {
180431
+ const indexPath = path34.join(staticDir, "index.html");
180432
+ if (fs29.existsSync(indexPath)) {
180335
180433
  app.get("*", (req, res, next2) => {
180336
180434
  if (isApiRequest(req)) {
180337
180435
  next2();
@@ -180438,10 +180536,10 @@ init_cjs_shims();
180438
180536
 
180439
180537
  // ../../packages/transport/src/direct.ts
180440
180538
  init_cjs_shims();
180441
- var import_node_os4 = require("os");
180539
+ var import_node_os5 = require("os");
180442
180540
  var import_node_http2 = require("http");
180443
180541
  function detectLocalIp() {
180444
- const nets = (0, import_node_os4.networkInterfaces)();
180542
+ const nets = (0, import_node_os5.networkInterfaces)();
180445
180543
  for (const entries of Object.values(nets)) {
180446
180544
  if (!entries) continue;
180447
180545
  for (const entry of entries) {
@@ -180505,8 +180603,8 @@ var DirectTransport = class {
180505
180603
  // ../../packages/transport/src/devtunnel.ts
180506
180604
  init_cjs_shims();
180507
180605
  var import_node_child_process12 = require("child_process");
180508
- var fs29 = __toESM(require("fs"), 1);
180509
- var path34 = __toESM(require("path"), 1);
180606
+ var fs30 = __toESM(require("fs"), 1);
180607
+ var path35 = __toESM(require("path"), 1);
180510
180608
  function hiddenPipeOptions() {
180511
180609
  return { stdio: "pipe", windowsHide: true };
180512
180610
  }
@@ -180518,8 +180616,8 @@ function hiddenTextOptions() {
180518
180616
  }
180519
180617
  var DEV_TUNNEL_COMMAND_ENV = "MESHY_DEVTUNNEL_PATH";
180520
180618
  function isInstalled(cmd) {
180521
- if (path34.isAbsolute(cmd)) {
180522
- return fs29.existsSync(cmd);
180619
+ if (path35.isAbsolute(cmd)) {
180620
+ return fs30.existsSync(cmd);
180523
180621
  }
180524
180622
  try {
180525
180623
  (0, import_node_child_process12.execFileSync)(process.platform === "win32" ? "where.exe" : "which", [cmd], hiddenPipeOptions());
@@ -180538,17 +180636,17 @@ function normalizeConfiguredCommand(value) {
180538
180636
  function windowsLocalAppDataRoots() {
180539
180637
  const roots = [
180540
180638
  process.env.LOCALAPPDATA,
180541
- process.env.USERPROFILE ? path34.join(process.env.USERPROFILE, "AppData", "Local") : void 0
180639
+ process.env.USERPROFILE ? path35.join(process.env.USERPROFILE, "AppData", "Local") : void 0
180542
180640
  ].filter((value) => Boolean(value));
180543
- return [...new Set(roots.map((root7) => path34.resolve(root7)))];
180641
+ return [...new Set(roots.map((root7) => path35.resolve(root7)))];
180544
180642
  }
180545
180643
  function findWindowsDevTunnelPackageExecutable() {
180546
180644
  const candidates = [];
180547
180645
  for (const localAppData of windowsLocalAppDataRoots()) {
180548
- const packageRoot = path34.join(localAppData, "Microsoft", "WinGet", "Packages");
180646
+ const packageRoot = path35.join(localAppData, "Microsoft", "WinGet", "Packages");
180549
180647
  let entries;
180550
180648
  try {
180551
- entries = fs29.readdirSync(packageRoot, { withFileTypes: true });
180649
+ entries = fs30.readdirSync(packageRoot, { withFileTypes: true });
180552
180650
  } catch {
180553
180651
  continue;
180554
180652
  }
@@ -180556,8 +180654,8 @@ function findWindowsDevTunnelPackageExecutable() {
180556
180654
  if (!entry.isDirectory() || !entry.name.toLowerCase().startsWith("microsoft.devtunnel_")) {
180557
180655
  continue;
180558
180656
  }
180559
- const executable = path34.join(packageRoot, entry.name, "devtunnel.exe");
180560
- if (fs29.existsSync(executable)) {
180657
+ const executable = path35.join(packageRoot, entry.name, "devtunnel.exe");
180658
+ if (fs30.existsSync(executable)) {
180561
180659
  candidates.push(executable);
180562
180660
  }
180563
180661
  }
@@ -180939,13 +181037,13 @@ var terminalWriter = {
180939
181037
  };
180940
181038
 
180941
181039
  // src/startup.ts
180942
- var fs31 = __toESM(require("fs"), 1);
181040
+ var fs32 = __toESM(require("fs"), 1);
180943
181041
  var readline2 = __toESM(require("readline/promises"), 1);
180944
181042
 
180945
181043
  // src/startup-tools/index.ts
180946
181044
  init_cjs_shims();
180947
- var fs30 = __toESM(require("fs"), 1);
180948
- var path35 = __toESM(require("path"), 1);
181045
+ var fs31 = __toESM(require("fs"), 1);
181046
+ var path36 = __toESM(require("path"), 1);
180949
181047
  var readline = __toESM(require("readline/promises"), 1);
180950
181048
  var import_node_child_process13 = require("child_process");
180951
181049
  var STARTUP_REQUIREMENTS = ["az", "devtunnel", "claude", "codex", "copilot"];
@@ -181010,19 +181108,19 @@ function createDefaultCommandRunner(platform6) {
181010
181108
  };
181011
181109
  }
181012
181110
  function getNodeMetadataPath2(storagePath) {
181013
- return path35.join(storagePath, "metadata.json");
181111
+ return path36.join(storagePath, "metadata.json");
181014
181112
  }
181015
181113
  function readStartupMetadataFile(storagePath) {
181016
181114
  try {
181017
- const raw3 = JSON.parse(fs30.readFileSync(getNodeMetadataPath2(storagePath), "utf-8"));
181115
+ const raw3 = JSON.parse(fs31.readFileSync(getNodeMetadataPath2(storagePath), "utf-8"));
181018
181116
  return typeof raw3 === "object" && raw3 !== null ? raw3 : {};
181019
181117
  } catch {
181020
181118
  return {};
181021
181119
  }
181022
181120
  }
181023
181121
  function writeStartupMetadataFile(storagePath, metadata) {
181024
- fs30.mkdirSync(storagePath, { recursive: true });
181025
- fs30.writeFileSync(getNodeMetadataPath2(storagePath), JSON.stringify(metadata, null, 2) + "\n", "utf-8");
181122
+ fs31.mkdirSync(storagePath, { recursive: true });
181123
+ fs31.writeFileSync(getNodeMetadataPath2(storagePath), JSON.stringify(metadata, null, 2) + "\n", "utf-8");
181026
181124
  }
181027
181125
  function formatLocalDate2(now) {
181028
181126
  const year = now.getFullYear();
@@ -181527,9 +181625,9 @@ function createRuntimeDefaultConfig(fileConfig, options = {}) {
181527
181625
  else if (isDevBoxEnvironment()) config2.node.devbox = { enabled: true };
181528
181626
  return config2;
181529
181627
  }
181530
- function loadConfigFile(path47) {
181628
+ function loadConfigFile(path48) {
181531
181629
  try {
181532
- const raw3 = fs31.readFileSync(path47, "utf-8");
181630
+ const raw3 = fs32.readFileSync(path48, "utf-8");
181533
181631
  return JSON.parse(raw3);
181534
181632
  } catch {
181535
181633
  return {};
@@ -181709,26 +181807,26 @@ function formatLoadedStartMetadata(info, authEnabled) {
181709
181807
 
181710
181808
  // src/runtime-metadata.ts
181711
181809
  init_cjs_shims();
181712
- var fs32 = __toESM(require("fs"), 1);
181713
- var path36 = __toESM(require("path"), 1);
181810
+ var fs33 = __toESM(require("fs"), 1);
181811
+ var path37 = __toESM(require("path"), 1);
181714
181812
  var import_node_child_process14 = require("child_process");
181715
181813
  var runtimeDir = resolveRuntimeDir();
181716
181814
  var appRoot = resolveAppRoot(runtimeDir);
181717
- var repoRoot = path36.resolve(appRoot, "../..");
181815
+ var repoRoot = path37.resolve(appRoot, "../..");
181718
181816
  function resolveRuntimeDir() {
181719
181817
  const entryPath = process.argv[1];
181720
181818
  if (typeof entryPath === "string" && entryPath.length > 0) {
181721
181819
  try {
181722
- return path36.dirname(fs32.realpathSync(path36.resolve(entryPath)));
181820
+ return path37.dirname(fs33.realpathSync(path37.resolve(entryPath)));
181723
181821
  } catch {
181724
- return path36.dirname(path36.resolve(entryPath));
181822
+ return path37.dirname(path37.resolve(entryPath));
181725
181823
  }
181726
181824
  }
181727
181825
  return process.cwd();
181728
181826
  }
181729
181827
  function readJsonFile(filePath) {
181730
181828
  try {
181731
- return JSON.parse(fs32.readFileSync(filePath, "utf-8"));
181829
+ return JSON.parse(fs33.readFileSync(filePath, "utf-8"));
181732
181830
  } catch {
181733
181831
  return null;
181734
181832
  }
@@ -181738,9 +181836,9 @@ function readPackageManifest(filePath) {
181738
181836
  }
181739
181837
  function readEmbeddedRuntimeMetadata() {
181740
181838
  const candidates = [
181741
- path36.join(appRoot, "runtime-metadata.json"),
181742
- path36.join(runtimeDir, "runtime-metadata.json"),
181743
- path36.resolve(process.cwd(), "apps/node/dist/runtime-metadata.json")
181839
+ path37.join(appRoot, "runtime-metadata.json"),
181840
+ path37.join(runtimeDir, "runtime-metadata.json"),
181841
+ path37.resolve(process.cwd(), "apps/node/dist/runtime-metadata.json")
181744
181842
  ];
181745
181843
  for (const candidate of candidates) {
181746
181844
  const metadata = readJsonFile(candidate);
@@ -181753,23 +181851,23 @@ function readEmbeddedRuntimeMetadata() {
181753
181851
  function resolveAppRoot(baseDir) {
181754
181852
  const candidates = [
181755
181853
  baseDir,
181756
- path36.resolve(baseDir, ".."),
181757
- path36.resolve(process.cwd(), "apps/node/dist"),
181758
- path36.resolve(process.cwd(), "apps/node"),
181854
+ path37.resolve(baseDir, ".."),
181855
+ path37.resolve(process.cwd(), "apps/node/dist"),
181856
+ path37.resolve(process.cwd(), "apps/node"),
181759
181857
  process.cwd()
181760
181858
  ];
181761
181859
  for (const candidate of candidates) {
181762
- const manifest = readPackageManifest(path36.join(candidate, "package.json"));
181860
+ const manifest = readPackageManifest(path37.join(candidate, "package.json"));
181763
181861
  if (manifest?.name === "@meshy/node" || manifest?.name === "meshy-node") {
181764
181862
  return candidate;
181765
181863
  }
181766
181864
  }
181767
181865
  for (const candidate of candidates) {
181768
- if (fs32.existsSync(path36.join(candidate, "package.json"))) {
181866
+ if (fs33.existsSync(path37.join(candidate, "package.json"))) {
181769
181867
  return candidate;
181770
181868
  }
181771
181869
  }
181772
- return path36.resolve(baseDir, "..");
181870
+ return path37.resolve(baseDir, "..");
181773
181871
  }
181774
181872
  function toPackageInfo(filePath) {
181775
181873
  const manifest = readPackageManifest(filePath);
@@ -181829,8 +181927,8 @@ function buildRuntimeMetadata(storagePath) {
181829
181927
  components: startupRequirements.components
181830
181928
  };
181831
181929
  }
181832
- const appPackage = toPackageInfo(path36.join(appRoot, "package.json"));
181833
- const workspaceManifest = readPackageManifest(path36.join(repoRoot, "package.json"));
181930
+ const appPackage = toPackageInfo(path37.join(appRoot, "package.json"));
181931
+ const workspaceManifest = readPackageManifest(path37.join(repoRoot, "package.json"));
181834
181932
  return {
181835
181933
  packageName: appPackage?.name ?? "meshy",
181836
181934
  packageVersion: appPackage?.version ?? "0.1.0",
@@ -181838,11 +181936,11 @@ function buildRuntimeMetadata(storagePath) {
181838
181936
  startupRequirementsLastCheckedOn: startupRequirements.lastCheckedOn,
181839
181937
  components: startupRequirements.components,
181840
181938
  packages: {
181841
- workspace: toPackageInfo(path36.join(repoRoot, "package.json")),
181939
+ workspace: toPackageInfo(path37.join(repoRoot, "package.json")),
181842
181940
  node: appPackage,
181843
- core: toPackageInfo(path36.join(repoRoot, "packages/core/package.json")),
181844
- dashboard: toPackageInfo(path36.join(repoRoot, "packages/dashboard/package.json")),
181845
- api: toPackageInfo(path36.join(repoRoot, "packages/api/package.json"))
181941
+ core: toPackageInfo(path37.join(repoRoot, "packages/core/package.json")),
181942
+ dashboard: toPackageInfo(path37.join(repoRoot, "packages/dashboard/package.json")),
181943
+ api: toPackageInfo(path37.join(repoRoot, "packages/api/package.json"))
181846
181944
  },
181847
181945
  repository: {
181848
181946
  url: normalizeRepositoryUrl(readGitValue(["config", "--get", "remote.upstream.url"])) ?? normalizeRepositoryUrl(readGitValue(["config", "--get", "remote.origin.url"])) ?? readRepositoryUrlFromManifest(workspaceManifest),
@@ -181919,7 +182017,7 @@ function printMobilePairingQr(writer, pairing) {
181919
182017
 
181920
182018
  // src/bootstrap/runtime-restart.ts
181921
182019
  init_cjs_shims();
181922
- var fs33 = __toESM(require("fs"), 1);
182020
+ var fs34 = __toESM(require("fs"), 1);
181923
182021
  var nodePath2 = __toESM(require("path"), 1);
181924
182022
  var import_node_child_process15 = require("child_process");
181925
182023
  var RUNTIME_UPDATE_CHECK_INTERVAL_MS = 6 * 60 * 60 * 1e3;
@@ -182163,8 +182261,8 @@ function createRuntimeRestartLaunchPlan(options) {
182163
182261
  };
182164
182262
  }
182165
182263
  function scheduleRuntimeRestart(plan, options = {}) {
182166
- fs33.mkdirSync(nodePath2.dirname(plan.logPath), { recursive: true });
182167
- const logFd = fs33.openSync(plan.logPath, "a");
182264
+ fs34.mkdirSync(nodePath2.dirname(plan.logPath), { recursive: true });
182265
+ const logFd = fs34.openSync(plan.logPath, "a");
182168
182266
  const spawnImpl = options.spawnImpl ?? import_node_child_process15.spawn;
182169
182267
  const env4 = {
182170
182268
  ...process.env,
@@ -182620,27 +182718,27 @@ init_esm8();
182620
182718
 
182621
182719
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/shared/logging/diagFileConsoleLogger.js
182622
182720
  init_cjs_shims();
182623
- var import_node_fs2 = __toESM(require("fs"), 1);
182624
- var import_node_os5 = __toESM(require("os"), 1);
182625
- var import_node_path3 = __toESM(require("path"), 1);
182721
+ var import_node_fs3 = __toESM(require("fs"), 1);
182722
+ var import_node_os6 = __toESM(require("os"), 1);
182723
+ var import_node_path4 = __toESM(require("path"), 1);
182626
182724
 
182627
182725
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/utils/index.js
182628
182726
  init_cjs_shims();
182629
182727
 
182630
182728
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/utils/fileSystem.js
182631
182729
  init_cjs_shims();
182632
- var import_node_fs = __toESM(require("fs"), 1);
182633
- var import_node_path2 = __toESM(require("path"), 1);
182730
+ var import_node_fs2 = __toESM(require("fs"), 1);
182731
+ var import_node_path3 = __toESM(require("path"), 1);
182634
182732
  var import_node_util3 = require("util");
182635
- var statAsync = (0, import_node_util3.promisify)(import_node_fs.default.stat);
182636
- var lstatAsync = (0, import_node_util3.promisify)(import_node_fs.default.lstat);
182637
- var mkdirAsync = (0, import_node_util3.promisify)(import_node_fs.default.mkdir);
182638
- var accessAsync = (0, import_node_util3.promisify)(import_node_fs.default.access);
182639
- var appendFileAsync = (0, import_node_util3.promisify)(import_node_fs.default.appendFile);
182640
- var writeFileAsync = (0, import_node_util3.promisify)(import_node_fs.default.writeFile);
182641
- var readFileAsync = (0, import_node_util3.promisify)(import_node_fs.default.readFile);
182642
- var readdirAsync = (0, import_node_util3.promisify)(import_node_fs.default.readdir);
182643
- var unlinkAsync = (0, import_node_util3.promisify)(import_node_fs.default.unlink);
182733
+ var statAsync = (0, import_node_util3.promisify)(import_node_fs2.default.stat);
182734
+ var lstatAsync = (0, import_node_util3.promisify)(import_node_fs2.default.lstat);
182735
+ var mkdirAsync = (0, import_node_util3.promisify)(import_node_fs2.default.mkdir);
182736
+ var accessAsync = (0, import_node_util3.promisify)(import_node_fs2.default.access);
182737
+ var appendFileAsync = (0, import_node_util3.promisify)(import_node_fs2.default.appendFile);
182738
+ var writeFileAsync = (0, import_node_util3.promisify)(import_node_fs2.default.writeFile);
182739
+ var readFileAsync = (0, import_node_util3.promisify)(import_node_fs2.default.readFile);
182740
+ var readdirAsync = (0, import_node_util3.promisify)(import_node_fs2.default.readdir);
182741
+ var unlinkAsync = (0, import_node_util3.promisify)(import_node_fs2.default.unlink);
182644
182742
  var confirmDirExists = async (directory) => {
182645
182743
  try {
182646
182744
  const stats = await lstatAsync(directory);
@@ -182680,7 +182778,7 @@ init_cjs_shims();
182680
182778
 
182681
182779
  // ../../node_modules/.pnpm/@opentelemetry+resource-detector-azure@0.25.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resource-detector-azure/build/esm/detectors/AzureAksDetector.js
182682
182780
  init_cjs_shims();
182683
- var fs40 = __toESM(require("fs"));
182781
+ var fs41 = __toESM(require("fs"));
182684
182782
  init_esm8();
182685
182783
 
182686
182784
  // ../../node_modules/.pnpm/@opentelemetry+resource-detector-azure@0.25.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resource-detector-azure/build/esm/semconv.js
@@ -182780,10 +182878,10 @@ var AzureAksDetector = class {
182780
182878
  }
182781
182879
  getAksMetadataFromFile() {
182782
182880
  try {
182783
- if (!fs40.existsSync(AKS_METADATA_FILE_PATH)) {
182881
+ if (!fs41.existsSync(AKS_METADATA_FILE_PATH)) {
182784
182882
  return void 0;
182785
182883
  }
182786
- const content3 = fs40.readFileSync(AKS_METADATA_FILE_PATH, "utf8");
182884
+ const content3 = fs41.readFileSync(AKS_METADATA_FILE_PATH, "utf8");
182787
182885
  const metadata = {};
182788
182886
  const lines = content3.split("\n");
182789
182887
  for (const line of lines) {
@@ -183129,15 +183227,15 @@ var DiagFileConsoleLogger = class {
183129
183227
  this._logFileName = "applicationinsights.log";
183130
183228
  const logFilePath = process.env.APPLICATIONINSIGHTS_LOGDIR;
183131
183229
  if (!logFilePath) {
183132
- this._tempDir = import_node_path3.default.join(import_node_os5.default.tmpdir(), "appInsights-node");
183230
+ this._tempDir = import_node_path4.default.join(import_node_os6.default.tmpdir(), "appInsights-node");
183133
183231
  } else {
183134
- if (import_node_path3.default.isAbsolute(logFilePath)) {
183232
+ if (import_node_path4.default.isAbsolute(logFilePath)) {
183135
183233
  this._tempDir = logFilePath;
183136
183234
  } else {
183137
- this._tempDir = import_node_path3.default.join(process.cwd(), logFilePath);
183235
+ this._tempDir = import_node_path4.default.join(process.cwd(), logFilePath);
183138
183236
  }
183139
183237
  }
183140
- this._fileFullPath = import_node_path3.default.join(this._tempDir, this._logFileName);
183238
+ this._fileFullPath = import_node_path4.default.join(this._tempDir, this._logFileName);
183141
183239
  this._backUpNameFormat = `.${this._logFileName}`;
183142
183240
  if (this._logToFile) {
183143
183241
  if (!this._fileCleanupTimer) {
@@ -183270,7 +183368,7 @@ var DiagFileConsoleLogger = class {
183270
183368
  return;
183271
183369
  }
183272
183370
  try {
183273
- await accessAsync(this._fileFullPath, import_node_fs2.default.constants.F_OK);
183371
+ await accessAsync(this._fileFullPath, import_node_fs3.default.constants.F_OK);
183274
183372
  } catch (err) {
183275
183373
  try {
183276
183374
  await appendFileAsync(this._fileFullPath, data);
@@ -183289,7 +183387,7 @@ var DiagFileConsoleLogger = class {
183289
183387
  async _createBackupFile(data) {
183290
183388
  try {
183291
183389
  const buffer = await readFileAsync(this._fileFullPath);
183292
- const backupPath = import_node_path3.default.join(this._tempDir, `${(/* @__PURE__ */ new Date()).getTime()}.${this._logFileName}`);
183390
+ const backupPath = import_node_path4.default.join(this._tempDir, `${(/* @__PURE__ */ new Date()).getTime()}.${this._logFileName}`);
183293
183391
  await writeFileAsync(backupPath, buffer);
183294
183392
  } catch (err) {
183295
183393
  console.log("Failed to generate backup log file", err);
@@ -183300,7 +183398,7 @@ var DiagFileConsoleLogger = class {
183300
183398
  async _fileCleanupTask() {
183301
183399
  try {
183302
183400
  let files = await readdirAsync(this._tempDir);
183303
- files = files.filter((f) => import_node_path3.default.basename(f).indexOf(this._backUpNameFormat) > -1);
183401
+ files = files.filter((f) => import_node_path4.default.basename(f).indexOf(this._backUpNameFormat) > -1);
183304
183402
  files.sort((a, b) => {
183305
183403
  const aCreationDate = new Date(parseInt(a.split(this._backUpNameFormat)[0]));
183306
183404
  const bCreationDate = new Date(parseInt(b.split(this._backUpNameFormat)[0]));
@@ -183312,7 +183410,7 @@ var DiagFileConsoleLogger = class {
183312
183410
  });
183313
183411
  const totalFiles = files.length;
183314
183412
  for (let i = 0; i < totalFiles - this._maxHistory; i++) {
183315
- const pathToDelete = import_node_path3.default.join(this._tempDir, files[i]);
183413
+ const pathToDelete = import_node_path4.default.join(this._tempDir, files[i]);
183316
183414
  await unlinkAsync(pathToDelete);
183317
183415
  }
183318
183416
  } catch (err) {
@@ -183567,13 +183665,13 @@ var EnvConfig = class _EnvConfig {
183567
183665
 
183568
183666
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/shared/jsonConfig.js
183569
183667
  init_cjs_shims();
183570
- var import_node_fs3 = __toESM(require("fs"), 1);
183571
- var import_node_path5 = __toESM(require("path"), 1);
183668
+ var import_node_fs4 = __toESM(require("fs"), 1);
183669
+ var import_node_path6 = __toESM(require("path"), 1);
183572
183670
 
183573
183671
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/shared/module.js
183574
183672
  init_cjs_shims();
183575
183673
  var import_node_module2 = require("module");
183576
- var import_node_path4 = require("path");
183674
+ var import_node_path5 = require("path");
183577
183675
  var import_node_url2 = require("url");
183578
183676
  function loadAzureFunctionCore() {
183579
183677
  try {
@@ -183583,7 +183681,7 @@ function loadAzureFunctionCore() {
183583
183681
  }
183584
183682
  }
183585
183683
  function dirName() {
183586
- return (0, import_node_path4.dirname)((0, import_node_url2.fileURLToPath)(importMetaUrl));
183684
+ return (0, import_node_path5.dirname)((0, import_node_url2.fileURLToPath)(importMetaUrl));
183587
183685
  }
183588
183686
 
183589
183687
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/shared/jsonConfig.js
@@ -183629,18 +183727,18 @@ var JsonConfig = class _JsonConfig {
183629
183727
  jsonString = contentJsonConfig;
183630
183728
  } else {
183631
183729
  const configFileName = "applicationinsights.json";
183632
- const rootPath = import_node_path5.default.join(dirName(), "../../../");
183633
- this._tempDir = import_node_path5.default.join(rootPath, configFileName);
183730
+ const rootPath = import_node_path6.default.join(dirName(), "../../../");
183731
+ this._tempDir = import_node_path6.default.join(rootPath, configFileName);
183634
183732
  const configFile = process.env[ENV_CONFIGURATION_FILE];
183635
183733
  if (configFile) {
183636
- if (import_node_path5.default.isAbsolute(configFile)) {
183734
+ if (import_node_path6.default.isAbsolute(configFile)) {
183637
183735
  this._tempDir = configFile;
183638
183736
  } else {
183639
- this._tempDir = import_node_path5.default.join(rootPath, configFile);
183737
+ this._tempDir = import_node_path6.default.join(rootPath, configFile);
183640
183738
  }
183641
183739
  }
183642
183740
  try {
183643
- jsonString = import_node_fs3.default.readFileSync(this._tempDir, "utf8");
183741
+ jsonString = import_node_fs4.default.readFileSync(this._tempDir, "utf8");
183644
183742
  } catch (err) {
183645
183743
  Logger3.getInstance().info("Failed to read JSON config file: ", err);
183646
183744
  }
@@ -185167,9 +185265,9 @@ function getNetPeerPort2(attributes) {
185167
185265
  }
185168
185266
 
185169
185267
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/metrics/utils.js
185170
- var import_node_os10 = __toESM(require("os"), 1);
185268
+ var import_node_os11 = __toESM(require("os"), 1);
185171
185269
  var import_node_process7 = __toESM(require("process"), 1);
185172
- var import_node_fs6 = require("fs");
185270
+ var import_node_fs7 = require("fs");
185173
185271
  function getRequestDimensions(span) {
185174
185272
  const dimensions = getBaseDimensions(span.resource);
185175
185273
  dimensions.metricId = StandardMetricIds.REQUEST_DURATION;
@@ -185264,7 +185362,7 @@ function convertDimensions(dimensions) {
185264
185362
  function readAvailableMemory() {
185265
185363
  if (import_node_process7.default.platform === "linux") {
185266
185364
  try {
185267
- const contents = (0, import_node_fs6.readFileSync)("/proc/meminfo", "utf8");
185365
+ const contents = (0, import_node_fs7.readFileSync)("/proc/meminfo", "utf8");
185268
185366
  const match = contents.match(/^MemAvailable:\s+(\d+)\s+kB$/m);
185269
185367
  if (match) {
185270
185368
  return parseInt(match[1], 10) * 1024;
@@ -185272,7 +185370,7 @@ function readAvailableMemory() {
185272
185370
  } catch {
185273
185371
  }
185274
185372
  }
185275
- return import_node_os10.default.freemem();
185373
+ return import_node_os11.default.freemem();
185276
185374
  }
185277
185375
  function getPhysicalMemory() {
185278
185376
  if (import_node_process7.default?.memoryUsage) {
@@ -185283,7 +185381,7 @@ function getPhysicalMemory() {
185283
185381
  }
185284
185382
  }
185285
185383
  function getProcessorTimeNormalized(lastHrTime, lastCpuUsage) {
185286
- let numCpus = import_node_os10.default.cpus().length;
185384
+ let numCpus = import_node_os11.default.cpus().length;
185287
185385
  const usageDif = import_node_process7.default.cpuUsage(lastCpuUsage);
185288
185386
  const elapsedTimeNs = import_node_process7.default.hrtime.bigint() - lastHrTime;
185289
185387
  const usageDifMs = (usageDif.user + usageDif.system) / 1e3;
@@ -185345,7 +185443,7 @@ function getCloudRoleInstance2(resource) {
185345
185443
  if (serviceInstanceId) {
185346
185444
  return String(serviceInstanceId);
185347
185445
  }
185348
- return import_node_os10.default && import_node_os10.default.hostname();
185446
+ return import_node_os11.default && import_node_os11.default.hostname();
185349
185447
  }
185350
185448
 
185351
185449
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/metrics/standardMetrics.js
@@ -185471,7 +185569,7 @@ var StandardMetrics = class {
185471
185569
 
185472
185570
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/metrics/quickpulse/liveMetrics.js
185473
185571
  init_cjs_shims();
185474
- var import_node_os11 = __toESM(require("os"), 1);
185572
+ var import_node_os12 = __toESM(require("os"), 1);
185475
185573
  init_esm30();
185476
185574
  init_esm8();
185477
185575
 
@@ -185909,13 +186007,13 @@ function normalizeUnreserved(uri) {
185909
186007
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/generated/api/operations.js
185910
186008
  init_esm32();
185911
186009
  function _publishSend(context4, ikey, options = { requestOptions: {} }) {
185912
- const path47 = expandUrlTemplate("/QuickPulseService.svc/post{?api%2Dversion,ikey}", {
186010
+ const path48 = expandUrlTemplate("/QuickPulseService.svc/post{?api%2Dversion,ikey}", {
185913
186011
  "api%2Dversion": context4.apiVersion ?? "2024-04-01-preview",
185914
186012
  ikey
185915
186013
  }, {
185916
186014
  allowReserved: options?.requestOptions?.skipUrlEncoding
185917
186015
  });
185918
- return context4.path(path47).post({
186016
+ return context4.path(path48).post({
185919
186017
  ...operationOptionsToRequestParameters2(options),
185920
186018
  contentType: "application/json",
185921
186019
  headers: {
@@ -185941,13 +186039,13 @@ async function publish(context4, ikey, options = { requestOptions: {} }) {
185941
186039
  return _publishDeserialize(result);
185942
186040
  }
185943
186041
  function _isSubscribedSend(context4, ikey, options = { requestOptions: {} }) {
185944
- const path47 = expandUrlTemplate("/QuickPulseService.svc/ping{?api%2Dversion,ikey}", {
186042
+ const path48 = expandUrlTemplate("/QuickPulseService.svc/ping{?api%2Dversion,ikey}", {
185945
186043
  "api%2Dversion": context4.apiVersion ?? "2024-04-01-preview",
185946
186044
  ikey
185947
186045
  }, {
185948
186046
  allowReserved: options?.requestOptions?.skipUrlEncoding
185949
186047
  });
185950
- return context4.path(path47).post({
186048
+ return context4.path(path48).post({
185951
186049
  ...operationOptionsToRequestParameters2(options),
185952
186050
  contentType: "application/json",
185953
186051
  headers: {
@@ -186881,7 +186979,7 @@ var LiveMetrics = class {
186881
186979
  this.config = config2;
186882
186980
  const idGenerator = new RandomIdGenerator2();
186883
186981
  const streamId = idGenerator.generateTraceId();
186884
- const machineName = import_node_os11.default.hostname();
186982
+ const machineName = import_node_os12.default.hostname();
186885
186983
  const instance3 = getCloudRoleInstance2(this.config.resource);
186886
186984
  const roleName = getCloudRole2(this.config.resource);
186887
186985
  const version3 = getSdkVersion();
@@ -187449,7 +187547,7 @@ var LiveMetrics = class {
187449
187547
 
187450
187548
  // ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/metrics/performanceCounters.js
187451
187549
  init_cjs_shims();
187452
- var import_node_os12 = __toESM(require("os"), 1);
187550
+ var import_node_os13 = __toESM(require("os"), 1);
187453
187551
  init_esm8();
187454
187552
  init_esm30();
187455
187553
  init_esm11();
@@ -187492,8 +187590,8 @@ var PerformanceCounterMetrics = class {
187492
187590
  */
187493
187591
  constructor(config2, options) {
187494
187592
  this.internalConfig = config2;
187495
- this.lastCpus = import_node_os12.default.cpus();
187496
- this.lastCpusProcess = import_node_os12.default.cpus();
187593
+ this.lastCpus = import_node_os13.default.cpus();
187594
+ this.lastCpusProcess = import_node_os13.default.cpus();
187497
187595
  this.lastAppCpuUsage = import_node_process8.default.cpuUsage();
187498
187596
  this.lastHrtime = import_node_process8.default.hrtime();
187499
187597
  this.lastRequestRate = {
@@ -187660,7 +187758,7 @@ var PerformanceCounterMetrics = class {
187660
187758
  };
187661
187759
  }
187662
187760
  getProcessorTime(observableResult) {
187663
- const cpus2 = import_node_os12.default.cpus();
187761
+ const cpus2 = import_node_os13.default.cpus();
187664
187762
  if (cpus2 && cpus2.length && this.lastCpus && cpus2.length === this.lastCpus.length) {
187665
187763
  const cpuTotals = this.getTotalCombinedCpu(cpus2, this.lastCpus);
187666
187764
  const value = cpuTotals.combinedTotal > 0 ? (cpuTotals.combinedTotal - cpuTotals.totalIdle) / cpuTotals.combinedTotal * 100 : 0;
@@ -187669,7 +187767,7 @@ var PerformanceCounterMetrics = class {
187669
187767
  this.lastCpus = cpus2;
187670
187768
  }
187671
187769
  getNormalizedProcessTime(observableResult) {
187672
- const cpus2 = import_node_os12.default.cpus();
187770
+ const cpus2 = import_node_os13.default.cpus();
187673
187771
  if (cpus2 && cpus2.length && this.lastCpusProcess && cpus2.length === this.lastCpusProcess.length) {
187674
187772
  let appCpuPercent = void 0;
187675
187773
  const appCpuUsage = import_node_process8.default.cpuUsage();
@@ -187694,7 +187792,7 @@ var PerformanceCounterMetrics = class {
187694
187792
  }
187695
187793
  getProcessTime(observableResult) {
187696
187794
  if (import_node_process8.default) {
187697
- const cpus2 = import_node_os12.default.cpus();
187795
+ const cpus2 = import_node_os13.default.cpus();
187698
187796
  if (cpus2 && cpus2.length && this.lastCpusProcess && cpus2.length === this.lastCpusProcess.length) {
187699
187797
  let appCpuPercent = void 0;
187700
187798
  const appCpuUsage = import_node_process8.default.cpuUsage();
@@ -188018,7 +188116,7 @@ init_cjs_shims();
188018
188116
 
188019
188117
  // ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js
188020
188118
  init_cjs_shims();
188021
- var path44 = __toESM(require("path"));
188119
+ var path45 = __toESM(require("path"));
188022
188120
  var import_util14 = require("util");
188023
188121
 
188024
188122
  // ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/semver.js
@@ -188608,7 +188706,7 @@ var InstrumentationAbstract2 = class {
188608
188706
  // ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
188609
188707
  init_cjs_shims();
188610
188708
  var import_require_in_the_middle3 = __toESM(require_require_in_the_middle());
188611
- var path43 = __toESM(require("path"));
188709
+ var path44 = __toESM(require("path"));
188612
188710
 
188613
188711
  // ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/ModuleNameTrie.js
188614
188712
  init_cjs_shims();
@@ -188738,7 +188836,7 @@ var RequireInTheMiddleSingleton2 = class _RequireInTheMiddleSingleton {
188738
188836
  }
188739
188837
  };
188740
188838
  function normalizePathSeparators2(moduleNameOrPath) {
188741
- return path43.sep !== ModuleNameSeparator2 ? moduleNameOrPath.split(path43.sep).join(ModuleNameSeparator2) : moduleNameOrPath;
188839
+ return path44.sep !== ModuleNameSeparator2 ? moduleNameOrPath.split(path44.sep).join(ModuleNameSeparator2) : moduleNameOrPath;
188742
188840
  }
188743
188841
 
188744
188842
  // ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js
@@ -188841,7 +188939,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
188841
188939
  }
188842
188940
  _extractPackageVersion(baseDir) {
188843
188941
  try {
188844
- const json = (0, import_fs6.readFileSync)(path44.join(baseDir, "package.json"), {
188942
+ const json = (0, import_fs6.readFileSync)(path45.join(baseDir, "package.json"), {
188845
188943
  encoding: "utf8"
188846
188944
  });
188847
188945
  const version3 = JSON.parse(json).version;
@@ -188883,7 +188981,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
188883
188981
  return exports2;
188884
188982
  }
188885
188983
  const files = module2.files ?? [];
188886
- const normalizedName = path44.normalize(name2);
188984
+ const normalizedName = path45.normalize(name2);
188887
188985
  const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported2(f.supportedVersions, version3, module2.includePrerelease));
188888
188986
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
188889
188987
  file.moduleExports = patchedExports;
@@ -188929,8 +189027,8 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
188929
189027
  this._warnOnPreloadedModules();
188930
189028
  for (const module2 of this._modules) {
188931
189029
  const hookFn = (exports2, name2, baseDir) => {
188932
- if (!baseDir && path44.isAbsolute(name2)) {
188933
- const parsedPath = path44.parse(name2);
189030
+ if (!baseDir && path45.isAbsolute(name2)) {
189031
+ const parsedPath = path45.parse(name2);
188934
189032
  name2 = parsedPath.name;
188935
189033
  baseDir = parsedPath.dir;
188936
189034
  }
@@ -188939,7 +189037,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
188939
189037
  const onRequire = (exports2, name2, baseDir) => {
188940
189038
  return this._onRequire(module2, exports2, name2, baseDir);
188941
189039
  };
188942
- const hook = path44.isAbsolute(module2.name) ? new import_require_in_the_middle4.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
189040
+ const hook = path45.isAbsolute(module2.name) ? new import_require_in_the_middle4.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
188943
189041
  this._hooks.push(hook);
188944
189042
  const esmHook = new import_import_in_the_middle2.Hook([module2.name], { internals: false }, hookFn);
188945
189043
  this._hooks.push(esmHook);