react-doctor 0.9.12-dev.0b670aa → 0.9.12-dev.0f59a3b

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/README.md +27 -0
  2. package/dist/active-run-trace-dlIZeEvb.js +18 -0
  3. package/dist/active-scan-abort-registry-DwG6tSPy.js +28 -0
  4. package/dist/{build-section-divider-CJ7k-BvF.js → build-section-divider-D_0ElpEj.js} +8 -22
  5. package/dist/{ci-Dannv-cF.js → ci-DQGzuMK7.js} +12 -11
  6. package/dist/cli.js +78 -25
  7. package/dist/{design-9x5DReyL.js → design-CYmIyyLj.js} +4 -4
  8. package/dist/{devtools-D8NTVj81.js → devtools-BiC-AP3B.js} +3 -3
  9. package/dist/{exit-gracefully-ti2wONpM.js → exit-gracefully-YREzuTAP.js} +15 -9
  10. package/dist/get-east-asian-width-Cglw13G7.js +444 -0
  11. package/dist/{report-error-BlOAg03W.js → handle-error-CeLyK0rn.js} +18 -68
  12. package/dist/index.d.ts +34 -2
  13. package/dist/index.js +587 -295
  14. package/dist/{inspect-C3itFiEW.js → inspect-BMTmwMbx.js} +17 -16
  15. package/dist/{install-CjIJL6S5.js → install-9ZHtniLc.js} +9 -8
  16. package/dist/{install-doctor-script-0sdZ4SY8.js → install-doctor-script-kOZ7Iw49.js} +7 -449
  17. package/dist/{install-github-workflow-DQ8_lhAW.js → install-github-workflow-BRL1SFTs.js} +10 -6
  18. package/dist/{install-react-doctor-DRG8hdL4.js → install-react-doctor-DOn15YWo.js} +8 -8
  19. package/dist/{run-scan-app-Cgn4ELJF.js → jsx-runtime-BlEqvoEq.js} +280 -2769
  20. package/dist/{print-branded-header-Dc1KdrcV.js → print-branded-header-DvxBZBBV.js} +4 -4
  21. package/dist/project-analysis-worker.js +54 -53
  22. package/dist/prompt-runtime-scan-url-B9q8VfBz.js +240 -0
  23. package/dist/{read-object-file-rblJxHxN.js → read-object-file-Clr3HPtt.js} +4 -4
  24. package/dist/{record-metric-Dgg2b2LG.js → record-metric-DWnHZKIT.js} +585 -271
  25. package/dist/report-error-DtBNQIW6.js +64 -0
  26. package/dist/{report-workflow-result-Dp4dCUxw.js → report-workflow-result-C0yZTQim.js} +5 -5
  27. package/dist/{resolve-scope-CbeXgE9z.js → resolve-scope-Cma12N1J.js} +6 -6
  28. package/dist/{rules-ClDrNCc3.js → rules-qNY-AdTr.js} +6 -6
  29. package/dist/run-scan-app-C6bgumEA.js +2510 -0
  30. package/dist/runtime-scan/browser-probe.iife.js +855 -0
  31. package/dist/runtime-scan-BtU6SMk-.js +770 -0
  32. package/dist/sanitize-runtime-url-Dki3DBnF.js +76 -0
  33. package/dist/{scan-Caa_ogFB.js → scan-7Ql2Z9fw.js} +10 -22
  34. package/dist/{should-fail-scan-gate-BGzNJApW.js → should-fail-scan-gate-BUPw-Xul.js} +23 -114
  35. package/dist/{should-skip-prompts-Bbl0ToUI.js → should-skip-prompts-Co31ieXe.js} +4 -4
  36. package/dist/should-use-tui-DHqk4lW_.js +25 -0
  37. package/dist/skills/improve-threejs/SKILL.md +102 -0
  38. package/dist/skills/performance/SKILL.md +113 -0
  39. package/dist/skills/react-doctor/SKILL.md +6 -0
  40. package/dist/{unref-stdin-C7d7_3va.js → telemetry-runtime-CjzUzAD8.js} +55 -25
  41. package/dist/unref-stdin-BKT_s38a.js +12 -0
  42. package/dist/{version-Bjql-CLM.js → version-e1SeuD5O.js} +4 -4
  43. package/dist/{why-BqG2EML8.js → why-B0Q51T4v.js} +4 -4
  44. package/dist/with-run-span-CnXD63Le.js +110 -0
  45. package/package.json +9 -6
package/dist/index.js CHANGED
@@ -1,14 +1,15 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a17c28bc-da40-5fec-8489-037e933cd8c3")}catch(e){}}();
3
- import { i as __toESM$1, r as __require, t as __commonJSMin$1 } from "./chunk-ChKA3wi6.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a1e2a7e6-0206-5651-a0a6-bfbbbcae5a42")}catch(e){}}();
3
+ import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import * as path$1$1 from "node:path";
6
- import path from "node:path";
6
+ import path, { join, posix } from "node:path";
7
7
  import * as fs$1$3 from "node:fs";
8
- import fs from "node:fs";
8
+ import fs, { existsSync } from "node:fs";
9
9
  import * as NodeChildProcess from "node:child_process";
10
10
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
11
11
  import ts from "typescript";
12
+ import { parseSync } from "oxc-parser";
12
13
  import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
13
14
  import * as Crypto from "node:crypto";
14
15
  import crypto, { createHash, randomUUID } from "node:crypto";
@@ -18,14 +19,14 @@ import { fileURLToPath } from "node:url";
18
19
  import * as OS from "node:os";
19
20
  import os from "node:os";
20
21
  import { createJiti } from "jiti";
21
- import { parseJSON5 } from "confbox";
22
+ import { parseJSON5, parseJSONC } from "confbox";
22
23
  import * as fs$1 from "node:fs/promises";
23
24
  import { PassThrough } from "node:stream";
24
25
  import { convertToTSX } from "@astrojs/compiler/sync";
25
26
  import { STATUS_CODES } from "node:http";
26
27
  import { gzipSync } from "node:zlib";
27
28
  //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
28
- var require_constants$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
29
+ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
29
30
  const WIN_SLASH = "\\\\/";
30
31
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
31
32
  const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
@@ -194,7 +195,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
194
195
  }));
195
196
  //#endregion
196
197
  //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
