react-doctor 0.9.21 → 0.9.22-dev.9791c32

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 (37) hide show
  1. package/dist/{build-section-divider-7BsBHJzw.js → build-section-divider-C0g1Ei6e.js} +5 -5
  2. package/dist/{ci-BLYlhrnc.js → ci-WAuhTpme.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-C7tJ1mDM.js → constants-lt2tTZjE.js} +5 -5
  5. package/dist/{design-C-nUOSTQ.js → design-6hGxkjk5.js} +4 -4
  6. package/dist/{exit-gracefully-FiLLzTQ1.js → exit-gracefully-CrH0XOOM.js} +6 -6
  7. package/dist/{handle-error-e7o8z6_m.js → handle-error-I0xuMEX-.js} +6 -6
  8. package/dist/index.js +146 -11
  9. package/dist/{inspect-ByNwENtz.js → inspect-DqhYOioq.js} +17 -17
  10. package/dist/{install-CZoDYPVo.js → install-CPG0jnmG.js} +10 -10
  11. package/dist/{install-doctor-script-CVEZ2t6L.js → install-doctor-script-nXRFVnwB.js} +5 -5
  12. package/dist/{install-github-workflow-BWJ4D_F5.js → install-github-workflow-Dz_CjGWZ.js} +6 -6
  13. package/dist/{install-react-doctor-ets_78Xy.js → install-react-doctor-DTW7jlbB.js} +9 -9
  14. package/dist/{is-cache-globally-disabled-CKGkF0mF.js → is-cache-globally-disabled-af0VF8nQ.js} +4 -4
  15. package/dist/{jsx-runtime-Dm0FNmJL.js → jsx-runtime-CHPOZMf0.js} +6 -6
  16. package/dist/{print-branded-header-DiWfdjmT.js → print-branded-header-DOvoCTmj.js} +4 -4
  17. package/dist/{prompt-runtime-scan-url-BakCnJzL.js → prompt-runtime-scan-url-CUiYtHYM.js} +5 -5
  18. package/dist/{read-object-file-Oteoq7Zw.js → read-object-file-bxvNv0t7.js} +4 -4
  19. package/dist/{record-metric-2Z6Flpo9.js → record-metric-DnUGyTvk.js} +150 -14
  20. package/dist/{report-error-CGxoz0Wj.js → report-error-BHGXlglE.js} +6 -6
  21. package/dist/{report-workflow-result-Dzo7m2CJ.js → report-workflow-result-BcHDNP5c.js} +6 -6
  22. package/dist/{resolve-scan-exit-code-CEal9i8Y.js → resolve-scan-exit-code-Djt1bdjI.js} +15 -14
  23. package/dist/{resolve-scope-BOcZUNKd.js → resolve-scope-fia3B5zv.js} +6 -6
  24. package/dist/{rules-cl-Z5Jmn.js → rules-yf1pEM6s.js} +7 -7
  25. package/dist/{run-scan-app-9R9V35UK.js → run-scan-app-1XUEqAMy.js} +12 -12
  26. package/dist/{runtime-scan-DqDXHNTg.js → runtime-scan-CygUJs16.js} +10 -10
  27. package/dist/{sanitize-runtime-url-CQhLNz6k.js → sanitize-runtime-url-CTvmo6AI.js} +4 -4
  28. package/dist/{scan-CaDhrua0.js → scan-BseYx3YZ.js} +10 -10
  29. package/dist/{should-skip-prompts-CJupNfV9.js → should-skip-prompts-CPFR32SW.js} +4 -4
  30. package/dist/{should-use-tui-Bl-S8TT0.js → should-use-tui-BcJX70ai.js} +4 -4
  31. package/dist/{start-scan-preamble-2aM4aK2n.js → start-scan-preamble-CQy0CKXS.js} +5 -5
  32. package/dist/start-scan-preamble.js +3 -3
  33. package/dist/{telemetry-runtime-CB0-vVGJ.js → telemetry-runtime-BBE3cuSy.js} +7 -7
  34. package/dist/{version-CLPB9PA6.js → version-Ck8GLqQv.js} +5 -5
  35. package/dist/{why-CEvV2LR2.js → why-DXWUVbEL.js} +4 -4
  36. package/dist/{with-run-span-CcwxKjwz.js → with-run-span-MuO7EgYc.js} +6 -6
  37. package/package.json +5 -5
