react-doctor 0.9.12-dev.990daaf → 0.9.12-dev.a04b933

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 (33) hide show
  1. package/dist/{build-section-divider-CfzvcH0u.js → build-section-divider-DjCV2HOL.js} +7 -7
  2. package/dist/{ci-DnL7yq_D.js → ci-CwMvGkYy.js} +12 -12
  3. package/dist/cli.js +24 -24
  4. package/dist/{design-B8ccHPdQ.js → design-DoKT_GT0.js} +4 -4
  5. package/dist/{exit-gracefully-D5DYlWuv.js → exit-gracefully-BQ-JQ4VY.js} +6 -6
  6. package/dist/{handle-error-CCFAqzO1.js → handle-error-CIlfZTCg.js} +5 -5
  7. package/dist/index.js +75 -74
  8. package/dist/{inspect-DLPW57Dl.js → inspect-rQ3yxDa9.js} +16 -16
  9. package/dist/{install-0x4O-d3G.js → install-Bwu2EjPJ.js} +9 -9
  10. package/dist/{install-doctor-script-DgkdRcgO.js → install-doctor-script-CfZw7h2d.js} +4 -4
  11. package/dist/{install-github-workflow-CMGYT8Sl.js → install-github-workflow-DvxnRB3Y.js} +9 -5
  12. package/dist/{install-react-doctor-D1RpT9Xm.js → install-react-doctor-5MVVbdue.js} +8 -8
  13. package/dist/{jsx-runtime-BvjCY6VX.js → jsx-runtime-Dcnft-p1.js} +5 -5
  14. package/dist/{print-branded-header-YxgbRW5d.js → print-branded-header-DI1-HIl0.js} +4 -4
  15. package/dist/{prompt-runtime-scan-url-Dd_bj35X.js → prompt-runtime-scan-url-CQrpYLPh.js} +5 -5
  16. package/dist/{read-object-file-D7yYdwqv.js → read-object-file-rbFY7hbE.js} +4 -4
  17. package/dist/{record-metric-DIPLeNab.js → record-metric-k7DEXdXI.js} +78 -76
  18. package/dist/{report-error-DJZR8Tq1.js → report-error-BAAH4WBo.js} +5 -5
  19. package/dist/{report-workflow-result-Rb94RG5z.js → report-workflow-result-Okh4X5Ez.js} +5 -5
  20. package/dist/{resolve-scope-D-STb1gT.js → resolve-scope-DPT02RSg.js} +6 -6
  21. package/dist/{rules-CzdeF9zf.js → rules-B1LMF7qx.js} +6 -6
  22. package/dist/{run-scan-app-eHaynbf9.js → run-scan-app-BMP6V0eg.js} +15 -14
  23. package/dist/{runtime-scan-Bb0HT5UF.js → runtime-scan-B-zFPHoF.js} +9 -9
  24. package/dist/{sanitize-runtime-url-Dt3Vt--J.js → sanitize-runtime-url-56-8nHlq.js} +4 -4
  25. package/dist/{scan-CjjO1QrG.js → scan-BwAd761h.js} +9 -9
  26. package/dist/{should-fail-scan-gate-CXek96Ux.js → should-fail-scan-gate-BWX9GH3s.js} +11 -11
  27. package/dist/{should-skip-prompts-CvrObON2.js → should-skip-prompts-C_oGtI-A.js} +4 -4
  28. package/dist/{should-use-tui-C9VEED7D.js → should-use-tui-D_xjoJCo.js} +4 -4
  29. package/dist/{telemetry-runtime-DZaIMuWS.js → telemetry-runtime-DibLC4-s.js} +4 -4
  30. package/dist/{version-uIjOAva3.js → version-DJ3WXGIJ.js} +4 -4
  31. package/dist/{why-DoZufIJb.js → why-skpo1VMd.js} +4 -4
  32. package/dist/{with-run-span-BknYWuxL.js → with-run-span-DbP8Goij.js} +5 -5
  33. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="244cfe49-6212-539b-8279-e2a3cb05c3ee")}catch(e){}}();
3
- import { B as isNonInteractiveEnvironment, Cn as error$1, En as warn, Kt as highlighter, Tn as log, k as RUN_GIT_MAX_BUFFER_BYTES, wn as info$1, zn as runSync } from "./record-metric-DIPLeNab.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]="d670b0d2-90d3-5288-8828-4566c935a1b1")}catch(e){}}();
3
+ import { B as isNonInteractiveEnvironment, Cn as error$1, En as warn, Kt as highlighter, Tn as log, k as RUN_GIT_MAX_BUFFER_BYTES, wn as info$1, zn as runSync } from "./record-metric-k7DEXdXI.js";
4
4
  import { a as chalk, i as stripAnsi, t as eastAsianWidth } from "./get-east-asian-width-Cglw13G7.js";
5
5
  import { execFileSync } from "node:child_process";
6
6
  import * as path$1 from "node:path";
@@ -2805,5 +2805,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
2805
2805
  //#endregion
2806
2806
  export { runGitRaw as A, isRecord as C, readPackageJson as D, packageHasRecordKey as E, cliLogger as M, 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, writeJsonFile 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 };
2807
2807
 
2808
- //# sourceMappingURL=install-doctor-script-DgkdRcgO.js.map
2809
- //# debugId=244cfe49-6212-539b-8279-e2a3cb05c3ee
2808
+ //# sourceMappingURL=install-doctor-script-CfZw7h2d.js.map
2809
+ //# debugId=d670b0d2-90d3-5288-8828-4566c935a1b1
@@ -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]="1844ebd3-e8bd-5869-bdac-97a12efcad8f")}catch(e){}}();
3
- import { w as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./record-metric-DIPLeNab.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]="4e5c16b4-0a3c-55a1-a5d2-f9f5e1af58f8")}catch(e){}}();
3
+ import { w as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./record-metric-k7DEXdXI.js";
4
4
  import { t as unrefStdin } from "./unref-stdin-BKT_s38a.js";
5
- import { M as cliLogger } from "./install-doctor-script-DgkdRcgO.js";
5
+ import { M as cliLogger } from "./install-doctor-script-CfZw7h2d.js";
6
6
  import { createRequire } from "node:module";
7
7
  import { execFile } from "node:child_process";
8
8
  import * as path$1 from "node:path";
@@ -183,6 +183,10 @@ jobs:
183
183
  # the gate: uncomment the block below and set blocking to "error" (fail
184
184
  # on new error-severity findings) or "warning" (fail on any finding).
185
185
  # Full reference: https://www.react.doctor/ci
186
+ #
187
+ # Security: @v2 is a floating major tag that may move. For supply-chain-
188
+ # hardened CI, pin to a full commit SHA with a version comment instead:
189
+ # uses: millionco/react-doctor@<sha> # v2.x.x
186
190
  # with:
187
191
  # blocking: error # Gate level: "none" (advisory, the default) | "warning" | "error"
188
192
  # scope: full # On PRs, scan the whole project instead of just changed files
@@ -263,5 +267,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
263
267
  //#endregion
264
268
  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 };
