react-doctor 0.9.16 → 0.9.17-dev.066a7c7

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 (41) hide show
  1. package/README.md +19 -23
  2. package/dist/{build-section-divider-DdDfVhIU.js → build-section-divider-Bir8L5EX.js} +5 -5
  3. package/dist/{ci-DB7v3zSt.js → ci-REczH_Cr.js} +18 -14
  4. package/dist/cli.js +40 -31
  5. package/dist/{constants-rmkaA7iw.js → constants-Bwylqy0B.js} +7 -5
  6. package/dist/constants-DNh19qg9.js +2 -2
  7. package/dist/{design-CdjV6tS8.js → design-ZfyyEv09.js} +4 -4
  8. package/dist/{exit-gracefully-DYAZMdvL.js → exit-gracefully-DHm8xU1Z.js} +6 -6
  9. package/dist/{handle-error-rZIxgzIJ.js → handle-error-CMzUBjYP.js} +6 -6
  10. package/dist/index.d.ts +4 -1
  11. package/dist/index.js +10 -7
  12. package/dist/{inspect-td2f87RL.js → inspect-5cPWzG-2.js} +35 -32
  13. package/dist/{install-DFz26Git.js → install-Gj8mFy3f.js} +10 -10
  14. package/dist/{install-doctor-script-DutA3AmF.js → install-doctor-script-tXwokAgA.js} +10 -6
  15. package/dist/{install-github-workflow-CrCUq-fk.js → install-github-workflow-BcHvpq2i.js} +22 -8
  16. package/dist/{install-react-doctor-AjM8eNr6.js → install-react-doctor-C-Ij1VpA.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-DquUESHw.js → is-cache-globally-disabled-BvdYcw6Q.js} +4 -4
  18. package/dist/{jsx-runtime-CmVfaGKL.js → jsx-runtime-CrdOPOJQ.js} +6 -6
  19. package/dist/{print-branded-header-BSPcMb1k.js → print-branded-header--2SHdWPw.js} +4 -4
  20. package/dist/{prompt-runtime-scan-url-9SslR9ci.js → prompt-runtime-scan-url-CIYKBQrq.js} +5 -5
  21. package/dist/{read-object-file-FXP4EgJe.js → read-object-file-DuS2a53u.js} +4 -4
  22. package/dist/{record-metric-DlQ2Xkco.js → record-metric-C5UBQqkS.js} +158 -83
  23. package/dist/{report-error-CsS16tjk.js → report-error-N4i-Hejx.js} +6 -6
  24. package/dist/{report-workflow-result-DL4pJV2h.js → report-workflow-result-Ci5GLxeI.js} +8 -7
  25. package/dist/{should-fail-scan-gate-ASw8KS4V.js → resolve-scan-exit-code-CPHZSx3J.js} +115 -25
  26. package/dist/{resolve-scope-Dydx4htr.js → resolve-scope-K1c-uQP2.js} +6 -6
  27. package/dist/{rules-BITRtAOo.js → rules-CNn-tv4a.js} +7 -7
  28. package/dist/{run-scan-app-BvZAmq01.js → run-scan-app-CHC39n_x.js} +27 -19
  29. package/dist/{runtime-scan-BKWHOq5l.js → runtime-scan-Dj7Us5sQ.js} +10 -10
  30. package/dist/{sanitize-runtime-url-SAbuIQOl.js → sanitize-runtime-url-iIWcHvte.js} +4 -4
  31. package/dist/{scan-BNqVRm8k.js → scan-Bd3LUmCE.js} +14 -13
  32. package/dist/{should-skip-prompts-D86BK2WZ.js → should-skip-prompts-wO06Jnwa.js} +4 -4
  33. package/dist/{should-use-tui--ondyPLd.js → should-use-tui-DnwgOl2f.js} +4 -4
  34. package/dist/skills/react-doctor/SKILL.md +5 -1
  35. package/dist/{start-scan-preamble-CCqs1vP4.js → start-scan-preamble-2uz0joCl.js} +5 -5
  36. package/dist/start-scan-preamble.js +3 -3
  37. package/dist/{telemetry-runtime-DRB6SHxI.js → telemetry-runtime-Cgsi8HjU.js} +7 -7
  38. package/dist/{version-c57nNOfC.js → version-BxebuFjX.js} +5 -5
  39. package/dist/{why-B16Tzl_q.js → why-BwJn5rXa.js} +4 -4
  40. package/dist/{with-run-span-BpoDt67p.js → with-run-span-Fo2rFfpM.js} +6 -6
  41. package/package.json +4 -4
