@oclif/plugin-test-esbuild 0.5.12 → 0.5.14
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/README.md +1 -1
- package/dist/{chunk-TEX4WQO3.js → chunk-43V6OANS.js} +1 -1
- package/dist/{chunk-G5FHC4JE.js → chunk-46M2M4UH.js} +1 -1
- package/dist/{chunk-H7AFRSM2.js → chunk-4J6ABNN2.js} +320 -343
- package/dist/{chunk-2A5F44BH.js → chunk-E7LBLRIB.js} +1 -1
- package/dist/{chunk-22UIDTMX.js → chunk-W5HU6WLX.js} +1 -1
- package/dist/commands/esbuild.js +2 -2
- package/dist/commands/hello/index.js +2 -2
- package/dist/commands/hello/world.js +2 -2
- package/dist/hooks/init/init.js +2 -2
- package/dist/index.js +5 -5
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -10,7 +10,21 @@ var require_util = __commonJS({
|
|
|
10
10
|
"use strict";
|
|
11
11
|
init_cjs_shims();
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.pickBy = pickBy;
|
|
14
|
+
exports.compact = compact;
|
|
15
|
+
exports.uniqBy = uniqBy;
|
|
16
|
+
exports.last = last;
|
|
17
|
+
exports.sortBy = sortBy;
|
|
18
|
+
exports.castArray = castArray;
|
|
19
|
+
exports.isProd = isProd;
|
|
20
|
+
exports.maxBy = maxBy;
|
|
21
|
+
exports.sumBy = sumBy;
|
|
22
|
+
exports.capitalize = capitalize;
|
|
23
|
+
exports.isTruthy = isTruthy;
|
|
24
|
+
exports.isNotFalsy = isNotFalsy;
|
|
25
|
+
exports.uniq = uniq;
|
|
26
|
+
exports.mapValues = mapValues;
|
|
27
|
+
exports.mergeNestedObjects = mergeNestedObjects;
|
|
14
28
|
function pickBy(obj, fn) {
|
|
15
29
|
return Object.entries(obj).reduce((o, [k, v]) => {
|
|
16
30
|
if (fn(v))
|
|
@@ -18,24 +32,20 @@ var require_util = __commonJS({
|
|
|
18
32
|
return o;
|
|
19
33
|
}, {});
|
|
20
34
|
}
|
|
21
|
-
exports.pickBy = pickBy;
|
|
22
35
|
function compact(a) {
|
|
23
36
|
return a.filter((a2) => Boolean(a2));
|
|
24
37
|
}
|
|
25
|
-
exports.compact = compact;
|
|
26
38
|
function uniqBy(arr, fn) {
|
|
27
39
|
return arr.filter((a, i) => {
|
|
28
40
|
const aVal = fn(a);
|
|
29
41
|
return !arr.some((b, j) => j > i && fn(b) === aVal);
|
|
30
42
|
});
|
|
31
43
|
}
|
|
32
|
-
exports.uniqBy = uniqBy;
|
|
33
44
|
function last(arr) {
|
|
34
45
|
if (!arr)
|
|
35
46
|
return;
|
|
36
47
|
return arr.at(-1);
|
|
37
48
|
}
|
|
38
|
-
exports.last = last;
|
|
39
49
|
function compare(a, b) {
|
|
40
50
|
a = a === void 0 ? 0 : a;
|
|
41
51
|
b = b === void 0 ? 0 : b;
|
|
@@ -56,17 +66,14 @@ var require_util = __commonJS({
|
|
|
56
66
|
function sortBy(arr, fn) {
|
|
57
67
|
return arr.sort((a, b) => compare(fn(a), fn(b)));
|
|
58
68
|
}
|
|
59
|
-
exports.sortBy = sortBy;
|
|
60
69
|
function castArray(input) {
|
|
61
70
|
if (input === void 0)
|
|
62
71
|
return [];
|
|
63
72
|
return Array.isArray(input) ? input : [input];
|
|
64
73
|
}
|
|
65
|
-
exports.castArray = castArray;
|
|
66
74
|
function isProd() {
|
|
67
75
|
return !["development", "test"].includes(process.env.NODE_ENV ?? "");
|
|
68
76
|
}
|
|
69
|
-
exports.isProd = isProd;
|
|
70
77
|
function maxBy(arr, fn) {
|
|
71
78
|
if (arr.length === 0) {
|
|
72
79
|
return void 0;
|
|
@@ -77,41 +84,33 @@ var require_util = __commonJS({
|
|
|
77
84
|
return curr > max ? i : maxItem;
|
|
78
85
|
});
|
|
79
86
|
}
|
|
80
|
-
exports.maxBy = maxBy;
|
|
81
87
|
function sumBy(arr, fn) {
|
|
82
88
|
return arr.reduce((sum, i) => sum + fn(i), 0);
|
|
83
89
|
}
|
|
84
|
-
exports.sumBy = sumBy;
|
|
85
90
|
function capitalize(s) {
|
|
86
91
|
return s ? s.charAt(0).toUpperCase() + s.slice(1).toLowerCase() : "";
|
|
87
92
|
}
|
|
88
|
-
exports.capitalize = capitalize;
|
|
89
93
|
function isTruthy(input) {
|
|
90
94
|
return ["1", "true", "y", "yes"].includes(input.toLowerCase());
|
|
91
95
|
}
|
|
92
|
-
exports.isTruthy = isTruthy;
|
|
93
96
|
function isNotFalsy(input) {
|
|
94
97
|
return !["0", "false", "n", "no"].includes(input.toLowerCase());
|
|
95
98
|
}
|
|
96
|
-
exports.isNotFalsy = isNotFalsy;
|
|
97
99
|
function uniq(arr) {
|
|
98
100
|
return [...new Set(arr)].sort();
|
|
99
101
|
}
|
|
100
|
-
exports.uniq = uniq;
|
|
101
102
|
function mapValues(obj, fn) {
|
|
102
103
|
return Object.entries(obj).reduce((o, [k, v]) => {
|
|
103
104
|
o[k] = fn(v, k);
|
|
104
105
|
return o;
|
|
105
106
|
}, {});
|
|
106
107
|
}
|
|
107
|
-
exports.mapValues = mapValues;
|
|
108
108
|
function get(obj, path) {
|
|
109
109
|
return path.split(".").reduce((o, p) => o?.[p], obj);
|
|
110
110
|
}
|
|
111
111
|
function mergeNestedObjects(objs, path) {
|
|
112
112
|
return Object.fromEntries(objs.flatMap((o) => Object.entries(get(o, path) ?? {})).reverse());
|
|
113
113
|
}
|
|
114
|
-
exports.mergeNestedObjects = mergeNestedObjects;
|
|
115
114
|
}
|
|
116
115
|
});
|
|
117
116
|
|
|
@@ -121,7 +120,10 @@ var require_fs = __commonJS({
|
|
|
121
120
|
"use strict";
|
|
122
121
|
init_cjs_shims();
|
|
123
122
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
124
|
-
exports.
|
|
123
|
+
exports.fileExists = exports.dirExists = void 0;
|
|
124
|
+
exports.readJson = readJson;
|
|
125
|
+
exports.safeReadJson = safeReadJson;
|
|
126
|
+
exports.existsSync = existsSync;
|
|
125
127
|
var node_fs_1 = __require("node:fs");
|
|
126
128
|
var promises_1 = __require("node:fs/promises");
|
|
127
129
|
var util_1 = require_util();
|
|
@@ -168,18 +170,15 @@ var require_fs = __commonJS({
|
|
|
168
170
|
cache.set(path, contents);
|
|
169
171
|
return JSON.parse(contents);
|
|
170
172
|
}
|
|
171
|
-
exports.readJson = readJson;
|
|
172
173
|
async function safeReadJson(path, useCache = true) {
|
|
173
174
|
try {
|
|
174
175
|
return await readJson(path, useCache);
|
|
175
176
|
} catch {
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
|
-
exports.safeReadJson = safeReadJson;
|
|
179
179
|
function existsSync(path) {
|
|
180
180
|
return (0, node_fs_1.existsSync)(path);
|
|
181
181
|
}
|
|
182
|
-
exports.existsSync = existsSync;
|
|
183
182
|
}
|
|
184
183
|
});
|
|
185
184
|
|
|
@@ -189,7 +188,8 @@ var require_args = __commonJS({
|
|
|
189
188
|
"use strict";
|
|
190
189
|
init_cjs_shims();
|
|
191
190
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
192
|
-
exports.string = exports.url = exports.file = exports.directory = exports.integer = exports.boolean =
|
|
191
|
+
exports.string = exports.url = exports.file = exports.directory = exports.integer = exports.boolean = void 0;
|
|
192
|
+
exports.custom = custom;
|
|
193
193
|
var node_url_1 = __require("node:url");
|
|
194
194
|
var fs_1 = require_fs();
|
|
195
195
|
var util_1 = require_util();
|
|
@@ -202,7 +202,6 @@ var require_args = __commonJS({
|
|
|
202
202
|
type: "option"
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
exports.custom = custom;
|
|
206
205
|
exports.boolean = custom({
|
|
207
206
|
parse: async (b) => Boolean(b) && (0, util_1.isNotFalsy)(b)
|
|
208
207
|
});
|
|
@@ -246,118 +245,6 @@ var require_args = __commonJS({
|
|
|
246
245
|
}
|
|
247
246
|
});
|
|
248
247
|
|
|
249
|
-
// node_modules/ansis/index.js
|
|
250
|
-
var require_ansis = __commonJS({
|
|
251
|
-
"node_modules/ansis/index.js"(exports, module) {
|
|
252
|
-
"use strict";
|
|
253
|
-
init_cjs_shims();
|
|
254
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
255
|
-
var { round: e, floor: t, max: n } = Math;
|
|
256
|
-
var r = (e2, t2, n2) => {
|
|
257
|
-
if ("" === t2) return e2;
|
|
258
|
-
let r2, o2 = t2.length, i2 = 0, s2 = "";
|
|
259
|
-
for (; ~(r2 = e2.indexOf(t2, i2)); ) s2 += e2.slice(i2, r2) + n2, i2 = r2 + o2;
|
|
260
|
-
return i2 ? s2 + e2.slice(i2) : e2;
|
|
261
|
-
};
|
|
262
|
-
var o = (e2) => {
|
|
263
|
-
let [, t2] = /([a-f\d]{3,6})/i.exec(e2) || [], n2 = t2 ? t2.length : 0;
|
|
264
|
-
if (3 === n2) t2 = t2[0] + t2[0] + t2[1] + t2[1] + t2[2] + t2[2];
|
|
265
|
-
else if (6 !== n2) return [0, 0, 0];
|
|
266
|
-
let r2 = parseInt(t2, 16);
|
|
267
|
-
return [r2 >> 16 & 255, r2 >> 8 & 255, 255 & r2];
|
|
268
|
-
};
|
|
269
|
-
var i = (t2, n2, r2) => t2 === n2 && n2 === r2 ? t2 < 8 ? 16 : t2 > 248 ? 231 : e((t2 - 8) / 247 * 24) + 232 : 16 + 36 * e(t2 / 51) + 6 * e(n2 / 51) + e(r2 / 51);
|
|
270
|
-
var s = (r2) => {
|
|
271
|
-
let o2, i2, s2;
|
|
272
|
-
if (r2 < 8) return 30 + r2;
|
|
273
|
-
if (r2 < 16) return r2 - 8 + 90;
|
|
274
|
-
if (r2 >= 232) o2 = i2 = s2 = (10 * (r2 - 232) + 8) / 255;
|
|
275
|
-
else {
|
|
276
|
-
const e2 = (r2 -= 16) % 36;
|
|
277
|
-
o2 = t(r2 / 36) / 5, i2 = t(e2 / 6) / 5, s2 = e2 % 6 / 5;
|
|
278
|
-
}
|
|
279
|
-
const l2 = 2 * n(o2, i2, s2);
|
|
280
|
-
if (0 === l2) return 30;
|
|
281
|
-
let c2 = 30 + (e(s2) << 2 | e(i2) << 1 | e(o2));
|
|
282
|
-
return 2 === l2 ? c2 + 60 : c2;
|
|
283
|
-
};
|
|
284
|
-
var l = (e2, t2, n2) => s(i(e2, t2, n2));
|
|
285
|
-
var c = ((e2) => {
|
|
286
|
-
const t2 = (e3) => !!c2.find((t3) => e3.test(t3)), n2 = globalThis, r2 = n2.Deno, o2 = null != r2, i2 = n2.process || r2 || {}, s2 = i2.stdout, l2 = "win32" === (o2 ? r2.build.os : i2.platform), c2 = i2.argv || i2.args || [];
|
|
287
|
-
let u2 = i2.env || {}, a2 = -1;
|
|
288
|
-
if (o2) try {
|
|
289
|
-
u2 = u2.toObject();
|
|
290
|
-
} catch (e3) {
|
|
291
|
-
a2 = 0;
|
|
292
|
-
}
|
|
293
|
-
const f2 = "FORCE_COLOR", p2 = u2[f2], g2 = parseInt(p2), d2 = "false" === p2 ? 0 : isNaN(g2) ? 3 : g2, b2 = "NO_COLOR" in u2 || 0 === d2 || t2(/^-{1,2}(no-color|color=(false|never))$/), _2 = f2 in u2 && d2 || t2(/^-{1,2}color=?(true|always)?$/), O2 = (u2.NEXT_RUNTIME || "").indexOf("edge") > -1 || "PM2_HOME" in u2 && "pm_id" in u2 || (o2 ? r2.isatty(1) : s2 && "isTTY" in s2);
|
|
294
|
-
return b2 ? 0 : (a2 < 0 && (a2 = l2 ? 3 : ((e3, t3) => {
|
|
295
|
-
const { TERM: n3, COLORTERM: r3 } = e3;
|
|
296
|
-
return "TF_BUILD" in e3 ? 1 : "TEAMCITY_VERSION" in e3 ? 2 : "CI" in e3 ? ["GITHUB_ACTIONS", "GITEA_ACTIONS"].some((t4) => t4 in e3) ? 3 : 1 : !t3 || /-mono|dumb/i.test(n3) ? 0 : "truecolor" === r3 || "24bit" === r3 || "xterm-kitty" === n3 ? 3 : /-256(colou?r)?$/i.test(n3) ? 2 : /^screen|^tmux|^xterm|^vt[1-5][0-9]([0-9])?|^ansi|color|cygwin|linux|mintty|rxvt/i.test(n3) ? 1 : 3;
|
|
297
|
-
})(u2, O2)), _2 && 0 === a2 ? 3 : a2);
|
|
298
|
-
})();
|
|
299
|
-
var u = c > 0;
|
|
300
|
-
var a = { open: "", close: "" };
|
|
301
|
-
var f = u ? (e2, t2) => ({ open: `\x1B[${e2}m`, close: `\x1B[${t2}m` }) : () => a;
|
|
302
|
-
var p = 39;
|
|
303
|
-
var g = 49;
|
|
304
|
-
var d = (e2) => f(`38;5;${e2}`, p);
|
|
305
|
-
var b = (e2) => f(`48;5;${e2}`, g);
|
|
306
|
-
var _ = (e2, t2, n2) => f(`38;2;${e2};${t2};${n2}`, p);
|
|
307
|
-
var O = (e2, t2, n2) => f(`48;2;${e2};${t2};${n2}`, g);
|
|
308
|
-
var m = (e2) => (t2, n2, r2) => e2(i(t2, n2, r2));
|
|
309
|
-
var x = (e2) => (t2) => {
|
|
310
|
-
let [n2, r2, i2] = o(t2);
|
|
311
|
-
return e2(n2, r2, i2);
|
|
312
|
-
};
|
|
313
|
-
1 === c ? (d = (e2) => f(s(e2), p), b = (e2) => f(s(e2) + 10, g), _ = (e2, t2, n2) => f(l(e2, t2, n2), p), O = (e2, t2, n2) => f(l(e2, t2, n2) + 10, g)) : 2 === c && (_ = m(d), O = m(b));
|
|
314
|
-
var y = { visible: a, reset: f(0, 0), inverse: f(7, 27), hidden: f(8, 28), bold: f(1, 22), dim: f(2, 22), italic: f(3, 23), underline: f(4, 24), strikethrough: f(9, 29), strike: f(9, 29), grey: f(90, p), gray: f(90, p), bgGrey: f(100, g), bgGray: f(100, g) };
|
|
315
|
-
var h;
|
|
316
|
-
var T;
|
|
317
|
-
var $ = ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"];
|
|
318
|
-
var I = "Bright";
|
|
319
|
-
var R = 30;
|
|
320
|
-
for (h of $) T = "bg" + h[0].toUpperCase() + h.slice(1), y[h] = f(R, p), y[h + I] = f(R + 60, p), y[T] = f(R + 10, g), y[T + I] = f(R + 70, g), R++;
|
|
321
|
-
var v = { fg: d, bg: b, rgb: _, bgRgb: O, hex: x(_), bgHex: x(O) };
|
|
322
|
-
var C = _;
|
|
323
|
-
var { defineProperty: E, defineProperties: w, setPrototypeOf: M } = Object;
|
|
324
|
-
var N = /[][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
|
|
325
|
-
var A = /(\r?\n)/g;
|
|
326
|
-
var P = {};
|
|
327
|
-
var S = ({ _p: e2 }, { open: t2, close: n2 }) => {
|
|
328
|
-
const o2 = (e3, ...t3) => ((e4, t4, n3) => {
|
|
329
|
-
if (!e4) return "";
|
|
330
|
-
const { _a: o3, _b: i3 } = n3;
|
|
331
|
-
let s3 = null != e4.raw ? String.raw(e4, ...t4) : e4 + "";
|
|
332
|
-
if (s3.includes("\x1B")) for (; null != n3; ) s3 = r(s3, n3.close, n3.open), n3 = n3._p;
|
|
333
|
-
return s3.includes("\n") && (s3 = s3.replace(A, i3 + "$1" + o3)), o3 + s3 + i3;
|
|
334
|
-
})(e3, t3, o2._p);
|
|
335
|
-
let i2 = t2, s2 = n2;
|
|
336
|
-
return null != e2 && (i2 = e2._a + t2, s2 = n2 + e2._b), M(o2, G), o2._p = { open: t2, close: n2, _a: i2, _b: s2, _p: e2 }, o2.open = i2, o2.close = s2, o2;
|
|
337
|
-
};
|
|
338
|
-
var k = function() {
|
|
339
|
-
const e2 = (e3) => e3 + "";
|
|
340
|
-
return e2.isSupported = () => u, e2.strip = (e3) => e3.replace(N, ""), e2.extend = (t2) => {
|
|
341
|
-
for (let e3 in t2) {
|
|
342
|
-
let n2 = t2[e3], r2 = null != n2.open ? n2 : C(...o(n2));
|
|
343
|
-
P[e3] = { get() {
|
|
344
|
-
const t3 = S(this, r2);
|
|
345
|
-
return E(this, e3, { value: t3 }), t3;
|
|
346
|
-
} };
|
|
347
|
-
}
|
|
348
|
-
G = w({}, P), M(e2, G);
|
|
349
|
-
}, e2.extend(y), e2;
|
|
350
|
-
};
|
|
351
|
-
for (let e2 in v) P[e2] = { get() {
|
|
352
|
-
return (...t2) => S(this, v[e2](...t2));
|
|
353
|
-
} };
|
|
354
|
-
var G;
|
|
355
|
-
P.ansi256 = P.fg, P.bgAnsi256 = P.bg;
|
|
356
|
-
var L = new k();
|
|
357
|
-
module.exports = L, module.exports.Ansis = k;
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
|
|
361
248
|
// node_modules/@oclif/core/lib/cache.js
|
|
362
249
|
var require_cache = __commonJS({
|
|
363
250
|
"node_modules/@oclif/core/lib/cache.js"(exports) {
|
|
@@ -1969,7 +1856,10 @@ var require_logger = __commonJS({
|
|
|
1969
1856
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1970
1857
|
};
|
|
1971
1858
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1972
|
-
exports.
|
|
1859
|
+
exports.getLogger = getLogger;
|
|
1860
|
+
exports.makeDebug = makeDebug;
|
|
1861
|
+
exports.setLogger = setLogger;
|
|
1862
|
+
exports.clearLoggers = clearLoggers;
|
|
1973
1863
|
var debug_1 = __importDefault(require_src());
|
|
1974
1864
|
var OCLIF_NS = "oclif";
|
|
1975
1865
|
function makeLogger(namespace = OCLIF_NS) {
|
|
@@ -2001,7 +1891,6 @@ var require_logger = __commonJS({
|
|
|
2001
1891
|
}
|
|
2002
1892
|
return rootLogger;
|
|
2003
1893
|
}
|
|
2004
|
-
exports.getLogger = getLogger;
|
|
2005
1894
|
function ensureItMatchesInterface(newLogger) {
|
|
2006
1895
|
return typeof newLogger.child === "function" && typeof newLogger.debug === "function" && typeof newLogger.error === "function" && typeof newLogger.info === "function" && typeof newLogger.trace === "function" && typeof newLogger.warn === "function" && typeof newLogger.namespace === "string";
|
|
2007
1896
|
}
|
|
@@ -2020,7 +1909,6 @@ var require_logger = __commonJS({
|
|
|
2020
1909
|
function makeDebug(namespace) {
|
|
2021
1910
|
return (formatter, ...args) => getLogger(namespace).debug(formatter, ...args);
|
|
2022
1911
|
}
|
|
2023
|
-
exports.makeDebug = makeDebug;
|
|
2024
1912
|
function setLogger(loadOptions) {
|
|
2025
1913
|
if (loadOptions && typeof loadOptions !== "string" && "logger" in loadOptions && loadOptions.logger) {
|
|
2026
1914
|
set(loadOptions.logger);
|
|
@@ -2028,11 +1916,9 @@ var require_logger = __commonJS({
|
|
|
2028
1916
|
set(makeLogger(OCLIF_NS));
|
|
2029
1917
|
}
|
|
2030
1918
|
}
|
|
2031
|
-
exports.setLogger = setLogger;
|
|
2032
1919
|
function clearLoggers() {
|
|
2033
1920
|
cachedLoggers.clear();
|
|
2034
1921
|
}
|
|
2035
|
-
exports.clearLoggers = clearLoggers;
|
|
2036
1922
|
}
|
|
2037
1923
|
});
|
|
2038
1924
|
|
|
@@ -3569,6 +3455,224 @@ var require_screen = __commonJS({
|
|
|
3569
3455
|
}
|
|
3570
3456
|
});
|
|
3571
3457
|
|
|
3458
|
+
// node_modules/ansis/index.js
|
|
3459
|
+
var require_ansis = __commonJS({
|
|
3460
|
+
"node_modules/ansis/index.js"(exports, module) {
|
|
3461
|
+
"use strict";
|
|
3462
|
+
init_cjs_shims();
|
|
3463
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3464
|
+
var { round: e, floor: t, max: n } = Math;
|
|
3465
|
+
var r = (e2, t2, n2) => {
|
|
3466
|
+
if ("" === t2) return e2;
|
|
3467
|
+
let r2, o2 = t2.length, i2 = 0, s2 = "";
|
|
3468
|
+
for (; ~(r2 = e2.indexOf(t2, i2)); ) s2 += e2.slice(i2, r2) + n2, i2 = r2 + o2;
|
|
3469
|
+
return i2 ? s2 + e2.slice(i2) : e2;
|
|
3470
|
+
};
|
|
3471
|
+
var o = (e2) => {
|
|
3472
|
+
let [, t2] = /([a-f\d]{3,6})/i.exec(e2) || [], n2 = t2 ? t2.length : 0;
|
|
3473
|
+
if (3 === n2) t2 = t2[0] + t2[0] + t2[1] + t2[1] + t2[2] + t2[2];
|
|
3474
|
+
else if (6 !== n2) return [0, 0, 0];
|
|
3475
|
+
let r2 = parseInt(t2, 16);
|
|
3476
|
+
return [r2 >> 16 & 255, r2 >> 8 & 255, 255 & r2];
|
|
3477
|
+
};
|
|
3478
|
+
var i = (t2, n2, r2) => t2 === n2 && n2 === r2 ? t2 < 8 ? 16 : t2 > 248 ? 231 : e((t2 - 8) / 247 * 24) + 232 : 16 + 36 * e(t2 / 51) + 6 * e(n2 / 51) + e(r2 / 51);
|
|
3479
|
+
var s = (r2) => {
|
|
3480
|
+
let o2, i2, s2;
|
|
3481
|
+
if (r2 < 8) return 30 + r2;
|
|
3482
|
+
if (r2 < 16) return r2 - 8 + 90;
|
|
3483
|
+
if (r2 >= 232) o2 = i2 = s2 = (10 * (r2 - 232) + 8) / 255;
|
|
3484
|
+
else {
|
|
3485
|
+
const e2 = (r2 -= 16) % 36;
|
|
3486
|
+
o2 = t(r2 / 36) / 5, i2 = t(e2 / 6) / 5, s2 = e2 % 6 / 5;
|
|
3487
|
+
}
|
|
3488
|
+
const l2 = 2 * n(o2, i2, s2);
|
|
3489
|
+
if (0 === l2) return 30;
|
|
3490
|
+
let c2 = 30 + (e(s2) << 2 | e(i2) << 1 | e(o2));
|
|
3491
|
+
return 2 === l2 ? c2 + 60 : c2;
|
|
3492
|
+
};
|
|
3493
|
+
var l = (e2, t2, n2) => s(i(e2, t2, n2));
|
|
3494
|
+
var c = ((e2) => {
|
|
3495
|
+
const t2 = (e3) => !!c2.find((t3) => e3.test(t3)), n2 = globalThis, r2 = n2.Deno, o2 = null != r2, i2 = n2.process || r2 || {}, s2 = i2.stdout, l2 = "win32" === (o2 ? r2.build.os : i2.platform), c2 = i2.argv || i2.args || [];
|
|
3496
|
+
let u2 = i2.env || {}, a2 = -1;
|
|
3497
|
+
if (o2) try {
|
|
3498
|
+
u2 = u2.toObject();
|
|
3499
|
+
} catch (e3) {
|
|
3500
|
+
a2 = 0;
|
|
3501
|
+
}
|
|
3502
|
+
const f2 = "FORCE_COLOR", p2 = u2[f2], g2 = parseInt(p2), d2 = "false" === p2 ? 0 : isNaN(g2) ? 3 : g2, b2 = "NO_COLOR" in u2 || 0 === d2 || t2(/^-{1,2}(no-color|color=(false|never))$/), _2 = f2 in u2 && d2 || t2(/^-{1,2}color=?(true|always)?$/), O2 = (u2.NEXT_RUNTIME || "").indexOf("edge") > -1 || "PM2_HOME" in u2 && "pm_id" in u2 || (o2 ? r2.isatty(1) : s2 && "isTTY" in s2);
|
|
3503
|
+
return b2 ? 0 : (a2 < 0 && (a2 = l2 ? 3 : ((e3, t3) => {
|
|
3504
|
+
const { TERM: n3, COLORTERM: r3 } = e3;
|
|
3505
|
+
return "TF_BUILD" in e3 ? 1 : "TEAMCITY_VERSION" in e3 ? 2 : "CI" in e3 ? ["GITHUB_ACTIONS", "GITEA_ACTIONS"].some((t4) => t4 in e3) ? 3 : 1 : !t3 || /-mono|dumb/i.test(n3) ? 0 : "truecolor" === r3 || "24bit" === r3 || "xterm-kitty" === n3 ? 3 : /-256(colou?r)?$/i.test(n3) ? 2 : /^screen|^tmux|^xterm|^vt[1-5][0-9]([0-9])?|^ansi|color|cygwin|linux|mintty|rxvt/i.test(n3) ? 1 : 3;
|
|
3506
|
+
})(u2, O2)), _2 && 0 === a2 ? 3 : a2);
|
|
3507
|
+
})();
|
|
3508
|
+
var u = c > 0;
|
|
3509
|
+
var a = { open: "", close: "" };
|
|
3510
|
+
var f = u ? (e2, t2) => ({ open: `\x1B[${e2}m`, close: `\x1B[${t2}m` }) : () => a;
|
|
3511
|
+
var p = 39;
|
|
3512
|
+
var g = 49;
|
|
3513
|
+
var d = (e2) => f(`38;5;${e2}`, p);
|
|
3514
|
+
var b = (e2) => f(`48;5;${e2}`, g);
|
|
3515
|
+
var _ = (e2, t2, n2) => f(`38;2;${e2};${t2};${n2}`, p);
|
|
3516
|
+
var O = (e2, t2, n2) => f(`48;2;${e2};${t2};${n2}`, g);
|
|
3517
|
+
var m = (e2) => (t2, n2, r2) => e2(i(t2, n2, r2));
|
|
3518
|
+
var x = (e2) => (t2) => {
|
|
3519
|
+
let [n2, r2, i2] = o(t2);
|
|
3520
|
+
return e2(n2, r2, i2);
|
|
3521
|
+
};
|
|
3522
|
+
1 === c ? (d = (e2) => f(s(e2), p), b = (e2) => f(s(e2) + 10, g), _ = (e2, t2, n2) => f(l(e2, t2, n2), p), O = (e2, t2, n2) => f(l(e2, t2, n2) + 10, g)) : 2 === c && (_ = m(d), O = m(b));
|
|
3523
|
+
var y = { visible: a, reset: f(0, 0), inverse: f(7, 27), hidden: f(8, 28), bold: f(1, 22), dim: f(2, 22), italic: f(3, 23), underline: f(4, 24), strikethrough: f(9, 29), strike: f(9, 29), grey: f(90, p), gray: f(90, p), bgGrey: f(100, g), bgGray: f(100, g) };
|
|
3524
|
+
var h;
|
|
3525
|
+
var T;
|
|
3526
|
+
var $ = ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"];
|
|
3527
|
+
var I = "Bright";
|
|
3528
|
+
var R = 30;
|
|
3529
|
+
for (h of $) T = "bg" + h[0].toUpperCase() + h.slice(1), y[h] = f(R, p), y[h + I] = f(R + 60, p), y[T] = f(R + 10, g), y[T + I] = f(R + 70, g), R++;
|
|
3530
|
+
var v = { fg: d, bg: b, rgb: _, bgRgb: O, hex: x(_), bgHex: x(O) };
|
|
3531
|
+
var C = _;
|
|
3532
|
+
var { defineProperty: E, defineProperties: w, setPrototypeOf: M } = Object;
|
|
3533
|
+
var N = /[][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
|
|
3534
|
+
var A = /(\r?\n)/g;
|
|
3535
|
+
var P = {};
|
|
3536
|
+
var S = ({ _p: e2 }, { open: t2, close: n2 }) => {
|
|
3537
|
+
const o2 = (e3, ...t3) => ((e4, t4, n3) => {
|
|
3538
|
+
if (!e4) return "";
|
|
3539
|
+
const { _a: o3, _b: i3 } = n3;
|
|
3540
|
+
let s3 = null != e4.raw ? String.raw(e4, ...t4) : e4 + "";
|
|
3541
|
+
if (s3.includes("\x1B")) for (; null != n3; ) s3 = r(s3, n3.close, n3.open), n3 = n3._p;
|
|
3542
|
+
return s3.includes("\n") && (s3 = s3.replace(A, i3 + "$1" + o3)), o3 + s3 + i3;
|
|
3543
|
+
})(e3, t3, o2._p);
|
|
3544
|
+
let i2 = t2, s2 = n2;
|
|
3545
|
+
return null != e2 && (i2 = e2._a + t2, s2 = n2 + e2._b), M(o2, G), o2._p = { open: t2, close: n2, _a: i2, _b: s2, _p: e2 }, o2.open = i2, o2.close = s2, o2;
|
|
3546
|
+
};
|
|
3547
|
+
var k = function() {
|
|
3548
|
+
const e2 = (e3) => e3 + "";
|
|
3549
|
+
return e2.isSupported = () => u, e2.strip = (e3) => e3.replace(N, ""), e2.extend = (t2) => {
|
|
3550
|
+
for (let e3 in t2) {
|
|
3551
|
+
let n2 = t2[e3], r2 = null != n2.open ? n2 : C(...o(n2));
|
|
3552
|
+
P[e3] = { get() {
|
|
3553
|
+
const t3 = S(this, r2);
|
|
3554
|
+
return E(this, e3, { value: t3 }), t3;
|
|
3555
|
+
} };
|
|
3556
|
+
}
|
|
3557
|
+
G = w({}, P), M(e2, G);
|
|
3558
|
+
}, e2.extend(y), e2;
|
|
3559
|
+
};
|
|
3560
|
+
for (let e2 in v) P[e2] = { get() {
|
|
3561
|
+
return (...t2) => S(this, v[e2](...t2));
|
|
3562
|
+
} };
|
|
3563
|
+
var G;
|
|
3564
|
+
P.ansi256 = P.fg, P.bgAnsi256 = P.bg;
|
|
3565
|
+
var L = new k();
|
|
3566
|
+
module.exports = L, module.exports.Ansis = k;
|
|
3567
|
+
}
|
|
3568
|
+
});
|
|
3569
|
+
|
|
3570
|
+
// node_modules/@oclif/core/lib/interfaces/theme.js
|
|
3571
|
+
var require_theme = __commonJS({
|
|
3572
|
+
"node_modules/@oclif/core/lib/interfaces/theme.js"(exports) {
|
|
3573
|
+
"use strict";
|
|
3574
|
+
init_cjs_shims();
|
|
3575
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3576
|
+
exports.STANDARD_ANSI = void 0;
|
|
3577
|
+
exports.STANDARD_ANSI = [
|
|
3578
|
+
"white",
|
|
3579
|
+
"black",
|
|
3580
|
+
"blue",
|
|
3581
|
+
"yellow",
|
|
3582
|
+
"green",
|
|
3583
|
+
"red",
|
|
3584
|
+
"magenta",
|
|
3585
|
+
"cyan",
|
|
3586
|
+
"gray",
|
|
3587
|
+
"blackBright",
|
|
3588
|
+
"redBright",
|
|
3589
|
+
"greenBright",
|
|
3590
|
+
"yellowBright",
|
|
3591
|
+
"blueBright",
|
|
3592
|
+
"magentaBright",
|
|
3593
|
+
"cyanBright",
|
|
3594
|
+
"whiteBright",
|
|
3595
|
+
"bgBlack",
|
|
3596
|
+
"bgRed",
|
|
3597
|
+
"bgGreen",
|
|
3598
|
+
"bgYellow",
|
|
3599
|
+
"bgBlue",
|
|
3600
|
+
"bgMagenta",
|
|
3601
|
+
"bgCyan",
|
|
3602
|
+
"bgWhite",
|
|
3603
|
+
"bgGray",
|
|
3604
|
+
"bgBlackBright",
|
|
3605
|
+
"bgRedBright",
|
|
3606
|
+
"bgGreenBright",
|
|
3607
|
+
"bgYellowBright",
|
|
3608
|
+
"bgBlueBright",
|
|
3609
|
+
"bgMagentaBright",
|
|
3610
|
+
"bgCyanBright",
|
|
3611
|
+
"bgWhiteBright",
|
|
3612
|
+
"bold",
|
|
3613
|
+
"underline",
|
|
3614
|
+
"dim",
|
|
3615
|
+
"italic",
|
|
3616
|
+
"strikethrough"
|
|
3617
|
+
];
|
|
3618
|
+
}
|
|
3619
|
+
});
|
|
3620
|
+
|
|
3621
|
+
// node_modules/@oclif/core/lib/ux/supports-color.js
|
|
3622
|
+
var require_supports_color2 = __commonJS({
|
|
3623
|
+
"node_modules/@oclif/core/lib/ux/supports-color.js"(exports) {
|
|
3624
|
+
"use strict";
|
|
3625
|
+
init_cjs_shims();
|
|
3626
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3627
|
+
exports.supportsColor = supportsColor;
|
|
3628
|
+
var supports_color_1 = require_supports_color();
|
|
3629
|
+
function supportsColor() {
|
|
3630
|
+
return Boolean(supports_color_1.stdout) && Boolean(supports_color_1.stderr);
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
});
|
|
3634
|
+
|
|
3635
|
+
// node_modules/@oclif/core/lib/ux/theme.js
|
|
3636
|
+
var require_theme2 = __commonJS({
|
|
3637
|
+
"node_modules/@oclif/core/lib/ux/theme.js"(exports) {
|
|
3638
|
+
"use strict";
|
|
3639
|
+
init_cjs_shims();
|
|
3640
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
3641
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3642
|
+
};
|
|
3643
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3644
|
+
exports.colorize = colorize;
|
|
3645
|
+
exports.parseTheme = parseTheme;
|
|
3646
|
+
var ansis_1 = __importDefault(require_ansis());
|
|
3647
|
+
var theme_1 = require_theme();
|
|
3648
|
+
var supports_color_1 = require_supports_color2();
|
|
3649
|
+
function isStandardAnsi(color) {
|
|
3650
|
+
return theme_1.STANDARD_ANSI.includes(color);
|
|
3651
|
+
}
|
|
3652
|
+
function colorize(color, text) {
|
|
3653
|
+
if (!color)
|
|
3654
|
+
return text;
|
|
3655
|
+
if (!(0, supports_color_1.supportsColor)())
|
|
3656
|
+
return text;
|
|
3657
|
+
if (isStandardAnsi(color))
|
|
3658
|
+
return ansis_1.default[color](text);
|
|
3659
|
+
if (color.startsWith("#"))
|
|
3660
|
+
return ansis_1.default.hex(color)(text);
|
|
3661
|
+
if (color.startsWith("rgb")) {
|
|
3662
|
+
const [red, green, blue] = color.slice(4, -1).split(",").map((c) => Number.parseInt(c.trim(), 10));
|
|
3663
|
+
return ansis_1.default.rgb(red, green, blue)(text);
|
|
3664
|
+
}
|
|
3665
|
+
return text;
|
|
3666
|
+
}
|
|
3667
|
+
function parseTheme(theme) {
|
|
3668
|
+
return Object.fromEntries(Object.entries(theme).map(([key, value]) => [key, typeof value === "string" ? isValid(value) : parseTheme(value)]).filter(([_, value]) => value));
|
|
3669
|
+
}
|
|
3670
|
+
function isValid(color) {
|
|
3671
|
+
return color.startsWith("#") || color.startsWith("rgb") || isStandardAnsi(color) ? color : void 0;
|
|
3672
|
+
}
|
|
3673
|
+
}
|
|
3674
|
+
});
|
|
3675
|
+
|
|
3572
3676
|
// node_modules/@oclif/core/lib/errors/errors/cli.js
|
|
3573
3677
|
var require_cli = __commonJS({
|
|
3574
3678
|
"node_modules/@oclif/core/lib/errors/errors/cli.js"(exports) {
|
|
@@ -3578,14 +3682,15 @@ var require_cli = __commonJS({
|
|
|
3578
3682
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3579
3683
|
};
|
|
3580
3684
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3581
|
-
exports.CLIError =
|
|
3582
|
-
|
|
3685
|
+
exports.CLIError = void 0;
|
|
3686
|
+
exports.addOclifExitCode = addOclifExitCode;
|
|
3583
3687
|
var clean_stack_1 = __importDefault(require_clean_stack());
|
|
3584
3688
|
var indent_string_1 = __importDefault(require_indent_string());
|
|
3585
3689
|
var wrap_ansi_1 = __importDefault(require_wrap_ansi());
|
|
3586
3690
|
var cache_1 = __importDefault(require_cache());
|
|
3587
3691
|
var screen_1 = require_screen();
|
|
3588
3692
|
var settings_1 = require_settings();
|
|
3693
|
+
var theme_1 = require_theme2();
|
|
3589
3694
|
function addOclifExitCode(error, options) {
|
|
3590
3695
|
if (!("oclif" in error)) {
|
|
3591
3696
|
;
|
|
@@ -3594,7 +3699,6 @@ var require_cli = __commonJS({
|
|
|
3594
3699
|
error.oclif.exit = options?.exit === void 0 ? cache_1.default.getInstance().get("exitCodes")?.default ?? 2 : options.exit;
|
|
3595
3700
|
return error;
|
|
3596
3701
|
}
|
|
3597
|
-
exports.addOclifExitCode = addOclifExitCode;
|
|
3598
3702
|
var CLIError = class extends Error {
|
|
3599
3703
|
code;
|
|
3600
3704
|
oclif = {};
|
|
@@ -3608,7 +3712,7 @@ var require_cli = __commonJS({
|
|
|
3608
3712
|
}
|
|
3609
3713
|
get bang() {
|
|
3610
3714
|
try {
|
|
3611
|
-
return
|
|
3715
|
+
return (0, theme_1.colorize)("red", process.platform === "win32" ? "\xBB" : "\u203A");
|
|
3612
3716
|
} catch {
|
|
3613
3717
|
}
|
|
3614
3718
|
}
|
|
@@ -3640,7 +3744,7 @@ var require_cli = __commonJS({
|
|
|
3640
3744
|
}
|
|
3641
3745
|
get bang() {
|
|
3642
3746
|
try {
|
|
3643
|
-
return
|
|
3747
|
+
return (0, theme_1.colorize)("yellow", process.platform === "win32" ? "\xBB" : "\u203A");
|
|
3644
3748
|
} catch {
|
|
3645
3749
|
}
|
|
3646
3750
|
}
|
|
@@ -3659,7 +3763,8 @@ var require_pretty_print = __commonJS({
|
|
|
3659
3763
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3660
3764
|
};
|
|
3661
3765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3662
|
-
exports.applyPrettyPrintOptions =
|
|
3766
|
+
exports.applyPrettyPrintOptions = applyPrettyPrintOptions;
|
|
3767
|
+
exports.default = prettyPrint;
|
|
3663
3768
|
var indent_string_1 = __importDefault(require_indent_string());
|
|
3664
3769
|
var wrap_ansi_1 = __importDefault(require_wrap_ansi());
|
|
3665
3770
|
var screen_1 = require_screen();
|
|
@@ -3675,7 +3780,6 @@ var require_pretty_print = __commonJS({
|
|
|
3675
3780
|
}
|
|
3676
3781
|
return error;
|
|
3677
3782
|
}
|
|
3678
|
-
exports.applyPrettyPrintOptions = applyPrettyPrintOptions;
|
|
3679
3783
|
var formatSuggestions = (suggestions) => {
|
|
3680
3784
|
const label = "Try this:";
|
|
3681
3785
|
if (!suggestions || suggestions.length === 0)
|
|
@@ -3702,7 +3806,6 @@ ${(0, indent_string_1.default)(multiple, 2)}`;
|
|
|
3702
3806
|
output = (0, indent_string_1.default)(output, 1);
|
|
3703
3807
|
return output;
|
|
3704
3808
|
}
|
|
3705
|
-
exports.default = prettyPrint;
|
|
3706
3809
|
}
|
|
3707
3810
|
});
|
|
3708
3811
|
|
|
@@ -3739,7 +3842,7 @@ var require_error = __commonJS({
|
|
|
3739
3842
|
return result;
|
|
3740
3843
|
};
|
|
3741
3844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3742
|
-
exports.error =
|
|
3845
|
+
exports.error = error;
|
|
3743
3846
|
var logger_1 = require_logger();
|
|
3744
3847
|
var write_1 = require_write();
|
|
3745
3848
|
var cli_1 = require_cli();
|
|
@@ -3763,7 +3866,6 @@ var require_error = __commonJS({
|
|
|
3763
3866
|
} else
|
|
3764
3867
|
throw err;
|
|
3765
3868
|
}
|
|
3766
|
-
exports.error = error;
|
|
3767
3869
|
exports.default = error;
|
|
3768
3870
|
}
|
|
3769
3871
|
});
|
|
@@ -3814,12 +3916,11 @@ var require_exit2 = __commonJS({
|
|
|
3814
3916
|
"use strict";
|
|
3815
3917
|
init_cjs_shims();
|
|
3816
3918
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3817
|
-
exports.exit =
|
|
3919
|
+
exports.exit = exit;
|
|
3818
3920
|
var exit_1 = require_exit();
|
|
3819
3921
|
function exit(code = 0) {
|
|
3820
3922
|
throw new exit_1.ExitError(code);
|
|
3821
3923
|
}
|
|
3822
|
-
exports.exit = exit;
|
|
3823
3924
|
}
|
|
3824
3925
|
});
|
|
3825
3926
|
|
|
@@ -3832,7 +3933,8 @@ var require_warn = __commonJS({
|
|
|
3832
3933
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3833
3934
|
};
|
|
3834
3935
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3835
|
-
exports.
|
|
3936
|
+
exports.warn = warn;
|
|
3937
|
+
exports.memoizedWarn = memoizedWarn;
|
|
3836
3938
|
var logger_1 = require_logger();
|
|
3837
3939
|
var write_1 = require_write();
|
|
3838
3940
|
var cli_1 = require_cli();
|
|
@@ -3852,14 +3954,12 @@ var require_warn = __commonJS({
|
|
|
3852
3954
|
if (err?.stack)
|
|
3853
3955
|
(0, logger_1.getLogger)().error(err.stack);
|
|
3854
3956
|
}
|
|
3855
|
-
exports.warn = warn;
|
|
3856
3957
|
var WARNINGS = /* @__PURE__ */ new Set();
|
|
3857
3958
|
function memoizedWarn(input) {
|
|
3858
3959
|
if (!WARNINGS.has(input))
|
|
3859
3960
|
warn(input);
|
|
3860
3961
|
WARNINGS.add(input);
|
|
3861
3962
|
}
|
|
3862
|
-
exports.memoizedWarn = memoizedWarn;
|
|
3863
3963
|
exports.default = warn;
|
|
3864
3964
|
}
|
|
3865
3965
|
});
|
|
@@ -209117,7 +209217,7 @@ var require_read_tsconfig = __commonJS({
|
|
|
209117
209217
|
"use strict";
|
|
209118
209218
|
init_cjs_shims();
|
|
209119
209219
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
209120
|
-
exports.readTSConfig =
|
|
209220
|
+
exports.readTSConfig = readTSConfig;
|
|
209121
209221
|
var promises_1 = __require("node:fs/promises");
|
|
209122
209222
|
var node_path_1 = __require("node:path");
|
|
209123
209223
|
var warn_1 = require_warn();
|
|
@@ -209187,7 +209287,6 @@ var require_read_tsconfig = __commonJS({
|
|
|
209187
209287
|
"ts-node": (0, util_1.mergeNestedObjects)(found, "ts-node")
|
|
209188
209288
|
};
|
|
209189
209289
|
}
|
|
209190
|
-
exports.readTSConfig = readTSConfig;
|
|
209191
209290
|
}
|
|
209192
209291
|
});
|
|
209193
209292
|
|
|
@@ -209197,12 +209296,14 @@ var require_util2 = __commonJS({
|
|
|
209197
209296
|
"use strict";
|
|
209198
209297
|
init_cjs_shims();
|
|
209199
209298
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
209200
|
-
exports.collectUsableIds =
|
|
209299
|
+
exports.collectUsableIds = void 0;
|
|
209300
|
+
exports.makeDebug = makeDebug;
|
|
209301
|
+
exports.getPermutations = getPermutations;
|
|
209302
|
+
exports.getCommandIdPermutations = getCommandIdPermutations;
|
|
209201
209303
|
var logger_1 = require_logger();
|
|
209202
209304
|
function makeDebug(...scope) {
|
|
209203
209305
|
return (formatter, ...args) => (0, logger_1.getLogger)(["config", ...scope].join(":")).debug(formatter, ...args);
|
|
209204
209306
|
}
|
|
209205
|
-
exports.makeDebug = makeDebug;
|
|
209206
209307
|
function getPermutations(arr) {
|
|
209207
209308
|
if (arr.length === 0)
|
|
209208
209309
|
return [];
|
|
@@ -209222,11 +209323,9 @@ var require_util2 = __commonJS({
|
|
|
209222
209323
|
}
|
|
209223
209324
|
return output;
|
|
209224
209325
|
}
|
|
209225
|
-
exports.getPermutations = getPermutations;
|
|
209226
209326
|
function getCommandIdPermutations(commandId) {
|
|
209227
209327
|
return getPermutations(commandId.split(":")).flatMap((c) => c.join(":"));
|
|
209228
209328
|
}
|
|
209229
|
-
exports.getCommandIdPermutations = getCommandIdPermutations;
|
|
209230
209329
|
var collectUsableIds = (commandIds) => new Set(commandIds.flatMap((id) => id.split(":").map((_, i, a) => a.slice(0, i + 1).join(":"))));
|
|
209231
209330
|
exports.collectUsableIds = collectUsableIds;
|
|
209232
209331
|
}
|
|
@@ -209241,7 +209340,8 @@ var require_ts_path = __commonJS({
|
|
|
209241
209340
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
209242
209341
|
};
|
|
209243
209342
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
209244
|
-
exports.
|
|
209343
|
+
exports.TS_CONFIGS = void 0;
|
|
209344
|
+
exports.tsPath = tsPath;
|
|
209245
209345
|
var promises_1 = __require("node:fs/promises");
|
|
209246
209346
|
var node_path_1 = __require("node:path");
|
|
209247
209347
|
var cache_1 = __importDefault(require_cache());
|
|
@@ -209439,7 +209539,6 @@ var require_ts_path = __commonJS({
|
|
|
209439
209539
|
return orig;
|
|
209440
209540
|
}
|
|
209441
209541
|
}
|
|
209442
|
-
exports.tsPath = tsPath;
|
|
209443
209542
|
}
|
|
209444
209543
|
});
|
|
209445
209544
|
|
|
@@ -209571,7 +209670,10 @@ var require_module_loader = __commonJS({
|
|
|
209571
209670
|
"use strict";
|
|
209572
209671
|
init_cjs_shims();
|
|
209573
209672
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
209574
|
-
exports.
|
|
209673
|
+
exports.load = load;
|
|
209674
|
+
exports.loadWithData = loadWithData;
|
|
209675
|
+
exports.loadWithDataFromManifest = loadWithDataFromManifest;
|
|
209676
|
+
exports.isPathModule = isPathModule;
|
|
209575
209677
|
var node_fs_1 = __require("node:fs");
|
|
209576
209678
|
var node_path_1 = __require("node:path");
|
|
209577
209679
|
var node_url_1 = __require("node:url");
|
|
@@ -209598,7 +209700,6 @@ var require_module_loader = __commonJS({
|
|
|
209598
209700
|
handleError(error, isESM, filePath ?? modulePath);
|
|
209599
209701
|
}
|
|
209600
209702
|
}
|
|
209601
|
-
exports.load = load;
|
|
209602
209703
|
async function loadWithData(config, modulePath) {
|
|
209603
209704
|
let filePath;
|
|
209604
209705
|
let isESM;
|
|
@@ -209611,7 +209712,6 @@ var require_module_loader = __commonJS({
|
|
|
209611
209712
|
handleError(error, isESM, filePath ?? modulePath);
|
|
209612
209713
|
}
|
|
209613
209714
|
}
|
|
209614
|
-
exports.loadWithData = loadWithData;
|
|
209615
209715
|
async function loadWithDataFromManifest(cached, modulePath) {
|
|
209616
209716
|
const { id, isESM, relativePath } = cached;
|
|
209617
209717
|
if (!relativePath) {
|
|
@@ -209628,7 +209728,6 @@ var require_module_loader = __commonJS({
|
|
|
209628
209728
|
handleError(error, isESM, filePath ?? modulePath);
|
|
209629
209729
|
}
|
|
209630
209730
|
}
|
|
209631
|
-
exports.loadWithDataFromManifest = loadWithDataFromManifest;
|
|
209632
209731
|
function isPathModule(filePath) {
|
|
209633
209732
|
const extension = (0, node_path_1.extname)(filePath).toLowerCase();
|
|
209634
209733
|
switch (extension) {
|
|
@@ -209647,7 +209746,6 @@ var require_module_loader = __commonJS({
|
|
|
209647
209746
|
}
|
|
209648
209747
|
}
|
|
209649
209748
|
}
|
|
209650
|
-
exports.isPathModule = isPathModule;
|
|
209651
209749
|
async function resolvePath(config, modulePath) {
|
|
209652
209750
|
let isESM;
|
|
209653
209751
|
let filePath;
|
|
@@ -209740,16 +209838,15 @@ var require_ids = __commonJS({
|
|
|
209740
209838
|
"use strict";
|
|
209741
209839
|
init_cjs_shims();
|
|
209742
209840
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
209743
|
-
exports.
|
|
209841
|
+
exports.toStandardizedId = toStandardizedId;
|
|
209842
|
+
exports.toConfiguredId = toConfiguredId;
|
|
209744
209843
|
function toStandardizedId(commandID, config) {
|
|
209745
209844
|
return commandID.replaceAll(new RegExp(config.topicSeparator, "g"), ":");
|
|
209746
209845
|
}
|
|
209747
|
-
exports.toStandardizedId = toStandardizedId;
|
|
209748
209846
|
function toConfiguredId(commandID, config) {
|
|
209749
209847
|
const defaultTopicSeparator = ":";
|
|
209750
209848
|
return commandID.replaceAll(new RegExp(defaultTopicSeparator, "g"), config.topicSeparator || defaultTopicSeparator);
|
|
209751
209849
|
}
|
|
209752
|
-
exports.toConfiguredId = toConfiguredId;
|
|
209753
209850
|
}
|
|
209754
209851
|
});
|
|
209755
209852
|
|
|
@@ -211635,114 +211732,6 @@ var require_cli_spinners = __commonJS({
|
|
|
211635
211732
|
}
|
|
211636
211733
|
});
|
|
211637
211734
|
|
|
211638
|
-
// node_modules/@oclif/core/lib/interfaces/theme.js
|
|
211639
|
-
var require_theme = __commonJS({
|
|
211640
|
-
"node_modules/@oclif/core/lib/interfaces/theme.js"(exports) {
|
|
211641
|
-
"use strict";
|
|
211642
|
-
init_cjs_shims();
|
|
211643
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
211644
|
-
exports.STANDARD_ANSI = void 0;
|
|
211645
|
-
exports.STANDARD_ANSI = [
|
|
211646
|
-
"white",
|
|
211647
|
-
"black",
|
|
211648
|
-
"blue",
|
|
211649
|
-
"yellow",
|
|
211650
|
-
"green",
|
|
211651
|
-
"red",
|
|
211652
|
-
"magenta",
|
|
211653
|
-
"cyan",
|
|
211654
|
-
"gray",
|
|
211655
|
-
"blackBright",
|
|
211656
|
-
"redBright",
|
|
211657
|
-
"greenBright",
|
|
211658
|
-
"yellowBright",
|
|
211659
|
-
"blueBright",
|
|
211660
|
-
"magentaBright",
|
|
211661
|
-
"cyanBright",
|
|
211662
|
-
"whiteBright",
|
|
211663
|
-
"bgBlack",
|
|
211664
|
-
"bgRed",
|
|
211665
|
-
"bgGreen",
|
|
211666
|
-
"bgYellow",
|
|
211667
|
-
"bgBlue",
|
|
211668
|
-
"bgMagenta",
|
|
211669
|
-
"bgCyan",
|
|
211670
|
-
"bgWhite",
|
|
211671
|
-
"bgGray",
|
|
211672
|
-
"bgBlackBright",
|
|
211673
|
-
"bgRedBright",
|
|
211674
|
-
"bgGreenBright",
|
|
211675
|
-
"bgYellowBright",
|
|
211676
|
-
"bgBlueBright",
|
|
211677
|
-
"bgMagentaBright",
|
|
211678
|
-
"bgCyanBright",
|
|
211679
|
-
"bgWhiteBright",
|
|
211680
|
-
"bold",
|
|
211681
|
-
"underline",
|
|
211682
|
-
"dim",
|
|
211683
|
-
"italic",
|
|
211684
|
-
"strikethrough"
|
|
211685
|
-
];
|
|
211686
|
-
}
|
|
211687
|
-
});
|
|
211688
|
-
|
|
211689
|
-
// node_modules/@oclif/core/lib/ux/supports-color.js
|
|
211690
|
-
var require_supports_color2 = __commonJS({
|
|
211691
|
-
"node_modules/@oclif/core/lib/ux/supports-color.js"(exports) {
|
|
211692
|
-
"use strict";
|
|
211693
|
-
init_cjs_shims();
|
|
211694
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
211695
|
-
exports.supportsColor = void 0;
|
|
211696
|
-
var supports_color_1 = require_supports_color();
|
|
211697
|
-
function supportsColor() {
|
|
211698
|
-
return Boolean(supports_color_1.stdout) && Boolean(supports_color_1.stderr);
|
|
211699
|
-
}
|
|
211700
|
-
exports.supportsColor = supportsColor;
|
|
211701
|
-
}
|
|
211702
|
-
});
|
|
211703
|
-
|
|
211704
|
-
// node_modules/@oclif/core/lib/ux/theme.js
|
|
211705
|
-
var require_theme2 = __commonJS({
|
|
211706
|
-
"node_modules/@oclif/core/lib/ux/theme.js"(exports) {
|
|
211707
|
-
"use strict";
|
|
211708
|
-
init_cjs_shims();
|
|
211709
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
211710
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
211711
|
-
};
|
|
211712
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
211713
|
-
exports.parseTheme = exports.colorize = void 0;
|
|
211714
|
-
var ansis_1 = __importDefault(require_ansis());
|
|
211715
|
-
var theme_1 = require_theme();
|
|
211716
|
-
var supports_color_1 = require_supports_color2();
|
|
211717
|
-
function isStandardAnsi(color) {
|
|
211718
|
-
return theme_1.STANDARD_ANSI.includes(color);
|
|
211719
|
-
}
|
|
211720
|
-
function colorize(color, text) {
|
|
211721
|
-
if (!color)
|
|
211722
|
-
return text;
|
|
211723
|
-
if (!(0, supports_color_1.supportsColor)())
|
|
211724
|
-
return text;
|
|
211725
|
-
if (isStandardAnsi(color))
|
|
211726
|
-
return ansis_1.default[color](text);
|
|
211727
|
-
if (color.startsWith("#"))
|
|
211728
|
-
return ansis_1.default.hex(color)(text);
|
|
211729
|
-
if (color.startsWith("rgb")) {
|
|
211730
|
-
const [red, green, blue] = color.slice(4, -1).split(",").map((c) => Number.parseInt(c.trim(), 10));
|
|
211731
|
-
return ansis_1.default.rgb(red, green, blue)(text);
|
|
211732
|
-
}
|
|
211733
|
-
return text;
|
|
211734
|
-
}
|
|
211735
|
-
exports.colorize = colorize;
|
|
211736
|
-
function parseTheme(theme) {
|
|
211737
|
-
return Object.fromEntries(Object.entries(theme).map(([key, value]) => [key, typeof value === "string" ? isValid(value) : parseTheme(value)]).filter(([_, value]) => value));
|
|
211738
|
-
}
|
|
211739
|
-
exports.parseTheme = parseTheme;
|
|
211740
|
-
function isValid(color) {
|
|
211741
|
-
return color.startsWith("#") || color.startsWith("rgb") || isStandardAnsi(color) ? color : void 0;
|
|
211742
|
-
}
|
|
211743
|
-
}
|
|
211744
|
-
});
|
|
211745
|
-
|
|
211746
211735
|
// node_modules/ansi-escapes/index.js
|
|
211747
211736
|
var require_ansi_escapes = __commonJS({
|
|
211748
211737
|
"node_modules/ansi-escapes/index.js"(exports, module) {
|
|
@@ -211971,7 +211960,8 @@ var require_colorize_json = __commonJS({
|
|
|
211971
211960
|
"use strict";
|
|
211972
211961
|
init_cjs_shims();
|
|
211973
211962
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
211974
|
-
exports.tokenize =
|
|
211963
|
+
exports.tokenize = tokenize;
|
|
211964
|
+
exports.default = colorizeJson;
|
|
211975
211965
|
var theme_1 = require_theme2();
|
|
211976
211966
|
var tokenTypes = [
|
|
211977
211967
|
{ regex: /^\s+/, tokenType: "whitespace" },
|
|
@@ -212005,7 +211995,6 @@ var require_colorize_json = __commonJS({
|
|
|
212005
211995
|
} while (hasRemainingTokens(input, foundToken));
|
|
212006
211996
|
return tokens;
|
|
212007
211997
|
}
|
|
212008
|
-
exports.tokenize = tokenize;
|
|
212009
211998
|
function hasRemainingTokens(input, foundToken) {
|
|
212010
211999
|
return (input?.length ?? 0) > 0 && foundToken;
|
|
212011
212000
|
}
|
|
@@ -212013,7 +212002,6 @@ var require_colorize_json = __commonJS({
|
|
|
212013
212002
|
const opts = { ...options, pretty: options?.pretty ?? true };
|
|
212014
212003
|
return tokenize(json, opts).reduce((acc, token) => acc + (0, theme_1.colorize)(options?.theme?.[token.type], token.value), "");
|
|
212015
212004
|
}
|
|
212016
|
-
exports.default = colorizeJson;
|
|
212017
212005
|
}
|
|
212018
212006
|
});
|
|
212019
212007
|
|
|
@@ -212128,11 +212116,10 @@ var require_ensure_arg_object = __commonJS({
|
|
|
212128
212116
|
"use strict";
|
|
212129
212117
|
init_cjs_shims();
|
|
212130
212118
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
212131
|
-
exports.ensureArgObject =
|
|
212119
|
+
exports.ensureArgObject = ensureArgObject;
|
|
212132
212120
|
function ensureArgObject(args) {
|
|
212133
212121
|
return Array.isArray(args) ? (args ?? []).reduce((x, y) => ({ ...x, [y.name]: y }), {}) : args ?? {};
|
|
212134
212122
|
}
|
|
212135
|
-
exports.ensureArgObject = ensureArgObject;
|
|
212136
212123
|
}
|
|
212137
212124
|
});
|
|
212138
212125
|
|
|
@@ -212299,7 +212286,12 @@ var require_util3 = __commonJS({
|
|
|
212299
212286
|
return result;
|
|
212300
212287
|
};
|
|
212301
212288
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
212302
|
-
exports.
|
|
212289
|
+
exports.template = template;
|
|
212290
|
+
exports.standardizeIDFromArgv = standardizeIDFromArgv;
|
|
212291
|
+
exports.getHelpFlagAdditions = getHelpFlagAdditions;
|
|
212292
|
+
exports.formatFlagDeprecationWarning = formatFlagDeprecationWarning;
|
|
212293
|
+
exports.formatCommandDeprecationWarning = formatCommandDeprecationWarning;
|
|
212294
|
+
exports.normalizeArgv = normalizeArgv;
|
|
212303
212295
|
var ejs = __importStar(require_ejs());
|
|
212304
212296
|
var util_1 = require_util2();
|
|
212305
212297
|
var ids_1 = require_ids();
|
|
@@ -212309,7 +212301,6 @@ var require_util3 = __commonJS({
|
|
|
212309
212301
|
}
|
|
212310
212302
|
return render;
|
|
212311
212303
|
}
|
|
212312
|
-
exports.template = template;
|
|
212313
212304
|
var isFlag = (s) => s.startsWith("-");
|
|
212314
212305
|
var isArgWithValue = (s) => s.includes("=");
|
|
212315
212306
|
function collateSpacedCmdIDFromArgs(argv, config) {
|
|
@@ -212353,13 +212344,11 @@ var require_util3 = __commonJS({
|
|
|
212353
212344
|
argv[0] = (0, ids_1.toStandardizedId)(argv[0], config);
|
|
212354
212345
|
return argv;
|
|
212355
212346
|
}
|
|
212356
|
-
exports.standardizeIDFromArgv = standardizeIDFromArgv;
|
|
212357
212347
|
function getHelpFlagAdditions(config) {
|
|
212358
212348
|
const helpFlags = ["--help"];
|
|
212359
212349
|
const additionalHelpFlags = config.pjson.oclif.additionalHelpFlags ?? [];
|
|
212360
212350
|
return [...(/* @__PURE__ */ new Set([...helpFlags, ...additionalHelpFlags])).values()];
|
|
212361
212351
|
}
|
|
212362
|
-
exports.getHelpFlagAdditions = getHelpFlagAdditions;
|
|
212363
212352
|
function formatFlagDeprecationWarning(flag, opts) {
|
|
212364
212353
|
let message = `The "${flag}" flag has been deprecated`;
|
|
212365
212354
|
if (opts === true)
|
|
@@ -212372,7 +212361,6 @@ var require_util3 = __commonJS({
|
|
|
212372
212361
|
message += opts.to ? `. Use "${opts.to}" instead.` : ".";
|
|
212373
212362
|
return message;
|
|
212374
212363
|
}
|
|
212375
|
-
exports.formatFlagDeprecationWarning = formatFlagDeprecationWarning;
|
|
212376
212364
|
function formatCommandDeprecationWarning(command, opts) {
|
|
212377
212365
|
let message = `The "${command}" command has been deprecated`;
|
|
212378
212366
|
if (!opts)
|
|
@@ -212385,13 +212373,11 @@ var require_util3 = __commonJS({
|
|
|
212385
212373
|
message += opts.to ? `. Use "${opts.to}" instead.` : ".";
|
|
212386
212374
|
return message;
|
|
212387
212375
|
}
|
|
212388
|
-
exports.formatCommandDeprecationWarning = formatCommandDeprecationWarning;
|
|
212389
212376
|
function normalizeArgv(config, argv = process.argv.slice(2)) {
|
|
212390
212377
|
if (config.topicSeparator !== ":" && !argv[0]?.includes(":"))
|
|
212391
212378
|
argv = standardizeIDFromArgv(argv, config);
|
|
212392
212379
|
return argv;
|
|
212393
212380
|
}
|
|
212394
|
-
exports.normalizeArgv = normalizeArgv;
|
|
212395
212381
|
}
|
|
212396
212382
|
});
|
|
212397
212383
|
|
|
@@ -212547,7 +212533,7 @@ var require_formatter = __commonJS({
|
|
|
212547
212533
|
newBody = body.map((entry) => [entry.name, entry.description]).map(([left, right]) => [this.render(left), right && this.render(right)]);
|
|
212548
212534
|
}
|
|
212549
212535
|
const output = [
|
|
212550
|
-
(0, theme_1.colorize)(this.config?.theme?.sectionHeader,
|
|
212536
|
+
(0, theme_1.colorize)(this.config?.theme?.sectionHeader, (0, theme_1.colorize)("bold", header)),
|
|
212551
212537
|
(0, theme_1.colorize)(this.config?.theme?.sectionDescription, this.indent(Array.isArray(newBody) ? this.renderList(newBody, { indentation: 2, stripAnsi: this.opts.stripAnsi }) : newBody))
|
|
212552
212538
|
].join("\n");
|
|
212553
212539
|
return this.opts.stripAnsi ? ansis_1.default.strip(output) : output;
|
|
@@ -212726,7 +212712,7 @@ ${multilineCommands}`;
|
|
|
212726
212712
|
if (flag.type === "option") {
|
|
212727
212713
|
let value = docopts_1.DocOpts.formatUsageType(flag, this.opts.showFlagNameInTitle ?? false, this.opts.showFlagOptionsInTitle ?? showOptions);
|
|
212728
212714
|
if (!value.includes("|"))
|
|
212729
|
-
value =
|
|
212715
|
+
value = (0, theme_1.colorize)("underline", value);
|
|
212730
212716
|
label += `=${value}`;
|
|
212731
212717
|
}
|
|
212732
212718
|
return (0, theme_1.colorize)(this.config.theme?.flag, label);
|
|
@@ -212949,7 +212935,8 @@ var require_help = __commonJS({
|
|
|
212949
212935
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
212950
212936
|
};
|
|
212951
212937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
212952
|
-
exports.
|
|
212938
|
+
exports.Help = exports.HelpBase = exports.standardizeIDFromArgv = exports.normalizeArgv = exports.getHelpFlagAdditions = exports.HelpFormatter = exports.CommandHelp = void 0;
|
|
212939
|
+
exports.loadHelpClass = loadHelpClass;
|
|
212953
212940
|
var ansis_1 = __importDefault(require_ansis());
|
|
212954
212941
|
var ts_path_1 = require_ts_path();
|
|
212955
212942
|
var error_1 = require_error();
|
|
@@ -213282,7 +213269,6 @@ ${error.message}`);
|
|
|
213282
213269
|
}
|
|
213283
213270
|
return Help;
|
|
213284
213271
|
}
|
|
213285
|
-
exports.loadHelpClass = loadHelpClass;
|
|
213286
213272
|
}
|
|
213287
213273
|
});
|
|
213288
213274
|
|
|
@@ -213295,7 +213281,8 @@ var require_handle = __commonJS({
|
|
|
213295
213281
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
213296
213282
|
};
|
|
213297
213283
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
213298
|
-
exports.
|
|
213284
|
+
exports.Exit = void 0;
|
|
213285
|
+
exports.handle = handle;
|
|
213299
213286
|
var clean_stack_1 = __importDefault(require_clean_stack());
|
|
213300
213287
|
var cache_1 = __importDefault(require_cache());
|
|
213301
213288
|
var index_1 = require_help();
|
|
@@ -213342,7 +213329,6 @@ var require_handle = __commonJS({
|
|
|
213342
213329
|
exports.Exit.exit(1);
|
|
213343
213330
|
}
|
|
213344
213331
|
}
|
|
213345
|
-
exports.handle = handle;
|
|
213346
213332
|
}
|
|
213347
213333
|
});
|
|
213348
213334
|
|
|
@@ -213610,7 +213596,7 @@ var require_determine_priority = __commonJS({
|
|
|
213610
213596
|
"use strict";
|
|
213611
213597
|
init_cjs_shims();
|
|
213612
213598
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
213613
|
-
exports.determinePriority =
|
|
213599
|
+
exports.determinePriority = determinePriority;
|
|
213614
213600
|
function determinePriority(plugins, commands) {
|
|
213615
213601
|
const commandPlugins = commands.sort((a, b) => {
|
|
213616
213602
|
const pluginAliasA = a.pluginAlias ?? "A-Cannot-Find-This";
|
|
@@ -213636,7 +213622,6 @@ var require_determine_priority = __commonJS({
|
|
|
213636
213622
|
});
|
|
213637
213623
|
return commandPlugins[0];
|
|
213638
213624
|
}
|
|
213639
|
-
exports.determinePriority = determinePriority;
|
|
213640
213625
|
}
|
|
213641
213626
|
});
|
|
213642
213627
|
|
|
@@ -213646,16 +213631,15 @@ var require_os = __commonJS({
|
|
|
213646
213631
|
"use strict";
|
|
213647
213632
|
init_cjs_shims();
|
|
213648
213633
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
213649
|
-
exports.
|
|
213634
|
+
exports.getHomeDir = getHomeDir;
|
|
213635
|
+
exports.getPlatform = getPlatform;
|
|
213650
213636
|
var node_os_1 = __require("node:os");
|
|
213651
213637
|
function getHomeDir() {
|
|
213652
213638
|
return (0, node_os_1.homedir)();
|
|
213653
213639
|
}
|
|
213654
|
-
exports.getHomeDir = getHomeDir;
|
|
213655
213640
|
function getPlatform() {
|
|
213656
213641
|
return (0, node_os_1.platform)();
|
|
213657
213642
|
}
|
|
213658
|
-
exports.getPlatform = getPlatform;
|
|
213659
213643
|
}
|
|
213660
213644
|
});
|
|
213661
213645
|
|
|
@@ -214966,10 +214950,11 @@ var require_commonjs = __commonJS({
|
|
|
214966
214950
|
for (let i = 0; i < globParts.length - 1; i++) {
|
|
214967
214951
|
for (let j = i + 1; j < globParts.length; j++) {
|
|
214968
214952
|
const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
|
|
214969
|
-
if (
|
|
214970
|
-
|
|
214971
|
-
|
|
214972
|
-
|
|
214953
|
+
if (matched) {
|
|
214954
|
+
globParts[i] = [];
|
|
214955
|
+
globParts[j] = matched;
|
|
214956
|
+
break;
|
|
214957
|
+
}
|
|
214973
214958
|
}
|
|
214974
214959
|
}
|
|
214975
214960
|
return globParts.filter((gs) => gs.length);
|
|
@@ -221569,7 +221554,10 @@ var require_flags = __commonJS({
|
|
|
221569
221554
|
"use strict";
|
|
221570
221555
|
init_cjs_shims();
|
|
221571
221556
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
221572
|
-
exports.
|
|
221557
|
+
exports.help = exports.version = exports.string = exports.url = exports.file = exports.directory = exports.integer = void 0;
|
|
221558
|
+
exports.custom = custom;
|
|
221559
|
+
exports.boolean = boolean;
|
|
221560
|
+
exports.option = option;
|
|
221573
221561
|
var node_url_1 = __require("node:url");
|
|
221574
221562
|
var errors_1 = require_errors();
|
|
221575
221563
|
var help_1 = require_help();
|
|
@@ -221584,7 +221572,6 @@ var require_flags = __commonJS({
|
|
|
221584
221572
|
type: "option"
|
|
221585
221573
|
});
|
|
221586
221574
|
}
|
|
221587
|
-
exports.custom = custom;
|
|
221588
221575
|
function boolean(options = {}) {
|
|
221589
221576
|
return {
|
|
221590
221577
|
parse: async (b, _) => b,
|
|
@@ -221593,7 +221580,6 @@ var require_flags = __commonJS({
|
|
|
221593
221580
|
type: "boolean"
|
|
221594
221581
|
};
|
|
221595
221582
|
}
|
|
221596
|
-
exports.boolean = boolean;
|
|
221597
221583
|
exports.integer = custom({
|
|
221598
221584
|
async parse(input, _, opts) {
|
|
221599
221585
|
if (!/^-?\d+$/.test(input))
|
|
@@ -221659,7 +221645,6 @@ var require_flags = __commonJS({
|
|
|
221659
221645
|
type: "option"
|
|
221660
221646
|
});
|
|
221661
221647
|
}
|
|
221662
|
-
exports.option = option;
|
|
221663
221648
|
}
|
|
221664
221649
|
});
|
|
221665
221650
|
|
|
@@ -221669,7 +221654,7 @@ var require_aggregate_flags = __commonJS({
|
|
|
221669
221654
|
"use strict";
|
|
221670
221655
|
init_cjs_shims();
|
|
221671
221656
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
221672
|
-
exports.aggregateFlags =
|
|
221657
|
+
exports.aggregateFlags = aggregateFlags;
|
|
221673
221658
|
var flags_1 = require_flags();
|
|
221674
221659
|
var json = (0, flags_1.boolean)({
|
|
221675
221660
|
description: "Format output as json.",
|
|
@@ -221679,7 +221664,6 @@ var require_aggregate_flags = __commonJS({
|
|
|
221679
221664
|
const combinedFlags = { ...baseFlags, ...flags };
|
|
221680
221665
|
return enableJsonFlag ? { json, ...combinedFlags } : combinedFlags;
|
|
221681
221666
|
}
|
|
221682
|
-
exports.aggregateFlags = aggregateFlags;
|
|
221683
221667
|
}
|
|
221684
221668
|
});
|
|
221685
221669
|
|
|
@@ -221689,7 +221673,7 @@ var require_cache_command = __commonJS({
|
|
|
221689
221673
|
"use strict";
|
|
221690
221674
|
init_cjs_shims();
|
|
221691
221675
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
221692
|
-
exports.cacheCommand =
|
|
221676
|
+
exports.cacheCommand = cacheCommand;
|
|
221693
221677
|
var aggregate_flags_1 = require_aggregate_flags();
|
|
221694
221678
|
var cache_default_value_1 = require_cache_default_value();
|
|
221695
221679
|
var ensure_arg_object_1 = require_ensure_arg_object();
|
|
@@ -221795,7 +221779,6 @@ var require_cache_command = __commonJS({
|
|
|
221795
221779
|
const additionalProperties = Object.fromEntries(keysToAdd.map((key) => [key, cmd[key]]));
|
|
221796
221780
|
return { ...stdProperties, ...additionalProperties };
|
|
221797
221781
|
}
|
|
221798
|
-
exports.cacheCommand = cacheCommand;
|
|
221799
221782
|
}
|
|
221800
221783
|
});
|
|
221801
221784
|
|
|
@@ -221805,14 +221788,14 @@ var require_find_root = __commonJS({
|
|
|
221805
221788
|
"use strict";
|
|
221806
221789
|
init_cjs_shims();
|
|
221807
221790
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
221808
|
-
exports.
|
|
221791
|
+
exports.debug = debug;
|
|
221792
|
+
exports.findRoot = findRoot;
|
|
221809
221793
|
var node_path_1 = __require("node:path");
|
|
221810
221794
|
var logger_1 = require_logger();
|
|
221811
221795
|
var fs_1 = require_fs();
|
|
221812
221796
|
function debug(...scope) {
|
|
221813
221797
|
return (formatter, ...args) => (0, logger_1.getLogger)(["find-root", ...scope].join(":")).debug(formatter, ...args);
|
|
221814
221798
|
}
|
|
221815
|
-
exports.debug = debug;
|
|
221816
221799
|
function* up(from) {
|
|
221817
221800
|
while ((0, node_path_1.dirname)(from) !== from) {
|
|
221818
221801
|
yield from;
|
|
@@ -221934,7 +221917,6 @@ var require_find_root = __commonJS({
|
|
|
221934
221917
|
debug("root-plugin")(found ? `Found root at ${found}` : "No root found!");
|
|
221935
221918
|
return found;
|
|
221936
221919
|
}
|
|
221937
|
-
exports.findRoot = findRoot;
|
|
221938
221920
|
}
|
|
221939
221921
|
});
|
|
221940
221922
|
|
|
@@ -222316,7 +222298,7 @@ var require_read_pjson = __commonJS({
|
|
|
222316
222298
|
"use strict";
|
|
222317
222299
|
init_cjs_shims();
|
|
222318
222300
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
222319
|
-
exports.readPjson =
|
|
222301
|
+
exports.readPjson = readPjson;
|
|
222320
222302
|
var lilconfig_1 = require_src2();
|
|
222321
222303
|
var node_path_1 = __require("node:path");
|
|
222322
222304
|
var logger_1 = require_logger();
|
|
@@ -222363,7 +222345,6 @@ var require_read_pjson = __commonJS({
|
|
|
222363
222345
|
oclif: result?.config ?? {}
|
|
222364
222346
|
};
|
|
222365
222347
|
}
|
|
222366
|
-
exports.readPjson = readPjson;
|
|
222367
222348
|
}
|
|
222368
222349
|
});
|
|
222369
222350
|
|
|
@@ -223453,6 +223434,10 @@ var require_config = __commonJS({
|
|
|
223453
223434
|
const SHELL = process.env.SHELL ?? (0, node_os_1.userInfo)().shell?.split(node_path_1.sep)?.pop();
|
|
223454
223435
|
if (SHELL) {
|
|
223455
223436
|
shellPath = SHELL.split("/");
|
|
223437
|
+
} else if (this.windows && process.title.toLowerCase().includes("powershell")) {
|
|
223438
|
+
shellPath = ["powershell"];
|
|
223439
|
+
} else if (this.windows && process.title.toLowerCase().includes("command prompt")) {
|
|
223440
|
+
shellPath = ["cmd.exe"];
|
|
223456
223441
|
} else if (this.windows && COMSPEC) {
|
|
223457
223442
|
shellPath = COMSPEC.split(/\\|\//);
|
|
223458
223443
|
} else {
|
|
@@ -223729,6 +223714,7 @@ var require_list = __commonJS({
|
|
|
223729
223714
|
"use strict";
|
|
223730
223715
|
init_cjs_shims();
|
|
223731
223716
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
223717
|
+
exports.default = renderList;
|
|
223732
223718
|
var screen_1 = require_screen();
|
|
223733
223719
|
var util_1 = require_util();
|
|
223734
223720
|
var wordwrap = require_wordwrap();
|
|
@@ -223754,7 +223740,6 @@ var require_list = __commonJS({
|
|
|
223754
223740
|
});
|
|
223755
223741
|
return lines.join("\n");
|
|
223756
223742
|
}
|
|
223757
|
-
exports.default = renderList;
|
|
223758
223743
|
}
|
|
223759
223744
|
});
|
|
223760
223745
|
|
|
@@ -223768,11 +223753,11 @@ var require_errors2 = __commonJS({
|
|
|
223768
223753
|
};
|
|
223769
223754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
223770
223755
|
exports.FailedFlagValidationError = exports.ArgInvalidOptionError = exports.FlagInvalidOptionError = exports.NonExistentFlagsError = exports.UnexpectedArgsError = exports.RequiredArgsError = exports.InvalidArgsSpecError = exports.CLIParseError = exports.CLIError = void 0;
|
|
223771
|
-
var ansis_1 = __importDefault(require_ansis());
|
|
223772
223756
|
var cache_1 = __importDefault(require_cache());
|
|
223773
223757
|
var errors_1 = require_errors();
|
|
223774
223758
|
var util_1 = require_util();
|
|
223775
223759
|
var list_1 = __importDefault(require_list());
|
|
223760
|
+
var theme_1 = require_theme2();
|
|
223776
223761
|
var errors_2 = require_errors();
|
|
223777
223762
|
Object.defineProperty(exports, "CLIError", { enumerable: true, get: function() {
|
|
223778
223763
|
return errors_2.CLIError;
|
|
@@ -223868,7 +223853,7 @@ Note: ${flags} allow${flagsWithMultiple.length === 1 ? "s" : ""} multiple values
|
|
|
223868
223853
|
const deduped = (0, util_1.uniq)(reasons);
|
|
223869
223854
|
const errString = deduped.length === 1 ? "error" : "errors";
|
|
223870
223855
|
const message = `The following ${errString} occurred:
|
|
223871
|
-
${
|
|
223856
|
+
${(0, theme_1.colorize)("dim", deduped.join("\n "))}`;
|
|
223872
223857
|
super({ exit: cache_1.default.getInstance().get("exitCodes")?.failedFlagValidation ?? exit, message, parse });
|
|
223873
223858
|
}
|
|
223874
223859
|
};
|
|
@@ -224301,7 +224286,7 @@ var require_validate = __commonJS({
|
|
|
224301
224286
|
"use strict";
|
|
224302
224287
|
init_cjs_shims();
|
|
224303
224288
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
224304
|
-
exports.validate =
|
|
224289
|
+
exports.validate = validate;
|
|
224305
224290
|
var util_1 = require_util();
|
|
224306
224291
|
var errors_1 = require_errors2();
|
|
224307
224292
|
async function validate(parse) {
|
|
@@ -224476,7 +224461,6 @@ var require_validate = __commonJS({
|
|
|
224476
224461
|
validateArgs();
|
|
224477
224462
|
return validateFlags();
|
|
224478
224463
|
}
|
|
224479
|
-
exports.validate = validate;
|
|
224480
224464
|
}
|
|
224481
224465
|
});
|
|
224482
224466
|
|
|
@@ -224485,13 +224469,11 @@ var require_help2 = __commonJS({
|
|
|
224485
224469
|
"node_modules/@oclif/core/lib/parser/help.js"(exports) {
|
|
224486
224470
|
"use strict";
|
|
224487
224471
|
init_cjs_shims();
|
|
224488
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
224489
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
224490
|
-
};
|
|
224491
224472
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
224492
|
-
exports.
|
|
224493
|
-
|
|
224473
|
+
exports.flagUsage = flagUsage;
|
|
224474
|
+
exports.flagUsages = flagUsages;
|
|
224494
224475
|
var util_1 = require_util();
|
|
224476
|
+
var ux_1 = require_ux();
|
|
224495
224477
|
function flagUsage(flag, options = {}) {
|
|
224496
224478
|
const label = [];
|
|
224497
224479
|
if (flag.helpLabel) {
|
|
@@ -224506,16 +224488,14 @@ var require_help2 = __commonJS({
|
|
|
224506
224488
|
let description = flag.summary || flag.description || "";
|
|
224507
224489
|
if (options.displayRequired && flag.required)
|
|
224508
224490
|
description = `(required) ${description}`;
|
|
224509
|
-
description = description ?
|
|
224491
|
+
description = description ? (0, ux_1.colorize)("dim", description) : void 0;
|
|
224510
224492
|
return [` ${label.join(",").trim()}${usage}`, description];
|
|
224511
224493
|
}
|
|
224512
|
-
exports.flagUsage = flagUsage;
|
|
224513
224494
|
function flagUsages(flags, options = {}) {
|
|
224514
224495
|
if (flags.length === 0)
|
|
224515
224496
|
return [];
|
|
224516
224497
|
return (0, util_1.sortBy)(flags, (f) => [f.char ? -1 : 1, f.char, f.name]).map((f) => flagUsage(f, options));
|
|
224517
224498
|
}
|
|
224518
|
-
exports.flagUsages = flagUsages;
|
|
224519
224499
|
}
|
|
224520
224500
|
});
|
|
224521
224501
|
|
|
@@ -224525,7 +224505,8 @@ var require_parser = __commonJS({
|
|
|
224525
224505
|
"use strict";
|
|
224526
224506
|
init_cjs_shims();
|
|
224527
224507
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
224528
|
-
exports.
|
|
224508
|
+
exports.flagUsages = void 0;
|
|
224509
|
+
exports.parse = parse;
|
|
224529
224510
|
var parse_1 = require_parse3();
|
|
224530
224511
|
var validate_1 = require_validate();
|
|
224531
224512
|
var help_1 = require_help2();
|
|
@@ -224546,7 +224527,6 @@ var require_parser = __commonJS({
|
|
|
224546
224527
|
await (0, validate_1.validate)({ input, output });
|
|
224547
224528
|
return output;
|
|
224548
224529
|
}
|
|
224549
|
-
exports.parse = parse;
|
|
224550
224530
|
}
|
|
224551
224531
|
});
|
|
224552
224532
|
|
|
@@ -224587,7 +224567,6 @@ var require_command2 = __commonJS({
|
|
|
224587
224567
|
};
|
|
224588
224568
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
224589
224569
|
exports.Command = void 0;
|
|
224590
|
-
var ansis_1 = __importDefault(require_ansis());
|
|
224591
224570
|
var node_url_1 = __require("node:url");
|
|
224592
224571
|
var node_util_1 = __require("node:util");
|
|
224593
224572
|
var cache_1 = __importDefault(require_cache());
|
|
@@ -224719,7 +224698,7 @@ var require_command2 = __commonJS({
|
|
|
224719
224698
|
if (!err.message)
|
|
224720
224699
|
throw err;
|
|
224721
224700
|
try {
|
|
224722
|
-
ux_1.ux.action.stop(
|
|
224701
|
+
ux_1.ux.action.stop(ux_1.ux.colorize("bold", ux_1.ux.colorize("red", "!")));
|
|
224723
224702
|
} catch {
|
|
224724
224703
|
}
|
|
224725
224704
|
throw err;
|
|
@@ -224874,7 +224853,7 @@ var require_flush = __commonJS({
|
|
|
224874
224853
|
"use strict";
|
|
224875
224854
|
init_cjs_shims();
|
|
224876
224855
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
224877
|
-
exports.flush =
|
|
224856
|
+
exports.flush = flush;
|
|
224878
224857
|
var error_1 = require_error();
|
|
224879
224858
|
function timeout(p, ms) {
|
|
224880
224859
|
function wait(ms2, unref = false) {
|
|
@@ -224898,7 +224877,6 @@ var require_flush = __commonJS({
|
|
|
224898
224877
|
async function flush(ms = 1e4) {
|
|
224899
224878
|
await timeout(_flush(), ms);
|
|
224900
224879
|
}
|
|
224901
|
-
exports.flush = flush;
|
|
224902
224880
|
}
|
|
224903
224881
|
});
|
|
224904
224882
|
|
|
@@ -224911,7 +224889,8 @@ var require_main = __commonJS({
|
|
|
224911
224889
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
224912
224890
|
};
|
|
224913
224891
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
224914
|
-
exports.
|
|
224892
|
+
exports.versionAddition = exports.helpAddition = void 0;
|
|
224893
|
+
exports.run = run;
|
|
224915
224894
|
var node_url_1 = __require("node:url");
|
|
224916
224895
|
var cache_1 = __importDefault(require_cache());
|
|
224917
224896
|
var config_1 = require_config2();
|
|
@@ -224998,7 +224977,6 @@ var require_main = __commonJS({
|
|
|
224998
224977
|
await collectPerf();
|
|
224999
224978
|
}
|
|
225000
224979
|
}
|
|
225001
|
-
exports.run = run;
|
|
225002
224980
|
}
|
|
225003
224981
|
});
|
|
225004
224982
|
|
|
@@ -225008,7 +224986,7 @@ var require_execute = __commonJS({
|
|
|
225008
224986
|
"use strict";
|
|
225009
224987
|
init_cjs_shims();
|
|
225010
224988
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
225011
|
-
exports.execute =
|
|
224989
|
+
exports.execute = execute;
|
|
225012
224990
|
var errors_1 = require_errors();
|
|
225013
224991
|
var handle_1 = require_handle();
|
|
225014
224992
|
var flush_1 = require_flush();
|
|
@@ -225027,7 +225005,6 @@ var require_execute = __commonJS({
|
|
|
225027
225005
|
return result;
|
|
225028
225006
|
}).catch(async (error) => (0, handle_1.handle)(error));
|
|
225029
225007
|
}
|
|
225030
|
-
exports.execute = execute;
|
|
225031
225008
|
}
|
|
225032
225009
|
});
|
|
225033
225010
|
|
|
@@ -225073,7 +225050,7 @@ var require_lib = __commonJS({
|
|
|
225073
225050
|
return result;
|
|
225074
225051
|
};
|
|
225075
225052
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
225076
|
-
exports.ux = exports.toStandardizedId = exports.toConfiguredId = exports.settings = exports.Performance = exports.Parser = exports.ModuleLoader = exports.
|
|
225053
|
+
exports.ux = exports.toStandardizedId = exports.toConfiguredId = exports.settings = exports.Performance = exports.Parser = exports.ModuleLoader = exports.getLogger = exports.Interfaces = exports.loadHelpClass = exports.HelpBase = exports.Help = exports.CommandHelp = exports.flush = exports.Flags = exports.execute = exports.handle = exports.Errors = exports.Plugin = exports.Config = exports.Command = exports.Args = void 0;
|
|
225077
225054
|
function checkCWD() {
|
|
225078
225055
|
try {
|
|
225079
225056
|
process.cwd();
|
|
@@ -225157,8 +225134,8 @@ var require_lib = __commonJS({
|
|
|
225157
225134
|
});
|
|
225158
225135
|
|
|
225159
225136
|
export {
|
|
225160
|
-
require_ansis,
|
|
225161
225137
|
require_src,
|
|
225138
|
+
require_ansis,
|
|
225162
225139
|
require_lib
|
|
225163
225140
|
};
|
|
225164
225141
|
/*! Bundled license information:
|