react-doctor 0.9.13-dev.1239043 → 0.9.13-dev.2e3f6eb

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 (34) hide show
  1. package/dist/{build-section-divider-C09RcJrc.js → build-section-divider-DZA4c-cf.js} +7 -7
  2. package/dist/{ci-CUgNjCr-.js → ci-S0bTu0o7.js} +12 -12
  3. package/dist/cli.js +24 -24
  4. package/dist/{design-CX2j8ubS.js → design-B_e6HEZ7.js} +4 -4
  5. package/dist/{exit-gracefully-cGJM2g3O.js → exit-gracefully-DyTWDVj-.js} +6 -6
  6. package/dist/{handle-error-BCI-Nv3P.js → handle-error-4yYwwrfs.js} +5 -5
  7. package/dist/index.js +21 -41
  8. package/dist/{inspect-Dq5krKWG.js → inspect-CuGcOcRw.js} +17 -19
  9. package/dist/{install-C0aiZKgf.js → install-HI1T486C.js} +9 -9
  10. package/dist/{install-doctor-script-CaTIms0r.js → install-doctor-script-Deldi_8f.js} +4 -4
  11. package/dist/{install-github-workflow-DjPgXVqg.js → install-github-workflow-DSe3lec2.js} +5 -5
  12. package/dist/{install-react-doctor-C-PVDWXv.js → install-react-doctor-CF-vA_AY.js} +8 -8
  13. package/dist/{jsx-runtime-D_A4d39v.js → jsx-runtime-Dv23MVo2.js} +5 -5
  14. package/dist/{print-branded-header-Dz0SwyHQ.js → print-branded-header-DGdy9YGZ.js} +4 -4
  15. package/dist/project-analysis-worker.js +2 -2
  16. package/dist/{prompt-runtime-scan-url-BXdY2Opw.js → prompt-runtime-scan-url-CoDCW0Xw.js} +5 -5
  17. package/dist/{read-object-file-CmMGK1uu.js → read-object-file-CLvVP0OL.js} +4 -4
  18. package/dist/{record-metric-B6T_Ej33.js → record-metric-CFTeG4Ha.js} +24 -45
  19. package/dist/{report-error-DwL3b99q.js → report-error-B_O2ZFAv.js} +5 -5
  20. package/dist/{report-workflow-result-5PueDIAr.js → report-workflow-result-CjDXDNp9.js} +5 -5
  21. package/dist/{resolve-scope-CTlLl7e6.js → resolve-scope-B-trcJ7X.js} +6 -6
  22. package/dist/{rules-DEbHKRag.js → rules-VU4BYkQ8.js} +6 -6
  23. package/dist/{run-scan-app-D3huvmXJ.js → run-scan-app-BfeaRuV4.js} +20 -26
  24. package/dist/{runtime-scan-CHFAEYg3.js → runtime-scan-B_Eegbyo.js} +9 -9
  25. package/dist/{sanitize-runtime-url-Bbq40iIp.js → sanitize-runtime-url-hKKd5j5H.js} +4 -4
  26. package/dist/{scan-C7sCm7wi.js → scan-CrgcC-Rk.js} +9 -9
  27. package/dist/{should-fail-scan-gate-CfG_ppAV.js → should-fail-scan-gate-DE7RleKZ.js} +17 -42
  28. package/dist/{should-skip-prompts-BuNtAVEs.js → should-skip-prompts-BmYznvDr.js} +4 -4
  29. package/dist/{should-use-tui-B-lCjXVG.js → should-use-tui-dVbYKSDM.js} +4 -4
  30. package/dist/{telemetry-runtime-BF83aBFL.js → telemetry-runtime-D2l_bu0o.js} +4 -4
  31. package/dist/{version-C27gr4Qj.js → version-CB3K7ucz.js} +4 -4
  32. package/dist/{why-CYRkZ2VY.js → why-CCN3R7xM.js} +4 -4
  33. package/dist/{with-run-span-CdsXSJgE.js → with-run-span-BC-NFEo9.js} +5 -5
  34. package/package.json +4 -4
@@ -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]="b584244c-9f5f-5204-ba73-239ebcd6089e")}catch(e){}}();
3
- import { C as CI_TRUST_COMPANIES, Kt as highlighter, T as METRIC, br as isErrnoException, cr as GITHUB_ACTIONS_SETUP_URL, gr as SKILL_NAME, t as recordCount, z as CliInputError } from "./record-metric-B6T_Ej33.js";
4
- import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, j as writeJsonFile, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-CaTIms0r.js";
5
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-DjPgXVqg.js";
6
- import { t as shouldSkipPrompts } from "./should-skip-prompts-BuNtAVEs.js";
7
- import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-5PueDIAr.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]="5ae45c34-1201-50a8-934b-211eb73dec0a")}catch(e){}}();
3
+ import { C as CI_TRUST_COMPANIES, Kt as highlighter, T as METRIC, br as isErrnoException, cr as GITHUB_ACTIONS_SETUP_URL, gr as SKILL_NAME, t as recordCount, z as CliInputError } from "./record-metric-CFTeG4Ha.js";
4
+ import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, j as writeJsonFile, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-Deldi_8f.js";
5
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-DSe3lec2.js";
6
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-BmYznvDr.js";
7
+ import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-CjDXDNp9.js";
8
8
  import { execFile } from "node:child_process";
9
9
  import * as path$1 from "node:path";
10
10
  import * as fs$1 from "node:fs";
@@ -1152,5 +1152,5 @@ const runInstallReactDoctor = async (options = {}) => {
1152
1152
  //#endregion
1153
1153
  export { askUpgradeActionVersion as a, recordCiPromptDecision as c, installReactDoctorAgentHooks as i, hasHandledActionUpgrade as l, runInstallReactDoctor as n, askAddToGitHubActions as o, findAgentsWithOutdatedReactDoctorHooks as r, hasHandledCiPrompt as s, getSkillSourceDirectory as t, recordActionUpgradeDecision as u };
1154
1154
 
1155
- //# sourceMappingURL=install-react-doctor-C-PVDWXv.js.map
1156
- //# debugId=b584244c-9f5f-5204-ba73-239ebcd6089e
1155
+ //# sourceMappingURL=install-react-doctor-CF-vA_AY.js.map
1156
+ //# debugId=5ae45c34-1201-50a8-934b-211eb73dec0a
@@ -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]="0a513d9f-3203-59d4-96bc-7784c72d28ff")}catch(e){}}();
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]="0c7bb9a5-dee1-58eb-ab5c-edeac85267a5")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { T as METRIC, t as recordCount } from "./record-metric-B6T_Ej33.js";
5
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-cGJM2g3O.js";
4
+ import { T as METRIC, t as recordCount } from "./record-metric-CFTeG4Ha.js";
5
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-DyTWDVj-.js";
6
6
  import { a as chalk, i as stripAnsi, n as isFullWidth$1, r as isWide$1 } from "./get-east-asian-width-Bv2TD3Xj.js";
7
7
  import { EventEmitter } from "node:events";
8
8
  import { execFileSync } from "node:child_process";
@@ -25869,5 +25869,5 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25869
25869
  //#endregion
