@ariestools/toolchain 8.7.25 → 8.7.27
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/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +10 -5
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
- package/dist/actions/deplint/engine.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts +25 -1
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts +8 -3
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts +72 -14
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
- package/dist/actions/deplint/rules.d.ts.map +1 -1
- package/dist/actions/deplint/snapshot.d.ts +9 -0
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +20 -2
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +23 -11
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/skills/defaults.d.ts +18 -1
- package/dist/actions/skills/defaults.d.ts.map +1 -1
- package/dist/actions/skills/detectProfile.d.ts +8 -0
- package/dist/actions/skills/detectProfile.d.ts.map +1 -1
- package/dist/actions/skills/lint.d.ts.map +1 -1
- package/dist/actions/skills/skillRules.d.ts +12 -1
- package/dist/actions/skills/skillRules.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +915 -2503
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +368 -2056
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +717 -2401
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +159 -86
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +159 -86
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +259 -148
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +259 -148
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +259 -148
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +393 -2027
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +719 -2403
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +259 -148
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +232 -1961
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/run-or-exec.mjs +157 -84
- package/dist/bin/run-or-exec.mjs.map +1 -1
- package/dist/bin/skills.mjs +4375 -670
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/xy.mjs +1205 -2347
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/xy/common/skills/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -22,11 +22,41 @@ var __esmMin = (fn, res, err) => () => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
25
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
26
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
27
|
+
let index = string.indexOf(substring);
|
|
28
|
+
if (index === -1) return string;
|
|
29
|
+
const substringLength = substring.length;
|
|
30
|
+
let endIndex = 0;
|
|
31
|
+
let returnValue = "";
|
|
32
|
+
do {
|
|
33
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
34
|
+
endIndex = index + substringLength;
|
|
35
|
+
index = string.indexOf(substring, endIndex);
|
|
36
|
+
} while (index !== -1);
|
|
37
|
+
returnValue += string.slice(endIndex);
|
|
38
|
+
return returnValue;
|
|
39
|
+
}
|
|
40
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
41
|
+
let endIndex = 0;
|
|
42
|
+
let returnValue = "";
|
|
43
|
+
do {
|
|
44
|
+
const isGotCR = string[index - 1] === "\r";
|
|
45
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
46
|
+
endIndex = index + 1;
|
|
47
|
+
index = string.indexOf("\n", endIndex);
|
|
48
|
+
} while (index !== -1);
|
|
49
|
+
returnValue += string.slice(endIndex);
|
|
50
|
+
return returnValue;
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
26
54
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
55
|
+
const ANSI_UNDERLINE_OFFSET = 20;
|
|
56
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
57
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
58
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
59
|
+
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
30
60
|
const styles$1 = {
|
|
31
61
|
modifier: {
|
|
32
62
|
reset: [0, 0],
|
|
@@ -34,6 +64,10 @@ const styles$1 = {
|
|
|
34
64
|
dim: [2, 22],
|
|
35
65
|
italic: [3, 23],
|
|
36
66
|
underline: [4, 24],
|
|
67
|
+
underlineDouble: ["4:2", 24],
|
|
68
|
+
underlineCurly: ["4:3", 24],
|
|
69
|
+
underlineDotted: ["4:4", 24],
|
|
70
|
+
underlineDashed: ["4:5", 24],
|
|
37
71
|
overline: [53, 55],
|
|
38
72
|
inverse: [7, 27],
|
|
39
73
|
hidden: [8, 28],
|
|
@@ -78,22 +112,43 @@ const styles$1 = {
|
|
|
78
112
|
bgMagentaBright: [105, 49],
|
|
79
113
|
bgCyanBright: [106, 49],
|
|
80
114
|
bgWhiteBright: [107, 49]
|
|
115
|
+
},
|
|
116
|
+
underlineColor: {
|
|
117
|
+
underlineBlack: ["58;5;0", 59],
|
|
118
|
+
underlineRed: ["58;5;1", 59],
|
|
119
|
+
underlineGreen: ["58;5;2", 59],
|
|
120
|
+
underlineYellow: ["58;5;3", 59],
|
|
121
|
+
underlineBlue: ["58;5;4", 59],
|
|
122
|
+
underlineMagenta: ["58;5;5", 59],
|
|
123
|
+
underlineCyan: ["58;5;6", 59],
|
|
124
|
+
underlineWhite: ["58;5;7", 59],
|
|
125
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
126
|
+
underlineGray: ["58;5;8", 59],
|
|
127
|
+
underlineGrey: ["58;5;8", 59],
|
|
128
|
+
underlineRedBright: ["58;5;9", 59],
|
|
129
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
130
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
131
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
132
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
133
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
134
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
81
135
|
}
|
|
82
136
|
};
|
|
83
137
|
Object.keys(styles$1.modifier);
|
|
84
138
|
const foregroundColorNames = Object.keys(styles$1.color);
|
|
85
139
|
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
140
|
+
Object.keys(styles$1.underlineColor);
|
|
86
141
|
[...foregroundColorNames, ...backgroundColorNames];
|
|
87
142
|
function assembleStyles() {
|
|
88
143
|
const codes = /* @__PURE__ */ new Map();
|
|
89
144
|
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
90
145
|
for (const [styleName, style] of Object.entries(group)) {
|
|
91
146
|
styles$1[styleName] = {
|
|
92
|
-
open: `\
|
|
93
|
-
close: `\
|
|
147
|
+
open: `\u{1B}[${style[0]}m`,
|
|
148
|
+
close: `\u{1B}[${style[1]}m`
|
|
94
149
|
};
|
|
95
150
|
group[styleName] = styles$1[styleName];
|
|
96
|
-
codes.set(style[0], style[1]);
|
|
151
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
97
152
|
}
|
|
98
153
|
Object.defineProperty(styles$1, groupName, {
|
|
99
154
|
value: group,
|
|
@@ -106,12 +161,16 @@ function assembleStyles() {
|
|
|
106
161
|
});
|
|
107
162
|
styles$1.color.close = "\x1B[39m";
|
|
108
163
|
styles$1.bgColor.close = "\x1B[49m";
|
|
164
|
+
styles$1.underlineColor.close = "\x1B[59m";
|
|
109
165
|
styles$1.color.ansi = wrapAnsi16();
|
|
110
166
|
styles$1.color.ansi256 = wrapAnsi256();
|
|
111
167
|
styles$1.color.ansi16m = wrapAnsi16m();
|
|
112
168
|
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
113
169
|
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
114
170
|
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
171
|
+
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
172
|
+
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
173
|
+
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
115
174
|
Object.defineProperties(styles$1, {
|
|
116
175
|
rgbToAnsi256: {
|
|
117
176
|
value(red, green, blue) {
|
|
@@ -126,7 +185,7 @@ function assembleStyles() {
|
|
|
126
185
|
},
|
|
127
186
|
hexToRgb: {
|
|
128
187
|
value(hex) {
|
|
129
|
-
const matches = /[
|
|
188
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
130
189
|
if (!matches) return [
|
|
131
190
|
0,
|
|
132
191
|
0,
|
|
@@ -186,7 +245,7 @@ function assembleStyles() {
|
|
|
186
245
|
}
|
|
187
246
|
const ansiStyles = assembleStyles();
|
|
188
247
|
//#endregion
|
|
189
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
248
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
190
249
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
191
250
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
192
251
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -197,12 +256,15 @@ const { env } = process$1;
|
|
|
197
256
|
let flagForceColor;
|
|
198
257
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
199
258
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
259
|
+
function hasNumericForceColor() {
|
|
260
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
261
|
+
}
|
|
200
262
|
function envForceColor() {
|
|
201
|
-
if ("FORCE_COLOR" in env)
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
263
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
264
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
265
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
266
|
+
if (!hasNumericForceColor()) return;
|
|
267
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
206
268
|
}
|
|
207
269
|
function translateLevel(level) {
|
|
208
270
|
if (level === 0) return false;
|
|
@@ -222,6 +284,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
222
284
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
223
285
|
if (hasFlag("color=256")) return 2;
|
|
224
286
|
}
|
|
287
|
+
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
225
288
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
226
289
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
227
290
|
const min = forceColor || 0;
|
|
@@ -246,19 +309,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
246
309
|
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
247
310
|
return min;
|
|
248
311
|
}
|
|
249
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.
|
|
312
|
+
if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
250
313
|
if (env.COLORTERM === "truecolor") return 3;
|
|
251
314
|
if (env.TERM === "xterm-kitty") return 3;
|
|
252
315
|
if (env.TERM === "xterm-ghostty") return 3;
|
|
253
316
|
if (env.TERM === "wezterm") return 3;
|
|
254
317
|
if ("TERM_PROGRAM" in env) {
|
|
255
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
318
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
256
319
|
switch (env.TERM_PROGRAM) {
|
|
257
320
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
258
321
|
case "Apple_Terminal": return 2;
|
|
259
322
|
}
|
|
260
323
|
}
|
|
261
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
324
|
+
if (/-256(?:color)?$/i.test(env.TERM)) return 2;
|
|
262
325
|
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
263
326
|
if ("COLORTERM" in env) return 1;
|
|
264
327
|
return min;
|
|
@@ -269,55 +332,34 @@ function createSupportsColor(stream, options = {}) {
|
|
|
269
332
|
...options
|
|
270
333
|
}));
|
|
271
334
|
}
|
|
272
|
-
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
337
|
+
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
273
338
|
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
274
339
|
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
275
340
|
};
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
278
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
279
|
-
let index = string.indexOf(substring);
|
|
280
|
-
if (index === -1) return string;
|
|
281
|
-
const substringLength = substring.length;
|
|
282
|
-
let endIndex = 0;
|
|
283
|
-
let returnValue = "";
|
|
284
|
-
do {
|
|
285
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
286
|
-
endIndex = index + substringLength;
|
|
287
|
-
index = string.indexOf(substring, endIndex);
|
|
288
|
-
} while (index !== -1);
|
|
289
|
-
returnValue += string.slice(endIndex);
|
|
290
|
-
return returnValue;
|
|
291
|
-
}
|
|
292
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
293
|
-
let endIndex = 0;
|
|
294
|
-
let returnValue = "";
|
|
295
|
-
do {
|
|
296
|
-
const gotCR = string[index - 1] === "\r";
|
|
297
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
298
|
-
endIndex = index + 1;
|
|
299
|
-
index = string.indexOf("\n", endIndex);
|
|
300
|
-
} while (index !== -1);
|
|
301
|
-
returnValue += string.slice(endIndex);
|
|
302
|
-
return returnValue;
|
|
303
|
-
}
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
306
|
-
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
307
341
|
const GENERATOR = Symbol("GENERATOR");
|
|
308
342
|
const STYLER = Symbol("STYLER");
|
|
309
343
|
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
310
|
-
const
|
|
311
|
-
"ansi",
|
|
312
|
-
"ansi",
|
|
313
|
-
"ansi256",
|
|
314
|
-
"ansi16m"
|
|
315
|
-
];
|
|
344
|
+
const LEVEL = Symbol("LEVEL");
|
|
316
345
|
const styles = Object.create(null);
|
|
346
|
+
const assertValidLevel = (level) => {
|
|
347
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
348
|
+
};
|
|
349
|
+
const levelDescriptor = {
|
|
350
|
+
enumerable: true,
|
|
351
|
+
get() {
|
|
352
|
+
return this[LEVEL];
|
|
353
|
+
},
|
|
354
|
+
set(level) {
|
|
355
|
+
assertValidLevel(level);
|
|
356
|
+
this[LEVEL] = level;
|
|
357
|
+
}
|
|
358
|
+
};
|
|
317
359
|
const applyOptions = (object, options = {}) => {
|
|
318
|
-
if (options.level
|
|
360
|
+
if (options.level !== void 0) assertValidLevel(options.level);
|
|
319
361
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
320
|
-
object
|
|
362
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
321
363
|
};
|
|
322
364
|
const chalkFactory = (options) => {
|
|
323
365
|
const chalk = (...strings) => strings.join(" ");
|
|
@@ -339,35 +381,58 @@ styles.visible = { get() {
|
|
|
339
381
|
Object.defineProperty(this, "visible", { value: builder });
|
|
340
382
|
return builder;
|
|
341
383
|
} };
|
|
342
|
-
const
|
|
384
|
+
const createModelConverters = (model, type) => {
|
|
385
|
+
const style = ansiStyles[type];
|
|
343
386
|
if (model === "rgb") {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return
|
|
387
|
+
const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
|
|
388
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
|
|
389
|
+
return [
|
|
390
|
+
ansi,
|
|
391
|
+
ansi,
|
|
392
|
+
ansi256,
|
|
393
|
+
style.ansi16m
|
|
394
|
+
];
|
|
347
395
|
}
|
|
348
|
-
if (model === "hex")
|
|
349
|
-
|
|
396
|
+
if (model === "hex") {
|
|
397
|
+
const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
|
|
398
|
+
const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
|
|
399
|
+
return [
|
|
400
|
+
ansi,
|
|
401
|
+
ansi,
|
|
402
|
+
ansi256,
|
|
403
|
+
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
404
|
+
];
|
|
405
|
+
}
|
|
406
|
+
const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
|
|
407
|
+
return [
|
|
408
|
+
ansi,
|
|
409
|
+
ansi,
|
|
410
|
+
style.ansi256,
|
|
411
|
+
style.ansi256
|
|
412
|
+
];
|
|
350
413
|
};
|
|
351
414
|
for (const model of [
|
|
352
415
|
"rgb",
|
|
353
416
|
"hex",
|
|
354
417
|
"ansi256"
|
|
355
418
|
]) {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
419
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
420
|
+
for (const [styleName, type] of [
|
|
421
|
+
[model, "color"],
|
|
422
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
423
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
424
|
+
]) {
|
|
425
|
+
const { close } = ansiStyles[type];
|
|
426
|
+
const converters = createModelConverters(model, type);
|
|
427
|
+
styles[styleName] = { get() {
|
|
428
|
+
const styleFunction = function(first, second, third) {
|
|
429
|
+
const open = converters[this.level](first, second, third);
|
|
430
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
431
|
+
};
|
|
432
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
433
|
+
return styleFunction;
|
|
434
|
+
} };
|
|
435
|
+
}
|
|
371
436
|
}
|
|
372
437
|
const proto = Object.defineProperties(() => {}, {
|
|
373
438
|
...styles,
|
|
@@ -400,15 +465,19 @@ const createStyler = (open, close, parent) => {
|
|
|
400
465
|
};
|
|
401
466
|
};
|
|
402
467
|
const createBuilder = (self, _styler, _isEmpty) => {
|
|
403
|
-
const builder = (...arguments_) =>
|
|
468
|
+
const builder = (...arguments_) => {
|
|
469
|
+
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
470
|
+
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
471
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
472
|
+
};
|
|
404
473
|
Object.setPrototypeOf(builder, proto);
|
|
405
|
-
builder[GENERATOR] = self;
|
|
474
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
406
475
|
builder[STYLER] = _styler;
|
|
407
476
|
builder[IS_EMPTY] = _isEmpty;
|
|
408
477
|
return builder;
|
|
409
478
|
};
|
|
410
479
|
const applyStyle = (self, string) => {
|
|
411
|
-
if (self
|
|
480
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
412
481
|
let styler = self[STYLER];
|
|
413
482
|
if (styler === void 0) return string;
|
|
414
483
|
const { openAll, closeAll } = styler;
|
|
@@ -420,7 +489,10 @@ const applyStyle = (self, string) => {
|
|
|
420
489
|
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
421
490
|
return openAll + string + closeAll;
|
|
422
491
|
};
|
|
423
|
-
Object.defineProperties(createChalk.prototype,
|
|
492
|
+
Object.defineProperties(createChalk.prototype, {
|
|
493
|
+
...styles,
|
|
494
|
+
level: levelDescriptor
|
|
495
|
+
});
|
|
424
496
|
const chalk = createChalk();
|
|
425
497
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
426
498
|
//#endregion
|
|
@@ -521,7 +593,7 @@ function Ut(n, t = {}) {
|
|
|
521
593
|
function es(n, t = {}) {
|
|
522
594
|
return new I(n, t).iterate();
|
|
523
595
|
}
|
|
524
|
-
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$1, hs, as, ls, cs, fs, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
596
|
+
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$1, hs, as, ls, cs, fs, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, vi, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
525
597
|
//#endregion
|
|
526
598
|
//#region src/lib/copyAssetFiles.ts
|
|
527
599
|
__esmMin((() => {
|
|
@@ -2278,12 +2350,13 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2278
2350
|
return oi;
|
|
2279
2351
|
}
|
|
2280
2352
|
};
|
|
2353
|
+
vi = realpathSync.native;
|
|
2281
2354
|
wt = {
|
|
2282
2355
|
lstatSync,
|
|
2283
2356
|
readdir,
|
|
2284
2357
|
readdirSync,
|
|
2285
2358
|
readlinkSync,
|
|
2286
|
-
realpathSync:
|
|
2359
|
+
realpathSync: vi,
|
|
2287
2360
|
promises: {
|
|
2288
2361
|
lstat,
|
|
2289
2362
|
readdir: readdir$1,
|
|
@@ -2341,7 +2414,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2341
2414
|
}
|
|
2342
2415
|
};
|
|
2343
2416
|
ne = class extends ft {
|
|
2344
|
-
constructor(t =
|
|
2417
|
+
constructor(t = 16384) {
|
|
2345
2418
|
super({
|
|
2346
2419
|
maxSize: t,
|
|
2347
2420
|
sizeCalculation: (e) => e.length + 1
|
|
@@ -2810,7 +2883,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2810
2883
|
#n;
|
|
2811
2884
|
nocase;
|
|
2812
2885
|
#r;
|
|
2813
|
-
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r =
|
|
2886
|
+
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
|
|
2814
2887
|
this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
|
|
2815
2888
|
let h = e.resolve(t);
|
|
2816
2889
|
this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
|