@sema-agent/cli 1.0.53 → 1.0.54

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/sema.js CHANGED
@@ -42700,11 +42700,1590 @@ var init_json = __esm({
42700
42700
  }
42701
42701
  });
42702
42702
 
42703
+ // node_modules/graceful-fs/polyfills.js
42704
+ var require_polyfills = __commonJS({
42705
+ "node_modules/graceful-fs/polyfills.js"(exports2, module2) {
42706
+ var constants6 = __require("constants");
42707
+ var origCwd = process.cwd;
42708
+ var cwd5 = null;
42709
+ var platform4 = process.env.GRACEFUL_FS_PLATFORM || process.platform;
42710
+ process.cwd = function() {
42711
+ if (!cwd5)
42712
+ cwd5 = origCwd.call(process);
42713
+ return cwd5;
42714
+ };
42715
+ try {
42716
+ process.cwd();
42717
+ } catch (er) {
42718
+ }
42719
+ if (typeof process.chdir === "function") {
42720
+ chdir = process.chdir;
42721
+ process.chdir = function(d4) {
42722
+ cwd5 = null;
42723
+ chdir.call(process, d4);
42724
+ };
42725
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
42726
+ }
42727
+ var chdir;
42728
+ module2.exports = patch2;
42729
+ function patch2(fs15) {
42730
+ if (constants6.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
42731
+ patchLchmod(fs15);
42732
+ }
42733
+ if (!fs15.lutimes) {
42734
+ patchLutimes(fs15);
42735
+ }
42736
+ fs15.chown = chownFix(fs15.chown);
42737
+ fs15.fchown = chownFix(fs15.fchown);
42738
+ fs15.lchown = chownFix(fs15.lchown);
42739
+ fs15.chmod = chmodFix(fs15.chmod);
42740
+ fs15.fchmod = chmodFix(fs15.fchmod);
42741
+ fs15.lchmod = chmodFix(fs15.lchmod);
42742
+ fs15.chownSync = chownFixSync(fs15.chownSync);
42743
+ fs15.fchownSync = chownFixSync(fs15.fchownSync);
42744
+ fs15.lchownSync = chownFixSync(fs15.lchownSync);
42745
+ fs15.chmodSync = chmodFixSync(fs15.chmodSync);
42746
+ fs15.fchmodSync = chmodFixSync(fs15.fchmodSync);
42747
+ fs15.lchmodSync = chmodFixSync(fs15.lchmodSync);
42748
+ fs15.stat = statFix(fs15.stat);
42749
+ fs15.fstat = statFix(fs15.fstat);
42750
+ fs15.lstat = statFix(fs15.lstat);
42751
+ fs15.statSync = statFixSync(fs15.statSync);
42752
+ fs15.fstatSync = statFixSync(fs15.fstatSync);
42753
+ fs15.lstatSync = statFixSync(fs15.lstatSync);
42754
+ if (fs15.chmod && !fs15.lchmod) {
42755
+ fs15.lchmod = function(path28, mode, cb) {
42756
+ if (cb) process.nextTick(cb);
42757
+ };
42758
+ fs15.lchmodSync = function() {
42759
+ };
42760
+ }
42761
+ if (fs15.chown && !fs15.lchown) {
42762
+ fs15.lchown = function(path28, uid, gid, cb) {
42763
+ if (cb) process.nextTick(cb);
42764
+ };
42765
+ fs15.lchownSync = function() {
42766
+ };
42767
+ }
42768
+ if (platform4 === "win32") {
42769
+ fs15.rename = typeof fs15.rename !== "function" ? fs15.rename : (function(fs$rename) {
42770
+ function rename17(from, to, cb) {
42771
+ var start = Date.now();
42772
+ var backoff3 = 0;
42773
+ fs$rename(from, to, function CB(er) {
42774
+ if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
42775
+ setTimeout(function() {
42776
+ fs15.stat(to, function(stater, st2) {
42777
+ if (stater && stater.code === "ENOENT")
42778
+ fs$rename(from, to, CB);
42779
+ else
42780
+ cb(er);
42781
+ });
42782
+ }, backoff3);
42783
+ if (backoff3 < 100)
42784
+ backoff3 += 10;
42785
+ return;
42786
+ }
42787
+ if (cb) cb(er);
42788
+ });
42789
+ }
42790
+ if (Object.setPrototypeOf) Object.setPrototypeOf(rename17, fs$rename);
42791
+ return rename17;
42792
+ })(fs15.rename);
42793
+ }
42794
+ fs15.read = typeof fs15.read !== "function" ? fs15.read : (function(fs$read) {
42795
+ function read(fd2, buffer5, offset, length, position2, callback_) {
42796
+ var callback;
42797
+ if (callback_ && typeof callback_ === "function") {
42798
+ var eagCounter = 0;
42799
+ callback = function(er, _2, __) {
42800
+ if (er && er.code === "EAGAIN" && eagCounter < 10) {
42801
+ eagCounter++;
42802
+ return fs$read.call(fs15, fd2, buffer5, offset, length, position2, callback);
42803
+ }
42804
+ callback_.apply(this, arguments);
42805
+ };
42806
+ }
42807
+ return fs$read.call(fs15, fd2, buffer5, offset, length, position2, callback);
42808
+ }
42809
+ if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
42810
+ return read;
42811
+ })(fs15.read);
42812
+ fs15.readSync = typeof fs15.readSync !== "function" ? fs15.readSync : /* @__PURE__ */ (function(fs$readSync) {
42813
+ return function(fd2, buffer5, offset, length, position2) {
42814
+ var eagCounter = 0;
42815
+ while (true) {
42816
+ try {
42817
+ return fs$readSync.call(fs15, fd2, buffer5, offset, length, position2);
42818
+ } catch (er) {
42819
+ if (er.code === "EAGAIN" && eagCounter < 10) {
42820
+ eagCounter++;
42821
+ continue;
42822
+ }
42823
+ throw er;
42824
+ }
42825
+ }
42826
+ };
42827
+ })(fs15.readSync);
42828
+ function patchLchmod(fs16) {
42829
+ fs16.lchmod = function(path28, mode, callback) {
42830
+ fs16.open(
42831
+ path28,
42832
+ constants6.O_WRONLY | constants6.O_SYMLINK,
42833
+ mode,
42834
+ function(err8, fd2) {
42835
+ if (err8) {
42836
+ if (callback) callback(err8);
42837
+ return;
42838
+ }
42839
+ fs16.fchmod(fd2, mode, function(err9) {
42840
+ fs16.close(fd2, function(err22) {
42841
+ if (callback) callback(err9 || err22);
42842
+ });
42843
+ });
42844
+ }
42845
+ );
42846
+ };
42847
+ fs16.lchmodSync = function(path28, mode) {
42848
+ var fd2 = fs16.openSync(path28, constants6.O_WRONLY | constants6.O_SYMLINK, mode);
42849
+ var threw = true;
42850
+ var ret;
42851
+ try {
42852
+ ret = fs16.fchmodSync(fd2, mode);
42853
+ threw = false;
42854
+ } finally {
42855
+ if (threw) {
42856
+ try {
42857
+ fs16.closeSync(fd2);
42858
+ } catch (er) {
42859
+ }
42860
+ } else {
42861
+ fs16.closeSync(fd2);
42862
+ }
42863
+ }
42864
+ return ret;
42865
+ };
42866
+ }
42867
+ function patchLutimes(fs16) {
42868
+ if (constants6.hasOwnProperty("O_SYMLINK") && fs16.futimes) {
42869
+ fs16.lutimes = function(path28, at, mt2, cb) {
42870
+ fs16.open(path28, constants6.O_SYMLINK, function(er, fd2) {
42871
+ if (er) {
42872
+ if (cb) cb(er);
42873
+ return;
42874
+ }
42875
+ fs16.futimes(fd2, at, mt2, function(er2) {
42876
+ fs16.close(fd2, function(er22) {
42877
+ if (cb) cb(er2 || er22);
42878
+ });
42879
+ });
42880
+ });
42881
+ };
42882
+ fs16.lutimesSync = function(path28, at, mt2) {
42883
+ var fd2 = fs16.openSync(path28, constants6.O_SYMLINK);
42884
+ var ret;
42885
+ var threw = true;
42886
+ try {
42887
+ ret = fs16.futimesSync(fd2, at, mt2);
42888
+ threw = false;
42889
+ } finally {
42890
+ if (threw) {
42891
+ try {
42892
+ fs16.closeSync(fd2);
42893
+ } catch (er) {
42894
+ }
42895
+ } else {
42896
+ fs16.closeSync(fd2);
42897
+ }
42898
+ }
42899
+ return ret;
42900
+ };
42901
+ } else if (fs16.futimes) {
42902
+ fs16.lutimes = function(_a5, _b2, _c360, cb) {
42903
+ if (cb) process.nextTick(cb);
42904
+ };
42905
+ fs16.lutimesSync = function() {
42906
+ };
42907
+ }
42908
+ }
42909
+ function chmodFix(orig) {
42910
+ if (!orig) return orig;
42911
+ return function(target, mode, cb) {
42912
+ return orig.call(fs15, target, mode, function(er) {
42913
+ if (chownErOk(er)) er = null;
42914
+ if (cb) cb.apply(this, arguments);
42915
+ });
42916
+ };
42917
+ }
42918
+ function chmodFixSync(orig) {
42919
+ if (!orig) return orig;
42920
+ return function(target, mode) {
42921
+ try {
42922
+ return orig.call(fs15, target, mode);
42923
+ } catch (er) {
42924
+ if (!chownErOk(er)) throw er;
42925
+ }
42926
+ };
42927
+ }
42928
+ function chownFix(orig) {
42929
+ if (!orig) return orig;
42930
+ return function(target, uid, gid, cb) {
42931
+ return orig.call(fs15, target, uid, gid, function(er) {
42932
+ if (chownErOk(er)) er = null;
42933
+ if (cb) cb.apply(this, arguments);
42934
+ });
42935
+ };
42936
+ }
42937
+ function chownFixSync(orig) {
42938
+ if (!orig) return orig;
42939
+ return function(target, uid, gid) {
42940
+ try {
42941
+ return orig.call(fs15, target, uid, gid);
42942
+ } catch (er) {
42943
+ if (!chownErOk(er)) throw er;
42944
+ }
42945
+ };
42946
+ }
42947
+ function statFix(orig) {
42948
+ if (!orig) return orig;
42949
+ return function(target, options, cb) {
42950
+ if (typeof options === "function") {
42951
+ cb = options;
42952
+ options = null;
42953
+ }
42954
+ function callback(er, stats3) {
42955
+ if (stats3) {
42956
+ if (stats3.uid < 0) stats3.uid += 4294967296;
42957
+ if (stats3.gid < 0) stats3.gid += 4294967296;
42958
+ }
42959
+ if (cb) cb.apply(this, arguments);
42960
+ }
42961
+ return options ? orig.call(fs15, target, options, callback) : orig.call(fs15, target, callback);
42962
+ };
42963
+ }
42964
+ function statFixSync(orig) {
42965
+ if (!orig) return orig;
42966
+ return function(target, options) {
42967
+ var stats3 = options ? orig.call(fs15, target, options) : orig.call(fs15, target);
42968
+ if (stats3) {
42969
+ if (stats3.uid < 0) stats3.uid += 4294967296;
42970
+ if (stats3.gid < 0) stats3.gid += 4294967296;
42971
+ }
42972
+ return stats3;
42973
+ };
42974
+ }
42975
+ function chownErOk(er) {
42976
+ if (!er)
42977
+ return true;
42978
+ if (er.code === "ENOSYS")
42979
+ return true;
42980
+ var nonroot = !process.getuid || process.getuid() !== 0;
42981
+ if (nonroot) {
42982
+ if (er.code === "EINVAL" || er.code === "EPERM")
42983
+ return true;
42984
+ }
42985
+ return false;
42986
+ }
42987
+ }
42988
+ }
42989
+ });
42990
+
42991
+ // node_modules/graceful-fs/legacy-streams.js
42992
+ var require_legacy_streams = __commonJS({
42993
+ "node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
42994
+ var Stream4 = __require("stream").Stream;
42995
+ module2.exports = legacy;
42996
+ function legacy(fs15) {
42997
+ return {
42998
+ ReadStream: ReadStream2,
42999
+ WriteStream
43000
+ };
43001
+ function ReadStream2(path28, options) {
43002
+ if (!(this instanceof ReadStream2)) return new ReadStream2(path28, options);
43003
+ Stream4.call(this);
43004
+ var self2 = this;
43005
+ this.path = path28;
43006
+ this.fd = null;
43007
+ this.readable = true;
43008
+ this.paused = false;
43009
+ this.flags = "r";
43010
+ this.mode = 438;
43011
+ this.bufferSize = 64 * 1024;
43012
+ options = options || {};
43013
+ var keys2 = Object.keys(options);
43014
+ for (var index = 0, length = keys2.length; index < length; index++) {
43015
+ var key = keys2[index];
43016
+ this[key] = options[key];
43017
+ }
43018
+ if (this.encoding) this.setEncoding(this.encoding);
43019
+ if (this.start !== void 0) {
43020
+ if ("number" !== typeof this.start) {
43021
+ throw TypeError("start must be a Number");
43022
+ }
43023
+ if (this.end === void 0) {
43024
+ this.end = Infinity;
43025
+ } else if ("number" !== typeof this.end) {
43026
+ throw TypeError("end must be a Number");
43027
+ }
43028
+ if (this.start > this.end) {
43029
+ throw new Error("start must be <= end");
43030
+ }
43031
+ this.pos = this.start;
43032
+ }
43033
+ if (this.fd !== null) {
43034
+ process.nextTick(function() {
43035
+ self2._read();
43036
+ });
43037
+ return;
43038
+ }
43039
+ fs15.open(this.path, this.flags, this.mode, function(err8, fd2) {
43040
+ if (err8) {
43041
+ self2.emit("error", err8);
43042
+ self2.readable = false;
43043
+ return;
43044
+ }
43045
+ self2.fd = fd2;
43046
+ self2.emit("open", fd2);
43047
+ self2._read();
43048
+ });
43049
+ }
43050
+ function WriteStream(path28, options) {
43051
+ if (!(this instanceof WriteStream)) return new WriteStream(path28, options);
43052
+ Stream4.call(this);
43053
+ this.path = path28;
43054
+ this.fd = null;
43055
+ this.writable = true;
43056
+ this.flags = "w";
43057
+ this.encoding = "binary";
43058
+ this.mode = 438;
43059
+ this.bytesWritten = 0;
43060
+ options = options || {};
43061
+ var keys2 = Object.keys(options);
43062
+ for (var index = 0, length = keys2.length; index < length; index++) {
43063
+ var key = keys2[index];
43064
+ this[key] = options[key];
43065
+ }
43066
+ if (this.start !== void 0) {
43067
+ if ("number" !== typeof this.start) {
43068
+ throw TypeError("start must be a Number");
43069
+ }
43070
+ if (this.start < 0) {
43071
+ throw new Error("start must be >= zero");
43072
+ }
43073
+ this.pos = this.start;
43074
+ }
43075
+ this.busy = false;
43076
+ this._queue = [];
43077
+ if (this.fd === null) {
43078
+ this._open = fs15.open;
43079
+ this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
43080
+ this.flush();
43081
+ }
43082
+ }
43083
+ }
43084
+ }
43085
+ });
43086
+
43087
+ // node_modules/graceful-fs/clone.js
43088
+ var require_clone = __commonJS({
43089
+ "node_modules/graceful-fs/clone.js"(exports2, module2) {
43090
+ "use strict";
43091
+ module2.exports = clone4;
43092
+ var getPrototypeOf2 = Object.getPrototypeOf || function(obj) {
43093
+ return obj.__proto__;
43094
+ };
43095
+ function clone4(obj) {
43096
+ if (obj === null || typeof obj !== "object")
43097
+ return obj;
43098
+ if (obj instanceof Object)
43099
+ var copy2 = { __proto__: getPrototypeOf2(obj) };
43100
+ else
43101
+ var copy2 = /* @__PURE__ */ Object.create(null);
43102
+ Object.getOwnPropertyNames(obj).forEach(function(key) {
43103
+ Object.defineProperty(copy2, key, Object.getOwnPropertyDescriptor(obj, key));
43104
+ });
43105
+ return copy2;
43106
+ }
43107
+ }
43108
+ });
43109
+
43110
+ // node_modules/graceful-fs/graceful-fs.js
43111
+ var require_graceful_fs = __commonJS({
43112
+ "node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
43113
+ var fs15 = __require("fs");
43114
+ var polyfills = require_polyfills();
43115
+ var legacy = require_legacy_streams();
43116
+ var clone4 = require_clone();
43117
+ var util9 = __require("util");
43118
+ var gracefulQueue;
43119
+ var previousSymbol;
43120
+ if (typeof Symbol === "function" && typeof Symbol.for === "function") {
43121
+ gracefulQueue = /* @__PURE__ */ Symbol.for("graceful-fs.queue");
43122
+ previousSymbol = /* @__PURE__ */ Symbol.for("graceful-fs.previous");
43123
+ } else {
43124
+ gracefulQueue = "___graceful-fs.queue";
43125
+ previousSymbol = "___graceful-fs.previous";
43126
+ }
43127
+ function noop8() {
43128
+ }
43129
+ function publishQueue(context3, queue4) {
43130
+ Object.defineProperty(context3, gracefulQueue, {
43131
+ get: function() {
43132
+ return queue4;
43133
+ }
43134
+ });
43135
+ }
43136
+ var debug3 = noop8;
43137
+ if (util9.debuglog)
43138
+ debug3 = util9.debuglog("gfs4");
43139
+ else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
43140
+ debug3 = function() {
43141
+ var m2 = util9.format.apply(util9, arguments);
43142
+ m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
43143
+ console.error(m2);
43144
+ };
43145
+ if (!fs15[gracefulQueue]) {
43146
+ queue3 = global[gracefulQueue] || [];
43147
+ publishQueue(fs15, queue3);
43148
+ fs15.close = (function(fs$close) {
43149
+ function close(fd2, cb) {
43150
+ return fs$close.call(fs15, fd2, function(err8) {
43151
+ if (!err8) {
43152
+ resetQueue();
43153
+ }
43154
+ if (typeof cb === "function")
43155
+ cb.apply(this, arguments);
43156
+ });
43157
+ }
43158
+ Object.defineProperty(close, previousSymbol, {
43159
+ value: fs$close
43160
+ });
43161
+ return close;
43162
+ })(fs15.close);
43163
+ fs15.closeSync = (function(fs$closeSync) {
43164
+ function closeSync12(fd2) {
43165
+ fs$closeSync.apply(fs15, arguments);
43166
+ resetQueue();
43167
+ }
43168
+ Object.defineProperty(closeSync12, previousSymbol, {
43169
+ value: fs$closeSync
43170
+ });
43171
+ return closeSync12;
43172
+ })(fs15.closeSync);
43173
+ if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
43174
+ process.on("exit", function() {
43175
+ debug3(fs15[gracefulQueue]);
43176
+ __require("assert").equal(fs15[gracefulQueue].length, 0);
43177
+ });
43178
+ }
43179
+ }
43180
+ var queue3;
43181
+ if (!global[gracefulQueue]) {
43182
+ publishQueue(global, fs15[gracefulQueue]);
43183
+ }
43184
+ module2.exports = patch2(clone4(fs15));
43185
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs15.__patched) {
43186
+ module2.exports = patch2(fs15);
43187
+ fs15.__patched = true;
43188
+ }
43189
+ function patch2(fs16) {
43190
+ polyfills(fs16);
43191
+ fs16.gracefulify = patch2;
43192
+ fs16.createReadStream = createReadStream4;
43193
+ fs16.createWriteStream = createWriteStream7;
43194
+ var fs$readFile = fs16.readFile;
43195
+ fs16.readFile = readFile61;
43196
+ function readFile61(path28, options, cb) {
43197
+ if (typeof options === "function")
43198
+ cb = options, options = null;
43199
+ return go$readFile(path28, options, cb);
43200
+ function go$readFile(path29, options2, cb2, startTime) {
43201
+ return fs$readFile(path29, options2, function(err8) {
43202
+ if (err8 && (err8.code === "EMFILE" || err8.code === "ENFILE"))
43203
+ enqueue3([go$readFile, [path29, options2, cb2], err8, startTime || Date.now(), Date.now()]);
43204
+ else {
43205
+ if (typeof cb2 === "function")
43206
+ cb2.apply(this, arguments);
43207
+ }
43208
+ });
43209
+ }
43210
+ }
43211
+ var fs$writeFile = fs16.writeFile;
43212
+ fs16.writeFile = writeFile55;
43213
+ function writeFile55(path28, data, options, cb) {
43214
+ if (typeof options === "function")
43215
+ cb = options, options = null;
43216
+ return go$writeFile(path28, data, options, cb);
43217
+ function go$writeFile(path29, data2, options2, cb2, startTime) {
43218
+ return fs$writeFile(path29, data2, options2, function(err8) {
43219
+ if (err8 && (err8.code === "EMFILE" || err8.code === "ENFILE"))
43220
+ enqueue3([go$writeFile, [path29, data2, options2, cb2], err8, startTime || Date.now(), Date.now()]);
43221
+ else {
43222
+ if (typeof cb2 === "function")
43223
+ cb2.apply(this, arguments);
43224
+ }
43225
+ });
43226
+ }
43227
+ }
43228
+ var fs$appendFile = fs16.appendFile;
43229
+ if (fs$appendFile)
43230
+ fs16.appendFile = appendFile6;
43231
+ function appendFile6(path28, data, options, cb) {
43232
+ if (typeof options === "function")
43233
+ cb = options, options = null;
43234
+ return go$appendFile(path28, data, options, cb);
43235
+ function go$appendFile(path29, data2, options2, cb2, startTime) {
43236
+ return fs$appendFile(path29, data2, options2, function(err8) {
43237
+ if (err8 && (err8.code === "EMFILE" || err8.code === "ENFILE"))
43238
+ enqueue3([go$appendFile, [path29, data2, options2, cb2], err8, startTime || Date.now(), Date.now()]);
43239
+ else {
43240
+ if (typeof cb2 === "function")
43241
+ cb2.apply(this, arguments);
43242
+ }
43243
+ });
43244
+ }
43245
+ }
43246
+ var fs$copyFile = fs16.copyFile;
43247
+ if (fs$copyFile)
43248
+ fs16.copyFile = copyFile12;
43249
+ function copyFile12(src, dest, flags, cb) {
43250
+ if (typeof flags === "function") {
43251
+ cb = flags;
43252
+ flags = 0;
43253
+ }
43254
+ return go$copyFile(src, dest, flags, cb);
43255
+ function go$copyFile(src2, dest2, flags2, cb2, startTime) {
43256
+ return fs$copyFile(src2, dest2, flags2, function(err8) {
43257
+ if (err8 && (err8.code === "EMFILE" || err8.code === "ENFILE"))
43258
+ enqueue3([go$copyFile, [src2, dest2, flags2, cb2], err8, startTime || Date.now(), Date.now()]);
43259
+ else {
43260
+ if (typeof cb2 === "function")
43261
+ cb2.apply(this, arguments);
43262
+ }
43263
+ });
43264
+ }
43265
+ }
43266
+ var fs$readdir = fs16.readdir;
43267
+ fs16.readdir = readdir35;
43268
+ var noReaddirOptionVersions = /^v[0-5]\./;
43269
+ function readdir35(path28, options, cb) {
43270
+ if (typeof options === "function")
43271
+ cb = options, options = null;
43272
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path29, options2, cb2, startTime) {
43273
+ return fs$readdir(path29, fs$readdirCallback(
43274
+ path29,
43275
+ options2,
43276
+ cb2,
43277
+ startTime
43278
+ ));
43279
+ } : function go$readdir2(path29, options2, cb2, startTime) {
43280
+ return fs$readdir(path29, options2, fs$readdirCallback(
43281
+ path29,
43282
+ options2,
43283
+ cb2,
43284
+ startTime
43285
+ ));
43286
+ };
43287
+ return go$readdir(path28, options, cb);
43288
+ function fs$readdirCallback(path29, options2, cb2, startTime) {
43289
+ return function(err8, files2) {
43290
+ if (err8 && (err8.code === "EMFILE" || err8.code === "ENFILE"))
43291
+ enqueue3([
43292
+ go$readdir,
43293
+ [path29, options2, cb2],
43294
+ err8,
43295
+ startTime || Date.now(),
43296
+ Date.now()
43297
+ ]);
43298
+ else {
43299
+ if (files2 && files2.sort)
43300
+ files2.sort();
43301
+ if (typeof cb2 === "function")
43302
+ cb2.call(this, err8, files2);
43303
+ }
43304
+ };
43305
+ }
43306
+ }
43307
+ if (process.version.substr(0, 4) === "v0.8") {
43308
+ var legStreams = legacy(fs16);
43309
+ ReadStream2 = legStreams.ReadStream;
43310
+ WriteStream = legStreams.WriteStream;
43311
+ }
43312
+ var fs$ReadStream = fs16.ReadStream;
43313
+ if (fs$ReadStream) {
43314
+ ReadStream2.prototype = Object.create(fs$ReadStream.prototype);
43315
+ ReadStream2.prototype.open = ReadStream$open;
43316
+ }
43317
+ var fs$WriteStream = fs16.WriteStream;
43318
+ if (fs$WriteStream) {
43319
+ WriteStream.prototype = Object.create(fs$WriteStream.prototype);
43320
+ WriteStream.prototype.open = WriteStream$open;
43321
+ }
43322
+ Object.defineProperty(fs16, "ReadStream", {
43323
+ get: function() {
43324
+ return ReadStream2;
43325
+ },
43326
+ set: function(val) {
43327
+ ReadStream2 = val;
43328
+ },
43329
+ enumerable: true,
43330
+ configurable: true
43331
+ });
43332
+ Object.defineProperty(fs16, "WriteStream", {
43333
+ get: function() {
43334
+ return WriteStream;
43335
+ },
43336
+ set: function(val) {
43337
+ WriteStream = val;
43338
+ },
43339
+ enumerable: true,
43340
+ configurable: true
43341
+ });
43342
+ var FileReadStream = ReadStream2;
43343
+ Object.defineProperty(fs16, "FileReadStream", {
43344
+ get: function() {
43345
+ return FileReadStream;
43346
+ },
43347
+ set: function(val) {
43348
+ FileReadStream = val;
43349
+ },
43350
+ enumerable: true,
43351
+ configurable: true
43352
+ });
43353
+ var FileWriteStream = WriteStream;
43354
+ Object.defineProperty(fs16, "FileWriteStream", {
43355
+ get: function() {
43356
+ return FileWriteStream;
43357
+ },
43358
+ set: function(val) {
43359
+ FileWriteStream = val;
43360
+ },
43361
+ enumerable: true,
43362
+ configurable: true
43363
+ });
43364
+ function ReadStream2(path28, options) {
43365
+ if (this instanceof ReadStream2)
43366
+ return fs$ReadStream.apply(this, arguments), this;
43367
+ else
43368
+ return ReadStream2.apply(Object.create(ReadStream2.prototype), arguments);
43369
+ }
43370
+ function ReadStream$open() {
43371
+ var that = this;
43372
+ open20(that.path, that.flags, that.mode, function(err8, fd2) {
43373
+ if (err8) {
43374
+ if (that.autoClose)
43375
+ that.destroy();
43376
+ that.emit("error", err8);
43377
+ } else {
43378
+ that.fd = fd2;
43379
+ that.emit("open", fd2);
43380
+ that.read();
43381
+ }
43382
+ });
43383
+ }
43384
+ function WriteStream(path28, options) {
43385
+ if (this instanceof WriteStream)
43386
+ return fs$WriteStream.apply(this, arguments), this;
43387
+ else
43388
+ return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
43389
+ }
43390
+ function WriteStream$open() {
43391
+ var that = this;
43392
+ open20(that.path, that.flags, that.mode, function(err8, fd2) {
43393
+ if (err8) {
43394
+ that.destroy();
43395
+ that.emit("error", err8);
43396
+ } else {
43397
+ that.fd = fd2;
43398
+ that.emit("open", fd2);
43399
+ }
43400
+ });
43401
+ }
43402
+ function createReadStream4(path28, options) {
43403
+ return new fs16.ReadStream(path28, options);
43404
+ }
43405
+ function createWriteStream7(path28, options) {
43406
+ return new fs16.WriteStream(path28, options);
43407
+ }
43408
+ var fs$open = fs16.open;
43409
+ fs16.open = open20;
43410
+ function open20(path28, flags, mode, cb) {
43411
+ if (typeof mode === "function")
43412
+ cb = mode, mode = null;
43413
+ return go$open(path28, flags, mode, cb);
43414
+ function go$open(path29, flags2, mode2, cb2, startTime) {
43415
+ return fs$open(path29, flags2, mode2, function(err8, fd2) {
43416
+ if (err8 && (err8.code === "EMFILE" || err8.code === "ENFILE"))
43417
+ enqueue3([go$open, [path29, flags2, mode2, cb2], err8, startTime || Date.now(), Date.now()]);
43418
+ else {
43419
+ if (typeof cb2 === "function")
43420
+ cb2.apply(this, arguments);
43421
+ }
43422
+ });
43423
+ }
43424
+ }
43425
+ return fs16;
43426
+ }
43427
+ function enqueue3(elem) {
43428
+ debug3("ENQUEUE", elem[0].name, elem[1]);
43429
+ fs15[gracefulQueue].push(elem);
43430
+ retry();
43431
+ }
43432
+ var retryTimer;
43433
+ function resetQueue() {
43434
+ var now2 = Date.now();
43435
+ for (var i = 0; i < fs15[gracefulQueue].length; ++i) {
43436
+ if (fs15[gracefulQueue][i].length > 2) {
43437
+ fs15[gracefulQueue][i][3] = now2;
43438
+ fs15[gracefulQueue][i][4] = now2;
43439
+ }
43440
+ }
43441
+ retry();
43442
+ }
43443
+ function retry() {
43444
+ clearTimeout(retryTimer);
43445
+ retryTimer = void 0;
43446
+ if (fs15[gracefulQueue].length === 0)
43447
+ return;
43448
+ var elem = fs15[gracefulQueue].shift();
43449
+ var fn2 = elem[0];
43450
+ var args = elem[1];
43451
+ var err8 = elem[2];
43452
+ var startTime = elem[3];
43453
+ var lastTime = elem[4];
43454
+ if (startTime === void 0) {
43455
+ debug3("RETRY", fn2.name, args);
43456
+ fn2.apply(null, args);
43457
+ } else if (Date.now() - startTime >= 6e4) {
43458
+ debug3("TIMEOUT", fn2.name, args);
43459
+ var cb = args.pop();
43460
+ if (typeof cb === "function")
43461
+ cb.call(null, err8);
43462
+ } else {
43463
+ var sinceAttempt = Date.now() - lastTime;
43464
+ var sinceStart = Math.max(lastTime - startTime, 1);
43465
+ var desiredDelay = Math.min(sinceStart * 1.2, 100);
43466
+ if (sinceAttempt >= desiredDelay) {
43467
+ debug3("RETRY", fn2.name, args);
43468
+ fn2.apply(null, args.concat([startTime]));
43469
+ } else {
43470
+ fs15[gracefulQueue].push(elem);
43471
+ }
43472
+ }
43473
+ if (retryTimer === void 0) {
43474
+ retryTimer = setTimeout(retry, 0);
43475
+ }
43476
+ }
43477
+ }
43478
+ });
43479
+
43480
+ // node_modules/retry/lib/retry_operation.js
43481
+ var require_retry_operation = __commonJS({
43482
+ "node_modules/retry/lib/retry_operation.js"(exports2, module2) {
43483
+ function RetryOperation(timeouts, options) {
43484
+ if (typeof options === "boolean") {
43485
+ options = { forever: options };
43486
+ }
43487
+ this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
43488
+ this._timeouts = timeouts;
43489
+ this._options = options || {};
43490
+ this._maxRetryTime = options && options.maxRetryTime || Infinity;
43491
+ this._fn = null;
43492
+ this._errors = [];
43493
+ this._attempts = 1;
43494
+ this._operationTimeout = null;
43495
+ this._operationTimeoutCb = null;
43496
+ this._timeout = null;
43497
+ this._operationStart = null;
43498
+ if (this._options.forever) {
43499
+ this._cachedTimeouts = this._timeouts.slice(0);
43500
+ }
43501
+ }
43502
+ module2.exports = RetryOperation;
43503
+ RetryOperation.prototype.reset = function() {
43504
+ this._attempts = 1;
43505
+ this._timeouts = this._originalTimeouts;
43506
+ };
43507
+ RetryOperation.prototype.stop = function() {
43508
+ if (this._timeout) {
43509
+ clearTimeout(this._timeout);
43510
+ }
43511
+ this._timeouts = [];
43512
+ this._cachedTimeouts = null;
43513
+ };
43514
+ RetryOperation.prototype.retry = function(err8) {
43515
+ if (this._timeout) {
43516
+ clearTimeout(this._timeout);
43517
+ }
43518
+ if (!err8) {
43519
+ return false;
43520
+ }
43521
+ var currentTime = (/* @__PURE__ */ new Date()).getTime();
43522
+ if (err8 && currentTime - this._operationStart >= this._maxRetryTime) {
43523
+ this._errors.unshift(new Error("RetryOperation timeout occurred"));
43524
+ return false;
43525
+ }
43526
+ this._errors.push(err8);
43527
+ var timeout3 = this._timeouts.shift();
43528
+ if (timeout3 === void 0) {
43529
+ if (this._cachedTimeouts) {
43530
+ this._errors.splice(this._errors.length - 1, this._errors.length);
43531
+ this._timeouts = this._cachedTimeouts.slice(0);
43532
+ timeout3 = this._timeouts.shift();
43533
+ } else {
43534
+ return false;
43535
+ }
43536
+ }
43537
+ var self2 = this;
43538
+ var timer2 = setTimeout(function() {
43539
+ self2._attempts++;
43540
+ if (self2._operationTimeoutCb) {
43541
+ self2._timeout = setTimeout(function() {
43542
+ self2._operationTimeoutCb(self2._attempts);
43543
+ }, self2._operationTimeout);
43544
+ if (self2._options.unref) {
43545
+ self2._timeout.unref();
43546
+ }
43547
+ }
43548
+ self2._fn(self2._attempts);
43549
+ }, timeout3);
43550
+ if (this._options.unref) {
43551
+ timer2.unref();
43552
+ }
43553
+ return true;
43554
+ };
43555
+ RetryOperation.prototype.attempt = function(fn2, timeoutOps) {
43556
+ this._fn = fn2;
43557
+ if (timeoutOps) {
43558
+ if (timeoutOps.timeout) {
43559
+ this._operationTimeout = timeoutOps.timeout;
43560
+ }
43561
+ if (timeoutOps.cb) {
43562
+ this._operationTimeoutCb = timeoutOps.cb;
43563
+ }
43564
+ }
43565
+ var self2 = this;
43566
+ if (this._operationTimeoutCb) {
43567
+ this._timeout = setTimeout(function() {
43568
+ self2._operationTimeoutCb();
43569
+ }, self2._operationTimeout);
43570
+ }
43571
+ this._operationStart = (/* @__PURE__ */ new Date()).getTime();
43572
+ this._fn(this._attempts);
43573
+ };
43574
+ RetryOperation.prototype.try = function(fn2) {
43575
+ console.log("Using RetryOperation.try() is deprecated");
43576
+ this.attempt(fn2);
43577
+ };
43578
+ RetryOperation.prototype.start = function(fn2) {
43579
+ console.log("Using RetryOperation.start() is deprecated");
43580
+ this.attempt(fn2);
43581
+ };
43582
+ RetryOperation.prototype.start = RetryOperation.prototype.try;
43583
+ RetryOperation.prototype.errors = function() {
43584
+ return this._errors;
43585
+ };
43586
+ RetryOperation.prototype.attempts = function() {
43587
+ return this._attempts;
43588
+ };
43589
+ RetryOperation.prototype.mainError = function() {
43590
+ if (this._errors.length === 0) {
43591
+ return null;
43592
+ }
43593
+ var counts = {};
43594
+ var mainError = null;
43595
+ var mainErrorCount = 0;
43596
+ for (var i = 0; i < this._errors.length; i++) {
43597
+ var error51 = this._errors[i];
43598
+ var message = error51.message;
43599
+ var count3 = (counts[message] || 0) + 1;
43600
+ counts[message] = count3;
43601
+ if (count3 >= mainErrorCount) {
43602
+ mainError = error51;
43603
+ mainErrorCount = count3;
43604
+ }
43605
+ }
43606
+ return mainError;
43607
+ };
43608
+ }
43609
+ });
43610
+
43611
+ // node_modules/retry/lib/retry.js
43612
+ var require_retry = __commonJS({
43613
+ "node_modules/retry/lib/retry.js"(exports2) {
43614
+ var RetryOperation = require_retry_operation();
43615
+ exports2.operation = function(options) {
43616
+ var timeouts = exports2.timeouts(options);
43617
+ return new RetryOperation(timeouts, {
43618
+ forever: options && options.forever,
43619
+ unref: options && options.unref,
43620
+ maxRetryTime: options && options.maxRetryTime
43621
+ });
43622
+ };
43623
+ exports2.timeouts = function(options) {
43624
+ if (options instanceof Array) {
43625
+ return [].concat(options);
43626
+ }
43627
+ var opts = {
43628
+ retries: 10,
43629
+ factor: 2,
43630
+ minTimeout: 1 * 1e3,
43631
+ maxTimeout: Infinity,
43632
+ randomize: false
43633
+ };
43634
+ for (var key in options) {
43635
+ opts[key] = options[key];
43636
+ }
43637
+ if (opts.minTimeout > opts.maxTimeout) {
43638
+ throw new Error("minTimeout is greater than maxTimeout");
43639
+ }
43640
+ var timeouts = [];
43641
+ for (var i = 0; i < opts.retries; i++) {
43642
+ timeouts.push(this.createTimeout(i, opts));
43643
+ }
43644
+ if (options && options.forever && !timeouts.length) {
43645
+ timeouts.push(this.createTimeout(i, opts));
43646
+ }
43647
+ timeouts.sort(function(a, b3) {
43648
+ return a - b3;
43649
+ });
43650
+ return timeouts;
43651
+ };
43652
+ exports2.createTimeout = function(attempt, opts) {
43653
+ var random4 = opts.randomize ? Math.random() + 1 : 1;
43654
+ var timeout3 = Math.round(random4 * opts.minTimeout * Math.pow(opts.factor, attempt));
43655
+ timeout3 = Math.min(timeout3, opts.maxTimeout);
43656
+ return timeout3;
43657
+ };
43658
+ exports2.wrap = function(obj, options, methods) {
43659
+ if (options instanceof Array) {
43660
+ methods = options;
43661
+ options = null;
43662
+ }
43663
+ if (!methods) {
43664
+ methods = [];
43665
+ for (var key in obj) {
43666
+ if (typeof obj[key] === "function") {
43667
+ methods.push(key);
43668
+ }
43669
+ }
43670
+ }
43671
+ for (var i = 0; i < methods.length; i++) {
43672
+ var method = methods[i];
43673
+ var original = obj[method];
43674
+ obj[method] = function retryWrapper(original2) {
43675
+ var op = exports2.operation(options);
43676
+ var args = Array.prototype.slice.call(arguments, 1);
43677
+ var callback = args.pop();
43678
+ args.push(function(err8) {
43679
+ if (op.retry(err8)) {
43680
+ return;
43681
+ }
43682
+ if (err8) {
43683
+ arguments[0] = op.mainError();
43684
+ }
43685
+ callback.apply(this, arguments);
43686
+ });
43687
+ op.attempt(function() {
43688
+ original2.apply(obj, args);
43689
+ });
43690
+ }.bind(obj, original);
43691
+ obj[method].options = options;
43692
+ }
43693
+ };
43694
+ }
43695
+ });
43696
+
43697
+ // node_modules/retry/index.js
43698
+ var require_retry2 = __commonJS({
43699
+ "node_modules/retry/index.js"(exports2, module2) {
43700
+ module2.exports = require_retry();
43701
+ }
43702
+ });
43703
+
43704
+ // node_modules/proper-lockfile/node_modules/signal-exit/signals.js
43705
+ var require_signals = __commonJS({
43706
+ "node_modules/proper-lockfile/node_modules/signal-exit/signals.js"(exports2, module2) {
43707
+ module2.exports = [
43708
+ "SIGABRT",
43709
+ "SIGALRM",
43710
+ "SIGHUP",
43711
+ "SIGINT",
43712
+ "SIGTERM"
43713
+ ];
43714
+ if (process.platform !== "win32") {
43715
+ module2.exports.push(
43716
+ "SIGVTALRM",
43717
+ "SIGXCPU",
43718
+ "SIGXFSZ",
43719
+ "SIGUSR2",
43720
+ "SIGTRAP",
43721
+ "SIGSYS",
43722
+ "SIGQUIT",
43723
+ "SIGIOT"
43724
+ // should detect profiler and enable/disable accordingly.
43725
+ // see #21
43726
+ // 'SIGPROF'
43727
+ );
43728
+ }
43729
+ if (process.platform === "linux") {
43730
+ module2.exports.push(
43731
+ "SIGIO",
43732
+ "SIGPOLL",
43733
+ "SIGPWR",
43734
+ "SIGSTKFLT",
43735
+ "SIGUNUSED"
43736
+ );
43737
+ }
43738
+ }
43739
+ });
43740
+
43741
+ // node_modules/proper-lockfile/node_modules/signal-exit/index.js
43742
+ var require_signal_exit = __commonJS({
43743
+ "node_modules/proper-lockfile/node_modules/signal-exit/index.js"(exports2, module2) {
43744
+ var process17 = global.process;
43745
+ var processOk2 = function(process18) {
43746
+ return process18 && typeof process18 === "object" && typeof process18.removeListener === "function" && typeof process18.emit === "function" && typeof process18.reallyExit === "function" && typeof process18.listeners === "function" && typeof process18.kill === "function" && typeof process18.pid === "number" && typeof process18.on === "function";
43747
+ };
43748
+ if (!processOk2(process17)) {
43749
+ module2.exports = function() {
43750
+ return function() {
43751
+ };
43752
+ };
43753
+ } else {
43754
+ assert2 = __require("assert");
43755
+ signals2 = require_signals();
43756
+ isWin = /^win/i.test(process17.platform);
43757
+ EE = __require("events");
43758
+ if (typeof EE !== "function") {
43759
+ EE = EE.EventEmitter;
43760
+ }
43761
+ if (process17.__signal_exit_emitter__) {
43762
+ emitter = process17.__signal_exit_emitter__;
43763
+ } else {
43764
+ emitter = process17.__signal_exit_emitter__ = new EE();
43765
+ emitter.count = 0;
43766
+ emitter.emitted = {};
43767
+ }
43768
+ if (!emitter.infinite) {
43769
+ emitter.setMaxListeners(Infinity);
43770
+ emitter.infinite = true;
43771
+ }
43772
+ module2.exports = function(cb, opts) {
43773
+ if (!processOk2(global.process)) {
43774
+ return function() {
43775
+ };
43776
+ }
43777
+ assert2.equal(typeof cb, "function", "a callback must be provided for exit handler");
43778
+ if (loaded === false) {
43779
+ load2();
43780
+ }
43781
+ var ev = "exit";
43782
+ if (opts && opts.alwaysLast) {
43783
+ ev = "afterexit";
43784
+ }
43785
+ var remove2 = function() {
43786
+ emitter.removeListener(ev, cb);
43787
+ if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
43788
+ unload2();
43789
+ }
43790
+ };
43791
+ emitter.on(ev, cb);
43792
+ return remove2;
43793
+ };
43794
+ unload2 = function unload3() {
43795
+ if (!loaded || !processOk2(global.process)) {
43796
+ return;
43797
+ }
43798
+ loaded = false;
43799
+ signals2.forEach(function(sig) {
43800
+ try {
43801
+ process17.removeListener(sig, sigListeners[sig]);
43802
+ } catch (er) {
43803
+ }
43804
+ });
43805
+ process17.emit = originalProcessEmit;
43806
+ process17.reallyExit = originalProcessReallyExit;
43807
+ emitter.count -= 1;
43808
+ };
43809
+ module2.exports.unload = unload2;
43810
+ emit4 = function emit5(event, code2, signal) {
43811
+ if (emitter.emitted[event]) {
43812
+ return;
43813
+ }
43814
+ emitter.emitted[event] = true;
43815
+ emitter.emit(event, code2, signal);
43816
+ };
43817
+ sigListeners = {};
43818
+ signals2.forEach(function(sig) {
43819
+ sigListeners[sig] = function listener5() {
43820
+ if (!processOk2(global.process)) {
43821
+ return;
43822
+ }
43823
+ var listeners6 = process17.listeners(sig);
43824
+ if (listeners6.length === emitter.count) {
43825
+ unload2();
43826
+ emit4("exit", null, sig);
43827
+ emit4("afterexit", null, sig);
43828
+ if (isWin && sig === "SIGHUP") {
43829
+ sig = "SIGINT";
43830
+ }
43831
+ process17.kill(process17.pid, sig);
43832
+ }
43833
+ };
43834
+ });
43835
+ module2.exports.signals = function() {
43836
+ return signals2;
43837
+ };
43838
+ loaded = false;
43839
+ load2 = function load3() {
43840
+ if (loaded || !processOk2(global.process)) {
43841
+ return;
43842
+ }
43843
+ loaded = true;
43844
+ emitter.count += 1;
43845
+ signals2 = signals2.filter(function(sig) {
43846
+ try {
43847
+ process17.on(sig, sigListeners[sig]);
43848
+ return true;
43849
+ } catch (er) {
43850
+ return false;
43851
+ }
43852
+ });
43853
+ process17.emit = processEmit;
43854
+ process17.reallyExit = processReallyExit;
43855
+ };
43856
+ module2.exports.load = load2;
43857
+ originalProcessReallyExit = process17.reallyExit;
43858
+ processReallyExit = function processReallyExit2(code2) {
43859
+ if (!processOk2(global.process)) {
43860
+ return;
43861
+ }
43862
+ process17.exitCode = code2 || /* istanbul ignore next */
43863
+ 0;
43864
+ emit4("exit", process17.exitCode, null);
43865
+ emit4("afterexit", process17.exitCode, null);
43866
+ originalProcessReallyExit.call(process17, process17.exitCode);
43867
+ };
43868
+ originalProcessEmit = process17.emit;
43869
+ processEmit = function processEmit2(ev, arg) {
43870
+ if (ev === "exit" && processOk2(global.process)) {
43871
+ if (arg !== void 0) {
43872
+ process17.exitCode = arg;
43873
+ }
43874
+ var ret = originalProcessEmit.apply(this, arguments);
43875
+ emit4("exit", process17.exitCode, null);
43876
+ emit4("afterexit", process17.exitCode, null);
43877
+ return ret;
43878
+ } else {
43879
+ return originalProcessEmit.apply(this, arguments);
43880
+ }
43881
+ };
43882
+ }
43883
+ var assert2;
43884
+ var signals2;
43885
+ var isWin;
43886
+ var EE;
43887
+ var emitter;
43888
+ var unload2;
43889
+ var emit4;
43890
+ var sigListeners;
43891
+ var loaded;
43892
+ var load2;
43893
+ var originalProcessReallyExit;
43894
+ var processReallyExit;
43895
+ var originalProcessEmit;
43896
+ var processEmit;
43897
+ }
43898
+ });
43899
+
43900
+ // node_modules/proper-lockfile/lib/mtime-precision.js
43901
+ var require_mtime_precision = __commonJS({
43902
+ "node_modules/proper-lockfile/lib/mtime-precision.js"(exports2, module2) {
43903
+ "use strict";
43904
+ var cacheSymbol = /* @__PURE__ */ Symbol();
43905
+ function probe3(file2, fs15, callback) {
43906
+ const cachedPrecision = fs15[cacheSymbol];
43907
+ if (cachedPrecision) {
43908
+ return fs15.stat(file2, (err8, stat55) => {
43909
+ if (err8) {
43910
+ return callback(err8);
43911
+ }
43912
+ callback(null, stat55.mtime, cachedPrecision);
43913
+ });
43914
+ }
43915
+ const mtime = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5);
43916
+ fs15.utimes(file2, mtime, mtime, (err8) => {
43917
+ if (err8) {
43918
+ return callback(err8);
43919
+ }
43920
+ fs15.stat(file2, (err9, stat55) => {
43921
+ if (err9) {
43922
+ return callback(err9);
43923
+ }
43924
+ const precision = stat55.mtime.getTime() % 1e3 === 0 ? "s" : "ms";
43925
+ Object.defineProperty(fs15, cacheSymbol, { value: precision });
43926
+ callback(null, stat55.mtime, precision);
43927
+ });
43928
+ });
43929
+ }
43930
+ function getMtime(precision) {
43931
+ let now2 = Date.now();
43932
+ if (precision === "s") {
43933
+ now2 = Math.ceil(now2 / 1e3) * 1e3;
43934
+ }
43935
+ return new Date(now2);
43936
+ }
43937
+ module2.exports.probe = probe3;
43938
+ module2.exports.getMtime = getMtime;
43939
+ }
43940
+ });
43941
+
43942
+ // node_modules/proper-lockfile/lib/lockfile.js
43943
+ var require_lockfile = __commonJS({
43944
+ "node_modules/proper-lockfile/lib/lockfile.js"(exports2, module2) {
43945
+ "use strict";
43946
+ var path28 = __require("path");
43947
+ var fs15 = require_graceful_fs();
43948
+ var retry = require_retry2();
43949
+ var onExit2 = require_signal_exit();
43950
+ var mtimePrecision = require_mtime_precision();
43951
+ var locks = {};
43952
+ function getLockFile(file2, options) {
43953
+ return options.lockfilePath || `${file2}.lock`;
43954
+ }
43955
+ function resolveCanonicalPath(file2, options, callback) {
43956
+ if (!options.realpath) {
43957
+ return callback(null, path28.resolve(file2));
43958
+ }
43959
+ options.fs.realpath(file2, callback);
43960
+ }
43961
+ function acquireLock2(file2, options, callback) {
43962
+ const lockfilePath = getLockFile(file2, options);
43963
+ options.fs.mkdir(lockfilePath, (err8) => {
43964
+ if (!err8) {
43965
+ return mtimePrecision.probe(lockfilePath, options.fs, (err9, mtime, mtimePrecision2) => {
43966
+ if (err9) {
43967
+ options.fs.rmdir(lockfilePath, () => {
43968
+ });
43969
+ return callback(err9);
43970
+ }
43971
+ callback(null, mtime, mtimePrecision2);
43972
+ });
43973
+ }
43974
+ if (err8.code !== "EEXIST") {
43975
+ return callback(err8);
43976
+ }
43977
+ if (options.stale <= 0) {
43978
+ return callback(Object.assign(new Error("Lock file is already being held"), { code: "ELOCKED", file: file2 }));
43979
+ }
43980
+ options.fs.stat(lockfilePath, (err9, stat55) => {
43981
+ if (err9) {
43982
+ if (err9.code === "ENOENT") {
43983
+ return acquireLock2(file2, { ...options, stale: 0 }, callback);
43984
+ }
43985
+ return callback(err9);
43986
+ }
43987
+ if (!isLockStale(stat55, options)) {
43988
+ return callback(Object.assign(new Error("Lock file is already being held"), { code: "ELOCKED", file: file2 }));
43989
+ }
43990
+ removeLock(file2, options, (err10) => {
43991
+ if (err10) {
43992
+ return callback(err10);
43993
+ }
43994
+ acquireLock2(file2, { ...options, stale: 0 }, callback);
43995
+ });
43996
+ });
43997
+ });
43998
+ }
43999
+ function isLockStale(stat55, options) {
44000
+ return stat55.mtime.getTime() < Date.now() - options.stale;
44001
+ }
44002
+ function removeLock(file2, options, callback) {
44003
+ options.fs.rmdir(getLockFile(file2, options), (err8) => {
44004
+ if (err8 && err8.code !== "ENOENT") {
44005
+ return callback(err8);
44006
+ }
44007
+ callback();
44008
+ });
44009
+ }
44010
+ function updateLock(file2, options) {
44011
+ const lock3 = locks[file2];
44012
+ if (lock3.updateTimeout) {
44013
+ return;
44014
+ }
44015
+ lock3.updateDelay = lock3.updateDelay || options.update;
44016
+ lock3.updateTimeout = setTimeout(() => {
44017
+ lock3.updateTimeout = null;
44018
+ options.fs.stat(lock3.lockfilePath, (err8, stat55) => {
44019
+ const isOverThreshold = lock3.lastUpdate + options.stale < Date.now();
44020
+ if (err8) {
44021
+ if (err8.code === "ENOENT" || isOverThreshold) {
44022
+ return setLockAsCompromised(file2, lock3, Object.assign(err8, { code: "ECOMPROMISED" }));
44023
+ }
44024
+ lock3.updateDelay = 1e3;
44025
+ return updateLock(file2, options);
44026
+ }
44027
+ const isMtimeOurs = lock3.mtime.getTime() === stat55.mtime.getTime();
44028
+ if (!isMtimeOurs) {
44029
+ return setLockAsCompromised(
44030
+ file2,
44031
+ lock3,
44032
+ Object.assign(
44033
+ new Error("Unable to update lock within the stale threshold"),
44034
+ { code: "ECOMPROMISED" }
44035
+ )
44036
+ );
44037
+ }
44038
+ const mtime = mtimePrecision.getMtime(lock3.mtimePrecision);
44039
+ options.fs.utimes(lock3.lockfilePath, mtime, mtime, (err9) => {
44040
+ const isOverThreshold2 = lock3.lastUpdate + options.stale < Date.now();
44041
+ if (lock3.released) {
44042
+ return;
44043
+ }
44044
+ if (err9) {
44045
+ if (err9.code === "ENOENT" || isOverThreshold2) {
44046
+ return setLockAsCompromised(file2, lock3, Object.assign(err9, { code: "ECOMPROMISED" }));
44047
+ }
44048
+ lock3.updateDelay = 1e3;
44049
+ return updateLock(file2, options);
44050
+ }
44051
+ lock3.mtime = mtime;
44052
+ lock3.lastUpdate = Date.now();
44053
+ lock3.updateDelay = null;
44054
+ updateLock(file2, options);
44055
+ });
44056
+ });
44057
+ }, lock3.updateDelay);
44058
+ if (lock3.updateTimeout.unref) {
44059
+ lock3.updateTimeout.unref();
44060
+ }
44061
+ }
44062
+ function setLockAsCompromised(file2, lock3, err8) {
44063
+ lock3.released = true;
44064
+ if (lock3.updateTimeout) {
44065
+ clearTimeout(lock3.updateTimeout);
44066
+ }
44067
+ if (locks[file2] === lock3) {
44068
+ delete locks[file2];
44069
+ }
44070
+ lock3.options.onCompromised(err8);
44071
+ }
44072
+ function lock2(file2, options, callback) {
44073
+ options = {
44074
+ stale: 1e4,
44075
+ update: null,
44076
+ realpath: true,
44077
+ retries: 0,
44078
+ fs: fs15,
44079
+ onCompromised: (err8) => {
44080
+ throw err8;
44081
+ },
44082
+ ...options
44083
+ };
44084
+ options.retries = options.retries || 0;
44085
+ options.retries = typeof options.retries === "number" ? { retries: options.retries } : options.retries;
44086
+ options.stale = Math.max(options.stale || 0, 2e3);
44087
+ options.update = options.update == null ? options.stale / 2 : options.update || 0;
44088
+ options.update = Math.max(Math.min(options.update, options.stale / 2), 1e3);
44089
+ resolveCanonicalPath(file2, options, (err8, file3) => {
44090
+ if (err8) {
44091
+ return callback(err8);
44092
+ }
44093
+ const operation = retry.operation(options.retries);
44094
+ operation.attempt(() => {
44095
+ acquireLock2(file3, options, (err9, mtime, mtimePrecision2) => {
44096
+ if (operation.retry(err9)) {
44097
+ return;
44098
+ }
44099
+ if (err9) {
44100
+ return callback(operation.mainError());
44101
+ }
44102
+ const lock3 = locks[file3] = {
44103
+ lockfilePath: getLockFile(file3, options),
44104
+ mtime,
44105
+ mtimePrecision: mtimePrecision2,
44106
+ options,
44107
+ lastUpdate: Date.now()
44108
+ };
44109
+ updateLock(file3, options);
44110
+ callback(null, (releasedCallback) => {
44111
+ if (lock3.released) {
44112
+ return releasedCallback && releasedCallback(Object.assign(new Error("Lock is already released"), { code: "ERELEASED" }));
44113
+ }
44114
+ unlock2(file3, { ...options, realpath: false }, releasedCallback);
44115
+ });
44116
+ });
44117
+ });
44118
+ });
44119
+ }
44120
+ function unlock2(file2, options, callback) {
44121
+ options = {
44122
+ fs: fs15,
44123
+ realpath: true,
44124
+ ...options
44125
+ };
44126
+ resolveCanonicalPath(file2, options, (err8, file3) => {
44127
+ if (err8) {
44128
+ return callback(err8);
44129
+ }
44130
+ const lock3 = locks[file3];
44131
+ if (!lock3) {
44132
+ return callback(Object.assign(new Error("Lock is not acquired/owned by you"), { code: "ENOTACQUIRED" }));
44133
+ }
44134
+ lock3.updateTimeout && clearTimeout(lock3.updateTimeout);
44135
+ lock3.released = true;
44136
+ delete locks[file3];
44137
+ removeLock(file3, options, callback);
44138
+ });
44139
+ }
44140
+ function check3(file2, options, callback) {
44141
+ options = {
44142
+ stale: 1e4,
44143
+ realpath: true,
44144
+ fs: fs15,
44145
+ ...options
44146
+ };
44147
+ options.stale = Math.max(options.stale || 0, 2e3);
44148
+ resolveCanonicalPath(file2, options, (err8, file3) => {
44149
+ if (err8) {
44150
+ return callback(err8);
44151
+ }
44152
+ options.fs.stat(getLockFile(file3, options), (err9, stat55) => {
44153
+ if (err9) {
44154
+ return err9.code === "ENOENT" ? callback(null, false) : callback(err9);
44155
+ }
44156
+ return callback(null, !isLockStale(stat55, options));
44157
+ });
44158
+ });
44159
+ }
44160
+ function getLocks() {
44161
+ return locks;
44162
+ }
44163
+ onExit2(() => {
44164
+ for (const file2 in locks) {
44165
+ const options = locks[file2].options;
44166
+ try {
44167
+ options.fs.rmdirSync(getLockFile(file2, options));
44168
+ } catch (e) {
44169
+ }
44170
+ }
44171
+ });
44172
+ module2.exports.lock = lock2;
44173
+ module2.exports.unlock = unlock2;
44174
+ module2.exports.check = check3;
44175
+ module2.exports.getLocks = getLocks;
44176
+ }
44177
+ });
44178
+
44179
+ // node_modules/proper-lockfile/lib/adapter.js
44180
+ var require_adapter = __commonJS({
44181
+ "node_modules/proper-lockfile/lib/adapter.js"(exports2, module2) {
44182
+ "use strict";
44183
+ var fs15 = require_graceful_fs();
44184
+ function createSyncFs(fs16) {
44185
+ const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
44186
+ const newFs = { ...fs16 };
44187
+ methods.forEach((method) => {
44188
+ newFs[method] = (...args) => {
44189
+ const callback = args.pop();
44190
+ let ret;
44191
+ try {
44192
+ ret = fs16[`${method}Sync`](...args);
44193
+ } catch (err8) {
44194
+ return callback(err8);
44195
+ }
44196
+ callback(null, ret);
44197
+ };
44198
+ });
44199
+ return newFs;
44200
+ }
44201
+ function toPromise(method) {
44202
+ return (...args) => new Promise((resolve56, reject2) => {
44203
+ args.push((err8, result) => {
44204
+ if (err8) {
44205
+ reject2(err8);
44206
+ } else {
44207
+ resolve56(result);
44208
+ }
44209
+ });
44210
+ method(...args);
44211
+ });
44212
+ }
44213
+ function toSync(method) {
44214
+ return (...args) => {
44215
+ let err8;
44216
+ let result;
44217
+ args.push((_err, _result) => {
44218
+ err8 = _err;
44219
+ result = _result;
44220
+ });
44221
+ method(...args);
44222
+ if (err8) {
44223
+ throw err8;
44224
+ }
44225
+ return result;
44226
+ };
44227
+ }
44228
+ function toSyncOptions(options) {
44229
+ options = { ...options };
44230
+ options.fs = createSyncFs(options.fs || fs15);
44231
+ if (typeof options.retries === "number" && options.retries > 0 || options.retries && typeof options.retries.retries === "number" && options.retries.retries > 0) {
44232
+ throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
44233
+ }
44234
+ return options;
44235
+ }
44236
+ module2.exports = {
44237
+ toPromise,
44238
+ toSync,
44239
+ toSyncOptions
44240
+ };
44241
+ }
44242
+ });
44243
+
44244
+ // node_modules/proper-lockfile/index.js
44245
+ var require_proper_lockfile = __commonJS({
44246
+ "node_modules/proper-lockfile/index.js"(exports2, module2) {
44247
+ "use strict";
44248
+ var lockfile = require_lockfile();
44249
+ var { toPromise, toSync, toSyncOptions } = require_adapter();
44250
+ async function lock2(file2, options) {
44251
+ const release2 = await toPromise(lockfile.lock)(file2, options);
44252
+ return toPromise(release2);
44253
+ }
44254
+ function lockSync2(file2, options) {
44255
+ const release2 = toSync(lockfile.lock)(file2, toSyncOptions(options));
44256
+ return toSync(release2);
44257
+ }
44258
+ function unlock2(file2, options) {
44259
+ return toPromise(lockfile.unlock)(file2, options);
44260
+ }
44261
+ function unlockSync(file2, options) {
44262
+ return toSync(lockfile.unlock)(file2, toSyncOptions(options));
44263
+ }
44264
+ function check3(file2, options) {
44265
+ return toPromise(lockfile.check)(file2, options);
44266
+ }
44267
+ function checkSync(file2, options) {
44268
+ return toSync(lockfile.check)(file2, toSyncOptions(options));
44269
+ }
44270
+ module2.exports = lock2;
44271
+ module2.exports.lock = lock2;
44272
+ module2.exports.unlock = unlock2;
44273
+ module2.exports.lockSync = lockSync2;
44274
+ module2.exports.unlockSync = unlockSync;
44275
+ module2.exports.check = check3;
44276
+ module2.exports.checkSync = checkSync;
44277
+ }
44278
+ });
44279
+
42703
44280
  // build-src/src/utils/lockfile.ts
