react-doctor 0.9.17-dev.909b8e5 → 0.9.17-dev.9e305df

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 (40) hide show
  1. package/README.md +19 -23
  2. package/dist/{build-section-divider-ChT26nqL.js → build-section-divider-Cd3uiJVP.js} +5 -5
  3. package/dist/{ci-D74apYLk.js → ci-DAEImDVF.js} +18 -14
  4. package/dist/cli.js +40 -31
  5. package/dist/{constants-DHn5rUeg.js → constants-Bwylqy0B.js} +7 -5
  6. package/dist/constants-DNh19qg9.js +2 -2
  7. package/dist/{design-BnJa4UhJ.js → design-CWMOJEQ5.js} +4 -4
  8. package/dist/{exit-gracefully-hbh3eC6c.js → exit-gracefully-DjEznNjO.js} +6 -6
  9. package/dist/{handle-error-BeTWFBC9.js → handle-error-B5DC6Y90.js} +6 -6
  10. package/dist/index.js +8 -7
  11. package/dist/{inspect-CdlVAWyK.js → inspect-CdksFXOK.js} +22 -19
  12. package/dist/{install-BuRrQXKk.js → install-CXFcPFdz.js} +10 -10
  13. package/dist/{install-doctor-script-DgDM0cVD.js → install-doctor-script-DU9kPKoM.js} +10 -6
  14. package/dist/{install-github-workflow-Bnc2OWDh.js → install-github-workflow-Ch8oU6Iy.js} +22 -8
  15. package/dist/{install-react-doctor-BJav3Ke_.js → install-react-doctor-BR8VUQI-.js} +9 -9
  16. package/dist/{is-cache-globally-disabled-DDlh_f1u.js → is-cache-globally-disabled-BvdYcw6Q.js} +4 -4
  17. package/dist/{jsx-runtime-Bby8M_TD.js → jsx-runtime-ChbFP-Kk.js} +6 -6
  18. package/dist/{print-branded-header-D9kVsTDd.js → print-branded-header-Bex0ahYA.js} +4 -4
  19. package/dist/{prompt-runtime-scan-url-CQXQBrZB.js → prompt-runtime-scan-url-CwCGiK81.js} +5 -5
  20. package/dist/{read-object-file-C4fMfbk6.js → read-object-file-BnU3NXPi.js} +4 -4
  21. package/dist/{record-metric-BF-mZetx.js → record-metric-D0BrtuTp.js} +10 -9
  22. package/dist/{report-error-CbEOXeYl.js → report-error-BpejEIx6.js} +6 -6
  23. package/dist/{report-workflow-result-CuvRvHHO.js → report-workflow-result-6xRBSzzc.js} +8 -7
  24. package/dist/{should-fail-scan-gate-DYgwcl3R.js → resolve-scan-exit-code-Cx8B2KkA.js} +24 -20
  25. package/dist/{resolve-scope-COovJzkm.js → resolve-scope-DLRpCs60.js} +6 -6
  26. package/dist/{rules-BMaTdqBI.js → rules-CHQHpdW3.js} +7 -7
  27. package/dist/{run-scan-app-DBjGafxB.js → run-scan-app-CSnBA849.js} +27 -19
  28. package/dist/{runtime-scan-CailNg0C.js → runtime-scan-CTIbAfEj.js} +10 -10
  29. package/dist/{sanitize-runtime-url-TyCumcQ2.js → sanitize-runtime-url-BpPIXvtA.js} +4 -4
  30. package/dist/{scan-DT7pC7C1.js → scan-CYW2Yqkl.js} +14 -13
  31. package/dist/{should-skip-prompts-CZpEQqvz.js → should-skip-prompts-BmJIBm5d.js} +4 -4
  32. package/dist/{should-use-tui-BodZfYwG.js → should-use-tui-BiBOn4HA.js} +4 -4
  33. package/dist/skills/react-doctor/SKILL.md +4 -0
  34. package/dist/{start-scan-preamble-BPz3nzCQ.js → start-scan-preamble-2uz0joCl.js} +5 -5
  35. package/dist/start-scan-preamble.js +3 -3
  36. package/dist/{telemetry-runtime-CIvXRxWU.js → telemetry-runtime-D6M80Spe.js} +7 -7
  37. package/dist/{version-CEEQyMgj.js → version-sR_ONnja.js} +5 -5
  38. package/dist/{why-uHdoFbF3.js → why-dwO9FTu7.js} +4 -4
  39. package/dist/{with-run-span-avP9eKOT.js → with-run-span-DqJ3pijm.js} +6 -6
  40. package/package.json +4 -4