265
269
 
266
- //# sourceMappingURL=install-github-workflow-CMGYT8Sl.js.map
267
- //# debugId=1844ebd3-e8bd-5869-bdac-97a12efcad8f
270
+ //# sourceMappingURL=install-github-workflow-DvxnRB3Y.js.map
271
+ //# debugId=4e5c16b4-0a3c-55a1-a5d2-f9f5e1af58f8
@@ -1,10 +1,10 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b7118a38-b64b-5720-bad0-04dbeac14534")}catch(e){}}();
3
- import { C as CI_TRUST_COMPANIES, Kt as highlighter, T as METRIC, br as isErrnoException, cr as GITHUB_ACTIONS_SETUP_URL, gr as SKILL_NAME, t as recordCount, z as CliInputError } from "./record-metric-DIPLeNab.js";
4
- import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M 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, j as writeJsonFile, 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-DgkdRcgO.js";
5
- 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-CMGYT8Sl.js";
6
- import { t as shouldSkipPrompts } from "./should-skip-prompts-CvrObON2.js";
7
- import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, 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-Rb94RG5z.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]="4cf96540-fa9d-5b24-809c-031ffdcf3523")}catch(e){}}();
3
+ import { C as CI_TRUST_COMPANIES, Kt as highlighter, T as METRIC, br as isErrnoException, cr as GITHUB_ACTIONS_SETUP_URL, gr as SKILL_NAME, t as recordCount, z as CliInputError } from "./record-metric-k7DEXdXI.js";
4
+ import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M 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, j as writeJsonFile, 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-CfZw7h2d.js";
5
+ 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-DvxnRB3Y.js";
6
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-C_oGtI-A.js";
7
+ import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, 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-Okh4X5Ez.js";
8
8
  import { execFile } from "node:child_process";
9
9
  import * as path$1 from "node:path";
10
10
  import * as fs$1 from "node:fs";
@@ -1152,5 +1152,5 @@ const runInstallReactDoctor = async (options = {}) => {
1152
1152
  //#endregion
1153
1153
  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 };
1154
1154
 
1155
- //# sourceMappingURL=install-react-doctor-D1RpT9Xm.js.map
1156
- //# debugId=b7118a38-b64b-5720-bad0-04dbeac14534
1155
+ //# sourceMappingURL=install-react-doctor-5MVVbdue.js.map
1156
+ //# debugId=4cf96540-fa9d-5b24-809c-031ffdcf3523
@@ -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]="c905b5d6-18fa-56d8-a027-65e903a79a3b")}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]="1d2cba05-36bb-5d32-b2b7-81a22c6c0719")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { T as METRIC, t as recordCount } from "./record-metric-DIPLeNab.js";
5
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-D5DYlWuv.js";
4
+ import { T as METRIC, t as recordCount } from "./record-metric-k7DEXdXI.js";
5
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-BQ-JQ4VY.js";
6
6
  import { a as chalk, i as stripAnsi, n as isFullWidth$1, r as isWide$1 } from "./get-east-asian-width-Cglw13G7.js";
7
7
  import { EventEmitter } from "node:events";
8
8
  import { execFileSync } from "node:child_process";
@@ -25869,5 +25869,5 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25869
25869
  //#endregion
25870
25870
  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 };
25871
25871
 
25872
- //# sourceMappingURL=jsx-runtime-BvjCY6VX.js.map
25873
- //# debugId=c905b5d6-18fa-56d8-a027-65e903a79a3b
25872
+ //# sourceMappingURL=jsx-runtime-Dcnft-p1.js.map
25873
+ //# debugId=1d2cba05-36bb-5d32-b2b7-81a22c6c0719
@@ -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]="3d916820-7a44-5686-bbf7-be962aa47a43")}catch(e){}}();
3
- import { An as gen, Kt as highlighter, Tn as log, _ as VERSION } from "./record-metric-DIPLeNab.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]="77dcb085-0a8c-5e13-99e6-20d309728629")}catch(e){}}();
3
+ import { An as gen, Kt as highlighter, Tn as log, _ as VERSION } from "./record-metric-k7DEXdXI.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-YxgbRW5d.js.map
22
- //# debugId=3d916820-7a44-5686-bbf7-be962aa47a43
21
+ //# sourceMappingURL=print-branded-header-DI1-HIl0.js.map
22
+ //# debugId=77dcb085-0a8c-5e13-99e6-20d309728629
@@ -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]="60aa194e-32c2-5d42-b3ce-1ce03e3fe037")}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]="95aa8e3b-0e83-5950-b6b6-fda0c314b540")}catch(e){}}();
3
3
  import { t as unrefStdin } from "./unref-stdin-BKT_s38a.js";
