@settlemint/sdk-cli 0.7.0-prfd35357 → 0.7.1-main12cc7b0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +528 -1230
- package/dist/cli.js.map +18 -32
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -197427,7 +197427,7 @@ ${Bt.cyan(Yt)}
|
|
|
197427
197427
|
code: "ENOENT"
|
|
197428
197428
|
}), getPathInfo = (e9, t7) => {
|
|
197429
197429
|
var r6 = t7.colon || or;
|
|
197430
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
197430
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.r0eO5RVEvF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
197431
197431
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
197432
197432
|
var a5 = nr ? n6.split(r6) : [""];
|
|
197433
197433
|
if (nr) {
|
|
@@ -200564,7 +200564,7 @@ ${whileRunning(e9)}`;
|
|
|
200564
200564
|
};
|
|
200565
200565
|
ni = Object.assign(async function _main() {
|
|
200566
200566
|
var e9 = new Cli({
|
|
200567
|
-
binaryVersion: "0.7.
|
|
200567
|
+
binaryVersion: "0.7.1-main12cc7b0",
|
|
200568
200568
|
binaryLabel: "gql.tada CLI",
|
|
200569
200569
|
binaryName: "gql.tada"
|
|
200570
200570
|
});
|
|
@@ -218401,7 +218401,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
218401
218401
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
218402
218402
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
218403
218403
|
var getPathInfo2 = (cmd2, {
|
|
218404
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
218404
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.r0eO5RVEvF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
218405
218405
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
218406
218406
|
delimiter: optDelimiter = delimiter
|
|
218407
218407
|
}) => {
|
|
@@ -218605,7 +218605,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
218605
218605
|
let pathToInitial;
|
|
218606
218606
|
try {
|
|
218607
218607
|
pathToInitial = which.sync(initialCmd, {
|
|
218608
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
218608
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.r0eO5RVEvF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
218609
218609
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
218610
218610
|
}).toLowerCase();
|
|
218611
218611
|
} catch (err) {
|
|
@@ -219322,7 +219322,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
219322
219322
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
219323
219323
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
219324
219324
|
var getPathInfo2 = (cmd2, {
|
|
219325
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
219325
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.r0eO5RVEvF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
219326
219326
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
219327
219327
|
delimiter: optDelimiter = delimiter
|
|
219328
219328
|
}) => {
|
|
@@ -226439,7 +226439,7 @@ var init_mjs = __esm(() => {
|
|
|
226439
226439
|
} = signalExitWrap(processOk2(process6) ? new SignalExit2(process6) : new SignalExitFallback2));
|
|
226440
226440
|
});
|
|
226441
226441
|
|
|
226442
|
-
// ../../node_modules/@inquirer/
|
|
226442
|
+
// ../../node_modules/@inquirer/core/node_modules/ansi-escapes/index.js
|
|
226443
226443
|
var require_ansi_escapes = __commonJS((exports, module) => {
|
|
226444
226444
|
var ansiEscapes = exports;
|
|
226445
226445
|
exports.default = ansiEscapes;
|
|
@@ -226557,6 +226557,124 @@ var require_ansi_escapes = __commonJS((exports, module) => {
|
|
|
226557
226557
|
};
|
|
226558
226558
|
});
|
|
226559
226559
|
|
|
226560
|
+
// ../../node_modules/@inquirer/select/node_modules/ansi-escapes/index.js
|
|
226561
|
+
var require_ansi_escapes2 = __commonJS((exports, module) => {
|
|
226562
|
+
var ansiEscapes2 = exports;
|
|
226563
|
+
exports.default = ansiEscapes2;
|
|
226564
|
+
var ESC = "\x1B[";
|
|
226565
|
+
var OSC = "\x1B]";
|
|
226566
|
+
var BEL = "\x07";
|
|
226567
|
+
var SEP = ";";
|
|
226568
|
+
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
226569
|
+
ansiEscapes2.cursorTo = (x5, y4) => {
|
|
226570
|
+
if (typeof x5 !== "number") {
|
|
226571
|
+
throw new TypeError("The `x` argument is required");
|
|
226572
|
+
}
|
|
226573
|
+
if (typeof y4 !== "number") {
|
|
226574
|
+
return ESC + (x5 + 1) + "G";
|
|
226575
|
+
}
|
|
226576
|
+
return ESC + (y4 + 1) + ";" + (x5 + 1) + "H";
|
|
226577
|
+
};
|
|
226578
|
+
ansiEscapes2.cursorMove = (x5, y4) => {
|
|
226579
|
+
if (typeof x5 !== "number") {
|
|
226580
|
+
throw new TypeError("The `x` argument is required");
|
|
226581
|
+
}
|
|
226582
|
+
let ret = "";
|
|
226583
|
+
if (x5 < 0) {
|
|
226584
|
+
ret += ESC + -x5 + "D";
|
|
226585
|
+
} else if (x5 > 0) {
|
|
226586
|
+
ret += ESC + x5 + "C";
|
|
226587
|
+
}
|
|
226588
|
+
if (y4 < 0) {
|
|
226589
|
+
ret += ESC + -y4 + "A";
|
|
226590
|
+
} else if (y4 > 0) {
|
|
226591
|
+
ret += ESC + y4 + "B";
|
|
226592
|
+
}
|
|
226593
|
+
return ret;
|
|
226594
|
+
};
|
|
226595
|
+
ansiEscapes2.cursorUp = (count = 1) => ESC + count + "A";
|
|
226596
|
+
ansiEscapes2.cursorDown = (count = 1) => ESC + count + "B";
|
|
226597
|
+
ansiEscapes2.cursorForward = (count = 1) => ESC + count + "C";
|
|
226598
|
+
ansiEscapes2.cursorBackward = (count = 1) => ESC + count + "D";
|
|
226599
|
+
ansiEscapes2.cursorLeft = ESC + "G";
|
|
226600
|
+
ansiEscapes2.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
226601
|
+
ansiEscapes2.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
226602
|
+
ansiEscapes2.cursorGetPosition = ESC + "6n";
|
|
226603
|
+
ansiEscapes2.cursorNextLine = ESC + "E";
|
|
226604
|
+
ansiEscapes2.cursorPrevLine = ESC + "F";
|
|
226605
|
+
ansiEscapes2.cursorHide = ESC + "?25l";
|
|
226606
|
+
ansiEscapes2.cursorShow = ESC + "?25h";
|
|
226607
|
+
ansiEscapes2.eraseLines = (count) => {
|
|
226608
|
+
let clear = "";
|
|
226609
|
+
for (let i6 = 0;i6 < count; i6++) {
|
|
226610
|
+
clear += ansiEscapes2.eraseLine + (i6 < count - 1 ? ansiEscapes2.cursorUp() : "");
|
|
226611
|
+
}
|
|
226612
|
+
if (count) {
|
|
226613
|
+
clear += ansiEscapes2.cursorLeft;
|
|
226614
|
+
}
|
|
226615
|
+
return clear;
|
|
226616
|
+
};
|
|
226617
|
+
ansiEscapes2.eraseEndLine = ESC + "K";
|
|
226618
|
+
ansiEscapes2.eraseStartLine = ESC + "1K";
|
|
226619
|
+
ansiEscapes2.eraseLine = ESC + "2K";
|
|
226620
|
+
ansiEscapes2.eraseDown = ESC + "J";
|
|
226621
|
+
ansiEscapes2.eraseUp = ESC + "1J";
|
|
226622
|
+
ansiEscapes2.eraseScreen = ESC + "2J";
|
|
226623
|
+
ansiEscapes2.scrollUp = ESC + "S";
|
|
226624
|
+
ansiEscapes2.scrollDown = ESC + "T";
|
|
226625
|
+
ansiEscapes2.clearScreen = "\x1Bc";
|
|
226626
|
+
ansiEscapes2.clearTerminal = process.platform === "win32" ? `${ansiEscapes2.eraseScreen}${ESC}0f` : `${ansiEscapes2.eraseScreen}${ESC}3J${ESC}H`;
|
|
226627
|
+
ansiEscapes2.beep = BEL;
|
|
226628
|
+
ansiEscapes2.link = (text2, url) => {
|
|
226629
|
+
return [
|
|
226630
|
+
OSC,
|
|
226631
|
+
"8",
|
|
226632
|
+
SEP,
|
|
226633
|
+
SEP,
|
|
226634
|
+
url,
|
|
226635
|
+
BEL,
|
|
226636
|
+
text2,
|
|
226637
|
+
OSC,
|
|
226638
|
+
"8",
|
|
226639
|
+
SEP,
|
|
226640
|
+
SEP,
|
|
226641
|
+
BEL
|
|
226642
|
+
].join("");
|
|
226643
|
+
};
|
|
226644
|
+
ansiEscapes2.image = (buffer, options = {}) => {
|
|
226645
|
+
let ret = `${OSC}1337;File=inline=1`;
|
|
226646
|
+
if (options.width) {
|
|
226647
|
+
ret += `;width=${options.width}`;
|
|
226648
|
+
}
|
|
226649
|
+
if (options.height) {
|
|
226650
|
+
ret += `;height=${options.height}`;
|
|
226651
|
+
}
|
|
226652
|
+
if (options.preserveAspectRatio === false) {
|
|
226653
|
+
ret += ";preserveAspectRatio=0";
|
|
226654
|
+
}
|
|
226655
|
+
return ret + ":" + buffer.toString("base64") + BEL;
|
|
226656
|
+
};
|
|
226657
|
+
ansiEscapes2.iTerm = {
|
|
226658
|
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
226659
|
+
annotation: (message, options = {}) => {
|
|
226660
|
+
let ret = `${OSC}1337;`;
|
|
226661
|
+
const hasX = typeof options.x !== "undefined";
|
|
226662
|
+
const hasY = typeof options.y !== "undefined";
|
|
226663
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
226664
|
+
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
226665
|
+
}
|
|
226666
|
+
message = message.replace(/\|/g, "");
|
|
226667
|
+
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
226668
|
+
if (options.length > 0) {
|
|
226669
|
+
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
226670
|
+
} else {
|
|
226671
|
+
ret += message;
|
|
226672
|
+
}
|
|
226673
|
+
return ret + BEL;
|
|
226674
|
+
}
|
|
226675
|
+
};
|
|
226676
|
+
});
|
|
226677
|
+
|
|
226560
226678
|
// ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/error.js
|
|
226561
226679
|
var require_error2 = __commonJS((exports) => {
|
|
226562
226680
|
class CommanderError extends Error {
|
|
@@ -228351,8 +228469,8 @@ var require_extra_typings = __commonJS((exports, module) => {
|
|
|
228351
228469
|
exports.createArgument = (name2, description) => new commander.Argument(name2, description);
|
|
228352
228470
|
});
|
|
228353
228471
|
|
|
228354
|
-
// ../../node_modules/@inquirer/
|
|
228355
|
-
var
|
|
228472
|
+
// ../../node_modules/@inquirer/password/node_modules/ansi-escapes/index.js
|
|
228473
|
+
var require_ansi_escapes3 = __commonJS((exports, module) => {
|
|
228356
228474
|
var ansiEscapes3 = exports;
|
|
228357
228475
|
exports.default = ansiEscapes3;
|
|
228358
228476
|
var ESC = "\x1B[";
|
|
@@ -228469,124 +228587,6 @@ var require_ansi_escapes2 = __commonJS((exports, module) => {
|
|
|
228469
228587
|
};
|
|
228470
228588
|
});
|
|
228471
228589
|
|
|
228472
|
-
// ../../node_modules/@inquirer/password/node_modules/ansi-escapes/index.js
|
|
228473
|
-
var require_ansi_escapes3 = __commonJS((exports, module) => {
|
|
228474
|
-
var ansiEscapes4 = exports;
|
|
228475
|
-
exports.default = ansiEscapes4;
|
|
228476
|
-
var ESC = "\x1B[";
|
|
228477
|
-
var OSC = "\x1B]";
|
|
228478
|
-
var BEL = "\x07";
|
|
228479
|
-
var SEP = ";";
|
|
228480
|
-
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
228481
|
-
ansiEscapes4.cursorTo = (x5, y4) => {
|
|
228482
|
-
if (typeof x5 !== "number") {
|
|
228483
|
-
throw new TypeError("The `x` argument is required");
|
|
228484
|
-
}
|
|
228485
|
-
if (typeof y4 !== "number") {
|
|
228486
|
-
return ESC + (x5 + 1) + "G";
|
|
228487
|
-
}
|
|
228488
|
-
return ESC + (y4 + 1) + ";" + (x5 + 1) + "H";
|
|
228489
|
-
};
|
|
228490
|
-
ansiEscapes4.cursorMove = (x5, y4) => {
|
|
228491
|
-
if (typeof x5 !== "number") {
|
|
228492
|
-
throw new TypeError("The `x` argument is required");
|
|
228493
|
-
}
|
|
228494
|
-
let ret = "";
|
|
228495
|
-
if (x5 < 0) {
|
|
228496
|
-
ret += ESC + -x5 + "D";
|
|
228497
|
-
} else if (x5 > 0) {
|
|
228498
|
-
ret += ESC + x5 + "C";
|
|
228499
|
-
}
|
|
228500
|
-
if (y4 < 0) {
|
|
228501
|
-
ret += ESC + -y4 + "A";
|
|
228502
|
-
} else if (y4 > 0) {
|
|
228503
|
-
ret += ESC + y4 + "B";
|
|
228504
|
-
}
|
|
228505
|
-
return ret;
|
|
228506
|
-
};
|
|
228507
|
-
ansiEscapes4.cursorUp = (count = 1) => ESC + count + "A";
|
|
228508
|
-
ansiEscapes4.cursorDown = (count = 1) => ESC + count + "B";
|
|
228509
|
-
ansiEscapes4.cursorForward = (count = 1) => ESC + count + "C";
|
|
228510
|
-
ansiEscapes4.cursorBackward = (count = 1) => ESC + count + "D";
|
|
228511
|
-
ansiEscapes4.cursorLeft = ESC + "G";
|
|
228512
|
-
ansiEscapes4.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
228513
|
-
ansiEscapes4.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
228514
|
-
ansiEscapes4.cursorGetPosition = ESC + "6n";
|
|
228515
|
-
ansiEscapes4.cursorNextLine = ESC + "E";
|
|
228516
|
-
ansiEscapes4.cursorPrevLine = ESC + "F";
|
|
228517
|
-
ansiEscapes4.cursorHide = ESC + "?25l";
|
|
228518
|
-
ansiEscapes4.cursorShow = ESC + "?25h";
|
|
228519
|
-
ansiEscapes4.eraseLines = (count) => {
|
|
228520
|
-
let clear = "";
|
|
228521
|
-
for (let i6 = 0;i6 < count; i6++) {
|
|
228522
|
-
clear += ansiEscapes4.eraseLine + (i6 < count - 1 ? ansiEscapes4.cursorUp() : "");
|
|
228523
|
-
}
|
|
228524
|
-
if (count) {
|
|
228525
|
-
clear += ansiEscapes4.cursorLeft;
|
|
228526
|
-
}
|
|
228527
|
-
return clear;
|
|
228528
|
-
};
|
|
228529
|
-
ansiEscapes4.eraseEndLine = ESC + "K";
|
|
228530
|
-
ansiEscapes4.eraseStartLine = ESC + "1K";
|
|
228531
|
-
ansiEscapes4.eraseLine = ESC + "2K";
|
|
228532
|
-
ansiEscapes4.eraseDown = ESC + "J";
|
|
228533
|
-
ansiEscapes4.eraseUp = ESC + "1J";
|
|
228534
|
-
ansiEscapes4.eraseScreen = ESC + "2J";
|
|
228535
|
-
ansiEscapes4.scrollUp = ESC + "S";
|
|
228536
|
-
ansiEscapes4.scrollDown = ESC + "T";
|
|
228537
|
-
ansiEscapes4.clearScreen = "\x1Bc";
|
|
228538
|
-
ansiEscapes4.clearTerminal = process.platform === "win32" ? `${ansiEscapes4.eraseScreen}${ESC}0f` : `${ansiEscapes4.eraseScreen}${ESC}3J${ESC}H`;
|
|
228539
|
-
ansiEscapes4.beep = BEL;
|
|
228540
|
-
ansiEscapes4.link = (text2, url) => {
|
|
228541
|
-
return [
|
|
228542
|
-
OSC,
|
|
228543
|
-
"8",
|
|
228544
|
-
SEP,
|
|
228545
|
-
SEP,
|
|
228546
|
-
url,
|
|
228547
|
-
BEL,
|
|
228548
|
-
text2,
|
|
228549
|
-
OSC,
|
|
228550
|
-
"8",
|
|
228551
|
-
SEP,
|
|
228552
|
-
SEP,
|
|
228553
|
-
BEL
|
|
228554
|
-
].join("");
|
|
228555
|
-
};
|
|
228556
|
-
ansiEscapes4.image = (buffer, options = {}) => {
|
|
228557
|
-
let ret = `${OSC}1337;File=inline=1`;
|
|
228558
|
-
if (options.width) {
|
|
228559
|
-
ret += `;width=${options.width}`;
|
|
228560
|
-
}
|
|
228561
|
-
if (options.height) {
|
|
228562
|
-
ret += `;height=${options.height}`;
|
|
228563
|
-
}
|
|
228564
|
-
if (options.preserveAspectRatio === false) {
|
|
228565
|
-
ret += ";preserveAspectRatio=0";
|
|
228566
|
-
}
|
|
228567
|
-
return ret + ":" + buffer.toString("base64") + BEL;
|
|
228568
|
-
};
|
|
228569
|
-
ansiEscapes4.iTerm = {
|
|
228570
|
-
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
228571
|
-
annotation: (message, options = {}) => {
|
|
228572
|
-
let ret = `${OSC}1337;`;
|
|
228573
|
-
const hasX = typeof options.x !== "undefined";
|
|
228574
|
-
const hasY = typeof options.y !== "undefined";
|
|
228575
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
228576
|
-
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
228577
|
-
}
|
|
228578
|
-
message = message.replace(/\|/g, "");
|
|
228579
|
-
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
228580
|
-
if (options.length > 0) {
|
|
228581
|
-
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
228582
|
-
} else {
|
|
228583
|
-
ret += message;
|
|
228584
|
-
}
|
|
228585
|
-
return ret + BEL;
|
|
228586
|
-
}
|
|
228587
|
-
};
|
|
228588
|
-
});
|
|
228589
|
-
|
|
228590
228590
|
// ../../node_modules/tar/lib/high-level-opt.js
|
|
228591
228591
|
var require_high_level_opt = __commonJS((exports, module) => {
|
|
228592
228592
|
var argmap = new Map([
|
|
@@ -234006,8 +234006,8 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
234006
234006
|
return "CwdError";
|
|
234007
234007
|
}
|
|
234008
234008
|
}
|
|
234009
|
-
var cGet = (cache,
|
|
234010
|
-
var cSet = (cache,
|
|
234009
|
+
var cGet = (cache, key2) => cache.get(normPath(key2));
|
|
234010
|
+
var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
|
|
234011
234011
|
var checkCwd = (dir, cb) => {
|
|
234012
234012
|
fs3.stat(dir, (er2, st2) => {
|
|
234013
234013
|
if (er2 || !st2.isDirectory()) {
|
|
@@ -234378,8 +234378,8 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234378
234378
|
}
|
|
234379
234379
|
};
|
|
234380
234380
|
var dropCache = (cache) => {
|
|
234381
|
-
for (const
|
|
234382
|
-
cache.delete(
|
|
234381
|
+
for (const key2 of cache.keys()) {
|
|
234382
|
+
cache.delete(key2);
|
|
234383
234383
|
}
|
|
234384
234384
|
};
|
|
234385
234385
|
|
|
@@ -235213,7 +235213,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
235213
235213
|
const colon = opt2.colon || COLON;
|
|
235214
235214
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
235215
235215
|
...isWindows2 ? [process.cwd()] : [],
|
|
235216
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
235216
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.r0eO5RVEvF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
235217
235217
|
];
|
|
235218
235218
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
235219
235219
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -235302,7 +235302,7 @@ var require_path_key = __commonJS((exports, module) => {
|
|
|
235302
235302
|
if (platform2 !== "win32") {
|
|
235303
235303
|
return "PATH";
|
|
235304
235304
|
}
|
|
235305
|
-
return Object.keys(environment).reverse().find((
|
|
235305
|
+
return Object.keys(environment).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";
|
|
235306
235306
|
};
|
|
235307
235307
|
module.exports = pathKey2;
|
|
235308
235308
|
module.exports.default = pathKey2;
|
|
@@ -235564,18 +235564,18 @@ function pathKey2(options = {}) {
|
|
|
235564
235564
|
if (platform2 !== "win32") {
|
|
235565
235565
|
return "PATH";
|
|
235566
235566
|
}
|
|
235567
|
-
return Object.keys(env2).reverse().find((
|
|
235567
|
+
return Object.keys(env2).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";
|
|
235568
235568
|
}
|
|
235569
235569
|
|
|
235570
235570
|
// ../../node_modules/nypm/node_modules/execa/node_modules/npm-run-path/index.js
|
|
235571
|
-
import
|
|
235571
|
+
import process7 from "node:process";
|
|
235572
235572
|
import path6 from "node:path";
|
|
235573
235573
|
import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
235574
235574
|
var npmRunPath = ({
|
|
235575
|
-
cwd: cwd2 =
|
|
235576
|
-
path: pathOption =
|
|
235575
|
+
cwd: cwd2 = process7.cwd(),
|
|
235576
|
+
path: pathOption = process7.env[pathKey2()],
|
|
235577
235577
|
preferLocal = true,
|
|
235578
|
-
execPath =
|
|
235578
|
+
execPath = process7.execPath,
|
|
235579
235579
|
addExecPath = true
|
|
235580
235580
|
} = {}) => {
|
|
235581
235581
|
const cwdString = cwd2 instanceof URL ? fileURLToPath5(cwd2) : cwd2;
|
|
@@ -235598,7 +235598,7 @@ var npmRunPath = ({
|
|
|
235598
235598
|
}, applyExecPath2 = (result, execPath, cwdPath) => {
|
|
235599
235599
|
const execPathString = execPath instanceof URL ? fileURLToPath5(execPath) : execPath;
|
|
235600
235600
|
result.push(path6.resolve(cwdPath, execPathString, ".."));
|
|
235601
|
-
}, npmRunPathEnv2 = ({ env: env2 =
|
|
235601
|
+
}, npmRunPathEnv2 = ({ env: env2 = process7.env, ...options } = {}) => {
|
|
235602
235602
|
env2 = { ...env2 };
|
|
235603
235603
|
const pathName = pathKey2({ env: env2 });
|
|
235604
235604
|
options.path = env2[pathName];
|
|
@@ -236047,7 +236047,7 @@ var init_main = __esm(() => {
|
|
|
236047
236047
|
});
|
|
236048
236048
|
|
|
236049
236049
|
// ../../node_modules/nypm/node_modules/execa/lib/error.js
|
|
236050
|
-
import
|
|
236050
|
+
import process8 from "node:process";
|
|
236051
236051
|
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode: exitCode2, isCanceled }) => {
|
|
236052
236052
|
if (timedOut) {
|
|
236053
236053
|
return `timed out after ${timeout} milliseconds`;
|
|
@@ -236077,7 +236077,7 @@ var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription,
|
|
|
236077
236077
|
timedOut,
|
|
236078
236078
|
isCanceled,
|
|
236079
236079
|
killed,
|
|
236080
|
-
parsed: { options: { timeout, cwd: cwd2 =
|
|
236080
|
+
parsed: { options: { timeout, cwd: cwd2 = process8.cwd() } }
|
|
236081
236081
|
}) => {
|
|
236082
236082
|
exitCode2 = exitCode2 === null ? undefined : exitCode2;
|
|
236083
236083
|
signal = signal === null ? undefined : signal;
|
|
@@ -236680,7 +236680,7 @@ var init_command = __esm(() => {
|
|
|
236680
236680
|
|
|
236681
236681
|
// ../../node_modules/nypm/node_modules/execa/lib/verbose.js
|
|
236682
236682
|
import { debuglog } from "node:util";
|
|
236683
|
-
import
|
|
236683
|
+
import process9 from "node:process";
|
|
236684
236684
|
var verboseDefault, padField2 = (field2, padding) => String(field2).padStart(padding, "0"), getTimestamp = () => {
|
|
236685
236685
|
const date = new Date;
|
|
236686
236686
|
return `${padField2(date.getHours(), 2)}:${padField2(date.getMinutes(), 2)}:${padField2(date.getSeconds(), 2)}.${padField2(date.getMilliseconds(), 3)}`;
|
|
@@ -236688,7 +236688,7 @@ var verboseDefault, padField2 = (field2, padding) => String(field2).padStart(pad
|
|
|
236688
236688
|
if (!verbose) {
|
|
236689
236689
|
return;
|
|
236690
236690
|
}
|
|
236691
|
-
|
|
236691
|
+
process9.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
236692
236692
|
`);
|
|
236693
236693
|
};
|
|
236694
236694
|
var init_verbose = __esm(() => {
|
|
@@ -236708,7 +236708,7 @@ __export(exports_execa, {
|
|
|
236708
236708
|
import { Buffer as Buffer3 } from "node:buffer";
|
|
236709
236709
|
import path7 from "node:path";
|
|
236710
236710
|
import childProcess from "node:child_process";
|
|
236711
|
-
import
|
|
236711
|
+
import process10 from "node:process";
|
|
236712
236712
|
function execa2(file, args, options) {
|
|
236713
236713
|
const parsed = handleArguments2(file, args, options);
|
|
236714
236714
|
const command = joinCommand2(file, args);
|
|
@@ -236873,9 +236873,9 @@ function execaNode(scriptPath, args, options = {}) {
|
|
|
236873
236873
|
args = [];
|
|
236874
236874
|
}
|
|
236875
236875
|
const stdio = normalizeStdioNode(options);
|
|
236876
|
-
const defaultExecArgv =
|
|
236876
|
+
const defaultExecArgv = process10.execArgv.filter((arg) => !arg.startsWith("--inspect"));
|
|
236877
236877
|
const {
|
|
236878
|
-
nodePath =
|
|
236878
|
+
nodePath = process10.execPath,
|
|
236879
236879
|
nodeOptions = defaultExecArgv
|
|
236880
236880
|
} = options;
|
|
236881
236881
|
return execa2(nodePath, [
|
|
@@ -236892,7 +236892,7 @@ function execaNode(scriptPath, args, options = {}) {
|
|
|
236892
236892
|
});
|
|
236893
236893
|
}
|
|
236894
236894
|
var import_cross_spawn, DEFAULT_MAX_BUFFER, getEnv2 = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
236895
|
-
const env2 = extendEnv ? { ...
|
|
236895
|
+
const env2 = extendEnv ? { ...process10.env, ...envOption } : envOption;
|
|
236896
236896
|
if (preferLocal) {
|
|
236897
236897
|
return npmRunPathEnv2({ env: env2, cwd: localDir, execPath });
|
|
236898
236898
|
}
|
|
@@ -236908,8 +236908,8 @@ var import_cross_spawn, DEFAULT_MAX_BUFFER, getEnv2 = ({ env: envOption, extendE
|
|
|
236908
236908
|
stripFinalNewline: true,
|
|
236909
236909
|
extendEnv: true,
|
|
236910
236910
|
preferLocal: false,
|
|
236911
|
-
localDir: options.cwd ||
|
|
236912
|
-
execPath:
|
|
236911
|
+
localDir: options.cwd || process10.cwd(),
|
|
236912
|
+
execPath: process10.execPath,
|
|
236913
236913
|
encoding: "utf8",
|
|
236914
236914
|
reject: true,
|
|
236915
236915
|
cleanup: true,
|
|
@@ -236920,7 +236920,7 @@ var import_cross_spawn, DEFAULT_MAX_BUFFER, getEnv2 = ({ env: envOption, extendE
|
|
|
236920
236920
|
};
|
|
236921
236921
|
options.env = getEnv2(options);
|
|
236922
236922
|
options.stdio = normalizeStdio2(options);
|
|
236923
|
-
if (
|
|
236923
|
+
if (process10.platform === "win32" && path7.basename(file, ".exe") === "cmd") {
|
|
236924
236924
|
args.unshift("/q");
|
|
236925
236925
|
}
|
|
236926
236926
|
return { file, args, options, parsed };
|
|
@@ -241001,8 +241001,8 @@ var require_lib14 = __commonJS((exports, module) => {
|
|
|
241001
241001
|
function fetch2(input, options) {
|
|
241002
241002
|
return nodeFetch.fetch(input, options);
|
|
241003
241003
|
}
|
|
241004
|
-
for (const
|
|
241005
|
-
fetch2[
|
|
241004
|
+
for (const key2 in nodeFetch) {
|
|
241005
|
+
fetch2[key2] = nodeFetch[key2];
|
|
241006
241006
|
}
|
|
241007
241007
|
module.exports = fetch2;
|
|
241008
241008
|
});
|
|
@@ -245553,11 +245553,11 @@ ${f6.toString(16)}\r
|
|
|
245553
245553
|
}
|
|
245554
245554
|
Q4(upgrade, "upgrade");
|
|
245555
245555
|
var apiUpgrade = upgrade;
|
|
245556
|
-
var { AsyncResource:
|
|
245556
|
+
var { AsyncResource: AsyncResource4 } = require$$4__default$2;
|
|
245557
245557
|
var { InvalidArgumentError: InvalidArgumentError$5, RequestAbortedError, SocketError } = errors$1;
|
|
245558
245558
|
var util$6 = util$m;
|
|
245559
245559
|
var { addSignal, removeSignal } = abortSignal;
|
|
245560
|
-
var Jt2 = class Jt3 extends
|
|
245560
|
+
var Jt2 = class Jt3 extends AsyncResource4 {
|
|
245561
245561
|
constructor(A5, t8) {
|
|
245562
245562
|
if (!A5 || typeof A5 != "object")
|
|
245563
245563
|
throw new InvalidArgumentError$5("invalid opts");
|
|
@@ -248887,9 +248887,9 @@ ${F4}`;
|
|
|
248887
248887
|
var Dispatcher = dispatcher;
|
|
248888
248888
|
var Agent = agent;
|
|
248889
248889
|
var ProxyAgent = proxyAgent;
|
|
248890
|
-
var
|
|
248890
|
+
var errors2 = errors$1;
|
|
248891
248891
|
var util2 = util$m;
|
|
248892
|
-
var { InvalidArgumentError: InvalidArgumentError2 } =
|
|
248892
|
+
var { InvalidArgumentError: InvalidArgumentError2 } = errors2;
|
|
248893
248893
|
var api = api$1;
|
|
248894
248894
|
var { getGlobalDispatcher, setGlobalDispatcher } = global3;
|
|
248895
248895
|
Object.assign(Dispatcher.prototype, api);
|
|
@@ -249132,11 +249132,11 @@ ${F4}`;
|
|
|
249132
249132
|
return Q4(f6, "plural"), ms;
|
|
249133
249133
|
}
|
|
249134
249134
|
Q4(requireMs, "requireMs");
|
|
249135
|
-
var
|
|
249135
|
+
var common2;
|
|
249136
249136
|
var hasRequiredCommon;
|
|
249137
249137
|
function requireCommon() {
|
|
249138
249138
|
if (hasRequiredCommon)
|
|
249139
|
-
return
|
|
249139
|
+
return common2;
|
|
249140
249140
|
hasRequiredCommon = 1;
|
|
249141
249141
|
function e10(A5) {
|
|
249142
249142
|
r6.debug = r6, r6.default = r6, r6.coerce = f6, r6.disable = B4, r6.enable = o7, r6.enabled = l4, r6.humanize = requireMs(), r6.destroy = c3, Object.keys(A5).forEach((I6) => {
|
|
@@ -249218,7 +249218,7 @@ ${F4}`;
|
|
|
249218
249218
|
}
|
|
249219
249219
|
return Q4(c3, "destroy"), r6.enable(r6.load()), r6;
|
|
249220
249220
|
}
|
|
249221
|
-
return Q4(e10, "setup"),
|
|
249221
|
+
return Q4(e10, "setup"), common2 = e10, common2;
|
|
249222
249222
|
}
|
|
249223
249223
|
Q4(requireCommon, "requireCommon");
|
|
249224
249224
|
var hasRequiredBrowser;
|
|
@@ -249846,11 +249846,11 @@ var require_visit = __commonJS((exports) => {
|
|
|
249846
249846
|
visit2.BREAK = BREAK;
|
|
249847
249847
|
visit2.SKIP = SKIP;
|
|
249848
249848
|
visit2.REMOVE = REMOVE;
|
|
249849
|
-
function visit_(
|
|
249850
|
-
const ctrl = callVisitor(
|
|
249849
|
+
function visit_(key2, node, visitor, path8) {
|
|
249850
|
+
const ctrl = callVisitor(key2, node, visitor, path8);
|
|
249851
249851
|
if (identity3.isNode(ctrl) || identity3.isPair(ctrl)) {
|
|
249852
|
-
replaceNode(
|
|
249853
|
-
return visit_(
|
|
249852
|
+
replaceNode(key2, path8, ctrl);
|
|
249853
|
+
return visit_(key2, ctrl, visitor, path8);
|
|
249854
249854
|
}
|
|
249855
249855
|
if (typeof ctrl !== "symbol") {
|
|
249856
249856
|
if (identity3.isCollection(node)) {
|
|
@@ -249894,11 +249894,11 @@ var require_visit = __commonJS((exports) => {
|
|
|
249894
249894
|
visitAsync.BREAK = BREAK;
|
|
249895
249895
|
visitAsync.SKIP = SKIP;
|
|
249896
249896
|
visitAsync.REMOVE = REMOVE;
|
|
249897
|
-
async function visitAsync_(
|
|
249898
|
-
const ctrl = await callVisitor(
|
|
249897
|
+
async function visitAsync_(key2, node, visitor, path8) {
|
|
249898
|
+
const ctrl = await callVisitor(key2, node, visitor, path8);
|
|
249899
249899
|
if (identity3.isNode(ctrl) || identity3.isPair(ctrl)) {
|
|
249900
|
-
replaceNode(
|
|
249901
|
-
return visitAsync_(
|
|
249900
|
+
replaceNode(key2, path8, ctrl);
|
|
249901
|
+
return visitAsync_(key2, ctrl, visitor, path8);
|
|
249902
249902
|
}
|
|
249903
249903
|
if (typeof ctrl !== "symbol") {
|
|
249904
249904
|
if (identity3.isCollection(node)) {
|
|
@@ -249948,27 +249948,27 @@ var require_visit = __commonJS((exports) => {
|
|
|
249948
249948
|
}
|
|
249949
249949
|
return visitor;
|
|
249950
249950
|
}
|
|
249951
|
-
function callVisitor(
|
|
249951
|
+
function callVisitor(key2, node, visitor, path8) {
|
|
249952
249952
|
if (typeof visitor === "function")
|
|
249953
|
-
return visitor(
|
|
249953
|
+
return visitor(key2, node, path8);
|
|
249954
249954
|
if (identity3.isMap(node))
|
|
249955
|
-
return visitor.Map?.(
|
|
249955
|
+
return visitor.Map?.(key2, node, path8);
|
|
249956
249956
|
if (identity3.isSeq(node))
|
|
249957
|
-
return visitor.Seq?.(
|
|
249957
|
+
return visitor.Seq?.(key2, node, path8);
|
|
249958
249958
|
if (identity3.isPair(node))
|
|
249959
|
-
return visitor.Pair?.(
|
|
249959
|
+
return visitor.Pair?.(key2, node, path8);
|
|
249960
249960
|
if (identity3.isScalar(node))
|
|
249961
|
-
return visitor.Scalar?.(
|
|
249961
|
+
return visitor.Scalar?.(key2, node, path8);
|
|
249962
249962
|
if (identity3.isAlias(node))
|
|
249963
|
-
return visitor.Alias?.(
|
|
249963
|
+
return visitor.Alias?.(key2, node, path8);
|
|
249964
249964
|
return;
|
|
249965
249965
|
}
|
|
249966
|
-
function replaceNode(
|
|
249966
|
+
function replaceNode(key2, path8, node) {
|
|
249967
249967
|
const parent = path8[path8.length - 1];
|
|
249968
249968
|
if (identity3.isCollection(parent)) {
|
|
249969
|
-
parent.items[
|
|
249969
|
+
parent.items[key2] = node;
|
|
249970
249970
|
} else if (identity3.isPair(parent)) {
|
|
249971
|
-
if (
|
|
249971
|
+
if (key2 === "key")
|
|
249972
249972
|
parent.key = node;
|
|
249973
249973
|
else
|
|
249974
249974
|
parent.value = node;
|
|
@@ -250200,7 +250200,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
250200
250200
|
|
|
250201
250201
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
|
250202
250202
|
var require_applyReviver = __commonJS((exports) => {
|
|
250203
|
-
function applyReviver(reviver, obj,
|
|
250203
|
+
function applyReviver(reviver, obj, key2, val) {
|
|
250204
250204
|
if (val && typeof val === "object") {
|
|
250205
250205
|
if (Array.isArray(val)) {
|
|
250206
250206
|
for (let i6 = 0, len = val.length;i6 < len; ++i6) {
|
|
@@ -250240,7 +250240,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
250240
250240
|
}
|
|
250241
250241
|
}
|
|
250242
250242
|
}
|
|
250243
|
-
return reviver.call(obj,
|
|
250243
|
+
return reviver.call(obj, key2, val);
|
|
250244
250244
|
}
|
|
250245
250245
|
exports.applyReviver = applyReviver;
|
|
250246
250246
|
});
|
|
@@ -250558,29 +250558,29 @@ var require_Collection = __commonJS((exports) => {
|
|
|
250558
250558
|
if (isEmptyPath(path8))
|
|
250559
250559
|
this.add(value4);
|
|
250560
250560
|
else {
|
|
250561
|
-
const [
|
|
250562
|
-
const node = this.get(
|
|
250561
|
+
const [key2, ...rest] = path8;
|
|
250562
|
+
const node = this.get(key2, true);
|
|
250563
250563
|
if (identity3.isCollection(node))
|
|
250564
250564
|
node.addIn(rest, value4);
|
|
250565
250565
|
else if (node === undefined && this.schema)
|
|
250566
|
-
this.set(
|
|
250566
|
+
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
|
250567
250567
|
else
|
|
250568
|
-
throw new Error(`Expected YAML collection at ${
|
|
250568
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
250569
250569
|
}
|
|
250570
250570
|
}
|
|
250571
250571
|
deleteIn(path8) {
|
|
250572
|
-
const [
|
|
250572
|
+
const [key2, ...rest] = path8;
|
|
250573
250573
|
if (rest.length === 0)
|
|
250574
|
-
return this.delete(
|
|
250575
|
-
const node = this.get(
|
|
250574
|
+
return this.delete(key2);
|
|
250575
|
+
const node = this.get(key2, true);
|
|
250576
250576
|
if (identity3.isCollection(node))
|
|
250577
250577
|
return node.deleteIn(rest);
|
|
250578
250578
|
else
|
|
250579
|
-
throw new Error(`Expected YAML collection at ${
|
|
250579
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
250580
250580
|
}
|
|
250581
250581
|
getIn(path8, keepScalar) {
|
|
250582
|
-
const [
|
|
250583
|
-
const node = this.get(
|
|
250582
|
+
const [key2, ...rest] = path8;
|
|
250583
|
+
const node = this.get(key2, true);
|
|
250584
250584
|
if (rest.length === 0)
|
|
250585
250585
|
return !keepScalar && identity3.isScalar(node) ? node.value : node;
|
|
250586
250586
|
else
|
|
@@ -250595,24 +250595,24 @@ var require_Collection = __commonJS((exports) => {
|
|
|
250595
250595
|
});
|
|
250596
250596
|
}
|
|
250597
250597
|
hasIn(path8) {
|
|
250598
|
-
const [
|
|
250598
|
+
const [key2, ...rest] = path8;
|
|
250599
250599
|
if (rest.length === 0)
|
|
250600
|
-
return this.has(
|
|
250601
|
-
const node = this.get(
|
|
250600
|
+
return this.has(key2);
|
|
250601
|
+
const node = this.get(key2, true);
|
|
250602
250602
|
return identity3.isCollection(node) ? node.hasIn(rest) : false;
|
|
250603
250603
|
}
|
|
250604
250604
|
setIn(path8, value4) {
|
|
250605
|
-
const [
|
|
250605
|
+
const [key2, ...rest] = path8;
|
|
250606
250606
|
if (rest.length === 0) {
|
|
250607
|
-
this.set(
|
|
250607
|
+
this.set(key2, value4);
|
|
250608
250608
|
} else {
|
|
250609
|
-
const node = this.get(
|
|
250609
|
+
const node = this.get(key2, true);
|
|
250610
250610
|
if (identity3.isCollection(node))
|
|
250611
250611
|
node.setIn(rest, value4);
|
|
250612
250612
|
else if (node === undefined && this.schema)
|
|
250613
|
-
this.set(
|
|
250613
|
+
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
|
250614
250614
|
else
|
|
250615
|
-
throw new Error(`Expected YAML collection at ${
|
|
250615
|
+
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
250616
250616
|
}
|
|
250617
250617
|
}
|
|
250618
250618
|
}
|
|
@@ -251200,19 +251200,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
|
251200
251200
|
var Scalar = require_Scalar();
|
|
251201
251201
|
var stringify3 = require_stringify();
|
|
251202
251202
|
var stringifyComment = require_stringifyComment();
|
|
251203
|
-
function stringifyPair2({ key:
|
|
251203
|
+
function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
|
|
251204
251204
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
251205
|
-
let keyComment = identity3.isNode(
|
|
251205
|
+
let keyComment = identity3.isNode(key2) && key2.comment || null;
|
|
251206
251206
|
if (simpleKeys) {
|
|
251207
251207
|
if (keyComment) {
|
|
251208
251208
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
251209
251209
|
}
|
|
251210
|
-
if (identity3.isCollection(
|
|
251210
|
+
if (identity3.isCollection(key2) || !identity3.isNode(key2) && typeof key2 === "object") {
|
|
251211
251211
|
const msg = "With simple keys, collection cannot be used as a key value";
|
|
251212
251212
|
throw new Error(msg);
|
|
251213
251213
|
}
|
|
251214
251214
|
}
|
|
251215
|
-
let explicitKey = !simpleKeys && (!
|
|
251215
|
+
let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity3.isCollection(key2) || (identity3.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
|
|
251216
251216
|
ctx = Object.assign({}, ctx, {
|
|
251217
251217
|
allNullValues: false,
|
|
251218
251218
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
|
@@ -251220,7 +251220,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
|
251220
251220
|
});
|
|
251221
251221
|
let keyCommentDone = false;
|
|
251222
251222
|
let chompKeep = false;
|
|
251223
|
-
let str = stringify3.stringify(
|
|
251223
|
+
let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
251224
251224
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
|
251225
251225
|
if (simpleKeys)
|
|
251226
251226
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
@@ -251363,7 +251363,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
251363
251363
|
}),
|
|
251364
251364
|
stringify: () => MERGE_KEY
|
|
251365
251365
|
};
|
|
251366
|
-
var isMergeKey = (ctx,
|
|
251366
|
+
var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity3.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
|
251367
251367
|
function addMergeToJSMap(ctx, map3, value4) {
|
|
251368
251368
|
value4 = ctx && identity3.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
|
251369
251369
|
if (identity3.isSeq(value4))
|
|
@@ -251380,14 +251380,14 @@ var require_merge = __commonJS((exports) => {
|
|
|
251380
251380
|
if (!identity3.isMap(source))
|
|
251381
251381
|
throw new Error("Merge sources must be maps or map aliases");
|
|
251382
251382
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
251383
|
-
for (const [
|
|
251383
|
+
for (const [key2, value5] of srcMap) {
|
|
251384
251384
|
if (map3 instanceof Map) {
|
|
251385
|
-
if (!map3.has(
|
|
251386
|
-
map3.set(
|
|
251385
|
+
if (!map3.has(key2))
|
|
251386
|
+
map3.set(key2, value5);
|
|
251387
251387
|
} else if (map3 instanceof Set) {
|
|
251388
|
-
map3.add(
|
|
251389
|
-
} else if (!Object.prototype.hasOwnProperty.call(map3,
|
|
251390
|
-
Object.defineProperty(map3,
|
|
251388
|
+
map3.add(key2);
|
|
251389
|
+
} else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
|
|
251390
|
+
Object.defineProperty(map3, key2, {
|
|
251391
251391
|
value: value5,
|
|
251392
251392
|
writable: true,
|
|
251393
251393
|
enumerable: true,
|
|
@@ -251409,19 +251409,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
251409
251409
|
var stringify3 = require_stringify();
|
|
251410
251410
|
var identity3 = require_identity();
|
|
251411
251411
|
var toJS = require_toJS();
|
|
251412
|
-
function addPairToJSMap(ctx, map3, { key:
|
|
251413
|
-
if (identity3.isNode(
|
|
251414
|
-
|
|
251415
|
-
else if (merge3.isMergeKey(ctx,
|
|
251412
|
+
function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
|
|
251413
|
+
if (identity3.isNode(key2) && key2.addToJSMap)
|
|
251414
|
+
key2.addToJSMap(ctx, map3, value4);
|
|
251415
|
+
else if (merge3.isMergeKey(ctx, key2))
|
|
251416
251416
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
|
251417
251417
|
else {
|
|
251418
|
-
const jsKey = toJS.toJS(
|
|
251418
|
+
const jsKey = toJS.toJS(key2, "", ctx);
|
|
251419
251419
|
if (map3 instanceof Map) {
|
|
251420
251420
|
map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
|
251421
251421
|
} else if (map3 instanceof Set) {
|
|
251422
251422
|
map3.add(jsKey);
|
|
251423
251423
|
} else {
|
|
251424
|
-
const stringKey = stringifyKey(
|
|
251424
|
+
const stringKey = stringifyKey(key2, jsKey, ctx);
|
|
251425
251425
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
|
251426
251426
|
if (stringKey in map3)
|
|
251427
251427
|
Object.defineProperty(map3, stringKey, {
|
|
@@ -251436,19 +251436,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
251436
251436
|
}
|
|
251437
251437
|
return map3;
|
|
251438
251438
|
}
|
|
251439
|
-
function stringifyKey(
|
|
251439
|
+
function stringifyKey(key2, jsKey, ctx) {
|
|
251440
251440
|
if (jsKey === null)
|
|
251441
251441
|
return "";
|
|
251442
251442
|
if (typeof jsKey !== "object")
|
|
251443
251443
|
return String(jsKey);
|
|
251444
|
-
if (identity3.isNode(
|
|
251444
|
+
if (identity3.isNode(key2) && ctx?.doc) {
|
|
251445
251445
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
|
251446
251446
|
strCtx.anchors = new Set;
|
|
251447
251447
|
for (const node of ctx.anchors.keys())
|
|
251448
251448
|
strCtx.anchors.add(node.anchor);
|
|
251449
251449
|
strCtx.inFlow = true;
|
|
251450
251450
|
strCtx.inStringifyKey = true;
|
|
251451
|
-
const strKey =
|
|
251451
|
+
const strKey = key2.toString(strCtx);
|
|
251452
251452
|
if (!ctx.mapKeyWarned) {
|
|
251453
251453
|
let jsonStr = JSON.stringify(strKey);
|
|
251454
251454
|
if (jsonStr.length > 40)
|
|
@@ -251469,25 +251469,25 @@ var require_Pair = __commonJS((exports) => {
|
|
|
251469
251469
|
var stringifyPair2 = require_stringifyPair();
|
|
251470
251470
|
var addPairToJSMap = require_addPairToJSMap();
|
|
251471
251471
|
var identity3 = require_identity();
|
|
251472
|
-
function createPair(
|
|
251473
|
-
const k5 = createNode.createNode(
|
|
251472
|
+
function createPair(key2, value4, ctx) {
|
|
251473
|
+
const k5 = createNode.createNode(key2, undefined, ctx);
|
|
251474
251474
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
|
251475
251475
|
return new Pair(k5, v7);
|
|
251476
251476
|
}
|
|
251477
251477
|
|
|
251478
251478
|
class Pair {
|
|
251479
|
-
constructor(
|
|
251479
|
+
constructor(key2, value4 = null) {
|
|
251480
251480
|
Object.defineProperty(this, identity3.NODE_TYPE, { value: identity3.PAIR });
|
|
251481
|
-
this.key =
|
|
251481
|
+
this.key = key2;
|
|
251482
251482
|
this.value = value4;
|
|
251483
251483
|
}
|
|
251484
251484
|
clone(schema) {
|
|
251485
|
-
let { key:
|
|
251486
|
-
if (identity3.isNode(
|
|
251487
|
-
|
|
251485
|
+
let { key: key2, value: value4 } = this;
|
|
251486
|
+
if (identity3.isNode(key2))
|
|
251487
|
+
key2 = key2.clone(schema);
|
|
251488
251488
|
if (identity3.isNode(value4))
|
|
251489
251489
|
value4 = value4.clone(schema);
|
|
251490
|
-
return new Pair(
|
|
251490
|
+
return new Pair(key2, value4);
|
|
251491
251491
|
}
|
|
251492
251492
|
toJSON(_5, ctx) {
|
|
251493
251493
|
const pair = ctx?.mapAsMap ? new Map : {};
|
|
@@ -251654,11 +251654,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251654
251654
|
var identity3 = require_identity();
|
|
251655
251655
|
var Pair = require_Pair();
|
|
251656
251656
|
var Scalar = require_Scalar();
|
|
251657
|
-
function findPair(items,
|
|
251658
|
-
const k5 = identity3.isScalar(
|
|
251657
|
+
function findPair(items, key2) {
|
|
251658
|
+
const k5 = identity3.isScalar(key2) ? key2.value : key2;
|
|
251659
251659
|
for (const it2 of items) {
|
|
251660
251660
|
if (identity3.isPair(it2)) {
|
|
251661
|
-
if (it2.key ===
|
|
251661
|
+
if (it2.key === key2 || it2.key === k5)
|
|
251662
251662
|
return it2;
|
|
251663
251663
|
if (identity3.isScalar(it2.key) && it2.key.value === k5)
|
|
251664
251664
|
return it2;
|
|
@@ -251678,20 +251678,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251678
251678
|
static from(schema, obj, ctx) {
|
|
251679
251679
|
const { keepUndefined, replacer } = ctx;
|
|
251680
251680
|
const map3 = new this(schema);
|
|
251681
|
-
const add = (
|
|
251681
|
+
const add = (key2, value4) => {
|
|
251682
251682
|
if (typeof replacer === "function")
|
|
251683
|
-
value4 = replacer.call(obj,
|
|
251684
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
|
251683
|
+
value4 = replacer.call(obj, key2, value4);
|
|
251684
|
+
else if (Array.isArray(replacer) && !replacer.includes(key2))
|
|
251685
251685
|
return;
|
|
251686
251686
|
if (value4 !== undefined || keepUndefined)
|
|
251687
|
-
map3.items.push(Pair.createPair(
|
|
251687
|
+
map3.items.push(Pair.createPair(key2, value4, ctx));
|
|
251688
251688
|
};
|
|
251689
251689
|
if (obj instanceof Map) {
|
|
251690
|
-
for (const [
|
|
251691
|
-
add(
|
|
251690
|
+
for (const [key2, value4] of obj)
|
|
251691
|
+
add(key2, value4);
|
|
251692
251692
|
} else if (obj && typeof obj === "object") {
|
|
251693
|
-
for (const
|
|
251694
|
-
add(
|
|
251693
|
+
for (const key2 of Object.keys(obj))
|
|
251694
|
+
add(key2, obj[key2]);
|
|
251695
251695
|
}
|
|
251696
251696
|
if (typeof schema.sortMapEntries === "function") {
|
|
251697
251697
|
map3.items.sort(schema.sortMapEntries);
|
|
@@ -251725,23 +251725,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251725
251725
|
this.items.push(_pair);
|
|
251726
251726
|
}
|
|
251727
251727
|
}
|
|
251728
|
-
delete(
|
|
251729
|
-
const it2 = findPair(this.items,
|
|
251728
|
+
delete(key2) {
|
|
251729
|
+
const it2 = findPair(this.items, key2);
|
|
251730
251730
|
if (!it2)
|
|
251731
251731
|
return false;
|
|
251732
251732
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
|
251733
251733
|
return del.length > 0;
|
|
251734
251734
|
}
|
|
251735
|
-
get(
|
|
251736
|
-
const it2 = findPair(this.items,
|
|
251735
|
+
get(key2, keepScalar) {
|
|
251736
|
+
const it2 = findPair(this.items, key2);
|
|
251737
251737
|
const node = it2?.value;
|
|
251738
251738
|
return (!keepScalar && identity3.isScalar(node) ? node.value : node) ?? undefined;
|
|
251739
251739
|
}
|
|
251740
|
-
has(
|
|
251741
|
-
return !!findPair(this.items,
|
|
251740
|
+
has(key2) {
|
|
251741
|
+
return !!findPair(this.items, key2);
|
|
251742
251742
|
}
|
|
251743
|
-
set(
|
|
251744
|
-
this.add(new Pair.Pair(
|
|
251743
|
+
set(key2, value4) {
|
|
251744
|
+
this.add(new Pair.Pair(key2, value4), true);
|
|
251745
251745
|
}
|
|
251746
251746
|
toJSON(_5, ctx, Type) {
|
|
251747
251747
|
const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
|
@@ -251812,28 +251812,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251812
251812
|
add(value4) {
|
|
251813
251813
|
this.items.push(value4);
|
|
251814
251814
|
}
|
|
251815
|
-
delete(
|
|
251816
|
-
const idx = asItemIndex(
|
|
251815
|
+
delete(key2) {
|
|
251816
|
+
const idx = asItemIndex(key2);
|
|
251817
251817
|
if (typeof idx !== "number")
|
|
251818
251818
|
return false;
|
|
251819
251819
|
const del = this.items.splice(idx, 1);
|
|
251820
251820
|
return del.length > 0;
|
|
251821
251821
|
}
|
|
251822
|
-
get(
|
|
251823
|
-
const idx = asItemIndex(
|
|
251822
|
+
get(key2, keepScalar) {
|
|
251823
|
+
const idx = asItemIndex(key2);
|
|
251824
251824
|
if (typeof idx !== "number")
|
|
251825
251825
|
return;
|
|
251826
251826
|
const it2 = this.items[idx];
|
|
251827
251827
|
return !keepScalar && identity3.isScalar(it2) ? it2.value : it2;
|
|
251828
251828
|
}
|
|
251829
|
-
has(
|
|
251830
|
-
const idx = asItemIndex(
|
|
251829
|
+
has(key2) {
|
|
251830
|
+
const idx = asItemIndex(key2);
|
|
251831
251831
|
return typeof idx === "number" && idx < this.items.length;
|
|
251832
251832
|
}
|
|
251833
|
-
set(
|
|
251834
|
-
const idx = asItemIndex(
|
|
251833
|
+
set(key2, value4) {
|
|
251834
|
+
const idx = asItemIndex(key2);
|
|
251835
251835
|
if (typeof idx !== "number")
|
|
251836
|
-
throw new Error(`Expected a valid index, not ${
|
|
251836
|
+
throw new Error(`Expected a valid index, not ${key2}.`);
|
|
251837
251837
|
const prev = this.items[idx];
|
|
251838
251838
|
if (identity3.isScalar(prev) && Scalar.isScalarValue(value4))
|
|
251839
251839
|
prev.value = value4;
|
|
@@ -251867,8 +251867,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251867
251867
|
let i6 = 0;
|
|
251868
251868
|
for (let it2 of obj) {
|
|
251869
251869
|
if (typeof replacer === "function") {
|
|
251870
|
-
const
|
|
251871
|
-
it2 = replacer.call(obj,
|
|
251870
|
+
const key2 = obj instanceof Set ? it2 : String(i6++);
|
|
251871
|
+
it2 = replacer.call(obj, key2, it2);
|
|
251872
251872
|
}
|
|
251873
251873
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
|
251874
251874
|
}
|
|
@@ -251876,8 +251876,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251876
251876
|
return seq;
|
|
251877
251877
|
}
|
|
251878
251878
|
}
|
|
251879
|
-
function asItemIndex(
|
|
251880
|
-
let idx = identity3.isScalar(
|
|
251879
|
+
function asItemIndex(key2) {
|
|
251880
|
+
let idx = identity3.isScalar(key2) ? key2.value : key2;
|
|
251881
251881
|
if (idx && typeof idx === "string")
|
|
251882
251882
|
idx = Number(idx);
|
|
251883
251883
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
@@ -252248,25 +252248,25 @@ ${cn.comment}` : item.comment;
|
|
|
252248
252248
|
for (let it2 of iterable) {
|
|
252249
252249
|
if (typeof replacer === "function")
|
|
252250
252250
|
it2 = replacer.call(iterable, String(i6++), it2);
|
|
252251
|
-
let
|
|
252251
|
+
let key2, value4;
|
|
252252
252252
|
if (Array.isArray(it2)) {
|
|
252253
252253
|
if (it2.length === 2) {
|
|
252254
|
-
|
|
252254
|
+
key2 = it2[0];
|
|
252255
252255
|
value4 = it2[1];
|
|
252256
252256
|
} else
|
|
252257
252257
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
|
252258
252258
|
} else if (it2 && it2 instanceof Object) {
|
|
252259
252259
|
const keys = Object.keys(it2);
|
|
252260
252260
|
if (keys.length === 1) {
|
|
252261
|
-
|
|
252262
|
-
value4 = it2[
|
|
252261
|
+
key2 = keys[0];
|
|
252262
|
+
value4 = it2[key2];
|
|
252263
252263
|
} else {
|
|
252264
252264
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
|
252265
252265
|
}
|
|
252266
252266
|
} else {
|
|
252267
|
-
|
|
252267
|
+
key2 = it2;
|
|
252268
252268
|
}
|
|
252269
|
-
pairs2.items.push(Pair.createPair(
|
|
252269
|
+
pairs2.items.push(Pair.createPair(key2, value4, ctx));
|
|
252270
252270
|
}
|
|
252271
252271
|
return pairs2;
|
|
252272
252272
|
}
|
|
@@ -252307,16 +252307,16 @@ var require_omap = __commonJS((exports) => {
|
|
|
252307
252307
|
if (ctx?.onCreate)
|
|
252308
252308
|
ctx.onCreate(map3);
|
|
252309
252309
|
for (const pair of this.items) {
|
|
252310
|
-
let
|
|
252310
|
+
let key2, value4;
|
|
252311
252311
|
if (identity3.isPair(pair)) {
|
|
252312
|
-
|
|
252313
|
-
value4 = toJS.toJS(pair.value,
|
|
252312
|
+
key2 = toJS.toJS(pair.key, "", ctx);
|
|
252313
|
+
value4 = toJS.toJS(pair.value, key2, ctx);
|
|
252314
252314
|
} else {
|
|
252315
|
-
|
|
252315
|
+
key2 = toJS.toJS(pair, "", ctx);
|
|
252316
252316
|
}
|
|
252317
|
-
if (map3.has(
|
|
252317
|
+
if (map3.has(key2))
|
|
252318
252318
|
throw new Error("Ordered maps must not include duplicate keys");
|
|
252319
|
-
map3.set(
|
|
252319
|
+
map3.set(key2, value4);
|
|
252320
252320
|
}
|
|
252321
252321
|
return map3;
|
|
252322
252322
|
}
|
|
@@ -252337,12 +252337,12 @@ var require_omap = __commonJS((exports) => {
|
|
|
252337
252337
|
resolve(seq, onError) {
|
|
252338
252338
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
|
252339
252339
|
const seenKeys = [];
|
|
252340
|
-
for (const { key:
|
|
252341
|
-
if (identity3.isScalar(
|
|
252342
|
-
if (seenKeys.includes(
|
|
252343
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
|
252340
|
+
for (const { key: key2 } of pairs$1.items) {
|
|
252341
|
+
if (identity3.isScalar(key2)) {
|
|
252342
|
+
if (seenKeys.includes(key2.value)) {
|
|
252343
|
+
onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
|
|
252344
252344
|
} else {
|
|
252345
|
-
seenKeys.push(
|
|
252345
|
+
seenKeys.push(key2.value);
|
|
252346
252346
|
}
|
|
252347
252347
|
}
|
|
252348
252348
|
}
|
|
@@ -252516,30 +252516,30 @@ var require_set = __commonJS((exports) => {
|
|
|
252516
252516
|
super(schema);
|
|
252517
252517
|
this.tag = YAMLSet.tag;
|
|
252518
252518
|
}
|
|
252519
|
-
add(
|
|
252519
|
+
add(key2) {
|
|
252520
252520
|
let pair;
|
|
252521
|
-
if (identity3.isPair(
|
|
252522
|
-
pair =
|
|
252523
|
-
else if (
|
|
252524
|
-
pair = new Pair.Pair(
|
|
252521
|
+
if (identity3.isPair(key2))
|
|
252522
|
+
pair = key2;
|
|
252523
|
+
else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
|
|
252524
|
+
pair = new Pair.Pair(key2.key, null);
|
|
252525
252525
|
else
|
|
252526
|
-
pair = new Pair.Pair(
|
|
252526
|
+
pair = new Pair.Pair(key2, null);
|
|
252527
252527
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
|
252528
252528
|
if (!prev)
|
|
252529
252529
|
this.items.push(pair);
|
|
252530
252530
|
}
|
|
252531
|
-
get(
|
|
252532
|
-
const pair = YAMLMap.findPair(this.items,
|
|
252531
|
+
get(key2, keepPair) {
|
|
252532
|
+
const pair = YAMLMap.findPair(this.items, key2);
|
|
252533
252533
|
return !keepPair && identity3.isPair(pair) ? identity3.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
|
252534
252534
|
}
|
|
252535
|
-
set(
|
|
252535
|
+
set(key2, value4) {
|
|
252536
252536
|
if (typeof value4 !== "boolean")
|
|
252537
252537
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
|
252538
|
-
const prev = YAMLMap.findPair(this.items,
|
|
252538
|
+
const prev = YAMLMap.findPair(this.items, key2);
|
|
252539
252539
|
if (prev && !value4) {
|
|
252540
252540
|
this.items.splice(this.items.indexOf(prev), 1);
|
|
252541
252541
|
} else if (!prev && value4) {
|
|
252542
|
-
this.items.push(new Pair.Pair(
|
|
252542
|
+
this.items.push(new Pair.Pair(key2));
|
|
252543
252543
|
}
|
|
252544
252544
|
}
|
|
252545
252545
|
toJSON(_5, ctx) {
|
|
@@ -252774,7 +252774,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
252774
252774
|
if (Array.isArray(customTags))
|
|
252775
252775
|
tags = [];
|
|
252776
252776
|
else {
|
|
252777
|
-
const keys = Array.from(schemas.keys()).filter((
|
|
252777
|
+
const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
|
|
252778
252778
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
|
252779
252779
|
}
|
|
252780
252780
|
}
|
|
@@ -252790,7 +252790,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
252790
252790
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
252791
252791
|
if (!tagObj) {
|
|
252792
252792
|
const tagName = JSON.stringify(tag);
|
|
252793
|
-
const keys = Object.keys(tagsByName).map((
|
|
252793
|
+
const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
|
|
252794
252794
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
|
252795
252795
|
}
|
|
252796
252796
|
if (!tags2.includes(tagObj))
|
|
@@ -253025,13 +253025,13 @@ var require_Document = __commonJS((exports) => {
|
|
|
253025
253025
|
setAnchors();
|
|
253026
253026
|
return node;
|
|
253027
253027
|
}
|
|
253028
|
-
createPair(
|
|
253029
|
-
const k5 = this.createNode(
|
|
253028
|
+
createPair(key2, value4, options = {}) {
|
|
253029
|
+
const k5 = this.createNode(key2, null, options);
|
|
253030
253030
|
const v7 = this.createNode(value4, null, options);
|
|
253031
253031
|
return new Pair.Pair(k5, v7);
|
|
253032
253032
|
}
|
|
253033
|
-
delete(
|
|
253034
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
|
253033
|
+
delete(key2) {
|
|
253034
|
+
return assertCollection(this.contents) ? this.contents.delete(key2) : false;
|
|
253035
253035
|
}
|
|
253036
253036
|
deleteIn(path8) {
|
|
253037
253037
|
if (Collection.isEmptyPath(path8)) {
|
|
@@ -253042,27 +253042,27 @@ var require_Document = __commonJS((exports) => {
|
|
|
253042
253042
|
}
|
|
253043
253043
|
return assertCollection(this.contents) ? this.contents.deleteIn(path8) : false;
|
|
253044
253044
|
}
|
|
253045
|
-
get(
|
|
253046
|
-
return identity3.isCollection(this.contents) ? this.contents.get(
|
|
253045
|
+
get(key2, keepScalar) {
|
|
253046
|
+
return identity3.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
|
|
253047
253047
|
}
|
|
253048
253048
|
getIn(path8, keepScalar) {
|
|
253049
253049
|
if (Collection.isEmptyPath(path8))
|
|
253050
253050
|
return !keepScalar && identity3.isScalar(this.contents) ? this.contents.value : this.contents;
|
|
253051
253051
|
return identity3.isCollection(this.contents) ? this.contents.getIn(path8, keepScalar) : undefined;
|
|
253052
253052
|
}
|
|
253053
|
-
has(
|
|
253054
|
-
return identity3.isCollection(this.contents) ? this.contents.has(
|
|
253053
|
+
has(key2) {
|
|
253054
|
+
return identity3.isCollection(this.contents) ? this.contents.has(key2) : false;
|
|
253055
253055
|
}
|
|
253056
253056
|
hasIn(path8) {
|
|
253057
253057
|
if (Collection.isEmptyPath(path8))
|
|
253058
253058
|
return this.contents !== undefined;
|
|
253059
253059
|
return identity3.isCollection(this.contents) ? this.contents.hasIn(path8) : false;
|
|
253060
253060
|
}
|
|
253061
|
-
set(
|
|
253061
|
+
set(key2, value4) {
|
|
253062
253062
|
if (this.contents == null) {
|
|
253063
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
|
253063
|
+
this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
|
|
253064
253064
|
} else if (assertCollection(this.contents)) {
|
|
253065
|
-
this.contents.set(
|
|
253065
|
+
this.contents.set(key2, value4);
|
|
253066
253066
|
}
|
|
253067
253067
|
}
|
|
253068
253068
|
setIn(path8, value4) {
|
|
@@ -253346,25 +253346,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
|
253346
253346
|
|
|
253347
253347
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
|
253348
253348
|
var require_util_contains_newline = __commonJS((exports) => {
|
|
253349
|
-
function containsNewline(
|
|
253350
|
-
if (!
|
|
253349
|
+
function containsNewline(key2) {
|
|
253350
|
+
if (!key2)
|
|
253351
253351
|
return null;
|
|
253352
|
-
switch (
|
|
253352
|
+
switch (key2.type) {
|
|
253353
253353
|
case "alias":
|
|
253354
253354
|
case "scalar":
|
|
253355
253355
|
case "double-quoted-scalar":
|
|
253356
253356
|
case "single-quoted-scalar":
|
|
253357
|
-
if (
|
|
253357
|
+
if (key2.source.includes(`
|
|
253358
253358
|
`))
|
|
253359
253359
|
return true;
|
|
253360
|
-
if (
|
|
253361
|
-
for (const st2 of
|
|
253360
|
+
if (key2.end) {
|
|
253361
|
+
for (const st2 of key2.end)
|
|
253362
253362
|
if (st2.type === "newline")
|
|
253363
253363
|
return true;
|
|
253364
253364
|
}
|
|
253365
253365
|
return false;
|
|
253366
253366
|
case "flow-collection":
|
|
253367
|
-
for (const it2 of
|
|
253367
|
+
for (const it2 of key2.items) {
|
|
253368
253368
|
for (const st2 of it2.start)
|
|
253369
253369
|
if (st2.type === "newline")
|
|
253370
253370
|
return true;
|
|
@@ -253429,10 +253429,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
253429
253429
|
let offset = bm.offset;
|
|
253430
253430
|
let commentEnd = null;
|
|
253431
253431
|
for (const collItem of bm.items) {
|
|
253432
|
-
const { start: start3, key:
|
|
253432
|
+
const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
|
|
253433
253433
|
const keyProps = resolveProps.resolveProps(start3, {
|
|
253434
253434
|
indicator: "explicit-key-ind",
|
|
253435
|
-
next:
|
|
253435
|
+
next: key2 ?? sep3?.[0],
|
|
253436
253436
|
offset,
|
|
253437
253437
|
onError,
|
|
253438
253438
|
parentIndent: bm.indent,
|
|
@@ -253440,10 +253440,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
253440
253440
|
});
|
|
253441
253441
|
const implicitKey = !keyProps.found;
|
|
253442
253442
|
if (implicitKey) {
|
|
253443
|
-
if (
|
|
253444
|
-
if (
|
|
253443
|
+
if (key2) {
|
|
253444
|
+
if (key2.type === "block-seq")
|
|
253445
253445
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
|
253446
|
-
else if ("indent" in
|
|
253446
|
+
else if ("indent" in key2 && key2.indent !== bm.indent)
|
|
253447
253447
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
253448
253448
|
}
|
|
253449
253449
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
|
@@ -253457,17 +253457,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
253457
253457
|
}
|
|
253458
253458
|
continue;
|
|
253459
253459
|
}
|
|
253460
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
|
253461
|
-
onError(
|
|
253460
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
|
|
253461
|
+
onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
253462
253462
|
}
|
|
253463
253463
|
} else if (keyProps.found?.indent !== bm.indent) {
|
|
253464
253464
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
253465
253465
|
}
|
|
253466
253466
|
ctx.atKey = true;
|
|
253467
253467
|
const keyStart = keyProps.end;
|
|
253468
|
-
const keyNode =
|
|
253468
|
+
const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
|
253469
253469
|
if (ctx.schema.compat)
|
|
253470
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
|
253470
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
|
|
253471
253471
|
ctx.atKey = false;
|
|
253472
253472
|
if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
|
|
253473
253473
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
@@ -253477,7 +253477,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
253477
253477
|
offset: keyNode.range[2],
|
|
253478
253478
|
onError,
|
|
253479
253479
|
parentIndent: bm.indent,
|
|
253480
|
-
startOnNewline: !
|
|
253480
|
+
startOnNewline: !key2 || key2.type === "block-scalar"
|
|
253481
253481
|
});
|
|
253482
253482
|
offset = valueProps.end;
|
|
253483
253483
|
if (valueProps.found) {
|
|
@@ -253633,11 +253633,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
253633
253633
|
let offset = fc.offset + fc.start.source.length;
|
|
253634
253634
|
for (let i6 = 0;i6 < fc.items.length; ++i6) {
|
|
253635
253635
|
const collItem = fc.items[i6];
|
|
253636
|
-
const { start: start3, key:
|
|
253636
|
+
const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
|
|
253637
253637
|
const props = resolveProps.resolveProps(start3, {
|
|
253638
253638
|
flow: fcName,
|
|
253639
253639
|
indicator: "explicit-key-ind",
|
|
253640
|
-
next:
|
|
253640
|
+
next: key2 ?? sep3?.[0],
|
|
253641
253641
|
offset,
|
|
253642
253642
|
onError,
|
|
253643
253643
|
parentIndent: fc.indent,
|
|
@@ -253659,8 +253659,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
253659
253659
|
offset = props.end;
|
|
253660
253660
|
continue;
|
|
253661
253661
|
}
|
|
253662
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
|
253663
|
-
onError(
|
|
253662
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
|
|
253663
|
+
onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
|
253664
253664
|
}
|
|
253665
253665
|
if (i6 === 0) {
|
|
253666
253666
|
if (props.comma)
|
|
@@ -253705,8 +253705,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
253705
253705
|
} else {
|
|
253706
253706
|
ctx.atKey = true;
|
|
253707
253707
|
const keyStart = props.end;
|
|
253708
|
-
const keyNode =
|
|
253709
|
-
if (isBlock(
|
|
253708
|
+
const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
|
253709
|
+
if (isBlock(key2))
|
|
253710
253710
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
253711
253711
|
ctx.atKey = false;
|
|
253712
253712
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
|
@@ -254517,7 +254517,7 @@ var require_compose_doc = __commonJS((exports) => {
|
|
|
254517
254517
|
var require_composer = __commonJS((exports) => {
|
|
254518
254518
|
var directives4 = require_directives2();
|
|
254519
254519
|
var Document = require_Document();
|
|
254520
|
-
var
|
|
254520
|
+
var errors2 = require_errors3();
|
|
254521
254521
|
var identity3 = require_identity();
|
|
254522
254522
|
var composeDoc = require_compose_doc();
|
|
254523
254523
|
var resolveEnd = require_resolve_end();
|
|
@@ -254568,9 +254568,9 @@ var require_composer = __commonJS((exports) => {
|
|
|
254568
254568
|
this.onError = (source, code2, message, warning) => {
|
|
254569
254569
|
const pos = getErrorPos(source);
|
|
254570
254570
|
if (warning)
|
|
254571
|
-
this.warnings.push(new
|
|
254571
|
+
this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
|
|
254572
254572
|
else
|
|
254573
|
-
this.errors.push(new
|
|
254573
|
+
this.errors.push(new errors2.YAMLParseError(pos, code2, message));
|
|
254574
254574
|
};
|
|
254575
254575
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
|
254576
254576
|
this.options = options;
|
|
@@ -254654,7 +254654,7 @@ ${cb}` : comment;
|
|
|
254654
254654
|
break;
|
|
254655
254655
|
case "error": {
|
|
254656
254656
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
|
254657
|
-
const error5 = new
|
|
254657
|
+
const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
|
254658
254658
|
if (this.atDirectives || !this.doc)
|
|
254659
254659
|
this.errors.push(error5);
|
|
254660
254660
|
else
|
|
@@ -254664,7 +254664,7 @@ ${cb}` : comment;
|
|
|
254664
254664
|
case "doc-end": {
|
|
254665
254665
|
if (!this.doc) {
|
|
254666
254666
|
const msg = "Unexpected doc-end without preceding document";
|
|
254667
|
-
this.errors.push(new
|
|
254667
|
+
this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
|
254668
254668
|
break;
|
|
254669
254669
|
}
|
|
254670
254670
|
this.doc.directives.docEnd = true;
|
|
@@ -254679,7 +254679,7 @@ ${end.comment}` : end.comment;
|
|
|
254679
254679
|
break;
|
|
254680
254680
|
}
|
|
254681
254681
|
default:
|
|
254682
|
-
this.errors.push(new
|
|
254682
|
+
this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
|
254683
254683
|
}
|
|
254684
254684
|
}
|
|
254685
254685
|
*end(forceDoc = false, endOffset = -1) {
|
|
@@ -254705,7 +254705,7 @@ ${end.comment}` : end.comment;
|
|
|
254705
254705
|
var require_cst_scalar = __commonJS((exports) => {
|
|
254706
254706
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
254707
254707
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
254708
|
-
var
|
|
254708
|
+
var errors2 = require_errors3();
|
|
254709
254709
|
var stringifyString = require_stringifyString();
|
|
254710
254710
|
function resolveAsScalar(token, strict = true, onError) {
|
|
254711
254711
|
if (token) {
|
|
@@ -254714,7 +254714,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254714
254714
|
if (onError)
|
|
254715
254715
|
onError(offset, code2, message);
|
|
254716
254716
|
else
|
|
254717
|
-
throw new
|
|
254717
|
+
throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
|
|
254718
254718
|
};
|
|
254719
254719
|
switch (token.type) {
|
|
254720
254720
|
case "scalar":
|
|
@@ -254828,9 +254828,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254828
254828
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
|
254829
254829
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
|
254830
254830
|
` });
|
|
254831
|
-
for (const
|
|
254832
|
-
if (
|
|
254833
|
-
delete token[
|
|
254831
|
+
for (const key2 of Object.keys(token))
|
|
254832
|
+
if (key2 !== "type" && key2 !== "offset")
|
|
254833
|
+
delete token[key2];
|
|
254834
254834
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
|
254835
254835
|
}
|
|
254836
254836
|
}
|
|
@@ -254879,9 +254879,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254879
254879
|
default: {
|
|
254880
254880
|
const indent2 = "indent" in token ? token.indent : -1;
|
|
254881
254881
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
|
254882
|
-
for (const
|
|
254883
|
-
if (
|
|
254884
|
-
delete token[
|
|
254882
|
+
for (const key2 of Object.keys(token))
|
|
254883
|
+
if (key2 !== "type" && key2 !== "offset")
|
|
254884
|
+
delete token[key2];
|
|
254885
254885
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
|
254886
254886
|
}
|
|
254887
254887
|
}
|
|
@@ -254933,12 +254933,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
254933
254933
|
}
|
|
254934
254934
|
}
|
|
254935
254935
|
}
|
|
254936
|
-
function stringifyItem({ start: start3, key:
|
|
254936
|
+
function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
|
|
254937
254937
|
let res = "";
|
|
254938
254938
|
for (const st2 of start3)
|
|
254939
254939
|
res += st2.source;
|
|
254940
|
-
if (
|
|
254941
|
-
res += stringifyToken(
|
|
254940
|
+
if (key2)
|
|
254941
|
+
res += stringifyToken(key2);
|
|
254942
254942
|
if (sep3)
|
|
254943
254943
|
for (const st2 of sep3)
|
|
254944
254944
|
res += st2.source;
|
|
@@ -256234,7 +256234,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
256234
256234
|
});
|
|
256235
256235
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
|
256236
256236
|
const start4 = getFirstKeyStartProps(it2.start);
|
|
256237
|
-
const
|
|
256237
|
+
const key2 = it2.key;
|
|
256238
256238
|
const sep3 = it2.sep;
|
|
256239
256239
|
sep3.push(this.sourceToken);
|
|
256240
256240
|
delete it2.key;
|
|
@@ -256243,7 +256243,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
256243
256243
|
type: "block-map",
|
|
256244
256244
|
offset: this.offset,
|
|
256245
256245
|
indent: this.indent,
|
|
256246
|
-
items: [{ start: start4, key:
|
|
256246
|
+
items: [{ start: start4, key: key2, sep: sep3 }]
|
|
256247
256247
|
});
|
|
256248
256248
|
} else if (start3.length > 0) {
|
|
256249
256249
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
|
@@ -256566,7 +256566,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
256566
256566
|
var require_public_api = __commonJS((exports) => {
|
|
256567
256567
|
var composer = require_composer();
|
|
256568
256568
|
var Document = require_Document();
|
|
256569
|
-
var
|
|
256569
|
+
var errors2 = require_errors3();
|
|
256570
256570
|
var log = require_log();
|
|
256571
256571
|
var identity3 = require_identity();
|
|
256572
256572
|
var lineCounter = require_line_counter();
|
|
@@ -256583,8 +256583,8 @@ var require_public_api = __commonJS((exports) => {
|
|
|
256583
256583
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
|
256584
256584
|
if (prettyErrors && lineCounter2)
|
|
256585
256585
|
for (const doc of docs) {
|
|
256586
|
-
doc.errors.forEach(
|
|
256587
|
-
doc.warnings.forEach(
|
|
256586
|
+
doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
|
|
256587
|
+
doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
|
|
256588
256588
|
}
|
|
256589
256589
|
if (docs.length > 0)
|
|
256590
256590
|
return docs;
|
|
@@ -256599,13 +256599,13 @@ var require_public_api = __commonJS((exports) => {
|
|
|
256599
256599
|
if (!doc)
|
|
256600
256600
|
doc = _doc;
|
|
256601
256601
|
else if (doc.options.logLevel !== "silent") {
|
|
256602
|
-
doc.errors.push(new
|
|
256602
|
+
doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
256603
256603
|
break;
|
|
256604
256604
|
}
|
|
256605
256605
|
}
|
|
256606
256606
|
if (prettyErrors && lineCounter2) {
|
|
256607
|
-
doc.errors.forEach(
|
|
256608
|
-
doc.warnings.forEach(
|
|
256607
|
+
doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
|
|
256608
|
+
doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
|
|
256609
256609
|
}
|
|
256610
256610
|
return doc;
|
|
256611
256611
|
}
|
|
@@ -268900,13 +268900,13 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
|
|
|
268900
268900
|
};
|
|
268901
268901
|
}
|
|
268902
268902
|
|
|
268903
|
-
// ../../node_modules/@inquirer/
|
|
268903
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
268904
268904
|
var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
|
|
268905
268905
|
var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
|
|
268906
268906
|
var isBackspaceKey = (key) => key.name === "backspace";
|
|
268907
268907
|
var isNumberKey = (key) => "123456789".includes(key.name);
|
|
268908
268908
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
268909
|
-
// ../../node_modules/@inquirer/
|
|
268909
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
268910
268910
|
class AbortPromptError extends Error {
|
|
268911
268911
|
name = "AbortPromptError";
|
|
268912
268912
|
message = "Prompt was aborted";
|
|
@@ -268932,10 +268932,10 @@ class HookError extends Error {
|
|
|
268932
268932
|
class ValidationError extends Error {
|
|
268933
268933
|
name = "ValidationError";
|
|
268934
268934
|
}
|
|
268935
|
-
// ../../node_modules/@inquirer/
|
|
268935
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
268936
268936
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
|
268937
268937
|
|
|
268938
|
-
// ../../node_modules/@inquirer/
|
|
268938
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
268939
268939
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
268940
268940
|
var hookStorage = new AsyncLocalStorage;
|
|
268941
268941
|
function createStore(rl) {
|
|
@@ -269041,7 +269041,7 @@ var effectScheduler = {
|
|
|
269041
269041
|
}
|
|
269042
269042
|
};
|
|
269043
269043
|
|
|
269044
|
-
// ../../node_modules/@inquirer/
|
|
269044
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
269045
269045
|
function useState(defaultValue) {
|
|
269046
269046
|
return withPointer((pointer) => {
|
|
269047
269047
|
const setFn = (newValue) => {
|
|
@@ -269059,7 +269059,7 @@ function useState(defaultValue) {
|
|
|
269059
269059
|
});
|
|
269060
269060
|
}
|
|
269061
269061
|
|
|
269062
|
-
// ../../node_modules/@inquirer/
|
|
269062
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
269063
269063
|
function useEffect(cb, depArray) {
|
|
269064
269064
|
withPointer((pointer) => {
|
|
269065
269065
|
const oldDeps = pointer.get();
|
|
@@ -269071,7 +269071,7 @@ function useEffect(cb, depArray) {
|
|
|
269071
269071
|
});
|
|
269072
269072
|
}
|
|
269073
269073
|
|
|
269074
|
-
// ../../node_modules/@inquirer/
|
|
269074
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
269075
269075
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
269076
269076
|
|
|
269077
269077
|
// ../../node_modules/@inquirer/figures/dist/esm/index.js
|
|
@@ -269360,7 +269360,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
269360
269360
|
var esm_default = figures;
|
|
269361
269361
|
var replacements = Object.entries(specialMainSymbols);
|
|
269362
269362
|
|
|
269363
|
-
// ../../node_modules/@inquirer/
|
|
269363
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
269364
269364
|
var defaultTheme = {
|
|
269365
269365
|
prefix: {
|
|
269366
269366
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -269381,7 +269381,7 @@ var defaultTheme = {
|
|
|
269381
269381
|
}
|
|
269382
269382
|
};
|
|
269383
269383
|
|
|
269384
|
-
// ../../node_modules/@inquirer/
|
|
269384
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
269385
269385
|
function isPlainObject(value4) {
|
|
269386
269386
|
if (typeof value4 !== "object" || value4 === null)
|
|
269387
269387
|
return false;
|
|
@@ -269409,7 +269409,7 @@ function makeTheme(...themes) {
|
|
|
269409
269409
|
return deepMerge2(...themesToMerge);
|
|
269410
269410
|
}
|
|
269411
269411
|
|
|
269412
|
-
// ../../node_modules/@inquirer/
|
|
269412
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
269413
269413
|
function usePrefix({ status = "idle", theme }) {
|
|
269414
269414
|
const [showLoader, setShowLoader] = useState(false);
|
|
269415
269415
|
const [tick, setTick] = useState(0);
|
|
@@ -269439,7 +269439,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
269439
269439
|
const iconName = status === "loading" ? "idle" : status;
|
|
269440
269440
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
269441
269441
|
}
|
|
269442
|
-
// ../../node_modules/@inquirer/
|
|
269442
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
269443
269443
|
function useMemo(fn, dependencies) {
|
|
269444
269444
|
return withPointer((pointer) => {
|
|
269445
269445
|
const prev = pointer.get();
|
|
@@ -269451,11 +269451,11 @@ function useMemo(fn, dependencies) {
|
|
|
269451
269451
|
return prev.value;
|
|
269452
269452
|
});
|
|
269453
269453
|
}
|
|
269454
|
-
// ../../node_modules/@inquirer/
|
|
269454
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
269455
269455
|
function useRef(val) {
|
|
269456
269456
|
return useState({ current: val })[0];
|
|
269457
269457
|
}
|
|
269458
|
-
// ../../node_modules/@inquirer/
|
|
269458
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
269459
269459
|
function useKeypress(userHandler) {
|
|
269460
269460
|
const signal = useRef(userHandler);
|
|
269461
269461
|
signal.current = userHandler;
|
|
@@ -269473,7 +269473,7 @@ function useKeypress(userHandler) {
|
|
|
269473
269473
|
};
|
|
269474
269474
|
}, []);
|
|
269475
269475
|
}
|
|
269476
|
-
// ../../node_modules/@inquirer/
|
|
269476
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
269477
269477
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
269478
269478
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
269479
269479
|
function breakLines(content, width) {
|
|
@@ -269486,7 +269486,7 @@ function readlineWidth() {
|
|
|
269486
269486
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
|
269487
269487
|
}
|
|
269488
269488
|
|
|
269489
|
-
// ../../node_modules/@inquirer/
|
|
269489
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
|
|
269490
269490
|
function split2(content, width) {
|
|
269491
269491
|
return breakLines(content, width).split(`
|
|
269492
269492
|
`);
|
|
@@ -269531,7 +269531,7 @@ function lines({ items, width, renderItem, active, position: requested, pageSize
|
|
|
269531
269531
|
return pageBuffer.filter((line) => typeof line === "string");
|
|
269532
269532
|
}
|
|
269533
269533
|
|
|
269534
|
-
// ../../node_modules/@inquirer/
|
|
269534
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
|
|
269535
269535
|
function finite({ active, pageSize, total }) {
|
|
269536
269536
|
const middle = Math.floor(pageSize / 2);
|
|
269537
269537
|
if (total <= pageSize || active < middle)
|
|
@@ -269549,7 +269549,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {
|
|
|
269549
269549
|
return pointer;
|
|
269550
269550
|
}
|
|
269551
269551
|
|
|
269552
|
-
// ../../node_modules/@inquirer/
|
|
269552
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
269553
269553
|
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
269554
269554
|
const state = useRef({ position: 0, lastActive: 0 });
|
|
269555
269555
|
const position = loop ? infinite({
|
|
@@ -269575,13 +269575,13 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
269575
269575
|
}).join(`
|
|
269576
269576
|
`);
|
|
269577
269577
|
}
|
|
269578
|
-
// ../../node_modules/@inquirer/
|
|
269578
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
269579
269579
|
var import_mute_stream = __toESM(require_lib13(), 1);
|
|
269580
269580
|
init_mjs();
|
|
269581
269581
|
import * as readline2 from "node:readline";
|
|
269582
269582
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
269583
269583
|
|
|
269584
|
-
// ../../node_modules/@inquirer/
|
|
269584
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
269585
269585
|
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
269586
269586
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
269587
269587
|
var height = (content) => content.split(`
|
|
@@ -269652,7 +269652,7 @@ class ScreenManager {
|
|
|
269652
269652
|
}
|
|
269653
269653
|
}
|
|
269654
269654
|
|
|
269655
|
-
// ../../node_modules/@inquirer/
|
|
269655
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
269656
269656
|
class PromisePolyfill extends Promise {
|
|
269657
269657
|
static withResolver() {
|
|
269658
269658
|
let resolve3;
|
|
@@ -269665,7 +269665,7 @@ class PromisePolyfill extends Promise {
|
|
|
269665
269665
|
}
|
|
269666
269666
|
}
|
|
269667
269667
|
|
|
269668
|
-
// ../../node_modules/@inquirer/
|
|
269668
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
269669
269669
|
function getCallSites() {
|
|
269670
269670
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
269671
269671
|
try {
|
|
@@ -269747,7 +269747,7 @@ function createPrompt(view) {
|
|
|
269747
269747
|
};
|
|
269748
269748
|
return prompt;
|
|
269749
269749
|
}
|
|
269750
|
-
// ../../node_modules/@inquirer/
|
|
269750
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
269751
269751
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
269752
269752
|
class Separator {
|
|
269753
269753
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
@@ -269763,7 +269763,7 @@ class Separator {
|
|
|
269763
269763
|
}
|
|
269764
269764
|
// ../../node_modules/@inquirer/select/dist/esm/index.js
|
|
269765
269765
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
269766
|
-
var import_ansi_escapes2 = __toESM(
|
|
269766
|
+
var import_ansi_escapes2 = __toESM(require_ansi_escapes2(), 1);
|
|
269767
269767
|
var selectTheme = {
|
|
269768
269768
|
icon: { cursor: esm_default.pointer },
|
|
269769
269769
|
style: {
|
|
@@ -270326,7 +270326,7 @@ async function codegenIpfs(env2) {
|
|
|
270326
270326
|
const clientTemplate = `import { createServerIpfsClient } from "@settlemint/sdk-ipfs";
|
|
270327
270327
|
|
|
270328
270328
|
export const { client } = createServerIpfsClient({
|
|
270329
|
-
instance: process.env.
|
|
270329
|
+
instance: process.env.SETTLEMINT_IPFS_API_ENDPOINT!,
|
|
270330
270330
|
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN!,
|
|
270331
270331
|
});`;
|
|
270332
270332
|
await writeTemplate(clientTemplate, "/lib/settlemint", "ipfs.ts");
|
|
@@ -270344,7 +270344,7 @@ async function codegenMinio(env2) {
|
|
|
270344
270344
|
const clientTemplate = `import { createServerMinioClient } from "@settlemint/sdk-minio";
|
|
270345
270345
|
|
|
270346
270346
|
export const { client } = createServerMinioClient({
|
|
270347
|
-
instance: process.env.
|
|
270347
|
+
instance: process.env.SETTLEMINT_MINIO_ENDPOINT!,
|
|
270348
270348
|
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN!,
|
|
270349
270349
|
accessKey: process.env.SETTLEMINT_MINIO_ACCESS_KEY!,
|
|
270350
270350
|
secretKey: process.env.SETTLEMINT_MINIO_SECRET_KEY!
|
|
@@ -270460,8 +270460,11 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
270460
270460
|
}
|
|
270461
270461
|
|
|
270462
270462
|
// src/error/missing-config-error.ts
|
|
270463
|
-
function missingAccessTokenError() {
|
|
270464
|
-
|
|
270463
|
+
function missingAccessTokenError(personalAccessTokenExists) {
|
|
270464
|
+
if (personalAccessTokenExists) {
|
|
270465
|
+
return cancel2("No access token found, please run `settlemint connect` to connect to your instance.");
|
|
270466
|
+
}
|
|
270467
|
+
return cancel2("No personal access token found, please run `settlemint login`, then run `settlemint connect` to connect using an application access token.");
|
|
270465
270468
|
}
|
|
270466
270469
|
function missingPersonalAccessTokenError() {
|
|
270467
270470
|
return cancel2("No personal access token found for instance, please run `settlemint login` to login to your instance");
|
|
@@ -272582,750 +272585,6 @@ function createSettleMintClient(options) {
|
|
|
272582
272585
|
};
|
|
272583
272586
|
}
|
|
272584
272587
|
|
|
272585
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
272586
|
-
var isBackspaceKey2 = (key2) => key2.name === "backspace";
|
|
272587
|
-
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
|
272588
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
272589
|
-
class AbortPromptError2 extends Error {
|
|
272590
|
-
name = "AbortPromptError";
|
|
272591
|
-
message = "Prompt was aborted";
|
|
272592
|
-
constructor(options) {
|
|
272593
|
-
super();
|
|
272594
|
-
this.cause = options?.cause;
|
|
272595
|
-
}
|
|
272596
|
-
}
|
|
272597
|
-
|
|
272598
|
-
class CancelPromptError2 extends Error {
|
|
272599
|
-
name = "CancelPromptError";
|
|
272600
|
-
message = "Prompt was canceled";
|
|
272601
|
-
}
|
|
272602
|
-
|
|
272603
|
-
class ExitPromptError2 extends Error {
|
|
272604
|
-
name = "ExitPromptError";
|
|
272605
|
-
}
|
|
272606
|
-
|
|
272607
|
-
class HookError2 extends Error {
|
|
272608
|
-
name = "HookError";
|
|
272609
|
-
}
|
|
272610
|
-
|
|
272611
|
-
class ValidationError2 extends Error {
|
|
272612
|
-
name = "ValidationError";
|
|
272613
|
-
}
|
|
272614
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
272615
|
-
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
|
272616
|
-
|
|
272617
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
272618
|
-
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
272619
|
-
var hookStorage2 = new AsyncLocalStorage2;
|
|
272620
|
-
function createStore2(rl) {
|
|
272621
|
-
const store = {
|
|
272622
|
-
rl,
|
|
272623
|
-
hooks: [],
|
|
272624
|
-
hooksCleanup: [],
|
|
272625
|
-
hooksEffect: [],
|
|
272626
|
-
index: 0,
|
|
272627
|
-
handleChange() {
|
|
272628
|
-
}
|
|
272629
|
-
};
|
|
272630
|
-
return store;
|
|
272631
|
-
}
|
|
272632
|
-
function withHooks2(rl, cb) {
|
|
272633
|
-
const store = createStore2(rl);
|
|
272634
|
-
return hookStorage2.run(store, () => {
|
|
272635
|
-
function cycle(render) {
|
|
272636
|
-
store.handleChange = () => {
|
|
272637
|
-
store.index = 0;
|
|
272638
|
-
render();
|
|
272639
|
-
};
|
|
272640
|
-
store.handleChange();
|
|
272641
|
-
}
|
|
272642
|
-
return cb(cycle);
|
|
272643
|
-
});
|
|
272644
|
-
}
|
|
272645
|
-
function getStore2() {
|
|
272646
|
-
const store = hookStorage2.getStore();
|
|
272647
|
-
if (!store) {
|
|
272648
|
-
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
|
272649
|
-
}
|
|
272650
|
-
return store;
|
|
272651
|
-
}
|
|
272652
|
-
function readline3() {
|
|
272653
|
-
return getStore2().rl;
|
|
272654
|
-
}
|
|
272655
|
-
function withUpdates2(fn) {
|
|
272656
|
-
const wrapped = (...args) => {
|
|
272657
|
-
const store = getStore2();
|
|
272658
|
-
let shouldUpdate = false;
|
|
272659
|
-
const oldHandleChange = store.handleChange;
|
|
272660
|
-
store.handleChange = () => {
|
|
272661
|
-
shouldUpdate = true;
|
|
272662
|
-
};
|
|
272663
|
-
const returnValue = fn(...args);
|
|
272664
|
-
if (shouldUpdate) {
|
|
272665
|
-
oldHandleChange();
|
|
272666
|
-
}
|
|
272667
|
-
store.handleChange = oldHandleChange;
|
|
272668
|
-
return returnValue;
|
|
272669
|
-
};
|
|
272670
|
-
return AsyncResource4.bind(wrapped);
|
|
272671
|
-
}
|
|
272672
|
-
function withPointer2(cb) {
|
|
272673
|
-
const store = getStore2();
|
|
272674
|
-
const { index } = store;
|
|
272675
|
-
const pointer = {
|
|
272676
|
-
get() {
|
|
272677
|
-
return store.hooks[index];
|
|
272678
|
-
},
|
|
272679
|
-
set(value4) {
|
|
272680
|
-
store.hooks[index] = value4;
|
|
272681
|
-
},
|
|
272682
|
-
initialized: index in store.hooks
|
|
272683
|
-
};
|
|
272684
|
-
const returnValue = cb(pointer);
|
|
272685
|
-
store.index++;
|
|
272686
|
-
return returnValue;
|
|
272687
|
-
}
|
|
272688
|
-
function handleChange2() {
|
|
272689
|
-
getStore2().handleChange();
|
|
272690
|
-
}
|
|
272691
|
-
var effectScheduler2 = {
|
|
272692
|
-
queue(cb) {
|
|
272693
|
-
const store = getStore2();
|
|
272694
|
-
const { index } = store;
|
|
272695
|
-
store.hooksEffect.push(() => {
|
|
272696
|
-
store.hooksCleanup[index]?.();
|
|
272697
|
-
const cleanFn = cb(readline3());
|
|
272698
|
-
if (cleanFn != null && typeof cleanFn !== "function") {
|
|
272699
|
-
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
|
272700
|
-
}
|
|
272701
|
-
store.hooksCleanup[index] = cleanFn;
|
|
272702
|
-
});
|
|
272703
|
-
},
|
|
272704
|
-
run() {
|
|
272705
|
-
const store = getStore2();
|
|
272706
|
-
withUpdates2(() => {
|
|
272707
|
-
store.hooksEffect.forEach((effect) => {
|
|
272708
|
-
effect();
|
|
272709
|
-
});
|
|
272710
|
-
store.hooksEffect.length = 0;
|
|
272711
|
-
})();
|
|
272712
|
-
},
|
|
272713
|
-
clearAll() {
|
|
272714
|
-
const store = getStore2();
|
|
272715
|
-
store.hooksCleanup.forEach((cleanFn) => {
|
|
272716
|
-
cleanFn?.();
|
|
272717
|
-
});
|
|
272718
|
-
store.hooksEffect.length = 0;
|
|
272719
|
-
store.hooksCleanup.length = 0;
|
|
272720
|
-
}
|
|
272721
|
-
};
|
|
272722
|
-
|
|
272723
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
272724
|
-
function useState2(defaultValue) {
|
|
272725
|
-
return withPointer2((pointer) => {
|
|
272726
|
-
const setFn = (newValue) => {
|
|
272727
|
-
if (pointer.get() !== newValue) {
|
|
272728
|
-
pointer.set(newValue);
|
|
272729
|
-
handleChange2();
|
|
272730
|
-
}
|
|
272731
|
-
};
|
|
272732
|
-
if (pointer.initialized) {
|
|
272733
|
-
return [pointer.get(), setFn];
|
|
272734
|
-
}
|
|
272735
|
-
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
272736
|
-
pointer.set(value4);
|
|
272737
|
-
return [value4, setFn];
|
|
272738
|
-
});
|
|
272739
|
-
}
|
|
272740
|
-
|
|
272741
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
272742
|
-
function useEffect2(cb, depArray) {
|
|
272743
|
-
withPointer2((pointer) => {
|
|
272744
|
-
const oldDeps = pointer.get();
|
|
272745
|
-
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
|
272746
|
-
if (hasChanged) {
|
|
272747
|
-
effectScheduler2.queue(cb);
|
|
272748
|
-
}
|
|
272749
|
-
pointer.set(depArray);
|
|
272750
|
-
});
|
|
272751
|
-
}
|
|
272752
|
-
|
|
272753
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
272754
|
-
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
272755
|
-
|
|
272756
|
-
// ../../node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
|
|
272757
|
-
import process7 from "node:process";
|
|
272758
|
-
function isUnicodeSupported3() {
|
|
272759
|
-
if (process7.platform !== "win32") {
|
|
272760
|
-
return process7.env["TERM"] !== "linux";
|
|
272761
|
-
}
|
|
272762
|
-
return Boolean(process7.env["WT_SESSION"]) || Boolean(process7.env["TERMINUS_SUBLIME"]) || process7.env["ConEmuTask"] === "{cmd::Cmder}" || process7.env["TERM_PROGRAM"] === "Terminus-Sublime" || process7.env["TERM_PROGRAM"] === "vscode" || process7.env["TERM"] === "xterm-256color" || process7.env["TERM"] === "alacritty" || process7.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
|
272763
|
-
}
|
|
272764
|
-
var common2 = {
|
|
272765
|
-
circleQuestionMark: "(?)",
|
|
272766
|
-
questionMarkPrefix: "(?)",
|
|
272767
|
-
square: "█",
|
|
272768
|
-
squareDarkShade: "▓",
|
|
272769
|
-
squareMediumShade: "▒",
|
|
272770
|
-
squareLightShade: "░",
|
|
272771
|
-
squareTop: "▀",
|
|
272772
|
-
squareBottom: "▄",
|
|
272773
|
-
squareLeft: "▌",
|
|
272774
|
-
squareRight: "▐",
|
|
272775
|
-
squareCenter: "■",
|
|
272776
|
-
bullet: "●",
|
|
272777
|
-
dot: "․",
|
|
272778
|
-
ellipsis: "…",
|
|
272779
|
-
pointerSmall: "›",
|
|
272780
|
-
triangleUp: "▲",
|
|
272781
|
-
triangleUpSmall: "▴",
|
|
272782
|
-
triangleDown: "▼",
|
|
272783
|
-
triangleDownSmall: "▾",
|
|
272784
|
-
triangleLeftSmall: "◂",
|
|
272785
|
-
triangleRightSmall: "▸",
|
|
272786
|
-
home: "⌂",
|
|
272787
|
-
heart: "♥",
|
|
272788
|
-
musicNote: "♪",
|
|
272789
|
-
musicNoteBeamed: "♫",
|
|
272790
|
-
arrowUp: "↑",
|
|
272791
|
-
arrowDown: "↓",
|
|
272792
|
-
arrowLeft: "←",
|
|
272793
|
-
arrowRight: "→",
|
|
272794
|
-
arrowLeftRight: "↔",
|
|
272795
|
-
arrowUpDown: "↕",
|
|
272796
|
-
almostEqual: "≈",
|
|
272797
|
-
notEqual: "≠",
|
|
272798
|
-
lessOrEqual: "≤",
|
|
272799
|
-
greaterOrEqual: "≥",
|
|
272800
|
-
identical: "≡",
|
|
272801
|
-
infinity: "∞",
|
|
272802
|
-
subscriptZero: "₀",
|
|
272803
|
-
subscriptOne: "₁",
|
|
272804
|
-
subscriptTwo: "₂",
|
|
272805
|
-
subscriptThree: "₃",
|
|
272806
|
-
subscriptFour: "₄",
|
|
272807
|
-
subscriptFive: "₅",
|
|
272808
|
-
subscriptSix: "₆",
|
|
272809
|
-
subscriptSeven: "₇",
|
|
272810
|
-
subscriptEight: "₈",
|
|
272811
|
-
subscriptNine: "₉",
|
|
272812
|
-
oneHalf: "½",
|
|
272813
|
-
oneThird: "⅓",
|
|
272814
|
-
oneQuarter: "¼",
|
|
272815
|
-
oneFifth: "⅕",
|
|
272816
|
-
oneSixth: "⅙",
|
|
272817
|
-
oneEighth: "⅛",
|
|
272818
|
-
twoThirds: "⅔",
|
|
272819
|
-
twoFifths: "⅖",
|
|
272820
|
-
threeQuarters: "¾",
|
|
272821
|
-
threeFifths: "⅗",
|
|
272822
|
-
threeEighths: "⅜",
|
|
272823
|
-
fourFifths: "⅘",
|
|
272824
|
-
fiveSixths: "⅚",
|
|
272825
|
-
fiveEighths: "⅝",
|
|
272826
|
-
sevenEighths: "⅞",
|
|
272827
|
-
line: "─",
|
|
272828
|
-
lineBold: "━",
|
|
272829
|
-
lineDouble: "═",
|
|
272830
|
-
lineDashed0: "┄",
|
|
272831
|
-
lineDashed1: "┅",
|
|
272832
|
-
lineDashed2: "┈",
|
|
272833
|
-
lineDashed3: "┉",
|
|
272834
|
-
lineDashed4: "╌",
|
|
272835
|
-
lineDashed5: "╍",
|
|
272836
|
-
lineDashed6: "╴",
|
|
272837
|
-
lineDashed7: "╶",
|
|
272838
|
-
lineDashed8: "╸",
|
|
272839
|
-
lineDashed9: "╺",
|
|
272840
|
-
lineDashed10: "╼",
|
|
272841
|
-
lineDashed11: "╾",
|
|
272842
|
-
lineDashed12: "−",
|
|
272843
|
-
lineDashed13: "–",
|
|
272844
|
-
lineDashed14: "‐",
|
|
272845
|
-
lineDashed15: "⁃",
|
|
272846
|
-
lineVertical: "│",
|
|
272847
|
-
lineVerticalBold: "┃",
|
|
272848
|
-
lineVerticalDouble: "║",
|
|
272849
|
-
lineVerticalDashed0: "┆",
|
|
272850
|
-
lineVerticalDashed1: "┇",
|
|
272851
|
-
lineVerticalDashed2: "┊",
|
|
272852
|
-
lineVerticalDashed3: "┋",
|
|
272853
|
-
lineVerticalDashed4: "╎",
|
|
272854
|
-
lineVerticalDashed5: "╏",
|
|
272855
|
-
lineVerticalDashed6: "╵",
|
|
272856
|
-
lineVerticalDashed7: "╷",
|
|
272857
|
-
lineVerticalDashed8: "╹",
|
|
272858
|
-
lineVerticalDashed9: "╻",
|
|
272859
|
-
lineVerticalDashed10: "╽",
|
|
272860
|
-
lineVerticalDashed11: "╿",
|
|
272861
|
-
lineDownLeft: "┐",
|
|
272862
|
-
lineDownLeftArc: "╮",
|
|
272863
|
-
lineDownBoldLeftBold: "┓",
|
|
272864
|
-
lineDownBoldLeft: "┒",
|
|
272865
|
-
lineDownLeftBold: "┑",
|
|
272866
|
-
lineDownDoubleLeftDouble: "╗",
|
|
272867
|
-
lineDownDoubleLeft: "╖",
|
|
272868
|
-
lineDownLeftDouble: "╕",
|
|
272869
|
-
lineDownRight: "┌",
|
|
272870
|
-
lineDownRightArc: "╭",
|
|
272871
|
-
lineDownBoldRightBold: "┏",
|
|
272872
|
-
lineDownBoldRight: "┎",
|
|
272873
|
-
lineDownRightBold: "┍",
|
|
272874
|
-
lineDownDoubleRightDouble: "╔",
|
|
272875
|
-
lineDownDoubleRight: "╓",
|
|
272876
|
-
lineDownRightDouble: "╒",
|
|
272877
|
-
lineUpLeft: "┘",
|
|
272878
|
-
lineUpLeftArc: "╯",
|
|
272879
|
-
lineUpBoldLeftBold: "┛",
|
|
272880
|
-
lineUpBoldLeft: "┚",
|
|
272881
|
-
lineUpLeftBold: "┙",
|
|
272882
|
-
lineUpDoubleLeftDouble: "╝",
|
|
272883
|
-
lineUpDoubleLeft: "╜",
|
|
272884
|
-
lineUpLeftDouble: "╛",
|
|
272885
|
-
lineUpRight: "└",
|
|
272886
|
-
lineUpRightArc: "╰",
|
|
272887
|
-
lineUpBoldRightBold: "┗",
|
|
272888
|
-
lineUpBoldRight: "┖",
|
|
272889
|
-
lineUpRightBold: "┕",
|
|
272890
|
-
lineUpDoubleRightDouble: "╚",
|
|
272891
|
-
lineUpDoubleRight: "╙",
|
|
272892
|
-
lineUpRightDouble: "╘",
|
|
272893
|
-
lineUpDownLeft: "┤",
|
|
272894
|
-
lineUpBoldDownBoldLeftBold: "┫",
|
|
272895
|
-
lineUpBoldDownBoldLeft: "┨",
|
|
272896
|
-
lineUpDownLeftBold: "┥",
|
|
272897
|
-
lineUpBoldDownLeftBold: "┩",
|
|
272898
|
-
lineUpDownBoldLeftBold: "┪",
|
|
272899
|
-
lineUpDownBoldLeft: "┧",
|
|
272900
|
-
lineUpBoldDownLeft: "┦",
|
|
272901
|
-
lineUpDoubleDownDoubleLeftDouble: "╣",
|
|
272902
|
-
lineUpDoubleDownDoubleLeft: "╢",
|
|
272903
|
-
lineUpDownLeftDouble: "╡",
|
|
272904
|
-
lineUpDownRight: "├",
|
|
272905
|
-
lineUpBoldDownBoldRightBold: "┣",
|
|
272906
|
-
lineUpBoldDownBoldRight: "┠",
|
|
272907
|
-
lineUpDownRightBold: "┝",
|
|
272908
|
-
lineUpBoldDownRightBold: "┡",
|
|
272909
|
-
lineUpDownBoldRightBold: "┢",
|
|
272910
|
-
lineUpDownBoldRight: "┟",
|
|
272911
|
-
lineUpBoldDownRight: "┞",
|
|
272912
|
-
lineUpDoubleDownDoubleRightDouble: "╠",
|
|
272913
|
-
lineUpDoubleDownDoubleRight: "╟",
|
|
272914
|
-
lineUpDownRightDouble: "╞",
|
|
272915
|
-
lineDownLeftRight: "┬",
|
|
272916
|
-
lineDownBoldLeftBoldRightBold: "┳",
|
|
272917
|
-
lineDownLeftBoldRightBold: "┯",
|
|
272918
|
-
lineDownBoldLeftRight: "┰",
|
|
272919
|
-
lineDownBoldLeftBoldRight: "┱",
|
|
272920
|
-
lineDownBoldLeftRightBold: "┲",
|
|
272921
|
-
lineDownLeftRightBold: "┮",
|
|
272922
|
-
lineDownLeftBoldRight: "┭",
|
|
272923
|
-
lineDownDoubleLeftDoubleRightDouble: "╦",
|
|
272924
|
-
lineDownDoubleLeftRight: "╥",
|
|
272925
|
-
lineDownLeftDoubleRightDouble: "╤",
|
|
272926
|
-
lineUpLeftRight: "┴",
|
|
272927
|
-
lineUpBoldLeftBoldRightBold: "┻",
|
|
272928
|
-
lineUpLeftBoldRightBold: "┷",
|
|
272929
|
-
lineUpBoldLeftRight: "┸",
|
|
272930
|
-
lineUpBoldLeftBoldRight: "┹",
|
|
272931
|
-
lineUpBoldLeftRightBold: "┺",
|
|
272932
|
-
lineUpLeftRightBold: "┶",
|
|
272933
|
-
lineUpLeftBoldRight: "┵",
|
|
272934
|
-
lineUpDoubleLeftDoubleRightDouble: "╩",
|
|
272935
|
-
lineUpDoubleLeftRight: "╨",
|
|
272936
|
-
lineUpLeftDoubleRightDouble: "╧",
|
|
272937
|
-
lineUpDownLeftRight: "┼",
|
|
272938
|
-
lineUpBoldDownBoldLeftBoldRightBold: "╋",
|
|
272939
|
-
lineUpDownBoldLeftBoldRightBold: "╈",
|
|
272940
|
-
lineUpBoldDownLeftBoldRightBold: "╇",
|
|
272941
|
-
lineUpBoldDownBoldLeftRightBold: "╊",
|
|
272942
|
-
lineUpBoldDownBoldLeftBoldRight: "╉",
|
|
272943
|
-
lineUpBoldDownLeftRight: "╀",
|
|
272944
|
-
lineUpDownBoldLeftRight: "╁",
|
|
272945
|
-
lineUpDownLeftBoldRight: "┽",
|
|
272946
|
-
lineUpDownLeftRightBold: "┾",
|
|
272947
|
-
lineUpBoldDownBoldLeftRight: "╂",
|
|
272948
|
-
lineUpDownLeftBoldRightBold: "┿",
|
|
272949
|
-
lineUpBoldDownLeftBoldRight: "╃",
|
|
272950
|
-
lineUpBoldDownLeftRightBold: "╄",
|
|
272951
|
-
lineUpDownBoldLeftBoldRight: "╅",
|
|
272952
|
-
lineUpDownBoldLeftRightBold: "╆",
|
|
272953
|
-
lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
|
|
272954
|
-
lineUpDoubleDownDoubleLeftRight: "╫",
|
|
272955
|
-
lineUpDownLeftDoubleRightDouble: "╪",
|
|
272956
|
-
lineCross: "╳",
|
|
272957
|
-
lineBackslash: "╲",
|
|
272958
|
-
lineSlash: "╱"
|
|
272959
|
-
};
|
|
272960
|
-
var specialMainSymbols2 = {
|
|
272961
|
-
tick: "✔",
|
|
272962
|
-
info: "ℹ",
|
|
272963
|
-
warning: "⚠",
|
|
272964
|
-
cross: "✘",
|
|
272965
|
-
squareSmall: "◻",
|
|
272966
|
-
squareSmallFilled: "◼",
|
|
272967
|
-
circle: "◯",
|
|
272968
|
-
circleFilled: "◉",
|
|
272969
|
-
circleDotted: "◌",
|
|
272970
|
-
circleDouble: "◎",
|
|
272971
|
-
circleCircle: "ⓞ",
|
|
272972
|
-
circleCross: "ⓧ",
|
|
272973
|
-
circlePipe: "Ⓘ",
|
|
272974
|
-
radioOn: "◉",
|
|
272975
|
-
radioOff: "◯",
|
|
272976
|
-
checkboxOn: "☒",
|
|
272977
|
-
checkboxOff: "☐",
|
|
272978
|
-
checkboxCircleOn: "ⓧ",
|
|
272979
|
-
checkboxCircleOff: "Ⓘ",
|
|
272980
|
-
pointer: "❯",
|
|
272981
|
-
triangleUpOutline: "△",
|
|
272982
|
-
triangleLeft: "◀",
|
|
272983
|
-
triangleRight: "▶",
|
|
272984
|
-
lozenge: "◆",
|
|
272985
|
-
lozengeOutline: "◇",
|
|
272986
|
-
hamburger: "☰",
|
|
272987
|
-
smiley: "㋡",
|
|
272988
|
-
mustache: "෴",
|
|
272989
|
-
star: "★",
|
|
272990
|
-
play: "▶",
|
|
272991
|
-
nodejs: "⬢",
|
|
272992
|
-
oneSeventh: "⅐",
|
|
272993
|
-
oneNinth: "⅑",
|
|
272994
|
-
oneTenth: "⅒"
|
|
272995
|
-
};
|
|
272996
|
-
var specialFallbackSymbols2 = {
|
|
272997
|
-
tick: "√",
|
|
272998
|
-
info: "i",
|
|
272999
|
-
warning: "‼",
|
|
273000
|
-
cross: "×",
|
|
273001
|
-
squareSmall: "□",
|
|
273002
|
-
squareSmallFilled: "■",
|
|
273003
|
-
circle: "( )",
|
|
273004
|
-
circleFilled: "(*)",
|
|
273005
|
-
circleDotted: "( )",
|
|
273006
|
-
circleDouble: "( )",
|
|
273007
|
-
circleCircle: "(○)",
|
|
273008
|
-
circleCross: "(×)",
|
|
273009
|
-
circlePipe: "(│)",
|
|
273010
|
-
radioOn: "(*)",
|
|
273011
|
-
radioOff: "( )",
|
|
273012
|
-
checkboxOn: "[×]",
|
|
273013
|
-
checkboxOff: "[ ]",
|
|
273014
|
-
checkboxCircleOn: "(×)",
|
|
273015
|
-
checkboxCircleOff: "( )",
|
|
273016
|
-
pointer: ">",
|
|
273017
|
-
triangleUpOutline: "∆",
|
|
273018
|
-
triangleLeft: "◄",
|
|
273019
|
-
triangleRight: "►",
|
|
273020
|
-
lozenge: "♦",
|
|
273021
|
-
lozengeOutline: "◊",
|
|
273022
|
-
hamburger: "≡",
|
|
273023
|
-
smiley: "☺",
|
|
273024
|
-
mustache: "┌─┐",
|
|
273025
|
-
star: "✶",
|
|
273026
|
-
play: "►",
|
|
273027
|
-
nodejs: "♦",
|
|
273028
|
-
oneSeventh: "1/7",
|
|
273029
|
-
oneNinth: "1/9",
|
|
273030
|
-
oneTenth: "1/10"
|
|
273031
|
-
};
|
|
273032
|
-
var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
|
|
273033
|
-
var fallbackSymbols2 = {
|
|
273034
|
-
...common2,
|
|
273035
|
-
...specialFallbackSymbols2
|
|
273036
|
-
};
|
|
273037
|
-
var shouldUseMain2 = isUnicodeSupported3();
|
|
273038
|
-
var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
|
|
273039
|
-
var esm_default3 = figures2;
|
|
273040
|
-
var replacements2 = Object.entries(specialMainSymbols2);
|
|
273041
|
-
|
|
273042
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
273043
|
-
var defaultTheme2 = {
|
|
273044
|
-
prefix: {
|
|
273045
|
-
idle: import_yoctocolors_cjs4.default.blue("?"),
|
|
273046
|
-
done: import_yoctocolors_cjs4.default.green(esm_default3.tick)
|
|
273047
|
-
},
|
|
273048
|
-
spinner: {
|
|
273049
|
-
interval: 80,
|
|
273050
|
-
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
|
|
273051
|
-
},
|
|
273052
|
-
style: {
|
|
273053
|
-
answer: import_yoctocolors_cjs4.default.cyan,
|
|
273054
|
-
message: import_yoctocolors_cjs4.default.bold,
|
|
273055
|
-
error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
|
|
273056
|
-
defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
|
|
273057
|
-
help: import_yoctocolors_cjs4.default.dim,
|
|
273058
|
-
highlight: import_yoctocolors_cjs4.default.cyan,
|
|
273059
|
-
key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
|
|
273060
|
-
}
|
|
273061
|
-
};
|
|
273062
|
-
|
|
273063
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
273064
|
-
function isPlainObject3(value4) {
|
|
273065
|
-
if (typeof value4 !== "object" || value4 === null)
|
|
273066
|
-
return false;
|
|
273067
|
-
let proto = value4;
|
|
273068
|
-
while (Object.getPrototypeOf(proto) !== null) {
|
|
273069
|
-
proto = Object.getPrototypeOf(proto);
|
|
273070
|
-
}
|
|
273071
|
-
return Object.getPrototypeOf(value4) === proto;
|
|
273072
|
-
}
|
|
273073
|
-
function deepMerge3(...objects) {
|
|
273074
|
-
const output = {};
|
|
273075
|
-
for (const obj of objects) {
|
|
273076
|
-
for (const [key2, value4] of Object.entries(obj)) {
|
|
273077
|
-
const prevValue = output[key2];
|
|
273078
|
-
output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
|
|
273079
|
-
}
|
|
273080
|
-
}
|
|
273081
|
-
return output;
|
|
273082
|
-
}
|
|
273083
|
-
function makeTheme2(...themes) {
|
|
273084
|
-
const themesToMerge = [
|
|
273085
|
-
defaultTheme2,
|
|
273086
|
-
...themes.filter((theme) => theme != null)
|
|
273087
|
-
];
|
|
273088
|
-
return deepMerge3(...themesToMerge);
|
|
273089
|
-
}
|
|
273090
|
-
|
|
273091
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
273092
|
-
function usePrefix2({ status = "idle", theme }) {
|
|
273093
|
-
const [showLoader, setShowLoader] = useState2(false);
|
|
273094
|
-
const [tick, setTick] = useState2(0);
|
|
273095
|
-
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
|
273096
|
-
useEffect2(() => {
|
|
273097
|
-
if (status === "loading") {
|
|
273098
|
-
let tickInterval;
|
|
273099
|
-
let inc = -1;
|
|
273100
|
-
const delayTimeout = setTimeout(AsyncResource5.bind(() => {
|
|
273101
|
-
setShowLoader(true);
|
|
273102
|
-
tickInterval = setInterval(AsyncResource5.bind(() => {
|
|
273103
|
-
inc = inc + 1;
|
|
273104
|
-
setTick(inc % spinner2.frames.length);
|
|
273105
|
-
}), spinner2.interval);
|
|
273106
|
-
}), 300);
|
|
273107
|
-
return () => {
|
|
273108
|
-
clearTimeout(delayTimeout);
|
|
273109
|
-
clearInterval(tickInterval);
|
|
273110
|
-
};
|
|
273111
|
-
} else {
|
|
273112
|
-
setShowLoader(false);
|
|
273113
|
-
}
|
|
273114
|
-
}, [status]);
|
|
273115
|
-
if (showLoader) {
|
|
273116
|
-
return spinner2.frames[tick];
|
|
273117
|
-
}
|
|
273118
|
-
const iconName = status === "loading" ? "idle" : status;
|
|
273119
|
-
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
273120
|
-
}
|
|
273121
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
273122
|
-
function useRef2(val) {
|
|
273123
|
-
return useState2({ current: val })[0];
|
|
273124
|
-
}
|
|
273125
|
-
|
|
273126
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
273127
|
-
function useKeypress2(userHandler) {
|
|
273128
|
-
const signal = useRef2(userHandler);
|
|
273129
|
-
signal.current = userHandler;
|
|
273130
|
-
useEffect2((rl) => {
|
|
273131
|
-
let ignore = false;
|
|
273132
|
-
const handler = withUpdates2((_input, event) => {
|
|
273133
|
-
if (ignore)
|
|
273134
|
-
return;
|
|
273135
|
-
signal.current(event, rl);
|
|
273136
|
-
});
|
|
273137
|
-
rl.input.on("keypress", handler);
|
|
273138
|
-
return () => {
|
|
273139
|
-
ignore = true;
|
|
273140
|
-
rl.input.removeListener("keypress", handler);
|
|
273141
|
-
};
|
|
273142
|
-
}, []);
|
|
273143
|
-
}
|
|
273144
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
273145
|
-
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
|
273146
|
-
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
|
273147
|
-
function breakLines2(content, width) {
|
|
273148
|
-
return content.split(`
|
|
273149
|
-
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
|
273150
|
-
`).map((str) => str.trimEnd())).join(`
|
|
273151
|
-
`);
|
|
273152
|
-
}
|
|
273153
|
-
function readlineWidth2() {
|
|
273154
|
-
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
273155
|
-
}
|
|
273156
|
-
|
|
273157
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
273158
|
-
var import_mute_stream2 = __toESM(require_lib13(), 1);
|
|
273159
|
-
init_mjs();
|
|
273160
|
-
import * as readline4 from "node:readline";
|
|
273161
|
-
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
|
273162
|
-
|
|
273163
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
273164
|
-
var import_strip_ansi2 = __toESM(require_strip_ansi(), 1);
|
|
273165
|
-
var import_ansi_escapes3 = __toESM(require_ansi_escapes2(), 1);
|
|
273166
|
-
var height2 = (content) => content.split(`
|
|
273167
|
-
`).length;
|
|
273168
|
-
var lastLine2 = (content) => content.split(`
|
|
273169
|
-
`).pop() ?? "";
|
|
273170
|
-
function cursorDown2(n6) {
|
|
273171
|
-
return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
|
|
273172
|
-
}
|
|
273173
|
-
|
|
273174
|
-
class ScreenManager2 {
|
|
273175
|
-
rl;
|
|
273176
|
-
height = 0;
|
|
273177
|
-
extraLinesUnderPrompt = 0;
|
|
273178
|
-
cursorPos;
|
|
273179
|
-
constructor(rl) {
|
|
273180
|
-
this.rl = rl;
|
|
273181
|
-
this.rl = rl;
|
|
273182
|
-
this.cursorPos = rl.getCursorPos();
|
|
273183
|
-
}
|
|
273184
|
-
write(content) {
|
|
273185
|
-
this.rl.output.unmute();
|
|
273186
|
-
this.rl.output.write(content);
|
|
273187
|
-
this.rl.output.mute();
|
|
273188
|
-
}
|
|
273189
|
-
render(content, bottomContent = "") {
|
|
273190
|
-
const promptLine = lastLine2(content);
|
|
273191
|
-
const rawPromptLine = import_strip_ansi2.default(promptLine);
|
|
273192
|
-
let prompt = rawPromptLine;
|
|
273193
|
-
if (this.rl.line.length > 0) {
|
|
273194
|
-
prompt = prompt.slice(0, -this.rl.line.length);
|
|
273195
|
-
}
|
|
273196
|
-
this.rl.setPrompt(prompt);
|
|
273197
|
-
this.cursorPos = this.rl.getCursorPos();
|
|
273198
|
-
const width = readlineWidth2();
|
|
273199
|
-
content = breakLines2(content, width);
|
|
273200
|
-
bottomContent = breakLines2(bottomContent, width);
|
|
273201
|
-
if (rawPromptLine.length % width === 0) {
|
|
273202
|
-
content += `
|
|
273203
|
-
`;
|
|
273204
|
-
}
|
|
273205
|
-
let output = content + (bottomContent ? `
|
|
273206
|
-
` + bottomContent : "");
|
|
273207
|
-
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
273208
|
-
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
|
273209
|
-
if (bottomContentHeight > 0)
|
|
273210
|
-
output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
|
|
273211
|
-
output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
|
|
273212
|
-
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
|
|
273213
|
-
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
273214
|
-
this.height = height2(output);
|
|
273215
|
-
}
|
|
273216
|
-
checkCursorPos() {
|
|
273217
|
-
const cursorPos = this.rl.getCursorPos();
|
|
273218
|
-
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
273219
|
-
this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
|
|
273220
|
-
this.cursorPos = cursorPos;
|
|
273221
|
-
}
|
|
273222
|
-
}
|
|
273223
|
-
done({ clearContent }) {
|
|
273224
|
-
this.rl.setPrompt("");
|
|
273225
|
-
let output = cursorDown2(this.extraLinesUnderPrompt);
|
|
273226
|
-
output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
|
|
273227
|
-
`;
|
|
273228
|
-
output += import_ansi_escapes3.default.cursorShow;
|
|
273229
|
-
this.write(output);
|
|
273230
|
-
this.rl.close();
|
|
273231
|
-
}
|
|
273232
|
-
}
|
|
273233
|
-
|
|
273234
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
273235
|
-
class PromisePolyfill2 extends Promise {
|
|
273236
|
-
static withResolver() {
|
|
273237
|
-
let resolve4;
|
|
273238
|
-
let reject;
|
|
273239
|
-
const promise = new Promise((res, rej) => {
|
|
273240
|
-
resolve4 = res;
|
|
273241
|
-
reject = rej;
|
|
273242
|
-
});
|
|
273243
|
-
return { promise, resolve: resolve4, reject };
|
|
273244
|
-
}
|
|
273245
|
-
}
|
|
273246
|
-
|
|
273247
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
273248
|
-
function getCallSites2() {
|
|
273249
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
|
273250
|
-
try {
|
|
273251
|
-
let result = [];
|
|
273252
|
-
Error.prepareStackTrace = (_5, callSites) => {
|
|
273253
|
-
const callSitesWithoutCurrent = callSites.slice(1);
|
|
273254
|
-
result = callSitesWithoutCurrent;
|
|
273255
|
-
return callSitesWithoutCurrent;
|
|
273256
|
-
};
|
|
273257
|
-
new Error().stack;
|
|
273258
|
-
return result;
|
|
273259
|
-
} finally {
|
|
273260
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
|
273261
|
-
}
|
|
273262
|
-
}
|
|
273263
|
-
function createPrompt2(view) {
|
|
273264
|
-
const callSites = getCallSites2();
|
|
273265
|
-
const callerFilename = callSites[1]?.getFileName?.();
|
|
273266
|
-
const prompt = (config4, context = {}) => {
|
|
273267
|
-
const { input = process.stdin, signal } = context;
|
|
273268
|
-
const cleanups = new Set;
|
|
273269
|
-
const output = new import_mute_stream2.default;
|
|
273270
|
-
output.pipe(context.output ?? process.stdout);
|
|
273271
|
-
const rl = readline4.createInterface({
|
|
273272
|
-
terminal: true,
|
|
273273
|
-
input,
|
|
273274
|
-
output
|
|
273275
|
-
});
|
|
273276
|
-
const screen = new ScreenManager2(rl);
|
|
273277
|
-
const { promise, resolve: resolve4, reject } = PromisePolyfill2.withResolver();
|
|
273278
|
-
const cancel4 = () => reject(new CancelPromptError2);
|
|
273279
|
-
if (signal) {
|
|
273280
|
-
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
|
273281
|
-
if (signal.aborted) {
|
|
273282
|
-
abort();
|
|
273283
|
-
return Object.assign(promise, { cancel: cancel4 });
|
|
273284
|
-
}
|
|
273285
|
-
signal.addEventListener("abort", abort);
|
|
273286
|
-
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
273287
|
-
}
|
|
273288
|
-
cleanups.add(onExit((code2, signal2) => {
|
|
273289
|
-
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
|
273290
|
-
}));
|
|
273291
|
-
const checkCursorPos = () => screen.checkCursorPos();
|
|
273292
|
-
rl.input.on("keypress", checkCursorPos);
|
|
273293
|
-
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
273294
|
-
return withHooks2(rl, (cycle) => {
|
|
273295
|
-
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
|
273296
|
-
rl.on("close", hooksCleanup);
|
|
273297
|
-
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
|
273298
|
-
cycle(() => {
|
|
273299
|
-
try {
|
|
273300
|
-
const nextView = view(config4, (value4) => {
|
|
273301
|
-
setImmediate(() => resolve4(value4));
|
|
273302
|
-
});
|
|
273303
|
-
if (nextView === undefined) {
|
|
273304
|
-
throw new Error(`Prompt functions must return a string.
|
|
273305
|
-
at ${callerFilename}`);
|
|
273306
|
-
}
|
|
273307
|
-
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
|
273308
|
-
screen.render(content, bottomContent);
|
|
273309
|
-
effectScheduler2.run();
|
|
273310
|
-
} catch (error5) {
|
|
273311
|
-
reject(error5);
|
|
273312
|
-
}
|
|
273313
|
-
});
|
|
273314
|
-
return Object.assign(promise.then((answer) => {
|
|
273315
|
-
effectScheduler2.clearAll();
|
|
273316
|
-
return answer;
|
|
273317
|
-
}, (error5) => {
|
|
273318
|
-
effectScheduler2.clearAll();
|
|
273319
|
-
throw error5;
|
|
273320
|
-
}).finally(() => {
|
|
273321
|
-
cleanups.forEach((cleanup) => cleanup());
|
|
273322
|
-
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
273323
|
-
output.end();
|
|
273324
|
-
}).then(() => promise), { cancel: cancel4 });
|
|
273325
|
-
});
|
|
273326
|
-
};
|
|
273327
|
-
return prompt;
|
|
273328
|
-
}
|
|
273329
272588
|
// ../../node_modules/@inquirer/confirm/dist/esm/index.js
|
|
273330
272589
|
function getBooleanValue(value4, defaultValue) {
|
|
273331
272590
|
let answer = defaultValue !== false;
|
|
@@ -273338,19 +272597,19 @@ function getBooleanValue(value4, defaultValue) {
|
|
|
273338
272597
|
function boolToString(value4) {
|
|
273339
272598
|
return value4 ? "Yes" : "No";
|
|
273340
272599
|
}
|
|
273341
|
-
var
|
|
272600
|
+
var esm_default3 = createPrompt((config4, done) => {
|
|
273342
272601
|
const { transformer = boolToString } = config4;
|
|
273343
|
-
const [status, setStatus] =
|
|
273344
|
-
const [value4, setValue] =
|
|
273345
|
-
const theme =
|
|
273346
|
-
const prefix =
|
|
273347
|
-
|
|
273348
|
-
if (
|
|
272602
|
+
const [status, setStatus] = useState("idle");
|
|
272603
|
+
const [value4, setValue] = useState("");
|
|
272604
|
+
const theme = makeTheme(config4.theme);
|
|
272605
|
+
const prefix = usePrefix({ status, theme });
|
|
272606
|
+
useKeypress((key2, rl) => {
|
|
272607
|
+
if (isEnterKey(key2)) {
|
|
273349
272608
|
const answer = getBooleanValue(value4, config4.default);
|
|
273350
272609
|
setValue(transformer(answer));
|
|
273351
272610
|
setStatus("done");
|
|
273352
272611
|
done(answer);
|
|
273353
|
-
} else if (
|
|
272612
|
+
} else if (key2.name === "tab") {
|
|
273354
272613
|
const answer = boolToString(!getBooleanValue(value4, config4.default));
|
|
273355
272614
|
rl.clearLine(0);
|
|
273356
272615
|
rl.write(answer);
|
|
@@ -273374,19 +272633,19 @@ var esm_default4 = createPrompt2((config4, done) => {
|
|
|
273374
272633
|
var inputTheme = {
|
|
273375
272634
|
validationFailureMode: "keep"
|
|
273376
272635
|
};
|
|
273377
|
-
var
|
|
272636
|
+
var esm_default4 = createPrompt((config4, done) => {
|
|
273378
272637
|
const { required, validate: validate4 = () => true } = config4;
|
|
273379
|
-
const theme =
|
|
273380
|
-
const [status, setStatus] =
|
|
273381
|
-
const [defaultValue = "", setDefaultValue] =
|
|
273382
|
-
const [errorMsg, setError] =
|
|
273383
|
-
const [value4, setValue] =
|
|
273384
|
-
const prefix =
|
|
273385
|
-
|
|
272638
|
+
const theme = makeTheme(inputTheme, config4.theme);
|
|
272639
|
+
const [status, setStatus] = useState("idle");
|
|
272640
|
+
const [defaultValue = "", setDefaultValue] = useState(config4.default);
|
|
272641
|
+
const [errorMsg, setError] = useState();
|
|
272642
|
+
const [value4, setValue] = useState("");
|
|
272643
|
+
const prefix = usePrefix({ status, theme });
|
|
272644
|
+
useKeypress(async (key2, rl) => {
|
|
273386
272645
|
if (status !== "idle") {
|
|
273387
272646
|
return;
|
|
273388
272647
|
}
|
|
273389
|
-
if (
|
|
272648
|
+
if (isEnterKey(key2)) {
|
|
273390
272649
|
const answer = value4 || defaultValue;
|
|
273391
272650
|
setStatus("loading");
|
|
273392
272651
|
const isValid2 = required && !answer ? "You must provide a value" : await validate4(answer);
|
|
@@ -273403,9 +272662,9 @@ var esm_default5 = createPrompt2((config4, done) => {
|
|
|
273403
272662
|
setError(isValid2 || "You must provide a valid value");
|
|
273404
272663
|
setStatus("idle");
|
|
273405
272664
|
}
|
|
273406
|
-
} else if (
|
|
272665
|
+
} else if (isBackspaceKey(key2) && !value4) {
|
|
273407
272666
|
setDefaultValue(undefined);
|
|
273408
|
-
} else if (
|
|
272667
|
+
} else if (key2.name === "tab" && !value4) {
|
|
273409
272668
|
setDefaultValue(undefined);
|
|
273410
272669
|
rl.clearLine(0);
|
|
273411
272670
|
rl.write(defaultValue);
|
|
@@ -273437,19 +272696,19 @@ var esm_default5 = createPrompt2((config4, done) => {
|
|
|
273437
272696
|
});
|
|
273438
272697
|
|
|
273439
272698
|
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
|
273440
|
-
var
|
|
273441
|
-
var
|
|
272699
|
+
var import_ansi_escapes3 = __toESM(require_ansi_escapes3(), 1);
|
|
272700
|
+
var esm_default5 = createPrompt((config4, done) => {
|
|
273442
272701
|
const { validate: validate4 = () => true } = config4;
|
|
273443
|
-
const theme =
|
|
273444
|
-
const [status, setStatus] =
|
|
273445
|
-
const [errorMsg, setError] =
|
|
273446
|
-
const [value4, setValue] =
|
|
273447
|
-
const prefix =
|
|
273448
|
-
|
|
272702
|
+
const theme = makeTheme(config4.theme);
|
|
272703
|
+
const [status, setStatus] = useState("idle");
|
|
272704
|
+
const [errorMsg, setError] = useState();
|
|
272705
|
+
const [value4, setValue] = useState("");
|
|
272706
|
+
const prefix = usePrefix({ status, theme });
|
|
272707
|
+
useKeypress(async (key2, rl) => {
|
|
273449
272708
|
if (status !== "idle") {
|
|
273450
272709
|
return;
|
|
273451
272710
|
}
|
|
273452
|
-
if (
|
|
272711
|
+
if (isEnterKey(key2)) {
|
|
273453
272712
|
const answer = value4;
|
|
273454
272713
|
setStatus("loading");
|
|
273455
272714
|
const isValid2 = await validate4(answer);
|
|
@@ -273474,7 +272733,7 @@ var esm_default6 = createPrompt2((config4, done) => {
|
|
|
273474
272733
|
const maskChar = typeof config4.mask === "string" ? config4.mask : "*";
|
|
273475
272734
|
formattedValue = maskChar.repeat(value4.length);
|
|
273476
272735
|
} else if (status !== "done") {
|
|
273477
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
|
272736
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
|
|
273478
272737
|
}
|
|
273479
272738
|
if (status === "done") {
|
|
273480
272739
|
formattedValue = theme.style.answer(formattedValue);
|
|
@@ -273494,7 +272753,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273494
272753
|
return defaultAccessToken;
|
|
273495
272754
|
}
|
|
273496
272755
|
if (defaultAccessToken) {
|
|
273497
|
-
const keep = await
|
|
272756
|
+
const keep = await esm_default3({
|
|
273498
272757
|
message: "Do you want to use the existing application access token?",
|
|
273499
272758
|
default: true
|
|
273500
272759
|
});
|
|
@@ -273502,12 +272761,12 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273502
272761
|
return defaultAccessToken;
|
|
273503
272762
|
}
|
|
273504
272763
|
}
|
|
273505
|
-
const create2 = await
|
|
272764
|
+
const create2 = await esm_default3({
|
|
273506
272765
|
message: "Do you want to create a new application access token?",
|
|
273507
272766
|
default: false
|
|
273508
272767
|
});
|
|
273509
272768
|
if (create2) {
|
|
273510
|
-
const name2 = await
|
|
272769
|
+
const name2 = await esm_default4({
|
|
273511
272770
|
message: "How would you like to name this application access token?",
|
|
273512
272771
|
default: `SettleMint CLI (${Date.now()}${` ${"runner"}`})`,
|
|
273513
272772
|
required: true,
|
|
@@ -273571,7 +272830,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273571
272830
|
} catch (error5) {
|
|
273572
272831
|
}
|
|
273573
272832
|
}
|
|
273574
|
-
return
|
|
272833
|
+
return esm_default5({
|
|
273575
272834
|
message: "What is the application access token for your application in SettleMint?",
|
|
273576
272835
|
validate(value4) {
|
|
273577
272836
|
try {
|
|
@@ -273753,7 +273012,7 @@ async function instancePrompt(env2, accept) {
|
|
|
273753
273012
|
if (defaultPossible) {
|
|
273754
273013
|
return defaultInstance;
|
|
273755
273014
|
}
|
|
273756
|
-
return
|
|
273015
|
+
return esm_default4({
|
|
273757
273016
|
message: "What is the URL of your SettleMint instance?",
|
|
273758
273017
|
default: defaultInstance,
|
|
273759
273018
|
required: true,
|
|
@@ -274003,7 +273262,7 @@ function connectCommand() {
|
|
|
274003
273262
|
var package_default = {
|
|
274004
273263
|
name: "@settlemint/sdk-cli",
|
|
274005
273264
|
description: "SettleMint SDK, integrate SettleMint into your application with ease.",
|
|
274006
|
-
version: "0.7.
|
|
273265
|
+
version: "0.7.1-main12cc7b0",
|
|
274007
273266
|
type: "module",
|
|
274008
273267
|
private: false,
|
|
274009
273268
|
license: "FSL-1.1-MIT",
|
|
@@ -274050,12 +273309,12 @@ var package_default = {
|
|
|
274050
273309
|
slugify: "1.6.6",
|
|
274051
273310
|
yoctocolors: "2.1.1",
|
|
274052
273311
|
"@commander-js/extra-typings": "12.1.0",
|
|
274053
|
-
"@inquirer/confirm": "5.1.
|
|
274054
|
-
"@inquirer/input": "4.1.
|
|
274055
|
-
"@inquirer/password": "4.0.
|
|
273312
|
+
"@inquirer/confirm": "5.1.1",
|
|
273313
|
+
"@inquirer/input": "4.1.1",
|
|
273314
|
+
"@inquirer/password": "4.0.4",
|
|
274056
273315
|
"@inquirer/select": "4.0.4",
|
|
274057
|
-
"@settlemint/sdk-js": "0.7.
|
|
274058
|
-
"@settlemint/sdk-utils": "0.7.
|
|
273316
|
+
"@settlemint/sdk-js": "0.7.1-main12cc7b0",
|
|
273317
|
+
"@settlemint/sdk-utils": "0.7.1-main12cc7b0",
|
|
274059
273318
|
"get-tsconfig": "4.8.1",
|
|
274060
273319
|
giget: "1.2.3"
|
|
274061
273320
|
},
|
|
@@ -274075,7 +273334,7 @@ async function namePrompt(env2, argument) {
|
|
|
274075
273334
|
if (defaultInstance) {
|
|
274076
273335
|
return defaultInstance;
|
|
274077
273336
|
}
|
|
274078
|
-
return
|
|
273337
|
+
return esm_default4({
|
|
274079
273338
|
message: "What is the name of your new SettleMint project?",
|
|
274080
273339
|
default: defaultInstance,
|
|
274081
273340
|
required: true,
|
|
@@ -274331,7 +273590,7 @@ var basename2 = function(p5, extension) {
|
|
|
274331
273590
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
274332
273591
|
};
|
|
274333
273592
|
// ../../node_modules/defu/dist/defu.mjs
|
|
274334
|
-
function
|
|
273593
|
+
function isPlainObject3(value4) {
|
|
274335
273594
|
if (value4 === null || typeof value4 !== "object") {
|
|
274336
273595
|
return false;
|
|
274337
273596
|
}
|
|
@@ -274348,27 +273607,27 @@ function isPlainObject4(value4) {
|
|
|
274348
273607
|
return true;
|
|
274349
273608
|
}
|
|
274350
273609
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
274351
|
-
if (!
|
|
273610
|
+
if (!isPlainObject3(defaults2)) {
|
|
274352
273611
|
return _defu(baseObject, {}, namespace, merger);
|
|
274353
273612
|
}
|
|
274354
273613
|
const object = Object.assign({}, defaults2);
|
|
274355
|
-
for (const
|
|
274356
|
-
if (
|
|
273614
|
+
for (const key2 in baseObject) {
|
|
273615
|
+
if (key2 === "__proto__" || key2 === "constructor") {
|
|
274357
273616
|
continue;
|
|
274358
273617
|
}
|
|
274359
|
-
const value4 = baseObject[
|
|
273618
|
+
const value4 = baseObject[key2];
|
|
274360
273619
|
if (value4 === null || value4 === undefined) {
|
|
274361
273620
|
continue;
|
|
274362
273621
|
}
|
|
274363
|
-
if (merger && merger(object,
|
|
273622
|
+
if (merger && merger(object, key2, value4, namespace)) {
|
|
274364
273623
|
continue;
|
|
274365
273624
|
}
|
|
274366
|
-
if (Array.isArray(value4) && Array.isArray(object[
|
|
274367
|
-
object[
|
|
274368
|
-
} else if (
|
|
274369
|
-
object[
|
|
273625
|
+
if (Array.isArray(value4) && Array.isArray(object[key2])) {
|
|
273626
|
+
object[key2] = [...value4, ...object[key2]];
|
|
273627
|
+
} else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
|
|
273628
|
+
object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
|
|
274370
273629
|
} else {
|
|
274371
|
-
object[
|
|
273630
|
+
object[key2] = value4;
|
|
274372
273631
|
}
|
|
274373
273632
|
}
|
|
274374
273633
|
return object;
|
|
@@ -274377,15 +273636,15 @@ function createDefu(merger) {
|
|
|
274377
273636
|
return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
|
|
274378
273637
|
}
|
|
274379
273638
|
var defu = createDefu();
|
|
274380
|
-
var defuFn = createDefu((object,
|
|
274381
|
-
if (object[
|
|
274382
|
-
object[
|
|
273639
|
+
var defuFn = createDefu((object, key2, currentValue) => {
|
|
273640
|
+
if (object[key2] !== undefined && typeof currentValue === "function") {
|
|
273641
|
+
object[key2] = currentValue(object[key2]);
|
|
274383
273642
|
return true;
|
|
274384
273643
|
}
|
|
274385
273644
|
});
|
|
274386
|
-
var defuArrayFn = createDefu((object,
|
|
274387
|
-
if (Array.isArray(object[
|
|
274388
|
-
object[
|
|
273645
|
+
var defuArrayFn = createDefu((object, key2, currentValue) => {
|
|
273646
|
+
if (Array.isArray(object[key2]) && typeof currentValue === "function") {
|
|
273647
|
+
object[key2] = currentValue(object[key2]);
|
|
274389
273648
|
return true;
|
|
274390
273649
|
}
|
|
274391
273650
|
});
|
|
@@ -274608,11 +273867,11 @@ function cacheDirectory() {
|
|
|
274608
273867
|
}
|
|
274609
273868
|
function normalizeHeaders(headers = {}) {
|
|
274610
273869
|
const normalized = {};
|
|
274611
|
-
for (const [
|
|
273870
|
+
for (const [key2, value4] of Object.entries(headers)) {
|
|
274612
273871
|
if (!value4) {
|
|
274613
273872
|
continue;
|
|
274614
273873
|
}
|
|
274615
|
-
normalized[
|
|
273874
|
+
normalized[key2.toLowerCase()] = value4;
|
|
274616
273875
|
}
|
|
274617
273876
|
return normalized;
|
|
274618
273877
|
}
|
|
@@ -274874,7 +274133,7 @@ function createCommand2() {
|
|
|
274874
274133
|
await mkdir6(projectDir, { recursive: true });
|
|
274875
274134
|
}
|
|
274876
274135
|
if (!await isEmpty(projectDir)) {
|
|
274877
|
-
const confirmEmpty = await
|
|
274136
|
+
const confirmEmpty = await esm_default3({
|
|
274878
274137
|
message: `The folder ${projectDir} already exists. Do you want to empty it?`,
|
|
274879
274138
|
default: false
|
|
274880
274139
|
});
|
|
@@ -274932,7 +274191,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
274932
274191
|
return defaultPersonalAccessToken;
|
|
274933
274192
|
}
|
|
274934
274193
|
if (existingConfig && defaultPersonalAccessToken) {
|
|
274935
|
-
const useExisting = await
|
|
274194
|
+
const useExisting = await esm_default3({
|
|
274936
274195
|
message: `Do you want to use your existing personal access token for ${instance}?`,
|
|
274937
274196
|
default: true
|
|
274938
274197
|
});
|
|
@@ -274940,7 +274199,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
274940
274199
|
return defaultPersonalAccessToken;
|
|
274941
274200
|
}
|
|
274942
274201
|
}
|
|
274943
|
-
return
|
|
274202
|
+
return esm_default5({
|
|
274944
274203
|
message: "What is your personal access token in SettleMint?",
|
|
274945
274204
|
validate(value4) {
|
|
274946
274205
|
try {
|
|
@@ -275114,6 +274373,26 @@ function getActionLabel(action) {
|
|
|
275114
274373
|
return "deployed";
|
|
275115
274374
|
}
|
|
275116
274375
|
|
|
274376
|
+
// src/utils/get-app-or-personal-token.ts
|
|
274377
|
+
var getApplicationOrPersonalAccessToken = async ({
|
|
274378
|
+
env: env2,
|
|
274379
|
+
instance,
|
|
274380
|
+
prefer,
|
|
274381
|
+
allowFallback
|
|
274382
|
+
}) => {
|
|
274383
|
+
const applicationAccessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
|
274384
|
+
const personalAccessToken = (await getInstanceCredentials(instance))?.personalAccessToken;
|
|
274385
|
+
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
274386
|
+
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
274387
|
+
if (preferredToken) {
|
|
274388
|
+
return preferredToken;
|
|
274389
|
+
}
|
|
274390
|
+
if (allowFallback && fallbackToken) {
|
|
274391
|
+
return fallbackToken;
|
|
274392
|
+
}
|
|
274393
|
+
return prefer === "personal" ? missingPersonalAccessTokenError() : missingAccessTokenError(!!personalAccessToken);
|
|
274394
|
+
};
|
|
274395
|
+
|
|
275117
274396
|
// src/utils/sanitize-command-name.ts
|
|
275118
274397
|
function sanitizeCommandName(name2) {
|
|
275119
274398
|
return name2.split(" ").join("-").toLowerCase();
|
|
@@ -275134,11 +274413,13 @@ ${createExamples(examples)}`).argument("<name>", `The ${type4} name`).option("-a
|
|
|
275134
274413
|
intro(`Creating ${type4} in the SettleMint platform`);
|
|
275135
274414
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
275136
274415
|
const env2 = await loadEnv2(false, !!prod);
|
|
275137
|
-
const instance =
|
|
275138
|
-
const accessToken =
|
|
275139
|
-
|
|
275140
|
-
|
|
275141
|
-
|
|
274416
|
+
const instance = await instancePrompt(env2, autoAccept);
|
|
274417
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
274418
|
+
env: env2,
|
|
274419
|
+
instance,
|
|
274420
|
+
prefer: usePersonalAccessToken ? "personal" : "application",
|
|
274421
|
+
allowFallback: false
|
|
274422
|
+
});
|
|
275142
274423
|
const settlemint = createSettleMintClient({
|
|
275143
274424
|
accessToken,
|
|
275144
274425
|
instance
|
|
@@ -275578,11 +274859,12 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275578
274859
|
...defaultArgs
|
|
275579
274860
|
}) => {
|
|
275580
274861
|
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
274862
|
+
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
275581
274863
|
const application = applicationId ?? env2.SETTLEMINT_APPLICATION;
|
|
275582
274864
|
if (!application) {
|
|
275583
274865
|
cancel2("No application found. Please specify an application or run `settlemint connect` to continue.");
|
|
275584
274866
|
}
|
|
275585
|
-
let networkId = blockchainNetworkId ?? (
|
|
274867
|
+
let networkId = blockchainNetworkId ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NETWORK : undefined);
|
|
275586
274868
|
if (!networkId) {
|
|
275587
274869
|
const networks = await settlemint.blockchainNetwork.list(application);
|
|
275588
274870
|
const network = await blockchainNetworkPrompt(env2, networks, acceptDefaults ?? false);
|
|
@@ -276079,7 +275361,7 @@ function createCommand3() {
|
|
|
276079
275361
|
|
|
276080
275362
|
// src/commands/platform/prompts/delete-confirmation.prompt.ts
|
|
276081
275363
|
async function deleteConfirmationPrompt(itemDescription) {
|
|
276082
|
-
const confirmation = await
|
|
275364
|
+
const confirmation = await esm_default4({
|
|
276083
275365
|
message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
|
|
276084
275366
|
required: true,
|
|
276085
275367
|
validate(value4) {
|
|
@@ -276129,10 +275411,12 @@ ${createExamples([
|
|
|
276129
275411
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
276130
275412
|
const env2 = await loadEnv2(false, !!prod);
|
|
276131
275413
|
const instance = await instancePrompt(env2, autoAccept);
|
|
276132
|
-
const accessToken =
|
|
276133
|
-
|
|
276134
|
-
|
|
276135
|
-
|
|
275414
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
275415
|
+
env: env2,
|
|
275416
|
+
instance,
|
|
275417
|
+
prefer: usePersonalAccessToken ? "personal" : "application",
|
|
275418
|
+
allowFallback: false
|
|
275419
|
+
});
|
|
276136
275420
|
const settlemint = createSettleMintClient({
|
|
276137
275421
|
accessToken,
|
|
276138
275422
|
instance
|
|
@@ -276227,10 +275511,12 @@ ${createExamples([
|
|
|
276227
275511
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
276228
275512
|
const env2 = await loadEnv2(false, !!prod);
|
|
276229
275513
|
const instance = await instancePrompt(env2, autoAccept);
|
|
276230
|
-
const accessToken =
|
|
276231
|
-
|
|
276232
|
-
|
|
276233
|
-
|
|
275514
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
275515
|
+
env: env2,
|
|
275516
|
+
instance,
|
|
275517
|
+
prefer: usePersonalAccessToken ? "personal" : "application",
|
|
275518
|
+
allowFallback: false
|
|
275519
|
+
});
|
|
276234
275520
|
const settlemint = createSettleMintClient({
|
|
276235
275521
|
accessToken,
|
|
276236
275522
|
instance
|
|
@@ -276417,11 +275703,13 @@ function customDeploymentsUpdateCommand() {
|
|
|
276417
275703
|
if (!customDeploymentId) {
|
|
276418
275704
|
throw new Error("No custom deployment ID specified. Please provide it either via the --id flag or by setting the SETTLEMINT_CUSTOM_DEPLOYMENT environment variable");
|
|
276419
275705
|
}
|
|
276420
|
-
const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
|
276421
|
-
if (!accessToken) {
|
|
276422
|
-
return missingAccessTokenError();
|
|
276423
|
-
}
|
|
276424
275706
|
const instance = await instancePrompt(env2, true);
|
|
275707
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
275708
|
+
env: env2,
|
|
275709
|
+
instance,
|
|
275710
|
+
prefer: "application",
|
|
275711
|
+
allowFallback: false
|
|
275712
|
+
});
|
|
276425
275713
|
const settlemint = createSettleMintClient({
|
|
276426
275714
|
accessToken,
|
|
276427
275715
|
instance
|
|
@@ -276653,7 +275941,7 @@ function createCommand4() {
|
|
|
276653
275941
|
const targetDir = formatTargetDir(name2);
|
|
276654
275942
|
const projectDir = join7(process.cwd(), targetDir);
|
|
276655
275943
|
if (await exists2(projectDir) && !await isEmpty(projectDir)) {
|
|
276656
|
-
const confirmEmpty = await
|
|
275944
|
+
const confirmEmpty = await esm_default3({
|
|
276657
275945
|
message: `The folder ${projectDir} already exists. Do you want to delete it?`,
|
|
276658
275946
|
default: false
|
|
276659
275947
|
});
|
|
@@ -276691,11 +275979,11 @@ function createCommand4() {
|
|
|
276691
275979
|
|
|
276692
275980
|
// src/utils/passthrough-options.ts
|
|
276693
275981
|
function mapPassthroughOptions(options, command) {
|
|
276694
|
-
const optionArgs = Object.entries(options).map(([
|
|
275982
|
+
const optionArgs = Object.entries(options).map(([key2, value4]) => {
|
|
276695
275983
|
if (value4 === true) {
|
|
276696
|
-
return `--${
|
|
275984
|
+
return `--${key2}`;
|
|
276697
275985
|
}
|
|
276698
|
-
return `--${
|
|
275986
|
+
return `--${key2}=${value4}`;
|
|
276699
275987
|
});
|
|
276700
275988
|
return [...optionArgs, ...command.args];
|
|
276701
275989
|
}
|
|
@@ -276838,16 +276126,18 @@ function hardhatDeployRemoteCommand() {
|
|
|
276838
276126
|
}) => {
|
|
276839
276127
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
276840
276128
|
const env2 = await loadEnv(false, !!prod);
|
|
276841
|
-
const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
|
276842
|
-
if (!accessToken) {
|
|
276843
|
-
return missingAccessTokenError();
|
|
276844
|
-
}
|
|
276845
276129
|
const instance = await instancePrompt(env2, true);
|
|
276130
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276131
|
+
env: env2,
|
|
276132
|
+
instance,
|
|
276133
|
+
prefer: "application",
|
|
276134
|
+
allowFallback: true
|
|
276135
|
+
});
|
|
276846
276136
|
const settlemint = createSettleMintClient({
|
|
276847
276137
|
accessToken,
|
|
276848
276138
|
instance
|
|
276849
276139
|
});
|
|
276850
|
-
const nodeId = autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE :
|
|
276140
|
+
const nodeId = blockchainNodeId ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : undefined);
|
|
276851
276141
|
let node = undefined;
|
|
276852
276142
|
if (!nodeId) {
|
|
276853
276143
|
const nodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
|
|
@@ -276939,11 +276229,13 @@ function hardhatScriptRemoteCommand() {
|
|
|
276939
276229
|
cmd2.action(async ({ script, prod, blockchainNodeId, acceptDefaults, compile }) => {
|
|
276940
276230
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
276941
276231
|
const env2 = await loadEnv(false, !!prod);
|
|
276942
|
-
const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
|
276943
|
-
if (!accessToken) {
|
|
276944
|
-
return missingAccessTokenError();
|
|
276945
|
-
}
|
|
276946
276232
|
const instance = await instancePrompt(env2, true);
|
|
276233
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276234
|
+
env: env2,
|
|
276235
|
+
instance,
|
|
276236
|
+
prefer: "application",
|
|
276237
|
+
allowFallback: true
|
|
276238
|
+
});
|
|
276947
276239
|
const settlemint = createSettleMintClient({
|
|
276948
276240
|
accessToken,
|
|
276949
276241
|
instance
|
|
@@ -277006,7 +276298,7 @@ import { basename as basename4, join as join8 } from "node:path";
|
|
|
277006
276298
|
var composer = require_composer();
|
|
277007
276299
|
var Document = require_Document();
|
|
277008
276300
|
var Schema = require_Schema();
|
|
277009
|
-
var
|
|
276301
|
+
var errors2 = require_errors3();
|
|
277010
276302
|
var Alias = require_Alias();
|
|
277011
276303
|
var identity3 = require_identity();
|
|
277012
276304
|
var Pair = require_Pair();
|
|
@@ -277022,9 +276314,9 @@ var visit2 = require_visit();
|
|
|
277022
276314
|
var $Composer = composer.Composer;
|
|
277023
276315
|
var $Document = Document.Document;
|
|
277024
276316
|
var $Schema = Schema.Schema;
|
|
277025
|
-
var $YAMLError =
|
|
277026
|
-
var $YAMLParseError =
|
|
277027
|
-
var $YAMLWarning =
|
|
276317
|
+
var $YAMLError = errors2.YAMLError;
|
|
276318
|
+
var $YAMLParseError = errors2.YAMLParseError;
|
|
276319
|
+
var $YAMLWarning = errors2.YAMLWarning;
|
|
277028
276320
|
var $Alias = Alias.Alias;
|
|
277029
276321
|
var $isAlias = identity3.isAlias;
|
|
277030
276322
|
var $isCollection = identity3.isCollection;
|
|
@@ -277185,11 +276477,13 @@ function subgraphBuildCommand() {
|
|
|
277185
276477
|
return new Command2("build").description("Build the subgraph").option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").action(async ({ acceptDefaults, prod }) => {
|
|
277186
276478
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277187
276479
|
const env2 = await loadEnv(false, !!prod);
|
|
277188
|
-
const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
|
277189
|
-
if (!accessToken) {
|
|
277190
|
-
return missingAccessTokenError();
|
|
277191
|
-
}
|
|
277192
276480
|
const instance = await instancePrompt(env2, true);
|
|
276481
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276482
|
+
env: env2,
|
|
276483
|
+
instance,
|
|
276484
|
+
prefer: "application",
|
|
276485
|
+
allowFallback: false
|
|
276486
|
+
});
|
|
277193
276487
|
await subgraphSetup({
|
|
277194
276488
|
env: env2,
|
|
277195
276489
|
instance,
|
|
@@ -277210,11 +276504,13 @@ function subgraphCodegenCommand() {
|
|
|
277210
276504
|
return new Command2("codegen").option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").description("Codegen the subgraph types").action(async ({ acceptDefaults, prod }) => {
|
|
277211
276505
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277212
276506
|
const env2 = await loadEnv(false, !!prod);
|
|
277213
|
-
const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
|
277214
|
-
if (!accessToken) {
|
|
277215
|
-
return missingAccessTokenError();
|
|
277216
|
-
}
|
|
277217
276507
|
const instance = await instancePrompt(env2, true);
|
|
276508
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276509
|
+
env: env2,
|
|
276510
|
+
instance,
|
|
276511
|
+
prefer: "application",
|
|
276512
|
+
allowFallback: false
|
|
276513
|
+
});
|
|
277218
276514
|
await subgraphSetup({
|
|
277219
276515
|
env: env2,
|
|
277220
276516
|
instance,
|
|
@@ -277241,7 +276537,7 @@ async function subgraphNamePrompt2(defaultName, env2, accept, prod) {
|
|
|
277241
276537
|
}
|
|
277242
276538
|
return defaultSubgraphName;
|
|
277243
276539
|
}
|
|
277244
|
-
const subgraphName = await
|
|
276540
|
+
const subgraphName = await esm_default4({
|
|
277245
276541
|
message: "What is the name of your subgraph?",
|
|
277246
276542
|
default: defaultSubgraphName,
|
|
277247
276543
|
required: true
|
|
@@ -277264,11 +276560,13 @@ function subgraphDeployCommand() {
|
|
|
277264
276560
|
return new Command2("deploy").description("Deploy the subgraph").option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").argument("[subgraphName]", "The name of the subgraph to deploy (defaults to value in .env if not provided)").action(async (subgraphName, { prod, acceptDefaults }) => {
|
|
277265
276561
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277266
276562
|
const env2 = await loadEnv(false, !!prod);
|
|
277267
|
-
const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
|
277268
|
-
if (!accessToken) {
|
|
277269
|
-
return missingAccessTokenError();
|
|
277270
|
-
}
|
|
277271
276563
|
const instance = await instancePrompt(env2, true);
|
|
276564
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276565
|
+
env: env2,
|
|
276566
|
+
instance,
|
|
276567
|
+
prefer: "application",
|
|
276568
|
+
allowFallback: false
|
|
276569
|
+
});
|
|
277272
276570
|
const theGraphMiddleware = await subgraphSetup({
|
|
277273
276571
|
env: env2,
|
|
277274
276572
|
instance,
|
|
@@ -277360,4 +276658,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
|
|
|
277360
276658
|
cancel2(reason);
|
|
277361
276659
|
});
|
|
277362
276660
|
|
|
277363
|
-
//# debugId=
|
|
276661
|
+
//# debugId=A16E825A66BA4BE864756E2164756E21
|