react-doctor 0.9.20 → 0.9.21-dev.13ff2a0

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 (37) hide show
  1. package/dist/{build-section-divider-C178IqXI.js → build-section-divider-mTOnrYpM.js} +5 -5
  2. package/dist/{ci-CyR4JrhO.js → ci-DYGf1-wI.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-DmoCNSTH.js → constants-C7tJ1mDM.js} +5 -5
  5. package/dist/{design-OYJGZB_W.js → design-bARAO_oK.js} +4 -4
  6. package/dist/{exit-gracefully-hy64aJY1.js → exit-gracefully-vYLrBViR.js} +6 -6
  7. package/dist/{handle-error-D3ZuATVK.js → handle-error-2xc_0GiE.js} +6 -6
  8. package/dist/index.js +176 -16
  9. package/dist/{inspect-BBiM_EKf.js → inspect-COQ4Q4f0.js} +17 -17
  10. package/dist/{install-4Ih3r8NL.js → install-C-ydPjDr.js} +10 -10
  11. package/dist/{install-doctor-script-DO5zpwvT.js → install-doctor-script-BaGcAM3X.js} +5 -5
  12. package/dist/{install-github-workflow-S0j6X7Y5.js → install-github-workflow-CZon-WS2.js} +6 -6
  13. package/dist/{install-react-doctor-Cmu00m9d.js → install-react-doctor-DmlCVpm5.js} +9 -9
  14. package/dist/{is-cache-globally-disabled-DP6qPu2_.js → is-cache-globally-disabled-CKGkF0mF.js} +4 -4
  15. package/dist/{jsx-runtime-9JxSdCe_.js → jsx-runtime-CKBFKfTi.js} +6 -6
  16. package/dist/{print-branded-header-BkV-uekY.js → print-branded-header-BGsZdujD.js} +4 -4
  17. package/dist/{prompt-runtime-scan-url-DONr_PIK.js → prompt-runtime-scan-url-0fTp6DLR.js} +5 -5
  18. package/dist/{read-object-file-B-5O6DB5.js → read-object-file-BdUmsqGr.js} +4 -4
  19. package/dist/{record-metric-DNEy6bSq.js → record-metric-CoAVbFA7.js} +180 -19
  20. package/dist/{report-error-Cztcdmdr.js → report-error-Cs67Olmw.js} +6 -6
  21. package/dist/{report-workflow-result-CQyTgU7u.js → report-workflow-result-CzcQyml2.js} +6 -6
  22. package/dist/{resolve-scan-exit-code-Bx_UscX4.js → resolve-scan-exit-code-BHnywF2O.js} +15 -14
  23. package/dist/{resolve-scope-gOua6IWZ.js → resolve-scope-CjeJFWT1.js} +6 -6
  24. package/dist/{rules-BdK_cjc2.js → rules-BcEL35Ft.js} +7 -7
  25. package/dist/{run-scan-app-DLrUOOSz.js → run-scan-app-CU3pKaLU.js} +12 -12
  26. package/dist/{runtime-scan-LMDpvBcL.js → runtime-scan-BG2L47ja.js} +10 -10
  27. package/dist/{sanitize-runtime-url-pNuKAmN_.js → sanitize-runtime-url-B0Urg1hb.js} +4 -4
  28. package/dist/{scan-0z3KeIKq.js → scan-DWIltt97.js} +10 -10
  29. package/dist/{should-skip-prompts-1uKi8Vum.js → should-skip-prompts-BuWNOiPd.js} +4 -4
  30. package/dist/{should-use-tui-DTizaA8D.js → should-use-tui-DEdaqbrj.js} +4 -4
  31. package/dist/{start-scan-preamble-WLTerTPo.js → start-scan-preamble-2aM4aK2n.js} +5 -5
  32. package/dist/start-scan-preamble.js +3 -3
  33. package/dist/{telemetry-runtime-DvbGjRwp.js → telemetry-runtime-CKzWxuvY.js} +7 -7
  34. package/dist/{version-BQAaKABG.js → version-BrzugSx5.js} +5 -5
  35. package/dist/{why-BTQoyJ0b.js → why-BrXMVspQ.js} +4 -4
  36. package/dist/{with-run-span-D0VACYf3.js → with-run-span-CYmTBOFN.js} +6 -6
  37. package/package.json +5 -5
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]="d356e1ea-1a16-578e-8be0-09d7150023aa")}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]="e8ba25d7-6b3b-5fe8-b422-f25f05dcdfb3")}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_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, 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-DjA5Ejfw.js
29
+ //#region ../core/dist/constants-Ckbb5j7q.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-D8cZPwhD.js
443
+ //#region ../core/dist/react-compiler-detection-client-CiiqSKFw.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-Djgj3eMC.js
2713
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-B65T4dYj.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-CoRKneov.js
3163
+ //#region ../core/dist/detect-duplicate-jsx-subtrees-pJBK9F39.js
3164
3164
  const yieldToEventLoop = () => new Promise((resolve) => {
3165
3165
  setImmediate(resolve);
3166
3166
  });
