react-doctor 0.9.22-dev.ec45ff9 → 0.9.23-dev.05dfafe

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{build-section-divider-BjoMRSay.js → build-section-divider-B3l6DXTH.js} +5 -5
  2. package/dist/{ci-Rhhvl7uT.js → ci-DUDuv_KL.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-Bj9aMiuv.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-BxFRFqPQ.js → exit-gracefully-cCXyQl3i.js} +6 -6
  9. package/dist/{handle-error-BnEcoXcw.js → handle-error-lgLxrA8y.js} +6 -6
  10. package/dist/index.d.ts +20 -2
  11. package/dist/index.js +169 -23
  12. package/dist/{inspect-CrcIovH2.js → inspect-Bb1HyA7w.js} +16 -16
  13. package/dist/{install-DIHCDDtX.js → install-Ctq7ew69.js} +10 -10
  14. package/dist/{install-doctor-script-CcM2cToW.js → install-doctor-script-C8URs5z8.js} +5 -5
  15. package/dist/{install-github-workflow-BUaLt5mn.js → install-github-workflow-4uZez_Ux.js} +6 -6
  16. package/dist/{install-react-doctor-BnaGEio4.js → install-react-doctor-z8YCZ_ln.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-DGgjHKxp.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-COh3X3He.js → print-branded-header-DMHPLUaY.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-Bjf8oUgu.js} +5 -5
  23. package/dist/{read-object-file-sQUp7PMm.js → read-object-file-1GYa4MDG.js} +4 -4
  24. package/dist/{record-metric-3hs8M2Pf.js → record-metric-9Q_AofQZ.js} +164 -24
  25. package/dist/{report-error-CtR7ISJa.js → report-error-D8MXuEuX.js} +6 -6
  26. package/dist/{report-workflow-result-C68s63w1.js → report-workflow-result-CoKQrvw3.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-DrC3xu0y.js → resolve-scan-exit-code-B8M3Cm1y.js} +14 -13
  28. package/dist/{resolve-scope-Cq7AJdtO.js → resolve-scope-mO5jhToI.js} +6 -6
  29. package/dist/{rules-BesJjxty.js → rules-DfsolVSa.js} +7 -7
  30. package/dist/{run-scan-app-CfsLjIjZ.js → run-scan-app-C_1vEytD.js} +45 -16
  31. package/dist/{runtime-scan-DA2v7tXp.js → runtime-scan-DO6eZB9B.js} +10 -10
  32. package/dist/{sanitize-runtime-url-C9P8617N.js → sanitize-runtime-url-B_DTc6vp.js} +4 -4
  33. package/dist/{scan-BTjqJfRl.js → scan-zowhHQj5.js} +10 -10
  34. package/dist/{should-skip-prompts-DjIiPcs_.js → should-skip-prompts-DWFgbnKE.js} +4 -4
  35. package/dist/{should-use-tui-Cd3om7tH.js → should-use-tui-CTkAbfEk.js} +4 -4
  36. package/dist/skills/react-doctor/references/explain.md +21 -0
  37. package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DDAT_0oB.js} +5 -5
  38. package/dist/start-scan-preamble.js +3 -3
  39. package/dist/{telemetry-runtime-JrDTvdnm.js → telemetry-runtime-CdsvqQbi.js} +13 -7
  40. package/dist/{version-osih6Dt3.js → version-5cBv0dgb.js} +5 -5
  41. package/dist/{why-BJLqu_nm.js → why-BD6q7PxE.js} +4 -4
  42. package/dist/{with-run-span-DJ74_coc.js → with-run-span-qr6tFfqD.js} +6 -6
  43. 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]="03c9fd81-e844-5b50-b2ac-f3212ea46bf8")}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;
@@ -70507,6 +70524,32 @@ const validateSeverityMap = (fieldName, rawMap, keysAreCategories = false) => {
70507
70524
  }
70508
70525
  return validated;
70509
70526
  };
