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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{build-section-divider-BjoMRSay.js → build-section-divider-B3l6DXTH.js} +5 -5
  2. package/dist/{ci-Rhhvl7uT.js → ci-DUDuv_KL.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-lt2tTZjE.js → constants-BmD_c3Yq.js} +12 -6
  5. package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
  6. package/dist/{design-C5BQaJUn.js → design-Bj9aMiuv.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-BxFRFqPQ.js → exit-gracefully-cCXyQl3i.js} +6 -6
  9. package/dist/{handle-error-BnEcoXcw.js → handle-error-lgLxrA8y.js} +6 -6
  10. package/dist/index.d.ts +20 -2
  11. package/dist/index.js +169 -23
  12. package/dist/{inspect-CrcIovH2.js → inspect-Bb1HyA7w.js} +16 -16
  13. package/dist/{install-DIHCDDtX.js → install-Ctq7ew69.js} +10 -10
  14. package/dist/{install-doctor-script-CcM2cToW.js → install-doctor-script-C8URs5z8.js} +5 -5
  15. package/dist/{install-github-workflow-BUaLt5mn.js → install-github-workflow-4uZez_Ux.js} +6 -6
  16. package/dist/{install-react-doctor-BnaGEio4.js → install-react-doctor-z8YCZ_ln.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-CveNGcRi.js} +4 -4
  18. package/dist/{jsx-runtime-CKOQW4i4.js → jsx-runtime-DGgjHKxp.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-COh3X3He.js → print-branded-header-DMHPLUaY.js} +4 -4
  21. package/dist/project-analysis-worker.js +1 -1
  22. package/dist/{prompt-runtime-scan-url-lBPap3oz.js → prompt-runtime-scan-url-Bjf8oUgu.js} +5 -5
  23. package/dist/{read-object-file-sQUp7PMm.js → read-object-file-1GYa4MDG.js} +4 -4
  24. package/dist/{record-metric-3hs8M2Pf.js → record-metric-9Q_AofQZ.js} +164 -24
  25. package/dist/{report-error-CtR7ISJa.js → report-error-D8MXuEuX.js} +6 -6
  26. package/dist/{report-workflow-result-C68s63w1.js → report-workflow-result-CoKQrvw3.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-DrC3xu0y.js → resolve-scan-exit-code-B8M3Cm1y.js} +14 -13
  28. package/dist/{resolve-scope-Cq7AJdtO.js → resolve-scope-mO5jhToI.js} +6 -6
  29. package/dist/{rules-BesJjxty.js → rules-DfsolVSa.js} +7 -7
  30. package/dist/{run-scan-app-CfsLjIjZ.js → run-scan-app-C_1vEytD.js} +45 -16
  31. package/dist/{runtime-scan-DA2v7tXp.js → runtime-scan-DO6eZB9B.js} +10 -10
  32. package/dist/{sanitize-runtime-url-C9P8617N.js → sanitize-runtime-url-B_DTc6vp.js} +4 -4
  33. package/dist/{scan-BTjqJfRl.js → scan-zowhHQj5.js} +10 -10
  34. package/dist/{should-skip-prompts-DjIiPcs_.js → should-skip-prompts-DWFgbnKE.js} +4 -4
  35. package/dist/{should-use-tui-Cd3om7tH.js → should-use-tui-CTkAbfEk.js} +4 -4
  36. package/dist/skills/react-doctor/references/explain.md +21 -0
  37. package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DDAT_0oB.js} +5 -5
  38. package/dist/start-scan-preamble.js +3 -3
  39. package/dist/{telemetry-runtime-JrDTvdnm.js → telemetry-runtime-CdsvqQbi.js} +13 -7
  40. package/dist/{version-osih6Dt3.js → version-5cBv0dgb.js} +5 -5
  41. package/dist/{why-BJLqu_nm.js → why-BD6q7PxE.js} +4 -4
  42. package/dist/{with-run-span-DJ74_coc.js → with-run-span-qr6tFfqD.js} +6 -6
  43. package/package.json +4 -4
@@ -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]="326dd7e8-101d-50ce-8ca4-012da08180f8")}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]="7b1aae27-f9f8-5f39-bba5-c56389aeb54a")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { u as METRIC } from "./constants-lt2tTZjE.js";
5
- import { t as recordCount } from "./record-metric-3hs8M2Pf.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-BxFRFqPQ.js";
4
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
5
+ import { t as recordCount } from "./record-metric-9Q_AofQZ.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-cCXyQl3i.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-CKOQW4i4.js.map
25874
- //# debugId=326dd7e8-101d-50ce-8ca4-012da08180f8
25873
+ //# sourceMappingURL=jsx-runtime-DGgjHKxp.js.map
25874
+ //# debugId=7b1aae27-f9f8-5f39-bba5-c56389aeb54a
@@ -1,6 +1,6 @@
1
1
 
2
2
  !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="036daa0d-20ef-5a7e-b004-e4f41f80cf0c")}catch(e){}}();
3
- import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-DNh19qg9.js";
3
+ import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-T2clfs7L.js";
4
4
  import * as fs$1 from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { pathToFileURL } from "node:url";
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8e2098ab-d09a-5c9e-91ca-a44c0e2ac08c")}catch(e){}}();
3
- import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-3hs8M2Pf.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ca060cdd-cace-5db9-b7bd-bdf42e88fc4f")}catch(e){}}();
3
+ import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-9Q_AofQZ.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-COh3X3He.js.map
22
- //# debugId=8e2098ab-d09a-5c9e-91ca-a44c0e2ac08c
21
+ //# sourceMappingURL=print-branded-header-DMHPLUaY.js.map
22
+ //# debugId=ca060cdd-cace-5db9-b7bd-bdf42e88fc4f
@@ -4,7 +4,7 @@ import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } fr
4
4
  import { n as require_picomatch$2, t as require_semver } from "./semver-BZIuy1gP.js";
