react-doctor 0.9.17 → 0.9.18-dev.3fd747e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +16 -72
  2. package/dist/{build-section-divider-BpE5NDDX.js → build-section-divider-DteFOgr8.js} +5 -5
  3. package/dist/{ci-DNtt9X6S.js → ci-CEeHwGbr.js} +24 -14
  4. package/dist/cli.js +41 -32
  5. package/dist/{constants-DHn5rUeg.js → constants-ClqojoT2.js} +8 -5
  6. package/dist/constants-DNh19qg9.js +2 -2
  7. package/dist/{design-u2afuNir.js → design-DIL8W3e2.js} +4 -4
  8. package/dist/duplicate-jsx-worker.js +3 -3
  9. package/dist/{exit-gracefully-DlI5QxjC.js → exit-gracefully-WjxQroMc.js} +6 -6
  10. package/dist/{handle-error-ChH7NTTt.js → handle-error-_WIbeU-P.js} +6 -6
  11. package/dist/index.d.ts +14 -6
  12. package/dist/index.js +334 -58
  13. package/dist/{inspect-BEMrqB0D.js → inspect-BdRj2K0Y.js} +31 -23
  14. package/dist/{install-rmw4kZuQ.js → install-CKIoGbKq.js} +10 -10
  15. package/dist/{install-doctor-script-D5XbyGON.js → install-doctor-script-CEebcCry.js} +10 -6
  16. package/dist/{install-github-workflow-bsR3MAJ4.js → install-github-workflow-CVwxLEoV.js} +22 -8
  17. package/dist/{install-react-doctor-CEZd9boZ.js → install-react-doctor-DML_KUwD.js} +9 -9
  18. package/dist/{is-cache-globally-disabled-DDlh_f1u.js → is-cache-globally-disabled-DnyI809X.js} +4 -4
  19. package/dist/{jsx-runtime-RhgTgCyJ.js → jsx-runtime-B5RFIrms.js} +6 -6
  20. package/dist/{print-branded-header-DUpSxfB1.js → print-branded-header-L8kiO6YJ.js} +4 -4
  21. package/dist/{prompt-runtime-scan-url-ClnyA-kD.js → prompt-runtime-scan-url-DZ5UhiiZ.js} +5 -5
  22. package/dist/{read-object-file-BmbbCthv.js → read-object-file-CsD5EhTC.js} +4 -4
  23. package/dist/{record-metric-BNXhF2A-.js → record-metric-D3jJa6fT.js} +440 -84
  24. package/dist/{report-error-BaQdqDfo.js → report-error-CPf4AzIS.js} +6 -6
  25. package/dist/{report-workflow-result-keduRDKN.js → report-workflow-result-xPBYzRmI.js} +8 -7
  26. package/dist/{should-fail-scan-gate-DobEL_kS.js → resolve-scan-exit-code-BFPL1YAM.js} +38 -41
  27. package/dist/{resolve-scope-_R9av4PA.js → resolve-scope-l9Y56cqd.js} +10 -9
  28. package/dist/{rules-mbLozamL.js → rules-CG7N96dT.js} +7 -7
  29. package/dist/{run-scan-app-yG6ELpUl.js → run-scan-app-BHQYqxvu.js} +33 -23
  30. package/dist/{runtime-scan-DNhYo683.js → runtime-scan-DHOoet2z.js} +10 -10
  31. package/dist/{sanitize-runtime-url-DM_qbPGY.js → sanitize-runtime-url-DZ8mfOqG.js} +4 -4
  32. package/dist/{scan-CAAixMS9.js → scan-ByNGko5_.js} +14 -13
  33. package/dist/{should-skip-prompts-CGTEgq2F.js → should-skip-prompts-C7QWSlkj.js} +4 -4
  34. package/dist/{should-use-tui-DG2l-Td3.js → should-use-tui-9-X-WTbV.js} +4 -4
  35. package/dist/skills/react-doctor/SKILL.md +19 -8
  36. package/dist/skills/react-doctor/references/explain.md +5 -0
  37. package/dist/{start-scan-preamble-BPz3nzCQ.js → start-scan-preamble-DgEn5GlY.js} +5 -5
  38. package/dist/start-scan-preamble.js +3 -3
  39. package/dist/{telemetry-runtime-CUn1--rM.js → telemetry-runtime-CEaDU-Xr.js} +7 -7
  40. package/dist/{version-CbFBCUY9.js → version-BsnHuJeP.js} +5 -5
  41. package/dist/{why-BIX2FUbP.js → why-BFy88vRS.js} +4 -4
  42. package/dist/{with-run-span-BsS7dU6e.js → with-run-span-o7hsCZyT.js} +6 -6
  43. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6b9613ba-349f-52db-8d82-17ee5e3445c7")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { Nt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-BNXhF2A-.js";
5
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-CUn1--rM.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]="3e94d9ff-fd81-5ba9-83a1-8e762b8e4e79")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Ft as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-D3jJa6fT.js";
5
+ import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-CEaDU-Xr.js";
6
6
  import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
7
7
  //#region src/cli/utils/report-error.ts
