react-doctor 0.9.23-dev.da97966 → 0.9.23-dev.ed93f67

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 (38) hide show
  1. package/dist/{build-section-divider-6RXiq-gG.js → build-section-divider-DzuKtYKf.js} +5 -5
  2. package/dist/{ci-DBWXpxim.js → ci-lxPnLNY2.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-BmD_c3Yq.js → constants-EMNGZNtj.js} +10 -6
  5. package/dist/constants-T2clfs7L.js +2 -2
  6. package/dist/{design-C1L0xZsb.js → design-88ebRYs1.js} +4 -4
  7. package/dist/{exit-gracefully-BMGQ53U2.js → exit-gracefully-Dcr71UQz.js} +6 -6
  8. package/dist/{handle-error-k2H7GErB.js → handle-error-CU_FATUx.js} +6 -6
  9. package/dist/index.js +58 -18
  10. package/dist/{inspect-COBnaQGL.js → inspect-DAWaaj5s.js} +16 -16
  11. package/dist/{install-Ctcw7pUS.js → install-DSkwdY2A.js} +10 -10
  12. package/dist/{install-doctor-script-CPgW0Lz8.js → install-doctor-script-BMFIMJNG.js} +5 -5
  13. package/dist/{install-github-workflow-DRc-8QVm.js → install-github-workflow-CnUL3IaA.js} +6 -6
  14. package/dist/{install-react-doctor-Cv2CqrSo.js → install-react-doctor-CyRBo17H.js} +9 -9
  15. package/dist/{is-cache-globally-disabled-CveNGcRi.js → is-cache-globally-disabled-CYjFzsDs.js} +4 -4
  16. package/dist/{jsx-runtime-Bif1F1u8.js → jsx-runtime-Di-r43F6.js} +6 -6
  17. package/dist/{print-branded-header-BF9QtdTX.js → print-branded-header-C_IdES5E.js} +4 -4
  18. package/dist/{prompt-runtime-scan-url-CAjnKJX8.js → prompt-runtime-scan-url-BfVNLYXF.js} +5 -5
  19. package/dist/{read-object-file-LR9ZaZun.js → read-object-file-Lc7IMSGY.js} +4 -4
  20. package/dist/{record-metric-DIV_WaNH.js → record-metric-D5cWO5c1.js} +55 -19
  21. package/dist/{report-error-WMoBKNsX.js → report-error-DNUzAKVW.js} +6 -6
  22. package/dist/{report-workflow-result-DuMZ-QHM.js → report-workflow-result-4mYTuWWb.js} +6 -6
  23. package/dist/{resolve-scan-exit-code-BdnV85Ln.js → resolve-scan-exit-code-BTg4e2sN.js} +13 -13
  24. package/dist/{resolve-scope-ej7odA5M.js → resolve-scope-C3GbCfvM.js} +6 -6
  25. package/dist/{rules-C8WOyChs.js → rules-JNqrM_qU.js} +7 -7
  26. package/dist/{run-scan-app-CIp2-0r8.js → run-scan-app-DOOG-mGi.js} +11 -11
  27. package/dist/{runtime-scan-BHuGdjHi.js → runtime-scan-BzDfOeYC.js} +10 -10
  28. package/dist/{sanitize-runtime-url-CyhpJTST.js → sanitize-runtime-url-CxOV1srN.js} +4 -4
  29. package/dist/{scan-DB7GGbVh.js → scan-ivk9wx91.js} +10 -10
  30. package/dist/{should-skip-prompts-Dx0bwpps.js → should-skip-prompts-Bictn_Xl.js} +4 -4
  31. package/dist/{should-use-tui-B8rK94x5.js → should-use-tui-DGIYCdEm.js} +4 -4
  32. package/dist/{start-scan-preamble-DDAT_0oB.js → start-scan-preamble-Zd-z2ssT.js} +5 -5
  33. package/dist/start-scan-preamble.js +3 -3
  34. package/dist/{telemetry-runtime-OUTuE7fG.js → telemetry-runtime-ByXNkZlA.js} +7 -7
  35. package/dist/{version-DBVQTmqx.js → version-CCx32laG.js} +5 -5
  36. package/dist/{why-CZjRaY0N.js → why-Bu3hAeLo.js} +4 -4
  37. package/dist/{with-run-span-CT8vE14B.js → with-run-span-5rSWU2YJ.js} +6 -6
  38. 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]="1c21cb63-8cc3-51e0-b574-8305021988fb")}catch(e){}}();
3
- import { ut as CANONICAL_GITHUB_URL, xt as DOCS_URL } from "./constants-BmD_c3Yq.js";
4
- import { Nt as highlighter } from "./record-metric-DIV_WaNH.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]="f272e9ce-90bd-5fca-9bd1-b9979233100e")}catch(e){}}();
3
+ import { ut as CANONICAL_GITHUB_URL, xt as DOCS_URL } from "./constants-EMNGZNtj.js";
4
+ import { Nt as highlighter } from "./record-metric-D5cWO5c1.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-6RXiq-gG.js.map
81
- //# debugId=1c21cb63-8cc3-51e0-b574-8305021988fb
80
+ //# sourceMappingURL=build-section-divider-DzuKtYKf.js.map
81
+ //# debugId=f272e9ce-90bd-5fca-9bd1-b9979233100e
@@ -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]="ea7cd7a4-6a02-5716-8104-bdabec554e2a")}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]="c5ccbf30-99ee-5025-8985-c600ccc168d8")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { At as GITHUB_ACTIONS_SETUP_URL, dt as CI_URL, u as METRIC } from "./constants-BmD_c3Yq.js";
5
- import { En as runSync, Nt as highlighter, _t as findGitRepositoryRoot, t as recordCount } from "./record-metric-DIV_WaNH.js";
6
- import { o as isExpectedUserError } from "./telemetry-runtime-OUTuE7fG.js";
7
- import { n as handleUserError, t as handleError } from "./handle-error-k2H7GErB.js";
8
- import { t as reportErrorToSentry } from "./report-error-WMoBKNsX.js";
9
- import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-CPgW0Lz8.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-DRc-8QVm.js";
11
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-ej7odA5M.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-Dx0bwpps.js";
13
- import { t as printBrandedHeader } from "./print-branded-header-BF9QtdTX.js";
4
+ import { At as GITHUB_ACTIONS_SETUP_URL, dt as CI_URL, u as METRIC } from "./constants-EMNGZNtj.js";
5
+ import { En as runSync, Nt as highlighter, _t as findGitRepositoryRoot, t as recordCount } from "./record-metric-D5cWO5c1.js";
6
+ import { o as isExpectedUserError } from "./telemetry-runtime-ByXNkZlA.js";
7
+ import { n as handleUserError, t as handleError } from "./handle-error-CU_FATUx.js";
8
+ import { t as reportErrorToSentry } from "./report-error-DNUzAKVW.js";
9
+ import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-BMFIMJNG.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-CnUL3IaA.js";
11
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-C3GbCfvM.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-Bictn_Xl.js";
13
+ import { t as printBrandedHeader } from "./print-branded-header-C_IdES5E.js";
14
14
  import * as fs$1 from "node:fs";
