react-doctor 0.9.11 → 0.9.12-dev.8c2f03a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +1 -1
  2. package/bin/react-doctor.js +1 -9
  3. package/dist/{build-section-divider-sLcWe1hO.js → build-section-divider-DuozMmwU.js} +9 -10
  4. package/dist/{ci-DsrrD52i.js → ci-Bwd2LJZC.js} +12 -12
  5. package/dist/cli.js +29 -30
  6. package/dist/{design-CP25gyyg.js → design-Q4Umr_4T.js} +4 -4
  7. package/dist/{devtools-DPRVRu3S.js → devtools-D8NTVj81.js} +4 -4
  8. package/dist/{exit-gracefully-CVVkBxDS.js → exit-gracefully-vUI1H1zC.js} +6 -6
  9. package/dist/index.d.ts +36 -59
  10. package/dist/index.js +54539 -54310
  11. package/dist/{inspect-D6y8oLtg.js → inspect-RxIsB8bi.js} +20 -20
  12. package/dist/{install-afMFGeTB.js → install-CI0nvC_v.js} +8 -8
  13. package/dist/{install-doctor-script-Be7Mv3-l.js → install-doctor-script-BAmTZygh.js} +4 -4
  14. package/dist/{install-github-workflow-Dev2F6Ea.js → install-github-workflow-Dg2sosDx.js} +6 -6
  15. package/dist/{install-react-doctor-DIPVunY4.js → install-react-doctor-CIJcnTik.js} +8 -8
  16. package/dist/{print-branded-header-D5jLdo4p.js → print-branded-header-kwnSGrfR.js} +4 -4
  17. package/dist/project-analysis-worker.d.ts +1 -0
  18. package/dist/project-analysis-worker.js +51900 -0
  19. package/dist/{read-object-file-CEh1CqnD.js → read-object-file-m5uVvcBp.js} +4 -4
  20. package/dist/{record-metric-CJxSHfJD.js → record-metric-DospZkfP.js} +3093 -6149
  21. package/dist/{report-error-CAEixMg1.js → report-error-CAp5cil9.js} +5 -5
  22. package/dist/{report-workflow-result-C0jbKH8p.js → report-workflow-result-D0GvvJtT.js} +5 -5
  23. package/dist/{resolve-scope-DS7rcRRz.js → resolve-scope-eXawiGEH.js} +6 -6
  24. package/dist/{rules-BJynymuU.js → rules-C_xYDSz8.js} +6 -6
  25. package/dist/{run-scan-app-BGzlyiIB.js → run-scan-app-CeNk17wq.js} +189 -145
  26. package/dist/{scan-CgPRG6_z.js → scan-DIwsgV6M.js} +8 -8
  27. package/dist/semver-DFtnEmN-.js +3219 -0
  28. package/dist/{should-fail-scan-gate-4jf7ZRdL.js → should-fail-scan-gate-BWTNIU5h.js} +186 -91
  29. package/dist/{should-skip-prompts-C78r7Ww7.js → should-skip-prompts-oK3MwWyB.js} +4 -4
  30. package/dist/{unref-stdin-Dc8ipkaw.js → unref-stdin-BGZVK4sJ.js} +6 -12
  31. package/dist/{version-DDrwsTas.js → version-9-2T2YQf.js} +4 -4
  32. package/dist/{why-BRNrKY1b.js → why-BOiuB_qy.js} +4 -4
  33. package/package.json +6 -12
  34. package/dist/chunk-q7NCDQ7-.js +0 -28
  35. package/dist/lsp.js +0 -81114
