@google/gemini-cli-a2a-server 0.50.0-preview.1 → 0.51.0-nightly.20260628.gae0a3aa7b

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.
@@ -6426,7 +6426,7 @@ var require_node2 = __commonJS({
6426
6426
  var require_tail_file = __commonJS({
6427
6427
  "node_modules/winston/lib/winston/tail-file.js"(exports2, module2) {
6428
6428
  "use strict";
6429
- var fs89 = __require("fs");
6429
+ var fs88 = __require("fs");
6430
6430
  var { StringDecoder: StringDecoder3 } = __require("string_decoder");
6431
6431
  var { Stream: Stream4 } = require_readable();
6432
6432
  function noop3() {
@@ -6447,7 +6447,7 @@ var require_tail_file = __commonJS({
6447
6447
  stream2.emit("end");
6448
6448
  stream2.emit("close");
6449
6449
  };
6450
- fs89.open(options.file, "a+", "0644", (err2, fd) => {
6450
+ fs88.open(options.file, "a+", "0644", (err2, fd) => {
6451
6451
  if (err2) {
6452
6452
  if (!iter) {
6453
6453
  stream2.emit("error", err2);
@@ -6459,10 +6459,10 @@ var require_tail_file = __commonJS({
6459
6459
  }
6460
6460
  (function read2() {
6461
6461
  if (stream2.destroyed) {
6462
- fs89.close(fd, noop3);
6462
+ fs88.close(fd, noop3);
6463
6463
  return;
6464
6464
  }
6465
- return fs89.read(fd, buffer, 0, buffer.length, pos, (error2, bytes) => {
6465
+ return fs88.read(fd, buffer, 0, buffer.length, pos, (error2, bytes) => {
6466
6466
  if (error2) {
6467
6467
  if (!iter) {
6468
6468
  stream2.emit("error", error2);
@@ -6521,7 +6521,7 @@ var require_tail_file = __commonJS({
6521
6521
  var require_file = __commonJS({
6522
6522
  "node_modules/winston/lib/winston/transports/file.js"(exports2, module2) {
6523
6523
  "use strict";
6524
- var fs89 = __require("fs");
6524
+ var fs88 = __require("fs");
6525
6525
  var path98 = __require("path");
6526
6526
  var asyncSeries = require_series();
6527
6527
  var zlib4 = __require("zlib");
@@ -6704,7 +6704,7 @@ var require_file = __commonJS({
6704
6704
  let buff = "";
6705
6705
  let results = [];
6706
6706
  let row = 0;
6707
- const stream2 = fs89.createReadStream(file, {
6707
+ const stream2 = fs88.createReadStream(file, {
6708
6708
  encoding: "utf8"
6709
6709
  });
6710
6710
  stream2.on("error", (err2) => {
@@ -6856,7 +6856,7 @@ var require_file = __commonJS({
6856
6856
  stat(callback) {
6857
6857
  const target = this._getFile();
6858
6858
  const fullpath = path98.join(this.dirname, target);
6859
- fs89.stat(fullpath, (err2, stat7) => {
6859
+ fs88.stat(fullpath, (err2, stat7) => {
6860
6860
  if (err2 && err2.code === "ENOENT") {
6861
6861
  debug2("ENOENT\xA0ok", fullpath);
6862
6862
  this.filename = target;
@@ -6961,7 +6961,7 @@ var require_file = __commonJS({
6961
6961
  _createStream(source) {
6962
6962
  const fullpath = path98.join(this.dirname, this.filename);
6963
6963
  debug2("create stream start", fullpath, this.options);
6964
- const dest = fs89.createWriteStream(fullpath, this.options).on("error", (err2) => debug2(err2)).on("close", () => debug2("close", dest.path, dest.bytesWritten)).on("open", () => {
6964
+ const dest = fs88.createWriteStream(fullpath, this.options).on("error", (err2) => debug2(err2)).on("close", () => debug2("close", dest.path, dest.bytesWritten)).on("open", () => {
6965
6965
  debug2("file open ok", fullpath);
6966
6966
  this.emit("open", fullpath);
6967
6967
  source.pipe(dest);
@@ -7040,7 +7040,7 @@ var require_file = __commonJS({
7040
7040
  const isZipped = this.zippedArchive ? ".gz" : "";
7041
7041
  const filePath = `${basename12}${isOldest}${ext2}${isZipped}`;
7042
7042
  const target = path98.join(this.dirname, filePath);
7043
- fs89.unlink(target, callback);
7043
+ fs88.unlink(target, callback);
7044
7044
  }
7045
7045
  /**
7046
7046
  * Roll files forward based on integer, up to maxFiles. e.g. if base if
@@ -7063,17 +7063,17 @@ var require_file = __commonJS({
7063
7063
  tasks.push(function(i3, cb) {
7064
7064
  let fileName = `${basename12}${i3 - 1}${ext2}${isZipped}`;
7065
7065
  const tmppath = path98.join(this.dirname, fileName);
7066
- fs89.exists(tmppath, (exists2) => {
7066
+ fs88.exists(tmppath, (exists2) => {
7067
7067
  if (!exists2) {
7068
7068
  return cb(null);
7069
7069
  }
7070
7070
  fileName = `${basename12}${i3}${ext2}${isZipped}`;
7071
- fs89.rename(tmppath, path98.join(this.dirname, fileName), cb);
7071
+ fs88.rename(tmppath, path98.join(this.dirname, fileName), cb);
7072
7072
  });
7073
7073
  }.bind(this, x2));
7074
7074
  }
7075
7075
  asyncSeries(tasks, () => {
7076
- fs89.rename(
7076
+ fs88.rename(
7077
7077
  path98.join(this.dirname, `${basename12}${ext2}${isZipped}`),
7078
7078
  path98.join(this.dirname, `${basename12}1${ext2}${isZipped}`),
7079
7079
  callback
@@ -7089,22 +7089,22 @@ var require_file = __commonJS({
7089
7089
  * @private
7090
7090
  */
7091
7091
  _compressFile(src, dest, callback) {
7092
- fs89.access(src, fs89.F_OK, (err2) => {
7092
+ fs88.access(src, fs88.F_OK, (err2) => {
7093
7093
  if (err2) {
7094
7094
  return callback();
7095
7095
  }
7096
7096
  var gzip = zlib4.createGzip();
7097
- var inp = fs89.createReadStream(src);
7098
- var out2 = fs89.createWriteStream(dest);
7097
+ var inp = fs88.createReadStream(src);
7098
+ var out2 = fs88.createWriteStream(dest);
7099
7099
  out2.on("finish", () => {
7100
- fs89.unlink(src, callback);
7100
+ fs88.unlink(src, callback);
7101
7101
  });
7102
7102
  inp.pipe(gzip).pipe(out2);
7103
7103
  });
7104
7104
  }
7105
7105
  _createLogDirIfNotExist(dirPath) {
7106
- if (!fs89.existsSync(dirPath)) {
7107
- fs89.mkdirSync(dirPath, { recursive: true });
7106
+ if (!fs88.existsSync(dirPath)) {
7107
+ fs88.mkdirSync(dirPath, { recursive: true });
7108
7108
  }
7109
7109
  }
7110
7110
  };
@@ -31278,7 +31278,7 @@ var require_view = __commonJS({
31278
31278
  "use strict";
31279
31279
  var debug2 = require_src()("express:view");
31280
31280
  var path98 = __require("node:path");
31281
- var fs89 = __require("node:fs");
31281
+ var fs88 = __require("node:fs");
31282
31282
  var dirname23 = path98.dirname;
31283
31283
  var basename12 = path98.basename;
31284
31284
  var extname2 = path98.extname;
@@ -31358,7 +31358,7 @@ var require_view = __commonJS({
31358
31358
  function tryStat(path99) {
31359
31359
  debug2('stat "%s"', path99);
31360
31360
  try {
31361
- return fs89.statSync(path99);
31361
+ return fs88.statSync(path99);
31362
31362
  } catch (e3) {
31363
31363
  return void 0;
31364
31364
  }
@@ -34998,7 +34998,7 @@ var require_send = __commonJS({
34998
34998
  var escapeHtml = require_escape_html();
34999
34999
  var etag = require_etag();
35000
35000
  var fresh = require_fresh();
35001
- var fs89 = __require("fs");
35001
+ var fs88 = __require("fs");
35002
35002
  var mime3 = require_mime_types();
35003
35003
  var ms2 = require_ms();
35004
35004
  var onFinished = require_on_finished();
@@ -35011,7 +35011,7 @@ var require_send = __commonJS({
35011
35011
  var join40 = path98.join;
35012
35012
  var normalize6 = path98.normalize;
35013
35013
  var resolve23 = path98.resolve;
35014
- var sep8 = path98.sep;
35014
+ var sep9 = path98.sep;
35015
35015
  var BYTES_RANGE_REGEXP = /^ *bytes=/;
35016
35016
  var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
35017
35017
  var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
@@ -35172,14 +35172,14 @@ var require_send = __commonJS({
35172
35172
  var parts2;
35173
35173
  if (root !== null) {
35174
35174
  if (path99) {
35175
- path99 = normalize6("." + sep8 + path99);
35175
+ path99 = normalize6("." + sep9 + path99);
35176
35176
  }
35177
35177
  if (UP_PATH_REGEXP.test(path99)) {
35178
35178
  debug2('malicious path "%s"', path99);
35179
35179
  this.error(403);
35180
35180
  return res;
35181
35181
  }
35182
- parts2 = path99.split(sep8);
35182
+ parts2 = path99.split(sep9);
35183
35183
  path99 = normalize6(join40(root, path99));
35184
35184
  } else {
35185
35185
  if (UP_PATH_REGEXP.test(path99)) {
@@ -35187,7 +35187,7 @@ var require_send = __commonJS({
35187
35187
  this.error(403);
35188
35188
  return res;
35189
35189
  }
35190
- parts2 = normalize6(path99).split(sep8);
35190
+ parts2 = normalize6(path99).split(sep9);
35191
35191
  path99 = resolve23(path99);
35192
35192
  }
35193
35193
  if (containsDotFile(parts2)) {
@@ -35280,8 +35280,8 @@ var require_send = __commonJS({
35280
35280
  var i3 = 0;
35281
35281
  var self2 = this;
35282
35282
  debug2('stat "%s"', path99);
35283
- fs89.stat(path99, function onstat(err2, stat7) {
35284
- var pathEndsWithSep = path99[path99.length - 1] === sep8;
35283
+ fs88.stat(path99, function onstat(err2, stat7) {
35284
+ var pathEndsWithSep = path99[path99.length - 1] === sep9;
35285
35285
  if (err2 && err2.code === "ENOENT" && !extname2(path99) && !pathEndsWithSep) {
35286
35286
  return next(err2);
35287
35287
  }
@@ -35297,7 +35297,7 @@ var require_send = __commonJS({
35297
35297
  }
35298
35298
  var p2 = path99 + "." + self2._extensions[i3++];
35299
35299
  debug2('stat "%s"', p2);
35300
- fs89.stat(p2, function(err3, stat7) {
35300
+ fs88.stat(p2, function(err3, stat7) {
35301
35301
  if (err3) return next(err3);
35302
35302
  if (stat7.isDirectory()) return next();
35303
35303
  self2.emit("file", p2, stat7);
@@ -35315,7 +35315,7 @@ var require_send = __commonJS({
35315
35315
  }
35316
35316
  var p2 = join40(path99, self2._index[i3]);
35317
35317
  debug2('stat "%s"', p2);
35318
- fs89.stat(p2, function(err3, stat7) {
35318
+ fs88.stat(p2, function(err3, stat7) {
35319
35319
  if (err3) return next(err3);
35320
35320
  if (stat7.isDirectory()) return next();
35321
35321
  self2.emit("file", p2, stat7);
@@ -35327,7 +35327,7 @@ var require_send = __commonJS({
35327
35327
  SendStream.prototype.stream = function stream2(path99, options) {
35328
35328
  var self2 = this;
35329
35329
  var res = this.res;
35330
- var stream3 = fs89.createReadStream(path99, options);
35330
+ var stream3 = fs88.createReadStream(path99, options);
35331
35331
  this.emit("stream", stream3);
35332
35332
  stream3.pipe(res);
35333
35333
  function cleanup() {
@@ -45875,12 +45875,12 @@ var require_src5 = __commonJS({
45875
45875
  var _GoogleToken_requestToken;
45876
45876
  Object.defineProperty(exports2, "__esModule", { value: true });
45877
45877
  exports2.GoogleToken = void 0;
45878
- var fs89 = __require("fs");
45878
+ var fs88 = __require("fs");
45879
45879
  var gaxios_1 = require_src2();
45880
45880
  var jws = require_jws();
45881
45881
  var path98 = __require("path");
45882
45882
  var util_1 = __require("util");
45883
- var readFile12 = fs89.readFile ? (0, util_1.promisify)(fs89.readFile) : async () => {
45883
+ var readFile12 = fs88.readFile ? (0, util_1.promisify)(fs88.readFile) : async () => {
45884
45884
  throw new ErrorWithCode("use key rather than keyFile.", "MISSING_CREDENTIALS");
45885
45885
  };
45886
45886
  var GOOGLE_TOKEN_URL = "https://www.googleapis.com/oauth2/v4/token";
@@ -47437,12 +47437,12 @@ var require_filesubjecttokensupplier = __commonJS({
47437
47437
  Object.defineProperty(exports2, "__esModule", { value: true });
47438
47438
  exports2.FileSubjectTokenSupplier = void 0;
47439
47439
  var util_1 = __require("util");
47440
- var fs89 = __require("fs");
47441
- var readFile12 = (0, util_1.promisify)((_a4 = fs89.readFile) !== null && _a4 !== void 0 ? _a4 : () => {
47440
+ var fs88 = __require("fs");
47441
+ var readFile12 = (0, util_1.promisify)((_a4 = fs88.readFile) !== null && _a4 !== void 0 ? _a4 : () => {
47442
47442
  });
47443
- var realpath2 = (0, util_1.promisify)((_b = fs89.realpath) !== null && _b !== void 0 ? _b : () => {
47443
+ var realpath2 = (0, util_1.promisify)((_b = fs88.realpath) !== null && _b !== void 0 ? _b : () => {
47444
47444
  });
47445
- var lstat3 = (0, util_1.promisify)((_c = fs89.lstat) !== null && _c !== void 0 ? _c : () => {
47445
+ var lstat3 = (0, util_1.promisify)((_c = fs88.lstat) !== null && _c !== void 0 ? _c : () => {
47446
47446
  });
47447
47447
  var FileSubjectTokenSupplier = class {
47448
47448
  /**
@@ -48160,7 +48160,7 @@ var require_pluggable_auth_handler = __commonJS({
48160
48160
  var pluggable_auth_client_1 = require_pluggable_auth_client();
48161
48161
  var executable_response_1 = require_executable_response();
48162
48162
  var childProcess2 = __require("child_process");
48163
- var fs89 = __require("fs");
48163
+ var fs88 = __require("fs");
48164
48164
  var PluggableAuthHandler = class _PluggableAuthHandler {
48165
48165
  /**
48166
48166
  * Instantiates a PluggableAuthHandler instance using the provided
@@ -48230,14 +48230,14 @@ var require_pluggable_auth_handler = __commonJS({
48230
48230
  }
48231
48231
  let filePath;
48232
48232
  try {
48233
- filePath = await fs89.promises.realpath(this.outputFile);
48233
+ filePath = await fs88.promises.realpath(this.outputFile);
48234
48234
  } catch (_a4) {
48235
48235
  return void 0;
48236
48236
  }
48237
- if (!(await fs89.promises.lstat(filePath)).isFile()) {
48237
+ if (!(await fs88.promises.lstat(filePath)).isFile()) {
48238
48238
  return void 0;
48239
48239
  }
48240
- const responseString = await fs89.promises.readFile(filePath, {
48240
+ const responseString = await fs88.promises.readFile(filePath, {
48241
48241
  encoding: "utf8"
48242
48242
  });
48243
48243
  if (responseString === "") {
@@ -48658,7 +48658,7 @@ var require_googleauth = __commonJS({
48658
48658
  Object.defineProperty(exports2, "__esModule", { value: true });
48659
48659
  exports2.GoogleAuth = exports2.GoogleAuthExceptionMessages = exports2.CLOUD_SDK_CLIENT_ID = void 0;
48660
48660
  var child_process_1 = __require("child_process");
48661
- var fs89 = __require("fs");
48661
+ var fs88 = __require("fs");
48662
48662
  var gcpMetadata = require_src4();
48663
48663
  var os33 = __require("os");
48664
48664
  var path98 = __require("path");
@@ -48927,7 +48927,7 @@ var require_googleauth = __commonJS({
48927
48927
  }
48928
48928
  if (location) {
48929
48929
  location = path98.join(location, "gcloud", "application_default_credentials.json");
48930
- if (!fs89.existsSync(location)) {
48930
+ if (!fs88.existsSync(location)) {
48931
48931
  location = null;
48932
48932
  }
48933
48933
  }
@@ -48948,8 +48948,8 @@ var require_googleauth = __commonJS({
48948
48948
  throw new Error("The file path is invalid.");
48949
48949
  }
48950
48950
  try {
48951
- filePath = fs89.realpathSync(filePath);
48952
- if (!fs89.lstatSync(filePath).isFile()) {
48951
+ filePath = fs88.realpathSync(filePath);
48952
+ if (!fs88.lstatSync(filePath).isFile()) {
48953
48953
  throw new Error();
48954
48954
  }
48955
48955
  } catch (err2) {
@@ -48958,7 +48958,7 @@ var require_googleauth = __commonJS({
48958
48958
  }
48959
48959
  throw err2;
48960
48960
  }
48961
- const readStream = fs89.createReadStream(filePath);
48961
+ const readStream = fs88.createReadStream(filePath);
48962
48962
  return this.fromStream(readStream, options);
48963
48963
  }
48964
48964
  /**
@@ -49345,7 +49345,7 @@ var require_googleauth = __commonJS({
49345
49345
  return this._cacheClientFromJSON(this.jsonContent, this.clientOptions);
49346
49346
  } else if (this.keyFilename) {
49347
49347
  const filePath = path98.resolve(this.keyFilename);
49348
- const stream2 = fs89.createReadStream(filePath);
49348
+ const stream2 = fs88.createReadStream(filePath);
49349
49349
  return await this.fromStreamAsync(stream2, this.clientOptions);
49350
49350
  } else if (this.apiKey) {
49351
49351
  const client = await this.fromAPIKey(this.apiKey, this.clientOptions);
@@ -53051,54 +53051,54 @@ var require_polyfills = __commonJS({
53051
53051
  }
53052
53052
  var chdir;
53053
53053
  module2.exports = patch;
53054
- function patch(fs89) {
53054
+ function patch(fs88) {
53055
53055
  if (constants3.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
53056
- patchLchmod(fs89);
53057
- }
53058
- if (!fs89.lutimes) {
53059
- patchLutimes(fs89);
53060
- }
53061
- fs89.chown = chownFix(fs89.chown);
53062
- fs89.fchown = chownFix(fs89.fchown);
53063
- fs89.lchown = chownFix(fs89.lchown);
53064
- fs89.chmod = chmodFix(fs89.chmod);
53065
- fs89.fchmod = chmodFix(fs89.fchmod);
53066
- fs89.lchmod = chmodFix(fs89.lchmod);
53067
- fs89.chownSync = chownFixSync(fs89.chownSync);
53068
- fs89.fchownSync = chownFixSync(fs89.fchownSync);
53069
- fs89.lchownSync = chownFixSync(fs89.lchownSync);
53070
- fs89.chmodSync = chmodFixSync(fs89.chmodSync);
53071
- fs89.fchmodSync = chmodFixSync(fs89.fchmodSync);
53072
- fs89.lchmodSync = chmodFixSync(fs89.lchmodSync);
53073
- fs89.stat = statFix(fs89.stat);
53074
- fs89.fstat = statFix(fs89.fstat);
53075
- fs89.lstat = statFix(fs89.lstat);
53076
- fs89.statSync = statFixSync(fs89.statSync);
53077
- fs89.fstatSync = statFixSync(fs89.fstatSync);
53078
- fs89.lstatSync = statFixSync(fs89.lstatSync);
53079
- if (fs89.chmod && !fs89.lchmod) {
53080
- fs89.lchmod = function(path98, mode, cb) {
53056
+ patchLchmod(fs88);
53057
+ }
53058
+ if (!fs88.lutimes) {
53059
+ patchLutimes(fs88);
53060
+ }
53061
+ fs88.chown = chownFix(fs88.chown);
53062
+ fs88.fchown = chownFix(fs88.fchown);
53063
+ fs88.lchown = chownFix(fs88.lchown);
53064
+ fs88.chmod = chmodFix(fs88.chmod);
53065
+ fs88.fchmod = chmodFix(fs88.fchmod);
53066
+ fs88.lchmod = chmodFix(fs88.lchmod);
53067
+ fs88.chownSync = chownFixSync(fs88.chownSync);
53068
+ fs88.fchownSync = chownFixSync(fs88.fchownSync);
53069
+ fs88.lchownSync = chownFixSync(fs88.lchownSync);
53070
+ fs88.chmodSync = chmodFixSync(fs88.chmodSync);
53071
+ fs88.fchmodSync = chmodFixSync(fs88.fchmodSync);
53072
+ fs88.lchmodSync = chmodFixSync(fs88.lchmodSync);
53073
+ fs88.stat = statFix(fs88.stat);
53074
+ fs88.fstat = statFix(fs88.fstat);
53075
+ fs88.lstat = statFix(fs88.lstat);
53076
+ fs88.statSync = statFixSync(fs88.statSync);
53077
+ fs88.fstatSync = statFixSync(fs88.fstatSync);
53078
+ fs88.lstatSync = statFixSync(fs88.lstatSync);
53079
+ if (fs88.chmod && !fs88.lchmod) {
53080
+ fs88.lchmod = function(path98, mode, cb) {
53081
53081
  if (cb) process.nextTick(cb);
53082
53082
  };
53083
- fs89.lchmodSync = function() {
53083
+ fs88.lchmodSync = function() {
53084
53084
  };
53085
53085
  }
53086
- if (fs89.chown && !fs89.lchown) {
53087
- fs89.lchown = function(path98, uid, gid, cb) {
53086
+ if (fs88.chown && !fs88.lchown) {
53087
+ fs88.lchown = function(path98, uid, gid, cb) {
53088
53088
  if (cb) process.nextTick(cb);
53089
53089
  };
53090
- fs89.lchownSync = function() {
53090
+ fs88.lchownSync = function() {
53091
53091
  };
53092
53092
  }
53093
53093
  if (platform10 === "win32") {
53094
- fs89.rename = typeof fs89.rename !== "function" ? fs89.rename : function(fs$rename) {
53094
+ fs88.rename = typeof fs88.rename !== "function" ? fs88.rename : function(fs$rename) {
53095
53095
  function rename2(from, to2, cb) {
53096
53096
  var start2 = Date.now();
53097
53097
  var backoff = 0;
53098
53098
  fs$rename(from, to2, function CB(er2) {
53099
53099
  if (er2 && (er2.code === "EACCES" || er2.code === "EPERM" || er2.code === "EBUSY") && Date.now() - start2 < 6e4) {
53100
53100
  setTimeout(function() {
53101
- fs89.stat(to2, function(stater, st2) {
53101
+ fs88.stat(to2, function(stater, st2) {
53102
53102
  if (stater && stater.code === "ENOENT")
53103
53103
  fs$rename(from, to2, CB);
53104
53104
  else
@@ -53114,9 +53114,9 @@ var require_polyfills = __commonJS({
53114
53114
  }
53115
53115
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename2, fs$rename);
53116
53116
  return rename2;
53117
- }(fs89.rename);
53117
+ }(fs88.rename);
53118
53118
  }
53119
- fs89.read = typeof fs89.read !== "function" ? fs89.read : function(fs$read) {
53119
+ fs88.read = typeof fs88.read !== "function" ? fs88.read : function(fs$read) {
53120
53120
  function read2(fd, buffer, offset, length, position, callback_) {
53121
53121
  var callback;
53122
53122
  if (callback_ && typeof callback_ === "function") {
@@ -53124,22 +53124,22 @@ var require_polyfills = __commonJS({
53124
53124
  callback = function(er2, _2, __) {
53125
53125
  if (er2 && er2.code === "EAGAIN" && eagCounter < 10) {
53126
53126
  eagCounter++;
53127
- return fs$read.call(fs89, fd, buffer, offset, length, position, callback);
53127
+ return fs$read.call(fs88, fd, buffer, offset, length, position, callback);
53128
53128
  }
53129
53129
  callback_.apply(this, arguments);
53130
53130
  };
53131
53131
  }
53132
- return fs$read.call(fs89, fd, buffer, offset, length, position, callback);
53132
+ return fs$read.call(fs88, fd, buffer, offset, length, position, callback);
53133
53133
  }
53134
53134
  if (Object.setPrototypeOf) Object.setPrototypeOf(read2, fs$read);
53135
53135
  return read2;
53136
- }(fs89.read);
53137
- fs89.readSync = typeof fs89.readSync !== "function" ? fs89.readSync : /* @__PURE__ */ function(fs$readSync) {
53136
+ }(fs88.read);
53137
+ fs88.readSync = typeof fs88.readSync !== "function" ? fs88.readSync : /* @__PURE__ */ function(fs$readSync) {
53138
53138
  return function(fd, buffer, offset, length, position) {
53139
53139
  var eagCounter = 0;
53140
53140
  while (true) {
53141
53141
  try {
53142
- return fs$readSync.call(fs89, fd, buffer, offset, length, position);
53142
+ return fs$readSync.call(fs88, fd, buffer, offset, length, position);
53143
53143
  } catch (er2) {
53144
53144
  if (er2.code === "EAGAIN" && eagCounter < 10) {
53145
53145
  eagCounter++;
@@ -53149,10 +53149,10 @@ var require_polyfills = __commonJS({
53149
53149
  }
53150
53150
  }
53151
53151
  };
53152
- }(fs89.readSync);
53153
- function patchLchmod(fs90) {
53154
- fs90.lchmod = function(path98, mode, callback) {
53155
- fs90.open(
53152
+ }(fs88.readSync);
53153
+ function patchLchmod(fs89) {
53154
+ fs89.lchmod = function(path98, mode, callback) {
53155
+ fs89.open(
53156
53156
  path98,
53157
53157
  constants3.O_WRONLY | constants3.O_SYMLINK,
53158
53158
  mode,
@@ -53161,80 +53161,80 @@ var require_polyfills = __commonJS({
53161
53161
  if (callback) callback(err2);
53162
53162
  return;
53163
53163
  }
53164
- fs90.fchmod(fd, mode, function(err3) {
53165
- fs90.close(fd, function(err22) {
53164
+ fs89.fchmod(fd, mode, function(err3) {
53165
+ fs89.close(fd, function(err22) {
53166
53166
  if (callback) callback(err3 || err22);
53167
53167
  });
53168
53168
  });
53169
53169
  }
53170
53170
  );
53171
53171
  };
53172
- fs90.lchmodSync = function(path98, mode) {
53173
- var fd = fs90.openSync(path98, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
53172
+ fs89.lchmodSync = function(path98, mode) {
53173
+ var fd = fs89.openSync(path98, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
53174
53174
  var threw = true;
53175
53175
  var ret;
53176
53176
  try {
53177
- ret = fs90.fchmodSync(fd, mode);
53177
+ ret = fs89.fchmodSync(fd, mode);
53178
53178
  threw = false;
53179
53179
  } finally {
53180
53180
  if (threw) {
53181
53181
  try {
53182
- fs90.closeSync(fd);
53182
+ fs89.closeSync(fd);
53183
53183
  } catch (er2) {
53184
53184
  }
53185
53185
  } else {
53186
- fs90.closeSync(fd);
53186
+ fs89.closeSync(fd);
53187
53187
  }
53188
53188
  }
53189
53189
  return ret;
53190
53190
  };
53191
53191
  }
53192
- function patchLutimes(fs90) {
53193
- if (constants3.hasOwnProperty("O_SYMLINK") && fs90.futimes) {
53194
- fs90.lutimes = function(path98, at2, mt2, cb) {
53195
- fs90.open(path98, constants3.O_SYMLINK, function(er2, fd) {
53192
+ function patchLutimes(fs89) {
53193
+ if (constants3.hasOwnProperty("O_SYMLINK") && fs89.futimes) {
53194
+ fs89.lutimes = function(path98, at2, mt2, cb) {
53195
+ fs89.open(path98, constants3.O_SYMLINK, function(er2, fd) {
53196
53196
  if (er2) {
53197
53197
  if (cb) cb(er2);
53198
53198
  return;
53199
53199
  }
53200
- fs90.futimes(fd, at2, mt2, function(er3) {
53201
- fs90.close(fd, function(er22) {
53200
+ fs89.futimes(fd, at2, mt2, function(er3) {
53201
+ fs89.close(fd, function(er22) {
53202
53202
  if (cb) cb(er3 || er22);
53203
53203
  });
53204
53204
  });
53205
53205
  });
53206
53206
  };
53207
- fs90.lutimesSync = function(path98, at2, mt2) {
53208
- var fd = fs90.openSync(path98, constants3.O_SYMLINK);
53207
+ fs89.lutimesSync = function(path98, at2, mt2) {
53208
+ var fd = fs89.openSync(path98, constants3.O_SYMLINK);
53209
53209
  var ret;
53210
53210
  var threw = true;
53211
53211
  try {
53212
- ret = fs90.futimesSync(fd, at2, mt2);
53212
+ ret = fs89.futimesSync(fd, at2, mt2);
53213
53213
  threw = false;
53214
53214
  } finally {
53215
53215
  if (threw) {
53216
53216
  try {
53217
- fs90.closeSync(fd);
53217
+ fs89.closeSync(fd);
53218
53218
  } catch (er2) {
53219
53219
  }
53220
53220
  } else {
53221
- fs90.closeSync(fd);
53221
+ fs89.closeSync(fd);
53222
53222
  }
53223
53223
  }
53224
53224
  return ret;
53225
53225
  };
53226
- } else if (fs90.futimes) {
53227
- fs90.lutimes = function(_a4, _b, _c, cb) {
53226
+ } else if (fs89.futimes) {
53227
+ fs89.lutimes = function(_a4, _b, _c, cb) {
53228
53228
  if (cb) process.nextTick(cb);
53229
53229
  };
53230
- fs90.lutimesSync = function() {
53230
+ fs89.lutimesSync = function() {
53231
53231
  };
53232
53232
  }
53233
53233
  }
53234
53234
  function chmodFix(orig) {
53235
53235
  if (!orig) return orig;
53236
53236
  return function(target, mode, cb) {
53237
- return orig.call(fs89, target, mode, function(er2) {
53237
+ return orig.call(fs88, target, mode, function(er2) {
53238
53238
  if (chownErOk(er2)) er2 = null;
53239
53239
  if (cb) cb.apply(this, arguments);
53240
53240
  });
@@ -53244,7 +53244,7 @@ var require_polyfills = __commonJS({
53244
53244
  if (!orig) return orig;
53245
53245
  return function(target, mode) {
53246
53246
  try {
53247
- return orig.call(fs89, target, mode);
53247
+ return orig.call(fs88, target, mode);
53248
53248
  } catch (er2) {
53249
53249
  if (!chownErOk(er2)) throw er2;
53250
53250
  }
@@ -53253,7 +53253,7 @@ var require_polyfills = __commonJS({
53253
53253
  function chownFix(orig) {
53254
53254
  if (!orig) return orig;
53255
53255
  return function(target, uid, gid, cb) {
53256
- return orig.call(fs89, target, uid, gid, function(er2) {
53256
+ return orig.call(fs88, target, uid, gid, function(er2) {
53257
53257
  if (chownErOk(er2)) er2 = null;
53258
53258
  if (cb) cb.apply(this, arguments);
53259
53259
  });
@@ -53263,7 +53263,7 @@ var require_polyfills = __commonJS({
53263
53263
  if (!orig) return orig;
53264
53264
  return function(target, uid, gid) {
53265
53265
  try {
53266
- return orig.call(fs89, target, uid, gid);
53266
+ return orig.call(fs88, target, uid, gid);
53267
53267
  } catch (er2) {
53268
53268
  if (!chownErOk(er2)) throw er2;
53269
53269
  }
@@ -53283,13 +53283,13 @@ var require_polyfills = __commonJS({
53283
53283
  }
53284
53284
  if (cb) cb.apply(this, arguments);
53285
53285
  }
53286
- return options ? orig.call(fs89, target, options, callback) : orig.call(fs89, target, callback);
53286
+ return options ? orig.call(fs88, target, options, callback) : orig.call(fs88, target, callback);
53287
53287
  };
53288
53288
  }
53289
53289
  function statFixSync(orig) {
53290
53290
  if (!orig) return orig;
53291
53291
  return function(target, options) {
53292
- var stats = options ? orig.call(fs89, target, options) : orig.call(fs89, target);
53292
+ var stats = options ? orig.call(fs88, target, options) : orig.call(fs88, target);
53293
53293
  if (stats) {
53294
53294
  if (stats.uid < 0) stats.uid += 4294967296;
53295
53295
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -53318,7 +53318,7 @@ var require_legacy_streams = __commonJS({
53318
53318
  "node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
53319
53319
  var Stream4 = __require("stream").Stream;
53320
53320
  module2.exports = legacy;
53321
- function legacy(fs89) {
53321
+ function legacy(fs88) {
53322
53322
  return {
53323
53323
  ReadStream,
53324
53324
  WriteStream
@@ -53361,7 +53361,7 @@ var require_legacy_streams = __commonJS({
53361
53361
  });
53362
53362
  return;
53363
53363
  }
53364
- fs89.open(this.path, this.flags, this.mode, function(err2, fd) {
53364
+ fs88.open(this.path, this.flags, this.mode, function(err2, fd) {
53365
53365
  if (err2) {
53366
53366
  self2.emit("error", err2);
53367
53367
  self2.readable = false;
@@ -53400,7 +53400,7 @@ var require_legacy_streams = __commonJS({
53400
53400
  this.busy = false;
53401
53401
  this._queue = [];
53402
53402
  if (this.fd === null) {
53403
- this._open = fs89.open;
53403
+ this._open = fs88.open;
53404
53404
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
53405
53405
  this.flush();
53406
53406
  }
@@ -53435,7 +53435,7 @@ var require_clone = __commonJS({
53435
53435
  // node_modules/graceful-fs/graceful-fs.js
53436
53436
  var require_graceful_fs = __commonJS({
53437
53437
  "node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
53438
- var fs89 = __require("fs");
53438
+ var fs88 = __require("fs");
53439
53439
  var polyfills = require_polyfills();
53440
53440
  var legacy = require_legacy_streams();
53441
53441
  var clone3 = require_clone();
@@ -53467,12 +53467,12 @@ var require_graceful_fs = __commonJS({
53467
53467
  m3 = "GFS4: " + m3.split(/\n/).join("\nGFS4: ");
53468
53468
  console.error(m3);
53469
53469
  };
53470
- if (!fs89[gracefulQueue]) {
53470
+ if (!fs88[gracefulQueue]) {
53471
53471
  queue = global[gracefulQueue] || [];
53472
- publishQueue(fs89, queue);
53473
- fs89.close = function(fs$close) {
53472
+ publishQueue(fs88, queue);
53473
+ fs88.close = function(fs$close) {
53474
53474
  function close(fd, cb) {
53475
- return fs$close.call(fs89, fd, function(err2) {
53475
+ return fs$close.call(fs88, fd, function(err2) {
53476
53476
  if (!err2) {
53477
53477
  resetQueue();
53478
53478
  }
@@ -53484,40 +53484,40 @@ var require_graceful_fs = __commonJS({
53484
53484
  value: fs$close
53485
53485
  });
53486
53486
  return close;
53487
- }(fs89.close);
53488
- fs89.closeSync = function(fs$closeSync) {
53487
+ }(fs88.close);
53488
+ fs88.closeSync = function(fs$closeSync) {
53489
53489
  function closeSync2(fd) {
53490
- fs$closeSync.apply(fs89, arguments);
53490
+ fs$closeSync.apply(fs88, arguments);
53491
53491
  resetQueue();
53492
53492
  }
53493
53493
  Object.defineProperty(closeSync2, previousSymbol, {
53494
53494
  value: fs$closeSync
53495
53495
  });
53496
53496
  return closeSync2;
53497
- }(fs89.closeSync);
53497
+ }(fs88.closeSync);
53498
53498
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
53499
53499
  process.on("exit", function() {
53500
- debug2(fs89[gracefulQueue]);
53501
- __require("assert").equal(fs89[gracefulQueue].length, 0);
53500
+ debug2(fs88[gracefulQueue]);
53501
+ __require("assert").equal(fs88[gracefulQueue].length, 0);
53502
53502
  });
53503
53503
  }
53504
53504
  }
53505
53505
  var queue;
53506
53506
  if (!global[gracefulQueue]) {
53507
- publishQueue(global, fs89[gracefulQueue]);
53508
- }
53509
- module2.exports = patch(clone3(fs89));
53510
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs89.__patched) {
53511
- module2.exports = patch(fs89);
53512
- fs89.__patched = true;
53513
- }
53514
- function patch(fs90) {
53515
- polyfills(fs90);
53516
- fs90.gracefulify = patch;
53517
- fs90.createReadStream = createReadStream6;
53518
- fs90.createWriteStream = createWriteStream5;
53519
- var fs$readFile = fs90.readFile;
53520
- fs90.readFile = readFile12;
53507
+ publishQueue(global, fs88[gracefulQueue]);
53508
+ }
53509
+ module2.exports = patch(clone3(fs88));
53510
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs88.__patched) {
53511
+ module2.exports = patch(fs88);
53512
+ fs88.__patched = true;
53513
+ }
53514
+ function patch(fs89) {
53515
+ polyfills(fs89);
53516
+ fs89.gracefulify = patch;
53517
+ fs89.createReadStream = createReadStream6;
53518
+ fs89.createWriteStream = createWriteStream5;
53519
+ var fs$readFile = fs89.readFile;
53520
+ fs89.readFile = readFile12;
53521
53521
  function readFile12(path98, options, cb) {
53522
53522
  if (typeof options === "function")
53523
53523
  cb = options, options = null;
@@ -53533,8 +53533,8 @@ var require_graceful_fs = __commonJS({
53533
53533
  });
53534
53534
  }
53535
53535
  }
53536
- var fs$writeFile = fs90.writeFile;
53537
- fs90.writeFile = writeFile9;
53536
+ var fs$writeFile = fs89.writeFile;
53537
+ fs89.writeFile = writeFile9;
53538
53538
  function writeFile9(path98, data, options, cb) {
53539
53539
  if (typeof options === "function")
53540
53540
  cb = options, options = null;
@@ -53550,9 +53550,9 @@ var require_graceful_fs = __commonJS({
53550
53550
  });
53551
53551
  }
53552
53552
  }
53553
- var fs$appendFile = fs90.appendFile;
53553
+ var fs$appendFile = fs89.appendFile;
53554
53554
  if (fs$appendFile)
53555
- fs90.appendFile = appendFile;
53555
+ fs89.appendFile = appendFile;
53556
53556
  function appendFile(path98, data, options, cb) {
53557
53557
  if (typeof options === "function")
53558
53558
  cb = options, options = null;
@@ -53568,9 +53568,9 @@ var require_graceful_fs = __commonJS({
53568
53568
  });
53569
53569
  }
53570
53570
  }
53571
- var fs$copyFile = fs90.copyFile;
53571
+ var fs$copyFile = fs89.copyFile;
53572
53572
  if (fs$copyFile)
53573
- fs90.copyFile = copyFile2;
53573
+ fs89.copyFile = copyFile2;
53574
53574
  function copyFile2(src, dest, flags2, cb) {
53575
53575
  if (typeof flags2 === "function") {
53576
53576
  cb = flags2;
@@ -53588,8 +53588,8 @@ var require_graceful_fs = __commonJS({
53588
53588
  });
53589
53589
  }
53590
53590
  }
53591
- var fs$readdir = fs90.readdir;
53592
- fs90.readdir = readdir8;
53591
+ var fs$readdir = fs89.readdir;
53592
+ fs89.readdir = readdir8;
53593
53593
  var noReaddirOptionVersions = /^v[0-5]\./;
53594
53594
  function readdir8(path98, options, cb) {
53595
53595
  if (typeof options === "function")
@@ -53630,21 +53630,21 @@ var require_graceful_fs = __commonJS({
53630
53630
  }
53631
53631
  }
53632
53632
  if (process.version.substr(0, 4) === "v0.8") {
53633
- var legStreams = legacy(fs90);
53633
+ var legStreams = legacy(fs89);
53634
53634
  ReadStream = legStreams.ReadStream;
53635
53635
  WriteStream = legStreams.WriteStream;
53636
53636
  }
53637
- var fs$ReadStream = fs90.ReadStream;
53637
+ var fs$ReadStream = fs89.ReadStream;
53638
53638
  if (fs$ReadStream) {
53639
53639
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
53640
53640
  ReadStream.prototype.open = ReadStream$open;
53641
53641
  }
53642
- var fs$WriteStream = fs90.WriteStream;
53642
+ var fs$WriteStream = fs89.WriteStream;
53643
53643
  if (fs$WriteStream) {
53644
53644
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
53645
53645
  WriteStream.prototype.open = WriteStream$open;
53646
53646
  }
53647
- Object.defineProperty(fs90, "ReadStream", {
53647
+ Object.defineProperty(fs89, "ReadStream", {
53648
53648
  get: function() {
53649
53649
  return ReadStream;
53650
53650
  },
@@ -53654,7 +53654,7 @@ var require_graceful_fs = __commonJS({
53654
53654
  enumerable: true,
53655
53655
  configurable: true
53656
53656
  });
53657
- Object.defineProperty(fs90, "WriteStream", {
53657
+ Object.defineProperty(fs89, "WriteStream", {
53658
53658
  get: function() {
53659
53659
  return WriteStream;
53660
53660
  },
@@ -53665,7 +53665,7 @@ var require_graceful_fs = __commonJS({
53665
53665
  configurable: true
53666
53666
  });
53667
53667
  var FileReadStream = ReadStream;
53668
- Object.defineProperty(fs90, "FileReadStream", {
53668
+ Object.defineProperty(fs89, "FileReadStream", {
53669
53669
  get: function() {
53670
53670
  return FileReadStream;
53671
53671
  },
@@ -53676,7 +53676,7 @@ var require_graceful_fs = __commonJS({
53676
53676
  configurable: true
53677
53677
  });
53678
53678
  var FileWriteStream = WriteStream;
53679
- Object.defineProperty(fs90, "FileWriteStream", {
53679
+ Object.defineProperty(fs89, "FileWriteStream", {
53680
53680
  get: function() {
53681
53681
  return FileWriteStream;
53682
53682
  },
@@ -53725,13 +53725,13 @@ var require_graceful_fs = __commonJS({
53725
53725
  });
53726
53726
  }
53727
53727
  function createReadStream6(path98, options) {
53728
- return new fs90.ReadStream(path98, options);
53728
+ return new fs89.ReadStream(path98, options);
53729
53729
  }
53730
53730
  function createWriteStream5(path98, options) {
53731
- return new fs90.WriteStream(path98, options);
53731
+ return new fs89.WriteStream(path98, options);
53732
53732
  }
53733
- var fs$open = fs90.open;
53734
- fs90.open = open5;
53733
+ var fs$open = fs89.open;
53734
+ fs89.open = open5;
53735
53735
  function open5(path98, flags2, mode, cb) {
53736
53736
  if (typeof mode === "function")
53737
53737
  cb = mode, mode = null;
@@ -53747,20 +53747,20 @@ var require_graceful_fs = __commonJS({
53747
53747
  });
53748
53748
  }
53749
53749
  }
53750
- return fs90;
53750
+ return fs89;
53751
53751
  }
53752
53752
  function enqueue(elem) {
53753
53753
  debug2("ENQUEUE", elem[0].name, elem[1]);
53754
- fs89[gracefulQueue].push(elem);
53754
+ fs88[gracefulQueue].push(elem);
53755
53755
  retry();
53756
53756
  }
53757
53757
  var retryTimer;
53758
53758
  function resetQueue() {
53759
53759
  var now = Date.now();
53760
- for (var i3 = 0; i3 < fs89[gracefulQueue].length; ++i3) {
53761
- if (fs89[gracefulQueue][i3].length > 2) {
53762
- fs89[gracefulQueue][i3][3] = now;
53763
- fs89[gracefulQueue][i3][4] = now;
53760
+ for (var i3 = 0; i3 < fs88[gracefulQueue].length; ++i3) {
53761
+ if (fs88[gracefulQueue][i3].length > 2) {
53762
+ fs88[gracefulQueue][i3][3] = now;
53763
+ fs88[gracefulQueue][i3][4] = now;
53764
53764
  }
53765
53765
  }
53766
53766
  retry();
@@ -53768,9 +53768,9 @@ var require_graceful_fs = __commonJS({
53768
53768
  function retry() {
53769
53769
  clearTimeout(retryTimer);
53770
53770
  retryTimer = void 0;
53771
- if (fs89[gracefulQueue].length === 0)
53771
+ if (fs88[gracefulQueue].length === 0)
53772
53772
  return;
53773
- var elem = fs89[gracefulQueue].shift();
53773
+ var elem = fs88[gracefulQueue].shift();
53774
53774
  var fn2 = elem[0];
53775
53775
  var args2 = elem[1];
53776
53776
  var err2 = elem[2];
@@ -53792,7 +53792,7 @@ var require_graceful_fs = __commonJS({
53792
53792
  debug2("RETRY", fn2.name, args2);
53793
53793
  fn2.apply(null, args2.concat([startTime]));
53794
53794
  } else {
53795
- fs89[gracefulQueue].push(elem);
53795
+ fs88[gracefulQueue].push(elem);
53796
53796
  }
53797
53797
  }
53798
53798
  if (retryTimer === void 0) {
@@ -53807,7 +53807,7 @@ var require_fs = __commonJS({
53807
53807
  "packages/a2a-server/node_modules/fs-extra/lib/fs/index.js"(exports2) {
53808
53808
  "use strict";
53809
53809
  var u2 = require_universalify().fromCallback;
53810
- var fs89 = require_graceful_fs();
53810
+ var fs88 = require_graceful_fs();
53811
53811
  var api = [
53812
53812
  "access",
53813
53813
  "appendFile",
@@ -53848,26 +53848,26 @@ var require_fs = __commonJS({
53848
53848
  "utimes",
53849
53849
  "writeFile"
53850
53850
  ].filter((key) => {
53851
- return typeof fs89[key] === "function";
53851
+ return typeof fs88[key] === "function";
53852
53852
  });
53853
- Object.assign(exports2, fs89);
53853
+ Object.assign(exports2, fs88);
53854
53854
  api.forEach((method) => {
53855
- exports2[method] = u2(fs89[method]);
53855
+ exports2[method] = u2(fs88[method]);
53856
53856
  });
53857
53857
  exports2.exists = function(filename, callback) {
53858
53858
  if (typeof callback === "function") {
53859
- return fs89.exists(filename, callback);
53859
+ return fs88.exists(filename, callback);
53860
53860
  }
53861
53861
  return new Promise((resolve23) => {
53862
- return fs89.exists(filename, resolve23);
53862
+ return fs88.exists(filename, resolve23);
53863
53863
  });
53864
53864
  };
53865
53865
  exports2.read = function(fd, buffer, offset, length, position, callback) {
53866
53866
  if (typeof callback === "function") {
53867
- return fs89.read(fd, buffer, offset, length, position, callback);
53867
+ return fs88.read(fd, buffer, offset, length, position, callback);
53868
53868
  }
53869
53869
  return new Promise((resolve23, reject) => {
53870
- fs89.read(fd, buffer, offset, length, position, (err2, bytesRead, buffer2) => {
53870
+ fs88.read(fd, buffer, offset, length, position, (err2, bytesRead, buffer2) => {
53871
53871
  if (err2) return reject(err2);
53872
53872
  resolve23({ bytesRead, buffer: buffer2 });
53873
53873
  });
@@ -53875,10 +53875,10 @@ var require_fs = __commonJS({
53875
53875
  };
53876
53876
  exports2.write = function(fd, buffer, ...args2) {
53877
53877
  if (typeof args2[args2.length - 1] === "function") {
53878
- return fs89.write(fd, buffer, ...args2);
53878
+ return fs88.write(fd, buffer, ...args2);
53879
53879
  }
53880
53880
  return new Promise((resolve23, reject) => {
53881
- fs89.write(fd, buffer, ...args2, (err2, bytesWritten, buffer2) => {
53881
+ fs88.write(fd, buffer, ...args2, (err2, bytesWritten, buffer2) => {
53882
53882
  if (err2) return reject(err2);
53883
53883
  resolve23({ bytesWritten, buffer: buffer2 });
53884
53884
  });
@@ -53886,10 +53886,10 @@ var require_fs = __commonJS({
53886
53886
  };
53887
53887
  exports2.readv = function(fd, buffers, ...args2) {
53888
53888
  if (typeof args2[args2.length - 1] === "function") {
53889
- return fs89.readv(fd, buffers, ...args2);
53889
+ return fs88.readv(fd, buffers, ...args2);
53890
53890
  }
53891
53891
  return new Promise((resolve23, reject) => {
53892
- fs89.readv(fd, buffers, ...args2, (err2, bytesRead, buffers2) => {
53892
+ fs88.readv(fd, buffers, ...args2, (err2, bytesRead, buffers2) => {
53893
53893
  if (err2) return reject(err2);
53894
53894
  resolve23({ bytesRead, buffers: buffers2 });
53895
53895
  });
@@ -53897,17 +53897,17 @@ var require_fs = __commonJS({
53897
53897
  };
53898
53898
  exports2.writev = function(fd, buffers, ...args2) {
53899
53899
  if (typeof args2[args2.length - 1] === "function") {
53900
- return fs89.writev(fd, buffers, ...args2);
53900
+ return fs88.writev(fd, buffers, ...args2);
53901
53901
  }
53902
53902
  return new Promise((resolve23, reject) => {
53903
- fs89.writev(fd, buffers, ...args2, (err2, bytesWritten, buffers2) => {
53903
+ fs88.writev(fd, buffers, ...args2, (err2, bytesWritten, buffers2) => {
53904
53904
  if (err2) return reject(err2);
53905
53905
  resolve23({ bytesWritten, buffers: buffers2 });
53906
53906
  });
53907
53907
  });
53908
53908
  };
53909
- if (typeof fs89.realpath.native === "function") {
53910
- exports2.realpath.native = u2(fs89.realpath.native);
53909
+ if (typeof fs88.realpath.native === "function") {
53910
+ exports2.realpath.native = u2(fs88.realpath.native);
53911
53911
  } else {
53912
53912
  process.emitWarning(
53913
53913
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -53940,7 +53940,7 @@ var require_utils5 = __commonJS({
53940
53940
  var require_make_dir = __commonJS({
53941
53941
  "packages/a2a-server/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
53942
53942
  "use strict";
53943
- var fs89 = require_fs();
53943
+ var fs88 = require_fs();
53944
53944
  var { checkPath } = require_utils5();
53945
53945
  var getMode = (options) => {
53946
53946
  const defaults2 = { mode: 511 };
@@ -53949,14 +53949,14 @@ var require_make_dir = __commonJS({
53949
53949
  };
53950
53950
  module2.exports.makeDir = async (dir, options) => {
53951
53951
  checkPath(dir);
53952
- return fs89.mkdir(dir, {
53952
+ return fs88.mkdir(dir, {
53953
53953
  mode: getMode(options),
53954
53954
  recursive: true
53955
53955
  });
53956
53956
  };
53957
53957
  module2.exports.makeDirSync = (dir, options) => {
53958
53958
  checkPath(dir);
53959
- return fs89.mkdirSync(dir, {
53959
+ return fs88.mkdirSync(dir, {
53960
53960
  mode: getMode(options),
53961
53961
  recursive: true
53962
53962
  });
@@ -53988,13 +53988,13 @@ var require_path_exists = __commonJS({
53988
53988
  "packages/a2a-server/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
53989
53989
  "use strict";
53990
53990
  var u2 = require_universalify().fromPromise;
53991
- var fs89 = require_fs();
53991
+ var fs88 = require_fs();
53992
53992
  function pathExists2(path98) {
53993
- return fs89.access(path98).then(() => true).catch(() => false);
53993
+ return fs88.access(path98).then(() => true).catch(() => false);
53994
53994
  }
53995
53995
  module2.exports = {
53996
53996
  pathExists: u2(pathExists2),
53997
- pathExistsSync: fs89.existsSync
53997
+ pathExistsSync: fs88.existsSync
53998
53998
  };
53999
53999
  }
54000
54000
  });
@@ -54003,16 +54003,16 @@ var require_path_exists = __commonJS({
54003
54003
  var require_utimes = __commonJS({
54004
54004
  "packages/a2a-server/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
54005
54005
  "use strict";
54006
- var fs89 = require_fs();
54006
+ var fs88 = require_fs();
54007
54007
  var u2 = require_universalify().fromPromise;
54008
54008
  async function utimesMillis(path98, atime, mtime) {
54009
- const fd = await fs89.open(path98, "r+");
54009
+ const fd = await fs88.open(path98, "r+");
54010
54010
  let closeErr = null;
54011
54011
  try {
54012
- await fs89.futimes(fd, atime, mtime);
54012
+ await fs88.futimes(fd, atime, mtime);
54013
54013
  } finally {
54014
54014
  try {
54015
- await fs89.close(fd);
54015
+ await fs88.close(fd);
54016
54016
  } catch (e3) {
54017
54017
  closeErr = e3;
54018
54018
  }
@@ -54022,9 +54022,9 @@ var require_utimes = __commonJS({
54022
54022
  }
54023
54023
  }
54024
54024
  function utimesMillisSync(path98, atime, mtime) {
54025
- const fd = fs89.openSync(path98, "r+");
54026
- fs89.futimesSync(fd, atime, mtime);
54027
- return fs89.closeSync(fd);
54025
+ const fd = fs88.openSync(path98, "r+");
54026
+ fs88.futimesSync(fd, atime, mtime);
54027
+ return fs88.closeSync(fd);
54028
54028
  }
54029
54029
  module2.exports = {
54030
54030
  utimesMillis: u2(utimesMillis),
@@ -54037,11 +54037,11 @@ var require_utimes = __commonJS({
54037
54037
  var require_stat = __commonJS({
54038
54038
  "packages/a2a-server/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
54039
54039
  "use strict";
54040
- var fs89 = require_fs();
54040
+ var fs88 = require_fs();
54041
54041
  var path98 = __require("path");
54042
54042
  var u2 = require_universalify().fromPromise;
54043
54043
  function getStats(src, dest, opts) {
54044
- const statFunc = opts.dereference ? (file) => fs89.stat(file, { bigint: true }) : (file) => fs89.lstat(file, { bigint: true });
54044
+ const statFunc = opts.dereference ? (file) => fs88.stat(file, { bigint: true }) : (file) => fs88.lstat(file, { bigint: true });
54045
54045
  return Promise.all([
54046
54046
  statFunc(src),
54047
54047
  statFunc(dest).catch((err2) => {
@@ -54052,7 +54052,7 @@ var require_stat = __commonJS({
54052
54052
  }
54053
54053
  function getStatsSync(src, dest, opts) {
54054
54054
  let destStat;
54055
- const statFunc = opts.dereference ? (file) => fs89.statSync(file, { bigint: true }) : (file) => fs89.lstatSync(file, { bigint: true });
54055
+ const statFunc = opts.dereference ? (file) => fs88.statSync(file, { bigint: true }) : (file) => fs88.lstatSync(file, { bigint: true });
54056
54056
  const srcStat = statFunc(src);
54057
54057
  try {
54058
54058
  destStat = statFunc(dest);
@@ -54114,7 +54114,7 @@ var require_stat = __commonJS({
54114
54114
  if (destParent === srcParent || destParent === path98.parse(destParent).root) return;
54115
54115
  let destStat;
54116
54116
  try {
54117
- destStat = await fs89.stat(destParent, { bigint: true });
54117
+ destStat = await fs88.stat(destParent, { bigint: true });
54118
54118
  } catch (err2) {
54119
54119
  if (err2.code === "ENOENT") return;
54120
54120
  throw err2;
@@ -54130,7 +54130,7 @@ var require_stat = __commonJS({
54130
54130
  if (destParent === srcParent || destParent === path98.parse(destParent).root) return;
54131
54131
  let destStat;
54132
54132
  try {
54133
- destStat = fs89.statSync(destParent, { bigint: true });
54133
+ destStat = fs88.statSync(destParent, { bigint: true });
54134
54134
  } catch (err2) {
54135
54135
  if (err2.code === "ENOENT") return;
54136
54136
  throw err2;
@@ -54169,7 +54169,7 @@ var require_stat = __commonJS({
54169
54169
  var require_copy = __commonJS({
54170
54170
  "packages/a2a-server/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
54171
54171
  "use strict";
54172
- var fs89 = require_fs();
54172
+ var fs88 = require_fs();
54173
54173
  var path98 = __require("path");
54174
54174
  var { mkdirs } = require_mkdirs();
54175
54175
  var { pathExists: pathExists2 } = require_path_exists();
@@ -54204,7 +54204,7 @@ var require_copy = __commonJS({
54204
54204
  return opts.filter(src, dest);
54205
54205
  }
54206
54206
  async function getStatsAndPerformCopy(destStat, src, dest, opts) {
54207
- const statFn = opts.dereference ? fs89.stat : fs89.lstat;
54207
+ const statFn = opts.dereference ? fs88.stat : fs88.lstat;
54208
54208
  const srcStat = await statFn(src);
54209
54209
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
54210
54210
  if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -54216,7 +54216,7 @@ var require_copy = __commonJS({
54216
54216
  async function onFile(srcStat, destStat, src, dest, opts) {
54217
54217
  if (!destStat) return copyFile2(srcStat, src, dest, opts);
54218
54218
  if (opts.overwrite) {
54219
- await fs89.unlink(dest);
54219
+ await fs88.unlink(dest);
54220
54220
  return copyFile2(srcStat, src, dest, opts);
54221
54221
  }
54222
54222
  if (opts.errorOnExist) {
@@ -54224,28 +54224,28 @@ var require_copy = __commonJS({
54224
54224
  }
54225
54225
  }
54226
54226
  async function copyFile2(srcStat, src, dest, opts) {
54227
- await fs89.copyFile(src, dest);
54227
+ await fs88.copyFile(src, dest);
54228
54228
  if (opts.preserveTimestamps) {
54229
54229
  if (fileIsNotWritable(srcStat.mode)) {
54230
54230
  await makeFileWritable(dest, srcStat.mode);
54231
54231
  }
54232
- const updatedSrcStat = await fs89.stat(src);
54232
+ const updatedSrcStat = await fs88.stat(src);
54233
54233
  await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
54234
54234
  }
54235
- return fs89.chmod(dest, srcStat.mode);
54235
+ return fs88.chmod(dest, srcStat.mode);
54236
54236
  }
54237
54237
  function fileIsNotWritable(srcMode) {
54238
54238
  return (srcMode & 128) === 0;
54239
54239
  }
54240
54240
  function makeFileWritable(dest, srcMode) {
54241
- return fs89.chmod(dest, srcMode | 128);
54241
+ return fs88.chmod(dest, srcMode | 128);
54242
54242
  }
54243
54243
  async function onDir(srcStat, destStat, src, dest, opts) {
54244
54244
  if (!destStat) {
54245
- await fs89.mkdir(dest);
54245
+ await fs88.mkdir(dest);
54246
54246
  }
54247
54247
  const promises10 = [];
54248
- for await (const item of await fs89.opendir(src)) {
54248
+ for await (const item of await fs88.opendir(src)) {
54249
54249
  const srcItem = path98.join(src, item.name);
54250
54250
  const destItem = path98.join(dest, item.name);
54251
54251
  promises10.push(
@@ -54260,22 +54260,22 @@ var require_copy = __commonJS({
54260
54260
  }
54261
54261
  await Promise.all(promises10);
54262
54262
  if (!destStat) {
54263
- await fs89.chmod(dest, srcStat.mode);
54263
+ await fs88.chmod(dest, srcStat.mode);
54264
54264
  }
54265
54265
  }
54266
54266
  async function onLink(destStat, src, dest, opts) {
54267
- let resolvedSrc = await fs89.readlink(src);
54267
+ let resolvedSrc = await fs88.readlink(src);
54268
54268
  if (opts.dereference) {
54269
54269
  resolvedSrc = path98.resolve(process.cwd(), resolvedSrc);
54270
54270
  }
54271
54271
  if (!destStat) {
54272
- return fs89.symlink(resolvedSrc, dest);
54272
+ return fs88.symlink(resolvedSrc, dest);
54273
54273
  }
54274
54274
  let resolvedDest = null;
54275
54275
  try {
54276
- resolvedDest = await fs89.readlink(dest);
54276
+ resolvedDest = await fs88.readlink(dest);
54277
54277
  } catch (e3) {
54278
- if (e3.code === "EINVAL" || e3.code === "UNKNOWN") return fs89.symlink(resolvedSrc, dest);
54278
+ if (e3.code === "EINVAL" || e3.code === "UNKNOWN") return fs88.symlink(resolvedSrc, dest);
54279
54279
  throw e3;
54280
54280
  }
54281
54281
  if (opts.dereference) {
@@ -54287,8 +54287,8 @@ var require_copy = __commonJS({
54287
54287
  if (stat7.isSrcSubdir(resolvedDest, resolvedSrc)) {
54288
54288
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
54289
54289
  }
54290
- await fs89.unlink(dest);
54291
- return fs89.symlink(resolvedSrc, dest);
54290
+ await fs88.unlink(dest);
54291
+ return fs88.symlink(resolvedSrc, dest);
54292
54292
  }
54293
54293
  module2.exports = copy;
54294
54294
  }
@@ -54298,7 +54298,7 @@ var require_copy = __commonJS({
54298
54298
  var require_copy_sync = __commonJS({
54299
54299
  "packages/a2a-server/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
54300
54300
  "use strict";
54301
- var fs89 = require_graceful_fs();
54301
+ var fs88 = require_graceful_fs();
54302
54302
  var path98 = __require("path");
54303
54303
  var mkdirsSync = require_mkdirs().mkdirsSync;
54304
54304
  var utimesMillisSync = require_utimes().utimesMillisSync;
@@ -54321,11 +54321,11 @@ var require_copy_sync = __commonJS({
54321
54321
  stat7.checkParentPathsSync(src, srcStat, dest, "copy");
54322
54322
  if (opts.filter && !opts.filter(src, dest)) return;
54323
54323
  const destParent = path98.dirname(dest);
54324
- if (!fs89.existsSync(destParent)) mkdirsSync(destParent);
54324
+ if (!fs88.existsSync(destParent)) mkdirsSync(destParent);
54325
54325
  return getStats(destStat, src, dest, opts);
54326
54326
  }
54327
54327
  function getStats(destStat, src, dest, opts) {
54328
- const statSync6 = opts.dereference ? fs89.statSync : fs89.lstatSync;
54328
+ const statSync6 = opts.dereference ? fs88.statSync : fs88.lstatSync;
54329
54329
  const srcStat = statSync6(src);
54330
54330
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
54331
54331
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -54340,14 +54340,14 @@ var require_copy_sync = __commonJS({
54340
54340
  }
54341
54341
  function mayCopyFile(srcStat, src, dest, opts) {
54342
54342
  if (opts.overwrite) {
54343
- fs89.unlinkSync(dest);
54343
+ fs88.unlinkSync(dest);
54344
54344
  return copyFile2(srcStat, src, dest, opts);
54345
54345
  } else if (opts.errorOnExist) {
54346
54346
  throw new Error(`'${dest}' already exists`);
54347
54347
  }
54348
54348
  }
54349
54349
  function copyFile2(srcStat, src, dest, opts) {
54350
- fs89.copyFileSync(src, dest);
54350
+ fs88.copyFileSync(src, dest);
54351
54351
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
54352
54352
  return setDestMode(dest, srcStat.mode);
54353
54353
  }
@@ -54362,10 +54362,10 @@ var require_copy_sync = __commonJS({
54362
54362
  return setDestMode(dest, srcMode | 128);
54363
54363
  }
54364
54364
  function setDestMode(dest, srcMode) {
54365
- return fs89.chmodSync(dest, srcMode);
54365
+ return fs88.chmodSync(dest, srcMode);
54366
54366
  }
54367
54367
  function setDestTimestamps(src, dest) {
54368
- const updatedSrcStat = fs89.statSync(src);
54368
+ const updatedSrcStat = fs88.statSync(src);
54369
54369
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
54370
54370
  }
54371
54371
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -54373,12 +54373,12 @@ var require_copy_sync = __commonJS({
54373
54373
  return copyDir(src, dest, opts);
54374
54374
  }
54375
54375
  function mkDirAndCopy(srcMode, src, dest, opts) {
54376
- fs89.mkdirSync(dest);
54376
+ fs88.mkdirSync(dest);
54377
54377
  copyDir(src, dest, opts);
54378
54378
  return setDestMode(dest, srcMode);
54379
54379
  }
54380
54380
  function copyDir(src, dest, opts) {
54381
- const dir = fs89.opendirSync(src);
54381
+ const dir = fs88.opendirSync(src);
54382
54382
  try {
54383
54383
  let dirent;
54384
54384
  while ((dirent = dir.readSync()) !== null) {
@@ -54396,18 +54396,18 @@ var require_copy_sync = __commonJS({
54396
54396
  return getStats(destStat, srcItem, destItem, opts);
54397
54397
  }
54398
54398
  function onLink(destStat, src, dest, opts) {
54399
- let resolvedSrc = fs89.readlinkSync(src);
54399
+ let resolvedSrc = fs88.readlinkSync(src);
54400
54400
  if (opts.dereference) {
54401
54401
  resolvedSrc = path98.resolve(process.cwd(), resolvedSrc);
54402
54402
  }
54403
54403
  if (!destStat) {
54404
- return fs89.symlinkSync(resolvedSrc, dest);
54404
+ return fs88.symlinkSync(resolvedSrc, dest);
54405
54405
  } else {
54406
54406
  let resolvedDest;
54407
54407
  try {
54408
- resolvedDest = fs89.readlinkSync(dest);
54408
+ resolvedDest = fs88.readlinkSync(dest);
54409
54409
  } catch (err2) {
54410
- if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs89.symlinkSync(resolvedSrc, dest);
54410
+ if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs88.symlinkSync(resolvedSrc, dest);
54411
54411
  throw err2;
54412
54412
  }
54413
54413
  if (opts.dereference) {
@@ -54423,8 +54423,8 @@ var require_copy_sync = __commonJS({
54423
54423
  }
54424
54424
  }
54425
54425
  function copyLink(resolvedSrc, dest) {
54426
- fs89.unlinkSync(dest);
54427
- return fs89.symlinkSync(resolvedSrc, dest);
54426
+ fs88.unlinkSync(dest);
54427
+ return fs88.symlinkSync(resolvedSrc, dest);
54428
54428
  }
54429
54429
  module2.exports = copySync;
54430
54430
  }
@@ -54446,13 +54446,13 @@ var require_copy2 = __commonJS({
54446
54446
  var require_remove = __commonJS({
54447
54447
  "packages/a2a-server/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
54448
54448
  "use strict";
54449
- var fs89 = require_graceful_fs();
54449
+ var fs88 = require_graceful_fs();
54450
54450
  var u2 = require_universalify().fromCallback;
54451
54451
  function remove3(path98, callback) {
54452
- fs89.rm(path98, { recursive: true, force: true }, callback);
54452
+ fs88.rm(path98, { recursive: true, force: true }, callback);
54453
54453
  }
54454
54454
  function removeSync(path98) {
54455
- fs89.rmSync(path98, { recursive: true, force: true });
54455
+ fs88.rmSync(path98, { recursive: true, force: true });
54456
54456
  }
54457
54457
  module2.exports = {
54458
54458
  remove: u2(remove3),
@@ -54466,14 +54466,14 @@ var require_empty = __commonJS({
54466
54466
  "packages/a2a-server/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
54467
54467
  "use strict";
54468
54468
  var u2 = require_universalify().fromPromise;
54469
- var fs89 = require_fs();
54469
+ var fs88 = require_fs();
54470
54470
  var path98 = __require("path");
54471
54471
  var mkdir11 = require_mkdirs();
54472
54472
  var remove3 = require_remove();
54473
54473
  var emptyDir = u2(async function emptyDir2(dir) {
54474
54474
  let items;
54475
54475
  try {
54476
- items = await fs89.readdir(dir);
54476
+ items = await fs88.readdir(dir);
54477
54477
  } catch {
54478
54478
  return mkdir11.mkdirs(dir);
54479
54479
  }
@@ -54482,7 +54482,7 @@ var require_empty = __commonJS({
54482
54482
  function emptyDirSync(dir) {
54483
54483
  let items;
54484
54484
  try {
54485
- items = fs89.readdirSync(dir);
54485
+ items = fs88.readdirSync(dir);
54486
54486
  } catch {
54487
54487
  return mkdir11.mkdirsSync(dir);
54488
54488
  }
@@ -54506,51 +54506,51 @@ var require_file2 = __commonJS({
54506
54506
  "use strict";
54507
54507
  var u2 = require_universalify().fromPromise;
54508
54508
  var path98 = __require("path");
54509
- var fs89 = require_fs();
54509
+ var fs88 = require_fs();
54510
54510
  var mkdir11 = require_mkdirs();
54511
54511
  async function createFile(file) {
54512
54512
  let stats;
54513
54513
  try {
54514
- stats = await fs89.stat(file);
54514
+ stats = await fs88.stat(file);
54515
54515
  } catch {
54516
54516
  }
54517
54517
  if (stats && stats.isFile()) return;
54518
54518
  const dir = path98.dirname(file);
54519
54519
  let dirStats = null;
54520
54520
  try {
54521
- dirStats = await fs89.stat(dir);
54521
+ dirStats = await fs88.stat(dir);
54522
54522
  } catch (err2) {
54523
54523
  if (err2.code === "ENOENT") {
54524
54524
  await mkdir11.mkdirs(dir);
54525
- await fs89.writeFile(file, "");
54525
+ await fs88.writeFile(file, "");
54526
54526
  return;
54527
54527
  } else {
54528
54528
  throw err2;
54529
54529
  }
54530
54530
  }
54531
54531
  if (dirStats.isDirectory()) {
54532
- await fs89.writeFile(file, "");
54532
+ await fs88.writeFile(file, "");
54533
54533
  } else {
54534
- await fs89.readdir(dir);
54534
+ await fs88.readdir(dir);
54535
54535
  }
54536
54536
  }
54537
54537
  function createFileSync(file) {
54538
54538
  let stats;
54539
54539
  try {
54540
- stats = fs89.statSync(file);
54540
+ stats = fs88.statSync(file);
54541
54541
  } catch {
54542
54542
  }
54543
54543
  if (stats && stats.isFile()) return;
54544
54544
  const dir = path98.dirname(file);
54545
54545
  try {
54546
- if (!fs89.statSync(dir).isDirectory()) {
54547
- fs89.readdirSync(dir);
54546
+ if (!fs88.statSync(dir).isDirectory()) {
54547
+ fs88.readdirSync(dir);
54548
54548
  }
54549
54549
  } catch (err2) {
54550
54550
  if (err2 && err2.code === "ENOENT") mkdir11.mkdirsSync(dir);
54551
54551
  else throw err2;
54552
54552
  }
54553
- fs89.writeFileSync(file, "");
54553
+ fs88.writeFileSync(file, "");
54554
54554
  }
54555
54555
  module2.exports = {
54556
54556
  createFile: u2(createFile),
@@ -54565,19 +54565,19 @@ var require_link = __commonJS({
54565
54565
  "use strict";
54566
54566
  var u2 = require_universalify().fromPromise;
54567
54567
  var path98 = __require("path");
54568
- var fs89 = require_fs();
54568
+ var fs88 = require_fs();
54569
54569
  var mkdir11 = require_mkdirs();
54570
54570
  var { pathExists: pathExists2 } = require_path_exists();
54571
54571
  var { areIdentical } = require_stat();
54572
54572
  async function createLink(srcpath, dstpath) {
54573
54573
  let dstStat;
54574
54574
  try {
54575
- dstStat = await fs89.lstat(dstpath);
54575
+ dstStat = await fs88.lstat(dstpath);
54576
54576
  } catch {
54577
54577
  }
54578
54578
  let srcStat;
54579
54579
  try {
54580
- srcStat = await fs89.lstat(srcpath);
54580
+ srcStat = await fs88.lstat(srcpath);
54581
54581
  } catch (err2) {
54582
54582
  err2.message = err2.message.replace("lstat", "ensureLink");
54583
54583
  throw err2;
@@ -54588,26 +54588,26 @@ var require_link = __commonJS({
54588
54588
  if (!dirExists) {
54589
54589
  await mkdir11.mkdirs(dir);
54590
54590
  }
54591
- await fs89.link(srcpath, dstpath);
54591
+ await fs88.link(srcpath, dstpath);
54592
54592
  }
54593
54593
  function createLinkSync(srcpath, dstpath) {
54594
54594
  let dstStat;
54595
54595
  try {
54596
- dstStat = fs89.lstatSync(dstpath);
54596
+ dstStat = fs88.lstatSync(dstpath);
54597
54597
  } catch {
54598
54598
  }
54599
54599
  try {
54600
- const srcStat = fs89.lstatSync(srcpath);
54600
+ const srcStat = fs88.lstatSync(srcpath);
54601
54601
  if (dstStat && areIdentical(srcStat, dstStat)) return;
54602
54602
  } catch (err2) {
54603
54603
  err2.message = err2.message.replace("lstat", "ensureLink");
54604
54604
  throw err2;
54605
54605
  }
54606
54606
  const dir = path98.dirname(dstpath);
54607
- const dirExists = fs89.existsSync(dir);
54608
- if (dirExists) return fs89.linkSync(srcpath, dstpath);
54607
+ const dirExists = fs88.existsSync(dir);
54608
+ if (dirExists) return fs88.linkSync(srcpath, dstpath);
54609
54609
  mkdir11.mkdirsSync(dir);
54610
- return fs89.linkSync(srcpath, dstpath);
54610
+ return fs88.linkSync(srcpath, dstpath);
54611
54611
  }
54612
54612
  module2.exports = {
54613
54613
  createLink: u2(createLink),
@@ -54621,13 +54621,13 @@ var require_symlink_paths = __commonJS({
54621
54621
  "packages/a2a-server/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
54622
54622
  "use strict";
54623
54623
  var path98 = __require("path");
54624
- var fs89 = require_fs();
54624
+ var fs88 = require_fs();
54625
54625
  var { pathExists: pathExists2 } = require_path_exists();
54626
54626
  var u2 = require_universalify().fromPromise;
54627
54627
  async function symlinkPaths(srcpath, dstpath) {
54628
54628
  if (path98.isAbsolute(srcpath)) {
54629
54629
  try {
54630
- await fs89.lstat(srcpath);
54630
+ await fs88.lstat(srcpath);
54631
54631
  } catch (err2) {
54632
54632
  err2.message = err2.message.replace("lstat", "ensureSymlink");
54633
54633
  throw err2;
@@ -54647,7 +54647,7 @@ var require_symlink_paths = __commonJS({
54647
54647
  };
54648
54648
  }
54649
54649
  try {
54650
- await fs89.lstat(srcpath);
54650
+ await fs88.lstat(srcpath);
54651
54651
  } catch (err2) {
54652
54652
  err2.message = err2.message.replace("lstat", "ensureSymlink");
54653
54653
  throw err2;
@@ -54659,7 +54659,7 @@ var require_symlink_paths = __commonJS({
54659
54659
  }
54660
54660
  function symlinkPathsSync(srcpath, dstpath) {
54661
54661
  if (path98.isAbsolute(srcpath)) {
54662
- const exists3 = fs89.existsSync(srcpath);
54662
+ const exists3 = fs88.existsSync(srcpath);
54663
54663
  if (!exists3) throw new Error("absolute srcpath does not exist");
54664
54664
  return {
54665
54665
  toCwd: srcpath,
@@ -54668,14 +54668,14 @@ var require_symlink_paths = __commonJS({
54668
54668
  }
54669
54669
  const dstdir = path98.dirname(dstpath);
54670
54670
  const relativeToDst = path98.join(dstdir, srcpath);
54671
- const exists2 = fs89.existsSync(relativeToDst);
54671
+ const exists2 = fs88.existsSync(relativeToDst);
54672
54672
  if (exists2) {
54673
54673
  return {
54674
54674
  toCwd: relativeToDst,
54675
54675
  toDst: srcpath
54676
54676
  };
54677
54677
  }
54678
- const srcExists = fs89.existsSync(srcpath);
54678
+ const srcExists = fs88.existsSync(srcpath);
54679
54679
  if (!srcExists) throw new Error("relative srcpath does not exist");
54680
54680
  return {
54681
54681
  toCwd: srcpath,
@@ -54693,13 +54693,13 @@ var require_symlink_paths = __commonJS({
54693
54693
  var require_symlink_type = __commonJS({
54694
54694
  "packages/a2a-server/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
54695
54695
  "use strict";
54696
- var fs89 = require_fs();
54696
+ var fs88 = require_fs();
54697
54697
  var u2 = require_universalify().fromPromise;
54698
54698
  async function symlinkType(srcpath, type2) {
54699
54699
  if (type2) return type2;
54700
54700
  let stats;
54701
54701
  try {
54702
- stats = await fs89.lstat(srcpath);
54702
+ stats = await fs88.lstat(srcpath);
54703
54703
  } catch {
54704
54704
  return "file";
54705
54705
  }
@@ -54709,7 +54709,7 @@ var require_symlink_type = __commonJS({
54709
54709
  if (type2) return type2;
54710
54710
  let stats;
54711
54711
  try {
54712
- stats = fs89.lstatSync(srcpath);
54712
+ stats = fs88.lstatSync(srcpath);
54713
54713
  } catch {
54714
54714
  return "file";
54715
54715
  }
@@ -54728,7 +54728,7 @@ var require_symlink = __commonJS({
54728
54728
  "use strict";
54729
54729
  var u2 = require_universalify().fromPromise;
54730
54730
  var path98 = __require("path");
54731
- var fs89 = require_fs();
54731
+ var fs88 = require_fs();
54732
54732
  var { mkdirs, mkdirsSync } = require_mkdirs();
54733
54733
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
54734
54734
  var { symlinkType, symlinkTypeSync } = require_symlink_type();
@@ -54737,13 +54737,13 @@ var require_symlink = __commonJS({
54737
54737
  async function createSymlink(srcpath, dstpath, type2) {
54738
54738
  let stats;
54739
54739
  try {
54740
- stats = await fs89.lstat(dstpath);
54740
+ stats = await fs88.lstat(dstpath);
54741
54741
  } catch {
54742
54742
  }
54743
54743
  if (stats && stats.isSymbolicLink()) {
54744
54744
  const [srcStat, dstStat] = await Promise.all([
54745
- fs89.stat(srcpath),
54746
- fs89.stat(dstpath)
54745
+ fs88.stat(srcpath),
54746
+ fs88.stat(dstpath)
54747
54747
  ]);
54748
54748
  if (areIdentical(srcStat, dstStat)) return;
54749
54749
  }
@@ -54754,27 +54754,27 @@ var require_symlink = __commonJS({
54754
54754
  if (!await pathExists2(dir)) {
54755
54755
  await mkdirs(dir);
54756
54756
  }
54757
- return fs89.symlink(srcpath, dstpath, toType);
54757
+ return fs88.symlink(srcpath, dstpath, toType);
54758
54758
  }
54759
54759
  function createSymlinkSync(srcpath, dstpath, type2) {
54760
54760
  let stats;
54761
54761
  try {
54762
- stats = fs89.lstatSync(dstpath);
54762
+ stats = fs88.lstatSync(dstpath);
54763
54763
  } catch {
54764
54764
  }
54765
54765
  if (stats && stats.isSymbolicLink()) {
54766
- const srcStat = fs89.statSync(srcpath);
54767
- const dstStat = fs89.statSync(dstpath);
54766
+ const srcStat = fs88.statSync(srcpath);
54767
+ const dstStat = fs88.statSync(dstpath);
54768
54768
  if (areIdentical(srcStat, dstStat)) return;
54769
54769
  }
54770
54770
  const relative5 = symlinkPathsSync(srcpath, dstpath);
54771
54771
  srcpath = relative5.toDst;
54772
54772
  type2 = symlinkTypeSync(relative5.toCwd, type2);
54773
54773
  const dir = path98.dirname(dstpath);
54774
- const exists2 = fs89.existsSync(dir);
54775
- if (exists2) return fs89.symlinkSync(srcpath, dstpath, type2);
54774
+ const exists2 = fs88.existsSync(dir);
54775
+ if (exists2) return fs88.symlinkSync(srcpath, dstpath, type2);
54776
54776
  mkdirsSync(dir);
54777
- return fs89.symlinkSync(srcpath, dstpath, type2);
54777
+ return fs88.symlinkSync(srcpath, dstpath, type2);
54778
54778
  }
54779
54779
  module2.exports = {
54780
54780
  createSymlink: u2(createSymlink),
@@ -54869,9 +54869,9 @@ var require_jsonfile = __commonJS({
54869
54869
  if (typeof options === "string") {
54870
54870
  options = { encoding: options };
54871
54871
  }
54872
- const fs89 = options.fs || _fs;
54872
+ const fs88 = options.fs || _fs;
54873
54873
  const shouldThrow = "throws" in options ? options.throws : true;
54874
- let data = await universalify.fromCallback(fs89.readFile)(file, options);
54874
+ let data = await universalify.fromCallback(fs88.readFile)(file, options);
54875
54875
  data = stripBom(data);
54876
54876
  let obj;
54877
54877
  try {
@@ -54891,10 +54891,10 @@ var require_jsonfile = __commonJS({
54891
54891
  if (typeof options === "string") {
54892
54892
  options = { encoding: options };
54893
54893
  }
54894
- const fs89 = options.fs || _fs;
54894
+ const fs88 = options.fs || _fs;
54895
54895
  const shouldThrow = "throws" in options ? options.throws : true;
54896
54896
  try {
54897
- let content = fs89.readFileSync(file, options);
54897
+ let content = fs88.readFileSync(file, options);
54898
54898
  content = stripBom(content);
54899
54899
  return JSON.parse(content, options.reviver);
54900
54900
  } catch (err2) {
@@ -54907,15 +54907,15 @@ var require_jsonfile = __commonJS({
54907
54907
  }
54908
54908
  }
54909
54909
  async function _writeFile(file, obj, options = {}) {
54910
- const fs89 = options.fs || _fs;
54910
+ const fs88 = options.fs || _fs;
54911
54911
  const str2 = stringify5(obj, options);
54912
- await universalify.fromCallback(fs89.writeFile)(file, str2, options);
54912
+ await universalify.fromCallback(fs88.writeFile)(file, str2, options);
54913
54913
  }
54914
54914
  var writeFile9 = universalify.fromPromise(_writeFile);
54915
54915
  function writeFileSync7(file, obj, options = {}) {
54916
- const fs89 = options.fs || _fs;
54916
+ const fs88 = options.fs || _fs;
54917
54917
  const str2 = stringify5(obj, options);
54918
- return fs89.writeFileSync(file, str2, options);
54918
+ return fs88.writeFileSync(file, str2, options);
54919
54919
  }
54920
54920
  module2.exports = {
54921
54921
  readFile: readFile12,
@@ -54946,7 +54946,7 @@ var require_output_file = __commonJS({
54946
54946
  "packages/a2a-server/node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
54947
54947
  "use strict";
54948
54948
  var u2 = require_universalify().fromPromise;
54949
- var fs89 = require_fs();
54949
+ var fs88 = require_fs();
54950
54950
  var path98 = __require("path");
54951
54951
  var mkdir11 = require_mkdirs();
54952
54952
  var pathExists2 = require_path_exists().pathExists;
@@ -54955,14 +54955,14 @@ var require_output_file = __commonJS({
54955
54955
  if (!await pathExists2(dir)) {
54956
54956
  await mkdir11.mkdirs(dir);
54957
54957
  }
54958
- return fs89.writeFile(file, data, encoding);
54958
+ return fs88.writeFile(file, data, encoding);
54959
54959
  }
54960
54960
  function outputFileSync(file, ...args2) {
54961
54961
  const dir = path98.dirname(file);
54962
- if (!fs89.existsSync(dir)) {
54962
+ if (!fs88.existsSync(dir)) {
54963
54963
  mkdir11.mkdirsSync(dir);
54964
54964
  }
54965
- fs89.writeFileSync(file, ...args2);
54965
+ fs88.writeFileSync(file, ...args2);
54966
54966
  }
54967
54967
  module2.exports = {
54968
54968
  outputFile: u2(outputFile),
@@ -55021,7 +55021,7 @@ var require_json3 = __commonJS({
55021
55021
  var require_move = __commonJS({
55022
55022
  "packages/a2a-server/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
55023
55023
  "use strict";
55024
- var fs89 = require_fs();
55024
+ var fs88 = require_fs();
55025
55025
  var path98 = __require("path");
55026
55026
  var { copy } = require_copy2();
55027
55027
  var { remove: remove3 } = require_remove();
@@ -55048,7 +55048,7 @@ var require_move = __commonJS({
55048
55048
  }
55049
55049
  }
55050
55050
  try {
55051
- await fs89.rename(src, dest);
55051
+ await fs88.rename(src, dest);
55052
55052
  } catch (err2) {
55053
55053
  if (err2.code !== "EXDEV") {
55054
55054
  throw err2;
@@ -55073,7 +55073,7 @@ var require_move = __commonJS({
55073
55073
  var require_move_sync = __commonJS({
55074
55074
  "packages/a2a-server/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
55075
55075
  "use strict";
55076
- var fs89 = require_graceful_fs();
55076
+ var fs88 = require_graceful_fs();
55077
55077
  var path98 = __require("path");
55078
55078
  var copySync = require_copy2().copySync;
55079
55079
  var removeSync = require_remove().removeSync;
@@ -55098,12 +55098,12 @@ var require_move_sync = __commonJS({
55098
55098
  removeSync(dest);
55099
55099
  return rename2(src, dest, overwrite);
55100
55100
  }
55101
- if (fs89.existsSync(dest)) throw new Error("dest already exists.");
55101
+ if (fs88.existsSync(dest)) throw new Error("dest already exists.");
55102
55102
  return rename2(src, dest, overwrite);
55103
55103
  }
55104
55104
  function rename2(src, dest, overwrite) {
55105
55105
  try {
55106
- fs89.renameSync(src, dest);
55106
+ fs88.renameSync(src, dest);
55107
55107
  } catch (err2) {
55108
55108
  if (err2.code !== "EXDEV") throw err2;
55109
55109
  return moveAcrossDevice(src, dest, overwrite);
@@ -65487,11 +65487,11 @@ var require_lib8 = __commonJS({
65487
65487
  "use strict";
65488
65488
  Object.defineProperty(exports2, "__esModule", { value: true });
65489
65489
  exports2.isBinaryFileSync = exports2.isBinaryFile = void 0;
65490
- var fs89 = __require("fs");
65490
+ var fs88 = __require("fs");
65491
65491
  var util_1 = __require("util");
65492
- var statAsync = (0, util_1.promisify)(fs89.stat);
65493
- var openAsync = (0, util_1.promisify)(fs89.open);
65494
- var closeAsync = (0, util_1.promisify)(fs89.close);
65492
+ var statAsync = (0, util_1.promisify)(fs88.stat);
65493
+ var openAsync = (0, util_1.promisify)(fs88.open);
65494
+ var closeAsync = (0, util_1.promisify)(fs88.close);
65495
65495
  var MAX_BYTES = 512;
65496
65496
  var UTF8_BOUNDARY_RESERVE = 3;
65497
65497
  var Reader = class {
@@ -65584,7 +65584,7 @@ var require_lib8 = __commonJS({
65584
65584
  const fileDescriptor = await openAsync(file, "r");
65585
65585
  const allocBuffer = Buffer.alloc(MAX_BYTES + UTF8_BOUNDARY_RESERVE);
65586
65586
  return new Promise((fulfill, reject) => {
65587
- fs89.read(fileDescriptor, allocBuffer, 0, MAX_BYTES + UTF8_BOUNDARY_RESERVE, 0, (err2, bytesRead, _2) => {
65587
+ fs88.read(fileDescriptor, allocBuffer, 0, MAX_BYTES + UTF8_BOUNDARY_RESERVE, 0, (err2, bytesRead, _2) => {
65588
65588
  closeAsync(fileDescriptor);
65589
65589
  if (err2) {
65590
65590
  reject(err2);
@@ -65607,12 +65607,12 @@ var require_lib8 = __commonJS({
65607
65607
  exports2.isBinaryFile = isBinaryFile2;
65608
65608
  function isBinaryFileSync(file, size) {
65609
65609
  if (isString2(file)) {
65610
- const stat7 = fs89.statSync(file);
65610
+ const stat7 = fs88.statSync(file);
65611
65611
  isStatFile(stat7);
65612
- const fileDescriptor = fs89.openSync(file, "r");
65612
+ const fileDescriptor = fs88.openSync(file, "r");
65613
65613
  const allocBuffer = Buffer.alloc(MAX_BYTES + UTF8_BOUNDARY_RESERVE);
65614
- const bytesRead = fs89.readSync(fileDescriptor, allocBuffer, 0, MAX_BYTES + UTF8_BOUNDARY_RESERVE, 0);
65615
- fs89.closeSync(fileDescriptor);
65614
+ const bytesRead = fs88.readSync(fileDescriptor, allocBuffer, 0, MAX_BYTES + UTF8_BOUNDARY_RESERVE, 0);
65615
+ fs88.closeSync(fileDescriptor);
65616
65616
  return isBinaryCheck(allocBuffer, bytesRead);
65617
65617
  } else {
65618
65618
  if (size === void 0) {
@@ -66957,10 +66957,10 @@ var require_mtime_precision = __commonJS({
66957
66957
  "node_modules/proper-lockfile/lib/mtime-precision.js"(exports2, module2) {
66958
66958
  "use strict";
66959
66959
  var cacheSymbol = Symbol();
66960
- function probe(file, fs89, callback) {
66961
- const cachedPrecision = fs89[cacheSymbol];
66960
+ function probe(file, fs88, callback) {
66961
+ const cachedPrecision = fs88[cacheSymbol];
66962
66962
  if (cachedPrecision) {
66963
- return fs89.stat(file, (err2, stat7) => {
66963
+ return fs88.stat(file, (err2, stat7) => {
66964
66964
  if (err2) {
66965
66965
  return callback(err2);
66966
66966
  }
@@ -66968,16 +66968,16 @@ var require_mtime_precision = __commonJS({
66968
66968
  });
66969
66969
  }
66970
66970
  const mtime = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5);
66971
- fs89.utimes(file, mtime, mtime, (err2) => {
66971
+ fs88.utimes(file, mtime, mtime, (err2) => {
66972
66972
  if (err2) {
66973
66973
  return callback(err2);
66974
66974
  }
66975
- fs89.stat(file, (err3, stat7) => {
66975
+ fs88.stat(file, (err3, stat7) => {
66976
66976
  if (err3) {
66977
66977
  return callback(err3);
66978
66978
  }
66979
66979
  const precision = stat7.mtime.getTime() % 1e3 === 0 ? "s" : "ms";
66980
- Object.defineProperty(fs89, cacheSymbol, { value: precision });
66980
+ Object.defineProperty(fs88, cacheSymbol, { value: precision });
66981
66981
  callback(null, stat7.mtime, precision);
66982
66982
  });
66983
66983
  });
@@ -66999,7 +66999,7 @@ var require_lockfile = __commonJS({
66999
66999
  "node_modules/proper-lockfile/lib/lockfile.js"(exports2, module2) {
67000
67000
  "use strict";
67001
67001
  var path98 = __require("path");
67002
- var fs89 = require_graceful_fs();
67002
+ var fs88 = require_graceful_fs();
67003
67003
  var retry = require_retry5();
67004
67004
  var onExit = require_signal_exit();
67005
67005
  var mtimePrecision = require_mtime_precision();
@@ -67130,7 +67130,7 @@ var require_lockfile = __commonJS({
67130
67130
  update: null,
67131
67131
  realpath: true,
67132
67132
  retries: 0,
67133
- fs: fs89,
67133
+ fs: fs88,
67134
67134
  onCompromised: (err2) => {
67135
67135
  throw err2;
67136
67136
  },
@@ -67174,7 +67174,7 @@ var require_lockfile = __commonJS({
67174
67174
  }
67175
67175
  function unlock(file, options, callback) {
67176
67176
  options = {
67177
- fs: fs89,
67177
+ fs: fs88,
67178
67178
  realpath: true,
67179
67179
  ...options
67180
67180
  };
@@ -67196,7 +67196,7 @@ var require_lockfile = __commonJS({
67196
67196
  options = {
67197
67197
  stale: 1e4,
67198
67198
  realpath: true,
67199
- fs: fs89,
67199
+ fs: fs88,
67200
67200
  ...options
67201
67201
  };
67202
67202
  options.stale = Math.max(options.stale || 0, 2e3);
@@ -67235,16 +67235,16 @@ var require_lockfile = __commonJS({
67235
67235
  var require_adapter = __commonJS({
67236
67236
  "node_modules/proper-lockfile/lib/adapter.js"(exports2, module2) {
67237
67237
  "use strict";
67238
- var fs89 = require_graceful_fs();
67239
- function createSyncFs(fs90) {
67238
+ var fs88 = require_graceful_fs();
67239
+ function createSyncFs(fs89) {
67240
67240
  const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
67241
- const newFs = { ...fs90 };
67241
+ const newFs = { ...fs89 };
67242
67242
  methods.forEach((method) => {
67243
67243
  newFs[method] = (...args2) => {
67244
67244
  const callback = args2.pop();
67245
67245
  let ret;
67246
67246
  try {
67247
- ret = fs90[`${method}Sync`](...args2);
67247
+ ret = fs89[`${method}Sync`](...args2);
67248
67248
  } catch (err2) {
67249
67249
  return callback(err2);
67250
67250
  }
@@ -67282,7 +67282,7 @@ var require_adapter = __commonJS({
67282
67282
  }
67283
67283
  function toSyncOptions(options) {
67284
67284
  options = { ...options };
67285
- options.fs = createSyncFs(options.fs || fs89);
67285
+ options.fs = createSyncFs(options.fs || fs88);
67286
67286
  if (typeof options.retries === "number" && options.retries > 0 || options.retries && typeof options.retries.retries === "number" && options.retries.retries > 0) {
67287
67287
  throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
67288
67288
  }
@@ -82271,7 +82271,7 @@ var require_util4 = __commonJS({
82271
82271
  exports2.removeUndefinedValuesInObject = removeUndefinedValuesInObject;
82272
82272
  exports2.isValidFile = isValidFile;
82273
82273
  exports2.getWellKnownCertificateConfigFileLocation = getWellKnownCertificateConfigFileLocation;
82274
- var fs89 = __require("fs");
82274
+ var fs88 = __require("fs");
82275
82275
  var os33 = __require("os");
82276
82276
  var path98 = __require("path");
82277
82277
  var WELL_KNOWN_CERTIFICATE_CONFIG_FILE = "certificate_config.json";
@@ -82359,7 +82359,7 @@ var require_util4 = __commonJS({
82359
82359
  }
82360
82360
  async function isValidFile(filePath) {
82361
82361
  try {
82362
- const stats = await fs89.promises.lstat(filePath);
82362
+ const stats = await fs88.promises.lstat(filePath);
82363
82363
  return stats.isFile();
82364
82364
  } catch (e3) {
82365
82365
  return false;
@@ -83675,7 +83675,7 @@ var require_src15 = __commonJS({
83675
83675
  value: true
83676
83676
  });
83677
83677
  exports2.GoogleToken = void 0;
83678
- var fs89 = _interopRequireWildcard(__require("fs"));
83678
+ var fs88 = _interopRequireWildcard(__require("fs"));
83679
83679
  var _gaxios = require_src12();
83680
83680
  var jws = _interopRequireWildcard(require_jws());
83681
83681
  var path98 = _interopRequireWildcard(__require("path"));
@@ -83918,7 +83918,7 @@ var require_src15 = __commonJS({
83918
83918
  });
83919
83919
  };
83920
83920
  }
83921
- var readFile12 = fs89.readFile ? (0, _util.promisify)(fs89.readFile) : /* @__PURE__ */ _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
83921
+ var readFile12 = fs88.readFile ? (0, _util.promisify)(fs88.readFile) : /* @__PURE__ */ _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
83922
83922
  return _regenerator().w(function(_context) {
83923
83923
  while (1) switch (_context.n) {
83924
83924
  case 0:
@@ -85672,12 +85672,12 @@ var require_filesubjecttokensupplier2 = __commonJS({
85672
85672
  Object.defineProperty(exports2, "__esModule", { value: true });
85673
85673
  exports2.FileSubjectTokenSupplier = void 0;
85674
85674
  var util_1 = __require("util");
85675
- var fs89 = __require("fs");
85676
- var readFile12 = (0, util_1.promisify)(fs89.readFile ?? (() => {
85675
+ var fs88 = __require("fs");
85676
+ var readFile12 = (0, util_1.promisify)(fs88.readFile ?? (() => {
85677
85677
  }));
85678
- var realpath2 = (0, util_1.promisify)(fs89.realpath ?? (() => {
85678
+ var realpath2 = (0, util_1.promisify)(fs88.realpath ?? (() => {
85679
85679
  }));
85680
- var lstat3 = (0, util_1.promisify)(fs89.lstat ?? (() => {
85680
+ var lstat3 = (0, util_1.promisify)(fs88.lstat ?? (() => {
85681
85681
  }));
85682
85682
  var FileSubjectTokenSupplier = class {
85683
85683
  filePath;
@@ -85794,7 +85794,7 @@ var require_certificatesubjecttokensupplier = __commonJS({
85794
85794
  Object.defineProperty(exports2, "__esModule", { value: true });
85795
85795
  exports2.CertificateSubjectTokenSupplier = exports2.InvalidConfigurationError = exports2.CertificateSourceUnavailableError = exports2.CERTIFICATE_CONFIGURATION_ENV_VARIABLE = void 0;
85796
85796
  var util_1 = require_util4();
85797
- var fs89 = __require("fs");
85797
+ var fs88 = __require("fs");
85798
85798
  var crypto_1 = __require("crypto");
85799
85799
  var https2 = __require("https");
85800
85800
  exports2.CERTIFICATE_CONFIGURATION_ENV_VARIABLE = "GOOGLE_API_CERTIFICATE_CONFIG";
@@ -85888,7 +85888,7 @@ var require_certificatesubjecttokensupplier = __commonJS({
85888
85888
  const configPath = this.certificateConfigPath;
85889
85889
  let fileContents;
85890
85890
  try {
85891
- fileContents = await fs89.promises.readFile(configPath, "utf8");
85891
+ fileContents = await fs88.promises.readFile(configPath, "utf8");
85892
85892
  } catch (err2) {
85893
85893
  throw new CertificateSourceUnavailableError(`Failed to read certificate config file at: ${configPath}`);
85894
85894
  }
@@ -85913,14 +85913,14 @@ var require_certificatesubjecttokensupplier = __commonJS({
85913
85913
  async #getKeyAndCert(certPath, keyPath) {
85914
85914
  let cert, key;
85915
85915
  try {
85916
- cert = await fs89.promises.readFile(certPath);
85916
+ cert = await fs88.promises.readFile(certPath);
85917
85917
  new crypto_1.X509Certificate(cert);
85918
85918
  } catch (err2) {
85919
85919
  const message = err2 instanceof Error ? err2.message : String(err2);
85920
85920
  throw new CertificateSourceUnavailableError(`Failed to read certificate file at ${certPath}: ${message}`);
85921
85921
  }
85922
85922
  try {
85923
- key = await fs89.promises.readFile(keyPath);
85923
+ key = await fs88.promises.readFile(keyPath);
85924
85924
  (0, crypto_1.createPrivateKey)(key);
85925
85925
  } catch (err2) {
85926
85926
  const message = err2 instanceof Error ? err2.message : String(err2);
@@ -85939,7 +85939,7 @@ var require_certificatesubjecttokensupplier = __commonJS({
85939
85939
  return JSON.stringify([leafCert.raw.toString("base64")]);
85940
85940
  }
85941
85941
  try {
85942
- const chainPems = await fs89.promises.readFile(this.trustChainPath, "utf8");
85942
+ const chainPems = await fs88.promises.readFile(this.trustChainPath, "utf8");
85943
85943
  const pemBlocks = chainPems.match(/-----BEGIN CERTIFICATE-----[^-]+-----END CERTIFICATE-----/g) ?? [];
85944
85944
  const chainCerts = pemBlocks.map((pem, index) => {
85945
85945
  try {
@@ -86637,7 +86637,7 @@ var require_pluggable_auth_handler2 = __commonJS({
86637
86637
  exports2.PluggableAuthHandler = exports2.ExecutableError = void 0;
86638
86638
  var executable_response_1 = require_executable_response2();
86639
86639
  var childProcess2 = __require("child_process");
86640
- var fs89 = __require("fs");
86640
+ var fs88 = __require("fs");
86641
86641
  var ExecutableError = class extends Error {
86642
86642
  /**
86643
86643
  * The exit code returned by the executable.
@@ -86722,14 +86722,14 @@ var require_pluggable_auth_handler2 = __commonJS({
86722
86722
  }
86723
86723
  let filePath;
86724
86724
  try {
86725
- filePath = await fs89.promises.realpath(this.outputFile);
86725
+ filePath = await fs88.promises.realpath(this.outputFile);
86726
86726
  } catch {
86727
86727
  return void 0;
86728
86728
  }
86729
- if (!(await fs89.promises.lstat(filePath)).isFile()) {
86729
+ if (!(await fs88.promises.lstat(filePath)).isFile()) {
86730
86730
  return void 0;
86731
86731
  }
86732
- const responseString = await fs89.promises.readFile(filePath, {
86732
+ const responseString = await fs88.promises.readFile(filePath, {
86733
86733
  encoding: "utf8"
86734
86734
  });
86735
86735
  if (responseString === "") {
@@ -87139,7 +87139,7 @@ var require_googleauth2 = __commonJS({
87139
87139
  Object.defineProperty(exports2, "__esModule", { value: true });
87140
87140
  exports2.GoogleAuth = exports2.GoogleAuthExceptionMessages = void 0;
87141
87141
  var child_process_1 = __require("child_process");
87142
- var fs89 = __require("fs");
87142
+ var fs88 = __require("fs");
87143
87143
  var gaxios_1 = require_src12();
87144
87144
  var gcpMetadata = require_src14();
87145
87145
  var os33 = __require("os");
@@ -87434,7 +87434,7 @@ var require_googleauth2 = __commonJS({
87434
87434
  }
87435
87435
  if (location) {
87436
87436
  location = path98.join(location, "gcloud", "application_default_credentials.json");
87437
- if (!fs89.existsSync(location)) {
87437
+ if (!fs88.existsSync(location)) {
87438
87438
  location = null;
87439
87439
  }
87440
87440
  }
@@ -87455,8 +87455,8 @@ var require_googleauth2 = __commonJS({
87455
87455
  throw new Error("The file path is invalid.");
87456
87456
  }
87457
87457
  try {
87458
- filePath = fs89.realpathSync(filePath);
87459
- if (!fs89.lstatSync(filePath).isFile()) {
87458
+ filePath = fs88.realpathSync(filePath);
87459
+ if (!fs88.lstatSync(filePath).isFile()) {
87460
87460
  throw new Error();
87461
87461
  }
87462
87462
  } catch (err2) {
@@ -87465,7 +87465,7 @@ var require_googleauth2 = __commonJS({
87465
87465
  }
87466
87466
  throw err2;
87467
87467
  }
87468
- const readStream = fs89.createReadStream(filePath);
87468
+ const readStream = fs88.createReadStream(filePath);
87469
87469
  return this.fromStream(readStream, options);
87470
87470
  }
87471
87471
  /**
@@ -87778,7 +87778,7 @@ var require_googleauth2 = __commonJS({
87778
87778
  return this._cacheClientFromJSON(this.jsonContent, this.clientOptions);
87779
87779
  } else if (this.keyFilename) {
87780
87780
  const filePath = path98.resolve(this.keyFilename);
87781
- const stream2 = fs89.createReadStream(filePath);
87781
+ const stream2 = fs88.createReadStream(filePath);
87782
87782
  return await this.fromStreamAsync(stream2, this.clientOptions);
87783
87783
  } else if (this.apiKey) {
87784
87784
  const client = await this.fromAPIKey(this.apiKey, this.clientOptions);
@@ -109664,12 +109664,12 @@ var require_filesubjecttokensupplier3 = __commonJS({
109664
109664
  Object.defineProperty(exports2, "__esModule", { value: true });
109665
109665
  exports2.FileSubjectTokenSupplier = void 0;
109666
109666
  var util_1 = __require("util");
109667
- var fs89 = __require("fs");
109668
- var readFile12 = (0, util_1.promisify)((_a4 = fs89.readFile) !== null && _a4 !== void 0 ? _a4 : () => {
109667
+ var fs88 = __require("fs");
109668
+ var readFile12 = (0, util_1.promisify)((_a4 = fs88.readFile) !== null && _a4 !== void 0 ? _a4 : () => {
109669
109669
  });
109670
- var realpath2 = (0, util_1.promisify)((_b = fs89.realpath) !== null && _b !== void 0 ? _b : () => {
109670
+ var realpath2 = (0, util_1.promisify)((_b = fs88.realpath) !== null && _b !== void 0 ? _b : () => {
109671
109671
  });
109672
- var lstat3 = (0, util_1.promisify)((_c = fs89.lstat) !== null && _c !== void 0 ? _c : () => {
109672
+ var lstat3 = (0, util_1.promisify)((_c = fs88.lstat) !== null && _c !== void 0 ? _c : () => {
109673
109673
  });
109674
109674
  var FileSubjectTokenSupplier = class {
109675
109675
  /**
@@ -110387,7 +110387,7 @@ var require_pluggable_auth_handler3 = __commonJS({
110387
110387
  var pluggable_auth_client_1 = require_pluggable_auth_client3();
110388
110388
  var executable_response_1 = require_executable_response3();
110389
110389
  var childProcess2 = __require("child_process");
110390
- var fs89 = __require("fs");
110390
+ var fs88 = __require("fs");
110391
110391
  var PluggableAuthHandler = class _PluggableAuthHandler {
110392
110392
  /**
110393
110393
  * Instantiates a PluggableAuthHandler instance using the provided
@@ -110457,14 +110457,14 @@ var require_pluggable_auth_handler3 = __commonJS({
110457
110457
  }
110458
110458
  let filePath;
110459
110459
  try {
110460
- filePath = await fs89.promises.realpath(this.outputFile);
110460
+ filePath = await fs88.promises.realpath(this.outputFile);
110461
110461
  } catch (_a4) {
110462
110462
  return void 0;
110463
110463
  }
110464
- if (!(await fs89.promises.lstat(filePath)).isFile()) {
110464
+ if (!(await fs88.promises.lstat(filePath)).isFile()) {
110465
110465
  return void 0;
110466
110466
  }
110467
- const responseString = await fs89.promises.readFile(filePath, {
110467
+ const responseString = await fs88.promises.readFile(filePath, {
110468
110468
  encoding: "utf8"
110469
110469
  });
110470
110470
  if (responseString === "") {
@@ -110870,7 +110870,7 @@ var require_googleauth3 = __commonJS({
110870
110870
  Object.defineProperty(exports2, "__esModule", { value: true });
110871
110871
  exports2.GoogleAuth = exports2.CLOUD_SDK_CLIENT_ID = void 0;
110872
110872
  var child_process_1 = __require("child_process");
110873
- var fs89 = __require("fs");
110873
+ var fs88 = __require("fs");
110874
110874
  var gcpMetadata = require_src4();
110875
110875
  var os33 = __require("os");
110876
110876
  var path98 = __require("path");
@@ -111144,7 +111144,7 @@ var require_googleauth3 = __commonJS({
111144
111144
  }
111145
111145
  if (location) {
111146
111146
  location = path98.join(location, "gcloud", "application_default_credentials.json");
111147
- if (!fs89.existsSync(location)) {
111147
+ if (!fs88.existsSync(location)) {
111148
111148
  location = null;
111149
111149
  }
111150
111150
  }
@@ -111165,8 +111165,8 @@ var require_googleauth3 = __commonJS({
111165
111165
  throw new Error("The file path is invalid.");
111166
111166
  }
111167
111167
  try {
111168
- filePath = fs89.realpathSync(filePath);
111169
- if (!fs89.lstatSync(filePath).isFile()) {
111168
+ filePath = fs88.realpathSync(filePath);
111169
+ if (!fs88.lstatSync(filePath).isFile()) {
111170
111170
  throw new Error();
111171
111171
  }
111172
111172
  } catch (err2) {
@@ -111175,7 +111175,7 @@ var require_googleauth3 = __commonJS({
111175
111175
  }
111176
111176
  throw err2;
111177
111177
  }
111178
- const readStream = fs89.createReadStream(filePath);
111178
+ const readStream = fs88.createReadStream(filePath);
111179
111179
  return this.fromStream(readStream, options);
111180
111180
  }
111181
111181
  /**
@@ -111441,7 +111441,7 @@ var require_googleauth3 = __commonJS({
111441
111441
  this._cacheClientFromJSON(this.jsonContent, this.clientOptions);
111442
111442
  } else if (this.keyFilename) {
111443
111443
  const filePath = path98.resolve(this.keyFilename);
111444
- const stream2 = fs89.createReadStream(filePath);
111444
+ const stream2 = fs88.createReadStream(filePath);
111445
111445
  await this.fromStreamAsync(stream2, this.clientOptions);
111446
111446
  } else {
111447
111447
  await this.getApplicationDefaultAsync(this.clientOptions);
@@ -126241,12 +126241,12 @@ var require_dist8 = __commonJS({
126241
126241
  throw new Error(`Unknown format "${name3}"`);
126242
126242
  return f4;
126243
126243
  };
126244
- function addFormats2(ajv, list, fs89, exportName) {
126244
+ function addFormats2(ajv, list, fs88, exportName) {
126245
126245
  var _a4;
126246
126246
  var _b;
126247
126247
  (_a4 = (_b = ajv.opts.code).formats) !== null && _a4 !== void 0 ? _a4 : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
126248
126248
  for (const f4 of list)
126249
- ajv.addFormat(f4, fs89[f4]);
126249
+ ajv.addFormat(f4, fs88[f4]);
126250
126250
  }
126251
126251
  module2.exports = exports2 = formatsPlugin;
126252
126252
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -138245,14 +138245,14 @@ var require_tls_helpers = __commonJS({
138245
138245
  Object.defineProperty(exports2, "__esModule", { value: true });
138246
138246
  exports2.CIPHER_SUITES = void 0;
138247
138247
  exports2.getDefaultRootsData = getDefaultRootsData;
138248
- var fs89 = __require("fs");
138248
+ var fs88 = __require("fs");
138249
138249
  exports2.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES;
138250
138250
  var DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH;
138251
138251
  var defaultRootsData = null;
138252
138252
  function getDefaultRootsData() {
138253
138253
  if (DEFAULT_ROOTS_FILE_PATH) {
138254
138254
  if (defaultRootsData === null) {
138255
- defaultRootsData = fs89.readFileSync(DEFAULT_ROOTS_FILE_PATH);
138255
+ defaultRootsData = fs88.readFileSync(DEFAULT_ROOTS_FILE_PATH);
138256
138256
  }
138257
138257
  return defaultRootsData;
138258
138258
  }
@@ -143787,7 +143787,7 @@ var require_fetch = __commonJS({
143787
143787
  module2.exports = fetch3;
143788
143788
  var asPromise = require_aspromise();
143789
143789
  var inquire = require_inquire();
143790
- var fs89 = inquire("fs");
143790
+ var fs88 = inquire("fs");
143791
143791
  function fetch3(filename, options, callback) {
143792
143792
  if (typeof options === "function") {
143793
143793
  callback = options;
@@ -143796,8 +143796,8 @@ var require_fetch = __commonJS({
143796
143796
  options = {};
143797
143797
  if (!callback)
143798
143798
  return asPromise(fetch3, this, filename, options);
143799
- if (!options.xhr && fs89 && fs89.readFile)
143800
- return fs89.readFile(filename, function fetchReadFileCallback(err2, contents) {
143799
+ if (!options.xhr && fs88 && fs88.readFile)
143800
+ return fs88.readFile(filename, function fetchReadFileCallback(err2, contents) {
143801
143801
  return err2 && typeof XMLHttpRequest !== "undefined" ? fetch3.xhr(filename, options, callback) : err2 ? callback(err2) : callback(null, options.binary ? contents : contents.toString("utf8"));
143802
143802
  });
143803
143803
  return fetch3.xhr(filename, options, callback);
@@ -150150,7 +150150,7 @@ var require_util9 = __commonJS({
150150
150150
  "use strict";
150151
150151
  Object.defineProperty(exports2, "__esModule", { value: true });
150152
150152
  exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
150153
- var fs89 = __require("fs");
150153
+ var fs88 = __require("fs");
150154
150154
  var path98 = __require("path");
150155
150155
  var Protobuf = require_protobufjs();
150156
150156
  function addIncludePathResolver(root, includePaths) {
@@ -150162,7 +150162,7 @@ var require_util9 = __commonJS({
150162
150162
  for (const directory of includePaths) {
150163
150163
  const fullPath = path98.join(directory, target);
150164
150164
  try {
150165
- fs89.accessSync(fullPath, fs89.constants.R_OK);
150165
+ fs88.accessSync(fullPath, fs88.constants.R_OK);
150166
150166
  return fullPath;
150167
150167
  } catch (err2) {
150168
150168
  continue;
@@ -159984,7 +159984,7 @@ var require_certificate_provider = __commonJS({
159984
159984
  "use strict";
159985
159985
  Object.defineProperty(exports2, "__esModule", { value: true });
159986
159986
  exports2.FileWatcherCertificateProvider = void 0;
159987
- var fs89 = __require("fs");
159987
+ var fs88 = __require("fs");
159988
159988
  var logging = require_logging();
159989
159989
  var constants_1 = require_constants3();
159990
159990
  var util_1 = __require("util");
@@ -159992,7 +159992,7 @@ var require_certificate_provider = __commonJS({
159992
159992
  function trace2(text) {
159993
159993
  logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME2, text);
159994
159994
  }
159995
- var readFilePromise = (0, util_1.promisify)(fs89.readFile);
159995
+ var readFilePromise = (0, util_1.promisify)(fs88.readFile);
159996
159996
  var FileWatcherCertificateProvider = class {
159997
159997
  constructor(config3) {
159998
159998
  this.config = config3;
@@ -162507,7 +162507,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
162507
162507
  var core_1 = require_src19();
162508
162508
  var grpc_exporter_transport_1 = require_grpc_exporter_transport();
162509
162509
  var node_http_1 = (init_index_node_http(), __toCommonJS(index_node_http_exports));
162510
- var fs89 = __require("fs");
162510
+ var fs88 = __require("fs");
162511
162511
  var path98 = __require("path");
162512
162512
  var api_1 = (init_esm(), __toCommonJS(esm_exports2));
162513
162513
  function fallbackIfNullishOrBlank(signalSpecific, nonSignalSpecific) {
@@ -162557,7 +162557,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
162557
162557
  const filePath = fallbackIfNullishOrBlank(signalSpecificPath, nonSignalSpecificPath);
162558
162558
  if (filePath != null) {
162559
162559
  try {
162560
- return fs89.readFileSync(path98.resolve(process.cwd(), filePath));
162560
+ return fs88.readFileSync(path98.resolve(process.cwd(), filePath));
162561
162561
  } catch {
162562
162562
  api_1.diag.warn(warningMessage);
162563
162563
  return void 0;
@@ -173339,9 +173339,9 @@ var require_instrumentation = __commonJS({
173339
173339
  var require_module_details_from_path = __commonJS({
173340
173340
  "node_modules/module-details-from-path/index.js"(exports2, module2) {
173341
173341
  "use strict";
173342
- var sep8 = __require("path").sep;
173342
+ var sep9 = __require("path").sep;
173343
173343
  module2.exports = function(file) {
173344
- var segments = file.split(sep8);
173344
+ var segments = file.split(sep9);
173345
173345
  var index = segments.lastIndexOf("node_modules");
173346
173346
  if (index === -1) return;
173347
173347
  if (!segments[index + 1]) return;
@@ -173354,7 +173354,7 @@ var require_module_details_from_path = __commonJS({
173354
173354
  if (i3 === lastBaseDirSegmentIndex) {
173355
173355
  basedir += segments[i3];
173356
173356
  } else {
173357
- basedir += segments[i3] + sep8;
173357
+ basedir += segments[i3] + sep9;
173358
173358
  }
173359
173359
  }
173360
173360
  var path98 = "";
@@ -173363,7 +173363,7 @@ var require_module_details_from_path = __commonJS({
173363
173363
  if (i22 === lastSegmentIndex) {
173364
173364
  path98 += segments[i22];
173365
173365
  } else {
173366
- path98 += segments[i22] + sep8;
173366
+ path98 += segments[i22] + sep9;
173367
173367
  }
173368
173368
  }
173369
173369
  return {
@@ -175725,7 +175725,7 @@ var require_utils17 = __commonJS({
175725
175725
  var exporter_metrics_otlp_http_1 = require_src29();
175726
175726
  var exporter_metrics_otlp_proto_1 = require_src44();
175727
175727
  var sdk_logs_1 = require_src33();
175728
- var fs89 = __require("fs");
175728
+ var fs88 = __require("fs");
175729
175729
  var RESOURCE_DETECTOR_ENVIRONMENT = "env";
175730
175730
  var RESOURCE_DETECTOR_HOST = "host";
175731
175731
  var RESOURCE_DETECTOR_OS = "os";
@@ -176148,21 +176148,21 @@ var require_utils17 = __commonJS({
176148
176148
  const httpsAgentOptions = {};
176149
176149
  if (tls.ca_file) {
176150
176150
  try {
176151
- httpsAgentOptions.ca = fs89.readFileSync(tls.ca_file);
176151
+ httpsAgentOptions.ca = fs88.readFileSync(tls.ca_file);
176152
176152
  } catch (e3) {
176153
176153
  api_1.diag.warn(`Failed to read TLS CA file at ${tls.ca_file}: ${e3}`);
176154
176154
  }
176155
176155
  }
176156
176156
  if (tls.cert_file) {
176157
176157
  try {
176158
- httpsAgentOptions.cert = fs89.readFileSync(tls.cert_file);
176158
+ httpsAgentOptions.cert = fs88.readFileSync(tls.cert_file);
176159
176159
  } catch (e3) {
176160
176160
  api_1.diag.warn(`Failed to read TLS cert file at ${tls.cert_file}: ${e3}`);
176161
176161
  }
176162
176162
  }
176163
176163
  if (tls.key_file) {
176164
176164
  try {
176165
- httpsAgentOptions.key = fs89.readFileSync(tls.key_file);
176165
+ httpsAgentOptions.key = fs88.readFileSync(tls.key_file);
176166
176166
  } catch (e3) {
176167
176167
  api_1.diag.warn(`Failed to read TLS key file at ${tls.key_file}: ${e3}`);
176168
176168
  }
@@ -181327,10 +181327,10 @@ var require_resolve_block_map = __commonJS({
181327
181327
  let offset = bm.offset;
181328
181328
  let commentEnd = null;
181329
181329
  for (const collItem of bm.items) {
181330
- const { start: start2, key, sep: sep8, value } = collItem;
181330
+ const { start: start2, key, sep: sep9, value } = collItem;
181331
181331
  const keyProps = resolveProps.resolveProps(start2, {
181332
181332
  indicator: "explicit-key-ind",
181333
- next: key ?? sep8?.[0],
181333
+ next: key ?? sep9?.[0],
181334
181334
  offset,
181335
181335
  onError: onError2,
181336
181336
  parentIndent: bm.indent,
@@ -181344,7 +181344,7 @@ var require_resolve_block_map = __commonJS({
181344
181344
  else if ("indent" in key && key.indent !== bm.indent)
181345
181345
  onError2(offset, "BAD_INDENT", startColMsg);
181346
181346
  }
181347
- if (!keyProps.anchor && !keyProps.tag && !sep8) {
181347
+ if (!keyProps.anchor && !keyProps.tag && !sep9) {
181348
181348
  commentEnd = keyProps.end;
181349
181349
  if (keyProps.comment) {
181350
181350
  if (map3.comment)
@@ -181368,7 +181368,7 @@ var require_resolve_block_map = __commonJS({
181368
181368
  ctx.atKey = false;
181369
181369
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
181370
181370
  onError2(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
181371
- const valueProps = resolveProps.resolveProps(sep8 ?? [], {
181371
+ const valueProps = resolveProps.resolveProps(sep9 ?? [], {
181372
181372
  indicator: "map-value-ind",
181373
181373
  next: value,
181374
181374
  offset: keyNode.range[2],
@@ -181384,7 +181384,7 @@ var require_resolve_block_map = __commonJS({
181384
181384
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
181385
181385
  onError2(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
181386
181386
  }
181387
- const valueNode = value ? composeNode2(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep8, null, valueProps, onError2);
181387
+ const valueNode = value ? composeNode2(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep9, null, valueProps, onError2);
181388
181388
  if (ctx.schema.compat)
181389
181389
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError2);
181390
181390
  offset = valueNode.range[2];
@@ -181475,7 +181475,7 @@ var require_resolve_end = __commonJS({
181475
181475
  let comment = "";
181476
181476
  if (end) {
181477
181477
  let hasSpace = false;
181478
- let sep8 = "";
181478
+ let sep9 = "";
181479
181479
  for (const token2 of end) {
181480
181480
  const { source, type: type2 } = token2;
181481
181481
  switch (type2) {
@@ -181489,13 +181489,13 @@ var require_resolve_end = __commonJS({
181489
181489
  if (!comment)
181490
181490
  comment = cb;
181491
181491
  else
181492
- comment += sep8 + cb;
181493
- sep8 = "";
181492
+ comment += sep9 + cb;
181493
+ sep9 = "";
181494
181494
  break;
181495
181495
  }
181496
181496
  case "newline":
181497
181497
  if (comment)
181498
- sep8 += source;
181498
+ sep9 += source;
181499
181499
  hasSpace = true;
181500
181500
  break;
181501
181501
  default:
@@ -181538,18 +181538,18 @@ var require_resolve_flow_collection = __commonJS({
181538
181538
  let offset = fc.offset + fc.start.source.length;
181539
181539
  for (let i3 = 0; i3 < fc.items.length; ++i3) {
181540
181540
  const collItem = fc.items[i3];
181541
- const { start: start2, key, sep: sep8, value } = collItem;
181541
+ const { start: start2, key, sep: sep9, value } = collItem;
181542
181542
  const props = resolveProps.resolveProps(start2, {
181543
181543
  flow: fcName,
181544
181544
  indicator: "explicit-key-ind",
181545
- next: key ?? sep8?.[0],
181545
+ next: key ?? sep9?.[0],
181546
181546
  offset,
181547
181547
  onError: onError2,
181548
181548
  parentIndent: fc.indent,
181549
181549
  startOnNewline: false
181550
181550
  });
181551
181551
  if (!props.found) {
181552
- if (!props.anchor && !props.tag && !sep8 && !value) {
181552
+ if (!props.anchor && !props.tag && !sep9 && !value) {
181553
181553
  if (i3 === 0 && props.comma)
181554
181554
  onError2(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
181555
181555
  else if (i3 < fc.items.length - 1)
@@ -181603,8 +181603,8 @@ var require_resolve_flow_collection = __commonJS({
181603
181603
  }
181604
181604
  }
181605
181605
  }
181606
- if (!isMap && !sep8 && !props.found) {
181607
- const valueNode = value ? composeNode2(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep8, null, props, onError2);
181606
+ if (!isMap && !sep9 && !props.found) {
181607
+ const valueNode = value ? composeNode2(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep9, null, props, onError2);
181608
181608
  coll.items.push(valueNode);
181609
181609
  offset = valueNode.range[2];
181610
181610
  if (isBlock(value))
@@ -181616,7 +181616,7 @@ var require_resolve_flow_collection = __commonJS({
181616
181616
  if (isBlock(key))
181617
181617
  onError2(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
181618
181618
  ctx.atKey = false;
181619
- const valueProps = resolveProps.resolveProps(sep8 ?? [], {
181619
+ const valueProps = resolveProps.resolveProps(sep9 ?? [], {
181620
181620
  flow: fcName,
181621
181621
  indicator: "map-value-ind",
181622
181622
  next: value,
@@ -181627,8 +181627,8 @@ var require_resolve_flow_collection = __commonJS({
181627
181627
  });
181628
181628
  if (valueProps.found) {
181629
181629
  if (!isMap && !props.found && ctx.options.strict) {
181630
- if (sep8)
181631
- for (const st2 of sep8) {
181630
+ if (sep9)
181631
+ for (const st2 of sep9) {
181632
181632
  if (st2 === valueProps.found)
181633
181633
  break;
181634
181634
  if (st2.type === "newline") {
@@ -181645,7 +181645,7 @@ var require_resolve_flow_collection = __commonJS({
181645
181645
  else
181646
181646
  onError2(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
181647
181647
  }
181648
- const valueNode = value ? composeNode2(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep8, null, valueProps, onError2) : null;
181648
+ const valueNode = value ? composeNode2(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep9, null, valueProps, onError2) : null;
181649
181649
  if (valueNode) {
181650
181650
  if (isBlock(value))
181651
181651
  onError2(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -181825,7 +181825,7 @@ var require_resolve_block_scalar = __commonJS({
181825
181825
  chompStart = i3 + 1;
181826
181826
  }
181827
181827
  let value = "";
181828
- let sep8 = "";
181828
+ let sep9 = "";
181829
181829
  let prevMoreIndented = false;
181830
181830
  for (let i3 = 0; i3 < contentStart; ++i3)
181831
181831
  value += lines[i3][0].slice(trimIndent) + "\n";
@@ -181842,24 +181842,24 @@ var require_resolve_block_scalar = __commonJS({
181842
181842
  indent = "";
181843
181843
  }
181844
181844
  if (type2 === Scalar.Scalar.BLOCK_LITERAL) {
181845
- value += sep8 + indent.slice(trimIndent) + content;
181846
- sep8 = "\n";
181845
+ value += sep9 + indent.slice(trimIndent) + content;
181846
+ sep9 = "\n";
181847
181847
  } else if (indent.length > trimIndent || content[0] === " ") {
181848
- if (sep8 === " ")
181849
- sep8 = "\n";
181850
- else if (!prevMoreIndented && sep8 === "\n")
181851
- sep8 = "\n\n";
181852
- value += sep8 + indent.slice(trimIndent) + content;
181853
- sep8 = "\n";
181848
+ if (sep9 === " ")
181849
+ sep9 = "\n";
181850
+ else if (!prevMoreIndented && sep9 === "\n")
181851
+ sep9 = "\n\n";
181852
+ value += sep9 + indent.slice(trimIndent) + content;
181853
+ sep9 = "\n";
181854
181854
  prevMoreIndented = true;
181855
181855
  } else if (content === "") {
181856
- if (sep8 === "\n")
181856
+ if (sep9 === "\n")
181857
181857
  value += "\n";
181858
181858
  else
181859
- sep8 = "\n";
181859
+ sep9 = "\n";
181860
181860
  } else {
181861
- value += sep8 + content;
181862
- sep8 = " ";
181861
+ value += sep9 + content;
181862
+ sep9 = " ";
181863
181863
  prevMoreIndented = false;
181864
181864
  }
181865
181865
  }
@@ -182041,25 +182041,25 @@ var require_resolve_flow_scalar = __commonJS({
182041
182041
  if (!match2)
182042
182042
  return source;
182043
182043
  let res = match2[1];
182044
- let sep8 = " ";
182044
+ let sep9 = " ";
182045
182045
  let pos = first2.lastIndex;
182046
182046
  line.lastIndex = pos;
182047
182047
  while (match2 = line.exec(source)) {
182048
182048
  if (match2[1] === "") {
182049
- if (sep8 === "\n")
182050
- res += sep8;
182049
+ if (sep9 === "\n")
182050
+ res += sep9;
182051
182051
  else
182052
- sep8 = "\n";
182052
+ sep9 = "\n";
182053
182053
  } else {
182054
- res += sep8 + match2[1];
182055
- sep8 = " ";
182054
+ res += sep9 + match2[1];
182055
+ sep9 = " ";
182056
182056
  }
182057
182057
  pos = line.lastIndex;
182058
182058
  }
182059
182059
  const last2 = /[ \t]*(.*)/sy;
182060
182060
  last2.lastIndex = pos;
182061
182061
  match2 = last2.exec(source);
182062
- return res + sep8 + (match2?.[1] ?? "");
182062
+ return res + sep9 + (match2?.[1] ?? "");
182063
182063
  }
182064
182064
  function doubleQuotedValue(source, onError2) {
182065
182065
  let res = "";
@@ -182866,14 +182866,14 @@ var require_cst_stringify = __commonJS({
182866
182866
  }
182867
182867
  }
182868
182868
  }
182869
- function stringifyItem({ start: start2, key, sep: sep8, value }) {
182869
+ function stringifyItem({ start: start2, key, sep: sep9, value }) {
182870
182870
  let res = "";
182871
182871
  for (const st2 of start2)
182872
182872
  res += st2.source;
182873
182873
  if (key)
182874
182874
  res += stringifyToken(key);
182875
- if (sep8)
182876
- for (const st2 of sep8)
182875
+ if (sep9)
182876
+ for (const st2 of sep9)
182877
182877
  res += st2.source;
182878
182878
  if (value)
182879
182879
  res += stringifyToken(value);
@@ -184023,18 +184023,18 @@ var require_parser2 = __commonJS({
184023
184023
  if (this.type === "map-value-ind") {
184024
184024
  const prev = getPrevProps(this.peek(2));
184025
184025
  const start2 = getFirstKeyStartProps(prev);
184026
- let sep8;
184026
+ let sep9;
184027
184027
  if (scalar.end) {
184028
- sep8 = scalar.end;
184029
- sep8.push(this.sourceToken);
184028
+ sep9 = scalar.end;
184029
+ sep9.push(this.sourceToken);
184030
184030
  delete scalar.end;
184031
184031
  } else
184032
- sep8 = [this.sourceToken];
184032
+ sep9 = [this.sourceToken];
184033
184033
  const map3 = {
184034
184034
  type: "block-map",
184035
184035
  offset: scalar.offset,
184036
184036
  indent: scalar.indent,
184037
- items: [{ start: start2, key: scalar, sep: sep8 }]
184037
+ items: [{ start: start2, key: scalar, sep: sep9 }]
184038
184038
  };
184039
184039
  this.onKeyLine = true;
184040
184040
  this.stack[this.stack.length - 1] = map3;
@@ -184187,15 +184187,15 @@ var require_parser2 = __commonJS({
184187
184187
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
184188
184188
  const start3 = getFirstKeyStartProps(it2.start);
184189
184189
  const key = it2.key;
184190
- const sep8 = it2.sep;
184191
- sep8.push(this.sourceToken);
184190
+ const sep9 = it2.sep;
184191
+ sep9.push(this.sourceToken);
184192
184192
  delete it2.key;
184193
184193
  delete it2.sep;
184194
184194
  this.stack.push({
184195
184195
  type: "block-map",
184196
184196
  offset: this.offset,
184197
184197
  indent: this.indent,
184198
- items: [{ start: start3, key, sep: sep8 }]
184198
+ items: [{ start: start3, key, sep: sep9 }]
184199
184199
  });
184200
184200
  } else if (start2.length > 0) {
184201
184201
  it2.sep = it2.sep.concat(start2, this.sourceToken);
@@ -184224,14 +184224,14 @@ var require_parser2 = __commonJS({
184224
184224
  case "scalar":
184225
184225
  case "single-quoted-scalar":
184226
184226
  case "double-quoted-scalar": {
184227
- const fs89 = this.flowScalar(this.type);
184227
+ const fs88 = this.flowScalar(this.type);
184228
184228
  if (atNextItem || it2.value) {
184229
- map3.items.push({ start: start2, key: fs89, sep: [] });
184229
+ map3.items.push({ start: start2, key: fs88, sep: [] });
184230
184230
  this.onKeyLine = true;
184231
184231
  } else if (it2.sep) {
184232
- this.stack.push(fs89);
184232
+ this.stack.push(fs88);
184233
184233
  } else {
184234
- Object.assign(it2, { key: fs89, sep: [] });
184234
+ Object.assign(it2, { key: fs88, sep: [] });
184235
184235
  this.onKeyLine = true;
184236
184236
  }
184237
184237
  return;
@@ -184359,13 +184359,13 @@ var require_parser2 = __commonJS({
184359
184359
  case "scalar":
184360
184360
  case "single-quoted-scalar":
184361
184361
  case "double-quoted-scalar": {
184362
- const fs89 = this.flowScalar(this.type);
184362
+ const fs88 = this.flowScalar(this.type);
184363
184363
  if (!it2 || it2.value)
184364
- fc.items.push({ start: [], key: fs89, sep: [] });
184364
+ fc.items.push({ start: [], key: fs88, sep: [] });
184365
184365
  else if (it2.sep)
184366
- this.stack.push(fs89);
184366
+ this.stack.push(fs88);
184367
184367
  else
184368
- Object.assign(it2, { key: fs89, sep: [] });
184368
+ Object.assign(it2, { key: fs88, sep: [] });
184369
184369
  return;
184370
184370
  }
184371
184371
  case "flow-map-end":
@@ -184389,13 +184389,13 @@ var require_parser2 = __commonJS({
184389
184389
  const prev = getPrevProps(parent);
184390
184390
  const start2 = getFirstKeyStartProps(prev);
184391
184391
  fixFlowSeqItems(fc);
184392
- const sep8 = fc.end.splice(1, fc.end.length);
184393
- sep8.push(this.sourceToken);
184392
+ const sep9 = fc.end.splice(1, fc.end.length);
184393
+ sep9.push(this.sourceToken);
184394
184394
  const map3 = {
184395
184395
  type: "block-map",
184396
184396
  offset: fc.offset,
184397
184397
  indent: fc.indent,
184398
- items: [{ start: start2, key: fc, sep: sep8 }]
184398
+ items: [{ start: start2, key: fc, sep: sep9 }]
184399
184399
  };
184400
184400
  this.onKeyLine = true;
184401
184401
  this.stack[this.stack.length - 1] = map3;
@@ -193068,7 +193068,7 @@ var require_FileConfigFactory = __commonJS({
193068
193068
  Object.defineProperty(exports2, "__esModule", { value: true });
193069
193069
  exports2.parseConfigFile = exports2.FileConfigFactory = void 0;
193070
193070
  var core_1 = require_src19();
193071
- var fs89 = __require("fs");
193071
+ var fs88 = __require("fs");
193072
193072
  var yaml = require_dist9();
193073
193073
  var utils_1 = require_utils18();
193074
193074
  var validateConfig = require_validator();
@@ -193085,7 +193085,7 @@ var require_FileConfigFactory = __commonJS({
193085
193085
  function parseConfigFile() {
193086
193086
  const supportedFileVersionPattern = /^1\.0$/;
193087
193087
  const configFile = (0, core_1.getStringFromEnv)("OTEL_CONFIG_FILE") || "";
193088
- const file = fs89.readFileSync(configFile, "utf8");
193088
+ const file = fs88.readFileSync(configFile, "utf8");
193089
193089
  const rawParsed = yaml.parse(file);
193090
193090
  const processed = substituteEnvVars(rawParsed);
193091
193091
  const fileFormat = processed?.file_format;
@@ -193102,8 +193102,8 @@ var require_FileConfigFactory = __commonJS({
193102
193102
  const err2 = validateConfig.errors[0];
193103
193103
  detail = `${err2.instancePath} ${err2.message}`;
193104
193104
  } else {
193105
- const sep8 = "\n ";
193106
- detail = sep8 + validateConfig.errors.map((e3) => `${e3.instancePath} ${e3.message}`).join(sep8);
193105
+ const sep9 = "\n ";
193106
+ detail = sep9 + validateConfig.errors.map((e3) => `${e3.instancePath} ${e3.message}`).join(sep9);
193107
193107
  }
193108
193108
  throw new Error(`Invalid OpenTelemetry config file: ${configFile}: ${detail}`);
193109
193109
  }
@@ -195156,7 +195156,7 @@ var require_util12 = __commonJS({
195156
195156
  "packages/core/node_modules/systeminformation/lib/util.js"(exports2) {
195157
195157
  "use strict";
195158
195158
  var os33 = __require("os");
195159
- var fs89 = __require("fs");
195159
+ var fs88 = __require("fs");
195160
195160
  var path98 = __require("path");
195161
195161
  var spawn10 = __require("child_process").spawn;
195162
195162
  var exec3 = __require("child_process").exec;
@@ -195453,7 +195453,7 @@ var require_util12 = __commonJS({
195453
195453
  _powerShell = "powershell.exe";
195454
195454
  if (_windows) {
195455
195455
  const defaultPath = `${WINDIR}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;
195456
- if (fs89.existsSync(defaultPath)) {
195456
+ if (fs88.existsSync(defaultPath)) {
195457
195457
  _powerShell = defaultPath;
195458
195458
  }
195459
195459
  }
@@ -195461,7 +195461,7 @@ var require_util12 = __commonJS({
195461
195461
  function getWmic() {
195462
195462
  if (os33.type() === "Windows_NT" && !wmicPath) {
195463
195463
  wmicPath = WINDIR + "\\system32\\wbem\\wmic.exe";
195464
- if (!fs89.existsSync(wmicPath)) {
195464
+ if (!fs88.existsSync(wmicPath)) {
195465
195465
  try {
195466
195466
  const wmicPathArray = execSync3("WHERE WMIC", execOptsWin).toString().split("\r\n");
195467
195467
  if (wmicPathArray && wmicPathArray.length) {
@@ -195746,7 +195746,7 @@ var require_util12 = __commonJS({
195746
195746
  cpuinfo = _rpi_cpuinfo;
195747
195747
  } else if (cpuinfo === void 0) {
195748
195748
  try {
195749
- cpuinfo = fs89.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
195749
+ cpuinfo = fs88.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
195750
195750
  _rpi_cpuinfo = cpuinfo;
195751
195751
  } catch (e3) {
195752
195752
  return false;
@@ -195759,7 +195759,7 @@ var require_util12 = __commonJS({
195759
195759
  function isRaspbian() {
195760
195760
  let osrelease = [];
195761
195761
  try {
195762
- osrelease = fs89.readFileSync("/etc/os-release", { encoding: "utf8" }).toString().split("\n");
195762
+ osrelease = fs88.readFileSync("/etc/os-release", { encoding: "utf8" }).toString().split("\n");
195763
195763
  } catch (e3) {
195764
195764
  return false;
195765
195765
  }
@@ -195777,9 +195777,9 @@ var require_util12 = __commonJS({
195777
195777
  });
195778
195778
  }
195779
195779
  function darwinXcodeExists() {
195780
- const cmdLineToolsExists = fs89.existsSync("/Library/Developer/CommandLineTools/usr/bin/");
195781
- const xcodeAppExists = fs89.existsSync("/Applications/Xcode.app/Contents/Developer/Tools");
195782
- const xcodeExists = fs89.existsSync("/Library/Developer/Xcode/");
195780
+ const cmdLineToolsExists = fs88.existsSync("/Library/Developer/CommandLineTools/usr/bin/");
195781
+ const xcodeAppExists = fs88.existsSync("/Applications/Xcode.app/Contents/Developer/Tools");
195782
+ const xcodeExists = fs88.existsSync("/Library/Developer/Xcode/");
195783
195783
  return cmdLineToolsExists || xcodeExists || xcodeAppExists;
195784
195784
  }
195785
195785
  function nanoSeconds() {
@@ -195897,8 +195897,8 @@ var require_util12 = __commonJS({
195897
195897
  return ("00000000" + parseInt(hex, 16).toString(2)).substr(-8);
195898
195898
  }
195899
195899
  function getFilesInPath(source) {
195900
- const lstatSync3 = fs89.lstatSync;
195901
- const readdirSync4 = fs89.readdirSync;
195900
+ const lstatSync3 = fs88.lstatSync;
195901
+ const readdirSync4 = fs88.readdirSync;
195902
195902
  const join40 = path98.join;
195903
195903
  function isDirectory(source2) {
195904
195904
  return lstatSync3(source2).isDirectory();
@@ -195929,7 +195929,7 @@ var require_util12 = __commonJS({
195929
195929
  return [];
195930
195930
  }
195931
195931
  }
195932
- if (fs89.existsSync(source)) {
195932
+ if (fs88.existsSync(source)) {
195933
195933
  return getFilesRecursively(source);
195934
195934
  } else {
195935
195935
  return [];
@@ -196145,7 +196145,7 @@ var require_util12 = __commonJS({
196145
196145
  cpuinfo = _rpi_cpuinfo;
196146
196146
  } else {
196147
196147
  try {
196148
- cpuinfo = fs89.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
196148
+ cpuinfo = fs88.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
196149
196149
  _rpi_cpuinfo = cpuinfo;
196150
196150
  } catch (e3) {
196151
196151
  return false;
@@ -197699,7 +197699,7 @@ var require_util12 = __commonJS({
197699
197699
  var require_system = __commonJS({
197700
197700
  "packages/core/node_modules/systeminformation/lib/system.js"(exports2) {
197701
197701
  "use strict";
197702
- var fs89 = __require("fs");
197702
+ var fs88 = __require("fs");
197703
197703
  var os33 = __require("os");
197704
197704
  var util5 = require_util12();
197705
197705
  var exec3 = __require("child_process").exec;
@@ -197837,7 +197837,7 @@ var require_system = __commonJS({
197837
197837
  util5.noop();
197838
197838
  }
197839
197839
  }
197840
- if (fs89.existsSync("/.dockerenv") || fs89.existsSync("/.dockerinit")) {
197840
+ if (fs88.existsSync("/.dockerenv") || fs88.existsSync("/.dockerinit")) {
197841
197841
  result2.model = "Docker Container";
197842
197842
  }
197843
197843
  try {
@@ -197865,7 +197865,7 @@ var require_system = __commonJS({
197865
197865
  util5.noop();
197866
197866
  }
197867
197867
  if (result2.manufacturer === "" && result2.model === "Computer" && result2.version === "") {
197868
- fs89.readFile("/proc/cpuinfo", function(error3, stdout2) {
197868
+ fs88.readFile("/proc/cpuinfo", function(error3, stdout2) {
197869
197869
  if (!error3) {
197870
197870
  let lines2 = stdout2.toString().split("\n");
197871
197871
  result2.model = util5.getValue(lines2, "hardware", ":", true).toUpperCase();
@@ -198467,7 +198467,7 @@ var require_osinfo = __commonJS({
198467
198467
  "packages/core/node_modules/systeminformation/lib/osinfo.js"(exports2) {
198468
198468
  "use strict";
198469
198469
  var os33 = __require("os");
198470
- var fs89 = __require("fs");
198470
+ var fs88 = __require("fs");
198471
198471
  var util5 = require_util12();
198472
198472
  var exec3 = __require("child_process").exec;
198473
198473
  var execSync3 = __require("child_process").execSync;
@@ -198792,7 +198792,7 @@ var require_osinfo = __commonJS({
198792
198792
  function isUefiLinux() {
198793
198793
  return new Promise((resolve23) => {
198794
198794
  process.nextTick(() => {
198795
- fs89.stat("/sys/firmware/efi", function(err2) {
198795
+ fs88.stat("/sys/firmware/efi", function(err2) {
198796
198796
  if (!err2) {
198797
198797
  return resolve23(true);
198798
198798
  } else {
@@ -199032,7 +199032,7 @@ var require_osinfo = __commonJS({
199032
199032
  }
199033
199033
  if ({}.hasOwnProperty.call(appsObj.versions, "git")) {
199034
199034
  if (_darwin) {
199035
- const gitHomebrewExists = fs89.existsSync("/usr/local/Cellar/git") || fs89.existsSync("/opt/homebrew/bin/git");
199035
+ const gitHomebrewExists = fs88.existsSync("/usr/local/Cellar/git") || fs88.existsSync("/opt/homebrew/bin/git");
199036
199036
  if (util5.darwinXcodeExists() || gitHomebrewExists) {
199037
199037
  exec3("git --version", function(error2, stdout) {
199038
199038
  if (!error2) {
@@ -199227,8 +199227,8 @@ var require_osinfo = __commonJS({
199227
199227
  const stdout = execSync3("sw_vers");
199228
199228
  const lines = stdout.toString().split("\n");
199229
199229
  const osVersion = util5.getValue(lines, "ProductVersion", ":");
199230
- const gitHomebrewExists1 = fs89.existsSync("/usr/local/Cellar/python");
199231
- const gitHomebrewExists2 = fs89.existsSync("/opt/homebrew/bin/python");
199230
+ const gitHomebrewExists1 = fs88.existsSync("/usr/local/Cellar/python");
199231
+ const gitHomebrewExists2 = fs88.existsSync("/opt/homebrew/bin/python");
199232
199232
  if (util5.darwinXcodeExists() && util5.semverCompare("12.0.1", osVersion) < 0 || gitHomebrewExists1 || gitHomebrewExists2) {
199233
199233
  const cmd2 = gitHomebrewExists1 ? "/usr/local/Cellar/python -V 2>&1" : gitHomebrewExists2 ? "/opt/homebrew/bin/python -V 2>&1" : "python -V 2>&1";
199234
199234
  exec3(cmd2, function(error2, stdout2) {
@@ -199256,7 +199256,7 @@ var require_osinfo = __commonJS({
199256
199256
  }
199257
199257
  if ({}.hasOwnProperty.call(appsObj.versions, "python3")) {
199258
199258
  if (_darwin) {
199259
- const gitHomebrewExists = fs89.existsSync("/usr/local/Cellar/python3") || fs89.existsSync("/opt/homebrew/bin/python3");
199259
+ const gitHomebrewExists = fs88.existsSync("/usr/local/Cellar/python3") || fs88.existsSync("/opt/homebrew/bin/python3");
199260
199260
  if (util5.darwinXcodeExists() || gitHomebrewExists) {
199261
199261
  exec3("python3 -V 2>&1", function(error2, stdout) {
199262
199262
  if (!error2) {
@@ -199280,7 +199280,7 @@ var require_osinfo = __commonJS({
199280
199280
  }
199281
199281
  if ({}.hasOwnProperty.call(appsObj.versions, "pip")) {
199282
199282
  if (_darwin) {
199283
- const gitHomebrewExists = fs89.existsSync("/usr/local/Cellar/pip") || fs89.existsSync("/opt/homebrew/bin/pip");
199283
+ const gitHomebrewExists = fs88.existsSync("/usr/local/Cellar/pip") || fs88.existsSync("/opt/homebrew/bin/pip");
199284
199284
  if (util5.darwinXcodeExists() || gitHomebrewExists) {
199285
199285
  exec3("pip -V 2>&1", function(error2, stdout) {
199286
199286
  if (!error2) {
@@ -199306,7 +199306,7 @@ var require_osinfo = __commonJS({
199306
199306
  }
199307
199307
  if ({}.hasOwnProperty.call(appsObj.versions, "pip3")) {
199308
199308
  if (_darwin) {
199309
- const gitHomebrewExists = fs89.existsSync("/usr/local/Cellar/pip3") || fs89.existsSync("/opt/homebrew/bin/pip3");
199309
+ const gitHomebrewExists = fs88.existsSync("/usr/local/Cellar/pip3") || fs88.existsSync("/opt/homebrew/bin/pip3");
199310
199310
  if (util5.darwinXcodeExists() || gitHomebrewExists) {
199311
199311
  exec3("pip3 -V 2>&1", function(error2, stdout) {
199312
199312
  if (!error2) {
@@ -199607,7 +199607,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`;
199607
199607
  result2.os = util5.getValue(lines, "os").toLowerCase();
199608
199608
  result2.hardware = util5.getValue(lines, "hardware").toLowerCase();
199609
199609
  if (!result2.hardware) {
199610
- const lines2 = fs89.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
199610
+ const lines2 = fs88.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
199611
199611
  const serial = util5.getValue(lines2, "serial");
199612
199612
  result2.hardware = serial || "";
199613
199613
  }
@@ -199666,7 +199666,7 @@ var require_cpu = __commonJS({
199666
199666
  var os33 = __require("os");
199667
199667
  var exec3 = __require("child_process").exec;
199668
199668
  var execSync3 = __require("child_process").execSync;
199669
- var fs89 = __require("fs");
199669
+ var fs88 = __require("fs");
199670
199670
  var util5 = require_util12();
199671
199671
  var _platform = process.platform;
199672
199672
  var _linux = _platform === "linux" || _platform === "android";
@@ -200433,7 +200433,7 @@ var require_cpu = __commonJS({
200433
200433
  result2.socket = "SOC";
200434
200434
  }
200435
200435
  if (util5.getValue(lines, "architecture") === "riscv64") {
200436
- const linesRiscV = fs89.readFileSync("/proc/cpuinfo").toString().split("\n");
200436
+ const linesRiscV = fs88.readFileSync("/proc/cpuinfo").toString().split("\n");
200437
200437
  const uarch = util5.getValue(linesRiscV, "uarch") || "";
200438
200438
  if (uarch.indexOf(",") > -1) {
200439
200439
  const split = uarch.split(",");
@@ -200815,9 +200815,9 @@ var require_cpu = __commonJS({
200815
200815
  return;
200816
200816
  }
200817
200817
  }
200818
- fs89.stat("/sys/class/thermal/thermal_zone0/temp", function(err2) {
200818
+ fs88.stat("/sys/class/thermal/thermal_zone0/temp", function(err2) {
200819
200819
  if (err2 === null) {
200820
- fs89.readFile("/sys/class/thermal/thermal_zone0/temp", function(error4, stdout3) {
200820
+ fs88.readFile("/sys/class/thermal/thermal_zone0/temp", function(error4, stdout3) {
200821
200821
  if (!error4) {
200822
200822
  let lines2 = stdout3.toString().split("\n");
200823
200823
  if (lines2.length > 0) {
@@ -201025,7 +201025,7 @@ var require_cpu = __commonJS({
201025
201025
  });
201026
201026
  }
201027
201027
  if (!result2) {
201028
- fs89.readFile("/proc/cpuinfo", function(error3, stdout2) {
201028
+ fs88.readFile("/proc/cpuinfo", function(error3, stdout2) {
201029
201029
  if (!error3) {
201030
201030
  let lines = stdout2.toString().split("\n");
201031
201031
  result2 = util5.getValue(lines, "features", ":", true).toLowerCase();
@@ -201529,7 +201529,7 @@ var require_memory = __commonJS({
201529
201529
  var exec3 = __require("child_process").exec;
201530
201530
  var execSync3 = __require("child_process").execSync;
201531
201531
  var util5 = require_util12();
201532
- var fs89 = __require("fs");
201532
+ var fs88 = __require("fs");
201533
201533
  var _platform = process.platform;
201534
201534
  var _linux = _platform === "linux" || _platform === "android";
201535
201535
  var _darwin = _platform === "darwin";
@@ -201596,7 +201596,7 @@ var require_memory = __commonJS({
201596
201596
  };
201597
201597
  if (_linux) {
201598
201598
  try {
201599
- fs89.readFile("/proc/meminfo", function(error2, stdout) {
201599
+ fs88.readFile("/proc/meminfo", function(error2, stdout) {
201600
201600
  if (!error2) {
201601
201601
  const lines = stdout.toString().split("\n");
201602
201602
  result2.total = parseInt(util5.getValue(lines, "memtotal"), 10);
@@ -202019,7 +202019,7 @@ var require_battery = __commonJS({
202019
202019
  "packages/core/node_modules/systeminformation/lib/battery.js"(exports2, module2) {
202020
202020
  "use strict";
202021
202021
  var exec3 = __require("child_process").exec;
202022
- var fs89 = __require("fs");
202022
+ var fs88 = __require("fs");
202023
202023
  var util5 = require_util12();
202024
202024
  var _platform = process.platform;
202025
202025
  var _linux = _platform === "linux" || _platform === "android";
@@ -202072,24 +202072,24 @@ var require_battery = __commonJS({
202072
202072
  };
202073
202073
  if (_linux) {
202074
202074
  let battery_path = "";
202075
- if (fs89.existsSync("/sys/class/power_supply/BAT1/uevent")) {
202075
+ if (fs88.existsSync("/sys/class/power_supply/BAT1/uevent")) {
202076
202076
  battery_path = "/sys/class/power_supply/BAT1/";
202077
- } else if (fs89.existsSync("/sys/class/power_supply/BAT0/uevent")) {
202077
+ } else if (fs88.existsSync("/sys/class/power_supply/BAT0/uevent")) {
202078
202078
  battery_path = "/sys/class/power_supply/BAT0/";
202079
202079
  }
202080
202080
  let acConnected = false;
202081
202081
  let acPath = "";
202082
- if (fs89.existsSync("/sys/class/power_supply/AC/online")) {
202082
+ if (fs88.existsSync("/sys/class/power_supply/AC/online")) {
202083
202083
  acPath = "/sys/class/power_supply/AC/online";
202084
- } else if (fs89.existsSync("/sys/class/power_supply/AC0/online")) {
202084
+ } else if (fs88.existsSync("/sys/class/power_supply/AC0/online")) {
202085
202085
  acPath = "/sys/class/power_supply/AC0/online";
202086
202086
  }
202087
202087
  if (acPath) {
202088
- const file = fs89.readFileSync(acPath);
202088
+ const file = fs88.readFileSync(acPath);
202089
202089
  acConnected = file.toString().trim() === "1";
202090
202090
  }
202091
202091
  if (battery_path) {
202092
- fs89.readFile(battery_path + "uevent", function(error2, stdout) {
202092
+ fs88.readFile(battery_path + "uevent", function(error2, stdout) {
202093
202093
  if (!error2) {
202094
202094
  let lines = stdout.toString().split("\n");
202095
202095
  result2.isCharging = util5.getValue(lines, "POWER_SUPPLY_STATUS", "=").toLowerCase() === "charging";
@@ -202314,7 +202314,7 @@ var require_battery = __commonJS({
202314
202314
  var require_graphics = __commonJS({
202315
202315
  "packages/core/node_modules/systeminformation/lib/graphics.js"(exports2) {
202316
202316
  "use strict";
202317
- var fs89 = __require("fs");
202317
+ var fs88 = __require("fs");
202318
202318
  var exec3 = __require("child_process").exec;
202319
202319
  var execSync3 = __require("child_process").execSync;
202320
202320
  var util5 = require_util12();
@@ -202678,12 +202678,12 @@ var require_graphics = __commonJS({
202678
202678
  if (_windows) {
202679
202679
  try {
202680
202680
  const basePath = util5.WINDIR + "\\System32\\DriverStore\\FileRepository";
202681
- const candidateDirs = fs89.readdirSync(basePath).filter((dir) => {
202682
- return fs89.readdirSync([basePath, dir].join("/")).includes("nvidia-smi.exe");
202681
+ const candidateDirs = fs88.readdirSync(basePath).filter((dir) => {
202682
+ return fs88.readdirSync([basePath, dir].join("/")).includes("nvidia-smi.exe");
202683
202683
  });
202684
202684
  const targetDir = candidateDirs.reduce((prevDir, currentDir) => {
202685
- const previousNvidiaSmi = fs89.statSync([basePath, prevDir, "nvidia-smi.exe"].join("/"));
202686
- const currentNvidiaSmi = fs89.statSync([basePath, currentDir, "nvidia-smi.exe"].join("/"));
202685
+ const previousNvidiaSmi = fs88.statSync([basePath, prevDir, "nvidia-smi.exe"].join("/"));
202686
+ const currentNvidiaSmi = fs88.statSync([basePath, currentDir, "nvidia-smi.exe"].join("/"));
202687
202687
  return previousNvidiaSmi.ctimeMs > currentNvidiaSmi.ctimeMs ? prevDir : currentDir;
202688
202688
  });
202689
202689
  if (targetDir) {
@@ -203384,7 +203384,7 @@ var require_filesystem = __commonJS({
203384
203384
  "packages/core/node_modules/systeminformation/lib/filesystem.js"(exports2) {
203385
203385
  "use strict";
203386
203386
  var util5 = require_util12();
203387
- var fs89 = __require("fs");
203387
+ var fs88 = __require("fs");
203388
203388
  var exec3 = __require("child_process").exec;
203389
203389
  var execSync3 = __require("child_process").execSync;
203390
203390
  var execPromiseSave = util5.promisifySave(__require("child_process").exec);
@@ -203405,11 +203405,11 @@ var require_filesystem = __commonJS({
203405
203405
  }
203406
203406
  let macOsDisks = [];
203407
203407
  let osMounts = [];
203408
- function getmacOsFsType(fs90) {
203409
- if (!fs90.startsWith("/")) {
203408
+ function getmacOsFsType(fs89) {
203409
+ if (!fs89.startsWith("/")) {
203410
203410
  return "NFS";
203411
203411
  }
203412
- const parts2 = fs90.split("/");
203412
+ const parts2 = fs89.split("/");
203413
203413
  const fsShort = parts2[parts2.length - 1];
203414
203414
  const macOsDisksSingle = macOsDisks.filter((item) => item.indexOf(fsShort) >= 0);
203415
203415
  if (macOsDisksSingle.length === 1 && macOsDisksSingle[0].indexOf("APFS") >= 0) {
@@ -203417,11 +203417,11 @@ var require_filesystem = __commonJS({
203417
203417
  }
203418
203418
  return "HFS";
203419
203419
  }
203420
- function isLinuxTmpFs(fs90) {
203420
+ function isLinuxTmpFs(fs89) {
203421
203421
  const linuxTmpFileSystems = ["rootfs", "unionfs", "squashfs", "cramfs", "initrd", "initramfs", "devtmpfs", "tmpfs", "udev", "devfs", "specfs", "type", "appimaged"];
203422
203422
  let result2 = false;
203423
203423
  linuxTmpFileSystems.forEach((linuxFs) => {
203424
- if (fs90.toLowerCase().indexOf(linuxFs) >= 0) {
203424
+ if (fs89.toLowerCase().indexOf(linuxFs) >= 0) {
203425
203425
  result2 = true;
203426
203426
  }
203427
203427
  });
@@ -203449,18 +203449,18 @@ var require_filesystem = __commonJS({
203449
203449
  if (line !== "") {
203450
203450
  line = line.replace(/ +/g, " ").split(" ");
203451
203451
  if (line && (line[0].startsWith("/") || line[6] && line[6] === "/" || line[0].indexOf("/") > 0 || line[0].indexOf(":") === 1 || !_darwin && !isLinuxTmpFs(line[1]))) {
203452
- const fs90 = line[0];
203452
+ const fs89 = line[0];
203453
203453
  const fsType = _linux || _freebsd || _openbsd || _netbsd ? line[1] : getmacOsFsType(line[0]);
203454
203454
  const size = parseInt(_linux || _freebsd || _openbsd || _netbsd ? line[2] : line[1]) * 1024;
203455
203455
  const used = parseInt(_linux || _freebsd || _openbsd || _netbsd ? line[3] : line[2]) * 1024;
203456
203456
  const available = parseInt(_linux || _freebsd || _openbsd || _netbsd ? line[4] : line[3]) * 1024;
203457
203457
  const use = parseFloat((100 * (used / (used + available))).toFixed(2));
203458
- let rw = osMounts && Object.keys(osMounts).length > 0 ? osMounts[fs90] || false : null;
203458
+ let rw = osMounts && Object.keys(osMounts).length > 0 ? osMounts[fs89] || false : null;
203459
203459
  line.splice(0, _linux || _freebsd || _openbsd || _netbsd ? 6 : 5);
203460
203460
  const mount = line.join(" ");
203461
- if (!data.find((el) => el.fs === fs90 && el.type === fsType)) {
203461
+ if (!data.find((el) => el.fs === fs89 && el.type === fsType)) {
203462
203462
  data.push({
203463
- fs: fs90,
203463
+ fs: fs89,
203464
203464
  type: fsType,
203465
203465
  size,
203466
203466
  used,
@@ -203622,7 +203622,7 @@ var require_filesystem = __commonJS({
203622
203622
  });
203623
203623
  }
203624
203624
  if (_linux) {
203625
- fs89.readFile("/proc/sys/fs/file-nr", function(error2, stdout) {
203625
+ fs88.readFile("/proc/sys/fs/file-nr", function(error2, stdout) {
203626
203626
  if (!error2) {
203627
203627
  let lines = stdout.toString().split("\n");
203628
203628
  if (lines[0]) {
@@ -203641,7 +203641,7 @@ var require_filesystem = __commonJS({
203641
203641
  }
203642
203642
  resolve23(result2);
203643
203643
  } else {
203644
- fs89.readFile("/proc/sys/fs/file-max", function(error3, stdout2) {
203644
+ fs88.readFile("/proc/sys/fs/file-max", function(error3, stdout2) {
203645
203645
  if (!error3) {
203646
203646
  let lines = stdout2.toString().split("\n");
203647
203647
  if (lines[0]) {
@@ -204859,7 +204859,7 @@ var require_network = __commonJS({
204859
204859
  var os33 = __require("os");
204860
204860
  var exec3 = __require("child_process").exec;
204861
204861
  var execSync3 = __require("child_process").execSync;
204862
- var fs89 = __require("fs");
204862
+ var fs88 = __require("fs");
204863
204863
  var util5 = require_util12();
204864
204864
  var _platform = process.platform;
204865
204865
  var _linux = _platform === "linux" || _platform === "android";
@@ -206038,7 +206038,7 @@ var require_network = __commonJS({
206038
206038
  let cmd, lines, stats;
206039
206039
  if (!_network[ifaceSanitized] || _network[ifaceSanitized] && !_network[ifaceSanitized].ms || _network[ifaceSanitized] && _network[ifaceSanitized].ms && Date.now() - _network[ifaceSanitized].ms >= 500) {
206040
206040
  if (_linux) {
206041
- if (fs89.existsSync("/sys/class/net/" + ifaceSanitized)) {
206041
+ if (fs88.existsSync("/sys/class/net/" + ifaceSanitized)) {
206042
206042
  cmd = "cat /sys/class/net/" + ifaceSanitized + "/operstate; cat /sys/class/net/" + ifaceSanitized + "/statistics/rx_bytes; cat /sys/class/net/" + ifaceSanitized + "/statistics/tx_bytes; cat /sys/class/net/" + ifaceSanitized + "/statistics/rx_dropped; cat /sys/class/net/" + ifaceSanitized + "/statistics/rx_errors; cat /sys/class/net/" + ifaceSanitized + "/statistics/tx_dropped; cat /sys/class/net/" + ifaceSanitized + "/statistics/tx_errors; ";
206043
206043
  exec3(cmd, function(error2, stdout) {
206044
206044
  if (!error2) {
@@ -207340,7 +207340,7 @@ var require_processes = __commonJS({
207340
207340
  "packages/core/node_modules/systeminformation/lib/processes.js"(exports2) {
207341
207341
  "use strict";
207342
207342
  var os33 = __require("os");
207343
- var fs89 = __require("fs");
207343
+ var fs88 = __require("fs");
207344
207344
  var path98 = __require("path");
207345
207345
  var exec3 = __require("child_process").exec;
207346
207346
  var execSync3 = __require("child_process").execSync;
@@ -207909,7 +207909,7 @@ var require_processes = __commonJS({
207909
207909
  }
207910
207910
  if (firstPos === 1e4 && tmpCommand.indexOf(" ") > -1) {
207911
207911
  const parts2 = tmpCommand.split(" ");
207912
- if (fs89.existsSync(path98.join(cmdPath, parts2[0]))) {
207912
+ if (fs88.existsSync(path98.join(cmdPath, parts2[0]))) {
207913
207913
  command = parts2.shift();
207914
207914
  params = (parts2.join(" ") + " " + tmpParams).trim();
207915
207915
  } else {
@@ -212028,7 +212028,7 @@ var require_bluetooth = __commonJS({
212028
212028
  var path98 = __require("path");
212029
212029
  var util5 = require_util12();
212030
212030
  var bluetoothVendors = require_bluetoothVendors();
212031
- var fs89 = __require("fs");
212031
+ var fs88 = __require("fs");
212032
212032
  var _platform = process.platform;
212033
212033
  var _linux = _platform === "linux" || _platform === "android";
212034
212034
  var _darwin = _platform === "darwin";
@@ -212153,7 +212153,7 @@ var require_bluetooth = __commonJS({
212153
212153
  const macAddr1 = pathParts.length >= 6 ? pathParts[pathParts.length - 2] : null;
212154
212154
  const macAddr2 = pathParts.length >= 7 ? pathParts[pathParts.length - 3] : null;
212155
212155
  if (filename === "info") {
212156
- const infoFile = fs89.readFileSync(element, { encoding: "utf8" }).split("\n");
212156
+ const infoFile = fs88.readFileSync(element, { encoding: "utf8" }).split("\n");
212157
212157
  result2.push(parseLinuxBluetoothInfo(infoFile, macAddr1, macAddr2));
212158
212158
  }
212159
212159
  });
@@ -216138,8 +216138,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
216138
216138
  var init_git_commit = __esm({
216139
216139
  "packages/core/dist/src/generated/git-commit.js"() {
216140
216140
  "use strict";
216141
- GIT_COMMIT_INFO = "3fbf93e26";
216142
- CLI_VERSION = "0.50.0-preview.1";
216141
+ GIT_COMMIT_INFO = "ae0a3aa7b";
216142
+ CLI_VERSION = "0.51.0-nightly.20260628.gae0a3aa7b";
216143
216143
  }
216144
216144
  });
216145
216145
 
@@ -218028,7 +218028,7 @@ var require_util13 = __commonJS({
218028
218028
  "use strict";
218029
218029
  Object.defineProperty(exports2, "__esModule", { value: true });
218030
218030
  exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
218031
- var fs89 = __require("fs");
218031
+ var fs88 = __require("fs");
218032
218032
  var path98 = __require("path");
218033
218033
  var Protobuf = require_protobufjs();
218034
218034
  function addIncludePathResolver(root, includePaths) {
@@ -218040,7 +218040,7 @@ var require_util13 = __commonJS({
218040
218040
  for (const directory of includePaths) {
218041
218041
  const fullPath = path98.join(directory, target);
218042
218042
  try {
218043
- fs89.accessSync(fullPath, fs89.constants.R_OK);
218043
+ fs88.accessSync(fullPath, fs88.constants.R_OK);
218044
218044
  return fullPath;
218045
218045
  } catch (err2) {
218046
218046
  continue;
@@ -222829,13 +222829,13 @@ var require_discovery = __commonJS({
222829
222829
  "use strict";
222830
222830
  Object.defineProperty(exports2, "__esModule", { value: true });
222831
222831
  exports2.Discovery = void 0;
222832
- var fs89 = __require("fs");
222832
+ var fs88 = __require("fs");
222833
222833
  var google_auth_library_1 = require_src6();
222834
222834
  var resolve23 = __require("url");
222835
222835
  var util5 = __require("util");
222836
222836
  var apirequest_1 = require_apirequest();
222837
222837
  var endpoint_1 = require_endpoint();
222838
- var readFile12 = util5.promisify(fs89.readFile);
222838
+ var readFile12 = util5.promisify(fs88.readFile);
222839
222839
  var Discovery = class {
222840
222840
  /**
222841
222841
  * Discovery for discovering API endpoints
@@ -227671,7 +227671,7 @@ var require_util15 = __commonJS({
227671
227671
  "use strict";
227672
227672
  Object.defineProperty(exports2, "__esModule", { value: true });
227673
227673
  exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
227674
- var fs89 = __require("fs");
227674
+ var fs88 = __require("fs");
227675
227675
  var path98 = __require("path");
227676
227676
  var Protobuf = require_protobufjs();
227677
227677
  function addIncludePathResolver(root, includePaths) {
@@ -227683,7 +227683,7 @@ var require_util15 = __commonJS({
227683
227683
  for (const directory of includePaths) {
227684
227684
  const fullPath = path98.join(directory, target);
227685
227685
  try {
227686
- fs89.accessSync(fullPath, fs89.constants.R_OK);
227686
+ fs88.accessSync(fullPath, fs88.constants.R_OK);
227687
227687
  return fullPath;
227688
227688
  } catch (err2) {
227689
227689
  continue;
@@ -228972,7 +228972,7 @@ var require_grpc = __commonJS({
228972
228972
  exports2.GoogleProtoFilesRoot = exports2.GrpcClient = exports2.ClientStub = void 0;
228973
228973
  var grpcProtoLoader = require_src55();
228974
228974
  var child_process_1 = __require("child_process");
228975
- var fs89 = __require("fs");
228975
+ var fs88 = __require("fs");
228976
228976
  var google_auth_library_1 = require_src6();
228977
228977
  var grpc3 = require_src22();
228978
228978
  var os33 = __require("os");
@@ -228988,7 +228988,7 @@ var require_grpc = __commonJS({
228988
228988
  var COMMON_PROTO_FILES = commonProtoFiles.map((file) => file.replace(/[/\\]/g, path98.sep));
228989
228989
  async function readFileAsync(path99) {
228990
228990
  return new Promise((resolve23, reject) => {
228991
- fs89.readFile(path99, "utf8", (err2, content) => {
228991
+ fs88.readFile(path99, "utf8", (err2, content) => {
228992
228992
  if (err2)
228993
228993
  return reject(err2);
228994
228994
  else
@@ -229141,7 +229141,7 @@ var require_grpc = __commonJS({
229141
229141
  return this.loadFromProto(filename, options, ignoreCache);
229142
229142
  }
229143
229143
  static _resolveFile(protoPath, filename) {
229144
- if (fs89.existsSync(path98.join(protoPath, filename))) {
229144
+ if (fs88.existsSync(path98.join(protoPath, filename))) {
229145
229145
  return path98.join(protoPath, filename);
229146
229146
  } else if (COMMON_PROTO_FILES.indexOf(filename) > -1) {
229147
229147
  return path98.join(googleProtoFilesDir, filename);
@@ -229342,7 +229342,7 @@ var require_grpc = __commonJS({
229342
229342
  originPath = path98.normalize(originPath);
229343
229343
  includePath = path98.normalize(includePath);
229344
229344
  if (path98.isAbsolute(includePath)) {
229345
- if (!fs89.existsSync(includePath)) {
229345
+ if (!fs88.existsSync(includePath)) {
229346
229346
  throw new Error("The include `" + includePath + "` was not found.");
229347
229347
  }
229348
229348
  return includePath;
@@ -229356,10 +229356,10 @@ var require_grpc = __commonJS({
229356
229356
  originPath = path98.normalize(originPath);
229357
229357
  includePath = path98.normalize(includePath);
229358
229358
  let current = originPath;
229359
- let found = fs89.existsSync(path98.join(current, includePath));
229359
+ let found = fs88.existsSync(path98.join(current, includePath));
229360
229360
  while (!found && current.length > 0) {
229361
229361
  current = current.substring(0, current.lastIndexOf(path98.sep));
229362
- found = fs89.existsSync(path98.join(current, includePath));
229362
+ found = fs88.existsSync(path98.join(current, includePath));
229363
229363
  }
229364
229364
  if (!found) {
229365
229365
  throw new Error("The include `" + includePath + "` was not found.");
@@ -243514,9 +243514,9 @@ var require_pump = __commonJS({
243514
243514
  "node_modules/pump/index.js"(exports2, module2) {
243515
243515
  var once2 = require_once2();
243516
243516
  var eos = require_end_of_stream2();
243517
- var fs89;
243517
+ var fs88;
243518
243518
  try {
243519
- fs89 = __require("fs");
243519
+ fs88 = __require("fs");
243520
243520
  } catch (e3) {
243521
243521
  }
243522
243522
  var noop3 = function() {
@@ -243527,8 +243527,8 @@ var require_pump = __commonJS({
243527
243527
  };
243528
243528
  var isFS = function(stream2) {
243529
243529
  if (!ancient) return false;
243530
- if (!fs89) return false;
243531
- return (stream2 instanceof (fs89.ReadStream || noop3) || stream2 instanceof (fs89.WriteStream || noop3)) && isFn(stream2.close);
243530
+ if (!fs88) return false;
243531
+ return (stream2 instanceof (fs88.ReadStream || noop3) || stream2 instanceof (fs88.WriteStream || noop3)) && isFn(stream2.close);
243532
243532
  };
243533
243533
  var isRequest2 = function(stream2) {
243534
243534
  return stream2.setHeader && isFn(stream2.abort);
@@ -243894,11 +243894,11 @@ var require_metadata5 = __commonJS({
243894
243894
  exports2.getGlobalDescriptor = getGlobalDescriptor;
243895
243895
  exports2.getDefaultResource = getDefaultResource;
243896
243896
  exports2.detectServiceContext = detectServiceContext;
243897
- var fs89 = __require("fs");
243897
+ var fs88 = __require("fs");
243898
243898
  var gcpMetadata = require_src4();
243899
243899
  var google_auth_library_1 = require_src6();
243900
243900
  var util_1 = __require("util");
243901
- var readFile12 = (0, util_1.promisify)(fs89.readFile);
243901
+ var readFile12 = (0, util_1.promisify)(fs88.readFile);
243902
243902
  function zoneFromQualifiedZone(qualified) {
243903
243903
  return qualified.split("/").pop();
243904
243904
  }
@@ -299455,7 +299455,7 @@ var require_windows = __commonJS({
299455
299455
  "node_modules/isexe/windows.js"(exports2, module2) {
299456
299456
  module2.exports = isexe;
299457
299457
  isexe.sync = sync2;
299458
- var fs89 = __require("fs");
299458
+ var fs88 = __require("fs");
299459
299459
  function checkPathExt(path98, options) {
299460
299460
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
299461
299461
  if (!pathext) {
@@ -299480,12 +299480,12 @@ var require_windows = __commonJS({
299480
299480
  return checkPathExt(path98, options);
299481
299481
  }
299482
299482
  function isexe(path98, options, cb) {
299483
- fs89.stat(path98, function(er2, stat7) {
299483
+ fs88.stat(path98, function(er2, stat7) {
299484
299484
  cb(er2, er2 ? false : checkStat(stat7, path98, options));
299485
299485
  });
299486
299486
  }
299487
299487
  function sync2(path98, options) {
299488
- return checkStat(fs89.statSync(path98), path98, options);
299488
+ return checkStat(fs88.statSync(path98), path98, options);
299489
299489
  }
299490
299490
  }
299491
299491
  });
@@ -299495,14 +299495,14 @@ var require_mode = __commonJS({
299495
299495
  "node_modules/isexe/mode.js"(exports2, module2) {
299496
299496
  module2.exports = isexe;
299497
299497
  isexe.sync = sync2;
299498
- var fs89 = __require("fs");
299498
+ var fs88 = __require("fs");
299499
299499
  function isexe(path98, options, cb) {
299500
- fs89.stat(path98, function(er2, stat7) {
299500
+ fs88.stat(path98, function(er2, stat7) {
299501
299501
  cb(er2, er2 ? false : checkStat(stat7, options));
299502
299502
  });
299503
299503
  }
299504
299504
  function sync2(path98, options) {
299505
- return checkStat(fs89.statSync(path98), options);
299505
+ return checkStat(fs88.statSync(path98), options);
299506
299506
  }
299507
299507
  function checkStat(stat7, options) {
299508
299508
  return stat7.isFile() && checkMode(stat7, options);
@@ -299526,7 +299526,7 @@ var require_mode = __commonJS({
299526
299526
  // node_modules/isexe/index.js
299527
299527
  var require_isexe = __commonJS({
299528
299528
  "node_modules/isexe/index.js"(exports2, module2) {
299529
- var fs89 = __require("fs");
299529
+ var fs88 = __require("fs");
299530
299530
  var core2;
299531
299531
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
299532
299532
  core2 = require_windows();
@@ -299790,16 +299790,16 @@ var require_shebang_command = __commonJS({
299790
299790
  var require_readShebang = __commonJS({
299791
299791
  "node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
299792
299792
  "use strict";
299793
- var fs89 = __require("fs");
299793
+ var fs88 = __require("fs");
299794
299794
  var shebangCommand = require_shebang_command();
299795
299795
  function readShebang(command) {
299796
299796
  const size = 150;
299797
299797
  const buffer = Buffer.alloc(size);
299798
299798
  let fd;
299799
299799
  try {
299800
- fd = fs89.openSync(command, "r");
299801
- fs89.readSync(fd, buffer, 0, size, 0);
299802
- fs89.closeSync(fd);
299800
+ fd = fs88.openSync(command, "r");
299801
+ fs88.readSync(fd, buffer, 0, size, 0);
299802
+ fs88.closeSync(fd);
299803
299803
  } catch (e3) {
299804
299804
  }
299805
299805
  return shebangCommand(buffer.toString());
@@ -326055,7 +326055,7 @@ function getVersion() {
326055
326055
  }
326056
326056
  versionPromise = (async () => {
326057
326057
  const pkgJson = await getPackageJson(__dirname4);
326058
- return "0.50.0-preview.1";
326058
+ return "0.51.0-nightly.20260628.gae0a3aa7b";
326059
326059
  })();
326060
326060
  return versionPromise;
326061
326061
  }
@@ -331298,6 +331298,13 @@ async function createContentGenerator(config3, gcConfig, sessionId) {
331298
331298
  if (envBaseUrl) {
331299
331299
  validateBaseUrl(envBaseUrl);
331300
331300
  baseUrl = envBaseUrl;
331301
+ } else if (config3.authType === AuthType2.USE_VERTEX_AI) {
331302
+ const location = process.env["GOOGLE_CLOUD_LOCATION"];
331303
+ if (location === "us") {
331304
+ baseUrl = VERTEX_AI_US_REP_ENDPOINT;
331305
+ } else if (location === "eu") {
331306
+ baseUrl = VERTEX_AI_EU_REP_ENDPOINT;
331307
+ }
331301
331308
  }
331302
331309
  } else {
331303
331310
  validateBaseUrl(baseUrl);
@@ -331337,7 +331344,7 @@ async function createContentGenerator(config3, gcConfig, sessionId) {
331337
331344
  }
331338
331345
  return generator;
331339
331346
  }
331340
- var import_http_proxy_agent, import_https_proxy_agent2, AuthType2, VERTEX_AI_REQUEST_TYPE_HEADER, VERTEX_AI_SHARED_REQUEST_TYPE_HEADER;
331347
+ var import_http_proxy_agent, import_https_proxy_agent2, AuthType2, VERTEX_AI_REQUEST_TYPE_HEADER, VERTEX_AI_SHARED_REQUEST_TYPE_HEADER, VERTEX_AI_US_REP_ENDPOINT, VERTEX_AI_EU_REP_ENDPOINT;
331341
331348
  var init_contentGenerator = __esm({
331342
331349
  "packages/core/dist/src/core/contentGenerator.js"() {
331343
331350
  "use strict";
@@ -331366,6 +331373,8 @@ var init_contentGenerator = __esm({
331366
331373
  })(AuthType2 || (AuthType2 = {}));
331367
331374
  VERTEX_AI_REQUEST_TYPE_HEADER = "X-Vertex-AI-LLM-Request-Type";
331368
331375
  VERTEX_AI_SHARED_REQUEST_TYPE_HEADER = "X-Vertex-AI-LLM-Shared-Request-Type";
331376
+ VERTEX_AI_US_REP_ENDPOINT = "https://aiplatform.us.rep.googleapis.com";
331377
+ VERTEX_AI_EU_REP_ENDPOINT = "https://aiplatform.eu.rep.googleapis.com";
331369
331378
  }
331370
331379
  });
331371
331380
 
@@ -338807,8 +338816,8 @@ var init_esm10 = __esm({
338807
338816
  *
338808
338817
  * @internal
338809
338818
  */
338810
- constructor(cwd = process.cwd(), pathImpl, sep8, { nocase, childrenCacheSize = 16 * 1024, fs: fs89 = defaultFS } = {}) {
338811
- this.#fs = fsFromOption(fs89);
338819
+ constructor(cwd = process.cwd(), pathImpl, sep9, { nocase, childrenCacheSize = 16 * 1024, fs: fs88 = defaultFS } = {}) {
338820
+ this.#fs = fsFromOption(fs88);
338812
338821
  if (cwd instanceof URL || cwd.startsWith("file://")) {
338813
338822
  cwd = fileURLToPath9(cwd);
338814
338823
  }
@@ -338818,7 +338827,7 @@ var init_esm10 = __esm({
338818
338827
  this.#resolveCache = new ResolveCache();
338819
338828
  this.#resolvePosixCache = new ResolveCache();
338820
338829
  this.#children = new ChildrenCache(childrenCacheSize);
338821
- const split = cwdPath.substring(this.rootPath.length).split(sep8);
338830
+ const split = cwdPath.substring(this.rootPath.length).split(sep9);
338822
338831
  if (split.length === 1 && !split[0]) {
338823
338832
  split.pop();
338824
338833
  }
@@ -339366,8 +339375,8 @@ var init_esm10 = __esm({
339366
339375
  /**
339367
339376
  * @internal
339368
339377
  */
339369
- newRoot(fs89) {
339370
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs89 });
339378
+ newRoot(fs88) {
339379
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs88 });
339371
339380
  }
339372
339381
  /**
339373
339382
  * Return true if the provided path string is an absolute path
@@ -339395,8 +339404,8 @@ var init_esm10 = __esm({
339395
339404
  /**
339396
339405
  * @internal
339397
339406
  */
339398
- newRoot(fs89) {
339399
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs89 });
339407
+ newRoot(fs88) {
339408
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs88 });
339400
339409
  }
339401
339410
  /**
339402
339411
  * Return true if the provided path string is an absolute path
@@ -375785,6 +375794,13 @@ var init_fastAckHelper = __esm({
375785
375794
  // packages/core/dist/src/utils/workspaceContext.js
375786
375795
  import * as fs63 from "node:fs";
375787
375796
  import * as path72 from "node:path";
375797
+ function trimTrailingSpacesAndDots(str2) {
375798
+ let end = str2.length - 1;
375799
+ while (end >= 0 && (str2[end] === " " || str2[end] === ".")) {
375800
+ end--;
375801
+ }
375802
+ return str2.slice(0, end + 1);
375803
+ }
375788
375804
  var WorkspaceContext;
375789
375805
  var init_workspaceContext = __esm({
375790
375806
  "packages/core/dist/src/utils/workspaceContext.js"() {
@@ -375924,6 +375940,15 @@ var init_workspaceContext = __esm({
375924
375940
  const fullyResolvedPath = this.fullyResolvedPath(pathToCheck);
375925
375941
  for (const dir of this.directories) {
375926
375942
  if (this.isPathWithinRoot(fullyResolvedPath, dir)) {
375943
+ const relative5 = path72.relative(dir, fullyResolvedPath);
375944
+ const segments = relative5.split(path72.sep);
375945
+ const hasBlockedSegment = segments.some((segment) => {
375946
+ const clean = trimTrailingSpacesAndDots(segment.split(":")[0]).toLowerCase();
375947
+ return clean === ".git" || clean === ".env" || clean === "node_modules";
375948
+ });
375949
+ if (hasBlockedSegment) {
375950
+ return false;
375951
+ }
375927
375952
  return true;
375928
375953
  }
375929
375954
  }
@@ -393894,12 +393919,19 @@ var init_context_builder = __esm({
393894
393919
 
393895
393920
  // packages/core/dist/src/safety/built-in.js
393896
393921
  import * as path86 from "node:path";
393897
- import * as fs79 from "node:fs";
393922
+ function trimTrailingSpacesAndDots2(str2) {
393923
+ let end = str2.length - 1;
393924
+ while (end >= 0 && (str2[end] === " " || str2[end] === ".")) {
393925
+ end--;
393926
+ }
393927
+ return str2.slice(0, end + 1);
393928
+ }
393898
393929
  var AllowedPathChecker;
393899
393930
  var init_built_in = __esm({
393900
393931
  "packages/core/dist/src/safety/built-in.js"() {
393901
393932
  "use strict";
393902
393933
  init_protocol2();
393934
+ init_paths();
393903
393935
  AllowedPathChecker = class {
393904
393936
  async check(input) {
393905
393937
  const { toolCall, context: context2 } = input;
@@ -393911,6 +393943,7 @@ var init_built_in = __esm({
393911
393943
  const includedArgs = config3?.included_args ?? [];
393912
393944
  const excludedArgs = config3?.excluded_args ?? [];
393913
393945
  const pathsToCheck = this.collectPathsToCheck(toolCall.args, includedArgs, excludedArgs);
393946
+ const resolvedAllowedDirs = allowedDirs.map((dir) => this.safelyResolvePath(dir, context2.environment.cwd)).filter((resolvedDir) => resolvedDir !== null);
393914
393947
  for (const { path: p2, argName } of pathsToCheck) {
393915
393948
  const resolvedPath = this.safelyResolvePath(p2, context2.environment.cwd);
393916
393949
  if (!resolvedPath) {
@@ -393919,12 +393952,42 @@ var init_built_in = __esm({
393919
393952
  reason: `Cannot resolve path "${p2}" in argument "${argName}"`
393920
393953
  };
393921
393954
  }
393922
- const isAllowed = allowedDirs.some((dir) => {
393923
- const resolvedDir = this.safelyResolvePath(dir, context2.environment.cwd);
393924
- if (!resolvedDir)
393925
- return false;
393926
- return this.isPathAllowed(resolvedPath, resolvedDir);
393927
- });
393955
+ let hasBlockedSegment = false;
393956
+ let isVscodePath = false;
393957
+ for (const resolvedDir of resolvedAllowedDirs) {
393958
+ if (!this.isPathAllowed(resolvedPath, resolvedDir))
393959
+ continue;
393960
+ const relative5 = path86.relative(resolvedDir, resolvedPath);
393961
+ const segments = relative5.split(path86.sep);
393962
+ for (const segment of segments) {
393963
+ const clean = trimTrailingSpacesAndDots2(segment.split(":")[0]).toLowerCase();
393964
+ if (clean === ".git" || clean === ".env" || clean === "node_modules") {
393965
+ hasBlockedSegment = true;
393966
+ }
393967
+ if (clean === ".vscode") {
393968
+ isVscodePath = true;
393969
+ }
393970
+ }
393971
+ }
393972
+ if (hasBlockedSegment) {
393973
+ return {
393974
+ decision: SafetyCheckDecision.DENY,
393975
+ reason: `Access to sensitive path "${p2}" in argument "${argName}" is blocked.`
393976
+ };
393977
+ }
393978
+ if (isVscodePath) {
393979
+ return {
393980
+ decision: SafetyCheckDecision.ASK_USER,
393981
+ reason: `Modifying .vscode configuration files requires explicit user confirmation.`
393982
+ };
393983
+ }
393984
+ let isAllowed = false;
393985
+ for (const resolvedDir of resolvedAllowedDirs) {
393986
+ if (this.isPathAllowed(resolvedPath, resolvedDir)) {
393987
+ isAllowed = true;
393988
+ break;
393989
+ }
393990
+ }
393928
393991
  if (!isAllowed) {
393929
393992
  return {
393930
393993
  decision: SafetyCheckDecision.DENY,
@@ -393939,10 +394002,11 @@ var init_built_in = __esm({
393939
394002
  const resolved = path86.resolve(cwd, inputPath);
393940
394003
  let current = resolved;
393941
394004
  while (current && current !== path86.dirname(current)) {
393942
- if (fs79.existsSync(current)) {
393943
- const canonical = fs79.realpathSync(current);
394005
+ try {
394006
+ const canonical = resolveToRealPath(current);
393944
394007
  const relative5 = path86.relative(current, resolved);
393945
394008
  return path86.join(canonical, relative5);
394009
+ } catch {
393946
394010
  }
393947
394011
  current = path86.dirname(current);
393948
394012
  }
@@ -394360,7 +394424,7 @@ var init_conseca = __esm({
394360
394424
 
394361
394425
  // packages/core/dist/src/safety/registry.js
394362
394426
  import * as path87 from "node:path";
394363
- import * as fs80 from "node:fs";
394427
+ import * as fs79 from "node:fs";
394364
394428
  var CheckerRegistry;
394365
394429
  var init_registry3 = __esm({
394366
394430
  "packages/core/dist/src/safety/registry.js"() {
@@ -394398,7 +394462,7 @@ var init_registry3 = __esm({
394398
394462
  const builtInPath = _CheckerRegistry.BUILT_IN_EXTERNAL_CHECKERS.get(name3);
394399
394463
  if (builtInPath) {
394400
394464
  const fullPath = path87.join(this.checkersPath, builtInPath);
394401
- if (!fs80.existsSync(fullPath)) {
394465
+ if (!fs79.existsSync(fullPath)) {
394402
394466
  throw new Error(`Built-in checker "${name3}" not found at ${fullPath}`);
394403
394467
  }
394404
394468
  return fullPath;
@@ -402286,7 +402350,7 @@ var init_a2a_client_manager = __esm({
402286
402350
  });
402287
402351
 
402288
402352
  // packages/core/dist/src/config/config.js
402289
- import * as fs81 from "node:fs";
402353
+ import * as fs80 from "node:fs";
402290
402354
  import * as path88 from "node:path";
402291
402355
  import { inspect } from "node:util";
402292
402356
  import process15 from "node:process";
@@ -403000,7 +403064,7 @@ var init_config4 = __esm({
403000
403064
  plansDir = this.storage.getPlansDir();
403001
403065
  }
403002
403066
  try {
403003
- await fs81.promises.access(plansDir);
403067
+ await fs80.promises.access(plansDir);
403004
403068
  this.workspaceContext.addDirectory(plansDir);
403005
403069
  } catch {
403006
403070
  }
@@ -403505,7 +403569,7 @@ var init_config4 = __esm({
403505
403569
  const currentDirectories = this.workspaceContext.getDirectories().filter((dir) => !pathsToRemove.has(dir));
403506
403570
  this.workspaceContext.setDirectories(currentDirectories);
403507
403571
  try {
403508
- if (fs81.existsSync(nextPlansDir)) {
403572
+ if (fs80.existsSync(nextPlansDir)) {
403509
403573
  this.workspaceContext.addDirectory(nextPlansDir);
403510
403574
  }
403511
403575
  } catch {
@@ -408887,7 +408951,7 @@ var init_profiles2 = __esm({
408887
408951
  });
408888
408952
 
408889
408953
  // packages/core/dist/src/utils/trust.js
408890
- import * as fs82 from "node:fs";
408954
+ import * as fs81 from "node:fs";
408891
408955
  import * as path90 from "node:path";
408892
408956
  import * as crypto23 from "node:crypto";
408893
408957
  function isTrustLevel(value) {
@@ -408928,7 +408992,7 @@ function getRealPath(location) {
408928
408992
  return realPath;
408929
408993
  }
408930
408994
  try {
408931
- realPath = fs82.existsSync(location) ? fs82.realpathSync(location) : location;
408995
+ realPath = fs81.existsSync(location) ? fs81.realpathSync(location) : location;
408932
408996
  } catch {
408933
408997
  realPath = location;
408934
408998
  }
@@ -408943,8 +409007,8 @@ function loadTrustedFolders() {
408943
409007
  const userConfig = {};
408944
409008
  const userPath = Storage2.getTrustedFoldersPath();
408945
409009
  try {
408946
- if (fs82.existsSync(userPath)) {
408947
- const content = fs82.readFileSync(userPath, "utf-8");
409010
+ if (fs81.existsSync(userPath)) {
409011
+ const content = fs81.readFileSync(userPath, "utf-8");
408948
409012
  const parsed = parseTrustedFoldersJson(content);
408949
409013
  if (!isRecord2(parsed)) {
408950
409014
  errors.push({
@@ -408977,22 +409041,22 @@ function loadTrustedFolders() {
408977
409041
  }
408978
409042
  function saveTrustedFolders(trustedFoldersFile) {
408979
409043
  const dirPath = path90.dirname(trustedFoldersFile.path);
408980
- if (!fs82.existsSync(dirPath)) {
408981
- fs82.mkdirSync(dirPath, { recursive: true });
409044
+ if (!fs81.existsSync(dirPath)) {
409045
+ fs81.mkdirSync(dirPath, { recursive: true });
408982
409046
  }
408983
409047
  const content = JSON.stringify(trustedFoldersFile.config, null, 2);
408984
409048
  const tempPath = `${trustedFoldersFile.path}.tmp.${crypto23.randomUUID()}`;
408985
409049
  try {
408986
- fs82.writeFileSync(tempPath, content, {
409050
+ fs81.writeFileSync(tempPath, content, {
408987
409051
  encoding: "utf-8",
408988
409052
  // Restrict file access to read/write for the owner only
408989
409053
  mode: 384
408990
409054
  });
408991
- fs82.renameSync(tempPath, trustedFoldersFile.path);
409055
+ fs81.renameSync(tempPath, trustedFoldersFile.path);
408992
409056
  } catch (error2) {
408993
- if (fs82.existsSync(tempPath)) {
409057
+ if (fs81.existsSync(tempPath)) {
408994
409058
  try {
408995
- fs82.unlinkSync(tempPath);
409059
+ fs81.unlinkSync(tempPath);
408996
409060
  } catch {
408997
409061
  }
408998
409062
  }
@@ -409068,11 +409132,11 @@ ${errorMessages.join("\n")}
409068
409132
  Please fix the file manually before trying to update it.`);
409069
409133
  }
409070
409134
  const dirPath = path90.dirname(this.user.path);
409071
- if (!fs82.existsSync(dirPath)) {
409072
- await fs82.promises.mkdir(dirPath, { recursive: true });
409135
+ if (!fs81.existsSync(dirPath)) {
409136
+ await fs81.promises.mkdir(dirPath, { recursive: true });
409073
409137
  }
409074
- if (!fs82.existsSync(this.user.path)) {
409075
- await fs82.promises.writeFile(this.user.path, JSON.stringify({}, null, 2), {
409138
+ if (!fs81.existsSync(this.user.path)) {
409139
+ await fs81.promises.writeFile(this.user.path, JSON.stringify({}, null, 2), {
409076
409140
  // Restrict file access to read/write for the owner only
409077
409141
  mode: 384
409078
409142
  });
@@ -409086,7 +409150,7 @@ Please fix the file manually before trying to update it.`);
409086
409150
  const normalizedPath = normalizePath(folderPath);
409087
409151
  const originalTrustLevel = this.user.config[normalizedPath];
409088
409152
  try {
409089
- const content = await fs82.promises.readFile(this.user.path, "utf-8");
409153
+ const content = await fs81.promises.readFile(this.user.path, "utf-8");
409090
409154
  const config3 = {};
409091
409155
  try {
409092
409156
  const parsed = parseTrustedFoldersJson(content);
@@ -409126,11 +409190,11 @@ var require_command_exists = __commonJS({
409126
409190
  "use strict";
409127
409191
  var exec3 = __require("child_process").exec;
409128
409192
  var execSync3 = __require("child_process").execSync;
409129
- var fs89 = __require("fs");
409193
+ var fs88 = __require("fs");
409130
409194
  var path98 = __require("path");
409131
- var access5 = fs89.access;
409132
- var accessSync = fs89.accessSync;
409133
- var constants3 = fs89.constants || fs89;
409195
+ var access5 = fs88.access;
409196
+ var accessSync = fs88.accessSync;
409197
+ var constants3 = fs88.constants || fs88;
409134
409198
  var isUsingWindows = process.platform == "win32";
409135
409199
  var fileNotExists = function(commandName, callback) {
409136
409200
  access5(
@@ -409687,7 +409751,7 @@ var require_package14 = __commonJS({
409687
409751
  // packages/a2a-server/node_modules/dotenv/lib/main.js
409688
409752
  var require_main2 = __commonJS({
409689
409753
  "packages/a2a-server/node_modules/dotenv/lib/main.js"(exports2, module2) {
409690
- var fs89 = __require("fs");
409754
+ var fs88 = __require("fs");
409691
409755
  var path98 = __require("path");
409692
409756
  var os33 = __require("os");
409693
409757
  var crypto24 = __require("crypto");
@@ -409794,7 +409858,7 @@ var require_main2 = __commonJS({
409794
409858
  if (options && options.path && options.path.length > 0) {
409795
409859
  if (Array.isArray(options.path)) {
409796
409860
  for (const filepath of options.path) {
409797
- if (fs89.existsSync(filepath)) {
409861
+ if (fs88.existsSync(filepath)) {
409798
409862
  possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
409799
409863
  }
409800
409864
  }
@@ -409804,7 +409868,7 @@ var require_main2 = __commonJS({
409804
409868
  } else {
409805
409869
  possibleVaultPath = path98.resolve(process.cwd(), ".env.vault");
409806
409870
  }
409807
- if (fs89.existsSync(possibleVaultPath)) {
409871
+ if (fs88.existsSync(possibleVaultPath)) {
409808
409872
  return possibleVaultPath;
409809
409873
  }
409810
409874
  return null;
@@ -409848,7 +409912,7 @@ var require_main2 = __commonJS({
409848
409912
  const parsedAll = {};
409849
409913
  for (const path99 of optionPaths) {
409850
409914
  try {
409851
- const parsed = DotenvModule.parse(fs89.readFileSync(path99, { encoding }));
409915
+ const parsed = DotenvModule.parse(fs88.readFileSync(path99, { encoding }));
409852
409916
  DotenvModule.populate(parsedAll, parsed, options);
409853
409917
  } catch (e3) {
409854
409918
  if (debug2) {
@@ -425994,7 +426058,7 @@ import { join as join34 } from "node:path";
425994
426058
  // packages/a2a-server/src/config/config.ts
425995
426059
  var dotenv = __toESM(require_main2(), 1);
425996
426060
  init_dist4();
425997
- import * as fs83 from "node:fs";
426061
+ import * as fs82 from "node:fs";
425998
426062
  import * as path91 from "node:path";
425999
426063
 
426000
426064
  // packages/a2a-server/src/types.ts
@@ -426174,21 +426238,21 @@ function findEnvFile(startDir) {
426174
426238
  let currentDir = path91.resolve(startDir);
426175
426239
  while (true) {
426176
426240
  const geminiEnvPath = path91.join(currentDir, GEMINI_DIR, ".env");
426177
- if (fs83.existsSync(geminiEnvPath)) {
426241
+ if (fs82.existsSync(geminiEnvPath)) {
426178
426242
  return geminiEnvPath;
426179
426243
  }
426180
426244
  const envPath = path91.join(currentDir, ".env");
426181
- if (fs83.existsSync(envPath)) {
426245
+ if (fs82.existsSync(envPath)) {
426182
426246
  return envPath;
426183
426247
  }
426184
426248
  const parentDir = path91.dirname(currentDir);
426185
426249
  if (parentDir === currentDir || !parentDir) {
426186
426250
  const homeGeminiEnvPath = path91.join(process.cwd(), GEMINI_DIR, ".env");
426187
- if (fs83.existsSync(homeGeminiEnvPath)) {
426251
+ if (fs82.existsSync(homeGeminiEnvPath)) {
426188
426252
  return homeGeminiEnvPath;
426189
426253
  }
426190
426254
  const homeEnvPath = path91.join(homedir(), ".env");
426191
- if (fs83.existsSync(homeEnvPath)) {
426255
+ if (fs82.existsSync(homeEnvPath)) {
426192
426256
  return homeEnvPath;
426193
426257
  }
426194
426258
  return null;
@@ -426509,7 +426573,7 @@ init_dist4();
426509
426573
  // packages/a2a-server/src/config/settings.ts
426510
426574
  init_dist4();
426511
426575
  var import_strip_json_comments3 = __toESM(require_strip_json_comments(), 1);
426512
- import * as fs84 from "node:fs";
426576
+ import * as fs83 from "node:fs";
426513
426577
  import * as path92 from "node:path";
426514
426578
  var USER_SETTINGS_DIR = path92.join(homedir(), GEMINI_DIR);
426515
426579
  var USER_SETTINGS_PATH = path92.join(USER_SETTINGS_DIR, "settings.json");
@@ -426518,8 +426582,8 @@ function loadSettings(workspaceDir, isTrustedOverride) {
426518
426582
  let workspaceSettings = {};
426519
426583
  const settingsErrors = [];
426520
426584
  try {
426521
- if (fs84.existsSync(USER_SETTINGS_PATH)) {
426522
- const userContent = fs84.readFileSync(USER_SETTINGS_PATH, "utf-8");
426585
+ if (fs83.existsSync(USER_SETTINGS_PATH)) {
426586
+ const userContent = fs83.readFileSync(USER_SETTINGS_PATH, "utf-8");
426523
426587
  const parsedUserSettings = JSON.parse(
426524
426588
  (0, import_strip_json_comments3.default)(userContent)
426525
426589
  );
@@ -426547,8 +426611,8 @@ function loadSettings(workspaceDir, isTrustedOverride) {
426547
426611
  );
426548
426612
  if (isTrusted) {
426549
426613
  try {
426550
- if (fs84.existsSync(workspaceSettingsPath)) {
426551
- const projectContent = fs84.readFileSync(workspaceSettingsPath, "utf-8");
426614
+ if (fs83.existsSync(workspaceSettingsPath)) {
426615
+ const projectContent = fs83.readFileSync(workspaceSettingsPath, "utf-8");
426552
426616
  const parsedWorkspaceSettings = JSON.parse(
426553
426617
  (0, import_strip_json_comments3.default)(projectContent)
426554
426618
  );
@@ -426614,7 +426678,7 @@ function resolveEnvVarsInObject(obj) {
426614
426678
 
426615
426679
  // packages/a2a-server/src/config/extension.ts
426616
426680
  init_dist4();
426617
- import * as fs85 from "node:fs";
426681
+ import * as fs84 from "node:fs";
426618
426682
  import * as path93 from "node:path";
426619
426683
  var EXTENSIONS_DIRECTORY_NAME = path93.join(GEMINI_DIR, "extensions");
426620
426684
  var EXTENSIONS_CONFIG_FILENAME = "gemini-extension.json";
@@ -426639,11 +426703,11 @@ function loadExtensions(workspaceDir) {
426639
426703
  }
426640
426704
  function loadExtensionsFromDir(dir) {
426641
426705
  const extensionsDir = path93.join(dir, EXTENSIONS_DIRECTORY_NAME);
426642
- if (!fs85.existsSync(extensionsDir)) {
426706
+ if (!fs84.existsSync(extensionsDir)) {
426643
426707
  return [];
426644
426708
  }
426645
426709
  const extensions = [];
426646
- for (const subdir of fs85.readdirSync(extensionsDir)) {
426710
+ for (const subdir of fs84.readdirSync(extensionsDir)) {
426647
426711
  const extensionDir = path93.join(extensionsDir, subdir);
426648
426712
  const extension = loadExtension(extensionDir);
426649
426713
  if (extension != null) {
@@ -426653,21 +426717,21 @@ function loadExtensionsFromDir(dir) {
426653
426717
  return extensions;
426654
426718
  }
426655
426719
  function loadExtension(extensionDir) {
426656
- if (!fs85.statSync(extensionDir).isDirectory()) {
426720
+ if (!fs84.statSync(extensionDir).isDirectory()) {
426657
426721
  logger.error(
426658
426722
  `Warning: unexpected file ${extensionDir} in extensions directory.`
426659
426723
  );
426660
426724
  return null;
426661
426725
  }
426662
426726
  const configFilePath2 = path93.join(extensionDir, EXTENSIONS_CONFIG_FILENAME);
426663
- if (!fs85.existsSync(configFilePath2)) {
426727
+ if (!fs84.existsSync(configFilePath2)) {
426664
426728
  logger.error(
426665
426729
  `Warning: extension directory ${extensionDir} does not contain a config file ${configFilePath2}.`
426666
426730
  );
426667
426731
  return null;
426668
426732
  }
426669
426733
  try {
426670
- const configContent = fs85.readFileSync(configFilePath2, "utf-8");
426734
+ const configContent = fs84.readFileSync(configFilePath2, "utf-8");
426671
426735
  const config3 = JSON.parse(configContent);
426672
426736
  if (!config3.name || !config3.version) {
426673
426737
  logger.error(
@@ -426676,7 +426740,7 @@ function loadExtension(extensionDir) {
426676
426740
  return null;
426677
426741
  }
426678
426742
  const installMetadata = loadInstallMetadata(extensionDir);
426679
- const contextFiles = getContextFileNames(config3).map((contextFileName) => path93.join(extensionDir, contextFileName)).filter((contextFilePath) => fs85.existsSync(contextFilePath));
426743
+ const contextFiles = getContextFileNames(config3).map((contextFileName) => path93.join(extensionDir, contextFileName)).filter((contextFilePath) => fs84.existsSync(contextFilePath));
426680
426744
  return {
426681
426745
  name: config3.name,
426682
426746
  version: config3.version,
@@ -426706,7 +426770,7 @@ function getContextFileNames(config3) {
426706
426770
  function loadInstallMetadata(extensionDir) {
426707
426771
  const metadataFilePath = path93.join(extensionDir, INSTALL_METADATA_FILENAME);
426708
426772
  try {
426709
- const configContent = fs85.readFileSync(metadataFilePath, "utf-8");
426773
+ const configContent = fs84.readFileSync(metadataFilePath, "utf-8");
426710
426774
  const metadata2 = JSON.parse(configContent);
426711
426775
  return metadata2;
426712
426776
  } catch (e3) {
@@ -426720,7 +426784,7 @@ function loadInstallMetadata(extensionDir) {
426720
426784
  // packages/a2a-server/src/agent/task.ts
426721
426785
  init_dist4();
426722
426786
  import { EventEmitter as EventEmitter10 } from "node:events";
426723
- import * as fs86 from "node:fs/promises";
426787
+ import * as fs85 from "node:fs/promises";
426724
426788
  import * as path94 from "node:path";
426725
426789
  var Task4 = class _Task {
426726
426790
  id;
@@ -427146,7 +427210,7 @@ var Task4 = class _Task {
427146
427210
  throw new Error(`Path validation failed: ${pathError}`);
427147
427211
  }
427148
427212
  try {
427149
- const currentContent = await fs86.readFile(resolvedPath, "utf8");
427213
+ const currentContent = await fs85.readFile(resolvedPath, "utf8");
427150
427214
  return this._applyReplacement(
427151
427215
  currentContent,
427152
427216
  old_string,
@@ -427190,10 +427254,10 @@ var Task4 = class _Task {
427190
427254
  }
427191
427255
  if (checkpointsToWrite.size > 0) {
427192
427256
  const checkpointDir = this.config.storage.getProjectTempCheckpointsDir();
427193
- await fs86.mkdir(checkpointDir, { recursive: true });
427257
+ await fs85.mkdir(checkpointDir, { recursive: true });
427194
427258
  for (const [fileName, content] of checkpointsToWrite) {
427195
427259
  const filePath = path94.join(checkpointDir, fileName);
427196
- await fs86.writeFile(filePath, content);
427260
+ await fs85.writeFile(filePath, content);
427197
427261
  }
427198
427262
  }
427199
427263
  for (const request of requests) {
@@ -428267,7 +428331,7 @@ var ListExtensionsCommand = class {
428267
428331
  };
428268
428332
 
428269
428333
  // packages/a2a-server/src/commands/init.ts
428270
- import * as fs87 from "node:fs";
428334
+ import * as fs86 from "node:fs";
428271
428335
  import * as path95 from "node:path";
428272
428336
  init_dist4();
428273
428337
  var InitCommand = class {
@@ -428308,7 +428372,7 @@ var InitCommand = class {
428308
428372
  };
428309
428373
  }
428310
428374
  async handleSubmitPromptResult(result2, context2, geminiMdPath, eventBus, taskId, contextId) {
428311
- fs87.writeFileSync(geminiMdPath, "", "utf8");
428375
+ fs86.writeFileSync(geminiMdPath, "", "utf8");
428312
428376
  if (!context2.agentExecutor) {
428313
428377
  throw new Error("Agent executor not found in context.");
428314
428378
  }
@@ -428354,7 +428418,7 @@ var InitCommand = class {
428354
428418
  process.env["CODER_AGENT_WORKSPACE_PATH"],
428355
428419
  "GEMINI.md"
428356
428420
  );
428357
- const result2 = performInit(fs87.existsSync(geminiMdPath));
428421
+ const result2 = performInit(fs86.existsSync(geminiMdPath));
428358
428422
  const taskId = v4_default2();
428359
428423
  const contextId = v4_default2();
428360
428424
  switch (result2.type) {
@@ -428383,7 +428447,7 @@ var InitCommand = class {
428383
428447
 
428384
428448
  // packages/a2a-server/src/commands/restore.ts
428385
428449
  init_dist4();
428386
- import * as fs88 from "node:fs/promises";
428450
+ import * as fs87 from "node:fs/promises";
428387
428451
  import * as path96 from "node:path";
428388
428452
  var RestoreCommand = class {
428389
428453
  name = "restore";
@@ -428410,7 +428474,7 @@ var RestoreCommand = class {
428410
428474
  const filePath = path96.join(checkpointDir, selectedFile);
428411
428475
  let data;
428412
428476
  try {
428413
- data = await fs88.readFile(filePath, "utf-8");
428477
+ data = await fs87.readFile(filePath, "utf-8");
428414
428478
  } catch (error2) {
428415
428479
  if (isNodeError(error2) && error2.code === "ENOENT") {
428416
428480
  return {
@@ -428469,13 +428533,13 @@ var ListCheckpointsCommand = class {
428469
428533
  const { config: config3 } = context2;
428470
428534
  try {
428471
428535
  const checkpointDir = config3.storage.getProjectTempCheckpointsDir();
428472
- await fs88.mkdir(checkpointDir, { recursive: true });
428473
- const files = await fs88.readdir(checkpointDir);
428536
+ await fs87.mkdir(checkpointDir, { recursive: true });
428537
+ const files = await fs87.readdir(checkpointDir);
428474
428538
  const jsonFiles = files.filter((file) => file.endsWith(".json"));
428475
428539
  const checkpointFiles = /* @__PURE__ */ new Map();
428476
428540
  for (const file of jsonFiles) {
428477
428541
  const filePath = path96.join(checkpointDir, file);
428478
- const data = await fs88.readFile(filePath, "utf-8");
428542
+ const data = await fs87.readFile(filePath, "utf-8");
428479
428543
  checkpointFiles.set(file, data);
428480
428544
  }
428481
428545
  const checkpointInfoList = getCheckpointInfoList(checkpointFiles);