react-doctor 0.9.17-dev.a3cbae0 → 0.9.17-dev.a47c7e0

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/README.md +14 -0
  2. package/dist/{build-section-divider-k-iqApDn.js → build-section-divider-BJcCSTF9.js} +5 -5
  3. package/dist/{ci-9qYclb8S.js → ci-BreGV8oF.js} +13 -13
  4. package/dist/cli.js +40 -31
  5. package/dist/{constants-DE6ZPzRQ.js → constants-Bwylqy0B.js} +4 -3
  6. package/dist/{design-RZCZp5vz.js → design-CopuOP1D.js} +4 -4
  7. package/dist/{exit-gracefully-CXbetjsk.js → exit-gracefully-euoFKtV_.js} +6 -6
  8. package/dist/{handle-error-Bu8Hxmu6.js → handle-error-BlKIXfOh.js} +6 -6
  9. package/dist/{inspect-BHz6b1Qx.js → inspect-DSJalZ5V.js} +22 -19
  10. package/dist/{install-CYNlXWIx.js → install-BmXncWbO.js} +10 -10
  11. package/dist/{install-doctor-script-wAZc6x1Q.js → install-doctor-script-BLb18kaf.js} +5 -5
  12. package/dist/{install-github-workflow-BG9qzRi4.js → install-github-workflow-ChF7QmpO.js} +6 -6
  13. package/dist/{install-react-doctor-BFeaIN8C.js → install-react-doctor-lp_KU14v.js} +9 -9
  14. package/dist/{is-cache-globally-disabled-BlQ5D5mG.js → is-cache-globally-disabled-BvdYcw6Q.js} +4 -4
  15. package/dist/{jsx-runtime-Culk0tMJ.js → jsx-runtime-BgSqPHew.js} +6 -6
  16. package/dist/{print-branded-header-DML7Yxjd.js → print-branded-header-BkwARxm7.js} +4 -4
  17. package/dist/{prompt-runtime-scan-url-XAZbEL40.js → prompt-runtime-scan-url-BeEvVCIk.js} +5 -5
  18. package/dist/{read-object-file-Cv_ravdp.js → read-object-file-Cl68gVd9.js} +4 -4
  19. package/dist/{record-metric-BUIh9xFo.js → record-metric-C4i_4em1.js} +5 -5
  20. package/dist/{report-error-Dis6c69z.js → report-error-BEBS99Z5.js} +6 -6
  21. package/dist/{report-workflow-result-BTuVEmXF.js → report-workflow-result-Bp082NTK.js} +6 -6
  22. package/dist/{should-fail-scan-gate-D-KdsCIb.js → resolve-scan-exit-code-Bp8CaLFy.js} +23 -20
  23. package/dist/{resolve-scope-CIGhXb1G.js → resolve-scope-DfKJ9y3u.js} +6 -6
  24. package/dist/{rules-D6bR4PWk.js → rules-DxujEbHW.js} +7 -7
  25. package/dist/{run-scan-app--64sUJbt.js → run-scan-app-uhbtgWev.js} +27 -19
  26. package/dist/{runtime-scan-DeRImxpb.js → runtime-scan-BHsXhHD7.js} +10 -10
  27. package/dist/{sanitize-runtime-url-DYmloMQo.js → sanitize-runtime-url-CgDttdUz.js} +4 -4
  28. package/dist/{scan-BDXop9sM.js → scan-Cj9y8SAP.js} +14 -13
  29. package/dist/{should-skip-prompts-apd44PjY.js → should-skip-prompts-CduxjTi-.js} +4 -4
  30. package/dist/{should-use-tui-430jq0vR.js → should-use-tui-D6UAxVaQ.js} +4 -4
  31. package/dist/skills/react-doctor/SKILL.md +4 -0
  32. package/dist/{start-scan-preamble-Dz6998T6.js → start-scan-preamble-2uz0joCl.js} +5 -5
  33. package/dist/start-scan-preamble.js +3 -3
  34. package/dist/{telemetry-runtime-Dum0iDKs.js → telemetry-runtime-DsEQ3Yc8.js} +7 -7
  35. package/dist/{version-DPBCKSmZ.js → version-a5Z8qK5b.js} +5 -5
  36. package/dist/{why-BRbHrUfS.js → why-qrsOs6oZ.js} +4 -4
  37. package/dist/{with-run-span-zdgQ45R9.js → with-run-span-HxBxfUQH.js} +6 -6
  38. package/package.json +2 -2
package/README.md CHANGED
@@ -57,6 +57,20 @@ Set `comment-on-clean: false` in the Action inputs to create comments only when
57
57
 
58
58
  With the default `version: latest`, the Action uses an installed `react-doctor` dependency when available. Set another `version` value to override the installed version. Install your project dependencies before the Action to use this path.
59
59
 