@@ -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]="4a524e08-26e6-576c-af9f-ce5fc0842f5a")}catch(e){}}();
3
- import { bt as DOCS_URL, lt as CANONICAL_GITHUB_URL } from "./constants-C7tJ1mDM.js";
4
- import { Mt as highlighter } from "./record-metric-2Z6Flpo9.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]="f359603d-7354-5c1b-802b-9663ba8ee241")}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-DnUGyTvk.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-7BsBHJzw.js.map
81
- //# debugId=4a524e08-26e6-576c-af9f-ce5fc0842f5a
80
+ //# sourceMappingURL=build-section-divider-C0g1Ei6e.js.map
81
+ //# debugId=f359603d-7354-5c1b-802b-9663ba8ee241
@@ -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]="89d77e55-7b93-5854-97fe-1424a5f5ed30")}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]="c07f06df-bd44-5643-87d5-24b96b33b4e8")}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-C7tJ1mDM.js";
5
- import { Mt as highlighter, Tn as runSync, _t as findGitRepositoryRoot, t as recordCount } from "./record-metric-2Z6Flpo9.js";
6
- import { o as isExpectedUserError } from "./telemetry-runtime-CB0-vVGJ.js";
7
- import { n as handleUserError, t as handleError } from "./handle-error-e7o8z6_m.js";
8
- import { t as reportErrorToSentry } from "./report-error-CGxoz0Wj.js";
9
- import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-CVEZ2t6L.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-BWJ4D_F5.js";
11
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-BOcZUNKd.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-CJupNfV9.js";
13
- import { t as printBrandedHeader } from "./print-branded-header-DiWfdjmT.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-DnUGyTvk.js";
6
+ import { o as isExpectedUserError } from "./telemetry-runtime-BBE3cuSy.js";
7
+ import { n as handleUserError, t as handleError } from "./handle-error-I0xuMEX-.js";
8
+ import { t as reportErrorToSentry } from "./report-error-BHGXlglE.js";
9
+ import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-nXRFVnwB.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-Dz_CjGWZ.js";
11
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-fia3B5zv.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CPFR32SW.js";
13
+ import { t as printBrandedHeader } from "./print-branded-header-DOvoCTmj.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-BLYlhrnc.js.map
7513
- //# debugId=89d77e55-7b93-5854-97fe-1424a5f5ed30
7512
+ //# sourceMappingURL=ci-WAuhTpme.js.map
7513
+ //# debugId=c07f06df-bd44-5643-87d5-24b96b33b4e8
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-C7tJ1mDM.js";
5
- import "./start-scan-preamble-2aM4aK2n.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-2Z6Flpo9.js";
7
- import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-CB0-vVGJ.js";
8
- import { t as exitGracefully } from "./exit-gracefully-FiLLzTQ1.js";
9
- import { n as handleUserError, t as handleError } from "./handle-error-e7o8z6_m.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-DnUGyTvk.js";
7
+ import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-BBE3cuSy.js";
8
+ import { t as exitGracefully } from "./exit-gracefully-CrH0XOOM.js";
9
+ import { n as handleUserError, t as handleError } from "./handle-error-I0xuMEX-.js";
10
10
  import { n as getLastRunTraceId } from "./active-run-trace-Dewycxda.js";
