react-doctor 0.9.12-dev.1971506 → 0.9.12-dev.2b0f06e

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 (35) hide show
  1. package/dist/{build-section-divider-dzVqU6Fr.js → build-section-divider-D_v6WkSf.js} +7 -7
  2. package/dist/{ci-tO6eKsPx.js → ci-CRuXbH3D.js} +12 -12
  3. package/dist/cli.js +24 -24
  4. package/dist/{design-BOr8ASzl.js → design-4JdzGp7l.js} +4 -4
  5. package/dist/{exit-gracefully-B4JO2DSi.js → exit-gracefully-B-aIckQm.js} +6 -6
  6. package/dist/{handle-error-JVQU0Pxy.js → handle-error-DIJp6KGi.js} +5 -5
  7. package/dist/index.d.ts +32 -0
  8. package/dist/index.js +128 -3
  9. package/dist/{inspect-CBkHe9dS.js → inspect-BFbqw1rf.js} +16 -16
  10. package/dist/{install-DG3MH36X.js → install-CJgOEd94.js} +9 -9
  11. package/dist/{install-doctor-script-DaB6kssK.js → install-doctor-script-BdxYpXZI.js} +4 -4
  12. package/dist/{install-github-workflow-CHs4pPvZ.js → install-github-workflow-CqbWtIgt.js} +5 -5
  13. package/dist/{install-react-doctor-D4Z6xm2T.js → install-react-doctor-C7SKnOTZ.js} +8 -8
  14. package/dist/{jsx-runtime-5ph9KX7N.js → jsx-runtime-CmCDiKfl.js} +5 -5
  15. package/dist/{print-branded-header-BRA02Uik.js → print-branded-header-qIFyuETX.js} +4 -4
  16. package/dist/{prompt-runtime-scan-url-1IvWhRJ0.js → prompt-runtime-scan-url-CL2dlnZd.js} +5 -5
  17. package/dist/{read-object-file-CacQMaGw.js → read-object-file-CBK-rayZ.js} +4 -4
  18. package/dist/{record-metric-DcBAbVVs.js → record-metric-CNHDZW2C.js} +130 -5
  19. package/dist/{report-error-Cj58fOLO.js → report-error-CKKT4508.js} +5 -5
  20. package/dist/{report-workflow-result-DadOSgvV.js → report-workflow-result-B727d63m.js} +5 -5
  21. package/dist/{resolve-scope-pqK2skSv.js → resolve-scope-Dsafs5WC.js} +6 -6
  22. package/dist/{rules-IBWoSmK_.js → rules-CMFJO4Nw.js} +6 -6
  23. package/dist/{run-scan-app-JphzszIp.js → run-scan-app-BYjPV87g.js} +10 -10
  24. package/dist/{runtime-scan-BSMwOS9F.js → runtime-scan-CPWa4luI.js} +9 -9
  25. package/dist/{sanitize-runtime-url-BN8oyAb7.js → sanitize-runtime-url-CmSOuwqY.js} +4 -4
  26. package/dist/{scan-1Hakw1J4.js → scan-D4Z3HTnz.js} +9 -9
  27. package/dist/{should-fail-scan-gate-CwBjVudY.js → should-fail-scan-gate-B1SBLqAA.js} +11 -11
  28. package/dist/{should-skip-prompts-CtQ-6r7T.js → should-skip-prompts-HRpuZc_r.js} +4 -4
  29. package/dist/{should-use-tui-BLBNwhU6.js → should-use-tui-aKQP1UDR.js} +4 -4
  30. package/dist/skills/improve-threejs/SKILL.md +102 -0
  31. package/dist/{telemetry-runtime-BxsPVkMH.js → telemetry-runtime-gpSkE7tQ.js} +4 -4
  32. package/dist/{version-5WSKTaCF.js → version-B3x9O0_8.js} +4 -4
  33. package/dist/{why-DHTN2DPT.js → why-L7QLihhQ.js} +4 -4
  34. package/dist/{with-run-span-Kn-I23fJ.js → with-run-span-DMPEdZJM.js} +5 -5
  35. package/package.json +4 -4
@@ -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]="267d72c7-1d42-5b00-a30a-cb4d8f169058")}catch(e){}}();
3
- import { Kt as highlighter, N as SENTRY_FLUSH_TIMEOUT_MS, a as isEnvFlagEnabled, er as CANONICAL_GITHUB_URL, ft as anonymizeInPlace, hn as scrubSensitivePaths, i as isTelemetryEnabled, o as buildSentryScope, or as DOCS_URL, pt as anonymizeText } from "./record-metric-DcBAbVVs.js";
4
- import { r as isExpectedUserError } from "./telemetry-runtime-BxsPVkMH.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]="bf4c9c8c-e88d-5801-85fb-df4ea324e7d1")}catch(e){}}();
3
+ import { Kt as highlighter, N as SENTRY_FLUSH_TIMEOUT_MS, a as isEnvFlagEnabled, er as CANONICAL_GITHUB_URL, ft as anonymizeInPlace, hn as scrubSensitivePaths, i as isTelemetryEnabled, o as buildSentryScope, or as DOCS_URL, pt as anonymizeText } from "./record-metric-CNHDZW2C.js";
4
+ import { r as isExpectedUserError } from "./telemetry-runtime-gpSkE7tQ.js";
5
5
  import * as Sentry from "@sentry/node";
6
6
  //#region src/cli/utils/scrub-sentry-event.ts
7
7
  /**
@@ -70,13 +70,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
70
70
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
71
71
  * standard `SENTRY_RELEASE` override.
72
72
  */
73
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.12-dev.1971506`;
73
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.12-dev.2b0f06e`;
74
74
  /**
75
75
  * Deployment environment shown in Sentry's environment filter. Defaults to
76
76
  * `production` for tagged releases and `development` for dev/unbuilt versions,
77
77
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
78
78
  */
