@mrrlin-dev/mcp 0.3.26 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.cjs CHANGED
@@ -7703,54 +7703,54 @@ var require_polyfills = __commonJS({
7703
7703
  }
7704
7704
  var chdir;
7705
7705
  module2.exports = patch;
7706
- function patch(fs7) {
7706
+ function patch(fs6) {
7707
7707
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
7708
- patchLchmod(fs7);
7709
- }
7710
- if (!fs7.lutimes) {
7711
- patchLutimes(fs7);
7712
- }
7713
- fs7.chown = chownFix(fs7.chown);
7714
- fs7.fchown = chownFix(fs7.fchown);
7715
- fs7.lchown = chownFix(fs7.lchown);
7716
- fs7.chmod = chmodFix(fs7.chmod);
7717
- fs7.fchmod = chmodFix(fs7.fchmod);
7718
- fs7.lchmod = chmodFix(fs7.lchmod);
7719
- fs7.chownSync = chownFixSync(fs7.chownSync);
7720
- fs7.fchownSync = chownFixSync(fs7.fchownSync);
7721
- fs7.lchownSync = chownFixSync(fs7.lchownSync);
7722
- fs7.chmodSync = chmodFixSync(fs7.chmodSync);
7723
- fs7.fchmodSync = chmodFixSync(fs7.fchmodSync);
7724
- fs7.lchmodSync = chmodFixSync(fs7.lchmodSync);
7725
- fs7.stat = statFix(fs7.stat);
7726
- fs7.fstat = statFix(fs7.fstat);
7727
- fs7.lstat = statFix(fs7.lstat);
7728
- fs7.statSync = statFixSync(fs7.statSync);
7729
- fs7.fstatSync = statFixSync(fs7.fstatSync);
7730
- fs7.lstatSync = statFixSync(fs7.lstatSync);
7731
- if (fs7.chmod && !fs7.lchmod) {
7732
- fs7.lchmod = function(path16, mode, cb) {
7708
+ patchLchmod(fs6);
7709
+ }
7710
+ if (!fs6.lutimes) {
7711
+ patchLutimes(fs6);
7712
+ }
7713
+ fs6.chown = chownFix(fs6.chown);
7714
+ fs6.fchown = chownFix(fs6.fchown);
7715
+ fs6.lchown = chownFix(fs6.lchown);
7716
+ fs6.chmod = chmodFix(fs6.chmod);
7717
+ fs6.fchmod = chmodFix(fs6.fchmod);
7718
+ fs6.lchmod = chmodFix(fs6.lchmod);
7719
+ fs6.chownSync = chownFixSync(fs6.chownSync);
7720
+ fs6.fchownSync = chownFixSync(fs6.fchownSync);
7721
+ fs6.lchownSync = chownFixSync(fs6.lchownSync);
7722
+ fs6.chmodSync = chmodFixSync(fs6.chmodSync);
7723
+ fs6.fchmodSync = chmodFixSync(fs6.fchmodSync);
7724
+ fs6.lchmodSync = chmodFixSync(fs6.lchmodSync);
7725
+ fs6.stat = statFix(fs6.stat);
7726
+ fs6.fstat = statFix(fs6.fstat);
7727
+ fs6.lstat = statFix(fs6.lstat);
7728
+ fs6.statSync = statFixSync(fs6.statSync);
7729
+ fs6.fstatSync = statFixSync(fs6.fstatSync);
7730
+ fs6.lstatSync = statFixSync(fs6.lstatSync);
7731
+ if (fs6.chmod && !fs6.lchmod) {
7732
+ fs6.lchmod = function(path15, mode, cb) {
7733
7733
  if (cb) process.nextTick(cb);
7734
7734
  };
7735
- fs7.lchmodSync = function() {
7735
+ fs6.lchmodSync = function() {
7736
7736
  };
7737
7737
  }
7738
- if (fs7.chown && !fs7.lchown) {
7739
- fs7.lchown = function(path16, uid, gid, cb) {
7738
+ if (fs6.chown && !fs6.lchown) {
7739
+ fs6.lchown = function(path15, uid, gid, cb) {
7740
7740
  if (cb) process.nextTick(cb);
7741
7741
  };
7742
- fs7.lchownSync = function() {
7742
+ fs6.lchownSync = function() {
7743
7743
  };
7744
7744
  }
7745
7745
  if (platform === "win32") {
7746
- fs7.rename = typeof fs7.rename !== "function" ? fs7.rename : function(fs$rename) {
7746
+ fs6.rename = typeof fs6.rename !== "function" ? fs6.rename : function(fs$rename) {
7747
7747
  function rename(from, to, cb) {
7748
7748
  var start = Date.now();
7749
7749
  var backoff = 0;
7750
7750
  fs$rename(from, to, function CB(er) {
7751
7751
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
7752
7752
  setTimeout(function() {
7753
- fs7.stat(to, function(stater, st) {
7753
+ fs6.stat(to, function(stater, st) {
7754
7754
  if (stater && stater.code === "ENOENT")
7755
7755
  fs$rename(from, to, CB);
7756
7756
  else
@@ -7766,9 +7766,9 @@ var require_polyfills = __commonJS({
7766
7766
  }
7767
7767
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
7768
7768
  return rename;
7769
- }(fs7.rename);
7769
+ }(fs6.rename);
7770
7770
  }
7771
- fs7.read = typeof fs7.read !== "function" ? fs7.read : function(fs$read) {
7771
+ fs6.read = typeof fs6.read !== "function" ? fs6.read : function(fs$read) {
7772
7772
  function read(fd, buffer, offset, length, position, callback_) {
7773
7773
  var callback;
7774
7774
  if (callback_ && typeof callback_ === "function") {
@@ -7776,22 +7776,22 @@ var require_polyfills = __commonJS({
7776
7776
  callback = function(er, _, __) {
7777
7777
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
7778
7778
  eagCounter++;
7779
- return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
7779
+ return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
7780
7780
  }
7781
7781
  callback_.apply(this, arguments);
7782
7782
  };
7783
7783
  }
7784
- return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
7784
+ return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
7785
7785
  }
7786
7786
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
7787
7787
  return read;
7788
- }(fs7.read);
7789
- fs7.readSync = typeof fs7.readSync !== "function" ? fs7.readSync : /* @__PURE__ */ function(fs$readSync) {
7788
+ }(fs6.read);
7789
+ fs6.readSync = typeof fs6.readSync !== "function" ? fs6.readSync : /* @__PURE__ */ function(fs$readSync) {
7790
7790
  return function(fd, buffer, offset, length, position) {
7791
7791
  var eagCounter = 0;
7792
7792
  while (true) {
7793
7793
  try {
7794
- return fs$readSync.call(fs7, fd, buffer, offset, length, position);
7794
+ return fs$readSync.call(fs6, fd, buffer, offset, length, position);
7795
7795
  } catch (er) {
7796
7796
  if (er.code === "EAGAIN" && eagCounter < 10) {
7797
7797
  eagCounter++;
@@ -7801,11 +7801,11 @@ var require_polyfills = __commonJS({
7801
7801
  }
7802
7802
  }
7803
7803
  };
7804
- }(fs7.readSync);
7805
- function patchLchmod(fs8) {
7806
- fs8.lchmod = function(path16, mode, callback) {
7807
- fs8.open(
7808
- path16,
7804
+ }(fs6.readSync);
7805
+ function patchLchmod(fs7) {
7806
+ fs7.lchmod = function(path15, mode, callback) {
7807
+ fs7.open(
7808
+ path15,
7809
7809
  constants.O_WRONLY | constants.O_SYMLINK,
7810
7810
  mode,
7811
7811
  function(err, fd) {
@@ -7813,80 +7813,80 @@ var require_polyfills = __commonJS({
7813
7813
  if (callback) callback(err);
7814
7814
  return;
7815
7815
  }
7816
- fs8.fchmod(fd, mode, function(err2) {
7817
- fs8.close(fd, function(err22) {
7816
+ fs7.fchmod(fd, mode, function(err2) {
7817
+ fs7.close(fd, function(err22) {
7818
7818
  if (callback) callback(err2 || err22);
7819
7819
  });
7820
7820
  });
7821
7821
  }
7822
7822
  );
7823
7823
  };
7824
- fs8.lchmodSync = function(path16, mode) {
7825
- var fd = fs8.openSync(path16, constants.O_WRONLY | constants.O_SYMLINK, mode);
7824
+ fs7.lchmodSync = function(path15, mode) {
7825
+ var fd = fs7.openSync(path15, constants.O_WRONLY | constants.O_SYMLINK, mode);
7826
7826
  var threw = true;
7827
7827
  var ret;
7828
7828
  try {
7829
- ret = fs8.fchmodSync(fd, mode);
7829
+ ret = fs7.fchmodSync(fd, mode);
7830
7830
  threw = false;
7831
7831
  } finally {
7832
7832
  if (threw) {
7833
7833
  try {
7834
- fs8.closeSync(fd);
7834
+ fs7.closeSync(fd);
7835
7835
  } catch (er) {
7836
7836
  }
7837
7837
  } else {
7838
- fs8.closeSync(fd);
7838
+ fs7.closeSync(fd);
7839
7839
  }
7840
7840
  }
7841
7841
  return ret;
7842
7842
  };
7843
7843
  }
7844
- function patchLutimes(fs8) {
7845
- if (constants.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
7846
- fs8.lutimes = function(path16, at, mt, cb) {
7847
- fs8.open(path16, constants.O_SYMLINK, function(er, fd) {
7844
+ function patchLutimes(fs7) {
7845
+ if (constants.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
7846
+ fs7.lutimes = function(path15, at, mt, cb) {
7847
+ fs7.open(path15, constants.O_SYMLINK, function(er, fd) {
7848
7848
  if (er) {
7849
7849
  if (cb) cb(er);
7850
7850
  return;
7851
7851
  }
7852
- fs8.futimes(fd, at, mt, function(er2) {
7853
- fs8.close(fd, function(er22) {
7852
+ fs7.futimes(fd, at, mt, function(er2) {
7853
+ fs7.close(fd, function(er22) {
7854
7854
  if (cb) cb(er2 || er22);
7855
7855
  });
7856
7856
  });
7857
7857
  });
7858
7858
  };
7859
- fs8.lutimesSync = function(path16, at, mt) {
7860
- var fd = fs8.openSync(path16, constants.O_SYMLINK);
7859
+ fs7.lutimesSync = function(path15, at, mt) {
7860
+ var fd = fs7.openSync(path15, constants.O_SYMLINK);
7861
7861
  var ret;
7862
7862
  var threw = true;
7863
7863
  try {
7864
- ret = fs8.futimesSync(fd, at, mt);
7864
+ ret = fs7.futimesSync(fd, at, mt);
7865
7865
  threw = false;
7866
7866
  } finally {
7867
7867
  if (threw) {
7868
7868
  try {
7869
- fs8.closeSync(fd);
7869
+ fs7.closeSync(fd);
7870
7870
  } catch (er) {
7871
7871
  }
7872
7872
  } else {
7873
- fs8.closeSync(fd);
7873
+ fs7.closeSync(fd);
7874
7874
  }
7875
7875
  }
7876
7876
  return ret;
7877
7877
  };
7878
- } else if (fs8.futimes) {
7879
- fs8.lutimes = function(_a3, _b, _c, cb) {
7878
+ } else if (fs7.futimes) {
7879
+ fs7.lutimes = function(_a3, _b, _c, cb) {
7880
7880
  if (cb) process.nextTick(cb);
7881
7881
  };
7882
- fs8.lutimesSync = function() {
7882
+ fs7.lutimesSync = function() {
7883
7883
  };
7884
7884
  }
7885
7885
  }
7886
7886
  function chmodFix(orig) {
7887
7887
  if (!orig) return orig;
7888
7888
  return function(target, mode, cb) {
7889
- return orig.call(fs7, target, mode, function(er) {
7889
+ return orig.call(fs6, target, mode, function(er) {
7890
7890
  if (chownErOk(er)) er = null;
7891
7891
  if (cb) cb.apply(this, arguments);
7892
7892
  });
@@ -7896,7 +7896,7 @@ var require_polyfills = __commonJS({
7896
7896
  if (!orig) return orig;
7897
7897
  return function(target, mode) {
7898
7898
  try {
7899
- return orig.call(fs7, target, mode);
7899
+ return orig.call(fs6, target, mode);
7900
7900
  } catch (er) {
7901
7901
  if (!chownErOk(er)) throw er;
7902
7902
  }
@@ -7905,7 +7905,7 @@ var require_polyfills = __commonJS({
7905
7905
  function chownFix(orig) {
7906
7906
  if (!orig) return orig;
7907
7907
  return function(target, uid, gid, cb) {
7908
- return orig.call(fs7, target, uid, gid, function(er) {
7908
+ return orig.call(fs6, target, uid, gid, function(er) {
7909
7909
  if (chownErOk(er)) er = null;
7910
7910
  if (cb) cb.apply(this, arguments);
7911
7911
  });
@@ -7915,7 +7915,7 @@ var require_polyfills = __commonJS({
7915
7915
  if (!orig) return orig;
7916
7916
  return function(target, uid, gid) {
7917
7917
  try {
7918
- return orig.call(fs7, target, uid, gid);
7918
+ return orig.call(fs6, target, uid, gid);
7919
7919
  } catch (er) {
7920
7920
  if (!chownErOk(er)) throw er;
7921
7921
  }
@@ -7935,13 +7935,13 @@ var require_polyfills = __commonJS({
7935
7935
  }
7936
7936
  if (cb) cb.apply(this, arguments);
7937
7937
  }
7938
- return options ? orig.call(fs7, target, options, callback) : orig.call(fs7, target, callback);
7938
+ return options ? orig.call(fs6, target, options, callback) : orig.call(fs6, target, callback);
7939
7939
  };
7940
7940
  }
7941
7941
  function statFixSync(orig) {
7942
7942
  if (!orig) return orig;
7943
7943
  return function(target, options) {
7944
- var stats = options ? orig.call(fs7, target, options) : orig.call(fs7, target);
7944
+ var stats = options ? orig.call(fs6, target, options) : orig.call(fs6, target);
7945
7945
  if (stats) {
7946
7946
  if (stats.uid < 0) stats.uid += 4294967296;
7947
7947
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -7970,16 +7970,16 @@ var require_legacy_streams = __commonJS({
7970
7970
  "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
7971
7971
  var Stream = require("stream").Stream;
7972
7972
  module2.exports = legacy;
7973
- function legacy(fs7) {
7973
+ function legacy(fs6) {
7974
7974
  return {
7975
7975
  ReadStream,
7976
7976
  WriteStream
7977
7977
  };
7978
- function ReadStream(path16, options) {
7979
- if (!(this instanceof ReadStream)) return new ReadStream(path16, options);
7978
+ function ReadStream(path15, options) {
7979
+ if (!(this instanceof ReadStream)) return new ReadStream(path15, options);
7980
7980
  Stream.call(this);
7981
7981
  var self = this;
7982
- this.path = path16;
7982
+ this.path = path15;
7983
7983
  this.fd = null;
7984
7984
  this.readable = true;
7985
7985
  this.paused = false;
@@ -8013,7 +8013,7 @@ var require_legacy_streams = __commonJS({
8013
8013
  });
8014
8014
  return;
8015
8015
  }
8016
- fs7.open(this.path, this.flags, this.mode, function(err, fd) {
8016
+ fs6.open(this.path, this.flags, this.mode, function(err, fd) {
8017
8017
  if (err) {
8018
8018
  self.emit("error", err);
8019
8019
  self.readable = false;
@@ -8024,10 +8024,10 @@ var require_legacy_streams = __commonJS({
8024
8024
  self._read();
8025
8025
  });
8026
8026
  }
8027
- function WriteStream(path16, options) {
8028
- if (!(this instanceof WriteStream)) return new WriteStream(path16, options);
8027
+ function WriteStream(path15, options) {
8028
+ if (!(this instanceof WriteStream)) return new WriteStream(path15, options);
8029
8029
  Stream.call(this);
8030
- this.path = path16;
8030
+ this.path = path15;
8031
8031
  this.fd = null;
8032
8032
  this.writable = true;
8033
8033
  this.flags = "w";
@@ -8052,7 +8052,7 @@ var require_legacy_streams = __commonJS({
8052
8052
  this.busy = false;
8053
8053
  this._queue = [];
8054
8054
  if (this.fd === null) {
8055
- this._open = fs7.open;
8055
+ this._open = fs6.open;
8056
8056
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
8057
8057
  this.flush();
8058
8058
  }
@@ -8087,7 +8087,7 @@ var require_clone = __commonJS({
8087
8087
  // ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
8088
8088
  var require_graceful_fs = __commonJS({
8089
8089
  "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
8090
- var fs7 = require("fs");
8090
+ var fs6 = require("fs");
8091
8091
  var polyfills = require_polyfills();
8092
8092
  var legacy = require_legacy_streams();
8093
8093
  var clone2 = require_clone();
@@ -8119,12 +8119,12 @@ var require_graceful_fs = __commonJS({
8119
8119
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
8120
8120
  console.error(m);
8121
8121
  };
8122
- if (!fs7[gracefulQueue]) {
8122
+ if (!fs6[gracefulQueue]) {
8123
8123
  queue = global[gracefulQueue] || [];
8124
- publishQueue(fs7, queue);
8125
- fs7.close = function(fs$close) {
8124
+ publishQueue(fs6, queue);
8125
+ fs6.close = function(fs$close) {
8126
8126
  function close(fd, cb) {
8127
- return fs$close.call(fs7, fd, function(err) {
8127
+ return fs$close.call(fs6, fd, function(err) {
8128
8128
  if (!err) {
8129
8129
  resetQueue();
8130
8130
  }
@@ -8136,48 +8136,48 @@ var require_graceful_fs = __commonJS({
8136
8136
  value: fs$close
8137
8137
  });
8138
8138
  return close;
8139
- }(fs7.close);
8140
- fs7.closeSync = function(fs$closeSync) {
8139
+ }(fs6.close);
8140
+ fs6.closeSync = function(fs$closeSync) {
8141
8141
  function closeSync(fd) {
8142
- fs$closeSync.apply(fs7, arguments);
8142
+ fs$closeSync.apply(fs6, arguments);
8143
8143
  resetQueue();
8144
8144
  }
8145
8145
  Object.defineProperty(closeSync, previousSymbol, {
8146
8146
  value: fs$closeSync
8147
8147
  });
8148
8148
  return closeSync;
8149
- }(fs7.closeSync);
8149
+ }(fs6.closeSync);
8150
8150
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
8151
8151
  process.on("exit", function() {
8152
- debug(fs7[gracefulQueue]);
8153
- require("assert").equal(fs7[gracefulQueue].length, 0);
8152
+ debug(fs6[gracefulQueue]);
8153
+ require("assert").equal(fs6[gracefulQueue].length, 0);
8154
8154
  });
8155
8155
  }
8156
8156
  }
8157
8157
  var queue;
8158
8158
  if (!global[gracefulQueue]) {
8159
- publishQueue(global, fs7[gracefulQueue]);
8160
- }
8161
- module2.exports = patch(clone2(fs7));
8162
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs7.__patched) {
8163
- module2.exports = patch(fs7);
8164
- fs7.__patched = true;
8165
- }
8166
- function patch(fs8) {
8167
- polyfills(fs8);
8168
- fs8.gracefulify = patch;
8169
- fs8.createReadStream = createReadStream;
8170
- fs8.createWriteStream = createWriteStream;
8171
- var fs$readFile = fs8.readFile;
8172
- fs8.readFile = readFile2;
8173
- function readFile2(path16, options, cb) {
8159
+ publishQueue(global, fs6[gracefulQueue]);
8160
+ }
8161
+ module2.exports = patch(clone2(fs6));
8162
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs6.__patched) {
8163
+ module2.exports = patch(fs6);
8164
+ fs6.__patched = true;
8165
+ }
8166
+ function patch(fs7) {
8167
+ polyfills(fs7);
8168
+ fs7.gracefulify = patch;
8169
+ fs7.createReadStream = createReadStream;
8170
+ fs7.createWriteStream = createWriteStream;
8171
+ var fs$readFile = fs7.readFile;
8172
+ fs7.readFile = readFile2;
8173
+ function readFile2(path15, options, cb) {
8174
8174
  if (typeof options === "function")
8175
8175
  cb = options, options = null;
8176
- return go$readFile(path16, options, cb);
8177
- function go$readFile(path17, options2, cb2, startTime) {
8178
- return fs$readFile(path17, options2, function(err) {
8176
+ return go$readFile(path15, options, cb);
8177
+ function go$readFile(path16, options2, cb2, startTime) {
8178
+ return fs$readFile(path16, options2, function(err) {
8179
8179
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
8180
- enqueue([go$readFile, [path17, options2, cb2], err, startTime || Date.now(), Date.now()]);
8180
+ enqueue([go$readFile, [path16, options2, cb2], err, startTime || Date.now(), Date.now()]);
8181
8181
  else {
8182
8182
  if (typeof cb2 === "function")
8183
8183
  cb2.apply(this, arguments);
@@ -8185,16 +8185,16 @@ var require_graceful_fs = __commonJS({
8185
8185
  });
8186
8186
  }
8187
8187
  }
8188
- var fs$writeFile = fs8.writeFile;
8189
- fs8.writeFile = writeFile;
8190
- function writeFile(path16, data, options, cb) {
8188
+ var fs$writeFile = fs7.writeFile;
8189
+ fs7.writeFile = writeFile;
8190
+ function writeFile(path15, data, options, cb) {
8191
8191
  if (typeof options === "function")
8192
8192
  cb = options, options = null;
8193
- return go$writeFile(path16, data, options, cb);
8194
- function go$writeFile(path17, data2, options2, cb2, startTime) {
8195
- return fs$writeFile(path17, data2, options2, function(err) {
8193
+ return go$writeFile(path15, data, options, cb);
8194
+ function go$writeFile(path16, data2, options2, cb2, startTime) {
8195
+ return fs$writeFile(path16, data2, options2, function(err) {
8196
8196
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
8197
- enqueue([go$writeFile, [path17, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
8197
+ enqueue([go$writeFile, [path16, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
8198
8198
  else {
8199
8199
  if (typeof cb2 === "function")
8200
8200
  cb2.apply(this, arguments);
@@ -8202,17 +8202,17 @@ var require_graceful_fs = __commonJS({
8202
8202
  });
8203
8203
  }
8204
8204
  }
8205
- var fs$appendFile = fs8.appendFile;
8205
+ var fs$appendFile = fs7.appendFile;
8206
8206
  if (fs$appendFile)
8207
- fs8.appendFile = appendFile;
8208
- function appendFile(path16, data, options, cb) {
8207
+ fs7.appendFile = appendFile;
8208
+ function appendFile(path15, data, options, cb) {
8209
8209
  if (typeof options === "function")
8210
8210
  cb = options, options = null;
8211
- return go$appendFile(path16, data, options, cb);
8212
- function go$appendFile(path17, data2, options2, cb2, startTime) {
8213
- return fs$appendFile(path17, data2, options2, function(err) {
8211
+ return go$appendFile(path15, data, options, cb);
8212
+ function go$appendFile(path16, data2, options2, cb2, startTime) {
8213
+ return fs$appendFile(path16, data2, options2, function(err) {
8214
8214
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
8215
- enqueue([go$appendFile, [path17, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
8215
+ enqueue([go$appendFile, [path16, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
8216
8216
  else {
8217
8217
  if (typeof cb2 === "function")
8218
8218
  cb2.apply(this, arguments);
@@ -8220,9 +8220,9 @@ var require_graceful_fs = __commonJS({
8220
8220
  });
8221
8221
  }
8222
8222
  }
8223
- var fs$copyFile = fs8.copyFile;
8223
+ var fs$copyFile = fs7.copyFile;
8224
8224
  if (fs$copyFile)
8225
- fs8.copyFile = copyFile;
8225
+ fs7.copyFile = copyFile;
8226
8226
  function copyFile(src, dest, flags, cb) {
8227
8227
  if (typeof flags === "function") {
8228
8228
  cb = flags;
@@ -8240,34 +8240,34 @@ var require_graceful_fs = __commonJS({
8240
8240
  });
8241
8241
  }
8242
8242
  }
8243
- var fs$readdir = fs8.readdir;
8244
- fs8.readdir = readdir2;
8243
+ var fs$readdir = fs7.readdir;
8244
+ fs7.readdir = readdir2;
8245
8245
  var noReaddirOptionVersions = /^v[0-5]\./;
8246
- function readdir2(path16, options, cb) {
8246
+ function readdir2(path15, options, cb) {
8247
8247
  if (typeof options === "function")
8248
8248
  cb = options, options = null;
8249
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path17, options2, cb2, startTime) {
8250
- return fs$readdir(path17, fs$readdirCallback(
8251
- path17,
8249
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path16, options2, cb2, startTime) {
8250
+ return fs$readdir(path16, fs$readdirCallback(
8251
+ path16,
8252
8252
  options2,
8253
8253
  cb2,
8254
8254
  startTime
8255
8255
  ));
8256
- } : function go$readdir2(path17, options2, cb2, startTime) {
8257
- return fs$readdir(path17, options2, fs$readdirCallback(
8258
- path17,
8256
+ } : function go$readdir2(path16, options2, cb2, startTime) {
8257
+ return fs$readdir(path16, options2, fs$readdirCallback(
8258
+ path16,
8259
8259
  options2,
8260
8260
  cb2,
8261
8261
  startTime
8262
8262
  ));
8263
8263
  };
8264
- return go$readdir(path16, options, cb);
8265
- function fs$readdirCallback(path17, options2, cb2, startTime) {
8264
+ return go$readdir(path15, options, cb);
8265
+ function fs$readdirCallback(path16, options2, cb2, startTime) {
8266
8266
  return function(err, files) {
8267
8267
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
8268
8268
  enqueue([
8269
8269
  go$readdir,
8270
- [path17, options2, cb2],
8270
+ [path16, options2, cb2],
8271
8271
  err,
8272
8272
  startTime || Date.now(),
8273
8273
  Date.now()
@@ -8282,21 +8282,21 @@ var require_graceful_fs = __commonJS({
8282
8282
  }
8283
8283
  }
8284
8284
  if (process.version.substr(0, 4) === "v0.8") {
8285
- var legStreams = legacy(fs8);
8285
+ var legStreams = legacy(fs7);
8286
8286
  ReadStream = legStreams.ReadStream;
8287
8287
  WriteStream = legStreams.WriteStream;
8288
8288
  }
8289
- var fs$ReadStream = fs8.ReadStream;
8289
+ var fs$ReadStream = fs7.ReadStream;
8290
8290
  if (fs$ReadStream) {
8291
8291
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
8292
8292
  ReadStream.prototype.open = ReadStream$open;
8293
8293
  }
8294
- var fs$WriteStream = fs8.WriteStream;
8294
+ var fs$WriteStream = fs7.WriteStream;
8295
8295
  if (fs$WriteStream) {
8296
8296
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
8297
8297
  WriteStream.prototype.open = WriteStream$open;
8298
8298
  }
8299
- Object.defineProperty(fs8, "ReadStream", {
8299
+ Object.defineProperty(fs7, "ReadStream", {
8300
8300
  get: function() {
8301
8301
  return ReadStream;
8302
8302
  },
@@ -8306,7 +8306,7 @@ var require_graceful_fs = __commonJS({
8306
8306
  enumerable: true,
8307
8307
  configurable: true
8308
8308
  });
8309
- Object.defineProperty(fs8, "WriteStream", {
8309
+ Object.defineProperty(fs7, "WriteStream", {
8310
8310
  get: function() {
8311
8311
  return WriteStream;
8312
8312
  },
@@ -8317,7 +8317,7 @@ var require_graceful_fs = __commonJS({
8317
8317
  configurable: true
8318
8318
  });
8319
8319
  var FileReadStream = ReadStream;
8320
- Object.defineProperty(fs8, "FileReadStream", {
8320
+ Object.defineProperty(fs7, "FileReadStream", {
8321
8321
  get: function() {
8322
8322
  return FileReadStream;
8323
8323
  },
@@ -8328,7 +8328,7 @@ var require_graceful_fs = __commonJS({
8328
8328
  configurable: true
8329
8329
  });
8330
8330
  var FileWriteStream = WriteStream;
8331
- Object.defineProperty(fs8, "FileWriteStream", {
8331
+ Object.defineProperty(fs7, "FileWriteStream", {
8332
8332
  get: function() {
8333
8333
  return FileWriteStream;
8334
8334
  },
@@ -8338,7 +8338,7 @@ var require_graceful_fs = __commonJS({
8338
8338
  enumerable: true,
8339
8339
  configurable: true
8340
8340
  });
8341
- function ReadStream(path16, options) {
8341
+ function ReadStream(path15, options) {
8342
8342
  if (this instanceof ReadStream)
8343
8343
  return fs$ReadStream.apply(this, arguments), this;
8344
8344
  else
@@ -8358,7 +8358,7 @@ var require_graceful_fs = __commonJS({
8358
8358
  }
8359
8359
  });
8360
8360
  }
8361
- function WriteStream(path16, options) {
8361
+ function WriteStream(path15, options) {
8362
8362
  if (this instanceof WriteStream)
8363
8363
  return fs$WriteStream.apply(this, arguments), this;
8364
8364
  else
@@ -8376,22 +8376,22 @@ var require_graceful_fs = __commonJS({
8376
8376
  }
8377
8377
  });
8378
8378
  }
8379
- function createReadStream(path16, options) {
8380
- return new fs8.ReadStream(path16, options);
8379
+ function createReadStream(path15, options) {
8380
+ return new fs7.ReadStream(path15, options);
8381
8381
  }
8382
- function createWriteStream(path16, options) {
8383
- return new fs8.WriteStream(path16, options);
8382
+ function createWriteStream(path15, options) {
8383
+ return new fs7.WriteStream(path15, options);
8384
8384
  }
8385
- var fs$open = fs8.open;
8386
- fs8.open = open;
8387
- function open(path16, flags, mode, cb) {
8385
+ var fs$open = fs7.open;
8386
+ fs7.open = open;
8387
+ function open(path15, flags, mode, cb) {
8388
8388
  if (typeof mode === "function")
8389
8389
  cb = mode, mode = null;
8390
- return go$open(path16, flags, mode, cb);
8391
- function go$open(path17, flags2, mode2, cb2, startTime) {
8392
- return fs$open(path17, flags2, mode2, function(err, fd) {
8390
+ return go$open(path15, flags, mode, cb);
8391
+ function go$open(path16, flags2, mode2, cb2, startTime) {
8392
+ return fs$open(path16, flags2, mode2, function(err, fd) {
8393
8393
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
8394
- enqueue([go$open, [path17, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
8394
+ enqueue([go$open, [path16, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
8395
8395
  else {
8396
8396
  if (typeof cb2 === "function")
8397
8397
  cb2.apply(this, arguments);
@@ -8399,20 +8399,20 @@ var require_graceful_fs = __commonJS({
8399
8399
  });
8400
8400
  }
8401
8401
  }
8402
- return fs8;
8402
+ return fs7;
8403
8403
  }
8404
8404
  function enqueue(elem) {
8405
8405
  debug("ENQUEUE", elem[0].name, elem[1]);
8406
- fs7[gracefulQueue].push(elem);
8406
+ fs6[gracefulQueue].push(elem);
8407
8407
  retry();
8408
8408
  }
8409
8409
  var retryTimer;
8410
8410
  function resetQueue() {
8411
8411
  var now = Date.now();
8412
- for (var i = 0; i < fs7[gracefulQueue].length; ++i) {
8413
- if (fs7[gracefulQueue][i].length > 2) {
8414
- fs7[gracefulQueue][i][3] = now;
8415
- fs7[gracefulQueue][i][4] = now;
8412
+ for (var i = 0; i < fs6[gracefulQueue].length; ++i) {
8413
+ if (fs6[gracefulQueue][i].length > 2) {
8414
+ fs6[gracefulQueue][i][3] = now;
8415
+ fs6[gracefulQueue][i][4] = now;
8416
8416
  }
8417
8417
  }
8418
8418
  retry();
@@ -8420,9 +8420,9 @@ var require_graceful_fs = __commonJS({
8420
8420
  function retry() {
8421
8421
  clearTimeout(retryTimer);
8422
8422
  retryTimer = void 0;
8423
- if (fs7[gracefulQueue].length === 0)
8423
+ if (fs6[gracefulQueue].length === 0)
8424
8424
  return;
8425
- var elem = fs7[gracefulQueue].shift();
8425
+ var elem = fs6[gracefulQueue].shift();
8426
8426
  var fn = elem[0];
8427
8427
  var args = elem[1];
8428
8428
  var err = elem[2];
@@ -8444,7 +8444,7 @@ var require_graceful_fs = __commonJS({
8444
8444
  debug("RETRY", fn.name, args);
8445
8445
  fn.apply(null, args.concat([startTime]));
8446
8446
  } else {
8447
- fs7[gracefulQueue].push(elem);
8447
+ fs6[gracefulQueue].push(elem);
8448
8448
  }
8449
8449
  }
8450
8450
  if (retryTimer === void 0) {
@@ -8879,10 +8879,10 @@ var require_mtime_precision = __commonJS({
8879
8879
  "../../node_modules/.pnpm/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/mtime-precision.js"(exports2, module2) {
8880
8880
  "use strict";
8881
8881
  var cacheSymbol = Symbol();
8882
- function probe(file2, fs7, callback) {
8883
- const cachedPrecision = fs7[cacheSymbol];
8882
+ function probe(file2, fs6, callback) {
8883
+ const cachedPrecision = fs6[cacheSymbol];
8884
8884
  if (cachedPrecision) {
8885
- return fs7.stat(file2, (err, stat2) => {
8885
+ return fs6.stat(file2, (err, stat2) => {
8886
8886
  if (err) {
8887
8887
  return callback(err);
8888
8888
  }
@@ -8890,16 +8890,16 @@ var require_mtime_precision = __commonJS({
8890
8890
  });
8891
8891
  }
8892
8892
  const mtime = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5);
8893
- fs7.utimes(file2, mtime, mtime, (err) => {
8893
+ fs6.utimes(file2, mtime, mtime, (err) => {
8894
8894
  if (err) {
8895
8895
  return callback(err);
8896
8896
  }
8897
- fs7.stat(file2, (err2, stat2) => {
8897
+ fs6.stat(file2, (err2, stat2) => {
8898
8898
  if (err2) {
8899
8899
  return callback(err2);
8900
8900
  }
8901
8901
  const precision = stat2.mtime.getTime() % 1e3 === 0 ? "s" : "ms";
8902
- Object.defineProperty(fs7, cacheSymbol, { value: precision });
8902
+ Object.defineProperty(fs6, cacheSymbol, { value: precision });
8903
8903
  callback(null, stat2.mtime, precision);
8904
8904
  });
8905
8905
  });
@@ -8920,8 +8920,8 @@ var require_mtime_precision = __commonJS({
8920
8920
  var require_lockfile = __commonJS({
8921
8921
  "../../node_modules/.pnpm/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/lockfile.js"(exports2, module2) {
8922
8922
  "use strict";
8923
- var path16 = require("path");
8924
- var fs7 = require_graceful_fs();
8923
+ var path15 = require("path");
8924
+ var fs6 = require_graceful_fs();
8925
8925
  var retry = require_retry2();
8926
8926
  var onExit = require_signal_exit();
8927
8927
  var mtimePrecision = require_mtime_precision();
@@ -8931,7 +8931,7 @@ var require_lockfile = __commonJS({
8931
8931
  }
8932
8932
  function resolveCanonicalPath(file2, options, callback) {
8933
8933
  if (!options.realpath) {
8934
- return callback(null, path16.resolve(file2));
8934
+ return callback(null, path15.resolve(file2));
8935
8935
  }
8936
8936
  options.fs.realpath(file2, callback);
8937
8937
  }
@@ -9052,7 +9052,7 @@ var require_lockfile = __commonJS({
9052
9052
  update: null,
9053
9053
  realpath: true,
9054
9054
  retries: 0,
9055
- fs: fs7,
9055
+ fs: fs6,
9056
9056
  onCompromised: (err) => {
9057
9057
  throw err;
9058
9058
  },
@@ -9096,7 +9096,7 @@ var require_lockfile = __commonJS({
9096
9096
  }
9097
9097
  function unlock(file2, options, callback) {
9098
9098
  options = {
9099
- fs: fs7,
9099
+ fs: fs6,
9100
9100
  realpath: true,
9101
9101
  ...options
9102
9102
  };
@@ -9118,7 +9118,7 @@ var require_lockfile = __commonJS({
9118
9118
  options = {
9119
9119
  stale: 1e4,
9120
9120
  realpath: true,
9121
- fs: fs7,
9121
+ fs: fs6,
9122
9122
  ...options
9123
9123
  };
9124
9124
  options.stale = Math.max(options.stale || 0, 2e3);
@@ -9157,16 +9157,16 @@ var require_lockfile = __commonJS({
9157
9157
  var require_adapter = __commonJS({
9158
9158
  "../../node_modules/.pnpm/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/adapter.js"(exports2, module2) {
9159
9159
  "use strict";
9160
- var fs7 = require_graceful_fs();
9161
- function createSyncFs(fs8) {
9160
+ var fs6 = require_graceful_fs();
9161
+ function createSyncFs(fs7) {
9162
9162
  const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
9163
- const newFs = { ...fs8 };
9163
+ const newFs = { ...fs7 };
9164
9164
  methods.forEach((method) => {
9165
9165
  newFs[method] = (...args) => {
9166
9166
  const callback = args.pop();
9167
9167
  let ret;
9168
9168
  try {
9169
- ret = fs8[`${method}Sync`](...args);
9169
+ ret = fs7[`${method}Sync`](...args);
9170
9170
  } catch (err) {
9171
9171
  return callback(err);
9172
9172
  }
@@ -9204,7 +9204,7 @@ var require_adapter = __commonJS({
9204
9204
  }
9205
9205
  function toSyncOptions(options) {
9206
9206
  options = { ...options };
9207
- options.fs = createSyncFs(options.fs || fs7);
9207
+ options.fs = createSyncFs(options.fs || fs6);
9208
9208
  if (typeof options.retries === "number" && options.retries > 0 || options.retries && typeof options.retries.retries === "number" && options.retries.retries > 0) {
9209
9209
  throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
9210
9210
  }
@@ -10795,10 +10795,10 @@ var require_segments = __commonJS({
10795
10795
  const segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled());
10796
10796
  const nodes = buildNodes(segs);
10797
10797
  const graph = buildGraph(nodes, version2);
10798
- const path16 = dijkstra.find_path(graph.map, "start", "end");
10798
+ const path15 = dijkstra.find_path(graph.map, "start", "end");
10799
10799
  const optimizedSegs = [];
10800
- for (let i = 1; i < path16.length - 1; i++) {
10801
- optimizedSegs.push(graph.table[path16[i]].node);
10800
+ for (let i = 1; i < path15.length - 1; i++) {
10801
+ optimizedSegs.push(graph.table[path15[i]].node);
10802
10802
  }
10803
10803
  return exports2.fromArray(mergeSegments(optimizedSegs));
10804
10804
  };
@@ -13234,7 +13234,7 @@ var require_utils2 = __commonJS({
13234
13234
  // ../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/png.js
13235
13235
  var require_png2 = __commonJS({
13236
13236
  "../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/png.js"(exports2) {
13237
- var fs7 = require("fs");
13237
+ var fs6 = require("fs");
13238
13238
  var PNG = require_png().PNG;
13239
13239
  var Utils = require_utils2();
13240
13240
  exports2.render = function render(qrData, options) {
@@ -13275,7 +13275,7 @@ var require_png2 = __commonJS({
13275
13275
  });
13276
13276
  png.pack();
13277
13277
  };
13278
- exports2.renderToFile = function renderToFile(path16, qrData, options, cb) {
13278
+ exports2.renderToFile = function renderToFile(path15, qrData, options, cb) {
13279
13279
  if (typeof cb === "undefined") {
13280
13280
  cb = options;
13281
13281
  options = void 0;
@@ -13286,7 +13286,7 @@ var require_png2 = __commonJS({
13286
13286
  called = true;
13287
13287
  cb.apply(null, args);
13288
13288
  };
13289
- const stream = fs7.createWriteStream(path16);
13289
+ const stream = fs6.createWriteStream(path15);
13290
13290
  stream.on("error", done);
13291
13291
  stream.on("close", done);
13292
13292
  exports2.renderToFileStream(stream, qrData, options);
@@ -13348,14 +13348,14 @@ var require_utf8 = __commonJS({
13348
13348
  }
13349
13349
  return output3;
13350
13350
  };
13351
- exports2.renderToFile = function renderToFile(path16, qrData, options, cb) {
13351
+ exports2.renderToFile = function renderToFile(path15, qrData, options, cb) {
13352
13352
  if (typeof cb === "undefined") {
13353
13353
  cb = options;
13354
13354
  options = void 0;
13355
13355
  }
13356
- const fs7 = require("fs");
13356
+ const fs6 = require("fs");
13357
13357
  const utf8 = exports2.render(qrData, options);
13358
- fs7.writeFile(path16, utf8, cb);
13358
+ fs6.writeFile(path15, utf8, cb);
13359
13359
  };
13360
13360
  }
13361
13361
  });
@@ -13476,7 +13476,7 @@ var require_svg_tag = __commonJS({
13476
13476
  return str;
13477
13477
  }
13478
13478
  function qrToPath(data, size, margin) {
13479
- let path16 = "";
13479
+ let path15 = "";
13480
13480
  let moveBy = 0;
13481
13481
  let newRow = false;
13482
13482
  let lineLength = 0;
@@ -13487,19 +13487,19 @@ var require_svg_tag = __commonJS({
13487
13487
  if (data[i]) {
13488
13488
  lineLength++;
13489
13489
  if (!(i > 0 && col > 0 && data[i - 1])) {
13490
- path16 += newRow ? svgCmd("M", col + margin, 0.5 + row + margin) : svgCmd("m", moveBy, 0);
13490
+ path15 += newRow ? svgCmd("M", col + margin, 0.5 + row + margin) : svgCmd("m", moveBy, 0);
13491
13491
  moveBy = 0;
13492
13492
  newRow = false;
13493
13493
  }
13494
13494
  if (!(col + 1 < size && data[i + 1])) {
13495
- path16 += svgCmd("h", lineLength);
13495
+ path15 += svgCmd("h", lineLength);
13496
13496
  lineLength = 0;
13497
13497
  }
13498
13498
  } else {
13499
13499
  moveBy++;
13500
13500
  }
13501
13501
  }
13502
- return path16;
13502
+ return path15;
13503
13503
  }
13504
13504
  exports2.render = function render(qrData, options, cb) {
13505
13505
  const opts = Utils.getOptions(options);
@@ -13507,10 +13507,10 @@ var require_svg_tag = __commonJS({
13507
13507
  const data = qrData.modules.data;
13508
13508
  const qrcodesize = size + opts.margin * 2;
13509
13509
  const bg = !opts.color.light.a ? "" : "<path " + getColorAttrib(opts.color.light, "fill") + ' d="M0 0h' + qrcodesize + "v" + qrcodesize + 'H0z"/>';
13510
- const path16 = "<path " + getColorAttrib(opts.color.dark, "stroke") + ' d="' + qrToPath(data, size, opts.margin) + '"/>';
13510
+ const path15 = "<path " + getColorAttrib(opts.color.dark, "stroke") + ' d="' + qrToPath(data, size, opts.margin) + '"/>';
13511
13511
  const viewBox = 'viewBox="0 0 ' + qrcodesize + " " + qrcodesize + '"';
13512
13512
  const width = !opts.width ? "" : 'width="' + opts.width + '" height="' + opts.width + '" ';
13513
- const svgTag = '<svg xmlns="http://www.w3.org/2000/svg" ' + width + viewBox + ' shape-rendering="crispEdges">' + bg + path16 + "</svg>\n";
13513
+ const svgTag = '<svg xmlns="http://www.w3.org/2000/svg" ' + width + viewBox + ' shape-rendering="crispEdges">' + bg + path15 + "</svg>\n";
13514
13514
  if (typeof cb === "function") {
13515
13515
  cb(null, svgTag);
13516
13516
  }
@@ -13524,15 +13524,15 @@ var require_svg = __commonJS({
13524
13524
  "../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg.js"(exports2) {
13525
13525
  var svgTagRenderer = require_svg_tag();
13526
13526
  exports2.render = svgTagRenderer.render;
13527
- exports2.renderToFile = function renderToFile(path16, qrData, options, cb) {
13527
+ exports2.renderToFile = function renderToFile(path15, qrData, options, cb) {
13528
13528
  if (typeof cb === "undefined") {
13529
13529
  cb = options;
13530
13530
  options = void 0;
13531
13531
  }
13532
- const fs7 = require("fs");
13532
+ const fs6 = require("fs");
13533
13533
  const svgTag = exports2.render(qrData, options);
13534
13534
  const xmlStr = '<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' + svgTag;
13535
- fs7.writeFile(path16, xmlStr, cb);
13535
+ fs6.writeFile(path15, xmlStr, cb);
13536
13536
  };
13537
13537
  }
13538
13538
  });
@@ -13690,8 +13690,8 @@ var require_server = __commonJS({
13690
13690
  cb
13691
13691
  };
13692
13692
  }
13693
- function getTypeFromFilename(path16) {
13694
- return path16.slice((path16.lastIndexOf(".") - 1 >>> 0) + 2).toLowerCase();
13693
+ function getTypeFromFilename(path15) {
13694
+ return path15.slice((path15.lastIndexOf(".") - 1 >>> 0) + 2).toLowerCase();
13695
13695
  }
13696
13696
  function getRendererFromType(type) {
13697
13697
  switch (type) {
@@ -13755,17 +13755,17 @@ var require_server = __commonJS({
13755
13755
  const renderer = getRendererFromType(params.opts.type);
13756
13756
  return render(renderer.renderToBuffer, text, params);
13757
13757
  };
13758
- exports2.toFile = function toFile(path16, text, opts, cb) {
13759
- if (typeof path16 !== "string" || !(typeof text === "string" || typeof text === "object")) {
13758
+ exports2.toFile = function toFile(path15, text, opts, cb) {
13759
+ if (typeof path15 !== "string" || !(typeof text === "string" || typeof text === "object")) {
13760
13760
  throw new Error("Invalid argument");
13761
13761
  }
13762
13762
  if (arguments.length < 3 && !canPromise()) {
13763
13763
  throw new Error("Too few arguments provided");
13764
13764
  }
13765
13765
  const params = checkParams(text, opts, cb);
13766
- const type = params.opts.type || getTypeFromFilename(path16);
13766
+ const type = params.opts.type || getTypeFromFilename(path15);
13767
13767
  const renderer = getRendererFromType(type);
13768
- const renderToFile = renderer.renderToFile.bind(null, path16);
13768
+ const renderToFile = renderer.renderToFile.bind(null, path15);
13769
13769
  return render(renderToFile, text, params);
13770
13770
  };
13771
13771
  exports2.toFileStream = function toFileStream(stream, text, opts) {
@@ -16983,8 +16983,8 @@ var require_utils3 = __commonJS({
16983
16983
  }
16984
16984
  return ind;
16985
16985
  }
16986
- function removeDotSegments(path16) {
16987
- let input = path16;
16986
+ function removeDotSegments(path15) {
16987
+ let input = path15;
16988
16988
  const output3 = [];
16989
16989
  let nextSlash = -1;
16990
16990
  let len = 0;
@@ -17236,8 +17236,8 @@ var require_schemes = __commonJS({
17236
17236
  wsComponent.secure = void 0;
17237
17237
  }
17238
17238
  if (wsComponent.resourceName) {
17239
- const [path16, query] = wsComponent.resourceName.split("?");
17240
- wsComponent.path = path16 && path16 !== "/" ? path16 : void 0;
17239
+ const [path15, query] = wsComponent.resourceName.split("?");
17240
+ wsComponent.path = path15 && path15 !== "/" ? path15 : void 0;
17241
17241
  wsComponent.query = query;
17242
17242
  wsComponent.resourceName = void 0;
17243
17243
  }
@@ -20630,12 +20630,12 @@ var require_dist = __commonJS({
20630
20630
  throw new Error(`Unknown format "${name}"`);
20631
20631
  return f;
20632
20632
  };
20633
- function addFormats(ajv, list, fs7, exportName) {
20633
+ function addFormats(ajv, list, fs6, exportName) {
20634
20634
  var _a3;
20635
20635
  var _b;
20636
20636
  (_a3 = (_b = ajv.opts.code).formats) !== null && _a3 !== void 0 ? _a3 : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
20637
20637
  for (const f of list)
20638
- ajv.addFormat(f, fs7[f]);
20638
+ ajv.addFormat(f, fs6[f]);
20639
20639
  }
20640
20640
  module2.exports = exports2 = formatsPlugin;
20641
20641
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -20644,11 +20644,11 @@ var require_dist = __commonJS({
20644
20644
  });
20645
20645
 
20646
20646
  // src/bin.ts
20647
- var import_node_path20 = __toESM(require("node:path"), 1);
20647
+ var import_node_path19 = __toESM(require("node:path"), 1);
20648
20648
  var import_node_child_process9 = require("node:child_process");
20649
- var import_node_fs14 = require("node:fs");
20649
+ var import_node_fs13 = require("node:fs");
20650
20650
  var import_node_os11 = require("node:os");
20651
- var import_node_path21 = __toESM(require("node:path"), 1);
20651
+ var import_node_path20 = __toESM(require("node:path"), 1);
20652
20652
 
20653
20653
  // src/install-codex.ts
20654
20654
  var import_promises = __toESM(require("node:fs/promises"), 1);
@@ -20932,11 +20932,11 @@ async function installCodex(options) {
20932
20932
  }
20933
20933
  async function installPrompts(codexHome, prompts, forcePrompts) {
20934
20934
  if (prompts.length === 0) return [];
20935
- const promptsDir2 = import_node_path2.default.join(codexHome, "prompts");
20936
- await import_promises.default.mkdir(promptsDir2, { recursive: true, mode: 448 });
20935
+ const promptsDir = import_node_path2.default.join(codexHome, "prompts");
20936
+ await import_promises.default.mkdir(promptsDir, { recursive: true, mode: 448 });
20937
20937
  const out = [];
20938
20938
  for (const prompt of prompts) {
20939
- const promptPath = import_node_path2.default.join(promptsDir2, `${prompt.name}.md`);
20939
+ const promptPath = import_node_path2.default.join(promptsDir, `${prompt.name}.md`);
20940
20940
  let existing = null;
20941
20941
  try {
20942
20942
  existing = await import_promises.default.readFile(promptPath, "utf8");
@@ -22537,10 +22537,10 @@ function mergeDefs(...defs) {
22537
22537
  function cloneDef(schema) {
22538
22538
  return mergeDefs(schema._zod.def);
22539
22539
  }
22540
- function getElementAtPath(obj, path16) {
22541
- if (!path16)
22540
+ function getElementAtPath(obj, path15) {
22541
+ if (!path15)
22542
22542
  return obj;
22543
- return path16.reduce((acc, key) => acc?.[key], obj);
22543
+ return path15.reduce((acc, key) => acc?.[key], obj);
22544
22544
  }
22545
22545
  function promiseAllObject(promisesObj) {
22546
22546
  const keys = Object.keys(promisesObj);
@@ -22949,11 +22949,11 @@ function explicitlyAborted(x, startIndex = 0) {
22949
22949
  }
22950
22950
  return false;
22951
22951
  }
22952
- function prefixIssues(path16, issues) {
22952
+ function prefixIssues(path15, issues) {
22953
22953
  return issues.map((iss) => {
22954
22954
  var _a3;
22955
22955
  (_a3 = iss).path ?? (_a3.path = []);
22956
- iss.path.unshift(path16);
22956
+ iss.path.unshift(path15);
22957
22957
  return iss;
22958
22958
  });
22959
22959
  }
@@ -23100,16 +23100,16 @@ function flattenError(error51, mapper = (issue2) => issue2.message) {
23100
23100
  }
23101
23101
  function formatError(error51, mapper = (issue2) => issue2.message) {
23102
23102
  const fieldErrors = { _errors: [] };
23103
- const processError = (error52, path16 = []) => {
23103
+ const processError = (error52, path15 = []) => {
23104
23104
  for (const issue2 of error52.issues) {
23105
23105
  if (issue2.code === "invalid_union" && issue2.errors.length) {
23106
- issue2.errors.map((issues) => processError({ issues }, [...path16, ...issue2.path]));
23106
+ issue2.errors.map((issues) => processError({ issues }, [...path15, ...issue2.path]));
23107
23107
  } else if (issue2.code === "invalid_key") {
23108
- processError({ issues: issue2.issues }, [...path16, ...issue2.path]);
23108
+ processError({ issues: issue2.issues }, [...path15, ...issue2.path]);
23109
23109
  } else if (issue2.code === "invalid_element") {
23110
- processError({ issues: issue2.issues }, [...path16, ...issue2.path]);
23110
+ processError({ issues: issue2.issues }, [...path15, ...issue2.path]);
23111
23111
  } else {
23112
- const fullpath = [...path16, ...issue2.path];
23112
+ const fullpath = [...path15, ...issue2.path];
23113
23113
  if (fullpath.length === 0) {
23114
23114
  fieldErrors._errors.push(mapper(issue2));
23115
23115
  } else {
@@ -23136,17 +23136,17 @@ function formatError(error51, mapper = (issue2) => issue2.message) {
23136
23136
  }
23137
23137
  function treeifyError(error51, mapper = (issue2) => issue2.message) {
23138
23138
  const result = { errors: [] };
23139
- const processError = (error52, path16 = []) => {
23139
+ const processError = (error52, path15 = []) => {
23140
23140
  var _a3, _b;
23141
23141
  for (const issue2 of error52.issues) {
23142
23142
  if (issue2.code === "invalid_union" && issue2.errors.length) {
23143
- issue2.errors.map((issues) => processError({ issues }, [...path16, ...issue2.path]));
23143
+ issue2.errors.map((issues) => processError({ issues }, [...path15, ...issue2.path]));
23144
23144
  } else if (issue2.code === "invalid_key") {
23145
- processError({ issues: issue2.issues }, [...path16, ...issue2.path]);
23145
+ processError({ issues: issue2.issues }, [...path15, ...issue2.path]);
23146
23146
  } else if (issue2.code === "invalid_element") {
23147
- processError({ issues: issue2.issues }, [...path16, ...issue2.path]);
23147
+ processError({ issues: issue2.issues }, [...path15, ...issue2.path]);
23148
23148
  } else {
23149
- const fullpath = [...path16, ...issue2.path];
23149
+ const fullpath = [...path15, ...issue2.path];
23150
23150
  if (fullpath.length === 0) {
23151
23151
  result.errors.push(mapper(issue2));
23152
23152
  continue;
@@ -23178,8 +23178,8 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
23178
23178
  }
23179
23179
  function toDotPath(_path) {
23180
23180
  const segs = [];
23181
- const path16 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
23182
- for (const seg of path16) {
23181
+ const path15 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
23182
+ for (const seg of path15) {
23183
23183
  if (typeof seg === "number")
23184
23184
  segs.push(`[${seg}]`);
23185
23185
  else if (typeof seg === "symbol")
@@ -35871,13 +35871,13 @@ function resolveRef(ref, ctx) {
35871
35871
  if (!ref.startsWith("#")) {
35872
35872
  throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
35873
35873
  }
35874
- const path16 = ref.slice(1).split("/").filter(Boolean);
35875
- if (path16.length === 0) {
35874
+ const path15 = ref.slice(1).split("/").filter(Boolean);
35875
+ if (path15.length === 0) {
35876
35876
  return ctx.rootSchema;
35877
35877
  }
35878
35878
  const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
35879
- if (path16[0] === defsKey) {
35880
- const key = path16[1];
35879
+ if (path15[0] === defsKey) {
35880
+ const key = path15[1];
35881
35881
  if (!key || !ctx.defs[key]) {
35882
35882
  throw new Error(`Reference not found: ${ref}`);
35883
35883
  }
@@ -36415,10 +36415,18 @@ var mrrlinOperatorSettingsSchema = external_exports.object({
36415
36415
  // tick, async-job consumer, deploy-gate promotion, new-deploy dispatch) stops starting NEW
36416
36416
  // work; in-flight turns are never interrupted.
36417
36417
  autonomyPaused: external_exports.boolean(),
36418
+ // Operator's currently-selected project, persisted so the server-side scheduler tick can scope
36419
+ // to it (the web active-project selection is otherwise only a browser cookie). Null = not
36420
+ // selected yet.
36421
+ activeProjectSlug: external_exports.string().min(1).nullable(),
36418
36422
  createdAt: external_exports.string().datetime(),
36419
36423
  updatedAt: external_exports.string().datetime()
36420
36424
  });
36421
- var mrrlinOperatorSettingsUpdateSchema = external_exports.object({ consensusEnabled: external_exports.boolean().optional(), autonomyPaused: external_exports.boolean().optional() }).strict().refine((value) => Object.keys(value).length > 0, {
36425
+ var mrrlinOperatorSettingsUpdateSchema = external_exports.object({
36426
+ consensusEnabled: external_exports.boolean().optional(),
36427
+ autonomyPaused: external_exports.boolean().optional(),
36428
+ activeProjectSlug: external_exports.string().min(1).nullable().optional()
36429
+ }).strict().refine((value) => Object.keys(value).length > 0, {
36422
36430
  message: "OperatorSettingsUpdate requires at least one field"
36423
36431
  });
36424
36432
  var operatorSettingsResponseSchema = external_exports.object({ data: mrrlinOperatorSettingsSchema });
@@ -37718,18 +37726,18 @@ function createMrrlinClient(config2) {
37718
37726
  const customFetch = config2.fetch ?? globalThis.fetch;
37719
37727
  const baseUrl = config2.baseUrl.replace(/\/$/, "");
37720
37728
  const token = config2.token;
37721
- async function request(path16, init) {
37729
+ async function request(path15, init) {
37722
37730
  const method = init?.method ?? "GET";
37723
37731
  const headers = new Headers(init?.headers ?? {});
37724
37732
  if (token && !headers.has("authorization")) {
37725
37733
  headers.set("authorization", `Bearer ${token}`);
37726
37734
  }
37727
- const response = await customFetch(`${baseUrl}${path16}`, { ...init, headers });
37735
+ const response = await customFetch(`${baseUrl}${path15}`, { ...init, headers });
37728
37736
  if (!response.ok) {
37729
37737
  const body = await response.text();
37730
37738
  let code = `HTTP_${response.status}`;
37731
37739
  let violations = null;
37732
- let message = `Mrrlin API ${method} ${path16} failed: ${response.status}`;
37740
+ let message = `Mrrlin API ${method} ${path15} failed: ${response.status}`;
37733
37741
  try {
37734
37742
  const parsed = JSON.parse(body);
37735
37743
  const violationsParsed = apiViolationsErrorSchema.safeParse(parsed);
@@ -37749,7 +37757,7 @@ function createMrrlinClient(config2) {
37749
37757
  throw new MrrlinApiError({
37750
37758
  code,
37751
37759
  method,
37752
- path: path16,
37760
+ path: path15,
37753
37761
  responseBody: body,
37754
37762
  status: response.status,
37755
37763
  violations,
@@ -38004,7 +38012,7 @@ function createMrrlinClient(config2) {
38004
38012
  return taskEventListResponseSchema.parse(body).data;
38005
38013
  },
38006
38014
  async listTasks(projectSlug, filters = {}) {
38007
- const path16 = appendQuery(`${projectPath(projectSlug)}/tasks`, {
38015
+ const path15 = appendQuery(`${projectPath(projectSlug)}/tasks`, {
38008
38016
  assignee: filters.assignee,
38009
38017
  autonomyLevel: filters.autonomyLevel,
38010
38018
  blockedBy: filters.blockedBy,
@@ -38016,7 +38024,7 @@ function createMrrlinClient(config2) {
38016
38024
  subcategory: filters.subcategory,
38017
38025
  type: filters.type
38018
38026
  });
38019
- const body = await request(path16);
38027
+ const body = await request(path15);
38020
38028
  return taskListResponseSchema.parse(body).data;
38021
38029
  },
38022
38030
  async listTaxonomy(projectSlug) {
@@ -38024,22 +38032,22 @@ function createMrrlinClient(config2) {
38024
38032
  return taxonomyListResponseSchema.parse(body).data;
38025
38033
  },
38026
38034
  async listWikiPages(projectSlug, filters = {}) {
38027
- const path16 = appendQuery(`${projectPath(projectSlug)}/wiki`, {
38035
+ const path15 = appendQuery(`${projectPath(projectSlug)}/wiki`, {
38028
38036
  folder: filters.folder,
38029
38037
  q: filters.q,
38030
38038
  taskId: filters.taskId
38031
38039
  });
38032
- const body = await request(path16);
38040
+ const body = await request(path15);
38033
38041
  return wikiPageListResponseSchema.parse(body).data;
38034
38042
  },
38035
38043
  async searchWikiPages(projectSlug, query) {
38036
- const path16 = appendQuery(`${projectPath(projectSlug)}/wiki/search`, {
38044
+ const path15 = appendQuery(`${projectPath(projectSlug)}/wiki/search`, {
38037
38045
  folder: query.folder,
38038
38046
  limit: query.limit === void 0 ? void 0 : String(query.limit),
38039
38047
  pathPrefix: query.pathPrefix,
38040
38048
  q: query.q
38041
38049
  });
38042
- const body = await request(path16);
38050
+ const body = await request(path15);
38043
38051
  return wikiPageSearchResponseSchema.parse(body).data;
38044
38052
  },
38045
38053
  async updatePlan(projectSlug, planId, patch) {
@@ -38781,7 +38789,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
38781
38789
  }
38782
38790
 
38783
38791
  // src/_generated/version.ts
38784
- var PKG_VERSION = "0.3.26";
38792
+ var PKG_VERSION = "0.3.27";
38785
38793
 
38786
38794
  // src/api-base-url.ts
38787
38795
  var DEFAULT_API_BASE_URL = "http://127.0.0.1:8787";
@@ -40924,8 +40932,8 @@ function newArtifactId() {
40924
40932
  return `EA-${import_node_crypto4.default.randomUUID()}`;
40925
40933
  }
40926
40934
  var BLAST_RADIUS_FLOOR_PATTERNS = [/^supabase\/migrations\//, /^packages\/db\/src\/schema\.ts$/];
40927
- function isBlastRadiusFloorPath(path16) {
40928
- return BLAST_RADIUS_FLOOR_PATTERNS.some((re) => re.test(path16));
40935
+ function isBlastRadiusFloorPath(path15) {
40936
+ return BLAST_RADIUS_FLOOR_PATTERNS.some((re) => re.test(path15));
40929
40937
  }
40930
40938
  var execFileAsync = (0, import_node_util.promisify)(import_node_child_process6.execFile);
40931
40939
  async function defaultListRunDiffPaths(opts) {
@@ -46018,9 +46026,9 @@ var DirectorRelay = class {
46018
46026
 
46019
46027
  // src/remote-phone-relay.ts
46020
46028
  function loadOrCreateAgentDeviceKey() {
46021
- const path16 = (0, import_node_path10.join)((0, import_node_os6.homedir)(), ".mrrlin", "agent-device-key");
46029
+ const path15 = (0, import_node_path10.join)((0, import_node_os6.homedir)(), ".mrrlin", "agent-device-key");
46022
46030
  try {
46023
- const raw = JSON.parse((0, import_node_fs8.readFileSync)(path16, "utf8"));
46031
+ const raw = JSON.parse((0, import_node_fs8.readFileSync)(path15, "utf8"));
46024
46032
  if (typeof raw.priv === "string" && typeof raw.pub === "string") {
46025
46033
  return { privateKey: fromBase64Url(raw.priv), publicKey: fromBase64Url(raw.pub) };
46026
46034
  }
@@ -46030,7 +46038,7 @@ function loadOrCreateAgentDeviceKey() {
46030
46038
  try {
46031
46039
  (0, import_node_fs8.mkdirSync)((0, import_node_path10.join)((0, import_node_os6.homedir)(), ".mrrlin"), { recursive: true });
46032
46040
  (0, import_node_fs8.writeFileSync)(
46033
- path16,
46041
+ path15,
46034
46042
  JSON.stringify({ priv: toBase64Url(kp.privateKey), pub: toBase64Url(kp.publicKey) }),
46035
46043
  { mode: 384 }
46036
46044
  );
@@ -46253,9 +46261,9 @@ var CheckoutRegistry = class {
46253
46261
  get(slug) {
46254
46262
  return this.read()[slug] ?? null;
46255
46263
  }
46256
- confirm(slug, path16, now) {
46264
+ confirm(slug, path15, now) {
46257
46265
  const all = this.read();
46258
- all[slug] = { path: path16, confirmedAt: now };
46266
+ all[slug] = { path: path15, confirmedAt: now };
46259
46267
  (0, import_node_fs9.writeFileSync)(this.file, JSON.stringify(all, null, 2));
46260
46268
  }
46261
46269
  };
@@ -54796,10 +54804,10 @@ async function uninstallCodex(options = {}) {
54796
54804
  }
54797
54805
  async function uninstallPrompts(codexHome, names) {
54798
54806
  if (names.length === 0) return [];
54799
- const promptsDir2 = import_node_path18.default.join(codexHome, "prompts");
54807
+ const promptsDir = import_node_path18.default.join(codexHome, "prompts");
54800
54808
  const out = [];
54801
54809
  for (const name of names) {
54802
- const promptPath = import_node_path18.default.join(promptsDir2, `${name}.md`);
54810
+ const promptPath = import_node_path18.default.join(promptsDir, `${name}.md`);
54803
54811
  try {
54804
54812
  await import_promises4.default.unlink(promptPath);
54805
54813
  out.push({ name, action: "removed", promptPath });
@@ -54815,19 +54823,6 @@ async function uninstallPrompts(codexHome, names) {
54815
54823
  return out;
54816
54824
  }
54817
54825
 
54818
- // src/report-issue-prompt.ts
54819
- var import_node_fs13 = __toESM(require("node:fs"), 1);
54820
- var import_node_path19 = __toESM(require("node:path"), 1);
54821
- var import_node_url3 = require("node:url");
54822
- var import_meta3 = {};
54823
- function promptsDir() {
54824
- if (typeof __dirname !== "undefined") return import_node_path19.default.join(__dirname, "prompts");
54825
- return import_node_path19.default.join(import_node_path19.default.dirname((0, import_node_url3.fileURLToPath)(import_meta3.url)), "prompts");
54826
- }
54827
- function readReportIssuePrompt() {
54828
- return import_node_fs13.default.readFileSync(import_node_path19.default.join(promptsDir(), "report-issue.md"), "utf8");
54829
- }
54830
-
54831
54826
  // src/bin.ts
54832
54827
  function pm2Runner(args) {
54833
54828
  const r = (0, import_node_child_process9.spawnSync)("pm2", args, { encoding: "utf8" });
@@ -54863,9 +54858,7 @@ Usage:
54863
54858
 
54864
54859
  mrrlin-mcp install-codex Idempotently register Mrrlin in
54865
54860
  [--force] ~/.codex/config.toml (or CODEX_HOME). Adds an
54866
- [--force-prompts] [mcp_servers.mrrlin] block AND drops the bundled
54867
- slash-command prompts (currently: /report-issue)
54868
- into <CODEX_HOME>/prompts/. Development
54861
+ [mcp_servers.mrrlin] block. Development
54869
54862
  checkouts register the local dist/bin.cjs;
54870
54863
  published npm installs register
54871
54864
  \`mrrlin-mcp serve\`.
@@ -54890,11 +54883,6 @@ Usage:
54890
54883
  To CHANGE or REMOVE the baked target, re-run with
54891
54884
  --force (or the new env vars).
54892
54885
  --force replaces an existing conflicting block.
54893
- --force-prompts overwrites prompt files that
54894
- already exist with different content. WITHOUT it,
54895
- local edits to <CODEX_HOME>/prompts/<name>.md are
54896
- preserved across patch releases (reported as
54897
- 'skipped-modified').
54898
54886
 
54899
54887
  mrrlin-mcp director-bridge Run a local ws://127.0.0.1 (plain HTTP +
54900
54888
  WebSocket) bridge that lets the web Director
@@ -54990,19 +54978,6 @@ Usage:
54990
54978
  support/debug packaging flow:
54991
54979
  printf %s "$HINT" | mrrlin-mcp redact
54992
54980
 
54993
- mrrlin-mcp report-issue Print the bundled compatibility prompt for the
54994
- legacy /report-issue slash command. Preferred
54995
- flows now live inside the Mrrlin UI:
54996
- - Director chat: /report-issue <what broke>
54997
- - Header menu: Report issue
54998
- Those flows package bridge logs, transcript
54999
- context, screenshots, and create a GitHub issue
55000
- in fnnzzz/mrrlin via local gh. This command is
55001
- mainly useful for inspecting or re-installing
55002
- the shipped prompt:
55003
- codex "$(mrrlin-mcp report-issue)"
55004
- mrrlin-mcp report-issue > ~/.codex/prompts/report-issue.md
55005
-
55006
54981
  mrrlin-mcp --help Show this help.
55007
54982
 
55008
54983
  Operator notes:
@@ -55038,7 +55013,6 @@ async function main() {
55038
55013
  }
55039
55014
  case "install-codex": {
55040
55015
  const force = rest.includes("--force");
55041
- const forcePrompts = rest.includes("--force-prompts");
55042
55016
  const binPath = resolveSelfBinPath();
55043
55017
  try {
55044
55018
  const b = await installBrowser();
@@ -55055,9 +55029,7 @@ async function main() {
55055
55029
  const result = await installCodex({
55056
55030
  binPath,
55057
55031
  force,
55058
- forcePrompts,
55059
- serveEnv,
55060
- prompts: [{ name: "report-issue", content: readReportIssuePrompt() }]
55032
+ serveEnv
55061
55033
  });
55062
55034
  process.stderr.write(`[mrrlin-mcp install-codex] ${result.action} ${result.configPath}
55063
55035
  `);
@@ -55075,6 +55047,11 @@ async function main() {
55075
55047
  );
55076
55048
  }
55077
55049
  }
55050
+ try {
55051
+ const codexHome = process.env.CODEX_HOME ?? import_node_path20.default.join(process.env.HOME ?? (0, import_node_os11.homedir)(), ".codex");
55052
+ (0, import_node_fs13.rmSync)(import_node_path20.default.join(codexHome, "prompts", "report-issue.md"), { force: true });
55053
+ } catch {
55054
+ }
55078
55055
  return;
55079
55056
  }
55080
55057
  case "redact": {
@@ -55086,10 +55063,6 @@ async function main() {
55086
55063
  process.stdout.write(redact(input));
55087
55064
  return;
55088
55065
  }
55089
- case "report-issue": {
55090
- process.stdout.write(readReportIssuePrompt());
55091
- return;
55092
- }
55093
55066
  case "director-bridge": {
55094
55067
  await startDirectorBridge();
55095
55068
  return;
@@ -55106,8 +55079,8 @@ async function main() {
55106
55079
  env: process.env,
55107
55080
  cwd: process.cwd(),
55108
55081
  writeFile: (p, c) => {
55109
- (0, import_node_fs14.mkdirSync)(import_node_path21.default.dirname(p), { recursive: true, mode: 448 });
55110
- (0, import_node_fs14.writeFileSync)(p, c, { mode: 384 });
55082
+ (0, import_node_fs13.mkdirSync)(import_node_path20.default.dirname(p), { recursive: true, mode: 448 });
55083
+ (0, import_node_fs13.writeFileSync)(p, c, { mode: 384 });
55111
55084
  },
55112
55085
  runPm2: pm2Runner,
55113
55086
  which: whichBin,
@@ -55124,14 +55097,14 @@ async function main() {
55124
55097
  runPm2: (a) => ({ code: pm2Runner(a).code }),
55125
55098
  removeFile: (p) => {
55126
55099
  try {
55127
- (0, import_node_fs14.rmSync)(p, { force: true });
55100
+ (0, import_node_fs13.rmSync)(p, { force: true });
55128
55101
  } catch {
55129
55102
  }
55130
55103
  },
55131
55104
  purgeSecret: purge,
55132
55105
  secretPath: agentCredentialPath(),
55133
55106
  tokenPath: operatorTokenPath(),
55134
- ecoPath: import_node_path21.default.join(process.env.HOME ?? (0, import_node_os11.homedir)(), ".mrrlin", "ecosystem.config.cjs"),
55107
+ ecoPath: import_node_path20.default.join(process.env.HOME ?? (0, import_node_os11.homedir)(), ".mrrlin", "ecosystem.config.cjs"),
55135
55108
  log: (m) => process.stderr.write(`[mrrlin-mcp uninstall-service] ${m}
55136
55109
  `)
55137
55110
  });
@@ -55145,14 +55118,14 @@ async function main() {
55145
55118
  runPm2: (a) => ({ code: pm2Runner(a).code }),
55146
55119
  removeFile: (p) => {
55147
55120
  try {
55148
- (0, import_node_fs14.rmSync)(p, { force: true });
55121
+ (0, import_node_fs13.rmSync)(p, { force: true });
55149
55122
  } catch {
55150
55123
  }
55151
55124
  },
55152
55125
  purgeSecret: true,
55153
55126
  secretPath: agentCredentialPath(),
55154
55127
  tokenPath: operatorTokenPath(),
55155
- ecoPath: import_node_path21.default.join(home, ".mrrlin", "ecosystem.config.cjs"),
55128
+ ecoPath: import_node_path20.default.join(home, ".mrrlin", "ecosystem.config.cjs"),
55156
55129
  log
55157
55130
  });
55158
55131
  let codexOk = true;
@@ -55172,7 +55145,7 @@ async function main() {
55172
55145
  log(`codex config NOT modified: ${error51 instanceof Error ? error51.message : String(error51)}`);
55173
55146
  }
55174
55147
  try {
55175
- (0, import_node_fs14.rmSync)(import_node_path21.default.join(home, ".mrrlin"), { recursive: true, force: true });
55148
+ (0, import_node_fs13.rmSync)(import_node_path20.default.join(home, ".mrrlin"), { recursive: true, force: true });
55176
55149
  } catch {
55177
55150
  }
55178
55151
  log("removed ~/.mrrlin");
@@ -55213,7 +55186,7 @@ ${HELP_TEXT}`);
55213
55186
  }
55214
55187
  }
55215
55188
  function resolveSelfBinPath() {
55216
- return import_node_path20.default.resolve(process.argv[1] ?? process.execPath);
55189
+ return import_node_path19.default.resolve(process.argv[1] ?? process.execPath);
55217
55190
  }
55218
55191
  main().catch((error51) => {
55219
55192
  process.stderr.write(`mrrlin-mcp fatal error: ${error51 instanceof Error ? error51.message : String(error51)}