react-doctor 0.9.14 → 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.
- package/README.md +3 -0
- package/dist/_react-doctor_require-typescript-DXQDYeWK.js +16 -0
- package/dist/{active-run-trace-dlIZeEvb.js → active-run-trace-Dewycxda.js} +3 -3
- package/dist/{active-scan-abort-registry-B72ASBUh.js → active-scan-abort-registry-CCTgal0O.js} +3 -3
- package/dist/{build-section-divider-8DpL5BjN.js → build-section-divider-Bt7znRi8.js} +5 -4
- package/dist/{ci-DH_jkNS4.js → ci-vktx9bIK.js} +14 -13
- package/dist/cli.js +32 -29
- package/dist/constants-DJ3RtEMu.js +1035 -0
- package/dist/{constants-CKOk_Fa9.js → constants-DNh19qg9.js} +3 -3
- package/dist/{design-DR72z3tB.js → design-CH3L5hSZ.js} +4 -4
- package/dist/{devtools-DOdrAPkZ.js → devtools-D20sefkm.js} +3 -3
- package/dist/duplicate-jsx-worker.js +62 -62
- package/dist/{exit-gracefully-BP0lJPao.js → exit-gracefully-Y5XyTvxu.js} +7 -7
- package/dist/fs-utils-C88IbqFa.js +45 -0
- package/dist/{get-east-asian-width-CM5BOEC-.js → get-east-asian-width-DRPy7dqz.js} +4 -4
- package/dist/{handle-error-BO7AUOeO.js → handle-error-8NlzFVoW.js} +6 -5
- package/dist/index.d.ts +8511 -8509
- package/dist/index.js +12734 -12338
- package/dist/{inspect-CtwjUwiF.js → inspect-Cs2Ojloa.js} +28 -21
- package/dist/{install-DAwHDunN.js → install-C4JkqZoO.js} +10 -9
- package/dist/{install-doctor-script-DousNjwa.js → install-doctor-script-Dr4O5HID.js} +17 -8
- package/dist/{install-github-workflow-DNfyCbSd.js → install-github-workflow-Dtf07ISQ.js} +10 -10
- package/dist/{install-react-doctor-CofgPrzS.js → install-react-doctor-Bi_Dav6m.js} +15 -11
- package/dist/is-cache-globally-disabled-De19063F.js +10 -0
- package/dist/{jsx-runtime-Dv_yWxfg.js → jsx-runtime-CND_0px2.js} +11 -10
- package/dist/oxlint-worker.js +95 -5
- package/dist/{path-format-DnHpmJwG.js → path-format-By20mo8A.js} +3 -3
- package/dist/{print-branded-header-CFoO5ZHN.js → print-branded-header-DqaKyGKm.js} +4 -4
- package/dist/project-analysis-worker.js +459 -461
- package/dist/{prompt-runtime-scan-url-9tmVyRA2.js → prompt-runtime-scan-url-DiI3_zIx.js} +6 -6
- package/dist/react-compiler-detection-worker.d.ts +1 -0
- package/dist/react-compiler-detection-worker.js +1029 -0
- package/dist/{read-object-file-C8gGTrwo.js → read-object-file-DBJkVOGK.js} +4 -4
- package/dist/{record-metric-DMuxA69u.js → record-metric-C-ZZzzDc.js} +12589 -13129
- package/dist/{report-error-DynYEdrW.js → report-error-_C-eJJHZ.js} +7 -6
- package/dist/{report-workflow-result-C0nwk5Eq.js → report-workflow-result-BA_xTdWY.js} +24 -11
- package/dist/{resolve-scope-CtDh9FtN.js → resolve-scope-Cl4BiTkm.js} +7 -7
- package/dist/{rules-Dtp6I51W.js → rules-DAQXfBXb.js} +8 -7
- package/dist/{run-scan-app-DTjrGFyP.js → run-scan-app-CN5nwdB-.js} +12 -11
- package/dist/{runtime-scan-DylzMW6d.js → runtime-scan-DFdypOyE.js} +13 -12
- package/dist/{sanitize-runtime-url-CtosBgav.js → sanitize-runtime-url-yCL8ZAFd.js} +4 -4
- package/dist/{scan-i9quJrxG.js → scan-C6U_DFdI.js} +10 -9
- package/dist/{semver-DlmXks31.js → semver-BZIuy1gP.js} +3 -3
- package/dist/{should-fail-scan-gate-uW8_hnTc.js → should-fail-scan-gate-2mIY6wHj.js} +1848 -1825
- package/dist/{should-skip-prompts-fmi7PPp5.js → should-skip-prompts-CuyyYvRd.js} +4 -4
- package/dist/{should-use-tui-DaLPPhMi.js → should-use-tui-CbbIdX9b.js} +4 -4
- package/dist/start-scan-preamble-DVhXIPc0.d.ts +1 -0
- package/dist/start-scan-preamble-DZknzhHU.js +68 -0
- package/dist/start-scan-preamble.d.ts +1 -0
- package/dist/start-scan-preamble.js +4 -0
- package/dist/{telemetry-runtime-CxBC0gEj.js → telemetry-runtime-DLq3FDzI.js} +7 -6
- package/dist/{unref-stdin-SK3WfwxS.js → unref-stdin-D-NZBFpg.js} +3 -3
- package/dist/unwrap-typescript-expression-CrEPQUWz.js +14 -0
- package/dist/{version-Bti3M8BN.js → version-DO7dtT21.js} +5 -4
- package/dist/{why-dcQaGoJz.js → why-uxPDWtZO.js} +4 -4
- package/dist/{with-run-span-Lynvloyt.js → with-run-span-BCopjALe.js} +7 -6
- package/package.json +7 -5
- package/dist/_react-doctor_require-typescript-DnwIzXJn.js +0 -7
- 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]="
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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-
|
|
64
|
-
//# debugId=
|
|
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]="
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
|
8
|
+
import { spawn } from "node:child_process";
|
|
8
9
|
import { createHash } from "node:crypto";
|
|
9
|
-
import
|
|
10
|
-
|
|
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
|
|
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-
|
|
279
|
-
//# debugId=
|
|
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]="
|
|
3
|
-
import {
|
|
4
|
-
import { t as toForwardSlashes } from "./path-format-
|
|
5
|
-
import {
|
|
6
|
-
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-
|
|
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-
|
|
337
|
-
//# debugId=
|
|
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]="
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
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-
|
|
581
|
-
//# debugId=
|
|
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]="
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { a as
|
|
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-
|
|
2517
|
-
//# debugId=
|
|
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]="
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { r as
|
|
9
|
-
import
|
|
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-
|
|
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-
|
|
770
|
-
//# debugId=
|
|
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]="
|
|
3
|
-
import {
|
|
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-
|
|
76
|
-
//# debugId=
|
|
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]="
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
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-
|
|
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-
|
|
47
|
-
//# debugId=
|
|
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]="
|
|
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-
|
|
3219
|
-
//# debugId=
|
|
3218
|
+
//# sourceMappingURL=semver-BZIuy1gP.js.map
|
|
3219
|
+
//# debugId=111b9bd1-44f8-5316-8f94-16884af08c00
|