79
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.12-dev.1971506") ? "development" : "production");
79
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.12-dev.2b0f06e") ? "development" : "production");
80
80
  //#endregion
81
81
  //#region src/instrument.ts
82
82
  let isInitialized = false;
@@ -212,5 +212,5 @@ const buildSectionDivider = () => highlighter.dim(`${DIVIDER_INDENT}${"─".repe
212
212
  //#endregion
213
213
  export { initializeSentry as i, buildFooterLinkLines as n, flushSentry as r, buildSectionDivider as t };
214
214
 
215
- //# sourceMappingURL=build-section-divider-dzVqU6Fr.js.map
216
- //# debugId=267d72c7-1d42-5b00-a30a-cb4d8f169058
215
+ //# sourceMappingURL=build-section-divider-D_v6WkSf.js.map
216
+ //# debugId=bf4c9c8c-e88d-5801-85fb-df4ea324e7d1
@@ -1,15 +1,15 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0432f1d2-094e-594c-8f14-54428df96509")}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]="4d9f7558-1ac8-53ca-87ae-d1120c892523")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { Kt as highlighter, T as METRIC, cr as GITHUB_ACTIONS_SETUP_URL, t as recordCount, tr as CI_URL, zn as runSync } from "./record-metric-DcBAbVVs.js";
5
- import { r as isExpectedUserError } from "./telemetry-runtime-BxsPVkMH.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-JVQU0Pxy.js";
7
- import { t as reportErrorToSentry } from "./report-error-Cj58fOLO.js";
8
- import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-DaB6kssK.js";
9
- 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-CHs4pPvZ.js";
10
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-pqK2skSv.js";
11
- import { t as shouldSkipPrompts } from "./should-skip-prompts-CtQ-6r7T.js";
12
- import { t as printBrandedHeader } from "./print-branded-header-BRA02Uik.js";
4
+ import { Kt as highlighter, T as METRIC, cr as GITHUB_ACTIONS_SETUP_URL, t as recordCount, tr as CI_URL, zn as runSync } from "./record-metric-CNHDZW2C.js";
5
+ import { r as isExpectedUserError } from "./telemetry-runtime-gpSkE7tQ.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-DIJp6KGi.js";
7
+ import { t as reportErrorToSentry } from "./report-error-CKKT4508.js";
8
+ import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-BdxYpXZI.js";
9
+ 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-CqbWtIgt.js";
10
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-Dsafs5WC.js";
11
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-HRpuZc_r.js";
12
+ import { t as printBrandedHeader } from "./print-branded-header-qIFyuETX.js";
13
13
  import * as path$1 from "node:path";
14
14
  import * as fs$1 from "node:fs";
15
15
  //#region src/cli/utils/ci/ci-provider.ts
@@ -7498,5 +7498,5 @@ const ciConfigAction = (options) => runCiCommand("config", runCiConfig, options)
7498
7498
  //#endregion
7499
7499
  export { ciConfigAction, ciInstallAction, ciUpgradeAction };
7500
7500
 
7501
- //# sourceMappingURL=ci-tO6eKsPx.js.map
7502
- //# debugId=0432f1d2-094e-594c-8f14-54428df96509
7501
+ //# sourceMappingURL=ci-CRuXbH3D.js.map
7502
+ //# debugId=4d9f7558-1ac8-53ca-87ae-d1120c892523
package/dist/cli.js CHANGED
@@ -1,13 +1,13 @@
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]="060d9fda-090f-56c0-a01c-3ce99371376f")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { H as isDebugFlagEnabled, Kt as highlighter, _ as VERSION, d as isJsonModeActive, er as CANONICAL_GITHUB_URL, gn as setColorEnabled, h as writeJsonErrorReport, i as isTelemetryEnabled, tr as CI_URL, z as CliInputError } from "./record-metric-DcBAbVVs.js";
5
- import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-BxsPVkMH.js";
6
- import { i as initializeSentry, r as flushSentry } from "./build-section-divider-dzVqU6Fr.js";
7
- import { t as exitGracefully } from "./exit-gracefully-B4JO2DSi.js";
8
- import { n as handleUserError, t as handleError } from "./handle-error-JVQU0Pxy.js";
4
+ import { H as isDebugFlagEnabled, Kt as highlighter, _ as VERSION, d as isJsonModeActive, er as CANONICAL_GITHUB_URL, gn as setColorEnabled, h as writeJsonErrorReport, i as isTelemetryEnabled, tr as CI_URL, z as CliInputError } from "./record-metric-CNHDZW2C.js";
5
+ import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-gpSkE7tQ.js";
6
+ import { i as initializeSentry, r as flushSentry } from "./build-section-divider-D_v6WkSf.js";
7
+ import { t as exitGracefully } from "./exit-gracefully-B-aIckQm.js";
8
+ import { n as handleUserError, t as handleError } from "./handle-error-DIJp6KGi.js";
9
9
  import { n as getLastRunTraceId } from "./active-run-trace-dlIZeEvb.js";
10
- import { t as reportErrorToSentry } from "./report-error-Cj58fOLO.js";
10
+ import { t as reportErrorToSentry } from "./report-error-CKKT4508.js";
11
11
  import { t as unrefStdin } from "./unref-stdin-BKT_s38a.js";
12
12
  import { execFileSync } from "node:child_process";
13
13
  //#region ../../node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/error.js
@@ -3529,7 +3529,7 @@ ${highlighter.dim("Learn more:")}
3529
3529
  const collectCategoryOption = (value, previousValues) => [...previousValues ?? [], value];
3530
3530
  const program = new Command().name("react-doctor").description("Diagnose React codebase health").version(VERSION, "-v, --version", "display the version number").argument("[directory]", "project directory 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("--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)").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);
3531
3531
  program.action(async (directory = ".", flags) => {
3532
- const { runScanCommand } = await import("./scan-1Hakw1J4.js");
3532
+ const { runScanCommand } = await import("./scan-D4Z3HTnz.js");
3533
3533
  return runScanCommand({
3534
3534
  directory,
3535
3535
  flags,
@@ -3537,75 +3537,75 @@ program.action(async (directory = ".", flags) => {
3537
3537
  });
3538
3538
  });
3539
3539
  program.command("design [directory]").description("Run only the focused UI design diagnostics").addHelpText("after", renderDesignHelpEpilog).action(async (directory, _options, command) => {
3540
- const { designAction } = await import("./design-BOr8ASzl.js");
3540
+ const { designAction } = await import("./design-4JdzGp7l.js");
3541
3541
  return designAction(directory ?? ".", command.optsWithGlobals());
3542
3542
  });
3543
3543
  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) => {
3544
- const { runtimeScanAction } = await import("./runtime-scan-BSMwOS9F.js");
3544
+ const { runtimeScanAction } = await import("./runtime-scan-CPWa4luI.js");
3545
3545
  return runtimeScanAction(url, options);
3546
3546
  });
3547
3547
  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) => {
3548
- const { whyAction } = await import("./why-DHTN2DPT.js");
3548
+ const { whyAction } = await import("./why-L7QLihhQ.js");
3549
3549
  return whyAction(location, options);
3550
3550
  });
3551
3551
  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) => {
3552
- const { installAction } = await import("./install-DG3MH36X.js");
3552
+ const { installAction } = await import("./install-CJgOEd94.js");
3553
3553
  return installAction(options, command);
3554
3554
  });
3555
3555
  const providerOption = ["--provider <name>", "ci provider: github-actions or gitlab-ci (auto-detected by default)"];
3556
3556
  const prOption = ["--pr", "open a pull request with the change instead of writing it to the working tree"];
3557
3557
  const ci = program.command("ci").description("Set up, upgrade, and configure React Doctor in your CI");
3558
3558
  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) => {
3559
- const { ciInstallAction } = await import("./ci-tO6eKsPx.js");
3559
+ const { ciInstallAction } = await import("./ci-CRuXbH3D.js");
3560
3560
  return ciInstallAction(command.optsWithGlobals());
3561
3561
  });
3562
3562
  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) => {
3563
- const { ciConfigAction } = await import("./ci-tO6eKsPx.js");
3563
+ const { ciConfigAction } = await import("./ci-CRuXbH3D.js");
3564
3564
  return ciConfigAction(command.optsWithGlobals());
3565
3565
  });
3566
3566
  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) => {
3567
- const { ciUpgradeAction } = await import("./ci-tO6eKsPx.js");
3567
+ const { ciUpgradeAction } = await import("./ci-CRuXbH3D.js");
3568
3568
  return ciUpgradeAction(command.optsWithGlobals());
3569
3569
  });
3570
3570
  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 () => {
3571
- const { versionAction } = await import("./version-5WSKTaCF.js");
3571
+ const { versionAction } = await import("./version-B3x9O0_8.js");
3572
3572
  return versionAction();
3573
3573
  });
3574
3574
  const rules = program.command("rules").description("List, explain, and configure which React Doctor rules run");
3575
3575
  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) => {
3576
- const { rulesListAction } = await import("./rules-IBWoSmK_.js");
3576
+ const { rulesListAction } = await import("./rules-CMFJO4Nw.js");
3577
3577
  return rulesListAction(command.optsWithGlobals());
3578
3578
  });
3579
3579
  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) => {
3580
- const { rulesExplainAction } = await import("./rules-IBWoSmK_.js");
3580
+ const { rulesExplainAction } = await import("./rules-CMFJO4Nw.js");
3581
3581
  return rulesExplainAction(rule, command.optsWithGlobals());
3582
3582
  });
3583
3583
  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) => {
3584
- const { rulesSetAction } = await import("./rules-IBWoSmK_.js");
3584
+ const { rulesSetAction } = await import("./rules-CMFJO4Nw.js");
3585
3585
  return rulesSetAction(rule, severity, command.optsWithGlobals());
3586
3586
  });
3587
3587
  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) => {
3588
- const { rulesEnableAction } = await import("./rules-IBWoSmK_.js");
3588
+ const { rulesEnableAction } = await import("./rules-CMFJO4Nw.js");
3589
3589
  return rulesEnableAction(rule, command.optsWithGlobals());
3590
3590
  });
3591
3591
  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) => {
3592
- const { rulesDisableAction } = await import("./rules-IBWoSmK_.js");
3592
+ const { rulesDisableAction } = await import("./rules-CMFJO4Nw.js");
3593
3593
  return rulesDisableAction(rule, command.optsWithGlobals());
3594
3594
  });
3595
3595
  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) => {
3596
- const { rulesCategoryAction } = await import("./rules-IBWoSmK_.js");
3596
+ const { rulesCategoryAction } = await import("./rules-CMFJO4Nw.js");
3597
3597
  return rulesCategoryAction(category, severity, command.optsWithGlobals());
3598
3598
  });
3599
3599
  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) => {
3600
- const { rulesIgnoreTagAction } = await import("./rules-IBWoSmK_.js");
3600
+ const { rulesIgnoreTagAction } = await import("./rules-CMFJO4Nw.js");
3601
3601
  return rulesIgnoreTagAction(tag, command.optsWithGlobals());
3602
3602
  });
3603
3603
  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) => {
3604
- const { rulesUnignoreTagAction } = await import("./rules-IBWoSmK_.js");
3604
+ const { rulesUnignoreTagAction } = await import("./rules-CMFJO4Nw.js");
3605
3605
  return rulesUnignoreTagAction(tag, command.optsWithGlobals());
3606
3606
  });
3607
3607
  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("--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) => {
3608
- const { runScanCommand } = await import("./scan-1Hakw1J4.js");
3608
+ const { runScanCommand } = await import("./scan-D4Z3HTnz.js");
3609
3609
  return runScanCommand({
3610
3610
  directory,
3611
3611
  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]="f02e29a9-21b8-5d13-b1bf-bf8fb91c2bee")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-CBkHe9dS.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]="fae5350c-44c5-55f9-968d-89f5f790f0d0")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-BFbqw1rf.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-BOr8ASzl.js.map
14
- //# debugId=f02e29a9-21b8-5d13-b1bf-bf8fb91c2bee
13
+ //# sourceMappingURL=design-4JdzGp7l.js.map
14
+ //# debugId=fae5350c-44c5-55f9-968d-89f5f790f0d0
@@ -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]="e3c06d57-edd6-5b7e-b7b9-793be2778dd4")}catch(e){}}();
3
- import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-DcBAbVVs.js";
4
- import { n as shutdownTelemetry } from "./telemetry-runtime-BxsPVkMH.js";
5
- import { n as buildFooterLinkLines, r as flushSentry, t as buildSectionDivider } from "./build-section-divider-dzVqU6Fr.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]="d2ba39fe-d2c8-5163-801e-766fc7ab504a")}catch(e){}}();
3
+ import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-CNHDZW2C.js";
4
+ import { n as shutdownTelemetry } from "./telemetry-runtime-gpSkE7tQ.js";
5
+ import { n as buildFooterLinkLines, r as flushSentry, t as buildSectionDivider } from "./build-section-divider-D_v6WkSf.js";
6
6
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-DwG6tSPy.js";
7
7
  //#region src/cli/utils/active-tui-renderer.ts
8
8
  let activeTuiRenderer = null;
@@ -50,5 +50,5 @@ const exitGracefully = () => {
50
50
  //#endregion
51
51
  export { registerActiveTuiRenderer as n, exitGracefully as t };
52
52
 
53
- //# sourceMappingURL=exit-gracefully-B4JO2DSi.js.map
54
- //# debugId=e3c06d57-edd6-5b7e-b7b9-793be2778dd4
53
+ //# sourceMappingURL=exit-gracefully-B-aIckQm.js.map
54
+ //# debugId=d2ba39fe-d2c8-5163-801e-766fc7ab504a
@@ -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]="fdeae4ec-85b0-5d2d-b53a-5fc7cb1d79c1")}catch(e){}}();
3
- import { $n as CANONICAL_DISCORD_URL, An as gen, Cn as error, Ft as formatErrorChain, It as formatReactDoctorError, Kt as highlighter, T as METRIC, Xt as isReactDoctorError, _ as VERSION, br as isErrnoException, er as CANONICAL_GITHUB_URL, t as recordCount, zn as runSync } from "./record-metric-DcBAbVVs.js";
4
- import { a as isEnvironmentError, i as formatEnvironmentError } from "./telemetry-runtime-BxsPVkMH.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]="47de666a-1f28-5360-92cc-460b7bb515b5")}catch(e){}}();
3
+ import { $n as CANONICAL_DISCORD_URL, An as gen, Cn as error, Ft as formatErrorChain, It as formatReactDoctorError, Kt as highlighter, T as METRIC, Xt as isReactDoctorError, _ as VERSION, br as isErrnoException, er as CANONICAL_GITHUB_URL, t as recordCount, zn as runSync } from "./record-metric-CNHDZW2C.js";
4
+ import { a as isEnvironmentError, i as formatEnvironmentError } from "./telemetry-runtime-gpSkE7tQ.js";
5
5
  //#region src/cli/utils/handle-error.ts
6
6
  const OTLP_ENDPOINT_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_ENDPOINT";
7
7
  const OTLP_AUTH_HEADER_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_AUTH_HEADER";
@@ -105,5 +105,5 @@ const handleUserError = (error$1, options = {}) => {
105
105
  //#endregion
106
106
  export { handleUserError as n, handleError as t };
107
107
 
108
- //# sourceMappingURL=handle-error-JVQU0Pxy.js.map
109
- //# debugId=fdeae4ec-85b0-5d2d-b53a-5fc7cb1d79c1
108
+ //# sourceMappingURL=handle-error-DIJp6KGi.js.map
109
+ //# debugId=47de666a-1f28-5360-92cc-460b7bb515b5
package/dist/index.d.ts CHANGED
@@ -10190,6 +10190,28 @@ interface ProjectInfo {
10190
10190
  remotionVersion?: string | null;
10191
10191
  remotionMajorVersion?: number | null;
10192
10192
  hasI18nLibrary?: boolean;
10193
+ /**
10194
+ * `true` when the project (or a workspace package) declares the unified
10195
+ * `radix-ui` package or any `@radix-ui/react-*` primitive (icons excluded).
10196
+ * Drives the `radix-ui` capability, which gates the `radix-*` composition
10197
+ * rules for apps that assemble Radix parts directly.
10198
+ */
10199
+ hasRadixUi?: boolean;
10200
+ /**
10201
+ * `true` when the project (or a workspace package) declares Base UI
10202
+ * (`@base-ui-components/react` or its 1.0 rename `@base-ui/react`).
10203
+ * Drives the `base-ui` capability, which gates the `base-ui-*`
10204
+ * composition rules.
10205
+ */
10206
+ hasBaseUi?: boolean;
10207
+ /** `true` when `react-aria-components` is declared. Drives the `react-aria` capability. */
10208
+ hasReactAriaComponents?: boolean;
10209
+ /** `true` when `@tanstack/react-table` is declared. Drives the `tanstack-table` capability. */
10210
+ hasTanstackTable?: boolean;
10211
+ /** `true` when `@tanstack/react-virtual` is declared. Drives the `tanstack-virtual` capability. */
10212
+ hasTanstackVirtual?: boolean;
10213
+ /** `true` when `@tanstack/react-form` is declared. Drives the `tanstack-form` capability. */
10214
+ hasTanstackForm?: boolean;
10193
10215
  tanstackQueryVersion?: string | null;
10194
10216
  styledComponentsVersion?: string | null;
10195
10217
  /** Whether the project or one of its workspaces declares Three.js, Fiber, or Drei. */
@@ -10289,6 +10311,16 @@ interface ProjectInfo {
10289
10311
  * recommend them to projects pinned below that.
10290
10312
  */
10291
10313
  reanimatedVersion: string | null;
10314
+ /**
10315
+ * `true` when the project (or an ancestor up to the repository boundary)
10316
+ * carries a shadcn `components.json` config. Drives the `shadcn`
10317
+ * capability, which gates the `shadcn-*` component-composition rules —
10318
+ * their part names (`DialogTitle`, `InputGroupInput`, `TabsList`, …) only
10319
+ * carry shadcn's contract in a project that actually generated those
10320
+ * files. Optional so existing `ProjectInfo` consumers remain
10321
+ * source-compatible.
10322
+ */
10323
+ hasShadcnUi?: boolean;
10292
10324
  /**
10293
10325
  * `true` when the project's `tsconfig.json` `compilerOptions.target` or
10294
10326
  * `compilerOptions.lib` indicates the output environment predates ES2023
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]="3404885b-ce22-59ed-b773-5398b6af4974")}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]="16798435-138f-5144-b75d-97aa7ae2907b")}catch(e){}}();
3
3
  import { i as __toESM$1, r as __require, t as __commonJSMin$1 } from "./chunk-ChKA3wi6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import * as path$1$1 from "node:path";
@@ -65664,6 +65664,18 @@ const detectPreES2023Target = (directory) => {
65664
65664
  }
65665
65665
  return false;
65666
65666
  };
65667
+ const SHADCN_CONFIG_FILE_NAME = "components.json";
65668
+ const detectShadcnUi = (directory) => {
65669
+ if (isFile(path$1$1.join(directory, SHADCN_CONFIG_FILE_NAME))) return true;
65670
+ if (isProjectBoundary(directory)) return false;
65671
+ let ancestorDirectory = path$1$1.dirname(directory);
65672
+ while (ancestorDirectory !== path$1$1.dirname(ancestorDirectory)) {
65673
+ if (isFile(path$1$1.join(ancestorDirectory, SHADCN_CONFIG_FILE_NAME))) return true;
65674
+ if (isProjectBoundary(ancestorDirectory)) return false;
65675
+ ancestorDirectory = path$1$1.dirname(ancestorDirectory);
65676
+ }
65677
+ return false;
65678
+ };
65667
65679
  const FRAMEWORK_PACKAGES = {
65668
65680
  next: "nextjs",
65669
65681
  "@tanstack/react-start": "tanstack-start",
@@ -66429,6 +66441,29 @@ const getTanStackQueryVersion = (packageJson) => {
66429
66441
  packageNames: TANSTACK_REACT_QUERY_PACKAGES
66430
66442
  });
66431
66443
  };
66444
+ const hasAnyDependency = (packageJson, packageNames) => {
66445
+ const allDependencies = {
66446
+ ...packageJson.peerDependencies,
66447
+ ...packageJson.dependencies,
66448
+ ...packageJson.devDependencies,
66449
+ ...packageJson.optionalDependencies
66450
+ };
66451
+ return packageNames.some((packageName) => allDependencies[packageName] !== void 0);
66452
+ };
66453
+ const BASE_UI_PACKAGES = ["@base-ui-components/react", "@base-ui/react"];
66454
+ const hasBaseUiDependency = (packageJson) => hasAnyDependency(packageJson, BASE_UI_PACKAGES);
66455
+ const RADIX_UNIFIED_PACKAGE = "radix-ui";
66456
+ const RADIX_PRIMITIVE_PACKAGE_PREFIX = "@radix-ui/react-";
66457
+ const RADIX_NON_PRIMITIVE_PACKAGES = new Set(["@radix-ui/react-icons"]);
66458
+ const hasRadixUiDependency = (packageJson) => {
66459
+ const allDependencies = {
66460
+ ...packageJson.peerDependencies,
66461
+ ...packageJson.dependencies,
66462
+ ...packageJson.devDependencies,
66463
+ ...packageJson.optionalDependencies
66464
+ };
66465
+ return Object.keys(allDependencies).some((packageName) => packageName === RADIX_UNIFIED_PACKAGE || packageName.startsWith(RADIX_PRIMITIVE_PACKAGE_PREFIX) && !RADIX_NON_PRIMITIVE_PACKAGES.has(packageName));
66466
+ };
66432
66467
  const STYLED_COMPONENTS_PACKAGES = ["styled-components"];
66433
66468
  const getStyledComponentsVersion = (packageJson) => {
66434
66469
  return getPreferredDependencyVersion({
@@ -66459,6 +66494,10 @@ const hasI18nDependency = (packageJson) => {
66459
66494
  };
66460
66495
  return I18N_PACKAGES.some((packageName) => allDependencies[packageName] !== void 0);
66461
66496
  };
66497
+ const REACT_ARIA_COMPONENT_PACKAGES = ["react-aria-components"];
66498
+ const TANSTACK_TABLE_PACKAGES = ["@tanstack/react-table"];
66499
+ const TANSTACK_VIRTUAL_PACKAGES = ["@tanstack/react-virtual"];
66500
+ const TANSTACK_FORM_PACKAGES = ["@tanstack/react-form"];
66462
66501
  const REANIMATED_DEPENDENCY_NAME = "react-native-reanimated";
66463
66502
  const MOBX_REACT_PACKAGE_NAME = "mobx-react";
66464
66503
  const MOBX_REACT_LITE_PACKAGE_NAME = "mobx-react-lite";
@@ -66649,6 +66688,13 @@ const evaluateManifestFacts = (facts, packageJson, directory, rootDirectory, roo
66649
66688
  });
66650
66689
  if (styledComponentsVersion && shouldReplaceStyledComponentsVersion(facts.styledComponentsVersion, styledComponentsVersion)) facts.styledComponentsVersion = styledComponentsVersion;
66651
66690
  facts.hasI18nLibrary = facts.hasI18nLibrary || hasI18nDependency(packageJson);
66691
+ facts.hasShadcnUi = facts.hasShadcnUi || detectShadcnUi(directory);
66692
+ facts.hasRadixUi = facts.hasRadixUi || hasRadixUiDependency(packageJson);
66693
+ facts.hasBaseUi = facts.hasBaseUi || hasBaseUiDependency(packageJson);
66694
+ facts.hasReactAriaComponents = facts.hasReactAriaComponents || hasAnyDependency(packageJson, REACT_ARIA_COMPONENT_PACKAGES);
66695
+ facts.hasTanstackTable = facts.hasTanstackTable || hasAnyDependency(packageJson, TANSTACK_TABLE_PACKAGES);
66696
+ facts.hasTanstackVirtual = facts.hasTanstackVirtual || hasAnyDependency(packageJson, TANSTACK_VIRTUAL_PACKAGES);
66697
+ facts.hasTanstackForm = facts.hasTanstackForm || hasAnyDependency(packageJson, TANSTACK_FORM_PACKAGES);
66652
66698
  for (const packageName of REACT_THREE_FIBER_DEPENDENCY_NAMES) {
66653
66699
  const version = resolveCatalogBackedDependencyVersion({
66654
66700
  rootDirectory,
@@ -66751,6 +66797,13 @@ const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGro
66751
66797
  tanstackQueryVersion: null,
66752
66798
  styledComponentsVersion: null,
66753
66799
  hasI18nLibrary: false,
66800
+ hasShadcnUi: false,
66801
+ hasRadixUi: false,
66802
+ hasBaseUi: false,
66803
+ hasReactAriaComponents: false,
66804
+ hasTanstackTable: false,
66805
+ hasTanstackVirtual: false,
66806
+ hasTanstackForm: false,
66754
66807
  hasReactNativeAwarePackage: false,
66755
66808
  hasReanimatedAwarePackage: false,
66756
66809
  hasSsrDependency: false,
@@ -67102,6 +67155,12 @@ const discoverProjectWithoutPackageJson = (directory, options) => {
67102
67155
  remotionVersion: null,
67103
67156
  remotionMajorVersion: null,
67104
67157
  hasI18nLibrary: false,
67158
+ hasRadixUi: false,
67159
+ hasBaseUi: false,
67160
+ hasReactAriaComponents: false,
67161
+ hasTanstackTable: false,
67162
+ hasTanstackVirtual: false,
67163
+ hasTanstackForm: false,
67105
67164
  tanstackQueryVersion: null,
67106
67165
  styledComponentsVersion: null,
67107
67166
  hasThree: false,
@@ -67123,6 +67182,7 @@ const discoverProjectWithoutPackageJson = (directory, options) => {
67123
67182
  shopifyFlashListMajorVersion: null,
67124
67183
  hasReanimated: false,
67125
67184
  reanimatedVersion: null,
67185
+ hasShadcnUi: detectShadcnUi(directory),
67126
67186
  isPreES2023Target: hasOwnTsConfig && detectPreES2023Target(directory),
67127
67187
  isStaticExport: false,
67128
67188
  sourceFileCount
@@ -67285,6 +67345,12 @@ const discoverProject = (directory, options = {}) => {
67285
67345
  hasReactCompilerLintPlugin: detectReactCompilerLintPlugin(directory, packageJson),
67286
67346
  hasTanStackQuery: tanstackQueryVersion !== null,
67287
67347
  hasI18nLibrary: workspaceFacts.hasI18nLibrary,
67348
+ hasRadixUi: workspaceFacts.hasRadixUi,
67349
+ hasBaseUi: workspaceFacts.hasBaseUi,
67350
+ hasReactAriaComponents: workspaceFacts.hasReactAriaComponents,
67351
+ hasTanstackTable: workspaceFacts.hasTanstackTable,
67352
+ hasTanstackVirtual: workspaceFacts.hasTanstackVirtual,
67353
+ hasTanstackForm: workspaceFacts.hasTanstackForm,
67288
67354
  tanstackQueryVersion,
67289
67355
  styledComponentsVersion: workspaceFacts.styledComponentsVersion,
67290
67356
  valtioVersion,
@@ -67311,6 +67377,7 @@ const discoverProject = (directory, options = {}) => {
67311
67377
  shopifyFlashListMajorVersion: shopifyFlashListVersion === null ? null : getLowestDependencyMajor(shopifyFlashListVersion),
67312
67378
  hasReanimated,
67313
67379
  reanimatedVersion,
67380
+ hasShadcnUi: workspaceFacts.hasShadcnUi,
67314
67381
  isPreES2023Target,
67315
67382
  isStaticExport: framework === "nextjs" && detectNextjsStaticExport(workspaceFacts.next.sourceDirectory ?? directory),
67316
67383
  sourceFileCount
@@ -71059,6 +71126,13 @@ const buildCapabilities = (project) => {
71059
71126
  minor: 0
71060
71127
  })) capabilities.add("tailwind:4");
71061
71128
  }
71129
+ if (project.hasShadcnUi === true) capabilities.add("shadcn");
71130
+ if (project.hasRadixUi === true) capabilities.add("radix-ui");
71131
+ if (project.hasBaseUi === true) capabilities.add("base-ui");
71132
+ if (project.hasReactAriaComponents === true) capabilities.add("react-aria");
71133
+ if (project.hasTanstackTable === true) capabilities.add("tanstack-table");
71134
+ if (project.hasTanstackVirtual === true) capabilities.add("tanstack-virtual");
71135
+ if (project.hasTanstackForm === true) capabilities.add("tanstack-form");
71062
71136
  if (project.zodVersion !== null) capabilities.add("zod");
71063
71137
  if (project.zodMajorVersion !== null && project.zodMajorVersion >= 4) capabilities.add("zod:4");
71064
71138
  if (project.mobxVersion !== void 0 && project.mobxVersion !== null || project.hasMobxReact === true || project.hasMobxReactLite === true || project.hasMobxStateTree === true || project.hasMobxReactObserver === true) capabilities.add("mobx");
@@ -74653,6 +74727,46 @@ const buildProfiledNodeArguments = (input) => [
74653
74727
  ...input.heapProfileDirectory ? ["--heap-prof", `--heap-prof-dir=${input.heapProfileDirectory}`] : [],
74654
74728
  ...input.argumentsList
74655
74729
  ];
74730
+ const buildOxlintTimingArguments = (argumentsList) => {
74731
+ const timingArguments = [...argumentsList];
74732
+ const formatFlagIndex = timingArguments.indexOf("--format");
74733
+ if (formatFlagIndex === -1 || formatFlagIndex + 1 >= timingArguments.length) throw new Error("Oxlint timing arguments require a --format value");
74734
+ timingArguments[formatFlagIndex + 1] = "default";
74735
+ timingArguments.push("--debug", "timings", "--quiet");
74736
+ return timingArguments;
74737
+ };
74738
+ const captureOxlintRuleTimings = (input) => new Promise((resolve, reject) => {
74739
+ const timingEnvironment = { ...input.environment };
74740
+ timingEnvironment.REACT_DOCTOR_RULE_TIMINGS_DIR = void 0;
74741
+ const timingChild = spawn(input.nodeBinaryPath, buildOxlintTimingArguments(input.argumentsList), {
74742
+ cwd: input.rootDirectory,
74743
+ env: timingEnvironment,
74744
+ stdio: [
74745
+ "ignore",
74746
+ "pipe",
74747
+ "pipe"
74748
+ ]
74749
+ });
74750
+ const stdoutBuffers = [];
74751
+ const stderrBuffers = [];
74752
+ timingChild.stdout.on("data", (buffer) => stdoutBuffers.push(buffer));
74753
+ timingChild.stderr.on("data", (buffer) => stderrBuffers.push(buffer));
74754
+ timingChild.on("error", reject);
74755
+ timingChild.on("close", (_code, signal) => {
74756
+ if (signal) {
74757
+ reject(/* @__PURE__ */ new Error(`Oxlint timing pass was killed by ${signal}`));
74758
+ return;
74759
+ }
74760
+ const timingOutput = `${Buffer.concat(stdoutBuffers).toString("utf8")}\n${Buffer.concat(stderrBuffers).toString("utf8")}`;
74761
+ if (!timingOutput.includes("Rule timings:")) {
74762
+ resolve();
74763
+ return;
74764
+ }
74765
+ fs$1$3.mkdirSync(input.timingDirectory, { recursive: true });
74766
+ fs$1$3.writeFileSync(path$1$1.join(input.timingDirectory, `oxlint-${timingChild.pid ?? process.pid}.timings.txt`), timingOutput);
74767
+ resolve();
74768
+ });
74769
+ });
74656
74770
  const lowerChildProcessPriority = (processId) => {
74657
74771
  if (processId === void 0) return;
74658
74772
  try {
@@ -74774,7 +74888,18 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
74774
74888
  return;
74775
74889
  }
74776
74890
  }
74777
- resolve(output);
74891
+ const timingDirectory = SANITIZED_ENV.REACT_DOCTOR_OXLINT_TIMINGS_DIR;
74892
+ if (timingDirectory === void 0) {
74893
+ resolve(output);
74894
+ return;
74895
+ }
74896
+ captureOxlintRuleTimings({
74897
+ argumentsList: args,
74898
+ environment: SANITIZED_ENV,
74899
+ nodeBinaryPath,
74900
+ rootDirectory,
74901
+ timingDirectory
74902
+ }).then(() => resolve(output), reject);
74778
74903
  });
74779
74904
  });
74780
74905
  const PARALLELISM_EXHAUSTION_ERROR_CODES = new Set([
@@ -77882,4 +78007,4 @@ const toJsonReport = (result, options) => buildJsonReport({
77882
78007
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
77883
78008
 
77884
78009
  //# sourceMappingURL=index.js.map
77885
- //# debugId=3404885b-ce22-59ed-b773-5398b6af4974
78010
+ //# debugId=16798435-138f-5144-b75d-97aa7ae2907b
@@ -1,18 +1,18 @@
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]="cdce2df7-3021-509b-8f70-8f62933cb628")}catch(e){}}();
3
- import { An as gen, At as discoverSupportedSubprojects, Bt as getDiffInfo, Cr as messageFromUnknown, F as STAGED_FILES_TEMP_DIR_PREFIX, Fn as provide$1, Gn as provide, H as isDebugFlagEnabled, I as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, Jt as isPathInsideDirectory, K as isCiOrCodingAgentEnvironment, Kt as highlighter, Lt as getBaselineDiffPlan, Pt as findLegacyConfig, Rn as runPromise, Rt as getChangedLineRanges, Sr as isPlainObject, T as METRIC, Wt as hasSupportedFrameworkOrLibrary, X as Git, _ as VERSION, _r as STAGED_FILES_PROJECT_CONFIG_FILENAMES, br as isErrnoException, er as CANONICAL_GITHUB_URL, f as setJsonReportDirectory, fn as resolveScanTarget, g as writeJsonReport, h as writeJsonErrorReport, ht as buildJsonReport, in as mapWithConcurrency, kt as detectAiTrainingEnvironment, n as recordDistribution, nn as listWorkspacePackages, p as setJsonReportMode, q as isCodingAgentEnvironment, sn as remainingDeadlineBudgetMs, t as recordCount, u as enableJsonMode, ut as StagedFiles, yn as toRelativePath, z as CliInputError } from "./record-metric-DcBAbVVs.js";
4
- import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-BxsPVkMH.js";
5
- import { r as flushSentry } from "./build-section-divider-dzVqU6Fr.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-JVQU0Pxy.js";
7
- import { t as reportErrorToSentry } from "./report-error-Cj58fOLO.js";
8
- import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DaB6kssK.js";
9
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CHs4pPvZ.js";
10
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope, u as toForwardSlashes } from "./resolve-scope-pqK2skSv.js";
11
- import { t as shouldSkipPrompts } from "./should-skip-prompts-CtQ-6r7T.js";
12
- import { A as resolveMergeBaseRef, C as copyToClipboard, D as deduplicateProjectScans, E as collectProjectSourceFileCounts, I as printDiagnosticsDump, O as createInvocationInspect, S as CLI_AGENT_BINARIES, T as buildHandoffPayload, V as buildEmptyReportMessage, _ as resolveCliInspectOptions, a as projectManifestChanged, b as setUpGitHubActions, c as selectProjects, d as resolveProjectChangedLineRanges, f as resolveProjectDiffIncludePaths, g as resolveWorkspaceDeadCodeOwner, h as retryMissingProjectScores, i as validateModeFlags, j as printHeadlessReport, k as inspect, l as buildCodeFrame, m as resolveProjectRelativeDirectory, n as formatSkippedProjectsMessage, o as partitionProjectScanOutcomes, p as resolveProjectSourceFilePaths, r as validateIncludeUntrackedScope, t as shouldFailScanGate, u as resolveProjectScan, v as filterScansForSurface, w as launchCliAgent, x as detectLaunchableAgents, y as countUniqueScannedFiles, z as filterDiagnosticsByCategories } from "./should-fail-scan-gate-CwBjVudY.js";
13
- import { a as recordGate, 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-DadOSgvV.js";
14
- 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-D4Z6xm2T.js";
15
- import { t as readObjectFile } from "./read-object-file-CacQMaGw.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]="f0e021f7-2346-5ad4-8145-896c3caa3433")}catch(e){}}();
3
+ import { An as gen, At as discoverSupportedSubprojects, Bt as getDiffInfo, Cr as messageFromUnknown, F as STAGED_FILES_TEMP_DIR_PREFIX, Fn as provide$1, Gn as provide, H as isDebugFlagEnabled, I as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, Jt as isPathInsideDirectory, K as isCiOrCodingAgentEnvironment, Kt as highlighter, Lt as getBaselineDiffPlan, Pt as findLegacyConfig, Rn as runPromise, Rt as getChangedLineRanges, Sr as isPlainObject, T as METRIC, Wt as hasSupportedFrameworkOrLibrary, X as Git, _ as VERSION, _r as STAGED_FILES_PROJECT_CONFIG_FILENAMES, br as isErrnoException, er as CANONICAL_GITHUB_URL, f as setJsonReportDirectory, fn as resolveScanTarget, g as writeJsonReport, h as writeJsonErrorReport, ht as buildJsonReport, in as mapWithConcurrency, kt as detectAiTrainingEnvironment, n as recordDistribution, nn as listWorkspacePackages, p as setJsonReportMode, q as isCodingAgentEnvironment, sn as remainingDeadlineBudgetMs, t as recordCount, u as enableJsonMode, ut as StagedFiles, yn as toRelativePath, z as CliInputError } from "./record-metric-CNHDZW2C.js";
4
+ import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-gpSkE7tQ.js";
5
+ import { r as flushSentry } from "./build-section-divider-D_v6WkSf.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-DIJp6KGi.js";
7
+ import { t as reportErrorToSentry } from "./report-error-CKKT4508.js";
8
+ import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-BdxYpXZI.js";
9
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CqbWtIgt.js";
10
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope, u as toForwardSlashes } from "./resolve-scope-Dsafs5WC.js";
11
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-HRpuZc_r.js";
12
+ import { A as resolveMergeBaseRef, C as copyToClipboard, D as deduplicateProjectScans, E as collectProjectSourceFileCounts, I as printDiagnosticsDump, O as createInvocationInspect, S as CLI_AGENT_BINARIES, T as buildHandoffPayload, V as buildEmptyReportMessage, _ as resolveCliInspectOptions, a as projectManifestChanged, b as setUpGitHubActions, c as selectProjects, d as resolveProjectChangedLineRanges, f as resolveProjectDiffIncludePaths, g as resolveWorkspaceDeadCodeOwner, h as retryMissingProjectScores, i as validateModeFlags, j as printHeadlessReport, k as inspect, l as buildCodeFrame, m as resolveProjectRelativeDirectory, n as formatSkippedProjectsMessage, o as partitionProjectScanOutcomes, p as resolveProjectSourceFilePaths, r as validateIncludeUntrackedScope, t as shouldFailScanGate, u as resolveProjectScan, v as filterScansForSurface, w as launchCliAgent, x as detectLaunchableAgents, y as countUniqueScannedFiles, z as filterDiagnosticsByCategories } from "./should-fail-scan-gate-B1SBLqAA.js";
13
+ import { a as recordGate, 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-B727d63m.js";
14
+ 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-C7SKnOTZ.js";
15
+ import { t as readObjectFile } from "./read-object-file-CBK-rayZ.js";
16
16
  import * as path$1 from "node:path";
17
17
  import * as fs$1 from "node:fs";
18
18
  import { tmpdir } from "node:os";
@@ -1441,5 +1441,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect") =>
1441
1441
  //#endregion
1442
1442
  export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
1443
1443
 
1444
- //# sourceMappingURL=inspect-CBkHe9dS.js.map
1445
- //# debugId=cdce2df7-3021-509b-8f70-8f62933cb628
1444
+ //# sourceMappingURL=inspect-BFbqw1rf.js.map
1445
+ //# debugId=f0e021f7-2346-5ad4-8145-896c3caa3433