react-doctor 0.9.12-dev.3ff37f3 → 0.9.12-dev.40b9d79

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-Cj0nyrG1.js → build-section-divider-DhknUW8O.js} +7 -7
  2. package/dist/{ci-C9w_Lhh6.js → ci-BVhTdw_T.js} +12 -12
  3. package/dist/cli.js +28 -27
  4. package/dist/{design-CDE4LTuo.js → design-CCT_Ct8U.js} +4 -4
  5. package/dist/{exit-gracefully-C7wG2TfE.js → exit-gracefully-CLYGT4cl.js} +6 -6
  6. package/dist/{handle-error-DiCapepQ.js → handle-error-DtpWOsvq.js} +17 -12
  7. package/dist/index.js +282 -168
  8. package/dist/{inspect-CoLAR93r.js → inspect-FoJdR9sk.js} +16 -16
  9. package/dist/{install-doctor-script-CNGuoU8S.js → install-doctor-script-B5AhDWZA.js} +6 -13
  10. package/dist/{install-github-workflow-BKVWkCTq.js → install-github-workflow-BSH3N1c3.js} +5 -5
  11. package/dist/{install-BJSIzCYw.js → install-qWG6xyrm.js} +9 -9
  12. package/dist/{install-react-doctor-BWRYj-Fs.js → install-react-doctor-Cw8MqlA0.js} +8 -8
  13. package/dist/{jsx-runtime-B5Qxm0Ti.js → jsx-runtime-BwLShqvl.js} +5 -5
  14. package/dist/{print-branded-header-DeYaSsGm.js → print-branded-header-D6Ejmu3Y.js} +4 -4
  15. package/dist/project-analysis-worker.js +13 -18
  16. package/dist/{prompt-runtime-scan-url-BAhpWXsp.js → prompt-runtime-scan-url-uYV9B9gs.js} +5 -5
  17. package/dist/{read-object-file-erb2VkBf.js → read-object-file-CkANFxCX.js} +4 -4
  18. package/dist/{record-metric-Da2M9WzV.js → record-metric-R2qmxbFI.js} +234 -120
  19. package/dist/{report-error-UwwTVzhj.js → report-error-Df8AhCih.js} +5 -5
  20. package/dist/{report-workflow-result-o2TuEe07.js → report-workflow-result-c2TrDM1C.js} +5 -5
  21. package/dist/{resolve-scope-5IZ9ty12.js → resolve-scope-C1UJxMQu.js} +6 -6
  22. package/dist/{rules-EVjd4fgi.js → rules-BsxrrhvF.js} +6 -6
  23. package/dist/{run-scan-app-D6y6mTuD.js → run-scan-app-hor7pC2-.js} +11 -10
  24. package/dist/{runtime-scan-OII2kzLp.js → runtime-scan-Cb4SHwHr.js} +9 -9
  25. package/dist/{sanitize-runtime-url-B5UAaMft.js → sanitize-runtime-url-CaBZMloQ.js} +4 -4
  26. package/dist/{scan-Dbvtv4ys.js → scan-QUKaTmJ1.js} +9 -9
  27. package/dist/{should-fail-scan-gate-ClMRBbO-.js → should-fail-scan-gate-PluFCidv.js} +11 -11
  28. package/dist/{should-skip-prompts-BtU4MJNK.js → should-skip-prompts-B7IcBy-J.js} +4 -4
  29. package/dist/{should-use-tui-CWIewB4u.js → should-use-tui-C4pTudxz.js} +4 -4
  30. package/dist/{telemetry-runtime-6u7KYjVy.js → telemetry-runtime-DNK9D0yD.js} +55 -7
  31. package/dist/{version-BxpgV1hk.js → version-B9i8R2tr.js} +4 -4
  32. package/dist/{why-vAAkjgbL.js → why-DtYqcbNW.js} +4 -4
  33. package/dist/{with-run-span-_U591pbM.js → with-run-span-DEQUQnhd.js} +5 -5
  34. package/package.json +7 -6
@@ -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]="63a6720e-2600-58f8-af29-1687b1457039")}catch(e){}}();
3
- import { i as __toESM$1, r as __require, t as __commonJSMin$1 } from "./chunk-ChKA3wi6.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]="7f7da92a-61df-5b61-9d72-ed18a978ddeb")}catch(e){}}();
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";
6
6
  import * as NodeChildProcess from "node:child_process";
@@ -26,8 +26,8 @@ import { convertToTSX } from "@astrojs/compiler/sync";
26
26
  import { STATUS_CODES } from "node:http";
27
27
  import { gzipSync } from "node:zlib";