5
5
  import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
6
6
  import { t as unwrapTypescriptExpression } from "./unwrap-typescript-expression-CrEPQUWz.js";
7
- import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-DNh19qg9.js";
7
+ import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-T2clfs7L.js";
8
8
  import { n as isPlainObject } from "./fs-utils-C88IbqFa.js";
9
9
  import { builtinModules } from "node:module";
10
10
  import * as fs$1 from "node:fs";
@@ -1,8 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="76462545-71f5-5edf-bf49-51d3a707f769")}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]="dedb3342-15e2-5356-b0a3-0399a01f74b2")}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-C9P8617N.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-CKOQW4i4.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-B_DTc6vp.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-DGgjHKxp.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-lBPap3oz.js.map
240
- //# debugId=76462545-71f5-5edf-bf49-51d3a707f769
239
+ //# sourceMappingURL=prompt-runtime-scan-url-Bjf8oUgu.js.map
240
+ //# debugId=dedb3342-15e2-5356-b0a3-0399a01f74b2
@@ -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]="461a3fb7-4bfc-5cac-a520-c52fbcef1ab1")}catch(e){}}();
3
- import { Kn as isPlainObject } from "./record-metric-3hs8M2Pf.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="78f93cbb-bf74-5d70-b100-ca66957ff5c4")}catch(e){}}();
3
+ import { Kn as isPlainObject } from "./record-metric-9Q_AofQZ.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-sQUp7PMm.js.map
24
- //# debugId=461a3fb7-4bfc-5cac-a520-c52fbcef1ab1
23
+ //# sourceMappingURL=read-object-file-1GYa4MDG.js.map
24
+ //# debugId=78f93cbb-bf74-5d70-b100-ca66957ff5c4
@@ -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]="e737ba11-8496-537b-a8a6-16aef708e009")}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]="ef9cab92-43ea-5ce7-b57b-f8aa7d573729")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-lt2tTZjE.js";
4
+ import { $ as warmReactCompilerDetection, $t as OXLINT_SPLIT_TOTAL_BUDGET_MS, A as buildGitSourceListingRequest, An as TAILWIND_POSTCSS7_COMPAT_ALIAS, B as resolveGitCommand, Bt as MAINTAINABILITY_CATEGORY, Cn as SUPPLY_CHAIN_CACHE_SUBDIR, Dn as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Dt as FILE_LINT_CACHE_MAX_FILE_COUNT, En as SUPPLY_CHAIN_IGNORED_PACKAGES, Et as FILE_LINT_CACHE_FILENAME, F as lowerChildProcessPriority, Fn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Ft as GIT_SOURCE_LISTING_ARGUMENTS, G as resolvePluginPath, Gt as MILLISECONDS_PER_SECOND, H as resolveOxlintThreadCount, Ht as MAINTAINABILITY_PLUGIN, In as VERCEL_NEXTJS_SECURITY_RELEASE_URL, It as HTML_FILE_PATTERN, J as resolveTsConfigRelativePath, Jt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, K as resolveReactDoctorCacheDir, Kt as MINIFIED_SNIFF_BYTES, Lt as IGNORED_DIRECTORIES, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_EXPORT_INTERVAL_MS, Mt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, Nn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Nt as GIT_LS_FILES_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_PLUGIN, Ot as GENERATED_BUNDLE_FILE_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TSCONFIG_FILENAMES, Pt as GIT_SHOW_MAX_BUFFER_BYTES, Q as takeReactCompilerDetection, Qt as OXLINT_SPAWN_TIMEOUT_MS, R as readSystemConcurrencyFacts, Rt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, St as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, Tn as SUPPLY_CHAIN_CATEGORY, Tt as FETCH_TIMEOUT_MS, U as resolveOxlintToolchainVersions, V as resolveOxlintBinary, Vt as MAINTAINABILITY_DUPLICATE_JSX_RULE, W as resolveOxlintWorkerRuntime, Wt as MAX_GLOB_PATTERN_LENGTH_CHARS, X as spawnOxlintWorkerProcess, Xt as OXLINT_OOM_RESCUE_BUDGET_MS, Y as setChildProcessRef, Z as takePrespawnedOxlintWorker, Zt as OXLINT_OUTPUT_MAX_BYTES, _n as SOCKET_PACKAGE_PAGE_BASE, _t as DEFAULT_BRANCH_CANDIDATES, an as REACT_BLOG_RSC_ADVISORY_URL, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, bt as DOCS_RULES_BASE_URL, cn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, ct as AXIOM_TRACES_PATH, d as METRIC_DISTRIBUTION_BOUNDARIES, dn as SCORE_API_URL, en as OXLINT_WORKER_JOB_END_MARKER, et as ABORT_EXIT_CODES, ft as COMPILER_CLEANUP_BUCKET, gn as SOCKET_FREE_USER_AGENT, hn as SOCKET_FREE_PURL_API_BASE, ht as CONFIG_FINGERPRINT_FILENAMES, in as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, it as AXIOM_DATASET_HEADER, j as buildOxlintChildEnv, jn as TARGET_BLANK_BROWSER_SUPPORT, jt as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, kn as SUPPLY_CHAIN_RULE, kt as GENERATED_SOURCE_DIRECTORY_PATTERN, l as INTERNAL_ERROR_JSON_FALLBACK, ln as ROOT_CAUSE_GROUPABLE_RULE_KEYS, mt as CONFIG_CACHE_TTL_MS, nn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, nt as ADOPTED_LINT_CONFIG_MAX_BYTES, on as REACT_ROUTER_CAPABILITY_THRESHOLDS, ot as AXIOM_METRICS_DATASET_HEADER, pn as SIDECAR_LINT_CACHE_FILENAME, pt as COMPILER_CLEANUP_RULE_KEYS, q as resolveScanConcurrency, qt as OCCURRENCE_MATCHED_CATEGORIES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, rt as APP_ONLY_RULE_KEYS, sn as REACT_SERVER_DOM_PACKAGES, st as AXIOM_METRICS_PATH, tn as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCANNED_DOT_DIRECTORIES, vn as SOURCE_FILE_PATTERN, vt as DIAGNOSTIC_CATEGORY_BUCKETS, wn as SUPPLY_CHAIN_CACHE_TTL_MS, wt as ES_TARGET_YEAR_BY_NAME, xn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, yn as SPAWN_ARGS_MAX_LENGTH_CHARS, yt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, z as resolveConfiguredScanConcurrency } from "./constants-BmD_c3Yq.js";
5
5
  import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
