react-doctor 0.9.22-dev.a182cd2 → 0.9.22-dev.b879251

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 (43) hide show
  1. package/dist/{build-section-divider-BLYdsCcr.js → build-section-divider-CrJUz78E.js} +5 -5
  2. package/dist/{ci-Ci938ZI0.js → ci-BJHjTrcc.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-lt2tTZjE.js → constants-BH299NgA.js} +12 -6
  5. package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
  6. package/dist/{design-Dlpmv3Xc.js → design-Du7BPV5I.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-BmSzPAzU.js → exit-gracefully-WnFMJ3BY.js} +6 -6
  9. package/dist/{handle-error-BHbYt1UK.js → handle-error-DPmpPex3.js} +6 -6
  10. package/dist/index.d.ts +5 -2
  11. package/dist/index.js +215 -38
  12. package/dist/{inspect-DRbdhJ9X.js → inspect-BIVV7AX7.js} +16 -16
  13. package/dist/{install-vk8FSJIH.js → install-BTnhenNp.js} +10 -10
  14. package/dist/{install-doctor-script-DR7Scj7D.js → install-doctor-script-B9fWvBe9.js} +5 -5
  15. package/dist/{install-github-workflow-DnDRindI.js → install-github-workflow-D9cOgj4R.js} +6 -6
  16. package/dist/{install-react-doctor-D63H_Hbp.js → install-react-doctor-C-KX69d9.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-VTVDPcu0.js} +4 -4
  18. package/dist/{jsx-runtime-Cby0Sc-H.js → jsx-runtime-pLgPRhn9.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-CCzSg-zu.js → print-branded-header-CSCcTF9f.js} +4 -4
  21. package/dist/project-analysis-worker.js +1 -1
  22. package/dist/{prompt-runtime-scan-url-Bh1UXqhu.js → prompt-runtime-scan-url-BWvVmQYE.js} +5 -5
  23. package/dist/{read-object-file-BB5xHmI1.js → read-object-file-Ca4UuuLE.js} +4 -4
  24. package/dist/{record-metric-eTTnbm1Z.js → record-metric-DHc9UENu.js} +200 -40
  25. package/dist/{report-error-DTIKaa_Z.js → report-error-Br8Y3YZn.js} +6 -6
  26. package/dist/{report-workflow-result-Dl2GhQHg.js → report-workflow-result-DsAhZm3w.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-Q0n4HOHL.js → resolve-scan-exit-code-CC5TMC5h.js} +41 -30
  28. package/dist/{resolve-scope-DK9d5PK1.js → resolve-scope-LaIugfSi.js} +6 -6
  29. package/dist/{rules-DqmeC1v6.js → rules-D4u1MPXI.js} +7 -7
  30. package/dist/{run-scan-app-B4_pVJEA.js → run-scan-app-DogRoT_3.js} +11 -11
  31. package/dist/{runtime-scan-CyXebDkD.js → runtime-scan-7imCitf_.js} +10 -10
  32. package/dist/{sanitize-runtime-url-CZorQyh3.js → sanitize-runtime-url-CyL--22K.js} +4 -4
  33. package/dist/{scan-kkK6V-hg.js → scan-BdKtf5SM.js} +10 -10
  34. package/dist/{should-skip-prompts-xCZmYLDa.js → should-skip-prompts-BiX3WbUg.js} +4 -4
  35. package/dist/{should-use-tui-CsKSd6DI.js → should-use-tui-mAwj2agT.js} +4 -4
  36. package/dist/skills/react-doctor/references/explain.md +5 -0
  37. package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-BM_aYEgl.js} +5 -5
  38. package/dist/start-scan-preamble.js +3 -3
  39. package/dist/{telemetry-runtime-ltLUQDBp.js → telemetry-runtime-CXgxTldQ.js} +13 -7
  40. package/dist/{version-Dx_a40iF.js → version-CuIS-oGd.js} +5 -5
  41. package/dist/{why-ILd9zmDt.js → why-DOB9tfrd.js} +4 -4
  42. package/dist/{with-run-span-CH7kR5a1.js → with-run-span-BcqHu3uI.js} +6 -6
  43. package/package.json +2 -2
@@ -1,7 +1,7 @@
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]="af7f62d7-e78b-5b22-a68c-52987ebaed5d")}catch(e){}}();
3
- import { bt as DOCS_URL, lt as CANONICAL_GITHUB_URL } from "./constants-lt2tTZjE.js";
4
- import { Mt as highlighter } from "./record-metric-eTTnbm1Z.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]="598aa1b3-caca-54fc-a60d-b76617ad722b")}catch(e){}}();
3
+ import { ut as CANONICAL_GITHUB_URL, xt as DOCS_URL } from "./constants-BH299NgA.js";
4
+ import { Nt as highlighter } from "./record-metric-DHc9UENu.js";
5
5
  //#region src/cli/utils/resolve-measure-width.ts