28
28
  import { performance as performance$1 } from "node:perf_hooks";
29
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-Dno9RW5R.js
30
- var import_picomatch = /* @__PURE__ */ __toESM$1(require_picomatch(), 1);
29
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-C1E7dTEQ.js
30
+ var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
31
31
  const HTML_FILE_PATTERN = /\.html$/i;
32
32
  const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
33
33
  const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
@@ -311,6 +311,7 @@ const ES_TARGET_YEAR_BY_NAME = {
311
311
  * compiler options — the root config first, then a monorepo base config.
312
312
  */
313
313
  const TSCONFIG_FILENAMES = ["tsconfig.json", "tsconfig.base.json"];
314
+ const DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS = [".react-doctor", "audit-backups"];
314
315
  /**
315
316
  * Project-config files that `StagedFiles.materialize` copies into
316
317
  * the temp directory alongside staged sources so oxlint resolves
@@ -22136,7 +22137,7 @@ Union([
22136
22137
  ]);
22137
22138
  //#endregion
22138
22139
  //#region ../../node_modules/.pnpm/baseline-browser-mapping@2.9.19/node_modules/baseline-browser-mapping/dist/index.cjs
22139
- var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
22140
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
22140
22141
  const s = {
22141
22142
  chrome: { releases: [
22142
22143
  [
@@ -41386,7 +41387,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
41386
41387
  }));
41387
41388
  //#endregion
41388
41389
  //#region ../../node_modules/.pnpm/node-releases@2.0.27/node_modules/node-releases/data/processed/envs.json
41389
- var require_envs = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
41390
+ var require_envs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41390
41391
  module.exports = [
41391
41392
  {
41392
41393
  "name": "nodejs",
@@ -44168,7 +44169,7 @@ var require_envs = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
44168
44169
  }));
44169
44170
  //#endregion
44170
44171
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/browsers.js
44171
- var require_browsers$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
44172
+ var require_browsers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44172
44173
  module.exports = {
44173
44174
  A: "ie",
44174
44175
  B: "edge",
@@ -44193,12 +44194,12 @@ var require_browsers$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
44193
44194
  }));
44194
44195
  //#endregion
44195
44196
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/browsers.js
44196
- var require_browsers = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
44197
+ var require_browsers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44197
44198
  module.exports.browsers = require_browsers$1();
44198
44199
  }));
44199
44200
  //#endregion
44200
44201
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/browserVersions.js
44201
- var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
44202
+ var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44202
44203
  module.exports = {
44203
44204
  "0": "117",
44204
44205
  "1": "118",
@@ -44450,12 +44451,12 @@ var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin$1(((exports, modul
44450
44451
  }));
44451
44452
  //#endregion
44452
44453
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/browserVersions.js
44453
- var require_browserVersions = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
44454
+ var require_browserVersions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44454
44455
  module.exports.browserVersions = require_browserVersions$1();
44455
44456
  }));
44456
44457
  //#endregion
44457
44458
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/agents.js
44458
- var require_agents$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
44459
+ var require_agents$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44459
44460
  module.exports = {
44460
44461
  A: {
44461
44462
  A: {
@@ -48824,7 +48825,7 @@ var require_agents$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
48824
48825
  }));
48825
48826
  //#endregion
48826
48827
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/agents.js
48827
- var require_agents = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
48828
+ var require_agents = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48828
48829
  const browsers = require_browsers().browsers;
48829
48830
  const versions = require_browserVersions().browserVersions;
48830
48831
  const agentsData = require_agents$1();
@@ -48857,7 +48858,7 @@ var require_agents = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
48857
48858
  }));
48858
48859
  //#endregion
48859
48860
  //#region ../../node_modules/.pnpm/electron-to-chromium@1.5.286/node_modules/electron-to-chromium/versions.js
48860
- var require_versions = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
48861
+ var require_versions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48861
48862
  module.exports = {
48862
48863
  "0.20": "39",
48863
48864
  "0.21": "41",
@@ -49091,7 +49092,7 @@ var require_versions = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49091
49092
  }));
49092
49093
  //#endregion
49093
49094
  //#region ../../node_modules/.pnpm/node-releases@2.0.27/node_modules/node-releases/data/release-schedule/release-schedule.json
49094
- var require_release_schedule = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49095
+ var require_release_schedule = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49095
49096
  module.exports = {
49096
49097
  "v0.8": {
49097
49098
  "start": "2012-06-25",
@@ -49248,7 +49249,7 @@ var require_release_schedule = /* @__PURE__ */ __commonJSMin$1(((exports, module
49248
49249
  }));
49249
49250
  //#endregion
49250
49251
  //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/error.js
49251
- var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49252
+ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49252
49253
  function BrowserslistError(message) {
49253
49254
  this.name = "BrowserslistError";
49254
49255
  this.message = message;
@@ -49260,7 +49261,7 @@ var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49260
49261
  }));