@@ -1,18 +1,18 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ce09d425-ec04-5e6d-8bda-1ccbcadc54a4")}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-rmkaA7iw.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DquUESHw.js";
5
- import { $ as buildRuleSeverityControls, A as Files, At as isPathInsideDirectory, B as PerFileLintCacheEnabled, Bn as isFile, Bt as mapWithConcurrency, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as try_, E as isCiOrCodingAgentEnvironment, En as mergeAll, Et as hasPublishedFixRecipe, F as Linter, Fn as yieldToEventLoop, G as SidecarLintCacheEnabled, Gt as resolveLintBatchOrdering, H as Project, Ht as mergeReactDoctorConfigs, I as Maintainability, It as listSourceFiles, Jt as runInspect, Kt as resolveScanTarget, L as NodeResolver, Lt as listSourceFilesCooperative, M as InvocationCaches, Mt as isReactDoctorError, Nn as ParentSpan, O as Config, On as succeed, Ot as hashFileContents, P as LintPartialFailures, Pn as isMonorepoRoot, Pt as isScanComplete, Q as buildRuleDocsUrl, Qt as summarizeDiagnostics, R as OxlintConcurrency, Rn as isDirectory, Rt as listWorkspacePackages, Sn as sync, St as getDiagnosticRuleIdentity, T as isCiEnvironment, Tt as groupBy, U as Reporter, Ut as remainingDeadlineBudgetMs, V as Progress, Vt as materializeSourceTree, W as Score, Wt as resolveGithubActionsScoreMetadata, X as atomicWriteJson, Zt as shouldUseMaintainabilityLayer, _ as VERSION, _n as provide, _t as fingerprintDiagnosticEvidence, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as runPromise, cn as Diagnostic, ct as countOptInProjectRuleSelections, d as isJsonModeActive, et as buildSkippedChecks, fn as gen, ft as discoverSupportedSubprojects, gn as promise, hn as orElseSucceed, ht as filterSourceFiles, in as error, j as Git, k as DIAGNOSTIC_DELTA_IDENTITY, kt as highlighter, l as getRunId, lt as createInvocationCaches, mn as map, mt as filterPathsOutsideDirectories, n as recordDistribution, nn as warmOxlintWorkerPool, nt as canonicalizeUserRuleKey, on as log, ot as computeConfigFingerprint, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as restoreLegacyThrow, r as toSpanAttributes, rn as Console, rt as classifyFileContext, sn as warn, st as computeDiagnosticDelta, t as recordCount, tn as warmDuplicateJsxWorker, tt as calculateScore, un as decodeUnknownSync, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as provideContext, w as detectRunnerOs, xn as runSync, y as CliInputError, yn as provideService, z as OxlintSpawnSlots } from "./record-metric-DlQ2Xkco.js";
6
- import { t as getTelemetryContext } from "./telemetry-runtime-DRB6SHxI.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]="4e91daba-985e-5b74-a53e-dbdd1dfeac41")}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-Bwylqy0B.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-BvdYcw6Q.js";
5
+ import { $ as buildRuleSeverityControls, A as Files, At as hashFileContents, B as PerFileLintCacheEnabled, Bt as listWorkspacePackages, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runPromise, Ct as getDiagnosticRuleIdentity, Dt as groupBy, E as isCiOrCodingAgentEnvironment, En as try_, Et as getRuleMetadata, F as Linter, G as SidecarLintCacheEnabled, Gt as mergeReactDoctorConfigs, H as Project, Ht as mapWithConcurrency, I as Maintainability, In as ParentSpan, It as isScanComplete, Jt as resolveLintBatchOrdering, Kt as remainingDeadlineBudgetMs, L as NodeResolver, Ln as isMonorepoRoot, M as InvocationCaches, Mt as isPathInsideDirectory, O as Config, Ot as hasPublishedFixRecipe, P as LintPartialFailures, Pt as isReactDoctorError, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rn as yieldToEventLoop, Rt as listSourceFiles, Sn as provideService, T as isCiEnvironment, Tn as sync, U as Reporter, Un as isFile, Ut as materializeSourceTree, V as Progress, Vn as isDirectory, W as Score, Wt as mergeAndFilterDiagnostics, X as atomicWriteJson, Xt as restoreLegacyThrow, Yt as resolveScanTarget, Zt as runInspect, _ as VERSION, _n as map, an as warmOxlintWorkerPool, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provide, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as Diagnostic, en as shouldUseMaintainabilityLayer, et as buildSkippedChecks, ft as discoverSupportedSubprojects, hn as gen, ht as filterSourceFiles, in as warmDuplicateJsxWorker, j as Git, jn as succeed, jt as highlighter, k as DIAGNOSTIC_DELTA_IDENTITY, kn as mergeAll, l as getRunId, ln as log, lt as createInvocationCaches, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as Console, ot as computeConfigFingerprint, pn as decodeUnknownSync, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveGithubActionsScoreMetadata, r as toSpanAttributes, rt as classifyFileContext, sn as error, st as computeDiagnosticDelta, t as recordCount, tn as summarizeDiagnostics, tt as calculateScore, un as warn, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as orElseSucceed, vt as fingerprintDiagnosticEvidence, w as detectRunnerOs, wn as runSync, xn as provideContext, y as CliInputError, yn as promise, z as OxlintSpawnSlots, zt as listSourceFilesCooperative } from "./record-metric-C5UBQqkS.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-Cgsi8HjU.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-DdDfVhIU.js";
8
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-Bir8L5EX.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, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DutA3AmF.js";
12
- import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-CrCUq-fk.js";
13
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-Dydx4htr.js";
14
- import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-BpoDt67p.js";
15
- import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-DL4pJV2h.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-tXwokAgA.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-BcHvpq2i.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-K1c-uQP2.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-Fo2rFfpM.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-Ci5GLxeI.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";
@@ -20,9 +20,16 @@ import * as path$1 from "node:path";
20
20
  import path from "node:path";
