@ariestools/toolchain 8.7.26 → 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.
Files changed (45) hide show
  1. package/dist/actions/deplint/findFiles.d.ts +1 -1
  2. package/dist/actions/deplint/findFiles.d.ts.map +1 -1
  3. package/dist/actions/deplint/isTerminalPackage.d.ts +1 -1
  4. package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
  5. package/dist/actions/deplint/types.d.ts +2 -3
  6. package/dist/actions/deplint/types.d.ts.map +1 -1
  7. package/dist/actions/skills/defaults.d.ts +18 -1
  8. package/dist/actions/skills/defaults.d.ts.map +1 -1
  9. package/dist/actions/skills/detectProfile.d.ts +8 -0
  10. package/dist/actions/skills/detectProfile.d.ts.map +1 -1
  11. package/dist/actions/skills/lint.d.ts.map +1 -1
  12. package/dist/actions/skills/skillRules.d.ts +12 -1
  13. package/dist/actions/skills/skillRules.d.ts.map +1 -1
  14. package/dist/bin/package/build.mjs +915 -2503
  15. package/dist/bin/package/build.mjs.map +1 -1
  16. package/dist/bin/package/clean.mjs +368 -2056
  17. package/dist/bin/package/clean.mjs.map +1 -1
  18. package/dist/bin/package/compile.mjs +717 -2401
  19. package/dist/bin/package/compile.mjs.map +1 -1
  20. package/dist/bin/package/copy-assets-cjs.mjs +159 -86
  21. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
  22. package/dist/bin/package/copy-assets-esm.mjs +159 -86
  23. package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
  24. package/dist/bin/package/fix.mjs +259 -148
  25. package/dist/bin/package/fix.mjs.map +1 -1
  26. package/dist/bin/package/lint-verbose.mjs +259 -148
  27. package/dist/bin/package/lint-verbose.mjs.map +1 -1
  28. package/dist/bin/package/lint.mjs +259 -148
  29. package/dist/bin/package/lint.mjs.map +1 -1
  30. package/dist/bin/package/publint.mjs +393 -2027
  31. package/dist/bin/package/publint.mjs.map +1 -1
  32. package/dist/bin/package/recompile.mjs +719 -2403
  33. package/dist/bin/package/recompile.mjs.map +1 -1
  34. package/dist/bin/package/relint.mjs +259 -148
  35. package/dist/bin/package/relint.mjs.map +1 -1
  36. package/dist/bin/package/sync-layout.mjs +232 -1961
  37. package/dist/bin/package/sync-layout.mjs.map +1 -1
  38. package/dist/bin/run-or-exec.mjs +157 -84
  39. package/dist/bin/run-or-exec.mjs.map +1 -1
  40. package/dist/bin/skills.mjs +4375 -670
  41. package/dist/bin/skills.mjs.map +1 -1
  42. package/dist/bin/xy.mjs +886 -2251
  43. package/dist/bin/xy.mjs.map +1 -1
  44. package/dist/xy/common/skills/index.d.ts.map +1 -1
  45. package/package.json +4 -4
package/dist/bin/xy.mjs CHANGED
@@ -19,17 +19,17 @@ import { execFile, execFileSync, execSync, spawn } from "node:child_process";
19
19
  import * as readline from "node:readline";
20
20
  import u, { createInterface } from "node:readline";
21
21
  import { fileURLToPath as fileURLToPath$1 } from "url";
22
- import { format, inspect } from "util";
23
- import ts from "typescript";
24
22
  import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
25
23
  import { performance as performance$1 } from "node:perf_hooks";
26
24
  import util, { promisify, stripVTControlCharacters } from "node:util";
25
+ import ts from "typescript";
27
26
  import { createHash, randomBytes } from "node:crypto";
28
27
  import { applyRecommendedConfigTypeChecked, parseRecommendedConfigSource } from "@ariestools/eslint-config-flat";
29
28
  import { pipeline } from "node:stream/promises";
30
29
  import zlib from "node:zlib";
31
30
  import { builtinRules } from "eslint/use-at-your-own-risk";
32
31
  import { notStrictEqual, strictEqual } from "assert";
32
+ import { format, inspect } from "util";
33
33
  //#region \0rolldown/runtime.js
34
34
  var __create = Object.create;
35
35
  var __defProp = Object.defineProperty;
@@ -65,7 +65,7 @@ var __copyProps = (to, from, except, desc) => {
65
65
  }
66
66
  return to;
67
67
  };
68
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
68
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
69
69
  value: mod,
70
70
  enumerable: true
71
71
  }) : target, mod));
@@ -85,11 +85,41 @@ function resolvePublishedOrDevCli(bundledName, devResolve) {
85
85
  return devResolve();
86
86
  }
87
87
  //#endregion
88
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
88
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
89
+ function stringReplaceAll(string, substring, postfix) {
90
+ let index = string.indexOf(substring);
91
+ if (index === -1) return string;
92
+ const substringLength = substring.length;
93
+ let endIndex = 0;
94
+ let returnValue = "";
95
+ do {
96
+ returnValue += string.slice(endIndex, index) + substring + postfix;
97
+ endIndex = index + substringLength;
98
+ index = string.indexOf(substring, endIndex);
99
+ } while (index !== -1);
100
+ returnValue += string.slice(endIndex);
101
+ return returnValue;
102
+ }
103
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
104
+ let endIndex = 0;
105
+ let returnValue = "";
106
+ do {
107
+ const isGotCR = string[index - 1] === "\r";
108
+ returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
109
+ endIndex = index + 1;
110
+ index = string.indexOf("\n", endIndex);
111
+ } while (index !== -1);
112
+ returnValue += string.slice(endIndex);
113
+ return returnValue;
114
+ }
115
+ //#endregion
116
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
89
117
  const ANSI_BACKGROUND_OFFSET$1 = 10;