197
- var require_utils = /* @__PURE__ */ __commonJSMin$1(((exports) => {
198
+ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
198
199
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
199
200
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
200
201
  exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
@@ -242,7 +243,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin$1(((exports) => {
242
243
  }));
243
244
  //#endregion
244
245
  //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
245
- var require_scan = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
246
+ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
246
247
  const utils = require_utils();
247
248
  const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants$1();
248
249
  const isPathSeparator = (code) => {
@@ -529,7 +530,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
529
530
  }));
530
531
  //#endregion
531
532
  //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
532
- var require_parse$2 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
533
+ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
533
534
  const constants = require_constants$1();
534
535
  const utils = require_utils();
535
536
  /**
@@ -1584,7 +1585,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
1584
1585
  }));
1585
1586
  //#endregion
1586
1587
  //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
1587
- var require_picomatch$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
1588
+ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1588
1589
  const scan = require_scan();
1589
1590
  const parse = require_parse$2();
1590
1591
  const utils = require_utils();
@@ -1883,8 +1884,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
1883
1884
  module.exports = picomatch;
1884
1885
  }));
1885
1886
  //#endregion
1886
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-Dno9RW5R.js
1887
- var import_picomatch = /* @__PURE__ */ __toESM$1((/* @__PURE__ */ __commonJSMin$1(((exports, module) => {
1887
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-hOS9iAJg.js
1888
+ var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1888
1889
  const pico = require_picomatch$1();
1889
1890
  const utils = require_utils();
1890
1891
  function picomatch(glob, options, returnState = false) {
@@ -2164,6 +2165,7 @@ const ES_TARGET_YEAR_BY_NAME = {
2164
2165
  * compiler options — the root config first, then a monorepo base config.
2165
2166
  */
2166
2167
  const TSCONFIG_FILENAMES = ["tsconfig.json", "tsconfig.base.json"];
2168
+ const DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS = [".react-doctor", "audit-backups"];
2167
2169
  /**
2168
2170
  * Project-config files that `StagedFiles.materialize` copies into
2169
2171
  * the temp directory alongside staged sources so oxlint resolves
@@ -2396,6 +2398,74 @@ const compileGlobPatternsLenient = (patterns, onInvalid) => {
2396
2398
  }
2397
2399
  return compiled;
2398
2400
  };
2401
+ const isOxcAstNode = (value) => Boolean(value) && typeof value === "object" && typeof value.type === "string";
2402
+ const getStaticModuleSpecifier = (value) => {
2403
+ if (!isOxcAstNode(value)) return void 0;
2404
+ if (typeof value.value === "string") return value.value;
2405
+ if (value.type === "TemplateLiteral" && Array.isArray(value.expressions) && value.expressions.length === 0 && Array.isArray(value.quasis) && isOxcAstNode(value.quasis[0]) && value.quasis[0].value && typeof value.quasis[0].value === "object" && "cooked" in value.quasis[0].value && typeof value.quasis[0].value.cooked === "string") return value.quasis[0].value.cooked;
2406
+ };
2407
+ const collectStaticModuleSpecifiers = (sourceText, options = {}) => {
2408
+ const { filePath = "module.tsx", includeTypeOnly = true } = options;
2409
+ const parsedModule = parseSync(filePath, sourceText, { sourceType: "unambiguous" });
2410
+ const moduleSpecifiers = /* @__PURE__ */ new Set();
2411
+ const addSpecifier = (value) => {
2412
+ const moduleSpecifier = getStaticModuleSpecifier(value);
2413
+ if (moduleSpecifier) moduleSpecifiers.add(moduleSpecifier);
2414
+ };
2415
+ const visitNode = (value) => {
2416
+ if (Array.isArray(value)) {
2417
+ for (const child of value) visitNode(child);
2418
+ return;
2419
+ }
2420
+ if (!isOxcAstNode(value)) return;
2421
+ if (value.type === "ImportDeclaration") {
2422
+ const specifiers = Array.isArray(value.specifiers) ? value.specifiers : [];
2423
+ const hasRuntimeSpecifier = specifiers.some((specifier) => !isOxcAstNode(specifier) || specifier.importKind !== "type");
2424
+ if (includeTypeOnly || value.importKind !== "type" && (specifiers.length === 0 || hasRuntimeSpecifier)) addSpecifier(value.source);
2425
+ } else if (value.type === "ExportNamedDeclaration") {
2426
+ const specifiers = Array.isArray(value.specifiers) ? value.specifiers : [];
2427
+ const hasRuntimeSpecifier = specifiers.some((specifier) => !isOxcAstNode(specifier) || specifier.exportKind !== "type");
2428
+ if (includeTypeOnly || value.exportKind !== "type" && (specifiers.length === 0 || hasRuntimeSpecifier)) addSpecifier(value.source);
2429
+ } else if (value.type === "ExportAllDeclaration" || value.type === "ImportExpression") {
2430
+ if (includeTypeOnly || value.exportKind !== "type") addSpecifier(value.source);
2431
+ } else if (value.type === "TSImportType") {
2432
+ if (includeTypeOnly) addSpecifier(value.source);
2433
+ } else if (value.type === "TSExternalModuleReference") addSpecifier(value.expression);
2434
+ else if (value.type === "CallExpression" && isOxcAstNode(value.callee) && value.callee.type === "Identifier" && value.callee.name === "require" && Array.isArray(value.arguments) && value.arguments.length > 0) addSpecifier(value.arguments[0]);
2435
+ for (const child of Object.values(value)) visitNode(child);
2436
+ };
2437
+ visitNode(parsedModule.program);
2438
+ return moduleSpecifiers;
2439
+ };
2440
+ const toPosixPath = (filePath) => filePath.replace(/\\/g, "/");
2441
+ const isPathInsideDirectoryOrEqual = (candidatePath, directoryPath) => {
2442
+ const normalizedCandidatePath = posix.normalize(toPosixPath(candidatePath));
2443
+ const normalizedDirectoryPath = posix.normalize(toPosixPath(directoryPath));
2444
+ const relativePath = posix.relative(normalizedDirectoryPath, normalizedCandidatePath);
2445
+ return relativePath === "" || relativePath !== ".." && !relativePath.startsWith("../") && !posix.isAbsolute(relativePath);
2446
+ };
2447
+ const RESOLVABLE_EXTENSIONS = [
2448
+ ".ts",
2449
+ ".tsx",
2450
+ ".js",
2451
+ ".jsx",
2452
+ ".mjs",
2453
+ ".mts",
2454
+ ".cjs",
2455
+ ".cts",
2456
+ ".es6"
2457
+ ];
2458
+ const resolveEntryWithExtensions = (basePath) => {
2459
+ if (existsSync(basePath)) return basePath;
2460
+ for (const extension of RESOLVABLE_EXTENSIONS) {
2461
+ const withExtension = basePath + extension;
2462
+ if (existsSync(withExtension)) return withExtension;
2463
+ }
2464
+ for (const extension of RESOLVABLE_EXTENSIONS) {
2465
+ const indexCandidate = join(basePath, `index${extension}`);
2466
+ if (existsSync(indexCandidate)) return indexCandidate;
2467
+ }
2468
+ };
2399
2469
  /**
2400
2470
  * Resolves a path to its canonical, symlink-free form, falling back to
2401
2471
  * the input when it cannot be realpath'd (broken symlink, permission
@@ -23377,7 +23447,7 @@ Union([
23377
23447
  ]);
23378
23448
  //#endregion
23379
23449
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
23380
- var require_constants = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23450
+ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23381
23451
  const SEMVER_SPEC_VERSION = "2.0.0";
23382
23452
  const MAX_LENGTH = 256;
23383
23453
  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
@@ -23402,12 +23472,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23402
23472
  }));
23403
23473
  //#endregion
23404
23474
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
23405
- var require_debug = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23475
+ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23406
23476
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
23407
23477
  }));
23408
23478
  //#endregion
23409
23479
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
23410
- var require_re = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23480
+ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23411
23481
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
23412
23482
  const debug = require_debug();
23413
23483
  exports = module.exports = {};
@@ -23486,7 +23556,7 @@ var require_re = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23486
23556
  }));
23487
23557
  //#endregion
23488
23558
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
23489
- var require_parse_options = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23559
+ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23490
23560
  const looseOption = Object.freeze({ loose: true });
23491
23561
  const emptyOpts = Object.freeze({});
23492
23562
  const parseOptions = (options) => {
@@ -23498,7 +23568,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin$1(((exports, module) =
23498
23568
  }));
23499
23569
  //#endregion
23500
23570
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
23501
- var require_identifiers = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23571
+ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23502
23572
  const numeric = /^[0-9]+$/;
23503
23573
  const compareIdentifiers = (a, b) => {
23504
23574
  if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
@@ -23518,7 +23588,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
23518
23588
  }));
23519
23589
  //#endregion
23520
23590
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
23521
- var require_semver$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23591
+ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23522
23592
  const debug = require_debug();
23523
23593
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
23524
23594
  const { safeRe: re, t } = require_re();
@@ -23696,7 +23766,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23696
23766
  }));
23697
23767
  //#endregion
23698
23768
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
23699
- var require_parse$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23769
+ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23700
23770
  const SemVer = require_semver$1();
23701
23771
  const parse = (version, options, throwErrors = false) => {
23702
23772
  if (version instanceof SemVer) return version;
@@ -23711,7 +23781,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23711
23781
  }));
23712
23782
  //#endregion
23713
23783
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
23714
- var require_valid$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23784
+ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23715
23785
  const parse = require_parse$1();
23716
23786
  const valid = (version, options) => {
23717
23787
  const v = parse(version, options);
@@ -23721,7 +23791,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23721
23791
  }));
23722
23792
  //#endregion
23723
23793
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
23724
- var require_clean = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23794
+ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23725
23795
  const parse = require_parse$1();
23726
23796
  const clean = (version, options) => {
23727
23797
  const s = parse(version.trim().replace(/^[=v]+/, ""), options);
@@ -23731,7 +23801,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23731
23801
  }));
23732
23802
  //#endregion
23733
23803
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
23734
- var require_inc = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23804
+ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23735
23805
  const SemVer = require_semver$1();
23736
23806
  const inc = (version, release, options, identifier, identifierBase) => {
23737
23807
  if (typeof options === "string") {
@@ -23749,7 +23819,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23749
23819
  }));
23750
23820
  //#endregion
23751
23821
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
23752
- var require_diff = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23822
+ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23753
23823
  const parse = require_parse$1();
23754
23824
  const diff = (version1, version2) => {
23755
23825
  const v1 = parse(version1, null, true);
@@ -23777,28 +23847,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23777
23847
  }));
23778
23848
  //#endregion
23779
23849
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js
23780
- var require_major = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23850
+ var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23781
23851
  const SemVer = require_semver$1();
23782
23852
  const major = (a, loose) => new SemVer(a, loose).major;
23783
23853
  module.exports = major;
23784
23854
  }));
23785
23855
  //#endregion
23786
23856
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js
23787
- var require_minor = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23857
+ var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23788
23858
  const SemVer = require_semver$1();
23789
23859
  const minor = (a, loose) => new SemVer(a, loose).minor;
23790
23860
  module.exports = minor;
23791
23861
  }));
23792
23862
  //#endregion
23793
23863
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js
23794
- var require_patch = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23864
+ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23795
23865
  const SemVer = require_semver$1();
23796
23866
  const patch = (a, loose) => new SemVer(a, loose).patch;
23797
23867
  module.exports = patch;
23798
23868
  }));
23799
23869
  //#endregion
23800
23870
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
23801
- var require_prerelease = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23871
+ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23802
23872
  const parse = require_parse$1();
23803
23873
  const prerelease = (version, options) => {
23804
23874
  const parsed = parse(version, options);
@@ -23808,28 +23878,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23808
23878
  }));
23809
23879
  //#endregion
23810
23880
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
23811
- var require_compare = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23881
+ var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23812
23882
  const SemVer = require_semver$1();
23813
23883
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
23814
23884
  module.exports = compare;
23815
23885
  }));
23816
23886
  //#endregion
23817
23887
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js
23818
- var require_rcompare = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23888
+ var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23819
23889
  const compare = require_compare();
23820
23890
  const rcompare = (a, b, loose) => compare(b, a, loose);
23821
23891
  module.exports = rcompare;
23822
23892
  }));
23823
23893
  //#endregion
23824
23894
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js
23825
- var require_compare_loose = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23895
+ var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23826
23896
  const compare = require_compare();
23827
23897
  const compareLoose = (a, b) => compare(a, b, true);
23828
23898
  module.exports = compareLoose;
23829
23899
  }));
23830
23900
  //#endregion
23831
23901
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js
23832
- var require_compare_build = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23902
+ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23833
23903
  const SemVer = require_semver$1();
23834
23904
  const compareBuild = (a, b, loose) => {
23835
23905
  const versionA = new SemVer(a, loose);
@@ -23840,63 +23910,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin$1(((exports, module) =
23840
23910
  }));
23841
23911
  //#endregion
23842
23912
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js
23843
- var require_sort = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23913
+ var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23844
23914
  const compareBuild = require_compare_build();
23845
23915
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
23846
23916
  module.exports = sort;
23847
23917
  }));
23848
23918
  //#endregion
23849
23919
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js
23850
- var require_rsort = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23920
+ var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23851
23921
  const compareBuild = require_compare_build();
23852
23922
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
23853
23923
  module.exports = rsort;
23854
23924
  }));
23855
23925
  //#endregion
23856
23926
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
23857
- var require_gt = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23927
+ var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23858
23928
  const compare = require_compare();
23859
23929
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
23860
23930
  module.exports = gt;
23861
23931
  }));
23862
23932
  //#endregion
23863
23933
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
23864
- var require_lt = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23934
+ var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23865
23935
  const compare = require_compare();
23866
23936
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
23867
23937
  module.exports = lt;
23868
23938
  }));
23869
23939
  //#endregion
23870
23940
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
23871
- var require_eq = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23941
+ var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23872
23942
  const compare = require_compare();
23873
23943
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
23874
23944
  module.exports = eq;
23875
23945
  }));
23876
23946
  //#endregion
23877
23947
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
23878
- var require_neq = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23948
+ var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23879
23949
  const compare = require_compare();
23880
23950
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
23881
23951
  module.exports = neq;
23882
23952
  }));
23883
23953
  //#endregion
23884
23954
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
23885
- var require_gte = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23955
+ var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23886
23956
  const compare = require_compare();
23887
23957
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
23888
23958
  module.exports = gte;
23889
23959
  }));
23890
23960
  //#endregion
23891
23961
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
23892
- var require_lte = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23962
+ var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23893
23963
  const compare = require_compare();
23894
23964
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
23895
23965
  module.exports = lte;
23896
23966
  }));
23897
23967
  //#endregion
23898
23968
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
23899
- var require_cmp = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23969
+ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23900
23970
  const eq = require_eq();
23901
23971
  const neq = require_neq();
23902
23972
  const gt = require_gt();
@@ -23928,7 +23998,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23928
23998
  }));
23929
23999
  //#endregion
23930
24000
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
23931
- var require_coerce = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24001
+ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23932
24002
  const SemVer = require_semver$1();
23933
24003
  const parse = require_parse$1();
23934
24004
  const { safeRe: re, t } = require_re();
@@ -23956,7 +24026,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23956
24026
  }));
23957
24027
  //#endregion
23958
24028
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
23959
- var require_lrucache = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24029
+ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23960
24030
  var LRUCache = class {
23961
24031
  constructor() {
23962
24032
  this.max = 1e3;
@@ -23989,7 +24059,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
23989
24059
  }));
23990
24060
  //#endregion
23991
24061
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
23992
- var require_range = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24062
+ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23993
24063
  const SPACE_CHARACTERS = /\s+/g;
23994
24064
  module.exports = class Range {
23995
24065
  constructor(range, options) {
@@ -24261,7 +24331,7 @@ var require_range = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24261
24331
  }));
24262
24332
  //#endregion
24263
24333
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
24264
- var require_comparator = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24334
+ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24265
24335
  const ANY = Symbol("SemVer ANY");
24266
24336
  module.exports = class Comparator {
24267
24337
  static get ANY() {
@@ -24331,7 +24401,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24331
24401
  }));
24332
24402
  //#endregion
24333
24403
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
24334
- var require_satisfies = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24404
+ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24335
24405
  const Range = require_range();
24336
24406
  const satisfies = (version, range, options) => {
24337
24407
  try {
@@ -24345,14 +24415,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24345
24415
  }));
24346
24416
  //#endregion
24347
24417
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
24348
- var require_to_comparators = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24418
+ var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24349
24419
  const Range = require_range();
24350
24420
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
24351
24421
  module.exports = toComparators;
24352
24422
  }));
24353
24423
  //#endregion
24354
24424
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js
24355
- var require_max_satisfying = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24425
+ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24356
24426
  const SemVer = require_semver$1();
24357
24427
  const Range = require_range();
24358
24428
  const maxSatisfying = (versions, range, options) => {
@@ -24378,7 +24448,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin$1(((exports, module)
24378
24448
  }));
24379
24449
  //#endregion
24380
24450
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js
24381
- var require_min_satisfying = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24451
+ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24382
24452
  const SemVer = require_semver$1();
24383
24453
  const Range = require_range();
24384
24454
  const minSatisfying = (versions, range, options) => {
@@ -24404,7 +24474,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin$1(((exports, module)
24404
24474
  }));
24405
24475
  //#endregion
24406
24476
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
24407
- var require_min_version = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24477
+ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24408
24478
  const SemVer = require_semver$1();
24409
24479
  const Range = require_range();
24410
24480
  const gt = require_gt();
@@ -24444,7 +24514,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
24444
24514
  }));
24445
24515
  //#endregion
24446
24516
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js
24447
- var require_valid = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24517
+ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24448
24518
  const Range = require_range();
24449
24519
  const validRange = (range, options) => {
24450
24520
  try {
@@ -24457,7 +24527,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24457
24527
  }));
24458
24528
  //#endregion
24459
24529
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js
24460
- var require_outside = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24530
+ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24461
24531
  const SemVer = require_semver$1();
24462
24532
  const Comparator = require_comparator();
24463
24533
  const { ANY } = Comparator;
@@ -24510,21 +24580,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24510
24580
  }));
24511
24581
  //#endregion
24512
24582
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js
24513
- var require_gtr = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24583
+ var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24514
24584
  const outside = require_outside();
24515
24585
  const gtr = (version, range, options) => outside(version, range, ">", options);
24516
24586
  module.exports = gtr;
24517
24587
  }));
24518
24588
  //#endregion
24519
24589
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js
24520
- var require_ltr = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24590
+ var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24521
24591
  const outside = require_outside();
24522
24592
  const ltr = (version, range, options) => outside(version, range, "<", options);
24523
24593
  module.exports = ltr;
24524
24594
  }));
24525
24595
  //#endregion
24526
24596
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js
24527
- var require_intersects = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24597
+ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24528
24598
  const Range = require_range();
24529
24599
  const intersects = (r1, r2, options) => {
24530
24600
  r1 = new Range(r1, options);
@@ -24535,7 +24605,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24535
24605
  }));
24536
24606
  //#endregion
24537
24607
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js
24538
- var require_simplify = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24608
+ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24539
24609
  const satisfies = require_satisfies();
24540
24610
  const compare = require_compare();
24541
24611
  module.exports = (versions, range, options) => {
@@ -24565,7 +24635,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24565
24635
  }));
24566
24636
  //#endregion
24567
24637
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js
24568
- var require_subset = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24638
+ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24569
24639
  const Range = require_range();
24570
24640
  const Comparator = require_comparator();
24571
24641
  const { ANY } = Comparator;
@@ -24660,7 +24730,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24660
24730
  }));
24661
24731
  //#endregion
24662
24732
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js
24663
- var require_semver = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24733
+ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24664
24734
  const internalRe = require_re();
24665
24735
  const constants = require_constants();
24666
24736
  const SemVer = require_semver$1();
@@ -24715,7 +24785,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
24715
24785
  }));
24716
24786
  //#endregion
24717
24787
  //#region ../../node_modules/.pnpm/baseline-browser-mapping@2.9.19/node_modules/baseline-browser-mapping/dist/index.cjs
24718
- var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
24788
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
24719
24789
  const s = {
24720
24790
  chrome: { releases: [
24721
24791
  [
@@ -43965,7 +44035,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
43965
44035
  }));
43966
44036
  //#endregion
43967
44037
  //#region ../../node_modules/.pnpm/node-releases@2.0.27/node_modules/node-releases/data/processed/envs.json
43968
- var require_envs = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
44038
+ var require_envs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43969
44039
  module.exports = [
43970
44040
  {
43971
44041
  "name": "nodejs",
@@ -46747,7 +46817,7 @@ var require_envs = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
46747
46817
  }));
46748
46818
  //#endregion
46749
46819
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/browsers.js
46750
- var require_browsers$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
46820
+ var require_browsers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46751
46821
  module.exports = {
46752
46822
  A: "ie",
46753
46823
  B: "edge",
@@ -46772,12 +46842,12 @@ var require_browsers$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
46772
46842
  }));
46773
46843
  //#endregion
46774
46844
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/browsers.js
46775
- var require_browsers = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
46845
+ var require_browsers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46776
46846
  module.exports.browsers = require_browsers$1();
46777
46847
  }));
46778
46848
  //#endregion
46779
46849
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/browserVersions.js
46780
- var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
46850
+ var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46781
46851
  module.exports = {
46782
46852
  "0": "117",
46783
46853
  "1": "118",
@@ -47029,12 +47099,12 @@ var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin$1(((exports, modul
47029
47099
  }));
47030
47100
  //#endregion
47031
47101
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/browserVersions.js
47032
- var require_browserVersions = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
47102
+ var require_browserVersions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47033
47103
  module.exports.browserVersions = require_browserVersions$1();
47034
47104
  }));
47035
47105
  //#endregion
47036
47106
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/agents.js
47037
- var require_agents$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
47107
+ var require_agents$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47038
47108
  module.exports = {
47039
47109
  A: {
47040
47110
  A: {
@@ -51403,7 +51473,7 @@ var require_agents$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51403
51473
  }));
51404
51474
  //#endregion
51405
51475
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/agents.js
51406
- var require_agents = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51476
+ var require_agents = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51407
51477
  const browsers = require_browsers().browsers;
51408
51478
  const versions = require_browserVersions().browserVersions;
51409
51479
  const agentsData = require_agents$1();
@@ -51436,7 +51506,7 @@ var require_agents = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51436
51506
  }));
51437
51507
  //#endregion
51438
51508
  //#region ../../node_modules/.pnpm/electron-to-chromium@1.5.286/node_modules/electron-to-chromium/versions.js
51439
- var require_versions = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51509
+ var require_versions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51440
51510
  module.exports = {
51441
51511
  "0.20": "39",
51442
51512
  "0.21": "41",
@@ -51670,7 +51740,7 @@ var require_versions = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51670
51740
  }));
51671
51741
  //#endregion
51672
51742
  //#region ../../node_modules/.pnpm/node-releases@2.0.27/node_modules/node-releases/data/release-schedule/release-schedule.json
51673
- var require_release_schedule = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51743
+ var require_release_schedule = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51674
51744
  module.exports = {
51675
51745
  "v0.8": {
51676
51746
  "start": "2012-06-25",
@@ -51827,7 +51897,7 @@ var require_release_schedule = /* @__PURE__ */ __commonJSMin$1(((exports, module
51827
51897
  }));
51828
51898
  //#endregion
51829
51899
  //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/error.js
51830
- var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51900
+ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51831
51901
  function BrowserslistError(message) {
51832
51902
  this.name = "BrowserslistError";
51833
51903
  this.message = message;
@@ -51839,7 +51909,7 @@ var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51839
51909
  }));
51840
51910
  //#endregion
51841
51911
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/lib/statuses.js
51842
- var require_statuses = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51912
+ var require_statuses = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51843
51913
  module.exports = {
51844
51914
  1: "ls",
51845
51915
  2: "rec",
@@ -51852,7 +51922,7 @@ var require_statuses = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51852
51922
  }));
51853
51923
  //#endregion
51854
51924
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/lib/supported.js
51855
- var require_supported = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51925
+ var require_supported = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51856
51926
  module.exports = {
51857
51927
  y: 1,
51858
51928
  n: 2,
@@ -51865,7 +51935,7 @@ var require_supported = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51865
51935
  }));
51866
51936
  //#endregion
51867
51937
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/feature.js
51868
- var require_feature = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51938
+ var require_feature = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51869
51939
  const statuses = require_statuses();
51870
51940
  const supported = require_supported();
51871
51941
  const browsers = require_browsers().browsers;
@@ -51908,7 +51978,7 @@ var require_feature = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51908
51978
  }));
