codetyper-cli 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/index.js +689 -234
- package/package.json +1 -1
- package/src/version.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7008,10 +7008,349 @@ var require_cli_width = __commonJS((exports, module) => {
|
|
|
7008
7008
|
}
|
|
7009
7009
|
});
|
|
7010
7010
|
|
|
7011
|
+
// node_modules/fast-string-truncated-width/dist/utils.js
|
|
7012
|
+
var getCodePointsLength, isFullWidth = (x) => {
|
|
7013
|
+
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
7014
|
+
}, isWideNotCJKTNotEmoji = (x) => {
|
|
7015
|
+
return x === 8987 || x === 9001 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
7016
|
+
};
|
|
7017
|
+
var init_utils = __esm(() => {
|
|
7018
|
+
getCodePointsLength = (() => {
|
|
7019
|
+
const SURROGATE_PAIR_RE = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
7020
|
+
return (input) => {
|
|
7021
|
+
let surrogatePairsNr = 0;
|
|
7022
|
+
SURROGATE_PAIR_RE.lastIndex = 0;
|
|
7023
|
+
while (SURROGATE_PAIR_RE.test(input)) {
|
|
7024
|
+
surrogatePairsNr += 1;
|
|
7025
|
+
}
|
|
7026
|
+
return input.length - surrogatePairsNr;
|
|
7027
|
+
};
|
|
7028
|
+
})();
|
|
7029
|
+
});
|
|
7030
|
+
|
|
7031
|
+
// node_modules/fast-string-truncated-width/dist/index.js
|
|
7032
|
+
var ANSI_RE, CONTROL_RE, CJKT_WIDE_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION, getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
|
|
7033
|
+
const LIMIT = truncationOptions.limit ?? Infinity;
|
|
7034
|
+
const ELLIPSIS = truncationOptions.ellipsis ?? "";
|
|
7035
|
+
const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
|
|
7036
|
+
const ANSI_WIDTH = 0;
|
|
7037
|
+
const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
|
|
7038
|
+
const TAB_WIDTH = widthOptions.tabWidth ?? 8;
|
|
7039
|
+
const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
|
|
7040
|
+
const FULL_WIDTH_WIDTH = 2;
|
|
7041
|
+
const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
|
|
7042
|
+
const WIDE_WIDTH = widthOptions.wideWidth ?? FULL_WIDTH_WIDTH;
|
|
7043
|
+
const PARSE_BLOCKS = [
|
|
7044
|
+
[LATIN_RE, REGULAR_WIDTH],
|
|
7045
|
+
[ANSI_RE, ANSI_WIDTH],
|
|
7046
|
+
[CONTROL_RE, CONTROL_WIDTH],
|
|
7047
|
+
[TAB_RE, TAB_WIDTH],
|
|
7048
|
+
[EMOJI_RE, EMOJI_WIDTH],
|
|
7049
|
+
[CJKT_WIDE_RE, WIDE_WIDTH]
|
|
7050
|
+
];
|
|
7051
|
+
let indexPrev = 0;
|
|
7052
|
+
let index = 0;
|
|
7053
|
+
let length = input.length;
|
|
7054
|
+
let lengthExtra = 0;
|
|
7055
|
+
let truncationEnabled = false;
|
|
7056
|
+
let truncationIndex = length;
|
|
7057
|
+
let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
|
|
7058
|
+
let unmatchedStart = 0;
|
|
7059
|
+
let unmatchedEnd = 0;
|
|
7060
|
+
let width = 0;
|
|
7061
|
+
let widthExtra = 0;
|
|
7062
|
+
outer:
|
|
7063
|
+
while (true) {
|
|
7064
|
+
if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
|
|
7065
|
+
const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
|
|
7066
|
+
lengthExtra = 0;
|
|
7067
|
+
for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
|
|
7068
|
+
const codePoint = char.codePointAt(0) || 0;
|
|
7069
|
+
if (isFullWidth(codePoint)) {
|
|
7070
|
+
widthExtra = FULL_WIDTH_WIDTH;
|
|
7071
|
+
} else if (isWideNotCJKTNotEmoji(codePoint)) {
|
|
7072
|
+
widthExtra = WIDE_WIDTH;
|
|
7073
|
+
} else {
|
|
7074
|
+
widthExtra = REGULAR_WIDTH;
|
|
7075
|
+
}
|
|
7076
|
+
if (width + widthExtra > truncationLimit) {
|
|
7077
|
+
truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
|
|
7078
|
+
}
|
|
7079
|
+
if (width + widthExtra > LIMIT) {
|
|
7080
|
+
truncationEnabled = true;
|
|
7081
|
+
break outer;
|
|
7082
|
+
}
|
|
7083
|
+
lengthExtra += char.length;
|
|
7084
|
+
width += widthExtra;
|
|
7085
|
+
}
|
|
7086
|
+
unmatchedStart = unmatchedEnd = 0;
|
|
7087
|
+
}
|
|
7088
|
+
if (index >= length) {
|
|
7089
|
+
break outer;
|
|
7090
|
+
}
|
|
7091
|
+
for (let i = 0, l = PARSE_BLOCKS.length;i < l; i++) {
|
|
7092
|
+
const [BLOCK_RE, BLOCK_WIDTH] = PARSE_BLOCKS[i];
|
|
7093
|
+
BLOCK_RE.lastIndex = index;
|
|
7094
|
+
if (BLOCK_RE.test(input)) {
|
|
7095
|
+
lengthExtra = BLOCK_RE === CJKT_WIDE_RE ? getCodePointsLength(input.slice(index, BLOCK_RE.lastIndex)) : BLOCK_RE === EMOJI_RE ? 1 : BLOCK_RE.lastIndex - index;
|
|
7096
|
+
widthExtra = lengthExtra * BLOCK_WIDTH;
|
|
7097
|
+
if (width + widthExtra > truncationLimit) {
|
|
7098
|
+
truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / BLOCK_WIDTH));
|
|
7099
|
+
}
|
|
7100
|
+
if (width + widthExtra > LIMIT) {
|
|
7101
|
+
truncationEnabled = true;
|
|
7102
|
+
break outer;
|
|
7103
|
+
}
|
|
7104
|
+
width += widthExtra;
|
|
7105
|
+
unmatchedStart = indexPrev;
|
|
7106
|
+
unmatchedEnd = index;
|
|
7107
|
+
index = indexPrev = BLOCK_RE.lastIndex;
|
|
7108
|
+
continue outer;
|
|
7109
|
+
}
|
|
7110
|
+
}
|
|
7111
|
+
index += 1;
|
|
7112
|
+
}
|
|
7113
|
+
return {
|
|
7114
|
+
width: truncationEnabled ? truncationLimit : width,
|
|
7115
|
+
index: truncationEnabled ? truncationIndex : length,
|
|
7116
|
+
truncated: truncationEnabled,
|
|
7117
|
+
ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
|
|
7118
|
+
};
|
|
7119
|
+
}, dist_default2;
|
|
7120
|
+
var init_dist2 = __esm(() => {
|
|
7121
|
+
init_utils();
|
|
7122
|
+
ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y;
|
|
7123
|
+
CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
|
|
7124
|
+
CJKT_WIDE_RE = /(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu;
|
|
7125
|
+
TAB_RE = /\t{1,1000}/y;
|
|
7126
|
+
EMOJI_RE = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
|
|
7127
|
+
LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
|
|
7128
|
+
MODIFIER_RE = /\p{M}+/gu;
|
|
7129
|
+
NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
|
|
7130
|
+
dist_default2 = getStringTruncatedWidth;
|
|
7131
|
+
});
|
|
7132
|
+
|
|
7133
|
+
// node_modules/fast-string-width/dist/index.js
|
|
7134
|
+
var NO_TRUNCATION2, fastStringWidth = (input, options = {}) => {
|
|
7135
|
+
return dist_default2(input, NO_TRUNCATION2, options).width;
|
|
7136
|
+
}, dist_default3;
|
|
7137
|
+
var init_dist3 = __esm(() => {
|
|
7138
|
+
init_dist2();
|
|
7139
|
+
NO_TRUNCATION2 = {
|
|
7140
|
+
limit: Infinity,
|
|
7141
|
+
ellipsis: "",
|
|
7142
|
+
ellipsisWidth: 0
|
|
7143
|
+
};
|
|
7144
|
+
dist_default3 = fastStringWidth;
|
|
7145
|
+
});
|
|
7146
|
+
|
|
7147
|
+
// node_modules/fast-wrap-ansi/lib/main.js
|
|
7148
|
+
function wrapAnsi2(string, columns, options) {
|
|
7149
|
+
return String(string).normalize().split(CRLF_OR_LF).map((line) => exec2(line, columns, options)).join(`
|
|
7150
|
+
`);
|
|
7151
|
+
}
|
|
7152
|
+
var ESC = "\x1B", CSI = "", END_CODE2 = 39, ANSI_ESCAPE_BELL2 = "\x07", ANSI_CSI2 = "[", ANSI_OSC2 = "]", ANSI_SGR_TERMINATOR2 = "m", ANSI_ESCAPE_LINK2, GROUP_REGEX, getClosingCode = (openingCode) => {
|
|
7153
|
+
if (openingCode >= 30 && openingCode <= 37)
|
|
7154
|
+
return 39;
|
|
7155
|
+
if (openingCode >= 90 && openingCode <= 97)
|
|
7156
|
+
return 39;
|
|
7157
|
+
if (openingCode >= 40 && openingCode <= 47)
|
|
7158
|
+
return 49;
|
|
7159
|
+
if (openingCode >= 100 && openingCode <= 107)
|
|
7160
|
+
return 49;
|
|
7161
|
+
if (openingCode === 1 || openingCode === 2)
|
|
7162
|
+
return 22;
|
|
7163
|
+
if (openingCode === 3)
|
|
7164
|
+
return 23;
|
|
7165
|
+
if (openingCode === 4)
|
|
7166
|
+
return 24;
|
|
7167
|
+
if (openingCode === 7)
|
|
7168
|
+
return 27;
|
|
7169
|
+
if (openingCode === 8)
|
|
7170
|
+
return 28;
|
|
7171
|
+
if (openingCode === 9)
|
|
7172
|
+
return 29;
|
|
7173
|
+
if (openingCode === 0)
|
|
7174
|
+
return 0;
|
|
7175
|
+
return;
|
|
7176
|
+
}, wrapAnsiCode2 = (code) => `${ESC}${ANSI_CSI2}${code}${ANSI_SGR_TERMINATOR2}`, wrapAnsiHyperlink2 = (url) => `${ESC}${ANSI_ESCAPE_LINK2}${url}${ANSI_ESCAPE_BELL2}`, wrapWord2 = (rows, word, columns) => {
|
|
7177
|
+
const characters = word[Symbol.iterator]();
|
|
7178
|
+
let isInsideEscape = false;
|
|
7179
|
+
let isInsideLinkEscape = false;
|
|
7180
|
+
let lastRow = rows.at(-1);
|
|
7181
|
+
let visible = lastRow === undefined ? 0 : dist_default3(lastRow);
|
|
7182
|
+
let currentCharacter = characters.next();
|
|
7183
|
+
let nextCharacter = characters.next();
|
|
7184
|
+
let rawCharacterIndex = 0;
|
|
7185
|
+
while (!currentCharacter.done) {
|
|
7186
|
+
const character = currentCharacter.value;
|
|
7187
|
+
const characterLength = dist_default3(character);
|
|
7188
|
+
if (visible + characterLength <= columns) {
|
|
7189
|
+
rows[rows.length - 1] += character;
|
|
7190
|
+
} else {
|
|
7191
|
+
rows.push(character);
|
|
7192
|
+
visible = 0;
|
|
7193
|
+
}
|
|
7194
|
+
if (character === ESC || character === CSI) {
|
|
7195
|
+
isInsideEscape = true;
|
|
7196
|
+
isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK2, rawCharacterIndex + 1);
|
|
7197
|
+
}
|
|
7198
|
+
if (isInsideEscape) {
|
|
7199
|
+
if (isInsideLinkEscape) {
|
|
7200
|
+
if (character === ANSI_ESCAPE_BELL2) {
|
|
7201
|
+
isInsideEscape = false;
|
|
7202
|
+
isInsideLinkEscape = false;
|
|
7203
|
+
}
|
|
7204
|
+
} else if (character === ANSI_SGR_TERMINATOR2) {
|
|
7205
|
+
isInsideEscape = false;
|
|
7206
|
+
}
|
|
7207
|
+
} else {
|
|
7208
|
+
visible += characterLength;
|
|
7209
|
+
if (visible === columns && !nextCharacter.done) {
|
|
7210
|
+
rows.push("");
|
|
7211
|
+
visible = 0;
|
|
7212
|
+
}
|
|
7213
|
+
}
|
|
7214
|
+
currentCharacter = nextCharacter;
|
|
7215
|
+
nextCharacter = characters.next();
|
|
7216
|
+
rawCharacterIndex += character.length;
|
|
7217
|
+
}
|
|
7218
|
+
lastRow = rows.at(-1);
|
|
7219
|
+
if (!visible && lastRow !== undefined && lastRow.length && rows.length > 1) {
|
|
7220
|
+
rows[rows.length - 2] += rows.pop();
|
|
7221
|
+
}
|
|
7222
|
+
}, stringVisibleTrimSpacesRight2 = (string) => {
|
|
7223
|
+
const words = string.split(" ");
|
|
7224
|
+
let last = words.length;
|
|
7225
|
+
while (last) {
|
|
7226
|
+
if (dist_default3(words[last - 1])) {
|
|
7227
|
+
break;
|
|
7228
|
+
}
|
|
7229
|
+
last--;
|
|
7230
|
+
}
|
|
7231
|
+
if (last === words.length) {
|
|
7232
|
+
return string;
|
|
7233
|
+
}
|
|
7234
|
+
return words.slice(0, last).join(" ") + words.slice(last).join("");
|
|
7235
|
+
}, exec2 = (string, columns, options = {}) => {
|
|
7236
|
+
if (options.trim !== false && string.trim() === "") {
|
|
7237
|
+
return "";
|
|
7238
|
+
}
|
|
7239
|
+
let returnValue = "";
|
|
7240
|
+
let escapeCode;
|
|
7241
|
+
let escapeUrl;
|
|
7242
|
+
const words = string.split(" ");
|
|
7243
|
+
let rows = [""];
|
|
7244
|
+
let rowLength = 0;
|
|
7245
|
+
for (let index = 0;index < words.length; index++) {
|
|
7246
|
+
const word = words[index];
|
|
7247
|
+
if (options.trim !== false) {
|
|
7248
|
+
const row = rows.at(-1) ?? "";
|
|
7249
|
+
const trimmed = row.trimStart();
|
|
7250
|
+
if (row.length !== trimmed.length) {
|
|
7251
|
+
rows[rows.length - 1] = trimmed;
|
|
7252
|
+
rowLength = dist_default3(trimmed);
|
|
7253
|
+
}
|
|
7254
|
+
}
|
|
7255
|
+
if (index !== 0) {
|
|
7256
|
+
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
7257
|
+
rows.push("");
|
|
7258
|
+
rowLength = 0;
|
|
7259
|
+
}
|
|
7260
|
+
if (rowLength || options.trim === false) {
|
|
7261
|
+
rows[rows.length - 1] += " ";
|
|
7262
|
+
rowLength++;
|
|
7263
|
+
}
|
|
7264
|
+
}
|
|
7265
|
+
const wordLength = dist_default3(word);
|
|
7266
|
+
if (options.hard && wordLength > columns) {
|
|
7267
|
+
const remainingColumns = columns - rowLength;
|
|
7268
|
+
const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
|
|
7269
|
+
const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
|
|
7270
|
+
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
7271
|
+
rows.push("");
|
|
7272
|
+
}
|
|
7273
|
+
wrapWord2(rows, word, columns);
|
|
7274
|
+
rowLength = dist_default3(rows.at(-1) ?? "");
|
|
7275
|
+
continue;
|
|
7276
|
+
}
|
|
7277
|
+
if (rowLength + wordLength > columns && rowLength && wordLength) {
|
|
7278
|
+
if (options.wordWrap === false && rowLength < columns) {
|
|
7279
|
+
wrapWord2(rows, word, columns);
|
|
7280
|
+
rowLength = dist_default3(rows.at(-1) ?? "");
|
|
7281
|
+
continue;
|
|
7282
|
+
}
|
|
7283
|
+
rows.push("");
|
|
7284
|
+
rowLength = 0;
|
|
7285
|
+
}
|
|
7286
|
+
if (rowLength + wordLength > columns && options.wordWrap === false) {
|
|
7287
|
+
wrapWord2(rows, word, columns);
|
|
7288
|
+
rowLength = dist_default3(rows.at(-1) ?? "");
|
|
7289
|
+
continue;
|
|
7290
|
+
}
|
|
7291
|
+
rows[rows.length - 1] += word;
|
|
7292
|
+
rowLength += wordLength;
|
|
7293
|
+
}
|
|
7294
|
+
if (options.trim !== false) {
|
|
7295
|
+
rows = rows.map((row) => stringVisibleTrimSpacesRight2(row));
|
|
7296
|
+
}
|
|
7297
|
+
const preString = rows.join(`
|
|
7298
|
+
`);
|
|
7299
|
+
let inSurrogate = false;
|
|
7300
|
+
for (let i = 0;i < preString.length; i++) {
|
|
7301
|
+
const character = preString[i];
|
|
7302
|
+
returnValue += character;
|
|
7303
|
+
if (!inSurrogate) {
|
|
7304
|
+
inSurrogate = character >= "\uD800" && character <= "\uDBFF";
|
|
7305
|
+
if (inSurrogate) {
|
|
7306
|
+
continue;
|
|
7307
|
+
}
|
|
7308
|
+
} else {
|
|
7309
|
+
inSurrogate = false;
|
|
7310
|
+
}
|
|
7311
|
+
if (character === ESC || character === CSI) {
|
|
7312
|
+
GROUP_REGEX.lastIndex = i + 1;
|
|
7313
|
+
const groupsResult = GROUP_REGEX.exec(preString);
|
|
7314
|
+
const groups = groupsResult?.groups;
|
|
7315
|
+
if (groups?.code !== undefined) {
|
|
7316
|
+
const code = Number.parseFloat(groups.code);
|
|
7317
|
+
escapeCode = code === END_CODE2 ? undefined : code;
|
|
7318
|
+
} else if (groups?.uri !== undefined) {
|
|
7319
|
+
escapeUrl = groups.uri.length === 0 ? undefined : groups.uri;
|
|
7320
|
+
}
|
|
7321
|
+
}
|
|
7322
|
+
if (preString[i + 1] === `
|
|
7323
|
+
`) {
|
|
7324
|
+
if (escapeUrl) {
|
|
7325
|
+
returnValue += wrapAnsiHyperlink2("");
|
|
7326
|
+
}
|
|
7327
|
+
const closingCode = escapeCode ? getClosingCode(escapeCode) : undefined;
|
|
7328
|
+
if (escapeCode && closingCode) {
|
|
7329
|
+
returnValue += wrapAnsiCode2(closingCode);
|
|
7330
|
+
}
|
|
7331
|
+
} else if (character === `
|
|
7332
|
+
`) {
|
|
7333
|
+
if (escapeCode && getClosingCode(escapeCode)) {
|
|
7334
|
+
returnValue += wrapAnsiCode2(escapeCode);
|
|
7335
|
+
}
|
|
7336
|
+
if (escapeUrl) {
|
|
7337
|
+
returnValue += wrapAnsiHyperlink2(escapeUrl);
|
|
7338
|
+
}
|
|
7339
|
+
}
|
|
7340
|
+
}
|
|
7341
|
+
return returnValue;
|
|
7342
|
+
}, CRLF_OR_LF;
|
|
7343
|
+
var init_main = __esm(() => {
|
|
7344
|
+
init_dist3();
|
|
7345
|
+
ANSI_ESCAPE_LINK2 = `${ANSI_OSC2}8;;`;
|
|
7346
|
+
GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI2}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK2}(?<uri>.*)${ANSI_ESCAPE_BELL2})`, "y");
|
|
7347
|
+
CRLF_OR_LF = /\r?\n/;
|
|
7348
|
+
});
|
|
7349
|
+
|
|
7011
7350
|
// node_modules/@inquirer/core/dist/lib/utils.js
|
|
7012
7351
|
function breakLines(content, width) {
|
|
7013
7352
|
return content.split(`
|
|
7014
|
-
`).flatMap((line) =>
|
|
7353
|
+
`).flatMap((line) => wrapAnsi2(line, width, { trim: false, hard: true }).split(`
|
|
7015
7354
|
`).map((str) => str.trimEnd())).join(`
|
|
7016
7355
|
`);
|
|
7017
7356
|
}
|
|
@@ -7019,8 +7358,8 @@ function readlineWidth() {
|
|
|
7019
7358
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
|
7020
7359
|
}
|
|
7021
7360
|
var import_cli_width;
|
|
7022
|
-
var
|
|
7023
|
-
|
|
7361
|
+
var init_utils2 = __esm(() => {
|
|
7362
|
+
init_main();
|
|
7024
7363
|
init_hook_engine();
|
|
7025
7364
|
import_cli_width = __toESM(require_cli_width(), 1);
|
|
7026
7365
|
});
|
|
@@ -7093,7 +7432,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
7093
7432
|
}
|
|
7094
7433
|
var init_use_pagination = __esm(() => {
|
|
7095
7434
|
init_use_ref();
|
|
7096
|
-
|
|
7435
|
+
init_utils2();
|
|
7097
7436
|
});
|
|
7098
7437
|
|
|
7099
7438
|
// node_modules/mute-stream/lib/index.js
|
|
@@ -7217,17 +7556,17 @@ var require_lib = __commonJS((exports, module) => {
|
|
|
7217
7556
|
});
|
|
7218
7557
|
|
|
7219
7558
|
// node_modules/@inquirer/ansi/dist/index.js
|
|
7220
|
-
var
|
|
7559
|
+
var ESC2 = "\x1B[", cursorLeft, cursorHide, cursorShow, cursorUp = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "", cursorDown = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "", cursorTo = (x, y) => {
|
|
7221
7560
|
if (typeof y === "number" && !Number.isNaN(y)) {
|
|
7222
|
-
return `${
|
|
7561
|
+
return `${ESC2}${y + 1};${x + 1}H`;
|
|
7223
7562
|
}
|
|
7224
|
-
return `${
|
|
7563
|
+
return `${ESC2}${x + 1}G`;
|
|
7225
7564
|
}, eraseLine, eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
|
7226
|
-
var
|
|
7227
|
-
cursorLeft =
|
|
7228
|
-
cursorHide =
|
|
7229
|
-
cursorShow =
|
|
7230
|
-
eraseLine =
|
|
7565
|
+
var init_dist4 = __esm(() => {
|
|
7566
|
+
cursorLeft = ESC2 + "G";
|
|
7567
|
+
cursorHide = ESC2 + "?25l";
|
|
7568
|
+
cursorShow = ESC2 + "?25h";
|
|
7569
|
+
eraseLine = ESC2 + "2K";
|
|
7231
7570
|
});
|
|
7232
7571
|
|
|
7233
7572
|
// node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
@@ -7295,8 +7634,8 @@ var height = (content) => content.split(`
|
|
|
7295
7634
|
`).length, lastLine = (content) => content.split(`
|
|
7296
7635
|
`).pop() ?? "";
|
|
7297
7636
|
var init_screen_manager = __esm(() => {
|
|
7298
|
-
|
|
7299
|
-
|
|
7637
|
+
init_utils2();
|
|
7638
|
+
init_dist4();
|
|
7300
7639
|
});
|
|
7301
7640
|
|
|
7302
7641
|
// node_modules/@inquirer/core/dist/lib/promise-polyfill.js
|
|
@@ -7433,7 +7772,7 @@ var init_Separator = __esm(() => {
|
|
|
7433
7772
|
});
|
|
7434
7773
|
|
|
7435
7774
|
// node_modules/@inquirer/core/dist/index.js
|
|
7436
|
-
var
|
|
7775
|
+
var init_dist5 = __esm(() => {
|
|
7437
7776
|
init_use_prefix();
|
|
7438
7777
|
init_use_state();
|
|
7439
7778
|
init_use_effect();
|
|
@@ -7492,12 +7831,12 @@ function normalizeChoices(choices) {
|
|
|
7492
7831
|
return normalizedChoice;
|
|
7493
7832
|
});
|
|
7494
7833
|
}
|
|
7495
|
-
var checkboxTheme,
|
|
7496
|
-
var
|
|
7497
|
-
|
|
7498
|
-
|
|
7834
|
+
var checkboxTheme, dist_default4;
|
|
7835
|
+
var init_dist6 = __esm(() => {
|
|
7836
|
+
init_dist5();
|
|
7837
|
+
init_dist4();
|
|
7499
7838
|
init_dist();
|
|
7500
|
-
|
|
7839
|
+
init_dist5();
|
|
7501
7840
|
checkboxTheme = {
|
|
7502
7841
|
icon: {
|
|
7503
7842
|
checked: styleText3("green", dist_default.circleFilled),
|
|
@@ -7512,7 +7851,7 @@ var init_dist4 = __esm(() => {
|
|
|
7512
7851
|
},
|
|
7513
7852
|
keybindings: []
|
|
7514
7853
|
};
|
|
7515
|
-
|
|
7854
|
+
dist_default4 = createPrompt((config, done) => {
|
|
7516
7855
|
const { pageSize = 7, loop = true, required, validate = () => true } = config;
|
|
7517
7856
|
const shortcuts = { all: "a", invert: "i", ...config.shortcuts };
|
|
7518
7857
|
const theme = makeTheme(checkboxTheme, config.theme);
|
|
@@ -17137,7 +17476,7 @@ class ExternalEditor {
|
|
|
17137
17476
|
}
|
|
17138
17477
|
}
|
|
17139
17478
|
var import_chardet, import_iconv_lite;
|
|
17140
|
-
var
|
|
17479
|
+
var init_dist7 = __esm(() => {
|
|
17141
17480
|
init_CreateFileError();
|
|
17142
17481
|
init_LaunchEditorError();
|
|
17143
17482
|
init_ReadFileError();
|
|
@@ -17147,14 +17486,14 @@ var init_dist5 = __esm(() => {
|
|
|
17147
17486
|
});
|
|
17148
17487
|
|
|
17149
17488
|
// node_modules/@inquirer/editor/dist/index.js
|
|
17150
|
-
var editorTheme,
|
|
17151
|
-
var
|
|
17489
|
+
var editorTheme, dist_default5;
|
|
17490
|
+
var init_dist8 = __esm(() => {
|
|
17491
|
+
init_dist7();
|
|
17152
17492
|
init_dist5();
|
|
17153
|
-
init_dist3();
|
|
17154
17493
|
editorTheme = {
|
|
17155
17494
|
validationFailureMode: "keep"
|
|
17156
17495
|
};
|
|
17157
|
-
|
|
17496
|
+
dist_default5 = createPrompt((config, done) => {
|
|
17158
17497
|
const { waitForUserInput = true, file: { postfix = config.postfix ?? ".txt", ...fileProps } = {}, validate = () => true } = config;
|
|
17159
17498
|
const theme = makeTheme(editorTheme, config.theme);
|
|
17160
17499
|
const [status, setStatus] = useState("idle");
|
|
@@ -17232,10 +17571,10 @@ function getBooleanValue(value, defaultValue) {
|
|
|
17232
17571
|
function boolToString(value) {
|
|
17233
17572
|
return value ? "Yes" : "No";
|
|
17234
17573
|
}
|
|
17235
|
-
var
|
|
17236
|
-
var
|
|
17237
|
-
|
|
17238
|
-
|
|
17574
|
+
var dist_default6;
|
|
17575
|
+
var init_dist9 = __esm(() => {
|
|
17576
|
+
init_dist5();
|
|
17577
|
+
dist_default6 = createPrompt((config, done) => {
|
|
17239
17578
|
const { transformer = boolToString } = config;
|
|
17240
17579
|
const [status, setStatus] = useState("idle");
|
|
17241
17580
|
const [value, setValue] = useState("");
|
|
@@ -17271,17 +17610,17 @@ var init_dist7 = __esm(() => {
|
|
|
17271
17610
|
});
|
|
17272
17611
|
|
|
17273
17612
|
// node_modules/@inquirer/input/dist/index.js
|
|
17274
|
-
var inputTheme,
|
|
17275
|
-
var
|
|
17276
|
-
|
|
17613
|
+
var inputTheme, dist_default7;
|
|
17614
|
+
var init_dist10 = __esm(() => {
|
|
17615
|
+
init_dist5();
|
|
17277
17616
|
inputTheme = {
|
|
17278
17617
|
validationFailureMode: "keep"
|
|
17279
17618
|
};
|
|
17280
|
-
|
|
17619
|
+
dist_default7 = createPrompt((config, done) => {
|
|
17281
17620
|
const { prefill = "tab" } = config;
|
|
17282
17621
|
const theme = makeTheme(inputTheme, config.theme);
|
|
17283
17622
|
const [status, setStatus] = useState("idle");
|
|
17284
|
-
const [defaultValue
|
|
17623
|
+
const [defaultValue, setDefaultValue] = useState(String(config.default ?? ""));
|
|
17285
17624
|
const [errorMsg, setError] = useState();
|
|
17286
17625
|
const [value, setValue] = useState("");
|
|
17287
17626
|
const prefix = usePrefix({ status, theme });
|
|
@@ -17320,9 +17659,9 @@ var init_dist8 = __esm(() => {
|
|
|
17320
17659
|
setStatus("idle");
|
|
17321
17660
|
}
|
|
17322
17661
|
} else if (isBackspaceKey(key) && !value) {
|
|
17323
|
-
setDefaultValue(
|
|
17662
|
+
setDefaultValue("");
|
|
17324
17663
|
} else if (isTabKey(key) && !value) {
|
|
17325
|
-
setDefaultValue(
|
|
17664
|
+
setDefaultValue("");
|
|
17326
17665
|
rl.clearLine(0);
|
|
17327
17666
|
rl.write(defaultValue);
|
|
17328
17667
|
setValue(defaultValue);
|
|
@@ -17376,10 +17715,10 @@ function validateNumber(value, { min, max, step }) {
|
|
|
17376
17715
|
}
|
|
17377
17716
|
return true;
|
|
17378
17717
|
}
|
|
17379
|
-
var
|
|
17380
|
-
var
|
|
17381
|
-
|
|
17382
|
-
|
|
17718
|
+
var dist_default8;
|
|
17719
|
+
var init_dist11 = __esm(() => {
|
|
17720
|
+
init_dist5();
|
|
17721
|
+
dist_default8 = createPrompt((config, done) => {
|
|
17383
17722
|
const { validate = () => true, min = -Infinity, max = Infinity, step = 1, required = false } = config;
|
|
17384
17723
|
const theme = makeTheme(config.theme);
|
|
17385
17724
|
const [status, setStatus] = useState("idle");
|
|
@@ -17460,15 +17799,15 @@ function normalizeChoices2(choices) {
|
|
|
17460
17799
|
};
|
|
17461
17800
|
});
|
|
17462
17801
|
}
|
|
17463
|
-
var helpChoice,
|
|
17464
|
-
var
|
|
17465
|
-
|
|
17802
|
+
var helpChoice, dist_default9;
|
|
17803
|
+
var init_dist12 = __esm(() => {
|
|
17804
|
+
init_dist5();
|
|
17466
17805
|
helpChoice = {
|
|
17467
17806
|
key: "h",
|
|
17468
17807
|
name: "Help, list all options",
|
|
17469
17808
|
value: undefined
|
|
17470
17809
|
};
|
|
17471
|
-
|
|
17810
|
+
dist_default9 = createPrompt((config, done) => {
|
|
17472
17811
|
const { default: defaultKey = "h" } = config;
|
|
17473
17812
|
const choices = useMemo(() => normalizeChoices2(config.choices), [config.choices]);
|
|
17474
17813
|
const [status, setStatus] = useState("idle");
|
|
@@ -17586,16 +17925,16 @@ function getSelectedChoice(input, choices) {
|
|
|
17586
17925
|
}
|
|
17587
17926
|
return selectedChoice ? [selectedChoice, choices.indexOf(selectedChoice)] : [undefined, undefined];
|
|
17588
17927
|
}
|
|
17589
|
-
var numberRegex, rawlistTheme,
|
|
17590
|
-
var
|
|
17591
|
-
|
|
17928
|
+
var numberRegex, rawlistTheme, dist_default10;
|
|
17929
|
+
var init_dist13 = __esm(() => {
|
|
17930
|
+
init_dist5();
|
|
17592
17931
|
numberRegex = /\d+/;
|
|
17593
17932
|
rawlistTheme = {
|
|
17594
17933
|
style: {
|
|
17595
17934
|
description: (text) => styleText5("cyan", text)
|
|
17596
17935
|
}
|
|
17597
17936
|
};
|
|
17598
|
-
|
|
17937
|
+
dist_default10 = createPrompt((config, done) => {
|
|
17599
17938
|
const { loop = true } = config;
|
|
17600
17939
|
const choices = useMemo(() => normalizeChoices3(config.choices), [config.choices]);
|
|
17601
17940
|
const [status, setStatus] = useState("idle");
|
|
@@ -17678,11 +18017,11 @@ var init_dist11 = __esm(() => {
|
|
|
17678
18017
|
});
|
|
17679
18018
|
|
|
17680
18019
|
// node_modules/@inquirer/password/dist/index.js
|
|
17681
|
-
var
|
|
17682
|
-
var
|
|
17683
|
-
|
|
17684
|
-
|
|
17685
|
-
|
|
18020
|
+
var dist_default11;
|
|
18021
|
+
var init_dist14 = __esm(() => {
|
|
18022
|
+
init_dist5();
|
|
18023
|
+
init_dist4();
|
|
18024
|
+
dist_default11 = createPrompt((config, done) => {
|
|
17686
18025
|
const { validate = () => true } = config;
|
|
17687
18026
|
const theme = makeTheme(config.theme);
|
|
17688
18027
|
const [status, setStatus] = useState("idle");
|
|
@@ -17761,9 +18100,9 @@ function normalizeChoices4(choices) {
|
|
|
17761
18100
|
return normalizedChoice;
|
|
17762
18101
|
});
|
|
17763
18102
|
}
|
|
17764
|
-
var searchTheme,
|
|
17765
|
-
var
|
|
17766
|
-
|
|
18103
|
+
var searchTheme, dist_default12;
|
|
18104
|
+
var init_dist15 = __esm(() => {
|
|
18105
|
+
init_dist5();
|
|
17767
18106
|
init_dist();
|
|
17768
18107
|
searchTheme = {
|
|
17769
18108
|
icon: { cursor: dist_default.pointer },
|
|
@@ -17774,7 +18113,7 @@ var init_dist13 = __esm(() => {
|
|
|
17774
18113
|
keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText6("bold", key)} ${styleText6("dim", action)}`).join(styleText6("dim", " • "))
|
|
17775
18114
|
}
|
|
17776
18115
|
};
|
|
17777
|
-
|
|
18116
|
+
dist_default12 = createPrompt((config, done) => {
|
|
17778
18117
|
const { pageSize = 7, validate = () => true } = config;
|
|
17779
18118
|
const theme = makeTheme(searchTheme, config.theme);
|
|
17780
18119
|
const [status, setStatus] = useState("loading");
|
|
@@ -17938,10 +18277,10 @@ function normalizeChoices5(choices) {
|
|
|
17938
18277
|
return normalizedChoice;
|
|
17939
18278
|
});
|
|
17940
18279
|
}
|
|
17941
|
-
var selectTheme,
|
|
17942
|
-
var
|
|
17943
|
-
|
|
17944
|
-
|
|
18280
|
+
var selectTheme, dist_default13;
|
|
18281
|
+
var init_dist16 = __esm(() => {
|
|
18282
|
+
init_dist5();
|
|
18283
|
+
init_dist4();
|
|
17945
18284
|
init_dist();
|
|
17946
18285
|
selectTheme = {
|
|
17947
18286
|
icon: { cursor: dist_default.pointer },
|
|
@@ -17953,7 +18292,7 @@ var init_dist14 = __esm(() => {
|
|
|
17953
18292
|
indexMode: "hidden",
|
|
17954
18293
|
keybindings: []
|
|
17955
18294
|
};
|
|
17956
|
-
|
|
18295
|
+
dist_default13 = createPrompt((config, done) => {
|
|
17957
18296
|
const { loop = true, pageSize = 7 } = config;
|
|
17958
18297
|
const theme = makeTheme(selectTheme, config.theme);
|
|
17959
18298
|
const { keybindings } = theme;
|
|
@@ -18071,10 +18410,8 @@ var init_dist14 = __esm(() => {
|
|
|
18071
18410
|
});
|
|
18072
18411
|
|
|
18073
18412
|
// node_modules/@inquirer/prompts/dist/index.js
|
|
18074
|
-
var
|
|
18075
|
-
init_dist4();
|
|
18413
|
+
var init_dist17 = __esm(() => {
|
|
18076
18414
|
init_dist6();
|
|
18077
|
-
init_dist7();
|
|
18078
18415
|
init_dist8();
|
|
18079
18416
|
init_dist9();
|
|
18080
18417
|
init_dist10();
|
|
@@ -18082,6 +18419,8 @@ var init_dist15 = __esm(() => {
|
|
|
18082
18419
|
init_dist12();
|
|
18083
18420
|
init_dist13();
|
|
18084
18421
|
init_dist14();
|
|
18422
|
+
init_dist15();
|
|
18423
|
+
init_dist16();
|
|
18085
18424
|
});
|
|
18086
18425
|
|
|
18087
18426
|
// node_modules/rxjs/dist/cjs/internal/util/isFunction.js
|
|
@@ -27310,8 +27649,8 @@ class PromptsRunner {
|
|
|
27310
27649
|
}
|
|
27311
27650
|
var import_rxjs, import_run_async, import_mute_stream2, _, TTYError;
|
|
27312
27651
|
var init_prompt = __esm(() => {
|
|
27313
|
-
|
|
27314
|
-
|
|
27652
|
+
init_dist5();
|
|
27653
|
+
init_dist4();
|
|
27315
27654
|
import_rxjs = __toESM(require_cjs(), 1);
|
|
27316
27655
|
import_run_async = __toESM(require_run_async(), 1);
|
|
27317
27656
|
import_mute_stream2 = __toESM(require_lib(), 1);
|
|
@@ -27344,7 +27683,7 @@ var init_prompt = __esm(() => {
|
|
|
27344
27683
|
// node_modules/inquirer/dist/index.js
|
|
27345
27684
|
var exports_dist = {};
|
|
27346
27685
|
__export(exports_dist, {
|
|
27347
|
-
default: () =>
|
|
27686
|
+
default: () => dist_default14,
|
|
27348
27687
|
createPromptModule: () => createPromptModule
|
|
27349
27688
|
});
|
|
27350
27689
|
function createPromptModule(opt) {
|
|
@@ -27369,21 +27708,21 @@ function registerPrompt(name, newPrompt) {
|
|
|
27369
27708
|
function restoreDefaultPrompts() {
|
|
27370
27709
|
prompt.restoreDefaultPrompts();
|
|
27371
27710
|
}
|
|
27372
|
-
var builtInPrompts, prompt, inquirer,
|
|
27373
|
-
var
|
|
27374
|
-
|
|
27711
|
+
var builtInPrompts, prompt, inquirer, dist_default14;
|
|
27712
|
+
var init_dist18 = __esm(() => {
|
|
27713
|
+
init_dist17();
|
|
27375
27714
|
init_prompt();
|
|
27376
27715
|
builtInPrompts = {
|
|
27377
|
-
input:
|
|
27378
|
-
select:
|
|
27379
|
-
number:
|
|
27380
|
-
confirm:
|
|
27381
|
-
rawlist:
|
|
27382
|
-
expand:
|
|
27383
|
-
checkbox:
|
|
27384
|
-
password:
|
|
27385
|
-
editor:
|
|
27386
|
-
search:
|
|
27716
|
+
input: dist_default7,
|
|
27717
|
+
select: dist_default13,
|
|
27718
|
+
number: dist_default8,
|
|
27719
|
+
confirm: dist_default6,
|
|
27720
|
+
rawlist: dist_default10,
|
|
27721
|
+
expand: dist_default9,
|
|
27722
|
+
checkbox: dist_default4,
|
|
27723
|
+
password: dist_default11,
|
|
27724
|
+
editor: dist_default5,
|
|
27725
|
+
search: dist_default12
|
|
27387
27726
|
};
|
|
27388
27727
|
prompt = createPromptModule();
|
|
27389
27728
|
inquirer = {
|
|
@@ -27396,41 +27735,31 @@ var init_dist16 = __esm(() => {
|
|
|
27396
27735
|
restoreDefaultPrompts,
|
|
27397
27736
|
Separator
|
|
27398
27737
|
};
|
|
27399
|
-
|
|
27738
|
+
dist_default14 = inquirer;
|
|
27400
27739
|
});
|
|
27401
27740
|
|
|
27402
27741
|
// src/utils/core/terminal.ts
|
|
27403
27742
|
import { writeSync } from "fs";
|
|
27404
|
-
var spinner = null, exitHandlersRegistered = false,
|
|
27743
|
+
var spinner = null, exitHandlersRegistered = false, globalExitMessage, setGlobalExitMessage = (message) => {
|
|
27744
|
+
globalExitMessage = message;
|
|
27745
|
+
}, emergencyTerminalCleanup = () => {
|
|
27405
27746
|
try {
|
|
27406
27747
|
writeSync(1, TERMINAL_RESET);
|
|
27748
|
+
if (globalExitMessage) {
|
|
27749
|
+
writeSync(1, globalExitMessage + `
|
|
27750
|
+
`);
|
|
27751
|
+
}
|
|
27407
27752
|
} catch {}
|
|
27408
27753
|
}, registerExitHandlers = () => {
|
|
27409
27754
|
if (exitHandlersRegistered)
|
|
27410
27755
|
return;
|
|
27411
27756
|
exitHandlersRegistered = true;
|
|
27412
27757
|
process.on("exit", emergencyTerminalCleanup);
|
|
27413
|
-
process.on("
|
|
27414
|
-
process.on("
|
|
27415
|
-
|
|
27416
|
-
|
|
27417
|
-
|
|
27418
|
-
process.on("SIGTERM", () => {
|
|
27419
|
-
emergencyTerminalCleanup();
|
|
27420
|
-
process.exit(143);
|
|
27421
|
-
});
|
|
27422
|
-
process.on("SIGHUP", () => {
|
|
27423
|
-
emergencyTerminalCleanup();
|
|
27424
|
-
process.exit(128);
|
|
27425
|
-
});
|
|
27426
|
-
process.on("uncaughtException", () => {
|
|
27427
|
-
emergencyTerminalCleanup();
|
|
27428
|
-
process.exit(1);
|
|
27429
|
-
});
|
|
27430
|
-
process.on("unhandledRejection", () => {
|
|
27431
|
-
emergencyTerminalCleanup();
|
|
27432
|
-
process.exit(1);
|
|
27433
|
-
});
|
|
27758
|
+
process.on("SIGINT", () => process.exit(130));
|
|
27759
|
+
process.on("SIGTERM", () => process.exit(143));
|
|
27760
|
+
process.on("SIGHUP", () => process.exit(128));
|
|
27761
|
+
process.on("uncaughtException", () => process.exit(1));
|
|
27762
|
+
process.on("unhandledRejection", () => process.exit(1));
|
|
27434
27763
|
}, successMessage = (message) => {
|
|
27435
27764
|
console.log(source_default.green("✓") + " " + message);
|
|
27436
27765
|
}, errorMessage = (message) => {
|
|
@@ -27471,14 +27800,8 @@ var spinner = null, exitHandlersRegistered = false, emergencyTerminalCleanup = (
|
|
|
27471
27800
|
console.log(JSON.stringify(data, null, 2));
|
|
27472
27801
|
}, filePath = (path2) => source_default.cyan(path2), enterFullscreen = () => {
|
|
27473
27802
|
process.stdout.write(TERMINAL_SEQUENCES.ENTER_ALTERNATE_SCREEN + TERMINAL_SEQUENCES.CLEAR_SCREEN + TERMINAL_SEQUENCES.CURSOR_HOME);
|
|
27474
|
-
}, exitFullscreen = () => {
|
|
27475
|
-
try {
|
|
27476
|
-
writeSync(1, TERMINAL_RESET);
|
|
27477
|
-
} catch {}
|
|
27478
|
-
}, clearScreen = () => {
|
|
27479
|
-
process.stdout.write(TERMINAL_SEQUENCES.CLEAR_SCREEN + TERMINAL_SEQUENCES.CLEAR_SCROLLBACK + TERMINAL_SEQUENCES.CURSOR_HOME);
|
|
27480
27803
|
}, askConfirm = async (message) => {
|
|
27481
|
-
const inquirer2 = (await Promise.resolve().then(() => (
|
|
27804
|
+
const inquirer2 = (await Promise.resolve().then(() => (init_dist18(), exports_dist))).default;
|
|
27482
27805
|
const answer = await inquirer2.prompt([
|
|
27483
27806
|
{
|
|
27484
27807
|
type: "confirm",
|
|
@@ -29940,7 +30263,7 @@ var _serialize = (data, escapeColonStrings = true) => {
|
|
|
29940
30263
|
}
|
|
29941
30264
|
return value;
|
|
29942
30265
|
});
|
|
29943
|
-
var
|
|
30266
|
+
var init_dist19 = () => {};
|
|
29944
30267
|
|
|
29945
30268
|
// node_modules/cacheable-request/node_modules/keyv/dist/index.js
|
|
29946
30269
|
var EventManager = class {
|
|
@@ -30011,8 +30334,8 @@ var EventManager = class {
|
|
|
30011
30334
|
this._maxListeners = n2;
|
|
30012
30335
|
}
|
|
30013
30336
|
}, event_manager_default, HooksManager, hooks_manager_default, StatsManager, stats_manager_default, iterableAdapters, Keyv;
|
|
30014
|
-
var
|
|
30015
|
-
|
|
30337
|
+
var init_dist20 = __esm(() => {
|
|
30338
|
+
init_dist19();
|
|
30016
30339
|
event_manager_default = EventManager;
|
|
30017
30340
|
HooksManager = class extends event_manager_default {
|
|
30018
30341
|
_hookHandlers;
|
|
@@ -31319,10 +31642,10 @@ var import_http_cache_semantics, entries, cloneResponse = (response) => {
|
|
|
31319
31642
|
path: u2.pathname + u2.search,
|
|
31320
31643
|
href: u2.href
|
|
31321
31644
|
};
|
|
31322
|
-
},
|
|
31323
|
-
var
|
|
31645
|
+
}, dist_default15;
|
|
31646
|
+
var init_dist21 = __esm(() => {
|
|
31324
31647
|
init_source2();
|
|
31325
|
-
|
|
31648
|
+
init_dist20();
|
|
31326
31649
|
init_mimic_response();
|
|
31327
31650
|
init_normalize_url();
|
|
31328
31651
|
init_responselike();
|
|
@@ -31330,7 +31653,7 @@ var init_dist19 = __esm(() => {
|
|
|
31330
31653
|
import_http_cache_semantics = __toESM(require_http_cache_semantics(), 1);
|
|
31331
31654
|
init_types();
|
|
31332
31655
|
entries = Object.entries;
|
|
31333
|
-
|
|
31656
|
+
dist_default15 = CacheableRequest;
|
|
31334
31657
|
});
|
|
31335
31658
|
|
|
31336
31659
|
// node_modules/decompress-response/index.js
|
|
@@ -35604,7 +35927,7 @@ import http2, { ServerResponse } from "node:http";
|
|
|
35604
35927
|
var supportsBrotli, supportsZstd2, methodsWithoutBody, cacheableStore, redirectCodes, errorsProcessedByHooks, proxiedRequestEvents, noop3 = () => {}, Request;
|
|
35605
35928
|
var init_core = __esm(() => {
|
|
35606
35929
|
init_byte_counter();
|
|
35607
|
-
|
|
35930
|
+
init_dist21();
|
|
35608
35931
|
init_decompress_response();
|
|
35609
35932
|
init_distribution();
|
|
35610
35933
|
init_lib();
|
|
@@ -36355,7 +36678,7 @@ var init_core = __esm(() => {
|
|
|
36355
36678
|
if (cacheableStore.has(cache)) {
|
|
36356
36679
|
return;
|
|
36357
36680
|
}
|
|
36358
|
-
const cacheableRequest = new
|
|
36681
|
+
const cacheableRequest = new dist_default15((requestOptions, handler) => {
|
|
36359
36682
|
const wrappedHandler = handler ? (response) => {
|
|
36360
36683
|
const { beforeCacheHooks, gotRequest } = requestOptions;
|
|
36361
36684
|
if (!beforeCacheHooks || beforeCacheHooks.length === 0) {
|
|
@@ -37409,7 +37732,7 @@ var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)), isConnect
|
|
|
37409
37732
|
}
|
|
37410
37733
|
return COPILOT_INITIAL_RETRY_DELAY * Math.pow(2, attempt);
|
|
37411
37734
|
};
|
|
37412
|
-
var
|
|
37735
|
+
var init_utils3 = __esm(() => {
|
|
37413
37736
|
init_copilot();
|
|
37414
37737
|
QUOTA_EXCEEDED_PATTERNS = [
|
|
37415
37738
|
/quota/i,
|
|
@@ -38275,14 +38598,14 @@ class LinearScrollAccel {
|
|
|
38275
38598
|
reset() {}
|
|
38276
38599
|
}
|
|
38277
38600
|
function isCompleteSequence(data) {
|
|
38278
|
-
if (!data.startsWith(
|
|
38601
|
+
if (!data.startsWith(ESC3)) {
|
|
38279
38602
|
return "not-escape";
|
|
38280
38603
|
}
|
|
38281
38604
|
if (data.length === 1) {
|
|
38282
38605
|
return "incomplete";
|
|
38283
38606
|
}
|
|
38284
38607
|
const afterEsc = data.slice(1);
|
|
38285
|
-
if (afterEsc.startsWith(
|
|
38608
|
+
if (afterEsc.startsWith(ESC3)) {
|
|
38286
38609
|
return isCompleteSequence(afterEsc);
|
|
38287
38610
|
}
|
|
38288
38611
|
if (afterEsc.startsWith("[")) {
|
|
@@ -38309,7 +38632,7 @@ function isCompleteSequence(data) {
|
|
|
38309
38632
|
return "complete";
|
|
38310
38633
|
}
|
|
38311
38634
|
function isCompleteCsiSequence(data) {
|
|
38312
|
-
if (!data.startsWith(
|
|
38635
|
+
if (!data.startsWith(ESC3 + "[")) {
|
|
38313
38636
|
return "complete";
|
|
38314
38637
|
}
|
|
38315
38638
|
if (data.length < 3) {
|
|
@@ -38337,28 +38660,28 @@ function isCompleteCsiSequence(data) {
|
|
|
38337
38660
|
return "incomplete";
|
|
38338
38661
|
}
|
|
38339
38662
|
function isCompleteOscSequence(data) {
|
|
38340
|
-
if (!data.startsWith(
|
|
38663
|
+
if (!data.startsWith(ESC3 + "]")) {
|
|
38341
38664
|
return "complete";
|
|
38342
38665
|
}
|
|
38343
|
-
if (data.endsWith(
|
|
38666
|
+
if (data.endsWith(ESC3 + "\\") || data.endsWith("\x07")) {
|
|
38344
38667
|
return "complete";
|
|
38345
38668
|
}
|
|
38346
38669
|
return "incomplete";
|
|
38347
38670
|
}
|
|
38348
38671
|
function isCompleteDcsSequence(data) {
|
|
38349
|
-
if (!data.startsWith(
|
|
38672
|
+
if (!data.startsWith(ESC3 + "P")) {
|
|
38350
38673
|
return "complete";
|
|
38351
38674
|
}
|
|
38352
|
-
if (data.endsWith(
|
|
38675
|
+
if (data.endsWith(ESC3 + "\\")) {
|
|
38353
38676
|
return "complete";
|
|
38354
38677
|
}
|
|
38355
38678
|
return "incomplete";
|
|
38356
38679
|
}
|
|
38357
38680
|
function isCompleteApcSequence(data) {
|
|
38358
|
-
if (!data.startsWith(
|
|
38681
|
+
if (!data.startsWith(ESC3 + "_")) {
|
|
38359
38682
|
return "complete";
|
|
38360
38683
|
}
|
|
38361
|
-
if (data.endsWith(
|
|
38684
|
+
if (data.endsWith(ESC3 + "\\")) {
|
|
38362
38685
|
return "complete";
|
|
38363
38686
|
}
|
|
38364
38687
|
return "incomplete";
|
|
@@ -38371,7 +38694,7 @@ function extractCompleteSequences(buffer) {
|
|
|
38371
38694
|
let pos = 0;
|
|
38372
38695
|
while (pos < buffer.length) {
|
|
38373
38696
|
const remaining = buffer.slice(pos);
|
|
38374
|
-
if (remaining.startsWith(
|
|
38697
|
+
if (remaining.startsWith(ESC3)) {
|
|
38375
38698
|
let seqEnd = 1;
|
|
38376
38699
|
while (seqEnd <= remaining.length) {
|
|
38377
38700
|
const candidate = remaining.slice(0, seqEnd);
|
|
@@ -38381,7 +38704,7 @@ function extractCompleteSequences(buffer) {
|
|
|
38381
38704
|
pos += seqEnd;
|
|
38382
38705
|
break;
|
|
38383
38706
|
} else if (status === "incomplete") {
|
|
38384
|
-
if (candidate ===
|
|
38707
|
+
if (candidate === ESC3 + ESC3) {
|
|
38385
38708
|
const nextChar = remaining[seqEnd];
|
|
38386
38709
|
if (seqEnd < remaining.length && !isNestedEscapeSequenceStart(nextChar)) {
|
|
38387
38710
|
sequences.push(candidate);
|
|
@@ -44159,7 +44482,7 @@ var __defProp2, __export2 = (target, all2) => {
|
|
|
44159
44482
|
key.code = "[3~";
|
|
44160
44483
|
}
|
|
44161
44484
|
return key;
|
|
44162
|
-
}, KeyHandler, InternalKeyHandler, CSS_COLOR_NAMES, block_default, shade_default, slick_default, tiny_default, huge_default, grid_default, pallet_default, fonts, parsedFonts, TextAttributes, DebugOverlayCorner, ATTRIBUTE_BASE_MASK2 = 255, LINK_ID_SHIFT = 8, LINK_ID_PAYLOAD_MASK = 16777215, BrandedStyledText, StyledText, fg = (color) => (input) => applyStyle2(input, { fg: color }),
|
|
44485
|
+
}, KeyHandler, InternalKeyHandler, CSS_COLOR_NAMES, block_default, shade_default, slick_default, tiny_default, huge_default, grid_default, pallet_default, fonts, parsedFonts, TextAttributes, DebugOverlayCorner, ATTRIBUTE_BASE_MASK2 = 255, LINK_ID_SHIFT = 8, LINK_ID_PAYLOAD_MASK = 16777215, BrandedStyledText, StyledText, fg = (color) => (input) => applyStyle2(input, { fg: color }), ESC3 = "\x1B", BRACKETED_PASTE_START = "\x1B[200~", BRACKETED_PASTE_END = "\x1B[201~", StdinBuffer, MouseParser, singletonCacheSymbol, envRegistry, envStore, env2, TIMERS_MAP, _cachedParsers, DEFAULT_PARSERS, isUrl = (path5) => path5.startsWith("http://") || path5.startsWith("https://"), TreeSitterClient, DataPathsManager, OSC4_RESPONSE, OSC_SPECIAL_RESPONSE, pointerSize, typeSizes, primitiveKeys, typeAlignments, typeGetters, pointerPacker, pointerUnpacker, encoder, decoder, rgbaPackTransform = (rgba) => rgba ? ptr3(rgba.buffer) : null, rgbaUnpackTransform = (ptr42) => ptr42 ? RGBA.fromArray(new Float32Array(toArrayBuffer3(ptr42))) : undefined, StyledChunkStruct, HighlightStruct, LogicalCursorStruct, VisualCursorStruct, UnicodeMethodEnum, TerminalCapabilitiesStruct, EncodedCharStruct, LineInfoStruct, MeasureResultStruct, CursorStateStruct, module, targetLibPath, globalTraceSymbols = null, globalFFILogWriter = null, exitHandlerRegistered = false, LogLevel2, opentuiLibPath, opentuiLib, BrandedRenderable, LayoutEvents, RenderableEvents, BaseRenderable, yogaConfig, Renderable, RootRenderable, BrandedVNode, Capture, CapturedWritableStream, defaultKeyAliases, capture, TerminalConsoleCache, terminalConsoleCache, ConsolePosition, defaultConsoleKeybindings, DEFAULT_CONSOLE_OPTIONS, INDENT_WIDTH = 2, TerminalConsole, ANSI, KITTY_FLAG_DISAMBIGUATE = 1, KITTY_FLAG_EVENT_TYPES = 2, KITTY_FLAG_ALTERNATE_KEYS = 4, KITTY_FLAG_ALL_KEYS_AS_ESCAPES = 8, KITTY_FLAG_REPORT_TEXT = 16, MouseButton, rendererTracker, CliRenderEvents, RendererControlState, CliRenderer;
|
|
44163
44486
|
var init_index_zrvzvh6r = __esm(async () => {
|
|
44164
44487
|
init_highlights();
|
|
44165
44488
|
init_tree_sitter_javascript();
|
|
@@ -65988,7 +66311,10 @@ var logIdCounter = 0, generateLogId = () => `log-${++logIdCounter}-${Date.now()}
|
|
|
65988
66311
|
outputTokens: 0,
|
|
65989
66312
|
thinkingStartTime: null,
|
|
65990
66313
|
lastThinkingDuration: 0,
|
|
65991
|
-
contextMaxTokens: 128000
|
|
66314
|
+
contextMaxTokens: 128000,
|
|
66315
|
+
apiTimeSpent: 0,
|
|
66316
|
+
apiCallStartTime: null,
|
|
66317
|
+
modelUsage: []
|
|
65992
66318
|
}), createInitialStreamingState = () => ({
|
|
65993
66319
|
logId: null,
|
|
65994
66320
|
content: "",
|
|
@@ -66035,6 +66361,7 @@ var init_app = __esm(async () => {
|
|
|
66035
66361
|
availableModels: [],
|
|
66036
66362
|
sessionStats: createInitialSessionStats(),
|
|
66037
66363
|
todosVisible: true,
|
|
66364
|
+
activityVisible: true,
|
|
66038
66365
|
debugLogVisible: false,
|
|
66039
66366
|
interruptPending: false,
|
|
66040
66367
|
exitPending: false,
|
|
@@ -66082,6 +66409,7 @@ var init_app = __esm(async () => {
|
|
|
66082
66409
|
const availableModels = () => store.availableModels;
|
|
66083
66410
|
const sessionStats = () => store.sessionStats;
|
|
66084
66411
|
const todosVisible = () => store.todosVisible;
|
|
66412
|
+
const activityVisible = () => store.activityVisible;
|
|
66085
66413
|
const debugLogVisible = () => store.debugLogVisible;
|
|
66086
66414
|
const interruptPending = () => store.interruptPending;
|
|
66087
66415
|
const exitPending = () => store.exitPending;
|
|
@@ -66354,6 +66682,40 @@ var init_app = __esm(async () => {
|
|
|
66354
66682
|
outputTokens: store.sessionStats.outputTokens + output
|
|
66355
66683
|
});
|
|
66356
66684
|
};
|
|
66685
|
+
const startApiCall = () => {
|
|
66686
|
+
setStore("sessionStats", {
|
|
66687
|
+
...store.sessionStats,
|
|
66688
|
+
apiCallStartTime: Date.now()
|
|
66689
|
+
});
|
|
66690
|
+
};
|
|
66691
|
+
const stopApiCall = () => {
|
|
66692
|
+
const elapsed = store.sessionStats.apiCallStartTime ? Date.now() - store.sessionStats.apiCallStartTime : 0;
|
|
66693
|
+
setStore("sessionStats", {
|
|
66694
|
+
...store.sessionStats,
|
|
66695
|
+
apiTimeSpent: store.sessionStats.apiTimeSpent + elapsed,
|
|
66696
|
+
apiCallStartTime: null
|
|
66697
|
+
});
|
|
66698
|
+
};
|
|
66699
|
+
const addTokensWithModel = (modelId, input, output, cached) => {
|
|
66700
|
+
setStore(produce((s) => {
|
|
66701
|
+
const existing = s.sessionStats.modelUsage.find((m2) => m2.modelId === modelId);
|
|
66702
|
+
if (existing) {
|
|
66703
|
+
existing.inputTokens += input;
|
|
66704
|
+
existing.outputTokens += output;
|
|
66705
|
+
if (cached)
|
|
66706
|
+
existing.cachedTokens = (existing.cachedTokens ?? 0) + cached;
|
|
66707
|
+
} else {
|
|
66708
|
+
s.sessionStats.modelUsage.push({
|
|
66709
|
+
modelId,
|
|
66710
|
+
inputTokens: input,
|
|
66711
|
+
outputTokens: output,
|
|
66712
|
+
cachedTokens: cached
|
|
66713
|
+
});
|
|
66714
|
+
}
|
|
66715
|
+
s.sessionStats.inputTokens += input;
|
|
66716
|
+
s.sessionStats.outputTokens += output;
|
|
66717
|
+
}));
|
|
66718
|
+
};
|
|
66357
66719
|
const resetSessionStats = () => {
|
|
66358
66720
|
setStore("sessionStats", createInitialSessionStats());
|
|
66359
66721
|
};
|
|
@@ -66366,6 +66728,9 @@ var init_app = __esm(async () => {
|
|
|
66366
66728
|
const toggleTodos = () => {
|
|
66367
66729
|
setStore("todosVisible", !store.todosVisible);
|
|
66368
66730
|
};
|
|
66731
|
+
const toggleActivity = () => {
|
|
66732
|
+
setStore("activityVisible", !store.activityVisible);
|
|
66733
|
+
};
|
|
66369
66734
|
const toggleDebugLog = () => {
|
|
66370
66735
|
setStore("debugLogVisible", !store.debugLogVisible);
|
|
66371
66736
|
};
|
|
@@ -66515,6 +66880,7 @@ var init_app = __esm(async () => {
|
|
|
66515
66880
|
availableModels,
|
|
66516
66881
|
sessionStats,
|
|
66517
66882
|
todosVisible,
|
|
66883
|
+
activityVisible,
|
|
66518
66884
|
debugLogVisible,
|
|
66519
66885
|
interruptPending,
|
|
66520
66886
|
exitPending,
|
|
@@ -66577,9 +66943,13 @@ var init_app = __esm(async () => {
|
|
|
66577
66943
|
startThinking,
|
|
66578
66944
|
stopThinking,
|
|
66579
66945
|
addTokens,
|
|
66946
|
+
startApiCall,
|
|
66947
|
+
stopApiCall,
|
|
66948
|
+
addTokensWithModel,
|
|
66580
66949
|
resetSessionStats,
|
|
66581
66950
|
setContextMaxTokens,
|
|
66582
66951
|
toggleTodos,
|
|
66952
|
+
toggleActivity,
|
|
66583
66953
|
toggleDebugLog,
|
|
66584
66954
|
setInterruptPending,
|
|
66585
66955
|
setExitPending,
|
|
@@ -66626,6 +66996,7 @@ var init_app = __esm(async () => {
|
|
|
66626
66996
|
suggestions: createInitialSuggestionState(),
|
|
66627
66997
|
mcpServers: [],
|
|
66628
66998
|
pastedImages: [],
|
|
66999
|
+
modifiedFiles: [],
|
|
66629
67000
|
brain: {
|
|
66630
67001
|
status: "disconnected",
|
|
66631
67002
|
user: null,
|
|
@@ -66658,6 +67029,7 @@ var init_app = __esm(async () => {
|
|
|
66658
67029
|
sessionStats: storeRef.sessionStats(),
|
|
66659
67030
|
cascadeEnabled: storeRef.cascadeEnabled(),
|
|
66660
67031
|
todosVisible: storeRef.todosVisible(),
|
|
67032
|
+
activityVisible: storeRef.activityVisible(),
|
|
66661
67033
|
debugLogVisible: storeRef.debugLogVisible(),
|
|
66662
67034
|
interruptPending: storeRef.interruptPending(),
|
|
66663
67035
|
exitPending: storeRef.exitPending(),
|
|
@@ -66666,6 +67038,7 @@ var init_app = __esm(async () => {
|
|
|
66666
67038
|
suggestions: storeRef.suggestions(),
|
|
66667
67039
|
mcpServers: storeRef.mcpServers(),
|
|
66668
67040
|
pastedImages: storeRef.pastedImages(),
|
|
67041
|
+
modifiedFiles: storeRef.modifiedFiles(),
|
|
66669
67042
|
brain: storeRef.brain()
|
|
66670
67043
|
};
|
|
66671
67044
|
},
|
|
@@ -66774,6 +67147,21 @@ var init_app = __esm(async () => {
|
|
|
66774
67147
|
return;
|
|
66775
67148
|
storeRef.addTokens(input, output);
|
|
66776
67149
|
},
|
|
67150
|
+
startApiCall: () => {
|
|
67151
|
+
if (!storeRef)
|
|
67152
|
+
return;
|
|
67153
|
+
storeRef.startApiCall();
|
|
67154
|
+
},
|
|
67155
|
+
stopApiCall: () => {
|
|
67156
|
+
if (!storeRef)
|
|
67157
|
+
return;
|
|
67158
|
+
storeRef.stopApiCall();
|
|
67159
|
+
},
|
|
67160
|
+
addTokensWithModel: (modelId, input, output, cached) => {
|
|
67161
|
+
if (!storeRef)
|
|
67162
|
+
return;
|
|
67163
|
+
storeRef.addTokensWithModel(modelId, input, output, cached);
|
|
67164
|
+
},
|
|
66777
67165
|
resetSessionStats: () => {
|
|
66778
67166
|
if (!storeRef)
|
|
66779
67167
|
return;
|
|
@@ -66789,6 +67177,11 @@ var init_app = __esm(async () => {
|
|
|
66789
67177
|
return;
|
|
66790
67178
|
storeRef.toggleTodos();
|
|
66791
67179
|
},
|
|
67180
|
+
toggleActivity: () => {
|
|
67181
|
+
if (!storeRef)
|
|
67182
|
+
return;
|
|
67183
|
+
storeRef.toggleActivity();
|
|
67184
|
+
},
|
|
66792
67185
|
toggleDebugLog: () => {
|
|
66793
67186
|
if (!storeRef)
|
|
66794
67187
|
return;
|
|
@@ -67360,7 +67753,7 @@ var init_chat = __esm(async () => {
|
|
|
67360
67753
|
init_copilot();
|
|
67361
67754
|
init_token();
|
|
67362
67755
|
init_models();
|
|
67363
|
-
|
|
67756
|
+
init_utils3();
|
|
67364
67757
|
await init_debug_log_panel();
|
|
67365
67758
|
});
|
|
67366
67759
|
|
|
@@ -67478,7 +67871,7 @@ var initiateDeviceFlow = async () => {
|
|
|
67478
67871
|
var init_auth = __esm(() => {
|
|
67479
67872
|
init_source4();
|
|
67480
67873
|
init_copilot();
|
|
67481
|
-
|
|
67874
|
+
init_utils3();
|
|
67482
67875
|
});
|
|
67483
67876
|
|
|
67484
67877
|
// src/providers/copilot.ts
|
|
@@ -90579,7 +90972,7 @@ var init_grep = __esm(() => {
|
|
|
90579
90972
|
};
|
|
90580
90973
|
});
|
|
90581
90974
|
// src/tools/grep/execute.ts
|
|
90582
|
-
import { exec as
|
|
90975
|
+
import { exec as exec3 } from "child_process";
|
|
90583
90976
|
import { promisify as promisify4 } from "util";
|
|
90584
90977
|
var import_fast_glob4, execAsync, executeRipgrep = async (pattern, directory = ".") => {
|
|
90585
90978
|
try {
|
|
@@ -90609,7 +91002,7 @@ var import_fast_glob4, execAsync, executeRipgrep = async (pattern, directory = "
|
|
|
90609
91002
|
var init_execute6 = __esm(() => {
|
|
90610
91003
|
init_grep();
|
|
90611
91004
|
import_fast_glob4 = __toESM(require_out4(), 1);
|
|
90612
|
-
execAsync = promisify4(
|
|
91005
|
+
execAsync = promisify4(exec3);
|
|
90613
91006
|
});
|
|
90614
91007
|
|
|
90615
91008
|
// src/tools/grep/definition.ts
|
|
@@ -93784,14 +94177,7 @@ var init_plan_service = __esm(() => {
|
|
|
93784
94177
|
"system",
|
|
93785
94178
|
"integration"
|
|
93786
94179
|
],
|
|
93787
|
-
moderate: [
|
|
93788
|
-
"feature",
|
|
93789
|
-
"component",
|
|
93790
|
-
"service",
|
|
93791
|
-
"api",
|
|
93792
|
-
"endpoint",
|
|
93793
|
-
"module"
|
|
93794
|
-
]
|
|
94180
|
+
moderate: ["feature", "component", "service", "api", "endpoint", "module"]
|
|
93795
94181
|
};
|
|
93796
94182
|
RISK_ICONS = {
|
|
93797
94183
|
high: "!",
|
|
@@ -95258,7 +95644,7 @@ var init_semantic_search = __esm(() => {
|
|
|
95258
95644
|
var version_default2;
|
|
95259
95645
|
var init_version2 = __esm(() => {
|
|
95260
95646
|
version_default2 = {
|
|
95261
|
-
version: "0.4.
|
|
95647
|
+
version: "0.4.5"
|
|
95262
95648
|
};
|
|
95263
95649
|
});
|
|
95264
95650
|
|
|
@@ -95271,7 +95657,7 @@ __export(exports_upgrade, {
|
|
|
95271
95657
|
displayUpgradeHelp: () => displayUpgradeHelp,
|
|
95272
95658
|
checkForUpdates: () => checkForUpdates
|
|
95273
95659
|
});
|
|
95274
|
-
import { exec as
|
|
95660
|
+
import { exec as exec6 } from "child_process";
|
|
95275
95661
|
import { promisify as promisify7 } from "util";
|
|
95276
95662
|
var execAsync4, REPO_URL = "git@github.com:CarGDev/codetyper.cli.git", REPO_API_URL = "https://api.github.com/repos/CarGDev/codetyper.cli", parseVersion = (version3) => {
|
|
95277
95663
|
const cleaned = version3.replace(/^v/, "");
|
|
@@ -95450,7 +95836,7 @@ CodeTyper Upgrade
|
|
|
95450
95836
|
var init_upgrade = __esm(() => {
|
|
95451
95837
|
init_source();
|
|
95452
95838
|
init_version2();
|
|
95453
|
-
execAsync4 = promisify7(
|
|
95839
|
+
execAsync4 = promisify7(exec6);
|
|
95454
95840
|
});
|
|
95455
95841
|
|
|
95456
95842
|
// src/commands/mcp.ts
|
|
@@ -105477,7 +105863,7 @@ var DEFAULT_KEYBINDS = {
|
|
|
105477
105863
|
help_menu: "<leader>h",
|
|
105478
105864
|
clipboard_copy: "ctrl+y",
|
|
105479
105865
|
sidebar_toggle: "<leader>b",
|
|
105480
|
-
activity_toggle: "
|
|
105866
|
+
activity_toggle: "ctrl+o"
|
|
105481
105867
|
};
|
|
105482
105868
|
|
|
105483
105869
|
// src/services/keybind-resolver.ts
|
|
@@ -107015,9 +107401,9 @@ var extractIssueNumbers = (message) => {
|
|
|
107015
107401
|
return Array.from(numbers).sort((a2, b2) => a2 - b2);
|
|
107016
107402
|
};
|
|
107017
107403
|
// src/services/github-issue/repo.ts
|
|
107018
|
-
import { exec as
|
|
107404
|
+
import { exec as exec4 } from "child_process";
|
|
107019
107405
|
import { promisify as promisify5 } from "util";
|
|
107020
|
-
var execAsync2 = promisify5(
|
|
107406
|
+
var execAsync2 = promisify5(exec4);
|
|
107021
107407
|
var isGitHubRepo = async () => {
|
|
107022
107408
|
try {
|
|
107023
107409
|
const { stdout } = await execAsync2(GH_CLI_COMMANDS.GET_REMOTE_URL);
|
|
@@ -107027,9 +107413,9 @@ var isGitHubRepo = async () => {
|
|
|
107027
107413
|
}
|
|
107028
107414
|
};
|
|
107029
107415
|
// src/services/github-issue/fetch.ts
|
|
107030
|
-
import { exec as
|
|
107416
|
+
import { exec as exec5 } from "child_process";
|
|
107031
107417
|
import { promisify as promisify6 } from "util";
|
|
107032
|
-
var execAsync3 = promisify6(
|
|
107418
|
+
var execAsync3 = promisify6(exec5);
|
|
107033
107419
|
var parseIssueResponse = (data) => ({
|
|
107034
107420
|
number: data.number,
|
|
107035
107421
|
title: data.title,
|
|
@@ -110056,7 +110442,7 @@ var saveCredentials = async (credentials) => {
|
|
|
110056
110442
|
await init_copilot2();
|
|
110057
110443
|
|
|
110058
110444
|
// src/providers/login/copilot-login.ts
|
|
110059
|
-
|
|
110445
|
+
init_dist18();
|
|
110060
110446
|
init_source();
|
|
110061
110447
|
await __promiseAll([
|
|
110062
110448
|
init_registry(),
|
|
@@ -110088,7 +110474,7 @@ var checkExistingAuth = async (name) => {
|
|
|
110088
110474
|
return null;
|
|
110089
110475
|
}
|
|
110090
110476
|
console.log(source_default.green(LOGIN_MESSAGES.COPILOT_ALREADY_CONFIGURED));
|
|
110091
|
-
const { reconfigure } = await
|
|
110477
|
+
const { reconfigure } = await dist_default14.prompt([
|
|
110092
110478
|
{
|
|
110093
110479
|
type: "confirm",
|
|
110094
110480
|
name: "reconfigure",
|
|
@@ -110145,12 +110531,12 @@ var loginCopilot = async (name) => {
|
|
|
110145
110531
|
};
|
|
110146
110532
|
|
|
110147
110533
|
// src/providers/login/ollama-login.ts
|
|
110148
|
-
|
|
110534
|
+
init_dist18();
|
|
110149
110535
|
init_source();
|
|
110150
110536
|
init_providers();
|
|
110151
110537
|
await init_registry();
|
|
110152
110538
|
var promptForHost = async () => {
|
|
110153
|
-
const { host } = await
|
|
110539
|
+
const { host } = await dist_default14.prompt([
|
|
110154
110540
|
{
|
|
110155
110541
|
type: "input",
|
|
110156
110542
|
name: "host",
|
|
@@ -110745,54 +111131,6 @@ var getFiles = (dir, cwd, maxDepth = FILE_PICKER_DEFAULTS.MAX_DEPTH, currentDept
|
|
|
110745
111131
|
}
|
|
110746
111132
|
};
|
|
110747
111133
|
|
|
110748
|
-
// src/tui-solid/app.tsx
|
|
110749
|
-
init_terminal();
|
|
110750
|
-
|
|
110751
|
-
// src/services/exit-message.ts
|
|
110752
|
-
import { EOL } from "os";
|
|
110753
|
-
|
|
110754
|
-
// src/constants/exit-message.ts
|
|
110755
|
-
var EXIT_LOGO = [
|
|
110756
|
-
"█▀▀█",
|
|
110757
|
-
"█ █",
|
|
110758
|
-
"▀▀▀▀"
|
|
110759
|
-
];
|
|
110760
|
-
var EXIT_STYLES = {
|
|
110761
|
-
RESET: "\x1B[0m",
|
|
110762
|
-
DIM: "\x1B[90m",
|
|
110763
|
-
HIGHLIGHT: "\x1B[96m",
|
|
110764
|
-
BOLD: "\x1B[1m",
|
|
110765
|
-
LOGO_COLOR: "\x1B[36m"
|
|
110766
|
-
};
|
|
110767
|
-
var EXIT_DESCRIPTION_MAX_WIDTH = 50;
|
|
110768
|
-
var EXIT_LINE_PADDING = " ";
|
|
110769
|
-
var EXIT_LOGO_GAP = " ";
|
|
110770
|
-
var EXIT_TRUNCATION_MARKER = "…";
|
|
110771
|
-
|
|
110772
|
-
// src/services/exit-message.ts
|
|
110773
|
-
var truncateText = (text, maxWidth) => {
|
|
110774
|
-
if (text.length <= maxWidth)
|
|
110775
|
-
return text;
|
|
110776
|
-
return text.slice(0, maxWidth - 1) + EXIT_TRUNCATION_MARKER;
|
|
110777
|
-
};
|
|
110778
|
-
var formatExitMessage = (sessionId, sessionTitle) => {
|
|
110779
|
-
if (!sessionId)
|
|
110780
|
-
return "";
|
|
110781
|
-
const { RESET, DIM, HIGHLIGHT, LOGO_COLOR } = EXIT_STYLES;
|
|
110782
|
-
const pad = EXIT_LINE_PADDING;
|
|
110783
|
-
const gap = EXIT_LOGO_GAP;
|
|
110784
|
-
const description = sessionTitle ? truncateText(sessionTitle, EXIT_DESCRIPTION_MAX_WIDTH) : "";
|
|
110785
|
-
const resumeCommand = `codetyper --resume ${sessionId}`;
|
|
110786
|
-
const lines = [
|
|
110787
|
-
"",
|
|
110788
|
-
`${pad}${LOGO_COLOR}${EXIT_LOGO[0]}${RESET}${gap}${HIGHLIGHT}${description}${RESET}`,
|
|
110789
|
-
`${pad}${LOGO_COLOR}${EXIT_LOGO[1]}${RESET}${gap}${DIM}${resumeCommand}${RESET}`,
|
|
110790
|
-
`${pad}${LOGO_COLOR}${EXIT_LOGO[2]}${RESET}`,
|
|
110791
|
-
""
|
|
110792
|
-
];
|
|
110793
|
-
return lines.join(EOL);
|
|
110794
|
-
};
|
|
110795
|
-
|
|
110796
111134
|
// src/constants/clipboard.ts
|
|
110797
111135
|
var OSC52_SEQUENCE_PREFIX = "\x1B]52;c;";
|
|
110798
111136
|
var OSC52_SEQUENCE_SUFFIX = "\x07";
|
|
@@ -110948,20 +111286,36 @@ init_version2();
|
|
|
110948
111286
|
|
|
110949
111287
|
// src/tui-solid/context/exit.tsx
|
|
110950
111288
|
init_server();
|
|
110951
|
-
|
|
111289
|
+
init_terminal2();
|
|
111290
|
+
await __promiseAll([
|
|
111291
|
+
init_solid(),
|
|
111292
|
+
init_helper()
|
|
111293
|
+
]);
|
|
110952
111294
|
var {
|
|
110953
111295
|
provider: ExitProvider,
|
|
110954
111296
|
use: useExit
|
|
110955
111297
|
} = createSimpleContext({
|
|
110956
111298
|
name: "Exit",
|
|
110957
111299
|
init: (props) => {
|
|
111300
|
+
const renderer = useRenderer();
|
|
110958
111301
|
const [exitCode, setExitCode] = createSignal(0);
|
|
110959
111302
|
const [isExiting, setIsExiting] = createSignal(false);
|
|
110960
111303
|
const [exitRequested, setExitRequested] = createSignal(false);
|
|
110961
|
-
const exit = (code = 0) => {
|
|
111304
|
+
const exit = async (code = 0) => {
|
|
110962
111305
|
setExitCode(code);
|
|
110963
111306
|
setIsExiting(true);
|
|
110964
|
-
|
|
111307
|
+
try {
|
|
111308
|
+
renderer.setTerminalTitle("");
|
|
111309
|
+
} catch {}
|
|
111310
|
+
renderer.destroy();
|
|
111311
|
+
await props.onExit?.();
|
|
111312
|
+
process.exit(code);
|
|
111313
|
+
};
|
|
111314
|
+
const setExitMessage = (message) => {
|
|
111315
|
+
setGlobalExitMessage(message);
|
|
111316
|
+
};
|
|
111317
|
+
const getExitMessage = () => {
|
|
111318
|
+
return;
|
|
110965
111319
|
};
|
|
110966
111320
|
const requestExit = () => {
|
|
110967
111321
|
setExitRequested(true);
|
|
@@ -110980,15 +111334,109 @@ var {
|
|
|
110980
111334
|
});
|
|
110981
111335
|
return {
|
|
110982
111336
|
exit,
|
|
110983
|
-
exitCode,
|
|
111337
|
+
getExitCode: exitCode,
|
|
110984
111338
|
isExiting,
|
|
111339
|
+
exitRequested,
|
|
110985
111340
|
requestExit,
|
|
110986
111341
|
cancelExit,
|
|
110987
|
-
confirmExit
|
|
111342
|
+
confirmExit,
|
|
111343
|
+
setExitMessage,
|
|
111344
|
+
getExitMessage
|
|
110988
111345
|
};
|
|
110989
111346
|
}
|
|
110990
111347
|
});
|
|
110991
111348
|
|
|
111349
|
+
// src/utils/core/session-stats.ts
|
|
111350
|
+
function formatDuration3(ms) {
|
|
111351
|
+
if (ms < 1000)
|
|
111352
|
+
return `${(ms / 1000).toFixed(3)}s`;
|
|
111353
|
+
const seconds = Math.floor(ms / 1000 % 60);
|
|
111354
|
+
const minutes = Math.floor(ms / (1000 * 60) % 60);
|
|
111355
|
+
const hours = Math.floor(ms / (1000 * 60 * 60));
|
|
111356
|
+
const fractionalSeconds = (ms % 1000 / 1000).toFixed(3).slice(1);
|
|
111357
|
+
if (hours > 0) {
|
|
111358
|
+
return `${hours}h ${minutes}m ${seconds}${fractionalSeconds}s`;
|
|
111359
|
+
}
|
|
111360
|
+
if (minutes > 0) {
|
|
111361
|
+
return `${minutes}m ${seconds}${fractionalSeconds}s`;
|
|
111362
|
+
}
|
|
111363
|
+
return `${seconds}${fractionalSeconds}s`;
|
|
111364
|
+
}
|
|
111365
|
+
function formatTokens(tokens) {
|
|
111366
|
+
if (tokens >= 1e6) {
|
|
111367
|
+
return `${(tokens / 1e6).toFixed(1)}m`;
|
|
111368
|
+
}
|
|
111369
|
+
if (tokens >= 1000) {
|
|
111370
|
+
return `${(tokens / 1000).toFixed(1)}k`;
|
|
111371
|
+
}
|
|
111372
|
+
return tokens.toString();
|
|
111373
|
+
}
|
|
111374
|
+
function calculateCodeChanges(files) {
|
|
111375
|
+
return files.reduce((acc, file2) => ({
|
|
111376
|
+
additions: acc.additions + file2.additions,
|
|
111377
|
+
deletions: acc.deletions + file2.deletions
|
|
111378
|
+
}), { additions: 0, deletions: 0 });
|
|
111379
|
+
}
|
|
111380
|
+
function formatModelUsage(usage) {
|
|
111381
|
+
const parts = [];
|
|
111382
|
+
if (usage.inputTokens > 0) {
|
|
111383
|
+
parts.push(`${formatTokens(usage.inputTokens)} in`);
|
|
111384
|
+
}
|
|
111385
|
+
if (usage.outputTokens > 0) {
|
|
111386
|
+
parts.push(`${formatTokens(usage.outputTokens)} out`);
|
|
111387
|
+
}
|
|
111388
|
+
if (usage.cachedTokens && usage.cachedTokens > 0) {
|
|
111389
|
+
parts.push(`${formatTokens(usage.cachedTokens)} cached`);
|
|
111390
|
+
}
|
|
111391
|
+
return parts.join(", ") || "0 tokens";
|
|
111392
|
+
}
|
|
111393
|
+
function generateSessionSummary(input) {
|
|
111394
|
+
const { sessionId, sessionStats, modifiedFiles, modelName } = input;
|
|
111395
|
+
const { additions, deletions } = calculateCodeChanges(modifiedFiles);
|
|
111396
|
+
const totalSessionTime = Date.now() - sessionStats.startTime;
|
|
111397
|
+
const lines = [
|
|
111398
|
+
"",
|
|
111399
|
+
" ██████╗ ██████╗ ██████╗ ███████╗████████╗██╗ ██╗██████╗ ███████╗██████╗ ",
|
|
111400
|
+
" ██╔════╝██╔═══██╗██╔══██╗██╔════╝╚══██╔══╝╚██╗ ██╔╝██╔══██╗██╔════╝██╔══██╗",
|
|
111401
|
+
" ██║ ██║ ██║██║ ██║█████╗ ██║ ╚████╔╝ ██████╔╝█████╗ ██████╔╝",
|
|
111402
|
+
" ██║ ██║ ██║██║ ██║██╔══╝ ██║ ╚██╔╝ ██╔═══╝ ██╔══╝ ██╔══██╗",
|
|
111403
|
+
" ╚██████╗╚██████╔╝██████╔╝███████╗ ██║ ██║ ██║ ███████╗██║ ██║",
|
|
111404
|
+
" ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝",
|
|
111405
|
+
"",
|
|
111406
|
+
"═══════════════════════════════════════════════════════════════",
|
|
111407
|
+
"",
|
|
111408
|
+
` Total usage est: 0 Premium requests`,
|
|
111409
|
+
` API time spent: ${formatDuration3(sessionStats.apiTimeSpent)}`,
|
|
111410
|
+
` Total session time: ${formatDuration3(totalSessionTime)}`,
|
|
111411
|
+
` Total code changes: +${additions} -${deletions}`,
|
|
111412
|
+
""
|
|
111413
|
+
];
|
|
111414
|
+
if (sessionStats.modelUsage.length > 0) {
|
|
111415
|
+
lines.push(" Breakdown by AI model:");
|
|
111416
|
+
for (const usage of sessionStats.modelUsage) {
|
|
111417
|
+
const displayModel = usage.modelId.length > 20 ? usage.modelId.slice(0, 17) + "..." : usage.modelId;
|
|
111418
|
+
const padding = " ".repeat(Math.max(1, 24 - displayModel.length));
|
|
111419
|
+
const usageStr = formatModelUsage(usage);
|
|
111420
|
+
lines.push(` ${displayModel}${padding}${usageStr} (Est. 0 Premium requests)`);
|
|
111421
|
+
}
|
|
111422
|
+
lines.push("");
|
|
111423
|
+
} else if (modelName) {
|
|
111424
|
+
const displayModel = modelName.length > 20 ? modelName.slice(0, 17) + "..." : modelName;
|
|
111425
|
+
const padding = " ".repeat(Math.max(1, 24 - displayModel.length));
|
|
111426
|
+
const totalIn = sessionStats.inputTokens;
|
|
111427
|
+
const totalOut = sessionStats.outputTokens;
|
|
111428
|
+
lines.push(" Breakdown by AI model:");
|
|
111429
|
+
lines.push(` ${displayModel}${padding}${formatTokens(totalIn)} in, ${formatTokens(totalOut)} out (Est. 0 Premium requests)`);
|
|
111430
|
+
lines.push("");
|
|
111431
|
+
}
|
|
111432
|
+
lines.push(` Resume this session with copilot --resume=${sessionId}`);
|
|
111433
|
+
lines.push("");
|
|
111434
|
+
lines.push("═══════════════════════════════════════════════════════════════");
|
|
111435
|
+
lines.push("");
|
|
111436
|
+
return lines.join(`
|
|
111437
|
+
`);
|
|
111438
|
+
}
|
|
111439
|
+
|
|
110992
111440
|
// src/tui-solid/context/route.tsx
|
|
110993
111441
|
init_server2();
|
|
110994
111442
|
await init_helper();
|
|
@@ -114597,7 +115045,7 @@ await __promiseAll([
|
|
|
114597
115045
|
init_app(),
|
|
114598
115046
|
init_theme2()
|
|
114599
115047
|
]);
|
|
114600
|
-
var
|
|
115048
|
+
var formatDuration4 = (ms) => {
|
|
114601
115049
|
const totalSeconds = Math.floor(ms / TIME_UNITS.SECOND);
|
|
114602
115050
|
const hours = Math.floor(totalSeconds / 3600);
|
|
114603
115051
|
const minutes = Math.floor(totalSeconds % 3600 / 60);
|
|
@@ -114610,7 +115058,7 @@ var formatDuration3 = (ms) => {
|
|
|
114610
115058
|
}
|
|
114611
115059
|
return `${seconds}s`;
|
|
114612
115060
|
};
|
|
114613
|
-
var
|
|
115061
|
+
var formatTokens2 = (count) => {
|
|
114614
115062
|
if (count >= TOKEN_DISPLAY.K_THRESHOLD) {
|
|
114615
115063
|
return `${(count / TOKEN_DISPLAY.K_THRESHOLD).toFixed(TOKEN_DISPLAY.DECIMALS)}k`;
|
|
114616
115064
|
}
|
|
@@ -114713,9 +115161,9 @@ function StatusBar() {
|
|
|
114713
115161
|
if (isProcessing()) {
|
|
114714
115162
|
result.push(app.interruptPending() ? STATUS_HINTS.INTERRUPT_CONFIRM : STATUS_HINTS.INTERRUPT);
|
|
114715
115163
|
}
|
|
114716
|
-
result.push(
|
|
115164
|
+
result.push(formatDuration4(elapsed()));
|
|
114717
115165
|
if (totalTokens() > 0) {
|
|
114718
|
-
result.push(`↓ ${
|
|
115166
|
+
result.push(`↓ ${formatTokens2(totalTokens())} tokens`);
|
|
114719
115167
|
}
|
|
114720
115168
|
const stats = app.sessionStats();
|
|
114721
115169
|
if (stats.thinkingStartTime !== null) {
|
|
@@ -118352,7 +118800,14 @@ function Session(props) {
|
|
|
118352
118800
|
setProp(_el$3, "flexDirection", "column");
|
|
118353
118801
|
setProp(_el$3, "flexGrow", 1);
|
|
118354
118802
|
insert(_el$3, createComponent2(LogPanel, {}));
|
|
118355
|
-
insert(_el$2, createComponent2(
|
|
118803
|
+
insert(_el$2, createComponent2(Show, {
|
|
118804
|
+
get when() {
|
|
118805
|
+
return app.activityVisible();
|
|
118806
|
+
},
|
|
118807
|
+
get children() {
|
|
118808
|
+
return createComponent2(ActivityPanel, {});
|
|
118809
|
+
}
|
|
118810
|
+
}), null);
|
|
118356
118811
|
insert(_el$2, createComponent2(Show, {
|
|
118357
118812
|
get when() {
|
|
118358
118813
|
return memo2(() => !!app.todosVisible())() && props.plan;
|
|
@@ -118745,6 +119200,17 @@ function AppContent(props) {
|
|
|
118745
119200
|
renderer.disableStdoutInterception();
|
|
118746
119201
|
const [fileList, setFileList] = createSignal([]);
|
|
118747
119202
|
setAppStoreRef(app);
|
|
119203
|
+
createEffect(() => {
|
|
119204
|
+
const state4 = appStore.getState();
|
|
119205
|
+
const summary = generateSessionSummary({
|
|
119206
|
+
sessionId: props.sessionId ?? "unknown",
|
|
119207
|
+
sessionStats: state4.sessionStats,
|
|
119208
|
+
modifiedFiles: state4.modifiedFiles,
|
|
119209
|
+
modelName: state4.model,
|
|
119210
|
+
providerName: state4.provider
|
|
119211
|
+
});
|
|
119212
|
+
exit.setExitMessage(summary);
|
|
119213
|
+
});
|
|
118748
119214
|
const copySelectionToClipboard = async () => {
|
|
118749
119215
|
const text = renderer.getSelection()?.getSelectedText();
|
|
118750
119216
|
if (text && text.length > 0) {
|
|
@@ -118866,6 +119332,11 @@ function AppContent(props) {
|
|
|
118866
119332
|
evt.preventDefault();
|
|
118867
119333
|
return;
|
|
118868
119334
|
}
|
|
119335
|
+
if (matchesAction(evt, "activity_toggle")) {
|
|
119336
|
+
app.toggleActivity();
|
|
119337
|
+
evt.preventDefault();
|
|
119338
|
+
return;
|
|
119339
|
+
}
|
|
118869
119340
|
if (matchesAction(evt, "command_menu") && app.mode() === "idle" && !app.inputBuffer()) {
|
|
118870
119341
|
app.openCommandMenu();
|
|
118871
119342
|
evt.preventDefault();
|
|
@@ -119123,20 +119594,7 @@ function App(props) {
|
|
|
119123
119594
|
}
|
|
119124
119595
|
function tui(options2) {
|
|
119125
119596
|
return new Promise((resolve4) => {
|
|
119126
|
-
const {
|
|
119127
|
-
writeSync: writeSync2
|
|
119128
|
-
} = __require("fs");
|
|
119129
119597
|
const handleExit = (output) => {
|
|
119130
|
-
try {
|
|
119131
|
-
writeSync2(1, TERMINAL_RESET);
|
|
119132
|
-
const state4 = appStore.getState();
|
|
119133
|
-
const firstUserLog = state4?.logs?.find((log2) => log2.type === "user");
|
|
119134
|
-
const sessionTitle = firstUserLog?.content;
|
|
119135
|
-
const exitMsg = formatExitMessage(output.sessionId, sessionTitle);
|
|
119136
|
-
if (exitMsg) {
|
|
119137
|
-
writeSync2(1, exitMsg);
|
|
119138
|
-
}
|
|
119139
|
-
} catch {}
|
|
119140
119598
|
resolve4(output);
|
|
119141
119599
|
};
|
|
119142
119600
|
render(() => createComponent2(App, mergeProps3(options2, {
|
|
@@ -119620,9 +120078,6 @@ var projectSetupService = {
|
|
|
119620
120078
|
// src/commands/components/execute/index.ts
|
|
119621
120079
|
var createHandleExit = () => () => {
|
|
119622
120080
|
cleanupPermissionHandler();
|
|
119623
|
-
exitFullscreen();
|
|
119624
|
-
clearScreen();
|
|
119625
|
-
console.log("Goodbye!");
|
|
119626
120081
|
process.exit(0);
|
|
119627
120082
|
};
|
|
119628
120083
|
var createHandleModelSelect = (ctx) => async (model) => {
|
|
@@ -120394,4 +120849,4 @@ ${plan.steps.map((s) => `${s.id}. ${s.description}`).join(`
|
|
|
120394
120849
|
});
|
|
120395
120850
|
program2.parse(process.argv);
|
|
120396
120851
|
|
|
120397
|
-
//# debugId=
|
|
120852
|
+
//# debugId=850267EE3A1DD43B64756E2164756E21
|