react-doctor 0.9.17-dev.5915d6b → 0.9.17-dev.5b301c9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -23
- package/dist/{build-section-divider-s_cclOPg.js → build-section-divider-DAbvn3b0.js} +5 -5
- package/dist/{ci-LWELjEVD.js → ci-CL8NhTBP.js} +18 -14
- package/dist/cli.js +40 -31
- package/dist/{constants-DHn5rUeg.js → constants-Bwylqy0B.js} +7 -5
- package/dist/constants-DNh19qg9.js +2 -2
- package/dist/{design-Cpw_omrn.js → design-DfFKiWoZ.js} +4 -4
- package/dist/{exit-gracefully-B0jeEmTA.js → exit-gracefully-sN2frfXJ.js} +6 -6
- package/dist/{handle-error-B9OCYL8F.js → handle-error-B-RIZMsT.js} +6 -6
- package/dist/index.js +8 -7
- package/dist/{inspect-Mohvcqsd.js → inspect-Bjpionm9.js} +22 -19
- package/dist/{install-BOZt_YGe.js → install-DnnrhtCL.js} +10 -10
- package/dist/{install-doctor-script-Btpa6WJp.js → install-doctor-script-DdFB7DN3.js} +10 -6
- package/dist/{install-github-workflow--watiPdP.js → install-github-workflow-DBEqUWpc.js} +22 -8
- package/dist/{install-react-doctor-Kki0Blit.js → install-react-doctor-Dd5Ev1AZ.js} +9 -9
- package/dist/{is-cache-globally-disabled-DDlh_f1u.js → is-cache-globally-disabled-BvdYcw6Q.js} +4 -4
- package/dist/{jsx-runtime-4O0XzvRS.js → jsx-runtime-B3mBHKlo.js} +6 -6
- package/dist/{print-branded-header-pJyyujQv.js → print-branded-header-CEs1IUhf.js} +4 -4
- package/dist/{prompt-runtime-scan-url-DOzr6lLo.js → prompt-runtime-scan-url-CjbkpITb.js} +5 -5
- package/dist/{read-object-file-DVBqr8Cu.js → read-object-file-z51OGP8c.js} +4 -4
- package/dist/{record-metric-jJbDE0V1.js → record-metric-VBkk5sPY.js} +10 -9
- package/dist/{report-error-BXn9qS0N.js → report-error-B8Hd8D34.js} +6 -6
- package/dist/{report-workflow-result-WiNGpfWL.js → report-workflow-result-CD0MhBQv.js} +8 -7
- package/dist/{should-fail-scan-gate-CKDhfjpn.js → resolve-scan-exit-code-DRa9bIus.js} +24 -20
- package/dist/{resolve-scope-5s0PcQ1X.js → resolve-scope-_SO7kyxK.js} +6 -6
- package/dist/{rules-CBabN0VY.js → rules-Cv45NDzr.js} +7 -7
- package/dist/{run-scan-app-CfWrgxz0.js → run-scan-app-CQnApUu4.js} +27 -19
- package/dist/{runtime-scan-D9Ecf431.js → runtime-scan-DlbjXHUY.js} +10 -10
- package/dist/{sanitize-runtime-url-_Eyirsdl.js → sanitize-runtime-url-BhZFMetC.js} +4 -4
- package/dist/{scan-BZfXxCHu.js → scan-CV_YUSvb.js} +14 -13
- package/dist/{should-skip-prompts-DHpx0E6X.js → should-skip-prompts-CQhi-hXr.js} +4 -4
- package/dist/{should-use-tui-CUVcuAvX.js → should-use-tui-BE7Unw1w.js} +4 -4
- package/dist/skills/react-doctor/SKILL.md +4 -0
- package/dist/{start-scan-preamble-BPz3nzCQ.js → start-scan-preamble-2uz0joCl.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-DQiiBhHP.js → telemetry-runtime-B-3tB_1W.js} +7 -7
- package/dist/{version-DQJMq_t7.js → version-Dyc_H-vf.js} +5 -5
- package/dist/{why-C-3snQ64.js → why-BmaRmwAe.js} +4 -4
- package/dist/{with-run-span-8zfkOVIk.js → with-run-span-CIktTaX1.js} +6 -6
- package/package.json +2 -2
|
@@ -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, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-
|
|
4
|
-
import {
|
|
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]="ee016f5c-3d94-5166-944b-941e12c30e66")}catch(e){}}();
|
|
3
|
+
import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { An as provide, Bt as listWorkspacePackages, Cn as runPromise, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Hn as isErrnoException, Ht as mapWithConcurrency, K as StagedFiles, Kt as remainingDeadlineBudgetMs, S as isDebugFlagEnabled, St as getChangedLineRanges, Wn as isPlainObject, Yt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, _t as findLegacyConfig, bn as provide$1, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as JsonReport, ft as discoverSupportedSubprojects, g as writeJsonReport, h as writeJsonErrorReport, hn as gen, j as Git, jt as highlighter, kt as hasSupportedFrameworkOrLibrary, n as recordDistribution, nn as toRelativePath, p as setJsonReportMode, pn as decodeUnknownSync, t as recordCount, u as enableJsonMode, wt as getDiffInfo, xt as getBaselineDiffPlan, y as CliInputError, zn as messageFromUnknown } from "./record-metric-VBkk5sPY.js";
|
|
5
|
+
import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-B-3tB_1W.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-B-RIZMsT.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-B8Hd8D34.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
|
|
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-DdFB7DN3.js";
|
|
10
|
+
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-DBEqUWpc.js";
|
|
11
|
+
import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-_SO7kyxK.js";
|
|
12
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-CQhi-hXr.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-DRa9bIus.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-CD0MhBQv.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-Dd5Ev1AZ.js";
|
|
16
|
+
import { t as readObjectFile } from "./read-object-file-z51OGP8c.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";
|
|
@@ -768,11 +768,14 @@ const finalizeCliScans = (input) => {
|
|
|
768
768
|
baseline: outcome.baseline,
|
|
769
769
|
baselineDegraded: outcome.baselineDegraded
|
|
770
770
|
}));
|
|
771
|
-
|
|
771
|
+
const exitCode = resolveScanExitCode({
|
|
772
772
|
scans: input.completedScans,
|
|
773
773
|
blockingLevel: resolveBlockingLevel(input.flags, input.userConfig),
|
|
774
|
-
diagnosticsAreGateExempt: input.isScoreOnly || outcome.baselineDegraded
|
|
775
|
-
|
|
774
|
+
diagnosticsAreGateExempt: input.isScoreOnly || outcome.baselineDegraded,
|
|
775
|
+
warningExitCode: input.flags.warningExitCode
|
|
776
|
+
});
|
|
777
|
+
if (input.flags.warningExitCode !== void 0) recordCount(METRIC.scanWarningExitCodeConfigured);
|
|
778
|
+
if (exitCode !== 0) process.exitCode = exitCode;
|
|
776
779
|
};
|
|
777
780
|
//#endregion
|
|
778
781
|
//#region src/cli/utils/get-staged-files.ts
|
|
@@ -1520,5 +1523,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
|
|
|
1520
1523
|
//#endregion
|
|
1521
1524
|
export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
|
|
1522
1525
|
|
|
1523
|
-
//# sourceMappingURL=inspect-
|
|
1524
|
-
//# debugId=
|
|
1526
|
+
//# sourceMappingURL=inspect-Bjpionm9.js.map
|
|
1527
|
+
//# debugId=ee016f5c-3d94-5166-944b-941e12c30e66
|
|
@@ -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 {
|
|
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]="9ca63c6b-d73b-57af-8894-d294b6bf7ce0")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { t as recordCount, wn as runSync } from "./record-metric-VBkk5sPY.js";
|
|
5
|
+
import { o as isExpectedUserError } from "./telemetry-runtime-B-3tB_1W.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-B-RIZMsT.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-B8Hd8D34.js";
|
|
8
|
+
import { t as printBrandedHeader } from "./print-branded-header-CEs1IUhf.js";
|
|
9
|
+
import { n as runInstallReactDoctor } from "./install-react-doctor-Dd5Ev1AZ.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-DnnrhtCL.js.map
|
|
34
|
+
//# debugId=9ca63c6b-d73b-57af-8894-d294b6bf7ce0
|
|
@@ -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 {
|
|
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]="36dd5c09-4f18-5582-b543-0671489fdacb")}catch(e){}}();
|
|
3
|
+
import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { b as isNonInteractiveEnvironment, cn as info$1, jt as highlighter, ln as log, sn as error$1, un as warn, wn as runSync } from "./record-metric-VBkk5sPY.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";
|
|
@@ -78,7 +78,11 @@ const runGitRaw = (projectRoot, args) => {
|
|
|
78
78
|
"pipe",
|
|
79
79
|
"ignore"
|
|
80
80
|
],
|
|
81
|
-
maxBuffer: RUN_GIT_MAX_BUFFER_BYTES
|
|
81
|
+
maxBuffer: RUN_GIT_MAX_BUFFER_BYTES,
|
|
82
|
+
env: {
|
|
83
|
+
...process.env,
|
|
84
|
+
GIT_DIR: void 0
|
|
85
|
+
}
|
|
82
86
|
});
|
|
83
87
|
} catch {
|
|
84
88
|
return null;
|
|
@@ -2814,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
|
|
|
2814
2818
|
//#endregion
|
|
2815
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 };
|
|
2816
2820
|
|
|
2817
|
-
//# sourceMappingURL=install-doctor-script-
|
|
2818
|
-
//# debugId=
|
|
2821
|
+
//# sourceMappingURL=install-doctor-script-DdFB7DN3.js.map
|
|
2822
|
+
//# debugId=36dd5c09-4f18-5582-b543-0671489fdacb
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } 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]="3837c376-0128-58e2-b388-091f9308db4e")}catch(e){}}();
|
|
3
|
+
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { gt as findGitRepositoryRoot } from "./record-metric-VBkk5sPY.js";
|
|
4
5
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
5
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
6
|
+
import { N as cliLogger } from "./install-doctor-script-DdFB7DN3.js";
|
|
6
7
|
import { createRequire } from "node:module";
|
|
7
8
|
import * as fs$1 from "node:fs";
|
|
8
9
|
import * as path$1 from "node:path";
|
|
@@ -191,13 +192,19 @@ jobs:
|
|
|
191
192
|
# blocking: error # Gate level: "none" (advisory, the default) | "warning" | "error"
|
|
192
193
|
# scope: full # On PRs, scan the whole project instead of just changed files
|
|
193
194
|
# comment: false # Disable the sticky PR summary comment
|
|
195
|
+
# comment-on-clean: false # Skip new comments for clean scans
|
|
194
196
|
# review-comments: false # Disable inline review comments on changed lines
|
|
195
197
|
# commit-status: false # Disable the commit status (score + counts, links to the run)
|
|
196
198
|
# version: "0.4.0" # Pin to a specific react-doctor version instead of "latest"
|
|
197
199
|
# directory: apps/web # Scan a sub-directory (default: ".")
|
|
198
200
|
# project: "web,admin" # In a monorepo, scan specific workspace project(s)
|
|
199
201
|
`;
|
|
200
|
-
const
|
|
202
|
+
const getGitRootWorkflowPath = (gitRoot) => path$1.join(gitRoot, ".github", "workflows", "react-doctor.yml");
|
|
203
|
+
const getReactDoctorWorkflowPath = (projectRoot) => {
|
|
204
|
+
const gitRoot = findGitRepositoryRoot(projectRoot);
|
|
205
|
+
if (gitRoot === null) return path$1.join(projectRoot, ".github", "workflows", "react-doctor.yml");
|
|
206
|
+
return getGitRootWorkflowPath(gitRoot);
|
|
207
|
+
};
|
|
201
208
|
const isReactDoctorWorkflowInstalled = (projectRoot) => fs$1.existsSync(getReactDoctorWorkflowPath(projectRoot));
|
|
202
209
|
const V1_FLOATING_ACTION_REF = String.raw`millionco/react-doctor@v1(?![\w.])`;
|
|
203
210
|
const V2_FLOATING_ACTION_REF = "millionco/react-doctor@v2";
|
|
@@ -221,7 +228,13 @@ const upgradeWorkflowActionToV2 = (content) => {
|
|
|
221
228
|
};
|
|
222
229
|
};
|
|
223
230
|
const installReactDoctorWorkflow = (projectRoot, defaultBranch = "main") => {
|
|
224
|
-
const
|
|
231
|
+
const gitRoot = findGitRepositoryRoot(projectRoot);
|
|
232
|
+
if (gitRoot === null) return {
|
|
233
|
+
status: "failed",
|
|
234
|
+
workflowPath: path$1.join(projectRoot, ".github", "workflows", "react-doctor.yml"),
|
|
235
|
+
error: "no-git-root"
|
|
236
|
+
};
|
|
237
|
+
const workflowPath = getGitRootWorkflowPath(gitRoot);
|
|
225
238
|
if (fs$1.existsSync(workflowPath)) return {
|
|
226
239
|
status: "exists",
|
|
227
240
|
workflowPath
|
|
@@ -236,7 +249,8 @@ const installReactDoctorWorkflow = (projectRoot, defaultBranch = "main") => {
|
|
|
236
249
|
} catch {
|
|
237
250
|
return {
|
|
238
251
|
status: "failed",
|
|
239
|
-
workflowPath
|
|
252
|
+
workflowPath,
|
|
253
|
+
error: "write-failed"
|
|
240
254
|
};
|
|
241
255
|
}
|
|
242
256
|
};
|
|
@@ -267,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
|
|
|
267
281
|
//#endregion
|
|
268
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 };
|
|
269
283
|
|
|
270
|
-
//# sourceMappingURL=install-github-workflow
|
|
271
|
-
//# debugId=
|
|
284
|
+
//# sourceMappingURL=install-github-workflow-DBEqUWpc.js.map
|
|
285
|
+
//# debugId=3837c376-0128-58e2-b388-091f9308db4e
|
|
@@ -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 { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-
|
|
4
|
-
import {
|
|
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]="ca50d3e1-3761-5379-953e-d9828a172267")}catch(e){}}();
|
|
3
|
+
import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { Hn as isErrnoException, jt as highlighter, t as recordCount, y as CliInputError } from "./record-metric-VBkk5sPY.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-DdFB7DN3.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-DBEqUWpc.js";
|
|
7
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-CQhi-hXr.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-CD0MhBQv.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-Dd5Ev1AZ.js.map
|
|
1160
|
+
//# debugId=ca50d3e1-3761-5379-953e-d9828a172267
|
package/dist/{is-cache-globally-disabled-DDlh_f1u.js → is-cache-globally-disabled-BvdYcw6Q.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]="56e77dbd-5dbe-55ce-9d8e-d4f09e809431")}catch(e){}}();
|
|
3
|
+
import { a as CACHE_DISABLED_VALUES } from "./constants-Bwylqy0B.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-BvdYcw6Q.js.map
|
|
10
|
+
//# debugId=56e77dbd-5dbe-55ce-9d8e-d4f09e809431
|
|
@@ -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]="7b2690ed-8c02-5989-b6f9-2c438f1dfe0d")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { u as METRIC } from "./constants-
|
|
5
|
-
import { t as recordCount } from "./record-metric-
|
|
6
|
-
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-
|
|
4
|
+
import { u as METRIC } from "./constants-Bwylqy0B.js";
|
|
5
|
+
import { t as recordCount } from "./record-metric-VBkk5sPY.js";
|
|
6
|
+
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-sN2frfXJ.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-B3mBHKlo.js.map
|
|
25874
|
+
//# debugId=7b2690ed-8c02-5989-b6f9-2c438f1dfe0d
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d83e19d7-a034-5681-922e-833217609c5a")}catch(e){}}();
|
|
3
|
+
import { _ as VERSION, hn as gen, jt as highlighter, ln as log } from "./record-metric-VBkk5sPY.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-CEs1IUhf.js.map
|
|
22
|
+
//# debugId=d83e19d7-a034-5681-922e-833217609c5a
|
|
@@ -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]="d01437f4-9566-52ab-898d-c579ddff8f77")}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-BhZFMetC.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-B3mBHKlo.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-CjbkpITb.js.map
|
|
240
|
+
//# debugId=d01437f4-9566-52ab-898d-c579ddff8f77
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0c2cc104-8618-5255-8ed7-5e94c60430d3")}catch(e){}}();
|
|
3
|
+
import { Wn as isPlainObject } from "./record-metric-VBkk5sPY.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-z51OGP8c.js.map
|
|
24
|
+
//# debugId=0c2cc104-8618-5255-8ed7-5e94c60430d3
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4894ee54-963d-57d2-b0af-c952990c9c00")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-
|
|
4
|
+
import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-Bwylqy0B.js";
|
|
5
5
|
import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as fs$1$2 from "node:fs";
|
|
@@ -88,7 +88,7 @@ const unwrapTypescriptExpression = (expression) => {
|
|
|
88
88
|
return currentExpression;
|
|
89
89
|
};
|
|
90
90
|
//#endregion
|
|
91
|
-
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-
|
|
91
|
+
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-CSHedw9o.js
|
|
92
92
|
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
93
93
|
const LINGUIST_ATTRIBUTES = ["linguist-generated", "linguist-vendored"];
|
|
94
94
|
const DISABLED_ATTRIBUTE_VALUES = new Set([
|
|
@@ -526,7 +526,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
|
|
|
526
526
|
return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
|
|
527
527
|
};
|
|
528
528
|
//#endregion
|
|
529
|
-
//#region ../core/dist/detect-duplicate-jsx-subtrees-
|
|
529
|
+
//#region ../core/dist/detect-duplicate-jsx-subtrees-Df5xaEva.js
|
|
530
530
|
const yieldToEventLoop = () => new Promise((resolve) => {
|
|
531
531
|
setImmediate(resolve);
|
|
532
532
|
});
|
|
@@ -1083,7 +1083,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
1083
1083
|
});
|
|
1084
1084
|
};
|
|
1085
1085
|
//#endregion
|
|
1086
|
-
//#region ../core/dist/detect-react-compiler-
|
|
1086
|
+
//#region ../core/dist/detect-react-compiler-CP4BcCz0.js
|
|
1087
1087
|
const NEXT_CONFIG_FILENAMES = [
|
|
1088
1088
|
"next.config.js",
|
|
1089
1089
|
"next.config.mjs",
|
|
@@ -76919,6 +76919,7 @@ const GITHUB_ACTION_MARKER_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_GITHUB_ACTION";
|
|
|
76919
76919
|
const ACTION_INPUT_ENVIRONMENT_VARIABLES = {
|
|
76920
76920
|
blocking: "REACT_DOCTOR_ACTION_BLOCKING",
|
|
76921
76921
|
comment: "REACT_DOCTOR_ACTION_COMMENT",
|
|
76922
|
+
commentOnClean: "REACT_DOCTOR_ACTION_COMMENT_ON_CLEAN",
|
|
76922
76923
|
reviewComments: "REACT_DOCTOR_ACTION_REVIEW_COMMENTS",
|
|
76923
76924
|
version: "REACT_DOCTOR_ACTION_VERSION"
|
|
76924
76925
|
};
|
|
@@ -77094,7 +77095,7 @@ const makeNoopConsole = () => ({
|
|
|
77094
77095
|
});
|
|
77095
77096
|
//#endregion
|
|
77096
77097
|
//#region src/cli/utils/version.ts
|
|
77097
|
-
const VERSION = "0.9.17-dev.
|
|
77098
|
+
const VERSION = "0.9.17-dev.5b301c9";
|
|
77098
77099
|
//#endregion
|
|
77099
77100
|
//#region src/cli/utils/json-mode.ts
|
|
77100
77101
|
let context = null;
|
|
@@ -77436,7 +77437,7 @@ const recordDistribution = (name, value, options = {}) => {
|
|
|
77436
77437
|
} catch {}
|
|
77437
77438
|
};
|
|
77438
77439
|
//#endregion
|
|
77439
|
-
export { buildRuleSeverityControls as $,
|
|
77440
|
+
export { buildRuleSeverityControls as $, setColorEnabled as $t, Files as A, provide$2 as An, hashFileContents as At, PerFileLintCacheEnabled as B, toCanonicalPath as Bn, listWorkspacePackages as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, runPromise as Cn, getDiagnosticRuleIdentity as Ct, isCodingAgentEnvironment as D, void_ as Dn, groupBy as Dt, isCiOrCodingAgentEnvironment as E, try_ as En, getRuleMetadata as Et, Linter as F, void_$1 as Fn, isSameRuleKey as Ft, SidecarLintCacheEnabled as G, mergeReactDoctorConfigs as Gt, Project as H, isErrnoException as Hn, mapWithConcurrency as Ht, Maintainability as I, ParentSpan as In, isScanComplete as It, anonymizeInPlace as J, resolveLintBatchOrdering as Jt, StagedFiles as K, remainingDeadlineBudgetMs as Kt, NodeResolver as L, isMonorepoRoot as Ln, layerObservability as Lt, InvocationCaches as M, close as Mn, isPathInsideDirectory as Mt, LEGACY_CONFIG_FILENAME as N, makeUnsafe$5 as Nn, isProjectDiscoveryError as Nt, Config as O, buildWithScope as On, hasPublishedFixRecipe as Ot, LintPartialFailures as P, fail$5 as Pn, isReactDoctorError as Pt, buildRuleDocsUrl as Q, scrubSensitivePaths as Qt, OxlintConcurrency as R, yieldToEventLoop as Rn, listSourceFiles as Rt, isDebugFlagEnabled as S, provideService as Sn, getChangedLineRanges as St, isCiEnvironment as T, sync as Tn, getEquivalentRuleKeys as Tt, Reporter as U, isFile as Un, materializeSourceTree as Ut, Progress as V, isDirectory as Vn, loadConfigWithSource as Vt, Score as W, isPlainObject as Wn, mergeAndFilterDiagnostics as Wt, atomicWriteJson as X, restoreLegacyThrow as Xt, anonymizeText as Y, resolveScanTarget as Yt, buildJsonReport as Z, runInspect as Zt, VERSION as _, map$3 as _n, findLegacyConfig as _t, isEnvFlagEnabled as a, warmOxlintWorkerPool as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, provide as bn, formatReactDoctorError as bt, setSentryProjectInfo as c, info as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, Diagnostic as dn, detectAiTrainingEnvironment as dt, shouldUseMaintainabilityLayer as en, buildSkippedChecks as et, setJsonReportDirectory as f, JsonReport as fn, discoverSupportedSubprojects as ft, writeJsonReport as g, makeSpan$1 as gn, findGitRepositoryRoot as gt, writeJsonErrorReport as h, gen as hn, filterSourceFiles as ht, isTelemetryEnabled as i, warmDuplicateJsxWorker as in, clearConfigCache as it, Git as j, succeed$3 as jn, highlighter as jt, DIAGNOSTIC_DELTA_IDENTITY as k, mergeAll$1 as kn, hasSupportedFrameworkOrLibrary as kt, getRunId as l, log as ln, createInvocationCaches as lt, writeJsonCancellationReport as m, make$30 as mn, filterPathsOutsideDirectories as mt, recordDistribution as n, toRelativePath as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, Console as on, computeConfigFingerprint as ot, setJsonReportMode as p, decodeUnknownSync as pn, filterDiagnosticsForSurface as pt, SupplyChain as q, resolveGithubActionsScoreMetadata as qt, toSpanAttributes as r, validateConfigTypes as rn, classifyFileContext as rt, buildSentryProjectContext as s, error as sn, computeDiagnosticDelta as st, recordCount as t, summarizeDiagnostics as tn, calculateScore as tt, enableJsonMode as u, warn$1 as un, createOxlintSpawnSlots as ut, makeNoopConsole as v, orElseSucceed as vn, fingerprintDiagnosticEvidence as vt, detectRunnerOs as w, runSync as wn, getDiffInfo as wt, isGitHookEnvironment as x, provideContext as xn, getBaselineDiffPlan as xt, CliInputError as y, promise as yn, formatErrorChain as yt, OxlintSpawnSlots as z, messageFromUnknown as zn, listSourceFilesCooperative as zt };
|
|
77440
77441
|
|
|
77441
|
-
//# sourceMappingURL=record-metric-
|
|
77442
|
-
//# debugId=
|
|
77442
|
+
//# sourceMappingURL=record-metric-VBkk5sPY.js.map
|
|
77443
|
+
//# debugId=4894ee54-963d-57d2-b0af-c952990c9c00
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-
|
|
4
|
-
import {
|
|
5
|
-
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5b1d0884-b596-5dae-b16c-f0683baa343f")}catch(e){}}();
|
|
3
|
+
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { Pt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-VBkk5sPY.js";
|
|
5
|
+
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-B-3tB_1W.js";
|
|
6
6
|
import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
|
|
7
7
|
//#region src/cli/utils/report-error.ts
|
|
8
8
|
/**
|
|
@@ -61,5 +61,5 @@ const reportErrorToSentry = async (error) => {
|
|
|
61
61
|
//#endregion
|
|
62
62
|
export { reportErrorToSentry as t };
|
|
63
63
|
|
|
64
|
-
//# sourceMappingURL=report-error-
|
|
65
|
-
//# debugId=
|
|
64
|
+
//# sourceMappingURL=report-error-B8Hd8D34.js.map
|
|
65
|
+
//# debugId=5b1d0884-b596-5dae-b16c-f0683baa343f
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-
|
|
4
|
-
import { t as recordCount } from "./record-metric-
|
|
5
|
-
import { u as isCommandAvailable } from "./install-github-workflow
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6175ac7f-cecb-5748-a1ef-cadf8fd30d67")}catch(e){}}();
|
|
3
|
+
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { t as recordCount } from "./record-metric-VBkk5sPY.js";
|
|
5
|
+
import { u as isCommandAvailable } from "./install-github-workflow-DBEqUWpc.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
@@ -274,7 +274,8 @@ const openUrl = (url) => new Promise((resolve) => {
|
|
|
274
274
|
//#region src/cli/utils/report-workflow-result.ts
|
|
275
275
|
const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
|
|
276
276
|
if (result.status === "failed") {
|
|
277
|
-
workflowSpinner.fail("Couldn't write the GitHub Actions workflow.");
|
|
277
|
+
if (result.error === "no-git-root") workflowSpinner.fail("Couldn't write the GitHub Actions workflow: no git repository found. Run this command from inside a git repository.");
|
|
278
|
+
else workflowSpinner.fail("Couldn't write the GitHub Actions workflow.");
|
|
278
279
|
return false;
|
|
279
280
|
}
|
|
280
281
|
if (result.status === "exists") {
|
|
@@ -288,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
|
|
|
288
289
|
//#endregion
|
|
289
290
|
export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, loadAgentInstall as g, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
|
|
290
291
|
|
|
291
|
-
//# sourceMappingURL=report-workflow-result-
|
|
292
|
-
//# debugId=
|
|
292
|
+
//# sourceMappingURL=report-workflow-result-CD0MhBQv.js.map
|
|
293
|
+
//# debugId=6175ac7f-cecb-5748-a1ef-cadf8fd30d67
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-
|
|
4
|
-
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-
|
|
5
|
-
import { $ as buildRuleSeverityControls,
|
|
6
|
-
import { t as getTelemetryContext } from "./telemetry-runtime-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="34b47138-2f60-539a-ad22-2edf3daa406b")}catch(e){}}();
|
|
3
|
+
import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-Bwylqy0B.js";
|
|
4
|
+
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-BvdYcw6Q.js";
|
|
5
|
+
import { $ as buildRuleSeverityControls, A as Files, At as hashFileContents, B as PerFileLintCacheEnabled, Bt as listWorkspacePackages, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runPromise, Ct as getDiagnosticRuleIdentity, Dt as groupBy, E as isCiOrCodingAgentEnvironment, En as try_, Et as getRuleMetadata, F as Linter, G as SidecarLintCacheEnabled, Gt as mergeReactDoctorConfigs, H as Project, Ht as mapWithConcurrency, I as Maintainability, In as ParentSpan, It as isScanComplete, Jt as resolveLintBatchOrdering, Kt as remainingDeadlineBudgetMs, L as NodeResolver, Ln as isMonorepoRoot, M as InvocationCaches, Mt as isPathInsideDirectory, O as Config, Ot as hasPublishedFixRecipe, P as LintPartialFailures, Pt as isReactDoctorError, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rn as yieldToEventLoop, Rt as listSourceFiles, Sn as provideService, T as isCiEnvironment, Tn as sync, U as Reporter, Un as isFile, Ut as materializeSourceTree, V as Progress, Vn as isDirectory, W as Score, Wt as mergeAndFilterDiagnostics, X as atomicWriteJson, Xt as restoreLegacyThrow, Yt as resolveScanTarget, Zt as runInspect, _ as VERSION, _n as map, an as warmOxlintWorkerPool, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provide, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as Diagnostic, en as shouldUseMaintainabilityLayer, et as buildSkippedChecks, ft as discoverSupportedSubprojects, hn as gen, ht as filterSourceFiles, in as warmDuplicateJsxWorker, j as Git, jn as succeed, jt as highlighter, k as DIAGNOSTIC_DELTA_IDENTITY, kn as mergeAll, l as getRunId, ln as log, lt as createInvocationCaches, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as Console, ot as computeConfigFingerprint, pn as decodeUnknownSync, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveGithubActionsScoreMetadata, r as toSpanAttributes, rt as classifyFileContext, sn as error, st as computeDiagnosticDelta, t as recordCount, tn as summarizeDiagnostics, tt as calculateScore, un as warn, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as orElseSucceed, vt as fingerprintDiagnosticEvidence, w as detectRunnerOs, wn as runSync, xn as provideContext, y as CliInputError, yn as promise, z as OxlintSpawnSlots, zt as listSourceFilesCooperative } from "./record-metric-VBkk5sPY.js";
|
|
6
|
+
import { t as getTelemetryContext } from "./telemetry-runtime-B-3tB_1W.js";
|
|
7
7
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
8
|
-
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-
|
|
8
|
+
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-DAbvn3b0.js";
|
|
9
9
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
10
10
|
import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
|
|
11
|
-
import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-
|
|
12
|
-
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow
|
|
13
|
-
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-
|
|
14
|
-
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-
|
|
15
|
-
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-
|
|
11
|
+
import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DdFB7DN3.js";
|
|
12
|
+
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-DBEqUWpc.js";
|
|
13
|
+
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-_SO7kyxK.js";
|
|
14
|
+
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-CIktTaX1.js";
|
|
15
|
+
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-CD0MhBQv.js";
|
|
16
16
|
import { createRequire } from "node:module";
|
|
17
17
|
import * as fs$2 from "node:fs";
|
|
18
18
|
import fs, { mkdtempSync, rmSync } from "node:fs";
|
|
@@ -531,6 +531,7 @@ const buildActionAttributes = () => {
|
|
|
531
531
|
actorAssociation: githubActorAssociation,
|
|
532
532
|
runnerOs: detectRunnerOs(),
|
|
533
533
|
comment: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.comment),
|
|
534
|
+
commentOnClean: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.commentOnClean),
|
|
534
535
|
reviewComments: readEnvBoolean(ACTION_INPUT_ENVIRONMENT_VARIABLES.reviewComments),
|
|
535
536
|
versionPin: resolveVersionPin(process.env[ACTION_INPUT_ENVIRONMENT_VARIABLES.version])
|
|
536
537
|
});
|
|
@@ -3160,15 +3161,18 @@ const validateModeFlags = (flags) => {
|
|
|
3160
3161
|
//#region src/cli/utils/format-skipped-projects-message.ts
|
|
3161
3162
|
const formatSkippedProjectsMessage = (projectCount) => `${projectCount} ${projectCount === 1 ? "project was" : "projects were"} skipped because the max scan duration was reached.`;
|
|
3162
3163
|
//#endregion
|
|
3163
|
-
//#region src/cli/utils/
|
|
3164
|
-
const
|
|
3165
|
-
if (input.blockingLevel === "none") return
|
|
3166
|
-
if (input.scans.some(({ result }) => hasLintHardFailure(result))) return
|
|
3167
|
-
if (input.diagnosticsAreGateExempt === true) return
|
|
3168
|
-
|
|
3164
|
+
//#region src/cli/utils/resolve-scan-exit-code.ts
|
|
3165
|
+
const resolveScanExitCode = (input) => {
|
|
3166
|
+
if (input.blockingLevel === "none") return 0;
|
|
3167
|
+
if (input.scans.some(({ result }) => hasLintHardFailure(result))) return 1;
|
|
3168
|
+
if (input.diagnosticsAreGateExempt === true) return 0;
|
|
3169
|
+
const diagnostics = filterScansForSurface(input.scans, "ciFailure");
|
|
3170
|
+
if (shouldBlockCi(diagnostics, input.blockingLevel)) return 1;
|
|
3171
|
+
if (diagnostics.some((diagnostic) => diagnostic.severity === "warning")) return input.warningExitCode ?? 0;
|
|
3172
|
+
return 0;
|
|
3169
3173
|
};
|
|
3170
3174
|
//#endregion
|
|
3171
|
-
export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s,
|
|
3175
|
+
export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, resolveScanExitCode as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
|
|
3172
3176
|
|
|
3173
|
-
//# sourceMappingURL=
|
|
3174
|
-
//# debugId=
|
|
3177
|
+
//# sourceMappingURL=resolve-scan-exit-code-DRa9bIus.js.map
|
|
3178
|
+
//# debugId=34b47138-2f60-539a-ad22-2edf3daa406b
|