react-doctor 0.9.22-dev.ec45ff9 → 0.9.23-dev.dfffab3

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 (42) hide show
  1. package/dist/{build-section-divider-BjoMRSay.js → build-section-divider-BFxWf70B.js} +5 -5
  2. package/dist/{ci-Rhhvl7uT.js → ci-CLtdQCIE.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-lt2tTZjE.js → constants-BmD_c3Yq.js} +12 -6
  5. package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
  6. package/dist/{design-C5BQaJUn.js → design-BMqPn207.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-BxFRFqPQ.js → exit-gracefully-Bhyw-8gk.js} +6 -6
  9. package/dist/{handle-error-BnEcoXcw.js → handle-error-BJ_4E2kS.js} +6 -6
  10. package/dist/index.d.ts +5 -2
  11. package/dist/index.js +137 -20
  12. package/dist/{inspect-CrcIovH2.js → inspect-BuLr42QI.js} +16 -16
  13. package/dist/{install-DIHCDDtX.js → install-DsuiRD1t.js} +10 -10
  14. package/dist/{install-doctor-script-CcM2cToW.js → install-doctor-script-DJ6UbhZJ.js} +5 -5
  15. package/dist/{install-github-workflow-BUaLt5mn.js → install-github-workflow-BNRbJHjd.js} +6 -6
  16. package/dist/{install-react-doctor-BnaGEio4.js → install-react-doctor-BcsOSw5y.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-CveNGcRi.js} +4 -4
  18. package/dist/{jsx-runtime-CKOQW4i4.js → jsx-runtime-BDdabT1T.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-COh3X3He.js → print-branded-header-BFh1P9t6.js} +4 -4
  21. package/dist/project-analysis-worker.js +1 -1
  22. package/dist/{prompt-runtime-scan-url-lBPap3oz.js → prompt-runtime-scan-url-CRx8qrV0.js} +5 -5
  23. package/dist/{read-object-file-sQUp7PMm.js → read-object-file-D3pRnLyV.js} +4 -4
  24. package/dist/{record-metric-3hs8M2Pf.js → record-metric-CWxS2npr.js} +132 -21
  25. package/dist/{report-error-CtR7ISJa.js → report-error-DA8uMulb.js} +6 -6
  26. package/dist/{report-workflow-result-C68s63w1.js → report-workflow-result-D6NNwRMm.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-DrC3xu0y.js → resolve-scan-exit-code-DE6AIQwU.js} +13 -13
  28. package/dist/{resolve-scope-Cq7AJdtO.js → resolve-scope-B3xmSQ0a.js} +6 -6
  29. package/dist/{rules-BesJjxty.js → rules-CHxjoZwR.js} +7 -7
  30. package/dist/{run-scan-app-CfsLjIjZ.js → run-scan-app-BuI_XZcx.js} +11 -11
  31. package/dist/{runtime-scan-DA2v7tXp.js → runtime-scan-0pSZm3M0.js} +10 -10
  32. package/dist/{sanitize-runtime-url-C9P8617N.js → sanitize-runtime-url-BCw_Ixks.js} +4 -4
  33. package/dist/{scan-BTjqJfRl.js → scan-Be7a-iK7.js} +10 -10
  34. package/dist/{should-skip-prompts-DjIiPcs_.js → should-skip-prompts-CDudIC40.js} +4 -4
  35. package/dist/{should-use-tui-Cd3om7tH.js → should-use-tui-HuQLii4U.js} +4 -4
  36. package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DDAT_0oB.js} +5 -5
  37. package/dist/start-scan-preamble.js +3 -3
  38. package/dist/{telemetry-runtime-JrDTvdnm.js → telemetry-runtime-De9QafWu.js} +13 -7
  39. package/dist/{version-osih6Dt3.js → version-uDDHk7KW.js} +5 -5
  40. package/dist/{why-BJLqu_nm.js → why-Dww_fJtq.js} +4 -4
  41. package/dist/{with-run-span-DJ74_coc.js → with-run-span-CRYkeESN.js} +6 -6
  42. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -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]="4aa6d167-b90d-5f92-a4a9-bdc74620b171")}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]="5255a206-f2ac-51fa-9a2f-9480ba58e9d7")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import * as fs$1$2 from "node:fs";
@@ -26,7 +26,7 @@ import { PassThrough } from "node:stream";
26
26
  import { convertToTSX } from "@astrojs/compiler/sync";
27
27
  import { STATUS_CODES } from "node:http";
28
28
  import { gzipSync } from "node:zlib";
29
- //#region ../core/dist/constants-D-pz3KkB.js
29
+ //#region ../core/dist/constants-BSeQaOcv.js
30
30
  const HTML_FILE_PATTERN = /\.html$/i;
31
31
  const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
32
32
  const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
@@ -393,6 +393,7 @@ const JSX_DUPLICATION_SOURCE_FILE_PATTERN = /\.[cm]?(?:jsx?|tsx)$/;
393
393
  const MAINTAINABILITY_PLUGIN = "react-doctor";
394
394
  const MAINTAINABILITY_DUPLICATE_JSX_RULE = "duplicate-jsx-subtree";
