react-doctor 0.9.23-dev.661cb18 → 0.9.23-dev.8661add

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{build-section-divider-BR5IQ-XQ.js → build-section-divider-DhC5G7HI.js} +5 -5
  2. package/dist/{ci-CqB2d8Ih.js → ci-Cvr76u8X.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-BmD_c3Yq.js → constants-EMNGZNtj.js} +10 -6
  5. package/dist/constants-T2clfs7L.js +2 -2
  6. package/dist/{design-7F1gd8ZR.js → design-BnnudIbA.js} +4 -4
  7. package/dist/{exit-gracefully-Bn4efcrM.js → exit-gracefully-Ci0ot0kI.js} +6 -6
  8. package/dist/{handle-error-BOvlaUvT.js → handle-error-GgeG0xhz.js} +6 -6
  9. package/dist/index.d.ts +16 -1
  10. package/dist/index.js +90 -21
  11. package/dist/{inspect-BKzXcJV-.js → inspect-DCSjL9bK.js} +16 -16
  12. package/dist/{install-hwxNczJX.js → install-B1t_sQs4.js} +10 -10
  13. package/dist/{install-doctor-script-TJ_Jh6QX.js → install-doctor-script-C_sp1SNW.js} +5 -5
  14. package/dist/{install-github-workflow-BKIp1Lio.js → install-github-workflow-vqOaUNdb.js} +6 -6
  15. package/dist/{install-react-doctor-BKjdzRA3.js → install-react-doctor-DrSiNXJu.js} +9 -9
  16. package/dist/{is-cache-globally-disabled-CveNGcRi.js → is-cache-globally-disabled-CYjFzsDs.js} +4 -4
  17. package/dist/{jsx-runtime-DMQUuKzt.js → jsx-runtime-DvW4uQ_B.js} +6 -6
  18. package/dist/{print-branded-header-DZjQ5dCI.js → print-branded-header-DprqOAVI.js} +4 -4
  19. package/dist/{prompt-runtime-scan-url-C_0w1YyN.js → prompt-runtime-scan-url-BfzaTz3J.js} +5 -5
  20. package/dist/{read-object-file-B0zGfH6E.js → read-object-file-S3RTF5cA.js} +4 -4
  21. package/dist/{record-metric-BwYegvoV.js → record-metric-B5AOuso-.js} +87 -22
  22. package/dist/{report-error-Bd9jbzpT.js → report-error-UM7Mc0ty.js} +6 -6
  23. package/dist/{report-workflow-result-DUF3ohoU.js → report-workflow-result-Cv_xR43h.js} +6 -6
  24. package/dist/{resolve-scan-exit-code-D_sTVHU7.js → resolve-scan-exit-code-B0tQh9QI.js} +14 -13
  25. package/dist/{resolve-scope-9PCLZBu5.js → resolve-scope-CQOHcbky.js} +6 -6
  26. package/dist/{rules-AclWXr6Q.js → rules-CXgjciLs.js} +7 -7
  27. package/dist/{run-scan-app-Kt84uh98.js → run-scan-app-Ch8OS9ev.js} +45 -16
  28. package/dist/{runtime-scan-BgS2BPIT.js → runtime-scan-Cdm85BfQ.js} +10 -10
  29. package/dist/{sanitize-runtime-url-DckIVvHM.js → sanitize-runtime-url-_jZDGxuL.js} +4 -4
  30. package/dist/{scan-DQDZUc2P.js → scan-CeMIFbDx.js} +10 -10
  31. package/dist/{should-skip-prompts-DszpotTl.js → should-skip-prompts-N-VXMhFW.js} +4 -4
  32. package/dist/{should-use-tui-C5xnE5qj.js → should-use-tui-DwmvD0ik.js} +4 -4
  33. package/dist/skills/react-doctor/references/explain.md +21 -0
  34. package/dist/{start-scan-preamble-DDAT_0oB.js → start-scan-preamble-Zd-z2ssT.js} +5 -5
  35. package/dist/start-scan-preamble.js +3 -3
  36. package/dist/{telemetry-runtime-BPoDv257.js → telemetry-runtime-Cszh0rsJ.js} +7 -7
  37. package/dist/{version-D_7WsDdj.js → version-CsFKqtqg.js} +5 -5
  38. package/dist/{why-BNyRhp92.js → why-DMImqIxs.js} +4 -4
  39. package/dist/{with-run-span-DWAQaMTM.js → with-run-span-BTtOYjaY.js} +6 -6
  40. package/package.json +2 -2