51909
51979
  //#endregion
51910
51980
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/region.js
51911
- var require_region = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51981
+ var require_region = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51912
51982
  const browsers = require_browsers().browsers;
51913
51983
  function unpackRegion(packed) {
51914
51984
  return Object.keys(packed).reduce((list, browser) => {
@@ -51927,7 +51997,7 @@ var require_region = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
51927
51997
  }));
51928
51998
  //#endregion
51929
51999
  //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node.js
51930
- var require_node = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
52000
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51931
52001
  var feature = require_feature().default;
51932
52002
  var region = require_region().default;
51933
52003
  var fs$2 = __require("fs");
@@ -52220,7 +52290,7 @@ var require_node = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
52220
52290
  }));
52221
52291
  //#endregion
52222
52292
  //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/parse.js
52223
- var require_parse = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
52293
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
52224
52294
  var AND_REGEXP = /^\s+and\s+(.*)/i;
52225
52295
  var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i;
52226
52296
  function flatten(array) {
@@ -52286,7 +52356,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
52286
52356
  }));
52287
52357
  //#endregion
52288
52358
  //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/index.js
52289
- var require_browserslist = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
52359
+ var require_browserslist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
52290
52360
  var bbm = require_dist();
52291
52361
  var jsReleases = require_envs();
52292
52362
  var agents = require_agents().agents;
@@ -53308,8 +53378,8 @@ var require_browserslist = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
53308
53378
  }));
53309
53379
  //#endregion
53310
53380
  //#region ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Brand.js
53311
- var import_semver = /* @__PURE__ */ __toESM$1(require_semver(), 1);
53312
- var import_browserslist = /* @__PURE__ */ __toESM$1(require_browserslist(), 1);
53381
+ var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
53382
+ var import_browserslist = /* @__PURE__ */ __toESM(require_browserslist(), 1);
53313
53383
  /**
53314
53384
  * Returns a `Constructor` that **does not apply any runtime checks** and just
53315
53385
  * returns the provided value.
@@ -53516,7 +53586,7 @@ const await_ = fiberAwait;
53516
53586
  * @category combinators
53517
53587
  * @since 2.0.0
53518
53588
  */
