react-doctor 0.9.23-dev.dfffab3 → 0.9.23-dev.ed93f67
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-BFxWf70B.js → build-section-divider-DzuKtYKf.js} +5 -5
- package/dist/{ci-CLtdQCIE.js → ci-lxPnLNY2.js} +13 -13
- package/dist/cli.js +25 -25
- package/dist/{constants-BmD_c3Yq.js → constants-EMNGZNtj.js} +10 -6
- package/dist/constants-T2clfs7L.js +2 -2
- package/dist/{design-BMqPn207.js → design-88ebRYs1.js} +4 -4
- package/dist/{exit-gracefully-Bhyw-8gk.js → exit-gracefully-Dcr71UQz.js} +6 -6
- package/dist/{handle-error-BJ_4E2kS.js → handle-error-CU_FATUx.js} +6 -6
- package/dist/index.d.ts +16 -1
- package/dist/index.js +92 -23
- package/dist/{inspect-BuLr42QI.js → inspect-DAWaaj5s.js} +16 -16
- package/dist/{install-DsuiRD1t.js → install-DSkwdY2A.js} +10 -10
- package/dist/{install-doctor-script-DJ6UbhZJ.js → install-doctor-script-BMFIMJNG.js} +5 -5
- package/dist/{install-github-workflow-BNRbJHjd.js → install-github-workflow-CnUL3IaA.js} +6 -6
- package/dist/{install-react-doctor-BcsOSw5y.js → install-react-doctor-CyRBo17H.js} +9 -9
- package/dist/{is-cache-globally-disabled-CveNGcRi.js → is-cache-globally-disabled-CYjFzsDs.js} +4 -4
- package/dist/{jsx-runtime-BDdabT1T.js → jsx-runtime-Di-r43F6.js} +6 -6
- package/dist/{print-branded-header-BFh1P9t6.js → print-branded-header-C_IdES5E.js} +4 -4
- package/dist/{prompt-runtime-scan-url-CRx8qrV0.js → prompt-runtime-scan-url-BfVNLYXF.js} +5 -5
- package/dist/{read-object-file-D3pRnLyV.js → read-object-file-Lc7IMSGY.js} +4 -4
- package/dist/{record-metric-CWxS2npr.js → record-metric-D5cWO5c1.js} +89 -24
- package/dist/{report-error-DA8uMulb.js → report-error-DNUzAKVW.js} +6 -6
- package/dist/{report-workflow-result-D6NNwRMm.js → report-workflow-result-4mYTuWWb.js} +6 -6
- package/dist/{resolve-scan-exit-code-DE6AIQwU.js → resolve-scan-exit-code-BTg4e2sN.js} +14 -13
- package/dist/{resolve-scope-B3xmSQ0a.js → resolve-scope-C3GbCfvM.js} +6 -6
- package/dist/{rules-CHxjoZwR.js → rules-JNqrM_qU.js} +7 -7
- package/dist/{run-scan-app-BuI_XZcx.js → run-scan-app-DOOG-mGi.js} +45 -16
- package/dist/{runtime-scan-0pSZm3M0.js → runtime-scan-BzDfOeYC.js} +10 -10
- package/dist/{sanitize-runtime-url-BCw_Ixks.js → sanitize-runtime-url-CxOV1srN.js} +4 -4
- package/dist/{scan-Be7a-iK7.js → scan-ivk9wx91.js} +10 -10
- package/dist/{should-skip-prompts-CDudIC40.js → should-skip-prompts-Bictn_Xl.js} +4 -4
- package/dist/{should-use-tui-HuQLii4U.js → should-use-tui-DGIYCdEm.js} +4 -4
- package/dist/skills/react-doctor/references/explain.md +21 -0
- package/dist/{start-scan-preamble-DDAT_0oB.js → start-scan-preamble-Zd-z2ssT.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-De9QafWu.js → telemetry-runtime-ByXNkZlA.js} +7 -7
- package/dist/{version-uDDHk7KW.js → version-CCx32laG.js} +5 -5
- package/dist/{why-Dww_fJtq.js → why-Bu3hAeLo.js} +4 -4
- package/dist/{with-run-span-CRYkeESN.js → with-run-span-5rSWU2YJ.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]="22eef580-ef23-5d30-8e09-9ad7fea09fc2")}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,12 +26,16 @@ 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-Dm_1JQD-.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;
|
|
33
33
|
const GENERATED_SOURCE_DIRECTORY_PATTERN = /(?:^|\/)__generated__\//;
|
|
34
34
|
const MINIFIED_SNIFF_BYTES = 65536;
|
|
35
|
+
const VITE_ENTRY_ASSET_FILE_PATTERN = /(?:^|[/\\])assets[/\\][^/\\]+-[\w-]{8}\.m?js$/;
|
|
36
|
+
const VITE_ENTRY_PRELUDE_SNIFF_BYTES = 1024;
|
|
37
|
+
const VITE_ENTRY_DENSITY_SAMPLE_BYTES = 32768;
|
|
38
|
+
MINIFIED_SNIFF_BYTES + 2 * VITE_ENTRY_DENSITY_SAMPLE_BYTES;
|
|
35
39
|
const GIT_LS_FILES_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
|
|
36
40
|
const GIT_SOURCE_LISTING_ARGUMENTS = [
|
|
37
41
|
"ls-files",
|
|
@@ -441,7 +445,7 @@ const isPlainObject = (value) => {
|
|
|
441
445
|
//#region ../core/dist/react-compiler-detection-worker-protocol-Dp5LlrE8.js
|
|
442
446
|
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);
|
|
443
447
|
//#endregion
|
|
444
|
-
//#region ../core/dist/react-compiler-detection-client-
|
|
448
|
+
//#region ../core/dist/react-compiler-detection-client-CXd4Mzn3.js
|
|
445
449
|
const pendingOutputsByRequestKey = /* @__PURE__ */ new Map();
|
|
446
450
|
const toRequestKey = (request) => [
|
|
447
451
|
request.directory,
|
|
@@ -2716,7 +2720,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2716
2720
|
module.exports = picomatch;
|
|
2717
2721
|
}));
|
|
2718
2722
|
//#endregion
|
|
2719
|
-
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-
|
|
2723
|
+
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-BVJbM-5e.js
|
|
2720
2724
|
var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2721
2725
|
const pico = require_picomatch$1();
|
|
2722
2726
|
const utils = require_utils();
|
|
@@ -3166,7 +3170,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
|
|
|
3166
3170
|
return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
|
|
3167
3171
|
};
|
|
3168
3172
|
//#endregion
|
|
3169
|
-
//#region ../core/dist/detect-duplicate-jsx-subtrees-
|
|
3173
|
+
//#region ../core/dist/detect-duplicate-jsx-subtrees-D7-_Z6Mp.js
|
|
3170
3174
|
const yieldToEventLoop = () => new Promise((resolve) => {
|
|
3171
3175
|
setImmediate(resolve);
|
|
3172
3176
|
});
|
|
@@ -3730,7 +3734,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
3730
3734
|
});
|
|
3731
3735
|
};
|
|
3732
3736
|
//#endregion
|
|
3733
|
-
//#region ../core/dist/detect-react-compiler-
|
|
3737
|
+
//#region ../core/dist/detect-react-compiler-DKfPrp2s.js
|
|
3734
3738
|
const NEXT_CONFIG_FILENAMES = [
|
|
3735
3739
|
"next.config.js",
|
|
3736
3740
|
"next.config.mjs",
|
|
@@ -66825,17 +66829,19 @@ const collectTypeScriptEmitDuplicateJsPaths = (input) => {
|
|
|
66825
66829
|
const isIgnoredDirectoryName = (directoryName) => IGNORED_DIRECTORIES.has(directoryName) || directoryName.startsWith(".") && !SCANNED_DOT_DIRECTORIES.has(directoryName);
|
|
66826
66830
|
const hasIgnoredPathSegment = (relativePath) => relativePath.split(/[/\\]/).slice(0, -1).some((segment) => isIgnoredDirectoryName(segment));
|
|
66827
66831
|
const isLintableSourceFile = (filePath) => SOURCE_FILE_PATTERN.test(filePath) && !GENERATED_BUNDLE_FILE_PATTERN.test(filePath) && !GENERATED_SOURCE_DIRECTORY_PATTERN.test(filePath);
|
|
66832
|
+
const hasMinifiedSample = (sample) => {
|
|
66833
|
+
const lines = sample.split("\n");
|
|
66834
|
+
const longestLineLength = lines.reduce((longest, line) => Math.max(longest, line.length), 0);
|
|
66835
|
+
const averageLineLength = sample.length / lines.length;
|
|
66836
|
+
return longestLineLength > 1e3 && averageLineLength > 500;
|
|
66837
|
+
};
|
|
66828
66838
|
const isMinifiedSource = (absolutePath) => {
|
|
66829
66839
|
let fileDescriptor;
|
|
66830
66840
|
try {
|
|
66831
66841
|
fileDescriptor = fs$1$2.openSync(absolutePath, "r");
|
|
66832
66842
|
const buffer = Buffer.alloc(MINIFIED_SNIFF_BYTES);
|
|
66833
66843
|
const bytesRead = fs$1$2.readSync(fileDescriptor, buffer, 0, MINIFIED_SNIFF_BYTES, 0);
|
|
66834
|
-
|
|
66835
|
-
const lines = prefix.split("\n");
|
|
66836
|
-
const longestLineLength = lines.reduce((longest, line) => Math.max(longest, line.length), 0);
|
|
66837
|
-
const averageLineLength = prefix.length / lines.length;
|
|
66838
|
-
return longestLineLength > 1e3 && averageLineLength > 500;
|
|
66844
|
+
return hasMinifiedSample(buffer.toString("utf8", 0, bytesRead));
|
|
66839
66845
|
} catch {
|
|
66840
66846
|
return false;
|
|
66841
66847
|
} finally {
|
|
@@ -66861,6 +66867,37 @@ const isLargeMinifiedFile = (absolutePath, knownSizeBytes) => {
|
|
|
66861
66867
|
cachedIsLargeMinifiedByPath.set(absolutePath, result);
|
|
66862
66868
|
return result;
|
|
66863
66869
|
};
|
|
66870
|
+
const MODULE_PRELOAD_POLYFILL_START = /^\(function\(\)\{(?:const|let|var) [\w$]+=document\.createElement\((?:"link"|'link')\)\.relList;/;
|
|
66871
|
+
const MODULE_PRELOAD_POLYFILL_MARKERS = [
|
|
66872
|
+
/\.supports\((?:"modulepreload"|'modulepreload')\)/,
|
|
66873
|
+
/document\.querySelectorAll\([^)]*link\[rel=["']modulepreload["']\]/,
|
|
66874
|
+
/new MutationObserver\(/,
|
|
66875
|
+
/\.observe\(document,/
|
|
66876
|
+
];
|
|
66877
|
+
const isMinifiedViteEntry = (absolutePath, knownSizeBytes) => {
|
|
66878
|
+
if (!VITE_ENTRY_ASSET_FILE_PATTERN.test(absolutePath)) return false;
|
|
66879
|
+
const sizeBytes = knownSizeBytes === void 0 ? statSourceFileSize(absolutePath) : knownSizeBytes;
|
|
66880
|
+
if (sizeBytes === null || sizeBytes < 131072) return false;
|
|
66881
|
+
let fileDescriptor;
|
|
66882
|
+
try {
|
|
66883
|
+
fileDescriptor = fs$1$2.openSync(absolutePath, "r");
|
|
66884
|
+
const buffer = Buffer.alloc(VITE_ENTRY_DENSITY_SAMPLE_BYTES);
|
|
66885
|
+
const preludeBytesRead = fs$1$2.readSync(fileDescriptor, buffer, 0, VITE_ENTRY_PRELUDE_SNIFF_BYTES, 0);
|
|
66886
|
+
const prelude = buffer.toString("utf8", 0, preludeBytesRead);
|
|
66887
|
+
const polyfillEndOffset = prelude.indexOf("})();");
|
|
66888
|
+
if (polyfillEndOffset === -1) return false;
|
|
66889
|
+
const polyfill = prelude.slice(0, polyfillEndOffset);
|
|
66890
|
+
if (!MODULE_PRELOAD_POLYFILL_START.test(polyfill) || !MODULE_PRELOAD_POLYFILL_MARKERS.every((marker) => marker.test(polyfill))) return false;
|
|
66891
|
+
const middleOffset = Math.max(MINIFIED_SNIFF_BYTES, Math.floor((sizeBytes - VITE_ENTRY_DENSITY_SAMPLE_BYTES) / 2));
|
|
66892
|
+
const tailOffset = sizeBytes - VITE_ENTRY_DENSITY_SAMPLE_BYTES;
|
|
66893
|
+
for (const offset of [middleOffset, tailOffset]) if (fs$1$2.readSync(fileDescriptor, buffer, 0, 32768, offset) !== 32768 || !hasMinifiedSample(buffer.toString("utf8"))) return false;
|
|
66894
|
+
return true;
|
|
66895
|
+
} catch {
|
|
66896
|
+
return false;
|
|
66897
|
+
} finally {
|
|
66898
|
+
if (fileDescriptor !== void 0) fs$1$2.closeSync(fileDescriptor);
|
|
66899
|
+
}
|
|
66900
|
+
};
|
|
66864
66901
|
const isMissingPath = (absolutePath) => {
|
|
66865
66902
|
try {
|
|
66866
66903
|
fs$1$2.statSync(absolutePath);
|
|
@@ -66891,7 +66928,7 @@ const toSizedSourceFileEntry = (rootDirectory, relativePath) => {
|
|
|
66891
66928
|
const absolutePath = path$1$1.resolve(rootDirectory, relativePath);
|
|
66892
66929
|
const sizeBytes = statSourceFileSize(absolutePath);
|
|
66893
66930
|
if (sizeBytes === null && isMissingPath(absolutePath)) return null;
|
|
66894
|
-
if (isLargeMinifiedFile(absolutePath, sizeBytes)) return null;
|
|
66931
|
+
if (isLargeMinifiedFile(absolutePath, sizeBytes) || isMinifiedViteEntry(absolutePath, sizeBytes)) return null;
|
|
66895
66932
|
return {
|
|
66896
66933
|
path: relativePath,
|
|
66897
66934
|
sizeBytes: sizeBytes ?? 0
|
|
@@ -70524,6 +70561,32 @@ const validateSeverityMap = (fieldName, rawMap, keysAreCategories = false) => {
|
|
|
70524
70561
|
}
|
|
70525
70562
|
return validated;
|
|
70526
70563
|
};
|
|
70564
|
+
const ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS = ["allowExportNames", "customHOCs"];
|
|
70565
|
+
const ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS = ["allowConstantExport", "checkJS"];
|
|
70566
|
+
const validateOnlyExportComponentsField = (rawOptions) => {
|
|
70567
|
+
if (!isRecord(rawOptions)) {
|
|
70568
|
+
warnConfigIssue(`config field "onlyExportComponents" must be an object (got ${typeof rawOptions}); ignoring this field.`);
|
|
70569
|
+
return;
|
|
70570
|
+
}
|
|
70571
|
+
const validated = {};
|
|
70572
|
+
for (const [key, value] of Object.entries(rawOptions)) {
|
|
70573
|
+
const fieldName = `onlyExportComponents.${key}`;
|
|
70574
|
+
const stringArrayKey = ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS.find((candidateKey) => candidateKey === key);
|
|
70575
|
+
if (stringArrayKey !== void 0) {
|
|
70576
|
+
const entries = validateStringArrayField(fieldName, value);
|
|
70577
|
+
if (entries !== void 0) validated[stringArrayKey] = entries;
|
|
70578
|
+
continue;
|
|
70579
|
+
}
|
|
70580
|
+
const booleanKey = ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS.find((candidateKey) => candidateKey === key);
|
|
70581
|
+
if (booleanKey !== void 0) {
|
|
70582
|
+
const flag = coerceMaybeBooleanString(fieldName, value);
|
|
70583
|
+
if (flag !== void 0) validated[booleanKey] = flag;
|
|
70584
|
+
continue;
|
|
70585
|
+
}
|
|
70586
|
+
warnConfigIssue(`config field "${fieldName}" is not a known option (expected one of: ${[...ONLY_EXPORT_COMPONENTS_STRING_ARRAY_KEYS, ...ONLY_EXPORT_COMPONENTS_BOOLEAN_KEYS].join(", ")}); ignoring.`);
|
|
70587
|
+
}
|
|
70588
|
+
return validated;
|
|
70589
|
+
};
|
|
70527
70590
|
const applyFieldValidator = (config, validated, fieldName, validator) => {
|
|
70528
70591
|
const raw = config[fieldName];
|
|
70529
70592
|
if (raw === void 0) return;
|
|
@@ -70538,6 +70601,7 @@ const validateConfigTypes = (config) => {
|
|
|
70538
70601
|
for (const fieldName of STRING_ARRAY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateStringArrayField(fieldName, value));
|
|
70539
70602
|
applyFieldValidator(config, validated, "ignore", validateIgnoreField);
|
|
70540
70603
|
applyFieldValidator(config, validated, "surfaces", validateSurfacesField);
|
|
70604
|
+
applyFieldValidator(config, validated, "onlyExportComponents", validateOnlyExportComponentsField);
|
|
70541
70605
|
for (const fieldName of SEVERITY_FIELD_NAMES) applyFieldValidator(config, validated, fieldName, (value) => validateSeverityMap(fieldName, value, fieldName === "categories"));
|
|
70542
70606
|
applyFieldValidator(config, validated, "plugins", (value) => validateStringArrayField("plugins", value));
|
|
70543
70607
|
for (const ruleKey of getUnknownBundledRuleKeys(validated.rules)) warnConfigIssue(`config field "rules.${ruleKey}" is not a known bundled rule; this override has no effect. Run "react-doctor rules list" to find its rule ID.`);
|
|
@@ -72710,7 +72774,7 @@ const createSecurityScanSession = (rootDirectory, options) => {
|
|
|
72710
72774
|
entry,
|
|
72711
72775
|
scan,
|
|
72712
72776
|
severityOverride,
|
|
72713
|
-
committedFilesOnly: rule.committedFilesOnly
|
|
72777
|
+
committedFilesOnly: rule.committedFilesOnly !== false
|
|
72714
72778
|
}];
|
|
72715
72779
|
});
|
|
72716
72780
|
if (enabledScanRules.length === 0) return null;
|
|
@@ -72729,7 +72793,7 @@ const createSecurityScanSession = (rootDirectory, options) => {
|
|
|
72729
72793
|
if (file === null) return;
|
|
72730
72794
|
for (const { entry, scan, severityOverride, committedFilesOnly } of enabledScanRules) {
|
|
72731
72795
|
for (const finding of scan(file)) {
|
|
72732
|
-
if (committedFilesOnly && isFileGitIgnored(file)) continue;
|
|
72796
|
+
if ((finding.committedFilesOnly ?? committedFilesOnly) && isFileGitIgnored(file)) continue;
|
|
72733
72797
|
const diagnostic = buildSecurityScanDiagnostic(severityOverride === void 0 ? finding : {
|
|
72734
72798
|
...finding,
|
|
72735
72799
|
severity: severityOverride
|
|
@@ -74756,7 +74820,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
|
|
|
74756
74820
|
}
|
|
74757
74821
|
return enabled;
|
|
74758
74822
|
};
|
|
74759
|
-
const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
|
|
74823
|
+
const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, onlyExportComponents, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
|
|
74760
74824
|
const hasIncludedTags = includedTags.size > 0;
|
|
74761
74825
|
const resolvedReactHooksJsPlugin = disableReactHooksJsPlugin || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
|
|
74762
74826
|
const reactHooksJsPlugin = ruleSelection === "sidecar" ? null : resolvedReactHooksJsPlugin;
|
|
@@ -74839,6 +74903,7 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
|
|
|
74839
74903
|
} : {},
|
|
74840
74904
|
...project.shopifyFlashListMajorVersion !== null ? { shopifyFlashListMajorVersion: project.shopifyFlashListMajorVersion } : {},
|
|
74841
74905
|
...serverAuthFunctionNames && serverAuthFunctionNames.length > 0 ? { serverAuthFunctionNames: [...serverAuthFunctionNames] } : {},
|
|
74906
|
+
...onlyExportComponents !== void 0 ? { onlyExportComponents } : {},
|
|
74842
74907
|
...projectIndexModuleSources !== void 0 ? { projectIndexModuleSources: [...projectIndexModuleSources] } : {}
|
|
74843
74908
|
}
|
|
74844
74909
|
},
|
|
@@ -74849,6 +74914,12 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
|
|
|
74849
74914
|
}
|
|
74850
74915
|
};
|
|
74851
74916
|
};
|
|
74917
|
+
const internWorkerSidecarProbeIds = (result, trace, internRelativeProbe) => {
|
|
74918
|
+
const probeIds = [];
|
|
74919
|
+
for (const pathIndex of trace.content) probeIds.push(internRelativeProbe("content", result.paths[pathIndex], null));
|
|
74920
|
+
for (const pathIndex of trace.existence) probeIds.push(internRelativeProbe("exists", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
|
|
74921
|
+
return probeIds;
|
|
74922
|
+
};
|
|
74852
74923
|
const TIMELINE_PATH = process.env.REACT_DOCTOR_OXLINT_SPAWN_LOG;
|
|
74853
74924
|
const isOxlintJobTimelineEnabled = TIMELINE_PATH !== void 0;
|
|
74854
74925
|
const appendTimelineLine = (entry) => {
|
|
@@ -76409,8 +76480,8 @@ const REACT_COMPILER_TITLE = "React Compiler can't optimize this";
|
|
|
76409
76480
|
const REACT_COMPILER_TODO_TITLE = "React Compiler doesn't support this syntax";
|
|
76410
76481
|
const REACT_ERROR_BOUNDARY_TITLE = "JSX render errors need an Error Boundary";
|
|
76411
76482
|
const REACT_ERROR_BOUNDARY_MESSAGE = "This try/catch cannot catch errors thrown while the JSX child renders. Use an Error Boundary instead.";
|
|
76412
|
-
const REACT_COMPILER_IMPACT = "
|
|
76413
|
-
const REACT_COMPILER_ACTION = "
|
|
76483
|
+
const REACT_COMPILER_IMPACT = "React Compiler flagged this code during analysis";
|
|
76484
|
+
const REACT_COMPILER_ACTION = "Review the compiler's reason before changing the code.";
|
|
76414
76485
|
const REACT_COMPILER_INCOMPATIBLE_LIBRARY_ACTION = "It's how the library works, not a bug in your code. Memoize values you pass from it into other memoized components, or suppress it with `// react-doctor-disable-next-line react-hooks-js/incompatible-library`.";
|
|
76415
76486
|
const SET_STATE_IN_EFFECT_ACTION = "Prefer deriving or initializing the value before render. If the effect must read a browser API after mount, treat this as advisory or suppress it with `// react-doctor-disable-next-line react-hooks-js/set-state-in-effect`.";
|
|
76416
76487
|
const REACT_COMPILER_GENERIC_MESSAGE = `${REACT_COMPILER_IMPACT}. ${REACT_COMPILER_ACTION}`;
|
|
@@ -76596,7 +76667,7 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
|
|
|
76596
76667
|
const absolutePath = resolveAbsolutePath(resolveSourceFilename(filename));
|
|
76597
76668
|
const cached = minifiedFileCache.get(absolutePath);
|
|
76598
76669
|
if (cached !== void 0) return cached;
|
|
76599
|
-
const minified = isMinifiedSource(absolutePath);
|
|
76670
|
+
const minified = isMinifiedSource(absolutePath) || isMinifiedViteEntry(absolutePath);
|
|
76600
76671
|
minifiedFileCache.set(absolutePath, minified);
|
|
76601
76672
|
return minified;
|
|
76602
76673
|
};
|
|
@@ -77415,10 +77486,7 @@ const collectSidecarProbesForFiles = async (input) => {
|
|
|
77415
77486
|
probeIdsByFile.set(file, null);
|
|
77416
77487
|
continue;
|
|
77417
77488
|
}
|
|
77418
|
-
|
|
77419
|
-
for (const pathIndex of trace.content) probeIds.push(internRelativeProbe("content", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
|
|
77420
|
-
for (const pathIndex of trace.existence) probeIds.push(internRelativeProbe("exists", result.paths[pathIndex], result.existenceAnswers[pathIndex]));
|
|
77421
|
-
probeIdsByFile.set(file, probeIds);
|
|
77489
|
+
probeIdsByFile.set(file, internWorkerSidecarProbeIds(result, trace, internRelativeProbe));
|
|
77422
77490
|
}
|
|
77423
77491
|
};
|
|
77424
77492
|
const runParentLane = async () => {
|
|
@@ -77601,6 +77669,7 @@ const runOxlint = async (options) => {
|
|
|
77601
77669
|
runtimeGlobals,
|
|
77602
77670
|
unpluginAutoImportGlobalScopes,
|
|
77603
77671
|
serverAuthFunctionNames,
|
|
77672
|
+
onlyExportComponents: userConfig?.onlyExportComponents,
|
|
77604
77673
|
projectIndexModuleSources,
|
|
77605
77674
|
severityControls,
|
|
77606
77675
|
adoptedSettings,
|
|
@@ -79927,4 +79996,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
79927
79996
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
79928
79997
|
|
|
79929
79998
|
//# sourceMappingURL=index.js.map
|
|
79930
|
-
//# debugId=
|
|
79999
|
+
//# debugId=22eef580-ef23-5d30-8e09-9ad7fea09fc2
|
|
@@ -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, 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-
|
|
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]="758452ed-c3ae-5e7f-83ae-de41c492a2d0")}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-EMNGZNtj.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-D5cWO5c1.js";
|
|
5
|
+
import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-ByXNkZlA.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-CU_FATUx.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-DNUzAKVW.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-BMFIMJNG.js";
|
|
10
|
+
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CnUL3IaA.js";
|
|
11
|
+
import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-C3GbCfvM.js";
|
|
12
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-Bictn_Xl.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-BTg4e2sN.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-4mYTuWWb.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-CyRBo17H.js";
|
|
16
|
+
import { t as readObjectFile } from "./read-object-file-Lc7IMSGY.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-DAWaaj5s.js.map
|
|
1532
|
+
//# debugId=758452ed-c3ae-5e7f-83ae-de41c492a2d0
|
|
@@ -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]="c37ea126-9999-510f-b109-d24cdbff87aa")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-EMNGZNtj.js";
|
|
4
|
+
import { En as runSync, t as recordCount } from "./record-metric-D5cWO5c1.js";
|
|
5
|
+
import { o as isExpectedUserError } from "./telemetry-runtime-ByXNkZlA.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-CU_FATUx.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-DNUzAKVW.js";
|
|
8
|
+
import { t as printBrandedHeader } from "./print-branded-header-C_IdES5E.js";
|
|
9
|
+
import { n as runInstallReactDoctor } from "./install-react-doctor-CyRBo17H.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-DSkwdY2A.js.map
|
|
34
|
+
//# debugId=c37ea126-9999-510f-b109-d24cdbff87aa
|
|
@@ -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]="5e9ba3c4-9dbf-5052-b87e-a67d7ffc92af")}catch(e){}}();
|
|
3
|
+
import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-EMNGZNtj.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-D5cWO5c1.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-BMFIMJNG.js.map
|
|
2822
|
+
//# debugId=5e9ba3c4-9dbf-5052-b87e-a67d7ffc92af
|
|
@@ -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]="12b0435d-fbc3-548b-9439-af28f6a5570a")}catch(e){}}();
|
|
3
|
+
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-EMNGZNtj.js";
|
|
4
|
+
import { _t as findGitRepositoryRoot } from "./record-metric-D5cWO5c1.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-BMFIMJNG.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-CnUL3IaA.js.map
|
|
285
|
+
//# debugId=12b0435d-fbc3-548b-9439-af28f6a5570a
|
|
@@ -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 { At as GITHUB_ACTIONS_SETUP_URL, mn as SKILL_NAME, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-
|
|
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]="34b28916-15fd-5434-8661-3a3db220ea78")}catch(e){}}();
|
|
3
|
+
import { At as GITHUB_ACTIONS_SETUP_URL, mn as SKILL_NAME, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-EMNGZNtj.js";
|
|
4
|
+
import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-D5cWO5c1.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-BMFIMJNG.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-CnUL3IaA.js";
|
|
7
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-Bictn_Xl.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-4mYTuWWb.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-CyRBo17H.js.map
|
|
1160
|
+
//# debugId=34b28916-15fd-5434-8661-3a3db220ea78
|
package/dist/{is-cache-globally-disabled-CveNGcRi.js → is-cache-globally-disabled-CYjFzsDs.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]="af580742-9d87-5789-8d30-fb0822fd8beb")}catch(e){}}();
|
|
3
|
+
import { a as CACHE_DISABLED_VALUES } from "./constants-EMNGZNtj.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-CYjFzsDs.js.map
|
|
10
|
+
//# debugId=af580742-9d87-5789-8d30-fb0822fd8beb
|
|
@@ -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]="85056f6a-35c8-5b05-9dc7-14d2d67dea1f")}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-EMNGZNtj.js";
|
|
5
|
+
import { t as recordCount } from "./record-metric-D5cWO5c1.js";
|
|
6
|
+
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-Dcr71UQz.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-Di-r43F6.js.map
|
|
25874
|
+
//# debugId=85056f6a-35c8-5b05-9dc7-14d2d67dea1f
|
|
@@ -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]="ae86d57e-9a3e-5edc-b252-c555ccbc0688")}catch(e){}}();
|
|
3
|
+
import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-D5cWO5c1.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-C_IdES5E.js.map
|
|
22
|
+
//# debugId=ae86d57e-9a3e-5edc-b252-c555ccbc0688
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f9ac02e6-31a0-5a68-a0cf-f75d16eac5a3")}catch(e){}}();
|
|
3
3
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
4
|
-
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-
|
|
5
|
-
import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-
|
|
4
|
+
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-CxOV1srN.js";
|
|
5
|
+
import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-Di-r43F6.js";
|
|
6
6
|
import * as http from "node:http";
|
|
7
7
|
//#region src/cli/runtime-scan/detect-local-runtime-urls.ts
|
|
8
8
|
const LOCAL_HTTP_HOSTS = ["127.0.0.1", "::1"];
|
|
@@ -236,5 +236,5 @@ const promptRuntimeScanUrl = () => new Promise((resolve) => {
|
|
|
236
236
|
//#endregion
|
|
237
237
|
export { promptRuntimeScanUrl };
|
|
238
238
|
|
|
239
|
-
//# sourceMappingURL=prompt-runtime-scan-url-
|
|
240
|
-
//# debugId=
|
|
239
|
+
//# sourceMappingURL=prompt-runtime-scan-url-BfVNLYXF.js.map
|
|
240
|
+
//# debugId=f9ac02e6-31a0-5a68-a0cf-f75d16eac5a3
|
|
@@ -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]="0328270c-c8ba-56e8-bb8c-f9d19a6d1e56")}catch(e){}}();
|
|
3
|
+
import { Kn as isPlainObject } from "./record-metric-D5cWO5c1.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-Lc7IMSGY.js.map
|
|
24
|
+
//# debugId=0328270c-c8ba-56e8-bb8c-f9d19a6d1e56
|