react-doctor 0.9.22-dev.654e650 → 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-CwJH1xmI.js → build-section-divider-D4IZiN2V.js} +5 -5
  2. package/dist/{ci-lMJFR8-4.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-0WVNDO9a.js → design-DuK0B3VL.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-w3YrR6j_.js → exit-gracefully-fGL88YR2.js} +6 -6
  9. package/dist/{handle-error-CZm13E2B.js → handle-error-DY0LwSgn.js} +6 -6
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +100 -33
  12. package/dist/{inspect-VzubY7F6.js → inspect-CZYwnddx.js} +16 -16
  13. package/dist/{install-BEVfbOfg.js → install-C2NUN0DI.js} +10 -10
  14. package/dist/{install-doctor-script-C2It5M7w.js → install-doctor-script-B7uHQGTE.js} +5 -5
  15. package/dist/{install-github-workflow-u_2rbfq5.js → install-github-workflow-DvPU6iRP.js} +6 -6
  16. package/dist/{install-react-doctor-CMQPcoEO.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-Dr3x6KP8.js → jsx-runtime-D5T315Ni.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-DplFGjYd.js → print-branded-header-gCVNBMIM.js} +4 -4
  21. package/dist/project-analysis-worker.js +1 -1
  22. package/dist/{prompt-runtime-scan-url-BjMsssHe.js → prompt-runtime-scan-url-CkygS7ib.js} +5 -5
  23. package/dist/{read-object-file-BxwFJchD.js → read-object-file-C0DIkO3x.js} +4 -4
  24. package/dist/{record-metric-AFr0Yu89.js → record-metric-DEkif2lv.js} +91 -35
  25. package/dist/{report-error-kuxNlGQx.js → report-error-BZL-IQCa.js} +6 -6
  26. package/dist/{report-workflow-result-RTvTg6Pf.js → report-workflow-result-nqMC7kU6.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-DSgZArqU.js → resolve-scan-exit-code-Ckg6q3g0.js} +41 -30
  28. package/dist/{resolve-scope-C-Tm5Ryp.js → resolve-scope-jWFQ1kH0.js} +6 -6
  29. package/dist/{rules-DzggRH6U.js → rules-PmrBem9A.js} +7 -7
  30. package/dist/{run-scan-app-BJUmhA3q.js → run-scan-app-DoURND_O.js} +11 -11
  31. package/dist/{runtime-scan-DHtU5yoc.js → runtime-scan-9Yp5o5j7.js} +10 -10
  32. package/dist/{sanitize-runtime-url-B3pkj7Yu.js → sanitize-runtime-url-bPuowHo4.js} +4 -4
  33. package/dist/{scan-C5Igr4c8.js → scan-BsTbTUzO.js} +10 -10
  34. package/dist/{should-skip-prompts-COTLQds4.js → should-skip-prompts-DNPIZchh.js} +4 -4
  35. package/dist/{should-use-tui-DiLWHBew.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-DVsOeCQp.js → telemetry-runtime-B8SC2bBd.js} +7 -7
  40. package/dist/{version-DzAw3LOo.js → version-DDkM0eeC.js} +5 -5
  41. package/dist/{why-CF7qDIc1.js → why-WPP8ILWZ.js} +4 -4
  42. package/dist/{with-run-span-CFRc85Ss.js → with-run-span-CoVguga6.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]="b49f9a11-6400-5ef3-b3f3-0c9cb2337cb3")}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) => {
@@ -72657,15 +72683,23 @@ const createSecurityScanSession = (rootDirectory, options) => {
72657
72683
  const rule = entry.rule;
72658
72684
  const scan = rule.scan;
72659
72685
  if (typeof scan !== "function") return [];
72686
+ const explicitRuleOverride = resolveRuleSeverityOverride({ ruleKey: entry.key }, options.severityControls);
72687
+ const severityOverride = explicitRuleOverride ?? resolveRuleSeverityOverride({
72688
+ ruleKey: entry.key,
72689
+ category: "Security"
72690
+ }, options.severityControls);
72691
+ if (severityOverride === "off") return [];
72660
72692
  if (!shouldEnableRuleByDefaultStatus({
72661
72693
  defaultEnabled: rule.defaultEnabled,
72662
72694
  includeTagDefaults: options.includeTagDefaults === true,
72663
- hasIncludedTags: includedTags.size > 0
72695
+ hasIncludedTags: includedTags.size > 0,
72696
+ hasExplicitOverride: explicitRuleOverride !== void 0
72664
72697
  })) return [];
72665
72698
  if (!shouldEnableRule(rule.requires, rule.tags, capabilities, ignoredTags, rule.disabledWhen, includedTags)) return [];
72666
72699
  return [{
72667
72700
  entry,
72668
72701
  scan,
72702
+ severityOverride,
72669
72703
  committedFilesOnly: rule.committedFilesOnly === true
72670
72704
  }];
72671
72705
  });
