react-doctor 0.9.17-dev.45f9769 → 0.9.17-dev.4bcbcd9

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/README.md +19 -23
  2. package/dist/{build-section-divider-BrL7JAOI.js → build-section-divider-BeHZwo5l.js} +5 -5
  3. package/dist/{ci-Cckz6But.js → ci-Cm9_h4n3.js} +18 -14
  4. package/dist/cli.js +40 -31
  5. package/dist/{constants-DHn5rUeg.js → constants-Bwylqy0B.js} +7 -5
  6. package/dist/constants-DNh19qg9.js +2 -2
  7. package/dist/{design-CPDTIwCh.js → design-B5cLGmZw.js} +4 -4
  8. package/dist/{exit-gracefully-DJkT0vYN.js → exit-gracefully-CdbthLp-.js} +6 -6
  9. package/dist/{handle-error-xsaG4oK4.js → handle-error-Lid0gPfY.js} +6 -6
  10. package/dist/index.js +8 -7
  11. package/dist/{inspect-D5WaXEXe.js → inspect-EywnZERw.js} +22 -19
  12. package/dist/{install-jXBcuuUS.js → install-C9MTDyXI.js} +10 -10
  13. package/dist/{install-doctor-script-DE9KDX9t.js → install-doctor-script-gExeyZW2.js} +10 -6
  14. package/dist/{install-github-workflow-qw4aoXZV.js → install-github-workflow-D6O_5Weg.js} +22 -8
  15. package/dist/{install-react-doctor-DJeFJOjJ.js → install-react-doctor-BohbrcIZ.js} +9 -9
  16. package/dist/{is-cache-globally-disabled-DDlh_f1u.js → is-cache-globally-disabled-BvdYcw6Q.js} +4 -4
  17. package/dist/{jsx-runtime-CgO8nONn.js → jsx-runtime-BQ1qz9zJ.js} +6 -6
  18. package/dist/{print-branded-header-DZuuxhWZ.js → print-branded-header-em-qBEUI.js} +4 -4
  19. package/dist/{prompt-runtime-scan-url-DTZVavk0.js → prompt-runtime-scan-url-BBcanY_s.js} +5 -5
  20. package/dist/{read-object-file-Dmk7PdgS.js → read-object-file-vXieDJpv.js} +4 -4
  21. package/dist/{record-metric-DFceo_mf.js → record-metric-BtP7xWVx.js} +10 -9
  22. package/dist/{report-error-Dt4_w-6c.js → report-error-CBXdmLOO.js} +6 -6
  23. package/dist/{report-workflow-result-HJEOfADO.js → report-workflow-result-D-lF89ZC.js} +8 -7
  24. package/dist/{should-fail-scan-gate-CLxvykIP.js → resolve-scan-exit-code-B8TCj1DQ.js} +24 -20
  25. package/dist/{resolve-scope-BGg5mvix.js → resolve-scope-ZX-R5L45.js} +6 -6
  26. package/dist/{rules-DiIGaumF.js → rules-DM6Qxne0.js} +7 -7
  27. package/dist/{run-scan-app-DrJAMNM8.js → run-scan-app-sMVIYaOd.js} +27 -19
  28. package/dist/{runtime-scan-CAHFMcUO.js → runtime-scan-JIZkZ4hT.js} +10 -10
  29. package/dist/{sanitize-runtime-url-3LmR0Svt.js → sanitize-runtime-url-CNU5UQhp.js} +4 -4
  30. package/dist/{scan-DrDMjOXF.js → scan-DgTLwZ2u.js} +14 -13
  31. package/dist/{should-skip-prompts-B6gyOLTD.js → should-skip-prompts-DvNuOxin.js} +4 -4
  32. package/dist/{should-use-tui-BV0ZQwVe.js → should-use-tui-PMpp1Fn_.js} +4 -4
  33. package/dist/skills/react-doctor/SKILL.md +4 -0
  34. package/dist/{start-scan-preamble-BPz3nzCQ.js → start-scan-preamble-2uz0joCl.js} +5 -5
  35. package/dist/start-scan-preamble.js +3 -3
  36. package/dist/{telemetry-runtime-xpVY-wkb.js → telemetry-runtime-DolpER-o.js} +7 -7
  37. package/dist/{version-Dx3nSDjw.js → version-CV4dE-TR.js} +5 -5
  38. package/dist/{why-iOGDvoPB.js → why-Ch578VHx.js} +4 -4
  39. package/dist/{with-run-span-ChxecrYe.js → with-run-span-CpifAA6z.js} +6 -6
  40. package/package.json +4 -4
