react-doctor 0.9.22-dev.ec45ff9 → 0.9.23-dev.dfffab3
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/dist/{build-section-divider-BjoMRSay.js → build-section-divider-BFxWf70B.js} +5 -5
- package/dist/{ci-Rhhvl7uT.js → ci-CLtdQCIE.js} +13 -13
- package/dist/cli.js +25 -25
- package/dist/{constants-lt2tTZjE.js → constants-BmD_c3Yq.js} +12 -6
- package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
- package/dist/{design-C5BQaJUn.js → design-BMqPn207.js} +4 -4
- package/dist/duplicate-jsx-worker.js +17 -10
- package/dist/{exit-gracefully-BxFRFqPQ.js → exit-gracefully-Bhyw-8gk.js} +6 -6
- package/dist/{handle-error-BnEcoXcw.js → handle-error-BJ_4E2kS.js} +6 -6
- package/dist/index.d.ts +5 -2
- package/dist/index.js +137 -20
- package/dist/{inspect-CrcIovH2.js → inspect-BuLr42QI.js} +16 -16
- package/dist/{install-DIHCDDtX.js → install-DsuiRD1t.js} +10 -10
- package/dist/{install-doctor-script-CcM2cToW.js → install-doctor-script-DJ6UbhZJ.js} +5 -5
- package/dist/{install-github-workflow-BUaLt5mn.js → install-github-workflow-BNRbJHjd.js} +6 -6
- package/dist/{install-react-doctor-BnaGEio4.js → install-react-doctor-BcsOSw5y.js} +9 -9
- package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-CveNGcRi.js} +4 -4
- package/dist/{jsx-runtime-CKOQW4i4.js → jsx-runtime-BDdabT1T.js} +6 -6
- package/dist/oxlint-worker.js +1 -1
- package/dist/{print-branded-header-COh3X3He.js → print-branded-header-BFh1P9t6.js} +4 -4
- package/dist/project-analysis-worker.js +1 -1
- package/dist/{prompt-runtime-scan-url-lBPap3oz.js → prompt-runtime-scan-url-CRx8qrV0.js} +5 -5
- package/dist/{read-object-file-sQUp7PMm.js → read-object-file-D3pRnLyV.js} +4 -4
- package/dist/{record-metric-3hs8M2Pf.js → record-metric-CWxS2npr.js} +132 -21
- package/dist/{report-error-CtR7ISJa.js → report-error-DA8uMulb.js} +6 -6
- package/dist/{report-workflow-result-C68s63w1.js → report-workflow-result-D6NNwRMm.js} +6 -6
- package/dist/{resolve-scan-exit-code-DrC3xu0y.js → resolve-scan-exit-code-DE6AIQwU.js} +13 -13
- package/dist/{resolve-scope-Cq7AJdtO.js → resolve-scope-B3xmSQ0a.js} +6 -6
- package/dist/{rules-BesJjxty.js → rules-CHxjoZwR.js} +7 -7
- package/dist/{run-scan-app-CfsLjIjZ.js → run-scan-app-BuI_XZcx.js} +11 -11
- package/dist/{runtime-scan-DA2v7tXp.js → runtime-scan-0pSZm3M0.js} +10 -10
- package/dist/{sanitize-runtime-url-C9P8617N.js → sanitize-runtime-url-BCw_Ixks.js} +4 -4
- package/dist/{scan-BTjqJfRl.js → scan-Be7a-iK7.js} +10 -10
- package/dist/{should-skip-prompts-DjIiPcs_.js → should-skip-prompts-CDudIC40.js} +4 -4
- package/dist/{should-use-tui-Cd3om7tH.js → should-use-tui-HuQLii4U.js} +4 -4
- package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DDAT_0oB.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-JrDTvdnm.js → telemetry-runtime-De9QafWu.js} +13 -7
- package/dist/{version-osih6Dt3.js → version-uDDHk7KW.js} +5 -5
- package/dist/{why-BJLqu_nm.js → why-Dww_fJtq.js} +4 -4
- package/dist/{with-run-span-DJ74_coc.js → with-run-span-CRYkeESN.js} +6 -6
- package/package.json +4 -4
|
@@ -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 { Kn 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]="d06305c2-a479-554b-90cd-976a7148f1a0")}catch(e){}}();
|
|
3
|
+
import { Kn as isPlainObject } from "./record-metric-CWxS2npr.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-D3pRnLyV.js.map
|
|
24
|
+
//# debugId=d06305c2-a479-554b-90cd-976a7148f1a0
|
|
@@ -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]="f2b47816-a0c6-5228-a261-97a495a1bb85")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { $ as warmReactCompilerDetection, $t as
|
|
4
|
+
import { $ as warmReactCompilerDetection, $t as OXLINT_SPLIT_TOTAL_BUDGET_MS, A as buildGitSourceListingRequest, An as TAILWIND_POSTCSS7_COMPAT_ALIAS, B as resolveGitCommand, Bt as MAINTAINABILITY_CATEGORY, Cn as SUPPLY_CHAIN_CACHE_SUBDIR, Dn as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Dt as FILE_LINT_CACHE_MAX_FILE_COUNT, En as SUPPLY_CHAIN_IGNORED_PACKAGES, Et as FILE_LINT_CACHE_FILENAME, F as lowerChildProcessPriority, Fn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Ft as GIT_SOURCE_LISTING_ARGUMENTS, G as resolvePluginPath, Gt as MILLISECONDS_PER_SECOND, H as resolveOxlintThreadCount, Ht as MAINTAINABILITY_PLUGIN, In as VERCEL_NEXTJS_SECURITY_RELEASE_URL, It as HTML_FILE_PATTERN, J as resolveTsConfigRelativePath, Jt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, K as resolveReactDoctorCacheDir, Kt as MINIFIED_SNIFF_BYTES, Lt as IGNORED_DIRECTORIES, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_EXPORT_INTERVAL_MS, Mt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, Nn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Nt as GIT_LS_FILES_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_PLUGIN, Ot as GENERATED_BUNDLE_FILE_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TSCONFIG_FILENAMES, Pt as GIT_SHOW_MAX_BUFFER_BYTES, Q as takeReactCompilerDetection, Qt as OXLINT_SPAWN_TIMEOUT_MS, R as readSystemConcurrencyFacts, Rt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, St as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, Tn as SUPPLY_CHAIN_CATEGORY, Tt as FETCH_TIMEOUT_MS, U as resolveOxlintToolchainVersions, V as resolveOxlintBinary, Vt as MAINTAINABILITY_DUPLICATE_JSX_RULE, W as resolveOxlintWorkerRuntime, Wt as MAX_GLOB_PATTERN_LENGTH_CHARS, X as spawnOxlintWorkerProcess, Xt as OXLINT_OOM_RESCUE_BUDGET_MS, Y as setChildProcessRef, Z as takePrespawnedOxlintWorker, Zt as OXLINT_OUTPUT_MAX_BYTES, _n as SOCKET_PACKAGE_PAGE_BASE, _t as DEFAULT_BRANCH_CANDIDATES, an as REACT_BLOG_RSC_ADVISORY_URL, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, bt as DOCS_RULES_BASE_URL, cn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, ct as AXIOM_TRACES_PATH, d as METRIC_DISTRIBUTION_BOUNDARIES, dn as SCORE_API_URL, en as OXLINT_WORKER_JOB_END_MARKER, et as ABORT_EXIT_CODES, ft as COMPILER_CLEANUP_BUCKET, gn as SOCKET_FREE_USER_AGENT, hn as SOCKET_FREE_PURL_API_BASE, ht as CONFIG_FINGERPRINT_FILENAMES, in as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, it as AXIOM_DATASET_HEADER, j as buildOxlintChildEnv, jn as TARGET_BLANK_BROWSER_SUPPORT, jt as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, kn as SUPPLY_CHAIN_RULE, kt as GENERATED_SOURCE_DIRECTORY_PATTERN, l as INTERNAL_ERROR_JSON_FALLBACK, ln as ROOT_CAUSE_GROUPABLE_RULE_KEYS, mt as CONFIG_CACHE_TTL_MS, nn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, nt as ADOPTED_LINT_CONFIG_MAX_BYTES, on as REACT_ROUTER_CAPABILITY_THRESHOLDS, ot as AXIOM_METRICS_DATASET_HEADER, pn as SIDECAR_LINT_CACHE_FILENAME, pt as COMPILER_CLEANUP_RULE_KEYS, q as resolveScanConcurrency, qt as OCCURRENCE_MATCHED_CATEGORIES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, rt as APP_ONLY_RULE_KEYS, sn as REACT_SERVER_DOM_PACKAGES, st as AXIOM_METRICS_PATH, tn as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCANNED_DOT_DIRECTORIES, vn as SOURCE_FILE_PATTERN, vt as DIAGNOSTIC_CATEGORY_BUCKETS, wn as SUPPLY_CHAIN_CACHE_TTL_MS, wt as ES_TARGET_YEAR_BY_NAME, xn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, yn as SPAWN_ARGS_MAX_LENGTH_CHARS, yt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, z as resolveConfiguredScanConcurrency } from "./constants-BmD_c3Yq.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";
|
|
@@ -88,7 +88,7 @@ const unwrapTypescriptExpression = (expression) => {
|
|
|
88
88
|
return currentExpression;
|
|
89
89
|
};
|
|
90
90
|
//#endregion
|
|
91
|
-
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-
|
|
91
|
+
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-Z9dhela6.js
|
|
92
92
|
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
93
93
|
const LINGUIST_ATTRIBUTES = ["linguist-generated", "linguist-vendored"];
|
|
94
94
|
const DISABLED_ATTRIBUTE_VALUES = new Set([
|
|
@@ -526,7 +526,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
|
|
|
526
526
|
return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
|
|
527
527
|
};
|
|
528
528
|
//#endregion
|
|
529
|
-
//#region ../core/dist/detect-duplicate-jsx-subtrees-
|
|
529
|
+
//#region ../core/dist/detect-duplicate-jsx-subtrees-B5UWtUyz.js
|
|
530
530
|
const yieldToEventLoop = () => new Promise((resolve) => {
|
|
531
531
|
setImmediate(resolve);
|
|
532
532
|
});
|
|
@@ -651,7 +651,7 @@ const resolveOptions$1 = (options) => ({
|
|
|
651
651
|
minimumDistinctFiles: options.minimumDistinctFiles ?? 1,
|
|
652
652
|
maxSourceFiles: options.budget?.maxSourceFiles ?? 5e3,
|
|
653
653
|
maxSourceLengthChars: options.budget?.maxSourceLengthChars ?? 1e6,
|
|
654
|
-
maxJsxNodes: options.budget?.maxJsxNodes ??
|
|
654
|
+
maxJsxNodes: options.budget?.maxJsxNodes ?? 5e5,
|
|
655
655
|
maxFamilies: options.budget?.maxFamilies ?? 20
|
|
656
656
|
});
|
|
657
657
|
const hashParts = (parts) => {
|
|
@@ -865,10 +865,12 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
865
865
|
const jsxNodes = [];
|
|
866
866
|
const pendingNodes = [sourceFile];
|
|
867
867
|
let limitExceeded = false;
|
|
868
|
+
let observedJsxNodeCount = 0;
|
|
868
869
|
while (pendingNodes.length > 0 && !limitExceeded && !signal?.aborted) {
|
|
869
870
|
const currentNode = pendingNodes.pop();
|
|
870
871
|
if (currentNode === void 0) continue;
|
|
871
872
|
if (isJsxSubtreeNode(currentNode)) {
|
|
873
|
+
observedJsxNodeCount += 1;
|
|
872
874
|
if (jsxNodes.length >= maximumCandidateCount) {
|
|
873
875
|
limitExceeded = true;
|
|
874
876
|
continue;
|
|
@@ -884,7 +886,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
884
886
|
if (limitExceeded || signal?.aborted) return {
|
|
885
887
|
candidates: [],
|
|
886
888
|
aborted: signal?.aborted ?? false,
|
|
887
|
-
limitExceeded
|
|
889
|
+
limitExceeded,
|
|
890
|
+
observedJsxNodeCount
|
|
888
891
|
};
|
|
889
892
|
const metadataByNode = /* @__PURE__ */ new Map();
|
|
890
893
|
const functionIdentityByNode = /* @__PURE__ */ new Map();
|
|
@@ -892,7 +895,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
892
895
|
if (signal?.aborted) return {
|
|
893
896
|
candidates: [],
|
|
894
897
|
aborted: true,
|
|
895
|
-
limitExceeded: false
|
|
898
|
+
limitExceeded: false,
|
|
899
|
+
observedJsxNodeCount
|
|
896
900
|
};
|
|
897
901
|
buildJsxSubtreeMetadata(jsxNodes[nodeIndex], metadataByNode);
|
|
898
902
|
}
|
|
@@ -910,7 +914,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
910
914
|
};
|
|
911
915
|
}),
|
|
912
916
|
aborted: false,
|
|
913
|
-
limitExceeded: false
|
|
917
|
+
limitExceeded: false,
|
|
918
|
+
observedJsxNodeCount
|
|
914
919
|
};
|
|
915
920
|
};
|
|
916
921
|
const scanSource = (input) => {
|
|
@@ -947,8 +952,7 @@ const scanSource = (input) => {
|
|
|
947
952
|
incompleteReason: {
|
|
948
953
|
kind: "jsx-node-limit",
|
|
949
954
|
limit: input.options.maxJsxNodes,
|
|
950
|
-
observed: input.
|
|
951
|
-
path: input.source.path
|
|
955
|
+
observed: input.scannedJsxNodeCount + collectedCandidates.observedJsxNodeCount
|
|
952
956
|
},
|
|
953
957
|
didAbort: false,
|
|
954
958
|
didScan: false
|
|
@@ -1065,7 +1069,10 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
1065
1069
|
scannedSourceFileCount,
|
|
1066
1070
|
scannedJsxNodeCount
|
|
1067
1071
|
});
|
|
1068
|
-
if (scannedSource.incompleteReason !== null)
|
|
1072
|
+
if (scannedSource.incompleteReason !== null) {
|
|
1073
|
+
incompleteReasons.push(scannedSource.incompleteReason);
|
|
1074
|
+
if (scannedSource.incompleteReason.kind === "jsx-node-limit") break;
|
|
1075
|
+
}
|
|
1069
1076
|
if (scannedSource.didScan) {
|
|
1070
1077
|
candidates.push(...scannedSource.candidates);
|
|
1071
1078
|
scannedJsxNodeCount += scannedSource.candidates.length;
|
|
@@ -1083,7 +1090,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
1083
1090
|
});
|
|
1084
1091
|
};
|
|
1085
1092
|
//#endregion
|
|
1086
|
-
//#region ../core/dist/detect-react-compiler-
|
|
1093
|
+
//#region ../core/dist/detect-react-compiler-DLpaU8gr.js
|
|
1087
1094
|
const NEXT_CONFIG_FILENAMES = [
|
|
1088
1095
|
"next.config.js",
|
|
1089
1096
|
"next.config.mjs",
|
|
@@ -65690,13 +65697,17 @@ const getBrowserslistProtectionRequirement = (directory) => {
|
|
|
65690
65697
|
env: "production"
|
|
65691
65698
|
});
|
|
65692
65699
|
if (!queries) return void 0;
|
|
65700
|
+
if ((typeof queries === "string" ? [queries] : queries).some((query) => /\b(?:extends|stats)\b|\bbrowserslist\s+config\b/i.test(query))) return;
|
|
65693
65701
|
let requirement;
|
|
65694
65702
|
let hasUnsupportedTarget = false;
|
|
65695
65703
|
const previousIgnoreOldData = process.env.BROWSERSLIST_IGNORE_OLD_DATA;
|
|
65696
65704
|
let browserTargets = [];
|
|
65697
65705
|
try {
|
|
65698
65706
|
process.env.BROWSERSLIST_IGNORE_OLD_DATA = "true";
|
|
65699
|
-
browserTargets = (0, import_browserslist.default)(queries
|
|
65707
|
+
browserTargets = (0, import_browserslist.default)(queries, {
|
|
65708
|
+
path: false,
|
|
65709
|
+
stats: {}
|
|
65710
|
+
});
|
|
65700
65711
|
} finally {
|
|
65701
65712
|
if (previousIgnoreOldData === void 0) delete process.env.BROWSERSLIST_IGNORE_OLD_DATA;
|
|
65702
65713
|
else process.env.BROWSERSLIST_IGNORE_OLD_DATA = previousIgnoreOldData;
|
|
@@ -68310,7 +68321,7 @@ const dedupeRelatedDiagnostics = (diagnostics) => {
|
|
|
68310
68321
|
};
|
|
68311
68322
|
const isPathInsideDirectory = (childAbsolutePath, parentAbsolutePath) => {
|
|
68312
68323
|
const relativePath = path$1$1.relative(parentAbsolutePath, childAbsolutePath);
|
|
68313
|
-
return Boolean(relativePath) && !relativePath.startsWith(
|
|
68324
|
+
return Boolean(relativePath) && relativePath !== ".." && !relativePath.startsWith(`..${path$1$1.sep}`) && !path$1$1.isAbsolute(relativePath);
|
|
68314
68325
|
};
|
|
68315
68326
|
const compareStrings = (left, right) => left < right ? -1 : left > right ? 1 : 0;
|
|
68316
68327
|
const sortDiagnosticsStable = (diagnostics) => [...diagnostics].sort((left, right) => compareStrings(left.filePath, right.filePath) || left.line - right.line || left.column - right.column || compareStrings(left.plugin, right.plugin) || compareStrings(left.rule, right.rule) || compareStrings(left.severity, right.severity) || compareStrings(left.message, right.message));
|
|
@@ -71859,6 +71870,82 @@ const detectUserLintConfigPaths = (rootDirectory) => {
|
|
|
71859
71870
|
}
|
|
71860
71871
|
return [];
|
|
71861
71872
|
};
|
|
71873
|
+
const isSymlinkFreePath = (filePath, rootDirectory) => {
|
|
71874
|
+
if (!isPathInsideDirectory(filePath, rootDirectory)) return false;
|
|
71875
|
+
let currentPath = rootDirectory;
|
|
71876
|
+
for (const segment of path$1$1.relative(rootDirectory, filePath).split(path$1$1.sep)) {
|
|
71877
|
+
currentPath = path$1$1.join(currentPath, segment);
|
|
71878
|
+
try {
|
|
71879
|
+
if (fs$1$2.lstatSync(currentPath).isSymbolicLink()) return false;
|
|
71880
|
+
} catch (error) {
|
|
71881
|
+
return isErrnoException(error) && error.code === "ENOENT";
|
|
71882
|
+
}
|
|
71883
|
+
}
|
|
71884
|
+
return true;
|
|
71885
|
+
};
|
|
71886
|
+
const snapshotAdoptedLintConfigs = (input) => {
|
|
71887
|
+
const sourceBoundaryDirectory = path$1$1.resolve(findGitRepositoryRoot(input.rootDirectory) ?? input.rootDirectory);
|
|
71888
|
+
const boundaryDirectory = fs$1$2.realpathSync(sourceBoundaryDirectory);
|
|
71889
|
+
const snapshots = /* @__PURE__ */ new Map();
|
|
71890
|
+
const expandedFileCounts = /* @__PURE__ */ new Map();
|
|
71891
|
+
const activePaths = /* @__PURE__ */ new Set();
|
|
71892
|
+
let expandedFileCount = 0;
|
|
71893
|
+
const snapshotConfig = (configPath, depth) => {
|
|
71894
|
+
const resolvedPath = path$1$1.resolve(configPath);
|
|
71895
|
+
const existingSnapshot = snapshots.get(resolvedPath);
|
|
71896
|
+
if (existingSnapshot) {
|
|
71897
|
+
expandedFileCount += expandedFileCounts.get(resolvedPath) ?? 1;
|
|
71898
|
+
if (expandedFileCount > 64) throw new Error("Adopted lint config expands too many files");
|
|
71899
|
+
return existingSnapshot;
|
|
71900
|
+
}
|
|
71901
|
+
if (depth > 32 || expandedFileCount >= 64 || activePaths.has(resolvedPath) || !isSymlinkFreePath(resolvedPath, boundaryDirectory)) throw new Error("Unsafe adopted lint config chain");
|
|
71902
|
+
const configStats = fs$1$2.lstatSync(resolvedPath);
|
|
71903
|
+
if (!configStats.isFile() || configStats.size > 1048576) throw new Error("Unsupported adopted lint config file");
|
|
71904
|
+
const previousFileCount = expandedFileCount;
|
|
71905
|
+
expandedFileCount += 1;
|
|
71906
|
+
activePaths.add(resolvedPath);
|
|
71907
|
+
try {
|
|
71908
|
+
const parsed = parseJSONC(readTextFileUpToCharacterLimitSync({
|
|
71909
|
+
filePath: resolvedPath,
|
|
71910
|
+
maximumLengthChars: ADOPTED_LINT_CONFIG_MAX_BYTES,
|
|
71911
|
+
sizeBytes: configStats.size
|
|
71912
|
+
}), { allowTrailingComma: true });
|
|
71913
|
+
if (!isPlainObject(parsed)) throw new Error("Invalid adopted lint config");
|
|
71914
|
+
const sanitized = snapshotValue(parsed, resolvedPath, depth);
|
|
71915
|
+
const snapshotPath = path$1$1.join(input.snapshotDirectory, `adopted-${snapshots.size}.json`);
|
|
71916
|
+
fs$1$2.writeFileSync(snapshotPath, JSON.stringify(sanitized), {
|
|
71917
|
+
flag: "wx",
|
|
71918
|
+
mode: 384
|
|
71919
|
+
});
|
|
71920
|
+
snapshots.set(resolvedPath, snapshotPath);
|
|
71921
|
+
expandedFileCounts.set(resolvedPath, expandedFileCount - previousFileCount);
|
|
71922
|
+
return snapshotPath;
|
|
71923
|
+
} finally {
|
|
71924
|
+
activePaths.delete(resolvedPath);
|
|
71925
|
+
}
|
|
71926
|
+
};
|
|
71927
|
+
const snapshotValue = (value, configPath, depth) => {
|
|
71928
|
+
if (depth > 32) throw new Error("Adopted lint config too deep");
|
|
71929
|
+
if (Array.isArray(value)) return value.map((entry) => snapshotValue(entry, configPath, depth + 1));
|
|
71930
|
+
if (!isPlainObject(value)) return value;
|
|
71931
|
+
if (Object.hasOwn(value, "jsPlugins")) throw new Error("Executable adopted lint config");
|
|
71932
|
+
return Object.fromEntries(Object.entries(value).map(([key, entry]) => {
|
|
71933
|
+
if (key !== "extends") return [key, snapshotValue(entry, configPath, depth + 1)];
|
|
71934
|
+
return [key, (Array.isArray(entry) ? entry : [entry]).map((extendedPath) => {
|
|
71935
|
+
if (typeof extendedPath !== "string") throw new Error("Invalid lint config extends");
|
|
71936
|
+
return snapshotConfig(path$1$1.resolve(path$1$1.dirname(configPath), extendedPath), depth + 1);
|
|
71937
|
+
})];
|
|
71938
|
+
}));
|
|
71939
|
+
};
|
|
71940
|
+
return input.configPaths.flatMap((configPath) => {
|
|
71941
|
+
try {
|
|
71942
|
+
if (!isPathInsideDirectory(configPath, sourceBoundaryDirectory)) return [];
|
|
71943
|
+
return [snapshotConfig(path$1$1.join(boundaryDirectory, path$1$1.relative(sourceBoundaryDirectory, configPath)), 0)];
|
|
71944
|
+
} catch {
|
|
71945
|
+
return [];
|
|
71946
|
+
}
|
|
71947
|
+
});
|
|
71948
|
+
};
|
|
71862
71949
|
const readAdoptedLintConfigSettings = (configPaths) => {
|
|
71863
71950
|
const mergedSettings = /* @__PURE__ */ new Map();
|
|
71864
71951
|
for (const configPath of configPaths) {
|
|
@@ -71886,6 +71973,7 @@ const getBackupPath = (rootDirectory, absolutePath) => {
|
|
|
71886
71973
|
};
|
|
71887
71974
|
const removeBackupRootIfEmpty = (rootDirectory) => {
|
|
71888
71975
|
const backupRootDirectory = getBackupRootDirectory(rootDirectory);
|
|
71976
|
+
if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return;
|
|
71889
71977
|
if (!walkSourceTreeFiles(backupRootDirectory).next().done) return;
|
|
71890
71978
|
fs$1$2.rmSync(backupRootDirectory, {
|
|
71891
71979
|
recursive: true,
|
|
@@ -71986,8 +72074,13 @@ const collectNeutralizationCandidatePaths = (rootDirectory, discoveredRelativePa
|
|
|
71986
72074
|
const recoverOrphanedBackups = (rootDirectory) => {
|
|
71987
72075
|
const blockedPaths = /* @__PURE__ */ new Set();
|
|
71988
72076
|
const backupRootDirectory = getBackupRootDirectory(rootDirectory);
|
|
72077
|
+
if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return blockedPaths;
|
|
71989
72078
|
for (const { absolutePath: backupPath } of walkSourceTreeFiles(backupRootDirectory)) {
|
|
71990
72079
|
const originalPath = path$1$1.join(rootDirectory, path$1$1.relative(backupRootDirectory, backupPath));
|
|
72080
|
+
if (!isSymlinkFreePath(backupPath, rootDirectory) || !isSymlinkFreePath(originalPath, rootDirectory)) {
|
|
72081
|
+
blockedPaths.add(originalPath);
|
|
72082
|
+
continue;
|
|
72083
|
+
}
|
|
71991
72084
|
if (neutralizedFileLeases.has(originalPath)) continue;
|
|
71992
72085
|
let backupContent;
|
|
71993
72086
|
let currentContent;
|
|
@@ -72038,6 +72131,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
72038
72131
|
lease.referenceCount -= 1;
|
|
72039
72132
|
if (lease.referenceCount > 0) continue;
|
|
72040
72133
|
neutralizedFileLeases.delete(absolutePath);
|
|
72134
|
+
if (!isSymlinkFreePath(absolutePath, lease.rootDirectory) || !isSymlinkFreePath(lease.backupPath, lease.rootDirectory)) continue;
|
|
72041
72135
|
try {
|
|
72042
72136
|
const currentContent = fs$1$2.readFileSync(absolutePath, "utf-8");
|
|
72043
72137
|
if (currentContent !== lease.neutralizedContent && currentContent !== lease.originalContent) {
|
|
@@ -72055,6 +72149,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
72055
72149
|
const onExit = () => restore();
|
|
72056
72150
|
process.once("exit", onExit);
|
|
72057
72151
|
const leaseCandidatePath = (absolutePath) => {
|
|
72152
|
+
if (!isSymlinkFreePath(absolutePath, resolvedRootDirectory)) return;
|
|
72058
72153
|
if (leasedPaths.has(absolutePath)) return;
|
|
72059
72154
|
if (blockedPaths.has(absolutePath)) return;
|
|
72060
72155
|
const existingLease = neutralizedFileLeases.get(absolutePath);
|
|
@@ -72072,7 +72167,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
72072
72167
|
const neutralizedContent = neutralizeContent(originalContent);
|
|
72073
72168
|
if (neutralizedContent !== originalContent) {
|
|
72074
72169
|
const backupPath = getBackupPath(resolvedRootDirectory, absolutePath);
|
|
72075
|
-
if (backupPath === null) return;
|
|
72170
|
+
if (backupPath === null || !isSymlinkFreePath(backupPath, resolvedRootDirectory)) return;
|
|
72076
72171
|
try {
|
|
72077
72172
|
fs$1$2.mkdirSync(path$1$1.dirname(backupPath), { recursive: true });
|
|
72078
72173
|
fs$1$2.writeFileSync(backupPath, originalContent, { flag: "wx" });
|
|
@@ -72082,6 +72177,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
72082
72177
|
}
|
|
72083
72178
|
fs$1$2.writeFileSync(absolutePath, neutralizedContent);
|
|
72084
72179
|
neutralizedFileLeases.set(absolutePath, {
|
|
72180
|
+
rootDirectory: resolvedRootDirectory,
|
|
72085
72181
|
backupPath,
|
|
72086
72182
|
originalContent,
|
|
72087
72183
|
neutralizedContent,
|
|
@@ -72120,7 +72216,13 @@ const normalizeConfigForHash = (config) => {
|
|
|
72120
72216
|
if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
|
|
72121
72217
|
return clone;
|
|
72122
72218
|
};
|
|
72123
|
-
const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify(
|
|
72219
|
+
const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify([
|
|
72220
|
+
normalizeConfigForHash(input.config),
|
|
72221
|
+
input.toolchainVersions,
|
|
72222
|
+
input.ignorePatterns,
|
|
72223
|
+
input.tsconfigContent,
|
|
72224
|
+
input.respectInlineDisables
|
|
72225
|
+
])).digest("hex");
|
|
72124
72226
|
/**
|
|
72125
72227
|
* Loads a plugin module via the local require resolver and extracts
|
|
72126
72228
|
* `(name, ruleNames)` from either `module.exports.meta + rules` or
|
|
@@ -74273,7 +74375,11 @@ const spawnLintBatches = async (input) => {
|
|
|
74273
74375
|
batchState.deadlineSkippedFileCount += batch.length;
|
|
74274
74376
|
return [];
|
|
74275
74377
|
}
|
|
74276
|
-
const batchArgs = [
|
|
74378
|
+
const batchArgs = [
|
|
74379
|
+
...baseArgs,
|
|
74380
|
+
"--",
|
|
74381
|
+
...batch
|
|
74382
|
+
];
|
|
74277
74383
|
try {
|
|
74278
74384
|
const spawnBatch = async () => {
|
|
74279
74385
|
const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
|
|
@@ -75048,7 +75154,7 @@ const runOxlint = async (options) => {
|
|
|
75048
75154
|
}
|
|
75049
75155
|
const pluginPath = resolvePluginPath();
|
|
75050
75156
|
const detectedConfigPaths = adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : [];
|
|
75051
|
-
const
|
|
75157
|
+
const adoptableConfigPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
|
|
75052
75158
|
const adoptedSettings = detectedConfigPaths.length > 0 ? readAdoptedLintConfigSettings(detectedConfigPaths) : {};
|
|
75053
75159
|
const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
|
|
75054
75160
|
const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
|
|
@@ -75056,6 +75162,11 @@ const runOxlint = async (options) => {
|
|
|
75056
75162
|
const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
|
|
75057
75163
|
const workingDirectory = fs$1$2.existsSync(path$1$1.join(rootDirectory, "oxlint-suppressions.json")) ? configDirectory : void 0;
|
|
75058
75164
|
try {
|
|
75165
|
+
const extendsPaths = snapshotAdoptedLintConfigs({
|
|
75166
|
+
configPaths: adoptableConfigPaths,
|
|
75167
|
+
rootDirectory,
|
|
75168
|
+
snapshotDirectory: configDirectory
|
|
75169
|
+
});
|
|
75059
75170
|
const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
|
|
75060
75171
|
fs$1$2.mkdirSync(diagnosticContextDirectory);
|
|
75061
75172
|
const oxlintBinary = resolveOxlintBinary();
|
|
@@ -77660,7 +77771,7 @@ const makeNoopConsole = () => ({
|
|
|
77660
77771
|
});
|
|
77661
77772
|
//#endregion
|
|
77662
77773
|
//#region src/cli/utils/version.ts
|
|
77663
|
-
const VERSION = "0.9.
|
|
77774
|
+
const VERSION = "0.9.23-dev.dfffab3";
|
|
77664
77775
|
//#endregion
|
|
77665
77776
|
//#region src/cli/utils/json-mode.ts
|
|
77666
77777
|
let context = null;
|
|
@@ -78004,5 +78115,5 @@ const recordDistribution = (name, value, options = {}) => {
|
|
|
78004
78115
|
//#endregion
|
|
78005
78116
|
export { buildRuleSeverityControls as $, runInspect as $t, Files as A, buildWithScope as An, hasPublishedFixRecipe as At, PerFileLintCacheEnabled as B, yieldToEventLoop as Bn, listSourceFiles as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, provideContext as Cn, getChangedLineRanges as Ct, isCodingAgentEnvironment as D, sync as Dn, getRuleMetadata as Dt, isCiOrCodingAgentEnvironment as E, runSync as En, getEquivalentRuleKeys as Et, Linter as F, makeUnsafe$5 as Fn, isProjectDiscoveryError as Ft, SidecarLintCacheEnabled as G, isFile as Gn, materializeSourceTree as Gt, Project as H, toCanonicalPath as Hn, listWorkspacePackages as Ht, Maintainability as I, fail$5 as In, isReactDoctorError as It, anonymizeInPlace as J, remainingDeadlineBudgetMs as Jt, StagedFiles as K, isPlainObject as Kn, mergeAndFilterDiagnostics as Kt, NodeResolver as L, void_$1 as Ln, isSameRuleKey as Lt, InvocationCaches as M, provide$2 as Mn, hashFileContents as Mt, LEGACY_CONFIG_FILENAME as N, succeed$3 as Nn, highlighter as Nt, Config as O, try_ as On, getUnknownBundledRuleKeys as Ot, LintPartialFailures as P, close as Pn, isPathInsideDirectory as Pt, buildRuleDocsUrl as Q, restoreLegacyThrow as Qt, OxlintConcurrency as R, ParentSpan as Rn, isScanComplete as Rt, isDebugFlagEnabled as S, provide as Sn, getBaselineDiffPlan as St, isCiEnvironment as T, runPromise as Tn, getDiffInfo as Tt, Reporter as U, isDirectory as Un, loadConfigWithSource as Ut, Progress as V, messageFromUnknown as Vn, listSourceFilesCooperative as Vt, Score as W, isErrnoException as Wn, mapWithConcurrency as Wt, atomicWriteJson as X, resolveLintBatchOrdering as Xt, anonymizeText as Y, resolveGithubActionsScoreMetadata as Yt, buildJsonReport as Z, resolveScanTarget as Zt, VERSION as _, gen as _n, findGitRepositoryRoot as _t, isEnvFlagEnabled as a, validateConfigTypes as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, orElseSucceed as bn, formatErrorChain as bt, setSentryProjectInfo as c, Console as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, log as dn, createOxlintSpawnSlots as dt, scrubSensitivePaths as en, buildSkippedChecks as et, setJsonReportDirectory as f, warn$1 as fn, detectAiTrainingEnvironment as ft, writeJsonReport as g, make$30 as gn, filterSourceFiles as gt, writeJsonErrorReport as h, decodeUnknownSync as hn, filterPathsOutsideDirectories as ht, isTelemetryEnabled as i, toRelativePath as in, clearConfigCache as it, Git as j, mergeAll$1 as jn, hasSupportedFrameworkOrLibrary as jt, DIAGNOSTIC_DELTA_IDENTITY as k, void_ as kn, groupBy as kt, getRunId as l, error as ln, createChangedLineMatcher as lt, writeJsonCancellationReport as m, JsonReport as mn, filterDiagnosticsForSurface as mt, recordDistribution as n, shouldUseMaintainabilityLayer as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, warmDuplicateJsxWorker as on, computeConfigFingerprint as ot, setJsonReportMode as p, Diagnostic as pn, discoverSupportedSubprojects as pt, SupplyChain as q, mergeReactDoctorConfigs as qt, toSpanAttributes as r, summarizeDiagnostics as rn, classifyFileContext as rt, buildSentryProjectContext as s, warmOxlintWorkerPool as sn, computeDiagnosticDelta as st, recordCount as t, setColorEnabled as tn, calculateScore as tt, enableJsonMode as u, info as un, createInvocationCaches as ut, makeNoopConsole as v, makeSpan$1 as vn, findLegacyConfig as vt, detectRunnerOs as w, provideService as wn, getDiagnosticRuleIdentity as wt, isGitHookEnvironment as x, promise as xn, formatReactDoctorError as xt, CliInputError as y, map$3 as yn, fingerprintDiagnosticEvidence as yt, OxlintSpawnSlots as z, isMonorepoRoot as zn, layerObservability as zt };
|
|
78006
78117
|
|
|
78007
|
-
//# sourceMappingURL=record-metric-
|
|
78008
|
-
//# debugId=
|
|
78118
|
+
//# sourceMappingURL=record-metric-CWxS2npr.js.map
|
|
78119
|
+
//# debugId=f2b47816-a0c6-5228-a261-97a495a1bb85
|
|
@@ -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 { It 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]="f7c1b103-5196-5021-bb4d-929d346771be")}catch(e){}}();
|
|
3
|
+
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { It as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-CWxS2npr.js";
|
|
5
|
+
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-De9QafWu.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-DA8uMulb.js.map
|
|
65
|
+
//# debugId=f7c1b103-5196-5021-bb4d-929d346771be
|
|
@@ -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]="9e7c9dfe-4ef8-5895-96cf-cf66b8ba9804")}catch(e){}}();
|
|
3
|
+
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { t as recordCount } from "./record-metric-CWxS2npr.js";
|
|
5
|
+
import { u as isCommandAvailable } from "./install-github-workflow-BNRbJHjd.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-D6NNwRMm.js.map
|
|
293
|
+
//# debugId=9e7c9dfe-4ef8-5895-96cf-cf66b8ba9804
|
|
@@ -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 {
|
|
4
|
-
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-
|
|
5
|
-
import { $ as buildRuleSeverityControls, $t as runInspect, A as Files, At as hasPublishedFixRecipe, B as PerFileLintCacheEnabled, Bn as yieldToEventLoop, Bt as listSourceFiles, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideContext, Dn as sync, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as runSync, F as Linter, G as SidecarLintCacheEnabled, Gn as isFile, Gt as materializeSourceTree, H as Project, Ht as listWorkspacePackages, I as Maintainability, It as isReactDoctorError, Jt as remainingDeadlineBudgetMs, Kt as mergeAndFilterDiagnostics, L as NodeResolver, M as InvocationCaches, Mt as hashFileContents, Nn as succeed, Nt as highlighter, O as Config, On as try_, Ot as getUnknownBundledRuleKeys, P as LintPartialFailures, Pt as isPathInsideDirectory, Q as buildRuleDocsUrl, Qt as restoreLegacyThrow, R as OxlintConcurrency, Rn as ParentSpan, Rt as isScanComplete, Sn as provide, T as isCiEnvironment, Tn as runPromise, U as Reporter, Un as isDirectory, V as Progress, Vt as listSourceFilesCooperative, W as Score, Wt as mapWithConcurrency, X as atomicWriteJson, Xt as resolveLintBatchOrdering, Yt as resolveGithubActionsScoreMetadata, Zt as resolveScanTarget, _ as VERSION, _n as gen, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as orElseSucceed, cn as Console, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as log, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as warn, gt as filterSourceFiles, hn as decodeUnknownSync, ht as filterPathsOutsideDirectories, j as Git, jn as mergeAll, k as DIAGNOSTIC_DELTA_IDENTITY, kt as groupBy, l as getRunId, ln as error, lt as createChangedLineMatcher, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as shouldUseMaintainabilityLayer, nt as canonicalizeUserRuleKey, on as warmDuplicateJsxWorker, ot as computeConfigFingerprint, pn as Diagnostic, pt as discoverSupportedSubprojects, q as SupplyChain, qt as mergeReactDoctorConfigs, r as toSpanAttributes, rn as summarizeDiagnostics, rt as classifyFileContext, sn as warmOxlintWorkerPool, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, ut as createInvocationCaches, v as makeNoopConsole, w as detectRunnerOs, wn as provideService, wt as getDiagnosticRuleIdentity, xn as promise, y as CliInputError, yn as map, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as isMonorepoRoot } from "./record-metric-
|
|
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]="c36ee147-6fe8-557a-b773-ce78a6442c50")}catch(e){}}();
|
|
3
|
+
import { Ct as ENTERPRISE_CONTACT_URL, E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Gt as MILLISECONDS_PER_SECOND, It as HTML_FILE_PATTERN, K as resolveReactDoctorCacheDir, Pt as GIT_SHOW_MAX_BUFFER_BYTES, Ut as MAINTAINABILITY_SOURCE_FILE_PATTERN, Yt as OXLINT_NODE_REQUIREMENT, c as HEAD_SHA_GIT_ARGUMENTS, dt as CI_URL, fn 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, v as SCAN_RESULT_CACHE_FILENAME, vt as DIAGNOSTIC_CATEGORY_BUCKETS, zt as JSX_FILE_PATTERN } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-CveNGcRi.js";
|
|
5
|
+
import { $ as buildRuleSeverityControls, $t as runInspect, A as Files, At as hasPublishedFixRecipe, B as PerFileLintCacheEnabled, Bn as yieldToEventLoop, Bt as listSourceFiles, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideContext, Dn as sync, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as runSync, F as Linter, G as SidecarLintCacheEnabled, Gn as isFile, Gt as materializeSourceTree, H as Project, Ht as listWorkspacePackages, I as Maintainability, It as isReactDoctorError, Jt as remainingDeadlineBudgetMs, Kt as mergeAndFilterDiagnostics, L as NodeResolver, M as InvocationCaches, Mt as hashFileContents, Nn as succeed, Nt as highlighter, O as Config, On as try_, Ot as getUnknownBundledRuleKeys, P as LintPartialFailures, Pt as isPathInsideDirectory, Q as buildRuleDocsUrl, Qt as restoreLegacyThrow, R as OxlintConcurrency, Rn as ParentSpan, Rt as isScanComplete, Sn as provide, T as isCiEnvironment, Tn as runPromise, U as Reporter, Un as isDirectory, V as Progress, Vt as listSourceFilesCooperative, W as Score, Wt as mapWithConcurrency, X as atomicWriteJson, Xt as resolveLintBatchOrdering, Yt as resolveGithubActionsScoreMetadata, Zt as resolveScanTarget, _ as VERSION, _n as gen, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as orElseSucceed, cn as Console, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as log, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as warn, gt as filterSourceFiles, hn as decodeUnknownSync, ht as filterPathsOutsideDirectories, j as Git, jn as mergeAll, k as DIAGNOSTIC_DELTA_IDENTITY, kt as groupBy, l as getRunId, ln as error, lt as createChangedLineMatcher, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as shouldUseMaintainabilityLayer, nt as canonicalizeUserRuleKey, on as warmDuplicateJsxWorker, ot as computeConfigFingerprint, pn as Diagnostic, pt as discoverSupportedSubprojects, q as SupplyChain, qt as mergeReactDoctorConfigs, r as toSpanAttributes, rn as summarizeDiagnostics, rt as classifyFileContext, sn as warmOxlintWorkerPool, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, ut as createInvocationCaches, v as makeNoopConsole, w as detectRunnerOs, wn as provideService, wt as getDiagnosticRuleIdentity, xn as promise, y as CliInputError, yn as map, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as isMonorepoRoot } from "./record-metric-CWxS2npr.js";
|
|
6
|
+
import { t as getTelemetryContext } from "./telemetry-runtime-De9QafWu.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-BFxWf70B.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-DJ6UbhZJ.js";
|
|
12
|
+
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-BNRbJHjd.js";
|
|
13
|
+
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-B3xmSQ0a.js";
|
|
14
|
+
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-CRYkeESN.js";
|
|
15
|
+
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-D6NNwRMm.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";
|
|
@@ -3179,5 +3179,5 @@ const resolveScanExitCode = (input) => {
|
|
|
3179
3179
|
//#endregion
|
|
3180
3180
|
export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, resolveScanExitCode as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
|
|
3181
3181
|
|
|
3182
|
-
//# sourceMappingURL=resolve-scan-exit-code-
|
|
3183
|
-
//# debugId=
|
|
3182
|
+
//# sourceMappingURL=resolve-scan-exit-code-DE6AIQwU.js.map
|
|
3183
|
+
//# debugId=c36ee147-6fe8-557a-b773-ce78a6442c50
|
|
@@ -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 { Hn as toCanonicalPath, Pt as isPathInsideDirectory, gt 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]="9f8e412c-e894-5202-be89-f22fe8c74823")}catch(e){}}();
|
|
3
|
+
import { Hn as toCanonicalPath, Pt as isPathInsideDirectory, gt as filterSourceFiles } from "./record-metric-CWxS2npr.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-DJ6UbhZJ.js";
|
|
6
|
+
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-BNRbJHjd.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";
|
|
@@ -334,5 +334,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
|
|
|
334
334
|
//#endregion
|
|
335
335
|
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 };
|
|
336
336
|
|
|
337
|
-
//# sourceMappingURL=resolve-scope-
|
|
338
|
-
//# debugId=
|
|
337
|
+
//# sourceMappingURL=resolve-scope-B3xmSQ0a.js.map
|
|
338
|
+
//# debugId=9f8e412c-e894-5202-be89-f22fe8c74823
|
|
@@ -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 { Et as getEquivalentRuleKeys, Kn as isPlainObject, Lt as isSameRuleKey, Nt as highlighter, Q as buildRuleDocsUrl, Ut as loadConfigWithSource, an as validateConfigTypes, it as clearConfigCache, 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]="19f6ef60-a375-5f05-b550-8fc1494dd6cd")}catch(e){}}();
|
|
3
|
+
import { ft as COMPILER_CLEANUP_BUCKET, pt as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { Et as getEquivalentRuleKeys, Kn as isPlainObject, Lt as isSameRuleKey, Nt as highlighter, Q as buildRuleDocsUrl, Ut as loadConfigWithSource, an as validateConfigTypes, it as clearConfigCache, t as recordCount } from "./record-metric-CWxS2npr.js";
|
|
5
|
+
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DJ6UbhZJ.js";
|
|
6
|
+
import { t as readObjectFile } from "./read-object-file-D3pRnLyV.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-CHxjoZwR.js.map
|
|
582
|
+
//# debugId=19f6ef60-a375-5f05-b550-8fc1494dd6cd
|
|
@@ -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,
|
|
4
|
-
import { At as hasPublishedFixRecipe, Bn as yieldToEventLoop, Ct as getChangedLineRanges, Dn as sync, Jt as remainingDeadlineBudgetMs, Nn as succeed, Nt as highlighter, Q as buildRuleDocsUrl, St as getBaselineDiffPlan, T as isCiEnvironment, Tn as runPromise, Tt as getDiffInfo, U as Reporter, V as Progress, Wt as mapWithConcurrency, Zt as resolveScanTarget, kn as void_, n as recordDistribution, t as recordCount, tt as calculateScore, x as isGitHookEnvironment } 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]="ab5f7eba-4cf1-5034-aac7-48e7e8ff4003")}catch(e){}}();
|
|
3
|
+
import { At as GITHUB_ACTIONS_SETUP_URL, D as TUI_REPORT_COMPACT_MAX_ROWS, Ln as getCategoryImpact, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, o as CI_TRUST_COMPANIES, u as METRIC, vt as DIAGNOSTIC_CATEGORY_BUCKETS } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { At as hasPublishedFixRecipe, Bn as yieldToEventLoop, Ct as getChangedLineRanges, Dn as sync, Jt as remainingDeadlineBudgetMs, Nn as succeed, Nt as highlighter, Q as buildRuleDocsUrl, St as getBaselineDiffPlan, T as isCiEnvironment, Tn as runPromise, Tt as getDiffInfo, U as Reporter, V as Progress, Wt as mapWithConcurrency, Zt as resolveScanTarget, kn as void_, n as recordDistribution, t as recordCount, tt as calculateScore, x as isGitHookEnvironment } from "./record-metric-CWxS2npr.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 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-
|
|
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-DJ6UbhZJ.js";
|
|
7
|
+
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-BNRbJHjd.js";
|
|
8
|
+
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-B3xmSQ0a.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-DE6AIQwU.js";
|
|
10
|
+
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-D6NNwRMm.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-BDdabT1T.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { performance } from "node:perf_hooks";
|
|
14
14
|
import isUnicodeSupported from "is-unicode-supported";
|
|
@@ -2524,5 +2524,5 @@ const runScanApp = async (input) => {
|
|
|
2524
2524
|
//#endregion
|
|
2525
2525
|
export { runScanApp };
|
|
2526
2526
|
|
|
2527
|
-
//# sourceMappingURL=run-scan-app-
|
|
2528
|
-
//# debugId=
|
|
2527
|
+
//# sourceMappingURL=run-scan-app-BuI_XZcx.js.map
|
|
2528
|
+
//# debugId=ab5f7eba-4cf1-5034-aac7-48e7e8ff4003
|
|
@@ -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 { Nt 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]="520e6908-2189-5386-be95-9f2b291f7047")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { Nt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-CWxS2npr.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-DA8uMulb.js";
|
|
7
|
+
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-CRYkeESN.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-BCw_Ixks.js";
|
|
9
|
+
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-HuQLii4U.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-CRx8qrV0.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-0pSZm3M0.js.map
|
|
771
|
+
//# debugId=520e6908-2189-5386-be95-9f2b291f7047
|