15
15
  import * as path$1 from "node:path";
16
16
  //#region src/cli/utils/ci/ci-provider.ts
@@ -7509,5 +7509,5 @@ const ciConfigAction = (options) => runCiCommand("config", runCiConfig, options)
7509
7509
  //#endregion
7510
7510
  export { ciConfigAction, ciInstallAction, ciUpgradeAction };
7511
7511
 
7512
- //# sourceMappingURL=ci-DBWXpxim.js.map
7513
- //# debugId=ea7cd7a4-6a02-5716-8104-bdabec554e2a
7512
+ //# sourceMappingURL=ci-lxPnLNY2.js.map
7513
+ //# debugId=c5ccbf30-99ee-5025-8985-c600ccc168d8
package/dist/cli.js CHANGED
@@ -1,14 +1,14 @@
1
1
 
2
2
  !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8ce9aa1f-0a85-514c-9759-6b1c0db96ace")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { dt as CI_URL, ut as CANONICAL_GITHUB_URL } from "./constants-BmD_c3Yq.js";
5
- import "./start-scan-preamble-DDAT_0oB.js";
6
- import { Gn as isFile, Nt as highlighter, Pt as isPathInsideDirectory, S as isDebugFlagEnabled, Un as isDirectory, _ as VERSION, d as isJsonModeActive, gt as filterSourceFiles, h as writeJsonErrorReport, i as isTelemetryEnabled, tn as setColorEnabled, y as CliInputError } from "./record-metric-DIV_WaNH.js";
7
- import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-OUTuE7fG.js";
8
- import { t as exitGracefully } from "./exit-gracefully-BMGQ53U2.js";
9
- import { n as handleUserError, t as handleError } from "./handle-error-k2H7GErB.js";
4
+ import { dt as CI_URL, ut as CANONICAL_GITHUB_URL } from "./constants-EMNGZNtj.js";
5
+ import "./start-scan-preamble-Zd-z2ssT.js";
6
+ import { Gn as isFile, Nt as highlighter, Pt as isPathInsideDirectory, S as isDebugFlagEnabled, Un as isDirectory, _ as VERSION, d as isJsonModeActive, gt as filterSourceFiles, h as writeJsonErrorReport, i as isTelemetryEnabled, tn as setColorEnabled, y as CliInputError } from "./record-metric-D5cWO5c1.js";
7
+ import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-ByXNkZlA.js";
8
+ import { t as exitGracefully } from "./exit-gracefully-Dcr71UQz.js";
9
+ import { n as handleUserError, t as handleError } from "./handle-error-CU_FATUx.js";
10
10
  import { n as getLastRunTraceId } from "./active-run-trace-Dewycxda.js";
11
- import { t as reportErrorToSentry } from "./report-error-WMoBKNsX.js";
11
+ import { t as reportErrorToSentry } from "./report-error-DNUzAKVW.js";
12
12
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
13
13
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
14
14
  import * as path$1 from "node:path";
@@ -3569,7 +3569,7 @@ ${highlighter.dim("Learn more:")}
3569
3569
  const collectCategoryOption = (value, previousValues) => [...previousValues ?? [], value];
3570
3570
  const program = new Command().name("react-doctor").description("Diagnose React codebase health").version(VERSION, "-v, --version", "display the version number").argument("[paths...]", "one project directory or source file paths to scan").option("--lint", "enable linting").option("--no-lint", "skip linting").addOption(new Option("--dead-code").hideHelp()).addOption(new Option("--no-dead-code").hideHelp()).option("--supply-chain", "enable the dependency supply-chain scan (default)").option("--no-supply-chain", "skip the dependency supply-chain scan (Socket.dev dependency health checks)").option("--verbose", "show every rule and per-file details (default shows top 3 rules)").option("--debug", "force a Sentry trace and print its id at the end (paste it into a bug report)").option("--output-dir <dir>", "directory for the full diagnostics dump (default: a temp folder)").option("--score", "output only the score").option("--json", "output a single structured JSON report (suppresses other output)").option("--json-compact", "with --json, emit compact JSON (no indentation)").option("--json-out <path>", "with --json, write the report to a file instead of stdout").option("--no-cache", "disable all scan caches for this run").option("-y, --yes", "skip prompts, scan all workspace projects").option("--no-parallel", "lint serially with one worker (default: parallel across CPU cores; set the worker count with REACT_DOCTOR_PARALLEL)").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple); overrides the `projects` config field").option("--scope <value>", "how much supported JS/TS and inline HTML script source to scan/report: full (default), files, changed (only new issues vs base), lines (issues whose source spans touch changed lines), or contextual (issues in modified rule contexts)").option("--base <ref>", "base git ref for files/changed/lines/contextual scope (auto-detected when omitted)").option("--baseline <report.json>", "report only new issues compared with a saved JSON report").option("--include-untracked", "with --scope files/changed/lines/contextual, also scan ordinary untracked files (respects .gitignore)").addOption(new Option("--diff [base]", "[deprecated] alias for --scope changed (pass `false` to force a full scan)").hideHelp()).addOption(new Option("--changed-files-from <file>", "scan source files listed in a newline-delimited changed-files file").hideHelp()).option("--no-score", "skip the score API, the share URL, and crash reporting").addOption(new Option("--category <category>", "only show diagnostics in a category (repeatable; e.g. Security)").argParser(collectCategoryOption)).option("--no-telemetry", "alias for --no-score (skip the score API, share URL, and crash reporting)").option("--staged", "scan only staged (git index) files for pre-commit hooks (honors --project and config `projects`; exits 0 when nothing is staged)").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").option("--warning-exit-code <code>", "exit code for non-blocking warnings (2-255). Ignored with --blocking none or --score", parseWarningExitCode).addOption(new Option("--fail-on <level>", "[deprecated] alias for --blocking <level>").hideHelp()).option("--no-respect-inline-disables", "audit mode: neutralize inline lint suppressions before scanning").option("--warnings", "show warning-severity diagnostics (default)").option("--no-warnings", "hide warning-severity diagnostics (errors only)").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderRootHelpEpilog);
