react-doctor 0.9.22-dev.ec45ff9 → 0.9.23-dev.190b5b6
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-BU7zNHk5.js} +5 -5
- package/dist/{ci-Rhhvl7uT.js → ci-CxQu6pYP.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-C34SZKwj.js} +4 -4
- package/dist/duplicate-jsx-worker.js +17 -10
- package/dist/{exit-gracefully-BxFRFqPQ.js → exit-gracefully-CkEQoYgZ.js} +6 -6
- package/dist/{handle-error-BnEcoXcw.js → handle-error-BzkQHg93.js} +6 -6
- package/dist/index.d.ts +5 -2
- package/dist/index.js +139 -22
- package/dist/{inspect-CrcIovH2.js → inspect-hnNj6rGU.js} +16 -16
- package/dist/{install-DIHCDDtX.js → install-Phi-3Ez6.js} +10 -10
- package/dist/{install-doctor-script-CcM2cToW.js → install-doctor-script-_STqoxaF.js} +5 -5
- package/dist/{install-github-workflow-BUaLt5mn.js → install-github-workflow-CrKVCl4g.js} +6 -6
- package/dist/{install-react-doctor-BnaGEio4.js → install-react-doctor-B8HIm5Lp.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-DiY2NpiM.js} +6 -6
- package/dist/oxlint-worker.js +1 -1
- package/dist/{print-branded-header-COh3X3He.js → print-branded-header-FknctS29.js} +4 -4
- package/dist/project-analysis-worker.js +1 -1
- package/dist/{prompt-runtime-scan-url-lBPap3oz.js → prompt-runtime-scan-url-DlatGgXM.js} +5 -5
- package/dist/{read-object-file-sQUp7PMm.js → read-object-file-DHewkQSw.js} +4 -4
- package/dist/{record-metric-3hs8M2Pf.js → record-metric-vW6WPfqn.js} +134 -23
- package/dist/{report-error-CtR7ISJa.js → report-error-BjXxJDFZ.js} +6 -6
- package/dist/{report-workflow-result-C68s63w1.js → report-workflow-result-CDrgxyIL.js} +6 -6
- package/dist/{resolve-scan-exit-code-DrC3xu0y.js → resolve-scan-exit-code-C-YB4nGN.js} +13 -13
- package/dist/{resolve-scope-Cq7AJdtO.js → resolve-scope-C0FwbRLp.js} +6 -6
- package/dist/{rules-BesJjxty.js → rules-C6snQ3OR.js} +7 -7
- package/dist/{run-scan-app-CfsLjIjZ.js → run-scan-app-_LByQegJ.js} +11 -11
- package/dist/{runtime-scan-DA2v7tXp.js → runtime-scan-Ccac6VQX.js} +10 -10
- package/dist/{sanitize-runtime-url-C9P8617N.js → sanitize-runtime-url-DtyYWhiJ.js} +4 -4
- package/dist/{scan-BTjqJfRl.js → scan-Dh42XoyC.js} +10 -10
- package/dist/{should-skip-prompts-DjIiPcs_.js → should-skip-prompts-DTeGXHCQ.js} +4 -4
- package/dist/{should-use-tui-Cd3om7tH.js → should-use-tui-BVBFFxIp.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-ChQH6lX-.js} +13 -7
- package/dist/{version-osih6Dt3.js → version-D4xkODb4.js} +5 -5
- package/dist/{why-BJLqu_nm.js → why-CSKd9jLA.js} +4 -4
- package/dist/{with-run-span-DJ74_coc.js → with-run-span-DurLMv1A.js} +6 -6
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1a36335d-57b7-56ac-bd2f-837367d9b759")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as fs$1$2 from "node:fs";
|
|
@@ -26,7 +26,7 @@ import { PassThrough } from "node:stream";
|
|
|
26
26
|
import { convertToTSX } from "@astrojs/compiler/sync";
|
|
27
27
|
import { STATUS_CODES } from "node:http";
|
|
28
28
|
import { gzipSync } from "node:zlib";
|
|
29
|
-
//#region ../core/dist/constants-
|
|
29
|
+
//#region ../core/dist/constants-BSeQaOcv.js
|
|
30
30
|
const HTML_FILE_PATTERN = /\.html$/i;
|
|
31
31
|
const SOURCE_FILE_PATTERN = /\.(?:astro|tsx?|jsx?|mts|mjs|[hH][tT][mM][lL])$/;
|
|
32
32
|
const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
|
|
@@ -393,6 +393,7 @@ const JSX_DUPLICATION_SOURCE_FILE_PATTERN = /\.[cm]?(?:jsx?|tsx)$/;
|
|
|
393
393
|
const MAINTAINABILITY_PLUGIN = "react-doctor";
|
|
394
394
|
const MAINTAINABILITY_DUPLICATE_JSX_RULE = "duplicate-jsx-subtree";
|
|
395
395
|
const MAINTAINABILITY_CATEGORY = "Maintainability";
|
|
396
|
+
const ADOPTED_LINT_CONFIG_MAX_BYTES = 1024 * 1024;
|
|
396
397
|
//#endregion
|
|
397
398
|
//#region ../core/dist/fs-utils-3PlHYkCD.js
|
|
398
399
|
const isErrnoException = (error) => error instanceof Error && "code" in error;
|
|
@@ -440,7 +441,7 @@ const isPlainObject = (value) => {
|
|
|
440
441
|
//#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
|
|
441
442
|
const isReactCompilerDetectionReply = (value) => typeof value === "object" && value !== null && "id" in value && typeof value.id === "number" && "hasReactCompiler" in value && (typeof value.hasReactCompiler === "boolean" || value.hasReactCompiler === null);
|
|
442
443
|
//#endregion
|
|
443
|
-
//#region ../core/dist/react-compiler-detection-client-
|
|
444
|
+
//#region ../core/dist/react-compiler-detection-client-oiOwecj7.js
|
|
444
445
|
const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
|
|
445
446
|
const toRequestKey = (request) => [
|
|
446
447
|
request.directory,
|
|
@@ -573,6 +574,11 @@ const buildOxlintChildEnv = (sourceEnv) => {
|
|
|
573
574
|
if (name.startsWith("npm_config_")) continue;
|
|
574
575
|
childEnv[name] = value;
|
|
575
576
|
}
|
|
577
|
+
childEnv.BROWSERSLIST = "defaults";
|
|
578
|
+
childEnv.BROWSERSLIST_IGNORE_OLD_DATA = "true";
|
|
579
|
+
delete childEnv.BROWSERSLIST_CONFIG;
|
|
580
|
+
delete childEnv.BROWSERSLIST_STATS;
|
|
581
|
+
delete childEnv.BROWSERSLIST_DANGEROUS_EXTEND;
|
|
576
582
|
const isCompileCacheDisabled = Boolean(sourceEnv.NODE_DISABLE_COMPILE_CACHE);
|
|
577
583
|
const isCompileCacheAlreadySet = childEnv.NODE_COMPILE_CACHE !== void 0;
|
|
578
584
|
if (!isCompileCacheDisabled && !isCompileCacheAlreadySet) childEnv.NODE_COMPILE_CACHE = path$1$1.join(os.tmpdir(), NODE_COMPILE_CACHE_DIR_NAME);
|
|
@@ -2710,7 +2716,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2710
2716
|
module.exports = picomatch;
|
|
2711
2717
|
}));
|
|
2712
2718
|
//#endregion
|
|
2713
|
-
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-
|
|
2719
|
+
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-Z9dhela6.js
|
|
2714
2720
|
var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2715
2721
|
const pico = require_picomatch$1();
|
|
2716
2722
|
const utils = require_utils();
|
|
@@ -3160,7 +3166,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
|
|
|
3160
3166
|
return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
|
|
3161
3167
|
};
|
|
3162
3168
|
//#endregion
|
|
3163
|
-
//#region ../core/dist/detect-duplicate-jsx-subtrees-
|
|
3169
|
+
//#region ../core/dist/detect-duplicate-jsx-subtrees-B5UWtUyz.js
|
|
3164
3170
|
const yieldToEventLoop = () => new Promise((resolve) => {
|
|
3165
3171
|
setImmediate(resolve);
|
|
3166
3172
|
});
|
|
@@ -3285,7 +3291,7 @@ const resolveOptions$1 = (options) => ({
|
|
|
3285
3291
|
minimumDistinctFiles: options.minimumDistinctFiles ?? 1,
|
|
3286
3292
|
maxSourceFiles: options.budget?.maxSourceFiles ?? 5e3,
|
|
3287
3293
|
maxSourceLengthChars: options.budget?.maxSourceLengthChars ?? 1e6,
|
|
3288
|
-
maxJsxNodes: options.budget?.maxJsxNodes ??
|
|
3294
|
+
maxJsxNodes: options.budget?.maxJsxNodes ?? 5e5,
|
|
3289
3295
|
maxFamilies: options.budget?.maxFamilies ?? 20
|
|
3290
3296
|
});
|
|
3291
3297
|
const hashParts = (parts) => {
|
|
@@ -3499,10 +3505,12 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
3499
3505
|
const jsxNodes = [];
|
|
3500
3506
|
const pendingNodes = [sourceFile];
|
|
3501
3507
|
let limitExceeded = false;
|
|
3508
|
+
let observedJsxNodeCount = 0;
|
|
3502
3509
|
while (pendingNodes.length > 0 && !limitExceeded && !signal?.aborted) {
|
|
3503
3510
|
const currentNode = pendingNodes.pop();
|
|
3504
3511
|
if (currentNode === void 0) continue;
|
|
3505
3512
|
if (isJsxSubtreeNode(currentNode)) {
|
|
3513
|
+
observedJsxNodeCount += 1;
|
|
3506
3514
|
if (jsxNodes.length >= maximumCandidateCount) {
|
|
3507
3515
|
limitExceeded = true;
|
|
3508
3516
|
continue;
|
|
@@ -3518,7 +3526,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
3518
3526
|
if (limitExceeded || signal?.aborted) return {
|
|
3519
3527
|
candidates: [],
|
|
3520
3528
|
aborted: signal?.aborted ?? false,
|
|
3521
|
-
limitExceeded
|
|
3529
|
+
limitExceeded,
|
|
3530
|
+
observedJsxNodeCount
|
|
3522
3531
|
};
|
|
3523
3532
|
const metadataByNode = /* @__PURE__ */ new Map();
|
|
3524
3533
|
const functionIdentityByNode = /* @__PURE__ */ new Map();
|
|
@@ -3526,7 +3535,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
3526
3535
|
if (signal?.aborted) return {
|
|
3527
3536
|
candidates: [],
|
|
3528
3537
|
aborted: true,
|
|
3529
|
-
limitExceeded: false
|
|
3538
|
+
limitExceeded: false,
|
|
3539
|
+
observedJsxNodeCount
|
|
3530
3540
|
};
|
|
3531
3541
|
buildJsxSubtreeMetadata(jsxNodes[nodeIndex], metadataByNode);
|
|
3532
3542
|
}
|
|
@@ -3544,7 +3554,8 @@ const collectCandidates = (source, sourceFile, signal, maximumCandidateCount) =>
|
|
|
3544
3554
|
};
|
|
3545
3555
|
}),
|
|
3546
3556
|
aborted: false,
|
|
3547
|
-
limitExceeded: false
|
|
3557
|
+
limitExceeded: false,
|
|
3558
|
+
observedJsxNodeCount
|
|
3548
3559
|
};
|
|
3549
3560
|
};
|
|
3550
3561
|
const scanSource = (input) => {
|
|
@@ -3581,8 +3592,7 @@ const scanSource = (input) => {
|
|
|
3581
3592
|
incompleteReason: {
|
|
3582
3593
|
kind: "jsx-node-limit",
|
|
3583
3594
|
limit: input.options.maxJsxNodes,
|
|
3584
|
-
observed: input.
|
|
3585
|
-
path: input.source.path
|
|
3595
|
+
observed: input.scannedJsxNodeCount + collectedCandidates.observedJsxNodeCount
|
|
3586
3596
|
},
|
|
3587
3597
|
didAbort: false,
|
|
3588
3598
|
didScan: false
|
|
@@ -3699,7 +3709,10 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
3699
3709
|
scannedSourceFileCount,
|
|
3700
3710
|
scannedJsxNodeCount
|
|
3701
3711
|
});
|
|
3702
|
-
if (scannedSource.incompleteReason !== null)
|
|
3712
|
+
if (scannedSource.incompleteReason !== null) {
|
|
3713
|
+
incompleteReasons.push(scannedSource.incompleteReason);
|
|
3714
|
+
if (scannedSource.incompleteReason.kind === "jsx-node-limit") break;
|
|
3715
|
+
}
|
|
3703
3716
|
if (scannedSource.didScan) {
|
|
3704
3717
|
candidates.push(...scannedSource.candidates);
|
|
3705
3718
|
scannedJsxNodeCount += scannedSource.candidates.length;
|
|
@@ -3717,7 +3730,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
3717
3730
|
});
|
|
3718
3731
|
};
|
|
3719
3732
|
//#endregion
|
|
3720
|
-
//#region ../core/dist/detect-react-compiler-
|
|
3733
|
+
//#region ../core/dist/detect-react-compiler-DLpaU8gr.js
|
|
3721
3734
|
const NEXT_CONFIG_FILENAMES = [
|
|
3722
3735
|
"next.config.js",
|
|
3723
3736
|
"next.config.mjs",
|
|
@@ -68438,13 +68451,17 @@ const getBrowserslistProtectionRequirement = (directory) => {
|
|
|
68438
68451
|
env: "production"
|
|
68439
68452
|
});
|
|
68440
68453
|
if (!queries) return void 0;
|
|
68454
|
+
if ((typeof queries === "string" ? [queries] : queries).some((query) => /\b(?:extends|stats)\b|\bbrowserslist\s+config\b/i.test(query))) return;
|
|
68441
68455
|
let requirement;
|
|
68442
68456
|
let hasUnsupportedTarget = false;
|
|
68443
68457
|
const previousIgnoreOldData = process.env.BROWSERSLIST_IGNORE_OLD_DATA;
|
|
68444
68458
|
let browserTargets = [];
|
|
68445
68459
|
try {
|
|
68446
68460
|
process.env.BROWSERSLIST_IGNORE_OLD_DATA = "true";
|
|
68447
|
-
browserTargets = (0, import_browserslist.default)(queries
|
|
68461
|
+
browserTargets = (0, import_browserslist.default)(queries, {
|
|
68462
|
+
path: false,
|
|
68463
|
+
stats: {}
|
|
68464
|
+
});
|
|
68448
68465
|
} finally {
|
|
68449
68466
|
if (previousIgnoreOldData === void 0) delete process.env.BROWSERSLIST_IGNORE_OLD_DATA;
|
|
68450
68467
|
else process.env.BROWSERSLIST_IGNORE_OLD_DATA = previousIgnoreOldData;
|
|
@@ -70817,7 +70834,7 @@ const dedupeRelatedDiagnostics = (diagnostics) => {
|
|
|
70817
70834
|
};
|
|
70818
70835
|
const isPathInsideDirectory = (childAbsolutePath, parentAbsolutePath) => {
|
|
70819
70836
|
const relativePath = path$1$1.relative(parentAbsolutePath, childAbsolutePath);
|
|
70820
|
-
return Boolean(relativePath) && !relativePath.startsWith(
|
|
70837
|
+
return Boolean(relativePath) && relativePath !== ".." && !relativePath.startsWith(`..${path$1$1.sep}`) && !path$1$1.isAbsolute(relativePath);
|
|
70821
70838
|
};
|
|
70822
70839
|
const compareStrings = (left, right) => left < right ? -1 : left > right ? 1 : 0;
|
|
70823
70840
|
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));
|
|
@@ -72693,7 +72710,7 @@ const createSecurityScanSession = (rootDirectory, options) => {
|
|
|
72693
72710
|
entry,
|
|
72694
72711
|
scan,
|
|
72695
72712
|
severityOverride,
|
|
72696
|
-
committedFilesOnly: rule.committedFilesOnly
|
|
72713
|
+
committedFilesOnly: rule.committedFilesOnly !== false
|
|
72697
72714
|
}];
|
|
72698
72715
|
});
|
|
72699
72716
|
if (enabledScanRules.length === 0) return null;
|
|
@@ -72712,7 +72729,7 @@ const createSecurityScanSession = (rootDirectory, options) => {
|
|
|
72712
72729
|
if (file === null) return;
|
|
72713
72730
|
for (const { entry, scan, severityOverride, committedFilesOnly } of enabledScanRules) {
|
|
72714
72731
|
for (const finding of scan(file)) {
|
|
72715
|
-
if (committedFilesOnly && isFileGitIgnored(file)) continue;
|
|
72732
|
+
if ((finding.committedFilesOnly ?? committedFilesOnly) && isFileGitIgnored(file)) continue;
|
|
72716
72733
|
const diagnostic = buildSecurityScanDiagnostic(severityOverride === void 0 ? finding : {
|
|
72717
72734
|
...finding,
|
|
72718
72735
|
severity: severityOverride
|
|
@@ -74231,6 +74248,82 @@ const detectUserLintConfigPaths = (rootDirectory) => {
|
|
|
74231
74248
|
}
|
|
74232
74249
|
return [];
|
|
74233
74250
|
};
|
|
74251
|
+
const isSymlinkFreePath = (filePath, rootDirectory) => {
|
|
74252
|
+
if (!isPathInsideDirectory(filePath, rootDirectory)) return false;
|
|
74253
|
+
let currentPath = rootDirectory;
|
|
74254
|
+
for (const segment of path$1$1.relative(rootDirectory, filePath).split(path$1$1.sep)) {
|
|
74255
|
+
currentPath = path$1$1.join(currentPath, segment);
|
|
74256
|
+
try {
|
|
74257
|
+
if (fs$1$2.lstatSync(currentPath).isSymbolicLink()) return false;
|
|
74258
|
+
} catch (error) {
|
|
74259
|
+
return isErrnoException(error) && error.code === "ENOENT";
|
|
74260
|
+
}
|
|
74261
|
+
}
|
|
74262
|
+
return true;
|
|
74263
|
+
};
|
|
74264
|
+
const snapshotAdoptedLintConfigs = (input) => {
|
|
74265
|
+
const sourceBoundaryDirectory = path$1$1.resolve(findGitRepositoryRoot(input.rootDirectory) ?? input.rootDirectory);
|
|
74266
|
+
const boundaryDirectory = fs$1$2.realpathSync(sourceBoundaryDirectory);
|
|
74267
|
+
const snapshots = /* @__PURE__ */ new Map();
|
|
74268
|
+
const expandedFileCounts = /* @__PURE__ */ new Map();
|
|
74269
|
+
const activePaths = /* @__PURE__ */ new Set();
|
|
74270
|
+
let expandedFileCount = 0;
|
|
74271
|
+
const snapshotConfig = (configPath, depth) => {
|
|
74272
|
+
const resolvedPath = path$1$1.resolve(configPath);
|
|
74273
|
+
const existingSnapshot = snapshots.get(resolvedPath);
|
|
74274
|
+
if (existingSnapshot) {
|
|
74275
|
+
expandedFileCount += expandedFileCounts.get(resolvedPath) ?? 1;
|
|
74276
|
+
if (expandedFileCount > 64) throw new Error("Adopted lint config expands too many files");
|
|
74277
|
+
return existingSnapshot;
|
|
74278
|
+
}
|
|
74279
|
+
if (depth > 32 || expandedFileCount >= 64 || activePaths.has(resolvedPath) || !isSymlinkFreePath(resolvedPath, boundaryDirectory)) throw new Error("Unsafe adopted lint config chain");
|
|
74280
|
+
const configStats = fs$1$2.lstatSync(resolvedPath);
|
|
74281
|
+
if (!configStats.isFile() || configStats.size > 1048576) throw new Error("Unsupported adopted lint config file");
|
|
74282
|
+
const previousFileCount = expandedFileCount;
|
|
74283
|
+
expandedFileCount += 1;
|
|
74284
|
+
activePaths.add(resolvedPath);
|
|
74285
|
+
try {
|
|
74286
|
+
const parsed = parseJSONC(readTextFileUpToCharacterLimitSync({
|
|
74287
|
+
filePath: resolvedPath,
|
|
74288
|
+
maximumLengthChars: ADOPTED_LINT_CONFIG_MAX_BYTES,
|
|
74289
|
+
sizeBytes: configStats.size
|
|
74290
|
+
}), { allowTrailingComma: true });
|
|
74291
|
+
if (!isPlainObject(parsed)) throw new Error("Invalid adopted lint config");
|
|
74292
|
+
const sanitized = snapshotValue(parsed, resolvedPath, depth);
|
|
74293
|
+
const snapshotPath = path$1$1.join(input.snapshotDirectory, `adopted-${snapshots.size}.json`);
|
|
74294
|
+
fs$1$2.writeFileSync(snapshotPath, JSON.stringify(sanitized), {
|
|
74295
|
+
flag: "wx",
|
|
74296
|
+
mode: 384
|
|
74297
|
+
});
|
|
74298
|
+
snapshots.set(resolvedPath, snapshotPath);
|
|
74299
|
+
expandedFileCounts.set(resolvedPath, expandedFileCount - previousFileCount);
|
|
74300
|
+
return snapshotPath;
|
|
74301
|
+
} finally {
|
|
74302
|
+
activePaths.delete(resolvedPath);
|
|
74303
|
+
}
|
|
74304
|
+
};
|
|
74305
|
+
const snapshotValue = (value, configPath, depth) => {
|
|
74306
|
+
if (depth > 32) throw new Error("Adopted lint config too deep");
|
|
74307
|
+
if (Array.isArray(value)) return value.map((entry) => snapshotValue(entry, configPath, depth + 1));
|
|
74308
|
+
if (!isPlainObject(value)) return value;
|
|
74309
|
+
if (Object.hasOwn(value, "jsPlugins")) throw new Error("Executable adopted lint config");
|
|
74310
|
+
return Object.fromEntries(Object.entries(value).map(([key, entry]) => {
|
|
74311
|
+
if (key !== "extends") return [key, snapshotValue(entry, configPath, depth + 1)];
|
|
74312
|
+
return [key, (Array.isArray(entry) ? entry : [entry]).map((extendedPath) => {
|
|
74313
|
+
if (typeof extendedPath !== "string") throw new Error("Invalid lint config extends");
|
|
74314
|
+
return snapshotConfig(path$1$1.resolve(path$1$1.dirname(configPath), extendedPath), depth + 1);
|
|
74315
|
+
})];
|
|
74316
|
+
}));
|
|
74317
|
+
};
|
|
74318
|
+
return input.configPaths.flatMap((configPath) => {
|
|
74319
|
+
try {
|
|
74320
|
+
if (!isPathInsideDirectory(configPath, sourceBoundaryDirectory)) return [];
|
|
74321
|
+
return [snapshotConfig(path$1$1.join(boundaryDirectory, path$1$1.relative(sourceBoundaryDirectory, configPath)), 0)];
|
|
74322
|
+
} catch {
|
|
74323
|
+
return [];
|
|
74324
|
+
}
|
|
74325
|
+
});
|
|
74326
|
+
};
|
|
74234
74327
|
const readAdoptedLintConfigSettings = (configPaths) => {
|
|
74235
74328
|
const mergedSettings = /* @__PURE__ */ new Map();
|
|
74236
74329
|
for (const configPath of configPaths) {
|
|
@@ -74258,6 +74351,7 @@ const getBackupPath = (rootDirectory, absolutePath) => {
|
|
|
74258
74351
|
};
|
|
74259
74352
|
const removeBackupRootIfEmpty = (rootDirectory) => {
|
|
74260
74353
|
const backupRootDirectory = getBackupRootDirectory(rootDirectory);
|
|
74354
|
+
if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return;
|
|
74261
74355
|
if (!walkSourceTreeFiles(backupRootDirectory).next().done) return;
|
|
74262
74356
|
fs$1$2.rmSync(backupRootDirectory, {
|
|
74263
74357
|
recursive: true,
|
|
@@ -74358,8 +74452,13 @@ const collectNeutralizationCandidatePaths = (rootDirectory, discoveredRelativePa
|
|
|
74358
74452
|
const recoverOrphanedBackups = (rootDirectory) => {
|
|
74359
74453
|
const blockedPaths = /* @__PURE__ */ new Set();
|
|
74360
74454
|
const backupRootDirectory = getBackupRootDirectory(rootDirectory);
|
|
74455
|
+
if (!isSymlinkFreePath(backupRootDirectory, rootDirectory)) return blockedPaths;
|
|
74361
74456
|
for (const { absolutePath: backupPath } of walkSourceTreeFiles(backupRootDirectory)) {
|
|
74362
74457
|
const originalPath = path$1$1.join(rootDirectory, path$1$1.relative(backupRootDirectory, backupPath));
|
|
74458
|
+
if (!isSymlinkFreePath(backupPath, rootDirectory) || !isSymlinkFreePath(originalPath, rootDirectory)) {
|
|
74459
|
+
blockedPaths.add(originalPath);
|
|
74460
|
+
continue;
|
|
74461
|
+
}
|
|
74363
74462
|
if (neutralizedFileLeases.has(originalPath)) continue;
|
|
74364
74463
|
let backupContent;
|
|
74365
74464
|
let currentContent;
|
|
@@ -74410,6 +74509,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
74410
74509
|
lease.referenceCount -= 1;
|
|
74411
74510
|
if (lease.referenceCount > 0) continue;
|
|
74412
74511
|
neutralizedFileLeases.delete(absolutePath);
|
|
74512
|
+
if (!isSymlinkFreePath(absolutePath, lease.rootDirectory) || !isSymlinkFreePath(lease.backupPath, lease.rootDirectory)) continue;
|
|
74413
74513
|
try {
|
|
74414
74514
|
const currentContent = fs$1$2.readFileSync(absolutePath, "utf-8");
|
|
74415
74515
|
if (currentContent !== lease.neutralizedContent && currentContent !== lease.originalContent) {
|
|
@@ -74427,6 +74527,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
74427
74527
|
const onExit = () => restore();
|
|
74428
74528
|
process.once("exit", onExit);
|
|
74429
74529
|
const leaseCandidatePath = (absolutePath) => {
|
|
74530
|
+
if (!isSymlinkFreePath(absolutePath, resolvedRootDirectory)) return;
|
|
74430
74531
|
if (leasedPaths.has(absolutePath)) return;
|
|
74431
74532
|
if (blockedPaths.has(absolutePath)) return;
|
|
74432
74533
|
const existingLease = neutralizedFileLeases.get(absolutePath);
|
|
@@ -74444,7 +74545,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
74444
74545
|
const neutralizedContent = neutralizeContent(originalContent);
|
|
74445
74546
|
if (neutralizedContent !== originalContent) {
|
|
74446
74547
|
const backupPath = getBackupPath(resolvedRootDirectory, absolutePath);
|
|
74447
|
-
if (backupPath === null) return;
|
|
74548
|
+
if (backupPath === null || !isSymlinkFreePath(backupPath, resolvedRootDirectory)) return;
|
|
74448
74549
|
try {
|
|
74449
74550
|
fs$1$2.mkdirSync(path$1$1.dirname(backupPath), { recursive: true });
|
|
74450
74551
|
fs$1$2.writeFileSync(backupPath, originalContent, { flag: "wx" });
|
|
@@ -74454,6 +74555,7 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
74454
74555
|
}
|
|
74455
74556
|
fs$1$2.writeFileSync(absolutePath, neutralizedContent);
|
|
74456
74557
|
neutralizedFileLeases.set(absolutePath, {
|
|
74558
|
+
rootDirectory: resolvedRootDirectory,
|
|
74457
74559
|
backupPath,
|
|
74458
74560
|
originalContent,
|
|
74459
74561
|
neutralizedContent,
|
|
@@ -74492,7 +74594,13 @@ const normalizeConfigForHash = (config) => {
|
|
|
74492
74594
|
if (Array.isArray(clone?.jsPlugins)) clone.jsPlugins = clone.jsPlugins.map((_, index) => `<plugin:${index}>`);
|
|
74493
74595
|
return clone;
|
|
74494
74596
|
};
|
|
74495
|
-
const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify(
|
|
74597
|
+
const computeRulesetHash = (input) => crypto.createHash("sha1").update("project-bulk-suppressions-isolated\0").update(JSON.stringify([
|
|
74598
|
+
normalizeConfigForHash(input.config),
|
|
74599
|
+
input.toolchainVersions,
|
|
74600
|
+
input.ignorePatterns,
|
|
74601
|
+
input.tsconfigContent,
|
|
74602
|
+
input.respectInlineDisables
|
|
74603
|
+
])).digest("hex");
|
|
74496
74604
|
/**
|
|
74497
74605
|
* Loads a plugin module via the local require resolver and extracts
|
|
74498
74606
|
* `(name, ruleNames)` from either `module.exports.meta + rules` or
|
|
@@ -76641,7 +76749,11 @@ const spawnLintBatches = async (input) => {
|
|
|
76641
76749
|
batchState.deadlineSkippedFileCount += batch.length;
|
|
76642
76750
|
return [];
|
|
76643
76751
|
}
|
|
76644
|
-
const batchArgs = [
|
|
76752
|
+
const batchArgs = [
|
|
76753
|
+
...baseArgs,
|
|
76754
|
+
"--",
|
|
76755
|
+
...batch
|
|
76756
|
+
];
|
|
76645
76757
|
try {
|
|
76646
76758
|
const spawnBatch = async () => {
|
|
76647
76759
|
const effectiveSpawnTimeoutMs = resolveSpawnTimeoutMs();
|
|
@@ -77416,7 +77528,7 @@ const runOxlint = async (options) => {
|
|
|
77416
77528
|
}
|
|
77417
77529
|
const pluginPath = resolvePluginPath();
|
|
77418
77530
|
const detectedConfigPaths = adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : [];
|
|
77419
|
-
const
|
|
77531
|
+
const adoptableConfigPaths = detectedConfigPaths.filter(canOxlintExtendConfig);
|
|
77420
77532
|
const adoptedSettings = detectedConfigPaths.length > 0 ? readAdoptedLintConfigSettings(detectedConfigPaths) : {};
|
|
77421
77533
|
const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
|
|
77422
77534
|
const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
|
|
@@ -77424,6 +77536,11 @@ const runOxlint = async (options) => {
|
|
|
77424
77536
|
const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
|
|
77425
77537
|
const workingDirectory = fs$1$2.existsSync(path$1$1.join(rootDirectory, "oxlint-suppressions.json")) ? configDirectory : void 0;
|
|
77426
77538
|
try {
|
|
77539
|
+
const extendsPaths = snapshotAdoptedLintConfigs({
|
|
77540
|
+
configPaths: adoptableConfigPaths,
|
|
77541
|
+
rootDirectory,
|
|
77542
|
+
snapshotDirectory: configDirectory
|
|
77543
|
+
});
|
|
77427
77544
|
const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
|
|
77428
77545
|
fs$1$2.mkdirSync(diagnosticContextDirectory);
|
|
77429
77546
|
const oxlintBinary = resolveOxlintBinary();
|
|
@@ -79810,4 +79927,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
79810
79927
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
79811
79928
|
|
|
79812
79929
|
//# sourceMappingURL=index.js.map
|
|
79813
|
-
//# debugId=
|
|
79930
|
+
//# debugId=1a36335d-57b7-56ac-bd2f-837367d9b759
|
|
@@ -1,19 +1,19 @@
|
|
|
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 { N as discardPrefetchedGitCommands,
|
|
4
|
-
import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-
|
|
5
|
-
import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-
|
|
6
|
-
import { n as handleUserError, t as handleError } from "./handle-error-
|
|
7
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
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]="16ea68de-637f-5462-ad47-ecf6aa7c2d2b")}catch(e){}}();
|
|
3
|
+
import { N as discardPrefetchedGitCommands, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, u as METRIC, ut as CANONICAL_GITHUB_URL, w as STAGED_FILES_TEMP_DIR_PREFIX } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-vW6WPfqn.js";
|
|
5
|
+
import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-ChQH6lX-.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-BzkQHg93.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-BjXxJDFZ.js";
|
|
8
8
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
9
|
-
import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-
|
|
10
|
-
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-
|
|
11
|
-
import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-
|
|
12
|
-
import { t as shouldSkipPrompts } from "./should-skip-prompts-
|
|
13
|
-
import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-
|
|
14
|
-
import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-
|
|
15
|
-
import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-
|
|
16
|
-
import { t as readObjectFile } from "./read-object-file-
|
|
9
|
+
import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-_STqoxaF.js";
|
|
10
|
+
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CrKVCl4g.js";
|
|
11
|
+
import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-C0FwbRLp.js";
|
|
12
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-DTeGXHCQ.js";
|
|
13
|
+
import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-C-YB4nGN.js";
|
|
14
|
+
import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-CDrgxyIL.js";
|
|
15
|
+
import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-B8HIm5Lp.js";
|
|
16
|
+
import { t as readObjectFile } from "./read-object-file-DHewkQSw.js";
|
|
17
17
|
import * as fs$1 from "node:fs";
|
|
18
18
|
import fs from "node:fs";
|
|
19
19
|
import * as path$1 from "node:path";
|
|
@@ -1528,5 +1528,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
|
|
|
1528
1528
|
//#endregion
|
|
1529
1529
|
export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
|
|
1530
1530
|
|
|
1531
|
-
//# sourceMappingURL=inspect-
|
|
1532
|
-
//# debugId=
|
|
1531
|
+
//# sourceMappingURL=inspect-hnNj6rGU.js.map
|
|
1532
|
+
//# debugId=16ea68de-637f-5462-ad47-ecf6aa7c2d2b
|
|
@@ -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 { En as runSync, t as recordCount } from "./record-metric-
|
|
5
|
-
import { o as isExpectedUserError } from "./telemetry-runtime-
|
|
6
|
-
import { n as handleUserError, t as handleError } from "./handle-error-
|
|
7
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
8
|
-
import { t as printBrandedHeader } from "./print-branded-header-
|
|
9
|
-
import { n as runInstallReactDoctor } from "./install-react-doctor-
|
|
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]="2fec5ee3-1395-5746-9f44-c7ba0e10a8ff")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { En as runSync, t as recordCount } from "./record-metric-vW6WPfqn.js";
|
|
5
|
+
import { o as isExpectedUserError } from "./telemetry-runtime-ChQH6lX-.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-BzkQHg93.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-BjXxJDFZ.js";
|
|
8
|
+
import { t as printBrandedHeader } from "./print-branded-header-FknctS29.js";
|
|
9
|
+
import { n as runInstallReactDoctor } from "./install-react-doctor-B8HIm5Lp.js";
|
|
10
10
|
//#region src/cli/commands/install.ts
|
|
11
11
|
const installAction = async (options, command) => {
|
|
12
12
|
recordCount(METRIC.cliInvoked, 1, { command: "install" });
|
|
@@ -30,5 +30,5 @@ const installAction = async (options, command) => {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
export { installAction };
|
|
32
32
|
|
|
33
|
-
//# sourceMappingURL=install-
|
|
34
|
-
//# debugId=
|
|
33
|
+
//# sourceMappingURL=install-Phi-3Ez6.js.map
|
|
34
|
+
//# debugId=2fec5ee3-1395-5746-9f44-c7ba0e10a8ff
|
|
@@ -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]="
|
|
3
|
-
import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-
|
|
4
|
-
import { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } 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]="d3938ab4-2fb0-5fa3-92de-20d39d1398a2")}catch(e){}}();
|
|
3
|
+
import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } from "./record-metric-vW6WPfqn.js";
|
|
5
5
|
import { a as chalk, i as stripAnsi, t as eastAsianWidth } from "./get-east-asian-width-DRPy7dqz.js";
|
|
6
6
|
import * as fs$1 from "node:fs";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
@@ -2818,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
|
|
|
2818
2818
|
//#endregion
|
|
2819
2819
|
export { runGitAsync as A, isRecord as C, readPackageJson as D, packageHasRecordKey as E, writeJsonFile as M, cliLogger as N, resolveGitPath as O, getPackageJsonPath as S, packageHasNestedRecordKey as T, REACT_DOCTOR_COMMAND as _, installReactDoctorScriptStep as a, VITE_PLUS_HOOKS_PATH as b, spinner as c, HUSKY_HOOKS_PATH as d, LEFTHOOK_CONFIG_FILES as f, PRE_COMMIT_CONFIG_FILE as g, OVERCOMMIT_CONFIG_FILE as h, hasDoctorScript as i, runGitRaw as j, runGit as k, HOOK_FILE_NAME as l, NON_BLOCKING_REACT_DOCTOR_COMMAND as m, findNearestPackageDirectory as n, isSpinnerSilent as o, LEGACY_HOOK_RUNNER_RELATIVE_PATH as p, hasDoctorDependency as r, setSpinnerSilent as s, DOCTOR_PACKAGE_NAME as t, HOOK_RELATIVE_PATH as u, SIMPLE_GIT_HOOKS_CONFIG_FILE as v, packageHasDependency as w, ensureTrailingNewline as x, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as y };
|
|
2820
2820
|
|
|
2821
|
-
//# sourceMappingURL=install-doctor-script-
|
|
2822
|
-
//# debugId=
|
|
2821
|
+
//# sourceMappingURL=install-doctor-script-_STqoxaF.js.map
|
|
2822
|
+
//# debugId=d3938ab4-2fb0-5fa3-92de-20d39d1398a2
|
|
@@ -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 { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-
|
|
4
|
-
import { _t as findGitRepositoryRoot } 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]="50b1a23a-ca0a-5e45-8a72-99df44b8200c")}catch(e){}}();
|
|
3
|
+
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { _t as findGitRepositoryRoot } from "./record-metric-vW6WPfqn.js";
|
|
5
5
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
6
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
6
|
+
import { N as cliLogger } from "./install-doctor-script-_STqoxaF.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import * as fs$1 from "node:fs";
|
|
9
9
|
import * as path$1 from "node:path";
|
|
@@ -281,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
|
|
|
281
281
|
//#endregion
|
|
282
282
|
export { readReactDoctorWorkflow as a, workflowUsesV1Action as c, detectDefaultBranch as d, runCommand as f, isReactDoctorWorkflowInstalled as i, prompts as l, getReactDoctorWorkflowPath as n, upgradeReactDoctorWorkflowInPlace as o, installReactDoctorWorkflow as r, upgradeWorkflowActionToV2 as s, buildWorkflowContent as t, isCommandAvailable as u };
|
|
283
283
|
|
|
284
|
-
//# sourceMappingURL=install-github-workflow-
|
|
285
|
-
//# debugId=
|
|
284
|
+
//# sourceMappingURL=install-github-workflow-CrKVCl4g.js.map
|
|
285
|
+
//# debugId=50b1a23a-ca0a-5e45-8a72-99df44b8200c
|
|
@@ -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 {
|
|
4
|
-
import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-
|
|
5
|
-
import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-
|
|
6
|
-
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-
|
|
7
|
-
import { t as shouldSkipPrompts } from "./should-skip-prompts-
|
|
8
|
-
import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-
|
|
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]="313b2f8c-c04c-5adb-ba08-c8a4d449ace4")}catch(e){}}();
|
|
3
|
+
import { At as GITHUB_ACTIONS_SETUP_URL, mn as SKILL_NAME, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-BmD_c3Yq.js";
|
|
4
|
+
import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-vW6WPfqn.js";
|
|
5
|
+
import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-_STqoxaF.js";
|
|
6
|
+
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-CrKVCl4g.js";
|
|
7
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-DTeGXHCQ.js";
|
|
8
|
+
import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-CDrgxyIL.js";
|
|
9
9
|
import * as fs$1 from "node:fs";
|
|
10
10
|
import * as path$1 from "node:path";
|
|
11
11
|
import { execFile } from "node:child_process";
|
|
@@ -1156,5 +1156,5 @@ const runInstallReactDoctor = async (options = {}) => {
|
|
|
1156
1156
|
//#endregion
|
|
1157
1157
|
export { askUpgradeActionVersion as a, recordCiPromptDecision as c, installReactDoctorAgentHooks as i, hasHandledActionUpgrade as l, runInstallReactDoctor as n, askAddToGitHubActions as o, findAgentsWithOutdatedReactDoctorHooks as r, hasHandledCiPrompt as s, getSkillSourceDirectory as t, recordActionUpgradeDecision as u };
|
|
1158
1158
|
|
|
1159
|
-
//# sourceMappingURL=install-react-doctor-
|
|
1160
|
-
//# debugId=
|
|
1159
|
+
//# sourceMappingURL=install-react-doctor-B8HIm5Lp.js.map
|
|
1160
|
+
//# debugId=313b2f8c-c04c-5adb-ba08-c8a4d449ace4
|
package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-CveNGcRi.js}
RENAMED
|
@@ -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 { a as CACHE_DISABLED_VALUES } from "./constants-
|
|
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]="27afb6dd-9acd-5528-8fa6-5ad0bc5d0fd7")}catch(e){}}();
|
|
3
|
+
import { a as CACHE_DISABLED_VALUES } from "./constants-BmD_c3Yq.js";
|
|
4
4
|
//#region src/cli/utils/is-cache-globally-disabled.ts
|
|
5
5
|
const isCacheGloballyDisabled = () => CACHE_DISABLED_VALUES.has(process.env.REACT_DOCTOR_NO_CACHE?.toLowerCase() ?? "");
|
|
6
6
|
//#endregion
|
|
7
7
|
export { isCacheGloballyDisabled as t };
|
|
8
8
|
|
|
9
|
-
//# sourceMappingURL=is-cache-globally-disabled-
|
|
10
|
-
//# debugId=
|
|
9
|
+
//# sourceMappingURL=is-cache-globally-disabled-CveNGcRi.js.map
|
|
10
|
+
//# debugId=27afb6dd-9acd-5528-8fa6-5ad0bc5d0fd7
|
|
@@ -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]="eeae0a54-d0df-557c-ae36-38d816c10cc8")}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-BmD_c3Yq.js";
|
|
5
|
+
import { t as recordCount } from "./record-metric-vW6WPfqn.js";
|
|
6
|
+
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-CkEQoYgZ.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-DiY2NpiM.js.map
|
|
25874
|
+
//# debugId=eeae0a54-d0df-557c-ae36-38d816c10cc8
|
package/dist/oxlint-worker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
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]="036daa0d-20ef-5a7e-b004-e4f41f80cf0c")}catch(e){}}();
|
|
3
|
-
import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-
|
|
3
|
+
import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-T2clfs7L.js";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
@@ -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 { Nt as highlighter, _ as VERSION, _n as gen, dn 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]="5bcbeb7f-be1c-56a4-9fab-1f6d8ef00a94")}catch(e){}}();
|
|
3
|
+
import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-vW6WPfqn.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-FknctS29.js.map
|
|
22
|
+
//# debugId=5bcbeb7f-be1c-56a4-9fab-1f6d8ef00a94
|
|
@@ -4,7 +4,7 @@ import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } fr
|
|
|
4
4
|
import { n as require_picomatch$2, t as require_semver } from "./semver-BZIuy1gP.js";
|
|
5
5
|
import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
|
|
6
6
|
import { t as unwrapTypescriptExpression } from "./unwrap-typescript-expression-CrEPQUWz.js";
|
|
7
|
-
import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-
|
|
7
|
+
import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-T2clfs7L.js";
|
|
8
8
|
import { n as isPlainObject } from "./fs-utils-C88IbqFa.js";
|
|
9
9
|
import { builtinModules } from "node:module";
|
|
10
10
|
import * as fs$1 from "node:fs";
|