react-doctor 0.9.22-dev.8177197 → 0.9.22-dev.94a349b

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-Czgiuuin.js → build-section-divider-D4IZiN2V.js} +5 -5
  2. package/dist/{ci-DpIRoXYq.js → ci-vLkDpEHY.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-lt2tTZjE.js → constants-BXG_-QEi.js} +5 -5
  5. package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
  6. package/dist/{design-B8PGWXu1.js → design-DuK0B3VL.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-BRH9fYbC.js → exit-gracefully-fGL88YR2.js} +6 -6
  9. package/dist/{handle-error-BwlrstDg.js → handle-error-DY0LwSgn.js} +6 -6
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +82 -28
  12. package/dist/{inspect-BZ_KJbKV.js → inspect-CZYwnddx.js} +16 -16
  13. package/dist/{install-CwY4Jx3F.js → install-C2NUN0DI.js} +10 -10
  14. package/dist/{install-doctor-script-D_XEMSFX.js → install-doctor-script-B7uHQGTE.js} +5 -5
  15. package/dist/{install-github-workflow-CPo3ISt0.js → install-github-workflow-DvPU6iRP.js} +6 -6
  16. package/dist/{install-react-doctor-DacP039v.js → install-react-doctor-YlCFF9NB.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-9hFWw6_L.js} +4 -4
  18. package/dist/{jsx-runtime-B5AB7MMn.js → jsx-runtime-D5T315Ni.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-CGh-TgXb.js → print-branded-header-gCVNBMIM.js} +4 -4
  21. package/dist/project-analysis-worker.js +1 -1
  22. package/dist/{prompt-runtime-scan-url-jHTJGE2E.js → prompt-runtime-scan-url-CkygS7ib.js} +5 -5
  23. package/dist/{read-object-file-nMRMJnqe.js → read-object-file-C0DIkO3x.js} +4 -4
  24. package/dist/{record-metric-dPlTjBxT.js → record-metric-DEkif2lv.js} +73 -30
  25. package/dist/{report-error-B6hRUis9.js → report-error-BZL-IQCa.js} +6 -6
  26. package/dist/{report-workflow-result-DO9aW8ex.js → report-workflow-result-nqMC7kU6.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-mAhLD8UF.js → resolve-scan-exit-code-Ckg6q3g0.js} +14 -13
  28. package/dist/{resolve-scope-CVNcLR-0.js → resolve-scope-jWFQ1kH0.js} +6 -6
  29. package/dist/{rules-mH1ciikH.js → rules-PmrBem9A.js} +7 -7
  30. package/dist/{run-scan-app-P9dg1XH2.js → run-scan-app-DoURND_O.js} +11 -11
  31. package/dist/{runtime-scan-f5i0KAVg.js → runtime-scan-9Yp5o5j7.js} +10 -10
  32. package/dist/{sanitize-runtime-url-GMnCQDob.js → sanitize-runtime-url-bPuowHo4.js} +4 -4
  33. package/dist/{scan-DvXuLDt-.js → scan-BsTbTUzO.js} +10 -10
  34. package/dist/{should-skip-prompts-DmLMKFN9.js → should-skip-prompts-DNPIZchh.js} +4 -4
  35. package/dist/{should-use-tui-DBqQnpCE.js → should-use-tui-CyQ6v9j5.js} +4 -4
  36. package/dist/skills/react-doctor/references/explain.md +5 -0
  37. package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DTCdY3lc.js} +5 -5
  38. package/dist/start-scan-preamble.js +3 -3
  39. package/dist/{telemetry-runtime-B5A9Zifr.js → telemetry-runtime-B8SC2bBd.js} +7 -7
  40. package/dist/{version-26yJbbwQ.js → version-DDkM0eeC.js} +5 -5
  41. package/dist/{why-BPcbKeJA.js → why-WPP8ILWZ.js} +4 -4
  42. package/dist/{with-run-span-BgVdJcuy.js → with-run-span-CoVguga6.js} +6 -6
  43. package/package.json +2 -2
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]="411a0245-5f85-5a99-bccf-030950a7ee72")}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]="bc84ddb4-0a3b-51f1-9ff6-82bc9982390a")}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";
@@ -19,14 +19,14 @@ import * as net from "node:net";
19
19
  import { parseSync } from "oxc-parser";
