react-doctor 0.9.18-dev.d1feed1 → 0.9.18-dev.e5c7c99

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-CvCslW2i.js → build-section-divider-DrydudjT.js} +5 -5
  2. package/dist/{ci-BiWI9Cfd.js → ci-mk61H2Mm.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-_b1h6lxa.js → constants-ClqojoT2.js} +6 -5
  5. package/dist/constants-DNh19qg9.js +2 -2
  6. package/dist/{design-DcFPOE2v.js → design-CSjnG5pU.js} +4 -4
  7. package/dist/{exit-gracefully-CSarxvtr.js → exit-gracefully-BhlwYRRM.js} +6 -6
  8. package/dist/{handle-error-C8Jtnkvu.js → handle-error-DVPkyy3P.js} +6 -6
  9. package/dist/index.d.ts +3 -2
  10. package/dist/index.js +304 -36
  11. package/dist/{inspect-CzxNaOzL.js → inspect-D78au25J.js} +16 -16
  12. package/dist/{install-doctor-script-CXY9ulVg.js → install-doctor-script-WzMqgy7w.js} +5 -5
  13. package/dist/{install-github-workflow-CtZTc3JB.js → install-github-workflow-RLbnemDz.js} +6 -6
  14. package/dist/{install-R_CLQhyP.js → install-pywsXHQz.js} +10 -10
  15. package/dist/{install-react-doctor-BJT4YBRI.js → install-react-doctor-egm55-No.js} +9 -9
  16. package/dist/{is-cache-globally-disabled-BTTLvugj.js → is-cache-globally-disabled-DnyI809X.js} +4 -4
  17. package/dist/{jsx-runtime-CtdMx1UG.js → jsx-runtime-BmZiPKdh.js} +6 -6
  18. package/dist/{print-branded-header-BBKGpZ1e.js → print-branded-header-CCL-4IpX.js} +4 -4
  19. package/dist/{prompt-runtime-scan-url-BQ9oHtJl.js → prompt-runtime-scan-url-D37GHuev.js} +5 -5
  20. package/dist/{read-object-file-5KkJXmvs.js → read-object-file-CtdX0V75.js} +4 -4
  21. package/dist/{record-metric-BKOubZhF.js → record-metric-DYAM4eMY.js} +337 -58
  22. package/dist/{report-error-D0ldwCuq.js → report-error-DWCUS8Ok.js} +6 -6
  23. package/dist/{report-workflow-result-C5QvbfRq.js → report-workflow-result-CoyBNA48.js} +6 -6
  24. package/dist/{resolve-scan-exit-code-DKOls2cq.js → resolve-scan-exit-code-CL2v5Tn0.js} +14 -13
  25. package/dist/{resolve-scope-CizdteDz.js → resolve-scope-DjMxUYp4.js} +6 -6
  26. package/dist/{rules-CwXP9Jc8.js → rules-DYBWhCCL.js} +7 -7
  27. package/dist/{run-scan-app--GWim0Qb.js → run-scan-app-pqjJbgBs.js} +11 -11
  28. package/dist/{runtime-scan-B7zJYq4L.js → runtime-scan-B8H6EXOl.js} +10 -10
  29. package/dist/{sanitize-runtime-url-DQadGNjw.js → sanitize-runtime-url-DcbqhEpH.js} +4 -4
  30. package/dist/{scan-DJOXSU7v.js → scan-Br6FRpQn.js} +10 -10
  31. package/dist/{should-skip-prompts-C8HttZuw.js → should-skip-prompts-CvrIJxoC.js} +4 -4
  32. package/dist/{should-use-tui-BwfqCMX2.js → should-use-tui-BXxKdJCl.js} +4 -4
  33. package/dist/skills/react-doctor/SKILL.md +6 -0
  34. package/dist/{start-scan-preamble-BbzEgrwo.js → start-scan-preamble-DgEn5GlY.js} +5 -5
  35. package/dist/start-scan-preamble.js +3 -3
  36. package/dist/{telemetry-runtime-CnqHaBss.js → telemetry-runtime-DBJtRE4h.js} +7 -7
  37. package/dist/{version-CCJOMaB3.js → version-peMnHPrv.js} +5 -5
  38. package/dist/{why-BHFxijbW.js → why-iV07DdeL.js} +4 -4
  39. package/dist/{with-run-span-C10dFuKY.js → with-run-span-DOKepUl6.js} +6 -6
  40. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c327d5c2-2e2d-5280-850a-ff34df729c4e")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { Ft as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-BKOubZhF.js";