53519
- const join = fiberJoin;
53589
+ const join$1 = fiberJoin;
53520
53590
  /**
53521
53591
  * Interrupts a fiber, causing it to stop executing and clean up any
53522
53592
  * acquired resources.
@@ -55513,7 +55583,7 @@ const mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntrace
55513
55583
  const fiber = runFork(f(value, i++));
55514
55584
  trackFiber(fiber);
55515
55585
  fiber.addObserver(onExit);
55516
- return offer(effects, join(fiber));
55586
+ return offer(effects, join$1(fiber));
55517
55587
  }), forever({ disableYield: true }), catchCause$1((cause) => offer(effects, failCause$3(cause)).pipe(andThen(failCause$1(effects, cause)))), forkIn(forkedScope));
55518
55588
  }
55519
55589
  return take(queue);
@@ -55839,9 +55909,9 @@ const mergeAll = /* @__PURE__ */ dual(2, (channels, { bufferSize = 16, concurren
55839
55909
  if (semaphore) if (fibers.size < concurrencyN) yield* semaphore.take(1);
55840
55910
  else {
55841
55911
  pullFiber = yield* forkChild(pull);
55842
- yield* raceFirst(semaphore.take(1), andThen(join(pullFiber), never));
55912
+ yield* raceFirst(semaphore.take(1), andThen(join$1(pullFiber), never));
55843
55913
  }
55844
- const channel = pullFiber === void 0 ? yield* pull : yield* join(pullFiber);
55914
+ const channel = pullFiber === void 0 ? yield* pull : yield* join$1(pullFiber);
55845
55915
  const childScope = forkUnsafe(forkedScope);
55846
55916
  const childPull = yield* toTransform(channel)(upstream, childScope);
55847
55917
  while (fibers.size >= concurrencyN) {
@@ -62294,6 +62364,72 @@ const warn$1 = (...args) => consoleWith((console) => sync$2(() => {
62294
62364
  }));
62295
62365
  //#endregion
62296
62366
  //#region ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Cache.js
62367
+ var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
62368
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
62369
+ 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);
62370
+ let formatter = (open, close, replace = open) => (input) => {
62371
+ let string = "" + input, index = string.indexOf(close, open.length);
62372
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
62373
+ };
62374
+ let replaceClose = (string, close, replace, index) => {
62375
+ let result = "", cursor = 0;
62376
+ do {
62377
+ result += string.substring(cursor, index) + replace;
62378
+ cursor = index + close.length;
62379
+ index = string.indexOf(close, cursor);
62380
+ } while (~index);
62381
+ return result + string.substring(cursor);
62382
+ };
62383
+ let createColors = (enabled = isColorSupported) => {
62384
+ let f = enabled ? formatter : () => String;
62385
+ return {
62386
+ isColorSupported: enabled,
62387
+ reset: f("\x1B[0m", "\x1B[0m"),
62388
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
62389
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
62390
+ italic: f("\x1B[3m", "\x1B[23m"),
62391
+ underline: f("\x1B[4m", "\x1B[24m"),
62392
+ inverse: f("\x1B[7m", "\x1B[27m"),
62393
+ hidden: f("\x1B[8m", "\x1B[28m"),
62394
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
62395
+ black: f("\x1B[30m", "\x1B[39m"),
62396
+ red: f("\x1B[31m", "\x1B[39m"),
62397
+ green: f("\x1B[32m", "\x1B[39m"),
62398
+ yellow: f("\x1B[33m", "\x1B[39m"),
62399
+ blue: f("\x1B[34m", "\x1B[39m"),
62400
+ magenta: f("\x1B[35m", "\x1B[39m"),
62401
+ cyan: f("\x1B[36m", "\x1B[39m"),
62402
+ white: f("\x1B[37m", "\x1B[39m"),
62403
+ gray: f("\x1B[90m", "\x1B[39m"),
62404
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
62405
+ bgRed: f("\x1B[41m", "\x1B[49m"),
62406
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
62407
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
62408
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
62409
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
62410
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
62411
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
62412
+ blackBright: f("\x1B[90m", "\x1B[39m"),
62413
+ redBright: f("\x1B[91m", "\x1B[39m"),
62414
+ greenBright: f("\x1B[92m", "\x1B[39m"),
62415
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
62416
+ blueBright: f("\x1B[94m", "\x1B[39m"),
62417
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
62418
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
62419
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
62420
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
62421
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
62422
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
62423
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
62424
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
62425
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
62426
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
62427
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
62428
+ };
62429
+ };
62430
+ module.exports = createColors();
62431
+ module.exports.createColors = createColors;
62432
+ })))(), 1);
62297
62433
  /**
62298
62434
  * Caches values loaded by an Effect lookup function.
62299
62435
  *
@@ -64263,34 +64399,13 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
64263
64399
  }
64264
64400
  //#endregion
64265
64401
  //#region ../core/dist/index.js
64266
- var __create = Object.create;
64267
- var __defProp = Object.defineProperty;
64268
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
64269
- var __getOwnPropNames = Object.getOwnPropertyNames;
64270
- var __getProtoOf = Object.getPrototypeOf;
64271
- var __hasOwnProp = Object.prototype.hasOwnProperty;
64272
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
64273
- var __copyProps = (to, from, except, desc) => {
64274
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
64275
- key = keys[i];
64276
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
64277
- get: ((k) => from[k]).bind(null, key),
64278
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
64279
- });
64280
- }
64281
- return to;
64282
- };
64283
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
64284
- value: mod,
64285
- enumerable: true
64286
- }) : target, mod));
64287
64402
  var ProjectNotFoundError = class extends Error {
64288
64403
  name = "ProjectNotFoundError";
64289
64404
  directory;
64290
64405
  kind;
64291
64406
  constructor(directory, options) {
64292
64407
  const kind = options?.kind ?? "no-project";
64293
- super(kind === "missing-path" ? `Scan target "${directory}" does not exist. Check the path and try again.` : `No React project found in ${directory}. Expected a package.json at the directory root or a nested package.json with a React dependency.`, options);
64408
+ super(kind === "missing-path" ? `Scan target "${directory}" does not exist. Check the path and try again.` : `No React or Three.js project found in ${directory}. Expected a package.json at the directory root or a nested package.json with a React or Three.js dependency.`, options);
64294
64409
  this.directory = directory;
64295
64410
  this.kind = kind;
64296
64411
  }
@@ -64324,7 +64439,7 @@ var AmbiguousProjectError = class extends Error {
64324
64439
  directory;
64325
64440
  candidates;
64326
64441
  constructor(directory, candidates, options) {
64327
- super(`Multiple React projects found under ${directory} (${candidates.length} candidates): ${candidates.join(", ")}. Re-run diagnose() with one of those subdirectories, or iterate them yourself.`, options);
64442
+ super(`Multiple React or Three.js projects found under ${directory} (${candidates.length} candidates): ${candidates.join(", ")}. Re-run diagnose() with one of those subdirectories, or iterate them yourself.`, options);
64328
64443
  this.directory = directory;
64329
64444
  this.candidates = candidates;
64330
64445
  }
@@ -65664,15 +65779,29 @@ const detectPreES2023Target = (directory) => {
65664
65779
  }
65665
65780
  return false;
65666
65781
  };
65782
+ const SHADCN_CONFIG_FILE_NAME = "components.json";
65783
+ const detectShadcnUi = (directory) => {
65784
+ if (isFile(path$1$1.join(directory, SHADCN_CONFIG_FILE_NAME))) return true;
65785
+ if (isProjectBoundary(directory)) return false;
65786
+ let ancestorDirectory = path$1$1.dirname(directory);
65787
+ while (ancestorDirectory !== path$1$1.dirname(ancestorDirectory)) {
65788
+ if (isFile(path$1$1.join(ancestorDirectory, SHADCN_CONFIG_FILE_NAME))) return true;
65789
+ if (isProjectBoundary(ancestorDirectory)) return false;
65790
+ ancestorDirectory = path$1$1.dirname(ancestorDirectory);
65791
+ }
65792
+ return false;
65793
+ };
65667
65794
  const FRAMEWORK_PACKAGES = {
65668
65795
  next: "nextjs",
65669
65796
  "@tanstack/react-start": "tanstack-start",
65670
65797
  "@remix-run/react": "remix",
65671
65798
  gatsby: "gatsby",
65672
65799
  astro: "astro",
65800
+ "@astrojs/react": "astro",
65673
65801
  vite: "vite",
65674
65802
  "react-scripts": "cra",
65675
65803
  expo: "expo",
65804
+ "expo-router": "expo",
65676
65805
  "react-native": "react-native"
65677
65806
  };
65678
65807
  const detectFramework = (dependencies) => {
@@ -66164,20 +66293,39 @@ const getDependencyDeclaration = ({ packageJson, packageName, sections }) => {
66164
66293
  version: null
66165
66294
  };
66166
66295
  };
66167
- const REACT_DEPENDENCY_NAMES = new Set([
66296
+ const REACT_PROJECT_DEPENDENCY_NAMES = new Set([
66168
66297
  "react",
66298
+ "react-dom",
66169
66299
  "react-native",
66170
66300
  "next",
66171
- "preact"
66301
+ "preact",
66302
+ "expo",
66303
+ "expo-router",
66304
+ "gatsby",
66305
+ "@remix-run/react",
66306
+ "@tanstack/react-start",
66307
+ "react-scripts",
66308
+ "@astrojs/react"
66172
66309
  ]);
66310
+ const REACT_THREE_FIBER_DEPENDENCY_NAMES = ["@react-three/fiber", "react-three-fiber"];
66311
+ const REACT_THREE_FIBER_ECOSYSTEM_DEPENDENCY_NAMES = [
66312
+ ...REACT_THREE_FIBER_DEPENDENCY_NAMES,
66313
+ "@react-three/drei",
66314
+ "@react-three/rapier",
66315
+ "@react-three/postprocessing",
66316
+ "@react-three/xr",
66317
+ "@react-three/cannon"
66318
+ ];
66319
+ const THREE_DEPENDENCY_NAMES = ["three", ...REACT_THREE_FIBER_ECOSYSTEM_DEPENDENCY_NAMES];
66173
66320
  const hasReactDependency = (packageJson) => {
66174
66321
  const allDependencies = {
66175
66322
  ...packageJson.peerDependencies,
66176
66323
  ...packageJson.dependencies,
66177
66324
  ...packageJson.devDependencies
66178
66325
  };
66179
- return Object.keys(allDependencies).some((packageName) => REACT_DEPENDENCY_NAMES.has(packageName));
66326
+ return Object.keys(allDependencies).some((packageName) => REACT_PROJECT_DEPENDENCY_NAMES.has(packageName));
66180
66327
  };
66328
+ const hasSupportedProjectDependency = (packageJson) => hasReactDependency(packageJson) || getDependencySpec(packageJson, "remotion") !== null || THREE_DEPENDENCY_NAMES.some((packageName) => getDependencySpec(packageJson, packageName) !== null);
66181
66329
  const getPreactVersion = (packageJson) => getDependencySpec(packageJson, "preact");
66182
66330
  const resolveCatalogBackedDependencyVersion = ({ rootDirectory, rootPackageJson, packageName, sourceDirectory = rootDirectory, sourcePackageJson = rootPackageJson, version }) => {
66183
66331
  if (version === null || !isCatalogReference(version)) return version;
@@ -66368,7 +66516,7 @@ const listWorkspacePackages = (rootDirectory) => {
66368
66516
  seenDirectories.add(workspacePackage.directory);
66369
66517
  packages.push(workspacePackage);
66370
66518
  };
66371
- if (hasReactDependency(packageJson)) pushIfNew({
66519
+ if (hasSupportedProjectDependency(packageJson)) pushIfNew({
66372
66520
  name: packageJson.name ?? path$1$1.basename(rootDirectory),
66373
66521
  directory: rootDirectory
66374
66522
  });
@@ -66376,7 +66524,7 @@ const listWorkspacePackages = (rootDirectory) => {
66376
66524
  const directories = resolveWorkspaceDirectories(rootDirectory, pattern);
66377
66525
  for (const workspaceDirectory of directories) {
66378
66526
  const workspacePackageJson = readPackageJson(path$1$1.join(workspaceDirectory, "package.json"));
66379
- if (!hasReactDependency(workspacePackageJson)) continue;
66527
+ if (!hasSupportedProjectDependency(workspacePackageJson)) continue;
66380
66528
  pushIfNew({
66381
66529
  name: workspacePackageJson.name ?? path$1$1.basename(workspaceDirectory),
66382
66530
  directory: workspaceDirectory
@@ -66408,6 +66556,29 @@ const getTanStackQueryVersion = (packageJson) => {
66408
66556
  packageNames: TANSTACK_REACT_QUERY_PACKAGES
66409
66557
  });
66410
66558
  };
66559
+ const hasAnyDependency = (packageJson, packageNames) => {
66560
+ const allDependencies = {
66561
+ ...packageJson.peerDependencies,
66562
+ ...packageJson.dependencies,
66563
+ ...packageJson.devDependencies,
66564
+ ...packageJson.optionalDependencies
66565
+ };
66566
+ return packageNames.some((packageName) => allDependencies[packageName] !== void 0);
66567
+ };
66568
+ const BASE_UI_PACKAGES = ["@base-ui-components/react", "@base-ui/react"];
66569
+ const hasBaseUiDependency = (packageJson) => hasAnyDependency(packageJson, BASE_UI_PACKAGES);
66570
+ const RADIX_UNIFIED_PACKAGE = "radix-ui";
66571
+ const RADIX_PRIMITIVE_PACKAGE_PREFIX = "@radix-ui/react-";
66572
+ const RADIX_NON_PRIMITIVE_PACKAGES = new Set(["@radix-ui/react-icons"]);
66573
+ const hasRadixUiDependency = (packageJson) => {
66574
+ const allDependencies = {
66575
+ ...packageJson.peerDependencies,
66576
+ ...packageJson.dependencies,
66577
+ ...packageJson.devDependencies,
66578
+ ...packageJson.optionalDependencies
66579
+ };
66580
+ return Object.keys(allDependencies).some((packageName) => packageName === RADIX_UNIFIED_PACKAGE || packageName.startsWith(RADIX_PRIMITIVE_PACKAGE_PREFIX) && !RADIX_NON_PRIMITIVE_PACKAGES.has(packageName));
66581
+ };
66411
66582
  const STYLED_COMPONENTS_PACKAGES = ["styled-components"];
66412
66583
  const getStyledComponentsVersion = (packageJson) => {
66413
66584
  return getPreferredDependencyVersion({
@@ -66438,12 +66609,15 @@ const hasI18nDependency = (packageJson) => {
66438
66609
  };
66439
66610
  return I18N_PACKAGES.some((packageName) => allDependencies[packageName] !== void 0);
66440
66611
  };
66612
+ const REACT_ARIA_COMPONENT_PACKAGES = ["react-aria-components"];
66613
+ const TANSTACK_TABLE_PACKAGES = ["@tanstack/react-table"];
66614
+ const TANSTACK_VIRTUAL_PACKAGES = ["@tanstack/react-virtual"];
66615
+ const TANSTACK_FORM_PACKAGES = ["@tanstack/react-form"];
66441
66616
  const REANIMATED_DEPENDENCY_NAME = "react-native-reanimated";
66442
66617
  const MOBX_REACT_PACKAGE_NAME = "mobx-react";
66443
66618
  const MOBX_REACT_LITE_PACKAGE_NAME = "mobx-react-lite";
66444
66619
  const MOBX_STATE_TREE_PACKAGE_NAME = "mobx-state-tree";
66445
66620
  const MOBX_REACT_OBSERVER_PACKAGE_NAME = "mobx-react-observer";
66446
- const REACT_THREE_FIBER_DEPENDENCY_NAMES = ["@react-three/fiber", "react-three-fiber"];
66447
66621
  const REACT_THREE_FIBER_SECTIONS = [
66448
66622
  "dependencies",
66449
66623
  "peerDependencies",
@@ -66456,8 +66630,6 @@ const THREE_DEPENDENCY_SECTIONS = [
66456
66630
  "optionalDependencies",
66457
66631
  "devDependencies"
66458
66632
  ];
66459
- const REACT_THREE_FIBER_ECOSYSTEM_DEPENDENCY_NAMES = [...REACT_THREE_FIBER_DEPENDENCY_NAMES, "@react-three/drei"];
66460
- const THREE_DEPENDENCY_NAMES = [...REACT_THREE_FIBER_ECOSYSTEM_DEPENDENCY_NAMES, "three"];
66461
66633
  const REACT_ROUTER_DEPENDENCY_NAMES = [
66462
66634
  "@react-router/dev",
66463
66635
  "react-router-dom",
@@ -66631,6 +66803,13 @@ const evaluateManifestFacts = (facts, packageJson, directory, rootDirectory, roo
66631
66803
  });
66632
66804
  if (styledComponentsVersion && shouldReplaceStyledComponentsVersion(facts.styledComponentsVersion, styledComponentsVersion)) facts.styledComponentsVersion = styledComponentsVersion;
66633
66805
  facts.hasI18nLibrary = facts.hasI18nLibrary || hasI18nDependency(packageJson);
66806
+ facts.hasShadcnUi = facts.hasShadcnUi || detectShadcnUi(directory);
66807
+ facts.hasRadixUi = facts.hasRadixUi || hasRadixUiDependency(packageJson);
66808
+ facts.hasBaseUi = facts.hasBaseUi || hasBaseUiDependency(packageJson);
66809
+ facts.hasReactAriaComponents = facts.hasReactAriaComponents || hasAnyDependency(packageJson, REACT_ARIA_COMPONENT_PACKAGES);
66810
+ facts.hasTanstackTable = facts.hasTanstackTable || hasAnyDependency(packageJson, TANSTACK_TABLE_PACKAGES);
66811
+ facts.hasTanstackVirtual = facts.hasTanstackVirtual || hasAnyDependency(packageJson, TANSTACK_VIRTUAL_PACKAGES);
66812
+ facts.hasTanstackForm = facts.hasTanstackForm || hasAnyDependency(packageJson, TANSTACK_FORM_PACKAGES);
66634
66813
  for (const packageName of REACT_THREE_FIBER_DEPENDENCY_NAMES) {
66635
66814
  const version = resolveCatalogBackedDependencyVersion({
66636
66815
  rootDirectory,
@@ -66733,6 +66912,13 @@ const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGro
66733
66912
  tanstackQueryVersion: null,
66734
66913
  styledComponentsVersion: null,
66735
66914
  hasI18nLibrary: false,
66915
+ hasShadcnUi: false,
66916
+ hasRadixUi: false,
66917
+ hasBaseUi: false,
66918
+ hasReactAriaComponents: false,
66919
+ hasTanstackTable: false,
66920
+ hasTanstackVirtual: false,
66921
+ hasTanstackForm: false,
66736
66922
  hasReactNativeAwarePackage: false,
66737
66923
  hasReanimatedAwarePackage: false,
66738
66924
  hasSsrDependency: false,
@@ -66961,13 +67147,13 @@ const detectTargetBlankOpenerProtection = (directory, packageJson) => {
66961
67147
  if (browserslistRequirement === "noreferrer" || electronRequirement === "noreferrer") return "noreferrer";
66962
67148
  if (browserslistRequirement === "noopener" || electronRequirement === "noopener") return "noopener";
66963
67149
  };
66964
- const toReactWorkspacePackages = (directories) => {
67150
+ const toSupportedWorkspacePackages = (directories) => {
66965
67151
  const packages = [];
66966
67152
  for (const directory of directories) {
66967
67153
  const packageJsonPath = path$1$1.join(directory, "package.json");
66968
67154
  if (!isFile(packageJsonPath)) continue;
66969
67155
  const packageJson = readPackageJson(packageJsonPath);
66970
- if (!hasReactDependency(packageJson)) continue;
67156
+ if (!hasSupportedProjectDependency(packageJson)) continue;
66971
67157
  const name = packageJson.name ?? path$1$1.basename(directory);
66972
67158
  packages.push({
66973
67159
  name,
@@ -66980,7 +67166,7 @@ const listManifestWorkspacePackages = (rootDirectory) => {
66980
67166
  if (isFile(path$1$1.join(rootDirectory, "package.json"))) return listWorkspacePackages(rootDirectory);
66981
67167
  const patterns = parsePnpmWorkspacePatterns(rootDirectory);
66982
67168
  const nxPatterns = patterns.length > 0 ? [] : getNxWorkspaceDirectories(rootDirectory);
66983
- return toReactWorkspacePackages((patterns.length > 0 ? patterns : nxPatterns).flatMap((pattern) => resolveWorkspaceDirectories(rootDirectory, pattern)));
67169
+ return toSupportedWorkspacePackages((patterns.length > 0 ? patterns : nxPatterns).flatMap((pattern) => resolveWorkspaceDirectories(rootDirectory, pattern)));
66984
67170
  };
66985
67171
  const NON_PROJECT_DIRECTORIES = new Set([
66986
67172
  "AppData",
@@ -66988,7 +67174,7 @@ const NON_PROJECT_DIRECTORIES = new Set([
66988
67174
  "Library"
66989
67175
  ]);
66990
67176
  const MAX_SCAN_DEPTH = 6;
66991
- const discoverReactSubprojectsByFilesystem = (rootDirectory) => {
67177
+ const discoverSupportedSubprojectsByFilesystem = (rootDirectory) => {
66992
67178
  const packages = [];
66993
67179
  const pendingDirectories = [{
66994
67180
  directory: rootDirectory,
@@ -67001,7 +67187,7 @@ const discoverReactSubprojectsByFilesystem = (rootDirectory) => {
67001
67187
  const packageJsonPath = path$1$1.join(currentDirectory, "package.json");
67002
67188
  if (isFile(packageJsonPath)) {
67003
67189
  const packageJson = readPackageJson(packageJsonPath);
67004
- if (hasReactDependency(packageJson)) {
67190
+ if (hasSupportedProjectDependency(packageJson)) {
67005
67191
  const name = packageJson.name ?? path$1$1.basename(currentDirectory);
67006
67192
  packages.push({
67007
67193
  name,
@@ -67021,11 +67207,11 @@ const discoverReactSubprojectsByFilesystem = (rootDirectory) => {
67021
67207
  }
67022
67208
  return packages;
67023
67209
  };
67024
- const discoverReactSubprojects = (rootDirectory) => {
67210
+ const discoverSupportedSubprojects = (rootDirectory) => {
67025
67211
  if (!isDirectory(rootDirectory)) return [];
67026
67212
  const manifestPackages = listManifestWorkspacePackages(rootDirectory);
67027
67213
  if (manifestPackages.length > 0) return manifestPackages;
67028
- return discoverReactSubprojectsByFilesystem(rootDirectory);
67214
+ return discoverSupportedSubprojectsByFilesystem(rootDirectory);
67029
67215
  };
67030
67216
  const cachedProjectInfos = /* @__PURE__ */ new Map();