@@ -72683,10 +72717,13 @@ const createSecurityScanSession = (rootDirectory, options) => {
72683
72717
  };
72684
72718
  const scanFileByRule = function* (file) {
72685
72719
  if (file === null) return;
72686
- for (const { entry, scan, committedFilesOnly } of enabledScanRules) {
72720
+ for (const { entry, scan, severityOverride, committedFilesOnly } of enabledScanRules) {
72687
72721
  for (const finding of scan(file)) {
72688
72722
  if (committedFilesOnly && isFileGitIgnored(file)) continue;
72689
- const diagnostic = buildSecurityScanDiagnostic(finding, entry, file.relativePath);
72723
+ const diagnostic = buildSecurityScanDiagnostic(severityOverride === void 0 ? finding : {
72724
+ ...finding,
72725
+ severity: severityOverride
72726
+ }, entry, file.relativePath);
72690
72727
  const key = `${diagnostic.rule}:${diagnostic.filePath}:${diagnostic.line}:${diagnostic.column}:${diagnostic.message}`;
72691
72728
  if (seen.has(key)) continue;
72692
72729
  seen.add(key);
@@ -74462,7 +74499,7 @@ const normalizeConfigForHash = (config) => {
74462
74499
  if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
74463
74500
  return clone;
74464
74501
  };
74465
- 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");
74466
74503
  /**
74467
74504
  * Loads a plugin module via the local require resolver and extracts
74468
74505
  * `(name, ruleNames)` from either `module.exports.meta + rules` or
@@ -76613,33 +76650,58 @@ const spawnLintBatches = async (input) => {
76613
76650
  }
76614
76651
  const batchArgs = [...baseArgs, ...batch];
76615
76652
  try {
76616
- const spawnBatch = () => {
76653
+ const spawnBatch = async () => {
76617
76654
  const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
76618
76655
  if (effectiveSpawnTimeoutMs === 0) {
76619
76656
  deadlineSkippedFiles.push(...batch);
76620
76657
  batchState.deadlineSkippedFileCount += batch.length;
76621
- 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
+ ];
76622
76680
  }
76623
76681
  return runOxlintJob({
76624
- argumentsList: batchArgs,
76625
- rootDirectory,
76682
+ argumentsList,
76683
+ rootDirectory: input.workingDirectory ?? rootDirectory,
76626
76684
  nodeBinaryPath,
76627
76685
  spawnTimeoutMs: effectiveSpawnTimeoutMs ?? 6e4,
76628
76686
  outputMaxBytes: outputMaxBytes ?? 52428800,
76629
76687
  maxWorkers: requestedConcurrency,
76630
76688
  filesystemCacheEpoch: input.spawnSlots?.filesystemCacheEpoch ?? null,
76631
76689
  abortSignal: signal,
76632
- onStart: () => {
76633
- if (batchState.didStart) return;
76634
- batchState.didStart = true;
76635
- startedFileCount += batchState.initialFileCount;
76636
- reportBatchStarted(passBatches.length);
76637
- }
76690
+ onStart
76638
76691
  });
76639
76692
  };
76640
76693
  const stdout = input.spawnSlots === void 0 ? await spawnBatch() : await input.spawnSlots.run(spawnBatch, signal);
76641
76694
  if (stdout === null) return [];
76642
- 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
+ }));
76643
76705
  } catch (error) {
76644
76706
  if (!isSplittableReactDoctorError(error)) throw error;
76645
76707
  if (isPastDeadline()) {
@@ -77367,6 +77429,7 @@ const runOxlint = async (options) => {
77367
77429
  const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
77368
77430
  const configDirectory = fs$1$2.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
77369
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;
77370
77433
  try {
77371
77434
  const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
77372
77435
  fs$1$2.mkdirSync(diagnosticContextDirectory);
@@ -77376,7 +77439,7 @@ const runOxlint = async (options) => {
77376
77439
  if (project.hasTypeScript) {
77377
77440
  const tsconfigRelativePath = resolveTsConfigRelativePath(rootDirectory);
77378
77441
  if (tsconfigRelativePath) {
77379
- sharedArgs.push("--tsconfig", tsconfigRelativePath);
77442
+ sharedArgs.push("--tsconfig", path$1$1.resolve(rootDirectory, tsconfigRelativePath));
77380
77443
  try {
77381
77444
  tsconfigContent = fs$1$2.readFileSync(path$1$1.resolve(rootDirectory, tsconfigRelativePath), "utf8");
77382
77445
  } catch {
@@ -77465,6 +77528,7 @@ const runOxlint = async (options) => {
77465
77528
  return spawnLintBatches({
77466
77529
  baseArgs: passBaseArgs,
77467
77530
  fileBatches: passFileBatches,
77531
+ workingDirectory,
77468
77532
  rootDirectory,
77469
77533
  nodeBinaryPath,
77470
77534
  project: lintProject,
@@ -77693,6 +77757,7 @@ const runOxlint = async (options) => {
77693
77757
  const runBatches = () => spawnLintBatches({
77694
77758
  baseArgs,
77695
77759
  fileBatches,
77760
+ workingDirectory,
77696
77761
  rootDirectory,
77697
77762
  nodeBinaryPath,
77698
77763
  project: lintProject,
@@ -78684,7 +78749,8 @@ const runInspect = (input, hooks = {}) => gen(function* () {
78684
78749
  return filteredDiagnostic === null ? none() : some(filteredDiagnostic);
78685
78750
  })));
78686
78751
  const applyPerElementPipeline = (rawStream) => filterPerElementPipeline(rawStream).pipe(tap((diagnostic) => reporterService.emit(diagnostic)));
78687
- const pnpmHardeningSeverity = resolveRuleSeverityOverride({ ruleKey: "react-doctor/require-pnpm-hardening" }, buildRuleSeverityControls(resolvedConfig.config));
78752
+ const severityControls = buildRuleSeverityControls(resolvedConfig.config);
78753
+ const pnpmHardeningSeverity = resolveRuleSeverityOverride({ ruleKey: "react-doctor/require-pnpm-hardening" }, severityControls);
78688
78754
  const envCollected = yield* runCollect(applyPerElementPipeline(fromIterable$1(isDiffMode ? [] : [
78689
78755
  ...checkReducedMotion(scanDirectory),
78690
78756
  ...pnpmHardeningSeverity === "warn" || pnpmHardeningSeverity === "error" ? checkPnpmHardening(scanDirectory) : [],
@@ -78696,6 +78762,7 @@ const runInspect = (input, hooks = {}) => gen(function* () {
78696
78762
  let didSecurityScanReachDeadline = false;
78697
78763
  const securityScanFiber = yield* forkChild(runCollect(applyPerElementPipeline(isDiffMode ? empty$4 : unwrap(tryPromise((signal) => checkSecurityScanCooperative(scanDirectory, {
78698
78764
  project,
78765
+ severityControls,
78699
78766
  ignoredTags: input.ignoredTags,
78700
78767
  includedTags: input.includedTags,
78701
78768
  includeTagDefaults: input.includeTagDefaults,
@@ -78743,7 +78810,7 @@ const runInspect = (input, hooks = {}) => gen(function* () {
78743
78810
  const maintainabilityPhaseTimeoutMs = yield* DeadCodePhaseTimeoutMs;
78744
78811
  const workerCountSuffix = scanConcurrency > 1 ? ` ${highlighter.dim(`[~${scanConcurrency} workers]`)}` : "";
78745
78812
  const projectCapabilities = getCapabilities(project);
78746
- const projectRuleSelections = resolveProjectRuleSelections(buildRuleSeverityControls(resolvedConfig.config)).filter((selection) => {
78813
+ const projectRuleSelections = resolveProjectRuleSelections(severityControls).filter((selection) => {
78747
78814
  const rule = REACT_DOCTOR_RULE_REGISTRY[selection.ruleId];
78748
78815
  return rule !== void 0 && shouldEnableRule(rule.requires, rule.tags, projectCapabilities, input.ignoredTags, rule.disabledWhen, input.includedTags) && (selection.ruleId === "duplicate-jsx-subtree" ? input.runDeadCode : !isDiffMode) && (showWarnings || projectRuleSelectionsMaySurfaceWhenWarningsAreHidden([selection]));
78749
78816
  });
@@ -79750,4 +79817,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79750
79817
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79751
79818
 
79752
79819
  //# sourceMappingURL=index.js.map
79753
- //# debugId=b49f9a11-6400-5ef3-b3f3-0c9cb2337cb3
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]="f7a2cb0c-98e2-58d4-8d5e-bac5ec3f1bd8")}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-AFr0Yu89.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-DVsOeCQp.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-CZm13E2B.js";
7
- import { t as reportErrorToSentry } from "./report-error-kuxNlGQx.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-C2It5M7w.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-u_2rbfq5.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-C-Tm5Ryp.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-COTLQds4.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-DSgZArqU.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-RTvTg6Pf.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-CMQPcoEO.js";
16
- import { t as readObjectFile } from "./read-object-file-BxwFJchD.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-VzubY7F6.js.map
1532
- //# debugId=f7a2cb0c-98e2-58d4-8d5e-bac5ec3f1bd8
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]="f6d3574e-2713-5bdc-9b9e-cffae1a0245b")}catch(e){}}();
3
- import { u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Tn as runSync, t as recordCount } from "./record-metric-AFr0Yu89.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-DVsOeCQp.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-CZm13E2B.js";
7
- import { t as reportErrorToSentry } from "./report-error-kuxNlGQx.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-DplFGjYd.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-CMQPcoEO.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-BEVfbOfg.js.map
34
- //# debugId=f6d3574e-2713-5bdc-9b9e-cffae1a0245b
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]="7052f3c8-5ebc-5f66-b441-421386b1255a")}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-AFr0Yu89.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-C2It5M7w.js.map
2822
- //# debugId=7052f3c8-5ebc-5f66-b441-421386b1255a
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]="3d54a6d3-beda-55d6-b7b0-dcdf6e45d368")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-lt2tTZjE.js";
4
- import { _t as findGitRepositoryRoot } from "./record-metric-AFr0Yu89.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-C2It5M7w.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-u_2rbfq5.js.map
285
- //# debugId=3d54a6d3-beda-55d6-b7b0-dcdf6e45d368
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]="783e2024-18cf-5e05-a605-c62af8c0064a")}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-AFr0Yu89.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-C2It5M7w.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-u_2rbfq5.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-COTLQds4.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-RTvTg6Pf.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-CMQPcoEO.js.map
1160
- //# debugId=783e2024-18cf-5e05-a605-c62af8c0064a
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]="8e145745-ead6-5efb-9311-62eddb8dd50c")}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-AFr0Yu89.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-w3YrR6j_.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-Dr3x6KP8.js.map
25874
- //# debugId=8e145745-ead6-5efb-9311-62eddb8dd50c
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]="c219762e-1791-5d12-b763-79e39963dff1")}catch(e){}}();
3
- import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-AFr0Yu89.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-DplFGjYd.js.map
22
- //# debugId=c219762e-1791-5d12-b763-79e39963dff1
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";