395
395
  const MAINTAINABILITY_CATEGORY = "Maintainability";
396
+ const ADOPTED_LINT_CONFIG_MAX_BYTES = 1024 * 1024;
396
397
  //#endregion
397
398
  //#region ../core/dist/fs-utils-3PlHYkCD.js
398
399
  const isErrnoException = (error) => error instanceof Error && "code" in error;
@@ -440,7 +441,7 @@ const isPlainObject = (value) => {
440
441
  //#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
441
442
  const isReactCompilerDetectionReply = (value) => typeof value === "object" && value !== null && "id" in value && typeof value.id === "number" && "hasReactCompiler" in value && (typeof value.hasReactCompiler === "boolean" || value.hasReactCompiler === null);
442
443
  //#endregion
443
- //#region ../core/dist/react-compiler-detection-client-DLmrJui3.js
444
+ //#region ../core/dist/react-compiler-detection-client-oiOwecj7.js
444
445
  const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
445
446
  const toRequestKey = (request) => [
446
447
  request.directory,
@@ -573,6 +574,11 @@ const buildOxlintChildEnv = (sourceEnv) => {
573
574
  if (name.startsWith("npm_config_")) continue;
574
575
  childEnv[name] = value;
575
576
  }
577
+ childEnv.BROWSERSLIST = "defaults";
578
+ childEnv.BROWSERSLIST_IGNORE_OLD_DATA = "true";
579
+ delete childEnv.BROWSERSLIST_CONFIG;
580
+ delete childEnv.BROWSERSLIST_STATS;
581
+ delete childEnv.BROWSERSLIST_DANGEROUS_EXTEND;
576
582
  const isCompileCacheDisabled = Boolean(sourceEnv.NODE_DISABLE_COMPILE_CACHE);
577
583
  const isCompileCacheAlreadySet = childEnv.NODE_COMPILE_CACHE !== void 0;
578
584
  if (!isCompileCacheDisabled && !isCompileCacheAlreadySet) childEnv.NODE_COMPILE_CACHE = path$1$1.join(os.tmpdir(), NODE_COMPILE_CACHE_DIR_NAME);
@@ -2710,7 +2716,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2710
2716
  module.exports = picomatch;
2711
2717
  }));
2712
2718
  //#endregion
2713
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-D4bM_Zhs.js
2719
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-Z9dhela6.js
2714
2720
  var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
2715
2721
  const pico = require_picomatch$1();
2716
2722
  const utils = require_utils();
@@ -3160,7 +3166,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
3160
3166
  return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
3161
3167
  };
3162
3168
  //#endregion
3163
- //#region ../core/dist/detect-duplicate-jsx-subtrees-BfvHEoZi.js
3169
+ //#region ../core/dist/detect-duplicate-jsx-subtrees-B5UWtUyz.js
3164
3170
  const yieldToEventLoop = () => new Promise((resolve) => {
3165
3171
  setImmediate(resolve);
3166
3172
  });
@@ -3285,7 +3291,7 @@ const resolveOptions$1 = (options) => ({
3285
3291
  minimumDistinctFiles: options.minimumDistinctFiles ?? 1,
3286
3292
  maxSourceFiles: options.budget?.maxSourceFiles ?? 5e3,
3287
3293
  maxSourceLengthChars: options.budget?.maxSourceLengthChars ?? 1e6,
3288
- maxJsxNodes: options.budget?.maxJsxNodes ?? 5e4,
3294
+ maxJsxNodes: options.budget?.maxJsxNodes ?? 5e5,
3289
3295
  maxFamilies: options.budget?.maxFamilies ?? 20
3290
3296
  });
3291
3297
  const hashParts = (parts) => {
@@ -3499,10 +3505,12 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
3499
3505
  const jsxNodes = [];
3500
3506
  const pendingNodes = [sourceFile];
3501
3507
  let limitExceeded = false;
3508
+ let observedJsxNodeCount = 0;
3502
3509
  while (pendingNodes.length > 0 && !limitExceeded && !signal?.aborted) {
3503
3510
  const currentNode = pendingNodes.pop();
3504
3511
  if (currentNode === void 0) continue;
3505
3512
  if (isJsxSubtreeNode(currentNode)) {
3513
+ observedJsxNodeCount += 1;
3506
3514
  if (jsxNodes.length >= maximumCandidateCount) {
3507
3515
  limitExceeded = true;
3508
3516
  continue;
@@ -3518,7 +3526,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
3518
3526
  if (limitExceeded || signal?.aborted) return {
3519
3527
  candidates: [],
3520
3528
  aborted: signal?.aborted ?? false,
3521
- limitExceeded
3529
+ limitExceeded,
3530
+ observedJsxNodeCount
3522
3531
  };
3523
3532
  const metadataByNode = /* @__PURE__ */ new Map();
3524
3533
  const functionIdentityByNode = /* @__PURE__ */ new Map();
@@ -3526,7 +3535,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
3526
3535
  if (signal?.aborted) return {
3527
3536
  candidates: [],
3528
3537
  aborted: true,
3529
- limitExceeded: false
3538
+ limitExceeded: false,
3539
+ observedJsxNodeCount
3530
3540
  };
3531
3541
  buildJsxSubtreeMetadata(jsxNodes[nodeIndex], metadataByNode);
3532
3542
  }
@@ -3544,7 +3554,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
3544
3554
  };
3545
3555
  }),