20
20
  import * as fs$1$1 from "node:fs/promises";
21
21
  import { ResolverFactory } from "oxc-resolver";
22
- import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_BRIDGE_RULES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, atomicWriteFile, classifySecurityScanFile, collectCrossFileDependencyProbes, getDiagnosticContextPath, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
22
+ import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, EXTERNAL_RULES, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_BRIDGE_RULES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, atomicWriteFile, classifySecurityScanFile, collectCrossFileDependencyProbes, getDiagnosticContextPath, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
23
23
  import { parseJSON5, parseJSONC } from "confbox";
24
24
  import { createJiti } from "jiti";
25
25
  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-9jQMSNkb.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;
@@ -440,7 +440,7 @@ const isPlainObject = (value) => {
440
440
  //#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
441
441
  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
442
  //#endregion
443
- //#region ../core/dist/react-compiler-detection-client-DLmrJui3.js
443
+ //#region ../core/dist/react-compiler-detection-client-DkWSZKUf.js
444
444
  const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
445
445
  const toRequestKey = (request) => [
446
446
  request.directory,
@@ -2710,7 +2710,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2710
2710
  module.exports = picomatch;
2711
2711
  }));
2712
2712
  //#endregion
2713
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-D4bM_Zhs.js
2713
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-4V2mjeuI.js
2714
2714
  var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
2715
2715
  const pico = require_picomatch$1();
2716
2716
  const utils = require_utils();
@@ -3160,7 +3160,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
3160
3160
  return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
3161
3161
  };
3162
3162
  //#endregion
3163
- //#region ../core/dist/detect-duplicate-jsx-subtrees-BfvHEoZi.js
3163
+ //#region ../core/dist/detect-duplicate-jsx-subtrees-C_1028bX.js
3164
3164
  const yieldToEventLoop = () => new Promise((resolve) => {
3165
3165
  setImmediate(resolve);
3166
3166
  });
@@ -3285,7 +3285,7 @@ const resolveOptions$1 = (options) => ({
3285
3285
  minimumDistinctFiles: options.minimumDistinctFiles ?? 1,
3286
3286
  maxSourceFiles: options.budget?.maxSourceFiles ?? 5e3,
3287
3287
  maxSourceLengthChars: options.budget?.maxSourceLengthChars ?? 1e6,
3288
- maxJsxNodes: options.budget?.maxJsxNodes ?? 5e4,
3288
+ maxJsxNodes: options.budget?.maxJsxNodes ?? 5e5,
3289
3289
  maxFamilies: options.budget?.maxFamilies ?? 20
3290
3290
  });
3291
3291
  const hashParts = (parts) => {
@@ -3499,10 +3499,12 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
3499
3499
  const jsxNodes = [];
3500
3500
  const pendingNodes = [sourceFile];
3501
3501
  let limitExceeded = false;
3502
+ let observedJsxNodeCount = 0;
3502
3503
  while (pendingNodes.length > 0 && !limitExceeded && !signal?.aborted) {
3503
3504
  const currentNode = pendingNodes.pop();
3504
3505
  if (currentNode === void 0) continue;
3505
3506
  if (isJsxSubtreeNode(currentNode)) {
3507
+ observedJsxNodeCount += 1;
3506
3508
  if (jsxNodes.length >= maximumCandidateCount) {
3507
3509
  limitExceeded = true;
3508
3510
  continue;
@@ -3518,7 +3520,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
3518
3520
  if (limitExceeded || signal?.aborted) return {
3519
3521
  candidates: [],
3520
3522
  aborted: signal?.aborted ?? false,
3521
- limitExceeded
3523
+ limitExceeded,
3524
+ observedJsxNodeCount
3522
3525
  };
3523
3526
  const metadataByNode = /* @__PURE__ */ new Map();
3524
3527
  const functionIdentityByNode = /* @__PURE__ */ new Map();
@@ -3526,7 +3529,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
3526
3529
  if (signal?.aborted) return {
3527
3530
  candidates: [],
3528
3531
  aborted: true,
3529
- limitExceeded: false
3532
+ limitExceeded: false,
3533
+ observedJsxNodeCount
3530
3534
  };
3531
3535
  buildJsxSubtreeMetadata(jsxNodes[nodeIndex], metadataByNode);
3532
3536
  }
@@ -3544,7 +3548,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
3544
3548
  };
3545
3549
  }),