11
- import { t as reportErrorToSentry } from "./report-error-CGxoz0Wj.js";
11
+ import { t as reportErrorToSentry } from "./report-error-BHGXlglE.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-CaDhrua0.js");
3572
+ const { runScanCommand } = await import("./scan-BseYx3YZ.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-C-nUOSTQ.js");
3580
+ const { designAction } = await import("./design-6hGxkjk5.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-DqDXHNTg.js");
3584
+ const { runtimeScanAction } = await import("./runtime-scan-CygUJs16.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-CEvV2LR2.js");
3588
+ const { whyAction } = await import("./why-DXWUVbEL.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-CZoDYPVo.js");
3592
+ const { installAction } = await import("./install-CPG0jnmG.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-BLYlhrnc.js");
3599
+ const { ciInstallAction } = await import("./ci-WAuhTpme.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-BLYlhrnc.js");
3603
+ const { ciConfigAction } = await import("./ci-WAuhTpme.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-BLYlhrnc.js");
3607
+ const { ciUpgradeAction } = await import("./ci-WAuhTpme.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-CLPB9PA6.js");
3611
+ const { versionAction } = await import("./version-Ck8GLqQv.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-cl-Z5Jmn.js");
3616
+ const { rulesListAction } = await import("./rules-yf1pEM6s.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-cl-Z5Jmn.js");
3620
+ const { rulesExplainAction } = await import("./rules-yf1pEM6s.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-cl-Z5Jmn.js");
3624
+ const { rulesSetAction } = await import("./rules-yf1pEM6s.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-cl-Z5Jmn.js");
3628
+ const { rulesEnableAction } = await import("./rules-yf1pEM6s.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-cl-Z5Jmn.js");
3632
+ const { rulesDisableAction } = await import("./rules-yf1pEM6s.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-cl-Z5Jmn.js");
3636
+ const { rulesCategoryAction } = await import("./rules-yf1pEM6s.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-cl-Z5Jmn.js");
3640
+ const { rulesIgnoreTagAction } = await import("./rules-yf1pEM6s.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-cl-Z5Jmn.js");
3644
+ const { rulesUnignoreTagAction } = await import("./rules-yf1pEM6s.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-CaDhrua0.js");
3648
+ const { runScanCommand } = await import("./scan-BseYx3YZ.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]="cb47eefa-4fc9-5d94-85bc-db3d05c6b5b3")}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]="103fdb56-4439-5f6b-8c45-fce5082120c2")}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-Ckbb5j7q.js
14
+ //#region ../core/dist/constants-D-pz3KkB.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;
@@ -427,7 +427,7 @@ const MAINTAINABILITY_CATEGORY = "Maintainability";
427
427
  //#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
428
428
  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
429
  //#endregion
430
- //#region ../core/dist/react-compiler-detection-client-CiiqSKFw.js
430
+ //#region ../core/dist/react-compiler-detection-client-DLmrJui3.js
431
431
  const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
432
432
  const toRequestKey = (request) => [
433
433
  request.directory,
@@ -1034,5 +1034,5 @@ const METRIC = {
1034
1034
  //#endregion
1035
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 };
1036
1036
 
1037
- //# sourceMappingURL=constants-C7tJ1mDM.js.map
1038
- //# debugId=cb47eefa-4fc9-5d94-85bc-db3d05c6b5b3
1037
+ //# sourceMappingURL=constants-lt2tTZjE.js.map
1038
+ //# debugId=103fdb56-4439-5f6b-8c45-fce5082120c2
@@ -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]="defb0eda-d00b-5cf7-a03c-8529c2b0061b")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-ByNwENtz.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]="0e0ddb25-e9e0-50da-a69b-04af513cc243")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-DqhYOioq.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-C-nUOSTQ.js.map
14
- //# debugId=defb0eda-d00b-5cf7-a03c-8529c2b0061b
13
+ //# sourceMappingURL=design-6hGxkjk5.js.map
14
+ //# debugId=0e0ddb25-e9e0-50da-a69b-04af513cc243
@@ -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]="cadb049e-7282-5642-893a-5b33361df617")}catch(e){}}();
3
- import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-2Z6Flpo9.js";
4
- import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-CB0-vVGJ.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]="7ff096a3-7dc1-5f7b-ac5f-434695c65ce1")}catch(e){}}();
3
+ import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-DnUGyTvk.js";
4
+ import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-BBE3cuSy.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-7BsBHJzw.js";
6
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-C0g1Ei6e.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-FiLLzTQ1.js.map
54
- //# debugId=cadb049e-7282-5642-893a-5b33361df617
53
+ //# sourceMappingURL=exit-gracefully-CrH0XOOM.js.map
54
+ //# debugId=7ff096a3-7dc1-5f7b-ac5f-434695c65ce1
@@ -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]="30105909-7a49-5b90-86cb-140dafa02907")}catch(e){}}();
3
- import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-C7tJ1mDM.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-2Z6Flpo9.js";
5
- import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-CB0-vVGJ.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]="dfdc5986-e7e3-54ad-9080-9a7cdee62bb1")}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-DnUGyTvk.js";
5
+ import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-BBE3cuSy.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-e7o8z6_m.js.map
115
- //# debugId=30105909-7a49-5b90-86cb-140dafa02907
114
+ //# sourceMappingURL=handle-error-I0xuMEX-.js.map
115
+ //# debugId=dfdc5986-e7e3-54ad-9080-9a7cdee62bb1
package/dist/index.js CHANGED
@@ -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]="7650e757-0655-51bd-a5c7-6393b99fa04a")}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]="b49f9a11-6400-5ef3-b3f3-0c9cb2337cb3")}catch(e){}}();
3
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 fs$1$2 from "node:fs";
@@ -26,7 +26,7 @@ import { PassThrough } from "node:stream";
26
26
  import { convertToTSX } from "@astrojs/compiler/sync";