70527
+ const ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS = ["allowExportNames", "customHOCs"];
70528
+ const ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS = ["allowConstantExport", "checkJS"];
70529
+ const validateOnlyExportComponentsField = (rawOptions) => {
70530
+ if (!isRecord(rawOptions)) {
70531
+ warnConfigIssue(`config field "onlyExportComponents" must be an object (got ${typeof rawOptions}); ignoring this field.`);
70532
+ return;
70533
+ }
70534
+ const validated = {};
70535
+ for (const [key, value] of Object.entries(rawOptions)) {
70536
+ const fieldName = `onlyExportComponents.${key}`;
70537
+ const stringArrayKey = ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS.find((candidateKey) => candidateKey === key);
70538
+ if (stringArrayKey !== void 0) {
70539
+ const entries = validateStringArrayField(fieldName, value);
70540
+ if (entries !== void 0) validated[stringArrayKey] = entries;
70541
+ continue;
70542
+ }
70543
+ const booleanKey = ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS.find((candidateKey) => candidateKey === key);
70544
+ if (booleanKey !== void 0) {
70545
+ const flag = coerceMaybeBooleanString(fieldName, value);
70546
+ if (flag !== void 0) validated[booleanKey] = flag;
70547
+ continue;
70548
+ }
70549
+ warnConfigIssue(`config field "${fieldName}" is not a known option (expected one of: ${[...ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS, ...ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS].join(", ")}); ignoring.`);
70550
+ }
70551
+ return validated;
70552
+ };
70510
70553
  const applyFieldValidator = (config, validated, fieldName, validator) => {
70511
70554
  const raw = config[fieldName];
70512
70555
  if (raw === void 0) return;
@@ -70521,6 +70564,7 @@ const validateConfigTypes = (config) => {
70521
70564
  for (const fieldName of STRING_ARRAY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateStringArrayField(fieldName, value));
70522
70565
  applyFieldValidator(config, validated, "ignore", validateIgnoreField);
70523
70566
  applyFieldValidator(config, validated, "surfaces", validateSurfacesField);
70567
+ applyFieldValidator(config, validated, "onlyExportComponents", validateOnlyExportComponentsField);
70524
70568
  for (const fieldName of SEVERITY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateSeverityMap(fieldName, value, fieldName === "categories"));
70525
70569
  applyFieldValidator(config, validated, "plugins", (value) => validateStringArrayField("plugins", value));
70526
70570
  for (const ruleKey of getUnknownBundledRuleKeys(validated.rules)) warnConfigIssue(`config field "rules.${ruleKey}" is not a known bundled rule; this override has no effect. Run "react-doctor rules list" to find its rule ID.`);
@@ -70817,7 +70861,7 @@ const dedupeRelatedDiagnostics = (diagnostics) => {
70817
70861
  };
70818
70862
  const isPathInsideDirectory = (childAbsolutePath, parentAbsolutePath) => {
70819
70863
  const relativePath = path$1$1.relative(parentAbsolutePath, childAbsolutePath);
70820
- return Boolean(relativePath) && !relativePath.startsWith("..") && !path$1$1.isAbsolute(relativePath);
70864
+ return Boolean(relativePath) && relativePath !== ".." && !relativePath.startsWith(`..${path$1$1.sep}`) && !path$1$1.isAbsolute(relativePath);
70821
70865
  };
70822
70866
  const compareStrings = (left, right) => left < right ? -1 : left > right ? 1 : 0;
70823
70867
  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));
@@ -72693,7 +72737,7 @@ const createSecurityScanSession = (rootDirectory, options) => {
72693
72737
  entry,
72694
72738
  scan,
72695
72739
  severityOverride,
72696
- committedFilesOnly: rule.committedFilesOnly === true
72740
+ committedFilesOnly: rule.committedFilesOnly !== false
72697
72741
  }];
72698
72742
  });
72699
72743
  if (enabledScanRules.length === 0) return null;