4
- import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-Dt3Vt--J.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-BvjCY6VX.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-56-8nHlq.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-Dcnft-p1.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-Dd_bj35X.js.map
240
- //# debugId=60aa194e-32c2-5d42-b3ce-1ce03e3fe037
239
+ //# sourceMappingURL=prompt-runtime-scan-url-CQrpYLPh.js.map
240
+ //# debugId=95aa8e3b-0e83-5950-b6b6-fda0c314b540
@@ -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]="2f155ce4-d672-52d5-9d70-c7edd24a5493")}catch(e){}}();
3
- import { Sr as isPlainObject } from "./record-metric-DIPLeNab.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]="12955a2f-0312-5ddf-b56f-88ba3dcb4558")}catch(e){}}();
3
+ import { Sr as isPlainObject } from "./record-metric-k7DEXdXI.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-D7yYdwqv.js.map
24
- //# debugId=2f155ce4-d672-52d5-9d70-c7edd24a5493
23
+ //# sourceMappingURL=read-object-file-rbFY7hbE.js.map
24
+ //# debugId=12955a2f-0312-5ddf-b56f-88ba3dcb4558
@@ -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]="6a38f08e-4076-5481-99de-0cfbca19f06d")}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]="9fa76432-4f72-5a7c-9f34-5981771572a8")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { n as require_picomatch, t as require_semver } from "./semver-DFtnEmN-.js";
5
5
  import { createRequire } from "node:module";
@@ -20,7 +20,7 @@ import { fileURLToPath } from "node:url";
20
20
  import * as OS from "node:os";
21
21
  import os from "node:os";
22
22
  import { createJiti } from "jiti";
23
- import { parseJSON5 } from "confbox";
23
+ import { parseJSON5, parseJSONC } from "confbox";
24
24
  import * as fs$1 from "node:fs/promises";
25
25
  import { PassThrough } from "node:stream";
26
26
  import { convertToTSX } from "@astrojs/compiler/sync";
@@ -67920,6 +67920,28 @@ const checkExpoEnvLocalFiles = (context) => {
67920
67920
  help: `Add \`.env*.local\` to your .gitignore. If already committed, untrack with \`git rm --cached ${committedEnvFiles.join(" ")}\``
67921
67921
  })];
67922
67922
  };
67923
+ const JAVASCRIPT_MODULE_FILE_PATTERN = /\.[cm]?[jt]sx?$/;
67924
+ const hasStaticModuleSubpath = (rootDirectory, packageName) => {
67925
+ const packageSubpathPrefix = `${packageName}/`;
67926
+ for (const { absolutePath, name } of walkSourceTreeFiles(rootDirectory)) {
67927
+ if (!JAVASCRIPT_MODULE_FILE_PATTERN.test(name)) continue;
67928
+ let sourceText;
67929
+ try {
67930
+ sourceText = fs$1$3.readFileSync(absolutePath, "utf-8");
67931
+ } catch {
67932
+ continue;
67933
+ }
67934
+ if (!sourceText.includes(packageSubpathPrefix)) continue;
67935
+ let moduleSpecifiers;
67936
+ try {
67937
+ moduleSpecifiers = collectStaticModuleSpecifiers(sourceText, { filePath: absolutePath });
67938
+ } catch {
67939
+ continue;
67940
+ }
67941
+ for (const moduleSpecifier of moduleSpecifiers) if (moduleSpecifier.startsWith(packageSubpathPrefix)) return true;
67942
+ }
67943
+ return false;
67944
+ };
67923
67945
  const isExpoSdkAtLeast = (expoSdkMajor, minMajor) => expoSdkMajor !== null && expoSdkMajor >= minMajor;
67924
67946
  const UNIMODULES_HELP = "Remove every `@unimodules/*` and `react-native-unimodules` package — their functionality now lives in `expo-modules-core`. See https://expo.fyi/r/sdk-44-remove-unimodules";
67925
67947
  const FIREBASE_HELP = "Use the Firebase JS SDK or React Native Firebase directly. See https://expo.fyi/firebase-migration-guide";
@@ -67973,7 +67995,8 @@ const FLAGGED_DEPENDENCIES = [
67973
67995
  packageName: "@expo/metro-config",
67974
67996
  rule: "expo-no-redundant-dependency",
67975
67997
  message: "\"@expo/metro-config\" should not be a direct dependency. Expo pins the compatible Metro config, and a direct entry can drift to a version that breaks bundling",
67976
- help: "Remove `@expo/metro-config` and import `expo/metro-config` in your metro.config.js"
67998
+ help: "Remove `@expo/metro-config` and import `expo/metro-config` in your metro.config.js",
67999
+ skipWhenSubpathImported: true
67977
68000
  },