90
- const wrapAnsi16$1 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
91
- const wrapAnsi256$1 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
92
- const wrapAnsi16m$1 = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
118
+ const ANSI_UNDERLINE_OFFSET = 20;
119
+ const wrapAnsi16$1 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
120
+ const wrapAnsi256$1 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
121
+ const wrapAnsi16m$1 = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
122
+ const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
93
123
  const styles$2 = {
94
124
  modifier: {
95
125
  reset: [0, 0],
@@ -97,6 +127,10 @@ const styles$2 = {
97
127
  dim: [2, 22],
98
128
  italic: [3, 23],
99
129
  underline: [4, 24],
130
+ underlineDouble: ["4:2", 24],
131
+ underlineCurly: ["4:3", 24],
132
+ underlineDotted: ["4:4", 24],
133
+ underlineDashed: ["4:5", 24],
100
134
  overline: [53, 55],
101
135
  inverse: [7, 27],
102
136
  hidden: [8, 28],
@@ -141,22 +175,43 @@ const styles$2 = {
141
175
  bgMagentaBright: [105, 49],
142
176
  bgCyanBright: [106, 49],
143
177
  bgWhiteBright: [107, 49]
178
+ },
179
+ underlineColor: {
180
+ underlineBlack: ["58;5;0", 59],
181
+ underlineRed: ["58;5;1", 59],
182
+ underlineGreen: ["58;5;2", 59],
183
+ underlineYellow: ["58;5;3", 59],
184
+ underlineBlue: ["58;5;4", 59],
185
+ underlineMagenta: ["58;5;5", 59],
186
+ underlineCyan: ["58;5;6", 59],
187
+ underlineWhite: ["58;5;7", 59],
188
+ underlineBlackBright: ["58;5;8", 59],
189
+ underlineGray: ["58;5;8", 59],
190
+ underlineGrey: ["58;5;8", 59],
191
+ underlineRedBright: ["58;5;9", 59],
192
+ underlineGreenBright: ["58;5;10", 59],
193
+ underlineYellowBright: ["58;5;11", 59],
194
+ underlineBlueBright: ["58;5;12", 59],
195
+ underlineMagentaBright: ["58;5;13", 59],
196
+ underlineCyanBright: ["58;5;14", 59],
197
+ underlineWhiteBright: ["58;5;15", 59]
144
198
  }
145
199
  };
146
200
  Object.keys(styles$2.modifier);
147
201
  const foregroundColorNames$1 = Object.keys(styles$2.color);
148
202
  const backgroundColorNames$1 = Object.keys(styles$2.bgColor);
203
+ Object.keys(styles$2.underlineColor);
149
204
  [...foregroundColorNames$1, ...backgroundColorNames$1];
150
205
  function assembleStyles$1() {
151
206
  const codes = /* @__PURE__ */ new Map();
152
207
  for (const [groupName, group] of Object.entries(styles$2)) {
153
208
  for (const [styleName, style] of Object.entries(group)) {
154
209
  styles$2[styleName] = {
155
- open: `\u001B[${style[0]}m`,
156
- close: `\u001B[${style[1]}m`
210
+ open: `\u{1B}[${style[0]}m`,
211
+ close: `\u{1B}[${style[1]}m`
157
212
  };
158
213
  group[styleName] = styles$2[styleName];
159
- codes.set(style[0], style[1]);
214
+ codes.set(Number.parseInt(style[0], 10), style[1]);
160
215
  }
161
216
  Object.defineProperty(styles$2, groupName, {
162
217
  value: group,
@@ -169,12 +224,16 @@ function assembleStyles$1() {
169
224
  });
170
225
  styles$2.color.close = "\x1B[39m";
171
226
  styles$2.bgColor.close = "\x1B[49m";
227
+ styles$2.underlineColor.close = "\x1B[59m";
172
228
  styles$2.color.ansi = wrapAnsi16$1();
173
229
  styles$2.color.ansi256 = wrapAnsi256$1();
174
230
  styles$2.color.ansi16m = wrapAnsi16m$1();
175
231
  styles$2.bgColor.ansi = wrapAnsi16$1(ANSI_BACKGROUND_OFFSET$1);
176
232
  styles$2.bgColor.ansi256 = wrapAnsi256$1(ANSI_BACKGROUND_OFFSET$1);
177
233
  styles$2.bgColor.ansi16m = wrapAnsi16m$1(ANSI_BACKGROUND_OFFSET$1);
234
+ styles$2.underlineColor.ansi = wrapUnderlineAnsi;
235
+ styles$2.underlineColor.ansi256 = wrapAnsi256$1(ANSI_UNDERLINE_OFFSET);
236
+ styles$2.underlineColor.ansi16m = wrapAnsi16m$1(ANSI_UNDERLINE_OFFSET);
178
237
  Object.defineProperties(styles$2, {
179
238
  rgbToAnsi256: {
180
239
  value(red, green, blue) {
@@ -189,7 +248,7 @@ function assembleStyles$1() {
189
248
  },
190
249
  hexToRgb: {
191
250
  value(hex) {
192
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
251
+ const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
193
252
  if (!matches) return [
194
253
  0,
195
254
  0,
@@ -249,7 +308,7 @@ function assembleStyles$1() {
249
308
  }
250
309
  const ansiStyles$1 = assembleStyles$1();
251
310
  //#endregion
252
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
311
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
253
312
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
254
313
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
255
314
  const position = argv.indexOf(prefix + flag);
@@ -260,12 +319,15 @@ const { env: env$1 } = process$1;
260
319
  let flagForceColor;
261
320
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
262
321
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
322
+ function hasNumericForceColor() {
323
+ return /^\d+$/.test(env$1.FORCE_COLOR);
324
+ }
263
325
  function envForceColor() {
264
- if ("FORCE_COLOR" in env$1) {
265
- if (env$1.FORCE_COLOR === "true") return 1;
266
- if (env$1.FORCE_COLOR === "false") return 0;
267
- return env$1.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env$1.FORCE_COLOR, 10), 3);
268
- }
326
+ if (!("FORCE_COLOR" in env$1)) return;
327
+ if (env$1.FORCE_COLOR === "false") return 0;
328
+ if (env$1.FORCE_COLOR === "true" || env$1.FORCE_COLOR.length === 0) return 1;
329
+ if (!hasNumericForceColor()) return;
330
+ return Math.min(Number.parseInt(env$1.FORCE_COLOR, 10), 3);
269
331
  }
270
332
  function translateLevel(level) {
271
333
  if (level === 0) return false;
@@ -285,6 +347,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
285
347
  if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
286
348
  if (hasFlag("color=256")) return 2;
287
349
  }
350
+ if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
288
351
  if ("TF_BUILD" in env$1 && "AGENT_NAME" in env$1) return 1;
289
352
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
290
353
  const min = forceColor || 0;
@@ -309,19 +372,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
309
372
  ].some((sign) => sign in env$1) || env$1.CI_NAME === "codeship") return 1;
310
373
  return min;
311
374
  }
312
- if ("TEAMCITY_VERSION" in env$1) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env$1.TEAMCITY_VERSION) ? 1 : 0;
375
+ if ("TEAMCITY_VERSION" in env$1) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env$1.TEAMCITY_VERSION) ? 1 : 0;
313
376
  if (env$1.COLORTERM === "truecolor") return 3;
314
377
  if (env$1.TERM === "xterm-kitty") return 3;
315
378
  if (env$1.TERM === "xterm-ghostty") return 3;
316
379
  if (env$1.TERM === "wezterm") return 3;
317
380
  if ("TERM_PROGRAM" in env$1) {
318
- const version = Number.parseInt((env$1.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
381
+ const version = Number.parseInt((env$1.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
319
382
  switch (env$1.TERM_PROGRAM) {
320
383
  case "iTerm.app": return version >= 3 ? 3 : 2;
321
384
  case "Apple_Terminal": return 2;
322
385
  }
323
386
  }
324
- if (/-256(color)?$/i.test(env$1.TERM)) return 2;
387
+ if (/-256(?:color)?$/i.test(env$1.TERM)) return 2;
325
388
  if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env$1.TERM)) return 1;
326
389
  if ("COLORTERM" in env$1) return 1;
327
390
  return min;
@@ -332,55 +395,34 @@ function createSupportsColor(stream, options = {}) {
332
395
  ...options
333
396
  }));
334
397
  }
335
- const supportsColor = {
398
+ //#endregion
399
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
400
+ const { stdout: stdoutColor, stderr: stderrColor } = {
336
401
  stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
337
402
  stderr: createSupportsColor({ isTTY: tty.isatty(2) })
338
403
  };
339
- //#endregion
340
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
341
- function stringReplaceAll(string, substring, replacer) {
342
- let index = string.indexOf(substring);
343
- if (index === -1) return string;
344
- const substringLength = substring.length;
345
- let endIndex = 0;
346
- let returnValue = "";
347
- do {
348
- returnValue += string.slice(endIndex, index) + substring + replacer;
349
- endIndex = index + substringLength;
350
- index = string.indexOf(substring, endIndex);
351
- } while (index !== -1);
352
- returnValue += string.slice(endIndex);
353
- return returnValue;
354
- }
355
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
356
- let endIndex = 0;
357
- let returnValue = "";
358
- do {
359
- const gotCR = string[index - 1] === "\r";
360
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
361
- endIndex = index + 1;
362
- index = string.indexOf("\n", endIndex);
363
- } while (index !== -1);
364
- returnValue += string.slice(endIndex);
365
- return returnValue;
366
- }
367
- //#endregion
368
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
369
- const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
370
404
  const GENERATOR = Symbol("GENERATOR");
371
405
  const STYLER = Symbol("STYLER");
372
406
  const IS_EMPTY = Symbol("IS_EMPTY");
373
- const levelMapping = [
374
- "ansi",
375
- "ansi",
376
- "ansi256",
377
- "ansi16m"
378
- ];
407
+ const LEVEL = Symbol("LEVEL");
379
408
  const styles$1 = Object.create(null);
409
+ const assertValidLevel = (level) => {
410
+ if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
411
+ };
412
+ const levelDescriptor = {
413
+ enumerable: true,
414
+ get() {
415
+ return this[LEVEL];
416
+ },
417
+ set(level) {
418
+ assertValidLevel(level);
419
+ this[LEVEL] = level;
420
+ }
421
+ };
380
422
  const applyOptions = (object, options = {}) => {
381
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
423
+ if (options.level !== void 0) assertValidLevel(options.level);
382
424
  const colorLevel = stdoutColor ? stdoutColor.level : 0;
383
- object.level = options.level === void 0 ? colorLevel : options.level;
425
+ object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
384
426
  };
385
427
  const chalkFactory = (options) => {
386
428
  const chalk = (...strings) => strings.join(" ");
@@ -402,35 +444,58 @@ styles$1.visible = { get() {
402
444
  Object.defineProperty(this, "visible", { value: builder });
403
445
  return builder;
404
446
  } };
405
- const getModelAnsi = (model, level, type, ...arguments_) => {
447
+ const createModelConverters = (model, type) => {
448
+ const style = ansiStyles$1[type];
406
449
  if (model === "rgb") {
407
- if (level === "ansi16m") return ansiStyles$1[type].ansi16m(...arguments_);
408
- if (level === "ansi256") return ansiStyles$1[type].ansi256(ansiStyles$1.rgbToAnsi256(...arguments_));
409
- return ansiStyles$1[type].ansi(ansiStyles$1.rgbToAnsi(...arguments_));
450
+ const ansi = (red, green, blue) => style.ansi(ansiStyles$1.rgbToAnsi(red, green, blue));
451
+ const ansi256 = (red, green, blue) => style.ansi256(ansiStyles$1.rgbToAnsi256(red, green, blue));
452
+ return [
453
+ ansi,
454
+ ansi,
455
+ ansi256,
456
+ style.ansi16m
457
+ ];
458
+ }
459
+ if (model === "hex") {
460
+ const ansi = (hex) => style.ansi(ansiStyles$1.hexToAnsi(hex));
461
+ const ansi256 = (hex) => style.ansi256(ansiStyles$1.hexToAnsi256(hex));
462
+ return [
463
+ ansi,
464
+ ansi,
465
+ ansi256,
466
+ (hex) => style.ansi16m(...ansiStyles$1.hexToRgb(hex))
467
+ ];
410
468
  }
411
- if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles$1.hexToRgb(...arguments_));
412
- return ansiStyles$1[type][model](...arguments_);
469
+ const ansi = (code) => style.ansi(ansiStyles$1.ansi256ToAnsi(code));
470
+ return [
471
+ ansi,
472
+ ansi,
473
+ style.ansi256,
474
+ style.ansi256
475
+ ];
413
476
  };
414
477
  for (const model of [
415
478
  "rgb",
416
479
  "hex",
417
480
  "ansi256"
418
481
  ]) {
419
- styles$1[model] = { get() {
420
- const { level } = this;
421
- return function(...arguments_) {
422
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles$1.color.close, this[STYLER]);
423
- return createBuilder(this, styler, this[IS_EMPTY]);
424
- };
425
- } };
426
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
427
- styles$1[bgModel] = { get() {
428
- const { level } = this;
429
- return function(...arguments_) {
430
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles$1.bgColor.close, this[STYLER]);
431
- return createBuilder(this, styler, this[IS_EMPTY]);
432
- };
433
- } };
482
+ const capitalizedModel = model[0].toUpperCase() + model.slice(1);
483
+ for (const [styleName, type] of [
484
+ [model, "color"],
485
+ ["bg" + capitalizedModel, "bgColor"],
486
+ ["underline" + capitalizedModel, "underlineColor"]
487
+ ]) {
488
+ const { close } = ansiStyles$1[type];
489
+ const converters = createModelConverters(model, type);
490
+ styles$1[styleName] = { get() {
491
+ const styleFunction = function(first, second, third) {
492
+ const open = converters[this.level](first, second, third);
493
+ return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
494
+ };
495
+ Object.defineProperty(this, styleName, { value: styleFunction });
496
+ return styleFunction;
497
+ } };
498
+ }
434
499
  }
435
500
  const proto = Object.defineProperties(() => {}, {
436
501
  ...styles$1,
@@ -463,15 +528,19 @@ const createStyler = (open, close, parent) => {
463
528
  };
464
529
  };
465
530
  const createBuilder = (self, _styler, _isEmpty) => {
466
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
531
+ const builder = (...arguments_) => {
532
+ if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
533
+ if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
534
+ return applyStyle(builder, arguments_.join(" "));
535
+ };
467
536
  Object.setPrototypeOf(builder, proto);
468
- builder[GENERATOR] = self;
537
+ builder[GENERATOR] = self[GENERATOR] ?? self;
469
538
  builder[STYLER] = _styler;
470
539
  builder[IS_EMPTY] = _isEmpty;
471
540
  return builder;
472
541
  };
473
542
  const applyStyle = (self, string) => {
474
- if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
543
+ if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
475
544
  let styler = self[STYLER];
476
545
  if (styler === void 0) return string;
477
546
  const { openAll, closeAll } = styler;
@@ -483,7 +552,10 @@ const applyStyle = (self, string) => {
483
552
  if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
484
553
  return openAll + string + closeAll;
485
554
  };
486
- Object.defineProperties(createChalk.prototype, styles$1);
555
+ Object.defineProperties(createChalk.prototype, {
556
+ ...styles$1,
557
+ level: levelDescriptor
558
+ });
487
559
  const chalk = createChalk();
488
560
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
489
561
  //#endregion
@@ -541,7 +613,7 @@ function Ht(n) {
541
613
  return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
542
614
  }
543
615
  function ps(n) {
544
- return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$6, de).replace(us, pe);
616
+ return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$5, de).replace(us, pe);
545
617
  }
546
618
  function ms(n) {
547
619
  return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$2, ",").replace(hs, ".");
@@ -633,7 +705,7 @@ function Ut(n, t = {}) {
633
705
  function es(n, t = {}) {
634
706
  return new I$1(n, t).iterate();
635
707
  }
636
- var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$6, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O$1, 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$1, Zs, ke, Qs, ti, ve, ei, D$1, 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$1, et, v$1, dt, st, C$1, F$1, T$1, Yt, Ft, k$1, x$1, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui$1, Mt, te, di, pi, V, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _$1, gt, se, je, yt, j$1, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R$1, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I$1, le, ji, Ii, zi, Bi, Ui, Ze;
708
+ var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O$1, 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$1, Zs, ke, Qs, ti, ve, ei, D$1, 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$1, et, v$1, dt, st, C$1, F$1, T$1, Yt, Ft, k$1, x$1, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui$1, Mt, te, di, pi, V, vi, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _$1, gt, se, je, yt, j$1, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R$1, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I$1, le, ji, Ii, zi, Bi, Ui, Ze;
637
709
  var init_index_min = __esmMin((() => {
638
710
  Gt = (n, t, e) => {
639
711
  let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
@@ -678,7 +750,7 @@ var init_index_min = __esmMin((() => {
678
750
  as = /\\\\/g;
679
751
  ls = /\\{/g;
680
752
  cs = /\\}/g;
681
- fs$6 = /\\,/g;
753
+ fs$5 = /\\,/g;
682
754
  us = /\\./g;
683
755
  ds = 1e5;
684
756
  at = (n) => {
@@ -2388,12 +2460,13 @@ while (this[Le](this[Ft]()) && this[C$1].length);
2388
2460
  return oi;
2389
2461
  }
2390
2462
  };
2463
+ vi = realpathSync$1.native;
2391
2464
  wt = {
2392
2465
  lstatSync: lstatSync$1,
2393
2466
  readdir,
2394
2467
  readdirSync: readdirSync$1,
2395
2468
  readlinkSync: readlinkSync$1,
2396
- realpathSync: realpathSync$1.native,
2469
+ realpathSync: vi,
2397
2470
  promises: {
2398
2471
  lstat,
2399
2472
  readdir: readdir$1,
@@ -2451,7 +2524,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
2451
2524
  }
2452
2525
  };
2453
2526
  ne = class extends ft {
2454
- constructor(t = 16 * 1024) {
2527
+ constructor(t = 16384) {
2455
2528
  super({
2456
2529
  maxSize: t,
2457
2530
  sizeCalculation: (e) => e.length + 1
@@ -2920,7 +2993,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
2920
2993
  #n;
2921
2994
  nocase;
2922
2995
  #r;
2923
- constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16 * 1024, fs: o = wt } = {}) {
2996
+ constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
2924
2997
  this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
2925
2998
  let h = e.resolve(t);
2926
2999
  this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
@@ -3866,7 +3939,7 @@ function copyAssetFiles(srcDir, destDir) {
3866
3939
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3867
3940
  module.exports = isexe;
3868
3941
  isexe.sync = sync;
3869
- var fs$5 = __require("fs");
3942
+ var fs$4 = __require("fs");
3870
3943
  function checkPathExt(path, options) {
3871
3944
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
3872
3945
  if (!pathext) return true;
@@ -3883,12 +3956,12 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3883
3956
  return checkPathExt(path, options);
3884
3957
  }
3885
3958
  function isexe(path, options, cb) {
3886
- fs$5.stat(path, function(er, stat) {
3959
+ fs$4.stat(path, function(er, stat) {
3887
3960
  cb(er, er ? false : checkStat(stat, path, options));
3888
3961
  });
3889
3962
  }
3890
3963
  function sync(path, options) {
3891
- return checkStat(fs$5.statSync(path), path, options);
3964
+ return checkStat(fs$4.statSync(path), path, options);
3892
3965
  }
3893
3966
  }));
3894
3967
  //#endregion
@@ -3896,14 +3969,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3896
3969
  var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3897
3970
  module.exports = isexe;
3898
3971
  isexe.sync = sync;
3899
- var fs$4 = __require("fs");
3972
+ var fs$3 = __require("fs");
3900
3973
  function isexe(path, options, cb) {
3901
- fs$4.stat(path, function(er, stat) {
3974
+ fs$3.stat(path, function(er, stat) {
3902
3975
  cb(er, er ? false : checkStat(stat, options));
3903
3976
  });
3904
3977
  }
3905
3978
  function sync(path, options) {
3906
- return checkStat(fs$4.statSync(path), options);
3979
+ return checkStat(fs$3.statSync(path), options);
3907
3980
  }
3908
3981
  function checkStat(stat, options) {
3909
3982
  return stat.isFile() && checkMode(stat, options);
@@ -3967,13 +4040,14 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3967
4040
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
3968
4041
  var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3969
4042
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
3970
- const path$7 = __require("path");
4043
+ const path$5 = __require("path");
3971
4044
  const COLON = isWindows ? ";" : ":";
3972
4045
  const isexe = require_isexe();
3973
4046
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
3974
4047
  const getPathInfo = (cmd, opt) => {
3975
4048
  const colon = opt.colon || COLON;
3976
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
4049
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
4050
+ /* istanbul ignore next: very unusual */ "").split(colon)];
3977
4051
  const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
3978
4052
  const pathExt = isWindows ? pathExtExe.split(colon) : [""];
3979
4053
  if (isWindows) {
@@ -3997,7 +4071,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3997
4071
  if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
3998
4072
  const ppRaw = pathEnv[i];
3999
4073
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
4000
- const pCmd = path$7.join(pathPart, cmd);
4074
+ const pCmd = path$5.join(pathPart, cmd);
4001
4075
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
4002
4076
  resolve(subStep(p, i, 0));
4003
4077
  });
@@ -4019,7 +4093,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4019
4093
  for (let i = 0; i < pathEnv.length; i++) {
4020
4094
  const ppRaw = pathEnv[i];
4021
4095
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
4022
- const pCmd = path$7.join(pathPart, cmd);
4096
+ const pCmd = path$5.join(pathPart, cmd);
4023
4097
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
4024
4098
  for (let j = 0; j < pathExt.length; j++) {
4025
4099
  const cur = p + pathExt[j];
@@ -4050,7 +4124,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4050
4124
  //#endregion
4051
4125
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
4052
4126
  var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4053
- const path$6 = __require("path");
4127
+ const path$4 = __require("path");
4054
4128
  const which = require_which();
4055
4129
  const getPathKey = require_path_key();
4056
4130
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -4065,12 +4139,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
4065
4139
  try {
4066
4140
  resolved = which.sync(parsed.command, {
4067
4141
  path: env[getPathKey({ env })],
4068
- pathExt: withoutPathExt ? path$6.delimiter : void 0
4142
+ pathExt: withoutPathExt ? path$4.delimiter : void 0
4069
4143
  });
4070
4144
  } catch (e) {} finally {
4071
4145
  if (shouldSwitchCwd) process.chdir(cwd);
4072
4146
  }
4073
- if (resolved) resolved = path$6.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
4147
+ if (resolved) resolved = path$4.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
4074
4148
  return resolved;
4075
4149
  }
4076
4150
  function resolveCommand(parsed) {
@@ -4119,16 +4193,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
4119
4193
  //#endregion
4120
4194
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
4121
4195
  var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4122
- const fs$3 = __require("fs");
4196
+ const fs$2 = __require("fs");
4123
4197
  const shebangCommand = require_shebang_command();
4124
4198
  function readShebang(command) {
4125
4199
  const size = 150;
4126
4200
  const buffer = Buffer.alloc(size);
4127
4201
  let fd;
4128
4202
  try {
4129
- fd = fs$3.openSync(command, "r");
4130
- fs$3.readSync(fd, buffer, 0, size, 0);
4131
- fs$3.closeSync(fd);
4203
+ fd = fs$2.openSync(command, "r");
4204
+ fs$2.readSync(fd, buffer, 0, size, 0);
4205
+ fs$2.closeSync(fd);
4132
4206
  } catch (e) {}
4133
4207
  return shebangCommand(buffer.toString());
4134
4208
  }
@@ -4137,7 +4211,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4137
4211
  //#endregion
4138
4212
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
4139
4213
  var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4140
- const path$5 = __require("path");
4214
+ const path$3 = __require("path");
4141
4215
  const resolveCommand = require_resolveCommand();
4142
4216
  const escape = require_escape();
4143
4217
  const readShebang = require_readShebang();
@@ -4160,7 +4234,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4160
4234
  const needsShell = !isExecutableRegExp.test(commandFile);
4161
4235
  if (parsed.options.forceShell || needsShell) {
4162
4236
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
4163
- parsed.command = path$5.normalize(parsed.command);
4237
+ parsed.command = path$3.normalize(parsed.command);
4164
4238
  parsed.command = escape.command(parsed.command);
4165
4239
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
4166
4240
  parsed.args = [
@@ -4600,7 +4674,7 @@ var BunPackageManager = class {
4600
4674
  ], {
4601
4675
  context: { operation: "Inspect installed bun package versions" },
4602
4676
  encoding: "utf8",
4603
- maxBuffer: 64 * 1024 * 1024
4677
+ maxBuffer: 67108864
4604
4678
  });
4605
4679
  if (result.error) return /* @__PURE__ */ new Map();
4606
4680
  return parseBunVersions(result.stdout);
@@ -4763,7 +4837,7 @@ var NpmPackageManager = class {
4763
4837
  ], {
4764
4838
  context: { operation: "Inspect installed npm package versions" },
4765
4839
  encoding: "utf8",
4766
- maxBuffer: 64 * 1024 * 1024
4840
+ maxBuffer: 67108864
4767
4841
  });
4768
4842
  const versions = /* @__PURE__ */ new Map();
4769
4843
  if (result.error) return versions;
@@ -4885,7 +4959,7 @@ var PnpmPackageManager = class {
4885
4959
  ], {
4886
4960
  context: { operation: "Inspect installed pnpm package versions" },
4887
4961
  encoding: "utf8",
4888
- maxBuffer: 64 * 1024 * 1024
4962
+ maxBuffer: 67108864
4889
4963
  });
4890
4964
  const versions = /* @__PURE__ */ new Map();
4891
4965
  if (result.error) return versions;
@@ -4905,7 +4979,7 @@ var PnpmPackageManager = class {
4905
4979
  ], {
4906
4980
  context: { operation: "List pnpm workspaces" },
4907
4981
  encoding: "utf8",
4908
- maxBuffer: 64 * 1024 * 1024
4982
+ maxBuffer: 67108864
4909
4983
  });
4910
4984
  if (result.error) throw result.error;
4911
4985
  try {
@@ -5056,7 +5130,7 @@ var YarnPackageManager = class {
5056
5130
  ], {
5057
5131
  context: { operation: "Inspect installed yarn package versions" },
5058
5132
  encoding: "utf8",
5059
- maxBuffer: 64 * 1024 * 1024
5133
+ maxBuffer: 67108864
5060
5134
  });
5061
5135
  const versions = /* @__PURE__ */ new Map();
5062
5136
  if (result.error) return versions;
@@ -5258,7 +5332,8 @@ const detectDuplicateDependencies = (depsFromPackageJSON, DefaultDependencies, s
5258
5332
  for (const dependency of dependencies) {
5259
5333
  let output;
5260
5334
  try {
5261
- output = execSync(`${getPackageManager().command} why ${dependency} --json`, { maxBuffer: 64 * 1024 * 1024 }).toString();
5335
+ const cmd = `${getPackageManager().command} why ${dependency} --json`;
5336
+ output = execSync(cmd, { maxBuffer: 67108864 }).toString();
5262
5337
  } catch (e) {
5263
5338
  console.error(`Error running dependency check: ${String(e)}`);
5264
5339
  exitCode = 1;
@@ -5282,14 +5357,12 @@ const detectDuplicateDependencies = (depsFromPackageJSON, DefaultDependencies, s
5282
5357
  //#endregion
5283
5358
  //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
5284
5359
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5285
- const SEMVER_SPEC_VERSION = "2.0.0";
5286
- const MAX_LENGTH = 256;
5287
- const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
5288
5360
  module.exports = {
5289
- MAX_LENGTH,
5361
+ MAX_LENGTH: 256,
5290
5362
  MAX_SAFE_COMPONENT_LENGTH: 16,
5291
- MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
5292
- MAX_SAFE_INTEGER,
5363
+ MAX_SAFE_BUILD_LENGTH: 250,
5364
+ MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER ||
5365
+ /* istanbul ignore next */ 9007199254740991,
5293
5366
  RELEASE_TYPES: [
5294
5367
  "major",
5295
5368
  "premajor",
@@ -5299,7 +5372,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5299
5372
  "prepatch",
5300
5373
  "prerelease"
5301
5374
  ],
5302
- SEMVER_SPEC_VERSION,
5375
+ SEMVER_SPEC_VERSION: "2.0.0",
5303
5376
  FLAG_INCLUDE_PRERELEASE: 1,
5304
5377
  FLAG_LOOSE: 2
5305
5378
  };
@@ -5892,9 +5965,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5892
5965
  version.minor = 0;
5893
5966
  version.patch = 0;
5894
5967
  break;
5895
- case "minor":
5896
- version.patch = 0;
5897
- break;
5968
+ case "minor": version.patch = 0;
5898
5969
  }
5899
5970
  return version.format();
5900
5971
  };
@@ -6995,1768 +7066,6 @@ function collectProductionLicenses(startDir) {
6995
7066
  return result;
6996
7067
  }
6997
7068
  //#endregion
6998
- //#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
6999
- var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7000
- const path$4 = __require("path");
7001
- const Module = __require("module");
7002
- const fs$2 = __require("fs");
7003
- const resolveFrom = (fromDir, moduleId, silent) => {
7004
- if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
7005
- if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
7006
- try {
7007
- fromDir = fs$2.realpathSync(fromDir);
7008
- } catch (err) {
7009
- if (err.code === "ENOENT") fromDir = path$4.resolve(fromDir);
7010
- else if (silent) return null;
7011
- else throw err;
7012
- }
7013
- const fromFile = path$4.join(fromDir, "noop.js");
7014
- const resolveFileName = () => Module._resolveFilename(moduleId, {
7015
- id: fromFile,
7016
- filename: fromFile,
7017
- paths: Module._nodeModulePaths(fromDir)
7018
- });
7019
- if (silent) try {
7020
- return resolveFileName();
7021
- } catch (err) {
7022
- return null;
7023
- }
7024
- return resolveFileName();
7025
- };
7026
- module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
7027
- module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
7028
- }));
7029
- //#endregion
7030
- //#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
7031
- var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7032
- const callsites = () => {
7033
- const _prepareStackTrace = Error.prepareStackTrace;
7034
- Error.prepareStackTrace = (_, stack) => stack;
7035
- const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
7036
- Error.prepareStackTrace = _prepareStackTrace;
7037
- return stack;
7038
- };
7039
- module.exports = callsites;
7040
- module.exports.default = callsites;
7041
- }));
7042
- //#endregion
7043
- //#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
7044
- var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7045
- const callsites = require_callsites();
7046
- module.exports = (filepath) => {
7047
- const stacks = callsites();
7048
- if (!filepath) return stacks[2].getFileName();
7049
- let seenVal = false;
7050
- stacks.shift();
7051
- for (const stack of stacks) {
7052
- const parentFilepath = stack.getFileName();
7053
- if (typeof parentFilepath !== "string") continue;
7054
- if (parentFilepath === filepath) {
7055
- seenVal = true;
7056
- continue;
7057
- }
7058
- if (parentFilepath === "module.js") continue;
7059
- if (seenVal && parentFilepath !== filepath) return parentFilepath;
7060
- }
7061
- };
7062
- }));
7063
- //#endregion
7064
- //#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
7065
- var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7066
- const path$3 = __require("path");
7067
- const resolveFrom = require_resolve_from();
7068
- const parentModule = require_parent_module();
7069
- module.exports = (moduleId) => {
7070
- if (typeof moduleId !== "string") throw new TypeError("Expected a string");
7071
- const parentPath = parentModule(__filename);
7072
- const cwd = parentPath ? path$3.dirname(parentPath) : __dirname;
7073
- const filePath = resolveFrom(cwd, moduleId);
7074
- const oldModule = __require.cache[filePath];
7075
- if (oldModule && oldModule.parent) {
7076
- let i = oldModule.parent.children.length;
7077
- while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
7078
- }
7079
- delete __require.cache[filePath];
7080
- const parent = __require.cache[parentPath];
7081
- return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
7082
- };
7083
- }));
7084
- //#endregion
7085
- //#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
7086
- var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7087
- module.exports = function isArrayish(obj) {
7088
- if (!obj) return false;
7089
- return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
7090
- };
7091
- }));
7092
- //#endregion
7093
- //#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
7094
- var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7095
- var util$1 = __require("util");
7096
- var isArrayish = require_is_arrayish();
7097
- var errorEx = function errorEx(name, properties) {
7098
- if (!name || name.constructor !== String) {
7099
- properties = name || {};
7100
- name = Error.name;
7101
- }
7102
- var errorExError = function ErrorEXError(message) {
7103
- if (!this) return new ErrorEXError(message);
7104
- message = message instanceof Error ? message.message : message || this.message;
7105
- Error.call(this, message);
7106
- Error.captureStackTrace(this, errorExError);
7107
- this.name = name;
7108
- Object.defineProperty(this, "message", {
7109
- configurable: true,
7110
- enumerable: false,
7111
- get: function() {
7112
- var newMessage = message.split(/\r?\n/g);
7113
- for (var key in properties) {
7114
- if (!properties.hasOwnProperty(key)) continue;
7115
- var modifier = properties[key];
7116
- if ("message" in modifier) {
7117
- newMessage = modifier.message(this[key], newMessage) || newMessage;
7118
- if (!isArrayish(newMessage)) newMessage = [newMessage];
7119
- }
7120
- }
7121
- return newMessage.join("\n");
7122
- },
7123
- set: function(v) {
7124
- message = v;
7125
- }
7126
- });
7127
- var overwrittenStack = null;
7128
- var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
7129
- var stackGetter = stackDescriptor.get;
7130
- var stackValue = stackDescriptor.value;
7131
- delete stackDescriptor.value;
7132
- delete stackDescriptor.writable;
7133
- stackDescriptor.set = function(newstack) {
7134
- overwrittenStack = newstack;
7135
- };
7136
- stackDescriptor.get = function() {
7137
- var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
7138
- if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
7139
- var lineCount = 1;
7140
- for (var key in properties) {
7141
- if (!properties.hasOwnProperty(key)) continue;
7142
- var modifier = properties[key];
7143
- if ("line" in modifier) {
7144
- var line = modifier.line(this[key]);
7145
- if (line) stack.splice(lineCount++, 0, " " + line);
7146
- }
7147
- if ("stack" in modifier) modifier.stack(this[key], stack);
7148
- }
7149
- return stack.join("\n");
7150
- };
7151
- Object.defineProperty(this, "stack", stackDescriptor);
7152
- };
7153
- if (Object.setPrototypeOf) {
7154
- Object.setPrototypeOf(errorExError.prototype, Error.prototype);
7155
- Object.setPrototypeOf(errorExError, Error);
7156
- } else util$1.inherits(errorExError, Error);
7157
- return errorExError;
7158
- };
7159
- errorEx.append = function(str, def) {
7160
- return { message: function(v, message) {
7161
- v = v || def;
7162
- if (v) message[0] += " " + str.replace("%s", v.toString());
7163
- return message;
7164
- } };
7165
- };
7166
- errorEx.line = function(str, def) {
7167
- return { line: function(v) {
7168
- v = v || def;
7169
- if (v) return str.replace("%s", v.toString());
7170
- return null;
7171
- } };
7172
- };
7173
- module.exports = errorEx;
7174
- }));
7175
- //#endregion
7176
- //#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
7177
- var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7178
- const hexify = (char) => {
7179
- const h = char.charCodeAt(0).toString(16).toUpperCase();
7180
- return "0x" + (h.length % 2 ? "0" : "") + h;
7181
- };
7182
- const parseError = (e, txt, context) => {
7183
- if (!txt) return {
7184
- message: e.message + " while parsing empty string",
7185
- position: 0
7186
- };
7187
- const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
7188
- const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
7189
- const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
7190
- if (errIdx !== null && errIdx !== void 0) {
7191
- const start = errIdx <= context ? 0 : errIdx - context;
7192
- const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
7193
- const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
7194
- return {
7195
- message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
7196
- position: errIdx
7197
- };
7198
- } else return {
7199
- message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
7200
- position: 0
7201
- };
7202
- };
7203
- var JSONParseError = class extends SyntaxError {
7204
- constructor(er, txt, context, caller) {
7205
- context = context || 20;
7206
- const metadata = parseError(er, txt, context);
7207
- super(metadata.message);
7208
- Object.assign(this, metadata);
7209
- this.code = "EJSONPARSE";
7210
- this.systemError = er;
7211
- Error.captureStackTrace(this, caller || this.constructor);
7212
- }
7213
- get name() {
7214
- return this.constructor.name;
7215
- }
7216
- set name(n) {}
7217
- get [Symbol.toStringTag]() {
7218
- return this.constructor.name;
7219
- }
7220
- };
7221
- const kIndent = Symbol.for("indent");
7222
- const kNewline = Symbol.for("newline");
7223
- const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
7224
- const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
7225
- const parseJson = (txt, reviver, context) => {
7226
- const parseText = stripBOM(txt);
7227
- context = context || 20;
7228
- try {
7229
- const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
7230
- ,
7231
- "",
7232
- ""
7233
- ];
7234
- const result = JSON.parse(parseText, reviver);
7235
- if (result && typeof result === "object") {
7236
- result[kNewline] = newline;
7237
- result[kIndent] = indent;
7238
- }
7239
- return result;
7240
- } catch (e) {
7241
- if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
7242
- const isEmptyArray = Array.isArray(txt) && txt.length === 0;
7243
- throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
7244
- code: "EJSONPARSE",
7245
- systemError: e
7246
- });
7247
- }
7248
- throw new JSONParseError(e, parseText, context, parseJson);
7249
- }
7250
- };
7251
- const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
7252
- module.exports = parseJson;
7253
- parseJson.JSONParseError = JSONParseError;
7254
- parseJson.noExceptions = (txt, reviver) => {
7255
- try {
7256
- return JSON.parse(stripBOM(txt), reviver);
7257
- } catch (e) {}
7258
- };
7259
- }));
7260
- //#endregion
7261
- //#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
7262
- var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
7263
- exports.__esModule = true;
7264
- exports.LinesAndColumns = void 0;
7265
- var LF = "\n";
7266
- var CR = "\r";
7267
- var LinesAndColumns = function() {
7268
- function LinesAndColumns(string) {
7269
- this.string = string;
7270
- var offsets = [0];
7271
- for (var offset = 0; offset < string.length;) switch (string[offset]) {
7272
- case LF:
7273
- offset += LF.length;
7274
- offsets.push(offset);
7275
- break;
7276
- case CR:
7277
- offset += CR.length;
7278
- if (string[offset] === LF) offset += LF.length;
7279
- offsets.push(offset);
7280
- break;
7281
- default:
7282
- offset++;
7283
- break;
7284
- }
7285
- this.offsets = offsets;
7286
- }
7287
- LinesAndColumns.prototype.locationForIndex = function(index) {
7288
- if (index < 0 || index > this.string.length) return null;
7289
- var line = 0;
7290
- var offsets = this.offsets;
7291
- while (offsets[line + 1] <= index) line++;
7292
- var column = index - offsets[line];
7293
- return {
7294
- line,
7295
- column
7296
- };
7297
- };
7298
- LinesAndColumns.prototype.indexForLocation = function(location) {
7299
- var line = location.line, column = location.column;
7300
- if (line < 0 || line >= this.offsets.length) return null;
7301
- if (column < 0 || column > this.lengthOfLine(line)) return null;
7302
- return this.offsets[line] + column;
7303
- };
7304
- LinesAndColumns.prototype.lengthOfLine = function(line) {
7305
- var offset = this.offsets[line];
7306
- return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
7307
- };
7308
- return LinesAndColumns;
7309
- }();
7310
- exports.LinesAndColumns = LinesAndColumns;
7311
- exports["default"] = LinesAndColumns;
7312
- }));
7313
- //#endregion
7314
- //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
7315
- var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7316
- let p = process || {};
7317
- let argv = p.argv || [];
7318
- let env = p.env || {};
7319
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
7320
- let formatter = (open, close, replace = open) => (input) => {
7321
- let string = "" + input, index = string.indexOf(close, open.length);
7322
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
7323
- };
7324
- let replaceClose = (string, close, replace, index) => {
7325
- let result = "", cursor = 0;
7326
- do {
7327
- result += string.substring(cursor, index) + replace;
7328
- cursor = index + close.length;
7329
- index = string.indexOf(close, cursor);
7330
- } while (~index);
7331
- return result + string.substring(cursor);
7332
- };
7333
- let createColors = (enabled = isColorSupported) => {
7334
- let f = enabled ? formatter : () => String;
7335
- return {
7336
- isColorSupported: enabled,
7337
- reset: f("\x1B[0m", "\x1B[0m"),
7338
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
7339
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
7340
- italic: f("\x1B[3m", "\x1B[23m"),
7341
- underline: f("\x1B[4m", "\x1B[24m"),
7342
- inverse: f("\x1B[7m", "\x1B[27m"),
7343
- hidden: f("\x1B[8m", "\x1B[28m"),
7344
- strikethrough: f("\x1B[9m", "\x1B[29m"),
7345
- black: f("\x1B[30m", "\x1B[39m"),
7346
- red: f("\x1B[31m", "\x1B[39m"),
7347
- green: f("\x1B[32m", "\x1B[39m"),
7348
- yellow: f("\x1B[33m", "\x1B[39m"),
7349
- blue: f("\x1B[34m", "\x1B[39m"),
7350
- magenta: f("\x1B[35m", "\x1B[39m"),
7351
- cyan: f("\x1B[36m", "\x1B[39m"),
7352
- white: f("\x1B[37m", "\x1B[39m"),
7353
- gray: f("\x1B[90m", "\x1B[39m"),
7354
- bgBlack: f("\x1B[40m", "\x1B[49m"),
7355
- bgRed: f("\x1B[41m", "\x1B[49m"),
7356
- bgGreen: f("\x1B[42m", "\x1B[49m"),
7357
- bgYellow: f("\x1B[43m", "\x1B[49m"),
7358
- bgBlue: f("\x1B[44m", "\x1B[49m"),
7359
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
7360
- bgCyan: f("\x1B[46m", "\x1B[49m"),
7361
- bgWhite: f("\x1B[47m", "\x1B[49m"),
7362
- blackBright: f("\x1B[90m", "\x1B[39m"),
7363
- redBright: f("\x1B[91m", "\x1B[39m"),
7364
- greenBright: f("\x1B[92m", "\x1B[39m"),
7365
- yellowBright: f("\x1B[93m", "\x1B[39m"),
7366
- blueBright: f("\x1B[94m", "\x1B[39m"),
7367
- magentaBright: f("\x1B[95m", "\x1B[39m"),
7368
- cyanBright: f("\x1B[96m", "\x1B[39m"),
7369
- whiteBright: f("\x1B[97m", "\x1B[39m"),
7370
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
7371
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
7372
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
7373
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
7374
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
7375
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
7376
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
7377
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
7378
- };
7379
- };
7380
- module.exports = createColors();
7381
- module.exports.createColors = createColors;
7382
- }));
7383
- //#endregion
7384
- //#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
7385
- var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
7386
- Object.defineProperty(exports, "__esModule", { value: true });
7387
- exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
7388
- exports.matchToToken = function(match) {
7389
- var token = {
7390
- type: "invalid",
7391
- value: match[0],
7392
- closed: void 0
7393
- };
7394
- if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
7395
- else if (match[5]) token.type = "comment";
7396
- else if (match[6]) token.type = "comment", token.closed = !!match[7];
7397
- else if (match[8]) token.type = "regex";
7398
- else if (match[9]) token.type = "number";
7399
- else if (match[10]) token.type = "name";
7400
- else if (match[11]) token.type = "punctuator";
7401
- else if (match[12]) token.type = "whitespace";
7402
- return token;
7403
- };
7404
- }));
7405
- //#endregion
7406
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
7407
- var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
7408
- Object.defineProperty(exports, "__esModule", { value: true });
7409
- exports.isIdentifierChar = isIdentifierChar;
7410
- exports.isIdentifierName = isIdentifierName;
7411
- exports.isIdentifierStart = isIdentifierStart;
7412
- let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
7413
- let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
7414
- const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
7415
- const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
7416
- nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
7417
- const astralIdentifierStartCodes = [
7418
- 0,
7419
- 11,
7420
- 2,
7421
- 25,
7422
- 2,
7423
- 18,
7424
- 2,
7425
- 1,
7426
- 2,
7427
- 14,
7428
- 3,
7429
- 13,
7430
- 35,
7431
- 122,
7432
- 70,
7433
- 52,
7434
- 268,
7435
- 28,
7436
- 4,
7437
- 48,
7438
- 48,
7439
- 31,
7440
- 14,
7441
- 29,
7442
- 6,
7443
- 37,
7444
- 11,
7445
- 29,
7446
- 3,
7447
- 35,
7448
- 5,
7449
- 7,
7450
- 2,
7451
- 4,
7452
- 43,
7453
- 157,
7454
- 19,
7455
- 35,
7456
- 5,
7457
- 35,
7458
- 5,
7459
- 39,
7460
- 9,
7461
- 51,
7462
- 13,
7463
- 10,
7464
- 2,
7465
- 14,
7466
- 2,
7467
- 6,
7468
- 2,
7469
- 1,
7470
- 2,
7471
- 10,
7472
- 2,
7473
- 14,
7474
- 2,
7475
- 6,
7476
- 2,
7477
- 1,
7478
- 4,
7479
- 51,
7480
- 13,
7481
- 310,
7482
- 10,
7483
- 21,
7484
- 11,
7485
- 7,
7486
- 25,
7487
- 5,
7488
- 2,
7489
- 41,
7490
- 2,
7491
- 8,
7492
- 70,
7493
- 5,
7494
- 3,
7495
- 0,
7496
- 2,
7497
- 43,
7498
- 2,
7499
- 1,
7500
- 4,
7501
- 0,
7502
- 3,
7503
- 22,
7504
- 11,
7505
- 22,
7506
- 10,
7507
- 30,
7508
- 66,
7509
- 18,
7510
- 2,
7511
- 1,
7512
- 11,
7513
- 21,
7514
- 11,
7515
- 25,
7516
- 7,
7517
- 25,
7518
- 39,
7519
- 55,
7520
- 7,
7521
- 1,
7522
- 65,
7523
- 0,
7524
- 16,
7525
- 3,
7526
- 2,
7527
- 2,
7528
- 2,
7529
- 28,
7530
- 43,
7531
- 28,
7532
- 4,
7533
- 28,
7534
- 36,
7535
- 7,
7536
- 2,
7537
- 27,
7538
- 28,
7539
- 53,
7540
- 11,
7541
- 21,
7542
- 11,
7543
- 18,
7544
- 14,
7545
- 17,
7546
- 111,
7547
- 72,
7548
- 56,
7549
- 50,
7550
- 14,
7551
- 50,
7552
- 14,
7553
- 35,
7554
- 39,
7555
- 27,
7556
- 10,
7557
- 22,
7558
- 251,
7559
- 41,
7560
- 7,
7561
- 1,
7562
- 17,
7563
- 5,
7564
- 57,
7565
- 28,
7566
- 11,
7567
- 0,
7568
- 9,
7569
- 21,
7570
- 43,
7571
- 17,
7572
- 47,
7573
- 20,
7574
- 28,
7575
- 22,
7576
- 13,
7577
- 52,
7578
- 58,
7579
- 1,
7580
- 3,
7581
- 0,
7582
- 14,
7583
- 44,
7584
- 33,
7585
- 24,
7586
- 27,
7587
- 35,
7588
- 30,
7589
- 0,
7590
- 3,
7591
- 0,
7592
- 9,
7593
- 34,
7594
- 4,
7595
- 0,
7596
- 13,
7597
- 47,
7598
- 15,
7599
- 3,
7600
- 22,
7601
- 0,
7602
- 2,
7603
- 0,
7604
- 36,
7605
- 17,
7606
- 2,
7607
- 24,
7608
- 20,
7609
- 1,
7610
- 64,
7611
- 6,
7612
- 2,
7613
- 0,
7614
- 2,
7615
- 3,
7616
- 2,
7617
- 14,
7618
- 2,
7619
- 9,
7620
- 8,
7621
- 46,
7622
- 39,
7623
- 7,
7624
- 3,
7625
- 1,
7626
- 3,
7627
- 21,
7628
- 2,
7629
- 6,
7630
- 2,
7631
- 1,
7632
- 2,
7633
- 4,
7634
- 4,
7635
- 0,
7636
- 19,
7637
- 0,
7638
- 13,
7639
- 4,
7640
- 31,
7641
- 9,
7642
- 2,
7643
- 0,
7644
- 3,
7645
- 0,
7646
- 2,
7647
- 37,
7648
- 2,
7649
- 0,
7650
- 26,
7651
- 0,
7652
- 2,
7653
- 0,
7654
- 45,
7655
- 52,
7656
- 19,
7657
- 3,
7658
- 21,
7659
- 2,
7660
- 31,
7661
- 47,
7662
- 21,
7663
- 1,
7664
- 2,
7665
- 0,
7666
- 185,
7667
- 46,
7668
- 42,
7669
- 3,
7670
- 37,
7671
- 47,
7672
- 21,
7673
- 0,
7674
- 60,
7675
- 42,
7676
- 14,
7677
- 0,
7678
- 72,
7679
- 26,
7680
- 38,
7681
- 6,
7682
- 186,
7683
- 43,
7684
- 117,
7685
- 63,
7686
- 32,
7687
- 7,
7688
- 3,
7689
- 0,
7690
- 3,
7691
- 7,
7692
- 2,
7693
- 1,
7694
- 2,
7695
- 23,
7696
- 16,
7697
- 0,
7698
- 2,
7699
- 0,
7700
- 95,
7701
- 7,
7702
- 3,
7703
- 38,
7704
- 17,
7705
- 0,
7706
- 2,
7707
- 0,
7708
- 29,
7709
- 0,
7710
- 11,
7711
- 39,
7712
- 8,
7713
- 0,
7714
- 22,
7715
- 0,
7716
- 12,
7717
- 45,
7718
- 20,
7719
- 0,
7720
- 19,
7721
- 72,
7722
- 200,
7723
- 32,
7724
- 32,
7725
- 8,
7726
- 2,
7727
- 36,
7728
- 18,
7729
- 0,
7730
- 50,
7731
- 29,
7732
- 113,
7733
- 6,
7734
- 2,
7735
- 1,
7736
- 2,
7737
- 37,
7738
- 22,
7739
- 0,
7740
- 26,
7741
- 5,
7742
- 2,
7743
- 1,
7744
- 2,
7745
- 31,
7746
- 15,
7747
- 0,
7748
- 24,
7749
- 43,
7750
- 261,
7751
- 18,
7752
- 16,
7753
- 0,
7754
- 2,
7755
- 12,
7756
- 2,
7757
- 33,
7758
- 125,
7759
- 0,
7760
- 80,
7761
- 921,
7762
- 103,
7763
- 110,
7764
- 18,
7765
- 195,
7766
- 2637,
7767
- 96,
7768
- 16,
7769
- 1071,
7770
- 18,
7771
- 5,
7772
- 26,
7773
- 3994,
7774
- 6,
7775
- 582,
7776
- 6842,
7777
- 29,
7778
- 1763,
7779
- 568,
7780
- 8,
7781
- 30,
7782
- 18,
7783
- 78,
7784
- 18,
7785
- 29,
7786
- 19,
7787
- 47,
7788
- 17,
7789
- 3,
7790
- 32,
7791
- 20,
7792
- 6,
7793
- 18,
7794
- 433,
7795
- 44,
7796
- 212,
7797
- 63,
7798
- 33,
7799
- 24,
7800
- 3,
7801
- 24,
7802
- 45,
7803
- 74,
7804
- 6,
7805
- 0,
7806
- 67,
7807
- 12,
7808
- 65,
7809
- 1,
7810
- 2,
7811
- 0,
7812
- 15,
7813
- 4,
7814
- 10,
7815
- 7381,
7816
- 42,
7817
- 31,
7818
- 98,
7819
- 114,
7820
- 8702,
7821
- 3,
7822
- 2,
7823
- 6,
7824
- 2,
7825
- 1,
7826
- 2,
7827
- 290,
7828
- 16,
7829
- 0,
7830
- 30,
7831
- 2,
7832
- 3,
7833
- 0,
7834
- 15,
7835
- 3,
7836
- 9,
7837
- 395,
7838
- 2309,
7839
- 106,
7840
- 6,
7841
- 12,
7842
- 4,
7843
- 8,
7844
- 8,
7845
- 9,
7846
- 5991,
7847
- 84,
7848
- 2,
7849
- 70,
7850
- 2,
7851
- 1,
7852
- 3,
7853
- 0,
7854
- 3,
7855
- 1,
7856
- 3,
7857
- 3,
7858
- 2,
7859
- 11,
7860
- 2,
7861
- 0,
7862
- 2,
7863
- 6,
7864
- 2,
7865
- 64,
7866
- 2,
7867
- 3,
7868
- 3,
7869
- 7,
7870
- 2,
7871
- 6,
7872
- 2,
7873
- 27,
7874
- 2,
7875
- 3,
7876
- 2,
7877
- 4,
7878
- 2,
7879
- 0,
7880
- 4,
7881
- 6,
7882
- 2,
7883
- 339,
7884
- 3,
7885
- 24,
7886
- 2,
7887
- 24,
7888
- 2,
7889
- 30,
7890
- 2,
7891
- 24,
7892
- 2,
7893
- 30,
7894
- 2,
7895
- 24,
7896
- 2,
7897
- 30,
7898
- 2,
7899
- 24,
7900
- 2,
7901
- 30,
7902
- 2,
7903
- 24,
7904
- 2,
7905
- 7,
7906
- 1845,
7907
- 30,
7908
- 7,
7909
- 5,
7910
- 262,
7911
- 61,
7912
- 147,
7913
- 44,
7914
- 11,
7915
- 6,
7916
- 17,
7917
- 0,
7918
- 322,
7919
- 29,
7920
- 19,
7921
- 43,
7922
- 485,
7923
- 27,
7924
- 229,
7925
- 29,
7926
- 3,
7927
- 0,
7928
- 208,
7929
- 30,
7930
- 2,
7931
- 2,
7932
- 2,
7933
- 1,
7934
- 2,
7935
- 6,
7936
- 3,
7937
- 4,
7938
- 10,
7939
- 1,
7940
- 225,
7941
- 6,
7942
- 2,
7943
- 3,
7944
- 2,
7945
- 1,
7946
- 2,
7947
- 14,
7948
- 2,
7949
- 196,
7950
- 60,
7951
- 67,
7952
- 8,
7953
- 0,
7954
- 1205,
7955
- 3,
7956
- 2,
7957
- 26,
7958
- 2,
7959
- 1,
7960
- 2,
7961
- 0,
7962
- 3,
7963
- 0,
7964
- 2,
7965
- 9,
7966
- 2,
7967
- 3,
7968
- 2,
7969
- 0,
7970
- 2,
7971
- 0,
7972
- 7,
7973
- 0,
7974
- 5,
7975
- 0,
7976
- 2,
7977
- 0,
7978
- 2,
7979
- 0,
7980
- 2,
7981
- 2,
7982
- 2,
7983
- 1,
7984
- 2,
7985
- 0,
7986
- 3,
7987
- 0,
7988
- 2,
7989
- 0,
7990
- 2,
7991
- 0,
7992
- 2,
7993
- 0,
7994
- 2,
7995
- 0,
7996
- 2,
7997
- 1,
7998
- 2,
7999
- 0,
8000
- 3,
8001
- 3,
8002
- 2,
8003
- 6,
8004
- 2,
8005
- 3,
8006
- 2,
8007
- 3,
8008
- 2,
8009
- 0,
8010
- 2,
8011
- 9,
8012
- 2,
8013
- 16,
8014
- 6,
8015
- 2,
8016
- 2,
8017
- 4,
8018
- 2,
8019
- 16,
8020
- 4421,
8021
- 42719,
8022
- 33,
8023
- 4381,
8024
- 3,
8025
- 5773,
8026
- 3,
8027
- 7472,
8028
- 16,
8029
- 621,
8030
- 2467,
8031
- 541,
8032
- 1507,
8033
- 4938,
8034
- 6,
8035
- 8489
8036
- ];
8037
- const astralIdentifierCodes = [
8038
- 509,
8039
- 0,
8040
- 227,
8041
- 0,
8042
- 150,
8043
- 4,
8044
- 294,
8045
- 9,
8046
- 1368,
8047
- 2,
8048
- 2,
8049
- 1,
8050
- 6,
8051
- 3,
8052
- 41,
8053
- 2,
8054
- 5,
8055
- 0,
8056
- 166,
8057
- 1,
8058
- 574,
8059
- 3,
8060
- 9,
8061
- 9,
8062
- 7,
8063
- 9,
8064
- 32,
8065
- 4,
8066
- 318,
8067
- 1,
8068
- 78,
8069
- 5,
8070
- 71,
8071
- 10,
8072
- 50,
8073
- 3,
8074
- 123,
8075
- 2,
8076
- 54,
8077
- 14,
8078
- 32,
8079
- 10,
8080
- 3,
8081
- 1,
8082
- 11,
8083
- 3,
8084
- 46,
8085
- 10,
8086
- 8,
8087
- 0,
8088
- 46,
8089
- 9,
8090
- 7,
8091
- 2,
8092
- 37,
8093
- 13,
8094
- 2,
8095
- 9,
8096
- 6,
8097
- 1,
8098
- 45,
8099
- 0,
8100
- 13,
8101
- 2,
8102
- 49,
8103
- 13,
8104
- 9,
8105
- 3,
8106
- 2,
8107
- 11,
8108
- 83,
8109
- 11,
8110
- 7,
8111
- 0,
8112
- 3,
8113
- 0,
8114
- 158,
8115
- 11,
8116
- 6,
8117
- 9,
8118
- 7,
8119
- 3,
8120
- 56,
8121
- 1,
8122
- 2,
8123
- 6,
8124
- 3,
8125
- 1,
8126
- 3,
8127
- 2,
8128
- 10,
8129
- 0,
8130
- 11,
8131
- 1,
8132
- 3,
8133
- 6,
8134
- 4,
8135
- 4,
8136
- 68,
8137
- 8,
8138
- 2,
8139
- 0,
8140
- 3,
8141
- 0,
8142
- 2,
8143
- 3,
8144
- 2,
8145
- 4,
8146
- 2,
8147
- 0,
8148
- 15,
8149
- 1,
8150
- 83,
8151
- 17,
8152
- 10,
8153
- 9,
8154
- 5,
8155
- 0,
8156
- 82,
8157
- 19,
8158
- 13,
8159
- 9,
8160
- 214,
8161
- 6,
8162
- 3,
8163
- 8,
8164
- 28,
8165
- 1,
8166
- 83,
8167
- 16,
8168
- 16,
8169
- 9,
8170
- 82,
8171
- 12,
8172
- 9,
8173
- 9,
8174
- 7,
8175
- 19,
8176
- 58,
8177
- 14,
8178
- 5,
8179
- 9,
8180
- 243,
8181
- 14,
8182
- 166,
8183
- 9,
8184
- 71,
8185
- 5,
8186
- 2,
8187
- 1,
8188
- 3,
8189
- 3,
8190
- 2,
8191
- 0,
8192
- 2,
8193
- 1,
8194
- 13,
8195
- 9,
8196
- 120,
8197
- 6,
8198
- 3,
8199
- 6,
8200
- 4,
8201
- 0,
8202
- 29,
8203
- 9,
8204
- 41,
8205
- 6,
8206
- 2,
8207
- 3,
8208
- 9,
8209
- 0,
8210
- 10,
8211
- 10,
8212
- 47,
8213
- 15,
8214
- 199,
8215
- 7,
8216
- 137,
8217
- 9,
8218
- 54,
8219
- 7,
8220
- 2,
8221
- 7,
8222
- 17,
8223
- 9,
8224
- 57,
8225
- 21,
8226
- 2,
8227
- 13,
8228
- 123,
8229
- 5,
8230
- 4,
8231
- 0,
8232
- 2,
8233
- 1,
8234
- 2,
8235
- 6,
8236
- 2,
8237
- 0,
8238
- 9,
8239
- 9,
8240
- 49,
8241
- 4,
8242
- 2,
8243
- 1,
8244
- 2,
8245
- 4,
8246
- 9,
8247
- 9,
8248
- 55,
8249
- 9,
8250
- 266,
8251
- 3,
8252
- 10,
8253
- 1,
8254
- 2,
8255
- 0,
8256
- 49,
8257
- 6,
8258
- 4,
8259
- 4,
8260
- 14,
8261
- 10,
8262
- 5350,
8263
- 0,
8264
- 7,
8265
- 14,
8266
- 11465,
8267
- 27,
8268
- 2343,
8269
- 9,
8270
- 87,
8271
- 9,
8272
- 39,
8273
- 4,
8274
- 60,
8275
- 6,
8276
- 26,
8277
- 9,
8278
- 535,
8279
- 9,
8280
- 470,
8281
- 0,
8282
- 2,
8283
- 54,
8284
- 8,
8285
- 3,
8286
- 82,
8287
- 0,
8288
- 12,
8289
- 1,
8290
- 19628,
8291
- 1,
8292
- 4178,
8293
- 9,
8294
- 519,
8295
- 45,
8296
- 3,
8297
- 22,
8298
- 543,
8299
- 4,
8300
- 4,
8301
- 5,
8302
- 9,
8303
- 7,
8304
- 3,
8305
- 6,
8306
- 31,
8307
- 3,
8308
- 149,
8309
- 2,
8310
- 1418,
8311
- 49,
8312
- 513,
8313
- 54,
8314
- 5,
8315
- 49,
8316
- 9,
8317
- 0,
8318
- 15,
8319
- 0,
8320
- 23,
8321
- 4,
8322
- 2,
8323
- 14,
8324
- 1361,
8325
- 6,
8326
- 2,
8327
- 16,
8328
- 3,
8329
- 6,
8330
- 2,
8331
- 1,
8332
- 2,
8333
- 4,
8334
- 101,
8335
- 0,
8336
- 161,
8337
- 6,
8338
- 10,
8339
- 9,
8340
- 357,
8341
- 0,
8342
- 62,
8343
- 13,
8344
- 499,
8345
- 13,
8346
- 245,
8347
- 1,
8348
- 2,
8349
- 9,
8350
- 233,
8351
- 0,
8352
- 3,
8353
- 0,
8354
- 8,
8355
- 1,
8356
- 6,
8357
- 0,
8358
- 475,
8359
- 6,
8360
- 110,
8361
- 6,
8362
- 6,
8363
- 9,
8364
- 4759,
8365
- 9,
8366
- 787719,
8367
- 239
8368
- ];
8369
- function isInAstralSet(code, set) {
8370
- let pos = 65536;
8371
- for (let i = 0, length = set.length; i < length; i += 2) {
8372
- pos += set[i];
8373
- if (pos > code) return false;
8374
- pos += set[i + 1];
8375
- if (pos >= code) return true;
8376
- }
8377
- return false;
8378
- }
8379
- function isIdentifierStart(code) {
8380
- if (code < 65) return code === 36;
8381
- if (code <= 90) return true;
8382
- if (code < 97) return code === 95;
8383
- if (code <= 122) return true;
8384
- if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
8385
- return isInAstralSet(code, astralIdentifierStartCodes);
8386
- }
8387
- function isIdentifierChar(code) {
8388
- if (code < 48) return code === 36;
8389
- if (code < 58) return true;
8390
- if (code < 65) return false;
8391
- if (code <= 90) return true;
8392
- if (code < 97) return code === 95;
8393
- if (code <= 122) return true;
8394
- if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
8395
- return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
8396
- }
8397
- function isIdentifierName(name) {
8398
- let isFirst = true;
8399
- for (let i = 0; i < name.length; i++) {
8400
- let cp = name.charCodeAt(i);
8401
- if ((cp & 64512) === 55296 && i + 1 < name.length) {
8402
- const trail = name.charCodeAt(++i);
8403
- if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
8404
- }
8405
- if (isFirst) {
8406
- isFirst = false;
8407
- if (!isIdentifierStart(cp)) return false;
8408
- } else if (!isIdentifierChar(cp)) return false;
8409
- }
8410
- return !isFirst;
8411
- }
8412
- }));
8413
- //#endregion
8414
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
8415
- var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
8416
- Object.defineProperty(exports, "__esModule", { value: true });
8417
- exports.isKeyword = isKeyword;
8418
- exports.isReservedWord = isReservedWord;
8419
- exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
8420
- exports.isStrictBindReservedWord = isStrictBindReservedWord;
8421
- exports.isStrictReservedWord = isStrictReservedWord;
8422
- const reservedWords = {
8423
- keyword: [
8424
- "break",
8425
- "case",
8426
- "catch",
8427
- "continue",
8428
- "debugger",
8429
- "default",
8430
- "do",
8431
- "else",
8432
- "finally",
8433
- "for",
8434
- "function",
8435
- "if",
8436
- "return",
8437
- "switch",
8438
- "throw",
8439
- "try",
8440
- "var",
8441
- "const",
8442
- "while",
8443
- "with",
8444
- "new",
8445
- "this",
8446
- "super",
8447
- "class",
8448
- "extends",
8449
- "export",
8450
- "import",
8451
- "null",
8452
- "true",
8453
- "false",
8454
- "in",
8455
- "instanceof",
8456
- "typeof",
8457
- "void",
8458
- "delete"
8459
- ],
8460
- strict: [
8461
- "implements",
8462
- "interface",
8463
- "let",
8464
- "package",
8465
- "private",
8466
- "protected",
8467
- "public",
8468
- "static",
8469
- "yield"
8470
- ],
8471
- strictBind: ["eval", "arguments"]
8472
- };
8473
- const keywords = new Set(reservedWords.keyword);
8474
- const reservedWordsStrictSet = new Set(reservedWords.strict);
8475
- const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
8476
- function isReservedWord(word, inModule) {
8477
- return inModule && word === "await" || word === "enum";
8478
- }
8479
- function isStrictReservedWord(word, inModule) {
8480
- return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
8481
- }
8482
- function isStrictBindOnlyReservedWord(word) {
8483
- return reservedWordsStrictBindSet.has(word);
8484
- }
8485
- function isStrictBindReservedWord(word, inModule) {
8486
- return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
8487
- }
8488
- function isKeyword(word) {
8489
- return keywords.has(word);
8490
- }
8491
- }));
8492
- //#endregion
8493
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
8494
- var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
8495
- Object.defineProperty(exports, "__esModule", { value: true });
8496
- Object.defineProperty(exports, "isIdentifierChar", {
8497
- enumerable: true,
8498
- get: function() {
8499
- return _identifier.isIdentifierChar;
8500
- }
8501
- });
8502
- Object.defineProperty(exports, "isIdentifierName", {
8503
- enumerable: true,
8504
- get: function() {
8505
- return _identifier.isIdentifierName;
8506
- }
8507
- });
8508
- Object.defineProperty(exports, "isIdentifierStart", {
8509
- enumerable: true,
8510
- get: function() {
8511
- return _identifier.isIdentifierStart;
8512
- }
8513
- });
8514
- Object.defineProperty(exports, "isKeyword", {
8515
- enumerable: true,
8516
- get: function() {
8517
- return _keyword.isKeyword;
8518
- }
8519
- });
8520
- Object.defineProperty(exports, "isReservedWord", {
8521
- enumerable: true,
8522
- get: function() {
8523
- return _keyword.isReservedWord;
8524
- }
8525
- });
8526
- Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
8527
- enumerable: true,
8528
- get: function() {
8529
- return _keyword.isStrictBindOnlyReservedWord;
8530
- }
8531
- });
8532
- Object.defineProperty(exports, "isStrictBindReservedWord", {
8533
- enumerable: true,
8534
- get: function() {
8535
- return _keyword.isStrictBindReservedWord;
8536
- }
8537
- });
8538
- Object.defineProperty(exports, "isStrictReservedWord", {
8539
- enumerable: true,
8540
- get: function() {
8541
- return _keyword.isStrictReservedWord;
8542
- }
8543
- });
8544
- var _identifier = require_identifier();
8545
- var _keyword = require_keyword();
8546
- }));
8547
- //#endregion
8548
- //#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
8549
- var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
8550
- Object.defineProperty(exports, "__esModule", { value: true });
8551
- var picocolors = require_picocolors();
8552
- var jsTokens = require_js_tokens();
8553
- var helperValidatorIdentifier = require_lib$2();
8554
- function isColorSupported() {
8555
- return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
8556
- }
8557
- const compose = (f, g) => (v) => f(g(v));
8558
- function buildDefs(colors) {
8559
- return {
8560
- keyword: colors.cyan,
8561
- capitalized: colors.yellow,
8562
- jsxIdentifier: colors.yellow,
8563
- punctuator: colors.yellow,
8564
- number: colors.magenta,
8565
- string: colors.green,
8566
- regex: colors.magenta,
8567
- comment: colors.gray,
8568
- invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
8569
- gutter: colors.gray,
8570
- marker: compose(colors.red, colors.bold),
8571
- message: compose(colors.red, colors.bold),
8572
- reset: colors.reset
8573
- };
8574
- }
8575
- const defsOn = buildDefs(picocolors.createColors(true));
8576
- const defsOff = buildDefs(picocolors.createColors(false));
8577
- function getDefs(enabled) {
8578
- return enabled ? defsOn : defsOff;
8579
- }
8580
- const sometimesKeywords = /* @__PURE__ */ new Set([
8581
- "as",
8582
- "async",
8583
- "from",
8584
- "get",
8585
- "of",
8586
- "set"
8587
- ]);
8588
- const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
8589
- const BRACKET = /^[()[\]{}]$/;
8590
- let tokenize;
8591
- const JSX_TAG = /^[a-z][\w-]*$/i;
8592
- const getTokenType = function(token, offset, text) {
8593
- if (token.type === "name") {
8594
- const tokenValue = token.value;
8595
- if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
8596
- if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
8597
- const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
8598
- if (firstChar !== firstChar.toLowerCase()) return "capitalized";
8599
- }
8600
- if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
8601
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
8602
- return token.type;
8603
- };
8604
- tokenize = function* (text) {
8605
- let match;
8606
- while (match = jsTokens.default.exec(text)) {
8607
- const token = jsTokens.matchToToken(match);
8608
- yield {
8609
- type: getTokenType(token, match.index, text),
8610
- value: token.value
8611
- };
8612
- }
8613
- };
8614
- function highlight(text) {
8615
- if (text === "") return "";
8616
- const defs = getDefs(true);
8617
- let highlighted = "";
8618
- for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
8619
- else highlighted += value;
8620
- return highlighted;
8621
- }
8622
- let deprecationWarningShown = false;
8623
- const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
8624
- function getMarkerLines(loc, source, opts, startLineBaseZero) {
8625
- const startLoc = Object.assign({
8626
- column: 0,
8627
- line: -1
8628
- }, loc.start);
8629
- const endLoc = Object.assign({}, startLoc, loc.end);
8630
- const { linesAbove = 2, linesBelow = 3 } = opts || {};
8631
- const startLine = startLoc.line - startLineBaseZero;
8632
- const startColumn = startLoc.column;
8633
- const endLine = endLoc.line - startLineBaseZero;
8634
- const endColumn = endLoc.column;
8635
- let start = Math.max(startLine - (linesAbove + 1), 0);
8636
- let end = Math.min(source.length, endLine + linesBelow);
8637
- if (startLine === -1) start = 0;
8638
- if (endLine === -1) end = source.length;
8639
- const lineDiff = endLine - startLine;
8640
- const markerLines = {};
8641
- if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
8642
- const lineNumber = i + startLine;
8643
- if (!startColumn) markerLines[lineNumber] = true;
8644
- else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
8645
- else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
8646
- else markerLines[lineNumber] = [0, source[lineNumber - i].length];
8647
- }
8648
- else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
8649
- else markerLines[startLine] = true;
8650
- else markerLines[startLine] = [startColumn, endColumn - startColumn];
8651
- return {
8652
- start,
8653
- end,
8654
- markerLines
8655
- };
8656
- }
8657
- function codeFrameColumns(rawLines, loc, opts = {}) {
8658
- const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
8659
- const startLineBaseZero = (opts.startLine || 1) - 1;
8660
- const defs = getDefs(shouldHighlight);
8661
- const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
8662
- const hasColumns = loc.start && typeof loc.start.column === "number";
8663
- const numberMaxWidth = String(end + startLineBaseZero).length;
8664
- let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
8665
- const number = start + 1 + index;
8666
- const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
8667
- const hasMarker = markerLines[number];
8668
- const lastMarkerLine = !markerLines[number + 1];
8669
- if (hasMarker) {
8670
- let markerLine = "";
8671
- if (Array.isArray(hasMarker)) {
8672
- const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
8673
- const numberOfMarkers = hasMarker[1] || 1;
8674
- markerLine = [
8675
- "\n ",
8676
- defs.gutter(gutter.replace(/\d/g, " ")),
8677
- " ",
8678
- markerSpacing,
8679
- defs.marker("^").repeat(numberOfMarkers)
8680
- ].join("");
8681
- if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
8682
- }
8683
- return [
8684
- defs.marker(">"),
8685
- defs.gutter(gutter),
8686
- line.length > 0 ? ` ${line}` : "",
8687
- markerLine
8688
- ].join("");
8689
- } else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
8690
- }).join("\n");
8691
- if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
8692
- if (shouldHighlight) return defs.reset(frame);
8693
- else return frame;
8694
- }
8695
- function index(rawLines, lineNumber, colNumber, opts = {}) {
8696
- if (!deprecationWarningShown) {
8697
- deprecationWarningShown = true;
8698
- const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
8699
- if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
8700
- else {
8701
- const deprecationError = /* @__PURE__ */ new Error(message);
8702
- deprecationError.name = "DeprecationWarning";
8703
- console.warn(/* @__PURE__ */ new Error(message));
8704
- }
8705
- }
8706
- colNumber = Math.max(colNumber, 0);
8707
- return codeFrameColumns(rawLines, { start: {
8708
- column: colNumber,
8709
- line: lineNumber
8710
- } }, opts);
8711
- }
8712
- exports.codeFrameColumns = codeFrameColumns;
8713
- exports.default = index;
8714
- exports.highlight = highlight;
8715
- }));
8716
- //#endregion
8717
- //#region ../../node_modules/.pnpm/parse-json@5.2.0/node_modules/parse-json/index.js
8718
- var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8719
- const errorEx = require_error_ex();
8720
- const fallback = require_json_parse_even_better_errors();
8721
- const { default: LinesAndColumns } = require_build();
8722
- const { codeFrameColumns } = require_lib$1();
8723
- const JSONError = errorEx("JSONError", {
8724
- fileName: errorEx.append("in %s"),
8725
- codeFrame: errorEx.append("\n\n%s\n")
8726
- });
8727
- const parseJson = (string, reviver, filename) => {
8728
- if (typeof reviver === "string") {
8729
- filename = reviver;
8730
- reviver = null;
8731
- }
8732
- try {
8733
- try {
8734
- return JSON.parse(string, reviver);
8735
- } catch (error) {
8736
- fallback(string, reviver);
8737
- throw error;
8738
- }
8739
- } catch (error) {
8740
- error.message = error.message.replace(/\n/g, "");
8741
- const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
8742
- const jsonError = new JSONError(error);
8743
- if (filename) jsonError.fileName = filename;
8744
- if (indexMatch && indexMatch.length > 0) {
8745
- const lines = new LinesAndColumns(string);
8746
- const index = Number(indexMatch[1]);
8747
- const location = lines.locationForIndex(index);
8748
- jsonError.codeFrame = codeFrameColumns(string, { start: {
8749
- line: location.line + 1,
8750
- column: location.column + 1
8751
- } }, { highlightCode: true });
8752
- }
8753
- throw jsonError;
8754
- }
8755
- };
8756
- parseJson.JSONError = JSONError;
8757
- module.exports = parseJson;
8758
- }));
8759
- //#endregion
8760
7069
  //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