6
6
  import { createRequire } from "node:module";
7
7
  import * as fs$1$2 from "node:fs";
@@ -88,7 +88,7 @@ const unwrapTypescriptExpression = (expression) => {
88
88
  return currentExpression;
89
89
  };
90
90
  //#endregion
91
- //#region ../core/dist/collect-unplugin-auto-import-global-scopes-D4bM_Zhs.js
91
+ //#region ../core/dist/collect-unplugin-auto-import-global-scopes-Z9dhela6.js
92
92
  var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
93
93
  const LINGUIST_ATTRIBUTES = ["linguist-generated", "linguist-vendored"];
94
94
  const DISABLED_ATTRIBUTE_VALUES = new Set([
@@ -526,7 +526,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
526
526
  return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
527
527
  };
528
528
  //#endregion
529
- //#region ../core/dist/detect-duplicate-jsx-subtrees-BfvHEoZi.js
529
+ //#region ../core/dist/detect-duplicate-jsx-subtrees-B5UWtUyz.js
530
530
  const yieldToEventLoop = () => new Promise((resolve) => {
531
531
  setImmediate(resolve);
532
532
  });
@@ -651,7 +651,7 @@ const resolveOptions$1 = (options) => ({
651
651
  minimumDistinctFiles: options.minimumDistinctFiles ?? 1,
652
652
  maxSourceFiles: options.budget?.maxSourceFiles ?? 5e3,
653
653
  maxSourceLengthChars: options.budget?.maxSourceLengthChars ?? 1e6,
654
- maxJsxNodes: options.budget?.maxJsxNodes ?? 5e4,
654
+ maxJsxNodes: options.budget?.maxJsxNodes ?? 5e5,
655
655
  maxFamilies: options.budget?.maxFamilies ?? 20
656
656
  });
657
657
  const hashParts = (parts) => {
@@ -865,10 +865,12 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
865
865
  const jsxNodes = [];
866
866
  const pendingNodes = [sourceFile];
867
867
  let limitExceeded = false;
868
+ let observedJsxNodeCount = 0;
868
869
  while (pendingNodes.length > 0 && !limitExceeded && !signal?.aborted) {
869
870
  const currentNode = pendingNodes.pop();
870
871
  if (currentNode === void 0) continue;
871
872
  if (isJsxSubtreeNode(currentNode)) {
873
+ observedJsxNodeCount += 1;
872
874
  if (jsxNodes.length >= maximumCandidateCount) {
873
875
  limitExceeded = true;
874
876
  continue;
@@ -884,7 +886,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
884
886
  if (limitExceeded || signal?.aborted) return {
885
887
  candidates: [],
886
888
  aborted: signal?.aborted ?? false,
887
- limitExceeded
889
+ limitExceeded,
890
+ observedJsxNodeCount
888
891
  };
889
892
  const metadataByNode = /* @__PURE__ */ new Map();
890
893
  const functionIdentityByNode = /* @__PURE__ */ new Map();
@@ -892,7 +895,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
892
895
  if (signal?.aborted) return {
893
896
  candidates: [],
894
897
  aborted: true,
895
- limitExceeded: false
898
+ limitExceeded: false,
899
+ observedJsxNodeCount
896
900
  };
897
901
  buildJsxSubtreeMetadata(jsxNodes[nodeIndex], metadataByNode);
898
902
  }
@@ -910,7 +914,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
910
914
  };
911
915
  }),
912
916
  aborted: false,
913
- limitExceeded: false
917
+ limitExceeded: false,
918
+ observedJsxNodeCount
914
919
  };
915
920
  };
916
921
  const scanSource = (input) => {
@@ -947,8 +952,7 @@ const scanSource = (input) => {
947
952
  incompleteReason: {
948
953
  kind: "jsx-node-limit",
949
954
  limit: input.options.maxJsxNodes,
950
- observed: input.options.maxJsxNodes + 1,
951
- path: input.source.path
955
+ observed: input.scannedJsxNodeCount + collectedCandidates.observedJsxNodeCount
952
956
  },
953
957
  didAbort: false,
954
958
  didScan: false
@@ -1065,7 +1069,10 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
1065
1069
  scannedSourceFileCount,
1066
1070
  scannedJsxNodeCount
1067
1071
  });
