react-doctor 0.9.14-dev.bcf8062 → 0.9.15-dev.23d6160

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 (59) hide show
  1. package/README.md +3 -0
  2. package/dist/_react-doctor_require-typescript-DXQDYeWK.js +16 -0
  3. package/dist/{active-run-trace-dlIZeEvb.js → active-run-trace-Dewycxda.js} +3 -3
  4. package/dist/{active-scan-abort-registry-B72ASBUh.js → active-scan-abort-registry-CCTgal0O.js} +3 -3
  5. package/dist/{build-section-divider-v7NN_cR8.js → build-section-divider-Bt7znRi8.js} +5 -4
  6. package/dist/{ci-BnQkEEV1.js → ci-vktx9bIK.js} +14 -13
  7. package/dist/cli.js +32 -29
  8. package/dist/constants-DJ3RtEMu.js +1035 -0
  9. package/dist/{constants-CKOk_Fa9.js → constants-DNh19qg9.js} +3 -3
  10. package/dist/{design-Du1rV5hV.js → design-CH3L5hSZ.js} +4 -4
  11. package/dist/{devtools-DOdrAPkZ.js → devtools-D20sefkm.js} +3 -3
  12. package/dist/duplicate-jsx-worker.js +62 -62
  13. package/dist/{exit-gracefully-D9ffPCDJ.js → exit-gracefully-Y5XyTvxu.js} +7 -7
  14. package/dist/fs-utils-C88IbqFa.js +45 -0
  15. package/dist/{get-east-asian-width-CM5BOEC-.js → get-east-asian-width-DRPy7dqz.js} +4 -4
  16. package/dist/{handle-error-BWHTahSo.js → handle-error-8NlzFVoW.js} +6 -5
  17. package/dist/index.d.ts +8511 -8509
  18. package/dist/index.js +12734 -12338
  19. package/dist/{inspect-fWFs2jtk.js → inspect-Cs2Ojloa.js} +28 -21
  20. package/dist/{install-DWpPYvxU.js → install-C4JkqZoO.js} +10 -9
  21. package/dist/{install-doctor-script-wNnu5y_f.js → install-doctor-script-Dr4O5HID.js} +17 -8
  22. package/dist/{install-github-workflow-DsgMnbqe.js → install-github-workflow-Dtf07ISQ.js} +10 -10
  23. package/dist/{install-react-doctor-hFwI2elO.js → install-react-doctor-Bi_Dav6m.js} +15 -11
  24. package/dist/is-cache-globally-disabled-De19063F.js +10 -0
  25. package/dist/{jsx-runtime-DCJqkm-B.js → jsx-runtime-CND_0px2.js} +11 -10
  26. package/dist/oxlint-worker.js +95 -5
  27. package/dist/{path-format-DnHpmJwG.js → path-format-By20mo8A.js} +3 -3
  28. package/dist/{print-branded-header-BcXGdtml.js → print-branded-header-DqaKyGKm.js} +4 -4
  29. package/dist/project-analysis-worker.js +459 -461
  30. package/dist/{prompt-runtime-scan-url-s4NKC5nM.js → prompt-runtime-scan-url-DiI3_zIx.js} +6 -6
  31. package/dist/react-compiler-detection-worker.d.ts +1 -0
  32. package/dist/react-compiler-detection-worker.js +1029 -0
  33. package/dist/{read-object-file-Be3X79OD.js → read-object-file-DBJkVOGK.js} +4 -4
  34. package/dist/{record-metric-D8ltm-Oh.js → record-metric-C-ZZzzDc.js} +12589 -13129
  35. package/dist/{report-error-5LSXHGJq.js → report-error-_C-eJJHZ.js} +7 -6
  36. package/dist/{report-workflow-result-2aLf7RhF.js → report-workflow-result-BA_xTdWY.js} +24 -11
  37. package/dist/{resolve-scope-BXJ4WEdf.js → resolve-scope-Cl4BiTkm.js} +7 -7
  38. package/dist/{rules-C71aHICA.js → rules-DAQXfBXb.js} +8 -7
  39. package/dist/{run-scan-app-BqzvDO2G.js → run-scan-app-CN5nwdB-.js} +12 -11
  40. package/dist/{runtime-scan-TcGr2CHS.js → runtime-scan-DFdypOyE.js} +13 -12
  41. package/dist/{sanitize-runtime-url-LBQ4amZg.js → sanitize-runtime-url-yCL8ZAFd.js} +4 -4
  42. package/dist/{scan-8j0aKndg.js → scan-C6U_DFdI.js} +10 -9
  43. package/dist/{semver-DlmXks31.js → semver-BZIuy1gP.js} +3 -3
  44. package/dist/{should-fail-scan-gate-fjfa2sYx.js → should-fail-scan-gate-2mIY6wHj.js} +1848 -1825
  45. package/dist/{should-skip-prompts-BZZxI1vY.js → should-skip-prompts-CuyyYvRd.js} +4 -4
  46. package/dist/{should-use-tui-C59qAiOG.js → should-use-tui-CbbIdX9b.js} +4 -4
  47. package/dist/start-scan-preamble-DVhXIPc0.d.ts +1 -0
  48. package/dist/start-scan-preamble-DZknzhHU.js +68 -0
  49. package/dist/start-scan-preamble.d.ts +1 -0
  50. package/dist/start-scan-preamble.js +4 -0
  51. package/dist/{telemetry-runtime-CmlSXXfi.js → telemetry-runtime-DLq3FDzI.js} +7 -6
  52. package/dist/{unref-stdin-SK3WfwxS.js → unref-stdin-D-NZBFpg.js} +3 -3
  53. package/dist/unwrap-typescript-expression-CrEPQUWz.js +14 -0
  54. package/dist/{version-DRDcTlA9.js → version-DO7dtT21.js} +5 -4
  55. package/dist/{why-DthVqP00.js → why-uxPDWtZO.js} +4 -4
  56. package/dist/{with-run-span-D4-folvM.js → with-run-span-BCopjALe.js} +7 -6
  57. package/package.json +7 -5
  58. package/dist/_react-doctor_require-typescript-DnwIzXJn.js +0 -7
  59. package/dist/unwrap-typescript-expression-CbO_6kmC.js +0 -14