5
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-CnqHaBss.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]="0c8f02f0-64bf-547e-bb39-47f976879436")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Ft as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-DYAM4eMY.js";
5
+ import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-DBJtRE4h.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-D0ldwCuq.js.map
65
- //# debugId=c327d5c2-2e2d-5280-850a-ff34df729c4e
64
+ //# sourceMappingURL=report-error-DWCUS8Ok.js.map
65
+ //# debugId=0c8f02f0-64bf-547e-bb39-47f976879436
@@ -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]="edcf55c4-42ae-5649-8321-28af3ea3a622")}catch(e){}}();
3
- import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { t as recordCount } from "./record-metric-BKOubZhF.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-CtZTc3JB.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]="7ef7c73c-4f58-50b1-96d7-05f5aafc4713")}catch(e){}}();
3
+ import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { t as recordCount } from "./record-metric-DYAM4eMY.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-RLbnemDz.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-C5QvbfRq.js.map
293
- //# debugId=edcf55c4-42ae-5649-8321-28af3ea3a622
292
+ //# sourceMappingURL=report-workflow-result-CoyBNA48.js.map
293
+ //# debugId=7ef7c73c-4f58-50b1-96d7-05f5aafc4713
@@ -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]="6074b910-5925-556d-9d25-1b696217a657")}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-_b1h6lxa.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-BTTLvugj.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-BKOubZhF.js";
6
- import { t as getTelemetryContext } from "./telemetry-runtime-CnqHaBss.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]="3e0da0cb-7b31-5f04-b1c4-fa8af998b975")}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-ClqojoT2.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DnyI809X.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-DYAM4eMY.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-DBJtRE4h.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-CvCslW2i.js";
8
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-DrydudjT.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-CXY9ulVg.js";
12
- import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-CtZTc3JB.js";
13
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-CizdteDz.js";
14
- import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-C10dFuKY.js";
15
- import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-C5QvbfRq.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-WzMqgy7w.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-RLbnemDz.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-DjMxUYp4.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-DOKepUl6.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-CoyBNA48.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";
@@ -464,6 +464,7 @@ const buildOutcomeAttributes = (input) => {
464
464
  }),
