react-doctor 0.9.17-dev.d53c820 → 0.9.17-dev.e5824ab

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 (39) hide show
  1. package/README.md +13 -75
  2. package/dist/{build-section-divider-mPyooBVO.js → build-section-divider-BvWStXZT.js} +5 -5
  3. package/dist/{ci-CDBHqfYG.js → ci-B3EXDmGx.js} +18 -14
  4. package/dist/cli.js +40 -31
  5. package/dist/{constants-DE6ZPzRQ.js → constants-Bwylqy0B.js} +4 -3
  6. package/dist/{design-B5aMxYtk.js → design-C6pza_lh.js} +4 -4
  7. package/dist/{exit-gracefully-C6Xklxva.js → exit-gracefully-DjwcaDkF.js} +6 -6
  8. package/dist/{handle-error-Cs7xvCCc.js → handle-error-Cc1ONOq1.js} +6 -6
  9. package/dist/index.js +2 -2
  10. package/dist/{inspect-BSt0OzPi.js → inspect-B8QiH-71.js} +22 -19
  11. package/dist/{install-liNE2e09.js → install-DPsNfeQL.js} +10 -10
  12. package/dist/{install-doctor-script-BY2_SO4T.js → install-doctor-script-uKy8WNPG.js} +5 -5
  13. package/dist/{install-github-workflow-B_0ggtk5.js → install-github-workflow-ChR6VULy.js} +21 -8
  14. package/dist/{install-react-doctor-HZ33mZuN.js → install-react-doctor-C7FZ1hxH.js} +9 -9
  15. package/dist/{is-cache-globally-disabled-BlQ5D5mG.js → is-cache-globally-disabled-BvdYcw6Q.js} +4 -4
  16. package/dist/{jsx-runtime-BOmpdIb8.js → jsx-runtime-NfZL2AEa.js} +6 -6
  17. package/dist/{print-branded-header-BEyy-njw.js → print-branded-header-D2d8Bfcm.js} +4 -4
  18. package/dist/{prompt-runtime-scan-url-BTmc6Uhn.js → prompt-runtime-scan-url-B6VpWLrO.js} +5 -5
  19. package/dist/{read-object-file-Bc3ShhpO.js → read-object-file-tfINaYmT.js} +4 -4
  20. package/dist/{record-metric-SSOgmYYk.js → record-metric-WYz8XBJa.js} +6 -6
  21. package/dist/{report-error-CD2BAIQw.js → report-error-D24s4gkF.js} +6 -6
  22. package/dist/{report-workflow-result-BDJYQhAS.js → report-workflow-result-CRbM1ram.js} +8 -7
  23. package/dist/{should-fail-scan-gate-Djv3Z7zB.js → resolve-scan-exit-code-BEK4CXPw.js} +23 -20
  24. package/dist/{resolve-scope-Euu3zHFr.js → resolve-scope-Cv_Me7y1.js} +6 -6
  25. package/dist/{rules-CaWtmMin.js → rules-Cd67UhCy.js} +7 -7
  26. package/dist/{run-scan-app-COcv8esj.js → run-scan-app-BOCHwyqM.js} +27 -19
  27. package/dist/{runtime-scan-B1LdiY9f.js → runtime-scan-CMUREbMO.js} +10 -10
  28. package/dist/{sanitize-runtime-url-X7mid977.js → sanitize-runtime-url-BjHodu3g.js} +4 -4
  29. package/dist/{scan-CWzdISJH.js → scan-CefqjPaB.js} +14 -13
  30. package/dist/{should-skip-prompts-BUEmDKNC.js → should-skip-prompts-CYBYj_W6.js} +4 -4
  31. package/dist/{should-use-tui-DlQaNspH.js → should-use-tui-DHW5ayPr.js} +4 -4
  32. package/dist/skills/react-doctor/SKILL.md +4 -0
  33. package/dist/{start-scan-preamble-Dz6998T6.js → start-scan-preamble-2uz0joCl.js} +5 -5
  34. package/dist/start-scan-preamble.js +3 -3
  35. package/dist/{telemetry-runtime-AXAW_m3T.js → telemetry-runtime-B7Ny-hNG.js} +7 -7
  36. package/dist/{version-Br3Bp1lG.js → version-DsQsUoTk.js} +5 -5
  37. package/dist/{why-BW7dhwvf.js → why-_WLdGIYL.js} +4 -4
  38. package/dist/{with-run-span-nm2yVq-0.js → with-run-span-D_6AyrpM.js} +6 -6
  39. 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]="cd81555f-b10e-5a04-82ac-c7b257945b13")}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 { 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-SSOgmYYk.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-AXAW_m3T.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-Cs7xvCCc.js";
7
- import { t as reportErrorToSentry } from "./report-error-CD2BAIQw.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]="a1250725-5a41-5204-8e17-959548fd7354")}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-WYz8XBJa.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-B7Ny-hNG.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-Cc1ONOq1.js";
7
+ import { t as reportErrorToSentry } from "./report-error-D24s4gkF.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-BY2_SO4T.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-B_0ggtk5.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-Euu3zHFr.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-BUEmDKNC.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-Djv3Z7zB.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-BDJYQhAS.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-HZ33mZuN.js";
16
- import { t as readObjectFile } from "./read-object-file-Bc3ShhpO.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-uKy8WNPG.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-ChR6VULy.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-Cv_Me7y1.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CYBYj_W6.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-BEK4CXPw.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-CRbM1ram.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-C7FZ1hxH.js";
16
+ import { t as readObjectFile } from "./read-object-file-tfINaYmT.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-BSt0OzPi.js.map
1524
- //# debugId=cd81555f-b10e-5a04-82ac-c7b257945b13
1526
+ //# sourceMappingURL=inspect-B8QiH-71.js.map
1527
+ //# debugId=a1250725-5a41-5204-8e17-959548fd7354
@@ -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]="a5000801-93f3-5195-b63f-2fb2ffb445ad")}catch(e){}}();
3
- import { u as METRIC } from "./constants-DE6ZPzRQ.js";
4
- import { Cn as runSync, t as recordCount } from "./record-metric-SSOgmYYk.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-AXAW_m3T.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-Cs7xvCCc.js";
7
- import { t as reportErrorToSentry } from "./report-error-CD2BAIQw.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-BEyy-njw.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-HZ33mZuN.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]="a26755c2-c694-5c89-8bb9-d1bc63caf3ff")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { t as recordCount, wn as runSync } from "./record-metric-WYz8XBJa.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-B7Ny-hNG.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-Cc1ONOq1.js";
7
+ import { t as reportErrorToSentry } from "./report-error-D24s4gkF.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-D2d8Bfcm.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-C7FZ1hxH.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-liNE2e09.js.map
34
- //# debugId=a5000801-93f3-5195-b63f-2fb2ffb445ad
33
+ //# sourceMappingURL=install-DPsNfeQL.js.map
34
+ //# debugId=a26755c2-c694-5c89-8bb9-d1bc63caf3ff
@@ -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]="1d326ad7-4da7-5d86-8611-29861f61fac2")}catch(e){}}();
3
- import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-DE6ZPzRQ.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-SSOgmYYk.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]="eff22a0f-8e9a-5873-9156-a82213782ae4")}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-WYz8XBJa.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-BY2_SO4T.js.map
2822
- //# debugId=1d326ad7-4da7-5d86-8611-29861f61fac2
2821
+ //# sourceMappingURL=install-doctor-script-uKy8WNPG.js.map
2822
+ //# debugId=eff22a0f-8e9a-5873-9156-a82213782ae4
@@ -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]="22f06419-de5b-5296-8977-87dd0179a934")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } 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]="26b14cfe-df2a-5603-8a49-cb27fb10e85c")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-Bwylqy0B.js";
4
+ import { gt as findGitRepositoryRoot } from "./record-metric-WYz8XBJa.js";
4
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
5
- import { N as cliLogger } from "./install-doctor-script-BY2_SO4T.js";
6
+ import { N as cliLogger } from "./install-doctor-script-uKy8WNPG.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";
@@ -198,7 +199,12 @@ jobs:
198
199
  # directory: apps/web # Scan a sub-directory (default: ".")