8761
7070
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8762
7071
  function isNothing(subject) {
@@ -11104,22 +9413,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11104
9413
  module.exports.safeDump = renamed("safeDump", "dump");
11105
9414
  }));
11106
9415
  //#endregion
11107
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/loaders.js
9416
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
11108
9417
  var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
11109
- var __importDefault = exports && exports.__importDefault || function(mod) {
11110
- return mod && mod.__esModule ? mod : { "default": mod };
11111
- };
11112
9418
  Object.defineProperty(exports, "__esModule", { value: true });
11113
- exports.loadTs = exports.loadTsSync = exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
11114
- const fs_1$2 = __require("fs");
9419
+ exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
11115
9420
  const promises_1$1 = __require("fs/promises");
11116
- const path_1$3 = __importDefault(__require("path"));
11117
9421
  const url_1 = __require("url");
11118
- const crypto_1 = __require("crypto");
11119
- let importFresh;
11120
9422
  exports.loadJsSync = function loadJsSync(filepath) {
11121
- if (importFresh === void 0) importFresh = require_import_fresh();
11122
- return importFresh(filepath);
9423
+ delete __require.cache[__require.resolve(filepath)];
9424
+ return __require(filepath);
11123
9425
  };
11124
9426
  exports.loadJs = async function loadJs(filepath) {
11125
9427
  try {
@@ -11135,11 +9437,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
11135
9437
  }
11136
9438
  }