67031
67217
  const clearProjectCache = () => {
@@ -67084,6 +67270,12 @@ const discoverProjectWithoutPackageJson = (directory, options) => {
67084
67270
  remotionVersion: null,
67085
67271
  remotionMajorVersion: null,
67086
67272
  hasI18nLibrary: false,
67273
+ hasRadixUi: false,
67274
+ hasBaseUi: false,
67275
+ hasReactAriaComponents: false,
67276
+ hasTanstackTable: false,
67277
+ hasTanstackVirtual: false,
67278
+ hasTanstackForm: false,
67087
67279
  tanstackQueryVersion: null,
67088
67280
  styledComponentsVersion: null,
67089
67281
  hasThree: false,
@@ -67105,6 +67297,7 @@ const discoverProjectWithoutPackageJson = (directory, options) => {
67105
67297
  shopifyFlashListMajorVersion: null,
67106
67298
  hasReanimated: false,
67107
67299
  reanimatedVersion: null,
67300
+ hasShadcnUi: detectShadcnUi(directory),
67108
67301
  isPreES2023Target: hasOwnTsConfig && detectPreES2023Target(directory),
67109
67302
  isStaticExport: false,
67110
67303
  sourceFileCount
@@ -67267,6 +67460,12 @@ const discoverProject = (directory, options = {}) => {
67267
67460
  hasReactCompilerLintPlugin: detectReactCompilerLintPlugin(directory, packageJson),
67268
67461
  hasTanStackQuery: tanstackQueryVersion !== null,
67269
67462
  hasI18nLibrary: workspaceFacts.hasI18nLibrary,
67463
+ hasRadixUi: workspaceFacts.hasRadixUi,
67464
+ hasBaseUi: workspaceFacts.hasBaseUi,
67465
+ hasReactAriaComponents: workspaceFacts.hasReactAriaComponents,
67466
+ hasTanstackTable: workspaceFacts.hasTanstackTable,
67467
+ hasTanstackVirtual: workspaceFacts.hasTanstackVirtual,
67468
+ hasTanstackForm: workspaceFacts.hasTanstackForm,
67270
67469
  tanstackQueryVersion,
67271
67470
  styledComponentsVersion: workspaceFacts.styledComponentsVersion,
67272
67471
  valtioVersion,
@@ -67293,6 +67492,7 @@ const discoverProject = (directory, options = {}) => {
67293
67492
  shopifyFlashListMajorVersion: shopifyFlashListVersion === null ? null : getLowestDependencyMajor(shopifyFlashListVersion),
67294
67493
  hasReanimated,
67295
67494
  reanimatedVersion,
67495
+ hasShadcnUi: workspaceFacts.hasShadcnUi,
67296
67496
  isPreES2023Target,
67297
67497
  isStaticExport: framework === "nextjs" && detectNextjsStaticExport(workspaceFacts.next.sourceDirectory ?? directory),
67298
67498
  sourceFileCount
@@ -67300,16 +67500,31 @@ const discoverProject = (directory, options = {}) => {
67300
67500
  cachedProjectInfos.set(directory, projectInfo);
67301
67501
  return projectInfo;
67302
67502
  };
67503
+ const REACT_COMPATIBLE_FRAMEWORKS = new Set([
67504
+ "nextjs",
67505
+ "tanstack-start",
67506
+ "cra",
67507
+ "remix",
67508
+ "gatsby",
67509
+ "expo",
67510
+ "react-native",
67511
+ "preact"
67512
+ ]);
67303
67513
  /**
67304
- * A project is worth scanning when it has React/Preact (the framework-
67514
+ * Whether project discovery resolved a React-compatible runtime directly or
67515
+ * through a framework whose runtime is necessarily React-compatible.
67516
+ */
67517
+ const hasReactRuntime = (project) => project.reactVersion !== null || project.preactVersion !== null || REACT_COMPATIBLE_FRAMEWORKS.has(project.framework);
67518
+ /**
67519
+ * A project is worth scanning when it has a supported runtime (the runtime-
67305
67520
  * specific rules apply) OR it simply has source files to lint. The
67306
67521
  * second arm is what lets a plain TypeScript/JavaScript codebase — no
67307
67522
  * React dependency at all — run the framework-agnostic rules
67308
67523
  * (security, architecture, zod, bundle-size, …) instead of hard-failing
67309
- * with "No React dependency". Only a directory with neither React nor a
67310
- * single source file has nothing to analyze.
67524
+ * with "No React dependency". Only a directory with neither a supported
67525
+ * runtime nor a single source file has nothing to analyze.
67311
67526
  */
67312
- const isAnalyzableProject = (project) => project.reactVersion !== null || project.preactVersion !== null || project.sourceFileCount > 0;
67527
+ const isAnalyzableProject = (project) => hasReactRuntime(project) || project.hasThree === true || project.hasRemotion === true || project.sourceFileCount > 0;
67313
67528
  const LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY = {
67314
67529
  "deslop/circular-dependency": "react-doctor/circular-dependency",
67315
67530
  "deslop/unused-dependency": "react-doctor/unused-dependency",
@@ -69227,11 +69442,11 @@ const resolveConfigRootDir = (config, configSourceDirectory) => {
69227
69442
  };
69228
69443
  const resolveDiagnoseTarget = (directory, options = {}) => {
69229
69444
  if (isFile(path$1$1.join(directory, "package.json"))) return directory;
69230
- const reactSubprojects = discoverReactSubprojects(directory);
69231
- if (reactSubprojects.length === 0) return null;
69232
- if (reactSubprojects.length === 1) return reactSubprojects[0].directory;
69445
+ const subprojects = discoverSupportedSubprojects(directory);
69446
+ if (subprojects.length === 0) return null;
69447
+ if (subprojects.length === 1) return subprojects[0].directory;
69233
69448
  if (options.allowAmbiguous === true) return null;
69234
- throw new AmbiguousProjectError(directory, reactSubprojects.map((subproject) => path$1$1.relative(directory, subproject.directory)).toSorted());
69449
+ throw new AmbiguousProjectError(directory, subprojects.map((subproject) => path$1$1.relative(directory, subproject.directory)).toSorted());
69235
69450
  };
69236
69451
  /**
69237
69452
  * The canonical entry-point translation shared by every public shell
@@ -69613,18 +69828,58 @@ const METRO_CONFIG_FILE_NAMES = [
69613
69828
  const EXPO_METRO_CONFIG_EXTEND_SIGNALS = [
69614
69829
  "expo/metro-config",
69615
69830
  "@sentry/react-native/metro",
69616
- "getSentryExpoConfig"
69831
+ "getSentryExpoConfig",
69832
+ "posthog-react-native/metro",
69833
+ "getPostHogExpoConfig"
69617
69834
  ];
69835
+ const resolveLocalMetroConfigModule = (moduleSpecifier, importingFilePath, rootDirectory) => {
69836
+ if (!moduleSpecifier.startsWith(".")) return void 0;
69837
+ const importedPath = path$1$1.resolve(path$1$1.dirname(importingFilePath), moduleSpecifier);
69838
+ const candidateBasePaths = [
69839
+ importedPath,
69840
+ importedPath.replace(/\.[cm]?js$/, ""),
69841
+ path$1$1.join(importedPath, "index")
69842
+ ];
69843
+ for (const candidateBasePath of candidateBasePaths) {
69844
+ const resolvedPath = resolveEntryWithExtensions(candidateBasePath);
69845
+ if (resolvedPath !== void 0 && isFile(resolvedPath) && isPathInsideDirectoryOrEqual(resolvedPath, rootDirectory)) return resolvedPath;
69846
+ }
69847
+ };
69848
+ const hasExpoMetroConfigSignal = (metroConfigPath, rootDirectory) => {
69849
+ const pendingFilePaths = [metroConfigPath];
69850
+ const visitedFilePaths = /* @__PURE__ */ new Set();
69851
+ while (pendingFilePaths.length > 0) {
69852
+ const currentFilePath = pendingFilePaths.pop();
69853
+ if (currentFilePath === void 0 || visitedFilePaths.has(currentFilePath)) continue;
69854
+ if (visitedFilePaths.size >= 100) return true;
69855
+ visitedFilePaths.add(currentFilePath);
69856
+ let contents;
69857
+ try {
69858
+ contents = fs$1$3.readFileSync(currentFilePath, "utf-8");
69859
+ } catch {
69860
+ return true;
69861
+ }
69862
+ if (EXPO_METRO_CONFIG_EXTEND_SIGNALS.some((signal) => contents.includes(signal))) return true;
69863
+ let moduleSpecifiers;
69864
+ try {
69865
+ moduleSpecifiers = collectStaticModuleSpecifiers(contents, {
69866
+ filePath: currentFilePath,
69867
+ includeTypeOnly: false
69868
+ });
69869
+ } catch {
69870
+ continue;
69871
+ }
69872
+ for (const moduleSpecifier of moduleSpecifiers) {
69873
+ const localModulePath = resolveLocalMetroConfigModule(moduleSpecifier, currentFilePath, rootDirectory);
69874
+ if (localModulePath !== void 0 && !visitedFilePaths.has(localModulePath)) pendingFilePaths.push(localModulePath);
69875
+ }
69876
+ }
69877
+ return false;
69878
+ };
69618
69879
  const checkExpoMetroConfig = (context) => {
69619
69880
  const metroConfigPath = METRO_CONFIG_FILE_NAMES.map((fileName) => path$1$1.join(context.rootDirectory, fileName)).find((candidatePath) => isFile(candidatePath));
69620
69881
  if (metroConfigPath === void 0) return [];
69621
- let contents;
69622
- try {
69623
- contents = fs$1$3.readFileSync(metroConfigPath, "utf-8");
69624
- } catch {
69625
- return [];
69626
- }
69627
- if (EXPO_METRO_CONFIG_EXTEND_SIGNALS.some((signal) => contents.includes(signal))) return [];
69882
+ if (hasExpoMetroConfigSignal(metroConfigPath, context.rootDirectory)) return [];
69628
69883
  return [buildExpoDiagnostic({
69629
69884
  rule: "expo-metro-config",
69630
69885
  filePath: path$1$1.basename(metroConfigPath),
@@ -70966,21 +71221,6 @@ function* collectSecurityScanFiles(rootDirectory, excludedDirectories = /* @__PU
70966
71221
  }
70967
71222
  }
70968
71223
  }
70969
- const REACT_COMPATIBLE_FRAMEWORKS = new Set([
70970
- "nextjs",
70971
- "tanstack-start",
70972
- "cra",
70973
- "remix",
70974
- "gatsby",
70975
- "expo",
70976
- "react-native",
70977
- "preact"
70978
- ]);
70979
- /**
70980
- * Whether project discovery resolved a React-compatible runtime directly or
70981
- * through a framework whose runtime is necessarily React-compatible.
70982
- */
70983
- const hasReactRuntime = (project) => project.reactVersion !== null || project.preactVersion !== null || REACT_COMPATIBLE_FRAMEWORKS.has(project.framework);
70984
71224
  const CLIENT_ONLY_FRAMEWORKS = new Set([
70985
71225
  "vite",
70986
71226
  "cra",
@@ -71041,6 +71281,13 @@ const buildCapabilities = (project) => {
71041
71281
  minor: 0
71042
71282
  })) capabilities.add("tailwind:4");
71043
71283
  }
71284
+ if (project.hasShadcnUi === true) capabilities.add("shadcn");
71285
+ if (project.hasRadixUi === true) capabilities.add("radix-ui");
71286
+ if (project.hasBaseUi === true) capabilities.add("base-ui");
71287
+ if (project.hasReactAriaComponents === true) capabilities.add("react-aria");
71288
+ if (project.hasTanstackTable === true) capabilities.add("tanstack-table");
71289
+ if (project.hasTanstackVirtual === true) capabilities.add("tanstack-virtual");
71290
+ if (project.hasTanstackForm === true) capabilities.add("tanstack-form");
71044
71291
  if (project.zodVersion !== null) capabilities.add("zod");
71045
71292
  if (project.zodMajorVersion !== null && project.zodMajorVersion >= 4) capabilities.add("zod:4");
71046
71293
  if (project.mobxVersion !== void 0 && project.mobxVersion !== null || project.hasMobxReact === true || project.hasMobxReactLite === true || project.hasMobxStateTree === true || project.hasMobxReactObserver === true) capabilities.add("mobx");
@@ -71218,72 +71465,6 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
71218
71465
  }
71219
71466
  return session.diagnostics;
71220
71467
  };
71221
- var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
71222
- let p = process || {}, argv = p.argv || [], env = p.env || {};
71223
- 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);
71224
- let formatter = (open, close, replace = open) => (input) => {
71225
- let string = "" + input, index = string.indexOf(close, open.length);
71226
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
71227
- };
71228
- let replaceClose = (string, close, replace, index) => {
71229
- let result = "", cursor = 0;
71230
- do {
71231
- result += string.substring(cursor, index) + replace;
71232
- cursor = index + close.length;
71233
- index = string.indexOf(close, cursor);
71234
- } while (~index);
71235
- return result + string.substring(cursor);
71236
- };
71237
- let createColors = (enabled = isColorSupported) => {
71238
- let f = enabled ? formatter : () => String;
71239
- return {
71240
- isColorSupported: enabled,
71241
- reset: f("\x1B[0m", "\x1B[0m"),
71242
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
71243
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
71244
- italic: f("\x1B[3m", "\x1B[23m"),
71245
- underline: f("\x1B[4m", "\x1B[24m"),
71246
- inverse: f("\x1B[7m", "\x1B[27m"),
71247
- hidden: f("\x1B[8m", "\x1B[28m"),
71248
- strikethrough: f("\x1B[9m", "\x1B[29m"),
71249
- black: f("\x1B[30m", "\x1B[39m"),
71250
- red: f("\x1B[31m", "\x1B[39m"),
71251
- green: f("\x1B[32m", "\x1B[39m"),
71252
- yellow: f("\x1B[33m", "\x1B[39m"),
71253
- blue: f("\x1B[34m", "\x1B[39m"),
71254
- magenta: f("\x1B[35m", "\x1B[39m"),
71255
- cyan: f("\x1B[36m", "\x1B[39m"),
71256
- white: f("\x1B[37m", "\x1B[39m"),
71257
- gray: f("\x1B[90m", "\x1B[39m"),
71258
- bgBlack: f("\x1B[40m", "\x1B[49m"),
71259
- bgRed: f("\x1B[41m", "\x1B[49m"),
71260
- bgGreen: f("\x1B[42m", "\x1B[49m"),
71261
- bgYellow: f("\x1B[43m", "\x1B[49m"),
71262
- bgBlue: f("\x1B[44m", "\x1B[49m"),
71263
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
71264
- bgCyan: f("\x1B[46m", "\x1B[49m"),
71265
- bgWhite: f("\x1B[47m", "\x1B[49m"),
71266
- blackBright: f("\x1B[90m", "\x1B[39m"),
71267
- redBright: f("\x1B[91m", "\x1B[39m"),
71268
- greenBright: f("\x1B[92m", "\x1B[39m"),
71269
- yellowBright: f("\x1B[93m", "\x1B[39m"),
71270
- blueBright: f("\x1B[94m", "\x1B[39m"),
71271
- magentaBright: f("\x1B[95m", "\x1B[39m"),
71272
- cyanBright: f("\x1B[96m", "\x1B[39m"),
71273
- whiteBright: f("\x1B[97m", "\x1B[39m"),
71274
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
71275
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
71276
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
71277
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
71278
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
71279
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
71280
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
71281
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
71282
- };
71283
- };
71284
- module.exports = createColors();
71285
- module.exports.createColors = createColors;
71286
- })))(), 1);
71287
71468
  const highlighter = {
71288
71469
  error: import_picocolors.default.red,
71289
71470
  warn: import_picocolors.default.yellow,
@@ -72601,7 +72782,11 @@ var Git = class Git extends Service()("react-doctor/Git") {
72601
72782
  const symref = yield* runGit(directory, ["symbolic-ref", "refs/remotes/origin/HEAD"]);
72602
72783
  if (symref.status === 0) {
72603
72784
  const trimmed = trimOrNull(symref.stdout);
72604
- if (trimmed !== null) return trimmed.replace("refs/remotes/origin/", "");
72785
+ if (trimmed !== null) {
72786
+ const branchName = trimmed.replace("refs/remotes/origin/", "");
72787
+ const remoteBranch = `origin/${branchName}`;
72788
+ return (yield* branchExists(directory, remoteBranch)) ? remoteBranch : branchName;
72789
+ }
72605
72790
  }
72606
72791
  const candidates = yield* runGit(directory, [
72607
72792
  "for-each-ref",
@@ -72609,7 +72794,10 @@ var Git = class Git extends Service()("react-doctor/Git") {
72609
72794
  ...DEFAULT_BRANCH_CANDIDATES.map((candidate) => `refs/heads/${candidate}`)
72610
72795
  ]);
72611
72796
  if (candidates.status !== 0) return null;
72612
- return trimOrNull(candidates.stdout.split("\n")[0] ?? "");
72797
+ const localBranch = trimOrNull(candidates.stdout.split("\n")[0] ?? "");
72798
+ if (localBranch === null) return null;
72799
+ const remoteBranch = `origin/${localBranch}`;
72800
+ return (yield* branchExists(directory, remoteBranch)) ? remoteBranch : localBranch;
72613
72801
  }).pipe(withSpan("Git.defaultBranch"));
72614
72802
  const branchExists = (directory, branch) => runGit(directory, [
72615
72803
  "rev-parse",
@@ -72946,59 +73134,11 @@ const isLocalPathExtend = (entry) => {
72946
73134
  for (const prefix of EXTENDS_LOCAL_PATH_PREFIXES) if (entry.startsWith(prefix)) return true;
72947
73135
  return false;
72948
73136
  };
72949
- const stripJsoncComments = (raw) => {
72950
- let result = "";
72951
- let cursor = 0;
72952
- let inString = false;
72953
- let stringQuote = "";
72954
- while (cursor < raw.length) {
72955
- const character = raw[cursor];
72956
- const nextCharacter = raw[cursor + 1];
72957
- if (inString) {
72958
- result += character;
72959
- if (character === "\\" && cursor + 1 < raw.length) {
72960
- result += nextCharacter;
72961
- cursor += 2;
72962
- continue;
72963
- }
72964
- if (character === stringQuote) inString = false;
72965
- cursor += 1;
72966
- continue;
72967
- }
72968
- if (character === "\"" || character === "'") {
72969
- inString = true;
72970
- stringQuote = character;
72971
- result += character;
72972
- cursor += 1;
72973
- continue;
72974
- }
72975
- if (character === "/" && nextCharacter === "/") {
72976
- const lineEndIndex = raw.indexOf("\n", cursor);
72977
- cursor = lineEndIndex === -1 ? raw.length : lineEndIndex;
72978
- continue;
72979
- }
72980
- if (character === "/" && nextCharacter === "*") {
72981
- const blockEndIndex = raw.indexOf("*/", cursor + 2);
72982
- cursor = blockEndIndex === -1 ? raw.length : blockEndIndex + 2;
72983
- continue;
72984
- }
72985
- result += character;
72986
- cursor += 1;
72987
- }
72988
- return result;
72989
- };
72990
- const parseJsonOrJsonc = (raw) => {
72991
- try {
72992
- return JSON.parse(raw);
72993
- } catch {
72994
- return JSON.parse(stripJsoncComments(raw));
72995
- }
72996
- };
72997
73137
  const canOxlintExtendConfig = (configPath) => {
72998
73138
  if (!configPath.endsWith(".eslintrc.json")) return true;
72999
73139
  let parsed;
73000
73140
  try {
73001
- parsed = parseJsonOrJsonc(fs$1$3.readFileSync(configPath, "utf-8"));
73141
+ parsed = parseJSONC(fs$1$3.readFileSync(configPath, "utf-8"), { allowTrailingComma: true });
73002
73142
  } catch {
73003
73143
  return true;
73004
73144
  }
@@ -73110,7 +73250,39 @@ const detectUserLintConfigPaths = (rootDirectory) => {
73110
73250
  }
73111
73251
  return [];
73112
73252
  };
73253
+ const readAdoptedLintConfigSettings = (configPaths) => {
73254
+ const mergedSettings = /* @__PURE__ */ new Map();
73255
+ for (const configPath of configPaths) {
73256
+ let parsed;
73257
+ try {
73258
+ parsed = parseJSONC(fs$1$3.readFileSync(configPath, "utf-8"), { allowTrailingComma: true });
73259
+ } catch {
73260
+ continue;
73261
+ }
73262
+ if (!isPlainObject(parsed)) continue;
73263
+ const settings = parsed.settings;
73264
+ if (!isPlainObject(settings)) continue;
73265
+ for (const [pluginName, pluginSettings] of Object.entries(settings)) {
73266
+ if (pluginName === "react-doctor") continue;
73267
+ mergedSettings.set(pluginName, pluginSettings);
73268
+ }
73269
+ }
73270
+ return Object.fromEntries(mergedSettings);
73271
+ };
73113
73272
  const DISABLE_DIRECTIVE_PATTERN = /(eslint|oxlint)-disable/;
73273
+ const getBackupRootDirectory = (rootDirectory) => path$1$1.join(rootDirectory, ...DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS);
73274
+ const getBackupPath = (rootDirectory, absolutePath) => {
73275
+ if (!isPathInsideDirectory(absolutePath, rootDirectory)) return null;
73276
+ return path$1$1.join(getBackupRootDirectory(rootDirectory), path$1$1.relative(rootDirectory, absolutePath));
73277
+ };
73278
+ const removeBackupRootIfEmpty = (rootDirectory) => {
73279
+ const backupRootDirectory = getBackupRootDirectory(rootDirectory);
73280
+ if (!walkSourceTreeFiles(backupRootDirectory).next().done) return;
73281
+ fs$1$3.rmSync(backupRootDirectory, {
73282
+ recursive: true,
73283
+ force: true
73284
+ });
73285
+ };
73114
73286
  const neutralizedFileLeases = /* @__PURE__ */ new Map();
73115
73287
  const activeNeutralizationInitializations = /* @__PURE__ */ new Set();
73116
73288
  const directoriesOverlap = (left, right) => {
@@ -73202,8 +73374,50 @@ const collectNeutralizationCandidatePaths = (rootDirectory, discoveredRelativePa
73202
73374
  }
73203
73375
  return candidatePaths;
73204
73376
  };
73377
+ const recoverOrphanedBackups = (rootDirectory) => {
73378
+ const blockedPaths = /* @__PURE__ */ new Set();
73379
+ const backupRootDirectory = getBackupRootDirectory(rootDirectory);
73380
+ for (const { absolutePath: backupPath } of walkSourceTreeFiles(backupRootDirectory)) {
73381
+ const originalPath = path$1$1.join(rootDirectory, path$1$1.relative(backupRootDirectory, backupPath));
73382
+ if (neutralizedFileLeases.has(originalPath)) continue;
73383
+ let backupContent;
73384
+ let currentContent;
73385
+ try {
73386
+ backupContent = fs$1$3.readFileSync(backupPath, "utf-8");
73387
+ currentContent = fs$1$3.readFileSync(originalPath, "utf-8");
73388
+ } catch (error) {
73389
+ process.stderr.write(`[react-doctor] Could not recover ${originalPath}: ${messageFromUnknown(error)}. The backup remains at ${backupPath}.\n`);
73390
+ blockedPaths.add(originalPath);
73391
+ continue;
73392
+ }
73393
+ if (currentContent === backupContent) {
73394
+ try {
73395
+ fs$1$3.rmSync(backupPath);
73396
+ } catch (error) {
73397
+ process.stderr.write(`[react-doctor] Failed to delete stale backup ${backupPath}: ${messageFromUnknown(error)}\n`);
73398
+ blockedPaths.add(originalPath);
73399
+ }
73400
+ continue;
73401
+ }
73402
+ if (currentContent !== neutralizeContent(backupContent)) {
73403
+ process.stderr.write(`[react-doctor] Did not overwrite changed file ${originalPath}. Recover it manually from ${backupPath}.\n`);
73404
+ blockedPaths.add(originalPath);
73405
+ continue;
73406
+ }
73407
+ try {
73408
+ fs$1$3.writeFileSync(originalPath, backupContent);
73409
+ fs$1$3.rmSync(backupPath);
73410
+ } catch (error) {
73411
+ process.stderr.write(`[react-doctor] Failed to restore ${originalPath} from backup: ${messageFromUnknown(error)}\n`);
73412
+ blockedPaths.add(originalPath);
73413
+ }
73414
+ }
73415
+ removeBackupRootIfEmpty(rootDirectory);
73416
+ return blockedPaths;
73417
+ };
73205
73418
  const neutralizeDisableDirectives = async (rootDirectory, includePaths, options = {}) => {
73206
73419
  const resolvedRootDirectory = fs$1$3.realpathSync(rootDirectory);
73420
+ const blockedPaths = /* @__PURE__ */ new Set();
73207
73421
  const leasedPaths = /* @__PURE__ */ new Set();
73208
73422
  let isRestored = false;
73209
73423
  const restore = () => {
@@ -73216,16 +73430,24 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
73216
73430
  if (lease.referenceCount > 0) continue;
73217
73431
  neutralizedFileLeases.delete(absolutePath);
73218
73432
  try {
73219
- fs$1$3.writeFileSync(absolutePath, lease.originalContent);
73433
+ const currentContent = fs$1$3.readFileSync(absolutePath, "utf-8");
73434
+ if (currentContent !== lease.neutralizedContent && currentContent !== lease.originalContent) {
73435
+ process.stderr.write(`[react-doctor] Did not overwrite changed file ${absolutePath}. Recover it manually from ${lease.backupPath}.\n`);
73436
+ continue;
73437
+ }
73438
+ if (currentContent === lease.neutralizedContent) fs$1$3.writeFileSync(absolutePath, lease.originalContent);
73439
+ fs$1$3.rmSync(lease.backupPath, { force: true });
73220
73440
  } catch (error) {
73221
- process.stderr.write(`[react-doctor] Failed to restore inline disable directives in ${absolutePath}: ${messageFromUnknown(error)}\n[react-doctor] Run: git checkout -- ${absolutePath}\n`);
73441
+ process.stderr.write(`[react-doctor] Failed to restore inline disable directives in ${absolutePath}: ${messageFromUnknown(error)}. The backup remains at ${lease.backupPath}.\n`);
73222
73442
  }
73223
73443
  }
73444
+ removeBackupRootIfEmpty(resolvedRootDirectory);
73224
73445
  };
73225
73446
  const onExit = () => restore();
73226
73447
  process.once("exit", onExit);
73227
73448
  const leaseCandidatePath = (absolutePath) => {
73228
73449
  if (leasedPaths.has(absolutePath)) return;
73450
+ if (blockedPaths.has(absolutePath)) return;
73229
73451
  const existingLease = neutralizedFileLeases.get(absolutePath);
73230
73452
  if (existingLease) {
73231
73453
  existingLease.referenceCount += 1;
@@ -73240,9 +73462,20 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
73240
73462
  }
73241
73463
  const neutralizedContent = neutralizeContent(originalContent);
73242
73464
  if (neutralizedContent !== originalContent) {
73465
+ const backupPath = getBackupPath(resolvedRootDirectory, absolutePath);
73466
+ if (backupPath === null) return;
73467
+ try {
73468
+ fs$1$3.mkdirSync(path$1$1.dirname(backupPath), { recursive: true });
73469
+ fs$1$3.writeFileSync(backupPath, originalContent, { flag: "wx" });
73470
+ } catch (error) {
73471
+ process.stderr.write(`[react-doctor] Did not modify ${absolutePath}: ${messageFromUnknown(error)}. Check ${backupPath}.\n`);
73472
+ return;
73473
+ }
73243
73474
  fs$1$3.writeFileSync(absolutePath, neutralizedContent);
73244
73475
  neutralizedFileLeases.set(absolutePath, {
73476
+ backupPath,
73245
73477
  originalContent,
73478
+ neutralizedContent,
73246
73479
  referenceCount: 1
73247
73480
  });
73248
73481
  leasedPaths.add(absolutePath);
@@ -73250,6 +73483,8 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
73250
73483
  };
73251
73484
  try {
73252
73485
  await withOverlappingInitializationLock(resolvedRootDirectory, async () => {
73486
+ for (const blockedPath of recoverOrphanedBackups(resolvedRootDirectory)) blockedPaths.add(blockedPath);
73487
+ if (options.recoverOnly) return;
73253
73488
  for (const absolutePath of collectNeutralizationCandidatePaths(resolvedRootDirectory, [], includePaths)) if (neutralizedFileLeases.has(absolutePath)) leaseCandidatePath(absolutePath);
73254
73489
  const discoveredRelativePaths = await (options.findFiles ?? findFilesWithDisableDirectives)(resolvedRootDirectory, includePaths);
73255
73490
  for (const absolutePath of collectNeutralizationCandidatePaths(resolvedRootDirectory, discoveredRelativePaths, includePaths)) leaseCandidatePath(absolutePath);
@@ -73430,7 +73665,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
73430
73665
  }
73431
73666
  return enabled;
73432
73667
  };
73433
- const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
73668
+ const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
73434
73669
  const hasIncludedTags = includedTags.size > 0;
73435
73670
  const reactHooksJsPlugin = disableReactHooksJsPlugin || ruleSelection === "sidecar" || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
73436
73671
  const reactCompilerRules = reactHooksJsPlugin ? applyRuleSeverityControls(filterRulesToAvailable(REACT_COMPILER_RULES, "react-hooks-js", reactHooksJsPlugin.availableRuleNames), severityControls) : {};
@@ -73485,23 +73720,26 @@ const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, exte
73485
73720
  },
73486
73721
  plugins: [],
73487
73722
  jsPlugins: [...jsPlugins, pluginPath],
73488
- settings: { "react-doctor": {
73489
- portedRuleMode: "curated",
73490
- framework: project.framework,
73491
- rootDirectory: settingsRootDirectory,
73492
- capabilities: [...capabilities].sort(),
73493
- ...runtimeGlobals && runtimeGlobals.length > 0 ? { runtimeGlobals: [...runtimeGlobals] } : {},
73494
- ...unpluginAutoImportGlobalScopes && unpluginAutoImportGlobalScopes.length > 0 ? {
73495
- unpluginAutoImportRootDirectories: [...new Set([settingsRootDirectory, project.rootDirectory])],
73496
- unpluginAutoImportGlobalScopes: unpluginAutoImportGlobalScopes.map((scope) => ({
73497
- directory: scope.directory,
73498
- names: [...scope.names]
73499
- }))
73500
- } : {},
73501
- ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
73502
- ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
73503
- ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
73504
- } },
73723
+ settings: {
73724
+ ...adoptedSettings,
73725
+ "react-doctor": {
73726
+ portedRuleMode: "curated",
73727
+ framework: project.framework,
73728
+ rootDirectory: settingsRootDirectory,
73729
+ capabilities: [...capabilities].sort(),
73730
+ ...runtimeGlobals && runtimeGlobals.length > 0 ? { runtimeGlobals: [...runtimeGlobals] } : {},
73731
+ ...unpluginAutoImportGlobalScopes && unpluginAutoImportGlobalScopes.length > 0 ? {
73732
+ unpluginAutoImportRootDirectories: [...new Set([settingsRootDirectory, project.rootDirectory])],
73733
+ unpluginAutoImportGlobalScopes: unpluginAutoImportGlobalScopes.map((scope) => ({
73734
+ directory: scope.directory,
73735
+ names: [...scope.names]
73736
+ }))
73737
+ } : {},
73738
+ ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
73739
+ ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
73740
+ ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
73741
+ }
73742
+ },
73505
73743
  rules: {
73506
73744
  ...reactCompilerRules,
73507
73745
  ...enabledReactDoctorRules,
@@ -74505,7 +74743,7 @@ const buildRelatedLocations = (labels, filePath, sourceBuffer) => {
74505
74743
  const isOxlintSpan = (value) => isRecord(value) && typeof value.offset === "number" && typeof value.length === "number" && typeof value.line === "number" && typeof value.column === "number";
74506
74744
  const isOxlintLabel = (value) => isRecord(value) && isOxlintSpan(value.span);
74507
74745
  const isMappableOxlintDiagnostic = (value) => isRecord(value) && typeof value.code === "string" && value.code.length > 0 && typeof value.filename === "string" && value.filename.length > 0 && (value.severity === "warning" || value.severity === "error") && Array.isArray(value.labels) && value.labels.every(isOxlintLabel);
74508
- const isEngineFailureDiagnostic = (value) => !isRecord(value) || typeof value.filename !== "string" || value.filename.length === 0;
74746
+ const isEngineFailureDiagnostic = (value) => !isRecord(value) || typeof value.filename !== "string" || value.filename.length === 0 || typeof value.message === "string" && value.message.startsWith("Error running JS plugin.") && (typeof value.code !== "string" || value.code.length === 0) && Array.isArray(value.labels) && value.labels.length === 0;
74509
74747
  const isOxlintOutput = (value) => isRecord(value) && Array.isArray(value.diagnostics);
74510
74748
  /**
74511
74749
  * Parses one oxlint subprocess's stdout into a flat `Diagnostic[]`.
@@ -74635,6 +74873,46 @@ const buildProfiledNodeArguments = (input) => [
74635
74873
  ...input.heapProfileDirectory ? ["--heap-prof", `--heap-prof-dir=${input.heapProfileDirectory}`] : [],
74636
74874
  ...input.argumentsList
74637
74875
  ];
74876
+ const buildOxlintTimingArguments = (argumentsList) => {
74877
+ const timingArguments = [...argumentsList];
74878
+ const formatFlagIndex = timingArguments.indexOf("--format");
74879
+ if (formatFlagIndex === -1 || formatFlagIndex + 1 >= timingArguments.length) throw new Error("Oxlint timing arguments require a --format value");
74880
+ timingArguments[formatFlagIndex + 1] = "default";
74881
+ timingArguments.push("--debug", "timings", "--quiet");
74882
+ return timingArguments;
74883
+ };
74884
+ const captureOxlintRuleTimings = (input) => new Promise((resolve, reject) => {
74885
+ const timingEnvironment = { ...input.environment };
74886
+ timingEnvironment.REACT_DOCTOR_RULE_TIMINGS_DIR = void 0;
74887
+ const timingChild = spawn(input.nodeBinaryPath, buildOxlintTimingArguments(input.argumentsList), {
74888
+ cwd: input.rootDirectory,
74889
+ env: timingEnvironment,
74890
+ stdio: [
74891
+ "ignore",
74892
+ "pipe",
74893
+ "pipe"
74894
+ ]
74895
+ });
74896
+ const stdoutBuffers = [];
74897
+ const stderrBuffers = [];
74898
+ timingChild.stdout.on("data", (buffer) => stdoutBuffers.push(buffer));
74899
+ timingChild.stderr.on("data", (buffer) => stderrBuffers.push(buffer));
74900
+ timingChild.on("error", reject);
74901
+ timingChild.on("close", (_code, signal) => {
74902
+ if (signal) {
74903
+ reject(/* @__PURE__ */ new Error(`Oxlint timing pass was killed by ${signal}`));
74904
+ return;
74905
+ }
74906
+ const timingOutput = `${Buffer.concat(stdoutBuffers).toString("utf8")}\n${Buffer.concat(stderrBuffers).toString("utf8")}`;
74907
+ if (!timingOutput.includes("Rule timings:")) {
74908
+ resolve();
74909
+ return;
74910
+ }
74911
+ fs$1$3.mkdirSync(input.timingDirectory, { recursive: true });
74912
+ fs$1$3.writeFileSync(path$1$1.join(input.timingDirectory, `oxlint-${timingChild.pid ?? process.pid}.timings.txt`), timingOutput);
74913
+ resolve();
74914
+ });
74915
+ });
74638
74916
  const lowerChildProcessPriority = (processId) => {
74639
74917
  if (processId === void 0) return;
74640
74918
  try {
@@ -74756,7 +75034,18 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
74756
75034
  return;
74757
75035
  }
74758
75036
  }
74759
- resolve(output);
75037
+ const timingDirectory = SANITIZED_ENV.REACT_DOCTOR_OXLINT_TIMINGS_DIR;
75038
+ if (timingDirectory === void 0) {
75039
+ resolve(output);
75040
+ return;
75041
+ }
75042
+ captureOxlintRuleTimings({
75043
+ argumentsList: args,
75044
+ environment: SANITIZED_ENV,
75045
+ nodeBinaryPath,
75046
+ rootDirectory,
75047
+ timingDirectory
75048
+ }).then(() => resolve(output), reject);
74760
75049
  });
