react-doctor 0.9.22 → 0.9.23-dev.05dfafe

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 (43) hide show
  1. package/dist/{build-section-divider-JXerAqjw.js → build-section-divider-B3l6DXTH.js} +5 -5
  2. package/dist/{ci-BWu53Ijl.js → ci-DUDuv_KL.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-lt2tTZjE.js → constants-BmD_c3Yq.js} +12 -6
  5. package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
  6. package/dist/{design-CN12FgvK.js → design-Bj9aMiuv.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-BMgB2pVu.js → exit-gracefully-cCXyQl3i.js} +6 -6
  9. package/dist/{handle-error-CoIUQwLf.js → handle-error-lgLxrA8y.js} +6 -6
  10. package/dist/index.d.ts +20 -2
  11. package/dist/index.js +247 -41
  12. package/dist/{inspect-D4QLdCtm.js → inspect-Bb1HyA7w.js} +16 -16
  13. package/dist/{install-R6-fv9t4.js → install-Ctq7ew69.js} +10 -10
  14. package/dist/{install-doctor-script-D9-Bdbx6.js → install-doctor-script-C8URs5z8.js} +5 -5
  15. package/dist/{install-github-workflow-B01vSPPa.js → install-github-workflow-4uZez_Ux.js} +6 -6
  16. package/dist/{install-react-doctor-DZnPIaiY.js → install-react-doctor-z8YCZ_ln.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-CveNGcRi.js} +4 -4
  18. package/dist/{jsx-runtime-D_p1BwrV.js → jsx-runtime-DGgjHKxp.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-BegpykMJ.js → print-branded-header-DMHPLUaY.js} +4 -4
  21. package/dist/project-analysis-worker.js +1 -1
  22. package/dist/{prompt-runtime-scan-url-OIHMChS6.js → prompt-runtime-scan-url-Bjf8oUgu.js} +5 -5
  23. package/dist/{read-object-file-Bd06Y-EV.js → read-object-file-1GYa4MDG.js} +4 -4
  24. package/dist/{record-metric-5SPbuLyj.js → record-metric-9Q_AofQZ.js} +232 -43
  25. package/dist/{report-error-DayUUIc-.js → report-error-D8MXuEuX.js} +6 -6
  26. package/dist/{report-workflow-result-tdrT9lW-.js → report-workflow-result-CoKQrvw3.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-DWrr-Xuv.js → resolve-scan-exit-code-B8M3Cm1y.js} +42 -30
  28. package/dist/{resolve-scope-OdFJKZGv.js → resolve-scope-mO5jhToI.js} +6 -6
  29. package/dist/{rules-DNgtXPXx.js → rules-DfsolVSa.js} +7 -7
  30. package/dist/{run-scan-app-COJWBnqC.js → run-scan-app-C_1vEytD.js} +45 -16
  31. package/dist/{runtime-scan-CkpS56h8.js → runtime-scan-DO6eZB9B.js} +10 -10
  32. package/dist/{sanitize-runtime-url-fwyTS789.js → sanitize-runtime-url-B_DTc6vp.js} +4 -4
  33. package/dist/{scan-iZF-ydER.js → scan-zowhHQj5.js} +10 -10
  34. package/dist/{should-skip-prompts-BvvlROWq.js → should-skip-prompts-DWFgbnKE.js} +4 -4
  35. package/dist/{should-use-tui-BjzxYIbC.js → should-use-tui-CTkAbfEk.js} +4 -4
  36. package/dist/skills/react-doctor/references/explain.md +26 -0
  37. package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DDAT_0oB.js} +5 -5
  38. package/dist/start-scan-preamble.js +3 -3
  39. package/dist/{telemetry-runtime-DQLNzRNG.js → telemetry-runtime-CdsvqQbi.js} +13 -7
  40. package/dist/{version-BasyRE1W.js → version-5cBv0dgb.js} +5 -5
  41. package/dist/{why-ni8gAKZe.js → why-BD6q7PxE.js} +4 -4
  42. package/dist/{with-run-span-eDYTicUo.js → with-run-span-qr6tFfqD.js} +6 -6
  43. package/package.json +4 -4
@@ -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]="72820617-ca22-55e8-a514-bc47dbdf92a2")}catch(e){}}();
3
- import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { t as recordCount } from "./record-metric-5SPbuLyj.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-B01vSPPa.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]="bb532d92-0ade-55d6-b92e-836364f79fd4")}catch(e){}}();
3
+ import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { t as recordCount } from "./record-metric-9Q_AofQZ.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-4uZez_Ux.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";
@@ -289,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
289
289
  //#endregion
290
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 };
291
291
 
