zefiro 0.1.7 → 0.2.0
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/App-d0tbxdwk.js +24213 -0
- package/dist/cli-t75z78rh.js +601 -0
- package/dist/cli.js +64 -648
- package/dist/devtools-009bckyk.js +2910 -0
- package/package.json +10 -8
package/dist/cli.js
CHANGED
|
@@ -8,6 +8,11 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
registerAuthCommands
|
|
10
10
|
} from "./cli-2pkertsv.js";
|
|
11
|
+
import {
|
|
12
|
+
eastAsianWidth,
|
|
13
|
+
source_default,
|
|
14
|
+
stripAnsi
|
|
15
|
+
} from "./cli-t75z78rh.js";
|
|
11
16
|
import {
|
|
12
17
|
__commonJS,
|
|
13
18
|
__export,
|
|
@@ -3101,503 +3106,14 @@ function fileExists(filePath) {
|
|
|
3101
3106
|
}
|
|
3102
3107
|
|
|
3103
3108
|
// ../../node_modules/.bun/ora@9.3.0/node_modules/ora/index.js
|
|
3104
|
-
import
|
|
3109
|
+
import process7 from "node:process";
|
|
3105
3110
|
import { stripVTControlCharacters } from "node:util";
|
|
3106
3111
|
|
|
3107
|
-
// ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
3108
|
-
var ANSI_BACKGROUND_OFFSET = 10;
|
|
3109
|
-
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
3110
|
-
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
3111
|
-
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
3112
|
-
var styles = {
|
|
3113
|
-
modifier: {
|
|
3114
|
-
reset: [0, 0],
|
|
3115
|
-
bold: [1, 22],
|
|
3116
|
-
dim: [2, 22],
|
|
3117
|
-
italic: [3, 23],
|
|
3118
|
-
underline: [4, 24],
|
|
3119
|
-
overline: [53, 55],
|
|
3120
|
-
inverse: [7, 27],
|
|
3121
|
-
hidden: [8, 28],
|
|
3122
|
-
strikethrough: [9, 29]
|
|
3123
|
-
},
|
|
3124
|
-
color: {
|
|
3125
|
-
black: [30, 39],
|
|
3126
|
-
red: [31, 39],
|
|
3127
|
-
green: [32, 39],
|
|
3128
|
-
yellow: [33, 39],
|
|
3129
|
-
blue: [34, 39],
|
|
3130
|
-
magenta: [35, 39],
|
|
3131
|
-
cyan: [36, 39],
|
|
3132
|
-
white: [37, 39],
|
|
3133
|
-
blackBright: [90, 39],
|
|
3134
|
-
gray: [90, 39],
|
|
3135
|
-
grey: [90, 39],
|
|
3136
|
-
redBright: [91, 39],
|
|
3137
|
-
greenBright: [92, 39],
|
|
3138
|
-
yellowBright: [93, 39],
|
|
3139
|
-
blueBright: [94, 39],
|
|
3140
|
-
magentaBright: [95, 39],
|
|
3141
|
-
cyanBright: [96, 39],
|
|
3142
|
-
whiteBright: [97, 39]
|
|
3143
|
-
},
|
|
3144
|
-
bgColor: {
|
|
3145
|
-
bgBlack: [40, 49],
|
|
3146
|
-
bgRed: [41, 49],
|
|
3147
|
-
bgGreen: [42, 49],
|
|
3148
|
-
bgYellow: [43, 49],
|
|
3149
|
-
bgBlue: [44, 49],
|
|
3150
|
-
bgMagenta: [45, 49],
|
|
3151
|
-
bgCyan: [46, 49],
|
|
3152
|
-
bgWhite: [47, 49],
|
|
3153
|
-
bgBlackBright: [100, 49],
|
|
3154
|
-
bgGray: [100, 49],
|
|
3155
|
-
bgGrey: [100, 49],
|
|
3156
|
-
bgRedBright: [101, 49],
|
|
3157
|
-
bgGreenBright: [102, 49],
|
|
3158
|
-
bgYellowBright: [103, 49],
|
|
3159
|
-
bgBlueBright: [104, 49],
|
|
3160
|
-
bgMagentaBright: [105, 49],
|
|
3161
|
-
bgCyanBright: [106, 49],
|
|
3162
|
-
bgWhiteBright: [107, 49]
|
|
3163
|
-
}
|
|
3164
|
-
};
|
|
3165
|
-
var modifierNames = Object.keys(styles.modifier);
|
|
3166
|
-
var foregroundColorNames = Object.keys(styles.color);
|
|
3167
|
-
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
3168
|
-
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
3169
|
-
function assembleStyles() {
|
|
3170
|
-
const codes = new Map;
|
|
3171
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
3172
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
3173
|
-
styles[styleName] = {
|
|
3174
|
-
open: `\x1B[${style[0]}m`,
|
|
3175
|
-
close: `\x1B[${style[1]}m`
|
|
3176
|
-
};
|
|
3177
|
-
group[styleName] = styles[styleName];
|
|
3178
|
-
codes.set(style[0], style[1]);
|
|
3179
|
-
}
|
|
3180
|
-
Object.defineProperty(styles, groupName, {
|
|
3181
|
-
value: group,
|
|
3182
|
-
enumerable: false
|
|
3183
|
-
});
|
|
3184
|
-
}
|
|
3185
|
-
Object.defineProperty(styles, "codes", {
|
|
3186
|
-
value: codes,
|
|
3187
|
-
enumerable: false
|
|
3188
|
-
});
|
|
3189
|
-
styles.color.close = "\x1B[39m";
|
|
3190
|
-
styles.bgColor.close = "\x1B[49m";
|
|
3191
|
-
styles.color.ansi = wrapAnsi16();
|
|
3192
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
3193
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
3194
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
3195
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
3196
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
3197
|
-
Object.defineProperties(styles, {
|
|
3198
|
-
rgbToAnsi256: {
|
|
3199
|
-
value(red, green, blue) {
|
|
3200
|
-
if (red === green && green === blue) {
|
|
3201
|
-
if (red < 8) {
|
|
3202
|
-
return 16;
|
|
3203
|
-
}
|
|
3204
|
-
if (red > 248) {
|
|
3205
|
-
return 231;
|
|
3206
|
-
}
|
|
3207
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
3208
|
-
}
|
|
3209
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
3210
|
-
},
|
|
3211
|
-
enumerable: false
|
|
3212
|
-
},
|
|
3213
|
-
hexToRgb: {
|
|
3214
|
-
value(hex) {
|
|
3215
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
3216
|
-
if (!matches) {
|
|
3217
|
-
return [0, 0, 0];
|
|
3218
|
-
}
|
|
3219
|
-
let [colorString] = matches;
|
|
3220
|
-
if (colorString.length === 3) {
|
|
3221
|
-
colorString = [...colorString].map((character) => character + character).join("");
|
|
3222
|
-
}
|
|
3223
|
-
const integer = Number.parseInt(colorString, 16);
|
|
3224
|
-
return [
|
|
3225
|
-
integer >> 16 & 255,
|
|
3226
|
-
integer >> 8 & 255,
|
|
3227
|
-
integer & 255
|
|
3228
|
-
];
|
|
3229
|
-
},
|
|
3230
|
-
enumerable: false
|
|
3231
|
-
},
|
|
3232
|
-
hexToAnsi256: {
|
|
3233
|
-
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
3234
|
-
enumerable: false
|
|
3235
|
-
},
|
|
3236
|
-
ansi256ToAnsi: {
|
|
3237
|
-
value(code) {
|
|
3238
|
-
if (code < 8) {
|
|
3239
|
-
return 30 + code;
|
|
3240
|
-
}
|
|
3241
|
-
if (code < 16) {
|
|
3242
|
-
return 90 + (code - 8);
|
|
3243
|
-
}
|
|
3244
|
-
let red;
|
|
3245
|
-
let green;
|
|
3246
|
-
let blue;
|
|
3247
|
-
if (code >= 232) {
|
|
3248
|
-
red = ((code - 232) * 10 + 8) / 255;
|
|
3249
|
-
green = red;
|
|
3250
|
-
blue = red;
|
|
3251
|
-
} else {
|
|
3252
|
-
code -= 16;
|
|
3253
|
-
const remainder = code % 36;
|
|
3254
|
-
red = Math.floor(code / 36) / 5;
|
|
3255
|
-
green = Math.floor(remainder / 6) / 5;
|
|
3256
|
-
blue = remainder % 6 / 5;
|
|
3257
|
-
}
|
|
3258
|
-
const value = Math.max(red, green, blue) * 2;
|
|
3259
|
-
if (value === 0) {
|
|
3260
|
-
return 30;
|
|
3261
|
-
}
|
|
3262
|
-
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
3263
|
-
if (value === 2) {
|
|
3264
|
-
result += 60;
|
|
3265
|
-
}
|
|
3266
|
-
return result;
|
|
3267
|
-
},
|
|
3268
|
-
enumerable: false
|
|
3269
|
-
},
|
|
3270
|
-
rgbToAnsi: {
|
|
3271
|
-
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
3272
|
-
enumerable: false
|
|
3273
|
-
},
|
|
3274
|
-
hexToAnsi: {
|
|
3275
|
-
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
3276
|
-
enumerable: false
|
|
3277
|
-
}
|
|
3278
|
-
});
|
|
3279
|
-
return styles;
|
|
3280
|
-
}
|
|
3281
|
-
var ansiStyles = assembleStyles();
|
|
3282
|
-
var ansi_styles_default = ansiStyles;
|
|
3283
|
-
|
|
3284
|
-
// ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
3285
|
-
import process2 from "node:process";
|
|
3286
|
-
import os from "node:os";
|
|
3287
|
-
import tty from "node:tty";
|
|
3288
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
|
|
3289
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
3290
|
-
const position = argv.indexOf(prefix + flag);
|
|
3291
|
-
const terminatorPosition = argv.indexOf("--");
|
|
3292
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
3293
|
-
}
|
|
3294
|
-
var { env } = process2;
|
|
3295
|
-
var flagForceColor;
|
|
3296
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
3297
|
-
flagForceColor = 0;
|
|
3298
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
3299
|
-
flagForceColor = 1;
|
|
3300
|
-
}
|
|
3301
|
-
function envForceColor() {
|
|
3302
|
-
if ("FORCE_COLOR" in env) {
|
|
3303
|
-
if (env.FORCE_COLOR === "true") {
|
|
3304
|
-
return 1;
|
|
3305
|
-
}
|
|
3306
|
-
if (env.FORCE_COLOR === "false") {
|
|
3307
|
-
return 0;
|
|
3308
|
-
}
|
|
3309
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
3310
|
-
}
|
|
3311
|
-
}
|
|
3312
|
-
function translateLevel(level) {
|
|
3313
|
-
if (level === 0) {
|
|
3314
|
-
return false;
|
|
3315
|
-
}
|
|
3316
|
-
return {
|
|
3317
|
-
level,
|
|
3318
|
-
hasBasic: true,
|
|
3319
|
-
has256: level >= 2,
|
|
3320
|
-
has16m: level >= 3
|
|
3321
|
-
};
|
|
3322
|
-
}
|
|
3323
|
-
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
3324
|
-
const noFlagForceColor = envForceColor();
|
|
3325
|
-
if (noFlagForceColor !== undefined) {
|
|
3326
|
-
flagForceColor = noFlagForceColor;
|
|
3327
|
-
}
|
|
3328
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
3329
|
-
if (forceColor === 0) {
|
|
3330
|
-
return 0;
|
|
3331
|
-
}
|
|
3332
|
-
if (sniffFlags) {
|
|
3333
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
3334
|
-
return 3;
|
|
3335
|
-
}
|
|
3336
|
-
if (hasFlag("color=256")) {
|
|
3337
|
-
return 2;
|
|
3338
|
-
}
|
|
3339
|
-
}
|
|
3340
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
3341
|
-
return 1;
|
|
3342
|
-
}
|
|
3343
|
-
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
3344
|
-
return 0;
|
|
3345
|
-
}
|
|
3346
|
-
const min = forceColor || 0;
|
|
3347
|
-
if (env.TERM === "dumb") {
|
|
3348
|
-
return min;
|
|
3349
|
-
}
|
|
3350
|
-
if (process2.platform === "win32") {
|
|
3351
|
-
const osRelease = os.release().split(".");
|
|
3352
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
3353
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
3354
|
-
}
|
|
3355
|
-
return 1;
|
|
3356
|
-
}
|
|
3357
|
-
if ("CI" in env) {
|
|
3358
|
-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env))) {
|
|
3359
|
-
return 3;
|
|
3360
|
-
}
|
|
3361
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {
|
|
3362
|
-
return 1;
|
|
3363
|
-
}
|
|
3364
|
-
return min;
|
|
3365
|
-
}
|
|
3366
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
3367
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
3368
|
-
}
|
|
3369
|
-
if (env.COLORTERM === "truecolor") {
|
|
3370
|
-
return 3;
|
|
3371
|
-
}
|
|
3372
|
-
if (env.TERM === "xterm-kitty") {
|
|
3373
|
-
return 3;
|
|
3374
|
-
}
|
|
3375
|
-
if (env.TERM === "xterm-ghostty") {
|
|
3376
|
-
return 3;
|
|
3377
|
-
}
|
|
3378
|
-
if (env.TERM === "wezterm") {
|
|
3379
|
-
return 3;
|
|
3380
|
-
}
|
|
3381
|
-
if ("TERM_PROGRAM" in env) {
|
|
3382
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
3383
|
-
switch (env.TERM_PROGRAM) {
|
|
3384
|
-
case "iTerm.app": {
|
|
3385
|
-
return version >= 3 ? 3 : 2;
|
|
3386
|
-
}
|
|
3387
|
-
case "Apple_Terminal": {
|
|
3388
|
-
return 2;
|
|
3389
|
-
}
|
|
3390
|
-
}
|
|
3391
|
-
}
|
|
3392
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
3393
|
-
return 2;
|
|
3394
|
-
}
|
|
3395
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
3396
|
-
return 1;
|
|
3397
|
-
}
|
|
3398
|
-
if ("COLORTERM" in env) {
|
|
3399
|
-
return 1;
|
|
3400
|
-
}
|
|
3401
|
-
return min;
|
|
3402
|
-
}
|
|
3403
|
-
function createSupportsColor(stream, options = {}) {
|
|
3404
|
-
const level = _supportsColor(stream, {
|
|
3405
|
-
streamIsTTY: stream && stream.isTTY,
|
|
3406
|
-
...options
|
|
3407
|
-
});
|
|
3408
|
-
return translateLevel(level);
|
|
3409
|
-
}
|
|
3410
|
-
var supportsColor = {
|
|
3411
|
-
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
3412
|
-
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
3413
|
-
};
|
|
3414
|
-
var supports_color_default = supportsColor;
|
|
3415
|
-
|
|
3416
|
-
// ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
3417
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
3418
|
-
let index = string.indexOf(substring);
|
|
3419
|
-
if (index === -1) {
|
|
3420
|
-
return string;
|
|
3421
|
-
}
|
|
3422
|
-
const substringLength = substring.length;
|
|
3423
|
-
let endIndex = 0;
|
|
3424
|
-
let returnValue = "";
|
|
3425
|
-
do {
|
|
3426
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
3427
|
-
endIndex = index + substringLength;
|
|
3428
|
-
index = string.indexOf(substring, endIndex);
|
|
3429
|
-
} while (index !== -1);
|
|
3430
|
-
returnValue += string.slice(endIndex);
|
|
3431
|
-
return returnValue;
|
|
3432
|
-
}
|
|
3433
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
3434
|
-
let endIndex = 0;
|
|
3435
|
-
let returnValue = "";
|
|
3436
|
-
do {
|
|
3437
|
-
const gotCR = string[index - 1] === "\r";
|
|
3438
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? `\r
|
|
3439
|
-
` : `
|
|
3440
|
-
`) + postfix;
|
|
3441
|
-
endIndex = index + 1;
|
|
3442
|
-
index = string.indexOf(`
|
|
3443
|
-
`, endIndex);
|
|
3444
|
-
} while (index !== -1);
|
|
3445
|
-
returnValue += string.slice(endIndex);
|
|
3446
|
-
return returnValue;
|
|
3447
|
-
}
|
|
3448
|
-
|
|
3449
|
-
// ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
3450
|
-
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
3451
|
-
var GENERATOR = Symbol("GENERATOR");
|
|
3452
|
-
var STYLER = Symbol("STYLER");
|
|
3453
|
-
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
3454
|
-
var levelMapping = [
|
|
3455
|
-
"ansi",
|
|
3456
|
-
"ansi",
|
|
3457
|
-
"ansi256",
|
|
3458
|
-
"ansi16m"
|
|
3459
|
-
];
|
|
3460
|
-
var styles2 = Object.create(null);
|
|
3461
|
-
var applyOptions = (object, options = {}) => {
|
|
3462
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
3463
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
3464
|
-
}
|
|
3465
|
-
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
3466
|
-
object.level = options.level === undefined ? colorLevel : options.level;
|
|
3467
|
-
};
|
|
3468
|
-
var chalkFactory = (options) => {
|
|
3469
|
-
const chalk = (...strings) => strings.join(" ");
|
|
3470
|
-
applyOptions(chalk, options);
|
|
3471
|
-
Object.setPrototypeOf(chalk, createChalk.prototype);
|
|
3472
|
-
return chalk;
|
|
3473
|
-
};
|
|
3474
|
-
function createChalk(options) {
|
|
3475
|
-
return chalkFactory(options);
|
|
3476
|
-
}
|
|
3477
|
-
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
3478
|
-
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
3479
|
-
styles2[styleName] = {
|
|
3480
|
-
get() {
|
|
3481
|
-
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
3482
|
-
Object.defineProperty(this, styleName, { value: builder });
|
|
3483
|
-
return builder;
|
|
3484
|
-
}
|
|
3485
|
-
};
|
|
3486
|
-
}
|
|
3487
|
-
styles2.visible = {
|
|
3488
|
-
get() {
|
|
3489
|
-
const builder = createBuilder(this, this[STYLER], true);
|
|
3490
|
-
Object.defineProperty(this, "visible", { value: builder });
|
|
3491
|
-
return builder;
|
|
3492
|
-
}
|
|
3493
|
-
};
|
|
3494
|
-
var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
3495
|
-
if (model === "rgb") {
|
|
3496
|
-
if (level === "ansi16m") {
|
|
3497
|
-
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
3498
|
-
}
|
|
3499
|
-
if (level === "ansi256") {
|
|
3500
|
-
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
3501
|
-
}
|
|
3502
|
-
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
3503
|
-
}
|
|
3504
|
-
if (model === "hex") {
|
|
3505
|
-
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
3506
|
-
}
|
|
3507
|
-
return ansi_styles_default[type][model](...arguments_);
|
|
3508
|
-
};
|
|
3509
|
-
var usedModels = ["rgb", "hex", "ansi256"];
|
|
3510
|
-
for (const model of usedModels) {
|
|
3511
|
-
styles2[model] = {
|
|
3512
|
-
get() {
|
|
3513
|
-
const { level } = this;
|
|
3514
|
-
return function(...arguments_) {
|
|
3515
|
-
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
3516
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
3517
|
-
};
|
|
3518
|
-
}
|
|
3519
|
-
};
|
|
3520
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
3521
|
-
styles2[bgModel] = {
|
|
3522
|
-
get() {
|
|
3523
|
-
const { level } = this;
|
|
3524
|
-
return function(...arguments_) {
|
|
3525
|
-
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
3526
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
3527
|
-
};
|
|
3528
|
-
}
|
|
3529
|
-
};
|
|
3530
|
-
}
|
|
3531
|
-
var proto = Object.defineProperties(() => {}, {
|
|
3532
|
-
...styles2,
|
|
3533
|
-
level: {
|
|
3534
|
-
enumerable: true,
|
|
3535
|
-
get() {
|
|
3536
|
-
return this[GENERATOR].level;
|
|
3537
|
-
},
|
|
3538
|
-
set(level) {
|
|
3539
|
-
this[GENERATOR].level = level;
|
|
3540
|
-
}
|
|
3541
|
-
}
|
|
3542
|
-
});
|
|
3543
|
-
var createStyler = (open, close, parent) => {
|
|
3544
|
-
let openAll;
|
|
3545
|
-
let closeAll;
|
|
3546
|
-
if (parent === undefined) {
|
|
3547
|
-
openAll = open;
|
|
3548
|
-
closeAll = close;
|
|
3549
|
-
} else {
|
|
3550
|
-
openAll = parent.openAll + open;
|
|
3551
|
-
closeAll = close + parent.closeAll;
|
|
3552
|
-
}
|
|
3553
|
-
return {
|
|
3554
|
-
open,
|
|
3555
|
-
close,
|
|
3556
|
-
openAll,
|
|
3557
|
-
closeAll,
|
|
3558
|
-
parent
|
|
3559
|
-
};
|
|
3560
|
-
};
|
|
3561
|
-
var createBuilder = (self, _styler, _isEmpty) => {
|
|
3562
|
-
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
3563
|
-
Object.setPrototypeOf(builder, proto);
|
|
3564
|
-
builder[GENERATOR] = self;
|
|
3565
|
-
builder[STYLER] = _styler;
|
|
3566
|
-
builder[IS_EMPTY] = _isEmpty;
|
|
3567
|
-
return builder;
|
|
3568
|
-
};
|
|
3569
|
-
var applyStyle = (self, string) => {
|
|
3570
|
-
if (self.level <= 0 || !string) {
|
|
3571
|
-
return self[IS_EMPTY] ? "" : string;
|
|
3572
|
-
}
|
|
3573
|
-
let styler = self[STYLER];
|
|
3574
|
-
if (styler === undefined) {
|
|
3575
|
-
return string;
|
|
3576
|
-
}
|
|
3577
|
-
const { openAll, closeAll } = styler;
|
|
3578
|
-
if (string.includes("\x1B")) {
|
|
3579
|
-
while (styler !== undefined) {
|
|
3580
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
3581
|
-
styler = styler.parent;
|
|
3582
|
-
}
|
|
3583
|
-
}
|
|
3584
|
-
const lfIndex = string.indexOf(`
|
|
3585
|
-
`);
|
|
3586
|
-
if (lfIndex !== -1) {
|
|
3587
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
3588
|
-
}
|
|
3589
|
-
return openAll + string + closeAll;
|
|
3590
|
-
};
|
|
3591
|
-
Object.defineProperties(createChalk.prototype, styles2);
|
|
3592
|
-
var chalk = createChalk();
|
|
3593
|
-
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
3594
|
-
var source_default = chalk;
|
|
3595
|
-
|
|
3596
3112
|
// ../../node_modules/.bun/cli-cursor@5.0.0/node_modules/cli-cursor/index.js
|
|
3597
|
-
import
|
|
3113
|
+
import process4 from "node:process";
|
|
3598
3114
|
|
|
3599
3115
|
// ../../node_modules/.bun/restore-cursor@5.1.0/node_modules/restore-cursor/index.js
|
|
3600
|
-
import
|
|
3116
|
+
import process3 from "node:process";
|
|
3601
3117
|
|
|
3602
3118
|
// ../../node_modules/.bun/mimic-function@5.0.1/node_modules/mimic-function/index.js
|
|
3603
3119
|
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
@@ -3687,7 +3203,7 @@ if (process.platform === "linux") {
|
|
|
3687
3203
|
}
|
|
3688
3204
|
|
|
3689
3205
|
// ../../node_modules/.bun/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
3690
|
-
var processOk = (
|
|
3206
|
+
var processOk = (process2) => !!process2 && typeof process2 === "object" && typeof process2.removeListener === "function" && typeof process2.emit === "function" && typeof process2.reallyExit === "function" && typeof process2.listeners === "function" && typeof process2.kill === "function" && typeof process2.pid === "number" && typeof process2.on === "function";
|
|
3691
3207
|
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
3692
3208
|
var global = globalThis;
|
|
3693
3209
|
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
@@ -3770,22 +3286,22 @@ class SignalExitFallback extends SignalExitBase {
|
|
|
3770
3286
|
}
|
|
3771
3287
|
|
|
3772
3288
|
class SignalExit extends SignalExitBase {
|
|
3773
|
-
#hupSig =
|
|
3289
|
+
#hupSig = process2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
3774
3290
|
#emitter = new Emitter;
|
|
3775
3291
|
#process;
|
|
3776
3292
|
#originalProcessEmit;
|
|
3777
3293
|
#originalProcessReallyExit;
|
|
3778
3294
|
#sigListeners = {};
|
|
3779
3295
|
#loaded = false;
|
|
3780
|
-
constructor(
|
|
3296
|
+
constructor(process2) {
|
|
3781
3297
|
super();
|
|
3782
|
-
this.#process =
|
|
3298
|
+
this.#process = process2;
|
|
3783
3299
|
this.#sigListeners = {};
|
|
3784
3300
|
for (const sig of signals) {
|
|
3785
3301
|
this.#sigListeners[sig] = () => {
|
|
3786
3302
|
const listeners = this.#process.listeners(sig);
|
|
3787
3303
|
let { count } = this.#emitter;
|
|
3788
|
-
const p =
|
|
3304
|
+
const p = process2;
|
|
3789
3305
|
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
3790
3306
|
count += p.__signal_exit_emitter__.count;
|
|
3791
3307
|
}
|
|
@@ -3794,12 +3310,12 @@ class SignalExit extends SignalExitBase {
|
|
|
3794
3310
|
const ret = this.#emitter.emit("exit", null, sig);
|
|
3795
3311
|
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
3796
3312
|
if (!ret)
|
|
3797
|
-
|
|
3313
|
+
process2.kill(process2.pid, s);
|
|
3798
3314
|
}
|
|
3799
3315
|
};
|
|
3800
3316
|
}
|
|
3801
|
-
this.#originalProcessReallyExit =
|
|
3802
|
-
this.#originalProcessEmit =
|
|
3317
|
+
this.#originalProcessReallyExit = process2.reallyExit;
|
|
3318
|
+
this.#originalProcessEmit = process2.emit;
|
|
3803
3319
|
}
|
|
3804
3320
|
onExit(cb, opts) {
|
|
3805
3321
|
if (!processOk(this.#process)) {
|
|
@@ -3877,15 +3393,15 @@ class SignalExit extends SignalExitBase {
|
|
|
3877
3393
|
}
|
|
3878
3394
|
}
|
|
3879
3395
|
}
|
|
3880
|
-
var
|
|
3396
|
+
var process2 = globalThis.process;
|
|
3881
3397
|
var {
|
|
3882
3398
|
onExit,
|
|
3883
3399
|
load,
|
|
3884
3400
|
unload
|
|
3885
|
-
} = signalExitWrap(processOk(
|
|
3401
|
+
} = signalExitWrap(processOk(process2) ? new SignalExit(process2) : new SignalExitFallback);
|
|
3886
3402
|
|
|
3887
3403
|
// ../../node_modules/.bun/restore-cursor@5.1.0/node_modules/restore-cursor/index.js
|
|
3888
|
-
var terminal =
|
|
3404
|
+
var terminal = process3.stderr.isTTY ? process3.stderr : process3.stdout.isTTY ? process3.stdout : undefined;
|
|
3889
3405
|
var restoreCursor = terminal ? onetime_default(() => {
|
|
3890
3406
|
onExit(() => {
|
|
3891
3407
|
terminal.write("\x1B[?25h");
|
|
@@ -3896,14 +3412,14 @@ var restore_cursor_default = restoreCursor;
|
|
|
3896
3412
|
// ../../node_modules/.bun/cli-cursor@5.0.0/node_modules/cli-cursor/index.js
|
|
3897
3413
|
var isHidden = false;
|
|
3898
3414
|
var cliCursor = {};
|
|
3899
|
-
cliCursor.show = (writableStream =
|
|
3415
|
+
cliCursor.show = (writableStream = process4.stderr) => {
|
|
3900
3416
|
if (!writableStream.isTTY) {
|
|
3901
3417
|
return;
|
|
3902
3418
|
}
|
|
3903
3419
|
isHidden = false;
|
|
3904
3420
|
writableStream.write("\x1B[?25h");
|
|
3905
3421
|
};
|
|
3906
|
-
cliCursor.hide = (writableStream =
|
|
3422
|
+
cliCursor.hide = (writableStream = process4.stderr) => {
|
|
3907
3423
|
if (!writableStream.isTTY) {
|
|
3908
3424
|
return;
|
|
3909
3425
|
}
|
|
@@ -5635,8 +5151,8 @@ __export(exports_symbols, {
|
|
|
5635
5151
|
});
|
|
5636
5152
|
|
|
5637
5153
|
// ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
|
5638
|
-
import
|
|
5639
|
-
var hasColors =
|
|
5154
|
+
import tty from "node:tty";
|
|
5155
|
+
var hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
5640
5156
|
var format = (open, close) => {
|
|
5641
5157
|
if (!hasColors) {
|
|
5642
5158
|
return (input) => input;
|
|
@@ -5705,14 +5221,14 @@ var bgCyanBright = format(106, 49);
|
|
|
5705
5221
|
var bgWhiteBright = format(107, 49);
|
|
5706
5222
|
|
|
5707
5223
|
// ../../node_modules/.bun/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
5708
|
-
import
|
|
5224
|
+
import process5 from "node:process";
|
|
5709
5225
|
function isUnicodeSupported() {
|
|
5710
|
-
const { env
|
|
5711
|
-
const { TERM, TERM_PROGRAM } =
|
|
5712
|
-
if (
|
|
5226
|
+
const { env } = process5;
|
|
5227
|
+
const { TERM, TERM_PROGRAM } = env;
|
|
5228
|
+
if (process5.platform !== "win32") {
|
|
5713
5229
|
return TERM !== "linux";
|
|
5714
5230
|
}
|
|
5715
|
-
return Boolean(
|
|
5231
|
+
return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
5716
5232
|
}
|
|
5717
5233
|
|
|
5718
5234
|
// ../../node_modules/.bun/log-symbols@7.0.1/node_modules/log-symbols/symbols.js
|
|
@@ -5721,117 +5237,6 @@ var info2 = blue(_isUnicodeSupported ? "ℹ" : "i");
|
|
|
5721
5237
|
var success2 = green(_isUnicodeSupported ? "✔" : "√");
|
|
5722
5238
|
var warning = yellow(_isUnicodeSupported ? "⚠" : "‼");
|
|
5723
5239
|
var error2 = red(_isUnicodeSupported ? "✖" : "×");
|
|
5724
|
-
// ../../node_modules/.bun/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
|
|
5725
|
-
function ansiRegex({ onlyFirst = false } = {}) {
|
|
5726
|
-
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
5727
|
-
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
5728
|
-
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
5729
|
-
const pattern = `${osc}|${csi}`;
|
|
5730
|
-
return new RegExp(pattern, onlyFirst ? undefined : "g");
|
|
5731
|
-
}
|
|
5732
|
-
|
|
5733
|
-
// ../../node_modules/.bun/strip-ansi@7.2.0/node_modules/strip-ansi/index.js
|
|
5734
|
-
var regex = ansiRegex();
|
|
5735
|
-
function stripAnsi(string) {
|
|
5736
|
-
if (typeof string !== "string") {
|
|
5737
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
5738
|
-
}
|
|
5739
|
-
if (!string.includes("\x1B") && !string.includes("")) {
|
|
5740
|
-
return string;
|
|
5741
|
-
}
|
|
5742
|
-
return string.replace(regex, "");
|
|
5743
|
-
}
|
|
5744
|
-
|
|
5745
|
-
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.js
|
|
5746
|
-
var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
5747
|
-
var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
5748
|
-
var halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
5749
|
-
var narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
5750
|
-
var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
5751
|
-
|
|
5752
|
-
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.js
|
|
5753
|
-
var isInRange = (ranges, codePoint) => {
|
|
5754
|
-
let low = 0;
|
|
5755
|
-
let high = Math.floor(ranges.length / 2) - 1;
|
|
5756
|
-
while (low <= high) {
|
|
5757
|
-
const mid = Math.floor((low + high) / 2);
|
|
5758
|
-
const i = mid * 2;
|
|
5759
|
-
if (codePoint < ranges[i]) {
|
|
5760
|
-
high = mid - 1;
|
|
5761
|
-
} else if (codePoint > ranges[i + 1]) {
|
|
5762
|
-
low = mid + 1;
|
|
5763
|
-
} else {
|
|
5764
|
-
return true;
|
|
5765
|
-
}
|
|
5766
|
-
}
|
|
5767
|
-
return false;
|
|
5768
|
-
};
|
|
5769
|
-
|
|
5770
|
-
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.js
|
|
5771
|
-
var minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
5772
|
-
var maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
5773
|
-
var minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
5774
|
-
var maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
5775
|
-
var minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
5776
|
-
var maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
5777
|
-
var minimumNarrowCodePoint = narrowRanges[0];
|
|
5778
|
-
var maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
5779
|
-
var minimumWideCodePoint = wideRanges[0];
|
|
5780
|
-
var maximumWideCodePoint = wideRanges.at(-1);
|
|
5781
|
-
var commonCjkCodePoint = 19968;
|
|
5782
|
-
var [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
5783
|
-
function findWideFastPathRange(ranges) {
|
|
5784
|
-
let fastPathStart = ranges[0];
|
|
5785
|
-
let fastPathEnd = ranges[1];
|
|
5786
|
-
for (let index = 0;index < ranges.length; index += 2) {
|
|
5787
|
-
const start = ranges[index];
|
|
5788
|
-
const end = ranges[index + 1];
|
|
5789
|
-
if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
|
|
5790
|
-
return [start, end];
|
|
5791
|
-
}
|
|
5792
|
-
if (end - start > fastPathEnd - fastPathStart) {
|
|
5793
|
-
fastPathStart = start;
|
|
5794
|
-
fastPathEnd = end;
|
|
5795
|
-
}
|
|
5796
|
-
}
|
|
5797
|
-
return [fastPathStart, fastPathEnd];
|
|
5798
|
-
}
|
|
5799
|
-
var isAmbiguous = (codePoint) => {
|
|
5800
|
-
if (codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint) {
|
|
5801
|
-
return false;
|
|
5802
|
-
}
|
|
5803
|
-
return isInRange(ambiguousRanges, codePoint);
|
|
5804
|
-
};
|
|
5805
|
-
var isFullWidth = (codePoint) => {
|
|
5806
|
-
if (codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint) {
|
|
5807
|
-
return false;
|
|
5808
|
-
}
|
|
5809
|
-
return isInRange(fullwidthRanges, codePoint);
|
|
5810
|
-
};
|
|
5811
|
-
var isWide = (codePoint) => {
|
|
5812
|
-
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
5813
|
-
return true;
|
|
5814
|
-
}
|
|
5815
|
-
if (codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint) {
|
|
5816
|
-
return false;
|
|
5817
|
-
}
|
|
5818
|
-
return isInRange(wideRanges, codePoint);
|
|
5819
|
-
};
|
|
5820
|
-
|
|
5821
|
-
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.js
|
|
5822
|
-
function validate(codePoint) {
|
|
5823
|
-
if (!Number.isSafeInteger(codePoint)) {
|
|
5824
|
-
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
5825
|
-
}
|
|
5826
|
-
}
|
|
5827
|
-
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
5828
|
-
validate(codePoint);
|
|
5829
|
-
if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
5830
|
-
return 2;
|
|
5831
|
-
}
|
|
5832
|
-
return 1;
|
|
5833
|
-
}
|
|
5834
|
-
|
|
5835
5240
|
// ../../node_modules/.bun/string-width@8.2.0/node_modules/string-width/index.js
|
|
5836
5241
|
var segmenter = new Intl.Segmenter;
|
|
5837
5242
|
var zeroWidthClusterRegex = /^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v;
|
|
@@ -5910,7 +5315,7 @@ function isInteractive({ stream = process.stdout } = {}) {
|
|
|
5910
5315
|
}
|
|
5911
5316
|
|
|
5912
5317
|
// ../../node_modules/.bun/stdin-discarder@0.3.1/node_modules/stdin-discarder/index.js
|
|
5913
|
-
import
|
|
5318
|
+
import process6 from "node:process";
|
|
5914
5319
|
var ASCII_ETX_CODE = 3;
|
|
5915
5320
|
|
|
5916
5321
|
class StdinDiscarder {
|
|
@@ -5924,10 +5329,10 @@ class StdinDiscarder {
|
|
|
5924
5329
|
}
|
|
5925
5330
|
const code = typeof chunk === "string" ? chunk.codePointAt(0) : chunk[0];
|
|
5926
5331
|
if (code === ASCII_ETX_CODE) {
|
|
5927
|
-
if (
|
|
5928
|
-
|
|
5332
|
+
if (process6.listenerCount("SIGINT") > 0) {
|
|
5333
|
+
process6.emit("SIGINT");
|
|
5929
5334
|
} else {
|
|
5930
|
-
|
|
5335
|
+
process6.kill(process6.pid, "SIGINT");
|
|
5931
5336
|
}
|
|
5932
5337
|
}
|
|
5933
5338
|
};
|
|
@@ -5946,8 +5351,8 @@ class StdinDiscarder {
|
|
|
5946
5351
|
}
|
|
5947
5352
|
}
|
|
5948
5353
|
#realStart() {
|
|
5949
|
-
const { stdin } =
|
|
5950
|
-
if (
|
|
5354
|
+
const { stdin } = process6;
|
|
5355
|
+
if (process6.platform === "win32" || !stdin?.isTTY || typeof stdin.setRawMode !== "function") {
|
|
5951
5356
|
this.#stdin = undefined;
|
|
5952
5357
|
return;
|
|
5953
5358
|
}
|
|
@@ -6069,7 +5474,7 @@ class Ora {
|
|
|
6069
5474
|
}
|
|
6070
5475
|
this.#options = {
|
|
6071
5476
|
color: "cyan",
|
|
6072
|
-
stream:
|
|
5477
|
+
stream: process7.stderr,
|
|
6073
5478
|
discardStdin: true,
|
|
6074
5479
|
hideCursor: true,
|
|
6075
5480
|
...options
|
|
@@ -6089,7 +5494,7 @@ class Ora {
|
|
|
6089
5494
|
this.prefixText = this.#options.prefixText;
|
|
6090
5495
|
this.suffixText = this.#options.suffixText;
|
|
6091
5496
|
this.indent = this.#options.indent;
|
|
6092
|
-
if (
|
|
5497
|
+
if (process7.env.NODE_ENV === "test") {
|
|
6093
5498
|
this._stream = this.#stream;
|
|
6094
5499
|
this._isEnabled = this.#options.isEnabled;
|
|
6095
5500
|
Object.defineProperty(this, "_linesToClear", {
|
|
@@ -6266,7 +5671,7 @@ class Ora {
|
|
|
6266
5671
|
if (!this.isEnabled || this.#hookedStreams.size > 0) {
|
|
6267
5672
|
return;
|
|
6268
5673
|
}
|
|
6269
|
-
const streamsToHook = new Set([this.#stream,
|
|
5674
|
+
const streamsToHook = new Set([this.#stream, process7.stdout, process7.stderr]);
|
|
6270
5675
|
for (const stream of streamsToHook) {
|
|
6271
5676
|
this.#hookStream(stream);
|
|
6272
5677
|
}
|
|
@@ -6363,7 +5768,7 @@ class Ora {
|
|
|
6363
5768
|
if (this.#options.hideCursor) {
|
|
6364
5769
|
cli_cursor_default.hide(this.#stream);
|
|
6365
5770
|
}
|
|
6366
|
-
if (this.#options.discardStdin &&
|
|
5771
|
+
if (this.#options.discardStdin && process7.stdin.isTTY) {
|
|
6367
5772
|
stdin_discarder_default.start();
|
|
6368
5773
|
this.#isDiscardingStdin = true;
|
|
6369
5774
|
}
|
|
@@ -6738,12 +6143,12 @@ function useEffect(cb, depArray) {
|
|
|
6738
6143
|
import { styleText } from "node:util";
|
|
6739
6144
|
|
|
6740
6145
|
// ../../node_modules/.bun/@inquirer+figures@2.0.3/node_modules/@inquirer/figures/dist/index.js
|
|
6741
|
-
import
|
|
6146
|
+
import process8 from "node:process";
|
|
6742
6147
|
function isUnicodeSupported2() {
|
|
6743
|
-
if (
|
|
6744
|
-
return
|
|
6148
|
+
if (process8.platform !== "win32") {
|
|
6149
|
+
return process8.env["TERM"] !== "linux";
|
|
6745
6150
|
}
|
|
6746
|
-
return Boolean(
|
|
6151
|
+
return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
|
6747
6152
|
}
|
|
6748
6153
|
var common = {
|
|
6749
6154
|
circleQuestionMark: "(?)",
|
|
@@ -7051,11 +6456,11 @@ var defaultTheme = {
|
|
|
7051
6456
|
function isPlainObject(value) {
|
|
7052
6457
|
if (typeof value !== "object" || value === null)
|
|
7053
6458
|
return false;
|
|
7054
|
-
let
|
|
7055
|
-
while (Object.getPrototypeOf(
|
|
7056
|
-
|
|
6459
|
+
let proto = value;
|
|
6460
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
|
6461
|
+
proto = Object.getPrototypeOf(proto);
|
|
7057
6462
|
}
|
|
7058
|
-
return Object.getPrototypeOf(value) ===
|
|
6463
|
+
return Object.getPrototypeOf(value) === proto;
|
|
7059
6464
|
}
|
|
7060
6465
|
function deepMerge(...objects) {
|
|
7061
6466
|
const output = {};
|
|
@@ -7154,7 +6559,7 @@ var getCodePointsLength = (() => {
|
|
|
7154
6559
|
return input.length - surrogatePairsNr;
|
|
7155
6560
|
};
|
|
7156
6561
|
})();
|
|
7157
|
-
var
|
|
6562
|
+
var isFullWidth = (x) => {
|
|
7158
6563
|
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
7159
6564
|
};
|
|
7160
6565
|
var isWideNotCJKTNotEmoji = (x) => {
|
|
@@ -7207,7 +6612,7 @@ var getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {})
|
|
|
7207
6612
|
lengthExtra = 0;
|
|
7208
6613
|
for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
|
|
7209
6614
|
const codePoint = char.codePointAt(0) || 0;
|
|
7210
|
-
if (
|
|
6615
|
+
if (isFullWidth(codePoint)) {
|
|
7211
6616
|
widthExtra = FULL_WIDTH_WIDTH;
|
|
7212
6617
|
} else if (isWideNotCJKTNotEmoji(codePoint)) {
|
|
7213
6618
|
widthExtra = WIDE_WIDTH;
|
|
@@ -7828,7 +7233,7 @@ var dist_default5 = createPrompt((config, done) => {
|
|
|
7828
7233
|
const [errorMsg, setError] = useState();
|
|
7829
7234
|
const [value, setValue] = useState("");
|
|
7830
7235
|
const prefix = usePrefix({ status, theme });
|
|
7831
|
-
async function
|
|
7236
|
+
async function validate(value2) {
|
|
7832
7237
|
const { required, pattern, patternError = "Invalid input" } = config;
|
|
7833
7238
|
if (required && !value2) {
|
|
7834
7239
|
return "You must provide a value";
|
|
@@ -7848,7 +7253,7 @@ var dist_default5 = createPrompt((config, done) => {
|
|
|
7848
7253
|
if (isEnterKey(key)) {
|
|
7849
7254
|
const answer = value || defaultValue;
|
|
7850
7255
|
setStatus("loading");
|
|
7851
|
-
const isValid = await
|
|
7256
|
+
const isValid = await validate(answer);
|
|
7852
7257
|
if (isValid === true) {
|
|
7853
7258
|
setValue(answer);
|
|
7854
7259
|
setStatus("done");
|
|
@@ -8466,7 +7871,7 @@ var pe = "\x00PERIOD" + Math.random() + "\x00";
|
|
|
8466
7871
|
var is = new RegExp(fe, "g");
|
|
8467
7872
|
var rs = new RegExp(ue, "g");
|
|
8468
7873
|
var ns = new RegExp(qt, "g");
|
|
8469
|
-
var
|
|
7874
|
+
var os = new RegExp(de, "g");
|
|
8470
7875
|
var hs = new RegExp(pe, "g");
|
|
8471
7876
|
var as = /\\\\/g;
|
|
8472
7877
|
var ls = /\\{/g;
|
|
@@ -8481,7 +7886,7 @@ function ps(n) {
|
|
|
8481
7886
|
return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs, de).replace(us, pe);
|
|
8482
7887
|
}
|
|
8483
7888
|
function ms(n) {
|
|
8484
|
-
return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(
|
|
7889
|
+
return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os, ",").replace(hs, ".");
|
|
8485
7890
|
}
|
|
8486
7891
|
function me(n) {
|
|
8487
7892
|
if (!n)
|
|
@@ -12181,4 +11586,15 @@ registerScan(program2);
|
|
|
12181
11586
|
registerAnalyze(program2);
|
|
12182
11587
|
registerPush(program2);
|
|
12183
11588
|
registerAuth(program2);
|
|
12184
|
-
|
|
11589
|
+
var userArgs = process.argv.slice(2);
|
|
11590
|
+
var commandNames = program2.commands.map((c) => c.name());
|
|
11591
|
+
var hasCommand = userArgs.some((a) => commandNames.includes(a));
|
|
11592
|
+
var hasFlags = userArgs.some((a) => a.startsWith("-"));
|
|
11593
|
+
var cols = process.stdout.columns || 80;
|
|
11594
|
+
var rows = process.stdout.rows || 24;
|
|
11595
|
+
if (!hasCommand && !hasFlags && process.stdout.isTTY && cols >= 60 && rows >= 20) {
|
|
11596
|
+
const { launchTui } = await import("./App-d0tbxdwk.js");
|
|
11597
|
+
await launchTui(program2);
|
|
11598
|
+
} else {
|
|
11599
|
+
program2.parse();
|
|
11600
|
+
}
|