49261
49262
  //#endregion
49262
49263
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/lib/statuses.js
49263
- var require_statuses = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49264
+ var require_statuses = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49264
49265
  module.exports = {
49265
49266
  1: "ls",
49266
49267
  2: "rec",
@@ -49273,7 +49274,7 @@ var require_statuses = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49273
49274
  }));
49274
49275
  //#endregion
49275
49276
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/lib/supported.js
49276
- var require_supported = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49277
+ var require_supported = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49277
49278
  module.exports = {
49278
49279
  y: 1,
49279
49280
  n: 2,
@@ -49286,7 +49287,7 @@ var require_supported = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49286
49287
  }));
49287
49288
  //#endregion
49288
49289
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/feature.js
49289
- var require_feature = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49290
+ var require_feature = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49290
49291
  const statuses = require_statuses();
49291
49292
  const supported = require_supported();
49292
49293
  const browsers = require_browsers().browsers;
@@ -49329,7 +49330,7 @@ var require_feature = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49329
49330
  }));
49330
49331
  //#endregion
49331
49332
  //#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/region.js
49332
- var require_region = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49333
+ var require_region = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49333
49334
  const browsers = require_browsers().browsers;
49334
49335
  function unpackRegion(packed) {
49335
49336
  return Object.keys(packed).reduce((list, browser) => {
@@ -49348,7 +49349,7 @@ var require_region = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49348
49349
  }));
49349
49350
  //#endregion
49350
49351
  //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node.js
49351
- var require_node = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49352
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49352
49353
  var feature = require_feature().default;
49353
49354
  var region = require_region().default;
49354
49355
  var fs$2 = __require("fs");
@@ -49641,7 +49642,7 @@ var require_node = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49641
49642
  }));
49642
49643
  //#endregion
49643
49644
  //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/parse.js
49644
- var require_parse = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49645
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49645
49646
  var AND_REGEXP = /^\s+and\s+(.*)/i;
49646
49647
  var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i;
49647
49648
  function flatten(array) {
@@ -49707,7 +49708,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49707
49708
  }));
49708
49709
  //#endregion
49709
49710
  //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/index.js
49710
- var require_browserslist = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
49711
+ var require_browserslist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49711
49712
  var bbm = require_dist();
49712
49713
  var jsReleases = require_envs();
49713
49714
  var agents = require_agents().agents;
@@ -50729,8 +50730,8 @@ var require_browserslist = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
50729
50730
  }));
50730
50731
  //#endregion
50731
50732
  //#region ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Brand.js
