react-doctor 0.9.22 → 0.9.23-dev.dfffab3

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-BFxWf70B.js} +5 -5
  2. package/dist/{ci-BWu53Ijl.js → ci-CLtdQCIE.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-BMqPn207.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-BMgB2pVu.js → exit-gracefully-Bhyw-8gk.js} +6 -6
  9. package/dist/{handle-error-CoIUQwLf.js → handle-error-BJ_4E2kS.js} +6 -6
  10. package/dist/index.d.ts +5 -2
  11. package/dist/index.js +215 -38
  12. package/dist/{inspect-D4QLdCtm.js → inspect-BuLr42QI.js} +16 -16
  13. package/dist/{install-R6-fv9t4.js → install-DsuiRD1t.js} +10 -10
  14. package/dist/{install-doctor-script-D9-Bdbx6.js → install-doctor-script-DJ6UbhZJ.js} +5 -5
  15. package/dist/{install-github-workflow-B01vSPPa.js → install-github-workflow-BNRbJHjd.js} +6 -6
  16. package/dist/{install-react-doctor-DZnPIaiY.js → install-react-doctor-BcsOSw5y.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-BDdabT1T.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-BegpykMJ.js → print-branded-header-BFh1P9t6.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-CRx8qrV0.js} +5 -5
  23. package/dist/{read-object-file-Bd06Y-EV.js → read-object-file-D3pRnLyV.js} +4 -4
  24. package/dist/{record-metric-5SPbuLyj.js → record-metric-CWxS2npr.js} +200 -40
  25. package/dist/{report-error-DayUUIc-.js → report-error-DA8uMulb.js} +6 -6
  26. package/dist/{report-workflow-result-tdrT9lW-.js → report-workflow-result-D6NNwRMm.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-DWrr-Xuv.js → resolve-scan-exit-code-DE6AIQwU.js} +41 -30
  28. package/dist/{resolve-scope-OdFJKZGv.js → resolve-scope-B3xmSQ0a.js} +6 -6
  29. package/dist/{rules-DNgtXPXx.js → rules-CHxjoZwR.js} +7 -7
  30. package/dist/{run-scan-app-COJWBnqC.js → run-scan-app-BuI_XZcx.js} +11 -11
  31. package/dist/{runtime-scan-CkpS56h8.js → runtime-scan-0pSZm3M0.js} +10 -10
  32. package/dist/{sanitize-runtime-url-fwyTS789.js → sanitize-runtime-url-BCw_Ixks.js} +4 -4
  33. package/dist/{scan-iZF-ydER.js → scan-Be7a-iK7.js} +10 -10
  34. package/dist/{should-skip-prompts-BvvlROWq.js → should-skip-prompts-CDudIC40.js} +4 -4
  35. package/dist/{should-use-tui-BjzxYIbC.js → should-use-tui-HuQLii4U.js} +4 -4
  36. package/dist/skills/react-doctor/references/explain.md +5 -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-De9QafWu.js} +13 -7
  40. package/dist/{version-BasyRE1W.js → version-uDDHk7KW.js} +5 -5
  41. package/dist/{why-ni8gAKZe.js → why-Dww_fJtq.js} +4 -4
  42. package/dist/{with-run-span-eDYTicUo.js → with-run-span-CRYkeESN.js} +6 -6
  43. package/package.json +4 -4
@@ -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]="c36ee147-6fe8-557a-b773-ce78a6442c50")}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-CWxS2npr.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-De9QafWu.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-BFxWf70B.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-DJ6UbhZJ.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-BNRbJHjd.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-B3xmSQ0a.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-CRYkeESN.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-D6NNwRMm.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";
@@ -558,6 +558,7 @@ const buildScanAttributes = (input) => {
558
558
  hasCustomConfig: input.hasCustomConfig,
559
559
  customRulesOnly: input.userConfig?.customRulesOnly ?? false,
560
560
  rulesConfigured: ruleKeys.length,
561
+ unknownBundledRuleCount: getUnknownBundledRuleKeys(input.userConfig?.rules).length,
561
562
  rulesDisabled: ruleKeys.filter((key) => ruleOverrides[key] === "off").length,
562
563
  projectAnalysisRuleCount: countOptInProjectRuleSelections(buildRuleSeverityControls(input.userConfig)),
563
564
  fileCount: input.result?.scannedFileCount,
@@ -1288,23 +1289,31 @@ const resolveSafeSourcePath = (rootDirectory, filePath) => {
1288
1289
  return null;
1289
1290
  }
1290
1291
  };
