@google/gemini-cli 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.
Files changed (67) hide show
  1. package/bundle/{chunk-EVS7V6SI.js → chunk-2P6JQF54.js} +2 -2
  2. package/bundle/{chunk-PMUN5IJZ.js → chunk-3C7SPXNN.js} +3 -3
  3. package/bundle/{chunk-HBYY54DT.js → chunk-3JDBA23N.js} +1 -1
  4. package/bundle/{chunk-MRTOORC2.js → chunk-5HUSHSAK.js} +1 -1
  5. package/bundle/{chunk-HIFDWUBC.js → chunk-5MPSRU5R.js} +3 -3
  6. package/bundle/{chunk-D6R3GDXI.js → chunk-5YYKEMGZ.js} +7 -7
  7. package/bundle/{chunk-ETXBN7LK.js → chunk-A2WOCUFL.js} +1 -1
  8. package/bundle/{chunk-URYDP2SH.js → chunk-ARRRIJYZ.js} +1 -1
  9. package/bundle/{chunk-GIFWBR5G.js → chunk-ASSSVZQX.js} +1 -1
  10. package/bundle/{chunk-CG7RLECB.js → chunk-B3BMYWMF.js} +8 -5
  11. package/bundle/{chunk-TTDJS74S.js → chunk-BJSHOQIW.js} +3 -3
  12. package/bundle/{chunk-OQSXQOXR.js → chunk-DFL7QOXV.js} +1 -1
  13. package/bundle/{chunk-VZLZACOY.js → chunk-FF7XQXIC.js} +67 -54
  14. package/bundle/{chunk-OAXFDG4J.js → chunk-IZK7CU3P.js} +2 -2
  15. package/bundle/chunk-JEDA7JM2.js +118 -0
  16. package/bundle/chunk-JSFRBE7W.js +102505 -0
  17. package/bundle/{chunk-IFRIQSIE.js → chunk-K7QIXKKL.js} +9 -8
  18. package/bundle/{chunk-QUO63CEE.js → chunk-KLSGC3PL.js} +7 -7
  19. package/bundle/{chunk-NQO7ZYF5.js → chunk-KXVFJCMI.js} +623 -559
  20. package/bundle/{chunk-NU74E5OB.js → chunk-LHGWOWJB.js} +1 -1
  21. package/bundle/{chunk-K6GQQZ35.js → chunk-MSUIB2RO.js} +1 -1
  22. package/bundle/{chunk-56TNC54N.js → chunk-NTLOZHBH.js} +620 -557
  23. package/bundle/{chunk-QZTUH5I6.js → chunk-NZC3UDWY.js} +1 -1
  24. package/bundle/{chunk-PX72MQPF.js → chunk-O4IFXUPT.js} +8164 -14643
  25. package/bundle/{chunk-K7JTCJL6.js → chunk-OFE5GAE5.js} +2 -2
  26. package/bundle/chunk-S33GESYV.js +154 -0
  27. package/bundle/chunk-UMMUBTO7.js +1571 -0
  28. package/bundle/chunk-V6LYQ327.js +512 -0
  29. package/bundle/chunk-VB6C5OUY.js +398 -0
  30. package/bundle/chunk-WIJSBWKE.js +387737 -0
  31. package/bundle/chunk-XA5XDLB5.js +17332 -0
  32. package/bundle/{chunk-BYMHHELT.js → chunk-Y7MSAM7B.js} +1 -1
  33. package/bundle/{cleanup-KHF3XAMM.js → cleanup-H3GCICMS.js} +2 -2
  34. package/bundle/{cleanup-LIJUVJND.js → cleanup-LHISXLQZ.js} +2 -2
  35. package/bundle/{cleanup-YXYCFALS.js → cleanup-NZVLXF7J.js} +2 -2
  36. package/bundle/cleanup-SXAGDP6J.js +32 -0
  37. package/bundle/{core-3SATNZBC.js → core-TDT225X5.js} +1 -1
  38. package/bundle/{devtoolsService-54ZAMF4J.js → devtoolsService-55RGDJ56.js} +2 -2
  39. package/bundle/{devtoolsService-YH6FAC3M.js → devtoolsService-6O44GIZ5.js} +4 -3
  40. package/bundle/devtoolsService-HQAB7K6O.js +4359 -0
  41. package/bundle/{devtoolsService-XKEKJNUM.js → devtoolsService-U5TSOUVA.js} +2 -2
  42. package/bundle/{dist-GWVUFSPN.js → dist-PPDCKQFF.js} +1 -1
  43. package/bundle/{core-2BGJNGF4.js → dist-TKQYICFX.js} +1 -1
  44. package/bundle/dist-ZGMSUIFB.js +2150 -0
  45. package/bundle/docs/changelogs/preview.md +11 -3
  46. package/bundle/{gemini-USF33FXJ.js → gemini-AWI7V2EO.js} +14 -14
  47. package/bundle/{gemini-JW3NMQQQ.js → gemini-LCQSXHZ3.js} +212 -196
  48. package/bundle/{gemini-KG2OGIZ7.js → gemini-LRPGYUOW.js} +14 -14
  49. package/bundle/gemini-UWV6HULZ.js +29270 -0
  50. package/bundle/gemini.js +7 -7
  51. package/bundle/{interactiveCli-G4FFZALT.js → interactiveCli-LXN56KV2.js} +18 -9
  52. package/bundle/{interactiveCli-T4PHRDUE.js → interactiveCli-QO4HL2QB.js} +324 -296
  53. package/bundle/{interactiveCli-2DCUI4IH.js → interactiveCli-SBI3DBXQ.js} +18 -9
  54. package/bundle/interactiveCli-VJG2R7CW.js +34776 -0
  55. package/bundle/{liteRtServerManager-MP7KT7HX.js → liteRtServerManager-2XPWPLDB.js} +4 -4
  56. package/bundle/{liteRtServerManager-OVLRSYIZ.js → liteRtServerManager-36RNJODR.js} +4 -4
  57. package/bundle/{liteRtServerManager-G2WOIQU7.js → liteRtServerManager-6HGTKPXP.js} +4 -4
  58. package/bundle/liteRtServerManager-WSXSF7NS.js +65 -0
  59. package/bundle/{oauth2-provider-CL3I6VGC.js → oauth2-provider-EHUF6TNF.js} +1 -1
  60. package/bundle/{oauth2-provider-5CHFLHC2.js → oauth2-provider-FRSZPLVJ.js} +1 -1
  61. package/bundle/{oauth2-provider-2Q3EF4MW.js → oauth2-provider-KEIUB36U.js} +38 -72
  62. package/bundle/oauth2-provider-STKNXXZP.js +235 -0
  63. package/bundle/{start-VAVVPVKH.js → start-5UIAK42X.js} +6 -6
  64. package/bundle/{start-XS2AMGH6.js → start-EAAHI7BF.js} +6 -6
  65. package/bundle/{start-JOOSVCLE.js → start-GWCQ4EPF.js} +6 -6
  66. package/bundle/start-ZLDXIAVO.js +18 -0
  67. package/package.json +1 -1