42704
- import { createRequire } from "node:module";
44281
+ function of_proper_lockfile() {
44282
+ return require_proper_lockfile();
44283
+ }
42705
44284
  function getLockfile() {
42706
44285
  if (!_lockfile) {
42707
- _lockfile = _require("proper-lockfile");
44286
+ _lockfile = of_proper_lockfile();
42708
44287
  }
42709
44288
  return _lockfile;
42710
44289
  }
@@ -42733,10 +44312,9 @@ function lockSyncRetry(file2, options, budgetMs = 4e3) {
42733
44312
  }
42734
44313
  }
42735
44314
  }
42736
- var _lockfile, _require;
44315
+ var _lockfile;
42737
44316
  var init_lockfile = __esm({
42738
44317
  "build-src/src/utils/lockfile.ts"() {
42739
- _require = createRequire(import.meta.url);
42740
44318
  }
42741
44319
  });
42742
44320
 
@@ -137679,7 +139257,7 @@ var require_response_error = __commonJS({
137679
139257
  });
137680
139258
 
137681
139259
  // node_modules/undici/lib/interceptor/retry.js
137682
- var require_retry = __commonJS({
139260
+ var require_retry3 = __commonJS({
137683
139261
  "node_modules/undici/lib/interceptor/retry.js"(exports2, module2) {
137684
139262
  "use strict";
137685
139263
  var RetryHandler = require_retry_handler();
@@ -148027,7 +149605,7 @@ var require_undici = __commonJS({
148027
149605
  module2.exports.interceptors = {
148028
149606
  redirect: require_redirect(),
148029
149607
  responseError: require_response_error(),
148030
- retry: require_retry(),
149608
+ retry: require_retry3(),
148031
149609
  dump: require_dump(),
148032
149610
  dns: require_dns(),
148033
149611
  cache: require_cache2(),
@@ -199225,7 +200803,7 @@ __export(esm_exports, {
199225
200803
  zlib: () => zlib2,
199226
200804
  zlibSync: () => zlibSync
199227
200805
  });
199228
- import { createRequire as createRequire2 } from "module";
200806
+ import { createRequire } from "module";
199229
200807
  function StrmOpt(opts, cb) {
199230
200808
  if (typeof opts == "function")
199231
200809
  cb = opts, opts = {};
@@ -199667,7 +201245,7 @@ function unzipSync(data, opts) {
199667
201245
  var require2, _a4, Worker2, isMarkedAsUntransferable, workerAdd, wk, u8, u16, i32, fleb, fdeb, clim, freb, _a4, fl, revfl, _b, fd, revfd, rev, x3, i, hMap, flt, i, i, i, i, fdt, i, flm, flrm, fdm, fdrm, max, bits, bits16, shft, slc, FlateErrorCode, ec, err, inflt, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, deo, et, dflt, crct, crc, adler, dopt, mrg, wcln, ch, cbfs, wrkr, bInflt, bDflt, gze, guze, zle, zule, pbf, gopt, cbify, astrm, astrmify, b2, b4, b8, wbytes, gzh, gzs, gzl, gzhl, zlh, zls, Deflate, AsyncDeflate, Inflate, AsyncInflate, Gzip, AsyncGzip, Gunzip, AsyncGunzip, Zlib, AsyncZlib, Unzlib, AsyncUnzlib, Decompress, AsyncDecompress, fltn, te, td, tds, dutf8, DecodeUTF8, EncodeUTF8, dbf, slzh, zh, z64hs, exfl, wzh, wzf, ZipPassThrough, ZipDeflate, AsyncZipDeflate, Zip, UnzipPassThrough, UnzipInflate, AsyncUnzipInflate, Unzip, mt;
199668
201246
  var init_esm = __esm({
199669
201247
  "node_modules/fflate/esm/index.mjs"() {
199670
- require2 = createRequire2("/");
201248
+ require2 = createRequire("/");
199671
201249
  workerAdd = ";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";
199672
201250
  try {
199673
201251
  _a4 = require2("worker_threads"), Worker2 = _a4.Worker, isMarkedAsUntransferable = _a4.isMarkedAsUntransferable;
@@ -214892,14 +216470,14 @@ var init_libvips = __esm({
214892
216470
  });
214893
216471
 
214894
216472
  // node_modules/sharp/dist/sharp.mjs
214895
- import { createRequire as createRequire3 } from "node:module";
216473
+ import { createRequire as createRequire2 } from "node:module";
214896
216474
  var import_detect_libc2, require3, version2, runtimePlatformArch2, isUnsupportedNodeRuntime2, prebuiltPlatforms2, minimumLibvipsVersion2, runtimePlatform, sharp, errors, sharp_default;
214897
216475
  var init_sharp = __esm({
214898
216476
  "node_modules/sharp/dist/sharp.mjs"() {
214899
216477
  import_detect_libc2 = __toESM(require_detect_libc(), 1);
214900
216478
  init_libvips();
214901
216479
  init_package();
214902
- require3 = createRequire3(import.meta.url);
216480
+ require3 = createRequire2(import.meta.url);
214903
216481
  ({ version: version2 } = package_default);
214904
216482
  ({ runtimePlatformArch: runtimePlatformArch2, isUnsupportedNodeRuntime: isUnsupportedNodeRuntime2, prebuiltPlatforms: prebuiltPlatforms2, minimumLibvipsVersion: minimumLibvipsVersion2 } = libvips_default);
214905
216483
  runtimePlatform = runtimePlatformArch2();
@@ -219428,7 +221006,7 @@ var init_output2 = __esm({
219428
221006
 
219429
221007
  // node_modules/sharp/dist/utility.mjs
219430
221008
  import events from "node:events";
219431
- import { createRequire as createRequire4 } from "node:module";
221009
+ import { createRequire as createRequire3 } from "node:module";
219432
221010
  import { availableParallelism } from "node:os";
219433
221011
  function cache2(options) {
219434
221012
  if (is_default2.bool(options)) {
@@ -219488,7 +221066,7 @@ var init_utility = __esm({
219488
221066
  init_libvips();
219489
221067
  init_sharp();
219490
221068
  init_package();
219491
- require4 = createRequire4(import.meta.url);
221069
+ require4 = createRequire3(import.meta.url);
219492
221070
  runtimePlatform2 = libvips_default.runtimePlatformArch();
219493
221071
  libvipsVersion = sharp_default.libvipsVersion();
219494
221072
  format3 = sharp_default.format();
@@ -352902,7 +354480,7 @@ function useClaudeAiLimits() {
352902
354480
  var import_react64;
352903
354481
  var init_claudeAiLimitsHook = __esm({
352904
354482
  "build-src/src/services/claudeAiLimitsHook.ts"() {
352905
- import_react64 = __toESM(require_react(), 1);
354483
+ import_react64 = __toESM(require_react());
352906
354484
  init_claudeAiLimits();
352907
354485
  }
352908
354486
  });
@@ -353431,7 +355009,7 @@ var init_classifierApprovalsHook = __esm({
353431
355009
  var React30, TypedComponent, SentryErrorBoundary;
353432
355010
  var init_SentryErrorBoundary = __esm({
353433
355011
  "build-src/src/components/SentryErrorBoundary.ts"() {
353434
- React30 = __toESM(require_react(), 1);
355012
+ React30 = __toESM(require_react());
353435
355013
  TypedComponent = React30.Component;
353436
355014
  SentryErrorBoundary = class extends TypedComponent {
353437
355015
  constructor(props) {
@@ -478342,8 +479920,8 @@ var init_sema_brand = __esm({
478342
479920
  "Background-agent completion notifications now survive a shell restart: on engines that declare fail-closed notification routing (1.247+), resuming a session delivers notifications for agents that were still running when the previous shell exited"
478343
479921
  ]
478344
479922
  },
478345
- productVersion: "1.0.53",
478346
- announcement: "sema 1.0.53 \u2014 Monitor tool approvals now show the actual command instead of a generic fallback card, /import works in headless -p mode, and the crash overlay no longer drops stack frames. Under the hood: strictNullChecks fully on, cross-process file locking hardened across credentials/settings/cron/model-pool, and a restart no longer double-delivers background task notifications."
479923
+ productVersion: "1.0.54",
479924
+ announcement: "sema 1.0.54 \u2014 Hotfix for 1.0.53: on a clean install, the engine could fail to start (and cross-process file locks silently disengage) because a locking dependency was left out of the published bundle. All 1.0.53 changes included."
478347
479925
  };
478348
479926
  }
478349
479927
  });
@@ -484630,8 +486208,8 @@ var require_sema_brand = __commonJS({
484630
486208
  "Background-agent completion notifications now survive a shell restart: on engines that declare fail-closed notification routing (1.247+), resuming a session delivers notifications for agents that were still running when the previous shell exited"
484631
486209
  ]
484632
486210
  },
484633
- productVersion: "1.0.53",
484634
- announcement: "sema 1.0.53 \u2014 Monitor tool approvals now show the actual command instead of a generic fallback card, /import works in headless -p mode, and the crash overlay no longer drops stack frames. Under the hood: strictNullChecks fully on, cross-process file locking hardened across credentials/settings/cron/model-pool, and a restart no longer double-delivers background task notifications."
486211
+ productVersion: "1.0.54",
486212
+ announcement: "sema 1.0.54 \u2014 Hotfix for 1.0.53: on a clean install, the engine could fail to start (and cross-process file locks silently disengage) because a locking dependency was left out of the published bundle. All 1.0.53 changes included."
484635
486213
  };
484636
486214
  }
484637
486215
  });
@@ -650273,7 +651851,7 @@ __export(cloudOps_exports, {
650273
651851
  });
650274
651852
  import { execFileSync as execFileSync6, spawn as spawn14 } from "child_process";
650275
651853
  import { existsSync as existsSync33, statSync as statSync15 } from "fs";
650276
- import { createRequire as createRequire5 } from "module";
651854
+ import { createRequire as createRequire4 } from "module";
650277
651855
  import { createInterface as createInterface3 } from "readline";
650278
651856
  import { dirname as dirname86, join as join195, resolve as resolve50 } from "path";
650279
651857
  function fail5(e) {
@@ -650293,7 +651871,7 @@ function npmEngineLocalCandidates() {
650293
651871
  const candidates = [];
650294
651872
  for (const pkg of ENGINE_NPM_PACKAGES) {
650295
651873
  try {
650296
- const req = createRequire5(join195(process.cwd(), "__sema_resolve__.js"));
651874
+ const req = createRequire4(join195(process.cwd(), "__sema_resolve__.js"));
650297
651875
  candidates.push(join195(dirname86(req.resolve(`${pkg}/package.json`)), ENGINE_REL_PATH));
650298
651876
  } catch {
650299
651877
  }
@@ -664088,7 +665666,7 @@ Auth: unix socket -R \u2192 local proxy`, "info");
664088
665666
  pendingHookMessages
664089
665667
  }, renderAndRun);
664090
665668
  }
664091
- }).version("sema 1.0.53", "-v, --version", "Output the version number");
665669
+ }).version("sema 1.0.54", "-v, --version", "Output the version number");
664092
665670
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
664093
665671
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
664094
665672
  if (canUserConfigureAdvisor()) {