11137
9439
  };
11138
- let parseJson;
11139
9440
  exports.loadJson = function loadJson(filepath, content) {
11140
- if (parseJson === void 0) parseJson = require_parse_json();
11141
9441
  try {
11142
- return parseJson(content);
9442
+ return JSON.parse(content);
11143
9443
  } catch (error) {
11144
9444
  error.message = `JSON Error in ${filepath}:\n${error.message}`;
11145
9445
  throw error;
@@ -11155,73 +9455,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
11155
9455
  throw error;
11156
9456
  }
11157
9457
  };
11158
- let typescript;
11159
- exports.loadTsSync = function loadTsSync(filepath, content) {
11160
- /* istanbul ignore next -- @preserve */
11161
- if (typescript === void 0) typescript = __require("typescript");
11162
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
11163
- try {
11164
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
11165
- config.compilerOptions = {
11166
- ...config.compilerOptions,
11167
- module: typescript.ModuleKind.NodeNext,
11168
- moduleResolution: typescript.ModuleResolutionKind.NodeNext,
11169
- target: typescript.ScriptTarget.ES2022,
11170
- noEmit: false
11171
- };
11172
- content = typescript.transpileModule(content, config).outputText;
11173
- (0, fs_1$2.writeFileSync)(compiledFilepath, content);
11174
- return (0, exports.loadJsSync)(compiledFilepath, content).default;
11175
- } catch (error) {
11176
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
11177
- throw error;
11178
- } finally {
11179
- if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
11180
- }
11181
- };
11182
- exports.loadTs = async function loadTs(filepath, content) {
11183
- if (typescript === void 0) typescript = (await import("typescript")).default;
11184
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
11185
- let transpiledContent;
11186
- try {
11187
- try {
11188
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
11189
- config.compilerOptions = {
11190
- ...config.compilerOptions,
11191
- module: typescript.ModuleKind.ES2022,
11192
- moduleResolution: typescript.ModuleResolutionKind.Bundler,
11193
- target: typescript.ScriptTarget.ES2022,
11194
- noEmit: false
11195
- };
11196
- transpiledContent = typescript.transpileModule(content, config).outputText;
11197
- await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
11198
- } catch (error) {
11199
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
11200
- throw error;
11201
- }
11202
- return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
11203
- } finally {
11204
- if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
11205
- }
11206
- };
11207
- function resolveTsConfig(directory) {
11208
- const filePath = typescript.findConfigFile(directory, (fileName) => {
11209
- return typescript.sys.fileExists(fileName);
11210
- });
11211
- if (filePath !== void 0) {
11212
- const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
11213
- if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
11214
- return config;
11215
- }
11216
- }
11217
9458
  }));
11218
9459
  //#endregion
11219
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/defaults.js
9460
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
11220
9461
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
11221
9462
  Object.defineProperty(exports, "__esModule", { value: true });
11222
- exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
11223
- exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
11224
- exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
9463
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
11225
9464
  const loaders_1 = require_loaders();
11226
9465
  function getDefaultSearchPlaces(moduleName) {
11227
9466
  return [
@@ -11248,6 +9487,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
11248
9487
  `${moduleName}.config.mjs`
11249
9488
  ];
11250
9489
  }
9490
+ exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
11251
9491
  function getDefaultSearchPlacesSync(moduleName) {
11252
9492
  return [
11253
9493
  "package.json",
@@ -11270,6 +9510,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
11270
9510
  `${moduleName}.config.cjs`
11271
9511
  ];
11272
9512
  }
9513
+ exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
11273
9514
  exports.globalConfigSearchPlaces = [
11274
9515
  "config",
11275
9516
  "config.json",
@@ -11304,7 +9545,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
11304
9545
  ".mjs": loaders_1.loadJs,
11305
9546
  ".cjs": loaders_1.loadJs,
11306
9547
  ".js": loaders_1.loadJs,
11307
- ".ts": loaders_1.loadTs,
9548
+ ".ts": loaders_1.loadJs,
9549
+ ".cts": loaders_1.loadJs,
9550
+ ".mts": loaders_1.loadJs,
11308
9551
  ".json": loaders_1.loadJson,
11309
9552
  ".yaml": loaders_1.loadYaml,
11310
9553
  ".yml": loaders_1.loadYaml,
@@ -11313,7 +9556,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
11313
9556
  exports.defaultLoadersSync = Object.freeze({
11314
9557
  ".cjs": loaders_1.loadJsSync,
11315
9558
  ".js": loaders_1.loadJsSync,
11316
- ".ts": loaders_1.loadTsSync,
9559
+ ".cts": loaders_1.loadJsSync,
9560
+ ".ts": loaders_1.loadJsSync,
11317
9561
  ".json": loaders_1.loadJson,
11318
9562
  ".yaml": loaders_1.loadYaml,
11319
9563
  ".yml": loaders_1.loadYaml,
@@ -11371,7 +9615,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11371
9615
  module.exports.default = envPaths;
11372
9616
  }));
11373
9617
  //#endregion
11374
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/util.js
9618
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
11375
9619
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
11376
9620
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
11377
9621
  if (k2 === void 0) k2 = k;
@@ -11395,31 +9639,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
11395
9639
  }) : function(o, v) {
11396
9640
  o["default"] = v;
11397
9641
  });
11398
- var __importStar = exports && exports.__importStar || (function() {
11399
- var ownKeys = function(o) {
11400
- ownKeys = Object.getOwnPropertyNames || function(o) {
11401
- var ar = [];
11402
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
11403
- return ar;
11404
- };
11405
- return ownKeys(o);
11406
- };
11407
- return function(mod) {
11408
- if (mod && mod.__esModule) return mod;
11409
- var result = {};
11410
- if (mod != null) {
11411
- for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
11412
- }
11413
- __setModuleDefault(result, mod);
11414
- return result;
11415
- };
11416
- })();
9642
+ var __importStar = exports && exports.__importStar || function(mod) {
9643
+ if (mod && mod.__esModule) return mod;
9644
+ var result = {};
9645
+ if (mod != null) {
9646
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
9647
+ }
9648
+ __setModuleDefault(result, mod);
9649
+ return result;
9650
+ };
11417
9651
  Object.defineProperty(exports, "__esModule", { value: true });
11418
- exports.emplace = emplace;
11419
- exports.getPropertyByPath = getPropertyByPath;
11420
- exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
11421
- exports.isDirectory = isDirectory;
11422
- exports.isDirectorySync = isDirectorySync;
9652
+ exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
11423
9653
  const fs_1$1 = __importStar(__require("fs"));
11424
9654
  /**
11425
9655
  * @internal
@@ -11431,6 +9661,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
11431
9661
  map.set(key, result);
11432
9662
  return result;
11433
9663
  }
9664
+ exports.emplace = emplace;
11434
9665
  /**
11435
9666
  * @internal
11436
9667
  */
@@ -11441,10 +9672,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
11441
9672
  return previous[key];
11442
9673
  }, source);
11443
9674
  }
9675
+ exports.getPropertyByPath = getPropertyByPath;
9676
+ /** @internal */
9677
+ function decodeFileContent(buffer) {
9678
+ if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
9679
+ if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
9680
+ return buffer.toString("utf-8");
9681
+ }
9682
+ exports.decodeFileContent = decodeFileContent;
11444
9683
  /** @internal */
11445
9684
  function removeUndefinedValuesFromObject(options) {
11446
9685
  return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
11447
9686
  }
9687
+ exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
11448
9688
  /** @internal */
11449
9689
  /* istanbul ignore next -- @preserve */
11450
9690
  async function isDirectory(path) {
@@ -11455,6 +9695,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
11455
9695
  throw e;
11456
9696
  }
11457
9697
  }
9698
+ exports.isDirectory = isDirectory;
11458
9699
  /** @internal */
11459
9700
  /* istanbul ignore next -- @preserve */
11460
9701
  function isDirectorySync(path) {
@@ -11465,16 +9706,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
11465
9706
  throw e;
11466
9707
  }
11467
9708
  }
9709
+ exports.isDirectorySync = isDirectorySync;
11468
9710
  }));
11469
9711
  //#endregion
11470
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerBase.js
9712
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
11471
9713
  var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
11472
9714
  var __importDefault = exports && exports.__importDefault || function(mod) {
11473
9715
  return mod && mod.__esModule ? mod : { "default": mod };
11474
9716
  };
11475
9717
  Object.defineProperty(exports, "__esModule", { value: true });
11476
- exports.ExplorerBase = void 0;
11477
- exports.getExtensionDescription = getExtensionDescription;
9718
+ exports.getExtensionDescription = exports.ExplorerBase = void 0;
11478
9719
  const env_paths_1 = __importDefault(require_env_paths());
11479
9720
  const os_1 = __importDefault(__require("os"));
11480
9721
  const path_1$2 = __importDefault(__require("path"));
@@ -11586,13 +9827,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
11586
9827
  /* istanbul ignore next -- @preserve */
11587
9828
  return extension ? `extension "${extension}"` : "files without extensions";
11588
9829
  }
9830
+ exports.getExtensionDescription = getExtensionDescription;
11589
9831
  }));
11590
9832
  //#endregion
11591
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/merge.js
9833
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
11592
9834
  var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
11593
9835
  Object.defineProperty(exports, "__esModule", { value: true });
11594
- exports.hasOwn = void 0;
11595
- exports.mergeAll = mergeAll;
9836
+ exports.mergeAll = exports.hasOwn = void 0;
11596
9837
  exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
11597
9838
  const objToString = Function.prototype.call.bind(Object.prototype.toString);
11598
9839
  function isPlainObject(obj) {
@@ -11624,9 +9865,10 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
11624
9865
  function mergeAll(objects, options) {
11625
9866
  return objects.reduce((target, source) => merge(target, source, options), {});
11626
9867
  }
9868
+ exports.mergeAll = mergeAll;
11627
9869
  }));
11628
9870
  //#endregion
11629
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/Explorer.js
9871
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
11630
9872
  var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
11631
9873
  var __importDefault = exports && exports.__importDefault || function(mod) {
11632
9874
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -11685,7 +9927,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
11685
9927
  return await search();
11686
9928
  }
11687
9929
  async #readConfiguration(filepath, importStack = []) {
11688
- const contents = await promises_1.default.readFile(filepath, { encoding: "utf-8" });
9930
+ const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
11689
9931
  return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
11690
9932
  }
11691
9933
  async #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -11761,7 +10003,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
11761
10003
  exports.Explorer = Explorer;
11762
10004
  }));
11763
10005
  //#endregion
11764
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerSync.js
10006
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
11765
10007
  var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
11766
10008
  var __importDefault = exports && exports.__importDefault || function(mod) {
11767
10009
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -11820,7 +10062,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
11820
10062
  return search();
11821
10063
  }
11822
10064
  #readConfiguration(filepath, importStack = []) {
11823
- const contents = fs_1.default.readFileSync(filepath, "utf8");
10065
+ const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
11824
10066
  return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
11825
10067
  }
11826
10068
  #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -11910,11 +10152,10 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
11910
10152
  exports.ExplorerSync = ExplorerSync;
11911
10153
  }));
11912
10154
  //#endregion
11913
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/index.js
10155
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/index.js
11914
10156
  var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
11915
10157
  Object.defineProperty(exports, "__esModule", { value: true });
11916
- exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
11917
- exports.cosmiconfig = cosmiconfig;
10158
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
11918
10159
  const defaults_1 = require_defaults();
11919
10160
  Object.defineProperty(exports, "defaultLoaders", {
11920
10161
  enumerable: true,
@@ -11988,7 +10229,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
11988
10229
  function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
11989
10230
  const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
11990
10231
  if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
11991
- return userConfiguredSearchPlaces ?? toolDefinedSearchPlaces;
10232
+ return userConfiguredSearchPlaces ??
10233
+ /* istanbul ignore next */ toolDefinedSearchPlaces;
11992
10234
  }
11993
10235
  function mergeOptionsBase(moduleName, defaults, options) {
11994
10236
  const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
@@ -12032,6 +10274,21 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12032
10274
  searchStrategy: options.stopDir ? "global" : "none"
12033
10275
  }, options);
12034
10276
  }
10277
+ function mergeOptionsSync(moduleName, options) {
10278
+ validateOptions(options);
10279
+ return mergeOptionsBase(moduleName, {
10280
+ moduleName,
10281
+ searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
10282
+ ignoreEmptySearchPlaces: true,
10283
+ cache: true,
10284
+ transform: identity,
10285
+ loaders: defaults_1.defaultLoadersSync,
10286
+ metaConfigFilePath: null,
10287
+ mergeImportArrays: true,
10288
+ mergeSearchPlaces: true,
10289
+ searchStrategy: options.stopDir ? "global" : "none"
10290
+ }, options);
10291
+ }
12035
10292
  function cosmiconfig(moduleName, options = {}) {
12036
10293
  const normalizedOptions = mergeOptions(moduleName, options);
12037
10294
  const explorer = new Explorer_js_1.Explorer(normalizedOptions);
@@ -12043,6 +10300,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12043
10300
  clearCaches: explorer.clearCaches.bind(explorer)
12044
10301
  };