21
21
  import { spawn } from "node:child_process";
22
22
  import { tmpdir } from "node:os";
23
- import crypto, { randomUUID } from "node:crypto";
23
+ import crypto, { createHash, randomUUID } from "node:crypto";
24
24
  import * as fs$1 from "node:fs/promises";
25
25
  import { performance } from "node:perf_hooks";
26
+ //#region src/cli/utils/compute-source-filter-config-hash.ts
27
+ const computeSourceFilterConfigHash = (input) => createHash("sha256").update(JSON.stringify({
28
+ textComponents: [...new Set(input.userConfig?.textComponents ?? [])].sort(),
29
+ rawTextWrapperComponents: [...new Set(input.userConfig?.rawTextWrapperComponents ?? [])].sort(),
30
+ respectInlineDisables: input.respectInlineDisables
31
+ })).digest("hex");
32
+ //#endregion
26
33
  //#region src/cli/utils/apply-observability.ts
27
34
  /**
28
35
  * Installs the tracing backend for the inspect program.
@@ -512,6 +519,7 @@ const buildOutcomeAttributes = (input) => {
512
519
  baseTotal: result.baselineDelta.baseTotalCount,
513
520
  crossFileMatches: result.baselineDelta.crossFileMatchCount,
514
521
  source: result.baselineDelta.source ?? "base",
522
+ ruleCountMatches: result.baselineDelta.ruleCountMatchCount ?? 0,
515
523
  degraded: false
516
524
  }));
517
525
  else if (input.gateExempt) attributes["baseline.degraded"] = true;
@@ -523,6 +531,7 @@ const buildActionAttributes = () => {
523
531
  actorAssociation: githubActorAssociation,
524
532
  runnerOs: detectRunnerOs(),
525
533
  comment: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.comment),
534
+ commentOnClean: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.commentOnClean),
526
535
  reviewComments: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.reviewComments),
527
536
  versionPin: resolveVersionPin(process.env[ACTION_INPUT_ENVIRONMENT_VARIABLES.version])
528
537
  });
@@ -1196,6 +1205,64 @@ const copyUnchangedBaselineSources = async (input) => {
1196
1205
  })).every(Boolean);
1197
1206
  };
1198
1207
  //#endregion
1208
+ //#region src/cli/utils/read-baseline-line-map.ts
1209
+ const readBaselineLineMap = (directory, ref) => {
1210
+ const hunksByFile = /* @__PURE__ */ new Map();
1211
+ const revision = ref ? runGit(directory, [
1212
+ "rev-parse",
1213
+ "--verify",
1214
+ "--end-of-options",
1215
+ `${ref}^{commit}`
1216
+ ]) : null;
1217
+ const patch = revision ? runGitRaw(directory, [
1218
+ "-c",
1219
+ "core.quotePath=false",
1220
+ "diff",
1221
+ "--no-ext-diff",
1222
+ "--no-textconv",
1223
+ "--unified=0",
1224
+ "--find-renames",
1225
+ "--relative",
1226
+ "--src-prefix=a/",
1227
+ "--dst-prefix=b/",
1228
+ revision,
1229
+ "--"
1230
+ ]) : null;
1231
+ let currentHunks;
1232
+ for (const line of patch?.split("\n") ?? []) {
1233
+ if (line.startsWith("+++ ")) {
1234
+ currentHunks = [];
1235
+ const headerPath = line.slice(4).replace(/\t$/, "");
1236
+ let filePath = headerPath;
1237
+ if (headerPath.startsWith("\"")) try {
1238
+ filePath = JSON.parse(headerPath);
1239
+ } catch {
1240
+ continue;
1241
+ }
1242
+ if (filePath.startsWith("b/")) hunksByFile.set(filePath.slice(2), currentHunks);
1243
+ continue;
1244
+ }
1245
+ const hunk = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(line);
1246
+ if (!hunk || !currentHunks) continue;
1247
+ currentHunks.push({
1248
+ baseStart: Number(hunk[1]),
1249
+ baseCount: hunk[2] === void 0 ? 1 : Number(hunk[2]),
1250
+ headStart: Number(hunk[3]),
1251
+ headCount: hunk[4] === void 0 ? 1 : Number(hunk[4])
1252
+ });
1253
+ }
1254
+ return (filePath, baseLine) => {
1255
+ let lineOffset = 0;
1256
+ for (const hunk of hunksByFile.get(filePath) ?? []) {
1257
+ if (baseLine < hunk.baseStart) break;
1258
+ if (hunk.baseCount > 0 && baseLine < hunk.baseStart + hunk.baseCount) return hunk.headStart + Math.min(baseLine - hunk.baseStart, Math.max(0, hunk.headCount - 1));
1259
+ if (hunk.baseCount === 0 && baseLine === hunk.baseStart) break;
1260
+ lineOffset = hunk.headStart + Math.max(1, hunk.headCount) - (hunk.baseStart + Math.max(1, hunk.baseCount));
1261
+ }
1262
+ return baseLine + lineOffset;
1263
+ };
1264
+ };
1265
+ //#endregion
1199
1266
  //#region src/cli/utils/read-diagnostic-evidence.ts