1068
- if (scannedSource.incompleteReason !== null) incompleteReasons.push(scannedSource.incompleteReason);
1072
+ if (scannedSource.incompleteReason !== null) {
1073
+ incompleteReasons.push(scannedSource.incompleteReason);
1074
+ if (scannedSource.incompleteReason.kind === "jsx-node-limit") break;
1075
+ }
1069
1076
  if (scannedSource.didScan) {
1070
1077
  candidates.push(...scannedSource.candidates);
1071
1078
  scannedJsxNodeCount += scannedSource.candidates.length;
@@ -1083,7 +1090,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
1083
1090
  });
1084
1091
  };
1085
1092
  //#endregion
1086
- //#region ../core/dist/detect-react-compiler-BGN8JyDW.js
1093
+ //#region ../core/dist/detect-react-compiler-DLpaU8gr.js
1087
1094
  const NEXT_CONFIG_FILENAMES = [
1088
1095
  "next.config.js",
1089
1096
  "next.config.mjs",
@@ -65690,13 +65697,17 @@ const getBrowserslistProtectionRequirement = (directory) => {
65690
65697
  env: "production"
65691
65698
  });
65692
65699
  if (!queries) return void 0;
65700
+ if ((typeof queries === "string" ? [queries] : queries).some((query) => /\b(?:extends|stats)\b|\bbrowserslist\s+config\b/i.test(query))) return;
65693
65701
  let requirement;
65694
65702
  let hasUnsupportedTarget = false;
65695
65703
  const previousIgnoreOldData = process.env.BROWSERSLIST_IGNORE_OLD_DATA;
65696
65704
  let browserTargets = [];
65697
65705
  try {
65698
65706
  process.env.BROWSERSLIST_IGNORE_OLD_DATA = "true";
65699
- browserTargets = (0, import_browserslist.default)(queries);
65707
+ browserTargets = (0, import_browserslist.default)(queries, {
65708
+ path: false,
65709
+ stats: {}
65710
+ });
65700
65711
  } finally {
65701
65712
  if (previousIgnoreOldData === void 0) delete process.env.BROWSERSLIST_IGNORE_OLD_DATA;
65702
65713
  else process.env.BROWSERSLIST_IGNORE_OLD_DATA = previousIgnoreOldData;
@@ -67972,6 +67983,32 @@ const validateSeverityMap = (fieldName, rawMap, keysAreCategories = false) => {
67972
67983
  }
67973
67984
  return validated;
67974
67985
  };
67986
+ const ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS = ["allowExportNames", "customHOCs"];
67987
+ const ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS = ["allowConstantExport", "checkJS"];
67988
+ const validateOnlyExportComponentsField = (rawOptions) => {
67989
+ if (!isRecord(rawOptions)) {
67990
+ warnConfigIssue(`config field "onlyExportComponents" must be an object (got ${typeof rawOptions}); ignoring this field.`);
67991
+ return;
67992
+ }
67993
+ const validated = {};
67994
+ for (const [key, value] of Object.entries(rawOptions)) {
67995
+ const fieldName = `onlyExportComponents.${key}`;
67996
+ const stringArrayKey = ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS.find((candidateKey) => candidateKey === key);
67997
+ if (stringArrayKey !== void 0) {
67998
+ const entries = validateStringArrayField(fieldName, value);
67999
+ if (entries !== void 0) validated[stringArrayKey] = entries;
68000
+ continue;
68001
+ }
68002
+ const booleanKey = ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS.find((candidateKey) => candidateKey === key);
68003
+ if (booleanKey !== void 0) {
68004
+ const flag = coerceMaybeBooleanString(fieldName, value);
68005
+ if (flag !== void 0) validated[booleanKey] = flag;
68006
+ continue;
68007
+ }
68008
+ warnConfigIssue(`config field "${fieldName}" is not a known option (expected one of: ${[...ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS, ...ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS].join(", ")}); ignoring.`);
68009
+ }
68010
+ return validated;
68011
+ };
67975
68012
  const applyFieldValidator = (config, validated, fieldName, validator) => {
67976
68013
  const raw = config[fieldName];
67977
68014
  if (raw === void 0) return;
@@ -67986,6 +68023,7 @@ const validateConfigTypes = (config) => {
67986
68023
  for (const fieldName of STRING_ARRAY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateStringArrayField(fieldName, value));
67987
68024
  applyFieldValidator(config, validated, "ignore", validateIgnoreField);
67988
68025
  applyFieldValidator(config, validated, "surfaces", validateSurfacesField);
68026
+ applyFieldValidator(config, validated, "onlyExportComponents", validateOnlyExportComponentsField);
67989
68027
  for (const fieldName of SEVERITY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateSeverityMap(fieldName, value, fieldName === "categories"));
67990
68028
  applyFieldValidator(config, validated, "plugins", (value) => validateStringArrayField("plugins", value));
67991
68029
  for (const ruleKey of getUnknownBundledRuleKeys(validated.rules)) warnConfigIssue(`config field "rules.${ruleKey}" is not a known bundled rule; this override has no effect. Run "react-doctor rules list" to find its rule ID.`);
@@ -68310,7 +68348,7 @@ const dedupeRelatedDiagnostics = (diagnostics) => {
68310
68348
  };
68311
68349
  const isPathInsideDirectory = (childAbsolutePath, parentAbsolutePath) => {
68312
68350
  const relativePath = path$1$1.relative(parentAbsolutePath, childAbsolutePath);
68313
- return Boolean(relativePath) && !relativePath.startsWith("..") && !path$1$1.isAbsolute(relativePath);
68351
+ return Boolean(relativePath) && relativePath !== ".." && !relativePath.startsWith(`..${path$1$1.sep}`) && !path$1$1.isAbsolute(relativePath);
68314
68352
  };
68315
68353
  const compareStrings = (left, right) => left < right ? -1 : left > right ? 1 : 0;
68316
68354
  const sortDiagnosticsStable = (diagnostics) => [...diagnostics].sort((left, right) => compareStrings(left.filePath, right.filePath) || left.line - right.line || left.column - right.column || compareStrings(left.plugin, right.plugin) || compareStrings(left.rule, right.rule) || compareStrings(left.severity, right.severity) || compareStrings(left.message, right.message));
@@ -70186,7 +70224,7 @@ const createSecurityScanSession = (rootDirectory, options) => {
70186
70224
  entry,
70187
70225
  scan,
70188
70226
  severityOverride,
70189
- committedFilesOnly: rule.committedFilesOnly === true
70227
+ committedFilesOnly: rule.committedFilesOnly !== false
70190
70228
  }];
70191
70229
  });