12045
10302
  }
10303
+ exports.cosmiconfig = cosmiconfig;
10304
+ function cosmiconfigSync(moduleName, options = {}) {
10305
+ const normalizedOptions = mergeOptionsSync(moduleName, options);
10306
+ const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
10307
+ return {
10308
+ search: explorerSync.search.bind(explorerSync),
10309
+ load: explorerSync.load.bind(explorerSync),
10310
+ clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
10311
+ clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
10312
+ clearCaches: explorerSync.clearCaches.bind(explorerSync)
10313
+ };
10314
+ }
10315
+ exports.cosmiconfigSync = cosmiconfigSync;
12046
10316
  }));
12047
10317
  //#endregion
12048
10318
  //#region src/lib/ruleCommandRegistry.ts
@@ -12353,7 +10623,7 @@ const range = (a, b, str) => {
12353
10623
  return result;
12354
10624
  };
12355
10625
  //#endregion
12356
- //#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
10626
+ //#region ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
12357
10627
  const escSlash = "\0SLASH" + Math.random() + "\0";
12358
10628
  const escOpen = "\0OPEN" + Math.random() + "\0";
12359
10629
  const escClose = "\0CLOSE" + Math.random() + "\0";
@@ -12370,6 +10640,7 @@ const closePattern = /\\}/g;
12370
10640
  const commaPattern = /\\,/g;
12371
10641
  const periodPattern = /\\\./g;
12372
10642
  const EXPANSION_MAX = 1e5;
10643
+ const EXPANSION_MAX_LENGTH = 4e6;
12373
10644
  function numeric(str) {
12374
10645
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
12375
10646
  }
@@ -12402,9 +10673,9 @@ function parseCommaParts(str) {
12402
10673
  }
12403
10674
  function expand(str, options = {}) {
12404
10675
  if (!str) return [];
12405
- const { max = EXPANSION_MAX } = options;
10676
+ const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
12406
10677
  if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
12407
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
10678
+ return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
12408
10679
  }
12409
10680
  function embrace(str) {
12410
10681
  return "{" + str + "}";
@@ -12418,20 +10689,72 @@ function lte(i, y) {
12418
10689
  function gte(i, y) {
12419
10690
  return i >= y;
12420
10691
  }
12421
- function expand_(str, max, isTop) {
12422
- /** @type {string[]} */
12423
- const expansions = [];
10692
+ function combine(acc, pre, values, max, maxLength, dropEmpties) {
10693
+ const out = [];
10694
+ let length = 0;
10695
+ for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
10696
+ if (out.length >= max) return out;
10697
+ const expansion = acc[a] + pre + values[v];
10698
+ if (dropEmpties && !expansion) continue;
10699
+ if (length + expansion.length > maxLength) return out;
10700
+ out.push(expansion);
10701
+ length += expansion.length;
10702
+ }
10703
+ return out;
10704
+ }
10705
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
10706
+ const n = body.split(/\.\./);
10707
+ const N = [];
10708
+ /* c8 ignore start */
10709
+ if (n[0] === void 0 || n[1] === void 0) return N;
10710
+ /* c8 ignore stop */
10711
+ const x = numeric(n[0]);
10712
+ const y = numeric(n[1]);
10713
+ const width = Math.max(n[0].length, n[1].length);
10714
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
10715
+ let test = lte;
10716
+ if (y < x) {
10717
+ incr *= -1;
10718
+ test = gte;
10719
+ }
10720
+ const pad = n.some(isPadded);
10721
+ let length = 0;
10722
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
10723
+ let c;
10724
+ if (isAlphaSequence) {
10725
+ c = String.fromCharCode(i);
10726
+ if (c === "\\") c = "";
10727
+ } else {
10728
+ c = String(i);
10729
+ if (pad) {
10730
+ const need = width - c.length;
10731
+ if (need > 0) {
10732
+ const z = new Array(need + 1).join("0");
10733
+ if (i < 0) c = "-" + z + c.slice(1);
10734
+ else c = z + c;
10735
+ }
10736
+ }
10737
+ }
10738
+ if (length + c.length > maxLength) break;
10739
+ N.push(c);
10740
+ length += c.length;
10741
+ }
10742
+ return N;
10743
+ }
10744
+ function expand_(str, max, maxLength, isTop) {
10745
+ let acc = [""];
10746
+ let dropEmpties = false;
10747
+ let firstGroup = true;
12424
10748
  for (;;) {
12425
10749
  const m = balanced("{", "}", str);
12426
- if (!m) return [str];
10750
+ if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
12427
10751
  const pre = m.pre;
12428
- if (/\$$/.test(m.pre)) {
12429
- const post = m.post.length ? expand_(m.post, max, false) : [""];
12430
- for (let k = 0; k < post.length && k < max; k++) {
12431
- const expansion = pre + "{" + m.body + "}" + post[k];
12432
- expansions.push(expansion);
12433
- }
12434
- return expansions;
10752
+ if (/\$$/.test(pre)) {
10753
+ acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
10754
+ firstGroup = false;
10755
+ if (!m.post.length) break;
10756
+ str = m.post;
10757
+ continue;
12435
10758
  }
12436
10759
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
12437
10760
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
@@ -12443,70 +10766,56 @@ function expand_(str, max, isTop) {
12443
10766
  isTop = true;
12444
10767
  continue;
12445
10768
  }
12446
- return [str];
10769
+ return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
12447
10770
  }
12448
- const post = m.post.length ? expand_(m.post, max, false) : [""];
12449
- let n;
12450
- if (isSequence) n = m.body.split(/\.\./);
10771
+ if (firstGroup) {
10772
+ dropEmpties = isTop && !isSequence;
10773
+ firstGroup = false;
10774
+ }
10775
+ let values;
10776
+ if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
12451
10777
  else {
12452
- n = parseCommaParts(m.body);
10778
+ let n = parseCommaParts(m.body);
12453
10779
  if (n.length === 1 && n[0] !== void 0) {
12454
- n = expand_(n[0], max, false).map(embrace);
10780
+ n = expand_(n[0], max, maxLength, false).map(embrace);
12455
10781
  /* c8 ignore start */
12456
- if (n.length === 1) return post.map((p) => m.pre + n[0] + p);
12457
- }
12458
- }
12459
- let N;
12460
- if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
12461
- const x = numeric(n[0]);
12462
- const y = numeric(n[1]);
12463
- const width = Math.max(n[0].length, n[1].length);
12464
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
12465
- let test = lte;
12466
- if (y < x) {
12467
- incr *= -1;
12468
- test = gte;
12469
- }
12470
- const pad = n.some(isPadded);
12471
- N = [];
12472
- for (let i = x; test(i, y) && N.length < max; i += incr) {
12473
- let c;
12474
- if (isAlphaSequence) {
12475
- c = String.fromCharCode(i);
12476
- if (c === "\\") c = "";
12477
- } else {
12478
- c = String(i);
12479
- if (pad) {
12480
- const need = width - c.length;
12481
- if (need > 0) {
12482
- const z = new Array(need + 1).join("0");
12483
- if (i < 0) c = "-" + z + c.slice(1);
12484
- else c = z + c;
12485
- }
12486
- }
10782
+ if (n.length === 1) {
10783
+ acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
10784
+ if (!m.post.length) break;
10785
+ str = m.post;
10786
+ continue;
10787
+ }
10788
+ }
10789
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
10790
+ for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
10791
+ values = [];
10792
+ let valuesLength = 0;
10793
+ outer: for (let j = 0; j < n.length; j++) {
10794
+ const expanded = expand_(n[j], max, maxLength, false);
10795
+ for (let k = 0; k < expanded.length; k++) {
10796
+ const v = expanded[k];
10797
+ if (dropsEmpties && !v) continue;
10798
+ if (values.length >= max || valuesLength + v.length > maxLength) break outer;
10799
+ values.push(v);
10800
+ valuesLength += v.length;
12487
10801
  }
12488
- N.push(c);
12489
10802
  }
12490
- } else {
12491
- N = [];
12492
- for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
12493
- }
12494
- for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
12495
- const expansion = pre + N[j] + post[k];
12496
- if (!isTop || isSequence || expansion) expansions.push(expansion);
12497
10803
  }
12498
- return expansions;
10804
+ acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
10805
+ if (!m.post.length) break;
10806
+ str = m.post;
12499
10807
  }
10808
+ return acc;
12500
10809
  }
12501
10810
  //#endregion
12502
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
12503
- const MAX_PATTERN_LENGTH = 1024 * 64;
10811
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
10812
+ const MAX_PATTERN_LENGTH = 65536;
12504
10813
  const assertValidPattern = (pattern) => {
12505
10814
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
12506
10815
  if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
12507
10816
  };
12508
10817
  //#endregion
12509
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
10818
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
12510
10819
  const posixClasses = {
12511
10820
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
12512
10821
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -12630,7 +10939,7 @@ const parseClass = (glob, position) => {
12630
10939
  ];
12631
10940
  };
12632
10941
  //#endregion
12633
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
10942
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
12634
10943
  /**
12635
10944
  * Un-escape a string that has been escaped with {@link escape}.
12636
10945
  *
@@ -12655,7 +10964,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
12655
10964
  return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
12656
10965
  };
12657
10966
  //#endregion
12658
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
10967
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
12659
10968
  var _a$1;
12660
10969
  const types = /* @__PURE__ */ new Set([
12661
10970
  "!",
@@ -13164,7 +11473,7 @@ var AST = class {
13164
11473
  };
13165
11474
  _a$1 = AST;
13166
11475
  //#endregion
13167
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
11476
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
13168
11477
  /**
13169
11478
  * Escape all magic characters in a glob pattern.
13170
11479
  *
@@ -13182,7 +11491,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
13182
11491
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
13183
11492
  };
13184
11493
  //#endregion
13185
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
11494
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
13186
11495
  const minimatch = (p, pattern, options = {}) => {
13187
11496
  assertValidPattern(pattern);
13188
11497
  if (!options.nocomment && pattern.charAt(0) === "#") return false;
@@ -13849,7 +12158,8 @@ function packageName() {
13849
12158
  //#endregion
13850
12159
  //#region src/lib/parsedPackageJson.ts
13851
12160
  const parsedPackageJSON = (path) => {
13852
- const packageJSON = readFileSync(path ?? process.env.npm_package_json ?? "").toString();
12161
+ const pathToPackageJSON = path ?? process.env.npm_package_json ?? "";
12162
+ const packageJSON = readFileSync(pathToPackageJSON).toString();
13853
12163
  return JSON.parse(packageJSON);
13854
12164
  };
13855
12165
  //#endregion
@@ -14140,7 +12450,6 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
14140
12450
  version: "1.2"
14141
12451
  };
14142
12452
  this.tags = Object.assign({}, Directives.defaultTags);
14143
- break;
14144
12453
  }
14145
12454
  return res;
14146
12455
  }
@@ -14992,7 +13301,7 @@ var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
14992
13301
  }
14993
13302
  let blockEndNewlines;
14994
13303
  try {
14995
- blockEndNewlines = /* @__PURE__ */ new RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
13304
+ blockEndNewlines = new RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
14996
13305
  } catch {
14997
13306
  blockEndNewlines = /\n+(?!\n|$)/g;
14998
13307
  }
@@ -16318,9 +14627,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
16318
14627
  case 8:
16319
14628
  str = `0o${str}`;
16320
14629
  break;
16321
- case 16:
16322
- str = `0x${str}`;
16323
- break;
14630
+ case 16: str = `0x${str}`;
16324
14631
  }
16325
14632
  const n = BigInt(str);
16326
14633
  return sign === "-" ? BigInt(-1) * n : n;
@@ -17849,9 +16156,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
17849
16156
  badChar = `block scalar indicator ${source[0]}`;
17850
16157
  break;
17851
16158
  case "@":
17852
- case "`":
17853
- badChar = `reserved character ${source[0]}`;
17854
- break;
16159
+ case "`": badChar = `reserved character ${source[0]}`;
17855
16160
  }
17856
16161
  if (badChar) onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
17857
16162
  return foldLines(source);
@@ -17870,8 +16175,8 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
17870
16175
  */
17871
16176
  let first, line;
17872
16177
  try {
17873
- first = /* @__PURE__ */ new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
17874
- line = /* @__PURE__ */ new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
16178
+ first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
16179
+ line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
17875
16180
  } catch {
17876
16181
  first = /(.*?)[ \t]*\r?\n/sy;
17877
16182
  line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
@@ -20803,7 +19108,7 @@ const runStepsAsync = async (name, steps, shouldExitOnFail = true, messages) =>
20803
19108
  };
20804
19109
  //#endregion
20805
19110
  //#region src/lib/secure/classify.ts
