@slayzone/cli 0.36.0-beta.19 → 0.36.0-beta.20
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/slay.js +1057 -1018
- package/package.json +1 -1
package/dist/slay.js
CHANGED
|
@@ -135,8 +135,8 @@ var require_argument = __commonJS({
|
|
|
135
135
|
* @param {Function} [fn]
|
|
136
136
|
* @return {Argument}
|
|
137
137
|
*/
|
|
138
|
-
argParser(
|
|
139
|
-
this.parseArg =
|
|
138
|
+
argParser(fn) {
|
|
139
|
+
this.parseArg = fn;
|
|
140
140
|
return this;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
@@ -874,8 +874,8 @@ var require_option = __commonJS({
|
|
|
874
874
|
* @param {Function} [fn]
|
|
875
875
|
* @return {Option}
|
|
876
876
|
*/
|
|
877
|
-
argParser(
|
|
878
|
-
this.parseArg =
|
|
877
|
+
argParser(fn) {
|
|
878
|
+
this.parseArg = fn;
|
|
879
879
|
return this;
|
|
880
880
|
}
|
|
881
881
|
/**
|
|
@@ -1420,12 +1420,12 @@ var require_command = __commonJS({
|
|
|
1420
1420
|
* @param {*} [defaultValue]
|
|
1421
1421
|
* @return {Command} `this` command for chaining
|
|
1422
1422
|
*/
|
|
1423
|
-
argument(name, description,
|
|
1423
|
+
argument(name, description, fn, defaultValue) {
|
|
1424
1424
|
const argument = this.createArgument(name, description);
|
|
1425
|
-
if (typeof
|
|
1426
|
-
argument.default(defaultValue).argParser(
|
|
1425
|
+
if (typeof fn === "function") {
|
|
1426
|
+
argument.default(defaultValue).argParser(fn);
|
|
1427
1427
|
} else {
|
|
1428
|
-
argument.default(
|
|
1428
|
+
argument.default(fn);
|
|
1429
1429
|
}
|
|
1430
1430
|
this.addArgument(argument);
|
|
1431
1431
|
return this;
|
|
@@ -1555,9 +1555,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1555
1555
|
* @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing
|
|
1556
1556
|
* @return {Command} `this` command for chaining
|
|
1557
1557
|
*/
|
|
1558
|
-
exitOverride(
|
|
1559
|
-
if (
|
|
1560
|
-
this._exitCallback =
|
|
1558
|
+
exitOverride(fn) {
|
|
1559
|
+
if (fn) {
|
|
1560
|
+
this._exitCallback = fn;
|
|
1561
1561
|
} else {
|
|
1562
1562
|
this._exitCallback = (err) => {
|
|
1563
1563
|
if (err.code !== "commander.executeSubCommandAsync") {
|
|
@@ -1597,7 +1597,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1597
1597
|
* @param {Function} fn
|
|
1598
1598
|
* @return {Command} `this` command for chaining
|
|
1599
1599
|
*/
|
|
1600
|
-
action(
|
|
1600
|
+
action(fn) {
|
|
1601
1601
|
const listener = (args) => {
|
|
1602
1602
|
const expectedArgsCount = this.registeredArguments.length;
|
|
1603
1603
|
const actionArgs = args.slice(0, expectedArgsCount);
|
|
@@ -1607,7 +1607,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1607
1607
|
actionArgs[expectedArgsCount] = this.opts();
|
|
1608
1608
|
}
|
|
1609
1609
|
actionArgs.push(this);
|
|
1610
|
-
return
|
|
1610
|
+
return fn.apply(this, actionArgs);
|
|
1611
1611
|
};
|
|
1612
1612
|
this._actionHandler = listener;
|
|
1613
1613
|
return this;
|
|
@@ -1745,7 +1745,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1745
1745
|
* @return {Command} `this` command for chaining
|
|
1746
1746
|
* @private
|
|
1747
1747
|
*/
|
|
1748
|
-
_optionEx(config, flags, description,
|
|
1748
|
+
_optionEx(config, flags, description, fn, defaultValue) {
|
|
1749
1749
|
if (typeof flags === "object" && flags instanceof Option2) {
|
|
1750
1750
|
throw new Error(
|
|
1751
1751
|
"To add an Option object use addOption() instead of option() or requiredOption()"
|
|
@@ -1753,17 +1753,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1753
1753
|
}
|
|
1754
1754
|
const option = this.createOption(flags, description);
|
|
1755
1755
|
option.makeOptionMandatory(!!config.mandatory);
|
|
1756
|
-
if (typeof
|
|
1757
|
-
option.default(defaultValue).argParser(
|
|
1758
|
-
} else if (
|
|
1759
|
-
const regex =
|
|
1760
|
-
|
|
1756
|
+
if (typeof fn === "function") {
|
|
1757
|
+
option.default(defaultValue).argParser(fn);
|
|
1758
|
+
} else if (fn instanceof RegExp) {
|
|
1759
|
+
const regex = fn;
|
|
1760
|
+
fn = (val, def) => {
|
|
1761
1761
|
const m = regex.exec(val);
|
|
1762
1762
|
return m ? m[0] : def;
|
|
1763
1763
|
};
|
|
1764
|
-
option.default(defaultValue).argParser(
|
|
1764
|
+
option.default(defaultValue).argParser(fn);
|
|
1765
1765
|
} else {
|
|
1766
|
-
option.default(
|
|
1766
|
+
option.default(fn);
|
|
1767
1767
|
}
|
|
1768
1768
|
return this.addOption(option);
|
|
1769
1769
|
}
|
|
@@ -2340,8 +2340,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2340
2340
|
if (index < this.args.length) {
|
|
2341
2341
|
value = this.args.slice(index);
|
|
2342
2342
|
if (declaredArg.parseArg) {
|
|
2343
|
-
value = value.reduce((processed,
|
|
2344
|
-
return myParseArg(declaredArg,
|
|
2343
|
+
value = value.reduce((processed, v) => {
|
|
2344
|
+
return myParseArg(declaredArg, v, processed);
|
|
2345
2345
|
}, declaredArg.defaultValue);
|
|
2346
2346
|
}
|
|
2347
2347
|
} else if (value === void 0) {
|
|
@@ -2365,11 +2365,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2365
2365
|
* @return {(Promise|undefined)}
|
|
2366
2366
|
* @private
|
|
2367
2367
|
*/
|
|
2368
|
-
_chainOrCall(promise,
|
|
2368
|
+
_chainOrCall(promise, fn) {
|
|
2369
2369
|
if (promise && promise.then && typeof promise.then === "function") {
|
|
2370
|
-
return promise.then(() =>
|
|
2370
|
+
return promise.then(() => fn());
|
|
2371
2371
|
}
|
|
2372
|
-
return
|
|
2372
|
+
return fn();
|
|
2373
2373
|
}
|
|
2374
2374
|
/**
|
|
2375
2375
|
*
|
|
@@ -3414,14 +3414,14 @@ var require_brace_expansion = __commonJS({
|
|
|
3414
3414
|
var pre = m.pre;
|
|
3415
3415
|
var body = m.body;
|
|
3416
3416
|
var post = m.post;
|
|
3417
|
-
var
|
|
3418
|
-
|
|
3417
|
+
var p = pre.split(",");
|
|
3418
|
+
p[p.length - 1] += "{" + body + "}";
|
|
3419
3419
|
var postParts = parseCommaParts(post);
|
|
3420
3420
|
if (post.length) {
|
|
3421
|
-
|
|
3422
|
-
|
|
3421
|
+
p[p.length - 1] += postParts.shift();
|
|
3422
|
+
p.push.apply(p, postParts);
|
|
3423
3423
|
}
|
|
3424
|
-
parts.push.apply(parts,
|
|
3424
|
+
parts.push.apply(parts, p);
|
|
3425
3425
|
return parts;
|
|
3426
3426
|
}
|
|
3427
3427
|
function expandTop(str2) {
|
|
@@ -3475,27 +3475,27 @@ var require_brace_expansion = __commonJS({
|
|
|
3475
3475
|
if (n.length === 1) {
|
|
3476
3476
|
n = expand(n[0], false).map(embrace);
|
|
3477
3477
|
if (n.length === 1) {
|
|
3478
|
-
return post.map(function(
|
|
3479
|
-
return m.pre + n[0] +
|
|
3478
|
+
return post.map(function(p) {
|
|
3479
|
+
return m.pre + n[0] + p;
|
|
3480
3480
|
});
|
|
3481
3481
|
}
|
|
3482
3482
|
}
|
|
3483
3483
|
}
|
|
3484
3484
|
var N;
|
|
3485
3485
|
if (isSequence) {
|
|
3486
|
-
var
|
|
3486
|
+
var x = numeric(n[0]);
|
|
3487
3487
|
var y = numeric(n[1]);
|
|
3488
3488
|
var width = Math.max(n[0].length, n[1].length);
|
|
3489
3489
|
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
3490
3490
|
var test = lte;
|
|
3491
|
-
var reverse = y <
|
|
3491
|
+
var reverse = y < x;
|
|
3492
3492
|
if (reverse) {
|
|
3493
3493
|
incr *= -1;
|
|
3494
3494
|
test = gte;
|
|
3495
3495
|
}
|
|
3496
3496
|
var pad = n.some(isPadded);
|
|
3497
3497
|
N = [];
|
|
3498
|
-
for (var i =
|
|
3498
|
+
for (var i = x; test(i, y); i += incr) {
|
|
3499
3499
|
var c;
|
|
3500
3500
|
if (isAlphaSequence) {
|
|
3501
3501
|
c = String.fromCharCode(i);
|
|
@@ -3538,12 +3538,12 @@ var require_brace_expansion = __commonJS({
|
|
|
3538
3538
|
// ../../../node_modules/readdir-glob/node_modules/minimatch/minimatch.js
|
|
3539
3539
|
var require_minimatch = __commonJS({
|
|
3540
3540
|
"../../../node_modules/readdir-glob/node_modules/minimatch/minimatch.js"(exports2, module2) {
|
|
3541
|
-
var minimatch = module2.exports = (
|
|
3541
|
+
var minimatch = module2.exports = (p, pattern, options = {}) => {
|
|
3542
3542
|
assertValidPattern(pattern);
|
|
3543
3543
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
3544
3544
|
return false;
|
|
3545
3545
|
}
|
|
3546
|
-
return new Minimatch(pattern, options).match(
|
|
3546
|
+
return new Minimatch(pattern, options).match(p);
|
|
3547
3547
|
};
|
|
3548
3548
|
module2.exports = minimatch;
|
|
3549
3549
|
var path10 = require_path();
|
|
@@ -3569,7 +3569,7 @@ var require_minimatch = __commonJS({
|
|
|
3569
3569
|
var reSpecials = charSet("().*{}+?[]^$\\!");
|
|
3570
3570
|
var addPatternStartSet = charSet("[.(");
|
|
3571
3571
|
var slashSplit = /\/+/;
|
|
3572
|
-
minimatch.filter = (pattern, options = {}) => (
|
|
3572
|
+
minimatch.filter = (pattern, options = {}) => (p, i, list) => minimatch(p, pattern, options);
|
|
3573
3573
|
var ext = (a, b = {}) => {
|
|
3574
3574
|
const t = {};
|
|
3575
3575
|
Object.keys(a).forEach((k) => t[k] = a[k]);
|
|
@@ -3581,7 +3581,7 @@ var require_minimatch = __commonJS({
|
|
|
3581
3581
|
return minimatch;
|
|
3582
3582
|
}
|
|
3583
3583
|
const orig = minimatch;
|
|
3584
|
-
const m = (
|
|
3584
|
+
const m = (p, pattern, options) => orig(p, pattern, ext(def, options));
|
|
3585
3585
|
m.Minimatch = class Minimatch extends orig.Minimatch {
|
|
3586
3586
|
constructor(pattern, options) {
|
|
3587
3587
|
super(pattern, ext(def, options));
|
|
@@ -3695,12 +3695,12 @@ var require_minimatch = __commonJS({
|
|
|
3695
3695
|
this.debug("matchOne", file.length, pattern.length);
|
|
3696
3696
|
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
3697
3697
|
this.debug("matchOne loop");
|
|
3698
|
-
var
|
|
3698
|
+
var p = pattern[pi];
|
|
3699
3699
|
var f = file[fi];
|
|
3700
|
-
this.debug(pattern,
|
|
3701
|
-
if (
|
|
3702
|
-
if (
|
|
3703
|
-
this.debug("GLOBSTAR", [pattern,
|
|
3700
|
+
this.debug(pattern, p, f);
|
|
3701
|
+
if (p === false) return false;
|
|
3702
|
+
if (p === GLOBSTAR) {
|
|
3703
|
+
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
3704
3704
|
var fr = fi;
|
|
3705
3705
|
var pr = pi + 1;
|
|
3706
3706
|
if (pr === pl) {
|
|
@@ -3732,12 +3732,12 @@ var require_minimatch = __commonJS({
|
|
|
3732
3732
|
return false;
|
|
3733
3733
|
}
|
|
3734
3734
|
var hit;
|
|
3735
|
-
if (typeof
|
|
3736
|
-
hit = f ===
|
|
3737
|
-
this.debug("string match",
|
|
3735
|
+
if (typeof p === "string") {
|
|
3736
|
+
hit = f === p;
|
|
3737
|
+
this.debug("string match", p, f, hit);
|
|
3738
3738
|
} else {
|
|
3739
|
-
hit = f.match(
|
|
3740
|
-
this.debug("pattern match",
|
|
3739
|
+
hit = f.match(p);
|
|
3740
|
+
this.debug("pattern match", p, f, hit);
|
|
3741
3741
|
}
|
|
3742
3742
|
if (!hit) return false;
|
|
3743
3743
|
}
|
|
@@ -3778,7 +3778,7 @@ var require_minimatch = __commonJS({
|
|
|
3778
3778
|
let dotTravAllowed = pattern.charAt(0) === ".";
|
|
3779
3779
|
let dotFileAllowed = options.dot || dotTravAllowed;
|
|
3780
3780
|
const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
3781
|
-
const subPatternStart = (
|
|
3781
|
+
const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
3782
3782
|
const clearStateChar = () => {
|
|
3783
3783
|
if (stateChar) {
|
|
3784
3784
|
switch (stateChar) {
|
|
@@ -4015,15 +4015,15 @@ var require_minimatch = __commonJS({
|
|
|
4015
4015
|
const flags = options.nocase ? "i" : "";
|
|
4016
4016
|
let re = set2.map((pattern) => {
|
|
4017
4017
|
pattern = pattern.map(
|
|
4018
|
-
(
|
|
4019
|
-
).reduce((set3,
|
|
4020
|
-
if (!(set3[set3.length - 1] === GLOBSTAR &&
|
|
4021
|
-
set3.push(
|
|
4018
|
+
(p) => typeof p === "string" ? regExpEscape(p) : p === GLOBSTAR ? GLOBSTAR : p._src
|
|
4019
|
+
).reduce((set3, p) => {
|
|
4020
|
+
if (!(set3[set3.length - 1] === GLOBSTAR && p === GLOBSTAR)) {
|
|
4021
|
+
set3.push(p);
|
|
4022
4022
|
}
|
|
4023
4023
|
return set3;
|
|
4024
4024
|
}, []);
|
|
4025
|
-
pattern.forEach((
|
|
4026
|
-
if (
|
|
4025
|
+
pattern.forEach((p, i) => {
|
|
4026
|
+
if (p !== GLOBSTAR || pattern[i - 1] === GLOBSTAR) {
|
|
4027
4027
|
return;
|
|
4028
4028
|
}
|
|
4029
4029
|
if (i === 0) {
|
|
@@ -4039,7 +4039,7 @@ var require_minimatch = __commonJS({
|
|
|
4039
4039
|
pattern[i + 1] = GLOBSTAR;
|
|
4040
4040
|
}
|
|
4041
4041
|
});
|
|
4042
|
-
return pattern.filter((
|
|
4042
|
+
return pattern.filter((p) => p !== GLOBSTAR).join("/");
|
|
4043
4043
|
}).join("|");
|
|
4044
4044
|
re = "^(?:" + re + ")$";
|
|
4045
4045
|
if (this.negate) re = "^(?!" + re + ").*$";
|
|
@@ -4320,23 +4320,23 @@ var require_async = __commonJS({
|
|
|
4320
4320
|
typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.async = {}));
|
|
4321
4321
|
})(exports2, (function(exports3) {
|
|
4322
4322
|
"use strict";
|
|
4323
|
-
function apply(
|
|
4324
|
-
return (...callArgs) =>
|
|
4323
|
+
function apply(fn, ...args) {
|
|
4324
|
+
return (...callArgs) => fn(...args, ...callArgs);
|
|
4325
4325
|
}
|
|
4326
|
-
function initialParams(
|
|
4326
|
+
function initialParams(fn) {
|
|
4327
4327
|
return function(...args) {
|
|
4328
4328
|
var callback = args.pop();
|
|
4329
|
-
return
|
|
4329
|
+
return fn.call(this, args, callback);
|
|
4330
4330
|
};
|
|
4331
4331
|
}
|
|
4332
4332
|
var hasQueueMicrotask = typeof queueMicrotask === "function" && queueMicrotask;
|
|
4333
4333
|
var hasSetImmediate = typeof setImmediate === "function" && setImmediate;
|
|
4334
4334
|
var hasNextTick = typeof process === "object" && typeof process.nextTick === "function";
|
|
4335
|
-
function fallback(
|
|
4336
|
-
setTimeout(
|
|
4335
|
+
function fallback(fn) {
|
|
4336
|
+
setTimeout(fn, 0);
|
|
4337
4337
|
}
|
|
4338
4338
|
function wrap(defer) {
|
|
4339
|
-
return (
|
|
4339
|
+
return (fn, ...args) => defer(() => fn(...args));
|
|
4340
4340
|
}
|
|
4341
4341
|
var _defer$1;
|
|
4342
4342
|
if (hasQueueMicrotask) {
|
|
@@ -4387,11 +4387,11 @@ var require_async = __commonJS({
|
|
|
4387
4387
|
}, err);
|
|
4388
4388
|
}
|
|
4389
4389
|
}
|
|
4390
|
-
function isAsync(
|
|
4391
|
-
return
|
|
4390
|
+
function isAsync(fn) {
|
|
4391
|
+
return fn[Symbol.toStringTag] === "AsyncFunction";
|
|
4392
4392
|
}
|
|
4393
|
-
function isAsyncGenerator(
|
|
4394
|
-
return
|
|
4393
|
+
function isAsyncGenerator(fn) {
|
|
4394
|
+
return fn[Symbol.toStringTag] === "AsyncGenerator";
|
|
4395
4395
|
}
|
|
4396
4396
|
function isAsyncIterable(obj) {
|
|
4397
4397
|
return typeof obj[Symbol.asyncIterator] === "function";
|
|
@@ -4421,8 +4421,8 @@ var require_async = __commonJS({
|
|
|
4421
4421
|
return function applyEach2(fns, ...callArgs) {
|
|
4422
4422
|
const go = awaitify(function(callback) {
|
|
4423
4423
|
var that = this;
|
|
4424
|
-
return eachfn(fns, (
|
|
4425
|
-
wrapAsync(
|
|
4424
|
+
return eachfn(fns, (fn, cb) => {
|
|
4425
|
+
wrapAsync(fn).apply(that, callArgs.concat(cb));
|
|
4426
4426
|
}, callback);
|
|
4427
4427
|
});
|
|
4428
4428
|
return go;
|
|
@@ -4435,8 +4435,8 @@ var require_async = __commonJS({
|
|
|
4435
4435
|
var _iteratee = wrapAsync(iteratee);
|
|
4436
4436
|
return eachfn(arr, (value, _2, iterCb) => {
|
|
4437
4437
|
var index2 = counter++;
|
|
4438
|
-
_iteratee(value, (err,
|
|
4439
|
-
results[index2] =
|
|
4438
|
+
_iteratee(value, (err, v) => {
|
|
4439
|
+
results[index2] = v;
|
|
4440
4440
|
iterCb(err);
|
|
4441
4441
|
});
|
|
4442
4442
|
}, (err) => {
|
|
@@ -4447,14 +4447,14 @@ var require_async = __commonJS({
|
|
|
4447
4447
|
return value && typeof value.length === "number" && value.length >= 0 && value.length % 1 === 0;
|
|
4448
4448
|
}
|
|
4449
4449
|
const breakLoop = {};
|
|
4450
|
-
function once(
|
|
4450
|
+
function once(fn) {
|
|
4451
4451
|
function wrapper(...args) {
|
|
4452
|
-
if (
|
|
4453
|
-
var callFn =
|
|
4454
|
-
|
|
4452
|
+
if (fn === null) return;
|
|
4453
|
+
var callFn = fn;
|
|
4454
|
+
fn = null;
|
|
4455
4455
|
callFn.apply(this, args);
|
|
4456
4456
|
}
|
|
4457
|
-
Object.assign(wrapper,
|
|
4457
|
+
Object.assign(wrapper, fn);
|
|
4458
4458
|
return wrapper;
|
|
4459
4459
|
}
|
|
4460
4460
|
function getIterator(coll) {
|
|
@@ -4496,11 +4496,11 @@ var require_async = __commonJS({
|
|
|
4496
4496
|
var iterator = getIterator(coll);
|
|
4497
4497
|
return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);
|
|
4498
4498
|
}
|
|
4499
|
-
function onlyOnce(
|
|
4499
|
+
function onlyOnce(fn) {
|
|
4500
4500
|
return function(...args) {
|
|
4501
|
-
if (
|
|
4502
|
-
var callFn =
|
|
4503
|
-
|
|
4501
|
+
if (fn === null) throw new Error("Callback was already called.");
|
|
4502
|
+
var callFn = fn;
|
|
4503
|
+
fn = null;
|
|
4504
4504
|
callFn.apply(this, args);
|
|
4505
4505
|
};
|
|
4506
4506
|
}
|
|
@@ -4729,16 +4729,16 @@ var require_async = __commonJS({
|
|
|
4729
4729
|
run2();
|
|
4730
4730
|
}
|
|
4731
4731
|
}
|
|
4732
|
-
function addListener(taskName,
|
|
4732
|
+
function addListener(taskName, fn) {
|
|
4733
4733
|
var taskListeners = listeners[taskName];
|
|
4734
4734
|
if (!taskListeners) {
|
|
4735
4735
|
taskListeners = listeners[taskName] = [];
|
|
4736
4736
|
}
|
|
4737
|
-
taskListeners.push(
|
|
4737
|
+
taskListeners.push(fn);
|
|
4738
4738
|
}
|
|
4739
4739
|
function taskComplete(taskName) {
|
|
4740
4740
|
var taskListeners = listeners[taskName] || [];
|
|
4741
|
-
taskListeners.forEach((
|
|
4741
|
+
taskListeners.forEach((fn) => fn());
|
|
4742
4742
|
processQueue();
|
|
4743
4743
|
}
|
|
4744
4744
|
function runTask(key, task) {
|
|
@@ -4962,7 +4962,7 @@ var require_async = __commonJS({
|
|
|
4962
4962
|
unsaturated: [],
|
|
4963
4963
|
empty: []
|
|
4964
4964
|
};
|
|
4965
|
-
function
|
|
4965
|
+
function on2(event, handler) {
|
|
4966
4966
|
events[event].push(handler);
|
|
4967
4967
|
}
|
|
4968
4968
|
function once2(event, handler) {
|
|
@@ -5057,7 +5057,7 @@ var require_async = __commonJS({
|
|
|
5057
5057
|
});
|
|
5058
5058
|
}
|
|
5059
5059
|
off(name);
|
|
5060
|
-
|
|
5060
|
+
on2(name, handler);
|
|
5061
5061
|
};
|
|
5062
5062
|
var isProcessing = false;
|
|
5063
5063
|
var q = {
|
|
@@ -5194,9 +5194,9 @@ var require_async = __commonJS({
|
|
|
5194
5194
|
function reduce(coll, memo, iteratee, callback) {
|
|
5195
5195
|
callback = once(callback);
|
|
5196
5196
|
var _iteratee = wrapAsync(iteratee);
|
|
5197
|
-
return eachOfSeries$1(coll, (
|
|
5198
|
-
_iteratee(memo,
|
|
5199
|
-
memo =
|
|
5197
|
+
return eachOfSeries$1(coll, (x, i, iterCb) => {
|
|
5198
|
+
_iteratee(memo, x, (err, v) => {
|
|
5199
|
+
memo = v;
|
|
5200
5200
|
iterCb(err);
|
|
5201
5201
|
});
|
|
5202
5202
|
}, (err) => callback(err, memo));
|
|
@@ -5215,8 +5215,8 @@ var require_async = __commonJS({
|
|
|
5215
5215
|
reduce$1(
|
|
5216
5216
|
_functions,
|
|
5217
5217
|
args,
|
|
5218
|
-
(newargs,
|
|
5219
|
-
|
|
5218
|
+
(newargs, fn, iterCb) => {
|
|
5219
|
+
fn.apply(that, newargs.concat((err, ...nextargs) => {
|
|
5220
5220
|
iterCb(err, nextargs);
|
|
5221
5221
|
}));
|
|
5222
5222
|
},
|
|
@@ -5298,14 +5298,14 @@ var require_async = __commonJS({
|
|
|
5298
5298
|
}
|
|
5299
5299
|
var detectSeries$1 = awaitify(detectSeries, 3);
|
|
5300
5300
|
function consoleFunc(name) {
|
|
5301
|
-
return (
|
|
5301
|
+
return (fn, ...args) => wrapAsync(fn)(...args, (err, ...resultArgs) => {
|
|
5302
5302
|
if (typeof console === "object") {
|
|
5303
5303
|
if (err) {
|
|
5304
5304
|
if (console.error) {
|
|
5305
5305
|
console.error(err);
|
|
5306
5306
|
}
|
|
5307
5307
|
} else if (console[name]) {
|
|
5308
|
-
resultArgs.forEach((
|
|
5308
|
+
resultArgs.forEach((x) => console[name](x));
|
|
5309
5309
|
}
|
|
5310
5310
|
}
|
|
5311
5311
|
});
|
|
@@ -5353,8 +5353,8 @@ var require_async = __commonJS({
|
|
|
5353
5353
|
return eachLimit$1(coll, 1, iteratee, callback);
|
|
5354
5354
|
}
|
|
5355
5355
|
var eachSeries$1 = awaitify(eachSeries, 3);
|
|
5356
|
-
function ensureAsync(
|
|
5357
|
-
if (isAsync(
|
|
5356
|
+
function ensureAsync(fn) {
|
|
5357
|
+
if (isAsync(fn)) return fn;
|
|
5358
5358
|
return function(...args) {
|
|
5359
5359
|
var callback = args.pop();
|
|
5360
5360
|
var sync = true;
|
|
@@ -5365,7 +5365,7 @@ var require_async = __commonJS({
|
|
|
5365
5365
|
callback(...innerArgs);
|
|
5366
5366
|
}
|
|
5367
5367
|
});
|
|
5368
|
-
|
|
5368
|
+
fn.apply(this, args);
|
|
5369
5369
|
sync = false;
|
|
5370
5370
|
};
|
|
5371
5371
|
}
|
|
@@ -5383,9 +5383,9 @@ var require_async = __commonJS({
|
|
|
5383
5383
|
var everySeries$1 = awaitify(everySeries, 3);
|
|
5384
5384
|
function filterArray(eachfn, arr, iteratee, callback) {
|
|
5385
5385
|
var truthValues = new Array(arr.length);
|
|
5386
|
-
eachfn(arr, (
|
|
5387
|
-
iteratee(
|
|
5388
|
-
truthValues[index2] = !!
|
|
5386
|
+
eachfn(arr, (x, index2, iterCb) => {
|
|
5387
|
+
iteratee(x, (err, v) => {
|
|
5388
|
+
truthValues[index2] = !!v;
|
|
5389
5389
|
iterCb(err);
|
|
5390
5390
|
});
|
|
5391
5391
|
}, (err) => {
|
|
@@ -5399,17 +5399,17 @@ var require_async = __commonJS({
|
|
|
5399
5399
|
}
|
|
5400
5400
|
function filterGeneric(eachfn, coll, iteratee, callback) {
|
|
5401
5401
|
var results = [];
|
|
5402
|
-
eachfn(coll, (
|
|
5403
|
-
iteratee(
|
|
5402
|
+
eachfn(coll, (x, index2, iterCb) => {
|
|
5403
|
+
iteratee(x, (err, v) => {
|
|
5404
5404
|
if (err) return iterCb(err);
|
|
5405
|
-
if (
|
|
5406
|
-
results.push({ index: index2, value:
|
|
5405
|
+
if (v) {
|
|
5406
|
+
results.push({ index: index2, value: x });
|
|
5407
5407
|
}
|
|
5408
5408
|
iterCb(err);
|
|
5409
5409
|
});
|
|
5410
5410
|
}, (err) => {
|
|
5411
5411
|
if (err) return callback(err);
|
|
5412
|
-
callback(null, results.sort((a, b) => a.index - b.index).map((
|
|
5412
|
+
callback(null, results.sort((a, b) => a.index - b.index).map((v) => v.value));
|
|
5413
5413
|
});
|
|
5414
5414
|
}
|
|
5415
5415
|
function _filter(eachfn, coll, iteratee, callback) {
|
|
@@ -5428,9 +5428,9 @@ var require_async = __commonJS({
|
|
|
5428
5428
|
return _filter(eachOfSeries$1, coll, iteratee, callback);
|
|
5429
5429
|
}
|
|
5430
5430
|
var filterSeries$1 = awaitify(filterSeries, 3);
|
|
5431
|
-
function forever(
|
|
5431
|
+
function forever(fn, errback) {
|
|
5432
5432
|
var done = onlyOnce(errback);
|
|
5433
|
-
var task = wrapAsync(ensureAsync(
|
|
5433
|
+
var task = wrapAsync(ensureAsync(fn));
|
|
5434
5434
|
function next(err) {
|
|
5435
5435
|
if (err) return done(err);
|
|
5436
5436
|
if (err === false) return;
|
|
@@ -5490,10 +5490,10 @@ var require_async = __commonJS({
|
|
|
5490
5490
|
function mapValuesSeries(obj, iteratee, callback) {
|
|
5491
5491
|
return mapValuesLimit$1(obj, 1, iteratee, callback);
|
|
5492
5492
|
}
|
|
5493
|
-
function memoize(
|
|
5493
|
+
function memoize(fn, hasher = (v) => v) {
|
|
5494
5494
|
var memo = /* @__PURE__ */ Object.create(null);
|
|
5495
5495
|
var queues = /* @__PURE__ */ Object.create(null);
|
|
5496
|
-
var _fn = wrapAsync(
|
|
5496
|
+
var _fn = wrapAsync(fn);
|
|
5497
5497
|
var memoized = initialParams((args, callback) => {
|
|
5498
5498
|
var key = hasher(...args);
|
|
5499
5499
|
if (key in memo) {
|
|
@@ -5515,7 +5515,7 @@ var require_async = __commonJS({
|
|
|
5515
5515
|
}
|
|
5516
5516
|
});
|
|
5517
5517
|
memoized.memo = memo;
|
|
5518
|
-
memoized.unmemoized =
|
|
5518
|
+
memoized.unmemoized = fn;
|
|
5519
5519
|
return memoized;
|
|
5520
5520
|
}
|
|
5521
5521
|
var _defer;
|
|
@@ -5564,12 +5564,12 @@ var require_async = __commonJS({
|
|
|
5564
5564
|
return this;
|
|
5565
5565
|
}
|
|
5566
5566
|
percUp(index2) {
|
|
5567
|
-
let
|
|
5568
|
-
while (index2 > 0 && smaller(this.heap[index2], this.heap[
|
|
5567
|
+
let p;
|
|
5568
|
+
while (index2 > 0 && smaller(this.heap[index2], this.heap[p = parent(index2)])) {
|
|
5569
5569
|
let t = this.heap[index2];
|
|
5570
|
-
this.heap[index2] = this.heap[
|
|
5571
|
-
this.heap[
|
|
5572
|
-
index2 =
|
|
5570
|
+
this.heap[index2] = this.heap[p];
|
|
5571
|
+
this.heap[p] = t;
|
|
5572
|
+
index2 = p;
|
|
5573
5573
|
}
|
|
5574
5574
|
}
|
|
5575
5575
|
percDown(index2) {
|
|
@@ -5631,11 +5631,11 @@ var require_async = __commonJS({
|
|
|
5631
5631
|
function parent(i) {
|
|
5632
5632
|
return (i + 1 >> 1) - 1;
|
|
5633
5633
|
}
|
|
5634
|
-
function smaller(
|
|
5635
|
-
if (
|
|
5636
|
-
return
|
|
5634
|
+
function smaller(x, y) {
|
|
5635
|
+
if (x.priority !== y.priority) {
|
|
5636
|
+
return x.priority < y.priority;
|
|
5637
5637
|
} else {
|
|
5638
|
-
return
|
|
5638
|
+
return x.pushCount < y.pushCount;
|
|
5639
5639
|
}
|
|
5640
5640
|
}
|
|
5641
5641
|
function priorityQueue(worker, concurrency) {
|
|
@@ -5683,8 +5683,8 @@ var require_async = __commonJS({
|
|
|
5683
5683
|
var reversed = [...array].reverse();
|
|
5684
5684
|
return reduce$1(reversed, memo, iteratee, callback);
|
|
5685
5685
|
}
|
|
5686
|
-
function reflect(
|
|
5687
|
-
var _fn = wrapAsync(
|
|
5686
|
+
function reflect(fn) {
|
|
5687
|
+
var _fn = wrapAsync(fn);
|
|
5688
5688
|
return initialParams(function reflectOn(args, reflectCallback) {
|
|
5689
5689
|
args.push((error, ...cbArgs) => {
|
|
5690
5690
|
let retVal = {};
|
|
@@ -5718,8 +5718,8 @@ var require_async = __commonJS({
|
|
|
5718
5718
|
function reject$2(eachfn, arr, _iteratee, callback) {
|
|
5719
5719
|
const iteratee = wrapAsync(_iteratee);
|
|
5720
5720
|
return _filter(eachfn, arr, (value, cb) => {
|
|
5721
|
-
iteratee(value, (err,
|
|
5722
|
-
cb(err, !
|
|
5721
|
+
iteratee(value, (err, v) => {
|
|
5722
|
+
cb(err, !v);
|
|
5723
5723
|
});
|
|
5724
5724
|
}, callback);
|
|
5725
5725
|
}
|
|
@@ -5823,14 +5823,14 @@ var require_async = __commonJS({
|
|
|
5823
5823
|
var someSeries$1 = awaitify(someSeries, 3);
|
|
5824
5824
|
function sortBy(coll, iteratee, callback) {
|
|
5825
5825
|
var _iteratee = wrapAsync(iteratee);
|
|
5826
|
-
return map$1(coll, (
|
|
5827
|
-
_iteratee(
|
|
5826
|
+
return map$1(coll, (x, iterCb) => {
|
|
5827
|
+
_iteratee(x, (err, criteria) => {
|
|
5828
5828
|
if (err) return iterCb(err);
|
|
5829
|
-
iterCb(err, { value:
|
|
5829
|
+
iterCb(err, { value: x, criteria });
|
|
5830
5830
|
});
|
|
5831
5831
|
}, (err, results) => {
|
|
5832
5832
|
if (err) return callback(err);
|
|
5833
|
-
callback(null, results.sort(comparator).map((
|
|
5833
|
+
callback(null, results.sort(comparator).map((v) => v.value));
|
|
5834
5834
|
});
|
|
5835
5835
|
function comparator(left, right) {
|
|
5836
5836
|
var a = left.criteria, b = right.criteria;
|
|
@@ -5839,7 +5839,7 @@ var require_async = __commonJS({
|
|
|
5839
5839
|
}
|
|
5840
5840
|
var sortBy$1 = awaitify(sortBy, 3);
|
|
5841
5841
|
function timeout(asyncFn, milliseconds, info) {
|
|
5842
|
-
var
|
|
5842
|
+
var fn = wrapAsync(asyncFn);
|
|
5843
5843
|
return initialParams((args, callback) => {
|
|
5844
5844
|
var timedOut = false;
|
|
5845
5845
|
var timer;
|
|
@@ -5860,7 +5860,7 @@ var require_async = __commonJS({
|
|
|
5860
5860
|
}
|
|
5861
5861
|
});
|
|
5862
5862
|
timer = setTimeout(timeoutCallback, milliseconds);
|
|
5863
|
-
|
|
5863
|
+
fn(...args);
|
|
5864
5864
|
});
|
|
5865
5865
|
}
|
|
5866
5866
|
function range(size) {
|
|
@@ -5888,8 +5888,8 @@ var require_async = __commonJS({
|
|
|
5888
5888
|
}
|
|
5889
5889
|
callback = once(callback || promiseCallback());
|
|
5890
5890
|
var _iteratee = wrapAsync(iteratee);
|
|
5891
|
-
eachOf$1(coll, (
|
|
5892
|
-
_iteratee(accumulator,
|
|
5891
|
+
eachOf$1(coll, (v, k, cb) => {
|
|
5892
|
+
_iteratee(accumulator, v, k, cb);
|
|
5893
5893
|
}, (err) => callback(err, accumulator));
|
|
5894
5894
|
return callback[PROMISE_SYMBOL];
|
|
5895
5895
|
}
|
|
@@ -5910,9 +5910,9 @@ var require_async = __commonJS({
|
|
|
5910
5910
|
}, () => callback(error, result));
|
|
5911
5911
|
}
|
|
5912
5912
|
var tryEach$1 = awaitify(tryEach);
|
|
5913
|
-
function unmemoize(
|
|
5913
|
+
function unmemoize(fn) {
|
|
5914
5914
|
return (...args) => {
|
|
5915
|
-
return (
|
|
5915
|
+
return (fn.unmemoized || fn)(...args);
|
|
5916
5916
|
};
|
|
5917
5917
|
}
|
|
5918
5918
|
function whilst(test, iteratee, callback) {
|
|
@@ -6339,25 +6339,25 @@ var require_polyfills = __commonJS({
|
|
|
6339
6339
|
}
|
|
6340
6340
|
function patchLutimes(fs8) {
|
|
6341
6341
|
if (constants.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
|
|
6342
|
-
fs8.lutimes = function(path10, at,
|
|
6342
|
+
fs8.lutimes = function(path10, at, mt2, cb) {
|
|
6343
6343
|
fs8.open(path10, constants.O_SYMLINK, function(er, fd) {
|
|
6344
6344
|
if (er) {
|
|
6345
6345
|
if (cb) cb(er);
|
|
6346
6346
|
return;
|
|
6347
6347
|
}
|
|
6348
|
-
fs8.futimes(fd, at,
|
|
6348
|
+
fs8.futimes(fd, at, mt2, function(er2) {
|
|
6349
6349
|
fs8.close(fd, function(er22) {
|
|
6350
6350
|
if (cb) cb(er2 || er22);
|
|
6351
6351
|
});
|
|
6352
6352
|
});
|
|
6353
6353
|
});
|
|
6354
6354
|
};
|
|
6355
|
-
fs8.lutimesSync = function(path10, at,
|
|
6355
|
+
fs8.lutimesSync = function(path10, at, mt2) {
|
|
6356
6356
|
var fd = fs8.openSync(path10, constants.O_SYMLINK);
|
|
6357
6357
|
var ret;
|
|
6358
6358
|
var threw = true;
|
|
6359
6359
|
try {
|
|
6360
|
-
ret = fs8.futimesSync(fd, at,
|
|
6360
|
+
ret = fs8.futimesSync(fd, at, mt2);
|
|
6361
6361
|
threw = false;
|
|
6362
6362
|
} finally {
|
|
6363
6363
|
if (threw) {
|
|
@@ -6919,16 +6919,16 @@ var require_graceful_fs = __commonJS({
|
|
|
6919
6919
|
if (fs7[gracefulQueue].length === 0)
|
|
6920
6920
|
return;
|
|
6921
6921
|
var elem = fs7[gracefulQueue].shift();
|
|
6922
|
-
var
|
|
6922
|
+
var fn = elem[0];
|
|
6923
6923
|
var args = elem[1];
|
|
6924
6924
|
var err = elem[2];
|
|
6925
6925
|
var startTime = elem[3];
|
|
6926
6926
|
var lastTime = elem[4];
|
|
6927
6927
|
if (startTime === void 0) {
|
|
6928
|
-
debug("RETRY",
|
|
6929
|
-
|
|
6928
|
+
debug("RETRY", fn.name, args);
|
|
6929
|
+
fn.apply(null, args);
|
|
6930
6930
|
} else if (Date.now() - startTime >= 6e4) {
|
|
6931
|
-
debug("TIMEOUT",
|
|
6931
|
+
debug("TIMEOUT", fn.name, args);
|
|
6932
6932
|
var cb = args.pop();
|
|
6933
6933
|
if (typeof cb === "function")
|
|
6934
6934
|
cb.call(null, err);
|
|
@@ -6937,8 +6937,8 @@ var require_graceful_fs = __commonJS({
|
|
|
6937
6937
|
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
6938
6938
|
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
6939
6939
|
if (sinceAttempt >= desiredDelay) {
|
|
6940
|
-
debug("RETRY",
|
|
6941
|
-
|
|
6940
|
+
debug("RETRY", fn.name, args);
|
|
6941
|
+
fn.apply(null, args.concat([startTime]));
|
|
6942
6942
|
} else {
|
|
6943
6943
|
fs7[gracefulQueue].push(elem);
|
|
6944
6944
|
}
|
|
@@ -6972,8 +6972,8 @@ var require_process_nextick_args = __commonJS({
|
|
|
6972
6972
|
} else {
|
|
6973
6973
|
module2.exports = process;
|
|
6974
6974
|
}
|
|
6975
|
-
function nextTick(
|
|
6976
|
-
if (typeof
|
|
6975
|
+
function nextTick(fn, arg1, arg2, arg3) {
|
|
6976
|
+
if (typeof fn !== "function") {
|
|
6977
6977
|
throw new TypeError('"callback" argument must be a function');
|
|
6978
6978
|
}
|
|
6979
6979
|
var len = arguments.length;
|
|
@@ -6981,18 +6981,18 @@ var require_process_nextick_args = __commonJS({
|
|
|
6981
6981
|
switch (len) {
|
|
6982
6982
|
case 0:
|
|
6983
6983
|
case 1:
|
|
6984
|
-
return process.nextTick(
|
|
6984
|
+
return process.nextTick(fn);
|
|
6985
6985
|
case 2:
|
|
6986
6986
|
return process.nextTick(function afterTickOne() {
|
|
6987
|
-
|
|
6987
|
+
fn.call(null, arg1);
|
|
6988
6988
|
});
|
|
6989
6989
|
case 3:
|
|
6990
6990
|
return process.nextTick(function afterTickTwo() {
|
|
6991
|
-
|
|
6991
|
+
fn.call(null, arg1, arg2);
|
|
6992
6992
|
});
|
|
6993
6993
|
case 4:
|
|
6994
6994
|
return process.nextTick(function afterTickThree() {
|
|
6995
|
-
|
|
6995
|
+
fn.call(null, arg1, arg2, arg3);
|
|
6996
6996
|
});
|
|
6997
6997
|
default:
|
|
6998
6998
|
args = new Array(len - 1);
|
|
@@ -7001,16 +7001,16 @@ var require_process_nextick_args = __commonJS({
|
|
|
7001
7001
|
args[i++] = arguments[i];
|
|
7002
7002
|
}
|
|
7003
7003
|
return process.nextTick(function afterTick() {
|
|
7004
|
-
|
|
7004
|
+
fn.apply(null, args);
|
|
7005
7005
|
});
|
|
7006
7006
|
}
|
|
7007
7007
|
}
|
|
7008
7008
|
}
|
|
7009
7009
|
});
|
|
7010
7010
|
|
|
7011
|
-
// ../../../node_modules/
|
|
7011
|
+
// ../../../node_modules/isarray/index.js
|
|
7012
7012
|
var require_isarray = __commonJS({
|
|
7013
|
-
"../../../node_modules/
|
|
7013
|
+
"../../../node_modules/isarray/index.js"(exports2, module2) {
|
|
7014
7014
|
var toString = {}.toString;
|
|
7015
7015
|
module2.exports = Array.isArray || function(arr) {
|
|
7016
7016
|
return toString.call(arr) == "[object Array]";
|
|
@@ -7025,9 +7025,9 @@ var require_stream = __commonJS({
|
|
|
7025
7025
|
}
|
|
7026
7026
|
});
|
|
7027
7027
|
|
|
7028
|
-
// ../../../node_modules/
|
|
7028
|
+
// ../../../node_modules/safe-buffer/index.js
|
|
7029
7029
|
var require_safe_buffer = __commonJS({
|
|
7030
|
-
"../../../node_modules/
|
|
7030
|
+
"../../../node_modules/safe-buffer/index.js"(exports2, module2) {
|
|
7031
7031
|
var buffer = require("buffer");
|
|
7032
7032
|
var Buffer2 = buffer.Buffer;
|
|
7033
7033
|
function copyProps(src, dst) {
|
|
@@ -7219,15 +7219,15 @@ var require_BufferList = __commonJS({
|
|
|
7219
7219
|
this.tail = null;
|
|
7220
7220
|
this.length = 0;
|
|
7221
7221
|
}
|
|
7222
|
-
BufferList.prototype.push = function push(
|
|
7223
|
-
var entry = { data:
|
|
7222
|
+
BufferList.prototype.push = function push(v) {
|
|
7223
|
+
var entry = { data: v, next: null };
|
|
7224
7224
|
if (this.length > 0) this.tail.next = entry;
|
|
7225
7225
|
else this.head = entry;
|
|
7226
7226
|
this.tail = entry;
|
|
7227
7227
|
++this.length;
|
|
7228
7228
|
};
|
|
7229
|
-
BufferList.prototype.unshift = function unshift(
|
|
7230
|
-
var entry = { data:
|
|
7229
|
+
BufferList.prototype.unshift = function unshift(v) {
|
|
7230
|
+
var entry = { data: v, next: this.head };
|
|
7231
7231
|
if (this.length === 0) this.tail = entry;
|
|
7232
7232
|
this.head = entry;
|
|
7233
7233
|
++this.length;
|
|
@@ -7246,22 +7246,22 @@ var require_BufferList = __commonJS({
|
|
|
7246
7246
|
};
|
|
7247
7247
|
BufferList.prototype.join = function join8(s) {
|
|
7248
7248
|
if (this.length === 0) return "";
|
|
7249
|
-
var
|
|
7250
|
-
var ret = "" +
|
|
7251
|
-
while (
|
|
7252
|
-
ret += s +
|
|
7249
|
+
var p = this.head;
|
|
7250
|
+
var ret = "" + p.data;
|
|
7251
|
+
while (p = p.next) {
|
|
7252
|
+
ret += s + p.data;
|
|
7253
7253
|
}
|
|
7254
7254
|
return ret;
|
|
7255
7255
|
};
|
|
7256
7256
|
BufferList.prototype.concat = function concat(n) {
|
|
7257
7257
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
7258
7258
|
var ret = Buffer2.allocUnsafe(n >>> 0);
|
|
7259
|
-
var
|
|
7259
|
+
var p = this.head;
|
|
7260
7260
|
var i = 0;
|
|
7261
|
-
while (
|
|
7262
|
-
copyBuffer(
|
|
7263
|
-
i +=
|
|
7264
|
-
|
|
7261
|
+
while (p) {
|
|
7262
|
+
copyBuffer(p.data, ret, i);
|
|
7263
|
+
i += p.data.length;
|
|
7264
|
+
p = p.next;
|
|
7265
7265
|
}
|
|
7266
7266
|
return ret;
|
|
7267
7267
|
};
|
|
@@ -7812,14 +7812,14 @@ var require_stream_duplex = __commonJS({
|
|
|
7812
7812
|
util.inherits(Duplex, Readable2);
|
|
7813
7813
|
{
|
|
7814
7814
|
keys = objectKeys(Writable.prototype);
|
|
7815
|
-
for (
|
|
7816
|
-
method = keys[
|
|
7815
|
+
for (v = 0; v < keys.length; v++) {
|
|
7816
|
+
method = keys[v];
|
|
7817
7817
|
if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
|
|
7818
7818
|
}
|
|
7819
7819
|
}
|
|
7820
7820
|
var keys;
|
|
7821
7821
|
var method;
|
|
7822
|
-
var
|
|
7822
|
+
var v;
|
|
7823
7823
|
function Duplex(options) {
|
|
7824
7824
|
if (!(this instanceof Duplex)) return new Duplex(options);
|
|
7825
7825
|
Readable2.call(this, options);
|
|
@@ -7869,9 +7869,9 @@ var require_stream_duplex = __commonJS({
|
|
|
7869
7869
|
}
|
|
7870
7870
|
});
|
|
7871
7871
|
|
|
7872
|
-
// ../../../node_modules/
|
|
7872
|
+
// ../../../node_modules/string_decoder/lib/string_decoder.js
|
|
7873
7873
|
var require_string_decoder = __commonJS({
|
|
7874
|
-
"../../../node_modules/
|
|
7874
|
+
"../../../node_modules/string_decoder/lib/string_decoder.js"(exports2) {
|
|
7875
7875
|
"use strict";
|
|
7876
7876
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
7877
7877
|
var isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
@@ -8010,7 +8010,7 @@ var require_string_decoder = __commonJS({
|
|
|
8010
8010
|
}
|
|
8011
8011
|
return 0;
|
|
8012
8012
|
}
|
|
8013
|
-
function utf8CheckExtraBytes(self2, buf,
|
|
8013
|
+
function utf8CheckExtraBytes(self2, buf, p) {
|
|
8014
8014
|
if ((buf[0] & 192) !== 128) {
|
|
8015
8015
|
self2.lastNeed = 0;
|
|
8016
8016
|
return "\uFFFD";
|
|
@@ -8029,14 +8029,14 @@ var require_string_decoder = __commonJS({
|
|
|
8029
8029
|
}
|
|
8030
8030
|
}
|
|
8031
8031
|
function utf8FillLast(buf) {
|
|
8032
|
-
var
|
|
8033
|
-
var r = utf8CheckExtraBytes(this, buf,
|
|
8032
|
+
var p = this.lastTotal - this.lastNeed;
|
|
8033
|
+
var r = utf8CheckExtraBytes(this, buf, p);
|
|
8034
8034
|
if (r !== void 0) return r;
|
|
8035
8035
|
if (this.lastNeed <= buf.length) {
|
|
8036
|
-
buf.copy(this.lastChar,
|
|
8036
|
+
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
8037
8037
|
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
8038
8038
|
}
|
|
8039
|
-
buf.copy(this.lastChar,
|
|
8039
|
+
buf.copy(this.lastChar, p, 0, buf.length);
|
|
8040
8040
|
this.lastNeed -= buf.length;
|
|
8041
8041
|
}
|
|
8042
8042
|
function utf8Text(buf, i) {
|
|
@@ -8145,11 +8145,11 @@ var require_stream_readable = __commonJS({
|
|
|
8145
8145
|
var StringDecoder;
|
|
8146
8146
|
util.inherits(Readable2, Stream);
|
|
8147
8147
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
8148
|
-
function prependListener(emitter, event,
|
|
8149
|
-
if (typeof emitter.prependListener === "function") return emitter.prependListener(event,
|
|
8150
|
-
if (!emitter._events || !emitter._events[event]) emitter.on(event,
|
|
8151
|
-
else if (isArray(emitter._events[event])) emitter._events[event].unshift(
|
|
8152
|
-
else emitter._events[event] = [
|
|
8148
|
+
function prependListener(emitter, event, fn) {
|
|
8149
|
+
if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
|
|
8150
|
+
if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
|
|
8151
|
+
else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);
|
|
8152
|
+
else emitter._events[event] = [fn, emitter._events[event]];
|
|
8153
8153
|
}
|
|
8154
8154
|
function ReadableState(options, stream) {
|
|
8155
8155
|
Duplex = Duplex || require_stream_duplex();
|
|
@@ -8571,8 +8571,8 @@ var require_stream_readable = __commonJS({
|
|
|
8571
8571
|
dest.emit("unpipe", this, unpipeInfo);
|
|
8572
8572
|
return this;
|
|
8573
8573
|
};
|
|
8574
|
-
Readable2.prototype.on = function(ev,
|
|
8575
|
-
var res = Stream.prototype.on.call(this, ev,
|
|
8574
|
+
Readable2.prototype.on = function(ev, fn) {
|
|
8575
|
+
var res = Stream.prototype.on.call(this, ev, fn);
|
|
8576
8576
|
if (ev === "data") {
|
|
8577
8577
|
if (this._readableState.flowing !== false) this.resume();
|
|
8578
8578
|
} else if (ev === "readable") {
|
|
@@ -8716,12 +8716,12 @@ var require_stream_readable = __commonJS({
|
|
|
8716
8716
|
return ret;
|
|
8717
8717
|
}
|
|
8718
8718
|
function copyFromBufferString(n, list) {
|
|
8719
|
-
var
|
|
8719
|
+
var p = list.head;
|
|
8720
8720
|
var c = 1;
|
|
8721
|
-
var ret =
|
|
8721
|
+
var ret = p.data;
|
|
8722
8722
|
n -= ret.length;
|
|
8723
|
-
while (
|
|
8724
|
-
var str2 =
|
|
8723
|
+
while (p = p.next) {
|
|
8724
|
+
var str2 = p.data;
|
|
8725
8725
|
var nb = n > str2.length ? str2.length : n;
|
|
8726
8726
|
if (nb === str2.length) ret += str2;
|
|
8727
8727
|
else ret += str2.slice(0, n);
|
|
@@ -8729,11 +8729,11 @@ var require_stream_readable = __commonJS({
|
|
|
8729
8729
|
if (n === 0) {
|
|
8730
8730
|
if (nb === str2.length) {
|
|
8731
8731
|
++c;
|
|
8732
|
-
if (
|
|
8732
|
+
if (p.next) list.head = p.next;
|
|
8733
8733
|
else list.head = list.tail = null;
|
|
8734
8734
|
} else {
|
|
8735
|
-
list.head =
|
|
8736
|
-
|
|
8735
|
+
list.head = p;
|
|
8736
|
+
p.data = str2.slice(nb);
|
|
8737
8737
|
}
|
|
8738
8738
|
break;
|
|
8739
8739
|
}
|
|
@@ -8744,23 +8744,23 @@ var require_stream_readable = __commonJS({
|
|
|
8744
8744
|
}
|
|
8745
8745
|
function copyFromBuffer(n, list) {
|
|
8746
8746
|
var ret = Buffer2.allocUnsafe(n);
|
|
8747
|
-
var
|
|
8747
|
+
var p = list.head;
|
|
8748
8748
|
var c = 1;
|
|
8749
|
-
|
|
8750
|
-
n -=
|
|
8751
|
-
while (
|
|
8752
|
-
var buf =
|
|
8749
|
+
p.data.copy(ret);
|
|
8750
|
+
n -= p.data.length;
|
|
8751
|
+
while (p = p.next) {
|
|
8752
|
+
var buf = p.data;
|
|
8753
8753
|
var nb = n > buf.length ? buf.length : n;
|
|
8754
8754
|
buf.copy(ret, ret.length - n, 0, nb);
|
|
8755
8755
|
n -= nb;
|
|
8756
8756
|
if (n === 0) {
|
|
8757
8757
|
if (nb === buf.length) {
|
|
8758
8758
|
++c;
|
|
8759
|
-
if (
|
|
8759
|
+
if (p.next) list.head = p.next;
|
|
8760
8760
|
else list.head = list.tail = null;
|
|
8761
8761
|
} else {
|
|
8762
|
-
list.head =
|
|
8763
|
-
|
|
8762
|
+
list.head = p;
|
|
8763
|
+
p.data = buf.slice(nb);
|
|
8764
8764
|
}
|
|
8765
8765
|
break;
|
|
8766
8766
|
}
|
|
@@ -8784,9 +8784,9 @@ var require_stream_readable = __commonJS({
|
|
|
8784
8784
|
stream.emit("end");
|
|
8785
8785
|
}
|
|
8786
8786
|
}
|
|
8787
|
-
function indexOf(xs,
|
|
8787
|
+
function indexOf(xs, x) {
|
|
8788
8788
|
for (var i = 0, l = xs.length; i < l; i++) {
|
|
8789
|
-
if (xs[i] ===
|
|
8789
|
+
if (xs[i] === x) return i;
|
|
8790
8790
|
}
|
|
8791
8791
|
return -1;
|
|
8792
8792
|
}
|
|
@@ -8962,24 +8962,24 @@ var require_lazystream = __commonJS({
|
|
|
8962
8962
|
return this[method].apply(this, arguments);
|
|
8963
8963
|
};
|
|
8964
8964
|
}
|
|
8965
|
-
function Readable2(
|
|
8965
|
+
function Readable2(fn, options) {
|
|
8966
8966
|
if (!(this instanceof Readable2))
|
|
8967
|
-
return new Readable2(
|
|
8967
|
+
return new Readable2(fn, options);
|
|
8968
8968
|
PassThrough.call(this, options);
|
|
8969
8969
|
beforeFirstCall(this, "_read", function() {
|
|
8970
|
-
var source =
|
|
8970
|
+
var source = fn.call(this, options);
|
|
8971
8971
|
var emit = this.emit.bind(this, "error");
|
|
8972
8972
|
source.on("error", emit);
|
|
8973
8973
|
source.pipe(this);
|
|
8974
8974
|
});
|
|
8975
8975
|
this.emit("readable");
|
|
8976
8976
|
}
|
|
8977
|
-
function Writable(
|
|
8977
|
+
function Writable(fn, options) {
|
|
8978
8978
|
if (!(this instanceof Writable))
|
|
8979
|
-
return new Writable(
|
|
8979
|
+
return new Writable(fn, options);
|
|
8980
8980
|
PassThrough.call(this, options);
|
|
8981
8981
|
beforeFirstCall(this, "_write", function() {
|
|
8982
|
-
var destination =
|
|
8982
|
+
var destination = fn.call(this, options);
|
|
8983
8983
|
var emit = this.emit.bind(this, "error");
|
|
8984
8984
|
destination.on("error", emit);
|
|
8985
8985
|
this.pipe(destination);
|
|
@@ -9782,8 +9782,8 @@ var require_primordials = __commonJS({
|
|
|
9782
9782
|
ArrayPrototypeJoin(self2, sep) {
|
|
9783
9783
|
return self2.join(sep);
|
|
9784
9784
|
},
|
|
9785
|
-
ArrayPrototypeMap(self2,
|
|
9786
|
-
return self2.map(
|
|
9785
|
+
ArrayPrototypeMap(self2, fn) {
|
|
9786
|
+
return self2.map(fn);
|
|
9787
9787
|
},
|
|
9788
9788
|
ArrayPrototypePop(self2, el) {
|
|
9789
9789
|
return self2.pop(el);
|
|
@@ -9795,8 +9795,8 @@ var require_primordials = __commonJS({
|
|
|
9795
9795
|
return self2.slice(start, end);
|
|
9796
9796
|
},
|
|
9797
9797
|
Error,
|
|
9798
|
-
FunctionPrototypeCall(
|
|
9799
|
-
return
|
|
9798
|
+
FunctionPrototypeCall(fn, thisArgs, ...args) {
|
|
9799
|
+
return fn.call(thisArgs, ...args);
|
|
9800
9800
|
},
|
|
9801
9801
|
FunctionPrototypeSymbolHasInstance(self2, instance) {
|
|
9802
9802
|
return Function.prototype[Symbol.hasInstance].call(self2, instance);
|
|
@@ -9824,8 +9824,8 @@ var require_primordials = __commonJS({
|
|
|
9824
9824
|
return Object.setPrototypeOf(target, proto);
|
|
9825
9825
|
},
|
|
9826
9826
|
Promise,
|
|
9827
|
-
PromisePrototypeCatch(self2,
|
|
9828
|
-
return self2.catch(
|
|
9827
|
+
PromisePrototypeCatch(self2, fn) {
|
|
9828
|
+
return self2.catch(fn);
|
|
9829
9829
|
},
|
|
9830
9830
|
PromisePrototypeThen(self2, thenFn, catchFn) {
|
|
9831
9831
|
return self2.then(thenFn, catchFn);
|
|
@@ -10009,12 +10009,12 @@ var require_errors = __commonJS({
|
|
|
10009
10009
|
NodeError.prototype[kIsNodeError] = true;
|
|
10010
10010
|
codes[code] = NodeError;
|
|
10011
10011
|
}
|
|
10012
|
-
function hideStackFrames(
|
|
10013
|
-
const hidden = nodeInternalPrefix +
|
|
10014
|
-
Object.defineProperty(
|
|
10012
|
+
function hideStackFrames(fn) {
|
|
10013
|
+
const hidden = nodeInternalPrefix + fn.name;
|
|
10014
|
+
Object.defineProperty(fn, "name", {
|
|
10015
10015
|
value: hidden
|
|
10016
10016
|
});
|
|
10017
|
-
return
|
|
10017
|
+
return fn;
|
|
10018
10018
|
}
|
|
10019
10019
|
function aggregateTwoErrors(innerError, outerError) {
|
|
10020
10020
|
if (innerError && outerError && innerError !== outerError) {
|
|
@@ -10562,8 +10562,8 @@ var require_event_target_shim = __commonJS({
|
|
|
10562
10562
|
var CAPTURE = 1;
|
|
10563
10563
|
var BUBBLE = 2;
|
|
10564
10564
|
var ATTRIBUTE = 3;
|
|
10565
|
-
function isObject(
|
|
10566
|
-
return
|
|
10565
|
+
function isObject(x) {
|
|
10566
|
+
return x !== null && typeof x === "object";
|
|
10567
10567
|
}
|
|
10568
10568
|
function getListeners(eventTarget) {
|
|
10569
10569
|
const listeners = listenersMap.get(eventTarget);
|
|
@@ -10963,9 +10963,9 @@ var require_util2 = __commonJS({
|
|
|
10963
10963
|
reject
|
|
10964
10964
|
};
|
|
10965
10965
|
},
|
|
10966
|
-
promisify(
|
|
10966
|
+
promisify(fn) {
|
|
10967
10967
|
return new Promise((resolve, reject) => {
|
|
10968
|
-
|
|
10968
|
+
fn((err, ...args) => {
|
|
10969
10969
|
if (err) {
|
|
10970
10970
|
return reject(err);
|
|
10971
10971
|
}
|
|
@@ -10980,16 +10980,16 @@ var require_util2 = __commonJS({
|
|
|
10980
10980
|
format,
|
|
10981
10981
|
inspect,
|
|
10982
10982
|
types: {
|
|
10983
|
-
isAsyncFunction(
|
|
10984
|
-
return
|
|
10983
|
+
isAsyncFunction(fn) {
|
|
10984
|
+
return fn instanceof AsyncFunction;
|
|
10985
10985
|
},
|
|
10986
10986
|
isArrayBufferView(arr) {
|
|
10987
10987
|
return ArrayBuffer.isView(arr);
|
|
10988
10988
|
}
|
|
10989
10989
|
},
|
|
10990
10990
|
isBlob,
|
|
10991
|
-
deprecate(
|
|
10992
|
-
return
|
|
10991
|
+
deprecate(fn, message) {
|
|
10992
|
+
return fn;
|
|
10993
10993
|
},
|
|
10994
10994
|
addAbortListener: require("events").addAbortListener || function addAbortListener(signal, listener) {
|
|
10995
10995
|
if (signal === void 0) {
|
|
@@ -11139,7 +11139,7 @@ var require_validators = __commonJS({
|
|
|
11139
11139
|
var validateOneOf = hideStackFrames((value, name, oneOf) => {
|
|
11140
11140
|
if (!ArrayPrototypeIncludes(oneOf, value)) {
|
|
11141
11141
|
const allowed = ArrayPrototypeJoin(
|
|
11142
|
-
ArrayPrototypeMap(oneOf, (
|
|
11142
|
+
ArrayPrototypeMap(oneOf, (v) => typeof v === "string" ? `'${v}'` : String2(v)),
|
|
11143
11143
|
", "
|
|
11144
11144
|
);
|
|
11145
11145
|
const reason = "must be one of: " + allowed;
|
|
@@ -12108,11 +12108,11 @@ var require_legacy = __commonJS({
|
|
|
12108
12108
|
dest.emit("pipe", source);
|
|
12109
12109
|
return dest;
|
|
12110
12110
|
};
|
|
12111
|
-
function prependListener(emitter, event,
|
|
12112
|
-
if (typeof emitter.prependListener === "function") return emitter.prependListener(event,
|
|
12113
|
-
if (!emitter._events || !emitter._events[event]) emitter.on(event,
|
|
12114
|
-
else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(
|
|
12115
|
-
else emitter._events[event] = [
|
|
12111
|
+
function prependListener(emitter, event, fn) {
|
|
12112
|
+
if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
|
|
12113
|
+
if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
|
|
12114
|
+
else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn);
|
|
12115
|
+
else emitter._events[event] = [fn, emitter._events[event]];
|
|
12116
12116
|
}
|
|
12117
12117
|
module2.exports = {
|
|
12118
12118
|
Stream,
|
|
@@ -12185,9 +12185,9 @@ var require_buffer_list = __commonJS({
|
|
|
12185
12185
|
this.tail = null;
|
|
12186
12186
|
this.length = 0;
|
|
12187
12187
|
}
|
|
12188
|
-
push(
|
|
12188
|
+
push(v) {
|
|
12189
12189
|
const entry = {
|
|
12190
|
-
data:
|
|
12190
|
+
data: v,
|
|
12191
12191
|
next: null
|
|
12192
12192
|
};
|
|
12193
12193
|
if (this.length > 0) this.tail.next = entry;
|
|
@@ -12195,9 +12195,9 @@ var require_buffer_list = __commonJS({
|
|
|
12195
12195
|
this.tail = entry;
|
|
12196
12196
|
++this.length;
|
|
12197
12197
|
}
|
|
12198
|
-
unshift(
|
|
12198
|
+
unshift(v) {
|
|
12199
12199
|
const entry = {
|
|
12200
|
-
data:
|
|
12200
|
+
data: v,
|
|
12201
12201
|
next: this.head
|
|
12202
12202
|
};
|
|
12203
12203
|
if (this.length === 0) this.tail = entry;
|
|
@@ -12218,20 +12218,20 @@ var require_buffer_list = __commonJS({
|
|
|
12218
12218
|
}
|
|
12219
12219
|
join(s) {
|
|
12220
12220
|
if (this.length === 0) return "";
|
|
12221
|
-
let
|
|
12222
|
-
let ret = "" +
|
|
12223
|
-
while ((
|
|
12221
|
+
let p = this.head;
|
|
12222
|
+
let ret = "" + p.data;
|
|
12223
|
+
while ((p = p.next) !== null) ret += s + p.data;
|
|
12224
12224
|
return ret;
|
|
12225
12225
|
}
|
|
12226
12226
|
concat(n) {
|
|
12227
12227
|
if (this.length === 0) return Buffer2.alloc(0);
|
|
12228
12228
|
const ret = Buffer2.allocUnsafe(n >>> 0);
|
|
12229
|
-
let
|
|
12229
|
+
let p = this.head;
|
|
12230
12230
|
let i = 0;
|
|
12231
|
-
while (
|
|
12232
|
-
TypedArrayPrototypeSet(ret,
|
|
12233
|
-
i +=
|
|
12234
|
-
|
|
12231
|
+
while (p) {
|
|
12232
|
+
TypedArrayPrototypeSet(ret, p.data, i);
|
|
12233
|
+
i += p.data.length;
|
|
12234
|
+
p = p.next;
|
|
12235
12235
|
}
|
|
12236
12236
|
return ret;
|
|
12237
12237
|
}
|
|
@@ -12252,17 +12252,17 @@ var require_buffer_list = __commonJS({
|
|
|
12252
12252
|
return this.head.data;
|
|
12253
12253
|
}
|
|
12254
12254
|
*[SymbolIterator]() {
|
|
12255
|
-
for (let
|
|
12256
|
-
yield
|
|
12255
|
+
for (let p = this.head; p; p = p.next) {
|
|
12256
|
+
yield p.data;
|
|
12257
12257
|
}
|
|
12258
12258
|
}
|
|
12259
12259
|
// Consumes a specified amount of characters from the buffered data.
|
|
12260
12260
|
_getString(n) {
|
|
12261
12261
|
let ret = "";
|
|
12262
|
-
let
|
|
12262
|
+
let p = this.head;
|
|
12263
12263
|
let c = 0;
|
|
12264
12264
|
do {
|
|
12265
|
-
const str2 =
|
|
12265
|
+
const str2 = p.data;
|
|
12266
12266
|
if (n > str2.length) {
|
|
12267
12267
|
ret += str2;
|
|
12268
12268
|
n -= str2.length;
|
|
@@ -12270,17 +12270,17 @@ var require_buffer_list = __commonJS({
|
|
|
12270
12270
|
if (n === str2.length) {
|
|
12271
12271
|
ret += str2;
|
|
12272
12272
|
++c;
|
|
12273
|
-
if (
|
|
12273
|
+
if (p.next) this.head = p.next;
|
|
12274
12274
|
else this.head = this.tail = null;
|
|
12275
12275
|
} else {
|
|
12276
12276
|
ret += StringPrototypeSlice(str2, 0, n);
|
|
12277
|
-
this.head =
|
|
12278
|
-
|
|
12277
|
+
this.head = p;
|
|
12278
|
+
p.data = StringPrototypeSlice(str2, n);
|
|
12279
12279
|
}
|
|
12280
12280
|
break;
|
|
12281
12281
|
}
|
|
12282
12282
|
++c;
|
|
12283
|
-
} while ((
|
|
12283
|
+
} while ((p = p.next) !== null);
|
|
12284
12284
|
this.length -= c;
|
|
12285
12285
|
return ret;
|
|
12286
12286
|
}
|
|
@@ -12288,10 +12288,10 @@ var require_buffer_list = __commonJS({
|
|
|
12288
12288
|
_getBuffer(n) {
|
|
12289
12289
|
const ret = Buffer2.allocUnsafe(n);
|
|
12290
12290
|
const retLen = n;
|
|
12291
|
-
let
|
|
12291
|
+
let p = this.head;
|
|
12292
12292
|
let c = 0;
|
|
12293
12293
|
do {
|
|
12294
|
-
const buf =
|
|
12294
|
+
const buf = p.data;
|
|
12295
12295
|
if (n > buf.length) {
|
|
12296
12296
|
TypedArrayPrototypeSet(ret, buf, retLen - n);
|
|
12297
12297
|
n -= buf.length;
|
|
@@ -12299,17 +12299,17 @@ var require_buffer_list = __commonJS({
|
|
|
12299
12299
|
if (n === buf.length) {
|
|
12300
12300
|
TypedArrayPrototypeSet(ret, buf, retLen - n);
|
|
12301
12301
|
++c;
|
|
12302
|
-
if (
|
|
12302
|
+
if (p.next) this.head = p.next;
|
|
12303
12303
|
else this.head = this.tail = null;
|
|
12304
12304
|
} else {
|
|
12305
12305
|
TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n), retLen - n);
|
|
12306
|
-
this.head =
|
|
12307
|
-
|
|
12306
|
+
this.head = p;
|
|
12307
|
+
p.data = buf.slice(n);
|
|
12308
12308
|
}
|
|
12309
12309
|
break;
|
|
12310
12310
|
}
|
|
12311
12311
|
++c;
|
|
12312
|
-
} while ((
|
|
12312
|
+
} while ((p = p.next) !== null);
|
|
12313
12313
|
this.length -= c;
|
|
12314
12314
|
return ret;
|
|
12315
12315
|
}
|
|
@@ -12369,9 +12369,9 @@ var require_state = __commonJS({
|
|
|
12369
12369
|
}
|
|
12370
12370
|
});
|
|
12371
12371
|
|
|
12372
|
-
// ../../../node_modules/safe-buffer/index.js
|
|
12372
|
+
// ../../../node_modules/readable-stream/node_modules/safe-buffer/index.js
|
|
12373
12373
|
var require_safe_buffer2 = __commonJS({
|
|
12374
|
-
"../../../node_modules/safe-buffer/index.js"(exports2, module2) {
|
|
12374
|
+
"../../../node_modules/readable-stream/node_modules/safe-buffer/index.js"(exports2, module2) {
|
|
12375
12375
|
var buffer = require("buffer");
|
|
12376
12376
|
var Buffer2 = buffer.Buffer;
|
|
12377
12377
|
function copyProps(src, dst) {
|
|
@@ -12427,9 +12427,9 @@ var require_safe_buffer2 = __commonJS({
|
|
|
12427
12427
|
}
|
|
12428
12428
|
});
|
|
12429
12429
|
|
|
12430
|
-
// ../../../node_modules/string_decoder/lib/string_decoder.js
|
|
12430
|
+
// ../../../node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js
|
|
12431
12431
|
var require_string_decoder2 = __commonJS({
|
|
12432
|
-
"../../../node_modules/string_decoder/lib/string_decoder.js"(exports2) {
|
|
12432
|
+
"../../../node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
|
|
12433
12433
|
"use strict";
|
|
12434
12434
|
var Buffer2 = require_safe_buffer2().Buffer;
|
|
12435
12435
|
var isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
@@ -12568,7 +12568,7 @@ var require_string_decoder2 = __commonJS({
|
|
|
12568
12568
|
}
|
|
12569
12569
|
return 0;
|
|
12570
12570
|
}
|
|
12571
|
-
function utf8CheckExtraBytes(self2, buf,
|
|
12571
|
+
function utf8CheckExtraBytes(self2, buf, p) {
|
|
12572
12572
|
if ((buf[0] & 192) !== 128) {
|
|
12573
12573
|
self2.lastNeed = 0;
|
|
12574
12574
|
return "\uFFFD";
|
|
@@ -12587,14 +12587,14 @@ var require_string_decoder2 = __commonJS({
|
|
|
12587
12587
|
}
|
|
12588
12588
|
}
|
|
12589
12589
|
function utf8FillLast(buf) {
|
|
12590
|
-
var
|
|
12591
|
-
var r = utf8CheckExtraBytes(this, buf,
|
|
12590
|
+
var p = this.lastTotal - this.lastNeed;
|
|
12591
|
+
var r = utf8CheckExtraBytes(this, buf, p);
|
|
12592
12592
|
if (r !== void 0) return r;
|
|
12593
12593
|
if (this.lastNeed <= buf.length) {
|
|
12594
|
-
buf.copy(this.lastChar,
|
|
12594
|
+
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
12595
12595
|
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
12596
12596
|
}
|
|
12597
|
-
buf.copy(this.lastChar,
|
|
12597
|
+
buf.copy(this.lastChar, p, 0, buf.length);
|
|
12598
12598
|
this.lastNeed -= buf.length;
|
|
12599
12599
|
}
|
|
12600
12600
|
function utf8Text(buf, i) {
|
|
@@ -12786,8 +12786,8 @@ var require_readable2 = __commonJS({
|
|
|
12786
12786
|
var { Buffer: Buffer2 } = require("buffer");
|
|
12787
12787
|
var { addAbortSignal } = require_add_abort_signal();
|
|
12788
12788
|
var eos = require_end_of_stream();
|
|
12789
|
-
var debug = require_util2().debuglog("stream", (
|
|
12790
|
-
debug =
|
|
12789
|
+
var debug = require_util2().debuglog("stream", (fn) => {
|
|
12790
|
+
debug = fn;
|
|
12791
12791
|
});
|
|
12792
12792
|
var BufferList = require_buffer_list();
|
|
12793
12793
|
var destroyImpl = require_destroy2();
|
|
@@ -13329,8 +13329,8 @@ var require_readable2 = __commonJS({
|
|
|
13329
13329
|
dest.emit("unpipe", this, unpipeInfo);
|
|
13330
13330
|
return this;
|
|
13331
13331
|
};
|
|
13332
|
-
Readable2.prototype.on = function(ev,
|
|
13333
|
-
const res = Stream.prototype.on.call(this, ev,
|
|
13332
|
+
Readable2.prototype.on = function(ev, fn) {
|
|
13333
|
+
const res = Stream.prototype.on.call(this, ev, fn);
|
|
13334
13334
|
const state = this._readableState;
|
|
13335
13335
|
if (ev === "data") {
|
|
13336
13336
|
state.readableListening = this.listenerCount("readable") > 0;
|
|
@@ -13351,8 +13351,8 @@ var require_readable2 = __commonJS({
|
|
|
13351
13351
|
return res;
|
|
13352
13352
|
};
|
|
13353
13353
|
Readable2.prototype.addListener = Readable2.prototype.on;
|
|
13354
|
-
Readable2.prototype.removeListener = function(ev,
|
|
13355
|
-
const res = Stream.prototype.removeListener.call(this, ev,
|
|
13354
|
+
Readable2.prototype.removeListener = function(ev, fn) {
|
|
13355
|
+
const res = Stream.prototype.removeListener.call(this, ev, fn);
|
|
13356
13356
|
if (ev === "readable") {
|
|
13357
13357
|
process2.nextTick(updateReadableListening, this);
|
|
13358
13358
|
}
|
|
@@ -14534,11 +14534,11 @@ var require_duplexify = __commonJS({
|
|
|
14534
14534
|
body
|
|
14535
14535
|
);
|
|
14536
14536
|
};
|
|
14537
|
-
function fromAsyncGen(
|
|
14537
|
+
function fromAsyncGen(fn) {
|
|
14538
14538
|
let { promise, resolve } = createDeferredPromise();
|
|
14539
14539
|
const ac = new AbortController();
|
|
14540
14540
|
const signal = ac.signal;
|
|
14541
|
-
const value =
|
|
14541
|
+
const value = fn(
|
|
14542
14542
|
(async function* () {
|
|
14543
14543
|
while (true) {
|
|
14544
14544
|
const _promise = promise;
|
|
@@ -15135,7 +15135,7 @@ var require_pipeline = __commonJS({
|
|
|
15135
15135
|
ac.abort();
|
|
15136
15136
|
if (final) {
|
|
15137
15137
|
if (!error) {
|
|
15138
|
-
lastStreamCleanup.forEach((
|
|
15138
|
+
lastStreamCleanup.forEach((fn) => fn());
|
|
15139
15139
|
}
|
|
15140
15140
|
process2.nextTick(callback, error, value);
|
|
15141
15141
|
}
|
|
@@ -15600,9 +15600,9 @@ var require_operators = __commonJS({
|
|
|
15600
15600
|
}
|
|
15601
15601
|
return composedStream;
|
|
15602
15602
|
}
|
|
15603
|
-
function map2(
|
|
15604
|
-
if (typeof
|
|
15605
|
-
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"],
|
|
15603
|
+
function map2(fn, options) {
|
|
15604
|
+
if (typeof fn !== "function") {
|
|
15605
|
+
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
|
|
15606
15606
|
}
|
|
15607
15607
|
if (options != null) {
|
|
15608
15608
|
validateObject(options, "options");
|
|
@@ -15658,7 +15658,7 @@ var require_operators = __commonJS({
|
|
|
15658
15658
|
throw new AbortError();
|
|
15659
15659
|
}
|
|
15660
15660
|
try {
|
|
15661
|
-
val =
|
|
15661
|
+
val = fn(val, signalOpt);
|
|
15662
15662
|
if (val === kEmpty) {
|
|
15663
15663
|
continue;
|
|
15664
15664
|
}
|
|
@@ -15742,46 +15742,46 @@ var require_operators = __commonJS({
|
|
|
15742
15742
|
}
|
|
15743
15743
|
}.call(this);
|
|
15744
15744
|
}
|
|
15745
|
-
async function some(
|
|
15746
|
-
for await (const unused of filter.call(this,
|
|
15745
|
+
async function some(fn, options = void 0) {
|
|
15746
|
+
for await (const unused of filter.call(this, fn, options)) {
|
|
15747
15747
|
return true;
|
|
15748
15748
|
}
|
|
15749
15749
|
return false;
|
|
15750
15750
|
}
|
|
15751
|
-
async function every(
|
|
15752
|
-
if (typeof
|
|
15753
|
-
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"],
|
|
15751
|
+
async function every(fn, options = void 0) {
|
|
15752
|
+
if (typeof fn !== "function") {
|
|
15753
|
+
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
|
|
15754
15754
|
}
|
|
15755
15755
|
return !await some.call(
|
|
15756
15756
|
this,
|
|
15757
15757
|
async (...args) => {
|
|
15758
|
-
return !await
|
|
15758
|
+
return !await fn(...args);
|
|
15759
15759
|
},
|
|
15760
15760
|
options
|
|
15761
15761
|
);
|
|
15762
15762
|
}
|
|
15763
|
-
async function find(
|
|
15764
|
-
for await (const result of filter.call(this,
|
|
15763
|
+
async function find(fn, options) {
|
|
15764
|
+
for await (const result of filter.call(this, fn, options)) {
|
|
15765
15765
|
return result;
|
|
15766
15766
|
}
|
|
15767
15767
|
return void 0;
|
|
15768
15768
|
}
|
|
15769
|
-
async function forEach(
|
|
15770
|
-
if (typeof
|
|
15771
|
-
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"],
|
|
15769
|
+
async function forEach(fn, options) {
|
|
15770
|
+
if (typeof fn !== "function") {
|
|
15771
|
+
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
|
|
15772
15772
|
}
|
|
15773
15773
|
async function forEachFn(value, options2) {
|
|
15774
|
-
await
|
|
15774
|
+
await fn(value, options2);
|
|
15775
15775
|
return kEmpty;
|
|
15776
15776
|
}
|
|
15777
15777
|
for await (const unused of map2.call(this, forEachFn, options)) ;
|
|
15778
15778
|
}
|
|
15779
|
-
function filter(
|
|
15780
|
-
if (typeof
|
|
15781
|
-
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"],
|
|
15779
|
+
function filter(fn, options) {
|
|
15780
|
+
if (typeof fn !== "function") {
|
|
15781
|
+
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
|
|
15782
15782
|
}
|
|
15783
15783
|
async function filterFn(value, options2) {
|
|
15784
|
-
if (await
|
|
15784
|
+
if (await fn(value, options2)) {
|
|
15785
15785
|
return value;
|
|
15786
15786
|
}
|
|
15787
15787
|
return kEmpty;
|
|
@@ -15869,8 +15869,8 @@ var require_operators = __commonJS({
|
|
|
15869
15869
|
}
|
|
15870
15870
|
return result;
|
|
15871
15871
|
}
|
|
15872
|
-
function flatMap(
|
|
15873
|
-
const values = map2.call(this,
|
|
15872
|
+
function flatMap(fn, options) {
|
|
15873
|
+
const values = map2.call(this, fn, options);
|
|
15874
15874
|
return async function* flatMap2() {
|
|
15875
15875
|
for await (const val of values) {
|
|
15876
15876
|
yield* val;
|
|
@@ -16028,48 +16028,48 @@ var require_stream2 = __commonJS({
|
|
|
16028
16028
|
Stream.isWritable = utils.isWritable;
|
|
16029
16029
|
Stream.Readable = require_readable2();
|
|
16030
16030
|
for (const key of ObjectKeys(streamReturningOperators)) {
|
|
16031
|
-
let
|
|
16031
|
+
let fn = function(...args) {
|
|
16032
16032
|
if (new.target) {
|
|
16033
16033
|
throw ERR_ILLEGAL_CONSTRUCTOR();
|
|
16034
16034
|
}
|
|
16035
16035
|
return Stream.Readable.from(ReflectApply(op, this, args));
|
|
16036
16036
|
};
|
|
16037
16037
|
const op = streamReturningOperators[key];
|
|
16038
|
-
ObjectDefineProperty(
|
|
16038
|
+
ObjectDefineProperty(fn, "name", {
|
|
16039
16039
|
__proto__: null,
|
|
16040
16040
|
value: op.name
|
|
16041
16041
|
});
|
|
16042
|
-
ObjectDefineProperty(
|
|
16042
|
+
ObjectDefineProperty(fn, "length", {
|
|
16043
16043
|
__proto__: null,
|
|
16044
16044
|
value: op.length
|
|
16045
16045
|
});
|
|
16046
16046
|
ObjectDefineProperty(Stream.Readable.prototype, key, {
|
|
16047
16047
|
__proto__: null,
|
|
16048
|
-
value:
|
|
16048
|
+
value: fn,
|
|
16049
16049
|
enumerable: false,
|
|
16050
16050
|
configurable: true,
|
|
16051
16051
|
writable: true
|
|
16052
16052
|
});
|
|
16053
16053
|
}
|
|
16054
16054
|
for (const key of ObjectKeys(promiseReturningOperators)) {
|
|
16055
|
-
let
|
|
16055
|
+
let fn = function(...args) {
|
|
16056
16056
|
if (new.target) {
|
|
16057
16057
|
throw ERR_ILLEGAL_CONSTRUCTOR();
|
|
16058
16058
|
}
|
|
16059
16059
|
return ReflectApply(op, this, args);
|
|
16060
16060
|
};
|
|
16061
16061
|
const op = promiseReturningOperators[key];
|
|
16062
|
-
ObjectDefineProperty(
|
|
16062
|
+
ObjectDefineProperty(fn, "name", {
|
|
16063
16063
|
__proto__: null,
|
|
16064
16064
|
value: op.name
|
|
16065
16065
|
});
|
|
16066
|
-
ObjectDefineProperty(
|
|
16066
|
+
ObjectDefineProperty(fn, "length", {
|
|
16067
16067
|
__proto__: null,
|
|
16068
16068
|
value: op.length
|
|
16069
16069
|
});
|
|
16070
16070
|
ObjectDefineProperty(Stream.Readable.prototype, key, {
|
|
16071
16071
|
__proto__: null,
|
|
16072
|
-
value:
|
|
16072
|
+
value: fn,
|
|
16073
16073
|
enumerable: false,
|
|
16074
16074
|
configurable: true,
|
|
16075
16075
|
writable: true
|
|
@@ -16984,9 +16984,9 @@ var require_isPlainObject = __commonJS({
|
|
|
16984
16984
|
}
|
|
16985
16985
|
});
|
|
16986
16986
|
|
|
16987
|
-
// ../../../node_modules/
|
|
16987
|
+
// ../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
|
|
16988
16988
|
var require_assert_valid_pattern = __commonJS({
|
|
16989
|
-
"../../../node_modules/
|
|
16989
|
+
"../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports2) {
|
|
16990
16990
|
"use strict";
|
|
16991
16991
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16992
16992
|
exports2.assertValidPattern = void 0;
|
|
@@ -17003,9 +17003,9 @@ var require_assert_valid_pattern = __commonJS({
|
|
|
17003
17003
|
}
|
|
17004
17004
|
});
|
|
17005
17005
|
|
|
17006
|
-
// ../../../node_modules/
|
|
17006
|
+
// ../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/brace-expressions.js
|
|
17007
17007
|
var require_brace_expressions = __commonJS({
|
|
17008
|
-
"../../../node_modules/
|
|
17008
|
+
"../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports2) {
|
|
17009
17009
|
"use strict";
|
|
17010
17010
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17011
17011
|
exports2.parseClass = void 0;
|
|
@@ -17120,9 +17120,9 @@ var require_brace_expressions = __commonJS({
|
|
|
17120
17120
|
}
|
|
17121
17121
|
});
|
|
17122
17122
|
|
|
17123
|
-
// ../../../node_modules/
|
|
17123
|
+
// ../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js
|
|
17124
17124
|
var require_unescape = __commonJS({
|
|
17125
|
-
"../../../node_modules/
|
|
17125
|
+
"../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js"(exports2) {
|
|
17126
17126
|
"use strict";
|
|
17127
17127
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17128
17128
|
exports2.unescape = void 0;
|
|
@@ -17133,9 +17133,9 @@ var require_unescape = __commonJS({
|
|
|
17133
17133
|
}
|
|
17134
17134
|
});
|
|
17135
17135
|
|
|
17136
|
-
// ../../../node_modules/
|
|
17136
|
+
// ../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js
|
|
17137
17137
|
var require_ast = __commonJS({
|
|
17138
|
-
"../../../node_modules/
|
|
17138
|
+
"../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js"(exports2) {
|
|
17139
17139
|
"use strict";
|
|
17140
17140
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17141
17141
|
exports2.AST = void 0;
|
|
@@ -17182,10 +17182,10 @@ var require_ast = __commonJS({
|
|
|
17182
17182
|
get hasMagic() {
|
|
17183
17183
|
if (this.#hasMagic !== void 0)
|
|
17184
17184
|
return this.#hasMagic;
|
|
17185
|
-
for (const
|
|
17186
|
-
if (typeof
|
|
17185
|
+
for (const p of this.#parts) {
|
|
17186
|
+
if (typeof p === "string")
|
|
17187
17187
|
continue;
|
|
17188
|
-
if (
|
|
17188
|
+
if (p.type || p.hasMagic)
|
|
17189
17189
|
return this.#hasMagic = true;
|
|
17190
17190
|
}
|
|
17191
17191
|
return this.#hasMagic;
|
|
@@ -17195,9 +17195,9 @@ var require_ast = __commonJS({
|
|
|
17195
17195
|
if (this.#toString !== void 0)
|
|
17196
17196
|
return this.#toString;
|
|
17197
17197
|
if (!this.type) {
|
|
17198
|
-
return this.#toString = this.#parts.map((
|
|
17198
|
+
return this.#toString = this.#parts.map((p) => String(p)).join("");
|
|
17199
17199
|
} else {
|
|
17200
|
-
return this.#toString = this.type + "(" + this.#parts.map((
|
|
17200
|
+
return this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")";
|
|
17201
17201
|
}
|
|
17202
17202
|
}
|
|
17203
17203
|
#fillNegs() {
|
|
@@ -17211,10 +17211,10 @@ var require_ast = __commonJS({
|
|
|
17211
17211
|
while (n = this.#negs.pop()) {
|
|
17212
17212
|
if (n.type !== "!")
|
|
17213
17213
|
continue;
|
|
17214
|
-
let
|
|
17215
|
-
let pp =
|
|
17214
|
+
let p = n;
|
|
17215
|
+
let pp = p.#parent;
|
|
17216
17216
|
while (pp) {
|
|
17217
|
-
for (let i =
|
|
17217
|
+
for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
|
|
17218
17218
|
for (const part of n.#parts) {
|
|
17219
17219
|
if (typeof part === "string") {
|
|
17220
17220
|
throw new Error("string part in extglob AST??");
|
|
@@ -17222,24 +17222,24 @@ var require_ast = __commonJS({
|
|
|
17222
17222
|
part.copyIn(pp.#parts[i]);
|
|
17223
17223
|
}
|
|
17224
17224
|
}
|
|
17225
|
-
|
|
17226
|
-
pp =
|
|
17225
|
+
p = pp;
|
|
17226
|
+
pp = p.#parent;
|
|
17227
17227
|
}
|
|
17228
17228
|
}
|
|
17229
17229
|
return this;
|
|
17230
17230
|
}
|
|
17231
17231
|
push(...parts) {
|
|
17232
|
-
for (const
|
|
17233
|
-
if (
|
|
17232
|
+
for (const p of parts) {
|
|
17233
|
+
if (p === "")
|
|
17234
17234
|
continue;
|
|
17235
|
-
if (typeof
|
|
17236
|
-
throw new Error("invalid part: " +
|
|
17235
|
+
if (typeof p !== "string" && !(p instanceof _AST && p.#parent === this)) {
|
|
17236
|
+
throw new Error("invalid part: " + p);
|
|
17237
17237
|
}
|
|
17238
|
-
this.#parts.push(
|
|
17238
|
+
this.#parts.push(p);
|
|
17239
17239
|
}
|
|
17240
17240
|
}
|
|
17241
17241
|
toJSON() {
|
|
17242
|
-
const ret = this.type === null ? this.#parts.slice().map((
|
|
17242
|
+
const ret = this.type === null ? this.#parts.slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())];
|
|
17243
17243
|
if (this.isStart() && !this.type)
|
|
17244
17244
|
ret.unshift([]);
|
|
17245
17245
|
if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) {
|
|
@@ -17254,9 +17254,9 @@ var require_ast = __commonJS({
|
|
|
17254
17254
|
return false;
|
|
17255
17255
|
if (this.#parentIndex === 0)
|
|
17256
17256
|
return true;
|
|
17257
|
-
const
|
|
17257
|
+
const p = this.#parent;
|
|
17258
17258
|
for (let i = 0; i < this.#parentIndex; i++) {
|
|
17259
|
-
const pp =
|
|
17259
|
+
const pp = p.#parts[i];
|
|
17260
17260
|
if (!(pp instanceof _AST && pp.type === "!")) {
|
|
17261
17261
|
return false;
|
|
17262
17262
|
}
|
|
@@ -17283,8 +17283,8 @@ var require_ast = __commonJS({
|
|
|
17283
17283
|
}
|
|
17284
17284
|
clone(parent) {
|
|
17285
17285
|
const c = new _AST(this.type, parent);
|
|
17286
|
-
for (const
|
|
17287
|
-
c.copyIn(
|
|
17286
|
+
for (const p of this.#parts) {
|
|
17287
|
+
c.copyIn(p);
|
|
17288
17288
|
}
|
|
17289
17289
|
return c;
|
|
17290
17290
|
}
|
|
@@ -17492,8 +17492,8 @@ var require_ast = __commonJS({
|
|
|
17492
17492
|
this.#fillNegs();
|
|
17493
17493
|
if (!this.type) {
|
|
17494
17494
|
const noEmpty = this.isStart() && this.isEnd();
|
|
17495
|
-
const src = this.#parts.map((
|
|
17496
|
-
const [re, _2, hasMagic, uflag] = typeof
|
|
17495
|
+
const src = this.#parts.map((p) => {
|
|
17496
|
+
const [re, _2, hasMagic, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
|
|
17497
17497
|
this.#hasMagic = this.#hasMagic || hasMagic;
|
|
17498
17498
|
this.#uflag = this.#uflag || uflag;
|
|
17499
17499
|
return re;
|
|
@@ -17562,14 +17562,14 @@ var require_ast = __commonJS({
|
|
|
17562
17562
|
];
|
|
17563
17563
|
}
|
|
17564
17564
|
#partsToRegExp(dot) {
|
|
17565
|
-
return this.#parts.map((
|
|
17566
|
-
if (typeof
|
|
17565
|
+
return this.#parts.map((p) => {
|
|
17566
|
+
if (typeof p === "string") {
|
|
17567
17567
|
throw new Error("string type in extglob ast??");
|
|
17568
17568
|
}
|
|
17569
|
-
const [re, _2, _hasMagic, uflag] =
|
|
17569
|
+
const [re, _2, _hasMagic, uflag] = p.toRegExpSource(dot);
|
|
17570
17570
|
this.#uflag = this.#uflag || uflag;
|
|
17571
17571
|
return re;
|
|
17572
|
-
}).filter((
|
|
17572
|
+
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
17573
17573
|
}
|
|
17574
17574
|
static #parseGlob(glob, hasMagic, noEmpty = false) {
|
|
17575
17575
|
let escaping = false;
|
|
@@ -17622,9 +17622,9 @@ var require_ast = __commonJS({
|
|
|
17622
17622
|
}
|
|
17623
17623
|
});
|
|
17624
17624
|
|
|
17625
|
-
// ../../../node_modules/
|
|
17625
|
+
// ../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js
|
|
17626
17626
|
var require_escape = __commonJS({
|
|
17627
|
-
"../../../node_modules/
|
|
17627
|
+
"../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js"(exports2) {
|
|
17628
17628
|
"use strict";
|
|
17629
17629
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17630
17630
|
exports2.escape = void 0;
|
|
@@ -17635,9 +17635,9 @@ var require_escape = __commonJS({
|
|
|
17635
17635
|
}
|
|
17636
17636
|
});
|
|
17637
17637
|
|
|
17638
|
-
// ../../../node_modules/
|
|
17638
|
+
// ../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js
|
|
17639
17639
|
var require_commonjs = __commonJS({
|
|
17640
|
-
"../../../node_modules/
|
|
17640
|
+
"../../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"(exports2) {
|
|
17641
17641
|
"use strict";
|
|
17642
17642
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
17643
17643
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -17649,12 +17649,12 @@ var require_commonjs = __commonJS({
|
|
|
17649
17649
|
var ast_js_1 = require_ast();
|
|
17650
17650
|
var escape_js_1 = require_escape();
|
|
17651
17651
|
var unescape_js_1 = require_unescape();
|
|
17652
|
-
var minimatch = (
|
|
17652
|
+
var minimatch = (p, pattern, options = {}) => {
|
|
17653
17653
|
(0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
|
|
17654
17654
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
17655
17655
|
return false;
|
|
17656
17656
|
}
|
|
17657
|
-
return new Minimatch(pattern, options).match(
|
|
17657
|
+
return new Minimatch(pattern, options).match(p);
|
|
17658
17658
|
};
|
|
17659
17659
|
exports2.minimatch = minimatch;
|
|
17660
17660
|
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
@@ -17720,7 +17720,7 @@ var require_commonjs = __commonJS({
|
|
|
17720
17720
|
var star = qmark + "*?";
|
|
17721
17721
|
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
17722
17722
|
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
17723
|
-
var filter = (pattern, options = {}) => (
|
|
17723
|
+
var filter = (pattern, options = {}) => (p) => (0, exports2.minimatch)(p, pattern, options);
|
|
17724
17724
|
exports2.filter = filter;
|
|
17725
17725
|
exports2.minimatch.filter = exports2.filter;
|
|
17726
17726
|
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
@@ -17729,7 +17729,7 @@ var require_commonjs = __commonJS({
|
|
|
17729
17729
|
return exports2.minimatch;
|
|
17730
17730
|
}
|
|
17731
17731
|
const orig = exports2.minimatch;
|
|
17732
|
-
const m = (
|
|
17732
|
+
const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
|
17733
17733
|
return Object.assign(m, {
|
|
17734
17734
|
Minimatch: class Minimatch extends orig.Minimatch {
|
|
17735
17735
|
constructor(pattern, options = {}) {
|
|
@@ -17879,9 +17879,9 @@ var require_commonjs = __commonJS({
|
|
|
17879
17879
|
this.set = set2.filter((s) => s.indexOf(false) === -1);
|
|
17880
17880
|
if (this.isWindows) {
|
|
17881
17881
|
for (let i = 0; i < this.set.length; i++) {
|
|
17882
|
-
const
|
|
17883
|
-
if (
|
|
17884
|
-
|
|
17882
|
+
const p = this.set[i];
|
|
17883
|
+
if (p[0] === "" && p[1] === "" && this.globParts[i][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
|
|
17884
|
+
p[2] = "?";
|
|
17885
17885
|
}
|
|
17886
17886
|
}
|
|
17887
17887
|
}
|
|
@@ -17958,10 +17958,10 @@ var require_commonjs = __commonJS({
|
|
|
17958
17958
|
didSomething = false;
|
|
17959
17959
|
if (!this.preserveMultipleSlashes) {
|
|
17960
17960
|
for (let i = 1; i < parts.length - 1; i++) {
|
|
17961
|
-
const
|
|
17962
|
-
if (i === 1 &&
|
|
17961
|
+
const p = parts[i];
|
|
17962
|
+
if (i === 1 && p === "" && parts[0] === "")
|
|
17963
17963
|
continue;
|
|
17964
|
-
if (
|
|
17964
|
+
if (p === "." || p === "") {
|
|
17965
17965
|
didSomething = true;
|
|
17966
17966
|
parts.splice(i, 1);
|
|
17967
17967
|
i--;
|
|
@@ -17974,8 +17974,8 @@ var require_commonjs = __commonJS({
|
|
|
17974
17974
|
}
|
|
17975
17975
|
let dd = 0;
|
|
17976
17976
|
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
17977
|
-
const
|
|
17978
|
-
if (
|
|
17977
|
+
const p = parts[dd - 1];
|
|
17978
|
+
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
17979
17979
|
didSomething = true;
|
|
17980
17980
|
parts.splice(dd - 1, 2);
|
|
17981
17981
|
dd -= 2;
|
|
@@ -18017,11 +18017,11 @@ var require_commonjs = __commonJS({
|
|
|
18017
18017
|
parts.splice(gs + 1, gss - gs);
|
|
18018
18018
|
}
|
|
18019
18019
|
let next = parts[gs + 1];
|
|
18020
|
-
const
|
|
18021
|
-
const
|
|
18020
|
+
const p = parts[gs + 2];
|
|
18021
|
+
const p2 = parts[gs + 3];
|
|
18022
18022
|
if (next !== "..")
|
|
18023
18023
|
continue;
|
|
18024
|
-
if (!
|
|
18024
|
+
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
|
|
18025
18025
|
continue;
|
|
18026
18026
|
}
|
|
18027
18027
|
didSomething = true;
|
|
@@ -18033,10 +18033,10 @@ var require_commonjs = __commonJS({
|
|
|
18033
18033
|
}
|
|
18034
18034
|
if (!this.preserveMultipleSlashes) {
|
|
18035
18035
|
for (let i = 1; i < parts.length - 1; i++) {
|
|
18036
|
-
const
|
|
18037
|
-
if (i === 1 &&
|
|
18036
|
+
const p = parts[i];
|
|
18037
|
+
if (i === 1 && p === "" && parts[0] === "")
|
|
18038
18038
|
continue;
|
|
18039
|
-
if (
|
|
18039
|
+
if (p === "." || p === "") {
|
|
18040
18040
|
didSomething = true;
|
|
18041
18041
|
parts.splice(i, 1);
|
|
18042
18042
|
i--;
|
|
@@ -18049,8 +18049,8 @@ var require_commonjs = __commonJS({
|
|
|
18049
18049
|
}
|
|
18050
18050
|
let dd = 0;
|
|
18051
18051
|
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
18052
|
-
const
|
|
18053
|
-
if (
|
|
18052
|
+
const p = parts[dd - 1];
|
|
18053
|
+
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
18054
18054
|
didSomething = true;
|
|
18055
18055
|
const needDot = dd === 1 && parts[dd + 1] === "**";
|
|
18056
18056
|
const splin = needDot ? ["."] : [];
|
|
@@ -18168,14 +18168,14 @@ var require_commonjs = __commonJS({
|
|
|
18168
18168
|
this.debug("matchOne", file.length, pattern.length);
|
|
18169
18169
|
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
18170
18170
|
this.debug("matchOne loop");
|
|
18171
|
-
var
|
|
18171
|
+
var p = pattern[pi];
|
|
18172
18172
|
var f = file[fi];
|
|
18173
|
-
this.debug(pattern,
|
|
18174
|
-
if (
|
|
18173
|
+
this.debug(pattern, p, f);
|
|
18174
|
+
if (p === false) {
|
|
18175
18175
|
return false;
|
|
18176
18176
|
}
|
|
18177
|
-
if (
|
|
18178
|
-
this.debug("GLOBSTAR", [pattern,
|
|
18177
|
+
if (p === exports2.GLOBSTAR) {
|
|
18178
|
+
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
18179
18179
|
var fr = fi;
|
|
18180
18180
|
var pr = pi + 1;
|
|
18181
18181
|
if (pr === pl) {
|
|
@@ -18210,12 +18210,12 @@ var require_commonjs = __commonJS({
|
|
|
18210
18210
|
return false;
|
|
18211
18211
|
}
|
|
18212
18212
|
let hit;
|
|
18213
|
-
if (typeof
|
|
18214
|
-
hit = f ===
|
|
18215
|
-
this.debug("string match",
|
|
18213
|
+
if (typeof p === "string") {
|
|
18214
|
+
hit = f === p;
|
|
18215
|
+
this.debug("string match", p, f, hit);
|
|
18216
18216
|
} else {
|
|
18217
|
-
hit =
|
|
18218
|
-
this.debug("pattern match",
|
|
18217
|
+
hit = p.test(f);
|
|
18218
|
+
this.debug("pattern match", p, f, hit);
|
|
18219
18219
|
}
|
|
18220
18220
|
if (!hit)
|
|
18221
18221
|
return false;
|
|
@@ -18271,17 +18271,17 @@ var require_commonjs = __commonJS({
|
|
|
18271
18271
|
const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
|
|
18272
18272
|
const flags = new Set(options.nocase ? ["i"] : []);
|
|
18273
18273
|
let re = set2.map((pattern) => {
|
|
18274
|
-
const pp = pattern.map((
|
|
18275
|
-
if (
|
|
18276
|
-
for (const f of
|
|
18274
|
+
const pp = pattern.map((p) => {
|
|
18275
|
+
if (p instanceof RegExp) {
|
|
18276
|
+
for (const f of p.flags.split(""))
|
|
18277
18277
|
flags.add(f);
|
|
18278
18278
|
}
|
|
18279
|
-
return typeof
|
|
18279
|
+
return typeof p === "string" ? regExpEscape(p) : p === exports2.GLOBSTAR ? exports2.GLOBSTAR : p._src;
|
|
18280
18280
|
});
|
|
18281
|
-
pp.forEach((
|
|
18281
|
+
pp.forEach((p, i) => {
|
|
18282
18282
|
const next = pp[i + 1];
|
|
18283
18283
|
const prev = pp[i - 1];
|
|
18284
|
-
if (
|
|
18284
|
+
if (p !== exports2.GLOBSTAR || prev === exports2.GLOBSTAR) {
|
|
18285
18285
|
return;
|
|
18286
18286
|
}
|
|
18287
18287
|
if (prev === void 0) {
|
|
@@ -18297,7 +18297,7 @@ var require_commonjs = __commonJS({
|
|
|
18297
18297
|
pp[i + 1] = exports2.GLOBSTAR;
|
|
18298
18298
|
}
|
|
18299
18299
|
});
|
|
18300
|
-
return pp.filter((
|
|
18300
|
+
return pp.filter((p) => p !== exports2.GLOBSTAR).join("/");
|
|
18301
18301
|
}).join("|");
|
|
18302
18302
|
const [open, close] = set2.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
18303
18303
|
re = "^" + open + re + close + "$";
|
|
@@ -18310,13 +18310,13 @@ var require_commonjs = __commonJS({
|
|
|
18310
18310
|
}
|
|
18311
18311
|
return this.regexp;
|
|
18312
18312
|
}
|
|
18313
|
-
slashSplit(
|
|
18313
|
+
slashSplit(p) {
|
|
18314
18314
|
if (this.preserveMultipleSlashes) {
|
|
18315
|
-
return
|
|
18316
|
-
} else if (this.isWindows && /^\/\/[^\/]+/.test(
|
|
18317
|
-
return ["", ...
|
|
18315
|
+
return p.split("/");
|
|
18316
|
+
} else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
|
|
18317
|
+
return ["", ...p.split(/\/+/)];
|
|
18318
18318
|
} else {
|
|
18319
|
-
return
|
|
18319
|
+
return p.split(/\/+/);
|
|
18320
18320
|
}
|
|
18321
18321
|
}
|
|
18322
18322
|
match(f, partial = this.partial) {
|
|
@@ -18387,17 +18387,17 @@ var require_commonjs = __commonJS({
|
|
|
18387
18387
|
}
|
|
18388
18388
|
});
|
|
18389
18389
|
|
|
18390
|
-
// ../../../node_modules/lru-cache/dist/commonjs/index.js
|
|
18390
|
+
// ../../../node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js
|
|
18391
18391
|
var require_commonjs2 = __commonJS({
|
|
18392
|
-
"../../../node_modules/lru-cache/dist/commonjs/index.js"(exports2) {
|
|
18392
|
+
"../../../node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js"(exports2) {
|
|
18393
18393
|
"use strict";
|
|
18394
18394
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18395
18395
|
exports2.LRUCache = void 0;
|
|
18396
18396
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
18397
18397
|
var warned = /* @__PURE__ */ new Set();
|
|
18398
18398
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
18399
|
-
var emitWarning = (msg, type2, code,
|
|
18400
|
-
typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type2, code,
|
|
18399
|
+
var emitWarning = (msg, type2, code, fn) => {
|
|
18400
|
+
typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type2, code, fn) : console.error(`[${code}] ${type2}: ${msg}`);
|
|
18401
18401
|
};
|
|
18402
18402
|
var AC = globalThis.AbortController;
|
|
18403
18403
|
var AS = globalThis.AbortSignal;
|
|
@@ -18407,8 +18407,8 @@ var require_commonjs2 = __commonJS({
|
|
|
18407
18407
|
_onabort = [];
|
|
18408
18408
|
reason;
|
|
18409
18409
|
aborted = false;
|
|
18410
|
-
addEventListener(_2,
|
|
18411
|
-
this._onabort.push(
|
|
18410
|
+
addEventListener(_2, fn) {
|
|
18411
|
+
this._onabort.push(fn);
|
|
18412
18412
|
}
|
|
18413
18413
|
};
|
|
18414
18414
|
AC = class AbortController {
|
|
@@ -18421,8 +18421,8 @@ var require_commonjs2 = __commonJS({
|
|
|
18421
18421
|
return;
|
|
18422
18422
|
this.signal.reason = reason;
|
|
18423
18423
|
this.signal.aborted = true;
|
|
18424
|
-
for (const
|
|
18425
|
-
|
|
18424
|
+
for (const fn of this.signal._onabort) {
|
|
18425
|
+
fn(reason);
|
|
18426
18426
|
}
|
|
18427
18427
|
this.signal.onabort?.(reason);
|
|
18428
18428
|
}
|
|
@@ -18587,7 +18587,7 @@ var require_commonjs2 = __commonJS({
|
|
|
18587
18587
|
},
|
|
18588
18588
|
free: c.#free,
|
|
18589
18589
|
// methods
|
|
18590
|
-
isBackgroundFetch: (
|
|
18590
|
+
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
|
18591
18591
|
backgroundFetch: (k, index, options, context) => c.#backgroundFetch(k, index, options, context),
|
|
18592
18592
|
moveToTail: (index) => c.#moveToTail(index),
|
|
18593
18593
|
indexes: (options) => c.#indexes(options),
|
|
@@ -18825,8 +18825,8 @@ var require_commonjs2 = __commonJS({
|
|
|
18825
18825
|
this.#calculatedSize -= sizes[index];
|
|
18826
18826
|
sizes[index] = 0;
|
|
18827
18827
|
};
|
|
18828
|
-
this.#requireSize = (k,
|
|
18829
|
-
if (this.#isBackgroundFetch(
|
|
18828
|
+
this.#requireSize = (k, v, size, sizeCalculation) => {
|
|
18829
|
+
if (this.#isBackgroundFetch(v)) {
|
|
18830
18830
|
return 0;
|
|
18831
18831
|
}
|
|
18832
18832
|
if (!isPosInt(size)) {
|
|
@@ -18834,7 +18834,7 @@ var require_commonjs2 = __commonJS({
|
|
|
18834
18834
|
if (typeof sizeCalculation !== "function") {
|
|
18835
18835
|
throw new TypeError("sizeCalculation must be a function");
|
|
18836
18836
|
}
|
|
18837
|
-
size = sizeCalculation(
|
|
18837
|
+
size = sizeCalculation(v, k);
|
|
18838
18838
|
if (!isPosInt(size)) {
|
|
18839
18839
|
throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
18840
18840
|
}
|
|
@@ -18962,8 +18962,8 @@ var require_commonjs2 = __commonJS({
|
|
|
18962
18962
|
*/
|
|
18963
18963
|
*values() {
|
|
18964
18964
|
for (const i of this.#indexes()) {
|
|
18965
|
-
const
|
|
18966
|
-
if (
|
|
18965
|
+
const v = this.#valList[i];
|
|
18966
|
+
if (v !== void 0 && !this.#isBackgroundFetch(this.#valList[i])) {
|
|
18967
18967
|
yield this.#valList[i];
|
|
18968
18968
|
}
|
|
18969
18969
|
}
|
|
@@ -18976,8 +18976,8 @@ var require_commonjs2 = __commonJS({
|
|
|
18976
18976
|
*/
|
|
18977
18977
|
*rvalues() {
|
|
18978
18978
|
for (const i of this.#rindexes()) {
|
|
18979
|
-
const
|
|
18980
|
-
if (
|
|
18979
|
+
const v = this.#valList[i];
|
|
18980
|
+
if (v !== void 0 && !this.#isBackgroundFetch(this.#valList[i])) {
|
|
18981
18981
|
yield this.#valList[i];
|
|
18982
18982
|
}
|
|
18983
18983
|
}
|
|
@@ -18999,13 +18999,13 @@ var require_commonjs2 = __commonJS({
|
|
|
18999
18999
|
* Find a value for which the supplied fn method returns a truthy value,
|
|
19000
19000
|
* similar to `Array.find()`. fn is called as `fn(value, key, cache)`.
|
|
19001
19001
|
*/
|
|
19002
|
-
find(
|
|
19002
|
+
find(fn, getOptions = {}) {
|
|
19003
19003
|
for (const i of this.#indexes()) {
|
|
19004
|
-
const
|
|
19005
|
-
const value = this.#isBackgroundFetch(
|
|
19004
|
+
const v = this.#valList[i];
|
|
19005
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
19006
19006
|
if (value === void 0)
|
|
19007
19007
|
continue;
|
|
19008
|
-
if (
|
|
19008
|
+
if (fn(value, this.#keyList[i], this)) {
|
|
19009
19009
|
return this.get(this.#keyList[i], getOptions);
|
|
19010
19010
|
}
|
|
19011
19011
|
}
|
|
@@ -19021,26 +19021,26 @@ var require_commonjs2 = __commonJS({
|
|
|
19021
19021
|
*
|
|
19022
19022
|
* Does not update age or recenty of use, or iterate over stale values.
|
|
19023
19023
|
*/
|
|
19024
|
-
forEach(
|
|
19024
|
+
forEach(fn, thisp = this) {
|
|
19025
19025
|
for (const i of this.#indexes()) {
|
|
19026
|
-
const
|
|
19027
|
-
const value = this.#isBackgroundFetch(
|
|
19026
|
+
const v = this.#valList[i];
|
|
19027
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
19028
19028
|
if (value === void 0)
|
|
19029
19029
|
continue;
|
|
19030
|
-
|
|
19030
|
+
fn.call(thisp, value, this.#keyList[i], this);
|
|
19031
19031
|
}
|
|
19032
19032
|
}
|
|
19033
19033
|
/**
|
|
19034
19034
|
* The same as {@link LRUCache.forEach} but items are iterated over in
|
|
19035
19035
|
* reverse order. (ie, less recently used items are iterated over first.)
|
|
19036
19036
|
*/
|
|
19037
|
-
rforEach(
|
|
19037
|
+
rforEach(fn, thisp = this) {
|
|
19038
19038
|
for (const i of this.#rindexes()) {
|
|
19039
|
-
const
|
|
19040
|
-
const value = this.#isBackgroundFetch(
|
|
19039
|
+
const v = this.#valList[i];
|
|
19040
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
19041
19041
|
if (value === void 0)
|
|
19042
19042
|
continue;
|
|
19043
|
-
|
|
19043
|
+
fn.call(thisp, value, this.#keyList[i], this);
|
|
19044
19044
|
}
|
|
19045
19045
|
}
|
|
19046
19046
|
/**
|
|
@@ -19073,8 +19073,8 @@ var require_commonjs2 = __commonJS({
|
|
|
19073
19073
|
const i = this.#keyMap.get(key);
|
|
19074
19074
|
if (i === void 0)
|
|
19075
19075
|
return void 0;
|
|
19076
|
-
const
|
|
19077
|
-
const value = this.#isBackgroundFetch(
|
|
19076
|
+
const v = this.#valList[i];
|
|
19077
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
19078
19078
|
if (value === void 0)
|
|
19079
19079
|
return void 0;
|
|
19080
19080
|
const entry = { value };
|
|
@@ -19109,8 +19109,8 @@ var require_commonjs2 = __commonJS({
|
|
|
19109
19109
|
const arr = [];
|
|
19110
19110
|
for (const i of this.#indexes({ allowStale: true })) {
|
|
19111
19111
|
const key = this.#keyList[i];
|
|
19112
|
-
const
|
|
19113
|
-
const value = this.#isBackgroundFetch(
|
|
19112
|
+
const v = this.#valList[i];
|
|
19113
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
19114
19114
|
if (value === void 0 || key === void 0)
|
|
19115
19115
|
continue;
|
|
19116
19116
|
const entry = { value };
|
|
@@ -19175,14 +19175,14 @@ var require_commonjs2 = __commonJS({
|
|
|
19175
19175
|
* If the value is `undefined`, then this is an alias for
|
|
19176
19176
|
* `cache.delete(key)`. `undefined` is never stored in the cache.
|
|
19177
19177
|
*/
|
|
19178
|
-
set(k,
|
|
19179
|
-
if (
|
|
19178
|
+
set(k, v, setOptions = {}) {
|
|
19179
|
+
if (v === void 0) {
|
|
19180
19180
|
this.delete(k);
|
|
19181
19181
|
return this;
|
|
19182
19182
|
}
|
|
19183
19183
|
const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status } = setOptions;
|
|
19184
19184
|
let { noUpdateTTL = this.noUpdateTTL } = setOptions;
|
|
19185
|
-
const size = this.#requireSize(k,
|
|
19185
|
+
const size = this.#requireSize(k, v, setOptions.size || 0, sizeCalculation);
|
|
19186
19186
|
if (this.maxEntrySize && size > this.maxEntrySize) {
|
|
19187
19187
|
if (status) {
|
|
19188
19188
|
status.set = "miss";
|
|
@@ -19195,7 +19195,7 @@ var require_commonjs2 = __commonJS({
|
|
|
19195
19195
|
if (index === void 0) {
|
|
19196
19196
|
index = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size;
|
|
19197
19197
|
this.#keyList[index] = k;
|
|
19198
|
-
this.#valList[index] =
|
|
19198
|
+
this.#valList[index] = v;
|
|
19199
19199
|
this.#keyMap.set(k, index);
|
|
19200
19200
|
this.#next[this.#tail] = index;
|
|
19201
19201
|
this.#prev[index] = this.#tail;
|
|
@@ -19208,7 +19208,7 @@ var require_commonjs2 = __commonJS({
|
|
|
19208
19208
|
} else {
|
|
19209
19209
|
this.#moveToTail(index);
|
|
19210
19210
|
const oldVal = this.#valList[index];
|
|
19211
|
-
if (
|
|
19211
|
+
if (v !== oldVal) {
|
|
19212
19212
|
if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
|
|
19213
19213
|
oldVal.__abortController.abort(new Error("replaced"));
|
|
19214
19214
|
const { __staleWhileFetching: s } = oldVal;
|
|
@@ -19230,7 +19230,7 @@ var require_commonjs2 = __commonJS({
|
|
|
19230
19230
|
}
|
|
19231
19231
|
this.#removeItemSize(index);
|
|
19232
19232
|
this.#addItemSize(index, size, status);
|
|
19233
|
-
this.#valList[index] =
|
|
19233
|
+
this.#valList[index] = v;
|
|
19234
19234
|
if (status) {
|
|
19235
19235
|
status.set = "replace";
|
|
19236
19236
|
const oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
|
|
@@ -19290,15 +19290,15 @@ var require_commonjs2 = __commonJS({
|
|
|
19290
19290
|
#evict(free) {
|
|
19291
19291
|
const head = this.#head;
|
|
19292
19292
|
const k = this.#keyList[head];
|
|
19293
|
-
const
|
|
19294
|
-
if (this.#hasFetchMethod && this.#isBackgroundFetch(
|
|
19295
|
-
|
|
19293
|
+
const v = this.#valList[head];
|
|
19294
|
+
if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {
|
|
19295
|
+
v.__abortController.abort(new Error("evicted"));
|
|
19296
19296
|
} else if (this.#hasDispose || this.#hasDisposeAfter) {
|
|
19297
19297
|
if (this.#hasDispose) {
|
|
19298
|
-
this.#dispose?.(
|
|
19298
|
+
this.#dispose?.(v, k, "evict");
|
|
19299
19299
|
}
|
|
19300
19300
|
if (this.#hasDisposeAfter) {
|
|
19301
|
-
this.#disposed?.push([
|
|
19301
|
+
this.#disposed?.push([v, k, "evict"]);
|
|
19302
19302
|
}
|
|
19303
19303
|
}
|
|
19304
19304
|
this.#removeItemSize(head);
|
|
@@ -19337,8 +19337,8 @@ var require_commonjs2 = __commonJS({
|
|
|
19337
19337
|
const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;
|
|
19338
19338
|
const index = this.#keyMap.get(k);
|
|
19339
19339
|
if (index !== void 0) {
|
|
19340
|
-
const
|
|
19341
|
-
if (this.#isBackgroundFetch(
|
|
19340
|
+
const v = this.#valList[index];
|
|
19341
|
+
if (this.#isBackgroundFetch(v) && v.__staleWhileFetching === void 0) {
|
|
19342
19342
|
return false;
|
|
19343
19343
|
}
|
|
19344
19344
|
if (!this.#isStale(index)) {
|
|
@@ -19372,13 +19372,13 @@ var require_commonjs2 = __commonJS({
|
|
|
19372
19372
|
if (index === void 0 || !allowStale && this.#isStale(index)) {
|
|
19373
19373
|
return;
|
|
19374
19374
|
}
|
|
19375
|
-
const
|
|
19376
|
-
return this.#isBackgroundFetch(
|
|
19375
|
+
const v = this.#valList[index];
|
|
19376
|
+
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
19377
19377
|
}
|
|
19378
19378
|
#backgroundFetch(k, index, options, context) {
|
|
19379
|
-
const
|
|
19380
|
-
if (this.#isBackgroundFetch(
|
|
19381
|
-
return
|
|
19379
|
+
const v = index === void 0 ? void 0 : this.#valList[index];
|
|
19380
|
+
if (this.#isBackgroundFetch(v)) {
|
|
19381
|
+
return v;
|
|
19382
19382
|
}
|
|
19383
19383
|
const ac = new AC();
|
|
19384
19384
|
const { signal } = options;
|
|
@@ -19390,9 +19390,9 @@ var require_commonjs2 = __commonJS({
|
|
|
19390
19390
|
options,
|
|
19391
19391
|
context
|
|
19392
19392
|
};
|
|
19393
|
-
const cb = (
|
|
19393
|
+
const cb = (v2, updateCache = false) => {
|
|
19394
19394
|
const { aborted } = ac.signal;
|
|
19395
|
-
const ignoreAbort = options.ignoreFetchAbort &&
|
|
19395
|
+
const ignoreAbort = options.ignoreFetchAbort && v2 !== void 0;
|
|
19396
19396
|
if (options.status) {
|
|
19397
19397
|
if (aborted && !updateCache) {
|
|
19398
19398
|
options.status.fetchAborted = true;
|
|
@@ -19406,9 +19406,9 @@ var require_commonjs2 = __commonJS({
|
|
|
19406
19406
|
if (aborted && !ignoreAbort && !updateCache) {
|
|
19407
19407
|
return fetchFail(ac.signal.reason);
|
|
19408
19408
|
}
|
|
19409
|
-
const bf2 =
|
|
19410
|
-
if (this.#valList[index] ===
|
|
19411
|
-
if (
|
|
19409
|
+
const bf2 = p;
|
|
19410
|
+
if (this.#valList[index] === p) {
|
|
19411
|
+
if (v2 === void 0) {
|
|
19412
19412
|
if (bf2.__staleWhileFetching) {
|
|
19413
19413
|
this.#valList[index] = bf2.__staleWhileFetching;
|
|
19414
19414
|
} else {
|
|
@@ -19417,10 +19417,10 @@ var require_commonjs2 = __commonJS({
|
|
|
19417
19417
|
} else {
|
|
19418
19418
|
if (options.status)
|
|
19419
19419
|
options.status.fetchUpdated = true;
|
|
19420
|
-
this.set(k,
|
|
19420
|
+
this.set(k, v2, fetchOpts.options);
|
|
19421
19421
|
}
|
|
19422
19422
|
}
|
|
19423
|
-
return
|
|
19423
|
+
return v2;
|
|
19424
19424
|
};
|
|
19425
19425
|
const eb = (er) => {
|
|
19426
19426
|
if (options.status) {
|
|
@@ -19434,8 +19434,8 @@ var require_commonjs2 = __commonJS({
|
|
|
19434
19434
|
const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
|
|
19435
19435
|
const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
|
|
19436
19436
|
const noDelete = allowStale || options.noDeleteOnFetchRejection;
|
|
19437
|
-
const bf2 =
|
|
19438
|
-
if (this.#valList[index] ===
|
|
19437
|
+
const bf2 = p;
|
|
19438
|
+
if (this.#valList[index] === p) {
|
|
19439
19439
|
const del = !noDelete || bf2.__staleWhileFetching === void 0;
|
|
19440
19440
|
if (del) {
|
|
19441
19441
|
this.#delete(k, "fetch");
|
|
@@ -19453,25 +19453,25 @@ var require_commonjs2 = __commonJS({
|
|
|
19453
19453
|
}
|
|
19454
19454
|
};
|
|
19455
19455
|
const pcall = (res, rej) => {
|
|
19456
|
-
const fmp = this.#fetchMethod?.(k,
|
|
19456
|
+
const fmp = this.#fetchMethod?.(k, v, fetchOpts);
|
|
19457
19457
|
if (fmp && fmp instanceof Promise) {
|
|
19458
|
-
fmp.then((
|
|
19458
|
+
fmp.then((v2) => res(v2 === void 0 ? void 0 : v2), rej);
|
|
19459
19459
|
}
|
|
19460
19460
|
ac.signal.addEventListener("abort", () => {
|
|
19461
19461
|
if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
|
|
19462
19462
|
res(void 0);
|
|
19463
19463
|
if (options.allowStaleOnFetchAbort) {
|
|
19464
|
-
res = (
|
|
19464
|
+
res = (v2) => cb(v2, true);
|
|
19465
19465
|
}
|
|
19466
19466
|
}
|
|
19467
19467
|
});
|
|
19468
19468
|
};
|
|
19469
19469
|
if (options.status)
|
|
19470
19470
|
options.status.fetchDispatched = true;
|
|
19471
|
-
const
|
|
19472
|
-
const bf = Object.assign(
|
|
19471
|
+
const p = new Promise(pcall).then(cb, eb);
|
|
19472
|
+
const bf = Object.assign(p, {
|
|
19473
19473
|
__abortController: ac,
|
|
19474
|
-
__staleWhileFetching:
|
|
19474
|
+
__staleWhileFetching: v,
|
|
19475
19475
|
__returned: void 0
|
|
19476
19476
|
});
|
|
19477
19477
|
if (index === void 0) {
|
|
@@ -19482,10 +19482,10 @@ var require_commonjs2 = __commonJS({
|
|
|
19482
19482
|
}
|
|
19483
19483
|
return bf;
|
|
19484
19484
|
}
|
|
19485
|
-
#isBackgroundFetch(
|
|
19485
|
+
#isBackgroundFetch(p) {
|
|
19486
19486
|
if (!this.#hasFetchMethod)
|
|
19487
19487
|
return false;
|
|
19488
|
-
const b =
|
|
19488
|
+
const b = p;
|
|
19489
19489
|
return !!b && b instanceof Promise && b.hasOwnProperty("__staleWhileFetching") && b.__abortController instanceof AC;
|
|
19490
19490
|
}
|
|
19491
19491
|
async fetch(k, fetchOptions = {}) {
|
|
@@ -19540,18 +19540,18 @@ var require_commonjs2 = __commonJS({
|
|
|
19540
19540
|
if (index === void 0) {
|
|
19541
19541
|
if (status)
|
|
19542
19542
|
status.fetch = "miss";
|
|
19543
|
-
const
|
|
19544
|
-
return
|
|
19543
|
+
const p = this.#backgroundFetch(k, index, options, context);
|
|
19544
|
+
return p.__returned = p;
|
|
19545
19545
|
} else {
|
|
19546
|
-
const
|
|
19547
|
-
if (this.#isBackgroundFetch(
|
|
19548
|
-
const stale = allowStale &&
|
|
19546
|
+
const v = this.#valList[index];
|
|
19547
|
+
if (this.#isBackgroundFetch(v)) {
|
|
19548
|
+
const stale = allowStale && v.__staleWhileFetching !== void 0;
|
|
19549
19549
|
if (status) {
|
|
19550
19550
|
status.fetch = "inflight";
|
|
19551
19551
|
if (stale)
|
|
19552
19552
|
status.returnedStale = true;
|
|
19553
19553
|
}
|
|
19554
|
-
return stale ?
|
|
19554
|
+
return stale ? v.__staleWhileFetching : v.__returned = v;
|
|
19555
19555
|
}
|
|
19556
19556
|
const isStale = this.#isStale(index);
|
|
19557
19557
|
if (!forceRefresh && !isStale) {
|
|
@@ -19563,24 +19563,24 @@ var require_commonjs2 = __commonJS({
|
|
|
19563
19563
|
}
|
|
19564
19564
|
if (status)
|
|
19565
19565
|
this.#statusTTL(status, index);
|
|
19566
|
-
return
|
|
19566
|
+
return v;
|
|
19567
19567
|
}
|
|
19568
|
-
const
|
|
19569
|
-
const hasStale =
|
|
19568
|
+
const p = this.#backgroundFetch(k, index, options, context);
|
|
19569
|
+
const hasStale = p.__staleWhileFetching !== void 0;
|
|
19570
19570
|
const staleVal = hasStale && allowStale;
|
|
19571
19571
|
if (status) {
|
|
19572
19572
|
status.fetch = isStale ? "stale" : "refresh";
|
|
19573
19573
|
if (staleVal && isStale)
|
|
19574
19574
|
status.returnedStale = true;
|
|
19575
19575
|
}
|
|
19576
|
-
return staleVal ?
|
|
19576
|
+
return staleVal ? p.__staleWhileFetching : p.__returned = p;
|
|
19577
19577
|
}
|
|
19578
19578
|
}
|
|
19579
19579
|
async forceFetch(k, fetchOptions = {}) {
|
|
19580
|
-
const
|
|
19581
|
-
if (
|
|
19580
|
+
const v = await this.fetch(k, fetchOptions);
|
|
19581
|
+
if (v === void 0)
|
|
19582
19582
|
throw new Error("fetch() returned undefined");
|
|
19583
|
-
return
|
|
19583
|
+
return v;
|
|
19584
19584
|
}
|
|
19585
19585
|
memo(k, memoOptions = {}) {
|
|
19586
19586
|
const memoMethod = this.#memoMethod;
|
|
@@ -19588,10 +19588,10 @@ var require_commonjs2 = __commonJS({
|
|
|
19588
19588
|
throw new Error("no memoMethod provided to constructor");
|
|
19589
19589
|
}
|
|
19590
19590
|
const { context, forceRefresh, ...options } = memoOptions;
|
|
19591
|
-
const
|
|
19592
|
-
if (!forceRefresh &&
|
|
19593
|
-
return
|
|
19594
|
-
const vv = memoMethod(k,
|
|
19591
|
+
const v = this.get(k, options);
|
|
19592
|
+
if (!forceRefresh && v !== void 0)
|
|
19593
|
+
return v;
|
|
19594
|
+
const vv = memoMethod(k, v, {
|
|
19595
19595
|
options,
|
|
19596
19596
|
context
|
|
19597
19597
|
});
|
|
@@ -19644,9 +19644,9 @@ var require_commonjs2 = __commonJS({
|
|
|
19644
19644
|
status.get = "miss";
|
|
19645
19645
|
}
|
|
19646
19646
|
}
|
|
19647
|
-
#connect(
|
|
19648
|
-
this.#prev[n] =
|
|
19649
|
-
this.#next[
|
|
19647
|
+
#connect(p, n) {
|
|
19648
|
+
this.#prev[n] = p;
|
|
19649
|
+
this.#next[p] = n;
|
|
19650
19650
|
}
|
|
19651
19651
|
#moveToTail(index) {
|
|
19652
19652
|
if (index !== this.#tail) {
|
|
@@ -19677,15 +19677,15 @@ var require_commonjs2 = __commonJS({
|
|
|
19677
19677
|
this.#clear(reason);
|
|
19678
19678
|
} else {
|
|
19679
19679
|
this.#removeItemSize(index);
|
|
19680
|
-
const
|
|
19681
|
-
if (this.#isBackgroundFetch(
|
|
19682
|
-
|
|
19680
|
+
const v = this.#valList[index];
|
|
19681
|
+
if (this.#isBackgroundFetch(v)) {
|
|
19682
|
+
v.__abortController.abort(new Error("deleted"));
|
|
19683
19683
|
} else if (this.#hasDispose || this.#hasDisposeAfter) {
|
|
19684
19684
|
if (this.#hasDispose) {
|
|
19685
|
-
this.#dispose?.(
|
|
19685
|
+
this.#dispose?.(v, k, reason);
|
|
19686
19686
|
}
|
|
19687
19687
|
if (this.#hasDisposeAfter) {
|
|
19688
|
-
this.#disposed?.push([
|
|
19688
|
+
this.#disposed?.push([v, k, reason]);
|
|
19689
19689
|
}
|
|
19690
19690
|
}
|
|
19691
19691
|
this.#keyMap.delete(k);
|
|
@@ -19723,16 +19723,16 @@ var require_commonjs2 = __commonJS({
|
|
|
19723
19723
|
}
|
|
19724
19724
|
#clear(reason) {
|
|
19725
19725
|
for (const index of this.#rindexes({ allowStale: true })) {
|
|
19726
|
-
const
|
|
19727
|
-
if (this.#isBackgroundFetch(
|
|
19728
|
-
|
|
19726
|
+
const v = this.#valList[index];
|
|
19727
|
+
if (this.#isBackgroundFetch(v)) {
|
|
19728
|
+
v.__abortController.abort(new Error("deleted"));
|
|
19729
19729
|
} else {
|
|
19730
19730
|
const k = this.#keyList[index];
|
|
19731
19731
|
if (this.#hasDispose) {
|
|
19732
|
-
this.#dispose?.(
|
|
19732
|
+
this.#dispose?.(v, k, reason);
|
|
19733
19733
|
}
|
|
19734
19734
|
if (this.#hasDisposeAfter) {
|
|
19735
|
-
this.#disposed?.push([
|
|
19735
|
+
this.#disposed?.push([v, k, reason]);
|
|
19736
19736
|
}
|
|
19737
19737
|
}
|
|
19738
19738
|
}
|
|
@@ -19818,8 +19818,8 @@ var require_commonjs3 = __commonJS({
|
|
|
19818
19818
|
var SIGNAL = Symbol("signal");
|
|
19819
19819
|
var DATALISTENERS = Symbol("dataListeners");
|
|
19820
19820
|
var DISCARDED = Symbol("discarded");
|
|
19821
|
-
var defer = (
|
|
19822
|
-
var nodefer = (
|
|
19821
|
+
var defer = (fn) => Promise.resolve().then(fn);
|
|
19822
|
+
var nodefer = (fn) => fn();
|
|
19823
19823
|
var isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
|
|
19824
19824
|
var isArrayBufferLike = (b) => b instanceof ArrayBuffer || !!b && typeof b === "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0;
|
|
19825
19825
|
var isArrayBufferView = (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b);
|
|
@@ -20021,7 +20021,7 @@ var require_commonjs3 = __commonJS({
|
|
|
20021
20021
|
}
|
|
20022
20022
|
if (!encoding)
|
|
20023
20023
|
encoding = "utf8";
|
|
20024
|
-
const
|
|
20024
|
+
const fn = this[ASYNC] ? defer : nodefer;
|
|
20025
20025
|
if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
|
|
20026
20026
|
if (isArrayBufferView(chunk)) {
|
|
20027
20027
|
chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
@@ -20041,14 +20041,14 @@ var require_commonjs3 = __commonJS({
|
|
|
20041
20041
|
if (this[BUFFERLENGTH] !== 0)
|
|
20042
20042
|
this.emit("readable");
|
|
20043
20043
|
if (cb)
|
|
20044
|
-
|
|
20044
|
+
fn(cb);
|
|
20045
20045
|
return this[FLOWING];
|
|
20046
20046
|
}
|
|
20047
20047
|
if (!chunk.length) {
|
|
20048
20048
|
if (this[BUFFERLENGTH] !== 0)
|
|
20049
20049
|
this.emit("readable");
|
|
20050
20050
|
if (cb)
|
|
20051
|
-
|
|
20051
|
+
fn(cb);
|
|
20052
20052
|
return this[FLOWING];
|
|
20053
20053
|
}
|
|
20054
20054
|
if (typeof chunk === "string" && // unless it is a string already ready for us to use
|
|
@@ -20067,7 +20067,7 @@ var require_commonjs3 = __commonJS({
|
|
|
20067
20067
|
if (this[BUFFERLENGTH] !== 0)
|
|
20068
20068
|
this.emit("readable");
|
|
20069
20069
|
if (cb)
|
|
20070
|
-
|
|
20070
|
+
fn(cb);
|
|
20071
20071
|
return this[FLOWING];
|
|
20072
20072
|
}
|
|
20073
20073
|
/**
|
|
@@ -20260,16 +20260,16 @@ var require_commonjs3 = __commonJS({
|
|
|
20260
20260
|
* {@link Minipass#resume} is explicitly called.
|
|
20261
20261
|
*/
|
|
20262
20262
|
unpipe(dest) {
|
|
20263
|
-
const
|
|
20264
|
-
if (
|
|
20263
|
+
const p = this[PIPES].find((p2) => p2.dest === dest);
|
|
20264
|
+
if (p) {
|
|
20265
20265
|
if (this[PIPES].length === 1) {
|
|
20266
20266
|
if (this[FLOWING] && this[DATALISTENERS] === 0) {
|
|
20267
20267
|
this[FLOWING] = false;
|
|
20268
20268
|
}
|
|
20269
20269
|
this[PIPES] = [];
|
|
20270
20270
|
} else
|
|
20271
|
-
this[PIPES].splice(this[PIPES].indexOf(
|
|
20272
|
-
|
|
20271
|
+
this[PIPES].splice(this[PIPES].indexOf(p), 1);
|
|
20272
|
+
p.unpipe();
|
|
20273
20273
|
}
|
|
20274
20274
|
}
|
|
20275
20275
|
/**
|
|
@@ -20435,8 +20435,8 @@ var require_commonjs3 = __commonJS({
|
|
|
20435
20435
|
return ret;
|
|
20436
20436
|
}
|
|
20437
20437
|
[EMITDATA](data) {
|
|
20438
|
-
for (const
|
|
20439
|
-
if (
|
|
20438
|
+
for (const p of this[PIPES]) {
|
|
20439
|
+
if (p.dest.write(data) === false)
|
|
20440
20440
|
this.pause();
|
|
20441
20441
|
}
|
|
20442
20442
|
const ret = this[DISCARDED] ? false : super.emit("data", data);
|
|
@@ -20454,15 +20454,15 @@ var require_commonjs3 = __commonJS({
|
|
|
20454
20454
|
if (this[DECODER]) {
|
|
20455
20455
|
const data = this[DECODER].end();
|
|
20456
20456
|
if (data) {
|
|
20457
|
-
for (const
|
|
20458
|
-
|
|
20457
|
+
for (const p of this[PIPES]) {
|
|
20458
|
+
p.dest.write(data);
|
|
20459
20459
|
}
|
|
20460
20460
|
if (!this[DISCARDED])
|
|
20461
20461
|
super.emit("data", data);
|
|
20462
20462
|
}
|
|
20463
20463
|
}
|
|
20464
|
-
for (const
|
|
20465
|
-
|
|
20464
|
+
for (const p of this[PIPES]) {
|
|
20465
|
+
p.end();
|
|
20466
20466
|
}
|
|
20467
20467
|
const ret = super.emit("end");
|
|
20468
20468
|
this.removeAllListeners("end");
|
|
@@ -20478,13 +20478,13 @@ var require_commonjs3 = __commonJS({
|
|
|
20478
20478
|
});
|
|
20479
20479
|
if (!this[OBJECTMODE])
|
|
20480
20480
|
buf.dataLength = 0;
|
|
20481
|
-
const
|
|
20481
|
+
const p = this.promise();
|
|
20482
20482
|
this.on("data", (c) => {
|
|
20483
20483
|
buf.push(c);
|
|
20484
20484
|
if (!this[OBJECTMODE])
|
|
20485
20485
|
buf.dataLength += c.length;
|
|
20486
20486
|
});
|
|
20487
|
-
await
|
|
20487
|
+
await p;
|
|
20488
20488
|
return buf;
|
|
20489
20489
|
}
|
|
20490
20490
|
/**
|
|
@@ -20673,10 +20673,10 @@ var require_commonjs4 = __commonJS({
|
|
|
20673
20673
|
if (k2 === void 0) k2 = k;
|
|
20674
20674
|
o[k2] = m[k];
|
|
20675
20675
|
}));
|
|
20676
|
-
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o,
|
|
20677
|
-
Object.defineProperty(o, "default", { enumerable: true, value:
|
|
20678
|
-
}) : function(o,
|
|
20679
|
-
o["default"] =
|
|
20676
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
20677
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20678
|
+
}) : function(o, v) {
|
|
20679
|
+
o["default"] = v;
|
|
20680
20680
|
});
|
|
20681
20681
|
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
20682
20682
|
if (mod && mod.__esModule) return mod;
|
|
@@ -20971,11 +20971,11 @@ var require_commonjs4 = __commonJS({
|
|
|
20971
20971
|
return result;
|
|
20972
20972
|
}
|
|
20973
20973
|
#resolveParts(dirParts) {
|
|
20974
|
-
let
|
|
20974
|
+
let p = this;
|
|
20975
20975
|
for (const part of dirParts) {
|
|
20976
|
-
|
|
20976
|
+
p = p.child(part);
|
|
20977
20977
|
}
|
|
20978
|
-
return
|
|
20978
|
+
return p;
|
|
20979
20979
|
}
|
|
20980
20980
|
/**
|
|
20981
20981
|
* Returns the cached children Path objects, if still available. If they
|
|
@@ -21017,9 +21017,9 @@ var require_commonjs4 = __commonJS({
|
|
|
21017
21017
|
}
|
|
21018
21018
|
const children = this.children();
|
|
21019
21019
|
const name = this.nocase ? normalizeNocase(pathPart) : normalize(pathPart);
|
|
21020
|
-
for (const
|
|
21021
|
-
if (
|
|
21022
|
-
return
|
|
21020
|
+
for (const p of children) {
|
|
21021
|
+
if (p.#matchName === name) {
|
|
21022
|
+
return p;
|
|
21023
21023
|
}
|
|
21024
21024
|
}
|
|
21025
21025
|
const s = this.parent ? this.sep : "";
|
|
@@ -21046,12 +21046,12 @@ var require_commonjs4 = __commonJS({
|
|
|
21046
21046
|
return this.#relative;
|
|
21047
21047
|
}
|
|
21048
21048
|
const name = this.name;
|
|
21049
|
-
const
|
|
21050
|
-
if (!
|
|
21049
|
+
const p = this.parent;
|
|
21050
|
+
if (!p) {
|
|
21051
21051
|
return this.#relative = this.name;
|
|
21052
21052
|
}
|
|
21053
|
-
const pv =
|
|
21054
|
-
return pv + (!pv || !
|
|
21053
|
+
const pv = p.relative();
|
|
21054
|
+
return pv + (!pv || !p.parent ? "" : this.sep) + name;
|
|
21055
21055
|
}
|
|
21056
21056
|
/**
|
|
21057
21057
|
* The relative path from the cwd, using / as the path separator.
|
|
@@ -21067,12 +21067,12 @@ var require_commonjs4 = __commonJS({
|
|
|
21067
21067
|
if (this.#relativePosix !== void 0)
|
|
21068
21068
|
return this.#relativePosix;
|
|
21069
21069
|
const name = this.name;
|
|
21070
|
-
const
|
|
21071
|
-
if (!
|
|
21070
|
+
const p = this.parent;
|
|
21071
|
+
if (!p) {
|
|
21072
21072
|
return this.#relativePosix = this.fullpathPosix();
|
|
21073
21073
|
}
|
|
21074
|
-
const pv =
|
|
21075
|
-
return pv + (!pv || !
|
|
21074
|
+
const pv = p.relativePosix();
|
|
21075
|
+
return pv + (!pv || !p.parent ? "" : "/") + name;
|
|
21076
21076
|
}
|
|
21077
21077
|
/**
|
|
21078
21078
|
* The fully resolved path string for this Path entry
|
|
@@ -21082,12 +21082,12 @@ var require_commonjs4 = __commonJS({
|
|
|
21082
21082
|
return this.#fullpath;
|
|
21083
21083
|
}
|
|
21084
21084
|
const name = this.name;
|
|
21085
|
-
const
|
|
21086
|
-
if (!
|
|
21085
|
+
const p = this.parent;
|
|
21086
|
+
if (!p) {
|
|
21087
21087
|
return this.#fullpath = this.name;
|
|
21088
21088
|
}
|
|
21089
|
-
const pv =
|
|
21090
|
-
const fp = pv + (!
|
|
21089
|
+
const pv = p.fullpath();
|
|
21090
|
+
const fp = pv + (!p.parent ? "" : this.sep) + name;
|
|
21091
21091
|
return this.#fullpath = fp;
|
|
21092
21092
|
}
|
|
21093
21093
|
/**
|
|
@@ -21102,16 +21102,16 @@ var require_commonjs4 = __commonJS({
|
|
|
21102
21102
|
if (this.sep === "/")
|
|
21103
21103
|
return this.#fullpathPosix = this.fullpath();
|
|
21104
21104
|
if (!this.parent) {
|
|
21105
|
-
const
|
|
21106
|
-
if (/^[a-z]:\//i.test(
|
|
21107
|
-
return this.#fullpathPosix = `//?/${
|
|
21105
|
+
const p2 = this.fullpath().replace(/\\/g, "/");
|
|
21106
|
+
if (/^[a-z]:\//i.test(p2)) {
|
|
21107
|
+
return this.#fullpathPosix = `//?/${p2}`;
|
|
21108
21108
|
} else {
|
|
21109
|
-
return this.#fullpathPosix =
|
|
21109
|
+
return this.#fullpathPosix = p2;
|
|
21110
21110
|
}
|
|
21111
21111
|
}
|
|
21112
|
-
const
|
|
21113
|
-
const pfpp =
|
|
21114
|
-
const fpp = pfpp + (!pfpp || !
|
|
21112
|
+
const p = this.parent;
|
|
21113
|
+
const pfpp = p.fullpathPosix();
|
|
21114
|
+
const fpp = pfpp + (!pfpp || !p.parent ? "" : "/") + this.name;
|
|
21115
21115
|
return this.#fullpathPosix = fpp;
|
|
21116
21116
|
}
|
|
21117
21117
|
/**
|
|
@@ -21320,8 +21320,8 @@ var require_commonjs4 = __commonJS({
|
|
|
21320
21320
|
}
|
|
21321
21321
|
#readdirSuccess(children) {
|
|
21322
21322
|
this.#type |= READDIR_CALLED;
|
|
21323
|
-
for (let
|
|
21324
|
-
const c = children[
|
|
21323
|
+
for (let p = children.provisional; p < children.length; p++) {
|
|
21324
|
+
const c = children[p];
|
|
21325
21325
|
if (c)
|
|
21326
21326
|
c.#markENOENT();
|
|
21327
21327
|
}
|
|
@@ -21335,8 +21335,8 @@ var require_commonjs4 = __commonJS({
|
|
|
21335
21335
|
#markChildrenENOENT() {
|
|
21336
21336
|
const children = this.children();
|
|
21337
21337
|
children.provisional = 0;
|
|
21338
|
-
for (const
|
|
21339
|
-
|
|
21338
|
+
for (const p of children) {
|
|
21339
|
+
p.#markENOENT();
|
|
21340
21340
|
}
|
|
21341
21341
|
}
|
|
21342
21342
|
#markENOREALPATH() {
|
|
@@ -21364,8 +21364,8 @@ var require_commonjs4 = __commonJS({
|
|
|
21364
21364
|
}
|
|
21365
21365
|
#lstatFail(code = "") {
|
|
21366
21366
|
if (code === "ENOTDIR") {
|
|
21367
|
-
const
|
|
21368
|
-
|
|
21367
|
+
const p = this.parent;
|
|
21368
|
+
p.#markENOTDIR();
|
|
21369
21369
|
} else if (code === "ENOENT") {
|
|
21370
21370
|
this.#markENOENT();
|
|
21371
21371
|
}
|
|
@@ -21398,29 +21398,29 @@ var require_commonjs4 = __commonJS({
|
|
|
21398
21398
|
return child;
|
|
21399
21399
|
}
|
|
21400
21400
|
#readdirMaybePromoteChild(e, c) {
|
|
21401
|
-
for (let
|
|
21402
|
-
const pchild = c[
|
|
21401
|
+
for (let p = c.provisional; p < c.length; p++) {
|
|
21402
|
+
const pchild = c[p];
|
|
21403
21403
|
const name = this.nocase ? normalizeNocase(e.name) : normalize(e.name);
|
|
21404
21404
|
if (name !== pchild.#matchName) {
|
|
21405
21405
|
continue;
|
|
21406
21406
|
}
|
|
21407
|
-
return this.#readdirPromoteChild(e, pchild,
|
|
21407
|
+
return this.#readdirPromoteChild(e, pchild, p, c);
|
|
21408
21408
|
}
|
|
21409
21409
|
}
|
|
21410
|
-
#readdirPromoteChild(e,
|
|
21411
|
-
const
|
|
21412
|
-
|
|
21413
|
-
if (
|
|
21414
|
-
|
|
21410
|
+
#readdirPromoteChild(e, p, index, c) {
|
|
21411
|
+
const v = p.name;
|
|
21412
|
+
p.#type = p.#type & IFMT_UNKNOWN | entToType(e);
|
|
21413
|
+
if (v !== e.name)
|
|
21414
|
+
p.name = e.name;
|
|
21415
21415
|
if (index !== c.provisional) {
|
|
21416
21416
|
if (index === c.length - 1)
|
|
21417
21417
|
c.pop();
|
|
21418
21418
|
else
|
|
21419
21419
|
c.splice(index, 1);
|
|
21420
|
-
c.unshift(
|
|
21420
|
+
c.unshift(p);
|
|
21421
21421
|
}
|
|
21422
21422
|
c.provisional++;
|
|
21423
|
-
return
|
|
21423
|
+
return p;
|
|
21424
21424
|
}
|
|
21425
21425
|
/**
|
|
21426
21426
|
* Call lstat() on this Path, and update all known information that can be
|
|
@@ -21674,19 +21674,19 @@ var require_commonjs4 = __commonJS({
|
|
|
21674
21674
|
this.isCWD = true;
|
|
21675
21675
|
const changed = /* @__PURE__ */ new Set([]);
|
|
21676
21676
|
let rp = [];
|
|
21677
|
-
let
|
|
21678
|
-
while (
|
|
21679
|
-
changed.add(
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21677
|
+
let p = this;
|
|
21678
|
+
while (p && p.parent) {
|
|
21679
|
+
changed.add(p);
|
|
21680
|
+
p.#relative = rp.join(this.sep);
|
|
21681
|
+
p.#relativePosix = rp.join("/");
|
|
21682
|
+
p = p.parent;
|
|
21683
21683
|
rp.push("..");
|
|
21684
21684
|
}
|
|
21685
|
-
|
|
21686
|
-
while (
|
|
21687
|
-
|
|
21688
|
-
|
|
21689
|
-
|
|
21685
|
+
p = oldCwd;
|
|
21686
|
+
while (p && p.parent && !changed.has(p)) {
|
|
21687
|
+
p.#relative = void 0;
|
|
21688
|
+
p.#relativePosix = void 0;
|
|
21689
|
+
p = p.parent;
|
|
21690
21690
|
}
|
|
21691
21691
|
}
|
|
21692
21692
|
};
|
|
@@ -21884,11 +21884,11 @@ var require_commonjs4 = __commonJS({
|
|
|
21884
21884
|
resolve(...paths) {
|
|
21885
21885
|
let r = "";
|
|
21886
21886
|
for (let i = paths.length - 1; i >= 0; i--) {
|
|
21887
|
-
const
|
|
21888
|
-
if (!
|
|
21887
|
+
const p = paths[i];
|
|
21888
|
+
if (!p || p === ".")
|
|
21889
21889
|
continue;
|
|
21890
|
-
r = r ? `${
|
|
21891
|
-
if (this.isAbsolute(
|
|
21890
|
+
r = r ? `${p}/${r}` : p;
|
|
21891
|
+
if (this.isAbsolute(p)) {
|
|
21892
21892
|
break;
|
|
21893
21893
|
}
|
|
21894
21894
|
}
|
|
@@ -21914,11 +21914,11 @@ var require_commonjs4 = __commonJS({
|
|
|
21914
21914
|
resolvePosix(...paths) {
|
|
21915
21915
|
let r = "";
|
|
21916
21916
|
for (let i = paths.length - 1; i >= 0; i--) {
|
|
21917
|
-
const
|
|
21918
|
-
if (!
|
|
21917
|
+
const p = paths[i];
|
|
21918
|
+
if (!p || p === ".")
|
|
21919
21919
|
continue;
|
|
21920
|
-
r = r ? `${
|
|
21921
|
-
if (this.isAbsolute(
|
|
21920
|
+
r = r ? `${p}/${r}` : p;
|
|
21921
|
+
if (this.isAbsolute(p)) {
|
|
21922
21922
|
break;
|
|
21923
21923
|
}
|
|
21924
21924
|
}
|
|
@@ -21980,8 +21980,8 @@ var require_commonjs4 = __commonJS({
|
|
|
21980
21980
|
if (!entry.canReaddir()) {
|
|
21981
21981
|
return [];
|
|
21982
21982
|
} else {
|
|
21983
|
-
const
|
|
21984
|
-
return withFileTypes ?
|
|
21983
|
+
const p = await entry.readdir();
|
|
21984
|
+
return withFileTypes ? p : p.map((e) => e.name);
|
|
21985
21985
|
}
|
|
21986
21986
|
}
|
|
21987
21987
|
readdirSync(entry = this.cwd, opts = {
|
|
@@ -22364,8 +22364,8 @@ var require_commonjs4 = __commonJS({
|
|
|
22364
22364
|
const { nocase = true } = opts;
|
|
22365
22365
|
super(cwd, node_path_1.win32, "\\", { ...opts, nocase });
|
|
22366
22366
|
this.nocase = nocase;
|
|
22367
|
-
for (let
|
|
22368
|
-
|
|
22367
|
+
for (let p = this.cwd; p; p = p.parent) {
|
|
22368
|
+
p.nocase = this.nocase;
|
|
22369
22369
|
}
|
|
22370
22370
|
}
|
|
22371
22371
|
/**
|
|
@@ -22383,8 +22383,8 @@ var require_commonjs4 = __commonJS({
|
|
|
22383
22383
|
/**
|
|
22384
22384
|
* Return true if the provided path string is an absolute path
|
|
22385
22385
|
*/
|
|
22386
|
-
isAbsolute(
|
|
22387
|
-
return
|
|
22386
|
+
isAbsolute(p) {
|
|
22387
|
+
return p.startsWith("/") || p.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(p);
|
|
22388
22388
|
}
|
|
22389
22389
|
};
|
|
22390
22390
|
exports2.PathScurryWin32 = PathScurryWin32;
|
|
@@ -22413,8 +22413,8 @@ var require_commonjs4 = __commonJS({
|
|
|
22413
22413
|
/**
|
|
22414
22414
|
* Return true if the provided path string is an absolute path
|
|
22415
22415
|
*/
|
|
22416
|
-
isAbsolute(
|
|
22417
|
-
return
|
|
22416
|
+
isAbsolute(p) {
|
|
22417
|
+
return p.startsWith("/");
|
|
22418
22418
|
}
|
|
22419
22419
|
};
|
|
22420
22420
|
exports2.PathScurryPosix = PathScurryPosix;
|
|
@@ -22430,9 +22430,9 @@ var require_commonjs4 = __commonJS({
|
|
|
22430
22430
|
}
|
|
22431
22431
|
});
|
|
22432
22432
|
|
|
22433
|
-
// ../../../node_modules/glob/dist/commonjs/pattern.js
|
|
22433
|
+
// ../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js
|
|
22434
22434
|
var require_pattern = __commonJS({
|
|
22435
|
-
"../../../node_modules/glob/dist/commonjs/pattern.js"(exports2) {
|
|
22435
|
+
"../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js"(exports2) {
|
|
22436
22436
|
"use strict";
|
|
22437
22437
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22438
22438
|
exports2.Pattern = void 0;
|
|
@@ -22477,9 +22477,9 @@ var require_pattern = __commonJS({
|
|
|
22477
22477
|
prest.shift();
|
|
22478
22478
|
grest.shift();
|
|
22479
22479
|
}
|
|
22480
|
-
const
|
|
22480
|
+
const p = [p0, p1, p2, p3, ""].join("/");
|
|
22481
22481
|
const g = [g0, g1, g2, g3, ""].join("/");
|
|
22482
|
-
this.#patternList = [
|
|
22482
|
+
this.#patternList = [p, ...prest];
|
|
22483
22483
|
this.#globList = [g, ...grest];
|
|
22484
22484
|
this.length = this.#patternList.length;
|
|
22485
22485
|
} else if (this.isDrive() || this.isAbsolute()) {
|
|
@@ -22489,9 +22489,9 @@ var require_pattern = __commonJS({
|
|
|
22489
22489
|
prest.shift();
|
|
22490
22490
|
grest.shift();
|
|
22491
22491
|
}
|
|
22492
|
-
const
|
|
22492
|
+
const p = p1 + "/";
|
|
22493
22493
|
const g = g1 + "/";
|
|
22494
|
-
this.#patternList = [
|
|
22494
|
+
this.#patternList = [p, ...prest];
|
|
22495
22495
|
this.#globList = [g, ...grest];
|
|
22496
22496
|
this.length = this.#patternList.length;
|
|
22497
22497
|
}
|
|
@@ -22580,8 +22580,8 @@ var require_pattern = __commonJS({
|
|
|
22580
22580
|
* consume the root of the pattern, and return it
|
|
22581
22581
|
*/
|
|
22582
22582
|
root() {
|
|
22583
|
-
const
|
|
22584
|
-
return typeof
|
|
22583
|
+
const p = this.#patternList[0];
|
|
22584
|
+
return typeof p === "string" && this.isAbsolute() && this.#index === 0 ? p : "";
|
|
22585
22585
|
}
|
|
22586
22586
|
/**
|
|
22587
22587
|
* Check to see if the current globstar pattern is allowed to follow
|
|
@@ -22604,9 +22604,9 @@ var require_pattern = __commonJS({
|
|
|
22604
22604
|
}
|
|
22605
22605
|
});
|
|
22606
22606
|
|
|
22607
|
-
// ../../../node_modules/glob/dist/commonjs/ignore.js
|
|
22607
|
+
// ../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js
|
|
22608
22608
|
var require_ignore = __commonJS({
|
|
22609
|
-
"../../../node_modules/glob/dist/commonjs/ignore.js"(exports2) {
|
|
22609
|
+
"../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js"(exports2) {
|
|
22610
22610
|
"use strict";
|
|
22611
22611
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22612
22612
|
exports2.Ignore = void 0;
|
|
@@ -22652,10 +22652,10 @@ var require_ignore = __commonJS({
|
|
|
22652
22652
|
parsed.shift();
|
|
22653
22653
|
globParts.shift();
|
|
22654
22654
|
}
|
|
22655
|
-
const
|
|
22656
|
-
const m = new minimatch_1.Minimatch(
|
|
22655
|
+
const p = new pattern_js_1.Pattern(parsed, globParts, 0, this.platform);
|
|
22656
|
+
const m = new minimatch_1.Minimatch(p.globString(), this.mmopts);
|
|
22657
22657
|
const children = globParts[globParts.length - 1] === "**";
|
|
22658
|
-
const absolute =
|
|
22658
|
+
const absolute = p.isAbsolute();
|
|
22659
22659
|
if (absolute)
|
|
22660
22660
|
this.absolute.push(m);
|
|
22661
22661
|
else
|
|
@@ -22668,10 +22668,10 @@ var require_ignore = __commonJS({
|
|
|
22668
22668
|
}
|
|
22669
22669
|
}
|
|
22670
22670
|
}
|
|
22671
|
-
ignored(
|
|
22672
|
-
const fullpath =
|
|
22671
|
+
ignored(p) {
|
|
22672
|
+
const fullpath = p.fullpath();
|
|
22673
22673
|
const fullpaths = `${fullpath}/`;
|
|
22674
|
-
const relative =
|
|
22674
|
+
const relative = p.relative() || ".";
|
|
22675
22675
|
const relatives = `${relative}/`;
|
|
22676
22676
|
for (const m of this.relative) {
|
|
22677
22677
|
if (m.match(relative) || m.match(relatives))
|
|
@@ -22683,9 +22683,9 @@ var require_ignore = __commonJS({
|
|
|
22683
22683
|
}
|
|
22684
22684
|
return false;
|
|
22685
22685
|
}
|
|
22686
|
-
childrenIgnored(
|
|
22687
|
-
const fullpath =
|
|
22688
|
-
const relative = (
|
|
22686
|
+
childrenIgnored(p) {
|
|
22687
|
+
const fullpath = p.fullpath() + "/";
|
|
22688
|
+
const relative = (p.relative() || ".") + "/";
|
|
22689
22689
|
for (const m of this.relativeChildren) {
|
|
22690
22690
|
if (m.match(relative))
|
|
22691
22691
|
return true;
|
|
@@ -22701,9 +22701,9 @@ var require_ignore = __commonJS({
|
|
|
22701
22701
|
}
|
|
22702
22702
|
});
|
|
22703
22703
|
|
|
22704
|
-
// ../../../node_modules/glob/dist/commonjs/processor.js
|
|
22704
|
+
// ../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/processor.js
|
|
22705
22705
|
var require_processor = __commonJS({
|
|
22706
|
-
"../../../node_modules/glob/dist/commonjs/processor.js"(exports2) {
|
|
22706
|
+
"../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/processor.js"(exports2) {
|
|
22707
22707
|
"use strict";
|
|
22708
22708
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22709
22709
|
exports2.Processor = exports2.SubWalks = exports2.MatchRecord = exports2.HasWalkedCache = void 0;
|
|
@@ -22754,7 +22754,7 @@ var require_processor = __commonJS({
|
|
|
22754
22754
|
}
|
|
22755
22755
|
const subs = this.store.get(target);
|
|
22756
22756
|
if (subs) {
|
|
22757
|
-
if (!subs.find((
|
|
22757
|
+
if (!subs.find((p) => p.globString() === pattern.globString())) {
|
|
22758
22758
|
subs.push(pattern);
|
|
22759
22759
|
}
|
|
22760
22760
|
} else
|
|
@@ -22791,7 +22791,7 @@ var require_processor = __commonJS({
|
|
|
22791
22791
|
}
|
|
22792
22792
|
processPatterns(target, patterns) {
|
|
22793
22793
|
this.patterns = patterns;
|
|
22794
|
-
const processingSet = patterns.map((
|
|
22794
|
+
const processingSet = patterns.map((p) => [target, p]);
|
|
22795
22795
|
for (let [t, pattern] of processingSet) {
|
|
22796
22796
|
this.hasWalkedCache.storeWalked(t, pattern);
|
|
22797
22797
|
const root = pattern.root();
|
|
@@ -22808,27 +22808,27 @@ var require_processor = __commonJS({
|
|
|
22808
22808
|
}
|
|
22809
22809
|
if (t.isENOENT())
|
|
22810
22810
|
continue;
|
|
22811
|
-
let
|
|
22811
|
+
let p;
|
|
22812
22812
|
let rest;
|
|
22813
22813
|
let changed = false;
|
|
22814
|
-
while (typeof (
|
|
22815
|
-
const c = t.resolve(
|
|
22814
|
+
while (typeof (p = pattern.pattern()) === "string" && (rest = pattern.rest())) {
|
|
22815
|
+
const c = t.resolve(p);
|
|
22816
22816
|
t = c;
|
|
22817
22817
|
pattern = rest;
|
|
22818
22818
|
changed = true;
|
|
22819
22819
|
}
|
|
22820
|
-
|
|
22820
|
+
p = pattern.pattern();
|
|
22821
22821
|
rest = pattern.rest();
|
|
22822
22822
|
if (changed) {
|
|
22823
22823
|
if (this.hasWalkedCache.hasWalked(t, pattern))
|
|
22824
22824
|
continue;
|
|
22825
22825
|
this.hasWalkedCache.storeWalked(t, pattern);
|
|
22826
22826
|
}
|
|
22827
|
-
if (typeof
|
|
22828
|
-
const ifDir =
|
|
22829
|
-
this.matches.add(t.resolve(
|
|
22827
|
+
if (typeof p === "string") {
|
|
22828
|
+
const ifDir = p === ".." || p === "" || p === ".";
|
|
22829
|
+
this.matches.add(t.resolve(p), absolute, ifDir);
|
|
22830
22830
|
continue;
|
|
22831
|
-
} else if (
|
|
22831
|
+
} else if (p === minimatch_1.GLOBSTAR) {
|
|
22832
22832
|
if (!t.isSymbolicLink() || this.follow || pattern.checkFollowGlobstar()) {
|
|
22833
22833
|
this.subwalks.add(t, pattern);
|
|
22834
22834
|
}
|
|
@@ -22846,7 +22846,7 @@ var require_processor = __commonJS({
|
|
|
22846
22846
|
}
|
|
22847
22847
|
}
|
|
22848
22848
|
}
|
|
22849
|
-
} else if (
|
|
22849
|
+
} else if (p instanceof RegExp) {
|
|
22850
22850
|
this.subwalks.add(t, pattern);
|
|
22851
22851
|
}
|
|
22852
22852
|
}
|
|
@@ -22868,14 +22868,14 @@ var require_processor = __commonJS({
|
|
|
22868
22868
|
for (const e of entries) {
|
|
22869
22869
|
for (const pattern of patterns) {
|
|
22870
22870
|
const absolute = pattern.isAbsolute();
|
|
22871
|
-
const
|
|
22871
|
+
const p = pattern.pattern();
|
|
22872
22872
|
const rest = pattern.rest();
|
|
22873
|
-
if (
|
|
22873
|
+
if (p === minimatch_1.GLOBSTAR) {
|
|
22874
22874
|
results.testGlobstar(e, pattern, rest, absolute);
|
|
22875
|
-
} else if (
|
|
22876
|
-
results.testRegExp(e,
|
|
22875
|
+
} else if (p instanceof RegExp) {
|
|
22876
|
+
results.testRegExp(e, p, rest, absolute);
|
|
22877
22877
|
} else {
|
|
22878
|
-
results.testString(e,
|
|
22878
|
+
results.testString(e, p, rest, absolute);
|
|
22879
22879
|
}
|
|
22880
22880
|
}
|
|
22881
22881
|
}
|
|
@@ -22911,8 +22911,8 @@ var require_processor = __commonJS({
|
|
|
22911
22911
|
}
|
|
22912
22912
|
}
|
|
22913
22913
|
}
|
|
22914
|
-
testRegExp(e,
|
|
22915
|
-
if (!
|
|
22914
|
+
testRegExp(e, p, rest, absolute) {
|
|
22915
|
+
if (!p.test(e.name))
|
|
22916
22916
|
return;
|
|
22917
22917
|
if (!rest) {
|
|
22918
22918
|
this.matches.add(e, absolute, false);
|
|
@@ -22920,8 +22920,8 @@ var require_processor = __commonJS({
|
|
|
22920
22920
|
this.subwalks.add(e, rest);
|
|
22921
22921
|
}
|
|
22922
22922
|
}
|
|
22923
|
-
testString(e,
|
|
22924
|
-
if (!e.isNamed(
|
|
22923
|
+
testString(e, p, rest, absolute) {
|
|
22924
|
+
if (!e.isNamed(p))
|
|
22925
22925
|
return;
|
|
22926
22926
|
if (!rest) {
|
|
22927
22927
|
this.matches.add(e, absolute, false);
|
|
@@ -22934,9 +22934,9 @@ var require_processor = __commonJS({
|
|
|
22934
22934
|
}
|
|
22935
22935
|
});
|
|
22936
22936
|
|
|
22937
|
-
// ../../../node_modules/glob/dist/commonjs/walker.js
|
|
22937
|
+
// ../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/walker.js
|
|
22938
22938
|
var require_walker = __commonJS({
|
|
22939
|
-
"../../../node_modules/glob/dist/commonjs/walker.js"(exports2) {
|
|
22939
|
+
"../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/walker.js"(exports2) {
|
|
22940
22940
|
"use strict";
|
|
22941
22941
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22942
22942
|
exports2.GlobStream = exports2.GlobWalker = exports2.GlobUtil = void 0;
|
|
@@ -22992,18 +22992,18 @@ var require_walker = __commonJS({
|
|
|
22992
22992
|
if (this.signal?.aborted)
|
|
22993
22993
|
return;
|
|
22994
22994
|
this.paused = false;
|
|
22995
|
-
let
|
|
22996
|
-
while (!this.paused && (
|
|
22997
|
-
|
|
22995
|
+
let fn = void 0;
|
|
22996
|
+
while (!this.paused && (fn = this.#onResume.shift())) {
|
|
22997
|
+
fn();
|
|
22998
22998
|
}
|
|
22999
22999
|
}
|
|
23000
|
-
onResume(
|
|
23000
|
+
onResume(fn) {
|
|
23001
23001
|
if (this.signal?.aborted)
|
|
23002
23002
|
return;
|
|
23003
23003
|
if (!this.paused) {
|
|
23004
|
-
|
|
23004
|
+
fn();
|
|
23005
23005
|
} else {
|
|
23006
|
-
this.#onResume.push(
|
|
23006
|
+
this.#onResume.push(fn);
|
|
23007
23007
|
}
|
|
23008
23008
|
}
|
|
23009
23009
|
// do the requisite realpath/stat checking, and return the path
|
|
@@ -23073,14 +23073,14 @@ var require_walker = __commonJS({
|
|
|
23073
23073
|
}
|
|
23074
23074
|
}
|
|
23075
23075
|
async match(e, absolute, ifDir) {
|
|
23076
|
-
const
|
|
23077
|
-
if (
|
|
23078
|
-
this.matchFinish(
|
|
23076
|
+
const p = await this.matchCheck(e, ifDir);
|
|
23077
|
+
if (p)
|
|
23078
|
+
this.matchFinish(p, absolute);
|
|
23079
23079
|
}
|
|
23080
23080
|
matchSync(e, absolute, ifDir) {
|
|
23081
|
-
const
|
|
23082
|
-
if (
|
|
23083
|
-
this.matchFinish(
|
|
23081
|
+
const p = this.matchCheckSync(e, ifDir);
|
|
23082
|
+
if (p)
|
|
23083
|
+
this.matchFinish(p, absolute);
|
|
23084
23084
|
}
|
|
23085
23085
|
walkCB(target, patterns, cb) {
|
|
23086
23086
|
if (this.signal?.aborted)
|
|
@@ -23274,9 +23274,9 @@ var require_walker = __commonJS({
|
|
|
23274
23274
|
}
|
|
23275
23275
|
});
|
|
23276
23276
|
|
|
23277
|
-
// ../../../node_modules/glob/dist/commonjs/glob.js
|
|
23277
|
+
// ../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js
|
|
23278
23278
|
var require_glob = __commonJS({
|
|
23279
|
-
"../../../node_modules/glob/dist/commonjs/glob.js"(exports2) {
|
|
23279
|
+
"../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js"(exports2) {
|
|
23280
23280
|
"use strict";
|
|
23281
23281
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
23282
23282
|
exports2.Glob = void 0;
|
|
@@ -23368,13 +23368,13 @@ var require_glob = __commonJS({
|
|
|
23368
23368
|
}
|
|
23369
23369
|
this.windowsPathsNoEscape = !!opts.windowsPathsNoEscape || opts.allowWindowsEscape === false;
|
|
23370
23370
|
if (this.windowsPathsNoEscape) {
|
|
23371
|
-
pattern = pattern.map((
|
|
23371
|
+
pattern = pattern.map((p) => p.replace(/\\/g, "/"));
|
|
23372
23372
|
}
|
|
23373
23373
|
if (this.matchBase) {
|
|
23374
23374
|
if (opts.noglobstar) {
|
|
23375
23375
|
throw new TypeError("base matching requires globstar");
|
|
23376
23376
|
}
|
|
23377
|
-
pattern = pattern.map((
|
|
23377
|
+
pattern = pattern.map((p) => p.includes("/") ? p : `./**/${p}`);
|
|
23378
23378
|
}
|
|
23379
23379
|
this.pattern = pattern;
|
|
23380
23380
|
this.platform = opts.platform || defaultPlatform;
|
|
@@ -23409,7 +23409,7 @@ var require_glob = __commonJS({
|
|
|
23409
23409
|
windowsPathsNoEscape: this.windowsPathsNoEscape,
|
|
23410
23410
|
debug: !!this.opts.debug
|
|
23411
23411
|
};
|
|
23412
|
-
const mms = this.pattern.map((
|
|
23412
|
+
const mms = this.pattern.map((p) => new minimatch_1.Minimatch(p, mmo));
|
|
23413
23413
|
const [matchSet, globParts] = mms.reduce((set2, m) => {
|
|
23414
23414
|
set2[0].push(...m.set);
|
|
23415
23415
|
set2[1].push(...m.globParts);
|
|
@@ -23487,9 +23487,9 @@ var require_glob = __commonJS({
|
|
|
23487
23487
|
}
|
|
23488
23488
|
});
|
|
23489
23489
|
|
|
23490
|
-
// ../../../node_modules/glob/dist/commonjs/has-magic.js
|
|
23490
|
+
// ../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js
|
|
23491
23491
|
var require_has_magic = __commonJS({
|
|
23492
|
-
"../../../node_modules/glob/dist/commonjs/has-magic.js"(exports2) {
|
|
23492
|
+
"../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js"(exports2) {
|
|
23493
23493
|
"use strict";
|
|
23494
23494
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
23495
23495
|
exports2.hasMagic = void 0;
|
|
@@ -23498,8 +23498,8 @@ var require_has_magic = __commonJS({
|
|
|
23498
23498
|
if (!Array.isArray(pattern)) {
|
|
23499
23499
|
pattern = [pattern];
|
|
23500
23500
|
}
|
|
23501
|
-
for (const
|
|
23502
|
-
if (new minimatch_1.Minimatch(
|
|
23501
|
+
for (const p of pattern) {
|
|
23502
|
+
if (new minimatch_1.Minimatch(p, options).hasMagic())
|
|
23503
23503
|
return true;
|
|
23504
23504
|
}
|
|
23505
23505
|
return false;
|
|
@@ -23508,9 +23508,9 @@ var require_has_magic = __commonJS({
|
|
|
23508
23508
|
}
|
|
23509
23509
|
});
|
|
23510
23510
|
|
|
23511
|
-
// ../../../node_modules/glob/dist/commonjs/index.js
|
|
23511
|
+
// ../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/index.js
|
|
23512
23512
|
var require_commonjs5 = __commonJS({
|
|
23513
|
-
"../../../node_modules/glob/dist/commonjs/index.js"(exports2) {
|
|
23513
|
+
"../../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/index.js"(exports2) {
|
|
23514
23514
|
"use strict";
|
|
23515
23515
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
23516
23516
|
exports2.glob = exports2.sync = exports2.iterate = exports2.iterateSync = exports2.stream = exports2.streamSync = exports2.Ignore = exports2.hasMagic = exports2.Glob = exports2.unescape = exports2.escape = void 0;
|
|
@@ -23602,14 +23602,14 @@ var require_file = __commonJS({
|
|
|
23602
23602
|
var glob = require_commonjs5();
|
|
23603
23603
|
var file = module2.exports = {};
|
|
23604
23604
|
var pathSeparatorRe = /[\/\\]/g;
|
|
23605
|
-
var processPatterns = function(patterns,
|
|
23605
|
+
var processPatterns = function(patterns, fn) {
|
|
23606
23606
|
var result = [];
|
|
23607
23607
|
flatten(patterns).forEach(function(pattern) {
|
|
23608
23608
|
var exclusion = pattern.indexOf("!") === 0;
|
|
23609
23609
|
if (exclusion) {
|
|
23610
23610
|
pattern = pattern.slice(1);
|
|
23611
23611
|
}
|
|
23612
|
-
var matches =
|
|
23612
|
+
var matches = fn(pattern);
|
|
23613
23613
|
if (exclusion) {
|
|
23614
23614
|
result = difference(result, matches);
|
|
23615
23615
|
} else {
|
|
@@ -23722,14 +23722,14 @@ var require_file = __commonJS({
|
|
|
23722
23722
|
if ("src" in result) {
|
|
23723
23723
|
Object.defineProperty(result, "src", {
|
|
23724
23724
|
enumerable: true,
|
|
23725
|
-
get: function
|
|
23725
|
+
get: function fn() {
|
|
23726
23726
|
var src;
|
|
23727
|
-
if (!("result" in
|
|
23727
|
+
if (!("result" in fn)) {
|
|
23728
23728
|
src = obj.src;
|
|
23729
23729
|
src = Array.isArray(src) ? flatten(src) : [src];
|
|
23730
|
-
|
|
23730
|
+
fn.result = file.expand(expandOptions, src);
|
|
23731
23731
|
}
|
|
23732
|
-
return
|
|
23732
|
+
return fn.result;
|
|
23733
23733
|
}
|
|
23734
23734
|
});
|
|
23735
23735
|
}
|
|
@@ -24474,23 +24474,23 @@ var require_util3 = __commonJS({
|
|
|
24474
24474
|
util.fromDosTime = function(buf) {
|
|
24475
24475
|
return util.dosToDate(buf.readUInt32LE(0));
|
|
24476
24476
|
};
|
|
24477
|
-
util.getEightBytes = function(
|
|
24477
|
+
util.getEightBytes = function(v) {
|
|
24478
24478
|
var buf = Buffer.alloc(8);
|
|
24479
|
-
buf.writeUInt32LE(
|
|
24480
|
-
buf.writeUInt32LE(
|
|
24479
|
+
buf.writeUInt32LE(v % 4294967296, 0);
|
|
24480
|
+
buf.writeUInt32LE(v / 4294967296 | 0, 4);
|
|
24481
24481
|
return buf;
|
|
24482
24482
|
};
|
|
24483
|
-
util.getShortBytes = function(
|
|
24483
|
+
util.getShortBytes = function(v) {
|
|
24484
24484
|
var buf = Buffer.alloc(2);
|
|
24485
|
-
buf.writeUInt16LE((
|
|
24485
|
+
buf.writeUInt16LE((v & 65535) >>> 0, 0);
|
|
24486
24486
|
return buf;
|
|
24487
24487
|
};
|
|
24488
24488
|
util.getShortBytesValue = function(buf, offset) {
|
|
24489
24489
|
return buf.readUInt16LE(offset);
|
|
24490
24490
|
};
|
|
24491
|
-
util.getLongBytes = function(
|
|
24491
|
+
util.getLongBytes = function(v) {
|
|
24492
24492
|
var buf = Buffer.alloc(4);
|
|
24493
|
-
buf.writeUInt32LE((
|
|
24493
|
+
buf.writeUInt32LE((v & 4294967295) >>> 0, 0);
|
|
24494
24494
|
return buf;
|
|
24495
24495
|
};
|
|
24496
24496
|
util.getLongBytesValue = function(buf, offset) {
|
|
@@ -25032,12 +25032,12 @@ var require_crc32 = __commonJS({
|
|
|
25032
25032
|
return typeof Int32Array !== "undefined" ? new Int32Array(table) : table;
|
|
25033
25033
|
}
|
|
25034
25034
|
var T0 = signed_crc_table();
|
|
25035
|
-
function slice_by_16_tables(
|
|
25036
|
-
var c = 0,
|
|
25037
|
-
for (n = 0; n != 256; ++n) table[n] =
|
|
25035
|
+
function slice_by_16_tables(T10) {
|
|
25036
|
+
var c = 0, v = 0, n = 0, table = typeof Int32Array !== "undefined" ? new Int32Array(4096) : new Array(4096);
|
|
25037
|
+
for (n = 0; n != 256; ++n) table[n] = T10[n];
|
|
25038
25038
|
for (n = 0; n != 256; ++n) {
|
|
25039
|
-
|
|
25040
|
-
for (c = 256 + n; c < 4096; c += 256)
|
|
25039
|
+
v = T10[n];
|
|
25040
|
+
for (c = 256 + n; c < 4096; c += 256) v = table[c] = v >>> 8 ^ T10[v & 255];
|
|
25041
25041
|
}
|
|
25042
25042
|
var out = [];
|
|
25043
25043
|
for (n = 1; n != 16; ++n) out[n - 1] = typeof Int32Array !== "undefined" ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256);
|
|
@@ -25046,42 +25046,42 @@ var require_crc32 = __commonJS({
|
|
|
25046
25046
|
var TT = slice_by_16_tables(T0);
|
|
25047
25047
|
var T1 = TT[0], T2 = TT[1], T3 = TT[2], T4 = TT[3], T5 = TT[4];
|
|
25048
25048
|
var T6 = TT[5], T7 = TT[6], T8 = TT[7], T9 = TT[8], Ta = TT[9];
|
|
25049
|
-
var Tb = TT[10], Tc = TT[11], Td = TT[12],
|
|
25049
|
+
var Tb = TT[10], Tc = TT[11], Td = TT[12], Te2 = TT[13], Tf = TT[14];
|
|
25050
25050
|
function crc32_bstr(bstr, seed) {
|
|
25051
|
-
var
|
|
25052
|
-
for (var i = 0,
|
|
25053
|
-
return ~
|
|
25051
|
+
var C = seed ^ -1;
|
|
25052
|
+
for (var i = 0, L = bstr.length; i < L; ) C = C >>> 8 ^ T0[(C ^ bstr.charCodeAt(i++)) & 255];
|
|
25053
|
+
return ~C;
|
|
25054
25054
|
}
|
|
25055
25055
|
function crc32_buf(B, seed) {
|
|
25056
|
-
var
|
|
25057
|
-
for (; i <
|
|
25058
|
-
|
|
25059
|
-
while (i <
|
|
25060
|
-
return ~
|
|
25056
|
+
var C = seed ^ -1, L = B.length - 15, i = 0;
|
|
25057
|
+
for (; i < L; ) C = Tf[B[i++] ^ C & 255] ^ Te2[B[i++] ^ C >> 8 & 255] ^ Td[B[i++] ^ C >> 16 & 255] ^ Tc[B[i++] ^ C >>> 24] ^ Tb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^ T7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^ T3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]];
|
|
25058
|
+
L += 15;
|
|
25059
|
+
while (i < L) C = C >>> 8 ^ T0[(C ^ B[i++]) & 255];
|
|
25060
|
+
return ~C;
|
|
25061
25061
|
}
|
|
25062
25062
|
function crc32_str(str2, seed) {
|
|
25063
|
-
var
|
|
25064
|
-
for (var i = 0,
|
|
25063
|
+
var C = seed ^ -1;
|
|
25064
|
+
for (var i = 0, L = str2.length, c = 0, d = 0; i < L; ) {
|
|
25065
25065
|
c = str2.charCodeAt(i++);
|
|
25066
25066
|
if (c < 128) {
|
|
25067
|
-
|
|
25067
|
+
C = C >>> 8 ^ T0[(C ^ c) & 255];
|
|
25068
25068
|
} else if (c < 2048) {
|
|
25069
|
-
|
|
25070
|
-
|
|
25069
|
+
C = C >>> 8 ^ T0[(C ^ (192 | c >> 6 & 31)) & 255];
|
|
25070
|
+
C = C >>> 8 ^ T0[(C ^ (128 | c & 63)) & 255];
|
|
25071
25071
|
} else if (c >= 55296 && c < 57344) {
|
|
25072
25072
|
c = (c & 1023) + 64;
|
|
25073
25073
|
d = str2.charCodeAt(i++) & 1023;
|
|
25074
|
-
|
|
25075
|
-
|
|
25076
|
-
|
|
25077
|
-
|
|
25074
|
+
C = C >>> 8 ^ T0[(C ^ (240 | c >> 8 & 7)) & 255];
|
|
25075
|
+
C = C >>> 8 ^ T0[(C ^ (128 | c >> 2 & 63)) & 255];
|
|
25076
|
+
C = C >>> 8 ^ T0[(C ^ (128 | d >> 6 & 15 | (c & 3) << 4)) & 255];
|
|
25077
|
+
C = C >>> 8 ^ T0[(C ^ (128 | d & 63)) & 255];
|
|
25078
25078
|
} else {
|
|
25079
|
-
|
|
25080
|
-
|
|
25081
|
-
|
|
25079
|
+
C = C >>> 8 ^ T0[(C ^ (224 | c >> 12 & 15)) & 255];
|
|
25080
|
+
C = C >>> 8 ^ T0[(C ^ (128 | c >> 6 & 63)) & 255];
|
|
25081
|
+
C = C >>> 8 ^ T0[(C ^ (128 | c & 63)) & 255];
|
|
25082
25082
|
}
|
|
25083
25083
|
}
|
|
25084
|
-
return ~
|
|
25084
|
+
return ~C;
|
|
25085
25085
|
}
|
|
25086
25086
|
CRC322.table = T0;
|
|
25087
25087
|
CRC322.bstr = crc32_bstr;
|
|
@@ -26114,7 +26114,7 @@ var require_streamx = __commonJS({
|
|
|
26114
26114
|
var PREMATURE_CLOSE = new Error("Premature close");
|
|
26115
26115
|
var FIFO = require_fast_fifo();
|
|
26116
26116
|
var TextDecoder2 = require_text_decoder();
|
|
26117
|
-
var qmt = typeof queueMicrotask === "undefined" ? (
|
|
26117
|
+
var qmt = typeof queueMicrotask === "undefined" ? (fn) => global.process.nextTick(fn) : queueMicrotask;
|
|
26118
26118
|
var MAX = (1 << 29) - 1;
|
|
26119
26119
|
var OPENING = 1;
|
|
26120
26120
|
var PREDESTROYING = 2;
|
|
@@ -27083,9 +27083,9 @@ var require_streamx = __commonJS({
|
|
|
27083
27083
|
}
|
|
27084
27084
|
});
|
|
27085
27085
|
|
|
27086
|
-
// ../../../node_modules/
|
|
27086
|
+
// ../../../node_modules/tar-stream/headers.js
|
|
27087
27087
|
var require_headers = __commonJS({
|
|
27088
|
-
"../../../node_modules/
|
|
27088
|
+
"../../../node_modules/tar-stream/headers.js"(exports2) {
|
|
27089
27089
|
var b4a = require_b4a();
|
|
27090
27090
|
var ZEROS = "0000000000000000000";
|
|
27091
27091
|
var SEVENS = "7777777777777777777";
|
|
@@ -27344,9 +27344,9 @@ var require_headers = __commonJS({
|
|
|
27344
27344
|
}
|
|
27345
27345
|
});
|
|
27346
27346
|
|
|
27347
|
-
// ../../../node_modules/
|
|
27347
|
+
// ../../../node_modules/tar-stream/extract.js
|
|
27348
27348
|
var require_extract = __commonJS({
|
|
27349
|
-
"../../../node_modules/
|
|
27349
|
+
"../../../node_modules/tar-stream/extract.js"(exports2, module2) {
|
|
27350
27350
|
var { Writable, Readable: Readable2, getStreamError } = require_streamx();
|
|
27351
27351
|
var FIFO = require_fast_fifo();
|
|
27352
27352
|
var b4a = require_b4a();
|
|
@@ -27678,9 +27678,9 @@ var require_extract = __commonJS({
|
|
|
27678
27678
|
}
|
|
27679
27679
|
});
|
|
27680
27680
|
|
|
27681
|
-
// ../../../node_modules/
|
|
27681
|
+
// ../../../node_modules/tar-stream/constants.js
|
|
27682
27682
|
var require_constants2 = __commonJS({
|
|
27683
|
-
"../../../node_modules/
|
|
27683
|
+
"../../../node_modules/tar-stream/constants.js"(exports2, module2) {
|
|
27684
27684
|
var constants = {
|
|
27685
27685
|
// just for envs without fs
|
|
27686
27686
|
S_IFMT: 61440,
|
|
@@ -27698,9 +27698,9 @@ var require_constants2 = __commonJS({
|
|
|
27698
27698
|
}
|
|
27699
27699
|
});
|
|
27700
27700
|
|
|
27701
|
-
// ../../../node_modules/
|
|
27701
|
+
// ../../../node_modules/tar-stream/pack.js
|
|
27702
27702
|
var require_pack = __commonJS({
|
|
27703
|
-
"../../../node_modules/
|
|
27703
|
+
"../../../node_modules/tar-stream/pack.js"(exports2, module2) {
|
|
27704
27704
|
var { Readable: Readable2, Writable, getStreamError } = require_streamx();
|
|
27705
27705
|
var b4a = require_b4a();
|
|
27706
27706
|
var constants = require_constants2();
|
|
@@ -27932,9 +27932,9 @@ var require_pack = __commonJS({
|
|
|
27932
27932
|
}
|
|
27933
27933
|
});
|
|
27934
27934
|
|
|
27935
|
-
// ../../../node_modules/
|
|
27935
|
+
// ../../../node_modules/tar-stream/index.js
|
|
27936
27936
|
var require_tar_stream = __commonJS({
|
|
27937
|
-
"../../../node_modules/
|
|
27937
|
+
"../../../node_modules/tar-stream/index.js"(exports2) {
|
|
27938
27938
|
exports2.extract = require_extract();
|
|
27939
27939
|
exports2.pack = require_pack();
|
|
27940
27940
|
}
|
|
@@ -28022,8 +28022,8 @@ var require_tar = __commonJS({
|
|
|
28022
28022
|
var require_dist = __commonJS({
|
|
28023
28023
|
"../../../node_modules/buffer-crc32/dist/index.cjs"(exports2, module2) {
|
|
28024
28024
|
"use strict";
|
|
28025
|
-
function getDefaultExportFromCjs2(
|
|
28026
|
-
return
|
|
28025
|
+
function getDefaultExportFromCjs2(x) {
|
|
28026
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
28027
28027
|
}
|
|
28028
28028
|
var CRC_TABLE = new Int32Array([
|
|
28029
28029
|
0,
|
|
@@ -28639,7 +28639,7 @@ async function discoverHubs(opts = {}) {
|
|
|
28639
28639
|
const host = opts.host ?? "127.0.0.1";
|
|
28640
28640
|
const concurrency = Math.max(1, opts.concurrency ?? DEFAULT_CONCURRENCY);
|
|
28641
28641
|
const ports = [];
|
|
28642
|
-
for (let
|
|
28642
|
+
for (let p = range.start; p <= range.end; p++) ports.push(p);
|
|
28643
28643
|
for (const extra of opts.extraPorts ?? []) {
|
|
28644
28644
|
if (extra >= 1 && extra <= 65535 && (extra < range.start || extra > range.end)) {
|
|
28645
28645
|
ports.push(extra);
|
|
@@ -28678,18 +28678,18 @@ function ownerFilePath(dataRoot) {
|
|
|
28678
28678
|
}
|
|
28679
28679
|
function parseOwnerFile(value) {
|
|
28680
28680
|
if (typeof value !== "object" || value === null) return null;
|
|
28681
|
-
const
|
|
28682
|
-
if (typeof
|
|
28683
|
-
if (typeof
|
|
28684
|
-
if (typeof
|
|
28685
|
-
if (typeof
|
|
28686
|
-
if (
|
|
28681
|
+
const v = value;
|
|
28682
|
+
if (typeof v.userId !== "string" || v.userId.length === 0) return null;
|
|
28683
|
+
if (typeof v.email !== "string" || v.email.length === 0) return null;
|
|
28684
|
+
if (typeof v.password !== "string" || v.password.length === 0) return null;
|
|
28685
|
+
if (typeof v.createdAt !== "number") return null;
|
|
28686
|
+
if (v.token !== void 0 && (typeof v.token !== "string" || v.token.length === 0)) return null;
|
|
28687
28687
|
return {
|
|
28688
|
-
userId:
|
|
28689
|
-
email:
|
|
28690
|
-
password:
|
|
28691
|
-
createdAt:
|
|
28692
|
-
...typeof
|
|
28688
|
+
userId: v.userId,
|
|
28689
|
+
email: v.email,
|
|
28690
|
+
password: v.password,
|
|
28691
|
+
createdAt: v.createdAt,
|
|
28692
|
+
...typeof v.token === "string" ? { token: v.token } : {}
|
|
28693
28693
|
};
|
|
28694
28694
|
}
|
|
28695
28695
|
async function readBootstrapOwner(dataRoot) {
|
|
@@ -28774,7 +28774,7 @@ function legacyHubTargetPaths() {
|
|
|
28774
28774
|
import_path2.default.join(getStorageDir(), "cli-hub-target.json"),
|
|
28775
28775
|
import_path2.default.join(home, ".slayzone", "cli-hub-target.json")
|
|
28776
28776
|
];
|
|
28777
|
-
return candidates.filter((
|
|
28777
|
+
return candidates.filter((p, i) => candidates.indexOf(p) === i && import_fs.default.existsSync(p));
|
|
28778
28778
|
}
|
|
28779
28779
|
|
|
28780
28780
|
// src/hub-config.ts
|
|
@@ -29351,8 +29351,8 @@ async function notifyApp() {
|
|
|
29351
29351
|
async function createAction(title, opts) {
|
|
29352
29352
|
const projectRef = resolveProjectArg(opts.project);
|
|
29353
29353
|
if (opts.priority) {
|
|
29354
|
-
const
|
|
29355
|
-
if (isNaN(
|
|
29354
|
+
const p = parseInt(opts.priority, 10);
|
|
29355
|
+
if (isNaN(p) || p < 1 || p > 5) {
|
|
29356
29356
|
console.error("Priority must be 1-5.");
|
|
29357
29357
|
process.exit(1);
|
|
29358
29358
|
}
|
|
@@ -29440,20 +29440,20 @@ var import_fs4 = require("fs");
|
|
|
29440
29440
|
var import_child_process2 = require("child_process");
|
|
29441
29441
|
var import_fs3 = require("fs");
|
|
29442
29442
|
var import_path4 = __toESM(require("path"), 1);
|
|
29443
|
-
function canonical(
|
|
29443
|
+
function canonical(p) {
|
|
29444
29444
|
try {
|
|
29445
|
-
return (0, import_fs3.realpathSync)(
|
|
29445
|
+
return (0, import_fs3.realpathSync)(p);
|
|
29446
29446
|
} catch {
|
|
29447
|
-
return import_path4.default.resolve(
|
|
29447
|
+
return import_path4.default.resolve(p);
|
|
29448
29448
|
}
|
|
29449
29449
|
}
|
|
29450
29450
|
function git(args, cwd) {
|
|
29451
29451
|
const r = (0, import_child_process2.spawnSync)("git", args, { cwd, encoding: "utf8" });
|
|
29452
29452
|
return { stdout: (r.stdout ?? "").trim(), status: r.status ?? 1 };
|
|
29453
29453
|
}
|
|
29454
|
-
function isGitRepo(
|
|
29455
|
-
if (!(0, import_fs3.existsSync)(
|
|
29456
|
-
return git(["rev-parse", "--git-dir"],
|
|
29454
|
+
function isGitRepo(p) {
|
|
29455
|
+
if (!(0, import_fs3.existsSync)(p)) return false;
|
|
29456
|
+
return git(["rev-parse", "--git-dir"], p).status === 0;
|
|
29457
29457
|
}
|
|
29458
29458
|
function getCurrentBranch(repoPath) {
|
|
29459
29459
|
const r = git(["branch", "--show-current"], repoPath);
|
|
@@ -29484,8 +29484,8 @@ function listProjectRepoCandidates(projectPath) {
|
|
|
29484
29484
|
function findSourceRepo(projectPath, worktreePath) {
|
|
29485
29485
|
const target = canonical(worktreePath);
|
|
29486
29486
|
for (const repo of listProjectRepoCandidates(projectPath)) {
|
|
29487
|
-
for (const
|
|
29488
|
-
if (canonical(
|
|
29487
|
+
for (const wt2 of listWorktrees(repo)) {
|
|
29488
|
+
if (canonical(wt2.path) === target) return repo;
|
|
29489
29489
|
}
|
|
29490
29490
|
}
|
|
29491
29491
|
return null;
|
|
@@ -29505,8 +29505,8 @@ async function updateAction(idPrefix, opts) {
|
|
|
29505
29505
|
process.exit(1);
|
|
29506
29506
|
}
|
|
29507
29507
|
if (opts.priority) {
|
|
29508
|
-
const
|
|
29509
|
-
if (isNaN(
|
|
29508
|
+
const p = parseInt(opts.priority, 10);
|
|
29509
|
+
if (isNaN(p) || p < 1 || p > 5) {
|
|
29510
29510
|
console.error("Priority must be 1-5.");
|
|
29511
29511
|
process.exit(1);
|
|
29512
29512
|
}
|
|
@@ -30469,7 +30469,7 @@ Available types for ${mode}: ${available.join(", ")}`
|
|
|
30469
30469
|
}
|
|
30470
30470
|
});
|
|
30471
30471
|
const versions = new Command("versions").description("Manage artifact version history");
|
|
30472
|
-
versions.command("list <artifactId>").description("List version history for an artifact (newest first)").option("--limit <n>", "Max rows", (
|
|
30472
|
+
versions.command("list <artifactId>").description("List version history for an artifact (newest first)").option("--limit <n>", "Max rows", (v) => parseInt(v, 10), 50).option("--offset <n>", "Skip N rows", (v) => parseInt(v, 10), 0).option("--json", "Output as JSON").action(async (artifactId, opts) => {
|
|
30473
30473
|
const { data: rows } = await apiGet(
|
|
30474
30474
|
`/api/artifacts/${encodeURIComponent(artifactId)}/versions?limit=${opts.limit}&offset=${opts.offset}`
|
|
30475
30475
|
);
|
|
@@ -30483,12 +30483,12 @@ Available types for ${mode}: ${available.join(", ")}`
|
|
|
30483
30483
|
}
|
|
30484
30484
|
console.log(`VER HASH SIZE NAME AUTHOR CREATED`);
|
|
30485
30485
|
console.log(`--- --------- ----- ---------------- ---------------- ----------------`);
|
|
30486
|
-
for (const
|
|
30487
|
-
const hash =
|
|
30488
|
-
const name = (
|
|
30489
|
-
const author = (
|
|
30486
|
+
for (const v of rows) {
|
|
30487
|
+
const hash = v.content_hash.slice(0, 8);
|
|
30488
|
+
const name = (v.name ?? "").padEnd(16).slice(0, 16);
|
|
30489
|
+
const author = (v.author_id ?? v.author_type ?? "").padEnd(16).slice(0, 16);
|
|
30490
30490
|
console.log(
|
|
30491
|
-
`v${String(
|
|
30491
|
+
`v${String(v.version_num).padEnd(3)} ${hash} ${String(v.size).padStart(5)} ${name} ${author} ${v.created_at}`
|
|
30492
30492
|
);
|
|
30493
30493
|
}
|
|
30494
30494
|
});
|
|
@@ -30535,56 +30535,56 @@ Available types for ${mode}: ${available.join(", ")}`
|
|
|
30535
30535
|
versions.command("set-current <artifactId> <version>").description(
|
|
30536
30536
|
"Set the current (HEAD) version. Next UI save branches from here if the target is locked."
|
|
30537
30537
|
).option("--json", "Output as JSON").action(async (artifactId, version, opts) => {
|
|
30538
|
-
const { data:
|
|
30538
|
+
const { data: v } = await apiPost(
|
|
30539
30539
|
`/api/artifacts/${encodeURIComponent(artifactId)}/versions/current`,
|
|
30540
30540
|
{ ref: version }
|
|
30541
30541
|
);
|
|
30542
30542
|
if (opts.json) {
|
|
30543
|
-
console.log(JSON.stringify(
|
|
30543
|
+
console.log(JSON.stringify(v, null, 2));
|
|
30544
30544
|
} else {
|
|
30545
30545
|
console.log(
|
|
30546
|
-
`Current: v${
|
|
30546
|
+
`Current: v${v.version_num}${v.name ? ` (${v.name})` : ""} ${v.content_hash.slice(0, 8)}`
|
|
30547
30547
|
);
|
|
30548
30548
|
}
|
|
30549
30549
|
});
|
|
30550
30550
|
versions.command("current <artifactId>").description("Print the current (HEAD) version").option("--json", "Output as JSON").action(async (artifactId, opts) => {
|
|
30551
|
-
const { data:
|
|
30551
|
+
const { data: v } = await apiGet(
|
|
30552
30552
|
`/api/artifacts/${encodeURIComponent(artifactId)}/versions/current`
|
|
30553
30553
|
);
|
|
30554
30554
|
if (opts.json) {
|
|
30555
|
-
console.log(JSON.stringify(
|
|
30555
|
+
console.log(JSON.stringify(v, null, 2));
|
|
30556
30556
|
} else {
|
|
30557
30557
|
console.log(
|
|
30558
|
-
`v${
|
|
30558
|
+
`v${v.version_num}${v.name ? ` (${v.name})` : ""} ${v.content_hash.slice(0, 8)}`
|
|
30559
30559
|
);
|
|
30560
30560
|
}
|
|
30561
30561
|
});
|
|
30562
30562
|
versions.command("create <artifactId>").description("Create a version from the current working copy (honors unchanged content)").option("--name <name>", "Optional name for the version").option("--json", "Output as JSON").action(async (artifactId, opts) => {
|
|
30563
|
-
const { data:
|
|
30563
|
+
const { data: v } = await apiPost(
|
|
30564
30564
|
`/api/artifacts/${encodeURIComponent(artifactId)}/versions`,
|
|
30565
30565
|
{ name: opts.name ?? null, ...authorBody() }
|
|
30566
30566
|
);
|
|
30567
30567
|
if (opts.json) {
|
|
30568
|
-
console.log(JSON.stringify(
|
|
30568
|
+
console.log(JSON.stringify(v, null, 2));
|
|
30569
30569
|
} else {
|
|
30570
|
-
console.log(`Created: v${
|
|
30570
|
+
console.log(`Created: v${v.version_num}${v.name ? ` (${v.name})` : ""}`);
|
|
30571
30571
|
}
|
|
30572
30572
|
});
|
|
30573
30573
|
versions.command("rename <artifactId> <version> [newName]").description("Set, change, or clear (omit newName) the name of a version").option("--clear", "Clear the name").option("--json", "Output as JSON").action(
|
|
30574
30574
|
async (artifactId, versionRef, newName, opts) => {
|
|
30575
30575
|
const target = opts.clear ? null : newName ?? null;
|
|
30576
|
-
const { data:
|
|
30576
|
+
const { data: v } = await apiPatch(
|
|
30577
30577
|
`/api/artifacts/${encodeURIComponent(artifactId)}/versions`,
|
|
30578
30578
|
{ ref: versionRef, name: target }
|
|
30579
30579
|
);
|
|
30580
30580
|
if (opts.json) {
|
|
30581
|
-
console.log(JSON.stringify(
|
|
30581
|
+
console.log(JSON.stringify(v, null, 2));
|
|
30582
30582
|
} else {
|
|
30583
|
-
console.log(`Renamed v${
|
|
30583
|
+
console.log(`Renamed v${v.version_num}: ${target ?? "(no name)"}`);
|
|
30584
30584
|
}
|
|
30585
30585
|
}
|
|
30586
30586
|
);
|
|
30587
|
-
versions.command("prune <artifactId>").description("Remove old versions. Named and current versions protected by default.").option("--keep-last <n>", "Keep the N most recent versions", (
|
|
30587
|
+
versions.command("prune <artifactId>").description("Remove old versions. Named and current versions protected by default.").option("--keep-last <n>", "Keep the N most recent versions", (v) => parseInt(v, 10), 0).option("--no-keep-named", "Also delete named versions").option("--no-keep-current", "Allow deleting the current (HEAD) version").option("--dry-run", "Show what would be deleted without modifying").option("--json", "Output as JSON").action(
|
|
30588
30588
|
async (artifactId, opts) => {
|
|
30589
30589
|
const { data: report } = await apiPost(
|
|
30590
30590
|
`/api/artifacts/${encodeURIComponent(artifactId)}/versions/prune`,
|
|
@@ -30775,14 +30775,14 @@ function prepareProjectCreate(input) {
|
|
|
30775
30775
|
|
|
30776
30776
|
// src/commands/projects.ts
|
|
30777
30777
|
var DEFAULT_PROJECT_COLOR = "#3b82f6";
|
|
30778
|
-
function narrowProject(
|
|
30778
|
+
function narrowProject(p) {
|
|
30779
30779
|
return {
|
|
30780
|
-
id:
|
|
30781
|
-
name:
|
|
30782
|
-
color:
|
|
30783
|
-
path:
|
|
30784
|
-
created_at:
|
|
30785
|
-
updated_at:
|
|
30780
|
+
id: p.id,
|
|
30781
|
+
name: p.name,
|
|
30782
|
+
color: p.color,
|
|
30783
|
+
path: p.path ?? null,
|
|
30784
|
+
created_at: p.created_at,
|
|
30785
|
+
updated_at: p.updated_at
|
|
30786
30786
|
};
|
|
30787
30787
|
}
|
|
30788
30788
|
function normalizeProjectPath(input) {
|
|
@@ -30830,11 +30830,11 @@ function projectsCommand() {
|
|
|
30830
30830
|
const nameW = 24;
|
|
30831
30831
|
console.log(`${"ID".padEnd(idW)} ${"NAME".padEnd(nameW)} TASKS PATH`);
|
|
30832
30832
|
console.log(`${"-".repeat(idW)} ${"-".repeat(nameW)} ----- ${"-".repeat(30)}`);
|
|
30833
|
-
for (const
|
|
30834
|
-
const id = String(
|
|
30835
|
-
const name = String(
|
|
30836
|
-
const tasks = String(
|
|
30837
|
-
console.log(`${id} ${name} ${tasks} ${
|
|
30833
|
+
for (const p of projects) {
|
|
30834
|
+
const id = String(p.id).slice(0, 8).padEnd(idW);
|
|
30835
|
+
const name = String(p.name).slice(0, nameW).padEnd(nameW);
|
|
30836
|
+
const tasks = String(p.task_count).padStart(5);
|
|
30837
|
+
console.log(`${id} ${name} ${tasks} ${p.path}`);
|
|
30838
30838
|
}
|
|
30839
30839
|
});
|
|
30840
30840
|
cmd.command("create <name>").description("Create a new project").option(
|
|
@@ -30918,23 +30918,23 @@ function processesCommand() {
|
|
|
30918
30918
|
console.log(
|
|
30919
30919
|
`${"-".repeat(idW)} ${"-".repeat(statusW)} ${"-".repeat(labelW)} ${"-".repeat(30)}`
|
|
30920
30920
|
);
|
|
30921
|
-
for (const
|
|
30922
|
-
const id =
|
|
30923
|
-
const status =
|
|
30924
|
-
const label =
|
|
30925
|
-
console.log(`${id} ${status} ${label} ${
|
|
30921
|
+
for (const p of procs) {
|
|
30922
|
+
const id = p.id.slice(0, 8).padEnd(idW);
|
|
30923
|
+
const status = p.status.padEnd(statusW);
|
|
30924
|
+
const label = p.label.slice(0, labelW).padEnd(labelW);
|
|
30925
|
+
console.log(`${id} ${status} ${label} ${p.command}`);
|
|
30926
30926
|
}
|
|
30927
30927
|
});
|
|
30928
30928
|
cmd.command("logs <id>").description("Print log output for a process (id prefix supported)").option("-n, --lines <n>", "Last N lines", "50").action(async (idPrefix, opts) => {
|
|
30929
30929
|
const procs = await apiGet("/api/processes");
|
|
30930
|
-
const matches = procs.filter((
|
|
30930
|
+
const matches = procs.filter((p) => p.id.startsWith(idPrefix));
|
|
30931
30931
|
if (matches.length === 0) {
|
|
30932
30932
|
console.error(`Process not found: ${idPrefix}`);
|
|
30933
30933
|
process.exit(1);
|
|
30934
30934
|
}
|
|
30935
30935
|
if (matches.length > 1) {
|
|
30936
30936
|
console.error(
|
|
30937
|
-
`Ambiguous id prefix "${idPrefix}". Matches: ${matches.map((
|
|
30937
|
+
`Ambiguous id prefix "${idPrefix}". Matches: ${matches.map((p) => p.id.slice(0, 8)).join(", ")}`
|
|
30938
30938
|
);
|
|
30939
30939
|
process.exit(1);
|
|
30940
30940
|
}
|
|
@@ -30952,14 +30952,14 @@ function processesCommand() {
|
|
|
30952
30952
|
});
|
|
30953
30953
|
cmd.command("kill <id>").description("Kill a process (id prefix supported)").action(async (idPrefix) => {
|
|
30954
30954
|
const procs = await apiGet("/api/processes");
|
|
30955
|
-
const matches = procs.filter((
|
|
30955
|
+
const matches = procs.filter((p) => p.id.startsWith(idPrefix));
|
|
30956
30956
|
if (matches.length === 0) {
|
|
30957
30957
|
console.error(`Process not found: ${idPrefix}`);
|
|
30958
30958
|
process.exit(1);
|
|
30959
30959
|
}
|
|
30960
30960
|
if (matches.length > 1) {
|
|
30961
30961
|
console.error(
|
|
30962
|
-
`Ambiguous id prefix "${idPrefix}". Matches: ${matches.map((
|
|
30962
|
+
`Ambiguous id prefix "${idPrefix}". Matches: ${matches.map((p) => p.id.slice(0, 8)).join(", ")}`
|
|
30963
30963
|
);
|
|
30964
30964
|
process.exit(1);
|
|
30965
30965
|
}
|
|
@@ -30969,14 +30969,14 @@ function processesCommand() {
|
|
|
30969
30969
|
});
|
|
30970
30970
|
cmd.command("follow <id>").description("Stream logs for a process in real time (id prefix supported)").action(async (idPrefix) => {
|
|
30971
30971
|
const procs = await apiGet("/api/processes");
|
|
30972
|
-
const matches = procs.filter((
|
|
30972
|
+
const matches = procs.filter((p) => p.id.startsWith(idPrefix));
|
|
30973
30973
|
if (matches.length === 0) {
|
|
30974
30974
|
console.error(`Process not found: ${idPrefix}`);
|
|
30975
30975
|
process.exit(1);
|
|
30976
30976
|
}
|
|
30977
30977
|
if (matches.length > 1) {
|
|
30978
30978
|
console.error(
|
|
30979
|
-
`Ambiguous id prefix "${idPrefix}". Matches: ${matches.map((
|
|
30979
|
+
`Ambiguous id prefix "${idPrefix}". Matches: ${matches.map((p) => p.id.slice(0, 8)).join(", ")}`
|
|
30980
30980
|
);
|
|
30981
30981
|
process.exit(1);
|
|
30982
30982
|
}
|
|
@@ -31339,8 +31339,8 @@ var opencodeMcpSpec = {
|
|
|
31339
31339
|
const raw = parsed?.mcp;
|
|
31340
31340
|
if (!raw) return {};
|
|
31341
31341
|
const out = {};
|
|
31342
|
-
for (const [k,
|
|
31343
|
-
out[k] = { command:
|
|
31342
|
+
for (const [k, v] of Object.entries(raw)) {
|
|
31343
|
+
out[k] = { command: v.command, args: v.args ?? [], env: v.env };
|
|
31344
31344
|
}
|
|
31345
31345
|
return out;
|
|
31346
31346
|
} catch {
|
|
@@ -31356,8 +31356,8 @@ var opencodeMcpSpec = {
|
|
|
31356
31356
|
}
|
|
31357
31357
|
}
|
|
31358
31358
|
const mcp = {};
|
|
31359
|
-
for (const [k,
|
|
31360
|
-
mcp[k] = { type: "local", command:
|
|
31359
|
+
for (const [k, v] of Object.entries(servers)) {
|
|
31360
|
+
mcp[k] = { type: "local", command: v.command, args: v.args, env: v.env };
|
|
31361
31361
|
}
|
|
31362
31362
|
doc.mcp = mcp;
|
|
31363
31363
|
return JSON.stringify(doc, null, 2) + "\n";
|
|
@@ -31379,8 +31379,8 @@ var COMPUTER_MCP_SPECS = {
|
|
|
31379
31379
|
};
|
|
31380
31380
|
|
|
31381
31381
|
// ../../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
31382
|
-
function getDefaultExportFromCjs(
|
|
31383
|
-
return
|
|
31382
|
+
function getDefaultExportFromCjs(x) {
|
|
31383
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
31384
31384
|
}
|
|
31385
31385
|
var jsYaml = {};
|
|
31386
31386
|
var loader = {};
|
|
@@ -34445,17 +34445,17 @@ var {
|
|
|
34445
34445
|
} = yaml;
|
|
34446
34446
|
|
|
34447
34447
|
// ../../../node_modules/@dagrejs/dagre/dist/dagre.esm.js
|
|
34448
|
-
var
|
|
34449
|
-
var
|
|
34450
|
-
for (var t in n)
|
|
34448
|
+
var Te = Object.defineProperty;
|
|
34449
|
+
var Sn = (e, n) => {
|
|
34450
|
+
for (var t in n) Te(e, t, { get: n[t], enumerable: true });
|
|
34451
34451
|
};
|
|
34452
|
-
var
|
|
34453
|
-
|
|
34454
|
-
var
|
|
34455
|
-
var
|
|
34456
|
-
for (var t in n)
|
|
34452
|
+
var ie = {};
|
|
34453
|
+
Sn(ie, { Graph: () => T, alg: () => H });
|
|
34454
|
+
var Mn = Object.defineProperty;
|
|
34455
|
+
var Se = (e, n) => {
|
|
34456
|
+
for (var t in n) Mn(e, t, { get: n[t], enumerable: true });
|
|
34457
34457
|
};
|
|
34458
|
-
var
|
|
34458
|
+
var Q = class {
|
|
34459
34459
|
constructor(e) {
|
|
34460
34460
|
this._isDirected = true, this._isMultigraph = false, this._isCompound = false, this._nodes = {}, this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}, this._nodeCount = 0, this._edgeCount = 0, this._defaultNodeLabelFn = () => {
|
|
34461
34461
|
}, this._defaultEdgeLabelFn = () => {
|
|
@@ -34551,14 +34551,15 @@ var p = class {
|
|
|
34551
34551
|
neighbors(e) {
|
|
34552
34552
|
let n = this.predecessors(e);
|
|
34553
34553
|
if (n) {
|
|
34554
|
-
let t = new Set(n);
|
|
34555
|
-
for (let
|
|
34554
|
+
let t = new Set(n), r = this.successors(e);
|
|
34555
|
+
if (r) for (let o of r) t.add(o);
|
|
34556
34556
|
return Array.from(t.values());
|
|
34557
34557
|
}
|
|
34558
34558
|
}
|
|
34559
34559
|
isLeaf(e) {
|
|
34560
|
-
|
|
34561
|
-
|
|
34560
|
+
var n;
|
|
34561
|
+
let t;
|
|
34562
|
+
return this.isDirected() ? t = this.successors(e) : t = this.neighbors(e), ((n = t == null ? void 0 : t.length) != null ? n : 0) === 0;
|
|
34562
34563
|
}
|
|
34563
34564
|
filterNodes(e) {
|
|
34564
34565
|
let n = new this.constructor({ directed: this._isDirected, multigraph: this._isMultigraph, compound: this._isCompound });
|
|
@@ -34569,7 +34570,7 @@ var p = class {
|
|
|
34569
34570
|
});
|
|
34570
34571
|
let t = {}, r = (o) => {
|
|
34571
34572
|
let i = this.parent(o);
|
|
34572
|
-
return !i || n.hasNode(i) ? (t[o] = i
|
|
34573
|
+
return !i || n.hasNode(i) ? (t[o] = i, i) : i in t ? t[i] : r(i);
|
|
34573
34574
|
};
|
|
34574
34575
|
return this._isCompound && n.nodes().forEach((o) => n.setParent(o, r(o))), n;
|
|
34575
34576
|
}
|
|
@@ -34586,31 +34587,31 @@ var p = class {
|
|
|
34586
34587
|
return e.reduce((t, r) => (n !== void 0 ? this.setEdge(t, r, n) : this.setEdge(t, r), r)), this;
|
|
34587
34588
|
}
|
|
34588
34589
|
setEdge(e, n, t, r) {
|
|
34589
|
-
let o, i, s, a,
|
|
34590
|
-
typeof e == "object" && e !== null && "v" in e ? (o = e.v, i = e.w, s = e.name, arguments.length === 2 && (a = n,
|
|
34591
|
-
let
|
|
34592
|
-
if (
|
|
34590
|
+
let o, i, s, a, l = false;
|
|
34591
|
+
typeof e == "object" && e !== null && "v" in e ? (o = e.v, i = e.w, s = e.name, arguments.length === 2 && (a = n, l = true)) : (o = e, i = n, s = r, arguments.length > 2 && (a = t, l = true)), o = "" + o, i = "" + i, s !== void 0 && (s = "" + s);
|
|
34592
|
+
let u = z(this._isDirected, o, i, s);
|
|
34593
|
+
if (u in this._edgeLabels) return l && (this._edgeLabels[u] = a), this;
|
|
34593
34594
|
if (s !== void 0 && !this._isMultigraph) throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
34594
|
-
this.setNode(o), this.setNode(i), this._edgeLabels[
|
|
34595
|
-
let
|
|
34596
|
-
return o =
|
|
34595
|
+
this.setNode(o), this.setNode(i), this._edgeLabels[u] = l ? a : this._defaultEdgeLabelFn(o, i, s);
|
|
34596
|
+
let d = Pn(this._isDirected, o, i, s);
|
|
34597
|
+
return o = d.v, i = d.w, Object.freeze(d), this._edgeObjs[u] = d, Re(this._preds[i], o), Re(this._sucs[o], i), this._in[i][u] = d, this._out[o][u] = d, this._edgeCount++, this;
|
|
34597
34598
|
}
|
|
34598
34599
|
edge(e, n, t) {
|
|
34599
|
-
let r = arguments.length === 1 ?
|
|
34600
|
+
let r = arguments.length === 1 ? oe(this._isDirected, e) : z(this._isDirected, e, n, t);
|
|
34600
34601
|
return this._edgeLabels[r];
|
|
34601
34602
|
}
|
|
34602
34603
|
edgeAsObj(e, n, t) {
|
|
34603
34604
|
let r = arguments.length === 1 ? this.edge(e) : this.edge(e, n, t);
|
|
34604
|
-
return typeof r != "object" ? { label: r } : r;
|
|
34605
|
+
return typeof r != "object" || r === null ? { label: r } : r;
|
|
34605
34606
|
}
|
|
34606
34607
|
hasEdge(e, n, t) {
|
|
34607
|
-
return (arguments.length === 1 ?
|
|
34608
|
+
return (arguments.length === 1 ? oe(this._isDirected, e) : z(this._isDirected, e, n, t)) in this._edgeLabels;
|
|
34608
34609
|
}
|
|
34609
34610
|
removeEdge(e, n, t) {
|
|
34610
|
-
let r = arguments.length === 1 ?
|
|
34611
|
+
let r = arguments.length === 1 ? oe(this._isDirected, e) : z(this._isDirected, e, n, t), o = this._edgeObjs[r];
|
|
34611
34612
|
if (o) {
|
|
34612
34613
|
let i = o.v, s = o.w;
|
|
34613
|
-
delete this._edgeLabels[r], delete this._edgeObjs[r],
|
|
34614
|
+
delete this._edgeLabels[r], delete this._edgeObjs[r], Ie(this._preds[s], i), Ie(this._sucs[i], s), delete this._in[s][r], delete this._out[i][r], this._edgeCount--;
|
|
34614
34615
|
}
|
|
34615
34616
|
return this;
|
|
34616
34617
|
}
|
|
@@ -34632,13 +34633,13 @@ var p = class {
|
|
|
34632
34633
|
return t ? r.filter((o) => o.v === n && o.w === t || o.v === t && o.w === n) : r;
|
|
34633
34634
|
}
|
|
34634
34635
|
};
|
|
34635
|
-
function
|
|
34636
|
+
function Re(e, n) {
|
|
34636
34637
|
e[n] ? e[n]++ : e[n] = 1;
|
|
34637
34638
|
}
|
|
34638
|
-
function
|
|
34639
|
+
function Ie(e, n) {
|
|
34639
34640
|
e[n] !== void 0 && !--e[n] && delete e[n];
|
|
34640
34641
|
}
|
|
34641
|
-
function
|
|
34642
|
+
function z(e, n, t, r) {
|
|
34642
34643
|
let o = "" + n, i = "" + t;
|
|
34643
34644
|
if (!e && o > i) {
|
|
34644
34645
|
let s = o;
|
|
@@ -34646,7 +34647,7 @@ function C(e, n, t, r) {
|
|
|
34646
34647
|
}
|
|
34647
34648
|
return o + "" + i + "" + (r === void 0 ? "\0" : r);
|
|
34648
34649
|
}
|
|
34649
|
-
function
|
|
34650
|
+
function Pn(e, n, t, r) {
|
|
34650
34651
|
let o = "" + n, i = "" + t;
|
|
34651
34652
|
if (!e && o > i) {
|
|
34652
34653
|
let a = o;
|
|
@@ -34655,75 +34656,78 @@ function gn(e, n, t, r) {
|
|
|
34655
34656
|
let s = { v: o, w: i };
|
|
34656
34657
|
return r && (s.name = r), s;
|
|
34657
34658
|
}
|
|
34658
|
-
function
|
|
34659
|
-
return
|
|
34659
|
+
function oe(e, n) {
|
|
34660
|
+
return z(e, n.v, n.w, n.name);
|
|
34660
34661
|
}
|
|
34661
|
-
var
|
|
34662
|
-
|
|
34663
|
-
|
|
34664
|
-
|
|
34665
|
-
let n = { options: { directed: e.isDirected(), multigraph: e.isMultigraph(), compound: e.isCompound() }, nodes: En(e), edges: Ln(e) }, t = e.graph();
|
|
34662
|
+
var Fn = {};
|
|
34663
|
+
Se(Fn, { read: () => Yn, write: () => An });
|
|
34664
|
+
function An(e) {
|
|
34665
|
+
let n = { options: { directed: e.isDirected(), multigraph: e.isMultigraph(), compound: e.isCompound() }, nodes: Vn(e), edges: Dn(e) }, t = e.graph();
|
|
34666
34666
|
return t !== void 0 && (n.value = structuredClone(t)), n;
|
|
34667
34667
|
}
|
|
34668
|
-
function
|
|
34668
|
+
function Vn(e) {
|
|
34669
34669
|
return e.nodes().map((n) => {
|
|
34670
34670
|
let t = e.node(n), r = e.parent(n), o = { v: n };
|
|
34671
34671
|
return t !== void 0 && (o.value = t), r !== void 0 && (o.parent = r), o;
|
|
34672
34672
|
});
|
|
34673
34673
|
}
|
|
34674
|
-
function
|
|
34674
|
+
function Dn(e) {
|
|
34675
34675
|
return e.edges().map((n) => {
|
|
34676
34676
|
let t = e.edge(n), r = { v: n.v, w: n.w };
|
|
34677
34677
|
return n.name !== void 0 && (r.name = n.name), t !== void 0 && (r.value = t), r;
|
|
34678
34678
|
});
|
|
34679
34679
|
}
|
|
34680
|
-
function
|
|
34681
|
-
let n = new
|
|
34680
|
+
function Yn(e) {
|
|
34681
|
+
let n = new Q(e.options);
|
|
34682
34682
|
return e.value !== void 0 && n.setGraph(e.value), e.nodes.forEach((t) => {
|
|
34683
34683
|
n.setNode(t.v, t.value), t.parent && n.setParent(t.v, t.parent);
|
|
34684
34684
|
}), e.edges.forEach((t) => {
|
|
34685
34685
|
n.setEdge({ v: t.v, w: t.w, name: t.name }, t.value);
|
|
34686
34686
|
}), n;
|
|
34687
34687
|
}
|
|
34688
|
-
var
|
|
34689
|
-
|
|
34690
|
-
var
|
|
34691
|
-
function
|
|
34692
|
-
return
|
|
34693
|
-
|
|
34688
|
+
var H = {};
|
|
34689
|
+
Se(H, { CycleException: () => K, bellmanFord: () => Me, components: () => Xn, dijkstra: () => J, dijkstraAll: () => qn, findCycles: () => $n, floydWarshall: () => Jn, isAcyclic: () => Qn, postorder: () => et, preorder: () => nt, prim: () => tt, shortestPaths: () => rt, tarjan: () => Fe, topsort: () => Ae });
|
|
34690
|
+
var Wn = () => 1;
|
|
34691
|
+
function Me(e, n, t, r) {
|
|
34692
|
+
return Bn(e, String(n), t || Wn, r || function(o) {
|
|
34693
|
+
var i;
|
|
34694
|
+
return (i = e.outEdges(o)) != null ? i : [];
|
|
34694
34695
|
});
|
|
34695
34696
|
}
|
|
34696
|
-
function
|
|
34697
|
-
let o = {}, i, s = 0, a = e.nodes(),
|
|
34698
|
-
let h =
|
|
34699
|
-
|
|
34700
|
-
|
|
34697
|
+
function Bn(e, n, t, r) {
|
|
34698
|
+
let o = {}, i, s = 0, a = e.nodes(), l = function(c) {
|
|
34699
|
+
let f = o[c.v], h = o[c.w];
|
|
34700
|
+
if (!f || !h) return;
|
|
34701
|
+
let p = t(c);
|
|
34702
|
+
f.distance + p < h.distance && (o[c.w] = { distance: f.distance + p, predecessor: c.v }, i = true);
|
|
34703
|
+
}, u = function() {
|
|
34701
34704
|
a.forEach(function(c) {
|
|
34702
|
-
r(c).forEach(function(
|
|
34703
|
-
let
|
|
34704
|
-
|
|
34705
|
+
r(c).forEach(function(f) {
|
|
34706
|
+
let h = f.v === c ? f.v : f.w, p = h === f.v ? f.w : f.v;
|
|
34707
|
+
l({ v: h, w: p });
|
|
34705
34708
|
});
|
|
34706
34709
|
});
|
|
34707
34710
|
};
|
|
34708
34711
|
a.forEach(function(c) {
|
|
34709
|
-
let
|
|
34710
|
-
o[c] = { distance:
|
|
34712
|
+
let f = c === n ? 0 : Number.POSITIVE_INFINITY;
|
|
34713
|
+
o[c] = { distance: f, predecessor: "" };
|
|
34711
34714
|
});
|
|
34712
|
-
let
|
|
34713
|
-
for (let c = 1; c <
|
|
34714
|
-
if (s ===
|
|
34715
|
+
let d = a.length;
|
|
34716
|
+
for (let c = 1; c < d && (i = false, s++, u(), !!i); c++) ;
|
|
34717
|
+
if (s === d - 1 && (i = false, u(), i)) throw new Error("The graph contains a negative weight cycle");
|
|
34715
34718
|
return o;
|
|
34716
34719
|
}
|
|
34717
|
-
function
|
|
34720
|
+
function Xn(e) {
|
|
34718
34721
|
let n = {}, t = [], r;
|
|
34719
34722
|
function o(i) {
|
|
34720
|
-
|
|
34723
|
+
var s, a;
|
|
34724
|
+
i in n || (n[i] = true, r.push(i), (s = e.successors(i)) == null || s.forEach(o), (a = e.predecessors(i)) == null || a.forEach(o));
|
|
34721
34725
|
}
|
|
34722
34726
|
return e.nodes().forEach(function(i) {
|
|
34723
34727
|
r = [], o(i), r.length && t.push(r);
|
|
34724
34728
|
}), t;
|
|
34725
34729
|
}
|
|
34726
|
-
var
|
|
34730
|
+
var Pe = class {
|
|
34727
34731
|
constructor() {
|
|
34728
34732
|
this._arr = [], this._keyIndices = {};
|
|
34729
34733
|
}
|
|
@@ -34753,6 +34757,7 @@ var Ne = class {
|
|
|
34753
34757
|
return false;
|
|
34754
34758
|
}
|
|
34755
34759
|
removeMin() {
|
|
34760
|
+
if (this.size() === 0) throw new Error("Queue underflow");
|
|
34756
34761
|
this._swap(0, this._arr.length - 1);
|
|
34757
34762
|
let e = this._arr.pop();
|
|
34758
34763
|
return delete this._keyIndices[e.key], this._heapify(0), e.key;
|
|
@@ -34777,180 +34782,214 @@ var Ne = class {
|
|
|
34777
34782
|
t[e] = i, t[n] = o, r[i.key] = e, r[o.key] = n;
|
|
34778
34783
|
}
|
|
34779
34784
|
};
|
|
34780
|
-
var
|
|
34781
|
-
function
|
|
34785
|
+
var zn = () => 1;
|
|
34786
|
+
function J(e, n, t, r) {
|
|
34782
34787
|
let o = function(i) {
|
|
34783
|
-
|
|
34788
|
+
var s;
|
|
34789
|
+
return (s = e.outEdges(i)) != null ? s : [];
|
|
34784
34790
|
};
|
|
34785
|
-
return
|
|
34786
|
-
}
|
|
34787
|
-
function
|
|
34788
|
-
let o = {}, i = new
|
|
34789
|
-
let
|
|
34790
|
-
if (
|
|
34791
|
-
f
|
|
34791
|
+
return Hn(e, String(n), t || zn, r || o);
|
|
34792
|
+
}
|
|
34793
|
+
function Hn(e, n, t, r) {
|
|
34794
|
+
let o = {}, i = new Pe(), s, a, l = function(u) {
|
|
34795
|
+
let d = u.v !== s ? u.v : u.w, c = o[d];
|
|
34796
|
+
if (!c) return;
|
|
34797
|
+
let f = t(u), h = a.distance + f;
|
|
34798
|
+
if (f < 0) throw new Error("dijkstra does not allow negative edge weights. Bad edge: " + u + " Weight: " + f);
|
|
34799
|
+
h < c.distance && (c.distance = h, c.predecessor = s, i.decrease(d, h));
|
|
34792
34800
|
};
|
|
34793
|
-
for (e.nodes().forEach(function(
|
|
34794
|
-
let
|
|
34795
|
-
o[
|
|
34796
|
-
}); i.size() > 0
|
|
34801
|
+
for (e.nodes().forEach(function(u) {
|
|
34802
|
+
let d = u === n ? 0 : Number.POSITIVE_INFINITY;
|
|
34803
|
+
o[u] = { distance: d, predecessor: "" }, i.add(u, d);
|
|
34804
|
+
}); i.size() > 0; ) {
|
|
34805
|
+
s = i.removeMin();
|
|
34806
|
+
let u = o[s];
|
|
34807
|
+
if (!u || u.distance === Number.POSITIVE_INFINITY) break;
|
|
34808
|
+
a = u, r(s).forEach(l);
|
|
34809
|
+
}
|
|
34797
34810
|
return o;
|
|
34798
34811
|
}
|
|
34799
|
-
function
|
|
34812
|
+
function qn(e, n, t) {
|
|
34800
34813
|
return e.nodes().reduce(function(r, o) {
|
|
34801
|
-
return r[o] =
|
|
34814
|
+
return r[o] = J(e, o, n, t), r;
|
|
34802
34815
|
}, {});
|
|
34803
34816
|
}
|
|
34804
|
-
function
|
|
34817
|
+
function Fe(e) {
|
|
34805
34818
|
let n = 0, t = [], r = {}, o = [];
|
|
34806
34819
|
function i(s) {
|
|
34807
|
-
|
|
34808
|
-
|
|
34809
|
-
|
|
34810
|
-
|
|
34811
|
-
|
|
34812
|
-
|
|
34813
|
-
|
|
34814
|
-
|
|
34815
|
-
|
|
34820
|
+
var a;
|
|
34821
|
+
let l = r[s] = { onStack: true, lowlink: n, index: n++ };
|
|
34822
|
+
if (t.push(s), (a = e.successors(s)) == null || a.forEach(function(u) {
|
|
34823
|
+
if (u in r) {
|
|
34824
|
+
let d = r[u];
|
|
34825
|
+
d != null && d.onStack && (l.lowlink = Math.min(l.lowlink, d.index));
|
|
34826
|
+
} else {
|
|
34827
|
+
i(u);
|
|
34828
|
+
let d = r[u];
|
|
34829
|
+
d && (l.lowlink = Math.min(l.lowlink, d.lowlink));
|
|
34830
|
+
}
|
|
34831
|
+
}), l.lowlink === l.index) {
|
|
34832
|
+
let u = [], d;
|
|
34833
|
+
do {
|
|
34834
|
+
d = t.pop();
|
|
34835
|
+
let c = r[d];
|
|
34836
|
+
c && (c.onStack = false), u.push(d);
|
|
34837
|
+
} while (s !== d);
|
|
34838
|
+
o.push(u);
|
|
34816
34839
|
}
|
|
34817
34840
|
}
|
|
34818
34841
|
return e.nodes().forEach(function(s) {
|
|
34819
34842
|
s in r || i(s);
|
|
34820
34843
|
}), o;
|
|
34821
34844
|
}
|
|
34822
|
-
function
|
|
34823
|
-
return
|
|
34824
|
-
|
|
34845
|
+
function $n(e) {
|
|
34846
|
+
return Fe(e).filter(function(n) {
|
|
34847
|
+
var t;
|
|
34848
|
+
let r = n[0];
|
|
34849
|
+
return r ? n.length > 1 || n.length === 1 && ((t = e.outEdges(r, r)) != null ? t : []).length > 0 : false;
|
|
34825
34850
|
});
|
|
34826
34851
|
}
|
|
34827
|
-
var
|
|
34828
|
-
function
|
|
34829
|
-
return
|
|
34830
|
-
|
|
34852
|
+
var Un = () => 1;
|
|
34853
|
+
function Jn(e, n, t) {
|
|
34854
|
+
return Kn(e, n || Un, t || function(r) {
|
|
34855
|
+
var o;
|
|
34856
|
+
return (o = e.outEdges(r)) != null ? o : [];
|
|
34831
34857
|
});
|
|
34832
34858
|
}
|
|
34833
|
-
function
|
|
34859
|
+
function Kn(e, n, t) {
|
|
34834
34860
|
let r = {}, o = e.nodes();
|
|
34835
34861
|
return o.forEach(function(i) {
|
|
34836
|
-
|
|
34837
|
-
|
|
34838
|
-
|
|
34839
|
-
|
|
34840
|
-
|
|
34862
|
+
let s = {};
|
|
34863
|
+
r[i] = s, s[i] = { distance: 0, predecessor: "" }, o.forEach(function(a) {
|
|
34864
|
+
i !== a && (s[a] = { distance: Number.POSITIVE_INFINITY, predecessor: "" });
|
|
34865
|
+
}), t(i).forEach(function(a) {
|
|
34866
|
+
let l = a.v === i ? a.w : a.v, u = n(a);
|
|
34867
|
+
s[l] = { distance: u, predecessor: i };
|
|
34841
34868
|
});
|
|
34842
34869
|
}), o.forEach(function(i) {
|
|
34843
34870
|
let s = r[i];
|
|
34844
|
-
o.forEach(function(a) {
|
|
34845
|
-
let
|
|
34846
|
-
o.forEach(function(
|
|
34847
|
-
let
|
|
34848
|
-
|
|
34871
|
+
s && o.forEach(function(a) {
|
|
34872
|
+
let l = r[a];
|
|
34873
|
+
l && o.forEach(function(u) {
|
|
34874
|
+
let d = l[i], c = s[u], f = l[u];
|
|
34875
|
+
if (d && c && f) {
|
|
34876
|
+
let h = d.distance + c.distance;
|
|
34877
|
+
h < f.distance && (f.distance = h, f.predecessor = c.predecessor);
|
|
34878
|
+
}
|
|
34849
34879
|
});
|
|
34850
34880
|
});
|
|
34851
34881
|
}), r;
|
|
34852
34882
|
}
|
|
34853
|
-
var
|
|
34854
|
-
constructor(
|
|
34855
|
-
super(
|
|
34883
|
+
var K = class extends Error {
|
|
34884
|
+
constructor(e) {
|
|
34885
|
+
super(e), this.name = "CycleException";
|
|
34856
34886
|
}
|
|
34857
34887
|
};
|
|
34858
|
-
function
|
|
34888
|
+
function Ae(e) {
|
|
34859
34889
|
let n = {}, t = {}, r = [];
|
|
34860
34890
|
function o(i) {
|
|
34861
|
-
|
|
34862
|
-
i in
|
|
34891
|
+
var s;
|
|
34892
|
+
if (i in t) throw new K();
|
|
34893
|
+
i in n || (t[i] = true, n[i] = true, (s = e.predecessors(i)) == null || s.forEach(o), delete t[i], r.push(i));
|
|
34863
34894
|
}
|
|
34864
|
-
if (e.sinks().forEach(o), Object.keys(n).length !== e.nodeCount()) throw new
|
|
34895
|
+
if (e.sinks().forEach(o), Object.keys(n).length !== e.nodeCount()) throw new K();
|
|
34865
34896
|
return r;
|
|
34866
34897
|
}
|
|
34867
|
-
function
|
|
34898
|
+
function Qn(e) {
|
|
34868
34899
|
try {
|
|
34869
|
-
|
|
34900
|
+
Ae(e);
|
|
34870
34901
|
} catch (n) {
|
|
34871
|
-
if (n instanceof
|
|
34902
|
+
if (n instanceof K) return false;
|
|
34872
34903
|
throw n;
|
|
34873
34904
|
}
|
|
34874
34905
|
return true;
|
|
34875
34906
|
}
|
|
34876
|
-
function
|
|
34907
|
+
function Zn(e, n, t, r, o) {
|
|
34877
34908
|
Array.isArray(n) || (n = [n]);
|
|
34878
34909
|
let i = ((a) => {
|
|
34879
|
-
var
|
|
34880
|
-
return (
|
|
34910
|
+
var l;
|
|
34911
|
+
return (l = e.isDirected() ? e.successors(a) : e.neighbors(a)) != null ? l : [];
|
|
34881
34912
|
}), s = {};
|
|
34882
34913
|
return n.forEach(function(a) {
|
|
34883
34914
|
if (!e.hasNode(a)) throw new Error("Graph does not have node: " + a);
|
|
34884
|
-
o =
|
|
34915
|
+
o = Ve(e, a, t === "post", s, i, r, o);
|
|
34885
34916
|
}), o;
|
|
34886
34917
|
}
|
|
34887
|
-
function
|
|
34918
|
+
function Ve(e, n, t, r, o, i, s) {
|
|
34888
34919
|
return n in r || (r[n] = true, t || (s = i(s, n)), o(n).forEach(function(a) {
|
|
34889
|
-
s =
|
|
34920
|
+
s = Ve(e, a, t, r, o, i, s);
|
|
34890
34921
|
}), t && (s = i(s, n))), s;
|
|
34891
34922
|
}
|
|
34892
|
-
function
|
|
34893
|
-
return
|
|
34923
|
+
function De(e, n, t) {
|
|
34924
|
+
return Zn(e, n, t, function(r, o) {
|
|
34894
34925
|
return r.push(o), r;
|
|
34895
34926
|
}, []);
|
|
34896
34927
|
}
|
|
34897
|
-
function
|
|
34898
|
-
return
|
|
34928
|
+
function et(e, n) {
|
|
34929
|
+
return De(e, n, "post");
|
|
34899
34930
|
}
|
|
34900
|
-
function
|
|
34901
|
-
return
|
|
34931
|
+
function nt(e, n) {
|
|
34932
|
+
return De(e, n, "pre");
|
|
34902
34933
|
}
|
|
34903
|
-
function
|
|
34904
|
-
|
|
34905
|
-
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
|
|
34909
|
-
|
|
34934
|
+
function tt(e, n) {
|
|
34935
|
+
var t;
|
|
34936
|
+
let r = new Q(), o = {}, i = new Pe(), s;
|
|
34937
|
+
function a(d) {
|
|
34938
|
+
let c = d.v === s ? d.w : d.v, f = i.priority(c);
|
|
34939
|
+
if (f !== void 0) {
|
|
34940
|
+
let h = n(d);
|
|
34941
|
+
h < f && (o[c] = s, i.decrease(c, h));
|
|
34910
34942
|
}
|
|
34911
34943
|
}
|
|
34912
|
-
if (e.nodeCount() === 0) return
|
|
34944
|
+
if (e.nodeCount() === 0) return r;
|
|
34913
34945
|
e.nodes().forEach(function(d) {
|
|
34914
|
-
|
|
34915
|
-
})
|
|
34916
|
-
let
|
|
34917
|
-
|
|
34918
|
-
|
|
34946
|
+
i.add(d, Number.POSITIVE_INFINITY), r.setNode(d);
|
|
34947
|
+
});
|
|
34948
|
+
let l = e.nodes()[0];
|
|
34949
|
+
l !== void 0 && i.decrease(l, 0);
|
|
34950
|
+
let u = false;
|
|
34951
|
+
for (; i.size() > 0; ) {
|
|
34952
|
+
if (s = i.removeMin(), s in o) r.setEdge(s, o[s]);
|
|
34919
34953
|
else {
|
|
34920
|
-
if (
|
|
34921
|
-
|
|
34954
|
+
if (u) throw new Error("Input graph is not connected: " + e);
|
|
34955
|
+
u = true;
|
|
34922
34956
|
}
|
|
34923
|
-
e.nodeEdges(
|
|
34957
|
+
(t = e.nodeEdges(s)) == null || t.forEach(a);
|
|
34924
34958
|
}
|
|
34925
|
-
return
|
|
34959
|
+
return r;
|
|
34926
34960
|
}
|
|
34927
|
-
function
|
|
34928
|
-
return
|
|
34929
|
-
|
|
34930
|
-
return i != null ? i : [];
|
|
34961
|
+
function rt(e, n, t, r) {
|
|
34962
|
+
return ot(e, n, t, r != null ? r : ((o) => {
|
|
34963
|
+
var i;
|
|
34964
|
+
return (i = e.outEdges(o)) != null ? i : [];
|
|
34931
34965
|
}));
|
|
34932
34966
|
}
|
|
34933
|
-
function
|
|
34934
|
-
if (t === void 0) return
|
|
34967
|
+
function ot(e, n, t, r) {
|
|
34968
|
+
if (t === void 0) return J(e, n, t, r);
|
|
34935
34969
|
let o = false, i = e.nodes();
|
|
34936
34970
|
for (let s = 0; s < i.length; s++) {
|
|
34937
|
-
let a =
|
|
34938
|
-
|
|
34939
|
-
|
|
34940
|
-
|
|
34971
|
+
let a = i[s];
|
|
34972
|
+
if (a === void 0) continue;
|
|
34973
|
+
let l = r(a);
|
|
34974
|
+
for (let u = 0; u < l.length; u++) {
|
|
34975
|
+
let d = l[u];
|
|
34976
|
+
if (!d) continue;
|
|
34977
|
+
let c = d.v === a ? d.v : d.w, f = c === d.v ? d.w : d.v;
|
|
34978
|
+
t({ v: c, w: f }) < 0 && (o = true);
|
|
34941
34979
|
}
|
|
34942
|
-
if (o) return
|
|
34980
|
+
if (o) return Me(e, n, t, r);
|
|
34943
34981
|
}
|
|
34944
|
-
return
|
|
34982
|
+
return J(e, n, t, r);
|
|
34945
34983
|
}
|
|
34946
|
-
|
|
34947
|
-
|
|
34984
|
+
var T = Q;
|
|
34985
|
+
function Ye(e) {
|
|
34986
|
+
let n = new T().setGraph(e.graph());
|
|
34948
34987
|
return e.nodes().forEach((t) => n.setNode(t, e.node(t))), e.edges().forEach((t) => {
|
|
34949
34988
|
let r = n.edge(t.v, t.w) || { weight: 0, minlen: 1 }, o = e.edge(t);
|
|
34950
34989
|
n.setEdge(t.v, t.w, { weight: r.weight + o.weight, minlen: Math.max(r.minlen, o.minlen) });
|
|
34951
34990
|
}), n;
|
|
34952
34991
|
}
|
|
34953
|
-
function
|
|
34992
|
+
function it(e, n = Xe) {
|
|
34954
34993
|
let t = [];
|
|
34955
34994
|
for (let r = 0; r < e.length; r += n) {
|
|
34956
34995
|
let o = e.slice(r, r + n);
|
|
@@ -34958,130 +34997,130 @@ function Dn(e, n = Ie) {
|
|
|
34958
34997
|
}
|
|
34959
34998
|
return t;
|
|
34960
34999
|
}
|
|
34961
|
-
var
|
|
34962
|
-
function
|
|
34963
|
-
if (n.length >
|
|
34964
|
-
let t =
|
|
35000
|
+
var Xe = 65535;
|
|
35001
|
+
function R(e, n) {
|
|
35002
|
+
if (n.length > Xe) {
|
|
35003
|
+
let t = it(n);
|
|
34965
35004
|
return e(...t.map((r) => e(...r)));
|
|
34966
35005
|
} else return e(...n);
|
|
34967
35006
|
}
|
|
34968
|
-
function
|
|
35007
|
+
function U(e) {
|
|
34969
35008
|
let n = {};
|
|
34970
35009
|
function t(r) {
|
|
34971
35010
|
let o = e.node(r);
|
|
34972
35011
|
if (Object.hasOwn(n, r)) return o.rank;
|
|
34973
35012
|
n[r] = true;
|
|
34974
|
-
let i = e.outEdges(r), s = i ? i.map((
|
|
35013
|
+
let i = e.outEdges(r), s = i ? i.map((l) => l == null ? Number.POSITIVE_INFINITY : t(l.w) - e.edge(l).minlen) : [], a = R(Math.min, s);
|
|
34975
35014
|
return a === Number.POSITIVE_INFINITY && (a = 0), o.rank = a;
|
|
34976
35015
|
}
|
|
34977
35016
|
e.sources().forEach(t);
|
|
34978
35017
|
}
|
|
34979
|
-
function
|
|
35018
|
+
function V(e, n) {
|
|
34980
35019
|
return e.node(n.w).rank - e.node(n.v).rank - e.edge(n).minlen;
|
|
34981
35020
|
}
|
|
34982
|
-
var
|
|
34983
|
-
function
|
|
34984
|
-
let n = new
|
|
35021
|
+
var ne = mt;
|
|
35022
|
+
function mt(e) {
|
|
35023
|
+
let n = new T({ directed: false }), t = e.nodes();
|
|
34985
35024
|
if (t.length === 0) throw new Error("Graph must have at least one node");
|
|
34986
35025
|
let r = t[0], o = e.nodeCount();
|
|
34987
35026
|
n.setNode(r, {});
|
|
34988
35027
|
let i, s;
|
|
34989
|
-
for (;
|
|
35028
|
+
for (; Et(n, e) < o && (i = Lt(n, e), !!i); ) s = n.hasNode(i.v) ? V(e, i) : -V(e, i), yt(n, e, s);
|
|
34990
35029
|
return n;
|
|
34991
35030
|
}
|
|
34992
|
-
function
|
|
35031
|
+
function Et(e, n) {
|
|
34993
35032
|
function t(r) {
|
|
34994
35033
|
let o = n.nodeEdges(r);
|
|
34995
35034
|
o && o.forEach((i) => {
|
|
34996
35035
|
let s = i.v, a = r === s ? i.w : s;
|
|
34997
|
-
!e.hasNode(a) && !
|
|
35036
|
+
!e.hasNode(a) && !V(n, i) && (e.setNode(a, {}), e.setEdge(r, a, {}), t(a));
|
|
34998
35037
|
});
|
|
34999
35038
|
}
|
|
35000
35039
|
return e.nodes().forEach(t), e.nodeCount();
|
|
35001
35040
|
}
|
|
35002
|
-
function
|
|
35041
|
+
function Lt(e, n) {
|
|
35003
35042
|
return n.edges().reduce((r, o) => {
|
|
35004
35043
|
let i = Number.POSITIVE_INFINITY;
|
|
35005
|
-
return e.hasNode(o.v) !== e.hasNode(o.w) && (i =
|
|
35044
|
+
return e.hasNode(o.v) !== e.hasNode(o.w) && (i = V(n, o)), i < r[0] ? [i, o] : r;
|
|
35006
35045
|
}, [Number.POSITIVE_INFINITY, null])[1];
|
|
35007
35046
|
}
|
|
35008
|
-
function
|
|
35047
|
+
function yt(e, n, t) {
|
|
35009
35048
|
e.nodes().forEach((r) => n.node(r).rank += t);
|
|
35010
35049
|
}
|
|
35011
|
-
var { preorder:
|
|
35012
|
-
|
|
35013
|
-
|
|
35014
|
-
|
|
35015
|
-
|
|
35016
|
-
|
|
35017
|
-
|
|
35018
|
-
function
|
|
35019
|
-
e =
|
|
35020
|
-
let n =
|
|
35021
|
-
|
|
35050
|
+
var { preorder: wt, postorder: Nt } = H;
|
|
35051
|
+
Y.initLowLimValues = pe;
|
|
35052
|
+
Y.initCutValues = ge;
|
|
35053
|
+
Y.calcCutValue = nn;
|
|
35054
|
+
Y.leaveEdge = rn;
|
|
35055
|
+
Y.enterEdge = on;
|
|
35056
|
+
Y.exchangeEdges = sn;
|
|
35057
|
+
function Y(e) {
|
|
35058
|
+
e = Ye(e), U(e);
|
|
35059
|
+
let n = ne(e);
|
|
35060
|
+
pe(n), ge(n, e);
|
|
35022
35061
|
let t, r;
|
|
35023
|
-
for (; t =
|
|
35062
|
+
for (; t = rn(n); ) r = on(n, e, t), sn(n, e, t, r);
|
|
35024
35063
|
}
|
|
35025
|
-
function
|
|
35026
|
-
let t =
|
|
35027
|
-
t = t.slice(0, t.length - 1), t.forEach((r) =>
|
|
35064
|
+
function ge(e, n) {
|
|
35065
|
+
let t = Nt(e, e.nodes());
|
|
35066
|
+
t = t.slice(0, t.length - 1), t.forEach((r) => Gt(e, n, r));
|
|
35028
35067
|
}
|
|
35029
|
-
function
|
|
35068
|
+
function Gt(e, n, t) {
|
|
35030
35069
|
let o = e.node(t).parent, i = e.edge(t, o);
|
|
35031
|
-
i.cutvalue =
|
|
35070
|
+
i.cutvalue = nn(e, n, t);
|
|
35032
35071
|
}
|
|
35033
|
-
function
|
|
35072
|
+
function nn(e, n, t) {
|
|
35034
35073
|
let o = e.node(t).parent, i = true, s = n.edge(t, o), a = 0;
|
|
35035
35074
|
s || (i = false, s = n.edge(o, t)), a = s.weight;
|
|
35036
|
-
let
|
|
35037
|
-
return
|
|
35038
|
-
let
|
|
35075
|
+
let l = n.nodeEdges(t);
|
|
35076
|
+
return l && l.forEach((u) => {
|
|
35077
|
+
let d = u.v === t, c = d ? u.w : u.v;
|
|
35039
35078
|
if (c !== o) {
|
|
35040
|
-
let
|
|
35041
|
-
if (a +=
|
|
35042
|
-
let
|
|
35043
|
-
a +=
|
|
35079
|
+
let f = d === i, h = n.edge(u).weight;
|
|
35080
|
+
if (a += f ? h : -h, kt(e, t, c)) {
|
|
35081
|
+
let E = e.edge(t, c).cutvalue;
|
|
35082
|
+
a += f ? -E : E;
|
|
35044
35083
|
}
|
|
35045
35084
|
}
|
|
35046
35085
|
}), a;
|
|
35047
35086
|
}
|
|
35048
|
-
function
|
|
35049
|
-
arguments.length < 2 && (n = e.nodes()[0]),
|
|
35087
|
+
function pe(e, n) {
|
|
35088
|
+
arguments.length < 2 && (n = e.nodes()[0]), tn(e, {}, 1, n);
|
|
35050
35089
|
}
|
|
35051
|
-
function
|
|
35090
|
+
function tn(e, n, t, r, o) {
|
|
35052
35091
|
let i = t, s = e.node(r);
|
|
35053
35092
|
n[r] = true;
|
|
35054
35093
|
let a = e.neighbors(r);
|
|
35055
|
-
return a && a.forEach((
|
|
35056
|
-
Object.hasOwn(n,
|
|
35094
|
+
return a && a.forEach((l) => {
|
|
35095
|
+
Object.hasOwn(n, l) || (t = tn(e, n, t, l, r));
|
|
35057
35096
|
}), s.low = i, s.lim = t++, o ? s.parent = o : delete s.parent, t;
|
|
35058
35097
|
}
|
|
35059
|
-
function
|
|
35098
|
+
function rn(e) {
|
|
35060
35099
|
return e.edges().find((n) => e.edge(n).cutvalue < 0);
|
|
35061
35100
|
}
|
|
35062
|
-
function
|
|
35101
|
+
function on(e, n, t) {
|
|
35063
35102
|
let r = t.v, o = t.w;
|
|
35064
35103
|
n.hasEdge(r, o) || (r = t.w, o = t.v);
|
|
35065
|
-
let i = e.node(r), s = e.node(o), a = i,
|
|
35066
|
-
return i.lim > s.lim && (a = s,
|
|
35104
|
+
let i = e.node(r), s = e.node(o), a = i, l = false;
|
|
35105
|
+
return i.lim > s.lim && (a = s, l = true), n.edges().filter((d) => l === Ze(e, e.node(d.v), a) && l !== Ze(e, e.node(d.w), a)).reduce((d, c) => V(n, c) < V(n, d) ? c : d);
|
|
35067
35106
|
}
|
|
35068
|
-
function
|
|
35107
|
+
function sn(e, n, t, r) {
|
|
35069
35108
|
let o = t.v, i = t.w;
|
|
35070
|
-
e.removeEdge(o, i), e.setEdge(r.v, r.w, {}),
|
|
35109
|
+
e.removeEdge(o, i), e.setEdge(r.v, r.w, {}), pe(e), ge(e, n), vt(e, n);
|
|
35071
35110
|
}
|
|
35072
|
-
function
|
|
35111
|
+
function vt(e, n) {
|
|
35073
35112
|
let t = e.nodes().find((o) => !e.node(o).parent);
|
|
35074
35113
|
if (!t) return;
|
|
35075
|
-
let r =
|
|
35114
|
+
let r = wt(e, [t]);
|
|
35076
35115
|
r = r.slice(1), r.forEach((o) => {
|
|
35077
|
-
let s = e.node(o).parent, a = n.edge(o, s),
|
|
35078
|
-
a || (a = n.edge(s, o),
|
|
35116
|
+
let s = e.node(o).parent, a = n.edge(o, s), l = false;
|
|
35117
|
+
a || (a = n.edge(s, o), l = true), n.node(o).rank = n.node(s).rank + (l ? a.minlen : -a.minlen);
|
|
35079
35118
|
});
|
|
35080
35119
|
}
|
|
35081
|
-
function
|
|
35120
|
+
function kt(e, n, t) {
|
|
35082
35121
|
return e.hasEdge(n, t);
|
|
35083
35122
|
}
|
|
35084
|
-
function
|
|
35123
|
+
function Ze(e, n, t) {
|
|
35085
35124
|
return t.low <= n.lim && n.lim <= t.lim;
|
|
35086
35125
|
}
|
|
35087
35126
|
|
|
@@ -35102,8 +35141,8 @@ The toolbox is the \`slay\` CLI. When you omit the task-id, most \`slay\` comman
|
|
|
35102
35141
|
`;
|
|
35103
35142
|
function writeInstructionsToDisk(projectPath, providers) {
|
|
35104
35143
|
const filenames = /* @__PURE__ */ new Set();
|
|
35105
|
-
for (const
|
|
35106
|
-
const f = PROVIDER_PATHS[
|
|
35144
|
+
for (const p of providers) {
|
|
35145
|
+
const f = PROVIDER_PATHS[p]?.rootInstructions;
|
|
35107
35146
|
if (f) filenames.add(f);
|
|
35108
35147
|
}
|
|
35109
35148
|
const written = [];
|
|
@@ -35577,8 +35616,8 @@ function templatesCommand() {
|
|
|
35577
35616
|
cmd.command("create <name>").description("Create a task template").option("--project <name|id>", "Project name or ID (defaults to $SLAYZONE_PROJECT_ID)").option("--terminal-mode <mode>", "Default terminal mode").option("--priority <n>", "Default priority 1-5").option("--status <status>", "Default status").option("--default", "Set as project default template").option("--description <text>", "Template description").action(async (name, opts) => {
|
|
35578
35617
|
const project = resolveProjectArg(opts.project);
|
|
35579
35618
|
if (opts.priority) {
|
|
35580
|
-
const
|
|
35581
|
-
if (isNaN(
|
|
35619
|
+
const p = parseInt(opts.priority, 10);
|
|
35620
|
+
if (isNaN(p) || p < 1 || p > 5) {
|
|
35582
35621
|
console.error("Priority must be 1-5.");
|
|
35583
35622
|
process.exit(1);
|
|
35584
35623
|
}
|
|
@@ -35602,8 +35641,8 @@ function templatesCommand() {
|
|
|
35602
35641
|
process.exit(1);
|
|
35603
35642
|
}
|
|
35604
35643
|
if (opts.priority) {
|
|
35605
|
-
const
|
|
35606
|
-
if (isNaN(
|
|
35644
|
+
const p = parseInt(opts.priority, 10);
|
|
35645
|
+
if (isNaN(p) || p < 1 || p > 5) {
|
|
35607
35646
|
console.error("Priority must be 1-5.");
|
|
35608
35647
|
process.exit(1);
|
|
35609
35648
|
}
|
|
@@ -35651,8 +35690,8 @@ var TEMPLATE_VARIABLES = [
|
|
|
35651
35690
|
|
|
35652
35691
|
// src/commands/automations.ts
|
|
35653
35692
|
function templateVarsHelp() {
|
|
35654
|
-
const w = Math.max(...TEMPLATE_VARIABLES.map((
|
|
35655
|
-
const lines = TEMPLATE_VARIABLES.map((
|
|
35693
|
+
const w = Math.max(...TEMPLATE_VARIABLES.map((v) => v.name.length)) + 6;
|
|
35694
|
+
const lines = TEMPLATE_VARIABLES.map((v) => ` {{${v.name}}}`.padEnd(w + 4) + v.desc);
|
|
35656
35695
|
return `
|
|
35657
35696
|
Template variables (use in --action-command):
|
|
35658
35697
|
${lines.join("\n")}
|
|
@@ -35702,11 +35741,11 @@ function automationsCommand() {
|
|
|
35702
35741
|
for (const r of rows) {
|
|
35703
35742
|
const id = r.id.slice(0, 8).padEnd(idW);
|
|
35704
35743
|
const name = r.name.slice(0, nameW).padEnd(nameW);
|
|
35705
|
-
const
|
|
35744
|
+
const on2 = r.enabled ? "yes" : "no ";
|
|
35706
35745
|
const trigger = (r.trigger_config?.type ?? "?").slice(0, trigW).padEnd(trigW);
|
|
35707
35746
|
const runs = String(r.run_count).padStart(4);
|
|
35708
35747
|
const lastRun = r.last_run_at ?? "-";
|
|
35709
|
-
console.log(`${id} ${name} ${
|
|
35748
|
+
console.log(`${id} ${name} ${on2} ${trigger} ${runs} ${lastRun}`);
|
|
35710
35749
|
}
|
|
35711
35750
|
});
|
|
35712
35751
|
cmd.command("view <id>").description("View automation details (id prefix supported)").option("--json", "Output as JSON").action(async (idPrefix, opts) => {
|
|
@@ -35894,7 +35933,7 @@ function panelsCommand() {
|
|
|
35894
35933
|
if (opts.json) {
|
|
35895
35934
|
console.log(
|
|
35896
35935
|
JSON.stringify(
|
|
35897
|
-
webPanels.map(({ enabled: _enabled, ...
|
|
35936
|
+
webPanels.map(({ enabled: _enabled, ...p }) => p),
|
|
35898
35937
|
null,
|
|
35899
35938
|
2
|
|
35900
35939
|
)
|
|
@@ -36070,8 +36109,8 @@ function saveHubConfigFile(cfg, path10 = getHubConfigFilePath()) {
|
|
|
36070
36109
|
function updateHubConfigFile(patch, path10 = getHubConfigFilePath()) {
|
|
36071
36110
|
const current = readJsonObject(path10);
|
|
36072
36111
|
const merged = current ? coerceHubConfig(current) : {};
|
|
36073
|
-
for (const [k,
|
|
36074
|
-
if (
|
|
36112
|
+
for (const [k, v] of Object.entries(patch)) {
|
|
36113
|
+
if (v !== void 0) merged[k] = v;
|
|
36075
36114
|
}
|
|
36076
36115
|
saveHubConfigFile(merged, path10);
|
|
36077
36116
|
return merged;
|
|
@@ -36088,8 +36127,8 @@ function saveComputerConfigFile(cfg, path10 = getComputerConfigFilePath()) {
|
|
|
36088
36127
|
function updateComputerConfigFile(patch, path10 = getComputerConfigFilePath()) {
|
|
36089
36128
|
const current = readJsonObject(path10);
|
|
36090
36129
|
const merged = current ? coerceComputerConfig(current) : {};
|
|
36091
|
-
for (const [k,
|
|
36092
|
-
if (
|
|
36130
|
+
for (const [k, v] of Object.entries(patch)) {
|
|
36131
|
+
if (v !== void 0) merged[k] = v;
|
|
36093
36132
|
}
|
|
36094
36133
|
saveComputerConfigFile(merged, path10);
|
|
36095
36134
|
return merged;
|
|
@@ -36240,8 +36279,8 @@ function renderLaunchdPlist(spec) {
|
|
|
36240
36279
|
assertValidServiceName(spec.kind, spec.name);
|
|
36241
36280
|
const kind = KINDS[spec.kind];
|
|
36242
36281
|
const programArgs = [spec.command, ...spec.args].map((a) => ` <string>${xmlEscape(a)}</string>`).join("\n");
|
|
36243
|
-
const envEntries = unitEnv(spec).map(([k,
|
|
36244
|
-
<string>${xmlEscape(
|
|
36282
|
+
const envEntries = unitEnv(spec).map(([k, v]) => ` <key>${xmlEscape(k)}</key>
|
|
36283
|
+
<string>${xmlEscape(v)}</string>`).join("\n");
|
|
36245
36284
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
36246
36285
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
36247
36286
|
<plist version="1.0">
|
|
@@ -36279,7 +36318,7 @@ function renderSystemdUnit(spec) {
|
|
|
36279
36318
|
assertValidServiceName(spec.kind, spec.name);
|
|
36280
36319
|
const kind = KINDS[spec.kind];
|
|
36281
36320
|
const exec = [spec.command, ...spec.args].join(" ");
|
|
36282
|
-
const envLines = unitEnv(spec).map(([k,
|
|
36321
|
+
const envLines = unitEnv(spec).map(([k, v]) => `Environment=${k}=${v}`).join("\n");
|
|
36283
36322
|
return `[Unit]
|
|
36284
36323
|
Description=${kind.description} (${spec.name})
|
|
36285
36324
|
Documentation=https://github.com/debuglebowski/slayzone
|
|
@@ -36395,7 +36434,7 @@ var import_node_child_process2 = require("node:child_process");
|
|
|
36395
36434
|
var import_node_fs6 = require("node:fs");
|
|
36396
36435
|
var import_node_module = require("node:module");
|
|
36397
36436
|
var import_node_path7 = require("node:path");
|
|
36398
|
-
var CLI_VERSION = true ? "0.36.0-beta.
|
|
36437
|
+
var CLI_VERSION = true ? "0.36.0-beta.20" : "";
|
|
36399
36438
|
function fail(message) {
|
|
36400
36439
|
console.error(message);
|
|
36401
36440
|
process.exit(1);
|
|
@@ -36794,8 +36833,8 @@ function postAuthJson(url, body, timeoutMs = 1e4) {
|
|
|
36794
36833
|
res.on("end", () => {
|
|
36795
36834
|
const headers = new Headers();
|
|
36796
36835
|
for (const [name, value] of Object.entries(res.headers)) {
|
|
36797
|
-
for (const
|
|
36798
|
-
headers.append(name,
|
|
36836
|
+
for (const v of Array.isArray(value) ? value : value === void 0 ? [] : [value]) {
|
|
36837
|
+
headers.append(name, v);
|
|
36799
36838
|
}
|
|
36800
36839
|
}
|
|
36801
36840
|
resolve(new Response(Buffer.concat(chunks), { status: res.statusCode ?? 500, headers }));
|
|
@@ -38572,22 +38611,22 @@ function updateCommand() {
|
|
|
38572
38611
|
"Could not reach the npm registry to check for updates (`npm view @slayzone/cli dist-tags` and `pnpm view` both failed)."
|
|
38573
38612
|
);
|
|
38574
38613
|
}
|
|
38575
|
-
const onPrerelease = found.some((
|
|
38614
|
+
const onPrerelease = found.some((p) => p.installedVersion.includes("-"));
|
|
38576
38615
|
const target = (onPrerelease ? distTags.beta : void 0) ?? distTags.latest ?? distTags.beta;
|
|
38577
38616
|
if (!target) fail("The registry returned no usable dist-tag for @slayzone/cli.");
|
|
38578
|
-
const managerW = Math.max("MANAGER".length, ...found.map((
|
|
38579
|
-
const nameW = Math.max("PACKAGE".length, ...found.map((
|
|
38580
|
-
const versionW = Math.max("INSTALLED".length, ...found.map((
|
|
38617
|
+
const managerW = Math.max("MANAGER".length, ...found.map((p) => p.manager.length));
|
|
38618
|
+
const nameW = Math.max("PACKAGE".length, ...found.map((p) => p.name.length));
|
|
38619
|
+
const versionW = Math.max("INSTALLED".length, ...found.map((p) => p.installedVersion.length));
|
|
38581
38620
|
console.log(
|
|
38582
38621
|
`${"MANAGER".padEnd(managerW)} ${"PACKAGE".padEnd(nameW)} ${"INSTALLED".padEnd(versionW)} STATUS`
|
|
38583
38622
|
);
|
|
38584
|
-
for (const
|
|
38585
|
-
const status =
|
|
38623
|
+
for (const p of found) {
|
|
38624
|
+
const status = p.installedVersion === target ? "up to date" : `-> ${target}`;
|
|
38586
38625
|
console.log(
|
|
38587
|
-
`${
|
|
38626
|
+
`${p.manager.padEnd(managerW)} ${p.name.padEnd(nameW)} ${p.installedVersion.padEnd(versionW)} ${status}`
|
|
38588
38627
|
);
|
|
38589
38628
|
}
|
|
38590
|
-
const outdated = found.filter((
|
|
38629
|
+
const outdated = found.filter((p) => p.installedVersion !== target);
|
|
38591
38630
|
if (outdated.length === 0) {
|
|
38592
38631
|
console.log("\nEverything is up to date.");
|
|
38593
38632
|
return;
|
|
@@ -38597,10 +38636,10 @@ function updateCommand() {
|
|
|
38597
38636
|
return;
|
|
38598
38637
|
}
|
|
38599
38638
|
const byManager = /* @__PURE__ */ new Map();
|
|
38600
|
-
for (const
|
|
38601
|
-
const list = byManager.get(
|
|
38602
|
-
list.push(
|
|
38603
|
-
byManager.set(
|
|
38639
|
+
for (const p of outdated) {
|
|
38640
|
+
const list = byManager.get(p.manager) ?? [];
|
|
38641
|
+
list.push(p.name);
|
|
38642
|
+
byManager.set(p.manager, list);
|
|
38604
38643
|
}
|
|
38605
38644
|
for (const [managerId, names] of byManager) {
|
|
38606
38645
|
const mgr = MANAGERS.find((m) => m.id === managerId);
|
|
@@ -38619,13 +38658,13 @@ function updateCommand() {
|
|
|
38619
38658
|
);
|
|
38620
38659
|
}
|
|
38621
38660
|
}
|
|
38622
|
-
printRestartHints(outdated.map((
|
|
38661
|
+
printRestartHints(outdated.map((p) => p.name));
|
|
38623
38662
|
});
|
|
38624
38663
|
return cmd;
|
|
38625
38664
|
}
|
|
38626
38665
|
|
|
38627
38666
|
// src/index.ts
|
|
38628
|
-
var program2 = new Command().name("slay").description("SlayZone CLI").version("0.36.0-beta.
|
|
38667
|
+
var program2 = new Command().name("slay").description("SlayZone CLI").version("0.36.0-beta.20").option("--dev", "Use development database (slayzone.dev.data.sqlite)").option("--hub <name|port>", "Target a specific hub on this machine (see `slay hub ls`)").showSuggestionAfterError(true).showHelpAfterError(true).hook("preAction", async (thisCommand) => {
|
|
38629
38668
|
const root = thisCommand.parent ?? thisCommand;
|
|
38630
38669
|
const opts = root.opts();
|
|
38631
38670
|
if (opts.dev) process.env.SLAYZONE_DEV = "1";
|