1200
1267
  const SOURCE_EXTENSIONS = [
1201
1268
  ".ts",
@@ -1746,6 +1813,7 @@ const runBaselineComparison = async (input) => {
1746
1813
  const diagnosticDelta = computeDiagnosticDelta({
1747
1814
  headDiagnostics: input.headDiagnostics,
1748
1815
  renamedFiles: snapshot.renamedFiles ?? {},
1816
+ mapBaseLine: readBaselineLineMap(input.directory, input.baselineRef),
1749
1817
  baseDiagnostics: withDiagnosticFingerprints(snapshot.tempDirectory, baseOutput.diagnostics),
1750
1818
  readHeadLine: () => null,
1751
1819
  readBaseLine: () => null
@@ -1758,7 +1826,8 @@ const runBaselineComparison = async (input) => {
1758
1826
  matchedCount: baseOutput.diagnostics.length - diagnosticDelta.fixedCount,
1759
1827
  fixedCount: hasUnscannedUntrackedSourceFiles ? 0 : diagnosticDelta.fixedCount,
1760
1828
  baseTotalCount: baseOutput.diagnostics.length,
1761
- crossFileMatchCount: diagnosticDelta.crossFileMatchCount
1829
+ crossFileMatchCount: diagnosticDelta.crossFileMatchCount,
1830
+ ruleCountMatchCount: diagnosticDelta.ruleCountMatchCount
1762
1831
  }
1763
1832
  };
1764
1833
  } finally {
@@ -2269,6 +2338,11 @@ const inspectWithOxlintRuntime = async (directory, inputOptions, oxlintRuntime)
2269
2338
  ...inputOptions,
2270
2339
  precomputedSourceFiles: void 0
2271
2340
  }, userConfig);
2341
+ const sourceFilterConfigHash = computeSourceFilterConfigHash({
2342
+ userConfig,
2343
+ respectInlineDisables: options.respectInlineDisables
2344
+ });
2345
+ if (options.baselineReport && (options.baselineReport.sourceFilterConfigHash !== void 0 || options.baselineReport.diagnostics.length > 0) && options.baselineReport.sourceFilterConfigHash !== sourceFilterConfigHash) throw new CliInputError("The baseline uses different or unknown source-dependent filters. Regenerate the base --json report with the current textComponents, rawTextWrapperComponents, and respectInlineDisables settings, or use --scope changed --base <ref>.");
2272
2346
  const ownsSpinnerSilence = options.silent && !isConcurrentScan;
2273
2347
  const wasSpinnerSilent = isSpinnerSilent();
2274
2348
  if (ownsSpinnerSilence) setSpinnerSilent(true);
@@ -2286,7 +2360,10 @@ const inspectWithOxlintRuntime = async (directory, inputOptions, oxlintRuntime)
2286
2360
  }