292
- //# sourceMappingURL=report-workflow-result-tdrT9lW-.js.map
293
- //# debugId=72820617-ca22-55e8-a514-bc47dbdf92a2
292
+ //# sourceMappingURL=report-workflow-result-CoKQrvw3.js.map
293
+ //# debugId=bb532d92-0ade-55d6-b92e-836364f79fd4
@@ -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]="ee91285e-0d26-596a-ad4c-9b611518ec5f")}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-lt2tTZjE.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-af0VF8nQ.js";
5
- import { $ as buildRuleSeverityControls, A as Files, An as mergeAll, B as PerFileLintCacheEnabled, Bt as listSourceFilesCooperative, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideService, Dn as try_, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as sync, F as Linter, Ft as isReactDoctorError, G as SidecarLintCacheEnabled, Gt as mergeAndFilterDiagnostics, H as Project, Hn as isDirectory, I as Maintainability, Jt as resolveGithubActionsScoreMetadata, Kt as mergeReactDoctorConfigs, L as NodeResolver, Ln as ParentSpan, Lt as isScanComplete, M as InvocationCaches, Mn as succeed, Mt as highlighter, Nt as isPathInsideDirectory, O as Config, Ot as groupBy, P as LintPartialFailures, Q as buildRuleDocsUrl, Qt as runInspect, R as OxlintConcurrency, Rn as isMonorepoRoot, Sn as provideContext, T as isCiEnvironment, Tn as runSync, U as Reporter, Ut as mapWithConcurrency, V as Progress, Vt as listWorkspacePackages, W as Score, Wn as isFile, Wt as materializeSourceTree, X as atomicWriteJson, Xt as resolveScanTarget, Yt as resolveLintBatchOrdering, Zt as restoreLegacyThrow, _ as VERSION, an as warmDuplicateJsxWorker, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as promise, cn as error, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as warn, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as Diagnostic, gn as gen, gt as filterSourceFiles, ht as filterPathsOutsideDirectories, j as Git, jt as hashFileContents, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hasPublishedFixRecipe, l as getRunId, lt as createChangedLineMatcher, mn as decodeUnknownSync, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as summarizeDiagnostics, nt as canonicalizeUserRuleKey, on as warmOxlintWorkerPool, ot as computeConfigFingerprint, pt as discoverSupportedSubprojects, q as SupplyChain, qt as remainingDeadlineBudgetMs, r as toSpanAttributes, rt as classifyFileContext, sn as Console, st as computeDiagnosticDelta, t as recordCount, tn as shouldUseMaintainabilityLayer, tt as calculateScore, un as log, ut as createInvocationCaches, v as makeNoopConsole, vn as map, w as detectRunnerOs, wn as runPromise, wt as getDiagnosticRuleIdentity, xn as provide, y as CliInputError, yn as orElseSucceed, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as yieldToEventLoop, zt as listSourceFiles } from "./record-metric-5SPbuLyj.js";
6
- import { t as getTelemetryContext } from "./telemetry-runtime-DQLNzRNG.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]="3f8ef54d-7917-59b9-92e5-76d9e2daa0d6")}catch(e){}}();
3
+ import { Ct as ENTERPRISE_CONTACT_URL, E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Gt as MILLISECONDS_PER_SECOND, It as HTML_FILE_PATTERN, K as resolveReactDoctorCacheDir, Pt as GIT_SHOW_MAX_BUFFER_BYTES, Ut as MAINTAINABILITY_SOURCE_FILE_PATTERN, Yt as OXLINT_NODE_REQUIREMENT, c as HEAD_SHA_GIT_ARGUMENTS, dt as CI_URL, fn 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, v as SCAN_RESULT_CACHE_FILENAME, vt as DIAGNOSTIC_CATEGORY_BUCKETS, zt as JSX_FILE_PATTERN } from "./constants-BmD_c3Yq.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-CveNGcRi.js";
5
+ import { $ as buildRuleSeverityControls, $t as runInspect, A as Files, At as hasPublishedFixRecipe, B as PerFileLintCacheEnabled, Bn as yieldToEventLoop, Bt as listSourceFiles, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideContext, Dn as sync, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as runSync, F as Linter, G as SidecarLintCacheEnabled, Gn as isFile, Gt as materializeSourceTree, H as Project, Ht as listWorkspacePackages, I as Maintainability, It as isReactDoctorError, Jt as remainingDeadlineBudgetMs, Kt as mergeAndFilterDiagnostics, L as NodeResolver, M as InvocationCaches, Mt as hashFileContents, Nn as succeed, Nt as highlighter, O as Config, On as try_, Ot as getUnknownBundledRuleKeys, P as LintPartialFailures, Pt as isPathInsideDirectory, Q as buildRuleDocsUrl, Qt as restoreLegacyThrow, R as OxlintConcurrency, Rn as ParentSpan, Rt as isScanComplete, Sn as provide, T as isCiEnvironment, Tn as runPromise, U as Reporter, Un as isDirectory, V as Progress, Vt as listSourceFilesCooperative, W as Score, Wt as mapWithConcurrency, X as atomicWriteJson, Xt as resolveLintBatchOrdering, Yt as resolveGithubActionsScoreMetadata, Zt as resolveScanTarget, _ as VERSION, _n as gen, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as orElseSucceed, cn as Console, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as log, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as warn, gt as filterSourceFiles, hn as decodeUnknownSync, ht as filterPathsOutsideDirectories, j as Git, jn as mergeAll, k as DIAGNOSTIC_DELTA_IDENTITY, kt as groupBy, l as getRunId, ln as error, lt as createChangedLineMatcher, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as shouldUseMaintainabilityLayer, nt as canonicalizeUserRuleKey, on as warmDuplicateJsxWorker, ot as computeConfigFingerprint, pn as Diagnostic, pt as discoverSupportedSubprojects, q as SupplyChain, qt as mergeReactDoctorConfigs, r as toSpanAttributes, rn as summarizeDiagnostics, rt as classifyFileContext, sn as warmOxlintWorkerPool, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, ut as createInvocationCaches, v as makeNoopConsole, w as detectRunnerOs, wn as provideService, wt as getDiagnosticRuleIdentity, xn as promise, y as CliInputError, yn as map, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as isMonorepoRoot } from "./record-metric-9Q_AofQZ.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-CdsvqQbi.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-JXerAqjw.js";
8
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-B3l6DXTH.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-D9-Bdbx6.js";
12
- import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-B01vSPPa.js";
13
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-OdFJKZGv.js";
14
- import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-eDYTicUo.js";
15
- import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-tdrT9lW-.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-C8URs5z8.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-4uZez_Ux.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-mO5jhToI.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-qr6tFfqD.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-CoKQrvw3.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";
@@ -557,7 +557,9 @@ const buildScanAttributes = (input) => {
557
557
  ignoredTagCount: input.ignoredTagCount,
558
558
  hasCustomConfig: input.hasCustomConfig,
559
559
  customRulesOnly: input.userConfig?.customRulesOnly ?? false,
560
+ onlyExportComponentsConfigured: input.userConfig?.onlyExportComponents !== void 0,
560
561
  rulesConfigured: ruleKeys.length,
562
+ unknownBundledRuleCount: getUnknownBundledRuleKeys(input.userConfig?.rules).length,
561
563
  rulesDisabled: ruleKeys.filter((key) => ruleOverrides[key] === "off").length,
562
564
  projectAnalysisRuleCount: countOptInProjectRuleSelections(buildRuleSeverityControls(input.userConfig)),
563
565
  fileCount: input.result?.scannedFileCount,
@@ -1288,23 +1290,31 @@ const resolveSafeSourcePath = (rootDirectory, filePath) => {
1288
1290
  return null;
1289
1291
  }
1290
1292
  };