@@ -1,8 +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]="c101e4f0-0556-5d74-9e1f-7afcba7c5349")}catch(e){}}();
3
- import { N as SENTRY_FLUSH_TIMEOUT_MS, Qt as isReactDoctorError, T as METRIC, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-D8ltm-Oh.js";
4
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-CmlSXXfi.js";
5
- import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-dlIZeEvb.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]="fe332629-c9cc-5e38-b66d-93e6f586e939")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-DJ3RtEMu.js";
4
+ import { jt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-C-ZZzzDc.js";
5
+ import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-DLq3FDzI.js";
6
+ import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
6
7
  //#region src/cli/utils/report-error.ts
7
8
  /**
8
9
  * Sends an error to Sentry — enriched with a fresh snapshot of the current run
@@ -60,5 +61,5 @@ const reportErrorToSentry = async (error) => {
60
61
  //#endregion
61
62
  export { reportErrorToSentry as t };
62
63
 
63
- //# sourceMappingURL=report-error-5LSXHGJq.js.map
64
- //# debugId=c101e4f0-0556-5d74-9e1f-7afcba7c5349
64
+ //# sourceMappingURL=report-error-_C-eJJHZ.js.map
65
+ //# debugId=fe332629-c9cc-5e38-b66d-93e6f586e939
@@ -1,13 +1,23 @@
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]="804fcc69-10aa-545d-a45a-53dfaf1703ff")}catch(e){}}();
3
- import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-D8ltm-Oh.js";
4
- import { u as isCommandAvailable } from "./install-github-workflow-DsgMnbqe.js";
5
- import { spawn } from "node:child_process";
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]="587166fe-4c6c-55c4-99db-24f86cb92284")}catch(e){}}();
3
+ import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-DJ3RtEMu.js";
4
+ import { t as recordCount } from "./record-metric-C-ZZzzDc.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-Dtf07ISQ.js";
6
+ import { createRequire } from "node:module";
6
7
  import * as path$1 from "node:path";
7
- import process$1 from "node:process";
8
+ import { spawn } from "node:child_process";
8
9
  import { createHash } from "node:crypto";
9
- import { detectInstalledSkillAgents, getSkillAgentTypes } from "agent-install";
10
- import Conf from "conf";
10
+ import process$1 from "node:process";
11
+ //#region src/cli/utils/create-lazy-require.ts
12
+ const createLazyRequire = (importMetaUrl, specifier) => {
13
+ const requireModule = createRequire(importMetaUrl);
14
+ let cachedModule = null;
15
+ return () => cachedModule ??= requireModule(specifier);
16
+ };
17
+ //#endregion
18
+ //#region src/cli/utils/load-agent-install.ts
19
+ const loadAgentInstall = createLazyRequire(import.meta.url, "agent-install");
20
+ //#endregion
11
21
  //#region src/cli/utils/detect-agents.ts
12
22
  const PATH_BINARIES = {
13
23
  "claude-code": ["claude"],
@@ -25,6 +35,7 @@ const detectPathAvailableAgents = () => {
25
35
  return detected;
26
36
  };
27
37
  const detectAvailableAgents = async () => {
38
+ const { detectInstalledSkillAgents, getSkillAgentTypes } = loadAgentInstall();
28
39
  const detected = new Set([...detectPathAvailableAgents(), ...await detectInstalledSkillAgents()]);
29
40
  return getSkillAgentTypes().filter((agent) => agent !== "universal" && detected.has(agent));
30
41
  };
@@ -100,7 +111,9 @@ const migrateCliState = (state) => {
100
111
  };
101
112
  };
102
113
  const resolveConfigDir = (options) => options.cwd ?? (process.env["REACT_DOCTOR_CONFIG_DIR"] || void 0);
103
- const openStore = (options = {}) => new Conf({
114
+ const loadConfModule = createLazyRequire(import.meta.url, "conf");
115
+ const loadConf = () => loadConfModule().default;
116
+ const openStore = (options = {}) => new (loadConf())({
104
117
  projectName: REACT_DOCTOR_CONFIG_PROJECT_NAME,
105
118
  cwd: resolveConfigDir(options)
106
119
  });
@@ -273,7 +286,7 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
273
286
  return true;
274
287
  };
275
288
  //#endregion
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 };
289
+ 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 };
277
290
 
278
- //# sourceMappingURL=report-workflow-result-2aLf7RhF.js.map
279
- //# debugId=804fcc69-10aa-545d-a45a-53dfaf1703ff
291
+ //# sourceMappingURL=report-workflow-result-BA_xTdWY.js.map
292
+ //# debugId=587166fe-4c6c-55c4-99db-24f86cb92284
@@ -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]="7d305383-e085-5df3-b5b6-b5b6b3c01b02")}catch(e){}}();
3
- import { Ft as filterSourceFiles, Xt as isPathInsideDirectory, or as toCanonicalPath } from "./record-metric-D8ltm-Oh.js";
4
- import { t as toForwardSlashes } from "./path-format-DnHpmJwG.js";
5
- import { M as cliLogger } from "./install-doctor-script-wNnu5y_f.js";
6
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-DsgMnbqe.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]="41b7a2e8-8cff-55e5-9314-cd576799cfcb")}catch(e){}}();
3
+ import { Fn as toCanonicalPath, ht as filterSourceFiles, kt as isPathInsideDirectory } from "./record-metric-C-ZZzzDc.js";
4
+ import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
5
+ import { N as cliLogger } from "./install-doctor-script-Dr4O5HID.js";
6
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-Dtf07ISQ.js";
7
7
  import * as path$1 from "node:path";
8
8
  //#region src/cli/utils/open-workflow-pull-request.ts
9
9
  const NEW_BRANCH_PREFIX = "react-doctor/add-github-actions";
@@ -333,5 +333,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
333
333
  //#endregion
334
334
  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 };
335
335
 
336
- //# sourceMappingURL=resolve-scope-BXJ4WEdf.js.map
337
- //# debugId=7d305383-e085-5df3-b5b6-b5b6b3c01b02
336
+ //# sourceMappingURL=resolve-scope-Cl4BiTkm.js.map
337
+ //# debugId=41b7a2e8-8cff-55e5-9314-cd576799cfcb
@@ -1,10 +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]="b79452f3-0c0b-5516-868a-91c3c66e6660")}catch(e){}}();
3
- import { $t as isSameRuleKey, Ct as clearConfigCache, Jt as highlighter, Sn as validateConfigTypes, T as METRIC, Ut as getEquivalentRuleKeys, _t as buildRuleDocsUrl, an as loadConfigWithSource, dr as COMPILER_CLEANUP_BUCKET, fr as COMPILER_CLEANUP_RULE_KEYS, ir as isPlainObject, t as recordCount } from "./record-metric-D8ltm-Oh.js";
4
- import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-wNnu5y_f.js";
5
- import { t as readObjectFile } from "./read-object-file-Be3X79OD.js";
6
- import * as path$1 from "node:path";
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]="8b51815d-7fe5-5f20-a719-6e5c9bdb3ab3")}catch(e){}}();
3
+ import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-DJ3RtEMu.js";
4
+ import { $t as validateConfigTypes, Ct as getEquivalentRuleKeys, Mt as isSameRuleKey, Ot as highlighter, Rt as loadConfigWithSource, Z as buildRuleDocsUrl, rt as clearConfigCache, t as recordCount, zn as isPlainObject } from "./record-metric-C-ZZzzDc.js";
5
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-Dr4O5HID.js";
6
+ import { t as readObjectFile } from "./read-object-file-DBJkVOGK.js";
7
7
  import * as fs$1 from "node:fs";
8
+ import * as path$1 from "node:path";
8
9
  import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
9
10
  import { generateCode, loadFile, writeFile } from "magicast";
10
11
  import { getConfigFromVariableDeclaration, getDefaultExportOptions } from "magicast/helpers";
@@ -577,5 +578,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
577
578
  //#endregion
578
579
  export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
579
580
 
580
- //# sourceMappingURL=rules-C71aHICA.js.map
581
- //# debugId=b79452f3-0c0b-5516-868a-91c3c66e6660
581
+ //# sourceMappingURL=rules-DAQXfBXb.js.map
582
+ //# debugId=8b51815d-7fe5-5f20-a719-6e5c9bdb3ab3
@@ -1,13 +1,14 @@
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]="dc2d15e2-330e-5c97-852a-868b827ec1c8")}catch(e){}}();
3
- import { Bn as runPromise, Bt as getChangedLineRanges, C as CI_TRUST_COMPANIES, Dr as getCategoryImpact, G as isCiEnvironment, Gt as hasPublishedFixRecipe, Hn as sync, Ht as getDiffInfo, Jn as succeed, Jt as highlighter, L as TUI_REPORT_COMPACT_MAX_ROWS, R as TUI_REPORT_DETAIL_WIDTH_FRACTION, T as METRIC, V as isGitHookEnvironment, Wn as void_, _r as GITHUB_ACTIONS_SETUP_URL, _t as buildRuleDocsUrl, bt as calculateScore, ct as Reporter, er as yieldToEventLoop, ln as remainingDeadlineBudgetMs, mn as resolveScanTarget, mr as DIAGNOSTIC_CATEGORY_BUCKETS, n as recordDistribution, on as mapWithConcurrency, ot as Progress, t as recordCount, zt as getBaselineDiffPlan } from "./record-metric-D8ltm-Oh.js";
4
- import { t as toForwardSlashes } from "./path-format-DnHpmJwG.js";
5
- import { M as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-wNnu5y_f.js";
6
- import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-DsgMnbqe.js";
7
- import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-BXJ4WEdf.js";
8
- import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./should-fail-scan-gate-fjfa2sYx.js";
9
- import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-2aLf7RhF.js";
10
- 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-DCJqkm-B.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]="02e948e0-4a24-5496-bf64-212e9b0a8e96")}catch(e){}}();
3
+ import { D as TUI_REPORT_COMPACT_MAX_ROWS, In as getCategoryImpact, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, _t as DIAGNOSTIC_CATEGORY_BUCKETS, kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-DJ3RtEMu.js";
4
+ import { B as Progress, En as succeed, Gt as resolveScanTarget, H as Reporter, Ht as remainingDeadlineBudgetMs, Nn as yieldToEventLoop, Ot as highlighter, Sn as void_, St as getDiffInfo, T as isCiEnvironment, Tt as hasPublishedFixRecipe, Z as buildRuleDocsUrl, bn as sync, bt as getChangedLineRanges, et as calculateScore, n as recordDistribution, t as recordCount, vn as runPromise, x as isGitHookEnvironment, yt as getBaselineDiffPlan, zt as mapWithConcurrency } from "./record-metric-C-ZZzzDc.js";
5
+ import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
6
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-Dr4O5HID.js";
7
+ import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-Dtf07ISQ.js";
8
+ import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-Cl4BiTkm.js";
9
+ import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./should-fail-scan-gate-2mIY6wHj.js";
10
+ import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-BA_xTdWY.js";
11
+ 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-CND_0px2.js";
11
12
  import path from "node:path";
12
13
  import { performance } from "node:perf_hooks";
13
14
  import isUnicodeSupported from "is-unicode-supported";
@@ -2513,5 +2514,5 @@ const runScanApp = async (input) => {
2513
2514
  //#endregion
2514
2515
  export { runScanApp };
2515
2516
 
2516
- //# sourceMappingURL=run-scan-app-BqzvDO2G.js.map
2517
- //# debugId=dc2d15e2-330e-5c97-852a-868b827ec1c8
2517
+ //# sourceMappingURL=run-scan-app-CN5nwdB-.js.map
2518
+ //# debugId=02e948e0-4a24-5496-bf64-212e9b0a8e96
@@ -1,16 +1,17 @@
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]="1b5f85ff-9d27-5bf1-b160-e3988e740085")}catch(e){}}();
3
- import { Jt as highlighter, T as METRIC, t as recordCount, u as enableJsonMode, z as CliInputError } from "./record-metric-D8ltm-Oh.js";
4
- import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-B72ASBUh.js";
5
- import { t as reportErrorToSentry } from "./report-error-5LSXHGJq.js";
6
- import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-D4-folvM.js";
7
- import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-LBQ4amZg.js";
8
- import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-C59qAiOG.js";
9
- import * as path$1 from "node:path";
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]="7ee268b2-b15c-560a-9992-63012dd54c0a")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-DJ3RtEMu.js";
4
+ import { Ot as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-C-ZZzzDc.js";
5
+ import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
6
+ import { t as reportErrorToSentry } from "./report-error-_C-eJJHZ.js";
7
+ import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-BCopjALe.js";
8
+ import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-yCL8ZAFd.js";
9
+ import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-CbbIdX9b.js";
10
10
  import * as fs$1 from "node:fs";
11
+ import * as path$1 from "node:path";
12
+ import * as os$1 from "node:os";
11
13
  import { randomUUID } from "node:crypto";
12
14
  import * as fsp from "node:fs/promises";
13
- import * as os$1 from "node:os";
14
15
  import { createGzip } from "node:zlib";
15
16
  import { performance } from "node:perf_hooks";
16
17
  import { pipeline } from "node:stream/promises";
@@ -719,7 +720,7 @@ const resolveRuntimeScanUrl = async (url) => {
719
720
  if (url !== void 0) return url;
720
721
  if (!isTuiEnvironmentSupported(resolveTuiEnvironment(process.stderr.isTTY === true))) throw new CliInputError("A URL is required outside an interactive terminal. Run `react-doctor scan <url>`.");
721
722
  recordCount(METRIC.runtimeScanUrlPromptShown);
722
- const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-s4NKC5nM.js");
723
+ const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-DiI3_zIx.js");
723
724
  return promptRuntimeScanUrl();
724
725
  };
725
726
  const runtimeScanAction = async (url, flags) => {
@@ -766,5 +767,5 @@ const runtimeScanAction = async (url, flags) => {
766
767
  //#endregion
767
768
  export { runtimeScanAction };
768
769
 
769
- //# sourceMappingURL=runtime-scan-TcGr2CHS.js.map
770
- //# debugId=1b5f85ff-9d27-5bf1-b160-e3988e740085
770
+ //# sourceMappingURL=runtime-scan-DFdypOyE.js.map
771
+ //# debugId=7ee268b2-b15c-560a-9992-63012dd54c0a
@@ -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]="c87359df-27e8-51bc-a27c-c0291dbe52fe")}catch(e){}}();
3
- import { z as CliInputError } from "./record-metric-D8ltm-Oh.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]="f98f60c4-ecb4-5237-938c-12fc1d947f03")}catch(e){}}();
3
+ import { y as CliInputError } from "./record-metric-C-ZZzzDc.js";
4
4
  //#region src/cli/runtime-scan/constants.ts
5
5
  const RUNTIME_SCAN_MAX_COMPONENT_EVENTS = 2e3;
6
6
  const RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES = 5 * 1024 * 1024;
@@ -72,5 +72,5 @@ const sanitizeRuntimeUrl = (rawUrl) => {
72
72
  //#endregion
73
73
  export { RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS as _, RUNTIME_SCAN_LOCAL_DEV_PORTS as a, RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS as b, RUNTIME_SCAN_MAX_SNAPSHOT_BYTES as c, RUNTIME_SCAN_MAX_TRACE_BYTES as d, RUNTIME_SCAN_PROBE_RELATIVE_PATH as f, RUNTIME_SCAN_SAFE_CDP_PAGE_URLS as g, RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER as h, RUNTIME_SCAN_LAYOUT_THRASH_RATIO as i, RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES as l, RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER as m, RUNTIME_SCAN_BROWSER_WIDTH_PX as n, RUNTIME_SCAN_MAX_COMPONENT_EVENTS as o, RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER as p, RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN as r, RUNTIME_SCAN_MAX_RECORDING_DURATION_MS as s, sanitizeRuntimeUrl as t, RUNTIME_SCAN_MAX_STRING_LENGTH as u, RUNTIME_SCAN_TRACE_CATEGORIES as v, RUNTIME_SCAN_TRACE_FILE_EXTENSION as y };
74
74
 
75
- //# sourceMappingURL=sanitize-runtime-url-LBQ4amZg.js.map
76
- //# debugId=c87359df-27e8-51bc-a27c-c0291dbe52fe
75
+ //# sourceMappingURL=sanitize-runtime-url-yCL8ZAFd.js.map
76
+ //# debugId=f98f60c4-ecb4-5237-938c-12fc1d947f03
@@ -1,10 +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]="06e334cc-aa5e-5d86-9693-8a9079711639")}catch(e){}}();
3
- import { T as METRIC, mn as resolveScanTarget, t as recordCount } from "./record-metric-D8ltm-Oh.js";
4
- import { i as warnDeprecatedDiff } from "./resolve-scope-BXJ4WEdf.js";
5
- import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-fjfa2sYx.js";
6
- import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-fWFs2jtk.js";
7
- import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-C59qAiOG.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]="6390d592-ebc7-5b6c-b480-8cdca0beec83")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-DJ3RtEMu.js";
4
+ import { Gt as resolveScanTarget, t as recordCount } from "./record-metric-C-ZZzzDc.js";
5
+ import { i as warnDeprecatedDiff } from "./resolve-scope-Cl4BiTkm.js";
6
+ import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-2mIY6wHj.js";
7
+ import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-Cs2Ojloa.js";
8
+ import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-CbbIdX9b.js";
8
9
  import path from "node:path";
9
10
  //#region src/cli/commands/scan.ts
10
11
  const runScanCommand = async (input) => {
@@ -28,7 +29,7 @@ const runScanCommand = async (input) => {
28
29
  warnDeprecatedFailOn(input.flags, scanTarget.userConfig);
29
30
  warnDeprecatedDiff(input.flags, scanTarget.userConfig);
30
31
  recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
31
- const { runScanApp } = await import("./run-scan-app-BqzvDO2G.js");
32
+ const { runScanApp } = await import("./run-scan-app-CN5nwdB-.js");
32
33
  const { shouldFail } = await runScanApp({
33
34
  directory: input.directory,
34
35
  scanTarget,
@@ -43,5 +44,5 @@ const runScanCommand = async (input) => {
43
44
  //#endregion
44
45
  export { runScanCommand };
45
46
 
46
- //# sourceMappingURL=scan-8j0aKndg.js.map
47
- //# debugId=06e334cc-aa5e-5d86-9693-8a9079711639
47
+ //# sourceMappingURL=scan-C6U_DFdI.js.map
48
+ //# debugId=6390d592-ebc7-5b6c-b480-8cdca0beec83
@@ -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]="5d8e40f7-4111-5236-adfc-3b597f28e1e3")}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]="111b9bd1-44f8-5316-8f94-16884af08c00")}catch(e){}}();
3
3
  import { t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
5
5
  var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3215,5 +3215,5 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3215
3215
  //#endregion
3216
3216
  export { require_picomatch as n, require_semver as t };
3217
3217
 
3218
- //# sourceMappingURL=semver-DlmXks31.js.map
3219
- //# debugId=5d8e40f7-4111-5236-adfc-3b597f28e1e3
3218
+ //# sourceMappingURL=semver-BZIuy1gP.js.map
3219
+ //# debugId=111b9bd1-44f8-5316-8f94-16884af08c00