50732
- var import_semver = /* @__PURE__ */ __toESM$1(require_semver(), 1);
50733
- var import_browserslist = /* @__PURE__ */ __toESM$1(require_browserslist(), 1);
50733
+ var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
50734
+ var import_browserslist = /* @__PURE__ */ __toESM(require_browserslist(), 1);
50734
50735
  /**
50735
50736
  * Returns a `Constructor` that **does not apply any runtime checks** and just
50736
50737
  * returns the provided value.
@@ -60327,6 +60328,72 @@ const warn$1 = (...args) => consoleWith((console) => sync$2(() => {
60327
60328
  }));
60328
60329
  //#endregion
60329
60330
  //#region ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Cache.js
60331
+ var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
60332
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
60333
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
60334
+ let formatter = (open, close, replace = open) => (input) => {
60335
+ let string = "" + input, index = string.indexOf(close, open.length);
60336
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
60337
+ };
60338
+ let replaceClose = (string, close, replace, index) => {
60339
+ let result = "", cursor = 0;
60340
+ do {
60341
+ result += string.substring(cursor, index) + replace;
60342
+ cursor = index + close.length;
60343
+ index = string.indexOf(close, cursor);
60344
+ } while (~index);
60345
+ return result + string.substring(cursor);
60346
+ };
60347
+ let createColors = (enabled = isColorSupported) => {
60348
+ let f = enabled ? formatter : () => String;
60349
+ return {
60350
+ isColorSupported: enabled,
60351
+ reset: f("\x1B[0m", "\x1B[0m"),
60352
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
60353
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
60354
+ italic: f("\x1B[3m", "\x1B[23m"),
60355
+ underline: f("\x1B[4m", "\x1B[24m"),
60356
+ inverse: f("\x1B[7m", "\x1B[27m"),
60357
+ hidden: f("\x1B[8m", "\x1B[28m"),
60358
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
60359
+ black: f("\x1B[30m", "\x1B[39m"),
60360
+ red: f("\x1B[31m", "\x1B[39m"),
60361
+ green: f("\x1B[32m", "\x1B[39m"),
60362
+ yellow: f("\x1B[33m", "\x1B[39m"),
60363
+ blue: f("\x1B[34m", "\x1B[39m"),
60364
+ magenta: f("\x1B[35m", "\x1B[39m"),
60365
+ cyan: f("\x1B[36m", "\x1B[39m"),
60366
+ white: f("\x1B[37m", "\x1B[39m"),
60367
+ gray: f("\x1B[90m", "\x1B[39m"),
60368
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
60369
+ bgRed: f("\x1B[41m", "\x1B[49m"),
60370
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
60371
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
60372
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
60373
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
60374
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
60375
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
60376
+ blackBright: f("\x1B[90m", "\x1B[39m"),
60377
+ redBright: f("\x1B[91m", "\x1B[39m"),
60378
+ greenBright: f("\x1B[92m", "\x1B[39m"),
60379
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
60380
+ blueBright: f("\x1B[94m", "\x1B[39m"),
60381
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
60382
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
60383
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
60384
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
60385
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
60386
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
60387
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
60388
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
60389
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
60390
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
60391
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
60392
+ };
60393
+ };
60394
+ module.exports = createColors();
60395
+ module.exports.createColors = createColors;
60396
+ })))(), 1);
60330
60397
  /**
60331
60398
  * Caches values loaded by an Effect lookup function.
60332
60399
  *
@@ -62296,27 +62363,6 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
62296
62363
  }
62297
62364
  //#endregion
62298
62365
  //#region ../core/dist/index.js
62299
- var __create = Object.create;
62300
- var __defProp = Object.defineProperty;
62301
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
62302
- var __getOwnPropNames = Object.getOwnPropertyNames;
62303
- var __getProtoOf = Object.getPrototypeOf;
62304
- var __hasOwnProp = Object.prototype.hasOwnProperty;
62305
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
62306
- var __copyProps = (to, from, except, desc) => {
62307
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
62308
- key = keys[i];
62309
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
62310
- get: ((k) => from[k]).bind(null, key),
62311
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
62312
- });
62313
- }
62314
- return to;
62315
- };
62316
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
62317
- value: mod,
62318
- enumerable: true
62319
- }) : target, mod));
62320
62366
  var ProjectNotFoundError = class extends Error {
62321
62367
  name = "ProjectNotFoundError";
62322
62368
  directory;
@@ -69586,72 +69632,6 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
69586
69632
  }
69587
69633
  return session.diagnostics;
69588
69634
  };
69589
- var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
69590
- let p = process || {}, argv = p.argv || [], env = p.env || {};
69591
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
69592
- let formatter = (open, close, replace = open) => (input) => {
69593
- let string = "" + input, index = string.indexOf(close, open.length);
69594
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
69595
- };
69596
- let replaceClose = (string, close, replace, index) => {
69597
- let result = "", cursor = 0;
69598
- do {
69599
- result += string.substring(cursor, index) + replace;
69600
- cursor = index + close.length;
69601
- index = string.indexOf(close, cursor);
69602
- } while (~index);
69603
- return result + string.substring(cursor);
69604
- };
69605
- let createColors = (enabled = isColorSupported) => {
69606
- let f = enabled ? formatter : () => String;
69607
- return {
69608
- isColorSupported: enabled,
69609
- reset: f("\x1B[0m", "\x1B[0m"),
69610
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
69611
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
69612
- italic: f("\x1B[3m", "\x1B[23m"),
69613
- underline: f("\x1B[4m", "\x1B[24m"),
69614
- inverse: f("\x1B[7m", "\x1B[27m"),
69615
- hidden: f("\x1B[8m", "\x1B[28m"),
69616
- strikethrough: f("\x1B[9m", "\x1B[29m"),
69617
- black: f("\x1B[30m", "\x1B[39m"),
69618
- red: f("\x1B[31m", "\x1B[39m"),
69619
- green: f("\x1B[32m", "\x1B[39m"),
69620
- yellow: f("\x1B[33m", "\x1B[39m"),
69621
- blue: f("\x1B[34m", "\x1B[39m"),
69622
- magenta: f("\x1B[35m", "\x1B[39m"),
69623
- cyan: f("\x1B[36m", "\x1B[39m"),
69624
- white: f("\x1B[37m", "\x1B[39m"),
69625
- gray: f("\x1B[90m", "\x1B[39m"),
69626
- bgBlack: f("\x1B[40m", "\x1B[49m"),
69627
- bgRed: f("\x1B[41m", "\x1B[49m"),
69628
- bgGreen: f("\x1B[42m", "\x1B[49m"),
69629
- bgYellow: f("\x1B[43m", "\x1B[49m"),
69630
- bgBlue: f("\x1B[44m", "\x1B[49m"),
69631
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
69632
- bgCyan: f("\x1B[46m", "\x1B[49m"),
69633
- bgWhite: f("\x1B[47m", "\x1B[49m"),
69634
- blackBright: f("\x1B[90m", "\x1B[39m"),
69635
- redBright: f("\x1B[91m", "\x1B[39m"),
69636
- greenBright: f("\x1B[92m", "\x1B[39m"),
69637
- yellowBright: f("\x1B[93m", "\x1B[39m"),
69638
- blueBright: f("\x1B[94m", "\x1B[39m"),
69639
- magentaBright: f("\x1B[95m", "\x1B[39m"),
69640
- cyanBright: f("\x1B[96m", "\x1B[39m"),
69641
- whiteBright: f("\x1B[97m", "\x1B[39m"),
69642
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
69643
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
69644
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
69645
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
69646
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
69647
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
69648
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
69649
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
69650
- };
69651
- };
69652
- module.exports = createColors();
69653
- module.exports.createColors = createColors;
69654
- })))(), 1);
69655
69635
  const highlighter = {
69656
69636
  error: import_picocolors.default.red,
69657
69637
  warn: import_picocolors.default.yellow,
@@ -71067,7 +71047,11 @@ var Git = class Git extends Service()("react-doctor/Git") {
71067
71047
  const symref = yield* runGit(directory, ["symbolic-ref", "refs/remotes/origin/HEAD"]);
71068
71048
  if (symref.status === 0) {
71069
71049
  const trimmed = trimOrNull(symref.stdout);
71070
- if (trimmed !== null) return trimmed.replace("refs/remotes/origin/", "");
71050
+ if (trimmed !== null) {
71051
+ const branchName = trimmed.replace("refs/remotes/origin/", "");
71052
+ const remoteBranch = `origin/${branchName}`;
71053
+ return (yield* branchExists(directory, remoteBranch)) ? remoteBranch : branchName;
71054
+ }
71071
71055
  }
71072
71056
  const candidates = yield* runGit(directory, [
71073
71057
  "for-each-ref",
@@ -71075,7 +71059,10 @@ var Git = class Git extends Service()("react-doctor/Git") {
71075
71059
  ...DEFAULT_BRANCH_CANDIDATES.map((candidate) => `refs/heads/${candidate}`)
71076
71060
  ]);
71077
71061
  if (candidates.status !== 0) return null;
71078
- return trimOrNull(candidates.stdout.split("\n")[0] ?? "");
71062
+ const localBranch = trimOrNull(candidates.stdout.split("\n")[0] ?? "");
71063
+ if (localBranch === null) return null;
71064
+ const remoteBranch = `origin/${localBranch}`;
71065
+ return (yield* branchExists(directory, remoteBranch)) ? remoteBranch : localBranch;
71079
71066
  }).pipe(withSpan("Git.defaultBranch"));
71080
71067
  const branchExists = (directory, branch) => runGit(directory, [
71081
71068
  "rev-parse",
@@ -71574,6 +71561,19 @@ const detectUserLintConfigPaths = (rootDirectory) => {
71574
71561
  return [];
71575
71562
  };
71576
71563
  const DISABLE_DIRECTIVE_PATTERN = /(eslint|oxlint)-disable/;
71564
+ const getBackupRootDirectory = (rootDirectory) => path$1$1.join(rootDirectory, ...DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS);
71565
+ const getBackupPath = (rootDirectory, absolutePath) => {
71566
+ if (!isPathInsideDirectory(absolutePath, rootDirectory)) return null;
71567
+ return path$1$1.join(getBackupRootDirectory(rootDirectory), path$1$1.relative(rootDirectory, absolutePath));
71568
+ };
71569
+ const removeBackupRootIfEmpty = (rootDirectory) => {
71570
+ const backupRootDirectory = getBackupRootDirectory(rootDirectory);
71571
+ if (!walkSourceTreeFiles(backupRootDirectory).next().done) return;
71572
+ fs$1$3.rmSync(backupRootDirectory, {
71573
+ recursive: true,
71574
+ force: true
71575
+ });
71576
+ };
71577
71577
  const neutralizedFileLeases = /* @__PURE__ */ new Map();