3571
3571
  program.action(async (positionalPaths = [], flags) => {
3572
- const { runScanCommand } = await import("./scan-DB7GGbVh.js");
3572
+ const { runScanCommand } = await import("./scan-ivk9wx91.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-C1L0xZsb.js");
3580
+ const { designAction } = await import("./design-88ebRYs1.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-BHuGdjHi.js");
3584
+ const { runtimeScanAction } = await import("./runtime-scan-BzDfOeYC.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-CZjRaY0N.js");
3588
+ const { whyAction } = await import("./why-Bu3hAeLo.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-Ctcw7pUS.js");
3592
+ const { installAction } = await import("./install-DSkwdY2A.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-DBWXpxim.js");
3599
+ const { ciInstallAction } = await import("./ci-lxPnLNY2.js");
3600
3600
  return ciInstallAction(command.optsWithGlobals());
3601
3601
  });
3602
3602
  ci.command("config").description("Change the gate, scan scope, and pull-request reporting").option(...providerOption).option("--blocking <level>", "gate level: none (advisory), warning, or error").option("--scope <value>", "what a pull-request scan reports: changed, files, lines, contextual, or full").option("--comment", "post a summary comment on each pull request").option("--no-comment", "don't post a summary comment").option("--review-comments", "add inline review comments on changed lines").option("--no-review-comments", "don't add inline review comments").option("--commit-status", "report a commit status with the health score").option("--no-commit-status", "don't report a commit status").option("-y, --yes", "skip prompts; print the current settings").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (_options, command) => {
3603
- const { ciConfigAction } = await import("./ci-DBWXpxim.js");
3603
+ const { ciConfigAction } = await import("./ci-lxPnLNY2.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-DBWXpxim.js");
3607
+ const { ciUpgradeAction } = await import("./ci-lxPnLNY2.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-DBVQTmqx.js");
3611
+ const { versionAction } = await import("./version-CCx32laG.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-C8WOyChs.js");
3616
+ const { rulesListAction } = await import("./rules-JNqrM_qU.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-C8WOyChs.js");
3620
+ const { rulesExplainAction } = await import("./rules-JNqrM_qU.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-C8WOyChs.js");
3624
+ const { rulesSetAction } = await import("./rules-JNqrM_qU.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-C8WOyChs.js");
3628
+ const { rulesEnableAction } = await import("./rules-JNqrM_qU.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-C8WOyChs.js");
3632
+ const { rulesDisableAction } = await import("./rules-JNqrM_qU.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-C8WOyChs.js");
3636
+ const { rulesCategoryAction } = await import("./rules-JNqrM_qU.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-C8WOyChs.js");
3640
+ const { rulesIgnoreTagAction } = await import("./rules-JNqrM_qU.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-C8WOyChs.js");
3644
+ const { rulesUnignoreTagAction } = await import("./rules-JNqrM_qU.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-DB7GGbVh.js");
3648
+ const { runScanCommand } = await import("./scan-ivk9wx91.js");
3649
3649
  return runScanCommand({
3650
3650
  directory,
3651
3651
  flags: command.optsWithGlobals(),
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0e058126-2cb4-5080-b7d3-6e9d41309c79")}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]="cc51fb83-42e8-588d-90ad-ec7c51329f36")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import * as fs$1 from "node:fs";
5
5
  import fs from "node:fs";
@@ -11,13 +11,17 @@ import os from "node:os";
11
11
  import crypto from "node:crypto";
12
12
  import { Worker } from "node:worker_threads";
13
13
  import * as net from "node:net";
14
- //#region ../core/dist/constants-BSeQaOcv.js
14
+ //#region ../core/dist/constants-Dm_1JQD-.js
15
15
  const HTML_FILE_PATTERN = /\.html$/i;
16
16
  const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
17
17
  const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
18
18
  const GENERATED_SOURCE_DIRECTORY_PATTERN = /(?:^|\/)__generated__\//;
19
19
  const TAILWIND_POSTCSS7_COMPAT_ALIAS = "npm:@tailwindcss/postcss7-compat";
20
20
  const MINIFIED_SNIFF_BYTES = 65536;
21
+ const VITE_ENTRY_ASSET_FILE_PATTERN = /(?:^|[/\\])assets[/\\][^/\\]+-[\w-]{8}\.m?js$/;
22
+ const VITE_ENTRY_PRELUDE_SNIFF_BYTES = 1024;
23
+ const VITE_ENTRY_DENSITY_SAMPLE_BYTES = 32768;
24
+ MINIFIED_SNIFF_BYTES + 2 * VITE_ENTRY_DENSITY_SAMPLE_BYTES;
21
25
  const GIT_LS_FILES_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
22
26
  const GIT_SOURCE_LISTING_ARGUMENTS = [
23
27
  "ls-files",
@@ -428,7 +432,7 @@ const ADOPTED_LINT_CONFIG_MAX_BYTES = 1024 * 1024;
428
432
  //#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
429
433
  const isReactCompilerDetectionReply = (value) => typeof value === "object" && value !== null && "id" in value && typeof value.id === "number" && "hasReactCompiler" in value && (typeof value.hasReactCompiler === "boolean" || value.hasReactCompiler === null);
430
434
  //#endregion
431
- //#region ../core/dist/react-compiler-detection-client-oiOwecj7.js
435
+ //#region ../core/dist/react-compiler-detection-client-CXd4Mzn3.js
432
436
  const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
433
437
  const toRequestKey = (request) => [
434
438
  request.directory,
@@ -1038,7 +1042,7 @@ const METRIC = {
1038
1042
  jsonOutUsed: "json.out_used"
1039
1043
  };
1040
1044
  //#endregion
1041
- export { warmReactCompilerDetection as $, OXLINT_SPLIT_TOTAL_BUDGET_MS as $t, buildGitSourceListingRequest as A, TAILWIND_POSTCSS7_COMPAT_ALIAS as An, GITHUB_ACTIONS_SETUP_URL as At, resolveGitCommand as B, MAINTAINABILITY_CATEGORY as Bt, SENTRY_RELEASE_PREFIX as C, SUPPLY_CHAIN_CACHE_SUBDIR as Cn, ENTERPRISE_CONTACT_URL as Ct, TUI_REPORT_COMPACT_MAX_ROWS as D, SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS as Dn, FILE_LINT_CACHE_MAX_FILE_COUNT as Dt, TRACKED_FILE_FLAGS_GIT_ARGUMENTS as E, SUPPLY_CHAIN_IGNORED_PACKAGES as En, FILE_LINT_CACHE_FILENAME as Et, lowerChildProcessPriority as F, TYPESCRIPT_DECLARATION_FILE_PATTERN as Fn, GIT_SOURCE_LISTING_ARGUMENTS as Ft, resolvePluginPath as G, MILLISECONDS_PER_SECOND as Gt, resolveOxlintThreadCount as H, MAINTAINABILITY_PLUGIN as Ht, prefetchGitCommand as I, VERCEL_NEXTJS_SECURITY_RELEASE_URL as In, HTML_FILE_PATTERN as It, resolveTsConfigRelativePath as J, OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES as Jt, resolveReactDoctorCacheDir as K, MINIFIED_SNIFF_BYTES as Kt, prespawnOxlintWorkers as L, getCategoryImpact as Ln, IGNORED_DIRECTORIES as Lt, buildOxlintWorkerSpawnSpec as M, TELEMETRY_EXPORT_INTERVAL_MS as Mn, GIT_CHECK_ATTR_MAX_BUFFER_BYTES as Mt, discardPrefetchedGitCommands as N, TELEMETRY_SHUTDOWN_TIMEOUT_MS as Nn, GIT_LS_FILES_MAX_BUFFER_BYTES as Nt, TUI_REPORT_DETAIL_WIDTH_FRACTION as O, SUPPLY_CHAIN_PLUGIN as On, GENERATED_BUNDLE_FILE_PATTERN as Ot, killUnadoptedOxlintWorkers as P, TSCONFIG_FILENAMES as Pn, GIT_SHOW_MAX_BUFFER_BYTES as Pt, takeReactCompilerDetection as Q, OXLINT_SPAWN_TIMEOUT_MS as Qt, readSystemConcurrencyFacts as R, JSX_DUPLICATION_SOURCE_FILE_PATTERN as Rt, SENTRY_FLUSH_TIMEOUT_MS as S, STAGED_FILES_PROJECT_CONFIG_FILENAMES as Sn, DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS as St, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as T, SUPPLY_CHAIN_CATEGORY as Tn, FETCH_TIMEOUT_MS as Tt, resolveOxlintToolchainVersions as U, MAINTAINABILITY_SOURCE_FILE_PATTERN as Ut, resolveOxlintBinary as V, MAINTAINABILITY_DUPLICATE_JSX_RULE as Vt, resolveOxlintWorkerRuntime as W, MAX_GLOB_PATTERN_LENGTH_CHARS as Wt, spawnOxlintWorkerProcess as X, OXLINT_OOM_RESCUE_BUDGET_MS as Xt, setChildProcessRef as Y, OXLINT_NODE_REQUIREMENT as Yt, takePrespawnedOxlintWorker as Z, OXLINT_OUTPUT_MAX_BYTES as Zt, SCAN_PREAMBLE_SKIP_FLAGS as _, SOCKET_PACKAGE_PAGE_BASE as _n, DEFAULT_BRANCH_CANDIDATES as _t, CACHE_DISABLED_VALUES as a, REACT_BLOG_RSC_ADVISORY_URL as an, AXIOM_DEFAULT_DOMAIN as at, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as b, SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN as bn, DOCS_RULES_BASE_URL as bt, HEAD_SHA_GIT_ARGUMENTS as c, RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES as cn, AXIOM_TRACES_PATH as ct, METRIC_DISTRIBUTION_BOUNDARIES as d, SCORE_API_URL as dn, CI_URL as dt, OXLINT_WORKER_JOB_END_MARKER as en, ABORT_EXIT_CODES as et, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as f, SHARE_BASE_URL as fn, COMPILER_CLEANUP_BUCKET as ft, RUN_GIT_MAX_BUFFER_BYTES as g, SOCKET_FREE_USER_AGENT as gn, CONFIG_SCHEMA_URL as gt, REPOSITORY_ROOT_GIT_ARGUMENTS as h, SOCKET_FREE_PURL_API_BASE as hn, CONFIG_FINGERPRINT_FILENAMES as ht, BASELINE_FILES_TEMP_DIR_PREFIX as i, PROJECT_ANALYSIS_WORKER_TIMEOUT_MS as in, AXIOM_DATASET_HEADER as it, buildOxlintChildEnv as j, TARGET_BLANK_BROWSER_SUPPORT as jn, GITHUB_VIEWER_PERMISSION_TIMEOUT_MS as jt, WORKTREE_STATUS_GIT_ARGUMENTS as k, SUPPLY_CHAIN_RULE as kn, GENERATED_SOURCE_DIRECTORY_PATTERN as kt, INTERNAL_ERROR_JSON_FALLBACK as l, ROOT_CAUSE_GROUPABLE_RULE_KEYS as ln, CANONICAL_DISCORD_URL as lt, REACT_DOCTOR_CONFIG_PROJECT_NAME as m, SKILL_NAME as mn, CONFIG_CACHE_TTL_MS as mt, AXIOM_METRICS_DATASET as n, PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES as nn, ADOPTED_LINT_CONFIG_MAX_BYTES as nt, CI_TRUST_COMPANIES as o, REACT_ROUTER_CAPABILITY_THRESHOLDS as on, AXIOM_METRICS_DATASET_HEADER as ot, NANOSECONDS_PER_MILLISECOND as p, SIDECAR_LINT_CACHE_FILENAME as pn, COMPILER_CLEANUP_RULE_KEYS as pt, resolveScanConcurrency as q, OCCURRENCE_MATCHED_CATEGORIES as qt, AXIOM_TRACES_DATASET as r, PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS as rn, APP_ONLY_RULE_KEYS as rt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as s, REACT_SERVER_DOM_PACKAGES as sn, AXIOM_METRICS_PATH as st, AXIOM_INGEST_TOKEN as t, PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB as tn, ADOPTABLE_LINT_CONFIG_FILENAMES as tt, METRIC as u, SCANNED_DOT_DIRECTORIES as un, CANONICAL_GITHUB_URL as ut, SCAN_RESULT_CACHE_FILENAME as v, SOURCE_FILE_PATTERN as vn, DIAGNOSTIC_CATEGORY_BUCKETS as vt, STAGED_FILES_TEMP_DIR_PREFIX as w, SUPPLY_CHAIN_CACHE_TTL_MS as wn, ES_TARGET_YEAR_BY_NAME as wt, SENTRY_DSN as x, SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX as xn, DOCS_URL as xt, SCAN_RESULT_CACHE_GIT_ARGUMENTS as y, SPAWN_ARGS_MAX_LENGTH_CHARS as yn, DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS as yt, resolveConfiguredScanConcurrency as z, JSX_FILE_PATTERN as zt };
1045
+ export { warmReactCompilerDetection as $, OXLINT_SPLIT_TOTAL_BUDGET_MS as $t, buildGitSourceListingRequest as A, TAILWIND_POSTCSS7_COMPAT_ALIAS as An, GITHUB_ACTIONS_SETUP_URL as At, resolveGitCommand as B, getCategoryImpact as Bn, MAINTAINABILITY_CATEGORY as Bt, SENTRY_RELEASE_PREFIX as C, SUPPLY_CHAIN_CACHE_SUBDIR as Cn, ENTERPRISE_CONTACT_URL as Ct, TUI_REPORT_COMPACT_MAX_ROWS as D, SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS as Dn, FILE_LINT_CACHE_MAX_FILE_COUNT as Dt, TRACKED_FILE_FLAGS_GIT_ARGUMENTS as E, SUPPLY_CHAIN_IGNORED_PACKAGES as En, FILE_LINT_CACHE_FILENAME as Et, lowerChildProcessPriority as F, TYPESCRIPT_DECLARATION_FILE_PATTERN as Fn, GIT_SOURCE_LISTING_ARGUMENTS as Ft, resolvePluginPath as G, MILLISECONDS_PER_SECOND as Gt, resolveOxlintThreadCount as H, MAINTAINABILITY_PLUGIN as Ht, prefetchGitCommand as I, VERCEL_NEXTJS_SECURITY_RELEASE_URL as In, HTML_FILE_PATTERN as It, resolveTsConfigRelativePath as J, OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES as Jt, resolveReactDoctorCacheDir as K, MINIFIED_SNIFF_BYTES as Kt, prespawnOxlintWorkers as L, VITE_ENTRY_ASSET_FILE_PATTERN as Ln, IGNORED_DIRECTORIES as Lt, buildOxlintWorkerSpawnSpec as M, TELEMETRY_EXPORT_INTERVAL_MS as Mn, GIT_CHECK_ATTR_MAX_BUFFER_BYTES as Mt, discardPrefetchedGitCommands as N, TELEMETRY_SHUTDOWN_TIMEOUT_MS as Nn, GIT_LS_FILES_MAX_BUFFER_BYTES as Nt, TUI_REPORT_DETAIL_WIDTH_FRACTION as O, SUPPLY_CHAIN_PLUGIN as On, GENERATED_BUNDLE_FILE_PATTERN as Ot, killUnadoptedOxlintWorkers as P, TSCONFIG_FILENAMES as Pn, GIT_SHOW_MAX_BUFFER_BYTES as Pt, takeReactCompilerDetection as Q, OXLINT_SPAWN_TIMEOUT_MS as Qt, readSystemConcurrencyFacts as R, VITE_ENTRY_DENSITY_SAMPLE_BYTES as Rn, JSX_DUPLICATION_SOURCE_FILE_PATTERN as Rt, SENTRY_FLUSH_TIMEOUT_MS as S, STAGED_FILES_PROJECT_CONFIG_FILENAMES as Sn, DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS as St, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as T, SUPPLY_CHAIN_CATEGORY as Tn, FETCH_TIMEOUT_MS as Tt, resolveOxlintToolchainVersions as U, MAINTAINABILITY_SOURCE_FILE_PATTERN as Ut, resolveOxlintBinary as V, MAINTAINABILITY_DUPLICATE_JSX_RULE as Vt, resolveOxlintWorkerRuntime as W, MAX_GLOB_PATTERN_LENGTH_CHARS as Wt, spawnOxlintWorkerProcess as X, OXLINT_OOM_RESCUE_BUDGET_MS as Xt, setChildProcessRef as Y, OXLINT_NODE_REQUIREMENT as Yt, takePrespawnedOxlintWorker as Z, OXLINT_OUTPUT_MAX_BYTES as Zt, SCAN_PREAMBLE_SKIP_FLAGS as _, SOCKET_PACKAGE_PAGE_BASE as _n, DEFAULT_BRANCH_CANDIDATES as _t, CACHE_DISABLED_VALUES as a, REACT_BLOG_RSC_ADVISORY_URL as an, AXIOM_DEFAULT_DOMAIN as at, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as b, SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN as bn, DOCS_RULES_BASE_URL as bt, HEAD_SHA_GIT_ARGUMENTS as c, RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES as cn, AXIOM_TRACES_PATH as ct, METRIC_DISTRIBUTION_BOUNDARIES as d, SCORE_API_URL as dn, CI_URL as dt, OXLINT_WORKER_JOB_END_MARKER as en, ABORT_EXIT_CODES as et, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as f, SHARE_BASE_URL as fn, COMPILER_CLEANUP_BUCKET as ft, RUN_GIT_MAX_BUFFER_BYTES as g, SOCKET_FREE_USER_AGENT as gn, CONFIG_SCHEMA_URL as gt, REPOSITORY_ROOT_GIT_ARGUMENTS as h, SOCKET_FREE_PURL_API_BASE as hn, CONFIG_FINGERPRINT_FILENAMES as ht, BASELINE_FILES_TEMP_DIR_PREFIX as i, PROJECT_ANALYSIS_WORKER_TIMEOUT_MS as in, AXIOM_DATASET_HEADER as it, buildOxlintChildEnv as j, TARGET_BLANK_BROWSER_SUPPORT as jn, GITHUB_VIEWER_PERMISSION_TIMEOUT_MS as jt, WORKTREE_STATUS_GIT_ARGUMENTS as k, SUPPLY_CHAIN_RULE as kn, GENERATED_SOURCE_DIRECTORY_PATTERN as kt, INTERNAL_ERROR_JSON_FALLBACK as l, ROOT_CAUSE_GROUPABLE_RULE_KEYS as ln, CANONICAL_DISCORD_URL as lt, REACT_DOCTOR_CONFIG_PROJECT_NAME as m, SKILL_NAME as mn, CONFIG_CACHE_TTL_MS as mt, AXIOM_METRICS_DATASET as n, PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES as nn, ADOPTED_LINT_CONFIG_MAX_BYTES as nt, CI_TRUST_COMPANIES as o, REACT_ROUTER_CAPABILITY_THRESHOLDS as on, AXIOM_METRICS_DATASET_HEADER as ot, NANOSECONDS_PER_MILLISECOND as p, SIDECAR_LINT_CACHE_FILENAME as pn, COMPILER_CLEANUP_RULE_KEYS as pt, resolveScanConcurrency as q, OCCURRENCE_MATCHED_CATEGORIES as qt, AXIOM_TRACES_DATASET as r, PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS as rn, APP_ONLY_RULE_KEYS as rt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as s, REACT_SERVER_DOM_PACKAGES as sn, AXIOM_METRICS_PATH as st, AXIOM_INGEST_TOKEN as t, PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB as tn, ADOPTABLE_LINT_CONFIG_FILENAMES as tt, METRIC as u, SCANNED_DOT_DIRECTORIES as un, CANONICAL_GITHUB_URL as ut, SCAN_RESULT_CACHE_FILENAME as v, SOURCE_FILE_PATTERN as vn, DIAGNOSTIC_CATEGORY_BUCKETS as vt, STAGED_FILES_TEMP_DIR_PREFIX as w, SUPPLY_CHAIN_CACHE_TTL_MS as wn, ES_TARGET_YEAR_BY_NAME as wt, SENTRY_DSN as x, SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX as xn, DOCS_URL as xt, SCAN_RESULT_CACHE_GIT_ARGUMENTS as y, SPAWN_ARGS_MAX_LENGTH_CHARS as yn, DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS as yt, resolveConfiguredScanConcurrency as z, VITE_ENTRY_PRELUDE_SNIFF_BYTES as zn, JSX_FILE_PATTERN as zt };
1042
1046
 
1043
- //# sourceMappingURL=constants-BmD_c3Yq.js.map
1044
- //# debugId=0e058126-2cb4-5080-b7d3-6e9d41309c79
1047
+ //# sourceMappingURL=constants-EMNGZNtj.js.map
1048
+ //# debugId=cc51fb83-42e8-588d-90ad-ec7c51329f36
@@ -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]="34b16741-6305-53a0-a5d7-495625749190")}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]="0205ef54-1f44-5248-963b-b2b17cb287d0")}catch(e){}}();
3
3
  const GIT_CHECK_ATTR_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