6
6
  const resolveClampedWidth = (input) => {
7
7
  const terminalColumns = process.stdout.columns;
@@ -77,5 +77,5 @@ const buildSectionDivider = () => highlighter.dim(`${DIVIDER_INDENT}${"─".repe
77
77
  //#endregion
78
78
  export { buildFooterLinkLines as n, buildSectionDivider as t };
79
79
 
80
- //# sourceMappingURL=build-section-divider-BLYdsCcr.js.map
81
- //# debugId=af7f62d7-e78b-5b22-a68c-52987ebaed5d
80
+ //# sourceMappingURL=build-section-divider-CrJUz78E.js.map
81
+ //# debugId=598aa1b3-caca-54fc-a60d-b76617ad722b
@@ -1,16 +1,16 @@
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]="d4cecf68-3181-5190-963a-4bab4aaa0fa7")}catch(e){}}();
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]="71ab8750-8d95-51e4-a762-24350a20cc3c")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { kt as GITHUB_ACTIONS_SETUP_URL, u as METRIC, ut as CI_URL } from "./constants-lt2tTZjE.js";
5
- import { Mt as highlighter, Tn as runSync, _t as findGitRepositoryRoot, t as recordCount } from "./record-metric-eTTnbm1Z.js";
6
- import { o as isExpectedUserError } from "./telemetry-runtime-ltLUQDBp.js";
7
- import { n as handleUserError, t as handleError } from "./handle-error-BHbYt1UK.js";
8
- import { t as reportErrorToSentry } from "./report-error-DTIKaa_Z.js";
9
- import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-DR7Scj7D.js";
10
- import { a as readReactDoctorWorkflow, d as detectDefaultBranch, f as runCommand, l as prompts, n as getReactDoctorWorkflowPath, s as upgradeWorkflowActionToV2, t as buildWorkflowContent } from "./install-github-workflow-DnDRindI.js";
11
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-DK9d5PK1.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-xCZmYLDa.js";
13
- import { t as printBrandedHeader } from "./print-branded-header-CCzSg-zu.js";
4
+ import { At as GITHUB_ACTIONS_SETUP_URL, dt as CI_URL, u as METRIC } from "./constants-BH299NgA.js";
5
+ import { En as runSync, Nt as highlighter, _t as findGitRepositoryRoot, t as recordCount } from "./record-metric-DHc9UENu.js";
6
+ import { o as isExpectedUserError } from "./telemetry-runtime-CXgxTldQ.js";
7
+ import { n as handleUserError, t as handleError } from "./handle-error-DPmpPex3.js";
8
+ import { t as reportErrorToSentry } from "./report-error-Br8Y3YZn.js";
9
+ import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-B9fWvBe9.js";
10
+ import { a as readReactDoctorWorkflow, d as detectDefaultBranch, f as runCommand, l as prompts, n as getReactDoctorWorkflowPath, s as upgradeWorkflowActionToV2, t as buildWorkflowContent } from "./install-github-workflow-D9cOgj4R.js";
11
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-LaIugfSi.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-BiX3WbUg.js";
13
+ import { t as printBrandedHeader } from "./print-branded-header-CSCcTF9f.js";
14
14
  import * as fs$1 from "node:fs";
15
15
  import * as path$1 from "node:path";
16
16
  //#region src/cli/utils/ci/ci-provider.ts
@@ -7509,5 +7509,5 @@ const ciConfigAction = (options) => runCiCommand("config", runCiConfig, options)
7509
7509
  //#endregion
7510
7510
  export { ciConfigAction, ciInstallAction, ciUpgradeAction };
7511
7511
 
7512
- //# sourceMappingURL=ci-Ci938ZI0.js.map
7513
- //# debugId=d4cecf68-3181-5190-963a-4bab4aaa0fa7
7512
+ //# sourceMappingURL=ci-BJHjTrcc.js.map
7513
+ //# debugId=71ab8750-8d95-51e4-a762-24350a20cc3c
package/dist/cli.js CHANGED
@@ -1,14 +1,14 @@
1
1
 
2
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]="8ce9aa1f-0a85-514c-9759-6b1c0db96ace")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { lt as CANONICAL_GITHUB_URL, ut as CI_URL } from "./constants-lt2tTZjE.js";
5
- import "./start-scan-preamble-CQy0CKXS.js";
6
- import { Hn as isDirectory, Mt as highlighter, Nt as isPathInsideDirectory, S as isDebugFlagEnabled, Wn as isFile, _ as VERSION, d as isJsonModeActive, en as setColorEnabled, gt as filterSourceFiles, h as writeJsonErrorReport, i as isTelemetryEnabled, y as CliInputError } from "./record-metric-eTTnbm1Z.js";
7
- import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-ltLUQDBp.js";
8
- import { t as exitGracefully } from "./exit-gracefully-BmSzPAzU.js";
9
- import { n as handleUserError, t as handleError } from "./handle-error-BHbYt1UK.js";
4
+ import { dt as CI_URL, ut as CANONICAL_GITHUB_URL } from "./constants-BH299NgA.js";
5
+ import "./start-scan-preamble-BM_aYEgl.js";
6
+ import { Gn as isFile, Nt as highlighter, Pt as isPathInsideDirectory, S as isDebugFlagEnabled, Un as isDirectory, _ as VERSION, d as isJsonModeActive, gt as filterSourceFiles, h as writeJsonErrorReport, i as isTelemetryEnabled, tn as setColorEnabled, y as CliInputError } from "./record-metric-DHc9UENu.js";
7
+ import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-CXgxTldQ.js";
8
+ import { t as exitGracefully } from "./exit-gracefully-WnFMJ3BY.js";
9
+ import { n as handleUserError, t as handleError } from "./handle-error-DPmpPex3.js";
10
10
  import { n as getLastRunTraceId } from "./active-run-trace-Dewycxda.js";
11
- import { t as reportErrorToSentry } from "./report-error-DTIKaa_Z.js";
11
+ import { t as reportErrorToSentry } from "./report-error-Br8Y3YZn.js";
12
12
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
13
13
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
14
14
  import * as path$1 from "node:path";
@@ -3569,7 +3569,7 @@ ${highlighter.dim("Learn more:")}
3569
3569
  const collectCategoryOption = (value, previousValues) => [...previousValues ?? [], value];
3570
3570
  const program = new Command().name("react-doctor").description("Diagnose React codebase health").version(VERSION, "-v, --version", "display the version number").argument("[paths...]", "one project directory or source file paths to scan").option("--lint", "enable linting").option("--no-lint", "skip linting").addOption(new Option("--dead-code").hideHelp()).addOption(new Option("--no-dead-code").hideHelp()).option("--supply-chain", "enable the dependency supply-chain scan (default)").option("--no-supply-chain", "skip the dependency supply-chain scan (Socket.dev dependency health checks)").option("--verbose", "show every rule and per-file details (default shows top 3 rules)").option("--debug", "force a Sentry trace and print its id at the end (paste it into a bug report)").option("--output-dir <dir>", "directory for the full diagnostics dump (default: a temp folder)").option("--score", "output only the score").option("--json", "output a single structured JSON report (suppresses other output)").option("--json-compact", "with --json, emit compact JSON (no indentation)").option("--json-out <path>", "with --json, write the report to a file instead of stdout").option("--no-cache", "disable all scan caches for this run").option("-y, --yes", "skip prompts, scan all workspace projects").option("--no-parallel", "lint serially with one worker (default: parallel across CPU cores; set the worker count with REACT_DOCTOR_PARALLEL)").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple); overrides the `projects` config field").option("--scope <value>", "how much supported JS/TS and inline HTML script source to scan/report: full (default), files, changed (only new issues vs base), lines (issues whose source spans touch changed lines), or contextual (issues in modified rule contexts)").option("--base <ref>", "base git ref for files/changed/lines/contextual scope (auto-detected when omitted)").option("--baseline <report.json>", "report only new issues compared with a saved JSON report").option("--include-untracked", "with --scope files/changed/lines/contextual, also scan ordinary untracked files (respects .gitignore)").addOption(new Option("--diff [base]", "[deprecated] alias for --scope changed (pass `false` to force a full scan)").hideHelp()).addOption(new Option("--changed-files-from <file>", "scan source files listed in a newline-delimited changed-files file").hideHelp()).option("--no-score", "skip the score API, the share URL, and crash reporting").addOption(new Option("--category <category>", "only show diagnostics in a category (repeatable; e.g. Security)").argParser(collectCategoryOption)).option("--no-telemetry", "alias for --no-score (skip the score API, share URL, and crash reporting)").option("--staged", "scan only staged (git index) files for pre-commit hooks (honors --project and config `projects`; exits 0 when nothing is staged)").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").option("--warning-exit-code <code>", "exit code for non-blocking warnings (2-255). Ignored with --blocking none or --score", parseWarningExitCode).addOption(new Option("--fail-on <level>", "[deprecated] alias for --blocking <level>").hideHelp()).option("--no-respect-inline-disables", "audit mode: neutralize inline lint suppressions before scanning").option("--warnings", "show warning-severity diagnostics (default)").option("--no-warnings", "hide warning-severity diagnostics (errors only)").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderRootHelpEpilog);
3571
3571
  program.action(async (positionalPaths = [], flags) => {
3572
- const { runScanCommand } = await import("./scan-kkK6V-hg.js");
3572
+ const { runScanCommand } = await import("./scan-BdKtf5SM.js");
3573
3573
  return runScanCommand({
3574
3574
  ...resolvePositionalScanInput(positionalPaths),
3575
3575
  flags,
@@ -3577,75 +3577,75 @@ program.action(async (positionalPaths = [], flags) => {
3577
3577
  });
3578
3578
  });
3579
3579
  program.command("design [directory]").description("Run only the focused UI design diagnostics").addHelpText("after", renderDesignHelpEpilog).action(async (directory, _options, command) => {
3580
- const { designAction } = await import("./design-Dlpmv3Xc.js");
3580
+ const { designAction } = await import("./design-Du7BPV5I.js");
3581
3581
  return designAction(directory ?? ".", command.optsWithGlobals());
3582
3582
  });
3583
3583
  program.command("scan").description("Scan a React interaction in Chrome until you press Enter").argument("[url]", "HTTP(S) URL of the running React app; detects local apps when omitted").option("-f, --format <format>", "report format: text, json, or jsonl", "text").option("--cdp <url>", "reuse Chrome at this remote-debugging endpoint").option("--trace-out <path>", "save the compressed .json.gz DevTools trace at this path").addHelpText("after", renderRuntimeScanHelpEpilog).action(async (url, options) => {
3584
- const { runtimeScanAction } = await import("./runtime-scan-CyXebDkD.js");
3584
+ const { runtimeScanAction } = await import("./runtime-scan-7imCitf_.js");
3585
3585
  return runtimeScanAction(url, options);
3586
3586
  });
3587
3587
  program.command("why <location>").description("Explain why a rule fired (or why a suppression didn't apply) at a file:line").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple)").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (location, options) => {
3588
- const { whyAction } = await import("./why-ILd9zmDt.js");
3588
+ const { whyAction } = await import("./why-DOB9tfrd.js");
3589
3589
  return whyAction(location, options);
3590
3590
  });
3591
3591
  program.command("install").alias("setup").description("Install the react-doctor skill into your coding agents and optional git hook").option("-y, --yes", "skip prompts, install for all detected agents").option("--dry-run", "show what would be installed without writing files").option("--agent-hooks", "install end-of-turn agent hooks for Claude Code and Cursor").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderInstallHelpEpilog).action(async (options, command) => {
3592
- const { installAction } = await import("./install-vk8FSJIH.js");
3592
+ const { installAction } = await import("./install-BTnhenNp.js");
3593
3593
  return installAction(options, command);
3594
3594
  });
3595
3595
  const providerOption = ["--provider <name>", "ci provider: github-actions or gitlab-ci (auto-detected by default)"];
3596
3596
  const prOption = ["--pr", "open a pull request with the change instead of writing it to the working tree"];
3597
3597
  const ci = program.command("ci").description("Set up, upgrade, and configure React Doctor in your CI");
3598
3598
  ci.command("install").description("Add a CI workflow that scans every pull request").option(...providerOption).option(...prOption).option("--blocking <level>", "gate level: none (advisory, default), warning, or error").option("--scope <value>", "what a pull-request scan reports: changed (default), files, lines, full").option("--comment", "post a summary comment on each pull request").option("--no-comment", "don't post a summary comment").option("--review-comments", "add inline review comments on changed lines").option("--no-review-comments", "don't add inline review comments").option("--commit-status", "report a commit status with the health score").option("--no-commit-status", "don't report a commit status").option("-y, --yes", "skip prompts; use the defaults").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderCiHelpEpilog).action(async (_options, command) => {
3599
- const { ciInstallAction } = await import("./ci-Ci938ZI0.js");
3599
+ const { ciInstallAction } = await import("./ci-BJHjTrcc.js");
3600
3600
  return ciInstallAction(command.optsWithGlobals());
3601
3601
  });
3602
3602
  ci.command("config").description("Change the gate, scan scope, and pull-request reporting").option(...providerOption).option("--blocking <level>", "gate level: none (advisory), warning, or error").option("--scope <value>", "what a pull-request scan reports: changed, files, lines, contextual, or full").option("--comment", "post a summary comment on each pull request").option("--no-comment", "don't post a summary comment").option("--review-comments", "add inline review comments on changed lines").option("--no-review-comments", "don't add inline review comments").option("--commit-status", "report a commit status with the health score").option("--no-commit-status", "don't report a commit status").option("-y, --yes", "skip prompts; print the current settings").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (_options, command) => {
3603
- const { ciConfigAction } = await import("./ci-Ci938ZI0.js");
3603
+ const { ciConfigAction } = await import("./ci-BJHjTrcc.js");
3604
3604
  return ciConfigAction(command.optsWithGlobals());
3605
3605
  });
3606
3606
  ci.command("upgrade").description("Upgrade the CI workflow to the action's current major").option(...providerOption).option(...prOption).option("-y, --yes", "skip prompts").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (_options, command) => {
3607
- const { ciUpgradeAction } = await import("./ci-Ci938ZI0.js");
3607
+ const { ciUpgradeAction } = await import("./ci-BJHjTrcc.js");
3608
3608
  return ciUpgradeAction(command.optsWithGlobals());
3609
3609
  });
3610
3610
  program.command("version").description("show the version with Node and platform info").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async () => {
3611
- const { versionAction } = await import("./version-Dx_a40iF.js");
3611
+ const { versionAction } = await import("./version-CuIS-oGd.js");
3612
3612
  return versionAction();
3613
3613
  });
3614
3614
  const rules = program.command("rules").description("List, explain, and configure which React Doctor rules run");
3615
3615
  rules.command("list").description("List rules and the severity they run at under your config").option("--category <name>", "only show rules in a category (e.g. Performance)").option("--tag <name>", "only show rules with a tag (e.g. design, test-noise)").option("--framework <name>", "only show rules for a framework (e.g. global, nextjs)").option("--configured", "only show rules your config has changed from the default").option("--json", "output a structured JSON array").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (_options, command) => {
3616
- const { rulesListAction } = await import("./rules-DqmeC1v6.js");
3616
+ const { rulesListAction } = await import("./rules-D4u1MPXI.js");
3617
3617
  return rulesListAction(command.optsWithGlobals());
3618
3618
  });
3619
3619
  rules.command("explain <rule>").description("Explain why a rule matters, its current severity, and how to configure it").option("--json", "output a structured JSON object").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
3620
- const { rulesExplainAction } = await import("./rules-DqmeC1v6.js");
3620
+ const { rulesExplainAction } = await import("./rules-D4u1MPXI.js");
3621
3621
  return rulesExplainAction(rule, command.optsWithGlobals());
3622
3622
  });
3623
3623
  rules.command("set <rule> <severity>").description("Set a rule's severity: off, warn, or error").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, severity, _options, command) => {
3624
- const { rulesSetAction } = await import("./rules-DqmeC1v6.js");
3624
+ const { rulesSetAction } = await import("./rules-D4u1MPXI.js");
3625
3625
  return rulesSetAction(rule, severity, command.optsWithGlobals());
3626
3626
  });
3627
3627
  rules.command("enable <rule>").description("Enable a rule at its recommended severity (or pass --severity)").option("--severity <level>", "severity to enable at: warn or error").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
3628
- const { rulesEnableAction } = await import("./rules-DqmeC1v6.js");
3628
+ const { rulesEnableAction } = await import("./rules-D4u1MPXI.js");
3629
3629
  return rulesEnableAction(rule, command.optsWithGlobals());
3630
3630
  });
3631
3631
  rules.command("disable <rule>").description("Disable a rule so it never runs").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
3632
- const { rulesDisableAction } = await import("./rules-DqmeC1v6.js");
3632
+ const { rulesDisableAction } = await import("./rules-D4u1MPXI.js");
3633
3633
  return rulesDisableAction(rule, command.optsWithGlobals());
3634
3634
  });
3635
3635
  rules.command("category <category> <severity>").description("Set the severity for a whole category (off, warn, error)").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (category, severity, _options, command) => {
3636
- const { rulesCategoryAction } = await import("./rules-DqmeC1v6.js");
3636
+ const { rulesCategoryAction } = await import("./rules-D4u1MPXI.js");
3637
3637
  return rulesCategoryAction(category, severity, command.optsWithGlobals());
3638
3638
  });
3639
3639
  rules.command("ignore-tag <tag>").description("Skip a whole rule family by tag before linting (e.g. design)").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (tag, _options, command) => {
3640
- const { rulesIgnoreTagAction } = await import("./rules-DqmeC1v6.js");
3640
+ const { rulesIgnoreTagAction } = await import("./rules-D4u1MPXI.js");
3641
3641
  return rulesIgnoreTagAction(tag, command.optsWithGlobals());
3642
3642
  });
3643
3643
  rules.command("unignore-tag <tag>").description("Stop ignoring a tag previously skipped via ignore-tag").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (tag, _options, command) => {
3644
- const { rulesUnignoreTagAction } = await import("./rules-DqmeC1v6.js");
3644
+ const { rulesUnignoreTagAction } = await import("./rules-D4u1MPXI.js");
3645
3645
  return rulesUnignoreTagAction(tag, command.optsWithGlobals());
3646
3646
  });
3647
3647
  program.command("experimental-tui [directory]", { hidden: true }).description("[experimental] interactive, scrollable scan report").option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").option("--warning-exit-code <code>", "exit code for non-blocking warnings (2-255). Ignored with --blocking none or --score", parseWarningExitCode).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addOption(new Option("--no-dead-code").hideHelp()).option("--no-supply-chain", "skip the dependency supply-chain scan").option("--score", "only print the numeric score (for scripts and CI)").option("--no-score", "skip the score API, the share URL, and crash reporting").option("--no-cache", "disable all scan caches for this run").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("-p, --project <names>", "scan specific workspace projects (comma-separated, or *)").option("-y, --yes", "skip the project prompt and scan every discovered project").action(async (directory = ".", _localOptions, command) => {
3648
- const { runScanCommand } = await import("./scan-kkK6V-hg.js");
3648
+ const { runScanCommand } = await import("./scan-BdKtf5SM.js");
3649
3649
  return runScanCommand({
3650
3650
  directory,
3651
3651
  flags: command.optsWithGlobals(),
@@ -1,5 +1,5 @@
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]="103fdb56-4439-5f6b-8c45-fce5082120c2")}catch(e){}}();
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]="b9044466-f0a8-55ab-9272-310e8dbbbb09")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import * as fs$1 from "node:fs";
5
5
  import fs from "node:fs";
@@ -11,7 +11,7 @@ import os from "node:os";
11
11
  import crypto from "node:crypto";
12
12
  import { Worker } from "node:worker_threads";
13
13
  import * as net from "node:net";
14
- //#region ../core/dist/constants-D-pz3KkB.js
14
+ //#region ../core/dist/constants-Drn7xVPa.js
15
15
  const HTML_FILE_PATTERN = /\.html$/i;
16
16
  const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
17
17
  const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
@@ -423,11 +423,12 @@ const MAINTAINABILITY_SOURCE_FILE_PATTERN = /\.[cm]?[jt]sx?$/;
423
423
  const MAINTAINABILITY_PLUGIN = "react-doctor";
424
424
  const MAINTAINABILITY_DUPLICATE_JSX_RULE = "duplicate-jsx-subtree";
425
425
  const MAINTAINABILITY_CATEGORY = "Maintainability";
426
+ const ADOPTED_LINT_CONFIG_MAX_BYTES = 1024 * 1024;
426
427
  //#endregion
427
428
  //#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
428
429
  const isReactCompilerDetectionReply = (value) => typeof value === "object" && value !== null && "id" in value && typeof value.id === "number" && "hasReactCompiler" in value && (typeof value.hasReactCompiler === "boolean" || value.hasReactCompiler === null);
429
430
  //#endregion
430
- //#region ../core/dist/react-compiler-detection-client-DLmrJui3.js
431
+ //#region ../core/dist/react-compiler-detection-client-BMSGAc3_.js
431
432
  const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
432
433
  const toRequestKey = (request) => [
433
434
  request.directory,
@@ -568,6 +569,11 @@ const buildOxlintChildEnv = (sourceEnv) => {
568
569
  if (name.startsWith("npm_config_")) continue;
569
570
  childEnv[name] = value;
570
571
  }
572
+ childEnv.BROWSERSLIST = "defaults";
573
+ childEnv.BROWSERSLIST_IGNORE_OLD_DATA = "true";
574
+ delete childEnv.BROWSERSLIST_CONFIG;
575
+ delete childEnv.BROWSERSLIST_STATS;
576
+ delete childEnv.BROWSERSLIST_DANGEROUS_EXTEND;
571
577
  const isCompileCacheDisabled = Boolean(sourceEnv.NODE_DISABLE_COMPILE_CACHE);
572
578
  const isCompileCacheAlreadySet = childEnv.NODE_COMPILE_CACHE !== void 0;
573
579
  if (!isCompileCacheDisabled && !isCompileCacheAlreadySet) childEnv.NODE_COMPILE_CACHE = path$1.join(os.tmpdir(), NODE_COMPILE_CACHE_DIR_NAME);
@@ -1032,7 +1038,7 @@ const METRIC = {
1032
1038
  jsonOutUsed: "json.out_used"
1033
1039
  };
1034
1040
  //#endregion
1035
- export { warmReactCompilerDetection as $, OXLINT_WORKER_JOB_END_MARKER as $t, buildGitSourceListingRequest as A, TARGET_BLANK_BROWSER_SUPPORT as An, GITHUB_VIEWER_PERMISSION_TIMEOUT_MS as At, resolveGitCommand as B, MAINTAINABILITY_DUPLICATE_JSX_RULE as Bt, SENTRY_RELEASE_PREFIX as C, SUPPLY_CHAIN_CACHE_TTL_MS as Cn, ES_TARGET_YEAR_BY_NAME as Ct, TUI_REPORT_COMPACT_MAX_ROWS as D, SUPPLY_CHAIN_PLUGIN as Dn, GENERATED_BUNDLE_FILE_PATTERN as Dt, TRACKED_FILE_FLAGS_GIT_ARGUMENTS as E, SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS as En, FILE_LINT_CACHE_MAX_FILE_COUNT as Et, lowerChildProcessPriority as F, VERCEL_NEXTJS_SECURITY_RELEASE_URL as Fn, HTML_FILE_PATTERN as Ft, resolvePluginPath as G, MINIFIED_SNIFF_BYTES as Gt, resolveOxlintThreadCount as H, MAINTAINABILITY_SOURCE_FILE_PATTERN as Ht, prefetchGitCommand as I, getCategoryImpact as In, IGNORED_DIRECTORIES as It, resolveTsConfigRelativePath as J, OXLINT_NODE_REQUIREMENT as Jt, resolveReactDoctorCacheDir as K, OCCURRENCE_MATCHED_CATEGORIES as Kt, prespawnOxlintWorkers as L, JSX_DUPLICATION_SOURCE_FILE_PATTERN as Lt, buildOxlintWorkerSpawnSpec as M, TELEMETRY_SHUTDOWN_TIMEOUT_MS as Mn, GIT_LS_FILES_MAX_BUFFER_BYTES as Mt, discardPrefetchedGitCommands as N, TSCONFIG_FILENAMES as Nn, GIT_SHOW_MAX_BUFFER_BYTES as Nt, TUI_REPORT_DETAIL_WIDTH_FRACTION as O, SUPPLY_CHAIN_RULE as On, GENERATED_SOURCE_DIRECTORY_PATTERN as Ot, killUnadoptedOxlintWorkers as P, TYPESCRIPT_DECLARATION_FILE_PATTERN as Pn, GIT_SOURCE_LISTING_ARGUMENTS as Pt, takeReactCompilerDetection as Q, OXLINT_SPLIT_TOTAL_BUDGET_MS as Qt, readSystemConcurrencyFacts as R, JSX_FILE_PATTERN as Rt, SENTRY_FLUSH_TIMEOUT_MS as S, SUPPLY_CHAIN_CACHE_SUBDIR as Sn, ENTERPRISE_CONTACT_URL as St, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as T, SUPPLY_CHAIN_IGNORED_PACKAGES as Tn, FILE_LINT_CACHE_FILENAME as Tt, resolveOxlintToolchainVersions as U, MAX_GLOB_PATTERN_LENGTH_CHARS as Ut, resolveOxlintBinary as V, MAINTAINABILITY_PLUGIN as Vt, resolveOxlintWorkerRuntime as W, MILLISECONDS_PER_SECOND as Wt, spawnOxlintWorkerProcess as X, OXLINT_OUTPUT_MAX_BYTES as Xt, setChildProcessRef as Y, OXLINT_OOM_RESCUE_BUDGET_MS as Yt, takePrespawnedOxlintWorker as Z, OXLINT_SPAWN_TIMEOUT_MS as Zt, SCAN_PREAMBLE_SKIP_FLAGS as _, SOURCE_FILE_PATTERN as _n, DIAGNOSTIC_CATEGORY_BUCKETS as _t, CACHE_DISABLED_VALUES as a, REACT_ROUTER_CAPABILITY_THRESHOLDS as an, AXIOM_METRICS_DATASET_HEADER as at, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as b, SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX as bn, DOCS_URL as bt, HEAD_SHA_GIT_ARGUMENTS as c, ROOT_CAUSE_GROUPABLE_RULE_KEYS as cn, CANONICAL_DISCORD_URL as ct, METRIC_DISTRIBUTION_BOUNDARIES as d, SHARE_BASE_URL as dn, COMPILER_CLEANUP_BUCKET as dt, PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB as en, ABORT_EXIT_CODES as et, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as f, SIDECAR_LINT_CACHE_FILENAME as fn, COMPILER_CLEANUP_RULE_KEYS as ft, RUN_GIT_MAX_BUFFER_BYTES as g, SOCKET_PACKAGE_PAGE_BASE as gn, DEFAULT_BRANCH_CANDIDATES as gt, REPOSITORY_ROOT_GIT_ARGUMENTS as h, SOCKET_FREE_USER_AGENT as hn, CONFIG_SCHEMA_URL as ht, BASELINE_FILES_TEMP_DIR_PREFIX as i, REACT_BLOG_RSC_ADVISORY_URL as in, AXIOM_DEFAULT_DOMAIN as it, buildOxlintChildEnv as j, TELEMETRY_EXPORT_INTERVAL_MS as jn, GIT_CHECK_ATTR_MAX_BUFFER_BYTES as jt, WORKTREE_STATUS_GIT_ARGUMENTS as k, TAILWIND_POSTCSS7_COMPAT_ALIAS as kn, GITHUB_ACTIONS_SETUP_URL as kt, INTERNAL_ERROR_JSON_FALLBACK as l, SCANNED_DOT_DIRECTORIES as ln, CANONICAL_GITHUB_URL as lt, REACT_DOCTOR_CONFIG_PROJECT_NAME as m, SOCKET_FREE_PURL_API_BASE as mn, CONFIG_FINGERPRINT_FILENAMES as mt, AXIOM_METRICS_DATASET as n, PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS as nn, APP_ONLY_RULE_KEYS as nt, CI_TRUST_COMPANIES as o, REACT_SERVER_DOM_PACKAGES as on, AXIOM_METRICS_PATH as ot, NANOSECONDS_PER_MILLISECOND as p, SKILL_NAME as pn, CONFIG_CACHE_TTL_MS as pt, resolveScanConcurrency as q, OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES as qt, AXIOM_TRACES_DATASET as r, PROJECT_ANALYSIS_WORKER_TIMEOUT_MS as rn, AXIOM_DATASET_HEADER as rt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as s, RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES as sn, AXIOM_TRACES_PATH as st, AXIOM_INGEST_TOKEN as t, PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES as tn, ADOPTABLE_LINT_CONFIG_FILENAMES as tt, METRIC as u, SCORE_API_URL as un, CI_URL as ut, SCAN_RESULT_CACHE_FILENAME as v, SPAWN_ARGS_MAX_LENGTH_CHARS as vn, DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS as vt, STAGED_FILES_TEMP_DIR_PREFIX as w, SUPPLY_CHAIN_CATEGORY as wn, FETCH_TIMEOUT_MS as wt, SENTRY_DSN as x, STAGED_FILES_PROJECT_CONFIG_FILENAMES as xn, DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS as xt, SCAN_RESULT_CACHE_GIT_ARGUMENTS as y, SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN as yn, DOCS_RULES_BASE_URL as yt, resolveConfiguredScanConcurrency as z, MAINTAINABILITY_CATEGORY as zt };
1041
+ export { warmReactCompilerDetection as $, OXLINT_SPLIT_TOTAL_BUDGET_MS as $t, buildGitSourceListingRequest as A, TAILWIND_POSTCSS7_COMPAT_ALIAS as An, GITHUB_ACTIONS_SETUP_URL as At, resolveGitCommand as B, MAINTAINABILITY_CATEGORY as Bt, SENTRY_RELEASE_PREFIX as C, SUPPLY_CHAIN_CACHE_SUBDIR as Cn, ENTERPRISE_CONTACT_URL as Ct, TUI_REPORT_COMPACT_MAX_ROWS as D, SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS as Dn, FILE_LINT_CACHE_MAX_FILE_COUNT as Dt, TRACKED_FILE_FLAGS_GIT_ARGUMENTS as E, SUPPLY_CHAIN_IGNORED_PACKAGES as En, FILE_LINT_CACHE_FILENAME as Et, lowerChildProcessPriority as F, TYPESCRIPT_DECLARATION_FILE_PATTERN as Fn, GIT_SOURCE_LISTING_ARGUMENTS as Ft, resolvePluginPath as G, MILLISECONDS_PER_SECOND as Gt, resolveOxlintThreadCount as H, MAINTAINABILITY_PLUGIN as Ht, prefetchGitCommand as I, VERCEL_NEXTJS_SECURITY_RELEASE_URL as In, HTML_FILE_PATTERN as It, resolveTsConfigRelativePath as J, OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES as Jt, resolveReactDoctorCacheDir as K, MINIFIED_SNIFF_BYTES as Kt, prespawnOxlintWorkers as L, getCategoryImpact as Ln, IGNORED_DIRECTORIES as Lt, buildOxlintWorkerSpawnSpec as M, TELEMETRY_EXPORT_INTERVAL_MS as Mn, GIT_CHECK_ATTR_MAX_BUFFER_BYTES as Mt, discardPrefetchedGitCommands as N, TELEMETRY_SHUTDOWN_TIMEOUT_MS as Nn, GIT_LS_FILES_MAX_BUFFER_BYTES as Nt, TUI_REPORT_DETAIL_WIDTH_FRACTION as O, SUPPLY_CHAIN_PLUGIN as On, GENERATED_BUNDLE_FILE_PATTERN as Ot, killUnadoptedOxlintWorkers as P, TSCONFIG_FILENAMES as Pn, GIT_SHOW_MAX_BUFFER_BYTES as Pt, takeReactCompilerDetection as Q, OXLINT_SPAWN_TIMEOUT_MS as Qt, readSystemConcurrencyFacts as R, JSX_DUPLICATION_SOURCE_FILE_PATTERN as Rt, SENTRY_FLUSH_TIMEOUT_MS as S, STAGED_FILES_PROJECT_CONFIG_FILENAMES as Sn, DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS as St, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as T, SUPPLY_CHAIN_CATEGORY as Tn, FETCH_TIMEOUT_MS as Tt, resolveOxlintToolchainVersions as U, MAINTAINABILITY_SOURCE_FILE_PATTERN as Ut, resolveOxlintBinary as V, MAINTAINABILITY_DUPLICATE_JSX_RULE as Vt, resolveOxlintWorkerRuntime as W, MAX_GLOB_PATTERN_LENGTH_CHARS as Wt, spawnOxlintWorkerProcess as X, OXLINT_OOM_RESCUE_BUDGET_MS as Xt, setChildProcessRef as Y, OXLINT_NODE_REQUIREMENT as Yt, takePrespawnedOxlintWorker as Z, OXLINT_OUTPUT_MAX_BYTES as Zt, SCAN_PREAMBLE_SKIP_FLAGS as _, SOCKET_PACKAGE_PAGE_BASE as _n, DEFAULT_BRANCH_CANDIDATES as _t, CACHE_DISABLED_VALUES as a, REACT_BLOG_RSC_ADVISORY_URL as an, AXIOM_DEFAULT_DOMAIN as at, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as b, SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN as bn, DOCS_RULES_BASE_URL as bt, HEAD_SHA_GIT_ARGUMENTS as c, RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES as cn, AXIOM_TRACES_PATH as ct, METRIC_DISTRIBUTION_BOUNDARIES as d, SCORE_API_URL as dn, CI_URL as dt, OXLINT_WORKER_JOB_END_MARKER as en, ABORT_EXIT_CODES as et, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as f, SHARE_BASE_URL as fn, COMPILER_CLEANUP_BUCKET as ft, RUN_GIT_MAX_BUFFER_BYTES as g, SOCKET_FREE_USER_AGENT as gn, CONFIG_SCHEMA_URL as gt, REPOSITORY_ROOT_GIT_ARGUMENTS as h, SOCKET_FREE_PURL_API_BASE as hn, CONFIG_FINGERPRINT_FILENAMES as ht, BASELINE_FILES_TEMP_DIR_PREFIX as i, PROJECT_ANALYSIS_WORKER_TIMEOUT_MS as in, AXIOM_DATASET_HEADER as it, buildOxlintChildEnv as j, TARGET_BLANK_BROWSER_SUPPORT as jn, GITHUB_VIEWER_PERMISSION_TIMEOUT_MS as jt, WORKTREE_STATUS_GIT_ARGUMENTS as k, SUPPLY_CHAIN_RULE as kn, GENERATED_SOURCE_DIRECTORY_PATTERN as kt, INTERNAL_ERROR_JSON_FALLBACK as l, ROOT_CAUSE_GROUPABLE_RULE_KEYS as ln, CANONICAL_DISCORD_URL as lt, REACT_DOCTOR_CONFIG_PROJECT_NAME as m, SKILL_NAME as mn, CONFIG_CACHE_TTL_MS as mt, AXIOM_METRICS_DATASET as n, PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES as nn, ADOPTED_LINT_CONFIG_MAX_BYTES as nt, CI_TRUST_COMPANIES as o, REACT_ROUTER_CAPABILITY_THRESHOLDS as on, AXIOM_METRICS_DATASET_HEADER as ot, NANOSECONDS_PER_MILLISECOND as p, SIDECAR_LINT_CACHE_FILENAME as pn, COMPILER_CLEANUP_RULE_KEYS as pt, resolveScanConcurrency as q, OCCURRENCE_MATCHED_CATEGORIES as qt, AXIOM_TRACES_DATASET as r, PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS as rn, APP_ONLY_RULE_KEYS as rt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as s, REACT_SERVER_DOM_PACKAGES as sn, AXIOM_METRICS_PATH as st, AXIOM_INGEST_TOKEN as t, PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB as tn, ADOPTABLE_LINT_CONFIG_FILENAMES as tt, METRIC as u, SCANNED_DOT_DIRECTORIES as un, CANONICAL_GITHUB_URL as ut, SCAN_RESULT_CACHE_FILENAME as v, SOURCE_FILE_PATTERN as vn, DIAGNOSTIC_CATEGORY_BUCKETS as vt, STAGED_FILES_TEMP_DIR_PREFIX as w, SUPPLY_CHAIN_CACHE_TTL_MS as wn, ES_TARGET_YEAR_BY_NAME as wt, SENTRY_DSN as x, SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX as xn, DOCS_URL as xt, SCAN_RESULT_CACHE_GIT_ARGUMENTS as y, SPAWN_ARGS_MAX_LENGTH_CHARS as yn, DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS as yt, resolveConfiguredScanConcurrency as z, JSX_FILE_PATTERN as zt };
1036
1042
 
1037
- //# sourceMappingURL=constants-lt2tTZjE.js.map
1038
- //# debugId=103fdb56-4439-5f6b-8c45-fce5082120c2
1043
+ //# sourceMappingURL=constants-BH299NgA.js.map
1044
+ //# debugId=b9044466-f0a8-55ab-9272-310e8dbbbb09
@@ -1,5 +1,5 @@
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]="03cb31e4-5d3e-5024-841c-9d08f5fb53d3")}catch(e){}}();
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]="34b16741-6305-53a0-a5d7-495625749190")}catch(e){}}();
3
3
  const GIT_CHECK_ATTR_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
4
4
  const OXLINT_WORKER_JOB_END_MARKER = "__REACT_DOCTOR_OXLINT_JOB_END__";
5
5
  const REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY = Symbol.for("react-doctor.reset-filesystem-caches");
@@ -14,10 +14,10 @@ const MAX_GLOB_PATTERN_LENGTH_CHARS = 1024;
14
14
  process.env.REACT_DOCTOR_CORE_VERSION;
15
15
  const JSX_DUPLICATION_DEFAULT_MAX_SOURCE_FILES = 5e3;
16
16
  const JSX_DUPLICATION_DEFAULT_MAX_SOURCE_LENGTH_CHARS = 1e6;
17
- const JSX_DUPLICATION_DEFAULT_MAX_JSX_NODES = 5e4;
17
+ const JSX_DUPLICATION_DEFAULT_MAX_JSX_NODES = 5e5;
18
18
  const JSX_DUPLICATION_SOURCE_FILE_PATTERN = /\.[cm]?(?:jsx?|tsx)$/;
19
19
  //#endregion
20
20
  export { MAX_GLOB_PATTERN_LENGTH_CHARS as a, GIT_CHECK_ATTR_MAX_BUFFER_BYTES as c, JSX_DUPLICATION_SOURCE_FILE_PATTERN as i, JSX_DUPLICATION_DEFAULT_MAX_SOURCE_FILES as n, OXLINT_WORKER_JOB_END_MARKER as o, JSX_DUPLICATION_DEFAULT_MAX_SOURCE_LENGTH_CHARS as r, REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY as s, JSX_DUPLICATION_DEFAULT_MAX_JSX_NODES as t };
21
21
 
22
- //# sourceMappingURL=constants-DNh19qg9.js.map
23
- //# debugId=03cb31e4-5d3e-5024-841c-9d08f5fb53d3
22
+ //# sourceMappingURL=constants-T2clfs7L.js.map
23
+ //# debugId=34b16741-6305-53a0-a5d7-495625749190
@@ -1,6 +1,6 @@
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]="6b5061dc-bf26-5eb3-bbd2-bd3f02f2f3f0")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-DRbdhJ9X.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]="79f382b5-4d3c-5ad6-9f83-f842fab54422")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-BIVV7AX7.js";
4
4
  //#region src/cli/commands/design.ts
5
5
  const designAction = async (directory, flags) => inspectAction(directory, {
6
6
  ...flags,
@@ -10,5 +10,5 @@ const designAction = async (directory, flags) => inspectAction(directory, {
10
10
  //#endregion
11
11
  export { designAction };
12
12
 
13
- //# sourceMappingURL=design-Dlpmv3Xc.js.map
14
- //# debugId=6b5061dc-bf26-5eb3-bbd2-bd3f02f2f3f0
13
+ //# sourceMappingURL=design-Du7BPV5I.js.map
14
+ //# debugId=79f382b5-4d3c-5ad6-9f83-f842fab54422
@@ -1,8 +1,8 @@
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]="dd62388e-7fa5-5466-9293-75c1091a30f7")}catch(e){}}();
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]="2e6ed830-bad0-5ab3-ad49-45058c727107")}catch(e){}}();
3
3
  import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
4
4
  import { t as unwrapTypescriptExpression } from "./unwrap-typescript-expression-CrEPQUWz.js";
5
- import { i as JSX_DUPLICATION_SOURCE_FILE_PATTERN } from "./constants-DNh19qg9.js";
5
+ import { i as JSX_DUPLICATION_SOURCE_FILE_PATTERN } from "./constants-T2clfs7L.js";
6
6
  import * as fs$2 from "node:fs";
7
7
  import * as path$1 from "node:path";
8
8
  import crypto from "node:crypto";
@@ -147,7 +147,7 @@ const resolveOptions = (options) => ({
147
147
  minimumDistinctFiles: options.minimumDistinctFiles ?? 1,
148
148
  maxSourceFiles: options.budget?.maxSourceFiles ?? 5e3,
149
149
  maxSourceLengthChars: options.budget?.maxSourceLengthChars ?? 1e6,
150
- maxJsxNodes: options.budget?.maxJsxNodes ?? 5e4,
150
+ maxJsxNodes: options.budget?.maxJsxNodes ?? 5e5,
151
151
  maxFamilies: options.budget?.maxFamilies ?? 20
152
152
  });
153
153
  const hashParts = (parts) => {
@@ -361,10 +361,12 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
361
361
  const jsxNodes = [];
362
362
  const pendingNodes = [sourceFile];
363
363
  let limitExceeded = false;
364
+ let observedJsxNodeCount = 0;
364
365
  while (pendingNodes.length > 0 && !limitExceeded && !signal?.aborted) {
365
366
  const currentNode = pendingNodes.pop();
366
367
  if (currentNode === void 0) continue;
367
368
  if (isJsxSubtreeNode(currentNode)) {
369
+ observedJsxNodeCount += 1;
368
370
  if (jsxNodes.length >= maximumCandidateCount) {
369
371
  limitExceeded = true;
370
372
  continue;
@@ -380,7 +382,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
380
382
  if (limitExceeded || signal?.aborted) return {
381
383
  candidates: [],
382
384
  aborted: signal?.aborted ?? false,
383
- limitExceeded
385
+ limitExceeded,
386
+ observedJsxNodeCount
384
387
  };
385
388
  const metadataByNode = /* @__PURE__ */ new Map();
386
389
  const functionIdentityByNode = /* @__PURE__ */ new Map();
@@ -388,7 +391,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
388
391
  if (signal?.aborted) return {
389
392
  candidates: [],
390
393
  aborted: true,
391
- limitExceeded: false
394
+ limitExceeded: false,
395
+ observedJsxNodeCount
392
396
  };
393
397
  buildJsxSubtreeMetadata(jsxNodes[nodeIndex], metadataByNode);
394
398
  }
@@ -406,7 +410,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
406
410
  };
407
411
  }),
408
412
  aborted: false,
409
- limitExceeded: false
413
+ limitExceeded: false,
414
+ observedJsxNodeCount
410
415
  };
411
416
  };
412
417
  const scanSource = (input) => {
@@ -443,8 +448,7 @@ const scanSource = (input) => {
443
448
  incompleteReason: {
444
449
  kind: "jsx-node-limit",
445
450
  limit: input.options.maxJsxNodes,
446
- observed: input.options.maxJsxNodes + 1,
447
- path: input.source.path
451
+ observed: input.scannedJsxNodeCount + collectedCandidates.observedJsxNodeCount
448
452
  },
449
453
  didAbort: false,
450
454
  didScan: false
@@ -561,7 +565,10 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
561
565
  scannedSourceFileCount,
562
566
  scannedJsxNodeCount
563
567
  });
564
- if (scannedSource.incompleteReason !== null) incompleteReasons.push(scannedSource.incompleteReason);
568
+ if (scannedSource.incompleteReason !== null) {
569
+ incompleteReasons.push(scannedSource.incompleteReason);
570
+ if (scannedSource.incompleteReason.kind === "jsx-node-limit") break;
571
+ }
565
572
  if (scannedSource.didScan) {
566
573
  candidates.push(...scannedSource.candidates);
567
574
  scannedJsxNodeCount += scannedSource.candidates.length;
@@ -633,4 +640,4 @@ startDuplicateJsxWorker();
633
640
  export {};
634
641
 
635
642
  //# sourceMappingURL=duplicate-jsx-worker.js.map
636
- //# debugId=dd62388e-7fa5-5466-9293-75c1091a30f7
643
+ //# debugId=2e6ed830-bad0-5ab3-ad49-45058c727107
@@ -1,9 +1,9 @@
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]="f2b1838d-1436-5bb6-bc3f-4ebc83dc3105")}catch(e){}}();
3
- import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-eTTnbm1Z.js";
4
- import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-ltLUQDBp.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]="b83db1e6-16f9-583a-8a3c-8c2b670e98d7")}catch(e){}}();
3
+ import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-DHc9UENu.js";
4
+ import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-CXgxTldQ.js";
5
5
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
6
- import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-BLYdsCcr.js";
6
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-CrJUz78E.js";
7
7
  //#region src/cli/utils/active-tui-renderer.ts
8
8
  let activeTuiRenderer = null;
9
9
  const registerActiveTuiRenderer = (renderer) => {
@@ -50,5 +50,5 @@ const exitGracefully = () => {
50
50
  //#endregion
51
51
  export { registerActiveTuiRenderer as n, exitGracefully as t };
52
52
 
53
- //# sourceMappingURL=exit-gracefully-BmSzPAzU.js.map
54
- //# debugId=f2b1838d-1436-5bb6-bc3f-4ebc83dc3105
53
+ //# sourceMappingURL=exit-gracefully-WnFMJ3BY.js.map
54
+ //# debugId=b83db1e6-16f9-583a-8a3c-8c2b670e98d7
@@ -1,8 +1,8 @@
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]="03f4fa8d-3f4e-547e-9c2a-13f5ca4adb40")}catch(e){}}();
3
- import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Ft as isReactDoctorError, Mt as highlighter, Tn as runSync, Un as isErrnoException, _ as VERSION, bt as formatErrorChain, cn as error, gn as gen, t as recordCount, xt as formatReactDoctorError } from "./record-metric-eTTnbm1Z.js";
5
- import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-ltLUQDBp.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]="b7c2748f-3351-51fc-a3a5-9bb6603f3528")}catch(e){}}();
3
+ import { lt as CANONICAL_DISCORD_URL, u as METRIC, ut as CANONICAL_GITHUB_URL } from "./constants-BH299NgA.js";
4
+ import { En as runSync, It as isReactDoctorError, Nt as highlighter, Wn as isErrnoException, _ as VERSION, _n as gen, bt as formatErrorChain, ln as error, t as recordCount, xt as formatReactDoctorError } from "./record-metric-DHc9UENu.js";
5
+ import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-CXgxTldQ.js";
6
6
  //#region src/cli/utils/handle-error.ts
7
7
  const OTLP_ENDPOINT_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_ENDPOINT";
8
8
  const OTLP_AUTH_HEADER_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_AUTH_HEADER";
@@ -111,5 +111,5 @@ const handleUserError = (error$1, options = {}) => {
111
111
  //#endregion
112
112
  export { handleUserError as n, handleError as t };
113
113
 
114
- //# sourceMappingURL=handle-error-BHbYt1UK.js.map
115
- //# debugId=03f4fa8d-3f4e-547e-9c2a-13f5ca4adb40
114
+ //# sourceMappingURL=handle-error-DPmpPex3.js.map
115
+ //# debugId=b7c2748f-3351-51fc-a3a5-9bb6603f3528
package/dist/index.d.ts CHANGED
@@ -341,7 +341,7 @@ interface Pipeable {
341
341
  */
342
342
  declare const Class$1: new () => Pipeable;
343
343
  //#endregion
344
- //#region ../core/dist/resolve-scan-concurrency-noGIah1l.d.ts
344
+ //#region ../core/dist/resolve-scan-concurrency-B0dV_DOR.d.ts
345
345
  /**
346
346
  * A secondary source location attached to a diagnostic (oxlint's
347
347
  * non-primary labels). Editors render these as
@@ -783,7 +783,10 @@ interface ReactDoctorConfig {
783
783
  * Only JSON-format configs are supported because oxlint's `extends`
784
784
  * cannot evaluate JS/TS configs. Flat configs (`eslint.config.js`),
785
785
  * legacy JS configs (`.eslintrc.js`), and TypeScript oxlint configs
786
- * (`oxlint.config.ts`) are silently skipped.
786
+ * (`oxlint.config.ts`) are silently skipped. Adopted JSON configs are
787
+ * snapshotted before linting. Chains containing `jsPlugins`, symlinks,
788
+ * references outside the repository, or excessive nesting are skipped.
789
+ * Executable plugins belong in the explicit React Doctor `plugins` option.
787
790
  *
788
791
  * Category-level enables in the user's config (`"categories": { ... }`)
789
792
  * are NOT honored — react-doctor explicitly disables every oxlint