@@ -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]="5c65d34d-8c8a-5f69-88de-886c527fb0f0")}catch(e){}}();
3
- import { ht as filterSourceFiles, jt as isPathInsideDirectory, zn as toCanonicalPath } from "./record-metric-DFceo_mf.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]="f6d71334-dc9d-578f-8f7f-1495eadc5b8c")}catch(e){}}();
3
+ import { Bn as toCanonicalPath, Mt as isPathInsideDirectory, ht as filterSourceFiles } from "./record-metric-BtP7xWVx.js";
4
4
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
5
- import { N as cliLogger } from "./install-doctor-script-DE9KDX9t.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-qw4aoXZV.js";
5
+ import { N as cliLogger } from "./install-doctor-script-gExeyZW2.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-D6O_5Weg.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";
@@ -333,5 +333,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
333
333
  //#endregion
334
334
  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 };
335
335
 
336
- //# sourceMappingURL=resolve-scope-BGg5mvix.js.map
337
- //# debugId=5c65d34d-8c8a-5f69-88de-886c527fb0f0
336
+ //# sourceMappingURL=resolve-scope-ZX-R5L45.js.map
337
+ //# debugId=f6d71334-dc9d-578f-8f7f-1495eadc5b8c
@@ -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]="ffb2dfb8-24a6-51e3-81ff-e04809b854c3")}catch(e){}}();
3
- import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { At as highlighter, Bt as loadConfigWithSource, Pt as isSameRuleKey, Q as buildRuleDocsUrl, Un as isPlainObject, it as clearConfigCache, nn as validateConfigTypes, t as recordCount, wt as getEquivalentRuleKeys } from "./record-metric-DFceo_mf.js";
5
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DE9KDX9t.js";
6
- import { t as readObjectFile } from "./read-object-file-Dmk7PdgS.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]="1f81f8af-359c-5595-a122-6af40c17fcf6")}catch(e){}}();
3
+ import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { Ft as isSameRuleKey, Q as buildRuleDocsUrl, Tt as getEquivalentRuleKeys, Vt as loadConfigWithSource, Wn as isPlainObject, it as clearConfigCache, jt as highlighter, rn as validateConfigTypes, t as recordCount } from "./record-metric-BtP7xWVx.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-gExeyZW2.js";
6
+ import { t as readObjectFile } from "./read-object-file-vXieDJpv.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-DiIGaumF.js.map
582
- //# debugId=ffb2dfb8-24a6-51e3-81ff-e04809b854c3
581
+ //# sourceMappingURL=rules-DM6Qxne0.js.map
582
+ //# debugId=1f81f8af-359c-5595-a122-6af40c17fcf6
@@ -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]="b9a614ae-5f42-5c7e-82c8-c1e79346b725")}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-DHn5rUeg.js";
4
- import { An as succeed, At as highlighter, Ct as getDiffInfo, Dt as hasPublishedFixRecipe, En as void_, Gt as remainingDeadlineBudgetMs, Jt as resolveScanTarget, Ln as yieldToEventLoop, Q as buildRuleDocsUrl, Sn as runPromise, T as isCiEnvironment, U as Reporter, V as Progress, Vt as mapWithConcurrency, bt as getBaselineDiffPlan, n as recordDistribution, t as recordCount, tt as calculateScore, wn as sync, x as isGitHookEnvironment, xt as getChangedLineRanges } from "./record-metric-DFceo_mf.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]="47de0a31-96e3-5cea-b057-a8b0b6c4ffb8")}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-Bwylqy0B.js";
4
+ import { Cn as runPromise, Dn as void_, Ht as mapWithConcurrency, Kt as remainingDeadlineBudgetMs, Ot as hasPublishedFixRecipe, Q as buildRuleDocsUrl, Rn as yieldToEventLoop, St as getChangedLineRanges, T as isCiEnvironment, Tn as sync, U as Reporter, V as Progress, Yt as resolveScanTarget, jn as succeed, jt as highlighter, n as recordDistribution, t as recordCount, tt as calculateScore, wt as getDiffInfo, x as isGitHookEnvironment, xt as getBaselineDiffPlan } from "./record-metric-BtP7xWVx.js";
5
5
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
6
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DE9KDX9t.js";
7
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-qw4aoXZV.js";
8
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-BGg5mvix.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 shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./should-fail-scan-gate-CLxvykIP.js";
10
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-HJEOfADO.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-CgO8nONn.js";
6
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-gExeyZW2.js";
7
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-D6O_5Weg.js";
8
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-ZX-R5L45.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-B8TCj1DQ.js";
10
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-D-lF89ZC.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-BQ1qz9zJ.js";
12
12
  import path from "node:path";