4
4
  const OXLINT_WORKER_JOB_END_MARKER = "__REACT_DOCTOR_OXLINT_JOB_END__";
5
5
  const REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY = Symbol.for("react-doctor.reset-filesystem-caches");
@@ -20,4 +20,4 @@ const JSX_DUPLICATION_SOURCE_FILE_PATTERN = /\.[cm]?(?:jsx?|tsx)$/;
20
20
  export { MAX_GLOB_PATTERN_LENGTH_CHARS as a, GIT_CHECK_ATTR_MAX_BUFFER_BYTES as c, JSX_DUPLICATION_SOURCE_FILE_PATTERN as i, JSX_DUPLICATION_DEFAULT_MAX_SOURCE_FILES as n, OXLINT_WORKER_JOB_END_MARKER as o, JSX_DUPLICATION_DEFAULT_MAX_SOURCE_LENGTH_CHARS as r, REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY as s, JSX_DUPLICATION_DEFAULT_MAX_JSX_NODES as t };
21
21
 
22
22
  //# sourceMappingURL=constants-T2clfs7L.js.map
23
- //# debugId=34b16741-6305-53a0-a5d7-495625749190
23
+ //# debugId=0205ef54-1f44-5248-963b-b2b17cb287d0
@@ -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]="144f5135-291b-57f0-bc18-09c5a485ea4a")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-COBnaQGL.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]="9f193667-aa96-5645-b861-15568e7b738a")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-DAWaaj5s.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-C1L0xZsb.js.map
14
- //# debugId=144f5135-291b-57f0-bc18-09c5a485ea4a
13
+ //# sourceMappingURL=design-88ebRYs1.js.map
14
+ //# debugId=9f193667-aa96-5645-b861-15568e7b738a
@@ -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]="a8d8554a-3661-5610-bbf3-d0dbc047de61")}catch(e){}}();
3
- import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-DIV_WaNH.js";
4
- import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-OUTuE7fG.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]="38324ea9-dfd7-5905-b9ef-b20b0020e3d6")}catch(e){}}();
3
+ import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-D5cWO5c1.js";
4
+ import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-ByXNkZlA.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-6RXiq-gG.js";
6
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-DzuKtYKf.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-BMGQ53U2.js.map
54
- //# debugId=a8d8554a-3661-5610-bbf3-d0dbc047de61
53
+ //# sourceMappingURL=exit-gracefully-Dcr71UQz.js.map
54
+ //# debugId=38324ea9-dfd7-5905-b9ef-b20b0020e3d6
@@ -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]="e34beed3-df9f-558a-8c99-186b2b1f829d")}catch(e){}}();
3
- import { lt as CANONICAL_DISCORD_URL, u as METRIC, ut as CANONICAL_GITHUB_URL } from "./constants-BmD_c3Yq.js";
4
- import { En as runSync, It as isReactDoctorError, Nt as highlighter, Wn as isErrnoException, _ as VERSION, _n as gen, bt as formatErrorChain, ln as error, t as recordCount, xt as formatReactDoctorError } from "./record-metric-DIV_WaNH.js";
5
- import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-OUTuE7fG.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]="0633dc06-960f-595f-b954-f39ff546cefc")}catch(e){}}();
3
+ import { lt as CANONICAL_DISCORD_URL, u as METRIC, ut as CANONICAL_GITHUB_URL } from "./constants-EMNGZNtj.js";
4
+ import { En as runSync, It as isReactDoctorError, Nt as highlighter, Wn as isErrnoException, _ as VERSION, _n as gen, bt as formatErrorChain, ln as error, t as recordCount, xt as formatReactDoctorError } from "./record-metric-D5cWO5c1.js";
5
+ import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-ByXNkZlA.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-k2H7GErB.js.map
115
- //# debugId=e34beed3-df9f-558a-8c99-186b2b1f829d
114
+ //# sourceMappingURL=handle-error-CU_FATUx.js.map
115
+ //# debugId=0633dc06-960f-595f-b954-f39ff546cefc
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]="d8490302-2518-5f78-877d-57505f958890")}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]="22eef580-ef23-5d30-8e09-9ad7fea09fc2")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import * as fs$1$2 from "node:fs";
@@ -26,12 +26,16 @@ import { PassThrough } from "node:stream";
26
26
  import { convertToTSX } from "@astrojs/compiler/sync";