@@ -1,17 +1,17 @@
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]="c10e3989-ba7b-535c-8f02-46fab9d4a049")}catch(e){}}();
3
- import { Cn as mapWithConcurrency, Dn as remainingDeadlineBudgetMs, En as messageFromUnknown, F as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, G as isCiOrCodingAgentEnvironment, Gt as discoverReactSubprojects, K as isCodingAgentEnvironment, Mn as resolveScanTarget, Nt as buildJsonReport, Ot as StagedFiles, P as STAGED_FILES_TEMP_DIR_PREFIX, Qt as getBaselineDiffPlan, R as CliInputError, Tt as STAGED_FILES_PROJECT_CONFIG_FILENAMES, V as isDebugFlagEnabled, Wt as detectAiTrainingEnvironment, Xn as gen, Y as CANONICAL_GITHUB_URL, Yt as findLegacyConfig, cn as highlighter, ct as Git, dr as provide, en as getChangedLineRanges, f as setJsonReportDirectory, g as VERSION, h as writeJsonReport, ir as runPromise, m as writeJsonErrorReport, mn as isPlainObject, n as recordDistribution, nn as getDiffInfo, on as hasReactRuntime, p as setJsonReportMode, pn as isPathInsideDirectory, t as recordCount, tr as provide$1, u as enableJsonMode, un as isErrnoException, w as METRIC, xn as listWorkspacePackages, zn as toRelativePath } from "./record-metric-CJxSHfJD.js";
4
- import { c as isExpectedUserError, s as shutdownTelemetry } from "./unref-stdin-Dc8ipkaw.js";
5
- import { i as flushSentry } from "./build-section-divider-sLcWe1hO.js";
6
- import { n as handleError, r as handleUserError, t as reportErrorToSentry } from "./report-error-CAEixMg1.js";
7
- import { F as runGitRaw, L as cliLogger, c as spinner, i as hasDoctorScript, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-Be7Mv3-l.js";
8
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-Dev2F6Ea.js";
9
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope, u as toForwardSlashes } from "./resolve-scope-DS7rcRRz.js";
10
- import { t as shouldSkipPrompts } from "./should-skip-prompts-C78r7Ww7.js";
11
- import { A as resolveMergeBaseRef, B as buildEmptyReportMessage, C as copyToClipboard, D as deduplicateProjectScans, E as collectProjectSourceFileCounts, F as printDiagnosticsDump, O as createInvocationInspect, R as filterDiagnosticsByCategories, S as CLI_AGENT_BINARIES, T as buildHandoffPayload, _ as resolveCliInspectOptions, a as projectManifestChanged, b as setUpGitHubActions, c as selectProjects, d as resolveProjectChangedLineRanges, f as resolveProjectDiffIncludePaths, g as resolveWorkspaceDeadCodeOwner, h as retryMissingProjectScores, i as validateModeFlags, j as printHeadlessReport, k as inspect, l as buildCodeFrame, m as resolveProjectRelativeDirectory, n as formatSkippedProjectsMessage, o as partitionProjectScanOutcomes, p as resolveProjectSourceFilePaths, r as validateIncludeUntrackedScope, t as shouldFailScanGate, u as resolveProjectScan, v as filterScansForSurface, w as launchCliAgent, x as detectLaunchableAgents, y as countUniqueScannedFiles } from "./should-fail-scan-gate-4jf7ZRdL.js";
12
- import { a as recordGate, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-C0jbKH8p.js";
13
- import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithLegacyShellHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-DIPVunY4.js";
14
- import { t as readObjectFile } from "./read-object-file-CEh1CqnD.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]="0b393268-bc10-56c9-964a-fb56b1964761")}catch(e){}}();
3
+ import { $n as CANONICAL_GITHUB_URL, F as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, G as isCiOrCodingAgentEnvironment, Gt as highlighter, It as getBaselineDiffPlan, K as isCodingAgentEnvironment, Ln as runPromise, Lt as getChangedLineRanges, Nt as findLegacyConfig, Ot as detectAiTrainingEnvironment, P as STAGED_FILES_TEMP_DIR_PREFIX, Pn as provide$1, R as CliInputError, Sr as messageFromUnknown, Ut as hasSupportedFrameworkOrLibrary, V as isDebugFlagEnabled, Wn as provide, Y as Git, dn as resolveScanTarget, f as setJsonReportDirectory, g as VERSION, gr as STAGED_FILES_PROJECT_CONFIG_FILENAMES, h as writeJsonReport, kn as gen, kt as discoverReactSubprojects, lt as StagedFiles, m as writeJsonErrorReport, mt as buildJsonReport, n as recordDistribution, on as remainingDeadlineBudgetMs, p as setJsonReportMode, qt as isPathInsideDirectory, rn as mapWithConcurrency, t as recordCount, tn as listWorkspacePackages, u as enableJsonMode, vn as toRelativePath, w as METRIC, xr as isPlainObject, yr as isErrnoException, zt as getDiffInfo } from "./record-metric-DospZkfP.js";
4
+ import { c as isExpectedUserError, s as shutdownTelemetry } from "./unref-stdin-BGZVK4sJ.js";
5
+ import { i as flushSentry } from "./build-section-divider-DuozMmwU.js";
6
+ import { n as handleError, r as handleUserError, t as reportErrorToSentry } from "./report-error-CAp5cil9.js";
7
+ import { F as runGitRaw, L as cliLogger, c as spinner, i as hasDoctorScript, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-BAmTZygh.js";
8
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-Dg2sosDx.js";
9
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope, u as toForwardSlashes } from "./resolve-scope-eXawiGEH.js";
10
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-oK3MwWyB.js";
11
+ import { A as resolveMergeBaseRef, C as copyToClipboard, D as deduplicateProjectScans, E as collectProjectSourceFileCounts, I as printDiagnosticsDump, O as createInvocationInspect, S as CLI_AGENT_BINARIES, T as buildHandoffPayload, V as buildEmptyReportMessage, _ as resolveCliInspectOptions, a as projectManifestChanged, b as setUpGitHubActions, c as selectProjects, d as resolveProjectChangedLineRanges, f as resolveProjectDiffIncludePaths, g as resolveWorkspaceDeadCodeOwner, h as retryMissingProjectScores, i as validateModeFlags, j as printHeadlessReport, k as inspect, l as buildCodeFrame, m as resolveProjectRelativeDirectory, n as formatSkippedProjectsMessage, o as partitionProjectScanOutcomes, p as resolveProjectSourceFilePaths, r as validateIncludeUntrackedScope, t as shouldFailScanGate, u as resolveProjectScan, v as filterScansForSurface, w as launchCliAgent, x as detectLaunchableAgents, y as countUniqueScannedFiles, z as filterDiagnosticsByCategories } from "./should-fail-scan-gate-BWTNIU5h.js";
12
+ import { a as recordGate, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-D0GvvJtT.js";
13
+ import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithLegacyShellHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-CIJcnTik.js";
14
+ import { t as readObjectFile } from "./read-object-file-m5uVvcBp.js";
15
15
  import * as path$1 from "node:path";
16
16
  import * as fs$1 from "node:fs";
17
17
  import { tmpdir } from "node:os";
@@ -659,7 +659,7 @@ const parseStagedSnapshotDivergences = (statusOutput) => {
659
659
  const hasRenameOrCopySource = indexStatus === "R" || indexStatus === "C" || worktreeStatus === "R" || worktreeStatus === "C";
660
660
  const sourcePath = hasRenameOrCopySource ? statusEntries[entryIndex + 1] : void 0;
661
661
  const worktreePaths = worktreeStatus === "R" || worktreeStatus === "C" ? [filePath, sourcePath] : [filePath];
662
- if (worktreeStatus !== " ") {
662
+ if (worktreeStatus !== " " && worktreeStatus !== "!") {
663
663
  for (const worktreePath of worktreePaths) if (worktreePath && SNAPSHOT_CONFIG_FILENAMES.has(path$1.basename(worktreePath))) divergentConfigFiles.add(worktreePath);
664
664
  }
665
665
  if (hasRenameOrCopySource) entryIndex += 1;
@@ -701,7 +701,7 @@ const buildFinalCliScanOutcome = (input) => {
701
701
  baselineDegraded,
702
702
  mode: baselineDegraded ? "diff" : input.mode,
703
703
  scansForJsonReport: filterCompletedScansByCategories(input.completedScans, input.categoryFilters),
704
- shouldWarnNoReactDetected: input.completedScans.length > 0 && !input.completedScans.some((scan) => hasReactRuntime(scan.result.project))
704
+ shouldWarnNoSupportedLibraryDetected: input.completedScans.length > 0 && !input.completedScans.some((scan) => hasSupportedFrameworkOrLibrary(scan.result.project))
705
705
  };
706
706
  };
707
707
  //#endregion
@@ -723,9 +723,9 @@ const finalizeCliScans = (input) => {
723
723
  baselineIntended: input.baselineIntended,
724
724
  categoryFilters: input.categoryFilters
725
725
  });
726
- if (outcome.shouldWarnNoReactDetected) {
726
+ if (outcome.shouldWarnNoSupportedLibraryDetected) {
727
727
  recordCount(METRIC.scanNoReactDetected, 1);
728
- cliLogger.warn(`No React project detected at ${input.resolvedDirectory} — React rules were gated off; this is not the same as a clean scan.`);
728
+ cliLogger.warn(`No supported framework or library detected at ${input.resolvedDirectory} — library-specific rules were gated off; framework-neutral rules still ran.`);
729
729
  }
730
730
  if (input.isJsonMode) writeJsonReport(buildJsonReport({
731
731
  version: VERSION,
@@ -1328,7 +1328,7 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect") =>
1328
1328
  projectDirectories: projectScans.map((projectScan) => projectScan.directory),
1329
1329
  isRootDeadCodeEnabled: scanOptions.deadCode ?? rootProjectScan?.config?.deadCode ?? true
1330
1330
  });
1331
- if (workspaceDeadCodeOwner !== null) recordCount(METRIC.scanWorkspaceDeadCodeShared, 1, { projectCount: projectScans.length });
1331
+ if (workspaceDeadCodeOwner !== null) recordCount(METRIC.scanWorkspaceMaintainabilityShared, 1, { projectCount: projectScans.length });
1332
1332
  const projectScanExecutionContext = {
1333
1333
  flags,
1334
1334
  resolvedDirectory,
@@ -1439,5 +1439,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect") =>
1439
1439
  //#endregion
1440
1440
  export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
1441
1441
 
1442
- //# sourceMappingURL=inspect-D6y8oLtg.js.map
1443
- //# debugId=c10e3989-ba7b-535c-8f02-46fab9d4a049
1442
+ //# sourceMappingURL=inspect-RxIsB8bi.js.map
1443
+ //# debugId=0b393268-bc10-56c9-964a-fb56b1964761
@@ -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]="c9425d19-0407-5c8a-b1e2-c32c21f4df65")}catch(e){}}();
3
- import { ar as runSync, t as recordCount, w as METRIC } from "./record-metric-CJxSHfJD.js";
4
- import { c as isExpectedUserError } from "./unref-stdin-Dc8ipkaw.js";
5
- import { n as handleError, r as handleUserError, t as reportErrorToSentry } from "./report-error-CAEixMg1.js";
6
- import { t as printBrandedHeader } from "./print-branded-header-D5jLdo4p.js";
7
- import { n as runInstallReactDoctor } from "./install-react-doctor-DIPVunY4.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]="e379ffb9-2b59-513c-a1ca-ad578fd68be7")}catch(e){}}();
3
+ import { Rn as runSync, t as recordCount, w as METRIC } from "./record-metric-DospZkfP.js";
4
+ import { c as isExpectedUserError } from "./unref-stdin-BGZVK4sJ.js";
5
+ import { n as handleError, r as handleUserError, t as reportErrorToSentry } from "./report-error-CAp5cil9.js";
6
+ import { t as printBrandedHeader } from "./print-branded-header-kwnSGrfR.js";
7
+ import { n as runInstallReactDoctor } from "./install-react-doctor-CIJcnTik.js";
8
8
  //#region src/cli/commands/install.ts
9
9
  const installAction = async (options, command) => {
10
10
  recordCount(METRIC.cliInvoked, 1, { command: "install" });
@@ -28,5 +28,5 @@ const installAction = async (options, command) => {
28
28
  //#endregion
29
29
  export { installAction };
30
30
 
31
- //# sourceMappingURL=install-afMFGeTB.js.map
32
- //# debugId=c9425d19-0407-5c8a-b1e2-c32c21f4df65
31
+ //# sourceMappingURL=install-CI0nvC_v.js.map
32
+ //# debugId=e379ffb9-2b59-513c-a1ca-ad578fd68be7
@@ -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]="fb0af4fe-a689-59b6-9176-764a13e051a3")}catch(e){}}();
3
- import { Gn as log, Kn as warn, O as RUN_GIT_MAX_BUFFER_BYTES, Un as error$1, Wn as info$1, ar as runSync, cn as highlighter, z as isNonInteractiveEnvironment } from "./record-metric-CJxSHfJD.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]="ddae0490-56d3-5a90-8a68-25aed7925d52")}catch(e){}}();
3
+ import { Cn as info$1, Gt as highlighter, O as RUN_GIT_MAX_BUFFER_BYTES, Rn as runSync, Sn as error$1, Tn as warn, wn as log, z as isNonInteractiveEnvironment } from "./record-metric-DospZkfP.js";
4
4
  import { execFileSync } from "node:child_process";