13
13
  import { performance } from "node:perf_hooks";
14
14
  import isUnicodeSupported from "is-unicode-supported";
@@ -2217,7 +2217,7 @@ const mountScanApp = async (rootDirectory, shouldRecommendCi, initialProgress) =
2217
2217
  executePendingActions
2218
2218
  };
2219
2219
  };
2220
- const runMountedScan = async (rootDirectory, presentation, blockingLevel, executeScan) => {
2220
+ const runMountedScan = async (rootDirectory, presentation, gateOptions, executeScan) => {
2221
2221
  const { store, pendingActions, mountRenderer, executePendingActions } = await mountScanApp(rootDirectory, presentation.shouldRecommendCi, presentation.initialProgress);
2222
2222
  let mountedRenderer = mountRenderer("scan");
2223
2223
  recordCount(METRIC.tuiScanInlineShown);
@@ -2243,9 +2243,9 @@ const runMountedScan = async (rootDirectory, presentation, blockingLevel, execut
2243
2243
  lintFailureReason: resolveLintFailureReason(completedScan.scans.map(({ result }) => result))
2244
2244
  });
2245
2245
  await executePendingActions();
2246
- return { shouldFail: shouldFailScanGate({
2246
+ return { exitCode: resolveScanExitCode({
2247
+ ...gateOptions,
2247
2248
  scans: completedScan.scans,
2248
- blockingLevel,
2249
2249
  diagnosticsAreGateExempt: completedScan.diagnosticsAreGateExempt
2250
2250
  }) };
2251
2251
  } catch (error) {
@@ -2265,10 +2265,14 @@ const runSingleProjectScan = async (rootScanTarget, projectDirectory, workspaceP
2265
2265
  });
2266
2266
  if (scopeOptions === null) {
2267
2267
  process.stdout.write("No changed source files in the selected project.\n");
2268
- return { shouldFail: false };
2268
+ return { exitCode: 0 };
2269
2269
  }
2270
2270
  const presentation = resolveScanPresentation(input, [projectScan], rootScanTarget.resolvedDirectory);
2271
- return runMountedScan(projectScan.directory, presentation, blockingLevel, async (context) => {
2271
+ const gateOptions = {
2272
+ blockingLevel,
2273
+ warningExitCode: input.warningExitCode
2274
+ };
2275
+ return runMountedScan(projectScan.directory, presentation, gateOptions, async (context) => {
2272
2276
  const result = await inspectProject(projectScan.directory, {
2273
2277
  ...resolveTuiInspectOptions(input, projectScan.config),
2274
2278
  ...scopeOptions,
@@ -2341,7 +2345,7 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
2341
2345
  });
2342
2346
  if (projectScans.length === 0) {
2343
2347
  process.stdout.write("No changed source files in the selected projects.\n");
2344
- return { shouldFail: false };
2348
+ return { exitCode: 0 };
2345
2349
  }
2346
2350
  const projectCount = projectScans.length;
2347
2351
  const rootProjectScan = discoveredProjectScans.find((projectScan) => path.resolve(projectScan.directory) === path.resolve(rootDirectory));
@@ -2351,7 +2355,10 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
2351
2355
  isRootDeadCodeEnabled: input.options?.deadCode ?? rootProjectScan?.config?.deadCode ?? true
2352
2356
  });
2353
2357
  if (workspaceDeadCodeOwner !== null) recordCount(METRIC.scanWorkspaceMaintainabilityShared, 1, { projectCount: discoveredProjectScans.length });
2354
- return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan), rootDirectory), blockingLevel, async (context) => {
2358
+ return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan), rootDirectory), {
2359
+ blockingLevel,
2360
+ warningExitCode: input.warningExitCode
2361
+ }, async (context) => {
2355
2362
  const startTime = performance.now();
2356
2363
  let finishedCount = 0;
2357
2364
  recordDistribution(METRIC.scanFeedbackDelay, performance.now() - feedbackStartTime, {
@@ -2504,15 +2511,16 @@ const runScanApp = async (input) => {
2504
2511
  configProjects: input.configProjects ?? scanTarget.userConfig?.projects,
2505
2512
  share: input.share ?? scanTarget.userConfig?.share ?? true
2506
2513
  };
2514
+ if (input.warningExitCode !== void 0) recordCount(METRIC.scanWarningExitCodeConfigured);
2507
2515
  const { selectedDirectories, workspaceProjectDirectories } = await resolveProjectSelection(rootDirectory, resolvedInput);
2508
2516
  const inspectProject = createInvocationInspect(input.options?.concurrency);
2509
2517
  const blockingLevel = resolveBlockingLevel({ blocking: resolvedInput.blocking }, scanTarget.userConfig);
2510
- if (selectedDirectories.length === 0) return { shouldFail: false };
2518
+ if (selectedDirectories.length === 0) return { exitCode: 0 };
2511
2519
  if (selectedDirectories.length === 1) return runSingleProjectScan(scanTarget, selectedDirectories[0], workspaceProjectDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
2512
2520
  return runMultiProjectScan(scanTarget, selectedDirectories, workspaceProjectDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
2513
2521
  };
2514
2522
  //#endregion
2515
2523
  export { runScanApp };
2516
2524
 
2517
- //# sourceMappingURL=run-scan-app-DrJAMNM8.js.map
2518
- //# debugId=b9a614ae-5f42-5c7e-82c8-c1e79346b725
2525
+ //# sourceMappingURL=run-scan-app-sMVIYaOd.js.map
2526
+ //# debugId=47de0a31-96e3-5cea-b057-a8b0b6c4ffb8
@@ -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]="7e52c3c8-b067-5757-9de1-ed256a460a98")}catch(e){}}();
3
- import { u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { At as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-DFceo_mf.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]="9d5aa856-4f0f-5bfd-b921-6673592e4d3c")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { jt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-BtP7xWVx.js";
5
5
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
6
- import { t as reportErrorToSentry } from "./report-error-Dt4_w-6c.js";
7
- import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-ChxecrYe.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-3LmR0Svt.js";
9
- import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-BV0ZQwVe.js";
6
+ import { t as reportErrorToSentry } from "./report-error-CBXdmLOO.js";
7
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-CpifAA6z.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-CNU5UQhp.js";
9
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-PMpp1Fn_.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-DTZVavk0.js");
723
+ const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-BBcanY_s.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-CAHFMcUO.js.map
771
- //# debugId=7e52c3c8-b067-5757-9de1-ed256a460a98
770
+ //# sourceMappingURL=runtime-scan-JIZkZ4hT.js.map
771
+ //# debugId=9d5aa856-4f0f-5bfd-b921-6673592e4d3c
@@ -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]="36b0a3ef-c4ef-55b3-b747-06184728ee95")}catch(e){}}();
3
- import { y as CliInputError } from "./record-metric-DFceo_mf.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]="dba70465-b1bb-51ee-a421-87fea0132f42")}catch(e){}}();
3
+ import { y as CliInputError } from "./record-metric-BtP7xWVx.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-3LmR0Svt.js.map
76
- //# debugId=36b0a3ef-c4ef-55b3-b747-06184728ee95
75
+ //# sourceMappingURL=sanitize-runtime-url-CNU5UQhp.js.map
76
+ //# debugId=dba70465-b1bb-51ee-a421-87fea0132f42
@@ -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]="e7126ffc-6c81-5a93-9d5a-65b401b8f7e7")}catch(e){}}();
3
- import { u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { Jt as resolveScanTarget, t as recordCount } from "./record-metric-DFceo_mf.js";
5
- import { i as warnDeprecatedDiff } from "./resolve-scope-BGg5mvix.js";
6
- import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-D5WaXEXe.js";
7
- import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-CLxvykIP.js";
8
- import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-BV0ZQwVe.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]="b7335f50-bb88-5daa-b8b8-a3a02ccb2ed1")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { Yt as resolveScanTarget, t as recordCount } from "./record-metric-BtP7xWVx.js";
5
+ import { i as warnDeprecatedDiff } from "./resolve-scope-ZX-R5L45.js";
6
+ import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-EywnZERw.js";
7
+ import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-B8TCj1DQ.js";
8
+ import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-PMpp1Fn_.js";
9
9
  import path from "node:path";
