xtrm-tools 2.1.10 → 2.1.11

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.
@@ -1202,8 +1202,8 @@ var require_command = __commonJS({
1202
1202
  "use strict";
1203
1203
  var EventEmitter2 = require("events").EventEmitter;
1204
1204
  var childProcess = require("child_process");
1205
- var path16 = require("path");
1206
- var fs17 = require("fs");
1205
+ var path17 = require("path");
1206
+ var fs18 = require("fs");
1207
1207
  var process19 = require("process");
1208
1208
  var { Argument: Argument2, humanReadableArgName } = require_argument();
1209
1209
  var { CommanderError: CommanderError2 } = require_error();
@@ -2197,7 +2197,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2197
2197
  * @param {string} subcommandName
2198
2198
  */
2199
2199
  _checkForMissingExecutable(executableFile, executableDir, subcommandName) {
2200
- if (fs17.existsSync(executableFile)) return;
2200
+ if (fs18.existsSync(executableFile)) return;
2201
2201
  const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
2202
2202
  const executableMissing = `'${executableFile}' does not exist
2203
2203
  - if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
@@ -2215,11 +2215,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
2215
2215
  let launchWithNode = false;
2216
2216
  const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
2217
2217
  function findFile(baseDir, baseName) {
2218
- const localBin = path16.resolve(baseDir, baseName);
2219
- if (fs17.existsSync(localBin)) return localBin;
2220
- if (sourceExt.includes(path16.extname(baseName))) return void 0;
2218
+ const localBin = path17.resolve(baseDir, baseName);
2219
+ if (fs18.existsSync(localBin)) return localBin;
2220
+ if (sourceExt.includes(path17.extname(baseName))) return void 0;
2221
2221
  const foundExt = sourceExt.find(
2222
- (ext) => fs17.existsSync(`${localBin}${ext}`)
2222
+ (ext) => fs18.existsSync(`${localBin}${ext}`)
2223
2223
  );
2224
2224
  if (foundExt) return `${localBin}${foundExt}`;
2225
2225
  return void 0;
@@ -2231,21 +2231,21 @@ Expecting one of '${allowedValues.join("', '")}'`);
2231
2231
  if (this._scriptPath) {
2232
2232
  let resolvedScriptPath;
2233
2233
  try {
2234
- resolvedScriptPath = fs17.realpathSync(this._scriptPath);
2234
+ resolvedScriptPath = fs18.realpathSync(this._scriptPath);
2235
2235
  } catch {
2236
2236
  resolvedScriptPath = this._scriptPath;
2237
2237
  }
2238
- executableDir = path16.resolve(
2239
- path16.dirname(resolvedScriptPath),
2238
+ executableDir = path17.resolve(
2239
+ path17.dirname(resolvedScriptPath),
2240
2240
  executableDir
2241
2241
  );
2242
2242
  }
2243
2243
  if (executableDir) {
2244
2244
  let localFile = findFile(executableDir, executableFile);
2245
2245
  if (!localFile && !subcommand._executableFile && this._scriptPath) {
2246
- const legacyName = path16.basename(
2246
+ const legacyName = path17.basename(
2247
2247
  this._scriptPath,
2248
- path16.extname(this._scriptPath)
2248
+ path17.extname(this._scriptPath)
2249
2249
  );
2250
2250
  if (legacyName !== this._name) {
2251
2251
  localFile = findFile(
@@ -2256,7 +2256,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2256
2256
  }
2257
2257
  executableFile = localFile || executableFile;
2258
2258
  }
2259
- launchWithNode = sourceExt.includes(path16.extname(executableFile));
2259
+ launchWithNode = sourceExt.includes(path17.extname(executableFile));
2260
2260
  let proc;
2261
2261
  if (process19.platform !== "win32") {
2262
2262
  if (launchWithNode) {
@@ -3171,7 +3171,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3171
3171
  * @return {Command}
3172
3172
  */
3173
3173
  nameFromFilename(filename) {
3174
- this._name = path16.basename(filename, path16.extname(filename));
3174
+ this._name = path17.basename(filename, path17.extname(filename));
3175
3175
  return this;
3176
3176
  }
3177
3177
  /**
@@ -3185,9 +3185,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
3185
3185
  * @param {string} [path]
3186
3186
  * @return {(string|null|Command)}
3187
3187
  */
3188
- executableDir(path17) {
3189
- if (path17 === void 0) return this._executableDir;
3190
- this._executableDir = path17;
3188
+ executableDir(path18) {
3189
+ if (path18 === void 0) return this._executableDir;
3190
+ this._executableDir = path18;
3191
3191
  return this;
3192
3192
  }
3193
3193
  /**
@@ -6053,7 +6053,7 @@ var require_dist = __commonJS({
6053
6053
  });
6054
6054
  };
6055
6055
  }
6056
- var prompts4 = require_prompts();
6056
+ var prompts5 = require_prompts();
6057
6057
  var passOn = ["suggest", "format", "onState", "validate", "onRender", "type"];
6058
6058
  var noop = () => {
6059
6059
  };
@@ -6104,7 +6104,7 @@ var require_dist = __commonJS({
6104
6104
  var _question2 = question;
6105
6105
  name = _question2.name;
6106
6106
  type = _question2.type;
6107
- if (prompts4[type] === void 0) {
6107
+ if (prompts5[type] === void 0) {
6108
6108
  throw new Error(`prompt type (${type}) is not defined`);
6109
6109
  }
6110
6110
  if (override2[question.name] !== void 0) {
@@ -6115,7 +6115,7 @@ var require_dist = __commonJS({
6115
6115
  }
6116
6116
  }
6117
6117
  try {
6118
- answer = prompt._injected ? getInjectedAnswer(prompt._injected, question.initial) : yield prompts4[type](question);
6118
+ answer = prompt._injected ? getInjectedAnswer(prompt._injected, question.initial) : yield prompts5[type](question);
6119
6119
  answers[name] = answer = yield getFormattedAnswer(question, answer, true);
6120
6120
  quit = yield onSubmit(question, answer, answers);
6121
6121
  } catch (err) {
@@ -6147,7 +6147,7 @@ var require_dist = __commonJS({
6147
6147
  }
6148
6148
  module2.exports = Object.assign(prompt, {
6149
6149
  prompt,
6150
- prompts: prompts4,
6150
+ prompts: prompts5,
6151
6151
  inject,
6152
6152
  override
6153
6153
  });
@@ -8234,7 +8234,7 @@ var require_prompts2 = __commonJS({
8234
8234
  var require_lib = __commonJS({
8235
8235
  "../node_modules/prompts/lib/index.js"(exports2, module2) {
8236
8236
  "use strict";
8237
- var prompts4 = require_prompts2();
8237
+ var prompts5 = require_prompts2();
8238
8238
  var passOn = ["suggest", "format", "onState", "validate", "onRender", "type"];
8239
8239
  var noop = () => {
8240
8240
  };
@@ -8266,7 +8266,7 @@ var require_lib = __commonJS({
8266
8266
  throw new Error("prompt message is required");
8267
8267
  }
8268
8268
  ({ name, type } = question);
8269
- if (prompts4[type] === void 0) {
8269
+ if (prompts5[type] === void 0) {
8270
8270
  throw new Error(`prompt type (${type}) is not defined`);
8271
8271
  }
8272
8272
  if (override2[question.name] !== void 0) {
@@ -8277,7 +8277,7 @@ var require_lib = __commonJS({
8277
8277
  }
8278
8278
  }
8279
8279
  try {
8280
- answer = prompt._injected ? getInjectedAnswer(prompt._injected, question.initial) : await prompts4[type](question);
8280
+ answer = prompt._injected ? getInjectedAnswer(prompt._injected, question.initial) : await prompts5[type](question);
8281
8281
  answers[name] = answer = await getFormattedAnswer(question, answer, true);
8282
8282
  quit = await onSubmit(question, answer, answers);
8283
8283
  } catch (err) {
@@ -8300,7 +8300,7 @@ var require_lib = __commonJS({
8300
8300
  function override(answers) {
8301
8301
  prompt._override = Object.assign({}, answers);
8302
8302
  }
8303
- module2.exports = Object.assign(prompt, { prompt, prompts: prompts4, inject, override });
8303
+ module2.exports = Object.assign(prompt, { prompt, prompts: prompts5, inject, override });
8304
8304
  }
8305
8305
  });
8306
8306
 
@@ -11639,54 +11639,54 @@ var require_polyfills = __commonJS({
11639
11639
  }
11640
11640
  var chdir;
11641
11641
  module2.exports = patch;
11642
- function patch(fs17) {
11642
+ function patch(fs18) {
11643
11643
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
11644
- patchLchmod(fs17);
11645
- }
11646
- if (!fs17.lutimes) {
11647
- patchLutimes(fs17);
11648
- }
11649
- fs17.chown = chownFix(fs17.chown);
11650
- fs17.fchown = chownFix(fs17.fchown);
11651
- fs17.lchown = chownFix(fs17.lchown);
11652
- fs17.chmod = chmodFix(fs17.chmod);
11653
- fs17.fchmod = chmodFix(fs17.fchmod);
11654
- fs17.lchmod = chmodFix(fs17.lchmod);
11655
- fs17.chownSync = chownFixSync(fs17.chownSync);
11656
- fs17.fchownSync = chownFixSync(fs17.fchownSync);
11657
- fs17.lchownSync = chownFixSync(fs17.lchownSync);
11658
- fs17.chmodSync = chmodFixSync(fs17.chmodSync);
11659
- fs17.fchmodSync = chmodFixSync(fs17.fchmodSync);
11660
- fs17.lchmodSync = chmodFixSync(fs17.lchmodSync);
11661
- fs17.stat = statFix(fs17.stat);
11662
- fs17.fstat = statFix(fs17.fstat);
11663
- fs17.lstat = statFix(fs17.lstat);
11664
- fs17.statSync = statFixSync(fs17.statSync);
11665
- fs17.fstatSync = statFixSync(fs17.fstatSync);
11666
- fs17.lstatSync = statFixSync(fs17.lstatSync);
11667
- if (fs17.chmod && !fs17.lchmod) {
11668
- fs17.lchmod = function(path16, mode, cb) {
11644
+ patchLchmod(fs18);
11645
+ }
11646
+ if (!fs18.lutimes) {
11647
+ patchLutimes(fs18);
11648
+ }
11649
+ fs18.chown = chownFix(fs18.chown);
11650
+ fs18.fchown = chownFix(fs18.fchown);
11651
+ fs18.lchown = chownFix(fs18.lchown);
11652
+ fs18.chmod = chmodFix(fs18.chmod);
11653
+ fs18.fchmod = chmodFix(fs18.fchmod);
11654
+ fs18.lchmod = chmodFix(fs18.lchmod);
11655
+ fs18.chownSync = chownFixSync(fs18.chownSync);
11656
+ fs18.fchownSync = chownFixSync(fs18.fchownSync);
11657
+ fs18.lchownSync = chownFixSync(fs18.lchownSync);
11658
+ fs18.chmodSync = chmodFixSync(fs18.chmodSync);
11659
+ fs18.fchmodSync = chmodFixSync(fs18.fchmodSync);
11660
+ fs18.lchmodSync = chmodFixSync(fs18.lchmodSync);
11661
+ fs18.stat = statFix(fs18.stat);
11662
+ fs18.fstat = statFix(fs18.fstat);
11663
+ fs18.lstat = statFix(fs18.lstat);
11664
+ fs18.statSync = statFixSync(fs18.statSync);
11665
+ fs18.fstatSync = statFixSync(fs18.fstatSync);
11666
+ fs18.lstatSync = statFixSync(fs18.lstatSync);
11667
+ if (fs18.chmod && !fs18.lchmod) {
11668
+ fs18.lchmod = function(path17, mode, cb) {
11669
11669
  if (cb) process.nextTick(cb);
11670
11670
  };
11671
- fs17.lchmodSync = function() {
11671
+ fs18.lchmodSync = function() {
11672
11672
  };
11673
11673
  }
11674
- if (fs17.chown && !fs17.lchown) {
11675
- fs17.lchown = function(path16, uid, gid, cb) {
11674
+ if (fs18.chown && !fs18.lchown) {
11675
+ fs18.lchown = function(path17, uid, gid, cb) {
11676
11676
  if (cb) process.nextTick(cb);
11677
11677
  };
11678
- fs17.lchownSync = function() {
11678
+ fs18.lchownSync = function() {
11679
11679
  };
11680
11680
  }
11681
11681
  if (platform2 === "win32") {
11682
- fs17.rename = typeof fs17.rename !== "function" ? fs17.rename : (function(fs$rename) {
11682
+ fs18.rename = typeof fs18.rename !== "function" ? fs18.rename : (function(fs$rename) {
11683
11683
  function rename(from, to, cb) {
11684
11684
  var start = Date.now();
11685
11685
  var backoff = 0;
11686
11686
  fs$rename(from, to, function CB(er) {
11687
11687
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
11688
11688
  setTimeout(function() {
11689
- fs17.stat(to, function(stater, st) {
11689
+ fs18.stat(to, function(stater, st) {
11690
11690
  if (stater && stater.code === "ENOENT")
11691
11691
  fs$rename(from, to, CB);
11692
11692
  else
@@ -11702,9 +11702,9 @@ var require_polyfills = __commonJS({
11702
11702
  }
11703
11703
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
11704
11704
  return rename;
11705
- })(fs17.rename);
11705
+ })(fs18.rename);
11706
11706
  }
11707
- fs17.read = typeof fs17.read !== "function" ? fs17.read : (function(fs$read) {
11707
+ fs18.read = typeof fs18.read !== "function" ? fs18.read : (function(fs$read) {
11708
11708
  function read(fd, buffer, offset, length, position, callback_) {
11709
11709
  var callback;
11710
11710
  if (callback_ && typeof callback_ === "function") {
@@ -11712,22 +11712,22 @@ var require_polyfills = __commonJS({
11712
11712
  callback = function(er, _, __) {
11713
11713
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
11714
11714
  eagCounter++;
11715
- return fs$read.call(fs17, fd, buffer, offset, length, position, callback);
11715
+ return fs$read.call(fs18, fd, buffer, offset, length, position, callback);
11716
11716
  }
11717
11717
  callback_.apply(this, arguments);
11718
11718
  };
11719
11719
  }
11720
- return fs$read.call(fs17, fd, buffer, offset, length, position, callback);
11720
+ return fs$read.call(fs18, fd, buffer, offset, length, position, callback);
11721
11721
  }
11722
11722
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
11723
11723
  return read;
11724
- })(fs17.read);
11725
- fs17.readSync = typeof fs17.readSync !== "function" ? fs17.readSync : /* @__PURE__ */ (function(fs$readSync) {
11724
+ })(fs18.read);
11725
+ fs18.readSync = typeof fs18.readSync !== "function" ? fs18.readSync : /* @__PURE__ */ (function(fs$readSync) {
11726
11726
  return function(fd, buffer, offset, length, position) {
11727
11727
  var eagCounter = 0;
11728
11728
  while (true) {
11729
11729
  try {
11730
- return fs$readSync.call(fs17, fd, buffer, offset, length, position);
11730
+ return fs$readSync.call(fs18, fd, buffer, offset, length, position);
11731
11731
  } catch (er) {
11732
11732
  if (er.code === "EAGAIN" && eagCounter < 10) {
11733
11733
  eagCounter++;
@@ -11737,11 +11737,11 @@ var require_polyfills = __commonJS({
11737
11737
  }
11738
11738
  }
11739
11739
  };
11740
- })(fs17.readSync);
11741
- function patchLchmod(fs18) {
11742
- fs18.lchmod = function(path16, mode, callback) {
11743
- fs18.open(
11744
- path16,
11740
+ })(fs18.readSync);
11741
+ function patchLchmod(fs19) {
11742
+ fs19.lchmod = function(path17, mode, callback) {
11743
+ fs19.open(
11744
+ path17,
11745
11745
  constants.O_WRONLY | constants.O_SYMLINK,
11746
11746
  mode,
11747
11747
  function(err, fd) {
@@ -11749,80 +11749,80 @@ var require_polyfills = __commonJS({
11749
11749
  if (callback) callback(err);
11750
11750
  return;
11751
11751
  }
11752
- fs18.fchmod(fd, mode, function(err2) {
11753
- fs18.close(fd, function(err22) {
11752
+ fs19.fchmod(fd, mode, function(err2) {
11753
+ fs19.close(fd, function(err22) {
11754
11754
  if (callback) callback(err2 || err22);
11755
11755
  });
11756
11756
  });
11757
11757
  }
11758
11758
  );
11759
11759
  };
11760
- fs18.lchmodSync = function(path16, mode) {
11761
- var fd = fs18.openSync(path16, constants.O_WRONLY | constants.O_SYMLINK, mode);
11760
+ fs19.lchmodSync = function(path17, mode) {
11761
+ var fd = fs19.openSync(path17, constants.O_WRONLY | constants.O_SYMLINK, mode);
11762
11762
  var threw = true;
11763
11763
  var ret;
11764
11764
  try {
11765
- ret = fs18.fchmodSync(fd, mode);
11765
+ ret = fs19.fchmodSync(fd, mode);
11766
11766
  threw = false;
11767
11767
  } finally {
11768
11768
  if (threw) {
11769
11769
  try {
11770
- fs18.closeSync(fd);
11770
+ fs19.closeSync(fd);
11771
11771
  } catch (er) {
11772
11772
  }
11773
11773
  } else {
11774
- fs18.closeSync(fd);
11774
+ fs19.closeSync(fd);
11775
11775
  }
11776
11776
  }
11777
11777
  return ret;
11778
11778
  };
11779
11779
  }
11780
- function patchLutimes(fs18) {
11781
- if (constants.hasOwnProperty("O_SYMLINK") && fs18.futimes) {
11782
- fs18.lutimes = function(path16, at, mt, cb) {
11783
- fs18.open(path16, constants.O_SYMLINK, function(er, fd) {
11780
+ function patchLutimes(fs19) {
11781
+ if (constants.hasOwnProperty("O_SYMLINK") && fs19.futimes) {
11782
+ fs19.lutimes = function(path17, at, mt, cb) {
11783
+ fs19.open(path17, constants.O_SYMLINK, function(er, fd) {
11784
11784
  if (er) {
11785
11785
  if (cb) cb(er);
11786
11786
  return;
11787
11787
  }
11788
- fs18.futimes(fd, at, mt, function(er2) {
11789
- fs18.close(fd, function(er22) {
11788
+ fs19.futimes(fd, at, mt, function(er2) {
11789
+ fs19.close(fd, function(er22) {
11790
11790
  if (cb) cb(er2 || er22);
11791
11791
  });
11792
11792
  });
11793
11793
  });
11794
11794
  };
11795
- fs18.lutimesSync = function(path16, at, mt) {
11796
- var fd = fs18.openSync(path16, constants.O_SYMLINK);
11795
+ fs19.lutimesSync = function(path17, at, mt) {
11796
+ var fd = fs19.openSync(path17, constants.O_SYMLINK);
11797
11797
  var ret;
11798
11798
  var threw = true;
11799
11799
  try {
11800
- ret = fs18.futimesSync(fd, at, mt);
11800
+ ret = fs19.futimesSync(fd, at, mt);
11801
11801
  threw = false;
11802
11802
  } finally {
11803
11803
  if (threw) {
11804
11804
  try {
11805
- fs18.closeSync(fd);
11805
+ fs19.closeSync(fd);
11806
11806
  } catch (er) {
11807
11807
  }
11808
11808
  } else {
11809
- fs18.closeSync(fd);
11809
+ fs19.closeSync(fd);
11810
11810
  }
11811
11811
  }
11812
11812
  return ret;
11813
11813
  };
11814
- } else if (fs18.futimes) {
11815
- fs18.lutimes = function(_a2, _b, _c, cb) {
11814
+ } else if (fs19.futimes) {
11815
+ fs19.lutimes = function(_a2, _b, _c, cb) {
11816
11816
  if (cb) process.nextTick(cb);
11817
11817
  };
11818
- fs18.lutimesSync = function() {
11818
+ fs19.lutimesSync = function() {
11819
11819
  };
11820
11820
  }
11821
11821
  }
11822
11822
  function chmodFix(orig) {
11823
11823
  if (!orig) return orig;
11824
11824
  return function(target, mode, cb) {
11825
- return orig.call(fs17, target, mode, function(er) {
11825
+ return orig.call(fs18, target, mode, function(er) {
11826
11826
  if (chownErOk(er)) er = null;
11827
11827
  if (cb) cb.apply(this, arguments);
11828
11828
  });
@@ -11832,7 +11832,7 @@ var require_polyfills = __commonJS({
11832
11832
  if (!orig) return orig;
11833
11833
  return function(target, mode) {
11834
11834
  try {
11835
- return orig.call(fs17, target, mode);
11835
+ return orig.call(fs18, target, mode);
11836
11836
  } catch (er) {
11837
11837
  if (!chownErOk(er)) throw er;
11838
11838
  }
@@ -11841,7 +11841,7 @@ var require_polyfills = __commonJS({
11841
11841
  function chownFix(orig) {
11842
11842
  if (!orig) return orig;
11843
11843
  return function(target, uid, gid, cb) {
11844
- return orig.call(fs17, target, uid, gid, function(er) {
11844
+ return orig.call(fs18, target, uid, gid, function(er) {
11845
11845
  if (chownErOk(er)) er = null;
11846
11846
  if (cb) cb.apply(this, arguments);
11847
11847
  });
@@ -11851,7 +11851,7 @@ var require_polyfills = __commonJS({
11851
11851
  if (!orig) return orig;
11852
11852
  return function(target, uid, gid) {
11853
11853
  try {
11854
- return orig.call(fs17, target, uid, gid);
11854
+ return orig.call(fs18, target, uid, gid);
11855
11855
  } catch (er) {
11856
11856
  if (!chownErOk(er)) throw er;
11857
11857
  }
@@ -11871,13 +11871,13 @@ var require_polyfills = __commonJS({
11871
11871
  }
11872
11872
  if (cb) cb.apply(this, arguments);
11873
11873
  }
11874
- return options ? orig.call(fs17, target, options, callback) : orig.call(fs17, target, callback);
11874
+ return options ? orig.call(fs18, target, options, callback) : orig.call(fs18, target, callback);
11875
11875
  };
11876
11876
  }
11877
11877
  function statFixSync(orig) {
11878
11878
  if (!orig) return orig;
11879
11879
  return function(target, options) {
11880
- var stats = options ? orig.call(fs17, target, options) : orig.call(fs17, target);
11880
+ var stats = options ? orig.call(fs18, target, options) : orig.call(fs18, target);
11881
11881
  if (stats) {
11882
11882
  if (stats.uid < 0) stats.uid += 4294967296;
11883
11883
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -11907,16 +11907,16 @@ var require_legacy_streams = __commonJS({
11907
11907
  "use strict";
11908
11908
  var Stream = require("stream").Stream;
11909
11909
  module2.exports = legacy;
11910
- function legacy(fs17) {
11910
+ function legacy(fs18) {
11911
11911
  return {
11912
11912
  ReadStream,
11913
11913
  WriteStream
11914
11914
  };
11915
- function ReadStream(path16, options) {
11916
- if (!(this instanceof ReadStream)) return new ReadStream(path16, options);
11915
+ function ReadStream(path17, options) {
11916
+ if (!(this instanceof ReadStream)) return new ReadStream(path17, options);
11917
11917
  Stream.call(this);
11918
11918
  var self = this;
11919
- this.path = path16;
11919
+ this.path = path17;
11920
11920
  this.fd = null;
11921
11921
  this.readable = true;
11922
11922
  this.paused = false;
@@ -11950,7 +11950,7 @@ var require_legacy_streams = __commonJS({
11950
11950
  });
11951
11951
  return;
11952
11952
  }
11953
- fs17.open(this.path, this.flags, this.mode, function(err, fd) {
11953
+ fs18.open(this.path, this.flags, this.mode, function(err, fd) {
11954
11954
  if (err) {
11955
11955
  self.emit("error", err);
11956
11956
  self.readable = false;
@@ -11961,10 +11961,10 @@ var require_legacy_streams = __commonJS({
11961
11961
  self._read();
11962
11962
  });
11963
11963
  }
11964
- function WriteStream(path16, options) {
11965
- if (!(this instanceof WriteStream)) return new WriteStream(path16, options);
11964
+ function WriteStream(path17, options) {
11965
+ if (!(this instanceof WriteStream)) return new WriteStream(path17, options);
11966
11966
  Stream.call(this);
11967
- this.path = path16;
11967
+ this.path = path17;
11968
11968
  this.fd = null;
11969
11969
  this.writable = true;
11970
11970
  this.flags = "w";
@@ -11989,7 +11989,7 @@ var require_legacy_streams = __commonJS({
11989
11989
  this.busy = false;
11990
11990
  this._queue = [];
11991
11991
  if (this.fd === null) {
11992
- this._open = fs17.open;
11992
+ this._open = fs18.open;
11993
11993
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
11994
11994
  this.flush();
11995
11995
  }
@@ -12025,7 +12025,7 @@ var require_clone = __commonJS({
12025
12025
  var require_graceful_fs = __commonJS({
12026
12026
  "../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
12027
12027
  "use strict";
12028
- var fs17 = require("fs");
12028
+ var fs18 = require("fs");
12029
12029
  var polyfills = require_polyfills();
12030
12030
  var legacy = require_legacy_streams();
12031
12031
  var clone3 = require_clone();
@@ -12057,12 +12057,12 @@ var require_graceful_fs = __commonJS({
12057
12057
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
12058
12058
  console.error(m);
12059
12059
  };
12060
- if (!fs17[gracefulQueue]) {
12060
+ if (!fs18[gracefulQueue]) {
12061
12061
  queue = global[gracefulQueue] || [];
12062
- publishQueue(fs17, queue);
12063
- fs17.close = (function(fs$close) {
12062
+ publishQueue(fs18, queue);
12063
+ fs18.close = (function(fs$close) {
12064
12064
  function close(fd, cb) {
12065
- return fs$close.call(fs17, fd, function(err) {
12065
+ return fs$close.call(fs18, fd, function(err) {
12066
12066
  if (!err) {
12067
12067
  resetQueue();
12068
12068
  }
@@ -12074,48 +12074,48 @@ var require_graceful_fs = __commonJS({
12074
12074
  value: fs$close
12075
12075
  });
12076
12076
  return close;
12077
- })(fs17.close);
12078
- fs17.closeSync = (function(fs$closeSync) {
12077
+ })(fs18.close);
12078
+ fs18.closeSync = (function(fs$closeSync) {
12079
12079
  function closeSync(fd) {
12080
- fs$closeSync.apply(fs17, arguments);
12080
+ fs$closeSync.apply(fs18, arguments);
12081
12081
  resetQueue();
12082
12082
  }
12083
12083
  Object.defineProperty(closeSync, previousSymbol, {
12084
12084
  value: fs$closeSync
12085
12085
  });
12086
12086
  return closeSync;
12087
- })(fs17.closeSync);
12087
+ })(fs18.closeSync);
12088
12088
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
12089
12089
  process.on("exit", function() {
12090
- debug(fs17[gracefulQueue]);
12091
- require("assert").equal(fs17[gracefulQueue].length, 0);
12090
+ debug(fs18[gracefulQueue]);
12091
+ require("assert").equal(fs18[gracefulQueue].length, 0);
12092
12092
  });
12093
12093
  }
12094
12094
  }
12095
12095
  var queue;
12096
12096
  if (!global[gracefulQueue]) {
12097
- publishQueue(global, fs17[gracefulQueue]);
12098
- }
12099
- module2.exports = patch(clone3(fs17));
12100
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs17.__patched) {
12101
- module2.exports = patch(fs17);
12102
- fs17.__patched = true;
12103
- }
12104
- function patch(fs18) {
12105
- polyfills(fs18);
12106
- fs18.gracefulify = patch;
12107
- fs18.createReadStream = createReadStream;
12108
- fs18.createWriteStream = createWriteStream2;
12109
- var fs$readFile = fs18.readFile;
12110
- fs18.readFile = readFile;
12111
- function readFile(path16, options, cb) {
12097
+ publishQueue(global, fs18[gracefulQueue]);
12098
+ }
12099
+ module2.exports = patch(clone3(fs18));
12100
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs18.__patched) {
12101
+ module2.exports = patch(fs18);
12102
+ fs18.__patched = true;
12103
+ }
12104
+ function patch(fs19) {
12105
+ polyfills(fs19);
12106
+ fs19.gracefulify = patch;
12107
+ fs19.createReadStream = createReadStream;
12108
+ fs19.createWriteStream = createWriteStream2;
12109
+ var fs$readFile = fs19.readFile;
12110
+ fs19.readFile = readFile;
12111
+ function readFile(path17, options, cb) {
12112
12112
  if (typeof options === "function")
12113
12113
  cb = options, options = null;
12114
- return go$readFile(path16, options, cb);
12115
- function go$readFile(path17, options2, cb2, startTime) {
12116
- return fs$readFile(path17, options2, function(err) {
12114
+ return go$readFile(path17, options, cb);
12115
+ function go$readFile(path18, options2, cb2, startTime) {
12116
+ return fs$readFile(path18, options2, function(err) {
12117
12117
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
12118
- enqueue([go$readFile, [path17, options2, cb2], err, startTime || Date.now(), Date.now()]);
12118
+ enqueue([go$readFile, [path18, options2, cb2], err, startTime || Date.now(), Date.now()]);
12119
12119
  else {
12120
12120
  if (typeof cb2 === "function")
12121
12121
  cb2.apply(this, arguments);
@@ -12123,16 +12123,16 @@ var require_graceful_fs = __commonJS({
12123
12123
  });
12124
12124
  }
12125
12125
  }
12126
- var fs$writeFile = fs18.writeFile;
12127
- fs18.writeFile = writeFile;
12128
- function writeFile(path16, data, options, cb) {
12126
+ var fs$writeFile = fs19.writeFile;
12127
+ fs19.writeFile = writeFile;
12128
+ function writeFile(path17, data, options, cb) {
12129
12129
  if (typeof options === "function")
12130
12130
  cb = options, options = null;
12131
- return go$writeFile(path16, data, options, cb);
12132
- function go$writeFile(path17, data2, options2, cb2, startTime) {
12133
- return fs$writeFile(path17, data2, options2, function(err) {
12131
+ return go$writeFile(path17, data, options, cb);
12132
+ function go$writeFile(path18, data2, options2, cb2, startTime) {
12133
+ return fs$writeFile(path18, data2, options2, function(err) {
12134
12134
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
12135
- enqueue([go$writeFile, [path17, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
12135
+ enqueue([go$writeFile, [path18, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
12136
12136
  else {
12137
12137
  if (typeof cb2 === "function")
12138
12138
  cb2.apply(this, arguments);
@@ -12140,17 +12140,17 @@ var require_graceful_fs = __commonJS({
12140
12140
  });
12141
12141
  }
12142
12142
  }
12143
- var fs$appendFile = fs18.appendFile;
12143
+ var fs$appendFile = fs19.appendFile;
12144
12144
  if (fs$appendFile)
12145
- fs18.appendFile = appendFile;
12146
- function appendFile(path16, data, options, cb) {
12145
+ fs19.appendFile = appendFile;
12146
+ function appendFile(path17, data, options, cb) {
12147
12147
  if (typeof options === "function")
12148
12148
  cb = options, options = null;
12149
- return go$appendFile(path16, data, options, cb);
12150
- function go$appendFile(path17, data2, options2, cb2, startTime) {
12151
- return fs$appendFile(path17, data2, options2, function(err) {
12149
+ return go$appendFile(path17, data, options, cb);
12150
+ function go$appendFile(path18, data2, options2, cb2, startTime) {
12151
+ return fs$appendFile(path18, data2, options2, function(err) {
12152
12152
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
12153
- enqueue([go$appendFile, [path17, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
12153
+ enqueue([go$appendFile, [path18, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
12154
12154
  else {
12155
12155
  if (typeof cb2 === "function")
12156
12156
  cb2.apply(this, arguments);
@@ -12158,9 +12158,9 @@ var require_graceful_fs = __commonJS({
12158
12158
  });
12159
12159
  }
12160
12160
  }
12161
- var fs$copyFile = fs18.copyFile;
12161
+ var fs$copyFile = fs19.copyFile;
12162
12162
  if (fs$copyFile)
12163
- fs18.copyFile = copyFile;
12163
+ fs19.copyFile = copyFile;
12164
12164
  function copyFile(src, dest, flags, cb) {
12165
12165
  if (typeof flags === "function") {
12166
12166
  cb = flags;
@@ -12178,34 +12178,34 @@ var require_graceful_fs = __commonJS({
12178
12178
  });
12179
12179
  }
12180
12180
  }
12181
- var fs$readdir = fs18.readdir;
12182
- fs18.readdir = readdir;
12181
+ var fs$readdir = fs19.readdir;
12182
+ fs19.readdir = readdir;
12183
12183
  var noReaddirOptionVersions = /^v[0-5]\./;
12184
- function readdir(path16, options, cb) {
12184
+ function readdir(path17, options, cb) {
12185
12185
  if (typeof options === "function")
12186
12186
  cb = options, options = null;
12187
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path17, options2, cb2, startTime) {
12188
- return fs$readdir(path17, fs$readdirCallback(
12189
- path17,
12187
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path18, options2, cb2, startTime) {
12188
+ return fs$readdir(path18, fs$readdirCallback(
12189
+ path18,
12190
12190
  options2,
12191
12191
  cb2,
12192
12192
  startTime
12193
12193
  ));
12194
- } : function go$readdir2(path17, options2, cb2, startTime) {
12195
- return fs$readdir(path17, options2, fs$readdirCallback(
12196
- path17,
12194
+ } : function go$readdir2(path18, options2, cb2, startTime) {
12195
+ return fs$readdir(path18, options2, fs$readdirCallback(
12196
+ path18,
12197
12197
  options2,
12198
12198
  cb2,
12199
12199
  startTime
12200
12200
  ));
12201
12201
  };
12202
- return go$readdir(path16, options, cb);
12203
- function fs$readdirCallback(path17, options2, cb2, startTime) {
12202
+ return go$readdir(path17, options, cb);
12203
+ function fs$readdirCallback(path18, options2, cb2, startTime) {
12204
12204
  return function(err, files) {
12205
12205
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
12206
12206
  enqueue([
12207
12207
  go$readdir,
12208
- [path17, options2, cb2],
12208
+ [path18, options2, cb2],
12209
12209
  err,
12210
12210
  startTime || Date.now(),
12211
12211
  Date.now()
@@ -12220,21 +12220,21 @@ var require_graceful_fs = __commonJS({
12220
12220
  }
12221
12221
  }
12222
12222
  if (process.version.substr(0, 4) === "v0.8") {
12223
- var legStreams = legacy(fs18);
12223
+ var legStreams = legacy(fs19);
12224
12224
  ReadStream = legStreams.ReadStream;
12225
12225
  WriteStream = legStreams.WriteStream;
12226
12226
  }
12227
- var fs$ReadStream = fs18.ReadStream;
12227
+ var fs$ReadStream = fs19.ReadStream;
12228
12228
  if (fs$ReadStream) {
12229
12229
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
12230
12230
  ReadStream.prototype.open = ReadStream$open;
12231
12231
  }
12232
- var fs$WriteStream = fs18.WriteStream;
12232
+ var fs$WriteStream = fs19.WriteStream;
12233
12233
  if (fs$WriteStream) {
12234
12234
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
12235
12235
  WriteStream.prototype.open = WriteStream$open;
12236
12236
  }
12237
- Object.defineProperty(fs18, "ReadStream", {
12237
+ Object.defineProperty(fs19, "ReadStream", {
12238
12238
  get: function() {
12239
12239
  return ReadStream;
12240
12240
  },
@@ -12244,7 +12244,7 @@ var require_graceful_fs = __commonJS({
12244
12244
  enumerable: true,
12245
12245
  configurable: true
12246
12246
  });
12247
- Object.defineProperty(fs18, "WriteStream", {
12247
+ Object.defineProperty(fs19, "WriteStream", {
12248
12248
  get: function() {
12249
12249
  return WriteStream;
12250
12250
  },
@@ -12255,7 +12255,7 @@ var require_graceful_fs = __commonJS({
12255
12255
  configurable: true
12256
12256
  });
12257
12257
  var FileReadStream = ReadStream;
12258
- Object.defineProperty(fs18, "FileReadStream", {
12258
+ Object.defineProperty(fs19, "FileReadStream", {
12259
12259
  get: function() {
12260
12260
  return FileReadStream;
12261
12261
  },
@@ -12266,7 +12266,7 @@ var require_graceful_fs = __commonJS({
12266
12266
  configurable: true
12267
12267
  });
12268
12268
  var FileWriteStream = WriteStream;
12269
- Object.defineProperty(fs18, "FileWriteStream", {
12269
+ Object.defineProperty(fs19, "FileWriteStream", {
12270
12270
  get: function() {
12271
12271
  return FileWriteStream;
12272
12272
  },
@@ -12276,7 +12276,7 @@ var require_graceful_fs = __commonJS({
12276
12276
  enumerable: true,
12277
12277
  configurable: true
12278
12278
  });
12279
- function ReadStream(path16, options) {
12279
+ function ReadStream(path17, options) {
12280
12280
  if (this instanceof ReadStream)
12281
12281
  return fs$ReadStream.apply(this, arguments), this;
12282
12282
  else
@@ -12296,7 +12296,7 @@ var require_graceful_fs = __commonJS({
12296
12296
  }
12297
12297
  });
12298
12298
  }
12299
- function WriteStream(path16, options) {
12299
+ function WriteStream(path17, options) {
12300
12300
  if (this instanceof WriteStream)
12301
12301
  return fs$WriteStream.apply(this, arguments), this;
12302
12302
  else
@@ -12314,22 +12314,22 @@ var require_graceful_fs = __commonJS({
12314
12314
  }
12315
12315
  });
12316
12316
  }
12317
- function createReadStream(path16, options) {
12318
- return new fs18.ReadStream(path16, options);
12317
+ function createReadStream(path17, options) {
12318
+ return new fs19.ReadStream(path17, options);
12319
12319
  }
12320
- function createWriteStream2(path16, options) {
12321
- return new fs18.WriteStream(path16, options);
12320
+ function createWriteStream2(path17, options) {
12321
+ return new fs19.WriteStream(path17, options);
12322
12322
  }
12323
- var fs$open = fs18.open;
12324
- fs18.open = open;
12325
- function open(path16, flags, mode, cb) {
12323
+ var fs$open = fs19.open;
12324
+ fs19.open = open;
12325
+ function open(path17, flags, mode, cb) {
12326
12326
  if (typeof mode === "function")
12327
12327
  cb = mode, mode = null;
12328
- return go$open(path16, flags, mode, cb);
12329
- function go$open(path17, flags2, mode2, cb2, startTime) {
12330
- return fs$open(path17, flags2, mode2, function(err, fd) {
12328
+ return go$open(path17, flags, mode, cb);
12329
+ function go$open(path18, flags2, mode2, cb2, startTime) {
12330
+ return fs$open(path18, flags2, mode2, function(err, fd) {
12331
12331
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
12332
- enqueue([go$open, [path17, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
12332
+ enqueue([go$open, [path18, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
12333
12333
  else {
12334
12334
  if (typeof cb2 === "function")
12335
12335
  cb2.apply(this, arguments);
@@ -12337,20 +12337,20 @@ var require_graceful_fs = __commonJS({
12337
12337
  });
12338
12338
  }
12339
12339
  }
12340
- return fs18;
12340
+ return fs19;
12341
12341
  }
12342
12342
  function enqueue(elem) {
12343
12343
  debug("ENQUEUE", elem[0].name, elem[1]);
12344
- fs17[gracefulQueue].push(elem);
12344
+ fs18[gracefulQueue].push(elem);
12345
12345
  retry();
12346
12346
  }
12347
12347
  var retryTimer;
12348
12348
  function resetQueue() {
12349
12349
  var now = Date.now();
12350
- for (var i = 0; i < fs17[gracefulQueue].length; ++i) {
12351
- if (fs17[gracefulQueue][i].length > 2) {
12352
- fs17[gracefulQueue][i][3] = now;
12353
- fs17[gracefulQueue][i][4] = now;
12350
+ for (var i = 0; i < fs18[gracefulQueue].length; ++i) {
12351
+ if (fs18[gracefulQueue][i].length > 2) {
12352
+ fs18[gracefulQueue][i][3] = now;
12353
+ fs18[gracefulQueue][i][4] = now;
12354
12354
  }
12355
12355
  }
12356
12356
  retry();
@@ -12358,9 +12358,9 @@ var require_graceful_fs = __commonJS({
12358
12358
  function retry() {
12359
12359
  clearTimeout(retryTimer);
12360
12360
  retryTimer = void 0;
12361
- if (fs17[gracefulQueue].length === 0)
12361
+ if (fs18[gracefulQueue].length === 0)
12362
12362
  return;
12363
- var elem = fs17[gracefulQueue].shift();
12363
+ var elem = fs18[gracefulQueue].shift();
12364
12364
  var fn = elem[0];
12365
12365
  var args = elem[1];
12366
12366
  var err = elem[2];
@@ -12382,7 +12382,7 @@ var require_graceful_fs = __commonJS({
12382
12382
  debug("RETRY", fn.name, args);
12383
12383
  fn.apply(null, args.concat([startTime]));
12384
12384
  } else {
12385
- fs17[gracefulQueue].push(elem);
12385
+ fs18[gracefulQueue].push(elem);
12386
12386
  }
12387
12387
  }
12388
12388
  if (retryTimer === void 0) {
@@ -12397,7 +12397,7 @@ var require_fs = __commonJS({
12397
12397
  "../node_modules/fs-extra/lib/fs/index.js"(exports2) {
12398
12398
  "use strict";
12399
12399
  var u = require_universalify().fromCallback;
12400
- var fs17 = require_graceful_fs();
12400
+ var fs18 = require_graceful_fs();
12401
12401
  var api = [
12402
12402
  "access",
12403
12403
  "appendFile",
@@ -12438,26 +12438,26 @@ var require_fs = __commonJS({
12438
12438
  "utimes",
12439
12439
  "writeFile"
12440
12440
  ].filter((key) => {
12441
- return typeof fs17[key] === "function";
12441
+ return typeof fs18[key] === "function";
12442
12442
  });
12443
- Object.assign(exports2, fs17);
12443
+ Object.assign(exports2, fs18);
12444
12444
  api.forEach((method) => {
12445
- exports2[method] = u(fs17[method]);
12445
+ exports2[method] = u(fs18[method]);
12446
12446
  });
12447
12447
  exports2.exists = function(filename, callback) {
12448
12448
  if (typeof callback === "function") {
12449
- return fs17.exists(filename, callback);
12449
+ return fs18.exists(filename, callback);
12450
12450
  }
12451
12451
  return new Promise((resolve2) => {
12452
- return fs17.exists(filename, resolve2);
12452
+ return fs18.exists(filename, resolve2);
12453
12453
  });
12454
12454
  };
12455
12455
  exports2.read = function(fd, buffer, offset, length, position, callback) {
12456
12456
  if (typeof callback === "function") {
12457
- return fs17.read(fd, buffer, offset, length, position, callback);
12457
+ return fs18.read(fd, buffer, offset, length, position, callback);
12458
12458
  }
12459
12459
  return new Promise((resolve2, reject) => {
12460
- fs17.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
12460
+ fs18.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
12461
12461
  if (err) return reject(err);
12462
12462
  resolve2({ bytesRead, buffer: buffer2 });
12463
12463
  });
@@ -12465,10 +12465,10 @@ var require_fs = __commonJS({
12465
12465
  };
12466
12466
  exports2.write = function(fd, buffer, ...args) {
12467
12467
  if (typeof args[args.length - 1] === "function") {
12468
- return fs17.write(fd, buffer, ...args);
12468
+ return fs18.write(fd, buffer, ...args);
12469
12469
  }
12470
12470
  return new Promise((resolve2, reject) => {
12471
- fs17.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
12471
+ fs18.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
12472
12472
  if (err) return reject(err);
12473
12473
  resolve2({ bytesWritten, buffer: buffer2 });
12474
12474
  });
@@ -12476,10 +12476,10 @@ var require_fs = __commonJS({
12476
12476
  };
12477
12477
  exports2.readv = function(fd, buffers, ...args) {
12478
12478
  if (typeof args[args.length - 1] === "function") {
12479
- return fs17.readv(fd, buffers, ...args);
12479
+ return fs18.readv(fd, buffers, ...args);
12480
12480
  }
12481
12481
  return new Promise((resolve2, reject) => {
12482
- fs17.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
12482
+ fs18.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
12483
12483
  if (err) return reject(err);
12484
12484
  resolve2({ bytesRead, buffers: buffers2 });
12485
12485
  });
@@ -12487,17 +12487,17 @@ var require_fs = __commonJS({
12487
12487
  };
12488
12488
  exports2.writev = function(fd, buffers, ...args) {
12489
12489
  if (typeof args[args.length - 1] === "function") {
12490
- return fs17.writev(fd, buffers, ...args);
12490
+ return fs18.writev(fd, buffers, ...args);
12491
12491
  }
12492
12492
  return new Promise((resolve2, reject) => {
12493
- fs17.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
12493
+ fs18.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
12494
12494
  if (err) return reject(err);
12495
12495
  resolve2({ bytesWritten, buffers: buffers2 });
12496
12496
  });
12497
12497
  });
12498
12498
  };
12499
- if (typeof fs17.realpath.native === "function") {
12500
- exports2.realpath.native = u(fs17.realpath.native);
12499
+ if (typeof fs18.realpath.native === "function") {
12500
+ exports2.realpath.native = u(fs18.realpath.native);
12501
12501
  } else {
12502
12502
  process.emitWarning(
12503
12503
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -12512,10 +12512,10 @@ var require_fs = __commonJS({
12512
12512
  var require_utils = __commonJS({
12513
12513
  "../node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
12514
12514
  "use strict";
12515
- var path16 = require("path");
12515
+ var path17 = require("path");
12516
12516
  module2.exports.checkPath = function checkPath(pth) {
12517
12517
  if (process.platform === "win32") {
12518
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path16.parse(pth).root, ""));
12518
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path17.parse(pth).root, ""));
12519
12519
  if (pathHasInvalidWinCharacters) {
12520
12520
  const error49 = new Error(`Path contains invalid characters: ${pth}`);
12521
12521
  error49.code = "EINVAL";
@@ -12530,7 +12530,7 @@ var require_utils = __commonJS({
12530
12530
  var require_make_dir = __commonJS({
12531
12531
  "../node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
12532
12532
  "use strict";
12533
- var fs17 = require_fs();
12533
+ var fs18 = require_fs();
12534
12534
  var { checkPath } = require_utils();
12535
12535
  var getMode = (options) => {
12536
12536
  const defaults = { mode: 511 };
@@ -12539,14 +12539,14 @@ var require_make_dir = __commonJS({
12539
12539
  };
12540
12540
  module2.exports.makeDir = async (dir, options) => {
12541
12541
  checkPath(dir);
12542
- return fs17.mkdir(dir, {
12542
+ return fs18.mkdir(dir, {
12543
12543
  mode: getMode(options),
12544
12544
  recursive: true
12545
12545
  });
12546
12546
  };
12547
12547
  module2.exports.makeDirSync = (dir, options) => {
12548
12548
  checkPath(dir);
12549
- return fs17.mkdirSync(dir, {
12549
+ return fs18.mkdirSync(dir, {
12550
12550
  mode: getMode(options),
12551
12551
  recursive: true
12552
12552
  });
@@ -12578,13 +12578,13 @@ var require_path_exists = __commonJS({
12578
12578
  "../node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
12579
12579
  "use strict";
12580
12580
  var u = require_universalify().fromPromise;
12581
- var fs17 = require_fs();
12582
- function pathExists(path16) {
12583
- return fs17.access(path16).then(() => true).catch(() => false);
12581
+ var fs18 = require_fs();
12582
+ function pathExists(path17) {
12583
+ return fs18.access(path17).then(() => true).catch(() => false);
12584
12584
  }
12585
12585
  module2.exports = {
12586
12586
  pathExists: u(pathExists),
12587
- pathExistsSync: fs17.existsSync
12587
+ pathExistsSync: fs18.existsSync
12588
12588
  };
12589
12589
  }
12590
12590
  });
@@ -12593,16 +12593,16 @@ var require_path_exists = __commonJS({
12593
12593
  var require_utimes = __commonJS({
12594
12594
  "../node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
12595
12595
  "use strict";
12596
- var fs17 = require_fs();
12596
+ var fs18 = require_fs();
12597
12597
  var u = require_universalify().fromPromise;
12598
- async function utimesMillis(path16, atime, mtime) {
12599
- const fd = await fs17.open(path16, "r+");
12598
+ async function utimesMillis(path17, atime, mtime) {
12599
+ const fd = await fs18.open(path17, "r+");
12600
12600
  let closeErr = null;
12601
12601
  try {
12602
- await fs17.futimes(fd, atime, mtime);
12602
+ await fs18.futimes(fd, atime, mtime);
12603
12603
  } finally {
12604
12604
  try {
12605
- await fs17.close(fd);
12605
+ await fs18.close(fd);
12606
12606
  } catch (e) {
12607
12607
  closeErr = e;
12608
12608
  }
@@ -12611,10 +12611,10 @@ var require_utimes = __commonJS({
12611
12611
  throw closeErr;
12612
12612
  }
12613
12613
  }
12614
- function utimesMillisSync(path16, atime, mtime) {
12615
- const fd = fs17.openSync(path16, "r+");
12616
- fs17.futimesSync(fd, atime, mtime);
12617
- return fs17.closeSync(fd);
12614
+ function utimesMillisSync(path17, atime, mtime) {
12615
+ const fd = fs18.openSync(path17, "r+");
12616
+ fs18.futimesSync(fd, atime, mtime);
12617
+ return fs18.closeSync(fd);
12618
12618
  }
12619
12619
  module2.exports = {
12620
12620
  utimesMillis: u(utimesMillis),
@@ -12627,11 +12627,11 @@ var require_utimes = __commonJS({
12627
12627
  var require_stat = __commonJS({
12628
12628
  "../node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
12629
12629
  "use strict";
12630
- var fs17 = require_fs();
12631
- var path16 = require("path");
12630
+ var fs18 = require_fs();
12631
+ var path17 = require("path");
12632
12632
  var u = require_universalify().fromPromise;
12633
12633
  function getStats(src, dest, opts) {
12634
- const statFunc = opts.dereference ? (file2) => fs17.stat(file2, { bigint: true }) : (file2) => fs17.lstat(file2, { bigint: true });
12634
+ const statFunc = opts.dereference ? (file2) => fs18.stat(file2, { bigint: true }) : (file2) => fs18.lstat(file2, { bigint: true });
12635
12635
  return Promise.all([
12636
12636
  statFunc(src),
12637
12637
  statFunc(dest).catch((err) => {
@@ -12642,7 +12642,7 @@ var require_stat = __commonJS({
12642
12642
  }
12643
12643
  function getStatsSync(src, dest, opts) {
12644
12644
  let destStat;
12645
- const statFunc = opts.dereference ? (file2) => fs17.statSync(file2, { bigint: true }) : (file2) => fs17.lstatSync(file2, { bigint: true });
12645
+ const statFunc = opts.dereference ? (file2) => fs18.statSync(file2, { bigint: true }) : (file2) => fs18.lstatSync(file2, { bigint: true });
12646
12646
  const srcStat = statFunc(src);
12647
12647
  try {
12648
12648
  destStat = statFunc(dest);
@@ -12656,8 +12656,8 @@ var require_stat = __commonJS({
12656
12656
  const { srcStat, destStat } = await getStats(src, dest, opts);
12657
12657
  if (destStat) {
12658
12658
  if (areIdentical(srcStat, destStat)) {
12659
- const srcBaseName = path16.basename(src);
12660
- const destBaseName = path16.basename(dest);
12659
+ const srcBaseName = path17.basename(src);
12660
+ const destBaseName = path17.basename(dest);
12661
12661
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
12662
12662
  return { srcStat, destStat, isChangingCase: true };
12663
12663
  }
@@ -12679,8 +12679,8 @@ var require_stat = __commonJS({
12679
12679
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
12680
12680
  if (destStat) {
12681
12681
  if (areIdentical(srcStat, destStat)) {
12682
- const srcBaseName = path16.basename(src);
12683
- const destBaseName = path16.basename(dest);
12682
+ const srcBaseName = path17.basename(src);
12683
+ const destBaseName = path17.basename(dest);
12684
12684
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
12685
12685
  return { srcStat, destStat, isChangingCase: true };
12686
12686
  }
@@ -12699,12 +12699,12 @@ var require_stat = __commonJS({
12699
12699
  return { srcStat, destStat };
12700
12700
  }
12701
12701
  async function checkParentPaths(src, srcStat, dest, funcName) {
12702
- const srcParent = path16.resolve(path16.dirname(src));
12703
- const destParent = path16.resolve(path16.dirname(dest));
12704
- if (destParent === srcParent || destParent === path16.parse(destParent).root) return;
12702
+ const srcParent = path17.resolve(path17.dirname(src));
12703
+ const destParent = path17.resolve(path17.dirname(dest));
12704
+ if (destParent === srcParent || destParent === path17.parse(destParent).root) return;
12705
12705
  let destStat;
12706
12706
  try {
12707
- destStat = await fs17.stat(destParent, { bigint: true });
12707
+ destStat = await fs18.stat(destParent, { bigint: true });
12708
12708
  } catch (err) {
12709
12709
  if (err.code === "ENOENT") return;
12710
12710
  throw err;
@@ -12715,12 +12715,12 @@ var require_stat = __commonJS({
12715
12715
  return checkParentPaths(src, srcStat, destParent, funcName);
12716
12716
  }
12717
12717
  function checkParentPathsSync(src, srcStat, dest, funcName) {
12718
- const srcParent = path16.resolve(path16.dirname(src));
12719
- const destParent = path16.resolve(path16.dirname(dest));
12720
- if (destParent === srcParent || destParent === path16.parse(destParent).root) return;
12718
+ const srcParent = path17.resolve(path17.dirname(src));
12719
+ const destParent = path17.resolve(path17.dirname(dest));
12720
+ if (destParent === srcParent || destParent === path17.parse(destParent).root) return;
12721
12721
  let destStat;
12722
12722
  try {
12723
- destStat = fs17.statSync(destParent, { bigint: true });
12723
+ destStat = fs18.statSync(destParent, { bigint: true });
12724
12724
  } catch (err) {
12725
12725
  if (err.code === "ENOENT") return;
12726
12726
  throw err;
@@ -12734,8 +12734,8 @@ var require_stat = __commonJS({
12734
12734
  return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
12735
12735
  }
12736
12736
  function isSrcSubdir(src, dest) {
12737
- const srcArr = path16.resolve(src).split(path16.sep).filter((i) => i);
12738
- const destArr = path16.resolve(dest).split(path16.sep).filter((i) => i);
12737
+ const srcArr = path17.resolve(src).split(path17.sep).filter((i) => i);
12738
+ const destArr = path17.resolve(dest).split(path17.sep).filter((i) => i);
12739
12739
  return srcArr.every((cur, i) => destArr[i] === cur);
12740
12740
  }
12741
12741
  function errMsg(src, dest, funcName) {
@@ -12787,8 +12787,8 @@ var require_async = __commonJS({
12787
12787
  var require_copy = __commonJS({
12788
12788
  "../node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
12789
12789
  "use strict";
12790
- var fs17 = require_fs();
12791
- var path16 = require("path");
12790
+ var fs18 = require_fs();
12791
+ var path17 = require("path");
12792
12792
  var { mkdirs } = require_mkdirs();
12793
12793
  var { pathExists } = require_path_exists();
12794
12794
  var { utimesMillis } = require_utimes();
@@ -12811,7 +12811,7 @@ var require_copy = __commonJS({
12811
12811
  await stat.checkParentPaths(src, srcStat, dest, "copy");
12812
12812
  const include = await runFilter(src, dest, opts);
12813
12813
  if (!include) return;
12814
- const destParent = path16.dirname(dest);
12814
+ const destParent = path17.dirname(dest);
12815
12815
  const dirExists = await pathExists(destParent);
12816
12816
  if (!dirExists) {
12817
12817
  await mkdirs(destParent);
@@ -12823,7 +12823,7 @@ var require_copy = __commonJS({
12823
12823
  return opts.filter(src, dest);
12824
12824
  }
12825
12825
  async function getStatsAndPerformCopy(destStat, src, dest, opts) {
12826
- const statFn = opts.dereference ? fs17.stat : fs17.lstat;
12826
+ const statFn = opts.dereference ? fs18.stat : fs18.lstat;
12827
12827
  const srcStat = await statFn(src);
12828
12828
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
12829
12829
  if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -12835,7 +12835,7 @@ var require_copy = __commonJS({
12835
12835
  async function onFile(srcStat, destStat, src, dest, opts) {
12836
12836
  if (!destStat) return copyFile(srcStat, src, dest, opts);
12837
12837
  if (opts.overwrite) {
12838
- await fs17.unlink(dest);
12838
+ await fs18.unlink(dest);
12839
12839
  return copyFile(srcStat, src, dest, opts);
12840
12840
  }
12841
12841
  if (opts.errorOnExist) {
@@ -12843,29 +12843,29 @@ var require_copy = __commonJS({
12843
12843
  }
12844
12844
  }
12845
12845
  async function copyFile(srcStat, src, dest, opts) {
12846
- await fs17.copyFile(src, dest);
12846
+ await fs18.copyFile(src, dest);
12847
12847
  if (opts.preserveTimestamps) {
12848
12848
  if (fileIsNotWritable(srcStat.mode)) {
12849
12849
  await makeFileWritable(dest, srcStat.mode);
12850
12850
  }
12851
- const updatedSrcStat = await fs17.stat(src);
12851
+ const updatedSrcStat = await fs18.stat(src);
12852
12852
  await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
12853
12853
  }
12854
- return fs17.chmod(dest, srcStat.mode);
12854
+ return fs18.chmod(dest, srcStat.mode);
12855
12855
  }
12856
12856
  function fileIsNotWritable(srcMode) {
12857
12857
  return (srcMode & 128) === 0;
12858
12858
  }
12859
12859
  function makeFileWritable(dest, srcMode) {
12860
- return fs17.chmod(dest, srcMode | 128);
12860
+ return fs18.chmod(dest, srcMode | 128);
12861
12861
  }
12862
12862
  async function onDir(srcStat, destStat, src, dest, opts) {
12863
12863
  if (!destStat) {
12864
- await fs17.mkdir(dest);
12864
+ await fs18.mkdir(dest);
12865
12865
  }
12866
- await asyncIteratorConcurrentProcess(await fs17.opendir(src), async (item) => {
12867
- const srcItem = path16.join(src, item.name);
12868
- const destItem = path16.join(dest, item.name);
12866
+ await asyncIteratorConcurrentProcess(await fs18.opendir(src), async (item) => {
12867
+ const srcItem = path17.join(src, item.name);
12868
+ const destItem = path17.join(dest, item.name);
12869
12869
  const include = await runFilter(srcItem, destItem, opts);
12870
12870
  if (include) {
12871
12871
  const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts);
@@ -12873,26 +12873,26 @@ var require_copy = __commonJS({
12873
12873
  }
12874
12874
  });
12875
12875
  if (!destStat) {
12876
- await fs17.chmod(dest, srcStat.mode);
12876
+ await fs18.chmod(dest, srcStat.mode);
12877
12877
  }
12878
12878
  }
12879
12879
  async function onLink(destStat, src, dest, opts) {
12880
- let resolvedSrc = await fs17.readlink(src);
12880
+ let resolvedSrc = await fs18.readlink(src);
12881
12881
  if (opts.dereference) {
12882
- resolvedSrc = path16.resolve(process.cwd(), resolvedSrc);
12882
+ resolvedSrc = path17.resolve(process.cwd(), resolvedSrc);
12883
12883
  }
12884
12884
  if (!destStat) {
12885
- return fs17.symlink(resolvedSrc, dest);
12885
+ return fs18.symlink(resolvedSrc, dest);
12886
12886
  }
12887
12887
  let resolvedDest = null;
12888
12888
  try {
12889
- resolvedDest = await fs17.readlink(dest);
12889
+ resolvedDest = await fs18.readlink(dest);
12890
12890
  } catch (e) {
12891
- if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs17.symlink(resolvedSrc, dest);
12891
+ if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs18.symlink(resolvedSrc, dest);
12892
12892
  throw e;
12893
12893
  }
12894
12894
  if (opts.dereference) {
12895
- resolvedDest = path16.resolve(process.cwd(), resolvedDest);
12895
+ resolvedDest = path17.resolve(process.cwd(), resolvedDest);
12896
12896
  }
12897
12897
  if (resolvedSrc !== resolvedDest) {
12898
12898
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
@@ -12902,8 +12902,8 @@ var require_copy = __commonJS({
12902
12902
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
12903
12903
  }
12904
12904
  }
12905
- await fs17.unlink(dest);
12906
- return fs17.symlink(resolvedSrc, dest);
12905
+ await fs18.unlink(dest);
12906
+ return fs18.symlink(resolvedSrc, dest);
12907
12907
  }
12908
12908
  module2.exports = copy;
12909
12909
  }
@@ -12913,8 +12913,8 @@ var require_copy = __commonJS({
12913
12913
  var require_copy_sync = __commonJS({
12914
12914
  "../node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
12915
12915
  "use strict";
12916
- var fs17 = require_graceful_fs();
12917
- var path16 = require("path");
12916
+ var fs18 = require_graceful_fs();
12917
+ var path17 = require("path");
12918
12918
  var mkdirsSync = require_mkdirs().mkdirsSync;
12919
12919
  var utimesMillisSync = require_utimes().utimesMillisSync;
12920
12920
  var stat = require_stat();
@@ -12935,12 +12935,12 @@ var require_copy_sync = __commonJS({
12935
12935
  const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
12936
12936
  stat.checkParentPathsSync(src, srcStat, dest, "copy");
12937
12937
  if (opts.filter && !opts.filter(src, dest)) return;
12938
- const destParent = path16.dirname(dest);
12939
- if (!fs17.existsSync(destParent)) mkdirsSync(destParent);
12938
+ const destParent = path17.dirname(dest);
12939
+ if (!fs18.existsSync(destParent)) mkdirsSync(destParent);
12940
12940
  return getStats(destStat, src, dest, opts);
12941
12941
  }
12942
12942
  function getStats(destStat, src, dest, opts) {
12943
- const statSync = opts.dereference ? fs17.statSync : fs17.lstatSync;
12943
+ const statSync = opts.dereference ? fs18.statSync : fs18.lstatSync;
12944
12944
  const srcStat = statSync(src);
12945
12945
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
12946
12946
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -12955,14 +12955,14 @@ var require_copy_sync = __commonJS({
12955
12955
  }
12956
12956
  function mayCopyFile(srcStat, src, dest, opts) {
12957
12957
  if (opts.overwrite) {
12958
- fs17.unlinkSync(dest);
12958
+ fs18.unlinkSync(dest);
12959
12959
  return copyFile(srcStat, src, dest, opts);
12960
12960
  } else if (opts.errorOnExist) {
12961
12961
  throw new Error(`'${dest}' already exists`);
12962
12962
  }
12963
12963
  }
12964
12964
  function copyFile(srcStat, src, dest, opts) {
12965
- fs17.copyFileSync(src, dest);
12965
+ fs18.copyFileSync(src, dest);
12966
12966
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
12967
12967
  return setDestMode(dest, srcStat.mode);
12968
12968
  }
@@ -12977,10 +12977,10 @@ var require_copy_sync = __commonJS({
12977
12977
  return setDestMode(dest, srcMode | 128);
12978
12978
  }
12979
12979
  function setDestMode(dest, srcMode) {
12980
- return fs17.chmodSync(dest, srcMode);
12980
+ return fs18.chmodSync(dest, srcMode);
12981
12981
  }
12982
12982
  function setDestTimestamps(src, dest) {
12983
- const updatedSrcStat = fs17.statSync(src);
12983
+ const updatedSrcStat = fs18.statSync(src);
12984
12984
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
12985
12985
  }
12986
12986
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -12988,12 +12988,12 @@ var require_copy_sync = __commonJS({
12988
12988
  return copyDir(src, dest, opts);
12989
12989
  }
12990
12990
  function mkDirAndCopy(srcMode, src, dest, opts) {
12991
- fs17.mkdirSync(dest);
12991
+ fs18.mkdirSync(dest);
12992
12992
  copyDir(src, dest, opts);
12993
12993
  return setDestMode(dest, srcMode);
12994
12994
  }
12995
12995
  function copyDir(src, dest, opts) {
12996
- const dir = fs17.opendirSync(src);
12996
+ const dir = fs18.opendirSync(src);
12997
12997
  try {
12998
12998
  let dirent;
12999
12999
  while ((dirent = dir.readSync()) !== null) {
@@ -13004,29 +13004,29 @@ var require_copy_sync = __commonJS({
13004
13004
  }
13005
13005
  }
13006
13006
  function copyDirItem(item, src, dest, opts) {
13007
- const srcItem = path16.join(src, item);
13008
- const destItem = path16.join(dest, item);
13007
+ const srcItem = path17.join(src, item);
13008
+ const destItem = path17.join(dest, item);
13009
13009
  if (opts.filter && !opts.filter(srcItem, destItem)) return;
13010
13010
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
13011
13011
  return getStats(destStat, srcItem, destItem, opts);
13012
13012
  }
13013
13013
  function onLink(destStat, src, dest, opts) {
13014
- let resolvedSrc = fs17.readlinkSync(src);
13014
+ let resolvedSrc = fs18.readlinkSync(src);
13015
13015
  if (opts.dereference) {
13016
- resolvedSrc = path16.resolve(process.cwd(), resolvedSrc);
13016
+ resolvedSrc = path17.resolve(process.cwd(), resolvedSrc);
13017
13017
  }
13018
13018
  if (!destStat) {
13019
- return fs17.symlinkSync(resolvedSrc, dest);
13019
+ return fs18.symlinkSync(resolvedSrc, dest);
13020
13020
  } else {
13021
13021
  let resolvedDest;
13022
13022
  try {
13023
- resolvedDest = fs17.readlinkSync(dest);
13023
+ resolvedDest = fs18.readlinkSync(dest);
13024
13024
  } catch (err) {
13025
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs17.symlinkSync(resolvedSrc, dest);
13025
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs18.symlinkSync(resolvedSrc, dest);
13026
13026
  throw err;
13027
13027
  }
13028
13028
  if (opts.dereference) {
13029
- resolvedDest = path16.resolve(process.cwd(), resolvedDest);
13029
+ resolvedDest = path17.resolve(process.cwd(), resolvedDest);
13030
13030
  }
13031
13031
  if (resolvedSrc !== resolvedDest) {
13032
13032
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
@@ -13040,8 +13040,8 @@ var require_copy_sync = __commonJS({
13040
13040
  }
13041
13041
  }
13042
13042
  function copyLink(resolvedSrc, dest) {
13043
- fs17.unlinkSync(dest);
13044
- return fs17.symlinkSync(resolvedSrc, dest);
13043
+ fs18.unlinkSync(dest);
13044
+ return fs18.symlinkSync(resolvedSrc, dest);
13045
13045
  }
13046
13046
  module2.exports = copySync;
13047
13047
  }
@@ -13063,13 +13063,13 @@ var require_copy2 = __commonJS({
13063
13063
  var require_remove = __commonJS({
13064
13064
  "../node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
13065
13065
  "use strict";
13066
- var fs17 = require_graceful_fs();
13066
+ var fs18 = require_graceful_fs();
13067
13067
  var u = require_universalify().fromCallback;
13068
- function remove(path16, callback) {
13069
- fs17.rm(path16, { recursive: true, force: true }, callback);
13068
+ function remove(path17, callback) {
13069
+ fs18.rm(path17, { recursive: true, force: true }, callback);
13070
13070
  }
13071
- function removeSync(path16) {
13072
- fs17.rmSync(path16, { recursive: true, force: true });
13071
+ function removeSync(path17) {
13072
+ fs18.rmSync(path17, { recursive: true, force: true });
13073
13073
  }
13074
13074
  module2.exports = {
13075
13075
  remove: u(remove),
@@ -13083,28 +13083,28 @@ var require_empty = __commonJS({
13083
13083
  "../node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
13084
13084
  "use strict";
13085
13085
  var u = require_universalify().fromPromise;
13086
- var fs17 = require_fs();
13087
- var path16 = require("path");
13086
+ var fs18 = require_fs();
13087
+ var path17 = require("path");
13088
13088
  var mkdir = require_mkdirs();
13089
13089
  var remove = require_remove();
13090
13090
  var emptyDir = u(async function emptyDir2(dir) {
13091
13091
  let items;
13092
13092
  try {
13093
- items = await fs17.readdir(dir);
13093
+ items = await fs18.readdir(dir);
13094
13094
  } catch {
13095
13095
  return mkdir.mkdirs(dir);
13096
13096
  }
13097
- return Promise.all(items.map((item) => remove.remove(path16.join(dir, item))));
13097
+ return Promise.all(items.map((item) => remove.remove(path17.join(dir, item))));
13098
13098
  });
13099
13099
  function emptyDirSync(dir) {
13100
13100
  let items;
13101
13101
  try {
13102
- items = fs17.readdirSync(dir);
13102
+ items = fs18.readdirSync(dir);
13103
13103
  } catch {
13104
13104
  return mkdir.mkdirsSync(dir);
13105
13105
  }
13106
13106
  items.forEach((item) => {
13107
- item = path16.join(dir, item);
13107
+ item = path17.join(dir, item);
13108
13108
  remove.removeSync(item);
13109
13109
  });
13110
13110
  }
@@ -13122,52 +13122,52 @@ var require_file = __commonJS({
13122
13122
  "../node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
13123
13123
  "use strict";
13124
13124
  var u = require_universalify().fromPromise;
13125
- var path16 = require("path");
13126
- var fs17 = require_fs();
13125
+ var path17 = require("path");
13126
+ var fs18 = require_fs();
13127
13127
  var mkdir = require_mkdirs();
13128
13128
  async function createFile(file2) {
13129
13129
  let stats;
13130
13130
  try {
13131
- stats = await fs17.stat(file2);
13131
+ stats = await fs18.stat(file2);
13132
13132
  } catch {
13133
13133
  }
13134
13134
  if (stats && stats.isFile()) return;
13135
- const dir = path16.dirname(file2);
13135
+ const dir = path17.dirname(file2);
13136
13136
  let dirStats = null;
13137
13137
  try {
13138
- dirStats = await fs17.stat(dir);
13138
+ dirStats = await fs18.stat(dir);
13139
13139
  } catch (err) {
13140
13140
  if (err.code === "ENOENT") {
13141
13141
  await mkdir.mkdirs(dir);
13142
- await fs17.writeFile(file2, "");
13142
+ await fs18.writeFile(file2, "");
13143
13143
  return;
13144
13144
  } else {
13145
13145
  throw err;
13146
13146
  }
13147
13147
  }
13148
13148
  if (dirStats.isDirectory()) {
13149
- await fs17.writeFile(file2, "");
13149
+ await fs18.writeFile(file2, "");
13150
13150
  } else {
13151
- await fs17.readdir(dir);
13151
+ await fs18.readdir(dir);
13152
13152
  }
13153
13153
  }
13154
13154
  function createFileSync(file2) {
13155
13155
  let stats;
13156
13156
  try {
13157
- stats = fs17.statSync(file2);
13157
+ stats = fs18.statSync(file2);
13158
13158
  } catch {
13159
13159
  }
13160
13160
  if (stats && stats.isFile()) return;
13161
- const dir = path16.dirname(file2);
13161
+ const dir = path17.dirname(file2);
13162
13162
  try {
13163
- if (!fs17.statSync(dir).isDirectory()) {
13164
- fs17.readdirSync(dir);
13163
+ if (!fs18.statSync(dir).isDirectory()) {
13164
+ fs18.readdirSync(dir);
13165
13165
  }
13166
13166
  } catch (err) {
13167
13167
  if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
13168
13168
  else throw err;
13169
13169
  }
13170
- fs17.writeFileSync(file2, "");
13170
+ fs18.writeFileSync(file2, "");
13171
13171
  }
13172
13172
  module2.exports = {
13173
13173
  createFile: u(createFile),
@@ -13181,50 +13181,50 @@ var require_link = __commonJS({
13181
13181
  "../node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
13182
13182
  "use strict";
13183
13183
  var u = require_universalify().fromPromise;
13184
- var path16 = require("path");
13185
- var fs17 = require_fs();
13184
+ var path17 = require("path");
13185
+ var fs18 = require_fs();
13186
13186
  var mkdir = require_mkdirs();
13187
13187
  var { pathExists } = require_path_exists();
13188
13188
  var { areIdentical } = require_stat();
13189
13189
  async function createLink(srcpath, dstpath) {
13190
13190
  let dstStat;
13191
13191
  try {
13192
- dstStat = await fs17.lstat(dstpath);
13192
+ dstStat = await fs18.lstat(dstpath);
13193
13193
  } catch {
13194
13194
  }
13195
13195
  let srcStat;
13196
13196
  try {
13197
- srcStat = await fs17.lstat(srcpath);
13197
+ srcStat = await fs18.lstat(srcpath);
13198
13198
  } catch (err) {
13199
13199
  err.message = err.message.replace("lstat", "ensureLink");
13200
13200
  throw err;
13201
13201
  }
13202
13202
  if (dstStat && areIdentical(srcStat, dstStat)) return;
13203
- const dir = path16.dirname(dstpath);
13203
+ const dir = path17.dirname(dstpath);
13204
13204
  const dirExists = await pathExists(dir);
13205
13205
  if (!dirExists) {
13206
13206
  await mkdir.mkdirs(dir);
13207
13207
  }
13208
- await fs17.link(srcpath, dstpath);
13208
+ await fs18.link(srcpath, dstpath);
13209
13209
  }
13210
13210
  function createLinkSync(srcpath, dstpath) {
13211
13211
  let dstStat;
13212
13212
  try {
13213
- dstStat = fs17.lstatSync(dstpath);
13213
+ dstStat = fs18.lstatSync(dstpath);
13214
13214
  } catch {
13215
13215
  }
13216
13216
  try {
13217
- const srcStat = fs17.lstatSync(srcpath);
13217
+ const srcStat = fs18.lstatSync(srcpath);
13218
13218
  if (dstStat && areIdentical(srcStat, dstStat)) return;
13219
13219
  } catch (err) {
13220
13220
  err.message = err.message.replace("lstat", "ensureLink");
13221
13221
  throw err;
13222
13222
  }
13223
- const dir = path16.dirname(dstpath);
13224
- const dirExists = fs17.existsSync(dir);
13225
- if (dirExists) return fs17.linkSync(srcpath, dstpath);
13223
+ const dir = path17.dirname(dstpath);
13224
+ const dirExists = fs18.existsSync(dir);
13225
+ if (dirExists) return fs18.linkSync(srcpath, dstpath);
13226
13226
  mkdir.mkdirsSync(dir);
13227
- return fs17.linkSync(srcpath, dstpath);
13227
+ return fs18.linkSync(srcpath, dstpath);
13228
13228
  }
13229
13229
  module2.exports = {
13230
13230
  createLink: u(createLink),
@@ -13237,14 +13237,14 @@ var require_link = __commonJS({
13237
13237
  var require_symlink_paths = __commonJS({
13238
13238
  "../node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
13239
13239
  "use strict";
13240
- var path16 = require("path");
13241
- var fs17 = require_fs();
13240
+ var path17 = require("path");
13241
+ var fs18 = require_fs();
13242
13242
  var { pathExists } = require_path_exists();
13243
13243
  var u = require_universalify().fromPromise;
13244
13244
  async function symlinkPaths(srcpath, dstpath) {
13245
- if (path16.isAbsolute(srcpath)) {
13245
+ if (path17.isAbsolute(srcpath)) {
13246
13246
  try {
13247
- await fs17.lstat(srcpath);
13247
+ await fs18.lstat(srcpath);
13248
13248
  } catch (err) {
13249
13249
  err.message = err.message.replace("lstat", "ensureSymlink");
13250
13250
  throw err;
@@ -13254,8 +13254,8 @@ var require_symlink_paths = __commonJS({
13254
13254
  toDst: srcpath
13255
13255
  };
13256
13256
  }
13257
- const dstdir = path16.dirname(dstpath);
13258
- const relativeToDst = path16.join(dstdir, srcpath);
13257
+ const dstdir = path17.dirname(dstpath);
13258
+ const relativeToDst = path17.join(dstdir, srcpath);
13259
13259
  const exists = await pathExists(relativeToDst);
13260
13260
  if (exists) {
13261
13261
  return {
@@ -13264,39 +13264,39 @@ var require_symlink_paths = __commonJS({
13264
13264
  };
13265
13265
  }
13266
13266
  try {
13267
- await fs17.lstat(srcpath);
13267
+ await fs18.lstat(srcpath);
13268
13268
  } catch (err) {
13269
13269
  err.message = err.message.replace("lstat", "ensureSymlink");
13270
13270
  throw err;
13271
13271
  }
13272
13272
  return {
13273
13273
  toCwd: srcpath,
13274
- toDst: path16.relative(dstdir, srcpath)
13274
+ toDst: path17.relative(dstdir, srcpath)
13275
13275
  };
13276
13276
  }
13277
13277
  function symlinkPathsSync(srcpath, dstpath) {
13278
- if (path16.isAbsolute(srcpath)) {
13279
- const exists2 = fs17.existsSync(srcpath);
13278
+ if (path17.isAbsolute(srcpath)) {
13279
+ const exists2 = fs18.existsSync(srcpath);
13280
13280
  if (!exists2) throw new Error("absolute srcpath does not exist");
13281
13281
  return {
13282
13282
  toCwd: srcpath,
13283
13283
  toDst: srcpath
13284
13284
  };
13285
13285
  }
13286
- const dstdir = path16.dirname(dstpath);
13287
- const relativeToDst = path16.join(dstdir, srcpath);
13288
- const exists = fs17.existsSync(relativeToDst);
13286
+ const dstdir = path17.dirname(dstpath);
13287
+ const relativeToDst = path17.join(dstdir, srcpath);
13288
+ const exists = fs18.existsSync(relativeToDst);
13289
13289
  if (exists) {
13290
13290
  return {
13291
13291
  toCwd: relativeToDst,
13292
13292
  toDst: srcpath
13293
13293
  };
13294
13294
  }
13295
- const srcExists = fs17.existsSync(srcpath);
13295
+ const srcExists = fs18.existsSync(srcpath);
13296
13296
  if (!srcExists) throw new Error("relative srcpath does not exist");
13297
13297
  return {
13298
13298
  toCwd: srcpath,
13299
- toDst: path16.relative(dstdir, srcpath)
13299
+ toDst: path17.relative(dstdir, srcpath)
13300
13300
  };
13301
13301
  }
13302
13302
  module2.exports = {
@@ -13310,13 +13310,13 @@ var require_symlink_paths = __commonJS({
13310
13310
  var require_symlink_type = __commonJS({
13311
13311
  "../node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
13312
13312
  "use strict";
13313
- var fs17 = require_fs();
13313
+ var fs18 = require_fs();
13314
13314
  var u = require_universalify().fromPromise;
13315
13315
  async function symlinkType(srcpath, type) {
13316
13316
  if (type) return type;
13317
13317
  let stats;
13318
13318
  try {
13319
- stats = await fs17.lstat(srcpath);
13319
+ stats = await fs18.lstat(srcpath);
13320
13320
  } catch {
13321
13321
  return "file";
13322
13322
  }
@@ -13326,7 +13326,7 @@ var require_symlink_type = __commonJS({
13326
13326
  if (type) return type;
13327
13327
  let stats;
13328
13328
  try {
13329
- stats = fs17.lstatSync(srcpath);
13329
+ stats = fs18.lstatSync(srcpath);
13330
13330
  } catch {
13331
13331
  return "file";
13332
13332
  }
@@ -13344,8 +13344,8 @@ var require_symlink = __commonJS({
13344
13344
  "../node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
13345
13345
  "use strict";
13346
13346
  var u = require_universalify().fromPromise;
13347
- var path16 = require("path");
13348
- var fs17 = require_fs();
13347
+ var path17 = require("path");
13348
+ var fs18 = require_fs();
13349
13349
  var { mkdirs, mkdirsSync } = require_mkdirs();
13350
13350
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
13351
13351
  var { symlinkType, symlinkTypeSync } = require_symlink_type();
@@ -13354,44 +13354,44 @@ var require_symlink = __commonJS({
13354
13354
  async function createSymlink(srcpath, dstpath, type) {
13355
13355
  let stats;
13356
13356
  try {
13357
- stats = await fs17.lstat(dstpath);
13357
+ stats = await fs18.lstat(dstpath);
13358
13358
  } catch {
13359
13359
  }
13360
13360
  if (stats && stats.isSymbolicLink()) {
13361
13361
  const [srcStat, dstStat] = await Promise.all([
13362
- fs17.stat(srcpath),
13363
- fs17.stat(dstpath)
13362
+ fs18.stat(srcpath),
13363
+ fs18.stat(dstpath)
13364
13364
  ]);
13365
13365
  if (areIdentical(srcStat, dstStat)) return;
13366
13366
  }
13367
13367
  const relative = await symlinkPaths(srcpath, dstpath);
13368
13368
  srcpath = relative.toDst;
13369
13369
  const toType = await symlinkType(relative.toCwd, type);
13370
- const dir = path16.dirname(dstpath);
13370
+ const dir = path17.dirname(dstpath);
13371
13371
  if (!await pathExists(dir)) {
13372
13372
  await mkdirs(dir);
13373
13373
  }
13374
- return fs17.symlink(srcpath, dstpath, toType);
13374
+ return fs18.symlink(srcpath, dstpath, toType);
13375
13375
  }
13376
13376
  function createSymlinkSync(srcpath, dstpath, type) {
13377
13377
  let stats;
13378
13378
  try {
13379
- stats = fs17.lstatSync(dstpath);
13379
+ stats = fs18.lstatSync(dstpath);
13380
13380
  } catch {
13381
13381
  }
13382
13382
  if (stats && stats.isSymbolicLink()) {
13383
- const srcStat = fs17.statSync(srcpath);
13384
- const dstStat = fs17.statSync(dstpath);
13383
+ const srcStat = fs18.statSync(srcpath);
13384
+ const dstStat = fs18.statSync(dstpath);
13385
13385
  if (areIdentical(srcStat, dstStat)) return;
13386
13386
  }
13387
13387
  const relative = symlinkPathsSync(srcpath, dstpath);
13388
13388
  srcpath = relative.toDst;
13389
13389
  type = symlinkTypeSync(relative.toCwd, type);
13390
- const dir = path16.dirname(dstpath);
13391
- const exists = fs17.existsSync(dir);
13392
- if (exists) return fs17.symlinkSync(srcpath, dstpath, type);
13390
+ const dir = path17.dirname(dstpath);
13391
+ const exists = fs18.existsSync(dir);
13392
+ if (exists) return fs18.symlinkSync(srcpath, dstpath, type);
13393
13393
  mkdirsSync(dir);
13394
- return fs17.symlinkSync(srcpath, dstpath, type);
13394
+ return fs18.symlinkSync(srcpath, dstpath, type);
13395
13395
  }
13396
13396
  module2.exports = {
13397
13397
  createSymlink: u(createSymlink),
@@ -13460,9 +13460,9 @@ var require_jsonfile = __commonJS({
13460
13460
  if (typeof options === "string") {
13461
13461
  options = { encoding: options };
13462
13462
  }
13463
- const fs17 = options.fs || _fs;
13463
+ const fs18 = options.fs || _fs;
13464
13464
  const shouldThrow = "throws" in options ? options.throws : true;
13465
- let data = await universalify.fromCallback(fs17.readFile)(file2, options);
13465
+ let data = await universalify.fromCallback(fs18.readFile)(file2, options);
13466
13466
  data = stripBom(data);
13467
13467
  let obj;
13468
13468
  try {
@@ -13482,10 +13482,10 @@ var require_jsonfile = __commonJS({
13482
13482
  if (typeof options === "string") {
13483
13483
  options = { encoding: options };
13484
13484
  }
13485
- const fs17 = options.fs || _fs;
13485
+ const fs18 = options.fs || _fs;
13486
13486
  const shouldThrow = "throws" in options ? options.throws : true;
13487
13487
  try {
13488
- let content = fs17.readFileSync(file2, options);
13488
+ let content = fs18.readFileSync(file2, options);
13489
13489
  content = stripBom(content);
13490
13490
  return JSON.parse(content, options.reviver);
13491
13491
  } catch (err) {
@@ -13498,15 +13498,15 @@ var require_jsonfile = __commonJS({
13498
13498
  }
13499
13499
  }
13500
13500
  async function _writeFile(file2, obj, options = {}) {
13501
- const fs17 = options.fs || _fs;
13501
+ const fs18 = options.fs || _fs;
13502
13502
  const str = stringify2(obj, options);
13503
- await universalify.fromCallback(fs17.writeFile)(file2, str, options);
13503
+ await universalify.fromCallback(fs18.writeFile)(file2, str, options);
13504
13504
  }
13505
13505
  var writeFile = universalify.fromPromise(_writeFile);
13506
13506
  function writeFileSync2(file2, obj, options = {}) {
13507
- const fs17 = options.fs || _fs;
13507
+ const fs18 = options.fs || _fs;
13508
13508
  const str = stringify2(obj, options);
13509
- return fs17.writeFileSync(file2, str, options);
13509
+ return fs18.writeFileSync(file2, str, options);
13510
13510
  }
13511
13511
  module2.exports = {
13512
13512
  readFile,
@@ -13537,23 +13537,23 @@ var require_output_file = __commonJS({
13537
13537
  "../node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
13538
13538
  "use strict";
13539
13539
  var u = require_universalify().fromPromise;
13540
- var fs17 = require_fs();
13541
- var path16 = require("path");
13540
+ var fs18 = require_fs();
13541
+ var path17 = require("path");
13542
13542
  var mkdir = require_mkdirs();
13543
13543
  var pathExists = require_path_exists().pathExists;
13544
13544
  async function outputFile(file2, data, encoding = "utf-8") {
13545
- const dir = path16.dirname(file2);
13545
+ const dir = path17.dirname(file2);
13546
13546
  if (!await pathExists(dir)) {
13547
13547
  await mkdir.mkdirs(dir);
13548
13548
  }
13549
- return fs17.writeFile(file2, data, encoding);
13549
+ return fs18.writeFile(file2, data, encoding);
13550
13550
  }
13551
13551
  function outputFileSync(file2, ...args) {
13552
- const dir = path16.dirname(file2);
13553
- if (!fs17.existsSync(dir)) {
13552
+ const dir = path17.dirname(file2);
13553
+ if (!fs18.existsSync(dir)) {
13554
13554
  mkdir.mkdirsSync(dir);
13555
13555
  }
13556
- fs17.writeFileSync(file2, ...args);
13556
+ fs18.writeFileSync(file2, ...args);
13557
13557
  }
13558
13558
  module2.exports = {
13559
13559
  outputFile: u(outputFile),
@@ -13612,8 +13612,8 @@ var require_json = __commonJS({
13612
13612
  var require_move = __commonJS({
13613
13613
  "../node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
13614
13614
  "use strict";
13615
- var fs17 = require_fs();
13616
- var path16 = require("path");
13615
+ var fs18 = require_fs();
13616
+ var path17 = require("path");
13617
13617
  var { copy } = require_copy2();
13618
13618
  var { remove } = require_remove();
13619
13619
  var { mkdirp } = require_mkdirs();
@@ -13623,8 +13623,8 @@ var require_move = __commonJS({
13623
13623
  const overwrite = opts.overwrite || opts.clobber || false;
13624
13624
  const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
13625
13625
  await stat.checkParentPaths(src, srcStat, dest, "move");
13626
- const destParent = path16.dirname(dest);
13627
- const parsedParentPath = path16.parse(destParent);
13626
+ const destParent = path17.dirname(dest);
13627
+ const parsedParentPath = path17.parse(destParent);
13628
13628
  if (parsedParentPath.root !== destParent) {
13629
13629
  await mkdirp(destParent);
13630
13630
  }
@@ -13639,7 +13639,7 @@ var require_move = __commonJS({
13639
13639
  }
13640
13640
  }
13641
13641
  try {
13642
- await fs17.rename(src, dest);
13642
+ await fs18.rename(src, dest);
13643
13643
  } catch (err) {
13644
13644
  if (err.code !== "EXDEV") {
13645
13645
  throw err;
@@ -13664,8 +13664,8 @@ var require_move = __commonJS({
13664
13664
  var require_move_sync = __commonJS({
13665
13665
  "../node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
13666
13666
  "use strict";
13667
- var fs17 = require_graceful_fs();
13668
- var path16 = require("path");
13667
+ var fs18 = require_graceful_fs();
13668
+ var path17 = require("path");
13669
13669
  var copySync = require_copy2().copySync;
13670
13670
  var removeSync = require_remove().removeSync;
13671
13671
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -13675,12 +13675,12 @@ var require_move_sync = __commonJS({
13675
13675
  const overwrite = opts.overwrite || opts.clobber || false;
13676
13676
  const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
13677
13677
  stat.checkParentPathsSync(src, srcStat, dest, "move");
13678
- if (!isParentRoot(dest)) mkdirpSync(path16.dirname(dest));
13678
+ if (!isParentRoot(dest)) mkdirpSync(path17.dirname(dest));
13679
13679
  return doRename(src, dest, overwrite, isChangingCase);
13680
13680
  }
13681
13681
  function isParentRoot(dest) {
13682
- const parent = path16.dirname(dest);
13683
- const parsedPath = path16.parse(parent);
13682
+ const parent = path17.dirname(dest);
13683
+ const parsedPath = path17.parse(parent);
13684
13684
  return parsedPath.root === parent;
13685
13685
  }
13686
13686
  function doRename(src, dest, overwrite, isChangingCase) {
@@ -13689,12 +13689,12 @@ var require_move_sync = __commonJS({
13689
13689
  removeSync(dest);
13690
13690
  return rename(src, dest, overwrite);
13691
13691
  }
13692
- if (fs17.existsSync(dest)) throw new Error("dest already exists.");
13692
+ if (fs18.existsSync(dest)) throw new Error("dest already exists.");
13693
13693
  return rename(src, dest, overwrite);
13694
13694
  }
13695
13695
  function rename(src, dest, overwrite) {
13696
13696
  try {
13697
- fs17.renameSync(src, dest);
13697
+ fs18.renameSync(src, dest);
13698
13698
  } catch (err) {
13699
13699
  if (err.code !== "EXDEV") throw err;
13700
13700
  return moveAcrossDevice(src, dest, overwrite);
@@ -16939,8 +16939,8 @@ var require_utils3 = __commonJS({
16939
16939
  }
16940
16940
  return ind;
16941
16941
  }
16942
- function removeDotSegments(path16) {
16943
- let input = path16;
16942
+ function removeDotSegments(path17) {
16943
+ let input = path17;
16944
16944
  const output = [];
16945
16945
  let nextSlash = -1;
16946
16946
  let len = 0;
@@ -17139,8 +17139,8 @@ var require_schemes = __commonJS({
17139
17139
  wsComponent.secure = void 0;
17140
17140
  }
17141
17141
  if (wsComponent.resourceName) {
17142
- const [path16, query] = wsComponent.resourceName.split("?");
17143
- wsComponent.path = path16 && path16 !== "/" ? path16 : void 0;
17142
+ const [path17, query] = wsComponent.resourceName.split("?");
17143
+ wsComponent.path = path17 && path17 !== "/" ? path17 : void 0;
17144
17144
  wsComponent.query = query;
17145
17145
  wsComponent.resourceName = void 0;
17146
17146
  }
@@ -20466,12 +20466,12 @@ var require_dist2 = __commonJS({
20466
20466
  throw new Error(`Unknown format "${name}"`);
20467
20467
  return f;
20468
20468
  };
20469
- function addFormats(ajv, list, fs17, exportName) {
20469
+ function addFormats(ajv, list, fs18, exportName) {
20470
20470
  var _a2;
20471
20471
  var _b;
20472
20472
  (_a2 = (_b = ajv.opts.code).formats) !== null && _a2 !== void 0 ? _a2 : _b.formats = codegen_1._`require("ajv-formats/dist/formats").${exportName}`;
20473
20473
  for (const f of list)
20474
- ajv.addFormat(f, fs17[f]);
20474
+ ajv.addFormat(f, fs18[f]);
20475
20475
  }
20476
20476
  module2.exports = exports2 = formatsPlugin;
20477
20477
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -31073,8 +31073,8 @@ var require_package = __commonJS({
31073
31073
  var require_main = __commonJS({
31074
31074
  "node_modules/dotenv/lib/main.js"(exports2, module2) {
31075
31075
  "use strict";
31076
- var fs17 = require("fs");
31077
- var path16 = require("path");
31076
+ var fs18 = require("fs");
31077
+ var path17 = require("path");
31078
31078
  var os7 = require("os");
31079
31079
  var crypto2 = require("crypto");
31080
31080
  var packageJson = require_package();
@@ -31182,7 +31182,7 @@ var require_main = __commonJS({
31182
31182
  if (options && options.path && options.path.length > 0) {
31183
31183
  if (Array.isArray(options.path)) {
31184
31184
  for (const filepath of options.path) {
31185
- if (fs17.existsSync(filepath)) {
31185
+ if (fs18.existsSync(filepath)) {
31186
31186
  possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
31187
31187
  }
31188
31188
  }
@@ -31190,15 +31190,15 @@ var require_main = __commonJS({
31190
31190
  possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
31191
31191
  }
31192
31192
  } else {
31193
- possibleVaultPath = path16.resolve(process.cwd(), ".env.vault");
31193
+ possibleVaultPath = path17.resolve(process.cwd(), ".env.vault");
31194
31194
  }
31195
- if (fs17.existsSync(possibleVaultPath)) {
31195
+ if (fs18.existsSync(possibleVaultPath)) {
31196
31196
  return possibleVaultPath;
31197
31197
  }
31198
31198
  return null;
31199
31199
  }
31200
31200
  function _resolveHome(envPath) {
31201
- return envPath[0] === "~" ? path16.join(os7.homedir(), envPath.slice(1)) : envPath;
31201
+ return envPath[0] === "~" ? path17.join(os7.homedir(), envPath.slice(1)) : envPath;
31202
31202
  }
31203
31203
  function _configVault(options) {
31204
31204
  const debug = Boolean(options && options.debug);
@@ -31215,7 +31215,7 @@ var require_main = __commonJS({
31215
31215
  return { parsed };
31216
31216
  }
31217
31217
  function configDotenv(options) {
31218
- const dotenvPath = path16.resolve(process.cwd(), ".env");
31218
+ const dotenvPath = path17.resolve(process.cwd(), ".env");
31219
31219
  let encoding = "utf8";
31220
31220
  const debug = Boolean(options && options.debug);
31221
31221
  const quiet = options && "quiet" in options ? options.quiet : true;
@@ -31239,13 +31239,13 @@ var require_main = __commonJS({
31239
31239
  }
31240
31240
  let lastError;
31241
31241
  const parsedAll = {};
31242
- for (const path17 of optionPaths) {
31242
+ for (const path18 of optionPaths) {
31243
31243
  try {
31244
- const parsed = DotenvModule.parse(fs17.readFileSync(path17, { encoding }));
31244
+ const parsed = DotenvModule.parse(fs18.readFileSync(path18, { encoding }));
31245
31245
  DotenvModule.populate(parsedAll, parsed, options);
31246
31246
  } catch (e) {
31247
31247
  if (debug) {
31248
- _debug(`Failed to load ${path17} ${e.message}`);
31248
+ _debug(`Failed to load ${path18} ${e.message}`);
31249
31249
  }
31250
31250
  lastError = e;
31251
31251
  }
@@ -31260,7 +31260,7 @@ var require_main = __commonJS({
31260
31260
  const shortPaths = [];
31261
31261
  for (const filePath of optionPaths) {
31262
31262
  try {
31263
- const relative = path16.relative(process.cwd(), filePath);
31263
+ const relative = path17.relative(process.cwd(), filePath);
31264
31264
  shortPaths.push(relative);
31265
31265
  } catch (e) {
31266
31266
  if (debug) {
@@ -33948,7 +33948,7 @@ function init(open, close) {
33948
33948
  var kleur_default = $;
33949
33949
 
33950
33950
  // src/commands/install.ts
33951
- var import_prompts2 = __toESM(require_prompts3(), 1);
33951
+ var import_prompts3 = __toESM(require_prompts3(), 1);
33952
33952
 
33953
33953
  // ../node_modules/eventemitter3/index.mjs
33954
33954
  var import_index2 = __toESM(require_eventemitter3(), 1);
@@ -35746,7 +35746,7 @@ var Listr = class {
35746
35746
  };
35747
35747
 
35748
35748
  // src/commands/install.ts
35749
- var import_fs_extra12 = __toESM(require_lib2(), 1);
35749
+ var import_fs_extra13 = __toESM(require_lib2(), 1);
35750
35750
 
35751
35751
  // src/core/context.ts
35752
35752
  var import_os2 = __toESM(require("os"), 1);
@@ -35772,12 +35772,12 @@ var disallowedKeys = /* @__PURE__ */ new Set([
35772
35772
  "constructor"
35773
35773
  ]);
35774
35774
  var digits = new Set("0123456789");
35775
- function getPathSegments(path16) {
35775
+ function getPathSegments(path17) {
35776
35776
  const parts = [];
35777
35777
  let currentSegment = "";
35778
35778
  let currentPart = "start";
35779
35779
  let isIgnoring = false;
35780
- for (const character of path16) {
35780
+ for (const character of path17) {
35781
35781
  switch (character) {
35782
35782
  case "\\": {
35783
35783
  if (currentPart === "index") {
@@ -35899,11 +35899,11 @@ function assertNotStringIndex(object2, key) {
35899
35899
  throw new Error("Cannot use string index");
35900
35900
  }
35901
35901
  }
35902
- function getProperty(object2, path16, value) {
35903
- if (!isObject(object2) || typeof path16 !== "string") {
35902
+ function getProperty(object2, path17, value) {
35903
+ if (!isObject(object2) || typeof path17 !== "string") {
35904
35904
  return value === void 0 ? object2 : value;
35905
35905
  }
35906
- const pathArray = getPathSegments(path16);
35906
+ const pathArray = getPathSegments(path17);
35907
35907
  if (pathArray.length === 0) {
35908
35908
  return value;
35909
35909
  }
@@ -35923,12 +35923,12 @@ function getProperty(object2, path16, value) {
35923
35923
  }
35924
35924
  return object2 === void 0 ? value : object2;
35925
35925
  }
35926
- function setProperty(object2, path16, value) {
35927
- if (!isObject(object2) || typeof path16 !== "string") {
35926
+ function setProperty(object2, path17, value) {
35927
+ if (!isObject(object2) || typeof path17 !== "string") {
35928
35928
  return object2;
35929
35929
  }
35930
35930
  const root = object2;
35931
- const pathArray = getPathSegments(path16);
35931
+ const pathArray = getPathSegments(path17);
35932
35932
  for (let index = 0; index < pathArray.length; index++) {
35933
35933
  const key = pathArray[index];
35934
35934
  assertNotStringIndex(object2, key);
@@ -35941,11 +35941,11 @@ function setProperty(object2, path16, value) {
35941
35941
  }
35942
35942
  return root;
35943
35943
  }
35944
- function deleteProperty(object2, path16) {
35945
- if (!isObject(object2) || typeof path16 !== "string") {
35944
+ function deleteProperty(object2, path17) {
35945
+ if (!isObject(object2) || typeof path17 !== "string") {
35946
35946
  return false;
35947
35947
  }
35948
- const pathArray = getPathSegments(path16);
35948
+ const pathArray = getPathSegments(path17);
35949
35949
  for (let index = 0; index < pathArray.length; index++) {
35950
35950
  const key = pathArray[index];
35951
35951
  assertNotStringIndex(object2, key);
@@ -35959,11 +35959,11 @@ function deleteProperty(object2, path16) {
35959
35959
  }
35960
35960
  }
35961
35961
  }
35962
- function hasProperty(object2, path16) {
35963
- if (!isObject(object2) || typeof path16 !== "string") {
35962
+ function hasProperty(object2, path17) {
35963
+ if (!isObject(object2) || typeof path17 !== "string") {
35964
35964
  return false;
35965
35965
  }
35966
- const pathArray = getPathSegments(path16);
35966
+ const pathArray = getPathSegments(path17);
35967
35967
  if (pathArray.length === 0) {
35968
35968
  return false;
35969
35969
  }
@@ -37174,8 +37174,8 @@ function detectAdapter(systemRoot) {
37174
37174
  // src/core/diff.ts
37175
37175
  var IGNORED_ITEMS = /* @__PURE__ */ new Set(["__pycache__", ".DS_Store", "Thumbs.db", ".gitkeep", "node_modules"]);
37176
37176
  var PruneModeReadError = class extends Error {
37177
- constructor(path16) {
37178
- super(`Cannot read ${path16} in prune mode \u2014 aborting to prevent accidental deletion`);
37177
+ constructor(path17) {
37178
+ super(`Cannot read ${path17} in prune mode \u2014 aborting to prevent accidental deletion`);
37179
37179
  this.name = "PruneModeReadError";
37180
37180
  }
37181
37181
  };
@@ -40045,7 +40045,7 @@ async function handleMissingEnvVars(missing) {
40045
40045
  if (missing.length === 0) {
40046
40046
  return true;
40047
40047
  }
40048
- const prompts4 = (await Promise.resolve().then(() => __toESM(require_prompts3(), 1))).default;
40048
+ const prompts5 = (await Promise.resolve().then(() => __toESM(require_prompts3(), 1))).default;
40049
40049
  const answers = {};
40050
40050
  for (const key of missing) {
40051
40051
  const config3 = REQUIRED_ENV_VARS[key];
@@ -40057,7 +40057,7 @@ async function handleMissingEnvVars(missing) {
40057
40057
  console.log(kleur_default.yellow(`
40058
40058
  \u26A0\uFE0F ${key} is required by a selected MCP server`));
40059
40059
  }
40060
- const { value } = await prompts4({
40060
+ const { value } = await prompts5({
40061
40061
  type: "text",
40062
40062
  name: "value",
40063
40063
  message: `Enter ${key}:`,
@@ -40346,8 +40346,8 @@ async function syncMcpServersWithCli(agent, mcpConfig, dryRun = false, prune = f
40346
40346
  }
40347
40347
  let selectedNames = toAdd.map(([name]) => name);
40348
40348
  if (!dryRun) {
40349
- const prompts4 = await Promise.resolve().then(() => __toESM(require_prompts3(), 1));
40350
- const { selected } = await prompts4.default({
40349
+ const prompts5 = await Promise.resolve().then(() => __toESM(require_prompts3(), 1));
40350
+ const { selected } = await prompts5.default({
40351
40351
  type: "multiselect",
40352
40352
  name: "selected",
40353
40353
  message: `Select MCP servers to install via ${agent} CLI:`,
@@ -40784,7 +40784,7 @@ var sym = {
40784
40784
  };
40785
40785
 
40786
40786
  // src/commands/install.ts
40787
- var import_path12 = __toESM(require("path"), 1);
40787
+ var import_path13 = __toESM(require("path"), 1);
40788
40788
 
40789
40789
  // src/commands/install-project.ts
40790
40790
  var import_path11 = __toESM(require("path"), 1);
@@ -41420,6 +41420,83 @@ function createProjectCommand() {
41420
41420
  return projectCmd;
41421
41421
  }
41422
41422
 
41423
+ // src/commands/install-pi.ts
41424
+ var import_prompts2 = __toESM(require_prompts3(), 1);
41425
+ var import_fs_extra12 = __toESM(require_lib2(), 1);
41426
+ var import_path12 = __toESM(require("path"), 1);
41427
+ var import_node_child_process = require("child_process");
41428
+ var import_node_os4 = require("os");
41429
+ var PI_AGENT_DIR = import_path12.default.join((0, import_node_os4.homedir)(), ".pi", "agent");
41430
+ function fillTemplate(template, values) {
41431
+ return template.replace(/\{\{(\w+)\}\}/g, (_, key) => values[key] ?? "");
41432
+ }
41433
+ function isPiInstalled() {
41434
+ return (0, import_node_child_process.spawnSync)("pi", ["--version"], { encoding: "utf8" }).status === 0;
41435
+ }
41436
+ function createInstallPiCommand() {
41437
+ const cmd = new Command("pi");
41438
+ cmd.description("Install Pi coding agent with providers, extensions, and npm packages").option("-y, --yes", "Skip confirmation prompts", false).action(async (opts) => {
41439
+ const { yes } = opts;
41440
+ const repoRoot = await findRepoRoot();
41441
+ const piConfigDir = import_path12.default.join(repoRoot, "config", "pi");
41442
+ console.log(t.bold("\n Pi Coding Agent Setup\n"));
41443
+ if (!isPiInstalled()) {
41444
+ console.log(kleur_default.yellow(" pi not found \u2014 installing oh-pi globally...\n"));
41445
+ const r = (0, import_node_child_process.spawnSync)("npm", ["install", "-g", "oh-pi"], { stdio: "inherit" });
41446
+ if (r.status !== 0) {
41447
+ console.error(kleur_default.red("\n Failed to install oh-pi. Run: npm install -g oh-pi\n"));
41448
+ process.exit(1);
41449
+ }
41450
+ console.log(t.success(" pi installed\n"));
41451
+ } else {
41452
+ const v = (0, import_node_child_process.spawnSync)("pi", ["--version"], { encoding: "utf8" });
41453
+ console.log(t.success(` pi ${v.stdout.trim()} already installed
41454
+ `));
41455
+ }
41456
+ const schema = await import_fs_extra12.default.readJson(import_path12.default.join(piConfigDir, "install-schema.json"));
41457
+ const values = {};
41458
+ console.log(t.bold(" API Keys\n"));
41459
+ for (const field of schema.fields) {
41460
+ if (!field.required && !yes) {
41461
+ const { include } = await (0, import_prompts2.default)({ type: "confirm", name: "include", message: ` Configure ${field.label}? (optional)`, initial: false });
41462
+ if (!include) continue;
41463
+ }
41464
+ const { value } = await (0, import_prompts2.default)({ type: field.secret ? "password" : "text", name: "value", message: ` ${field.label}`, hint: field.hint, validate: (v) => field.required && !v ? "Required" : true });
41465
+ if (value) values[field.key] = value;
41466
+ }
41467
+ await import_fs_extra12.default.ensureDir(PI_AGENT_DIR);
41468
+ console.log(t.muted(`
41469
+ Writing config to ${PI_AGENT_DIR}`));
41470
+ for (const name of ["models.json", "auth.json", "settings.json"]) {
41471
+ const destPath = import_path12.default.join(PI_AGENT_DIR, name);
41472
+ if (name === "auth.json" && await import_fs_extra12.default.pathExists(destPath) && !yes) {
41473
+ const { overwrite } = await (0, import_prompts2.default)({ type: "confirm", name: "overwrite", message: ` ${name} already exists \u2014 overwrite? (OAuth tokens will be lost)`, initial: false });
41474
+ if (!overwrite) {
41475
+ console.log(t.muted(` skipped ${name}`));
41476
+ continue;
41477
+ }
41478
+ }
41479
+ const raw = await import_fs_extra12.default.readFile(import_path12.default.join(piConfigDir, `${name}.template`), "utf8");
41480
+ await import_fs_extra12.default.writeFile(destPath, fillTemplate(raw, values), "utf8");
41481
+ console.log(t.success(` ${sym.ok} ${name}`));
41482
+ }
41483
+ await import_fs_extra12.default.copy(import_path12.default.join(piConfigDir, "extensions"), import_path12.default.join(PI_AGENT_DIR, "extensions"), { overwrite: true });
41484
+ console.log(t.success(` ${sym.ok} extensions/`));
41485
+ console.log(t.bold("\n npm Packages\n"));
41486
+ for (const pkg of schema.packages) {
41487
+ const r = (0, import_node_child_process.spawnSync)("pi", ["install", pkg], { stdio: "inherit" });
41488
+ if (r.status === 0) console.log(t.success(` ${sym.ok} ${pkg}`));
41489
+ else console.log(kleur_default.yellow(` ${pkg} \u2014 failed, run manually: pi install ${pkg}`));
41490
+ }
41491
+ console.log(t.bold("\n OAuth (manual steps)\n"));
41492
+ for (const provider of schema.oauth_providers) {
41493
+ console.log(t.muted(` ${provider.key}: ${provider.instruction}`));
41494
+ }
41495
+ console.log(t.boldGreen("\n Pi setup complete\n"));
41496
+ });
41497
+ return cmd;
41498
+ }
41499
+
41423
41500
  // src/commands/install.ts
41424
41501
  var import_child_process4 = require("child_process");
41425
41502
  var import_child_process5 = require("child_process");
@@ -41471,7 +41548,7 @@ function formatTargetLabel(target) {
41471
41548
  const normalized = target.replace(/\\/g, "/").toLowerCase();
41472
41549
  if (normalized.endsWith("/.agents/skills") || normalized.includes("/.agents/skills/")) return "~/.agents/skills";
41473
41550
  if (normalized.endsWith("/.claude") || normalized.includes("/.claude/")) return "~/.claude";
41474
- return import_path12.default.basename(target);
41551
+ return import_path13.default.basename(target);
41475
41552
  }
41476
41553
  function filterBeadsFromChangeSet(changeSet) {
41477
41554
  return {
@@ -41504,15 +41581,15 @@ function isDoltInstalled() {
41504
41581
  async function needsSettingsSync(repoRoot, target) {
41505
41582
  const normalizedTarget = target.replace(/\\/g, "/").toLowerCase();
41506
41583
  if (normalizedTarget.includes(".agents/skills")) return false;
41507
- const hooksTemplatePath = import_path12.default.join(repoRoot, "config", "hooks.json");
41508
- if (!await import_fs_extra12.default.pathExists(hooksTemplatePath)) return false;
41509
- const requiredEvents = Object.keys((await import_fs_extra12.default.readJson(hooksTemplatePath)).hooks ?? {});
41584
+ const hooksTemplatePath = import_path13.default.join(repoRoot, "config", "hooks.json");
41585
+ if (!await import_fs_extra13.default.pathExists(hooksTemplatePath)) return false;
41586
+ const requiredEvents = Object.keys((await import_fs_extra13.default.readJson(hooksTemplatePath)).hooks ?? {});
41510
41587
  if (requiredEvents.length === 0) return false;
41511
- const targetSettingsPath = import_path12.default.join(target, "settings.json");
41512
- if (!await import_fs_extra12.default.pathExists(targetSettingsPath)) return true;
41588
+ const targetSettingsPath = import_path13.default.join(target, "settings.json");
41589
+ if (!await import_fs_extra13.default.pathExists(targetSettingsPath)) return true;
41513
41590
  let settings = {};
41514
41591
  try {
41515
- settings = await import_fs_extra12.default.readJson(targetSettingsPath);
41592
+ settings = await import_fs_extra13.default.readJson(targetSettingsPath);
41516
41593
  } catch {
41517
41594
  return true;
41518
41595
  }
@@ -41541,7 +41618,7 @@ async function runGlobalInstall(flags, installOpts = {}) {
41541
41618
  const missing = [!beadsOk && "bd", !doltOk && "dolt"].filter(Boolean).join(", ");
41542
41619
  let doInstall = effectiveYes;
41543
41620
  if (!effectiveYes) {
41544
- const { install } = await (0, import_prompts2.default)({
41621
+ const { install } = await (0, import_prompts3.default)({
41545
41622
  type: "confirm",
41546
41623
  name: "install",
41547
41624
  message: `Install beads + dolt? (${missing} not found) \u2014 required for workflow enforcement hooks`,
@@ -41620,7 +41697,7 @@ async function runGlobalInstall(flags, installOpts = {}) {
41620
41697
  }
41621
41698
  if (!effectiveYes) {
41622
41699
  const totalChangesCount = allChanges.reduce((s, c) => s + c.totalChanges, 0);
41623
- const { confirm } = await (0, import_prompts2.default)({
41700
+ const { confirm } = await (0, import_prompts3.default)({
41624
41701
  type: "confirm",
41625
41702
  name: "confirm",
41626
41703
  message: `Proceed with install (${totalChangesCount} total changes)?`,
@@ -41692,7 +41769,7 @@ function createInstallCommand() {
41692
41769
  const missing = [!beadsOk && "bd", !doltOk && "dolt"].filter(Boolean).join(", ");
41693
41770
  let doInstall = effectiveYes;
41694
41771
  if (!effectiveYes) {
41695
- const { install } = await (0, import_prompts2.default)({
41772
+ const { install } = await (0, import_prompts3.default)({
41696
41773
  type: "confirm",
41697
41774
  name: "install",
41698
41775
  message: `Install beads + dolt? (${missing} not found) \u2014 required for workflow enforcement hooks`,
@@ -41788,7 +41865,7 @@ function createInstallCommand() {
41788
41865
  }
41789
41866
  if (!effectiveYes) {
41790
41867
  const totalChangesCount = allChanges.reduce((s, c) => s + c.totalChanges, 0);
41791
- const { confirm } = await (0, import_prompts2.default)({
41868
+ const { confirm } = await (0, import_prompts3.default)({
41792
41869
  type: "confirm",
41793
41870
  name: "confirm",
41794
41871
  message: `Proceed with ${actionLabel} (${totalChangesCount} total changes)?`,
@@ -41819,14 +41896,15 @@ function createInstallCommand() {
41819
41896
  installCmd.addCommand(createInstallAllCommand());
41820
41897
  installCmd.addCommand(createInstallBasicCommand());
41821
41898
  installCmd.addCommand(createInstallProjectCommand());
41899
+ installCmd.addCommand(createInstallPiCommand());
41822
41900
  return installCmd;
41823
41901
  }
41824
41902
 
41825
41903
  // src/commands/status.ts
41826
- var import_prompts3 = __toESM(require_prompts3(), 1);
41904
+ var import_prompts4 = __toESM(require_prompts3(), 1);
41827
41905
 
41828
41906
  // src/core/manifest.ts
41829
- var import_path13 = require("path");
41907
+ var import_path14 = require("path");
41830
41908
 
41831
41909
  // ../node_modules/zod/v4/classic/external.js
41832
41910
  var external_exports = {};
@@ -42595,10 +42673,10 @@ function mergeDefs(...defs) {
42595
42673
  function cloneDef(schema) {
42596
42674
  return mergeDefs(schema._zod.def);
42597
42675
  }
42598
- function getElementAtPath(obj, path16) {
42599
- if (!path16)
42676
+ function getElementAtPath(obj, path17) {
42677
+ if (!path17)
42600
42678
  return obj;
42601
- return path16.reduce((acc, key) => acc?.[key], obj);
42679
+ return path17.reduce((acc, key) => acc?.[key], obj);
42602
42680
  }
42603
42681
  function promiseAllObject(promisesObj) {
42604
42682
  const keys = Object.keys(promisesObj);
@@ -42981,11 +43059,11 @@ function aborted(x, startIndex = 0) {
42981
43059
  }
42982
43060
  return false;
42983
43061
  }
42984
- function prefixIssues(path16, issues) {
43062
+ function prefixIssues(path17, issues) {
42985
43063
  return issues.map((iss) => {
42986
43064
  var _a2;
42987
43065
  (_a2 = iss).path ?? (_a2.path = []);
42988
- iss.path.unshift(path16);
43066
+ iss.path.unshift(path17);
42989
43067
  return iss;
42990
43068
  });
42991
43069
  }
@@ -43168,7 +43246,7 @@ function formatError(error49, mapper = (issue2) => issue2.message) {
43168
43246
  }
43169
43247
  function treeifyError(error49, mapper = (issue2) => issue2.message) {
43170
43248
  const result = { errors: [] };
43171
- const processError = (error50, path16 = []) => {
43249
+ const processError = (error50, path17 = []) => {
43172
43250
  var _a2, _b;
43173
43251
  for (const issue2 of error50.issues) {
43174
43252
  if (issue2.code === "invalid_union" && issue2.errors.length) {
@@ -43178,7 +43256,7 @@ function treeifyError(error49, mapper = (issue2) => issue2.message) {
43178
43256
  } else if (issue2.code === "invalid_element") {
43179
43257
  processError({ issues: issue2.issues }, issue2.path);
43180
43258
  } else {
43181
- const fullpath = [...path16, ...issue2.path];
43259
+ const fullpath = [...path17, ...issue2.path];
43182
43260
  if (fullpath.length === 0) {
43183
43261
  result.errors.push(mapper(issue2));
43184
43262
  continue;
@@ -43210,8 +43288,8 @@ function treeifyError(error49, mapper = (issue2) => issue2.message) {
43210
43288
  }
43211
43289
  function toDotPath(_path) {
43212
43290
  const segs = [];
43213
- const path16 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
43214
- for (const seg of path16) {
43291
+ const path17 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
43292
+ for (const seg of path17) {
43215
43293
  if (typeof seg === "number")
43216
43294
  segs.push(`[${seg}]`);
43217
43295
  else if (typeof seg === "symbol")
@@ -55188,13 +55266,13 @@ function resolveRef(ref, ctx) {
55188
55266
  if (!ref.startsWith("#")) {
55189
55267
  throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
55190
55268
  }
55191
- const path16 = ref.slice(1).split("/").filter(Boolean);
55192
- if (path16.length === 0) {
55269
+ const path17 = ref.slice(1).split("/").filter(Boolean);
55270
+ if (path17.length === 0) {
55193
55271
  return ctx.rootSchema;
55194
55272
  }
55195
55273
  const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
55196
- if (path16[0] === defsKey) {
55197
- const key = path16[1];
55274
+ if (path17[0] === defsKey) {
55275
+ const key = path17[1];
55198
55276
  if (!key || !ctx.defs[key]) {
55199
55277
  throw new Error(`Reference not found: ${ref}`);
55200
55278
  }
@@ -55637,17 +55715,17 @@ var ManifestSchema = external_exports.object({
55637
55715
  // src/core/manifest.ts
55638
55716
  var MANIFEST_FILE = ".jaggers-sync-manifest.json";
55639
55717
  function getManifestPath(projectDir) {
55640
- return (0, import_path13.join)(projectDir, MANIFEST_FILE);
55718
+ return (0, import_path14.join)(projectDir, MANIFEST_FILE);
55641
55719
  }
55642
55720
 
55643
55721
  // src/commands/status.ts
55644
- var import_fs_extra13 = __toESM(require_lib2(), 1);
55645
- var import_path14 = __toESM(require("path"), 1);
55722
+ var import_fs_extra14 = __toESM(require_lib2(), 1);
55723
+ var import_path15 = __toESM(require("path"), 1);
55646
55724
  function formatTargetLabel2(target) {
55647
55725
  const normalized = target.replace(/\\/g, "/").toLowerCase();
55648
55726
  if (normalized.endsWith("/.agents/skills") || normalized.includes("/.agents/skills/")) return "~/.agents/skills";
55649
55727
  if (normalized.endsWith("/.claude") || normalized.includes("/.claude/")) return "~/.claude";
55650
- return import_path14.default.basename(target);
55728
+ return import_path15.default.basename(target);
55651
55729
  }
55652
55730
  function formatRelativeTime(timestamp) {
55653
55731
  const now = Date.now();
@@ -55667,7 +55745,7 @@ function createStatusCommand() {
55667
55745
  const candidates = getCandidatePaths();
55668
55746
  const targets = [];
55669
55747
  for (const c of candidates) {
55670
- if (await import_fs_extra13.default.pathExists(c.path)) targets.push(c.path);
55748
+ if (await import_fs_extra14.default.pathExists(c.path)) targets.push(c.path);
55671
55749
  }
55672
55750
  if (targets.length === 0) {
55673
55751
  console.log(kleur_default.yellow("\n No agent environments found (~/.claude, ~/.gemini, ~/.qwen)\n"));
@@ -55678,8 +55756,8 @@ function createStatusCommand() {
55678
55756
  const manifestPath = getManifestPath(target);
55679
55757
  let lastSync = null;
55680
55758
  try {
55681
- if (await import_fs_extra13.default.pathExists(manifestPath)) {
55682
- const manifest = await import_fs_extra13.default.readJson(manifestPath);
55759
+ if (await import_fs_extra14.default.pathExists(manifestPath)) {
55760
+ const manifest = await import_fs_extra14.default.readJson(manifestPath);
55683
55761
  if (manifest.lastSync) lastSync = manifest.lastSync;
55684
55762
  }
55685
55763
  } catch {
@@ -55729,7 +55807,7 @@ function createStatusCommand() {
55729
55807
  console.log(kleur_default.yellow(`
55730
55808
  \u26A0 ${totalPending} pending change${totalPending !== 1 ? "s" : ""} across ${pending.length} environment${pending.length !== 1 ? "s" : ""}
55731
55809
  `));
55732
- const { selected } = await (0, import_prompts3.default)({
55810
+ const { selected } = await (0, import_prompts4.default)({
55733
55811
  type: "multiselect",
55734
55812
  name: "selected",
55735
55813
  message: "Select environments to sync:",
@@ -55771,8 +55849,8 @@ function createResetCommand() {
55771
55849
  }
55772
55850
 
55773
55851
  // src/commands/help.ts
55774
- var import_path15 = __toESM(require("path"), 1);
55775
- var import_fs_extra14 = __toESM(require_lib2(), 1);
55852
+ var import_path16 = __toESM(require("path"), 1);
55853
+ var import_fs_extra15 = __toESM(require_lib2(), 1);
55776
55854
  var HOOK_CATALOG = [
55777
55855
  { file: "main-guard.mjs", event: "PreToolUse", desc: "Blocks direct edits on protected branches" },
55778
55856
  { file: "main-guard-post-push.mjs", event: "PostToolUse", desc: "After feature-branch push, reminds PR/merge/sync steps" },
@@ -55788,26 +55866,26 @@ var HOOK_CATALOG = [
55788
55866
  { file: "beads-close-memory-prompt.mjs", event: "PostToolUse", desc: "Prompts memory save when closing a beads issue", beads: true }
55789
55867
  ];
55790
55868
  async function readSkillsFromDir(dir) {
55791
- if (!await import_fs_extra14.default.pathExists(dir)) return [];
55792
- const entries = await import_fs_extra14.default.readdir(dir);
55869
+ if (!await import_fs_extra15.default.pathExists(dir)) return [];
55870
+ const entries = await import_fs_extra15.default.readdir(dir);
55793
55871
  const skills = [];
55794
55872
  for (const name of entries.sort()) {
55795
- const skillMd = import_path15.default.join(dir, name, "SKILL.md");
55796
- if (!await import_fs_extra14.default.pathExists(skillMd)) continue;
55797
- const content = await import_fs_extra14.default.readFile(skillMd, "utf8");
55873
+ const skillMd = import_path16.default.join(dir, name, "SKILL.md");
55874
+ if (!await import_fs_extra15.default.pathExists(skillMd)) continue;
55875
+ const content = await import_fs_extra15.default.readFile(skillMd, "utf8");
55798
55876
  const m = content.match(/^description:\s*(.+)$/m);
55799
55877
  skills.push({ name, desc: m ? m[1].replace(/^["']|["']$/g, "").trim() : "" });
55800
55878
  }
55801
55879
  return skills;
55802
55880
  }
55803
55881
  async function readProjectSkillsFromDir(dir) {
55804
- if (!await import_fs_extra14.default.pathExists(dir)) return [];
55805
- const entries = await import_fs_extra14.default.readdir(dir);
55882
+ if (!await import_fs_extra15.default.pathExists(dir)) return [];
55883
+ const entries = await import_fs_extra15.default.readdir(dir);
55806
55884
  const skills = [];
55807
55885
  for (const name of entries.sort()) {
55808
- const readme = import_path15.default.join(dir, name, "README.md");
55809
- if (!await import_fs_extra14.default.pathExists(readme)) continue;
55810
- const content = await import_fs_extra14.default.readFile(readme, "utf8");
55886
+ const readme = import_path16.default.join(dir, name, "README.md");
55887
+ if (!await import_fs_extra15.default.pathExists(readme)) continue;
55888
+ const content = await import_fs_extra15.default.readFile(readme, "utf8");
55811
55889
  const descLine = content.split("\n").find((line) => {
55812
55890
  const trimmed = line.trim();
55813
55891
  return Boolean(trimmed) && !trimmed.startsWith("#") && !trimmed.startsWith("[") && !trimmed.startsWith("<");
@@ -55818,11 +55896,11 @@ async function readProjectSkillsFromDir(dir) {
55818
55896
  }
55819
55897
  function resolvePkgRootFallback() {
55820
55898
  const candidates = [
55821
- import_path15.default.resolve(__dirname, "../.."),
55822
- import_path15.default.resolve(__dirname, "../../..")
55899
+ import_path16.default.resolve(__dirname, "../.."),
55900
+ import_path16.default.resolve(__dirname, "../../..")
55823
55901
  ];
55824
55902
  const match = candidates.find(
55825
- (candidate) => import_fs_extra14.default.existsSync(import_path15.default.join(candidate, "skills")) || import_fs_extra14.default.existsSync(import_path15.default.join(candidate, "project-skills"))
55903
+ (candidate) => import_fs_extra15.default.existsSync(import_path16.default.join(candidate, "skills")) || import_fs_extra15.default.existsSync(import_path16.default.join(candidate, "project-skills"))
55826
55904
  );
55827
55905
  return match || null;
55828
55906
  }
@@ -55840,8 +55918,8 @@ function createHelpCommand() {
55840
55918
  const pkgRoot = resolvePkgRootFallback();
55841
55919
  const skillsRoot = repoRoot || pkgRoot || "";
55842
55920
  const projectSkillsRoot = repoRoot || pkgRoot || "";
55843
- const skills = skillsRoot ? await readSkillsFromDir(import_path15.default.join(skillsRoot, "skills")) : [];
55844
- const projectSkills = projectSkillsRoot ? await readProjectSkillsFromDir(import_path15.default.join(projectSkillsRoot, "project-skills")) : [];
55921
+ const skills = skillsRoot ? await readSkillsFromDir(import_path16.default.join(skillsRoot, "skills")) : [];
55922
+ const projectSkills = projectSkillsRoot ? await readProjectSkillsFromDir(import_path16.default.join(projectSkillsRoot, "project-skills")) : [];
55845
55923
  const W = 80;
55846
55924
  const hr = kleur_default.dim("-".repeat(W));
55847
55925
  const section = (title) => `