67978
68001
  {
67979
68002
  packageName: "@types/react-native",
@@ -68034,8 +68057,9 @@ const FLAGGED_DEPENDENCIES = [
68034
68057
  ];
68035
68058
  const checkExpoFlaggedDependencies = (context) => FLAGGED_DEPENDENCIES.filter((flaggedDependency) => {
68036
68059
  if (!context.directDependencyNames.has(flaggedDependency.packageName)) return false;
68037
- if (flaggedDependency.minSdkMajor === void 0) return true;
68038
- return isExpoSdkAtLeast(context.expoSdkMajor, flaggedDependency.minSdkMajor);
68060
+ if (flaggedDependency.minSdkMajor !== void 0 && !isExpoSdkAtLeast(context.expoSdkMajor, flaggedDependency.minSdkMajor)) return false;
68061
+ if (flaggedDependency.skipWhenSubpathImported && hasStaticModuleSubpath(context.rootDirectory, flaggedDependency.packageName)) return false;
68062
+ return true;
68039
68063
  }).map((flaggedDependency) => buildExpoDiagnostic({
68040
68064
  rule: flaggedDependency.rule,
68041
68065
  message: flaggedDependency.message,
@@ -71508,59 +71532,11 @@ const isLocalPathExtend = (entry) => {
71508
71532
  for (const prefix of EXTENDS_LOCAL_PATH_PREFIXES) if (entry.startsWith(prefix)) return true;
71509
71533
  return false;
71510
71534
  };
71511
- const stripJsoncComments = (raw) => {
71512
- let result = "";
71513
- let cursor = 0;
71514
- let inString = false;
71515
- let stringQuote = "";
71516
- while (cursor < raw.length) {
71517
- const character = raw[cursor];
71518
- const nextCharacter = raw[cursor + 1];
71519
- if (inString) {
71520
- result += character;
71521
- if (character === "\\" && cursor + 1 < raw.length) {
71522
- result += nextCharacter;
71523
- cursor += 2;
71524
- continue;
71525
- }
71526
- if (character === stringQuote) inString = false;
71527
- cursor += 1;
71528
- continue;
71529
- }
71530
- if (character === "\"" || character === "'") {
71531
- inString = true;
71532
- stringQuote = character;
71533
- result += character;
71534
- cursor += 1;
71535
- continue;
71536
- }
71537
- if (character === "/" && nextCharacter === "/") {
71538
- const lineEndIndex = raw.indexOf("\n", cursor);
71539
- cursor = lineEndIndex === -1 ? raw.length : lineEndIndex;
71540
- continue;
71541
- }
71542
- if (character === "/" && nextCharacter === "*") {
71543
- const blockEndIndex = raw.indexOf("*/", cursor + 2);
71544
- cursor = blockEndIndex === -1 ? raw.length : blockEndIndex + 2;
71545
- continue;
71546
- }
71547
- result += character;
71548
- cursor += 1;
71549
- }
71550
- return result;
71551
- };
71552
- const parseJsonOrJsonc = (raw) => {
71553
- try {
71554
- return JSON.parse(raw);
71555
- } catch {
71556
- return JSON.parse(stripJsoncComments(raw));
71557
- }
71558
- };
71559
71535
  const canOxlintExtendConfig = (configPath) => {
71560
71536
  if (!configPath.endsWith(".eslintrc.json")) return true;
71561
71537
  let parsed;
71562
71538
  try {
71563
- parsed = parseJsonOrJsonc(fs$1$3.readFileSync(configPath, "utf-8"));
71539
+ parsed = parseJSONC(fs$1$3.readFileSync(configPath, "utf-8"), { allowTrailingComma: true });
71564
71540
  } catch {
71565
71541
  return true;
71566
71542
  }
@@ -71669,6 +71645,25 @@ const detectUserLintConfigPaths = (rootDirectory) => {
71669
71645
  }
71670
71646
  return [];
71671
71647
  };
71648
+ const readAdoptedLintConfigSettings = (configPaths) => {
71649
+ const mergedSettings = /* @__PURE__ */ new Map();
71650
+ for (const configPath of configPaths) {
71651
+ let parsed;
71652
+ try {
71653
+ parsed = parseJSONC(fs$1$3.readFileSync(configPath, "utf-8"), { allowTrailingComma: true });
71654
+ } catch {
71655
+ continue;
71656
+ }
71657
+ if (!isPlainObject(parsed)) continue;
71658
+ const settings = parsed.settings;
71659
+ if (!isPlainObject(settings)) continue;
71660
+ for (const [pluginName, pluginSettings] of Object.entries(settings)) {
71661
+ if (pluginName === "react-doctor") continue;
71662
+ mergedSettings.set(pluginName, pluginSettings);
71663
+ }
71664
+ }
71665
+ return Object.fromEntries(mergedSettings);
71666
+ };
71672
71667
  const DISABLE_DIRECTIVE_PATTERN = /(eslint|oxlint)-disable/;
71673
71668
  const getBackupRootDirectory = (rootDirectory) => path$1$1.join(rootDirectory, ...DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS);
71674
71669
  const getBackupPath = (rootDirectory, absolutePath) => {
@@ -72065,7 +72060,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
72065
72060
  }
72066
72061
  return enabled;
72067
72062
  };
72068
- const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
72063
+ const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
72069
72064
  const hasIncludedTags = includedTags.size > 0;
72070
72065
  const reactHooksJsPlugin = disableReactHooksJsPlugin || ruleSelection === "sidecar" || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
72071
72066
  const reactCompilerRules = reactHooksJsPlugin ? applyRuleSeverityControls(filterRulesToAvailable(REACT_COMPILER_RULES, "react-hooks-js", reactHooksJsPlugin.availableRuleNames), severityControls) : {};
@@ -72120,23 +72115,26 @@ const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, exte
72120
72115
  },
72121
72116
  plugins: [],
72122
72117
  jsPlugins: [...jsPlugins, pluginPath],
72123
- settings: { "react-doctor": {
72124
- portedRuleMode: "curated",
72125
- framework: project.framework,
72126
- rootDirectory: settingsRootDirectory,
72127
- capabilities: [...capabilities].sort(),
72128
- ...runtimeGlobals && runtimeGlobals.length > 0 ? { runtimeGlobals: [...runtimeGlobals] } : {},
72129
- ...unpluginAutoImportGlobalScopes && unpluginAutoImportGlobalScopes.length > 0 ? {
72130
- unpluginAutoImportRootDirectories: [...new Set([settingsRootDirectory, project.rootDirectory])],
72131
- unpluginAutoImportGlobalScopes: unpluginAutoImportGlobalScopes.map((scope) => ({
72132
- directory: scope.directory,
72133
- names: [...scope.names]
72134
- }))
72135
- } : {},
72136
- ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
72137
- ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
72138
- ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
72139
- } },
72118
+ settings: {
72119
+ ...adoptedSettings,
72120
+ "react-doctor": {
72121
+ portedRuleMode: "curated",
72122
+ framework: project.framework,
72123
+ rootDirectory: settingsRootDirectory,
72124
+ capabilities: [...capabilities].sort(),
72125
+ ...runtimeGlobals && runtimeGlobals.length > 0 ? { runtimeGlobals: [...runtimeGlobals] } : {},
72126
+ ...unpluginAutoImportGlobalScopes && unpluginAutoImportGlobalScopes.length > 0 ? {
72127
+ unpluginAutoImportRootDirectories: [...new Set([settingsRootDirectory, project.rootDirectory])],
72128
+ unpluginAutoImportGlobalScopes: unpluginAutoImportGlobalScopes.map((scope) => ({
72129
+ directory: scope.directory,
72130
+ names: [...scope.names]
72131
+ }))
72132
+ } : {},
72133
+ ...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
72134
+ ...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
72135
+ ...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
72136
+ }
72137
+ },
72140
72138
  rules: {
72141
72139
  ...reactCompilerRules,
72142
72140
  ...enabledReactDoctorRules,
@@ -74245,7 +74243,9 @@ const runOxlint = async (options) => {
74245
74243
  return [];
74246
74244
  }
74247
74245
  const pluginPath = resolvePluginPath();
74248
- const extendsPaths = (adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : []).filter(canOxlintExtendConfig);
74246
+ const detectedConfigPaths = adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : [];
74247
+ const extendsPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
74248
+ const adoptedSettings = detectedConfigPaths.length > 0 ? readAdoptedLintConfigSettings(detectedConfigPaths) : {};
74249
74249
  const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
74250
74250
  const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
74251
74251
  const configDirectory = fs$1$3.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
@@ -74307,6 +74307,7 @@ const runOxlint = async (options) => {
74307
74307
  serverAuthFunctionNames,
74308
74308
  projectIndexModuleSources,
74309
74309
  severityControls,
74310
+ adoptedSettings,
74310
74311
  userPlugins,
74311
74312
  disableReactHooksJsPlugin: overrides.disableReactHooksJsPlugin,
74312
74313
  ruleSelection: overrides.ruleSelection,
@@ -76718,6 +76719,7 @@ const METRIC = {
76718
76719
  tuiIssueStreamShown: "tui.issue_stream_shown",
76719
76720
  tuiProjectPathContextShown: "tui.project_path_context_shown",
76720
76721
  tuiProjectSelectShown: "tui.project_select_shown",
76722
+ tuiCiRecommendationShown: "tui.ci_recommendation_shown",
76721
76723
  tuiReportActionSelected: "tui.report_action_selected",
76722
76724
  tuiCancelled: "tui.cancelled",
76723
76725
  tuiScanInlineShown: "tui.scan_inline_shown",
@@ -76766,7 +76768,7 @@ const makeNoopConsole = () => ({
76766
76768
  });
76767
76769
  //#endregion
76768
76770
  //#region src/cli/utils/version.ts
76769
- const VERSION = "0.9.12-dev.990daaf";
76771
+ const VERSION = "0.9.12-dev.a04b933";
76770
76772
  //#endregion
76771
76773
  //#region src/cli/utils/json-mode.ts
76772
76774
  let context = null;
@@ -77110,5 +77112,5 @@ const recordDistribution = (name, value, options = {}) => {
77110
77112
  //#endregion
77111
77113
  export { Linter as $, CANONICAL_DISCORD_URL as $n, layerObservability as $t, SCAN_RESULT_CACHE_FILENAME as A, gen as An, discoverSupportedSubprojects as At, isNonInteractiveEnvironment as B, sync as Bn, getDiffInfo as Bt, CI_TRUST_COMPANIES as C, error as Cn, messageFromUnknown as Cr, collectSourceFileCountsByDirectory as Ct, NANOSECONDS_PER_MILLISECOND as D, Diagnostic as Dn, createNodeReadFileLinesSync as Dt, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as E, warn$1 as En, countOptInProjectRuleSelections as Et, STAGED_FILES_TEMP_DIR_PREFIX as F, provide as Fn, formatErrorChain as Ft, isCiEnvironment as G, provide$2 as Gn, hashFileContents as Gt, isDebugFlagEnabled as H, void_ as Hn, groupBy as Ht, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as I, provideContext as In, formatReactDoctorError as It, Config as J, makeUnsafe$5 as Jn, isPathInsideDirectory as Jt, isCiOrCodingAgentEnvironment as K, succeed$3 as Kn, highlighter as Kt, TUI_REPORT_COMPACT_MAX_ROWS as L, provideService as Ln, getBaselineDiffPlan as Lt, SENTRY_DSN as M, map$3 as Mn, filterPathsOutsideDirectories as Mt, SENTRY_FLUSH_TIMEOUT_MS as N, orElseSucceed as Nn, filterSourceFiles as Nt, REACT_DOCTOR_CONFIG_PROJECT_NAME as O, decodeUnknownSync as On, createOxlintSpawnSlots as Ot, SENTRY_RELEASE_PREFIX as P, promise as Pn, findLegacyConfig as Pt, LintPartialFailures as Q, AXIOM_DEFAULT_DOMAIN as Qn, isScanComplete as Qt, TUI_REPORT_DETAIL_WIDTH_FRACTION as R, runPromise as Rn, getChangedLineRanges as Rt, BASELINE_FILES_TEMP_DIR_PREFIX as S, Console as Sn, isPlainObject as Sr, clearConfigCache as St, METRIC as T, log as Tn, computeDiagnosticDelta as Tt, ACTION_INPUT_ENVIRONMENT_VARIABLES as U, buildWithScope as Un, hasPublishedFixRecipe as Ut, isGitHookEnvironment as V, try_ as Vn, getEquivalentRuleKeys as Vt, detectRunnerOs as W, mergeAll$1 as Wn, hasSupportedFrameworkOrLibrary as Wt, Git as X, void_$1 as Xn, isReactDoctorError as Xt, Files as Y, fail$5 as Yn, isProjectDiscoveryError as Yt, LEGACY_CONFIG_FILENAME as Z, ParentSpan as Zn, isSameRuleKey as Zt, VERSION as _, shouldUseMaintainabilityLayer as _n, STAGED_FILES_PROJECT_CONFIG_FILENAMES as _r, buildRuleSeverityControls as _t, isEnvFlagEnabled as a, materializeSourceTree as an, DIAGNOSTIC_CATEGORY_BUCKETS as ar, Progress as at, AXIOM_METRICS_DATASET as b, validateConfigTypes as bn, isErrnoException as br, canonicalizeUserRuleKey as bt, setSentryProjectInfo as c, resolveGithubActionsScoreMetadata as cn, GITHUB_ACTIONS_SETUP_URL as cr, Score as ct, isJsonModeActive as d, resolveScanConcurrency as dn, JSX_DUPLICATION_SOURCE_FILE_PATTERN as dr, SupplyChain as dt, listSourceFiles as en, CANONICAL_GITHUB_URL as er, Maintainability as et, setJsonReportDirectory as f, resolveScanTarget as fn, JSX_FILE_PATTERN as fr, anonymizeInPlace as ft, writeJsonReport as g, setColorEnabled as gn, SKILL_NAME as gr, buildRuleDocsUrl as gt, writeJsonErrorReport as h, scrubSensitivePaths as hn, SHARE_BASE_URL as hr, buildJsonReport as ht, isTelemetryEnabled as i, mapWithConcurrency as in, CONFIG_SCHEMA_URL as ir, PerFileLintCacheEnabled as it, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as j, makeSpan$1 as jn, filterDiagnosticsForSurface as jt, RUN_GIT_MAX_BUFFER_BYTES as k, make$30 as kn, detectAiTrainingEnvironment as kt, getRunId as l, resolveLintBatchOrdering as ln, GIT_SHOW_MAX_BUFFER_BYTES as lr, SidecarLintCacheEnabled as lt, writeJsonCancellationReport as m, runInspect as mn, OXLINT_NODE_REQUIREMENT as mr, atomicWriteJson as mt, recordDistribution as n, listWorkspacePackages as nn, COMPILER_CLEANUP_BUCKET as nr, OxlintConcurrency as nt, buildSentryScope as o, mergeReactDoctorConfigs as on, DOCS_URL as or, Project as ot, setJsonReportMode as p, restoreLegacyThrow as pn, MILLISECONDS_PER_SECOND as pr, anonymizeText as pt, isCodingAgentEnvironment as q, close as qn, isMonorepoRoot as qt, toSpanAttributes as r, loadConfigWithSource as rn, COMPILER_CLEANUP_RULE_KEYS as rr, OxlintSpawnSlots as rt, buildSentryProjectContext as s, remainingDeadlineBudgetMs as sn, ENTERPRISE_CONTACT_URL as sr, Reporter as st, recordCount as t, listSourceFilesCooperative as tn, CI_URL as tr, NodeResolver as tt, enableJsonMode as u, resolveReactDoctorCacheDir as un, HTML_FILE_PATTERN as ur, StagedFiles as ut, makeNoopConsole as v, summarizeDiagnostics as vn, getCategoryImpact as vr, buildSkippedChecks as vt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as w, info as wn, toCanonicalPath as wr, computeConfigFingerprint as wt, AXIOM_TRACES_DATASET as x, yieldToEventLoop as xn, isFile as xr, classifyFileContext as xt, AXIOM_INGEST_TOKEN as y, toRelativePath as yn, isDirectory as yr, calculateScore as yt, CliInputError as z, runSync as zn, getDiagnosticRuleIdentity as zt };
77112
77114
 
77113
- //# sourceMappingURL=record-metric-DIPLeNab.js.map
77114
- //# debugId=6a38f08e-4076-5481-99de-0cfbca19f06d
77115
+ //# sourceMappingURL=record-metric-k7DEXdXI.js.map
77116
+ //# debugId=9fa76432-4f72-5a7c-9f34-5981771572a8
@@ -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]="a37163ea-3a16-558e-b381-8e4b30025399")}catch(e){}}();
3
- import { N as SENTRY_FLUSH_TIMEOUT_MS, T as METRIC, Xt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-DIPLeNab.js";
4
- import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-DZaIMuWS.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]="865614a9-7777-582d-988c-92960e0cbaad")}catch(e){}}();
3
+ import { N as SENTRY_FLUSH_TIMEOUT_MS, T as METRIC, Xt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-k7DEXdXI.js";
4
+ import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-DibLC4-s.js";
5
5
  import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-dlIZeEvb.js";
6
6
  import * as Sentry from "@sentry/node";
7
7
  //#region src/cli/utils/report-error.ts
@@ -60,5 +60,5 @@ const reportErrorToSentry = async (error) => {
60
60
  //#endregion
61
61
  export { reportErrorToSentry as t };
62
62
 
63
- //# sourceMappingURL=report-error-DJZR8Tq1.js.map
64
- //# debugId=a37163ea-3a16-558e-b381-8e4b30025399
63
+ //# sourceMappingURL=report-error-BAAH4WBo.js.map
64
+ //# debugId=865614a9-7777-582d-988c-92960e0cbaad
@@ -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]="4b426619-1761-5293-961b-c8e2fabb71df")}catch(e){}}();
3
- import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-DIPLeNab.js";
4
- import { u as isCommandAvailable } from "./install-github-workflow-CMGYT8Sl.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]="625942ba-9152-5d47-a8cd-8a38f4edcf73")}catch(e){}}();
3
+ import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-k7DEXdXI.js";
4
+ import { u as isCommandAvailable } from "./install-github-workflow-DvxnRB3Y.js";
5
5
  import { spawn } from "node:child_process";