465
465
  ...withNamespace("diag", {
466
466
  total: summary.totalDiagnosticCount,
467
+ withExplicitContext: result.diagnostics.filter((diagnostic) => Boolean(diagnostic.contextRanges?.length)).length,
467
468
  errors: summary.errorCount,
468
469
  warnings: summary.warningCount,
469
470
  affectedFiles: summary.affectedFileCount,
@@ -3166,5 +3167,5 @@ const resolveScanExitCode = (input) => {
3166
3167
  //#endregion
3167
3168
  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 };
3168
3169
 
3169
- //# sourceMappingURL=resolve-scan-exit-code-DKOls2cq.js.map
3170
- //# debugId=6074b910-5925-556d-9d25-1b696217a657
3170
+ //# sourceMappingURL=resolve-scan-exit-code-CL2v5Tn0.js.map
3171
+ //# debugId=3e0da0cb-7b31-5f04-b1c4-fa8af998b975
@@ -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]="f0c55157-37e2-5444-b407-af115d58f86a")}catch(e){}}();
3
- import { Nt as isPathInsideDirectory, Vn as toCanonicalPath, gt as filterSourceFiles } from "./record-metric-BKOubZhF.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]="72b199f1-32da-510b-90b9-f2c3218f7837")}catch(e){}}();
3
+ import { Nt as isPathInsideDirectory, Vn as toCanonicalPath, gt as filterSourceFiles } from "./record-metric-DYAM4eMY.js";
4
4
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
5
- import { N as cliLogger } from "./install-doctor-script-CXY9ulVg.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-CtZTc3JB.js";
5
+ import { N as cliLogger } from "./install-doctor-script-WzMqgy7w.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-RLbnemDz.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-CizdteDz.js.map
338
- //# debugId=f0c55157-37e2-5444-b407-af115d58f86a
337
+ //# sourceMappingURL=resolve-scope-DjMxUYp4.js.map
338
+ //# debugId=72b199f1-32da-510b-90b9-f2c3218f7837
@@ -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]="3738d458-c8b2-5428-a0fd-b1adb1b3d04c")}catch(e){}}();
3
- import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-_b1h6lxa.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-BKOubZhF.js";
5
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CXY9ulVg.js";
6
- import { t as readObjectFile } from "./read-object-file-5KkJXmvs.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]="2a709725-21fa-5d89-958c-6f4d4260ac76")}catch(e){}}();
3
+ import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-ClqojoT2.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-DYAM4eMY.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-WzMqgy7w.js";
6
+ import { t as readObjectFile } from "./read-object-file-CtdX0V75.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-CwXP9Jc8.js.map
582
- //# debugId=3738d458-c8b2-5428-a0fd-b1adb1b3d04c
581
+ //# sourceMappingURL=rules-DYBWhCCL.js.map
582
+ //# debugId=2a709725-21fa-5d89-958c-6f4d4260ac76
@@ -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]="eb215ae7-b182-58c2-8ec9-02e4ee1a3bac")}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-_b1h6lxa.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-BKOubZhF.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]="6861caff-9082-59de-9869-bd35ac1648b4")}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-ClqojoT2.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-DYAM4eMY.js";
5
5
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
6
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CXY9ulVg.js";
7
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-CtZTc3JB.js";
8
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CizdteDz.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-DKOls2cq.js";
10
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-C5QvbfRq.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-CtdMx1UG.js";
6
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-WzMqgy7w.js";
7
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-RLbnemDz.js";
8
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-DjMxUYp4.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-CL2v5Tn0.js";
10
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-CoyBNA48.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-BmZiPKdh.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--GWim0Qb.js.map
2528
- //# debugId=eb215ae7-b182-58c2-8ec9-02e4ee1a3bac
2527
+ //# sourceMappingURL=run-scan-app-pqjJbgBs.js.map
2528
+ //# debugId=6861caff-9082-59de-9869-bd35ac1648b4
@@ -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]="1dc3d89b-4310-51f4-840d-517761b53ed4")}catch(e){}}();
3
- import { u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { Mt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-BKOubZhF.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]="99ace623-19d7-586a-a542-cc85bd96464e")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Mt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-DYAM4eMY.js";
5
5
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
6
- import { t as reportErrorToSentry } from "./report-error-D0ldwCuq.js";
7
- import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-C10dFuKY.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-DQadGNjw.js";
9
- import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-BwfqCMX2.js";
6
+ import { t as reportErrorToSentry } from "./report-error-DWCUS8Ok.js";
7
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-DOKepUl6.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-DcbqhEpH.js";
9
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-BXxKdJCl.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-BQ9oHtJl.js");
723
+ const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-D37GHuev.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-B7zJYq4L.js.map
771
- //# debugId=1dc3d89b-4310-51f4-840d-517761b53ed4
770
+ //# sourceMappingURL=runtime-scan-B8H6EXOl.js.map
771
+ //# debugId=99ace623-19d7-586a-a542-cc85bd96464e
@@ -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]="654dd064-58a6-5ac4-8126-06cfb52a537b")}catch(e){}}();
3
- import { y as CliInputError } from "./record-metric-BKOubZhF.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]="96e87add-a8e2-54f1-a940-2b253033085c")}catch(e){}}();
3
+ import { y as CliInputError } from "./record-metric-DYAM4eMY.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-DQadGNjw.js.map
76
- //# debugId=654dd064-58a6-5ac4-8126-06cfb52a537b
75
+ //# sourceMappingURL=sanitize-runtime-url-DcbqhEpH.js.map
76
+ //# debugId=96e87add-a8e2-54f1-a940-2b253033085c
@@ -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]="8be3bf7a-bbbb-5d80-8009-4ec07174d122")}catch(e){}}();
3
- import { u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { Xt as resolveScanTarget, t as recordCount } from "./record-metric-BKOubZhF.js";
5
- import { i as warnDeprecatedDiff } from "./resolve-scope-CizdteDz.js";
6
- import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-CzxNaOzL.js";
7
- import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-DKOls2cq.js";
8
- import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-BwfqCMX2.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]="17ab0443-cb4a-5747-9663-ca8b1fa11ef1")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Xt as resolveScanTarget, t as recordCount } from "./record-metric-DYAM4eMY.js";
5
+ import { i as warnDeprecatedDiff } from "./resolve-scope-DjMxUYp4.js";
6
+ import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-D78au25J.js";
7
+ import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-CL2v5Tn0.js";
8
+ import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-BXxKdJCl.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--GWim0Qb.js");
32
+ const { runScanApp } = await import("./run-scan-app-pqjJbgBs.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-DJOXSU7v.js.map
49
- //# debugId=8be3bf7a-bbbb-5d80-8009-4ec07174d122
48
+ //# sourceMappingURL=scan-Br6FRpQn.js.map
49
+ //# debugId=17ab0443-cb4a-5747-9663-ca8b1fa11ef1
@@ -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]="e241cc63-f997-56dc-81a7-91be773978ce")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-BKOubZhF.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]="ddd63c66-6d33-5130-b60f-776fbf9ddefd")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-DYAM4eMY.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-C8HttZuw.js.map
10
- //# debugId=e241cc63-f997-56dc-81a7-91be773978ce
9
+ //# sourceMappingURL=should-skip-prompts-CvrIJxoC.js.map
10
+ //# debugId=ddd63c66-6d33-5130-b60f-776fbf9ddefd
@@ -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]="b92ff369-6098-5b7d-bb83-0da3027751a1")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-BKOubZhF.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]="4f500198-af48-58af-bf48-6e25385b5a85")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-DYAM4eMY.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-BwfqCMX2.js.map
25
- //# debugId=b92ff369-6098-5b7d-bb83-0da3027751a1
24
+ //# sourceMappingURL=should-use-tui-BXxKdJCl.js.map
25
+ //# debugId=4f500198-af48-58af-bf48-6e25385b5a85
@@ -42,6 +42,12 @@ The playbook is the single source of truth — a scan → filter → triage →
42
42
 