71578
71578
  const activeNeutralizationInitializations = /* @__PURE__ */ new Set();
71579
71579
  const directoriesOverlap = (left, right) => {
@@ -71665,8 +71665,50 @@ const collectNeutralizationCandidatePaths = (rootDirectory, discoveredRelativePa
71665
71665
  }
71666
71666
  return candidatePaths;
71667
71667
  };
71668
+ const recoverOrphanedBackups = (rootDirectory) => {
71669
+ const blockedPaths = /* @__PURE__ */ new Set();
71670
+ const backupRootDirectory = getBackupRootDirectory(rootDirectory);
71671
+ for (const { absolutePath: backupPath } of walkSourceTreeFiles(backupRootDirectory)) {
71672
+ const originalPath = path$1$1.join(rootDirectory, path$1$1.relative(backupRootDirectory, backupPath));
71673
+ if (neutralizedFileLeases.has(originalPath)) continue;
71674
+ let backupContent;
71675
+ let currentContent;
71676
+ try {
71677
+ backupContent = fs$1$3.readFileSync(backupPath, "utf-8");
71678
+ currentContent = fs$1$3.readFileSync(originalPath, "utf-8");
71679
+ } catch (error) {
71680
+ process.stderr.write(`[react-doctor] Could not recover ${originalPath}: ${messageFromUnknown(error)}. The backup remains at ${backupPath}.\n`);
71681
+ blockedPaths.add(originalPath);
71682
+ continue;
71683
+ }
71684
+ if (currentContent === backupContent) {
71685
+ try {
71686
+ fs$1$3.rmSync(backupPath);
71687
+ } catch (error) {
71688
+ process.stderr.write(`[react-doctor] Failed to delete stale backup ${backupPath}: ${messageFromUnknown(error)}\n`);
71689
+ blockedPaths.add(originalPath);
71690
+ }
71691
+ continue;
71692
+ }
71693
+ if (currentContent !== neutralizeContent(backupContent)) {
71694
+ process.stderr.write(`[react-doctor] Did not overwrite changed file ${originalPath}. Recover it manually from ${backupPath}.\n`);
71695
+ blockedPaths.add(originalPath);
71696
+ continue;
71697
+ }
71698
+ try {
71699
+ fs$1$3.writeFileSync(originalPath, backupContent);
71700
+ fs$1$3.rmSync(backupPath);
71701
+ } catch (error) {
71702
+ process.stderr.write(`[react-doctor] Failed to restore ${originalPath} from backup: ${messageFromUnknown(error)}\n`);
71703
+ blockedPaths.add(originalPath);
71704
+ }
71705
+ }
71706
+ removeBackupRootIfEmpty(rootDirectory);
71707
+ return blockedPaths;
71708
+ };
71668
71709
  const neutralizeDisableDirectives = async (rootDirectory, includePaths, options = {}) => {
71669
71710
  const resolvedRootDirectory = fs$1$3.realpathSync(rootDirectory);
71711
+ const blockedPaths = /* @__PURE__ */ new Set();
71670
71712
  const leasedPaths = /* @__PURE__ */ new Set();
71671
71713
  let isRestored = false;
71672
71714
  const restore = () => {
@@ -71679,16 +71721,24 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
71679
71721
  if (lease.referenceCount > 0) continue;
71680
71722
  neutralizedFileLeases.delete(absolutePath);
71681
71723
  try {
71682
- fs$1$3.writeFileSync(absolutePath, lease.originalContent);
71724
+ const currentContent = fs$1$3.readFileSync(absolutePath, "utf-8");
71725
+ if (currentContent !== lease.neutralizedContent && currentContent !== lease.originalContent) {
71726
+ process.stderr.write(`[react-doctor] Did not overwrite changed file ${absolutePath}. Recover it manually from ${lease.backupPath}.\n`);
71727
+ continue;
71728
+ }
71729
+ if (currentContent === lease.neutralizedContent) fs$1$3.writeFileSync(absolutePath, lease.originalContent);
71730
+ fs$1$3.rmSync(lease.backupPath, { force: true });
71683
71731
  } catch (error) {
71684
- process.stderr.write(`[react-doctor] Failed to restore inline disable directives in ${absolutePath}: ${messageFromUnknown(error)}\n[react-doctor] Run: git checkout -- ${absolutePath}\n`);
71732
+ process.stderr.write(`[react-doctor] Failed to restore inline disable directives in ${absolutePath}: ${messageFromUnknown(error)}. The backup remains at ${lease.backupPath}.\n`);
71685
71733
  }
71686
71734
  }
71735
+ removeBackupRootIfEmpty(resolvedRootDirectory);
71687
71736
  };
