react-doctor 0.9.22-dev.e468c6f → 0.9.22-dev.ec45ff9

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-CxquCOYK.js → build-section-divider-BjoMRSay.js} +4 -4
  2. package/dist/{ci-B4mtVc-c.js → ci-Rhhvl7uT.js} +12 -12
  3. package/dist/cli.js +23 -23
  4. package/dist/{design-BM6TGbFH.js → design-C5BQaJUn.js} +4 -4
  5. package/dist/{exit-gracefully-CUGaLi4F.js → exit-gracefully-BxFRFqPQ.js} +6 -6
  6. package/dist/{handle-error-CG3D41Vh.js → handle-error-BnEcoXcw.js} +5 -5
  7. package/dist/index.js +81 -21
  8. package/dist/{inspect-D-CPR_45.js → inspect-CrcIovH2.js} +15 -15
  9. package/dist/{install-DH8NGj6J.js → install-DIHCDDtX.js} +9 -9
  10. package/dist/{install-doctor-script-DNsrTMAN.js → install-doctor-script-CcM2cToW.js} +4 -4
  11. package/dist/{install-github-workflow-Dwbhz4Ie.js → install-github-workflow-BUaLt5mn.js} +5 -5
  12. package/dist/{install-react-doctor-CbaxnAd7.js → install-react-doctor-BnaGEio4.js} +8 -8
  13. package/dist/{jsx-runtime-6FiYholT.js → jsx-runtime-CKOQW4i4.js} +5 -5
  14. package/dist/{print-branded-header-BInuNRuu.js → print-branded-header-COh3X3He.js} +4 -4
  15. package/dist/{prompt-runtime-scan-url-C6X4JD_K.js → prompt-runtime-scan-url-lBPap3oz.js} +5 -5
  16. package/dist/{read-object-file-BUFoDFmn.js → read-object-file-sQUp7PMm.js} +4 -4
  17. package/dist/{record-metric-DyC3pVhz.js → record-metric-3hs8M2Pf.js} +73 -24
  18. package/dist/{report-error-94wHhwfJ.js → report-error-CtR7ISJa.js} +5 -5
  19. package/dist/{report-workflow-result-ID7Hld7R.js → report-workflow-result-C68s63w1.js} +5 -5
  20. package/dist/{resolve-scan-exit-code--p_tQCbx.js → resolve-scan-exit-code-DrC3xu0y.js} +39 -28
  21. package/dist/{resolve-scope-bYp84RdE.js → resolve-scope-Cq7AJdtO.js} +6 -6
  22. package/dist/{rules-B2-rRkNl.js → rules-BesJjxty.js} +6 -6
  23. package/dist/{run-scan-app-DL3_OYBB.js → run-scan-app-CfsLjIjZ.js} +10 -10
  24. package/dist/{runtime-scan-B5orrUKv.js → runtime-scan-DA2v7tXp.js} +9 -9
  25. package/dist/{sanitize-runtime-url-D_ODuw2I.js → sanitize-runtime-url-C9P8617N.js} +4 -4
  26. package/dist/{scan-BdM3bDAU.js → scan-BTjqJfRl.js} +9 -9
  27. package/dist/{should-skip-prompts-DLxdYV0L.js → should-skip-prompts-DjIiPcs_.js} +4 -4
  28. package/dist/{should-use-tui-cnY5YQlY.js → should-use-tui-Cd3om7tH.js} +4 -4
  29. package/dist/skills/react-doctor/references/explain.md +5 -0
  30. package/dist/{telemetry-runtime-BvalYKRt.js → telemetry-runtime-JrDTvdnm.js} +6 -6
  31. package/dist/{version-CN0HCSsI.js → version-osih6Dt3.js} +4 -4
  32. package/dist/{why-DoPhVMMc.js → why-BJLqu_nm.js} +4 -4
  33. package/dist/{with-run-span-BCXC9w-J.js → with-run-span-DJ74_coc.js} +5 -5
  34. package/package.json +2 -2
@@ -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]="023bf594-7144-5e5f-a0ea-c9e2a01edc5e")}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]="856f67e8-dba2-5eb4-94ed-6cda4e70c97b")}catch(e){}}();
3
3
  import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-lt2tTZjE.js";
4
- import { Mt as highlighter, Tn as runSync, b as isNonInteractiveEnvironment, cn as error$1, dn as warn, ln as info$1, un as log } from "./record-metric-DyC3pVhz.js";
4
+ import { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } from "./record-metric-3hs8M2Pf.js";
5
5
  import { a as chalk, i as stripAnsi, t as eastAsianWidth } from "./get-east-asian-width-DRPy7dqz.js";
6
6
  import * as fs$1 from "node:fs";
7
7
  import * as path$1 from "node:path";
@@ -2818,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
2818
2818
  //#endregion
2819
2819
  export { runGitAsync as A, isRecord as C, readPackageJson as D, packageHasRecordKey as E, writeJsonFile as M, cliLogger as N, resolveGitPath as O, getPackageJsonPath as S, packageHasNestedRecordKey as T, REACT_DOCTOR_COMMAND as _, installReactDoctorScriptStep as a, VITE_PLUS_HOOKS_PATH as b, spinner as c, HUSKY_HOOKS_PATH as d, LEFTHOOK_CONFIG_FILES as f, PRE_COMMIT_CONFIG_FILE as g, OVERCOMMIT_CONFIG_FILE as h, hasDoctorScript as i, runGitRaw as j, runGit as k, HOOK_FILE_NAME as l, NON_BLOCKING_REACT_DOCTOR_COMMAND as m, findNearestPackageDirectory as n, isSpinnerSilent as o, LEGACY_HOOK_RUNNER_RELATIVE_PATH as p, hasDoctorDependency as r, setSpinnerSilent as s, DOCTOR_PACKAGE_NAME as t, HOOK_RELATIVE_PATH as u, SIMPLE_GIT_HOOKS_CONFIG_FILE as v, packageHasDependency as w, ensureTrailingNewline as x, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as y };