1291
- const readSourceRecord = (rootDirectory, filePath, state) => {
1292
+ const readSourceRecord = (rootDirectory, filePath, state, requiresSourceFile = false) => {
1292
1293
  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
- }
1294
+ let record = state.recordByFilePath.get(normalizedFilePath);
1295
+ if (record === null) return null;
1299
1296
  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);
1297
+ if (record === void 0) {
1298
+ const absolutePath = resolveSafeSourcePath(rootDirectory, normalizedFilePath);
1299
+ if (absolutePath === null) {
1300
+ state.recordByFilePath.set(normalizedFilePath, null);
1301
+ return null;
1302
+ }
1303
+ const sourceText = fs.readFileSync(absolutePath, "utf-8");
1304
+ let parsedSourceFile;
1305
+ record = {
1306
+ absolutePath,
1307
+ filePath: normalizedFilePath,
1308
+ get sourceFile() {
1309
+ parsedSourceFile ??= typescriptBinding.createSourceFile(absolutePath, sourceText, typescriptBinding.ScriptTarget.Latest, true, getScriptKind(absolutePath));
1310
+ return parsedSourceFile;
1311
+ },
1312
+ sourceText
1313
+ };
1314
+ state.recordByFilePath.set(normalizedFilePath, record);
1315
+ }
1316
+ if (requiresSourceFile) record.sourceFile;
1308
1317
  return record;
1309
1318
  } catch {
1310
1319
  state.recordByFilePath.set(normalizedFilePath, null);
@@ -1314,7 +1323,7 @@ const readSourceRecord = (rootDirectory, filePath, state) => {
1314
1323
  const listSourceRecords = (rootDirectory, state) => {
1315
1324
  if (state.sourceRecords !== null) return state.sourceRecords;
1316
1325
  state.sourceRecords = listSourceFiles(rootDirectory).flatMap((filePath) => {
1317
- const record = readSourceRecord(rootDirectory, filePath, state);
1326
+ const record = readSourceRecord(rootDirectory, filePath, state, true);
1318
1327
  return record === null ? [] : [record];
1319
1328
  });
1320
1329
  return state.sourceRecords;
@@ -1573,6 +1582,8 @@ const createDiagnosticEvidenceReader = (rootDirectory, options = {}) => {
1573
1582
  return (diagnostic) => {
1574
1583
  const record = readSourceRecord(rootDirectory, diagnostic.filePath, state);
1575
1584
  if (record === null || !Number.isInteger(diagnostic.line)) return null;
1585
+ const shouldResolveForwardedHandlers = Boolean(options.resolveForwardedHandlers);
1586
+ if (shouldResolveForwardedHandlers && readSourceRecord(rootDirectory, diagnostic.filePath, state, true) === null) return null;
1576
1587
  const sourceLines = record.sourceText.split(/\r?\n/);
1577
1588
  const startLineIndex = Math.max(0, diagnostic.line - 1);
1578
1589
  const endLineIndex = Math.max(startLineIndex, (diagnostic.endLine ?? diagnostic.line) - 1);
@@ -1581,7 +1592,7 @@ const createDiagnosticEvidenceReader = (rootDirectory, options = {}) => {
1581
1592
  const end = index === lines.length - 1 && diagnostic.endColumn !== void 0 ? diagnostic.endColumn - 1 : void 0;
1582
1593
  return line.slice(start, end);
1583
1594
  }).join("\n");
1584
- if (!options.resolveForwardedHandlers) return evidence;
1595
+ if (!shouldResolveForwardedHandlers) return evidence;
1585
1596
  const propNames = new Set(evidence.match(/\bon[A-Z]\w*\b/g) ?? []);
1586
1597
  if (propNames.size === 0) return evidence;
1587
1598
  const component = findEnclosingComponent(record, diagnostic);
@@ -3168,5 +3179,5 @@ const resolveScanExitCode = (input) => {
3168
3179
  //#endregion
3169
3180
  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
3181
 
3171
- //# sourceMappingURL=resolve-scan-exit-code-DWrr-Xuv.js.map
3172
- //# debugId=ee91285e-0d26-596a-ad4c-9b611518ec5f
3182
+ //# sourceMappingURL=resolve-scan-exit-code-DE6AIQwU.js.map
3183
+ //# debugId=c36ee147-6fe8-557a-b773-ce78a6442c50
@@ -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]="9f8e412c-e894-5202-be89-f22fe8c74823")}catch(e){}}();
3
+ import { Hn as toCanonicalPath, Pt as isPathInsideDirectory, gt as filterSourceFiles } from "./record-metric-CWxS2npr.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-DJ6UbhZJ.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-BNRbJHjd.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-B3xmSQ0a.js.map
338
+ //# debugId=9f8e412c-e894-5202-be89-f22fe8c74823
@@ -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]="19f6ef60-a375-5f05-b550-8fc1494dd6cd")}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-CWxS2npr.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DJ6UbhZJ.js";
6
+ import { t as readObjectFile } from "./read-object-file-D3pRnLyV.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-CHxjoZwR.js.map
582
+ //# debugId=19f6ef60-a375-5f05-b550-8fc1494dd6cd
@@ -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]="ab5f7eba-4cf1-5034-aac7-48e7e8ff4003")}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-CWxS2npr.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-DJ6UbhZJ.js";
7
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-BNRbJHjd.js";
8
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-B3xmSQ0a.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-DE6AIQwU.js";
10
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-D6NNwRMm.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-BDdabT1T.js";
12
12
  import path from "node:path";
