react-doctor 0.9.17-dev.5b301c9 → 0.9.17-dev.5f322ad

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 (36) hide show
  1. package/README.md +16 -68
  2. package/dist/{build-section-divider-DAbvn3b0.js → build-section-divider-BbKYu-5y.js} +4 -4
  3. package/dist/{ci-CL8NhTBP.js → ci-CYuN8toT.js} +12 -12
  4. package/dist/cli.js +23 -23
  5. package/dist/{design-DfFKiWoZ.js → design-OCqZVd7x.js} +4 -4
  6. package/dist/{exit-gracefully-sN2frfXJ.js → exit-gracefully-CZBLEbOm.js} +6 -6
  7. package/dist/{handle-error-B-RIZMsT.js → handle-error-Bwi9CyrT.js} +5 -5
  8. package/dist/index.d.ts +7 -1
  9. package/dist/index.js +3 -3
  10. package/dist/{inspect-Bjpionm9.js → inspect-BxNQMmLD.js} +15 -15
  11. package/dist/{install-DnnrhtCL.js → install-DYNWF5Vy.js} +9 -9
  12. package/dist/{install-doctor-script-DdFB7DN3.js → install-doctor-script-CzTyK5Fu.js} +4 -4
  13. package/dist/{install-github-workflow-DBEqUWpc.js → install-github-workflow-CBc2O7xq.js} +5 -5
  14. package/dist/{install-react-doctor-Dd5Ev1AZ.js → install-react-doctor-COq2CEmH.js} +8 -8
  15. package/dist/{jsx-runtime-B3mBHKlo.js → jsx-runtime-D64BECqK.js} +5 -5
  16. package/dist/{print-branded-header-CEs1IUhf.js → print-branded-header-CKcQuPpn.js} +4 -4
  17. package/dist/{prompt-runtime-scan-url-CjbkpITb.js → prompt-runtime-scan-url-DjQi0EOa.js} +5 -5
  18. package/dist/{read-object-file-z51OGP8c.js → read-object-file-CqhOG0VA.js} +4 -4
  19. package/dist/{record-metric-VBkk5sPY.js → record-metric-Bb9gfFqK.js} +5 -5
  20. package/dist/{report-error-B8Hd8D34.js → report-error-C00U8kCe.js} +5 -5
  21. package/dist/{report-workflow-result-CD0MhBQv.js → report-workflow-result-BADufT1q.js} +5 -5
  22. package/dist/{resolve-scan-exit-code-DRa9bIus.js → resolve-scan-exit-code-30AntMAD.js} +12 -11
  23. package/dist/{resolve-scope-_SO7kyxK.js → resolve-scope-D5NW18C7.js} +6 -6
  24. package/dist/{rules-Cv45NDzr.js → rules-BpSYrS5O.js} +6 -6
  25. package/dist/{run-scan-app-CQnApUu4.js → run-scan-app-XpxN1DKC.js} +10 -10
  26. package/dist/{runtime-scan-DlbjXHUY.js → runtime-scan-um8lELgY.js} +9 -9
  27. package/dist/{sanitize-runtime-url-BhZFMetC.js → sanitize-runtime-url-YHiyqoWH.js} +4 -4
  28. package/dist/{scan-CV_YUSvb.js → scan-CMCw-c6y.js} +9 -9
  29. package/dist/{should-skip-prompts-CQhi-hXr.js → should-skip-prompts-CA-BVgLO.js} +4 -4
  30. package/dist/{should-use-tui-BE7Unw1w.js → should-use-tui-CYA12df0.js} +4 -4
  31. package/dist/skills/react-doctor/references/explain.md +5 -0
  32. package/dist/{telemetry-runtime-B-3tB_1W.js → telemetry-runtime-Bw2ZK_Wd.js} +6 -6
  33. package/dist/{version-Dyc_H-vf.js → version-CVyazakx.js} +4 -4
  34. package/dist/{why-BmaRmwAe.js → why-SrrDSclX.js} +4 -4
  35. package/dist/{with-run-span-CIktTaX1.js → with-run-span-AohMshtf.js} +5 -5
  36. package/package.json +2 -2