27
27
  import { STATUS_CODES } from "node:http";
28
28
  import { gzipSync } from "node:zlib";
29
- //#region ../core/dist/constants-Ckbb5j7q.js
29
+ //#region ../core/dist/constants-D-pz3KkB.js
30
30
  const HTML_FILE_PATTERN = /\.html$/i;
31
31
  const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
32
32
  const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
@@ -440,7 +440,7 @@ const isPlainObject = (value) => {
440
440
  //#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
441
441
  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);
442
442
  //#endregion
443
- //#region ../core/dist/react-compiler-detection-client-CiiqSKFw.js
443
+ //#region ../core/dist/react-compiler-detection-client-DLmrJui3.js
444
444
  const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
445
445
  const toRequestKey = (request) => [
446
446
  request.directory,
@@ -2710,7 +2710,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2710
2710
  module.exports = picomatch;
2711
2711
  }));
2712
2712
  //#endregion
2713
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-B65T4dYj.js
2713
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-D4bM_Zhs.js
2714
2714
  var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
2715
2715
  const pico = require_picomatch$1();
2716
2716
  const utils = require_utils();
@@ -3160,7 +3160,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
3160
3160
  return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
3161
3161
  };
3162
3162
  //#endregion
3163
- //#region ../core/dist/detect-duplicate-jsx-subtrees-pJBK9F39.js
3163
+ //#region ../core/dist/detect-duplicate-jsx-subtrees-BfvHEoZi.js
3164
3164
  const yieldToEventLoop = () => new Promise((resolve) => {
3165
3165
  setImmediate(resolve);
3166
3166
  });
@@ -3717,7 +3717,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
3717
3717
  });
3718
3718
  };
3719
3719
  //#endregion