5
5
  import * as path$1 from "node:path";
6
6
  import * as fs$1 from "node:fs";
@@ -3247,5 +3247,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
3247
3247
  //#endregion
3248
3248
  export { packageHasNestedRecordKey as A, SIMPLE_GIT_HOOKS_CONFIG_FILE as C, getPackageJsonPath as D, ensureTrailingNewline as E, runGitRaw as F, writeJsonFile as I, cliLogger as L, readPackageJson as M, resolveGitPath as N, isRecord as O, runGit as P, REACT_DOCTOR_COMMAND as S, VITE_PLUS_HOOKS_PATH as T, LEFTHOOK_CONFIG_FILES as _, installReactDoctorScriptStep as a, OVERCOMMIT_CONFIG_FILE as b, spinner as c, stripAnsi as d, isUnicodeSupported as f, HUSKY_HOOKS_PATH as g, HOOK_RELATIVE_PATH as h, hasDoctorScript as i, packageHasRecordKey as j, packageHasDependency as k, isFullWidth as l, HOOK_FILE_NAME as m, findNearestPackageDirectory as n, isSpinnerSilent as o, chalk as p, hasDoctorDependency as r, setSpinnerSilent as s, DOCTOR_PACKAGE_NAME as t, isWide as u, LEGACY_HOOK_RUNNER_RELATIVE_PATH as v, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as w, PRE_COMMIT_CONFIG_FILE as x, NON_BLOCKING_REACT_DOCTOR_COMMAND as y };