8
8
  /**
@@ -61,5 +61,5 @@ const reportErrorToSentry = async (error) => {
61
61
  //#endregion
62
62
  export { reportErrorToSentry as t };
63
63
 
64
- //# sourceMappingURL=report-error-BaQdqDfo.js.map
65
- //# debugId=6b9613ba-349f-52db-8d82-17ee5e3445c7
64
+ //# sourceMappingURL=report-error-CPf4AzIS.js.map
65
+ //# debugId=3e94d9ff-fd81-5ba9-83a1-8e762b8e4e79
@@ -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]="3542e8f5-ebdd-5758-8c2f-50d6de02da24")}catch(e){}}();
3
- import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { t as recordCount } from "./record-metric-BNXhF2A-.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-bsR3MAJ4.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]="4a264c93-2a29-58a0-9bf7-ae7236cf16eb")}catch(e){}}();
3
+ import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { t as recordCount } from "./record-metric-D3jJa6fT.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-CVwxLEoV.js";
6
6
  import { createRequire } from "node:module";
7
7
  import * as path$1 from "node:path";
8
8
  import { spawn } from "node:child_process";
@@ -274,7 +274,8 @@ const openUrl = (url) => new Promise((resolve) => {
274
274
  //#region src/cli/utils/report-workflow-result.ts
275
275
  const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
276
276
  if (result.status === "failed") {
277
- workflowSpinner.fail("Couldn't write the GitHub Actions workflow.");
277
+ if (result.error === "no-git-root") workflowSpinner.fail("Couldn't write the GitHub Actions workflow: no git repository found. Run this command from inside a git repository.");
278
+ else workflowSpinner.fail("Couldn't write the GitHub Actions workflow.");
278
279
  return false;
279
280
  }
280
281
  if (result.status === "exists") {
@@ -288,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
288
289
  //#endregion
289
290
  export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, loadAgentInstall as g, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
290
291
 
291
- //# sourceMappingURL=report-workflow-result-keduRDKN.js.map
292
- //# debugId=3542e8f5-ebdd-5758-8c2f-50d6de02da24
292
+ //# sourceMappingURL=report-workflow-result-xPBYzRmI.js.map
293
+ //# debugId=4a264c93-2a29-58a0-9bf7-ae7236cf16eb
@@ -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]="e48b769a-9844-5e61-94ac-3094eebbccc5")}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-DHn5rUeg.js";
4
- import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DDlh_f1u.js";
5
- import { $ as buildRuleSeverityControls, $t as shouldUseMaintainabilityLayer, A as Files, An as succeed, At as highlighter, B as PerFileLintCacheEnabled, Bn as isDirectory, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runSync, Dt as hasPublishedFixRecipe, E as isCiOrCodingAgentEnvironment, Et as groupBy, F as Linter, Fn as ParentSpan, Ft as isScanComplete, G as SidecarLintCacheEnabled, Gt as remainingDeadlineBudgetMs, H as Project, Hn as isFile, Ht as materializeSourceTree, I as Maintainability, In as isMonorepoRoot, Jt as resolveScanTarget, Kt as resolveGithubActionsScoreMetadata, L as NodeResolver, Ln as yieldToEventLoop, Lt as listSourceFiles, M as InvocationCaches, Nt as isReactDoctorError, O as Config, On as mergeAll, P as LintPartialFailures, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rt as listSourceFilesCooperative, Sn as runPromise, St as getDiagnosticRuleIdentity, T as isCiEnvironment, Tn as try_, Tt as getRuleMetadata, U as Reporter, Ut as mergeAndFilterDiagnostics, V as Progress, Vt as mapWithConcurrency, W as Score, Wt as mergeReactDoctorConfigs, X as atomicWriteJson, Xt as runInspect, Yt as restoreLegacyThrow, _ as VERSION, _n as orElseSucceed, _t as fingerprintDiagnosticEvidence, an as Console, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provideContext, cn as log, ct as countOptInProjectRuleSelections, d as isJsonModeActive, en as summarizeDiagnostics, et as buildSkippedChecks, fn as decodeUnknownSync, ft as discoverSupportedSubprojects, gn as map, ht as filterSourceFiles, in as warmOxlintWorkerPool, j as Git, jt as isPathInsideDirectory, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hashFileContents, l as getRunId, ln as warn, lt as createInvocationCaches, mn as gen, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as error, ot as computeConfigFingerprint, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveLintBatchOrdering, r as toSpanAttributes, rn as warmDuplicateJsxWorker, rt as classifyFileContext, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, un as Diagnostic, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as promise, w as detectRunnerOs, wn as sync, xn as provideService, y as CliInputError, yn as provide, z as OxlintSpawnSlots, zt as listWorkspacePackages } from "./record-metric-BNXhF2A-.js";
6
- import { t as getTelemetryContext } from "./telemetry-runtime-CUn1--rM.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]="746601c9-7394-5cce-8122-7be752bd9632")}catch(e){}}();
3
+ import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-ClqojoT2.js";
4
+ import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DnyI809X.js";
5
+ import { $ as buildRuleSeverityControls, A as Files, An as mergeAll, B as PerFileLintCacheEnabled, Bt as listSourceFilesCooperative, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideService, Dn as try_, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as sync, F as Linter, Ft as isReactDoctorError, G as SidecarLintCacheEnabled, Gt as mergeAndFilterDiagnostics, H as Project, Hn as isDirectory, I as Maintainability, Jt as resolveGithubActionsScoreMetadata, Kt as mergeReactDoctorConfigs, L as NodeResolver, Ln as ParentSpan, Lt as isScanComplete, M as InvocationCaches, Mn as succeed, Mt as highlighter, Nt as isPathInsideDirectory, O as Config, Ot as groupBy, P as LintPartialFailures, Q as buildRuleDocsUrl, Qt as runInspect, R as OxlintConcurrency, Rn as isMonorepoRoot, Sn as provideContext, T as isCiEnvironment, Tn as runSync, U as Reporter, Ut as mapWithConcurrency, V as Progress, Vt as listWorkspacePackages, W as Score, Wn as isFile, Wt as materializeSourceTree, X as atomicWriteJson, Xt as resolveScanTarget, Yt as resolveLintBatchOrdering, Zt as restoreLegacyThrow, _ as VERSION, an as warmDuplicateJsxWorker, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as promise, cn as error, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as warn, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as Diagnostic, gn as gen, gt as filterSourceFiles, ht as filterPathsOutsideDirectories, j as Git, jt as hashFileContents, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hasPublishedFixRecipe, l as getRunId, lt as createChangedLineMatcher, mn as decodeUnknownSync, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as summarizeDiagnostics, nt as canonicalizeUserRuleKey, on as warmOxlintWorkerPool, ot as computeConfigFingerprint, pt as discoverSupportedSubprojects, q as SupplyChain, qt as remainingDeadlineBudgetMs, r as toSpanAttributes, rt as classifyFileContext, sn as Console, st as computeDiagnosticDelta, t as recordCount, tn as shouldUseMaintainabilityLayer, tt as calculateScore, un as log, ut as createInvocationCaches, v as makeNoopConsole, vn as map, w as detectRunnerOs, wn as runPromise, wt as getDiagnosticRuleIdentity, xn as provide, y as CliInputError, yn as orElseSucceed, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as yieldToEventLoop, zt as listSourceFiles } from "./record-metric-D3jJa6fT.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-CEaDU-Xr.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-BpE5NDDX.js";
8
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-DteFOgr8.js";
9
9
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
10
10
  import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
11
- import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-D5XbyGON.js";
12
- import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-bsR3MAJ4.js";
13
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-_R9av4PA.js";
14
- import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-BsS7dU6e.js";
15
- import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-keduRDKN.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-CEebcCry.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-CVwxLEoV.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-l9Y56cqd.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-o7hsCZyT.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-xPBYzRmI.js";
16
16
  import { createRequire } from "node:module";
17
17
  import * as fs$2 from "node:fs";
18
18
  import fs, { mkdtempSync, rmSync } from "node:fs";
@@ -464,6 +464,7 @@ const buildOutcomeAttributes = (input) => {
464
464
  }),
465
465
  ...withNamespace("diag", {
466
466
  total: summary.totalDiagnosticCount,
467
+ withExplicitContext: result.diagnostics.filter((diagnostic) => Boolean(diagnostic.contextRanges?.length)).length,
467
468
  errors: summary.errorCount,
468
469
  warnings: summary.warningCount,
469
470
  affectedFiles: summary.affectedFileCount,
@@ -531,6 +532,7 @@ const buildActionAttributes = () => {
531
532
  actorAssociation: githubActorAssociation,
532
533
  runnerOs: detectRunnerOs(),
533
534
  comment: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.comment),
535
+ commentOnClean: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.commentOnClean),
534
536
  reviewComments: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.reviewComments),
535
537
  versionPin: resolveVersionPin(process.env[ACTION_INPUT_ENVIRONMENT_VARIABLES.version])
536
538
  });
@@ -554,6 +556,7 @@ const buildScanAttributes = (input) => {
554
556
  usedOutputDir: input.usedOutputDir,
555
557
  ignoredTagCount: input.ignoredTagCount,
556
558
  hasCustomConfig: input.hasCustomConfig,
559
+ customRulesOnly: input.userConfig?.customRulesOnly ?? false,
557
560
  rulesConfigured: ruleKeys.length,
558
561
  rulesDisabled: ruleKeys.filter((key) => ruleOverrides[key] === "off").length,
559
562
  projectAnalysisRuleCount: countOptInProjectRuleSelections(buildRuleSeverityControls(input.userConfig)),
@@ -596,21 +599,9 @@ const recordRunEvent = (rootSpan, input) => {
596
599
  } catch {}
597
600
  };
598
601
  //#endregion
599
- //#region src/cli/utils/diagnostic-intersects-line-ranges.ts
600
- const diagnosticIntersectsLineRanges = (diagnostic, lineRanges) => {
601
- const diagnosticEndLine = Math.max(diagnostic.line, diagnostic.endLine ?? diagnostic.line);
602
- return lineRanges.some(([rangeStartLine, rangeEndLine]) => diagnostic.line <= rangeEndLine && diagnosticEndLine >= rangeStartLine);
603
- };
604
- //#endregion
605
602
  //#region src/cli/utils/filter-diagnostics-by-changed-lines.ts
606
603
  const filterDiagnosticsByChangedLines = (input) => {
607
- const rangesByFile = /* @__PURE__ */ new Map();
608
- for (const entry of input.changedLineRanges) rangesByFile.set(toForwardSlashes(entry.file), entry.ranges);
609
- return input.diagnostics.filter((diagnostic) => {
610
- const relativePath = toForwardSlashes(path.isAbsolute(diagnostic.filePath) ? path.relative(input.directory, diagnostic.filePath) : diagnostic.filePath);
611
- const ranges = rangesByFile.get(relativePath);
612
- return ranges !== void 0 && diagnosticIntersectsLineRanges(diagnostic, ranges);
613
- });
604
+ return input.diagnostics.filter(createChangedLineMatcher(input));
614
605
  };