60
+ For a GitLab warning status without blocking a merge, use a separate warning exit code:
61
+
62
+ ```yaml
63
+ react-doctor:
64
+ script:
65
+ - npx react-doctor@latest . --warning-exit-code 123
66
+ allow_failure:
67
+ exit_codes: 123
68
+ ```
69
+
70
+ With the default `--blocking error`, errors and hard lint failures exit with `1`. Warnings exit with `123`. Clean scans exit with `0`. The warning code must be an integer from `2` to `255`. Without this option, warnings still exit with `0`.
71
+
72
+ `--blocking warning` takes priority and exits with `1` for warnings. `--blocking none` disables the warning exit code. Score-only mode and degraded baseline comparisons also skip the warning exit code. The existing warning filters and `ciFailure` surface settings still apply.
73
+
60
74
  [CI docs →](https://react.doctor/ci)
61
75
 
62
76
  ### 4. Configure rules
@@ -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]="d2423a6f-a730-5d8a-904b-2b95514a7cec")}catch(e){}}();
3
- import { bt as DOCS_URL, lt as CANONICAL_GITHUB_URL } from "./constants-DE6ZPzRQ.js";
4
- import { jt as highlighter } from "./record-metric-BUIh9xFo.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]="bafe7cb5-23cc-5ce6-a36d-b98e5ea8c294")}catch(e){}}();
3
+ import { bt as DOCS_URL, lt as CANONICAL_GITHUB_URL } from "./constants-Bwylqy0B.js";
4
+ import { jt as highlighter } from "./record-metric-C4i_4em1.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-k-iqApDn.js.map
81
- //# debugId=d2423a6f-a730-5d8a-904b-2b95514a7cec
80
+ //# sourceMappingURL=build-section-divider-BJcCSTF9.js.map
81
+ //# debugId=bafe7cb5-23cc-5ce6-a36d-b98e5ea8c294
@@ -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]="3d936b15-8e1d-5177-aafc-6873f3981fc6")}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]="ce8febf0-d0f6-5491-8232-56b938f1e313")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { kt as GITHUB_ACTIONS_SETUP_URL, u as METRIC, ut as CI_URL } from "./constants-DE6ZPzRQ.js";
5
- import { gt as findGitRepositoryRoot, jt as highlighter, t as recordCount, wn as runSync } from "./record-metric-BUIh9xFo.js";
6
- import { o as isExpectedUserError } from "./telemetry-runtime-Dum0iDKs.js";
7
- import { n as handleUserError, t as handleError } from "./handle-error-Bu8Hxmu6.js";
8
- import { t as reportErrorToSentry } from "./report-error-Dis6c69z.js";
9
- import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-wAZc6x1Q.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-BG9qzRi4.js";
11
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-CIGhXb1G.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-apd44PjY.js";
13
- import { t as printBrandedHeader } from "./print-branded-header-DML7Yxjd.js";
4
+ import { kt as GITHUB_ACTIONS_SETUP_URL, u as METRIC, ut as CI_URL } from "./constants-Bwylqy0B.js";
5
+ import { gt as findGitRepositoryRoot, jt as highlighter, t as recordCount, wn as runSync } from "./record-metric-C4i_4em1.js";
6
+ import { o as isExpectedUserError } from "./telemetry-runtime-DsEQ3Yc8.js";
7
+ import { n as handleUserError, t as handleError } from "./handle-error-BlKIXfOh.js";
8
+ import { t as reportErrorToSentry } from "./report-error-BEBS99Z5.js";
9
+ import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-BLb18kaf.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-ChF7QmpO.js";
11
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-DfKJ9y3u.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CduxjTi-.js";
13
+ import { t as printBrandedHeader } from "./print-branded-header-BkwARxm7.js";
14
14
  import * as fs$1 from "node:fs";
15
15
  import * as path$1 from "node:path";
16
16
  //#region src/cli/utils/ci/ci-provider.ts
@@ -7503,5 +7503,5 @@ const ciConfigAction = (options) => runCiCommand("config", runCiConfig, options)
7503
7503
  //#endregion
7504
7504
  export { ciConfigAction, ciInstallAction, ciUpgradeAction };
7505
7505
 
7506
- //# sourceMappingURL=ci-9qYclb8S.js.map
7507
- //# debugId=3d936b15-8e1d-5177-aafc-6873f3981fc6
7506
+ //# sourceMappingURL=ci-BreGV8oF.js.map
7507
+ //# debugId=ce8febf0-d0f6-5491-8232-56b938f1e313
package/dist/cli.js CHANGED
@@ -1,14 +1,14 @@
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]="cc8f2e34-2b12-55f0-907a-f0131fd67226")}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]="c898e592-cb2c-5d0e-9def-15ece0a49e91")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { lt as CANONICAL_GITHUB_URL, ut as CI_URL } from "./constants-DE6ZPzRQ.js";
5
- import "./start-scan-preamble-Dz6998T6.js";
6
- import { $t as setColorEnabled, Mt as isPathInsideDirectory, S as isDebugFlagEnabled, Un as isFile, Vn as isDirectory, _ as VERSION, d as isJsonModeActive, h as writeJsonErrorReport, ht as filterSourceFiles, i as isTelemetryEnabled, jt as highlighter, y as CliInputError } from "./record-metric-BUIh9xFo.js";
7
- import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-Dum0iDKs.js";
8
- import { t as exitGracefully } from "./exit-gracefully-CXbetjsk.js";
9
- import { n as handleUserError, t as handleError } from "./handle-error-Bu8Hxmu6.js";
4
+ import { lt as CANONICAL_GITHUB_URL, ut as CI_URL } from "./constants-Bwylqy0B.js";
5
+ import "./start-scan-preamble-2uz0joCl.js";
6
+ import { $t as setColorEnabled, Mt as isPathInsideDirectory, S as isDebugFlagEnabled, Un as isFile, Vn as isDirectory, _ as VERSION, d as isJsonModeActive, h as writeJsonErrorReport, ht as filterSourceFiles, i as isTelemetryEnabled, jt as highlighter, y as CliInputError } from "./record-metric-C4i_4em1.js";
7
+ import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-DsEQ3Yc8.js";
8
+ import { t as exitGracefully } from "./exit-gracefully-euoFKtV_.js";
9
+ import { n as handleUserError, t as handleError } from "./handle-error-BlKIXfOh.js";
10
10
  import { n as getLastRunTraceId } from "./active-run-trace-Dewycxda.js";
11
- import { t as reportErrorToSentry } from "./report-error-Dis6c69z.js";
11
+ import { t as reportErrorToSentry } from "./report-error-BEBS99Z5.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";
@@ -3124,6 +3124,13 @@ const normalizeHelpInvocation = (argv, knownCommands) => {
3124
3124
  return [...nodeArguments, "--help"];
3125
3125
  };
3126
3126
  //#endregion
3127
+ //#region src/cli/utils/parse-warning-exit-code.ts
3128
+ const parseWarningExitCode = (value) => {
3129
+ const exitCode = Number(value);
3130
+ if (!/^\d+$/.test(value) || !Number.isInteger(exitCode) || exitCode <= 1 || exitCode > 255) throw new InvalidArgumentError(`Expected an integer from 2 to 255.`);
3131
+ return exitCode;
3132
+ };
3133
+ //#endregion
3127
3134
  //#region src/cli/utils/print-debug-trace.ts