package/README.md CHANGED
@@ -7,80 +7,53 @@
7
7
  [![version](https://img.shields.io/npm/v/react-doctor?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/react-doctor)
8
8
  [![downloads](https://img.shields.io/npm/dt/react-doctor.svg?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/react-doctor)
9
9
 
10
- Your agent writes bad React, this catches it.
10
+ React Doctor runs deterministic checks on your code. It reports issues in state and effects, performance, architecture, security, accessibility, and maintainability.
11
11
 
12
- React Doctor deterministically scans your codebase and finds issues across state and effects, performance, architecture, security, accessibility, and maintainability. It highlights overly complex React functions and repeated JSX trees that are good candidates for composition.
12
+ Supports React projects built with Next.js, Vite, Astro, TanStack, React Native, and Expo.
13
13
 
14
- Works across React frameworks and React-enabled sites - Next.js, Vite, Astro, TanStack, React Native, Expo, you name it.
15
-
16
- [Website →](https://react.doctor/docs)
14
+ [Documentation →](https://react.doctor/docs)
17
15
 
18
16
  ## Install
19
17
 
20
- ### 1. Quick start
18
+ ### 1. Run a scan
21
19
 
22
- Run this at your project root to get an audit.
20
+ Run this command from your project root:
23
21
 
24
22
  ```bash
25
23
  npx react-doctor@latest
26
24
  ```
27
25
 
28
- Pass file paths to scan only the files that another CI step selected.
29
-
30
- ```bash
31
- npx react-doctor@latest src/a.tsx src/b.tsx
32
- ```
33
-
34
26
  https://github.com/user-attachments/assets/07cc88d9-9589-44c3-aa73-5d603cb1c570
35
27
 
36
28
  ### 2. Install for agents
37
29
 
38
- Once you have an audit, you can install the skill for your coding agent to learn from the issues and fix them in the future.
30
+ Install the skill to help your coding agent find and fix React issues:
39
31
 
40
32
  ```bash
41
33
  npx react-doctor@latest install
42
34
  ```
43
35
 
44
- Works with Claude Code, Cursor, Codex, OpenCode, and many more.
36
+ Supports coding agents including Claude Code, Cursor, Codex, and OpenCode.
45
37
 
46
38
  ### 3. Run in CI
47
39
 
48
- React Doctor reviews every pull request and reports only the issues your change introduced, not your existing backlog. Set it up with one command:
40
+ Scan each pull request and report the issues it introduces:
49
41
 
50
42
  ```bash
51
43
  npx react-doctor@latest ci install
52
44
  ```
53
45
 
54
- This adds a workflow that scans each pull request and posts a summary comment.
55
-
56
- Set `comment-on-clean: false` in the Action inputs to create comments only when the scan finds issues. Existing comments still update after a clean scan.
57
-
58
- With the default `version: latest`, the Action uses an installed `react-doctor` dependency when available. Set another `version` value to override the installed version. Install your project dependencies before the Action to use this path.
59
-
60
- For a GitLab warning status without blocking a merge, use a separate warning exit code:
61
-
62
- ```yaml
63
- react-doctor:
64
- script:
65
- - npx react-doctor@latest . --warning-exit-code 123
66
- allow_failure:
67
- exit_codes: 123
68
- ```
69
-
70
- With the default `--blocking error`, errors and hard lint failures exit with `1`. Warnings exit with `123`. Clean scans exit with `0`. The warning code must be an integer from `2` to `255`. Without this option, warnings still exit with `0`.
71
-
72
- `--blocking warning` takes priority and exits with `1` for warnings. `--blocking none` disables the warning exit code. Score-only mode and degraded baseline comparisons also skip the warning exit code. The existing warning filters and `ciFailure` surface settings still apply.
73
-
74
46
  [CI docs →](https://react.doctor/ci)
75
47
 
76
48
  ### 4. Configure rules
77
49
 
78
- You can configure which rules to run and how to run them in `doctor.config.ts`.
50
+ Choose rules and scan settings in `doctor.config.ts`.
79
51
 
80
- The pnpm hardening check is off by default. To enable it, set
81
- `rules: { "react-doctor/require-pnpm-hardening": "warn" }` in your config.
52
+ With `customRulesOnly: true`, explicit `rules` settings of `"warn"` or `"error"`
53
+ enable selected ported rules. Legacy rule names also work. Other ported rules and
54
+ the React Compiler plugin stay off.
82
55
 
83
- [Learn more →](https://react.doctor/docs/configuration/config-files)
56
+ [Configuration docs →](https://react.doctor/docs/configuration/config-files)
84
57
 
85
58
  ## Runtime performance traces
86
59
 
@@ -90,41 +63,16 @@ Record a Chrome DevTools performance trace while you interact with a running Rea
90
63
  npx react-doctor@latest scan http://localhost:3000
91
64
  ```
92
65
 
93
- React Doctor opens system Chrome in a temporary isolated profile, records until you press Enter
94
- (up to five minutes), and flashes purple outlines with component names as React renders. It then
95
- returns a readable summary plus the path to a compressed DevTools trace. Use `--format json` or
96
- `--format jsonl` for coding agents. In an interactive terminal, you can run `react-doctor scan`
97
- without a URL and choose a detected localhost app or enter another URL; coding agents and CI must
98
- pass the URL explicitly.
99
-
100
- An already-open normal browser is left alone. To reuse an authenticated session, start a dedicated
101
- Chrome profile with remote debugging, sign in, close its non-blank tabs, and pass its endpoint:
102
-
103
- ```bash
104
- npx react-doctor@latest scan https://app.example.com --cdp http://127.0.0.1:9222
105
- ```
106
-
107
- Chrome performance tracing is browser-wide, so React Doctor rejects attached profiles with open
108
- pages. It closes blank startup tabs before tracing and closes its scan tab afterward; the attached
109
- browser stays open. The trace is stored locally and is never uploaded, but it can contain page
110
- URLs, source paths, and React profiling details. Treat it as sensitive application data.
66
+ [Runtime trace docs →](https://react.doctor/docs/reference/cli-reference#runtime-performance-traces)
111
67
 
112
68
  ## Telemetry
113
69
 
114
- The CLI reports crashes, basic run traces, and anonymous usage counters to [Sentry](https://sentry.io/) to help us fix bugs and prioritize work.
115
-
116
- We collect:
117
-
118
- - Environment: CLI version, platform, Node version
119
- - Invocation: which command, package manager, and run context (whether it's local vs. CI vs. coding agent)
120
- - Project shape: framework, React version, TypeScript, project size (NO file contents)
121
- - Rules fired: rule names and counts only (e.g. `react-doctor/no-array-index-as-key`) (NO code or specific findings)
122
- - De-minified React Doctor CLI stack traces
70
+ The CLI collects crash reports and anonymous usage data. See [Data use](https://react.doctor/docs/legal/data-use) for details.
123
71
 
124
72
  To opt out, run: `npx react-doctor@latest --no-telemetry`
125
73
 
126
74
  ## Contributing
127
75
 
128
- [Issues welcome!](https://github.com/millionco/react-doctor/issues)
76
+ [Report an issue](https://github.com/millionco/react-doctor/issues)
129
77
 
130
78
  MIT-licensed
@@ -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]="13f5a0e8-c46f-59a0-88b9-3f845c67d98c")}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]="8109b75c-3def-51fe-9133-62cf2fd2f080")}catch(e){}}();
3
3
  import { bt as DOCS_URL, lt as CANONICAL_GITHUB_URL } from "./constants-Bwylqy0B.js";
4
- import { jt as highlighter } from "./record-metric-VBkk5sPY.js";
4
+ import { jt as highlighter } from "./record-metric-Bb9gfFqK.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-DAbvn3b0.js.map
81
- //# debugId=13f5a0e8-c46f-59a0-88b9-3f845c67d98c
80
+ //# sourceMappingURL=build-section-divider-BbKYu-5y.js.map
81
+ //# debugId=8109b75c-3def-51fe-9133-62cf2fd2f080
@@ -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]="5cf71268-62fe-5de0-9caf-8d70e6fa2839")}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]="77b2f33c-2eb3-5055-b9e7-fbb87d4eb35e")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { kt as GITHUB_ACTIONS_SETUP_URL, u as METRIC, ut as CI_URL } from "./constants-Bwylqy0B.js";
5
- import { gt as findGitRepositoryRoot, jt as highlighter, t as recordCount, wn as runSync } from "./record-metric-VBkk5sPY.js";
6
- import { o as isExpectedUserError } from "./telemetry-runtime-B-3tB_1W.js";
7
- import { n as handleUserError, t as handleError } from "./handle-error-B-RIZMsT.js";
8
- import { t as reportErrorToSentry } from "./report-error-B8Hd8D34.js";
9
- import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-DdFB7DN3.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-DBEqUWpc.js";
11
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-_SO7kyxK.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-CQhi-hXr.js";
13
- import { t as printBrandedHeader } from "./print-branded-header-CEs1IUhf.js";
5
+ import { gt as findGitRepositoryRoot, jt as highlighter, t as recordCount, wn as runSync } from "./record-metric-Bb9gfFqK.js";
6
+ import { o as isExpectedUserError } from "./telemetry-runtime-Bw2ZK_Wd.js";
7
+ import { n as handleUserError, t as handleError } from "./handle-error-Bwi9CyrT.js";
8
+ import { t as reportErrorToSentry } from "./report-error-C00U8kCe.js";
9
+ import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-CzTyK5Fu.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-CBc2O7xq.js";
11
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-D5NW18C7.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CA-BVgLO.js";
13
+ import { t as printBrandedHeader } from "./print-branded-header-CKcQuPpn.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
@@ -7503,5 +7503,5 @@ const ciConfigAction = (options) => runCiCommand("config", runCiConfig, options)
7503
7503
  //#endregion
7504
7504
  export { ciConfigAction, ciInstallAction, ciUpgradeAction };
7505
7505
 
7506
- //# sourceMappingURL=ci-CL8NhTBP.js.map
7507
- //# debugId=5cf71268-62fe-5de0-9caf-8d70e6fa2839
7506
+ //# sourceMappingURL=ci-CYuN8toT.js.map
7507
+ //# debugId=77b2f33c-2eb3-5055-b9e7-fbb87d4eb35e
package/dist/cli.js CHANGED
@@ -3,12 +3,12 @@
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { lt as CANONICAL_GITHUB_URL, ut as CI_URL } from "./constants-Bwylqy0B.js";
5
5
  import "./start-scan-preamble-2uz0joCl.js";
6
- import { $t as setColorEnabled, Mt as isPathInsideDirectory, S as isDebugFlagEnabled, Un as isFile, Vn as isDirectory, _ as VERSION, d as isJsonModeActive, h as writeJsonErrorReport, ht as filterSourceFiles, i as isTelemetryEnabled, jt as highlighter, y as CliInputError } from "./record-metric-VBkk5sPY.js";
7
- import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-B-3tB_1W.js";
8
- import { t as exitGracefully } from "./exit-gracefully-sN2frfXJ.js";
9
- import { n as handleUserError, t as handleError } from "./handle-error-B-RIZMsT.js";
6
+ import { $t as setColorEnabled, Mt as isPathInsideDirectory, S as isDebugFlagEnabled, Un as isFile, Vn as isDirectory, _ as VERSION, d as isJsonModeActive, h as writeJsonErrorReport, ht as filterSourceFiles, i as isTelemetryEnabled, jt as highlighter, y as CliInputError } from "./record-metric-Bb9gfFqK.js";
7
+ import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-Bw2ZK_Wd.js";
8
+ import { t as exitGracefully } from "./exit-gracefully-CZBLEbOm.js";
9
+ import { n as handleUserError, t as handleError } from "./handle-error-Bwi9CyrT.js";
10
10
  import { n as getLastRunTraceId } from "./active-run-trace-Dewycxda.js";
11
- import { t as reportErrorToSentry } from "./report-error-B8Hd8D34.js";
11
+ import { t as reportErrorToSentry } from "./report-error-C00U8kCe.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), or lines (issues whose source spans touch changed lines)").option("--baseline <report.json>", "report only new issues compared with a saved JSON report").option("--base <ref>", "base git ref for files/changed/lines scope (auto-detected when omitted)").option("--include-untracked", "with --scope files/changed/lines, 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-CV_YUSvb.js");
3572
+ const { runScanCommand } = await import("./scan-CMCw-c6y.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-DfFKiWoZ.js");
3580
+ const { designAction } = await import("./design-OCqZVd7x.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-DlbjXHUY.js");
3584
+ const { runtimeScanAction } = await import("./runtime-scan-um8lELgY.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-BmaRmwAe.js");
3588
+ const { whyAction } = await import("./why-SrrDSclX.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-DnnrhtCL.js");
3592
+ const { installAction } = await import("./install-DYNWF5Vy.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-CL8NhTBP.js");
3599
+ const { ciInstallAction } = await import("./ci-CYuN8toT.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, 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-CL8NhTBP.js");
3603
+ const { ciConfigAction } = await import("./ci-CYuN8toT.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-CL8NhTBP.js");
3607
+ const { ciUpgradeAction } = await import("./ci-CYuN8toT.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-Dyc_H-vf.js");
3611
+ const { versionAction } = await import("./version-CVyazakx.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-Cv45NDzr.js");
3616
+ const { rulesListAction } = await import("./rules-BpSYrS5O.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-Cv45NDzr.js");
3620
+ const { rulesExplainAction } = await import("./rules-BpSYrS5O.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-Cv45NDzr.js");
3624
+ const { rulesSetAction } = await import("./rules-BpSYrS5O.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-Cv45NDzr.js");
3628
+ const { rulesEnableAction } = await import("./rules-BpSYrS5O.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-Cv45NDzr.js");
3632
+ const { rulesDisableAction } = await import("./rules-BpSYrS5O.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-Cv45NDzr.js");
3636
+ const { rulesCategoryAction } = await import("./rules-BpSYrS5O.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-Cv45NDzr.js");
3640
+ const { rulesIgnoreTagAction } = await import("./rules-BpSYrS5O.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-Cv45NDzr.js");
3644
+ const { rulesUnignoreTagAction } = await import("./rules-BpSYrS5O.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-CV_YUSvb.js");
3648
+ const { runScanCommand } = await import("./scan-CMCw-c6y.js");
3649
3649
  return runScanCommand({
3650
3650
  directory,
3651
3651
  flags: command.optsWithGlobals(),
@@ -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]="00ae05dd-a127-5086-82cc-13725c5f2ef7")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-Bjpionm9.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]="0b70c13b-c3d0-5247-96b8-eabab8231b0f")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-BxNQMmLD.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-DfFKiWoZ.js.map
14
- //# debugId=00ae05dd-a127-5086-82cc-13725c5f2ef7
13
+ //# sourceMappingURL=design-OCqZVd7x.js.map
14
+ //# debugId=0b70c13b-c3d0-5247-96b8-eabab8231b0f
@@ -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]="71ecb0bb-6551-54df-81a9-4434da0501cb")}catch(e){}}();
3
- import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-VBkk5sPY.js";
4
- import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-B-3tB_1W.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]="c3f2e0ba-f8d6-5aa0-8072-983e5d4252dd")}catch(e){}}();
3
+ import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-Bb9gfFqK.js";
4
+ import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-Bw2ZK_Wd.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-DAbvn3b0.js";
6
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-BbKYu-5y.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-sN2frfXJ.js.map
54
- //# debugId=71ecb0bb-6551-54df-81a9-4434da0501cb
53
+ //# sourceMappingURL=exit-gracefully-CZBLEbOm.js.map
54
+ //# debugId=c3f2e0ba-f8d6-5aa0-8072-983e5d4252dd
@@ -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]="27ced4a1-f3e6-5f23-a71f-00be0a84fc8c")}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]="8b5e04c2-0739-52ea-8605-eab9496f6381")}catch(e){}}();
3
3
  import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-Bwylqy0B.js";
4
- import { Hn as isErrnoException, Pt as isReactDoctorError, _ as VERSION, bt as formatReactDoctorError, hn as gen, jt as highlighter, sn as error, t as recordCount, wn as runSync, yt as formatErrorChain } from "./record-metric-VBkk5sPY.js";
5
- import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-B-3tB_1W.js";
4
+ import { Hn as isErrnoException, Pt as isReactDoctorError, _ as VERSION, bt as formatReactDoctorError, hn as gen, jt as highlighter, sn as error, t as recordCount, wn as runSync, yt as formatErrorChain } from "./record-metric-Bb9gfFqK.js";
5
+ import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-Bw2ZK_Wd.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-B-RIZMsT.js.map
115
- //# debugId=27ced4a1-f3e6-5f23-a71f-00be0a84fc8c
114
+ //# sourceMappingURL=handle-error-Bwi9CyrT.js.map
115
+ //# debugId=8b5e04c2-0739-52ea-8605-eab9496f6381
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-DJ7pmvUB.d.ts
344
+ //#region ../core/dist/resolve-scan-concurrency-BxhVdcLW.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
@@ -661,6 +661,12 @@ interface ReactDoctorConfig {
661
661
  * one-time deprecation warning. Prefer `blocking`.
662
662
  */
663
663
  failOn?: BlockingLevel;
664
+ /**
665
+ * Disable ported rules by default. Explicit `rules` settings of `"warn"`
666
+ * or `"error"` enable selected ported rules, including legacy rule names.
667
+ * Category settings do not enable them. Project requirements and tag
668
+ * exclusions still apply, and the React Compiler plugin stays disabled.
669
+ */
664
670
  customRulesOnly?: boolean;
665
671
  share?: boolean;
666
672
  noScore?: boolean;
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]="9370a797-f2f1-5080-b905-34abae37c822")}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]="f12184f7-b9b6-5ffe-9f90-b9695781aae4")}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";
@@ -74264,10 +74264,10 @@ const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, exte
74264
74264
  if (ruleSelection === "sidecar" && sidecarRuleIdFilter !== void 0 && !sidecarRuleIdFilter.has(registryEntry.id)) continue;
74265
74265
  if (rule.isScanRule || rule.isProjectRule === true) continue;
74266
74266
  if (registryEntry.id === "no-multi-component-file" && shouldUseExplicitNoMultiCompPolicy) continue;
74267
- if (customRulesOnly && registryEntry.originallyExternal) continue;
74268
74267
  if (rule.framework !== "global" && !rule.requires) continue;
74269
74268
  if (!shouldEnableRule(rule.requires, rule.tags, capabilities, ignoredTags, rule.disabledWhen, includedTags)) continue;
74270
74269
  const explicitRuleOverride = resolveRuleSeverityOverride({ ruleKey: registryEntry.key }, severityControls);
74270
+ if (customRulesOnly && registryEntry.originallyExternal && (explicitRuleOverride === void 0 || explicitRuleOverride === "off")) continue;
74271
74271
  if (!shouldEnableRuleByDefaultStatus({
74272
74272
  defaultEnabled: rule.defaultEnabled,
74273
74273
  includeTagDefaults,
@@ -79315,4 +79315,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79315
79315
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79316
79316
 
79317
79317
  //# sourceMappingURL=index.js.map
79318
- //# debugId=9370a797-f2f1-5080-b905-34abae37c822
79318
+ //# debugId=f12184f7-b9b6-5ffe-9f90-b9695781aae4
@@ -1,19 +1,19 @@
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]="ee016f5c-3d94-5166-944b-941e12c30e66")}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]="86ee76f8-47fc-524c-86a5-61aecdd7cdf7")}catch(e){}}();
3
3
  import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-Bwylqy0B.js";
4
- import { An as provide, Bt as listWorkspacePackages, Cn as runPromise, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Hn as isErrnoException, Ht as mapWithConcurrency, K as StagedFiles, Kt as remainingDeadlineBudgetMs, S as isDebugFlagEnabled, St as getChangedLineRanges, Wn as isPlainObject, Yt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, _t as findLegacyConfig, bn as provide$1, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as JsonReport, ft as discoverSupportedSubprojects, g as writeJsonReport, h as writeJsonErrorReport, hn as gen, j as Git, jt as highlighter, kt as hasSupportedFrameworkOrLibrary, n as recordDistribution, nn as toRelativePath, p as setJsonReportMode, pn as decodeUnknownSync, t as recordCount, u as enableJsonMode, wt as getDiffInfo, xt as getBaselineDiffPlan, y as CliInputError, zn as messageFromUnknown } from "./record-metric-VBkk5sPY.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-B-3tB_1W.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-B-RIZMsT.js";
7
- import { t as reportErrorToSentry } from "./report-error-B8Hd8D34.js";
4
+ import { An as provide, Bt as listWorkspacePackages, Cn as runPromise, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Hn as isErrnoException, Ht as mapWithConcurrency, K as StagedFiles, Kt as remainingDeadlineBudgetMs, S as isDebugFlagEnabled, St as getChangedLineRanges, Wn as isPlainObject, Yt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, _t as findLegacyConfig, bn as provide$1, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as JsonReport, ft as discoverSupportedSubprojects, g as writeJsonReport, h as writeJsonErrorReport, hn as gen, j as Git, jt as highlighter, kt as hasSupportedFrameworkOrLibrary, n as recordDistribution, nn as toRelativePath, p as setJsonReportMode, pn as decodeUnknownSync, t as recordCount, u as enableJsonMode, wt as getDiffInfo, xt as getBaselineDiffPlan, y as CliInputError, zn as messageFromUnknown } from "./record-metric-Bb9gfFqK.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-Bw2ZK_Wd.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-Bwi9CyrT.js";
7
+ import { t as reportErrorToSentry } from "./report-error-C00U8kCe.js";
8
8
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
9
- import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DdFB7DN3.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-DBEqUWpc.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-_SO7kyxK.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-CQhi-hXr.js";
13
- import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-DRa9bIus.js";
14
- import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-CD0MhBQv.js";
15
- import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-Dd5Ev1AZ.js";
16
- import { t as readObjectFile } from "./read-object-file-z51OGP8c.js";
9
+ import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-CzTyK5Fu.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CBc2O7xq.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-D5NW18C7.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CA-BVgLO.js";
13
+ import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-30AntMAD.js";
14
+ import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-BADufT1q.js";
15
+ import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-COq2CEmH.js";
16
+ import { t as readObjectFile } from "./read-object-file-CqhOG0VA.js";
17
17
  import * as fs$1 from "node:fs";
18
18
  import fs from "node:fs";
19
19
  import * as path$1 from "node:path";
@@ -1523,5 +1523,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
1523
1523
  //#endregion
1524
1524
  export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
1525
1525
 
1526
- //# sourceMappingURL=inspect-Bjpionm9.js.map
1527
- //# debugId=ee016f5c-3d94-5166-944b-941e12c30e66
1526
+ //# sourceMappingURL=inspect-BxNQMmLD.js.map
1527
+ //# debugId=86ee76f8-47fc-524c-86a5-61aecdd7cdf7
@@ -1,12 +1,12 @@
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]="9ca63c6b-d73b-57af-8894-d294b6bf7ce0")}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]="e43e1c9a-747a-573c-b8ac-243b066a4bae")}catch(e){}}();
3
3
  import { u as METRIC } from "./constants-Bwylqy0B.js";
4
- import { t as recordCount, wn as runSync } from "./record-metric-VBkk5sPY.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-B-3tB_1W.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-B-RIZMsT.js";
7
- import { t as reportErrorToSentry } from "./report-error-B8Hd8D34.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-CEs1IUhf.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-Dd5Ev1AZ.js";
4
+ import { t as recordCount, wn as runSync } from "./record-metric-Bb9gfFqK.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-Bw2ZK_Wd.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-Bwi9CyrT.js";
7
+ import { t as reportErrorToSentry } from "./report-error-C00U8kCe.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-CKcQuPpn.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-COq2CEmH.js";
10
10
  //#region src/cli/commands/install.ts
11
11
  const installAction = async (options, command) => {
12
12
  recordCount(METRIC.cliInvoked, 1, { command: "install" });
@@ -30,5 +30,5 @@ const installAction = async (options, command) => {
30
30
  //#endregion
31
31
  export { installAction };
32
32
 
33
- //# sourceMappingURL=install-DnnrhtCL.js.map
34
- //# debugId=9ca63c6b-d73b-57af-8894-d294b6bf7ce0
33
+ //# sourceMappingURL=install-DYNWF5Vy.js.map
34
+ //# debugId=e43e1c9a-747a-573c-b8ac-243b066a4bae
@@ -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]="36dd5c09-4f18-5582-b543-0671489fdacb")}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]="5fe27ee5-8586-5416-b013-bce4ad78f283")}catch(e){}}();
3
3
  import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-Bwylqy0B.js";
4
- import { b as isNonInteractiveEnvironment, cn as info$1, jt as highlighter, ln as log, sn as error$1, un as warn, wn as runSync } from "./record-metric-VBkk5sPY.js";
4
+ import { b as isNonInteractiveEnvironment, cn as info$1, jt as highlighter, ln as log, sn as error$1, un as warn, wn as runSync } from "./record-metric-Bb9gfFqK.js";
5
5
  import { a as chalk, i as stripAnsi, t as eastAsianWidth } from "./get-east-asian-width-DRPy7dqz.js";
6
6
  import * as fs$1 from "node:fs";
7
7
  import * as path$1 from "node:path";
@@ -2818,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
2818
2818
  //#endregion
2819
2819
  export { runGitAsync as A, isRecord as C, readPackageJson as D, packageHasRecordKey as E, writeJsonFile as M, cliLogger as N, resolveGitPath as O, getPackageJsonPath as S, packageHasNestedRecordKey as T, REACT_DOCTOR_COMMAND as _, installReactDoctorScriptStep as a, VITE_PLUS_HOOKS_PATH as b, spinner as c, HUSKY_HOOKS_PATH as d, LEFTHOOK_CONFIG_FILES as f, PRE_COMMIT_CONFIG_FILE as g, OVERCOMMIT_CONFIG_FILE as h, hasDoctorScript as i, runGitRaw as j, runGit as k, HOOK_FILE_NAME as l, NON_BLOCKING_REACT_DOCTOR_COMMAND as m, findNearestPackageDirectory as n, isSpinnerSilent as o, LEGACY_HOOK_RUNNER_RELATIVE_PATH as p, hasDoctorDependency as r, setSpinnerSilent as s, DOCTOR_PACKAGE_NAME as t, HOOK_RELATIVE_PATH as u, SIMPLE_GIT_HOOKS_CONFIG_FILE as v, packageHasDependency as w, ensureTrailingNewline as x, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as y };
2820
2820
 
2821
- //# sourceMappingURL=install-doctor-script-DdFB7DN3.js.map
2822
- //# debugId=36dd5c09-4f18-5582-b543-0671489fdacb
2821
+ //# sourceMappingURL=install-doctor-script-CzTyK5Fu.js.map
2822
+ //# debugId=5fe27ee5-8586-5416-b013-bce4ad78f283
@@ -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]="3837c376-0128-58e2-b388-091f9308db4e")}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]="3f7680f8-14a6-5e7e-8117-8475d826e30b")}catch(e){}}();
3
3
  import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-Bwylqy0B.js";
4
- import { gt as findGitRepositoryRoot } from "./record-metric-VBkk5sPY.js";
4
+ import { gt as findGitRepositoryRoot } from "./record-metric-Bb9gfFqK.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-DdFB7DN3.js";
6
+ import { N as cliLogger } from "./install-doctor-script-CzTyK5Fu.js";
7
7
  import { createRequire } from "node:module";
8
8
  import * as fs$1 from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -281,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
281
281
  //#endregion
282
282
  export { readReactDoctorWorkflow as a, workflowUsesV1Action as c, detectDefaultBranch as d, runCommand as f, isReactDoctorWorkflowInstalled as i, prompts as l, getReactDoctorWorkflowPath as n, upgradeReactDoctorWorkflowInPlace as o, installReactDoctorWorkflow as r, upgradeWorkflowActionToV2 as s, buildWorkflowContent as t, isCommandAvailable as u };
283
283
 
284
- //# sourceMappingURL=install-github-workflow-DBEqUWpc.js.map
285
- //# debugId=3837c376-0128-58e2-b388-091f9308db4e
284
+ //# sourceMappingURL=install-github-workflow-CBc2O7xq.js.map
285
+ //# debugId=3f7680f8-14a6-5e7e-8117-8475d826e30b