@atlashub/smartstack-cli 4.25.0 → 4.27.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.
Files changed (30) hide show
  1. package/dist/index.js +765 -517
  2. package/dist/index.js.map +1 -1
  3. package/dist/mcp-entry.mjs +33 -11
  4. package/dist/mcp-entry.mjs.map +1 -1
  5. package/package.json +1 -1
  6. package/templates/agents/ba-writer.md +46 -42
  7. package/templates/project/appsettings.json.template +4 -6
  8. package/templates/skills/apex/SKILL.md +1 -0
  9. package/templates/skills/apex/references/challenge-questions.md +17 -0
  10. package/templates/skills/apex/references/post-checks.md +48 -0
  11. package/templates/skills/apex/steps/step-03-execute.md +63 -2
  12. package/templates/skills/ba-generate-html/references/data-build.md +22 -13
  13. package/templates/skills/ba-generate-html/references/data-mapping.md +33 -24
  14. package/templates/skills/ba-generate-html/steps/step-01-collect.md +15 -6
  15. package/templates/skills/ba-generate-html/steps/step-02-build-data.md +37 -22
  16. package/templates/skills/business-analyse/steps/step-00-init.md +22 -14
  17. package/templates/skills/business-analyse/steps/step-04-consolidate.md +3 -0
  18. package/templates/skills/derive-prd/steps/step-01-transform.md +6 -2
  19. package/templates/skills/derive-prd/steps/step-02-export.md +12 -0
  20. package/templates/skills/ralph-loop/references/category-completeness.md +3 -3
  21. package/templates/skills/ralph-loop/references/compact-loop.md +81 -14
  22. package/templates/skills/ralph-loop/references/init-resume-recovery.md +1 -1
  23. package/templates/skills/ralph-loop/references/module-transition.md +30 -5
  24. package/templates/skills/ralph-loop/references/multi-module-queue.md +4 -4
  25. package/templates/skills/ralph-loop/references/section-splitting.md +6 -6
  26. package/templates/skills/ralph-loop/steps/step-01-task.md +14 -4
  27. package/templates/skills/ralph-loop/steps/step-02-execute.md +14 -6
  28. package/templates/skills/ralph-loop/steps/step-03-commit.md +15 -4
  29. package/templates/skills/ralph-loop/steps/step-04-check.md +19 -5
  30. package/templates/skills/ralph-loop/steps/step-05-report.md +35 -3