43
43
  Pair it with the matching per-rule prompts at `https://www.react.doctor/prompts/rules/<plugin>/<rule>.md` (fetched on demand inside the playbook) so each fix uses the canonical, reviewer-tested recipe.
44
44
 
45
+ Use `--scope contextual --base origin/main` when a team wants existing findings
46
+ in the code it is editing. Rules can select an element, function, file, or an
47
+ explicit set of related nodes. For `exhaustive-deps`, edits in the hook call or a
48
+ resolved local callback can surface a finding on an unchanged dependency array.
49
+ Rules without wider ownership keep changed-line filtering.
50
+
45
51
  ## Configuring or explaining rules
46
52
 
47
53
  When the user wants to understand a rule, disagrees with one, or wants to disable / tune which rules run (not fix code), read [references/explain.md](references/explain.md) and follow it. Start with `npx react-doctor@latest rules explain <rule>`, then apply the narrowest control via `npx react-doctor@latest rules disable|set|category|ignore-tag …`, which edits your `doctor.config.*` (or `package.json#reactDoctor`).
@@ -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]="e879de13-5f28-5c16-ad17-e4b7b556445c")}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-_b1h6lxa.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-BTTLvugj.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]="f0462ada-4ae7-5c96-86f5-7e1b67e2c268")}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-ClqojoT2.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DnyI809X.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-BbzEgrwo.js.map
68
- //# debugId=e879de13-5f28-5c16-ad17-e4b7b556445c
67
+ //# sourceMappingURL=start-scan-preamble-DgEn5GlY.js.map
68
+ //# debugId=f0462ada-4ae7-5c96-86f5-7e1b67e2c268
@@ -1,4 +1,4 @@
1
- import "./start-scan-preamble-BbzEgrwo.js";
1
+ import "./start-scan-preamble-DgEn5GlY.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]="cf231131-1c7a-5978-8419-1a4c1f8a7b1d")}catch(e){}}();
4
- //# debugId=cf231131-1c7a-5978-8419-1a4c1f8a7b1d
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]="ebb7e48b-d135-553e-ac2f-f6173428a414")}catch(e){}}();
4
+ //# debugId=ebb7e48b-d135-553e-ac2f-f6173428a414
@@ -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]="ba198121-5764-5ff4-93da-ef0da33a1f18")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-_b1h6lxa.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-BKOubZhF.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]="c586c8ea-2c2a-58a6-8984-fa5f4293e827")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-ClqojoT2.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-DYAM4eMY.js";
5
5
  //#region src/cli/utils/is-environment-error.ts