199
200
  # project: "web,admin" # In a monorepo, scan specific workspace project(s)
200
201
  `;
201
- 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
+ };
202
208
  const isReactDoctorWorkflowInstalled = (projectRoot) => fs$1.existsSync(getReactDoctorWorkflowPath(projectRoot));
203
209
  const V1_FLOATING_ACTION_REF = String.raw`millionco/react-doctor@v1(?![\w.])`;
204
210
  const V2_FLOATING_ACTION_REF = "millionco/react-doctor@v2";
@@ -222,7 +228,13 @@ const upgradeWorkflowActionToV2 = (content) => {
222
228
  };
223
229
  };
224
230
  const installReactDoctorWorkflow = (projectRoot, defaultBranch = "main") => {
225
- 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);
226
238
  if (fs$1.existsSync(workflowPath)) return {
227
239
  status: "exists",
228
240
  workflowPath
@@ -237,7 +249,8 @@ const installReactDoctorWorkflow = (projectRoot, defaultBranch = "main") => {
237
249
  } catch {
238
250
  return {
239
251
  status: "failed",
240
- workflowPath
252
+ workflowPath,
253
+ error: "write-failed"
241
254
  };
242
255
  }
243
256
  };
@@ -268,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
268
281
  //#endregion
269
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 };
270
283
 
271
- //# sourceMappingURL=install-github-workflow-B_0ggtk5.js.map
272
- //# debugId=22f06419-de5b-5296-8977-87dd0179a934
284
+ //# sourceMappingURL=install-github-workflow-ChR6VULy.js.map
285
+ //# debugId=26b14cfe-df2a-5603-8a49-cb27fb10e85c
@@ -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]="edcce201-4ba4-52b4-b171-e4e302faa42d")}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 { At as highlighter, Vn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-SSOgmYYk.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-BY2_SO4T.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-B_0ggtk5.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-BUEmDKNC.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-BDJYQhAS.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]="12734b0f-9f94-5080-aa6e-6f73515b2f67")}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-WYz8XBJa.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-uKy8WNPG.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-ChR6VULy.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CYBYj_W6.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-CRbM1ram.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-HZ33mZuN.js.map
1160
- //# debugId=edcce201-4ba4-52b4-b171-e4e302faa42d
1159
+ //# sourceMappingURL=install-react-doctor-C7FZ1hxH.js.map
1160
+ //# debugId=12734b0f-9f94-5080-aa6e-6f73515b2f67
@@ -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
@@ -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]="7221635c-883e-5b21-a29b-c1ff87fa1bc0")}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]="7112b332-c0e4-5023-aa59-9345e09e2a70")}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-DE6ZPzRQ.js";
5
- import { t as recordCount } from "./record-metric-SSOgmYYk.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-C6Xklxva.js";
4
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
5
+ import { t as recordCount } from "./record-metric-WYz8XBJa.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-DjwcaDkF.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-BOmpdIb8.js.map
25874
- //# debugId=7221635c-883e-5b21-a29b-c1ff87fa1bc0
25873
+ //# sourceMappingURL=jsx-runtime-NfZL2AEa.js.map
25874
+ //# debugId=7112b332-c0e4-5023-aa59-9345e09e2a70
@@ -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]="b2a379b3-9737-5e48-a2af-b4fbec9666a8")}catch(e){}}();
3
- import { At as highlighter, _ as VERSION, cn as log, mn as gen } from "./record-metric-SSOgmYYk.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]="8e34c33a-948a-5189-be8c-25afb48831ab")}catch(e){}}();
3
+ import { _ as VERSION, hn as gen, jt as highlighter, ln as log } from "./record-metric-WYz8XBJa.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-BEyy-njw.js.map
22
- //# debugId=b2a379b3-9737-5e48-a2af-b4fbec9666a8
21
+ //# sourceMappingURL=print-branded-header-D2d8Bfcm.js.map
22
+ //# debugId=8e34c33a-948a-5189-be8c-25afb48831ab
@@ -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]="738bcb9d-67ea-5bd0-8d36-72eec5401c8a")}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]="a68fa5d2-1c44-5999-89b9-167856e7fb92")}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-X7mid977.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-BOmpdIb8.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-BjHodu3g.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-NfZL2AEa.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-BTmc6Uhn.js.map
240
- //# debugId=738bcb9d-67ea-5bd0-8d36-72eec5401c8a
239
+ //# sourceMappingURL=prompt-runtime-scan-url-B6VpWLrO.js.map
240
+ //# debugId=a68fa5d2-1c44-5999-89b9-167856e7fb92
@@ -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]="d8347e76-a870-5c87-9df0-a5422d45ecea")}catch(e){}}();
3
- import { Un as isPlainObject } from "./record-metric-SSOgmYYk.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]="c08d0f07-be87-5a22-8fc9-433d24474ea3")}catch(e){}}();
3
+ import { Wn as isPlainObject } from "./record-metric-WYz8XBJa.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-Bc3ShhpO.js.map
24
- //# debugId=d8347e76-a870-5c87-9df0-a5422d45ecea
23
+ //# sourceMappingURL=read-object-file-tfINaYmT.js.map
24
+ //# debugId=c08d0f07-be87-5a22-8fc9-433d24474ea3
@@ -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]="40e18411-b7aa-5376-9cee-94a0445869ad")}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]="b6710a6f-9c58-52bf-9a50-ff95f7cd41c5")}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-DE6ZPzRQ.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";
@@ -77095,7 +77095,7 @@ const makeNoopConsole = () => ({
77095
77095
  });
77096
77096
  //#endregion
77097
77097
  //#region src/cli/utils/version.ts
77098
- const VERSION = "0.9.17-dev.d53c820";
77098
+ const VERSION = "0.9.17-dev.e5824ab";
77099
77099
  //#endregion
77100
77100
  //#region src/cli/utils/json-mode.ts
77101
77101
  let context = null;
@@ -77437,7 +77437,7 @@ const recordDistribution = (name, value, options = {}) => {
77437
77437
  } catch {}
77438
77438
  };
77439
77439
  //#endregion
77440
- 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 };
77441
77441
 
77442
- //# sourceMappingURL=record-metric-SSOgmYYk.js.map
77443
- //# debugId=40e18411-b7aa-5376-9cee-94a0445869ad
77442
+ //# sourceMappingURL=record-metric-WYz8XBJa.js.map
77443
+ //# debugId=b6710a6f-9c58-52bf-9a50-ff95f7cd41c5
@@ -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]="52d38ee3-8912-5195-ade9-7cd90e9ac19f")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-DE6ZPzRQ.js";
4
- import { Nt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-SSOgmYYk.js";
5
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-AXAW_m3T.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]="c886c745-5e5e-52d7-a02e-5612642a405d")}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-WYz8XBJa.js";
5
+ import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-B7Ny-hNG.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-CD2BAIQw.js.map
65
- //# debugId=52d38ee3-8912-5195-ade9-7cd90e9ac19f
64
+ //# sourceMappingURL=report-error-D24s4gkF.js.map
65
+ //# debugId=c886c745-5e5e-52d7-a02e-5612642a405d
@@ -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]="6be5b7b9-7b38-56a1-8eb2-e07537330120")}catch(e){}}();
3
- import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-DE6ZPzRQ.js";
4
- import { t as recordCount } from "./record-metric-SSOgmYYk.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-B_0ggtk5.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]="1aa8c960-f3e4-5177-b9af-975c8b498315")}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-WYz8XBJa.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-ChR6VULy.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-BDJYQhAS.js.map
292
- //# debugId=6be5b7b9-7b38-56a1-8eb2-e07537330120
292
+ //# sourceMappingURL=report-workflow-result-CRbM1ram.js.map
293
+ //# debugId=1aa8c960-f3e4-5177-b9af-975c8b498315
@@ -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]="66f7924f-e729-5658-bc9c-c7c507140267")}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-DE6ZPzRQ.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-BlQ5D5mG.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-SSOgmYYk.js";
6
- import { t as getTelemetryContext } from "./telemetry-runtime-AXAW_m3T.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]="b490ac47-cd65-56aa-9059-9172c9355bca")}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-WYz8XBJa.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-B7Ny-hNG.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-mPyooBVO.js";
8
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-BvWStXZT.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-BY2_SO4T.js";
12
- import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-B_0ggtk5.js";
13
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-Euu3zHFr.js";
14
- import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-nm2yVq-0.js";
15
- import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-BDJYQhAS.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-uKy8WNPG.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-ChR6VULy.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-Cv_Me7y1.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-D_6AyrpM.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-CRbM1ram.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";
@@ -3161,15 +3161,18 @@ const validateModeFlags = (flags) => {
3161
3161
  //#region src/cli/utils/format-skipped-projects-message.ts
3162
3162
  const formatSkippedProjectsMessage = (projectCount) => `${projectCount} ${projectCount === 1 ? "project was" : "projects were"} skipped because the max scan duration was reached.`;
3163
3163
  //#endregion
3164
- //#region src/cli/utils/should-fail-scan-gate.ts
3165
- const shouldFailScanGate = (input) => {
3166
- if (input.blockingLevel === "none") return false;
3167
- if (input.scans.some(({ result }) => hasLintHardFailure(result))) return true;
3168
- if (input.diagnosticsAreGateExempt === true) return false;
3169
- 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;
3170
3173
  };
3171
3174
  //#endregion
3172
- 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 };
3173
3176
 
3174
- //# sourceMappingURL=should-fail-scan-gate-Djv3Z7zB.js.map
3175
- //# debugId=66f7924f-e729-5658-bc9c-c7c507140267
3177
+ //# sourceMappingURL=resolve-scan-exit-code-BEK4CXPw.js.map
3178
+ //# debugId=b490ac47-cd65-56aa-9059-9172c9355bca
@@ -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]="c0793e0e-12f1-5e2f-a44a-9097b3c38eb1")}catch(e){}}();
3
- import { ht as filterSourceFiles, jt as isPathInsideDirectory, zn as toCanonicalPath } from "./record-metric-SSOgmYYk.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]="7dcd025d-9aca-55d1-96d1-f9096c8995b3")}catch(e){}}();
3
+ import { Bn as toCanonicalPath, Mt as isPathInsideDirectory, ht as filterSourceFiles } from "./record-metric-WYz8XBJa.js";
4
4
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
5
- import { N as cliLogger } from "./install-doctor-script-BY2_SO4T.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-B_0ggtk5.js";
5
+ import { N as cliLogger } from "./install-doctor-script-uKy8WNPG.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-ChR6VULy.js";
7
7
  import * as path$1 from "node:path";
8
8
  //#region src/cli/utils/open-workflow-pull-request.ts
9
9
  const NEW_BRANCH_PREFIX = "react-doctor/add-github-actions";
@@ -333,5 +333,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
333
333
  //#endregion
334
334
  export { isValidBlockingLevel as a, openWorkflowPullRequest as c, warnDeprecatedDiff as i, stageWorkflowFile as l, isScopeValue as n, pickBlockingLevel as o, resolveScope as r, resolveBlockingLevel as s, finalizeScope as t };
335
335
 
336
- //# sourceMappingURL=resolve-scope-Euu3zHFr.js.map
337
- //# debugId=c0793e0e-12f1-5e2f-a44a-9097b3c38eb1
336
+ //# sourceMappingURL=resolve-scope-Cv_Me7y1.js.map
337
+ //# debugId=7dcd025d-9aca-55d1-96d1-f9096c8995b3
@@ -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]="acea108d-7b0b-527b-b97e-95591a559a3d")}catch(e){}}();
3
- import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-DE6ZPzRQ.js";
4
- import { At as highlighter, Bt as loadConfigWithSource, Pt as isSameRuleKey, Q as buildRuleDocsUrl, Un as isPlainObject, it as clearConfigCache, nn as validateConfigTypes, t as recordCount, wt as getEquivalentRuleKeys } from "./record-metric-SSOgmYYk.js";
5
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BY2_SO4T.js";
6
- import { t as readObjectFile } from "./read-object-file-Bc3ShhpO.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]="c0d56e2a-0641-50c7-8287-77dc6389bd22")}catch(e){}}();
3
+ import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { Ft as isSameRuleKey, Q as buildRuleDocsUrl, Tt as getEquivalentRuleKeys, Vt as loadConfigWithSource, Wn as isPlainObject, it as clearConfigCache, jt as highlighter, rn as validateConfigTypes, t as recordCount } from "./record-metric-WYz8XBJa.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-uKy8WNPG.js";
6
+ import { t as readObjectFile } from "./read-object-file-tfINaYmT.js";
7
7
  import * as fs$1 from "node:fs";
8
8
  import * as path$1 from "node:path";
9
9
  import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
@@ -578,5 +578,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
578
578
  //#endregion
579
579
  export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
580
580
 
581
- //# sourceMappingURL=rules-CaWtmMin.js.map
582
- //# debugId=acea108d-7b0b-527b-b97e-95591a559a3d
581
+ //# sourceMappingURL=rules-Cd67UhCy.js.map
582
+ //# debugId=c0d56e2a-0641-50c7-8287-77dc6389bd22