27
27
  import { STATUS_CODES } from "node:http";
28
28
  import { gzipSync } from "node:zlib";
29
- //#region ../core/dist/constants-BSeQaOcv.js
29
+ //#region ../core/dist/constants-Dm_1JQD-.js
30
30
  const HTML_FILE_PATTERN = /\.html$/i;
31
31
  const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
32
32
  const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
33
33
  const GENERATED_SOURCE_DIRECTORY_PATTERN = /(?:^|\/)__generated__\//;
34
34
  const MINIFIED_SNIFF_BYTES = 65536;
35
+ const VITE_ENTRY_ASSET_FILE_PATTERN = /(?:^|[/\\])assets[/\\][^/\\]+-[\w-]{8}\.m?js$/;
36
+ const VITE_ENTRY_PRELUDE_SNIFF_BYTES = 1024;
37
+ const VITE_ENTRY_DENSITY_SAMPLE_BYTES = 32768;
38
+ MINIFIED_SNIFF_BYTES + 2 * VITE_ENTRY_DENSITY_SAMPLE_BYTES;
35
39
  const GIT_LS_FILES_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
36
40
  const GIT_SOURCE_LISTING_ARGUMENTS = [
37
41
  "ls-files",
@@ -441,7 +445,7 @@ const isPlainObject = (value) => {
441
445
  //#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
442
446
  const isReactCompilerDetectionReply = (value) => typeof value === "object" && value !== null && "id" in value && typeof value.id === "number" && "hasReactCompiler" in value && (typeof value.hasReactCompiler === "boolean" || value.hasReactCompiler === null);
443
447
  //#endregion
444
- //#region ../core/dist/react-compiler-detection-client-oiOwecj7.js
448
+ //#region ../core/dist/react-compiler-detection-client-CXd4Mzn3.js
445
449
  const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
446
450
  const toRequestKey = (request) => [
447
451
  request.directory,
@@ -2716,7 +2720,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2716
2720
  module.exports = picomatch;
2717
2721
  }));