6
6
  import * as path$1 from "node:path";
7
7
  import process$1 from "node:process";
@@ -275,5 +275,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
275
275
  //#endregion
276
276
  export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, 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 };
277
277
 
278
- //# sourceMappingURL=report-workflow-result-Rb94RG5z.js.map
279
- //# debugId=4b426619-1761-5293-961b-c8e2fabb71df
278
+ //# sourceMappingURL=report-workflow-result-Okh4X5Ez.js.map
279
+ //# debugId=625942ba-9152-5d47-a8cd-8a38f4edcf73
@@ -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]="ccf7b5ef-ee0c-572e-98c7-7d0ce92f2b0b")}catch(e){}}();
3
- import { Jt as isPathInsideDirectory, Nt as filterSourceFiles, wr as toCanonicalPath } from "./record-metric-DIPLeNab.js";
4
- import { M as cliLogger } from "./install-doctor-script-DgkdRcgO.js";
5
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-CMGYT8Sl.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]="8440524c-ea35-53be-8ef5-16517994820b")}catch(e){}}();
3
+ import { Jt as isPathInsideDirectory, Nt as filterSourceFiles, wr as toCanonicalPath } from "./record-metric-k7DEXdXI.js";
4
+ import { M as cliLogger } from "./install-doctor-script-CfZw7h2d.js";
5
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-DvxnRB3Y.js";
6
6
  import * as path$1 from "node:path";