1291
- const readSourceRecord = (rootDirectory, filePath, state) => {
1293
+ const readSourceRecord = (rootDirectory, filePath, state, requiresSourceFile = false) => {
1292
1294
  const normalizedFilePath = filePath.replace(/\\/g, "/");
1293
- if (state.recordByFilePath.has(normalizedFilePath)) return state.recordByFilePath.get(normalizedFilePath) ?? null;
1294
- const absolutePath = resolveSafeSourcePath(rootDirectory, normalizedFilePath);
1295
- if (absolutePath === null) {
1296
- state.recordByFilePath.set(normalizedFilePath, null);
1297
- return null;
1298
- }
1295
+ let record = state.recordByFilePath.get(normalizedFilePath);
1296
+ if (record === null) return null;
1299
1297
  try {
1300
- const sourceText = fs.readFileSync(absolutePath, "utf-8");
1301
- const record = {
1302
- absolutePath,
1303
- filePath: normalizedFilePath,
1304
- sourceFile: typescriptBinding.createSourceFile(absolutePath, sourceText, typescriptBinding.ScriptTarget.Latest, true, getScriptKind(absolutePath)),
1305
- sourceText
1306
- };
1307
- state.recordByFilePath.set(normalizedFilePath, record);
1298
+ if (record === void 0) {
1299
+ const absolutePath = resolveSafeSourcePath(rootDirectory, normalizedFilePath);
1300
+ if (absolutePath === null) {
1301
+ state.recordByFilePath.set(normalizedFilePath, null);
1302
+ return null;
1303
+ }
1304
+ const sourceText = fs.readFileSync(absolutePath, "utf-8");
1305
+ let parsedSourceFile;
1306
+ record = {
1307
+ absolutePath,
1308
+ filePath: normalizedFilePath,
1309
+ get sourceFile() {
1310
+ parsedSourceFile ??= typescriptBinding.createSourceFile(absolutePath, sourceText, typescriptBinding.ScriptTarget.Latest, true, getScriptKind(absolutePath));
1311
+ return parsedSourceFile;
1312
+ },
1313
+ sourceText
1314
+ };
1315
+ state.recordByFilePath.set(normalizedFilePath, record);
1316
+ }
1317
+ if (requiresSourceFile) record.sourceFile;
1308
1318
  return record;
1309
1319
  } catch {
1310
1320
  state.recordByFilePath.set(normalizedFilePath, null);
@@ -1314,7 +1324,7 @@ const readSourceRecord = (rootDirectory, filePath, state) => {
1314
1324
  const listSourceRecords = (rootDirectory, state) => {
1315
1325
  if (state.sourceRecords !== null) return state.sourceRecords;
1316
1326
  state.sourceRecords = listSourceFiles(rootDirectory).flatMap((filePath) => {
1317
- const record = readSourceRecord(rootDirectory, filePath, state);
1327
+ const record = readSourceRecord(rootDirectory, filePath, state, true);
1318
1328
  return record === null ? [] : [record];
1319
1329
  });
1320
1330
  return state.sourceRecords;
@@ -1573,6 +1583,8 @@ const createDiagnosticEvidenceReader = (rootDirectory, options = {}) => {
1573
1583
  return (diagnostic) => {
1574
1584
  const record = readSourceRecord(rootDirectory, diagnostic.filePath, state);
1575
1585
  if (record === null || !Number.isInteger(diagnostic.line)) return null;
1586
+ const shouldResolveForwardedHandlers = Boolean(options.resolveForwardedHandlers);
1587
+ if (shouldResolveForwardedHandlers && readSourceRecord(rootDirectory, diagnostic.filePath, state, true) === null) return null;
1576
1588
  const sourceLines = record.sourceText.split(/\r?\n/);
1577
1589
  const startLineIndex = Math.max(0, diagnostic.line - 1);
1578
1590
  const endLineIndex = Math.max(startLineIndex, (diagnostic.endLine ?? diagnostic.line) - 1);
@@ -1581,7 +1593,7 @@ const createDiagnosticEvidenceReader = (rootDirectory, options = {}) => {
1581
1593
  const end = index === lines.length - 1 && diagnostic.endColumn !== void 0 ? diagnostic.endColumn - 1 : void 0;
1582
1594
  return line.slice(start, end);
1583
1595
  }).join("\n");
1584
- if (!options.resolveForwardedHandlers) return evidence;
1596
+ if (!shouldResolveForwardedHandlers) return evidence;
1585
1597
  const propNames = new Set(evidence.match(/\bon[A-Z]\w*\b/g) ?? []);
1586
1598
  if (propNames.size === 0) return evidence;
1587
1599
  const component = findEnclosingComponent(record, diagnostic);
@@ -3168,5 +3180,5 @@ const resolveScanExitCode = (input) => {
3168
3180
  //#endregion
3169
3181
  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 };
3170
3182
 
3171
- //# sourceMappingURL=resolve-scan-exit-code-DWrr-Xuv.js.map
3172
- //# debugId=ee91285e-0d26-596a-ad4c-9b611518ec5f
3183
+ //# sourceMappingURL=resolve-scan-exit-code-B8M3Cm1y.js.map
3184
+ //# debugId=3f8ef54d-7917-59b9-92e5-76d9e2daa0d6
@@ -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]="7bc3582a-35fa-5603-b495-c631ab8f9f20")}catch(e){}}();
3
- import { Nt as isPathInsideDirectory, Vn as toCanonicalPath, gt as filterSourceFiles } from "./record-metric-5SPbuLyj.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]="218d42b1-8edc-5750-9eea-26baf83f5fed")}catch(e){}}();
3
+ import { Hn as toCanonicalPath, Pt as isPathInsideDirectory, gt as filterSourceFiles } from "./record-metric-9Q_AofQZ.js";
4
4
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
5
- import { N as cliLogger } from "./install-doctor-script-D9-Bdbx6.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-B01vSPPa.js";
5
+ import { N as cliLogger } from "./install-doctor-script-C8URs5z8.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-4uZez_Ux.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";
@@ -334,5 +334,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
334
334
  //#endregion
335
335
  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 };
336
336
 
337
- //# sourceMappingURL=resolve-scope-OdFJKZGv.js.map
338
- //# debugId=7bc3582a-35fa-5603-b495-c631ab8f9f20
337
+ //# sourceMappingURL=resolve-scope-mO5jhToI.js.map
338
+ //# debugId=218d42b1-8edc-5750-9eea-26baf83f5fed
@@ -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]="88b0679f-257b-5ef5-b613-3886527d29de")}catch(e){}}();
3
- import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Et as getEquivalentRuleKeys, Gn as isPlainObject, Ht as loadConfigWithSource, It as isSameRuleKey, Mt as highlighter, Q as buildRuleDocsUrl, in as validateConfigTypes, it as clearConfigCache, t as recordCount } from "./record-metric-5SPbuLyj.js";
5
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-D9-Bdbx6.js";
6
- import { t as readObjectFile } from "./read-object-file-Bd06Y-EV.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]="4394f695-c7c5-5468-acc4-b91a02a9b784")}catch(e){}}();
3
+ import { ft as COMPILER_CLEANUP_BUCKET, pt as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { Et as getEquivalentRuleKeys, Kn as isPlainObject, Lt as isSameRuleKey, Nt as highlighter, Q as buildRuleDocsUrl, Ut as loadConfigWithSource, an as validateConfigTypes, it as clearConfigCache, t as recordCount } from "./record-metric-9Q_AofQZ.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-C8URs5z8.js";
6
+ import { t as readObjectFile } from "./read-object-file-1GYa4MDG.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-DNgtXPXx.js.map
582
- //# debugId=88b0679f-257b-5ef5-b613-3886527d29de
581
+ //# sourceMappingURL=rules-DfsolVSa.js.map
582
+ //# debugId=4394f695-c7c5-5468-acc4-b91a02a9b784
@@ -1,14 +1,14 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dea93b3f-ab59-5b4f-b733-b70fb68e035d")}catch(e){}}();
3
- import { D as TUI_REPORT_COMPACT_MAX_ROWS, In as getCategoryImpact, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, _t as DIAGNOSTIC_CATEGORY_BUCKETS, kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Ct as getChangedLineRanges, En as sync, Mn as succeed, Mt as highlighter, On as void_, Q as buildRuleDocsUrl, St as getBaselineDiffPlan, T as isCiEnvironment, Tt as getDiffInfo, U as Reporter, Ut as mapWithConcurrency, V as Progress, Xt as resolveScanTarget, kt as hasPublishedFixRecipe, n as recordDistribution, qt as remainingDeadlineBudgetMs, t as recordCount, tt as calculateScore, wn as runPromise, x as isGitHookEnvironment, zn as yieldToEventLoop } from "./record-metric-5SPbuLyj.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]="ae75c850-000b-5c69-8830-36ec27801d12")}catch(e){}}();
3
+ import { At as GITHUB_ACTIONS_SETUP_URL, D as TUI_REPORT_COMPACT_MAX_ROWS, Ln as getCategoryImpact, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, o as CI_TRUST_COMPANIES, u as METRIC, vt as DIAGNOSTIC_CATEGORY_BUCKETS } from "./constants-BmD_c3Yq.js";
4
+ import { At as hasPublishedFixRecipe, Bn as yieldToEventLoop, Ct as getChangedLineRanges, Dn as sync, Jt as remainingDeadlineBudgetMs, Nn as succeed, Nt as highlighter, Q as buildRuleDocsUrl, St as getBaselineDiffPlan, T as isCiEnvironment, Tn as runPromise, Tt as getDiffInfo, U as Reporter, V as Progress, Wt as mapWithConcurrency, Zt as resolveScanTarget, kn as void_, n as recordDistribution, t as recordCount, tt as calculateScore, x as isGitHookEnvironment } from "./record-metric-9Q_AofQZ.js";
5
5
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
6
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-D9-Bdbx6.js";
7
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-B01vSPPa.js";
8
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-OdFJKZGv.js";
9
- import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./resolve-scan-exit-code-DWrr-Xuv.js";
10
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-tdrT9lW-.js";
11
- import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-D_p1BwrV.js";
6
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-C8URs5z8.js";
7
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-4uZez_Ux.js";
8
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-mO5jhToI.js";
9
+ import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./resolve-scan-exit-code-B8M3Cm1y.js";
10
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-CoKQrvw3.js";
11
+ import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-DGgjHKxp.js";
12
12
  import path from "node:path";
13
13
  import { performance } from "node:perf_hooks";
14
14
  import isUnicodeSupported from "is-unicode-supported";
@@ -1301,9 +1301,17 @@ const HandoffCiRecommendation = ({ onAddToCi, onContinue, onQuit }) => {
1301
1301
  };
1302
1302
  //#endregion
1303
1303
  //#region src/cli/ink/components/report-landing.tsx
1304
- const ReportStatus = ({ issueCount, emptyStateMessage, lintFailureReason, skippedChecks, incompleteMessage }) => {
1305
- const skippedCheckLabel = skippedChecks?.flatMap((skippedCheck) => skippedCheck === "lint" && lintFailureReason ? [] : [formatSkippedCheckLabel(skippedCheck)]).join(" and ");
1306
- const hasIncompleteResult = Boolean(incompleteMessage || lintFailureReason || skippedCheckLabel);
1304
+ const ReportStatus = ({ issueCount, emptyStateMessage, lintFailureReason, skippedChecks, skippedCheckReasons, incompleteMessage }) => {
1305
+ const failureDetails = (skippedChecks ?? []).flatMap((check) => {
1306
+ if (check === "lint" && lintFailureReason) return [];
1307
+ const reason = skippedCheckReasons?.[check];
1308
+ return reason ? [{
1309
+ check,
1310
+ reason
1311
+ }] : [];
1312
+ });
1313
+ const skippedCheckLabel = skippedChecks?.flatMap((skippedCheck) => skippedCheck === "lint" && lintFailureReason || skippedCheckReasons?.[skippedCheck] ? [] : [formatSkippedCheckLabel(skippedCheck)]).join(" and ");
1314
+ const hasIncompleteResult = Boolean(incompleteMessage || lintFailureReason || skippedCheckLabel || failureDetails.length);
1307
1315
  if (!hasIncompleteResult && issueCount > 0) return null;
1308
1316
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
1309
1317
  flexDirection: "column",
@@ -1317,6 +1325,15 @@ const ReportStatus = ({ issueCount, emptyStateMessage, lintFailureReason, skippe
1317
1325
  color: "yellow",
1318
1326
  children: ["⚠ Lint did not run: ", lintFailureReason]
1319
1327
  }) : null,
1328
+ failureDetails.map(({ check, reason }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
1329
+ color: "yellow",
1330
+ children: [
1331
+ "⚠ ",
1332
+ formatSkippedCheckLabel(check),
1333
+ " did not complete: ",
1334
+ reason
1335
+ ]
1336
+ }, check)),
1320
1337
  skippedCheckLabel ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
1321
1338
  color: "yellow",
1322
1339
  children: [
@@ -1333,7 +1350,7 @@ const ReportStatus = ({ issueCount, emptyStateMessage, lintFailureReason, skippe
1333
1350
  ]
1334
1351
  });
1335
1352
  };
1336
- const ReportLanding = ({ header, phase, issueCount, emptyStateMessage, lintFailureReason, skippedChecks, incompleteMessage, actions, selectedIndex, onSelectionChange, onQuit }) => {
1353
+ const ReportLanding = ({ header, phase, issueCount, emptyStateMessage, lintFailureReason, skippedChecks, skippedCheckReasons, incompleteMessage, actions, selectedIndex, onSelectionChange, onQuit }) => {
1337
1354
  const showScore = phase === "actions" || phase === "score";
1338
1355
  useInput((input) => {
1339
1356
  if (input === "q") onQuit();
@@ -1347,6 +1364,7 @@ const ReportLanding = ({ header, phase, issueCount, emptyStateMessage, lintFailu
1347
1364
  emptyStateMessage,
1348
1365
  lintFailureReason,
1349
1366
  skippedChecks,
1367
+ skippedCheckReasons,
1350
1368
  incompleteMessage
1351
1369
  }),
1352
1370
  phase === "actions" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ActionMenu, {
@@ -1810,6 +1828,7 @@ const Report = ({ report, onExit, onQuit = onExit, launchableAgents = EMPTY_LAUN
1810
1828
  emptyStateMessage: report.emptyStateMessage,
1811
1829
  lintFailureReason: report.lintFailureReason,
1812
1830
  skippedChecks: report.skippedChecks,
1831
+ skippedCheckReasons: report.skippedCheckReasons,
1813
1832
  incompleteMessage: report.incompleteMessage,
1814
1833
  actions: landingActions,
1815
1834
  selectedIndex: resolvedLandingSelectedIndex,
@@ -1881,6 +1900,14 @@ const Scanning = ({ progressText, recent }) => {
1881
1900
  //#region src/cli/ink/components/summary.tsx
1882
1901
  const Summary = ({ summary, onExit, onQuit, launchableAgents, onHandoff, canAddToCi, onAddToCi }) => {
1883
1902
  const skippedProjects = summary.skippedProjects ?? [];
1903
+ const failureReasons = /* @__PURE__ */ new Map();
1904
+ for (const project of summary.projects) for (const check of project.skippedChecks ?? []) {
1905
+ const reason = project.skippedCheckReasons?.[check];
1906
+ if (!reason) continue;
1907
+ const detail = `${project.projectName}: ${reason}`;
1908
+ const previous = failureReasons.get(check);
1909
+ failureReasons.set(check, previous ? `${previous}\n${detail}` : detail);
1910
+ }
1884
1911
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Report, {
1885
1912
  report: {
1886
1913
  diagnostics: summary.combinedDiagnostics,
@@ -1893,9 +1920,10 @@ const Summary = ({ summary, onExit, onQuit, launchableAgents, onHandoff, canAddT
1893
1920
  isOffline: summary.isOffline,
1894
1921
  noScoreMessage: summary.noScoreMessage,
1895
1922
  skippedChecks: [...new Set(summary.projects.flatMap((project) => project.skippedChecks ?? []))],
1923
+ skippedCheckReasons: Object.fromEntries(failureReasons),
1896
1924
  ...skippedProjects.length > 0 ? { incompleteMessage: formatSkippedProjectsMessage(skippedProjects.length) } : {},
1897
1925
  ...summary.emptyStateMessage ? { emptyStateMessage: summary.emptyStateMessage } : {},
1898
- ...summary.lintFailureReason ? { lintFailureReason: summary.lintFailureReason } : {}
1926
+ ...summary.lintFailureReason && !failureReasons.has("lint") ? { lintFailureReason: summary.lintFailureReason } : {}
1899
1927
  },
1900
1928
  onExit,
1901
1929
  onQuit,
@@ -2111,6 +2139,7 @@ const toScanReport = ({ result, diagnostics, rootDirectory, projectedScore, isOf
2111
2139
  noScoreMessage,
2112
2140
  emptyStateMessage,
2113
2141
  skippedChecks: result.skippedChecks,
2142
+ skippedCheckReasons: result.skippedCheckReasons,
2114
2143
  ...lintFailureReason ? { lintFailureReason } : {}
2115
2144
  };
2116
2145
  };
@@ -2524,5 +2553,5 @@ const runScanApp = async (input) => {
2524
2553
  //#endregion
2525
2554
  export { runScanApp };
2526
2555
 
2527
- //# sourceMappingURL=run-scan-app-COJWBnqC.js.map
2528
- //# debugId=dea93b3f-ab59-5b4f-b733-b70fb68e035d
2556
+ //# sourceMappingURL=run-scan-app-C_1vEytD.js.map
2557
+ //# debugId=ae75c850-000b-5c69-8830-36ec27801d12
@@ -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]="a166d6e4-2021-5ebb-a727-b78d213007a1")}catch(e){}}();
3
- import { u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Mt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-5SPbuLyj.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]="e10f1db4-8d01-57ed-941b-4978dffd0e21")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { Nt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-9Q_AofQZ.js";
5
5
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
6
- import { t as reportErrorToSentry } from "./report-error-DayUUIc-.js";
7
- import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-eDYTicUo.js";
8
- import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-fwyTS789.js";
9
- import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-BjzxYIbC.js";
6
+ import { t as reportErrorToSentry } from "./report-error-D8MXuEuX.js";
7
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-qr6tFfqD.js";
8
+ import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-B_DTc6vp.js";
9
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-CTkAbfEk.js";
10
10
  import * as fs$1 from "node:fs";
11
11
  import * as path$1 from "node:path";
12
12
  import * as os$1 from "node:os";
@@ -720,7 +720,7 @@ const resolveRuntimeScanUrl = async (url) => {
720
720
  if (url !== void 0) return url;
721
721
  if (!isTuiEnvironmentSupported(resolveTuiEnvironment(process.stderr.isTTY === true))) throw new CliInputError("A URL is required outside an interactive terminal. Run `react-doctor scan <url>`.");
722
722
  recordCount(METRIC.runtimeScanUrlPromptShown);
723
- const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-OIHMChS6.js");
723
+ const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-Bjf8oUgu.js");
724
724
  return promptRuntimeScanUrl();
725
725
  };
726
726
  const runtimeScanAction = async (url, flags) => {
@@ -767,5 +767,5 @@ const runtimeScanAction = async (url, flags) => {
767
767
  //#endregion
768
768
  export { runtimeScanAction };
769
769
 
770
- //# sourceMappingURL=runtime-scan-CkpS56h8.js.map
771
- //# debugId=a166d6e4-2021-5ebb-a727-b78d213007a1
770
+ //# sourceMappingURL=runtime-scan-DO6eZB9B.js.map
771
+ //# debugId=e10f1db4-8d01-57ed-941b-4978dffd0e21
@@ -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]="ed5c8ef4-8b4f-5123-a2cb-509563631081")}catch(e){}}();
3
- import { y as CliInputError } from "./record-metric-5SPbuLyj.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]="875c6fee-3eeb-5f35-baae-4115b919fe42")}catch(e){}}();
3
+ import { y as CliInputError } from "./record-metric-9Q_AofQZ.js";
4
4
  //#region src/cli/runtime-scan/constants.ts
5
5
  const RUNTIME_SCAN_MAX_COMPONENT_EVENTS = 2e3;
6
6
  const RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES = 5 * 1024 * 1024;
@@ -72,5 +72,5 @@ const sanitizeRuntimeUrl = (rawUrl) => {
72
72
  //#endregion
73
73
  export { RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS as _, RUNTIME_SCAN_LOCAL_DEV_PORTS as a, RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS as b, RUNTIME_SCAN_MAX_SNAPSHOT_BYTES as c, RUNTIME_SCAN_MAX_TRACE_BYTES as d, RUNTIME_SCAN_PROBE_RELATIVE_PATH as f, RUNTIME_SCAN_SAFE_CDP_PAGE_URLS as g, RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER as h, RUNTIME_SCAN_LAYOUT_THRASH_RATIO as i, RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES as l, RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER as m, RUNTIME_SCAN_BROWSER_WIDTH_PX as n, RUNTIME_SCAN_MAX_COMPONENT_EVENTS as o, RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER as p, RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN as r, RUNTIME_SCAN_MAX_RECORDING_DURATION_MS as s, sanitizeRuntimeUrl as t, RUNTIME_SCAN_MAX_STRING_LENGTH as u, RUNTIME_SCAN_TRACE_CATEGORIES as v, RUNTIME_SCAN_TRACE_FILE_EXTENSION as y };
74
74
 
75
- //# sourceMappingURL=sanitize-runtime-url-fwyTS789.js.map
76
- //# debugId=ed5c8ef4-8b4f-5123-a2cb-509563631081
75
+ //# sourceMappingURL=sanitize-runtime-url-B_DTc6vp.js.map
76
+ //# debugId=875c6fee-3eeb-5f35-baae-4115b919fe42
@@ -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]="d430300a-703b-513f-bc7d-dac36dba13b4")}catch(e){}}();
3
- import { u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Xt as resolveScanTarget, t as recordCount } from "./record-metric-5SPbuLyj.js";
5
- import { i as warnDeprecatedDiff } from "./resolve-scope-OdFJKZGv.js";
6
- import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-D4QLdCtm.js";
7
- import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-DWrr-Xuv.js";
8
- import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-BjzxYIbC.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]="2280acdf-43cc-5cbe-b75c-5ca2b5447da9")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { Zt as resolveScanTarget, t as recordCount } from "./record-metric-9Q_AofQZ.js";
5
+ import { i as warnDeprecatedDiff } from "./resolve-scope-mO5jhToI.js";
6
+ import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-Bb1HyA7w.js";
7
+ import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-B8M3Cm1y.js";
8
+ import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-CTkAbfEk.js";
9
9
  import path from "node:path";
10
10
  //#region src/cli/commands/scan.ts
11
11
  const runScanCommand = async (input) => {
@@ -29,7 +29,7 @@ const runScanCommand = async (input) => {
29
29
  warnDeprecatedFailOn(input.flags, scanTarget.userConfig);
30
30
  warnDeprecatedDiff(input.flags, scanTarget.userConfig);
31
31
  recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
32
- const { runScanApp } = await import("./run-scan-app-COJWBnqC.js");
32
+ const { runScanApp } = await import("./run-scan-app-C_1vEytD.js");
33
33
  const { exitCode } = await runScanApp({
34
34
  directory: input.directory,
35
35
  scanTarget,
@@ -45,5 +45,5 @@ const runScanCommand = async (input) => {
45
45
  //#endregion
46
46
  export { runScanCommand };
47
47
 
48
- //# sourceMappingURL=scan-iZF-ydER.js.map
49
- //# debugId=d430300a-703b-513f-bc7d-dac36dba13b4
48
+ //# sourceMappingURL=scan-zowhHQj5.js.map
49
+ //# debugId=2280acdf-43cc-5cbe-b75c-5ca2b5447da9
@@ -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]="d8bdcd43-8968-52b0-a5be-80a092913322")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-5SPbuLyj.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]="0052cb7f-2371-56cd-984a-0a12bc52f409")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-9Q_AofQZ.js";
4
4
  //#region src/cli/utils/should-skip-prompts.ts
5
5
  const shouldSkipPrompts = (input = {}) => Boolean(input.yes) || Boolean(input.json) || isNonInteractiveEnvironment() || !process.stdin.isTTY;
6
6
  //#endregion
7
7
  export { shouldSkipPrompts as t };
8
8
 
9
- //# sourceMappingURL=should-skip-prompts-BvvlROWq.js.map
10
- //# debugId=d8bdcd43-8968-52b0-a5be-80a092913322
9
+ //# sourceMappingURL=should-skip-prompts-DWFgbnKE.js.map
10
+ //# debugId=0052cb7f-2371-56cd-984a-0a12bc52f409
@@ -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]="0b308714-430d-5474-8f8c-71e16028b091")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-5SPbuLyj.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]="d9631fe5-e4c3-5708-87f2-02c2afb424e5")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-9Q_AofQZ.js";
4
4
  //#region src/cli/utils/resolve-tui-environment.ts