2820
2820
 
2821
- //# sourceMappingURL=install-doctor-script-DNsrTMAN.js.map
2822
- //# debugId=023bf594-7144-5e5f-a0ea-c9e2a01edc5e
2821
+ //# sourceMappingURL=install-doctor-script-CcM2cToW.js.map
2822
+ //# debugId=856f67e8-dba2-5eb4-94ed-6cda4e70c97b
@@ -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]="3186622b-ec24-575e-9257-d30b4079c6cc")}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]="928e1ba7-611d-533e-9b2d-05a2e3024756")}catch(e){}}();
3
3
  import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-lt2tTZjE.js";
4
- import { _t as findGitRepositoryRoot } from "./record-metric-DyC3pVhz.js";
4
+ import { _t as findGitRepositoryRoot } from "./record-metric-3hs8M2Pf.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-DNsrTMAN.js";
6
+ import { N as cliLogger } from "./install-doctor-script-CcM2cToW.js";
7
7
  import { createRequire } from "node:module";
8
8
  import * as fs$1 from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -281,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
281
281
  //#endregion
282
282
  export { readReactDoctorWorkflow as a, workflowUsesV1Action as c, detectDefaultBranch as d, runCommand as f, isReactDoctorWorkflowInstalled as i, prompts as l, getReactDoctorWorkflowPath as n, upgradeReactDoctorWorkflowInPlace as o, installReactDoctorWorkflow as r, upgradeWorkflowActionToV2 as s, buildWorkflowContent as t, isCommandAvailable as u };
283
283
 
284
- //# sourceMappingURL=install-github-workflow-Dwbhz4Ie.js.map
285
- //# debugId=3186622b-ec24-575e-9257-d30b4079c6cc
284
+ //# sourceMappingURL=install-github-workflow-BUaLt5mn.js.map
285
+ //# debugId=928e1ba7-611d-533e-9b2d-05a2e3024756
@@ -1,11 +1,11 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="78f89d13-dddb-5ead-a28c-c422c16034a3")}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]="03a97117-4f40-558a-bd9f-5ac2bb0786eb")}catch(e){}}();
3
3
  import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-DyC3pVhz.js";
5
- import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-DNsrTMAN.js";
6
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-Dwbhz4Ie.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-DLxdYV0L.js";
8
- import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-ID7Hld7R.js";
4
+ import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-3hs8M2Pf.js";
5
+ import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-CcM2cToW.js";
6
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-BUaLt5mn.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-DjIiPcs_.js";
8
+ import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-C68s63w1.js";
9
9
  import * as fs$1 from "node:fs";
10
10
  import * as path$1 from "node:path";
11
11
  import { execFile } from "node:child_process";
@@ -1156,5 +1156,5 @@ const runInstallReactDoctor = async (options = {}) => {
1156
1156
  //#endregion
1157
1157
  export { askUpgradeActionVersion as a, recordCiPromptDecision as c, installReactDoctorAgentHooks as i, hasHandledActionUpgrade as l, runInstallReactDoctor as n, askAddToGitHubActions as o, findAgentsWithOutdatedReactDoctorHooks as r, hasHandledCiPrompt as s, getSkillSourceDirectory as t, recordActionUpgradeDecision as u };
1158
1158
 
1159
- //# sourceMappingURL=install-react-doctor-CbaxnAd7.js.map
1160
- //# debugId=78f89d13-dddb-5ead-a28c-c422c16034a3
1159
+ //# sourceMappingURL=install-react-doctor-BnaGEio4.js.map
1160
+ //# debugId=03a97117-4f40-558a-bd9f-5ac2bb0786eb
@@ -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]="a6a65022-4b03-58fc-a67d-a558b547d307")}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]="326dd7e8-101d-50ce-8ca4-012da08180f8")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { u as METRIC } from "./constants-lt2tTZjE.js";
5
- import { t as recordCount } from "./record-metric-DyC3pVhz.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-CUGaLi4F.js";
5
+ import { t as recordCount } from "./record-metric-3hs8M2Pf.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-BxFRFqPQ.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-6FiYholT.js.map
25874
- //# debugId=a6a65022-4b03-58fc-a67d-a558b547d307
25873
+ //# sourceMappingURL=jsx-runtime-CKOQW4i4.js.map
25874
+ //# debugId=326dd7e8-101d-50ce-8ca4-012da08180f8
@@ -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]="2cffe1bc-5eb1-5063-9409-b367e5f1e877")}catch(e){}}();
3
- import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-DyC3pVhz.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]="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";
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-BInuNRuu.js.map
22
- //# debugId=2cffe1bc-5eb1-5063-9409-b367e5f1e877
21
+ //# sourceMappingURL=print-branded-header-COh3X3He.js.map
22
+ //# debugId=8e2098ab-d09a-5c9e-91ca-a44c0e2ac08c
@@ -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]="aea3ad96-2327-5373-ac49-ce611340359a")}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]="76462545-71f5-5edf-bf49-51d3a707f769")}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-D_ODuw2I.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-6FiYholT.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";
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-C6X4JD_K.js.map
240
- //# debugId=aea3ad96-2327-5373-ac49-ce611340359a
239
+ //# sourceMappingURL=prompt-runtime-scan-url-lBPap3oz.js.map
240
+ //# debugId=76462545-71f5-5edf-bf49-51d3a707f769
@@ -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]="5d6a8b31-63df-58e3-a3c6-13fe4028eb44")}catch(e){}}();
3
- import { Gn as isPlainObject } from "./record-metric-DyC3pVhz.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]="461a3fb7-4bfc-5cac-a520-c52fbcef1ab1")}catch(e){}}();
3
+ import { Kn as isPlainObject } from "./record-metric-3hs8M2Pf.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-BUFoDFmn.js.map
24
- //# debugId=5d6a8b31-63df-58e3-a3c6-13fe4028eb44
23
+ //# sourceMappingURL=read-object-file-sQUp7PMm.js.map
24
+ //# debugId=461a3fb7-4bfc-5cac-a520-c52fbcef1ab1
@@ -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]="2214c36e-ea61-53f2-a85e-c0473cc1cd58")}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]="e737ba11-8496-537b-a8a6-16aef708e009")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
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";
5
5
  import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