3249
3249
 
3250
- //# sourceMappingURL=install-doctor-script-Be7Mv3-l.js.map
3251
- //# debugId=fb0af4fe-a689-59b6-9176-764a13e051a3
3250
+ //# sourceMappingURL=install-doctor-script-BAmTZygh.js.map
3251
+ //# debugId=ddae0490-56d3-5a90-8a68-25aed7925d52
@@ -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]="4ded460a-121d-52f4-a9ed-5175abfd702f")}catch(e){}}();
3
- import { C as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./record-metric-CJxSHfJD.js";
4
- import { t as unrefStdin } from "./unref-stdin-Dc8ipkaw.js";
5
- import { L as cliLogger } from "./install-doctor-script-Be7Mv3-l.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]="72838cc5-b7f2-553b-a115-57e11ac2cfae")}catch(e){}}();
3
+ import { C as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./record-metric-DospZkfP.js";
4
+ import { t as unrefStdin } from "./unref-stdin-BGZVK4sJ.js";
5
+ import { L as cliLogger } from "./install-doctor-script-BAmTZygh.js";
6
6
  import { createRequire } from "node:module";
7
7
  import { execFile } from "node:child_process";
8
8
  import * as path$1 from "node:path";
@@ -263,5 +263,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
263
263
  //#endregion
264
264
  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 };
265
265
 
266
- //# sourceMappingURL=install-github-workflow-Dev2F6Ea.js.map
267
- //# debugId=4ded460a-121d-52f4-a9ed-5175abfd702f
266
+ //# sourceMappingURL=install-github-workflow-Dg2sosDx.js.map
267
+ //# debugId=72838cc5-b7f2-553b-a115-57e11ac2cfae
@@ -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]="e59d018b-df6e-5572-a363-cad2d16cc6a4")}catch(e){}}();
3
- import { R as CliInputError, S as CI_TRUST_COMPANIES, cn as highlighter, ot as GITHUB_ACTIONS_SETUP_URL, t as recordCount, un as isErrnoException, w as METRIC, wt as SKILL_NAME } from "./record-metric-CJxSHfJD.js";
4
- import { A as packageHasNestedRecordKey, D as getPackageJsonPath, E as ensureTrailingNewline, I as writeJsonFile, L as cliLogger, M as readPackageJson, N as resolveGitPath, O as isRecord, P as runGit, S as REACT_DOCTOR_COMMAND, T as VITE_PLUS_HOOKS_PATH, _ as LEFTHOOK_CONFIG_FILES, a as installReactDoctorScriptStep, b as OVERCOMMIT_CONFIG_FILE, c as spinner, g as HUSKY_HOOKS_PATH, h as HOOK_RELATIVE_PATH, j as packageHasRecordKey, k as packageHasDependency, m as HOOK_FILE_NAME, n as findNearestPackageDirectory, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, v as LEGACY_HOOK_RUNNER_RELATIVE_PATH, x as PRE_COMMIT_CONFIG_FILE, y as NON_BLOCKING_REACT_DOCTOR_COMMAND } from "./install-doctor-script-Be7Mv3-l.js";
5
- 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-Dev2F6Ea.js";
6
- import { t as shouldSkipPrompts } from "./should-skip-prompts-C78r7Ww7.js";
7
- import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, 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-C0jbKH8p.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]="c67cc143-bdc1-545b-8b13-fe20707cbb94")}catch(e){}}();
3
+ import { Gt as highlighter, R as CliInputError, S as CI_TRUST_COMPANIES, hr as SKILL_NAME, sr as GITHUB_ACTIONS_SETUP_URL, t as recordCount, w as METRIC, yr as isErrnoException } from "./record-metric-DospZkfP.js";
4
+ import { A as packageHasNestedRecordKey, D as getPackageJsonPath, E as ensureTrailingNewline, I as writeJsonFile, L as cliLogger, M as readPackageJson, N as resolveGitPath, O as isRecord, P as runGit, S as REACT_DOCTOR_COMMAND, T as VITE_PLUS_HOOKS_PATH, _ as LEFTHOOK_CONFIG_FILES, a as installReactDoctorScriptStep, b as OVERCOMMIT_CONFIG_FILE, c as spinner, g as HUSKY_HOOKS_PATH, h as HOOK_RELATIVE_PATH, j as packageHasRecordKey, k as packageHasDependency, m as HOOK_FILE_NAME, n as findNearestPackageDirectory, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, v as LEGACY_HOOK_RUNNER_RELATIVE_PATH, x as PRE_COMMIT_CONFIG_FILE, y as NON_BLOCKING_REACT_DOCTOR_COMMAND } from "./install-doctor-script-BAmTZygh.js";
5
+ 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-Dg2sosDx.js";
6
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-oK3MwWyB.js";
7
+ import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, 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-D0GvvJtT.js";
8
8
  import { execFile } from "node:child_process";
