react-doctor 0.9.12-dev.013f737 → 0.9.12-dev.025d69d

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 (34) hide show
  1. package/dist/{build-section-divider-CU-16tRj.js → build-section-divider-Rtaiowhy.js} +7 -7
  2. package/dist/{ci-Dh7pP7KY.js → ci-BB3u5Gt7.js} +12 -12
  3. package/dist/cli.js +24 -24
  4. package/dist/{design-BzrSnwUm.js → design-DndYvifI.js} +4 -4
  5. package/dist/{exit-gracefully-D6bYEaJY.js → exit-gracefully-DShLWQuA.js} +6 -6
  6. package/dist/{handle-error-B-sefMQJ.js → handle-error-D1wDDJF-.js} +5 -5
  7. package/dist/index.js +202 -92
  8. package/dist/{inspect-B91jqgDd.js → inspect-FuGxonlI.js} +16 -16
  9. package/dist/{install-DwdDJZLo.js → install-DMK7JRVX.js} +9 -9
  10. package/dist/{install-doctor-script-C_02th1a.js → install-doctor-script-JE3JnnQc.js} +4 -4
  11. package/dist/{install-github-workflow-CtrzHuoG.js → install-github-workflow-BdY3qY2f.js} +9 -5
  12. package/dist/{install-react-doctor-Bxmp24zo.js → install-react-doctor-BMn0_WV6.js} +8 -8
  13. package/dist/{jsx-runtime-DvQYHYIV.js → jsx-runtime-pWsmwZGj.js} +5 -5
  14. package/dist/{print-branded-header-ZI6bzOzV.js → print-branded-header-BmI9tLH6.js} +4 -4
  15. package/dist/project-analysis-worker.js +43 -37
  16. package/dist/{prompt-runtime-scan-url-E76H6vtX.js → prompt-runtime-scan-url-BfBBYAfw.js} +5 -5
  17. package/dist/{read-object-file-DwgF3AUW.js → read-object-file-CRpKojJA.js} +4 -4
  18. package/dist/{record-metric-J1L5BmaF.js → record-metric-BM82PBSe.js} +198 -87
  19. package/dist/{report-error-CGlDARUr.js → report-error-CZHQUNh4.js} +5 -5
  20. package/dist/{report-workflow-result-BEhF-Fk5.js → report-workflow-result-xEGmAMA7.js} +5 -5
  21. package/dist/{resolve-scope-BryzWK4p.js → resolve-scope-Bnf4Y4EW.js} +6 -6
  22. package/dist/{rules-148RYdKo.js → rules-DzOjQMX6.js} +6 -6
  23. package/dist/{run-scan-app-YPqscslC.js → run-scan-app-BV3v34-X.js} +15 -14
  24. package/dist/{runtime-scan-DxEqnav4.js → runtime-scan-B85-DJZM.js} +9 -9
  25. package/dist/{sanitize-runtime-url-Dy4tyhb1.js → sanitize-runtime-url-CPjeveTJ.js} +4 -4
  26. package/dist/{scan-DjBH5dqT.js → scan-DuP6gdzt.js} +9 -9
  27. package/dist/{should-fail-scan-gate-Nw22UN5m.js → should-fail-scan-gate-DXLurKbC.js} +11 -11
  28. package/dist/{should-skip-prompts-C2oc3T4l.js → should-skip-prompts-CQyO96OW.js} +4 -4
  29. package/dist/{should-use-tui-BSvLC2-t.js → should-use-tui-CNPwNNtA.js} +4 -4
  30. package/dist/{telemetry-runtime-DlBJxPXW.js → telemetry-runtime-DbSLLSa0.js} +4 -4
  31. package/dist/{version-wYwu6AvJ.js → version-Zw_S1mCX.js} +4 -4
  32. package/dist/{why-CmDRbdLA.js → why-B-WcOS0C.js} +4 -4
  33. package/dist/{with-run-span--LC47bQS.js → with-run-span-CVyFHX3Z.js} +5 -5
  34. package/package.json +2 -2
@@ -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]="befcac15-25f6-51a3-810d-f5f4ced05ef8")}catch(e){}}();
3
- import { An as gen, Kt as highlighter, Tn as log, _ as VERSION } from "./record-metric-J1L5BmaF.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]="cdaa65e0-c5af-5efa-9164-6d3f59639782")}catch(e){}}();
3
+ import { An as gen, Kt as highlighter, Tn as log, _ as VERSION } from "./record-metric-BM82PBSe.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-ZI6bzOzV.js.map
22
- //# debugId=befcac15-25f6-51a3-810d-f5f4ced05ef8
21
+ //# sourceMappingURL=print-branded-header-BmI9tLH6.js.map
22
+ //# debugId=cdaa65e0-c5af-5efa-9164-6d3f59639782
@@ -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]="13484676-e0db-5ad1-b676-b9c46d789a1a")}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]="98b361a0-3811-59d7-bcea-c6d79bbebdbd")}catch(e){}}();
3
3
  import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { n as require_picomatch$2, t as require_semver } from "./semver-DFtnEmN-.js";
5
5
  import { builtinModules } from "node:module";