package/dist/index.js CHANGED
@@ -974,7 +974,7 @@ var require_command = __commonJS({
974
974
  var EventEmitter2 = require("events").EventEmitter;
975
975
  var childProcess2 = require("child_process");
976
976
  var path4 = require("path");
977
- var fs20 = require("fs");
977
+ var fs21 = require("fs");
978
978
  var process17 = require("process");
979
979
  var { Argument: Argument2, humanReadableArgName } = require_argument();
980
980
  var { CommanderError: CommanderError2 } = require_error();
@@ -1907,10 +1907,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
1907
1907
  const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
1908
1908
  function findFile(baseDir, baseName) {
1909
1909
  const localBin = path4.resolve(baseDir, baseName);
1910
- if (fs20.existsSync(localBin)) return localBin;
1910
+ if (fs21.existsSync(localBin)) return localBin;
1911
1911
  if (sourceExt.includes(path4.extname(baseName))) return void 0;
1912
1912
  const foundExt = sourceExt.find(
1913
- (ext2) => fs20.existsSync(`${localBin}${ext2}`)
1913
+ (ext2) => fs21.existsSync(`${localBin}${ext2}`)
1914
1914
  );
1915
1915
  if (foundExt) return `${localBin}${foundExt}`;
1916
1916
  return void 0;
@@ -1922,7 +1922,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1922
1922
  if (this._scriptPath) {
1923
1923
  let resolvedScriptPath;
1924
1924
  try {
1925
- resolvedScriptPath = fs20.realpathSync(this._scriptPath);
1925
+ resolvedScriptPath = fs21.realpathSync(this._scriptPath);
1926
1926
  } catch (err) {
1927
1927
  resolvedScriptPath = this._scriptPath;
1928
1928
  }
@@ -3042,8 +3042,8 @@ var require_universalify = __commonJS({
3042
3042
  return Object.defineProperty(function(...args) {
3043
3043
  if (typeof args[args.length - 1] === "function") fn.apply(this, args);
3044
3044
  else {
3045
- return new Promise((resolve, reject) => {
3046
- args.push((err, res) => err != null ? reject(err) : resolve(res));
3045
+ return new Promise((resolve2, reject) => {
3046
+ args.push((err, res) => err != null ? reject(err) : resolve2(res));
3047
3047
  fn.apply(this, args);
3048
3048
  });
3049
3049
  }
@@ -3089,54 +3089,54 @@ var require_polyfills = __commonJS({
3089
3089
  }
3090
3090
  var chdir;
3091
3091
  module2.exports = patch;
3092
- function patch(fs20) {
3092
+ function patch(fs21) {
3093
3093
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
3094
- patchLchmod(fs20);
3095
- }
3096
- if (!fs20.lutimes) {
3097
- patchLutimes(fs20);
3098
- }
3099
- fs20.chown = chownFix(fs20.chown);
3100
- fs20.fchown = chownFix(fs20.fchown);
3101
- fs20.lchown = chownFix(fs20.lchown);
3102
- fs20.chmod = chmodFix(fs20.chmod);
3103
- fs20.fchmod = chmodFix(fs20.fchmod);
3104
- fs20.lchmod = chmodFix(fs20.lchmod);
3105
- fs20.chownSync = chownFixSync(fs20.chownSync);
3106
- fs20.fchownSync = chownFixSync(fs20.fchownSync);
3107
- fs20.lchownSync = chownFixSync(fs20.lchownSync);
3108
- fs20.chmodSync = chmodFixSync(fs20.chmodSync);
3109
- fs20.fchmodSync = chmodFixSync(fs20.fchmodSync);
3110
- fs20.lchmodSync = chmodFixSync(fs20.lchmodSync);
3111
- fs20.stat = statFix(fs20.stat);
3112
- fs20.fstat = statFix(fs20.fstat);
3113
- fs20.lstat = statFix(fs20.lstat);
3114
- fs20.statSync = statFixSync(fs20.statSync);
3115
- fs20.fstatSync = statFixSync(fs20.fstatSync);
3116
- fs20.lstatSync = statFixSync(fs20.lstatSync);
3117
- if (fs20.chmod && !fs20.lchmod) {
3118
- fs20.lchmod = function(path4, mode, cb) {
3094
+ patchLchmod(fs21);
3095
+ }
3096
+ if (!fs21.lutimes) {
3097
+ patchLutimes(fs21);
3098
+ }
3099
+ fs21.chown = chownFix(fs21.chown);
3100
+ fs21.fchown = chownFix(fs21.fchown);
3101
+ fs21.lchown = chownFix(fs21.lchown);
3102
+ fs21.chmod = chmodFix(fs21.chmod);
3103
+ fs21.fchmod = chmodFix(fs21.fchmod);
3104
+ fs21.lchmod = chmodFix(fs21.lchmod);
3105
+ fs21.chownSync = chownFixSync(fs21.chownSync);
3106
+ fs21.fchownSync = chownFixSync(fs21.fchownSync);
3107
+ fs21.lchownSync = chownFixSync(fs21.lchownSync);
3108
+ fs21.chmodSync = chmodFixSync(fs21.chmodSync);
3109
+ fs21.fchmodSync = chmodFixSync(fs21.fchmodSync);
3110
+ fs21.lchmodSync = chmodFixSync(fs21.lchmodSync);
3111
+ fs21.stat = statFix(fs21.stat);
3112
+ fs21.fstat = statFix(fs21.fstat);
3113
+ fs21.lstat = statFix(fs21.lstat);
3114
+ fs21.statSync = statFixSync(fs21.statSync);
3115
+ fs21.fstatSync = statFixSync(fs21.fstatSync);
3116
+ fs21.lstatSync = statFixSync(fs21.lstatSync);
3117
+ if (fs21.chmod && !fs21.lchmod) {
3118
+ fs21.lchmod = function(path4, mode, cb) {
3119
3119
  if (cb) process.nextTick(cb);
3120
3120
  };
3121
- fs20.lchmodSync = function() {
3121
+ fs21.lchmodSync = function() {
3122
3122
  };
3123
3123
  }
3124
- if (fs20.chown && !fs20.lchown) {
3125
- fs20.lchown = function(path4, uid, gid, cb) {
3124
+ if (fs21.chown && !fs21.lchown) {
3125
+ fs21.lchown = function(path4, uid, gid, cb) {
3126
3126
  if (cb) process.nextTick(cb);
3127
3127
  };
3128
- fs20.lchownSync = function() {
3128
+ fs21.lchownSync = function() {
3129
3129
  };
3130
3130
  }
3131
3131
  if (platform4 === "win32") {
3132
- fs20.rename = typeof fs20.rename !== "function" ? fs20.rename : (function(fs$rename) {
3132
+ fs21.rename = typeof fs21.rename !== "function" ? fs21.rename : (function(fs$rename) {
3133
3133
  function rename(from3, to, cb) {
3134
3134
  var start = Date.now();
3135
3135
  var backoff = 0;
3136
3136
  fs$rename(from3, to, function CB(er) {
3137
3137
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
3138
3138
  setTimeout(function() {
3139
- fs20.stat(to, function(stater, st) {
3139
+ fs21.stat(to, function(stater, st) {
3140
3140
  if (stater && stater.code === "ENOENT")
3141
3141
  fs$rename(from3, to, CB);
3142
3142
  else
@@ -3152,9 +3152,9 @@ var require_polyfills = __commonJS({
3152
3152
  }
3153
3153
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
3154
3154
  return rename;
3155
- })(fs20.rename);
3155
+ })(fs21.rename);
3156
3156
  }
3157
- fs20.read = typeof fs20.read !== "function" ? fs20.read : (function(fs$read) {
3157
+ fs21.read = typeof fs21.read !== "function" ? fs21.read : (function(fs$read) {
3158
3158
  function read(fd, buffer, offset, length, position, callback_) {
3159
3159
  var callback;
3160
3160
  if (callback_ && typeof callback_ === "function") {
@@ -3162,22 +3162,22 @@ var require_polyfills = __commonJS({
3162
3162
  callback = function(er, _3, __) {
3163
3163
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
3164
3164
  eagCounter++;
3165
- return fs$read.call(fs20, fd, buffer, offset, length, position, callback);
3165
+ return fs$read.call(fs21, fd, buffer, offset, length, position, callback);
3166
3166
  }
3167
3167
  callback_.apply(this, arguments);
3168
3168
  };
3169
3169
  }
3170
- return fs$read.call(fs20, fd, buffer, offset, length, position, callback);
3170
+ return fs$read.call(fs21, fd, buffer, offset, length, position, callback);
3171
3171
  }
3172
3172
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
3173
3173
  return read;
3174
- })(fs20.read);
3175
- fs20.readSync = typeof fs20.readSync !== "function" ? fs20.readSync : /* @__PURE__ */ (function(fs$readSync) {
3174
+ })(fs21.read);
3175
+ fs21.readSync = typeof fs21.readSync !== "function" ? fs21.readSync : /* @__PURE__ */ (function(fs$readSync) {
3176
3176
  return function(fd, buffer, offset, length, position) {
3177
3177
  var eagCounter = 0;
3178
3178
  while (true) {
3179
3179
  try {
3180
- return fs$readSync.call(fs20, fd, buffer, offset, length, position);
3180
+ return fs$readSync.call(fs21, fd, buffer, offset, length, position);
3181
3181
  } catch (er) {
3182
3182
  if (er.code === "EAGAIN" && eagCounter < 10) {
3183
3183
  eagCounter++;
@@ -3187,10 +3187,10 @@ var require_polyfills = __commonJS({
3187
3187
  }
3188
3188
  }
3189
3189
  };
3190
- })(fs20.readSync);
3191
- function patchLchmod(fs21) {
3192
- fs21.lchmod = function(path4, mode, callback) {
3193
- fs21.open(
3190
+ })(fs21.readSync);
3191
+ function patchLchmod(fs22) {
3192
+ fs22.lchmod = function(path4, mode, callback) {
3193
+ fs22.open(
3194
3194
  path4,
3195
3195
  constants.O_WRONLY | constants.O_SYMLINK,
3196
3196
  mode,
@@ -3199,80 +3199,80 @@ var require_polyfills = __commonJS({
3199
3199
  if (callback) callback(err);
3200
3200
  return;
3201
3201
  }
3202
- fs21.fchmod(fd, mode, function(err2) {
3203
- fs21.close(fd, function(err22) {
3202
+ fs22.fchmod(fd, mode, function(err2) {
3203
+ fs22.close(fd, function(err22) {
3204
3204
  if (callback) callback(err2 || err22);
3205
3205
  });
3206
3206
  });
3207
3207
  }
3208
3208
  );
3209
3209
  };
3210
- fs21.lchmodSync = function(path4, mode) {
3211
- var fd = fs21.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
3210
+ fs22.lchmodSync = function(path4, mode) {
3211
+ var fd = fs22.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
3212
3212
  var threw = true;
3213
3213
  var ret;
3214
3214
  try {
3215
- ret = fs21.fchmodSync(fd, mode);
3215
+ ret = fs22.fchmodSync(fd, mode);
3216
3216
  threw = false;
3217
3217
  } finally {
3218
3218
  if (threw) {
3219
3219
  try {
3220
- fs21.closeSync(fd);
3220
+ fs22.closeSync(fd);
3221
3221
  } catch (er) {
3222
3222
  }
3223
3223
  } else {
3224
- fs21.closeSync(fd);
3224
+ fs22.closeSync(fd);
3225
3225
  }
3226
3226
  }
3227
3227
  return ret;
3228
3228
  };
3229
3229
  }
3230
- function patchLutimes(fs21) {
3231
- if (constants.hasOwnProperty("O_SYMLINK") && fs21.futimes) {
3232
- fs21.lutimes = function(path4, at, mt, cb) {
3233
- fs21.open(path4, constants.O_SYMLINK, function(er, fd) {
3230
+ function patchLutimes(fs22) {
3231
+ if (constants.hasOwnProperty("O_SYMLINK") && fs22.futimes) {
3232
+ fs22.lutimes = function(path4, at, mt, cb) {
3233
+ fs22.open(path4, constants.O_SYMLINK, function(er, fd) {
3234
3234
  if (er) {
3235
3235
  if (cb) cb(er);
3236
3236
  return;
3237
3237
  }
3238
- fs21.futimes(fd, at, mt, function(er2) {
3239
- fs21.close(fd, function(er22) {
3238
+ fs22.futimes(fd, at, mt, function(er2) {
3239
+ fs22.close(fd, function(er22) {
3240
3240
  if (cb) cb(er2 || er22);
3241
3241
  });
3242
3242
  });
3243
3243
  });
3244
3244
  };
3245
- fs21.lutimesSync = function(path4, at, mt) {
3246
- var fd = fs21.openSync(path4, constants.O_SYMLINK);
3245
+ fs22.lutimesSync = function(path4, at, mt) {
3246
+ var fd = fs22.openSync(path4, constants.O_SYMLINK);
3247
3247
  var ret;
3248
3248
  var threw = true;
3249
3249
  try {
3250
- ret = fs21.futimesSync(fd, at, mt);
3250
+ ret = fs22.futimesSync(fd, at, mt);
3251
3251
  threw = false;
3252
3252
  } finally {
3253
3253
  if (threw) {
3254
3254
  try {
3255
- fs21.closeSync(fd);
3255
+ fs22.closeSync(fd);
3256
3256
  } catch (er) {
3257
3257
  }
3258
3258
  } else {
3259
- fs21.closeSync(fd);
3259
+ fs22.closeSync(fd);
3260
3260
  }
3261
3261
  }
3262
3262
  return ret;
3263
3263
  };
3264
- } else if (fs21.futimes) {
3265
- fs21.lutimes = function(_a, _b, _c, cb) {
3264
+ } else if (fs22.futimes) {
3265
+ fs22.lutimes = function(_a, _b, _c, cb) {
3266
3266
  if (cb) process.nextTick(cb);
3267
3267
  };
3268
- fs21.lutimesSync = function() {
3268
+ fs22.lutimesSync = function() {
3269
3269
  };
3270
3270
  }
3271
3271
  }
3272
3272
  function chmodFix(orig) {
3273
3273
  if (!orig) return orig;
3274
3274
  return function(target, mode, cb) {
3275
- return orig.call(fs20, target, mode, function(er) {
3275
+ return orig.call(fs21, target, mode, function(er) {
3276
3276
  if (chownErOk(er)) er = null;
3277
3277
  if (cb) cb.apply(this, arguments);
3278
3278
  });
@@ -3282,7 +3282,7 @@ var require_polyfills = __commonJS({
3282
3282
  if (!orig) return orig;
3283
3283
  return function(target, mode) {
3284
3284
  try {
3285
- return orig.call(fs20, target, mode);
3285
+ return orig.call(fs21, target, mode);
3286
3286
  } catch (er) {
3287
3287
  if (!chownErOk(er)) throw er;
3288
3288
  }
@@ -3291,7 +3291,7 @@ var require_polyfills = __commonJS({
3291
3291
  function chownFix(orig) {
3292
3292
  if (!orig) return orig;
3293
3293
  return function(target, uid, gid, cb) {
3294
- return orig.call(fs20, target, uid, gid, function(er) {
3294
+ return orig.call(fs21, target, uid, gid, function(er) {
3295
3295
  if (chownErOk(er)) er = null;
3296
3296
  if (cb) cb.apply(this, arguments);
3297
3297
  });
@@ -3301,7 +3301,7 @@ var require_polyfills = __commonJS({
3301
3301
  if (!orig) return orig;
3302
3302
  return function(target, uid, gid) {
3303
3303
  try {
3304
- return orig.call(fs20, target, uid, gid);
3304
+ return orig.call(fs21, target, uid, gid);
3305
3305
  } catch (er) {
3306
3306
  if (!chownErOk(er)) throw er;
3307
3307
  }
@@ -3321,13 +3321,13 @@ var require_polyfills = __commonJS({
3321
3321
  }
3322
3322
  if (cb) cb.apply(this, arguments);
3323
3323
  }
3324
- return options ? orig.call(fs20, target, options, callback) : orig.call(fs20, target, callback);
3324
+ return options ? orig.call(fs21, target, options, callback) : orig.call(fs21, target, callback);
3325
3325
  };
3326
3326
  }
3327
3327
  function statFixSync(orig) {
3328
3328
  if (!orig) return orig;
3329
3329
  return function(target, options) {
3330
- var stats = options ? orig.call(fs20, target, options) : orig.call(fs20, target);
3330
+ var stats = options ? orig.call(fs21, target, options) : orig.call(fs21, target);
3331
3331
  if (stats) {
3332
3332
  if (stats.uid < 0) stats.uid += 4294967296;
3333
3333
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -3357,7 +3357,7 @@ var require_legacy_streams = __commonJS({
3357
3357
  "use strict";
3358
3358
  var Stream2 = require("stream").Stream;
3359
3359
  module2.exports = legacy;
3360
- function legacy(fs20) {
3360
+ function legacy(fs21) {
3361
3361
  return {
3362
3362
  ReadStream,
3363
3363
  WriteStream
@@ -3400,7 +3400,7 @@ var require_legacy_streams = __commonJS({
3400
3400
  });
3401
3401
  return;
3402
3402
  }
3403
- fs20.open(this.path, this.flags, this.mode, function(err, fd) {
3403
+ fs21.open(this.path, this.flags, this.mode, function(err, fd) {
3404
3404
  if (err) {
3405
3405
  self2.emit("error", err);
3406
3406
  self2.readable = false;
@@ -3439,7 +3439,7 @@ var require_legacy_streams = __commonJS({
3439
3439
  this.busy = false;
3440
3440
  this._queue = [];
3441
3441
  if (this.fd === null) {
3442
- this._open = fs20.open;
3442
+ this._open = fs21.open;
3443
3443
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
3444
3444
  this.flush();
3445
3445
  }
@@ -3475,7 +3475,7 @@ var require_clone = __commonJS({
3475
3475
  var require_graceful_fs = __commonJS({
3476
3476
  "node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
3477
3477
  "use strict";
3478
- var fs20 = require("fs");
3478
+ var fs21 = require("fs");
3479
3479
  var polyfills = require_polyfills();
3480
3480
  var legacy = require_legacy_streams();
3481
3481
  var clone = require_clone();
@@ -3507,12 +3507,12 @@ var require_graceful_fs = __commonJS({
3507
3507
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
3508
3508
  console.error(m);
3509
3509
  };
3510
- if (!fs20[gracefulQueue]) {
3510
+ if (!fs21[gracefulQueue]) {
3511
3511
  queue = global[gracefulQueue] || [];
3512
- publishQueue(fs20, queue);
3513
- fs20.close = (function(fs$close) {
3512
+ publishQueue(fs21, queue);
3513
+ fs21.close = (function(fs$close) {
3514
3514
  function close(fd, cb) {
3515
- return fs$close.call(fs20, fd, function(err) {
3515
+ return fs$close.call(fs21, fd, function(err) {
3516
3516
  if (!err) {
3517
3517
  resetQueue();
3518
3518
  }
@@ -3524,40 +3524,40 @@ var require_graceful_fs = __commonJS({
3524
3524
  value: fs$close
3525
3525
  });
3526
3526
  return close;
3527
- })(fs20.close);
3528
- fs20.closeSync = (function(fs$closeSync) {
3527
+ })(fs21.close);
3528
+ fs21.closeSync = (function(fs$closeSync) {
3529
3529
  function closeSync(fd) {
3530
- fs$closeSync.apply(fs20, arguments);
3530
+ fs$closeSync.apply(fs21, arguments);
3531
3531
  resetQueue();
3532
3532
  }
3533
3533
  Object.defineProperty(closeSync, previousSymbol, {
3534
3534
  value: fs$closeSync
3535
3535
  });
3536
3536
  return closeSync;
3537
- })(fs20.closeSync);
3537
+ })(fs21.closeSync);
3538
3538
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
3539
3539
  process.on("exit", function() {
3540
- debug(fs20[gracefulQueue]);
3541
- require("assert").equal(fs20[gracefulQueue].length, 0);
3540
+ debug(fs21[gracefulQueue]);
3541
+ require("assert").equal(fs21[gracefulQueue].length, 0);
3542
3542
  });
3543
3543
  }
3544
3544
  }
3545
3545
  var queue;
3546
3546
  if (!global[gracefulQueue]) {
3547
- publishQueue(global, fs20[gracefulQueue]);
3548
- }
3549
- module2.exports = patch(clone(fs20));
3550
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs20.__patched) {
3551
- module2.exports = patch(fs20);
3552
- fs20.__patched = true;
3553
- }
3554
- function patch(fs21) {
3555
- polyfills(fs21);
3556
- fs21.gracefulify = patch;
3557
- fs21.createReadStream = createReadStream;
3558
- fs21.createWriteStream = createWriteStream;
3559
- var fs$readFile = fs21.readFile;
3560
- fs21.readFile = readFile;
3547
+ publishQueue(global, fs21[gracefulQueue]);
3548
+ }
3549
+ module2.exports = patch(clone(fs21));
3550
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs21.__patched) {
3551
+ module2.exports = patch(fs21);
3552
+ fs21.__patched = true;
3553
+ }
3554
+ function patch(fs22) {
3555
+ polyfills(fs22);
3556
+ fs22.gracefulify = patch;
3557
+ fs22.createReadStream = createReadStream;
3558
+ fs22.createWriteStream = createWriteStream;
3559
+ var fs$readFile = fs22.readFile;
3560
+ fs22.readFile = readFile;
3561
3561
  function readFile(path4, options, cb) {
3562
3562
  if (typeof options === "function")
3563
3563
  cb = options, options = null;
@@ -3573,8 +3573,8 @@ var require_graceful_fs = __commonJS({
3573
3573
  });
3574
3574
  }
3575
3575
  }
3576
- var fs$writeFile = fs21.writeFile;
3577
- fs21.writeFile = writeFile;
3576
+ var fs$writeFile = fs22.writeFile;
3577
+ fs22.writeFile = writeFile;
3578
3578
  function writeFile(path4, data, options, cb) {
3579
3579
  if (typeof options === "function")
3580
3580
  cb = options, options = null;
@@ -3590,9 +3590,9 @@ var require_graceful_fs = __commonJS({
3590
3590
  });
3591
3591
  }
3592
3592
  }
3593
- var fs$appendFile = fs21.appendFile;
3593
+ var fs$appendFile = fs22.appendFile;
3594
3594
  if (fs$appendFile)
3595
- fs21.appendFile = appendFile;
3595
+ fs22.appendFile = appendFile;
3596
3596
  function appendFile(path4, data, options, cb) {
3597
3597
  if (typeof options === "function")
3598
3598
  cb = options, options = null;
@@ -3608,9 +3608,9 @@ var require_graceful_fs = __commonJS({
3608
3608
  });
3609
3609
  }
3610
3610
  }
3611
- var fs$copyFile = fs21.copyFile;
3611
+ var fs$copyFile = fs22.copyFile;
3612
3612
  if (fs$copyFile)
3613
- fs21.copyFile = copyFile;
3613
+ fs22.copyFile = copyFile;
3614
3614
  function copyFile(src, dest, flags, cb) {
3615
3615
  if (typeof flags === "function") {
3616
3616
  cb = flags;
@@ -3628,8 +3628,8 @@ var require_graceful_fs = __commonJS({
3628
3628
  });
3629
3629
  }
3630
3630
  }
3631
- var fs$readdir = fs21.readdir;
3632
- fs21.readdir = readdir2;
3631
+ var fs$readdir = fs22.readdir;
3632
+ fs22.readdir = readdir2;
3633
3633
  var noReaddirOptionVersions = /^v[0-5]\./;
3634
3634
  function readdir2(path4, options, cb) {
3635
3635
  if (typeof options === "function")
@@ -3670,21 +3670,21 @@ var require_graceful_fs = __commonJS({
3670
3670
  }
3671
3671
  }
3672
3672
  if (process.version.substr(0, 4) === "v0.8") {
3673
- var legStreams = legacy(fs21);
3673
+ var legStreams = legacy(fs22);
3674
3674
  ReadStream = legStreams.ReadStream;
3675
3675
  WriteStream = legStreams.WriteStream;
3676
3676
  }
3677
- var fs$ReadStream = fs21.ReadStream;
3677
+ var fs$ReadStream = fs22.ReadStream;
3678
3678
  if (fs$ReadStream) {
3679
3679
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
3680
3680
  ReadStream.prototype.open = ReadStream$open;
3681
3681
  }
3682
- var fs$WriteStream = fs21.WriteStream;
3682
+ var fs$WriteStream = fs22.WriteStream;
3683
3683
  if (fs$WriteStream) {
3684
3684
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
3685
3685
  WriteStream.prototype.open = WriteStream$open;
3686
3686
  }
3687
- Object.defineProperty(fs21, "ReadStream", {
3687
+ Object.defineProperty(fs22, "ReadStream", {
3688
3688
  get: function() {
3689
3689
  return ReadStream;
3690
3690
  },
@@ -3694,7 +3694,7 @@ var require_graceful_fs = __commonJS({
3694
3694
  enumerable: true,
3695
3695
  configurable: true
3696
3696
  });
3697
- Object.defineProperty(fs21, "WriteStream", {
3697
+ Object.defineProperty(fs22, "WriteStream", {
3698
3698
  get: function() {
3699
3699
  return WriteStream;
3700
3700
  },
@@ -3705,7 +3705,7 @@ var require_graceful_fs = __commonJS({
3705
3705
  configurable: true
3706
3706
  });
3707
3707
  var FileReadStream = ReadStream;
3708
- Object.defineProperty(fs21, "FileReadStream", {
3708
+ Object.defineProperty(fs22, "FileReadStream", {
3709
3709
  get: function() {
3710
3710
  return FileReadStream;
3711
3711
  },
@@ -3716,7 +3716,7 @@ var require_graceful_fs = __commonJS({
3716
3716
  configurable: true
3717
3717
  });
3718
3718
  var FileWriteStream = WriteStream;
3719
- Object.defineProperty(fs21, "FileWriteStream", {
3719
+ Object.defineProperty(fs22, "FileWriteStream", {
3720
3720
  get: function() {
3721
3721
  return FileWriteStream;
3722
3722
  },
@@ -3765,13 +3765,13 @@ var require_graceful_fs = __commonJS({
3765
3765
  });
3766
3766
  }
3767
3767
  function createReadStream(path4, options) {
3768
- return new fs21.ReadStream(path4, options);
3768
+ return new fs22.ReadStream(path4, options);
3769
3769
  }
3770
3770
  function createWriteStream(path4, options) {
3771
- return new fs21.WriteStream(path4, options);
3771
+ return new fs22.WriteStream(path4, options);
3772
3772
  }
3773
- var fs$open = fs21.open;
3774
- fs21.open = open2;
3773
+ var fs$open = fs22.open;
3774
+ fs22.open = open2;
3775
3775
  function open2(path4, flags, mode, cb) {
3776
3776
  if (typeof mode === "function")
3777
3777
  cb = mode, mode = null;
@@ -3787,20 +3787,20 @@ var require_graceful_fs = __commonJS({
3787
3787
  });
3788
3788
  }
3789
3789
  }
3790
- return fs21;
3790
+ return fs22;
3791
3791
  }
3792
3792
  function enqueue(elem) {
3793
3793
  debug("ENQUEUE", elem[0].name, elem[1]);
3794
- fs20[gracefulQueue].push(elem);
3794
+ fs21[gracefulQueue].push(elem);
3795
3795
  retry();
3796
3796
  }
3797
3797
  var retryTimer;
3798
3798
  function resetQueue() {
3799
3799
  var now = Date.now();
3800
- for (var i = 0; i < fs20[gracefulQueue].length; ++i) {
3801
- if (fs20[gracefulQueue][i].length > 2) {
3802
- fs20[gracefulQueue][i][3] = now;
3803
- fs20[gracefulQueue][i][4] = now;
3800
+ for (var i = 0; i < fs21[gracefulQueue].length; ++i) {
3801
+ if (fs21[gracefulQueue][i].length > 2) {
3802
+ fs21[gracefulQueue][i][3] = now;
3803
+ fs21[gracefulQueue][i][4] = now;
3804
3804
  }
3805
3805
  }
3806
3806
  retry();
@@ -3808,9 +3808,9 @@ var require_graceful_fs = __commonJS({
3808
3808
  function retry() {
3809
3809
  clearTimeout(retryTimer);
3810
3810
  retryTimer = void 0;
3811
- if (fs20[gracefulQueue].length === 0)
3811
+ if (fs21[gracefulQueue].length === 0)
3812
3812
  return;
3813
- var elem = fs20[gracefulQueue].shift();
3813
+ var elem = fs21[gracefulQueue].shift();
3814
3814
  var fn = elem[0];
3815
3815
  var args = elem[1];
3816
3816
  var err = elem[2];
@@ -3832,7 +3832,7 @@ var require_graceful_fs = __commonJS({
3832
3832
  debug("RETRY", fn.name, args);
3833
3833
  fn.apply(null, args.concat([startTime]));
3834
3834
  } else {
3835
- fs20[gracefulQueue].push(elem);
3835
+ fs21[gracefulQueue].push(elem);
3836
3836
  }
3837
3837
  }
3838
3838
  if (retryTimer === void 0) {
@@ -3847,7 +3847,7 @@ var require_fs = __commonJS({
3847
3847
  "node_modules/fs-extra/lib/fs/index.js"(exports2) {
3848
3848
  "use strict";
3849
3849
  var u = require_universalify().fromCallback;
3850
- var fs20 = require_graceful_fs();
3850
+ var fs21 = require_graceful_fs();
3851
3851
  var api = [
3852
3852
  "access",
3853
3853
  "appendFile",
@@ -3888,66 +3888,66 @@ var require_fs = __commonJS({
3888
3888
  "utimes",
3889
3889
  "writeFile"
3890
3890
  ].filter((key) => {
3891
- return typeof fs20[key] === "function";
3891
+ return typeof fs21[key] === "function";
3892
3892
  });
3893
- Object.assign(exports2, fs20);
3893
+ Object.assign(exports2, fs21);
3894
3894
  api.forEach((method) => {
3895
- exports2[method] = u(fs20[method]);
3895
+ exports2[method] = u(fs21[method]);
3896
3896
  });
3897
3897
  exports2.exists = function(filename, callback) {
3898
3898
  if (typeof callback === "function") {
3899
- return fs20.exists(filename, callback);
3899
+ return fs21.exists(filename, callback);
3900
3900
  }
3901
- return new Promise((resolve) => {
3902
- return fs20.exists(filename, resolve);
3901
+ return new Promise((resolve2) => {
3902
+ return fs21.exists(filename, resolve2);
3903
3903
  });
3904
3904
  };
3905
3905
  exports2.read = function(fd, buffer, offset, length, position, callback) {
3906
3906
  if (typeof callback === "function") {
3907
- return fs20.read(fd, buffer, offset, length, position, callback);
3907
+ return fs21.read(fd, buffer, offset, length, position, callback);
3908
3908
  }
3909
- return new Promise((resolve, reject) => {
3910
- fs20.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
3909
+ return new Promise((resolve2, reject) => {
3910
+ fs21.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
3911
3911
  if (err) return reject(err);
3912
- resolve({ bytesRead, buffer: buffer2 });
3912
+ resolve2({ bytesRead, buffer: buffer2 });
3913
3913
  });
3914
3914
  });
3915
3915
  };
3916
3916
  exports2.write = function(fd, buffer, ...args) {
3917
3917
  if (typeof args[args.length - 1] === "function") {
3918
- return fs20.write(fd, buffer, ...args);
3918
+ return fs21.write(fd, buffer, ...args);
3919
3919
  }
3920
- return new Promise((resolve, reject) => {
3921
- fs20.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
3920
+ return new Promise((resolve2, reject) => {
3921
+ fs21.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
3922
3922
  if (err) return reject(err);
3923
- resolve({ bytesWritten, buffer: buffer2 });
3923
+ resolve2({ bytesWritten, buffer: buffer2 });
3924
3924
  });
3925
3925
  });
3926
3926
  };
3927
3927
  exports2.readv = function(fd, buffers, ...args) {
3928
3928
  if (typeof args[args.length - 1] === "function") {
3929
- return fs20.readv(fd, buffers, ...args);
3929
+ return fs21.readv(fd, buffers, ...args);
3930
3930
  }
3931
- return new Promise((resolve, reject) => {
3932
- fs20.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
3931
+ return new Promise((resolve2, reject) => {
3932
+ fs21.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
3933
3933
  if (err) return reject(err);
3934
- resolve({ bytesRead, buffers: buffers2 });
3934
+ resolve2({ bytesRead, buffers: buffers2 });
3935
3935
  });
3936
3936
  });
3937
3937
  };
3938
3938
  exports2.writev = function(fd, buffers, ...args) {
3939
3939
  if (typeof args[args.length - 1] === "function") {
3940
- return fs20.writev(fd, buffers, ...args);
3940
+ return fs21.writev(fd, buffers, ...args);
3941
3941
  }
3942
- return new Promise((resolve, reject) => {
3943
- fs20.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
3942
+ return new Promise((resolve2, reject) => {
3943
+ fs21.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
3944
3944
  if (err) return reject(err);
3945
- resolve({ bytesWritten, buffers: buffers2 });
3945
+ resolve2({ bytesWritten, buffers: buffers2 });
3946
3946
  });
3947
3947
  });
3948
3948
  };
3949
- if (typeof fs20.realpath.native === "function") {
3950
- exports2.realpath.native = u(fs20.realpath.native);
3949
+ if (typeof fs21.realpath.native === "function") {
3950
+ exports2.realpath.native = u(fs21.realpath.native);
3951
3951
  } else {
3952
3952
  process.emitWarning(
3953
3953
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -3980,7 +3980,7 @@ var require_utils = __commonJS({
3980
3980
  var require_make_dir = __commonJS({
3981
3981
  "node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
3982
3982
  "use strict";
3983
- var fs20 = require_fs();
3983
+ var fs21 = require_fs();
3984
3984
  var { checkPath } = require_utils();
3985
3985
  var getMode = (options) => {
3986
3986
  const defaults2 = { mode: 511 };
@@ -3989,14 +3989,14 @@ var require_make_dir = __commonJS({
3989
3989
  };
3990
3990
  module2.exports.makeDir = async (dir, options) => {
3991
3991
  checkPath(dir);
3992
- return fs20.mkdir(dir, {
3992
+ return fs21.mkdir(dir, {
3993
3993
  mode: getMode(options),
3994
3994
  recursive: true
3995
3995
  });
3996
3996
  };
3997
3997
  module2.exports.makeDirSync = (dir, options) => {
3998
3998
  checkPath(dir);
3999
- return fs20.mkdirSync(dir, {
3999
+ return fs21.mkdirSync(dir, {
4000
4000
  mode: getMode(options),
4001
4001
  recursive: true
4002
4002
  });
@@ -4028,13 +4028,13 @@ var require_path_exists = __commonJS({
4028
4028
  "node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
4029
4029
  "use strict";
4030
4030
  var u = require_universalify().fromPromise;
4031
- var fs20 = require_fs();
4031
+ var fs21 = require_fs();
4032
4032
  function pathExists(path4) {
4033
- return fs20.access(path4).then(() => true).catch(() => false);
4033
+ return fs21.access(path4).then(() => true).catch(() => false);
4034
4034
  }
4035
4035
  module2.exports = {
4036
4036
  pathExists: u(pathExists),
4037
- pathExistsSync: fs20.existsSync
4037
+ pathExistsSync: fs21.existsSync
4038
4038
  };
4039
4039
  }
4040
4040
  });
@@ -4043,16 +4043,16 @@ var require_path_exists = __commonJS({
4043
4043
  var require_utimes = __commonJS({
4044
4044
  "node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
4045
4045
  "use strict";
4046
- var fs20 = require_fs();
4046
+ var fs21 = require_fs();
4047
4047
  var u = require_universalify().fromPromise;
4048
4048
  async function utimesMillis(path4, atime, mtime) {
4049
- const fd = await fs20.open(path4, "r+");
4049
+ const fd = await fs21.open(path4, "r+");
4050
4050
  let closeErr = null;
4051
4051
  try {
4052
- await fs20.futimes(fd, atime, mtime);
4052
+ await fs21.futimes(fd, atime, mtime);
4053
4053
  } finally {
4054
4054
  try {
4055
- await fs20.close(fd);
4055
+ await fs21.close(fd);
4056
4056
  } catch (e) {
4057
4057
  closeErr = e;
4058
4058
  }
@@ -4062,9 +4062,9 @@ var require_utimes = __commonJS({
4062
4062
  }
4063
4063
  }
4064
4064
  function utimesMillisSync(path4, atime, mtime) {
4065
- const fd = fs20.openSync(path4, "r+");
4066
- fs20.futimesSync(fd, atime, mtime);
4067
- return fs20.closeSync(fd);
4065
+ const fd = fs21.openSync(path4, "r+");
4066
+ fs21.futimesSync(fd, atime, mtime);
4067
+ return fs21.closeSync(fd);
4068
4068
  }
4069
4069
  module2.exports = {
4070
4070
  utimesMillis: u(utimesMillis),
@@ -4077,11 +4077,11 @@ var require_utimes = __commonJS({
4077
4077
  var require_stat = __commonJS({
4078
4078
  "node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
4079
4079
  "use strict";
4080
- var fs20 = require_fs();
4080
+ var fs21 = require_fs();
4081
4081
  var path4 = require("path");
4082
4082
  var u = require_universalify().fromPromise;
4083
4083
  function getStats(src, dest, opts) {
4084
- const statFunc = opts.dereference ? (file) => fs20.stat(file, { bigint: true }) : (file) => fs20.lstat(file, { bigint: true });
4084
+ const statFunc = opts.dereference ? (file) => fs21.stat(file, { bigint: true }) : (file) => fs21.lstat(file, { bigint: true });
4085
4085
  return Promise.all([
4086
4086
  statFunc(src),
4087
4087
  statFunc(dest).catch((err) => {
@@ -4092,7 +4092,7 @@ var require_stat = __commonJS({
4092
4092
  }
4093
4093
  function getStatsSync(src, dest, opts) {
4094
4094
  let destStat;
4095
- const statFunc = opts.dereference ? (file) => fs20.statSync(file, { bigint: true }) : (file) => fs20.lstatSync(file, { bigint: true });
4095
+ const statFunc = opts.dereference ? (file) => fs21.statSync(file, { bigint: true }) : (file) => fs21.lstatSync(file, { bigint: true });
4096
4096
  const srcStat = statFunc(src);
4097
4097
  try {
4098
4098
  destStat = statFunc(dest);
@@ -4154,7 +4154,7 @@ var require_stat = __commonJS({
4154
4154
  if (destParent === srcParent || destParent === path4.parse(destParent).root) return;
4155
4155
  let destStat;
4156
4156
  try {
4157
- destStat = await fs20.stat(destParent, { bigint: true });
4157
+ destStat = await fs21.stat(destParent, { bigint: true });
4158
4158
  } catch (err) {
4159
4159
  if (err.code === "ENOENT") return;
4160
4160
  throw err;
@@ -4170,7 +4170,7 @@ var require_stat = __commonJS({
4170
4170
  if (destParent === srcParent || destParent === path4.parse(destParent).root) return;
4171
4171
  let destStat;
4172
4172
  try {
4173
- destStat = fs20.statSync(destParent, { bigint: true });
4173
+ destStat = fs21.statSync(destParent, { bigint: true });
4174
4174
  } catch (err) {
4175
4175
  if (err.code === "ENOENT") return;
4176
4176
  throw err;
@@ -4237,7 +4237,7 @@ var require_async = __commonJS({
4237
4237
  var require_copy = __commonJS({
4238
4238
  "node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
4239
4239
  "use strict";
4240
- var fs20 = require_fs();
4240
+ var fs21 = require_fs();
4241
4241
  var path4 = require("path");
4242
4242
  var { mkdirs } = require_mkdirs();
4243
4243
  var { pathExists } = require_path_exists();
@@ -4273,7 +4273,7 @@ var require_copy = __commonJS({
4273
4273
  return opts.filter(src, dest);
4274
4274
  }
4275
4275
  async function getStatsAndPerformCopy(destStat, src, dest, opts) {
4276
- const statFn = opts.dereference ? fs20.stat : fs20.lstat;
4276
+ const statFn = opts.dereference ? fs21.stat : fs21.lstat;
4277
4277
  const srcStat = await statFn(src);
4278
4278
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
4279
4279
  if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -4285,7 +4285,7 @@ var require_copy = __commonJS({
4285
4285
  async function onFile(srcStat, destStat, src, dest, opts) {
4286
4286
  if (!destStat) return copyFile(srcStat, src, dest, opts);
4287
4287
  if (opts.overwrite) {
4288
- await fs20.unlink(dest);
4288
+ await fs21.unlink(dest);
4289
4289
  return copyFile(srcStat, src, dest, opts);
4290
4290
  }
4291
4291
  if (opts.errorOnExist) {
@@ -4293,27 +4293,27 @@ var require_copy = __commonJS({
4293
4293
  }
4294
4294
  }
4295
4295
  async function copyFile(srcStat, src, dest, opts) {
4296
- await fs20.copyFile(src, dest);
4296
+ await fs21.copyFile(src, dest);
4297
4297
  if (opts.preserveTimestamps) {
4298
4298
  if (fileIsNotWritable(srcStat.mode)) {
4299
4299
  await makeFileWritable(dest, srcStat.mode);
4300
4300
  }
4301
- const updatedSrcStat = await fs20.stat(src);
4301
+ const updatedSrcStat = await fs21.stat(src);
4302
4302
  await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
4303
4303
  }
4304
- return fs20.chmod(dest, srcStat.mode);
4304
+ return fs21.chmod(dest, srcStat.mode);
4305
4305
  }
4306
4306
  function fileIsNotWritable(srcMode) {
4307
4307
  return (srcMode & 128) === 0;
4308
4308
  }
4309
4309
  function makeFileWritable(dest, srcMode) {
4310
- return fs20.chmod(dest, srcMode | 128);
4310
+ return fs21.chmod(dest, srcMode | 128);
4311
4311
  }
4312
4312
  async function onDir(srcStat, destStat, src, dest, opts) {
4313
4313
  if (!destStat) {
4314
- await fs20.mkdir(dest);
4314
+ await fs21.mkdir(dest);
4315
4315
  }
4316
- await asyncIteratorConcurrentProcess(await fs20.opendir(src), async (item) => {
4316
+ await asyncIteratorConcurrentProcess(await fs21.opendir(src), async (item) => {
4317
4317
  const srcItem = path4.join(src, item.name);
4318
4318
  const destItem = path4.join(dest, item.name);
4319
4319
  const include = await runFilter(srcItem, destItem, opts);
@@ -4323,22 +4323,22 @@ var require_copy = __commonJS({
4323
4323
  }
4324
4324
  });
4325
4325
  if (!destStat) {
4326
- await fs20.chmod(dest, srcStat.mode);
4326
+ await fs21.chmod(dest, srcStat.mode);
4327
4327
  }
4328
4328
  }
4329
4329
  async function onLink(destStat, src, dest, opts) {
4330
- let resolvedSrc = await fs20.readlink(src);
4330
+ let resolvedSrc = await fs21.readlink(src);
4331
4331
  if (opts.dereference) {
4332
4332
  resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
4333
4333
  }
4334
4334
  if (!destStat) {
4335
- return fs20.symlink(resolvedSrc, dest);
4335
+ return fs21.symlink(resolvedSrc, dest);
4336
4336
  }
4337
4337
  let resolvedDest = null;
4338
4338
  try {
4339
- resolvedDest = await fs20.readlink(dest);
4339
+ resolvedDest = await fs21.readlink(dest);
4340
4340
  } catch (e) {
4341
- if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs20.symlink(resolvedSrc, dest);
4341
+ if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs21.symlink(resolvedSrc, dest);
4342
4342
  throw e;
4343
4343
  }
4344
4344
  if (opts.dereference) {
@@ -4352,8 +4352,8 @@ var require_copy = __commonJS({
4352
4352
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
4353
4353
  }
4354
4354
  }
4355
- await fs20.unlink(dest);
4356
- return fs20.symlink(resolvedSrc, dest);
4355
+ await fs21.unlink(dest);
4356
+ return fs21.symlink(resolvedSrc, dest);
4357
4357
  }
4358
4358
  module2.exports = copy;
4359
4359
  }
@@ -4363,7 +4363,7 @@ var require_copy = __commonJS({
4363
4363
  var require_copy_sync = __commonJS({
4364
4364
  "node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
4365
4365
  "use strict";
4366
- var fs20 = require_graceful_fs();
4366
+ var fs21 = require_graceful_fs();
4367
4367
  var path4 = require("path");
4368
4368
  var mkdirsSync = require_mkdirs().mkdirsSync;
4369
4369
  var utimesMillisSync = require_utimes().utimesMillisSync;
@@ -4386,11 +4386,11 @@ var require_copy_sync = __commonJS({
4386
4386
  stat.checkParentPathsSync(src, srcStat, dest, "copy");
4387
4387
  if (opts.filter && !opts.filter(src, dest)) return;
4388
4388
  const destParent = path4.dirname(dest);
4389
- if (!fs20.existsSync(destParent)) mkdirsSync(destParent);
4389
+ if (!fs21.existsSync(destParent)) mkdirsSync(destParent);
4390
4390
  return getStats(destStat, src, dest, opts);
4391
4391
  }
4392
4392
  function getStats(destStat, src, dest, opts) {
4393
- const statSync = opts.dereference ? fs20.statSync : fs20.lstatSync;
4393
+ const statSync = opts.dereference ? fs21.statSync : fs21.lstatSync;
4394
4394
  const srcStat = statSync(src);
4395
4395
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
4396
4396
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -4405,14 +4405,14 @@ var require_copy_sync = __commonJS({
4405
4405
  }
4406
4406
  function mayCopyFile(srcStat, src, dest, opts) {
4407
4407
  if (opts.overwrite) {
4408
- fs20.unlinkSync(dest);
4408
+ fs21.unlinkSync(dest);
4409
4409
  return copyFile(srcStat, src, dest, opts);
4410
4410
  } else if (opts.errorOnExist) {
4411
4411
  throw new Error(`'${dest}' already exists`);
4412
4412
  }
4413
4413
  }
4414
4414
  function copyFile(srcStat, src, dest, opts) {
4415
- fs20.copyFileSync(src, dest);
4415
+ fs21.copyFileSync(src, dest);
4416
4416
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
4417
4417
  return setDestMode(dest, srcStat.mode);
4418
4418
  }
@@ -4427,10 +4427,10 @@ var require_copy_sync = __commonJS({
4427
4427
  return setDestMode(dest, srcMode | 128);
4428
4428
  }
4429
4429
  function setDestMode(dest, srcMode) {
4430
- return fs20.chmodSync(dest, srcMode);
4430
+ return fs21.chmodSync(dest, srcMode);
4431
4431
  }
4432
4432
  function setDestTimestamps(src, dest) {
4433
- const updatedSrcStat = fs20.statSync(src);
4433
+ const updatedSrcStat = fs21.statSync(src);
4434
4434
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
4435
4435
  }
4436
4436
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -4438,12 +4438,12 @@ var require_copy_sync = __commonJS({
4438
4438
  return copyDir(src, dest, opts);
4439
4439
  }
4440
4440
  function mkDirAndCopy(srcMode, src, dest, opts) {
4441
- fs20.mkdirSync(dest);
4441
+ fs21.mkdirSync(dest);
4442
4442
  copyDir(src, dest, opts);
4443
4443
  return setDestMode(dest, srcMode);
4444
4444
  }
4445
4445
  function copyDir(src, dest, opts) {
4446
- const dir = fs20.opendirSync(src);
4446
+ const dir = fs21.opendirSync(src);
4447
4447
  try {
4448
4448
  let dirent;
4449
4449
  while ((dirent = dir.readSync()) !== null) {
@@ -4461,18 +4461,18 @@ var require_copy_sync = __commonJS({
4461
4461
  return getStats(destStat, srcItem, destItem, opts);
4462
4462
  }
4463
4463
  function onLink(destStat, src, dest, opts) {
4464
- let resolvedSrc = fs20.readlinkSync(src);
4464
+ let resolvedSrc = fs21.readlinkSync(src);
4465
4465
  if (opts.dereference) {
4466
4466
  resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
4467
4467
  }
4468
4468
  if (!destStat) {
4469
- return fs20.symlinkSync(resolvedSrc, dest);
4469
+ return fs21.symlinkSync(resolvedSrc, dest);
4470
4470
  } else {
4471
4471
  let resolvedDest;
4472
4472
  try {
4473
- resolvedDest = fs20.readlinkSync(dest);
4473
+ resolvedDest = fs21.readlinkSync(dest);
4474
4474
  } catch (err) {
4475
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs20.symlinkSync(resolvedSrc, dest);
4475
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs21.symlinkSync(resolvedSrc, dest);
4476
4476
  throw err;
4477
4477
  }
4478
4478
  if (opts.dereference) {
@@ -4490,8 +4490,8 @@ var require_copy_sync = __commonJS({
4490
4490
  }
4491
4491
  }
4492
4492
  function copyLink(resolvedSrc, dest) {
4493
- fs20.unlinkSync(dest);
4494
- return fs20.symlinkSync(resolvedSrc, dest);
4493
+ fs21.unlinkSync(dest);
4494
+ return fs21.symlinkSync(resolvedSrc, dest);
4495
4495
  }
4496
4496
  module2.exports = copySync;
4497
4497
  }
@@ -4513,13 +4513,13 @@ var require_copy2 = __commonJS({
4513
4513
  var require_remove = __commonJS({
4514
4514
  "node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
4515
4515
  "use strict";
4516
- var fs20 = require_graceful_fs();
4516
+ var fs21 = require_graceful_fs();
4517
4517
  var u = require_universalify().fromCallback;
4518
4518
  function remove(path4, callback) {
4519
- fs20.rm(path4, { recursive: true, force: true }, callback);
4519
+ fs21.rm(path4, { recursive: true, force: true }, callback);
4520
4520
  }
4521
4521
  function removeSync(path4) {
4522
- fs20.rmSync(path4, { recursive: true, force: true });
4522
+ fs21.rmSync(path4, { recursive: true, force: true });
4523
4523
  }
4524
4524
  module2.exports = {
4525
4525
  remove: u(remove),
@@ -4533,14 +4533,14 @@ var require_empty = __commonJS({
4533
4533
  "node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
4534
4534
  "use strict";
4535
4535
  var u = require_universalify().fromPromise;
4536
- var fs20 = require_fs();
4536
+ var fs21 = require_fs();
4537
4537
  var path4 = require("path");
4538
4538
  var mkdir = require_mkdirs();
4539
4539
  var remove = require_remove();
4540
4540
  var emptyDir = u(async function emptyDir2(dir) {
4541
4541
  let items;
4542
4542
  try {
4543
- items = await fs20.readdir(dir);
4543
+ items = await fs21.readdir(dir);
4544
4544
  } catch {
4545
4545
  return mkdir.mkdirs(dir);
4546
4546
  }
@@ -4549,7 +4549,7 @@ var require_empty = __commonJS({
4549
4549
  function emptyDirSync(dir) {
4550
4550
  let items;
4551
4551
  try {
4552
- items = fs20.readdirSync(dir);
4552
+ items = fs21.readdirSync(dir);
4553
4553
  } catch {
4554
4554
  return mkdir.mkdirsSync(dir);
4555
4555
  }
@@ -4573,51 +4573,51 @@ var require_file = __commonJS({
4573
4573
  "use strict";
4574
4574
  var u = require_universalify().fromPromise;
4575
4575
  var path4 = require("path");
4576
- var fs20 = require_fs();
4576
+ var fs21 = require_fs();
4577
4577
  var mkdir = require_mkdirs();
4578
4578
  async function createFile(file) {
4579
4579
  let stats;
4580
4580
  try {
4581
- stats = await fs20.stat(file);
4581
+ stats = await fs21.stat(file);
4582
4582
  } catch {
4583
4583
  }
4584
4584
  if (stats && stats.isFile()) return;
4585
4585
  const dir = path4.dirname(file);
4586
4586
  let dirStats = null;
4587
4587
  try {
4588
- dirStats = await fs20.stat(dir);
4588
+ dirStats = await fs21.stat(dir);
4589
4589
  } catch (err) {
4590
4590
  if (err.code === "ENOENT") {
4591
4591
  await mkdir.mkdirs(dir);
4592
- await fs20.writeFile(file, "");
4592
+ await fs21.writeFile(file, "");
4593
4593
  return;
4594
4594
  } else {
4595
4595
  throw err;
4596
4596
  }
4597
4597
  }
4598
4598
  if (dirStats.isDirectory()) {
4599
- await fs20.writeFile(file, "");
4599
+ await fs21.writeFile(file, "");
4600
4600
  } else {
4601
- await fs20.readdir(dir);
4601
+ await fs21.readdir(dir);
4602
4602
  }
4603
4603
  }
4604
4604
  function createFileSync(file) {
4605
4605
  let stats;
4606
4606
  try {
4607
- stats = fs20.statSync(file);
4607
+ stats = fs21.statSync(file);
4608
4608
  } catch {
4609
4609
  }
4610
4610
  if (stats && stats.isFile()) return;
4611
4611
  const dir = path4.dirname(file);
4612
4612
  try {
4613
- if (!fs20.statSync(dir).isDirectory()) {
4614
- fs20.readdirSync(dir);
4613
+ if (!fs21.statSync(dir).isDirectory()) {
4614
+ fs21.readdirSync(dir);
4615
4615
  }
4616
4616
  } catch (err) {
4617
4617
  if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
4618
4618
  else throw err;
4619
4619
  }
4620
- fs20.writeFileSync(file, "");
4620
+ fs21.writeFileSync(file, "");
4621
4621
  }
4622
4622
  module2.exports = {
4623
4623
  createFile: u(createFile),
@@ -4632,19 +4632,19 @@ var require_link = __commonJS({
4632
4632
  "use strict";
4633
4633
  var u = require_universalify().fromPromise;
4634
4634
  var path4 = require("path");
4635
- var fs20 = require_fs();
4635
+ var fs21 = require_fs();
4636
4636
  var mkdir = require_mkdirs();
4637
4637
  var { pathExists } = require_path_exists();
4638
4638
  var { areIdentical } = require_stat();
4639
4639
  async function createLink(srcpath, dstpath) {
4640
4640
  let dstStat;
4641
4641
  try {
4642
- dstStat = await fs20.lstat(dstpath);
4642
+ dstStat = await fs21.lstat(dstpath);
4643
4643
  } catch {
4644
4644
  }
4645
4645
  let srcStat;
4646
4646
  try {
4647
- srcStat = await fs20.lstat(srcpath);
4647
+ srcStat = await fs21.lstat(srcpath);
4648
4648
  } catch (err) {
4649
4649
  err.message = err.message.replace("lstat", "ensureLink");
4650
4650
  throw err;
@@ -4655,26 +4655,26 @@ var require_link = __commonJS({
4655
4655
  if (!dirExists) {
4656
4656
  await mkdir.mkdirs(dir);
4657
4657
  }
4658
- await fs20.link(srcpath, dstpath);
4658
+ await fs21.link(srcpath, dstpath);
4659
4659
  }
4660
4660
  function createLinkSync(srcpath, dstpath) {
4661
4661
  let dstStat;
4662
4662
  try {
4663
- dstStat = fs20.lstatSync(dstpath);
4663
+ dstStat = fs21.lstatSync(dstpath);
4664
4664
  } catch {
4665
4665
  }
4666
4666
  try {
4667
- const srcStat = fs20.lstatSync(srcpath);
4667
+ const srcStat = fs21.lstatSync(srcpath);
4668
4668
  if (dstStat && areIdentical(srcStat, dstStat)) return;
4669
4669
  } catch (err) {
4670
4670
  err.message = err.message.replace("lstat", "ensureLink");
4671
4671
  throw err;
4672
4672
  }
4673
4673
  const dir = path4.dirname(dstpath);
4674
- const dirExists = fs20.existsSync(dir);
4675
- if (dirExists) return fs20.linkSync(srcpath, dstpath);
4674
+ const dirExists = fs21.existsSync(dir);
4675
+ if (dirExists) return fs21.linkSync(srcpath, dstpath);
4676
4676
  mkdir.mkdirsSync(dir);
4677
- return fs20.linkSync(srcpath, dstpath);
4677
+ return fs21.linkSync(srcpath, dstpath);
4678
4678
  }
4679
4679
  module2.exports = {
4680
4680
  createLink: u(createLink),
@@ -4688,13 +4688,13 @@ var require_symlink_paths = __commonJS({
4688
4688
  "node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
4689
4689
  "use strict";
4690
4690
  var path4 = require("path");
4691
- var fs20 = require_fs();
4691
+ var fs21 = require_fs();
4692
4692
  var { pathExists } = require_path_exists();
4693
4693
  var u = require_universalify().fromPromise;
4694
4694
  async function symlinkPaths(srcpath, dstpath) {
4695
4695
  if (path4.isAbsolute(srcpath)) {
4696
4696
  try {
4697
- await fs20.lstat(srcpath);
4697
+ await fs21.lstat(srcpath);
4698
4698
  } catch (err) {
4699
4699
  err.message = err.message.replace("lstat", "ensureSymlink");
4700
4700
  throw err;
@@ -4714,7 +4714,7 @@ var require_symlink_paths = __commonJS({
4714
4714
  };
4715
4715
  }
4716
4716
  try {
4717
- await fs20.lstat(srcpath);
4717
+ await fs21.lstat(srcpath);
4718
4718
  } catch (err) {
4719
4719
  err.message = err.message.replace("lstat", "ensureSymlink");
4720
4720
  throw err;
@@ -4726,7 +4726,7 @@ var require_symlink_paths = __commonJS({
4726
4726
  }
4727
4727
  function symlinkPathsSync(srcpath, dstpath) {
4728
4728
  if (path4.isAbsolute(srcpath)) {
4729
- const exists2 = fs20.existsSync(srcpath);
4729
+ const exists2 = fs21.existsSync(srcpath);
4730
4730
  if (!exists2) throw new Error("absolute srcpath does not exist");
4731
4731
  return {
4732
4732
  toCwd: srcpath,
@@ -4735,14 +4735,14 @@ var require_symlink_paths = __commonJS({
4735
4735
  }
4736
4736
  const dstdir = path4.dirname(dstpath);
4737
4737
  const relativeToDst = path4.join(dstdir, srcpath);
4738
- const exists = fs20.existsSync(relativeToDst);
4738
+ const exists = fs21.existsSync(relativeToDst);
4739
4739
  if (exists) {
4740
4740
  return {
4741
4741
  toCwd: relativeToDst,
4742
4742
  toDst: srcpath
4743
4743
  };
4744
4744
  }
4745
- const srcExists = fs20.existsSync(srcpath);
4745
+ const srcExists = fs21.existsSync(srcpath);
4746
4746
  if (!srcExists) throw new Error("relative srcpath does not exist");
4747
4747
  return {
4748
4748
  toCwd: srcpath,
@@ -4760,13 +4760,13 @@ var require_symlink_paths = __commonJS({
4760
4760
  var require_symlink_type = __commonJS({
4761
4761
  "node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
4762
4762
  "use strict";
4763
- var fs20 = require_fs();
4763
+ var fs21 = require_fs();
4764
4764
  var u = require_universalify().fromPromise;
4765
4765
  async function symlinkType(srcpath, type) {
4766
4766
  if (type) return type;
4767
4767
  let stats;
4768
4768
  try {
4769
- stats = await fs20.lstat(srcpath);
4769
+ stats = await fs21.lstat(srcpath);
4770
4770
  } catch {
4771
4771
  return "file";
4772
4772
  }
@@ -4776,7 +4776,7 @@ var require_symlink_type = __commonJS({
4776
4776
  if (type) return type;
4777
4777
  let stats;
4778
4778
  try {
4779
- stats = fs20.lstatSync(srcpath);
4779
+ stats = fs21.lstatSync(srcpath);
4780
4780
  } catch {
4781
4781
  return "file";
4782
4782
  }
@@ -4795,7 +4795,7 @@ var require_symlink = __commonJS({
4795
4795
  "use strict";
4796
4796
  var u = require_universalify().fromPromise;
4797
4797
  var path4 = require("path");
4798
- var fs20 = require_fs();
4798
+ var fs21 = require_fs();
4799
4799
  var { mkdirs, mkdirsSync } = require_mkdirs();
4800
4800
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
4801
4801
  var { symlinkType, symlinkTypeSync } = require_symlink_type();
@@ -4804,13 +4804,13 @@ var require_symlink = __commonJS({
4804
4804
  async function createSymlink(srcpath, dstpath, type) {
4805
4805
  let stats;
4806
4806
  try {
4807
- stats = await fs20.lstat(dstpath);
4807
+ stats = await fs21.lstat(dstpath);
4808
4808
  } catch {
4809
4809
  }
4810
4810
  if (stats && stats.isSymbolicLink()) {
4811
4811
  const [srcStat, dstStat] = await Promise.all([
4812
- fs20.stat(srcpath),
4813
- fs20.stat(dstpath)
4812
+ fs21.stat(srcpath),
4813
+ fs21.stat(dstpath)
4814
4814
  ]);
4815
4815
  if (areIdentical(srcStat, dstStat)) return;
4816
4816
  }
@@ -4821,27 +4821,27 @@ var require_symlink = __commonJS({
4821
4821
  if (!await pathExists(dir)) {
4822
4822
  await mkdirs(dir);
4823
4823
  }
4824
- return fs20.symlink(srcpath, dstpath, toType);
4824
+ return fs21.symlink(srcpath, dstpath, toType);
4825
4825
  }
4826
4826
  function createSymlinkSync(srcpath, dstpath, type) {
4827
4827
  let stats;
4828
4828
  try {
4829
- stats = fs20.lstatSync(dstpath);
4829
+ stats = fs21.lstatSync(dstpath);
4830
4830
  } catch {
4831
4831
  }
4832
4832
  if (stats && stats.isSymbolicLink()) {
4833
- const srcStat = fs20.statSync(srcpath);
4834
- const dstStat = fs20.statSync(dstpath);
4833
+ const srcStat = fs21.statSync(srcpath);
4834
+ const dstStat = fs21.statSync(dstpath);
4835
4835
  if (areIdentical(srcStat, dstStat)) return;
4836
4836
  }
4837
4837
  const relative2 = symlinkPathsSync(srcpath, dstpath);
4838
4838
  srcpath = relative2.toDst;
4839
4839
  type = symlinkTypeSync(relative2.toCwd, type);
4840
4840
  const dir = path4.dirname(dstpath);
4841
- const exists = fs20.existsSync(dir);
4842
- if (exists) return fs20.symlinkSync(srcpath, dstpath, type);
4841
+ const exists = fs21.existsSync(dir);
4842
+ if (exists) return fs21.symlinkSync(srcpath, dstpath, type);
4843
4843
  mkdirsSync(dir);
4844
- return fs20.symlinkSync(srcpath, dstpath, type);
4844
+ return fs21.symlinkSync(srcpath, dstpath, type);
4845
4845
  }
4846
4846
  module2.exports = {
4847
4847
  createSymlink: u(createSymlink),
@@ -4910,9 +4910,9 @@ var require_jsonfile = __commonJS({
4910
4910
  if (typeof options === "string") {
4911
4911
  options = { encoding: options };
4912
4912
  }
4913
- const fs20 = options.fs || _fs;
4913
+ const fs21 = options.fs || _fs;
4914
4914
  const shouldThrow = "throws" in options ? options.throws : true;
4915
- let data = await universalify.fromCallback(fs20.readFile)(file, options);
4915
+ let data = await universalify.fromCallback(fs21.readFile)(file, options);
4916
4916
  data = stripBom(data);
4917
4917
  let obj;
4918
4918
  try {
@@ -4932,10 +4932,10 @@ var require_jsonfile = __commonJS({
4932
4932
  if (typeof options === "string") {
4933
4933
  options = { encoding: options };
4934
4934
  }
4935
- const fs20 = options.fs || _fs;
4935
+ const fs21 = options.fs || _fs;
4936
4936
  const shouldThrow = "throws" in options ? options.throws : true;
4937
4937
  try {
4938
- let content = fs20.readFileSync(file, options);
4938
+ let content = fs21.readFileSync(file, options);
4939
4939
  content = stripBom(content);
4940
4940
  return JSON.parse(content, options.reviver);
4941
4941
  } catch (err) {
@@ -4948,15 +4948,15 @@ var require_jsonfile = __commonJS({
4948
4948
  }
4949
4949
  }
4950
4950
  async function _writeFile(file, obj, options = {}) {
4951
- const fs20 = options.fs || _fs;
4951
+ const fs21 = options.fs || _fs;
4952
4952
  const str = stringify2(obj, options);
4953
- await universalify.fromCallback(fs20.writeFile)(file, str, options);
4953
+ await universalify.fromCallback(fs21.writeFile)(file, str, options);
4954
4954
  }
4955
4955
  var writeFile = universalify.fromPromise(_writeFile);
4956
4956
  function writeFileSync3(file, obj, options = {}) {
4957
- const fs20 = options.fs || _fs;
4957
+ const fs21 = options.fs || _fs;
4958
4958
  const str = stringify2(obj, options);
4959
- return fs20.writeFileSync(file, str, options);
4959
+ return fs21.writeFileSync(file, str, options);
4960
4960
  }
4961
4961
  module2.exports = {
4962
4962
  readFile,
@@ -4987,7 +4987,7 @@ var require_output_file = __commonJS({
4987
4987
  "node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
4988
4988
  "use strict";
4989
4989
  var u = require_universalify().fromPromise;
4990
- var fs20 = require_fs();
4990
+ var fs21 = require_fs();
4991
4991
  var path4 = require("path");
4992
4992
  var mkdir = require_mkdirs();
4993
4993
  var pathExists = require_path_exists().pathExists;
@@ -4996,14 +4996,14 @@ var require_output_file = __commonJS({
4996
4996
  if (!await pathExists(dir)) {
4997
4997
  await mkdir.mkdirs(dir);
4998
4998
  }
4999
- return fs20.writeFile(file, data, encoding);
4999
+ return fs21.writeFile(file, data, encoding);
5000
5000
  }
5001
5001
  function outputFileSync(file, ...args) {
5002
5002
  const dir = path4.dirname(file);
5003
- if (!fs20.existsSync(dir)) {
5003
+ if (!fs21.existsSync(dir)) {
5004
5004
  mkdir.mkdirsSync(dir);
5005
5005
  }
5006
- fs20.writeFileSync(file, ...args);
5006
+ fs21.writeFileSync(file, ...args);
5007
5007
  }
5008
5008
  module2.exports = {
5009
5009
  outputFile: u(outputFile),
@@ -5062,7 +5062,7 @@ var require_json = __commonJS({
5062
5062
  var require_move = __commonJS({
5063
5063
  "node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
5064
5064
  "use strict";
5065
- var fs20 = require_fs();
5065
+ var fs21 = require_fs();
5066
5066
  var path4 = require("path");
5067
5067
  var { copy } = require_copy2();
5068
5068
  var { remove } = require_remove();
@@ -5089,7 +5089,7 @@ var require_move = __commonJS({
5089
5089
  }
5090
5090
  }
5091
5091
  try {
5092
- await fs20.rename(src, dest);
5092
+ await fs21.rename(src, dest);
5093
5093
  } catch (err) {
5094
5094
  if (err.code !== "EXDEV") {
5095
5095
  throw err;
@@ -5114,7 +5114,7 @@ var require_move = __commonJS({
5114
5114
  var require_move_sync = __commonJS({
5115
5115
  "node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
5116
5116
  "use strict";
5117
- var fs20 = require_graceful_fs();
5117
+ var fs21 = require_graceful_fs();
5118
5118
  var path4 = require("path");
5119
5119
  var copySync = require_copy2().copySync;
5120
5120
  var removeSync = require_remove().removeSync;
@@ -5139,12 +5139,12 @@ var require_move_sync = __commonJS({
5139
5139
  removeSync(dest);
5140
5140
  return rename(src, dest, overwrite);
5141
5141
  }
5142
- if (fs20.existsSync(dest)) throw new Error("dest already exists.");
5142
+ if (fs21.existsSync(dest)) throw new Error("dest already exists.");
5143
5143
  return rename(src, dest, overwrite);
5144
5144
  }
5145
5145
  function rename(src, dest, overwrite) {
5146
5146
  try {
5147
- fs20.renameSync(src, dest);
5147
+ fs21.renameSync(src, dest);
5148
5148
  } catch (err) {
5149
5149
  if (err.code !== "EXDEV") throw err;
5150
5150
  return moveAcrossDevice(src, dest, overwrite);
@@ -7062,14 +7062,14 @@ var require_run_async = __commonJS({
7062
7062
  return function() {
7063
7063
  var args = arguments;
7064
7064
  var originalThis = this;
7065
- var promise = new Promise(function(resolve, reject) {
7065
+ var promise = new Promise(function(resolve2, reject) {
7066
7066
  var resolved = false;
7067
7067
  const wrappedResolve = function(value) {
7068
7068
  if (resolved) {
7069
7069
  console.warn("Run-async promise already resolved.");
7070
7070
  }
7071
7071
  resolved = true;
7072
- resolve(value);
7072
+ resolve2(value);
7073
7073
  };
7074
7074
  var rejected = false;
7075
7075
  const wrappedReject = function(value) {
@@ -7860,7 +7860,7 @@ var require_Observable = __commonJS({
7860
7860
  Observable2.prototype.forEach = function(next, promiseCtor) {
7861
7861
  var _this = this;
7862
7862
  promiseCtor = getPromiseCtor(promiseCtor);
7863
- return new promiseCtor(function(resolve, reject) {
7863
+ return new promiseCtor(function(resolve2, reject) {
7864
7864
  var subscriber = new Subscriber_1.SafeSubscriber({
7865
7865
  next: function(value) {
7866
7866
  try {
@@ -7871,7 +7871,7 @@ var require_Observable = __commonJS({
7871
7871
  }
7872
7872
  },
7873
7873
  error: reject,
7874
- complete: resolve
7874
+ complete: resolve2
7875
7875
  });
7876
7876
  _this.subscribe(subscriber);
7877
7877
  });
@@ -7893,14 +7893,14 @@ var require_Observable = __commonJS({
7893
7893
  Observable2.prototype.toPromise = function(promiseCtor) {
7894
7894
  var _this = this;
7895
7895
  promiseCtor = getPromiseCtor(promiseCtor);
7896
- return new promiseCtor(function(resolve, reject) {
7896
+ return new promiseCtor(function(resolve2, reject) {
7897
7897
  var value;
7898
7898
  _this.subscribe(function(x) {
7899
7899
  return value = x;
7900
7900
  }, function(err) {
7901
7901
  return reject(err);
7902
7902
  }, function() {
7903
- return resolve(value);
7903
+ return resolve2(value);
7904
7904
  });
7905
7905
  });
7906
7906
  };
@@ -9996,11 +9996,11 @@ var require_innerFrom = __commonJS({
9996
9996
  "use strict";
9997
9997
  var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
9998
9998
  function adopt(value) {
9999
- return value instanceof P ? value : new P(function(resolve) {
10000
- resolve(value);
9999
+ return value instanceof P ? value : new P(function(resolve2) {
10000
+ resolve2(value);
10001
10001
  });
10002
10002
  }
10003
- return new (P || (P = Promise))(function(resolve, reject) {
10003
+ return new (P || (P = Promise))(function(resolve2, reject) {
10004
10004
  function fulfilled(value) {
10005
10005
  try {
10006
10006
  step(generator.next(value));
@@ -10016,7 +10016,7 @@ var require_innerFrom = __commonJS({
10016
10016
  }
10017
10017
  }
10018
10018
  function step(result) {
10019
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
10019
+ result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
10020
10020
  }
10021
10021
  step((generator = generator.apply(thisArg, _arguments || [])).next());
10022
10022
  });
@@ -10098,14 +10098,14 @@ var require_innerFrom = __commonJS({
10098
10098
  }, i);
10099
10099
  function verb(n) {
10100
10100
  i[n] = o[n] && function(v) {
10101
- return new Promise(function(resolve, reject) {
10102
- v = o[n](v), settle(resolve, reject, v.done, v.value);
10101
+ return new Promise(function(resolve2, reject) {
10102
+ v = o[n](v), settle(resolve2, reject, v.done, v.value);
10103
10103
  });
10104
10104
  };
10105
10105
  }
10106
- function settle(resolve, reject, d, v) {
10106
+ function settle(resolve2, reject, d, v) {
10107
10107
  Promise.resolve(v).then(function(v2) {
10108
- resolve({ value: v2, done: d });
10108
+ resolve2({ value: v2, done: d });
10109
10109
  }, reject);
10110
10110
  }
10111
10111
  };
@@ -10724,7 +10724,7 @@ var require_lastValueFrom = __commonJS({
10724
10724
  var EmptyError_1 = require_EmptyError();
10725
10725
  function lastValueFrom(source, config) {
10726
10726
  var hasConfig = typeof config === "object";
10727
- return new Promise(function(resolve, reject) {
10727
+ return new Promise(function(resolve2, reject) {
10728
10728
  var _hasValue = false;
10729
10729
  var _value;
10730
10730
  source.subscribe({
@@ -10735,9 +10735,9 @@ var require_lastValueFrom = __commonJS({
10735
10735
  error: reject,
10736
10736
  complete: function() {
10737
10737
  if (_hasValue) {
10738
- resolve(_value);
10738
+ resolve2(_value);
10739
10739
  } else if (hasConfig) {
10740
- resolve(config.defaultValue);
10740
+ resolve2(config.defaultValue);
10741
10741
  } else {
10742
10742
  reject(new EmptyError_1.EmptyError());
10743
10743
  }
@@ -10759,16 +10759,16 @@ var require_firstValueFrom = __commonJS({
10759
10759
  var Subscriber_1 = require_Subscriber();
10760
10760
  function firstValueFrom(source, config) {
10761
10761
  var hasConfig = typeof config === "object";
10762
- return new Promise(function(resolve, reject) {
10762
+ return new Promise(function(resolve2, reject) {
10763
10763
  var subscriber = new Subscriber_1.SafeSubscriber({
10764
10764
  next: function(value) {
10765
- resolve(value);
10765
+ resolve2(value);
10766
10766
  subscriber.unsubscribe();
10767
10767
  },
10768
10768
  error: reject,
10769
10769
  complete: function() {
10770
10770
  if (hasConfig) {
10771
- resolve(config.defaultValue);
10771
+ resolve2(config.defaultValue);
10772
10772
  } else {
10773
10773
  reject(new EmptyError_1.EmptyError());
10774
10774
  }
@@ -19200,7 +19200,7 @@ var require_buffer_list = __commonJS({
19200
19200
  }
19201
19201
  }, {
19202
19202
  key: "join",
19203
- value: function join17(s) {
19203
+ value: function join18(s) {
19204
19204
  if (this.length === 0) return "";
19205
19205
  var p = this.head;
19206
19206
  var ret = "" + p.data;
@@ -20581,14 +20581,14 @@ var require_async_iterator = __commonJS({
20581
20581
  };
20582
20582
  }
20583
20583
  function readAndResolve(iter) {
20584
- var resolve = iter[kLastResolve];
20585
- if (resolve !== null) {
20584
+ var resolve2 = iter[kLastResolve];
20585
+ if (resolve2 !== null) {
20586
20586
  var data = iter[kStream].read();
20587
20587
  if (data !== null) {
20588
20588
  iter[kLastPromise] = null;
20589
20589
  iter[kLastResolve] = null;
20590
20590
  iter[kLastReject] = null;
20591
- resolve(createIterResult(data, false));
20591
+ resolve2(createIterResult(data, false));
20592
20592
  }
20593
20593
  }
20594
20594
  }
@@ -20596,13 +20596,13 @@ var require_async_iterator = __commonJS({
20596
20596
  process.nextTick(readAndResolve, iter);
20597
20597
  }
20598
20598
  function wrapForNext(lastPromise, iter) {
20599
- return function(resolve, reject) {
20599
+ return function(resolve2, reject) {
20600
20600
  lastPromise.then(function() {
20601
20601
  if (iter[kEnded]) {
20602
- resolve(createIterResult(void 0, true));
20602
+ resolve2(createIterResult(void 0, true));
20603
20603
  return;
20604
20604
  }
20605
- iter[kHandlePromise](resolve, reject);
20605
+ iter[kHandlePromise](resolve2, reject);
20606
20606
  }, reject);
20607
20607
  };
20608
20608
  }
@@ -20622,12 +20622,12 @@ var require_async_iterator = __commonJS({
20622
20622
  return Promise.resolve(createIterResult(void 0, true));
20623
20623
  }
20624
20624
  if (this[kStream].destroyed) {
20625
- return new Promise(function(resolve, reject) {
20625
+ return new Promise(function(resolve2, reject) {
20626
20626
  process.nextTick(function() {
20627
20627
  if (_this[kError]) {
20628
20628
  reject(_this[kError]);
20629
20629
  } else {
20630
- resolve(createIterResult(void 0, true));
20630
+ resolve2(createIterResult(void 0, true));
20631
20631
  }
20632
20632
  });
20633
20633
  });
@@ -20650,13 +20650,13 @@ var require_async_iterator = __commonJS({
20650
20650
  return this;
20651
20651
  }), _defineProperty(_Object$setPrototypeO, "return", function _return() {
20652
20652
  var _this2 = this;
20653
- return new Promise(function(resolve, reject) {
20653
+ return new Promise(function(resolve2, reject) {
20654
20654
  _this2[kStream].destroy(null, function(err) {
20655
20655
  if (err) {
20656
20656
  reject(err);
20657
20657
  return;
20658
20658
  }
20659
- resolve(createIterResult(void 0, true));
20659
+ resolve2(createIterResult(void 0, true));
20660
20660
  });
20661
20661
  });
20662
20662
  }), _Object$setPrototypeO), AsyncIteratorPrototype);
@@ -20678,15 +20678,15 @@ var require_async_iterator = __commonJS({
20678
20678
  value: stream2._readableState.endEmitted,
20679
20679
  writable: true
20680
20680
  }), _defineProperty(_Object$create, kHandlePromise, {
20681
- value: function value(resolve, reject) {
20681
+ value: function value(resolve2, reject) {
20682
20682
  var data = iterator[kStream].read();
20683
20683
  if (data) {
20684
20684
  iterator[kLastPromise] = null;
20685
20685
  iterator[kLastResolve] = null;
20686
20686
  iterator[kLastReject] = null;
20687
- resolve(createIterResult(data, false));
20687
+ resolve2(createIterResult(data, false));
20688
20688
  } else {
20689
- iterator[kLastResolve] = resolve;
20689
+ iterator[kLastResolve] = resolve2;
20690
20690
  iterator[kLastReject] = reject;
20691
20691
  }
20692
20692
  },
@@ -20705,12 +20705,12 @@ var require_async_iterator = __commonJS({
20705
20705
  iterator[kError] = err;
20706
20706
  return;
20707
20707
  }
20708
- var resolve = iterator[kLastResolve];
20709
- if (resolve !== null) {
20708
+ var resolve2 = iterator[kLastResolve];
20709
+ if (resolve2 !== null) {
20710
20710
  iterator[kLastPromise] = null;
20711
20711
  iterator[kLastResolve] = null;
20712
20712
  iterator[kLastReject] = null;
20713
- resolve(createIterResult(void 0, true));
20713
+ resolve2(createIterResult(void 0, true));
20714
20714
  }
20715
20715
  iterator[kEnded] = true;
20716
20716
  });
@@ -20725,7 +20725,7 @@ var require_async_iterator = __commonJS({
20725
20725
  var require_from2 = __commonJS({
20726
20726
  "node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
20727
20727
  "use strict";
20728
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
20728
+ function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
20729
20729
  try {
20730
20730
  var info = gen[key](arg);
20731
20731
  var value = info.value;
@@ -20734,7 +20734,7 @@ var require_from2 = __commonJS({
20734
20734
  return;
20735
20735
  }
20736
20736
  if (info.done) {
20737
- resolve(value);
20737
+ resolve2(value);
20738
20738
  } else {
20739
20739
  Promise.resolve(value).then(_next, _throw);
20740
20740
  }
@@ -20742,13 +20742,13 @@ var require_from2 = __commonJS({
20742
20742
  function _asyncToGenerator(fn) {
20743
20743
  return function() {
20744
20744
  var self2 = this, args = arguments;
20745
- return new Promise(function(resolve, reject) {
20745
+ return new Promise(function(resolve2, reject) {
20746
20746
  var gen = fn.apply(self2, args);
20747
20747
  function _next(value) {
20748
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
20748
+ asyncGeneratorStep(gen, resolve2, reject, _next, _throw, "next", value);
20749
20749
  }
20750
20750
  function _throw(err) {
20751
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
20751
+ asyncGeneratorStep(gen, resolve2, reject, _next, _throw, "throw", err);
20752
20752
  }
20753
20753
  _next(void 0);
20754
20754
  });
@@ -28075,26 +28075,26 @@ var require_lib2 = __commonJS({
28075
28075
  return matches;
28076
28076
  };
28077
28077
  exports2.analyse = analyse;
28078
- var detectFile = (filepath, opts = {}) => new Promise((resolve, reject) => {
28078
+ var detectFile = (filepath, opts = {}) => new Promise((resolve2, reject) => {
28079
28079
  let fd;
28080
- const fs20 = (0, node_1.default)();
28080
+ const fs21 = (0, node_1.default)();
28081
28081
  const handler = (err, buffer) => {
28082
28082
  if (fd) {
28083
- fs20.closeSync(fd);
28083
+ fs21.closeSync(fd);
28084
28084
  }
28085
28085
  if (err) {
28086
28086
  reject(err);
28087
28087
  } else if (buffer) {
28088
- resolve((0, exports2.detect)(buffer));
28088
+ resolve2((0, exports2.detect)(buffer));
28089
28089
  } else {
28090
28090
  reject(new Error("No error and no buffer received"));
28091
28091
  }
28092
28092
  };
28093
28093
  const sampleSize = (opts === null || opts === void 0 ? void 0 : opts.sampleSize) || 0;
28094
28094
  if (sampleSize > 0) {
28095
- fd = fs20.openSync(filepath, "r");
28095
+ fd = fs21.openSync(filepath, "r");
28096
28096
  let sample = Buffer.allocUnsafe(sampleSize);
28097
- fs20.read(fd, sample, 0, sampleSize, opts.offset, (err, bytesRead) => {
28097
+ fs21.read(fd, sample, 0, sampleSize, opts.offset, (err, bytesRead) => {
28098
28098
  if (err) {
28099
28099
  handler(err, null);
28100
28100
  } else {
@@ -28106,22 +28106,22 @@ var require_lib2 = __commonJS({
28106
28106
  });
28107
28107
  return;
28108
28108
  }
28109
- fs20.readFile(filepath, handler);
28109
+ fs21.readFile(filepath, handler);
28110
28110
  });
28111
28111
  exports2.detectFile = detectFile;
28112
28112
  var detectFileSync = (filepath, opts = {}) => {
28113
- const fs20 = (0, node_1.default)();
28113
+ const fs21 = (0, node_1.default)();
28114
28114
  if (opts && opts.sampleSize) {
28115
- const fd = fs20.openSync(filepath, "r");
28115
+ const fd = fs21.openSync(filepath, "r");
28116
28116
  let sample = Buffer.allocUnsafe(opts.sampleSize);
28117
- const bytesRead = fs20.readSync(fd, sample, 0, opts.sampleSize, opts.offset);
28117
+ const bytesRead = fs21.readSync(fd, sample, 0, opts.sampleSize, opts.offset);
28118
28118
  if (bytesRead < opts.sampleSize) {
28119
28119
  sample = sample.subarray(0, bytesRead);
28120
28120
  }
28121
- fs20.closeSync(fd);
28121
+ fs21.closeSync(fd);
28122
28122
  return (0, exports2.detect)(sample);
28123
28123
  }
28124
- return (0, exports2.detect)(fs20.readFileSync(filepath));
28124
+ return (0, exports2.detect)(fs21.readFileSync(filepath));
28125
28125
  };
28126
28126
  exports2.detectFileSync = detectFileSync;
28127
28127
  exports2.default = {
@@ -38678,15 +38678,15 @@ var require_utils5 = __commonJS({
38678
38678
  Object.defineProperty(exports2, "__esModule", { value: true });
38679
38679
  var PromiseInspection_1 = require_PromiseInspection();
38680
38680
  function defer3() {
38681
- let resolve = null;
38681
+ let resolve2 = null;
38682
38682
  let reject = null;
38683
38683
  const promise = new Promise((resolver, rejecter) => {
38684
- resolve = resolver;
38684
+ resolve2 = resolver;
38685
38685
  reject = rejecter;
38686
38686
  });
38687
38687
  return {
38688
38688
  promise,
38689
- resolve,
38689
+ resolve: resolve2,
38690
38690
  reject
38691
38691
  };
38692
38692
  }
@@ -38711,7 +38711,7 @@ var require_utils5 = __commonJS({
38711
38711
  }
38712
38712
  exports2.checkRequiredTime = checkRequiredTime;
38713
38713
  function delay(millis) {
38714
- return new Promise((resolve) => setTimeout(resolve, millis));
38714
+ return new Promise((resolve2) => setTimeout(resolve2, millis));
38715
38715
  }
38716
38716
  exports2.delay = delay;
38717
38717
  function reflect(promise) {
@@ -38771,11 +38771,11 @@ var require_PendingOperation = __commonJS({
38771
38771
  };
38772
38772
  exports2.PendingOperation = PendingOperation;
38773
38773
  function timeout(promise, time) {
38774
- return new Promise((resolve, reject) => {
38774
+ return new Promise((resolve2, reject) => {
38775
38775
  const timeoutHandle = setTimeout(() => reject(new TimeoutError_1.TimeoutError()), time);
38776
38776
  promise.then((result) => {
38777
38777
  clearTimeout(timeoutHandle);
38778
- resolve(result);
38778
+ resolve2(result);
38779
38779
  }).catch((err) => {
38780
38780
  clearTimeout(timeoutHandle);
38781
38781
  reject(err);
@@ -38983,15 +38983,15 @@ var require_Pool = __commonJS({
38983
38983
  this._stopReaping();
38984
38984
  this.destroyed = true;
38985
38985
  return utils_1.reflect(Promise.all(this.pendingCreates.map((create) => utils_1.reflect(create.promise))).then(() => {
38986
- return new Promise((resolve, reject) => {
38986
+ return new Promise((resolve2, reject) => {
38987
38987
  if (this.numPendingValidations() === 0) {
38988
- resolve();
38988
+ resolve2();
38989
38989
  return;
38990
38990
  }
38991
38991
  const interval = setInterval(() => {
38992
38992
  if (this.numPendingValidations() === 0) {
38993
38993
  timers_1.clearInterval(interval);
38994
- resolve();
38994
+ resolve2();
38995
38995
  }
38996
38996
  }, 100);
38997
38997
  });
@@ -39215,17 +39215,17 @@ var require_Pool = __commonJS({
39215
39215
  }
39216
39216
  }
39217
39217
  function callbackOrPromise(func) {
39218
- return new Promise((resolve, reject) => {
39218
+ return new Promise((resolve2, reject) => {
39219
39219
  const callback = (err, resource) => {
39220
39220
  if (err) {
39221
39221
  reject(err);
39222
39222
  } else {
39223
- resolve(resource);
39223
+ resolve2(resource);
39224
39224
  }
39225
39225
  };
39226
39226
  utils_1.tryPromise(() => func(callback)).then((res) => {
39227
39227
  if (res) {
39228
- resolve(res);
39228
+ resolve2(res);
39229
39229
  }
39230
39230
  }).catch((err) => {
39231
39231
  reject(err);
@@ -40484,10 +40484,10 @@ var require_connection_pool = __commonJS({
40484
40484
  this._connect(callback);
40485
40485
  return this;
40486
40486
  }
40487
- return new shared.Promise((resolve, reject) => {
40487
+ return new shared.Promise((resolve2, reject) => {
40488
40488
  return this._connect((err) => {
40489
40489
  if (err) return reject(err);
40490
- resolve(this);
40490
+ resolve2(this);
40491
40491
  });
40492
40492
  });
40493
40493
  }
@@ -40568,10 +40568,10 @@ var require_connection_pool = __commonJS({
40568
40568
  this._close(callback);
40569
40569
  return this;
40570
40570
  }
40571
- return new shared.Promise((resolve, reject) => {
40571
+ return new shared.Promise((resolve2, reject) => {
40572
40572
  this._close((err) => {
40573
40573
  if (err) return reject(err);
40574
- resolve(this);
40574
+ resolve2(this);
40575
40575
  });
40576
40576
  });
40577
40577
  }
@@ -40732,8 +40732,8 @@ var require_global_connection = __commonJS({
40732
40732
  setImmediate(callback);
40733
40733
  return null;
40734
40734
  }
40735
- return new shared.Promise((resolve) => {
40736
- resolve(globalConnection);
40735
+ return new shared.Promise((resolve2) => {
40736
+ resolve2(globalConnection);
40737
40737
  });
40738
40738
  }
40739
40739
  function on(event, handler) {
@@ -40944,10 +40944,10 @@ var require_prepared_statement = __commonJS({
40944
40944
  this._prepare(statement, callback);
40945
40945
  return this;
40946
40946
  }
40947
- return new shared.Promise((resolve, reject) => {
40947
+ return new shared.Promise((resolve2, reject) => {
40948
40948
  this._prepare(statement, (err) => {
40949
40949
  if (err) return reject(err);
40950
- resolve(this);
40950
+ resolve2(this);
40951
40951
  });
40952
40952
  });
40953
40953
  }
@@ -41010,10 +41010,10 @@ var require_prepared_statement = __commonJS({
41010
41010
  if (this.stream || typeof callback === "function") {
41011
41011
  return this._execute(values, callback);
41012
41012
  }
41013
- return new shared.Promise((resolve, reject) => {
41013
+ return new shared.Promise((resolve2, reject) => {
41014
41014
  this._execute(values, (err, recordset) => {
41015
41015
  if (err) return reject(err);
41016
- resolve(recordset);
41016
+ resolve2(recordset);
41017
41017
  });
41018
41018
  });
41019
41019
  }
@@ -41059,10 +41059,10 @@ var require_prepared_statement = __commonJS({
41059
41059
  this._unprepare(callback);
41060
41060
  return this;
41061
41061
  }
41062
- return new shared.Promise((resolve, reject) => {
41062
+ return new shared.Promise((resolve2, reject) => {
41063
41063
  this._unprepare((err) => {
41064
41064
  if (err) return reject(err);
41065
- resolve();
41065
+ resolve2();
41066
41066
  });
41067
41067
  });
41068
41068
  }
@@ -41306,7 +41306,7 @@ var require_request = __commonJS({
41306
41306
  const strings = values.shift();
41307
41307
  batch = this._template(strings, values);
41308
41308
  }
41309
- return new shared.Promise((resolve, reject) => {
41309
+ return new shared.Promise((resolve2, reject) => {
41310
41310
  this._batch(batch, (err, recordsets, output, rowsAffected) => {
41311
41311
  if (this.stream) {
41312
41312
  if (err) this.emit("error", err);
@@ -41317,7 +41317,7 @@ var require_request = __commonJS({
41317
41317
  });
41318
41318
  }
41319
41319
  if (err) return reject(err);
41320
- resolve({
41320
+ resolve2({
41321
41321
  recordsets,
41322
41322
  recordset: recordsets && recordsets[0],
41323
41323
  output,
@@ -41373,10 +41373,10 @@ var require_request = __commonJS({
41373
41373
  });
41374
41374
  return this;
41375
41375
  }
41376
- return new shared.Promise((resolve, reject) => {
41376
+ return new shared.Promise((resolve2, reject) => {
41377
41377
  this._bulk(table, options, (err, rowsAffected) => {
41378
41378
  if (err) return reject(err);
41379
- resolve({
41379
+ resolve2({
41380
41380
  rowsAffected
41381
41381
  });
41382
41382
  });
@@ -41477,7 +41477,7 @@ var require_request = __commonJS({
41477
41477
  const strings = values.shift();
41478
41478
  command = this._template(strings, values);
41479
41479
  }
41480
- return new shared.Promise((resolve, reject) => {
41480
+ return new shared.Promise((resolve2, reject) => {
41481
41481
  this._query(command, (err, recordsets, output, rowsAffected, columns) => {
41482
41482
  if (this.stream) {
41483
41483
  if (err) this.emit("error", err);
@@ -41495,7 +41495,7 @@ var require_request = __commonJS({
41495
41495
  rowsAffected
41496
41496
  };
41497
41497
  if (this.arrayRowMode) result.columns = columns;
41498
- resolve(result);
41498
+ resolve2(result);
41499
41499
  });
41500
41500
  });
41501
41501
  }
@@ -41549,7 +41549,7 @@ var require_request = __commonJS({
41549
41549
  });
41550
41550
  return this;
41551
41551
  }
41552
- return new shared.Promise((resolve, reject) => {
41552
+ return new shared.Promise((resolve2, reject) => {
41553
41553
  this._execute(command, (err, recordsets, output, returnValue, rowsAffected, columns) => {
41554
41554
  if (this.stream) {
41555
41555
  if (err) this.emit("error", err);
@@ -41569,7 +41569,7 @@ var require_request = __commonJS({
41569
41569
  returnValue
41570
41570
  };
41571
41571
  if (this.arrayRowMode) result.columns = columns;
41572
- resolve(result);
41572
+ resolve2(result);
41573
41573
  });
41574
41574
  });
41575
41575
  }
@@ -41733,11 +41733,11 @@ var require_transaction = __commonJS({
41733
41733
  });
41734
41734
  return this;
41735
41735
  }
41736
- return new shared.Promise((resolve, reject) => {
41736
+ return new shared.Promise((resolve2, reject) => {
41737
41737
  this._begin(isolationLevel, (err) => {
41738
41738
  if (err) return reject(err);
41739
41739
  this.emit("begin");
41740
- resolve(this);
41740
+ resolve2(this);
41741
41741
  });
41742
41742
  });
41743
41743
  }
@@ -41780,11 +41780,11 @@ var require_transaction = __commonJS({
41780
41780
  });
41781
41781
  return this;
41782
41782
  }
41783
- return new shared.Promise((resolve, reject) => {
41783
+ return new shared.Promise((resolve2, reject) => {
41784
41784
  this._commit((err) => {
41785
41785
  if (err) return reject(err);
41786
41786
  this.emit("commit");
41787
- resolve();
41787
+ resolve2();
41788
41788
  });
41789
41789
  });
41790
41790
  }
@@ -41829,11 +41829,11 @@ var require_transaction = __commonJS({
41829
41829
  });
41830
41830
  return this;
41831
41831
  }
41832
- return new shared.Promise((resolve, reject) => {
41832
+ return new shared.Promise((resolve2, reject) => {
41833
41833
  return this._rollback((err) => {
41834
41834
  if (err) return reject(err);
41835
41835
  this.emit("rollback", this._aborted);
41836
- resolve();
41836
+ resolve2();
41837
41837
  });
41838
41838
  });
41839
41839
  }
@@ -43074,11 +43074,11 @@ function __metadata(metadataKey, metadataValue) {
43074
43074
  }
43075
43075
  function __awaiter(thisArg, _arguments, P, generator) {
43076
43076
  function adopt(value) {
43077
- return value instanceof P ? value : new P(function(resolve) {
43078
- resolve(value);
43077
+ return value instanceof P ? value : new P(function(resolve2) {
43078
+ resolve2(value);
43079
43079
  });
43080
43080
  }
43081
- return new (P || (P = Promise))(function(resolve, reject) {
43081
+ return new (P || (P = Promise))(function(resolve2, reject) {
43082
43082
  function fulfilled(value) {
43083
43083
  try {
43084
43084
  step(generator.next(value));
@@ -43094,7 +43094,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
43094
43094
  }
43095
43095
  }
43096
43096
  function step(result) {
43097
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
43097
+ result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
43098
43098
  }
43099
43099
  step((generator = generator.apply(thisArg, _arguments || [])).next());
43100
43100
  });
@@ -43285,14 +43285,14 @@ function __asyncValues(o) {
43285
43285
  }, i);
43286
43286
  function verb(n) {
43287
43287
  i[n] = o[n] && function(v) {
43288
- return new Promise(function(resolve, reject) {
43289
- v = o[n](v), settle(resolve, reject, v.done, v.value);
43288
+ return new Promise(function(resolve2, reject) {
43289
+ v = o[n](v), settle(resolve2, reject, v.done, v.value);
43290
43290
  });
43291
43291
  };
43292
43292
  }
43293
- function settle(resolve, reject, d, v) {
43293
+ function settle(resolve2, reject, d, v) {
43294
43294
  Promise.resolve(v).then(function(v2) {
43295
- resolve({ value: v2, done: d });
43295
+ resolve2({ value: v2, done: d });
43296
43296
  }, reject);
43297
43297
  }
43298
43298
  }
@@ -46760,7 +46760,7 @@ var require_index_node_C6O_wJLi = __commonJS({
46760
46760
  return cachedAtSec > nowSeconds();
46761
46761
  }
46762
46762
  function delay(t, value) {
46763
- return new Promise((resolve) => setTimeout(() => resolve(value), t));
46763
+ return new Promise((resolve2) => setTimeout(() => resolve2(value), t));
46764
46764
  }
46765
46765
  var TimeUtils = /* @__PURE__ */ Object.freeze({
46766
46766
  __proto__: null,
@@ -52395,7 +52395,7 @@ var require_msal_node = __commonJS({
52395
52395
  var crypto5 = require("crypto");
52396
52396
  var msalCommon = require_lib6();
52397
52397
  var jwt2 = require_jsonwebtoken();
52398
- var fs20 = require("fs");
52398
+ var fs21 = require("fs");
52399
52399
  var path4 = require("path");
52400
52400
  var Serializer = class {
52401
52401
  /**
@@ -56148,7 +56148,7 @@ var require_msal_node = __commonJS({
56148
56148
  return cachedAtSec > nowSeconds();
56149
56149
  }
56150
56150
  function delay(t, value) {
56151
- return new Promise((resolve) => setTimeout(() => resolve(value), t));
56151
+ return new Promise((resolve2) => setTimeout(() => resolve2(value), t));
56152
56152
  }
56153
56153
  function createIdTokenEntity(homeAccountId, environment, idToken, clientId, tenantId) {
56154
56154
  const idTokenEntity = {
@@ -58842,7 +58842,7 @@ ${body}`;
58842
58842
  Host: ${destinationUrl.host}\r
58843
58843
  Connection: close\r
58844
58844
  ` + postRequestStringContent + "\r\n";
58845
- return new Promise((resolve, reject) => {
58845
+ return new Promise((resolve2, reject) => {
58846
58846
  const request = http.request(tunnelRequestOptions);
58847
58847
  if (timeout) {
58848
58848
  request.on("timeout", () => {
@@ -58891,7 +58891,7 @@ Connection: close\r
58891
58891
  if (this.shouldDestroyRequest(httpStatusCode, networkResponse)) {
58892
58892
  request.destroy();
58893
58893
  }
58894
- resolve(networkResponse);
58894
+ resolve2(networkResponse);
58895
58895
  });
58896
58896
  socket.on("error", (chunk) => {
58897
58897
  request.destroy();
@@ -58933,7 +58933,7 @@ Connection: close\r
58933
58933
  customOptions.timeout = timeout;
58934
58934
  }
58935
58935
  }
58936
- return new Promise((resolve, reject) => {
58936
+ return new Promise((resolve2, reject) => {
58937
58937
  let request;
58938
58938
  if (customOptions.protocol === "http:") {
58939
58939
  request = http.request(customOptions);
@@ -58966,7 +58966,7 @@ Connection: close\r
58966
58966
  if (this.shouldDestroyRequest(statusCode, networkResponse)) {
58967
58967
  request.destroy();
58968
58968
  }
58969
- resolve(networkResponse);
58969
+ resolve2(networkResponse);
58970
58970
  });
58971
58971
  });
58972
58972
  request.on("error", (chunk) => {
@@ -60736,7 +60736,7 @@ Headers: ${JSON.stringify(headers)}`
60736
60736
  if (this.server) {
60737
60737
  throw NodeAuthError.createLoopbackServerAlreadyExistsError();
60738
60738
  }
60739
- return new Promise((resolve, reject) => {
60739
+ return new Promise((resolve2, reject) => {
60740
60740
  this.server = http.createServer((req, res) => {
60741
60741
  const url = req.url;
60742
60742
  if (!url) {
@@ -60759,7 +60759,7 @@ Headers: ${JSON.stringify(headers)}`
60759
60759
  if (authCodeResponse.error) {
60760
60760
  res.end(errorTemplate || `Error occurred: ${authCodeResponse.error}`);
60761
60761
  }
60762
- resolve(authCodeResponse);
60762
+ resolve2(authCodeResponse);
60763
60763
  });
60764
60764
  this.server.listen(0, "127.0.0.1");
60765
60765
  });
@@ -61172,7 +61172,7 @@ Headers: ${JSON.stringify(headers)}`
61172
61172
  * @returns
61173
61173
  */
61174
61174
  async waitForRedirectUri(loopbackClient) {
61175
- return new Promise((resolve, reject) => {
61175
+ return new Promise((resolve2, reject) => {
61176
61176
  let ticks = 0;
61177
61177
  const id = setInterval(() => {
61178
61178
  if (LOOPBACK_SERVER_CONSTANTS.TIMEOUT_MS / LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS < ticks) {
@@ -61183,7 +61183,7 @@ Headers: ${JSON.stringify(headers)}`
61183
61183
  try {
61184
61184
  const r = loopbackClient.getRedirectUri();
61185
61185
  clearInterval(id);
61186
- resolve(r);
61186
+ resolve2(r);
61187
61187
  return;
61188
61188
  } catch (e) {
61189
61189
  if (e instanceof AuthError && e.errorCode === NodeAuthErrorMessage.noLoopbackServerExists.code) {
@@ -61937,8 +61937,8 @@ Headers: ${JSON.stringify(headers)}`
61937
61937
  if (DEFAULT_MANAGED_IDENTITY_HTTP_STATUS_CODES_TO_RETRY_ON.includes(httpStatusCode) && currentRetry < DEFAULT_MANAGED_IDENTITY_MAX_RETRIES) {
61938
61938
  const retryAfterDelay = this.linearRetryStrategy.calculateDelay(retryAfterHeader, _DefaultManagedIdentityRetryPolicy.DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS);
61939
61939
  logger2.verbose(`Retrying request in ${retryAfterDelay}ms (retry attempt: ${currentRetry + 1})`);
61940
- await new Promise((resolve) => {
61941
- return setTimeout(resolve, retryAfterDelay);
61940
+ await new Promise((resolve2) => {
61941
+ return setTimeout(resolve2, retryAfterDelay);
61942
61942
  });
61943
61943
  return true;
61944
61944
  }
@@ -62094,7 +62094,7 @@ Headers: ${JSON.stringify(headers)}`
62094
62094
  if (!identityEndpoint || !imdsEndpoint) {
62095
62095
  const fileDetectionPath = AZURE_ARC_FILE_DETECTION[process.platform];
62096
62096
  try {
62097
- fs20.accessSync(fileDetectionPath, fs20.constants.F_OK | fs20.constants.R_OK);
62097
+ fs21.accessSync(fileDetectionPath, fs21.constants.F_OK | fs21.constants.R_OK);
62098
62098
  identityEndpoint = DEFAULT_AZURE_ARC_IDENTITY_ENDPOINT;
62099
62099
  imdsEndpoint = HIMDS_EXECUTABLE_HELPER_STRING;
62100
62100
  } catch (err) {
@@ -62206,7 +62206,7 @@ Headers: ${JSON.stringify(headers)}`
62206
62206
  }
62207
62207
  let secretFileSize;
62208
62208
  try {
62209
- secretFileSize = await fs20.statSync(secretFilePath).size;
62209
+ secretFileSize = await fs21.statSync(secretFilePath).size;
62210
62210
  } catch (e) {
62211
62211
  throw createManagedIdentityError(unableToReadSecretFile);
62212
62212
  }
@@ -62215,7 +62215,7 @@ Headers: ${JSON.stringify(headers)}`
62215
62215
  }
62216
62216
  let secret;
62217
62217
  try {
62218
- secret = fs20.readFileSync(secretFilePath, EncodingTypes.UTF8);
62218
+ secret = fs21.readFileSync(secretFilePath, EncodingTypes.UTF8);
62219
62219
  } catch (e) {
62220
62220
  throw createManagedIdentityError(unableToReadSecretFile);
62221
62221
  }
@@ -62392,8 +62392,8 @@ Headers: ${JSON.stringify(headers)}`
62392
62392
  if ((HTTP_STATUS_400_CODES_FOR_EXPONENTIAL_STRATEGY.includes(httpStatusCode) || httpStatusCode >= msalCommon.HttpStatus.SERVER_ERROR_RANGE_START && httpStatusCode <= msalCommon.HttpStatus.SERVER_ERROR_RANGE_END && currentRetry < this.maxRetries) && currentRetry < this.maxRetries) {
62393
62393
  const retryAfterDelay = httpStatusCode === msalCommon.HttpStatus.GONE ? _ImdsRetryPolicy.HTTP_STATUS_GONE_RETRY_AFTER_MS : this.exponentialRetryStrategy.calculateDelay(currentRetry);
62394
62394
  logger2.verbose(`Retrying request in ${retryAfterDelay}ms (retry attempt: ${currentRetry + 1})`);
62395
- await new Promise((resolve) => {
62396
- return setTimeout(resolve, retryAfterDelay);
62395
+ await new Promise((resolve2) => {
62396
+ return setTimeout(resolve2, retryAfterDelay);
62397
62397
  });
62398
62398
  return true;
62399
62399
  }
@@ -63292,7 +63292,7 @@ var require_createAbortablePromise = __commonJS({
63292
63292
  var abort_controller_1 = require_commonjs3();
63293
63293
  function createAbortablePromise(buildPromise, options) {
63294
63294
  const { cleanupBeforeAbort, abortSignal, abortErrorMsg } = options ?? {};
63295
- return new Promise((resolve, reject) => {
63295
+ return new Promise((resolve2, reject) => {
63296
63296
  function rejectOnAbort() {
63297
63297
  reject(new abort_controller_1.AbortError(abortErrorMsg ?? "The operation was aborted."));
63298
63298
  }
@@ -63310,7 +63310,7 @@ var require_createAbortablePromise = __commonJS({
63310
63310
  try {
63311
63311
  buildPromise((x) => {
63312
63312
  removeListeners();
63313
- resolve(x);
63313
+ resolve2(x);
63314
63314
  }, (x) => {
63315
63315
  removeListeners();
63316
63316
  reject(x);
@@ -63337,8 +63337,8 @@ var require_delay3 = __commonJS({
63337
63337
  function delay(timeInMs, options) {
63338
63338
  let token;
63339
63339
  const { abortSignal, abortErrorMsg } = options ?? {};
63340
- return (0, createAbortablePromise_js_1.createAbortablePromise)((resolve) => {
63341
- token = setTimeout(resolve, timeInMs);
63340
+ return (0, createAbortablePromise_js_1.createAbortablePromise)((resolve2) => {
63341
+ token = setTimeout(resolve2, timeInMs);
63342
63342
  }, {
63343
63343
  cleanupBeforeAbort: () => clearTimeout(token),
63344
63344
  abortSignal,
@@ -65027,9 +65027,9 @@ var require_nodeHttpClient = __commonJS({
65027
65027
  if (stream2.readable === false) {
65028
65028
  return Promise.resolve();
65029
65029
  }
65030
- return new Promise((resolve) => {
65030
+ return new Promise((resolve2) => {
65031
65031
  const handler = () => {
65032
- resolve();
65032
+ resolve2();
65033
65033
  stream2.removeListener("close", handler);
65034
65034
  stream2.removeListener("end", handler);
65035
65035
  stream2.removeListener("error", handler);
@@ -65184,8 +65184,8 @@ var require_nodeHttpClient = __commonJS({
65184
65184
  headers: request.headers.toJSON({ preserveCase: true }),
65185
65185
  ...request.requestOverrides
65186
65186
  };
65187
- return new Promise((resolve, reject) => {
65188
- const req = isInsecure ? node_http_1.default.request(options, resolve) : node_https_1.default.request(options, resolve);
65187
+ return new Promise((resolve2, reject) => {
65188
+ const req = isInsecure ? node_http_1.default.request(options, resolve2) : node_https_1.default.request(options, resolve2);
65189
65189
  req.once("error", (err) => {
65190
65190
  reject(new restError_js_1.RestError(err.message, { code: err.code ?? restError_js_1.RestError.REQUEST_SEND_ERROR, request }));
65191
65191
  });
@@ -65269,7 +65269,7 @@ var require_nodeHttpClient = __commonJS({
65269
65269
  return stream2;
65270
65270
  }
65271
65271
  function streamToText(stream2) {
65272
- return new Promise((resolve, reject) => {
65272
+ return new Promise((resolve2, reject) => {
65273
65273
  const buffer = [];
65274
65274
  stream2.on("data", (chunk) => {
65275
65275
  if (Buffer.isBuffer(chunk)) {
@@ -65279,7 +65279,7 @@ var require_nodeHttpClient = __commonJS({
65279
65279
  }
65280
65280
  });
65281
65281
  stream2.on("end", () => {
65282
- resolve(Buffer.concat(buffer).toString("utf8"));
65282
+ resolve2(Buffer.concat(buffer).toString("utf8"));
65283
65283
  });
65284
65284
  stream2.on("error", (e) => {
65285
65285
  if (e && e?.name === "AbortError") {
@@ -65526,7 +65526,7 @@ var require_helpers = __commonJS({
65526
65526
  var AbortError_js_1 = require_AbortError2();
65527
65527
  var StandardAbortMessage = "The operation was aborted.";
65528
65528
  function delay(delayInMs, value, options) {
65529
- return new Promise((resolve, reject) => {
65529
+ return new Promise((resolve2, reject) => {
65530
65530
  let timer = void 0;
65531
65531
  let onAborted = void 0;
65532
65532
  const rejectOnAbort = () => {
@@ -65549,7 +65549,7 @@ var require_helpers = __commonJS({
65549
65549
  }
65550
65550
  timer = setTimeout(() => {
65551
65551
  removeListeners();
65552
- resolve(value);
65552
+ resolve2(value);
65553
65553
  }, delayInMs);
65554
65554
  if (options?.abortSignal) {
65555
65555
  options.abortSignal.addEventListener("abort", onAborted);
@@ -65933,8 +65933,8 @@ var require_helpers2 = __commonJS({
65933
65933
  function req(url, opts = {}) {
65934
65934
  const href = typeof url === "string" ? url : url.href;
65935
65935
  const req2 = (href.startsWith("https:") ? https : http).request(url, opts);
65936
- const promise = new Promise((resolve, reject) => {
65937
- req2.once("response", resolve).once("error", reject).end();
65936
+ const promise = new Promise((resolve2, reject) => {
65937
+ req2.once("response", resolve2).once("error", reject).end();
65938
65938
  });
65939
65939
  req2.then = promise.then.bind(promise);
65940
65940
  return req2;
@@ -66111,7 +66111,7 @@ var require_parse_proxy_response = __commonJS({
66111
66111
  var debug_1 = __importDefault2(require_src());
66112
66112
  var debug = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
66113
66113
  function parseProxyResponse(socket) {
66114
- return new Promise((resolve, reject) => {
66114
+ return new Promise((resolve2, reject) => {
66115
66115
  let buffersLength = 0;
66116
66116
  const buffers = [];
66117
66117
  function read() {
@@ -66177,7 +66177,7 @@ var require_parse_proxy_response = __commonJS({
66177
66177
  }
66178
66178
  debug("got proxy server response: %o %o", firstLine, headers);
66179
66179
  cleanup();
66180
- resolve({
66180
+ resolve2({
66181
66181
  connect: {
66182
66182
  statusCode,
66183
66183
  statusText,
@@ -71279,14 +71279,14 @@ var init_open = __esm({
71279
71279
  }
71280
71280
  const subprocess = import_node_child_process5.default.spawn(command, cliArguments, childProcessOptions);
71281
71281
  if (options.wait) {
71282
- return new Promise((resolve, reject) => {
71282
+ return new Promise((resolve2, reject) => {
71283
71283
  subprocess.once("error", reject);
71284
71284
  subprocess.once("close", (exitCode) => {
71285
71285
  if (!options.allowNonzeroExitCode && exitCode > 0) {
71286
71286
  reject(new Error(`Exited with code ${exitCode}`));
71287
71287
  return;
71288
71288
  }
71289
- resolve(subprocess);
71289
+ resolve2(subprocess);
71290
71290
  });
71291
71291
  });
71292
71292
  }
@@ -72778,7 +72778,7 @@ var require_azureDeveloperCliCredential = __commonJS({
72778
72778
  const encodedClaims = btoa(claims);
72779
72779
  claimsSections = ["--claims", encodedClaims];
72780
72780
  }
72781
- return new Promise((resolve, reject) => {
72781
+ return new Promise((resolve2, reject) => {
72782
72782
  try {
72783
72783
  const args = [
72784
72784
  "auth",
@@ -72795,7 +72795,7 @@ var require_azureDeveloperCliCredential = __commonJS({
72795
72795
  cwd: exports2.developerCliCredentialInternals.getSafeWorkingDir(),
72796
72796
  timeout
72797
72797
  }, (error, stdout, stderr) => {
72798
- resolve({ stdout, stderr, error });
72798
+ resolve2({ stdout, stderr, error });
72799
72799
  });
72800
72800
  } catch (err) {
72801
72801
  reject(err);
@@ -72964,7 +72964,7 @@ var require_azureCliCredential = __commonJS({
72964
72964
  if (subscription) {
72965
72965
  subscriptionSection = ["--subscription", `"${subscription}"`];
72966
72966
  }
72967
- return new Promise((resolve, reject) => {
72967
+ return new Promise((resolve2, reject) => {
72968
72968
  try {
72969
72969
  const args = [
72970
72970
  "account",
@@ -72978,7 +72978,7 @@ var require_azureCliCredential = __commonJS({
72978
72978
  ];
72979
72979
  const command = ["az", ...args].join(" ");
72980
72980
  child_process_1.default.exec(command, { cwd: exports2.cliCredentialInternals.getSafeWorkingDir(), timeout }, (error, stdout, stderr) => {
72981
- resolve({ stdout, stderr, error });
72981
+ resolve2({ stdout, stderr, error });
72982
72982
  });
72983
72983
  } catch (err) {
72984
72984
  reject(err);
@@ -73128,7 +73128,7 @@ var require_processUtils = __commonJS({
73128
73128
  * @internal
73129
73129
  */
73130
73130
  execFile(file, params, options) {
73131
- return new Promise((resolve, reject) => {
73131
+ return new Promise((resolve2, reject) => {
73132
73132
  node_child_process_1.default.execFile(file, params, options, (error, stdout, stderr) => {
73133
73133
  if (Buffer.isBuffer(stdout)) {
73134
73134
  stdout = stdout.toString("utf8");
@@ -73139,7 +73139,7 @@ var require_processUtils = __commonJS({
73139
73139
  if (stderr || error) {
73140
73140
  reject(stderr ? new Error(stderr) : error);
73141
73141
  } else {
73142
- resolve(stdout);
73142
+ resolve2(stdout);
73143
73143
  }
73144
73144
  });
73145
73145
  });
@@ -74844,7 +74844,7 @@ var require_sender = __commonJS({
74844
74844
  if (signal.aborted) {
74845
74845
  throw new _abortError.default();
74846
74846
  }
74847
- return await new Promise((resolve, reject) => {
74847
+ return await new Promise((resolve2, reject) => {
74848
74848
  const sockets = [];
74849
74849
  let errorCount = 0;
74850
74850
  const onError = (err) => {
@@ -74858,7 +74858,7 @@ var require_sender = __commonJS({
74858
74858
  const onMessage = (message) => {
74859
74859
  signal.removeEventListener("abort", onAbort);
74860
74860
  clearSockets();
74861
- resolve(message);
74861
+ resolve2(message);
74862
74862
  };
74863
74863
  const onAbort = () => {
74864
74864
  clearSockets();
@@ -74895,7 +74895,7 @@ var require_sender = __commonJS({
74895
74895
  family: _net.default.isIPv6(host) ? 6 : 4
74896
74896
  }];
74897
74897
  } else {
74898
- addresses = await new Promise((resolve, reject) => {
74898
+ addresses = await new Promise((resolve2, reject) => {
74899
74899
  const onAbort = () => {
74900
74900
  reject(new _abortError.default());
74901
74901
  };
@@ -74904,7 +74904,7 @@ var require_sender = __commonJS({
74904
74904
  all: true
74905
74905
  }, (err, addresses2) => {
74906
74906
  signal.removeEventListener("abort", onAbort);
74907
- err ? reject(err) : resolve(addresses2);
74907
+ err ? reject(err) : resolve2(addresses2);
74908
74908
  });
74909
74909
  });
74910
74910
  }
@@ -78421,25 +78421,25 @@ var require_util2 = __commonJS({
78421
78421
  };
78422
78422
  },
78423
78423
  createDeferredPromise: function() {
78424
- let resolve;
78424
+ let resolve2;
78425
78425
  let reject;
78426
78426
  const promise = new Promise((res, rej) => {
78427
- resolve = res;
78427
+ resolve2 = res;
78428
78428
  reject = rej;
78429
78429
  });
78430
78430
  return {
78431
78431
  promise,
78432
- resolve,
78432
+ resolve: resolve2,
78433
78433
  reject
78434
78434
  };
78435
78435
  },
78436
78436
  promisify(fn) {
78437
- return new Promise((resolve, reject) => {
78437
+ return new Promise((resolve2, reject) => {
78438
78438
  fn((err, ...args) => {
78439
78439
  if (err) {
78440
78440
  return reject(err);
78441
78441
  }
78442
- return resolve(...args);
78442
+ return resolve2(...args);
78443
78443
  });
78444
78444
  });
78445
78445
  },
@@ -79231,7 +79231,7 @@ var require_end_of_stream2 = __commonJS({
79231
79231
  validateBoolean(opts.cleanup, "cleanup");
79232
79232
  autoCleanup = opts.cleanup;
79233
79233
  }
79234
- return new Promise2((resolve, reject) => {
79234
+ return new Promise2((resolve2, reject) => {
79235
79235
  const cleanup = eos(stream2, opts, (err) => {
79236
79236
  if (autoCleanup) {
79237
79237
  cleanup();
@@ -79239,7 +79239,7 @@ var require_end_of_stream2 = __commonJS({
79239
79239
  if (err) {
79240
79240
  reject(err);
79241
79241
  } else {
79242
- resolve();
79242
+ resolve2();
79243
79243
  }
79244
79244
  });
79245
79245
  });
@@ -80109,7 +80109,7 @@ var require_readable2 = __commonJS({
80109
80109
  error = this.readableEnded ? null : new AbortError();
80110
80110
  this.destroy(error);
80111
80111
  }
80112
- return new Promise2((resolve, reject) => eos(this, (err) => err && err !== error ? reject(err) : resolve(null)));
80112
+ return new Promise2((resolve2, reject) => eos(this, (err) => err && err !== error ? reject(err) : resolve2(null)));
80113
80113
  };
80114
80114
  Readable.prototype.push = function(chunk, encoding) {
80115
80115
  return readableAddChunk(this, chunk, encoding, false);
@@ -80653,12 +80653,12 @@ var require_readable2 = __commonJS({
80653
80653
  }
80654
80654
  async function* createAsyncIterator(stream2, options) {
80655
80655
  let callback = nop;
80656
- function next(resolve) {
80656
+ function next(resolve2) {
80657
80657
  if (this === stream2) {
80658
80658
  callback();
80659
80659
  callback = nop;
80660
80660
  } else {
80661
- callback = resolve;
80661
+ callback = resolve2;
80662
80662
  }
80663
80663
  }
80664
80664
  stream2.on("readable", next);
@@ -81711,7 +81711,7 @@ var require_duplexify = __commonJS({
81711
81711
  );
81712
81712
  };
81713
81713
  function fromAsyncGen(fn) {
81714
- let { promise, resolve } = createDeferredPromise();
81714
+ let { promise, resolve: resolve2 } = createDeferredPromise();
81715
81715
  const ac = new AbortController2();
81716
81716
  const signal = ac.signal;
81717
81717
  const value = fn(
@@ -81726,7 +81726,7 @@ var require_duplexify = __commonJS({
81726
81726
  throw new AbortError(void 0, {
81727
81727
  cause: signal.reason
81728
81728
  });
81729
- ({ promise, resolve } = createDeferredPromise());
81729
+ ({ promise, resolve: resolve2 } = createDeferredPromise());
81730
81730
  yield chunk;
81731
81731
  }
81732
81732
  })(),
@@ -81737,8 +81737,8 @@ var require_duplexify = __commonJS({
81737
81737
  return {
81738
81738
  value,
81739
81739
  write(chunk, encoding, cb) {
81740
- const _resolve = resolve;
81741
- resolve = null;
81740
+ const _resolve = resolve2;
81741
+ resolve2 = null;
81742
81742
  _resolve({
81743
81743
  chunk,
81744
81744
  done: false,
@@ -81746,8 +81746,8 @@ var require_duplexify = __commonJS({
81746
81746
  });
81747
81747
  },
81748
81748
  final(cb) {
81749
- const _resolve = resolve;
81750
- resolve = null;
81749
+ const _resolve = resolve2;
81750
+ resolve2 = null;
81751
81751
  _resolve({
81752
81752
  done: true,
81753
81753
  cb
@@ -82199,7 +82199,7 @@ var require_pipeline5 = __commonJS({
82199
82199
  callback();
82200
82200
  }
82201
82201
  };
82202
- const wait = () => new Promise2((resolve, reject) => {
82202
+ const wait = () => new Promise2((resolve2, reject) => {
82203
82203
  if (error) {
82204
82204
  reject(error);
82205
82205
  } else {
@@ -82207,7 +82207,7 @@ var require_pipeline5 = __commonJS({
82207
82207
  if (error) {
82208
82208
  reject(error);
82209
82209
  } else {
82210
- resolve();
82210
+ resolve2();
82211
82211
  }
82212
82212
  };
82213
82213
  }
@@ -82851,8 +82851,8 @@ var require_operators = __commonJS({
82851
82851
  next = null;
82852
82852
  }
82853
82853
  if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
82854
- await new Promise2((resolve) => {
82855
- resume = resolve;
82854
+ await new Promise2((resolve2) => {
82855
+ resume = resolve2;
82856
82856
  });
82857
82857
  }
82858
82858
  }
@@ -82886,8 +82886,8 @@ var require_operators = __commonJS({
82886
82886
  queue.shift();
82887
82887
  maybeResume();
82888
82888
  }
82889
- await new Promise2((resolve) => {
82890
- next = resolve;
82889
+ await new Promise2((resolve2) => {
82890
+ next = resolve2;
82891
82891
  });
82892
82892
  }
82893
82893
  } finally {
@@ -83145,7 +83145,7 @@ var require_promises = __commonJS({
83145
83145
  var { finished } = require_end_of_stream2();
83146
83146
  require_stream2();
83147
83147
  function pipeline(...streams) {
83148
- return new Promise2((resolve, reject) => {
83148
+ return new Promise2((resolve2, reject) => {
83149
83149
  let signal;
83150
83150
  let end;
83151
83151
  const lastArg = streams[streams.length - 1];
@@ -83160,7 +83160,7 @@ var require_promises = __commonJS({
83160
83160
  if (err) {
83161
83161
  reject(err);
83162
83162
  } else {
83163
- resolve(value);
83163
+ resolve2(value);
83164
83164
  }
83165
83165
  },
83166
83166
  {
@@ -83986,7 +83986,7 @@ var require_message_io = __commonJS({
83986
83986
  credentialsDetails.maxVersion = "TLSv1.2";
83987
83987
  }
83988
83988
  const secureContext = tls.createSecureContext(credentialsDetails);
83989
- return new Promise((resolve, reject) => {
83989
+ return new Promise((resolve2, reject) => {
83990
83990
  const duplexpair = new _nativeDuplexpair.default();
83991
83991
  const securePair = this.securePair = {
83992
83992
  cleartext: tls.connect({
@@ -84017,7 +84017,7 @@ var require_message_io = __commonJS({
84017
84017
  securePair.cleartext.pipe(this.incomingMessageStream);
84018
84018
  this.outgoingMessageStream.pipe(securePair.cleartext);
84019
84019
  this.tlsNegotiationComplete = true;
84020
- resolve();
84020
+ resolve2();
84021
84021
  };
84022
84022
  const onError = (err) => {
84023
84023
  securePair.encrypted.removeListener("readable", onReadable);
@@ -87821,7 +87821,7 @@ var init_js_joda_esm = __esm({
87821
87821
  this.fieldValues.put(field, value);
87822
87822
  return this;
87823
87823
  };
87824
- _proto.resolve = function resolve(resolverStyle, resolverFields) {
87824
+ _proto.resolve = function resolve2(resolverStyle, resolverFields) {
87825
87825
  if (resolverFields != null) {
87826
87826
  this.fieldValues.retainAll(resolverFields);
87827
87827
  }
@@ -88425,7 +88425,7 @@ var init_js_joda_esm = __esm({
88425
88425
  _proto.displayName = function displayName() {
88426
88426
  return this.toString();
88427
88427
  };
88428
- _proto.resolve = function resolve() {
88428
+ _proto.resolve = function resolve2() {
88429
88429
  return null;
88430
88430
  };
88431
88431
  _proto.name = function name() {
@@ -88483,7 +88483,7 @@ var init_js_joda_esm = __esm({
88483
88483
  this.range().checkValidValue(newValue, this);
88484
88484
  return temporal.with(ChronoField.DAY_OF_YEAR, temporal.getLong(ChronoField.DAY_OF_YEAR) + (newValue - curValue));
88485
88485
  };
88486
- _proto2.resolve = function resolve(fieldValues, partialTemporal, resolverStyle) {
88486
+ _proto2.resolve = function resolve2(fieldValues, partialTemporal, resolverStyle) {
88487
88487
  var yearLong = fieldValues.get(ChronoField.YEAR);
88488
88488
  var qoyLong = fieldValues.get(QUARTER_OF_YEAR);
88489
88489
  if (yearLong == null || qoyLong == null) {
@@ -88594,7 +88594,7 @@ var init_js_joda_esm = __esm({
88594
88594
  this.range().checkValidValue(newValue, this);
88595
88595
  return temporal.plus(MathUtil.safeSubtract(newValue, this.getFrom(temporal)), ChronoUnit.WEEKS);
88596
88596
  };
88597
- _proto4.resolve = function resolve(fieldValues, partialTemporal, resolverStyle) {
88597
+ _proto4.resolve = function resolve2(fieldValues, partialTemporal, resolverStyle) {
88598
88598
  var wbyLong = fieldValues.get(WEEK_BASED_YEAR);
88599
88599
  var dowLong = fieldValues.get(ChronoField.DAY_OF_WEEK);
88600
88600
  if (wbyLong == null || dowLong == null) {
@@ -104156,7 +104156,7 @@ var require_connector = __commonJS({
104156
104156
  throw new _abortError.default();
104157
104157
  }
104158
104158
  const addresses = await lookupAllAddresses(options.host, lookup, signal);
104159
- return await new Promise((resolve, reject) => {
104159
+ return await new Promise((resolve2, reject) => {
104160
104160
  const sockets = new Array(addresses.length);
104161
104161
  const errors = [];
104162
104162
  function onError(err) {
@@ -104180,7 +104180,7 @@ var require_connector = __commonJS({
104180
104180
  socket.removeListener("connect", onConnect);
104181
104181
  socket.destroy();
104182
104182
  }
104183
- resolve(this);
104183
+ resolve2(this);
104184
104184
  }
104185
104185
  const onAbort = () => {
104186
104186
  for (let j = 0; j < sockets.length; j++) {
@@ -104213,7 +104213,7 @@ var require_connector = __commonJS({
104213
104213
  const addresses = await lookupAllAddresses(options.host, lookup, signal);
104214
104214
  for (const address of addresses) {
104215
104215
  try {
104216
- return await new Promise((resolve, reject) => {
104216
+ return await new Promise((resolve2, reject) => {
104217
104217
  const socket = _net.default.connect({
104218
104218
  ...options,
104219
104219
  host: address.address,
@@ -104236,7 +104236,7 @@ var require_connector = __commonJS({
104236
104236
  signal.removeEventListener("abort", onAbort);
104237
104237
  socket.removeListener("error", onError);
104238
104238
  socket.removeListener("connect", onConnect);
104239
- resolve(socket);
104239
+ resolve2(socket);
104240
104240
  };
104241
104241
  signal.addEventListener("abort", onAbort, {
104242
104242
  once: true
@@ -104269,7 +104269,7 @@ var require_connector = __commonJS({
104269
104269
  family: 4
104270
104270
  }];
104271
104271
  } else {
104272
- return await new Promise((resolve, reject) => {
104272
+ return await new Promise((resolve2, reject) => {
104273
104273
  const onAbort = () => {
104274
104274
  reject(new _abortError.default());
104275
104275
  };
@@ -104279,7 +104279,7 @@ var require_connector = __commonJS({
104279
104279
  all: true
104280
104280
  }, (err, addresses) => {
104281
104281
  signal.removeEventListener("abort", onAbort);
104282
- err ? reject(err) : resolve(addresses);
104282
+ err ? reject(err) : resolve2(addresses);
104283
104283
  });
104284
104284
  });
104285
104285
  }
@@ -105947,7 +105947,7 @@ var require_connection = __commonJS({
105947
105947
  }
105948
105948
  wrapWithTls(socket, signal) {
105949
105949
  signal.throwIfAborted();
105950
- return new Promise((resolve, reject) => {
105950
+ return new Promise((resolve2, reject) => {
105951
105951
  const secureContext = tls.createSecureContext(this.secureContextOptions);
105952
105952
  const serverName = !net.isIP(this.config.server) ? this.config.server : "";
105953
105953
  const encryptOptions = {
@@ -105975,7 +105975,7 @@ var require_connection = __commonJS({
105975
105975
  signal.removeEventListener("abort", onAbort);
105976
105976
  encryptsocket.removeListener("error", onError);
105977
105977
  encryptsocket.removeListener("connect", onConnect);
105978
- resolve(encryptsocket);
105978
+ resolve2(encryptsocket);
105979
105979
  };
105980
105980
  signal.addEventListener("abort", onAbort, {
105981
105981
  once: true
@@ -107638,15 +107638,15 @@ var require_connection_pool2 = __commonJS({
107638
107638
  return cfg;
107639
107639
  }
107640
107640
  _poolCreate() {
107641
- return new shared.Promise((resolve, reject) => {
107641
+ return new shared.Promise((resolve2, reject) => {
107642
107642
  const resolveOnce = (v) => {
107643
- resolve(v);
107644
- resolve = reject = () => {
107643
+ resolve2(v);
107644
+ resolve2 = reject = () => {
107645
107645
  };
107646
107646
  };
107647
107647
  const rejectOnce = (e) => {
107648
107648
  reject(e);
107649
- resolve = reject = () => {
107649
+ resolve2 = reject = () => {
107650
107650
  };
107651
107651
  };
107652
107652
  let tedious;
@@ -107690,9 +107690,9 @@ var require_connection_pool2 = __commonJS({
107690
107690
  }
107691
107691
  _poolValidate(tedious) {
107692
107692
  if (tedious && !tedious.closed && !tedious.hasError) {
107693
- return !this.config.validateConnection || new shared.Promise((resolve) => {
107693
+ return !this.config.validateConnection || new shared.Promise((resolve2) => {
107694
107694
  const req = new tds.Request("SELECT 1;", (err) => {
107695
- resolve(!err);
107695
+ resolve2(!err);
107696
107696
  });
107697
107697
  tedious.execSql(req);
107698
107698
  });
@@ -107700,19 +107700,19 @@ var require_connection_pool2 = __commonJS({
107700
107700
  return false;
107701
107701
  }
107702
107702
  _poolDestroy(tedious) {
107703
- return new shared.Promise((resolve, reject) => {
107703
+ return new shared.Promise((resolve2, reject) => {
107704
107704
  if (!tedious) {
107705
- resolve();
107705
+ resolve2();
107706
107706
  return;
107707
107707
  }
107708
107708
  debug("connection(%d): destroying", IDS.get(tedious));
107709
107709
  if (tedious.closed) {
107710
107710
  debug("connection(%d): already closed", IDS.get(tedious));
107711
- resolve();
107711
+ resolve2();
107712
107712
  } else {
107713
107713
  tedious.once("end", () => {
107714
107714
  debug("connection(%d): destroyed", IDS.get(tedious));
107715
- resolve();
107715
+ resolve2();
107716
107716
  });
107717
107717
  tedious.close();
107718
107718
  }
@@ -109037,13 +109037,13 @@ var require_bcrypt = __commonJS({
109037
109037
  throw Error("Illegal callback: " + typeof callback);
109038
109038
  _async(callback);
109039
109039
  } else
109040
- return new Promise(function(resolve, reject) {
109040
+ return new Promise(function(resolve2, reject) {
109041
109041
  _async(function(err, res) {
109042
109042
  if (err) {
109043
109043
  reject(err);
109044
109044
  return;
109045
109045
  }
109046
- resolve(res);
109046
+ resolve2(res);
109047
109047
  });
109048
109048
  });
109049
109049
  };
@@ -109072,13 +109072,13 @@ var require_bcrypt = __commonJS({
109072
109072
  throw Error("Illegal callback: " + typeof callback);
109073
109073
  _async(callback);
109074
109074
  } else
109075
- return new Promise(function(resolve, reject) {
109075
+ return new Promise(function(resolve2, reject) {
109076
109076
  _async(function(err, res) {
109077
109077
  if (err) {
109078
109078
  reject(err);
109079
109079
  return;
109080
109080
  }
109081
- resolve(res);
109081
+ resolve2(res);
109082
109082
  });
109083
109083
  });
109084
109084
  };
@@ -109123,13 +109123,13 @@ var require_bcrypt = __commonJS({
109123
109123
  throw Error("Illegal callback: " + typeof callback);
109124
109124
  _async(callback);
109125
109125
  } else
109126
- return new Promise(function(resolve, reject) {
109126
+ return new Promise(function(resolve2, reject) {
109127
109127
  _async(function(err, res) {
109128
109128
  if (err) {
109129
109129
  reject(err);
109130
109130
  return;
109131
109131
  }
109132
- resolve(res);
109132
+ resolve2(res);
109133
109133
  });
109134
109134
  });
109135
109135
  };
@@ -114266,9 +114266,9 @@ var Prompt = class {
114266
114266
  * @return {Promise}
114267
114267
  */
114268
114268
  run() {
114269
- return new Promise((resolve, reject) => {
114269
+ return new Promise((resolve2, reject) => {
114270
114270
  this._run(
114271
- (value) => resolve(value),
114271
+ (value) => resolve2(value),
114272
114272
  (error) => reject(error)
114273
114273
  );
114274
114274
  });
@@ -121839,10 +121839,10 @@ var Minipass = class extends import_node_events.EventEmitter {
121839
121839
  * Return a void Promise that resolves once the stream ends.
121840
121840
  */
121841
121841
  async promise() {
121842
- return new Promise((resolve, reject) => {
121842
+ return new Promise((resolve2, reject) => {
121843
121843
  this.on(DESTROYED, () => reject(new Error("stream destroyed")));
121844
121844
  this.on("error", (er) => reject(er));
121845
- this.on("end", () => resolve());
121845
+ this.on("end", () => resolve2());
121846
121846
  });
121847
121847
  }
121848
121848
  /**
@@ -121866,7 +121866,7 @@ var Minipass = class extends import_node_events.EventEmitter {
121866
121866
  return Promise.resolve({ done: false, value: res });
121867
121867
  if (this[EOF])
121868
121868
  return stop();
121869
- let resolve;
121869
+ let resolve2;
121870
121870
  let reject;
121871
121871
  const onerr = (er) => {
121872
121872
  this.off("data", ondata);
@@ -121880,19 +121880,19 @@ var Minipass = class extends import_node_events.EventEmitter {
121880
121880
  this.off("end", onend);
121881
121881
  this.off(DESTROYED, ondestroy);
121882
121882
  this.pause();
121883
- resolve({ value, done: !!this[EOF] });
121883
+ resolve2({ value, done: !!this[EOF] });
121884
121884
  };
121885
121885
  const onend = () => {
121886
121886
  this.off("error", onerr);
121887
121887
  this.off("data", ondata);
121888
121888
  this.off(DESTROYED, ondestroy);
121889
121889
  stop();
121890
- resolve({ done: true, value: void 0 });
121890
+ resolve2({ done: true, value: void 0 });
121891
121891
  };
121892
121892
  const ondestroy = () => onerr(new Error("stream destroyed"));
121893
121893
  return new Promise((res2, rej) => {
121894
121894
  reject = rej;
121895
- resolve = res2;
121895
+ resolve2 = res2;
121896
121896
  this.once(DESTROYED, ondestroy);
121897
121897
  this.once("error", onerr);
121898
121898
  this.once("end", onend);
@@ -122864,9 +122864,9 @@ var PathBase = class {
122864
122864
  if (this.#asyncReaddirInFlight) {
122865
122865
  await this.#asyncReaddirInFlight;
122866
122866
  } else {
122867
- let resolve = () => {
122867
+ let resolve2 = () => {
122868
122868
  };
122869
- this.#asyncReaddirInFlight = new Promise((res) => resolve = res);
122869
+ this.#asyncReaddirInFlight = new Promise((res) => resolve2 = res);
122870
122870
  try {
122871
122871
  for (const e of await this.#fs.promises.readdir(fullpath, {
122872
122872
  withFileTypes: true
@@ -122879,7 +122879,7 @@ var PathBase = class {
122879
122879
  children.provisional = 0;
122880
122880
  }
122881
122881
  this.#asyncReaddirInFlight = void 0;
122882
- resolve();
122882
+ resolve2();
122883
122883
  }
122884
122884
  return children.slice(0, children.provisional);
122885
122885
  }
@@ -123109,8 +123109,8 @@ var PathScurryBase = class {
123109
123109
  *
123110
123110
  * @internal
123111
123111
  */
123112
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs20 = defaultFS } = {}) {
123113
- this.#fs = fsFromOption(fs20);
123112
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs21 = defaultFS } = {}) {
123113
+ this.#fs = fsFromOption(fs21);
123114
123114
  if (cwd instanceof URL || cwd.startsWith("file://")) {
123115
123115
  cwd = (0, import_node_url.fileURLToPath)(cwd);
123116
123116
  }
@@ -123668,8 +123668,8 @@ var PathScurryWin32 = class extends PathScurryBase {
123668
123668
  /**
123669
123669
  * @internal
123670
123670
  */
123671
- newRoot(fs20) {
123672
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs20 });
123671
+ newRoot(fs21) {
123672
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs21 });
123673
123673
  }
123674
123674
  /**
123675
123675
  * Return true if the provided path string is an absolute path
@@ -123697,8 +123697,8 @@ var PathScurryPosix = class extends PathScurryBase {
123697
123697
  /**
123698
123698
  * @internal
123699
123699
  */
123700
- newRoot(fs20) {
123701
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs20 });
123700
+ newRoot(fs21) {
123701
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs21 });
123702
123702
  }
123703
123703
  /**
123704
123704
  * Return true if the provided path string is an absolute path
@@ -127973,8 +127973,8 @@ mcpCommand.command("remove").description("Unregister MCP servers from CLI and VS
127973
127973
  });
127974
127974
 
127975
127975
  // src/commands/derive-prd.ts
127976
- var import_fs_extra14 = __toESM(require_lib());
127977
- var import_path15 = require("path");
127976
+ var import_fs_extra15 = __toESM(require_lib());
127977
+ var import_path16 = require("path");
127978
127978
 
127979
127979
  // src/utils/task-generator.ts
127980
127980
  var LAYER_ORDER = [
@@ -128550,12 +128550,221 @@ function getPrdFileCounts(prd) {
128550
128550
  };
128551
128551
  }
128552
128552
 
128553
+ // src/utils/ba-adapter.ts
128554
+ var import_fs_extra14 = __toESM(require_lib());
128555
+ var import_path15 = require("path");
128556
+ function readBaFile(baDir, filename, defaultValue) {
128557
+ const filePath = (0, import_path15.join)(baDir, filename);
128558
+ if (import_fs_extra14.default.existsSync(filePath)) {
128559
+ return import_fs_extra14.default.readJsonSync(filePath);
128560
+ }
128561
+ return defaultValue;
128562
+ }
128563
+ function flatFilesToModuleFeature(baDir) {
128564
+ const index = readBaFile(baDir, "index.json", null);
128565
+ if (!index) {
128566
+ throw new Error(`index.json not found in ${baDir}`);
128567
+ }
128568
+ const entitiesData = readBaFile(baDir, "entities.json", { entities: [] });
128569
+ const usecasesData = readBaFile(baDir, "usecases.json", { useCases: [] });
128570
+ const rulesData = readBaFile(baDir, "rules.json", { rules: [] });
128571
+ const permissionsData = readBaFile(baDir, "permissions.json", { roles: [], permissionPaths: [], matrix: [] });
128572
+ const screensData = readBaFile(baDir, "screens.json", { screens: [] });
128573
+ const handoffData = readBaFile(baDir, "handoff.json", null);
128574
+ const meta = index.metadata;
128575
+ const entities = (entitiesData.entities || []).map((e) => ({
128576
+ name: e.name,
128577
+ description: e.description,
128578
+ type: mapEntityType(e),
128579
+ attributes: (e.attributes || []).map((a) => ({
128580
+ name: a.name,
128581
+ type: a.type,
128582
+ required: a.required ?? false,
128583
+ unique: a.unique ?? false,
128584
+ description: a.description,
128585
+ businessRule: a.businessRule
128586
+ })),
128587
+ relationships: (e.relationships || []).map((r) => ({
128588
+ target: r.target,
128589
+ type: normalizeRelType(r.type),
128590
+ description: r.description,
128591
+ cascadeDelete: r.cascadeDelete
128592
+ }))
128593
+ }));
128594
+ const businessRules = (rulesData.rules || []).map((r) => ({
128595
+ id: r.id,
128596
+ name: r.name,
128597
+ category: mapRuleCategory(r.category),
128598
+ statement: r.statement,
128599
+ priority: mapRulePriority(r.severity),
128600
+ entity: (r.entities || [])[0],
128601
+ validationLogic: r.example,
128602
+ errorMessage: r.errorMessage
128603
+ }));
128604
+ const useCases = (usecasesData.useCases || []).map((uc) => ({
128605
+ id: uc.id,
128606
+ name: uc.name,
128607
+ description: uc.description,
128608
+ primaryActor: uc.actor || "User",
128609
+ permission: guessPermissionFromUc(uc, permissionsData),
128610
+ preconditions: uc.preconditions || [],
128611
+ mainScenario: uc.steps || [],
128612
+ alternativeScenarios: uc.alternative ? [{ name: "Alternative", steps: [uc.alternative] }] : [],
128613
+ postconditions: uc.result ? [uc.result] : [],
128614
+ linkedRules: uc.businessRules || []
128615
+ }));
128616
+ const permissionMatrix = {
128617
+ permissions: (permissionsData.permissionPaths || []).map((p) => ({
128618
+ path: p,
128619
+ description: p
128620
+ })),
128621
+ roleAssignments: (permissionsData.matrix || []).map((m) => ({
128622
+ role: m.role,
128623
+ level: mapRoleLevel(m.role),
128624
+ permissions: (m.permissions || []).map(
128625
+ (perm) => perm.includes(".") ? perm : `${meta.applicationCode}.${meta.moduleCode}.${perm}`
128626
+ )
128627
+ }))
128628
+ };
128629
+ const sections = (screensData.screens || []).map((s) => ({
128630
+ code: s.sectionCode,
128631
+ name: s.sectionLabel || s.sectionCode,
128632
+ route: `/${toKebabCase(meta.moduleCode)}/${s.sectionCode}`,
128633
+ permission: `${meta.applicationCode}.${meta.moduleCode}.Read`,
128634
+ resources: (s.resources || []).map((r) => ({
128635
+ code: r.code,
128636
+ type: r.type,
128637
+ entity: r.entity,
128638
+ permission: r.permission,
128639
+ columns: (r.columns || []).map((c) => c.field)
128640
+ }))
128641
+ }));
128642
+ const moduleFeature = {
128643
+ id: meta.featureId,
128644
+ version: meta.version,
128645
+ status: mapModuleStatus(meta.status),
128646
+ scope: "module",
128647
+ metadata: {
128648
+ createdAt: meta.createdAt,
128649
+ updatedAt: meta.lastModified,
128650
+ application: meta.applicationCode,
128651
+ module: meta.moduleCode,
128652
+ language: "fr",
128653
+ featureDescription: `Module ${meta.moduleCode} of ${meta.applicationCode}`,
128654
+ permissionBase: `${meta.applicationCode}.${meta.moduleCode}`
128655
+ },
128656
+ analysis: {
128657
+ entities,
128658
+ businessRules
128659
+ },
128660
+ specification: {
128661
+ useCases,
128662
+ permissionMatrix,
128663
+ sections
128664
+ },
128665
+ handoff: handoffData ? {
128666
+ complexity: handoffData.complexity,
128667
+ filesToCreate: handoffData.filesToCreate,
128668
+ brToCodeMapping: handoffData.brToCodeMapping,
128669
+ apiEndpointSummary: handoffData.apiEndpointSummary,
128670
+ prdFile: handoffData.prdFile,
128671
+ totalFiles: handoffData.totalFiles,
128672
+ totalTasks: handoffData.totalTasks,
128673
+ handedOffAt: handoffData.handedOffAt
128674
+ } : void 0
128675
+ };
128676
+ return moduleFeature;
128677
+ }
128678
+ function findModuleBaDirs(appIndexPath) {
128679
+ const appIndex = import_fs_extra14.default.readJsonSync(appIndexPath);
128680
+ const appDir = (0, import_path15.join)(appIndexPath, "..");
128681
+ const version2 = appIndex.metadata.version;
128682
+ const appCode = appIndex.metadata.applicationCode;
128683
+ const appBaseDir = (0, import_path15.join)(appDir, "..", "..");
128684
+ const result = [];
128685
+ for (const mod of appIndex.modules || []) {
128686
+ const moduleDir = (0, import_path15.join)(appBaseDir, mod.code, "business-analyse", `v${version2}`);
128687
+ if (import_fs_extra14.default.existsSync((0, import_path15.join)(moduleDir, "index.json"))) {
128688
+ result.push({ moduleCode: mod.code, baDir: moduleDir });
128689
+ }
128690
+ }
128691
+ return result;
128692
+ }
128693
+ function mapEntityType(e) {
128694
+ if (e.type) return e.type;
128695
+ return "root-aggregate";
128696
+ }
128697
+ function normalizeRelType(type) {
128698
+ const map8 = {
128699
+ "OneToMany": "one-to-many",
128700
+ "ManyToOne": "many-to-one",
128701
+ "ManyToMany": "many-to-many",
128702
+ "OneToOne": "one-to-one",
128703
+ "one-to-many": "one-to-many",
128704
+ "many-to-one": "many-to-one",
128705
+ "many-to-many": "many-to-many",
128706
+ "one-to-one": "one-to-one"
128707
+ };
128708
+ return map8[type] || "many-to-one";
128709
+ }
128710
+ function mapRuleCategory(cat) {
128711
+ const map8 = {
128712
+ "validation": "VAL",
128713
+ "VAL": "VAL",
128714
+ "calculation": "CALC",
128715
+ "CALC": "CALC",
128716
+ "workflow": "WF",
128717
+ "WF": "WF",
128718
+ "security": "SEC",
128719
+ "SEC": "SEC",
128720
+ "data": "DATA",
128721
+ "DATA": "DATA"
128722
+ };
128723
+ return map8[cat] || "VAL";
128724
+ }
128725
+ function mapRulePriority(severity) {
128726
+ if (severity === "blocking" || severity === "error") return "must";
128727
+ if (severity === "warning") return "should";
128728
+ return "could";
128729
+ }
128730
+ function guessPermissionFromUc(uc, permissions) {
128731
+ if (uc.preconditions) {
128732
+ for (const pre of uc.preconditions) {
128733
+ const match2 = pre.match(/permission\s+(\S+)/i);
128734
+ if (match2) return match2[1];
128735
+ }
128736
+ }
128737
+ return (permissions.permissionPaths || [])[0] || "Unknown";
128738
+ }
128739
+ function mapRoleLevel(role) {
128740
+ const lower = role.toLowerCase();
128741
+ if (lower.includes("admin")) return "admin";
128742
+ if (lower.includes("manager")) return "manager";
128743
+ if (lower.includes("contributor")) return "contributor";
128744
+ return "viewer";
128745
+ }
128746
+ function mapModuleStatus(status) {
128747
+ const map8 = {
128748
+ "draft": "draft",
128749
+ "analysed": "analysed",
128750
+ "specified": "specified",
128751
+ "approved": "approved",
128752
+ "rejected": "rejected",
128753
+ "consolidated": "consolidated",
128754
+ "handed-off": "handed-off"
128755
+ };
128756
+ return map8[status] || "specified";
128757
+ }
128758
+ function toKebabCase(str) {
128759
+ return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
128760
+ }
128761
+
128553
128762
  // src/commands/derive-prd.ts
128554
128763
  function readSmartStackNamespace() {
128555
128764
  try {
128556
- const configPath = (0, import_path15.join)(process.cwd(), ".smartstack", "config.json");
128557
- if (import_fs_extra14.default.existsSync(configPath)) {
128558
- const config = import_fs_extra14.default.readJsonSync(configPath);
128765
+ const configPath = (0, import_path16.join)(process.cwd(), ".smartstack", "config.json");
128766
+ if (import_fs_extra15.default.existsSync(configPath)) {
128767
+ const config = import_fs_extra15.default.readJsonSync(configPath);
128559
128768
  return config.baseNamespace;
128560
128769
  }
128561
128770
  } catch {
@@ -128563,14 +128772,14 @@ function readSmartStackNamespace() {
128563
128772
  return void 0;
128564
128773
  }
128565
128774
  async function findModuleFeatureFiles(masterPath) {
128566
- const master = await import_fs_extra14.default.readJson(masterPath);
128567
- const masterDir = (0, import_path15.dirname)(masterPath);
128775
+ const master = await import_fs_extra15.default.readJson(masterPath);
128776
+ const masterDir = (0, import_path16.dirname)(masterPath);
128568
128777
  const paths = [];
128569
128778
  if (master.modules) {
128570
128779
  for (const mod of master.modules) {
128571
128780
  if (mod.featureJsonPath) {
128572
- const fullPath = (0, import_path15.join)(masterDir, "..", "..", mod.featureJsonPath);
128573
- if (await import_fs_extra14.default.pathExists(fullPath)) {
128781
+ const fullPath = (0, import_path16.join)(masterDir, "..", "..", mod.featureJsonPath);
128782
+ if (await import_fs_extra15.default.pathExists(fullPath)) {
128574
128783
  paths.push(fullPath);
128575
128784
  }
128576
128785
  }
@@ -128578,18 +128787,57 @@ async function findModuleFeatureFiles(masterPath) {
128578
128787
  }
128579
128788
  return paths;
128580
128789
  }
128581
- var derivePrdCommand = new Command("derive-prd").description("Extract prd.json programmatically from feature.json (no LLM)").option("-f, --feature <path>", "Path to a module-level feature.json").option("-a, --application <path>", "Path to a master application-level feature.json (processes all modules)").option("-o, --output <path>", "Output path for prd.json (default: .ralph/prd-{module}.json)").option("--strict", "Fail on validation warnings").action(async (options) => {
128582
- if (!options.feature && !options.application) {
128583
- console.log(source_default.red("Error: Provide either --feature or --application path"));
128790
+ var derivePrdCommand = new Command("derive-prd").description("Extract prd.json programmatically from feature.json or flat BA files (no LLM)").option("-f, --feature <path>", "Path to a module-level feature.json").option("-a, --application <path>", "Path to a master application-level feature.json (processes all modules)").option("--ba-dir <path>", "Path to a flat-file BA module directory (contains index.json, entities.json, etc.)").option("--ba-app <path>", "Path to an app-level BA index.json (discovers all modules)").option("-o, --output <path>", "Output path for prd.json (default: .ralph/prd-{module}.json)").option("--strict", "Fail on validation warnings").action(async (options) => {
128791
+ if (!options.feature && !options.application && !options.baDir && !options.baApp) {
128792
+ console.log(source_default.red("Error: Provide --feature, --application, --ba-dir, or --ba-app"));
128584
128793
  process.exit(1);
128585
128794
  }
128586
128795
  const namespace = readSmartStackNamespace();
128587
- const ralphDir = (0, import_path15.join)(process.cwd(), ".ralph");
128588
- await import_fs_extra14.default.ensureDir(ralphDir);
128796
+ const ralphDir = (0, import_path16.join)(process.cwd(), ".ralph");
128797
+ await import_fs_extra15.default.ensureDir(ralphDir);
128589
128798
  let featurePaths = [];
128590
- if (options.application) {
128591
- const appPath = (0, import_path15.join)(process.cwd(), options.application);
128592
- if (!await import_fs_extra14.default.pathExists(appPath)) {
128799
+ const flatFileFeatures = /* @__PURE__ */ new Map();
128800
+ if (options.baApp) {
128801
+ const appIndexPath = (0, import_path16.resolve)(process.cwd(), options.baApp);
128802
+ if (!await import_fs_extra15.default.pathExists(appIndexPath)) {
128803
+ console.log(source_default.red(`BA app index.json not found: ${appIndexPath}`));
128804
+ process.exit(1);
128805
+ }
128806
+ const moduleDirs = findModuleBaDirs(appIndexPath);
128807
+ if (moduleDirs.length === 0) {
128808
+ console.log(source_default.red("No module BA directories found from app index.json"));
128809
+ process.exit(1);
128810
+ }
128811
+ for (const { moduleCode, baDir } of moduleDirs) {
128812
+ try {
128813
+ const moduleFeature = flatFilesToModuleFeature(baDir);
128814
+ const syntheticPath = (0, import_path16.join)(baDir, "index.json");
128815
+ flatFileFeatures.set(syntheticPath, moduleFeature);
128816
+ featurePaths.push({ path: syntheticPath, isApplicationMode: true });
128817
+ } catch (err) {
128818
+ console.log(source_default.red(`Failed to load BA flat files for ${moduleCode}: ${err}`));
128819
+ if (options.strict) process.exit(1);
128820
+ }
128821
+ }
128822
+ console.log(source_default.cyan(`Found ${featurePaths.length} module(s) from BA flat files`));
128823
+ } else if (options.baDir) {
128824
+ const baDir = (0, import_path16.resolve)(process.cwd(), options.baDir);
128825
+ if (!await import_fs_extra15.default.pathExists((0, import_path16.join)(baDir, "index.json"))) {
128826
+ console.log(source_default.red(`BA index.json not found in: ${baDir}`));
128827
+ process.exit(1);
128828
+ }
128829
+ try {
128830
+ const moduleFeature = flatFilesToModuleFeature(baDir);
128831
+ const syntheticPath = (0, import_path16.join)(baDir, "index.json");
128832
+ flatFileFeatures.set(syntheticPath, moduleFeature);
128833
+ featurePaths = [{ path: syntheticPath, isApplicationMode: false }];
128834
+ } catch (err) {
128835
+ console.log(source_default.red(`Failed to load BA flat files: ${err}`));
128836
+ process.exit(1);
128837
+ }
128838
+ } else if (options.application) {
128839
+ const appPath = (0, import_path16.join)(process.cwd(), options.application);
128840
+ if (!await import_fs_extra15.default.pathExists(appPath)) {
128593
128841
  console.log(source_default.red(`Application feature.json not found: ${appPath}`));
128594
128842
  process.exit(1);
128595
128843
  }
@@ -128601,8 +128849,8 @@ var derivePrdCommand = new Command("derive-prd").description("Extract prd.json p
128601
128849
  featurePaths = modulePaths.map((p) => ({ path: p, isApplicationMode: true }));
128602
128850
  console.log(source_default.cyan(`Found ${featurePaths.length} module(s) to process`));
128603
128851
  } else if (options.feature) {
128604
- const featurePath = (0, import_path15.join)(process.cwd(), options.feature);
128605
- if (!await import_fs_extra14.default.pathExists(featurePath)) {
128852
+ const featurePath = (0, import_path16.join)(process.cwd(), options.feature);
128853
+ if (!await import_fs_extra15.default.pathExists(featurePath)) {
128606
128854
  console.log(source_default.red(`Feature.json not found: ${featurePath}`));
128607
128855
  process.exit(1);
128608
128856
  }
@@ -128611,7 +128859,7 @@ var derivePrdCommand = new Command("derive-prd").description("Extract prd.json p
128611
128859
  let totalGenerated = 0;
128612
128860
  let totalErrors = 0;
128613
128861
  for (const entry of featurePaths) {
128614
- const featureJson = await import_fs_extra14.default.readJson(entry.path);
128862
+ const featureJson = flatFileFeatures.get(entry.path) ?? await import_fs_extra15.default.readJson(entry.path);
128615
128863
  const moduleName = featureJson.metadata?.module ?? "unknown";
128616
128864
  console.log(source_default.cyan(`
128617
128865
  Processing module: ${source_default.bold(moduleName)}`));
@@ -128629,20 +128877,20 @@ Processing module: ${source_default.bold(moduleName)}`));
128629
128877
  }
128630
128878
  let cliVersion = "unknown";
128631
128879
  try {
128632
- const pkg2 = import_fs_extra14.default.readJsonSync((0, import_path15.join)(__dirname, "..", "..", "package.json"));
128880
+ const pkg2 = import_fs_extra15.default.readJsonSync((0, import_path16.join)(__dirname, "..", "..", "package.json"));
128633
128881
  cliVersion = pkg2.version ?? "unknown";
128634
128882
  } catch {
128635
128883
  }
128636
- const relativePath = (0, import_path15.relative)(process.cwd(), entry.path);
128884
+ const relativePath = (0, import_path16.relative)(process.cwd(), entry.path);
128637
128885
  const unified = extractUnifiedPrd(featureJson, relativePath, namespace, cliVersion);
128638
128886
  const prd = extractPrd(featureJson, relativePath, namespace);
128639
128887
  let outputPath;
128640
128888
  if (options.output && !entry.isApplicationMode) {
128641
- outputPath = (0, import_path15.join)(process.cwd(), options.output);
128889
+ outputPath = (0, import_path16.join)(process.cwd(), options.output);
128642
128890
  } else {
128643
- outputPath = (0, import_path15.join)(ralphDir, `prd-${moduleName}.json`);
128891
+ outputPath = (0, import_path16.join)(ralphDir, `prd-${moduleName}.json`);
128644
128892
  }
128645
- await import_fs_extra14.default.writeJson(outputPath, unified, { spaces: 2 });
128893
+ await import_fs_extra15.default.writeJson(outputPath, unified, { spaces: 2 });
128646
128894
  totalGenerated++;
128647
128895
  const completenessWarnings = validatePrdCompleteness(prd, featureJson);
128648
128896
  if (completenessWarnings.length > 0) {
@@ -128663,7 +128911,7 @@ Processing module: ${source_default.bold(moduleName)}`));
128663
128911
  console.log(source_default.yellow(` - ${te}`));
128664
128912
  }
128665
128913
  }
128666
- const relOutput = (0, import_path15.relative)(process.cwd(), outputPath);
128914
+ const relOutput = (0, import_path16.relative)(process.cwd(), outputPath);
128667
128915
  console.log(source_default.green(` Generated: ${relOutput} (unified v3)`));
128668
128916
  console.log(source_default.gray(` UCs: ${prd.requirements.useCases.length} | FRs: ${prd.requirements.functionalRequirements.length} | BRs: ${prd.businessRules.length}`));
128669
128917
  console.log(source_default.gray(` Endpoints: ${prd.architecture.apiEndpoints.length} | Sections: ${prd.architecture.sections.length}`));
@@ -128693,7 +128941,7 @@ var import_cli_table36 = __toESM(require_cli_table3());
128693
128941
  // src/lib/wsl-provisioner.ts
128694
128942
  var import_child_process11 = require("child_process");
128695
128943
  var import_fs5 = require("fs");
128696
- var import_path16 = require("path");
128944
+ var import_path17 = require("path");
128697
128945
  function wslExec(command, timeout = 1e4) {
128698
128946
  try {
128699
128947
  const output = (0, import_child_process11.execSync)(`wsl -e bash -c "${command.replace(/"/g, '\\"')}"`, {
@@ -129022,11 +129270,11 @@ async function installWindowsTerminal() {
129022
129270
  function getWtSettingsPath() {
129023
129271
  const localAppData = process.env.LOCALAPPDATA;
129024
129272
  if (!localAppData) return null;
129025
- const standardPath = (0, import_path16.join)(localAppData, "Packages", "Microsoft.WindowsTerminal_8wekyb3d8bbwe", "LocalState", "settings.json");
129273
+ const standardPath = (0, import_path17.join)(localAppData, "Packages", "Microsoft.WindowsTerminal_8wekyb3d8bbwe", "LocalState", "settings.json");
129026
129274
  if ((0, import_fs5.existsSync)(standardPath)) return standardPath;
129027
- const previewPath = (0, import_path16.join)(localAppData, "Packages", "Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe", "LocalState", "settings.json");
129275
+ const previewPath = (0, import_path17.join)(localAppData, "Packages", "Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe", "LocalState", "settings.json");
129028
129276
  if ((0, import_fs5.existsSync)(previewPath)) return previewPath;
129029
- const unpackagedPath = (0, import_path16.join)(localAppData, "Microsoft", "Windows Terminal", "settings.json");
129277
+ const unpackagedPath = (0, import_path17.join)(localAppData, "Microsoft", "Windows Terminal", "settings.json");
129030
129278
  if ((0, import_fs5.existsSync)(unpackagedPath)) return unpackagedPath;
129031
129279
  return null;
129032
129280
  }
@@ -129339,8 +129587,8 @@ tmuxCommand.command("status").description("Show WSL development environment stat
129339
129587
 
129340
129588
  // src/index.ts
129341
129589
  var import_fs6 = require("fs");
129342
- var import_path17 = require("path");
129343
- var pkg = JSON.parse((0, import_fs6.readFileSync)((0, import_path17.join)(__dirname, "..", "package.json"), "utf-8"));
129590
+ var import_path18 = require("path");
129591
+ var pkg = JSON.parse((0, import_fs6.readFileSync)((0, import_path18.join)(__dirname, "..", "package.json"), "utf-8"));
129344
129592
  var LICENSE_FREE_COMMANDS = ["license", "doctor", "help", "--help", "-h", "--version", "-v"];
129345
129593
  async function main2() {
129346
129594
  const program2 = new Command();