7
7
  //#region src/cli/utils/path-format.ts
8
8
  const toForwardSlashes = (filePath) => filePath.replaceAll("\\", "/");
@@ -335,5 +335,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
335
335
  //#endregion
336
336
  export { isValidBlockingLevel as a, openWorkflowPullRequest as c, warnDeprecatedDiff as i, stageWorkflowFile as l, isScopeValue as n, pickBlockingLevel as o, resolveScope as r, resolveBlockingLevel as s, finalizeScope as t, toForwardSlashes as u };
337
337
 
338
- //# sourceMappingURL=resolve-scope-D-STb1gT.js.map
339
- //# debugId=ccf7b5ef-ee0c-572e-98c7-7d0ce92f2b0b
338
+ //# sourceMappingURL=resolve-scope-DPT02RSg.js.map
339
+ //# debugId=8440524c-ea35-53be-8ef5-16517994820b
@@ -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]="83807c4f-6f67-5af3-b6fb-a865b9983aba")}catch(e){}}();
3
- import { Kt as highlighter, Sr as isPlainObject, St as clearConfigCache, T as METRIC, Vt as getEquivalentRuleKeys, Zt as isSameRuleKey, bn as validateConfigTypes, gt as buildRuleDocsUrl, nr as COMPILER_CLEANUP_BUCKET, rn as loadConfigWithSource, rr as COMPILER_CLEANUP_RULE_KEYS, t as recordCount } from "./record-metric-DIPLeNab.js";
4
- import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DgkdRcgO.js";
5
- import { t as readObjectFile } from "./read-object-file-D7yYdwqv.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]="2472b764-59e4-5003-b221-48a5305253ca")}catch(e){}}();
3
+ import { Kt as highlighter, Sr as isPlainObject, St as clearConfigCache, T as METRIC, Vt as getEquivalentRuleKeys, Zt as isSameRuleKey, bn as validateConfigTypes, gt as buildRuleDocsUrl, nr as COMPILER_CLEANUP_BUCKET, rn as loadConfigWithSource, rr as COMPILER_CLEANUP_RULE_KEYS, t as recordCount } from "./record-metric-k7DEXdXI.js";
4
+ import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CfZw7h2d.js";
5
+ import { t as readObjectFile } from "./read-object-file-rbFY7hbE.js";
6
6
  import * as path$1 from "node:path";
