aws-cdk 2.1132.0 → 2.1133.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -3695,7 +3695,7 @@ var require_semver2 = __commonJS({
3695
3695
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
3696
3696
  var require_cli_version = __commonJS({
3697
3697
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
3698
- module2.exports = { version: "2.1132.0" };
3698
+ module2.exports = { version: "2.1133.0" };
3699
3699
  }
3700
3700
  });
3701
3701
 
@@ -8429,54 +8429,54 @@ var require_polyfills = __commonJS({
8429
8429
  }
8430
8430
  var chdir;
8431
8431
  module2.exports = patch;
8432
- function patch(fs57) {
8432
+ function patch(fs58) {
8433
8433
  if (constants3.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
8434
- patchLchmod(fs57);
8435
- }
8436
- if (!fs57.lutimes) {
8437
- patchLutimes(fs57);
8438
- }
8439
- fs57.chown = chownFix(fs57.chown);
8440
- fs57.fchown = chownFix(fs57.fchown);
8441
- fs57.lchown = chownFix(fs57.lchown);
8442
- fs57.chmod = chmodFix(fs57.chmod);
8443
- fs57.fchmod = chmodFix(fs57.fchmod);
8444
- fs57.lchmod = chmodFix(fs57.lchmod);
8445
- fs57.chownSync = chownFixSync(fs57.chownSync);
8446
- fs57.fchownSync = chownFixSync(fs57.fchownSync);
8447
- fs57.lchownSync = chownFixSync(fs57.lchownSync);
8448
- fs57.chmodSync = chmodFixSync(fs57.chmodSync);
8449
- fs57.fchmodSync = chmodFixSync(fs57.fchmodSync);
8450
- fs57.lchmodSync = chmodFixSync(fs57.lchmodSync);
8451
- fs57.stat = statFix(fs57.stat);
8452
- fs57.fstat = statFix(fs57.fstat);
8453
- fs57.lstat = statFix(fs57.lstat);
8454
- fs57.statSync = statFixSync(fs57.statSync);
8455
- fs57.fstatSync = statFixSync(fs57.fstatSync);
8456
- fs57.lstatSync = statFixSync(fs57.lstatSync);
8457
- if (fs57.chmod && !fs57.lchmod) {
8458
- fs57.lchmod = function(path54, mode, cb) {
8434
+ patchLchmod(fs58);
8435
+ }
8436
+ if (!fs58.lutimes) {
8437
+ patchLutimes(fs58);
8438
+ }
8439
+ fs58.chown = chownFix(fs58.chown);
8440
+ fs58.fchown = chownFix(fs58.fchown);
8441
+ fs58.lchown = chownFix(fs58.lchown);
8442
+ fs58.chmod = chmodFix(fs58.chmod);
8443
+ fs58.fchmod = chmodFix(fs58.fchmod);
8444
+ fs58.lchmod = chmodFix(fs58.lchmod);
8445
+ fs58.chownSync = chownFixSync(fs58.chownSync);
8446
+ fs58.fchownSync = chownFixSync(fs58.fchownSync);
8447
+ fs58.lchownSync = chownFixSync(fs58.lchownSync);
8448
+ fs58.chmodSync = chmodFixSync(fs58.chmodSync);
8449
+ fs58.fchmodSync = chmodFixSync(fs58.fchmodSync);
8450
+ fs58.lchmodSync = chmodFixSync(fs58.lchmodSync);
8451
+ fs58.stat = statFix(fs58.stat);
8452
+ fs58.fstat = statFix(fs58.fstat);
8453
+ fs58.lstat = statFix(fs58.lstat);
8454
+ fs58.statSync = statFixSync(fs58.statSync);
8455
+ fs58.fstatSync = statFixSync(fs58.fstatSync);
8456
+ fs58.lstatSync = statFixSync(fs58.lstatSync);
8457
+ if (fs58.chmod && !fs58.lchmod) {
8458
+ fs58.lchmod = function(path54, mode, cb) {
8459
8459
  if (cb) process.nextTick(cb);
8460
8460
  };
8461
- fs57.lchmodSync = function() {
8461
+ fs58.lchmodSync = function() {
8462
8462
  };
8463
8463
  }
8464
- if (fs57.chown && !fs57.lchown) {
8465
- fs57.lchown = function(path54, uid, gid, cb) {
8464
+ if (fs58.chown && !fs58.lchown) {
8465
+ fs58.lchown = function(path54, uid, gid, cb) {
8466
8466
  if (cb) process.nextTick(cb);
8467
8467
  };
8468
- fs57.lchownSync = function() {
8468
+ fs58.lchownSync = function() {
8469
8469
  };
8470
8470
  }
8471
8471
  if (platform5 === "win32") {
8472
- fs57.rename = typeof fs57.rename !== "function" ? fs57.rename : (function(fs$rename) {
8472
+ fs58.rename = typeof fs58.rename !== "function" ? fs58.rename : (function(fs$rename) {
8473
8473
  function rename(from, to, cb) {
8474
8474
  var start = Date.now();
8475
8475
  var backoff = 0;
8476
8476
  fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
8477
8477
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
8478
8478
  setTimeout(function() {
8479
- fs57.stat(to, function(stater, st) {
8479
+ fs58.stat(to, function(stater, st) {
8480
8480
  if (stater && stater.code === "ENOENT")
8481
8481
  fs$rename(from, to, CB);
8482
8482
  else
@@ -8493,9 +8493,9 @@ var require_polyfills = __commonJS({
8493
8493
  __name(rename, "rename");
8494
8494
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
8495
8495
  return rename;
8496
- })(fs57.rename);
8496
+ })(fs58.rename);
8497
8497
  }
8498
- fs57.read = typeof fs57.read !== "function" ? fs57.read : (function(fs$read) {
8498
+ fs58.read = typeof fs58.read !== "function" ? fs58.read : (function(fs$read) {
8499
8499
  function read(fd, buffer, offset, length, position, callback_) {
8500
8500
  var callback;
8501
8501
  if (callback_ && typeof callback_ === "function") {
@@ -8503,23 +8503,23 @@ var require_polyfills = __commonJS({
8503
8503
  callback = /* @__PURE__ */ __name(function(er, _, __) {
8504
8504
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
8505
8505
  eagCounter++;
8506
- return fs$read.call(fs57, fd, buffer, offset, length, position, callback);
8506
+ return fs$read.call(fs58, fd, buffer, offset, length, position, callback);
8507
8507
  }
8508
8508
  callback_.apply(this, arguments);
8509
8509
  }, "callback");
8510
8510
  }
8511
- return fs$read.call(fs57, fd, buffer, offset, length, position, callback);
8511
+ return fs$read.call(fs58, fd, buffer, offset, length, position, callback);
8512
8512
  }
8513
8513
  __name(read, "read");
8514
8514
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
8515
8515
  return read;
8516
- })(fs57.read);
8517
- fs57.readSync = typeof fs57.readSync !== "function" ? fs57.readSync : /* @__PURE__ */ (function(fs$readSync) {
8516
+ })(fs58.read);
8517
+ fs58.readSync = typeof fs58.readSync !== "function" ? fs58.readSync : /* @__PURE__ */ (function(fs$readSync) {
8518
8518
  return function(fd, buffer, offset, length, position) {
8519
8519
  var eagCounter = 0;
8520
8520
  while (true) {
8521
8521
  try {
8522
- return fs$readSync.call(fs57, fd, buffer, offset, length, position);
8522
+ return fs$readSync.call(fs58, fd, buffer, offset, length, position);
8523
8523
  } catch (er) {
8524
8524
  if (er.code === "EAGAIN" && eagCounter < 10) {
8525
8525
  eagCounter++;
@@ -8529,10 +8529,10 @@ var require_polyfills = __commonJS({
8529
8529
  }
8530
8530
  }
8531
8531
  };
8532
- })(fs57.readSync);
8533
- function patchLchmod(fs58) {
8534
- fs58.lchmod = function(path54, mode, callback) {
8535
- fs58.open(
8532
+ })(fs58.readSync);
8533
+ function patchLchmod(fs59) {
8534
+ fs59.lchmod = function(path54, mode, callback) {
8535
+ fs59.open(
8536
8536
  path54,
8537
8537
  constants3.O_WRONLY | constants3.O_SYMLINK,
8538
8538
  mode,
@@ -8541,74 +8541,74 @@ var require_polyfills = __commonJS({
8541
8541
  if (callback) callback(err);
8542
8542
  return;
8543
8543
  }
8544
- fs58.fchmod(fd, mode, function(err2) {
8545
- fs58.close(fd, function(err22) {
8544
+ fs59.fchmod(fd, mode, function(err2) {
8545
+ fs59.close(fd, function(err22) {
8546
8546
  if (callback) callback(err2 || err22);
8547
8547
  });
8548
8548
  });
8549
8549
  }
8550
8550
  );
8551
8551
  };
8552
- fs58.lchmodSync = function(path54, mode) {
8553
- var fd = fs58.openSync(path54, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
8552
+ fs59.lchmodSync = function(path54, mode) {
8553
+ var fd = fs59.openSync(path54, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
8554
8554
  var threw = true;
8555
8555
  var ret;
8556
8556
  try {
8557
- ret = fs58.fchmodSync(fd, mode);
8557
+ ret = fs59.fchmodSync(fd, mode);
8558
8558
  threw = false;
8559
8559
  } finally {
8560
8560
  if (threw) {
8561
8561
  try {
8562
- fs58.closeSync(fd);
8562
+ fs59.closeSync(fd);
8563
8563
  } catch (er) {
8564
8564
  }
8565
8565
  } else {
8566
- fs58.closeSync(fd);
8566
+ fs59.closeSync(fd);
8567
8567
  }
8568
8568
  }
8569
8569
  return ret;
8570
8570
  };
8571
8571
  }
8572
8572
  __name(patchLchmod, "patchLchmod");
8573
- function patchLutimes(fs58) {
8574
- if (constants3.hasOwnProperty("O_SYMLINK") && fs58.futimes) {
8575
- fs58.lutimes = function(path54, at, mt, cb) {
8576
- fs58.open(path54, constants3.O_SYMLINK, function(er, fd) {
8573
+ function patchLutimes(fs59) {
8574
+ if (constants3.hasOwnProperty("O_SYMLINK") && fs59.futimes) {
8575
+ fs59.lutimes = function(path54, at, mt, cb) {
8576
+ fs59.open(path54, constants3.O_SYMLINK, function(er, fd) {
8577
8577
  if (er) {
8578
8578
  if (cb) cb(er);
8579
8579
  return;
8580
8580
  }
8581
- fs58.futimes(fd, at, mt, function(er2) {
8582
- fs58.close(fd, function(er22) {
8581
+ fs59.futimes(fd, at, mt, function(er2) {
8582
+ fs59.close(fd, function(er22) {
8583
8583
  if (cb) cb(er2 || er22);
8584
8584
  });
8585
8585
  });
8586
8586
  });
8587
8587
  };
8588
- fs58.lutimesSync = function(path54, at, mt) {
8589
- var fd = fs58.openSync(path54, constants3.O_SYMLINK);
8588
+ fs59.lutimesSync = function(path54, at, mt) {
8589
+ var fd = fs59.openSync(path54, constants3.O_SYMLINK);
8590
8590
  var ret;
8591
8591
  var threw = true;
8592
8592
  try {
8593
- ret = fs58.futimesSync(fd, at, mt);
8593
+ ret = fs59.futimesSync(fd, at, mt);
8594
8594
  threw = false;
8595
8595
  } finally {
8596
8596
  if (threw) {
8597
8597
  try {
8598
- fs58.closeSync(fd);
8598
+ fs59.closeSync(fd);
8599
8599
  } catch (er) {
8600
8600
  }
8601
8601
  } else {
8602
- fs58.closeSync(fd);
8602
+ fs59.closeSync(fd);
8603
8603
  }
8604
8604
  }
8605
8605
  return ret;
8606
8606
  };
8607
- } else if (fs58.futimes) {
8608
- fs58.lutimes = function(_a2, _b, _c6, cb) {
8607
+ } else if (fs59.futimes) {
8608
+ fs59.lutimes = function(_a2, _b, _c6, cb) {
8609
8609
  if (cb) process.nextTick(cb);
8610
8610
  };
8611
- fs58.lutimesSync = function() {
8611
+ fs59.lutimesSync = function() {
8612
8612
  };
8613
8613
  }
8614
8614
  }
@@ -8616,7 +8616,7 @@ var require_polyfills = __commonJS({
8616
8616
  function chmodFix(orig) {
8617
8617
  if (!orig) return orig;
8618
8618
  return function(target, mode, cb) {
8619
- return orig.call(fs57, target, mode, function(er) {
8619
+ return orig.call(fs58, target, mode, function(er) {
8620
8620
  if (chownErOk(er)) er = null;
8621
8621
  if (cb) cb.apply(this, arguments);
8622
8622
  });
@@ -8627,7 +8627,7 @@ var require_polyfills = __commonJS({
8627
8627
  if (!orig) return orig;
8628
8628
  return function(target, mode) {
8629
8629
  try {
8630
- return orig.call(fs57, target, mode);
8630
+ return orig.call(fs58, target, mode);
8631
8631
  } catch (er) {
8632
8632
  if (!chownErOk(er)) throw er;
8633
8633
  }
@@ -8637,7 +8637,7 @@ var require_polyfills = __commonJS({
8637
8637
  function chownFix(orig) {
8638
8638
  if (!orig) return orig;
8639
8639
  return function(target, uid, gid, cb) {
8640
- return orig.call(fs57, target, uid, gid, function(er) {
8640
+ return orig.call(fs58, target, uid, gid, function(er) {
8641
8641
  if (chownErOk(er)) er = null;
8642
8642
  if (cb) cb.apply(this, arguments);
8643
8643
  });
@@ -8648,7 +8648,7 @@ var require_polyfills = __commonJS({
8648
8648
  if (!orig) return orig;
8649
8649
  return function(target, uid, gid) {
8650
8650
  try {
8651
- return orig.call(fs57, target, uid, gid);
8651
+ return orig.call(fs58, target, uid, gid);
8652
8652
  } catch (er) {
8653
8653
  if (!chownErOk(er)) throw er;
8654
8654
  }
@@ -8670,14 +8670,14 @@ var require_polyfills = __commonJS({
8670
8670
  if (cb) cb.apply(this, arguments);
8671
8671
  }
8672
8672
  __name(callback, "callback");
8673
- return options ? orig.call(fs57, target, options, callback) : orig.call(fs57, target, callback);
8673
+ return options ? orig.call(fs58, target, options, callback) : orig.call(fs58, target, callback);
8674
8674
  };
8675
8675
  }
8676
8676
  __name(statFix, "statFix");
8677
8677
  function statFixSync(orig) {
8678
8678
  if (!orig) return orig;
8679
8679
  return function(target, options) {
8680
- var stats = options ? orig.call(fs57, target, options) : orig.call(fs57, target);
8680
+ var stats = options ? orig.call(fs58, target, options) : orig.call(fs58, target);
8681
8681
  if (stats) {
8682
8682
  if (stats.uid < 0) stats.uid += 4294967296;
8683
8683
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -8709,7 +8709,7 @@ var require_legacy_streams = __commonJS({
8709
8709
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
8710
8710
  var Stream = require("stream").Stream;
8711
8711
  module2.exports = legacy;
8712
- function legacy(fs57) {
8712
+ function legacy(fs58) {
8713
8713
  return {
8714
8714
  ReadStream: ReadStream2,
8715
8715
  WriteStream
@@ -8752,7 +8752,7 @@ var require_legacy_streams = __commonJS({
8752
8752
  });
8753
8753
  return;
8754
8754
  }
8755
- fs57.open(this.path, this.flags, this.mode, function(err, fd) {
8755
+ fs58.open(this.path, this.flags, this.mode, function(err, fd) {
8756
8756
  if (err) {
8757
8757
  self2.emit("error", err);
8758
8758
  self2.readable = false;
@@ -8792,7 +8792,7 @@ var require_legacy_streams = __commonJS({
8792
8792
  this.busy = false;
8793
8793
  this._queue = [];
8794
8794
  if (this.fd === null) {
8795
- this._open = fs57.open;
8795
+ this._open = fs58.open;
8796
8796
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
8797
8797
  this.flush();
8798
8798
  }
@@ -8830,7 +8830,7 @@ var require_clone = __commonJS({
8830
8830
  // ../../node_modules/graceful-fs/graceful-fs.js
8831
8831
  var require_graceful_fs = __commonJS({
8832
8832
  "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
8833
- var fs57 = require("fs");
8833
+ var fs58 = require("fs");
8834
8834
  var polyfills = require_polyfills();
8835
8835
  var legacy = require_legacy_streams();
8836
8836
  var clone = require_clone();
@@ -8864,12 +8864,12 @@ var require_graceful_fs = __commonJS({
8864
8864
  m4 = "GFS4: " + m4.split(/\n/).join("\nGFS4: ");
8865
8865
  console.error(m4);
8866
8866
  }, "debug");
8867
- if (!fs57[gracefulQueue]) {
8867
+ if (!fs58[gracefulQueue]) {
8868
8868
  queue = global[gracefulQueue] || [];
8869
- publishQueue(fs57, queue);
8870
- fs57.close = (function(fs$close) {
8869
+ publishQueue(fs58, queue);
8870
+ fs58.close = (function(fs$close) {
8871
8871
  function close(fd, cb) {
8872
- return fs$close.call(fs57, fd, function(err) {
8872
+ return fs$close.call(fs58, fd, function(err) {
8873
8873
  if (!err) {
8874
8874
  resetQueue();
8875
8875
  }
@@ -8882,10 +8882,10 @@ var require_graceful_fs = __commonJS({
8882
8882
  value: fs$close
8883
8883
  });
8884
8884
  return close;
8885
- })(fs57.close);
8886
- fs57.closeSync = (function(fs$closeSync) {
8885
+ })(fs58.close);
8886
+ fs58.closeSync = (function(fs$closeSync) {
8887
8887
  function closeSync(fd) {
8888
- fs$closeSync.apply(fs57, arguments);
8888
+ fs$closeSync.apply(fs58, arguments);
8889
8889
  resetQueue();
8890
8890
  }
8891
8891
  __name(closeSync, "closeSync");
@@ -8893,31 +8893,31 @@ var require_graceful_fs = __commonJS({
8893
8893
  value: fs$closeSync
8894
8894
  });
8895
8895
  return closeSync;
8896
- })(fs57.closeSync);
8896
+ })(fs58.closeSync);
8897
8897
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
8898
8898
  process.on("exit", function() {
8899
- debug2(fs57[gracefulQueue]);
8900
- require("assert").equal(fs57[gracefulQueue].length, 0);
8899
+ debug2(fs58[gracefulQueue]);
8900
+ require("assert").equal(fs58[gracefulQueue].length, 0);
8901
8901
  });
8902
8902
  }
8903
8903
  }
8904
8904
  var queue;
8905
8905
  if (!global[gracefulQueue]) {
8906
- publishQueue(global, fs57[gracefulQueue]);
8907
- }
8908
- module2.exports = patch(clone(fs57));
8909
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs57.__patched) {
8910
- module2.exports = patch(fs57);
8911
- fs57.__patched = true;
8912
- }
8913
- function patch(fs58) {
8914
- polyfills(fs58);
8915
- fs58.gracefulify = patch;
8916
- fs58.createReadStream = createReadStream3;
8917
- fs58.createWriteStream = createWriteStream;
8918
- var fs$readFile = fs58.readFile;
8919
- fs58.readFile = readFile11;
8920
- function readFile11(path54, options, cb) {
8906
+ publishQueue(global, fs58[gracefulQueue]);
8907
+ }
8908
+ module2.exports = patch(clone(fs58));
8909
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs58.__patched) {
8910
+ module2.exports = patch(fs58);
8911
+ fs58.__patched = true;
8912
+ }
8913
+ function patch(fs59) {
8914
+ polyfills(fs59);
8915
+ fs59.gracefulify = patch;
8916
+ fs59.createReadStream = createReadStream3;
8917
+ fs59.createWriteStream = createWriteStream;
8918
+ var fs$readFile = fs59.readFile;
8919
+ fs59.readFile = readFile12;
8920
+ function readFile12(path54, options, cb) {
8921
8921
  if (typeof options === "function")
8922
8922
  cb = options, options = null;
8923
8923
  return go$readFile(path54, options, cb);
@@ -8933,9 +8933,9 @@ var require_graceful_fs = __commonJS({
8933
8933
  }
8934
8934
  __name(go$readFile, "go$readFile");
8935
8935
  }
8936
- __name(readFile11, "readFile");
8937
- var fs$writeFile = fs58.writeFile;
8938
- fs58.writeFile = writeFile6;
8936
+ __name(readFile12, "readFile");
8937
+ var fs$writeFile = fs59.writeFile;
8938
+ fs59.writeFile = writeFile6;
8939
8939
  function writeFile6(path54, data2, options, cb) {
8940
8940
  if (typeof options === "function")
8941
8941
  cb = options, options = null;
@@ -8953,9 +8953,9 @@ var require_graceful_fs = __commonJS({
8953
8953
  __name(go$writeFile, "go$writeFile");
8954
8954
  }
8955
8955
  __name(writeFile6, "writeFile");
8956
- var fs$appendFile = fs58.appendFile;
8956
+ var fs$appendFile = fs59.appendFile;
8957
8957
  if (fs$appendFile)
8958
- fs58.appendFile = appendFile;
8958
+ fs59.appendFile = appendFile;
8959
8959
  function appendFile(path54, data2, options, cb) {
8960
8960
  if (typeof options === "function")
8961
8961
  cb = options, options = null;
@@ -8973,9 +8973,9 @@ var require_graceful_fs = __commonJS({
8973
8973
  __name(go$appendFile, "go$appendFile");
8974
8974
  }
8975
8975
  __name(appendFile, "appendFile");
8976
- var fs$copyFile = fs58.copyFile;
8976
+ var fs$copyFile = fs59.copyFile;
8977
8977
  if (fs$copyFile)
8978
- fs58.copyFile = copyFile;
8978
+ fs59.copyFile = copyFile;
8979
8979
  function copyFile(src, dest, flags, cb) {
8980
8980
  if (typeof flags === "function") {
8981
8981
  cb = flags;
@@ -8995,8 +8995,8 @@ var require_graceful_fs = __commonJS({
8995
8995
  __name(go$copyFile, "go$copyFile");
8996
8996
  }
8997
8997
  __name(copyFile, "copyFile");
8998
- var fs$readdir = fs58.readdir;
8999
- fs58.readdir = readdir5;
8998
+ var fs$readdir = fs59.readdir;
8999
+ fs59.readdir = readdir5;
9000
9000
  var noReaddirOptionVersions = /^v[0-5]\./;
9001
9001
  function readdir5(path54, options, cb) {
9002
9002
  if (typeof options === "function")
@@ -9039,21 +9039,21 @@ var require_graceful_fs = __commonJS({
9039
9039
  }
9040
9040
  __name(readdir5, "readdir");
9041
9041
  if (process.version.substr(0, 4) === "v0.8") {
9042
- var legStreams = legacy(fs58);
9042
+ var legStreams = legacy(fs59);
9043
9043
  ReadStream2 = legStreams.ReadStream;
9044
9044
  WriteStream = legStreams.WriteStream;
9045
9045
  }
9046
- var fs$ReadStream = fs58.ReadStream;
9046
+ var fs$ReadStream = fs59.ReadStream;
9047
9047
  if (fs$ReadStream) {
9048
9048
  ReadStream2.prototype = Object.create(fs$ReadStream.prototype);
9049
9049
  ReadStream2.prototype.open = ReadStream$open;
9050
9050
  }
9051
- var fs$WriteStream = fs58.WriteStream;
9051
+ var fs$WriteStream = fs59.WriteStream;
9052
9052
  if (fs$WriteStream) {
9053
9053
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
9054
9054
  WriteStream.prototype.open = WriteStream$open;
9055
9055
  }
9056
- Object.defineProperty(fs58, "ReadStream", {
9056
+ Object.defineProperty(fs59, "ReadStream", {
9057
9057
  get: /* @__PURE__ */ __name(function() {
9058
9058
  return ReadStream2;
9059
9059
  }, "get"),
@@ -9063,7 +9063,7 @@ var require_graceful_fs = __commonJS({
9063
9063
  enumerable: true,
9064
9064
  configurable: true
9065
9065
  });
9066
- Object.defineProperty(fs58, "WriteStream", {
9066
+ Object.defineProperty(fs59, "WriteStream", {
9067
9067
  get: /* @__PURE__ */ __name(function() {
9068
9068
  return WriteStream;
9069
9069
  }, "get"),
@@ -9074,7 +9074,7 @@ var require_graceful_fs = __commonJS({
9074
9074
  configurable: true
9075
9075
  });
9076
9076
  var FileReadStream = ReadStream2;
9077
- Object.defineProperty(fs58, "FileReadStream", {
9077
+ Object.defineProperty(fs59, "FileReadStream", {
9078
9078
  get: /* @__PURE__ */ __name(function() {
9079
9079
  return FileReadStream;
9080
9080
  }, "get"),
@@ -9085,7 +9085,7 @@ var require_graceful_fs = __commonJS({
9085
9085
  configurable: true
9086
9086
  });
9087
9087
  var FileWriteStream = WriteStream;
9088
- Object.defineProperty(fs58, "FileWriteStream", {
9088
+ Object.defineProperty(fs59, "FileWriteStream", {
9089
9089
  get: /* @__PURE__ */ __name(function() {
9090
9090
  return FileWriteStream;
9091
9091
  }, "get"),
@@ -9138,15 +9138,15 @@ var require_graceful_fs = __commonJS({
9138
9138
  }
9139
9139
  __name(WriteStream$open, "WriteStream$open");
9140
9140
  function createReadStream3(path54, options) {
9141
- return new fs58.ReadStream(path54, options);
9141
+ return new fs59.ReadStream(path54, options);
9142
9142
  }
9143
9143
  __name(createReadStream3, "createReadStream");
9144
9144
  function createWriteStream(path54, options) {
9145
- return new fs58.WriteStream(path54, options);
9145
+ return new fs59.WriteStream(path54, options);
9146
9146
  }
9147
9147
  __name(createWriteStream, "createWriteStream");
9148
- var fs$open = fs58.open;
9149
- fs58.open = open2;
9148
+ var fs$open = fs59.open;
9149
+ fs59.open = open2;
9150
9150
  function open2(path54, flags, mode, cb) {
9151
9151
  if (typeof mode === "function")
9152
9152
  cb = mode, mode = null;
@@ -9164,22 +9164,22 @@ var require_graceful_fs = __commonJS({
9164
9164
  __name(go$open, "go$open");
9165
9165
  }
9166
9166
  __name(open2, "open");
9167
- return fs58;
9167
+ return fs59;
9168
9168
  }
9169
9169
  __name(patch, "patch");
9170
9170
  function enqueue(elem) {
9171
9171
  debug2("ENQUEUE", elem[0].name, elem[1]);
9172
- fs57[gracefulQueue].push(elem);
9172
+ fs58[gracefulQueue].push(elem);
9173
9173
  retry();
9174
9174
  }
9175
9175
  __name(enqueue, "enqueue");
9176
9176
  var retryTimer;
9177
9177
  function resetQueue() {
9178
9178
  var now = Date.now();
9179
- for (var i6 = 0; i6 < fs57[gracefulQueue].length; ++i6) {
9180
- if (fs57[gracefulQueue][i6].length > 2) {
9181
- fs57[gracefulQueue][i6][3] = now;
9182
- fs57[gracefulQueue][i6][4] = now;
9179
+ for (var i6 = 0; i6 < fs58[gracefulQueue].length; ++i6) {
9180
+ if (fs58[gracefulQueue][i6].length > 2) {
9181
+ fs58[gracefulQueue][i6][3] = now;
9182
+ fs58[gracefulQueue][i6][4] = now;
9183
9183
  }
9184
9184
  }
9185
9185
  retry();
@@ -9188,9 +9188,9 @@ var require_graceful_fs = __commonJS({
9188
9188
  function retry() {
9189
9189
  clearTimeout(retryTimer);
9190
9190
  retryTimer = void 0;
9191
- if (fs57[gracefulQueue].length === 0)
9191
+ if (fs58[gracefulQueue].length === 0)
9192
9192
  return;
9193
- var elem = fs57[gracefulQueue].shift();
9193
+ var elem = fs58[gracefulQueue].shift();
9194
9194
  var fn = elem[0];
9195
9195
  var args = elem[1];
9196
9196
  var err = elem[2];
@@ -9212,7 +9212,7 @@ var require_graceful_fs = __commonJS({
9212
9212
  debug2("RETRY", fn.name, args);
9213
9213
  fn.apply(null, args.concat([startTime]));
9214
9214
  } else {
9215
- fs57[gracefulQueue].push(elem);
9215
+ fs58[gracefulQueue].push(elem);
9216
9216
  }
9217
9217
  }
9218
9218
  if (retryTimer === void 0) {
@@ -9228,7 +9228,7 @@ var require_fs = __commonJS({
9228
9228
  "../../node_modules/fs-extra/lib/fs/index.js"(exports2) {
9229
9229
  "use strict";
9230
9230
  var u = require_universalify().fromCallback;
9231
- var fs57 = require_graceful_fs();
9231
+ var fs58 = require_graceful_fs();
9232
9232
  var api = [
9233
9233
  "access",
9234
9234
  "appendFile",
@@ -9269,26 +9269,26 @@ var require_fs = __commonJS({
9269
9269
  "utimes",
9270
9270
  "writeFile"
9271
9271
  ].filter((key) => {
9272
- return typeof fs57[key] === "function";
9272
+ return typeof fs58[key] === "function";
9273
9273
  });
9274
- Object.assign(exports2, fs57);
9274
+ Object.assign(exports2, fs58);
9275
9275
  api.forEach((method) => {
9276
- exports2[method] = u(fs57[method]);
9276
+ exports2[method] = u(fs58[method]);
9277
9277
  });
9278
9278
  exports2.exists = function(filename, callback) {
9279
9279
  if (typeof callback === "function") {
9280
- return fs57.exists(filename, callback);
9280
+ return fs58.exists(filename, callback);
9281
9281
  }
9282
9282
  return new Promise((resolve16) => {
9283
- return fs57.exists(filename, resolve16);
9283
+ return fs58.exists(filename, resolve16);
9284
9284
  });
9285
9285
  };
9286
9286
  exports2.read = function(fd, buffer, offset, length, position, callback) {
9287
9287
  if (typeof callback === "function") {
9288
- return fs57.read(fd, buffer, offset, length, position, callback);
9288
+ return fs58.read(fd, buffer, offset, length, position, callback);
9289
9289
  }
9290
9290
  return new Promise((resolve16, reject) => {
9291
- fs57.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
9291
+ fs58.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
9292
9292
  if (err) return reject(err);
9293
9293
  resolve16({ bytesRead, buffer: buffer2 });
9294
9294
  });
@@ -9296,10 +9296,10 @@ var require_fs = __commonJS({
9296
9296
  };
9297
9297
  exports2.write = function(fd, buffer, ...args) {
9298
9298
  if (typeof args[args.length - 1] === "function") {
9299
- return fs57.write(fd, buffer, ...args);
9299
+ return fs58.write(fd, buffer, ...args);
9300
9300
  }
9301
9301
  return new Promise((resolve16, reject) => {
9302
- fs57.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
9302
+ fs58.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
9303
9303
  if (err) return reject(err);
9304
9304
  resolve16({ bytesWritten, buffer: buffer2 });
9305
9305
  });
@@ -9307,10 +9307,10 @@ var require_fs = __commonJS({
9307
9307
  };
9308
9308
  exports2.readv = function(fd, buffers, ...args) {
9309
9309
  if (typeof args[args.length - 1] === "function") {
9310
- return fs57.readv(fd, buffers, ...args);
9310
+ return fs58.readv(fd, buffers, ...args);
9311
9311
  }
9312
9312
  return new Promise((resolve16, reject) => {
9313
- fs57.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
9313
+ fs58.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
9314
9314
  if (err) return reject(err);
9315
9315
  resolve16({ bytesRead, buffers: buffers2 });
9316
9316
  });
@@ -9318,17 +9318,17 @@ var require_fs = __commonJS({
9318
9318
  };
9319
9319
  exports2.writev = function(fd, buffers, ...args) {
9320
9320
  if (typeof args[args.length - 1] === "function") {
9321
- return fs57.writev(fd, buffers, ...args);
9321
+ return fs58.writev(fd, buffers, ...args);
9322
9322
  }
9323
9323
  return new Promise((resolve16, reject) => {
9324
- fs57.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
9324
+ fs58.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
9325
9325
  if (err) return reject(err);
9326
9326
  resolve16({ bytesWritten, buffers: buffers2 });
9327
9327
  });
9328
9328
  });
9329
9329
  };
9330
- if (typeof fs57.realpath.native === "function") {
9331
- exports2.realpath.native = u(fs57.realpath.native);
9330
+ if (typeof fs58.realpath.native === "function") {
9331
+ exports2.realpath.native = u(fs58.realpath.native);
9332
9332
  } else {
9333
9333
  process.emitWarning(
9334
9334
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -9361,7 +9361,7 @@ var require_utils = __commonJS({
9361
9361
  var require_make_dir = __commonJS({
9362
9362
  "../../node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
9363
9363
  "use strict";
9364
- var fs57 = require_fs();
9364
+ var fs58 = require_fs();
9365
9365
  var { checkPath } = require_utils();
9366
9366
  var getMode = /* @__PURE__ */ __name((options) => {
9367
9367
  const defaults = { mode: 511 };
@@ -9370,14 +9370,14 @@ var require_make_dir = __commonJS({
9370
9370
  }, "getMode");
9371
9371
  module2.exports.makeDir = async (dir, options) => {
9372
9372
  checkPath(dir);
9373
- return fs57.mkdir(dir, {
9373
+ return fs58.mkdir(dir, {
9374
9374
  mode: getMode(options),
9375
9375
  recursive: true
9376
9376
  });
9377
9377
  };
9378
9378
  module2.exports.makeDirSync = (dir, options) => {
9379
9379
  checkPath(dir);
9380
- return fs57.mkdirSync(dir, {
9380
+ return fs58.mkdirSync(dir, {
9381
9381
  mode: getMode(options),
9382
9382
  recursive: true
9383
9383
  });
@@ -9409,14 +9409,14 @@ var require_path_exists = __commonJS({
9409
9409
  "../../node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
9410
9410
  "use strict";
9411
9411
  var u = require_universalify().fromPromise;
9412
- var fs57 = require_fs();
9412
+ var fs58 = require_fs();
9413
9413
  function pathExists9(path54) {
9414
- return fs57.access(path54).then(() => true).catch(() => false);
9414
+ return fs58.access(path54).then(() => true).catch(() => false);
9415
9415
  }
9416
9416
  __name(pathExists9, "pathExists");
9417
9417
  module2.exports = {
9418
9418
  pathExists: u(pathExists9),
9419
- pathExistsSync: fs57.existsSync
9419
+ pathExistsSync: fs58.existsSync
9420
9420
  };
9421
9421
  }
9422
9422
  });
@@ -9425,18 +9425,18 @@ var require_path_exists = __commonJS({
9425
9425
  var require_utimes = __commonJS({
9426
9426
  "../../node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
9427
9427
  "use strict";
9428
- var fs57 = require_fs();
9428
+ var fs58 = require_fs();
9429
9429
  var u = require_universalify().fromPromise;
9430
9430
  async function utimesMillis(path54, atime, mtime) {
9431
- const fd = await fs57.open(path54, "r+");
9431
+ const fd = await fs58.open(path54, "r+");
9432
9432
  let error3 = null;
9433
9433
  try {
9434
- await fs57.futimes(fd, atime, mtime);
9434
+ await fs58.futimes(fd, atime, mtime);
9435
9435
  } catch (futimesErr) {
9436
9436
  error3 = futimesErr;
9437
9437
  } finally {
9438
9438
  try {
9439
- await fs57.close(fd);
9439
+ await fs58.close(fd);
9440
9440
  } catch (closeErr) {
9441
9441
  if (!error3) error3 = closeErr;
9442
9442
  }
@@ -9447,15 +9447,15 @@ var require_utimes = __commonJS({
9447
9447
  }
9448
9448
  __name(utimesMillis, "utimesMillis");
9449
9449
  function utimesMillisSync(path54, atime, mtime) {
9450
- const fd = fs57.openSync(path54, "r+");
9450
+ const fd = fs58.openSync(path54, "r+");
9451
9451
  let error3 = null;
9452
9452
  try {
9453
- fs57.futimesSync(fd, atime, mtime);
9453
+ fs58.futimesSync(fd, atime, mtime);
9454
9454
  } catch (futimesErr) {
9455
9455
  error3 = futimesErr;
9456
9456
  } finally {
9457
9457
  try {
9458
- fs57.closeSync(fd);
9458
+ fs58.closeSync(fd);
9459
9459
  } catch (closeErr) {
9460
9460
  if (!error3) error3 = closeErr;
9461
9461
  }
@@ -9476,11 +9476,11 @@ var require_utimes = __commonJS({
9476
9476
  var require_stat = __commonJS({
9477
9477
  "../../node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
9478
9478
  "use strict";
9479
- var fs57 = require_fs();
9479
+ var fs58 = require_fs();
9480
9480
  var path54 = require("path");
9481
9481
  var u = require_universalify().fromPromise;
9482
9482
  function getStats(src, dest, opts) {
9483
- const statFunc = opts.dereference ? (file) => fs57.stat(file, { bigint: true }) : (file) => fs57.lstat(file, { bigint: true });
9483
+ const statFunc = opts.dereference ? (file) => fs58.stat(file, { bigint: true }) : (file) => fs58.lstat(file, { bigint: true });
9484
9484
  return Promise.all([
9485
9485
  statFunc(src),
9486
9486
  statFunc(dest).catch((err) => {
@@ -9492,7 +9492,7 @@ var require_stat = __commonJS({
9492
9492
  __name(getStats, "getStats");
9493
9493
  function getStatsSync(src, dest, opts) {
9494
9494
  let destStat;
9495
- const statFunc = opts.dereference ? (file) => fs57.statSync(file, { bigint: true }) : (file) => fs57.lstatSync(file, { bigint: true });
9495
+ const statFunc = opts.dereference ? (file) => fs58.statSync(file, { bigint: true }) : (file) => fs58.lstatSync(file, { bigint: true });
9496
9496
  const srcStat = statFunc(src);
9497
9497
  try {
9498
9498
  destStat = statFunc(dest);
@@ -9557,7 +9557,7 @@ var require_stat = __commonJS({
9557
9557
  if (destParent === srcParent || destParent === path54.parse(destParent).root) return;
9558
9558
  let destStat;
9559
9559
  try {
9560
- destStat = await fs57.stat(destParent, { bigint: true });
9560
+ destStat = await fs58.stat(destParent, { bigint: true });
9561
9561
  } catch (err) {
9562
9562
  if (err.code === "ENOENT") return;
9563
9563
  throw err;
@@ -9574,7 +9574,7 @@ var require_stat = __commonJS({
9574
9574
  if (destParent === srcParent || destParent === path54.parse(destParent).root) return;
9575
9575
  let destStat;
9576
9576
  try {
9577
- destStat = fs57.statSync(destParent, { bigint: true });
9577
+ destStat = fs58.statSync(destParent, { bigint: true });
9578
9578
  } catch (err) {
9579
9579
  if (err.code === "ENOENT") return;
9580
9580
  throw err;
@@ -9646,12 +9646,12 @@ var require_async = __commonJS({
9646
9646
  var require_copy = __commonJS({
9647
9647
  "../../node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
9648
9648
  "use strict";
9649
- var fs57 = require_fs();
9649
+ var fs58 = require_fs();
9650
9650
  var path54 = require("path");
9651
9651
  var { mkdirs } = require_mkdirs();
9652
9652
  var { pathExists: pathExists9 } = require_path_exists();
9653
9653
  var { utimesMillis } = require_utimes();
9654
- var stat8 = require_stat();
9654
+ var stat9 = require_stat();
9655
9655
  var { asyncIteratorConcurrentProcess } = require_async();
9656
9656
  async function copy2(src, dest, opts = {}) {
9657
9657
  if (typeof opts === "function") {
@@ -9666,8 +9666,8 @@ var require_copy = __commonJS({
9666
9666
  "fs-extra-WARN0001"
9667
9667
  );
9668
9668
  }
9669
- const { srcStat, destStat } = await stat8.checkPaths(src, dest, "copy", opts);
9670
- await stat8.checkParentPaths(src, srcStat, dest, "copy");
9669
+ const { srcStat, destStat } = await stat9.checkPaths(src, dest, "copy", opts);
9670
+ await stat9.checkParentPaths(src, srcStat, dest, "copy");
9671
9671
  const include = await runFilter(src, dest, opts);
9672
9672
  if (!include) return;
9673
9673
  const destParent = path54.dirname(dest);
@@ -9684,7 +9684,7 @@ var require_copy = __commonJS({
9684
9684
  }
9685
9685
  __name(runFilter, "runFilter");
9686
9686
  async function getStatsAndPerformCopy(destStat, src, dest, opts) {
9687
- const statFn = opts.dereference ? fs57.stat : fs57.lstat;
9687
+ const statFn = opts.dereference ? fs58.stat : fs58.lstat;
9688
9688
  const srcStat = await statFn(src);
9689
9689
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
9690
9690
  if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -9697,7 +9697,7 @@ var require_copy = __commonJS({
9697
9697
  async function onFile(srcStat, destStat, src, dest, opts) {
9698
9698
  if (!destStat) return copyFile(srcStat, src, dest, opts);
9699
9699
  if (opts.overwrite) {
9700
- await fs57.unlink(dest);
9700
+ await fs58.unlink(dest);
9701
9701
  return copyFile(srcStat, src, dest, opts);
9702
9702
  }
9703
9703
  if (opts.errorOnExist) {
@@ -9706,15 +9706,15 @@ var require_copy = __commonJS({
9706
9706
  }
9707
9707
  __name(onFile, "onFile");
9708
9708
  async function copyFile(srcStat, src, dest, opts) {
9709
- await fs57.copyFile(src, dest);
9709
+ await fs58.copyFile(src, dest);
9710
9710
  if (opts.preserveTimestamps) {
9711
9711
  if (fileIsNotWritable(srcStat.mode)) {
9712
9712
  await makeFileWritable(dest, srcStat.mode);
9713
9713
  }
9714
- const updatedSrcStat = await fs57.stat(src);
9714
+ const updatedSrcStat = await fs58.stat(src);
9715
9715
  await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
9716
9716
  }
9717
- return fs57.chmod(dest, srcStat.mode);
9717
+ return fs58.chmod(dest, srcStat.mode);
9718
9718
  }
9719
9719
  __name(copyFile, "copyFile");
9720
9720
  function fileIsNotWritable(srcMode) {
@@ -9722,55 +9722,55 @@ var require_copy = __commonJS({
9722
9722
  }
9723
9723
  __name(fileIsNotWritable, "fileIsNotWritable");
9724
9724
  function makeFileWritable(dest, srcMode) {
9725
- return fs57.chmod(dest, srcMode | 128);
9725
+ return fs58.chmod(dest, srcMode | 128);
9726
9726
  }
9727
9727
  __name(makeFileWritable, "makeFileWritable");
9728
9728
  async function onDir(srcStat, destStat, src, dest, opts) {
9729
9729
  if (!destStat) {
9730
- await fs57.mkdir(dest);
9730
+ await fs58.mkdir(dest);
9731
9731
  }
9732
- await asyncIteratorConcurrentProcess(await fs57.opendir(src), async (item) => {
9732
+ await asyncIteratorConcurrentProcess(await fs58.opendir(src), async (item) => {
9733
9733
  const srcItem = path54.join(src, item.name);
9734
9734
  const destItem = path54.join(dest, item.name);
9735
9735
  const include = await runFilter(srcItem, destItem, opts);
9736
9736
  if (include) {
9737
- const { destStat: destStat2 } = await stat8.checkPaths(srcItem, destItem, "copy", opts);
9737
+ const { destStat: destStat2 } = await stat9.checkPaths(srcItem, destItem, "copy", opts);
9738
9738
  await getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
9739
9739
  }
9740
9740
  });
9741
9741
  if (!destStat) {
9742
- await fs57.chmod(dest, srcStat.mode);
9742
+ await fs58.chmod(dest, srcStat.mode);
9743
9743
  }
9744
9744
  }
9745
9745
  __name(onDir, "onDir");
9746
9746
  async function onLink(destStat, src, dest, opts) {
9747
- let resolvedSrc = await fs57.readlink(src);
9747
+ let resolvedSrc = await fs58.readlink(src);
9748
9748
  if (opts.dereference) {
9749
9749
  resolvedSrc = path54.resolve(process.cwd(), resolvedSrc);
9750
9750
  }
9751
9751
  if (!destStat) {
9752
- return fs57.symlink(resolvedSrc, dest);
9752
+ return fs58.symlink(resolvedSrc, dest);
9753
9753
  }
9754
9754
  let resolvedDest = null;
9755
9755
  try {
9756
- resolvedDest = await fs57.readlink(dest);
9756
+ resolvedDest = await fs58.readlink(dest);
9757
9757
  } catch (e6) {
9758
- if (e6.code === "EINVAL" || e6.code === "UNKNOWN") return fs57.symlink(resolvedSrc, dest);
9758
+ if (e6.code === "EINVAL" || e6.code === "UNKNOWN") return fs58.symlink(resolvedSrc, dest);
9759
9759
  throw e6;
9760
9760
  }
9761
9761
  if (opts.dereference) {
9762
9762
  resolvedDest = path54.resolve(process.cwd(), resolvedDest);
9763
9763
  }
9764
9764
  if (resolvedSrc !== resolvedDest) {
9765
- if (stat8.isSrcSubdir(resolvedSrc, resolvedDest)) {
9765
+ if (stat9.isSrcSubdir(resolvedSrc, resolvedDest)) {
9766
9766
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
9767
9767
  }
9768
- if (stat8.isSrcSubdir(resolvedDest, resolvedSrc)) {
9768
+ if (stat9.isSrcSubdir(resolvedDest, resolvedSrc)) {
9769
9769
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
9770
9770
  }
9771
9771
  }
9772
- await fs57.unlink(dest);
9773
- return fs57.symlink(resolvedSrc, dest);
9772
+ await fs58.unlink(dest);
9773
+ return fs58.symlink(resolvedSrc, dest);
9774
9774
  }
9775
9775
  __name(onLink, "onLink");
9776
9776
  module2.exports = copy2;
@@ -9781,11 +9781,11 @@ var require_copy = __commonJS({
9781
9781
  var require_copy_sync = __commonJS({
9782
9782
  "../../node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
9783
9783
  "use strict";
9784
- var fs57 = require_graceful_fs();
9784
+ var fs58 = require_graceful_fs();
9785
9785
  var path54 = require("path");
9786
9786
  var mkdirsSync2 = require_mkdirs().mkdirsSync;
9787
9787
  var utimesMillisSync = require_utimes().utimesMillisSync;
9788
- var stat8 = require_stat();
9788
+ var stat9 = require_stat();
9789
9789
  function copySync(src, dest, opts) {
9790
9790
  if (typeof opts === "function") {
9791
9791
  opts = { filter: opts };
@@ -9800,16 +9800,16 @@ var require_copy_sync = __commonJS({
9800
9800
  "fs-extra-WARN0002"
9801
9801
  );
9802
9802
  }
9803
- const { srcStat, destStat } = stat8.checkPathsSync(src, dest, "copy", opts);
9804
- stat8.checkParentPathsSync(src, srcStat, dest, "copy");
9803
+ const { srcStat, destStat } = stat9.checkPathsSync(src, dest, "copy", opts);
9804
+ stat9.checkParentPathsSync(src, srcStat, dest, "copy");
9805
9805
  if (opts.filter && !opts.filter(src, dest)) return;
9806
9806
  const destParent = path54.dirname(dest);
9807
- if (!fs57.existsSync(destParent)) mkdirsSync2(destParent);
9807
+ if (!fs58.existsSync(destParent)) mkdirsSync2(destParent);
9808
9808
  return getStats(destStat, src, dest, opts);
9809
9809
  }
9810
9810
  __name(copySync, "copySync");
9811
9811
  function getStats(destStat, src, dest, opts) {
9812
- const statSync3 = opts.dereference ? fs57.statSync : fs57.lstatSync;
9812
+ const statSync3 = opts.dereference ? fs58.statSync : fs58.lstatSync;
9813
9813
  const srcStat = statSync3(src);
9814
9814
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
9815
9815
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -9826,7 +9826,7 @@ var require_copy_sync = __commonJS({
9826
9826
  __name(onFile, "onFile");
9827
9827
  function mayCopyFile(srcStat, src, dest, opts) {
9828
9828
  if (opts.overwrite) {
9829
- fs57.unlinkSync(dest);
9829
+ fs58.unlinkSync(dest);
9830
9830
  return copyFile(srcStat, src, dest, opts);
9831
9831
  } else if (opts.errorOnExist) {
9832
9832
  throw new Error(`'${dest}' already exists`);
@@ -9834,7 +9834,7 @@ var require_copy_sync = __commonJS({
9834
9834
  }
9835
9835
  __name(mayCopyFile, "mayCopyFile");
9836
9836
  function copyFile(srcStat, src, dest, opts) {
9837
- fs57.copyFileSync(src, dest);
9837
+ fs58.copyFileSync(src, dest);
9838
9838
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
9839
9839
  return setDestMode(dest, srcStat.mode);
9840
9840
  }
@@ -9853,11 +9853,11 @@ var require_copy_sync = __commonJS({
9853
9853
  }
9854
9854
  __name(makeFileWritable, "makeFileWritable");
9855
9855
  function setDestMode(dest, srcMode) {
9856
- return fs57.chmodSync(dest, srcMode);
9856
+ return fs58.chmodSync(dest, srcMode);
9857
9857
  }
9858
9858
  __name(setDestMode, "setDestMode");
9859
9859
  function setDestTimestamps(src, dest) {
9860
- const updatedSrcStat = fs57.statSync(src);
9860
+ const updatedSrcStat = fs58.statSync(src);
9861
9861
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
9862
9862
  }
9863
9863
  __name(setDestTimestamps, "setDestTimestamps");
@@ -9867,13 +9867,13 @@ var require_copy_sync = __commonJS({
9867
9867
  }
9868
9868
  __name(onDir, "onDir");
9869
9869
  function mkDirAndCopy(srcMode, src, dest, opts) {
9870
- fs57.mkdirSync(dest);
9870
+ fs58.mkdirSync(dest);
9871
9871
  copyDir(src, dest, opts);
9872
9872
  return setDestMode(dest, srcMode);
9873
9873
  }
9874
9874
  __name(mkDirAndCopy, "mkDirAndCopy");
9875
9875
  function copyDir(src, dest, opts) {
9876
- const dir = fs57.opendirSync(src);
9876
+ const dir = fs58.opendirSync(src);
9877
9877
  try {
9878
9878
  let dirent;
9879
9879
  while ((dirent = dir.readSync()) !== null) {
@@ -9888,33 +9888,33 @@ var require_copy_sync = __commonJS({
9888
9888
  const srcItem = path54.join(src, item);
9889
9889
  const destItem = path54.join(dest, item);
9890
9890
  if (opts.filter && !opts.filter(srcItem, destItem)) return;
9891
- const { destStat } = stat8.checkPathsSync(srcItem, destItem, "copy", opts);
9891
+ const { destStat } = stat9.checkPathsSync(srcItem, destItem, "copy", opts);
9892
9892
  return getStats(destStat, srcItem, destItem, opts);
9893
9893
  }
9894
9894
  __name(copyDirItem, "copyDirItem");
9895
9895
  function onLink(destStat, src, dest, opts) {
9896
- let resolvedSrc = fs57.readlinkSync(src);
9896
+ let resolvedSrc = fs58.readlinkSync(src);
9897
9897
  if (opts.dereference) {
9898
9898
  resolvedSrc = path54.resolve(process.cwd(), resolvedSrc);
9899
9899
  }
9900
9900
  if (!destStat) {
9901
- return fs57.symlinkSync(resolvedSrc, dest);
9901
+ return fs58.symlinkSync(resolvedSrc, dest);
9902
9902
  } else {
9903
9903
  let resolvedDest;
9904
9904
  try {
9905
- resolvedDest = fs57.readlinkSync(dest);
9905
+ resolvedDest = fs58.readlinkSync(dest);
9906
9906
  } catch (err) {
9907
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs57.symlinkSync(resolvedSrc, dest);
9907
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs58.symlinkSync(resolvedSrc, dest);
9908
9908
  throw err;
9909
9909
  }
9910
9910
  if (opts.dereference) {
9911
9911
  resolvedDest = path54.resolve(process.cwd(), resolvedDest);
9912
9912
  }
9913
9913
  if (resolvedSrc !== resolvedDest) {
9914
- if (stat8.isSrcSubdir(resolvedSrc, resolvedDest)) {
9914
+ if (stat9.isSrcSubdir(resolvedSrc, resolvedDest)) {
9915
9915
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
9916
9916
  }
9917
- if (stat8.isSrcSubdir(resolvedDest, resolvedSrc)) {
9917
+ if (stat9.isSrcSubdir(resolvedDest, resolvedSrc)) {
9918
9918
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
9919
9919
  }
9920
9920
  }
@@ -9923,8 +9923,8 @@ var require_copy_sync = __commonJS({
9923
9923
  }
9924
9924
  __name(onLink, "onLink");
9925
9925
  function copyLink(resolvedSrc, dest) {
9926
- fs57.unlinkSync(dest);
9927
- return fs57.symlinkSync(resolvedSrc, dest);
9926
+ fs58.unlinkSync(dest);
9927
+ return fs58.symlinkSync(resolvedSrc, dest);
9928
9928
  }
9929
9929
  __name(copyLink, "copyLink");
9930
9930
  module2.exports = copySync;
@@ -9947,14 +9947,14 @@ var require_copy2 = __commonJS({
9947
9947
  var require_remove = __commonJS({
9948
9948
  "../../node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
9949
9949
  "use strict";
9950
- var fs57 = require_graceful_fs();
9950
+ var fs58 = require_graceful_fs();
9951
9951
  var u = require_universalify().fromCallback;
9952
9952
  function remove2(path54, callback) {
9953
- fs57.rm(path54, { recursive: true, force: true }, callback);
9953
+ fs58.rm(path54, { recursive: true, force: true }, callback);
9954
9954
  }
9955
9955
  __name(remove2, "remove");
9956
9956
  function removeSync(path54) {
9957
- fs57.rmSync(path54, { recursive: true, force: true });
9957
+ fs58.rmSync(path54, { recursive: true, force: true });
9958
9958
  }
9959
9959
  __name(removeSync, "removeSync");
9960
9960
  module2.exports = {
@@ -9969,14 +9969,14 @@ var require_empty = __commonJS({
9969
9969
  "../../node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
9970
9970
  "use strict";
9971
9971
  var u = require_universalify().fromPromise;
9972
- var fs57 = require_fs();
9972
+ var fs58 = require_fs();
9973
9973
  var path54 = require("path");
9974
9974
  var mkdir2 = require_mkdirs();
9975
9975
  var remove2 = require_remove();
9976
9976
  var emptyDir = u(/* @__PURE__ */ __name(async function emptyDir2(dir) {
9977
9977
  let items;
9978
9978
  try {
9979
- items = await fs57.readdir(dir);
9979
+ items = await fs58.readdir(dir);
9980
9980
  } catch {
9981
9981
  return mkdir2.mkdirs(dir);
9982
9982
  }
@@ -9985,7 +9985,7 @@ var require_empty = __commonJS({
9985
9985
  function emptyDirSync(dir) {
9986
9986
  let items;
9987
9987
  try {
9988
- items = fs57.readdirSync(dir);
9988
+ items = fs58.readdirSync(dir);
9989
9989
  } catch {
9990
9990
  return mkdir2.mkdirsSync(dir);
9991
9991
  }
@@ -10010,52 +10010,52 @@ var require_file = __commonJS({
10010
10010
  "use strict";
10011
10011
  var u = require_universalify().fromPromise;
10012
10012
  var path54 = require("path");
10013
- var fs57 = require_fs();
10013
+ var fs58 = require_fs();
10014
10014
  var mkdir2 = require_mkdirs();
10015
10015
  async function createFile(file) {
10016
10016
  let stats;
10017
10017
  try {
10018
- stats = await fs57.stat(file);
10018
+ stats = await fs58.stat(file);
10019
10019
  } catch {
10020
10020
  }
10021
10021
  if (stats && stats.isFile()) return;
10022
10022
  const dir = path54.dirname(file);
10023
10023
  let dirStats = null;
10024
10024
  try {
10025
- dirStats = await fs57.stat(dir);
10025
+ dirStats = await fs58.stat(dir);
10026
10026
  } catch (err) {
10027
10027
  if (err.code === "ENOENT") {
10028
10028
  await mkdir2.mkdirs(dir);
10029
- await fs57.writeFile(file, "");
10029
+ await fs58.writeFile(file, "");
10030
10030
  return;
10031
10031
  } else {
10032
10032
  throw err;
10033
10033
  }
10034
10034
  }
10035
10035
  if (dirStats.isDirectory()) {
10036
- await fs57.writeFile(file, "");
10036
+ await fs58.writeFile(file, "");
10037
10037
  } else {
10038
- await fs57.readdir(dir);
10038
+ await fs58.readdir(dir);
10039
10039
  }
10040
10040
  }
10041
10041
  __name(createFile, "createFile");
10042
10042
  function createFileSync(file) {
10043
10043
  let stats;
10044
10044
  try {
10045
- stats = fs57.statSync(file);
10045
+ stats = fs58.statSync(file);
10046
10046
  } catch {
10047
10047
  }
10048
10048
  if (stats && stats.isFile()) return;
10049
10049
  const dir = path54.dirname(file);
10050
10050
  try {
10051
- if (!fs57.statSync(dir).isDirectory()) {
10052
- fs57.readdirSync(dir);
10051
+ if (!fs58.statSync(dir).isDirectory()) {
10052
+ fs58.readdirSync(dir);
10053
10053
  }
10054
10054
  } catch (err) {
10055
10055
  if (err && err.code === "ENOENT") mkdir2.mkdirsSync(dir);
10056
10056
  else throw err;
10057
10057
  }
10058
- fs57.writeFileSync(file, "");
10058
+ fs58.writeFileSync(file, "");
10059
10059
  }
10060
10060
  __name(createFileSync, "createFileSync");
10061
10061
  module2.exports = {
@@ -10071,19 +10071,19 @@ var require_link = __commonJS({
10071
10071
  "use strict";
10072
10072
  var u = require_universalify().fromPromise;
10073
10073
  var path54 = require("path");
10074
- var fs57 = require_fs();
10074
+ var fs58 = require_fs();
10075
10075
  var mkdir2 = require_mkdirs();
10076
10076
  var { pathExists: pathExists9 } = require_path_exists();
10077
10077
  var { areIdentical } = require_stat();
10078
10078
  async function createLink(srcpath, dstpath) {
10079
10079
  let dstStat;
10080
10080
  try {
10081
- dstStat = await fs57.lstat(dstpath, { bigint: true });
10081
+ dstStat = await fs58.lstat(dstpath, { bigint: true });
10082
10082
  } catch {
10083
10083
  }
10084
10084
  let srcStat;
10085
10085
  try {
10086
- srcStat = await fs57.lstat(srcpath, { bigint: true });
10086
+ srcStat = await fs58.lstat(srcpath, { bigint: true });
10087
10087
  } catch (err) {
10088
10088
  err.message = err.message.replace("lstat", "ensureLink");
10089
10089
  throw err;
@@ -10094,27 +10094,27 @@ var require_link = __commonJS({
10094
10094
  if (!dirExists) {
10095
10095
  await mkdir2.mkdirs(dir);
10096
10096
  }
10097
- await fs57.link(srcpath, dstpath);
10097
+ await fs58.link(srcpath, dstpath);
10098
10098
  }
10099
10099
  __name(createLink, "createLink");
10100
10100
  function createLinkSync(srcpath, dstpath) {
10101
10101
  let dstStat;
10102
10102
  try {
10103
- dstStat = fs57.lstatSync(dstpath, { bigint: true });
10103
+ dstStat = fs58.lstatSync(dstpath, { bigint: true });
10104
10104
  } catch {
10105
10105
  }
10106
10106
  try {
10107
- const srcStat = fs57.lstatSync(srcpath, { bigint: true });
10107
+ const srcStat = fs58.lstatSync(srcpath, { bigint: true });
10108
10108
  if (dstStat && areIdentical(srcStat, dstStat)) return;
10109
10109
  } catch (err) {
10110
10110
  err.message = err.message.replace("lstat", "ensureLink");
10111
10111
  throw err;
10112
10112
  }
10113
10113
  const dir = path54.dirname(dstpath);
10114
- const dirExists = fs57.existsSync(dir);
10115
- if (dirExists) return fs57.linkSync(srcpath, dstpath);
10114
+ const dirExists = fs58.existsSync(dir);
10115
+ if (dirExists) return fs58.linkSync(srcpath, dstpath);
10116
10116
  mkdir2.mkdirsSync(dir);
10117
- return fs57.linkSync(srcpath, dstpath);
10117
+ return fs58.linkSync(srcpath, dstpath);
10118
10118
  }
10119
10119
  __name(createLinkSync, "createLinkSync");
10120
10120
  module2.exports = {
@@ -10129,13 +10129,13 @@ var require_symlink_paths = __commonJS({
10129
10129
  "../../node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
10130
10130
  "use strict";
10131
10131
  var path54 = require("path");
10132
- var fs57 = require_fs();
10132
+ var fs58 = require_fs();
10133
10133
  var { pathExists: pathExists9 } = require_path_exists();
10134
10134
  var u = require_universalify().fromPromise;
10135
10135
  async function symlinkPaths(srcpath, dstpath) {
10136
10136
  if (path54.isAbsolute(srcpath)) {
10137
10137
  try {
10138
- await fs57.lstat(srcpath);
10138
+ await fs58.lstat(srcpath);
10139
10139
  } catch (err) {
10140
10140
  err.message = err.message.replace("lstat", "ensureSymlink");
10141
10141
  throw err;
@@ -10155,7 +10155,7 @@ var require_symlink_paths = __commonJS({
10155
10155
  };
10156
10156
  }
10157
10157
  try {
10158
- await fs57.lstat(srcpath);
10158
+ await fs58.lstat(srcpath);
10159
10159
  } catch (err) {
10160
10160
  err.message = err.message.replace("lstat", "ensureSymlink");
10161
10161
  throw err;
@@ -10168,7 +10168,7 @@ var require_symlink_paths = __commonJS({
10168
10168
  __name(symlinkPaths, "symlinkPaths");
10169
10169
  function symlinkPathsSync(srcpath, dstpath) {
10170
10170
  if (path54.isAbsolute(srcpath)) {
10171
- const exists2 = fs57.existsSync(srcpath);
10171
+ const exists2 = fs58.existsSync(srcpath);
10172
10172
  if (!exists2) throw new Error("absolute srcpath does not exist");
10173
10173
  return {
10174
10174
  toCwd: srcpath,
@@ -10177,14 +10177,14 @@ var require_symlink_paths = __commonJS({
10177
10177
  }
10178
10178
  const dstdir = path54.dirname(dstpath);
10179
10179
  const relativeToDst = path54.join(dstdir, srcpath);
10180
- const exists = fs57.existsSync(relativeToDst);
10180
+ const exists = fs58.existsSync(relativeToDst);
10181
10181
  if (exists) {
10182
10182
  return {
10183
10183
  toCwd: relativeToDst,
10184
10184
  toDst: srcpath
10185
10185
  };
10186
10186
  }
10187
- const srcExists = fs57.existsSync(srcpath);
10187
+ const srcExists = fs58.existsSync(srcpath);
10188
10188
  if (!srcExists) throw new Error("relative srcpath does not exist");
10189
10189
  return {
10190
10190
  toCwd: srcpath,
@@ -10203,13 +10203,13 @@ var require_symlink_paths = __commonJS({
10203
10203
  var require_symlink_type = __commonJS({
10204
10204
  "../../node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
10205
10205
  "use strict";
10206
- var fs57 = require_fs();
10206
+ var fs58 = require_fs();
10207
10207
  var u = require_universalify().fromPromise;
10208
10208
  async function symlinkType(srcpath, type) {
10209
10209
  if (type) return type;
10210
10210
  let stats;
10211
10211
  try {
10212
- stats = await fs57.lstat(srcpath);
10212
+ stats = await fs58.lstat(srcpath);
10213
10213
  } catch {
10214
10214
  return "file";
10215
10215
  }
@@ -10220,7 +10220,7 @@ var require_symlink_type = __commonJS({
10220
10220
  if (type) return type;
10221
10221
  let stats;
10222
10222
  try {
10223
- stats = fs57.lstatSync(srcpath);
10223
+ stats = fs58.lstatSync(srcpath);
10224
10224
  } catch {
10225
10225
  return "file";
10226
10226
  }
@@ -10240,7 +10240,7 @@ var require_symlink = __commonJS({
10240
10240
  "use strict";
10241
10241
  var u = require_universalify().fromPromise;
10242
10242
  var path54 = require("path");
10243
- var fs57 = require_fs();
10243
+ var fs58 = require_fs();
10244
10244
  var { mkdirs, mkdirsSync: mkdirsSync2 } = require_mkdirs();
10245
10245
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
10246
10246
  var { symlinkType, symlinkTypeSync } = require_symlink_type();
@@ -10249,23 +10249,23 @@ var require_symlink = __commonJS({
10249
10249
  async function createSymlink(srcpath, dstpath, type) {
10250
10250
  let stats;
10251
10251
  try {
10252
- stats = await fs57.lstat(dstpath);
10252
+ stats = await fs58.lstat(dstpath);
10253
10253
  } catch {
10254
10254
  }
10255
10255
  if (stats && stats.isSymbolicLink()) {
10256
10256
  let srcStat;
10257
10257
  if (path54.isAbsolute(srcpath)) {
10258
- srcStat = await fs57.stat(srcpath, { bigint: true });
10258
+ srcStat = await fs58.stat(srcpath, { bigint: true });
10259
10259
  } else {
10260
10260
  const dstdir = path54.dirname(dstpath);
10261
10261
  const relativeToDst = path54.join(dstdir, srcpath);
10262
10262
  try {
10263
- srcStat = await fs57.stat(relativeToDst, { bigint: true });
10263
+ srcStat = await fs58.stat(relativeToDst, { bigint: true });
10264
10264
  } catch {
10265
- srcStat = await fs57.stat(srcpath, { bigint: true });
10265
+ srcStat = await fs58.stat(srcpath, { bigint: true });
10266
10266
  }
10267
10267
  }
10268
- const dstStat = await fs57.stat(dstpath, { bigint: true });
10268
+ const dstStat = await fs58.stat(dstpath, { bigint: true });
10269
10269
  if (areIdentical(srcStat, dstStat)) return;
10270
10270
  }
10271
10271
  const relative6 = await symlinkPaths(srcpath, dstpath);
@@ -10275,39 +10275,39 @@ var require_symlink = __commonJS({
10275
10275
  if (!await pathExists9(dir)) {
10276
10276
  await mkdirs(dir);
10277
10277
  }
10278
- return fs57.symlink(srcpath, dstpath, toType);
10278
+ return fs58.symlink(srcpath, dstpath, toType);
10279
10279
  }
10280
10280
  __name(createSymlink, "createSymlink");
10281
10281
  function createSymlinkSync(srcpath, dstpath, type) {
10282
10282
  let stats;
10283
10283
  try {
10284
- stats = fs57.lstatSync(dstpath);
10284
+ stats = fs58.lstatSync(dstpath);
10285
10285
  } catch {
10286
10286
  }
10287
10287
  if (stats && stats.isSymbolicLink()) {
10288
10288
  let srcStat;
10289
10289
  if (path54.isAbsolute(srcpath)) {
10290
- srcStat = fs57.statSync(srcpath, { bigint: true });
10290
+ srcStat = fs58.statSync(srcpath, { bigint: true });
10291
10291
  } else {
10292
10292
  const dstdir = path54.dirname(dstpath);
10293
10293
  const relativeToDst = path54.join(dstdir, srcpath);
10294
10294
  try {
10295
- srcStat = fs57.statSync(relativeToDst, { bigint: true });
10295
+ srcStat = fs58.statSync(relativeToDst, { bigint: true });
10296
10296
  } catch {
10297
- srcStat = fs57.statSync(srcpath, { bigint: true });
10297
+ srcStat = fs58.statSync(srcpath, { bigint: true });
10298
10298
  }
10299
10299
  }
10300
- const dstStat = fs57.statSync(dstpath, { bigint: true });
10300
+ const dstStat = fs58.statSync(dstpath, { bigint: true });
10301
10301
  if (areIdentical(srcStat, dstStat)) return;
10302
10302
  }
10303
10303
  const relative6 = symlinkPathsSync(srcpath, dstpath);
10304
10304
  srcpath = relative6.toDst;
10305
10305
  type = symlinkTypeSync(relative6.toCwd, type);
10306
10306
  const dir = path54.dirname(dstpath);
10307
- const exists = fs57.existsSync(dir);
10308
- if (exists) return fs57.symlinkSync(srcpath, dstpath, type);
10307
+ const exists = fs58.existsSync(dir);
10308
+ if (exists) return fs58.symlinkSync(srcpath, dstpath, type);
10309
10309
  mkdirsSync2(dir);
10310
- return fs57.symlinkSync(srcpath, dstpath, type);
10310
+ return fs58.symlinkSync(srcpath, dstpath, type);
10311
10311
  }
10312
10312
  __name(createSymlinkSync, "createSymlinkSync");
10313
10313
  module2.exports = {
@@ -10377,9 +10377,9 @@ var require_jsonfile = __commonJS({
10377
10377
  if (typeof options === "string") {
10378
10378
  options = { encoding: options };
10379
10379
  }
10380
- const fs57 = options.fs || _fs;
10380
+ const fs58 = options.fs || _fs;
10381
10381
  const shouldThrow = "throws" in options ? options.throws : true;
10382
- let data2 = await universalify.fromCallback(fs57.readFile)(file, options);
10382
+ let data2 = await universalify.fromCallback(fs58.readFile)(file, options);
10383
10383
  data2 = stripBom(data2);
10384
10384
  let obj;
10385
10385
  try {
@@ -10395,15 +10395,15 @@ var require_jsonfile = __commonJS({
10395
10395
  return obj;
10396
10396
  }
10397
10397
  __name(_readFile, "_readFile");
10398
- var readFile11 = universalify.fromPromise(_readFile);
10399
- function readFileSync20(file, options = {}) {
10398
+ var readFile12 = universalify.fromPromise(_readFile);
10399
+ function readFileSync21(file, options = {}) {
10400
10400
  if (typeof options === "string") {
10401
10401
  options = { encoding: options };
10402
10402
  }
10403
- const fs57 = options.fs || _fs;
10403
+ const fs58 = options.fs || _fs;
10404
10404
  const shouldThrow = "throws" in options ? options.throws : true;
10405
10405
  try {
10406
- let content = fs57.readFileSync(file, options);
10406
+ let content = fs58.readFileSync(file, options);
10407
10407
  content = stripBom(content);
10408
10408
  return JSON.parse(content, options.reviver);
10409
10409
  } catch (err) {
@@ -10415,23 +10415,23 @@ var require_jsonfile = __commonJS({
10415
10415
  }
10416
10416
  }
10417
10417
  }
10418
- __name(readFileSync20, "readFileSync");
10418
+ __name(readFileSync21, "readFileSync");
10419
10419
  async function _writeFile(file, obj, options = {}) {
10420
- const fs57 = options.fs || _fs;
10420
+ const fs58 = options.fs || _fs;
10421
10421
  const str = stringify2(obj, options);
10422
- await universalify.fromCallback(fs57.writeFile)(file, str, options);
10422
+ await universalify.fromCallback(fs58.writeFile)(file, str, options);
10423
10423
  }
10424
10424
  __name(_writeFile, "_writeFile");
10425
10425
  var writeFile6 = universalify.fromPromise(_writeFile);
10426
10426
  function writeFileSync6(file, obj, options = {}) {
10427
- const fs57 = options.fs || _fs;
10427
+ const fs58 = options.fs || _fs;
10428
10428
  const str = stringify2(obj, options);
10429
- return fs57.writeFileSync(file, str, options);
10429
+ return fs58.writeFileSync(file, str, options);
10430
10430
  }
10431
10431
  __name(writeFileSync6, "writeFileSync");
10432
10432
  module2.exports = {
10433
- readFile: readFile11,
10434
- readFileSync: readFileSync20,
10433
+ readFile: readFile12,
10434
+ readFileSync: readFileSync21,
10435
10435
  writeFile: writeFile6,
10436
10436
  writeFileSync: writeFileSync6
10437
10437
  };
@@ -10458,7 +10458,7 @@ var require_output_file = __commonJS({
10458
10458
  "../../node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
10459
10459
  "use strict";
10460
10460
  var u = require_universalify().fromPromise;
10461
- var fs57 = require_fs();
10461
+ var fs58 = require_fs();
10462
10462
  var path54 = require("path");
10463
10463
  var mkdir2 = require_mkdirs();
10464
10464
  var pathExists9 = require_path_exists().pathExists;
@@ -10467,15 +10467,15 @@ var require_output_file = __commonJS({
10467
10467
  if (!await pathExists9(dir)) {
10468
10468
  await mkdir2.mkdirs(dir);
10469
10469
  }
10470
- return fs57.writeFile(file, data2, encoding);
10470
+ return fs58.writeFile(file, data2, encoding);
10471
10471
  }
10472
10472
  __name(outputFile, "outputFile");
10473
10473
  function outputFileSync(file, ...args) {
10474
10474
  const dir = path54.dirname(file);
10475
- if (!fs57.existsSync(dir)) {
10475
+ if (!fs58.existsSync(dir)) {
10476
10476
  mkdir2.mkdirsSync(dir);
10477
10477
  }
10478
- fs57.writeFileSync(file, ...args);
10478
+ fs58.writeFileSync(file, ...args);
10479
10479
  }
10480
10480
  __name(outputFileSync, "outputFileSync");
10481
10481
  module2.exports = {
@@ -10537,17 +10537,17 @@ var require_json = __commonJS({
10537
10537
  var require_move = __commonJS({
10538
10538
  "../../node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
10539
10539
  "use strict";
10540
- var fs57 = require_fs();
10540
+ var fs58 = require_fs();
10541
10541
  var path54 = require("path");
10542
10542
  var { copy: copy2 } = require_copy2();
10543
10543
  var { remove: remove2 } = require_remove();
10544
10544
  var { mkdirp: mkdirp2 } = require_mkdirs();
10545
10545
  var { pathExists: pathExists9 } = require_path_exists();
10546
- var stat8 = require_stat();
10546
+ var stat9 = require_stat();
10547
10547
  async function move(src, dest, opts = {}) {
10548
10548
  const overwrite = opts.overwrite || opts.clobber || false;
10549
- const { srcStat, isChangingCase = false } = await stat8.checkPaths(src, dest, "move", opts);
10550
- await stat8.checkParentPaths(src, srcStat, dest, "move");
10549
+ const { srcStat, isChangingCase = false } = await stat9.checkPaths(src, dest, "move", opts);
10550
+ await stat9.checkParentPaths(src, srcStat, dest, "move");
10551
10551
  const destParent = path54.dirname(dest);
10552
10552
  const parsedParentPath = path54.parse(destParent);
10553
10553
  if (parsedParentPath.root !== destParent) {
@@ -10565,7 +10565,7 @@ var require_move = __commonJS({
10565
10565
  }
10566
10566
  }
10567
10567
  try {
10568
- await fs57.rename(src, dest);
10568
+ await fs58.rename(src, dest);
10569
10569
  } catch (err) {
10570
10570
  if (err.code !== "EXDEV") {
10571
10571
  throw err;
@@ -10592,17 +10592,17 @@ var require_move = __commonJS({
10592
10592
  var require_move_sync = __commonJS({
10593
10593
  "../../node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
10594
10594
  "use strict";
10595
- var fs57 = require_graceful_fs();
10595
+ var fs58 = require_graceful_fs();
10596
10596
  var path54 = require("path");
10597
10597
  var copySync = require_copy2().copySync;
10598
10598
  var removeSync = require_remove().removeSync;
10599
10599
  var mkdirpSync2 = require_mkdirs().mkdirpSync;
10600
- var stat8 = require_stat();
10600
+ var stat9 = require_stat();
10601
10601
  function moveSync(src, dest, opts) {
10602
10602
  opts = opts || {};
10603
10603
  const overwrite = opts.overwrite || opts.clobber || false;
10604
- const { srcStat, isChangingCase = false } = stat8.checkPathsSync(src, dest, "move", opts);
10605
- stat8.checkParentPathsSync(src, srcStat, dest, "move");
10604
+ const { srcStat, isChangingCase = false } = stat9.checkPathsSync(src, dest, "move", opts);
10605
+ stat9.checkParentPathsSync(src, srcStat, dest, "move");
10606
10606
  if (!isParentRoot(dest)) mkdirpSync2(path54.dirname(dest));
10607
10607
  return doRename(src, dest, overwrite, isChangingCase);
10608
10608
  }
@@ -10619,13 +10619,13 @@ var require_move_sync = __commonJS({
10619
10619
  removeSync(dest);
10620
10620
  return rename(src, dest, overwrite);
10621
10621
  }
10622
- if (fs57.existsSync(dest)) throw new Error("dest already exists.");
10622
+ if (fs58.existsSync(dest)) throw new Error("dest already exists.");
10623
10623
  return rename(src, dest, overwrite);
10624
10624
  }
10625
10625
  __name(doRename, "doRename");
10626
10626
  function rename(src, dest, overwrite) {
10627
10627
  try {
10628
- fs57.renameSync(src, dest);
10628
+ fs58.renameSync(src, dest);
10629
10629
  } catch (err) {
10630
10630
  if (err.code !== "EXDEV") throw err;
10631
10631
  return moveAcrossDevice(src, dest, overwrite);
@@ -10808,11 +10808,11 @@ async function shell(command6, options) {
10808
10808
  child.stdin.write(options.input);
10809
10809
  child.stdin.end();
10810
10810
  }
10811
- const stdout = new Array();
10811
+ const stdout2 = new Array();
10812
10812
  const stderr = new Array();
10813
10813
  child.stdout.on("data", (chunk) => {
10814
10814
  handleShellOutput(chunk, options, "data_stdout");
10815
- stdout.push(chunk);
10815
+ stdout2.push(chunk);
10816
10816
  });
10817
10817
  child.stderr.on("data", (chunk) => {
10818
10818
  handleShellOutput(chunk, options, "data_stderr");
@@ -10822,7 +10822,7 @@ async function shell(command6, options) {
10822
10822
  child.once("close", (code, signal) => {
10823
10823
  handleShellOutput(renderCommandLine(command6), options, "close");
10824
10824
  if (code === 0) {
10825
- resolve16(Buffer.concat(stdout).toString("utf-8"));
10825
+ resolve16(Buffer.concat(stdout2).toString("utf-8"));
10826
10826
  } else {
10827
10827
  const out = Buffer.concat(stderr).toString("utf-8").trim();
10828
10828
  reject(
@@ -11640,9 +11640,9 @@ var require_path = __commonJS({
11640
11640
  "use strict";
11641
11641
  Object.defineProperty(exports2, "__esModule", { value: true });
11642
11642
  exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
11643
- var os14 = require("os");
11643
+ var os15 = require("os");
11644
11644
  var path54 = require("path");
11645
- var IS_WINDOWS_PLATFORM = os14.platform() === "win32";
11645
+ var IS_WINDOWS_PLATFORM = os15.platform() === "win32";
11646
11646
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
11647
11647
  var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
11648
11648
  var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
@@ -15243,8 +15243,8 @@ var require_utils5 = __commonJS({
15243
15243
  exports2.array = array;
15244
15244
  var errno = require_errno();
15245
15245
  exports2.errno = errno;
15246
- var fs57 = require_fs2();
15247
- exports2.fs = fs57;
15246
+ var fs58 = require_fs2();
15247
+ exports2.fs = fs58;
15248
15248
  var path54 = require_path();
15249
15249
  exports2.path = path54;
15250
15250
  var pattern = require_pattern();
@@ -15376,7 +15376,7 @@ var require_async2 = __commonJS({
15376
15376
  callSuccessCallback(callback, lstat3);
15377
15377
  return;
15378
15378
  }
15379
- settings.fs.stat(path54, (statError, stat8) => {
15379
+ settings.fs.stat(path54, (statError, stat9) => {
15380
15380
  if (statError !== null) {
15381
15381
  if (settings.throwErrorOnBrokenSymbolicLink) {
15382
15382
  callFailureCallback(callback, statError);
@@ -15386,9 +15386,9 @@ var require_async2 = __commonJS({
15386
15386
  return;
15387
15387
  }
15388
15388
  if (settings.markSymbolicLink) {
15389
- stat8.isSymbolicLink = () => true;
15389
+ stat9.isSymbolicLink = () => true;
15390
15390
  }
15391
- callSuccessCallback(callback, stat8);
15391
+ callSuccessCallback(callback, stat9);
15392
15392
  });
15393
15393
  });
15394
15394
  }
@@ -15417,11 +15417,11 @@ var require_sync = __commonJS({
15417
15417
  return lstat3;
15418
15418
  }
15419
15419
  try {
15420
- const stat8 = settings.fs.statSync(path54);
15420
+ const stat9 = settings.fs.statSync(path54);
15421
15421
  if (settings.markSymbolicLink) {
15422
- stat8.isSymbolicLink = () => true;
15422
+ stat9.isSymbolicLink = () => true;
15423
15423
  }
15424
- return stat8;
15424
+ return stat9;
15425
15425
  } catch (error3) {
15426
15426
  if (!settings.throwErrorOnBrokenSymbolicLink) {
15427
15427
  return lstat3;
@@ -15440,12 +15440,12 @@ var require_fs3 = __commonJS({
15440
15440
  "use strict";
15441
15441
  Object.defineProperty(exports2, "__esModule", { value: true });
15442
15442
  exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
15443
- var fs57 = require("fs");
15443
+ var fs58 = require("fs");
15444
15444
  exports2.FILE_SYSTEM_ADAPTER = {
15445
- lstat: fs57.lstat,
15446
- stat: fs57.stat,
15447
- lstatSync: fs57.lstatSync,
15448
- statSync: fs57.statSync
15445
+ lstat: fs58.lstat,
15446
+ stat: fs58.stat,
15447
+ lstatSync: fs58.lstatSync,
15448
+ statSync: fs58.statSync
15449
15449
  };
15450
15450
  function createFileSystemAdapter(fsMethods) {
15451
15451
  if (fsMethods === void 0) {
@@ -15463,7 +15463,7 @@ var require_settings = __commonJS({
15463
15463
  "../../node_modules/@nodelib/fs.stat/out/settings.js"(exports2) {
15464
15464
  "use strict";
15465
15465
  Object.defineProperty(exports2, "__esModule", { value: true });
15466
- var fs57 = require_fs3();
15466
+ var fs58 = require_fs3();
15467
15467
  var Settings2 = class {
15468
15468
  static {
15469
15469
  __name(this, "Settings");
@@ -15471,7 +15471,7 @@ var require_settings = __commonJS({
15471
15471
  constructor(_options = {}) {
15472
15472
  this._options = _options;
15473
15473
  this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
15474
- this.fs = fs57.createFileSystemAdapter(this._options.fs);
15474
+ this.fs = fs58.createFileSystemAdapter(this._options.fs);
15475
15475
  this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
15476
15476
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
15477
15477
  }
@@ -15493,15 +15493,15 @@ var require_out = __commonJS({
15493
15493
  var sync = require_sync();
15494
15494
  var settings_1 = require_settings();
15495
15495
  exports2.Settings = settings_1.default;
15496
- function stat8(path54, optionsOrSettingsOrCallback, callback) {
15496
+ function stat9(path54, optionsOrSettingsOrCallback, callback) {
15497
15497
  if (typeof optionsOrSettingsOrCallback === "function") {
15498
15498
  async.read(path54, getSettings(), optionsOrSettingsOrCallback);
15499
15499
  return;
15500
15500
  }
15501
15501
  async.read(path54, getSettings(optionsOrSettingsOrCallback), callback);
15502
15502
  }
15503
- __name(stat8, "stat");
15504
- exports2.stat = stat8;
15503
+ __name(stat9, "stat");
15504
+ exports2.stat = stat9;
15505
15505
  function statSync3(path54, optionsOrSettings) {
15506
15506
  const settings = getSettings(optionsOrSettings);
15507
15507
  return sync.read(path54, settings);
@@ -15637,8 +15637,8 @@ var require_utils6 = __commonJS({
15637
15637
  "use strict";
15638
15638
  Object.defineProperty(exports2, "__esModule", { value: true });
15639
15639
  exports2.fs = void 0;
15640
- var fs57 = require_fs4();
15641
- exports2.fs = fs57;
15640
+ var fs58 = require_fs4();
15641
+ exports2.fs = fs58;
15642
15642
  }
15643
15643
  });
15644
15644
 
@@ -15843,14 +15843,14 @@ var require_fs5 = __commonJS({
15843
15843
  "use strict";
15844
15844
  Object.defineProperty(exports2, "__esModule", { value: true });
15845
15845
  exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
15846
- var fs57 = require("fs");
15846
+ var fs58 = require("fs");
15847
15847
  exports2.FILE_SYSTEM_ADAPTER = {
15848
- lstat: fs57.lstat,
15849
- stat: fs57.stat,
15850
- lstatSync: fs57.lstatSync,
15851
- statSync: fs57.statSync,
15852
- readdir: fs57.readdir,
15853
- readdirSync: fs57.readdirSync
15848
+ lstat: fs58.lstat,
15849
+ stat: fs58.stat,
15850
+ lstatSync: fs58.lstatSync,
15851
+ statSync: fs58.statSync,
15852
+ readdir: fs58.readdir,
15853
+ readdirSync: fs58.readdirSync
15854
15854
  };
15855
15855
  function createFileSystemAdapter(fsMethods) {
15856
15856
  if (fsMethods === void 0) {
@@ -15870,7 +15870,7 @@ var require_settings2 = __commonJS({
15870
15870
  Object.defineProperty(exports2, "__esModule", { value: true });
15871
15871
  var path54 = require("path");
15872
15872
  var fsStat = require_out();
15873
- var fs57 = require_fs5();
15873
+ var fs58 = require_fs5();
15874
15874
  var Settings2 = class {
15875
15875
  static {
15876
15876
  __name(this, "Settings");
@@ -15878,7 +15878,7 @@ var require_settings2 = __commonJS({
15878
15878
  constructor(_options = {}) {
15879
15879
  this._options = _options;
15880
15880
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
15881
- this.fs = fs57.createFileSystemAdapter(this._options.fs);
15881
+ this.fs = fs58.createFileSystemAdapter(this._options.fs);
15882
15882
  this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path54.sep);
15883
15883
  this.stats = this._getValue(this._options.stats, false);
15884
15884
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
@@ -17359,16 +17359,16 @@ var require_settings4 = __commonJS({
17359
17359
  "use strict";
17360
17360
  Object.defineProperty(exports2, "__esModule", { value: true });
17361
17361
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
17362
- var fs57 = require("fs");
17363
- var os14 = require("os");
17364
- var CPU_COUNT = Math.max(os14.cpus().length, 1);
17362
+ var fs58 = require("fs");
17363
+ var os15 = require("os");
17364
+ var CPU_COUNT = Math.max(os15.cpus().length, 1);
17365
17365
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
17366
- lstat: fs57.lstat,
17367
- lstatSync: fs57.lstatSync,
17368
- stat: fs57.stat,
17369
- statSync: fs57.statSync,
17370
- readdir: fs57.readdir,
17371
- readdirSync: fs57.readdirSync
17366
+ lstat: fs58.lstat,
17367
+ lstatSync: fs58.lstatSync,
17368
+ stat: fs58.stat,
17369
+ statSync: fs58.statSync,
17370
+ readdir: fs58.readdir,
17371
+ readdirSync: fs58.readdirSync
17372
17372
  };
17373
17373
  var Settings2 = class {
17374
17374
  static {
@@ -17846,7 +17846,7 @@ var require_dist = __commonJS({
17846
17846
  // ../../node_modules/yazl/index.js
17847
17847
  var require_yazl = __commonJS({
17848
17848
  "../../node_modules/yazl/index.js"(exports2) {
17849
- var fs57 = require("fs");
17849
+ var fs58 = require("fs");
17850
17850
  var Transform = require("stream").Transform;
17851
17851
  var PassThrough2 = require("stream").PassThrough;
17852
17852
  var zlib2 = require("zlib");
@@ -17877,14 +17877,14 @@ var require_yazl = __commonJS({
17877
17877
  if (shouldIgnoreAdding(self2)) return;
17878
17878
  var entry = new Entry(metadataPath, false, options);
17879
17879
  self2.entries.push(entry);
17880
- fs57.stat(realPath, function(err, stats) {
17880
+ fs58.stat(realPath, function(err, stats) {
17881
17881
  if (err) return self2.emit("error", err);
17882
17882
  if (!stats.isFile()) return self2.emit("error", new Error("not a file: " + realPath));
17883
17883
  entry.uncompressedSize = stats.size;
17884
17884
  if (options.mtime == null) entry.setLastModDate(stats.mtime);
17885
17885
  if (options.mode == null) entry.setFileAttributesMode(stats.mode);
17886
17886
  entry.setFileDataPumpFunction(function() {
17887
- var readStream = fs57.createReadStream(realPath);
17887
+ var readStream = fs58.createReadStream(realPath);
17888
17888
  entry.state = Entry.FILE_DATA_IN_PROGRESS;
17889
17889
  readStream.on("error", function(err2) {
17890
17890
  self2.emit("error", err2);
@@ -18603,11 +18603,11 @@ var require_zip = __commonJS({
18603
18603
  zip2.outputStream.pipe(output);
18604
18604
  for (const file of files) {
18605
18605
  const fullPath = path54.resolve(directory, file);
18606
- const [data2, stat8] = await Promise.all([fs_1.promises.readFile(fullPath), fs_1.promises.stat(fullPath)]);
18606
+ const [data2, stat9] = await Promise.all([fs_1.promises.readFile(fullPath), fs_1.promises.stat(fullPath)]);
18607
18607
  zip2.addBuffer(data2, file, {
18608
18608
  mtime: epoch(),
18609
18609
  // reset dates to get the same hash for the same content
18610
- mode: stat8.mode,
18610
+ mode: stat9.mode,
18611
18611
  // Only emit the DOS timestamp (no UTC "universal time" extended field),
18612
18612
  // so the archive bytes do not depend on the machine's timezone.
18613
18613
  forceDosTimestamp: true
@@ -35533,7 +35533,7 @@ var require_dist_cjs6 = __commonJS({
35533
35533
  var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
35534
35534
  var { CredentialsProviderError: CredentialsProviderError2 } = (init_config2(), __toCommonJS(config_exports));
35535
35535
  var { NodeHttpHandler } = require_dist_cjs5();
35536
- var fs57 = require("node:fs/promises");
35536
+ var fs58 = require("node:fs/promises");
35537
35537
  var { HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports));
35538
35538
  var { sdkStreamMixin: sdkStreamMixin3, parseRfc3339DateTime: parseRfc3339DateTime2 } = (init_serde(), __toCommonJS(serde_exports));
35539
35539
  var ECS_CONTAINER_HOST = "169.254.170.2";
@@ -35661,7 +35661,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
35661
35661
  if (token) {
35662
35662
  request4.headers.Authorization = token;
35663
35663
  } else if (tokenFile) {
35664
- request4.headers.Authorization = (await fs57.readFile(tokenFile)).toString();
35664
+ request4.headers.Authorization = (await fs58.readFile(tokenFile)).toString();
35665
35665
  }
35666
35666
  try {
35667
35667
  const result2 = await requestHandler.handle(request4, { requestTimeout });
@@ -42421,12 +42421,12 @@ var init_signin = __esm({
42421
42421
  var require_dist_cjs10 = __commonJS({
42422
42422
  "../../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js"(exports2) {
42423
42423
  var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
42424
- var { CredentialsProviderError: CredentialsProviderError2, readFile: readFile11, parseKnownFiles: parseKnownFiles2, getProfileName: getProfileName2 } = (init_config2(), __toCommonJS(config_exports));
42424
+ var { CredentialsProviderError: CredentialsProviderError2, readFile: readFile12, parseKnownFiles: parseKnownFiles2, getProfileName: getProfileName2 } = (init_config2(), __toCommonJS(config_exports));
42425
42425
  var { HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports));
42426
42426
  var { createHash: createHash8, createPrivateKey, createPublicKey, sign: sign3 } = require("node:crypto");
42427
42427
  var { promises: promises8 } = require("node:fs");
42428
- var { homedir: homedir7 } = require("node:os");
42429
- var { dirname: dirname17, join: join54 } = require("node:path");
42428
+ var { homedir: homedir8 } = require("node:os");
42429
+ var { dirname: dirname17, join: join55 } = require("node:path");
42430
42430
  var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
42431
42431
  static {
42432
42432
  __name(this, "LoginCredentialsFetcher");
@@ -42552,7 +42552,7 @@ var require_dist_cjs10 = __commonJS({
42552
42552
  try {
42553
42553
  let tokenData;
42554
42554
  try {
42555
- tokenData = await readFile11(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
42555
+ tokenData = await readFile12(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
42556
42556
  } catch {
42557
42557
  tokenData = await promises8.readFile(tokenFilePath, "utf8");
42558
42558
  }
@@ -42585,10 +42585,10 @@ var require_dist_cjs10 = __commonJS({
42585
42585
  await promises8.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
42586
42586
  }
42587
42587
  getTokenFilePath() {
42588
- const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join54(homedir7(), ".aws", "login", "cache");
42588
+ const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join55(homedir8(), ".aws", "login", "cache");
42589
42589
  const loginSessionBytes = Buffer.from(this.loginSession, "utf8");
42590
42590
  const loginSessionSha256 = createHash8("sha256").update(loginSessionBytes).digest("hex");
42591
- return join54(directory, `${loginSessionSha256}.json`);
42591
+ return join55(directory, `${loginSessionSha256}.json`);
42592
42592
  }
42593
42593
  derToRawSignature(derSignature) {
42594
42594
  let offset = 2;
@@ -44135,10 +44135,10 @@ var require_dist_cjs12 = __commonJS({
44135
44135
  if (credentialProcess !== void 0) {
44136
44136
  const execPromise = promisify4(externalDataInterceptor2?.getTokenRecord?.().exec ?? exec5);
44137
44137
  try {
44138
- const { stdout } = await execPromise(credentialProcess);
44138
+ const { stdout: stdout2 } = await execPromise(credentialProcess);
44139
44139
  let data2;
44140
44140
  try {
44141
- data2 = JSON.parse(stdout.trim());
44141
+ data2 = JSON.parse(stdout2.trim());
44142
44142
  } catch {
44143
44143
  throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
44144
44144
  }
@@ -44171,7 +44171,7 @@ var require_dist_cjs13 = __commonJS({
44171
44171
  "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2) {
44172
44172
  var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
44173
44173
  var { CredentialsProviderError: CredentialsProviderError2, externalDataInterceptor: externalDataInterceptor2 } = (init_config2(), __toCommonJS(config_exports));
44174
- var { readFileSync: readFileSync20 } = require("node:fs");
44174
+ var { readFileSync: readFileSync21 } = require("node:fs");
44175
44175
  var fromWebToken = /* @__PURE__ */ __name((init) => async (awsIdentityProperties) => {
44176
44176
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
44177
44177
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
@@ -44212,7 +44212,7 @@ var require_dist_cjs13 = __commonJS({
44212
44212
  }
44213
44213
  const credentials = await fromWebToken({
44214
44214
  ...init,
44215
- webIdentityToken: externalDataInterceptor2?.getTokenRecord?.()[webIdentityTokenFile] ?? readFileSync20(webIdentityTokenFile, { encoding: "ascii" }),
44215
+ webIdentityToken: externalDataInterceptor2?.getTokenRecord?.()[webIdentityTokenFile] ?? readFileSync21(webIdentityTokenFile, { encoding: "ascii" }),
44216
44216
  roleArn,
44217
44217
  roleSessionName
44218
44218
  })(awsIdentityProperties);
@@ -69049,7 +69049,7 @@ var require_has_flag = __commonJS({
69049
69049
  var require_supports_color = __commonJS({
69050
69050
  "../../node_modules/supports-color/index.js"(exports2, module2) {
69051
69051
  "use strict";
69052
- var os14 = require("os");
69052
+ var os15 = require("os");
69053
69053
  var tty = require("tty");
69054
69054
  var hasFlag = require_has_flag();
69055
69055
  var { env: env3 } = process;
@@ -69098,7 +69098,7 @@ var require_supports_color = __commonJS({
69098
69098
  return min;
69099
69099
  }
69100
69100
  if (process.platform === "win32") {
69101
- const osRelease = os14.release().split(".");
69101
+ const osRelease = os15.release().split(".");
69102
69102
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
69103
69103
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
69104
69104
  }
@@ -70236,13 +70236,42 @@ function formatErrorMessage(error3) {
70236
70236
  return `${error3.message}
70237
70237
  ${formatErrorMessage(error3.cause)}`;
70238
70238
  }
70239
- return error3?.message || error3?.toString() || "Unknown error";
70239
+ if (error3?.message) {
70240
+ return error3.message;
70241
+ }
70242
+ const fromSdk = formatSdkError(error3);
70243
+ if (fromSdk) {
70244
+ return fromSdk;
70245
+ }
70246
+ return error3?.toString() || "Unknown error";
70247
+ }
70248
+ function formatSdkError(error3) {
70249
+ const name = error3?.name ?? error3?.code;
70250
+ const metadata = error3?.$metadata ?? {};
70251
+ const details = [];
70252
+ if (typeof metadata.httpStatusCode === "number") {
70253
+ details.push(`HTTP ${metadata.httpStatusCode}`);
70254
+ }
70255
+ if (metadata.requestId) {
70256
+ details.push(`request id: ${metadata.requestId}`);
70257
+ }
70258
+ if (name && details.length > 0) {
70259
+ return `${name} (${details.join(", ")})`;
70260
+ }
70261
+ if (name) {
70262
+ return name;
70263
+ }
70264
+ if (details.length > 0) {
70265
+ return details.join(", ");
70266
+ }
70267
+ return void 0;
70240
70268
  }
70241
70269
  var init_format_error = __esm({
70242
70270
  "../@aws-cdk/toolkit-lib/lib/util/format-error.ts"() {
70243
70271
  "use strict";
70244
70272
  init_toolkit_error();
70245
70273
  __name(formatErrorMessage, "formatErrorMessage");
70274
+ __name(formatSdkError, "formatSdkError");
70246
70275
  }
70247
70276
  });
70248
70277
 
@@ -106564,14 +106593,16 @@ var init_deploy_stack = __esm({
106564
106593
  const replacement = hasReplacement(changeSetDescription);
106565
106594
  const isPausedFailState = this.cloudFormationStack.stackStatus.isRollbackable;
106566
106595
  const rollback = this.options.rollback ?? true;
106567
- const expressNoRollback = this.options.express && this.options.rollback !== true;
106596
+ if (this.options.express) {
106597
+ return this.executeChangeSet(changeSetDescription);
106598
+ }
106568
106599
  if (isPausedFailState && replacement) {
106569
106600
  return { type: "failpaused-need-rollback-first", reason: "replacement", status: this.cloudFormationStack.stackStatus.name };
106570
106601
  }
106571
106602
  if (isPausedFailState && rollback) {
106572
106603
  return { type: "failpaused-need-rollback-first", reason: "not-norollback", status: this.cloudFormationStack.stackStatus.name };
106573
106604
  }
106574
- if ((!rollback || expressNoRollback) && replacement) {
106605
+ if (!rollback && replacement) {
106575
106606
  return { type: "replacement-requires-rollback" };
106576
106607
  }
106577
106608
  return this.executeChangeSet(changeSetDescription);
@@ -275685,12 +275716,12 @@ function isEc2Instance() {
275685
275716
  return cachedIsEc2;
275686
275717
  }
275687
275718
  function detectEc2() {
275688
- const os14 = (0, import_node_os3.platform)();
275719
+ const os15 = (0, import_node_os3.platform)();
275689
275720
  try {
275690
- if (os14 === "linux") {
275721
+ if (os15 === "linux") {
275691
275722
  return detectEc2Linux();
275692
275723
  }
275693
- if (os14 === "win32") {
275724
+ if (os15 === "win32") {
275694
275725
  return detectEc2Windows();
275695
275726
  }
275696
275727
  return false;
@@ -278176,7 +278207,7 @@ var require_cloud_artifact = __commonJS({
278176
278207
  "use strict";
278177
278208
  Object.defineProperty(exports2, "__esModule", { value: true });
278178
278209
  exports2.CloudArtifact = void 0;
278179
- var fs57 = require("fs");
278210
+ var fs58 = require("fs");
278180
278211
  var path54 = require("path");
278181
278212
  var cxschema12 = require_lib2();
278182
278213
  var metadata_1 = require_metadata();
@@ -278199,7 +278230,7 @@ var require_cloud_artifact = __commonJS({
278199
278230
  static readMetadata(assemblyDirectory, x) {
278200
278231
  const ret = {};
278201
278232
  if (x.additionalMetadataFile) {
278202
- Object.assign(ret, JSON.parse(fs57.readFileSync(path54.join(assemblyDirectory, x.additionalMetadataFile), "utf-8")));
278233
+ Object.assign(ret, JSON.parse(fs58.readFileSync(path54.join(assemblyDirectory, x.additionalMetadataFile), "utf-8")));
278203
278234
  }
278204
278235
  for (const [p3, entries] of Object.entries(x.metadata ?? {})) {
278205
278236
  if (ret[p3]) {
@@ -278308,7 +278339,7 @@ var require_asset_manifest_artifact = __commonJS({
278308
278339
  "use strict";
278309
278340
  Object.defineProperty(exports2, "__esModule", { value: true });
278310
278341
  exports2.AssetManifestArtifact = void 0;
278311
- var fs57 = require("fs");
278342
+ var fs58 = require("fs");
278312
278343
  var path54 = require("path");
278313
278344
  var cloud_artifact_1 = require_cloud_artifact();
278314
278345
  var error_1 = require_error2();
@@ -278354,7 +278385,7 @@ var require_asset_manifest_artifact = __commonJS({
278354
278385
  if (this._contents !== void 0) {
278355
278386
  return this._contents;
278356
278387
  }
278357
- const contents = this._contents = JSON.parse(fs57.readFileSync(this.file, "utf-8"));
278388
+ const contents = this._contents = JSON.parse(fs58.readFileSync(this.file, "utf-8"));
278358
278389
  return contents;
278359
278390
  }
278360
278391
  };
@@ -278415,7 +278446,7 @@ var require_cloudformation_artifact = __commonJS({
278415
278446
  "use strict";
278416
278447
  Object.defineProperty(exports2, "__esModule", { value: true });
278417
278448
  exports2.CloudFormationStackArtifact = void 0;
278418
- var fs57 = require("fs");
278449
+ var fs58 = require("fs");
278419
278450
  var path54 = require("path");
278420
278451
  var cxschema12 = require_lib2();
278421
278452
  var cloud_artifact_1 = require_cloud_artifact();
@@ -278487,7 +278518,7 @@ var require_cloudformation_artifact = __commonJS({
278487
278518
  */
278488
278519
  get template() {
278489
278520
  if (this._template === void 0) {
278490
- this._template = JSON.parse(fs57.readFileSync(this.templateFullPath, "utf-8"));
278521
+ this._template = JSON.parse(fs58.readFileSync(this.templateFullPath, "utf-8"));
278491
278522
  }
278492
278523
  return this._template;
278493
278524
  }
@@ -278672,8 +278703,8 @@ var require_cloud_assembly = __commonJS({
278672
278703
  "use strict";
278673
278704
  Object.defineProperty(exports2, "__esModule", { value: true });
278674
278705
  exports2.CloudAssemblyBuilder = exports2.CloudAssembly = void 0;
278675
- var fs57 = require("fs");
278676
- var os14 = require("os");
278706
+ var fs58 = require("fs");
278707
+ var os15 = require("os");
278677
278708
  var path54 = require("path");
278678
278709
  var cxschema12 = require_lib2();
278679
278710
  var cloudformation_artifact_1 = require_cloudformation_artifact();
@@ -278738,7 +278769,7 @@ var require_cloud_assembly = __commonJS({
278738
278769
  */
278739
278770
  static cleanupTemporaryDirectories() {
278740
278771
  for (const dir of TEMPORARY_ASSEMBLY_DIRS2) {
278741
- fs57.rmSync(dir, { recursive: true, force: true });
278772
+ fs58.rmSync(dir, { recursive: true, force: true });
278742
278773
  }
278743
278774
  TEMPORARY_ASSEMBLY_DIRS2.splice(0, TEMPORARY_ASSEMBLY_DIRS2.length);
278744
278775
  }
@@ -278953,7 +278984,7 @@ var require_cloud_assembly = __commonJS({
278953
278984
  manifest = filterUndefined2(manifest);
278954
278985
  const manifestFilePath = path54.join(this.outdir, MANIFEST_FILE4);
278955
278986
  cxschema12.Manifest.saveAssemblyManifest(manifest, manifestFilePath);
278956
- fs57.writeFileSync(path54.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
278987
+ fs58.writeFileSync(path54.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
278957
278988
  return new CloudAssembly8(this.outdir);
278958
278989
  }
278959
278990
  /**
@@ -278979,7 +279010,7 @@ var require_cloud_assembly = __commonJS({
278979
279010
  * Delete the cloud assembly directory
278980
279011
  */
278981
279012
  delete() {
278982
- fs57.rmSync(this.outdir, { recursive: true, force: true });
279013
+ fs58.rmSync(this.outdir, { recursive: true, force: true });
278983
279014
  }
278984
279015
  };
278985
279016
  exports2.CloudAssemblyBuilder = CloudAssemblyBuilder3;
@@ -279008,18 +279039,18 @@ var require_cloud_assembly = __commonJS({
279008
279039
  if (outdir) {
279009
279040
  return outdir;
279010
279041
  }
279011
- const tmpDir = fs57.mkdtempSync(path54.join(fs57.realpathSync(os14.tmpdir()), "cdk.out"));
279042
+ const tmpDir = fs58.mkdtempSync(path54.join(fs58.realpathSync(os15.tmpdir()), "cdk.out"));
279012
279043
  TEMPORARY_ASSEMBLY_DIRS2.push(tmpDir);
279013
279044
  return outdir ?? tmpDir;
279014
279045
  }
279015
279046
  __name(determineOutputDirectory2, "determineOutputDirectory");
279016
279047
  function ensureDirSync2(dir) {
279017
- if (fs57.existsSync(dir)) {
279018
- if (!fs57.statSync(dir).isDirectory()) {
279048
+ if (fs58.existsSync(dir)) {
279049
+ if (!fs58.statSync(dir).isDirectory()) {
279019
279050
  throw new error_1.CloudAssemblyError(`${dir} must be a directory`);
279020
279051
  }
279021
279052
  } else {
279022
- fs57.mkdirSync(dir, { recursive: true });
279053
+ fs58.mkdirSync(dir, { recursive: true });
279023
279054
  }
279024
279055
  }
279025
279056
  __name(ensureDirSync2, "ensureDirSync");
@@ -281273,7 +281304,13 @@ function synthParametersFromSettings(settings) {
281273
281304
  return {
281274
281305
  context: contextFromSettings(settings),
281275
281306
  env: {
281276
- ...settings.get(["debugApp"]) ? debugEnvVars : {}
281307
+ ...settings.get(["debugApp"]) ? debugEnvVars : {},
281308
+ // When validation is disabled (e.g. via the CLI's `--no-validation`), forward
281309
+ // it to the app process as an environment variable so framework-side validation
281310
+ // layers can honor it. This is read in framework code that has no access to a
281311
+ // construct tree, which is why it is an environment variable rather than context.
281312
+ // Only an explicit `false` disables it, so a missing setting fails safe (validation on).
281313
+ ...settings.get(["validation"]) === false ? { CDK_VALIDATION: "false" } : {}
281277
281314
  }
281278
281315
  };
281279
281316
  }
@@ -281426,6 +281463,7 @@ function settingsFromSynthOptions(synthOpts = {}) {
281426
281463
  versionReporting: true,
281427
281464
  assetMetadata: true,
281428
281465
  assetStaging: true,
281466
+ validation: true,
281429
281467
  ...synthOpts
281430
281468
  }, true);
281431
281469
  }
@@ -283569,7 +283607,7 @@ function ensureNonEmptyResources(template) {
283569
283607
  };
283570
283608
  }
283571
283609
  }
283572
- function parseAndValidateConstructPaths(paths) {
283610
+ function resolveStackAndConstructPaths(paths, availableStackIds) {
283573
283611
  if (paths.length === 0) {
283574
283612
  throw new ToolkitError("MissingConstructPath", "At least one construct path is required (e.g. cdk orphan MyStack/MyTable)");
283575
283613
  }
@@ -283577,25 +283615,31 @@ function parseAndValidateConstructPaths(paths) {
283577
283615
  let stackId;
283578
283616
  for (const raw of paths) {
283579
283617
  const p3 = raw.replace(/^\//, "");
283580
- const slashIdx = p3.indexOf("/");
283581
- if (slashIdx < 0) {
283582
- throw new ToolkitError("InvalidConstructPath", `Construct path '${raw}' must include both a stack name and a construct path separated by '/' (e.g. MyStack/MyTable)`);
283618
+ const matchedStack = availableStackIds.filter((id) => p3 === id || p3.startsWith(`${id}/`)).sort((a6, b6) => b6.length - a6.length)[0];
283619
+ if (!matchedStack) {
283620
+ throw new ToolkitError(
283621
+ "StackNotFound",
283622
+ `No stack found for construct path '${raw}'. Available stacks: ${availableStackIds.join(", ")}`
283623
+ );
283583
283624
  }
283584
- const thisStack = p3.substring(0, slashIdx);
283585
- const constructPath = p3.substring(slashIdx + 1);
283586
- if (stackId && thisStack !== stackId) {
283587
- throw new ToolkitError("MultipleStacks", `All construct paths must reference the same stack, but got '${stackId}' and '${thisStack}'`);
283625
+ const constructPath = p3.substring(matchedStack.length + 1);
283626
+ if (constructPath === "") {
283627
+ throw new ToolkitError(
283628
+ "InvalidConstructPath",
283629
+ `Construct path '${raw}' must include a construct path within the stack (e.g. ${matchedStack}/MyTable)`
283630
+ );
283631
+ }
283632
+ if (stackId && matchedStack !== stackId) {
283633
+ throw new ToolkitError("MultipleStacks", `All construct paths must reference the same stack, but got '${stackId}' and '${matchedStack}'`);
283588
283634
  }
283589
- stackId = thisStack;
283635
+ stackId = matchedStack;
283590
283636
  constructPaths.push(constructPath);
283591
283637
  }
283592
283638
  return { stackId, constructPaths };
283593
283639
  }
283594
- var import_cloud_assembly_api13;
283595
283640
  var init_helpers2 = __esm({
283596
283641
  "../@aws-cdk/toolkit-lib/lib/api/orphan/private/helpers.ts"() {
283597
283642
  "use strict";
283598
- import_cloud_assembly_api13 = __toESM(require_lib3());
283599
283643
  init_toolkit_error();
283600
283644
  __name(walkObject, "walkObject");
283601
283645
  __name(replaceInObject, "replaceInObject");
@@ -283603,7 +283647,7 @@ var init_helpers2 = __esm({
283603
283647
  __name(removeDependsOn, "removeDependsOn");
283604
283648
  __name(assertDeploySucceeded, "assertDeploySucceeded");
283605
283649
  __name(ensureNonEmptyResources, "ensureNonEmptyResources");
283606
- __name(parseAndValidateConstructPaths, "parseAndValidateConstructPaths");
283650
+ __name(resolveStackAndConstructPaths, "resolveStackAndConstructPaths");
283607
283651
  }
283608
283652
  });
283609
283653
 
@@ -287033,8 +287077,8 @@ var init_esm2 = __esm({
287033
287077
  }
287034
287078
  return this._userIgnored(path54, stats);
287035
287079
  }
287036
- _isntIgnored(path54, stat8) {
287037
- return !this._isIgnored(path54, stat8);
287080
+ _isntIgnored(path54, stat9) {
287081
+ return !this._isIgnored(path54, stat9);
287038
287082
  }
287039
287083
  /**
287040
287084
  * Provides a set of common helpers and properties relating to symlink handling.
@@ -288803,7 +288847,7 @@ async function replaceAwsPlaceholders2(object, aws) {
288803
288847
  account = /* @__PURE__ */ __name(() => Promise.resolve(a6), "account");
288804
288848
  return a6;
288805
288849
  }, "account");
288806
- return import_cloud_assembly_api14.EnvironmentPlaceholders.replaceAsync(object, {
288850
+ return import_cloud_assembly_api13.EnvironmentPlaceholders.replaceAsync(object, {
288807
288851
  async region() {
288808
288852
  return object.region ?? aws.discoverDefaultRegion();
288809
288853
  },
@@ -288815,12 +288859,12 @@ async function replaceAwsPlaceholders2(object, aws) {
288815
288859
  }
288816
288860
  });
288817
288861
  }
288818
- var import_cdk_assets_lib5, import_cloud_assembly_api14, RefactoringContext;
288862
+ var import_cdk_assets_lib5, import_cloud_assembly_api13, RefactoringContext;
288819
288863
  var init_context3 = __esm({
288820
288864
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/context.ts"() {
288821
288865
  "use strict";
288822
288866
  import_cdk_assets_lib5 = __toESM(require_lib5());
288823
- import_cloud_assembly_api14 = __toESM(require_lib3());
288867
+ import_cloud_assembly_api13 = __toESM(require_lib3());
288824
288868
  init_cloudformation4();
288825
288869
  init_digest();
288826
288870
  init_toolkit_error();
@@ -289218,8 +289262,8 @@ function countAssemblyResults(span, assembly) {
289218
289262
  const stacksRecursively = assembly.stacksRecursively;
289219
289263
  span.incCounter("stacks", stacksRecursively.length);
289220
289264
  span.incCounter("assemblies", asmCount(assembly));
289221
- span.incCounter("errorAnns", sum3(stacksRecursively.map((s) => s.messages.filter((m4) => m4.level === import_cloud_assembly_api15.SynthesisMessageLevel.ERROR).length)));
289222
- span.incCounter("warnings", sum3(stacksRecursively.map((s) => s.messages.filter((m4) => m4.level === import_cloud_assembly_api15.SynthesisMessageLevel.WARNING).length)));
289265
+ span.incCounter("errorAnns", sum3(stacksRecursively.map((s) => s.messages.filter((m4) => m4.level === import_cloud_assembly_api14.SynthesisMessageLevel.ERROR).length)));
289266
+ span.incCounter("warnings", sum3(stacksRecursively.map((s) => s.messages.filter((m4) => m4.level === import_cloud_assembly_api14.SynthesisMessageLevel.WARNING).length)));
289223
289267
  const annotationErrorCodes = stacksRecursively.flatMap((s) => Object.values(s.metadata).flatMap((ms) => ms.filter((m4) => m4.type === ANNOTATION_ERROR_CODE_TYPE)));
289224
289268
  for (const annotationErrorCode of annotationErrorCodes) {
289225
289269
  span.incCounter(`errorAnn:${annotationErrorCode.data}`);
@@ -289232,11 +289276,11 @@ function countAssemblyResults(span, assembly) {
289232
289276
  function sum3(xs) {
289233
289277
  return xs.reduce((a6, b6) => a6 + b6, 0);
289234
289278
  }
289235
- var import_cloud_assembly_api15, ANNOTATION_ERROR_CODE_TYPE;
289279
+ var import_cloud_assembly_api14, ANNOTATION_ERROR_CODE_TYPE;
289236
289280
  var init_count_assembly_results = __esm({
289237
289281
  "../@aws-cdk/toolkit-lib/lib/toolkit/private/count-assembly-results.ts"() {
289238
289282
  "use strict";
289239
- import_cloud_assembly_api15 = __toESM(require_lib3());
289283
+ import_cloud_assembly_api14 = __toESM(require_lib3());
289240
289284
  __name(countAssemblyResults, "countAssemblyResults");
289241
289285
  __name(sum3, "sum");
289242
289286
  ANNOTATION_ERROR_CODE_TYPE = "aws:cdk:error-code";
@@ -289778,6 +289822,7 @@ function formatValidationReports(fileRoot, reports) {
289778
289822
  });
289779
289823
  return [
289780
289824
  ...pluginFailures.map(formatPluginFailure),
289825
+ ...successfullyExecutedPlugins.flatMap((r6) => r6.preamble ? [`${import_chalk26.default.underline(sanitize(r6.pluginName))}: ${sanitize(r6.preamble)}`] : []),
289781
289826
  ...violations.map((v) => formatViolationBlock(fileRoot, v))
289782
289827
  ];
289783
289828
  }
@@ -289854,7 +289899,7 @@ function formatConstructInfo(fileRoot, construct) {
289854
289899
  const logicalId = sanitize(construct.cloudFormationResource?.logicalId);
289855
289900
  if (construct.constructPath) {
289856
289901
  const cPath = sanitize(construct.constructPath);
289857
- parts.push(logicalId ? `${import_chalk26.default.bold(cPath)} (${logicalId})` : import_chalk26.default.bold(cPath));
289902
+ parts.push(logicalId ? `${cPath} (${logicalId})` : cPath);
289858
289903
  } else {
289859
289904
  if (construct.cloudFormationResource?.templatePath) {
289860
289905
  parts.push(humanFriendlyFilename(fileRoot, sanitize(construct.cloudFormationResource.templatePath)));
@@ -291217,16 +291262,13 @@ ${deployResult.stackArn}`));
291217
291262
  try {
291218
291263
  this.requireUnstableFeature("orphan");
291219
291264
  const ioHelper = asIoHelper(this.ioHost, "orphan");
291220
- const parsed = parseAndValidateConstructPaths(options.constructPaths);
291221
291265
  const assembly = __using(_stack, await synthAndMeasure(ioHelper, cx, ALL_STACKS), true);
291222
291266
  const allStacks = await assembly.selectStacksV2(ALL_STACKS);
291267
+ const parsed = resolveStackAndConstructPaths(
291268
+ options.constructPaths,
291269
+ allStacks.stackArtifacts.map((s) => s.hierarchicalId)
291270
+ );
291223
291271
  const stack = allStacks.stackArtifacts.find((s) => s.hierarchicalId === parsed.stackId);
291224
- if (!stack) {
291225
- throw new ToolkitError(
291226
- "StackNotFound",
291227
- `No stack found with construct ID '${parsed.stackId}'. Available stacks: ${allStacks.stackArtifacts.map((s) => s.hierarchicalId).join(", ")}`
291228
- );
291229
- }
291230
291272
  const deployments = await this.deploymentsForAction("orphan");
291231
291273
  const orphaner = new ResourceOrphaner({
291232
291274
  deployments,
@@ -292583,12 +292625,12 @@ var init_installation_id = __esm({
292583
292625
  async function getLibraryVersion(ioHelper) {
292584
292626
  try {
292585
292627
  const command6 = `node -e 'process.stdout.write(require.resolve("aws-cdk-lib"))'`;
292586
- const { stdout } = await (0, import_util69.promisify)(import_child_process.exec)(command6);
292587
- if (!fs38.existsSync(stdout)) {
292628
+ const { stdout: stdout2 } = await (0, import_util69.promisify)(import_child_process.exec)(command6);
292629
+ if (!fs38.existsSync(stdout2)) {
292588
292630
  await ioHelper.defaults.trace('Could not get CDK Library Version: require.resolve("aws-cdk-lib") did not return a file path');
292589
292631
  return;
292590
292632
  }
292591
- const pathToPackageJson = path37.join(path37.dirname(stdout), "package.json");
292633
+ const pathToPackageJson = path37.join(path37.dirname(stdout2), "package.json");
292592
292634
  const packageJson = fs38.readJSONSync(pathToPackageJson);
292593
292635
  if (!packageJson.version) {
292594
292636
  await ioHelper.defaults.trace("Could not get CDK Library Version: package.json does not have version field");
@@ -293881,7 +293923,14 @@ var require_cli_type_registry = __commonJS({
293881
293923
  description: "Check your set-up for potential problems"
293882
293924
  },
293883
293925
  lsp: {
293884
- description: "Start the CDK Language Server (LSP) over stdio for editor and AI-agent integration"
293926
+ description: "Start the CDK Language Server (LSP) over stdio for editor and AI-agent integration",
293927
+ options: {
293928
+ features: {
293929
+ type: "boolean",
293930
+ default: false,
293931
+ desc: "Print the LSP feature manifest as JSON and exit instead of starting the server. Lets a client probe LSP presence and capabilities without opening a session."
293932
+ }
293933
+ }
293885
293934
  },
293886
293935
  orphan: {
293887
293936
  arg: {
@@ -294221,11 +294270,38 @@ function isValidWrapperUserAgent(value2) {
294221
294270
  if (!VALID_USER_AGENTS.includes(name)) return false;
294222
294271
  return mode === "sandbox" || mode === "production";
294223
294272
  }
294224
- var import_node_crypto16, import_toolkit_lib3, ABORTED_ERROR_MESSAGE, VALID_USER_AGENTS, TelemetrySession;
294273
+ async function tryDetectAmznPackage() {
294274
+ try {
294275
+ await fs41.stat(pathlib.join(os11.homedir(), ".midway"));
294276
+ } catch {
294277
+ return;
294278
+ }
294279
+ try {
294280
+ const configFile = await fs41.readFile("Config", "utf-8");
294281
+ const m4 = configFile.match(/^package\.(\S+)\s*=/m);
294282
+ if (m4) {
294283
+ return m4[1];
294284
+ }
294285
+ } catch {
294286
+ }
294287
+ try {
294288
+ const ionFile = await fs41.readFile("brazil.ion", "utf-8");
294289
+ const m4 = ionFile.match(/(^|\s)name:\s*"([^"]+)"/m);
294290
+ if (m4) {
294291
+ return m4[2];
294292
+ }
294293
+ } catch {
294294
+ }
294295
+ return void 0;
294296
+ }
294297
+ var import_node_crypto16, fs41, os11, pathlib, import_toolkit_lib3, ABORTED_ERROR_MESSAGE, VALID_USER_AGENTS, TelemetrySession;
294225
294298
  var init_session = __esm({
294226
294299
  "lib/cli/telemetry/session.ts"() {
294227
294300
  "use strict";
294228
294301
  import_node_crypto16 = require("node:crypto");
294302
+ fs41 = __toESM(require("node:fs/promises"));
294303
+ os11 = __toESM(require("os"));
294304
+ pathlib = __toESM(require("path"));
294229
294305
  import_toolkit_lib3 = __toESM(require_lib12());
294230
294306
  init_installation_id();
294231
294307
  init_library_version();
@@ -294274,7 +294350,8 @@ var init_session = __esm({
294274
294350
  sessionId: (0, import_node_crypto16.randomUUID)(),
294275
294351
  telemetryVersion: "2.0",
294276
294352
  cdkCliVersion: versionNumber2(),
294277
- cdkLibraryVersion: await getLibraryVersion(this.ioHost.asIoHelper())
294353
+ cdkLibraryVersion: await getLibraryVersion(this.ioHost.asIoHelper()),
294354
+ amznPackage: await tryDetectAmznPackage()
294278
294355
  },
294279
294356
  event: {
294280
294357
  command: {
@@ -294448,6 +294525,7 @@ var init_session = __esm({
294448
294525
  __name(isAbortedError, "isAbortedError");
294449
294526
  __name(mutable, "mutable");
294450
294527
  __name(isValidWrapperUserAgent, "isValidWrapperUserAgent");
294528
+ __name(tryDetectAmznPackage, "tryDetectAmznPackage");
294451
294529
  }
294452
294530
  });
294453
294531
 
@@ -294560,12 +294638,12 @@ var init_endpoint_sink = __esm({
294560
294638
  });
294561
294639
 
294562
294640
  // lib/cli/telemetry/sink/file-sink.ts
294563
- var import_toolkit_lib5, fs41, FileTelemetrySink;
294641
+ var import_toolkit_lib5, fs42, FileTelemetrySink;
294564
294642
  var init_file_sink = __esm({
294565
294643
  "lib/cli/telemetry/sink/file-sink.ts"() {
294566
294644
  "use strict";
294567
294645
  import_toolkit_lib5 = __toESM(require_lib12());
294568
- fs41 = __toESM(require_lib4());
294646
+ fs42 = __toESM(require_lib4());
294569
294647
  init_api_private();
294570
294648
  FileTelemetrySink = class {
294571
294649
  static {
@@ -294579,20 +294657,20 @@ var init_file_sink = __esm({
294579
294657
  constructor(props) {
294580
294658
  this.ioHelper = IoHelper.fromActionAwareIoHost(props.ioHost);
294581
294659
  this.logFilePath = props.logFilePath;
294582
- if (fs41.existsSync(this.logFilePath)) {
294660
+ if (fs42.existsSync(this.logFilePath)) {
294583
294661
  throw new import_toolkit_lib5.ToolkitError("TelemetryFileExists", `Telemetry file already exists at ${this.logFilePath}`);
294584
294662
  }
294585
- fs41.ensureFileSync(this.logFilePath);
294586
- fs41.writeJsonSync(this.logFilePath, []);
294663
+ fs42.ensureFileSync(this.logFilePath);
294664
+ fs42.writeJsonSync(this.logFilePath, []);
294587
294665
  }
294588
294666
  /**
294589
294667
  * Emit an event.
294590
294668
  */
294591
294669
  async emit(event) {
294592
294670
  try {
294593
- const json = fs41.readJsonSync(this.logFilePath);
294671
+ const json = fs42.readJsonSync(this.logFilePath);
294594
294672
  json.push(event);
294595
- fs41.writeJSONSync(this.logFilePath, json, { spaces: 2 });
294673
+ fs42.writeJSONSync(this.logFilePath, json, { spaces: 2 });
294596
294674
  } catch (e6) {
294597
294675
  await this.ioHelper.defaults.trace(`Failed to add telemetry event: ${e6.message}`);
294598
294676
  }
@@ -295282,7 +295360,12 @@ var init_cli_io_host = __esm({
295282
295360
  * Formats a message for console output with optional color support
295283
295361
  */
295284
295362
  formatMessage(msg) {
295285
- let message_text = this.isTTY ? styleMap2[msg.level](msg.message) : msg.message;
295363
+ let message_text;
295364
+ if (msg.code === "CDK_TOOLKIT_E9600") {
295365
+ message_text = msg.message;
295366
+ } else {
295367
+ message_text = this.isTTY ? styleMap2[msg.level](msg.message) : msg.message;
295368
+ }
295286
295369
  return (msg.level === "debug" || msg.level === "trace" ? `[${this.formatTime(msg.time)}] ${message_text}` : message_text) + "\n";
295287
295370
  }
295288
295371
  /**
@@ -295362,8 +295445,8 @@ async function loadAndLog(ioHelper, fileName) {
295362
295445
  async function settingsFromFile2(ioHelper, fileName) {
295363
295446
  let settings;
295364
295447
  const expanded = expandHomeDir2(fileName);
295365
- if (await fs42.pathExists(expanded)) {
295366
- const data2 = await fs42.readJson(expanded);
295448
+ if (await fs43.pathExists(expanded)) {
295449
+ const data2 = await fs43.readJson(expanded);
295367
295450
  settings = new Settings(data2);
295368
295451
  } else {
295369
295452
  settings = new Settings();
@@ -295405,7 +295488,7 @@ async function warnAboutContextKey(ioHelper, settings, prefix, fileName) {
295405
295488
  }
295406
295489
  function expandHomeDir2(x) {
295407
295490
  if (x.startsWith("~")) {
295408
- return fs_path2.join(os11.homedir(), x.slice(1));
295491
+ return fs_path2.join(os12.homedir(), x.slice(1));
295409
295492
  }
295410
295493
  return x;
295411
295494
  }
@@ -295433,6 +295516,7 @@ async function commandLineArgumentsToSettings(ioHelper, argv) {
295433
295516
  language: argv.language,
295434
295517
  pathMetadata: argv.pathMetadata,
295435
295518
  assetMetadata: argv.assetMetadata,
295519
+ validation: argv.validation,
295436
295520
  profile: argv.profile,
295437
295521
  region: argv.region,
295438
295522
  plugin: argv.plugin,
@@ -295527,14 +295611,14 @@ async function parseStringTagsListToObject(ioHelper, argTags) {
295527
295611
  }
295528
295612
  return tags.length > 0 ? tags : void 0;
295529
295613
  }
295530
- var os11, fs_path2, import_toolkit_lib8, fs42, PROJECT_CONFIG, USER_DEFAULTS, CONTEXT_KEY, BUNDLING_COMMANDS, Configuration;
295614
+ var os12, fs_path2, import_toolkit_lib8, fs43, PROJECT_CONFIG, USER_DEFAULTS, CONTEXT_KEY, BUNDLING_COMMANDS, Configuration;
295531
295615
  var init_user_configuration = __esm({
295532
295616
  "lib/cli/user-configuration.ts"() {
295533
295617
  "use strict";
295534
- os11 = __toESM(require("os"));
295618
+ os12 = __toESM(require("os"));
295535
295619
  fs_path2 = __toESM(require("path"));
295536
295620
  import_toolkit_lib8 = __toESM(require_lib12());
295537
- fs42 = __toESM(require_lib4());
295621
+ fs43 = __toESM(require_lib4());
295538
295622
  init_context4();
295539
295623
  init_settings2();
295540
295624
  init_context4();
@@ -295916,15 +296000,15 @@ async function shell2(ioHelper, command6) {
295916
296000
  stdio: ["ignore", "pipe", "inherit"]
295917
296001
  });
295918
296002
  return new Promise((resolve16, reject) => {
295919
- const stdout = new Array();
296003
+ const stdout2 = new Array();
295920
296004
  child.stdout.on("data", (chunk) => {
295921
296005
  process.stdout.write(chunk);
295922
- stdout.push(chunk);
296006
+ stdout2.push(chunk);
295923
296007
  });
295924
296008
  child.once("error", reject);
295925
296009
  child.once("exit", (code) => {
295926
296010
  if (code === 0) {
295927
- resolve16(Buffer.from(stdout).toString("utf-8"));
296011
+ resolve16(Buffer.from(stdout2).toString("utf-8"));
295928
296012
  } else {
295929
296013
  reject(new import_toolkit_lib9.ToolkitError("CommandFailed", `${commandLine} exited with error code ${code}`));
295930
296014
  }
@@ -296247,7 +296331,7 @@ async function loadLocalTemplate(fromPath, templatePath) {
296247
296331
  let actualTemplatePath = fromPath;
296248
296332
  if (templatePath) {
296249
296333
  actualTemplatePath = path42.join(fromPath, templatePath);
296250
- if (!await fs43.pathExists(actualTemplatePath)) {
296334
+ if (!await fs44.pathExists(actualTemplatePath)) {
296251
296335
  throw new import_toolkit_lib11.ToolkitError("TemplatePathNotFound", `Template path does not exist: ${actualTemplatePath}`);
296252
296336
  }
296253
296337
  }
@@ -296300,7 +296384,7 @@ async function resolveLanguage(ioHelper, template, requestedLanguage, type) {
296300
296384
  })();
296301
296385
  }
296302
296386
  async function findPotentialTemplates(repositoryPath) {
296303
- const entries = await fs43.readdir(repositoryPath, { withFileTypes: true });
296387
+ const entries = await fs44.readdir(repositoryPath, { withFileTypes: true });
296304
296388
  const templateValidationPromises = entries.filter((entry) => entry.isDirectory() && !entry.name.startsWith(".")).map(async (entry) => {
296305
296389
  try {
296306
296390
  const templatePath = path42.join(repositoryPath, entry.name);
@@ -296315,7 +296399,7 @@ async function findPotentialTemplates(repositoryPath) {
296315
296399
  }
296316
296400
  async function getLanguageDirectories(templatePath) {
296317
296401
  try {
296318
- const entries = await fs43.readdir(templatePath, { withFileTypes: true });
296402
+ const entries = await fs44.readdir(templatePath, { withFileTypes: true });
296319
296403
  const languageValidationPromises = entries.filter((directoryEntry) => directoryEntry.isDirectory() && SUPPORTED_LANGUAGE_NAMES.includes(directoryEntry.name)).map(async (directoryEntry) => {
296320
296404
  const languageDirectoryPath = path42.join(templatePath, directoryEntry.name);
296321
296405
  try {
@@ -296339,7 +296423,7 @@ async function hasLanguageFiles(directoryPath, extensions) {
296339
296423
  while (dirsToCheck.length > 0) {
296340
296424
  const currentDir = dirsToCheck.pop();
296341
296425
  try {
296342
- const entries = await fs43.readdir(currentDir, { withFileTypes: true });
296426
+ const entries = await fs44.readdir(currentDir, { withFileTypes: true });
296343
296427
  for (const entry of entries) {
296344
296428
  if (entry.isFile() && extensions.some((ext) => entry.name.endsWith(ext))) {
296345
296429
  return true;
@@ -296407,7 +296491,7 @@ async function availableInitTemplates() {
296407
296491
  }
296408
296492
  }
296409
296493
  async function listDirectory(dirPath) {
296410
- return (await fs43.readdir(dirPath)).filter((p3) => !p3.startsWith(".")).filter((p3) => !(p3 === "LICENSE")).filter((p3) => !(p3 === INFO_DOT_JSON)).sort();
296494
+ return (await fs44.readdir(dirPath)).filter((p3) => !p3.startsWith(".")).filter((p3) => !(p3 === "LICENSE")).filter((p3) => !(p3 === INFO_DOT_JSON)).sort();
296411
296495
  }
296412
296496
  async function printAvailableTemplates(ioHelper, language) {
296413
296497
  await ioHelper.defaults.info("Available templates:");
@@ -296427,8 +296511,8 @@ async function initializeProject(ioHelper, template, language, canUseNetwork, ge
296427
296511
  if (migrate) {
296428
296512
  await template.addMigrateContext(workDir);
296429
296513
  }
296430
- if (await fs43.pathExists(`${workDir}/README.md`)) {
296431
- const readme = await fs43.readFile(`${workDir}/README.md`, { encoding: "utf-8" });
296514
+ if (await fs44.pathExists(`${workDir}/README.md`)) {
296515
+ const readme = await fs44.readFile(`${workDir}/README.md`, { encoding: "utf-8" });
296432
296516
  await ioHelper.defaults.info(import_chalk30.default.green(readme));
296433
296517
  }
296434
296518
  if (!generateOnly) {
@@ -296439,11 +296523,11 @@ async function initializeProject(ioHelper, template, language, canUseNetwork, ge
296439
296523
  }
296440
296524
  async function assertIsEmptyDirectory(workDir) {
296441
296525
  try {
296442
- const stats = await fs43.stat(workDir);
296526
+ const stats = await fs44.stat(workDir);
296443
296527
  if (!stats.isDirectory()) {
296444
296528
  throw new import_toolkit_lib11.ToolkitError("PathNotDirectory", `Path exists but is not a directory: ${workDir}`);
296445
296529
  }
296446
- const files = await fs43.readdir(workDir);
296530
+ const files = await fs44.readdir(workDir);
296447
296531
  const visibleFiles = files.filter((f6) => !f6.startsWith("."));
296448
296532
  if (visibleFiles.length > 0) {
296449
296533
  throw new import_toolkit_lib11.ToolkitError(
@@ -296512,8 +296596,8 @@ async function postInstallTypescript(ioHelper, canUseNetwork, cwd, packageManage
296512
296596
  }
296513
296597
  }
296514
296598
  async function postInstallJava(ioHelper, canUseNetwork, cwd) {
296515
- const hasGradleBuild = await fs43.pathExists(path42.join(cwd, "build.gradle"));
296516
- const hasMavenPom = await fs43.pathExists(path42.join(cwd, "pom.xml"));
296599
+ const hasGradleBuild = await fs44.pathExists(path42.join(cwd, "build.gradle"));
296600
+ const hasMavenPom = await fs44.pathExists(path42.join(cwd, "pom.xml"));
296517
296601
  if (hasGradleBuild) {
296518
296602
  const gradleWarning = "Please run './gradlew build'!";
296519
296603
  if (!canUseNetwork) {
@@ -296546,7 +296630,7 @@ async function postInstallJava(ioHelper, canUseNetwork, cwd) {
296546
296630
  }
296547
296631
  async function postInstallPython(ioHelper, cwd) {
296548
296632
  const python = pythonExecutable();
296549
- const hasRequirements = await fs43.pathExists(path42.join(cwd, "requirements.txt"));
296633
+ const hasRequirements = await fs44.pathExists(path42.join(cwd, "requirements.txt"));
296550
296634
  if (hasRequirements) {
296551
296635
  await ioHelper.defaults.info(`Executing ${import_chalk30.default.green("Creating virtualenv...")}`);
296552
296636
  try {
@@ -296596,7 +296680,7 @@ async function postInstallFSharp(ioHelper, canUseNetwork, cwd) {
296596
296680
  }
296597
296681
  async function isInGitRepository(dir) {
296598
296682
  while (true) {
296599
- if (await fs43.pathExists(path42.join(dir, ".git"))) {
296683
+ if (await fs44.pathExists(path42.join(dir, ".git"))) {
296600
296684
  return true;
296601
296685
  }
296602
296686
  if (isRoot(dir)) {
@@ -296614,25 +296698,25 @@ async function execute(ioHelper, cmd, args, { cwd }) {
296614
296698
  shell: true,
296615
296699
  stdio: ["ignore", "pipe", "inherit"]
296616
296700
  });
296617
- let stdout = "";
296618
- child.stdout.on("data", (chunk) => stdout += chunk.toString());
296701
+ let stdout2 = "";
296702
+ child.stdout.on("data", (chunk) => stdout2 += chunk.toString());
296619
296703
  return new Promise((ok, fail) => {
296620
296704
  child.once("error", (err) => fail(err));
296621
296705
  child.once("exit", (status) => {
296622
296706
  if (status === 0) {
296623
- return ok(stdout);
296707
+ return ok(stdout2);
296624
296708
  } else {
296625
296709
  return fail(new import_toolkit_lib11.ToolkitError("CommandFailed", `${cmd} exited with status ${status}`));
296626
296710
  }
296627
296711
  });
296628
296712
  }).catch(async (err) => {
296629
- await ioHelper.defaults.error(stdout);
296713
+ await ioHelper.defaults.error(stdout2);
296630
296714
  throw err;
296631
296715
  });
296632
296716
  }
296633
296717
  async function loadInitVersions() {
296634
296718
  const initVersionFile = path42.join(cliRootDir(), "lib", "init-templates", ".init-version.json");
296635
- const contents = JSON.parse(await fs43.readFile(initVersionFile, { encoding: "utf-8" }));
296719
+ const contents = JSON.parse(await fs44.readFile(initVersionFile, { encoding: "utf-8" }));
296636
296720
  const ret = {
296637
296721
  "aws-cdk-lib": contents["aws-cdk-lib"],
296638
296722
  "constructs": contents.constructs,
@@ -296647,11 +296731,11 @@ async function loadInitVersions() {
296647
296731
  }
296648
296732
  async function currentlyRecommendedAwsCdkLibFlags() {
296649
296733
  const recommendedFlagsFile = path42.join(cliRootDir(), "lib", "init-templates", ".recommended-feature-flags.json");
296650
- const flags = JSON.parse(await fs43.readFile(recommendedFlagsFile, { encoding: "utf-8" }));
296734
+ const flags = JSON.parse(await fs44.readFile(recommendedFlagsFile, { encoding: "utf-8" }));
296651
296735
  const sortedKeys = Object.keys(flags).sort();
296652
296736
  return Object.fromEntries(sortedKeys.map((k6) => [k6, flags[k6]]));
296653
296737
  }
296654
- var childProcess, path42, import_toolkit_lib11, import_chalk30, fs43, camelCase, decamelize, SUPPORTED_LANGUAGE_NAMES, INFO_DOT_JSON, InitTemplate;
296738
+ var childProcess, path42, import_toolkit_lib11, import_chalk30, fs44, camelCase, decamelize, SUPPORTED_LANGUAGE_NAMES, INFO_DOT_JSON, InitTemplate;
296655
296739
  var init_init = __esm({
296656
296740
  "lib/commands/init/init.ts"() {
296657
296741
  "use strict";
@@ -296659,7 +296743,7 @@ var init_init = __esm({
296659
296743
  path42 = __toESM(require("path"));
296660
296744
  import_toolkit_lib11 = __toESM(require_lib12());
296661
296745
  import_chalk30 = __toESM(require_source());
296662
- fs43 = __toESM(require_lib4());
296746
+ fs44 = __toESM(require_lib4());
296663
296747
  init_init_hooks();
296664
296748
  init_root_dir();
296665
296749
  init_version();
@@ -296701,12 +296785,12 @@ var init_init = __esm({
296701
296785
  static async fromName(templatesDir, name) {
296702
296786
  const basePath = path42.join(templatesDir, name);
296703
296787
  const languages = await listDirectory(basePath);
296704
- const initInfo = await fs43.readJson(path42.join(basePath, INFO_DOT_JSON));
296788
+ const initInfo = await fs44.readJson(path42.join(basePath, INFO_DOT_JSON));
296705
296789
  return new _InitTemplate(basePath, name, languages, initInfo, "builtin" /* BUILT_IN */);
296706
296790
  }
296707
296791
  static async fromPath(templatePath) {
296708
296792
  const basePath = path42.resolve(templatePath);
296709
- if (!await fs43.pathExists(basePath)) {
296793
+ if (!await fs44.pathExists(basePath)) {
296710
296794
  throw new import_toolkit_lib11.ToolkitError("TemplatePathNotFound", `Template path does not exist: ${basePath}`);
296711
296795
  }
296712
296796
  let templateSourcePath = basePath;
@@ -296778,8 +296862,8 @@ var init_init = __esm({
296778
296862
  substitutePlaceholdersIn: /* @__PURE__ */ __name(async (...fileNames) => {
296779
296863
  const fileProcessingPromises = fileNames.map(async (fileName) => {
296780
296864
  const fullPath = path42.join(targetDirectory, fileName);
296781
- const template = await fs43.readFile(fullPath, { encoding: "utf-8" });
296782
- await fs43.writeFile(fullPath, expandPlaceholders(template, language, projectInfo, packageManager));
296865
+ const template = await fs44.readFile(fullPath, { encoding: "utf-8" });
296866
+ await fs44.writeFile(fullPath, expandPlaceholders(template, language, projectInfo, packageManager));
296783
296867
  });
296784
296868
  await Promise.all(fileProcessingPromises);
296785
296869
  }, "substitutePlaceholdersIn"),
@@ -296789,11 +296873,11 @@ var init_init = __esm({
296789
296873
  }
296790
296874
  }
296791
296875
  async installFiles(sourceDirectory, targetDirectory, language, project, packageManager) {
296792
- for (const file of await fs43.readdir(sourceDirectory)) {
296876
+ for (const file of await fs44.readdir(sourceDirectory)) {
296793
296877
  const fromFile = path42.join(sourceDirectory, file);
296794
296878
  const toFile = path42.join(targetDirectory, expandPlaceholders(file, language, project, packageManager));
296795
- if ((await fs43.stat(fromFile)).isDirectory()) {
296796
- await fs43.mkdir(toFile);
296879
+ if ((await fs44.stat(fromFile)).isDirectory()) {
296880
+ await fs44.mkdir(toFile);
296797
296881
  await this.installFiles(fromFile, toFile, language, project, packageManager);
296798
296882
  continue;
296799
296883
  } else if (file.match(/^.*\.template\.[^.]+$/)) {
@@ -296802,19 +296886,19 @@ var init_init = __esm({
296802
296886
  } else if (file.match(/^.*\.hook\.(d.)?[^.]+$/)) {
296803
296887
  continue;
296804
296888
  } else {
296805
- await fs43.copy(fromFile, toFile);
296889
+ await fs44.copy(fromFile, toFile);
296806
296890
  }
296807
296891
  }
296808
296892
  }
296809
296893
  async installProcessed(templatePath, toFile, language, project, packageManager) {
296810
- const template = await fs43.readFile(templatePath, { encoding: "utf-8" });
296811
- await fs43.writeFile(toFile, expandPlaceholders(template, language, project, packageManager));
296894
+ const template = await fs44.readFile(templatePath, { encoding: "utf-8" });
296895
+ await fs44.writeFile(toFile, expandPlaceholders(template, language, project, packageManager));
296812
296896
  }
296813
296897
  /**
296814
296898
  * Copy template files without processing placeholders (for custom templates)
296815
296899
  */
296816
296900
  async installFilesWithoutProcessing(sourceDirectory, targetDirectory) {
296817
- await fs43.copy(sourceDirectory, targetDirectory, {
296901
+ await fs44.copy(sourceDirectory, targetDirectory, {
296818
296902
  filter: /* @__PURE__ */ __name((src) => {
296819
296903
  const filename = path42.basename(src);
296820
296904
  return !filename.match(/^.*\.hook\.(d.)?[^.]+$/);
@@ -296827,27 +296911,27 @@ var init_init = __esm({
296827
296911
  */
296828
296912
  async applyFutureFlags(projectDir) {
296829
296913
  const cdkJson = path42.join(projectDir, "cdk.json");
296830
- if (!await fs43.pathExists(cdkJson)) {
296914
+ if (!await fs44.pathExists(cdkJson)) {
296831
296915
  return;
296832
296916
  }
296833
- const config2 = await fs43.readJson(cdkJson);
296917
+ const config2 = await fs44.readJson(cdkJson);
296834
296918
  config2.context = {
296835
296919
  ...config2.context,
296836
296920
  ...await currentlyRecommendedAwsCdkLibFlags()
296837
296921
  };
296838
- await fs43.writeJson(cdkJson, config2, { spaces: 2 });
296922
+ await fs44.writeJson(cdkJson, config2, { spaces: 2 });
296839
296923
  }
296840
296924
  async addMigrateContext(projectDir) {
296841
296925
  const cdkJson = path42.join(projectDir, "cdk.json");
296842
- if (!await fs43.pathExists(cdkJson)) {
296926
+ if (!await fs44.pathExists(cdkJson)) {
296843
296927
  return;
296844
296928
  }
296845
- const config2 = await fs43.readJson(cdkJson);
296929
+ const config2 = await fs44.readJson(cdkJson);
296846
296930
  config2.context = {
296847
296931
  ...config2.context,
296848
296932
  "cdk-migrate": true
296849
296933
  };
296850
- await fs43.writeJson(cdkJson, config2, { spaces: 2 });
296934
+ await fs44.writeJson(cdkJson, config2, { spaces: 2 });
296851
296935
  }
296852
296936
  };
296853
296937
  __name(expandPlaceholders, "expandPlaceholders");
@@ -296894,8 +296978,8 @@ async function generateCdkApp(ioHelper, stackName, stack, language, outputPath,
296894
296978
  const resolvedOutputPath = path43.join(outputPath ?? process.cwd(), stackName);
296895
296979
  const formattedStackName = decamelize2(stackName);
296896
296980
  try {
296897
- fs44.rmSync(resolvedOutputPath, { recursive: true, force: true });
296898
- fs44.mkdirSync(resolvedOutputPath, { recursive: true });
296981
+ fs45.rmSync(resolvedOutputPath, { recursive: true, force: true });
296982
+ fs45.mkdirSync(resolvedOutputPath, { recursive: true });
296899
296983
  const generateOnly = compress2;
296900
296984
  await cliInit({
296901
296985
  ioHelper,
@@ -296930,13 +297014,13 @@ async function generateCdkApp(ioHelper, stackName, stack, language, outputPath,
296930
297014
  `${language} is not supported by CDK Migrate. Please choose from: ${MIGRATE_SUPPORTED_LANGUAGES.join(", ")}`
296931
297015
  );
296932
297016
  }
296933
- fs44.writeFileSync(stackFileName, stack);
297017
+ fs45.writeFileSync(stackFileName, stack);
296934
297018
  if (compress2) {
296935
297019
  await (0, import_zip.zipDirectory)(resolvedOutputPath, `${resolvedOutputPath}.zip`);
296936
- fs44.rmSync(resolvedOutputPath, { recursive: true, force: true });
297020
+ fs45.rmSync(resolvedOutputPath, { recursive: true, force: true });
296937
297021
  }
296938
297022
  } catch (error3) {
296939
- fs44.rmSync(resolvedOutputPath, { recursive: true, force: true });
297023
+ fs45.rmSync(resolvedOutputPath, { recursive: true, force: true });
296940
297024
  throw error3;
296941
297025
  }
296942
297026
  }
@@ -296949,16 +297033,16 @@ function generateStack(template, stackName, language) {
296949
297033
  }
296950
297034
  }
296951
297035
  function readFromPath(inputPath) {
296952
- let readFile11;
297036
+ let readFile12;
296953
297037
  try {
296954
- readFile11 = fs44.readFileSync(inputPath, "utf8");
297038
+ readFile12 = fs45.readFileSync(inputPath, "utf8");
296955
297039
  } catch (e6) {
296956
297040
  throw new import_toolkit_lib12.ToolkitError("InvalidPath", `'${inputPath}' is not a valid path.`);
296957
297041
  }
296958
- if (readFile11 == "") {
297042
+ if (readFile12 == "") {
296959
297043
  throw new import_toolkit_lib12.ToolkitError("EmptyTemplateFile", `Cloudformation template filepath: '${inputPath}' is an empty file.`);
296960
297044
  }
296961
- return readFile11;
297045
+ return readFile12;
296962
297046
  }
296963
297047
  async function readFromStack(stackName, sdkProvider, environment) {
296964
297048
  const cloudFormation = (await sdkProvider.forEnvironment(environment, 0 /* ForReading */)).sdk.cloudFormation();
@@ -297073,8 +297157,8 @@ function chunks(list2, chunkSize) {
297073
297157
  }
297074
297158
  function setEnvironment(account, region) {
297075
297159
  return {
297076
- account: account ?? import_cloud_assembly_api16.UNKNOWN_ACCOUNT,
297077
- region: region ?? import_cloud_assembly_api16.UNKNOWN_REGION,
297160
+ account: account ?? import_cloud_assembly_api15.UNKNOWN_ACCOUNT,
297161
+ region: region ?? import_cloud_assembly_api15.UNKNOWN_REGION,
297078
297162
  name: "cdk-migrate-env"
297079
297163
  };
297080
297164
  }
@@ -297169,7 +297253,7 @@ function writeMigrateJsonFile(outputPath, stackName, migrateJson) {
297169
297253
  "Source": migrateJson.source,
297170
297254
  "Resources": migrateJson.resources
297171
297255
  };
297172
- fs44.writeFileSync(
297256
+ fs45.writeFileSync(
297173
297257
  `${path43.join(outputPath ?? process.cwd(), stackName)}/migrate.json`,
297174
297258
  JSON.stringify(outputToJson, null, 2)
297175
297259
  );
@@ -297222,7 +297306,7 @@ async function buildCfnClient(sdkProvider, environment) {
297222
297306
  return sdk.cloudFormation();
297223
297307
  }
297224
297308
  function appendWarningsToReadme(filepath, resources) {
297225
- const readme = fs44.readFileSync(filepath, "utf8");
297309
+ const readme = fs45.readFileSync(filepath, "utf8");
297226
297310
  const lines = readme.split("\n");
297227
297311
  const index = lines.findIndex((line) => line.trim() === "Enjoy!");
297228
297312
  let linesToAdd = ["\n## Warnings"];
@@ -297246,7 +297330,7 @@ function appendWarningsToReadme(filepath, resources) {
297246
297330
  }
297247
297331
  }
297248
297332
  lines.splice(index, 0, ...linesToAdd);
297249
- fs44.writeFileSync(filepath, lines.join("\n"));
297333
+ fs45.writeFileSync(filepath, lines.join("\n"));
297250
297334
  }
297251
297335
  function deduplicateResources(resources) {
297252
297336
  let uniqueResources = {};
@@ -297257,13 +297341,13 @@ function deduplicateResources(resources) {
297257
297341
  }
297258
297342
  return Object.values(uniqueResources);
297259
297343
  }
297260
- var fs44, path43, import_cloud_assembly_api16, import_zip, import_toolkit_lib12, cdk_from_cfn, import_chalk31, camelCase2, decamelize2, MIGRATE_SUPPORTED_LANGUAGES, FilterType, CfnTemplateGeneratorProvider;
297344
+ var fs45, path43, import_cloud_assembly_api15, import_zip, import_toolkit_lib12, cdk_from_cfn, import_chalk31, camelCase2, decamelize2, MIGRATE_SUPPORTED_LANGUAGES, FilterType, CfnTemplateGeneratorProvider;
297261
297345
  var init_migrate = __esm({
297262
297346
  "lib/commands/migrate.ts"() {
297263
297347
  "use strict";
297264
- fs44 = __toESM(require("fs"));
297348
+ fs45 = __toESM(require("fs"));
297265
297349
  path43 = __toESM(require("path"));
297266
- import_cloud_assembly_api16 = __toESM(require_lib3());
297350
+ import_cloud_assembly_api15 = __toESM(require_lib3());
297267
297351
  import_zip = __toESM(require_zip());
297268
297352
  import_toolkit_lib12 = __toESM(require_lib12());
297269
297353
  cdk_from_cfn = __toESM(require_cdk_from_cfn());
@@ -297782,7 +297866,7 @@ var init_environments = __esm({
297782
297866
  // lib/cli/util/fs-util.ts
297783
297867
  async function tryReadJson(fileName) {
297784
297868
  try {
297785
- return JSON.parse(await fs45.readFile(fileName, "utf-8"));
297869
+ return JSON.parse(await fs46.readFile(fileName, "utf-8"));
297786
297870
  } catch (e6) {
297787
297871
  if (e6.code === "ENOENT") {
297788
297872
  return void 0;
@@ -297790,11 +297874,11 @@ async function tryReadJson(fileName) {
297790
297874
  throw e6;
297791
297875
  }
297792
297876
  }
297793
- var fs45;
297877
+ var fs46;
297794
297878
  var init_fs_util = __esm({
297795
297879
  "lib/cli/util/fs-util.ts"() {
297796
297880
  "use strict";
297797
- fs45 = __toESM(require("fs/promises"));
297881
+ fs46 = __toESM(require("fs/promises"));
297798
297882
  __name(tryReadJson, "tryReadJson");
297799
297883
  }
297800
297884
  });
@@ -297826,7 +297910,7 @@ async function execProgram(aws, ioHelper, config2) {
297826
297910
  if (!app) {
297827
297911
  throw new import_toolkit_lib16.ToolkitError("AppRequired", `--app is required either in command-line, in ${PROJECT_CONFIG} or in ${USER_DEFAULTS}`);
297828
297912
  }
297829
- if (await fs46.pathExists(app) && (await fs46.stat(app)).isDirectory()) {
297913
+ if (await fs47.pathExists(app) && (await fs47.stat(app)).isDirectory()) {
297830
297914
  await debugFn("--app points to a cloud assembly, so we bypass synth");
297831
297915
  const lock = await new RWLock(app).acquireRead();
297832
297916
  return { assembly: createAssembly(app), lock };
@@ -297843,7 +297927,7 @@ async function execProgram(aws, ioHelper, config2) {
297843
297927
  throw new import_toolkit_lib16.ToolkitError("OutputNotString", `--output takes a string, got ${JSON.stringify(outdir)}`);
297844
297928
  }
297845
297929
  try {
297846
- await fs46.mkdirp(outdir);
297930
+ await fs47.mkdirp(outdir);
297847
297931
  } catch (error3) {
297848
297932
  throw new import_toolkit_lib16.ToolkitError("OutputDirCreateFailed", `Could not create output directory ${outdir} (${error3.message})`);
297849
297933
  }
@@ -297853,10 +297937,10 @@ async function execProgram(aws, ioHelper, config2) {
297853
297937
  env3[cxapi11.CLI_VERSION_ENV] = versionNumber2();
297854
297938
  const writerLock = await new RWLock(outdir).acquireWrite();
297855
297939
  errorFile = path44.join(outdir, "error.txt");
297856
- await fs46.promises.rm(errorFile, { force: true });
297940
+ await fs47.promises.rm(errorFile, { force: true });
297857
297941
  env3.CDK_ERROR_FILE = errorFile;
297858
297942
  const perfCountersFile = path44.join(outdir, "performance-counters.json");
297859
- await fs46.promises.rm(perfCountersFile, { force: true });
297943
+ await fs47.promises.rm(perfCountersFile, { force: true });
297860
297944
  env3.CDK_PERF_COUNTERS_FILE = perfCountersFile;
297861
297945
  await debugFn((0, import_util75.format)("env:", env3));
297862
297946
  const cleanupTemp = writeContextToEnv(env3, context, "add-process-env-later");
@@ -297896,7 +297980,7 @@ async function execProgram(aws, ioHelper, config2) {
297896
297980
  }
297897
297981
  function createAssembly(appDir) {
297898
297982
  try {
297899
- return new import_cloud_assembly_api17.CloudAssembly(appDir, {
297983
+ return new import_cloud_assembly_api16.CloudAssembly(appDir, {
297900
297984
  // We sort as we deploy
297901
297985
  topoSort: false
297902
297986
  });
@@ -297911,17 +297995,17 @@ function createAssembly(appDir) {
297911
297995
  function noUndefined2(xs) {
297912
297996
  return Object.fromEntries(Object.entries(xs).filter(([_, v]) => v !== void 0));
297913
297997
  }
297914
- var path44, import_util75, import_cloud_assembly_api17, cxschema11, cxapi11, import_toolkit_lib16, fs46;
297998
+ var path44, import_util75, import_cloud_assembly_api16, cxschema11, cxapi11, import_toolkit_lib16, fs47;
297915
297999
  var init_exec2 = __esm({
297916
298000
  "lib/cxapp/exec.ts"() {
297917
298001
  "use strict";
297918
298002
  path44 = __toESM(require("path"));
297919
298003
  import_util75 = require("util");
297920
- import_cloud_assembly_api17 = __toESM(require_lib3());
298004
+ import_cloud_assembly_api16 = __toESM(require_lib3());
297921
298005
  cxschema11 = __toESM(require_lib2());
297922
298006
  cxapi11 = __toESM(require_lib11());
297923
298007
  import_toolkit_lib16 = __toESM(require_lib12());
297924
- fs46 = __toESM(require_lib4());
298008
+ fs47 = __toESM(require_lib4());
297925
298009
  init_api();
297926
298010
  init_user_configuration();
297927
298011
  init_fs_util();
@@ -298546,16 +298630,16 @@ function effectiveValue(flag) {
298546
298630
  function defaultValue(flag) {
298547
298631
  return flag.unconfiguredBehavesLike?.v2 ?? false;
298548
298632
  }
298549
- var os12, path45, import_cloudformation_diff4, import_toolkit_lib17, import_chalk32, fs47, import_p_queue, FlagOperations;
298633
+ var os13, path45, import_cloudformation_diff4, import_toolkit_lib17, import_chalk32, fs48, import_p_queue, FlagOperations;
298550
298634
  var init_operations = __esm({
298551
298635
  "lib/commands/flags/operations.ts"() {
298552
298636
  "use strict";
298553
- os12 = __toESM(require("os"));
298637
+ os13 = __toESM(require("os"));
298554
298638
  path45 = __toESM(require("path"));
298555
298639
  import_cloudformation_diff4 = __toESM(require_lib9());
298556
298640
  import_toolkit_lib17 = __toESM(require_lib12());
298557
298641
  import_chalk32 = __toESM(require_source());
298558
- fs47 = __toESM(require_lib4());
298642
+ fs48 = __toESM(require_lib4());
298559
298643
  import_p_queue = __toESM(require_dist3());
298560
298644
  init_obsolete_flags();
298561
298645
  init_api();
@@ -298656,7 +298740,7 @@ var init_operations = __esm({
298656
298740
  }
298657
298741
  /** Sets flags that don't cause template changes */
298658
298742
  async setSafeFlags(params) {
298659
- const cdkJson = await JSON.parse(await fs47.readFile(path45.join(process.cwd(), "cdk.json"), "utf-8"));
298743
+ const cdkJson = await JSON.parse(await fs48.readFile(path45.join(process.cwd(), "cdk.json"), "utf-8"));
298660
298744
  this.app = params.app || cdkJson.app;
298661
298745
  const isUsingTsNode = this.app.includes("ts-node");
298662
298746
  if (isUsingTsNode && !this.app.includes("-T") && !this.app.includes("--transpileOnly")) {
@@ -298684,7 +298768,7 @@ var init_operations = __esm({
298684
298768
  async initializeSafetyCheck() {
298685
298769
  const baseContext = new import_toolkit_lib17.CdkAppMultiContext(process.cwd());
298686
298770
  this.baseContextValues = { ...await baseContext.read(), ...this.cliContextValues };
298687
- this.baselineTempDir = fs47.mkdtempSync(path45.join(os12.tmpdir(), "cdk-baseline-"));
298771
+ this.baselineTempDir = fs48.mkdtempSync(path45.join(os13.tmpdir(), "cdk-baseline-"));
298688
298772
  const mergedContext = new import_toolkit_lib17.MemoryContext(this.baseContextValues);
298689
298773
  const baseSource = await this.toolkit.fromCdkApp(this.app, {
298690
298774
  contextStore: mergedContext,
@@ -298698,7 +298782,7 @@ var init_operations = __esm({
298698
298782
  /** Cleans up temporary directories created during safety checks */
298699
298783
  async cleanupSafetyCheck() {
298700
298784
  if (this.baselineTempDir) {
298701
- await fs47.remove(this.baselineTempDir);
298785
+ await fs48.remove(this.baselineTempDir);
298702
298786
  this.baselineTempDir = void 0;
298703
298787
  }
298704
298788
  }
@@ -298716,7 +298800,7 @@ var init_operations = __esm({
298716
298800
  /** Tests if a set of context values causes template changes by synthesizing and diffing */
298717
298801
  async testBatch(contextValues) {
298718
298802
  const testContext = new import_toolkit_lib17.MemoryContext(contextValues);
298719
- const tempDir = fs47.mkdtempSync(path45.join(os12.tmpdir(), "cdk-test-"));
298803
+ const tempDir = fs48.mkdtempSync(path45.join(os13.tmpdir(), "cdk-test-"));
298720
298804
  const testSource = await this.toolkit.fromCdkApp(this.app, {
298721
298805
  contextStore: testContext,
298722
298806
  outdir: tempDir
@@ -298740,7 +298824,7 @@ var init_operations = __esm({
298740
298824
  }
298741
298825
  return true;
298742
298826
  } finally {
298743
- await fs47.remove(tempDir);
298827
+ await fs48.remove(tempDir);
298744
298828
  }
298745
298829
  }
298746
298830
  /** Uses binary search to isolate which flags are safe to set without template changes */
@@ -298778,11 +298862,11 @@ var init_operations = __esm({
298778
298862
  const baseContext = new import_toolkit_lib17.CdkAppMultiContext(process.cwd());
298779
298863
  const baseContextValues = { ...await baseContext.read(), ...this.cliContextValues };
298780
298864
  const memoryContext = new import_toolkit_lib17.MemoryContext(baseContextValues);
298781
- const cdkJson = await JSON.parse(await fs47.readFile(path45.join(process.cwd(), "cdk.json"), "utf-8"));
298865
+ const cdkJson = await JSON.parse(await fs48.readFile(path45.join(process.cwd(), "cdk.json"), "utf-8"));
298782
298866
  const app = cdkJson.app;
298783
298867
  const source = await this.toolkit.fromCdkApp(app, {
298784
298868
  contextStore: memoryContext,
298785
- outdir: fs47.mkdtempSync(path45.join(os12.tmpdir(), "cdk-original-"))
298869
+ outdir: fs48.mkdtempSync(path45.join(os13.tmpdir(), "cdk-original-"))
298786
298870
  });
298787
298871
  const updateObj = await this.buildUpdateObject(flagNames, params, baseContextValues);
298788
298872
  if (!updateObj) return false;
@@ -298791,7 +298875,7 @@ var init_operations = __esm({
298791
298875
  const assembly = cx.cloudAssembly;
298792
298876
  const modifiedSource = await this.toolkit.fromCdkApp(app, {
298793
298877
  contextStore: memoryContext,
298794
- outdir: fs47.mkdtempSync(path45.join(os12.tmpdir(), "cdk-temp-"))
298878
+ outdir: fs48.mkdtempSync(path45.join(os13.tmpdir(), "cdk-temp-"))
298795
298879
  });
298796
298880
  const modifiedCx = await this.toolkit.synth(modifiedSource);
298797
298881
  const allStacks = assembly.stacksRecursively;
@@ -298866,13 +298950,13 @@ var init_operations = __esm({
298866
298950
  async cleanupTempDirectories() {
298867
298951
  const originalDir = path45.join(process.cwd(), "original");
298868
298952
  const tempDir = path45.join(process.cwd(), "temp");
298869
- await fs47.remove(originalDir);
298870
- await fs47.remove(tempDir);
298953
+ await fs48.remove(originalDir);
298954
+ await fs48.remove(tempDir);
298871
298955
  }
298872
298956
  /** Actually modifies the cdk.json file with the new flag values */
298873
298957
  async modifyValues(flagNames, params) {
298874
298958
  const cdkJsonPath = path45.join(process.cwd(), "cdk.json");
298875
- const cdkJsonContent = await fs47.readFile(cdkJsonPath, "utf-8");
298959
+ const cdkJsonContent = await fs48.readFile(cdkJsonPath, "utf-8");
298876
298960
  const cdkJson = JSON.parse(cdkJsonContent);
298877
298961
  if (flagNames.length === 1 && !params.safe && !params.all) {
298878
298962
  const boolValue = params.value === "true";
@@ -298885,7 +298969,7 @@ var init_operations = __esm({
298885
298969
  cdkJson.context[flagName] = newValue;
298886
298970
  }
298887
298971
  }
298888
- await fs47.writeFile(cdkJsonPath, JSON.stringify(cdkJson, null, 2), "utf-8");
298972
+ await fs48.writeFile(cdkJsonPath, JSON.stringify(cdkJson, null, 2), "utf-8");
298889
298973
  }
298890
298974
  /** Displays flags in a table format, either specific flags or filtered by criteria */
298891
298975
  async displayFlags(params) {
@@ -299024,7 +299108,7 @@ async function displayFlagsMessage(ioHost, toolkit, cloudExecutable) {
299024
299108
  function requiresApproval(requireApproval, permissionChangeType) {
299025
299109
  return requireApproval === import_cloud_assembly_schema9.RequireApproval.ANYCHANGE || requireApproval === import_cloud_assembly_schema9.RequireApproval.BROADENING && permissionChangeType === import_toolkit_lib18.PermissionChangeType.BROADENING;
299026
299110
  }
299027
- var import_node_crypto17, path46, import_node_util8, cxapi12, import_cloud_assembly_schema9, import_toolkit_lib18, import_chalk33, fs48, pLimit5, FILE_EVENTS2, InternalToolkit, CdkToolkit, WorkGraphDeploymentActions;
299111
+ var import_node_crypto17, path46, import_node_util8, cxapi12, import_cloud_assembly_schema9, import_toolkit_lib18, import_chalk33, fs49, pLimit5, FILE_EVENTS2, InternalToolkit, CdkToolkit, WorkGraphDeploymentActions;
299028
299112
  var init_cdk_toolkit = __esm({
299029
299113
  "lib/cli/cdk-toolkit.ts"() {
299030
299114
  "use strict";
@@ -299037,7 +299121,7 @@ var init_cdk_toolkit = __esm({
299037
299121
  import_chalk33 = __toESM(require_source());
299038
299122
  init_esm2();
299039
299123
  init_handler();
299040
- fs48 = __toESM(require_lib4());
299124
+ fs49 = __toESM(require_lib4());
299041
299125
  init_io_host2();
299042
299126
  init_user_configuration();
299043
299127
  init_api_private();
@@ -299141,7 +299225,7 @@ var init_cdk_toolkit = __esm({
299141
299225
  "Can only select one stack when comparing to fixed template. Use --exclusively to avoid selecting multiple stacks."
299142
299226
  );
299143
299227
  }
299144
- if (!await fs48.pathExists(options.templatePath)) {
299228
+ if (!await fs49.pathExists(options.templatePath)) {
299145
299229
  throw new import_toolkit_lib18.ToolkitError("TemplateNotFound", `There is no file at ${options.templatePath}`);
299146
299230
  }
299147
299231
  if (options.importExistingResources) {
@@ -299150,7 +299234,7 @@ var init_cdk_toolkit = __esm({
299150
299234
  "Can only use --import-existing-resources flag when comparing against deployed stacks."
299151
299235
  );
299152
299236
  }
299153
- const template = deserializeStructure(await fs48.readFile(options.templatePath, { encoding: "utf-8" }));
299237
+ const template = deserializeStructure(await fs49.readFile(options.templatePath, { encoding: "utf-8" }));
299154
299238
  const formatter = new DiffFormatter({
299155
299239
  templateInfo: {
299156
299240
  oldTemplate: template,
@@ -299592,8 +299676,8 @@ var init_cdk_toolkit = __esm({
299592
299676
  }
299593
299677
  if (options.recordResourceMapping) {
299594
299678
  const outputFile = options.recordResourceMapping;
299595
- fs48.ensureFileSync(outputFile);
299596
- await fs48.writeJson(outputFile, actualImport.resourceMap, {
299679
+ fs49.ensureFileSync(outputFile);
299680
+ await fs49.writeJson(outputFile, actualImport.resourceMap, {
299597
299681
  spaces: 2,
299598
299682
  encoding: "utf8"
299599
299683
  });
@@ -299898,10 +299982,10 @@ var init_cdk_toolkit = __esm({
299898
299982
  if (filePath == null) {
299899
299983
  return [];
299900
299984
  }
299901
- if (!fs48.pathExistsSync(filePath)) {
299985
+ if (!fs49.pathExistsSync(filePath)) {
299902
299986
  throw new import_toolkit_lib18.ToolkitError("MappingFileNotFound", `The mapping file ${filePath} does not exist`);
299903
299987
  }
299904
- const groups = parseMappingGroups(fs48.readFileSync(filePath).toString("utf-8"));
299988
+ const groups = parseMappingGroups(fs49.readFileSync(filePath).toString("utf-8"));
299905
299989
  return revert ? groups.map((group4) => ({
299906
299990
  ...group4,
299907
299991
  resources: Object.fromEntries(Object.entries(group4.resources ?? {}).map(([src, dst]) => [dst, src]))
@@ -300313,8 +300397,8 @@ var init_cdk_toolkit = __esm({
300313
300397
  }
300314
300398
  }
300315
300399
  async writeOutputs(outputsFile) {
300316
- fs48.ensureFileSync(outputsFile);
300317
- await fs48.writeJson(outputsFile, this.stackOutputs, {
300400
+ fs49.ensureFileSync(outputsFile);
300401
+ await fs49.writeJson(outputsFile, this.stackOutputs, {
300318
300402
  spaces: 2,
300319
300403
  encoding: "utf8"
300320
300404
  });
@@ -300424,14 +300508,14 @@ async function displayVersionMessage(ioHelper, currentVersion = versionNumber(),
300424
300508
  await ioHelper.defaults.debug(`Could not run version check - ${err.message}`);
300425
300509
  }
300426
300510
  }
300427
- var path47, import_toolkit_lib20, import_chalk34, fs49, semver5, ONE_DAY_IN_SECONDS, UPGRADE_DOCUMENTATION_LINKS, VersionCheckTTL;
300511
+ var path47, import_toolkit_lib20, import_chalk34, fs50, semver5, ONE_DAY_IN_SECONDS, UPGRADE_DOCUMENTATION_LINKS, VersionCheckTTL;
300428
300512
  var init_display_version = __esm({
300429
300513
  "lib/cli/display-version.ts"() {
300430
300514
  "use strict";
300431
300515
  path47 = __toESM(require("path"));
300432
300516
  import_toolkit_lib20 = __toESM(require_lib12());
300433
300517
  import_chalk34 = __toESM(require_source());
300434
- fs49 = __toESM(require_lib4());
300518
+ fs50 = __toESM(require_lib4());
300435
300519
  semver5 = __toESM(require_semver4());
300436
300520
  init_util9();
300437
300521
  init_console_formatters();
@@ -300453,8 +300537,8 @@ var init_display_version = __esm({
300453
300537
  constructor(file, ttlSecs) {
300454
300538
  this.file = file || _VersionCheckTTL.timestampFilePath();
300455
300539
  try {
300456
- fs49.mkdirsSync(path47.dirname(this.file));
300457
- fs49.accessSync(path47.dirname(this.file), fs49.constants.W_OK);
300540
+ fs50.mkdirsSync(path47.dirname(this.file));
300541
+ fs50.accessSync(path47.dirname(this.file), fs50.constants.W_OK);
300458
300542
  } catch {
300459
300543
  throw new import_toolkit_lib20.ToolkitError("DirectoryNotWritable", `Directory (${path47.dirname(this.file)}) is not writable.`);
300460
300544
  }
@@ -300462,7 +300546,7 @@ var init_display_version = __esm({
300462
300546
  }
300463
300547
  async hasExpired() {
300464
300548
  try {
300465
- const lastCheckTime = (await fs49.stat(this.file)).mtimeMs;
300549
+ const lastCheckTime = (await fs50.stat(this.file)).mtimeMs;
300466
300550
  const today = (/* @__PURE__ */ new Date()).getTime();
300467
300551
  if ((today - lastCheckTime) / 1e3 > this.ttlSecs) {
300468
300552
  return true;
@@ -300480,7 +300564,7 @@ var init_display_version = __esm({
300480
300564
  if (!latestVersion) {
300481
300565
  latestVersion = "";
300482
300566
  }
300483
- await fs49.writeFile(this.file, latestVersion);
300567
+ await fs50.writeFile(this.file, latestVersion);
300484
300568
  }
300485
300569
  };
300486
300570
  __name(getVersionMessages, "getVersionMessages");
@@ -300766,8 +300850,8 @@ var require_middleware = __commonJS({
300766
300850
  var require_require_directory = __commonJS({
300767
300851
  "../../node_modules/require-directory/index.js"(exports2, module2) {
300768
300852
  "use strict";
300769
- var fs57 = require("fs");
300770
- var join54 = require("path").join;
300853
+ var fs58 = require("fs");
300854
+ var join55 = require("path").join;
300771
300855
  var resolve16 = require("path").resolve;
300772
300856
  var dirname17 = require("path").dirname;
300773
300857
  var defaultOptions2 = {
@@ -300804,9 +300888,9 @@ var require_require_directory = __commonJS({
300804
300888
  }
300805
300889
  }
300806
300890
  path54 = !path54 ? dirname17(m4.filename) : resolve16(dirname17(m4.filename), path54);
300807
- fs57.readdirSync(path54).forEach(function(filename) {
300808
- var joined = join54(path54, filename), files, key, obj;
300809
- if (fs57.statSync(joined).isDirectory() && options.recurse) {
300891
+ fs58.readdirSync(path54).forEach(function(filename) {
300892
+ var joined = join55(path54, filename), files, key, obj;
300893
+ if (fs58.statSync(joined).isDirectory() && options.recurse) {
300810
300894
  files = requireDirectory(m4, joined, options);
300811
300895
  if (Object.keys(files).length) {
300812
300896
  retval[options.rename(filename, joined, filename)] = files;
@@ -303595,7 +303679,7 @@ var require_apply_extends = __commonJS({
303595
303679
  "use strict";
303596
303680
  Object.defineProperty(exports2, "__esModule", { value: true });
303597
303681
  exports2.applyExtends = void 0;
303598
- var fs57 = require("fs");
303682
+ var fs58 = require("fs");
303599
303683
  var path54 = require("path");
303600
303684
  var yerror_1 = require_yerror();
303601
303685
  var previouslyVisitedConfigs = [];
@@ -303647,7 +303731,7 @@ var require_apply_extends = __commonJS({
303647
303731
  throw new yerror_1.YError(`Unable to find extended config '${config2.extends}' in '${cwd}'.`);
303648
303732
  checkForCircularExtends(pathToDefault);
303649
303733
  previouslyVisitedConfigs.push(pathToDefault);
303650
- defaultConfig = isPath ? JSON.parse(fs57.readFileSync(pathToDefault, "utf8")) : require(config2.extends);
303734
+ defaultConfig = isPath ? JSON.parse(fs58.readFileSync(pathToDefault, "utf8")) : require(config2.extends);
303651
303735
  delete config2.extends;
303652
303736
  defaultConfig = applyExtends(defaultConfig, path54.dirname(pathToDefault), mergeExtends);
303653
303737
  }
@@ -303695,7 +303779,7 @@ var require_process_argv = __commonJS({
303695
303779
  // node_modules/y18n/index.js
303696
303780
  var require_y18n = __commonJS({
303697
303781
  "node_modules/y18n/index.js"(exports2, module2) {
303698
- var fs57 = require("fs");
303782
+ var fs58 = require("fs");
303699
303783
  var path54 = require("path");
303700
303784
  var util11 = require("util");
303701
303785
  function Y18N(opts) {
@@ -303752,7 +303836,7 @@ var require_y18n = __commonJS({
303752
303836
  var cb = work[2];
303753
303837
  var languageFile = this._resolveLocaleFile(directory, locale);
303754
303838
  var serializedLocale = JSON.stringify(this.cache[locale], null, 2);
303755
- fs57.writeFile(languageFile, serializedLocale, "utf-8", function(err) {
303839
+ fs58.writeFile(languageFile, serializedLocale, "utf-8", function(err) {
303756
303840
  _this.writeQueue.shift();
303757
303841
  if (_this.writeQueue.length > 0) _this._processWriteQueue();
303758
303842
  cb(err);
@@ -303762,7 +303846,7 @@ var require_y18n = __commonJS({
303762
303846
  var localeLookup = {};
303763
303847
  var languageFile = this._resolveLocaleFile(this.directory, this.locale);
303764
303848
  try {
303765
- localeLookup = JSON.parse(fs57.readFileSync(languageFile, "utf-8"));
303849
+ localeLookup = JSON.parse(fs58.readFileSync(languageFile, "utf-8"));
303766
303850
  } catch (err) {
303767
303851
  if (err instanceof SyntaxError) {
303768
303852
  err.message = "syntax error in " + languageFile;
@@ -303782,7 +303866,7 @@ var require_y18n = __commonJS({
303782
303866
  };
303783
303867
  Y18N.prototype._fileExistsSync = function(file) {
303784
303868
  try {
303785
- return fs57.statSync(file).isFile();
303869
+ return fs58.statSync(file).isFile();
303786
303870
  } catch (err) {
303787
303871
  return false;
303788
303872
  }
@@ -303950,11 +304034,11 @@ var require_locate_path = __commonJS({
303950
304034
  "../../node_modules/find-up/node_modules/locate-path/index.js"(exports2, module2) {
303951
304035
  "use strict";
303952
304036
  var path54 = require("path");
303953
- var fs57 = require("fs");
304037
+ var fs58 = require("fs");
303954
304038
  var { promisify: promisify4 } = require("util");
303955
304039
  var pLocate = require_p_locate();
303956
- var fsStat = promisify4(fs57.stat);
303957
- var fsLStat = promisify4(fs57.lstat);
304040
+ var fsStat = promisify4(fs58.stat);
304041
+ var fsLStat = promisify4(fs58.lstat);
303958
304042
  var typeMappings = {
303959
304043
  directory: "isDirectory",
303960
304044
  file: "isFile"
@@ -303966,7 +304050,7 @@ var require_locate_path = __commonJS({
303966
304050
  throw new Error(`Invalid type specified: ${type}`);
303967
304051
  }
303968
304052
  __name(checkType, "checkType");
303969
- var matchType = /* @__PURE__ */ __name((type, stat8) => type === void 0 || stat8[typeMappings[type]](), "matchType");
304053
+ var matchType = /* @__PURE__ */ __name((type, stat9) => type === void 0 || stat9[typeMappings[type]](), "matchType");
303970
304054
  module2.exports = async (paths, options) => {
303971
304055
  options = {
303972
304056
  cwd: process.cwd(),
@@ -303978,8 +304062,8 @@ var require_locate_path = __commonJS({
303978
304062
  const statFn = options.allowSymlinks ? fsStat : fsLStat;
303979
304063
  return pLocate(paths, async (path_) => {
303980
304064
  try {
303981
- const stat8 = await statFn(path54.resolve(options.cwd, path_));
303982
- return matchType(options.type, stat8);
304065
+ const stat9 = await statFn(path54.resolve(options.cwd, path_));
304066
+ return matchType(options.type, stat9);
303983
304067
  } catch (_) {
303984
304068
  return false;
303985
304069
  }
@@ -303993,11 +304077,11 @@ var require_locate_path = __commonJS({
303993
304077
  ...options
303994
304078
  };
303995
304079
  checkType(options);
303996
- const statFn = options.allowSymlinks ? fs57.statSync : fs57.lstatSync;
304080
+ const statFn = options.allowSymlinks ? fs58.statSync : fs58.lstatSync;
303997
304081
  for (const path_ of paths) {
303998
304082
  try {
303999
- const stat8 = statFn(path54.resolve(options.cwd, path_));
304000
- if (matchType(options.type, stat8)) {
304083
+ const stat9 = statFn(path54.resolve(options.cwd, path_));
304084
+ if (matchType(options.type, stat9)) {
304001
304085
  return path_;
304002
304086
  }
304003
304087
  } catch (_) {
@@ -304011,9 +304095,9 @@ var require_locate_path = __commonJS({
304011
304095
  var require_path_exists2 = __commonJS({
304012
304096
  "../../node_modules/path-exists/index.js"(exports2, module2) {
304013
304097
  "use strict";
304014
- var fs57 = require("fs");
304098
+ var fs58 = require("fs");
304015
304099
  var { promisify: promisify4 } = require("util");
304016
- var pAccess = promisify4(fs57.access);
304100
+ var pAccess = promisify4(fs58.access);
304017
304101
  module2.exports = async (path54) => {
304018
304102
  try {
304019
304103
  await pAccess(path54);
@@ -304024,7 +304108,7 @@ var require_path_exists2 = __commonJS({
304024
304108
  };
304025
304109
  module2.exports.sync = (path54) => {
304026
304110
  try {
304027
- fs57.accessSync(path54);
304111
+ fs58.accessSync(path54);
304028
304112
  return true;
304029
304113
  } catch (_) {
304030
304114
  return false;
@@ -304162,7 +304246,7 @@ var require_yargs = __commonJS({
304162
304246
  var yerror_1 = require_yerror();
304163
304247
  var usage_1 = require_usage();
304164
304248
  var argsert_1 = require_argsert();
304165
- var fs57 = require("fs");
304249
+ var fs58 = require("fs");
304166
304250
  var completion_1 = require_completion();
304167
304251
  var path54 = require("path");
304168
304252
  var validation_1 = require_validation();
@@ -304659,7 +304743,7 @@ var require_yargs = __commonJS({
304659
304743
  cwd: startDir
304660
304744
  });
304661
304745
  common_types_1.assertNotStrictEqual(pkgJsonPath, void 0);
304662
- obj = JSON.parse(fs57.readFileSync(pkgJsonPath).toString());
304746
+ obj = JSON.parse(fs58.readFileSync(pkgJsonPath).toString());
304663
304747
  } catch (noop) {
304664
304748
  }
304665
304749
  pkgs[npath] = obj || {};
@@ -306234,7 +306318,15 @@ function parseCommandLineArguments(args) {
306234
306318
  desc: "the command to use to open the browser, using %u as a placeholder for the path of the file to open",
306235
306319
  type: "string"
306236
306320
  })
306237
- ).command("doctor", "Check your set-up for potential problems").command("lsp", "Start the CDK Language Server (LSP) over stdio for editor and AI-agent integration").command("orphan [PATHS..]", "Detach resources from a CloudFormation stack without deleting them", (yargs2) => yargs2).command(
306321
+ ).command("doctor", "Check your set-up for potential problems").command(
306322
+ "lsp",
306323
+ "Start the CDK Language Server (LSP) over stdio for editor and AI-agent integration",
306324
+ (yargs2) => yargs2.option("features", {
306325
+ default: false,
306326
+ type: "boolean",
306327
+ desc: "Print the LSP feature manifest as JSON and exit instead of starting the server. Lets a client probe LSP presence and capabilities without opening a session."
306328
+ })
306329
+ ).command("orphan [PATHS..]", "Detach resources from a CloudFormation stack without deleting them", (yargs2) => yargs2).command(
306238
306330
  "refactor [STACKS..]",
306239
306331
  "Moves resources between stacks or within the same stack",
306240
306332
  (yargs2) => yargs2.option("additional-stack-name", {
@@ -306300,10 +306392,10 @@ async function checkForPlatformWarnings(ioHelper) {
306300
306392
  }
306301
306393
  }
306302
306394
  async function hasDockerCopyBug() {
306303
- return await runningInDocker() && os13.platform() === "linux" && isVersionBetween(os13.release(), "5.6", "5.10");
306395
+ return await runningInDocker() && os14.platform() === "linux" && isVersionBetween(os14.release(), "5.6", "5.10");
306304
306396
  }
306305
306397
  async function runningInDocker() {
306306
- return fs50.pathExists("/.dockerenv");
306398
+ return fs51.pathExists("/.dockerenv");
306307
306399
  }
306308
306400
  function isVersionBetween(version, lower, upper) {
306309
306401
  const ver = splitVersion(version);
@@ -306329,12 +306421,12 @@ function isVersionBetween(version, lower, upper) {
306329
306421
  function splitVersion(version) {
306330
306422
  return `${version}`.split(".").map((x) => parseInt(x, 10)).map((x) => isNaN(x) ? 0 : x);
306331
306423
  }
306332
- var os13, fs50;
306424
+ var os14, fs51;
306333
306425
  var init_platform_warnings = __esm({
306334
306426
  "lib/cli/platform-warnings.ts"() {
306335
306427
  "use strict";
306336
- os13 = __toESM(require("os"));
306337
- fs50 = __toESM(require_lib4());
306428
+ os14 = __toESM(require("os"));
306429
+ fs51 = __toESM(require_lib4());
306338
306430
  __name(checkForPlatformWarnings, "checkForPlatformWarnings");
306339
306431
  __name(hasDockerCopyBug, "hasDockerCopyBug");
306340
306432
  __name(runningInDocker, "runningInDocker");
@@ -313360,8 +313452,8 @@ var require_file2 = __commonJS({
313360
313452
  debug2("Normalized pathname: %o", filepath);
313361
313453
  const fdHandle = await fs_1.promises.open(filepath, flags, mode);
313362
313454
  const fd = fdHandle.fd;
313363
- const stat8 = await fdHandle.stat();
313364
- if (cache6 && cache6.stat && stat8 && isNotModified(cache6.stat, stat8)) {
313455
+ const stat9 = await fdHandle.stat();
313456
+ if (cache6 && cache6.stat && stat9 && isNotModified(cache6.stat, stat9)) {
313365
313457
  await fdHandle.close();
313366
313458
  throw new notmodified_1.default();
313367
313459
  }
@@ -313370,7 +313462,7 @@ var require_file2 = __commonJS({
313370
313462
  ...opts,
313371
313463
  fd
313372
313464
  });
313373
- rs.stat = stat8;
313465
+ rs.stat = stat9;
313374
313466
  return rs;
313375
313467
  } catch (err) {
313376
313468
  if (err.code === "ENOENT") {
@@ -316974,7 +317066,7 @@ var require_util3 = __commonJS({
316974
317066
  }
316975
317067
  __name(normalize4, "normalize");
316976
317068
  exports2.normalize = normalize4;
316977
- function join54(aRoot, aPath) {
317069
+ function join55(aRoot, aPath) {
316978
317070
  if (aRoot === "") {
316979
317071
  aRoot = ".";
316980
317072
  }
@@ -317006,8 +317098,8 @@ var require_util3 = __commonJS({
317006
317098
  }
317007
317099
  return joined;
317008
317100
  }
317009
- __name(join54, "join");
317010
- exports2.join = join54;
317101
+ __name(join55, "join");
317102
+ exports2.join = join55;
317011
317103
  exports2.isAbsolute = function(aPath) {
317012
317104
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
317013
317105
  };
@@ -317190,7 +317282,7 @@ var require_util3 = __commonJS({
317190
317282
  parsed.path = parsed.path.substring(0, index + 1);
317191
317283
  }
317192
317284
  }
317193
- sourceURL = join54(urlGenerate(parsed), sourceURL);
317285
+ sourceURL = join55(urlGenerate(parsed), sourceURL);
317194
317286
  }
317195
317287
  return normalize4(sourceURL);
317196
317288
  }
@@ -319027,7 +319119,7 @@ var require_escodegen = __commonJS({
319027
319119
  return space ? space : " ";
319028
319120
  }
319029
319121
  __name(noEmptySpace, "noEmptySpace");
319030
- function join54(left, right) {
319122
+ function join55(left, right) {
319031
319123
  var leftSource, rightSource, leftCharCode, rightCharCode;
319032
319124
  leftSource = toSourceNodeWhenNeeded(left).toString();
319033
319125
  if (leftSource.length === 0) {
@@ -319046,7 +319138,7 @@ var require_escodegen = __commonJS({
319046
319138
  }
319047
319139
  return [left, space, right];
319048
319140
  }
319049
- __name(join54, "join");
319141
+ __name(join55, "join");
319050
319142
  function addIndent(stmt) {
319051
319143
  return [base, stmt];
319052
319144
  }
@@ -319374,8 +319466,8 @@ var require_escodegen = __commonJS({
319374
319466
  } else {
319375
319467
  result2.push(that.generateExpression(stmt.left, Precedence.Call, E_TTT));
319376
319468
  }
319377
- result2 = join54(result2, operator);
319378
- result2 = [join54(
319469
+ result2 = join55(result2, operator);
319470
+ result2 = [join55(
319379
319471
  result2,
319380
319472
  that.generateExpression(stmt.right, Precedence.Assignment, E_TTT)
319381
319473
  ), ")"];
@@ -319518,11 +319610,11 @@ var require_escodegen = __commonJS({
319518
319610
  var result2, fragment;
319519
319611
  result2 = ["class"];
319520
319612
  if (stmt.id) {
319521
- result2 = join54(result2, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
319613
+ result2 = join55(result2, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
319522
319614
  }
319523
319615
  if (stmt.superClass) {
319524
- fragment = join54("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
319525
- result2 = join54(result2, fragment);
319616
+ fragment = join55("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
319617
+ result2 = join55(result2, fragment);
319526
319618
  }
319527
319619
  result2.push(space);
319528
319620
  result2.push(this.generateStatement(stmt.body, S_TFFT));
@@ -319535,9 +319627,9 @@ var require_escodegen = __commonJS({
319535
319627
  return escapeDirective(stmt.directive) + this.semicolon(flags);
319536
319628
  }, "DirectiveStatement"),
319537
319629
  DoWhileStatement: /* @__PURE__ */ __name(function(stmt, flags) {
319538
- var result2 = join54("do", this.maybeBlock(stmt.body, S_TFFF));
319630
+ var result2 = join55("do", this.maybeBlock(stmt.body, S_TFFF));
319539
319631
  result2 = this.maybeBlockSuffix(stmt.body, result2);
319540
- return join54(result2, [
319632
+ return join55(result2, [
319541
319633
  "while" + space + "(",
319542
319634
  this.generateExpression(stmt.test, Precedence.Sequence, E_TTT),
319543
319635
  ")" + this.semicolon(flags)
@@ -319573,11 +319665,11 @@ var require_escodegen = __commonJS({
319573
319665
  ExportDefaultDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
319574
319666
  var result2 = ["export"], bodyFlags;
319575
319667
  bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
319576
- result2 = join54(result2, "default");
319668
+ result2 = join55(result2, "default");
319577
319669
  if (isStatement(stmt.declaration)) {
319578
- result2 = join54(result2, this.generateStatement(stmt.declaration, bodyFlags));
319670
+ result2 = join55(result2, this.generateStatement(stmt.declaration, bodyFlags));
319579
319671
  } else {
319580
- result2 = join54(result2, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
319672
+ result2 = join55(result2, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
319581
319673
  }
319582
319674
  return result2;
319583
319675
  }, "ExportDefaultDeclaration"),
@@ -319585,15 +319677,15 @@ var require_escodegen = __commonJS({
319585
319677
  var result2 = ["export"], bodyFlags, that = this;
319586
319678
  bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
319587
319679
  if (stmt.declaration) {
319588
- return join54(result2, this.generateStatement(stmt.declaration, bodyFlags));
319680
+ return join55(result2, this.generateStatement(stmt.declaration, bodyFlags));
319589
319681
  }
319590
319682
  if (stmt.specifiers) {
319591
319683
  if (stmt.specifiers.length === 0) {
319592
- result2 = join54(result2, "{" + space + "}");
319684
+ result2 = join55(result2, "{" + space + "}");
319593
319685
  } else if (stmt.specifiers[0].type === Syntax.ExportBatchSpecifier) {
319594
- result2 = join54(result2, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
319686
+ result2 = join55(result2, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
319595
319687
  } else {
319596
- result2 = join54(result2, "{");
319688
+ result2 = join55(result2, "{");
319597
319689
  withIndent(function(indent2) {
319598
319690
  var i6, iz;
319599
319691
  result2.push(newline);
@@ -319611,7 +319703,7 @@ var require_escodegen = __commonJS({
319611
319703
  result2.push(base + "}");
319612
319704
  }
319613
319705
  if (stmt.source) {
319614
- result2 = join54(result2, [
319706
+ result2 = join55(result2, [
319615
319707
  "from" + space,
319616
319708
  // ModuleSpecifier
319617
319709
  this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
@@ -319702,7 +319794,7 @@ var require_escodegen = __commonJS({
319702
319794
  ];
319703
319795
  cursor2 = 0;
319704
319796
  if (stmt.specifiers[cursor2].type === Syntax.ImportDefaultSpecifier) {
319705
- result2 = join54(result2, [
319797
+ result2 = join55(result2, [
319706
319798
  this.generateExpression(stmt.specifiers[cursor2], Precedence.Sequence, E_TTT)
319707
319799
  ]);
319708
319800
  ++cursor2;
@@ -319712,7 +319804,7 @@ var require_escodegen = __commonJS({
319712
319804
  result2.push(",");
319713
319805
  }
319714
319806
  if (stmt.specifiers[cursor2].type === Syntax.ImportNamespaceSpecifier) {
319715
- result2 = join54(result2, [
319807
+ result2 = join55(result2, [
319716
319808
  space,
319717
319809
  this.generateExpression(stmt.specifiers[cursor2], Precedence.Sequence, E_TTT)
319718
319810
  ]);
@@ -319741,7 +319833,7 @@ var require_escodegen = __commonJS({
319741
319833
  }
319742
319834
  }
319743
319835
  }
319744
- result2 = join54(result2, [
319836
+ result2 = join55(result2, [
319745
319837
  "from" + space,
319746
319838
  // ModuleSpecifier
319747
319839
  this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
@@ -319796,7 +319888,7 @@ var require_escodegen = __commonJS({
319796
319888
  return result2;
319797
319889
  }, "VariableDeclaration"),
319798
319890
  ThrowStatement: /* @__PURE__ */ __name(function(stmt, flags) {
319799
- return [join54(
319891
+ return [join55(
319800
319892
  "throw",
319801
319893
  this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
319802
319894
  ), this.semicolon(flags)];
@@ -319807,7 +319899,7 @@ var require_escodegen = __commonJS({
319807
319899
  result2 = this.maybeBlockSuffix(stmt.block, result2);
319808
319900
  if (stmt.handlers) {
319809
319901
  for (i6 = 0, iz = stmt.handlers.length; i6 < iz; ++i6) {
319810
- result2 = join54(result2, this.generateStatement(stmt.handlers[i6], S_TFFF));
319902
+ result2 = join55(result2, this.generateStatement(stmt.handlers[i6], S_TFFF));
319811
319903
  if (stmt.finalizer || i6 + 1 !== iz) {
319812
319904
  result2 = this.maybeBlockSuffix(stmt.handlers[i6].body, result2);
319813
319905
  }
@@ -319815,7 +319907,7 @@ var require_escodegen = __commonJS({
319815
319907
  } else {
319816
319908
  guardedHandlers = stmt.guardedHandlers || [];
319817
319909
  for (i6 = 0, iz = guardedHandlers.length; i6 < iz; ++i6) {
319818
- result2 = join54(result2, this.generateStatement(guardedHandlers[i6], S_TFFF));
319910
+ result2 = join55(result2, this.generateStatement(guardedHandlers[i6], S_TFFF));
319819
319911
  if (stmt.finalizer || i6 + 1 !== iz) {
319820
319912
  result2 = this.maybeBlockSuffix(guardedHandlers[i6].body, result2);
319821
319913
  }
@@ -319823,13 +319915,13 @@ var require_escodegen = __commonJS({
319823
319915
  if (stmt.handler) {
319824
319916
  if (Array.isArray(stmt.handler)) {
319825
319917
  for (i6 = 0, iz = stmt.handler.length; i6 < iz; ++i6) {
319826
- result2 = join54(result2, this.generateStatement(stmt.handler[i6], S_TFFF));
319918
+ result2 = join55(result2, this.generateStatement(stmt.handler[i6], S_TFFF));
319827
319919
  if (stmt.finalizer || i6 + 1 !== iz) {
319828
319920
  result2 = this.maybeBlockSuffix(stmt.handler[i6].body, result2);
319829
319921
  }
319830
319922
  }
319831
319923
  } else {
319832
- result2 = join54(result2, this.generateStatement(stmt.handler, S_TFFF));
319924
+ result2 = join55(result2, this.generateStatement(stmt.handler, S_TFFF));
319833
319925
  if (stmt.finalizer) {
319834
319926
  result2 = this.maybeBlockSuffix(stmt.handler.body, result2);
319835
319927
  }
@@ -319837,7 +319929,7 @@ var require_escodegen = __commonJS({
319837
319929
  }
319838
319930
  }
319839
319931
  if (stmt.finalizer) {
319840
- result2 = join54(result2, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
319932
+ result2 = join55(result2, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
319841
319933
  }
319842
319934
  return result2;
319843
319935
  }, "TryStatement"),
@@ -319871,7 +319963,7 @@ var require_escodegen = __commonJS({
319871
319963
  withIndent(function() {
319872
319964
  if (stmt.test) {
319873
319965
  result2 = [
319874
- join54("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
319966
+ join55("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
319875
319967
  ":"
319876
319968
  ];
319877
319969
  } else {
@@ -319919,9 +320011,9 @@ var require_escodegen = __commonJS({
319919
320011
  result2.push(this.maybeBlock(stmt.consequent, S_TFFF));
319920
320012
  result2 = this.maybeBlockSuffix(stmt.consequent, result2);
319921
320013
  if (stmt.alternate.type === Syntax.IfStatement) {
319922
- result2 = join54(result2, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
320014
+ result2 = join55(result2, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
319923
320015
  } else {
319924
- result2 = join54(result2, join54("else", this.maybeBlock(stmt.alternate, bodyFlags)));
320016
+ result2 = join55(result2, join55("else", this.maybeBlock(stmt.alternate, bodyFlags)));
319925
320017
  }
319926
320018
  } else {
319927
320019
  result2.push(this.maybeBlock(stmt.consequent, bodyFlags));
@@ -320022,7 +320114,7 @@ var require_escodegen = __commonJS({
320022
320114
  }, "FunctionDeclaration"),
320023
320115
  ReturnStatement: /* @__PURE__ */ __name(function(stmt, flags) {
320024
320116
  if (stmt.argument) {
320025
- return [join54(
320117
+ return [join55(
320026
320118
  "return",
320027
320119
  this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
320028
320120
  ), this.semicolon(flags)];
@@ -320111,14 +320203,14 @@ var require_escodegen = __commonJS({
320111
320203
  if (leftSource.charCodeAt(leftSource.length - 1) === 47 && esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))) {
320112
320204
  result2 = [fragment, noEmptySpace(), expr.operator];
320113
320205
  } else {
320114
- result2 = join54(fragment, expr.operator);
320206
+ result2 = join55(fragment, expr.operator);
320115
320207
  }
320116
320208
  fragment = this.generateExpression(expr.right, rightPrecedence, flags);
320117
320209
  if (expr.operator === "/" && fragment.toString().charAt(0) === "/" || expr.operator.slice(-1) === "<" && fragment.toString().slice(0, 3) === "!--") {
320118
320210
  result2.push(noEmptySpace());
320119
320211
  result2.push(fragment);
320120
320212
  } else {
320121
- result2 = join54(result2, fragment);
320213
+ result2 = join55(result2, fragment);
320122
320214
  }
320123
320215
  if (expr.operator === "in" && !(flags & F_ALLOW_IN)) {
320124
320216
  return ["(", result2, ")"];
@@ -320158,7 +320250,7 @@ var require_escodegen = __commonJS({
320158
320250
  var result2, length, i6, iz, itemFlags;
320159
320251
  length = expr["arguments"].length;
320160
320252
  itemFlags = flags & F_ALLOW_UNPARATH_NEW && !parentheses && length === 0 ? E_TFT : E_TFF;
320161
- result2 = join54(
320253
+ result2 = join55(
320162
320254
  "new",
320163
320255
  this.generateExpression(expr.callee, Precedence.New, itemFlags)
320164
320256
  );
@@ -320208,11 +320300,11 @@ var require_escodegen = __commonJS({
320208
320300
  var result2, fragment, rightCharCode, leftSource, leftCharCode;
320209
320301
  fragment = this.generateExpression(expr.argument, Precedence.Unary, E_TTT);
320210
320302
  if (space === "") {
320211
- result2 = join54(expr.operator, fragment);
320303
+ result2 = join55(expr.operator, fragment);
320212
320304
  } else {
320213
320305
  result2 = [expr.operator];
320214
320306
  if (expr.operator.length > 2) {
320215
- result2 = join54(result2, fragment);
320307
+ result2 = join55(result2, fragment);
320216
320308
  } else {
320217
320309
  leftSource = toSourceNodeWhenNeeded(result2).toString();
320218
320310
  leftCharCode = leftSource.charCodeAt(leftSource.length - 1);
@@ -320235,7 +320327,7 @@ var require_escodegen = __commonJS({
320235
320327
  result2 = "yield";
320236
320328
  }
320237
320329
  if (expr.argument) {
320238
- result2 = join54(
320330
+ result2 = join55(
320239
320331
  result2,
320240
320332
  this.generateExpression(expr.argument, Precedence.Yield, E_TTT)
320241
320333
  );
@@ -320243,7 +320335,7 @@ var require_escodegen = __commonJS({
320243
320335
  return parenthesize(result2, Precedence.Yield, precedence);
320244
320336
  }, "YieldExpression"),
320245
320337
  AwaitExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
320246
- var result2 = join54(
320338
+ var result2 = join55(
320247
320339
  expr.all ? "await*" : "await",
320248
320340
  this.generateExpression(expr.argument, Precedence.Await, E_TTT)
320249
320341
  );
@@ -320326,11 +320418,11 @@ var require_escodegen = __commonJS({
320326
320418
  var result2, fragment;
320327
320419
  result2 = ["class"];
320328
320420
  if (expr.id) {
320329
- result2 = join54(result2, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
320421
+ result2 = join55(result2, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
320330
320422
  }
320331
320423
  if (expr.superClass) {
320332
- fragment = join54("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
320333
- result2 = join54(result2, fragment);
320424
+ fragment = join55("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
320425
+ result2 = join55(result2, fragment);
320334
320426
  }
320335
320427
  result2.push(space);
320336
320428
  result2.push(this.generateStatement(expr.body, S_TFFT));
@@ -320345,7 +320437,7 @@ var require_escodegen = __commonJS({
320345
320437
  }
320346
320438
  if (expr.kind === "get" || expr.kind === "set") {
320347
320439
  fragment = [
320348
- join54(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
320440
+ join55(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
320349
320441
  this.generateFunctionBody(expr.value)
320350
320442
  ];
320351
320443
  } else {
@@ -320355,7 +320447,7 @@ var require_escodegen = __commonJS({
320355
320447
  this.generateFunctionBody(expr.value)
320356
320448
  ];
320357
320449
  }
320358
- return join54(result2, fragment);
320450
+ return join55(result2, fragment);
320359
320451
  }, "MethodDefinition"),
320360
320452
  Property: /* @__PURE__ */ __name(function(expr, precedence, flags) {
320361
320453
  if (expr.kind === "get" || expr.kind === "set") {
@@ -320550,7 +320642,7 @@ var require_escodegen = __commonJS({
320550
320642
  for (i6 = 0, iz = expr.blocks.length; i6 < iz; ++i6) {
320551
320643
  fragment = that.generateExpression(expr.blocks[i6], Precedence.Sequence, E_TTT);
320552
320644
  if (i6 > 0 || extra.moz.comprehensionExpressionStartsWithAssignment) {
320553
- result2 = join54(result2, fragment);
320645
+ result2 = join55(result2, fragment);
320554
320646
  } else {
320555
320647
  result2.push(fragment);
320556
320648
  }
@@ -320558,13 +320650,13 @@ var require_escodegen = __commonJS({
320558
320650
  });
320559
320651
  }
320560
320652
  if (expr.filter) {
320561
- result2 = join54(result2, "if" + space);
320653
+ result2 = join55(result2, "if" + space);
320562
320654
  fragment = this.generateExpression(expr.filter, Precedence.Sequence, E_TTT);
320563
- result2 = join54(result2, ["(", fragment, ")"]);
320655
+ result2 = join55(result2, ["(", fragment, ")"]);
320564
320656
  }
320565
320657
  if (!extra.moz.comprehensionExpressionStartsWithAssignment) {
320566
320658
  fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT);
320567
- result2 = join54(result2, fragment);
320659
+ result2 = join55(result2, fragment);
320568
320660
  }
320569
320661
  result2.push(expr.type === Syntax.GeneratorExpression ? ")" : "]");
320570
320662
  return result2;
@@ -320580,8 +320672,8 @@ var require_escodegen = __commonJS({
320580
320672
  } else {
320581
320673
  fragment = this.generateExpression(expr.left, Precedence.Call, E_TTT);
320582
320674
  }
320583
- fragment = join54(fragment, expr.of ? "of" : "in");
320584
- fragment = join54(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
320675
+ fragment = join55(fragment, expr.of ? "of" : "in");
320676
+ fragment = join55(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
320585
320677
  return ["for" + space + "(", fragment, ")"];
320586
320678
  }, "ComprehensionBlock"),
320587
320679
  SpreadElement: /* @__PURE__ */ __name(function(expr, precedence, flags) {
@@ -334006,14 +334098,14 @@ var require_emscripten_module_WASM_RELEASE_SYNC = __commonJS({
334006
334098
  });
334007
334099
  var p3 = Object.assign({}, a6), t = "./this.program", u = "object" == typeof window, v = "function" == typeof importScripts, w = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node, x = "", y, z, A;
334008
334100
  if (w) {
334009
- var fs57 = require("fs"), B = require("path");
334101
+ var fs58 = require("fs"), B = require("path");
334010
334102
  x = v ? B.dirname(x) + "/" : __dirname + "/";
334011
334103
  y = /* @__PURE__ */ __name((b6, c6) => {
334012
334104
  var d6 = C(b6);
334013
334105
  if (d6)
334014
334106
  return c6 ? d6 : d6.toString();
334015
334107
  b6 = b6.startsWith("file://") ? new URL(b6) : B.normalize(b6);
334016
- return fs57.readFileSync(b6, c6 ? void 0 : "utf8");
334108
+ return fs58.readFileSync(b6, c6 ? void 0 : "utf8");
334017
334109
  }, "y");
334018
334110
  A = /* @__PURE__ */ __name((b6) => {
334019
334111
  b6 = y(b6, true);
@@ -334024,7 +334116,7 @@ var require_emscripten_module_WASM_RELEASE_SYNC = __commonJS({
334024
334116
  var e6 = C(b6);
334025
334117
  e6 && c6(e6);
334026
334118
  b6 = b6.startsWith("file://") ? new URL(b6) : B.normalize(b6);
334027
- fs57.readFile(b6, function(f6, g6) {
334119
+ fs58.readFile(b6, function(f6, g6) {
334028
334120
  f6 ? d6(f6) : c6(g6.buffer);
334029
334121
  });
334030
334122
  }, "z");
@@ -335383,11 +335475,11 @@ var require_dist14 = __commonJS({
335383
335475
  });
335384
335476
 
335385
335477
  // lib/cli/proxy-agent.ts
335386
- var fs51, import_proxy_agent, ProxyAgentProvider;
335478
+ var fs52, import_proxy_agent, ProxyAgentProvider;
335387
335479
  var init_proxy_agent = __esm({
335388
335480
  "lib/cli/proxy-agent.ts"() {
335389
335481
  "use strict";
335390
- fs51 = __toESM(require_lib4());
335482
+ fs52 = __toESM(require_lib4());
335391
335483
  import_proxy_agent = __toESM(require_dist14());
335392
335484
  ProxyAgentProvider = class {
335393
335485
  static {
@@ -335409,10 +335501,10 @@ var init_proxy_agent = __esm({
335409
335501
  if (path54) {
335410
335502
  await this.ioHelper.defaults.debug(`Using CA bundle path: ${path54}`);
335411
335503
  try {
335412
- if (!fs51.pathExistsSync(path54)) {
335504
+ if (!fs52.pathExistsSync(path54)) {
335413
335505
  return void 0;
335414
335506
  }
335415
- return fs51.readFileSync(path54, { encoding: "utf-8" });
335507
+ return fs52.readFileSync(path54, { encoding: "utf-8" });
335416
335508
  } catch (e6) {
335417
335509
  await this.ioHelper.defaults.debug(String(e6));
335418
335510
  return void 0;
@@ -335629,9 +335721,9 @@ async function docs(options) {
335629
335721
  await ioHelper.defaults.debug(`Opening documentation ${import_chalk37.default.green(browserCommand)}`);
335630
335722
  const exec5 = (0, import_node_util9.promisify)(childProcess2.exec);
335631
335723
  try {
335632
- const { stdout, stderr } = await exec5(browserCommand);
335633
- if (stdout) {
335634
- await ioHelper.defaults.debug(stdout);
335724
+ const { stdout: stdout2, stderr } = await exec5(browserCommand);
335725
+ if (stdout2) {
335726
+ await ioHelper.defaults.debug(stdout2);
335635
335727
  }
335636
335728
  if (stderr) {
335637
335729
  await ioHelper.defaults.warn(stderr);
@@ -341408,16 +341500,16 @@ async function isWithinRoot(root6, candidate) {
341408
341500
  }
341409
341501
  async function realOrSelf(p3) {
341410
341502
  try {
341411
- return await fs52.promises.realpath(p3);
341503
+ return await fs53.promises.realpath(p3);
341412
341504
  } catch {
341413
341505
  return p3;
341414
341506
  }
341415
341507
  }
341416
- var fs52, path48, import_url, convertSourceMap, SourceMapResolver, TS_JS_EXTENSIONS, HOST_LANGUAGE_EXTENSIONS, FRAME_RE;
341508
+ var fs53, path48, import_url, convertSourceMap, SourceMapResolver, TS_JS_EXTENSIONS, HOST_LANGUAGE_EXTENSIONS, FRAME_RE;
341417
341509
  var init_source_resolver = __esm({
341418
341510
  "../@aws-cdk/cdk-explorer/lib/core/source-resolver.ts"() {
341419
341511
  "use strict";
341420
- fs52 = __toESM(require("fs"));
341512
+ fs53 = __toESM(require("fs"));
341421
341513
  path48 = __toESM(require("path"));
341422
341514
  import_url = require("url");
341423
341515
  init_trace_mapping();
@@ -341491,7 +341583,7 @@ var init_source_resolver = __esm({
341491
341583
  async readSourceMap(jsFile) {
341492
341584
  let code;
341493
341585
  try {
341494
- code = await fs52.promises.readFile(jsFile, "utf-8");
341586
+ code = await fs53.promises.readFile(jsFile, "utf-8");
341495
341587
  } catch {
341496
341588
  return null;
341497
341589
  }
@@ -341503,7 +341595,7 @@ var init_source_resolver = __esm({
341503
341595
  throw new Error(`source map path escapes the project root: ${mapPath}`);
341504
341596
  }
341505
341597
  mapUrl = (0, import_url.pathToFileURL)(mapPath).href;
341506
- return fs52.promises.readFile(mapPath, "utf-8");
341598
+ return fs53.promises.readFile(mapPath, "utf-8");
341507
341599
  });
341508
341600
  return converter ? new TraceMap(converter.toObject(), mapUrl) : null;
341509
341601
  } catch (err) {
@@ -341529,15 +341621,15 @@ __export(assembly_reader_exports, {
341529
341621
  readAssembly: () => readAssembly
341530
341622
  });
341531
341623
  async function readAssembly(assemblyDir) {
341532
- const manifestPath = path49.join(assemblyDir, import_cloud_assembly_api18.MANIFEST_FILE);
341533
- if (!fs53.existsSync(manifestPath)) {
341624
+ const manifestPath = path49.join(assemblyDir, import_cloud_assembly_api17.MANIFEST_FILE);
341625
+ if (!fs54.existsSync(manifestPath)) {
341534
341626
  return { status: "not-found" };
341535
341627
  }
341536
341628
  try {
341537
- const assembly = new import_cloud_assembly_api18.CloudAssembly(assemblyDir);
341629
+ const assembly = new import_cloud_assembly_api17.CloudAssembly(assemblyDir);
341538
341630
  const projectRoot = path49.dirname(assemblyDir);
341539
341631
  const sourceResolver = new SourceMapResolver(projectRoot);
341540
- const tree = await (0, import_cloud_assembly_api18.buildConstructTreeAsync)(assembly, async (fields, stack, constructPath) => ({
341632
+ const tree = await (0, import_cloud_assembly_api17.buildConstructTreeAsync)(assembly, async (fields, stack, constructPath) => ({
341541
341633
  ...fields,
341542
341634
  // templateFile comes from the manifest / a nested stack's aws:asset:path,
341543
341635
  // both attacker-influenceable if cdk.out is tampered with. Drop any that
@@ -341563,16 +341655,16 @@ async function readAssembly(assemblyDir) {
341563
341655
  }
341564
341656
  function loadViolations(assemblyDir) {
341565
341657
  const reportPath = path49.join(assemblyDir, import_cloud_assembly_schema10.VALIDATION_REPORT_FILE);
341566
- if (!fs53.existsSync(reportPath)) return void 0;
341567
- return JSON.parse(fs53.readFileSync(reportPath, "utf-8"));
341658
+ if (!fs54.existsSync(reportPath)) return void 0;
341659
+ return JSON.parse(fs54.readFileSync(reportPath, "utf-8"));
341568
341660
  }
341569
- var fs53, path49, import_cloud_assembly_api18, import_cloud_assembly_schema10;
341661
+ var fs54, path49, import_cloud_assembly_api17, import_cloud_assembly_schema10;
341570
341662
  var init_assembly_reader = __esm({
341571
341663
  "../@aws-cdk/cdk-explorer/lib/core/assembly-reader.ts"() {
341572
341664
  "use strict";
341573
- fs53 = __toESM(require("fs"));
341665
+ fs54 = __toESM(require("fs"));
341574
341666
  path49 = __toESM(require("path"));
341575
- import_cloud_assembly_api18 = __toESM(require_lib3());
341667
+ import_cloud_assembly_api17 = __toESM(require_lib3());
341576
341668
  import_cloud_assembly_schema10 = __toESM(require_lib2());
341577
341669
  init_api_private2();
341578
341670
  init_source_resolver();
@@ -341740,7 +341832,7 @@ var require_messages = __commonJS({
341740
341832
  }
341741
341833
  };
341742
341834
  exports2.AbstractMessageSignature = AbstractMessageSignature;
341743
- var RequestType0 = class extends AbstractMessageSignature {
341835
+ var RequestType02 = class extends AbstractMessageSignature {
341744
341836
  static {
341745
341837
  __name(this, "RequestType0");
341746
341838
  }
@@ -341748,7 +341840,7 @@ var require_messages = __commonJS({
341748
341840
  super(method, 0);
341749
341841
  }
341750
341842
  };
341751
- exports2.RequestType0 = RequestType0;
341843
+ exports2.RequestType0 = RequestType02;
341752
341844
  var RequestType = class extends AbstractMessageSignature {
341753
341845
  static {
341754
341846
  __name(this, "RequestType");
@@ -344840,7 +344932,7 @@ var require_main2 = __commonJS({
344840
344932
  var ril_1 = require_ril();
344841
344933
  ril_1.default.install();
344842
344934
  var path54 = require("path");
344843
- var os14 = require("os");
344935
+ var os15 = require("os");
344844
344936
  var crypto_1 = require("crypto");
344845
344937
  var net_1 = require("net");
344846
344938
  var api_1 = require_api2();
@@ -345001,7 +345093,7 @@ var require_main2 = __commonJS({
345001
345093
  if (XDG_RUNTIME_DIR) {
345002
345094
  result2 = path54.join(XDG_RUNTIME_DIR, `vscode-ipc-${randomSuffix}.sock`);
345003
345095
  } else {
345004
- result2 = path54.join(os14.tmpdir(), `vscode-${randomSuffix}.sock`);
345096
+ result2 = path54.join(os15.tmpdir(), `vscode-${randomSuffix}.sock`);
345005
345097
  }
345006
345098
  const limit = safeIpcPathLengths.get(process.platform);
345007
345099
  if (limit !== void 0 && result2.length > limit) {
@@ -345291,7 +345383,7 @@ var require_messages2 = __commonJS({
345291
345383
  }
345292
345384
  };
345293
345385
  exports2.AbstractMessageSignature = AbstractMessageSignature;
345294
- var RequestType0 = class extends AbstractMessageSignature {
345386
+ var RequestType02 = class extends AbstractMessageSignature {
345295
345387
  static {
345296
345388
  __name(this, "RequestType0");
345297
345389
  }
@@ -345299,7 +345391,7 @@ var require_messages2 = __commonJS({
345299
345391
  super(method, 0);
345300
345392
  }
345301
345393
  };
345302
- exports2.RequestType0 = RequestType0;
345394
+ exports2.RequestType0 = RequestType02;
345303
345395
  var RequestType = class extends AbstractMessageSignature {
345304
345396
  static {
345305
345397
  __name(this, "RequestType");
@@ -348390,7 +348482,7 @@ var require_main3 = __commonJS({
348390
348482
  var ril_1 = require_ril2();
348391
348483
  ril_1.default.install();
348392
348484
  var path54 = require("path");
348393
- var os14 = require("os");
348485
+ var os15 = require("os");
348394
348486
  var crypto_1 = require("crypto");
348395
348487
  var net_1 = require("net");
348396
348488
  var api_1 = require_api3();
@@ -348551,7 +348643,7 @@ var require_main3 = __commonJS({
348551
348643
  if (XDG_RUNTIME_DIR) {
348552
348644
  result2 = path54.join(XDG_RUNTIME_DIR, `vscode-ipc-${randomSuffix}.sock`);
348553
348645
  } else {
348554
- result2 = path54.join(os14.tmpdir(), `vscode-${randomSuffix}.sock`);
348646
+ result2 = path54.join(os15.tmpdir(), `vscode-${randomSuffix}.sock`);
348555
348647
  }
348556
348648
  const limit = safeIpcPathLengths.get(process.platform);
348557
348649
  if (limit !== void 0 && result2.length > limit) {
@@ -353915,7 +354007,7 @@ var require_files = __commonJS({
353915
354007
  exports2.resolveModulePath = exports2.FileSystem = exports2.resolveGlobalYarnPath = exports2.resolveGlobalNodePath = exports2.resolve = exports2.uriToFilePath = void 0;
353916
354008
  var url = require("url");
353917
354009
  var path54 = require("path");
353918
- var fs57 = require("fs");
354010
+ var fs58 = require("fs");
353919
354011
  var child_process_1 = require("child_process");
353920
354012
  function uriToFilePath(uri) {
353921
354013
  let parsed = url.parse(uri);
@@ -353964,7 +354056,7 @@ var require_files = __commonJS({
353964
354056
  let env3 = process.env;
353965
354057
  let newEnv = /* @__PURE__ */ Object.create(null);
353966
354058
  Object.keys(env3).forEach((key) => newEnv[key] = env3[key]);
353967
- if (nodePath && fs57.existsSync(nodePath)) {
354059
+ if (nodePath && fs58.existsSync(nodePath)) {
353968
354060
  if (newEnv[nodePathKey]) {
353969
354061
  newEnv[nodePathKey] = nodePath + path54.delimiter + newEnv[nodePathKey];
353970
354062
  } else {
@@ -354027,14 +354119,14 @@ var require_files = __commonJS({
354027
354119
  }, "handler");
354028
354120
  try {
354029
354121
  process.on("SIGPIPE", handler);
354030
- let stdout = (0, child_process_1.spawnSync)(npmCommand, ["config", "get", "prefix"], options).stdout;
354031
- if (!stdout) {
354122
+ let stdout2 = (0, child_process_1.spawnSync)(npmCommand, ["config", "get", "prefix"], options).stdout;
354123
+ if (!stdout2) {
354032
354124
  if (tracer) {
354033
354125
  tracer(`'npm config get prefix' didn't return a value.`);
354034
354126
  }
354035
354127
  return void 0;
354036
354128
  }
354037
- let prefix = stdout.trim();
354129
+ let prefix = stdout2.trim();
354038
354130
  if (tracer) {
354039
354131
  tracer(`'npm config get prefix' value is: ${prefix}`);
354040
354132
  }
@@ -354068,8 +354160,8 @@ var require_files = __commonJS({
354068
354160
  try {
354069
354161
  process.on("SIGPIPE", handler);
354070
354162
  let results = (0, child_process_1.spawnSync)(yarnCommand, ["global", "dir", "--json"], options);
354071
- let stdout = results.stdout;
354072
- if (!stdout) {
354163
+ let stdout2 = results.stdout;
354164
+ if (!stdout2) {
354073
354165
  if (tracer) {
354074
354166
  tracer(`'yarn global dir' didn't return a value.`);
354075
354167
  if (results.stderr) {
@@ -354078,7 +354170,7 @@ var require_files = __commonJS({
354078
354170
  }
354079
354171
  return void 0;
354080
354172
  }
354081
- let lines = stdout.trim().split(/\r?\n/);
354173
+ let lines = stdout2.trim().split(/\r?\n/);
354082
354174
  for (let line of lines) {
354083
354175
  try {
354084
354176
  let yarn = JSON.parse(line);
@@ -354107,7 +354199,7 @@ var require_files = __commonJS({
354107
354199
  if (process.platform === "win32") {
354108
354200
  _isCaseSensitive = false;
354109
354201
  } else {
354110
- _isCaseSensitive = !fs57.existsSync(__filename.toUpperCase()) || !fs57.existsSync(__filename.toLowerCase());
354202
+ _isCaseSensitive = !fs58.existsSync(__filename.toUpperCase()) || !fs58.existsSync(__filename.toLowerCase());
354111
354203
  }
354112
354204
  return _isCaseSensitive;
354113
354205
  }
@@ -354836,11 +354928,11 @@ async function resourceTarget(node) {
354836
354928
  }
354837
354929
  let templateText;
354838
354930
  try {
354839
- templateText = await fs54.promises.readFile(node.templateFile, "utf-8");
354931
+ templateText = await fs55.promises.readFile(node.templateFile, "utf-8");
354840
354932
  } catch {
354841
354933
  return void 0;
354842
354934
  }
354843
- const block = (0, import_cloud_assembly_api19.resolveResourceRange)(templateText, node.logicalId);
354935
+ const block = (0, import_cloud_assembly_api18.resolveResourceRange)(templateText, node.logicalId);
354844
354936
  if (block === void 0) {
354845
354937
  return void 0;
354846
354938
  }
@@ -354850,7 +354942,7 @@ async function resourceTarget(node) {
354850
354942
  };
354851
354943
  }
354852
354944
  function sourceTargetAtTemplateOffset(index, templateFile, templateText, offset) {
354853
- const logicalId = (0, import_cloud_assembly_api19.resolveLogicalIdAtOffset)(templateText, offset);
354945
+ const logicalId = (0, import_cloud_assembly_api18.resolveLogicalIdAtOffset)(templateText, offset);
354854
354946
  if (logicalId === void 0) {
354855
354947
  return void 0;
354856
354948
  }
@@ -354864,13 +354956,13 @@ function sourceTargetAtTemplateOffset(index, templateFile, templateText, offset)
354864
354956
  range: { start: position, end: position }
354865
354957
  };
354866
354958
  }
354867
- var fs54, import_url2, import_cloud_assembly_api19;
354959
+ var fs55, import_url2, import_cloud_assembly_api18;
354868
354960
  var init_template_locator = __esm({
354869
354961
  "../@aws-cdk/cdk-explorer/lib/lsp/template-locator.ts"() {
354870
354962
  "use strict";
354871
- fs54 = __toESM(require("fs"));
354963
+ fs55 = __toESM(require("fs"));
354872
354964
  import_url2 = require("url");
354873
- import_cloud_assembly_api19 = __toESM(require_lib3());
354965
+ import_cloud_assembly_api18 = __toESM(require_lib3());
354874
354966
  init_positions();
354875
354967
  __name(resourceTarget, "resourceTarget");
354876
354968
  __name(sourceTargetAtTemplateOffset, "sourceTargetAtTemplateOffset");
@@ -354959,6 +355051,17 @@ var init_codelens = __esm({
354959
355051
  }
354960
355052
  });
354961
355053
 
355054
+ // ../@aws-cdk/cdk-explorer/lib/lsp/construct-tree-request.ts
355055
+ var import_vscode_languageserver, GET_CONSTRUCT_TREE_METHOD, GetConstructTreeRequest;
355056
+ var init_construct_tree_request = __esm({
355057
+ "../@aws-cdk/cdk-explorer/lib/lsp/construct-tree-request.ts"() {
355058
+ "use strict";
355059
+ import_vscode_languageserver = __toESM(require_main6());
355060
+ GET_CONSTRUCT_TREE_METHOD = "cdk/getConstructTree";
355061
+ GetConstructTreeRequest = new import_vscode_languageserver.RequestType0(GET_CONSTRUCT_TREE_METHOD);
355062
+ }
355063
+ });
355064
+
354962
355065
  // ../@aws-cdk/cdk-explorer/lib/lsp/diagnostics.ts
354963
355066
  function mapViolationsToDiagnostics(violations, index) {
354964
355067
  const dropped = [];
@@ -355047,6 +355150,34 @@ var init_diagnostics = __esm({
355047
355150
  }
355048
355151
  });
355049
355152
 
355153
+ // ../@aws-cdk/cdk-explorer/lib/lsp/features.ts
355154
+ var features_exports = {};
355155
+ __export(features_exports, {
355156
+ CDK_LSP_FEATURES: () => CDK_LSP_FEATURES,
355157
+ CDK_LSP_PROTOCOL: () => CDK_LSP_PROTOCOL,
355158
+ cdkLspManifest: () => cdkLspManifest
355159
+ });
355160
+ function cdkLspManifest(version) {
355161
+ return {
355162
+ protocol: CDK_LSP_PROTOCOL,
355163
+ version,
355164
+ features: [...CDK_LSP_FEATURES],
355165
+ // Deliberately mirrors executeCommandProvider.commands on the wire so the
355166
+ // `cdk lsp --features` probe (which has no LSP session) can see them too.
355167
+ commands: [...SUPPORTED_COMMANDS]
355168
+ };
355169
+ }
355170
+ var CDK_LSP_PROTOCOL, CDK_LSP_FEATURES;
355171
+ var init_features = __esm({
355172
+ "../@aws-cdk/cdk-explorer/lib/lsp/features.ts"() {
355173
+ "use strict";
355174
+ init_commands7();
355175
+ CDK_LSP_PROTOCOL = 1;
355176
+ CDK_LSP_FEATURES = ["hover", "codeLens", "definition", "synth", "autoSynth"];
355177
+ __name(cdkLspManifest, "cdkLspManifest");
355178
+ }
355179
+ });
355180
+
355050
355181
  // ../@aws-cdk/cdk-explorer/lib/lsp/hover.ts
355051
355182
  function resourceNodesOnLine(index, uri, position) {
355052
355183
  const line = position.line + 1;
@@ -355072,7 +355203,7 @@ async function resolveHoverLinks(nodes6, primary, readTemplate) {
355072
355203
  const resolveOnce = /* @__PURE__ */ __name(async (file) => {
355073
355204
  if (!templates.has(file)) {
355074
355205
  const text = await readTemplate(file);
355075
- const ranges = text === void 0 ? void 0 : (0, import_cloud_assembly_api20.indexTemplateRanges)(text);
355206
+ const ranges = text === void 0 ? void 0 : (0, import_cloud_assembly_api19.indexTemplateRanges)(text);
355076
355207
  templates.set(file, text !== void 0 && ranges !== void 0 ? { text, ranges } : void 0);
355077
355208
  }
355078
355209
  return templates.get(file);
@@ -355228,12 +355359,12 @@ function histogram(nodes6) {
355228
355359
  function truncate(text, max) {
355229
355360
  return text.length <= max ? text : `${text.slice(0, max - 1)}\u2026`;
355230
355361
  }
355231
- var import_url5, import_cloud_assembly_api20, import_node2, MAX_PROPERTIES, MAX_LINKED_AUX, MAX_STRING_LENGTH, MAX_OBJECT_KEYS, MAX_HISTOGRAM_TYPES;
355362
+ var import_url5, import_cloud_assembly_api19, import_node2, MAX_PROPERTIES, MAX_LINKED_AUX, MAX_STRING_LENGTH, MAX_OBJECT_KEYS, MAX_HISTOGRAM_TYPES;
355232
355363
  var init_hover = __esm({
355233
355364
  "../@aws-cdk/cdk-explorer/lib/lsp/hover.ts"() {
355234
355365
  "use strict";
355235
355366
  import_url5 = require("url");
355236
- import_cloud_assembly_api20 = __toESM(require_lib3());
355367
+ import_cloud_assembly_api19 = __toESM(require_lib3());
355237
355368
  import_node2 = __toESM(require_node6());
355238
355369
  init_codelens();
355239
355370
  init_positions();
@@ -355360,17 +355491,17 @@ function startAssemblyWatcher(options) {
355360
355491
  }
355361
355492
  };
355362
355493
  }
355363
- var path51, import_cloud_assembly_api21, import_cloud_assembly_schema11, TREE_FILE, ASSEMBLY_SIGNAL_FILES, DEBOUNCE_MS;
355494
+ var path51, import_cloud_assembly_api20, import_cloud_assembly_schema11, TREE_FILE, ASSEMBLY_SIGNAL_FILES, DEBOUNCE_MS;
355364
355495
  var init_assembly_watcher = __esm({
355365
355496
  "../@aws-cdk/cdk-explorer/lib/core/assembly-watcher.ts"() {
355366
355497
  "use strict";
355367
355498
  path51 = __toESM(require("path"));
355368
- import_cloud_assembly_api21 = __toESM(require_lib3());
355499
+ import_cloud_assembly_api20 = __toESM(require_lib3());
355369
355500
  import_cloud_assembly_schema11 = __toESM(require_lib2());
355370
355501
  init_esm2();
355371
355502
  TREE_FILE = "tree.json";
355372
355503
  ASSEMBLY_SIGNAL_FILES = /* @__PURE__ */ new Set([
355373
- import_cloud_assembly_api21.MANIFEST_FILE,
355504
+ import_cloud_assembly_api20.MANIFEST_FILE,
355374
355505
  TREE_FILE,
355375
355506
  import_cloud_assembly_schema11.VALIDATION_REPORT_FILE
355376
355507
  ]);
@@ -355428,7 +355559,10 @@ function createLspHandlers(options) {
355428
355559
  let autoSynthEnabled = false;
355429
355560
  let shouldIgnore = /* @__PURE__ */ __name(() => false, "shouldIgnore");
355430
355561
  let assemblyWatcher;
355431
- let cachedIndex = import_cloud_assembly_api22.ConstructIndex.fromTree([]);
355562
+ let cachedIndex = import_cloud_assembly_api21.ConstructIndex.fromTree([]);
355563
+ let cachedTree = [];
355564
+ let cachedWarnings = [];
355565
+ let cachedAssemblyDir;
355432
355566
  let publishedUris = /* @__PURE__ */ new Set();
355433
355567
  let codeLensRefreshSupported = false;
355434
355568
  function currentProjectDir() {
@@ -355471,7 +355605,10 @@ function createLspHandlers(options) {
355471
355605
  for (const warning2 of warnings) {
355472
355606
  log.warn(warning2);
355473
355607
  }
355474
- cachedIndex = import_cloud_assembly_api22.ConstructIndex.fromTree(tree);
355608
+ cachedIndex = import_cloud_assembly_api21.ConstructIndex.fromTree(tree);
355609
+ cachedTree = tree;
355610
+ cachedWarnings = warnings;
355611
+ cachedAssemblyDir = assemblyDir;
355475
355612
  const { byUri, dropped } = mapViolationsToDiagnostics(violations, cachedIndex);
355476
355613
  for (const drop of dropped) {
355477
355614
  log.warn(`Dropped diagnostic for '${drop.ruleName}' at '${drop.constructPath}': ${drop.reason}`);
@@ -355553,7 +355690,9 @@ function createLspHandlers(options) {
355553
355690
  onInitialize(params) {
355554
355691
  applicationDir = params.initializationOptions?.applicationDir;
355555
355692
  codeLensRefreshSupported = params.capabilities.workspace?.codeLens?.refreshSupport ?? false;
355693
+ const manifest = cdkLspManifest(options.version);
355556
355694
  return {
355695
+ serverInfo: { name: "cdk-lsp", version: manifest.version },
355557
355696
  capabilities: {
355558
355697
  textDocumentSync: {
355559
355698
  openClose: false,
@@ -355568,7 +355707,10 @@ function createLspHandlers(options) {
355568
355707
  definitionProvider: true,
355569
355708
  executeCommandProvider: { commands: [...SUPPORTED_COMMANDS] },
355570
355709
  // Hover a construct's creation line to see its resolved CFN properties.
355571
- hoverProvider: true
355710
+ hoverProvider: true,
355711
+ // Non-standard: lets a client discover CDK-specific features and the
355712
+ // wire protocol version ahead of use; also backs `cdk lsp --features`.
355713
+ experimental: { cdk: manifest }
355572
355714
  }
355573
355715
  };
355574
355716
  },
@@ -355615,7 +355757,7 @@ function createLspHandlers(options) {
355615
355757
  }
355616
355758
  let templateText;
355617
355759
  try {
355618
- templateText = await fs55.promises.readFile(filePath, "utf-8");
355760
+ templateText = await fs56.promises.readFile(filePath, "utf-8");
355619
355761
  } catch {
355620
355762
  return void 0;
355621
355763
  }
@@ -355637,9 +355779,44 @@ function createLspHandlers(options) {
355637
355779
  cachedIndex,
355638
355780
  params.textDocument.uri,
355639
355781
  params.position,
355640
- (file) => fs55.promises.readFile(file, "utf-8").catch(() => void 0)
355782
+ (file) => fs56.promises.readFile(file, "utf-8").catch(() => void 0)
355641
355783
  );
355642
355784
  },
355785
+ onGetConstructTree() {
355786
+ const assemblyDir = cachedAssemblyDir ?? path52.join(currentProjectDir(), "cdk.out");
355787
+ if (cachedAssemblyDir === void 0) {
355788
+ return { status: "no-assembly", assemblyDir, entries: [], warnings: [] };
355789
+ }
355790
+ const rangesByTemplate = /* @__PURE__ */ new Map();
355791
+ const templateRangesFor = /* @__PURE__ */ __name((templateFile) => {
355792
+ if (!rangesByTemplate.has(templateFile)) {
355793
+ try {
355794
+ rangesByTemplate.set(templateFile, (0, import_cloud_assembly_api21.indexTemplateRanges)(fs56.readFileSync(templateFile, "utf-8")));
355795
+ } catch {
355796
+ rangesByTemplate.set(templateFile, void 0);
355797
+ }
355798
+ }
355799
+ return rangesByTemplate.get(templateFile);
355800
+ }, "templateRangesFor");
355801
+ const entries = [];
355802
+ const collect = /* @__PURE__ */ __name((nodes6) => {
355803
+ for (const node of nodes6) {
355804
+ const templateOffset = node.templateFile && node.logicalId ? templateRangesFor(node.templateFile)?.block(node.logicalId)?.start : void 0;
355805
+ entries.push({
355806
+ path: node.path,
355807
+ id: node.id,
355808
+ type: node.type,
355809
+ logicalId: node.logicalId,
355810
+ sourceLocation: node.sourceLocation,
355811
+ templateFile: node.templateFile,
355812
+ templateOffset
355813
+ });
355814
+ collect(node.children);
355815
+ }
355816
+ }, "collect");
355817
+ collect(cachedTree);
355818
+ return { status: "ok", assemblyDir, entries, warnings: [...cachedWarnings] };
355819
+ },
355643
355820
  onShutdown() {
355644
355821
  shutdownRequested = true;
355645
355822
  void assemblyWatcher?.close();
@@ -355665,6 +355842,7 @@ function startServer(options) {
355665
355842
  void connection.sendRequest(import_node5.CodeLensRefreshRequest.type);
355666
355843
  }
355667
355844
  }, "onRefreshCodeLenses"),
355845
+ version: options.version,
355668
355846
  synthRunner,
355669
355847
  acquireAssemblyLock,
355670
355848
  notify: {
@@ -355702,25 +355880,28 @@ function startServer(options) {
355702
355880
  connection.onDefinition((params) => handlers.onDefinition(params));
355703
355881
  connection.onExecuteCommand((params) => handlers.onExecuteCommand(params));
355704
355882
  connection.onHover((params) => handlers.onHover(params));
355883
+ connection.onRequest(GetConstructTreeRequest, () => handlers.onGetConstructTree());
355705
355884
  connection.onShutdown(() => handlers.onShutdown());
355706
355885
  connection.onExit(() => process.exit(0));
355707
355886
  connection.listen();
355708
355887
  }
355709
- var fs55, path52, import_url7, import_cloud_assembly_api22, import_toolkit_lib22, import_node4, import_node5, REFRESH_LOCK_RETRIES, REFRESH_LOCK_RETRY_MS, SYNTH_LOCK_RETRY_BASE_MS, SYNTH_LOCK_RETRY_MAX_MS, NOOP_LOGGER;
355888
+ var fs56, path52, import_url7, import_cloud_assembly_api21, import_toolkit_lib22, import_node4, import_node5, REFRESH_LOCK_RETRIES, REFRESH_LOCK_RETRY_MS, SYNTH_LOCK_RETRY_BASE_MS, SYNTH_LOCK_RETRY_MAX_MS, NOOP_LOGGER;
355710
355889
  var init_server = __esm({
355711
355890
  "../@aws-cdk/cdk-explorer/lib/lsp/server.ts"() {
355712
355891
  "use strict";
355713
- fs55 = __toESM(require("fs"));
355892
+ fs56 = __toESM(require("fs"));
355714
355893
  path52 = __toESM(require("path"));
355715
355894
  import_url7 = require("url");
355716
- import_cloud_assembly_api22 = __toESM(require_lib3());
355895
+ import_cloud_assembly_api21 = __toESM(require_lib3());
355717
355896
  import_toolkit_lib22 = __toESM(require_lib12());
355718
355897
  import_node4 = __toESM(require_node3());
355719
355898
  import_node5 = __toESM(require_node6());
355720
355899
  init_api_private2();
355721
355900
  init_codelens();
355722
355901
  init_commands7();
355902
+ init_construct_tree_request();
355723
355903
  init_diagnostics();
355904
+ init_features();
355724
355905
  init_hover();
355725
355906
  init_positions();
355726
355907
  init_synth_diagnostics();
@@ -355763,10 +355944,10 @@ var init_assembly_lock = __esm({
355763
355944
  // ../@aws-cdk/cdk-explorer/lib/core/cdk-config.ts
355764
355945
  function readCdkConfig(projectDir) {
355765
355946
  const configPath = path53.join(projectDir, "cdk.json");
355766
- if (!fs56.existsSync(configPath)) return { app: void 0 };
355947
+ if (!fs57.existsSync(configPath)) return { app: void 0 };
355767
355948
  let parsed;
355768
355949
  try {
355769
- parsed = JSON.parse(fs56.readFileSync(configPath, "utf-8"));
355950
+ parsed = JSON.parse(fs57.readFileSync(configPath, "utf-8"));
355770
355951
  } catch {
355771
355952
  return { app: void 0 };
355772
355953
  }
@@ -355774,11 +355955,11 @@ function readCdkConfig(projectDir) {
355774
355955
  const app = parsed.app;
355775
355956
  return { app: typeof app === "string" ? app : void 0 };
355776
355957
  }
355777
- var fs56, path53;
355958
+ var fs57, path53;
355778
355959
  var init_cdk_config = __esm({
355779
355960
  "../@aws-cdk/cdk-explorer/lib/core/cdk-config.ts"() {
355780
355961
  "use strict";
355781
- fs56 = __toESM(require("fs"));
355962
+ fs57 = __toESM(require("fs"));
355782
355963
  path53 = __toESM(require("path"));
355783
355964
  __name(readCdkConfig, "readCdkConfig");
355784
355965
  }
@@ -355840,10 +356021,11 @@ var main_exports = {};
355840
356021
  __export(main_exports, {
355841
356022
  startLspServer: () => startLspServer
355842
356023
  });
355843
- function startLspServer() {
356024
+ function startLspServer(version) {
355844
356025
  startServer({
355845
356026
  readable: process.stdin,
355846
356027
  writable: process.stdout,
356028
+ version,
355847
356029
  // Build the Toolkit once connection.console exists (so output reaches the
355848
356030
  // editor Output panel), then bind the two ops the handlers need. The read
355849
356031
  // lock comes from fromAssemblyDirectory().produce(), so we never touch RWLock.
@@ -355874,7 +356056,7 @@ var require_lib13 = __commonJS({
355874
356056
  "../@aws-cdk/cdk-explorer/lib/index.js"(exports2) {
355875
356057
  "use strict";
355876
356058
  Object.defineProperty(exports2, "__esModule", { value: true });
355877
- exports2.createLspHandlers = exports2.startServer = exports2.startLspServer = exports2.readAssembly = exports2.VERSION = void 0;
356059
+ exports2.createLspHandlers = exports2.startServer = exports2.cdkLspManifest = exports2.startLspServer = exports2.readAssembly = exports2.VERSION = void 0;
355878
356060
  exports2.VERSION = "0.0.0";
355879
356061
  var assembly_reader_1 = (init_assembly_reader(), __toCommonJS(assembly_reader_exports));
355880
356062
  Object.defineProperty(exports2, "readAssembly", { enumerable: true, get: /* @__PURE__ */ __name(function() {
@@ -355884,6 +356066,10 @@ var require_lib13 = __commonJS({
355884
356066
  Object.defineProperty(exports2, "startLspServer", { enumerable: true, get: /* @__PURE__ */ __name(function() {
355885
356067
  return main_1.startLspServer;
355886
356068
  }, "get") });
356069
+ var features_1 = (init_features(), __toCommonJS(features_exports));
356070
+ Object.defineProperty(exports2, "cdkLspManifest", { enumerable: true, get: /* @__PURE__ */ __name(function() {
356071
+ return features_1.cdkLspManifest;
356072
+ }, "get") });
355887
356073
  var server_1 = (init_server(), __toCommonJS(server_exports));
355888
356074
  Object.defineProperty(exports2, "startServer", { enumerable: true, get: /* @__PURE__ */ __name(function() {
355889
356075
  return server_1.startServer;
@@ -355895,8 +356081,12 @@ var require_lib13 = __commonJS({
355895
356081
  });
355896
356082
 
355897
356083
  // lib/commands/lsp.ts
355898
- async function lsp() {
355899
- (0, import_cdk_explorer.startLspServer)();
356084
+ async function lsp(options = {}) {
356085
+ if (options.features) {
356086
+ process3.stdout.write(JSON.stringify((0, import_cdk_explorer.cdkLspManifest)(versionNumber2())) + "\n");
356087
+ return 0;
356088
+ }
356089
+ (0, import_cdk_explorer.startLspServer)(versionNumber2());
355900
356090
  await new Promise((resolve16) => {
355901
356091
  const done = /* @__PURE__ */ __name(() => resolve16(), "done");
355902
356092
  process3.stdin.once("end", done);
@@ -355910,6 +356100,7 @@ var init_lsp = __esm({
355910
356100
  "use strict";
355911
356101
  process3 = __toESM(require("process"));
355912
356102
  import_cdk_explorer = __toESM(require_lib13());
356103
+ init_version();
355913
356104
  __name(lsp, "lsp");
355914
356105
  }
355915
356106
  });
@@ -356236,7 +356427,7 @@ async function exec4(args, synthesizer) {
356236
356427
  });
356237
356428
  case "lsp":
356238
356429
  ioHost.currentAction = "lsp";
356239
- return lsp();
356430
+ return lsp({ features: argv.features });
356240
356431
  case "ls":
356241
356432
  case "list":
356242
356433
  ioHost.currentAction = "list";