70192
70230
  if (enabledScanRules.length === 0) return null;
@@ -70205,7 +70243,7 @@ const createSecurityScanSession = (rootDirectory, options) => {
70205
70243
  if (file === null) return;
70206
70244
  for (const { entry, scan, severityOverride, committedFilesOnly } of enabledScanRules) {
70207
70245
  for (const finding of scan(file)) {
70208
- if (committedFilesOnly && isFileGitIgnored(file)) continue;
70246
+ if ((finding.committedFilesOnly ?? committedFilesOnly) && isFileGitIgnored(file)) continue;
70209
70247
  const diagnostic = buildSecurityScanDiagnostic(severityOverride === void 0 ? finding : {
70210
70248
  ...finding,
70211
70249
  severity: severityOverride
@@ -71859,6 +71897,82 @@ const detectUserLintConfigPaths = (rootDirectory) => {
71859
71897
  }
71860
71898
  return [];
71861
71899
  };
71900
+ const isSymlinkFreePath = (filePath, rootDirectory) => {
71901
+ if (!isPathInsideDirectory(filePath, rootDirectory)) return false;
71902
+ let currentPath = rootDirectory;
71903
+ for (const segment of path$1$1.relative(rootDirectory, filePath).split(path$1$1.sep)) {
71904
+ currentPath = path$1$1.join(currentPath, segment);
71905
+ try {
71906
+ if (fs$1$2.lstatSync(currentPath).isSymbolicLink()) return false;
71907
+ } catch (error) {
71908
+ return isErrnoException(error) && error.code === "ENOENT";
71909
+ }
71910
+ }
71911
+ return true;
71912
+ };
71913
+ const snapshotAdoptedLintConfigs = (input) => {
71914
+ const sourceBoundaryDirectory = path$1$1.resolve(findGitRepositoryRoot(input.rootDirectory) ?? input.rootDirectory);
71915
+ const boundaryDirectory = fs$1$2.realpathSync(sourceBoundaryDirectory);
71916
+ const snapshots = /* @__PURE__ */ new Map();
71917
+ const expandedFileCounts = /* @__PURE__ */ new Map();
71918
+ const activePaths = /* @__PURE__ */ new Set();
71919
+ let expandedFileCount = 0;
71920
+ const snapshotConfig = (configPath, depth) => {
71921
+ const resolvedPath = path$1$1.resolve(configPath);
71922
+ const existingSnapshot = snapshots.get(resolvedPath);
71923
+ if (existingSnapshot) {
71924
+ expandedFileCount += expandedFileCounts.get(resolvedPath) ?? 1;
71925
+ if (expandedFileCount > 64) throw new Error("Adopted lint config expands too many files");
71926
+ return existingSnapshot;
71927
+ }
71928
+ if (depth > 32 || expandedFileCount >= 64 || activePaths.has(resolvedPath) || !isSymlinkFreePath(resolvedPath, boundaryDirectory)) throw new Error("Unsafe adopted lint config chain");
71929
+ const configStats = fs$1$2.lstatSync(resolvedPath);
71930
+ if (!configStats.isFile() || configStats.size > 1048576) throw new Error("Unsupported adopted lint config file");
71931
+ const previousFileCount = expandedFileCount;
71932
+ expandedFileCount += 1;
71933
+ activePaths.add(resolvedPath);
71934
+ try {
71935
+ const parsed = parseJSONC(readTextFileUpToCharacterLimitSync({
71936
+ filePath: resolvedPath,
71937
+ maximumLengthChars: ADOPTED_LINT_CONFIG_MAX_BYTES,
71938
+ sizeBytes: configStats.size
71939
+ }), { allowTrailingComma: true });
71940
+ if (!isPlainObject(parsed)) throw new Error("Invalid adopted lint config");
71941
+ const sanitized = snapshotValue(parsed, resolvedPath, depth);
71942
+ const snapshotPath = path$1$1.join(input.snapshotDirectory, `adopted-${snapshots.size}.json`);
71943
+ fs$1$2.writeFileSync(snapshotPath, JSON.stringify(sanitized), {
71944
+ flag: "wx",
71945
+ mode: 384
71946
+ });
71947
+ snapshots.set(resolvedPath, snapshotPath);
71948
+ expandedFileCounts.set(resolvedPath, expandedFileCount - previousFileCount);
71949
+ return snapshotPath;
71950
+ } finally {
71951
+ activePaths.delete(resolvedPath);
71952
+ }
71953
+ };
71954
+ const snapshotValue = (value, configPath, depth) => {
71955
+ if (depth > 32) throw new Error("Adopted lint config too deep");
71956
+ if (Array.isArray(value)) return value.map((entry) => snapshotValue(entry, configPath, depth + 1));
71957
+ if (!isPlainObject(value)) return value;
71958
+ if (Object.hasOwn(value, "jsPlugins")) throw new Error("Executable adopted lint config");
71959
+ return Object.fromEntries(Object.entries(value).map(([key, entry]) => {
71960
+ if (key !== "extends") return [key, snapshotValue(entry, configPath, depth + 1)];
71961
+ return [key, (Array.isArray(entry) ? entry : [entry]).map((extendedPath) => {
71962
+ if (typeof extendedPath !== "string") throw new Error("Invalid lint config extends");
71963
+ return snapshotConfig(path$1$1.resolve(path$1$1.dirname(configPath), extendedPath), depth + 1);
71964
+ })];
71965
+ }));
71966
+ };
71967
+ return input.configPaths.flatMap((configPath) => {
71968
+ try {
71969
+ if (!isPathInsideDirectory(configPath, sourceBoundaryDirectory)) return [];
71970
+ return [snapshotConfig(path$1$1.join(boundaryDirectory, path$1$1.relative(sourceBoundaryDirectory, configPath)), 0)];
71971
+ } catch {
71972
+ return [];
71973
+ }
71974
+ });
71975
+ };
71862
71976
  const readAdoptedLintConfigSettings = (configPaths) => {
71863
71977
  const mergedSettings = /* @__PURE__ */ new Map();
71864
71978
  for (const configPath of configPaths) {
@@ -71886,6 +72000,7 @@ const getBackupPath = (rootDirectory, absolutePath) => {
71886
72000
  };
71887
72001
  const removeBackupRootIfEmpty = (rootDirectory) => {
71888
72002
  const backupRootDirectory = getBackupRootDirectory(rootDirectory);
72003
+ if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return;
71889
72004
  if (!walkSourceTreeFiles(backupRootDirectory).next().done) return;
71890
72005
  fs$1$2.rmSync(backupRootDirectory, {
71891
72006
  recursive: true,
@@ -71986,8 +72101,13 @@ const collectNeutralizationCandidatePaths = (rootDirectory, discoveredRelativePa
71986
72101
  const recoverOrphanedBackups = (rootDirectory) => {
71987
72102
  const blockedPaths = /* @__PURE__ */ new Set();
71988
72103
  const backupRootDirectory = getBackupRootDirectory(rootDirectory);
72104
+ if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return blockedPaths;
71989
72105
  for (const { absolutePath: backupPath } of walkSourceTreeFiles(backupRootDirectory)) {
71990
72106
  const originalPath = path$1$1.join(rootDirectory, path$1$1.relative(backupRootDirectory, backupPath));
72107
+ if (!isSymlinkFreePath(backupPath, rootDirectory) || !isSymlinkFreePath(originalPath, rootDirectory)) {
72108
+ blockedPaths.add(originalPath);
72109
+ continue;
72110
+ }
71991
72111
  if (neutralizedFileLeases.has(originalPath)) continue;
71992
72112
  let backupContent;
71993
72113
  let currentContent;
@@ -72038,6 +72158,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
72038
72158
  lease.referenceCount -= 1;
72039
72159
  if (lease.referenceCount > 0) continue;
72040
72160
  neutralizedFileLeases.delete(absolutePath);
72161
+ if (!isSymlinkFreePath(absolutePath, lease.rootDirectory) || !isSymlinkFreePath(lease.backupPath, lease.rootDirectory)) continue;
72041
72162
  try {
72042
72163
  const currentContent = fs$1$2.readFileSync(absolutePath, "utf-8");
72043
72164
  if (currentContent !== lease.neutralizedContent && currentContent !== lease.originalContent) {
@@ -72055,6 +72176,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
72055
72176
  const onExit = () => restore();
72056
72177
  process.once("exit", onExit);
72057
72178
  const leaseCandidatePath = (absolutePath) => {
72179
+ if (!isSymlinkFreePath(absolutePath, resolvedRootDirectory)) return;
72058
72180
  if (leasedPaths.has(absolutePath)) return;
72059
72181
  if (blockedPaths.has(absolutePath)) return;
72060
72182
  const existingLease = neutralizedFileLeases.get(absolutePath);
@@ -72072,7 +72194,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
72072
72194
  const neutralizedContent = neutralizeContent(originalContent);
72073
72195
  if (neutralizedContent !== originalContent) {
72074
72196
  const backupPath = getBackupPath(resolvedRootDirectory, absolutePath);
72075
- if (backupPath === null) return;
72197
+ if (backupPath === null || !isSymlinkFreePath(backupPath, resolvedRootDirectory)) return;
72076
72198
  try {
72077
72199
  fs$1$2.mkdirSync(path$1$1.dirname(backupPath), { recursive: true });
72078
72200
  fs$1$2.writeFileSync(backupPath, originalContent, { flag: "wx" });
@@ -72082,6 +72204,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
72082
72204
  }
72083
72205
  fs$1$2.writeFileSync(absolutePath, neutralizedContent);
72084
72206
  neutralizedFileLeases.set(absolutePath, {
72207
+ rootDirectory: resolvedRootDirectory,
72085
72208
  backupPath,
72086
72209
  originalContent,
72087
72210
  neutralizedContent,
@@ -72120,7 +72243,13 @@ const normalizeConfigForHash = (config) => {
72120
72243
  if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
72121
72244
  return clone;
72122
72245
  };
72123
- const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify(normalizeConfigForHash(input.config))).update("\0").update([...input.toolchainVersions].join("\0")).update("\0").update([...input.ignorePatterns].join("\n")).update("\0").update(input.tsconfigContent ?? "").update("\0").update(input.respectInlineDisables ? "respect-inline-disables" : "audit-mode").digest("hex");
72246
+ const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify([
72247
+ normalizeConfigForHash(input.config),
72248
+ input.toolchainVersions,
72249
+ input.ignorePatterns,
72250
+ input.tsconfigContent,
72251
+ input.respectInlineDisables
72252
+ ])).digest("hex");
72124
72253
  /**
72125
72254
  * Loads a plugin module via the local require resolver and extracts
72126
72255
  * `(name, ruleNames)` from either `module.exports.meta + rules` or
@@ -72276,7 +72405,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
72276
72405
  }
72277
72406
  return enabled;
72278
72407
  };
72279
- 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 }) => {
72408
+ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, onlyExportComponents, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
72280
72409
  const hasIncludedTags = includedTags.size > 0;
72281
72410
  const resolvedReactHooksJsPlugin = disableReactHooksJsPlugin || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
72282
72411
  const reactHooksJsPlugin = ruleSelection === "sidecar" ? null : resolvedReactHooksJsPlugin;
@@ -72359,6 +72488,7 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
72359
72488
  } : {},
72360
72489
  ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
72361
72490
  ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
72491
+ ...onlyExportComponents !== void 0 ? { onlyExportComponents } : {},
72362
72492
  ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
72363
72493
  }
72364
72494
  },
@@ -74273,7 +74403,11 @@ const spawnLintBatches = async (input) => {
74273
74403
  batchState.deadlineSkippedFileCount += batch.length;
74274
74404
  return [];
74275
74405
  }
74276
- const batchArgs = [...baseArgs, ...batch];
74406
+ const batchArgs = [
74407
+ ...baseArgs,
74408
+ "--",
74409
+ ...batch
74410
+ ];
74277
74411
  try {
74278
74412
  const spawnBatch = async () => {
74279
74413
  const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
@@ -75048,7 +75182,7 @@ const runOxlint = async (options) => {
75048
75182
  }
75049
75183
  const pluginPath = resolvePluginPath();
75050
75184
  const detectedConfigPaths = adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : [];
75051
- const extendsPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
75185
+ const adoptableConfigPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
75052
75186
  const adoptedSettings = detectedConfigPaths.length > 0 ? readAdoptedLintConfigSettings(detectedConfigPaths) : {};
75053
75187
  const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
75054
75188
  const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
@@ -75056,6 +75190,11 @@ const runOxlint = async (options) => {
75056
75190
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
75057
75191
  const workingDirectory = fs$1$2.existsSync(path$1$1.join(rootDirectory, "oxlint-suppressions.json")) ? configDirectory : void 0;
75058
75192
  try {
75193
+ const extendsPaths = snapshotAdoptedLintConfigs({
75194
+ configPaths: adoptableConfigPaths,
75195
+ rootDirectory,
75196
+ snapshotDirectory: configDirectory
75197
+ });
75059
75198
  const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
75060
75199
  fs$1$2.mkdirSync(diagnosticContextDirectory);
75061
75200
  const oxlintBinary = resolveOxlintBinary();
@@ -75116,6 +75255,7 @@ const runOxlint = async (options) => {
75116
75255
  runtimeGlobals,
75117
75256
  unpluginAutoImportGlobalScopes,
75118
75257
  serverAuthFunctionNames,
75258
+ onlyExportComponents: userConfig?.onlyExportComponents,
75119
75259
  projectIndexModuleSources,
75120
75260
  severityControls,
75121
75261
  adoptedSettings,
@@ -77660,7 +77800,7 @@ const makeNoopConsole = () => ({
77660
77800
  });
77661
77801
  //#endregion
77662
77802
  //#region src/cli/utils/version.ts
77663
- const VERSION = "0.9.22-dev.ec45ff9";
77803
+ const VERSION = "0.9.23-dev.05dfafe";
77664
77804
  //#endregion
77665
77805
  //#region src/cli/utils/json-mode.ts
77666
77806
  let context = null;
@@ -78004,5 +78144,5 @@ const recordDistribution = (name, value, options = {}) => {
78004
78144
  //#endregion
78005
78145
  export { buildRuleSeverityControls as $, runInspect as $t, Files as A, buildWithScope as An, hasPublishedFixRecipe as At, PerFileLintCacheEnabled as B, yieldToEventLoop as Bn, listSourceFiles as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, provideContext as Cn, getChangedLineRanges as Ct, isCodingAgentEnvironment as D, sync as Dn, getRuleMetadata as Dt, isCiOrCodingAgentEnvironment as E, runSync as En, getEquivalentRuleKeys as Et, Linter as F, makeUnsafe$5 as Fn, isProjectDiscoveryError as Ft, SidecarLintCacheEnabled as G, isFile as Gn, materializeSourceTree as Gt, Project as H, toCanonicalPath as Hn, listWorkspacePackages as Ht, Maintainability as I, fail$5 as In, isReactDoctorError as It, anonymizeInPlace as J, remainingDeadlineBudgetMs as Jt, StagedFiles as K, isPlainObject as Kn, mergeAndFilterDiagnostics as Kt, NodeResolver as L, void_$1 as Ln, isSameRuleKey as Lt, InvocationCaches as M, provide$2 as Mn, hashFileContents as Mt, LEGACY_CONFIG_FILENAME as N, succeed$3 as Nn, highlighter as Nt, Config as O, try_ as On, getUnknownBundledRuleKeys as Ot, LintPartialFailures as P, close as Pn, isPathInsideDirectory as Pt, buildRuleDocsUrl as Q, restoreLegacyThrow as Qt, OxlintConcurrency as R, ParentSpan as Rn, isScanComplete as Rt, isDebugFlagEnabled as S, provide as Sn, getBaselineDiffPlan as St, isCiEnvironment as T, runPromise as Tn, getDiffInfo as Tt, Reporter as U, isDirectory as Un, loadConfigWithSource as Ut, Progress as V, messageFromUnknown as Vn, listSourceFilesCooperative as Vt, Score as W, isErrnoException as Wn, mapWithConcurrency as Wt, atomicWriteJson as X, resolveLintBatchOrdering as Xt, anonymizeText as Y, resolveGithubActionsScoreMetadata as Yt, buildJsonReport as Z, resolveScanTarget as Zt, VERSION as _, gen as _n, findGitRepositoryRoot as _t, isEnvFlagEnabled as a, validateConfigTypes as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, orElseSucceed as bn, formatErrorChain as bt, setSentryProjectInfo as c, Console as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, log as dn, createOxlintSpawnSlots as dt, scrubSensitivePaths as en, buildSkippedChecks as et, setJsonReportDirectory as f, warn$1 as fn, detectAiTrainingEnvironment as ft, writeJsonReport as g, make$30 as gn, filterSourceFiles as gt, writeJsonErrorReport as h, decodeUnknownSync as hn, filterPathsOutsideDirectories as ht, isTelemetryEnabled as i, toRelativePath as in, clearConfigCache as it, Git as j, mergeAll$1 as jn, hasSupportedFrameworkOrLibrary as jt, DIAGNOSTIC_DELTA_IDENTITY as k, void_ as kn, groupBy as kt, getRunId as l, error as ln, createChangedLineMatcher as lt, writeJsonCancellationReport as m, JsonReport as mn, filterDiagnosticsForSurface as mt, recordDistribution as n, shouldUseMaintainabilityLayer as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, warmDuplicateJsxWorker as on, computeConfigFingerprint as ot, setJsonReportMode as p, Diagnostic as pn, discoverSupportedSubprojects as pt, SupplyChain as q, mergeReactDoctorConfigs as qt, toSpanAttributes as r, summarizeDiagnostics as rn, classifyFileContext as rt, buildSentryProjectContext as s, warmOxlintWorkerPool as sn, computeDiagnosticDelta as st, recordCount as t, setColorEnabled as tn, calculateScore as tt, enableJsonMode as u, info as un, createInvocationCaches as ut, makeNoopConsole as v, makeSpan$1 as vn, findLegacyConfig as vt, detectRunnerOs as w, provideService as wn, getDiagnosticRuleIdentity as wt, isGitHookEnvironment as x, promise as xn, formatReactDoctorError as xt, CliInputError as y, map$3 as yn, fingerprintDiagnosticEvidence as yt, OxlintSpawnSlots as z, isMonorepoRoot as zn, layerObservability as zt };
78006
78146
 
78007
- //# sourceMappingURL=record-metric-3hs8M2Pf.js.map
78008
- //# debugId=e737ba11-8496-537b-a8a6-16aef708e009
78147
+ //# sourceMappingURL=record-metric-9Q_AofQZ.js.map
78148
+ //# debugId=ef9cab92-43ea-5ce7-b57b-f8aa7d573729
@@ -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]="47c36756-7636-581f-b46a-00a13d700b89")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { It as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-3hs8M2Pf.js";
5
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-JrDTvdnm.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]="89e6f5ee-def1-5266-aafb-f526ceef387a")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { It as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-9Q_AofQZ.js";
5
+ import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-CdsvqQbi.js";
6
6
  import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
7
7
  //#region src/cli/utils/report-error.ts
8
8
  /**
@@ -61,5 +61,5 @@ const reportErrorToSentry = async (error) => {
61
61
  //#endregion
62
62
  export { reportErrorToSentry as t };
63
63
 
64
- //# sourceMappingURL=report-error-CtR7ISJa.js.map
65
- //# debugId=47c36756-7636-581f-b46a-00a13d700b89
64
+ //# sourceMappingURL=report-error-D8MXuEuX.js.map
65
+ //# debugId=89e6f5ee-def1-5266-aafb-f526ceef387a
@@ -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]="bc5d1200-2da3-52cf-9cc0-740072cb5b85")}catch(e){}}();
3
- import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { t as recordCount } from "./record-metric-3hs8M2Pf.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-BUaLt5mn.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]="bb532d92-0ade-55d6-b92e-836364f79fd4")}catch(e){}}();
3
+ import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { t as recordCount } from "./record-metric-9Q_AofQZ.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-4uZez_Ux.js";
6
6
  import { createRequire } from "node:module";
7
7
  import * as path$1 from "node:path";
8
8
  import { spawn } from "node:child_process";
@@ -289,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
289
289
  //#endregion
290
290
  export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, loadAgentInstall as g, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
291
291
 
292
- //# sourceMappingURL=report-workflow-result-C68s63w1.js.map
293
- //# debugId=bc5d1200-2da3-52cf-9cc0-740072cb5b85
292
+ //# sourceMappingURL=report-workflow-result-CoKQrvw3.js.map
293
+ //# debugId=bb532d92-0ade-55d6-b92e-836364f79fd4