615
606
  //#endregion
616
607
  //#region src/cli/utils/resolve-invocation-oxlint-concurrency.ts
@@ -732,6 +723,7 @@ const resolveInspectOptions = (inputOptions, userConfig) => {
732
723
  maxDurationMs: inputOptions.maxDurationMs ?? null,
733
724
  baselineReport: inputOptions.baselineReport ?? null,
734
725
  baseline: inputOptions.baseline ?? null,
726
+ contextual: inputOptions.contextual ?? false,
735
727
  changedLineRanges: inputOptions.changedLineRanges ?? null,
736
728
  supplyChainManifestChanged: inputOptions.supplyChainManifestChanged ?? false,
737
729
  excludedProjectDirectories: inputOptions.excludedProjectDirectories ?? [],
@@ -1100,7 +1092,7 @@ const resolveWorkerTelemetry = (resolvedWorkerCount, pinnedConcurrency) => {
1100
1092
  const silentConsole$2 = makeNoopConsole();
1101
1093
  const deriveScope = (options) => {
1102
1094
  if (options.baseline || options.baselineReport) return "changed";
1103
- if (options.changedLineRanges !== null) return "lines";
1095
+ if (options.changedLineRanges !== null) return options.contextual ? "contextual" : "lines";
1104
1096
  return options.includePaths.length > 0 ? "files" : "full";
1105
1097
  };
1106
1098
  const buildRunEventConfig = (options, userConfig, resolvedWorkerCount) => {
@@ -2222,6 +2214,7 @@ const buildScanResultCacheKey = async (input) => {
2222
2214
  lintBatchOrdering: resolveLintBatchOrdering(),
2223
2215
  baselineRef: input.options.baseline?.ref,
2224
2216
  changedLineRanges: input.options.changedLineRanges ?? void 0,
2217
+ contextual: input.options.contextual ?? false,
2225
2218
  noScore: input.options.noScore,
2226
2219
  isCi: input.options.isCi,
2227
2220
  suppressRendering: input.options.suppressRendering,
@@ -2518,6 +2511,7 @@ const runInspectWithRuntime = async (directory, options, userConfig, hasConfigOv
2518
2511
  } else if (options.changedLineRanges !== null && isDiffMode) inspectDiagnostics = filterDiagnosticsByChangedLines({
2519
2512
  directory,
2520
2513
  diagnostics: headDiagnostics,
2514
+ contextual: options.contextual,
2521
2515
  changedLineRanges: options.changedLineRanges
2522
2516
  });
2523
2517
  const baselineDegraded = (Boolean(options.baselineReport) || Boolean(options.baseline) && isDiffMode) && baselineDelta === void 0;
@@ -2916,8 +2910,8 @@ const resolveProjectChangedLineRanges = (rootDirectory, projectDirectory, ranges
2916
2910
  const relativeProjectDirectory = resolveProjectRelativeDirectory(rootDirectory, projectDirectory);
2917
2911
  if (relativeProjectDirectory === null) return [];
2918
2912
  if (relativeProjectDirectory.length === 0) return ranges.map((entry) => ({
2919
- file: toForwardSlashes(entry.file),
2920
- ranges: entry.ranges
2913
+ ...entry,
2914
+ file: toForwardSlashes(entry.file)
2921
2915
  }));
2922
2916
  const projectPrefix = `${relativeProjectDirectory}/`;
2923
2917
  return ranges.flatMap((entry) => {
@@ -2925,8 +2919,8 @@ const resolveProjectChangedLineRanges = (rootDirectory, projectDirectory, ranges
2925
2919
  if (!normalizedFilePath.startsWith(projectPrefix)) return [];
2926
2920
  const projectRelativePath = normalizedFilePath.slice(projectPrefix.length);
2927
2921
  return projectRelativePath.length > 0 ? [{
2928
- file: projectRelativePath,
2929
- ranges: entry.ranges
2922
+ ...entry,
2923
+ file: projectRelativePath
2930
2924
  }] : [];
2931
2925
  });
2932
2926
  };
@@ -3135,7 +3129,7 @@ const usedDiffAlias = (flags) => flags.diff !== void 0 && flags.diff !== false &
3135
3129
  const usedScope = (flags) => typeof flags.scope === "string" && flags.scope.length > 0;
3136
3130
  const validateIncludeUntrackedScope = (includeUntracked, scope) => {
3137
3131
  if (!includeUntracked || scope !== void 0 && scope !== "full") return;
3138
- throw new CliInputError("--include-untracked requires the files, changed, or lines scope (via --scope, --diff, or config).");
3132
+ throw new CliInputError("--include-untracked requires the files, changed, lines, or contextual scope (via --scope, --diff, or config).");
3139
3133
  };
3140
3134
  const validateFilePathSelectionFlags = (flags) => {
3141
3135
  if (flags.staged || flags.changedFilesFrom !== void 0) throw new CliInputError("Cannot combine file path arguments with --staged or --changed-files-from. Use one file source.");
@@ -3144,10 +3138,10 @@ const validateFilePathSelectionFlags = (flags) => {
3144
3138
  if (flags.base !== void 0) throw new CliInputError("Cannot combine file path arguments with --base. The selected files do not need a Git base.");
3145
3139
  };
3146
3140
  const validateModeFlags = (flags) => {
3147
- if (flags.baseline && (flags.staged || flags.scope === "lines" || flags.scope === "files")) throw new CliInputError("--baseline requires a full or changed scan; it cannot be combined with --staged.");
3141
+ if (flags.baseline && (flags.staged || flags.scope === "lines" || flags.scope === "contextual" || flags.scope === "files")) throw new CliInputError("--baseline requires a full or changed scan; it cannot be combined with --staged.");
3148
3142
  if (usedScope(flags) && usedDiffAlias(flags)) throw new CliInputError("Cannot combine --scope and --diff; --diff is the deprecated alias.");
3149
3143
  if (flags.staged && usedDiffAlias(flags)) throw new CliInputError("Cannot combine --staged and --diff; pick one mode.");
3150
- if (flags.staged && (flags.scope === "full" || flags.scope === "changed")) throw new CliInputError(`Cannot combine --staged with --scope ${flags.scope}; use --scope files or --scope lines, or drop --scope.`);
3144
+ if (flags.staged && (flags.scope === "full" || flags.scope === "changed")) throw new CliInputError(`Cannot combine --staged with --scope ${flags.scope}; use --scope files, --scope lines, or --scope contextual, or drop --scope.`);
3151
3145
  if (flags.includeUntracked && flags.staged) throw new CliInputError("Cannot combine --include-untracked with --staged; the git index never holds untracked files.");
3152
3146
  if (flags.score && flags.json) throw new CliInputError("Cannot combine --score and --json; pick one output mode.");
3153
3147
  if (flags.score && flags.telemetry === false) throw new CliInputError("Cannot combine --score with --no-telemetry; --score prints the score that --no-telemetry disables.");
@@ -3160,15 +3154,18 @@ const validateModeFlags = (flags) => {
3160
3154
  //#region src/cli/utils/format-skipped-projects-message.ts
3161
3155
  const formatSkippedProjectsMessage = (projectCount) => `${projectCount} ${projectCount === 1 ? "project was" : "projects were"} skipped because the max scan duration was reached.`;
3162
3156
  //#endregion
3163
- //#region src/cli/utils/should-fail-scan-gate.ts
3164
- const shouldFailScanGate = (input) => {
3165
- if (input.blockingLevel === "none") return false;
3166
- if (input.scans.some(({ result }) => hasLintHardFailure(result))) return true;
3167
- if (input.diagnosticsAreGateExempt === true) return false;
3168
- return shouldBlockCi(filterScansForSurface(input.scans, "ciFailure"), input.blockingLevel);
3157
+ //#region src/cli/utils/resolve-scan-exit-code.ts
3158
+ const resolveScanExitCode = (input) => {
3159
+ if (input.blockingLevel === "none") return 0;
3160
+ if (input.scans.some(({ result }) => hasLintHardFailure(result))) return 1;
3161
+ if (input.diagnosticsAreGateExempt === true) return 0;
3162
+ const diagnostics = filterScansForSurface(input.scans, "ciFailure");
3163
+ if (shouldBlockCi(diagnostics, input.blockingLevel)) return 1;
3164
+ if (diagnostics.some((diagnostic) => diagnostic.severity === "warning")) return input.warningExitCode ?? 0;
3165
+ return 0;
3169
3166
  };
3170
3167
  //#endregion
3171
- 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 };
3168
+ export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, resolveScanExitCode as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
3172
3169
 
3173
- //# sourceMappingURL=should-fail-scan-gate-DobEL_kS.js.map
3174
- //# debugId=e48b769a-9844-5e61-94ac-3094eebbccc5
3170
+ //# sourceMappingURL=resolve-scan-exit-code-BFPL1YAM.js.map
3171
+ //# debugId=746601c9-7394-5cce-8122-7be752bd9632
@@ -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]="f66753cf-2d51-5c79-a203-17659121a3be")}catch(e){}}();
3
- import { ht as filterSourceFiles, jt as isPathInsideDirectory, zn as toCanonicalPath } from "./record-metric-BNXhF2A-.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]="8ac4ed14-a765-51e7-aecb-4cc933178497")}catch(e){}}();
3
+ import { Nt as isPathInsideDirectory, Vn as toCanonicalPath, gt as filterSourceFiles } from "./record-metric-D3jJa6fT.js";
4
4
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
5
- import { N as cliLogger } from "./install-doctor-script-D5XbyGON.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-bsR3MAJ4.js";
5
+ import { N as cliLogger } from "./install-doctor-script-CEebcCry.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-CVwxLEoV.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";
@@ -223,7 +223,8 @@ const SCOPE_VALUES = new Set([
223
223
  "full",
224
224
  "files",
225
225
  "changed",
226
- "lines"
226
+ "lines",
227
+ "contextual"
227
228
  ]);
228
229
  const isScopeValue = (value) => SCOPE_VALUES.has(value);
229
230
  const coerceDeprecatedDiff = (value) => {
@@ -252,7 +253,7 @@ const resolveScope = (flags, userConfig) => {
252
253
  base,
253
254
  usedDeprecatedDiff: false
254
255
  };
255
- cliLogger.warn(`Invalid --scope "${flags.scope}". Expected one of: full, files, changed, lines. Ignoring.`);
256
+ cliLogger.warn(`Invalid --scope "${flags.scope}". Expected one of: full, files, changed, lines, contextual. Ignoring.`);
256
257
  }
257
258
  const flagDiff = coerceDeprecatedDiff(flags.diff);
258
259
  if (flagDiff !== void 0) return {
@@ -266,7 +267,7 @@ const resolveScope = (flags, userConfig) => {
266
267
  base,
267
268
  usedDeprecatedDiff: false
268
269
  };
269
- cliLogger.warn(`Invalid scope "${userConfig.scope}" in config. Expected one of: full, files, changed, lines. Ignoring.`);
270
+ cliLogger.warn(`Invalid scope "${userConfig.scope}" in config. Expected one of: full, files, changed, lines, contextual. Ignoring.`);
270
271
  }
271
272
  const configDiff = coerceDeprecatedDiff(userConfig?.diff);
272
273
  if (configDiff !== void 0) return {
@@ -333,5 +334,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
333
334
  //#endregion
334
335
  export { isValidBlockingLevel as a, openWorkflowPullRequest as c, warnDeprecatedDiff as i, stageWorkflowFile as l, isScopeValue as n, pickBlockingLevel as o, resolveScope as r, resolveBlockingLevel as s, finalizeScope as t };
335
336
 
336
- //# sourceMappingURL=resolve-scope-_R9av4PA.js.map
337
- //# debugId=f66753cf-2d51-5c79-a203-17659121a3be
337
+ //# sourceMappingURL=resolve-scope-l9Y56cqd.js.map
338
+ //# debugId=8ac4ed14-a765-51e7-aecb-4cc933178497
@@ -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]="8bae672d-a5d5-5ec5-91b6-6fa15b4693a9")}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-BNXhF2A-.js";
5
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-D5XbyGON.js";
6
- import { t as readObjectFile } from "./read-object-file-BmbbCthv.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]="2229c8c8-d2ae-5471-8acf-0139c451511b")}catch(e){}}();
3
+ import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Et as getEquivalentRuleKeys, Gn as isPlainObject, Ht as loadConfigWithSource, It as isSameRuleKey, Mt as highlighter, Q as buildRuleDocsUrl, in as validateConfigTypes, it as clearConfigCache, t as recordCount } from "./record-metric-D3jJa6fT.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CEebcCry.js";
6
+ import { t as readObjectFile } from "./read-object-file-CsD5EhTC.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-mbLozamL.js.map
582
- //# debugId=8bae672d-a5d5-5ec5-91b6-6fa15b4693a9
581
+ //# sourceMappingURL=rules-CG7N96dT.js.map
582
+ //# debugId=2229c8c8-d2ae-5471-8acf-0139c451511b
@@ -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]="f6185bb4-3f3a-524a-bd32-0b19cc8c031b")}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-BNXhF2A-.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]="ea350287-3ce9-5a0b-a89e-7242f16bf923")}catch(e){}}();
3
+ import { D as TUI_REPORT_COMPACT_MAX_ROWS, In as getCategoryImpact, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, _t as DIAGNOSTIC_CATEGORY_BUCKETS, kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Ct as getChangedLineRanges, En as sync, Mn as succeed, Mt as highlighter, On as void_, Q as buildRuleDocsUrl, St as getBaselineDiffPlan, T as isCiEnvironment, Tt as getDiffInfo, U as Reporter, Ut as mapWithConcurrency, V as Progress, Xt as resolveScanTarget, kt as hasPublishedFixRecipe, n as recordDistribution, qt as remainingDeadlineBudgetMs, t as recordCount, tt as calculateScore, wn as runPromise, x as isGitHookEnvironment, zn as yieldToEventLoop } from "./record-metric-D3jJa6fT.js";
5
5
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
6
- import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-D5XbyGON.js";
7
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-bsR3MAJ4.js";
8
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-_R9av4PA.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-DobEL_kS.js";
10
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-keduRDKN.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-RhgTgCyJ.js";
6
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CEebcCry.js";
7
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-CVwxLEoV.js";
8
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-l9Y56cqd.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-BFPL1YAM.js";
10
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-xPBYzRmI.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-B5RFIrms.js";
12
12
  import path from "node:path";