@@ -3717,7 +3717,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
3717
3717
  });
3718
3718
  };
3719
3719
  //#endregion
3720
- //#region ../core/dist/detect-react-compiler-FD-Lb4CC.js
3720
+ //#region ../core/dist/detect-react-compiler-4a2Hs6Ek.js
3721
3721
  const NEXT_CONFIG_FILENAMES = [
3722
3722
  "next.config.js",
3723
3723
  "next.config.mjs",
@@ -12540,6 +12540,8 @@ const onErrorFilter = /* @__PURE__ */ dual(3, (self, filter, f) => onExit$2(self
12540
12540
  /** @internal */
12541
12541
  const onInterrupt$1 = /* @__PURE__ */ dual(2, (self, finalizer) => onErrorFilter(causeFilterInterruptors, finalizer)(self));
12542
12542
  /** @internal */
12543
+ const acquireUseRelease$1 = (acquire, use, release) => uninterruptibleMask$1((restore) => flatMap$4(acquire, (a) => onExitPrimitive(restore(use(a)), (exit) => release(a, exit), true)));
12544
+ /** @internal */
12543
12545
  const cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, ttl) => sync$2(() => {
12544
12546
  const ttlMillis = toMillis(fromInputUnsafe(ttl));
12545
12547
  const isFinite = Number.isFinite(ttlMillis);
@@ -18690,6 +18692,84 @@ const scopedWith = scopedWith$1;
18690
18692
  */
18691
18693
  const acquireRelease = acquireRelease$1;
18692
18694
  /**
18695
+ * Runs resource acquisition, usage, and release as one bracketed effect.
18696
+ *
18697
+ * **When to use**
18698
+ *
18699
+ * Use to bracket acquire, use, and release logic in one effect.
18700
+ *
18701
+ * **Details**
18702
+ *
18703
+ * `acquireUseRelease` does the following:
18704
+ *
18705
+ * 1. Ensures that the `Effect` value that acquires the resource will not be
18706
+ * interrupted. Note that acquisition may still fail due to internal
18707
+ * reasons (such as an uncaught exception).
18708
+ * 2. Ensures that the `release` `Effect` value will not be interrupted,
18709
+ * and will be executed as long as the acquisition `Effect` value
18710
+ * successfully acquires the resource.
18711
+ *
18712
+ * During the time period between the acquisition and release of the resource,
18713
+ * the `use` `Effect` value will be executed.
18714
+ *
18715
+ * If the `release` `Effect` value fails, then the entire `Effect` value will
18716
+ * fail, even if the `use` `Effect` value succeeds. If this fail-fast behavior
18717
+ * is not desired, errors produced by the `release` `Effect` value can be caught
18718
+ * and ignored.
18719
+ *
18720
+ * **Example** (Acquiring resources with cleanup)
18721
+ *
18722
+ * ```ts
18723
+ * import { Console, Effect, Exit } from "effect"
18724
+ *
18725
+ * interface Database {
18726
+ * readonly connection: string
18727
+ * readonly query: (sql: string) => Effect.Effect<string>
18728
+ * }
18729
+ *
18730
+ * const program = Effect.acquireUseRelease(
18731
+ * // Acquire - connect to database
18732
+ * Effect.gen(function*() {
18733
+ * yield* Console.log("Connecting to database...")
18734
+ * return {
18735
+ * connection: "db://localhost:5432",
18736
+ * query: (sql: string) => Effect.succeed(`Result for: ${sql}`)
18737
+ * }
18738
+ * }),
18739
+ * // Use - perform database operations
18740
+ * (db) =>
18741
+ * Effect.gen(function*() {
18742
+ * yield* Console.log(`Connected to ${db.connection}`)
18743
+ * const result = yield* db.query("SELECT * FROM users")
18744
+ * yield* Console.log(`Query result: ${result}`)
18745
+ * return result
18746
+ * }),
18747
+ * // Release - close database connection
18748
+ * (db, exit) =>
18749
+ * Effect.gen(function*() {
18750
+ * if (Exit.isSuccess(exit)) {
18751
+ * yield* Console.log(`Closing connection to ${db.connection} (success)`)
18752
+ * } else {
18753
+ * yield* Console.log(`Closing connection to ${db.connection} (failure)`)
18754
+ * }
18755
+ * })
18756
+ * )
18757
+ *
18758
+ * Effect.runPromise(program)
18759
+ * // Output:
18760
+ * // Connecting to database...
18761
+ * // Connected to db://localhost:5432
18762
+ * // Query result: Result for: SELECT * FROM users
18763
+ * // Closing connection to db://localhost:5432 (success)
18764
+ * ```
18765
+ *
18766
+ * @see {@link acquireRelease} for scoped resources whose use happens later
18767
+ *
18768
+ * @category resource management
18769
+ * @since 2.0.0
18770
+ */
18771
+ const acquireUseRelease = acquireUseRelease$1;
18772
+ /**
18693
18773
  * Runs the specified effect if this effect fails, providing the error to the
18694
18774
  * effect if it exists. The provided effect will not be interrupted.
18695
18775
  *
@@ -73576,6 +73656,53 @@ var Git = class Git extends Service()("react-doctor/Git") {
73576
73656
  args,
73577
73657
  directory
73578
73658
  });
73659
+ const findUntrackedRenames = (directory, diffArgs, plan, untrackedFiles) => {
73660
+ const headFiles = new Set(plan.headFiles);
73661
+ const deletedFiles = new Set(plan.baseFiles.filter((filePath) => !headFiles.has(filePath) && plan.renamedFiles?.[filePath] === void 0));
73662
+ if (deletedFiles.size === 0 || untrackedFiles.length === 0) return succeed$2({});
73663
+ return acquireUseRelease(try_(() => fs.mkdtempSync(path.join(os.tmpdir(), "react-doctor-index-"))), (temporaryDirectory) => gen(function* () {
73664
+ const indexPath = yield* runGit(directory, [
73665
+ "rev-parse",
73666
+ "--path-format=absolute",
73667
+ "--git-path",
73668
+ "index"
73669
+ ]);
73670
+ if (indexPath.status !== 0) return {};
73671
+ const indexFile = path.join(temporaryDirectory, "index");
73672
+ const pathspecFile = path.join(temporaryDirectory, "untracked");
73673
+ yield* try_(() => {
73674
+ fs.copyFileSync(indexPath.stdout.trim(), indexFile);
73675
+ fs.writeFileSync(pathspecFile, untrackedFiles.join("\0"));
73676
+ });
73677
+ const env = { GIT_INDEX_FILE: indexFile };
73678
+ if ((yield* runCommand({
73679
+ command: "git",
73680
+ args: [
73681
+ "-c",
73682
+ "core.splitIndex=false",
73683
+ "--literal-pathspecs",
73684
+ "add",
73685
+ "--intent-to-add",
73686
+ `--pathspec-from-file=${pathspecFile}`,
73687
+ "--pathspec-file-nul"
73688
+ ],
73689
+ directory,
73690
+ env
73691
+ })).status !== 0) return {};
73692
+ const result = yield* runCommand({
73693
+ command: "git",
73694
+ args: diffArgs,
73695
+ directory,
73696
+ env
73697
+ });
73698
+ if (result.status !== 0) return {};
73699
+ const untrackedFileSet = new Set(untrackedFiles);
73700
+ return Object.fromEntries(Object.entries(parseBaselineDiffPlan(result.stdout)?.renamedFiles ?? {}).filter(([basePath, headPath]) => deletedFiles.has(basePath) && untrackedFileSet.has(headPath)));
73701
+ }), (temporaryDirectory) => sync(() => fs.rmSync(temporaryDirectory, {
73702
+ recursive: true,
73703
+ force: true
73704
+ }))).pipe(catch_$1(() => succeed$2({})));
73705
+ };
73579
73706
  const listUntrackedFilePaths = (directory, includePaths = []) => runGit(directory, [
73580
73707
  "ls-files",
73581
73708
  "-z",
@@ -73726,7 +73853,7 @@ var Git = class Git extends Service()("react-doctor/Git") {
73726
73853
  "--relative"
73727
73854
  ]);
73728
73855
  if (unmerged.status !== 0 || unmerged.stdout.length > 0) return null;
73729
- const result = yield* runGit(input.directory, [
73856
+ const diffArgs = [
73730
73857
  "diff",
73731
73858
  "--no-ext-diff",
73732
73859
  "--no-textconv",
@@ -73735,7 +73862,8 @@ var Git = class Git extends Service()("react-doctor/Git") {
73735
73862
  "--name-status",
73736
73863
  "--relative",
73737
73864
  input.ref
73738
- ]);
73865
+ ];
73866
+ const result = yield* runGit(input.directory, diffArgs);
73739
73867
  if (result.status !== 0) return null;
73740
73868
  const plan = parseBaselineDiffPlan(result.stdout);
73741
73869
  if (plan === null) return null;
@@ -73746,11 +73874,18 @@ var Git = class Git extends Service()("react-doctor/Git") {
73746
73874
  "-z"
73747
73875
  ]);
73748
73876
  if (untracked.status !== 0) return null;
73877
+ const untrackedFiles = splitNullSeparated(untracked.stdout);
73878
+ const untrackedRenamePaths = new Set(input.untrackedRenamePaths);
73879
+ const untrackedRenamedFiles = yield* findUntrackedRenames(input.directory, diffArgs, plan, untrackedFiles.filter((filePath) => untrackedRenamePaths.has(filePath)));
73880
+ const renamedFiles = {
73881
+ ...plan.renamedFiles,
73882
+ ...untrackedRenamedFiles
73883
+ };
73749
73884
  return {
73750
- ...plan,
73885
+ ...Object.keys(renamedFiles).length > 0 ? { renamedFiles } : {},
73751
73886
  baseFiles: plan.baseFiles,
73752
73887
  headFiles: plan.headFiles,
73753
- untrackedFiles: splitNullSeparated(untracked.stdout)
73888
+ untrackedFiles
73754
73889
  };
73755
73890
  }).pipe(catch_$1(() => succeed$2(null)), withSpan("Git.baselineDiffPlan"));
73756
73891
  },
@@ -74447,6 +74582,7 @@ const resolveUserPlugins = (specs, configSourceDirectory) => {
74447
74582
  }
74448
74583
  return resolved;
74449
74584
  };
74585
+ const REACT_COMPILER_BRIDGE_RULE_BY_KEY = new Map(REACT_COMPILER_BRIDGE_RULES.map((bridgeRule) => [bridgeRule.key, bridgeRule]));
74450
74586
  const resolveSettingsRootDirectory = (rootDirectory) => {
74451
74587
  if (!fs$1$2.existsSync(rootDirectory)) return rootDirectory;
74452
74588
  return fs$1$2.realpathSync(rootDirectory);
@@ -74484,8 +74620,10 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
74484
74620
  };
74485
74621
  const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
74486
74622
  const hasIncludedTags = includedTags.size > 0;
74487
- const reactHooksJsPlugin = disableReactHooksJsPlugin || ruleSelection === "sidecar" || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
74488
- const reactCompilerRules = reactHooksJsPlugin ? applyRuleSeverityControls(filterRulesToAvailable(REACT_COMPILER_RULES, "react-hooks-js", reactHooksJsPlugin.availableRuleNames), severityControls) : {};
74623
+ const resolvedReactHooksJsPlugin = disableReactHooksJsPlugin || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
74624
+ const reactHooksJsPlugin = ruleSelection === "sidecar" ? null : resolvedReactHooksJsPlugin;
74625
+ const reactCompilerRuleSeverities = resolvedReactHooksJsPlugin ? applyRuleSeverityControls(filterRulesToAvailable(REACT_COMPILER_RULES, "react-hooks-js", resolvedReactHooksJsPlugin.availableRuleNames), severityControls) : {};
74626
+ const reactCompilerRules = reactHooksJsPlugin ? reactCompilerRuleSeverities : {};
74489
74627
  const jsPlugins = [];
74490
74628
  if (reactHooksJsPlugin) jsPlugins.push(reactHooksJsPlugin.entry);
74491
74629
  const capabilities = getCapabilities(project);
@@ -74501,6 +74639,13 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
74501
74639
  if (ruleSelection === "sidecar" && !CROSS_FILE_RULE_IDS.has(registryEntry.id)) continue;
74502
74640
  if (ruleSelection === "sidecar" && sidecarRuleIdFilter !== void 0 && !sidecarRuleIdFilter.has(registryEntry.id)) continue;
74503
74641
  if (rule.isScanRule || rule.isProjectRule === true) continue;
74642
+ const bridgeRule = REACT_COMPILER_BRIDGE_RULE_BY_KEY.get(registryEntry.key);
74643
+ if (bridgeRule) {
74644
+ const compilerSeverity = reactCompilerRuleSeverities[bridgeRule.compilerKey];
74645
+ const bridgeOverride = resolveRuleSeverityOverride({ ruleKey: registryEntry.key }, severityControls);
74646
+ if (compilerSeverity !== void 0 && bridgeOverride !== "off") enabledReactDoctorRules[registryEntry.key] = compilerSeverity;
74647
+ continue;
74648
+ }
74504
74649
  if (registryEntry.id === "no-multi-component-file" && shouldUseExplicitNoMultiCompPolicy) continue;
74505
74650
  if (rule.framework !== "global" && !rule.requires) continue;
74506
74651
  if (!shouldEnableRule(rule.requires, rule.tags, capabilities, ignoredTags, rule.disabledWhen, includedTags)) continue;
@@ -75656,6 +75801,20 @@ const mapPreparedSourceLabels = (labels, preparedSourceMap) => {
75656
75801
  }
75657
75802
  return mappedLabels;
75658
75803
  };
75804
+ const formatOxlintRuleCode = (ruleKey) => {
75805
+ const separatorIndex = ruleKey.indexOf("/");
75806
+ return `${ruleKey.slice(0, separatorIndex)}(${ruleKey.slice(separatorIndex + 1)})`;
75807
+ };
75808
+ const bridgeRuleByCode = new Map(REACT_COMPILER_BRIDGE_RULES.map((bridgeRule) => [formatOxlintRuleCode(bridgeRule.key), bridgeRule]));
75809
+ const bridgeReactCompilerDiagnostic = (diagnostic) => {
75810
+ const bridgeRule = bridgeRuleByCode.get(diagnostic.code);
75811
+ if (!bridgeRule) return diagnostic;
75812
+ return {
75813
+ ...diagnostic,
75814
+ code: formatOxlintRuleCode(bridgeRule.compilerKey),
75815
+ url: bridgeRule.compilerUrl
75816
+ };
75817
+ };
75659
75818
  const REACT_MODULE_SOURCE = "react";
75660
75819
  const REQUIRE_IDENTIFIER = "require";
75661
75820
  const USE_IDENTIFIER = "use";
@@ -76304,8 +76463,9 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
76304
76463
  return minified;
76305
76464
  };
76306
76465
  const readContextRanges = createDiagnosticContextReader(diagnosticContextDirectory);
76307
- return suppressMemoizationInBailedOutFunctions(parsed.diagnostics.flatMap((rawDiagnostic) => {
76308
- if (!isMappableOxlintDiagnostic(rawDiagnostic)) return [];
76466
+ return suppressMemoizationInBailedOutFunctions(parsed.diagnostics.flatMap((unbridgedDiagnostic) => {
76467
+ if (!isMappableOxlintDiagnostic(unbridgedDiagnostic)) return [];
76468
+ const rawDiagnostic = bridgeReactCompilerDiagnostic(unbridgedDiagnostic);
76309
76469
  const { plugin, rule } = parseRuleCode(rawDiagnostic.code);
76310
76470
  const primarySpan = rawDiagnostic.labels[0]?.span;
76311
76471
  const contextRanges = diagnosticContextDirectory && plugin === "react-doctor" && primarySpan ? readContextRanges({
@@ -79590,4 +79750,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79590
79750
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79591
79751
 
79592
79752
  //# sourceMappingURL=index.js.map
79593
- //# debugId=d356e1ea-1a16-578e-8be0-09d7150023aa
79753
+ //# debugId=e8ba25d7-6b3b-5fe8-b422-f25f05dcdfb3
@@ -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]="b9a2ff62-f1a0-526c-9570-7fbe67ba4c46")}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-DmoCNSTH.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-DNEy6bSq.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-DvbGjRwp.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-D3ZuATVK.js";
7
- import { t as reportErrorToSentry } from "./report-error-Cztcdmdr.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]="fc168c8f-ad46-5d7b-b26e-471ec95c97ab")}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-C7tJ1mDM.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-CoAVbFA7.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-CKzWxuvY.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-2xc_0GiE.js";
7
+ import { t as reportErrorToSentry } from "./report-error-Cs67Olmw.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-DO5zpwvT.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-S0j6X7Y5.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-gOua6IWZ.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-1uKi8Vum.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-Bx_UscX4.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-CQyTgU7u.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-Cmu00m9d.js";
16
- import { t as readObjectFile } from "./read-object-file-B-5O6DB5.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-BaGcAM3X.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CZon-WS2.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CjeJFWT1.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-BuWNOiPd.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-BHnywF2O.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-CzcQyml2.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-DmlCVpm5.js";
16
+ import { t as readObjectFile } from "./read-object-file-BdUmsqGr.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";
@@ -1371,7 +1371,7 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
1371
1371
  else comparisonBaseRef = diffInfo.diffBaseRef ?? await resolveMergeBaseRef(resolvedDirectory, diffInfo.baseBranch);
1372
1372
  const baselineRef = scope === "changed" && !savedBaseline ? comparisonBaseRef : null;
1373
1373
  const comparisonPlanRef = baselineRef ?? (savedBaseline?.schemaVersion === 3 ? savedBaseline.sourceRevision : void 0);
1374
- const baselineDiffPlan = comparisonPlanRef ? await getBaselineDiffPlan(resolvedDirectory, comparisonPlanRef) : null;
1374
+ const baselineDiffPlan = comparisonPlanRef ? await getBaselineDiffPlan(resolvedDirectory, comparisonPlanRef, includeUntracked ? diffInfo?.changedFiles : void 0) : null;
1375
1375
  const linesBaseRef = diffInfo?.isCurrentChanges ? "HEAD" : comparisonBaseRef;
1376
1376
  const changedLineRanges = (scope === "lines" || scope === "contextual") && diffInfo !== null && (diffInfo.isCurrentChanges || linesBaseRef !== null) && diffInfo !== null ? await getChangedLineRanges({
1377
1377
  directory: resolvedDirectory,
@@ -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-BBiM_EKf.js.map
1532
- //# debugId=b9a2ff62-f1a0-526c-9570-7fbe67ba4c46
1531
+ //# sourceMappingURL=inspect-COQ4Q4f0.js.map
1532
+ //# debugId=fc168c8f-ad46-5d7b-b26e-471ec95c97ab
@@ -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]="b4873492-14cf-557b-977a-a457b980df12")}catch(e){}}();
3
- import { u as METRIC } from "./constants-DmoCNSTH.js";
4
- import { Tn as runSync, t as recordCount } from "./record-metric-DNEy6bSq.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-DvbGjRwp.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-D3ZuATVK.js";
7
- import { t as reportErrorToSentry } from "./report-error-Cztcdmdr.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-BkV-uekY.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-Cmu00m9d.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]="b4c96ed5-cf8d-5529-a4c0-0274f99de9dc")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-C7tJ1mDM.js";
4
+ import { Tn as runSync, t as recordCount } from "./record-metric-CoAVbFA7.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-CKzWxuvY.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-2xc_0GiE.js";
7
+ import { t as reportErrorToSentry } from "./report-error-Cs67Olmw.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-BGsZdujD.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-DmlCVpm5.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-4Ih3r8NL.js.map
34
- //# debugId=b4873492-14cf-557b-977a-a457b980df12
33
+ //# sourceMappingURL=install-C-ydPjDr.js.map
34
+ //# debugId=b4c96ed5-cf8d-5529-a4c0-0274f99de9dc
@@ -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]="06ac86b0-fd32-50cf-a819-92152c36c713")}catch(e){}}();
3
- import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-DmoCNSTH.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-DNEy6bSq.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]="b423e51b-71bf-5ab3-bbf7-f6ef5019d6a5")}catch(e){}}();
3
+ import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-C7tJ1mDM.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-CoAVbFA7.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-DO5zpwvT.js.map
2822
- //# debugId=06ac86b0-fd32-50cf-a819-92152c36c713
2821
+ //# sourceMappingURL=install-doctor-script-BaGcAM3X.js.map
2822
+ //# debugId=b423e51b-71bf-5ab3-bbf7-f6ef5019d6a5
@@ -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]="eed0a840-eeb9-5d61-b2e5-5a93e3e0a029")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-DmoCNSTH.js";
4
- import { _t as findGitRepositoryRoot } from "./record-metric-DNEy6bSq.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]="34934ab2-fd79-5058-99da-db46411fbf3d")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-C7tJ1mDM.js";
4
+ import { _t as findGitRepositoryRoot } from "./record-metric-CoAVbFA7.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-DO5zpwvT.js";
6
+ import { N as cliLogger } from "./install-doctor-script-BaGcAM3X.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-S0j6X7Y5.js.map
285
- //# debugId=eed0a840-eeb9-5d61-b2e5-5a93e3e0a029
284
+ //# sourceMappingURL=install-github-workflow-CZon-WS2.js.map
285
+ //# debugId=34934ab2-fd79-5058-99da-db46411fbf3d
@@ -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]="7620392c-3304-5d09-a91c-057927fc2fdf")}catch(e){}}();
3
- import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-DmoCNSTH.js";
4
- import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-DNEy6bSq.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-DO5zpwvT.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-S0j6X7Y5.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-1uKi8Vum.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-CQyTgU7u.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]="7d3743cb-d642-5fa7-9b01-8e8a2c075b5a")}catch(e){}}();
3
+ import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-C7tJ1mDM.js";
4
+ import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-CoAVbFA7.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-BaGcAM3X.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-CZon-WS2.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-BuWNOiPd.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-CzcQyml2.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-Cmu00m9d.js.map
1160
- //# debugId=7620392c-3304-5d09-a91c-057927fc2fdf
1159
+ //# sourceMappingURL=install-react-doctor-DmlCVpm5.js.map
1160
+ //# debugId=7d3743cb-d642-5fa7-9b01-8e8a2c075b5a
@@ -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]="788c2b5c-0588-5d3d-b700-97bd3d35d387")}catch(e){}}();
3
- import { a as CACHE_DISABLED_VALUES } from "./constants-DmoCNSTH.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]="f87bbdab-695f-51c2-8e55-e6c01aa49627")}catch(e){}}();
3
+ import { a as CACHE_DISABLED_VALUES } from "./constants-C7tJ1mDM.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-DP6qPu2_.js.map
10
- //# debugId=788c2b5c-0588-5d3d-b700-97bd3d35d387
9
+ //# sourceMappingURL=is-cache-globally-disabled-CKGkF0mF.js.map
10
+ //# debugId=f87bbdab-695f-51c2-8e55-e6c01aa49627
@@ -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]="55c727ce-0c68-595f-9114-f9068957f9f7")}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]="2463b2a2-2639-5be5-a1f8-5d4ffeb7a0c2")}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-DmoCNSTH.js";
5
- import { t as recordCount } from "./record-metric-DNEy6bSq.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-hy64aJY1.js";
4
+ import { u as METRIC } from "./constants-C7tJ1mDM.js";
5
+ import { t as recordCount } from "./record-metric-CoAVbFA7.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-vYLrBViR.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-9JxSdCe_.js.map
25874
- //# debugId=55c727ce-0c68-595f-9114-f9068957f9f7
25873
+ //# sourceMappingURL=jsx-runtime-CKBFKfTi.js.map
25874
+ //# debugId=2463b2a2-2639-5be5-a1f8-5d4ffeb7a0c2
@@ -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]="18fede07-8c62-5e41-8d92-75fdeff81ea2")}catch(e){}}();
3
- import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-DNEy6bSq.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]="6ccf1d75-c658-5dfd-ab69-a541b5dbae06")}catch(e){}}();
3
+ import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-CoAVbFA7.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-BkV-uekY.js.map
22
- //# debugId=18fede07-8c62-5e41-8d92-75fdeff81ea2
21
+ //# sourceMappingURL=print-branded-header-BGsZdujD.js.map
22
+ //# debugId=6ccf1d75-c658-5dfd-ab69-a541b5dbae06
@@ -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]="85f28bec-8a21-59c8-b02c-773d13e1af1b")}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]="b7eabb7f-9cb8-540b-b24a-453fd9a5296f")}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-pNuKAmN_.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-9JxSdCe_.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-B0Urg1hb.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-CKBFKfTi.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-DONr_PIK.js.map
240
- //# debugId=85f28bec-8a21-59c8-b02c-773d13e1af1b
239
+ //# sourceMappingURL=prompt-runtime-scan-url-0fTp6DLR.js.map
240
+ //# debugId=b7eabb7f-9cb8-540b-b24a-453fd9a5296f
@@ -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]="13da2804-ec80-5d5a-a6f7-fc5fcea6f3b4")}catch(e){}}();
3
- import { Gn as isPlainObject } from "./record-metric-DNEy6bSq.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]="910ca455-7073-586b-b6cf-6a8e8f01b839")}catch(e){}}();
3
+ import { Gn as isPlainObject } from "./record-metric-CoAVbFA7.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-B-5O6DB5.js.map
24
- //# debugId=13da2804-ec80-5d5a-a6f7-fc5fcea6f3b4
23
+ //# sourceMappingURL=read-object-file-BdUmsqGr.js.map
24
+ //# debugId=910ca455-7073-586b-b6cf-6a8e8f01b839