2287
2361
  }, { concurrentScan: isConcurrentScan });
2288
2362
  if (!isConcurrentScan) resetSentryRunState();
2289
- return result;
2363
+ return {
2364
+ ...result,
2365
+ sourceFilterConfigHash
2366
+ };
2290
2367
  } finally {
2291
2368
  if (ownsSpinnerSilence) setSpinnerSilent(wasSpinnerSilent);
2292
2369
  }
@@ -2391,11 +2468,20 @@ const runInspectWithRuntime = async (directory, options, userConfig, hasConfigOv
2391
2468
  let inspectDiagnostics = headDiagnostics;
2392
2469
  let baselineDelta;
2393
2470
  if (options.baselineReport && !didLintFail && !output.didDeadCodeFail && countIncompleteLintFiles(output.lintPartialFailures) === 0) {
2394
- const baseDiagnostics = options.baselineReport.diagnostics;
2471
+ const baseDiagnostics = mergeAndFilterDiagnostics(options.baselineReport.diagnostics.filter((diagnostic) => {
2472
+ const metadata = getRuleMetadata(diagnostic.plugin, diagnostic.rule);
2473
+ if (!metadata) return true;
2474
+ if (metadata.tags.some((tag) => options.ignoredTags.has(tag))) return false;
2475
+ return options.includedTags.size === 0 || metadata.tags.some((tag) => options.includedTags.has(tag));
2476
+ }), directory, userConfig, () => null, {
2477
+ respectInlineDisables: false,
2478
+ warnings: options.warnings
2479
+ });
2395
2480
  const delta = computeDiagnosticDelta({
2396
2481
  headDiagnostics,
2397
2482
  baseDiagnostics,
2398
2483
  renamedFiles: options.baselineReport.renamedFiles ?? {},
2484
+ mapBaseLine: readBaselineLineMap(directory, options.baselineReport.sourceRevision),
2399
2485
  readHeadLine: () => null,
2400
2486
  readBaseLine: () => null
2401
2487
  });
@@ -2407,7 +2493,8 @@ const runInspectWithRuntime = async (directory, options, userConfig, hasConfigOv
2407
2493
  matchedCount: baseDiagnostics.length - delta.fixedCount,
2408
2494
  baseTotalCount: baseDiagnostics.length,
2409
2495
  fixedCount: delta.fixedCount,
2410
- crossFileMatchCount: delta.crossFileMatchCount
2496
+ crossFileMatchCount: delta.crossFileMatchCount,
2497
+ ruleCountMatchCount: delta.ruleCountMatchCount
2411
2498
  };
2412
2499
  } else if (options.baseline && isDiffMode && !didLintFail && !output.didDeadCodeFail && countIncompleteLintFiles(output.lintPartialFailures) === 0) {
2413
2500
  const comparison = await runBaselineComparison({
@@ -3074,15 +3161,18 @@ const validateModeFlags = (flags) => {
3074
3161
  //#region src/cli/utils/format-skipped-projects-message.ts
3075
3162
  const formatSkippedProjectsMessage = (projectCount) => `${projectCount} ${projectCount === 1 ? "project was" : "projects were"} skipped because the max scan duration was reached.`;
3076
3163
  //#endregion
3077
- //#region src/cli/utils/should-fail-scan-gate.ts
3078
- const shouldFailScanGate = (input) => {
3079
- if (input.blockingLevel === "none") return false;
3080
- if (input.scans.some(({ result }) => hasLintHardFailure(result))) return true;
3081
- if (input.diagnosticsAreGateExempt === true) return false;
3082
- return shouldBlockCi(filterScansForSurface(input.scans, "ciFailure"), input.blockingLevel);
3164
+ //#region src/cli/utils/resolve-scan-exit-code.ts
3165
+ const resolveScanExitCode = (input) => {
3166
+ if (input.blockingLevel === "none") return 0;
3167
+ if (input.scans.some(({ result }) => hasLintHardFailure(result))) return 1;
3168
+ if (input.diagnosticsAreGateExempt === true) return 0;
3169
+ const diagnostics = filterScansForSurface(input.scans, "ciFailure");
3170
+ if (shouldBlockCi(diagnostics, input.blockingLevel)) return 1;
3171
+ if (diagnostics.some((diagnostic) => diagnostic.severity === "warning")) return input.warningExitCode ?? 0;
3172
+ return 0;
3083
3173
  };
3084
3174
  //#endregion
3085
- 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, shouldFailScanGate as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
3175
+ 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 };
3086
3176
 
3087
- //# sourceMappingURL=should-fail-scan-gate-ASw8KS4V.js.map
3088
- //# debugId=ce09d425-ec04-5e6d-8bda-1ccbcadc54a4
3177
+ //# sourceMappingURL=resolve-scan-exit-code-CPHZSx3J.js.map
3178
+ //# debugId=4e91daba-985e-5b74-a53e-dbdd1dfeac41
@@ -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]="1252b7f5-81dd-55e3-9e5a-0303c669f1d9")}catch(e){}}();
3
- import { At as isPathInsideDirectory, Ln as toCanonicalPath, ht as filterSourceFiles } from "./record-metric-DlQ2Xkco.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]="29ebe49c-d630-5c87-9d2f-5aa541427205")}catch(e){}}();
3
+ import { Bn as toCanonicalPath, Mt as isPathInsideDirectory, ht as filterSourceFiles } from "./record-metric-C5UBQqkS.js";
4
4
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
5
- import { N as cliLogger } from "./install-doctor-script-DutA3AmF.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-CrCUq-fk.js";
5
+ import { N as cliLogger } from "./install-doctor-script-tXwokAgA.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-BcHvpq2i.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-Dydx4htr.js.map
337
- //# debugId=1252b7f5-81dd-55e3-9e5a-0303c669f1d9
336
+ //# sourceMappingURL=resolve-scope-K1c-uQP2.js.map
337
+ //# debugId=29ebe49c-d630-5c87-9d2f-5aa541427205
@@ -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]="62cd2173-1f4a-5c82-b28e-64685ab1079f")}catch(e){}}();
3
- import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-rmkaA7iw.js";
4
- import { Nt as isSameRuleKey, Q as buildRuleDocsUrl, Vn as isPlainObject, en as validateConfigTypes, it as clearConfigCache, kt as highlighter, t as recordCount, wt as getEquivalentRuleKeys, zt as loadConfigWithSource } from "./record-metric-DlQ2Xkco.js";
5
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DutA3AmF.js";
6
- import { t as readObjectFile } from "./read-object-file-FXP4EgJe.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]="8decdfec-2ece-5259-a5de-e7c05484bd5f")}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-C5UBQqkS.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-tXwokAgA.js";
6
+ import { t as readObjectFile } from "./read-object-file-DuS2a53u.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-BITRtAOo.js.map
582
- //# debugId=62cd2173-1f4a-5c82-b28e-64685ab1079f
581
+ //# sourceMappingURL=rules-CNn-tv4a.js.map
582
+ //# debugId=8decdfec-2ece-5259-a5de-e7c05484bd5f
@@ -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]="56c186d5-5d39-52d0-b28e-e1c383a47b2b")}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-rmkaA7iw.js";
4
- import { Bt as mapWithConcurrency, Ct as getDiffInfo, Et as hasPublishedFixRecipe, Fn as yieldToEventLoop, Kt as resolveScanTarget, On as succeed, Q as buildRuleDocsUrl, Sn as sync, T as isCiEnvironment, U as Reporter, Ut as remainingDeadlineBudgetMs, V as Progress, bn as runPromise, bt as getBaselineDiffPlan, kt as highlighter, n as recordDistribution, t as recordCount, tt as calculateScore, wn as void_, x as isGitHookEnvironment, xt as getChangedLineRanges } from "./record-metric-DlQ2Xkco.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]="d5362c37-914f-54f5-994d-7dfcf6dde0bf")}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-C5UBQqkS.js";
5
5
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
6
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DutA3AmF.js";
7
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-CrCUq-fk.js";
8
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-Dydx4htr.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-ASw8KS4V.js";
10
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-DL4pJV2h.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-CmVfaGKL.js";
6
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-tXwokAgA.js";
7
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-BcHvpq2i.js";
8
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-K1c-uQP2.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-CPHZSx3J.js";
10
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-Ci5GLxeI.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-CrdOPOJQ.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-BvZAmq01.js.map
2518
- //# debugId=56c186d5-5d39-52d0-b28e-e1c383a47b2b
2525
+ //# sourceMappingURL=run-scan-app-CHC39n_x.js.map
2526
+ //# debugId=d5362c37-914f-54f5-994d-7dfcf6dde0bf
@@ -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]="5e0ca5a3-12ee-5635-89e3-5dcfde4a7f4a")}catch(e){}}();
3
- import { u as METRIC } from "./constants-rmkaA7iw.js";
4
- import { kt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-DlQ2Xkco.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]="4eeb240d-0ebb-526a-97c8-5a6f56c0fde3")}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-C5UBQqkS.js";
5
5
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
6
- import { t as reportErrorToSentry } from "./report-error-CsS16tjk.js";
7
- import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-BpoDt67p.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-SAbuIQOl.js";
9
- import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui--ondyPLd.js";
6
+ import { t as reportErrorToSentry } from "./report-error-N4i-Hejx.js";
7
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-Fo2rFfpM.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-iIWcHvte.js";
9
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-DnwgOl2f.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-9SslR9ci.js");
723
+ const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-CIYKBQrq.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-BKWHOq5l.js.map
771
- //# debugId=5e0ca5a3-12ee-5635-89e3-5dcfde4a7f4a
770
+ //# sourceMappingURL=runtime-scan-Dj7Us5sQ.js.map
771
+ //# debugId=4eeb240d-0ebb-526a-97c8-5a6f56c0fde3
@@ -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]="439cef13-7e3f-54bf-a272-70da0d347251")}catch(e){}}();
3
- import { y as CliInputError } from "./record-metric-DlQ2Xkco.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]="2bde6ef8-8e35-5cb3-8194-4aa66ea75844")}catch(e){}}();
3
+ import { y as CliInputError } from "./record-metric-C5UBQqkS.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-SAbuIQOl.js.map
76
- //# debugId=439cef13-7e3f-54bf-a272-70da0d347251
75
+ //# sourceMappingURL=sanitize-runtime-url-iIWcHvte.js.map
76
+ //# debugId=2bde6ef8-8e35-5cb3-8194-4aa66ea75844
@@ -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]="0dfa15b4-08a7-5b08-acc4-76f6438e17ad")}catch(e){}}();
3
- import { u as METRIC } from "./constants-rmkaA7iw.js";
4
- import { Kt as resolveScanTarget, t as recordCount } from "./record-metric-DlQ2Xkco.js";
5
- import { i as warnDeprecatedDiff } from "./resolve-scope-Dydx4htr.js";
6
- import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-td2f87RL.js";
7
- import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-ASw8KS4V.js";
8
- import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui--ondyPLd.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]="7c991839-5963-5f6a-9c8d-10b8776c5455")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { Yt as resolveScanTarget, t as recordCount } from "./record-metric-C5UBQqkS.js";
5
+ import { i as warnDeprecatedDiff } from "./resolve-scope-K1c-uQP2.js";
6
+ import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-5cPWzG-2.js";
7
+ import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-CPHZSx3J.js";
8
+ import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-DnwgOl2f.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-BvZAmq01.js");
33
- const { shouldFail } = await runScanApp({
32
+ const { runScanApp } = await import("./run-scan-app-CHC39n_x.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-BNqVRm8k.js.map
48
- //# debugId=0dfa15b4-08a7-5b08-acc4-76f6438e17ad
48
+ //# sourceMappingURL=scan-Bd3LUmCE.js.map
49
+ //# debugId=7c991839-5963-5f6a-9c8d-10b8776c5455
@@ -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]="ba6ec475-df44-5209-a413-04c17b06c642")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-DlQ2Xkco.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]="5952dbb4-345c-5d9f-b91c-545acb8019e4")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-C5UBQqkS.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-D86BK2WZ.js.map
10
- //# debugId=ba6ec475-df44-5209-a413-04c17b06c642
9
+ //# sourceMappingURL=should-skip-prompts-wO06Jnwa.js.map
10
+ //# debugId=5952dbb4-345c-5d9f-b91c-545acb8019e4
@@ -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]="79abf1ce-e655-559c-a676-b777efe97fe0")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-DlQ2Xkco.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]="804e8b45-2954-5023-abb4-bc1c860a644f")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-C5UBQqkS.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--ondyPLd.js.map
25
- //# debugId=79abf1ce-e655-559c-a676-b777efe97fe0
24
+ //# sourceMappingURL=should-use-tui-DnwgOl2f.js.map
25
+ //# debugId=804e8b45-2954-5023-abb4-bc1c860a644f
@@ -63,4 +63,8 @@ npx react-doctor@latest --verbose --scope changed
63
63
 
64
64
  ### Reuse a base scan
65
65
 
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. Matches use the rule, file path with Git renames, message, and normalized flagged source. Each base finding can match once; line and column shifts do not make it new. Older reports without fingerprints must be regenerated.
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]="55fa2a65-5ba8-56fb-9d8e-21188d12eb7a")}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-rmkaA7iw.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DquUESHw.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-CCqs1vP4.js.map
68
- //# debugId=55fa2a65-5ba8-56fb-9d8e-21188d12eb7a
67
+ //# sourceMappingURL=start-scan-preamble-2uz0joCl.js.map
68
+ //# debugId=27e1e6ce-8978-5df9-8f91-a87cf7616e05
@@ -1,4 +1,4 @@
1
- import "./start-scan-preamble-CCqs1vP4.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]="6d6d1345-d97c-55cd-ac0e-f50f8f64b8b0")}catch(e){}}();
4
- //# debugId=6d6d1345-d97c-55cd-ac0e-f50f8f64b8b0
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