react-doctor 0.9.17-dev.a3cbae0 → 0.9.17-dev.a47c7e0
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 +14 -0
- package/dist/{build-section-divider-k-iqApDn.js → build-section-divider-BJcCSTF9.js} +5 -5
- package/dist/{ci-9qYclb8S.js → ci-BreGV8oF.js} +13 -13
- package/dist/cli.js +40 -31
- package/dist/{constants-DE6ZPzRQ.js → constants-Bwylqy0B.js} +4 -3
- package/dist/{design-RZCZp5vz.js → design-CopuOP1D.js} +4 -4
- package/dist/{exit-gracefully-CXbetjsk.js → exit-gracefully-euoFKtV_.js} +6 -6
- package/dist/{handle-error-Bu8Hxmu6.js → handle-error-BlKIXfOh.js} +6 -6
- package/dist/{inspect-BHz6b1Qx.js → inspect-DSJalZ5V.js} +22 -19
- package/dist/{install-CYNlXWIx.js → install-BmXncWbO.js} +10 -10
- package/dist/{install-doctor-script-wAZc6x1Q.js → install-doctor-script-BLb18kaf.js} +5 -5
- package/dist/{install-github-workflow-BG9qzRi4.js → install-github-workflow-ChF7QmpO.js} +6 -6
- package/dist/{install-react-doctor-BFeaIN8C.js → install-react-doctor-lp_KU14v.js} +9 -9
- package/dist/{is-cache-globally-disabled-BlQ5D5mG.js → is-cache-globally-disabled-BvdYcw6Q.js} +4 -4
- package/dist/{jsx-runtime-Culk0tMJ.js → jsx-runtime-BgSqPHew.js} +6 -6
- package/dist/{print-branded-header-DML7Yxjd.js → print-branded-header-BkwARxm7.js} +4 -4
- package/dist/{prompt-runtime-scan-url-XAZbEL40.js → prompt-runtime-scan-url-BeEvVCIk.js} +5 -5
- package/dist/{read-object-file-Cv_ravdp.js → read-object-file-Cl68gVd9.js} +4 -4
- package/dist/{record-metric-BUIh9xFo.js → record-metric-C4i_4em1.js} +5 -5
- package/dist/{report-error-Dis6c69z.js → report-error-BEBS99Z5.js} +6 -6
- package/dist/{report-workflow-result-BTuVEmXF.js → report-workflow-result-Bp082NTK.js} +6 -6
- package/dist/{should-fail-scan-gate-D-KdsCIb.js → resolve-scan-exit-code-Bp8CaLFy.js} +23 -20
- package/dist/{resolve-scope-CIGhXb1G.js → resolve-scope-DfKJ9y3u.js} +6 -6
- package/dist/{rules-D6bR4PWk.js → rules-DxujEbHW.js} +7 -7
- package/dist/{run-scan-app--64sUJbt.js → run-scan-app-uhbtgWev.js} +27 -19
- package/dist/{runtime-scan-DeRImxpb.js → runtime-scan-BHsXhHD7.js} +10 -10
- package/dist/{sanitize-runtime-url-DYmloMQo.js → sanitize-runtime-url-CgDttdUz.js} +4 -4
- package/dist/{scan-BDXop9sM.js → scan-Cj9y8SAP.js} +14 -13
- package/dist/{should-skip-prompts-apd44PjY.js → should-skip-prompts-CduxjTi-.js} +4 -4
- package/dist/{should-use-tui-430jq0vR.js → should-use-tui-D6UAxVaQ.js} +4 -4
- package/dist/skills/react-doctor/SKILL.md +4 -0
- package/dist/{start-scan-preamble-Dz6998T6.js → start-scan-preamble-2uz0joCl.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-Dum0iDKs.js → telemetry-runtime-DsEQ3Yc8.js} +7 -7
- package/dist/{version-DPBCKSmZ.js → version-a5Z8qK5b.js} +5 -5
- package/dist/{why-BRbHrUfS.js → why-qrsOs6oZ.js} +4 -4
- package/dist/{with-run-span-zdgQ45R9.js → with-run-span-HxBxfUQH.js} +6 -6
- package/package.json +2 -2
|
@@ -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]="
|
|
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]="fd8730ed-ada5-5f5e-a12e-3e95c2e0f48e")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { u as METRIC } from "./constants-
|
|
5
|
-
import { t as recordCount } from "./record-metric-
|
|
6
|
-
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-
|
|
4
|
+
import { u as METRIC } from "./constants-Bwylqy0B.js";
|
|
5
|
+
import { t as recordCount } from "./record-metric-C4i_4em1.js";
|
|
6
|
+
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-euoFKtV_.js";
|
|
7
7
|
import { a as chalk, i as stripAnsi, n as isFullWidth$1, r as isWide$1 } from "./get-east-asian-width-DRPy7dqz.js";
|
|
8
8
|
import * as fs$1 from "node:fs";
|
|
9
9
|
import fs from "node:fs";
|
|
@@ -25870,5 +25870,5 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
25870
25870
|
//#endregion
|
|
25871
25871
|
export { useExitOnCtrlC as a, Spinner as c, useInput as d, Transform as f, Box as h, import_react as i, useStdout as l, Text as m, registerMountedTuiRenderer as n, terminalSymbols as o, render as p, useStdoutDimensions as r, isPrintableInput as s, require_jsx_runtime as t, useApp as u };
|
|
25872
25872
|
|
|
25873
|
-
//# sourceMappingURL=jsx-runtime-
|
|
25874
|
-
//# debugId=
|
|
25873
|
+
//# sourceMappingURL=jsx-runtime-BgSqPHew.js.map
|
|
25874
|
+
//# debugId=fd8730ed-ada5-5f5e-a12e-3e95c2e0f48e
|
|
@@ -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 { _ as VERSION, hn as gen, jt as highlighter, ln as log } from "./record-metric-
|
|
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]="fbaac423-bce4-54fa-aeb5-282b9d8b66c0")}catch(e){}}();
|
|
3
|
+
import { _ as VERSION, hn as gen, jt as highlighter, ln as log } from "./record-metric-C4i_4em1.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-
|
|
22
|
-
//# debugId=
|
|
21
|
+
//# sourceMappingURL=print-branded-header-BkwARxm7.js.map
|
|
22
|
+
//# debugId=fbaac423-bce4-54fa-aeb5-282b9d8b66c0
|
|
@@ -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]="
|
|
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]="fe8771ae-deec-5b1f-8277-d33491d7702b")}catch(e){}}();
|
|
3
3
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
4
|
-
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-
|
|
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-
|
|
4
|
+
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-CgDttdUz.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-BgSqPHew.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-
|
|
240
|
-
//# debugId=
|
|
239
|
+
//# sourceMappingURL=prompt-runtime-scan-url-BeEvVCIk.js.map
|
|
240
|
+
//# debugId=fe8771ae-deec-5b1f-8277-d33491d7702b
|
|
@@ -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 { Wn as isPlainObject } from "./record-metric-
|
|
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]="91af67a7-f319-55de-8083-d176695f11ae")}catch(e){}}();
|
|
3
|
+
import { Wn as isPlainObject } from "./record-metric-C4i_4em1.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-
|
|
24
|
-
//# debugId=
|
|
23
|
+
//# sourceMappingURL=read-object-file-Cl68gVd9.js.map
|
|
24
|
+
//# debugId=91af67a7-f319-55de-8083-d176695f11ae
|
|
@@ -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]="
|
|
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]="0b77f74b-7255-59f7-b6dd-7420f54204aa")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-
|
|
4
|
+
import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-Bwylqy0B.js";
|
|
5
5
|
import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as fs$1$2 from "node:fs";
|
|
@@ -77095,7 +77095,7 @@ const makeNoopConsole = () => ({
|
|
|
77095
77095
|
});
|
|
77096
77096
|
//#endregion
|
|
77097
77097
|
//#region src/cli/utils/version.ts
|
|
77098
|
-
const VERSION = "0.9.17-dev.
|
|
77098
|
+
const VERSION = "0.9.17-dev.a47c7e0";
|
|
77099
77099
|
//#endregion
|
|
77100
77100
|
//#region src/cli/utils/json-mode.ts
|
|
77101
77101
|
let context = null;
|
|
@@ -77439,5 +77439,5 @@ const recordDistribution = (name, value, options = {}) => {
|
|
|
77439
77439
|
//#endregion
|
|
77440
77440
|
export { buildRuleSeverityControls as $, setColorEnabled as $t, Files as A, provide$2 as An, hashFileContents as At, PerFileLintCacheEnabled as B, toCanonicalPath as Bn, listWorkspacePackages as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, runPromise as Cn, getDiagnosticRuleIdentity as Ct, isCodingAgentEnvironment as D, void_ as Dn, groupBy as Dt, isCiOrCodingAgentEnvironment as E, try_ as En, getRuleMetadata as Et, Linter as F, void_$1 as Fn, isSameRuleKey as Ft, SidecarLintCacheEnabled as G, mergeReactDoctorConfigs as Gt, Project as H, isErrnoException as Hn, mapWithConcurrency as Ht, Maintainability as I, ParentSpan as In, isScanComplete as It, anonymizeInPlace as J, resolveLintBatchOrdering as Jt, StagedFiles as K, remainingDeadlineBudgetMs as Kt, NodeResolver as L, isMonorepoRoot as Ln, layerObservability as Lt, InvocationCaches as M, close as Mn, isPathInsideDirectory as Mt, LEGACY_CONFIG_FILENAME as N, makeUnsafe$5 as Nn, isProjectDiscoveryError as Nt, Config as O, buildWithScope as On, hasPublishedFixRecipe as Ot, LintPartialFailures as P, fail$5 as Pn, isReactDoctorError as Pt, buildRuleDocsUrl as Q, scrubSensitivePaths as Qt, OxlintConcurrency as R, yieldToEventLoop as Rn, listSourceFiles as Rt, isDebugFlagEnabled as S, provideService as Sn, getChangedLineRanges as St, isCiEnvironment as T, sync as Tn, getEquivalentRuleKeys as Tt, Reporter as U, isFile as Un, materializeSourceTree as Ut, Progress as V, isDirectory as Vn, loadConfigWithSource as Vt, Score as W, isPlainObject as Wn, mergeAndFilterDiagnostics as Wt, atomicWriteJson as X, restoreLegacyThrow as Xt, anonymizeText as Y, resolveScanTarget as Yt, buildJsonReport as Z, runInspect as Zt, VERSION as _, map$3 as _n, findLegacyConfig as _t, isEnvFlagEnabled as a, warmOxlintWorkerPool as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, provide as bn, formatReactDoctorError as bt, setSentryProjectInfo as c, info as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, Diagnostic as dn, detectAiTrainingEnvironment as dt, shouldUseMaintainabilityLayer as en, buildSkippedChecks as et, setJsonReportDirectory as f, JsonReport as fn, discoverSupportedSubprojects as ft, writeJsonReport as g, makeSpan$1 as gn, findGitRepositoryRoot as gt, writeJsonErrorReport as h, gen as hn, filterSourceFiles as ht, isTelemetryEnabled as i, warmDuplicateJsxWorker as in, clearConfigCache as it, Git as j, succeed$3 as jn, highlighter as jt, DIAGNOSTIC_DELTA_IDENTITY as k, mergeAll$1 as kn, hasSupportedFrameworkOrLibrary as kt, getRunId as l, log as ln, createInvocationCaches as lt, writeJsonCancellationReport as m, make$30 as mn, filterPathsOutsideDirectories as mt, recordDistribution as n, toRelativePath as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, Console as on, computeConfigFingerprint as ot, setJsonReportMode as p, decodeUnknownSync as pn, filterDiagnosticsForSurface as pt, SupplyChain as q, resolveGithubActionsScoreMetadata as qt, toSpanAttributes as r, validateConfigTypes as rn, classifyFileContext as rt, buildSentryProjectContext as s, error as sn, computeDiagnosticDelta as st, recordCount as t, summarizeDiagnostics as tn, calculateScore as tt, enableJsonMode as u, warn$1 as un, createOxlintSpawnSlots as ut, makeNoopConsole as v, orElseSucceed as vn, fingerprintDiagnosticEvidence as vt, detectRunnerOs as w, runSync as wn, getDiffInfo as wt, isGitHookEnvironment as x, provideContext as xn, getBaselineDiffPlan as xt, CliInputError as y, promise as yn, formatErrorChain as yt, OxlintSpawnSlots as z, messageFromUnknown as zn, listSourceFilesCooperative as zt };
|
|
77441
77441
|
|
|
77442
|
-
//# sourceMappingURL=record-metric-
|
|
77443
|
-
//# debugId=
|
|
77442
|
+
//# sourceMappingURL=record-metric-C4i_4em1.js.map
|
|
77443
|
+
//# debugId=0b77f74b-7255-59f7-b6dd-7420f54204aa
|
|
@@ -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]="
|
|
3
|
-
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-
|
|
4
|
-
import { Pt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-
|
|
5
|
-
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-
|
|
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]="17db1428-850a-57c0-a6fd-995634f4b7ba")}catch(e){}}();
|
|
3
|
+
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { Pt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-C4i_4em1.js";
|
|
5
|
+
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-DsEQ3Yc8.js";
|
|
6
6
|
import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
|
|
7
7
|
//#region src/cli/utils/report-error.ts
|
|
8
8
|
/**
|
|
@@ -61,5 +61,5 @@ const reportErrorToSentry = async (error) => {
|
|
|
61
61
|
//#endregion
|
|
62
62
|
export { reportErrorToSentry as t };
|
|
63
63
|
|
|
64
|
-
//# sourceMappingURL=report-error-
|
|
65
|
-
//# debugId=
|
|
64
|
+
//# sourceMappingURL=report-error-BEBS99Z5.js.map
|
|
65
|
+
//# debugId=17db1428-850a-57c0-a6fd-995634f4b7ba
|
|
@@ -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]="
|
|
3
|
-
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-
|
|
4
|
-
import { t as recordCount } from "./record-metric-
|
|
5
|
-
import { 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]="6d055a9f-e072-5aac-a594-afcf1abdd131")}catch(e){}}();
|
|
3
|
+
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { t as recordCount } from "./record-metric-C4i_4em1.js";
|
|
5
|
+
import { u as isCommandAvailable } from "./install-github-workflow-ChF7QmpO.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
@@ -289,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
|
|
|
289
289
|
//#endregion
|
|
290
290
|
export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, loadAgentInstall as g, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
|
|
291
291
|
|
|
292
|
-
//# sourceMappingURL=report-workflow-result-
|
|
293
|
-
//# debugId=
|
|
292
|
+
//# sourceMappingURL=report-workflow-result-Bp082NTK.js.map
|
|
293
|
+
//# debugId=6d055a9f-e072-5aac-a594-afcf1abdd131
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-
|
|
4
|
-
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-
|
|
5
|
-
import { $ as buildRuleSeverityControls, A as Files, At as hashFileContents, B as PerFileLintCacheEnabled, Bt as listWorkspacePackages, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runPromise, Ct as getDiagnosticRuleIdentity, Dt as groupBy, E as isCiOrCodingAgentEnvironment, En as try_, Et as getRuleMetadata, F as Linter, G as SidecarLintCacheEnabled, Gt as mergeReactDoctorConfigs, H as Project, Ht as mapWithConcurrency, I as Maintainability, In as ParentSpan, It as isScanComplete, Jt as resolveLintBatchOrdering, Kt as remainingDeadlineBudgetMs, L as NodeResolver, Ln as isMonorepoRoot, M as InvocationCaches, Mt as isPathInsideDirectory, O as Config, Ot as hasPublishedFixRecipe, P as LintPartialFailures, Pt as isReactDoctorError, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rn as yieldToEventLoop, Rt as listSourceFiles, Sn as provideService, T as isCiEnvironment, Tn as sync, U as Reporter, Un as isFile, Ut as materializeSourceTree, V as Progress, Vn as isDirectory, W as Score, Wt as mergeAndFilterDiagnostics, X as atomicWriteJson, Xt as restoreLegacyThrow, Yt as resolveScanTarget, Zt as runInspect, _ as VERSION, _n as map, an as warmOxlintWorkerPool, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provide, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as Diagnostic, en as shouldUseMaintainabilityLayer, et as buildSkippedChecks, ft as discoverSupportedSubprojects, hn as gen, ht as filterSourceFiles, in as warmDuplicateJsxWorker, j as Git, jn as succeed, jt as highlighter, k as DIAGNOSTIC_DELTA_IDENTITY, kn as mergeAll, l as getRunId, ln as log, lt as createInvocationCaches, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as Console, ot as computeConfigFingerprint, pn as decodeUnknownSync, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveGithubActionsScoreMetadata, r as toSpanAttributes, rt as classifyFileContext, sn as error, st as computeDiagnosticDelta, t as recordCount, tn as summarizeDiagnostics, tt as calculateScore, un as warn, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as orElseSucceed, vt as fingerprintDiagnosticEvidence, w as detectRunnerOs, wn as runSync, xn as provideContext, y as CliInputError, yn as promise, z as OxlintSpawnSlots, zt as listSourceFilesCooperative } from "./record-metric-
|
|
6
|
-
import { t as getTelemetryContext } from "./telemetry-runtime-
|
|
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]="06f8106c-c367-5853-84f3-6619535521f0")}catch(e){}}();
|
|
3
|
+
import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-BvdYcw6Q.js";
|
|
5
|
+
import { $ as buildRuleSeverityControls, A as Files, At as hashFileContents, B as PerFileLintCacheEnabled, Bt as listWorkspacePackages, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runPromise, Ct as getDiagnosticRuleIdentity, Dt as groupBy, E as isCiOrCodingAgentEnvironment, En as try_, Et as getRuleMetadata, F as Linter, G as SidecarLintCacheEnabled, Gt as mergeReactDoctorConfigs, H as Project, Ht as mapWithConcurrency, I as Maintainability, In as ParentSpan, It as isScanComplete, Jt as resolveLintBatchOrdering, Kt as remainingDeadlineBudgetMs, L as NodeResolver, Ln as isMonorepoRoot, M as InvocationCaches, Mt as isPathInsideDirectory, O as Config, Ot as hasPublishedFixRecipe, P as LintPartialFailures, Pt as isReactDoctorError, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rn as yieldToEventLoop, Rt as listSourceFiles, Sn as provideService, T as isCiEnvironment, Tn as sync, U as Reporter, Un as isFile, Ut as materializeSourceTree, V as Progress, Vn as isDirectory, W as Score, Wt as mergeAndFilterDiagnostics, X as atomicWriteJson, Xt as restoreLegacyThrow, Yt as resolveScanTarget, Zt as runInspect, _ as VERSION, _n as map, an as warmOxlintWorkerPool, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provide, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as Diagnostic, en as shouldUseMaintainabilityLayer, et as buildSkippedChecks, ft as discoverSupportedSubprojects, hn as gen, ht as filterSourceFiles, in as warmDuplicateJsxWorker, j as Git, jn as succeed, jt as highlighter, k as DIAGNOSTIC_DELTA_IDENTITY, kn as mergeAll, l as getRunId, ln as log, lt as createInvocationCaches, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as Console, ot as computeConfigFingerprint, pn as decodeUnknownSync, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveGithubActionsScoreMetadata, r as toSpanAttributes, rt as classifyFileContext, sn as error, st as computeDiagnosticDelta, t as recordCount, tn as summarizeDiagnostics, tt as calculateScore, un as warn, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as orElseSucceed, vt as fingerprintDiagnosticEvidence, w as detectRunnerOs, wn as runSync, xn as provideContext, y as CliInputError, yn as promise, z as OxlintSpawnSlots, zt as listSourceFilesCooperative } from "./record-metric-C4i_4em1.js";
|
|
6
|
+
import { t as getTelemetryContext } from "./telemetry-runtime-DsEQ3Yc8.js";
|
|
7
7
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
8
|
-
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-
|
|
8
|
+
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-BJcCSTF9.js";
|
|
9
9
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
10
10
|
import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
|
|
11
|
-
import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-
|
|
12
|
-
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-
|
|
13
|
-
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-
|
|
14
|
-
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-
|
|
15
|
-
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-
|
|
11
|
+
import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-BLb18kaf.js";
|
|
12
|
+
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-ChF7QmpO.js";
|
|
13
|
+
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-DfKJ9y3u.js";
|
|
14
|
+
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-HxBxfUQH.js";
|
|
15
|
+
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-Bp082NTK.js";
|
|
16
16
|
import { createRequire } from "node:module";
|
|
17
17
|
import * as fs$2 from "node:fs";
|
|
18
18
|
import fs, { mkdtempSync, rmSync } from "node:fs";
|
|
@@ -3161,15 +3161,18 @@ const validateModeFlags = (flags) => {
|
|
|
3161
3161
|
//#region src/cli/utils/format-skipped-projects-message.ts
|
|
3162
3162
|
const formatSkippedProjectsMessage = (projectCount) => `${projectCount} ${projectCount === 1 ? "project was" : "projects were"} skipped because the max scan duration was reached.`;
|
|
3163
3163
|
//#endregion
|
|
3164
|
-
//#region src/cli/utils/
|
|
3165
|
-
const
|
|
3166
|
-
if (input.blockingLevel === "none") return
|
|
3167
|
-
if (input.scans.some(({ result }) => hasLintHardFailure(result))) return
|
|
3168
|
-
if (input.diagnosticsAreGateExempt === true) return
|
|
3169
|
-
|
|
3164
|
+
//#region src/cli/utils/resolve-scan-exit-code.ts
|
|
3165
|
+
const resolveScanExitCode = (input) => {
|
|
3166
|
+
if (input.blockingLevel === "none") return 0;
|
|
3167
|
+
if (input.scans.some(({ result }) => hasLintHardFailure(result))) return 1;
|
|
3168
|
+
if (input.diagnosticsAreGateExempt === true) return 0;
|
|
3169
|
+
const diagnostics = filterScansForSurface(input.scans, "ciFailure");
|
|
3170
|
+
if (shouldBlockCi(diagnostics, input.blockingLevel)) return 1;
|
|
3171
|
+
if (diagnostics.some((diagnostic) => diagnostic.severity === "warning")) return input.warningExitCode ?? 0;
|
|
3172
|
+
return 0;
|
|
3170
3173
|
};
|
|
3171
3174
|
//#endregion
|
|
3172
|
-
export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s,
|
|
3175
|
+
export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, resolveScanExitCode as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
|
|
3173
3176
|
|
|
3174
|
-
//# sourceMappingURL=
|
|
3175
|
-
//# debugId=
|
|
3177
|
+
//# sourceMappingURL=resolve-scan-exit-code-Bp8CaLFy.js.map
|
|
3178
|
+
//# debugId=06f8106c-c367-5853-84f3-6619535521f0
|
|
@@ -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 { Bn as toCanonicalPath, Mt as isPathInsideDirectory, ht as filterSourceFiles } from "./record-metric-
|
|
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]="7e886ff4-ed5d-5b69-a9e8-304c0c159114")}catch(e){}}();
|
|
3
|
+
import { Bn as toCanonicalPath, Mt as isPathInsideDirectory, ht as filterSourceFiles } from "./record-metric-C4i_4em1.js";
|
|
4
4
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
5
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
6
|
-
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-
|
|
5
|
+
import { N as cliLogger } from "./install-doctor-script-BLb18kaf.js";
|
|
6
|
+
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-ChF7QmpO.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-DfKJ9y3u.js.map
|
|
337
|
+
//# debugId=7e886ff4-ed5d-5b69-a9e8-304c0c159114
|
|
@@ -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 { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-
|
|
4
|
-
import { Ft as isSameRuleKey, Q as buildRuleDocsUrl, Tt as getEquivalentRuleKeys, Vt as loadConfigWithSource, Wn as isPlainObject, it as clearConfigCache, jt as highlighter, rn as validateConfigTypes, t as recordCount } from "./record-metric-
|
|
5
|
-
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
6
|
-
import { t as readObjectFile } from "./read-object-file-
|
|
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]="3ee5151e-235c-5f0f-9dd7-40a8b6bf392b")}catch(e){}}();
|
|
3
|
+
import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { Ft as isSameRuleKey, Q as buildRuleDocsUrl, Tt as getEquivalentRuleKeys, Vt as loadConfigWithSource, Wn as isPlainObject, it as clearConfigCache, jt as highlighter, rn as validateConfigTypes, t as recordCount } from "./record-metric-C4i_4em1.js";
|
|
5
|
+
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BLb18kaf.js";
|
|
6
|
+
import { t as readObjectFile } from "./read-object-file-Cl68gVd9.js";
|
|
7
7
|
import * as fs$1 from "node:fs";
|
|
8
8
|
import * as path$1 from "node:path";
|
|
9
9
|
import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
|
|
@@ -578,5 +578,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
|
|
|
578
578
|
//#endregion
|
|
579
579
|
export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
|
|
580
580
|
|
|
581
|
-
//# sourceMappingURL=rules-
|
|
582
|
-
//# debugId=
|
|
581
|
+
//# sourceMappingURL=rules-DxujEbHW.js.map
|
|
582
|
+
//# debugId=3ee5151e-235c-5f0f-9dd7-40a8b6bf392b
|
|
@@ -1,14 +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 { 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-
|
|
4
|
-
import { Cn as runPromise, Dn as void_, Ht as mapWithConcurrency, Kt as remainingDeadlineBudgetMs, Ot as hasPublishedFixRecipe, Q as buildRuleDocsUrl, Rn as yieldToEventLoop, St as getChangedLineRanges, T as isCiEnvironment, Tn as sync, U as Reporter, V as Progress, Yt as resolveScanTarget, jn as succeed, jt as highlighter, n as recordDistribution, t as recordCount, tt as calculateScore, wt as getDiffInfo, x as isGitHookEnvironment, xt as getBaselineDiffPlan } from "./record-metric-
|
|
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]="2f718319-4c5d-54a0-8e12-19f7e0abc208")}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-Bwylqy0B.js";
|
|
4
|
+
import { Cn as runPromise, Dn as void_, Ht as mapWithConcurrency, Kt as remainingDeadlineBudgetMs, Ot as hasPublishedFixRecipe, Q as buildRuleDocsUrl, Rn as yieldToEventLoop, St as getChangedLineRanges, T as isCiEnvironment, Tn as sync, U as Reporter, V as Progress, Yt as resolveScanTarget, jn as succeed, jt as highlighter, n as recordDistribution, t as recordCount, tt as calculateScore, wt as getDiffInfo, x as isGitHookEnvironment, xt as getBaselineDiffPlan } from "./record-metric-C4i_4em1.js";
|
|
5
5
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
6
|
-
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
7
|
-
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-
|
|
8
|
-
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-
|
|
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
|
|
10
|
-
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-
|
|
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-
|
|
6
|
+
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BLb18kaf.js";
|
|
7
|
+
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-ChF7QmpO.js";
|
|
8
|
+
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-DfKJ9y3u.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 resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./resolve-scan-exit-code-Bp8CaLFy.js";
|
|
10
|
+
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-Bp082NTK.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-BgSqPHew.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { performance } from "node:perf_hooks";
|
|
14
14
|
import isUnicodeSupported from "is-unicode-supported";
|
|
@@ -2217,7 +2217,7 @@ const mountScanApp = async (rootDirectory, shouldRecommendCi, initialProgress) =
|
|
|
2217
2217
|
executePendingActions
|
|
2218
2218
|
};
|
|
2219
2219
|
};
|
|
2220
|
-
const runMountedScan = async (rootDirectory, presentation,
|
|
2220
|
+
const runMountedScan = async (rootDirectory, presentation, gateOptions, executeScan) => {
|
|
2221
2221
|
const { store, pendingActions, mountRenderer, executePendingActions } = await mountScanApp(rootDirectory, presentation.shouldRecommendCi, presentation.initialProgress);
|
|
2222
2222
|
let mountedRenderer = mountRenderer("scan");
|
|
2223
2223
|
recordCount(METRIC.tuiScanInlineShown);
|
|
@@ -2243,9 +2243,9 @@ const runMountedScan = async (rootDirectory, presentation, blockingLevel, execut
|
|
|
2243
2243
|
lintFailureReason: resolveLintFailureReason(completedScan.scans.map(({ result }) => result))
|
|
2244
2244
|
});
|
|
2245
2245
|
await executePendingActions();
|
|
2246
|
-
return {
|
|
2246
|
+
return { exitCode: resolveScanExitCode({
|
|
2247
|
+
...gateOptions,
|
|
2247
2248
|
scans: completedScan.scans,
|
|
2248
|
-
blockingLevel,
|
|
2249
2249
|
diagnosticsAreGateExempt: completedScan.diagnosticsAreGateExempt
|
|
2250
2250
|
}) };
|
|
2251
2251
|
} catch (error) {
|
|
@@ -2265,10 +2265,14 @@ const runSingleProjectScan = async (rootScanTarget, projectDirectory, workspaceP
|
|
|
2265
2265
|
});
|
|
2266
2266
|
if (scopeOptions === null) {
|
|
2267
2267
|
process.stdout.write("No changed source files in the selected project.\n");
|
|
2268
|
-
return {
|
|
2268
|
+
return { exitCode: 0 };
|
|
2269
2269
|
}
|
|
2270
2270
|
const presentation = resolveScanPresentation(input, [projectScan], rootScanTarget.resolvedDirectory);
|
|
2271
|
-
|
|
2271
|
+
const gateOptions = {
|
|
2272
|
+
blockingLevel,
|
|
2273
|
+
warningExitCode: input.warningExitCode
|
|
2274
|
+
};
|
|
2275
|
+
return runMountedScan(projectScan.directory, presentation, gateOptions, async (context) => {
|
|
2272
2276
|
const result = await inspectProject(projectScan.directory, {
|
|
2273
2277
|
...resolveTuiInspectOptions(input, projectScan.config),
|
|
2274
2278
|
...scopeOptions,
|
|
@@ -2341,7 +2345,7 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
|
|
|
2341
2345
|
});
|
|
2342
2346
|
if (projectScans.length === 0) {
|
|
2343
2347
|
process.stdout.write("No changed source files in the selected projects.\n");
|
|
2344
|
-
return {
|
|
2348
|
+
return { exitCode: 0 };
|
|
2345
2349
|
}
|
|
2346
2350
|
const projectCount = projectScans.length;
|
|
2347
2351
|
const rootProjectScan = discoveredProjectScans.find((projectScan) => path.resolve(projectScan.directory) === path.resolve(rootDirectory));
|
|
@@ -2351,7 +2355,10 @@ const runMultiProjectScan = async (rootScanTarget, directories, workspaceProject
|
|
|
2351
2355
|
isRootDeadCodeEnabled: input.options?.deadCode ?? rootProjectScan?.config?.deadCode ?? true
|
|
2352
2356
|
});
|
|
2353
2357
|
if (workspaceDeadCodeOwner !== null) recordCount(METRIC.scanWorkspaceMaintainabilityShared, 1, { projectCount: discoveredProjectScans.length });
|
|
2354
|
-
return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan), rootDirectory),
|
|
2358
|
+
return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan), rootDirectory), {
|
|
2359
|
+
blockingLevel,
|
|
2360
|
+
warningExitCode: input.warningExitCode
|
|
2361
|
+
}, async (context) => {
|
|
2355
2362
|
const startTime = performance.now();
|
|
2356
2363
|
let finishedCount = 0;
|
|
2357
2364
|
recordDistribution(METRIC.scanFeedbackDelay, performance.now() - feedbackStartTime, {
|
|
@@ -2504,15 +2511,16 @@ const runScanApp = async (input) => {
|
|
|
2504
2511
|
configProjects: input.configProjects ?? scanTarget.userConfig?.projects,
|
|
2505
2512
|
share: input.share ?? scanTarget.userConfig?.share ?? true
|
|
2506
2513
|
};
|
|
2514
|
+
if (input.warningExitCode !== void 0) recordCount(METRIC.scanWarningExitCodeConfigured);
|
|
2507
2515
|
const { selectedDirectories, workspaceProjectDirectories } = await resolveProjectSelection(rootDirectory, resolvedInput);
|
|
2508
2516
|
const inspectProject = createInvocationInspect(input.options?.concurrency);
|
|
2509
2517
|
const blockingLevel = resolveBlockingLevel({ blocking: resolvedInput.blocking }, scanTarget.userConfig);
|
|
2510
|
-
if (selectedDirectories.length === 0) return {
|
|
2518
|
+
if (selectedDirectories.length === 0) return { exitCode: 0 };
|
|
2511
2519
|
if (selectedDirectories.length === 1) return runSingleProjectScan(scanTarget, selectedDirectories[0], workspaceProjectDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
|
|
2512
2520
|
return runMultiProjectScan(scanTarget, selectedDirectories, workspaceProjectDirectories, resolvedInput, scopePlan, blockingLevel, inspectProject);
|
|
2513
2521
|
};
|
|
2514
2522
|
//#endregion
|
|
2515
2523
|
export { runScanApp };
|
|
2516
2524
|
|
|
2517
|
-
//# sourceMappingURL=run-scan-app
|
|
2518
|
-
//# debugId=
|
|
2525
|
+
//# sourceMappingURL=run-scan-app-uhbtgWev.js.map
|
|
2526
|
+
//# debugId=2f718319-4c5d-54a0-8e12-19f7e0abc208
|
|
@@ -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]="
|
|
3
|
-
import { u as METRIC } from "./constants-
|
|
4
|
-
import { jt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-
|
|
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]="210cd89a-1c5d-5746-bc0d-c1d0f91b7d93")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { jt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-C4i_4em1.js";
|
|
5
5
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
6
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
7
|
-
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-
|
|
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-
|
|
9
|
-
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-
|
|
6
|
+
import { t as reportErrorToSentry } from "./report-error-BEBS99Z5.js";
|
|
7
|
+
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-HxBxfUQH.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-CgDttdUz.js";
|
|
9
|
+
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-D6UAxVaQ.js";
|
|
10
10
|
import * as fs$1 from "node:fs";
|
|
11
11
|
import * as path$1 from "node:path";
|
|
12
12
|
import * as os$1 from "node:os";
|
|
@@ -720,7 +720,7 @@ const resolveRuntimeScanUrl = async (url) => {
|
|
|
720
720
|
if (url !== void 0) return url;
|
|
721
721
|
if (!isTuiEnvironmentSupported(resolveTuiEnvironment(process.stderr.isTTY === true))) throw new CliInputError("A URL is required outside an interactive terminal. Run `react-doctor scan <url>`.");
|
|
722
722
|
recordCount(METRIC.runtimeScanUrlPromptShown);
|
|
723
|
-
const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-
|
|
723
|
+
const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-BeEvVCIk.js");
|
|
724
724
|
return promptRuntimeScanUrl();
|
|
725
725
|
};
|
|
726
726
|
const runtimeScanAction = async (url, flags) => {
|
|
@@ -767,5 +767,5 @@ const runtimeScanAction = async (url, flags) => {
|
|
|
767
767
|
//#endregion
|
|
768
768
|
export { runtimeScanAction };
|
|
769
769
|
|
|
770
|
-
//# sourceMappingURL=runtime-scan-
|
|
771
|
-
//# debugId=
|
|
770
|
+
//# sourceMappingURL=runtime-scan-BHsXhHD7.js.map
|
|
771
|
+
//# debugId=210cd89a-1c5d-5746-bc0d-c1d0f91b7d93
|
|
@@ -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 { y as CliInputError } from "./record-metric-
|
|
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]="4533ed51-f164-5716-94ad-936f14fe9b8b")}catch(e){}}();
|
|
3
|
+
import { y as CliInputError } from "./record-metric-C4i_4em1.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-CgDttdUz.js.map
|
|
76
|
+
//# debugId=4533ed51-f164-5716-94ad-936f14fe9b8b
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { u as METRIC } from "./constants-
|
|
4
|
-
import { Yt as resolveScanTarget, t as recordCount } from "./record-metric-
|
|
5
|
-
import { i as warnDeprecatedDiff } from "./resolve-scope-
|
|
6
|
-
import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-
|
|
7
|
-
import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./
|
|
8
|
-
import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-
|
|
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]="2a17d3f4-a395-5dae-a217-28e680a744b4")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { Yt as resolveScanTarget, t as recordCount } from "./record-metric-C4i_4em1.js";
|
|
5
|
+
import { i as warnDeprecatedDiff } from "./resolve-scope-DfKJ9y3u.js";
|
|
6
|
+
import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-DSJalZ5V.js";
|
|
7
|
+
import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-Bp8CaLFy.js";
|
|
8
|
+
import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-D6UAxVaQ.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
//#region src/cli/commands/scan.ts
|
|
11
11
|
const runScanCommand = async (input) => {
|
|
@@ -29,20 +29,21 @@ const runScanCommand = async (input) => {
|
|
|
29
29
|
warnDeprecatedFailOn(input.flags, scanTarget.userConfig);
|
|
30
30
|
warnDeprecatedDiff(input.flags, scanTarget.userConfig);
|
|
31
31
|
recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
|
|
32
|
-
const { runScanApp } = await import("./run-scan-app
|
|
33
|
-
const {
|
|
32
|
+
const { runScanApp } = await import("./run-scan-app-uhbtgWev.js");
|
|
33
|
+
const { exitCode } = await runScanApp({
|
|
34
34
|
directory: input.directory,
|
|
35
35
|
scanTarget,
|
|
36
36
|
options: resolveCliInspectOptions(input.flags, null),
|
|
37
37
|
projectFlag: input.flags.project,
|
|
38
38
|
skipPrompts: input.flags.yes ?? false,
|
|
39
39
|
blocking: input.flags.blocking ?? input.flags.failOn,
|
|
40
|
-
flags: input.flags
|
|
40
|
+
flags: input.flags,
|
|
41
|
+
warningExitCode: input.flags.warningExitCode
|
|
41
42
|
});
|
|
42
|
-
if (
|
|
43
|
+
if (exitCode !== 0) process.exitCode = exitCode;
|
|
43
44
|
};
|
|
44
45
|
//#endregion
|
|
45
46
|
export { runScanCommand };
|
|
46
47
|
|
|
47
|
-
//# sourceMappingURL=scan-
|
|
48
|
-
//# debugId=
|
|
48
|
+
//# sourceMappingURL=scan-Cj9y8SAP.js.map
|
|
49
|
+
//# debugId=2a17d3f4-a395-5dae-a217-28e680a744b4
|
|
@@ -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]="
|
|
3
|
-
import { b as isNonInteractiveEnvironment } from "./record-metric-
|
|
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]="50678d05-9bb7-59a9-ba9e-d4a25444f368")}catch(e){}}();
|
|
3
|
+
import { b as isNonInteractiveEnvironment } from "./record-metric-C4i_4em1.js";
|
|
4
4
|
//#region src/cli/utils/should-skip-prompts.ts
|
|
5
5
|
const shouldSkipPrompts = (input = {}) => Boolean(input.yes) || Boolean(input.json) || isNonInteractiveEnvironment() || !process.stdin.isTTY;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { shouldSkipPrompts as t };
|
|
8
8
|
|
|
9
|
-
//# sourceMappingURL=should-skip-prompts-
|
|
10
|
-
//# debugId=
|
|
9
|
+
//# sourceMappingURL=should-skip-prompts-CduxjTi-.js.map
|
|
10
|
+
//# debugId=50678d05-9bb7-59a9-ba9e-d4a25444f368
|
|
@@ -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 { b as isNonInteractiveEnvironment } from "./record-metric-
|
|
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]="e98177be-9720-574f-a8f0-95326fa1d563")}catch(e){}}();
|
|
3
|
+
import { b as isNonInteractiveEnvironment } from "./record-metric-C4i_4em1.js";
|
|
4
4
|
//#region src/cli/utils/resolve-tui-environment.ts
|
|
5
5
|
const resolveTuiEnvironment = (outputIsTty = process.stdout.isTTY === true) => ({
|
|
6
6
|
isNonInteractiveEnvironment: isNonInteractiveEnvironment(),
|
|
@@ -21,5 +21,5 @@ const shouldUseTui = (input) => {
|
|
|
21
21
|
//#endregion
|
|
22
22
|
export { shouldUseTui as n, resolveTuiEnvironment as r, isTuiEnvironmentSupported as t };
|
|
23
23
|
|
|
24
|
-
//# sourceMappingURL=should-use-tui-
|
|
25
|
-
//# debugId=
|
|
24
|
+
//# sourceMappingURL=should-use-tui-D6UAxVaQ.js.map
|
|
25
|
+
//# debugId=e98177be-9720-574f-a8f0-95326fa1d563
|
|
@@ -64,3 +64,7 @@ npx react-doctor@latest --verbose --scope changed
|
|
|
64
64
|
### Reuse a base scan
|
|
65
65
|
|
|
66
66
|
Save a complete `--json` scan, then pass `--baseline base-report.json` to report only new findings. This also works with `--scope changed`. Use the same version and rules for both scans. Findings are grouped by rule and file path, following Git renames. Only increases in each group's count are reported; groups without an increase skip location matching. Fingerprints, message similarity, and Git-adjusted line distance select the added findings. Formatting and edits that keep the same counts report no new findings. Saved reports must use the same `textComponents`, `rawTextWrapperComponents`, and `respectInlineDisables` settings. Regenerate the base report after changing these settings, or use a Git comparison. Older reports without fingerprints or `sourceFilterConfigHash` must be regenerated.
|
|
67
|
+
|
|
68
|
+
### GitLab warning status
|
|
69
|
+
|
|
70
|
+
For GitLab CI, `--warning-exit-code 123` returns `123` for non-blocking warnings. Pair it with `allow_failure: { exit_codes: 123 }`. Errors still return `1`. Accepts integers from `2` to `255`. `--blocking warning` still returns `1`. `--blocking none` or `--score` skips this warning signal.
|