25870
25870
  export { useExitOnCtrlC as a, Spinner as c, useInput as d, Transform as f, Box as h, import_react as i, useStdout as l, Text as m, registerMountedTuiRenderer as n, terminalSymbols as o, render as p, useStdoutDimensions as r, isPrintableInput as s, require_jsx_runtime as t, useApp as u };
25871
25871
 
25872
- //# sourceMappingURL=jsx-runtime-D_A4d39v.js.map
25873
- //# debugId=0a513d9f-3203-59d4-96bc-7784c72d28ff
25872
+ //# sourceMappingURL=jsx-runtime-Dv23MVo2.js.map
25873
+ //# debugId=0c7bb9a5-dee1-58eb-ab5c-edeac85267a5
@@ -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]="b38b1905-c03d-5b17-8787-a274af96f23e")}catch(e){}}();
3
- import { An as gen, Kt as highlighter, Tn as log, _ as VERSION } from "./record-metric-B6T_Ej33.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]="791619c8-ee52-526f-ab9c-d1c5dae5b1fe")}catch(e){}}();
3
+ import { An as gen, Kt as highlighter, Tn as log, _ as VERSION } from "./record-metric-CFTeG4Ha.js";
4
4
  //#region src/cli/utils/print-branded-header.ts
5
5
  /**
6
6
  * Single branded line every command prints first when not in JSON
@@ -18,5 +18,5 @@ const printBrandedHeader = gen(function* () {
18
18
  //#endregion
19
19
  export { printBrandedHeader as t };
20
20
 
21
- //# sourceMappingURL=print-branded-header-Dz0SwyHQ.js.map
22
- //# debugId=b38b1905-c03d-5b17-8787-a274af96f23e
21
+ //# sourceMappingURL=print-branded-header-DGdy9YGZ.js.map
22
+ //# debugId=791619c8-ee52-526f-ab9c-d1c5dae5b1fe
@@ -1,5 +1,5 @@
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]="36894edb-acbd-5c90-9ce2-80c54b021bfb")}catch(e){}}();
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]="d6e7f765-fd9c-5293-bba2-ca87773f3e5e")}catch(e){}}();
3
3
  import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { n as require_picomatch$2, t as require_semver } from "./semver-DFtnEmN-.js";
5
5
  import { builtinModules } from "node:module";
@@ -51902,4 +51902,4 @@ startProjectAnalysisWorker();
51902
51902
  export {};
51903
51903
 
51904
51904
  //# sourceMappingURL=project-analysis-worker.js.map
51905
- //# debugId=36894edb-acbd-5c90-9ce2-80c54b021bfb
51905
+ //# debugId=d6e7f765-fd9c-5293-bba2-ca87773f3e5e
@@ -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]="0e2a8ba7-061d-5991-a7ae-c9adab00340e")}catch(e){}}();
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]="7ef5a70a-ddcc-5990-852e-ecfa570517e4")}catch(e){}}();
3
3
  import { t as unrefStdin } from "./unref-stdin-SK3WfwxS.js";
4
- import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-Bbq40iIp.js";
5
- import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-D_A4d39v.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-hKKd5j5H.js";
5
+ import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-Dv23MVo2.js";
6
6
  import * as http from "node:http";
7
7
  //#region src/cli/runtime-scan/detect-local-runtime-urls.ts
8
8
  const LOCAL_HTTP_HOSTS = ["127.0.0.1", "::1"];
@@ -236,5 +236,5 @@ const promptRuntimeScanUrl = () => new Promise((resolve) => {
236
236
  //#endregion
237
237
  export { promptRuntimeScanUrl };
238
238
 
239
- //# sourceMappingURL=prompt-runtime-scan-url-BXdY2Opw.js.map
240
- //# debugId=0e2a8ba7-061d-5991-a7ae-c9adab00340e
239
+ //# sourceMappingURL=prompt-runtime-scan-url-CoDCW0Xw.js.map
240
+ //# debugId=7ef5a70a-ddcc-5990-852e-ecfa570517e4
@@ -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]="846c0e2f-eb25-5791-9f0b-a559abc18de8")}catch(e){}}();
3
- import { Sr as isPlainObject } from "./record-metric-B6T_Ej33.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]="ecbfa2d2-4872-5812-bc21-e8b8278be206")}catch(e){}}();
3
+ import { Sr as isPlainObject } from "./record-metric-CFTeG4Ha.js";
4
4
  import * as fs$1 from "node:fs";
5
5
  import { parseJSON5 } from "confbox";
6
6
  //#region src/cli/utils/read-object-file.ts
@@ -20,5 +20,5 @@ const readObjectFile = (filePath) => {
20
20
  //#endregion
21
21
  export { readObjectFile as t };
22
22
 
23
- //# sourceMappingURL=read-object-file-CmMGK1uu.js.map
24
- //# debugId=846c0e2f-eb25-5791-9f0b-a559abc18de8
23
+ //# sourceMappingURL=read-object-file-CLvVP0OL.js.map
24
+ //# debugId=ecbfa2d2-4872-5812-bc21-e8b8278be206
@@ -1,5 +1,5 @@
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]="1cdcd086-7195-554b-baff-59f165cb07bd")}catch(e){}}();
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]="f7e77a00-45be-577e-afd9-7a3570ab80ce")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { n as require_picomatch, t as require_semver } from "./semver-DFtnEmN-.js";
5
5
  import { createRequire } from "node:module";
@@ -27,7 +27,7 @@ import { convertToTSX } from "@astrojs/compiler/sync";
27
27
  import { STATUS_CODES } from "node:http";
28
28
  import { gzipSync } from "node:zlib";
29
29
  import { performance as performance$1 } from "node:perf_hooks";
30
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-BUQgAJ1L.js
30
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-Dwzr_czq.js
31
31
  var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
32
32
  const HTML_FILE_PATTERN = /\.html$/i;
33
33
  const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
@@ -420,8 +420,7 @@ const SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS = 9e4;
420
420
  const SUPPLY_CHAIN_CACHE_TTL_MS = 864e5;
421
421
  const SUPPLY_CHAIN_CACHE_SUBDIR = "supply-chain";
422
422
  const SUPPLY_CHAIN_IGNORED_PACKAGES = new Set(["next"]);
423
- const JSX_DUPLICATION_SOURCE_FILE_PATTERN = /\.[cm]?(?:jsx?|tsx)$/;
424
- const MAINTAINABILITY_SOURCE_FILE_PATTERN = /\.[cm]?[jt]sx?$/;
423
+ const JSX_DUPLICATION_SOURCE_FILE_PATTERN = /\.[cm]?[jt]sx?$/;
425
424
  const MAINTAINABILITY_PLUGIN = "react-doctor";
426
425
  const MAINTAINABILITY_DUPLICATE_JSX_RULE = "duplicate-jsx-subtree";
427
426
  const MAINTAINABILITY_CATEGORY = "Maintainability";
@@ -62562,14 +62561,6 @@ const isLargeMinifiedFile = (absolutePath, knownSizeBytes) => {
62562
62561
  cachedIsLargeMinifiedByPath.set(absolutePath, result);
62563
62562
  return result;
62564
62563
  };
62565
- const isMissingPath = (absolutePath) => {
62566
- try {
62567
- fs$1$3.statSync(absolutePath);
62568
- return false;
62569
- } catch (error) {
62570
- return isErrnoException(error) && error.code === "ENOENT";
62571
- }
62572
- };
62573
62564
  function* walkSourceTreeFiles(rootDirectory) {
62574
62565
  const stack = [rootDirectory];
62575
62566
  while (stack.length > 0) {
@@ -62591,21 +62582,16 @@ function* walkSourceTreeFiles(rootDirectory) {
62591
62582
  const yieldToEventLoop = () => new Promise((resolve) => {
62592
62583
  setImmediate(resolve);
62593
62584
  });
62594
- const toSizedSourceFileEntry = (rootDirectory, relativePath) => {
62595
- const absolutePath = path$1$1.resolve(rootDirectory, relativePath);
62596
- const sizeBytes = statSourceFileSize(absolutePath);
62597
- if (sizeBytes === null && isMissingPath(absolutePath)) return null;
62598
- if (isLargeMinifiedFile(absolutePath, sizeBytes)) return null;
62599
- return {
62600
- path: relativePath,
62601
- sizeBytes: sizeBytes ?? 0
62602
- };
62603
- };
62604
62585
  const collectSizedSourceFiles = (rootDirectory, relativePaths) => {
62605
62586
  const entries = [];
62606
62587
  for (const relativePath of relativePaths) {
62607
- const entry = toSizedSourceFileEntry(rootDirectory, relativePath);
62608
- if (entry !== null) entries.push(entry);
62588
+ const absolutePath = path$1$1.resolve(rootDirectory, relativePath);
62589
+ const sizeBytes = statSourceFileSize(absolutePath);
62590
+ if (isLargeMinifiedFile(absolutePath, sizeBytes)) continue;
62591
+ entries.push({
62592
+ path: relativePath,
62593
+ sizeBytes: sizeBytes ?? 0
62594
+ });
62609
62595
  }
62610
62596
  return entries;
62611
62597
  };
@@ -62614,8 +62600,12 @@ const collectSizedSourceFilesCooperative = async (rootDirectory, relativePaths,
62614
62600
  let sliceStartedAt = performance.now();
62615
62601
  for (const relativePath of relativePaths) {
62616
62602
  signal?.throwIfAborted();
62617
- const entry = toSizedSourceFileEntry(rootDirectory, relativePath);
62618
- if (entry !== null) entries.push(entry);
62603
+ const absolutePath = path$1$1.resolve(rootDirectory, relativePath);
62604
+ const sizeBytes = statSourceFileSize(absolutePath);
62605
+ if (!isLargeMinifiedFile(absolutePath, sizeBytes)) entries.push({
62606
+ path: relativePath,
62607
+ sizeBytes: sizeBytes ?? 0
62608
+ });
62619
62609
  if (performance.now() - sliceStartedAt >= 12) {
62620
62610
  await yieldToEventLoop();
62621
62611
  sliceStartedAt = performance.now();
@@ -63450,22 +63440,12 @@ const hasReactCompilerConfigInSentryWrapperArgument = (callExpression, analysis,
63450
63440
  const [configArgument] = callExpression.arguments;
63451
63441
  return Boolean(configArgument && analyzeConfigNode(configArgument, analysis, false));
63452
63442
  };
63453
- const hasEnabledCompilerOptionInVitePluginArgument = (callExpression, analysis, moduleSpecifier, exportName) => {
63454
- if (moduleSpecifier !== "@vitejs/plugin-react" || exportName !== "default") return false;
63455
- const [optionsArgument] = callExpression.arguments;
63456
- if (!optionsArgument) return false;
63457
- const compilerProperty = getSelectedObjectProperty(optionsArgument, "compiler", analysis);
63458
- if (compilerProperty === null) return false;
63459
- return !ts.isExpression(compilerProperty.node) || !isStaticallyDisabledConfigExpression(compilerProperty.node, compilerProperty.analysis);
63460
- };
63461
- const hasReactCompilerConfigInCallArguments = (callExpression, analysis, moduleSpecifier, exportName) => hasReactCompilerConfigInSentryWrapperArgument(callExpression, analysis, moduleSpecifier, exportName) || hasEnabledCompilerOptionInVitePluginArgument(callExpression, analysis, moduleSpecifier, exportName);
63462
63443
  const analyzeConfigCallTarget = (callExpression, analysis, allowCompilerTransform) => {
63463
63444
  const target = callExpression.expression;
63464
63445
  const callableRequiredModuleSpecifier = getRequireModuleSpecifier(target);
63465
63446
  if (callableRequiredModuleSpecifier !== null) {
63466
63447
  if (ts.isCallExpression(target) && ts.isIdentifier(target.expression) && (analysis.localBindings.has(target.expression.text) || getScopedConfigBinding(target.expression).wasFound || hasTopLevelValueBinding(analysis.sourceFile, "require"))) return false;
63467
63448
  if (allowCompilerTransform && isCompilerTransformModule(callableRequiredModuleSpecifier, "default")) return true;
63468
- if (hasReactCompilerConfigInCallArguments(callExpression, analysis, callableRequiredModuleSpecifier, "default")) return true;
63469
63449
  const hasCompilerTransform = analyzeImportedConfig({
63470
63450
  analysis,
63471
63451
  moduleSpecifier: callableRequiredModuleSpecifier,
@@ -63483,7 +63463,7 @@ const analyzeConfigCallTarget = (callExpression, analysis, allowCompilerTransfor
63483
63463
  if (requiredModuleSpecifier !== null) {
63484
63464
  if (ts.isCallExpression(target.expression) && ts.isIdentifier(target.expression.expression) && (analysis.localBindings.has(target.expression.expression.text) || getScopedConfigBinding(target.expression.expression).wasFound || hasTopLevelValueBinding(analysis.sourceFile, "require"))) return false;
63485
63465
  if (allowCompilerTransform && isCompilerTransformModule(requiredModuleSpecifier, propertyName)) return true;
63486
- if (hasReactCompilerConfigInCallArguments(callExpression, analysis, requiredModuleSpecifier, propertyName)) return true;
63466
+ if (hasReactCompilerConfigInSentryWrapperArgument(callExpression, analysis, requiredModuleSpecifier, propertyName)) return true;
63487
63467
  const hasCompilerTransform = analyzeImportedConfig({
63488
63468
  analysis,
63489
63469
  moduleSpecifier: requiredModuleSpecifier,
@@ -63498,7 +63478,7 @@ const analyzeConfigCallTarget = (callExpression, analysis, allowCompilerTransfor
63498
63478
  const importBinding = analysis.localBindings.has(target.expression.text) || getScopedConfigBinding(target.expression).wasFound ? null : getImportBinding(analysis.sourceFile, target.expression.text);
63499
63479
  if (importBinding?.isNamespace) {
63500
63480
  if (allowCompilerTransform && isCompilerTransformModule(importBinding.moduleSpecifier, propertyName)) return true;
63501
- if (hasReactCompilerConfigInCallArguments(callExpression, analysis, importBinding.moduleSpecifier, propertyName)) return true;
63481
+ if (hasReactCompilerConfigInSentryWrapperArgument(callExpression, analysis, importBinding.moduleSpecifier, propertyName)) return true;
63502
63482
  const hasCompilerTransform = analyzeImportedConfig({
63503
63483
  analysis,
63504
63484
  moduleSpecifier: importBinding.moduleSpecifier,
@@ -63600,7 +63580,7 @@ const analyzeConfigNode = (node, analysis, allowCompilerTransform, isCompilerTra
63600
63580
  const importBinding = getImportBinding(analysis.sourceFile, node.expression.text);
63601
63581
  if (importBinding) {
63602
63582
  if (allowCompilerTransform && isCompilerTransformModule(importBinding.moduleSpecifier, importBinding.exportName)) return true;
63603
- if (hasReactCompilerConfigInCallArguments(node, analysis, importBinding.moduleSpecifier, importBinding.exportName)) return true;
63583
+ if (hasReactCompilerConfigInSentryWrapperArgument(node, analysis, importBinding.moduleSpecifier, importBinding.exportName)) return true;
63604
63584
  if (allowCompilerTransform && importBinding.moduleSpecifier === "@rolldown/plugin-babel" && importBinding.exportName === "default" && node.arguments.some((argument) => analyzeConfigNode(argument, analysis, false))) return true;
63605
63585
  const hasCompilerTransform = analyzeImportedConfig({
63606
63586
  analysis,
@@ -70733,7 +70713,7 @@ const buildResult = (input) => {
70733
70713
  const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {}) => {
70734
70714
  const resolvedOptions = resolveOptions$1(options);
70735
70715
  const incompleteReasons = [];
70736
- const sortedPaths = sourceReader.paths.filter((sourcePath) => JSX_DUPLICATION_SOURCE_FILE_PATTERN.test(sourcePath)).sort((left, right) => left.localeCompare(right));
70716
+ const sortedPaths = [...sourceReader.paths].sort((left, right) => left.localeCompare(right));
70737
70717
  if (sortedPaths.length > resolvedOptions.maxSourceFiles) incompleteReasons.push({
70738
70718
  kind: "source-file-limit",
70739
70719
  limit: resolvedOptions.maxSourceFiles,
@@ -74041,7 +74021,6 @@ const prepareLintSources = (rootDirectory, temporaryDirectory, candidateFiles) =
74041
74021
  continue;
74042
74022
  }
74043
74023
  const absoluteSourcePath = path$1$1.isAbsolute(candidateFile) ? candidateFile : path$1$1.resolve(rootDirectory, candidateFile);
74044
- if (isMissingPath(absoluteSourcePath)) continue;
74045
74024
  const sourceBuffer = fs$1$3.readFileSync(absoluteSourcePath);
74046
74025
  if (ASTRO_FILE_PATTERN.test(candidateFile)) {
74047
74026
  const compilerSourcePath = absoluteSourcePath.replaceAll("\\", "/");
@@ -76798,7 +76777,7 @@ const makeNoopConsole = () => ({
76798
76777
  });
76799
76778
  //#endregion
76800
76779
  //#region src/cli/utils/version.ts
76801
- const VERSION = "0.9.13-dev.1239043";
76780
+ const VERSION = "0.9.13-dev.2e3f6eb";
76802
76781
  //#endregion
76803
76782
  //#region src/cli/utils/json-mode.ts
76804
76783
  let context = null;
@@ -77140,7 +77119,7 @@ const recordDistribution = (name, value, options = {}) => {
77140
77119
  } catch {}
77141
77120
  };
77142
77121
  //#endregion
77143
- export { Linter as $, CANONICAL_DISCORD_URL as $n, layerObservability as $t, SCAN_RESULT_CACHE_FILENAME as A, gen as An, discoverSupportedSubprojects as At, isNonInteractiveEnvironment as B, sync as Bn, getDiffInfo as Bt, CI_TRUST_COMPANIES as C, error as Cn, messageFromUnknown as Cr, collectSourceFileCountsByDirectory as Ct, NANOSECONDS_PER_MILLISECOND as D, Diagnostic as Dn, createNodeReadFileLinesSync as Dt, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as E, warn$1 as En, countOptInProjectRuleSelections as Et, STAGED_FILES_TEMP_DIR_PREFIX as F, provide as Fn, formatErrorChain as Ft, isCiEnvironment as G, provide$2 as Gn, hashFileContents as Gt, isDebugFlagEnabled as H, void_ as Hn, groupBy as Ht, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as I, provideContext as In, formatReactDoctorError as It, Config as J, makeUnsafe$5 as Jn, isPathInsideDirectory as Jt, isCiOrCodingAgentEnvironment as K, succeed$3 as Kn, highlighter as Kt, TUI_REPORT_COMPACT_MAX_ROWS as L, provideService as Ln, getBaselineDiffPlan as Lt, SENTRY_DSN as M, map$3 as Mn, filterPathsOutsideDirectories as Mt, SENTRY_FLUSH_TIMEOUT_MS as N, orElseSucceed as Nn, filterSourceFiles as Nt, REACT_DOCTOR_CONFIG_PROJECT_NAME as O, decodeUnknownSync as On, createOxlintSpawnSlots as Ot, SENTRY_RELEASE_PREFIX as P, promise as Pn, findLegacyConfig as Pt, LintPartialFailures as Q, AXIOM_DEFAULT_DOMAIN as Qn, isScanComplete as Qt, TUI_REPORT_DETAIL_WIDTH_FRACTION as R, runPromise as Rn, getChangedLineRanges as Rt, BASELINE_FILES_TEMP_DIR_PREFIX as S, Console as Sn, isPlainObject as Sr, clearConfigCache as St, METRIC as T, log as Tn, computeDiagnosticDelta as Tt, ACTION_INPUT_ENVIRONMENT_VARIABLES as U, buildWithScope as Un, hasPublishedFixRecipe as Ut, isGitHookEnvironment as V, try_ as Vn, getEquivalentRuleKeys as Vt, detectRunnerOs as W, mergeAll$1 as Wn, hasSupportedFrameworkOrLibrary as Wt, Git as X, void_$1 as Xn, isReactDoctorError as Xt, Files as Y, fail$5 as Yn, isProjectDiscoveryError as Yt, LEGACY_CONFIG_FILENAME as Z, ParentSpan as Zn, isSameRuleKey as Zt, VERSION as _, shouldUseMaintainabilityLayer as _n, STAGED_FILES_PROJECT_CONFIG_FILENAMES as _r, buildRuleSeverityControls as _t, isEnvFlagEnabled as a, materializeSourceTree as an, DIAGNOSTIC_CATEGORY_BUCKETS as ar, Progress as at, AXIOM_METRICS_DATASET as b, validateConfigTypes as bn, isErrnoException as br, canonicalizeUserRuleKey as bt, setSentryProjectInfo as c, resolveGithubActionsScoreMetadata as cn, GITHUB_ACTIONS_SETUP_URL as cr, Score as ct, isJsonModeActive as d, resolveScanConcurrency as dn, JSX_FILE_PATTERN as dr, SupplyChain as dt, listSourceFiles as en, CANONICAL_GITHUB_URL as er, Maintainability as et, setJsonReportDirectory as f, resolveScanTarget as fn, MAINTAINABILITY_SOURCE_FILE_PATTERN as fr, anonymizeInPlace as ft, writeJsonReport as g, setColorEnabled as gn, SKILL_NAME as gr, buildRuleDocsUrl as gt, writeJsonErrorReport as h, scrubSensitivePaths as hn, SHARE_BASE_URL as hr, buildJsonReport as ht, isTelemetryEnabled as i, mapWithConcurrency as in, CONFIG_SCHEMA_URL as ir, PerFileLintCacheEnabled as it, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as j, makeSpan$1 as jn, filterDiagnosticsForSurface as jt, RUN_GIT_MAX_BUFFER_BYTES as k, make$30 as kn, detectAiTrainingEnvironment as kt, getRunId as l, resolveLintBatchOrdering as ln, GIT_SHOW_MAX_BUFFER_BYTES as lr, SidecarLintCacheEnabled as lt, writeJsonCancellationReport as m, runInspect as mn, OXLINT_NODE_REQUIREMENT as mr, atomicWriteJson as mt, recordDistribution as n, listWorkspacePackages as nn, COMPILER_CLEANUP_BUCKET as nr, OxlintConcurrency as nt, buildSentryScope as o, mergeReactDoctorConfigs as on, DOCS_URL as or, Project as ot, setJsonReportMode as p, restoreLegacyThrow as pn, MILLISECONDS_PER_SECOND as pr, anonymizeText as pt, isCodingAgentEnvironment as q, close as qn, isMonorepoRoot as qt, toSpanAttributes as r, loadConfigWithSource as rn, COMPILER_CLEANUP_RULE_KEYS as rr, OxlintSpawnSlots as rt, buildSentryProjectContext as s, remainingDeadlineBudgetMs as sn, ENTERPRISE_CONTACT_URL as sr, Reporter as st, recordCount as t, listSourceFilesCooperative as tn, CI_URL as tr, NodeResolver as tt, enableJsonMode as u, resolveReactDoctorCacheDir as un, HTML_FILE_PATTERN as ur, StagedFiles as ut, makeNoopConsole as v, summarizeDiagnostics as vn, getCategoryImpact as vr, buildSkippedChecks as vt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as w, info as wn, toCanonicalPath as wr, computeConfigFingerprint as wt, AXIOM_TRACES_DATASET as x, yieldToEventLoop as xn, isFile as xr, classifyFileContext as xt, AXIOM_INGEST_TOKEN as y, toRelativePath as yn, isDirectory as yr, calculateScore as yt, CliInputError as z, runSync as zn, getDiagnosticRuleIdentity as zt };
77122
+ export { Linter as $, CANONICAL_DISCORD_URL as $n, layerObservability as $t, SCAN_RESULT_CACHE_FILENAME as A, gen as An, discoverSupportedSubprojects as At, isNonInteractiveEnvironment as B, sync as Bn, getDiffInfo as Bt, CI_TRUST_COMPANIES as C, error as Cn, messageFromUnknown as Cr, collectSourceFileCountsByDirectory as Ct, NANOSECONDS_PER_MILLISECOND as D, Diagnostic as Dn, createNodeReadFileLinesSync as Dt, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as E, warn$1 as En, countOptInProjectRuleSelections as Et, STAGED_FILES_TEMP_DIR_PREFIX as F, provide as Fn, formatErrorChain as Ft, isCiEnvironment as G, provide$2 as Gn, hashFileContents as Gt, isDebugFlagEnabled as H, void_ as Hn, groupBy as Ht, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as I, provideContext as In, formatReactDoctorError as It, Config as J, makeUnsafe$5 as Jn, isPathInsideDirectory as Jt, isCiOrCodingAgentEnvironment as K, succeed$3 as Kn, highlighter as Kt, TUI_REPORT_COMPACT_MAX_ROWS as L, provideService as Ln, getBaselineDiffPlan as Lt, SENTRY_DSN as M, map$3 as Mn, filterPathsOutsideDirectories as Mt, SENTRY_FLUSH_TIMEOUT_MS as N, orElseSucceed as Nn, filterSourceFiles as Nt, REACT_DOCTOR_CONFIG_PROJECT_NAME as O, decodeUnknownSync as On, createOxlintSpawnSlots as Ot, SENTRY_RELEASE_PREFIX as P, promise as Pn, findLegacyConfig as Pt, LintPartialFailures as Q, AXIOM_DEFAULT_DOMAIN as Qn, isScanComplete as Qt, TUI_REPORT_DETAIL_WIDTH_FRACTION as R, runPromise as Rn, getChangedLineRanges as Rt, BASELINE_FILES_TEMP_DIR_PREFIX as S, Console as Sn, isPlainObject as Sr, clearConfigCache as St, METRIC as T, log as Tn, computeDiagnosticDelta as Tt, ACTION_INPUT_ENVIRONMENT_VARIABLES as U, buildWithScope as Un, hasPublishedFixRecipe as Ut, isGitHookEnvironment as V, try_ as Vn, getEquivalentRuleKeys as Vt, detectRunnerOs as W, mergeAll$1 as Wn, hasSupportedFrameworkOrLibrary as Wt, Git as X, void_$1 as Xn, isReactDoctorError as Xt, Files as Y, fail$5 as Yn, isProjectDiscoveryError as Yt, LEGACY_CONFIG_FILENAME as Z, ParentSpan as Zn, isSameRuleKey as Zt, VERSION as _, shouldUseMaintainabilityLayer as _n, STAGED_FILES_PROJECT_CONFIG_FILENAMES as _r, buildRuleSeverityControls as _t, isEnvFlagEnabled as a, materializeSourceTree as an, DIAGNOSTIC_CATEGORY_BUCKETS as ar, Progress as at, AXIOM_METRICS_DATASET as b, validateConfigTypes as bn, isErrnoException as br, canonicalizeUserRuleKey as bt, setSentryProjectInfo as c, resolveGithubActionsScoreMetadata as cn, GITHUB_ACTIONS_SETUP_URL as cr, Score as ct, isJsonModeActive as d, resolveScanConcurrency as dn, JSX_DUPLICATION_SOURCE_FILE_PATTERN as dr, SupplyChain as dt, listSourceFiles as en, CANONICAL_GITHUB_URL as er, Maintainability as et, setJsonReportDirectory as f, resolveScanTarget as fn, JSX_FILE_PATTERN as fr, anonymizeInPlace as ft, writeJsonReport as g, setColorEnabled as gn, SKILL_NAME as gr, buildRuleDocsUrl as gt, writeJsonErrorReport as h, scrubSensitivePaths as hn, SHARE_BASE_URL as hr, buildJsonReport as ht, isTelemetryEnabled as i, mapWithConcurrency as in, CONFIG_SCHEMA_URL as ir, PerFileLintCacheEnabled as it, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as j, makeSpan$1 as jn, filterDiagnosticsForSurface as jt, RUN_GIT_MAX_BUFFER_BYTES as k, make$30 as kn, detectAiTrainingEnvironment as kt, getRunId as l, resolveLintBatchOrdering as ln, GIT_SHOW_MAX_BUFFER_BYTES as lr, SidecarLintCacheEnabled as lt, writeJsonCancellationReport as m, runInspect as mn, OXLINT_NODE_REQUIREMENT as mr, atomicWriteJson as mt, recordDistribution as n, listWorkspacePackages as nn, COMPILER_CLEANUP_BUCKET as nr, OxlintConcurrency as nt, buildSentryScope as o, mergeReactDoctorConfigs as on, DOCS_URL as or, Project as ot, setJsonReportMode as p, restoreLegacyThrow as pn, MILLISECONDS_PER_SECOND as pr, anonymizeText as pt, isCodingAgentEnvironment as q, close as qn, isMonorepoRoot as qt, toSpanAttributes as r, loadConfigWithSource as rn, COMPILER_CLEANUP_RULE_KEYS as rr, OxlintSpawnSlots as rt, buildSentryProjectContext as s, remainingDeadlineBudgetMs as sn, ENTERPRISE_CONTACT_URL as sr, Reporter as st, recordCount as t, listSourceFilesCooperative as tn, CI_URL as tr, NodeResolver as tt, enableJsonMode as u, resolveReactDoctorCacheDir as un, HTML_FILE_PATTERN as ur, StagedFiles as ut, makeNoopConsole as v, summarizeDiagnostics as vn, getCategoryImpact as vr, buildSkippedChecks as vt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as w, info as wn, toCanonicalPath as wr, computeConfigFingerprint as wt, AXIOM_TRACES_DATASET as x, yieldToEventLoop as xn, isFile as xr, classifyFileContext as xt, AXIOM_INGEST_TOKEN as y, toRelativePath as yn, isDirectory as yr, calculateScore as yt, CliInputError as z, runSync as zn, getDiagnosticRuleIdentity as zt };
77144
77123
 
77145
- //# sourceMappingURL=record-metric-B6T_Ej33.js.map
77146
- //# debugId=1cdcd086-7195-554b-baff-59f165cb07bd
77124
+ //# sourceMappingURL=record-metric-CFTeG4Ha.js.map
77125
+ //# debugId=f7e77a00-45be-577e-afd9-7a3570ab80ce
@@ -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]="a50e7a7a-5898-591d-b456-07e32da9e251")}catch(e){}}();
3
- import { N as SENTRY_FLUSH_TIMEOUT_MS, T as METRIC, Xt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-B6T_Ej33.js";
4
- import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-BF83aBFL.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]="43035c82-a054-500f-a6b4-541501a8fb2c")}catch(e){}}();
3
+ import { N as SENTRY_FLUSH_TIMEOUT_MS, T as METRIC, Xt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-CFTeG4Ha.js";
4
+ import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-D2l_bu0o.js";
5
5
  import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-dlIZeEvb.js";
6
6
  import * as Sentry from "@sentry/node";
7
7
  //#region src/cli/utils/report-error.ts
@@ -60,5 +60,5 @@ const reportErrorToSentry = async (error) => {
60
60
  //#endregion
61
61
  export { reportErrorToSentry as t };
62
62
 
63
- //# sourceMappingURL=report-error-DwL3b99q.js.map
64
- //# debugId=a50e7a7a-5898-591d-b456-07e32da9e251
63
+ //# sourceMappingURL=report-error-B_O2ZFAv.js.map
64
+ //# debugId=43035c82-a054-500f-a6b4-541501a8fb2c
@@ -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]="c93df6bb-cf44-50d2-9adf-02824589c04d")}catch(e){}}();
3
- import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-B6T_Ej33.js";
4
- import { u as isCommandAvailable } from "./install-github-workflow-DjPgXVqg.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]="12846b48-e09b-5719-8a66-89b6dbb53e1b")}catch(e){}}();
3
+ import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-CFTeG4Ha.js";
4
+ import { u as isCommandAvailable } from "./install-github-workflow-DSe3lec2.js";
5
5
  import { spawn } from "node:child_process";
6
6
  import * as path$1 from "node:path";
7
7
  import process$1 from "node:process";
@@ -275,5 +275,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
275
275
  //#endregion
276
276
  export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, 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 };
277
277
 
278
- //# sourceMappingURL=report-workflow-result-5PueDIAr.js.map
279
- //# debugId=c93df6bb-cf44-50d2-9adf-02824589c04d
278
+ //# sourceMappingURL=report-workflow-result-CjDXDNp9.js.map
279
+ //# debugId=12846b48-e09b-5719-8a66-89b6dbb53e1b
@@ -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]="1bdb6cd6-2795-5345-a5ad-ec982582c474")}catch(e){}}();
3
- import { Jt as isPathInsideDirectory, Nt as filterSourceFiles, wr as toCanonicalPath } from "./record-metric-B6T_Ej33.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]="4235e575-5856-5a8d-8d46-58d7138dff1e")}catch(e){}}();
3
+ import { Jt as isPathInsideDirectory, Nt as filterSourceFiles, wr as toCanonicalPath } from "./record-metric-CFTeG4Ha.js";
4
4
  import { t as toForwardSlashes } from "./path-format-DnHpmJwG.js";
5
- import { M as cliLogger } from "./install-doctor-script-CaTIms0r.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-DjPgXVqg.js";
5
+ import { M as cliLogger } from "./install-doctor-script-Deldi_8f.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-DSe3lec2.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-CTlLl7e6.js.map
337
- //# debugId=1bdb6cd6-2795-5345-a5ad-ec982582c474
336
+ //# sourceMappingURL=resolve-scope-B-trcJ7X.js.map
337
+ //# debugId=4235e575-5856-5a8d-8d46-58d7138dff1e
@@ -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]="ff6c9e61-15dc-5af4-8e4a-122e7465ca6f")}catch(e){}}();
3
- import { Kt as highlighter, Sr as isPlainObject, St as clearConfigCache, T as METRIC, Vt as getEquivalentRuleKeys, Zt as isSameRuleKey, bn as validateConfigTypes, gt as buildRuleDocsUrl, nr as COMPILER_CLEANUP_BUCKET, rn as loadConfigWithSource, rr as COMPILER_CLEANUP_RULE_KEYS, t as recordCount } from "./record-metric-B6T_Ej33.js";
4
- import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CaTIms0r.js";
5
- import { t as readObjectFile } from "./read-object-file-CmMGK1uu.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]="03ac9e96-7ee0-57c9-bf0d-373148989b43")}catch(e){}}();
3
+ import { Kt as highlighter, Sr as isPlainObject, St as clearConfigCache, T as METRIC, Vt as getEquivalentRuleKeys, Zt as isSameRuleKey, bn as validateConfigTypes, gt as buildRuleDocsUrl, nr as COMPILER_CLEANUP_BUCKET, rn as loadConfigWithSource, rr as COMPILER_CLEANUP_RULE_KEYS, t as recordCount } from "./record-metric-CFTeG4Ha.js";
4
+ import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-Deldi_8f.js";
5
+ import { t as readObjectFile } from "./read-object-file-CLvVP0OL.js";
6
6
  import * as path$1 from "node:path";
7
7
  import * as fs$1 from "node:fs";
8
8
  import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
@@ -577,5 +577,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
577
577
  //#endregion
578
578
  export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
579
579
 
580
- //# sourceMappingURL=rules-DEbHKRag.js.map
581
- //# debugId=ff6c9e61-15dc-5af4-8e4a-122e7465ca6f
580
+ //# sourceMappingURL=rules-VU4BYkQ8.js.map
581
+ //# debugId=03ac9e96-7ee0-57c9-bf0d-373148989b43
@@ -1,13 +1,13 @@
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]="c35cb9c2-54c7-5c93-8fda-ba1f2e6b60dd")}catch(e){}}();
3
- import { Bn as sync, Bt as getDiffInfo, C as CI_TRUST_COMPANIES, G as isCiEnvironment, Hn as void_, Kn as succeed, Kt as highlighter, L as TUI_REPORT_COMPACT_MAX_ROWS, Lt as getBaselineDiffPlan, R as TUI_REPORT_DETAIL_WIDTH_FRACTION, Rn as runPromise, Rt as getChangedLineRanges, T as METRIC, Ut as hasPublishedFixRecipe, V as isGitHookEnvironment, ar as DIAGNOSTIC_CATEGORY_BUCKETS, at as Progress, cr as GITHUB_ACTIONS_SETUP_URL, fn as resolveScanTarget, gt as buildRuleDocsUrl, in as mapWithConcurrency, n as recordDistribution, sn as remainingDeadlineBudgetMs, st as Reporter, t as recordCount, vr as getCategoryImpact, xn as yieldToEventLoop, yt as calculateScore } from "./record-metric-B6T_Ej33.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]="b86029da-6d89-5203-8c4c-07cf5cf48b53")}catch(e){}}();
3
+ import { Bn as sync, Bt as getDiffInfo, C as CI_TRUST_COMPANIES, G as isCiEnvironment, Hn as void_, Jt as isPathInsideDirectory, Kn as succeed, Kt as highlighter, L as TUI_REPORT_COMPACT_MAX_ROWS, Lt as getBaselineDiffPlan, R as TUI_REPORT_DETAIL_WIDTH_FRACTION, Rn as runPromise, Rt as getChangedLineRanges, T as METRIC, Ut as hasPublishedFixRecipe, V as isGitHookEnvironment, ar as DIAGNOSTIC_CATEGORY_BUCKETS, at as Progress, cr as GITHUB_ACTIONS_SETUP_URL, fn as resolveScanTarget, gt as buildRuleDocsUrl, in as mapWithConcurrency, n as recordDistribution, sn as remainingDeadlineBudgetMs, st as Reporter, t as recordCount, vr as getCategoryImpact, xn as yieldToEventLoop, yt as calculateScore } from "./record-metric-CFTeG4Ha.js";
4
4
  import { t as toForwardSlashes } from "./path-format-DnHpmJwG.js";
5
- import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CaTIms0r.js";
6
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-DjPgXVqg.js";
7
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CTlLl7e6.js";
8
- import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as buildRulePriorityMap, H as buildNoScoreMessage, I as formatElapsedTime, J as formatLearnMoreLine, K as buildSortedRuleGroups, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFileCounts, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as hasLintHardFailure, _ 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 formatFixRecipeLine, 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-CfG_ppAV.js";
9
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-5PueDIAr.js";
10
- import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-D_A4d39v.js";
5
+ import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-Deldi_8f.js";
6
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-DSe3lec2.js";
7
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-B-trcJ7X.js";
8
+ import { B as filterDiagnosticsByCategories, C as CLI_AGENT_BINARIES, D as collectProjectSourceFileCounts, E as buildHandoffPayload, F as formatElapsedTime, G as buildSortedRuleGroups, H as buildEmptyReportMessage, I as printFooter, K as formatFixRecipeLine, L as printDiagnosticsDump, N as pluralize, O as deduplicateProjectScans, P as formatSkippedCheckLabel, R as formatDiagnosticSite, S as detectLaunchableAgents, T as launchCliAgent, U as hasLintHardFailure, V as buildNoScoreMessage, W as buildRulePriorityMap, _ as resolveWorkspaceDeadCodeOwner, b as countUniqueScannedFiles, c as discoverWorkspacePackages, d as resolveProjectScan, f as resolveProjectChangedLineRanges, g as retryMissingProjectScores, i as validateIncludeUntrackedScope, j as resolveMergeBaseRef, k as createInvocationInspect, l as selectProjects, m as resolveProjectSourceFilePaths, n as formatSkippedProjectsMessage, o as projectManifestChanged, p as resolveProjectDiffIncludePaths, q as formatLearnMoreLine, s as partitionProjectScanOutcomes, t as shouldFailScanGate, u as buildCodeFrame, v as resolveCliInspectOptions, w as copyToClipboard, x as setUpGitHubActions, y as filterScansForSurface, z as hasIncompleteScoreAnalysis } from "./should-fail-scan-gate-DE7RleKZ.js";
9
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-CjDXDNp9.js";
10
+ 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-Dv23MVo2.js";
11
11
  import path from "node:path";
12
12
  import { performance } from "node:perf_hooks";
13
13
  import isUnicodeSupported from "is-unicode-supported";
@@ -2064,13 +2064,10 @@ const resolveTuiInspectOptions = (input, config) => {
2064
2064
  warnings
2065
2065
  };
2066
2066
  };
2067
- const resolveProjectSelection = async (rootDirectory, input) => {
2067
+ const resolveSelectedDirectories = async (rootDirectory, input) => {
2068
2068
  const packages = discoverWorkspacePackages(rootDirectory);
2069
- const workspaceProjectDirectories = packages.map((workspacePackage) => workspacePackage.directory);
2070
- return {
2071
- selectedDirectories: packages.length > 1 && !input.projectFlag && !input.skipPrompts && (input.configProjects ?? []).length === 0 && process.stdin.isTTY === true ? await promptProjectSelection(packages, rootDirectory) : await selectProjects(rootDirectory, input.projectFlag, input.skipPrompts ?? false, input.configProjects),
2072
- workspaceProjectDirectories
2073
- };
2069
+ if (!(packages.length > 1 && !input.projectFlag && !input.skipPrompts && (input.configProjects ?? []).length === 0 && process.stdin.isTTY === true)) return selectProjects(rootDirectory, input.projectFlag, input.skipPrompts ?? false, input.configProjects);
2070
+ return promptProjectSelection(packages, rootDirectory);
2074
2071
  };
2075
2072
  const promptProjectSelection = (packages, rootDirectory) => new Promise((resolve) => {
2076
2073
  let disposeRenderer = () => {};
@@ -2252,9 +2249,8 @@ const runMountedScan = async (rootDirectory, presentation, blockingLevel, execut
2252
2249
  throw error;
2253
2250
  }
2254
2251
  };
2255
- const runSingleProjectScan = async (rootScanTarget, projectDirectory, workspaceProjectDirectories, input, scopePlan, blockingLevel, inspectProject) => {
2252
+ const runSingleProjectScan = async (rootScanTarget, projectDirectory, input, scopePlan, blockingLevel, inspectProject) => {
2256
2253
  const projectScan = await resolveProjectScan(rootScanTarget, projectDirectory);
2257
- const isRootProject = path.resolve(projectScan.directory) === path.resolve(rootScanTarget.resolvedDirectory);
2258
2254
  const isSupplyChainEnabled = input.options?.supplyChain ?? projectScan.config?.supplyChain?.enabled ?? true;
2259
2255
  const scopeOptions = resolveProjectTuiScanScope({
2260
2256
  plan: scopePlan,
@@ -2277,9 +2273,7 @@ const runSingleProjectScan = async (rootScanTarget, projectDirectory, workspaceP
2277
2273
  uiLayers: {
2278
2274
  reporter: reporterLayerForStore(context.store),
2279
2275
  progress: progressLayerForStore(context.store)
2280
- },
2281
- excludedProjectDirectories: resolveExcludedProjectDirectories(projectScan.directory, workspaceProjectDirectories),
2282
- retainExcludedProjectDeadCodeDiagnostics: isRootProject
2276
+ }
2283
2277
  });
2284
2278
  const reportSelection = selectReportDiagnostics({
2285
2279
  scan: {
@@ -2321,7 +2315,7 @@ const runSingleProjectScan = async (rootScanTarget, projectDirectory, workspaceP
2321
2315
  };
2322
2316
  });
2323
2317
  };
2324
- const runMultiProjectScan = async (rootScanTarget, directories, workspaceProjectDirectories, input, scopePlan, blockingLevel, inspectProject) => {
2318
+ const runMultiProjectScan = async (rootScanTarget, directories, input, scopePlan, blockingLevel, inspectProject) => {
2325
2319
  const feedbackStartTime = performance.now();
2326
2320
  const rootDirectory = rootScanTarget.resolvedDirectory;
2327
2321
  const discoveredProjectScans = deduplicateProjectScans(await mapWithConcurrency([...directories], 4, (projectDirectory) => resolveProjectScan(rootScanTarget, projectDirectory)));
@@ -2395,7 +2389,7 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
2395
2389
  })
2396
2390
  },
2397
2391
  concurrentScan: true,
2398
- excludedProjectDirectories: resolveExcludedProjectDirectories(projectScan.directory, [...discoveredProjectScans.map((candidateProjectScan) => candidateProjectScan.directory), ...workspaceProjectDirectories]),
2392
+ excludedProjectDirectories: discoveredProjectScans.filter((candidateProjectScan) => isPathInsideDirectory(candidateProjectScan.directory, projectScan.directory)).map((candidateProjectScan) => candidateProjectScan.directory),
2399
2393
  retainExcludedProjectDeadCodeDiagnostics: ownsWorkspaceDeadCode
2400
2394
  });
2401
2395
  finishedCount += 1;
@@ -2503,15 +2497,15 @@ const runScanApp = async (input) => {
2503
2497
  configProjects: input.configProjects ?? scanTarget.userConfig?.projects,
2504
2498
  share: input.share ?? scanTarget.userConfig?.share ?? true
2505
2499
  };
2506
- const { selectedDirectories, workspaceProjectDirectories } = await resolveProjectSelection(rootDirectory, resolvedInput);
2500
+ const selectedDirectories = await resolveSelectedDirectories(rootDirectory, resolvedInput);
2507
2501
  const inspectProject = createInvocationInspect(input.options?.concurrency);
2508
2502
  const blockingLevel = resolveBlockingLevel({ blocking: resolvedInput.blocking }, scanTarget.userConfig);
2509
2503
  if (selectedDirectories.length === 0) return { shouldFail: false };
2510
- if (selectedDirectories.length === 1) return runSingleProjectScan(scanTarget, selectedDirectories[0], workspaceProjectDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
2511
- return runMultiProjectScan(scanTarget, selectedDirectories, workspaceProjectDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
2504
+ if (selectedDirectories.length === 1) return runSingleProjectScan(scanTarget, selectedDirectories[0], resolvedInput, scopePlan, blockingLevel, inspectProject);
2505
+ return runMultiProjectScan(scanTarget, selectedDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
2512
2506
  };
2513
2507
  //#endregion
2514
2508
  export { runScanApp };
2515
2509
 
2516
- //# sourceMappingURL=run-scan-app-D3huvmXJ.js.map
2517
- //# debugId=c35cb9c2-54c7-5c93-8fda-ba1f2e6b60dd
2510
+ //# sourceMappingURL=run-scan-app-BfeaRuV4.js.map
2511
+ //# debugId=b86029da-6d89-5203-8c4c-07cf5cf48b53
@@ -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]="8ba18a38-639a-5138-bcc9-5c97286e25fa")}catch(e){}}();
3
- import { Kt as highlighter, T as METRIC, t as recordCount, u as enableJsonMode, z as CliInputError } from "./record-metric-B6T_Ej33.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]="b8e20c79-9998-55bb-aa66-ecf10a3316f4")}catch(e){}}();
3
+ import { Kt as highlighter, T as METRIC, t as recordCount, u as enableJsonMode, z as CliInputError } from "./record-metric-CFTeG4Ha.js";
4
4
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-DwG6tSPy.js";
5
- import { t as reportErrorToSentry } from "./report-error-DwL3b99q.js";
6
- import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-CdsXSJgE.js";
7
- 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-Bbq40iIp.js";
8
- import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-B-lCjXVG.js";
5
+ import { t as reportErrorToSentry } from "./report-error-B_O2ZFAv.js";
6
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-BC-NFEo9.js";
7
+ 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-hKKd5j5H.js";
8
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-dVbYKSDM.js";
9
9
  import * as path$1 from "node:path";
10
10
  import * as fs$1 from "node:fs";
11
11
  import { randomUUID } from "node:crypto";
@@ -719,7 +719,7 @@ const resolveRuntimeScanUrl = async (url) => {
719
719
  if (url !== void 0) return url;
720
720
  if (!isTuiEnvironmentSupported(resolveTuiEnvironment(process.stderr.isTTY === true))) throw new CliInputError("A URL is required outside an interactive terminal. Run `react-doctor scan <url>`.");
721
721
  recordCount(METRIC.runtimeScanUrlPromptShown);
722
- const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-BXdY2Opw.js");
722
+ const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-CoDCW0Xw.js");
723
723
  return promptRuntimeScanUrl();
724
724
  };
725
725
  const runtimeScanAction = async (url, flags) => {
@@ -766,5 +766,5 @@ const runtimeScanAction = async (url, flags) => {
766
766
  //#endregion
767
767
  export { runtimeScanAction };
768
768
 
769
- //# sourceMappingURL=runtime-scan-CHFAEYg3.js.map
770
- //# debugId=8ba18a38-639a-5138-bcc9-5c97286e25fa
769
+ //# sourceMappingURL=runtime-scan-B_Eegbyo.js.map
770
+ //# debugId=b8e20c79-9998-55bb-aa66-ecf10a3316f4
@@ -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]="39fe62ec-70de-53ef-9168-84e5123b75a2")}catch(e){}}();
3
- import { z as CliInputError } from "./record-metric-B6T_Ej33.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]="ef8d95fe-5733-5d50-baa8-d4327d607abe")}catch(e){}}();
3
+ import { z as CliInputError } from "./record-metric-CFTeG4Ha.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-Bbq40iIp.js.map
76
- //# debugId=39fe62ec-70de-53ef-9168-84e5123b75a2
75
+ //# sourceMappingURL=sanitize-runtime-url-hKKd5j5H.js.map
76
+ //# debugId=ef8d95fe-5733-5d50-baa8-d4327d607abe