@@ -20,7 +20,7 @@ import { Worker } from "node:worker_threads";
20
20
  import { parseSync } from "oxc-parser";
21
21
  import * as fs$1$1 from "node:fs/promises";
22
22
  import { ResolverFactory } from "oxc-resolver";
23
- import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_BRIDGE_RULES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, atomicWriteFile, classifySecurityScanFile, collectCrossFileDependencyProbes, getDiagnosticContextPath, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
23
+ import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, EXTERNAL_RULES, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_BRIDGE_RULES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, atomicWriteFile, classifySecurityScanFile, collectCrossFileDependencyProbes, getDiagnosticContextPath, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
24
24
  import { parseJSON5, parseJSONC } from "confbox";
25
25
  import { createJiti } from "jiti";
26
26
  import { PassThrough } from "node:stream";
@@ -67797,6 +67797,13 @@ const DEFAULT_SURFACE_EXCLUDED_TAGS = {
67797
67797
  ciFailure: ["design"]
67798
67798
  };
67799
67799
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
67800
+ const KNOWN_RULE_KEYS = new Set([...ALL_REACT_DOCTOR_RULE_KEYS, ...EXTERNAL_RULES.map((rule) => rule.key)]);
67801
+ const BUNDLED_RULE_NAMESPACES = new Set([...KNOWN_RULE_KEYS].flatMap(getEquivalentRuleKeys).map((key) => key.slice(0, key.lastIndexOf("/"))));
67802
+ const getUnknownBundledRuleKeys = (rules) => Object.keys(rules ?? {}).filter((key) => {
67803
+ const canonicalKey = canonicalizeUserRuleKey(key);
67804
+ const namespace = canonicalKey.slice(0, canonicalKey.lastIndexOf("/"));
67805
+ return BUNDLED_RULE_NAMESPACES.has(namespace) && !KNOWN_RULE_KEYS.has(canonicalKey);
67806
+ });
67800
67807
  const VALID_RULE_SEVERITIES = [
67801
67808
  "error",
67802
67809
  "warn",
@@ -67981,6 +67988,7 @@ const validateConfigTypes = (config) => {
67981
67988
  applyFieldValidator(config, validated, "surfaces", validateSurfacesField);
67982
67989
  for (const fieldName of SEVERITY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateSeverityMap(fieldName, value, fieldName === "categories"));
67983
67990
  applyFieldValidator(config, validated, "plugins", (value) => validateStringArrayField("plugins", value));
67991
+ 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.`);
67984
67992
  return validated;
67985
67993
  };
67986
67994
  const warn = (message) => {
@@ -70161,15 +70169,23 @@ const createSecurityScanSession = (rootDirectory, options) => {
70161
70169
  const rule = entry.rule;
70162
70170
  const scan = rule.scan;
70163
70171
  if (typeof scan !== "function") return [];
70172
+ const explicitRuleOverride = resolveRuleSeverityOverride({ ruleKey: entry.key }, options.severityControls);
70173
+ const severityOverride = explicitRuleOverride ?? resolveRuleSeverityOverride({
70174
+ ruleKey: entry.key,
70175
+ category: "Security"
70176
+ }, options.severityControls);
70177
+ if (severityOverride === "off") return [];
70164
70178
  if (!shouldEnableRuleByDefaultStatus({
70165
70179
  defaultEnabled: rule.defaultEnabled,
70166
70180
  includeTagDefaults: options.includeTagDefaults === true,
70167
- hasIncludedTags: includedTags.size > 0
70181
+ hasIncludedTags: includedTags.size > 0,
70182
+ hasExplicitOverride: explicitRuleOverride !== void 0
70168
70183
  })) return [];
70169
70184
  if (!shouldEnableRule(rule.requires, rule.tags, capabilities, ignoredTags, rule.disabledWhen, includedTags)) return [];
70170
70185
  return [{
70171
70186
  entry,
70172
70187
  scan,
70188
+ severityOverride,
70173
70189
  committedFilesOnly: rule.committedFilesOnly === true
70174
70190
  }];
70175
70191
  });
@@ -70187,10 +70203,13 @@ const createSecurityScanSession = (rootDirectory, options) => {
70187
70203
  };
70188
70204
  const scanFileByRule = function* (file) {
70189
70205
  if (file === null) return;
70190
- for (const { entry, scan, committedFilesOnly } of enabledScanRules) {
70206
+ for (const { entry, scan, severityOverride, committedFilesOnly } of enabledScanRules) {
70191
70207
  for (const finding of scan(file)) {
70192
70208
  if (committedFilesOnly && isFileGitIgnored(file)) continue;
70193
- const diagnostic = buildSecurityScanDiagnostic(finding, entry, file.relativePath);
70209
+ const diagnostic = buildSecurityScanDiagnostic(severityOverride === void 0 ? finding : {
70210
+ ...finding,
70211
+ severity: severityOverride
70212
+ }, entry, file.relativePath);
70194
70213
  const key = `${diagnostic.rule}:${diagnostic.filePath}:${diagnostic.line}:${diagnostic.column}:${diagnostic.message}`;
70195
70214
  if (seen.has(key)) continue;
70196
70215
  seen.add(key);
@@ -72101,7 +72120,7 @@ const normalizeConfigForHash = (config) => {
72101
72120
  if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
72102
72121
  return clone;
72103
72122
  };
72104
- const computeRulesetHash = (input) => crypto.createHash("sha1").update(JSON.stringify(normalizeConfigForHash(input.config))).update("\0").update([...input.toolchainVersions].join("\0")).update("\0").update([...input.ignorePatterns].join("\n")).update("\0").update(input.tsconfigContent ?? "").update("\0").update(input.respectInlineDisables ? "respect-inline-disables" : "audit-mode").digest("hex");
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");
72105
72124
  /**
72106
72125
  * Loads a plugin module via the local require resolver and extracts
72107
72126
  * `(name, ruleNames)` from either `module.exports.meta + rules` or
@@ -74256,33 +74275,58 @@ const spawnLintBatches = async (input) => {
74256
74275
  }
74257
74276
  const batchArgs = [...baseArgs, ...batch];
74258
74277
  try {
74259
- const spawnBatch = () => {
74278
+ const spawnBatch = async () => {
74260
74279
  const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
74261
74280
  if (effectiveSpawnTimeoutMs === 0) {
74262
74281
  deadlineSkippedFiles.push(...batch);
74263
74282
  batchState.deadlineSkippedFileCount += batch.length;
74264
- return Promise.resolve(null);
74283
+ return null;
74284
+ }
74285
+ const onStart = () => {
74286
+ if (batchState.didStart) return;
74287
+ batchState.didStart = true;
74288
+ startedFileCount += batchState.initialFileCount;
74289
+ reportBatchStarted(passBatches.length);
74290
+ };
74291
+ let argumentsList = batchArgs;
74292
+ if (input.workingDirectory !== void 0) {
74293
+ const selectedFiles = (await spawnOxlint([
74294
+ ...baseArgs,
74295
+ "--debug",
74296
+ "files",
74297
+ ...batch
74298
+ ], rootDirectory, nodeBinaryPath, effectiveSpawnTimeoutMs, outputMaxBytes, signal, onStart)).split(/\r?\n/).filter(Boolean).map((filePath) => path$1$1.resolve(rootDirectory, filePath));
74299
+ if (selectedFiles.length === 0) return JSON.stringify({ diagnostics: [] });
74300
+ argumentsList = [
74301
+ ...baseArgs,
74302
+ "--no-ignore",
74303
+ ...selectedFiles
74304
+ ];
74265
74305
  }
74266
74306
  return runOxlintJob({
74267
- argumentsList: batchArgs,
74268
- rootDirectory,
74307
+ argumentsList,
74308
+ rootDirectory: input.workingDirectory ?? rootDirectory,
74269
74309
  nodeBinaryPath,
74270
74310
  spawnTimeoutMs: effectiveSpawnTimeoutMs ?? 6e4,
74271
74311
  outputMaxBytes: outputMaxBytes ?? 52428800,
74272
74312
  maxWorkers: requestedConcurrency,
74273
74313
  filesystemCacheEpoch: input.spawnSlots?.filesystemCacheEpoch ?? null,
74274
74314
  abortSignal: signal,
74275
- onStart: () => {
74276
- if (batchState.didStart) return;
74277
- batchState.didStart = true;
74278
- startedFileCount += batchState.initialFileCount;
74279
- reportBatchStarted(passBatches.length);
74280
- }
74315
+ onStart
74281
74316
  });
74282
74317
  };
74283
74318
  const stdout = input.spawnSlots === void 0 ? await spawnBatch() : await input.spawnSlots.run(spawnBatch, signal);
74284
74319
  if (stdout === null) return [];
74285
- return parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, input.diagnosticContextDirectory);
74320
+ const diagnostics = parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, input.diagnosticContextDirectory);
74321
+ if (input.workingDirectory === void 0) return diagnostics;
74322
+ return diagnostics.map((diagnostic) => ({
74323
+ ...diagnostic,
74324
+ filePath: toNormalizedRelativePath(diagnostic.filePath, rootDirectory),
74325
+ ...diagnostic.relatedLocations ? { relatedLocations: diagnostic.relatedLocations.map((location) => ({
74326
+ ...location,
74327
+ filePath: toNormalizedRelativePath(location.filePath, rootDirectory)
74328
+ })) } : {}
74329
+ }));
74286
74330
  } catch (error) {
74287
74331
  if (!isSplittableReactDoctorError(error)) throw error;
74288
74332
  if (isPastDeadline()) {
@@ -75010,6 +75054,7 @@ const runOxlint = async (options) => {
75010
75054
  const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
75011
75055
  const configDirectory = fs$1$2.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
75012
75056
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
75057
+ const workingDirectory = fs$1$2.existsSync(path$1$1.join(rootDirectory, "oxlint-suppressions.json")) ? configDirectory : void 0;
75013
75058
  try {
75014
75059
  const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
75015
75060
  fs$1$2.mkdirSync(diagnosticContextDirectory);
@@ -75019,7 +75064,7 @@ const runOxlint = async (options) => {
75019
75064
  if (project.hasTypeScript) {
75020
75065
  const tsconfigRelativePath = resolveTsConfigRelativePath(rootDirectory);
75021
75066
  if (tsconfigRelativePath) {
75022
- sharedArgs.push("--tsconfig", tsconfigRelativePath);
75067
+ sharedArgs.push("--tsconfig", path$1$1.resolve(rootDirectory, tsconfigRelativePath));
75023
75068
  try {
75024
75069
  tsconfigContent = fs$1$2.readFileSync(path$1$1.resolve(rootDirectory, tsconfigRelativePath), "utf8");
75025
75070
  } catch {
@@ -75108,6 +75153,7 @@ const runOxlint = async (options) => {
75108
75153
  return spawnLintBatches({
75109
75154
  baseArgs: passBaseArgs,
75110
75155
  fileBatches: passFileBatches,
75156
+ workingDirectory,
75111
75157
  rootDirectory,
75112
75158
  nodeBinaryPath,
75113
75159
  project: lintProject,
@@ -75336,6 +75382,7 @@ const runOxlint = async (options) => {
75336
75382
  const runBatches = () => spawnLintBatches({
75337
75383
  baseArgs,
75338
75384
  fileBatches,
75385
+ workingDirectory,
75339
75386
  rootDirectory,
75340
75387
  nodeBinaryPath,
75341
75388
  project: lintProject,
@@ -76327,7 +76374,8 @@ const runInspect = (input, hooks = {}) => gen(function* () {
76327
76374
  return filteredDiagnostic === null ? none() : some(filteredDiagnostic);
76328
76375
  })));
76329
76376
  const applyPerElementPipeline = (rawStream) => filterPerElementPipeline(rawStream).pipe(tap((diagnostic) => reporterService.emit(diagnostic)));
76330
- const pnpmHardeningSeverity = resolveRuleSeverityOverride({ ruleKey: "react-doctor/require-pnpm-hardening" }, buildRuleSeverityControls(resolvedConfig.config));
76377
+ const severityControls = buildRuleSeverityControls(resolvedConfig.config);
76378
+ const pnpmHardeningSeverity = resolveRuleSeverityOverride({ ruleKey: "react-doctor/require-pnpm-hardening" }, severityControls);
76331
76379
  const envCollected = yield* runCollect(applyPerElementPipeline(fromIterable$1(isDiffMode ? [] : [
76332
76380
  ...checkReducedMotion(scanDirectory),
76333
76381
  ...pnpmHardeningSeverity === "warn" || pnpmHardeningSeverity === "error" ? checkPnpmHardening(scanDirectory) : [],
@@ -76339,6 +76387,7 @@ const runInspect = (input, hooks = {}) => gen(function* () {
76339
76387
  let didSecurityScanReachDeadline = false;
76340
76388
  const securityScanFiber = yield* forkChild(runCollect(applyPerElementPipeline(isDiffMode ? empty$4 : unwrap(tryPromise((signal) => checkSecurityScanCooperative(scanDirectory, {
76341
76389
  project,
76390
+ severityControls,
76342
76391
  ignoredTags: input.ignoredTags,
76343
76392
  includedTags: input.includedTags,
76344
76393
  includeTagDefaults: input.includeTagDefaults,
@@ -76386,7 +76435,7 @@ const runInspect = (input, hooks = {}) => gen(function* () {
76386
76435
  const maintainabilityPhaseTimeoutMs = yield* DeadCodePhaseTimeoutMs;
76387
76436
  const workerCountSuffix = scanConcurrency > 1 ? ` ${highlighter.dim(`[~${scanConcurrency} workers]`)}` : "";
76388
76437
  const projectCapabilities = getCapabilities(project);
76389
- const projectRuleSelections = resolveProjectRuleSelections(buildRuleSeverityControls(resolvedConfig.config)).filter((selection) => {
76438
+ const projectRuleSelections = resolveProjectRuleSelections(severityControls).filter((selection) => {
76390
76439
  const rule = REACT_DOCTOR_RULE_REGISTRY[selection.ruleId];
76391
76440
  return rule !== void 0 && shouldEnableRule(rule.requires, rule.tags, projectCapabilities, input.ignoredTags, rule.disabledWhen, input.includedTags) && (selection.ruleId === "duplicate-jsx-subtree" ? input.runDeadCode : !isDiffMode) && (showWarnings || projectRuleSelectionsMaySurfaceWhenWarningsAreHidden([selection]));
76392
76441
  });
@@ -77611,7 +77660,7 @@ const makeNoopConsole = () => ({
77611
77660
  });
77612
77661
  //#endregion
77613
77662
  //#region src/cli/utils/version.ts
77614
- const VERSION = "0.9.22-dev.e468c6f";
77663
+ const VERSION = "0.9.22-dev.ec45ff9";
77615
77664
  //#endregion
77616
77665
  //#region src/cli/utils/json-mode.ts
77617
77666
  let context = null;
@@ -77953,7 +78002,7 @@ const recordDistribution = (name, value, options = {}) => {
77953
78002
  } catch {}
77954
78003
  };
77955
78004
  //#endregion
77956
- export { buildRuleSeverityControls as $, scrubSensitivePaths as $t, Files as A, mergeAll$1 as An, hasSupportedFrameworkOrLibrary as At, PerFileLintCacheEnabled as B, messageFromUnknown as Bn, listSourceFilesCooperative as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, provideService as Cn, getChangedLineRanges as Ct, isCodingAgentEnvironment as D, try_ as Dn, getRuleMetadata as Dt, isCiOrCodingAgentEnvironment as E, sync as En, getEquivalentRuleKeys as Et, Linter as F, fail$5 as Fn, isReactDoctorError as Ft, SidecarLintCacheEnabled as G, isPlainObject as Gn, mergeAndFilterDiagnostics as Gt, Project as H, isDirectory as Hn, loadConfigWithSource as Ht, Maintainability as I, void_$1 as In, isSameRuleKey as It, anonymizeInPlace as J, resolveGithubActionsScoreMetadata as Jt, StagedFiles as K, mergeReactDoctorConfigs as Kt, NodeResolver as L, ParentSpan as Ln, isScanComplete as Lt, InvocationCaches as M, succeed$3 as Mn, highlighter as Mt, LEGACY_CONFIG_FILENAME as N, close as Nn, isPathInsideDirectory as Nt, Config as O, void_ as On, groupBy as Ot, LintPartialFailures as P, makeUnsafe$5 as Pn, isProjectDiscoveryError as Pt, buildRuleDocsUrl as Q, runInspect as Qt, OxlintConcurrency as R, isMonorepoRoot as Rn, layerObservability as Rt, isDebugFlagEnabled as S, provideContext as Sn, getBaselineDiffPlan as St, isCiEnvironment as T, runSync as Tn, getDiffInfo as Tt, Reporter as U, isErrnoException as Un, mapWithConcurrency as Ut, Progress as V, toCanonicalPath as Vn, listWorkspacePackages as Vt, Score as W, isFile as Wn, materializeSourceTree as Wt, atomicWriteJson as X, resolveScanTarget as Xt, anonymizeText as Y, resolveLintBatchOrdering as Yt, buildJsonReport as Z, restoreLegacyThrow as Zt, VERSION as _, makeSpan$1 as _n, findGitRepositoryRoot as _t, isEnvFlagEnabled as a, warmDuplicateJsxWorker as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, promise as bn, formatErrorChain as bt, setSentryProjectInfo as c, error as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, warn$1 as dn, createOxlintSpawnSlots as dt, setColorEnabled as en, buildSkippedChecks as et, setJsonReportDirectory as f, Diagnostic as fn, detectAiTrainingEnvironment as ft, writeJsonReport as g, gen as gn, filterSourceFiles as gt, writeJsonErrorReport as h, make$30 as hn, filterPathsOutsideDirectories as ht, isTelemetryEnabled as i, validateConfigTypes as in, clearConfigCache as it, Git as j, provide$2 as jn, hashFileContents as jt, DIAGNOSTIC_DELTA_IDENTITY as k, buildWithScope as kn, hasPublishedFixRecipe as kt, getRunId as l, info as ln, createChangedLineMatcher as lt, writeJsonCancellationReport as m, decodeUnknownSync as mn, filterDiagnosticsForSurface as mt, recordDistribution as n, summarizeDiagnostics as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, warmOxlintWorkerPool as on, computeConfigFingerprint as ot, setJsonReportMode as p, JsonReport as pn, discoverSupportedSubprojects as pt, SupplyChain as q, remainingDeadlineBudgetMs as qt, toSpanAttributes as r, toRelativePath as rn, classifyFileContext as rt, buildSentryProjectContext as s, Console as sn, computeDiagnosticDelta as st, recordCount as t, shouldUseMaintainabilityLayer as tn, calculateScore as tt, enableJsonMode as u, log as un, createInvocationCaches as ut, makeNoopConsole as v, map$3 as vn, findLegacyConfig as vt, detectRunnerOs as w, runPromise as wn, getDiagnosticRuleIdentity as wt, isGitHookEnvironment as x, provide as xn, formatReactDoctorError as xt, CliInputError as y, orElseSucceed as yn, fingerprintDiagnosticEvidence as yt, OxlintSpawnSlots as z, yieldToEventLoop as zn, listSourceFiles as zt };
78005
+ 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 };
77957
78006
 
77958
- //# sourceMappingURL=record-metric-DyC3pVhz.js.map
77959
- //# debugId=2214c36e-ea61-53f2-a85e-c0473cc1cd58
78007
+ //# sourceMappingURL=record-metric-3hs8M2Pf.js.map
78008
+ //# debugId=e737ba11-8496-537b-a8a6-16aef708e009
@@ -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]="cbbfc944-8316-589d-8a2b-147bf5f1ab4f")}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]="47c36756-7636-581f-b46a-00a13d700b89")}catch(e){}}();
3
3
  import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { Ft as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-DyC3pVhz.js";
5
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-BvalYKRt.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";
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-94wHhwfJ.js.map
65
- //# debugId=cbbfc944-8316-589d-8a2b-147bf5f1ab4f
64
+ //# sourceMappingURL=report-error-CtR7ISJa.js.map
65
+ //# debugId=47c36756-7636-581f-b46a-00a13d700b89
@@ -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]="87aecad6-8b2a-510a-a822-253c9cd8987c")}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]="bc5d1200-2da3-52cf-9cc0-740072cb5b85")}catch(e){}}();
3
3
  import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { t as recordCount } from "./record-metric-DyC3pVhz.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-Dwbhz4Ie.js";
4
+ import { t as recordCount } from "./record-metric-3hs8M2Pf.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-BUaLt5mn.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-ID7Hld7R.js.map
293
- //# debugId=87aecad6-8b2a-510a-a822-253c9cd8987c
292
+ //# sourceMappingURL=report-workflow-result-C68s63w1.js.map
293
+ //# debugId=bc5d1200-2da3-52cf-9cc0-740072cb5b85
@@ -1,18 +1,18 @@
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]="f844846c-d4a9-590d-ac48-ffd46fddd8de")}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]="980b0032-5614-5d53-aaef-78598b9ba7d4")}catch(e){}}();
3
3
  import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-lt2tTZjE.js";
4
4
  import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-af0VF8nQ.js";
5
- import { $ as buildRuleSeverityControls, A as Files, An as mergeAll, B as PerFileLintCacheEnabled, Bt as listSourceFilesCooperative, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideService, Dn as try_, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as sync, F as Linter, Ft as isReactDoctorError, G as SidecarLintCacheEnabled, Gt as mergeAndFilterDiagnostics, H as Project, Hn as isDirectory, I as Maintainability, Jt as resolveGithubActionsScoreMetadata, Kt as mergeReactDoctorConfigs, L as NodeResolver, Ln as ParentSpan, Lt as isScanComplete, M as InvocationCaches, Mn as succeed, Mt as highlighter, Nt as isPathInsideDirectory, O as Config, Ot as groupBy, P as LintPartialFailures, Q as buildRuleDocsUrl, Qt as runInspect, R as OxlintConcurrency, Rn as isMonorepoRoot, Sn as provideContext, T as isCiEnvironment, Tn as runSync, U as Reporter, Ut as mapWithConcurrency, V as Progress, Vt as listWorkspacePackages, W as Score, Wn as isFile, Wt as materializeSourceTree, X as atomicWriteJson, Xt as resolveScanTarget, Yt as resolveLintBatchOrdering, Zt as restoreLegacyThrow, _ as VERSION, an as warmDuplicateJsxWorker, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as promise, cn as error, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as warn, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as Diagnostic, gn as gen, gt as filterSourceFiles, ht as filterPathsOutsideDirectories, j as Git, jt as hashFileContents, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hasPublishedFixRecipe, l as getRunId, lt as createChangedLineMatcher, mn as decodeUnknownSync, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as summarizeDiagnostics, nt as canonicalizeUserRuleKey, on as warmOxlintWorkerPool, ot as computeConfigFingerprint, pt as discoverSupportedSubprojects, q as SupplyChain, qt as remainingDeadlineBudgetMs, r as toSpanAttributes, rt as classifyFileContext, sn as Console, st as computeDiagnosticDelta, t as recordCount, tn as shouldUseMaintainabilityLayer, tt as calculateScore, un as log, ut as createInvocationCaches, v as makeNoopConsole, vn as map, w as detectRunnerOs, wn as runPromise, wt as getDiagnosticRuleIdentity, xn as provide, y as CliInputError, yn as orElseSucceed, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as yieldToEventLoop, zt as listSourceFiles } from "./record-metric-DyC3pVhz.js";
6
- import { t as getTelemetryContext } from "./telemetry-runtime-BvalYKRt.js";
5
+ import { $ as buildRuleSeverityControls, $t as runInspect, A as Files, At as hasPublishedFixRecipe, B as PerFileLintCacheEnabled, Bn as yieldToEventLoop, Bt as listSourceFiles, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideContext, Dn as sync, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as runSync, F as Linter, G as SidecarLintCacheEnabled, Gn as isFile, Gt as materializeSourceTree, H as Project, Ht as listWorkspacePackages, I as Maintainability, It as isReactDoctorError, Jt as remainingDeadlineBudgetMs, Kt as mergeAndFilterDiagnostics, L as NodeResolver, M as InvocationCaches, Mt as hashFileContents, Nn as succeed, Nt as highlighter, O as Config, On as try_, Ot as getUnknownBundledRuleKeys, P as LintPartialFailures, Pt as isPathInsideDirectory, Q as buildRuleDocsUrl, Qt as restoreLegacyThrow, R as OxlintConcurrency, Rn as ParentSpan, Rt as isScanComplete, Sn as provide, T as isCiEnvironment, Tn as runPromise, U as Reporter, Un as isDirectory, V as Progress, Vt as listSourceFilesCooperative, W as Score, Wt as mapWithConcurrency, X as atomicWriteJson, Xt as resolveLintBatchOrdering, Yt as resolveGithubActionsScoreMetadata, Zt as resolveScanTarget, _ as VERSION, _n as gen, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as orElseSucceed, cn as Console, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as log, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as warn, gt as filterSourceFiles, hn as decodeUnknownSync, ht as filterPathsOutsideDirectories, j as Git, jn as mergeAll, k as DIAGNOSTIC_DELTA_IDENTITY, kt as groupBy, l as getRunId, ln as error, lt as createChangedLineMatcher, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as shouldUseMaintainabilityLayer, nt as canonicalizeUserRuleKey, on as warmDuplicateJsxWorker, ot as computeConfigFingerprint, pn as Diagnostic, pt as discoverSupportedSubprojects, q as SupplyChain, qt as mergeReactDoctorConfigs, r as toSpanAttributes, rn as summarizeDiagnostics, rt as classifyFileContext, sn as warmOxlintWorkerPool, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, ut as createInvocationCaches, v as makeNoopConsole, w as detectRunnerOs, wn as provideService, wt as getDiagnosticRuleIdentity, xn as promise, y as CliInputError, yn as map, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as isMonorepoRoot } from "./record-metric-3hs8M2Pf.js";
6
+ import { t as getTelemetryContext } from "./telemetry-runtime-JrDTvdnm.js";
7
7
  import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
8
- import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-CxquCOYK.js";
8
+ import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-BjoMRSay.js";
9
9
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
10
10
  import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
11
- import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DNsrTMAN.js";
12
- import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-Dwbhz4Ie.js";
13
- import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-bYp84RdE.js";
14
- import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-BCXC9w-J.js";
15
- import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-ID7Hld7R.js";
11
+ import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-CcM2cToW.js";
12
+ import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-BUaLt5mn.js";
13
+ import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-Cq7AJdtO.js";
14
+ import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-DJ74_coc.js";
15
+ import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-C68s63w1.js";
16
16
  import { createRequire } from "node:module";
17
17
  import * as fs$2 from "node:fs";
18
18
  import fs, { mkdtempSync, rmSync } from "node:fs";
@@ -558,6 +558,7 @@ const buildScanAttributes = (input) => {
558
558
  hasCustomConfig: input.hasCustomConfig,
559
559
  customRulesOnly: input.userConfig?.customRulesOnly ?? false,
560
560
  rulesConfigured: ruleKeys.length,
561
+ unknownBundledRuleCount: getUnknownBundledRuleKeys(input.userConfig?.rules).length,
561
562
  rulesDisabled: ruleKeys.filter((key) => ruleOverrides[key] === "off").length,
562
563
  projectAnalysisRuleCount: countOptInProjectRuleSelections(buildRuleSeverityControls(input.userConfig)),
563
564
  fileCount: input.result?.scannedFileCount,
@@ -1288,23 +1289,31 @@ const resolveSafeSourcePath = (rootDirectory, filePath) => {
1288
1289
  return null;
1289
1290
  }
1290
1291
  };
1291
- const readSourceRecord = (rootDirectory, filePath, state) => {
1292
+ const readSourceRecord = (rootDirectory, filePath, state, requiresSourceFile = false) => {
1292
1293
  const normalizedFilePath = filePath.replace(/\\/g, "/");
1293
- if (state.recordByFilePath.has(normalizedFilePath)) return state.recordByFilePath.get(normalizedFilePath) ?? null;
1294
- const absolutePath = resolveSafeSourcePath(rootDirectory, normalizedFilePath);
1295
- if (absolutePath === null) {
1296
- state.recordByFilePath.set(normalizedFilePath, null);
1297
- return null;
1298
- }
1294
+ let record = state.recordByFilePath.get(normalizedFilePath);
1295
+ if (record === null) return null;
1299
1296
  try {
1300
- const sourceText = fs.readFileSync(absolutePath, "utf-8");
1301
- const record = {
1302
- absolutePath,
1303
- filePath: normalizedFilePath,
1304
- sourceFile: typescriptBinding.createSourceFile(absolutePath, sourceText, typescriptBinding.ScriptTarget.Latest, true, getScriptKind(absolutePath)),
1305
- sourceText
1306
- };
1307
- state.recordByFilePath.set(normalizedFilePath, record);
1297
+ if (record === void 0) {
1298
+ const absolutePath = resolveSafeSourcePath(rootDirectory, normalizedFilePath);
1299
+ if (absolutePath === null) {
1300
+ state.recordByFilePath.set(normalizedFilePath, null);
1301
+ return null;
1302
+ }
1303
+ const sourceText = fs.readFileSync(absolutePath, "utf-8");
1304
+ let parsedSourceFile;
1305
+ record = {
1306
+ absolutePath,
1307
+ filePath: normalizedFilePath,
1308
+ get sourceFile() {
1309
+ parsedSourceFile ??= typescriptBinding.createSourceFile(absolutePath, sourceText, typescriptBinding.ScriptTarget.Latest, true, getScriptKind(absolutePath));
1310
+ return parsedSourceFile;
1311
+ },
1312
+ sourceText
1313
+ };
1314
+ state.recordByFilePath.set(normalizedFilePath, record);
1315
+ }
1316
+ if (requiresSourceFile) record.sourceFile;
1308
1317
  return record;
1309
1318
  } catch {
1310
1319
  state.recordByFilePath.set(normalizedFilePath, null);
@@ -1314,7 +1323,7 @@ const readSourceRecord = (rootDirectory, filePath, state) => {
1314
1323
  const listSourceRecords = (rootDirectory, state) => {
1315
1324
  if (state.sourceRecords !== null) return state.sourceRecords;
1316
1325
  state.sourceRecords = listSourceFiles(rootDirectory).flatMap((filePath) => {
1317
- const record = readSourceRecord(rootDirectory, filePath, state);
1326
+ const record = readSourceRecord(rootDirectory, filePath, state, true);
1318
1327
  return record === null ? [] : [record];
1319
1328
  });
1320
1329
  return state.sourceRecords;
@@ -1573,6 +1582,8 @@ const createDiagnosticEvidenceReader = (rootDirectory, options = {}) => {
1573
1582
  return (diagnostic) => {
1574
1583
  const record = readSourceRecord(rootDirectory, diagnostic.filePath, state);
1575
1584
  if (record === null || !Number.isInteger(diagnostic.line)) return null;
1585
+ const shouldResolveForwardedHandlers = Boolean(options.resolveForwardedHandlers);
1586
+ if (shouldResolveForwardedHandlers && readSourceRecord(rootDirectory, diagnostic.filePath, state, true) === null) return null;
1576
1587
  const sourceLines = record.sourceText.split(/\r?\n/);
1577
1588
  const startLineIndex = Math.max(0, diagnostic.line - 1);
1578
1589
  const endLineIndex = Math.max(startLineIndex, (diagnostic.endLine ?? diagnostic.line) - 1);
@@ -1581,7 +1592,7 @@ const createDiagnosticEvidenceReader = (rootDirectory, options = {}) => {
1581
1592
  const end = index === lines.length - 1 && diagnostic.endColumn !== void 0 ? diagnostic.endColumn - 1 : void 0;
1582
1593
  return line.slice(start, end);
1583
1594
  }).join("\n");
1584
- if (!options.resolveForwardedHandlers) return evidence;
1595
+ if (!shouldResolveForwardedHandlers) return evidence;
1585
1596
  const propNames = new Set(evidence.match(/\bon[A-Z]\w*\b/g) ?? []);
1586
1597
  if (propNames.size === 0) return evidence;
1587
1598
  const component = findEnclosingComponent(record, diagnostic);
@@ -3168,5 +3179,5 @@ const resolveScanExitCode = (input) => {
3168
3179
  //#endregion
3169
3180
  export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, resolveScanExitCode as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
3170
3181
 
3171
- //# sourceMappingURL=resolve-scan-exit-code--p_tQCbx.js.map
3172
- //# debugId=f844846c-d4a9-590d-ac48-ffd46fddd8de
3182
+ //# sourceMappingURL=resolve-scan-exit-code-DrC3xu0y.js.map
3183
+ //# debugId=980b0032-5614-5d53-aaef-78598b9ba7d4