3720
- //#region ../core/dist/detect-react-compiler-4a2Hs6Ek.js
3720
+ //#region ../core/dist/detect-react-compiler-BGN8JyDW.js
3721
3721
  const NEXT_CONFIG_FILENAMES = [
3722
3722
  "next.config.js",
3723
3723
  "next.config.mjs",
@@ -12540,6 +12540,8 @@ const onErrorFilter = /* @__PURE__ */ dual(3, (self, filter, f) => onExit$2(self
12540
12540
  /** @internal */
12541
12541
  const onInterrupt$1 = /* @__PURE__ */ dual(2, (self, finalizer) => onErrorFilter(causeFilterInterruptors, finalizer)(self));
12542
12542
  /** @internal */
12543
+ const acquireUseRelease$1 = (acquire, use, release) => uninterruptibleMask$1((restore) => flatMap$4(acquire, (a) => onExitPrimitive(restore(use(a)), (exit) => release(a, exit), true)));
12544
+ /** @internal */
12543
12545
  const cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, ttl) => sync$2(() => {
12544
12546
  const ttlMillis = toMillis(fromInputUnsafe(ttl));
12545
12547
  const isFinite = Number.isFinite(ttlMillis);
@@ -18690,6 +18692,84 @@ const scopedWith = scopedWith$1;
18690
18692
  */
18691
18693
  const acquireRelease = acquireRelease$1;
18692
18694
  /**
18695
+ * Runs resource acquisition, usage, and release as one bracketed effect.
18696
+ *
18697
+ * **When to use**
18698
+ *
18699
+ * Use to bracket acquire, use, and release logic in one effect.
18700
+ *
18701
+ * **Details**
18702
+ *
18703
+ * `acquireUseRelease` does the following:
18704
+ *
18705
+ * 1. Ensures that the `Effect` value that acquires the resource will not be
18706
+ * interrupted. Note that acquisition may still fail due to internal
18707
+ * reasons (such as an uncaught exception).
18708
+ * 2. Ensures that the `release` `Effect` value will not be interrupted,
18709
+ * and will be executed as long as the acquisition `Effect` value
18710
+ * successfully acquires the resource.
18711
+ *
18712
+ * During the time period between the acquisition and release of the resource,
18713
+ * the `use` `Effect` value will be executed.
18714
+ *
18715
+ * If the `release` `Effect` value fails, then the entire `Effect` value will
18716
+ * fail, even if the `use` `Effect` value succeeds. If this fail-fast behavior
18717
+ * is not desired, errors produced by the `release` `Effect` value can be caught
18718
+ * and ignored.
18719
+ *
18720
+ * **Example** (Acquiring resources with cleanup)
18721
+ *
18722
+ * ```ts
18723
+ * import { Console, Effect, Exit } from "effect"
18724
+ *
18725
+ * interface Database {
18726
+ * readonly connection: string
18727
+ * readonly query: (sql: string) => Effect.Effect<string>
18728
+ * }
18729
+ *
18730
+ * const program = Effect.acquireUseRelease(
18731
+ * // Acquire - connect to database
18732
+ * Effect.gen(function*() {
18733
+ * yield* Console.log("Connecting to database...")
18734
+ * return {
18735
+ * connection: "db://localhost:5432",
18736
+ * query: (sql: string) => Effect.succeed(`Result for: ${sql}`)
18737
+ * }
18738
+ * }),
18739
+ * // Use - perform database operations
18740
+ * (db) =>
18741
+ * Effect.gen(function*() {
18742
+ * yield* Console.log(`Connected to ${db.connection}`)
18743
+ * const result = yield* db.query("SELECT * FROM users")
18744
+ * yield* Console.log(`Query result: ${result}`)
18745
+ * return result
18746
+ * }),
18747
+ * // Release - close database connection
18748
+ * (db, exit) =>
18749
+ * Effect.gen(function*() {
18750
+ * if (Exit.isSuccess(exit)) {
18751
+ * yield* Console.log(`Closing connection to ${db.connection} (success)`)
18752
+ * } else {
18753
+ * yield* Console.log(`Closing connection to ${db.connection} (failure)`)
18754
+ * }
18755
+ * })
18756
+ * )
18757
+ *
18758
+ * Effect.runPromise(program)
18759
+ * // Output:
18760
+ * // Connecting to database...
18761
+ * // Connected to db://localhost:5432
18762
+ * // Query result: Result for: SELECT * FROM users
18763
+ * // Closing connection to db://localhost:5432 (success)
18764
+ * ```
18765
+ *
18766
+ * @see {@link acquireRelease} for scoped resources whose use happens later
18767
+ *
18768
+ * @category resource management
18769
+ * @since 2.0.0
18770
+ */
18771
+ const acquireUseRelease = acquireUseRelease$1;
18772
+ /**
18693
18773
  * Runs the specified effect if this effect fails, providing the error to the
18694
18774
  * effect if it exists. The provided effect will not be interrupted.
18695
18775
  *
@@ -73576,6 +73656,53 @@ var Git = class Git extends Service()("react-doctor/Git") {
73576
73656
  args,
73577
73657
  directory
73578
73658
  });
73659
+ const findUntrackedRenames = (directory, diffArgs, plan, untrackedFiles) => {
73660
+ const headFiles = new Set(plan.headFiles);
73661
+ const deletedFiles = new Set(plan.baseFiles.filter((filePath) => !headFiles.has(filePath) && plan.renamedFiles?.[filePath] === void 0));
73662
+ if (deletedFiles.size === 0 || untrackedFiles.length === 0) return succeed$2({});
73663
+ return acquireUseRelease(try_(() => fs.mkdtempSync(path.join(os.tmpdir(), "react-doctor-index-"))), (temporaryDirectory) => gen(function* () {
73664
+ const indexPath = yield* runGit(directory, [
73665
+ "rev-parse",
73666
+ "--path-format=absolute",
73667
+ "--git-path",
73668
+ "index"
73669
+ ]);
73670
+ if (indexPath.status !== 0) return {};
73671
+ const indexFile = path.join(temporaryDirectory, "index");
73672
+ const pathspecFile = path.join(temporaryDirectory, "untracked");
73673
+ yield* try_(() => {
73674
+ fs.copyFileSync(indexPath.stdout.trim(), indexFile);
73675
+ fs.writeFileSync(pathspecFile, untrackedFiles.join("\0"));
73676
+ });
73677
+ const env = { GIT_INDEX_FILE: indexFile };
73678
+ if ((yield* runCommand({
73679
+ command: "git",
73680
+ args: [
73681
+ "-c",
73682
+ "core.splitIndex=false",
73683
+ "--literal-pathspecs",
73684
+ "add",
73685
+ "--intent-to-add",
73686
+ `--pathspec-from-file=${pathspecFile}`,
73687
+ "--pathspec-file-nul"
73688
+ ],
73689
+ directory,
73690
+ env
73691
+ })).status !== 0) return {};
73692
+ const result = yield* runCommand({
73693
+ command: "git",
73694
+ args: diffArgs,
73695
+ directory,
73696
+ env
73697
+ });
73698
+ if (result.status !== 0) return {};
73699
+ const untrackedFileSet = new Set(untrackedFiles);
73700
+ return Object.fromEntries(Object.entries(parseBaselineDiffPlan(result.stdout)?.renamedFiles ?? {}).filter(([basePath, headPath]) => deletedFiles.has(basePath) && untrackedFileSet.has(headPath)));
73701
+ }), (temporaryDirectory) => sync(() => fs.rmSync(temporaryDirectory, {
73702
+ recursive: true,
73703
+ force: true
73704
+ }))).pipe(catch_$1(() => succeed$2({})));
73705
+ };
73579
73706
  const listUntrackedFilePaths = (directory, includePaths = []) => runGit(directory, [
73580
73707
  "ls-files",
73581
73708
  "-z",
@@ -73726,7 +73853,7 @@ var Git = class Git extends Service()("react-doctor/Git") {
73726
73853
  "--relative"
73727
73854
  ]);
73728
73855
  if (unmerged.status !== 0 || unmerged.stdout.length > 0) return null;
73729
- const result = yield* runGit(input.directory, [
73856
+ const diffArgs = [
73730
73857
  "diff",
73731
73858
  "--no-ext-diff",
73732
73859
  "--no-textconv",
@@ -73735,7 +73862,8 @@ var Git = class Git extends Service()("react-doctor/Git") {
73735
73862
  "--name-status",
73736
73863
  "--relative",
73737
73864
  input.ref
73738
- ]);
73865
+ ];
73866
+ const result = yield* runGit(input.directory, diffArgs);
73739
73867
  if (result.status !== 0) return null;
73740
73868
  const plan = parseBaselineDiffPlan(result.stdout);
73741
73869
  if (plan === null) return null;
@@ -73746,11 +73874,18 @@ var Git = class Git extends Service()("react-doctor/Git") {
73746
73874
  "-z"
73747
73875
  ]);
73748
73876
  if (untracked.status !== 0) return null;
73877
+ const untrackedFiles = splitNullSeparated(untracked.stdout);
73878
+ const untrackedRenamePaths = new Set(input.untrackedRenamePaths);
73879
+ const untrackedRenamedFiles = yield* findUntrackedRenames(input.directory, diffArgs, plan, untrackedFiles.filter((filePath) => untrackedRenamePaths.has(filePath)));
73880
+ const renamedFiles = {
73881
+ ...plan.renamedFiles,
73882
+ ...untrackedRenamedFiles
73883
+ };
73749
73884
  return {
73750
- ...plan,
73885
+ ...Object.keys(renamedFiles).length > 0 ? { renamedFiles } : {},
73751
73886
  baseFiles: plan.baseFiles,
73752
73887
  headFiles: plan.headFiles,
73753
- untrackedFiles: splitNullSeparated(untracked.stdout)
73888
+ untrackedFiles
73754
73889
  };
73755
73890
  }).pipe(catch_$1(() => succeed$2(null)), withSpan("Git.baselineDiffPlan"));
73756
73891
  },
@@ -79615,4 +79750,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79615
79750
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79616
79751
 
79617
79752
  //# sourceMappingURL=index.js.map
79618
- //# debugId=7650e757-0655-51bd-a5c7-6393b99fa04a
79753
+ //# debugId=b49f9a11-6400-5ef3-b3f3-0c9cb2337cb3