74761
75050
  });
74762
75051
  const PARALLELISM_EXHAUSTION_ERROR_CODES = new Set([
@@ -75559,9 +75848,11 @@ const runOxlint = async (options) => {
75559
75848
  return [];
75560
75849
  }
75561
75850
  const pluginPath = resolvePluginPath();
75562
- const extendsPaths = (adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : []).filter(canOxlintExtendConfig);
75851
+ const detectedConfigPaths = adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : [];
75852
+ const extendsPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
75853
+ const adoptedSettings = detectedConfigPaths.length > 0 ? readAdoptedLintConfigSettings(detectedConfigPaths) : {};
75563
75854
  const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
75564
- const restoreDisableDirectives = respectInlineDisables ? () => {} : await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path));
75855
+ const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
75565
75856
  const configDirectory = fs$1$3.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
75566
75857
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
75567
75858
  try {
@@ -75621,6 +75912,7 @@ const runOxlint = async (options) => {
75621
75912
  serverAuthFunctionNames,
75622
75913
  projectIndexModuleSources,
75623
75914
  severityControls,
75915
+ adoptedSettings,
75624
75916
  userPlugins,
75625
75917
  disableReactHooksJsPlugin: overrides.disableReactHooksJsPlugin,
75626
75918
  ruleSelection: overrides.ruleSelection,
@@ -77003,9 +77295,9 @@ const runInspect = (input, hooks = {}) => gen(function* () {
77003
77295
  if (!lintFailureState.didFail) if (maintainabilityFailureState.didFail) yield* scanProgress.fail(MAINTAINABILITY_FAIL_TEXT);
77004
77296
  else if (input.suppressScanSummary) yield* scanProgress.stop();
77005
77297
  else yield* scanProgress.succeed(`Scanned ${scannedFilesLabel} in ${scanElapsedSeconds}s${workerCountSuffix}`);
77006
- const supplyChainResult = yield* join(supplyChainFiber);
77298
+ const supplyChainResult = yield* join$1(supplyChainFiber);
77007
77299
  const supplyChainCollected = supplyChainResult.diagnostics;
77008
- const securityScanCollected = yield* join(securityScanFiber);
77300
+ const securityScanCollected = yield* join$1(securityScanFiber);
77009
77301
  yield* reporterService.finalize;
77010
77302
  const finalDiagnostics = sortDiagnosticsStable(assignFixGroups([
77011
77303
  ...envCollected,
@@ -77014,7 +77306,7 @@ const runInspect = (input, hooks = {}) => gen(function* () {
77014
77306
  ...lintCollected,
77015
77307
  ...maintainabilityCollected
77016
77308
  ]));
77017
- const githubViewerPermission = yield* join(githubViewerPermissionFiber);
77309
+ const githubViewerPermission = yield* join$1(githubViewerPermissionFiber);
77018
77310
  const scoreMetadata = {
77019
77311
  ...repo !== null ? { repo } : {},
77020
77312
  ...sha !== null ? { sha } : {},
@@ -77864,4 +78156,4 @@ const toJsonReport = (result, options) => buildJsonReport({
77864
78156
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
77865
78157
 
77866
78158
  //# sourceMappingURL=index.js.map
77867
- //# debugId=a17c28bc-da40-5fec-8489-037e933cd8c3
78159
+ //# debugId=a1e2a7e6-0206-5651-a0a6-bfbbbcae5a42