7
7
  import * as fs$1 from "node:fs";
8
8
  import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
@@ -577,5 +577,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
577
577
  //#endregion
578
578
  export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
579
579
 
580
- //# sourceMappingURL=rules-CzdeF9zf.js.map
581
- //# debugId=83807c4f-6f67-5af3-b6fb-a865b9983aba
580
+ //# sourceMappingURL=rules-B1LMF7qx.js.map
581
+ //# debugId=2472b764-59e4-5003-b221-48a5305253ca
@@ -1,12 +1,12 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c8c24b15-3780-5c27-8a1c-d5af61497035")}catch(e){}}();
3
- import { Bn as sync, Bt as getDiffInfo, C as CI_TRUST_COMPANIES, G as isCiEnvironment, Hn as void_, Jt as isPathInsideDirectory, Kn as succeed, Kt as highlighter, L as TUI_REPORT_COMPACT_MAX_ROWS, Lt as getBaselineDiffPlan, R as TUI_REPORT_DETAIL_WIDTH_FRACTION, Rn as runPromise, Rt as getChangedLineRanges, T as METRIC, Ut as hasPublishedFixRecipe, V as isGitHookEnvironment, ar as DIAGNOSTIC_CATEGORY_BUCKETS, at as Progress, cr as GITHUB_ACTIONS_SETUP_URL, fn as resolveScanTarget, gt as buildRuleDocsUrl, in as mapWithConcurrency, n as recordDistribution, sn as remainingDeadlineBudgetMs, st as Reporter, t as recordCount, vr as getCategoryImpact, xn as yieldToEventLoop, yt as calculateScore } from "./record-metric-DIPLeNab.js";
4
- import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DgkdRcgO.js";
5
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-CMGYT8Sl.js";
6
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope, u as toForwardSlashes } from "./resolve-scope-D-STb1gT.js";
7
- import { A as resolveMergeBaseRef, B as buildNoScoreMessage, C as copyToClipboard, D as deduplicateProjectScans, E as collectProjectSourceFileCounts, F as printFooter, G as formatFixRecipeLine, H as hasLintHardFailure, I as printDiagnosticsDump, K as formatLearnMoreLine, L as formatDiagnosticSite, M as pluralize, N as formatSkippedCheckLabel, O as createInvocationInspect, P as formatElapsedTime, R as hasIncompleteScoreAnalysis, S as CLI_AGENT_BINARIES, T as buildHandoffPayload, U as buildRulePriorityMap, V as buildEmptyReportMessage, W as buildSortedRuleGroups, _ as resolveCliInspectOptions, a as projectManifestChanged, b as setUpGitHubActions, c as selectProjects, d as resolveProjectChangedLineRanges, f as resolveProjectDiffIncludePaths, g as resolveWorkspaceDeadCodeOwner, h as retryMissingProjectScores, l as buildCodeFrame, n as formatSkippedProjectsMessage, o as partitionProjectScanOutcomes, p as resolveProjectSourceFilePaths, r as validateIncludeUntrackedScope, s as discoverWorkspacePackages, t as shouldFailScanGate, u as resolveProjectScan, v as filterScansForSurface, w as launchCliAgent, x as detectLaunchableAgents, y as countUniqueScannedFiles, z as filterDiagnosticsByCategories } from "./should-fail-scan-gate-CXek96Ux.js";
8
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-Rb94RG5z.js";
9
- import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-BvjCY6VX.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]="290f57b9-6d25-599b-b5da-5eb6d6bf7e3c")}catch(e){}}();
3
+ import { Bn as sync, Bt as getDiffInfo, C as CI_TRUST_COMPANIES, G as isCiEnvironment, Hn as void_, Jt as isPathInsideDirectory, Kn as succeed, Kt as highlighter, L as TUI_REPORT_COMPACT_MAX_ROWS, Lt as getBaselineDiffPlan, R as TUI_REPORT_DETAIL_WIDTH_FRACTION, Rn as runPromise, Rt as getChangedLineRanges, T as METRIC, Ut as hasPublishedFixRecipe, V as isGitHookEnvironment, ar as DIAGNOSTIC_CATEGORY_BUCKETS, at as Progress, cr as GITHUB_ACTIONS_SETUP_URL, fn as resolveScanTarget, gt as buildRuleDocsUrl, in as mapWithConcurrency, n as recordDistribution, sn as remainingDeadlineBudgetMs, st as Reporter, t as recordCount, vr as getCategoryImpact, xn as yieldToEventLoop, yt as calculateScore } from "./record-metric-k7DEXdXI.js";
4
+ import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-CfZw7h2d.js";
5
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-DvxnRB3Y.js";
6
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope, u as toForwardSlashes } from "./resolve-scope-DPT02RSg.js";
7
+ import { A as resolveMergeBaseRef, B as buildNoScoreMessage, C as copyToClipboard, D as deduplicateProjectScans, E as collectProjectSourceFileCounts, F as printFooter, G as formatFixRecipeLine, H as hasLintHardFailure, I as printDiagnosticsDump, K as formatLearnMoreLine, L as formatDiagnosticSite, M as pluralize, N as formatSkippedCheckLabel, O as createInvocationInspect, P as formatElapsedTime, R as hasIncompleteScoreAnalysis, S as CLI_AGENT_BINARIES, T as buildHandoffPayload, U as buildRulePriorityMap, V as buildEmptyReportMessage, W as buildSortedRuleGroups, _ as resolveCliInspectOptions, a as projectManifestChanged, b as setUpGitHubActions, c as selectProjects, d as resolveProjectChangedLineRanges, f as resolveProjectDiffIncludePaths, g as resolveWorkspaceDeadCodeOwner, h as retryMissingProjectScores, l as buildCodeFrame, n as formatSkippedProjectsMessage, o as partitionProjectScanOutcomes, p as resolveProjectSourceFilePaths, r as validateIncludeUntrackedScope, s as discoverWorkspacePackages, t as shouldFailScanGate, u as resolveProjectScan, v as filterScansForSurface, w as launchCliAgent, x as detectLaunchableAgents, y as countUniqueScannedFiles, z as filterDiagnosticsByCategories } from "./should-fail-scan-gate-BWX9GH3s.js";
8
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-Okh4X5Ez.js";
9
+ import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-Dcnft-p1.js";
10
10
  import path from "node:path";