@@ -72712,7 +72756,7 @@ const createSecurityScanSession = (rootDirectory, options) => {
72712
72756
  if (file === null) return;
72713
72757
  for (const { entry, scan, severityOverride, committedFilesOnly } of enabledScanRules) {
72714
72758
  for (const finding of scan(file)) {
72715
- if (committedFilesOnly && isFileGitIgnored(file)) continue;
72759
+ if ((finding.committedFilesOnly ?? committedFilesOnly) && isFileGitIgnored(file)) continue;
72716
72760
  const diagnostic = buildSecurityScanDiagnostic(severityOverride === void 0 ? finding : {
72717
72761
  ...finding,
72718
72762
  severity: severityOverride
@@ -74231,6 +74275,82 @@ const detectUserLintConfigPaths = (rootDirectory) => {
74231
74275
  }
74232
74276
  return [];
74233
74277
  };
74278
+ const isSymlinkFreePath = (filePath, rootDirectory) => {
74279
+ if (!isPathInsideDirectory(filePath, rootDirectory)) return false;
74280
+ let currentPath = rootDirectory;
74281
+ for (const segment of path$1$1.relative(rootDirectory, filePath).split(path$1$1.sep)) {
74282
+ currentPath = path$1$1.join(currentPath, segment);
74283
+ try {
74284
+ if (fs$1$2.lstatSync(currentPath).isSymbolicLink()) return false;
74285
+ } catch (error) {
74286
+ return isErrnoException(error) && error.code === "ENOENT";
74287
+ }
74288
+ }
74289
+ return true;
74290
+ };
74291
+ const snapshotAdoptedLintConfigs = (input) => {
74292
+ const sourceBoundaryDirectory = path$1$1.resolve(findGitRepositoryRoot(input.rootDirectory) ?? input.rootDirectory);
74293
+ const boundaryDirectory = fs$1$2.realpathSync(sourceBoundaryDirectory);
74294
+ const snapshots = /* @__PURE__ */ new Map();
74295
+ const expandedFileCounts = /* @__PURE__ */ new Map();
74296
+ const activePaths = /* @__PURE__ */ new Set();
74297
+ let expandedFileCount = 0;
74298
+ const snapshotConfig = (configPath, depth) => {
74299
+ const resolvedPath = path$1$1.resolve(configPath);
74300
+ const existingSnapshot = snapshots.get(resolvedPath);
74301
+ if (existingSnapshot) {
74302
+ expandedFileCount += expandedFileCounts.get(resolvedPath) ?? 1;
74303
+ if (expandedFileCount > 64) throw new Error("Adopted lint config expands too many files");
74304
+ return existingSnapshot;
74305
+ }
74306
+ if (depth > 32 || expandedFileCount >= 64 || activePaths.has(resolvedPath) || !isSymlinkFreePath(resolvedPath, boundaryDirectory)) throw new Error("Unsafe adopted lint config chain");
74307
+ const configStats = fs$1$2.lstatSync(resolvedPath);
74308
+ if (!configStats.isFile() || configStats.size > 1048576) throw new Error("Unsupported adopted lint config file");
74309
+ const previousFileCount = expandedFileCount;
74310
+ expandedFileCount += 1;
74311
+ activePaths.add(resolvedPath);
74312
+ try {
74313
+ const parsed = parseJSONC(readTextFileUpToCharacterLimitSync({
74314
+ filePath: resolvedPath,
74315
+ maximumLengthChars: ADOPTED_LINT_CONFIG_MAX_BYTES,
74316
+ sizeBytes: configStats.size
74317
+ }), { allowTrailingComma: true });
74318
+ if (!isPlainObject(parsed)) throw new Error("Invalid adopted lint config");
74319
+ const sanitized = snapshotValue(parsed, resolvedPath, depth);
74320
+ const snapshotPath = path$1$1.join(input.snapshotDirectory, `adopted-${snapshots.size}.json`);
74321
+ fs$1$2.writeFileSync(snapshotPath, JSON.stringify(sanitized), {
74322
+ flag: "wx",
74323
+ mode: 384
74324
+ });
74325
+ snapshots.set(resolvedPath, snapshotPath);
74326
+ expandedFileCounts.set(resolvedPath, expandedFileCount - previousFileCount);
74327
+ return snapshotPath;
74328
+ } finally {
74329
+ activePaths.delete(resolvedPath);
74330
+ }
74331
+ };
74332
+ const snapshotValue = (value, configPath, depth) => {
74333
+ if (depth > 32) throw new Error("Adopted lint config too deep");
74334
+ if (Array.isArray(value)) return value.map((entry) => snapshotValue(entry, configPath, depth + 1));
74335
+ if (!isPlainObject(value)) return value;
74336
+ if (Object.hasOwn(value, "jsPlugins")) throw new Error("Executable adopted lint config");
74337
+ return Object.fromEntries(Object.entries(value).map(([key, entry]) => {
74338
+ if (key !== "extends") return [key, snapshotValue(entry, configPath, depth + 1)];
74339
+ return [key, (Array.isArray(entry) ? entry : [entry]).map((extendedPath) => {
74340
+ if (typeof extendedPath !== "string") throw new Error("Invalid lint config extends");
74341
+ return snapshotConfig(path$1$1.resolve(path$1$1.dirname(configPath), extendedPath), depth + 1);
74342
+ })];
74343
+ }));
74344
+ };
74345
+ return input.configPaths.flatMap((configPath) => {
74346
+ try {
74347
+ if (!isPathInsideDirectory(configPath, sourceBoundaryDirectory)) return [];
74348
+ return [snapshotConfig(path$1$1.join(boundaryDirectory, path$1$1.relative(sourceBoundaryDirectory, configPath)), 0)];
74349
+ } catch {
74350
+ return [];
74351
+ }
74352
+ });
74353
+ };
74234
74354
  const readAdoptedLintConfigSettings = (configPaths) => {
74235
74355
  const mergedSettings = /* @__PURE__ */ new Map();
74236
74356
  for (const configPath of configPaths) {
@@ -74258,6 +74378,7 @@ const getBackupPath = (rootDirectory, absolutePath) => {
74258
74378
  };
74259
74379
  const removeBackupRootIfEmpty = (rootDirectory) => {
74260
74380
  const backupRootDirectory = getBackupRootDirectory(rootDirectory);
74381
+ if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return;
74261
74382
  if (!walkSourceTreeFiles(backupRootDirectory).next().done) return;
74262
74383
  fs$1$2.rmSync(backupRootDirectory, {
74263
74384
  recursive: true,
@@ -74358,8 +74479,13 @@ const collectNeutralizationCandidatePaths = (rootDirectory, discoveredRelativePa
74358
74479
  const recoverOrphanedBackups = (rootDirectory) => {
74359
74480
  const blockedPaths = /* @__PURE__ */ new Set();
74360
74481
  const backupRootDirectory = getBackupRootDirectory(rootDirectory);
74482
+ if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return blockedPaths;
74361
74483
  for (const { absolutePath: backupPath } of walkSourceTreeFiles(backupRootDirectory)) {
74362
74484
  const originalPath = path$1$1.join(rootDirectory, path$1$1.relative(backupRootDirectory, backupPath));
74485
+ if (!isSymlinkFreePath(backupPath, rootDirectory) || !isSymlinkFreePath(originalPath, rootDirectory)) {
74486
+ blockedPaths.add(originalPath);
74487
+ continue;
74488
+ }
74363
74489
  if (neutralizedFileLeases.has(originalPath)) continue;
74364
74490
  let backupContent;
74365
74491
  let currentContent;
@@ -74410,6 +74536,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
74410
74536
  lease.referenceCount -= 1;
74411
74537
  if (lease.referenceCount > 0) continue;
74412
74538
  neutralizedFileLeases.delete(absolutePath);
74539
+ if (!isSymlinkFreePath(absolutePath, lease.rootDirectory) || !isSymlinkFreePath(lease.backupPath, lease.rootDirectory)) continue;
74413
74540
  try {
74414
74541
  const currentContent = fs$1$2.readFileSync(absolutePath, "utf-8");
74415
74542
  if (currentContent !== lease.neutralizedContent && currentContent !== lease.originalContent) {
@@ -74427,6 +74554,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
74427
74554
  const onExit = () => restore();
74428
74555
  process.once("exit", onExit);
74429
74556
  const leaseCandidatePath = (absolutePath) => {
74557
+ if (!isSymlinkFreePath(absolutePath, resolvedRootDirectory)) return;
74430
74558
  if (leasedPaths.has(absolutePath)) return;
74431
74559
  if (blockedPaths.has(absolutePath)) return;
74432
74560
  const existingLease = neutralizedFileLeases.get(absolutePath);
@@ -74444,7 +74572,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
74444
74572
  const neutralizedContent = neutralizeContent(originalContent);
74445
74573
  if (neutralizedContent !== originalContent) {
74446
74574
  const backupPath = getBackupPath(resolvedRootDirectory, absolutePath);
74447
- if (backupPath === null) return;
74575
+ if (backupPath === null || !isSymlinkFreePath(backupPath, resolvedRootDirectory)) return;
74448
74576
  try {
74449
74577
  fs$1$2.mkdirSync(path$1$1.dirname(backupPath), { recursive: true });
74450
74578
  fs$1$2.writeFileSync(backupPath, originalContent, { flag: "wx" });
@@ -74454,6 +74582,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
74454
74582
  }
74455
74583
  fs$1$2.writeFileSync(absolutePath, neutralizedContent);
74456
74584
  neutralizedFileLeases.set(absolutePath, {
74585
+ rootDirectory: resolvedRootDirectory,
74457
74586
  backupPath,
74458
74587
  originalContent,
74459
74588
  neutralizedContent,
@@ -74492,7 +74621,13 @@ const normalizeConfigForHash = (config) => {
74492
74621
  if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
74493
74622
  return clone;
74494
74623
  };
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");
74624
+ const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify([
74625
+ normalizeConfigForHash(input.config),
74626
+ input.toolchainVersions,
74627
+ input.ignorePatterns,
74628
+ input.tsconfigContent,
74629
+ input.respectInlineDisables
74630
+ ])).digest("hex");
74496
74631
  /**
74497
74632
  * Loads a plugin module via the local require resolver and extracts
74498
74633
  * `(name, ruleNames)` from either `module.exports.meta + rules` or
@@ -74648,7 +74783,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
74648
74783
  }
74649
74784
  return enabled;
74650
74785
  };
74651
- const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
74786
+ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, onlyExportComponents, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
74652
74787
  const hasIncludedTags = includedTags.size > 0;
74653
74788
  const resolvedReactHooksJsPlugin = disableReactHooksJsPlugin || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
74654
74789
  const reactHooksJsPlugin = ruleSelection === "sidecar" ? null : resolvedReactHooksJsPlugin;
@@ -74731,6 +74866,7 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
74731
74866
  } : {},
74732
74867
  ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
74733
74868
  ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
74869
+ ...onlyExportComponents !== void 0 ? { onlyExportComponents } : {},
74734
74870
  ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
74735
74871
  }
74736
74872
  },
@@ -76641,7 +76777,11 @@ const spawnLintBatches = async (input) => {
76641
76777
  batchState.deadlineSkippedFileCount += batch.length;
76642
76778
  return [];
76643
76779
  }
76644
- const batchArgs = [...baseArgs, ...batch];
76780
+ const batchArgs = [
76781
+ ...baseArgs,
76782
+ "--",
76783
+ ...batch
76784
+ ];
76645
76785
  try {
76646
76786
  const spawnBatch = async () => {
76647
76787
  const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
@@ -77416,7 +77556,7 @@ const runOxlint = async (options) => {
77416
77556
  }
77417
77557
  const pluginPath = resolvePluginPath();
77418
77558
  const detectedConfigPaths = adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : [];
77419
- const extendsPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
77559
+ const adoptableConfigPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
77420
77560
  const adoptedSettings = detectedConfigPaths.length > 0 ? readAdoptedLintConfigSettings(detectedConfigPaths) : {};
77421
77561
  const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
77422
77562
  const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
@@ -77424,6 +77564,11 @@ const runOxlint = async (options) => {
77424
77564
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
77425
77565
  const workingDirectory = fs$1$2.existsSync(path$1$1.join(rootDirectory, "oxlint-suppressions.json")) ? configDirectory : void 0;
77426
77566
  try {
77567
+ const extendsPaths = snapshotAdoptedLintConfigs({
77568
+ configPaths: adoptableConfigPaths,
77569
+ rootDirectory,
77570
+ snapshotDirectory: configDirectory
77571
+ });
77427
77572
  const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
77428
77573
  fs$1$2.mkdirSync(diagnosticContextDirectory);
77429
77574
  const oxlintBinary = resolveOxlintBinary();
@@ -77484,6 +77629,7 @@ const runOxlint = async (options) => {
77484
77629
  runtimeGlobals,
77485
77630
  unpluginAutoImportGlobalScopes,
77486
77631
  serverAuthFunctionNames,
77632
+ onlyExportComponents: userConfig?.onlyExportComponents,
77487
77633
  projectIndexModuleSources,
77488
77634
  severityControls,
77489
77635
  adoptedSettings,
@@ -79810,4 +79956,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79810
79956
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79811
79957
 
79812
79958
  //# sourceMappingURL=index.js.map
79813
- //# debugId=4aa6d167-b90d-5f92-a4a9-bdc74620b171
79959
+ //# debugId=03c9fd81-e844-5b50-b2ac-f3212ea46bf8
@@ -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]="614edac9-12a4-5e9a-a35b-19591d87940b")}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-9Q_AofQZ.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-CdsvqQbi.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-lgLxrA8y.js";
7
+ import { t as reportErrorToSentry } from "./report-error-D8MXuEuX.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-C8URs5z8.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-4uZez_Ux.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-mO5jhToI.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-DWFgbnKE.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-B8M3Cm1y.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-CoKQrvw3.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-z8YCZ_ln.js";
16
+ import { t as readObjectFile } from "./read-object-file-1GYa4MDG.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-Bb1HyA7w.js.map
1532
+ //# debugId=614edac9-12a4-5e9a-a35b-19591d87940b
@@ -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]="8c7c2aa1-1c89-5115-8e41-b4f0151d3682")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { En as runSync, t as recordCount } from "./record-metric-9Q_AofQZ.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-CdsvqQbi.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-lgLxrA8y.js";
7
+ import { t as reportErrorToSentry } from "./report-error-D8MXuEuX.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-DMHPLUaY.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-z8YCZ_ln.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-Ctq7ew69.js.map
34
+ //# debugId=8c7c2aa1-1c89-5115-8e41-b4f0151d3682
@@ -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]="c849f9dc-6a30-52ed-b018-f8c8813fee62")}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-9Q_AofQZ.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-C8URs5z8.js.map
2822
+ //# debugId=c849f9dc-6a30-52ed-b018-f8c8813fee62
@@ -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]="5b9409b5-64b0-5d87-93b2-c082d3188df2")}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-9Q_AofQZ.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-C8URs5z8.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-4uZez_Ux.js.map
285
+ //# debugId=5b9409b5-64b0-5d87-93b2-c082d3188df2
@@ -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]="b878fc2a-2922-5716-a585-03bdd11fd5e5")}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-9Q_AofQZ.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-C8URs5z8.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-4uZez_Ux.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-DWFgbnKE.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-CoKQrvw3.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-z8YCZ_ln.js.map
1160
+ //# debugId=b878fc2a-2922-5716-a585-03bdd11fd5e5
@@ -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