@@ -2262,11 +2262,11 @@ var require_lib = __commonJS({
2262
2262
  "use strict";
2263
2263
  Object.defineProperty(exports2, "__esModule", { value: true });
2264
2264
  exports2.isBinaryFileSync = exports2.isBinaryFile = void 0;
2265
- var fs94 = __require("fs");
2265
+ var fs93 = __require("fs");
2266
2266
  var util_1 = __require("util");
2267
- var statAsync = (0, util_1.promisify)(fs94.stat);
2268
- var openAsync = (0, util_1.promisify)(fs94.open);
2269
- var closeAsync = (0, util_1.promisify)(fs94.close);
2267
+ var statAsync = (0, util_1.promisify)(fs93.stat);
2268
+ var openAsync = (0, util_1.promisify)(fs93.open);
2269
+ var closeAsync = (0, util_1.promisify)(fs93.close);
2270
2270
  var MAX_BYTES = 512;
2271
2271
  var UTF8_BOUNDARY_RESERVE = 3;
2272
2272
  var Reader = class {
@@ -2359,7 +2359,7 @@ var require_lib = __commonJS({
2359
2359
  const fileDescriptor = await openAsync(file2, "r");
2360
2360
  const allocBuffer = Buffer.alloc(MAX_BYTES + UTF8_BOUNDARY_RESERVE);
2361
2361
  return new Promise((fulfill, reject) => {
2362
- fs94.read(fileDescriptor, allocBuffer, 0, MAX_BYTES + UTF8_BOUNDARY_RESERVE, 0, (err2, bytesRead, _) => {
2362
+ fs93.read(fileDescriptor, allocBuffer, 0, MAX_BYTES + UTF8_BOUNDARY_RESERVE, 0, (err2, bytesRead, _) => {
2363
2363
  closeAsync(fileDescriptor);
2364
2364
  if (err2) {
2365
2365
  reject(err2);
@@ -2382,12 +2382,12 @@ var require_lib = __commonJS({
2382
2382
  exports2.isBinaryFile = isBinaryFile2;
2383
2383
  function isBinaryFileSync(file2, size) {
2384
2384
  if (isString2(file2)) {
2385
- const stat14 = fs94.statSync(file2);
2385
+ const stat14 = fs93.statSync(file2);
2386
2386
  isStatFile(stat14);
2387
- const fileDescriptor = fs94.openSync(file2, "r");
2387
+ const fileDescriptor = fs93.openSync(file2, "r");
2388
2388
  const allocBuffer = Buffer.alloc(MAX_BYTES + UTF8_BOUNDARY_RESERVE);
2389
- const bytesRead = fs94.readSync(fileDescriptor, allocBuffer, 0, MAX_BYTES + UTF8_BOUNDARY_RESERVE, 0);
2390
- fs94.closeSync(fileDescriptor);
2389
+ const bytesRead = fs93.readSync(fileDescriptor, allocBuffer, 0, MAX_BYTES + UTF8_BOUNDARY_RESERVE, 0);
2390
+ fs93.closeSync(fileDescriptor);
2391
2391
  return isBinaryCheck(allocBuffer, bytesRead);
2392
2392
  } else {
2393
2393
  if (size === void 0) {
@@ -2498,54 +2498,54 @@ var require_polyfills = __commonJS({
2498
2498
  }
2499
2499
  var chdir;
2500
2500
  module2.exports = patch;
2501
- function patch(fs94) {
2501
+ function patch(fs93) {
2502
2502
  if (constants6.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
2503
- patchLchmod(fs94);
2504
- }
2505
- if (!fs94.lutimes) {
2506
- patchLutimes(fs94);
2507
- }
2508
- fs94.chown = chownFix(fs94.chown);
2509
- fs94.fchown = chownFix(fs94.fchown);
2510
- fs94.lchown = chownFix(fs94.lchown);
2511
- fs94.chmod = chmodFix(fs94.chmod);
2512
- fs94.fchmod = chmodFix(fs94.fchmod);
2513
- fs94.lchmod = chmodFix(fs94.lchmod);
2514
- fs94.chownSync = chownFixSync(fs94.chownSync);
2515
- fs94.fchownSync = chownFixSync(fs94.fchownSync);
2516
- fs94.lchownSync = chownFixSync(fs94.lchownSync);
2517
- fs94.chmodSync = chmodFixSync(fs94.chmodSync);
2518
- fs94.fchmodSync = chmodFixSync(fs94.fchmodSync);
2519
- fs94.lchmodSync = chmodFixSync(fs94.lchmodSync);
2520
- fs94.stat = statFix(fs94.stat);
2521
- fs94.fstat = statFix(fs94.fstat);
2522
- fs94.lstat = statFix(fs94.lstat);
2523
- fs94.statSync = statFixSync(fs94.statSync);
2524
- fs94.fstatSync = statFixSync(fs94.fstatSync);
2525
- fs94.lstatSync = statFixSync(fs94.lstatSync);
2526
- if (fs94.chmod && !fs94.lchmod) {
2527
- fs94.lchmod = function(path113, mode, cb) {
2503
+ patchLchmod(fs93);
2504
+ }
2505
+ if (!fs93.lutimes) {
2506
+ patchLutimes(fs93);
2507
+ }
2508
+ fs93.chown = chownFix(fs93.chown);
2509
+ fs93.fchown = chownFix(fs93.fchown);
2510
+ fs93.lchown = chownFix(fs93.lchown);
2511
+ fs93.chmod = chmodFix(fs93.chmod);
2512
+ fs93.fchmod = chmodFix(fs93.fchmod);
2513
+ fs93.lchmod = chmodFix(fs93.lchmod);
2514
+ fs93.chownSync = chownFixSync(fs93.chownSync);
2515
+ fs93.fchownSync = chownFixSync(fs93.fchownSync);
2516
+ fs93.lchownSync = chownFixSync(fs93.lchownSync);
2517
+ fs93.chmodSync = chmodFixSync(fs93.chmodSync);
2518
+ fs93.fchmodSync = chmodFixSync(fs93.fchmodSync);
2519
+ fs93.lchmodSync = chmodFixSync(fs93.lchmodSync);
2520
+ fs93.stat = statFix(fs93.stat);
2521
+ fs93.fstat = statFix(fs93.fstat);
2522
+ fs93.lstat = statFix(fs93.lstat);
2523
+ fs93.statSync = statFixSync(fs93.statSync);
2524
+ fs93.fstatSync = statFixSync(fs93.fstatSync);
2525
+ fs93.lstatSync = statFixSync(fs93.lstatSync);
2526
+ if (fs93.chmod && !fs93.lchmod) {
2527
+ fs93.lchmod = function(path113, mode, cb) {
2528
2528
  if (cb) process.nextTick(cb);
2529
2529
  };
2530
- fs94.lchmodSync = function() {
2530
+ fs93.lchmodSync = function() {
2531
2531
  };
2532
2532
  }
2533
- if (fs94.chown && !fs94.lchown) {
2534
- fs94.lchown = function(path113, uid, gid, cb) {
2533
+ if (fs93.chown && !fs93.lchown) {
2534
+ fs93.lchown = function(path113, uid, gid, cb) {
2535
2535
  if (cb) process.nextTick(cb);
2536
2536
  };
2537
- fs94.lchownSync = function() {
2537
+ fs93.lchownSync = function() {
2538
2538
  };
2539
2539
  }
2540
2540
  if (platform12 === "win32") {
2541
- fs94.rename = typeof fs94.rename !== "function" ? fs94.rename : function(fs$rename) {
2541
+ fs93.rename = typeof fs93.rename !== "function" ? fs93.rename : function(fs$rename) {
2542
2542
  function rename4(from, to, cb) {
2543
2543
  var start2 = Date.now();
2544
2544
  var backoff = 0;
2545
2545
  fs$rename(from, to, function CB(er) {
2546
2546
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start2 < 6e4) {
2547
2547
  setTimeout(function() {
2548
- fs94.stat(to, function(stater, st) {
2548
+ fs93.stat(to, function(stater, st) {
2549
2549
  if (stater && stater.code === "ENOENT")
2550
2550
  fs$rename(from, to, CB);
2551
2551
  else
@@ -2561,9 +2561,9 @@ var require_polyfills = __commonJS({
2561
2561
  }
2562
2562
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename4, fs$rename);
2563
2563
  return rename4;
2564
- }(fs94.rename);
2564
+ }(fs93.rename);
2565
2565
  }
2566
- fs94.read = typeof fs94.read !== "function" ? fs94.read : function(fs$read) {
2566
+ fs93.read = typeof fs93.read !== "function" ? fs93.read : function(fs$read) {
2567
2567
  function read2(fd, buffer, offset, length, position, callback_) {
2568
2568
  var callback;
2569
2569
  if (callback_ && typeof callback_ === "function") {
@@ -2571,22 +2571,22 @@ var require_polyfills = __commonJS({
2571
2571
  callback = function(er, _, __) {
2572
2572
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
2573
2573
  eagCounter++;
2574
- return fs$read.call(fs94, fd, buffer, offset, length, position, callback);
2574
+ return fs$read.call(fs93, fd, buffer, offset, length, position, callback);
2575
2575
  }
2576
2576
  callback_.apply(this, arguments);
2577
2577
  };
2578
2578
  }
2579
- return fs$read.call(fs94, fd, buffer, offset, length, position, callback);
2579
+ return fs$read.call(fs93, fd, buffer, offset, length, position, callback);
2580
2580
  }
2581
2581
  if (Object.setPrototypeOf) Object.setPrototypeOf(read2, fs$read);
2582
2582
  return read2;
2583
- }(fs94.read);
2584
- fs94.readSync = typeof fs94.readSync !== "function" ? fs94.readSync : /* @__PURE__ */ function(fs$readSync) {
2583
+ }(fs93.read);
2584
+ fs93.readSync = typeof fs93.readSync !== "function" ? fs93.readSync : /* @__PURE__ */ function(fs$readSync) {
2585
2585
  return function(fd, buffer, offset, length, position) {
2586
2586
  var eagCounter = 0;
2587
2587
  while (true) {
2588
2588
  try {
2589
- return fs$readSync.call(fs94, fd, buffer, offset, length, position);
2589
+ return fs$readSync.call(fs93, fd, buffer, offset, length, position);
2590
2590
  } catch (er) {
2591
2591
  if (er.code === "EAGAIN" && eagCounter < 10) {
2592
2592
  eagCounter++;
@@ -2596,10 +2596,10 @@ var require_polyfills = __commonJS({
2596
2596
  }
2597
2597
  }
2598
2598
  };
2599
- }(fs94.readSync);
2600
- function patchLchmod(fs95) {
2601
- fs95.lchmod = function(path113, mode, callback) {
2602
- fs95.open(
2599
+ }(fs93.readSync);
2600
+ function patchLchmod(fs94) {
2601
+ fs94.lchmod = function(path113, mode, callback) {
2602
+ fs94.open(
2603
2603
  path113,
2604
2604
  constants6.O_WRONLY | constants6.O_SYMLINK,
2605
2605
  mode,
@@ -2608,80 +2608,80 @@ var require_polyfills = __commonJS({
2608
2608
  if (callback) callback(err2);
2609
2609
  return;
2610
2610
  }
2611
- fs95.fchmod(fd, mode, function(err3) {
2612
- fs95.close(fd, function(err22) {
2611
+ fs94.fchmod(fd, mode, function(err3) {
2612
+ fs94.close(fd, function(err22) {
2613
2613
  if (callback) callback(err3 || err22);
2614
2614
  });
2615
2615
  });
2616
2616
  }
2617
2617
  );
2618
2618
  };
2619
- fs95.lchmodSync = function(path113, mode) {
2620
- var fd = fs95.openSync(path113, constants6.O_WRONLY | constants6.O_SYMLINK, mode);
2619
+ fs94.lchmodSync = function(path113, mode) {
2620
+ var fd = fs94.openSync(path113, constants6.O_WRONLY | constants6.O_SYMLINK, mode);
2621
2621
  var threw = true;
2622
2622
  var ret;
2623
2623
  try {
2624
- ret = fs95.fchmodSync(fd, mode);
2624
+ ret = fs94.fchmodSync(fd, mode);
2625
2625
  threw = false;
2626
2626
  } finally {
2627
2627
  if (threw) {
2628
2628
  try {
2629
- fs95.closeSync(fd);
2629
+ fs94.closeSync(fd);
2630
2630
  } catch (er) {
2631
2631
  }
2632
2632
  } else {
2633
- fs95.closeSync(fd);
2633
+ fs94.closeSync(fd);
2634
2634
  }
2635
2635
  }
2636
2636
  return ret;
2637
2637
  };
2638
2638
  }
2639
- function patchLutimes(fs95) {
2640
- if (constants6.hasOwnProperty("O_SYMLINK") && fs95.futimes) {
2641
- fs95.lutimes = function(path113, at, mt, cb) {
2642
- fs95.open(path113, constants6.O_SYMLINK, function(er, fd) {
2639
+ function patchLutimes(fs94) {
2640
+ if (constants6.hasOwnProperty("O_SYMLINK") && fs94.futimes) {
2641
+ fs94.lutimes = function(path113, at, mt, cb) {
2642
+ fs94.open(path113, constants6.O_SYMLINK, function(er, fd) {
2643
2643
  if (er) {
2644
2644
  if (cb) cb(er);
2645
2645
  return;
2646
2646
  }
2647
- fs95.futimes(fd, at, mt, function(er2) {
2648
- fs95.close(fd, function(er22) {
2647
+ fs94.futimes(fd, at, mt, function(er2) {
2648
+ fs94.close(fd, function(er22) {
2649
2649
  if (cb) cb(er2 || er22);
2650
2650
  });
2651
2651
  });
2652
2652
  });
2653
2653
  };
2654
- fs95.lutimesSync = function(path113, at, mt) {
2655
- var fd = fs95.openSync(path113, constants6.O_SYMLINK);
2654
+ fs94.lutimesSync = function(path113, at, mt) {
2655
+ var fd = fs94.openSync(path113, constants6.O_SYMLINK);
2656
2656
  var ret;
2657
2657
  var threw = true;
2658
2658
  try {
2659
- ret = fs95.futimesSync(fd, at, mt);
2659
+ ret = fs94.futimesSync(fd, at, mt);
2660
2660
  threw = false;
2661
2661
  } finally {
2662
2662
  if (threw) {
2663
2663
  try {
2664
- fs95.closeSync(fd);
2664
+ fs94.closeSync(fd);
2665
2665
  } catch (er) {
2666
2666
  }
2667
2667
  } else {
2668
- fs95.closeSync(fd);
2668
+ fs94.closeSync(fd);
2669
2669
  }
2670
2670
  }
2671
2671
  return ret;
2672
2672
  };
2673
- } else if (fs95.futimes) {
2674
- fs95.lutimes = function(_a4, _b, _c, cb) {
2673
+ } else if (fs94.futimes) {
2674
+ fs94.lutimes = function(_a4, _b, _c, cb) {
2675
2675
  if (cb) process.nextTick(cb);
2676
2676
  };
2677
- fs95.lutimesSync = function() {
2677
+ fs94.lutimesSync = function() {
2678
2678
  };
2679
2679
  }
2680
2680
  }
2681
2681
  function chmodFix(orig) {
2682
2682
  if (!orig) return orig;
2683
2683
  return function(target, mode, cb) {
2684
- return orig.call(fs94, target, mode, function(er) {
2684
+ return orig.call(fs93, target, mode, function(er) {
2685
2685
  if (chownErOk(er)) er = null;
2686
2686
  if (cb) cb.apply(this, arguments);
2687
2687
  });
@@ -2691,7 +2691,7 @@ var require_polyfills = __commonJS({
2691
2691
  if (!orig) return orig;
2692
2692
  return function(target, mode) {
2693
2693
  try {
2694
- return orig.call(fs94, target, mode);
2694
+ return orig.call(fs93, target, mode);
2695
2695
  } catch (er) {
2696
2696
  if (!chownErOk(er)) throw er;
2697
2697
  }
@@ -2700,7 +2700,7 @@ var require_polyfills = __commonJS({
2700
2700
  function chownFix(orig) {
2701
2701
  if (!orig) return orig;
2702
2702
  return function(target, uid, gid, cb) {
2703
- return orig.call(fs94, target, uid, gid, function(er) {
2703
+ return orig.call(fs93, target, uid, gid, function(er) {
2704
2704
  if (chownErOk(er)) er = null;
2705
2705
  if (cb) cb.apply(this, arguments);
2706
2706
  });
@@ -2710,7 +2710,7 @@ var require_polyfills = __commonJS({
2710
2710
  if (!orig) return orig;
2711
2711
  return function(target, uid, gid) {
2712
2712
  try {
2713
- return orig.call(fs94, target, uid, gid);
2713
+ return orig.call(fs93, target, uid, gid);
2714
2714
  } catch (er) {
2715
2715
  if (!chownErOk(er)) throw er;
2716
2716
  }
@@ -2730,13 +2730,13 @@ var require_polyfills = __commonJS({
2730
2730
  }
2731
2731
  if (cb) cb.apply(this, arguments);
2732
2732
  }
2733
- return options ? orig.call(fs94, target, options, callback) : orig.call(fs94, target, callback);
2733
+ return options ? orig.call(fs93, target, options, callback) : orig.call(fs93, target, callback);
2734
2734
  };
2735
2735
  }
2736
2736
  function statFixSync(orig) {
2737
2737
  if (!orig) return orig;
2738
2738
  return function(target, options) {
2739
- var stats = options ? orig.call(fs94, target, options) : orig.call(fs94, target);
2739
+ var stats = options ? orig.call(fs93, target, options) : orig.call(fs93, target);
2740
2740
  if (stats) {
2741
2741
  if (stats.uid < 0) stats.uid += 4294967296;
2742
2742
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -2765,7 +2765,7 @@ var require_legacy_streams = __commonJS({
2765
2765
  "node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
2766
2766
  var Stream2 = __require("stream").Stream;
2767
2767
  module2.exports = legacy;
2768
- function legacy(fs94) {
2768
+ function legacy(fs93) {
2769
2769
  return {
2770
2770
  ReadStream,
2771
2771
  WriteStream
@@ -2808,7 +2808,7 @@ var require_legacy_streams = __commonJS({
2808
2808
  });
2809
2809
  return;
2810
2810
  }
2811
- fs94.open(this.path, this.flags, this.mode, function(err2, fd) {
2811
+ fs93.open(this.path, this.flags, this.mode, function(err2, fd) {
2812
2812
  if (err2) {
2813
2813
  self2.emit("error", err2);
2814
2814
  self2.readable = false;
@@ -2847,7 +2847,7 @@ var require_legacy_streams = __commonJS({
2847
2847
  this.busy = false;
2848
2848
  this._queue = [];
2849
2849
  if (this.fd === null) {
2850
- this._open = fs94.open;
2850
+ this._open = fs93.open;
2851
2851
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
2852
2852
  this.flush();
2853
2853
  }
@@ -2882,7 +2882,7 @@ var require_clone = __commonJS({
2882
2882
  // node_modules/graceful-fs/graceful-fs.js
2883
2883
  var require_graceful_fs = __commonJS({
2884
2884
  "node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
2885
- var fs94 = __require("fs");
2885
+ var fs93 = __require("fs");
2886
2886
  var polyfills = require_polyfills();
2887
2887
  var legacy = require_legacy_streams();
2888
2888
  var clone2 = require_clone();
@@ -2914,12 +2914,12 @@ var require_graceful_fs = __commonJS({
2914
2914
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
2915
2915
  console.error(m);
2916
2916
  };
2917
- if (!fs94[gracefulQueue]) {
2917
+ if (!fs93[gracefulQueue]) {
2918
2918
  queue = global[gracefulQueue] || [];
2919
- publishQueue(fs94, queue);
2920
- fs94.close = function(fs$close) {
2919
+ publishQueue(fs93, queue);
2920
+ fs93.close = function(fs$close) {
2921
2921
  function close(fd, cb) {
2922
- return fs$close.call(fs94, fd, function(err2) {
2922
+ return fs$close.call(fs93, fd, function(err2) {
2923
2923
  if (!err2) {
2924
2924
  resetQueue();
2925
2925
  }
@@ -2931,40 +2931,40 @@ var require_graceful_fs = __commonJS({
2931
2931
  value: fs$close
2932
2932
  });
2933
2933
  return close;
2934
- }(fs94.close);
2935
- fs94.closeSync = function(fs$closeSync) {
2934
+ }(fs93.close);
2935
+ fs93.closeSync = function(fs$closeSync) {
2936
2936
  function closeSync2(fd) {
2937
- fs$closeSync.apply(fs94, arguments);
2937
+ fs$closeSync.apply(fs93, arguments);
2938
2938
  resetQueue();
2939
2939
  }
2940
2940
  Object.defineProperty(closeSync2, previousSymbol, {
2941
2941
  value: fs$closeSync
2942
2942
  });
2943
2943
  return closeSync2;
2944
- }(fs94.closeSync);
2944
+ }(fs93.closeSync);
2945
2945
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
2946
2946
  process.on("exit", function() {
2947
- debug2(fs94[gracefulQueue]);
2948
- __require("assert").equal(fs94[gracefulQueue].length, 0);
2947
+ debug2(fs93[gracefulQueue]);
2948
+ __require("assert").equal(fs93[gracefulQueue].length, 0);
2949
2949
  });
2950
2950
  }
2951
2951
  }
2952
2952
  var queue;
2953
2953
  if (!global[gracefulQueue]) {
2954
- publishQueue(global, fs94[gracefulQueue]);
2955
- }
2956
- module2.exports = patch(clone2(fs94));
2957
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs94.__patched) {
2958
- module2.exports = patch(fs94);
2959
- fs94.__patched = true;
2960
- }
2961
- function patch(fs95) {
2962
- polyfills(fs95);
2963
- fs95.gracefulify = patch;
2964
- fs95.createReadStream = createReadStream3;
2965
- fs95.createWriteStream = createWriteStream6;
2966
- var fs$readFile = fs95.readFile;
2967
- fs95.readFile = readFile15;
2954
+ publishQueue(global, fs93[gracefulQueue]);
2955
+ }
2956
+ module2.exports = patch(clone2(fs93));
2957
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs93.__patched) {
2958
+ module2.exports = patch(fs93);
2959
+ fs93.__patched = true;
2960
+ }
2961
+ function patch(fs94) {
2962
+ polyfills(fs94);
2963
+ fs94.gracefulify = patch;
2964
+ fs94.createReadStream = createReadStream3;
2965
+ fs94.createWriteStream = createWriteStream6;
2966
+ var fs$readFile = fs94.readFile;
2967
+ fs94.readFile = readFile15;
2968
2968
  function readFile15(path113, options, cb) {
2969
2969
  if (typeof options === "function")
2970
2970
  cb = options, options = null;
@@ -2980,8 +2980,8 @@ var require_graceful_fs = __commonJS({
2980
2980
  });
2981
2981
  }
2982
2982
  }
2983
- var fs$writeFile = fs95.writeFile;
2984
- fs95.writeFile = writeFile10;
2983
+ var fs$writeFile = fs94.writeFile;
2984
+ fs94.writeFile = writeFile10;
2985
2985
  function writeFile10(path113, data, options, cb) {
2986
2986
  if (typeof options === "function")
2987
2987
  cb = options, options = null;
@@ -2997,9 +2997,9 @@ var require_graceful_fs = __commonJS({
2997
2997
  });
2998
2998
  }
2999
2999
  }
3000
- var fs$appendFile = fs95.appendFile;
3000
+ var fs$appendFile = fs94.appendFile;
3001
3001
  if (fs$appendFile)
3002
- fs95.appendFile = appendFile;
3002
+ fs94.appendFile = appendFile;
3003
3003
  function appendFile(path113, data, options, cb) {
3004
3004
  if (typeof options === "function")
3005
3005
  cb = options, options = null;
@@ -3015,9 +3015,9 @@ var require_graceful_fs = __commonJS({
3015
3015
  });
3016
3016
  }
3017
3017
  }
3018
- var fs$copyFile = fs95.copyFile;
3018
+ var fs$copyFile = fs94.copyFile;
3019
3019
  if (fs$copyFile)
3020
- fs95.copyFile = copyFile2;
3020
+ fs94.copyFile = copyFile2;
3021
3021
  function copyFile2(src, dest, flags2, cb) {
3022
3022
  if (typeof flags2 === "function") {
3023
3023
  cb = flags2;
@@ -3035,8 +3035,8 @@ var require_graceful_fs = __commonJS({
3035
3035
  });
3036
3036
  }
3037
3037
  }
3038
- var fs$readdir = fs95.readdir;
3039
- fs95.readdir = readdir13;
3038
+ var fs$readdir = fs94.readdir;
3039
+ fs94.readdir = readdir13;
3040
3040
  var noReaddirOptionVersions = /^v[0-5]\./;
3041
3041
  function readdir13(path113, options, cb) {
3042
3042
  if (typeof options === "function")
@@ -3077,21 +3077,21 @@ var require_graceful_fs = __commonJS({
3077
3077
  }
3078
3078
  }
3079
3079
  if (process.version.substr(0, 4) === "v0.8") {
3080
- var legStreams = legacy(fs95);
3080
+ var legStreams = legacy(fs94);
3081
3081
  ReadStream = legStreams.ReadStream;
3082
3082
  WriteStream = legStreams.WriteStream;
3083
3083
  }
3084
- var fs$ReadStream = fs95.ReadStream;
3084
+ var fs$ReadStream = fs94.ReadStream;
3085
3085
  if (fs$ReadStream) {
3086
3086
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
3087
3087
  ReadStream.prototype.open = ReadStream$open;
3088
3088
  }
3089
- var fs$WriteStream = fs95.WriteStream;
3089
+ var fs$WriteStream = fs94.WriteStream;
3090
3090
  if (fs$WriteStream) {
3091
3091
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
3092
3092
  WriteStream.prototype.open = WriteStream$open;
3093
3093
  }
3094
- Object.defineProperty(fs95, "ReadStream", {
3094
+ Object.defineProperty(fs94, "ReadStream", {
3095
3095
  get: function() {
3096
3096
  return ReadStream;
3097
3097
  },
@@ -3101,7 +3101,7 @@ var require_graceful_fs = __commonJS({
3101
3101
  enumerable: true,
3102
3102
  configurable: true
3103
3103
  });
3104
- Object.defineProperty(fs95, "WriteStream", {
3104
+ Object.defineProperty(fs94, "WriteStream", {
3105
3105
  get: function() {
3106
3106
  return WriteStream;
3107
3107
  },
@@ -3112,7 +3112,7 @@ var require_graceful_fs = __commonJS({
3112
3112
  configurable: true
3113
3113
  });
3114
3114
  var FileReadStream = ReadStream;
3115
- Object.defineProperty(fs95, "FileReadStream", {
3115
+ Object.defineProperty(fs94, "FileReadStream", {
3116
3116
  get: function() {
3117
3117
  return FileReadStream;
3118
3118
  },
@@ -3123,7 +3123,7 @@ var require_graceful_fs = __commonJS({
3123
3123
  configurable: true
3124
3124
  });
3125
3125
  var FileWriteStream = WriteStream;
3126
- Object.defineProperty(fs95, "FileWriteStream", {
3126
+ Object.defineProperty(fs94, "FileWriteStream", {
3127
3127
  get: function() {
3128
3128
  return FileWriteStream;
3129
3129
  },
@@ -3172,13 +3172,13 @@ var require_graceful_fs = __commonJS({
3172
3172
  });
3173
3173
  }
3174
3174
  function createReadStream3(path113, options) {
3175
- return new fs95.ReadStream(path113, options);
3175
+ return new fs94.ReadStream(path113, options);
3176
3176
  }
3177
3177
  function createWriteStream6(path113, options) {
3178
- return new fs95.WriteStream(path113, options);
3178
+ return new fs94.WriteStream(path113, options);
3179
3179
  }
3180
- var fs$open = fs95.open;
3181
- fs95.open = open8;
3180
+ var fs$open = fs94.open;
3181
+ fs94.open = open8;
3182
3182
  function open8(path113, flags2, mode, cb) {
3183
3183
  if (typeof mode === "function")
3184
3184
  cb = mode, mode = null;
@@ -3194,20 +3194,20 @@ var require_graceful_fs = __commonJS({
3194
3194
  });
3195
3195
  }
3196
3196
  }
3197
- return fs95;
3197
+ return fs94;
3198
3198
  }
3199
3199
  function enqueue(elem) {
3200
3200
  debug2("ENQUEUE", elem[0].name, elem[1]);
3201
- fs94[gracefulQueue].push(elem);
3201
+ fs93[gracefulQueue].push(elem);
3202
3202
  retry();
3203
3203
  }
3204
3204
  var retryTimer;
3205
3205
  function resetQueue() {
3206
3206
  var now = Date.now();
3207
- for (var i3 = 0; i3 < fs94[gracefulQueue].length; ++i3) {
3208
- if (fs94[gracefulQueue][i3].length > 2) {
3209
- fs94[gracefulQueue][i3][3] = now;
3210
- fs94[gracefulQueue][i3][4] = now;
3207
+ for (var i3 = 0; i3 < fs93[gracefulQueue].length; ++i3) {
3208
+ if (fs93[gracefulQueue][i3].length > 2) {
3209
+ fs93[gracefulQueue][i3][3] = now;
3210
+ fs93[gracefulQueue][i3][4] = now;
3211
3211
  }
3212
3212
  }
3213
3213
  retry();
@@ -3215,9 +3215,9 @@ var require_graceful_fs = __commonJS({
3215
3215
  function retry() {
3216
3216
  clearTimeout(retryTimer);
3217
3217
  retryTimer = void 0;
3218
- if (fs94[gracefulQueue].length === 0)
3218
+ if (fs93[gracefulQueue].length === 0)
3219
3219
  return;
3220
- var elem = fs94[gracefulQueue].shift();
3220
+ var elem = fs93[gracefulQueue].shift();
3221
3221
  var fn = elem[0];
3222
3222
  var args2 = elem[1];
3223
3223
  var err2 = elem[2];
@@ -3239,7 +3239,7 @@ var require_graceful_fs = __commonJS({
3239
3239
  debug2("RETRY", fn.name, args2);
3240
3240
  fn.apply(null, args2.concat([startTime]));
3241
3241
  } else {
3242
- fs94[gracefulQueue].push(elem);
3242
+ fs93[gracefulQueue].push(elem);
3243
3243
  }
3244
3244
  }
3245
3245
  if (retryTimer === void 0) {
@@ -3674,10 +3674,10 @@ var require_mtime_precision = __commonJS({
3674
3674
  "node_modules/proper-lockfile/lib/mtime-precision.js"(exports2, module2) {
3675
3675
  "use strict";
3676
3676
  var cacheSymbol = Symbol();
3677
- function probe(file2, fs94, callback) {
3678
- const cachedPrecision = fs94[cacheSymbol];
3677
+ function probe(file2, fs93, callback) {
3678
+ const cachedPrecision = fs93[cacheSymbol];
3679
3679
  if (cachedPrecision) {
3680
- return fs94.stat(file2, (err2, stat14) => {
3680
+ return fs93.stat(file2, (err2, stat14) => {
3681
3681
  if (err2) {
3682
3682
  return callback(err2);
3683
3683
  }
@@ -3685,16 +3685,16 @@ var require_mtime_precision = __commonJS({
3685
3685
  });
3686
3686
  }
3687
3687
  const mtime = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5);
3688
- fs94.utimes(file2, mtime, mtime, (err2) => {
3688
+ fs93.utimes(file2, mtime, mtime, (err2) => {
3689
3689
  if (err2) {
3690
3690
  return callback(err2);
3691
3691
  }
3692
- fs94.stat(file2, (err3, stat14) => {
3692
+ fs93.stat(file2, (err3, stat14) => {
3693
3693
  if (err3) {
3694
3694
  return callback(err3);
3695
3695
  }
3696
3696
  const precision = stat14.mtime.getTime() % 1e3 === 0 ? "s" : "ms";
3697
- Object.defineProperty(fs94, cacheSymbol, { value: precision });
3697
+ Object.defineProperty(fs93, cacheSymbol, { value: precision });
3698
3698
  callback(null, stat14.mtime, precision);
3699
3699
  });
3700
3700
  });
@@ -3716,7 +3716,7 @@ var require_lockfile = __commonJS({
3716
3716
  "node_modules/proper-lockfile/lib/lockfile.js"(exports2, module2) {
3717
3717
  "use strict";
3718
3718
  var path113 = __require("path");
3719
- var fs94 = require_graceful_fs();
3719
+ var fs93 = require_graceful_fs();
3720
3720
  var retry = require_retry2();
3721
3721
  var onExit2 = require_signal_exit();
3722
3722
  var mtimePrecision = require_mtime_precision();
@@ -3847,7 +3847,7 @@ var require_lockfile = __commonJS({
3847
3847
  update: null,
3848
3848
  realpath: true,
3849
3849
  retries: 0,
3850
- fs: fs94,
3850
+ fs: fs93,
3851
3851
  onCompromised: (err2) => {
3852
3852
  throw err2;
3853
3853
  },
@@ -3891,7 +3891,7 @@ var require_lockfile = __commonJS({
3891
3891
  }
3892
3892
  function unlock(file2, options, callback) {
3893
3893
  options = {
3894
- fs: fs94,
3894
+ fs: fs93,
3895
3895
  realpath: true,
3896
3896
  ...options
3897
3897
  };
@@ -3913,7 +3913,7 @@ var require_lockfile = __commonJS({
3913
3913
  options = {
3914
3914
  stale: 1e4,
3915
3915
  realpath: true,
3916
- fs: fs94,
3916
+ fs: fs93,
3917
3917
  ...options
3918
3918
  };
3919
3919
  options.stale = Math.max(options.stale || 0, 2e3);
@@ -3952,16 +3952,16 @@ var require_lockfile = __commonJS({
3952
3952
  var require_adapter = __commonJS({
3953
3953
  "node_modules/proper-lockfile/lib/adapter.js"(exports2, module2) {
3954
3954
  "use strict";
3955
- var fs94 = require_graceful_fs();
3956
- function createSyncFs(fs95) {
3955
+ var fs93 = require_graceful_fs();
3956
+ function createSyncFs(fs94) {
3957
3957
  const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
3958
- const newFs = { ...fs95 };
3958
+ const newFs = { ...fs94 };
3959
3959
  methods.forEach((method) => {
3960
3960
  newFs[method] = (...args2) => {
3961
3961
  const callback = args2.pop();
3962
3962
  let ret;
3963
3963
  try {
3964
- ret = fs95[`${method}Sync`](...args2);
3964
+ ret = fs94[`${method}Sync`](...args2);
3965
3965
  } catch (err2) {
3966
3966
  return callback(err2);
3967
3967
  }
@@ -3999,7 +3999,7 @@ var require_adapter = __commonJS({
3999
3999
  }
4000
4000
  function toSyncOptions(options) {
4001
4001
  options = { ...options };
4002
- options.fs = createSyncFs(options.fs || fs94);
4002
+ options.fs = createSyncFs(options.fs || fs93);
4003
4003
  if (typeof options.retries === "number" && options.retries > 0 || options.retries && typeof options.retries.retries === "number" && options.retries.retries > 0) {
4004
4004
  throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
4005
4005
  }
@@ -10120,7 +10120,7 @@ var require_util2 = __commonJS({
10120
10120
  exports2.removeUndefinedValuesInObject = removeUndefinedValuesInObject;
10121
10121
  exports2.isValidFile = isValidFile;
10122
10122
  exports2.getWellKnownCertificateConfigFileLocation = getWellKnownCertificateConfigFileLocation;
10123
- var fs94 = __require("fs");
10123
+ var fs93 = __require("fs");
10124
10124
  var os33 = __require("os");
10125
10125
  var path113 = __require("path");
10126
10126
  var WELL_KNOWN_CERTIFICATE_CONFIG_FILE = "certificate_config.json";
@@ -10208,7 +10208,7 @@ var require_util2 = __commonJS({
10208
10208
  }
10209
10209
  async function isValidFile(filePath) {
10210
10210
  try {
10211
- const stats = await fs94.promises.lstat(filePath);
10211
+ const stats = await fs93.promises.lstat(filePath);
10212
10212
  return stats.isFile();
10213
10213
  } catch (e2) {
10214
10214
  return false;
@@ -12067,7 +12067,7 @@ var require_src5 = __commonJS({
12067
12067
  value: true
12068
12068
  });
12069
12069
  exports2.GoogleToken = void 0;
12070
- var fs94 = _interopRequireWildcard(__require("fs"));
12070
+ var fs93 = _interopRequireWildcard(__require("fs"));
12071
12071
  var _gaxios = require_src2();
12072
12072
  var jws = _interopRequireWildcard(require_jws());
12073
12073
  var path113 = _interopRequireWildcard(__require("path"));
@@ -12310,7 +12310,7 @@ var require_src5 = __commonJS({
12310
12310
  });
12311
12311
  };
12312
12312
  }
12313
- var readFile15 = fs94.readFile ? (0, _util.promisify)(fs94.readFile) : /* @__PURE__ */ _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
12313
+ var readFile15 = fs93.readFile ? (0, _util.promisify)(fs93.readFile) : /* @__PURE__ */ _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
12314
12314
  return _regenerator().w(function(_context) {
12315
12315
  while (1) switch (_context.n) {
12316
12316
  case 0:
@@ -14064,12 +14064,12 @@ var require_filesubjecttokensupplier = __commonJS({
14064
14064
  Object.defineProperty(exports2, "__esModule", { value: true });
14065
14065
  exports2.FileSubjectTokenSupplier = void 0;
14066
14066
  var util_1 = __require("util");
14067
- var fs94 = __require("fs");
14068
- var readFile15 = (0, util_1.promisify)(fs94.readFile ?? (() => {
14067
+ var fs93 = __require("fs");
14068
+ var readFile15 = (0, util_1.promisify)(fs93.readFile ?? (() => {
14069
14069
  }));
14070
- var realpath5 = (0, util_1.promisify)(fs94.realpath ?? (() => {
14070
+ var realpath5 = (0, util_1.promisify)(fs93.realpath ?? (() => {
14071
14071
  }));
14072
- var lstat6 = (0, util_1.promisify)(fs94.lstat ?? (() => {
14072
+ var lstat6 = (0, util_1.promisify)(fs93.lstat ?? (() => {
14073
14073
  }));
14074
14074
  var FileSubjectTokenSupplier = class {
14075
14075
  filePath;
@@ -14186,7 +14186,7 @@ var require_certificatesubjecttokensupplier = __commonJS({
14186
14186
  Object.defineProperty(exports2, "__esModule", { value: true });
14187
14187
  exports2.CertificateSubjectTokenSupplier = exports2.InvalidConfigurationError = exports2.CertificateSourceUnavailableError = exports2.CERTIFICATE_CONFIGURATION_ENV_VARIABLE = void 0;
14188
14188
  var util_1 = require_util2();
14189
- var fs94 = __require("fs");
14189
+ var fs93 = __require("fs");
14190
14190
  var crypto_1 = __require("crypto");
14191
14191
  var https = __require("https");
14192
14192
  exports2.CERTIFICATE_CONFIGURATION_ENV_VARIABLE = "GOOGLE_API_CERTIFICATE_CONFIG";
@@ -14280,7 +14280,7 @@ var require_certificatesubjecttokensupplier = __commonJS({
14280
14280
  const configPath = this.certificateConfigPath;
14281
14281
  let fileContents;
14282
14282
  try {
14283
- fileContents = await fs94.promises.readFile(configPath, "utf8");
14283
+ fileContents = await fs93.promises.readFile(configPath, "utf8");
14284
14284
  } catch (err2) {
14285
14285
  throw new CertificateSourceUnavailableError(`Failed to read certificate config file at: ${configPath}`);
14286
14286
  }
@@ -14305,14 +14305,14 @@ var require_certificatesubjecttokensupplier = __commonJS({
14305
14305
  async #getKeyAndCert(certPath, keyPath) {
14306
14306
  let cert, key;
14307
14307
  try {
14308
- cert = await fs94.promises.readFile(certPath);
14308
+ cert = await fs93.promises.readFile(certPath);
14309
14309
  new crypto_1.X509Certificate(cert);
14310
14310
  } catch (err2) {
14311
14311
  const message = err2 instanceof Error ? err2.message : String(err2);
14312
14312
  throw new CertificateSourceUnavailableError(`Failed to read certificate file at ${certPath}: ${message}`);
14313
14313
  }
14314
14314
  try {
14315
- key = await fs94.promises.readFile(keyPath);
14315
+ key = await fs93.promises.readFile(keyPath);
14316
14316
  (0, crypto_1.createPrivateKey)(key);
14317
14317
  } catch (err2) {
14318
14318
  const message = err2 instanceof Error ? err2.message : String(err2);
@@ -14331,7 +14331,7 @@ var require_certificatesubjecttokensupplier = __commonJS({
14331
14331
  return JSON.stringify([leafCert.raw.toString("base64")]);
14332
14332
  }
14333
14333
  try {
14334
- const chainPems = await fs94.promises.readFile(this.trustChainPath, "utf8");
14334
+ const chainPems = await fs93.promises.readFile(this.trustChainPath, "utf8");
14335
14335
  const pemBlocks = chainPems.match(/-----BEGIN CERTIFICATE-----[^-]+-----END CERTIFICATE-----/g) ?? [];
14336
14336
  const chainCerts = pemBlocks.map((pem, index) => {
14337
14337
  try {
@@ -15029,7 +15029,7 @@ var require_pluggable_auth_handler = __commonJS({
15029
15029
  exports2.PluggableAuthHandler = exports2.ExecutableError = void 0;
15030
15030
  var executable_response_1 = require_executable_response();
15031
15031
  var childProcess2 = __require("child_process");
15032
- var fs94 = __require("fs");
15032
+ var fs93 = __require("fs");
15033
15033
  var ExecutableError = class extends Error {
15034
15034
  /**
15035
15035
  * The exit code returned by the executable.
@@ -15114,14 +15114,14 @@ var require_pluggable_auth_handler = __commonJS({
15114
15114
  }
15115
15115
  let filePath;
15116
15116
  try {
15117
- filePath = await fs94.promises.realpath(this.outputFile);
15117
+ filePath = await fs93.promises.realpath(this.outputFile);
15118
15118
  } catch {
15119
15119
  return void 0;
15120
15120
  }
15121
- if (!(await fs94.promises.lstat(filePath)).isFile()) {
15121
+ if (!(await fs93.promises.lstat(filePath)).isFile()) {
15122
15122
  return void 0;
15123
15123
  }
15124
- const responseString = await fs94.promises.readFile(filePath, {
15124
+ const responseString = await fs93.promises.readFile(filePath, {
15125
15125
  encoding: "utf8"
15126
15126
  });
15127
15127
  if (responseString === "") {
@@ -15531,7 +15531,7 @@ var require_googleauth = __commonJS({
15531
15531
  Object.defineProperty(exports2, "__esModule", { value: true });
15532
15532
  exports2.GoogleAuth = exports2.GoogleAuthExceptionMessages = void 0;
15533
15533
  var child_process_1 = __require("child_process");
15534
- var fs94 = __require("fs");
15534
+ var fs93 = __require("fs");
15535
15535
  var gaxios_1 = require_src2();
15536
15536
  var gcpMetadata = require_src4();
15537
15537
  var os33 = __require("os");
@@ -15826,7 +15826,7 @@ var require_googleauth = __commonJS({
15826
15826
  }
15827
15827
  if (location) {
15828
15828
  location = path113.join(location, "gcloud", "application_default_credentials.json");
15829
- if (!fs94.existsSync(location)) {
15829
+ if (!fs93.existsSync(location)) {
15830
15830
  location = null;
15831
15831
  }
15832
15832
  }
@@ -15847,8 +15847,8 @@ var require_googleauth = __commonJS({
15847
15847
  throw new Error("The file path is invalid.");
15848
15848
  }
15849
15849
  try {
15850
- filePath = fs94.realpathSync(filePath);
15851
- if (!fs94.lstatSync(filePath).isFile()) {
15850
+ filePath = fs93.realpathSync(filePath);
15851
+ if (!fs93.lstatSync(filePath).isFile()) {
15852
15852
  throw new Error();
15853
15853
  }
15854
15854
  } catch (err2) {
@@ -15857,7 +15857,7 @@ var require_googleauth = __commonJS({
15857
15857
  }
15858
15858
  throw err2;
15859
15859
  }
15860
- const readStream = fs94.createReadStream(filePath);
15860
+ const readStream = fs93.createReadStream(filePath);
15861
15861
  return this.fromStream(readStream, options);
15862
15862
  }
15863
15863
  /**
@@ -16170,7 +16170,7 @@ var require_googleauth = __commonJS({
16170
16170
  return this._cacheClientFromJSON(this.jsonContent, this.clientOptions);
16171
16171
  } else if (this.keyFilename) {
16172
16172
  const filePath = path113.resolve(this.keyFilename);
16173
- const stream2 = fs94.createReadStream(filePath);
16173
+ const stream2 = fs93.createReadStream(filePath);
16174
16174
  return await this.fromStreamAsync(stream2, this.clientOptions);
16175
16175
  } else if (this.apiKey) {
16176
16176
  const client = await this.fromAPIKey(this.apiKey, this.clientOptions);
@@ -23434,12 +23434,12 @@ var require_src10 = __commonJS({
23434
23434
  var _GoogleToken_requestToken;
23435
23435
  Object.defineProperty(exports2, "__esModule", { value: true });
23436
23436
  exports2.GoogleToken = void 0;
23437
- var fs94 = __require("fs");
23437
+ var fs93 = __require("fs");
23438
23438
  var gaxios_1 = require_src7();
23439
23439
  var jws = require_jws();
23440
23440
  var path113 = __require("path");
23441
23441
  var util_1 = __require("util");
23442
- var readFile15 = fs94.readFile ? (0, util_1.promisify)(fs94.readFile) : async () => {
23442
+ var readFile15 = fs93.readFile ? (0, util_1.promisify)(fs93.readFile) : async () => {
23443
23443
  throw new ErrorWithCode("use key rather than keyFile.", "MISSING_CREDENTIALS");
23444
23444
  };
23445
23445
  var GOOGLE_TOKEN_URL = "https://www.googleapis.com/oauth2/v4/token";
@@ -24949,12 +24949,12 @@ var require_filesubjecttokensupplier2 = __commonJS({
24949
24949
  Object.defineProperty(exports2, "__esModule", { value: true });
24950
24950
  exports2.FileSubjectTokenSupplier = void 0;
24951
24951
  var util_1 = __require("util");
24952
- var fs94 = __require("fs");
24953
- var readFile15 = (0, util_1.promisify)((_a4 = fs94.readFile) !== null && _a4 !== void 0 ? _a4 : () => {
24952
+ var fs93 = __require("fs");
24953
+ var readFile15 = (0, util_1.promisify)((_a4 = fs93.readFile) !== null && _a4 !== void 0 ? _a4 : () => {
24954
24954
  });
24955
- var realpath5 = (0, util_1.promisify)((_b = fs94.realpath) !== null && _b !== void 0 ? _b : () => {
24955
+ var realpath5 = (0, util_1.promisify)((_b = fs93.realpath) !== null && _b !== void 0 ? _b : () => {
24956
24956
  });
24957
- var lstat6 = (0, util_1.promisify)((_c = fs94.lstat) !== null && _c !== void 0 ? _c : () => {
24957
+ var lstat6 = (0, util_1.promisify)((_c = fs93.lstat) !== null && _c !== void 0 ? _c : () => {
24958
24958
  });
24959
24959
  var FileSubjectTokenSupplier = class {
24960
24960
  /**
@@ -25672,7 +25672,7 @@ var require_pluggable_auth_handler2 = __commonJS({
25672
25672
  var pluggable_auth_client_1 = require_pluggable_auth_client2();
25673
25673
  var executable_response_1 = require_executable_response2();
25674
25674
  var childProcess2 = __require("child_process");
25675
- var fs94 = __require("fs");
25675
+ var fs93 = __require("fs");
25676
25676
  var PluggableAuthHandler = class _PluggableAuthHandler {
25677
25677
  /**
25678
25678
  * Instantiates a PluggableAuthHandler instance using the provided
@@ -25742,14 +25742,14 @@ var require_pluggable_auth_handler2 = __commonJS({
25742
25742
  }
25743
25743
  let filePath;
25744
25744
  try {
25745
- filePath = await fs94.promises.realpath(this.outputFile);
25745
+ filePath = await fs93.promises.realpath(this.outputFile);
25746
25746
  } catch (_a4) {
25747
25747
  return void 0;
25748
25748
  }
25749
- if (!(await fs94.promises.lstat(filePath)).isFile()) {
25749
+ if (!(await fs93.promises.lstat(filePath)).isFile()) {
25750
25750
  return void 0;
25751
25751
  }
25752
- const responseString = await fs94.promises.readFile(filePath, {
25752
+ const responseString = await fs93.promises.readFile(filePath, {
25753
25753
  encoding: "utf8"
25754
25754
  });
25755
25755
  if (responseString === "") {
@@ -26155,7 +26155,7 @@ var require_googleauth2 = __commonJS({
26155
26155
  Object.defineProperty(exports2, "__esModule", { value: true });
26156
26156
  exports2.GoogleAuth = exports2.CLOUD_SDK_CLIENT_ID = void 0;
26157
26157
  var child_process_1 = __require("child_process");
26158
- var fs94 = __require("fs");
26158
+ var fs93 = __require("fs");
26159
26159
  var gcpMetadata = require_src9();
26160
26160
  var os33 = __require("os");
26161
26161
  var path113 = __require("path");
@@ -26429,7 +26429,7 @@ var require_googleauth2 = __commonJS({
26429
26429
  }
26430
26430
  if (location) {
26431
26431
  location = path113.join(location, "gcloud", "application_default_credentials.json");
26432
- if (!fs94.existsSync(location)) {
26432
+ if (!fs93.existsSync(location)) {
26433
26433
  location = null;
26434
26434
  }
26435
26435
  }
@@ -26450,8 +26450,8 @@ var require_googleauth2 = __commonJS({
26450
26450
  throw new Error("The file path is invalid.");
26451
26451
  }
26452
26452
  try {
26453
- filePath = fs94.realpathSync(filePath);
26454
- if (!fs94.lstatSync(filePath).isFile()) {
26453
+ filePath = fs93.realpathSync(filePath);
26454
+ if (!fs93.lstatSync(filePath).isFile()) {
26455
26455
  throw new Error();
26456
26456
  }
26457
26457
  } catch (err2) {
@@ -26460,7 +26460,7 @@ var require_googleauth2 = __commonJS({
26460
26460
  }
26461
26461
  throw err2;
26462
26462
  }
26463
- const readStream = fs94.createReadStream(filePath);
26463
+ const readStream = fs93.createReadStream(filePath);
26464
26464
  return this.fromStream(readStream, options);
26465
26465
  }
26466
26466
  /**
@@ -26726,7 +26726,7 @@ var require_googleauth2 = __commonJS({
26726
26726
  this._cacheClientFromJSON(this.jsonContent, this.clientOptions);
26727
26727
  } else if (this.keyFilename) {
26728
26728
  const filePath = path113.resolve(this.keyFilename);
26729
- const stream2 = fs94.createReadStream(filePath);
26729
+ const stream2 = fs93.createReadStream(filePath);
26730
26730
  await this.fromStreamAsync(stream2, this.clientOptions);
26731
26731
  } else {
26732
26732
  await this.getApplicationDefaultAsync(this.clientOptions);
@@ -40562,12 +40562,12 @@ var require_dist3 = __commonJS({
40562
40562
  throw new Error(`Unknown format "${name3}"`);
40563
40563
  return f;
40564
40564
  };
40565
- function addFormats2(ajv, list, fs94, exportName) {
40565
+ function addFormats2(ajv, list, fs93, exportName) {
40566
40566
  var _a4;
40567
40567
  var _b;
40568
40568
  (_a4 = (_b = ajv.opts.code).formats) !== null && _a4 !== void 0 ? _a4 : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
40569
40569
  for (const f of list)
40570
- ajv.addFormat(f, fs94[f]);
40570
+ ajv.addFormat(f, fs93[f]);
40571
40571
  }
40572
40572
  module2.exports = exports2 = formatsPlugin;
40573
40573
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -45305,14 +45305,14 @@ var require_tls_helpers = __commonJS({
45305
45305
  Object.defineProperty(exports2, "__esModule", { value: true });
45306
45306
  exports2.CIPHER_SUITES = void 0;
45307
45307
  exports2.getDefaultRootsData = getDefaultRootsData;
45308
- var fs94 = __require("fs");
45308
+ var fs93 = __require("fs");
45309
45309
  exports2.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES;
45310
45310
  var DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH;
45311
45311
  var defaultRootsData = null;
45312
45312
  function getDefaultRootsData() {
45313
45313
  if (DEFAULT_ROOTS_FILE_PATH) {
45314
45314
  if (defaultRootsData === null) {
45315
- defaultRootsData = fs94.readFileSync(DEFAULT_ROOTS_FILE_PATH);
45315
+ defaultRootsData = fs93.readFileSync(DEFAULT_ROOTS_FILE_PATH);
45316
45316
  }
45317
45317
  return defaultRootsData;
45318
45318
  }
@@ -50847,7 +50847,7 @@ var require_fetch = __commonJS({
50847
50847
  module2.exports = fetch2;
50848
50848
  var asPromise = require_aspromise();
50849
50849
  var inquire = require_inquire();
50850
- var fs94 = inquire("fs");
50850
+ var fs93 = inquire("fs");
50851
50851
  function fetch2(filename, options, callback) {
50852
50852
  if (typeof options === "function") {
50853
50853
  callback = options;
@@ -50856,8 +50856,8 @@ var require_fetch = __commonJS({
50856
50856
  options = {};
50857
50857
  if (!callback)
50858
50858
  return asPromise(fetch2, this, filename, options);
50859
- if (!options.xhr && fs94 && fs94.readFile)
50860
- return fs94.readFile(filename, function fetchReadFileCallback(err2, contents) {
50859
+ if (!options.xhr && fs93 && fs93.readFile)
50860
+ return fs93.readFile(filename, function fetchReadFileCallback(err2, contents) {
50861
50861
  return err2 && typeof XMLHttpRequest !== "undefined" ? fetch2.xhr(filename, options, callback) : err2 ? callback(err2) : callback(null, options.binary ? contents : contents.toString("utf8"));
50862
50862
  });
50863
50863
  return fetch2.xhr(filename, options, callback);
@@ -57210,7 +57210,7 @@ var require_util8 = __commonJS({
57210
57210
  "use strict";
57211
57211
  Object.defineProperty(exports2, "__esModule", { value: true });
57212
57212
  exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
57213
- var fs94 = __require("fs");
57213
+ var fs93 = __require("fs");
57214
57214
  var path113 = __require("path");
57215
57215
  var Protobuf = require_protobufjs();
57216
57216
  function addIncludePathResolver(root, includePaths) {
@@ -57222,7 +57222,7 @@ var require_util8 = __commonJS({
57222
57222
  for (const directory of includePaths) {
57223
57223
  const fullPath = path113.join(directory, target);
57224
57224
  try {
57225
- fs94.accessSync(fullPath, fs94.constants.R_OK);
57225
+ fs93.accessSync(fullPath, fs93.constants.R_OK);
57226
57226
  return fullPath;
57227
57227
  } catch (err2) {
57228
57228
  continue;
@@ -67044,7 +67044,7 @@ var require_certificate_provider = __commonJS({
67044
67044
  "use strict";
67045
67045
  Object.defineProperty(exports2, "__esModule", { value: true });
67046
67046
  exports2.FileWatcherCertificateProvider = void 0;
67047
- var fs94 = __require("fs");
67047
+ var fs93 = __require("fs");
67048
67048
  var logging = require_logging();
67049
67049
  var constants_1 = require_constants2();
67050
67050
  var util_1 = __require("util");
@@ -67052,7 +67052,7 @@ var require_certificate_provider = __commonJS({
67052
67052
  function trace2(text) {
67053
67053
  logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME2, text);
67054
67054
  }
67055
- var readFilePromise = (0, util_1.promisify)(fs94.readFile);
67055
+ var readFilePromise = (0, util_1.promisify)(fs93.readFile);
67056
67056
  var FileWatcherCertificateProvider = class {
67057
67057
  constructor(config2) {
67058
67058
  this.config = config2;
@@ -69567,7 +69567,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
69567
69567
  var core_1 = require_src13();
69568
69568
  var grpc_exporter_transport_1 = require_grpc_exporter_transport();
69569
69569
  var node_http_1 = (init_index_node_http(), __toCommonJS(index_node_http_exports));
69570
- var fs94 = __require("fs");
69570
+ var fs93 = __require("fs");
69571
69571
  var path113 = __require("path");
69572
69572
  var api_1 = (init_esm(), __toCommonJS(esm_exports));
69573
69573
  function fallbackIfNullishOrBlank(signalSpecific, nonSignalSpecific) {
@@ -69617,7 +69617,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
69617
69617
  const filePath = fallbackIfNullishOrBlank(signalSpecificPath, nonSignalSpecificPath);
69618
69618
  if (filePath != null) {
69619
69619
  try {
69620
- return fs94.readFileSync(path113.resolve(process.cwd(), filePath));
69620
+ return fs93.readFileSync(path113.resolve(process.cwd(), filePath));
69621
69621
  } catch {
69622
69622
  api_1.diag.warn(warningMessage);
69623
69623
  return void 0;
@@ -80262,9 +80262,9 @@ var require_instrumentation = __commonJS({
80262
80262
  var require_module_details_from_path = __commonJS({
80263
80263
  "node_modules/module-details-from-path/index.js"(exports2, module2) {
80264
80264
  "use strict";
80265
- var sep8 = __require("path").sep;
80265
+ var sep9 = __require("path").sep;
80266
80266
  module2.exports = function(file2) {
80267
- var segments = file2.split(sep8);
80267
+ var segments = file2.split(sep9);
80268
80268
  var index = segments.lastIndexOf("node_modules");
80269
80269
  if (index === -1) return;
80270
80270
  if (!segments[index + 1]) return;
@@ -80277,7 +80277,7 @@ var require_module_details_from_path = __commonJS({
80277
80277
  if (i3 === lastBaseDirSegmentIndex) {
80278
80278
  basedir += segments[i3];
80279
80279
  } else {
80280
- basedir += segments[i3] + sep8;
80280
+ basedir += segments[i3] + sep9;
80281
80281
  }
80282
80282
  }
80283
80283
  var path113 = "";
@@ -80286,7 +80286,7 @@ var require_module_details_from_path = __commonJS({
80286
80286
  if (i22 === lastSegmentIndex) {
80287
80287
  path113 += segments[i22];
80288
80288
  } else {
80289
- path113 += segments[i22] + sep8;
80289
+ path113 += segments[i22] + sep9;
80290
80290
  }
80291
80291
  }
80292
80292
  return {
@@ -82648,7 +82648,7 @@ var require_utils12 = __commonJS({
82648
82648
  var exporter_metrics_otlp_http_1 = require_src23();
82649
82649
  var exporter_metrics_otlp_proto_1 = require_src38();
82650
82650
  var sdk_logs_1 = require_src27();
82651
- var fs94 = __require("fs");
82651
+ var fs93 = __require("fs");
82652
82652
  var RESOURCE_DETECTOR_ENVIRONMENT = "env";
82653
82653
  var RESOURCE_DETECTOR_HOST = "host";
82654
82654
  var RESOURCE_DETECTOR_OS = "os";
@@ -83071,21 +83071,21 @@ var require_utils12 = __commonJS({
83071
83071
  const httpsAgentOptions = {};
83072
83072
  if (tls.ca_file) {
83073
83073
  try {
83074
- httpsAgentOptions.ca = fs94.readFileSync(tls.ca_file);
83074
+ httpsAgentOptions.ca = fs93.readFileSync(tls.ca_file);
83075
83075
  } catch (e2) {
83076
83076
  api_1.diag.warn(`Failed to read TLS CA file at ${tls.ca_file}: ${e2}`);
83077
83077
  }
83078
83078
  }
83079
83079
  if (tls.cert_file) {
83080
83080
  try {
83081
- httpsAgentOptions.cert = fs94.readFileSync(tls.cert_file);
83081
+ httpsAgentOptions.cert = fs93.readFileSync(tls.cert_file);
83082
83082
  } catch (e2) {
83083
83083
  api_1.diag.warn(`Failed to read TLS cert file at ${tls.cert_file}: ${e2}`);
83084
83084
  }
83085
83085
  }
83086
83086
  if (tls.key_file) {
83087
83087
  try {
83088
- httpsAgentOptions.key = fs94.readFileSync(tls.key_file);
83088
+ httpsAgentOptions.key = fs93.readFileSync(tls.key_file);
83089
83089
  } catch (e2) {
83090
83090
  api_1.diag.warn(`Failed to read TLS key file at ${tls.key_file}: ${e2}`);
83091
83091
  }
@@ -88250,10 +88250,10 @@ var require_resolve_block_map = __commonJS({
88250
88250
  let offset = bm.offset;
88251
88251
  let commentEnd = null;
88252
88252
  for (const collItem of bm.items) {
88253
- const { start: start2, key, sep: sep8, value } = collItem;
88253
+ const { start: start2, key, sep: sep9, value } = collItem;
88254
88254
  const keyProps = resolveProps.resolveProps(start2, {
88255
88255
  indicator: "explicit-key-ind",
88256
- next: key ?? sep8?.[0],
88256
+ next: key ?? sep9?.[0],
88257
88257
  offset,
88258
88258
  onError: onError2,
88259
88259
  parentIndent: bm.indent,
@@ -88267,7 +88267,7 @@ var require_resolve_block_map = __commonJS({
88267
88267
  else if ("indent" in key && key.indent !== bm.indent)
88268
88268
  onError2(offset, "BAD_INDENT", startColMsg);
88269
88269
  }
88270
- if (!keyProps.anchor && !keyProps.tag && !sep8) {
88270
+ if (!keyProps.anchor && !keyProps.tag && !sep9) {
88271
88271
  commentEnd = keyProps.end;
88272
88272
  if (keyProps.comment) {
88273
88273
  if (map4.comment)
@@ -88291,7 +88291,7 @@ var require_resolve_block_map = __commonJS({
88291
88291
  ctx.atKey = false;
88292
88292
  if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
88293
88293
  onError2(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
88294
- const valueProps = resolveProps.resolveProps(sep8 ?? [], {
88294
+ const valueProps = resolveProps.resolveProps(sep9 ?? [], {
88295
88295
  indicator: "map-value-ind",
88296
88296
  next: value,
88297
88297
  offset: keyNode.range[2],
@@ -88307,7 +88307,7 @@ var require_resolve_block_map = __commonJS({
88307
88307
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
88308
88308
  onError2(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
88309
88309
  }
88310
- const valueNode = value ? composeNode2(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep8, null, valueProps, onError2);
88310
+ const valueNode = value ? composeNode2(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep9, null, valueProps, onError2);
88311
88311
  if (ctx.schema.compat)
88312
88312
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError2);
88313
88313
  offset = valueNode.range[2];
@@ -88398,7 +88398,7 @@ var require_resolve_end = __commonJS({
88398
88398
  let comment = "";
88399
88399
  if (end) {
88400
88400
  let hasSpace = false;
88401
- let sep8 = "";
88401
+ let sep9 = "";
88402
88402
  for (const token2 of end) {
88403
88403
  const { source, type: type2 } = token2;
88404
88404
  switch (type2) {
@@ -88412,13 +88412,13 @@ var require_resolve_end = __commonJS({
88412
88412
  if (!comment)
88413
88413
  comment = cb;
88414
88414
  else
88415
- comment += sep8 + cb;
88416
- sep8 = "";
88415
+ comment += sep9 + cb;
88416
+ sep9 = "";
88417
88417
  break;
88418
88418
  }
88419
88419
  case "newline":
88420
88420
  if (comment)
88421
- sep8 += source;
88421
+ sep9 += source;
88422
88422
  hasSpace = true;
88423
88423
  break;
88424
88424
  default:
@@ -88461,18 +88461,18 @@ var require_resolve_flow_collection = __commonJS({
88461
88461
  let offset = fc.offset + fc.start.source.length;
88462
88462
  for (let i3 = 0; i3 < fc.items.length; ++i3) {
88463
88463
  const collItem = fc.items[i3];
88464
- const { start: start2, key, sep: sep8, value } = collItem;
88464
+ const { start: start2, key, sep: sep9, value } = collItem;
88465
88465
  const props = resolveProps.resolveProps(start2, {
88466
88466
  flow: fcName,
88467
88467
  indicator: "explicit-key-ind",
88468
- next: key ?? sep8?.[0],
88468
+ next: key ?? sep9?.[0],
88469
88469
  offset,
88470
88470
  onError: onError2,
88471
88471
  parentIndent: fc.indent,
88472
88472
  startOnNewline: false
88473
88473
  });
88474
88474
  if (!props.found) {
88475
- if (!props.anchor && !props.tag && !sep8 && !value) {
88475
+ if (!props.anchor && !props.tag && !sep9 && !value) {
88476
88476
  if (i3 === 0 && props.comma)
88477
88477
  onError2(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
88478
88478
  else if (i3 < fc.items.length - 1)
@@ -88526,8 +88526,8 @@ var require_resolve_flow_collection = __commonJS({
88526
88526
  }
88527
88527
  }
88528
88528
  }
88529
- if (!isMap && !sep8 && !props.found) {
88530
- const valueNode = value ? composeNode2(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep8, null, props, onError2);
88529
+ if (!isMap && !sep9 && !props.found) {
88530
+ const valueNode = value ? composeNode2(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep9, null, props, onError2);
88531
88531
  coll.items.push(valueNode);
88532
88532
  offset = valueNode.range[2];
88533
88533
  if (isBlock(value))
@@ -88539,7 +88539,7 @@ var require_resolve_flow_collection = __commonJS({
88539
88539
  if (isBlock(key))
88540
88540
  onError2(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
88541
88541
  ctx.atKey = false;
88542
- const valueProps = resolveProps.resolveProps(sep8 ?? [], {
88542
+ const valueProps = resolveProps.resolveProps(sep9 ?? [], {
88543
88543
  flow: fcName,
88544
88544
  indicator: "map-value-ind",
88545
88545
  next: value,
@@ -88550,8 +88550,8 @@ var require_resolve_flow_collection = __commonJS({
88550
88550
  });
88551
88551
  if (valueProps.found) {
88552
88552
  if (!isMap && !props.found && ctx.options.strict) {
88553
- if (sep8)
88554
- for (const st of sep8) {
88553
+ if (sep9)
88554
+ for (const st of sep9) {
88555
88555
  if (st === valueProps.found)
88556
88556
  break;
88557
88557
  if (st.type === "newline") {
@@ -88568,7 +88568,7 @@ var require_resolve_flow_collection = __commonJS({
88568
88568
  else
88569
88569
  onError2(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
88570
88570
  }
88571
- const valueNode = value ? composeNode2(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep8, null, valueProps, onError2) : null;
88571
+ const valueNode = value ? composeNode2(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep9, null, valueProps, onError2) : null;
88572
88572
  if (valueNode) {
88573
88573
  if (isBlock(value))
88574
88574
  onError2(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -88748,7 +88748,7 @@ var require_resolve_block_scalar = __commonJS({
88748
88748
  chompStart = i3 + 1;
88749
88749
  }
88750
88750
  let value = "";
88751
- let sep8 = "";
88751
+ let sep9 = "";
88752
88752
  let prevMoreIndented = false;
88753
88753
  for (let i3 = 0; i3 < contentStart; ++i3)
88754
88754
  value += lines[i3][0].slice(trimIndent) + "\n";
@@ -88765,24 +88765,24 @@ var require_resolve_block_scalar = __commonJS({
88765
88765
  indent = "";
88766
88766
  }
88767
88767
  if (type2 === Scalar.Scalar.BLOCK_LITERAL) {
88768
- value += sep8 + indent.slice(trimIndent) + content;
88769
- sep8 = "\n";
88768
+ value += sep9 + indent.slice(trimIndent) + content;
88769
+ sep9 = "\n";
88770
88770
  } else if (indent.length > trimIndent || content[0] === " ") {
88771
- if (sep8 === " ")
88772
- sep8 = "\n";
88773
- else if (!prevMoreIndented && sep8 === "\n")
88774
- sep8 = "\n\n";
88775
- value += sep8 + indent.slice(trimIndent) + content;
88776
- sep8 = "\n";
88771
+ if (sep9 === " ")
88772
+ sep9 = "\n";
88773
+ else if (!prevMoreIndented && sep9 === "\n")
88774
+ sep9 = "\n\n";
88775
+ value += sep9 + indent.slice(trimIndent) + content;
88776
+ sep9 = "\n";
88777
88777
  prevMoreIndented = true;
88778
88778
  } else if (content === "") {
88779
- if (sep8 === "\n")
88779
+ if (sep9 === "\n")
88780
88780
  value += "\n";
88781
88781
  else
88782
- sep8 = "\n";
88782
+ sep9 = "\n";
88783
88783
  } else {
88784
- value += sep8 + content;
88785
- sep8 = " ";
88784
+ value += sep9 + content;
88785
+ sep9 = " ";
88786
88786
  prevMoreIndented = false;
88787
88787
  }
88788
88788
  }
@@ -88964,25 +88964,25 @@ var require_resolve_flow_scalar = __commonJS({
88964
88964
  if (!match2)
88965
88965
  return source;
88966
88966
  let res = match2[1];
88967
- let sep8 = " ";
88967
+ let sep9 = " ";
88968
88968
  let pos = first2.lastIndex;
88969
88969
  line.lastIndex = pos;
88970
88970
  while (match2 = line.exec(source)) {
88971
88971
  if (match2[1] === "") {
88972
- if (sep8 === "\n")
88973
- res += sep8;
88972
+ if (sep9 === "\n")
88973
+ res += sep9;
88974
88974
  else
88975
- sep8 = "\n";
88975
+ sep9 = "\n";
88976
88976
  } else {
88977
- res += sep8 + match2[1];
88978
- sep8 = " ";
88977
+ res += sep9 + match2[1];
88978
+ sep9 = " ";
88979
88979
  }
88980
88980
  pos = line.lastIndex;
88981
88981
  }
88982
88982
  const last2 = /[ \t]*(.*)/sy;
88983
88983
  last2.lastIndex = pos;
88984
88984
  match2 = last2.exec(source);
88985
- return res + sep8 + (match2?.[1] ?? "");
88985
+ return res + sep9 + (match2?.[1] ?? "");
88986
88986
  }
88987
88987
  function doubleQuotedValue(source, onError2) {
88988
88988
  let res = "";
@@ -89789,14 +89789,14 @@ var require_cst_stringify = __commonJS({
89789
89789
  }
89790
89790
  }
89791
89791
  }
89792
- function stringifyItem({ start: start2, key, sep: sep8, value }) {
89792
+ function stringifyItem({ start: start2, key, sep: sep9, value }) {
89793
89793
  let res = "";
89794
89794
  for (const st of start2)
89795
89795
  res += st.source;
89796
89796
  if (key)
89797
89797
  res += stringifyToken(key);
89798
- if (sep8)
89799
- for (const st of sep8)
89798
+ if (sep9)
89799
+ for (const st of sep9)
89800
89800
  res += st.source;
89801
89801
  if (value)
89802
89802
  res += stringifyToken(value);
@@ -90946,18 +90946,18 @@ var require_parser2 = __commonJS({
90946
90946
  if (this.type === "map-value-ind") {
90947
90947
  const prev = getPrevProps(this.peek(2));
90948
90948
  const start2 = getFirstKeyStartProps(prev);
90949
- let sep8;
90949
+ let sep9;
90950
90950
  if (scalar.end) {
90951
- sep8 = scalar.end;
90952
- sep8.push(this.sourceToken);
90951
+ sep9 = scalar.end;
90952
+ sep9.push(this.sourceToken);
90953
90953
  delete scalar.end;
90954
90954
  } else
90955
- sep8 = [this.sourceToken];
90955
+ sep9 = [this.sourceToken];
90956
90956
  const map4 = {
90957
90957
  type: "block-map",
90958
90958
  offset: scalar.offset,
90959
90959
  indent: scalar.indent,
90960
- items: [{ start: start2, key: scalar, sep: sep8 }]
90960
+ items: [{ start: start2, key: scalar, sep: sep9 }]
90961
90961
  };
90962
90962
  this.onKeyLine = true;
90963
90963
  this.stack[this.stack.length - 1] = map4;
@@ -91110,15 +91110,15 @@ var require_parser2 = __commonJS({
91110
91110
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
91111
91111
  const start3 = getFirstKeyStartProps(it.start);
91112
91112
  const key = it.key;
91113
- const sep8 = it.sep;
91114
- sep8.push(this.sourceToken);
91113
+ const sep9 = it.sep;
91114
+ sep9.push(this.sourceToken);
91115
91115
  delete it.key;
91116
91116
  delete it.sep;
91117
91117
  this.stack.push({
91118
91118
  type: "block-map",
91119
91119
  offset: this.offset,
91120
91120
  indent: this.indent,
91121
- items: [{ start: start3, key, sep: sep8 }]
91121
+ items: [{ start: start3, key, sep: sep9 }]
91122
91122
  });
91123
91123
  } else if (start2.length > 0) {
91124
91124
  it.sep = it.sep.concat(start2, this.sourceToken);
@@ -91147,14 +91147,14 @@ var require_parser2 = __commonJS({
91147
91147
  case "scalar":
91148
91148
  case "single-quoted-scalar":
91149
91149
  case "double-quoted-scalar": {
91150
- const fs94 = this.flowScalar(this.type);
91150
+ const fs93 = this.flowScalar(this.type);
91151
91151
  if (atNextItem || it.value) {
91152
- map4.items.push({ start: start2, key: fs94, sep: [] });
91152
+ map4.items.push({ start: start2, key: fs93, sep: [] });
91153
91153
  this.onKeyLine = true;
91154
91154
  } else if (it.sep) {
91155
- this.stack.push(fs94);
91155
+ this.stack.push(fs93);
91156
91156
  } else {
91157
- Object.assign(it, { key: fs94, sep: [] });
91157
+ Object.assign(it, { key: fs93, sep: [] });
91158
91158
  this.onKeyLine = true;
91159
91159
  }
91160
91160
  return;
@@ -91282,13 +91282,13 @@ var require_parser2 = __commonJS({
91282
91282
  case "scalar":
91283
91283
  case "single-quoted-scalar":
91284
91284
  case "double-quoted-scalar": {
91285
- const fs94 = this.flowScalar(this.type);
91285
+ const fs93 = this.flowScalar(this.type);
91286
91286
  if (!it || it.value)
91287
- fc.items.push({ start: [], key: fs94, sep: [] });
91287
+ fc.items.push({ start: [], key: fs93, sep: [] });
91288
91288
  else if (it.sep)
91289
- this.stack.push(fs94);
91289
+ this.stack.push(fs93);
91290
91290
  else
91291
- Object.assign(it, { key: fs94, sep: [] });
91291
+ Object.assign(it, { key: fs93, sep: [] });
91292
91292
  return;
91293
91293
  }
91294
91294
  case "flow-map-end":
@@ -91312,13 +91312,13 @@ var require_parser2 = __commonJS({
91312
91312
  const prev = getPrevProps(parent);
91313
91313
  const start2 = getFirstKeyStartProps(prev);
91314
91314
  fixFlowSeqItems(fc);
91315
- const sep8 = fc.end.splice(1, fc.end.length);
91316
- sep8.push(this.sourceToken);
91315
+ const sep9 = fc.end.splice(1, fc.end.length);
91316
+ sep9.push(this.sourceToken);
91317
91317
  const map4 = {
91318
91318
  type: "block-map",
91319
91319
  offset: fc.offset,
91320
91320
  indent: fc.indent,
91321
- items: [{ start: start2, key: fc, sep: sep8 }]
91321
+ items: [{ start: start2, key: fc, sep: sep9 }]
91322
91322
  };
91323
91323
  this.onKeyLine = true;
91324
91324
  this.stack[this.stack.length - 1] = map4;
@@ -99991,7 +99991,7 @@ var require_FileConfigFactory = __commonJS({
99991
99991
  Object.defineProperty(exports2, "__esModule", { value: true });
99992
99992
  exports2.parseConfigFile = exports2.FileConfigFactory = void 0;
99993
99993
  var core_1 = require_src13();
99994
- var fs94 = __require("fs");
99994
+ var fs93 = __require("fs");
99995
99995
  var yaml = require_dist4();
99996
99996
  var utils_1 = require_utils13();
99997
99997
  var validateConfig = require_validator();
@@ -100008,7 +100008,7 @@ var require_FileConfigFactory = __commonJS({
100008
100008
  function parseConfigFile() {
100009
100009
  const supportedFileVersionPattern = /^1\.0$/;
100010
100010
  const configFile = (0, core_1.getStringFromEnv)("OTEL_CONFIG_FILE") || "";
100011
- const file2 = fs94.readFileSync(configFile, "utf8");
100011
+ const file2 = fs93.readFileSync(configFile, "utf8");
100012
100012
  const rawParsed = yaml.parse(file2);
100013
100013
  const processed = substituteEnvVars(rawParsed);
100014
100014
  const fileFormat = processed?.file_format;
@@ -100025,8 +100025,8 @@ var require_FileConfigFactory = __commonJS({
100025
100025
  const err2 = validateConfig.errors[0];
100026
100026
  detail = `${err2.instancePath} ${err2.message}`;
100027
100027
  } else {
100028
- const sep8 = "\n ";
100029
- detail = sep8 + validateConfig.errors.map((e2) => `${e2.instancePath} ${e2.message}`).join(sep8);
100028
+ const sep9 = "\n ";
100029
+ detail = sep9 + validateConfig.errors.map((e2) => `${e2.instancePath} ${e2.message}`).join(sep9);
100030
100030
  }
100031
100031
  throw new Error(`Invalid OpenTelemetry config file: ${configFile}: ${detail}`);
100032
100032
  }
@@ -102079,7 +102079,7 @@ var require_util11 = __commonJS({
102079
102079
  "packages/core/node_modules/systeminformation/lib/util.js"(exports2) {
102080
102080
  "use strict";
102081
102081
  var os33 = __require("os");
102082
- var fs94 = __require("fs");
102082
+ var fs93 = __require("fs");
102083
102083
  var path113 = __require("path");
102084
102084
  var spawn13 = __require("child_process").spawn;
102085
102085
  var exec3 = __require("child_process").exec;
@@ -102376,7 +102376,7 @@ var require_util11 = __commonJS({
102376
102376
  _powerShell = "powershell.exe";
102377
102377
  if (_windows) {
102378
102378
  const defaultPath = `${WINDIR}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;
102379
- if (fs94.existsSync(defaultPath)) {
102379
+ if (fs93.existsSync(defaultPath)) {
102380
102380
  _powerShell = defaultPath;
102381
102381
  }
102382
102382
  }
@@ -102384,7 +102384,7 @@ var require_util11 = __commonJS({
102384
102384
  function getWmic() {
102385
102385
  if (os33.type() === "Windows_NT" && !wmicPath) {
102386
102386
  wmicPath = WINDIR + "\\system32\\wbem\\wmic.exe";
102387
- if (!fs94.existsSync(wmicPath)) {
102387
+ if (!fs93.existsSync(wmicPath)) {
102388
102388
  try {
102389
102389
  const wmicPathArray = execSync4("WHERE WMIC", execOptsWin).toString().split("\r\n");
102390
102390
  if (wmicPathArray && wmicPathArray.length) {
@@ -102669,7 +102669,7 @@ var require_util11 = __commonJS({
102669
102669
  cpuinfo = _rpi_cpuinfo;
102670
102670
  } else if (cpuinfo === void 0) {
102671
102671
  try {
102672
- cpuinfo = fs94.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
102672
+ cpuinfo = fs93.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
102673
102673
  _rpi_cpuinfo = cpuinfo;
102674
102674
  } catch (e2) {
102675
102675
  return false;
@@ -102682,7 +102682,7 @@ var require_util11 = __commonJS({
102682
102682
  function isRaspbian() {
102683
102683
  let osrelease = [];
102684
102684
  try {
102685
- osrelease = fs94.readFileSync("/etc/os-release", { encoding: "utf8" }).toString().split("\n");
102685
+ osrelease = fs93.readFileSync("/etc/os-release", { encoding: "utf8" }).toString().split("\n");
102686
102686
  } catch (e2) {
102687
102687
  return false;
102688
102688
  }
@@ -102700,9 +102700,9 @@ var require_util11 = __commonJS({
102700
102700
  });
102701
102701
  }
102702
102702
  function darwinXcodeExists() {
102703
- const cmdLineToolsExists = fs94.existsSync("/Library/Developer/CommandLineTools/usr/bin/");
102704
- const xcodeAppExists = fs94.existsSync("/Applications/Xcode.app/Contents/Developer/Tools");
102705
- const xcodeExists = fs94.existsSync("/Library/Developer/Xcode/");
102703
+ const cmdLineToolsExists = fs93.existsSync("/Library/Developer/CommandLineTools/usr/bin/");
102704
+ const xcodeAppExists = fs93.existsSync("/Applications/Xcode.app/Contents/Developer/Tools");
102705
+ const xcodeExists = fs93.existsSync("/Library/Developer/Xcode/");
102706
102706
  return cmdLineToolsExists || xcodeExists || xcodeAppExists;
102707
102707
  }
102708
102708
  function nanoSeconds() {
@@ -102820,8 +102820,8 @@ var require_util11 = __commonJS({
102820
102820
  return ("00000000" + parseInt(hex, 16).toString(2)).substr(-8);
102821
102821
  }
102822
102822
  function getFilesInPath(source) {
102823
- const lstatSync3 = fs94.lstatSync;
102824
- const readdirSync3 = fs94.readdirSync;
102823
+ const lstatSync3 = fs93.lstatSync;
102824
+ const readdirSync3 = fs93.readdirSync;
102825
102825
  const join45 = path113.join;
102826
102826
  function isDirectory(source2) {
102827
102827
  return lstatSync3(source2).isDirectory();
@@ -102852,7 +102852,7 @@ var require_util11 = __commonJS({
102852
102852
  return [];
102853
102853
  }
102854
102854
  }
102855
- if (fs94.existsSync(source)) {
102855
+ if (fs93.existsSync(source)) {
102856
102856
  return getFilesRecursively(source);
102857
102857
  } else {
102858
102858
  return [];
@@ -103068,7 +103068,7 @@ var require_util11 = __commonJS({
103068
103068
  cpuinfo = _rpi_cpuinfo;
103069
103069
  } else {
103070
103070
  try {
103071
- cpuinfo = fs94.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
103071
+ cpuinfo = fs93.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
103072
103072
  _rpi_cpuinfo = cpuinfo;
103073
103073
  } catch (e2) {
103074
103074
  return false;
@@ -104622,7 +104622,7 @@ var require_util11 = __commonJS({
104622
104622
  var require_system = __commonJS({
104623
104623
  "packages/core/node_modules/systeminformation/lib/system.js"(exports2) {
104624
104624
  "use strict";
104625
- var fs94 = __require("fs");
104625
+ var fs93 = __require("fs");
104626
104626
  var os33 = __require("os");
104627
104627
  var util4 = require_util11();
104628
104628
  var exec3 = __require("child_process").exec;
@@ -104760,7 +104760,7 @@ var require_system = __commonJS({
104760
104760
  util4.noop();
104761
104761
  }
104762
104762
  }
104763
- if (fs94.existsSync("/.dockerenv") || fs94.existsSync("/.dockerinit")) {
104763
+ if (fs93.existsSync("/.dockerenv") || fs93.existsSync("/.dockerinit")) {
104764
104764
  result2.model = "Docker Container";
104765
104765
  }
104766
104766
  try {
@@ -104788,7 +104788,7 @@ var require_system = __commonJS({
104788
104788
  util4.noop();
104789
104789
  }
104790
104790
  if (result2.manufacturer === "" && result2.model === "Computer" && result2.version === "") {
104791
- fs94.readFile("/proc/cpuinfo", function(error41, stdout2) {
104791
+ fs93.readFile("/proc/cpuinfo", function(error41, stdout2) {
104792
104792
  if (!error41) {
104793
104793
  let lines2 = stdout2.toString().split("\n");
104794
104794
  result2.model = util4.getValue(lines2, "hardware", ":", true).toUpperCase();
@@ -105390,7 +105390,7 @@ var require_osinfo = __commonJS({
105390
105390
  "packages/core/node_modules/systeminformation/lib/osinfo.js"(exports2) {
105391
105391
  "use strict";
105392
105392
  var os33 = __require("os");
105393
- var fs94 = __require("fs");
105393
+ var fs93 = __require("fs");
105394
105394
  var util4 = require_util11();
105395
105395
  var exec3 = __require("child_process").exec;
105396
105396
  var execSync4 = __require("child_process").execSync;
@@ -105715,7 +105715,7 @@ var require_osinfo = __commonJS({
105715
105715
  function isUefiLinux() {
105716
105716
  return new Promise((resolve29) => {
105717
105717
  process.nextTick(() => {
105718
- fs94.stat("/sys/firmware/efi", function(err2) {
105718
+ fs93.stat("/sys/firmware/efi", function(err2) {
105719
105719
  if (!err2) {
105720
105720
  return resolve29(true);
105721
105721
  } else {
@@ -105955,7 +105955,7 @@ var require_osinfo = __commonJS({
105955
105955
  }
105956
105956
  if ({}.hasOwnProperty.call(appsObj.versions, "git")) {
105957
105957
  if (_darwin) {
105958
- const gitHomebrewExists = fs94.existsSync("/usr/local/Cellar/git") || fs94.existsSync("/opt/homebrew/bin/git");
105958
+ const gitHomebrewExists = fs93.existsSync("/usr/local/Cellar/git") || fs93.existsSync("/opt/homebrew/bin/git");
105959
105959
  if (util4.darwinXcodeExists() || gitHomebrewExists) {
105960
105960
  exec3("git --version", function(error40, stdout) {
105961
105961
  if (!error40) {
@@ -106150,8 +106150,8 @@ var require_osinfo = __commonJS({
106150
106150
  const stdout = execSync4("sw_vers");
106151
106151
  const lines = stdout.toString().split("\n");
106152
106152
  const osVersion = util4.getValue(lines, "ProductVersion", ":");
106153
- const gitHomebrewExists1 = fs94.existsSync("/usr/local/Cellar/python");
106154
- const gitHomebrewExists2 = fs94.existsSync("/opt/homebrew/bin/python");
106153
+ const gitHomebrewExists1 = fs93.existsSync("/usr/local/Cellar/python");
106154
+ const gitHomebrewExists2 = fs93.existsSync("/opt/homebrew/bin/python");
106155
106155
  if (util4.darwinXcodeExists() && util4.semverCompare("12.0.1", osVersion) < 0 || gitHomebrewExists1 || gitHomebrewExists2) {
106156
106156
  const cmd2 = gitHomebrewExists1 ? "/usr/local/Cellar/python -V 2>&1" : gitHomebrewExists2 ? "/opt/homebrew/bin/python -V 2>&1" : "python -V 2>&1";
106157
106157
  exec3(cmd2, function(error40, stdout2) {
@@ -106179,7 +106179,7 @@ var require_osinfo = __commonJS({
106179
106179
  }
106180
106180
  if ({}.hasOwnProperty.call(appsObj.versions, "python3")) {
106181
106181
  if (_darwin) {
106182
- const gitHomebrewExists = fs94.existsSync("/usr/local/Cellar/python3") || fs94.existsSync("/opt/homebrew/bin/python3");
106182
+ const gitHomebrewExists = fs93.existsSync("/usr/local/Cellar/python3") || fs93.existsSync("/opt/homebrew/bin/python3");
106183
106183
  if (util4.darwinXcodeExists() || gitHomebrewExists) {
106184
106184
  exec3("python3 -V 2>&1", function(error40, stdout) {
106185
106185
  if (!error40) {
@@ -106203,7 +106203,7 @@ var require_osinfo = __commonJS({
106203
106203
  }
106204
106204
  if ({}.hasOwnProperty.call(appsObj.versions, "pip")) {
106205
106205
  if (_darwin) {
106206
- const gitHomebrewExists = fs94.existsSync("/usr/local/Cellar/pip") || fs94.existsSync("/opt/homebrew/bin/pip");
106206
+ const gitHomebrewExists = fs93.existsSync("/usr/local/Cellar/pip") || fs93.existsSync("/opt/homebrew/bin/pip");
106207
106207
  if (util4.darwinXcodeExists() || gitHomebrewExists) {
106208
106208
  exec3("pip -V 2>&1", function(error40, stdout) {
106209
106209
  if (!error40) {
@@ -106229,7 +106229,7 @@ var require_osinfo = __commonJS({
106229
106229
  }
106230
106230
  if ({}.hasOwnProperty.call(appsObj.versions, "pip3")) {
106231
106231
  if (_darwin) {
106232
- const gitHomebrewExists = fs94.existsSync("/usr/local/Cellar/pip3") || fs94.existsSync("/opt/homebrew/bin/pip3");
106232
+ const gitHomebrewExists = fs93.existsSync("/usr/local/Cellar/pip3") || fs93.existsSync("/opt/homebrew/bin/pip3");
106233
106233
  if (util4.darwinXcodeExists() || gitHomebrewExists) {
106234
106234
  exec3("pip3 -V 2>&1", function(error40, stdout) {
106235
106235
  if (!error40) {
@@ -106530,7 +106530,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`;
106530
106530
  result2.os = util4.getValue(lines, "os").toLowerCase();
106531
106531
  result2.hardware = util4.getValue(lines, "hardware").toLowerCase();
106532
106532
  if (!result2.hardware) {
106533
- const lines2 = fs94.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
106533
+ const lines2 = fs93.readFileSync("/proc/cpuinfo", { encoding: "utf8" }).toString().split("\n");
106534
106534
  const serial = util4.getValue(lines2, "serial");
106535
106535
  result2.hardware = serial || "";
106536
106536
  }
@@ -106589,7 +106589,7 @@ var require_cpu = __commonJS({
106589
106589
  var os33 = __require("os");
106590
106590
  var exec3 = __require("child_process").exec;
106591
106591
  var execSync4 = __require("child_process").execSync;
106592
- var fs94 = __require("fs");
106592
+ var fs93 = __require("fs");
106593
106593
  var util4 = require_util11();
106594
106594
  var _platform = process.platform;
106595
106595
  var _linux = _platform === "linux" || _platform === "android";
@@ -107356,7 +107356,7 @@ var require_cpu = __commonJS({
107356
107356
  result2.socket = "SOC";
107357
107357
  }
107358
107358
  if (util4.getValue(lines, "architecture") === "riscv64") {
107359
- const linesRiscV = fs94.readFileSync("/proc/cpuinfo").toString().split("\n");
107359
+ const linesRiscV = fs93.readFileSync("/proc/cpuinfo").toString().split("\n");
107360
107360
  const uarch = util4.getValue(linesRiscV, "uarch") || "";
107361
107361
  if (uarch.indexOf(",") > -1) {
107362
107362
  const split = uarch.split(",");
@@ -107738,9 +107738,9 @@ var require_cpu = __commonJS({
107738
107738
  return;
107739
107739
  }
107740
107740
  }
107741
- fs94.stat("/sys/class/thermal/thermal_zone0/temp", function(err2) {
107741
+ fs93.stat("/sys/class/thermal/thermal_zone0/temp", function(err2) {
107742
107742
  if (err2 === null) {
107743
- fs94.readFile("/sys/class/thermal/thermal_zone0/temp", function(error42, stdout3) {
107743
+ fs93.readFile("/sys/class/thermal/thermal_zone0/temp", function(error42, stdout3) {
107744
107744
  if (!error42) {
107745
107745
  let lines2 = stdout3.toString().split("\n");
107746
107746
  if (lines2.length > 0) {
@@ -107948,7 +107948,7 @@ var require_cpu = __commonJS({
107948
107948
  });
107949
107949
  }
107950
107950
  if (!result2) {
107951
- fs94.readFile("/proc/cpuinfo", function(error41, stdout2) {
107951
+ fs93.readFile("/proc/cpuinfo", function(error41, stdout2) {
107952
107952
  if (!error41) {
107953
107953
  let lines = stdout2.toString().split("\n");
107954
107954
  result2 = util4.getValue(lines, "features", ":", true).toLowerCase();
@@ -108452,7 +108452,7 @@ var require_memory = __commonJS({
108452
108452
  var exec3 = __require("child_process").exec;
108453
108453
  var execSync4 = __require("child_process").execSync;
108454
108454
  var util4 = require_util11();
108455
- var fs94 = __require("fs");
108455
+ var fs93 = __require("fs");
108456
108456
  var _platform = process.platform;
108457
108457
  var _linux = _platform === "linux" || _platform === "android";
108458
108458
  var _darwin = _platform === "darwin";
@@ -108519,7 +108519,7 @@ var require_memory = __commonJS({
108519
108519
  };
108520
108520
  if (_linux) {
108521
108521
  try {
108522
- fs94.readFile("/proc/meminfo", function(error40, stdout) {
108522
+ fs93.readFile("/proc/meminfo", function(error40, stdout) {
108523
108523
  if (!error40) {
108524
108524
  const lines = stdout.toString().split("\n");
108525
108525
  result2.total = parseInt(util4.getValue(lines, "memtotal"), 10);
@@ -108942,7 +108942,7 @@ var require_battery = __commonJS({
108942
108942
  "packages/core/node_modules/systeminformation/lib/battery.js"(exports2, module2) {
108943
108943
  "use strict";
108944
108944
  var exec3 = __require("child_process").exec;
108945
- var fs94 = __require("fs");
108945
+ var fs93 = __require("fs");
108946
108946
  var util4 = require_util11();
108947
108947
  var _platform = process.platform;
108948
108948
  var _linux = _platform === "linux" || _platform === "android";
@@ -108995,24 +108995,24 @@ var require_battery = __commonJS({
108995
108995
  };
108996
108996
  if (_linux) {
108997
108997
  let battery_path = "";
108998
- if (fs94.existsSync("/sys/class/power_supply/BAT1/uevent")) {
108998
+ if (fs93.existsSync("/sys/class/power_supply/BAT1/uevent")) {
108999
108999
  battery_path = "/sys/class/power_supply/BAT1/";
109000
- } else if (fs94.existsSync("/sys/class/power_supply/BAT0/uevent")) {
109000
+ } else if (fs93.existsSync("/sys/class/power_supply/BAT0/uevent")) {
109001
109001
  battery_path = "/sys/class/power_supply/BAT0/";
109002
109002
  }
109003
109003
  let acConnected = false;
109004
109004
  let acPath = "";
109005
- if (fs94.existsSync("/sys/class/power_supply/AC/online")) {
109005
+ if (fs93.existsSync("/sys/class/power_supply/AC/online")) {
109006
109006
  acPath = "/sys/class/power_supply/AC/online";
109007
- } else if (fs94.existsSync("/sys/class/power_supply/AC0/online")) {
109007
+ } else if (fs93.existsSync("/sys/class/power_supply/AC0/online")) {
109008
109008
  acPath = "/sys/class/power_supply/AC0/online";
109009
109009
  }
109010
109010
  if (acPath) {
109011
- const file2 = fs94.readFileSync(acPath);
109011
+ const file2 = fs93.readFileSync(acPath);
109012
109012
  acConnected = file2.toString().trim() === "1";
109013
109013
  }
109014
109014
  if (battery_path) {
109015
- fs94.readFile(battery_path + "uevent", function(error40, stdout) {
109015
+ fs93.readFile(battery_path + "uevent", function(error40, stdout) {
109016
109016
  if (!error40) {
109017
109017
  let lines = stdout.toString().split("\n");
109018
109018
  result2.isCharging = util4.getValue(lines, "POWER_SUPPLY_STATUS", "=").toLowerCase() === "charging";
@@ -109237,7 +109237,7 @@ var require_battery = __commonJS({
109237
109237
  var require_graphics = __commonJS({
109238
109238
  "packages/core/node_modules/systeminformation/lib/graphics.js"(exports2) {
109239
109239
  "use strict";
109240
- var fs94 = __require("fs");
109240
+ var fs93 = __require("fs");
109241
109241
  var exec3 = __require("child_process").exec;
109242
109242
  var execSync4 = __require("child_process").execSync;
109243
109243
  var util4 = require_util11();
@@ -109601,12 +109601,12 @@ var require_graphics = __commonJS({
109601
109601
  if (_windows) {
109602
109602
  try {
109603
109603
  const basePath = util4.WINDIR + "\\System32\\DriverStore\\FileRepository";
109604
- const candidateDirs = fs94.readdirSync(basePath).filter((dir) => {
109605
- return fs94.readdirSync([basePath, dir].join("/")).includes("nvidia-smi.exe");
109604
+ const candidateDirs = fs93.readdirSync(basePath).filter((dir) => {
109605
+ return fs93.readdirSync([basePath, dir].join("/")).includes("nvidia-smi.exe");
109606
109606
  });
109607
109607
  const targetDir = candidateDirs.reduce((prevDir, currentDir) => {
109608
- const previousNvidiaSmi = fs94.statSync([basePath, prevDir, "nvidia-smi.exe"].join("/"));
109609
- const currentNvidiaSmi = fs94.statSync([basePath, currentDir, "nvidia-smi.exe"].join("/"));
109608
+ const previousNvidiaSmi = fs93.statSync([basePath, prevDir, "nvidia-smi.exe"].join("/"));
109609
+ const currentNvidiaSmi = fs93.statSync([basePath, currentDir, "nvidia-smi.exe"].join("/"));
109610
109610
  return previousNvidiaSmi.ctimeMs > currentNvidiaSmi.ctimeMs ? prevDir : currentDir;
109611
109611
  });
109612
109612
  if (targetDir) {
@@ -110307,7 +110307,7 @@ var require_filesystem = __commonJS({
110307
110307
  "packages/core/node_modules/systeminformation/lib/filesystem.js"(exports2) {
110308
110308
  "use strict";
110309
110309
  var util4 = require_util11();
110310
- var fs94 = __require("fs");
110310
+ var fs93 = __require("fs");
110311
110311
  var exec3 = __require("child_process").exec;
110312
110312
  var execSync4 = __require("child_process").execSync;
110313
110313
  var execPromiseSave = util4.promisifySave(__require("child_process").exec);
@@ -110328,11 +110328,11 @@ var require_filesystem = __commonJS({
110328
110328
  }
110329
110329
  let macOsDisks = [];
110330
110330
  let osMounts = [];
110331
- function getmacOsFsType(fs95) {
110332
- if (!fs95.startsWith("/")) {
110331
+ function getmacOsFsType(fs94) {
110332
+ if (!fs94.startsWith("/")) {
110333
110333
  return "NFS";
110334
110334
  }
110335
- const parts2 = fs95.split("/");
110335
+ const parts2 = fs94.split("/");
110336
110336
  const fsShort = parts2[parts2.length - 1];
110337
110337
  const macOsDisksSingle = macOsDisks.filter((item) => item.indexOf(fsShort) >= 0);
110338
110338
  if (macOsDisksSingle.length === 1 && macOsDisksSingle[0].indexOf("APFS") >= 0) {
@@ -110340,11 +110340,11 @@ var require_filesystem = __commonJS({
110340
110340
  }
110341
110341
  return "HFS";
110342
110342
  }
110343
- function isLinuxTmpFs(fs95) {
110343
+ function isLinuxTmpFs(fs94) {
110344
110344
  const linuxTmpFileSystems = ["rootfs", "unionfs", "squashfs", "cramfs", "initrd", "initramfs", "devtmpfs", "tmpfs", "udev", "devfs", "specfs", "type", "appimaged"];
110345
110345
  let result2 = false;
110346
110346
  linuxTmpFileSystems.forEach((linuxFs) => {
110347
- if (fs95.toLowerCase().indexOf(linuxFs) >= 0) {
110347
+ if (fs94.toLowerCase().indexOf(linuxFs) >= 0) {
110348
110348
  result2 = true;
110349
110349
  }
110350
110350
  });
@@ -110372,18 +110372,18 @@ var require_filesystem = __commonJS({
110372
110372
  if (line !== "") {
110373
110373
  line = line.replace(/ +/g, " ").split(" ");
110374
110374
  if (line && (line[0].startsWith("/") || line[6] && line[6] === "/" || line[0].indexOf("/") > 0 || line[0].indexOf(":") === 1 || !_darwin && !isLinuxTmpFs(line[1]))) {
110375
- const fs95 = line[0];
110375
+ const fs94 = line[0];
110376
110376
  const fsType = _linux || _freebsd || _openbsd || _netbsd ? line[1] : getmacOsFsType(line[0]);
110377
110377
  const size = parseInt(_linux || _freebsd || _openbsd || _netbsd ? line[2] : line[1]) * 1024;
110378
110378
  const used = parseInt(_linux || _freebsd || _openbsd || _netbsd ? line[3] : line[2]) * 1024;
110379
110379
  const available = parseInt(_linux || _freebsd || _openbsd || _netbsd ? line[4] : line[3]) * 1024;
110380
110380
  const use = parseFloat((100 * (used / (used + available))).toFixed(2));
110381
- let rw = osMounts && Object.keys(osMounts).length > 0 ? osMounts[fs95] || false : null;
110381
+ let rw = osMounts && Object.keys(osMounts).length > 0 ? osMounts[fs94] || false : null;
110382
110382
  line.splice(0, _linux || _freebsd || _openbsd || _netbsd ? 6 : 5);
110383
110383
  const mount = line.join(" ");
110384
- if (!data.find((el) => el.fs === fs95 && el.type === fsType)) {
110384
+ if (!data.find((el) => el.fs === fs94 && el.type === fsType)) {
110385
110385
  data.push({
110386
- fs: fs95,
110386
+ fs: fs94,
110387
110387
  type: fsType,
110388
110388
  size,
110389
110389
  used,
@@ -110545,7 +110545,7 @@ var require_filesystem = __commonJS({
110545
110545
  });
110546
110546
  }
110547
110547
  if (_linux) {
110548
- fs94.readFile("/proc/sys/fs/file-nr", function(error40, stdout) {
110548
+ fs93.readFile("/proc/sys/fs/file-nr", function(error40, stdout) {
110549
110549
  if (!error40) {
110550
110550
  let lines = stdout.toString().split("\n");
110551
110551
  if (lines[0]) {
@@ -110564,7 +110564,7 @@ var require_filesystem = __commonJS({
110564
110564
  }
110565
110565
  resolve29(result2);
110566
110566
  } else {
110567
- fs94.readFile("/proc/sys/fs/file-max", function(error41, stdout2) {
110567
+ fs93.readFile("/proc/sys/fs/file-max", function(error41, stdout2) {
110568
110568
  if (!error41) {
110569
110569
  let lines = stdout2.toString().split("\n");
110570
110570
  if (lines[0]) {
@@ -111782,7 +111782,7 @@ var require_network = __commonJS({
111782
111782
  var os33 = __require("os");
111783
111783
  var exec3 = __require("child_process").exec;
111784
111784
  var execSync4 = __require("child_process").execSync;
111785
- var fs94 = __require("fs");
111785
+ var fs93 = __require("fs");
111786
111786
  var util4 = require_util11();
111787
111787
  var _platform = process.platform;
111788
111788
  var _linux = _platform === "linux" || _platform === "android";
@@ -112961,7 +112961,7 @@ var require_network = __commonJS({
112961
112961
  let cmd, lines, stats;
112962
112962
  if (!_network[ifaceSanitized] || _network[ifaceSanitized] && !_network[ifaceSanitized].ms || _network[ifaceSanitized] && _network[ifaceSanitized].ms && Date.now() - _network[ifaceSanitized].ms >= 500) {
112963
112963
  if (_linux) {
112964
- if (fs94.existsSync("/sys/class/net/" + ifaceSanitized)) {
112964
+ if (fs93.existsSync("/sys/class/net/" + ifaceSanitized)) {
112965
112965
  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; ";
112966
112966
  exec3(cmd, function(error40, stdout) {
112967
112967
  if (!error40) {
@@ -114263,7 +114263,7 @@ var require_processes = __commonJS({
114263
114263
  "packages/core/node_modules/systeminformation/lib/processes.js"(exports2) {
114264
114264
  "use strict";
114265
114265
  var os33 = __require("os");
114266
- var fs94 = __require("fs");
114266
+ var fs93 = __require("fs");
114267
114267
  var path113 = __require("path");
114268
114268
  var exec3 = __require("child_process").exec;
114269
114269
  var execSync4 = __require("child_process").execSync;
@@ -114832,7 +114832,7 @@ var require_processes = __commonJS({
114832
114832
  }
114833
114833
  if (firstPos === 1e4 && tmpCommand.indexOf(" ") > -1) {
114834
114834
  const parts2 = tmpCommand.split(" ");
114835
- if (fs94.existsSync(path113.join(cmdPath, parts2[0]))) {
114835
+ if (fs93.existsSync(path113.join(cmdPath, parts2[0]))) {
114836
114836
  command = parts2.shift();
114837
114837
  params = (parts2.join(" ") + " " + tmpParams).trim();
114838
114838
  } else {
@@ -118951,7 +118951,7 @@ var require_bluetooth = __commonJS({
118951
118951
  var path113 = __require("path");
118952
118952
  var util4 = require_util11();
118953
118953
  var bluetoothVendors = require_bluetoothVendors();
118954
- var fs94 = __require("fs");
118954
+ var fs93 = __require("fs");
118955
118955
  var _platform = process.platform;
118956
118956
  var _linux = _platform === "linux" || _platform === "android";
118957
118957
  var _darwin = _platform === "darwin";
@@ -119076,7 +119076,7 @@ var require_bluetooth = __commonJS({
119076
119076
  const macAddr1 = pathParts.length >= 6 ? pathParts[pathParts.length - 2] : null;
119077
119077
  const macAddr2 = pathParts.length >= 7 ? pathParts[pathParts.length - 3] : null;
119078
119078
  if (filename === "info") {
119079
- const infoFile = fs94.readFileSync(element, { encoding: "utf8" }).split("\n");
119079
+ const infoFile = fs93.readFileSync(element, { encoding: "utf8" }).split("\n");
119080
119080
  result2.push(parseLinuxBluetoothInfo(infoFile, macAddr1, macAddr2));
119081
119081
  }
119082
119082
  });
@@ -119585,7 +119585,7 @@ var require_util12 = __commonJS({
119585
119585
  "use strict";
119586
119586
  Object.defineProperty(exports2, "__esModule", { value: true });
119587
119587
  exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
119588
- var fs94 = __require("fs");
119588
+ var fs93 = __require("fs");
119589
119589
  var path113 = __require("path");
119590
119590
  var Protobuf = require_protobufjs();
119591
119591
  function addIncludePathResolver(root, includePaths) {
@@ -119597,7 +119597,7 @@ var require_util12 = __commonJS({
119597
119597
  for (const directory of includePaths) {
119598
119598
  const fullPath = path113.join(directory, target);
119599
119599
  try {
119600
- fs94.accessSync(fullPath, fs94.constants.R_OK);
119600
+ fs93.accessSync(fullPath, fs93.constants.R_OK);
119601
119601
  return fullPath;
119602
119602
  } catch (err2) {
119603
119603
  continue;
@@ -122635,12 +122635,12 @@ var require_filesubjecttokensupplier3 = __commonJS({
122635
122635
  Object.defineProperty(exports2, "__esModule", { value: true });
122636
122636
  exports2.FileSubjectTokenSupplier = void 0;
122637
122637
  var util_1 = __require("util");
122638
- var fs94 = __require("fs");
122639
- var readFile15 = (0, util_1.promisify)((_a4 = fs94.readFile) !== null && _a4 !== void 0 ? _a4 : () => {
122638
+ var fs93 = __require("fs");
122639
+ var readFile15 = (0, util_1.promisify)((_a4 = fs93.readFile) !== null && _a4 !== void 0 ? _a4 : () => {
122640
122640
  });
122641
- var realpath5 = (0, util_1.promisify)((_b = fs94.realpath) !== null && _b !== void 0 ? _b : () => {
122641
+ var realpath5 = (0, util_1.promisify)((_b = fs93.realpath) !== null && _b !== void 0 ? _b : () => {
122642
122642
  });
122643
- var lstat6 = (0, util_1.promisify)((_c = fs94.lstat) !== null && _c !== void 0 ? _c : () => {
122643
+ var lstat6 = (0, util_1.promisify)((_c = fs93.lstat) !== null && _c !== void 0 ? _c : () => {
122644
122644
  });
122645
122645
  var FileSubjectTokenSupplier = class {
122646
122646
  /**
@@ -123358,7 +123358,7 @@ var require_pluggable_auth_handler3 = __commonJS({
123358
123358
  var pluggable_auth_client_1 = require_pluggable_auth_client3();
123359
123359
  var executable_response_1 = require_executable_response3();
123360
123360
  var childProcess2 = __require("child_process");
123361
- var fs94 = __require("fs");
123361
+ var fs93 = __require("fs");
123362
123362
  var PluggableAuthHandler = class _PluggableAuthHandler {
123363
123363
  /**
123364
123364
  * Instantiates a PluggableAuthHandler instance using the provided
@@ -123428,14 +123428,14 @@ var require_pluggable_auth_handler3 = __commonJS({
123428
123428
  }
123429
123429
  let filePath;
123430
123430
  try {
123431
- filePath = await fs94.promises.realpath(this.outputFile);
123431
+ filePath = await fs93.promises.realpath(this.outputFile);
123432
123432
  } catch (_a4) {
123433
123433
  return void 0;
123434
123434
  }
123435
- if (!(await fs94.promises.lstat(filePath)).isFile()) {
123435
+ if (!(await fs93.promises.lstat(filePath)).isFile()) {
123436
123436
  return void 0;
123437
123437
  }
123438
- const responseString = await fs94.promises.readFile(filePath, {
123438
+ const responseString = await fs93.promises.readFile(filePath, {
123439
123439
  encoding: "utf8"
123440
123440
  });
123441
123441
  if (responseString === "") {
@@ -123856,7 +123856,7 @@ var require_googleauth3 = __commonJS({
123856
123856
  Object.defineProperty(exports2, "__esModule", { value: true });
123857
123857
  exports2.GoogleAuth = exports2.GoogleAuthExceptionMessages = exports2.CLOUD_SDK_CLIENT_ID = void 0;
123858
123858
  var child_process_1 = __require("child_process");
123859
- var fs94 = __require("fs");
123859
+ var fs93 = __require("fs");
123860
123860
  var gcpMetadata = require_src9();
123861
123861
  var os33 = __require("os");
123862
123862
  var path113 = __require("path");
@@ -124125,7 +124125,7 @@ var require_googleauth3 = __commonJS({
124125
124125
  }
124126
124126
  if (location) {
124127
124127
  location = path113.join(location, "gcloud", "application_default_credentials.json");
124128
- if (!fs94.existsSync(location)) {
124128
+ if (!fs93.existsSync(location)) {
124129
124129
  location = null;
124130
124130
  }
124131
124131
  }
@@ -124146,8 +124146,8 @@ var require_googleauth3 = __commonJS({
124146
124146
  throw new Error("The file path is invalid.");
124147
124147
  }
124148
124148
  try {
124149
- filePath = fs94.realpathSync(filePath);
124150
- if (!fs94.lstatSync(filePath).isFile()) {
124149
+ filePath = fs93.realpathSync(filePath);
124150
+ if (!fs93.lstatSync(filePath).isFile()) {
124151
124151
  throw new Error();
124152
124152
  }
124153
124153
  } catch (err2) {
@@ -124156,7 +124156,7 @@ var require_googleauth3 = __commonJS({
124156
124156
  }
124157
124157
  throw err2;
124158
124158
  }
124159
- const readStream = fs94.createReadStream(filePath);
124159
+ const readStream = fs93.createReadStream(filePath);
124160
124160
  return this.fromStream(readStream, options);
124161
124161
  }
124162
124162
  /**
@@ -124543,7 +124543,7 @@ var require_googleauth3 = __commonJS({
124543
124543
  return this._cacheClientFromJSON(this.jsonContent, this.clientOptions);
124544
124544
  } else if (this.keyFilename) {
124545
124545
  const filePath = path113.resolve(this.keyFilename);
124546
- const stream2 = fs94.createReadStream(filePath);
124546
+ const stream2 = fs93.createReadStream(filePath);
124547
124547
  return await this.fromStreamAsync(stream2, this.clientOptions);
124548
124548
  } else if (this.apiKey) {
124549
124549
  const client = await this.fromAPIKey(this.apiKey, this.clientOptions);
@@ -131989,13 +131989,13 @@ var require_discovery = __commonJS({
131989
131989
  "use strict";
131990
131990
  Object.defineProperty(exports2, "__esModule", { value: true });
131991
131991
  exports2.Discovery = void 0;
131992
- var fs94 = __require("fs");
131992
+ var fs93 = __require("fs");
131993
131993
  var google_auth_library_1 = require_src43();
131994
131994
  var resolve29 = __require("url");
131995
131995
  var util4 = __require("util");
131996
131996
  var apirequest_1 = require_apirequest();
131997
131997
  var endpoint_1 = require_endpoint();
131998
- var readFile15 = util4.promisify(fs94.readFile);
131998
+ var readFile15 = util4.promisify(fs93.readFile);
131999
131999
  var Discovery = class {
132000
132000
  /**
132001
132001
  * Discovery for discovering API endpoints
@@ -140909,7 +140909,7 @@ var require_util15 = __commonJS({
140909
140909
  "use strict";
140910
140910
  Object.defineProperty(exports2, "__esModule", { value: true });
140911
140911
  exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
140912
- var fs94 = __require("fs");
140912
+ var fs93 = __require("fs");
140913
140913
  var path113 = __require("path");
140914
140914
  var Protobuf = require_protobufjs();
140915
140915
  function addIncludePathResolver(root, includePaths) {
@@ -140921,7 +140921,7 @@ var require_util15 = __commonJS({
140921
140921
  for (const directory of includePaths) {
140922
140922
  const fullPath = path113.join(directory, target);
140923
140923
  try {
140924
- fs94.accessSync(fullPath, fs94.constants.R_OK);
140924
+ fs93.accessSync(fullPath, fs93.constants.R_OK);
140925
140925
  return fullPath;
140926
140926
  } catch (err2) {
140927
140927
  continue;
@@ -142210,7 +142210,7 @@ var require_grpc = __commonJS({
142210
142210
  exports2.GoogleProtoFilesRoot = exports2.GrpcClient = exports2.ClientStub = void 0;
142211
142211
  var grpcProtoLoader = require_src54();
142212
142212
  var child_process_1 = __require("child_process");
142213
- var fs94 = __require("fs");
142213
+ var fs93 = __require("fs");
142214
142214
  var google_auth_library_1 = require_src43();
142215
142215
  var grpc3 = require_src16();
142216
142216
  var os33 = __require("os");
@@ -142226,7 +142226,7 @@ var require_grpc = __commonJS({
142226
142226
  var COMMON_PROTO_FILES = commonProtoFiles.map((file2) => file2.replace(/[/\\]/g, path113.sep));
142227
142227
  async function readFileAsync(path114) {
142228
142228
  return new Promise((resolve29, reject) => {
142229
- fs94.readFile(path114, "utf8", (err2, content) => {
142229
+ fs93.readFile(path114, "utf8", (err2, content) => {
142230
142230
  if (err2)
142231
142231
  return reject(err2);
142232
142232
  else
@@ -142379,7 +142379,7 @@ var require_grpc = __commonJS({
142379
142379
  return this.loadFromProto(filename, options, ignoreCache);
142380
142380
  }
142381
142381
  static _resolveFile(protoPath, filename) {
142382
- if (fs94.existsSync(path113.join(protoPath, filename))) {
142382
+ if (fs93.existsSync(path113.join(protoPath, filename))) {
142383
142383
  return path113.join(protoPath, filename);
142384
142384
  } else if (COMMON_PROTO_FILES.indexOf(filename) > -1) {
142385
142385
  return path113.join(googleProtoFilesDir, filename);
@@ -142580,7 +142580,7 @@ var require_grpc = __commonJS({
142580
142580
  originPath = path113.normalize(originPath);
142581
142581
  includePath = path113.normalize(includePath);
142582
142582
  if (path113.isAbsolute(includePath)) {
142583
- if (!fs94.existsSync(includePath)) {
142583
+ if (!fs93.existsSync(includePath)) {
142584
142584
  throw new Error("The include `" + includePath + "` was not found.");
142585
142585
  }
142586
142586
  return includePath;
@@ -142594,10 +142594,10 @@ var require_grpc = __commonJS({
142594
142594
  originPath = path113.normalize(originPath);
142595
142595
  includePath = path113.normalize(includePath);
142596
142596
  let current = originPath;
142597
- let found = fs94.existsSync(path113.join(current, includePath));
142597
+ let found = fs93.existsSync(path113.join(current, includePath));
142598
142598
  while (!found && current.length > 0) {
142599
142599
  current = current.substring(0, current.lastIndexOf(path113.sep));
142600
- found = fs94.existsSync(path113.join(current, includePath));
142600
+ found = fs93.existsSync(path113.join(current, includePath));
142601
142601
  }
142602
142602
  if (!found) {
142603
142603
  throw new Error("The include `" + includePath + "` was not found.");
@@ -157420,9 +157420,9 @@ var require_pump = __commonJS({
157420
157420
  "node_modules/pump/index.js"(exports2, module2) {
157421
157421
  var once11 = require_once();
157422
157422
  var eos = require_end_of_stream2();
157423
- var fs94;
157423
+ var fs93;
157424
157424
  try {
157425
- fs94 = __require("fs");
157425
+ fs93 = __require("fs");
157426
157426
  } catch (e2) {
157427
157427
  }
157428
157428
  var noop4 = function() {
@@ -157433,8 +157433,8 @@ var require_pump = __commonJS({
157433
157433
  };
157434
157434
  var isFS = function(stream2) {
157435
157435
  if (!ancient) return false;
157436
- if (!fs94) return false;
157437
- return (stream2 instanceof (fs94.ReadStream || noop4) || stream2 instanceof (fs94.WriteStream || noop4)) && isFn(stream2.close);
157436
+ if (!fs93) return false;
157437
+ return (stream2 instanceof (fs93.ReadStream || noop4) || stream2 instanceof (fs93.WriteStream || noop4)) && isFn(stream2.close);
157438
157438
  };
157439
157439
  var isRequest = function(stream2) {
157440
157440
  return stream2.setHeader && isFn(stream2.abort);
@@ -157960,11 +157960,11 @@ var require_metadata4 = __commonJS({
157960
157960
  exports2.getGlobalDescriptor = getGlobalDescriptor;
157961
157961
  exports2.getDefaultResource = getDefaultResource;
157962
157962
  exports2.detectServiceContext = detectServiceContext;
157963
- var fs94 = __require("fs");
157963
+ var fs93 = __require("fs");
157964
157964
  var gcpMetadata = require_src9();
157965
157965
  var google_auth_library_1 = require_src43();
157966
157966
  var util_1 = __require("util");
157967
- var readFile15 = (0, util_1.promisify)(fs94.readFile);
157967
+ var readFile15 = (0, util_1.promisify)(fs93.readFile);
157968
157968
  function zoneFromQualifiedZone(qualified) {
157969
157969
  return qualified.split("/").pop();
157970
157970
  }
@@ -200547,7 +200547,7 @@ var require_windows = __commonJS({
200547
200547
  "node_modules/isexe/windows.js"(exports2, module2) {
200548
200548
  module2.exports = isexe;
200549
200549
  isexe.sync = sync2;
200550
- var fs94 = __require("fs");
200550
+ var fs93 = __require("fs");
200551
200551
  function checkPathExt(path113, options) {
200552
200552
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
200553
200553
  if (!pathext) {
@@ -200572,12 +200572,12 @@ var require_windows = __commonJS({
200572
200572
  return checkPathExt(path113, options);
200573
200573
  }
200574
200574
  function isexe(path113, options, cb) {
200575
- fs94.stat(path113, function(er, stat14) {
200575
+ fs93.stat(path113, function(er, stat14) {
200576
200576
  cb(er, er ? false : checkStat(stat14, path113, options));
200577
200577
  });
200578
200578
  }
200579
200579
  function sync2(path113, options) {
200580
- return checkStat(fs94.statSync(path113), path113, options);
200580
+ return checkStat(fs93.statSync(path113), path113, options);
200581
200581
  }
200582
200582
  }
200583
200583
  });
@@ -200587,14 +200587,14 @@ var require_mode = __commonJS({
200587
200587
  "node_modules/isexe/mode.js"(exports2, module2) {
200588
200588
  module2.exports = isexe;
200589
200589
  isexe.sync = sync2;
200590
- var fs94 = __require("fs");
200590
+ var fs93 = __require("fs");
200591
200591
  function isexe(path113, options, cb) {
200592
- fs94.stat(path113, function(er, stat14) {
200592
+ fs93.stat(path113, function(er, stat14) {
200593
200593
  cb(er, er ? false : checkStat(stat14, options));
200594
200594
  });
200595
200595
  }
200596
200596
  function sync2(path113, options) {
200597
- return checkStat(fs94.statSync(path113), options);
200597
+ return checkStat(fs93.statSync(path113), options);
200598
200598
  }
200599
200599
  function checkStat(stat14, options) {
200600
200600
  return stat14.isFile() && checkMode(stat14, options);
@@ -200618,7 +200618,7 @@ var require_mode = __commonJS({
200618
200618
  // node_modules/isexe/index.js
200619
200619
  var require_isexe = __commonJS({
200620
200620
  "node_modules/isexe/index.js"(exports2, module2) {
200621
- var fs94 = __require("fs");
200621
+ var fs93 = __require("fs");
200622
200622
  var core2;
200623
200623
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
200624
200624
  core2 = require_windows();
@@ -200882,16 +200882,16 @@ var require_shebang_command = __commonJS({
200882
200882
  var require_readShebang = __commonJS({
200883
200883
  "node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
200884
200884
  "use strict";
200885
- var fs94 = __require("fs");
200885
+ var fs93 = __require("fs");
200886
200886
  var shebangCommand = require_shebang_command();
200887
200887
  function readShebang(command) {
200888
200888
  const size = 150;
200889
200889
  const buffer = Buffer.alloc(size);
200890
200890
  let fd;
200891
200891
  try {
200892
- fd = fs94.openSync(command, "r");
200893
- fs94.readSync(fd, buffer, 0, size, 0);
200894
- fs94.closeSync(fd);
200892
+ fd = fs93.openSync(command, "r");
200893
+ fs93.readSync(fd, buffer, 0, size, 0);
200894
+ fs93.closeSync(fd);
200895
200895
  } catch (e2) {
200896
200896
  }
200897
200897
  return shebangCommand(buffer.toString());
@@ -234499,11 +234499,11 @@ var require_command_exists = __commonJS({
234499
234499
  "use strict";
234500
234500
  var exec3 = __require("child_process").exec;
234501
234501
  var execSync4 = __require("child_process").execSync;
234502
- var fs94 = __require("fs");
234502
+ var fs93 = __require("fs");
234503
234503
  var path113 = __require("path");
234504
- var access7 = fs94.access;
234505
- var accessSync = fs94.accessSync;
234506
- var constants6 = fs94.constants || fs94;
234504
+ var access7 = fs93.access;
234505
+ var accessSync = fs93.accessSync;
234506
+ var constants6 = fs93.constants || fs93;
234507
234507
  var isUsingWindows = process.platform == "win32";
234508
234508
  var fileNotExists = function(commandName, callback) {
234509
234509
  access7(
@@ -234649,7 +234649,7 @@ var require_command_exists2 = __commonJS({
234649
234649
  });
234650
234650
 
234651
234651
  // packages/core/src/config/config.ts
234652
- import * as fs77 from "node:fs";
234652
+ import * as fs76 from "node:fs";
234653
234653
  import * as path87 from "node:path";
234654
234654
 
234655
234655
  // packages/core/src/policy/sandboxPolicyManager.ts
@@ -273967,8 +273967,8 @@ function isValidToolName(name3, options = {}) {
273967
273967
  }
273968
273968
 
273969
273969
  // packages/core/src/generated/git-commit.ts
273970
- var GIT_COMMIT_INFO = "3fbf93e26";
273971
- var CLI_VERSION = "0.50.0-preview.1";
273970
+ var GIT_COMMIT_INFO = "ae0a3aa7b";
273971
+ var CLI_VERSION = "0.51.0-nightly.20260625.g3fbf93e26";
273972
273972
 
273973
273973
  // packages/core/src/ide/detect-ide.ts
273974
273974
  var IDE_DEFINITIONS = {
@@ -297452,7 +297452,7 @@ function getVersion() {
297452
297452
  }
297453
297453
  versionPromise = (async () => {
297454
297454
  const pkgJson = await getPackageJson(__dirname4);
297455
- return "0.50.0-preview.1";
297455
+ return "0.51.0-nightly.20260625.g3fbf93e26";
297456
297456
  })();
297457
297457
  return versionPromise;
297458
297458
  }
@@ -303092,6 +303092,8 @@ function getAuthTypeFromEnv() {
303092
303092
  }
303093
303093
  var VERTEX_AI_REQUEST_TYPE_HEADER = "X-Vertex-AI-LLM-Request-Type";
303094
303094
  var VERTEX_AI_SHARED_REQUEST_TYPE_HEADER = "X-Vertex-AI-LLM-Shared-Request-Type";
303095
+ var VERTEX_AI_US_REP_ENDPOINT = "https://aiplatform.us.rep.googleapis.com";
303096
+ var VERTEX_AI_EU_REP_ENDPOINT = "https://aiplatform.eu.rep.googleapis.com";
303095
303097
  function validateBaseUrl(baseUrl) {
303096
303098
  try {
303097
303099
  new URL(baseUrl);
@@ -303234,6 +303236,13 @@ async function createContentGenerator(config2, gcConfig, sessionId) {
303234
303236
  if (envBaseUrl) {
303235
303237
  validateBaseUrl(envBaseUrl);
303236
303238
  baseUrl = envBaseUrl;
303239
+ } else if (config2.authType === "vertex-ai" /* USE_VERTEX_AI */) {
303240
+ const location = process.env["GOOGLE_CLOUD_LOCATION"];
303241
+ if (location === "us") {
303242
+ baseUrl = VERTEX_AI_US_REP_ENDPOINT;
303243
+ } else if (location === "eu") {
303244
+ baseUrl = VERTEX_AI_EU_REP_ENDPOINT;
303245
+ }
303237
303246
  }
303238
303247
  } else {
303239
303248
  validateBaseUrl(baseUrl);
@@ -310317,8 +310326,8 @@ var PathScurryBase = class {
310317
310326
  *
310318
310327
  * @internal
310319
310328
  */
310320
- constructor(cwd = process.cwd(), pathImpl, sep8, { nocase, childrenCacheSize = 16 * 1024, fs: fs94 = defaultFS } = {}) {
310321
- this.#fs = fsFromOption(fs94);
310329
+ constructor(cwd = process.cwd(), pathImpl, sep9, { nocase, childrenCacheSize = 16 * 1024, fs: fs93 = defaultFS } = {}) {
310330
+ this.#fs = fsFromOption(fs93);
310322
310331
  if (cwd instanceof URL || cwd.startsWith("file://")) {
310323
310332
  cwd = fileURLToPath9(cwd);
310324
310333
  }
@@ -310328,7 +310337,7 @@ var PathScurryBase = class {
310328
310337
  this.#resolveCache = new ResolveCache();
310329
310338
  this.#resolvePosixCache = new ResolveCache();
310330
310339
  this.#children = new ChildrenCache(childrenCacheSize);
310331
- const split = cwdPath.substring(this.rootPath.length).split(sep8);
310340
+ const split = cwdPath.substring(this.rootPath.length).split(sep9);
310332
310341
  if (split.length === 1 && !split[0]) {
310333
310342
  split.pop();
310334
310343
  }
@@ -310876,8 +310885,8 @@ var PathScurryWin32 = class extends PathScurryBase {
310876
310885
  /**
310877
310886
  * @internal
310878
310887
  */
310879
- newRoot(fs94) {
310880
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs94 });
310888
+ newRoot(fs93) {
310889
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs93 });
310881
310890
  }
310882
310891
  /**
310883
310892
  * Return true if the provided path string is an absolute path
@@ -310905,8 +310914,8 @@ var PathScurryPosix = class extends PathScurryBase {
310905
310914
  /**
310906
310915
  * @internal
310907
310916
  */
310908
- newRoot(fs94) {
310909
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs94 });
310917
+ newRoot(fs93) {
310918
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs93 });
310910
310919
  }
310911
310920
  /**
310912
310921
  * Return true if the provided path string is an absolute path
@@ -331686,7 +331695,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
331686
331695
  return provider;
331687
331696
  }
331688
331697
  case "oauth2": {
331689
- const { OAuth2AuthProvider } = await import("./oauth2-provider-2Q3EF4MW.js");
331698
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-FRSZPLVJ.js");
331690
331699
  const provider = new OAuth2AuthProvider(
331691
331700
  authConfig,
331692
331701
  options.agentName ?? "unknown",
@@ -340918,6 +340927,17 @@ var WorkspaceContext = class {
340918
340927
  const fullyResolvedPath = this.fullyResolvedPath(pathToCheck);
340919
340928
  for (const dir of this.directories) {
340920
340929
  if (this.isPathWithinRoot(fullyResolvedPath, dir)) {
340930
+ const relative12 = path70.relative(dir, fullyResolvedPath);
340931
+ const segments = relative12.split(path70.sep);
340932
+ const hasBlockedSegment = segments.some((segment) => {
340933
+ const clean = trimTrailingSpacesAndDots(
340934
+ segment.split(":")[0]
340935
+ ).toLowerCase();
340936
+ return clean === ".git" || clean === ".env" || clean === "node_modules";
340937
+ });
340938
+ if (hasBlockedSegment) {
340939
+ return false;
340940
+ }
340921
340941
  return true;
340922
340942
  }
340923
340943
  }
@@ -340967,6 +340987,13 @@ var WorkspaceContext = class {
340967
340987
  return !relative12.startsWith(`..${path70.sep}`) && relative12 !== ".." && !path70.isAbsolute(relative12);
340968
340988
  }
340969
340989
  };
340990
+ function trimTrailingSpacesAndDots(str2) {
340991
+ let end = str2.length - 1;
340992
+ while (end >= 0 && (str2[end] === " " || str2[end] === ".")) {
340993
+ end--;
340994
+ }
340995
+ return str2.slice(0, end + 1);
340996
+ }
340970
340997
 
340971
340998
  // packages/core/src/config/scoped-config.ts
340972
340999
  var workspaceContextOverride = new AsyncLocalStorage3();
@@ -359706,11 +359733,10 @@ var ContextBuilder = class {
359706
359733
 
359707
359734
  // packages/core/src/safety/registry.ts
359708
359735
  import * as path85 from "node:path";
359709
- import * as fs75 from "node:fs";
359736
+ import * as fs74 from "node:fs";
359710
359737
 
359711
359738
  // packages/core/src/safety/built-in.ts
359712
359739
  import * as path84 from "node:path";
359713
- import * as fs74 from "node:fs";
359714
359740
  var AllowedPathChecker = class {
359715
359741
  async check(input) {
359716
359742
  const { toolCall, context: context2 } = input;
@@ -359726,6 +359752,7 @@ var AllowedPathChecker = class {
359726
359752
  includedArgs,
359727
359753
  excludedArgs
359728
359754
  );
359755
+ const resolvedAllowedDirs = allowedDirs.map((dir) => this.safelyResolvePath(dir, context2.environment.cwd)).filter((resolvedDir) => resolvedDir !== null);
359729
359756
  for (const { path: p, argName } of pathsToCheck) {
359730
359757
  const resolvedPath = this.safelyResolvePath(p, context2.environment.cwd);
359731
359758
  if (!resolvedPath) {
@@ -359734,14 +359761,43 @@ var AllowedPathChecker = class {
359734
359761
  reason: `Cannot resolve path "${p}" in argument "${argName}"`
359735
359762
  };
359736
359763
  }
359737
- const isAllowed = allowedDirs.some((dir) => {
359738
- const resolvedDir = this.safelyResolvePath(
359739
- dir,
359740
- context2.environment.cwd
359741
- );
359742
- if (!resolvedDir) return false;
359743
- return this.isPathAllowed(resolvedPath, resolvedDir);
359744
- });
359764
+ let hasBlockedSegment = false;
359765
+ let isVscodePath = false;
359766
+ for (const resolvedDir of resolvedAllowedDirs) {
359767
+ if (!this.isPathAllowed(resolvedPath, resolvedDir)) continue;
359768
+ const relative12 = path84.relative(resolvedDir, resolvedPath);
359769
+ const segments = relative12.split(path84.sep);
359770
+ for (const segment of segments) {
359771
+ const clean = trimTrailingSpacesAndDots2(
359772
+ segment.split(":")[0]
359773
+ ).toLowerCase();
359774
+ if (clean === ".git" || clean === ".env" || clean === "node_modules") {
359775
+ hasBlockedSegment = true;
359776
+ }
359777
+ if (clean === ".vscode") {
359778
+ isVscodePath = true;
359779
+ }
359780
+ }
359781
+ }
359782
+ if (hasBlockedSegment) {
359783
+ return {
359784
+ decision: "deny" /* DENY */,
359785
+ reason: `Access to sensitive path "${p}" in argument "${argName}" is blocked.`
359786
+ };
359787
+ }
359788
+ if (isVscodePath) {
359789
+ return {
359790
+ decision: "ask_user" /* ASK_USER */,
359791
+ reason: `Modifying .vscode configuration files requires explicit user confirmation.`
359792
+ };
359793
+ }
359794
+ let isAllowed = false;
359795
+ for (const resolvedDir of resolvedAllowedDirs) {
359796
+ if (this.isPathAllowed(resolvedPath, resolvedDir)) {
359797
+ isAllowed = true;
359798
+ break;
359799
+ }
359800
+ }
359745
359801
  if (!isAllowed) {
359746
359802
  return {
359747
359803
  decision: "deny" /* DENY */,
@@ -359756,10 +359812,11 @@ var AllowedPathChecker = class {
359756
359812
  const resolved = path84.resolve(cwd, inputPath);
359757
359813
  let current = resolved;
359758
359814
  while (current && current !== path84.dirname(current)) {
359759
- if (fs74.existsSync(current)) {
359760
- const canonical = fs74.realpathSync(current);
359815
+ try {
359816
+ const canonical = resolveToRealPath(current);
359761
359817
  const relative12 = path84.relative(current, resolved);
359762
359818
  return path84.join(canonical, relative12);
359819
+ } catch {
359763
359820
  }
359764
359821
  current = path84.dirname(current);
359765
359822
  }
@@ -359800,6 +359857,13 @@ var AllowedPathChecker = class {
359800
359857
  return paths;
359801
359858
  }
359802
359859
  };
359860
+ function trimTrailingSpacesAndDots2(str2) {
359861
+ let end = str2.length - 1;
359862
+ while (end >= 0 && (str2[end] === " " || str2[end] === ".")) {
359863
+ end--;
359864
+ }
359865
+ return str2.slice(0, end + 1);
359866
+ }
359803
359867
 
359804
359868
  // packages/core/src/safety/conseca/policy-generator.ts
359805
359869
  var CONSECA_POLICY_GENERATION_PROMPT = `
@@ -360225,7 +360289,7 @@ var CheckerRegistry = class _CheckerRegistry {
360225
360289
  const builtInPath = _CheckerRegistry.BUILT_IN_EXTERNAL_CHECKERS.get(name3);
360226
360290
  if (builtInPath) {
360227
360291
  const fullPath = path85.join(this.checkersPath, builtInPath);
360228
- if (!fs75.existsSync(fullPath)) {
360292
+ if (!fs74.existsSync(fullPath)) {
360229
360293
  throw new Error(`Built-in checker "${name3}" not found at ${fullPath}`);
360230
360294
  }
360231
360295
  return fullPath;
@@ -361248,7 +361312,7 @@ import { pathToFileURL } from "node:url";
361248
361312
  import { randomUUID as randomUUID18 } from "node:crypto";
361249
361313
 
361250
361314
  // packages/core/src/mcp/oauth-token-storage.ts
361251
- import { promises as fs76 } from "node:fs";
361315
+ import { promises as fs75 } from "node:fs";
361252
361316
  import * as path86 from "node:path";
361253
361317
  var MCPOAuthTokenStorage = class {
361254
361318
  hybridTokenStorage;
@@ -361271,7 +361335,7 @@ var MCPOAuthTokenStorage = class {
361271
361335
  */
361272
361336
  async ensureConfigDir() {
361273
361337
  const configDir = path86.dirname(this.getTokenFilePath());
361274
- await fs76.mkdir(configDir, { recursive: true });
361338
+ await fs75.mkdir(configDir, { recursive: true });
361275
361339
  }
361276
361340
  /**
361277
361341
  * Load all stored MCP OAuth tokens.
@@ -361285,7 +361349,7 @@ var MCPOAuthTokenStorage = class {
361285
361349
  const tokenMap = /* @__PURE__ */ new Map();
361286
361350
  try {
361287
361351
  const tokenFile = this.getTokenFilePath();
361288
- const data = await fs76.readFile(tokenFile, "utf-8");
361352
+ const data = await fs75.readFile(tokenFile, "utf-8");
361289
361353
  const tokens = JSON.parse(data);
361290
361354
  for (const credential of tokens) {
361291
361355
  tokenMap.set(credential.serverName, credential);
@@ -361317,7 +361381,7 @@ var MCPOAuthTokenStorage = class {
361317
361381
  const tokenArray = Array.from(tokens.values());
361318
361382
  const tokenFile = this.getTokenFilePath();
361319
361383
  try {
361320
- await fs76.writeFile(
361384
+ await fs75.writeFile(
361321
361385
  tokenFile,
361322
361386
  JSON.stringify(tokenArray, null, 2),
361323
361387
  { mode: 384 }
@@ -361390,9 +361454,9 @@ var MCPOAuthTokenStorage = class {
361390
361454
  const tokenFile = this.getTokenFilePath();
361391
361455
  try {
361392
361456
  if (tokenArray.length === 0) {
361393
- await fs76.unlink(tokenFile);
361457
+ await fs75.unlink(tokenFile);
361394
361458
  } else {
361395
- await fs76.writeFile(tokenFile, JSON.stringify(tokenArray, null, 2), {
361459
+ await fs75.writeFile(tokenFile, JSON.stringify(tokenArray, null, 2), {
361396
361460
  mode: 384
361397
361461
  });
361398
361462
  }
@@ -361427,7 +361491,7 @@ var MCPOAuthTokenStorage = class {
361427
361491
  }
361428
361492
  try {
361429
361493
  const tokenFile = this.getTokenFilePath();
361430
- await fs76.unlink(tokenFile);
361494
+ await fs75.unlink(tokenFile);
361431
361495
  } catch (error40) {
361432
361496
  if (error40.code !== "ENOENT") {
361433
361497
  coreEvents.emitFeedback(
@@ -372805,7 +372869,7 @@ var Config = class {
372805
372869
  plansDir = this.storage.getPlansDir();
372806
372870
  }
372807
372871
  try {
372808
- await fs77.promises.access(plansDir);
372872
+ await fs76.promises.access(plansDir);
372809
372873
  this.workspaceContext.addDirectory(plansDir);
372810
372874
  } catch {
372811
372875
  }
@@ -373375,7 +373439,7 @@ var Config = class {
373375
373439
  const currentDirectories = this.workspaceContext.getDirectories().filter((dir) => !pathsToRemove.has(dir));
373376
373440
  this.workspaceContext.setDirectories(currentDirectories);
373377
373441
  try {
373378
- if (fs77.existsSync(nextPlansDir)) {
373442
+ if (fs76.existsSync(nextPlansDir)) {
373379
373443
  this.workspaceContext.addDirectory(nextPlansDir);
373380
373444
  }
373381
373445
  } catch {
@@ -375006,7 +375070,7 @@ var StreamJsonFormatter = class {
375006
375070
 
375007
375071
  // packages/core/src/policy/integrity.ts
375008
375072
  import * as crypto21 from "node:crypto";
375009
- import * as fs78 from "node:fs/promises";
375073
+ import * as fs77 from "node:fs/promises";
375010
375074
  import * as path88 from "node:path";
375011
375075
  var IntegrityStatus = /* @__PURE__ */ ((IntegrityStatus2) => {
375012
375076
  IntegrityStatus2["MATCH"] = "MATCH";
@@ -375080,7 +375144,7 @@ var PolicyIntegrityManager = class _PolicyIntegrityManager {
375080
375144
  async loadIntegrityData() {
375081
375145
  const storagePath = Storage.getPolicyIntegrityStoragePath();
375082
375146
  try {
375083
- const content = await fs78.readFile(storagePath, "utf-8");
375147
+ const content = await fs77.readFile(storagePath, "utf-8");
375084
375148
  const parsed = JSON.parse(content);
375085
375149
  if (typeof parsed === "object" && parsed !== null && Object.values(parsed).every((v) => typeof v === "string")) {
375086
375150
  return parsed;
@@ -375098,8 +375162,8 @@ var PolicyIntegrityManager = class _PolicyIntegrityManager {
375098
375162
  async saveIntegrityData(data) {
375099
375163
  const storagePath = Storage.getPolicyIntegrityStoragePath();
375100
375164
  try {
375101
- await fs78.mkdir(path88.dirname(storagePath), { recursive: true });
375102
- await fs78.writeFile(storagePath, JSON.stringify(data, null, 2), "utf-8");
375165
+ await fs77.mkdir(path88.dirname(storagePath), { recursive: true });
375166
+ await fs77.writeFile(storagePath, JSON.stringify(data, null, 2), "utf-8");
375103
375167
  } catch (error40) {
375104
375168
  debugLogger.error("Failed to save policy integrity data", error40);
375105
375169
  throw error40;
@@ -375108,7 +375172,7 @@ var PolicyIntegrityManager = class _PolicyIntegrityManager {
375108
375172
  };
375109
375173
 
375110
375174
  // packages/core/src/config/extensions/integrity.ts
375111
- import * as fs79 from "node:fs";
375175
+ import * as fs78 from "node:fs";
375112
375176
  import * as path89 from "node:path";
375113
375177
  import {
375114
375178
  createHash as createHash15,
@@ -375178,14 +375242,14 @@ var IntegrityKeyManager = class {
375178
375242
  }
375179
375243
  async getSecretKeyFromFile() {
375180
375244
  try {
375181
- const key = await fs79.promises.readFile(this.fallbackKeyPath, "utf-8");
375245
+ const key = await fs78.promises.readFile(this.fallbackKeyPath, "utf-8");
375182
375246
  return key.trim();
375183
375247
  } catch (e2) {
375184
375248
  if (isNodeError(e2) && e2.code === "ENOENT") {
375185
375249
  const configDir = path89.dirname(this.fallbackKeyPath);
375186
- await fs79.promises.mkdir(configDir, { recursive: true });
375250
+ await fs78.promises.mkdir(configDir, { recursive: true });
375187
375251
  const key = randomBytes6(32).toString("hex");
375188
- await fs79.promises.writeFile(this.fallbackKeyPath, key, { mode: 384 });
375252
+ await fs78.promises.writeFile(this.fallbackKeyPath, key, { mode: 384 });
375189
375253
  return key;
375190
375254
  }
375191
375255
  throw e2;
@@ -375205,7 +375269,7 @@ var ExtensionIntegrityStore = class {
375205
375269
  async load() {
375206
375270
  let content;
375207
375271
  try {
375208
- content = await fs79.promises.readFile(this.integrityStorePath, "utf-8");
375272
+ content = await fs78.promises.readFile(this.integrityStorePath, "utf-8");
375209
375273
  } catch (e2) {
375210
375274
  if (isNodeError(e2) && e2.code === "ENOENT") {
375211
375275
  return {};
@@ -375242,12 +375306,12 @@ var ExtensionIntegrityStore = class {
375242
375306
  signature: storeSignature
375243
375307
  };
375244
375308
  const configDir = path89.dirname(this.integrityStorePath);
375245
- await fs79.promises.mkdir(configDir, { recursive: true });
375309
+ await fs78.promises.mkdir(configDir, { recursive: true });
375246
375310
  const tmpPath = `${this.integrityStorePath}.tmp`;
375247
- await fs79.promises.writeFile(tmpPath, JSON.stringify(finalData, null, 2), {
375311
+ await fs78.promises.writeFile(tmpPath, JSON.stringify(finalData, null, 2), {
375248
375312
  mode: 384
375249
375313
  });
375250
- await fs79.promises.rename(tmpPath, this.integrityStorePath);
375314
+ await fs78.promises.rename(tmpPath, this.integrityStorePath);
375251
375315
  }
375252
375316
  /**
375253
375317
  * Generates a deterministic SHA-256 hash of the metadata.
@@ -375568,11 +375632,11 @@ Write the complete content to the \`GEMINI.md\` file. The output must be well-fo
375568
375632
  // packages/core/src/commands/memory.ts
375569
375633
  import { randomUUID as randomUUID21 } from "node:crypto";
375570
375634
  import { constants as fsConstants3 } from "node:fs";
375571
- import * as fs82 from "node:fs/promises";
375635
+ import * as fs81 from "node:fs/promises";
375572
375636
  import * as path93 from "node:path";
375573
375637
 
375574
375638
  // packages/core/src/services/memoryPatchUtils.ts
375575
- import * as fs80 from "node:fs/promises";
375639
+ import * as fs79 from "node:fs/promises";
375576
375640
  import * as path91 from "node:path";
375577
375641
  function getAllowedSkillPatchRoots(config2) {
375578
375642
  return Array.from(
@@ -375588,7 +375652,7 @@ async function resolvePathWithExistingAncestors(targetPath) {
375588
375652
  let currentPath = path91.resolve(targetPath);
375589
375653
  while (true) {
375590
375654
  try {
375591
- const realCurrentPath = await fs80.realpath(currentPath);
375655
+ const realCurrentPath = await fs79.realpath(currentPath);
375592
375656
  return path91.join(realCurrentPath, ...missingSegments.reverse());
375593
375657
  } catch (error40) {
375594
375658
  if (!isNodeError(error40) || error40.code !== "ENOENT" && error40.code !== "ENOTDIR") {
@@ -375855,7 +375919,7 @@ async function listInboxPatchFiles(config2, kind) {
375855
375919
  async function walk(currentDir) {
375856
375920
  let dirEntries;
375857
375921
  try {
375858
- dirEntries = await fs80.readdir(currentDir, { withFileTypes: true });
375922
+ dirEntries = await fs79.readdir(currentDir, { withFileTypes: true });
375859
375923
  } catch {
375860
375924
  return;
375861
375925
  }
@@ -375876,7 +375940,7 @@ async function listInboxPatchFiles(config2, kind) {
375876
375940
  async function validateInboxMemoryPatchFile(config2, kind, sourcePath) {
375877
375941
  let content;
375878
375942
  try {
375879
- content = await fs80.readFile(sourcePath, "utf-8");
375943
+ content = await fs79.readFile(sourcePath, "utf-8");
375880
375944
  } catch (error40) {
375881
375945
  return {
375882
375946
  valid: false,
@@ -375977,7 +376041,7 @@ async function applyParsedPatchesWithAllowedRoots(parsedPatches, allowedRoots, o
375977
376041
  source = patchedContentByTarget.get(resolvedTargetPath);
375978
376042
  } else if (isNewFile) {
375979
376043
  try {
375980
- await fs80.lstat(resolvedTargetPath);
376044
+ await fs79.lstat(resolvedTargetPath);
375981
376045
  return {
375982
376046
  success: false,
375983
376047
  reason: "newFileAlreadyExists",
@@ -375998,7 +376062,7 @@ async function applyParsedPatchesWithAllowedRoots(parsedPatches, allowedRoots, o
375998
376062
  originalContentByTarget.set(resolvedTargetPath, source);
375999
376063
  } else {
376000
376064
  try {
376001
- source = await fs80.readFile(resolvedTargetPath, "utf-8");
376065
+ source = await fs79.readFile(resolvedTargetPath, "utf-8");
376002
376066
  originalContentByTarget.set(resolvedTargetPath, source);
376003
376067
  } catch {
376004
376068
  return {
@@ -376052,7 +376116,7 @@ async function resolveTargetWithinAllowedRoots(targetPath, allowedRoots) {
376052
376116
  }
376053
376117
 
376054
376118
  // packages/core/src/services/memoryService.ts
376055
- import * as fs81 from "node:fs/promises";
376119
+ import * as fs80 from "node:fs/promises";
376056
376120
  import * as path92 from "node:path";
376057
376121
  import { constants as fsConstants2 } from "node:fs";
376058
376122
  import { randomUUID as randomUUID20 } from "node:crypto";
@@ -376794,7 +376858,7 @@ async function tryAcquireLock(lockPath, retries = 1) {
376794
376858
  startedAt: (/* @__PURE__ */ new Date()).toISOString()
376795
376859
  };
376796
376860
  try {
376797
- const fd = await fs81.open(
376861
+ const fd = await fs80.open(
376798
376862
  lockPath,
376799
376863
  fsConstants2.O_CREAT | fsConstants2.O_EXCL | fsConstants2.O_WRONLY
376800
376864
  );
@@ -376821,7 +376885,7 @@ async function tryAcquireLock(lockPath, retries = 1) {
376821
376885
  }
376822
376886
  async function isLockStale(lockPath) {
376823
376887
  try {
376824
- const content = await fs81.readFile(lockPath, "utf-8");
376888
+ const content = await fs80.readFile(lockPath, "utf-8");
376825
376889
  const parsed = JSON.parse(content);
376826
376890
  if (!isLockInfo(parsed)) {
376827
376891
  return true;
@@ -376843,7 +376907,7 @@ async function isLockStale(lockPath) {
376843
376907
  }
376844
376908
  async function releaseLock(lockPath) {
376845
376909
  try {
376846
- await fs81.unlink(lockPath);
376910
+ await fs80.unlink(lockPath);
376847
376911
  } catch (error40) {
376848
376912
  if (isNodeError(error40) && error40.code === "ENOENT") {
376849
376913
  return;
@@ -376855,7 +376919,7 @@ async function releaseLock(lockPath) {
376855
376919
  }
376856
376920
  async function readExtractionState(statePath) {
376857
376921
  try {
376858
- const content = await fs81.readFile(statePath, "utf-8");
376922
+ const content = await fs80.readFile(statePath, "utf-8");
376859
376923
  const parsed = JSON.parse(content);
376860
376924
  if (!isExtractionState(parsed)) {
376861
376925
  return { runs: [] };
@@ -376877,8 +376941,8 @@ async function readExtractionState(statePath) {
376877
376941
  }
376878
376942
  async function writeExtractionState(statePath, state) {
376879
376943
  const tmpPath = `${statePath}.tmp`;
376880
- await fs81.writeFile(tmpPath, JSON.stringify(state, null, 2));
376881
- await fs81.rename(tmpPath, statePath);
376944
+ await fs80.writeFile(tmpPath, JSON.stringify(state, null, 2));
376945
+ await fs80.rename(tmpPath, statePath);
376882
376946
  }
376883
376947
  function shouldProcessConversation(parsed) {
376884
376948
  if (parsed.kind === "subagent") return false;
@@ -376890,7 +376954,7 @@ function shouldProcessConversation(parsed) {
376890
376954
  async function scanEligibleSessions(chatsDir) {
376891
376955
  let allFiles;
376892
376956
  try {
376893
- allFiles = await fs81.readdir(chatsDir);
376957
+ allFiles = await fs80.readdir(chatsDir);
376894
376958
  } catch {
376895
376959
  return [];
376896
376960
  }
@@ -376899,7 +376963,7 @@ async function scanEligibleSessions(chatsDir) {
376899
376963
  if (!isSupportedSessionFile(file2)) continue;
376900
376964
  const filePath = path92.join(chatsDir, file2);
376901
376965
  try {
376902
- const stat14 = await fs81.stat(filePath);
376966
+ const stat14 = await fs80.stat(filePath);
376903
376967
  if (!stat14.isFile()) continue;
376904
376968
  candidates.push({ filePath, mtimeMs: stat14.mtimeMs });
376905
376969
  } catch {
@@ -376986,12 +377050,12 @@ async function buildExistingSkillsSummary(skillsDir, config2) {
376986
377050
  const sections = [];
376987
377051
  const memorySkills = [];
376988
377052
  try {
376989
- const entries = await fs81.readdir(skillsDir, { withFileTypes: true });
377053
+ const entries = await fs80.readdir(skillsDir, { withFileTypes: true });
376990
377054
  for (const entry of entries) {
376991
377055
  if (!entry.isDirectory()) continue;
376992
377056
  const skillPath = path92.join(skillsDir, entry.name, "SKILL.md");
376993
377057
  try {
376994
- const content = await fs81.readFile(skillPath, "utf-8");
377058
+ const content = await fs80.readFile(skillPath, "utf-8");
376995
377059
  const match2 = content.match(FRONTMATTER_REGEX);
376996
377060
  if (match2) {
376997
377061
  const parsed = parseFrontmatter(match2[1]);
@@ -377086,7 +377150,7 @@ function buildAgentLoopContext(config2) {
377086
377150
  async function validatePatches(skillsDir, config2) {
377087
377151
  let entries;
377088
377152
  try {
377089
- entries = await fs81.readdir(skillsDir);
377153
+ entries = await fs80.readdir(skillsDir);
377090
377154
  } catch {
377091
377155
  return [];
377092
377156
  }
@@ -377097,7 +377161,7 @@ async function validatePatches(skillsDir, config2) {
377097
377161
  let valid = true;
377098
377162
  let reason = "";
377099
377163
  try {
377100
- const patchContent = await fs81.readFile(patchPath, "utf-8");
377164
+ const patchContent = await fs80.readFile(patchPath, "utf-8");
377101
377165
  const parsedPatches = parsePatch(patchContent);
377102
377166
  if (!hasParsedPatchHunks(parsedPatches)) {
377103
377167
  valid = false;
@@ -377143,7 +377207,7 @@ async function validatePatches(skillsDir, config2) {
377143
377207
  `[MemoryService] Removing invalid patch ${patchFile}: ${reason}`
377144
377208
  );
377145
377209
  try {
377146
- await fs81.unlink(patchPath);
377210
+ await fs80.unlink(patchPath);
377147
377211
  } catch {
377148
377212
  }
377149
377213
  }
@@ -377155,7 +377219,7 @@ async function snapshotFiles(rootDir, shouldIncludeFile = () => true, shouldDesc
377155
377219
  async function walk(currentDir) {
377156
377220
  let entries;
377157
377221
  try {
377158
- entries = await fs81.readdir(currentDir, { withFileTypes: true });
377222
+ entries = await fs80.readdir(currentDir, { withFileTypes: true });
377159
377223
  } catch {
377160
377224
  return;
377161
377225
  }
@@ -377175,7 +377239,7 @@ async function snapshotFiles(rootDir, shouldIncludeFile = () => true, shouldDesc
377175
377239
  continue;
377176
377240
  }
377177
377241
  try {
377178
- snapshot.set(relativePath, await fs81.readFile(absolutePath, "utf-8"));
377242
+ snapshot.set(relativePath, await fs80.readFile(absolutePath, "utf-8"));
377179
377243
  } catch {
377180
377244
  }
377181
377245
  }
@@ -377203,7 +377267,7 @@ async function validateMemoryInboxPatches(config2) {
377203
377267
  continue;
377204
377268
  }
377205
377269
  try {
377206
- await fs81.unlink(patchFile);
377270
+ await fs80.unlink(patchFile);
377207
377271
  debugLogger.warn(
377208
377272
  `[MemoryService] Dropped invalid ${kind} memory inbox patch ${patchFile}: ${validation.reason}`
377209
377273
  );
@@ -377222,7 +377286,7 @@ async function buildPendingInboxSummary(memoryDir) {
377222
377286
  const kindRoot = path92.join(memoryDir, ".inbox", kind);
377223
377287
  let entries;
377224
377288
  try {
377225
- entries = await fs81.readdir(kindRoot, { withFileTypes: true });
377289
+ entries = await fs80.readdir(kindRoot, { withFileTypes: true });
377226
377290
  } catch {
377227
377291
  continue;
377228
377292
  }
@@ -377235,7 +377299,7 @@ async function buildPendingInboxSummary(memoryDir) {
377235
377299
  const fullPath = path92.join(kindRoot, fileName);
377236
377300
  let content = "";
377237
377301
  try {
377238
- content = await fs81.readFile(fullPath, "utf-8");
377302
+ content = await fs80.readFile(fullPath, "utf-8");
377239
377303
  } catch {
377240
377304
  continue;
377241
377305
  }
@@ -377289,7 +377353,7 @@ async function startMemoryService(config2) {
377289
377353
  const lockPath = path92.join(memoryDir, LOCK_FILENAME);
377290
377354
  const statePath = path92.join(memoryDir, STATE_FILENAME);
377291
377355
  const chatsDir = path92.join(config2.storage.getProjectTempDir(), "chats");
377292
- await fs81.mkdir(skillsDir, { recursive: true });
377356
+ await fs80.mkdir(skillsDir, { recursive: true });
377293
377357
  debugLogger.log(`[MemoryService] Starting. Skills dir: ${skillsDir}`);
377294
377358
  if (!await tryAcquireLock(lockPath)) {
377295
377359
  debugLogger.log("[MemoryService] Skipped: lock held by another instance");
@@ -377341,13 +377405,13 @@ async function startMemoryService(config2) {
377341
377405
  const skillsBefore = /* @__PURE__ */ new Set();
377342
377406
  const patchContentsBefore = /* @__PURE__ */ new Map();
377343
377407
  try {
377344
- const entries = await fs81.readdir(skillsDir);
377408
+ const entries = await fs80.readdir(skillsDir);
377345
377409
  for (const e2 of entries) {
377346
377410
  if (e2.endsWith(".patch")) {
377347
377411
  try {
377348
377412
  patchContentsBefore.set(
377349
377413
  e2,
377350
- await fs81.readFile(path92.join(skillsDir, e2), "utf-8")
377414
+ await fs80.readFile(path92.join(skillsDir, e2), "utf-8")
377351
377415
  );
377352
377416
  } catch {
377353
377417
  }
@@ -377438,7 +377502,7 @@ ${pendingInboxSummary}`
377438
377502
  const elapsed = ((Date.now() - startTime) / 1e3).toFixed(1);
377439
377503
  const skillsCreated = [];
377440
377504
  try {
377441
- const entriesAfter = await fs81.readdir(skillsDir);
377505
+ const entriesAfter = await fs80.readdir(skillsDir);
377442
377506
  for (const e2 of entriesAfter) {
377443
377507
  if (!skillsBefore.has(e2) && !e2.endsWith(".patch")) {
377444
377508
  skillsCreated.push(e2);
@@ -377452,7 +377516,7 @@ ${pendingInboxSummary}`
377452
377516
  const patchPath = path92.join(skillsDir, patchFile);
377453
377517
  let currentContent;
377454
377518
  try {
377455
- currentContent = await fs81.readFile(patchPath, "utf-8");
377519
+ currentContent = await fs80.readFile(patchPath, "utf-8");
377456
377520
  } catch {
377457
377521
  continue;
377458
377522
  }
@@ -377633,7 +377697,7 @@ async function listInboxSkills(config2) {
377633
377697
  const skillsDir = config2.storage.getProjectSkillsMemoryDir();
377634
377698
  let entries;
377635
377699
  try {
377636
- entries = await fs82.readdir(skillsDir, { withFileTypes: true });
377700
+ entries = await fs81.readdir(skillsDir, { withFileTypes: true });
377637
377701
  } catch {
377638
377702
  return [];
377639
377703
  }
@@ -377657,7 +377721,7 @@ async function listInboxSkills(config2) {
377657
377721
  if (!skillDef) continue;
377658
377722
  let content = "";
377659
377723
  try {
377660
- content = await fs82.readFile(skillPath, "utf-8");
377724
+ content = await fs81.readFile(skillPath, "utf-8");
377661
377725
  } catch {
377662
377726
  }
377663
377727
  skills.push({
@@ -377690,7 +377754,7 @@ async function moveInboxSkill(config2, dirName, destination) {
377690
377754
  const skillsDir = config2.storage.getProjectSkillsMemoryDir();
377691
377755
  const sourcePath = path93.join(skillsDir, dirName);
377692
377756
  try {
377693
- await fs82.access(sourcePath);
377757
+ await fs81.access(sourcePath);
377694
377758
  } catch {
377695
377759
  return {
377696
377760
  success: false,
@@ -377701,7 +377765,7 @@ async function moveInboxSkill(config2, dirName, destination) {
377701
377765
  const targetPath = path93.join(targetBase, dirName);
377702
377766
  const skillName = await getSkillNameForConflictCheck(sourcePath, dirName);
377703
377767
  try {
377704
- await fs82.access(targetPath);
377768
+ await fs81.access(targetPath);
377705
377769
  return {
377706
377770
  success: false,
377707
377771
  message: `A skill named "${skillName}" already exists in ${destination} skills.`
@@ -377715,9 +377779,9 @@ async function moveInboxSkill(config2, dirName, destination) {
377715
377779
  message: `A skill named "${skillName}" already exists in ${destination} skills.`
377716
377780
  };
377717
377781
  }
377718
- await fs82.mkdir(targetBase, { recursive: true });
377719
- await fs82.cp(sourcePath, targetPath, { recursive: true });
377720
- await fs82.rm(sourcePath, { recursive: true, force: true });
377782
+ await fs81.mkdir(targetBase, { recursive: true });
377783
+ await fs81.cp(sourcePath, targetPath, { recursive: true });
377784
+ await fs81.rm(sourcePath, { recursive: true, force: true });
377721
377785
  const label = destination === "global" ? "~/.gemini/skills" : ".gemini/skills";
377722
377786
  return {
377723
377787
  success: true,
@@ -377734,14 +377798,14 @@ async function dismissInboxSkill(config2, dirName) {
377734
377798
  const skillsDir = config2.storage.getProjectSkillsMemoryDir();
377735
377799
  const sourcePath = path93.join(skillsDir, dirName);
377736
377800
  try {
377737
- await fs82.access(sourcePath);
377801
+ await fs81.access(sourcePath);
377738
377802
  } catch {
377739
377803
  return {
377740
377804
  success: false,
377741
377805
  message: `Skill "${dirName}" not found in inbox.`
377742
377806
  };
377743
377807
  }
377744
- await fs82.rm(sourcePath, { recursive: true, force: true });
377808
+ await fs81.rm(sourcePath, { recursive: true, force: true });
377745
377809
  return {
377746
377810
  success: true,
377747
377811
  message: `Dismissed "${dirName}" from inbox.`
@@ -377770,7 +377834,7 @@ function getErrorMessage4(error40) {
377770
377834
  }
377771
377835
  async function getFileMtimeIso(filePath) {
377772
377836
  try {
377773
- const stats = await fs82.stat(filePath);
377837
+ const stats = await fs81.stat(filePath);
377774
377838
  return stats.mtime.toISOString();
377775
377839
  } catch {
377776
377840
  return void 0;
@@ -377786,7 +377850,7 @@ async function patchTargetsProjectSkills(targetPaths, config2) {
377786
377850
  }
377787
377851
  async function getPatchExtractedAt(patchPath) {
377788
377852
  try {
377789
- const stats = await fs82.stat(patchPath);
377853
+ const stats = await fs81.stat(patchPath);
377790
377854
  return stats.mtime.toISOString();
377791
377855
  } catch {
377792
377856
  return void 0;
@@ -377817,7 +377881,7 @@ async function listInboxMemoryPatches(config2) {
377817
377881
  for (const sourcePath of patchFiles) {
377818
377882
  let content;
377819
377883
  try {
377820
- content = await fs82.readFile(sourcePath, "utf-8");
377884
+ content = await fs81.readFile(sourcePath, "utf-8");
377821
377885
  } catch {
377822
377886
  continue;
377823
377887
  }
@@ -377938,7 +378002,7 @@ async function applyAllInboxPatchesForKind(config2, kind) {
377938
378002
  }
377939
378003
  async function canonicalizeDirIfPresent(dirPath) {
377940
378004
  try {
377941
- return await fs82.realpath(dirPath);
378005
+ return await fs81.realpath(dirPath);
377942
378006
  } catch {
377943
378007
  return path93.resolve(dirPath);
377944
378008
  }
@@ -377972,7 +378036,7 @@ async function augmentWithAutoPointers(config2, appliedResults) {
377972
378036
  let originalContent = "";
377973
378037
  let isNewFile = true;
377974
378038
  try {
377975
- originalContent = await fs82.readFile(memoryMdPath, "utf-8");
378039
+ originalContent = await fs81.readFile(memoryMdPath, "utf-8");
377976
378040
  isNewFile = false;
377977
378041
  } catch {
377978
378042
  }
@@ -378012,7 +378076,7 @@ ${pointer}
378012
378076
  async function applyMemoryPatchFile(config2, kind, patchPath, displayName) {
378013
378077
  let content;
378014
378078
  try {
378015
- content = await fs82.readFile(patchPath, "utf-8");
378079
+ content = await fs81.readFile(patchPath, "utf-8");
378016
378080
  } catch {
378017
378081
  return {
378018
378082
  success: false,
@@ -378116,7 +378180,7 @@ async function applyMemoryPatchFile(config2, kind, patchPath, displayName) {
378116
378180
  const committedTargets = [];
378117
378181
  try {
378118
378182
  for (const stagedTarget of stagedTargets) {
378119
- await fs82.rename(stagedTarget.tempPath, stagedTarget.targetPath);
378183
+ await fs81.rename(stagedTarget.tempPath, stagedTarget.targetPath);
378120
378184
  committedTargets.push(stagedTarget);
378121
378185
  }
378122
378186
  } catch (error40) {
@@ -378134,7 +378198,7 @@ async function applyMemoryPatchFile(config2, kind, patchPath, displayName) {
378134
378198
  message: `Memory patch "${displayName}" could not be applied atomically: ${getErrorMessage4(error40)}.`
378135
378199
  };
378136
378200
  }
378137
- await fs82.unlink(patchPath);
378201
+ await fs81.unlink(patchPath);
378138
378202
  const fileCount = resultsToCommit.length;
378139
378203
  const baseMessage = `Applied memory patch to ${fileCount} file${fileCount !== 1 ? "s" : ""}.`;
378140
378204
  const pointerNote = pointersAdded.length > 0 ? ` Auto-added MEMORY.md pointer for ${pointersAdded.map((name3) => `"${name3}"`).join(", ")} so the new sibling file is discoverable.` : "";
@@ -378155,7 +378219,7 @@ async function dismissInboxMemoryPatch(config2, kind, relativePath) {
378155
378219
  let removed = 0;
378156
378220
  for (const sourcePath2 of patchFiles) {
378157
378221
  try {
378158
- await fs82.unlink(sourcePath2);
378222
+ await fs81.unlink(sourcePath2);
378159
378223
  removed += 1;
378160
378224
  } catch {
378161
378225
  }
@@ -378178,14 +378242,14 @@ async function dismissInboxMemoryPatch(config2, kind, relativePath) {
378178
378242
  return { success: false, message: "Invalid memory patch path." };
378179
378243
  }
378180
378244
  try {
378181
- await fs82.access(sourcePath);
378245
+ await fs81.access(sourcePath);
378182
378246
  } catch {
378183
378247
  return {
378184
378248
  success: false,
378185
378249
  message: `Memory patch "${normalizedPath}" not found in inbox.`
378186
378250
  };
378187
378251
  }
378188
- await fs82.unlink(sourcePath);
378252
+ await fs81.unlink(sourcePath);
378189
378253
  return {
378190
378254
  success: true,
378191
378255
  message: `Dismissed "${normalizedPath}" from inbox.`
@@ -378195,7 +378259,7 @@ async function findNearestExistingDirectory(startPath) {
378195
378259
  let currentPath = path93.resolve(startPath);
378196
378260
  while (true) {
378197
378261
  try {
378198
- const stats = await fs82.stat(currentPath);
378262
+ const stats = await fs81.stat(currentPath);
378199
378263
  if (stats.isDirectory()) {
378200
378264
  return currentPath;
378201
378265
  }
@@ -378209,21 +378273,21 @@ async function findNearestExistingDirectory(startPath) {
378209
378273
  }
378210
378274
  }
378211
378275
  async function writeExclusiveFile(filePath, content, mode) {
378212
- const handle2 = await fs82.open(filePath, "wx");
378276
+ const handle2 = await fs81.open(filePath, "wx");
378213
378277
  try {
378214
378278
  await handle2.writeFile(content, "utf-8");
378215
378279
  } finally {
378216
378280
  await handle2.close();
378217
378281
  }
378218
378282
  if (mode !== void 0) {
378219
- await fs82.chmod(filePath, mode);
378283
+ await fs81.chmod(filePath, mode);
378220
378284
  }
378221
378285
  }
378222
378286
  async function cleanupStagedInboxPatchTargets(stagedTargets) {
378223
378287
  await Promise.allSettled(
378224
378288
  stagedTargets.map(async ({ tempPath }) => {
378225
378289
  try {
378226
- await fs82.unlink(tempPath);
378290
+ await fs81.unlink(tempPath);
378227
378291
  } catch {
378228
378292
  }
378229
378293
  })
@@ -378232,7 +378296,7 @@ async function cleanupStagedInboxPatchTargets(stagedTargets) {
378232
378296
  async function restoreCommittedInboxPatchTarget(stagedTarget) {
378233
378297
  if (stagedTarget.isNewFile) {
378234
378298
  try {
378235
- await fs82.unlink(stagedTarget.targetPath);
378299
+ await fs81.unlink(stagedTarget.targetPath);
378236
378300
  } catch {
378237
378301
  }
378238
378302
  return;
@@ -378249,7 +378313,7 @@ async function restoreCommittedInboxPatchTarget(stagedTarget) {
378249
378313
  stagedTarget.original,
378250
378314
  stagedTarget.mode
378251
378315
  );
378252
- await fs82.rename(restorePath, stagedTarget.targetPath);
378316
+ await fs81.rename(restorePath, stagedTarget.targetPath);
378253
378317
  }
378254
378318
  async function stageInboxPatchTargets(targets) {
378255
378319
  const stagedTargets = [];
@@ -378257,8 +378321,8 @@ async function stageInboxPatchTargets(targets) {
378257
378321
  for (const target of targets) {
378258
378322
  let mode;
378259
378323
  if (!target.isNewFile) {
378260
- await fs82.access(target.targetPath, fsConstants3.W_OK);
378261
- mode = (await fs82.stat(target.targetPath)).mode;
378324
+ await fs81.access(target.targetPath, fsConstants3.W_OK);
378325
+ mode = (await fs81.stat(target.targetPath)).mode;
378262
378326
  }
378263
378327
  const tempDir = await findNearestExistingDirectory(
378264
378328
  path93.dirname(target.targetPath)
@@ -378280,7 +378344,7 @@ async function stageInboxPatchTargets(targets) {
378280
378344
  if (!target.isNewFile) {
378281
378345
  continue;
378282
378346
  }
378283
- await fs82.mkdir(path93.dirname(target.targetPath), { recursive: true });
378347
+ await fs81.mkdir(path93.dirname(target.targetPath), { recursive: true });
378284
378348
  }
378285
378349
  return stagedTargets;
378286
378350
  } catch (error40) {
@@ -378292,7 +378356,7 @@ async function listInboxPatches(config2) {
378292
378356
  const skillsDir = config2.storage.getProjectSkillsMemoryDir();
378293
378357
  let entries;
378294
378358
  try {
378295
- entries = await fs82.readdir(skillsDir);
378359
+ entries = await fs81.readdir(skillsDir);
378296
378360
  } catch {
378297
378361
  return [];
378298
378362
  }
@@ -378304,7 +378368,7 @@ async function listInboxPatches(config2) {
378304
378368
  for (const patchFile of patchFiles) {
378305
378369
  const patchPath = path93.join(skillsDir, patchFile);
378306
378370
  try {
378307
- const content = await fs82.readFile(patchPath, "utf-8");
378371
+ const content = await fs81.readFile(patchPath, "utf-8");
378308
378372
  const parsed = parsePatch(content);
378309
378373
  if (!hasParsedPatchHunks(parsed)) continue;
378310
378374
  const patchEntries = parsed.map((p) => ({
@@ -378333,7 +378397,7 @@ async function applyInboxPatch(config2, fileName) {
378333
378397
  const patchPath = path93.join(skillsDir, fileName);
378334
378398
  let content;
378335
378399
  try {
378336
- content = await fs82.readFile(patchPath, "utf-8");
378400
+ content = await fs81.readFile(patchPath, "utf-8");
378337
378401
  } catch {
378338
378402
  return {
378339
378403
  success: false,
@@ -378423,7 +378487,7 @@ async function applyInboxPatch(config2, fileName) {
378423
378487
  const committedTargets = [];
378424
378488
  try {
378425
378489
  for (const stagedTarget of stagedTargets) {
378426
- await fs82.rename(stagedTarget.tempPath, stagedTarget.targetPath);
378490
+ await fs81.rename(stagedTarget.tempPath, stagedTarget.targetPath);
378427
378491
  committedTargets.push(stagedTarget);
378428
378492
  }
378429
378493
  } catch (error40) {
@@ -378441,7 +378505,7 @@ async function applyInboxPatch(config2, fileName) {
378441
378505
  message: `Patch "${fileName}" could not be applied atomically: ${getErrorMessage4(error40)}.`
378442
378506
  };
378443
378507
  }
378444
- await fs82.unlink(patchPath);
378508
+ await fs81.unlink(patchPath);
378445
378509
  const fileCount = applied.results.length;
378446
378510
  return {
378447
378511
  success: true,
@@ -378458,14 +378522,14 @@ async function dismissInboxPatch(config2, fileName) {
378458
378522
  const skillsDir = config2.storage.getProjectSkillsMemoryDir();
378459
378523
  const patchPath = path93.join(skillsDir, fileName);
378460
378524
  try {
378461
- await fs82.access(patchPath);
378525
+ await fs81.access(patchPath);
378462
378526
  } catch {
378463
378527
  return {
378464
378528
  success: false,
378465
378529
  message: `Patch "${fileName}" not found in inbox.`
378466
378530
  };
378467
378531
  }
378468
- await fs82.unlink(patchPath);
378532
+ await fs81.unlink(patchPath);
378469
378533
  return {
378470
378534
  success: true,
378471
378535
  message: `Dismissed "${fileName}" from inbox.`
@@ -378474,7 +378538,7 @@ async function dismissInboxPatch(config2, fileName) {
378474
378538
 
378475
378539
  // packages/core/src/core/logger.ts
378476
378540
  import path94 from "node:path";
378477
- import { promises as fs83 } from "node:fs";
378541
+ import { promises as fs82 } from "node:fs";
378478
378542
  var LOG_FILE_NAME = "logs.json";
378479
378543
  var MessageSenderType = /* @__PURE__ */ ((MessageSenderType2) => {
378480
378544
  MessageSenderType2["USER"] = "user";
@@ -378511,7 +378575,7 @@ var Logger = class {
378511
378575
  throw new Error("Log file path not set during read attempt.");
378512
378576
  }
378513
378577
  try {
378514
- const fileContent = await fs83.readFile(this.logFilePath, "utf-8");
378578
+ const fileContent = await fs82.readFile(this.logFilePath, "utf-8");
378515
378579
  const parsedLogs = JSON.parse(fileContent);
378516
378580
  if (!Array.isArray(parsedLogs)) {
378517
378581
  debugLogger.debug(
@@ -378547,7 +378611,7 @@ var Logger = class {
378547
378611
  if (!this.logFilePath) return;
378548
378612
  const backupPath = `${this.logFilePath}.${reason}.${Date.now()}.bak`;
378549
378613
  try {
378550
- await fs83.rename(this.logFilePath, backupPath);
378614
+ await fs82.rename(this.logFilePath, backupPath);
378551
378615
  debugLogger.debug(`Backed up corrupted log file to ${backupPath}`);
378552
378616
  } catch {
378553
378617
  }
@@ -378560,16 +378624,16 @@ var Logger = class {
378560
378624
  this.geminiDir = this.storage.getProjectTempDir();
378561
378625
  this.logFilePath = path94.join(this.geminiDir, LOG_FILE_NAME);
378562
378626
  try {
378563
- await fs83.mkdir(this.geminiDir, { recursive: true });
378627
+ await fs82.mkdir(this.geminiDir, { recursive: true });
378564
378628
  let fileExisted = true;
378565
378629
  try {
378566
- await fs83.access(this.logFilePath);
378630
+ await fs82.access(this.logFilePath);
378567
378631
  } catch {
378568
378632
  fileExisted = false;
378569
378633
  }
378570
378634
  this.logs = await this._readLogFile();
378571
378635
  if (!fileExisted && this.logs.length === 0) {
378572
- await fs83.writeFile(this.logFilePath, "[]", "utf-8");
378636
+ await fs82.writeFile(this.logFilePath, "[]", "utf-8");
378573
378637
  }
378574
378638
  const sessionLogs = this.logs.filter(
378575
378639
  (entry) => entry.sessionId === this.sessionId
@@ -378614,7 +378678,7 @@ var Logger = class {
378614
378678
  }
378615
378679
  currentLogsOnDisk.push(entryToAppend);
378616
378680
  try {
378617
- await fs83.writeFile(
378681
+ await fs82.writeFile(
378618
378682
  this.logFilePath,
378619
378683
  JSON.stringify(currentLogsOnDisk, null, 2),
378620
378684
  "utf-8"
@@ -378670,7 +378734,7 @@ var Logger = class {
378670
378734
  async _getCheckpointPath(tag) {
378671
378735
  const newPath = this._checkpointPath(tag);
378672
378736
  try {
378673
- await fs83.access(newPath);
378737
+ await fs82.access(newPath);
378674
378738
  return newPath;
378675
378739
  } catch (error40) {
378676
378740
  const nodeError = error40;
@@ -378680,7 +378744,7 @@ var Logger = class {
378680
378744
  }
378681
378745
  const oldPath = path94.join(this.geminiDir, `checkpoint-${tag}.json`);
378682
378746
  try {
378683
- await fs83.access(oldPath);
378747
+ await fs82.access(oldPath);
378684
378748
  return oldPath;
378685
378749
  } catch (error40) {
378686
378750
  const nodeError = error40;
@@ -378699,7 +378763,7 @@ var Logger = class {
378699
378763
  }
378700
378764
  const path113 = this._checkpointPath(tag);
378701
378765
  try {
378702
- await fs83.writeFile(path113, JSON.stringify(checkpoint, null, 2), "utf-8");
378766
+ await fs82.writeFile(path113, JSON.stringify(checkpoint, null, 2), "utf-8");
378703
378767
  } catch (error40) {
378704
378768
  debugLogger.error("Error writing to checkpoint file:", error40);
378705
378769
  }
@@ -378713,7 +378777,7 @@ var Logger = class {
378713
378777
  }
378714
378778
  const path113 = await this._getCheckpointPath(tag);
378715
378779
  try {
378716
- const fileContent = await fs83.readFile(path113, "utf-8");
378780
+ const fileContent = await fs82.readFile(path113, "utf-8");
378717
378781
  const parsedContent = JSON.parse(fileContent);
378718
378782
  if (Array.isArray(parsedContent)) {
378719
378783
  return { history: parsedContent };
@@ -378747,7 +378811,7 @@ var Logger = class {
378747
378811
  let deletedSomething = false;
378748
378812
  const newPath = this._checkpointPath(tag);
378749
378813
  try {
378750
- await fs83.unlink(newPath);
378814
+ await fs82.unlink(newPath);
378751
378815
  deletedSomething = true;
378752
378816
  } catch (error40) {
378753
378817
  const nodeError = error40;
@@ -378762,7 +378826,7 @@ var Logger = class {
378762
378826
  const oldPath = path94.join(this.geminiDir, `checkpoint-${tag}.json`);
378763
378827
  if (newPath !== oldPath) {
378764
378828
  try {
378765
- await fs83.unlink(oldPath);
378829
+ await fs82.unlink(oldPath);
378766
378830
  deletedSomething = true;
378767
378831
  } catch (error40) {
378768
378832
  const nodeError = error40;
@@ -378786,7 +378850,7 @@ var Logger = class {
378786
378850
  let filePath;
378787
378851
  try {
378788
378852
  filePath = await this._getCheckpointPath(tag);
378789
- await fs83.access(filePath);
378853
+ await fs82.access(filePath);
378790
378854
  return true;
378791
378855
  } catch (error40) {
378792
378856
  const nodeError = error40;
@@ -378940,7 +379004,7 @@ var ExitCodes2 = {
378940
379004
 
378941
379005
  // packages/core/src/utils/atCommandUtils.ts
378942
379006
  import * as path95 from "node:path";
378943
- import * as fs84 from "node:fs/promises";
379007
+ import * as fs83 from "node:fs/promises";
378944
379008
  async function resolveAtCommandPath(pathName, config2, onDebugMessage = () => {
378945
379009
  }) {
378946
379010
  const pathValidation = validatePath(pathName);
@@ -378971,7 +379035,7 @@ async function resolveAtCommandPath(pathName, config2, onDebugMessage = () => {
378971
379035
  };
378972
379036
  }
378973
379037
  try {
378974
- const stats = await fs84.stat(pathName);
379038
+ const stats = await fs83.stat(pathName);
378975
379039
  let relativePath = pathName;
378976
379040
  for (const dir of workspaceDirs) {
378977
379041
  const rel = path95.relative(dir, pathName);
@@ -379010,7 +379074,7 @@ async function resolveAtCommandPath(pathName, config2, onDebugMessage = () => {
379010
379074
  continue;
379011
379075
  }
379012
379076
  try {
379013
- const stats = await fs84.stat(absolutePath);
379077
+ const stats = await fs83.stat(absolutePath);
379014
379078
  return {
379015
379079
  status: "resolved",
379016
379080
  resolved: {
@@ -379155,7 +379219,7 @@ import path98 from "node:path";
379155
379219
  // packages/core/src/utils/filesearch/ignore.ts
379156
379220
  var import_ignore5 = __toESM(require_ignore(), 1);
379157
379221
  var import_picomatch = __toESM(require_picomatch2(), 1);
379158
- import fs85 from "node:fs";
379222
+ import fs84 from "node:fs";
379159
379223
  var ignore3 = import_ignore5.default.default ?? import_ignore5.default;
379160
379224
  var hasFileExtension = (0, import_picomatch.default)("**/*[*.]*");
379161
379225
  function loadIgnoreRules(service, ignoreDirs = []) {
@@ -379163,7 +379227,7 @@ function loadIgnoreRules(service, ignoreDirs = []) {
379163
379227
  const ignoreFiles = service.getAllIgnoreFilePaths();
379164
379228
  for (const filePath of ignoreFiles) {
379165
379229
  try {
379166
- ignorer.add(fs85.readFileSync(filePath, "utf8"));
379230
+ ignorer.add(fs84.readFileSync(filePath, "utf8"));
379167
379231
  } catch {
379168
379232
  }
379169
379233
  }
@@ -382510,7 +382574,7 @@ function convertToRestPayload(req) {
382510
382574
 
382511
382575
  // packages/core/src/services/FolderTrustDiscoveryService.ts
382512
382576
  var import_strip_json_comments = __toESM(require_strip_json_comments(), 1);
382513
- import * as fs86 from "node:fs/promises";
382577
+ import * as fs85 from "node:fs/promises";
382514
382578
  import * as path99 from "node:path";
382515
382579
  var FolderTrustDiscoveryService = class {
382516
382580
  /**
@@ -382545,7 +382609,7 @@ var FolderTrustDiscoveryService = class {
382545
382609
  const commandsDir = path99.join(geminiDir, "commands");
382546
382610
  if (await this.exists(commandsDir)) {
382547
382611
  try {
382548
- const files = await fs86.readdir(commandsDir, { recursive: true });
382612
+ const files = await fs85.readdir(commandsDir, { recursive: true });
382549
382613
  results.commands = files.filter((f) => f.endsWith(".toml")).map((f) => path99.basename(f, ".toml"));
382550
382614
  } catch (e2) {
382551
382615
  results.discoveryErrors.push(
@@ -382558,7 +382622,7 @@ var FolderTrustDiscoveryService = class {
382558
382622
  const skillsDir = path99.join(geminiDir, "skills");
382559
382623
  if (await this.exists(skillsDir)) {
382560
382624
  try {
382561
- const entries = await fs86.readdir(skillsDir, { withFileTypes: true });
382625
+ const entries = await fs85.readdir(skillsDir, { withFileTypes: true });
382562
382626
  for (const entry of entries) {
382563
382627
  if (entry.isDirectory()) {
382564
382628
  const skillMdPath = path99.join(skillsDir, entry.name, "SKILL.md");
@@ -382578,7 +382642,7 @@ var FolderTrustDiscoveryService = class {
382578
382642
  const agentsDir = path99.join(geminiDir, "agents");
382579
382643
  if (await this.exists(agentsDir)) {
382580
382644
  try {
382581
- const entries = await fs86.readdir(agentsDir, { withFileTypes: true });
382645
+ const entries = await fs85.readdir(agentsDir, { withFileTypes: true });
382582
382646
  for (const entry of entries) {
382583
382647
  if (entry.isFile() && entry.name.endsWith(".md") && !entry.name.startsWith("_")) {
382584
382648
  results.agents.push(path99.basename(entry.name, ".md"));
@@ -382598,7 +382662,7 @@ var FolderTrustDiscoveryService = class {
382598
382662
  const settingsPath = path99.join(geminiDir, "settings.json");
382599
382663
  if (!await this.exists(settingsPath)) return;
382600
382664
  try {
382601
- const content = await fs86.readFile(settingsPath, "utf-8");
382665
+ const content = await fs85.readFile(settingsPath, "utf-8");
382602
382666
  const settings = JSON.parse((0, import_strip_json_comments.default)(content));
382603
382667
  if (!this.isRecord(settings)) {
382604
382668
  debugLogger.debug("Settings must be a JSON object");
@@ -382661,7 +382725,7 @@ var FolderTrustDiscoveryService = class {
382661
382725
  }
382662
382726
  static async exists(filePath) {
382663
382727
  try {
382664
- await fs86.stat(filePath);
382728
+ await fs85.stat(filePath);
382665
382729
  return true;
382666
382730
  } catch (e2) {
382667
382731
  if (isNodeError(e2) && e2.code === "ENOENT") {
@@ -382777,7 +382841,7 @@ var SessionSummaryService = class {
382777
382841
  };
382778
382842
 
382779
382843
  // packages/core/src/services/sessionSummaryUtils.ts
382780
- import fs87 from "node:fs/promises";
382844
+ import fs86 from "node:fs/promises";
382781
382845
  import path100 from "node:path";
382782
382846
  var MIN_MESSAGES_FOR_SUMMARY = 1;
382783
382847
  var MAX_SCRATCHPAD_TOOLS = 6;
@@ -382791,13 +382855,13 @@ function isSupportedSessionFile2(fileName) {
382791
382855
  return fileName.startsWith(SESSION_FILE_PREFIX) && (fileName.endsWith(".json") || fileName.endsWith(".jsonl"));
382792
382856
  }
382793
382857
  async function listSessionFileCandidates(chatsDir) {
382794
- const allFiles = await fs87.readdir(chatsDir);
382858
+ const allFiles = await fs86.readdir(chatsDir);
382795
382859
  const candidates = [];
382796
382860
  for (const fileName of allFiles) {
382797
382861
  if (!isSupportedSessionFile2(fileName)) continue;
382798
382862
  const filePath = path100.join(chatsDir, fileName);
382799
382863
  try {
382800
- const stat14 = await fs87.stat(filePath);
382864
+ const stat14 = await fs86.stat(filePath);
382801
382865
  if (!stat14.isFile()) continue;
382802
382866
  candidates.push({ filePath, mtimeMs: stat14.mtimeMs });
382803
382867
  } catch {
@@ -383055,14 +383119,14 @@ async function generateAndSaveSummary(config2, sessionPath) {
383055
383119
  return;
383056
383120
  }
383057
383121
  if (isJsonl) {
383058
- await fs87.appendFile(
383122
+ await fs86.appendFile(
383059
383123
  sessionPath,
383060
383124
  `${JSON.stringify({ $set: metadataUpdate })}
383061
383125
  `
383062
383126
  );
383063
383127
  } else {
383064
383128
  const lastUpdated = freshConversation.lastUpdated;
383065
- await fs87.writeFile(
383129
+ await fs86.writeFile(
383066
383130
  sessionPath,
383067
383131
  JSON.stringify(
383068
383132
  {
@@ -383083,7 +383147,7 @@ async function getPreviousSession(config2) {
383083
383147
  try {
383084
383148
  const chatsDir = path100.join(config2.storage.getProjectTempDir(), "chats");
383085
383149
  try {
383086
- await fs87.access(chatsDir);
383150
+ await fs86.access(chatsDir);
383087
383151
  } catch {
383088
383152
  debugLogger.debug("[SessionSummary] No chats directory found");
383089
383153
  return null;
@@ -383148,7 +383212,7 @@ async function generateSummary(config2) {
383148
383212
  import * as child_process from "node:child_process";
383149
383213
  import * as process16 from "node:process";
383150
383214
  import * as path101 from "node:path";
383151
- import * as fs88 from "node:fs";
383215
+ import * as fs87 from "node:fs";
383152
383216
  async function findCommand(command, platform12 = process16.platform) {
383153
383217
  try {
383154
383218
  if (platform12 === "win32") {
@@ -383234,7 +383298,7 @@ async function findCommand(command, platform12 = process16.platform) {
383234
383298
  }
383235
383299
  }
383236
383300
  for (const location of locations) {
383237
- if (fs88.existsSync(location)) {
383301
+ if (fs87.existsSync(location)) {
383238
383302
  return location;
383239
383303
  }
383240
383304
  }
@@ -384620,8 +384684,8 @@ function getCompatibilityWarnings(options) {
384620
384684
 
384621
384685
  // packages/core/src/services/worktreeService.ts
384622
384686
  import * as path108 from "node:path";
384623
- import * as fs89 from "node:fs/promises";
384624
- import { realpathSync as realpathSync6 } from "node:fs";
384687
+ import * as fs88 from "node:fs/promises";
384688
+ import { realpathSync as realpathSync5 } from "node:fs";
384625
384689
 
384626
384690
  // node_modules/is-plain-obj/index.js
384627
384691
  function isPlainObject3(value) {
@@ -391492,8 +391556,8 @@ async function createWorktree(projectRoot, name3) {
391492
391556
  }
391493
391557
  function isGeminiWorktree(dirPath, projectRoot) {
391494
391558
  try {
391495
- const realDirPath = realpathSync6(dirPath);
391496
- const realProjectRoot = realpathSync6(projectRoot);
391559
+ const realDirPath = realpathSync5(dirPath);
391560
+ const realProjectRoot = realpathSync5(projectRoot);
391497
391561
  const worktreesBaseDir = path108.join(realProjectRoot, ".gemini", "worktrees");
391498
391562
  const relative12 = path108.relative(worktreesBaseDir, realDirPath);
391499
391563
  return !relative12.startsWith("..") && !path108.isAbsolute(relative12);
@@ -391527,7 +391591,7 @@ async function hasWorktreeChanges(dirPath, baseSha) {
391527
391591
  }
391528
391592
  async function cleanupWorktree(dirPath, projectRoot) {
391529
391593
  try {
391530
- await fs89.access(dirPath);
391594
+ await fs88.access(dirPath);
391531
391595
  } catch {
391532
391596
  return;
391533
391597
  }
@@ -391660,7 +391724,7 @@ var generalistProfile2 = {
391660
391724
  // packages/core/src/utils/trust.ts
391661
391725
  var import_proper_lockfile2 = __toESM(require_proper_lockfile(), 1);
391662
391726
  var import_strip_json_comments2 = __toESM(require_strip_json_comments(), 1);
391663
- import * as fs90 from "node:fs";
391727
+ import * as fs89 from "node:fs";
391664
391728
  import * as path109 from "node:path";
391665
391729
  import * as crypto23 from "node:crypto";
391666
391730
  var TrustLevel = /* @__PURE__ */ ((TrustLevel2) => {
@@ -391715,7 +391779,7 @@ function getRealPath2(location) {
391715
391779
  return realPath;
391716
391780
  }
391717
391781
  try {
391718
- realPath = fs90.existsSync(location) ? fs90.realpathSync(location) : location;
391782
+ realPath = fs89.existsSync(location) ? fs89.realpathSync(location) : location;
391719
391783
  } catch {
391720
391784
  realPath = location;
391721
391785
  }
@@ -391775,11 +391839,11 @@ Please fix the file manually before trying to update it.`
391775
391839
  );
391776
391840
  }
391777
391841
  const dirPath = path109.dirname(this.user.path);
391778
- if (!fs90.existsSync(dirPath)) {
391779
- await fs90.promises.mkdir(dirPath, { recursive: true });
391842
+ if (!fs89.existsSync(dirPath)) {
391843
+ await fs89.promises.mkdir(dirPath, { recursive: true });
391780
391844
  }
391781
- if (!fs90.existsSync(this.user.path)) {
391782
- await fs90.promises.writeFile(this.user.path, JSON.stringify({}, null, 2), {
391845
+ if (!fs89.existsSync(this.user.path)) {
391846
+ await fs89.promises.writeFile(this.user.path, JSON.stringify({}, null, 2), {
391783
391847
  // Restrict file access to read/write for the owner only
391784
391848
  mode: 384
391785
391849
  });
@@ -391793,7 +391857,7 @@ Please fix the file manually before trying to update it.`
391793
391857
  const normalizedPath = normalizePath(folderPath);
391794
391858
  const originalTrustLevel = this.user.config[normalizedPath];
391795
391859
  try {
391796
- const content = await fs90.promises.readFile(this.user.path, "utf-8");
391860
+ const content = await fs89.promises.readFile(this.user.path, "utf-8");
391797
391861
  const config2 = {};
391798
391862
  try {
391799
391863
  const parsed = parseTrustedFoldersJson(content);
@@ -391841,8 +391905,8 @@ function loadTrustedFolders() {
391841
391905
  const userConfig = {};
391842
391906
  const userPath = Storage.getTrustedFoldersPath();
391843
391907
  try {
391844
- if (fs90.existsSync(userPath)) {
391845
- const content = fs90.readFileSync(userPath, "utf-8");
391908
+ if (fs89.existsSync(userPath)) {
391909
+ const content = fs89.readFileSync(userPath, "utf-8");
391846
391910
  const parsed = parseTrustedFoldersJson(content);
391847
391911
  if (!isRecord2(parsed)) {
391848
391912
  errors.push({
@@ -391878,22 +391942,22 @@ function loadTrustedFolders() {
391878
391942
  }
391879
391943
  function saveTrustedFolders(trustedFoldersFile) {
391880
391944
  const dirPath = path109.dirname(trustedFoldersFile.path);
391881
- if (!fs90.existsSync(dirPath)) {
391882
- fs90.mkdirSync(dirPath, { recursive: true });
391945
+ if (!fs89.existsSync(dirPath)) {
391946
+ fs89.mkdirSync(dirPath, { recursive: true });
391883
391947
  }
391884
391948
  const content = JSON.stringify(trustedFoldersFile.config, null, 2);
391885
391949
  const tempPath = `${trustedFoldersFile.path}.tmp.${crypto23.randomUUID()}`;
391886
391950
  try {
391887
- fs90.writeFileSync(tempPath, content, {
391951
+ fs89.writeFileSync(tempPath, content, {
391888
391952
  encoding: "utf-8",
391889
391953
  // Restrict file access to read/write for the owner only
391890
391954
  mode: 384
391891
391955
  });
391892
- fs90.renameSync(tempPath, trustedFoldersFile.path);
391956
+ fs89.renameSync(tempPath, trustedFoldersFile.path);
391893
391957
  } catch (error40) {
391894
- if (fs90.existsSync(tempPath)) {
391958
+ if (fs89.existsSync(tempPath)) {
391895
391959
  try {
391896
- fs90.unlinkSync(tempPath);
391960
+ fs89.unlinkSync(tempPath);
391897
391961
  } catch {
391898
391962
  }
391899
391963
  }
@@ -392248,14 +392312,14 @@ var WhisperTranscriptionProvider = class _WhisperTranscriptionProvider extends E
392248
392312
 
392249
392313
  // packages/core/src/voice/transcriptionFactory.ts
392250
392314
  import * as path110 from "node:path";
392251
- import * as fs91 from "node:fs";
392315
+ import * as fs90 from "node:fs";
392252
392316
  var TranscriptionFactory = class {
392253
392317
  static createProvider(voiceConfig, apiKey) {
392254
392318
  const backend = voiceConfig?.backend ?? "gemini-live";
392255
392319
  if (backend === "whisper") {
392256
392320
  const modelsDir = path110.join(homedir(), GEMINI_DIR, "whisper_models");
392257
- if (!fs91.existsSync(modelsDir)) {
392258
- fs91.mkdirSync(modelsDir, { recursive: true });
392321
+ if (!fs90.existsSync(modelsDir)) {
392322
+ fs90.mkdirSync(modelsDir, { recursive: true });
392259
392323
  }
392260
392324
  const modelName = voiceConfig?.whisperModel ?? "ggml-base.en.bin";
392261
392325
  const modelPath = path110.join(modelsDir, modelName);
@@ -392272,7 +392336,7 @@ var TranscriptionFactory = class {
392272
392336
 
392273
392337
  // packages/core/src/voice/whisperModelManager.ts
392274
392338
  import * as path111 from "node:path";
392275
- import * as fs92 from "node:fs";
392339
+ import * as fs91 from "node:fs";
392276
392340
  import { EventEmitter as EventEmitter14 } from "node:events";
392277
392341
  var ALLOWED_MODELS = [
392278
392342
  "ggml-tiny.en.bin",
@@ -392288,7 +392352,7 @@ var WhisperModelManager = class extends EventEmitter14 {
392288
392352
  }
392289
392353
  isModelInstalled(modelName) {
392290
392354
  this.validateModelName(modelName);
392291
- return fs92.existsSync(path111.join(this.modelsDir, modelName));
392355
+ return fs91.existsSync(path111.join(this.modelsDir, modelName));
392292
392356
  }
392293
392357
  getModelPath(modelName) {
392294
392358
  this.validateModelName(modelName);
@@ -392296,8 +392360,8 @@ var WhisperModelManager = class extends EventEmitter14 {
392296
392360
  }
392297
392361
  async downloadModel(modelName) {
392298
392362
  this.validateModelName(modelName);
392299
- if (!fs92.existsSync(this.modelsDir)) {
392300
- fs92.mkdirSync(this.modelsDir, { recursive: true });
392363
+ if (!fs91.existsSync(this.modelsDir)) {
392364
+ fs91.mkdirSync(this.modelsDir, { recursive: true });
392301
392365
  }
392302
392366
  const destination = path111.join(this.modelsDir, modelName);
392303
392367
  const url3 = `https://huggingface.co/ggerganov/whisper.cpp/resolve/main/${modelName}`;
@@ -392314,7 +392378,7 @@ var WhisperModelManager = class extends EventEmitter14 {
392314
392378
  if (!reader) {
392315
392379
  throw new Error("Response body is not readable");
392316
392380
  }
392317
- const writer = fs92.createWriteStream(destination);
392381
+ const writer = fs91.createWriteStream(destination);
392318
392382
  try {
392319
392383
  while (true) {
392320
392384
  const { done, value } = await reader.read();
@@ -392375,7 +392439,7 @@ function makeFakeConfig(config2 = {
392375
392439
  }
392376
392440
 
392377
392441
  // packages/core/src/utils/pathReader.ts
392378
- import { promises as fs93 } from "node:fs";
392442
+ import { promises as fs92 } from "node:fs";
392379
392443
  import path112 from "node:path";
392380
392444
  async function readPathFromWorkspace(pathStr, config2) {
392381
392445
  const workspace = config2.getWorkspaceContext();
@@ -392396,7 +392460,7 @@ async function readPathFromWorkspace(pathStr, config2) {
392396
392460
  continue;
392397
392461
  }
392398
392462
  try {
392399
- await fs93.access(potentialPath);
392463
+ await fs92.access(potentialPath);
392400
392464
  absolutePath = potentialPath;
392401
392465
  break;
392402
392466
  } catch {
@@ -392406,7 +392470,7 @@ async function readPathFromWorkspace(pathStr, config2) {
392406
392470
  if (!absolutePath) {
392407
392471
  throw new Error(`Path not found in workspace: ${pathStr}`);
392408
392472
  }
392409
- const stats = await fs93.stat(absolutePath);
392473
+ const stats = await fs92.stat(absolutePath);
392410
392474
  if (stats.isDirectory()) {
392411
392475
  const allParts = [];
392412
392476
  allParts.push({