9
9
  import * as path$1 from "node:path";
10
10
  import * as fs$1 from "node:fs";
@@ -1150,5 +1150,5 @@ const runInstallReactDoctor = async (options = {}) => {
1150
1150
  //#endregion
1151
1151
  export { askUpgradeActionVersion as a, recordCiPromptDecision as c, installReactDoctorAgentHooks as i, hasHandledActionUpgrade as l, runInstallReactDoctor as n, askAddToGitHubActions as o, findAgentsWithLegacyShellHooks as r, hasHandledCiPrompt as s, getSkillSourceDirectory as t, recordActionUpgradeDecision as u };
1152
1152
 
1153
- //# sourceMappingURL=install-react-doctor-DIPVunY4.js.map
1154
- //# debugId=e59d018b-df6e-5572-a363-cad2d16cc6a4
1153
+ //# sourceMappingURL=install-react-doctor-CIJcnTik.js.map
1154
+ //# debugId=c67cc143-bdc1-545b-8b13-fe20707cbb94
@@ -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]="dcc6062b-9d93-5742-be37-a12564a4b38a")}catch(e){}}();
3
- import { Gn as log, Xn as gen, cn as highlighter, g as VERSION } from "./record-metric-CJxSHfJD.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]="871683e4-c793-5b1d-ab2f-5d7d0a2e3237")}catch(e){}}();
3
+ import { Gt as highlighter, g as VERSION, kn as gen, wn as log } from "./record-metric-DospZkfP.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-D5jLdo4p.js.map
22
- //# debugId=dcc6062b-9d93-5742-be37-a12564a4b38a
21
+ //# sourceMappingURL=print-branded-header-kwnSGrfR.js.map
22
+ //# debugId=871683e4-c793-5b1d-ab2f-5d7d0a2e3237
@@ -0,0 +1 @@
1
+ export { };