@@ -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]="0e99d27b-9036-5da7-ba1d-67b739d29340")}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]="462e0f1b-5bfd-5bb4-a0e7-41db20a5af5e")}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_SPLIT_TOTAL_BUDGET_MS, A as buildGitSourceListingRequest, An as TAILWIND_POSTCSS7_COMPAT_ALIAS, B as resolveGitCommand, Bt as MAINTAINABILITY_CATEGORY, Cn as SUPPLY_CHAIN_CACHE_SUBDIR, Dn as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Dt as FILE_LINT_CACHE_MAX_FILE_COUNT, En as SUPPLY_CHAIN_IGNORED_PACKAGES, Et as FILE_LINT_CACHE_FILENAME, F as lowerChildProcessPriority, Fn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Ft as GIT_SOURCE_LISTING_ARGUMENTS, G as resolvePluginPath, Gt as MILLISECONDS_PER_SECOND, H as resolveOxlintThreadCount, Ht as MAINTAINABILITY_PLUGIN, In as VERCEL_NEXTJS_SECURITY_RELEASE_URL, It as HTML_FILE_PATTERN, J as resolveTsConfigRelativePath, Jt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, K as resolveReactDoctorCacheDir, Kt as MINIFIED_SNIFF_BYTES, Lt as IGNORED_DIRECTORIES, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_EXPORT_INTERVAL_MS, Mt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, Nn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Nt as GIT_LS_FILES_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_PLUGIN, Ot as GENERATED_BUNDLE_FILE_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TSCONFIG_FILENAMES, Pt as GIT_SHOW_MAX_BUFFER_BYTES, Q as takeReactCompilerDetection, Qt as OXLINT_SPAWN_TIMEOUT_MS, R as readSystemConcurrencyFacts, Rt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, St as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, Tn as SUPPLY_CHAIN_CATEGORY, Tt as FETCH_TIMEOUT_MS, U as resolveOxlintToolchainVersions, V as resolveOxlintBinary, Vt as MAINTAINABILITY_DUPLICATE_JSX_RULE, W as resolveOxlintWorkerRuntime, Wt as MAX_GLOB_PATTERN_LENGTH_CHARS, X as spawnOxlintWorkerProcess, Xt as OXLINT_OOM_RESCUE_BUDGET_MS, Y as setChildProcessRef, Z as takePrespawnedOxlintWorker, Zt as OXLINT_OUTPUT_MAX_BYTES, _n as SOCKET_PACKAGE_PAGE_BASE, _t as DEFAULT_BRANCH_CANDIDATES, an as REACT_BLOG_RSC_ADVISORY_URL, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, bt as DOCS_RULES_BASE_URL, cn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, ct as AXIOM_TRACES_PATH, d as METRIC_DISTRIBUTION_BOUNDARIES, dn as SCORE_API_URL, en as OXLINT_WORKER_JOB_END_MARKER, et as ABORT_EXIT_CODES, ft as COMPILER_CLEANUP_BUCKET, gn as SOCKET_FREE_USER_AGENT, hn as SOCKET_FREE_PURL_API_BASE, ht as CONFIG_FINGERPRINT_FILENAMES, in as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, it as AXIOM_DATASET_HEADER, j as buildOxlintChildEnv, jn as TARGET_BLANK_BROWSER_SUPPORT, jt as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, kn as SUPPLY_CHAIN_RULE, kt as GENERATED_SOURCE_DIRECTORY_PATTERN, l as INTERNAL_ERROR_JSON_FALLBACK, ln as ROOT_CAUSE_GROUPABLE_RULE_KEYS, mt as CONFIG_CACHE_TTL_MS, nn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, nt as ADOPTED_LINT_CONFIG_MAX_BYTES, on as REACT_ROUTER_CAPABILITY_THRESHOLDS, ot as AXIOM_METRICS_DATASET_HEADER, pn as SIDECAR_LINT_CACHE_FILENAME, pt as COMPILER_CLEANUP_RULE_KEYS, q as resolveScanConcurrency, qt as OCCURRENCE_MATCHED_CATEGORIES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, rt as APP_ONLY_RULE_KEYS, sn as REACT_SERVER_DOM_PACKAGES, st as AXIOM_METRICS_PATH, tn as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCANNED_DOT_DIRECTORIES, vn as SOURCE_FILE_PATTERN, vt as DIAGNOSTIC_CATEGORY_BUCKETS, wn as SUPPLY_CHAIN_CACHE_TTL_MS, wt as ES_TARGET_YEAR_BY_NAME, xn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, yn as SPAWN_ARGS_MAX_LENGTH_CHARS, yt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, z as resolveConfiguredScanConcurrency } from "./constants-BmD_c3Yq.js";
4
+ import { $ as warmReactCompilerDetection, $t as OXLINT_SPLIT_TOTAL_BUDGET_MS, A as buildGitSourceListingRequest, An as TAILWIND_POSTCSS7_COMPAT_ALIAS, B as resolveGitCommand, Bt as MAINTAINABILITY_CATEGORY, Cn as SUPPLY_CHAIN_CACHE_SUBDIR, Dn as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Dt as FILE_LINT_CACHE_MAX_FILE_COUNT, En as SUPPLY_CHAIN_IGNORED_PACKAGES, Et as FILE_LINT_CACHE_FILENAME, F as lowerChildProcessPriority, Fn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Ft as GIT_SOURCE_LISTING_ARGUMENTS, G as resolvePluginPath, Gt as MILLISECONDS_PER_SECOND, H as resolveOxlintThreadCount, Ht as MAINTAINABILITY_PLUGIN, In as VERCEL_NEXTJS_SECURITY_RELEASE_URL, It as HTML_FILE_PATTERN, J as resolveTsConfigRelativePath, Jt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, K as resolveReactDoctorCacheDir, Kt as MINIFIED_SNIFF_BYTES, Ln as VITE_ENTRY_ASSET_FILE_PATTERN, Lt as IGNORED_DIRECTORIES, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_EXPORT_INTERVAL_MS, Mt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, Nn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Nt as GIT_LS_FILES_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_PLUGIN, Ot as GENERATED_BUNDLE_FILE_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TSCONFIG_FILENAMES, Pt as GIT_SHOW_MAX_BUFFER_BYTES, Q as takeReactCompilerDetection, Qt as OXLINT_SPAWN_TIMEOUT_MS, R as readSystemConcurrencyFacts, Rn as VITE_ENTRY_DENSITY_SAMPLE_BYTES, Rt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, St as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, Tn as SUPPLY_CHAIN_CATEGORY, Tt as FETCH_TIMEOUT_MS, U as resolveOxlintToolchainVersions, V as resolveOxlintBinary, Vt as MAINTAINABILITY_DUPLICATE_JSX_RULE, W as resolveOxlintWorkerRuntime, Wt as MAX_GLOB_PATTERN_LENGTH_CHARS, X as spawnOxlintWorkerProcess, Xt as OXLINT_OOM_RESCUE_BUDGET_MS, Y as setChildProcessRef, Z as takePrespawnedOxlintWorker, Zt as OXLINT_OUTPUT_MAX_BYTES, _n as SOCKET_PACKAGE_PAGE_BASE, _t as DEFAULT_BRANCH_CANDIDATES, an as REACT_BLOG_RSC_ADVISORY_URL, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, bt as DOCS_RULES_BASE_URL, cn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, ct as AXIOM_TRACES_PATH, d as METRIC_DISTRIBUTION_BOUNDARIES, dn as SCORE_API_URL, en as OXLINT_WORKER_JOB_END_MARKER, et as ABORT_EXIT_CODES, ft as COMPILER_CLEANUP_BUCKET, gn as SOCKET_FREE_USER_AGENT, hn as SOCKET_FREE_PURL_API_BASE, ht as CONFIG_FINGERPRINT_FILENAMES, in as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, it as AXIOM_DATASET_HEADER, j as buildOxlintChildEnv, jn as TARGET_BLANK_BROWSER_SUPPORT, jt as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, kn as SUPPLY_CHAIN_RULE, kt as GENERATED_SOURCE_DIRECTORY_PATTERN, l as INTERNAL_ERROR_JSON_FALLBACK, ln as ROOT_CAUSE_GROUPABLE_RULE_KEYS, mt as CONFIG_CACHE_TTL_MS, nn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, nt as ADOPTED_LINT_CONFIG_MAX_BYTES, on as REACT_ROUTER_CAPABILITY_THRESHOLDS, ot as AXIOM_METRICS_DATASET_HEADER, pn as SIDECAR_LINT_CACHE_FILENAME, pt as COMPILER_CLEANUP_RULE_KEYS, q as resolveScanConcurrency, qt as OCCURRENCE_MATCHED_CATEGORIES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, rt as APP_ONLY_RULE_KEYS, sn as REACT_SERVER_DOM_PACKAGES, st as AXIOM_METRICS_PATH, tn as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCANNED_DOT_DIRECTORIES, vn as SOURCE_FILE_PATTERN, vt as DIAGNOSTIC_CATEGORY_BUCKETS, wn as SUPPLY_CHAIN_CACHE_TTL_MS, wt as ES_TARGET_YEAR_BY_NAME, xn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, yn as SPAWN_ARGS_MAX_LENGTH_CHARS, yt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, z as resolveConfiguredScanConcurrency, zn as VITE_ENTRY_PRELUDE_SNIFF_BYTES } from "./constants-EMNGZNtj.js";
5
5
  import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