13
13
  import { performance } from "node:perf_hooks";
14
14
  import isUnicodeSupported from "is-unicode-supported";
@@ -2524,5 +2524,5 @@ const runScanApp = async (input) => {
2524
2524
  //#endregion
2525
2525
  export { runScanApp };
2526
2526
 
2527
- //# sourceMappingURL=run-scan-app-COJWBnqC.js.map
2528
- //# debugId=dea93b3f-ab59-5b4f-b733-b70fb68e035d
2527
+ //# sourceMappingURL=run-scan-app-BuI_XZcx.js.map
2528
+ //# debugId=ab5f7eba-4cf1-5034-aac7-48e7e8ff4003
@@ -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]="520e6908-2189-5386-be95-9f2b291f7047")}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-CWxS2npr.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-DA8uMulb.js";
7
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-CRYkeESN.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-BCw_Ixks.js";
9
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-HuQLii4U.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-CRx8qrV0.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-0pSZm3M0.js.map
771
+ //# debugId=520e6908-2189-5386-be95-9f2b291f7047
@@ -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]="df7dcbb9-9477-5d51-b403-5db8ceda89b6")}catch(e){}}();
3
+ import { y as CliInputError } from "./record-metric-CWxS2npr.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-BCw_Ixks.js.map
76
+ //# debugId=df7dcbb9-9477-5d51-b403-5db8ceda89b6
@@ -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]="099a1977-4c1c-595c-8578-d51cbe179ab1")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { Zt as resolveScanTarget, t as recordCount } from "./record-metric-CWxS2npr.js";
5
+ import { i as warnDeprecatedDiff } from "./resolve-scope-B3xmSQ0a.js";
6
+ import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-BuLr42QI.js";
7
+ import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-DE6AIQwU.js";
8
+ import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-HuQLii4U.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-BuI_XZcx.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-Be7a-iK7.js.map
49
+ //# debugId=099a1977-4c1c-595c-8578-d51cbe179ab1
@@ -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]="e3ff420f-ace0-5654-9213-8f79870d8677")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-CWxS2npr.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-CDudIC40.js.map
10
+ //# debugId=e3ff420f-ace0-5654-9213-8f79870d8677
@@ -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]="86bfe8fb-8468-5fb4-a48c-424eb9e910de")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-CWxS2npr.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-HuQLii4U.js.map
25
+ //# debugId=86bfe8fb-8468-5fb4-a48c-424eb9e910de
@@ -76,3 +76,8 @@ export default {
76
76
  ## Educating the user
77
77
 
78
78
  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.
79
+
80
+ Unknown bundled rule IDs in `rules` produce a warning on stderr, including in
81
+ JSON mode. Use `rules list` or `rules explain <rule>` to verify IDs after an
82
+ upgrade. A warning does not change the scan's blocking threshold or rewrite the
83
+ 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
@@ -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]="9b9595b5-cd78-5aec-95ce-0fd49c0f7ff9")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-lt2tTZjE.js";
4
- import { $t as scrubSensitivePaths, Bn as messageFromUnknown, Ft as isReactDoctorError, In as void_, J as anonymizeInPlace, Nn as close, Pn as makeUnsafe, Pt as isProjectDiscoveryError, Rt as layerObservability, Tn as runSync, Un as isErrnoException, Y as anonymizeText, _ as VERSION, a as isEnvFlagEnabled, hn as make, i as isTelemetryEnabled, kn as buildWithScope, o as buildSentryScope, wn as runPromise, 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]="e9a0d126-8b05-527d-b8d9-849db4b1a807")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-BmD_c3Yq.js";
4
+ import { An as buildWithScope, En as runSync, Fn as makeUnsafe, Ft as isProjectDiscoveryError, It as isReactDoctorError, J as anonymizeInPlace, Ln as void_, Pn as close, Tn as runPromise, Vn as messageFromUnknown, Wn as isErrnoException, Y as anonymizeText, _ as VERSION, a as isEnvFlagEnabled, en as scrubSensitivePaths, gn as make, i as isTelemetryEnabled, o as buildSentryScope, y as CliInputError, zt as layerObservability } from "./record-metric-CWxS2npr.js";
5
5
  //#region src/cli/utils/is-environment-error.ts