@@ -9,12 +9,12 @@ import path, { basename, dirname, extname, isAbsolute, join, parse, posix, relat
9
9
  import * as fs$1 from "node:fs";
10
10
  import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
11
11
  import ts from "typescript";
12
+ import { parseSync } from "oxc-parser";
12
13
  import { ResolverFactory } from "oxc-resolver";
13
14
  import { devNull } from "node:os";
14
15
  import { parseJSONC, parseTOML, parseYAML } from "confbox";
15
16
  import { readFile } from "node:fs/promises";
16
17
  import { parse as parse$1 } from "@astrojs/compiler/sync";
17
- import { parseSync } from "oxc-parser";
18
18
  //#region ../core/src/project-analysis/constants.ts
19
19
  const DEFAULT_EXTENSIONS = [
20
20
  ".ts",
@@ -46082,47 +46082,53 @@ const collectPackageLockPackageMetadata = (searchRoots, resolutionDirectory, dec
46082
46082
  return metadataByPackageName;
46083
46083
  };
46084
46084
  //#endregion
46085
- //#region ../core/src/project-analysis/utils/collect-static-module-package-names.ts
46086
- const collectStaticModulePackageNames = (sourceText) => {
46087
- const parsedModule = parseSync("package-reference.tsx", sourceText, { sourceType: "module" });
46088
- const packageNames = /* @__PURE__ */ new Set();
46089
- const addSpecifier = (specifier) => {
46090
- const packageName = extractPackageName(specifier);
46091
- if (packageName) packageNames.add(packageName);
46092
- };
46093
- const getStaticSpecifier = (value) => {
46094
- if (!isOxcAstNode(value)) return void 0;
46095
- if (typeof value.value === "string") return value.value;
46096
- if (value.type === "TemplateLiteral" && Array.isArray(value.expressions) && value.expressions.length === 0 && Array.isArray(value.quasis) && isOxcAstNode(value.quasis[0]) && value.quasis[0].value && typeof value.quasis[0].value === "object" && "cooked" in value.quasis[0].value && typeof value.quasis[0].value.cooked === "string") return value.quasis[0].value.cooked;
46085
+ //#region ../core/src/project-analysis/utils/collect-static-module-specifiers.ts
46086
+ const getStaticModuleSpecifier = (value) => {
46087
+ if (!isOxcAstNode(value)) return void 0;
46088
+ if (typeof value.value === "string") return value.value;
46089
+ if (value.type === "TemplateLiteral" && Array.isArray(value.expressions) && value.expressions.length === 0 && Array.isArray(value.quasis) && isOxcAstNode(value.quasis[0]) && value.quasis[0].value && typeof value.quasis[0].value === "object" && "cooked" in value.quasis[0].value && typeof value.quasis[0].value.cooked === "string") return value.quasis[0].value.cooked;
46090
+ };
46091
+ const collectStaticModuleSpecifiers = (sourceText, options = {}) => {
46092
+ const { filePath = "module.tsx", includeTypeOnly = true } = options;
46093
+ const parsedModule = parseSync(filePath, sourceText, { sourceType: "unambiguous" });
46094
+ const moduleSpecifiers = /* @__PURE__ */ new Set();
46095
+ const addSpecifier = (value) => {
46096
+ const moduleSpecifier = getStaticModuleSpecifier(value);
46097
+ if (moduleSpecifier) moduleSpecifiers.add(moduleSpecifier);
46097
46098
  };
46098
- for (const staticImport of parsedModule.module.staticImports) addSpecifier(staticImport.moduleRequest.value);
46099
- for (const staticExport of parsedModule.module.staticExports) for (const entry of staticExport.entries) if (entry.moduleRequest) addSpecifier(entry.moduleRequest.value);
46100
- const visitNode = (value, isInTypeScriptModuleBlock = false) => {
46099
+ const visitNode = (value) => {
46101
46100
  if (Array.isArray(value)) {
46102
- for (const child of value) visitNode(child, isInTypeScriptModuleBlock);
46101
+ for (const child of value) visitNode(child);
46103
46102
  return;
46104
46103
  }
46105
46104
  if (!isOxcAstNode(value)) return;
46106
- if (isInTypeScriptModuleBlock && (value.type === "ImportDeclaration" || value.type === "ExportNamedDeclaration" || value.type === "ExportAllDeclaration")) {
46107
- const sourceValue = getStaticSpecifier(value.source);
46108
- if (sourceValue) addSpecifier(sourceValue);
46109
- }
46110
- if (value.type === "ImportExpression" || value.type === "TSImportType") {
46111
- const sourceValue = getStaticSpecifier(value.source);
46112
- if (sourceValue) addSpecifier(sourceValue);
46113
- }
46114
- if (value.type === "TSExternalModuleReference") {
46115
- const expressionValue = getStaticSpecifier(value.expression);
46116
- if (expressionValue) addSpecifier(expressionValue);
46117
- }
46118
- if (value.type === "CallExpression" && isOxcAstNode(value.callee) && value.callee.type === "Identifier" && value.callee.name === "require" && Array.isArray(value.arguments) && value.arguments.length > 0) {
46119
- const argumentValue = getStaticSpecifier(value.arguments[0]);
46120
- if (argumentValue) addSpecifier(argumentValue);
46121
- }
46122
- const childIsInTypeScriptModuleBlock = isInTypeScriptModuleBlock || value.type === "TSModuleBlock";
46123
- for (const child of Object.values(value)) visitNode(child, childIsInTypeScriptModuleBlock);
46105
+ if (value.type === "ImportDeclaration") {
46106
+ const specifiers = Array.isArray(value.specifiers) ? value.specifiers : [];
46107
+ const hasRuntimeSpecifier = specifiers.some((specifier) => !isOxcAstNode(specifier) || specifier.importKind !== "type");
46108
+ if (includeTypeOnly || value.importKind !== "type" && (specifiers.length === 0 || hasRuntimeSpecifier)) addSpecifier(value.source);
46109
+ } else if (value.type === "ExportNamedDeclaration") {
46110
+ const specifiers = Array.isArray(value.specifiers) ? value.specifiers : [];
46111
+ const hasRuntimeSpecifier = specifiers.some((specifier) => !isOxcAstNode(specifier) || specifier.exportKind !== "type");
46112
+ if (includeTypeOnly || value.exportKind !== "type" && (specifiers.length === 0 || hasRuntimeSpecifier)) addSpecifier(value.source);
46113
+ } else if (value.type === "ExportAllDeclaration" || value.type === "ImportExpression") {
46114
+ if (includeTypeOnly || value.exportKind !== "type") addSpecifier(value.source);
46115
+ } else if (value.type === "TSImportType") {
46116
+ if (includeTypeOnly) addSpecifier(value.source);
46117
+ } else if (value.type === "TSExternalModuleReference") addSpecifier(value.expression);
46118
+ else if (value.type === "CallExpression" && isOxcAstNode(value.callee) && value.callee.type === "Identifier" && value.callee.name === "require" && Array.isArray(value.arguments) && value.arguments.length > 0) addSpecifier(value.arguments[0]);
46119
+ for (const child of Object.values(value)) visitNode(child);
46124
46120
  };
46125
46121
  visitNode(parsedModule.program);
46122
+ return moduleSpecifiers;
46123
+ };
46124
+ //#endregion
46125
+ //#region ../core/src/project-analysis/utils/collect-static-module-package-names.ts
46126
+ const collectStaticModulePackageNames = (sourceText) => {
46127
+ const packageNames = /* @__PURE__ */ new Set();
46128
+ for (const specifier of collectStaticModuleSpecifiers(sourceText, { filePath: "package-reference.tsx" })) {
46129
+ const packageName = extractPackageName(specifier);
46130
+ if (packageName) packageNames.add(packageName);
46131
+ }
46126
46132
  return packageNames;
46127
46133
  };
46128
46134
  //#endregion
@@ -51892,4 +51898,4 @@ startProjectAnalysisWorker();
51892
51898
  export {};
51893
51899
 
51894
51900
  //# sourceMappingURL=project-analysis-worker.js.map
51895
- //# debugId=13484676-e0db-5ad1-b676-b9c46d789a1a
51901
+ //# debugId=98b361a0-3811-59d7-bcea-c6d79bbebdbd
@@ -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]="6b84a6d6-4798-5402-8522-3fbbe6a083f5")}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]="145546ff-ff5e-537e-8843-0f0d16536520")}catch(e){}}();
3
3
  import { t as unrefStdin } from "./unref-stdin-BKT_s38a.js";