20806
- const DAY_MS = 1440 * 60 * 1e3;
19111
+ const DAY_MS = 864e5;
20807
19112
  function classifySecureAge(publishedAt, now = /* @__PURE__ */ new Date()) {
20808
19113
  if (!publishedAt || Number.isNaN(publishedAt.getTime())) return { level: "gray" };
20809
19114
  const ageDays = Math.max(0, (now.getTime() - publishedAt.getTime()) / DAY_MS);
@@ -21672,13 +19977,13 @@ async function fetchAllRegistryInfo(packageNames, options = {}) {
21672
19977
  return await fetchAllRegistryInfoDirect(packageNames, options);
21673
19978
  }
21674
19979
  //#endregion
21675
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/key.js
19980
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/key.js
21676
19981
  const isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
21677
19982
  const isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
21678
19983
  const isSpaceKey = (key) => key.name === "space";
21679
19984
  const isEnterKey = (key) => key.name === "enter" || key.name === "return";
21680
19985
  //#endregion
21681
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/errors.js
19986
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/errors.js
21682
19987
  var AbortPromptError = class extends Error {
21683
19988
  name = "AbortPromptError";
21684
19989
  message = "Prompt was aborted";
@@ -21701,7 +20006,7 @@ var ValidationError = class extends Error {
21701
20006
  name = "ValidationError";
21702
20007
  };
21703
20008
  //#endregion
21704
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/hook-engine.js
20009
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/hook-engine.js
21705
20010
  const hookStorage = new AsyncLocalStorage();
21706
20011
  function createStore(rl) {
21707
20012
  return {
@@ -21797,7 +20102,7 @@ const effectScheduler = {
21797
20102
  }
21798
20103
  };
21799
20104
  //#endregion
21800
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/use-state.js
20105
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/use-state.js
21801
20106
  function isFactory(value) {
21802
20107
  return typeof value === "function";
21803
20108
  }
@@ -21816,7 +20121,7 @@ function useState(defaultValue) {
21816
20121
  });
21817
20122
  }
21818
20123
  //#endregion
21819
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/use-effect.js
20124
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/use-effect.js
21820
20125
  function useEffect(cb, depArray) {
21821
20126
  withPointer((pointer) => {
21822
20127
  const oldDeps = pointer.get();
@@ -21825,12 +20130,12 @@ function useEffect(cb, depArray) {
21825
20130
  });
21826
20131
  }
21827
20132
  //#endregion
21828
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/use-ref.js
20133
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/use-ref.js
21829
20134
  function useRef(val) {
21830
20135
  return useState({ current: val })[0];
21831
20136
  }
21832
20137
  //#endregion
21833
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/use-keypress.js
20138
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/use-keypress.js
21834
20139
  function useKeypress(userHandler) {
21835
20140
  const signal = useRef(userHandler);
21836
20141
  signal.current = userHandler;
@@ -22158,7 +20463,7 @@ function wrapAnsi$1(string, columns, options) {
22158
20463
  return String(string).normalize().split(CRLF_OR_LF).map((line) => exec$1(line, columns, options)).join("\n");
22159
20464
  }
22160
20465
  //#endregion
22161
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/utils.js
20466
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/utils.js
22162
20467
  var import_cli_width = /* @__PURE__ */ __toESM(require_cli_width(), 1);
22163
20468
  /**
22164
20469
  * Force line returns at specific width. This function is ANSI code friendly and it'll
@@ -22496,7 +20801,7 @@ const eraseLine = "\x1B[2K";
22496
20801
  /** Erase the specified number of lines above the cursor */
22497
20802
  const eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + "\x1B[2K\x1B[G" : "";
22498
20803
  //#endregion
22499
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/screen-manager.js
20804
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/screen-manager.js
22500
20805
  const height = (content) => content.split("\n").length;
22501
20806
  const lastLine = (content) => content.split("\n").pop() ?? "";
22502
20807
  var ScreenManager = class {
@@ -22514,7 +20819,8 @@ var ScreenManager = class {
22514
20819
  this.rl.output.mute();
22515
20820
  }
22516
20821
  render(content, bottomContent = "") {
22517
- const rawPromptLine = stripVTControlCharacters(lastLine(content));
20822
+ const promptLine = lastLine(content);
20823
+ const rawPromptLine = stripVTControlCharacters(promptLine);
22518
20824
  let prompt = rawPromptLine;
22519
20825
  if (this.rl.line.length > 0) prompt = prompt.slice(0, -this.rl.line.length);
22520
20826
  this.rl.setPrompt(prompt);
@@ -22552,7 +20858,7 @@ var ScreenManager = class {
22552
20858
  }
22553
20859
  };
22554
20860
  //#endregion
22555
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/promise-polyfill.js
20861
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/promise-polyfill.js
22556
20862
  var PromisePolyfill = class extends Promise {
22557
20863
  static withResolver() {
22558
20864
  let resolve;
@@ -22568,7 +20874,7 @@ var PromisePolyfill = class extends Promise {
22568
20874
  }
22569
20875
  };
22570
20876
  //#endregion
22571
- //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.1/node_modules/@inquirer/core/dist/lib/create-prompt.js
20877
+ //#region ../../node_modules/.pnpm/@inquirer+core@11.2.1_@types+node@26.1.2/node_modules/@inquirer/core/dist/lib/create-prompt.js
22572
20878
  var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
22573
20879
  const nativeSetImmediate = globalThis.setImmediate;
22574
20880
  function getCallSites() {
@@ -24472,7 +22778,8 @@ function crsBandForScore(crs) {
24472
22778
  function combineBands(base, crs) {
24473
22779
  const shift = crs === "low" ? -1 : crs === "high" ? 1 : 0;
24474
22780
  const index = AEI_SCORE_BAND_ORDER.indexOf(base) + shift;
24475
- return AEI_SCORE_BAND_ORDER[Math.min(Math.max(index, 0), AEI_SCORE_BAND_ORDER.length - 1)];
22781
+ const clamped = Math.min(Math.max(index, 0), AEI_SCORE_BAND_ORDER.length - 1);
22782
+ return AEI_SCORE_BAND_ORDER[clamped];
24476
22783
  }
24477
22784
  /**
24478
22785
  * Computes both scores and the combined recommendation from a dependency's
@@ -26452,7 +24759,7 @@ function getReachableRuntimeFiles(runtimeRoots, shouldIncludeFile) {
26452
24759
  }
26453
24760
  const launcherNodeTargetRe = /\bnode(?:\.exe)?\b[^\n]*?["']?([^"'\s]+\.(?:mjs|cjs|js))(?=["'\s]|$)/i;
26454
24761
  const launcherDirVarRe = /^(?:\$\{?\w+\}?|%\w+%|%~dp0)\/?/;
26455
- const MAX_LAUNCHER_BYTES = 64 * 1024;
24762
+ const MAX_LAUNCHER_BYTES = 65536;
26456
24763
  /**
26457
24764
  * OS-specific bin launchers (a `#!/bin/bash` wrapper plus a `.cmd` sibling)
26458
24765
  * are not code files themselves — they `exec node <bundle>`. Read the wrapper
@@ -27211,11 +25518,12 @@ async function lintInit({ isVerbose } = {}) {
27211
25518
  else if (isVerbose === true) console.log(chalk.gray(" No React packages detected — using @ariestools/eslint-config-flat"));
27212
25519
  const enabledBarrels = [];
27213
25520
  for (const descriptor of getBarrelDescriptorsForRepo(isReact)) if (await askConfirmation(chalk.cyan(`Disallow ${descriptor.pkg} barrel imports? (y/N) `))) enabledBarrels.push(descriptor);
27214
- writeFileSync(configPath, generateEslintConfig({
25521
+ const config = generateEslintConfig({
27215
25522
  barrels: resolveEnabledBarrels(cwd, enabledBarrels, isVerbose),
27216
25523
  hasGitignore: existsSync(PATH.resolve(cwd, ".gitignore")),
27217
25524
  isReact
27218
- }), "utf8");
25525
+ });
25526
+ writeFileSync(configPath, config, "utf8");
27219
25527
  console.log(chalk.green("Generated eslint.config.ts"));
27220
25528
  removeLegacyConfig(legacyConfigPath);
27221
25529
  updateDependencies(PATH.resolve(cwd, "package.json"), isReact, cwd, isVerbose);
@@ -29076,9 +27384,7 @@ function renderVerboseProgressEvent(event) {
29076
27384
  case "rule-end":
29077
27385
  console.info(chalk.dim(` ${event.diagnostics} ${pluralize("finding", event.diagnostics)} in ${event.elapsedMs}ms`));
29078
27386
  break;
29079
- case "rule-skip":
29080
- console.info(chalk.dim(` skip ${event.ruleIndex}/${event.ruleTotal}: ${event.rule.id} (${event.reason})`));
29081
- break;
27387
+ case "rule-skip": console.info(chalk.dim(` skip ${event.ruleIndex}/${event.ruleTotal}: ${event.rule.id} (${event.reason})`));
29082
27388
  }
29083
27389
  }
29084
27390
  function renderWorkspaceHeader(event) {
@@ -32596,10 +30902,7 @@ var DeplintPackageEditor = class {
32596
30902
  case "remove":
32597
30903
  removeDep(this.pkg, fix.dependency, fix.section);
32598
30904
  break;
32599
- case "set-version":
32600
- if (this.pkg[fix.section]?.[fix.dependency] !== void 0) addDep(this.pkg, fix.dependency, fix.version, fix.section);
32601
- break;
32602
- case "resolve-peer-bump": break;
30905
+ case "set-version": if (this.pkg[fix.section]?.[fix.dependency] !== void 0) addDep(this.pkg, fix.dependency, fix.version, fix.section);
32603
30906
  }
32604
30907
  if (JSON.stringify(this.pkg) === before) return void 0;
32605
30908
  this.dirty = true;
@@ -34177,7 +32480,8 @@ function findClosestTierPreset(actual, counts) {
34177
32480
  }
34178
32481
  async function loadXylabsEslintConfigPackage(cwd, isReact, configPackageName) {
34179
32482
  const packageName = configPackageName ?? defaultEslintConfigPackage(isReact);
34180
- return import(pathToFileURL(createRequire(PATH.join(cwd, "package.json")).resolve(packageName)).href);
32483
+ const resolved = createRequire(PATH.join(cwd, "package.json")).resolve(packageName);
32484
+ return import(pathToFileURL(resolved).href);
34181
32485
  }
34182
32486
  function resolveTierConfigExport(configPackage, exportName) {
34183
32487
  const configs = configPackage[exportName];
@@ -34645,7 +32949,7 @@ function runGit(rootDir, args) {
34645
32949
  ...args
34646
32950
  ], {
34647
32951
  encoding: "utf8",
34648
- maxBuffer: 32 * 1024 * 1024
32952
+ maxBuffer: 33554432
34649
32953
  });
34650
32954
  return {
34651
32955
  status: result.status,
@@ -35087,9 +33391,7 @@ const buildEntries = (srcDir, entryMode = "single", options, shouldExcludeSpecAn
35087
33391
  case "custom":
35088
33392
  entries = [];
35089
33393
  break;
35090
- default:
35091
- entries = ["index.ts"];
35092
- break;
33394
+ default: entries = ["index.ts"];
35093
33395
  }
35094
33396
  if (typeof options !== "boolean" && Array.isArray(options?.entry)) entries.push(...options.entry);
35095
33397
  if (isVerbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
@@ -36618,7 +34920,7 @@ var init_main = __esmMin((() => {
36618
34920
  z = R;
36619
34921
  }));
36620
34922
  //#endregion
36621
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/utils.js
34923
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/utils.js
36622
34924
  /**
36623
34925
  * @param {string} packageManager
36624
34926
  * @returns {string[]}
@@ -36641,7 +34943,7 @@ async function getTempPackDir() {
36641
34943
  }
36642
34944
  var init_utils$2 = __esmMin((() => {}));
36643
34945
  //#endregion
36644
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/pack.js
34946
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack.js
36645
34947
  /** @type {import('../index.d.ts').pack} */
36646
34948
  async function pack(dir, opts) {
36647
34949
  const packageManager = opts?.packageManager ?? "npm";
@@ -36655,18 +34957,14 @@ async function pack(dir, opts) {
36655
34957
  case "bun":
36656
34958
  command.push("--destination", packDestination);
36657
34959
  break;
36658
- default:
36659
- command.push("--pack-destination", packDestination);
36660
- break;
34960
+ default: command.push("--pack-destination", packDestination);
36661
34961
  }
36662
34962
  if (opts?.ignoreScripts) switch (packageManager) {
36663
34963
  case "pnpm":
36664
34964
  command.push("--config.ignore-scripts=true");
36665
34965
  break;
36666
34966
  case "yarn": break;
36667
- default:
36668
- command.push("--ignore-scripts");
36669
- break;
34967
+ default: command.push("--ignore-scripts");
36670
34968
  }
36671
34969
  const output = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
36672
34970
  const tarballFile = await fs$1.readdir(packDestination).then((files) => {
@@ -36681,7 +34979,7 @@ var init_pack = __esmMin((() => {
36681
34979
  init_utils$2();
36682
34980
  }));
36683
34981
  //#endregion
36684
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/pack-as-json.js
34982
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-json.js
36685
34983
  /** @type {import('../index.d.ts').packAsJson} */
36686
34984
  async function packAsJson(dir, opts) {
36687
34985
  const packageManager = opts?.packageManager ?? "npm";
@@ -36701,9 +34999,7 @@ async function packAsJson(dir, opts) {
36701
34999
  command.push("--config.ignore-scripts=true");
36702
35000
  break;
36703
35001
  case "yarn": break;
36704
- default:
36705
- command.push("--ignore-scripts");
36706
- break;
35002
+ default: command.push("--ignore-scripts");
36707
35003
  }
36708
35004
  let { stdout } = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
36709
35005
  try {
@@ -36742,7 +35038,7 @@ var init_pack_as_json = __esmMin((() => {
36742
35038
  init_utils$2();
36743
35039
  }));
36744
35040
  //#endregion
36745
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/shared/buffer-stream.js
35041
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/buffer-stream.js
36746
35042
  /**
36747
35043
  * @param {ReadableStream<Uint8Array>} readableStream
36748
35044
  * @returns {Promise<ArrayBuffer>}
@@ -36752,7 +35048,7 @@ async function readableStreamToArrayBuffer(readableStream) {
36752
35048
  }
36753
35049
  var init_buffer_stream = __esmMin((() => {}));
36754
35050
  //#endregion
36755
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/shared/parse-tar.js
35051
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/parse-tar.js
36756
35052
  /**
36757
35053
  * @param {ArrayBuffer} buffer
36758
35054
  * @returns {import('../index.d.ts').TarballFile[]}
@@ -36796,7 +35092,7 @@ function getFilesRootDir(files) {
36796
35092
  }
36797
35093
  var init_parse_tar = __esmMin((() => {}));
36798
35094
  //#endregion
36799
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/unpack.js
35095
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/unpack.js
36800
35096
  /** @type {import('../index.d.ts').unpack} */
36801
35097
  async function unpack(tarball) {
36802
35098
  /** @type {ArrayBuffer} */
@@ -36817,7 +35113,7 @@ var init_unpack = __esmMin((() => {
36817
35113
  init_parse_tar();
36818
35114
  }));
36819
35115
  //#endregion
36820
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/pack-as-list.js
35116
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-list.js
36821
35117
  /** @type {import('../index.d.ts').packAsList} */
36822
35118
  async function packAsList(dir, opts) {
36823
35119
  const packageManager = opts?.packageManager ?? "npm";
@@ -36875,7 +35171,8 @@ async function packAsListWithPack(dir, packageManager, ignoreScripts) {
36875
35171
  * @returns {string[]}
36876
35172
  */
36877
35173
  function parseNpmPackJson(stdoutJson) {
36878
- return stdoutJson[0].files.map((file) => file.path);
35174
+ if (Array.isArray(stdoutJson)) return stdoutJson[0].files.map((file) => file.path);
35175
+ else return stdoutJson[Object.keys(stdoutJson)[0]].files.map((file) => file.path);
36879
35176
  }
36880
35177
  /**
36881
35178
  * @param {any} stdoutJson
@@ -36900,7 +35197,7 @@ var init_pack_as_list = __esmMin((() => {
36900
35197
  init_utils$2();
36901
35198
  }));
36902
35199
  //#endregion
36903
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/get-pack-directory.js
35200
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/get-pack-directory.js
36904
35201
  /** @type {import('../index.d.ts').getPackDirectory} */
36905
35202
  async function getPackDirectory(dir, packageManager) {
36906
35203
  if (packageManager === "pnpm") try {
@@ -36912,16 +35209,28 @@ async function getPackDirectory(dir, packageManager) {
36912
35209
  }
36913
35210
  var init_get_pack_directory = __esmMin((() => {}));
36914
35211
  //#endregion
36915
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/index-node.js
35212
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/constants.js
35213
+ var supportedPackageManagers;
35214
+ var init_constants$2 = __esmMin((() => {
35215
+ supportedPackageManagers = [
35216
+ "npm",
35217
+ "yarn",
35218
+ "pnpm",
35219
+ "bun"
35220
+ ];
35221
+ }));
35222
+ //#endregion
35223
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/index-node.js
36916
35224
  var init_index_node$1 = __esmMin((() => {
36917
35225
  init_pack();
36918
35226
  init_pack_as_list();
36919
35227
  init_pack_as_json();
36920
35228
  init_get_pack_directory();
36921
35229
  init_unpack();
35230
+ init_constants$2();
36922
35231
  }));
36923
35232
  //#endregion
36924
- //#region ../../node_modules/.pnpm/publint@0.3.21/node_modules/publint/src/node/vfs-node.js
35233
+ //#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/node/vfs-node.js
36925
35234
  /**
36926
35235
  * Creates a node-compatible Vfs object
36927
35236
  * @returns {import('../shared/core.js').Vfs}
@@ -36960,7 +35269,7 @@ function createNodeVfs() {
36960
35269
  }
36961
35270
  var init_vfs_node = __esmMin((() => {}));
36962
35271
  //#endregion
36963
- //#region ../../node_modules/.pnpm/publint@0.3.21/node_modules/publint/src/shared/constants.js
35272
+ //#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/constants.js
36964
35273
  var lintableFileExtensions, invalidJsxExtensions, knownBrowserishConditions, commonInternalPaths, licenseFiles;
36965
35274
  var init_constants$1 = __esmMin((() => {
36966
35275
  lintableFileExtensions = [
@@ -36983,10 +35292,35 @@ var init_constants$1 = __esmMin((() => {
36983
35292
  "test/",
36984
35293
  "tests/",
36985
35294
  "__tests__/",
35295
+ "e2e/",
35296
+ ".circleci/",
35297
+ ".github/",
35298
+ ".husky/",
35299
+ ".vscode/",
36986
35300
  ".prettierrc",
35301
+ ".prettierignore",
36987
35302
  "prettier.config.js",
36988
35303
  ".eslintrc",
36989
- ".eslintrc.js"
35304
+ ".eslintrc.js",
35305
+ ".eslintignore",
35306
+ "eslint.config.js",
35307
+ "eslint.config.mjs",
35308
+ "eslint.config.cjs",
35309
+ ".travis.yml",
35310
+ "azure-pipelines.yml",
35311
+ "appveyor.yml",
35312
+ ".gitattributes",
35313
+ ".gitignore",
35314
+ "package-lock.json",
35315
+ "yarn.lock",
35316
+ "pnpm-lock.yaml",
35317
+ "bun.lock",
35318
+ "bun.lockb",
35319
+ "CONTRIBUTING.md",
35320
+ "CODE_OF_CONDUCT.md",
35321
+ "CODEOWNERS",
35322
+ "Dockerfile",
35323
+ "tsconfig.tsbuildinfo"
36990
35324
  ];
36991
35325
  licenseFiles = [
36992
35326
  /^copying/i,
@@ -36995,7 +35329,7 @@ var init_constants$1 = __esmMin((() => {
36995
35329
  ];
36996
35330
  }));
36997
35331
  //#endregion
36998
- //#region ../../node_modules/.pnpm/publint@0.3.21/node_modules/publint/src/shared/utils.js
35332
+ //#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/utils.js
36999
35333
  /**
37000
35334
  * @param {string} code
37001
35335
  */
@@ -37391,7 +35725,7 @@ var init_utils$1 = __esmMin((() => {
37391
35725
  EXPORTS_DEFAULT_PATTERN_RE = /exports(?:\.default|\["default"\]|\['default'\])\s*=\s*([^\s]{7}.)/g;
37392
35726
  MULTILINE_COMMENTS_RE = /\/\*(.|[\r\n])*?\*\//gm;
37393
35727
  SINGLELINE_COMMENTS_RE = /\/\/.*/g;
37394
- GIT_URL_RE = /^(?:(git\+https?|git\+ssh|https?|ssh|git):\/\/)?(?:[\w._-]+@)?([\w.-]+)(?::([\w\d-]+))?(\/[\w._/-]+)\/?$/;
35728
+ GIT_URL_RE = /^(?:(git\+https?|git\+ssh|https?|ssh|git):\/\/)?(?:[^@/]+@)?([\w.-]+)(?::([\w\d-]+))?(\/[^?#]+)\/?$/;
37395
35729
  SHORTHAND_REPOSITORY_URL_RE = /^(?:(?:github|bitbucket|gitlab):[^/]+\/.+|gist:.+|[^/]+\/[^/]+)$/;
37396
35730
  COMMON_CONDITIONS = [
37397
35731
  "default",
@@ -37409,7 +35743,7 @@ var init_utils$1 = __esmMin((() => {
37409
35743
  DTS_RE = /\.d\.[mc]?ts$/;
37410
35744
  }));
37411
35745
  //#endregion
37412
- //#region ../../node_modules/.pnpm/publint@0.3.21/node_modules/publint/src/shared/core.js
35746
+ //#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/core.js
37413
35747
  /**
37414
35748
  * @typedef Vfs
37415
35749
  * @property {(path: string) => Promise<string>} readFile
@@ -38276,7 +36610,7 @@ var init_core = __esmMin((() => {
38276
36610
  init_utils$1();
38277
36611
  }));
38278
36612
  //#endregion
38279
- //#region ../../node_modules/.pnpm/publint@0.3.21/node_modules/publint/src/shared/vfs-tarball.js
36613
+ //#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/vfs-tarball.js
38280
36614
  /**
38281
36615
  * @param {import("../index.d.ts").PackFile[]} files
38282
36616
  * @return {import("./core.js").Vfs}
@@ -38421,18 +36755,16 @@ async function detect(options = {}) {
38421
36755
  if (result) return result;
38422
36756
  break;
38423
36757
  }
38424
- case "install-metadata":
38425
- for (const metadata of Object.keys(INSTALL_METADATA)) {
38426
- const fileOrDir = metadata.endsWith("/") ? "dir" : "file";
38427
- if (await pathExists(PATH.join(directory, metadata), fileOrDir)) {
38428
- const name = INSTALL_METADATA[metadata];
38429
- return {
38430
- name,
38431
- agent: name === "yarn" ? isMetadataYarnClassic(metadata) ? "yarn" : "yarn@berry" : name
38432
- };
38433
- }
36758
+ case "install-metadata": for (const metadata of Object.keys(INSTALL_METADATA)) {
36759
+ const fileOrDir = metadata.endsWith("/") ? "dir" : "file";
36760
+ if (await pathExists(PATH.join(directory, metadata), fileOrDir)) {
36761
+ const name = INSTALL_METADATA[metadata];
36762
+ return {
36763
+ name,
36764
+ agent: name === "yarn" ? isMetadataYarnClassic(metadata) ? "yarn" : "yarn@berry" : name
36765
+ };
38434
36766
  }
38435
- break;
36767
+ }
38436
36768
  }
38437
36769
  if (stopDir?.(directory)) break;
38438
36770
  }
@@ -38496,7 +36828,7 @@ var init_detect = __esmMin((() => {
38496
36828
  init_constants();
38497
36829
  }));
38498
36830
  //#endregion
38499
- //#region ../../node_modules/.pnpm/publint@0.3.21/node_modules/publint/src/index-node.js
36831
+ //#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/index-node.js
38500
36832
  var index_node_exports = /* @__PURE__ */ __exportAll({ publint: () => publint$1 });
38501
36833
  /**
38502
36834
  * @typedef {T extends string ? T : never} ExtractStringLiteral
@@ -38548,14 +36880,13 @@ async function publint$1(options) {
38548
36880
  * @return {Promise<import('@publint/pack').PackageManager>}
38549
36881
  */
38550
36882
  async function detectPackageManager(pkgDir, pack) {
38551
- let packageManager = pack;
38552
- if (packageManager === "auto") {
36883
+ if (pack === "auto") {
38553
36884
  const { detect } = await Promise.resolve().then(() => (init_detect(), detect_exports));
38554
- let detected = (await detect({ cwd: pkgDir }))?.name ?? "npm";
38555
- if (detected === "deno") detected = "npm";
38556
- packageManager = detected;
36885
+ const detected = (await detect({ cwd: pkgDir }))?.name ?? "npm";
36886
+ if (supportedPackageManagers.includes(detected)) return detected;
36887
+ else return "npm";
38557
36888
  }
38558
- return packageManager;
36889
+ return pack;
38559
36890
  }
38560
36891
  /**
38561
36892
  * @param {string} pkgDir
@@ -38578,7 +36909,77 @@ var init_index_node = __esmMin((() => {
38578
36909
  init_vfs_tarball();
38579
36910
  }));
38580
36911
  //#endregion
38581
- //#region ../../node_modules/.pnpm/publint@0.3.21/node_modules/publint/src/shared/message.js
36912
+ //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
36913
+ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36914
+ let p = process || {};
36915
+ let argv = p.argv || [];
36916
+ let env = p.env || {};
36917
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
36918
+ let formatter = (open, close, replace = open) => (input) => {
36919
+ let string = "" + input, index = string.indexOf(close, open.length);
36920
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
36921
+ };
36922
+ let replaceClose = (string, close, replace, index) => {
36923
+ let result = "", cursor = 0;
36924
+ do {
36925
+ result += string.substring(cursor, index) + replace;
36926
+ cursor = index + close.length;
36927
+ index = string.indexOf(close, cursor);
36928
+ } while (~index);
36929
+ return result + string.substring(cursor);
36930
+ };
36931
+ let createColors = (enabled = isColorSupported) => {
36932
+ let f = enabled ? formatter : () => String;
36933
+ return {
36934
+ isColorSupported: enabled,
36935
+ reset: f("\x1B[0m", "\x1B[0m"),
36936
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
36937
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
36938
+ italic: f("\x1B[3m", "\x1B[23m"),
36939
+ underline: f("\x1B[4m", "\x1B[24m"),
36940
+ inverse: f("\x1B[7m", "\x1B[27m"),
36941
+ hidden: f("\x1B[8m", "\x1B[28m"),
36942
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
36943
+ black: f("\x1B[30m", "\x1B[39m"),
36944
+ red: f("\x1B[31m", "\x1B[39m"),
36945
+ green: f("\x1B[32m", "\x1B[39m"),
36946
+ yellow: f("\x1B[33m", "\x1B[39m"),
36947
+ blue: f("\x1B[34m", "\x1B[39m"),
36948
+ magenta: f("\x1B[35m", "\x1B[39m"),
36949
+ cyan: f("\x1B[36m", "\x1B[39m"),
36950
+ white: f("\x1B[37m", "\x1B[39m"),
36951
+ gray: f("\x1B[90m", "\x1B[39m"),
36952
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
36953
+ bgRed: f("\x1B[41m", "\x1B[49m"),
36954
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
36955
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
36956
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
36957
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
36958
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
36959
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
36960
+ blackBright: f("\x1B[90m", "\x1B[39m"),
36961
+ redBright: f("\x1B[91m", "\x1B[39m"),
36962
+ greenBright: f("\x1B[92m", "\x1B[39m"),
36963
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
36964
+ blueBright: f("\x1B[94m", "\x1B[39m"),
36965
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
36966
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
36967
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
36968
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
36969
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
36970
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
36971
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
36972
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
36973
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
36974
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
36975
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
36976
+ };
36977
+ };
36978
+ module.exports = createColors();
36979
+ module.exports.createColors = createColors;
36980
+ }));
36981
+ //#endregion
36982
+ //#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/message.js
38582
36983
  /** @type {import('../utils.d.ts').formatMessage} */
38583
36984
  function formatMessage(m, pkg, opts = {}) {
38584
36985
  const h = getHighlighter(opts.color);
@@ -38720,7 +37121,6 @@ function getHighlighter(color) {
38720
37121
  default:
38721
37122
  bold = (s) => import_picocolors.default.bold(s);
38722
37123
  warn = (s) => import_picocolors.default.yellow(s);
38723
- break;
38724
37124
  }
38725
37125
  return {
38726
37126
  bold,
@@ -38743,7 +37143,7 @@ var init_message = __esmMin((() => {
38743
37143
  EMPTY_MSG = "<empty>";
38744
37144
  }));
38745
37145
  //#endregion
38746
- //#region ../../node_modules/.pnpm/publint@0.3.21/node_modules/publint/src/utils.js
37146
+ //#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/utils.js
38747
37147
  var utils_exports = /* @__PURE__ */ __exportAll({
38748
37148
  formatMessage: () => formatMessage,
38749
37149
  formatMessagePath: () => formatMessagePath,
@@ -39136,7 +37536,8 @@ function readWorkspacePackageJson(cwd, location) {
39136
37536
  }
39137
37537
  }
39138
37538
  function writeWorkspacePackageJson(cwd, location, pkg) {
39139
- writeFileSync(PATH.resolve(cwd, location, "package.json"), `${JSON.stringify(pkg, null, 2)}\n`, "utf8");
37539
+ const pkgPath = PATH.resolve(cwd, location, "package.json");
37540
+ writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`, "utf8");
39140
37541
  }
39141
37542
  function buildWorkspaceVersionMap(cwd, workspaces) {
39142
37543
  const map = /* @__PURE__ */ new Map();
@@ -39475,11 +37876,13 @@ const publintSingle = async ({ cliExclude, cliInclude, fix, pack, pkg, verbose }
39475
37876
  const wsPublintConfig = normalizePublintConfig(await loadWorkspaceCommandConfig(workspace.location, "publint"));
39476
37877
  const resolvedRules = resolveRulesOrReport(wsPublintConfig, cliExclude, cliInclude);
39477
37878
  if (!resolvedRules) return resultFromExitCode(1);
37879
+ const exclude = offChecks(resolvedRules);
37880
+ const shouldPack = pack ?? wsPublintConfig.pack ?? true;
39478
37881
  const result = await packagePublintDetailed({
39479
- exclude: offChecks(resolvedRules),
37882
+ exclude,
39480
37883
  ruleLevels: resolvedRules,
39481
37884
  shouldFix: fix,
39482
- shouldPack: pack ?? wsPublintConfig.pack ?? true,
37885
+ shouldPack,
39483
37886
  pkgDir: workspace.location,
39484
37887
  verbose
39485
37888
  });
@@ -39846,9 +38249,10 @@ const cleanPackage = async ({ fullMode = "none", pkg }) => {
39846
38249
  if (fullMode === "none") return runStepsAsync(`Clean [${pkg}]`, [pm.runInWorkspace(pkg, "package-clean")]);
39847
38250
  const rootDir = INIT_CWD();
39848
38251
  const workspace = pm.listWorkspaces().find((entry) => entry.name === pkg || entry.location === pkg);
38252
+ const packagePath = workspace === void 0 ? PATH.resolve(rootDir, pkg) : PATH.resolve(rootDir, workspace.location);
39849
38253
  return packageClean({
39850
38254
  fullMode,
39851
- pkg: workspace === void 0 ? PATH.resolve(rootDir, pkg) : PATH.resolve(rootDir, workspace.location),
38255
+ pkg: packagePath,
39852
38256
  pkgName: workspace?.name ?? pkg,
39853
38257
  rootDir: PATH.resolve(rootDir)
39854
38258
  });
@@ -42009,7 +40413,8 @@ function deploy(level = "patch") {
42009
40413
  //#endregion
42010
40414
  //#region src/actions/eject.ts
42011
40415
  const eject = () => {
42012
- return runSteps("Eject", [[getPackageManager().command, "react-scripts eject"]]);
40416
+ const pm = getPackageManager();
40417
+ return runSteps("Eject", [[pm.command, "react-scripts eject"]]);
42013
40418
  };
42014
40419
  //#endregion
42015
40420
  //#region src/actions/fix.ts
@@ -42119,7 +40524,8 @@ function gitignore() {
42119
40524
  const gitignorePath = `${cwd}/.gitignore`;
42120
40525
  try {
42121
40526
  const templateContent = gitignoreTemplate();
42122
- writeLines(gitignorePath, mergeWithTemplate(readNonEmptyLines(gitignorePath), templateContent));
40527
+ const merged = mergeWithTemplate(readNonEmptyLines(gitignorePath), templateContent);
40528
+ writeLines(gitignorePath, merged);
42123
40529
  console.log(chalk.green(" Root .gitignore updated"));
42124
40530
  const removed = removePackageGitignores(cwd);
42125
40531
  if (removed > 0) console.log(chalk.green(` Removed ${removed} package .gitignore file(s)`));
@@ -42455,7 +40861,8 @@ function setLintConfigValue(cwd, setting, value) {
42455
40861
  console.log(chalk.gray(`type-checked is already ${isEnabled ? "enabled" : "disabled"}`));
42456
40862
  return 0;
42457
40863
  }
42458
- writeFileSync(configPath, applyTypeCheckedSetting(source, isEnabled), "utf8");
40864
+ const nextSource = applyTypeCheckedSetting(source, isEnabled);
40865
+ writeFileSync(configPath, nextSource, "utf8");
42459
40866
  console.log(chalk.green(`Updated ${configPath}: type-checked ${isEnabled ? "enabled" : "disabled"}`));
42460
40867
  return 0;
42461
40868
  }
@@ -42635,7 +41042,8 @@ function fixGitignoreConfig(eslintConfigPath) {
42635
41042
  return true;
42636
41043
  }
42637
41044
  function fixConfigMismatch(eslintConfigPath, configDir, source, sharedPkg, expectedPkg) {
42638
- writeFileSync(eslintConfigPath, source.replaceAll(sharedPkg, () => expectedPkg), "utf8");
41045
+ const updated = source.replaceAll(sharedPkg, () => expectedPkg);
41046
+ writeFileSync(eslintConfigPath, updated, "utf8");
42639
41047
  console.log(chalk.green(`Fixed: replaced ${sharedPkg} with ${expectedPkg}`));
42640
41048
  const packageJsonPath = PATH.resolve(configDir, "package.json");
42641
41049
  if (!existsSync(packageJsonPath)) return;
@@ -43428,7 +41836,8 @@ function readRootPackageJson(cwd) {
43428
41836
  return JSON.parse(raw);
43429
41837
  }
43430
41838
  function writeRootPackageJson(cwd, pkg) {
43431
- writeFileSync(PATH.resolve(cwd, "package.json"), `${JSON.stringify(pkg, null, 2)}\n`, "utf8");
41839
+ const path = PATH.resolve(cwd, "package.json");
41840
+ writeFileSync(path, `${JSON.stringify(pkg, null, 2)}\n`, "utf8");
43432
41841
  }
43433
41842
  function isMonorepo(pkg, cwd) {
43434
41843
  const workspaces = pkg.workspaces;
@@ -44892,7 +43301,8 @@ const publish = ({ chunkSize = 0, isVerbose = false } = {}) => {
44892
43301
  verbose: isVerbose
44893
43302
  });
44894
43303
  if (chunkSize > 0 && steps.length > 1) console.warn(chalk.yellow(`Publish: chunking enabled (chunkSize=${chunkSize}, ${steps.length} chunks). Each chunk is a fresh package-manager process — if your registry requires interactive 2FA per publish, expect one auth prompt per chunk.`));
44895
- return runSteps("Publish", steps, true, steps.length > 1 ? steps.map((_, i) => `Publish chunk ${i + 1}/${steps.length}`) : void 0);
43304
+ const messages = steps.length > 1 ? steps.map((_, i) => `Publish chunk ${i + 1}/${steps.length}`) : void 0;
43305
+ return runSteps("Publish", steps, true, messages);
44896
43306
  };
44897
43307
  //#endregion
44898
43308
  //#region src/actions/rebuild.ts
@@ -44963,7 +43373,8 @@ const recompileAll = async ({ jobs, validator, verbose }) => {
44963
43373
  const reinstall = (isVerbose) => {
44964
43374
  const cleanResult = packmanClean({ isVerbose });
44965
43375
  if (cleanResult !== 0) return cleanResult;
44966
- return runSteps("Reinstall", [getPackageManager().install()]);
43376
+ const pm = getPackageManager();
43377
+ return runSteps("Reinstall", [pm.install()]);
44967
43378
  };
44968
43379
  //#endregion
44969
43380
  //#region src/actions/relint.ts
@@ -46416,7 +44827,6 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46416
44827
  r = v;
46417
44828
  g = wh;
46418
44829
  b = n;
46419
- break;
46420
44830
  }
46421
44831
  return [
46422
44832
  r * 255,
@@ -51236,7 +49646,7 @@ function formatRuleTable(rules) {
51236
49646
  }));
51237
49647
  const hasWeight = rows.some((row) => row.weight.length > 0);
51238
49648
  const widths = resolveRuleTableWidths(rows, hasWeight);
51239
- return (0, import_src.table)([[
49649
+ const data = [[
51240
49650
  chalk.gray.bold("Level"),
51241
49651
  chalk.gray.bold("Rule"),
51242
49652
  chalk.gray.bold("Fix"),
@@ -51248,7 +49658,8 @@ function formatRuleTable(rules) {
51248
49658
  chalk.gray(row.fix),
51249
49659
  ...hasWeight ? [chalk.gray(row.weight)] : [],
51250
49660
  chalk.gray(row.description)
51251
- ])], ruleTableConfig(widths, hasWeight)).trimEnd().split("\n").map((line) => ` ${line}`).join("\n");
49661
+ ])];
49662
+ return (0, import_src.table)(data, ruleTableConfig(widths, hasWeight)).trimEnd().split("\n").map((line) => ` ${line}`).join("\n");
51252
49663
  }
51253
49664
  function renderRuleCatalog(rules, title = "Rules") {
51254
49665
  console.log(chalk.bold(title));
@@ -51403,31 +49814,58 @@ const argvAfterCommand = (command) => {
51403
49814
  };
51404
49815
  //#endregion
51405
49816
  //#region src/actions/skills/defaults.ts
49817
+ /** Source of truth for xy-development, xy-toolchain, and ariestools-sdk. */
49818
+ const ARIESTOOLS_SKILLS_SOURCE = "ariestools/ariestools-skills";
49819
+ /** Source of truth for xyo-knowledge and xl1-* skills. */
51406
49820
  const XYO_SKILLS_SOURCE = "XYOracleNetwork/xyo-skills";
51407
- const XYO_DEFAULT_SKILLS = [
49821
+ const ARIESTOOLS_SKILLS = [
49822
+ "ariestools-sdk",
49823
+ "xy-development",
49824
+ "xy-toolchain"
49825
+ ];
49826
+ const XYO_STACK_SKILLS = [
51408
49827
  "xl1-build",
51409
49828
  "xl1-knowledge",
51410
49829
  "xl1-patterns",
51411
49830
  "xl1-scaffold",
51412
- "xy-development",
51413
- "xy-toolchain",
51414
49831
  "xyo-knowledge"
51415
49832
  ];
49833
+ /** All skills managed by `xy skills` conveniences (both sources). */
49834
+ const XYO_DEFAULT_SKILLS = [...ARIESTOOLS_SKILLS, ...XYO_STACK_SKILLS];
51416
49835
  const AGENT_FLAGS = /* @__PURE__ */ new Set(["-a", "--agent"]);
51417
49836
  const hasSkillsAgentFlag = (args) => {
51418
49837
  return args.some((arg) => AGENT_FLAGS.has(arg) || arg.startsWith("--agent="));
51419
49838
  };
51420
- const skillsDefaultsArgs = (args) => {
49839
+ /**
49840
+ * Returns install argument plans for `xy skills defaults`.
49841
+ * Aries Tools base skills install from ariestools-skills; XYO/XL1 skills from xyo-skills.
49842
+ */
49843
+ const skillsDefaultsInstallPlans = (args) => {
51421
49844
  const installSelector = hasSkillsAgentFlag(args) ? ["--skill", "*"] : ["--all"];
51422
- return [
51423
- "add",
51424
- XYO_SKILLS_SOURCE,
51425
- ...installSelector,
51426
- ...args
51427
- ];
49845
+ const xyoSelector = XYO_STACK_SKILLS.flatMap((skill) => ["--skill", skill]);
49846
+ return [{
49847
+ selector: installSelector,
49848
+ source: ARIESTOOLS_SKILLS_SOURCE
49849
+ }, {
49850
+ selector: xyoSelector,
49851
+ source: XYO_SKILLS_SOURCE
49852
+ }];
51428
49853
  };
51429
- const skillsDefaults = (args) => {
51430
- return runSkills(skillsDefaultsArgs(args));
49854
+ const skillSourceForName = (skillName) => {
49855
+ if (ARIESTOOLS_SKILLS.includes(skillName)) return ARIESTOOLS_SKILLS_SOURCE;
49856
+ return XYO_SKILLS_SOURCE;
49857
+ };
49858
+ const skillsDefaults = async (args) => {
49859
+ for (const plan of skillsDefaultsInstallPlans(args)) {
49860
+ const code = await runSkills([
49861
+ "add",
49862
+ plan.source,
49863
+ ...plan.selector,
49864
+ ...args
49865
+ ]);
49866
+ if (code !== 0) return code;
49867
+ }
49868
+ return 0;
51431
49869
  };
51432
49870
  //#endregion
51433
49871
  //#region src/actions/skills/detectProfile.ts
@@ -51441,6 +49879,26 @@ const LEGACY_TOOLCHAIN_PACKAGES = /* @__PURE__ */ new Set([
51441
49879
  "@xylabs/ts-scripts-react-yarn3",
51442
49880
  "@xylabs/ts-scripts-common"
51443
49881
  ]);
49882
+ /**
49883
+ * Published packages from the ariestools/sdk-js monorepo.
49884
+ * Presence (import or produce) requires the `ariestools-sdk` skill.
49885
+ * Toolchain/config packages (@ariestools/toolchain, tsconfig, ESLint, vitest-config, …) are excluded.
49886
+ */
49887
+ const ARIESTOOLS_SDK_JS_PACKAGES = /* @__PURE__ */ new Set([
49888
+ "@ariestools/crypto",
49889
+ "@ariestools/crypto-auth",
49890
+ "@ariestools/eth-address",
49891
+ "@ariestools/express",
49892
+ "@ariestools/json-rpc-engine",
49893
+ "@ariestools/pixel",
49894
+ "@ariestools/sdk",
49895
+ "@ariestools/sdk-meta",
49896
+ "@ariestools/storage-adapters",
49897
+ "@ariestools/telemetry",
49898
+ "@ariestools/testing",
49899
+ "@ariestools/threads",
49900
+ "@ariestools/threads-test"
49901
+ ]);
51444
49902
  const XY_ECOSYSTEM_SCOPES = [
51445
49903
  XYLABS_SCOPE,
51446
49904
  ARIESTOOLS_SCOPE,
@@ -51466,13 +49924,17 @@ const isTrackedImportScope = (scope) => {
51466
49924
  const hasToolchainDependency = (depName) => {
51467
49925
  return depName === "@ariestools/toolchain" || depName === "@xylabs/toolchain" || LEGACY_TOOLCHAIN_PACKAGES.has(depName);
51468
49926
  };
49927
+ const isAriestoolsSdkJsPackage = (name) => {
49928
+ return ARIESTOOLS_SDK_JS_PACKAGES.has(name);
49929
+ };
51469
49930
  const isUsingXyScripts = (scripts) => {
51470
49931
  if (!scripts) return false;
51471
49932
  return Object.values(scripts).some((script) => /\bxy\b/.test(script));
51472
49933
  };
51473
49934
  const hasXyConfig = (cwd, workspaces) => {
51474
49935
  return [".", ...workspaces.map((ws) => ws.location)].some((location) => {
51475
- return existsSync(PATH.resolve(cwd, location, "xy.config.ts"));
49936
+ const configPath = PATH.resolve(cwd, location, "xy.config.ts");
49937
+ return existsSync(configPath);
51476
49938
  });
51477
49939
  };
51478
49940
  const resolveTier = (produces, imports, isUsingToolchain) => {
@@ -51542,13 +50004,18 @@ const detectRepoProfile = (cwd) => {
51542
50004
  const produced = collectProduces(cwd, workspaces);
51543
50005
  const imported = collectImports(declaredDeps);
51544
50006
  const toolchain = detectToolchainUsage(cwd, workspaces, declaredDeps);
50007
+ const allPackages = [...produced.produces, ...imported.imports];
50008
+ const isUsingAriestoolsSdk = allPackages.some(isAriestoolsSdkJsPackage);
50009
+ const sdkSignals = isUsingAriestoolsSdk ? allPackages.filter(isAriestoolsSdkJsPackage).toSorted((a, b) => a.localeCompare(b)).map((name) => `sdk-js ${name}`) : [];
51545
50010
  const signals = [
51546
50011
  ...produced.signals,
51547
50012
  ...imported.signals,
51548
- ...toolchain.signals
50013
+ ...toolchain.signals,
50014
+ ...sdkSignals
51549
50015
  ].toSorted((a, b) => a.localeCompare(b));
51550
50016
  return {
51551
50017
  imports: imported.imports.toSorted((a, b) => a.localeCompare(b)),
50018
+ isUsingAriestoolsSdk,
51552
50019
  produces: produced.produces.toSorted((a, b) => a.localeCompare(b)),
51553
50020
  signals,
51554
50021
  tier: resolveTier(produced.produces, imported.imports, toolchain.isUsingToolchain),
@@ -51603,6 +50070,23 @@ const listSkillDirsAt = (root) => {
51603
50070
  //#endregion
51604
50071
  //#region src/actions/skills/skillRules.ts
51605
50072
  const XYO_SKILL_NAMES = [...XYO_DEFAULT_SKILLS];
50073
+ const SKILL_ORDER = [
50074
+ "xy-development",
50075
+ "xy-toolchain",
50076
+ "ariestools-sdk",
50077
+ "xyo-knowledge",
50078
+ "xl1-knowledge",
50079
+ "xl1-patterns",
50080
+ "xl1-scaffold",
50081
+ "xl1-build"
50082
+ ];
50083
+ const skillOrderIndex = (name) => {
50084
+ const index = SKILL_ORDER.indexOf(name);
50085
+ return index === -1 ? SKILL_ORDER.length : index;
50086
+ };
50087
+ const sortSkills = (skills) => {
50088
+ return [...skills].toSorted((a, b) => skillOrderIndex(a) - skillOrderIndex(b) || a.localeCompare(b));
50089
+ };
51606
50090
  const XY_SKILLS = ["xy-development", "xy-toolchain"];
51607
50091
  const XYO_SKILLS = ["xyo-knowledge"];
51608
50092
  const XL1_SKILLS = ["xl1-knowledge", "xl1-patterns"];
@@ -51620,6 +50104,21 @@ const requiredSkillsForTier = (tier) => {
51620
50104
  if (tier === "none") return [];
51621
50105
  return TIER_REQUIRED_SKILLS[tier];
51622
50106
  };
50107
+ /**
50108
+ * Required skills for a detected repo profile.
50109
+ * Adds `ariestools-sdk` when the repo depends on or produces packages from ariestools/sdk-js.
50110
+ */
50111
+ const requiredSkillsForProfile = (profile) => {
50112
+ const base = requiredSkillsForTier(profile.tier);
50113
+ if (!profile.isUsingAriestoolsSdk) return base;
50114
+ if (base.length === 0) return sortSkills([
50115
+ "xy-development",
50116
+ "xy-toolchain",
50117
+ "ariestools-sdk"
50118
+ ]);
50119
+ if (base.includes("ariestools-sdk")) return base;
50120
+ return sortSkills([...base, "ariestools-sdk"]);
50121
+ };
51623
50122
  const optionalSkillsForTier = (tier) => {
51624
50123
  if (tier !== "xl1") return [];
51625
50124
  return XL1_OPTIONAL_SKILLS;
@@ -51627,16 +50126,16 @@ const optionalSkillsForTier = (tier) => {
51627
50126
  const isXyoSkillName = (name) => {
51628
50127
  return XYO_SKILL_NAMES.includes(name);
51629
50128
  };
51630
- const unnecessarySkillsForTier = (tier, installed) => {
51631
- const required = new Set(requiredSkillsForTier(tier));
51632
- const optional = new Set(optionalSkillsForTier(tier));
50129
+ const unnecessarySkillsForProfile = (profile, installed) => {
50130
+ const required = new Set(requiredSkillsForProfile(profile));
50131
+ const optional = new Set(optionalSkillsForTier(profile.tier));
51633
50132
  return installed.filter(isXyoSkillName).filter((name) => !required.has(name) && !optional.has(name)).toSorted((a, b) => a.localeCompare(b));
51634
50133
  };
51635
50134
  //#endregion
51636
50135
  //#region src/actions/skills/versions.ts
51637
50136
  const VERSION_PATTERN = /metadata:\s*\n(?:[ \t]+[^\n]+\n)*?[ \t]+version:\s*([^\s#]+)/;
51638
50137
  const upstreamSkillUrl = (skillName) => {
51639
- return `https://raw.githubusercontent.com/${XYO_SKILLS_SOURCE}/main/skills/${skillName}/SKILL.md`;
50138
+ return `https://raw.githubusercontent.com/${skillSourceForName(skillName)}/main/skills/${skillName}/SKILL.md`;
51640
50139
  };
51641
50140
  const parseSkillVersion = (content) => {
51642
50141
  return VERSION_PATTERN.exec(content)?.[1]?.trim();
@@ -51694,13 +50193,14 @@ const logInfo = (message) => {
51694
50193
  const installMissingSkill = async (skillName) => {
51695
50194
  return runSkills([
51696
50195
  "add",
51697
- XYO_SKILLS_SOURCE,
50196
+ skillSourceForName(skillName),
51698
50197
  "--skill",
51699
50198
  skillName,
51700
50199
  "-y"
51701
50200
  ]);
51702
50201
  };
51703
50202
  const missingSkillReason = (profile, skillName) => {
50203
+ if (skillName === "ariestools-sdk" && profile.isUsingAriestoolsSdk) return "repo uses packages from ariestools/sdk-js";
51704
50204
  if (skillName === "xy-toolchain" && profile.isUsingToolchain) return "repo uses @ariestools/toolchain";
51705
50205
  return "required for repo profile";
51706
50206
  };
@@ -51737,7 +50237,8 @@ const checkRequiredSkills = (required, installed, latestVersions, profile, isOff
51737
50237
  };
51738
50238
  };
51739
50239
  const findDuplicateSkills = (cwd, globalDir) => {
51740
- const projectSkills = listSkillDirsAt(PATH.resolve(cwd, ".claude", "skills"));
50240
+ const projectClaudeDir = PATH.resolve(cwd, ".claude", "skills");
50241
+ const projectSkills = listSkillDirsAt(projectClaudeDir);
51741
50242
  const globalSkills = new Set(listSkillDirsAt(globalDir));
51742
50243
  return projectSkills.filter((name) => globalSkills.has(name)).toSorted((a, b) => a.localeCompare(b));
51743
50244
  };
@@ -51757,7 +50258,7 @@ const collectSkillNamesToCheck = (required, installed) => {
51757
50258
  };
51758
50259
  const collectUnnecessarySkills = (profile, installed) => {
51759
50260
  const installedNames = installed.keys().toArray();
51760
- return unnecessarySkillsForTier(profile.tier, installedNames);
50261
+ return unnecessarySkillsForProfile(profile, installedNames);
51761
50262
  };
51762
50263
  const skillDiagnostics = (rule, messages) => {
51763
50264
  return messages.map((message) => ({
@@ -51825,7 +50326,7 @@ const skillsLint = async (options = {}) => {
51825
50326
  const isOffline = options.isOffline === true;
51826
50327
  const isStrict = options.isStrict === true || options.strict === true;
51827
50328
  const profile = detectRepoProfile(cwd);
51828
- const required = requiredSkillsForTier(profile.tier);
50329
+ const required = requiredSkillsForProfile(profile);
51829
50330
  const optional = optionalSkillsForTier(profile.tier);
51830
50331
  const installed = scanInstalledSkills(cwd, projectDirs);
51831
50332
  logProfileHeader(profile);
@@ -53091,7 +51592,8 @@ function logWorkDiagnostic(diagnostic) {
53091
51592
  }
53092
51593
  const resolveLintRepos = (options) => {
53093
51594
  if (isWorkspaceScope(options)) return resolveWorkRepos(options).filter((repo) => repo.hasStore);
53094
- return resolveWorkRepos({ cwd: PATH.resolve(options.cwd ?? process.cwd()) }).filter((repo) => repo.hasStore);
51595
+ const cwd = PATH.resolve(options.cwd ?? process.cwd());
51596
+ return resolveWorkRepos({ cwd }).filter((repo) => repo.hasStore);
53095
51597
  };
53096
51598
  const workLint = async (options = {}) => {
53097
51599
  const repos = resolveLintRepos(options);
@@ -53523,7 +52025,8 @@ const sonar = () => {
53523
52025
  //#endregion
53524
52026
  //#region src/actions/start.ts
53525
52027
  const start = () => {
53526
- return runSteps("Start", [[getPackageManager().command, "react-scripts start"]]);
52028
+ const pm = getPackageManager();
52029
+ return runSteps("Start", [[pm.command, "react-scripts start"]]);
53527
52030
  };
53528
52031
  //#endregion
53529
52032
  //#region src/actions/statics.ts
@@ -53552,7 +52055,8 @@ const test = ({ target } = {}) => {
53552
52055
  //#endregion
53553
52056
  //#region src/actions/up.ts
53554
52057
  const up = () => {
53555
- return runSteps("Up", [getPackageManager().outdated()]);
52058
+ const pm = getPackageManager();
52059
+ return runSteps("Up", [pm.outdated()]);
53556
52060
  };
53557
52061
  //#endregion
53558
52062
  //#region src/actions/updo.ts
@@ -53630,7 +52134,8 @@ const insertInlineWorkMarker = ({ cwd, filePath, id, line, marker }) => {
53630
52134
  const original = readFileSync(absolutePath, "utf8");
53631
52135
  if (original.includes(markerText)) return relativePath;
53632
52136
  if (line === void 0) {
53633
- writeFileSync(absolutePath, `${original}${original.endsWith("\n") || original.length === 0 ? "" : "\n"}${markerText}\n`, "utf8");
52137
+ const separator = original.endsWith("\n") || original.length === 0 ? "" : "\n";
52138
+ writeFileSync(absolutePath, `${original}${separator}${markerText}\n`, "utf8");
53634
52139
  return relativePath;
53635
52140
  }
53636
52141
  const lines = original.split("\n");
@@ -53789,7 +52294,7 @@ const formatWorkTable = (items, formula, options = {}) => {
53789
52294
  const showRepo = options.showRepo === true;
53790
52295
  const rows = items.map((item) => toRow(item, formula));
53791
52296
  const widths = resolveWorkTableWidths(rows, showRepo);
53792
- return (0, import_src.table)([showRepo ? [
52297
+ const data = [showRepo ? [
53793
52298
  chalk.gray.bold("ID"),
53794
52299
  chalk.gray.bold("Repo"),
53795
52300
  chalk.gray.bold("Status"),
@@ -53819,7 +52324,8 @@ const formatWorkTable = (items, formula, options = {}) => {
53819
52324
  chalk.gray(row.score),
53820
52325
  chalk.gray(row.area),
53821
52326
  chalk.white(row.title)
53822
- ])], workTableConfig(widths, showRepo)).trimEnd();
52327
+ ])];
52328
+ return (0, import_src.table)(data, workTableConfig(widths, showRepo)).trimEnd();
53823
52329
  };
53824
52330
  const printWorkItemsTable = (items, formula, options = {}) => {
53825
52331
  if (isJsonMode()) return;
@@ -53874,7 +52380,8 @@ const loadWorkspaceWithGithub = (options, scoped) => {
53874
52380
  const github = resolveGithubBridge(config, repoCwd, options.github);
53875
52381
  if (github === void 0) continue;
53876
52382
  try {
53877
- const external = listExternalGithubWorkItems(repoCwd, localScoped.map(stripScope), github);
52383
+ const localItems = localScoped.map(stripScope);
52384
+ const external = listExternalGithubWorkItems(repoCwd, localItems, github);
53878
52385
  const repoName = localScoped[0]?.repo ?? PATH.basename(repoCwd);
53879
52386
  for (const item of external) combined.push({
53880
52387
  ...item,
@@ -53896,17 +52403,21 @@ const loadScopedItemsWithOptionalGithub = (options) => {
53896
52403
  return loadWorkspaceWithGithub(options, scoped);
53897
52404
  };
53898
52405
  const workList = (options = {}) => {
53899
- const items = selectScopedWorkItems(loadScopedItemsWithOptionalGithub(options), {
52406
+ const combined = loadScopedItemsWithOptionalGithub(options);
52407
+ const items = selectScopedWorkItems(combined, {
53900
52408
  sort: options.sort,
53901
52409
  status: options.status,
53902
52410
  type: options.type
53903
52411
  });
53904
52412
  const showRepo = isWorkspaceScope(options);
53905
- printWorkItemsTable(items, items[0]?.formula ?? "impact + urgency + risk + confidence - effort", { showRepo });
53906
- return cleanResult({ items: items.map((item) => toListedItem(item, showRepo)) });
52413
+ const formula = items[0]?.formula ?? "impact + urgency + risk + confidence - effort";
52414
+ printWorkItemsTable(items, formula, { showRepo });
52415
+ const listed = items.map((item) => toListedItem(item, showRepo));
52416
+ return cleanResult({ items: listed });
53907
52417
  };
53908
52418
  const workShow = (options) => {
53909
- const payload = toListedItem(resolveScopedWorkItem(options.id, scopeFrom(options)), isWorkspaceScope(options));
52419
+ const item = resolveScopedWorkItem(options.id, scopeFrom(options));
52420
+ const payload = toListedItem(item, isWorkspaceScope(options));
53910
52421
  xyLog(JSON.stringify(payload, null, 2));
53911
52422
  return cleanResult({ item: payload });
53912
52423
  };
@@ -53916,8 +52427,10 @@ const needsTriage = (item) => {
53916
52427
  const workTriage = (options = {}) => {
53917
52428
  const items = listScopedWorkItems(scopeFrom(options)).filter(needsTriage);
53918
52429
  const showRepo = isWorkspaceScope(options);
53919
- printWorkItemsTable(items, items[0]?.formula ?? "impact + urgency + risk + confidence - effort", { showRepo });
53920
- return cleanResult({ items: items.map((item) => toListedItem(item, showRepo)) });
52430
+ const formula = items[0]?.formula ?? "impact + urgency + risk + confidence - effort";
52431
+ printWorkItemsTable(items, formula, { showRepo });
52432
+ const listed = items.map((item) => toListedItem(item, showRepo));
52433
+ return cleanResult({ items: listed });
53921
52434
  };
53922
52435
  //#endregion
53923
52436
  //#region src/actions/work/move.ts
@@ -53944,7 +52457,8 @@ const withGithubLink = (item, number, url) => {
53944
52457
  const warnMissingAnchors = (item, destCwd) => {
53945
52458
  for (const anchor of item.anchors) {
53946
52459
  if (anchor.kind !== "file") continue;
53947
- if (!existsSync(PATH.resolve(destCwd, anchor.path))) xyLog(`Warning: anchor path missing in destination: ${anchor.path}`);
52460
+ const absolute = PATH.resolve(destCwd, anchor.path);
52461
+ if (!existsSync(absolute)) xyLog(`Warning: anchor path missing in destination: ${anchor.path}`);
53948
52462
  }
53949
52463
  };
53950
52464
  const cloneItemForMove = (source, updatedAt) => ({
@@ -53983,12 +52497,14 @@ const closeSourceGithubIssue = (source, sourceGithub, sourceNumber, sourceUrl, d
53983
52497
  }
53984
52498
  };
53985
52499
  const recreateGithubOnMove = (source, dest, moved, options, sourceNumber) => {
53986
- const destGithub = resolveGithubBridge(readWorkConfig(dest.cwd), dest.cwd, options.github);
52500
+ const destConfig = readWorkConfig(dest.cwd);
52501
+ const destGithub = resolveGithubBridge(destConfig, dest.cwd, options.github);
53987
52502
  if (destGithub === void 0) {
53988
52503
  xyLog("Warning: destination GitHub unavailable; stripped GitHub link (run xy work sync later)");
53989
52504
  return stripGithubStore(moved);
53990
52505
  }
53991
- const sourceGithub = resolveGithubBridge(readWorkConfig(source.repoCwd), source.repoCwd, options.github);
52506
+ const sourceConfig = readWorkConfig(source.repoCwd);
52507
+ const sourceGithub = resolveGithubBridge(sourceConfig, source.repoCwd, options.github);
53992
52508
  const sourceUrl = readGithubStoreUrl(source.stores);
53993
52509
  try {
53994
52510
  const ref = destGithub.createIssue(dest.cwd, stripGithubStore(moved));
@@ -54947,7 +53463,9 @@ const hasHelpFlag = (args) => args.some((arg) => HELP_FLAGS.has(arg));
54947
53463
  const printDefaultsHelp = () => {
54948
53464
  console.log(`xy skills defaults
54949
53465
 
54950
- Install the XY/XYO/XL1 default skill stack from XYOracleNetwork/xyo-skills.
53466
+ Install the default skill stacks:
53467
+ - ariestools/ariestools-skills (xy-development, xy-toolchain, ariestools-sdk)
53468
+ - XYOracleNetwork/xyo-skills (xyo-knowledge, xl1-*)
54951
53469
 
54952
53470
  Usage:
54953
53471
  xy skills defaults [options]
@@ -54975,7 +53493,7 @@ const parseLintArgs = (args) => {
54975
53493
  const printLintHelp = () => {
54976
53494
  console.log(`xy skills lint
54977
53495
 
54978
- Verify project-local xyo-skills match the repo profile, are up to date, and
53496
+ Verify project-local skills match the repo profile, are up to date, and
54979
53497
  are not duplicated in global scope.
54980
53498
 
54981
53499
  Usage:
@@ -54983,8 +53501,11 @@ Usage:
54983
53501
 
54984
53502
  Checks:
54985
53503
  - Detect repo tier (xy, xyo, xl1) from package.json and toolchain signals
53504
+ - Require ariestools-sdk when packages from ariestools/sdk-js are used
54986
53505
  - Required skills installed in .claude/skills and/or .agents/skills
54987
- - Installed skill versions vs XYOracleNetwork/xyo-skills main
53506
+ - Installed skill versions vs upstream main
53507
+ (ariestools/ariestools-skills for xy/ariestools-sdk skills;
53508
+ XYOracleNetwork/xyo-skills for xyo/xl1 skills)
54988
53509
  - Project/global duplicate installs
54989
53510
 
54990
53511
  Options:
@@ -57310,16 +55831,16 @@ var import_emoji_regex = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(
57310
55831
  return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
57311
55832
  };
57312
55833
  })))(), 1);
57313
- const segmenter = new Intl.Segmenter();
55834
+ const segmenter$1 = new Intl.Segmenter();
57314
55835
  const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
57315
- function stringWidth(string, options = {}) {
55836
+ function stringWidth$1(string, options = {}) {
57316
55837
  if (typeof string !== "string" || string.length === 0) return 0;
57317
55838
  const { ambiguousIsNarrow = true, countAnsiEscapeCodes = false } = options;
57318
55839
  if (!countAnsiEscapeCodes) string = stripAnsi(string);
57319
55840
  if (string.length === 0) return 0;
57320
55841
  let width = 0;
57321
55842
  const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
57322
- for (const { segment: character } of segmenter.segment(string)) {
55843
+ for (const { segment: character } of segmenter$1.segment(string)) {
57323
55844
  const codePoint = character.codePointAt(0);
57324
55845
  if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) continue;
57325
55846
  if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) continue;
@@ -57510,14 +56031,14 @@ const ANSI_SGR_TERMINATOR = "m";
57510
56031
  const ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
57511
56032
  const wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
57512
56033
  const wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
57513
- const wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
56034
+ const wordLengths = (string) => string.split(" ").map((character) => stringWidth$1(character));
57514
56035
  const wrapWord = (rows, word, columns) => {
57515
56036
  const characters = [...word];
57516
56037
  let isInsideEscape = false;
57517
56038
  let isInsideLinkEscape = false;
57518
- let visible = stringWidth(stripAnsi(rows.at(-1)));
56039
+ let visible = stringWidth$1(stripAnsi(rows.at(-1)));
57519
56040
  for (const [index, character] of characters.entries()) {
57520
- const characterLength = stringWidth(character);
56041
+ const characterLength = stringWidth$1(character);
57521
56042
  if (visible + characterLength <= columns) rows[rows.length - 1] += character;
57522
56043
  else {
57523
56044
  rows.push(character);
@@ -57548,7 +56069,7 @@ const stringVisibleTrimSpacesRight = (string) => {
57548
56069
  const words = string.split(" ");
57549
56070
  let last = words.length;
57550
56071
  while (last > 0) {
57551
- if (stringWidth(words[last - 1]) > 0) break;
56072
+ if (stringWidth$1(words[last - 1]) > 0) break;
57552
56073
  last--;
57553
56074
  }
57554
56075
  if (last === words.length) return string;
@@ -57563,7 +56084,7 @@ const exec = (string, columns, options = {}) => {
57563
56084
  let rows = [""];
57564
56085
  for (const [index, word] of string.split(" ").entries()) {
57565
56086
  if (options.trim !== false) rows[rows.length - 1] = rows.at(-1).trimStart();
57566
- let rowLength = stringWidth(rows.at(-1));
56087
+ let rowLength = stringWidth$1(rows.at(-1));
57567
56088
  if (index !== 0) {
57568
56089
  if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
57569
56090
  rows.push("");
@@ -57626,7 +56147,7 @@ function wrapAnsi(string, columns, options) {
57626
56147
  //#region ../../node_modules/.pnpm/cliui@9.0.1/node_modules/cliui/index.mjs
57627
56148
  function ui(opts) {
57628
56149
  return cliui(opts, {
57629
- stringWidth,
56150
+ stringWidth: stringWidth$1,
57630
56151
  stripAnsi,
57631
56152
  wrap: wrapAnsi
57632
56153
  });
@@ -58441,7 +56962,7 @@ yargsParser.camelCase = camelCase;
58441
56962
  yargsParser.decamelize = decamelize;
58442
56963
  yargsParser.looksLikeNumber = looksLikeNumber;
58443
56964
  //#endregion
58444
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/process-argv.js
56965
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/utils/process-argv.js
58445
56966
  function getProcessArgvBinIndex() {
58446
56967
  if (isBundledElectronApp()) return 0;
58447
56968
  return 1;
@@ -58459,6 +56980,116 @@ function getProcessArgvBin() {
58459
56980
  return process.argv[getProcessArgvBinIndex()];
58460
56981
  }
58461
56982
  //#endregion
56983
+ //#region ../../node_modules/.pnpm/string-width@8.2.2/node_modules/string-width/index.js
56984
+ /**
56985
+ Logic:
56986
+ - Segment graphemes to match how terminals render clusters.
56987
+ - Width rules:
56988
+ 1. Skip non-printing clusters (Default_Ignorable, Control, pure nonspacing/enclosing Mark, lone Surrogates). Tabs are ignored by design.
56989
+ 2. RGI emoji clusters (\p{RGI_Emoji}) are double-width.
56990
+ 3. Minimally-qualified/unqualified emoji clusters (ZWJ sequences with 2+ Extended_Pictographic, or keycap sequences) are double-width.
56991
+ 4. Hangul jamo collapse each standard modern Hangul L+V or L+V+T syllable piece to width 2.
56992
+ Unmatched repeated leading/vowel/trailing jamo stay additive because that matches how the terminals we target render them.
56993
+ 5. Otherwise use East Asian Width of the cluster's first visible code point, and add widths for trailing spacing marks and Halfwidth/Fullwidth Forms within the same cluster (e.g., dakuten/handakuten/prolonged sound mark).
56994
+ */
56995
+ const segmenter = new Intl.Segmenter();
56996
+ const zeroWidthClusterRegex = /^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Nonspacing_Mark}|\p{Enclosing_Mark}|\p{Surrogate})+$/v;
56997
+ const leadingNonPrintingRegex = /^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Nonspacing_Mark}\p{Enclosing_Mark}\p{Surrogate}]+/v;
56998
+ const spacingMarkRegex = /\p{Spacing_Mark}/v;
56999
+ const rgiEmojiRegex = /^\p{RGI_Emoji}$/v;
57000
+ const unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
57001
+ const extendedPictographicRegex = /\p{Extended_Pictographic}/gu;
57002
+ function isDoubleWidthNonRgiEmojiSequence(segment) {
57003
+ if (segment.length > 50) return false;
57004
+ if (unqualifiedKeycapRegex.test(segment)) return true;
57005
+ if (segment.includes("‍")) {
57006
+ const pictographics = segment.match(extendedPictographicRegex);
57007
+ return pictographics !== null && pictographics.length >= 2;
57008
+ }
57009
+ return false;
57010
+ }
57011
+ function baseVisible(segment) {
57012
+ return segment.replace(leadingNonPrintingRegex, "");
57013
+ }
57014
+ function isZeroWidthCluster(segment) {
57015
+ return zeroWidthClusterRegex.test(segment);
57016
+ }
57017
+ function isHangulLeadingJamo(codePoint) {
57018
+ return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
57019
+ }
57020
+ function isHangulVowelJamo(codePoint) {
57021
+ return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
57022
+ }
57023
+ function isHangulTrailingJamo(codePoint) {
57024
+ return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
57025
+ }
57026
+ function isHangulJamo(codePoint) {
57027
+ return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
57028
+ }
57029
+ function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
57030
+ const codePoints = [];
57031
+ for (const character of visibleSegment) {
57032
+ if (zeroWidthClusterRegex.test(character)) continue;
57033
+ codePoints.push(character.codePointAt(0));
57034
+ }
57035
+ if (codePoints.length === 0) return;
57036
+ let width = 0;
57037
+ for (let index = 0; index < codePoints.length; index++) {
57038
+ const codePoint = codePoints[index];
57039
+ if (!isHangulJamo(codePoint)) {
57040
+ if (width === 0) return;
57041
+ for (let remaining = index; remaining < codePoints.length; remaining++) width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
57042
+ return width;
57043
+ }
57044
+ if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
57045
+ width += 2;
57046
+ index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
57047
+ continue;
57048
+ }
57049
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
57050
+ }
57051
+ return width;
57052
+ }
57053
+ function trailingWidth(visibleSegment, eastAsianWidthOptions) {
57054
+ let extra = 0;
57055
+ let first = true;
57056
+ for (const character of visibleSegment) {
57057
+ if (first) {
57058
+ first = false;
57059
+ continue;
57060
+ }
57061
+ if (spacingMarkRegex.test(character) || character >= "＀" && character <= "￯") extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
57062
+ }
57063
+ return extra;
57064
+ }
57065
+ function stringWidth(input, options = {}) {
57066
+ if (typeof input !== "string" || input.length === 0) return 0;
57067
+ const { ambiguousIsNarrow = true, countAnsiEscapeCodes = false } = options;
57068
+ let string = input;
57069
+ if (!countAnsiEscapeCodes && (string.includes("\x1B") || string.includes("›"))) string = stripAnsi(string);
57070
+ if (string.length === 0) return 0;
57071
+ if (/^[\u0020-\u007E]*$/.test(string)) return string.length;
57072
+ let width = 0;
57073
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
57074
+ for (const { segment } of segmenter.segment(string)) {
57075
+ if (isZeroWidthCluster(segment)) continue;
57076
+ if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
57077
+ width += 2;
57078
+ continue;
57079
+ }
57080
+ const visibleSegment = baseVisible(segment);
57081
+ const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
57082
+ if (hangulWidth !== void 0) {
57083
+ width += hangulWidth;
57084
+ continue;
57085
+ }
57086
+ const codePoint = visibleSegment.codePointAt(0);
57087
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
57088
+ width += trailingWidth(visibleSegment, eastAsianWidthOptions);
57089
+ }
57090
+ return width;
57091
+ }
57092
+ //#endregion
58462
57093
  //#region ../../node_modules/.pnpm/y18n@5.0.8/node_modules/y18n/build/lib/platform-shims/node.js
58463
57094
  var node_default = {
58464
57095
  fs: {
@@ -58609,7 +57240,7 @@ const y18n = (opts) => {
58609
57240
  return y18n$1(opts, node_default);
58610
57241
  };
58611
57242
  //#endregion
58612
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/lib/platform-shims/esm.mjs
57243
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/lib/platform-shims/esm.mjs
58613
57244
  var import_get_caller_file = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
58614
57245
  module.exports = function getCallerFile(position) {
58615
57246
  if (position === void 0) position = 2;
@@ -58623,8 +57254,8 @@ var import_get_caller_file = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJS
58623
57254
  if (stack !== null && typeof stack === "object") return stack[position] ? stack[position].getFileName() : void 0;
58624
57255
  };
58625
57256
  })))(), 1);
58626
- const __dirname$1 = fileURLToPath$1(import.meta.url);
58627
- const mainFilename = __dirname$1.substring(0, __dirname$1.lastIndexOf("node_modules"));
57257
+ const __dirname = fileURLToPath$1(import.meta.url);
57258
+ const mainFilename = __dirname.substring(0, __dirname.lastIndexOf("node_modules"));
58628
57259
  const require$1 = createRequire(import.meta.url);
58629
57260
  var esm_default = {
58630
57261
  assert: {
@@ -58668,12 +57299,12 @@ var esm_default = {
58668
57299
  },
58669
57300
  stringWidth,
58670
57301
  y18n: y18n({
58671
- directory: resolve$1(__dirname$1, "../../../locales"),
57302
+ directory: resolve$1(__dirname, "../../../locales"),
58672
57303
  updateFiles: false
58673
57304
  })
58674
57305
  };
58675
57306
  //#endregion
58676
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/typings/common-types.js
57307
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/typings/common-types.js
58677
57308
  function assertNotStrictEqual(actual, expected, shim, message) {
58678
57309
  shim.assert.notStrictEqual(actual, expected, message);
58679
57310
  }
@@ -58684,12 +57315,12 @@ function objectKeys(object) {
58684
57315
  return Object.keys(object);
58685
57316
  }
58686
57317
  //#endregion
58687
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/is-promise.js
57318
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/utils/is-promise.js
58688
57319
  function isPromise(maybePromise) {
58689
57320
  return !!maybePromise && !!maybePromise.then && typeof maybePromise.then === "function";
58690
57321
  }
58691
57322
  //#endregion
58692
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/yerror.js
57323
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/yerror.js
58693
57324
  var YError = class YError extends Error {
58694
57325
  constructor(msg) {
58695
57326
  super(msg || "yargs error");
@@ -58698,7 +57329,7 @@ var YError = class YError extends Error {
58698
57329
  }
58699
57330
  };
58700
57331
  //#endregion
58701
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/parse-command.js
57332
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/parse-command.js
58702
57333
  function parseCommand(cmd) {
58703
57334
  const splitCommand = cmd.replace(/\s{2,}/g, " ").split(/\s+(?![^[]*]|[^<]*>)/);
58704
57335
  const bregex = /\.*[\][<>]/g;
@@ -58725,7 +57356,7 @@ function parseCommand(cmd) {
58725
57356
  return parsedCommand;
58726
57357
  }
58727
57358
  //#endregion
58728
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/argsert.js
57359
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/argsert.js
58729
57360
  const positionName = [
58730
57361
  "first",
58731
57362
  "second",
@@ -58782,7 +57413,7 @@ function argumentTypeError(observedType, allowedTypes, position) {
58782
57413
  throw new YError(`Invalid ${positionName[position] || "manyith"} argument. Expected ${allowedTypes.join(" or ")} but received ${observedType}.`);
58783
57414
  }
58784
57415
  //#endregion
58785
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/middleware.js
57416
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/middleware.js
58786
57417
  var GlobalMiddleware = class {
58787
57418
  constructor(yargs) {
58788
57419
  this.globalMiddleware = [];
@@ -58858,7 +57489,7 @@ function applyMiddleware(argv, yargs, middlewares, beforeValidation) {
58858
57489
  }, argv);
58859
57490
  }
58860
57491
  //#endregion
58861
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/maybe-async-result.js
57492
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/utils/maybe-async-result.js
58862
57493
  function maybeAsyncResult(getResult, resultHandler, errorHandler = (err) => {
58863
57494
  throw err;
58864
57495
  }) {
@@ -58873,7 +57504,7 @@ function isFunction(arg) {
58873
57504
  return typeof arg === "function";
58874
57505
  }
58875
57506
  //#endregion
58876
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/command.js
57507
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/command.js
58877
57508
  const DEFAULT_MARKER = /(^\*)|(^\$0)/;
58878
57509
  var CommandInstance = class {
58879
57510
  constructor(usage, validation, globalMiddleware, shim) {
@@ -59225,7 +57856,7 @@ function isCommandHandlerDefinition(cmd) {
59225
57856
  return typeof cmd === "object" && !Array.isArray(cmd);
59226
57857
  }
59227
57858
  //#endregion
59228
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/obj-filter.js
57859
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/utils/obj-filter.js
59229
57860
  function objFilter(original = {}, filter = () => true) {
59230
57861
  const obj = {};
59231
57862
  objectKeys(original).forEach((key) => {
@@ -59234,7 +57865,7 @@ function objFilter(original = {}, filter = () => true) {
59234
57865
  return obj;
59235
57866
  }
59236
57867
  //#endregion
59237
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/set-blocking.js
57868
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/utils/set-blocking.js
59238
57869
  function setBlocking(blocking) {
59239
57870
  if (typeof process === "undefined") return;
59240
57871
  [process.stdout, process.stderr].forEach((_stream) => {
@@ -59243,7 +57874,7 @@ function setBlocking(blocking) {
59243
57874
  });
59244
57875
  }
59245
57876
  //#endregion
59246
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/usage.js
57877
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/usage.js
59247
57878
  function isBoolean(fail) {
59248
57879
  return typeof fail === "boolean";
59249
57880
  }
@@ -59723,7 +58354,7 @@ function getText(text) {
59723
58354
  return isIndentedText(text) ? text.text : text;
59724
58355
  }
59725
58356
  //#endregion
59726
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/completion-templates.js
58357
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/completion-templates.js
59727
58358
  const completionShTemplate = `###-begin-{{app_name}}-completions-###
59728
58359
  #
59729
58360
  # yargs command completion script
@@ -59782,7 +58413,7 @@ fi
59782
58413
  ###-end-{{app_name}}-completions-###
59783
58414
  `;
59784
58415
  //#endregion
59785
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/completion.js
58416
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/completion.js
59786
58417
  var Completion = class {
59787
58418
  constructor(yargs, usage, command, shim) {
59788
58419
  var _a, _b, _c;
@@ -59953,7 +58584,7 @@ function isFallbackCompletionFunction(completionFunction) {
59953
58584
  return completionFunction.length > 3;
59954
58585
  }
59955
58586
  //#endregion
59956
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/levenshtein.js
58587
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/utils/levenshtein.js
59957
58588
  function levenshtein(a, b) {
59958
58589
  if (a.length === 0) return b.length;
59959
58590
  if (b.length === 0) return a.length;
@@ -59968,7 +58599,7 @@ function levenshtein(a, b) {
59968
58599
  return matrix[b.length][a.length];
59969
58600
  }
59970
58601
  //#endregion
59971
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/validation.js
58602
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/validation.js
59972
58603
  const specialKeys = [
59973
58604
  "$0",
59974
58605
  "--",
@@ -60171,7 +58802,7 @@ function validation(yargs, usage, shim) {
60171
58802
  return self;
60172
58803
  }
60173
58804
  //#endregion
60174
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/apply-extends.js
58805
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/utils/apply-extends.js
60175
58806
  let previouslyVisitedConfigs = [];
60176
58807
  let shim;
60177
58808
  function applyExtends(config, cwd, mergeExtends, _shim) {
@@ -60208,12 +58839,15 @@ function mergeDeep(config1, config2) {
60208
58839
  return obj && typeof obj === "object" && !Array.isArray(obj);
60209
58840
  }
60210
58841
  Object.assign(target, config1);
60211
- for (const key of Object.keys(config2)) if (isObject(config2[key]) && isObject(target[key])) target[key] = mergeDeep(config1[key], config2[key]);
60212
- else target[key] = config2[key];
58842
+ for (const key of Object.keys(config2)) {
58843
+ if (key === "__proto__") continue;
58844
+ if (isObject(config2[key]) && isObject(target[key])) target[key] = mergeDeep(config1[key], config2[key]);
58845
+ else target[key] = config2[key];
58846
+ }
60213
58847
  return target;
60214
58848
  }
60215
58849
  //#endregion
60216
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/yargs-factory.js
58850
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/build/lib/yargs-factory.js
60217
58851
  var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
60218
58852
  if (kind === "m") throw new TypeError("Private method is not writable");
60219
58853
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
@@ -61162,7 +59796,7 @@ var YargsInstance = class {
61162
59796
  [kGetDollarZero]() {
61163
59797
  let $0 = "";
61164
59798
  let default$0;
61165
- if (/\b(node|iojs|electron)(\.exe)?$/.test(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv()[0])) default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(1, 2);
59799
+ if (/\b(node|iojs|electron|bun)(\.exe)?$/.test(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv()[0])) default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(1, 2);
61166
59800
  else default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(0, 1);
61167
59801
  $0 = default$0.map((x) => {
61168
59802
  const b = this[kRebase](__classPrivateFieldGet(this, _YargsInstance_cwd, "f"), x);
@@ -61534,7 +60168,7 @@ function isYargsInstance(y) {
61534
60168
  return !!y && typeof y.getInternalMethods === "function";
61535
60169
  }
61536
60170
  //#endregion
61537
- //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/index.mjs
60171
+ //#region ../../node_modules/.pnpm/yargs@18.1.0/node_modules/yargs/index.mjs
61538
60172
  const Yargs = YargsFactory(esm_default);
61539
60173
  //#endregion
61540
60174
  //#region src/xy/xyParseOptions.ts
@@ -61646,7 +60280,8 @@ const xyBase = async (plugins) => {
61646
60280
  await withEnvelope("rules", async () => ruleCatalogResult(await getMasterRuleCatalog(), "XY Rules"));
61647
60281
  return;
61648
60282
  }
61649
- let args = xyBuildCommands(xyCommonCommands(xyLintCommands(xyParseOptions())));
60283
+ const options = xyParseOptions();
60284
+ let args = xyBuildCommands(xyCommonCommands(xyLintCommands(options)));
61650
60285
  if (plugins) args = plugins(args);
61651
60286
  return await args.demandCommand(1).command("*", "", () => {
61652
60287
  const cmd = process.argv[2];