71688
71737
  const onExit = () => restore();
71689
71738
  process.once("exit", onExit);
71690
71739
  const leaseCandidatePath = (absolutePath) => {
71691
71740
  if (leasedPaths.has(absolutePath)) return;
71741
+ if (blockedPaths.has(absolutePath)) return;
71692
71742
  const existingLease = neutralizedFileLeases.get(absolutePath);
71693
71743
  if (existingLease) {
71694
71744
  existingLease.referenceCount += 1;
@@ -71703,9 +71753,20 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
71703
71753
  }
71704
71754
  const neutralizedContent = neutralizeContent(originalContent);
71705
71755
  if (neutralizedContent !== originalContent) {
71756
+ const backupPath = getBackupPath(resolvedRootDirectory, absolutePath);
71757
+ if (backupPath === null) return;
71758
+ try {
71759
+ fs$1$3.mkdirSync(path$1$1.dirname(backupPath), { recursive: true });
71760
+ fs$1$3.writeFileSync(backupPath, originalContent, { flag: "wx" });
71761
+ } catch (error) {
71762
+ process.stderr.write(`[react-doctor] Did not modify ${absolutePath}: ${messageFromUnknown(error)}. Check ${backupPath}.\n`);
71763
+ return;
71764
+ }
71706
71765
  fs$1$3.writeFileSync(absolutePath, neutralizedContent);
71707
71766
  neutralizedFileLeases.set(absolutePath, {
71767
+ backupPath,
71708
71768
  originalContent,
71769
+ neutralizedContent,
71709
71770
  referenceCount: 1
71710
71771
  });
71711
71772
  leasedPaths.add(absolutePath);
@@ -71713,6 +71774,8 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
71713
71774
  };
71714
71775
  try {
71715
71776
  await withOverlappingInitializationLock(resolvedRootDirectory, async () => {
71777
+ for (const blockedPath of recoverOrphanedBackups(resolvedRootDirectory)) blockedPaths.add(blockedPath);
71778
+ if (options.recoverOnly) return;
71716
71779
  for (const absolutePath of collectNeutralizationCandidatePaths(resolvedRootDirectory, [], includePaths)) if (neutralizedFileLeases.has(absolutePath)) leaseCandidatePath(absolutePath);
71717
71780
  const discoveredRelativePaths = await (options.findFiles ?? findFilesWithDisableDirectives)(resolvedRootDirectory, includePaths);
71718
71781
  for (const absolutePath of collectNeutralizationCandidatePaths(resolvedRootDirectory, discoveredRelativePaths, includePaths)) leaseCandidatePath(absolutePath);
@@ -73098,6 +73161,46 @@ const buildProfiledNodeArguments = (input) => [
73098
73161
  ...input.heapProfileDirectory ? ["--heap-prof", `--heap-prof-dir=${input.heapProfileDirectory}`] : [],
73099
73162
  ...input.argumentsList
73100
73163
  ];
73164
+ const buildOxlintTimingArguments = (argumentsList) => {
73165
+ const timingArguments = [...argumentsList];
73166
+ const formatFlagIndex = timingArguments.indexOf("--format");
73167
+ if (formatFlagIndex === -1 || formatFlagIndex + 1 >= timingArguments.length) throw new Error("Oxlint timing arguments require a --format value");
73168
+ timingArguments[formatFlagIndex + 1] = "default";
73169
+ timingArguments.push("--debug", "timings", "--quiet");
73170
+ return timingArguments;
73171
+ };
73172
+ const captureOxlintRuleTimings = (input) => new Promise((resolve, reject) => {
73173
+ const timingEnvironment = { ...input.environment };
73174
+ timingEnvironment.REACT_DOCTOR_RULE_TIMINGS_DIR = void 0;
73175
+ const timingChild = spawn(input.nodeBinaryPath, buildOxlintTimingArguments(input.argumentsList), {
73176
+ cwd: input.rootDirectory,
73177
+ env: timingEnvironment,
73178
+ stdio: [
73179
+ "ignore",
73180
+ "pipe",
73181
+ "pipe"
73182
+ ]
73183
+ });
73184
+ const stdoutBuffers = [];
73185
+ const stderrBuffers = [];
73186
+ timingChild.stdout.on("data", (buffer) => stdoutBuffers.push(buffer));
73187
+ timingChild.stderr.on("data", (buffer) => stderrBuffers.push(buffer));
73188
+ timingChild.on("error", reject);
73189
+ timingChild.on("close", (_code, signal) => {
73190
+ if (signal) {
73191
+ reject(/* @__PURE__ */ new Error(`Oxlint timing pass was killed by ${signal}`));
73192
+ return;
73193
+ }
73194
+ const timingOutput = `${Buffer.concat(stdoutBuffers).toString("utf8")}\n${Buffer.concat(stderrBuffers).toString("utf8")}`;
73195
+ if (!timingOutput.includes("Rule timings:")) {
73196
+ resolve();
73197
+ return;
73198
+ }
73199
+ fs$1$3.mkdirSync(input.timingDirectory, { recursive: true });
73200
+ fs$1$3.writeFileSync(path$1$1.join(input.timingDirectory, `oxlint-${timingChild.pid ?? process.pid}.timings.txt`), timingOutput);
73201
+ resolve();
73202
+ });
73203
+ });
73101
73204
  const lowerChildProcessPriority = (processId) => {
73102
73205
  if (processId === void 0) return;
73103
73206
  try {
@@ -73219,7 +73322,18 @@ const spawnOxlint = (args, rootDirectory, nodeBinaryPath, spawnTimeoutMs = OXLIN
73219
73322
  return;
73220
73323
  }
73221
73324
  }
73222
- resolve(output);
73325
+ const timingDirectory = SANITIZED_ENV.REACT_DOCTOR_OXLINT_TIMINGS_DIR;
73326
+ if (timingDirectory === void 0) {
73327
+ resolve(output);
73328
+ return;
73329
+ }
73330
+ captureOxlintRuleTimings({
73331
+ argumentsList: args,
73332
+ environment: SANITIZED_ENV,
73333
+ nodeBinaryPath,
73334
+ rootDirectory,
73335
+ timingDirectory
73336
+ }).then(() => resolve(output), reject);
73223
73337
  });
73224
73338
  });
73225
73339
  const PARALLELISM_EXHAUSTION_ERROR_CODES = new Set([
@@ -74024,7 +74138,7 @@ const runOxlint = async (options) => {
74024
74138
  const pluginPath = resolvePluginPath();
74025
74139
  const extendsPaths = (adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : []).filter(canOxlintExtendConfig);
74026
74140
  const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
74027
- const restoreDisableDirectives = respectInlineDisables ? () => {} : await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path));
74141
+ const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
74028
74142
  const configDirectory = fs$1$3.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
74029
74143
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
74030
74144
  try {
@@ -76543,7 +76657,7 @@ const makeNoopConsole = () => ({
76543
76657
  });
76544
76658
  //#endregion
76545
76659
  //#region src/cli/utils/version.ts
76546
- const VERSION = "0.9.12-dev.3ff37f3";
76660
+ const VERSION = "0.9.12-dev.40b9d79";
76547
76661
  //#endregion
76548
76662
  //#region src/cli/utils/json-mode.ts
76549
76663
  let context = null;
@@ -76887,5 +77001,5 @@ const recordDistribution = (name, value, options = {}) => {
76887
77001
  //#endregion
76888
77002
  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 };
76889
77003
 
76890
- //# sourceMappingURL=record-metric-Da2M9WzV.js.map
76891
- //# debugId=63a6720e-2600-58f8-af29-1687b1457039
77004
+ //# sourceMappingURL=record-metric-R2qmxbFI.js.map
77005
+ //# debugId=7f7da92a-61df-5b61-9d72-ed18a978ddeb
@@ -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]="86a34540-0455-520c-8947-43aba97818b2")}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-Da2M9WzV.js";
4
- import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-6u7KYjVy.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]="c9a7849a-8f70-594a-b542-26d7745b0203")}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-R2qmxbFI.js";
4
+ import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-DNK9D0yD.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-UwwTVzhj.js.map
64
- //# debugId=86a34540-0455-520c-8947-43aba97818b2
63
+ //# sourceMappingURL=report-error-Df8AhCih.js.map
64
+ //# debugId=c9a7849a-8f70-594a-b542-26d7745b0203
@@ -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]="060ec4b9-a776-5b47-bcb2-fba8f95469a6")}catch(e){}}();
3
- import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-Da2M9WzV.js";
4
- import { u as isCommandAvailable } from "./install-github-workflow-BKVWkCTq.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]="1d942a5f-a070-5d57-a726-bc5e0639ba99")}catch(e){}}();
3
+ import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-R2qmxbFI.js";
4
+ import { u as isCommandAvailable } from "./install-github-workflow-BSH3N1c3.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-o2TuEe07.js.map
279
- //# debugId=060ec4b9-a776-5b47-bcb2-fba8f95469a6
278
+ //# sourceMappingURL=report-workflow-result-c2TrDM1C.js.map
279
+ //# debugId=1d942a5f-a070-5d57-a726-bc5e0639ba99