@wix/create-app 0.0.195 → 0.0.197
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/build/{chunk-RMTG2O6O.js → chunk-EZCLLWTT.js} +4 -2
- package/build/{chunk-RMTG2O6O.js.map → chunk-EZCLLWTT.js.map} +1 -1
- package/build/{generator-IR4XXCUW.js → generator-GFT3B4NL.js} +2 -2
- package/build/index.js +1010 -505
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-IR4XXCUW.js.map → generator-GFT3B4NL.js.map} +0 -0
package/build/index.js
CHANGED
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
setupTestEnv,
|
|
100
100
|
writeJson,
|
|
101
101
|
zod_default
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-EZCLLWTT.js";
|
|
103
103
|
import {
|
|
104
104
|
__commonJS,
|
|
105
105
|
__dirname,
|
|
@@ -1071,7 +1071,7 @@ var require_ci_info = __commonJS({
|
|
|
1071
1071
|
"use strict";
|
|
1072
1072
|
init_esm_shims();
|
|
1073
1073
|
var vendors = require_vendors();
|
|
1074
|
-
var
|
|
1074
|
+
var env3 = process.env;
|
|
1075
1075
|
Object.defineProperty(exports, "_vendors", {
|
|
1076
1076
|
value: vendors.map(function(v) {
|
|
1077
1077
|
return v.constant;
|
|
@@ -1091,14 +1091,14 @@ var require_ci_info = __commonJS({
|
|
|
1091
1091
|
exports.name = vendor.name;
|
|
1092
1092
|
switch (typeof vendor.pr) {
|
|
1093
1093
|
case "string":
|
|
1094
|
-
exports.isPR = !!
|
|
1094
|
+
exports.isPR = !!env3[vendor.pr];
|
|
1095
1095
|
break;
|
|
1096
1096
|
case "object":
|
|
1097
1097
|
if ("env" in vendor.pr) {
|
|
1098
|
-
exports.isPR = vendor.pr.env in
|
|
1098
|
+
exports.isPR = vendor.pr.env in env3 && env3[vendor.pr.env] !== vendor.pr.ne;
|
|
1099
1099
|
} else if ("any" in vendor.pr) {
|
|
1100
1100
|
exports.isPR = vendor.pr.any.some(function(key) {
|
|
1101
|
-
return !!
|
|
1101
|
+
return !!env3[key];
|
|
1102
1102
|
});
|
|
1103
1103
|
} else {
|
|
1104
1104
|
exports.isPR = checkEnv(vendor.pr);
|
|
@@ -1108,29 +1108,29 @@ var require_ci_info = __commonJS({
|
|
|
1108
1108
|
exports.isPR = null;
|
|
1109
1109
|
}
|
|
1110
1110
|
});
|
|
1111
|
-
exports.isCI = !!(
|
|
1112
|
-
(
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1111
|
+
exports.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
1112
|
+
(env3.BUILD_ID || // Jenkins, Cloudbees
|
|
1113
|
+
env3.BUILD_NUMBER || // Jenkins, TeamCity
|
|
1114
|
+
env3.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
|
1115
|
+
env3.CI_APP_ID || // Appflow
|
|
1116
|
+
env3.CI_BUILD_ID || // Appflow
|
|
1117
|
+
env3.CI_BUILD_NUMBER || // Appflow
|
|
1118
|
+
env3.CI_NAME || // Codeship and others
|
|
1119
|
+
env3.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
1120
|
+
env3.RUN_ID || // TaskCluster, dsari
|
|
1121
1121
|
exports.name || false));
|
|
1122
1122
|
function checkEnv(obj) {
|
|
1123
|
-
if (typeof obj === "string") return !!
|
|
1123
|
+
if (typeof obj === "string") return !!env3[obj];
|
|
1124
1124
|
if ("env" in obj) {
|
|
1125
|
-
return
|
|
1125
|
+
return env3[obj.env] && env3[obj.env].includes(obj.includes);
|
|
1126
1126
|
}
|
|
1127
1127
|
if ("any" in obj) {
|
|
1128
1128
|
return obj.any.some(function(k) {
|
|
1129
|
-
return !!
|
|
1129
|
+
return !!env3[k];
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
1132
|
return Object.keys(obj).every(function(k) {
|
|
1133
|
-
return
|
|
1133
|
+
return env3[k] === obj[k];
|
|
1134
1134
|
});
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
@@ -1189,11 +1189,11 @@ var require_signal_exit = __commonJS({
|
|
|
1189
1189
|
"../../node_modules/ink/node_modules/signal-exit/index.js"(exports, module2) {
|
|
1190
1190
|
"use strict";
|
|
1191
1191
|
init_esm_shims();
|
|
1192
|
-
var
|
|
1193
|
-
var processOk = function(
|
|
1194
|
-
return
|
|
1192
|
+
var process26 = global.process;
|
|
1193
|
+
var processOk = function(process27) {
|
|
1194
|
+
return process27 && typeof process27 === "object" && typeof process27.removeListener === "function" && typeof process27.emit === "function" && typeof process27.reallyExit === "function" && typeof process27.listeners === "function" && typeof process27.kill === "function" && typeof process27.pid === "number" && typeof process27.on === "function";
|
|
1195
1195
|
};
|
|
1196
|
-
if (!processOk(
|
|
1196
|
+
if (!processOk(process26)) {
|
|
1197
1197
|
module2.exports = function() {
|
|
1198
1198
|
return function() {
|
|
1199
1199
|
};
|
|
@@ -1201,15 +1201,15 @@ var require_signal_exit = __commonJS({
|
|
|
1201
1201
|
} else {
|
|
1202
1202
|
assert = __require("assert");
|
|
1203
1203
|
signals = require_signals();
|
|
1204
|
-
isWin = /^win/i.test(
|
|
1204
|
+
isWin = /^win/i.test(process26.platform);
|
|
1205
1205
|
EE = __require("events");
|
|
1206
1206
|
if (typeof EE !== "function") {
|
|
1207
1207
|
EE = EE.EventEmitter;
|
|
1208
1208
|
}
|
|
1209
|
-
if (
|
|
1210
|
-
emitter =
|
|
1209
|
+
if (process26.__signal_exit_emitter__) {
|
|
1210
|
+
emitter = process26.__signal_exit_emitter__;
|
|
1211
1211
|
} else {
|
|
1212
|
-
emitter =
|
|
1212
|
+
emitter = process26.__signal_exit_emitter__ = new EE();
|
|
1213
1213
|
emitter.count = 0;
|
|
1214
1214
|
emitter.emitted = {};
|
|
1215
1215
|
}
|
|
@@ -1246,12 +1246,12 @@ var require_signal_exit = __commonJS({
|
|
|
1246
1246
|
loaded = false;
|
|
1247
1247
|
signals.forEach(function(sig) {
|
|
1248
1248
|
try {
|
|
1249
|
-
|
|
1249
|
+
process26.removeListener(sig, sigListeners[sig]);
|
|
1250
1250
|
} catch (er) {
|
|
1251
1251
|
}
|
|
1252
1252
|
});
|
|
1253
|
-
|
|
1254
|
-
|
|
1253
|
+
process26.emit = originalProcessEmit;
|
|
1254
|
+
process26.reallyExit = originalProcessReallyExit;
|
|
1255
1255
|
emitter.count -= 1;
|
|
1256
1256
|
};
|
|
1257
1257
|
module2.exports.unload = unload;
|
|
@@ -1268,7 +1268,7 @@ var require_signal_exit = __commonJS({
|
|
|
1268
1268
|
if (!processOk(global.process)) {
|
|
1269
1269
|
return;
|
|
1270
1270
|
}
|
|
1271
|
-
var listeners =
|
|
1271
|
+
var listeners = process26.listeners(sig);
|
|
1272
1272
|
if (listeners.length === emitter.count) {
|
|
1273
1273
|
unload();
|
|
1274
1274
|
emit("exit", null, sig);
|
|
@@ -1276,7 +1276,7 @@ var require_signal_exit = __commonJS({
|
|
|
1276
1276
|
if (isWin && sig === "SIGHUP") {
|
|
1277
1277
|
sig = "SIGINT";
|
|
1278
1278
|
}
|
|
1279
|
-
|
|
1279
|
+
process26.kill(process26.pid, sig);
|
|
1280
1280
|
}
|
|
1281
1281
|
};
|
|
1282
1282
|
});
|
|
@@ -1292,36 +1292,36 @@ var require_signal_exit = __commonJS({
|
|
|
1292
1292
|
emitter.count += 1;
|
|
1293
1293
|
signals = signals.filter(function(sig) {
|
|
1294
1294
|
try {
|
|
1295
|
-
|
|
1295
|
+
process26.on(sig, sigListeners[sig]);
|
|
1296
1296
|
return true;
|
|
1297
1297
|
} catch (er) {
|
|
1298
1298
|
return false;
|
|
1299
1299
|
}
|
|
1300
1300
|
});
|
|
1301
|
-
|
|
1302
|
-
|
|
1301
|
+
process26.emit = processEmit;
|
|
1302
|
+
process26.reallyExit = processReallyExit;
|
|
1303
1303
|
};
|
|
1304
1304
|
module2.exports.load = load;
|
|
1305
|
-
originalProcessReallyExit =
|
|
1305
|
+
originalProcessReallyExit = process26.reallyExit;
|
|
1306
1306
|
processReallyExit = function processReallyExit2(code) {
|
|
1307
1307
|
if (!processOk(global.process)) {
|
|
1308
1308
|
return;
|
|
1309
1309
|
}
|
|
1310
|
-
|
|
1310
|
+
process26.exitCode = code || /* istanbul ignore next */
|
|
1311
1311
|
0;
|
|
1312
|
-
emit("exit",
|
|
1313
|
-
emit("afterexit",
|
|
1314
|
-
originalProcessReallyExit.call(
|
|
1312
|
+
emit("exit", process26.exitCode, null);
|
|
1313
|
+
emit("afterexit", process26.exitCode, null);
|
|
1314
|
+
originalProcessReallyExit.call(process26, process26.exitCode);
|
|
1315
1315
|
};
|
|
1316
|
-
originalProcessEmit =
|
|
1316
|
+
originalProcessEmit = process26.emit;
|
|
1317
1317
|
processEmit = function processEmit2(ev, arg) {
|
|
1318
1318
|
if (ev === "exit" && processOk(global.process)) {
|
|
1319
1319
|
if (arg !== void 0) {
|
|
1320
|
-
|
|
1320
|
+
process26.exitCode = arg;
|
|
1321
1321
|
}
|
|
1322
1322
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
1323
|
-
emit("exit",
|
|
1324
|
-
emit("afterexit",
|
|
1323
|
+
emit("exit", process26.exitCode, null);
|
|
1324
|
+
emit("afterexit", process26.exitCode, null);
|
|
1325
1325
|
return ret;
|
|
1326
1326
|
} else {
|
|
1327
1327
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -9302,206 +9302,6 @@ var require_cli_spinners = __commonJS({
|
|
|
9302
9302
|
}
|
|
9303
9303
|
});
|
|
9304
9304
|
|
|
9305
|
-
// ../../node_modules/has-flag/index.js
|
|
9306
|
-
var require_has_flag = __commonJS({
|
|
9307
|
-
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
9308
|
-
"use strict";
|
|
9309
|
-
init_esm_shims();
|
|
9310
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
9311
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
9312
|
-
const position = argv.indexOf(prefix + flag);
|
|
9313
|
-
const terminatorPosition = argv.indexOf("--");
|
|
9314
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
9315
|
-
};
|
|
9316
|
-
}
|
|
9317
|
-
});
|
|
9318
|
-
|
|
9319
|
-
// ../../node_modules/supports-color/index.js
|
|
9320
|
-
var require_supports_color = __commonJS({
|
|
9321
|
-
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
9322
|
-
"use strict";
|
|
9323
|
-
init_esm_shims();
|
|
9324
|
-
var os6 = __require("os");
|
|
9325
|
-
var tty2 = __require("tty");
|
|
9326
|
-
var hasFlag2 = require_has_flag();
|
|
9327
|
-
var { env: env2 } = process;
|
|
9328
|
-
var forceColor;
|
|
9329
|
-
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
9330
|
-
forceColor = 0;
|
|
9331
|
-
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
9332
|
-
forceColor = 1;
|
|
9333
|
-
}
|
|
9334
|
-
if ("FORCE_COLOR" in env2) {
|
|
9335
|
-
if (env2.FORCE_COLOR === "true") {
|
|
9336
|
-
forceColor = 1;
|
|
9337
|
-
} else if (env2.FORCE_COLOR === "false") {
|
|
9338
|
-
forceColor = 0;
|
|
9339
|
-
} else {
|
|
9340
|
-
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
9341
|
-
}
|
|
9342
|
-
}
|
|
9343
|
-
function translateLevel2(level) {
|
|
9344
|
-
if (level === 0) {
|
|
9345
|
-
return false;
|
|
9346
|
-
}
|
|
9347
|
-
return {
|
|
9348
|
-
level,
|
|
9349
|
-
hasBasic: true,
|
|
9350
|
-
has256: level >= 2,
|
|
9351
|
-
has16m: level >= 3
|
|
9352
|
-
};
|
|
9353
|
-
}
|
|
9354
|
-
function supportsColor2(haveStream, streamIsTTY) {
|
|
9355
|
-
if (forceColor === 0) {
|
|
9356
|
-
return 0;
|
|
9357
|
-
}
|
|
9358
|
-
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
9359
|
-
return 3;
|
|
9360
|
-
}
|
|
9361
|
-
if (hasFlag2("color=256")) {
|
|
9362
|
-
return 2;
|
|
9363
|
-
}
|
|
9364
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
9365
|
-
return 0;
|
|
9366
|
-
}
|
|
9367
|
-
const min = forceColor || 0;
|
|
9368
|
-
if (env2.TERM === "dumb") {
|
|
9369
|
-
return min;
|
|
9370
|
-
}
|
|
9371
|
-
if (process.platform === "win32") {
|
|
9372
|
-
const osRelease = os6.release().split(".");
|
|
9373
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
9374
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
9375
|
-
}
|
|
9376
|
-
return 1;
|
|
9377
|
-
}
|
|
9378
|
-
if ("CI" in env2) {
|
|
9379
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
9380
|
-
return 1;
|
|
9381
|
-
}
|
|
9382
|
-
return min;
|
|
9383
|
-
}
|
|
9384
|
-
if ("TEAMCITY_VERSION" in env2) {
|
|
9385
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
9386
|
-
}
|
|
9387
|
-
if (env2.COLORTERM === "truecolor") {
|
|
9388
|
-
return 3;
|
|
9389
|
-
}
|
|
9390
|
-
if ("TERM_PROGRAM" in env2) {
|
|
9391
|
-
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
9392
|
-
switch (env2.TERM_PROGRAM) {
|
|
9393
|
-
case "iTerm.app":
|
|
9394
|
-
return version >= 3 ? 3 : 2;
|
|
9395
|
-
case "Apple_Terminal":
|
|
9396
|
-
return 2;
|
|
9397
|
-
}
|
|
9398
|
-
}
|
|
9399
|
-
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
9400
|
-
return 2;
|
|
9401
|
-
}
|
|
9402
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
9403
|
-
return 1;
|
|
9404
|
-
}
|
|
9405
|
-
if ("COLORTERM" in env2) {
|
|
9406
|
-
return 1;
|
|
9407
|
-
}
|
|
9408
|
-
return min;
|
|
9409
|
-
}
|
|
9410
|
-
function getSupportLevel(stream) {
|
|
9411
|
-
const level = supportsColor2(stream, stream && stream.isTTY);
|
|
9412
|
-
return translateLevel2(level);
|
|
9413
|
-
}
|
|
9414
|
-
module2.exports = {
|
|
9415
|
-
supportsColor: getSupportLevel,
|
|
9416
|
-
stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
|
|
9417
|
-
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
9418
|
-
};
|
|
9419
|
-
}
|
|
9420
|
-
});
|
|
9421
|
-
|
|
9422
|
-
// ../../node_modules/supports-hyperlinks/index.js
|
|
9423
|
-
var require_supports_hyperlinks = __commonJS({
|
|
9424
|
-
"../../node_modules/supports-hyperlinks/index.js"(exports, module2) {
|
|
9425
|
-
"use strict";
|
|
9426
|
-
init_esm_shims();
|
|
9427
|
-
var supportsColor2 = require_supports_color();
|
|
9428
|
-
var hasFlag2 = require_has_flag();
|
|
9429
|
-
function parseVersion(versionString) {
|
|
9430
|
-
if (/^\d{3,4}$/.test(versionString)) {
|
|
9431
|
-
const m = /(\d{1,2})(\d{2})/.exec(versionString);
|
|
9432
|
-
return {
|
|
9433
|
-
major: 0,
|
|
9434
|
-
minor: parseInt(m[1], 10),
|
|
9435
|
-
patch: parseInt(m[2], 10)
|
|
9436
|
-
};
|
|
9437
|
-
}
|
|
9438
|
-
const versions = (versionString || "").split(".").map((n2) => parseInt(n2, 10));
|
|
9439
|
-
return {
|
|
9440
|
-
major: versions[0],
|
|
9441
|
-
minor: versions[1],
|
|
9442
|
-
patch: versions[2]
|
|
9443
|
-
};
|
|
9444
|
-
}
|
|
9445
|
-
function supportsHyperlink(stream) {
|
|
9446
|
-
const { env: env2 } = process;
|
|
9447
|
-
if ("FORCE_HYPERLINK" in env2) {
|
|
9448
|
-
return !(env2.FORCE_HYPERLINK.length > 0 && parseInt(env2.FORCE_HYPERLINK, 10) === 0);
|
|
9449
|
-
}
|
|
9450
|
-
if (hasFlag2("no-hyperlink") || hasFlag2("no-hyperlinks") || hasFlag2("hyperlink=false") || hasFlag2("hyperlink=never")) {
|
|
9451
|
-
return false;
|
|
9452
|
-
}
|
|
9453
|
-
if (hasFlag2("hyperlink=true") || hasFlag2("hyperlink=always")) {
|
|
9454
|
-
return true;
|
|
9455
|
-
}
|
|
9456
|
-
if ("NETLIFY" in env2) {
|
|
9457
|
-
return true;
|
|
9458
|
-
}
|
|
9459
|
-
if (!supportsColor2.supportsColor(stream)) {
|
|
9460
|
-
return false;
|
|
9461
|
-
}
|
|
9462
|
-
if (stream && !stream.isTTY) {
|
|
9463
|
-
return false;
|
|
9464
|
-
}
|
|
9465
|
-
if (process.platform === "win32") {
|
|
9466
|
-
return false;
|
|
9467
|
-
}
|
|
9468
|
-
if ("CI" in env2) {
|
|
9469
|
-
return false;
|
|
9470
|
-
}
|
|
9471
|
-
if ("TEAMCITY_VERSION" in env2) {
|
|
9472
|
-
return false;
|
|
9473
|
-
}
|
|
9474
|
-
if ("TERM_PROGRAM" in env2) {
|
|
9475
|
-
const version = parseVersion(env2.TERM_PROGRAM_VERSION);
|
|
9476
|
-
switch (env2.TERM_PROGRAM) {
|
|
9477
|
-
case "iTerm.app":
|
|
9478
|
-
if (version.major === 3) {
|
|
9479
|
-
return version.minor >= 1;
|
|
9480
|
-
}
|
|
9481
|
-
return version.major > 3;
|
|
9482
|
-
case "WezTerm":
|
|
9483
|
-
return version.major >= 20200620;
|
|
9484
|
-
case "vscode":
|
|
9485
|
-
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
9486
|
-
}
|
|
9487
|
-
}
|
|
9488
|
-
if ("VTE_VERSION" in env2) {
|
|
9489
|
-
if (env2.VTE_VERSION === "0.50.0") {
|
|
9490
|
-
return false;
|
|
9491
|
-
}
|
|
9492
|
-
const version = parseVersion(env2.VTE_VERSION);
|
|
9493
|
-
return version.major > 0 || version.minor >= 50;
|
|
9494
|
-
}
|
|
9495
|
-
return false;
|
|
9496
|
-
}
|
|
9497
|
-
module2.exports = {
|
|
9498
|
-
supportsHyperlink,
|
|
9499
|
-
stdout: supportsHyperlink(process.stdout),
|
|
9500
|
-
stderr: supportsHyperlink(process.stderr)
|
|
9501
|
-
};
|
|
9502
|
-
}
|
|
9503
|
-
});
|
|
9504
|
-
|
|
9505
9305
|
// ../../node_modules/p-retry/node_modules/retry/lib/retry_operation.js
|
|
9506
9306
|
var require_retry_operation = __commonJS({
|
|
9507
9307
|
"../../node_modules/p-retry/node_modules/retry/lib/retry_operation.js"(exports, module2) {
|
|
@@ -10112,7 +9912,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
10112
9912
|
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
10113
9913
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
10114
9914
|
}
|
|
10115
|
-
function __addDisposableResource(
|
|
9915
|
+
function __addDisposableResource(env3, value2, async) {
|
|
10116
9916
|
if (value2 !== null && value2 !== void 0) {
|
|
10117
9917
|
if (typeof value2 !== "object" && typeof value2 !== "function") throw new TypeError("Object expected.");
|
|
10118
9918
|
var dispose, inner;
|
|
@@ -10133,22 +9933,22 @@ function __addDisposableResource(env2, value2, async) {
|
|
|
10133
9933
|
return Promise.reject(e2);
|
|
10134
9934
|
}
|
|
10135
9935
|
};
|
|
10136
|
-
|
|
9936
|
+
env3.stack.push({ value: value2, dispose, async });
|
|
10137
9937
|
} else if (async) {
|
|
10138
|
-
|
|
9938
|
+
env3.stack.push({ async: true });
|
|
10139
9939
|
}
|
|
10140
9940
|
return value2;
|
|
10141
9941
|
}
|
|
10142
|
-
function __disposeResources(
|
|
9942
|
+
function __disposeResources(env3) {
|
|
10143
9943
|
function fail(e2) {
|
|
10144
|
-
|
|
10145
|
-
|
|
9944
|
+
env3.error = env3.hasError ? new _SuppressedError(e2, env3.error, "An error was suppressed during disposal.") : e2;
|
|
9945
|
+
env3.hasError = true;
|
|
10146
9946
|
}
|
|
10147
9947
|
var r2, s2 = 0;
|
|
10148
9948
|
function next() {
|
|
10149
|
-
while (r2 =
|
|
9949
|
+
while (r2 = env3.stack.pop()) {
|
|
10150
9950
|
try {
|
|
10151
|
-
if (!r2.async && s2 === 1) return s2 = 0,
|
|
9951
|
+
if (!r2.async && s2 === 1) return s2 = 0, env3.stack.push(r2), Promise.resolve().then(next);
|
|
10152
9952
|
if (r2.dispose) {
|
|
10153
9953
|
var result = r2.dispose.call(r2.value);
|
|
10154
9954
|
if (r2.async) return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
|
|
@@ -10160,8 +9960,8 @@ function __disposeResources(env2) {
|
|
|
10160
9960
|
fail(e2);
|
|
10161
9961
|
}
|
|
10162
9962
|
}
|
|
10163
|
-
if (s2 === 1) return
|
|
10164
|
-
if (
|
|
9963
|
+
if (s2 === 1) return env3.hasError ? Promise.reject(env3.error) : Promise.resolve();
|
|
9964
|
+
if (env3.hasError) throw env3.error;
|
|
10165
9965
|
}
|
|
10166
9966
|
return next();
|
|
10167
9967
|
}
|
|
@@ -10406,12 +10206,12 @@ var init_authorization = __esm({
|
|
|
10406
10206
|
|
|
10407
10207
|
// ../../node_modules/@wix/http-client/node_modules/@wix/headers/dist/esm/utils.js
|
|
10408
10208
|
function isCI() {
|
|
10409
|
-
if (
|
|
10209
|
+
if (isNode2()) {
|
|
10410
10210
|
return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;
|
|
10411
10211
|
}
|
|
10412
10212
|
return false;
|
|
10413
10213
|
}
|
|
10414
|
-
function
|
|
10214
|
+
function isNode2() {
|
|
10415
10215
|
return typeof process !== "undefined" && process.versions?.node != null;
|
|
10416
10216
|
}
|
|
10417
10217
|
var init_utils = __esm({
|
|
@@ -10709,20 +10509,20 @@ var require_env_util = __commonJS({
|
|
|
10709
10509
|
init_esm_shims();
|
|
10710
10510
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10711
10511
|
exports.isNode = exports.isWebWorker = exports.isBrowser = void 0;
|
|
10712
|
-
function
|
|
10512
|
+
function isBrowser3() {
|
|
10713
10513
|
return typeof window !== "undefined";
|
|
10714
10514
|
}
|
|
10715
|
-
exports.isBrowser =
|
|
10716
|
-
function
|
|
10515
|
+
exports.isBrowser = isBrowser3;
|
|
10516
|
+
function isWebWorker2() {
|
|
10717
10517
|
var _a3;
|
|
10718
10518
|
return typeof self === "object" && ((_a3 = self === null || self === void 0 ? void 0 : self.constructor) === null || _a3 === void 0 ? void 0 : _a3.name) === "DedicatedWorkerGlobalScope";
|
|
10719
10519
|
}
|
|
10720
|
-
exports.isWebWorker =
|
|
10721
|
-
function
|
|
10520
|
+
exports.isWebWorker = isWebWorker2;
|
|
10521
|
+
function isNode3() {
|
|
10722
10522
|
var _a3;
|
|
10723
10523
|
return typeof process !== "undefined" && ((_a3 = process === null || process === void 0 ? void 0 : process.versions) === null || _a3 === void 0 ? void 0 : _a3.node) != null;
|
|
10724
10524
|
}
|
|
10725
|
-
exports.isNode =
|
|
10525
|
+
exports.isNode = isNode3;
|
|
10726
10526
|
}
|
|
10727
10527
|
});
|
|
10728
10528
|
|
|
@@ -11399,7 +11199,7 @@ var require_common = __commonJS({
|
|
|
11399
11199
|
"../../node_modules/debug/src/common.js"(exports, module2) {
|
|
11400
11200
|
"use strict";
|
|
11401
11201
|
init_esm_shims();
|
|
11402
|
-
function setup(
|
|
11202
|
+
function setup(env3) {
|
|
11403
11203
|
createDebug.debug = createDebug;
|
|
11404
11204
|
createDebug.default = createDebug;
|
|
11405
11205
|
createDebug.coerce = coerce;
|
|
@@ -11408,8 +11208,8 @@ var require_common = __commonJS({
|
|
|
11408
11208
|
createDebug.enabled = enabled;
|
|
11409
11209
|
createDebug.humanize = require_ms();
|
|
11410
11210
|
createDebug.destroy = destroy;
|
|
11411
|
-
Object.keys(
|
|
11412
|
-
createDebug[key] =
|
|
11211
|
+
Object.keys(env3).forEach((key) => {
|
|
11212
|
+
createDebug[key] = env3[key];
|
|
11413
11213
|
});
|
|
11414
11214
|
createDebug.names = [];
|
|
11415
11215
|
createDebug.skips = [];
|
|
@@ -11745,12 +11545,129 @@ var require_browser = __commonJS({
|
|
|
11745
11545
|
}
|
|
11746
11546
|
});
|
|
11747
11547
|
|
|
11548
|
+
// ../../node_modules/has-flag/index.js
|
|
11549
|
+
var require_has_flag = __commonJS({
|
|
11550
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
11551
|
+
"use strict";
|
|
11552
|
+
init_esm_shims();
|
|
11553
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
11554
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
11555
|
+
const position = argv.indexOf(prefix + flag);
|
|
11556
|
+
const terminatorPosition = argv.indexOf("--");
|
|
11557
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
11558
|
+
};
|
|
11559
|
+
}
|
|
11560
|
+
});
|
|
11561
|
+
|
|
11562
|
+
// ../../node_modules/supports-color/index.js
|
|
11563
|
+
var require_supports_color = __commonJS({
|
|
11564
|
+
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
11565
|
+
"use strict";
|
|
11566
|
+
init_esm_shims();
|
|
11567
|
+
var os7 = __require("os");
|
|
11568
|
+
var tty3 = __require("tty");
|
|
11569
|
+
var hasFlag4 = require_has_flag();
|
|
11570
|
+
var { env: env3 } = process;
|
|
11571
|
+
var forceColor;
|
|
11572
|
+
if (hasFlag4("no-color") || hasFlag4("no-colors") || hasFlag4("color=false") || hasFlag4("color=never")) {
|
|
11573
|
+
forceColor = 0;
|
|
11574
|
+
} else if (hasFlag4("color") || hasFlag4("colors") || hasFlag4("color=true") || hasFlag4("color=always")) {
|
|
11575
|
+
forceColor = 1;
|
|
11576
|
+
}
|
|
11577
|
+
if ("FORCE_COLOR" in env3) {
|
|
11578
|
+
if (env3.FORCE_COLOR === "true") {
|
|
11579
|
+
forceColor = 1;
|
|
11580
|
+
} else if (env3.FORCE_COLOR === "false") {
|
|
11581
|
+
forceColor = 0;
|
|
11582
|
+
} else {
|
|
11583
|
+
forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
|
|
11584
|
+
}
|
|
11585
|
+
}
|
|
11586
|
+
function translateLevel3(level) {
|
|
11587
|
+
if (level === 0) {
|
|
11588
|
+
return false;
|
|
11589
|
+
}
|
|
11590
|
+
return {
|
|
11591
|
+
level,
|
|
11592
|
+
hasBasic: true,
|
|
11593
|
+
has256: level >= 2,
|
|
11594
|
+
has16m: level >= 3
|
|
11595
|
+
};
|
|
11596
|
+
}
|
|
11597
|
+
function supportsColor3(haveStream, streamIsTTY) {
|
|
11598
|
+
if (forceColor === 0) {
|
|
11599
|
+
return 0;
|
|
11600
|
+
}
|
|
11601
|
+
if (hasFlag4("color=16m") || hasFlag4("color=full") || hasFlag4("color=truecolor")) {
|
|
11602
|
+
return 3;
|
|
11603
|
+
}
|
|
11604
|
+
if (hasFlag4("color=256")) {
|
|
11605
|
+
return 2;
|
|
11606
|
+
}
|
|
11607
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
11608
|
+
return 0;
|
|
11609
|
+
}
|
|
11610
|
+
const min = forceColor || 0;
|
|
11611
|
+
if (env3.TERM === "dumb") {
|
|
11612
|
+
return min;
|
|
11613
|
+
}
|
|
11614
|
+
if (process.platform === "win32") {
|
|
11615
|
+
const osRelease = os7.release().split(".");
|
|
11616
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
11617
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
11618
|
+
}
|
|
11619
|
+
return 1;
|
|
11620
|
+
}
|
|
11621
|
+
if ("CI" in env3) {
|
|
11622
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
|
|
11623
|
+
return 1;
|
|
11624
|
+
}
|
|
11625
|
+
return min;
|
|
11626
|
+
}
|
|
11627
|
+
if ("TEAMCITY_VERSION" in env3) {
|
|
11628
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
11629
|
+
}
|
|
11630
|
+
if (env3.COLORTERM === "truecolor") {
|
|
11631
|
+
return 3;
|
|
11632
|
+
}
|
|
11633
|
+
if ("TERM_PROGRAM" in env3) {
|
|
11634
|
+
const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
11635
|
+
switch (env3.TERM_PROGRAM) {
|
|
11636
|
+
case "iTerm.app":
|
|
11637
|
+
return version >= 3 ? 3 : 2;
|
|
11638
|
+
case "Apple_Terminal":
|
|
11639
|
+
return 2;
|
|
11640
|
+
}
|
|
11641
|
+
}
|
|
11642
|
+
if (/-256(color)?$/i.test(env3.TERM)) {
|
|
11643
|
+
return 2;
|
|
11644
|
+
}
|
|
11645
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
|
|
11646
|
+
return 1;
|
|
11647
|
+
}
|
|
11648
|
+
if ("COLORTERM" in env3) {
|
|
11649
|
+
return 1;
|
|
11650
|
+
}
|
|
11651
|
+
return min;
|
|
11652
|
+
}
|
|
11653
|
+
function getSupportLevel(stream) {
|
|
11654
|
+
const level = supportsColor3(stream, stream && stream.isTTY);
|
|
11655
|
+
return translateLevel3(level);
|
|
11656
|
+
}
|
|
11657
|
+
module2.exports = {
|
|
11658
|
+
supportsColor: getSupportLevel,
|
|
11659
|
+
stdout: translateLevel3(supportsColor3(true, tty3.isatty(1))),
|
|
11660
|
+
stderr: translateLevel3(supportsColor3(true, tty3.isatty(2)))
|
|
11661
|
+
};
|
|
11662
|
+
}
|
|
11663
|
+
});
|
|
11664
|
+
|
|
11748
11665
|
// ../../node_modules/debug/src/node.js
|
|
11749
11666
|
var require_node = __commonJS({
|
|
11750
11667
|
"../../node_modules/debug/src/node.js"(exports, module2) {
|
|
11751
11668
|
"use strict";
|
|
11752
11669
|
init_esm_shims();
|
|
11753
|
-
var
|
|
11670
|
+
var tty3 = __require("tty");
|
|
11754
11671
|
var util2 = __require("util");
|
|
11755
11672
|
exports.init = init3;
|
|
11756
11673
|
exports.log = log2;
|
|
@@ -11765,8 +11682,8 @@ var require_node = __commonJS({
|
|
|
11765
11682
|
);
|
|
11766
11683
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
11767
11684
|
try {
|
|
11768
|
-
const
|
|
11769
|
-
if (
|
|
11685
|
+
const supportsColor3 = require_supports_color();
|
|
11686
|
+
if (supportsColor3 && (supportsColor3.stderr || supportsColor3).level >= 2) {
|
|
11770
11687
|
exports.colors = [
|
|
11771
11688
|
20,
|
|
11772
11689
|
21,
|
|
@@ -11868,7 +11785,7 @@ var require_node = __commonJS({
|
|
|
11868
11785
|
return obj;
|
|
11869
11786
|
}, {});
|
|
11870
11787
|
function useColors() {
|
|
11871
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
11788
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty3.isatty(process.stderr.fd);
|
|
11872
11789
|
}
|
|
11873
11790
|
function formatArgs(args) {
|
|
11874
11791
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -14503,7 +14420,7 @@ var require_ci_info2 = __commonJS({
|
|
|
14503
14420
|
"use strict";
|
|
14504
14421
|
init_esm_shims();
|
|
14505
14422
|
var vendors = require_vendors2();
|
|
14506
|
-
var
|
|
14423
|
+
var env3 = process.env;
|
|
14507
14424
|
Object.defineProperty(exports, "_vendors", {
|
|
14508
14425
|
value: vendors.map(function(v) {
|
|
14509
14426
|
return v.constant;
|
|
@@ -14525,47 +14442,47 @@ var require_ci_info2 = __commonJS({
|
|
|
14525
14442
|
exports.isPR = checkPR(vendor);
|
|
14526
14443
|
exports.id = vendor.constant;
|
|
14527
14444
|
});
|
|
14528
|
-
exports.isCI = !!(
|
|
14529
|
-
(
|
|
14530
|
-
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
|
|
14445
|
+
exports.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
14446
|
+
(env3.BUILD_ID || // Jenkins, Cloudbees
|
|
14447
|
+
env3.BUILD_NUMBER || // Jenkins, TeamCity
|
|
14448
|
+
env3.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
14449
|
+
env3.CI_APP_ID || // Appflow
|
|
14450
|
+
env3.CI_BUILD_ID || // Appflow
|
|
14451
|
+
env3.CI_BUILD_NUMBER || // Appflow
|
|
14452
|
+
env3.CI_NAME || // Codeship and others
|
|
14453
|
+
env3.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
14454
|
+
env3.RUN_ID || // TaskCluster, dsari
|
|
14538
14455
|
exports.name || false));
|
|
14539
14456
|
function checkEnv(obj) {
|
|
14540
|
-
if (typeof obj === "string") return !!
|
|
14457
|
+
if (typeof obj === "string") return !!env3[obj];
|
|
14541
14458
|
if ("env" in obj) {
|
|
14542
|
-
return
|
|
14459
|
+
return env3[obj.env] && env3[obj.env].includes(obj.includes);
|
|
14543
14460
|
}
|
|
14544
14461
|
if ("any" in obj) {
|
|
14545
14462
|
return obj.any.some(function(k) {
|
|
14546
|
-
return !!
|
|
14463
|
+
return !!env3[k];
|
|
14547
14464
|
});
|
|
14548
14465
|
}
|
|
14549
14466
|
return Object.keys(obj).every(function(k) {
|
|
14550
|
-
return
|
|
14467
|
+
return env3[k] === obj[k];
|
|
14551
14468
|
});
|
|
14552
14469
|
}
|
|
14553
14470
|
function checkPR(vendor) {
|
|
14554
14471
|
switch (typeof vendor.pr) {
|
|
14555
14472
|
case "string":
|
|
14556
|
-
return !!
|
|
14473
|
+
return !!env3[vendor.pr];
|
|
14557
14474
|
case "object":
|
|
14558
14475
|
if ("env" in vendor.pr) {
|
|
14559
14476
|
if ("any" in vendor.pr) {
|
|
14560
14477
|
return vendor.pr.any.some(function(key) {
|
|
14561
|
-
return
|
|
14478
|
+
return env3[vendor.pr.env] === key;
|
|
14562
14479
|
});
|
|
14563
14480
|
} else {
|
|
14564
|
-
return vendor.pr.env in
|
|
14481
|
+
return vendor.pr.env in env3 && env3[vendor.pr.env] !== vendor.pr.ne;
|
|
14565
14482
|
}
|
|
14566
14483
|
} else if ("any" in vendor.pr) {
|
|
14567
14484
|
return vendor.pr.any.some(function(key) {
|
|
14568
|
-
return !!
|
|
14485
|
+
return !!env3[key];
|
|
14569
14486
|
});
|
|
14570
14487
|
} else {
|
|
14571
14488
|
return checkEnv(vendor.pr);
|
|
@@ -15032,8 +14949,8 @@ function setLogLevelFromEnv(key, environment, values) {
|
|
|
15032
14949
|
}
|
|
15033
14950
|
function parseEnvironment(values) {
|
|
15034
14951
|
var environment = {};
|
|
15035
|
-
for (var
|
|
15036
|
-
var key =
|
|
14952
|
+
for (var env3 in DEFAULT_ENVIRONMENT) {
|
|
14953
|
+
var key = env3;
|
|
15037
14954
|
switch (key) {
|
|
15038
14955
|
case "OTEL_LOG_LEVEL":
|
|
15039
14956
|
setLogLevelFromEnv(key, environment, values);
|
|
@@ -19207,8 +19124,8 @@ var require_homedir = __commonJS({
|
|
|
19207
19124
|
"../../node_modules/resolve/lib/homedir.js"(exports, module2) {
|
|
19208
19125
|
"use strict";
|
|
19209
19126
|
init_esm_shims();
|
|
19210
|
-
var
|
|
19211
|
-
module2.exports =
|
|
19127
|
+
var os7 = __require("os");
|
|
19128
|
+
module2.exports = os7.homedir || function homedir2() {
|
|
19212
19129
|
var home = process.env.HOME;
|
|
19213
19130
|
var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
|
|
19214
19131
|
if (process.platform === "win32") {
|
|
@@ -19247,7 +19164,7 @@ var require_path_parse = __commonJS({
|
|
|
19247
19164
|
"../../node_modules/path-parse/index.js"(exports, module2) {
|
|
19248
19165
|
"use strict";
|
|
19249
19166
|
init_esm_shims();
|
|
19250
|
-
var
|
|
19167
|
+
var isWindows4 = process.platform === "win32";
|
|
19251
19168
|
var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;
|
|
19252
19169
|
var win32 = {};
|
|
19253
19170
|
function win32SplitPath(filename) {
|
|
@@ -19294,7 +19211,7 @@ var require_path_parse = __commonJS({
|
|
|
19294
19211
|
name: allParts[3]
|
|
19295
19212
|
};
|
|
19296
19213
|
};
|
|
19297
|
-
if (
|
|
19214
|
+
if (isWindows4)
|
|
19298
19215
|
module2.exports = win32.parse;
|
|
19299
19216
|
else
|
|
19300
19217
|
module2.exports = posix2.parse;
|
|
@@ -28754,7 +28671,7 @@ var require_command = __commonJS({
|
|
|
28754
28671
|
var childProcess2 = __require("node:child_process");
|
|
28755
28672
|
var path4 = __require("node:path");
|
|
28756
28673
|
var fs6 = __require("node:fs");
|
|
28757
|
-
var
|
|
28674
|
+
var process26 = __require("node:process");
|
|
28758
28675
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
28759
28676
|
var { CommanderError: CommanderError2 } = require_error2();
|
|
28760
28677
|
var { Help: Help2, stripColor } = require_help();
|
|
@@ -28801,13 +28718,13 @@ var require_command = __commonJS({
|
|
|
28801
28718
|
this._showSuggestionAfterError = true;
|
|
28802
28719
|
this._savedState = null;
|
|
28803
28720
|
this._outputConfiguration = {
|
|
28804
|
-
writeOut: (str) =>
|
|
28805
|
-
writeErr: (str) =>
|
|
28721
|
+
writeOut: (str) => process26.stdout.write(str),
|
|
28722
|
+
writeErr: (str) => process26.stderr.write(str),
|
|
28806
28723
|
outputError: (str, write) => write(str),
|
|
28807
|
-
getOutHelpWidth: () =>
|
|
28808
|
-
getErrHelpWidth: () =>
|
|
28809
|
-
getOutHasColors: () => useColor() ?? (
|
|
28810
|
-
getErrHasColors: () => useColor() ?? (
|
|
28724
|
+
getOutHelpWidth: () => process26.stdout.isTTY ? process26.stdout.columns : void 0,
|
|
28725
|
+
getErrHelpWidth: () => process26.stderr.isTTY ? process26.stderr.columns : void 0,
|
|
28726
|
+
getOutHasColors: () => useColor() ?? (process26.stdout.isTTY && process26.stdout.hasColors?.()),
|
|
28727
|
+
getErrHasColors: () => useColor() ?? (process26.stderr.isTTY && process26.stderr.hasColors?.()),
|
|
28811
28728
|
stripColor: (str) => stripColor(str)
|
|
28812
28729
|
};
|
|
28813
28730
|
this._hidden = false;
|
|
@@ -29190,7 +29107,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
29190
29107
|
if (this._exitCallback) {
|
|
29191
29108
|
this._exitCallback(new CommanderError2(exitCode, code, message));
|
|
29192
29109
|
}
|
|
29193
|
-
|
|
29110
|
+
process26.exit(exitCode);
|
|
29194
29111
|
}
|
|
29195
29112
|
/**
|
|
29196
29113
|
* Register callback `fn` for the command.
|
|
@@ -29588,16 +29505,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
29588
29505
|
}
|
|
29589
29506
|
parseOptions = parseOptions || {};
|
|
29590
29507
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
29591
|
-
if (
|
|
29508
|
+
if (process26.versions?.electron) {
|
|
29592
29509
|
parseOptions.from = "electron";
|
|
29593
29510
|
}
|
|
29594
|
-
const execArgv =
|
|
29511
|
+
const execArgv = process26.execArgv ?? [];
|
|
29595
29512
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) {
|
|
29596
29513
|
parseOptions.from = "eval";
|
|
29597
29514
|
}
|
|
29598
29515
|
}
|
|
29599
29516
|
if (argv === void 0) {
|
|
29600
|
-
argv =
|
|
29517
|
+
argv = process26.argv;
|
|
29601
29518
|
}
|
|
29602
29519
|
this.rawArgs = argv.slice();
|
|
29603
29520
|
let userArgs;
|
|
@@ -29608,7 +29525,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
29608
29525
|
userArgs = argv.slice(2);
|
|
29609
29526
|
break;
|
|
29610
29527
|
case "electron":
|
|
29611
|
-
if (
|
|
29528
|
+
if (process26.defaultApp) {
|
|
29612
29529
|
this._scriptPath = argv[1];
|
|
29613
29530
|
userArgs = argv.slice(2);
|
|
29614
29531
|
} else {
|
|
@@ -29795,11 +29712,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
29795
29712
|
}
|
|
29796
29713
|
launchWithNode = sourceExt.includes(path4.extname(executableFile));
|
|
29797
29714
|
let proc;
|
|
29798
|
-
if (
|
|
29715
|
+
if (process26.platform !== "win32") {
|
|
29799
29716
|
if (launchWithNode) {
|
|
29800
29717
|
args.unshift(executableFile);
|
|
29801
|
-
args = incrementNodeInspectorPort(
|
|
29802
|
-
proc = childProcess2.spawn(
|
|
29718
|
+
args = incrementNodeInspectorPort(process26.execArgv).concat(args);
|
|
29719
|
+
proc = childProcess2.spawn(process26.argv[0], args, { stdio: "inherit" });
|
|
29803
29720
|
} else {
|
|
29804
29721
|
proc = childProcess2.spawn(executableFile, args, { stdio: "inherit" });
|
|
29805
29722
|
}
|
|
@@ -29810,13 +29727,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
29810
29727
|
subcommand._name
|
|
29811
29728
|
);
|
|
29812
29729
|
args.unshift(executableFile);
|
|
29813
|
-
args = incrementNodeInspectorPort(
|
|
29814
|
-
proc = childProcess2.spawn(
|
|
29730
|
+
args = incrementNodeInspectorPort(process26.execArgv).concat(args);
|
|
29731
|
+
proc = childProcess2.spawn(process26.execPath, args, { stdio: "inherit" });
|
|
29815
29732
|
}
|
|
29816
29733
|
if (!proc.killed) {
|
|
29817
29734
|
const signals = ["SIGUSR1", "SIGUSR2", "SIGTERM", "SIGINT", "SIGHUP"];
|
|
29818
29735
|
signals.forEach((signal) => {
|
|
29819
|
-
|
|
29736
|
+
process26.on(signal, () => {
|
|
29820
29737
|
if (proc.killed === false && proc.exitCode === null) {
|
|
29821
29738
|
proc.kill(signal);
|
|
29822
29739
|
}
|
|
@@ -29827,7 +29744,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
29827
29744
|
proc.on("close", (code) => {
|
|
29828
29745
|
code = code ?? 1;
|
|
29829
29746
|
if (!exitCallback) {
|
|
29830
|
-
|
|
29747
|
+
process26.exit(code);
|
|
29831
29748
|
} else {
|
|
29832
29749
|
exitCallback(
|
|
29833
29750
|
new CommanderError2(
|
|
@@ -29849,7 +29766,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
29849
29766
|
throw new Error(`'${executableFile}' not executable`);
|
|
29850
29767
|
}
|
|
29851
29768
|
if (!exitCallback) {
|
|
29852
|
-
|
|
29769
|
+
process26.exit(1);
|
|
29853
29770
|
} else {
|
|
29854
29771
|
const wrappedError = new CommanderError2(
|
|
29855
29772
|
1,
|
|
@@ -30344,13 +30261,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
30344
30261
|
*/
|
|
30345
30262
|
_parseOptionsEnv() {
|
|
30346
30263
|
this.options.forEach((option) => {
|
|
30347
|
-
if (option.envVar && option.envVar in
|
|
30264
|
+
if (option.envVar && option.envVar in process26.env) {
|
|
30348
30265
|
const optionKey = option.attributeName();
|
|
30349
30266
|
if (this.getOptionValue(optionKey) === void 0 || ["default", "config", "env"].includes(
|
|
30350
30267
|
this.getOptionValueSource(optionKey)
|
|
30351
30268
|
)) {
|
|
30352
30269
|
if (option.required || option.optional) {
|
|
30353
|
-
this.emit(`optionEnv:${option.name()}`,
|
|
30270
|
+
this.emit(`optionEnv:${option.name()}`, process26.env[option.envVar]);
|
|
30354
30271
|
} else {
|
|
30355
30272
|
this.emit(`optionEnv:${option.name()}`);
|
|
30356
30273
|
}
|
|
@@ -30805,7 +30722,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
30805
30722
|
*/
|
|
30806
30723
|
help(contextOptions) {
|
|
30807
30724
|
this.outputHelp(contextOptions);
|
|
30808
|
-
let exitCode = Number(
|
|
30725
|
+
let exitCode = Number(process26.exitCode ?? 0);
|
|
30809
30726
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) {
|
|
30810
30727
|
exitCode = 1;
|
|
30811
30728
|
}
|
|
@@ -30895,9 +30812,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
30895
30812
|
});
|
|
30896
30813
|
}
|
|
30897
30814
|
function useColor() {
|
|
30898
|
-
if (
|
|
30815
|
+
if (process26.env.NO_COLOR || process26.env.FORCE_COLOR === "0" || process26.env.FORCE_COLOR === "false")
|
|
30899
30816
|
return false;
|
|
30900
|
-
if (
|
|
30817
|
+
if (process26.env.FORCE_COLOR || process26.env.CLICOLOR_FORCE !== void 0)
|
|
30901
30818
|
return true;
|
|
30902
30819
|
return void 0;
|
|
30903
30820
|
}
|
|
@@ -32924,11 +32841,11 @@ var require_utils16 = __commonJS({
|
|
|
32924
32841
|
var content = file.apply(null, arguments);
|
|
32925
32842
|
return content ? parse2(content) : null;
|
|
32926
32843
|
};
|
|
32927
|
-
var
|
|
32928
|
-
|
|
32844
|
+
var env3 = exports.env = function(prefix, env4) {
|
|
32845
|
+
env4 = env4 || process.env;
|
|
32929
32846
|
var obj = {};
|
|
32930
32847
|
var l = prefix.length;
|
|
32931
|
-
for (var k in
|
|
32848
|
+
for (var k in env4) {
|
|
32932
32849
|
if (k.toLowerCase().indexOf(prefix.toLowerCase()) === 0) {
|
|
32933
32850
|
var keypath = k.substring(l).split("__");
|
|
32934
32851
|
var _emptyStringIndex;
|
|
@@ -32940,7 +32857,7 @@ var require_utils16 = __commonJS({
|
|
|
32940
32857
|
if (!_subkey || typeof cursor !== "object")
|
|
32941
32858
|
return;
|
|
32942
32859
|
if (i2 === keypath.length - 1)
|
|
32943
|
-
cursor[_subkey] =
|
|
32860
|
+
cursor[_subkey] = env4[k];
|
|
32944
32861
|
if (cursor[_subkey] === void 0)
|
|
32945
32862
|
cursor[_subkey] = {};
|
|
32946
32863
|
cursor = cursor[_subkey];
|
|
@@ -33290,7 +33207,7 @@ var require_rc = __commonJS({
|
|
|
33290
33207
|
argv = require_minimist()(process.argv.slice(2));
|
|
33291
33208
|
defaults3 = ("string" === typeof defaults3 ? cc.json(defaults3) : defaults3) || {};
|
|
33292
33209
|
parse2 = parse2 || cc.parse;
|
|
33293
|
-
var
|
|
33210
|
+
var env3 = cc.env(name + "_");
|
|
33294
33211
|
var configs = [defaults3];
|
|
33295
33212
|
var configFiles = [];
|
|
33296
33213
|
function addConfigFile(file) {
|
|
@@ -33314,10 +33231,10 @@ var require_rc = __commonJS({
|
|
|
33314
33231
|
join10(home, "." + name + "rc")
|
|
33315
33232
|
].forEach(addConfigFile);
|
|
33316
33233
|
addConfigFile(cc.find("." + name + "rc"));
|
|
33317
|
-
if (
|
|
33234
|
+
if (env3.config) addConfigFile(env3.config);
|
|
33318
33235
|
if (argv.config) addConfigFile(argv.config);
|
|
33319
33236
|
return deepExtend2.apply(null, configs.concat([
|
|
33320
|
-
|
|
33237
|
+
env3,
|
|
33321
33238
|
argv,
|
|
33322
33239
|
configFiles.length ? { configs: configFiles, config: configFiles[configFiles.length - 1] } : void 0
|
|
33323
33240
|
]));
|
|
@@ -33333,7 +33250,7 @@ var require_polyfills = __commonJS({
|
|
|
33333
33250
|
var constants = __require("constants");
|
|
33334
33251
|
var origCwd = process.cwd;
|
|
33335
33252
|
var cwd3 = null;
|
|
33336
|
-
var
|
|
33253
|
+
var platform6 = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
33337
33254
|
process.cwd = function() {
|
|
33338
33255
|
if (!cwd3)
|
|
33339
33256
|
cwd3 = origCwd.call(process);
|
|
@@ -33392,7 +33309,7 @@ var require_polyfills = __commonJS({
|
|
|
33392
33309
|
fs6.lchownSync = function() {
|
|
33393
33310
|
};
|
|
33394
33311
|
}
|
|
33395
|
-
if (
|
|
33312
|
+
if (platform6 === "win32") {
|
|
33396
33313
|
fs6.rename = typeof fs6.rename !== "function" ? fs6.rename : function(fs$rename) {
|
|
33397
33314
|
function rename(from, to, cb) {
|
|
33398
33315
|
var start = Date.now();
|
|
@@ -34324,13 +34241,13 @@ var require_config_chain = __commonJS({
|
|
|
34324
34241
|
}
|
|
34325
34242
|
return parse2(content, file, "json");
|
|
34326
34243
|
};
|
|
34327
|
-
var
|
|
34328
|
-
|
|
34244
|
+
var env3 = exports.env = function(prefix, env4) {
|
|
34245
|
+
env4 = env4 || process.env;
|
|
34329
34246
|
var obj = {};
|
|
34330
34247
|
var l = prefix.length;
|
|
34331
|
-
for (var k in
|
|
34248
|
+
for (var k in env4) {
|
|
34332
34249
|
if (k.indexOf(prefix) === 0)
|
|
34333
|
-
obj[k.substring(l)] =
|
|
34250
|
+
obj[k.substring(l)] = env4[k];
|
|
34334
34251
|
}
|
|
34335
34252
|
return obj;
|
|
34336
34253
|
};
|
|
@@ -34436,10 +34353,10 @@ var require_config_chain = __commonJS({
|
|
|
34436
34353
|
}.bind(this));
|
|
34437
34354
|
return this;
|
|
34438
34355
|
};
|
|
34439
|
-
ConfigChain.prototype.addEnv = function(prefix,
|
|
34356
|
+
ConfigChain.prototype.addEnv = function(prefix, env4, name) {
|
|
34440
34357
|
name = name || "env";
|
|
34441
|
-
var data = exports.env(prefix,
|
|
34442
|
-
this.sources[name] = { data, source:
|
|
34358
|
+
var data = exports.env(prefix, env4);
|
|
34359
|
+
this.sources[name] = { data, source: env4, prefix };
|
|
34443
34360
|
return this.add(data, name);
|
|
34444
34361
|
};
|
|
34445
34362
|
ConfigChain.prototype.addUrl = function(req, type, name) {
|
|
@@ -34534,28 +34451,28 @@ var require_env_replace = __commonJS({
|
|
|
34534
34451
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34535
34452
|
exports.envReplace = void 0;
|
|
34536
34453
|
var ENV_EXPR = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
|
|
34537
|
-
function envReplace(settingValue,
|
|
34538
|
-
return settingValue.replace(ENV_EXPR, replaceEnvMatch.bind(null,
|
|
34454
|
+
function envReplace(settingValue, env3) {
|
|
34455
|
+
return settingValue.replace(ENV_EXPR, replaceEnvMatch.bind(null, env3));
|
|
34539
34456
|
}
|
|
34540
34457
|
exports.envReplace = envReplace;
|
|
34541
|
-
function replaceEnvMatch(
|
|
34458
|
+
function replaceEnvMatch(env3, orig, escape3, name) {
|
|
34542
34459
|
if (escape3.length % 2) {
|
|
34543
34460
|
return orig.slice((escape3.length + 1) / 2);
|
|
34544
34461
|
}
|
|
34545
|
-
const envValue = getEnvValue(
|
|
34462
|
+
const envValue = getEnvValue(env3, name);
|
|
34546
34463
|
if (envValue === void 0) {
|
|
34547
34464
|
throw new Error(`Failed to replace env in config: ${orig}`);
|
|
34548
34465
|
}
|
|
34549
34466
|
return `${escape3.slice(escape3.length / 2)}${envValue}`;
|
|
34550
34467
|
}
|
|
34551
34468
|
var ENV_VALUE = /([^:-]+)(:?)-(.+)/;
|
|
34552
|
-
function getEnvValue(
|
|
34469
|
+
function getEnvValue(env3, name) {
|
|
34553
34470
|
const matched = name.match(ENV_VALUE);
|
|
34554
34471
|
if (!matched)
|
|
34555
|
-
return
|
|
34472
|
+
return env3[name];
|
|
34556
34473
|
const [, variableName, colon, fallback] = matched;
|
|
34557
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
34558
|
-
return !
|
|
34474
|
+
if (Object.prototype.hasOwnProperty.call(env3, variableName)) {
|
|
34475
|
+
return !env3[variableName] && colon ? fallback : env3[variableName];
|
|
34559
34476
|
}
|
|
34560
34477
|
return fallback;
|
|
34561
34478
|
}
|
|
@@ -34874,15 +34791,15 @@ var require_conf = __commonJS({
|
|
|
34874
34791
|
}
|
|
34875
34792
|
}
|
|
34876
34793
|
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L341-L357
|
|
34877
|
-
addEnv(
|
|
34878
|
-
|
|
34794
|
+
addEnv(env3) {
|
|
34795
|
+
env3 = env3 || process.env;
|
|
34879
34796
|
const conf = {};
|
|
34880
|
-
Object.keys(
|
|
34881
|
-
if (!
|
|
34797
|
+
Object.keys(env3).filter((x) => /^npm_config_/i.test(x)).forEach((x) => {
|
|
34798
|
+
if (!env3[x]) {
|
|
34882
34799
|
return;
|
|
34883
34800
|
}
|
|
34884
34801
|
const key = envKeyToSetting(x.substr(11));
|
|
34885
|
-
const rawVal =
|
|
34802
|
+
const rawVal = env3[x];
|
|
34886
34803
|
conf[key] = deserializeEnvVal(key, rawVal);
|
|
34887
34804
|
});
|
|
34888
34805
|
return super.addEnv("", conf, "env");
|
|
@@ -34988,20 +34905,20 @@ var require_defaults2 = __commonJS({
|
|
|
34988
34905
|
"../../node_modules/@pnpm/npm-conf/lib/defaults.js"(exports) {
|
|
34989
34906
|
"use strict";
|
|
34990
34907
|
init_esm_shims();
|
|
34991
|
-
var
|
|
34908
|
+
var os7 = __require("os");
|
|
34992
34909
|
var path4 = __require("path");
|
|
34993
|
-
var temp =
|
|
34910
|
+
var temp = os7.tmpdir();
|
|
34994
34911
|
var uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
34995
34912
|
var hasUnicode = () => true;
|
|
34996
|
-
var
|
|
34913
|
+
var isWindows4 = process.platform === "win32";
|
|
34997
34914
|
var osenv = {
|
|
34998
|
-
editor: () => process.env.EDITOR || process.env.VISUAL || (
|
|
34999
|
-
shell: () =>
|
|
34915
|
+
editor: () => process.env.EDITOR || process.env.VISUAL || (isWindows4 ? "notepad.exe" : "vi"),
|
|
34916
|
+
shell: () => isWindows4 ? process.env.COMSPEC || "cmd.exe" : process.env.SHELL || "/bin/bash"
|
|
35000
34917
|
};
|
|
35001
34918
|
var umask = {
|
|
35002
34919
|
fromString: () => process.umask()
|
|
35003
34920
|
};
|
|
35004
|
-
var home =
|
|
34921
|
+
var home = os7.homedir();
|
|
35005
34922
|
if (home) {
|
|
35006
34923
|
process.env.HOME = home;
|
|
35007
34924
|
} else {
|
|
@@ -40277,12 +40194,12 @@ init_esm_shims();
|
|
|
40277
40194
|
init_esm_shims();
|
|
40278
40195
|
import process13 from "node:process";
|
|
40279
40196
|
function isUnicodeSupported() {
|
|
40280
|
-
const { env:
|
|
40281
|
-
const { TERM, TERM_PROGRAM } =
|
|
40197
|
+
const { env: env3 } = process13;
|
|
40198
|
+
const { TERM, TERM_PROGRAM } = env3;
|
|
40282
40199
|
if (process13.platform !== "win32") {
|
|
40283
40200
|
return TERM !== "linux";
|
|
40284
40201
|
}
|
|
40285
|
-
return Boolean(
|
|
40202
|
+
return Boolean(env3.WT_SESSION) || Boolean(env3.TERMINUS_SUBLIME) || env3.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env3.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
40286
40203
|
}
|
|
40287
40204
|
|
|
40288
40205
|
// ../cli-ui-kit/src/components/UnorderedList/DefaultMarker.ts
|
|
@@ -41327,24 +41244,86 @@ var import_react55 = __toESM(require_react(), 1);
|
|
|
41327
41244
|
// ../../node_modules/terminal-link/index.js
|
|
41328
41245
|
init_esm_shims();
|
|
41329
41246
|
|
|
41330
|
-
// ../../node_modules/
|
|
41247
|
+
// ../../node_modules/ansi-escapes/index.js
|
|
41248
|
+
init_esm_shims();
|
|
41249
|
+
|
|
41250
|
+
// ../../node_modules/ansi-escapes/base.js
|
|
41251
|
+
var base_exports = {};
|
|
41252
|
+
__export(base_exports, {
|
|
41253
|
+
beep: () => beep,
|
|
41254
|
+
clearScreen: () => clearScreen,
|
|
41255
|
+
clearTerminal: () => clearTerminal,
|
|
41256
|
+
cursorBackward: () => cursorBackward,
|
|
41257
|
+
cursorDown: () => cursorDown,
|
|
41258
|
+
cursorForward: () => cursorForward,
|
|
41259
|
+
cursorGetPosition: () => cursorGetPosition,
|
|
41260
|
+
cursorHide: () => cursorHide,
|
|
41261
|
+
cursorLeft: () => cursorLeft,
|
|
41262
|
+
cursorMove: () => cursorMove,
|
|
41263
|
+
cursorNextLine: () => cursorNextLine,
|
|
41264
|
+
cursorPrevLine: () => cursorPrevLine,
|
|
41265
|
+
cursorRestorePosition: () => cursorRestorePosition,
|
|
41266
|
+
cursorSavePosition: () => cursorSavePosition,
|
|
41267
|
+
cursorShow: () => cursorShow,
|
|
41268
|
+
cursorTo: () => cursorTo,
|
|
41269
|
+
cursorUp: () => cursorUp,
|
|
41270
|
+
enterAlternativeScreen: () => enterAlternativeScreen,
|
|
41271
|
+
eraseDown: () => eraseDown,
|
|
41272
|
+
eraseEndLine: () => eraseEndLine,
|
|
41273
|
+
eraseLine: () => eraseLine,
|
|
41274
|
+
eraseLines: () => eraseLines,
|
|
41275
|
+
eraseScreen: () => eraseScreen,
|
|
41276
|
+
eraseStartLine: () => eraseStartLine,
|
|
41277
|
+
eraseUp: () => eraseUp,
|
|
41278
|
+
exitAlternativeScreen: () => exitAlternativeScreen,
|
|
41279
|
+
iTerm: () => iTerm,
|
|
41280
|
+
image: () => image,
|
|
41281
|
+
link: () => link,
|
|
41282
|
+
scrollDown: () => scrollDown,
|
|
41283
|
+
scrollUp: () => scrollUp
|
|
41284
|
+
});
|
|
41285
|
+
init_esm_shims();
|
|
41286
|
+
import process16 from "node:process";
|
|
41287
|
+
|
|
41288
|
+
// ../../node_modules/environment/index.js
|
|
41331
41289
|
init_esm_shims();
|
|
41290
|
+
var isBrowser2 = globalThis.window?.document !== void 0;
|
|
41291
|
+
var isNode = globalThis.process?.versions?.node !== void 0;
|
|
41292
|
+
var isBun = globalThis.process?.versions?.bun !== void 0;
|
|
41293
|
+
var isDeno = globalThis.Deno?.version?.deno !== void 0;
|
|
41294
|
+
var isElectron = globalThis.process?.versions?.electron !== void 0;
|
|
41295
|
+
var isJsDom = globalThis.navigator?.userAgent?.includes("jsdom") === true;
|
|
41296
|
+
var isWebWorker = typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
41297
|
+
var isDedicatedWorker = typeof DedicatedWorkerGlobalScope !== "undefined" && globalThis instanceof DedicatedWorkerGlobalScope;
|
|
41298
|
+
var isSharedWorker = typeof SharedWorkerGlobalScope !== "undefined" && globalThis instanceof SharedWorkerGlobalScope;
|
|
41299
|
+
var isServiceWorker = typeof ServiceWorkerGlobalScope !== "undefined" && globalThis instanceof ServiceWorkerGlobalScope;
|
|
41300
|
+
var platform2 = globalThis.navigator?.userAgentData?.platform;
|
|
41301
|
+
var isMacOs = platform2 === "macOS" || globalThis.navigator?.platform === "MacIntel" || globalThis.navigator?.userAgent?.includes(" Mac ") === true || globalThis.process?.platform === "darwin";
|
|
41302
|
+
var isWindows2 = platform2 === "Windows" || globalThis.navigator?.platform === "Win32" || globalThis.process?.platform === "win32";
|
|
41303
|
+
var isLinux = platform2 === "Linux" || globalThis.navigator?.platform?.startsWith("Linux") === true || globalThis.navigator?.userAgent?.includes(" Linux ") === true || globalThis.process?.platform === "linux";
|
|
41304
|
+
var isIos = platform2 === "iOS" || globalThis.navigator?.platform === "MacIntel" && globalThis.navigator?.maxTouchPoints > 1 || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
|
|
41305
|
+
var isAndroid = platform2 === "Android" || globalThis.navigator?.platform === "Android" || globalThis.navigator?.userAgent?.includes(" Android ") === true || globalThis.process?.platform === "android";
|
|
41306
|
+
|
|
41307
|
+
// ../../node_modules/ansi-escapes/base.js
|
|
41332
41308
|
var ESC2 = "\x1B[";
|
|
41333
41309
|
var OSC2 = "\x1B]";
|
|
41334
41310
|
var BEL2 = "\x07";
|
|
41335
41311
|
var SEP2 = ";";
|
|
41336
|
-
var isTerminalApp2 =
|
|
41337
|
-
var
|
|
41338
|
-
|
|
41312
|
+
var isTerminalApp2 = !isBrowser2 && process16.env.TERM_PROGRAM === "Apple_Terminal";
|
|
41313
|
+
var isWindows3 = !isBrowser2 && process16.platform === "win32";
|
|
41314
|
+
var cwdFunction2 = isBrowser2 ? () => {
|
|
41315
|
+
throw new Error("`process.cwd()` only works in Node.js, not the browser.");
|
|
41316
|
+
} : process16.cwd;
|
|
41317
|
+
var cursorTo = (x, y) => {
|
|
41339
41318
|
if (typeof x !== "number") {
|
|
41340
41319
|
throw new TypeError("The `x` argument is required");
|
|
41341
41320
|
}
|
|
41342
41321
|
if (typeof y !== "number") {
|
|
41343
41322
|
return ESC2 + (x + 1) + "G";
|
|
41344
41323
|
}
|
|
41345
|
-
return ESC2 + (y + 1) +
|
|
41324
|
+
return ESC2 + (y + 1) + SEP2 + (x + 1) + "H";
|
|
41346
41325
|
};
|
|
41347
|
-
|
|
41326
|
+
var cursorMove = (x, y) => {
|
|
41348
41327
|
if (typeof x !== "number") {
|
|
41349
41328
|
throw new TypeError("The `x` argument is required");
|
|
41350
41329
|
}
|
|
@@ -41361,62 +41340,56 @@ ansiEscapes2.cursorMove = (x, y) => {
|
|
|
41361
41340
|
}
|
|
41362
41341
|
return returnValue;
|
|
41363
41342
|
};
|
|
41364
|
-
|
|
41365
|
-
|
|
41366
|
-
|
|
41367
|
-
|
|
41368
|
-
|
|
41369
|
-
|
|
41370
|
-
|
|
41371
|
-
|
|
41372
|
-
|
|
41373
|
-
|
|
41374
|
-
|
|
41375
|
-
|
|
41376
|
-
|
|
41343
|
+
var cursorUp = (count = 1) => ESC2 + count + "A";
|
|
41344
|
+
var cursorDown = (count = 1) => ESC2 + count + "B";
|
|
41345
|
+
var cursorForward = (count = 1) => ESC2 + count + "C";
|
|
41346
|
+
var cursorBackward = (count = 1) => ESC2 + count + "D";
|
|
41347
|
+
var cursorLeft = ESC2 + "G";
|
|
41348
|
+
var cursorSavePosition = isTerminalApp2 ? "\x1B7" : ESC2 + "s";
|
|
41349
|
+
var cursorRestorePosition = isTerminalApp2 ? "\x1B8" : ESC2 + "u";
|
|
41350
|
+
var cursorGetPosition = ESC2 + "6n";
|
|
41351
|
+
var cursorNextLine = ESC2 + "E";
|
|
41352
|
+
var cursorPrevLine = ESC2 + "F";
|
|
41353
|
+
var cursorHide = ESC2 + "?25l";
|
|
41354
|
+
var cursorShow = ESC2 + "?25h";
|
|
41355
|
+
var eraseLines = (count) => {
|
|
41377
41356
|
let clear = "";
|
|
41378
41357
|
for (let i2 = 0; i2 < count; i2++) {
|
|
41379
|
-
clear +=
|
|
41358
|
+
clear += eraseLine + (i2 < count - 1 ? cursorUp() : "");
|
|
41380
41359
|
}
|
|
41381
41360
|
if (count) {
|
|
41382
|
-
clear +=
|
|
41361
|
+
clear += cursorLeft;
|
|
41383
41362
|
}
|
|
41384
41363
|
return clear;
|
|
41385
41364
|
};
|
|
41386
|
-
|
|
41387
|
-
|
|
41388
|
-
|
|
41389
|
-
|
|
41390
|
-
|
|
41391
|
-
|
|
41392
|
-
|
|
41393
|
-
|
|
41394
|
-
|
|
41395
|
-
|
|
41396
|
-
|
|
41397
|
-
|
|
41398
|
-
|
|
41399
|
-
|
|
41400
|
-
|
|
41401
|
-
|
|
41402
|
-
|
|
41403
|
-
|
|
41404
|
-
|
|
41405
|
-
|
|
41406
|
-
|
|
41407
|
-
|
|
41408
|
-
|
|
41409
|
-
|
|
41410
|
-
|
|
41411
|
-
|
|
41412
|
-
|
|
41413
|
-
|
|
41414
|
-
SEP2,
|
|
41415
|
-
SEP2,
|
|
41416
|
-
BEL2
|
|
41417
|
-
].join("");
|
|
41418
|
-
};
|
|
41419
|
-
ansiEscapes2.image = (buffer, options = {}) => {
|
|
41365
|
+
var eraseEndLine = ESC2 + "K";
|
|
41366
|
+
var eraseStartLine = ESC2 + "1K";
|
|
41367
|
+
var eraseLine = ESC2 + "2K";
|
|
41368
|
+
var eraseDown = ESC2 + "J";
|
|
41369
|
+
var eraseUp = ESC2 + "1J";
|
|
41370
|
+
var eraseScreen = ESC2 + "2J";
|
|
41371
|
+
var scrollUp = ESC2 + "S";
|
|
41372
|
+
var scrollDown = ESC2 + "T";
|
|
41373
|
+
var clearScreen = "\x1Bc";
|
|
41374
|
+
var clearTerminal = isWindows3 ? `${eraseScreen}${ESC2}0f` : `${eraseScreen}${ESC2}3J${ESC2}H`;
|
|
41375
|
+
var enterAlternativeScreen = ESC2 + "?1049h";
|
|
41376
|
+
var exitAlternativeScreen = ESC2 + "?1049l";
|
|
41377
|
+
var beep = BEL2;
|
|
41378
|
+
var link = (text, url) => [
|
|
41379
|
+
OSC2,
|
|
41380
|
+
"8",
|
|
41381
|
+
SEP2,
|
|
41382
|
+
SEP2,
|
|
41383
|
+
url,
|
|
41384
|
+
BEL2,
|
|
41385
|
+
text,
|
|
41386
|
+
OSC2,
|
|
41387
|
+
"8",
|
|
41388
|
+
SEP2,
|
|
41389
|
+
SEP2,
|
|
41390
|
+
BEL2
|
|
41391
|
+
].join("");
|
|
41392
|
+
var image = (data, options = {}) => {
|
|
41420
41393
|
let returnValue = `${OSC2}1337;File=inline=1`;
|
|
41421
41394
|
if (options.width) {
|
|
41422
41395
|
returnValue += `;width=${options.width}`;
|
|
@@ -41427,18 +41400,18 @@ ansiEscapes2.image = (buffer, options = {}) => {
|
|
|
41427
41400
|
if (options.preserveAspectRatio === false) {
|
|
41428
41401
|
returnValue += ";preserveAspectRatio=0";
|
|
41429
41402
|
}
|
|
41430
|
-
return returnValue + ":" +
|
|
41403
|
+
return returnValue + ":" + Buffer.from(data).toString("base64") + BEL2;
|
|
41431
41404
|
};
|
|
41432
|
-
|
|
41433
|
-
setCwd: (cwd3 =
|
|
41434
|
-
annotation
|
|
41405
|
+
var iTerm = {
|
|
41406
|
+
setCwd: (cwd3 = cwdFunction2()) => `${OSC2}50;CurrentDir=${cwd3}${BEL2}`,
|
|
41407
|
+
annotation(message, options = {}) {
|
|
41435
41408
|
let returnValue = `${OSC2}1337;`;
|
|
41436
|
-
const hasX =
|
|
41437
|
-
const hasY =
|
|
41438
|
-
if ((hasX || hasY) && !(hasX && hasY &&
|
|
41409
|
+
const hasX = options.x !== void 0;
|
|
41410
|
+
const hasY = options.y !== void 0;
|
|
41411
|
+
if ((hasX || hasY) && !(hasX && hasY && options.length !== void 0)) {
|
|
41439
41412
|
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
41440
41413
|
}
|
|
41441
|
-
message = message.
|
|
41414
|
+
message = message.replaceAll("|", "");
|
|
41442
41415
|
returnValue += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
41443
41416
|
if (options.length > 0) {
|
|
41444
41417
|
returnValue += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
@@ -41448,22 +41421,289 @@ ansiEscapes2.iTerm = {
|
|
|
41448
41421
|
return returnValue + BEL2;
|
|
41449
41422
|
}
|
|
41450
41423
|
};
|
|
41451
|
-
|
|
41424
|
+
|
|
41425
|
+
// ../../node_modules/supports-hyperlinks/index.js
|
|
41426
|
+
init_esm_shims();
|
|
41427
|
+
import process19 from "node:process";
|
|
41428
|
+
|
|
41429
|
+
// ../../node_modules/supports-hyperlinks/node_modules/supports-color/index.js
|
|
41430
|
+
init_esm_shims();
|
|
41431
|
+
import process17 from "node:process";
|
|
41432
|
+
import os2 from "node:os";
|
|
41433
|
+
import tty2 from "node:tty";
|
|
41434
|
+
function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process17.argv) {
|
|
41435
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
41436
|
+
const position = argv.indexOf(prefix + flag);
|
|
41437
|
+
const terminatorPosition = argv.indexOf("--");
|
|
41438
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
41439
|
+
}
|
|
41440
|
+
var { env: env2 } = process17;
|
|
41441
|
+
var flagForceColor2;
|
|
41442
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
41443
|
+
flagForceColor2 = 0;
|
|
41444
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
41445
|
+
flagForceColor2 = 1;
|
|
41446
|
+
}
|
|
41447
|
+
function envForceColor2() {
|
|
41448
|
+
if (!("FORCE_COLOR" in env2)) {
|
|
41449
|
+
return;
|
|
41450
|
+
}
|
|
41451
|
+
if (env2.FORCE_COLOR === "true") {
|
|
41452
|
+
return 1;
|
|
41453
|
+
}
|
|
41454
|
+
if (env2.FORCE_COLOR === "false") {
|
|
41455
|
+
return 0;
|
|
41456
|
+
}
|
|
41457
|
+
if (env2.FORCE_COLOR.length === 0) {
|
|
41458
|
+
return 1;
|
|
41459
|
+
}
|
|
41460
|
+
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
41461
|
+
if (![0, 1, 2, 3].includes(level)) {
|
|
41462
|
+
return;
|
|
41463
|
+
}
|
|
41464
|
+
return level;
|
|
41465
|
+
}
|
|
41466
|
+
function translateLevel2(level) {
|
|
41467
|
+
if (level === 0) {
|
|
41468
|
+
return false;
|
|
41469
|
+
}
|
|
41470
|
+
return {
|
|
41471
|
+
level,
|
|
41472
|
+
hasBasic: true,
|
|
41473
|
+
has256: level >= 2,
|
|
41474
|
+
has16m: level >= 3
|
|
41475
|
+
};
|
|
41476
|
+
}
|
|
41477
|
+
function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
41478
|
+
const noFlagForceColor = envForceColor2();
|
|
41479
|
+
if (noFlagForceColor !== void 0) {
|
|
41480
|
+
flagForceColor2 = noFlagForceColor;
|
|
41481
|
+
}
|
|
41482
|
+
const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
|
|
41483
|
+
if (forceColor === 0) {
|
|
41484
|
+
return 0;
|
|
41485
|
+
}
|
|
41486
|
+
if (sniffFlags) {
|
|
41487
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
41488
|
+
return 3;
|
|
41489
|
+
}
|
|
41490
|
+
if (hasFlag2("color=256")) {
|
|
41491
|
+
return 2;
|
|
41492
|
+
}
|
|
41493
|
+
}
|
|
41494
|
+
if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
|
|
41495
|
+
return 1;
|
|
41496
|
+
}
|
|
41497
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
41498
|
+
return 0;
|
|
41499
|
+
}
|
|
41500
|
+
const min = forceColor || 0;
|
|
41501
|
+
if (env2.TERM === "dumb") {
|
|
41502
|
+
return min;
|
|
41503
|
+
}
|
|
41504
|
+
if (process17.platform === "win32") {
|
|
41505
|
+
const osRelease = os2.release().split(".");
|
|
41506
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
41507
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
41508
|
+
}
|
|
41509
|
+
return 1;
|
|
41510
|
+
}
|
|
41511
|
+
if ("CI" in env2) {
|
|
41512
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
|
|
41513
|
+
return 3;
|
|
41514
|
+
}
|
|
41515
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
41516
|
+
return 1;
|
|
41517
|
+
}
|
|
41518
|
+
return min;
|
|
41519
|
+
}
|
|
41520
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
41521
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
41522
|
+
}
|
|
41523
|
+
if (env2.COLORTERM === "truecolor") {
|
|
41524
|
+
return 3;
|
|
41525
|
+
}
|
|
41526
|
+
if (env2.TERM === "xterm-kitty") {
|
|
41527
|
+
return 3;
|
|
41528
|
+
}
|
|
41529
|
+
if (env2.TERM === "xterm-ghostty") {
|
|
41530
|
+
return 3;
|
|
41531
|
+
}
|
|
41532
|
+
if (env2.TERM === "wezterm") {
|
|
41533
|
+
return 3;
|
|
41534
|
+
}
|
|
41535
|
+
if ("TERM_PROGRAM" in env2) {
|
|
41536
|
+
const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
41537
|
+
switch (env2.TERM_PROGRAM) {
|
|
41538
|
+
case "iTerm.app": {
|
|
41539
|
+
return version >= 3 ? 3 : 2;
|
|
41540
|
+
}
|
|
41541
|
+
case "Apple_Terminal": {
|
|
41542
|
+
return 2;
|
|
41543
|
+
}
|
|
41544
|
+
}
|
|
41545
|
+
}
|
|
41546
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
41547
|
+
return 2;
|
|
41548
|
+
}
|
|
41549
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
41550
|
+
return 1;
|
|
41551
|
+
}
|
|
41552
|
+
if ("COLORTERM" in env2) {
|
|
41553
|
+
return 1;
|
|
41554
|
+
}
|
|
41555
|
+
return min;
|
|
41556
|
+
}
|
|
41557
|
+
function createSupportsColor2(stream, options = {}) {
|
|
41558
|
+
const level = _supportsColor2(stream, {
|
|
41559
|
+
streamIsTTY: stream && stream.isTTY,
|
|
41560
|
+
...options
|
|
41561
|
+
});
|
|
41562
|
+
return translateLevel2(level);
|
|
41563
|
+
}
|
|
41564
|
+
var supportsColor2 = {
|
|
41565
|
+
stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
|
|
41566
|
+
stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
|
|
41567
|
+
};
|
|
41568
|
+
|
|
41569
|
+
// ../../node_modules/supports-hyperlinks/node_modules/has-flag/index.js
|
|
41570
|
+
init_esm_shims();
|
|
41571
|
+
import process18 from "process";
|
|
41572
|
+
function hasFlag3(flag, argv = process18.argv) {
|
|
41573
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
41574
|
+
const position = argv.indexOf(prefix + flag);
|
|
41575
|
+
const terminatorPosition = argv.indexOf("--");
|
|
41576
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
41577
|
+
}
|
|
41578
|
+
|
|
41579
|
+
// ../../node_modules/supports-hyperlinks/index.js
|
|
41580
|
+
function parseVersion(versionString = "") {
|
|
41581
|
+
if (/^\d{3,4}$/.test(versionString)) {
|
|
41582
|
+
const match24 = /(\d{1,2})(\d{2})/.exec(versionString) ?? [];
|
|
41583
|
+
return {
|
|
41584
|
+
major: 0,
|
|
41585
|
+
minor: Number.parseInt(match24[1], 10),
|
|
41586
|
+
patch: Number.parseInt(match24[2], 10)
|
|
41587
|
+
};
|
|
41588
|
+
}
|
|
41589
|
+
const versions = (versionString ?? "").split(".").map((n2) => Number.parseInt(n2, 10));
|
|
41590
|
+
return {
|
|
41591
|
+
major: versions[0],
|
|
41592
|
+
minor: versions[1],
|
|
41593
|
+
patch: versions[2]
|
|
41594
|
+
};
|
|
41595
|
+
}
|
|
41596
|
+
function createSupportsHyperlinks(stream) {
|
|
41597
|
+
const {
|
|
41598
|
+
CI,
|
|
41599
|
+
CURSOR_TRACE_ID,
|
|
41600
|
+
FORCE_HYPERLINK,
|
|
41601
|
+
NETLIFY,
|
|
41602
|
+
TEAMCITY_VERSION,
|
|
41603
|
+
TERM_PROGRAM,
|
|
41604
|
+
TERM_PROGRAM_VERSION,
|
|
41605
|
+
VTE_VERSION,
|
|
41606
|
+
TERM
|
|
41607
|
+
} = process19.env;
|
|
41608
|
+
if (FORCE_HYPERLINK) {
|
|
41609
|
+
return !(FORCE_HYPERLINK.length > 0 && Number.parseInt(FORCE_HYPERLINK, 10) === 0);
|
|
41610
|
+
}
|
|
41611
|
+
if (hasFlag3("no-hyperlink") || hasFlag3("no-hyperlinks") || hasFlag3("hyperlink=false") || hasFlag3("hyperlink=never")) {
|
|
41612
|
+
return false;
|
|
41613
|
+
}
|
|
41614
|
+
if (hasFlag3("hyperlink=true") || hasFlag3("hyperlink=always")) {
|
|
41615
|
+
return true;
|
|
41616
|
+
}
|
|
41617
|
+
if (NETLIFY) {
|
|
41618
|
+
return true;
|
|
41619
|
+
}
|
|
41620
|
+
if (!createSupportsColor2(stream)) {
|
|
41621
|
+
return false;
|
|
41622
|
+
}
|
|
41623
|
+
if (stream && !stream.isTTY) {
|
|
41624
|
+
return false;
|
|
41625
|
+
}
|
|
41626
|
+
if ("WT_SESSION" in process19.env) {
|
|
41627
|
+
return true;
|
|
41628
|
+
}
|
|
41629
|
+
if (process19.platform === "win32") {
|
|
41630
|
+
return false;
|
|
41631
|
+
}
|
|
41632
|
+
if (CI) {
|
|
41633
|
+
return false;
|
|
41634
|
+
}
|
|
41635
|
+
if (TEAMCITY_VERSION) {
|
|
41636
|
+
return false;
|
|
41637
|
+
}
|
|
41638
|
+
if (TERM_PROGRAM) {
|
|
41639
|
+
const version = parseVersion(TERM_PROGRAM_VERSION);
|
|
41640
|
+
switch (TERM_PROGRAM) {
|
|
41641
|
+
case "iTerm.app": {
|
|
41642
|
+
if (version.major === 3) {
|
|
41643
|
+
return version.minor >= 1;
|
|
41644
|
+
}
|
|
41645
|
+
return version.major > 3;
|
|
41646
|
+
}
|
|
41647
|
+
case "WezTerm": {
|
|
41648
|
+
if (/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(TERM_PROGRAM_VERSION)) {
|
|
41649
|
+
const date = TERM_PROGRAM_VERSION.slice("0-unstable-".length);
|
|
41650
|
+
return date >= "2020-06-20";
|
|
41651
|
+
}
|
|
41652
|
+
return version.major >= 20200620;
|
|
41653
|
+
}
|
|
41654
|
+
case "vscode": {
|
|
41655
|
+
if (CURSOR_TRACE_ID) {
|
|
41656
|
+
return true;
|
|
41657
|
+
}
|
|
41658
|
+
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
41659
|
+
}
|
|
41660
|
+
case "ghostty": {
|
|
41661
|
+
return true;
|
|
41662
|
+
}
|
|
41663
|
+
case "zed": {
|
|
41664
|
+
return true;
|
|
41665
|
+
}
|
|
41666
|
+
}
|
|
41667
|
+
}
|
|
41668
|
+
if (VTE_VERSION) {
|
|
41669
|
+
if (VTE_VERSION === "0.50.0") {
|
|
41670
|
+
return false;
|
|
41671
|
+
}
|
|
41672
|
+
const version = parseVersion(VTE_VERSION);
|
|
41673
|
+
return version.major > 0 || version.minor >= 50;
|
|
41674
|
+
}
|
|
41675
|
+
switch (TERM) {
|
|
41676
|
+
case "alacritty": {
|
|
41677
|
+
return true;
|
|
41678
|
+
}
|
|
41679
|
+
case "xterm-kitty": {
|
|
41680
|
+
return true;
|
|
41681
|
+
}
|
|
41682
|
+
}
|
|
41683
|
+
return false;
|
|
41684
|
+
}
|
|
41685
|
+
var supportsHyperlinks = {
|
|
41686
|
+
stdout: createSupportsHyperlinks(process19.stdout),
|
|
41687
|
+
stderr: createSupportsHyperlinks(process19.stderr)
|
|
41688
|
+
};
|
|
41689
|
+
var supports_hyperlinks_default = supportsHyperlinks;
|
|
41452
41690
|
|
|
41453
41691
|
// ../../node_modules/terminal-link/index.js
|
|
41454
|
-
var import_supports_hyperlinks = __toESM(require_supports_hyperlinks(), 1);
|
|
41455
41692
|
function terminalLink(text, url, { target = "stdout", ...options } = {}) {
|
|
41456
|
-
if (!
|
|
41693
|
+
if (!supports_hyperlinks_default[target]) {
|
|
41457
41694
|
if (options.fallback === false) {
|
|
41458
41695
|
return text;
|
|
41459
41696
|
}
|
|
41460
|
-
|
|
41697
|
+
if (typeof options.fallback === "function") {
|
|
41698
|
+
return options.fallback(text, url);
|
|
41699
|
+
}
|
|
41700
|
+
return `${text} ${url}`;
|
|
41461
41701
|
}
|
|
41462
|
-
return
|
|
41702
|
+
return base_exports.link(text, url);
|
|
41463
41703
|
}
|
|
41464
|
-
terminalLink.isSupported =
|
|
41704
|
+
terminalLink.isSupported = supports_hyperlinks_default.stdout;
|
|
41465
41705
|
terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
|
|
41466
|
-
terminalLink.stderr.isSupported =
|
|
41706
|
+
terminalLink.stderr.isSupported = supports_hyperlinks_default.stderr;
|
|
41467
41707
|
|
|
41468
41708
|
// ../cli-ui-kit/src/components/Link.tsx
|
|
41469
41709
|
var Link = ({ skin, children, url }) => {
|
|
@@ -50454,7 +50694,7 @@ init_esm_shims();
|
|
|
50454
50694
|
|
|
50455
50695
|
// ../../node_modules/open/index.js
|
|
50456
50696
|
init_esm_shims();
|
|
50457
|
-
import
|
|
50697
|
+
import process24 from "node:process";
|
|
50458
50698
|
import { Buffer as Buffer3 } from "node:buffer";
|
|
50459
50699
|
import path from "node:path";
|
|
50460
50700
|
import { fileURLToPath } from "node:url";
|
|
@@ -50463,8 +50703,8 @@ import fs5, { constants as fsConstants } from "node:fs/promises";
|
|
|
50463
50703
|
|
|
50464
50704
|
// ../../node_modules/is-wsl/index.js
|
|
50465
50705
|
init_esm_shims();
|
|
50466
|
-
import
|
|
50467
|
-
import
|
|
50706
|
+
import process20 from "node:process";
|
|
50707
|
+
import os3 from "node:os";
|
|
50468
50708
|
import fs4 from "node:fs";
|
|
50469
50709
|
|
|
50470
50710
|
// ../../node_modules/is-inside-container/index.js
|
|
@@ -50516,10 +50756,10 @@ function isInsideContainer() {
|
|
|
50516
50756
|
|
|
50517
50757
|
// ../../node_modules/is-wsl/index.js
|
|
50518
50758
|
var isWsl = () => {
|
|
50519
|
-
if (
|
|
50759
|
+
if (process20.platform !== "linux") {
|
|
50520
50760
|
return false;
|
|
50521
50761
|
}
|
|
50522
|
-
if (
|
|
50762
|
+
if (os3.release().toLowerCase().includes("microsoft")) {
|
|
50523
50763
|
if (isInsideContainer()) {
|
|
50524
50764
|
return false;
|
|
50525
50765
|
}
|
|
@@ -50531,7 +50771,7 @@ var isWsl = () => {
|
|
|
50531
50771
|
return false;
|
|
50532
50772
|
}
|
|
50533
50773
|
};
|
|
50534
|
-
var is_wsl_default =
|
|
50774
|
+
var is_wsl_default = process20.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
50535
50775
|
|
|
50536
50776
|
// ../../node_modules/define-lazy-prop/index.js
|
|
50537
50777
|
init_esm_shims();
|
|
@@ -50555,17 +50795,17 @@ function defineLazyProperty(object, propertyName, valueGetter) {
|
|
|
50555
50795
|
// ../../node_modules/default-browser/index.js
|
|
50556
50796
|
init_esm_shims();
|
|
50557
50797
|
import { promisify as promisify4 } from "node:util";
|
|
50558
|
-
import
|
|
50798
|
+
import process23 from "node:process";
|
|
50559
50799
|
import { execFile as execFile4 } from "node:child_process";
|
|
50560
50800
|
|
|
50561
50801
|
// ../../node_modules/default-browser-id/index.js
|
|
50562
50802
|
init_esm_shims();
|
|
50563
50803
|
import { promisify } from "node:util";
|
|
50564
|
-
import
|
|
50804
|
+
import process21 from "node:process";
|
|
50565
50805
|
import { execFile } from "node:child_process";
|
|
50566
50806
|
var execFileAsync = promisify(execFile);
|
|
50567
50807
|
async function defaultBrowserId() {
|
|
50568
|
-
if (
|
|
50808
|
+
if (process21.platform !== "darwin") {
|
|
50569
50809
|
throw new Error("macOS only");
|
|
50570
50810
|
}
|
|
50571
50811
|
const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
|
|
@@ -50578,12 +50818,12 @@ init_esm_shims();
|
|
|
50578
50818
|
|
|
50579
50819
|
// ../../node_modules/run-applescript/index.js
|
|
50580
50820
|
init_esm_shims();
|
|
50581
|
-
import
|
|
50821
|
+
import process22 from "node:process";
|
|
50582
50822
|
import { promisify as promisify2 } from "node:util";
|
|
50583
50823
|
import { execFile as execFile2, execFileSync } from "node:child_process";
|
|
50584
50824
|
var execFileAsync2 = promisify2(execFile2);
|
|
50585
50825
|
async function runAppleScript(script, { humanReadableOutput = true } = {}) {
|
|
50586
|
-
if (
|
|
50826
|
+
if (process22.platform !== "darwin") {
|
|
50587
50827
|
throw new Error("macOS only");
|
|
50588
50828
|
}
|
|
50589
50829
|
const outputArguments = humanReadableOutput ? [] : ["-ss"];
|
|
@@ -50640,18 +50880,18 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
|
50640
50880
|
var execFileAsync4 = promisify4(execFile4);
|
|
50641
50881
|
var titleize = (string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase());
|
|
50642
50882
|
async function defaultBrowser2() {
|
|
50643
|
-
if (
|
|
50883
|
+
if (process23.platform === "darwin") {
|
|
50644
50884
|
const id = await defaultBrowserId();
|
|
50645
50885
|
const name = await bundleName(id);
|
|
50646
50886
|
return { name, id };
|
|
50647
50887
|
}
|
|
50648
|
-
if (
|
|
50888
|
+
if (process23.platform === "linux") {
|
|
50649
50889
|
const { stdout } = await execFileAsync4("xdg-mime", ["query", "default", "x-scheme-handler/http"]);
|
|
50650
50890
|
const id = stdout.trim();
|
|
50651
50891
|
const name = titleize(id.replace(/.desktop$/, "").replace("-", " "));
|
|
50652
50892
|
return { name, id };
|
|
50653
50893
|
}
|
|
50654
|
-
if (
|
|
50894
|
+
if (process23.platform === "win32") {
|
|
50655
50895
|
return defaultBrowser();
|
|
50656
50896
|
}
|
|
50657
50897
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
@@ -50660,7 +50900,7 @@ async function defaultBrowser2() {
|
|
|
50660
50900
|
// ../../node_modules/open/index.js
|
|
50661
50901
|
var __dirname2 = path.dirname(fileURLToPath(import.meta.url));
|
|
50662
50902
|
var localXdgOpenPath = path.join(__dirname2, "xdg-open");
|
|
50663
|
-
var { platform:
|
|
50903
|
+
var { platform: platform3, arch } = process24;
|
|
50664
50904
|
var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
50665
50905
|
const defaultMountPoint = "/mnt/";
|
|
50666
50906
|
let mountPoint;
|
|
@@ -50758,7 +50998,7 @@ var baseOpen = async (options) => {
|
|
|
50758
50998
|
let command;
|
|
50759
50999
|
const cliArguments = [];
|
|
50760
51000
|
const childProcessOptions = {};
|
|
50761
|
-
if (
|
|
51001
|
+
if (platform3 === "darwin") {
|
|
50762
51002
|
command = "open";
|
|
50763
51003
|
if (options.wait) {
|
|
50764
51004
|
cliArguments.push("--wait-apps");
|
|
@@ -50772,9 +51012,9 @@ var baseOpen = async (options) => {
|
|
|
50772
51012
|
if (app) {
|
|
50773
51013
|
cliArguments.push("-a", app);
|
|
50774
51014
|
}
|
|
50775
|
-
} else if (
|
|
51015
|
+
} else if (platform3 === "win32" || is_wsl_default && !isInsideContainer() && !app) {
|
|
50776
51016
|
const mountPoint = await getWslDrivesMountPoint();
|
|
50777
|
-
command = is_wsl_default ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${
|
|
51017
|
+
command = is_wsl_default ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process24.env.SYSTEMROOT || process24.env.windir || "C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
|
|
50778
51018
|
cliArguments.push(
|
|
50779
51019
|
"-NoProfile",
|
|
50780
51020
|
"-NonInteractive",
|
|
@@ -50813,7 +51053,7 @@ var baseOpen = async (options) => {
|
|
|
50813
51053
|
exeLocalXdgOpen = true;
|
|
50814
51054
|
} catch {
|
|
50815
51055
|
}
|
|
50816
|
-
const useSystemXdgOpen =
|
|
51056
|
+
const useSystemXdgOpen = process24.versions.electron ?? (platform3 === "android" || isBundled || !exeLocalXdgOpen);
|
|
50817
51057
|
command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
|
|
50818
51058
|
}
|
|
50819
51059
|
if (appArguments.length > 0) {
|
|
@@ -50824,7 +51064,7 @@ var baseOpen = async (options) => {
|
|
|
50824
51064
|
childProcessOptions.detached = true;
|
|
50825
51065
|
}
|
|
50826
51066
|
}
|
|
50827
|
-
if (
|
|
51067
|
+
if (platform3 === "darwin" && appArguments.length > 0) {
|
|
50828
51068
|
cliArguments.push("--args", ...appArguments);
|
|
50829
51069
|
}
|
|
50830
51070
|
if (options.target) {
|
|
@@ -50865,12 +51105,12 @@ function detectArchBinary(binary) {
|
|
|
50865
51105
|
}
|
|
50866
51106
|
return archBinary;
|
|
50867
51107
|
}
|
|
50868
|
-
function detectPlatformBinary({ [
|
|
51108
|
+
function detectPlatformBinary({ [platform3]: platformBinary }, { wsl }) {
|
|
50869
51109
|
if (wsl && is_wsl_default) {
|
|
50870
51110
|
return detectArchBinary(wsl);
|
|
50871
51111
|
}
|
|
50872
51112
|
if (!platformBinary) {
|
|
50873
|
-
throw new Error(`${
|
|
51113
|
+
throw new Error(`${platform3} is not supported`);
|
|
50874
51114
|
}
|
|
50875
51115
|
return detectArchBinary(platformBinary);
|
|
50876
51116
|
}
|
|
@@ -50945,7 +51185,7 @@ init_esm_shims();
|
|
|
50945
51185
|
// ../cli-error-reporting/src/create-error-handler.tsx
|
|
50946
51186
|
init_esm_shims();
|
|
50947
51187
|
var import_react85 = __toESM(require_react(), 1);
|
|
50948
|
-
import
|
|
51188
|
+
import process25 from "node:process";
|
|
50949
51189
|
|
|
50950
51190
|
// ../cli-debug-log/src/index.tsx
|
|
50951
51191
|
init_esm_shims();
|
|
@@ -51937,6 +52177,14 @@ function getErrorComponent(code, cause) {
|
|
|
51937
52177
|
}
|
|
51938
52178
|
);
|
|
51939
52179
|
},
|
|
52180
|
+
FailedToInstallApp: ({ appId, siteId }) => {
|
|
52181
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
52182
|
+
SystemErrorMessage,
|
|
52183
|
+
{
|
|
52184
|
+
message: `Failed to install app ${appId} on site ${siteId}.`
|
|
52185
|
+
}
|
|
52186
|
+
);
|
|
52187
|
+
},
|
|
51940
52188
|
FailedToInitializeGitRepo: () => {
|
|
51941
52189
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { cause, message: "Failed to initialize git repo." });
|
|
51942
52190
|
},
|
|
@@ -52828,6 +53076,15 @@ ${errorMessage2}`
|
|
|
52828
53076
|
message: `Failed to generate config for extension "${extensionId}".`
|
|
52829
53077
|
}
|
|
52830
53078
|
);
|
|
53079
|
+
},
|
|
53080
|
+
FailedToCreateCompanionApp: () => {
|
|
53081
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
53082
|
+
ErrorMessage,
|
|
53083
|
+
{
|
|
53084
|
+
cause,
|
|
53085
|
+
message: `Failed to create a companion app for your project.`
|
|
53086
|
+
}
|
|
53087
|
+
);
|
|
52831
53088
|
}
|
|
52832
53089
|
});
|
|
52833
53090
|
}
|
|
@@ -53334,7 +53591,7 @@ var consoleIntegration = defineIntegration(_consoleIntegration);
|
|
|
53334
53591
|
init_esm_shims();
|
|
53335
53592
|
import { execFile as execFile5 } from "node:child_process";
|
|
53336
53593
|
import { readFile, readdir } from "node:fs";
|
|
53337
|
-
import * as
|
|
53594
|
+
import * as os4 from "node:os";
|
|
53338
53595
|
import { join as join2 } from "node:path";
|
|
53339
53596
|
import { promisify as promisify5 } from "node:util";
|
|
53340
53597
|
var readFileAsync = promisify5(readFile);
|
|
@@ -53406,12 +53663,12 @@ function _updateContext(contexts) {
|
|
|
53406
53663
|
}
|
|
53407
53664
|
}
|
|
53408
53665
|
if (_optionalChain([contexts, "optionalAccess", (_17) => _17.device, "optionalAccess", (_18) => _18.free_memory])) {
|
|
53409
|
-
contexts.device.free_memory =
|
|
53666
|
+
contexts.device.free_memory = os4.freemem();
|
|
53410
53667
|
}
|
|
53411
53668
|
return contexts;
|
|
53412
53669
|
}
|
|
53413
53670
|
async function getOsContext() {
|
|
53414
|
-
const platformId =
|
|
53671
|
+
const platformId = os4.platform();
|
|
53415
53672
|
switch (platformId) {
|
|
53416
53673
|
case "darwin":
|
|
53417
53674
|
return getDarwinInfo();
|
|
@@ -53420,7 +53677,7 @@ async function getOsContext() {
|
|
|
53420
53677
|
default:
|
|
53421
53678
|
return {
|
|
53422
53679
|
name: PLATFORM_NAMES[platformId] || platformId,
|
|
53423
|
-
version:
|
|
53680
|
+
version: os4.release()
|
|
53424
53681
|
};
|
|
53425
53682
|
}
|
|
53426
53683
|
}
|
|
@@ -53458,19 +53715,19 @@ function getDeviceContext(deviceOpt) {
|
|
|
53458
53715
|
const device = {};
|
|
53459
53716
|
let uptime3;
|
|
53460
53717
|
try {
|
|
53461
|
-
uptime3 =
|
|
53718
|
+
uptime3 = os4.uptime && os4.uptime();
|
|
53462
53719
|
} catch (e2) {
|
|
53463
53720
|
}
|
|
53464
53721
|
if (typeof uptime3 === "number") {
|
|
53465
53722
|
device.boot_time = new Date(Date.now() - uptime3 * 1e3).toISOString();
|
|
53466
53723
|
}
|
|
53467
|
-
device.arch =
|
|
53724
|
+
device.arch = os4.arch();
|
|
53468
53725
|
if (deviceOpt === true || deviceOpt.memory) {
|
|
53469
|
-
device.memory_size =
|
|
53470
|
-
device.free_memory =
|
|
53726
|
+
device.memory_size = os4.totalmem();
|
|
53727
|
+
device.free_memory = os4.freemem();
|
|
53471
53728
|
}
|
|
53472
53729
|
if (deviceOpt === true || deviceOpt.cpu) {
|
|
53473
|
-
const cpuInfo =
|
|
53730
|
+
const cpuInfo = os4.cpus();
|
|
53474
53731
|
const firstCpu = cpuInfo && cpuInfo[0];
|
|
53475
53732
|
if (firstCpu) {
|
|
53476
53733
|
device.processor_count = cpuInfo.length;
|
|
@@ -53517,9 +53774,9 @@ function matchFirst(regex2, text) {
|
|
|
53517
53774
|
}
|
|
53518
53775
|
async function getDarwinInfo() {
|
|
53519
53776
|
const darwinInfo = {
|
|
53520
|
-
kernel_version:
|
|
53777
|
+
kernel_version: os4.release(),
|
|
53521
53778
|
name: "Mac OS X",
|
|
53522
|
-
version: `10.${Number(
|
|
53779
|
+
version: `10.${Number(os4.release().split(".")[0]) - 4}`
|
|
53523
53780
|
};
|
|
53524
53781
|
try {
|
|
53525
53782
|
const output = await new Promise((resolve4, reject) => {
|
|
@@ -53543,7 +53800,7 @@ function getLinuxDistroId(name) {
|
|
|
53543
53800
|
}
|
|
53544
53801
|
async function getLinuxInfo() {
|
|
53545
53802
|
const linuxInfo = {
|
|
53546
|
-
kernel_version:
|
|
53803
|
+
kernel_version: os4.release(),
|
|
53547
53804
|
name: "Linux"
|
|
53548
53805
|
};
|
|
53549
53806
|
try {
|
|
@@ -55362,13 +55619,13 @@ import { posix, sep as sep2 } from "node:path";
|
|
|
55362
55619
|
function normalizeWindowsPath(path4) {
|
|
55363
55620
|
return path4.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
55364
55621
|
}
|
|
55365
|
-
function createGetModuleFromFilename(basePath = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),
|
|
55366
|
-
const normalizedBase =
|
|
55622
|
+
function createGetModuleFromFilename(basePath = process.argv[1] ? dirname(process.argv[1]) : process.cwd(), isWindows4 = sep2 === "\\") {
|
|
55623
|
+
const normalizedBase = isWindows4 ? normalizeWindowsPath(basePath) : basePath;
|
|
55367
55624
|
return (filename) => {
|
|
55368
55625
|
if (!filename) {
|
|
55369
55626
|
return;
|
|
55370
55627
|
}
|
|
55371
|
-
const normalizedFilename =
|
|
55628
|
+
const normalizedFilename = isWindows4 ? normalizeWindowsPath(filename) : filename;
|
|
55372
55629
|
let { dir: dir2, base: file, ext } = posix.parse(normalizedFilename);
|
|
55373
55630
|
if (ext === ".js" || ext === ".mjs" || ext === ".cjs") {
|
|
55374
55631
|
file = file.slice(0, ext.length * -1);
|
|
@@ -55398,7 +55655,7 @@ var defaultStackParser = createStackParser(nodeStackLineParser(createGetModuleFr
|
|
|
55398
55655
|
// ../../node_modules/@sentry/node/build/esm/sdk/client.js
|
|
55399
55656
|
init_esm_shims();
|
|
55400
55657
|
init_esm();
|
|
55401
|
-
import * as
|
|
55658
|
+
import * as os5 from "node:os";
|
|
55402
55659
|
import { isMainThread, threadId } from "worker_threads";
|
|
55403
55660
|
var DEFAULT_CLIENT_REPORT_FLUSH_INTERVAL_MS = 6e4;
|
|
55404
55661
|
var NodeClient = class extends ServerRuntimeClient {
|
|
@@ -55407,7 +55664,7 @@ var NodeClient = class extends ServerRuntimeClient {
|
|
|
55407
55664
|
...options,
|
|
55408
55665
|
platform: "node",
|
|
55409
55666
|
runtime: { name: "node", version: global.process.version },
|
|
55410
|
-
serverName: options.serverName || global.process.env.SENTRY_NAME ||
|
|
55667
|
+
serverName: options.serverName || global.process.env.SENTRY_NAME || os5.hostname()
|
|
55411
55668
|
};
|
|
55412
55669
|
applySdkMetadata(clientOptions, "node");
|
|
55413
55670
|
logger.log(
|
|
@@ -55911,7 +56168,7 @@ function createErrorHandler({
|
|
|
55911
56168
|
/* @__PURE__ */ import_react85.default.createElement(import_react85.default.Fragment, null, /* @__PURE__ */ import_react85.default.createElement(ErrorViewer, { error }), isCI3 && /* @__PURE__ */ import_react85.default.createElement(RawErrorViewer, { error, occurredAt: occuredAt }))
|
|
55912
56169
|
);
|
|
55913
56170
|
writeCrashReport(debugOutputPath, error, occuredAt);
|
|
55914
|
-
|
|
56171
|
+
process25.exitCode = 1;
|
|
55915
56172
|
collectUserFeedback({
|
|
55916
56173
|
reportResult,
|
|
55917
56174
|
errorReporter: errorReporter2,
|
|
@@ -55921,13 +56178,13 @@ function createErrorHandler({
|
|
|
55921
56178
|
});
|
|
55922
56179
|
};
|
|
55923
56180
|
const registerToProcessErrors2 = function() {
|
|
55924
|
-
|
|
56181
|
+
process25.on("uncaughtException", (error) => {
|
|
55925
56182
|
handler({
|
|
55926
56183
|
error,
|
|
55927
56184
|
data: { mechanism: { handled: false, type: "uncaughtException" } }
|
|
55928
56185
|
});
|
|
55929
56186
|
});
|
|
55930
|
-
|
|
56187
|
+
process25.on("unhandledRejection", (error) => {
|
|
55931
56188
|
if (error instanceof Error && error.message.startsWith("Build failed with") && error.stack?.includes("esbuild")) {
|
|
55932
56189
|
return;
|
|
55933
56190
|
}
|
|
@@ -57341,7 +57598,7 @@ async function createPanorama(options) {
|
|
|
57341
57598
|
aiAgentName
|
|
57342
57599
|
} = options;
|
|
57343
57600
|
const userConfig = await readUserConfig();
|
|
57344
|
-
const
|
|
57601
|
+
const env3 = createEnv();
|
|
57345
57602
|
const factory = panoramaClientFactory({
|
|
57346
57603
|
baseParams: {
|
|
57347
57604
|
platform: Platform.Standalone,
|
|
@@ -57355,11 +57612,11 @@ async function createPanorama(options) {
|
|
|
57355
57612
|
silent: true
|
|
57356
57613
|
},
|
|
57357
57614
|
data: {
|
|
57358
|
-
cliTrackingId:
|
|
57359
|
-
cliEnvName:
|
|
57615
|
+
cliTrackingId: env3.cliTrackingId,
|
|
57616
|
+
cliEnvName: env3.cliEnvName,
|
|
57360
57617
|
cliSessionId,
|
|
57361
57618
|
aiAgentName,
|
|
57362
|
-
...
|
|
57619
|
+
...env3.remoteLogContext
|
|
57363
57620
|
}
|
|
57364
57621
|
}).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
|
|
57365
57622
|
const panorama = createPanoramaWrapper(factory);
|
|
@@ -57590,8 +57847,8 @@ import { uptime as uptime2 } from "node:process";
|
|
|
57590
57847
|
// ../cli-telemetry/src/environment.ts
|
|
57591
57848
|
init_esm_shims();
|
|
57592
57849
|
var import_is_ci2 = __toESM(require_is_ci2(), 1);
|
|
57593
|
-
import
|
|
57594
|
-
import { platform as
|
|
57850
|
+
import os6 from "node:os";
|
|
57851
|
+
import { platform as platform5, version as nodeVersion } from "node:process";
|
|
57595
57852
|
function getEnvironmentInfo({
|
|
57596
57853
|
cliVersion,
|
|
57597
57854
|
flow
|
|
@@ -57602,11 +57859,11 @@ function getEnvironmentInfo({
|
|
|
57602
57859
|
isCI: import_is_ci2.default,
|
|
57603
57860
|
nodeVersion,
|
|
57604
57861
|
osName: getOsName(),
|
|
57605
|
-
osVersion:
|
|
57862
|
+
osVersion: os6.release()
|
|
57606
57863
|
};
|
|
57607
57864
|
}
|
|
57608
57865
|
function getOsName() {
|
|
57609
|
-
switch (
|
|
57866
|
+
switch (platform5) {
|
|
57610
57867
|
case "darwin":
|
|
57611
57868
|
return "mac";
|
|
57612
57869
|
case "win32":
|
|
@@ -57693,7 +57950,7 @@ function reportCommandStartEvent({
|
|
|
57693
57950
|
var package_default = {
|
|
57694
57951
|
name: "@wix/create-app",
|
|
57695
57952
|
description: "Create Wix apps",
|
|
57696
|
-
version: "0.0.
|
|
57953
|
+
version: "0.0.197",
|
|
57697
57954
|
author: "Ihor Machuzhak",
|
|
57698
57955
|
bin: "bin/index.cjs",
|
|
57699
57956
|
devDependencies: {
|
|
@@ -59810,9 +60067,9 @@ var SortOrder;
|
|
|
59810
60067
|
SortOrder2["DESC"] = "DESC";
|
|
59811
60068
|
})(SortOrder || (SortOrder = {}));
|
|
59812
60069
|
var RequestedFields;
|
|
59813
|
-
(function(
|
|
59814
|
-
|
|
59815
|
-
|
|
60070
|
+
(function(RequestedFields3) {
|
|
60071
|
+
RequestedFields3["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
60072
|
+
RequestedFields3["CREATED_BY_DATA"] = "CREATED_BY_DATA";
|
|
59816
60073
|
})(RequestedFields || (RequestedFields = {}));
|
|
59817
60074
|
var SubjectType;
|
|
59818
60075
|
(function(SubjectType2) {
|
|
@@ -59844,12 +60101,12 @@ var JoinedConditionOperator;
|
|
|
59844
60101
|
JoinedConditionOperator2["AND"] = "AND";
|
|
59845
60102
|
})(JoinedConditionOperator || (JoinedConditionOperator = {}));
|
|
59846
60103
|
var WebhookIdentityType;
|
|
59847
|
-
(function(
|
|
59848
|
-
|
|
59849
|
-
|
|
59850
|
-
|
|
59851
|
-
|
|
59852
|
-
|
|
60104
|
+
(function(WebhookIdentityType5) {
|
|
60105
|
+
WebhookIdentityType5["UNKNOWN"] = "UNKNOWN";
|
|
60106
|
+
WebhookIdentityType5["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
60107
|
+
WebhookIdentityType5["MEMBER"] = "MEMBER";
|
|
60108
|
+
WebhookIdentityType5["WIX_USER"] = "WIX_USER";
|
|
60109
|
+
WebhookIdentityType5["APP"] = "APP";
|
|
59853
60110
|
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
59854
60111
|
|
|
59855
60112
|
// ../../node_modules/@wix/ambassador-devcenter-dsm-v1-development-site/build/es/http.impl.js
|
|
@@ -60880,6 +61137,206 @@ function managedApps(payload6) {
|
|
|
60880
61137
|
return __managedApps;
|
|
60881
61138
|
}
|
|
60882
61139
|
|
|
61140
|
+
// ../../node_modules/@wix/ambassador-devcenter-apps-companionapps-v1-companion-app/es/build/http.impl.js
|
|
61141
|
+
init_esm_shims();
|
|
61142
|
+
var _companionApp = { createdDate: "google.protobuf.Timestamp" };
|
|
61143
|
+
var _getOrCreateCompanionAppRequest = {};
|
|
61144
|
+
var _getOrCreateCompanionAppResponse = { companionApp: "_companionApp" };
|
|
61145
|
+
function resolveWixDevcenterAppsCompanionappsV1CompanionAppsUrl(opts) {
|
|
61146
|
+
var domainToMappings = {
|
|
61147
|
+
"manage._base_domain_": [
|
|
61148
|
+
{
|
|
61149
|
+
srcPath: "/_api/companion-apps",
|
|
61150
|
+
destPath: ""
|
|
61151
|
+
}
|
|
61152
|
+
]
|
|
61153
|
+
};
|
|
61154
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
61155
|
+
}
|
|
61156
|
+
function getOrCreateCompanionApp(payload6) {
|
|
61157
|
+
var _a3 = serializer(_getOrCreateCompanionAppRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
61158
|
+
var fromRes = serializer(_getOrCreateCompanionAppResponse, {
|
|
61159
|
+
_companionApp
|
|
61160
|
+
}).fromJSON;
|
|
61161
|
+
function __getOrCreateCompanionApp(_a4) {
|
|
61162
|
+
var host = _a4.host;
|
|
61163
|
+
var serializedData = toReq(payload6);
|
|
61164
|
+
var metadata = {
|
|
61165
|
+
entityFqdn: "wix.devcenter.apps_companionapps.v1.companion_app",
|
|
61166
|
+
method: "POST",
|
|
61167
|
+
methodFqn: "wix.devcenter.apps.companionapps.v1.CompanionApps.GetOrCreateCompanionApp",
|
|
61168
|
+
migrationOptions: {
|
|
61169
|
+
optInTransformResponse: true
|
|
61170
|
+
},
|
|
61171
|
+
url: resolveWixDevcenterAppsCompanionappsV1CompanionAppsUrl({
|
|
61172
|
+
protoPath: "/v1/companion-apps/get-or-create",
|
|
61173
|
+
data: serializedData,
|
|
61174
|
+
host
|
|
61175
|
+
}),
|
|
61176
|
+
data: serializedData,
|
|
61177
|
+
transformResponse: fromRes
|
|
61178
|
+
};
|
|
61179
|
+
return metadata;
|
|
61180
|
+
}
|
|
61181
|
+
__getOrCreateCompanionApp.fromReq = fromReq;
|
|
61182
|
+
__getOrCreateCompanionApp.__isAmbassador = true;
|
|
61183
|
+
return __getOrCreateCompanionApp;
|
|
61184
|
+
}
|
|
61185
|
+
|
|
61186
|
+
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/http.impl.js
|
|
61187
|
+
init_esm_shims();
|
|
61188
|
+
var _installAppRequest = { appInstance: "_v1AppInstance" };
|
|
61189
|
+
var _installAppResponse = {
|
|
61190
|
+
appInstance: "_v1AppInstance",
|
|
61191
|
+
dependenciesInstallation: "_v1AppInstance"
|
|
61192
|
+
};
|
|
61193
|
+
var _v1AppInstance = {
|
|
61194
|
+
installedDate: "google.protobuf.Timestamp",
|
|
61195
|
+
updatedDate: "google.protobuf.Timestamp"
|
|
61196
|
+
};
|
|
61197
|
+
function resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl(opts) {
|
|
61198
|
+
var domainToMappings = {
|
|
61199
|
+
"manage._base_domain_": [
|
|
61200
|
+
{
|
|
61201
|
+
srcPath: "/apps-installer-service",
|
|
61202
|
+
destPath: ""
|
|
61203
|
+
}
|
|
61204
|
+
],
|
|
61205
|
+
"editor._base_domain_": [
|
|
61206
|
+
{
|
|
61207
|
+
srcPath: "/apps-installer-service",
|
|
61208
|
+
destPath: ""
|
|
61209
|
+
}
|
|
61210
|
+
],
|
|
61211
|
+
"blocks._base_domain_": [
|
|
61212
|
+
{
|
|
61213
|
+
srcPath: "/apps-installer-service",
|
|
61214
|
+
destPath: ""
|
|
61215
|
+
}
|
|
61216
|
+
],
|
|
61217
|
+
"create.editorx": [
|
|
61218
|
+
{
|
|
61219
|
+
srcPath: "/apps-installer-service",
|
|
61220
|
+
destPath: ""
|
|
61221
|
+
}
|
|
61222
|
+
],
|
|
61223
|
+
"dev._base_domain_": [
|
|
61224
|
+
{
|
|
61225
|
+
srcPath: "/apps-installer-service",
|
|
61226
|
+
destPath: ""
|
|
61227
|
+
}
|
|
61228
|
+
],
|
|
61229
|
+
"www.wixapis.com": [
|
|
61230
|
+
{
|
|
61231
|
+
srcPath: "/apps-installer-service",
|
|
61232
|
+
destPath: ""
|
|
61233
|
+
}
|
|
61234
|
+
],
|
|
61235
|
+
"*.dev.wix-code.com": [
|
|
61236
|
+
{
|
|
61237
|
+
srcPath: "/apps/v1/app-instances",
|
|
61238
|
+
destPath: ""
|
|
61239
|
+
}
|
|
61240
|
+
],
|
|
61241
|
+
_: [
|
|
61242
|
+
{
|
|
61243
|
+
srcPath: "/apps/v1/app-instances",
|
|
61244
|
+
destPath: ""
|
|
61245
|
+
}
|
|
61246
|
+
],
|
|
61247
|
+
"bo._base_domain_": [
|
|
61248
|
+
{
|
|
61249
|
+
srcPath: "/_api/apps-installer-service",
|
|
61250
|
+
destPath: ""
|
|
61251
|
+
}
|
|
61252
|
+
],
|
|
61253
|
+
"wixbo.ai": [
|
|
61254
|
+
{
|
|
61255
|
+
srcPath: "/_api/apps-installer-service",
|
|
61256
|
+
destPath: ""
|
|
61257
|
+
}
|
|
61258
|
+
],
|
|
61259
|
+
"wix-bo.com": [
|
|
61260
|
+
{
|
|
61261
|
+
srcPath: "/_api/apps-installer-service",
|
|
61262
|
+
destPath: ""
|
|
61263
|
+
}
|
|
61264
|
+
],
|
|
61265
|
+
"vibe._base_domain_": [
|
|
61266
|
+
{
|
|
61267
|
+
srcPath: "/_api/apps-installer-service",
|
|
61268
|
+
destPath: ""
|
|
61269
|
+
}
|
|
61270
|
+
]
|
|
61271
|
+
};
|
|
61272
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
61273
|
+
}
|
|
61274
|
+
function installApp(payload6) {
|
|
61275
|
+
var _a3 = serializer(_installAppRequest, {
|
|
61276
|
+
_v1AppInstance
|
|
61277
|
+
}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
61278
|
+
var fromRes = serializer(_installAppResponse, {
|
|
61279
|
+
_v1AppInstance
|
|
61280
|
+
}).fromJSON;
|
|
61281
|
+
function __installApp(_a4) {
|
|
61282
|
+
var host = _a4.host;
|
|
61283
|
+
var serializedData = toReq(payload6);
|
|
61284
|
+
var metadata = {
|
|
61285
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
61286
|
+
method: "POST",
|
|
61287
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp",
|
|
61288
|
+
migrationOptions: {
|
|
61289
|
+
optInTransformResponse: true
|
|
61290
|
+
},
|
|
61291
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
61292
|
+
protoPath: "/v1/app-instance/install",
|
|
61293
|
+
data: serializedData,
|
|
61294
|
+
host
|
|
61295
|
+
}),
|
|
61296
|
+
data: serializedData,
|
|
61297
|
+
transformResponse: fromRes
|
|
61298
|
+
};
|
|
61299
|
+
return metadata;
|
|
61300
|
+
}
|
|
61301
|
+
__installApp.fromReq = fromReq;
|
|
61302
|
+
__installApp.__isAmbassador = true;
|
|
61303
|
+
return __installApp;
|
|
61304
|
+
}
|
|
61305
|
+
|
|
61306
|
+
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/types.impl.js
|
|
61307
|
+
init_esm_shims();
|
|
61308
|
+
var WebhookIdentityType2;
|
|
61309
|
+
(function(WebhookIdentityType5) {
|
|
61310
|
+
WebhookIdentityType5["UNKNOWN"] = "UNKNOWN";
|
|
61311
|
+
WebhookIdentityType5["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
61312
|
+
WebhookIdentityType5["MEMBER"] = "MEMBER";
|
|
61313
|
+
WebhookIdentityType5["WIX_USER"] = "WIX_USER";
|
|
61314
|
+
WebhookIdentityType5["APP"] = "APP";
|
|
61315
|
+
})(WebhookIdentityType2 || (WebhookIdentityType2 = {}));
|
|
61316
|
+
var InstallType;
|
|
61317
|
+
(function(InstallType2) {
|
|
61318
|
+
InstallType2["UNKNOWN_INSTALL_TYPE"] = "UNKNOWN_INSTALL_TYPE";
|
|
61319
|
+
InstallType2["APPS_INSTALL"] = "APPS_INSTALL";
|
|
61320
|
+
InstallType2["SHARE_URL_INSTALL"] = "SHARE_URL_INSTALL";
|
|
61321
|
+
})(InstallType || (InstallType = {}));
|
|
61322
|
+
var RequestedFields2;
|
|
61323
|
+
(function(RequestedFields3) {
|
|
61324
|
+
RequestedFields3["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
61325
|
+
RequestedFields3["CLIENT_SPEC_MAP"] = "CLIENT_SPEC_MAP";
|
|
61326
|
+
})(RequestedFields2 || (RequestedFields2 = {}));
|
|
61327
|
+
var V1Status;
|
|
61328
|
+
(function(V1Status2) {
|
|
61329
|
+
V1Status2["UNKNOWN"] = "UNKNOWN";
|
|
61330
|
+
V1Status2["WAITING_FOR_OAUTH"] = "WAITING_FOR_OAUTH";
|
|
61331
|
+
V1Status2["AUTHENTICATED"] = "AUTHENTICATED";
|
|
61332
|
+
V1Status2["DIDNT_COMPLETE_PAYMENT"] = "DIDNT_COMPLETE_PAYMENT";
|
|
61333
|
+
})(V1Status || (V1Status = {}));
|
|
61334
|
+
var V1TenantType;
|
|
61335
|
+
(function(V1TenantType2) {
|
|
61336
|
+
V1TenantType2["SITE"] = "SITE";
|
|
61337
|
+
V1TenantType2["ACCOUNT"] = "ACCOUNT";
|
|
61338
|
+
})(V1TenantType || (V1TenantType = {}));
|
|
61339
|
+
|
|
60883
61340
|
// ../../node_modules/@wix/ambassador-devcenter-managedapps-v1-managed-app/build/es/types.impl.js
|
|
60884
61341
|
init_esm_shims();
|
|
60885
61342
|
var UninstallActions;
|
|
@@ -63679,14 +64136,14 @@ var VersionType;
|
|
|
63679
64136
|
VersionType2["LATEST_VERSION"] = "LATEST_VERSION";
|
|
63680
64137
|
VersionType2["DEV_VERSION"] = "DEV_VERSION";
|
|
63681
64138
|
})(VersionType || (VersionType = {}));
|
|
63682
|
-
var
|
|
63683
|
-
(function(
|
|
63684
|
-
|
|
63685
|
-
|
|
63686
|
-
|
|
63687
|
-
|
|
63688
|
-
|
|
63689
|
-
})(
|
|
64139
|
+
var WebhookIdentityType3;
|
|
64140
|
+
(function(WebhookIdentityType5) {
|
|
64141
|
+
WebhookIdentityType5["UNKNOWN"] = "UNKNOWN";
|
|
64142
|
+
WebhookIdentityType5["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
64143
|
+
WebhookIdentityType5["MEMBER"] = "MEMBER";
|
|
64144
|
+
WebhookIdentityType5["WIX_USER"] = "WIX_USER";
|
|
64145
|
+
WebhookIdentityType5["APP"] = "APP";
|
|
64146
|
+
})(WebhookIdentityType3 || (WebhookIdentityType3 = {}));
|
|
63690
64147
|
|
|
63691
64148
|
// ../dev-center-client/src/schemas.ts
|
|
63692
64149
|
init_esm_shims();
|
|
@@ -66150,14 +66607,14 @@ var WritingModeValue2;
|
|
|
66150
66607
|
WritingModeValue3["sidewaysRl"] = "sidewaysRl";
|
|
66151
66608
|
WritingModeValue3["sidewaysLr"] = "sidewaysLr";
|
|
66152
66609
|
})(WritingModeValue2 || (WritingModeValue2 = {}));
|
|
66153
|
-
var
|
|
66154
|
-
(function(
|
|
66155
|
-
|
|
66156
|
-
|
|
66157
|
-
|
|
66158
|
-
|
|
66159
|
-
|
|
66160
|
-
})(
|
|
66610
|
+
var WebhookIdentityType4;
|
|
66611
|
+
(function(WebhookIdentityType5) {
|
|
66612
|
+
WebhookIdentityType5["UNKNOWN"] = "UNKNOWN";
|
|
66613
|
+
WebhookIdentityType5["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
66614
|
+
WebhookIdentityType5["MEMBER"] = "MEMBER";
|
|
66615
|
+
WebhookIdentityType5["WIX_USER"] = "WIX_USER";
|
|
66616
|
+
WebhookIdentityType5["APP"] = "APP";
|
|
66617
|
+
})(WebhookIdentityType4 || (WebhookIdentityType4 = {}));
|
|
66161
66618
|
var ValidationTargetMethod;
|
|
66162
66619
|
(function(ValidationTargetMethod2) {
|
|
66163
66620
|
ValidationTargetMethod2["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
|
|
@@ -66798,6 +67255,16 @@ var setNamespaceSchema = external_exports.object({
|
|
|
66798
67255
|
var setCodeIdentifierSchema = external_exports.object({
|
|
66799
67256
|
codeIdentifier: external_exports.string()
|
|
66800
67257
|
});
|
|
67258
|
+
var createCompanionAppSchema = external_exports.object({
|
|
67259
|
+
companionApp: external_exports.object({
|
|
67260
|
+
id: external_exports.string()
|
|
67261
|
+
})
|
|
67262
|
+
});
|
|
67263
|
+
var installAppSchema = external_exports.object({
|
|
67264
|
+
appInstance: external_exports.object({
|
|
67265
|
+
id: external_exports.string()
|
|
67266
|
+
})
|
|
67267
|
+
});
|
|
66801
67268
|
|
|
66802
67269
|
// ../dev-center-client/src/dev-center-client.ts
|
|
66803
67270
|
var EMPTY_SITE_TEMPLATE = "24bafe8a-7c80-4b63-8a71-08752062f246";
|
|
@@ -66860,6 +67327,20 @@ var DevCenterClient = class {
|
|
|
66860
67327
|
});
|
|
66861
67328
|
}
|
|
66862
67329
|
};
|
|
67330
|
+
createCompanionApp = async () => {
|
|
67331
|
+
try {
|
|
67332
|
+
const { data } = await pRetry(
|
|
67333
|
+
() => this.httpClient.request(getOrCreateCompanionApp({})),
|
|
67334
|
+
this.retryOptions
|
|
67335
|
+
);
|
|
67336
|
+
return createCompanionAppSchema.parse(data).companionApp;
|
|
67337
|
+
} catch (e2) {
|
|
67338
|
+
throw new CliError({
|
|
67339
|
+
code: CliErrorCode.FailedToCreateCompanionApp(),
|
|
67340
|
+
cause: e2
|
|
67341
|
+
});
|
|
67342
|
+
}
|
|
67343
|
+
};
|
|
66863
67344
|
setNamespace = async ({ appId, namespace }) => {
|
|
66864
67345
|
try {
|
|
66865
67346
|
const { data } = await this.httpClient.request(
|
|
@@ -67228,6 +67709,30 @@ var DevCenterClient = class {
|
|
|
67228
67709
|
});
|
|
67229
67710
|
}
|
|
67230
67711
|
};
|
|
67712
|
+
installApp = async (siteId, appId) => {
|
|
67713
|
+
try {
|
|
67714
|
+
const { data } = await pRetry(
|
|
67715
|
+
() => this.httpClient.request(
|
|
67716
|
+
installApp({
|
|
67717
|
+
tenant: {
|
|
67718
|
+
id: siteId,
|
|
67719
|
+
tenantType: V1TenantType.SITE
|
|
67720
|
+
},
|
|
67721
|
+
appInstance: {
|
|
67722
|
+
appDefId: appId
|
|
67723
|
+
}
|
|
67724
|
+
})
|
|
67725
|
+
),
|
|
67726
|
+
this.retryOptions
|
|
67727
|
+
);
|
|
67728
|
+
return installAppSchema.parse(data);
|
|
67729
|
+
} catch (e2) {
|
|
67730
|
+
throw new CliError({
|
|
67731
|
+
code: CliErrorCode.FailedToInstallApp({ appId, siteId }),
|
|
67732
|
+
cause: e2
|
|
67733
|
+
});
|
|
67734
|
+
}
|
|
67735
|
+
};
|
|
67231
67736
|
isAppInstalled = async (appId) => {
|
|
67232
67737
|
const installationDetails = await this.getAppInstallationDetails(appId);
|
|
67233
67738
|
return installationDetails?.group === AppGroup.PENDING || installationDetails?.group === AppGroup.INSTALLED;
|
|
@@ -68162,7 +68667,7 @@ function getTasks({
|
|
|
68162
68667
|
cause: e2
|
|
68163
68668
|
});
|
|
68164
68669
|
}
|
|
68165
|
-
const { generateApp } = await import("./generator-
|
|
68670
|
+
const { generateApp } = await import("./generator-GFT3B4NL.js");
|
|
68166
68671
|
await generateApp({
|
|
68167
68672
|
packageName,
|
|
68168
68673
|
packageFolder,
|