3546
3550
  aborted: false,
3547
- limitExceeded: false
3551
+ limitExceeded: false,
3552
+ observedJsxNodeCount
3548
3553
  };
3549
3554
  };
3550
3555
  const scanSource = (input) => {
@@ -3581,8 +3586,7 @@ const scanSource = (input) => {
3581
3586
  incompleteReason: {
3582
3587
  kind: "jsx-node-limit",
3583
3588
  limit: input.options.maxJsxNodes,
3584
- observed: input.options.maxJsxNodes + 1,
3585
- path: input.source.path
3589
+ observed: input.scannedJsxNodeCount + collectedCandidates.observedJsxNodeCount
3586
3590
  },
3587
3591
  didAbort: false,
3588
3592
  didScan: false
@@ -3699,7 +3703,10 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
3699
3703
  scannedSourceFileCount,
3700
3704
  scannedJsxNodeCount
3701
3705
  });
3702
- if (scannedSource.incompleteReason !== null) incompleteReasons.push(scannedSource.incompleteReason);
3706
+ if (scannedSource.incompleteReason !== null) {
3707
+ incompleteReasons.push(scannedSource.incompleteReason);
3708
+ if (scannedSource.incompleteReason.kind === "jsx-node-limit") break;
3709
+ }
3703
3710
  if (scannedSource.didScan) {
3704
3711
  candidates.push(...scannedSource.candidates);
3705
3712
  scannedJsxNodeCount += scannedSource.candidates.length;
@@ -3717,7 +3724,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
3717
3724
  });
3718
3725
  };
3719
3726
  //#endregion