13
13
  import { performance } from "node:perf_hooks";
14
14
  import isUnicodeSupported from "is-unicode-supported";
@@ -48,7 +48,8 @@ const resolveProjectTuiScanScope = (input) => {
48
48
  baseFiles: baselineBaseFiles,
49
49
  headFiles: baselineHeadFiles
50
50
  } : void 0,
51
- changedLineRanges: input.plan.scope === "lines" && input.plan.changedLineRanges !== null ? resolveProjectChangedLineRanges(input.rootDirectory, input.projectDirectory, input.plan.changedLineRanges) : void 0,
51
+ contextual: input.plan.scope === "contextual",
52
+ changedLineRanges: (input.plan.scope === "lines" || input.plan.scope === "contextual") && input.plan.changedLineRanges !== null ? resolveProjectChangedLineRanges(input.rootDirectory, input.projectDirectory, input.plan.changedLineRanges) : void 0,
52
53
  supplyChainManifestChanged
53
54
  };
54
55
  };
@@ -72,13 +73,14 @@ const resolveTuiScanScope = async (input) => {
72
73
  const baselineRef = scope === "changed" ? comparisonBaseRef : null;
73
74
  const baselineDiffPlan = baselineRef === null ? null : await getBaselineDiffPlan(input.directory, baselineRef);
74
75
  const linesBaseRef = diffInfo?.isCurrentChanges ? "HEAD" : comparisonBaseRef;
75
- const changedLineRanges = scope === "lines" && diffInfo !== null && (diffInfo.isCurrentChanges || linesBaseRef !== null) ? await getChangedLineRanges({
76
+ const changedLineRanges = (scope === "lines" || scope === "contextual") && diffInfo !== null && (diffInfo.isCurrentChanges || linesBaseRef !== null) ? await getChangedLineRanges({
76
77
  directory: input.directory,
77
78
  baseRef: linesBaseRef ?? void 0,
78
79
  files: [...diffInfo.changedFiles],
79
- includeUntracked
80
+ includeUntracked,
81
+ includeDeletions: scope === "contextual"
80
82
  }) : null;
81
- if (scope === "lines" && changedLineRanges === null) {
83
+ if ((scope === "lines" || scope === "contextual") && changedLineRanges === null) {
82
84
  cliLogger.warn("Could not determine changed lines (no base ref or git diff failed); reporting all issues in changed files.");
83
85
  cliLogger.break();
84
86
  }
@@ -2217,7 +2219,7 @@ const mountScanApp = async (rootDirectory, shouldRecommendCi, initialProgress) =
2217
2219
  executePendingActions
2218
2220
  };
2219
2221
  };
2220
- const runMountedScan = async (rootDirectory, presentation, blockingLevel, executeScan) => {
2222
+ const runMountedScan = async (rootDirectory, presentation, gateOptions, executeScan) => {
2221
2223
  const { store, pendingActions, mountRenderer, executePendingActions } = await mountScanApp(rootDirectory, presentation.shouldRecommendCi, presentation.initialProgress);
2222
2224
  let mountedRenderer = mountRenderer("scan");
2223
2225
  recordCount(METRIC.tuiScanInlineShown);
@@ -2243,9 +2245,9 @@ const runMountedScan = async (rootDirectory, presentation, blockingLevel, execut
2243
2245
  lintFailureReason: resolveLintFailureReason(completedScan.scans.map(({ result }) => result))
2244
2246
  });
2245
2247
  await executePendingActions();
2246
- return { shouldFail: shouldFailScanGate({
2248
+ return { exitCode: resolveScanExitCode({
2249
+ ...gateOptions,
2247
2250
  scans: completedScan.scans,
2248
- blockingLevel,
2249
2251
  diagnosticsAreGateExempt: completedScan.diagnosticsAreGateExempt
2250
2252
  }) };
2251
2253
  } catch (error) {
@@ -2265,10 +2267,14 @@ const runSingleProjectScan = async (rootScanTarget, projectDirectory, workspaceP
2265
2267
  });
2266
2268
  if (scopeOptions === null) {
2267
2269
  process.stdout.write("No changed source files in the selected project.\n");
2268
- return { shouldFail: false };
2270
+ return { exitCode: 0 };
2269
2271
  }
2270
2272
  const presentation = resolveScanPresentation(input, [projectScan], rootScanTarget.resolvedDirectory);
2271
- return runMountedScan(projectScan.directory, presentation, blockingLevel, async (context) => {
2273
+ const gateOptions = {
2274
+ blockingLevel,
2275
+ warningExitCode: input.warningExitCode
2276
+ };
2277
+ return runMountedScan(projectScan.directory, presentation, gateOptions, async (context) => {
2272
2278
  const result = await inspectProject(projectScan.directory, {
2273
2279
  ...resolveTuiInspectOptions(input, projectScan.config),
2274
2280
  ...scopeOptions,
@@ -2341,7 +2347,7 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
2341
2347
  });
2342
2348
  if (projectScans.length === 0) {
2343
2349
  process.stdout.write("No changed source files in the selected projects.\n");
2344
- return { shouldFail: false };
2350
+ return { exitCode: 0 };
2345
2351
  }
2346
2352
  const projectCount = projectScans.length;
2347
2353
  const rootProjectScan = discoveredProjectScans.find((projectScan) => path.resolve(projectScan.directory) === path.resolve(rootDirectory));
@@ -2351,7 +2357,10 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
2351
2357
  isRootDeadCodeEnabled: input.options?.deadCode ?? rootProjectScan?.config?.deadCode ?? true
2352
2358
  });
2353
2359
  if (workspaceDeadCodeOwner !== null) recordCount(METRIC.scanWorkspaceMaintainabilityShared, 1, { projectCount: discoveredProjectScans.length });
2354
- return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan), rootDirectory), blockingLevel, async (context) => {
2360
+ return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan), rootDirectory), {
2361
+ blockingLevel,
2362
+ warningExitCode: input.warningExitCode
2363
+ }, async (context) => {
2355
2364
  const startTime = performance.now();
2356
2365
  let finishedCount = 0;
2357
2366
  recordDistribution(METRIC.scanFeedbackDelay, performance.now() - feedbackStartTime, {
@@ -2504,15 +2513,16 @@ const runScanApp = async (input) => {
2504
2513
  configProjects: input.configProjects ?? scanTarget.userConfig?.projects,
2505
2514
  share: input.share ?? scanTarget.userConfig?.share ?? true
2506
2515
  };
2516
+ if (input.warningExitCode !== void 0) recordCount(METRIC.scanWarningExitCodeConfigured);
2507
2517
  const { selectedDirectories, workspaceProjectDirectories } = await resolveProjectSelection(rootDirectory, resolvedInput);
2508
2518
  const inspectProject = createInvocationInspect(input.options?.concurrency);
2509
2519
  const blockingLevel = resolveBlockingLevel({ blocking: resolvedInput.blocking }, scanTarget.userConfig);
2510
- if (selectedDirectories.length === 0) return { shouldFail: false };
2520
+ if (selectedDirectories.length === 0) return { exitCode: 0 };
2511
2521
  if (selectedDirectories.length === 1) return runSingleProjectScan(scanTarget, selectedDirectories[0], workspaceProjectDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
2512
2522
  return runMultiProjectScan(scanTarget, selectedDirectories, workspaceProjectDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
2513
2523
  };
2514
2524
  //#endregion
2515
2525
  export { runScanApp };
2516
2526
 
2517
- //# sourceMappingURL=run-scan-app-yG6ELpUl.js.map
2518
- //# debugId=f6185bb4-3f3a-524a-bd32-0b19cc8c031b
2527
+ //# sourceMappingURL=run-scan-app-BHQYqxvu.js.map
2528
+ //# debugId=ea350287-3ce9-5a0b-a89e-7242f16bf923
@@ -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]="d28937fb-7393-545a-aace-3b6c8ab74686")}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-BNXhF2A-.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]="d7229562-d6e4-5d2f-a25e-5a5732cd2878")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Mt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-D3jJa6fT.js";
5
5
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
6
- import { t as reportErrorToSentry } from "./report-error-BaQdqDfo.js";
7
- import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-BsS7dU6e.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-DM_qbPGY.js";
9
- import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-DG2l-Td3.js";
6
+ import { t as reportErrorToSentry } from "./report-error-CPf4AzIS.js";
7
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-o7hsCZyT.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-DZ8mfOqG.js";
9
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-9-X-WTbV.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-ClnyA-kD.js");
723
+ const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-DZ5UhiiZ.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-DNhYo683.js.map
771
- //# debugId=d28937fb-7393-545a-aace-3b6c8ab74686
770
+ //# sourceMappingURL=runtime-scan-DHOoet2z.js.map
771
+ //# debugId=d7229562-d6e4-5d2f-a25e-5a5732cd2878
@@ -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]="d65901ed-441b-5faf-a87b-f9b36838d024")}catch(e){}}();
3
- import { y as CliInputError } from "./record-metric-BNXhF2A-.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]="915f6302-62e7-507e-9f95-af28bd579249")}catch(e){}}();
3
+ import { y as CliInputError } from "./record-metric-D3jJa6fT.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-DM_qbPGY.js.map
76
- //# debugId=d65901ed-441b-5faf-a87b-f9b36838d024
75
+ //# sourceMappingURL=sanitize-runtime-url-DZ8mfOqG.js.map
76
+ //# debugId=915f6302-62e7-507e-9f95-af28bd579249
@@ -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]="688cf58e-764c-5dca-96d2-74f35e8f59e1")}catch(e){}}();
3
- import { u as METRIC } from "./constants-DHn5rUeg.js";
4
- import { Jt as resolveScanTarget, t as recordCount } from "./record-metric-BNXhF2A-.js";
5
- import { i as warnDeprecatedDiff } from "./resolve-scope-_R9av4PA.js";
6
- import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-BEMrqB0D.js";
7
- import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-DobEL_kS.js";
8
- import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-DG2l-Td3.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]="8408a2fa-a449-5177-88fd-53bfe8a3bd55")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Xt as resolveScanTarget, t as recordCount } from "./record-metric-D3jJa6fT.js";
5
+ import { i as warnDeprecatedDiff } from "./resolve-scope-l9Y56cqd.js";
6
+ import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-BdRj2K0Y.js";
7
+ import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-BFPL1YAM.js";
8
+ import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-9-X-WTbV.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-yG6ELpUl.js");
33
- const { shouldFail } = await runScanApp({
32
+ const { runScanApp } = await import("./run-scan-app-BHQYqxvu.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-CAAixMS9.js.map
48
- //# debugId=688cf58e-764c-5dca-96d2-74f35e8f59e1
48
+ //# sourceMappingURL=scan-ByNGko5_.js.map
49
+ //# debugId=8408a2fa-a449-5177-88fd-53bfe8a3bd55
@@ -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]="728003f8-3cb5-5513-a28e-b45bb3c50a37")}catch(e){}}();
3
- import { b as isNonInteractiveEnvironment } from "./record-metric-BNXhF2A-.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]="2fb99753-999e-5420-9121-16a847ce566b")}catch(e){}}();
3
+ import { b as isNonInteractiveEnvironment } from "./record-metric-D3jJa6fT.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-CGTEgq2F.js.map
10
- //# debugId=728003f8-3cb5-5513-a28e-b45bb3c50a37
9
+ //# sourceMappingURL=should-skip-prompts-C7QWSlkj.js.map
10
+ //# debugId=2fb99753-999e-5420-9121-16a847ce566b