4
- import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-Dy4tyhb1.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-DvQYHYIV.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-CPjeveTJ.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-pWsmwZGj.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-E76H6vtX.js.map
240
- //# debugId=6b84a6d6-4798-5402-8522-3fbbe6a083f5
239
+ //# sourceMappingURL=prompt-runtime-scan-url-BfBBYAfw.js.map
240
+ //# debugId=145546ff-ff5e-537e-8843-0f0d16536520
@@ -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]="aa6ff19c-a92a-5444-be45-5e996083c791")}catch(e){}}();
3
- import { Sr as isPlainObject } from "./record-metric-J1L5BmaF.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]="073a8ca5-7250-5eef-b59d-e611a7f75e50")}catch(e){}}();
3
+ import { Sr as isPlainObject } from "./record-metric-BM82PBSe.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-DwgF3AUW.js.map
24
- //# debugId=aa6ff19c-a92a-5444-be45-5e996083c791
23
+ //# sourceMappingURL=read-object-file-CRpKojJA.js.map
24
+ //# debugId=073a8ca5-7250-5eef-b59d-e611a7f75e50
@@ -1,15 +1,16 @@
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]="a90f83bf-1935-5b0c-ae90-d6b5fc2e04b5")}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]="42d5ab6f-e00e-569a-b69b-c175748bceb3")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { n as require_picomatch, t as require_semver } from "./semver-DFtnEmN-.js";
5
5
  import { createRequire } from "node:module";
6
6
  import * as NodeChildProcess from "node:child_process";
7
7
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
8
8
  import * as path$1$1 from "node:path";
9
- import path from "node:path";
9
+ import path, { join, posix } from "node:path";
10
10
  import * as fs$1$3 from "node:fs";
11
- import fs from "node:fs";
11
+ import fs, { existsSync } from "node:fs";
12
12
  import ts from "typescript";
13
+ import { parseSync } from "oxc-parser";
13
14
  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, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
14
15
  import * as Crypto from "node:crypto";
15
16
  import crypto, { createHash, randomUUID } from "node:crypto";
@@ -19,14 +20,14 @@ import { fileURLToPath } from "node:url";
19
20
  import * as OS from "node:os";
20
21
  import os from "node:os";
21
22
  import { createJiti } from "jiti";
22
- import { parseJSON5 } from "confbox";
23
+ import { parseJSON5, parseJSONC } from "confbox";
23
24
  import * as fs$1 from "node:fs/promises";
24
25
  import { PassThrough } from "node:stream";
25
26
  import { convertToTSX } from "@astrojs/compiler/sync";
26
27
  import { STATUS_CODES } from "node:http";
27
28
  import { gzipSync } from "node:zlib";
28
29
  import { performance as performance$1 } from "node:perf_hooks";
29
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-C1E7dTEQ.js
30
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-hOS9iAJg.js
30
31
  var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
31
32
  const HTML_FILE_PATTERN = /\.html$/i;
32
33
  const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
@@ -571,6 +572,74 @@ const compileGlobPatternsLenient = (patterns, onInvalid) => {
571
572
  }
572
573
  return compiled;
573
574
  };