3546
3556
  aborted: false,
3547
- limitExceeded: false
3557
+ limitExceeded: false,
3558
+ observedJsxNodeCount
3548
3559
  };
3549
3560
  };
3550
3561
  const scanSource = (input) => {
@@ -3581,8 +3592,7 @@ const scanSource = (input) => {
3581
3592
  incompleteReason: {
3582
3593
  kind: "jsx-node-limit",
3583
3594
  limit: input.options.maxJsxNodes,
3584
- observed: input.options.maxJsxNodes + 1,
3585
- path: input.source.path
3595
+ observed: input.scannedJsxNodeCount + collectedCandidates.observedJsxNodeCount
3586
3596
  },
3587
3597
  didAbort: false,
3588
3598
  didScan: false
@@ -3699,7 +3709,10 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
3699
3709
  scannedSourceFileCount,
3700
3710
  scannedJsxNodeCount
3701
3711
  });
3702
- if (scannedSource.incompleteReason !== null) incompleteReasons.push(scannedSource.incompleteReason);
3712
+ if (scannedSource.incompleteReason !== null) {
3713
+ incompleteReasons.push(scannedSource.incompleteReason);
3714
+ if (scannedSource.incompleteReason.kind === "jsx-node-limit") break;
3715
+ }
3703
3716
  if (scannedSource.didScan) {
3704
3717
  candidates.push(...scannedSource.candidates);
3705
3718
  scannedJsxNodeCount += scannedSource.candidates.length;
@@ -3717,7 +3730,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
3717
3730
  });
3718
3731
  };
3719
3732
  //#endregion
3720
- //#region ../core/dist/detect-react-compiler-BGN8JyDW.js
3733
+ //#region ../core/dist/detect-react-compiler-DLpaU8gr.js
3721
3734
  const NEXT_CONFIG_FILENAMES = [
3722
3735
  "next.config.js",
3723
3736
  "next.config.mjs",
@@ -68438,13 +68451,17 @@ const getBrowserslistProtectionRequirement = (directory) => {
68438
68451
  env: "production"
68439
68452
  });
68440
68453
  if (!queries) return void 0;
68454
+ if ((typeof queries === "string" ? [queries] : queries).some((query) => /\b(?:extends|stats)\b|\bbrowserslist\s+config\b/i.test(query))) return;
68441
68455
  let requirement;
68442
68456
  let hasUnsupportedTarget = false;
68443
68457
  const previousIgnoreOldData = process.env.BROWSERSLIST_IGNORE_OLD_DATA;
68444
68458
  let browserTargets = [];
68445
68459
  try {
68446
68460
  process.env.BROWSERSLIST_IGNORE_OLD_DATA = "true";
68447
- browserTargets = (0, import_browserslist.default)(queries);
68461
+ browserTargets = (0, import_browserslist.default)(queries, {
68462
+ path: false,
68463
+ stats: {}
68464
+ });
68448
68465
  } finally {
68449
68466
  if (previousIgnoreOldData === void 0) delete process.env.BROWSERSLIST_IGNORE_OLD_DATA;
68450
68467
  else process.env.BROWSERSLIST_IGNORE_OLD_DATA = previousIgnoreOldData;
@@ -70817,7 +70834,7 @@ const dedupeRelatedDiagnostics = (diagnostics) => {
70817
70834
  };
70818
70835
  const isPathInsideDirectory = (childAbsolutePath, parentAbsolutePath) => {
70819
70836
  const relativePath = path$1$1.relative(parentAbsolutePath, childAbsolutePath);
70820
- return Boolean(relativePath) && !relativePath.startsWith("..") && !path$1$1.isAbsolute(relativePath);
70837
+ return Boolean(relativePath) && relativePath !== ".." && !relativePath.startsWith(`..${path$1$1.sep}`) && !path$1$1.isAbsolute(relativePath);
70821
70838
  };
70822
70839
  const compareStrings = (left, right) => left < right ? -1 : left > right ? 1 : 0;
70823
70840
  const sortDiagnosticsStable = (diagnostics) => [...diagnostics].sort((left, right) => compareStrings(left.filePath, right.filePath) || left.line - right.line || left.column - right.column || compareStrings(left.plugin, right.plugin) || compareStrings(left.rule, right.rule) || compareStrings(left.severity, right.severity) || compareStrings(left.message, right.message));
@@ -74231,6 +74248,82 @@ const detectUserLintConfigPaths = (rootDirectory) => {
74231
74248
  }
74232
74249
  return [];
74233
74250
  };