6
6
  const ENVIRONMENT_ERROR_CODES = new Set([
7
7
  "EACCES",
@@ -164,6 +164,8 @@ const scrubSentryEvent = (event) => {
164
164
  try {
165
165
  delete event.server_name;
166
166
  delete event.user;
167
+ delete event.modules;
168
+ if (event.debug_meta) anonymizeInPlace(event.debug_meta);
167
169
  const device = event.contexts?.device;
168
170
  if (device) delete device.name;
169
171
  if (event.contexts) anonymizeInPlace(event.contexts);
@@ -178,6 +180,9 @@ const scrubSentryEvent = (event) => {
178
180
  if (typeof exception.value === "string") exception.value = anonymizeText(exception.value);
179
181
  for (const frame of exception.stacktrace?.frames ?? []) {
180
182
  delete frame.vars;
183
+ delete frame.pre_context;
184
+ delete frame.context_line;
185
+ delete frame.post_context;
181
186
  if (typeof frame.filename === "string") frame.filename = scrubSensitivePaths(frame.filename);
182
187
  if (typeof frame.abs_path === "string") frame.abs_path = scrubSensitivePaths(frame.abs_path);
183
188
  if (typeof frame.module === "string") frame.module = scrubSensitivePaths(frame.module);
@@ -212,13 +217,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
212
217
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
213
218
  * standard `SENTRY_RELEASE` override.
214
219
  */
215
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.22`;
220
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.23-dev.dfffab3`;
216
221
  /**
217
222
  * Deployment environment shown in Sentry's environment filter. Defaults to
218
223
  * `production` for tagged releases and `development` for dev/unbuilt versions,
219
224
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
220
225
  */
221
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.22") ? "development" : "production");
226
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.23-dev.dfffab3") ? "development" : "production");
222
227
  //#endregion
223
228
  //#region src/instrument.ts
224
229
  let sentryPromise = null;
@@ -251,6 +256,7 @@ const initializeSentryModule = (Sentry) => {
251
256
  release: resolveSentryRelease(),
252
257
  environment: resolveSentryEnvironment(),
253
258
  sendDefaultPii: false,
259
+ integrations: (integrations) => integrations.filter((integration) => integration.name !== "ContextLines" && integration.name !== "Modules"),
254
260
  tracesSampleRate: 0,
255
261
  registerEsmLoaderHooks: false,
256
262
  debug: isEnvFlagEnabled(process.env.SENTRY_DEBUG),
@@ -396,5 +402,5 @@ const shutdownTelemetry = async () => {
396
402
  //#endregion
397
403
  export { initializeSentry as a, isNpmCacheCorruptionError as c, getSentry as i, formatEnvironmentError as l, shutdownTelemetry as n, isExpectedUserError as o, flushSentry as r, formatNpmCacheCorruptionError as s, getTelemetryContext as t, isEnvironmentError as u };
398
404
 
399
- //# sourceMappingURL=telemetry-runtime-DQLNzRNG.js.map
400
- //# debugId=9b9595b5-cd78-5aec-95ce-0fd49c0f7ff9
405
+ //# sourceMappingURL=telemetry-runtime-De9QafWu.js.map
406
+ //# debugId=e9a0d126-8b05-527d-b8d9-849db4b1a807
@@ -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]="9b025800-ccc2-52fe-8e57-c4f1e6d022f1")}catch(e){}}();
3
- import { u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { _ as VERSION, t as recordCount } 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]="cb6246fe-7f68-54ed-8bac-40bb48aaa765")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { _ as VERSION, t as recordCount } from "./record-metric-CWxS2npr.js";
5
5
  //#region src/cli/commands/version.ts
6
6
  /**
7
7
  * oclif-style version line. 12-factor CLI Apps (#3, "What version am I
@@ -18,5 +18,5 @@ const versionAction = () => {
18
18
  //#endregion
19
19
  export { versionAction };
20
20
 
21
- //# sourceMappingURL=version-BasyRE1W.js.map
22
- //# debugId=9b025800-ccc2-52fe-8e57-c4f1e6d022f1
21
+ //# sourceMappingURL=version-uDDHk7KW.js.map
22
+ //# debugId=cb6246fe-7f68-54ed-8bac-40bb48aaa765
@@ -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]="076b82ee-790f-50bb-8bba-3fa1e6c9ac5e")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-D4QLdCtm.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]="2728a154-7d15-5990-99b0-136bcba3ea45")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-BuLr42QI.js";
4
4
  //#region src/cli/commands/why.ts
5
5
  /**
6
6
  * `why <file:line>` — explains why a rule fired (or why a suppression didn't
@@ -17,5 +17,5 @@ const whyAction = async (location, options) => {
17
17
  //#endregion
18
18
  export { whyAction };
19
19
 
20
- //# sourceMappingURL=why-ni8gAKZe.js.map
21
- //# debugId=076b82ee-790f-50bb-8bba-3fa1e6c9ac5e
20
+ //# sourceMappingURL=why-Dww_fJtq.js.map
21
+ //# debugId=2728a154-7d15-5990-99b0-136bcba3ea45
@@ -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]="076345a0-5141-51dd-86e7-b6f09c445335")}catch(e){}}();
3
- import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-lt2tTZjE.js";
4
- import { Fn as fail, In as void_, Sn as provideContext, Tn as runSync, _n as makeSpan, c as setSentryProjectInfo, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext } from "./record-metric-5SPbuLyj.js";
5
- 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]="926df797-fab3-5435-bc03-a6d6fab93612")}catch(e){}}();
3
+ import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-BmD_c3Yq.js";
4
+ import { Cn as provideContext, En as runSync, In as fail, Ln as void_, c as setSentryProjectInfo, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext, vn as makeSpan } from "./record-metric-CWxS2npr.js";
5
+ import { t as getTelemetryContext } from "./telemetry-runtime-De9QafWu.js";
6
6
  import { i as setActiveRunTrace, r as recordRunTraceId } from "./active-run-trace-Dewycxda.js";
7
7
  //#region src/cli/utils/with-run-span.ts
8
8
  /**
@@ -107,5 +107,5 @@ const recordSentryProjectContext = (projectInfo, rootSpan, options = {}) => {
107
107
  //#endregion
108
108
  export { resetSentryRunState as n, withRunSpan as r, recordSentryProjectContext as t };
109
109
 
110
- //# sourceMappingURL=with-run-span-eDYTicUo.js.map
111
- //# debugId=076345a0-5141-51dd-86e7-b6f09c445335
110
+ //# sourceMappingURL=with-run-span-CRYkeESN.js.map
111
+ //# debugId=926df797-fab3-5435-bc03-a6d6fab93612
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.9.22",
3
+ "version": "0.9.23-dev.dfffab3",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -70,7 +70,7 @@
70
70
  "typescript": ">=5.0.4 <6",
71
71
  "yaml": "^2.9.0",
72
72
  "yoga-layout": "~3.2.1",
73
- "oxlint-plugin-react-doctor": "0.9.22"
73
+ "oxlint-plugin-react-doctor": "0.9.23-dev.dfffab3"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/babel__code-frame": "^7.27.0",
@@ -83,8 +83,8 @@
83
83
  "ora": "^9.4.0",
84
84
  "react": "19.2.5",
85
85
  "react-devtools-core": "^7.0.1",
86
- "@react-doctor/api": "0.9.22",
87
- "@react-doctor/core": "0.9.22"
86
+ "@react-doctor/core": "0.9.23",
87
+ "@react-doctor/api": "0.9.23"
88
88
  },
89
89
  "engines": {
90
90
  "node": "^20.19.0 || >=22.13.0"