3720
- //#region ../core/dist/detect-react-compiler-BGN8JyDW.js
3727
+ //#region ../core/dist/detect-react-compiler-CTfHP-jI.js
3721
3728
  const NEXT_CONFIG_FILENAMES = [
3722
3729
  "next.config.js",
3723
3730
  "next.config.mjs",
@@ -68986,11 +68993,22 @@ for (const [legacyRuleKey, nativeRuleKey] of Object.entries(LEGACY_RULE_KEY_TO_N
68986
68993
  NATIVE_RULE_KEY_TO_LEGACY_RULE_KEYS.set(nativeRuleKey, aliases);
68987
68994
  }
68988
68995
  const getLegacyRuleKeysForNative = (ruleKey) => NATIVE_RULE_KEY_TO_LEGACY_RULE_KEYS.get(ruleKey) ?? [];
68996
+ const REACT_DOCTOR_RULE_KEY_PREFIX = "react-doctor/";
68989
68997
  const canonicalizeRuleKey = (ruleKey) => {
68990
68998
  const nativeRuleKey = LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY[ruleKey];
68991
68999
  return typeof nativeRuleKey === "string" ? nativeRuleKey : ruleKey;
68992
69000
  };
68993
69001
  const isReactDoctorShortIdOf = (bareRuleKey, qualifiedRuleKey) => !bareRuleKey.includes("/") && qualifiedRuleKey === `react-doctor/${bareRuleKey}`;
69002
+ /**
69003
+ * Canonicalizes a rule key as users write it in config: a legacy alias
69004
+ * (`react/jsx-key`) maps to its native key, and a bare short id (`no-eval`)
69005
+ * qualifies as `react-doctor/<id>` — mirroring `isSameRuleKey`'s matching —
69006
+ * so telemetry groups every spelling of one rule under one key.
69007
+ */
69008
+ const canonicalizeUserRuleKey = (ruleKey) => {
69009
+ const nativeRuleKey = canonicalizeRuleKey(ruleKey);
69010
+ return nativeRuleKey.includes("/") ? nativeRuleKey : `${REACT_DOCTOR_RULE_KEY_PREFIX}${nativeRuleKey}`;
69011
+ };
68994
69012
  const isSameRuleKey = (candidateRuleKey, targetRuleKey) => {
68995
69013
  const canonicalCandidate = canonicalizeRuleKey(candidateRuleKey);
68996
69014
  const canonicalTarget = canonicalizeRuleKey(targetRuleKey);
@@ -70321,6 +70339,13 @@ const DEFAULT_SURFACE_EXCLUDED_TAGS = {
70321
70339
  ciFailure: ["design"]
70322
70340
  };
70323
70341
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
70342
+ const KNOWN_RULE_KEYS = new Set([...ALL_REACT_DOCTOR_RULE_KEYS, ...EXTERNAL_RULES.map((rule) => rule.key)]);
70343
+ const BUNDLED_RULE_NAMESPACES = new Set([...KNOWN_RULE_KEYS].flatMap(getEquivalentRuleKeys).map((key) => key.slice(0, key.lastIndexOf("/"))));
70344
+ const getUnknownBundledRuleKeys = (rules) => Object.keys(rules ?? {}).filter((key) => {
70345
+ const canonicalKey = canonicalizeUserRuleKey(key);
70346
+ const namespace = canonicalKey.slice(0, canonicalKey.lastIndexOf("/"));
70347
+ return BUNDLED_RULE_NAMESPACES.has(namespace) && !KNOWN_RULE_KEYS.has(canonicalKey);
70348
+ });
70324
70349
  const VALID_RULE_SEVERITIES = [
70325
70350
  "error",
70326
70351
  "warn",
@@ -70505,6 +70530,7 @@ const validateConfigTypes = (config) => {
70505
70530
  applyFieldValidator(config, validated, "surfaces", validateSurfacesField);
70506
70531
  for (const fieldName of SEVERITY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateSeverityMap(fieldName, value, fieldName === "categories"));
70507
70532
  applyFieldValidator(config, validated, "plugins", (value) => validateStringArrayField("plugins", value));
70533
+ 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.`);
70508
70534
  return validated;
70509
70535
  };
70510
70536
  const warn = (message) => {
@@ -74473,7 +74499,7 @@ const normalizeConfigForHash = (config) => {
74473
74499
  if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
74474
74500
  return clone;
74475
74501
  };
74476
- const computeRulesetHash = (input) => crypto.createHash("sha1").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");
74502
+ 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");
74477
74503
  /**
74478
74504
  * Loads a plugin module via the local require resolver and extracts
74479
74505
  * `(name, ruleNames)` from either `module.exports.meta + rules` or
@@ -76624,33 +76650,58 @@ const spawnLintBatches = async (input) => {
76624
76650
  }
76625
76651
  const batchArgs = [...baseArgs, ...batch];
76626
76652
  try {
76627
- const spawnBatch = () => {
76653
+ const spawnBatch = async () => {
76628
76654
  const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
76629
76655
  if (effectiveSpawnTimeoutMs === 0) {
76630
76656
  deadlineSkippedFiles.push(...batch);
76631
76657
  batchState.deadlineSkippedFileCount += batch.length;
76632
- return Promise.resolve(null);
76658
+ return null;
76659
+ }
76660
+ const onStart = () => {
76661
+ if (batchState.didStart) return;
76662
+ batchState.didStart = true;
76663
+ startedFileCount += batchState.initialFileCount;
76664
+ reportBatchStarted(passBatches.length);
76665
+ };
76666
+ let argumentsList = batchArgs;
76667
+ if (input.workingDirectory !== void 0) {
76668
+ const selectedFiles = (await spawnOxlint([
76669
+ ...baseArgs,
76670
+ "--debug",
76671
+ "files",
76672
+ ...batch
76673
+ ], rootDirectory, nodeBinaryPath, effectiveSpawnTimeoutMs, outputMaxBytes, signal, onStart)).split(/\r?\n/).filter(Boolean).map((filePath) => path$1$1.resolve(rootDirectory, filePath));
76674
+ if (selectedFiles.length === 0) return JSON.stringify({ diagnostics: [] });
76675
+ argumentsList = [
76676
+ ...baseArgs,
76677
+ "--no-ignore",
76678
+ ...selectedFiles
76679
+ ];
76633
76680
  }
76634
76681
  return runOxlintJob({
76635
- argumentsList: batchArgs,
76636
- rootDirectory,
76682
+ argumentsList,
76683
+ rootDirectory: input.workingDirectory ?? rootDirectory,
76637
76684
  nodeBinaryPath,
76638
76685
  spawnTimeoutMs: effectiveSpawnTimeoutMs ?? 6e4,
76639
76686
  outputMaxBytes: outputMaxBytes ?? 52428800,
76640
76687
  maxWorkers: requestedConcurrency,
76641
76688
  filesystemCacheEpoch: input.spawnSlots?.filesystemCacheEpoch ?? null,
76642
76689
  abortSignal: signal,
76643
- onStart: () => {
76644
- if (batchState.didStart) return;
76645
- batchState.didStart = true;
76646
- startedFileCount += batchState.initialFileCount;
76647
- reportBatchStarted(passBatches.length);
76648
- }
76690
+ onStart
76649
76691
  });
76650
76692
  };
76651
76693
  const stdout = input.spawnSlots === void 0 ? await spawnBatch() : await input.spawnSlots.run(spawnBatch, signal);
76652
76694
  if (stdout === null) return [];
76653
- return parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, input.diagnosticContextDirectory);
76695
+ const diagnostics = parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, input.diagnosticContextDirectory);
76696
+ if (input.workingDirectory === void 0) return diagnostics;
76697
+ return diagnostics.map((diagnostic) => ({
76698
+ ...diagnostic,
76699
+ filePath: toNormalizedRelativePath(diagnostic.filePath, rootDirectory),
76700
+ ...diagnostic.relatedLocations ? { relatedLocations: diagnostic.relatedLocations.map((location) => ({
76701
+ ...location,
76702
+ filePath: toNormalizedRelativePath(location.filePath, rootDirectory)
76703
+ })) } : {}
76704
+ }));
76654
76705
  } catch (error) {
76655
76706
  if (!isSplittableReactDoctorError(error)) throw error;
76656
76707
  if (isPastDeadline()) {
@@ -77378,6 +77429,7 @@ const runOxlint = async (options) => {
77378
77429
  const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
77379
77430
  const configDirectory = fs$1$2.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
77380
77431
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
77432
+ const workingDirectory = fs$1$2.existsSync(path$1$1.join(rootDirectory, "oxlint-suppressions.json")) ? configDirectory : void 0;
77381
77433
  try {
77382
77434
  const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
77383
77435
  fs$1$2.mkdirSync(diagnosticContextDirectory);
@@ -77387,7 +77439,7 @@ const runOxlint = async (options) => {
77387
77439
  if (project.hasTypeScript) {
77388
77440
  const tsconfigRelativePath = resolveTsConfigRelativePath(rootDirectory);
77389
77441
  if (tsconfigRelativePath) {
77390
- sharedArgs.push("--tsconfig", tsconfigRelativePath);
77442
+ sharedArgs.push("--tsconfig", path$1$1.resolve(rootDirectory, tsconfigRelativePath));
77391
77443
  try {
77392
77444
  tsconfigContent = fs$1$2.readFileSync(path$1$1.resolve(rootDirectory, tsconfigRelativePath), "utf8");
77393
77445
  } catch {
@@ -77476,6 +77528,7 @@ const runOxlint = async (options) => {
77476
77528
  return spawnLintBatches({
77477
77529
  baseArgs: passBaseArgs,
77478
77530
  fileBatches: passFileBatches,
77531
+ workingDirectory,
77479
77532
  rootDirectory,
77480
77533
  nodeBinaryPath,
77481
77534
  project: lintProject,
@@ -77704,6 +77757,7 @@ const runOxlint = async (options) => {
77704
77757
  const runBatches = () => spawnLintBatches({
77705
77758
  baseArgs,
77706
77759
  fileBatches,
77760
+ workingDirectory,
77707
77761
  rootDirectory,
77708
77762
  nodeBinaryPath,
77709
77763
  project: lintProject,
@@ -79763,4 +79817,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79763
79817
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79764
79818
 
79765
79819
  //# sourceMappingURL=index.js.map
79766
- //# debugId=411a0245-5f85-5a99-bccf-030950a7ee72
79820
+ //# debugId=bc84ddb4-0a3b-51f1-9ff6-82bc9982390a
@@ -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]="ea52ca54-9d74-548b-99fc-379525e33ccb")}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 { At as hasSupportedFrameworkOrLibrary, Bn as messageFromUnknown, Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Gn as isPlainObject, K as StagedFiles, Mt as highlighter, S as isDebugFlagEnabled, St as getBaselineDiffPlan, Tt as getDiffInfo, Un as isErrnoException, Ut as mapWithConcurrency, Vt as listWorkspacePackages, Xt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, gn as gen, h as writeJsonErrorReport, j as Git, jn as provide, mn as decodeUnknownSync, n as recordDistribution, p as setJsonReportMode, pn as JsonReport, pt as discoverSupportedSubprojects, qt as remainingDeadlineBudgetMs, rn as toRelativePath, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, wn as runPromise, xn as provide$1, y as CliInputError } from "./record-metric-dPlTjBxT.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-B5A9Zifr.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-BwlrstDg.js";
7
- import { t as reportErrorToSentry } from "./report-error-B6hRUis9.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]="abc5c81d-f7ca-50fe-9a1e-4841685a0424")}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-BXG_-QEi.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-DEkif2lv.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-B8SC2bBd.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-DY0LwSgn.js";
7
+ import { t as reportErrorToSentry } from "./report-error-BZL-IQCa.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-D_XEMSFX.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CPo3ISt0.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CVNcLR-0.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-DmLMKFN9.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-mAhLD8UF.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-DO9aW8ex.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-DacP039v.js";
16
- import { t as readObjectFile } from "./read-object-file-nMRMJnqe.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-B7uHQGTE.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-DvPU6iRP.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-jWFQ1kH0.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-DNPIZchh.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-Ckg6q3g0.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-nqMC7kU6.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-YlCFF9NB.js";
16
+ import { t as readObjectFile } from "./read-object-file-C0DIkO3x.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-BZ_KJbKV.js.map
1532
- //# debugId=ea52ca54-9d74-548b-99fc-379525e33ccb
1531
+ //# sourceMappingURL=inspect-CZYwnddx.js.map
1532
+ //# debugId=abc5c81d-f7ca-50fe-9a1e-4841685a0424
@@ -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]="5e67c5bf-d893-5201-b440-ab58b4f70f1d")}catch(e){}}();
3
- import { u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Tn as runSync, t as recordCount } from "./record-metric-dPlTjBxT.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-B5A9Zifr.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-BwlrstDg.js";
7
- import { t as reportErrorToSentry } from "./report-error-B6hRUis9.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-CGh-TgXb.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-DacP039v.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]="69569f10-c38e-521b-acbf-4b15cfc1b258")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BXG_-QEi.js";
4
+ import { En as runSync, t as recordCount } from "./record-metric-DEkif2lv.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-B8SC2bBd.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-DY0LwSgn.js";
7
+ import { t as reportErrorToSentry } from "./report-error-BZL-IQCa.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-gCVNBMIM.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-YlCFF9NB.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-CwY4Jx3F.js.map
34
- //# debugId=5e67c5bf-d893-5201-b440-ab58b4f70f1d
33
+ //# sourceMappingURL=install-C2NUN0DI.js.map
34
+ //# debugId=69569f10-c38e-521b-acbf-4b15cfc1b258
@@ -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]="c4fc7588-b3a8-5b51-83b1-7f0e76fa1bf2")}catch(e){}}();
3
- import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-lt2tTZjE.js";
4
- import { Mt as highlighter, Tn as runSync, b as isNonInteractiveEnvironment, cn as error$1, dn as warn, ln as info$1, un as log } from "./record-metric-dPlTjBxT.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]="967728e5-057f-5cf2-be56-52ad6d5e3892")}catch(e){}}();
3
+ import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-BXG_-QEi.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-DEkif2lv.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-D_XEMSFX.js.map
2822
- //# debugId=c4fc7588-b3a8-5b51-83b1-7f0e76fa1bf2
2821
+ //# sourceMappingURL=install-doctor-script-B7uHQGTE.js.map
2822
+ //# debugId=967728e5-057f-5cf2-be56-52ad6d5e3892
@@ -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]="27317585-27cf-532b-9b15-1cea37f73d87")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-lt2tTZjE.js";
4
- import { _t as findGitRepositoryRoot } from "./record-metric-dPlTjBxT.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]="0694506d-a5ce-5bbf-8096-9a88ce0a54fd")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-BXG_-QEi.js";
4
+ import { _t as findGitRepositoryRoot } from "./record-metric-DEkif2lv.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-D_XEMSFX.js";
6
+ import { N as cliLogger } from "./install-doctor-script-B7uHQGTE.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-CPo3ISt0.js.map
285
- //# debugId=27317585-27cf-532b-9b15-1cea37f73d87
284
+ //# sourceMappingURL=install-github-workflow-DvPU6iRP.js.map
285
+ //# debugId=0694506d-a5ce-5bbf-8096-9a88ce0a54fd
@@ -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]="857ad680-ce21-5eb3-9e5f-7ffc95edda90")}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 { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-dPlTjBxT.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-D_XEMSFX.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-CPo3ISt0.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-DmLMKFN9.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-DO9aW8ex.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]="63229969-ced3-557b-938c-c229d02a1618")}catch(e){}}();
3
+ import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-BXG_-QEi.js";
4
+ import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-DEkif2lv.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-B7uHQGTE.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-DvPU6iRP.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-DNPIZchh.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-nqMC7kU6.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-DacP039v.js.map
1160
- //# debugId=857ad680-ce21-5eb3-9e5f-7ffc95edda90
1159
+ //# sourceMappingURL=install-react-doctor-YlCFF9NB.js.map
1160
+ //# debugId=63229969-ced3-557b-938c-c229d02a1618
@@ -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]="a58e96fa-ba93-588f-8881-f780c20e7d21")}catch(e){}}();
3
+ import { a as CACHE_DISABLED_VALUES } from "./constants-BXG_-QEi.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-9hFWw6_L.js.map
10
+ //# debugId=a58e96fa-ba93-588f-8881-f780c20e7d21
@@ -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]="6cd5be9c-54c2-5dc1-98cf-6453d7fb9ed8")}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]="b50ec30a-ee2b-5128-96b6-02a1ec585a5a")}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-dPlTjBxT.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-BRH9fYbC.js";
4
+ import { u as METRIC } from "./constants-BXG_-QEi.js";
5
+ import { t as recordCount } from "./record-metric-DEkif2lv.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-fGL88YR2.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-B5AB7MMn.js.map
25874
- //# debugId=6cd5be9c-54c2-5dc1-98cf-6453d7fb9ed8
25873
+ //# sourceMappingURL=jsx-runtime-D5T315Ni.js.map
25874
+ //# debugId=b50ec30a-ee2b-5128-96b6-02a1ec585a5a
@@ -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]="032ace38-1692-5135-98eb-affa16131be8")}catch(e){}}();
3
- import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-dPlTjBxT.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]="0abc179f-8ca0-5732-848f-85d848e49dac")}catch(e){}}();
3
+ import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-DEkif2lv.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-CGh-TgXb.js.map
22
- //# debugId=032ace38-1692-5135-98eb-affa16131be8
21
+ //# sourceMappingURL=print-branded-header-gCVNBMIM.js.map
22
+ //# debugId=0abc179f-8ca0-5732-848f-85d848e49dac
@@ -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]="11ca55f9-4831-596d-840e-e63666f5d745")}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]="a0abf7ee-eb6b-5f63-a421-f7cb1509905c")}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-GMnCQDob.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-B5AB7MMn.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-bPuowHo4.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-D5T315Ni.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-jHTJGE2E.js.map
240
- //# debugId=11ca55f9-4831-596d-840e-e63666f5d745
239
+ //# sourceMappingURL=prompt-runtime-scan-url-CkygS7ib.js.map
240
+ //# debugId=a0abf7ee-eb6b-5f63-a421-f7cb1509905c
@@ -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]="13e0c303-a9d1-51bb-aa00-b2083f00b863")}catch(e){}}();
3
- import { Gn as isPlainObject } from "./record-metric-dPlTjBxT.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]="5241f459-3bc4-5578-bd71-d34d9d3a4af9")}catch(e){}}();
3
+ import { Kn as isPlainObject } from "./record-metric-DEkif2lv.js";
4
4
  import * as fs$1 from "node:fs";
5
5
  import { parseJSON5 } from "confbox";
6
6
  //#region src/cli/utils/read-object-file.ts
@@ -20,5 +20,5 @@ const readObjectFile = (filePath) => {
20
20
  //#endregion
21
21
  export { readObjectFile as t };
22
22
 
23
- //# sourceMappingURL=read-object-file-nMRMJnqe.js.map
24
- //# debugId=13e0c303-a9d1-51bb-aa00-b2083f00b863
23
+ //# sourceMappingURL=read-object-file-C0DIkO3x.js.map
24
+ //# debugId=5241f459-3bc4-5578-bd71-d34d9d3a4af9