@mcesystems/adb-kit 1.0.64 → 1.0.65
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/index.js +210 -173
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +217 -175
- package/dist/index.mjs.map +4 -4
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -10,9 +10,16 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
10
10
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
|
+
var __esm = (fn, res) => function __init() {
|
|
14
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
15
|
+
};
|
|
13
16
|
var __commonJS = (cb, mod) => function __require3() {
|
|
14
17
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
18
|
};
|
|
19
|
+
var __export = (target, all) => {
|
|
20
|
+
for (var name in all)
|
|
21
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
22
|
+
};
|
|
16
23
|
var __copyProps = (to, from, except, desc) => {
|
|
17
24
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
25
|
for (let key of __getOwnPropNames(from))
|
|
@@ -29,6 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
36
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
37
|
mod
|
|
31
38
|
));
|
|
39
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
40
|
|
|
33
41
|
// ../../node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/es5.js
|
|
34
42
|
var require_es5 = __commonJS({
|
|
@@ -5807,7 +5815,7 @@ var require_ms = __commonJS({
|
|
|
5807
5815
|
// ../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
|
|
5808
5816
|
var require_common = __commonJS({
|
|
5809
5817
|
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports2, module2) {
|
|
5810
|
-
function setup(
|
|
5818
|
+
function setup(env4) {
|
|
5811
5819
|
createDebug.debug = createDebug;
|
|
5812
5820
|
createDebug.default = createDebug;
|
|
5813
5821
|
createDebug.coerce = coerce;
|
|
@@ -5816,8 +5824,8 @@ var require_common = __commonJS({
|
|
|
5816
5824
|
createDebug.enabled = enabled;
|
|
5817
5825
|
createDebug.humanize = require_ms();
|
|
5818
5826
|
createDebug.destroy = destroy;
|
|
5819
|
-
Object.keys(
|
|
5820
|
-
createDebug[key] =
|
|
5827
|
+
Object.keys(env4).forEach((key) => {
|
|
5828
|
+
createDebug[key] = env4[key];
|
|
5821
5829
|
});
|
|
5822
5830
|
createDebug.names = [];
|
|
5823
5831
|
createDebug.skips = [];
|
|
@@ -6137,125 +6145,159 @@ var require_browser = __commonJS({
|
|
|
6137
6145
|
}
|
|
6138
6146
|
});
|
|
6139
6147
|
|
|
6140
|
-
// ../../node_modules/.pnpm/
|
|
6141
|
-
var
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
6146
|
-
const position = argv.indexOf(prefix + flag);
|
|
6147
|
-
const terminatorPosition = argv.indexOf("--");
|
|
6148
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
6149
|
-
};
|
|
6150
|
-
}
|
|
6148
|
+
// ../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js
|
|
6149
|
+
var supports_color_exports = {};
|
|
6150
|
+
__export(supports_color_exports, {
|
|
6151
|
+
createSupportsColor: () => createSupportsColor,
|
|
6152
|
+
default: () => supports_color_default
|
|
6151
6153
|
});
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6154
|
+
import process2 from "node:process";
|
|
6155
|
+
import os from "node:os";
|
|
6156
|
+
import tty from "node:tty";
|
|
6157
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
|
|
6158
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
6159
|
+
const position = argv.indexOf(prefix + flag);
|
|
6160
|
+
const terminatorPosition = argv.indexOf("--");
|
|
6161
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
6162
|
+
}
|
|
6163
|
+
function envForceColor() {
|
|
6164
|
+
if (!("FORCE_COLOR" in env2)) {
|
|
6165
|
+
return;
|
|
6166
|
+
}
|
|
6167
|
+
if (env2.FORCE_COLOR === "true") {
|
|
6168
|
+
return 1;
|
|
6169
|
+
}
|
|
6170
|
+
if (env2.FORCE_COLOR === "false") {
|
|
6171
|
+
return 0;
|
|
6172
|
+
}
|
|
6173
|
+
if (env2.FORCE_COLOR.length === 0) {
|
|
6174
|
+
return 1;
|
|
6175
|
+
}
|
|
6176
|
+
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
6177
|
+
if (![0, 1, 2, 3].includes(level)) {
|
|
6178
|
+
return;
|
|
6179
|
+
}
|
|
6180
|
+
return level;
|
|
6181
|
+
}
|
|
6182
|
+
function translateLevel(level) {
|
|
6183
|
+
if (level === 0) {
|
|
6184
|
+
return false;
|
|
6185
|
+
}
|
|
6186
|
+
return {
|
|
6187
|
+
level,
|
|
6188
|
+
hasBasic: true,
|
|
6189
|
+
has256: level >= 2,
|
|
6190
|
+
has16m: level >= 3
|
|
6191
|
+
};
|
|
6192
|
+
}
|
|
6193
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
6194
|
+
const noFlagForceColor = envForceColor();
|
|
6195
|
+
if (noFlagForceColor !== void 0) {
|
|
6196
|
+
flagForceColor = noFlagForceColor;
|
|
6197
|
+
}
|
|
6198
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
6199
|
+
if (forceColor === 0) {
|
|
6200
|
+
return 0;
|
|
6201
|
+
}
|
|
6202
|
+
if (sniffFlags) {
|
|
6203
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
6204
|
+
return 3;
|
|
6166
6205
|
}
|
|
6167
|
-
if ("
|
|
6168
|
-
|
|
6169
|
-
forceColor = 1;
|
|
6170
|
-
} else if (env3.FORCE_COLOR === "false") {
|
|
6171
|
-
forceColor = 0;
|
|
6172
|
-
} else {
|
|
6173
|
-
forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
|
|
6174
|
-
}
|
|
6206
|
+
if (hasFlag("color=256")) {
|
|
6207
|
+
return 2;
|
|
6175
6208
|
}
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6209
|
+
}
|
|
6210
|
+
if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
|
|
6211
|
+
return 1;
|
|
6212
|
+
}
|
|
6213
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
6214
|
+
return 0;
|
|
6215
|
+
}
|
|
6216
|
+
const min = forceColor || 0;
|
|
6217
|
+
if (env2.TERM === "dumb") {
|
|
6218
|
+
return min;
|
|
6219
|
+
}
|
|
6220
|
+
if (process2.platform === "win32") {
|
|
6221
|
+
const osRelease = os.release().split(".");
|
|
6222
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
6223
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
6186
6224
|
}
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
6219
|
-
}
|
|
6220
|
-
if (env3.COLORTERM === "truecolor") {
|
|
6221
|
-
return 3;
|
|
6222
|
-
}
|
|
6223
|
-
if ("TERM_PROGRAM" in env3) {
|
|
6224
|
-
const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
6225
|
-
switch (env3.TERM_PROGRAM) {
|
|
6226
|
-
case "iTerm.app":
|
|
6227
|
-
return version >= 3 ? 3 : 2;
|
|
6228
|
-
case "Apple_Terminal":
|
|
6229
|
-
return 2;
|
|
6230
|
-
}
|
|
6225
|
+
return 1;
|
|
6226
|
+
}
|
|
6227
|
+
if ("CI" in env2) {
|
|
6228
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
|
|
6229
|
+
return 3;
|
|
6230
|
+
}
|
|
6231
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
6232
|
+
return 1;
|
|
6233
|
+
}
|
|
6234
|
+
return min;
|
|
6235
|
+
}
|
|
6236
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
6237
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
6238
|
+
}
|
|
6239
|
+
if (env2.COLORTERM === "truecolor") {
|
|
6240
|
+
return 3;
|
|
6241
|
+
}
|
|
6242
|
+
if (env2.TERM === "xterm-kitty") {
|
|
6243
|
+
return 3;
|
|
6244
|
+
}
|
|
6245
|
+
if (env2.TERM === "xterm-ghostty") {
|
|
6246
|
+
return 3;
|
|
6247
|
+
}
|
|
6248
|
+
if (env2.TERM === "wezterm") {
|
|
6249
|
+
return 3;
|
|
6250
|
+
}
|
|
6251
|
+
if ("TERM_PROGRAM" in env2) {
|
|
6252
|
+
const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
6253
|
+
switch (env2.TERM_PROGRAM) {
|
|
6254
|
+
case "iTerm.app": {
|
|
6255
|
+
return version >= 3 ? 3 : 2;
|
|
6231
6256
|
}
|
|
6232
|
-
|
|
6257
|
+
case "Apple_Terminal": {
|
|
6233
6258
|
return 2;
|
|
6234
6259
|
}
|
|
6235
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
|
|
6236
|
-
return 1;
|
|
6237
|
-
}
|
|
6238
|
-
if ("COLORTERM" in env3) {
|
|
6239
|
-
return 1;
|
|
6240
|
-
}
|
|
6241
|
-
return min;
|
|
6242
6260
|
}
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6261
|
+
}
|
|
6262
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
6263
|
+
return 2;
|
|
6264
|
+
}
|
|
6265
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
6266
|
+
return 1;
|
|
6267
|
+
}
|
|
6268
|
+
if ("COLORTERM" in env2) {
|
|
6269
|
+
return 1;
|
|
6270
|
+
}
|
|
6271
|
+
return min;
|
|
6272
|
+
}
|
|
6273
|
+
function createSupportsColor(stream, options = {}) {
|
|
6274
|
+
const level = _supportsColor(stream, {
|
|
6275
|
+
streamIsTTY: stream && stream.isTTY,
|
|
6276
|
+
...options
|
|
6277
|
+
});
|
|
6278
|
+
return translateLevel(level);
|
|
6279
|
+
}
|
|
6280
|
+
var env2, flagForceColor, supportsColor, supports_color_default;
|
|
6281
|
+
var init_supports_color = __esm({
|
|
6282
|
+
"../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
|
|
6283
|
+
({ env: env2 } = process2);
|
|
6284
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
6285
|
+
flagForceColor = 0;
|
|
6286
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
6287
|
+
flagForceColor = 1;
|
|
6246
6288
|
}
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
6289
|
+
supportsColor = {
|
|
6290
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
6291
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
6251
6292
|
};
|
|
6293
|
+
supports_color_default = supportsColor;
|
|
6252
6294
|
}
|
|
6253
6295
|
});
|
|
6254
6296
|
|
|
6255
6297
|
// ../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js
|
|
6256
6298
|
var require_node = __commonJS({
|
|
6257
6299
|
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports2, module2) {
|
|
6258
|
-
var
|
|
6300
|
+
var tty3 = __require("tty");
|
|
6259
6301
|
var util = __require("util");
|
|
6260
6302
|
exports2.init = init;
|
|
6261
6303
|
exports2.log = log;
|
|
@@ -6270,8 +6312,8 @@ var require_node = __commonJS({
|
|
|
6270
6312
|
);
|
|
6271
6313
|
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
6272
6314
|
try {
|
|
6273
|
-
const
|
|
6274
|
-
if (
|
|
6315
|
+
const supportsColor3 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
6316
|
+
if (supportsColor3 && (supportsColor3.stderr || supportsColor3).level >= 2) {
|
|
6275
6317
|
exports2.colors = [
|
|
6276
6318
|
20,
|
|
6277
6319
|
21,
|
|
@@ -6373,7 +6415,7 @@ var require_node = __commonJS({
|
|
|
6373
6415
|
return obj2;
|
|
6374
6416
|
}, {});
|
|
6375
6417
|
function useColors() {
|
|
6376
|
-
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) :
|
|
6418
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty3.isatty(process.stderr.fd);
|
|
6377
6419
|
}
|
|
6378
6420
|
function formatArgs(args) {
|
|
6379
6421
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -30176,9 +30218,9 @@ var require_dist = __commonJS({
|
|
|
30176
30218
|
var adbkit = __toESM(require_dist());
|
|
30177
30219
|
|
|
30178
30220
|
// ../tool-debug/dist/index.mjs
|
|
30179
|
-
import
|
|
30180
|
-
import
|
|
30181
|
-
import
|
|
30221
|
+
import process22 from "node:process";
|
|
30222
|
+
import os2 from "node:os";
|
|
30223
|
+
import tty2 from "node:tty";
|
|
30182
30224
|
var __create2 = Object.create;
|
|
30183
30225
|
var __defProp2 = Object.defineProperty;
|
|
30184
30226
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -30191,13 +30233,13 @@ var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __re
|
|
|
30191
30233
|
if (typeof __require !== "undefined") return __require.apply(this, arguments);
|
|
30192
30234
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
30193
30235
|
});
|
|
30194
|
-
var
|
|
30236
|
+
var __esm2 = (fn, res) => function __init() {
|
|
30195
30237
|
return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
|
|
30196
30238
|
};
|
|
30197
30239
|
var __commonJS2 = (cb, mod) => function __require22() {
|
|
30198
30240
|
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
30199
30241
|
};
|
|
30200
|
-
var
|
|
30242
|
+
var __export2 = (target, all) => {
|
|
30201
30243
|
for (var name in all)
|
|
30202
30244
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
30203
30245
|
};
|
|
@@ -30217,7 +30259,7 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__
|
|
|
30217
30259
|
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
30218
30260
|
mod
|
|
30219
30261
|
));
|
|
30220
|
-
var
|
|
30262
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
30221
30263
|
var require_ms2 = __commonJS2({
|
|
30222
30264
|
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports2, module2) {
|
|
30223
30265
|
var s = 1e3;
|
|
@@ -30675,37 +30717,37 @@ var require_browser2 = __commonJS2({
|
|
|
30675
30717
|
};
|
|
30676
30718
|
}
|
|
30677
30719
|
});
|
|
30678
|
-
var
|
|
30679
|
-
|
|
30680
|
-
createSupportsColor: () =>
|
|
30681
|
-
default: () =>
|
|
30720
|
+
var supports_color_exports2 = {};
|
|
30721
|
+
__export2(supports_color_exports2, {
|
|
30722
|
+
createSupportsColor: () => createSupportsColor2,
|
|
30723
|
+
default: () => supports_color_default2
|
|
30682
30724
|
});
|
|
30683
|
-
function
|
|
30725
|
+
function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process22.argv) {
|
|
30684
30726
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
30685
30727
|
const position = argv.indexOf(prefix + flag);
|
|
30686
30728
|
const terminatorPosition = argv.indexOf("--");
|
|
30687
30729
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
30688
30730
|
}
|
|
30689
|
-
function
|
|
30690
|
-
if (!("FORCE_COLOR" in
|
|
30731
|
+
function envForceColor2() {
|
|
30732
|
+
if (!("FORCE_COLOR" in env3)) {
|
|
30691
30733
|
return;
|
|
30692
30734
|
}
|
|
30693
|
-
if (
|
|
30735
|
+
if (env3.FORCE_COLOR === "true") {
|
|
30694
30736
|
return 1;
|
|
30695
30737
|
}
|
|
30696
|
-
if (
|
|
30738
|
+
if (env3.FORCE_COLOR === "false") {
|
|
30697
30739
|
return 0;
|
|
30698
30740
|
}
|
|
30699
|
-
if (
|
|
30741
|
+
if (env3.FORCE_COLOR.length === 0) {
|
|
30700
30742
|
return 1;
|
|
30701
30743
|
}
|
|
30702
|
-
const level = Math.min(Number.parseInt(
|
|
30744
|
+
const level = Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
|
|
30703
30745
|
if (![0, 1, 2, 3].includes(level)) {
|
|
30704
30746
|
return;
|
|
30705
30747
|
}
|
|
30706
30748
|
return level;
|
|
30707
30749
|
}
|
|
30708
|
-
function
|
|
30750
|
+
function translateLevel2(level) {
|
|
30709
30751
|
if (level === 0) {
|
|
30710
30752
|
return false;
|
|
30711
30753
|
}
|
|
@@ -30716,67 +30758,67 @@ function translateLevel(level) {
|
|
|
30716
30758
|
has16m: level >= 3
|
|
30717
30759
|
};
|
|
30718
30760
|
}
|
|
30719
|
-
function
|
|
30720
|
-
const noFlagForceColor =
|
|
30761
|
+
function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
30762
|
+
const noFlagForceColor = envForceColor2();
|
|
30721
30763
|
if (noFlagForceColor !== void 0) {
|
|
30722
|
-
|
|
30764
|
+
flagForceColor2 = noFlagForceColor;
|
|
30723
30765
|
}
|
|
30724
|
-
const forceColor = sniffFlags ?
|
|
30766
|
+
const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
|
|
30725
30767
|
if (forceColor === 0) {
|
|
30726
30768
|
return 0;
|
|
30727
30769
|
}
|
|
30728
30770
|
if (sniffFlags) {
|
|
30729
|
-
if (
|
|
30771
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
30730
30772
|
return 3;
|
|
30731
30773
|
}
|
|
30732
|
-
if (
|
|
30774
|
+
if (hasFlag2("color=256")) {
|
|
30733
30775
|
return 2;
|
|
30734
30776
|
}
|
|
30735
30777
|
}
|
|
30736
|
-
if ("TF_BUILD" in
|
|
30778
|
+
if ("TF_BUILD" in env3 && "AGENT_NAME" in env3) {
|
|
30737
30779
|
return 1;
|
|
30738
30780
|
}
|
|
30739
30781
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
30740
30782
|
return 0;
|
|
30741
30783
|
}
|
|
30742
30784
|
const min = forceColor || 0;
|
|
30743
|
-
if (
|
|
30785
|
+
if (env3.TERM === "dumb") {
|
|
30744
30786
|
return min;
|
|
30745
30787
|
}
|
|
30746
|
-
if (
|
|
30747
|
-
const osRelease =
|
|
30788
|
+
if (process22.platform === "win32") {
|
|
30789
|
+
const osRelease = os2.release().split(".");
|
|
30748
30790
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
30749
30791
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
30750
30792
|
}
|
|
30751
30793
|
return 1;
|
|
30752
30794
|
}
|
|
30753
|
-
if ("CI" in
|
|
30754
|
-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in
|
|
30795
|
+
if ("CI" in env3) {
|
|
30796
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env3)) {
|
|
30755
30797
|
return 3;
|
|
30756
30798
|
}
|
|
30757
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in
|
|
30799
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
|
|
30758
30800
|
return 1;
|
|
30759
30801
|
}
|
|
30760
30802
|
return min;
|
|
30761
30803
|
}
|
|
30762
|
-
if ("TEAMCITY_VERSION" in
|
|
30763
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
30804
|
+
if ("TEAMCITY_VERSION" in env3) {
|
|
30805
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
30764
30806
|
}
|
|
30765
|
-
if (
|
|
30807
|
+
if (env3.COLORTERM === "truecolor") {
|
|
30766
30808
|
return 3;
|
|
30767
30809
|
}
|
|
30768
|
-
if (
|
|
30810
|
+
if (env3.TERM === "xterm-kitty") {
|
|
30769
30811
|
return 3;
|
|
30770
30812
|
}
|
|
30771
|
-
if (
|
|
30813
|
+
if (env3.TERM === "xterm-ghostty") {
|
|
30772
30814
|
return 3;
|
|
30773
30815
|
}
|
|
30774
|
-
if (
|
|
30816
|
+
if (env3.TERM === "wezterm") {
|
|
30775
30817
|
return 3;
|
|
30776
30818
|
}
|
|
30777
|
-
if ("TERM_PROGRAM" in
|
|
30778
|
-
const version = Number.parseInt((
|
|
30779
|
-
switch (
|
|
30819
|
+
if ("TERM_PROGRAM" in env3) {
|
|
30820
|
+
const version = Number.parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
30821
|
+
switch (env3.TERM_PROGRAM) {
|
|
30780
30822
|
case "iTerm.app": {
|
|
30781
30823
|
return version >= 3 ? 3 : 2;
|
|
30782
30824
|
}
|
|
@@ -30785,46 +30827,46 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
30785
30827
|
}
|
|
30786
30828
|
}
|
|
30787
30829
|
}
|
|
30788
|
-
if (/-256(color)?$/i.test(
|
|
30830
|
+
if (/-256(color)?$/i.test(env3.TERM)) {
|
|
30789
30831
|
return 2;
|
|
30790
30832
|
}
|
|
30791
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
30833
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
|
|
30792
30834
|
return 1;
|
|
30793
30835
|
}
|
|
30794
|
-
if ("COLORTERM" in
|
|
30836
|
+
if ("COLORTERM" in env3) {
|
|
30795
30837
|
return 1;
|
|
30796
30838
|
}
|
|
30797
30839
|
return min;
|
|
30798
30840
|
}
|
|
30799
|
-
function
|
|
30800
|
-
const level =
|
|
30841
|
+
function createSupportsColor2(stream, options = {}) {
|
|
30842
|
+
const level = _supportsColor2(stream, {
|
|
30801
30843
|
streamIsTTY: stream && stream.isTTY,
|
|
30802
30844
|
...options
|
|
30803
30845
|
});
|
|
30804
|
-
return
|
|
30846
|
+
return translateLevel2(level);
|
|
30805
30847
|
}
|
|
30806
|
-
var
|
|
30807
|
-
var
|
|
30808
|
-
var
|
|
30809
|
-
var
|
|
30810
|
-
var
|
|
30848
|
+
var env3;
|
|
30849
|
+
var flagForceColor2;
|
|
30850
|
+
var supportsColor2;
|
|
30851
|
+
var supports_color_default2;
|
|
30852
|
+
var init_supports_color2 = __esm2({
|
|
30811
30853
|
"../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
|
|
30812
|
-
({ env:
|
|
30813
|
-
if (
|
|
30814
|
-
|
|
30815
|
-
} else if (
|
|
30816
|
-
|
|
30854
|
+
({ env: env3 } = process22);
|
|
30855
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
30856
|
+
flagForceColor2 = 0;
|
|
30857
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
30858
|
+
flagForceColor2 = 1;
|
|
30817
30859
|
}
|
|
30818
|
-
|
|
30819
|
-
stdout:
|
|
30820
|
-
stderr:
|
|
30860
|
+
supportsColor2 = {
|
|
30861
|
+
stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
|
|
30862
|
+
stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
|
|
30821
30863
|
};
|
|
30822
|
-
|
|
30864
|
+
supports_color_default2 = supportsColor2;
|
|
30823
30865
|
}
|
|
30824
30866
|
});
|
|
30825
30867
|
var require_node2 = __commonJS2({
|
|
30826
30868
|
"../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/node.js"(exports2, module2) {
|
|
30827
|
-
var
|
|
30869
|
+
var tty22 = __require2("tty");
|
|
30828
30870
|
var util = __require2("util");
|
|
30829
30871
|
exports2.init = init;
|
|
30830
30872
|
exports2.log = log;
|
|
@@ -30839,8 +30881,8 @@ var require_node2 = __commonJS2({
|
|
|
30839
30881
|
);
|
|
30840
30882
|
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
30841
30883
|
try {
|
|
30842
|
-
const
|
|
30843
|
-
if (
|
|
30884
|
+
const supportsColor22 = (init_supports_color2(), __toCommonJS2(supports_color_exports2));
|
|
30885
|
+
if (supportsColor22 && (supportsColor22.stderr || supportsColor22).level >= 2) {
|
|
30844
30886
|
exports2.colors = [
|
|
30845
30887
|
20,
|
|
30846
30888
|
21,
|
|
@@ -30942,7 +30984,7 @@ var require_node2 = __commonJS2({
|
|
|
30942
30984
|
return obj2;
|
|
30943
30985
|
}, {});
|
|
30944
30986
|
function useColors() {
|
|
30945
|
-
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) :
|
|
30987
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty22.isatty(process.stderr.fd);
|
|
30946
30988
|
}
|
|
30947
30989
|
function formatArgs(args) {
|
|
30948
30990
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -31057,7 +31099,7 @@ function setLogLevel(level) {
|
|
|
31057
31099
|
|
|
31058
31100
|
// ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
|
|
31059
31101
|
import net from "node:net";
|
|
31060
|
-
import
|
|
31102
|
+
import os3 from "node:os";
|
|
31061
31103
|
var Locked = class extends Error {
|
|
31062
31104
|
constructor(port) {
|
|
31063
31105
|
super(`${port} is locked`);
|
|
@@ -31072,7 +31114,7 @@ var minPort = 1024;
|
|
|
31072
31114
|
var maxPort = 65535;
|
|
31073
31115
|
var timeout;
|
|
31074
31116
|
var getLocalHosts = () => {
|
|
31075
|
-
const interfaces =
|
|
31117
|
+
const interfaces = os3.networkInterfaces();
|
|
31076
31118
|
const results = /* @__PURE__ */ new Set([void 0, "0.0.0.0"]);
|
|
31077
31119
|
for (const _interface of Object.values(interfaces)) {
|
|
31078
31120
|
for (const config of _interface) {
|