6
6
  import { createRequire } from "node:module";
7
7
  import * as fs$1$2 from "node:fs";
@@ -88,7 +88,7 @@ const unwrapTypescriptExpression = (expression) => {
88
88
  return currentExpression;
89
89
  };
90
90
  //#endregion
91
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-Z9dhela6.js
91
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-BVJbM-5e.js
92
92
  var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
93
93
  const LINGUIST_ATTRIBUTES = ["linguist-generated", "linguist-vendored"];
94
94
  const DISABLED_ATTRIBUTE_VALUES = new Set([
@@ -526,7 +526,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
526
526
  return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
527
527
  };
528
528
  //#endregion
529
- //#region ../core/dist/detect-duplicate-jsx-subtrees-B5UWtUyz.js
529
+ //#region ../core/dist/detect-duplicate-jsx-subtrees-D7-_Z6Mp.js
530
530
  const yieldToEventLoop = () => new Promise((resolve) => {
531
531
  setImmediate(resolve);
532
532
  });
@@ -1090,7 +1090,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
1090
1090
  });
1091
1091
  };
1092
1092
  //#endregion
1093
- //#region ../core/dist/detect-react-compiler-DLpaU8gr.js
1093
+ //#region ../core/dist/detect-react-compiler-DKfPrp2s.js
1094
1094
  const NEXT_CONFIG_FILENAMES = [
1095
1095
  "next.config.js",
1096
1096
  "next.config.mjs",
@@ -64077,17 +64077,19 @@ const collectTypeScriptEmitDuplicateJsPaths = (input) => {
64077
64077
  const isIgnoredDirectoryName = (directoryName) => IGNORED_DIRECTORIES.has(directoryName) || directoryName.startsWith(".") && !SCANNED_DOT_DIRECTORIES.has(directoryName);
64078
64078
  const hasIgnoredPathSegment = (relativePath) => relativePath.split(/[/\\]/).slice(0, -1).some((segment) => isIgnoredDirectoryName(segment));
64079
64079
  const isLintableSourceFile = (filePath) => SOURCE_FILE_PATTERN.test(filePath) && !GENERATED_BUNDLE_FILE_PATTERN.test(filePath) && !GENERATED_SOURCE_DIRECTORY_PATTERN.test(filePath);
64080
+ const hasMinifiedSample = (sample) => {
64081
+ const lines = sample.split("\n");
64082
+ const longestLineLength = lines.reduce((longest, line) => Math.max(longest, line.length), 0);
64083
+ const averageLineLength = sample.length / lines.length;
64084
+ return longestLineLength > 1e3 && averageLineLength > 500;
64085
+ };
64080
64086
  const isMinifiedSource = (absolutePath) => {
64081
64087
  let fileDescriptor;
64082
64088
  try {
64083
64089
  fileDescriptor = fs$1$2.openSync(absolutePath, "r");
64084
64090
  const buffer = Buffer.alloc(MINIFIED_SNIFF_BYTES);
64085
64091
  const bytesRead = fs$1$2.readSync(fileDescriptor, buffer, 0, MINIFIED_SNIFF_BYTES, 0);
64086
- const prefix = buffer.toString("utf8", 0, bytesRead);
64087
- const lines = prefix.split("\n");
64088
- const longestLineLength = lines.reduce((longest, line) => Math.max(longest, line.length), 0);
64089
- const averageLineLength = prefix.length / lines.length;
64090
- return longestLineLength > 1e3 && averageLineLength > 500;
64092
+ return hasMinifiedSample(buffer.toString("utf8", 0, bytesRead));
64091
64093
  } catch {
64092
64094
  return false;
64093
64095
  } finally {
@@ -64110,6 +64112,37 @@ const isLargeMinifiedFile = (absolutePath, knownSizeBytes) => {
64110
64112
  cachedIsLargeMinifiedByPath.set(absolutePath, result);
64111
64113
  return result;
64112
64114
  };
64115
+ const MODULE_PRELOAD_POLYFILL_START = /^\(function\(\)\{(?:const|let|var) [\w$]+=document\.createElement\((?:"link"|'link')\)\.relList;/;
64116
+ const MODULE_PRELOAD_POLYFILL_MARKERS = [
64117
+ /\.supports\((?:"modulepreload"|'modulepreload')\)/,
64118
+ /document\.querySelectorAll\([^)]*link\[rel=["']modulepreload["']\]/,
64119
+ /new MutationObserver\(/,
64120
+ /\.observe\(document,/
64121
+ ];
64122
+ const isMinifiedViteEntry = (absolutePath, knownSizeBytes) => {
64123
+ if (!VITE_ENTRY_ASSET_FILE_PATTERN.test(absolutePath)) return false;
64124
+ const sizeBytes = knownSizeBytes === void 0 ? statSourceFileSize(absolutePath) : knownSizeBytes;
64125
+ if (sizeBytes === null || sizeBytes < 131072) return false;
64126
+ let fileDescriptor;
64127
+ try {
64128
+ fileDescriptor = fs$1$2.openSync(absolutePath, "r");
64129
+ const buffer = Buffer.alloc(VITE_ENTRY_DENSITY_SAMPLE_BYTES);
64130
+ const preludeBytesRead = fs$1$2.readSync(fileDescriptor, buffer, 0, VITE_ENTRY_PRELUDE_SNIFF_BYTES, 0);
64131
+ const prelude = buffer.toString("utf8", 0, preludeBytesRead);
64132
+ const polyfillEndOffset = prelude.indexOf("})();");
64133
+ if (polyfillEndOffset === -1) return false;
64134
+ const polyfill = prelude.slice(0, polyfillEndOffset);
64135
+ if (!MODULE_PRELOAD_POLYFILL_START.test(polyfill) || !MODULE_PRELOAD_POLYFILL_MARKERS.every((marker) => marker.test(polyfill))) return false;
64136
+ const middleOffset = Math.max(MINIFIED_SNIFF_BYTES, Math.floor((sizeBytes - VITE_ENTRY_DENSITY_SAMPLE_BYTES) / 2));
64137
+ const tailOffset = sizeBytes - VITE_ENTRY_DENSITY_SAMPLE_BYTES;
64138
+ for (const offset of [middleOffset, tailOffset]) if (fs$1$2.readSync(fileDescriptor, buffer, 0, 32768, offset) !== 32768 || !hasMinifiedSample(buffer.toString("utf8"))) return false;
64139
+ return true;
64140
+ } catch {
64141
+ return false;
64142
+ } finally {
64143
+ if (fileDescriptor !== void 0) fs$1$2.closeSync(fileDescriptor);
64144
+ }
64145
+ };
64113
64146
  const isMissingPath = (absolutePath) => {
64114
64147
  try {
64115
64148
  fs$1$2.statSync(absolutePath);
@@ -64140,7 +64173,7 @@ const toSizedSourceFileEntry = (rootDirectory, relativePath) => {
64140
64173
  const absolutePath = path$1$1.resolve(rootDirectory, relativePath);
64141
64174
  const sizeBytes = statSourceFileSize(absolutePath);
64142
64175
  if (sizeBytes === null && isMissingPath(absolutePath)) return null;
64143
- if (isLargeMinifiedFile(absolutePath, sizeBytes)) return null;
64176
+ if (isLargeMinifiedFile(absolutePath, sizeBytes) || isMinifiedViteEntry(absolutePath, sizeBytes)) return null;
64144
64177
  return {
64145
64178
  path: relativePath,
64146
64179
  sizeBytes: sizeBytes ?? 0
@@ -67983,6 +68016,32 @@ const validateSeverityMap = (fieldName, rawMap, keysAreCategories = false) => {
67983
68016
  }
67984
68017
  return validated;
67985
68018
  };
68019
+ const ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS = ["allowExportNames", "customHOCs"];
68020
+ const ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS = ["allowConstantExport", "checkJS"];
68021
+ const validateOnlyExportComponentsField = (rawOptions) => {
68022
+ if (!isRecord(rawOptions)) {
68023
+ warnConfigIssue(`config field "onlyExportComponents" must be an object (got ${typeof rawOptions}); ignoring this field.`);
68024
+ return;
68025
+ }
68026
+ const validated = {};
68027
+ for (const [key, value] of Object.entries(rawOptions)) {
68028
+ const fieldName = `onlyExportComponents.${key}`;
68029
+ const stringArrayKey = ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS.find((candidateKey) => candidateKey === key);
68030
+ if (stringArrayKey !== void 0) {
68031
+ const entries = validateStringArrayField(fieldName, value);
68032
+ if (entries !== void 0) validated[stringArrayKey] = entries;
68033
+ continue;
68034
+ }
68035
+ const booleanKey = ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS.find((candidateKey) => candidateKey === key);
68036
+ if (booleanKey !== void 0) {
68037
+ const flag = coerceMaybeBooleanString(fieldName, value);
68038
+ if (flag !== void 0) validated[booleanKey] = flag;
68039
+ continue;
68040
+ }
68041
+ warnConfigIssue(`config field "${fieldName}" is not a known option (expected one of: ${[...ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS, ...ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS].join(", ")}); ignoring.`);
68042
+ }
68043
+ return validated;
68044
+ };
67986
68045
  const applyFieldValidator = (config, validated, fieldName, validator) => {
67987
68046
  const raw = config[fieldName];
67988
68047
  if (raw === void 0) return;
@@ -67997,6 +68056,7 @@ const validateConfigTypes = (config) => {
67997
68056
  for (const fieldName of STRING_ARRAY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateStringArrayField(fieldName, value));
67998
68057
  applyFieldValidator(config, validated, "ignore", validateIgnoreField);
67999
68058
  applyFieldValidator(config, validated, "surfaces", validateSurfacesField);
68059
+ applyFieldValidator(config, validated, "onlyExportComponents", validateOnlyExportComponentsField);
68000
68060
  for (const fieldName of SEVERITY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateSeverityMap(fieldName, value, fieldName === "categories"));
68001
68061
  applyFieldValidator(config, validated, "plugins", (value) => validateStringArrayField("plugins", value));
68002
68062
  for (const ruleKey of getUnknownBundledRuleKeys(validated.rules)) warnConfigIssue(`config field "rules.${ruleKey}" is not a known bundled rule; this override has no effect. Run "react-doctor rules list" to find its rule ID.`);
@@ -72378,7 +72438,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
72378
72438
  }
72379
72439
  return enabled;
72380
72440
  };
72381
- const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
72441
+ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, onlyExportComponents, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
72382
72442
  const hasIncludedTags = includedTags.size > 0;
72383
72443
  const resolvedReactHooksJsPlugin = disableReactHooksJsPlugin || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
72384
72444
  const reactHooksJsPlugin = ruleSelection === "sidecar" ? null : resolvedReactHooksJsPlugin;
@@ -72461,6 +72521,7 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
72461
72521
  } : {},
72462
72522
  ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
72463
72523
  ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
72524
+ ...onlyExportComponents !== void 0 ? { onlyExportComponents } : {},
72464
72525
  ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
72465
72526
  }
72466
72527
  },
@@ -72471,6 +72532,12 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
72471
72532
  }
72472
72533
  };
72473
72534
  };
72535
+ const internWorkerSidecarProbeIds = (result, trace, internRelativeProbe) => {
72536
+ const probeIds = [];
72537
+ for (const pathIndex of trace.content) probeIds.push(internRelativeProbe("content", result.paths[pathIndex], null));
72538
+ for (const pathIndex of trace.existence) probeIds.push(internRelativeProbe("exists", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
72539
+ return probeIds;
72540
+ };
72474
72541
  const TIMELINE_PATH = process.env.REACT_DOCTOR_OXLINT_SPAWN_LOG;
72475
72542
  const isOxlintJobTimelineEnabled = TIMELINE_PATH !== void 0;
72476
72543
  const appendTimelineLine = (entry) => {
@@ -74035,8 +74102,8 @@ const REACT_COMPILER_TITLE = "React Compiler can't optimize this";
74035
74102
  const REACT_COMPILER_TODO_TITLE = "React Compiler doesn't support this syntax";
74036
74103
  const REACT_ERROR_BOUNDARY_TITLE = "JSX render errors need an Error Boundary";
74037
74104
  const REACT_ERROR_BOUNDARY_MESSAGE = "This try/catch cannot catch errors thrown while the JSX child renders. Use an Error Boundary instead.";
74038
- const REACT_COMPILER_IMPACT = "This component misses React Compiler's automatic memoization & re-renders more than it should";
74039
- const REACT_COMPILER_ACTION = "Rewrite the flagged code so the compiler can optimize it.";
74105
+ const REACT_COMPILER_IMPACT = "React Compiler flagged this code during analysis";
74106
+ const REACT_COMPILER_ACTION = "Review the compiler's reason before changing the code.";
74040
74107
  const REACT_COMPILER_INCOMPATIBLE_LIBRARY_ACTION = "It's how the library works, not a bug in your code. Memoize values you pass from it into other memoized components, or suppress it with `// react-doctor-disable-next-line react-hooks-js/incompatible-library`.";
74041
74108
  const SET_STATE_IN_EFFECT_ACTION = "Prefer deriving or initializing the value before render. If the effect must read a browser API after mount, treat this as advisory or suppress it with `// react-doctor-disable-next-line react-hooks-js/set-state-in-effect`.";
74042
74109
  const REACT_COMPILER_GENERIC_MESSAGE = `${REACT_COMPILER_IMPACT}. ${REACT_COMPILER_ACTION}`;
@@ -74222,7 +74289,7 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
74222
74289
  const absolutePath = resolveAbsolutePath(resolveSourceFilename(filename));
74223
74290
  const cached = minifiedFileCache.get(absolutePath);
74224
74291
  if (cached !== void 0) return cached;
74225
- const minified = isMinifiedSource(absolutePath);
74292
+ const minified = isMinifiedSource(absolutePath) || isMinifiedViteEntry(absolutePath);
74226
74293
  minifiedFileCache.set(absolutePath, minified);
74227
74294
  return minified;
74228
74295
  };
@@ -75041,10 +75108,7 @@ const collectSidecarProbesForFiles = async (input) => {
75041
75108
  probeIdsByFile.set(file, null);
75042
75109
  continue;
75043
75110
  }
75044
- const probeIds = [];
75045
- for (const pathIndex of trace.content) probeIds.push(internRelativeProbe("content", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
75046
- for (const pathIndex of trace.existence) probeIds.push(internRelativeProbe("exists", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
75047
- probeIdsByFile.set(file, probeIds);
75111
+ probeIdsByFile.set(file, internWorkerSidecarProbeIds(result, trace, internRelativeProbe));
75048
75112
  }
75049
75113
  };
75050
75114
  const runParentLane = async () => {
@@ -75227,6 +75291,7 @@ const runOxlint = async (options) => {
75227
75291
  runtimeGlobals,
75228
75292
  unpluginAutoImportGlobalScopes,
75229
75293
  serverAuthFunctionNames,
75294
+ onlyExportComponents: userConfig?.onlyExportComponents,
75230
75295
  projectIndexModuleSources,
75231
75296
  severityControls,
75232
75297
  adoptedSettings,
@@ -77771,7 +77836,7 @@ const makeNoopConsole = () => ({
77771
77836
  });
77772
77837
  //#endregion
77773
77838
  //#region src/cli/utils/version.ts
77774
- const VERSION = "0.9.23-dev.661cb18";
77839
+ const VERSION = "0.9.23-dev.8661add";
77775
77840
  //#endregion
77776
77841
  //#region src/cli/utils/json-mode.ts
77777
77842
  let context = null;
@@ -78115,5 +78180,5 @@ const recordDistribution = (name, value, options = {}) => {
78115
78180
  //#endregion
78116
78181
  export { buildRuleSeverityControls as $, runInspect as $t, Files as A, buildWithScope as An, hasPublishedFixRecipe as At, PerFileLintCacheEnabled as B, yieldToEventLoop as Bn, listSourceFiles as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, provideContext as Cn, getChangedLineRanges as Ct, isCodingAgentEnvironment as D, sync as Dn, getRuleMetadata as Dt, isCiOrCodingAgentEnvironment as E, runSync as En, getEquivalentRuleKeys as Et, Linter as F, makeUnsafe$5 as Fn, isProjectDiscoveryError as Ft, SidecarLintCacheEnabled as G, isFile as Gn, materializeSourceTree as Gt, Project as H, toCanonicalPath as Hn, listWorkspacePackages as Ht, Maintainability as I, fail$5 as In, isReactDoctorError as It, anonymizeInPlace as J, remainingDeadlineBudgetMs as Jt, StagedFiles as K, isPlainObject as Kn, mergeAndFilterDiagnostics as Kt, NodeResolver as L, void_$1 as Ln, isSameRuleKey as Lt, InvocationCaches as M, provide$2 as Mn, hashFileContents as Mt, LEGACY_CONFIG_FILENAME as N, succeed$3 as Nn, highlighter as Nt, Config as O, try_ as On, getUnknownBundledRuleKeys as Ot, LintPartialFailures as P, close as Pn, isPathInsideDirectory as Pt, buildRuleDocsUrl as Q, restoreLegacyThrow as Qt, OxlintConcurrency as R, ParentSpan as Rn, isScanComplete as Rt, isDebugFlagEnabled as S, provide as Sn, getBaselineDiffPlan as St, isCiEnvironment as T, runPromise as Tn, getDiffInfo as Tt, Reporter as U, isDirectory as Un, loadConfigWithSource as Ut, Progress as V, messageFromUnknown as Vn, listSourceFilesCooperative as Vt, Score as W, isErrnoException as Wn, mapWithConcurrency as Wt, atomicWriteJson as X, resolveLintBatchOrdering as Xt, anonymizeText as Y, resolveGithubActionsScoreMetadata as Yt, buildJsonReport as Z, resolveScanTarget as Zt, VERSION as _, gen as _n, findGitRepositoryRoot as _t, isEnvFlagEnabled as a, validateConfigTypes as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, orElseSucceed as bn, formatErrorChain as bt, setSentryProjectInfo as c, Console as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, log as dn, createOxlintSpawnSlots as dt, scrubSensitivePaths as en, buildSkippedChecks as et, setJsonReportDirectory as f, warn$1 as fn, detectAiTrainingEnvironment as ft, writeJsonReport as g, make$30 as gn, filterSourceFiles as gt, writeJsonErrorReport as h, decodeUnknownSync as hn, filterPathsOutsideDirectories as ht, isTelemetryEnabled as i, toRelativePath as in, clearConfigCache as it, Git as j, mergeAll$1 as jn, hasSupportedFrameworkOrLibrary as jt, DIAGNOSTIC_DELTA_IDENTITY as k, void_ as kn, groupBy as kt, getRunId as l, error as ln, createChangedLineMatcher as lt, writeJsonCancellationReport as m, JsonReport as mn, filterDiagnosticsForSurface as mt, recordDistribution as n, shouldUseMaintainabilityLayer as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, warmDuplicateJsxWorker as on, computeConfigFingerprint as ot, setJsonReportMode as p, Diagnostic as pn, discoverSupportedSubprojects as pt, SupplyChain as q, mergeReactDoctorConfigs as qt, toSpanAttributes as r, summarizeDiagnostics as rn, classifyFileContext as rt, buildSentryProjectContext as s, warmOxlintWorkerPool as sn, computeDiagnosticDelta as st, recordCount as t, setColorEnabled as tn, calculateScore as tt, enableJsonMode as u, info as un, createInvocationCaches as ut, makeNoopConsole as v, makeSpan$1 as vn, findLegacyConfig as vt, detectRunnerOs as w, provideService as wn, getDiagnosticRuleIdentity as wt, isGitHookEnvironment as x, promise as xn, formatReactDoctorError as xt, CliInputError as y, map$3 as yn, fingerprintDiagnosticEvidence as yt, OxlintSpawnSlots as z, isMonorepoRoot as zn, layerObservability as zt };
78117
78182
 
78118
- //# sourceMappingURL=record-metric-BwYegvoV.js.map
78119
- //# debugId=0e99d27b-9036-5da7-ba1d-67b739d29340
78183
+ //# sourceMappingURL=record-metric-B5AOuso-.js.map
78184
+ //# debugId=462e0f1b-5bfd-5bb4-a0e7-41db20a5af5e
@@ -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]="df912a6e-0ff0-53f1-80a0-614f10095172")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-BmD_c3Yq.js";
4
- import { It as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-BwYegvoV.js";
5
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-BPoDv257.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]="f042126b-771a-5bff-88af-86525f80ee9c")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-EMNGZNtj.js";
4
+ import { It as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-B5AOuso-.js";
5
+ import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-Cszh0rsJ.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-Bd9jbzpT.js.map
65
- //# debugId=df912a6e-0ff0-53f1-80a0-614f10095172
64
+ //# sourceMappingURL=report-error-UM7Mc0ty.js.map
65
+ //# debugId=f042126b-771a-5bff-88af-86525f80ee9c
@@ -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]="2fe45a23-76ff-5242-894e-c621cf4b2745")}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-BwYegvoV.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-BKIp1Lio.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]="ea100b72-4acb-5659-a5d4-5987ceb1224c")}catch(e){}}();
3
+ import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-EMNGZNtj.js";
4
+ import { t as recordCount } from "./record-metric-B5AOuso-.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-vqOaUNdb.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-DUF3ohoU.js.map
293
- //# debugId=2fe45a23-76ff-5242-894e-c621cf4b2745
292
+ //# sourceMappingURL=report-workflow-result-Cv_xR43h.js.map
293
+ //# debugId=ea100b72-4acb-5659-a5d4-5987ceb1224c
@@ -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]="f0949333-af08-5d6d-9790-1f5fab208f9c")}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-BwYegvoV.js";
6
- import { t as getTelemetryContext } from "./telemetry-runtime-BPoDv257.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]="40b4ab3e-3b99-55ab-924f-6a50051ad5b3")}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-EMNGZNtj.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-CYjFzsDs.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-B5AOuso-.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-Cszh0rsJ.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-BR5IQ-XQ.js";
8
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-DhC5G7HI.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-TJ_Jh6QX.js";
12
- import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-BKIp1Lio.js";
13
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-9PCLZBu5.js";
14
- import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-DWAQaMTM.js";
15
- import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-DUF3ohoU.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-C_sp1SNW.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-vqOaUNdb.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-CQOHcbky.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-BTtOYjaY.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-Cv_xR43h.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,6 +557,7 @@ 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,
561
562
  unknownBundledRuleCount: getUnknownBundledRuleKeys(input.userConfig?.rules).length,
562
563
  rulesDisabled: ruleKeys.filter((key) => ruleOverrides[key] === "off").length,
@@ -3179,5 +3180,5 @@ const resolveScanExitCode = (input) => {
3179
3180
  //#endregion
3180
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 };
3181
3182
 
3182
- //# sourceMappingURL=resolve-scan-exit-code-D_sTVHU7.js.map
3183
- //# debugId=f0949333-af08-5d6d-9790-1f5fab208f9c
3183
+ //# sourceMappingURL=resolve-scan-exit-code-B0tQh9QI.js.map
3184
+ //# debugId=40b4ab3e-3b99-55ab-924f-6a50051ad5b3
@@ -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]="bd1004e2-50fb-50f4-80c3-421d1c59abc1")}catch(e){}}();
3
- import { Hn as toCanonicalPath, Pt as isPathInsideDirectory, gt as filterSourceFiles } from "./record-metric-BwYegvoV.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]="0d2175ad-d2c5-570a-aff9-71c649017e73")}catch(e){}}();
3
+ import { Hn as toCanonicalPath, Pt as isPathInsideDirectory, gt as filterSourceFiles } from "./record-metric-B5AOuso-.js";
4
4
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
5
- import { N as cliLogger } from "./install-doctor-script-TJ_Jh6QX.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-BKIp1Lio.js";
5
+ import { N as cliLogger } from "./install-doctor-script-C_sp1SNW.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-vqOaUNdb.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-9PCLZBu5.js.map
338
- //# debugId=bd1004e2-50fb-50f4-80c3-421d1c59abc1
337
+ //# sourceMappingURL=resolve-scope-CQOHcbky.js.map
338
+ //# debugId=0d2175ad-d2c5-570a-aff9-71c649017e73
@@ -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]="a4462b21-fa0f-5033-8634-1630946d21fb")}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-BwYegvoV.js";
5
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-TJ_Jh6QX.js";
6
- import { t as readObjectFile } from "./read-object-file-B0zGfH6E.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]="812422c5-4d9c-5bf6-b07a-fac2b80a91a3")}catch(e){}}();
3
+ import { ft as COMPILER_CLEANUP_BUCKET, pt as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-EMNGZNtj.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-B5AOuso-.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-C_sp1SNW.js";
6
+ import { t as readObjectFile } from "./read-object-file-S3RTF5cA.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-AclWXr6Q.js.map
582
- //# debugId=a4462b21-fa0f-5033-8634-1630946d21fb
581
+ //# sourceMappingURL=rules-CXgjciLs.js.map
582
+ //# debugId=812422c5-4d9c-5bf6-b07a-fac2b80a91a3
@@ -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]="40c24b6b-299b-50f5-9e9c-695ba27cb5da")}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-BwYegvoV.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]="f0e49f3d-5008-527f-95c4-f65f45d052db")}catch(e){}}();
3
+ import { At as GITHUB_ACTIONS_SETUP_URL, Bn as getCategoryImpact, D as TUI_REPORT_COMPACT_MAX_ROWS, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, o as CI_TRUST_COMPANIES, u as METRIC, vt as DIAGNOSTIC_CATEGORY_BUCKETS } from "./constants-EMNGZNtj.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-B5AOuso-.js";
5
5
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
6
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-TJ_Jh6QX.js";
7
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-BKIp1Lio.js";
8
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-9PCLZBu5.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-D_sTVHU7.js";
10
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-DUF3ohoU.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-DMQUuKzt.js";
6
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-C_sp1SNW.js";
7
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-vqOaUNdb.js";
8
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CQOHcbky.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-B0tQh9QI.js";
10
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-Cv_xR43h.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-DvW4uQ_B.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-Kt84uh98.js.map
2528
- //# debugId=40c24b6b-299b-50f5-9e9c-695ba27cb5da
2556
+ //# sourceMappingURL=run-scan-app-Ch8OS9ev.js.map
2557
+ //# debugId=f0e49f3d-5008-527f-95c4-f65f45d052db
@@ -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]="0f7fd550-8b2f-561f-83cb-41e4bbdce558")}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-BwYegvoV.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]="93f7a7dd-4198-5f01-b62c-1c12e3183396")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-EMNGZNtj.js";
4
+ import { Nt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-B5AOuso-.js";
5
5
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
6
- import { t as reportErrorToSentry } from "./report-error-Bd9jbzpT.js";
7
- import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-DWAQaMTM.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-DckIVvHM.js";
9
- import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-C5xnE5qj.js";
6
+ import { t as reportErrorToSentry } from "./report-error-UM7Mc0ty.js";
7
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-BTtOYjaY.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-_jZDGxuL.js";
9
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-DwmvD0ik.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-C_0w1YyN.js");
723
+ const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-BfzaTz3J.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-BgS2BPIT.js.map
771
- //# debugId=0f7fd550-8b2f-561f-83cb-41e4bbdce558
770
+ //# sourceMappingURL=runtime-scan-Cdm85BfQ.js.map
771
+ //# debugId=93f7a7dd-4198-5f01-b62c-1c12e3183396
@@ -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]="fbd4b88b-e7b7-5428-a7a4-05759386d24e")}catch(e){}}();
3
- import { y as CliInputError } from "./record-metric-BwYegvoV.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]="18bd274d-a47f-54f3-8168-fbe6cedb5d61")}catch(e){}}();
3
+ import { y as CliInputError } from "./record-metric-B5AOuso-.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-DckIVvHM.js.map
76
- //# debugId=fbd4b88b-e7b7-5428-a7a4-05759386d24e
75
+ //# sourceMappingURL=sanitize-runtime-url-_jZDGxuL.js.map
76
+ //# debugId=18bd274d-a47f-54f3-8168-fbe6cedb5d61