74251
+ const isSymlinkFreePath = (filePath, rootDirectory) => {
74252
+ if (!isPathInsideDirectory(filePath, rootDirectory)) return false;
74253
+ let currentPath = rootDirectory;
74254
+ for (const segment of path$1$1.relative(rootDirectory, filePath).split(path$1$1.sep)) {
74255
+ currentPath = path$1$1.join(currentPath, segment);
74256
+ try {
74257
+ if (fs$1$2.lstatSync(currentPath).isSymbolicLink()) return false;
74258
+ } catch (error) {
74259
+ return isErrnoException(error) && error.code === "ENOENT";
74260
+ }
74261
+ }
74262
+ return true;
74263
+ };
74264
+ const snapshotAdoptedLintConfigs = (input) => {
74265
+ const sourceBoundaryDirectory = path$1$1.resolve(findGitRepositoryRoot(input.rootDirectory) ?? input.rootDirectory);
74266
+ const boundaryDirectory = fs$1$2.realpathSync(sourceBoundaryDirectory);
74267
+ const snapshots = /* @__PURE__ */ new Map();
74268
+ const expandedFileCounts = /* @__PURE__ */ new Map();
74269
+ const activePaths = /* @__PURE__ */ new Set();
74270
+ let expandedFileCount = 0;
74271
+ const snapshotConfig = (configPath, depth) => {
74272
+ const resolvedPath = path$1$1.resolve(configPath);
74273
+ const existingSnapshot = snapshots.get(resolvedPath);
74274
+ if (existingSnapshot) {
74275
+ expandedFileCount += expandedFileCounts.get(resolvedPath) ?? 1;
74276
+ if (expandedFileCount > 64) throw new Error("Adopted lint config expands too many files");
74277
+ return existingSnapshot;
74278
+ }
74279
+ if (depth > 32 || expandedFileCount >= 64 || activePaths.has(resolvedPath) || !isSymlinkFreePath(resolvedPath, boundaryDirectory)) throw new Error("Unsafe adopted lint config chain");
74280
+ const configStats = fs$1$2.lstatSync(resolvedPath);
74281
+ if (!configStats.isFile() || configStats.size > 1048576) throw new Error("Unsupported adopted lint config file");
74282
+ const previousFileCount = expandedFileCount;
74283
+ expandedFileCount += 1;
74284
+ activePaths.add(resolvedPath);
74285
+ try {
74286
+ const parsed = parseJSONC(readTextFileUpToCharacterLimitSync({
74287
+ filePath: resolvedPath,
74288
+ maximumLengthChars: ADOPTED_LINT_CONFIG_MAX_BYTES,
74289
+ sizeBytes: configStats.size
74290
+ }), { allowTrailingComma: true });
74291
+ if (!isPlainObject(parsed)) throw new Error("Invalid adopted lint config");
74292
+ const sanitized = snapshotValue(parsed, resolvedPath, depth);
74293
+ const snapshotPath = path$1$1.join(input.snapshotDirectory, `adopted-${snapshots.size}.json`);
74294
+ fs$1$2.writeFileSync(snapshotPath, JSON.stringify(sanitized), {
74295
+ flag: "wx",
74296
+ mode: 384
74297
+ });
74298
+ snapshots.set(resolvedPath, snapshotPath);
74299
+ expandedFileCounts.set(resolvedPath, expandedFileCount - previousFileCount);
74300
+ return snapshotPath;
74301
+ } finally {
74302
+ activePaths.delete(resolvedPath);
74303
+ }
74304
+ };
74305
+ const snapshotValue = (value, configPath, depth) => {
74306
+ if (depth > 32) throw new Error("Adopted lint config too deep");
74307
+ if (Array.isArray(value)) return value.map((entry) => snapshotValue(entry, configPath, depth + 1));
74308
+ if (!isPlainObject(value)) return value;
74309
+ if (Object.hasOwn(value, "jsPlugins")) throw new Error("Executable adopted lint config");
74310
+ return Object.fromEntries(Object.entries(value).map(([key, entry]) => {
74311
+ if (key !== "extends") return [key, snapshotValue(entry, configPath, depth + 1)];
74312
+ return [key, (Array.isArray(entry) ? entry : [entry]).map((extendedPath) => {
74313
+ if (typeof extendedPath !== "string") throw new Error("Invalid lint config extends");
74314
+ return snapshotConfig(path$1$1.resolve(path$1$1.dirname(configPath), extendedPath), depth + 1);
74315
+ })];
74316
+ }));
74317
+ };
74318
+ return input.configPaths.flatMap((configPath) => {
74319
+ try {
74320
+ if (!isPathInsideDirectory(configPath, sourceBoundaryDirectory)) return [];
74321
+ return [snapshotConfig(path$1$1.join(boundaryDirectory, path$1$1.relative(sourceBoundaryDirectory, configPath)), 0)];
74322
+ } catch {
74323
+ return [];
74324
+ }
74325
+ });
74326
+ };
74234
74327
  const readAdoptedLintConfigSettings = (configPaths) => {
74235
74328
  const mergedSettings = /* @__PURE__ */ new Map();
74236
74329
  for (const configPath of configPaths) {
@@ -74258,6 +74351,7 @@ const getBackupPath = (rootDirectory, absolutePath) => {
74258
74351
  };
74259
74352
  const removeBackupRootIfEmpty = (rootDirectory) => {
74260
74353
  const backupRootDirectory = getBackupRootDirectory(rootDirectory);
74354
+ if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return;
74261
74355
  if (!walkSourceTreeFiles(backupRootDirectory).next().done) return;
74262
74356
  fs$1$2.rmSync(backupRootDirectory, {
74263
74357
  recursive: true,
@@ -74358,8 +74452,13 @@ const collectNeutralizationCandidatePaths = (rootDirectory, discoveredRelativePa
74358
74452
  const recoverOrphanedBackups = (rootDirectory) => {
74359
74453
  const blockedPaths = /* @__PURE__ */ new Set();
74360
74454
  const backupRootDirectory = getBackupRootDirectory(rootDirectory);
74455
+ if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return blockedPaths;
74361
74456
  for (const { absolutePath: backupPath } of walkSourceTreeFiles(backupRootDirectory)) {
74362
74457
  const originalPath = path$1$1.join(rootDirectory, path$1$1.relative(backupRootDirectory, backupPath));
74458
+ if (!isSymlinkFreePath(backupPath, rootDirectory) || !isSymlinkFreePath(originalPath, rootDirectory)) {
74459
+ blockedPaths.add(originalPath);
74460
+ continue;
74461
+ }
74363
74462
  if (neutralizedFileLeases.has(originalPath)) continue;
74364
74463
  let backupContent;
74365
74464
  let currentContent;
@@ -74410,6 +74509,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
74410
74509
  lease.referenceCount -= 1;
74411
74510
  if (lease.referenceCount > 0) continue;
74412
74511
  neutralizedFileLeases.delete(absolutePath);
74512
+ if (!isSymlinkFreePath(absolutePath, lease.rootDirectory) || !isSymlinkFreePath(lease.backupPath, lease.rootDirectory)) continue;
74413
74513
  try {
74414
74514
  const currentContent = fs$1$2.readFileSync(absolutePath, "utf-8");
74415
74515
  if (currentContent !== lease.neutralizedContent && currentContent !== lease.originalContent) {
@@ -74427,6 +74527,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
74427
74527
  const onExit = () => restore();
74428
74528
  process.once("exit", onExit);
74429
74529
  const leaseCandidatePath = (absolutePath) => {
74530
+ if (!isSymlinkFreePath(absolutePath, resolvedRootDirectory)) return;
74430
74531
  if (leasedPaths.has(absolutePath)) return;
74431
74532
  if (blockedPaths.has(absolutePath)) return;
74432
74533
  const existingLease = neutralizedFileLeases.get(absolutePath);
@@ -74444,7 +74545,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
74444
74545
  const neutralizedContent = neutralizeContent(originalContent);
74445
74546
  if (neutralizedContent !== originalContent) {
74446
74547
  const backupPath = getBackupPath(resolvedRootDirectory, absolutePath);
74447
- if (backupPath === null) return;
74548
+ if (backupPath === null || !isSymlinkFreePath(backupPath, resolvedRootDirectory)) return;
74448
74549
  try {
74449
74550
  fs$1$2.mkdirSync(path$1$1.dirname(backupPath), { recursive: true });
74450
74551
  fs$1$2.writeFileSync(backupPath, originalContent, { flag: "wx" });
@@ -74454,6 +74555,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
74454
74555
  }
74455
74556
  fs$1$2.writeFileSync(absolutePath, neutralizedContent);
74456
74557
  neutralizedFileLeases.set(absolutePath, {
74558
+ rootDirectory: resolvedRootDirectory,
74457
74559
  backupPath,
74458
74560
  originalContent,
74459
74561
  neutralizedContent,
@@ -74492,7 +74594,13 @@ const normalizeConfigForHash = (config) => {
74492
74594
  if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
74493
74595
  return clone;
74494
74596
  };
74495
- const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify(normalizeConfigForHash(input.config))).update("\0").update([...input.toolchainVersions].join("\0")).update("\0").update([...input.ignorePatterns].join("\n")).update("\0").update(input.tsconfigContent ?? "").update("\0").update(input.respectInlineDisables ? "respect-inline-disables" : "audit-mode").digest("hex");
74597
+ const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify([
74598
+ normalizeConfigForHash(input.config),
74599
+ input.toolchainVersions,
74600
+ input.ignorePatterns,
74601
+ input.tsconfigContent,
74602
+ input.respectInlineDisables
74603
+ ])).digest("hex");
74496
74604
  /**
74497
74605
  * Loads a plugin module via the local require resolver and extracts
74498
74606
  * `(name, ruleNames)` from either `module.exports.meta + rules` or
@@ -76641,7 +76749,11 @@ const spawnLintBatches = async (input) => {
76641
76749
  batchState.deadlineSkippedFileCount += batch.length;
76642
76750
  return [];
76643
76751
  }
76644
- const batchArgs = [...baseArgs, ...batch];
76752
+ const batchArgs = [
76753
+ ...baseArgs,
76754
+ "--",
76755
+ ...batch
76756
+ ];
76645
76757
  try {
76646
76758
  const spawnBatch = async () => {
76647
76759
  const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
@@ -77416,7 +77528,7 @@ const runOxlint = async (options) => {
77416
77528
  }
77417
77529
  const pluginPath = resolvePluginPath();
77418
77530
  const detectedConfigPaths = adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : [];
77419
- const extendsPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
77531
+ const adoptableConfigPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
77420
77532
  const adoptedSettings = detectedConfigPaths.length > 0 ? readAdoptedLintConfigSettings(detectedConfigPaths) : {};
77421
77533
  const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
77422
77534
  const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
@@ -77424,6 +77536,11 @@ const runOxlint = async (options) => {
77424
77536
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
77425
77537
  const workingDirectory = fs$1$2.existsSync(path$1$1.join(rootDirectory, "oxlint-suppressions.json")) ? configDirectory : void 0;
77426
77538
  try {
77539
+ const extendsPaths = snapshotAdoptedLintConfigs({
77540
+ configPaths: adoptableConfigPaths,
77541
+ rootDirectory,
77542
+ snapshotDirectory: configDirectory
77543
+ });
77427
77544
  const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
77428
77545
  fs$1$2.mkdirSync(diagnosticContextDirectory);
77429
77546
  const oxlintBinary = resolveOxlintBinary();
@@ -79810,4 +79927,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79810
79927
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79811
79928
 
79812
79929
  //# sourceMappingURL=index.js.map
79813
- //# debugId=4aa6d167-b90d-5f92-a4a9-bdc74620b171
79930
+ //# debugId=5255a206-f2ac-51fa-9a2f-9480ba58e9d7
@@ -1,19 +1,19 @@
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]="f7c9458d-4918-5385-9893-6989b3e68e1f")}catch(e){}}();
3
- import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-lt2tTZjE.js";
4
- import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-3hs8M2Pf.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-JrDTvdnm.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-BnEcoXcw.js";
7
- import { t as reportErrorToSentry } from "./report-error-CtR7ISJa.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]="70e0026e-0b5f-5b95-bafe-20ff54e5f7a5")}catch(e){}}();
3
+ import { N as discardPrefetchedGitCommands, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, u as METRIC, ut as CANONICAL_GITHUB_URL, w as STAGED_FILES_TEMP_DIR_PREFIX } from "./constants-BmD_c3Yq.js";
4
+ import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-CWxS2npr.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-De9QafWu.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-BJ_4E2kS.js";
7
+ import { t as reportErrorToSentry } from "./report-error-DA8uMulb.js";
8
8
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
9
- import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-CcM2cToW.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-BUaLt5mn.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-Cq7AJdtO.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-DjIiPcs_.js";
13
- import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-DrC3xu0y.js";
14
- import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-C68s63w1.js";
15
- import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-BnaGEio4.js";
16
- import { t as readObjectFile } from "./read-object-file-sQUp7PMm.js";
9
+ import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DJ6UbhZJ.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-BNRbJHjd.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-B3xmSQ0a.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CDudIC40.js";
13
+ import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-DE6AIQwU.js";
14
+ import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-D6NNwRMm.js";
15
+ import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-BcsOSw5y.js";
16
+ import { t as readObjectFile } from "./read-object-file-D3pRnLyV.js";
17
17
  import * as fs$1 from "node:fs";
18
18
  import fs from "node:fs";
19
19
  import * as path$1 from "node:path";
@@ -1528,5 +1528,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
1528
1528
  //#endregion
1529
1529
  export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
1530
1530
 
1531
- //# sourceMappingURL=inspect-CrcIovH2.js.map
1532
- //# debugId=f7c9458d-4918-5385-9893-6989b3e68e1f
1531
+ //# sourceMappingURL=inspect-BuLr42QI.js.map
1532
+ //# debugId=70e0026e-0b5f-5b95-bafe-20ff54e5f7a5
@@ -1,12 +1,12 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="87319ef2-462e-5d00-b704-482958894e8a")}catch(e){}}();
3
- import { u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { En as runSync, t as recordCount } from "./record-metric-3hs8M2Pf.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-JrDTvdnm.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-BnEcoXcw.js";
7
- import { t as reportErrorToSentry } from "./report-error-CtR7ISJa.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-COh3X3He.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-BnaGEio4.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]="f4321b72-9cf9-5f93-af58-c76bd3013bd4")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { En as runSync, t as recordCount } from "./record-metric-CWxS2npr.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-De9QafWu.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-BJ_4E2kS.js";
7
+ import { t as reportErrorToSentry } from "./report-error-DA8uMulb.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-BFh1P9t6.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-BcsOSw5y.js";
10
10
  //#region src/cli/commands/install.ts
11
11
  const installAction = async (options, command) => {
12
12
  recordCount(METRIC.cliInvoked, 1, { command: "install" });
@@ -30,5 +30,5 @@ const installAction = async (options, command) => {
30
30
  //#endregion
31
31
  export { installAction };
32
32
 
33
- //# sourceMappingURL=install-DIHCDDtX.js.map
34
- //# debugId=87319ef2-462e-5d00-b704-482958894e8a
33
+ //# sourceMappingURL=install-DsuiRD1t.js.map
34
+ //# debugId=f4321b72-9cf9-5f93-af58-c76bd3013bd4
@@ -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]="856f67e8-dba2-5eb4-94ed-6cda4e70c97b")}catch(e){}}();
3
- import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-lt2tTZjE.js";
4
- import { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } from "./record-metric-3hs8M2Pf.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]="e3245a88-9166-56cf-9723-ec413424e59c")}catch(e){}}();
3
+ import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-BmD_c3Yq.js";
4
+ import { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } from "./record-metric-CWxS2npr.js";
5
5
  import { a as chalk, i as stripAnsi, t as eastAsianWidth } from "./get-east-asian-width-DRPy7dqz.js";
6
6
  import * as fs$1 from "node:fs";
7
7
  import * as path$1 from "node:path";
@@ -2818,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
2818
2818
  //#endregion
2819
2819
  export { runGitAsync as A, isRecord as C, readPackageJson as D, packageHasRecordKey as E, writeJsonFile as M, cliLogger as N, resolveGitPath as O, getPackageJsonPath as S, packageHasNestedRecordKey as T, REACT_DOCTOR_COMMAND as _, installReactDoctorScriptStep as a, VITE_PLUS_HOOKS_PATH as b, spinner as c, HUSKY_HOOKS_PATH as d, LEFTHOOK_CONFIG_FILES as f, PRE_COMMIT_CONFIG_FILE as g, OVERCOMMIT_CONFIG_FILE as h, hasDoctorScript as i, runGitRaw as j, runGit as k, HOOK_FILE_NAME as l, NON_BLOCKING_REACT_DOCTOR_COMMAND as m, findNearestPackageDirectory as n, isSpinnerSilent as o, LEGACY_HOOK_RUNNER_RELATIVE_PATH as p, hasDoctorDependency as r, setSpinnerSilent as s, DOCTOR_PACKAGE_NAME as t, HOOK_RELATIVE_PATH as u, SIMPLE_GIT_HOOKS_CONFIG_FILE as v, packageHasDependency as w, ensureTrailingNewline as x, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as y };
2820
2820
 
2821
- //# sourceMappingURL=install-doctor-script-CcM2cToW.js.map
2822
- //# debugId=856f67e8-dba2-5eb4-94ed-6cda4e70c97b
2821
+ //# sourceMappingURL=install-doctor-script-DJ6UbhZJ.js.map
2822
+ //# debugId=e3245a88-9166-56cf-9723-ec413424e59c
@@ -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]="928e1ba7-611d-533e-9b2d-05a2e3024756")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-lt2tTZjE.js";
4
- import { _t as findGitRepositoryRoot } from "./record-metric-3hs8M2Pf.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]="5d23ccfd-5dd9-521e-8d7f-f9f37556e186")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-BmD_c3Yq.js";
4
+ import { _t as findGitRepositoryRoot } from "./record-metric-CWxS2npr.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-CcM2cToW.js";
6
+ import { N as cliLogger } from "./install-doctor-script-DJ6UbhZJ.js";
7
7
  import { createRequire } from "node:module";
8
8
  import * as fs$1 from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -281,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
281
281
  //#endregion
282
282
  export { readReactDoctorWorkflow as a, workflowUsesV1Action as c, detectDefaultBranch as d, runCommand as f, isReactDoctorWorkflowInstalled as i, prompts as l, getReactDoctorWorkflowPath as n, upgradeReactDoctorWorkflowInPlace as o, installReactDoctorWorkflow as r, upgradeWorkflowActionToV2 as s, buildWorkflowContent as t, isCommandAvailable as u };
283
283
 
284
- //# sourceMappingURL=install-github-workflow-BUaLt5mn.js.map
285
- //# debugId=928e1ba7-611d-533e-9b2d-05a2e3024756
284
+ //# sourceMappingURL=install-github-workflow-BNRbJHjd.js.map
285
+ //# debugId=5d23ccfd-5dd9-521e-8d7f-f9f37556e186
@@ -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]="03a97117-4f40-558a-bd9f-5ac2bb0786eb")}catch(e){}}();
3
- import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-3hs8M2Pf.js";
5
- import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N 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, 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-CcM2cToW.js";
6
- 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-BUaLt5mn.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-DjIiPcs_.js";
8
- import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, 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-C68s63w1.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]="31e3003b-28ab-5c37-8d2f-72b3571c0b4e")}catch(e){}}();
3
+ import { At as GITHUB_ACTIONS_SETUP_URL, mn as SKILL_NAME, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-CWxS2npr.js";
5
+ import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N 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, 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-DJ6UbhZJ.js";
6
+ 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-BNRbJHjd.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CDudIC40.js";
8
+ import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, 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-D6NNwRMm.js";
9
9
  import * as fs$1 from "node:fs";
10
10
  import * as path$1 from "node:path";
11
11
  import { execFile } from "node:child_process";
@@ -1156,5 +1156,5 @@ const runInstallReactDoctor = async (options = {}) => {
1156
1156
  //#endregion
1157
1157
  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 };
1158
1158
 
1159
- //# sourceMappingURL=install-react-doctor-BnaGEio4.js.map
1160
- //# debugId=03a97117-4f40-558a-bd9f-5ac2bb0786eb
1159
+ //# sourceMappingURL=install-react-doctor-BcsOSw5y.js.map
1160
+ //# debugId=31e3003b-28ab-5c37-8d2f-72b3571c0b4e
@@ -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]="2ac7ec61-236b-5e1e-963b-56b3769f30f7")}catch(e){}}();
3
- import { a as CACHE_DISABLED_VALUES } from "./constants-lt2tTZjE.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]="27afb6dd-9acd-5528-8fa6-5ad0bc5d0fd7")}catch(e){}}();
3
+ import { a as CACHE_DISABLED_VALUES } from "./constants-BmD_c3Yq.js";
4
4
  //#region src/cli/utils/is-cache-globally-disabled.ts
5
5
  const isCacheGloballyDisabled = () => CACHE_DISABLED_VALUES.has(process.env.REACT_DOCTOR_NO_CACHE?.toLowerCase() ?? "");
6
6
  //#endregion
7
7
  export { isCacheGloballyDisabled as t };
8
8
 
9
- //# sourceMappingURL=is-cache-globally-disabled-af0VF8nQ.js.map
10
- //# debugId=2ac7ec61-236b-5e1e-963b-56b3769f30f7
9
+ //# sourceMappingURL=is-cache-globally-disabled-CveNGcRi.js.map
10
+ //# debugId=27afb6dd-9acd-5528-8fa6-5ad0bc5d0fd7
@@ -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]="326dd7e8-101d-50ce-8ca4-012da08180f8")}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]="f53bf22e-9add-5917-b7be-17264227a271")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { u as METRIC } from "./constants-lt2tTZjE.js";
5
- import { t as recordCount } from "./record-metric-3hs8M2Pf.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-BxFRFqPQ.js";
4
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
5
+ import { t as recordCount } from "./record-metric-CWxS2npr.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-Bhyw-8gk.js";
7
7
  import { a as chalk, i as stripAnsi, n as isFullWidth$1, r as isWide$1 } from "./get-east-asian-width-DRPy7dqz.js";
8
8
  import * as fs$1 from "node:fs";
9
9
  import fs from "node:fs";
@@ -25870,5 +25870,5 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25870
25870
  //#endregion
25871
25871
  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 };
25872
25872
 
25873
- //# sourceMappingURL=jsx-runtime-CKOQW4i4.js.map
25874
- //# debugId=326dd7e8-101d-50ce-8ca4-012da08180f8
25873
+ //# sourceMappingURL=jsx-runtime-BDdabT1T.js.map
25874
+ //# debugId=f53bf22e-9add-5917-b7be-17264227a271
@@ -1,6 +1,6 @@
1
1
 
2
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]="036daa0d-20ef-5a7e-b004-e4f41f80cf0c")}catch(e){}}();
3
- import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-DNh19qg9.js";
3
+ import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-T2clfs7L.js";
4
4
  import * as fs$1 from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { pathToFileURL } from "node:url";
@@ -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]="8e2098ab-d09a-5c9e-91ca-a44c0e2ac08c")}catch(e){}}();
3
- import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-3hs8M2Pf.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]="3b313b38-269b-57ec-9d70-b4ad580a3b6e")}catch(e){}}();
3
+ import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-CWxS2npr.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-COh3X3He.js.map
22
- //# debugId=8e2098ab-d09a-5c9e-91ca-a44c0e2ac08c
21
+ //# sourceMappingURL=print-branded-header-BFh1P9t6.js.map
22
+ //# debugId=3b313b38-269b-57ec-9d70-b4ad580a3b6e
@@ -4,7 +4,7 @@ import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } fr
4
4
  import { n as require_picomatch$2, t as require_semver } from "./semver-BZIuy1gP.js";
5
5
  import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
6
6
  import { t as unwrapTypescriptExpression } from "./unwrap-typescript-expression-CrEPQUWz.js";
7
- import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-DNh19qg9.js";
7
+ import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-T2clfs7L.js";
8
8
  import { n as isPlainObject } from "./fs-utils-C88IbqFa.js";
9
9
  import { builtinModules } from "node:module";
10
10
  import * as fs$1 from "node:fs";
@@ -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]="76462545-71f5-5edf-bf49-51d3a707f769")}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]="1c948a3f-aa0f-593b-83e4-8f9ec144b7bf")}catch(e){}}();
3
3
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
4
- import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-C9P8617N.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-CKOQW4i4.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-BCw_Ixks.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-BDdabT1T.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-lBPap3oz.js.map
240
- //# debugId=76462545-71f5-5edf-bf49-51d3a707f769
239
+ //# sourceMappingURL=prompt-runtime-scan-url-CRx8qrV0.js.map
240
+ //# debugId=1c948a3f-aa0f-593b-83e4-8f9ec144b7bf