10
10
  //#region src/cli/commands/scan.ts
11
11
  const runScanCommand = async (input) => {
@@ -29,20 +29,21 @@ 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-DrJAMNM8.js");
33
- const { shouldFail } = await runScanApp({
32
+ const { runScanApp } = await import("./run-scan-app-sMVIYaOd.js");
33
+ const { exitCode } = await runScanApp({
34
34
  directory: input.directory,
35
35
  scanTarget,
36
36
  options: resolveCliInspectOptions(input.flags, null),
37
37
  projectFlag: input.flags.project,
38
38
  skipPrompts: input.flags.yes ?? false,
39
39
  blocking: input.flags.blocking ?? input.flags.failOn,
40
- flags: input.flags
40
+ flags: input.flags,
41
+ warningExitCode: input.flags.warningExitCode
41
42
  });
42
- if (shouldFail) process.exitCode = 1;
43
+ if (exitCode !== 0) process.exitCode = exitCode;
43
44
  };
44
45
  //#endregion
45
46
  export { runScanCommand };
46
47
 
47
- //# sourceMappingURL=scan-DrDMjOXF.js.map
48
- //# debugId=e7126ffc-6c81-5a93-9d5a-65b401b8f7e7
48
+ //# sourceMappingURL=scan-DgTLwZ2u.js.map
49
+ //# debugId=b7335f50-bb88-5daa-b8b8-a3a02ccb2ed1
@@ -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]="4aed5324-6228-55a4-b96f-697153344a70")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-DFceo_mf.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]="9a52570c-33a5-5b20-8a49-1ca76cdb4e3f")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-BtP7xWVx.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-B6gyOLTD.js.map
10
- //# debugId=4aed5324-6228-55a4-b96f-697153344a70
9
+ //# sourceMappingURL=should-skip-prompts-DvNuOxin.js.map
10
+ //# debugId=9a52570c-33a5-5b20-8a49-1ca76cdb4e3f
@@ -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]="9ee4362a-286c-5aac-906e-7fbdaed2da70")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-DFceo_mf.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]="781f81fd-f7b2-5acb-89d1-099973d4385e")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-BtP7xWVx.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-BV0ZQwVe.js.map
25
- //# debugId=9ee4362a-286c-5aac-906e-7fbdaed2da70
24
+ //# sourceMappingURL=should-use-tui-PMpp1Fn_.js.map
25
+ //# debugId=781f81fd-f7b2-5acb-89d1-099973d4385e
@@ -64,3 +64,7 @@ npx react-doctor@latest --verbose --scope changed
64
64
  ### Reuse a base scan