@@ -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]="ded96f3f-e6a7-595f-9403-972de0ae37a3")}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-DHn5rUeg.js";
4
- import { At as highlighter, Ct as getDiffInfo, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Gt as remainingDeadlineBudgetMs, Jt as resolveScanTarget, K as StagedFiles, Ot as hasSupportedFrameworkOrLibrary, Rn as messageFromUnknown, S as isDebugFlagEnabled, Sn as runPromise, Un as isPlainObject, Vn as isErrnoException, Vt as mapWithConcurrency, Z as buildJsonReport, _ as VERSION, bt as getBaselineDiffPlan, dn as JsonReport, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as decodeUnknownSync, ft as discoverSupportedSubprojects, g as writeJsonReport, gt as findLegacyConfig, h as writeJsonErrorReport, j as Git, kn as provide, mn as gen, n as recordDistribution, p as setJsonReportMode, t as recordCount, tn as toRelativePath, u as enableJsonMode, xt as getChangedLineRanges, y as CliInputError, yn as provide$1, zt as listWorkspacePackages } from "./record-metric-BF-mZetx.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-CIvXRxWU.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-BeTWFBC9.js";
7
- import { t as reportErrorToSentry } from "./report-error-CbEOXeYl.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]="804ba20f-8298-5462-a80e-e5bd470af923")}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-D0BrtuTp.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-D6M80Spe.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-B5DC6Y90.js";
7
+ import { t as reportErrorToSentry } from "./report-error-BpejEIx6.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-DgDM0cVD.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-Bnc2OWDh.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-COovJzkm.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-CZpEQqvz.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-DYgwcl3R.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-CuvRvHHO.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-BJav3Ke_.js";
16
- import { t as readObjectFile } from "./read-object-file-C4fMfbk6.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-DU9kPKoM.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-Ch8oU6Iy.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-DLRpCs60.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-BmJIBm5d.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-Cx8B2KkA.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-6xRBSzzc.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-BR8VUQI-.js";
16
+ import { t as readObjectFile } from "./read-object-file-BnU3NXPi.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-CdlVAWyK.js.map
1524
- //# debugId=ded96f3f-e6a7-595f-9403-972de0ae37a3
1526
+ //# sourceMappingURL=inspect-CdksFXOK.js.map
1527
+ //# debugId=804ba20f-8298-5462-a80e-e5bd470af923
@@ -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]="7f329080-d91e-5071-adc5-ba25755d1aa1")}catch(e){}}();
3
- import { u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { Cn as runSync, t as recordCount } from "./record-metric-BF-mZetx.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-CIvXRxWU.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-BeTWFBC9.js";
7
- import { t as reportErrorToSentry } from "./report-error-CbEOXeYl.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-D9kVsTDd.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-BJav3Ke_.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]="82f9e45e-b8af-54b2-9871-aad8a19fcf5e")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { t as recordCount, wn as runSync } from "./record-metric-D0BrtuTp.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-D6M80Spe.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-B5DC6Y90.js";
7
+ import { t as reportErrorToSentry } from "./report-error-BpejEIx6.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-Bex0ahYA.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-BR8VUQI-.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-BuRrQXKk.js.map
34
- //# debugId=7f329080-d91e-5071-adc5-ba25755d1aa1
33
+ //# sourceMappingURL=install-CXFcPFdz.js.map
34
+ //# debugId=82f9e45e-b8af-54b2-9871-aad8a19fcf5e
@@ -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]="01edbd0e-5409-5324-bed5-49462dcc5062")}catch(e){}}();
3
- import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-DHn5rUeg.js";
4
- import { At as highlighter, Cn as runSync, b as isNonInteractiveEnvironment, cn as log, ln as warn, on as error$1, sn as info$1 } from "./record-metric-BF-mZetx.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]="97ee81c7-9921-5856-9bd3-37ccd7a5395a")}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-D0BrtuTp.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";
@@ -78,7 +78,11 @@ const runGitRaw = (projectRoot, args) => {
78
78
  "pipe",
79
79
  "ignore"
80
80
  ],
81
- maxBuffer: RUN_GIT_MAX_BUFFER_BYTES
81
+ maxBuffer: RUN_GIT_MAX_BUFFER_BYTES,
82
+ env: {
83
+ ...process.env,
84
+ GIT_DIR: void 0
85
+ }
82
86
  });
83
87
  } catch {
84
88
  return null;
@@ -2814,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
2814
2818
  //#endregion
2815
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 };
2816
2820
 
2817
- //# sourceMappingURL=install-doctor-script-DgDM0cVD.js.map
2818
- //# debugId=01edbd0e-5409-5324-bed5-49462dcc5062
2821
+ //# sourceMappingURL=install-doctor-script-DU9kPKoM.js.map
2822
+ //# debugId=97ee81c7-9921-5856-9bd3-37ccd7a5395a
@@ -1,8 +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]="06261816-4b4f-5c89-808d-3d8583f9602a")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-DHn5rUeg.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]="b1613d63-3822-5a06-88b6-67c8a053d35d")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-Bwylqy0B.js";
4
+ import { gt as findGitRepositoryRoot } from "./record-metric-D0BrtuTp.js";
4
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
5
- import { N as cliLogger } from "./install-doctor-script-DgDM0cVD.js";
6
+ import { N as cliLogger } from "./install-doctor-script-DU9kPKoM.js";
6
7
  import { createRequire } from "node:module";
7
8
  import * as fs$1 from "node:fs";
8
9
  import * as path$1 from "node:path";
@@ -191,13 +192,19 @@ jobs:
191
192
  # blocking: error # Gate level: "none" (advisory, the default) | "warning" | "error"
192
193
  # scope: full # On PRs, scan the whole project instead of just changed files
193
194
  # comment: false # Disable the sticky PR summary comment
195
+ # comment-on-clean: false # Skip new comments for clean scans
194
196
  # review-comments: false # Disable inline review comments on changed lines
195
197
  # commit-status: false # Disable the commit status (score + counts, links to the run)
196
198
  # version: "0.4.0" # Pin to a specific react-doctor version instead of "latest"