5
5
  const resolveTuiEnvironment = (outputIsTty = process.stdout.isTTY === true) => ({
6
6
  isNonInteractiveEnvironment: isNonInteractiveEnvironment(),
@@ -21,5 +21,5 @@ const shouldUseTui = (input) => {
21
21
  //#endregion
22
22
  export { shouldUseTui as n, resolveTuiEnvironment as r, isTuiEnvironmentSupported as t };
23
23
 
24
- //# sourceMappingURL=should-use-tui-BjzxYIbC.js.map
25
- //# debugId=0b308714-430d-5474-8f8c-71e16028b091
24
+ //# sourceMappingURL=should-use-tui-CTkAbfEk.js.map
25
+ //# debugId=d9631fe5-e4c3-5708-87f2-02c2afb424e5
@@ -73,6 +73,32 @@ export default {
73
73
  };
74
74
  ```
75
75
 
76
+ ## Fast Refresh exports
77
+
78
+ Configure known project wrappers and intentional non-component exports without
79
+ turning off `react-doctor/only-export-components`:
80
+
81
+ ```json
82
+ {
83
+ "onlyExportComponents": {
84
+ "customHOCs": ["withErrorBoundary", "withScreenBoundary"],
85
+ "allowExportNames": ["meta"],
86
+ "allowConstantExport": true,
87
+ "checkJS": false
88
+ }
89
+ }
90
+ ```
91
+
92
+ `customHOCs` names component wrappers; `allowExportNames` permits specific named
93
+ exports. `allowConstantExport` permits primitive constant exports, and `checkJS`
94
+ enables checking `.js` files as well as JSX/TSX. Omitted options preserve the
95
+ rule's existing defaults. These settings do not enable a disabled rule.
96
+
76
97
  ## Educating the user
77
98
 
78
99
  When explaining a rule, lead with the "Why it matters" guidance from `rules explain` and, when they want depth, the per-rule recipe at `https://www.react.doctor/prompts/rules/<plugin>/<rule>.md`. Only after they understand it should you offer to disable it — many "bad" rules are catching real issues.
100
+
101
+ Unknown bundled rule IDs in `rules` produce a warning on stderr, including in
102
+ JSON mode. Use `rules list` or `rules explain <rule>` to verify IDs after an
103
+ upgrade. A warning does not change the scan's blocking threshold or rewrite the
104
+ config. Arbitrary custom-plugin namespaces are outside this bundled-ID check.
@@ -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]="b4d4e69b-32c9-5f45-b3e5-0f48da425a18")}catch(e){}}();
3
- import { $ as warmReactCompilerDetection, A as buildGitSourceListingRequest, I as prefetchGitCommand, K as resolveReactDoctorCacheDir, L as prespawnOxlintWorkers, M as buildOxlintWorkerSpawnSpec, W as resolveOxlintWorkerRuntime, _ as SCAN_PREAMBLE_SKIP_FLAGS, g as RUN_GIT_MAX_BUFFER_BYTES, j as buildOxlintChildEnv, q as resolveScanConcurrency, y as SCAN_RESULT_CACHE_GIT_ARGUMENTS, z as resolveConfiguredScanConcurrency } from "./constants-lt2tTZjE.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-af0VF8nQ.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]="3830209a-da9b-5576-975a-70c9fd1fc361")}catch(e){}}();
3
+ import { $ as warmReactCompilerDetection, A as buildGitSourceListingRequest, I as prefetchGitCommand, K as resolveReactDoctorCacheDir, L as prespawnOxlintWorkers, M as buildOxlintWorkerSpawnSpec, W as resolveOxlintWorkerRuntime, _ as SCAN_PREAMBLE_SKIP_FLAGS, g as RUN_GIT_MAX_BUFFER_BYTES, j as buildOxlintChildEnv, q as resolveScanConcurrency, y as SCAN_RESULT_CACHE_GIT_ARGUMENTS, z as resolveConfiguredScanConcurrency } from "./constants-BmD_c3Yq.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-CveNGcRi.js";
5
5
  import * as fs$1 from "node:fs";
6
6
  import * as path$1 from "node:path";
7
7
  //#region src/cli/utils/resolve-prefetch-scan-directory.ts
@@ -64,5 +64,5 @@ try {
64
64
  //#endregion
65
65
  export {};
66
66
 
67
- //# sourceMappingURL=start-scan-preamble-CQy0CKXS.js.map
68
- //# debugId=b4d4e69b-32c9-5f45-b3e5-0f48da425a18
67
+ //# sourceMappingURL=start-scan-preamble-DDAT_0oB.js.map
68
+ //# debugId=3830209a-da9b-5576-975a-70c9fd1fc361
@@ -1,4 +1,4 @@
1
- import "./start-scan-preamble-CQy0CKXS.js";
1
+ import "./start-scan-preamble-DDAT_0oB.js";
2
2
  export {};
3
- !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]="c75807c9-05bd-505c-b079-e56a042483e8")}catch(e){}}();
4
- //# debugId=c75807c9-05bd-505c-b079-e56a042483e8
3
+ !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]="9a303471-5fe5-5af9-80f1-4f567ebf9f64")}catch(e){}}();
4
+ //# debugId=9a303471-5fe5-5af9-80f1-4f567ebf9f64