2718
2722
  //#endregion
2719
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-Z9dhela6.js
2723
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-BVJbM-5e.js
2720
2724
  var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
2721
2725
  const pico = require_picomatch$1();
2722
2726
  const utils = require_utils();
@@ -3166,7 +3170,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
3166
3170
  return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
3167
3171
  };
3168
3172
  //#endregion
3169
- //#region ../core/dist/detect-duplicate-jsx-subtrees-B5UWtUyz.js
3173
+ //#region ../core/dist/detect-duplicate-jsx-subtrees-D7-_Z6Mp.js
3170
3174
  const yieldToEventLoop = () => new Promise((resolve) => {
3171
3175
  setImmediate(resolve);
3172
3176
  });
@@ -3730,7 +3734,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
3730
3734
  });
3731
3735
  };
3732
3736
  //#endregion
3733
- //#region ../core/dist/detect-react-compiler-DLpaU8gr.js
3737
+ //#region ../core/dist/detect-react-compiler-DKfPrp2s.js
3734
3738
  const NEXT_CONFIG_FILENAMES = [
3735
3739
  "next.config.js",
3736
3740
  "next.config.mjs",
@@ -66825,17 +66829,19 @@ const collectTypeScriptEmitDuplicateJsPaths = (input) => {
66825
66829
  const isIgnoredDirectoryName = (directoryName) => IGNORED_DIRECTORIES.has(directoryName) || directoryName.startsWith(".") && !SCANNED_DOT_DIRECTORIES.has(directoryName);
66826
66830
  const hasIgnoredPathSegment = (relativePath) => relativePath.split(/[/\\]/).slice(0, -1).some((segment) => isIgnoredDirectoryName(segment));
66827
66831
  const isLintableSourceFile = (filePath) => SOURCE_FILE_PATTERN.test(filePath) && !GENERATED_BUNDLE_FILE_PATTERN.test(filePath) && !GENERATED_SOURCE_DIRECTORY_PATTERN.test(filePath);
66832
+ const hasMinifiedSample = (sample) => {
66833
+ const lines = sample.split("\n");
66834
+ const longestLineLength = lines.reduce((longest, line) => Math.max(longest, line.length), 0);
66835
+ const averageLineLength = sample.length / lines.length;
66836
+ return longestLineLength > 1e3 && averageLineLength > 500;
66837
+ };
66828
66838
  const isMinifiedSource = (absolutePath) => {
66829
66839
  let fileDescriptor;
66830
66840
  try {
66831
66841
  fileDescriptor = fs$1$2.openSync(absolutePath, "r");
66832
66842
  const buffer = Buffer.alloc(MINIFIED_SNIFF_BYTES);
66833
66843
  const bytesRead = fs$1$2.readSync(fileDescriptor, buffer, 0, MINIFIED_SNIFF_BYTES, 0);
66834
- const prefix = buffer.toString("utf8", 0, bytesRead);
66835
- const lines = prefix.split("\n");
66836
- const longestLineLength = lines.reduce((longest, line) => Math.max(longest, line.length), 0);
66837
- const averageLineLength = prefix.length / lines.length;
66838
- return longestLineLength > 1e3 && averageLineLength > 500;
66844
+ return hasMinifiedSample(buffer.toString("utf8", 0, bytesRead));
66839
66845
  } catch {
66840
66846
  return false;
66841
66847
  } finally {
@@ -66861,6 +66867,37 @@ const isLargeMinifiedFile = (absolutePath, knownSizeBytes) => {
66861
66867
  cachedIsLargeMinifiedByPath.set(absolutePath, result);
66862
66868
  return result;
66863
66869
  };
66870
+ const MODULE_PRELOAD_POLYFILL_START = /^\(function\(\)\{(?:const|let|var) [\w$]+=document\.createElement\((?:"link"|'link')\)\.relList;/;
66871
+ const MODULE_PRELOAD_POLYFILL_MARKERS = [
66872
+ /\.supports\((?:"modulepreload"|'modulepreload')\)/,
66873
+ /document\.querySelectorAll\([^)]*link\[rel=["']modulepreload["']\]/,
66874
+ /new MutationObserver\(/,
66875
+ /\.observe\(document,/
66876
+ ];
66877
+ const isMinifiedViteEntry = (absolutePath, knownSizeBytes) => {
66878
+ if (!VITE_ENTRY_ASSET_FILE_PATTERN.test(absolutePath)) return false;
66879
+ const sizeBytes = knownSizeBytes === void 0 ? statSourceFileSize(absolutePath) : knownSizeBytes;
66880
+ if (sizeBytes === null || sizeBytes < 131072) return false;
66881
+ let fileDescriptor;
66882
+ try {
66883
+ fileDescriptor = fs$1$2.openSync(absolutePath, "r");
66884
+ const buffer = Buffer.alloc(VITE_ENTRY_DENSITY_SAMPLE_BYTES);
66885
+ const preludeBytesRead = fs$1$2.readSync(fileDescriptor, buffer, 0, VITE_ENTRY_PRELUDE_SNIFF_BYTES, 0);
66886
+ const prelude = buffer.toString("utf8", 0, preludeBytesRead);
66887
+ const polyfillEndOffset = prelude.indexOf("})();");
66888
+ if (polyfillEndOffset === -1) return false;
66889
+ const polyfill = prelude.slice(0, polyfillEndOffset);
66890
+ if (!MODULE_PRELOAD_POLYFILL_START.test(polyfill) || !MODULE_PRELOAD_POLYFILL_MARKERS.every((marker) => marker.test(polyfill))) return false;
66891
+ const middleOffset = Math.max(MINIFIED_SNIFF_BYTES, Math.floor((sizeBytes - VITE_ENTRY_DENSITY_SAMPLE_BYTES) / 2));
66892
+ const tailOffset = sizeBytes - VITE_ENTRY_DENSITY_SAMPLE_BYTES;
66893
+ for (const offset of [middleOffset, tailOffset]) if (fs$1$2.readSync(fileDescriptor, buffer, 0, 32768, offset) !== 32768 || !hasMinifiedSample(buffer.toString("utf8"))) return false;
66894
+ return true;
66895
+ } catch {
66896
+ return false;
66897
+ } finally {
66898
+ if (fileDescriptor !== void 0) fs$1$2.closeSync(fileDescriptor);
66899
+ }
66900
+ };
66864
66901
  const isMissingPath = (absolutePath) => {
66865
66902
  try {
66866
66903
  fs$1$2.statSync(absolutePath);
@@ -66891,7 +66928,7 @@ const toSizedSourceFileEntry = (rootDirectory, relativePath) => {
66891
66928
  const absolutePath = path$1$1.resolve(rootDirectory, relativePath);
66892
66929
  const sizeBytes = statSourceFileSize(absolutePath);
66893
66930
  if (sizeBytes === null && isMissingPath(absolutePath)) return null;
66894
- if (isLargeMinifiedFile(absolutePath, sizeBytes)) return null;
66931
+ if (isLargeMinifiedFile(absolutePath, sizeBytes) || isMinifiedViteEntry(absolutePath, sizeBytes)) return null;
66895
66932
  return {
66896
66933
  path: relativePath,
66897
66934
  sizeBytes: sizeBytes ?? 0
@@ -74877,6 +74914,12 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
74877
74914
  }
74878
74915
  };
74879
74916
  };
74917
+ const internWorkerSidecarProbeIds = (result, trace, internRelativeProbe) => {
74918
+ const probeIds = [];
74919
+ for (const pathIndex of trace.content) probeIds.push(internRelativeProbe("content", result.paths[pathIndex], null));
74920
+ for (const pathIndex of trace.existence) probeIds.push(internRelativeProbe("exists", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
74921
+ return probeIds;
74922
+ };
74880
74923
  const TIMELINE_PATH = process.env.REACT_DOCTOR_OXLINT_SPAWN_LOG;
74881
74924
  const isOxlintJobTimelineEnabled = TIMELINE_PATH !== void 0;
74882
74925
  const appendTimelineLine = (entry) => {
@@ -76624,7 +76667,7 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
76624
76667
  const absolutePath = resolveAbsolutePath(resolveSourceFilename(filename));
76625
76668
  const cached = minifiedFileCache.get(absolutePath);
76626
76669
  if (cached !== void 0) return cached;
76627
- const minified = isMinifiedSource(absolutePath);
76670
+ const minified = isMinifiedSource(absolutePath) || isMinifiedViteEntry(absolutePath);
76628
76671
  minifiedFileCache.set(absolutePath, minified);
76629
76672
  return minified;
76630
76673
  };
@@ -77443,10 +77486,7 @@ const collectSidecarProbesForFiles = async (input) => {
77443
77486
  probeIdsByFile.set(file, null);
77444
77487
  continue;
77445
77488
  }
77446
- const probeIds = [];
77447
- for (const pathIndex of trace.content) probeIds.push(internRelativeProbe("content", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
77448
- for (const pathIndex of trace.existence) probeIds.push(internRelativeProbe("exists", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
77449
- probeIdsByFile.set(file, probeIds);
77489
+ probeIdsByFile.set(file, internWorkerSidecarProbeIds(result, trace, internRelativeProbe));
77450
77490
  }
77451
77491
  };
77452
77492
  const runParentLane = async () => {
@@ -79956,4 +79996,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79956
79996
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79957
79997
 
79958
79998
  //# sourceMappingURL=index.js.map
79959
- //# debugId=d8490302-2518-5f78-877d-57505f958890
79999
+ //# debugId=22eef580-ef23-5d30-8e09-9ad7fea09fc2
@@ -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]="1b6b2d14-8bd6-5f7b-b6ab-9f1b7f3f938d")}catch(e){}}();
3
- import { N as discardPrefetchedGitCommands, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, u as METRIC, ut as CANONICAL_GITHUB_URL, w as STAGED_FILES_TEMP_DIR_PREFIX } from "./constants-BmD_c3Yq.js";
4
- import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-DIV_WaNH.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-OUTuE7fG.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-k2H7GErB.js";
7
- import { t as reportErrorToSentry } from "./report-error-WMoBKNsX.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]="758452ed-c3ae-5e7f-83ae-de41c492a2d0")}catch(e){}}();
3
+ import { N as discardPrefetchedGitCommands, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, u as METRIC, ut as CANONICAL_GITHUB_URL, w as STAGED_FILES_TEMP_DIR_PREFIX } from "./constants-EMNGZNtj.js";
4
+ import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-D5cWO5c1.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-ByXNkZlA.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-CU_FATUx.js";
7
+ import { t as reportErrorToSentry } from "./report-error-DNUzAKVW.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-CPgW0Lz8.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-DRc-8QVm.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-ej7odA5M.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-Dx0bwpps.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-BdnV85Ln.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-DuMZ-QHM.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-Cv2CqrSo.js";
16
- import { t as readObjectFile } from "./read-object-file-LR9ZaZun.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-BMFIMJNG.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CnUL3IaA.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-C3GbCfvM.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-Bictn_Xl.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-BTg4e2sN.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-4mYTuWWb.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-CyRBo17H.js";
16
+ import { t as readObjectFile } from "./read-object-file-Lc7IMSGY.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";
@@ -1528,5 +1528,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
1528
1528
  //#endregion
1529
1529
  export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
1530
1530
 
1531
- //# sourceMappingURL=inspect-COBnaQGL.js.map
1532
- //# debugId=1b6b2d14-8bd6-5f7b-b6ab-9f1b7f3f938d
1531
+ //# sourceMappingURL=inspect-DAWaaj5s.js.map
1532
+ //# debugId=758452ed-c3ae-5e7f-83ae-de41c492a2d0