3128
3135
  /**
3129
3136
  * The `--debug` end-of-run line, pure so it's testable without a live exporter.
@@ -3241,7 +3248,8 @@ const ROOT_FLAG_SPEC = {
3241
3248
  "--output-dir",
3242
3249
  "--fail-on",
3243
3250
  "--project",
3244
- "--scope"
3251
+ "--scope",
3252
+ "--warning-exit-code"
3245
3253
  ]),
3246
3254
  longOptionsWithOptionalValues: new Set(["--diff"]),
3247
3255
  shortOptionsWithoutValues: new Set([
@@ -3367,7 +3375,8 @@ const COMMAND_FLAG_SPECS = new Map([
3367
3375
  longOptionsWithRequiredValues: new Set([
3368
3376
  "--blocking",
3369
3377
  "--max-duration",
3370
- "--project"
3378
+ "--project",
3379
+ "--warning-exit-code"
3371
3380
  ]),
3372
3381
  longOptionsWithOptionalValues: /* @__PURE__ */ new Set(),
3373
3382
  shortOptionsWithoutValues: new Set(["-h", "-y"]),
@@ -3558,9 +3567,9 @@ ${highlighter.dim("Learn more:")}
3558
3567
  ${highlighter.info(CI_URL)}
3559
3568
  `;
3560
3569
  const collectCategoryOption = (value, previousValues) => [...previousValues ?? [], value];
3561
- const program = new Command().name("react-doctor").description("Diagnose React codebase health").version(VERSION, "-v, --version", "display the version number").argument("[paths...]", "one project directory or source file paths to scan").option("--lint", "enable linting").option("--no-lint", "skip linting").addOption(new Option("--dead-code").hideHelp()).addOption(new Option("--no-dead-code").hideHelp()).option("--supply-chain", "enable the dependency supply-chain scan (default)").option("--no-supply-chain", "skip the dependency supply-chain scan (Socket.dev dependency health checks)").option("--verbose", "show every rule and per-file details (default shows top 3 rules)").option("--debug", "force a Sentry trace and print its id at the end (paste it into a bug report)").option("--output-dir <dir>", "directory for the full diagnostics dump (default: a temp folder)").option("--score", "output only the score").option("--json", "output a single structured JSON report (suppresses other output)").option("--json-compact", "with --json, emit compact JSON (no indentation)").option("--json-out <path>", "with --json, write the report to a file instead of stdout").option("--no-cache", "disable all scan caches for this run").option("-y, --yes", "skip prompts, scan all workspace projects").option("--no-parallel", "lint serially with one worker (default: parallel across CPU cores; set the worker count with REACT_DOCTOR_PARALLEL)").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple); overrides the `projects` config field").option("--scope <value>", "how much supported JS/TS and inline HTML script source to scan/report: full (default), files, changed (only new issues vs base), or lines (issues whose source spans touch changed lines)").option("--baseline <report.json>", "report only new issues compared with a saved JSON report").option("--base <ref>", "base git ref for files/changed/lines scope (auto-detected when omitted)").option("--include-untracked", "with --scope files/changed/lines, also scan ordinary untracked files (respects .gitignore)").addOption(new Option("--diff [base]", "[deprecated] alias for --scope changed (pass `false` to force a full scan)").hideHelp()).addOption(new Option("--changed-files-from <file>", "scan source files listed in a newline-delimited changed-files file").hideHelp()).option("--no-score", "skip the score API, the share URL, and crash reporting").addOption(new Option("--category <category>", "only show diagnostics in a category (repeatable; e.g. Security)").argParser(collectCategoryOption)).option("--no-telemetry", "alias for --no-score (skip the score API, share URL, and crash reporting)").option("--staged", "scan only staged (git index) files for pre-commit hooks (honors --project and config `projects`; exits 0 when nothing is staged)").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").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);
3570
+ const program = new Command().name("react-doctor").description("Diagnose React codebase health").version(VERSION, "-v, --version", "display the version number").argument("[paths...]", "one project directory or source file paths to scan").option("--lint", "enable linting").option("--no-lint", "skip linting").addOption(new Option("--dead-code").hideHelp()).addOption(new Option("--no-dead-code").hideHelp()).option("--supply-chain", "enable the dependency supply-chain scan (default)").option("--no-supply-chain", "skip the dependency supply-chain scan (Socket.dev dependency health checks)").option("--verbose", "show every rule and per-file details (default shows top 3 rules)").option("--debug", "force a Sentry trace and print its id at the end (paste it into a bug report)").option("--output-dir <dir>", "directory for the full diagnostics dump (default: a temp folder)").option("--score", "output only the score").option("--json", "output a single structured JSON report (suppresses other output)").option("--json-compact", "with --json, emit compact JSON (no indentation)").option("--json-out <path>", "with --json, write the report to a file instead of stdout").option("--no-cache", "disable all scan caches for this run").option("-y, --yes", "skip prompts, scan all workspace projects").option("--no-parallel", "lint serially with one worker (default: parallel across CPU cores; set the worker count with REACT_DOCTOR_PARALLEL)").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple); overrides the `projects` config field").option("--scope <value>", "how much supported JS/TS and inline HTML script source to scan/report: full (default), files, changed (only new issues vs base), or lines (issues whose source spans touch changed lines)").option("--baseline <report.json>", "report only new issues compared with a saved JSON report").option("--base <ref>", "base git ref for files/changed/lines scope (auto-detected when omitted)").option("--include-untracked", "with --scope files/changed/lines, also scan ordinary untracked files (respects .gitignore)").addOption(new Option("--diff [base]", "[deprecated] alias for --scope changed (pass `false` to force a full scan)").hideHelp()).addOption(new Option("--changed-files-from <file>", "scan source files listed in a newline-delimited changed-files file").hideHelp()).option("--no-score", "skip the score API, the share URL, and crash reporting").addOption(new Option("--category <category>", "only show diagnostics in a category (repeatable; e.g. Security)").argParser(collectCategoryOption)).option("--no-telemetry", "alias for --no-score (skip the score API, share URL, and crash reporting)").option("--staged", "scan only staged (git index) files for pre-commit hooks (honors --project and config `projects`; exits 0 when nothing is staged)").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").option("--warning-exit-code <code>", "exit code for non-blocking warnings (2-255). Ignored with --blocking none or --score", parseWarningExitCode).addOption(new Option("--fail-on <level>", "[deprecated] alias for --blocking <level>").hideHelp()).option("--no-respect-inline-disables", "audit mode: neutralize inline lint suppressions before scanning").option("--warnings", "show warning-severity diagnostics (default)").option("--no-warnings", "hide warning-severity diagnostics (errors only)").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderRootHelpEpilog);
3562
3571
  program.action(async (positionalPaths = [], flags) => {
3563
- const { runScanCommand } = await import("./scan-BDXop9sM.js");
3572
+ const { runScanCommand } = await import("./scan-Cj9y8SAP.js");
3564
3573
  return runScanCommand({
3565
3574
  ...resolvePositionalScanInput(positionalPaths),
3566
3575
  flags,
@@ -3568,75 +3577,75 @@ program.action(async (positionalPaths = [], flags) => {
3568
3577
  });
3569
3578
  });
3570
3579
  program.command("design [directory]").description("Run only the focused UI design diagnostics").addHelpText("after", renderDesignHelpEpilog).action(async (directory, _options, command) => {
3571
- const { designAction } = await import("./design-RZCZp5vz.js");
3580
+ const { designAction } = await import("./design-CopuOP1D.js");
3572
3581
  return designAction(directory ?? ".", command.optsWithGlobals());
3573
3582
  });
3574
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) => {
3575
- const { runtimeScanAction } = await import("./runtime-scan-DeRImxpb.js");
3584
+ const { runtimeScanAction } = await import("./runtime-scan-BHsXhHD7.js");
3576
3585
  return runtimeScanAction(url, options);
3577
3586
  });
3578
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) => {
3579
- const { whyAction } = await import("./why-BRbHrUfS.js");
3588
+ const { whyAction } = await import("./why-qrsOs6oZ.js");
3580
3589
  return whyAction(location, options);
3581
3590
  });
3582
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) => {
3583
- const { installAction } = await import("./install-CYNlXWIx.js");
3592
+ const { installAction } = await import("./install-BmXncWbO.js");
3584
3593
  return installAction(options, command);
3585
3594
  });
3586
3595
  const providerOption = ["--provider <name>", "ci provider: github-actions or gitlab-ci (auto-detected by default)"];
3587
3596
  const prOption = ["--pr", "open a pull request with the change instead of writing it to the working tree"];
3588
3597
  const ci = program.command("ci").description("Set up, upgrade, and configure React Doctor in your CI");
3589
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) => {
3590
- const { ciInstallAction } = await import("./ci-9qYclb8S.js");
3599
+ const { ciInstallAction } = await import("./ci-BreGV8oF.js");
3591
3600
  return ciInstallAction(command.optsWithGlobals());
3592
3601
  });
3593
3602
  ci.command("config").description("Change the gate, scan scope, and pull-request reporting").option(...providerOption).option("--blocking <level>", "gate level: none (advisory), warning, or error").option("--scope <value>", "what a pull-request scan reports: changed, files, lines, or full").option("--comment", "post a summary comment on each pull request").option("--no-comment", "don't post a summary comment").option("--review-comments", "add inline review comments on changed lines").option("--no-review-comments", "don't add inline review comments").option("--commit-status", "report a commit status with the health score").option("--no-commit-status", "don't report a commit status").option("-y, --yes", "skip prompts; print the current settings").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (_options, command) => {
3594
- const { ciConfigAction } = await import("./ci-9qYclb8S.js");
3603
+ const { ciConfigAction } = await import("./ci-BreGV8oF.js");
3595
3604
  return ciConfigAction(command.optsWithGlobals());
3596
3605
  });
3597
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) => {
3598
- const { ciUpgradeAction } = await import("./ci-9qYclb8S.js");
3607
+ const { ciUpgradeAction } = await import("./ci-BreGV8oF.js");
3599
3608
  return ciUpgradeAction(command.optsWithGlobals());
3600
3609
  });
3601
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 () => {
3602
- const { versionAction } = await import("./version-DPBCKSmZ.js");
3611
+ const { versionAction } = await import("./version-a5Z8qK5b.js");
3603
3612
  return versionAction();
3604
3613
  });
3605
3614
  const rules = program.command("rules").description("List, explain, and configure which React Doctor rules run");
3606
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) => {
3607
- const { rulesListAction } = await import("./rules-D6bR4PWk.js");
3616
+ const { rulesListAction } = await import("./rules-DxujEbHW.js");
3608
3617
  return rulesListAction(command.optsWithGlobals());
3609
3618
  });
3610
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) => {
3611
- const { rulesExplainAction } = await import("./rules-D6bR4PWk.js");
3620
+ const { rulesExplainAction } = await import("./rules-DxujEbHW.js");
3612
3621
  return rulesExplainAction(rule, command.optsWithGlobals());
3613
3622
  });
3614
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) => {
3615
- const { rulesSetAction } = await import("./rules-D6bR4PWk.js");
3624
+ const { rulesSetAction } = await import("./rules-DxujEbHW.js");
3616
3625
  return rulesSetAction(rule, severity, command.optsWithGlobals());
3617
3626
  });
3618
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) => {
3619
- const { rulesEnableAction } = await import("./rules-D6bR4PWk.js");
3628
+ const { rulesEnableAction } = await import("./rules-DxujEbHW.js");
3620
3629
  return rulesEnableAction(rule, command.optsWithGlobals());
3621
3630
  });
3622
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) => {
3623
- const { rulesDisableAction } = await import("./rules-D6bR4PWk.js");
3632
+ const { rulesDisableAction } = await import("./rules-DxujEbHW.js");
3624
3633
  return rulesDisableAction(rule, command.optsWithGlobals());
3625
3634
  });
3626
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) => {
3627
- const { rulesCategoryAction } = await import("./rules-D6bR4PWk.js");
3636
+ const { rulesCategoryAction } = await import("./rules-DxujEbHW.js");
3628
3637
  return rulesCategoryAction(category, severity, command.optsWithGlobals());
3629
3638
  });
3630
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) => {
3631
- const { rulesIgnoreTagAction } = await import("./rules-D6bR4PWk.js");
3640
+ const { rulesIgnoreTagAction } = await import("./rules-DxujEbHW.js");
3632
3641
  return rulesIgnoreTagAction(tag, command.optsWithGlobals());
3633
3642
  });
3634
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) => {
3635
- const { rulesUnignoreTagAction } = await import("./rules-D6bR4PWk.js");
3644
+ const { rulesUnignoreTagAction } = await import("./rules-DxujEbHW.js");
3636
3645
  return rulesUnignoreTagAction(tag, command.optsWithGlobals());
3637
3646
  });
3638
- 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) => {
3639
- const { runScanCommand } = await import("./scan-BDXop9sM.js");
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-Cj9y8SAP.js");
3640
3649
  return runScanCommand({
3641
3650
  directory,
3642
3651
  flags: command.optsWithGlobals(),
@@ -3676,4 +3685,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
3676
3685
  export {};
3677
3686
 
3678
3687
  //# sourceMappingURL=cli.js.map
3679
- //# debugId=cc8f2e34-2b12-55f0-907a-f0131fd67226
3688
+ //# debugId=c898e592-cb2c-5d0e-9def-15ece0a49e91
@@ -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]="f7390cee-15c7-5298-bcb6-3daf4bae0763")}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]="87693c33-5223-58a9-87d5-f3417457178f")}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";
@@ -983,6 +983,7 @@ const METRIC = {
983
983
  projectPathSelected: "project.path_selected",
984
984
  projectConfigSelected: "project.config_selected",
985
985
  scanCompleted: "scan.completed",
986
+ scanWarningExitCodeConfigured: "scan.warning_exit_code.configured",
986
987
  scanDuration: "scan.duration",
987
988
  scanFeedbackDelay: "scan.feedback_delay",
988
989
  scanPhaseDuration: "scan.phase_duration",
@@ -1032,5 +1033,5 @@ const METRIC = {
1032
1033
  //#endregion
1033
1034
  export { warmReactCompilerDetection as $, OXLINT_WORKER_JOB_END_MARKER as $t, buildGitSourceListingRequest as A, TARGET_BLANK_BROWSER_SUPPORT as An, GITHUB_VIEWER_PERMISSION_TIMEOUT_MS as At, resolveGitCommand as B, MAINTAINABILITY_DUPLICATE_JSX_RULE as Bt, SENTRY_RELEASE_PREFIX as C, SUPPLY_CHAIN_CACHE_TTL_MS as Cn, ES_TARGET_YEAR_BY_NAME as Ct, TUI_REPORT_COMPACT_MAX_ROWS as D, SUPPLY_CHAIN_PLUGIN as Dn, GENERATED_BUNDLE_FILE_PATTERN as Dt, TRACKED_FILE_FLAGS_GIT_ARGUMENTS as E, SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS as En, FILE_LINT_CACHE_MAX_FILE_COUNT as Et, lowerChildProcessPriority as F, VERCEL_NEXTJS_SECURITY_RELEASE_URL as Fn, HTML_FILE_PATTERN as Ft, resolvePluginPath as G, MINIFIED_SNIFF_BYTES as Gt, resolveOxlintThreadCount as H, MAINTAINABILITY_SOURCE_FILE_PATTERN as Ht, prefetchGitCommand as I, getCategoryImpact as In, IGNORED_DIRECTORIES as It, resolveTsConfigRelativePath as J, OXLINT_NODE_REQUIREMENT as Jt, resolveReactDoctorCacheDir as K, OCCURRENCE_MATCHED_CATEGORIES as Kt, prespawnOxlintWorkers as L, JSX_DUPLICATION_SOURCE_FILE_PATTERN as Lt, buildOxlintWorkerSpawnSpec as M, TELEMETRY_SHUTDOWN_TIMEOUT_MS as Mn, GIT_LS_FILES_MAX_BUFFER_BYTES as Mt, discardPrefetchedGitCommands as N, TSCONFIG_FILENAMES as Nn, GIT_SHOW_MAX_BUFFER_BYTES as Nt, TUI_REPORT_DETAIL_WIDTH_FRACTION as O, SUPPLY_CHAIN_RULE as On, GENERATED_SOURCE_DIRECTORY_PATTERN as Ot, killUnadoptedOxlintWorkers as P, TYPESCRIPT_DECLARATION_FILE_PATTERN as Pn, GIT_SOURCE_LISTING_ARGUMENTS as Pt, takeReactCompilerDetection as Q, OXLINT_SPLIT_TOTAL_BUDGET_MS as Qt, readSystemConcurrencyFacts as R, JSX_FILE_PATTERN as Rt, SENTRY_FLUSH_TIMEOUT_MS as S, SUPPLY_CHAIN_CACHE_SUBDIR as Sn, ENTERPRISE_CONTACT_URL as St, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as T, SUPPLY_CHAIN_IGNORED_PACKAGES as Tn, FILE_LINT_CACHE_FILENAME as Tt, resolveOxlintToolchainVersions as U, MAX_GLOB_PATTERN_LENGTH_CHARS as Ut, resolveOxlintBinary as V, MAINTAINABILITY_PLUGIN as Vt, resolveOxlintWorkerRuntime as W, MILLISECONDS_PER_SECOND as Wt, spawnOxlintWorkerProcess as X, OXLINT_OUTPUT_MAX_BYTES as Xt, setChildProcessRef as Y, OXLINT_OOM_RESCUE_BUDGET_MS as Yt, takePrespawnedOxlintWorker as Z, OXLINT_SPAWN_TIMEOUT_MS as Zt, SCAN_PREAMBLE_SKIP_FLAGS as _, SOURCE_FILE_PATTERN as _n, DIAGNOSTIC_CATEGORY_BUCKETS as _t, CACHE_DISABLED_VALUES as a, REACT_ROUTER_CAPABILITY_THRESHOLDS as an, AXIOM_METRICS_DATASET_HEADER as at, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as b, SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX as bn, DOCS_URL as bt, HEAD_SHA_GIT_ARGUMENTS as c, ROOT_CAUSE_GROUPABLE_RULE_KEYS as cn, CANONICAL_DISCORD_URL as ct, METRIC_DISTRIBUTION_BOUNDARIES as d, SHARE_BASE_URL as dn, COMPILER_CLEANUP_BUCKET as dt, PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB as en, ABORT_EXIT_CODES as et, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as f, SIDECAR_LINT_CACHE_FILENAME as fn, COMPILER_CLEANUP_RULE_KEYS as ft, RUN_GIT_MAX_BUFFER_BYTES as g, SOCKET_PACKAGE_PAGE_BASE as gn, DEFAULT_BRANCH_CANDIDATES as gt, REPOSITORY_ROOT_GIT_ARGUMENTS as h, SOCKET_FREE_USER_AGENT as hn, CONFIG_SCHEMA_URL as ht, BASELINE_FILES_TEMP_DIR_PREFIX as i, REACT_BLOG_RSC_ADVISORY_URL as in, AXIOM_DEFAULT_DOMAIN as it, buildOxlintChildEnv as j, TELEMETRY_EXPORT_INTERVAL_MS as jn, GIT_CHECK_ATTR_MAX_BUFFER_BYTES as jt, WORKTREE_STATUS_GIT_ARGUMENTS as k, TAILWIND_POSTCSS7_COMPAT_ALIAS as kn, GITHUB_ACTIONS_SETUP_URL as kt, INTERNAL_ERROR_JSON_FALLBACK as l, SCANNED_DOT_DIRECTORIES as ln, CANONICAL_GITHUB_URL as lt, REACT_DOCTOR_CONFIG_PROJECT_NAME as m, SOCKET_FREE_PURL_API_BASE as mn, CONFIG_FINGERPRINT_FILENAMES as mt, AXIOM_METRICS_DATASET as n, PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS as nn, APP_ONLY_RULE_KEYS as nt, CI_TRUST_COMPANIES as o, REACT_SERVER_DOM_PACKAGES as on, AXIOM_METRICS_PATH as ot, NANOSECONDS_PER_MILLISECOND as p, SKILL_NAME as pn, CONFIG_CACHE_TTL_MS as pt, resolveScanConcurrency as q, OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES as qt, AXIOM_TRACES_DATASET as r, PROJECT_ANALYSIS_WORKER_TIMEOUT_MS as rn, AXIOM_DATASET_HEADER as rt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as s, RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES as sn, AXIOM_TRACES_PATH as st, AXIOM_INGEST_TOKEN as t, PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES as tn, ADOPTABLE_LINT_CONFIG_FILENAMES as tt, METRIC as u, SCORE_API_URL as un, CI_URL as ut, SCAN_RESULT_CACHE_FILENAME as v, SPAWN_ARGS_MAX_LENGTH_CHARS as vn, DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS as vt, STAGED_FILES_TEMP_DIR_PREFIX as w, SUPPLY_CHAIN_CATEGORY as wn, FETCH_TIMEOUT_MS as wt, SENTRY_DSN as x, STAGED_FILES_PROJECT_CONFIG_FILENAMES as xn, DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS as xt, SCAN_RESULT_CACHE_GIT_ARGUMENTS as y, SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN as yn, DOCS_RULES_BASE_URL as yt, resolveConfiguredScanConcurrency as z, MAINTAINABILITY_CATEGORY as zt };
1034
1035
 
1035
- //# sourceMappingURL=constants-DE6ZPzRQ.js.map
1036
- //# debugId=f7390cee-15c7-5298-bcb6-3daf4bae0763
1036
+ //# sourceMappingURL=constants-Bwylqy0B.js.map
1037
+ //# debugId=87693c33-5223-58a9-87d5-f3417457178f
@@ -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]="ec212e4f-991d-5231-803b-2b163f254b6f")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-BHz6b1Qx.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]="7b053206-05c1-5e4b-ad8c-31bdaa75e4b4")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-DSJalZ5V.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-RZCZp5vz.js.map
14
- //# debugId=ec212e4f-991d-5231-803b-2b163f254b6f
13
+ //# sourceMappingURL=design-CopuOP1D.js.map
14
+ //# debugId=7b053206-05c1-5e4b-ad8c-31bdaa75e4b4
@@ -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]="dd57655d-e214-5f11-ba1e-d889bf8a60fc")}catch(e){}}();
3
- import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-BUIh9xFo.js";
4
- import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-Dum0iDKs.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]="b09ff261-8286-5c7f-953c-974e119b9d99")}catch(e){}}();
3
+ import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-C4i_4em1.js";
4
+ import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-DsEQ3Yc8.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-k-iqApDn.js";
6
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-BJcCSTF9.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-CXbetjsk.js.map
54
- //# debugId=dd57655d-e214-5f11-ba1e-d889bf8a60fc
53
+ //# sourceMappingURL=exit-gracefully-euoFKtV_.js.map
54
+ //# debugId=b09ff261-8286-5c7f-953c-974e119b9d99
@@ -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]="6418530a-c190-529b-baf7-d7b0e53b9359")}catch(e){}}();
3
- import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-DE6ZPzRQ.js";
4
- import { Hn as isErrnoException, Pt as isReactDoctorError, _ as VERSION, bt as formatReactDoctorError, hn as gen, jt as highlighter, sn as error, t as recordCount, wn as runSync, yt as formatErrorChain } from "./record-metric-BUIh9xFo.js";
5
- import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-Dum0iDKs.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]="60371805-3f7a-5b7d-b736-d9e7cdf9cbf7")}catch(e){}}();
3
+ import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { Hn as isErrnoException, Pt as isReactDoctorError, _ as VERSION, bt as formatReactDoctorError, hn as gen, jt as highlighter, sn as error, t as recordCount, wn as runSync, yt as formatErrorChain } from "./record-metric-C4i_4em1.js";
5
+ import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-DsEQ3Yc8.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-Bu8Hxmu6.js.map
115
- //# debugId=6418530a-c190-529b-baf7-d7b0e53b9359
114
+ //# sourceMappingURL=handle-error-BlKIXfOh.js.map
115
+ //# debugId=60371805-3f7a-5b7d-b736-d9e7cdf9cbf7
@@ -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]="b97166b9-47b3-5323-b81d-9223bf49fde4")}catch(e){}}();
3
- import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-DE6ZPzRQ.js";
4
- import { An as provide, Bt as listWorkspacePackages, Cn as runPromise, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Hn as isErrnoException, Ht as mapWithConcurrency, K as StagedFiles, Kt as remainingDeadlineBudgetMs, S as isDebugFlagEnabled, St as getChangedLineRanges, Wn as isPlainObject, Yt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, _t as findLegacyConfig, bn as provide$1, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as JsonReport, ft as discoverSupportedSubprojects, g as writeJsonReport, h as writeJsonErrorReport, hn as gen, j as Git, jt as highlighter, kt as hasSupportedFrameworkOrLibrary, n as recordDistribution, nn as toRelativePath, p as setJsonReportMode, pn as decodeUnknownSync, t as recordCount, u as enableJsonMode, wt as getDiffInfo, xt as getBaselineDiffPlan, y as CliInputError, zn as messageFromUnknown } from "./record-metric-BUIh9xFo.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-Dum0iDKs.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-Bu8Hxmu6.js";
7
- import { t as reportErrorToSentry } from "./report-error-Dis6c69z.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]="45525b5d-e6bc-58b2-bdd0-e9ca3bdd9f38")}catch(e){}}();
3
+ import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-Bwylqy0B.js";
4
+ import { An as provide, Bt as listWorkspacePackages, Cn as runPromise, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Hn as isErrnoException, Ht as mapWithConcurrency, K as StagedFiles, Kt as remainingDeadlineBudgetMs, S as isDebugFlagEnabled, St as getChangedLineRanges, Wn as isPlainObject, Yt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, _t as findLegacyConfig, bn as provide$1, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as JsonReport, ft as discoverSupportedSubprojects, g as writeJsonReport, h as writeJsonErrorReport, hn as gen, j as Git, jt as highlighter, kt as hasSupportedFrameworkOrLibrary, n as recordDistribution, nn as toRelativePath, p as setJsonReportMode, pn as decodeUnknownSync, t as recordCount, u as enableJsonMode, wt as getDiffInfo, xt as getBaselineDiffPlan, y as CliInputError, zn as messageFromUnknown } from "./record-metric-C4i_4em1.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-DsEQ3Yc8.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-BlKIXfOh.js";
7
+ import { t as reportErrorToSentry } from "./report-error-BEBS99Z5.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-wAZc6x1Q.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-BG9qzRi4.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CIGhXb1G.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-apd44PjY.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 shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./should-fail-scan-gate-D-KdsCIb.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-BTuVEmXF.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-BFeaIN8C.js";
16
- import { t as readObjectFile } from "./read-object-file-Cv_ravdp.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-BLb18kaf.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-ChF7QmpO.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-DfKJ9y3u.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CduxjTi-.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-Bp8CaLFy.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-Bp082NTK.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-lp_KU14v.js";
16
+ import { t as readObjectFile } from "./read-object-file-Cl68gVd9.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";
@@ -768,11 +768,14 @@ const finalizeCliScans = (input) => {
768
768
  baseline: outcome.baseline,
769
769
  baselineDegraded: outcome.baselineDegraded
770
770
  }));
771
- if (shouldFailScanGate({
771
+ const exitCode = resolveScanExitCode({
772
772
  scans: input.completedScans,
773
773
  blockingLevel: resolveBlockingLevel(input.flags, input.userConfig),
774
- diagnosticsAreGateExempt: input.isScoreOnly || outcome.baselineDegraded
775
- })) process.exitCode = 1;
774
+ diagnosticsAreGateExempt: input.isScoreOnly || outcome.baselineDegraded,
775
+ warningExitCode: input.flags.warningExitCode
776
+ });
777
+ if (input.flags.warningExitCode !== void 0) recordCount(METRIC.scanWarningExitCodeConfigured);
778
+ if (exitCode !== 0) process.exitCode = exitCode;
776
779
  };
777
780
  //#endregion
778
781
  //#region src/cli/utils/get-staged-files.ts
@@ -1520,5 +1523,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
1520
1523
  //#endregion
1521
1524
  export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
1522
1525
 
1523
- //# sourceMappingURL=inspect-BHz6b1Qx.js.map
1524
- //# debugId=b97166b9-47b3-5323-b81d-9223bf49fde4
1526
+ //# sourceMappingURL=inspect-DSJalZ5V.js.map
1527
+ //# debugId=45525b5d-e6bc-58b2-bdd0-e9ca3bdd9f38
@@ -1,12 +1,12 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="daf8467a-7229-589a-8101-abadfd936fdf")}catch(e){}}();
3
- import { u as METRIC } from "./constants-DE6ZPzRQ.js";
4
- import { t as recordCount, wn as runSync } from "./record-metric-BUIh9xFo.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-Dum0iDKs.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-Bu8Hxmu6.js";
7
- import { t as reportErrorToSentry } from "./report-error-Dis6c69z.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-DML7Yxjd.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-BFeaIN8C.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]="2731e5df-ac4a-53c5-b2ab-7496c2fb6b1e")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { t as recordCount, wn as runSync } from "./record-metric-C4i_4em1.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-DsEQ3Yc8.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-BlKIXfOh.js";
7
+ import { t as reportErrorToSentry } from "./report-error-BEBS99Z5.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-BkwARxm7.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-lp_KU14v.js";
10
10
  //#region src/cli/commands/install.ts
11
11
  const installAction = async (options, command) => {
12
12
  recordCount(METRIC.cliInvoked, 1, { command: "install" });
@@ -30,5 +30,5 @@ const installAction = async (options, command) => {
30
30
  //#endregion
31
31
  export { installAction };
32
32
 
33
- //# sourceMappingURL=install-CYNlXWIx.js.map
34
- //# debugId=daf8467a-7229-589a-8101-abadfd936fdf
33
+ //# sourceMappingURL=install-BmXncWbO.js.map
34
+ //# debugId=2731e5df-ac4a-53c5-b2ab-7496c2fb6b1e
@@ -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]="9d179e81-3845-5b9b-9f44-c597d933d209")}catch(e){}}();
3
- import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-DE6ZPzRQ.js";
4
- import { b as isNonInteractiveEnvironment, cn as info$1, jt as highlighter, ln as log, sn as error$1, un as warn, wn as runSync } from "./record-metric-BUIh9xFo.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]="f8bca1db-8ae6-57ba-9f44-12bfe07b6762")}catch(e){}}();
3
+ import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-Bwylqy0B.js";
4
+ import { b as isNonInteractiveEnvironment, cn as info$1, jt as highlighter, ln as log, sn as error$1, un as warn, wn as runSync } from "./record-metric-C4i_4em1.js";
5
5
  import { a as chalk, i as stripAnsi, t as eastAsianWidth } from "./get-east-asian-width-DRPy7dqz.js";
6
6
  import * as fs$1 from "node:fs";
7
7
  import * as path$1 from "node:path";
@@ -2818,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
2818
2818
  //#endregion
2819
2819
  export { runGitAsync as A, isRecord as C, readPackageJson as D, packageHasRecordKey as E, writeJsonFile as M, cliLogger as N, resolveGitPath as O, getPackageJsonPath as S, packageHasNestedRecordKey as T, REACT_DOCTOR_COMMAND as _, installReactDoctorScriptStep as a, VITE_PLUS_HOOKS_PATH as b, spinner as c, HUSKY_HOOKS_PATH as d, LEFTHOOK_CONFIG_FILES as f, PRE_COMMIT_CONFIG_FILE as g, OVERCOMMIT_CONFIG_FILE as h, hasDoctorScript as i, runGitRaw as j, runGit as k, HOOK_FILE_NAME as l, NON_BLOCKING_REACT_DOCTOR_COMMAND as m, findNearestPackageDirectory as n, isSpinnerSilent as o, LEGACY_HOOK_RUNNER_RELATIVE_PATH as p, hasDoctorDependency as r, setSpinnerSilent as s, DOCTOR_PACKAGE_NAME as t, HOOK_RELATIVE_PATH as u, SIMPLE_GIT_HOOKS_CONFIG_FILE as v, packageHasDependency as w, ensureTrailingNewline as x, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as y };
2820
2820
 
2821
- //# sourceMappingURL=install-doctor-script-wAZc6x1Q.js.map
2822
- //# debugId=9d179e81-3845-5b9b-9f44-c597d933d209
2821
+ //# sourceMappingURL=install-doctor-script-BLb18kaf.js.map
2822
+ //# debugId=f8bca1db-8ae6-57ba-9f44-12bfe07b6762
@@ -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]="b2b156aa-2d58-54e7-abb9-41db8c2db1b0")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-DE6ZPzRQ.js";
4
- import { gt as findGitRepositoryRoot } from "./record-metric-BUIh9xFo.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]="638cf473-9f13-5d93-b8ff-34f467637c9d")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-Bwylqy0B.js";
4
+ import { gt as findGitRepositoryRoot } from "./record-metric-C4i_4em1.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-wAZc6x1Q.js";
6
+ import { N as cliLogger } from "./install-doctor-script-BLb18kaf.js";
7
7
  import { createRequire } from "node:module";
8
8
  import * as fs$1 from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -281,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
281
281
  //#endregion
282
282
  export { readReactDoctorWorkflow as a, workflowUsesV1Action as c, detectDefaultBranch as d, runCommand as f, isReactDoctorWorkflowInstalled as i, prompts as l, getReactDoctorWorkflowPath as n, upgradeReactDoctorWorkflowInPlace as o, installReactDoctorWorkflow as r, upgradeWorkflowActionToV2 as s, buildWorkflowContent as t, isCommandAvailable as u };
283
283
 
284
- //# sourceMappingURL=install-github-workflow-BG9qzRi4.js.map
285
- //# debugId=b2b156aa-2d58-54e7-abb9-41db8c2db1b0
284
+ //# sourceMappingURL=install-github-workflow-ChF7QmpO.js.map
285
+ //# debugId=638cf473-9f13-5d93-b8ff-34f467637c9d
@@ -1,11 +1,11 @@
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]="fa665ddf-78dc-5aff-a46a-b8d63a7185fa")}catch(e){}}();
3
- import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-DE6ZPzRQ.js";
4
- import { Hn as isErrnoException, jt as highlighter, t as recordCount, y as CliInputError } from "./record-metric-BUIh9xFo.js";
5
- import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-wAZc6x1Q.js";
6
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-BG9qzRi4.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-apd44PjY.js";
8
- import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-BTuVEmXF.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]="9164d3da-311f-5cf5-ab7c-6a61e3e503fc")}catch(e){}}();
3
+ import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { Hn as isErrnoException, jt as highlighter, t as recordCount, y as CliInputError } from "./record-metric-C4i_4em1.js";
5
+ import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-BLb18kaf.js";
6
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-ChF7QmpO.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CduxjTi-.js";
8
+ import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-Bp082NTK.js";
9
9
  import * as fs$1 from "node:fs";
10
10
  import * as path$1 from "node:path";
11
11
  import { execFile } from "node:child_process";
@@ -1156,5 +1156,5 @@ const runInstallReactDoctor = async (options = {}) => {
1156
1156
  //#endregion
1157
1157
  export { askUpgradeActionVersion as a, recordCiPromptDecision as c, installReactDoctorAgentHooks as i, hasHandledActionUpgrade as l, runInstallReactDoctor as n, askAddToGitHubActions as o, findAgentsWithOutdatedReactDoctorHooks as r, hasHandledCiPrompt as s, getSkillSourceDirectory as t, recordActionUpgradeDecision as u };
1158
1158
 
1159
- //# sourceMappingURL=install-react-doctor-BFeaIN8C.js.map
1160
- //# debugId=fa665ddf-78dc-5aff-a46a-b8d63a7185fa
1159
+ //# sourceMappingURL=install-react-doctor-lp_KU14v.js.map
1160
+ //# debugId=9164d3da-311f-5cf5-ab7c-6a61e3e503fc
@@ -1,10 +1,10 @@
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]="2792197c-04fe-5549-af1b-633a30351c63")}catch(e){}}();
3
- import { a as CACHE_DISABLED_VALUES } from "./constants-DE6ZPzRQ.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]="56e77dbd-5dbe-55ce-9d8e-d4f09e809431")}catch(e){}}();
3
+ import { a as CACHE_DISABLED_VALUES } from "./constants-Bwylqy0B.js";
4
4
  //#region src/cli/utils/is-cache-globally-disabled.ts
5
5
  const isCacheGloballyDisabled = () => CACHE_DISABLED_VALUES.has(process.env.REACT_DOCTOR_NO_CACHE?.toLowerCase() ?? "");
6
6
  //#endregion
7
7
  export { isCacheGloballyDisabled as t };
8
8
 
9
- //# sourceMappingURL=is-cache-globally-disabled-BlQ5D5mG.js.map
10
- //# debugId=2792197c-04fe-5549-af1b-633a30351c63
9
+ //# sourceMappingURL=is-cache-globally-disabled-BvdYcw6Q.js.map
10
+ //# debugId=56e77dbd-5dbe-55ce-9d8e-d4f09e809431