197
199
  # directory: apps/web # Scan a sub-directory (default: ".")
198
200
  # project: "web,admin" # In a monorepo, scan specific workspace project(s)
199
201
  `;
200
- const getReactDoctorWorkflowPath = (projectRoot) => path$1.join(projectRoot, ".github", "workflows", "react-doctor.yml");
202
+ const getGitRootWorkflowPath = (gitRoot) => path$1.join(gitRoot, ".github", "workflows", "react-doctor.yml");
203
+ const getReactDoctorWorkflowPath = (projectRoot) => {
204
+ const gitRoot = findGitRepositoryRoot(projectRoot);
205
+ if (gitRoot === null) return path$1.join(projectRoot, ".github", "workflows", "react-doctor.yml");
206
+ return getGitRootWorkflowPath(gitRoot);
207
+ };
201
208
  const isReactDoctorWorkflowInstalled = (projectRoot) => fs$1.existsSync(getReactDoctorWorkflowPath(projectRoot));
202
209
  const V1_FLOATING_ACTION_REF = String.raw`millionco/react-doctor@v1(?![\w.])`;
203
210
  const V2_FLOATING_ACTION_REF = "millionco/react-doctor@v2";
@@ -221,7 +228,13 @@ const upgradeWorkflowActionToV2 = (content) => {
221
228
  };
222
229
  };
223
230
  const installReactDoctorWorkflow = (projectRoot, defaultBranch = "main") => {
224
- const workflowPath = getReactDoctorWorkflowPath(projectRoot);
231
+ const gitRoot = findGitRepositoryRoot(projectRoot);
232
+ if (gitRoot === null) return {
233
+ status: "failed",
234
+ workflowPath: path$1.join(projectRoot, ".github", "workflows", "react-doctor.yml"),
235
+ error: "no-git-root"
236
+ };
237
+ const workflowPath = getGitRootWorkflowPath(gitRoot);
225
238
  if (fs$1.existsSync(workflowPath)) return {
226
239
  status: "exists",
227
240
  workflowPath
@@ -236,7 +249,8 @@ const installReactDoctorWorkflow = (projectRoot, defaultBranch = "main") => {
236
249
  } catch {
237
250
  return {
238
251
  status: "failed",
239
- workflowPath
252
+ workflowPath,
253
+ error: "write-failed"
240
254
  };
241
255
  }
242
256
  };
@@ -267,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
267
281
  //#endregion
268
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 };
269
283
 
270
- //# sourceMappingURL=install-github-workflow-Bnc2OWDh.js.map
271
- //# debugId=06261816-4b4f-5c89-808d-3d8583f9602a
284
+ //# sourceMappingURL=install-github-workflow-Ch8oU6Iy.js.map
285
+ //# debugId=b1613d63-3822-5a06-88b6-67c8a053d35d
@@ -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]="e2b8d560-96aa-5df5-b6f8-6d37b18a2ec5")}catch(e){}}();
3
- import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { At as highlighter, Vn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-BF-mZetx.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-DgDM0cVD.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-Bnc2OWDh.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-CZpEQqvz.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-CuvRvHHO.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]="d1c5fa02-7087-50d7-aa5e-e0145927c062")}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-D0BrtuTp.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-DU9kPKoM.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-Ch8oU6Iy.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-BmJIBm5d.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-6xRBSzzc.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-BJav3Ke_.js.map
1160
- //# debugId=e2b8d560-96aa-5df5-b6f8-6d37b18a2ec5
1159
+ //# sourceMappingURL=install-react-doctor-BR8VUQI-.js.map
1160
+ //# debugId=d1c5fa02-7087-50d7-aa5e-e0145927c062
@@ -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]="f128b756-b9c0-5228-a3e4-73357dd868bb")}catch(e){}}();
3
- import { a as CACHE_DISABLED_VALUES } from "./constants-DHn5rUeg.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-DDlh_f1u.js.map
10
- //# debugId=f128b756-b9c0-5228-a3e4-73357dd868bb
9
+ //# sourceMappingURL=is-cache-globally-disabled-BvdYcw6Q.js.map
10
+ //# debugId=56e77dbd-5dbe-55ce-9d8e-d4f09e809431
@@ -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]="cce5860d-5b53-54be-8f03-b971963bb407")}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]="12d54f9b-08ea-5b5d-b080-3ce841fdc46e")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { u as METRIC } from "./constants-DHn5rUeg.js";
5
- import { t as recordCount } from "./record-metric-BF-mZetx.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-hbh3eC6c.js";
4
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
5
+ import { t as recordCount } from "./record-metric-D0BrtuTp.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-DjEznNjO.js";
7
7
  import { a as chalk, i as stripAnsi, n as isFullWidth$1, r as isWide$1 } from "./get-east-asian-width-DRPy7dqz.js";
8
8
  import * as fs$1 from "node:fs";
9
9
  import fs from "node:fs";
@@ -25870,5 +25870,5 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25870
25870
  //#endregion
25871
25871
  export { useExitOnCtrlC as a, Spinner as c, useInput as d, Transform as f, Box as h, import_react as i, useStdout as l, Text as m, registerMountedTuiRenderer as n, terminalSymbols as o, render as p, useStdoutDimensions as r, isPrintableInput as s, require_jsx_runtime as t, useApp as u };
25872
25872
 
25873
- //# sourceMappingURL=jsx-runtime-Bby8M_TD.js.map
25874
- //# debugId=cce5860d-5b53-54be-8f03-b971963bb407
25873
+ //# sourceMappingURL=jsx-runtime-ChbFP-Kk.js.map
25874
+ //# debugId=12d54f9b-08ea-5b5d-b080-3ce841fdc46e
@@ -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]="2d2eb485-864f-5b99-9933-9e2e119c34a1")}catch(e){}}();
3
- import { At as highlighter, _ as VERSION, cn as log, mn as gen } from "./record-metric-BF-mZetx.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]="6dc25afb-7297-5058-9ac7-8ccb4c13bdf5")}catch(e){}}();
3
+ import { _ as VERSION, hn as gen, jt as highlighter, ln as log } from "./record-metric-D0BrtuTp.js";
4
4
  //#region src/cli/utils/print-branded-header.ts
5
5
  /**
6
6
  * Single branded line every command prints first when not in JSON
@@ -18,5 +18,5 @@ const printBrandedHeader = gen(function* () {
18
18
  //#endregion
19
19
  export { printBrandedHeader as t };
20
20
 
21
- //# sourceMappingURL=print-branded-header-D9kVsTDd.js.map
22
- //# debugId=2d2eb485-864f-5b99-9933-9e2e119c34a1
21
+ //# sourceMappingURL=print-branded-header-Bex0ahYA.js.map
22
+ //# debugId=6dc25afb-7297-5058-9ac7-8ccb4c13bdf5
@@ -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]="c1283400-0330-5c8d-b825-f1799796b105")}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]="32bb7025-07ac-5c7f-afe0-1a2ab2d529e0")}catch(e){}}();
3
3
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
4
- import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-TyCumcQ2.js";
5
- import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-Bby8M_TD.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-BpPIXvtA.js";
5
+ import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-ChbFP-Kk.js";
6
6
  import * as http from "node:http";
7
7
  //#region src/cli/runtime-scan/detect-local-runtime-urls.ts
8
8
  const LOCAL_HTTP_HOSTS = ["127.0.0.1", "::1"];
@@ -236,5 +236,5 @@ const promptRuntimeScanUrl = () => new Promise((resolve) => {
236
236
  //#endregion
237
237
  export { promptRuntimeScanUrl };
238
238
 
239
- //# sourceMappingURL=prompt-runtime-scan-url-CQXQBrZB.js.map
240
- //# debugId=c1283400-0330-5c8d-b825-f1799796b105
239
+ //# sourceMappingURL=prompt-runtime-scan-url-CwCGiK81.js.map
240
+ //# debugId=32bb7025-07ac-5c7f-afe0-1a2ab2d529e0
@@ -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]="4a416a4d-ed66-55dd-a9bd-8f047ea70891")}catch(e){}}();
3
- import { Un as isPlainObject } from "./record-metric-BF-mZetx.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]="457bfc8e-d8d4-5048-a261-33b112e3c467")}catch(e){}}();
3
+ import { Wn as isPlainObject } from "./record-metric-D0BrtuTp.js";
4
4
  import * as fs$1 from "node:fs";
5
5
  import { parseJSON5 } from "confbox";
6
6
  //#region src/cli/utils/read-object-file.ts
@@ -20,5 +20,5 @@ const readObjectFile = (filePath) => {
20
20
  //#endregion
21
21
  export { readObjectFile as t };
22
22
 
23
- //# sourceMappingURL=read-object-file-C4fMfbk6.js.map
24
- //# debugId=4a416a4d-ed66-55dd-a9bd-8f047ea70891
23
+ //# sourceMappingURL=read-object-file-BnU3NXPi.js.map
24
+ //# debugId=457bfc8e-d8d4-5048-a261-33b112e3c467
@@ -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]="09a0aa88-6a12-5c72-859f-38a2f7c48dca")}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]="88887e1d-7f16-561d-8a3b-29a4bab018ba")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-DHn5rUeg.js";
4
+ import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-Bwylqy0B.js";
5
5
  import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
6
6
  import { createRequire } from "node:module";
7
7
  import * as fs$1$2 from "node:fs";
@@ -88,7 +88,7 @@ const unwrapTypescriptExpression = (expression) => {
88
88
  return currentExpression;
89
89
  };
90
90
  //#endregion
91
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-D2Skzhl1.js
91
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-CSHedw9o.js
92
92
  var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
93
93
  const LINGUIST_ATTRIBUTES = ["linguist-generated", "linguist-vendored"];
94
94
  const DISABLED_ATTRIBUTE_VALUES = new Set([
@@ -526,7 +526,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
526
526
  return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
527
527
  };
528
528
  //#endregion
529
- //#region ../core/dist/detect-duplicate-jsx-subtrees-CzQouU4i.js
529
+ //#region ../core/dist/detect-duplicate-jsx-subtrees-Df5xaEva.js
530
530
  const yieldToEventLoop = () => new Promise((resolve) => {
531
531
  setImmediate(resolve);
532
532
  });
@@ -1083,7 +1083,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
1083
1083
  });
1084
1084
  };
1085
1085
  //#endregion
1086
- //#region ../core/dist/detect-react-compiler-DIKiMJ1N.js
1086
+ //#region ../core/dist/detect-react-compiler-CP4BcCz0.js
1087
1087
  const NEXT_CONFIG_FILENAMES = [
1088
1088
  "next.config.js",
1089
1089
  "next.config.mjs",
@@ -76919,6 +76919,7 @@ const GITHUB_ACTION_MARKER_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_GITHUB_ACTION";
76919
76919
  const ACTION_INPUT_ENVIRONMENT_VARIABLES = {
76920
76920
  blocking: "REACT_DOCTOR_ACTION_BLOCKING",
76921
76921
  comment: "REACT_DOCTOR_ACTION_COMMENT",
76922
+ commentOnClean: "REACT_DOCTOR_ACTION_COMMENT_ON_CLEAN",
76922
76923
  reviewComments: "REACT_DOCTOR_ACTION_REVIEW_COMMENTS",
76923
76924
  version: "REACT_DOCTOR_ACTION_VERSION"
76924
76925
  };
@@ -77094,7 +77095,7 @@ const makeNoopConsole = () => ({
77094
77095
  });
77095
77096
  //#endregion
77096
77097
  //#region src/cli/utils/version.ts
77097
- const VERSION = "0.9.17-dev.909b8e5";
77098
+ const VERSION = "0.9.17-dev.9e305df";
77098
77099
  //#endregion
77099
77100
  //#region src/cli/utils/json-mode.ts
77100
77101
  let context = null;
@@ -77436,7 +77437,7 @@ const recordDistribution = (name, value, options = {}) => {
77436
77437
  } catch {}
77437
77438
  };
77438
77439
  //#endregion
77439
- export { buildRuleSeverityControls as $, shouldUseMaintainabilityLayer as $t, Files as A, succeed$3 as An, highlighter as At, PerFileLintCacheEnabled as B, isDirectory as Bn, loadConfigWithSource as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, runSync as Cn, getDiffInfo as Ct, isCodingAgentEnvironment as D, buildWithScope as Dn, hasPublishedFixRecipe as Dt, isCiOrCodingAgentEnvironment as E, void_ as En, groupBy as Et, Linter as F, ParentSpan as Fn, isScanComplete as Ft, SidecarLintCacheEnabled as G, remainingDeadlineBudgetMs as Gt, Project as H, isFile as Hn, materializeSourceTree as Ht, Maintainability as I, isMonorepoRoot as In, layerObservability as It, anonymizeInPlace as J, resolveScanTarget as Jt, StagedFiles as K, resolveGithubActionsScoreMetadata as Kt, NodeResolver as L, yieldToEventLoop as Ln, listSourceFiles as Lt, InvocationCaches as M, makeUnsafe$5 as Mn, isProjectDiscoveryError as Mt, LEGACY_CONFIG_FILENAME as N, fail$5 as Nn, isReactDoctorError as Nt, Config as O, mergeAll$1 as On, hasSupportedFrameworkOrLibrary as Ot, LintPartialFailures as P, void_$1 as Pn, isSameRuleKey as Pt, buildRuleDocsUrl as Q, setColorEnabled as Qt, OxlintConcurrency as R, messageFromUnknown as Rn, listSourceFilesCooperative as Rt, isDebugFlagEnabled as S, runPromise as Sn, getDiagnosticRuleIdentity as St, isCiEnvironment as T, try_ as Tn, getRuleMetadata as Tt, Reporter as U, isPlainObject as Un, mergeAndFilterDiagnostics as Ut, Progress as V, isErrnoException as Vn, mapWithConcurrency as Vt, Score as W, mergeReactDoctorConfigs as Wt, atomicWriteJson as X, runInspect as Xt, anonymizeText as Y, restoreLegacyThrow as Yt, buildJsonReport as Z, scrubSensitivePaths as Zt, VERSION as _, orElseSucceed as _n, fingerprintDiagnosticEvidence as _t, isEnvFlagEnabled as a, Console as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, provideContext as bn, getBaselineDiffPlan as bt, setSentryProjectInfo as c, log as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, JsonReport as dn, detectAiTrainingEnvironment as dt, summarizeDiagnostics as en, buildSkippedChecks as et, setJsonReportDirectory as f, decodeUnknownSync as fn, discoverSupportedSubprojects as ft, writeJsonReport as g, map$3 as gn, findLegacyConfig as gt, writeJsonErrorReport as h, makeSpan$1 as hn, filterSourceFiles as ht, isTelemetryEnabled as i, warmOxlintWorkerPool as in, clearConfigCache as it, Git as j, close as jn, isPathInsideDirectory as jt, DIAGNOSTIC_DELTA_IDENTITY as k, provide$2 as kn, hashFileContents as kt, getRunId as l, warn$1 as ln, createInvocationCaches as lt, writeJsonCancellationReport as m, gen as mn, filterPathsOutsideDirectories as mt, recordDistribution as n, validateConfigTypes as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, error as on, computeConfigFingerprint as ot, setJsonReportMode as p, make$30 as pn, filterDiagnosticsForSurface as pt, SupplyChain as q, resolveLintBatchOrdering as qt, toSpanAttributes as r, warmDuplicateJsxWorker as rn, classifyFileContext as rt, buildSentryProjectContext as s, info as sn, computeDiagnosticDelta as st, recordCount as t, toRelativePath as tn, calculateScore as tt, enableJsonMode as u, Diagnostic as un, createOxlintSpawnSlots as ut, makeNoopConsole as v, promise as vn, formatErrorChain as vt, detectRunnerOs as w, sync as wn, getEquivalentRuleKeys as wt, isGitHookEnvironment as x, provideService as xn, getChangedLineRanges as xt, CliInputError as y, provide as yn, formatReactDoctorError as yt, OxlintSpawnSlots as z, toCanonicalPath as zn, listWorkspacePackages as zt };
77440
+ export { buildRuleSeverityControls as $, setColorEnabled as $t, Files as A, provide$2 as An, hashFileContents as At, PerFileLintCacheEnabled as B, toCanonicalPath as Bn, listWorkspacePackages as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, runPromise as Cn, getDiagnosticRuleIdentity as Ct, isCodingAgentEnvironment as D, void_ as Dn, groupBy as Dt, isCiOrCodingAgentEnvironment as E, try_ as En, getRuleMetadata as Et, Linter as F, void_$1 as Fn, isSameRuleKey as Ft, SidecarLintCacheEnabled as G, mergeReactDoctorConfigs as Gt, Project as H, isErrnoException as Hn, mapWithConcurrency as Ht, Maintainability as I, ParentSpan as In, isScanComplete as It, anonymizeInPlace as J, resolveLintBatchOrdering as Jt, StagedFiles as K, remainingDeadlineBudgetMs as Kt, NodeResolver as L, isMonorepoRoot as Ln, layerObservability as Lt, InvocationCaches as M, close as Mn, isPathInsideDirectory as Mt, LEGACY_CONFIG_FILENAME as N, makeUnsafe$5 as Nn, isProjectDiscoveryError as Nt, Config as O, buildWithScope as On, hasPublishedFixRecipe as Ot, LintPartialFailures as P, fail$5 as Pn, isReactDoctorError as Pt, buildRuleDocsUrl as Q, scrubSensitivePaths as Qt, OxlintConcurrency as R, yieldToEventLoop as Rn, listSourceFiles as Rt, isDebugFlagEnabled as S, provideService as Sn, getChangedLineRanges as St, isCiEnvironment as T, sync as Tn, getEquivalentRuleKeys as Tt, Reporter as U, isFile as Un, materializeSourceTree as Ut, Progress as V, isDirectory as Vn, loadConfigWithSource as Vt, Score as W, isPlainObject as Wn, mergeAndFilterDiagnostics as Wt, atomicWriteJson as X, restoreLegacyThrow as Xt, anonymizeText as Y, resolveScanTarget as Yt, buildJsonReport as Z, runInspect as Zt, VERSION as _, map$3 as _n, findLegacyConfig as _t, isEnvFlagEnabled as a, warmOxlintWorkerPool as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, provide as bn, formatReactDoctorError as bt, setSentryProjectInfo as c, info as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, Diagnostic as dn, detectAiTrainingEnvironment as dt, shouldUseMaintainabilityLayer as en, buildSkippedChecks as et, setJsonReportDirectory as f, JsonReport as fn, discoverSupportedSubprojects as ft, writeJsonReport as g, makeSpan$1 as gn, findGitRepositoryRoot as gt, writeJsonErrorReport as h, gen as hn, filterSourceFiles as ht, isTelemetryEnabled as i, warmDuplicateJsxWorker as in, clearConfigCache as it, Git as j, succeed$3 as jn, highlighter as jt, DIAGNOSTIC_DELTA_IDENTITY as k, mergeAll$1 as kn, hasSupportedFrameworkOrLibrary as kt, getRunId as l, log as ln, createInvocationCaches as lt, writeJsonCancellationReport as m, make$30 as mn, filterPathsOutsideDirectories as mt, recordDistribution as n, toRelativePath as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, Console as on, computeConfigFingerprint as ot, setJsonReportMode as p, decodeUnknownSync as pn, filterDiagnosticsForSurface as pt, SupplyChain as q, resolveGithubActionsScoreMetadata as qt, toSpanAttributes as r, validateConfigTypes as rn, classifyFileContext as rt, buildSentryProjectContext as s, error as sn, computeDiagnosticDelta as st, recordCount as t, summarizeDiagnostics as tn, calculateScore as tt, enableJsonMode as u, warn$1 as un, createOxlintSpawnSlots as ut, makeNoopConsole as v, orElseSucceed as vn, fingerprintDiagnosticEvidence as vt, detectRunnerOs as w, runSync as wn, getDiffInfo as wt, isGitHookEnvironment as x, provideContext as xn, getBaselineDiffPlan as xt, CliInputError as y, promise as yn, formatErrorChain as yt, OxlintSpawnSlots as z, messageFromUnknown as zn, listSourceFilesCooperative as zt };
77440
77441
 
77441
- //# sourceMappingURL=record-metric-BF-mZetx.js.map
77442
- //# debugId=09a0aa88-6a12-5c72-859f-38a2f7c48dca
77442
+ //# sourceMappingURL=record-metric-D0BrtuTp.js.map
77443
+ //# debugId=88887e1d-7f16-561d-8a3b-29a4bab018ba
@@ -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]="851e8b17-fe81-5e3b-a206-857fffdeea9d")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { Nt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-BF-mZetx.js";
5
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-CIvXRxWU.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]="bedd5dc0-3bff-5009-8b15-f653e882570c")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { Pt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-D0BrtuTp.js";
5
+ import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-D6M80Spe.js";
6
6
  import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
7
7
  //#region src/cli/utils/report-error.ts
8
8
  /**
@@ -61,5 +61,5 @@ const reportErrorToSentry = async (error) => {
61
61
  //#endregion
62
62
  export { reportErrorToSentry as t };
63
63
 
64
- //# sourceMappingURL=report-error-CbEOXeYl.js.map
65
- //# debugId=851e8b17-fe81-5e3b-a206-857fffdeea9d
64
+ //# sourceMappingURL=report-error-BpejEIx6.js.map
65
+ //# debugId=bedd5dc0-3bff-5009-8b15-f653e882570c
@@ -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]="7250d257-4929-5798-8e3f-73298c355bb4")}catch(e){}}();
3
- import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { t as recordCount } from "./record-metric-BF-mZetx.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-Bnc2OWDh.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]="51fe2de3-edb7-5509-8a43-c82ca18961aa")}catch(e){}}();
3
+ import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { t as recordCount } from "./record-metric-D0BrtuTp.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-Ch8oU6Iy.js";
6
6
  import { createRequire } from "node:module";
7
7
  import * as path$1 from "node:path";
8
8
  import { spawn } from "node:child_process";
@@ -274,7 +274,8 @@ const openUrl = (url) => new Promise((resolve) => {
274
274
  //#region src/cli/utils/report-workflow-result.ts
275
275
  const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
276
276
  if (result.status === "failed") {
277
- workflowSpinner.fail("Couldn't write the GitHub Actions workflow.");
277
+ if (result.error === "no-git-root") workflowSpinner.fail("Couldn't write the GitHub Actions workflow: no git repository found. Run this command from inside a git repository.");
278
+ else workflowSpinner.fail("Couldn't write the GitHub Actions workflow.");
278
279
  return false;
279
280
  }
280
281
  if (result.status === "exists") {
@@ -288,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
288
289
  //#endregion
289
290
  export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, loadAgentInstall as g, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
290
291
 
291
- //# sourceMappingURL=report-workflow-result-CuvRvHHO.js.map
292
- //# debugId=7250d257-4929-5798-8e3f-73298c355bb4
292
+ //# sourceMappingURL=report-workflow-result-6xRBSzzc.js.map
293
+ //# debugId=51fe2de3-edb7-5509-8a43-c82ca18961aa
@@ -1,18 +1,18 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d090db70-29d2-5b66-bac7-429e74996ce1")}catch(e){}}();
3
- import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-DHn5rUeg.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DDlh_f1u.js";
5
- import { $ as buildRuleSeverityControls, $t as shouldUseMaintainabilityLayer, A as Files, An as succeed, At as highlighter, B as PerFileLintCacheEnabled, Bn as isDirectory, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runSync, Dt as hasPublishedFixRecipe, E as isCiOrCodingAgentEnvironment, Et as groupBy, F as Linter, Fn as ParentSpan, Ft as isScanComplete, G as SidecarLintCacheEnabled, Gt as remainingDeadlineBudgetMs, H as Project, Hn as isFile, Ht as materializeSourceTree, I as Maintainability, In as isMonorepoRoot, Jt as resolveScanTarget, Kt as resolveGithubActionsScoreMetadata, L as NodeResolver, Ln as yieldToEventLoop, Lt as listSourceFiles, M as InvocationCaches, Nt as isReactDoctorError, O as Config, On as mergeAll, P as LintPartialFailures, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rt as listSourceFilesCooperative, Sn as runPromise, St as getDiagnosticRuleIdentity, T as isCiEnvironment, Tn as try_, Tt as getRuleMetadata, U as Reporter, Ut as mergeAndFilterDiagnostics, V as Progress, Vt as mapWithConcurrency, W as Score, Wt as mergeReactDoctorConfigs, X as atomicWriteJson, Xt as runInspect, Yt as restoreLegacyThrow, _ as VERSION, _n as orElseSucceed, _t as fingerprintDiagnosticEvidence, an as Console, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provideContext, cn as log, ct as countOptInProjectRuleSelections, d as isJsonModeActive, en as summarizeDiagnostics, et as buildSkippedChecks, fn as decodeUnknownSync, ft as discoverSupportedSubprojects, gn as map, ht as filterSourceFiles, in as warmOxlintWorkerPool, j as Git, jt as isPathInsideDirectory, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hashFileContents, l as getRunId, ln as warn, lt as createInvocationCaches, mn as gen, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as error, ot as computeConfigFingerprint, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveLintBatchOrdering, r as toSpanAttributes, rn as warmDuplicateJsxWorker, rt as classifyFileContext, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, un as Diagnostic, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as promise, w as detectRunnerOs, wn as sync, xn as provideService, y as CliInputError, yn as provide, z as OxlintSpawnSlots, zt as listWorkspacePackages } from "./record-metric-BF-mZetx.js";
6
- import { t as getTelemetryContext } from "./telemetry-runtime-CIvXRxWU.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]="46f09a93-81c0-56f4-9fd2-f2e2328b2e82")}catch(e){}}();
3
+ import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-Bwylqy0B.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-BvdYcw6Q.js";
5
+ import { $ as buildRuleSeverityControls, A as Files, At as hashFileContents, B as PerFileLintCacheEnabled, Bt as listWorkspacePackages, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runPromise, Ct as getDiagnosticRuleIdentity, Dt as groupBy, E as isCiOrCodingAgentEnvironment, En as try_, Et as getRuleMetadata, F as Linter, G as SidecarLintCacheEnabled, Gt as mergeReactDoctorConfigs, H as Project, Ht as mapWithConcurrency, I as Maintainability, In as ParentSpan, It as isScanComplete, Jt as resolveLintBatchOrdering, Kt as remainingDeadlineBudgetMs, L as NodeResolver, Ln as isMonorepoRoot, M as InvocationCaches, Mt as isPathInsideDirectory, O as Config, Ot as hasPublishedFixRecipe, P as LintPartialFailures, Pt as isReactDoctorError, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rn as yieldToEventLoop, Rt as listSourceFiles, Sn as provideService, T as isCiEnvironment, Tn as sync, U as Reporter, Un as isFile, Ut as materializeSourceTree, V as Progress, Vn as isDirectory, W as Score, Wt as mergeAndFilterDiagnostics, X as atomicWriteJson, Xt as restoreLegacyThrow, Yt as resolveScanTarget, Zt as runInspect, _ as VERSION, _n as map, an as warmOxlintWorkerPool, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provide, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as Diagnostic, en as shouldUseMaintainabilityLayer, et as buildSkippedChecks, ft as discoverSupportedSubprojects, hn as gen, ht as filterSourceFiles, in as warmDuplicateJsxWorker, j as Git, jn as succeed, jt as highlighter, k as DIAGNOSTIC_DELTA_IDENTITY, kn as mergeAll, l as getRunId, ln as log, lt as createInvocationCaches, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as Console, ot as computeConfigFingerprint, pn as decodeUnknownSync, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveGithubActionsScoreMetadata, r as toSpanAttributes, rt as classifyFileContext, sn as error, st as computeDiagnosticDelta, t as recordCount, tn as summarizeDiagnostics, tt as calculateScore, un as warn, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as orElseSucceed, vt as fingerprintDiagnosticEvidence, w as detectRunnerOs, wn as runSync, xn as provideContext, y as CliInputError, yn as promise, z as OxlintSpawnSlots, zt as listSourceFilesCooperative } from "./record-metric-D0BrtuTp.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-D6M80Spe.js";
7
7
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
8
- import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-ChT26nqL.js";
8
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-Cd3uiJVP.js";
9
9
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
10
10
  import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
11
- import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DgDM0cVD.js";
12
- import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-Bnc2OWDh.js";
13
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-COovJzkm.js";
14
- import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-avP9eKOT.js";
15
- import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-CuvRvHHO.js";
11
+ import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DU9kPKoM.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-Ch8oU6Iy.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-DLRpCs60.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-DqJ3pijm.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-6xRBSzzc.js";
16
16
  import { createRequire } from "node:module";
17
17
  import * as fs$2 from "node:fs";
18
18
  import fs, { mkdtempSync, rmSync } from "node:fs";
@@ -531,6 +531,7 @@ const buildActionAttributes = () => {
531
531
  actorAssociation: githubActorAssociation,
532
532
  runnerOs: detectRunnerOs(),
533
533
  comment: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.comment),
534
+ commentOnClean: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.commentOnClean),
534
535
  reviewComments: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.reviewComments),
535
536
  versionPin: resolveVersionPin(process.env[ACTION_INPUT_ENVIRONMENT_VARIABLES.version])
536
537
  });
@@ -3160,15 +3161,18 @@ const validateModeFlags = (flags) => {
3160
3161
  //#region src/cli/utils/format-skipped-projects-message.ts
3161
3162
  const formatSkippedProjectsMessage = (projectCount) => `${projectCount} ${projectCount === 1 ? "project was" : "projects were"} skipped because the max scan duration was reached.`;
3162
3163
  //#endregion
3163
- //#region src/cli/utils/should-fail-scan-gate.ts
3164
- const shouldFailScanGate = (input) => {
3165
- if (input.blockingLevel === "none") return false;
3166
- if (input.scans.some(({ result }) => hasLintHardFailure(result))) return true;
3167
- if (input.diagnosticsAreGateExempt === true) return false;
3168
- return shouldBlockCi(filterScansForSurface(input.scans, "ciFailure"), input.blockingLevel);
3164
+ //#region src/cli/utils/resolve-scan-exit-code.ts
3165
+ const resolveScanExitCode = (input) => {
3166
+ if (input.blockingLevel === "none") return 0;
3167
+ if (input.scans.some(({ result }) => hasLintHardFailure(result))) return 1;
3168
+ if (input.diagnosticsAreGateExempt === true) return 0;
3169
+ const diagnostics = filterScansForSurface(input.scans, "ciFailure");
3170
+ if (shouldBlockCi(diagnostics, input.blockingLevel)) return 1;
3171
+ if (diagnostics.some((diagnostic) => diagnostic.severity === "warning")) return input.warningExitCode ?? 0;
3172
+ return 0;
3169
3173
  };
3170
3174
  //#endregion
3171
- export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, shouldFailScanGate as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
3175
+ export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, resolveScanExitCode as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
3172
3176
 
3173
- //# sourceMappingURL=should-fail-scan-gate-DYgwcl3R.js.map
3174
- //# debugId=d090db70-29d2-5b66-bac7-429e74996ce1
3177
+ //# sourceMappingURL=resolve-scan-exit-code-Cx8B2KkA.js.map
3178
+ //# debugId=46f09a93-81c0-56f4-9fd2-f2e2328b2e82