11
11
  import { performance } from "node:perf_hooks";
12
12
  import isUnicodeSupported from "is-unicode-supported";
@@ -2042,14 +2042,14 @@ const qualifyDiagnosticPaths = (diagnostics, rootDirectory, projectDirectory) =>
2042
2042
  filePath: toForwardSlashes(path.join(prefix, diagnostic.filePath))
2043
2043
  });
2044
2044
  };
2045
- const resolveScanPresentation = (input, projectScans) => {
2045
+ const resolveScanPresentation = (input, projectScans, rootDirectory) => {
2046
2046
  const isScoreDisabled = input.options?.noScore === true || projectScans.some((projectScan) => projectScan.config?.noScore === true);
2047
2047
  return {
2048
2048
  isOffline: isCiEnvironment() || input.share === false || isShareOptedOut(projectScans, input.options?.noScore),
2049
2049
  initialProgress: projectScans.length > 1 ? "Indexing workspace files…" : "Scanning project…",
2050
2050
  noScoreMessage: buildNoScoreMessage({ isScoreDisabled }),
2051
2051
  outputDirectory: input.options?.outputDirectory,
2052
- shouldRecommendCi: projectScans.length > 1 || projectScans.some((projectScan) => isCiUnconfigured(projectScan.directory)),
2052
+ shouldRecommendCi: isCiUnconfigured(rootDirectory),
2053
2053
  verbose: input.options?.verbose === true
2054
2054
  };
2055
2055
  };
@@ -2224,6 +2224,7 @@ const runMountedScan = async (rootDirectory, presentation, blockingLevel, execut
2224
2224
  const completedScan = await executeScan(context);
2225
2225
  mountedRenderer.dispose();
2226
2226
  mountedRenderer = mountRenderer("report");
2227
+ if (presentation.shouldRecommendCi) recordCount(METRIC.tuiCiRecommendationShown);
2227
2228
  await mountedRenderer.instance.waitUntilExit();
2228
2229
  mountedRenderer.dispose();
2229
2230
  if (presentation.outputDirectory !== void 0 || presentation.verbose) await runPromise(printDiagnosticsDump([...completedScan.diagnostics], presentation.outputDirectory, presentation.verbose));
@@ -2260,7 +2261,7 @@ const runSingleProjectScan = async (rootScanTarget, projectDirectory, input, sco
2260
2261
  process.stdout.write("No changed source files in the selected project.\n");
2261
2262
  return { shouldFail: false };
2262
2263
  }
2263
- const presentation = resolveScanPresentation(input, [projectScan]);
2264
+ const presentation = resolveScanPresentation(input, [projectScan], rootScanTarget.resolvedDirectory);
2264
2265
  return runMountedScan(projectScan.directory, presentation, blockingLevel, async (context) => {
2265
2266
  const result = await inspectProject(projectScan.directory, {
2266
2267
  ...resolveTuiInspectOptions(input, projectScan.config),
@@ -2342,7 +2343,7 @@ const runMultiProjectScan = async (rootScanTarget, directories, input, scopePlan
2342
2343
  isRootDeadCodeEnabled: input.options?.deadCode ?? rootProjectScan?.config?.deadCode ?? true
2343
2344
  });
2344
2345
  if (workspaceDeadCodeOwner !== null) recordCount(METRIC.scanWorkspaceMaintainabilityShared, 1, { projectCount: discoveredProjectScans.length });
2345
- return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan)), blockingLevel, async (context) => {
2346
+ return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan), rootDirectory), blockingLevel, async (context) => {
2346
2347
  const startTime = performance.now();
2347
2348
  let finishedCount = 0;
2348
2349
  recordDistribution(METRIC.scanFeedbackDelay, performance.now() - feedbackStartTime, {
@@ -2505,5 +2506,5 @@ const runScanApp = async (input) => {
2505
2506
  //#endregion
2506
2507
  export { runScanApp };
2507
2508
 
2508
- //# sourceMappingURL=run-scan-app-eHaynbf9.js.map
2509
- //# debugId=c8c24b15-3780-5c27-8a1c-d5af61497035
2509
+ //# sourceMappingURL=run-scan-app-BMP6V0eg.js.map
2510
+ //# debugId=290f57b9-6d25-599b-b5da-5eb6d6bf7e3c