65
65
 
66
66
  Save a complete `--json` scan, then pass `--baseline base-report.json` to report only new findings. This also works with `--scope changed`. Use the same version and rules for both scans. Findings are grouped by rule and file path, following Git renames. Only increases in each group's count are reported; groups without an increase skip location matching. Fingerprints, message similarity, and Git-adjusted line distance select the added findings. Formatting and edits that keep the same counts report no new findings. Saved reports must use the same `textComponents`, `rawTextWrapperComponents`, and `respectInlineDisables` settings. Regenerate the base report after changing these settings, or use a Git comparison. Older reports without fingerprints or `sourceFilterConfigHash` must be regenerated.
67
+
68
+ ### GitLab warning status
69
+
70
+ For GitLab CI, `--warning-exit-code 123` returns `123` for non-blocking warnings. Pair it with `allow_failure: { exit_codes: 123 }`. Errors still return `1`. Accepts integers from `2` to `255`. `--blocking warning` still returns `1`. `--blocking none` or `--score` skips this warning signal.
@@ -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]="0ecf30ea-9d69-54a7-a97a-7e36bd014c63")}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-DHn5rUeg.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DDlh_f1u.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]="27e1e6ce-8978-5df9-8f91-a87cf7616e05")}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-Bwylqy0B.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-BvdYcw6Q.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-BPz3nzCQ.js.map
68
- //# debugId=0ecf30ea-9d69-54a7-a97a-7e36bd014c63
67
+ //# sourceMappingURL=start-scan-preamble-2uz0joCl.js.map
68
+ //# debugId=27e1e6ce-8978-5df9-8f91-a87cf7616e05
@@ -1,4 +1,4 @@
1
- import "./start-scan-preamble-BPz3nzCQ.js";
1
+ import "./start-scan-preamble-2uz0joCl.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]="3be9ee49-d3de-5162-8cf9-ad3d9b8b20b9")}catch(e){}}();
4
- //# debugId=3be9ee49-d3de-5162-8cf9-ad3d9b8b20b9
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]="f6116470-71e2-5b9e-9271-5ef3b759d5f5")}catch(e){}}();
4
+ //# debugId=f6116470-71e2-5b9e-9271-5ef3b759d5f5
@@ -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]="cbe3d1b8-2718-5a68-b4fc-e77c09b109b0")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-DHn5rUeg.js";
4
- import { Cn as runSync, Dn as buildWithScope, It as layerObservability, J as anonymizeInPlace, Mn as makeUnsafe, Mt as isProjectDiscoveryError, Nt as isReactDoctorError, Pn as void_, Rn as messageFromUnknown, Sn as runPromise, Vn as isErrnoException, Y as anonymizeText, Zt as scrubSensitivePaths, _ as VERSION, a as isEnvFlagEnabled, i as isTelemetryEnabled, jn as close, o as buildSentryScope, pn as make, y as CliInputError } from "./record-metric-DFceo_mf.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]="52537327-caa1-530d-821e-b58b5b506fea")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-Bwylqy0B.js";
4
+ import { Cn as runPromise, Fn as void_, Hn as isErrnoException, J as anonymizeInPlace, Lt as layerObservability, Mn as close, Nn as makeUnsafe, Nt as isProjectDiscoveryError, On as buildWithScope, Pt as isReactDoctorError, Qt as scrubSensitivePaths, Y as anonymizeText, _ as VERSION, a as isEnvFlagEnabled, i as isTelemetryEnabled, mn as make, o as buildSentryScope, wn as runSync, y as CliInputError, zn as messageFromUnknown } from "./record-metric-BtP7xWVx.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.17-dev.45f9769`;
215
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.17-dev.4bcbcd9`;
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.17-dev.45f9769") ? "development" : "production");
221
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.17-dev.4bcbcd9") ? "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-xpVY-wkb.js.map
400
- //# debugId=cbe3d1b8-2718-5a68-b4fc-e77c09b109b0
399
+ //# sourceMappingURL=telemetry-runtime-DolpER-o.js.map
400
+ //# debugId=52537327-caa1-530d-821e-b58b5b506fea
@@ -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]="f8fbcc5e-2213-5cf5-a714-b54b85c0bea5")}catch(e){}}();
3
- import { u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { _ as VERSION, t as recordCount } from "./record-metric-DFceo_mf.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]="ef6ec2b9-bf3d-5142-9168-50e9ee60073a")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { _ as VERSION, t as recordCount } from "./record-metric-BtP7xWVx.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-Dx3nSDjw.js.map
22
- //# debugId=f8fbcc5e-2213-5cf5-a714-b54b85c0bea5
21
+ //# sourceMappingURL=version-CV4dE-TR.js.map
22
+ //# debugId=ef6ec2b9-bf3d-5142-9168-50e9ee60073a
@@ -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]="f6e05c17-e202-545b-918d-19db109dd55f")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-D5WaXEXe.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]="95365dcc-ac71-55c8-b0f7-96559cdd6c55")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-EywnZERw.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-iOGDvoPB.js.map
21
- //# debugId=f6e05c17-e202-545b-918d-19db109dd55f
20
+ //# sourceMappingURL=why-Ch578VHx.js.map
21
+ //# debugId=95365dcc-ac71-55c8-b0f7-96559cdd6c55
@@ -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]="953bb07c-3644-580c-8e38-edc2b28a12aa")}catch(e){}}();
3
- import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-DHn5rUeg.js";
4
- import { Cn as runSync, Nn as fail, Pn as void_, bn as provideContext, c as setSentryProjectInfo, hn as makeSpan, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext } from "./record-metric-DFceo_mf.js";
5
- import { t as getTelemetryContext } from "./telemetry-runtime-xpVY-wkb.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]="f995a74d-819d-5b27-a472-6dc37f477703")}catch(e){}}();
3
+ import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-Bwylqy0B.js";
4
+ import { Fn as void_, Pn as fail, c as setSentryProjectInfo, gn as makeSpan, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext, wn as runSync, xn as provideContext } from "./record-metric-BtP7xWVx.js";
5
+ import { t as getTelemetryContext } from "./telemetry-runtime-DolpER-o.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-ChxecrYe.js.map
111
- //# debugId=953bb07c-3644-580c-8e38-edc2b28a12aa
110
+ //# sourceMappingURL=with-run-span-CpifAA6z.js.map
111
+ //# debugId=f995a74d-819d-5b27-a472-6dc37f477703
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.9.17-dev.45f9769",
3
+ "version": "0.9.17-dev.4bcbcd9",
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.17-dev.45f9769"
73
+ "oxlint-plugin-react-doctor": "0.9.17-dev.4bcbcd9"
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.17",
87
- "@react-doctor/api": "0.9.17"
86
+ "@react-doctor/api": "0.9.17",
87
+ "@react-doctor/core": "0.9.17"
88
88
  },
89
89
  "engines": {
90
90
  "node": "^20.19.0 || >=22.13.0"