575
+ const isOxcAstNode = (value) => Boolean(value) && typeof value === "object" && typeof value.type === "string";
576
+ const getStaticModuleSpecifier = (value) => {
577
+ if (!isOxcAstNode(value)) return void 0;
578
+ if (typeof value.value === "string") return value.value;
579
+ if (value.type === "TemplateLiteral" && Array.isArray(value.expressions) && value.expressions.length === 0 && Array.isArray(value.quasis) && isOxcAstNode(value.quasis[0]) && value.quasis[0].value && typeof value.quasis[0].value === "object" && "cooked" in value.quasis[0].value && typeof value.quasis[0].value.cooked === "string") return value.quasis[0].value.cooked;
580
+ };
581
+ const collectStaticModuleSpecifiers = (sourceText, options = {}) => {
582
+ const { filePath = "module.tsx", includeTypeOnly = true } = options;
583
+ const parsedModule = parseSync(filePath, sourceText, { sourceType: "unambiguous" });
584
+ const moduleSpecifiers = /* @__PURE__ */ new Set();
585
+ const addSpecifier = (value) => {
586
+ const moduleSpecifier = getStaticModuleSpecifier(value);
587
+ if (moduleSpecifier) moduleSpecifiers.add(moduleSpecifier);
588
+ };
589
+ const visitNode = (value) => {
590
+ if (Array.isArray(value)) {
591
+ for (const child of value) visitNode(child);
592
+ return;
593
+ }
594
+ if (!isOxcAstNode(value)) return;
595
+ if (value.type === "ImportDeclaration") {
596
+ const specifiers = Array.isArray(value.specifiers) ? value.specifiers : [];
597
+ const hasRuntimeSpecifier = specifiers.some((specifier) => !isOxcAstNode(specifier) || specifier.importKind !== "type");
598
+ if (includeTypeOnly || value.importKind !== "type" && (specifiers.length === 0 || hasRuntimeSpecifier)) addSpecifier(value.source);
599
+ } else if (value.type === "ExportNamedDeclaration") {
600
+ const specifiers = Array.isArray(value.specifiers) ? value.specifiers : [];
601
+ const hasRuntimeSpecifier = specifiers.some((specifier) => !isOxcAstNode(specifier) || specifier.exportKind !== "type");
602
+ if (includeTypeOnly || value.exportKind !== "type" && (specifiers.length === 0 || hasRuntimeSpecifier)) addSpecifier(value.source);
603
+ } else if (value.type === "ExportAllDeclaration" || value.type === "ImportExpression") {
604
+ if (includeTypeOnly || value.exportKind !== "type") addSpecifier(value.source);
605
+ } else if (value.type === "TSImportType") {
606
+ if (includeTypeOnly) addSpecifier(value.source);
607
+ } else if (value.type === "TSExternalModuleReference") addSpecifier(value.expression);
608
+ else if (value.type === "CallExpression" && isOxcAstNode(value.callee) && value.callee.type === "Identifier" && value.callee.name === "require" && Array.isArray(value.arguments) && value.arguments.length > 0) addSpecifier(value.arguments[0]);
609
+ for (const child of Object.values(value)) visitNode(child);
610
+ };
611
+ visitNode(parsedModule.program);
612
+ return moduleSpecifiers;
613
+ };
614
+ const toPosixPath = (filePath) => filePath.replace(/\\/g, "/");
615
+ const isPathInsideDirectoryOrEqual = (candidatePath, directoryPath) => {
616
+ const normalizedCandidatePath = posix.normalize(toPosixPath(candidatePath));
617
+ const normalizedDirectoryPath = posix.normalize(toPosixPath(directoryPath));
618
+ const relativePath = posix.relative(normalizedDirectoryPath, normalizedCandidatePath);
619
+ return relativePath === "" || relativePath !== ".." && !relativePath.startsWith("../") && !posix.isAbsolute(relativePath);
620
+ };
621
+ const RESOLVABLE_EXTENSIONS = [
622
+ ".ts",
623
+ ".tsx",
624
+ ".js",
625
+ ".jsx",
626
+ ".mjs",
627
+ ".mts",
628
+ ".cjs",
629
+ ".cts",
630
+ ".es6"
631
+ ];
632
+ const resolveEntryWithExtensions = (basePath) => {
633
+ if (existsSync(basePath)) return basePath;
634
+ for (const extension of RESOLVABLE_EXTENSIONS) {
635
+ const withExtension = basePath + extension;
636
+ if (existsSync(withExtension)) return withExtension;
637
+ }
638
+ for (const extension of RESOLVABLE_EXTENSIONS) {
639
+ const indexCandidate = join(basePath, `index${extension}`);
640
+ if (existsSync(indexCandidate)) return indexCandidate;
641
+ }
642
+ };
574
643
  /**
575
644
  * Resolves a path to its canonical, symlink-free form, falling back to
576
645
  * the input when it cannot be realpath'd (broken symlink, permission
@@ -67851,6 +67920,28 @@ const checkExpoEnvLocalFiles = (context) => {
67851
67920
  help: `Add \`.env*.local\` to your .gitignore. If already committed, untrack with \`git rm --cached ${committedEnvFiles.join(" ")}\``
67852
67921
  })];
67853
67922
  };
67923
+ const JAVASCRIPT_MODULE_FILE_PATTERN = /\.[cm]?[jt]sx?$/;
67924
+ const hasStaticModuleSubpath = (rootDirectory, packageName) => {
67925
+ const packageSubpathPrefix = `${packageName}/`;
67926
+ for (const { absolutePath, name } of walkSourceTreeFiles(rootDirectory)) {
67927
+ if (!JAVASCRIPT_MODULE_FILE_PATTERN.test(name)) continue;
67928
+ let sourceText;
67929
+ try {
67930
+ sourceText = fs$1$3.readFileSync(absolutePath, "utf-8");
67931
+ } catch {
67932
+ continue;
67933
+ }
67934
+ if (!sourceText.includes(packageSubpathPrefix)) continue;
67935
+ let moduleSpecifiers;
67936
+ try {
67937
+ moduleSpecifiers = collectStaticModuleSpecifiers(sourceText, { filePath: absolutePath });
67938
+ } catch {
67939
+ continue;
67940
+ }
67941
+ for (const moduleSpecifier of moduleSpecifiers) if (moduleSpecifier.startsWith(packageSubpathPrefix)) return true;
67942
+ }
67943
+ return false;
67944
+ };
67854
67945
  const isExpoSdkAtLeast = (expoSdkMajor, minMajor) => expoSdkMajor !== null && expoSdkMajor >= minMajor;
67855
67946
  const UNIMODULES_HELP = "Remove every `@unimodules/*` and `react-native-unimodules` package — their functionality now lives in `expo-modules-core`. See https://expo.fyi/r/sdk-44-remove-unimodules";
67856
67947
  const FIREBASE_HELP = "Use the Firebase JS SDK or React Native Firebase directly. See https://expo.fyi/firebase-migration-guide";
@@ -67904,7 +67995,8 @@ const FLAGGED_DEPENDENCIES = [
67904
67995
  packageName: "@expo/metro-config",
67905
67996
  rule: "expo-no-redundant-dependency",
67906
67997
  message: "\"@expo/metro-config\" should not be a direct dependency. Expo pins the compatible Metro config, and a direct entry can drift to a version that breaks bundling",
67907
- help: "Remove `@expo/metro-config` and import `expo/metro-config` in your metro.config.js"
67998
+ help: "Remove `@expo/metro-config` and import `expo/metro-config` in your metro.config.js",
67999
+ skipWhenSubpathImported: true
67908
68000
  },
67909
68001
  {
67910
68002
  packageName: "@types/react-native",
@@ -67965,8 +68057,9 @@ const FLAGGED_DEPENDENCIES = [
67965
68057
  ];
67966
68058
  const checkExpoFlaggedDependencies = (context) => FLAGGED_DEPENDENCIES.filter((flaggedDependency) => {
67967
68059
  if (!context.directDependencyNames.has(flaggedDependency.packageName)) return false;
67968
- if (flaggedDependency.minSdkMajor === void 0) return true;
67969
- return isExpoSdkAtLeast(context.expoSdkMajor, flaggedDependency.minSdkMajor);
68060
+ if (flaggedDependency.minSdkMajor !== void 0 && !isExpoSdkAtLeast(context.expoSdkMajor, flaggedDependency.minSdkMajor)) return false;
68061
+ if (flaggedDependency.skipWhenSubpathImported && hasStaticModuleSubpath(context.rootDirectory, flaggedDependency.packageName)) return false;
68062
+ return true;
67970
68063
  }).map((flaggedDependency) => buildExpoDiagnostic({
67971
68064
  rule: flaggedDependency.rule,
67972
68065
  message: flaggedDependency.message,
@@ -68035,18 +68128,58 @@ const METRO_CONFIG_FILE_NAMES = [
68035
68128
  const EXPO_METRO_CONFIG_EXTEND_SIGNALS = [
68036
68129
  "expo/metro-config",
68037
68130
  "@sentry/react-native/metro",
68038
- "getSentryExpoConfig"
68131
+ "getSentryExpoConfig",
68132
+ "posthog-react-native/metro",
68133
+ "getPostHogExpoConfig"
68039
68134
  ];
68135
+ const resolveLocalMetroConfigModule = (moduleSpecifier, importingFilePath, rootDirectory) => {
68136
+ if (!moduleSpecifier.startsWith(".")) return void 0;
68137
+ const importedPath = path$1$1.resolve(path$1$1.dirname(importingFilePath), moduleSpecifier);
68138
+ const candidateBasePaths = [
68139
+ importedPath,
68140
+ importedPath.replace(/\.[cm]?js$/, ""),
68141
+ path$1$1.join(importedPath, "index")
68142
+ ];
68143
+ for (const candidateBasePath of candidateBasePaths) {
68144
+ const resolvedPath = resolveEntryWithExtensions(candidateBasePath);
68145
+ if (resolvedPath !== void 0 && isFile(resolvedPath) && isPathInsideDirectoryOrEqual(resolvedPath, rootDirectory)) return resolvedPath;
68146
+ }
68147
+ };
68148
+ const hasExpoMetroConfigSignal = (metroConfigPath, rootDirectory) => {
68149
+ const pendingFilePaths = [metroConfigPath];
68150
+ const visitedFilePaths = /* @__PURE__ */ new Set();
68151
+ while (pendingFilePaths.length > 0) {
68152
+ const currentFilePath = pendingFilePaths.pop();
68153
+ if (currentFilePath === void 0 || visitedFilePaths.has(currentFilePath)) continue;
68154
+ if (visitedFilePaths.size >= 100) return true;
68155
+ visitedFilePaths.add(currentFilePath);
68156
+ let contents;
68157
+ try {
68158
+ contents = fs$1$3.readFileSync(currentFilePath, "utf-8");
68159
+ } catch {
68160
+ return true;
68161
+ }
68162
+ if (EXPO_METRO_CONFIG_EXTEND_SIGNALS.some((signal) => contents.includes(signal))) return true;
68163
+ let moduleSpecifiers;
68164
+ try {
68165
+ moduleSpecifiers = collectStaticModuleSpecifiers(contents, {
68166
+ filePath: currentFilePath,
68167
+ includeTypeOnly: false
68168
+ });
68169
+ } catch {
68170
+ continue;
68171
+ }
68172
+ for (const moduleSpecifier of moduleSpecifiers) {
68173
+ const localModulePath = resolveLocalMetroConfigModule(moduleSpecifier, currentFilePath, rootDirectory);
68174
+ if (localModulePath !== void 0 && !visitedFilePaths.has(localModulePath)) pendingFilePaths.push(localModulePath);
68175
+ }
68176
+ }
68177
+ return false;
68178
+ };
68040
68179
  const checkExpoMetroConfig = (context) => {
68041
68180
  const metroConfigPath = METRO_CONFIG_FILE_NAMES.map((fileName) => path$1$1.join(context.rootDirectory, fileName)).find((candidatePath) => isFile(candidatePath));
68042
68181
  if (metroConfigPath === void 0) return [];
68043
- let contents;
68044
- try {
68045
- contents = fs$1$3.readFileSync(metroConfigPath, "utf-8");
68046
- } catch {
68047
- return [];
68048
- }
68049
- if (EXPO_METRO_CONFIG_EXTEND_SIGNALS.some((signal) => contents.includes(signal))) return [];
68182
+ if (hasExpoMetroConfigSignal(metroConfigPath, context.rootDirectory)) return [];
68050
68183
  return [buildExpoDiagnostic({
68051
68184
  rule: "expo-metro-config",
68052
68185
  filePath: path$1$1.basename(metroConfigPath),
@@ -71399,59 +71532,11 @@ const isLocalPathExtend = (entry) => {
71399
71532
  for (const prefix of EXTENDS_LOCAL_PATH_PREFIXES) if (entry.startsWith(prefix)) return true;
71400
71533
  return false;
71401
71534
  };
71402
- const stripJsoncComments = (raw) => {
71403
- let result = "";
71404
- let cursor = 0;
71405
- let inString = false;
71406
- let stringQuote = "";
71407
- while (cursor < raw.length) {
71408
- const character = raw[cursor];
71409
- const nextCharacter = raw[cursor + 1];
71410
- if (inString) {
71411
- result += character;
71412
- if (character === "\\" && cursor + 1 < raw.length) {
71413
- result += nextCharacter;
71414
- cursor += 2;
71415
- continue;
71416
- }
71417
- if (character === stringQuote) inString = false;
71418
- cursor += 1;
71419
- continue;
71420
- }
71421
- if (character === "\"" || character === "'") {
71422
- inString = true;
71423
- stringQuote = character;
71424
- result += character;
71425
- cursor += 1;
71426
- continue;
71427
- }
71428
- if (character === "/" && nextCharacter === "/") {
71429
- const lineEndIndex = raw.indexOf("\n", cursor);
71430
- cursor = lineEndIndex === -1 ? raw.length : lineEndIndex;
71431
- continue;
71432
- }
71433
- if (character === "/" && nextCharacter === "*") {
71434
- const blockEndIndex = raw.indexOf("*/", cursor + 2);
71435
- cursor = blockEndIndex === -1 ? raw.length : blockEndIndex + 2;
71436
- continue;
71437
- }
71438
- result += character;
71439
- cursor += 1;
71440
- }
71441
- return result;
71442
- };
71443
- const parseJsonOrJsonc = (raw) => {
71444
- try {
71445
- return JSON.parse(raw);
71446
- } catch {
71447
- return JSON.parse(stripJsoncComments(raw));
71448
- }
71449
- };
71450
71535
  const canOxlintExtendConfig = (configPath) => {
71451
71536
  if (!configPath.endsWith(".eslintrc.json")) return true;
71452
71537
  let parsed;
71453
71538
  try {
71454
- parsed = parseJsonOrJsonc(fs$1$3.readFileSync(configPath, "utf-8"));
71539
+ parsed = parseJSONC(fs$1$3.readFileSync(configPath, "utf-8"), { allowTrailingComma: true });
71455
71540
  } catch {
71456
71541
  return true;
71457
71542
  }
@@ -71560,6 +71645,25 @@ const detectUserLintConfigPaths = (rootDirectory) => {
71560
71645
  }
71561
71646
  return [];
71562
71647
  };
71648
+ const readAdoptedLintConfigSettings = (configPaths) => {
71649
+ const mergedSettings = /* @__PURE__ */ new Map();
71650
+ for (const configPath of configPaths) {
71651
+ let parsed;
71652
+ try {
71653
+ parsed = parseJSONC(fs$1$3.readFileSync(configPath, "utf-8"), { allowTrailingComma: true });
71654
+ } catch {
71655
+ continue;
71656
+ }
71657
+ if (!isPlainObject(parsed)) continue;
71658
+ const settings = parsed.settings;
71659
+ if (!isPlainObject(settings)) continue;
71660
+ for (const [pluginName, pluginSettings] of Object.entries(settings)) {
71661
+ if (pluginName === "react-doctor") continue;
71662
+ mergedSettings.set(pluginName, pluginSettings);
71663
+ }
71664
+ }
71665
+ return Object.fromEntries(mergedSettings);
71666
+ };
71563
71667
  const DISABLE_DIRECTIVE_PATTERN = /(eslint|oxlint)-disable/;
71564
71668
  const getBackupRootDirectory = (rootDirectory) => path$1$1.join(rootDirectory, ...DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS);
71565
71669
  const getBackupPath = (rootDirectory, absolutePath) => {
@@ -71956,7 +72060,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
71956
72060
  }
71957
72061
  return enabled;
71958
72062
  };
71959
- const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
72063
+ const createOxlintConfig = ({ pluginPath, 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 }) => {
71960
72064
  const hasIncludedTags = includedTags.size > 0;
71961
72065
  const reactHooksJsPlugin = disableReactHooksJsPlugin || ruleSelection === "sidecar" || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
71962
72066
  const reactCompilerRules = reactHooksJsPlugin ? applyRuleSeverityControls(filterRulesToAvailable(REACT_COMPILER_RULES, "react-hooks-js", reactHooksJsPlugin.availableRuleNames), severityControls) : {};
@@ -72011,23 +72115,26 @@ const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, exte
72011
72115
  },
72012
72116
  plugins: [],
72013
72117
  jsPlugins: [...jsPlugins, pluginPath],
72014
- settings: { "react-doctor": {
72015
- portedRuleMode: "curated",
72016
- framework: project.framework,
72017
- rootDirectory: settingsRootDirectory,
72018
- capabilities: [...capabilities].sort(),
72019
- ...runtimeGlobals && runtimeGlobals.length > 0 ? { runtimeGlobals: [...runtimeGlobals] } : {},
72020
- ...unpluginAutoImportGlobalScopes && unpluginAutoImportGlobalScopes.length > 0 ? {
72021
- unpluginAutoImportRootDirectories: [...new Set([settingsRootDirectory, project.rootDirectory])],
72022
- unpluginAutoImportGlobalScopes: unpluginAutoImportGlobalScopes.map((scope) => ({
72023
- directory: scope.directory,
72024
- names: [...scope.names]
72025
- }))
72026
- } : {},
72027
- ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
72028
- ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
72029
- ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
72030
- } },
72118
+ settings: {
72119
+ ...adoptedSettings,
72120
+ "react-doctor": {
72121
+ portedRuleMode: "curated",
72122
+ framework: project.framework,
72123
+ rootDirectory: settingsRootDirectory,
72124
+ capabilities: [...capabilities].sort(),
72125
+ ...runtimeGlobals && runtimeGlobals.length > 0 ? { runtimeGlobals: [...runtimeGlobals] } : {},
72126
+ ...unpluginAutoImportGlobalScopes && unpluginAutoImportGlobalScopes.length > 0 ? {
72127
+ unpluginAutoImportRootDirectories: [...new Set([settingsRootDirectory, project.rootDirectory])],
72128
+ unpluginAutoImportGlobalScopes: unpluginAutoImportGlobalScopes.map((scope) => ({
72129
+ directory: scope.directory,
72130
+ names: [...scope.names]
72131
+ }))
72132
+ } : {},
72133
+ ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
72134
+ ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
72135
+ ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
72136
+ }
72137
+ },
72031
72138
  rules: {
72032
72139
  ...reactCompilerRules,
72033
72140
  ...enabledReactDoctorRules,
@@ -74136,7 +74243,9 @@ const runOxlint = async (options) => {
74136
74243
  return [];
74137
74244
  }
74138
74245
  const pluginPath = resolvePluginPath();
74139
- const extendsPaths = (adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : []).filter(canOxlintExtendConfig);
74246
+ const detectedConfigPaths = adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : [];
74247
+ const extendsPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
74248
+ const adoptedSettings = detectedConfigPaths.length > 0 ? readAdoptedLintConfigSettings(detectedConfigPaths) : {};
74140
74249
  const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
74141
74250
  const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
74142
74251
  const configDirectory = fs$1$3.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
@@ -74198,6 +74307,7 @@ const runOxlint = async (options) => {
74198
74307
  serverAuthFunctionNames,
74199
74308
  projectIndexModuleSources,
74200
74309
  severityControls,
74310
+ adoptedSettings,
74201
74311
  userPlugins,
74202
74312
  disableReactHooksJsPlugin: overrides.disableReactHooksJsPlugin,
74203
74313
  ruleSelection: overrides.ruleSelection,
@@ -76609,6 +76719,7 @@ const METRIC = {
76609
76719
  tuiIssueStreamShown: "tui.issue_stream_shown",
76610
76720
  tuiProjectPathContextShown: "tui.project_path_context_shown",
76611
76721
  tuiProjectSelectShown: "tui.project_select_shown",
76722
+ tuiCiRecommendationShown: "tui.ci_recommendation_shown",
76612
76723
  tuiReportActionSelected: "tui.report_action_selected",
76613
76724
  tuiCancelled: "tui.cancelled",
76614
76725
  tuiScanInlineShown: "tui.scan_inline_shown",
@@ -76657,7 +76768,7 @@ const makeNoopConsole = () => ({
76657
76768
  });
76658
76769
  //#endregion
76659
76770
  //#region src/cli/utils/version.ts
76660
- const VERSION = "0.9.12-dev.013f737";
76771
+ const VERSION = "0.9.12-dev.025d69d";
76661
76772
  //#endregion
76662
76773
  //#region src/cli/utils/json-mode.ts
76663
76774
  let context = null;
@@ -77001,5 +77112,5 @@ const recordDistribution = (name, value, options = {}) => {
77001
77112
  //#endregion
77002
77113
  export { Linter as $, CANONICAL_DISCORD_URL as $n, layerObservability as $t, SCAN_RESULT_CACHE_FILENAME as A, gen as An, discoverSupportedSubprojects as At, isNonInteractiveEnvironment as B, sync as Bn, getDiffInfo as Bt, CI_TRUST_COMPANIES as C, error as Cn, messageFromUnknown as Cr, collectSourceFileCountsByDirectory as Ct, NANOSECONDS_PER_MILLISECOND as D, Diagnostic as Dn, createNodeReadFileLinesSync as Dt, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as E, warn$1 as En, countOptInProjectRuleSelections as Et, STAGED_FILES_TEMP_DIR_PREFIX as F, provide as Fn, formatErrorChain as Ft, isCiEnvironment as G, provide$2 as Gn, hashFileContents as Gt, isDebugFlagEnabled as H, void_ as Hn, groupBy as Ht, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as I, provideContext as In, formatReactDoctorError as It, Config as J, makeUnsafe$5 as Jn, isPathInsideDirectory as Jt, isCiOrCodingAgentEnvironment as K, succeed$3 as Kn, highlighter as Kt, TUI_REPORT_COMPACT_MAX_ROWS as L, provideService as Ln, getBaselineDiffPlan as Lt, SENTRY_DSN as M, map$3 as Mn, filterPathsOutsideDirectories as Mt, SENTRY_FLUSH_TIMEOUT_MS as N, orElseSucceed as Nn, filterSourceFiles as Nt, REACT_DOCTOR_CONFIG_PROJECT_NAME as O, decodeUnknownSync as On, createOxlintSpawnSlots as Ot, SENTRY_RELEASE_PREFIX as P, promise as Pn, findLegacyConfig as Pt, LintPartialFailures as Q, AXIOM_DEFAULT_DOMAIN as Qn, isScanComplete as Qt, TUI_REPORT_DETAIL_WIDTH_FRACTION as R, runPromise as Rn, getChangedLineRanges as Rt, BASELINE_FILES_TEMP_DIR_PREFIX as S, Console as Sn, isPlainObject as Sr, clearConfigCache as St, METRIC as T, log as Tn, computeDiagnosticDelta as Tt, ACTION_INPUT_ENVIRONMENT_VARIABLES as U, buildWithScope as Un, hasPublishedFixRecipe as Ut, isGitHookEnvironment as V, try_ as Vn, getEquivalentRuleKeys as Vt, detectRunnerOs as W, mergeAll$1 as Wn, hasSupportedFrameworkOrLibrary as Wt, Git as X, void_$1 as Xn, isReactDoctorError as Xt, Files as Y, fail$5 as Yn, isProjectDiscoveryError as Yt, LEGACY_CONFIG_FILENAME as Z, ParentSpan as Zn, isSameRuleKey as Zt, VERSION as _, shouldUseMaintainabilityLayer as _n, STAGED_FILES_PROJECT_CONFIG_FILENAMES as _r, buildRuleSeverityControls as _t, isEnvFlagEnabled as a, materializeSourceTree as an, DIAGNOSTIC_CATEGORY_BUCKETS as ar, Progress as at, AXIOM_METRICS_DATASET as b, validateConfigTypes as bn, isErrnoException as br, canonicalizeUserRuleKey as bt, setSentryProjectInfo as c, resolveGithubActionsScoreMetadata as cn, GITHUB_ACTIONS_SETUP_URL as cr, Score as ct, isJsonModeActive as d, resolveScanConcurrency as dn, JSX_DUPLICATION_SOURCE_FILE_PATTERN as dr, SupplyChain as dt, listSourceFiles as en, CANONICAL_GITHUB_URL as er, Maintainability as et, setJsonReportDirectory as f, resolveScanTarget as fn, JSX_FILE_PATTERN as fr, anonymizeInPlace as ft, writeJsonReport as g, setColorEnabled as gn, SKILL_NAME as gr, buildRuleDocsUrl as gt, writeJsonErrorReport as h, scrubSensitivePaths as hn, SHARE_BASE_URL as hr, buildJsonReport as ht, isTelemetryEnabled as i, mapWithConcurrency as in, CONFIG_SCHEMA_URL as ir, PerFileLintCacheEnabled as it, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as j, makeSpan$1 as jn, filterDiagnosticsForSurface as jt, RUN_GIT_MAX_BUFFER_BYTES as k, make$30 as kn, detectAiTrainingEnvironment as kt, getRunId as l, resolveLintBatchOrdering as ln, GIT_SHOW_MAX_BUFFER_BYTES as lr, SidecarLintCacheEnabled as lt, writeJsonCancellationReport as m, runInspect as mn, OXLINT_NODE_REQUIREMENT as mr, atomicWriteJson as mt, recordDistribution as n, listWorkspacePackages as nn, COMPILER_CLEANUP_BUCKET as nr, OxlintConcurrency as nt, buildSentryScope as o, mergeReactDoctorConfigs as on, DOCS_URL as or, Project as ot, setJsonReportMode as p, restoreLegacyThrow as pn, MILLISECONDS_PER_SECOND as pr, anonymizeText as pt, isCodingAgentEnvironment as q, close as qn, isMonorepoRoot as qt, toSpanAttributes as r, loadConfigWithSource as rn, COMPILER_CLEANUP_RULE_KEYS as rr, OxlintSpawnSlots as rt, buildSentryProjectContext as s, remainingDeadlineBudgetMs as sn, ENTERPRISE_CONTACT_URL as sr, Reporter as st, recordCount as t, listSourceFilesCooperative as tn, CI_URL as tr, NodeResolver as tt, enableJsonMode as u, resolveReactDoctorCacheDir as un, HTML_FILE_PATTERN as ur, StagedFiles as ut, makeNoopConsole as v, summarizeDiagnostics as vn, getCategoryImpact as vr, buildSkippedChecks as vt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as w, info as wn, toCanonicalPath as wr, computeConfigFingerprint as wt, AXIOM_TRACES_DATASET as x, yieldToEventLoop as xn, isFile as xr, classifyFileContext as xt, AXIOM_INGEST_TOKEN as y, toRelativePath as yn, isDirectory as yr, calculateScore as yt, CliInputError as z, runSync as zn, getDiagnosticRuleIdentity as zt };
77003
77114
 
77004
- //# sourceMappingURL=record-metric-J1L5BmaF.js.map
77005
- //# debugId=a90f83bf-1935-5b0c-ae90-d6b5fc2e04b5
77115
+ //# sourceMappingURL=record-metric-BM82PBSe.js.map
77116
+ //# debugId=42d5ab6f-e00e-569a-b69b-c175748bceb3
@@ -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]="41285ebd-2fe3-5ca9-b684-ed336288401e")}catch(e){}}();
3
- import { N as SENTRY_FLUSH_TIMEOUT_MS, T as METRIC, Xt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-J1L5BmaF.js";
4
- import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-DlBJxPXW.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]="09bd44cd-4b50-526f-a8b5-858626469040")}catch(e){}}();
3
+ import { N as SENTRY_FLUSH_TIMEOUT_MS, T as METRIC, Xt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-BM82PBSe.js";
4
+ import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-DbSLLSa0.js";
5
5
  import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-dlIZeEvb.js";
6
6
  import * as Sentry from "@sentry/node";
7
7
  //#region src/cli/utils/report-error.ts
@@ -60,5 +60,5 @@ const reportErrorToSentry = async (error) => {
60
60
  //#endregion
61
61
  export { reportErrorToSentry as t };
62
62
 
63
- //# sourceMappingURL=report-error-CGlDARUr.js.map
64
- //# debugId=41285ebd-2fe3-5ca9-b684-ed336288401e
63
+ //# sourceMappingURL=report-error-CZHQUNh4.js.map
64
+ //# debugId=09bd44cd-4b50-526f-a8b5-858626469040