6
6
  const ENVIRONMENT_ERROR_CODES = new Set([
7
7
  "EACCES",
@@ -212,13 +212,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
212
212
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
213
213
  * standard `SENTRY_RELEASE` override.
214
214
  */
215
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.18-dev.d1feed1`;
215
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.18-dev.e5c7c99`;
216
216
  /**
217
217
  * Deployment environment shown in Sentry's environment filter. Defaults to
218
218
  * `production` for tagged releases and `development` for dev/unbuilt versions,
219
219
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
220
220
  */
221
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.18-dev.d1feed1") ? "development" : "production");
221
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.18-dev.e5c7c99") ? "development" : "production");
222
222
  //#endregion
223
223
  //#region src/instrument.ts
224
224
  let sentryPromise = null;
@@ -396,5 +396,5 @@ const shutdownTelemetry = async () => {
396
396
  //#endregion
397
397
  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
398
 
399
- //# sourceMappingURL=telemetry-runtime-CnqHaBss.js.map
400
- //# debugId=ba198121-5764-5ff4-93da-ef0da33a1f18
399
+ //# sourceMappingURL=telemetry-runtime-DBJtRE4h.js.map
400
+ //# debugId=c586c8ea-2c2a-58a6-8984-fa5f4293e827
@@ -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]="d6e0eb44-8b09-5e72-970f-c95588b744e6")}catch(e){}}();
3
- import { u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { _ as VERSION, t as recordCount } from "./record-metric-BKOubZhF.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]="a29139dd-c336-5024-a5da-f3695f47af33")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { _ as VERSION, t as recordCount } from "./record-metric-DYAM4eMY.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-CCJOMaB3.js.map
22
- //# debugId=d6e0eb44-8b09-5e72-970f-c95588b744e6
21
+ //# sourceMappingURL=version-peMnHPrv.js.map
22
+ //# debugId=a29139dd-c336-5024-a5da-f3695f47af33
@@ -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]="a6907bbe-8451-5904-b4a3-a0c7d5a52636")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-CzxNaOzL.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]="80606dac-8d76-5474-8165-2a84a72d10a9")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-D78au25J.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-BHFxijbW.js.map
21
- //# debugId=a6907bbe-8451-5904-b4a3-a0c7d5a52636
20
+ //# sourceMappingURL=why-iV07DdeL.js.map
21
+ //# debugId=80606dac-8d76-5474-8165-2a84a72d10a9
@@ -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]="801f8b8d-e13c-5048-809c-52bf0d29b396")}catch(e){}}();
3
- import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-_b1h6lxa.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-BKOubZhF.js";
5
- import { t as getTelemetryContext } from "./telemetry-runtime-CnqHaBss.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]="2ec4a903-7c63-5661-8a85-e41a7e527ba1")}catch(e){}}();
3
+ import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-ClqojoT2.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-DYAM4eMY.js";
5
+ import { t as getTelemetryContext } from "./telemetry-runtime-DBJtRE4h.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-C10dFuKY.js.map
111
- //# debugId=801f8b8d-e13c-5048-809c-52bf0d29b396
110
+ //# sourceMappingURL=with-run-span-DOKepUl6.js.map
111
+ //# debugId=2ec4a903-7c63-5661-8a85-e41a7e527ba1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.9.18-dev.d1feed1",
3
+ "version": "0.9.18-dev.e5c7c99",
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.18-dev.d1feed1"
73
+ "oxlint-plugin-react-doctor": "0.9.18-dev.e5c7c99"
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/core": "0.9.18",
87
- "@react-doctor/api": "0.9.18"
86
+ "@react-doctor/api": "0.9.18",
87
+ "@react-doctor/core": "0.9.18"
88
88
  },
89
89
  "engines": {
90
90
  "node": "^20.19.0 || >=22.13.0"