react-doctor 0.9.17-dev.0a046d2 → 0.9.17-dev.888dc2a
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-BBXhE0eV.js → build-section-divider-SaQnctqK.js} +4 -4
- package/dist/{ci-Bhwyqzkh.js → ci-BwPprgtv.js} +12 -12
- package/dist/cli.js +23 -23
- package/dist/{design-DrYmJ3Y8.js → design-NGMlUJw8.js} +4 -4
- package/dist/{exit-gracefully-C-4GABeG.js → exit-gracefully-IqbKl0nj.js} +6 -6
- package/dist/{handle-error-DYJ_DTws.js → handle-error-BxDfT80U.js} +5 -5
- package/dist/{inspect-B5kLLBCU.js → inspect-D3UYRxCv.js} +15 -15
- package/dist/{install-BPLRA1_s.js → install-C9z3xbKW.js} +9 -9
- package/dist/{install-doctor-script-Bf2VZliG.js → install-doctor-script-BttpccU2.js} +4 -4
- package/dist/{install-github-workflow-DALgqGw2.js → install-github-workflow-C7aU2_nG.js} +4 -4
- package/dist/{install-react-doctor-D20RkNvN.js → install-react-doctor-g717jJGn.js} +8 -8
- package/dist/{jsx-runtime-DmX0umt5.js → jsx-runtime-BNEp1f1-.js} +5 -5
- package/dist/{print-branded-header-ChbhJ6H1.js → print-branded-header-WMTAFewk.js} +4 -4
- package/dist/{prompt-runtime-scan-url-DtXBhv3R.js → prompt-runtime-scan-url-BQ8Mxd5i.js} +5 -5
- package/dist/{read-object-file-CIMwQELU.js → read-object-file-CBoKpfyS.js} +4 -4
- package/dist/{record-metric-ig3Jz1H2.js → record-metric-B8b4bjaB.js} +4 -4
- package/dist/{report-error-AaQVKqAG.js → report-error-5G1BJCWR.js} +5 -5
- package/dist/{report-workflow-result-CSbFuOZD.js → report-workflow-result-BbAqdyMA.js} +5 -5
- package/dist/{resolve-scope-qWaInxbR.js → resolve-scope-IL1MWTU6.js} +6 -6
- package/dist/{rules-DFsEJBEd.js → rules-FGhjacgJ.js} +6 -6
- package/dist/{run-scan-app-BswlIXc7.js → run-scan-app-Th0DEjyF.js} +10 -10
- package/dist/{runtime-scan-C6cDBSRf.js → runtime-scan-Dxruoh69.js} +9 -9
- package/dist/{sanitize-runtime-url-BbATANKl.js → sanitize-runtime-url-BQNu-U4v.js} +4 -4
- package/dist/{scan-DzhKXQQz.js → scan-DTdtBCbo.js} +9 -9
- package/dist/{should-fail-scan-gate-DHeOcfsD.js → should-fail-scan-gate-_gmz0don.js} +11 -11
- package/dist/{should-skip-prompts-Sm3BOB2W.js → should-skip-prompts-DNkwhWow.js} +4 -4
- package/dist/{should-use-tui-_vFOwlXI.js → should-use-tui-laB7MG1v.js} +4 -4
- package/dist/{telemetry-runtime-B0aPA5jX.js → telemetry-runtime-B5ReQ28o.js} +6 -6
- package/dist/{version-CdDvtiy6.js → version-DRCfjrnM.js} +4 -4
- package/dist/{why-BZ0Ayqqs.js → why-qpHIO1XJ.js} +4 -4
- package/dist/{with-run-span-X9lSqXzT.js → with-run-span-B072XQSZ.js} +5 -5
- package/package.json +2 -2
|
@@ -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]="7ed2d098-ee2d-5dcb-b2fc-d080b0b47c8c")}catch(e){}}();
|
|
3
3
|
import { bt as DOCS_URL, lt as CANONICAL_GITHUB_URL } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { At as highlighter } from "./record-metric-
|
|
4
|
+
import { At as highlighter } from "./record-metric-B8b4bjaB.js";
|
|
5
5
|
//#region src/cli/utils/resolve-measure-width.ts
|
|
6
6
|
const resolveClampedWidth = (input) => {
|
|
7
7
|
const terminalColumns = process.stdout.columns;
|
|
@@ -77,5 +77,5 @@ const buildSectionDivider = () => highlighter.dim(`${DIVIDER_INDENT}${"─".repe
|
|
|
77
77
|
//#endregion
|
|
78
78
|
export { buildFooterLinkLines as n, buildSectionDivider as t };
|
|
79
79
|
|
|
80
|
-
//# sourceMappingURL=build-section-divider-
|
|
81
|
-
//# debugId=
|
|
80
|
+
//# sourceMappingURL=build-section-divider-SaQnctqK.js.map
|
|
81
|
+
//# debugId=7ed2d098-ee2d-5dcb-b2fc-d080b0b47c8c
|
|
@@ -1,16 +1,16 @@
|
|
|
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]="f57ad787-a2b3-5cea-a6f3-38d0aa3dab78")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { kt as GITHUB_ACTIONS_SETUP_URL, u as METRIC, ut as CI_URL } from "./constants-DHn5rUeg.js";
|
|
5
|
-
import { At as highlighter, Cn as runSync, t as recordCount } from "./record-metric-
|
|
6
|
-
import { o as isExpectedUserError } from "./telemetry-runtime-
|
|
7
|
-
import { n as handleUserError, t as handleError } from "./handle-error-
|
|
8
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
9
|
-
import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
10
|
-
import { a as readReactDoctorWorkflow, d as detectDefaultBranch, f as runCommand, l as prompts, n as getReactDoctorWorkflowPath, s as upgradeWorkflowActionToV2, t as buildWorkflowContent } from "./install-github-workflow-
|
|
11
|
-
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-
|
|
12
|
-
import { t as shouldSkipPrompts } from "./should-skip-prompts-
|
|
13
|
-
import { t as printBrandedHeader } from "./print-branded-header-
|
|
5
|
+
import { At as highlighter, Cn as runSync, t as recordCount } from "./record-metric-B8b4bjaB.js";
|
|
6
|
+
import { o as isExpectedUserError } from "./telemetry-runtime-B5ReQ28o.js";
|
|
7
|
+
import { n as handleUserError, t as handleError } from "./handle-error-BxDfT80U.js";
|
|
8
|
+
import { t as reportErrorToSentry } from "./report-error-5G1BJCWR.js";
|
|
9
|
+
import { N as cliLogger, c as spinner, n as findNearestPackageDirectory } from "./install-doctor-script-BttpccU2.js";
|
|
10
|
+
import { a as readReactDoctorWorkflow, d as detectDefaultBranch, f as runCommand, l as prompts, n as getReactDoctorWorkflowPath, s as upgradeWorkflowActionToV2, t as buildWorkflowContent } from "./install-github-workflow-C7aU2_nG.js";
|
|
11
|
+
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, n as isScopeValue } from "./resolve-scope-IL1MWTU6.js";
|
|
12
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-DNkwhWow.js";
|
|
13
|
+
import { t as printBrandedHeader } from "./print-branded-header-WMTAFewk.js";
|
|
14
14
|
import * as fs$1 from "node:fs";
|
|
15
15
|
import * as path$1 from "node:path";
|
|
16
16
|
//#region src/cli/utils/ci/ci-provider.ts
|
|
@@ -7499,5 +7499,5 @@ const ciConfigAction = (options) => runCiCommand("config", runCiConfig, options)
|
|
|
7499
7499
|
//#endregion
|
|
7500
7500
|
export { ciConfigAction, ciInstallAction, ciUpgradeAction };
|
|
7501
7501
|
|
|
7502
|
-
//# sourceMappingURL=ci-
|
|
7503
|
-
//# debugId=
|
|
7502
|
+
//# sourceMappingURL=ci-BwPprgtv.js.map
|
|
7503
|
+
//# debugId=f57ad787-a2b3-5cea-a6f3-38d0aa3dab78
|
package/dist/cli.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { lt as CANONICAL_GITHUB_URL, ut as CI_URL } from "./constants-DHn5rUeg.js";
|
|
5
5
|
import "./start-scan-preamble-BPz3nzCQ.js";
|
|
6
|
-
import { At as highlighter, Bn as isDirectory, Hn as isFile, Qt as setColorEnabled, S as isDebugFlagEnabled, _ as VERSION, d as isJsonModeActive, h as writeJsonErrorReport, ht as filterSourceFiles, i as isTelemetryEnabled, jt as isPathInsideDirectory, y as CliInputError } from "./record-metric-
|
|
7
|
-
import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-
|
|
8
|
-
import { t as exitGracefully } from "./exit-gracefully-
|
|
9
|
-
import { n as handleUserError, t as handleError } from "./handle-error-
|
|
6
|
+
import { At as highlighter, Bn as isDirectory, Hn as isFile, Qt as setColorEnabled, S as isDebugFlagEnabled, _ as VERSION, d as isJsonModeActive, h as writeJsonErrorReport, ht as filterSourceFiles, i as isTelemetryEnabled, jt as isPathInsideDirectory, y as CliInputError } from "./record-metric-B8b4bjaB.js";
|
|
7
|
+
import { a as initializeSentry, n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-B5ReQ28o.js";
|
|
8
|
+
import { t as exitGracefully } from "./exit-gracefully-IqbKl0nj.js";
|
|
9
|
+
import { n as handleUserError, t as handleError } from "./handle-error-BxDfT80U.js";
|
|
10
10
|
import { n as getLastRunTraceId } from "./active-run-trace-Dewycxda.js";
|
|
11
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
11
|
+
import { t as reportErrorToSentry } from "./report-error-5G1BJCWR.js";
|
|
12
12
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
13
13
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
14
14
|
import * as path$1 from "node:path";
|
|
@@ -3560,7 +3560,7 @@ ${highlighter.dim("Learn more:")}
|
|
|
3560
3560
|
const collectCategoryOption = (value, previousValues) => [...previousValues ?? [], value];
|
|
3561
3561
|
const program = new Command().name("react-doctor").description("Diagnose React codebase health").version(VERSION, "-v, --version", "display the version number").argument("[paths...]", "one project directory or source file paths to scan").option("--lint", "enable linting").option("--no-lint", "skip linting").addOption(new Option("--dead-code").hideHelp()).addOption(new Option("--no-dead-code").hideHelp()).option("--supply-chain", "enable the dependency supply-chain scan (default)").option("--no-supply-chain", "skip the dependency supply-chain scan (Socket.dev dependency health checks)").option("--verbose", "show every rule and per-file details (default shows top 3 rules)").option("--debug", "force a Sentry trace and print its id at the end (paste it into a bug report)").option("--output-dir <dir>", "directory for the full diagnostics dump (default: a temp folder)").option("--score", "output only the score").option("--json", "output a single structured JSON report (suppresses other output)").option("--json-compact", "with --json, emit compact JSON (no indentation)").option("--json-out <path>", "with --json, write the report to a file instead of stdout").option("--no-cache", "disable all scan caches for this run").option("-y, --yes", "skip prompts, scan all workspace projects").option("--no-parallel", "lint serially with one worker (default: parallel across CPU cores; set the worker count with REACT_DOCTOR_PARALLEL)").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple); overrides the `projects` config field").option("--scope <value>", "how much supported JS/TS and inline HTML script source to scan/report: full (default), files, changed (only new issues vs base), or lines (issues whose source spans touch changed lines)").option("--baseline <report.json>", "report only new issues compared with a saved JSON report").option("--base <ref>", "base git ref for files/changed/lines scope (auto-detected when omitted)").option("--include-untracked", "with --scope files/changed/lines, also scan ordinary untracked files (respects .gitignore)").addOption(new Option("--diff [base]", "[deprecated] alias for --scope changed (pass `false` to force a full scan)").hideHelp()).addOption(new Option("--changed-files-from <file>", "scan source files listed in a newline-delimited changed-files file").hideHelp()).option("--no-score", "skip the score API, the share URL, and crash reporting").addOption(new Option("--category <category>", "only show diagnostics in a category (repeatable; e.g. Security)").argParser(collectCategoryOption)).option("--no-telemetry", "alias for --no-score (skip the score API, share URL, and crash reporting)").option("--staged", "scan only staged (git index) files for pre-commit hooks (honors --project and config `projects`; exits 0 when nothing is staged)").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").addOption(new Option("--fail-on <level>", "[deprecated] alias for --blocking <level>").hideHelp()).option("--no-respect-inline-disables", "audit mode: neutralize inline lint suppressions before scanning").option("--warnings", "show warning-severity diagnostics (default)").option("--no-warnings", "hide warning-severity diagnostics (errors only)").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderRootHelpEpilog);
|
|
3562
3562
|
program.action(async (positionalPaths = [], flags) => {
|
|
3563
|
-
const { runScanCommand } = await import("./scan-
|
|
3563
|
+
const { runScanCommand } = await import("./scan-DTdtBCbo.js");
|
|
3564
3564
|
return runScanCommand({
|
|
3565
3565
|
...resolvePositionalScanInput(positionalPaths),
|
|
3566
3566
|
flags,
|
|
@@ -3568,75 +3568,75 @@ program.action(async (positionalPaths = [], flags) => {
|
|
|
3568
3568
|
});
|
|
3569
3569
|
});
|
|
3570
3570
|
program.command("design [directory]").description("Run only the focused UI design diagnostics").addHelpText("after", renderDesignHelpEpilog).action(async (directory, _options, command) => {
|
|
3571
|
-
const { designAction } = await import("./design-
|
|
3571
|
+
const { designAction } = await import("./design-NGMlUJw8.js");
|
|
3572
3572
|
return designAction(directory ?? ".", command.optsWithGlobals());
|
|
3573
3573
|
});
|
|
3574
3574
|
program.command("scan").description("Scan a React interaction in Chrome until you press Enter").argument("[url]", "HTTP(S) URL of the running React app; detects local apps when omitted").option("-f, --format <format>", "report format: text, json, or jsonl", "text").option("--cdp <url>", "reuse Chrome at this remote-debugging endpoint").option("--trace-out <path>", "save the compressed .json.gz DevTools trace at this path").addHelpText("after", renderRuntimeScanHelpEpilog).action(async (url, options) => {
|
|
3575
|
-
const { runtimeScanAction } = await import("./runtime-scan-
|
|
3575
|
+
const { runtimeScanAction } = await import("./runtime-scan-Dxruoh69.js");
|
|
3576
3576
|
return runtimeScanAction(url, options);
|
|
3577
3577
|
});
|
|
3578
3578
|
program.command("why <location>").description("Explain why a rule fired (or why a suppression didn't apply) at a file:line").option("--project <name>", "select projects: workspace names or directory paths (comma-separated for multiple)").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (location, options) => {
|
|
3579
|
-
const { whyAction } = await import("./why-
|
|
3579
|
+
const { whyAction } = await import("./why-qpHIO1XJ.js");
|
|
3580
3580
|
return whyAction(location, options);
|
|
3581
3581
|
});
|
|
3582
3582
|
program.command("install").alias("setup").description("Install the react-doctor skill into your coding agents and optional git hook").option("-y, --yes", "skip prompts, install for all detected agents").option("--dry-run", "show what would be installed without writing files").option("--agent-hooks", "install end-of-turn agent hooks for Claude Code and Cursor").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderInstallHelpEpilog).action(async (options, command) => {
|
|
3583
|
-
const { installAction } = await import("./install-
|
|
3583
|
+
const { installAction } = await import("./install-C9z3xbKW.js");
|
|
3584
3584
|
return installAction(options, command);
|
|
3585
3585
|
});
|
|
3586
3586
|
const providerOption = ["--provider <name>", "ci provider: github-actions or gitlab-ci (auto-detected by default)"];
|
|
3587
3587
|
const prOption = ["--pr", "open a pull request with the change instead of writing it to the working tree"];
|
|
3588
3588
|
const ci = program.command("ci").description("Set up, upgrade, and configure React Doctor in your CI");
|
|
3589
3589
|
ci.command("install").description("Add a CI workflow that scans every pull request").option(...providerOption).option(...prOption).option("--blocking <level>", "gate level: none (advisory, default), warning, or error").option("--scope <value>", "what a pull-request scan reports: changed (default), files, lines, full").option("--comment", "post a summary comment on each pull request").option("--no-comment", "don't post a summary comment").option("--review-comments", "add inline review comments on changed lines").option("--no-review-comments", "don't add inline review comments").option("--commit-status", "report a commit status with the health score").option("--no-commit-status", "don't report a commit status").option("-y, --yes", "skip prompts; use the defaults").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addHelpText("after", renderCiHelpEpilog).action(async (_options, command) => {
|
|
3590
|
-
const { ciInstallAction } = await import("./ci-
|
|
3590
|
+
const { ciInstallAction } = await import("./ci-BwPprgtv.js");
|
|
3591
3591
|
return ciInstallAction(command.optsWithGlobals());
|
|
3592
3592
|
});
|
|
3593
3593
|
ci.command("config").description("Change the gate, scan scope, and pull-request reporting").option(...providerOption).option("--blocking <level>", "gate level: none (advisory), warning, or error").option("--scope <value>", "what a pull-request scan reports: changed, files, lines, or full").option("--comment", "post a summary comment on each pull request").option("--no-comment", "don't post a summary comment").option("--review-comments", "add inline review comments on changed lines").option("--no-review-comments", "don't add inline review comments").option("--commit-status", "report a commit status with the health score").option("--no-commit-status", "don't report a commit status").option("-y, --yes", "skip prompts; print the current settings").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (_options, command) => {
|
|
3594
|
-
const { ciConfigAction } = await import("./ci-
|
|
3594
|
+
const { ciConfigAction } = await import("./ci-BwPprgtv.js");
|
|
3595
3595
|
return ciConfigAction(command.optsWithGlobals());
|
|
3596
3596
|
});
|
|
3597
3597
|
ci.command("upgrade").description("Upgrade the CI workflow to the action's current major").option(...providerOption).option(...prOption).option("-y, --yes", "skip prompts").option("-c, --cwd <cwd>", "working directory", process.cwd()).option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async (_options, command) => {
|
|
3598
|
-
const { ciUpgradeAction } = await import("./ci-
|
|
3598
|
+
const { ciUpgradeAction } = await import("./ci-BwPprgtv.js");
|
|
3599
3599
|
return ciUpgradeAction(command.optsWithGlobals());
|
|
3600
3600
|
});
|
|
3601
3601
|
program.command("version").description("show the version with Node and platform info").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").action(async () => {
|
|
3602
|
-
const { versionAction } = await import("./version-
|
|
3602
|
+
const { versionAction } = await import("./version-DRCfjrnM.js");
|
|
3603
3603
|
return versionAction();
|
|
3604
3604
|
});
|
|
3605
3605
|
const rules = program.command("rules").description("List, explain, and configure which React Doctor rules run");
|
|
3606
3606
|
rules.command("list").description("List rules and the severity they run at under your config").option("--category <name>", "only show rules in a category (e.g. Performance)").option("--tag <name>", "only show rules with a tag (e.g. design, test-noise)").option("--framework <name>", "only show rules for a framework (e.g. global, nextjs)").option("--configured", "only show rules your config has changed from the default").option("--json", "output a structured JSON array").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (_options, command) => {
|
|
3607
|
-
const { rulesListAction } = await import("./rules-
|
|
3607
|
+
const { rulesListAction } = await import("./rules-FGhjacgJ.js");
|
|
3608
3608
|
return rulesListAction(command.optsWithGlobals());
|
|
3609
3609
|
});
|
|
3610
3610
|
rules.command("explain <rule>").description("Explain why a rule matters, its current severity, and how to configure it").option("--json", "output a structured JSON object").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
|
|
3611
|
-
const { rulesExplainAction } = await import("./rules-
|
|
3611
|
+
const { rulesExplainAction } = await import("./rules-FGhjacgJ.js");
|
|
3612
3612
|
return rulesExplainAction(rule, command.optsWithGlobals());
|
|
3613
3613
|
});
|
|
3614
3614
|
rules.command("set <rule> <severity>").description("Set a rule's severity: off, warn, or error").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, severity, _options, command) => {
|
|
3615
|
-
const { rulesSetAction } = await import("./rules-
|
|
3615
|
+
const { rulesSetAction } = await import("./rules-FGhjacgJ.js");
|
|
3616
3616
|
return rulesSetAction(rule, severity, command.optsWithGlobals());
|
|
3617
3617
|
});
|
|
3618
3618
|
rules.command("enable <rule>").description("Enable a rule at its recommended severity (or pass --severity)").option("--severity <level>", "severity to enable at: warn or error").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
|
|
3619
|
-
const { rulesEnableAction } = await import("./rules-
|
|
3619
|
+
const { rulesEnableAction } = await import("./rules-FGhjacgJ.js");
|
|
3620
3620
|
return rulesEnableAction(rule, command.optsWithGlobals());
|
|
3621
3621
|
});
|
|
3622
3622
|
rules.command("disable <rule>").description("Disable a rule so it never runs").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (rule, _options, command) => {
|
|
3623
|
-
const { rulesDisableAction } = await import("./rules-
|
|
3623
|
+
const { rulesDisableAction } = await import("./rules-FGhjacgJ.js");
|
|
3624
3624
|
return rulesDisableAction(rule, command.optsWithGlobals());
|
|
3625
3625
|
});
|
|
3626
3626
|
rules.command("category <category> <severity>").description("Set the severity for a whole category (off, warn, error)").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (category, severity, _options, command) => {
|
|
3627
|
-
const { rulesCategoryAction } = await import("./rules-
|
|
3627
|
+
const { rulesCategoryAction } = await import("./rules-FGhjacgJ.js");
|
|
3628
3628
|
return rulesCategoryAction(category, severity, command.optsWithGlobals());
|
|
3629
3629
|
});
|
|
3630
3630
|
rules.command("ignore-tag <tag>").description("Skip a whole rule family by tag before linting (e.g. design)").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (tag, _options, command) => {
|
|
3631
|
-
const { rulesIgnoreTagAction } = await import("./rules-
|
|
3631
|
+
const { rulesIgnoreTagAction } = await import("./rules-FGhjacgJ.js");
|
|
3632
3632
|
return rulesIgnoreTagAction(tag, command.optsWithGlobals());
|
|
3633
3633
|
});
|
|
3634
3634
|
rules.command("unignore-tag <tag>").description("Stop ignoring a tag previously skipped via ignore-tag").option("-c, --cwd <cwd>", "working directory", process.cwd()).action(async (tag, _options, command) => {
|
|
3635
|
-
const { rulesUnignoreTagAction } = await import("./rules-
|
|
3635
|
+
const { rulesUnignoreTagAction } = await import("./rules-FGhjacgJ.js");
|
|
3636
3636
|
return rulesUnignoreTagAction(tag, command.optsWithGlobals());
|
|
3637
3637
|
});
|
|
3638
3638
|
program.command("experimental-tui [directory]", { hidden: true }).description("[experimental] interactive, scrollable scan report").option("--blocking <level>", "severity that fails CI: error (default), warning, or none (advisory)").option("--color", "force colored output").option("--no-color", "disable colored output (also honors NO_COLOR)").addOption(new Option("--no-dead-code").hideHelp()).option("--no-supply-chain", "skip the dependency supply-chain scan").option("--score", "only print the numeric score (for scripts and CI)").option("--no-score", "skip the score API, the share URL, and crash reporting").option("--no-cache", "disable all scan caches for this run").option("--max-duration <seconds>", MAX_DURATION_OPTION_DESCRIPTION).option("-p, --project <names>", "scan specific workspace projects (comma-separated, or *)").option("-y, --yes", "skip the project prompt and scan every discovered project").action(async (directory = ".", _localOptions, command) => {
|
|
3639
|
-
const { runScanCommand } = await import("./scan-
|
|
3639
|
+
const { runScanCommand } = await import("./scan-DTdtBCbo.js");
|
|
3640
3640
|
return runScanCommand({
|
|
3641
3641
|
directory,
|
|
3642
3642
|
flags: command.optsWithGlobals(),
|
|
@@ -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 { t as inspectAction } from "./inspect-
|
|
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]="acc3a6f9-92d4-5f5c-bc77-b563f29a6570")}catch(e){}}();
|
|
3
|
+
import { t as inspectAction } from "./inspect-D3UYRxCv.js";
|
|
4
4
|
//#region src/cli/commands/design.ts
|
|
5
5
|
const designAction = async (directory, flags) => inspectAction(directory, {
|
|
6
6
|
...flags,
|
|
@@ -10,5 +10,5 @@ const designAction = async (directory, flags) => inspectAction(directory, {
|
|
|
10
10
|
//#endregion
|
|
11
11
|
export { designAction };
|
|
12
12
|
|
|
13
|
-
//# sourceMappingURL=design-
|
|
14
|
-
//# debugId=
|
|
13
|
+
//# sourceMappingURL=design-NGMlUJw8.js.map
|
|
14
|
+
//# debugId=acc3a6f9-92d4-5f5c-bc77-b563f29a6570
|
|
@@ -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 { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-
|
|
4
|
-
import { n as shutdownTelemetry, r as flushSentry } 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]="fc9b574a-06e4-57bd-97b6-4dd2e4567a06")}catch(e){}}();
|
|
3
|
+
import { d as isJsonModeActive, m as writeJsonCancellationReport } from "./record-metric-B8b4bjaB.js";
|
|
4
|
+
import { n as shutdownTelemetry, r as flushSentry } from "./telemetry-runtime-B5ReQ28o.js";
|
|
5
5
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
6
|
-
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-
|
|
6
|
+
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-SaQnctqK.js";
|
|
7
7
|
//#region src/cli/utils/active-tui-renderer.ts
|
|
8
8
|
let activeTuiRenderer = null;
|
|
9
9
|
const registerActiveTuiRenderer = (renderer) => {
|
|
@@ -50,5 +50,5 @@ const exitGracefully = () => {
|
|
|
50
50
|
//#endregion
|
|
51
51
|
export { registerActiveTuiRenderer as n, exitGracefully as t };
|
|
52
52
|
|
|
53
|
-
//# sourceMappingURL=exit-gracefully-
|
|
54
|
-
//# debugId=
|
|
53
|
+
//# sourceMappingURL=exit-gracefully-IqbKl0nj.js.map
|
|
54
|
+
//# debugId=fc9b574a-06e4-57bd-97b6-4dd2e4567a06
|
|
@@ -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]="c7811196-c7a8-55dc-b81a-cd9e94a16e29")}catch(e){}}();
|
|
3
3
|
import { ct as CANONICAL_DISCORD_URL, lt as CANONICAL_GITHUB_URL, u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { At as highlighter, Cn as runSync, Nt as isReactDoctorError, Vn as isErrnoException, _ as VERSION, mn as gen, on as error, t as recordCount, vt as formatErrorChain, yt as formatReactDoctorError } from "./record-metric-
|
|
5
|
-
import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-
|
|
4
|
+
import { At as highlighter, Cn as runSync, Nt as isReactDoctorError, Vn as isErrnoException, _ as VERSION, mn as gen, on as error, t as recordCount, vt as formatErrorChain, yt as formatReactDoctorError } from "./record-metric-B8b4bjaB.js";
|
|
5
|
+
import { c as isNpmCacheCorruptionError, l as formatEnvironmentError, s as formatNpmCacheCorruptionError, u as isEnvironmentError } from "./telemetry-runtime-B5ReQ28o.js";
|
|
6
6
|
//#region src/cli/utils/handle-error.ts
|
|
7
7
|
const OTLP_ENDPOINT_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_ENDPOINT";
|
|
8
8
|
const OTLP_AUTH_HEADER_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_AUTH_HEADER";
|
|
@@ -111,5 +111,5 @@ const handleUserError = (error$1, options = {}) => {
|
|
|
111
111
|
//#endregion
|
|
112
112
|
export { handleUserError as n, handleError as t };
|
|
113
113
|
|
|
114
|
-
//# sourceMappingURL=handle-error-
|
|
115
|
-
//# debugId=
|
|
114
|
+
//# sourceMappingURL=handle-error-BxDfT80U.js.map
|
|
115
|
+
//# debugId=c7811196-c7a8-55dc-b81a-cd9e94a16e29
|
|
@@ -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]="
|
|
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]="199cd9aa-54a6-5a5b-9c59-07a5a7035077")}catch(e){}}();
|
|
3
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-DHn5rUeg.js";
|
|
4
|
-
import { At as highlighter, Ct as getDiffInfo, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Gt as remainingDeadlineBudgetMs, Jt as resolveScanTarget, K as StagedFiles, Ot as hasSupportedFrameworkOrLibrary, Rn as messageFromUnknown, S as isDebugFlagEnabled, Sn as runPromise, Un as isPlainObject, Vn as isErrnoException, Vt as mapWithConcurrency, Z as buildJsonReport, _ as VERSION, bt as getBaselineDiffPlan, dn as JsonReport, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as decodeUnknownSync, ft as discoverSupportedSubprojects, g as writeJsonReport, gt as findLegacyConfig, h as writeJsonErrorReport, j as Git, kn as provide, mn as gen, n as recordDistribution, p as setJsonReportMode, t as recordCount, tn as toRelativePath, u as enableJsonMode, xt as getChangedLineRanges, y as CliInputError, yn as provide$1, zt as listWorkspacePackages } 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-
|
|
4
|
+
import { At as highlighter, Ct as getDiffInfo, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Gt as remainingDeadlineBudgetMs, Jt as resolveScanTarget, K as StagedFiles, Ot as hasSupportedFrameworkOrLibrary, Rn as messageFromUnknown, S as isDebugFlagEnabled, Sn as runPromise, Un as isPlainObject, Vn as isErrnoException, Vt as mapWithConcurrency, Z as buildJsonReport, _ as VERSION, bt as getBaselineDiffPlan, dn as JsonReport, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as decodeUnknownSync, ft as discoverSupportedSubprojects, g as writeJsonReport, gt as findLegacyConfig, h as writeJsonErrorReport, j as Git, kn as provide, mn as gen, n as recordDistribution, p as setJsonReportMode, t as recordCount, tn as toRelativePath, u as enableJsonMode, xt as getChangedLineRanges, y as CliInputError, yn as provide$1, zt as listWorkspacePackages } from "./record-metric-B8b4bjaB.js";
|
|
5
|
+
import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-B5ReQ28o.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-BxDfT80U.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-5G1BJCWR.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 shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./should-fail-scan-gate-
|
|
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-BttpccU2.js";
|
|
10
|
+
import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-C7aU2_nG.js";
|
|
11
|
+
import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-IL1MWTU6.js";
|
|
12
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-DNkwhWow.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 shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./should-fail-scan-gate-_gmz0don.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-BbAqdyMA.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-g717jJGn.js";
|
|
16
|
+
import { t as readObjectFile } from "./read-object-file-CBoKpfyS.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";
|
|
@@ -1520,5 +1520,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
|
|
|
1520
1520
|
//#endregion
|
|
1521
1521
|
export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
|
|
1522
1522
|
|
|
1523
|
-
//# sourceMappingURL=inspect-
|
|
1524
|
-
//# debugId=
|
|
1523
|
+
//# sourceMappingURL=inspect-D3UYRxCv.js.map
|
|
1524
|
+
//# debugId=199cd9aa-54a6-5a5b-9c59-07a5a7035077
|
|
@@ -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]="
|
|
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]="008e633c-68ba-51e4-ab1e-628d68f31d74")}catch(e){}}();
|
|
3
3
|
import { u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { Cn 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-
|
|
4
|
+
import { Cn as runSync, t as recordCount } from "./record-metric-B8b4bjaB.js";
|
|
5
|
+
import { o as isExpectedUserError } from "./telemetry-runtime-B5ReQ28o.js";
|
|
6
|
+
import { n as handleUserError, t as handleError } from "./handle-error-BxDfT80U.js";
|
|
7
|
+
import { t as reportErrorToSentry } from "./report-error-5G1BJCWR.js";
|
|
8
|
+
import { t as printBrandedHeader } from "./print-branded-header-WMTAFewk.js";
|
|
9
|
+
import { n as runInstallReactDoctor } from "./install-react-doctor-g717jJGn.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-C9z3xbKW.js.map
|
|
34
|
+
//# debugId=008e633c-68ba-51e4-ab1e-628d68f31d74
|
|
@@ -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]="768ac3e6-2975-554f-9bbf-2fce2f5272d8")}catch(e){}}();
|
|
3
3
|
import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { At as highlighter, Cn as runSync, b as isNonInteractiveEnvironment, cn as log, ln as warn, on as error$1, sn as info$1 } from "./record-metric-
|
|
4
|
+
import { At as highlighter, Cn as runSync, b as isNonInteractiveEnvironment, cn as log, ln as warn, on as error$1, sn as info$1 } from "./record-metric-B8b4bjaB.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";
|
|
@@ -2814,5 +2814,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
|
|
|
2814
2814
|
//#endregion
|
|
2815
2815
|
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
2816
|
|
|
2817
|
-
//# sourceMappingURL=install-doctor-script-
|
|
2818
|
-
//# debugId=
|
|
2817
|
+
//# sourceMappingURL=install-doctor-script-BttpccU2.js.map
|
|
2818
|
+
//# debugId=768ac3e6-2975-554f-9bbf-2fce2f5272d8
|
|
@@ -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]="060a54ee-8ff6-575c-be95-4a0e09594870")}catch(e){}}();
|
|
3
3
|
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-DHn5rUeg.js";
|
|
4
4
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
5
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
5
|
+
import { N as cliLogger } from "./install-doctor-script-BttpccU2.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as fs$1 from "node:fs";
|
|
8
8
|
import * as path$1 from "node:path";
|
|
@@ -267,5 +267,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
|
|
|
267
267
|
//#endregion
|
|
268
268
|
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
269
|
|
|
270
|
-
//# sourceMappingURL=install-github-workflow-
|
|
271
|
-
//# debugId=
|
|
270
|
+
//# sourceMappingURL=install-github-workflow-C7aU2_nG.js.map
|
|
271
|
+
//# debugId=060a54ee-8ff6-575c-be95-4a0e09594870
|
|
@@ -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]="
|
|
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]="4a50cee5-cb51-5af1-b739-7c9fd279b35f")}catch(e){}}();
|
|
3
3
|
import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { At as highlighter, Vn 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-
|
|
4
|
+
import { At as highlighter, Vn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-B8b4bjaB.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-BttpccU2.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-C7aU2_nG.js";
|
|
7
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-DNkwhWow.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-BbAqdyMA.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-g717jJGn.js.map
|
|
1160
|
+
//# debugId=4a50cee5-cb51-5af1-b739-7c9fd279b35f
|
|
@@ -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]="79f8de38-764a-5067-9052-27441abefe66")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { u as METRIC } from "./constants-DHn5rUeg.js";
|
|
5
|
-
import { t as recordCount } from "./record-metric-
|
|
6
|
-
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-
|
|
5
|
+
import { t as recordCount } from "./record-metric-B8b4bjaB.js";
|
|
6
|
+
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-IqbKl0nj.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-BNEp1f1-.js.map
|
|
25874
|
+
//# debugId=79f8de38-764a-5067-9052-27441abefe66
|
|
@@ -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 { At as highlighter, _ as VERSION, cn as log, mn as gen } 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]="5e7a79a2-96c7-5477-a11e-d37aa6527f06")}catch(e){}}();
|
|
3
|
+
import { At as highlighter, _ as VERSION, cn as log, mn as gen } from "./record-metric-B8b4bjaB.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-WMTAFewk.js.map
|
|
22
|
+
//# debugId=5e7a79a2-96c7-5477-a11e-d37aa6527f06
|
|
@@ -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]="85b02fb7-dfa3-5ba7-aa31-79d15eb90608")}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-BQNu-U4v.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-BNEp1f1-.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-BQ8Mxd5i.js.map
|
|
240
|
+
//# debugId=85b02fb7-dfa3-5ba7-aa31-79d15eb90608
|
|
@@ -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 { Un 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]="541b791f-2789-5327-b09b-d16a80155d17")}catch(e){}}();
|
|
3
|
+
import { Un as isPlainObject } from "./record-metric-B8b4bjaB.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-CBoKpfyS.js.map
|
|
24
|
+
//# debugId=541b791f-2789-5327-b09b-d16a80155d17
|
|
@@ -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]="5d604829-92fd-587b-832d-b6d7819c7af3")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
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-DHn5rUeg.js";
|
|
5
5
|
import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
|
|
@@ -77094,7 +77094,7 @@ const makeNoopConsole = () => ({
|
|
|
77094
77094
|
});
|
|
77095
77095
|
//#endregion
|
|
77096
77096
|
//#region src/cli/utils/version.ts
|
|
77097
|
-
const VERSION = "0.9.17-dev.
|
|
77097
|
+
const VERSION = "0.9.17-dev.888dc2a";
|
|
77098
77098
|
//#endregion
|
|
77099
77099
|
//#region src/cli/utils/json-mode.ts
|
|
77100
77100
|
let context = null;
|
|
@@ -77438,5 +77438,5 @@ const recordDistribution = (name, value, options = {}) => {
|
|
|
77438
77438
|
//#endregion
|
|
77439
77439
|
export { buildRuleSeverityControls as $, shouldUseMaintainabilityLayer as $t, Files as A, succeed$3 as An, highlighter as At, PerFileLintCacheEnabled as B, isDirectory as Bn, loadConfigWithSource as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, runSync as Cn, getDiffInfo as Ct, isCodingAgentEnvironment as D, buildWithScope as Dn, hasPublishedFixRecipe as Dt, isCiOrCodingAgentEnvironment as E, void_ as En, groupBy as Et, Linter as F, ParentSpan as Fn, isScanComplete as Ft, SidecarLintCacheEnabled as G, remainingDeadlineBudgetMs as Gt, Project as H, isFile as Hn, materializeSourceTree as Ht, Maintainability as I, isMonorepoRoot as In, layerObservability as It, anonymizeInPlace as J, resolveScanTarget as Jt, StagedFiles as K, resolveGithubActionsScoreMetadata as Kt, NodeResolver as L, yieldToEventLoop as Ln, listSourceFiles as Lt, InvocationCaches as M, makeUnsafe$5 as Mn, isProjectDiscoveryError as Mt, LEGACY_CONFIG_FILENAME as N, fail$5 as Nn, isReactDoctorError as Nt, Config as O, mergeAll$1 as On, hasSupportedFrameworkOrLibrary as Ot, LintPartialFailures as P, void_$1 as Pn, isSameRuleKey as Pt, buildRuleDocsUrl as Q, setColorEnabled as Qt, OxlintConcurrency as R, messageFromUnknown as Rn, listSourceFilesCooperative as Rt, isDebugFlagEnabled as S, runPromise as Sn, getDiagnosticRuleIdentity as St, isCiEnvironment as T, try_ as Tn, getRuleMetadata as Tt, Reporter as U, isPlainObject as Un, mergeAndFilterDiagnostics as Ut, Progress as V, isErrnoException as Vn, mapWithConcurrency as Vt, Score as W, mergeReactDoctorConfigs as Wt, atomicWriteJson as X, runInspect as Xt, anonymizeText as Y, restoreLegacyThrow as Yt, buildJsonReport as Z, scrubSensitivePaths as Zt, VERSION as _, orElseSucceed as _n, fingerprintDiagnosticEvidence as _t, isEnvFlagEnabled as a, Console as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, provideContext as bn, getBaselineDiffPlan as bt, setSentryProjectInfo as c, log as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, JsonReport as dn, detectAiTrainingEnvironment as dt, summarizeDiagnostics as en, buildSkippedChecks as et, setJsonReportDirectory as f, decodeUnknownSync as fn, discoverSupportedSubprojects as ft, writeJsonReport as g, map$3 as gn, findLegacyConfig as gt, writeJsonErrorReport as h, makeSpan$1 as hn, filterSourceFiles as ht, isTelemetryEnabled as i, warmOxlintWorkerPool as in, clearConfigCache as it, Git as j, close as jn, isPathInsideDirectory as jt, DIAGNOSTIC_DELTA_IDENTITY as k, provide$2 as kn, hashFileContents as kt, getRunId as l, warn$1 as ln, createInvocationCaches as lt, writeJsonCancellationReport as m, gen as mn, filterPathsOutsideDirectories as mt, recordDistribution as n, validateConfigTypes as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, error as on, computeConfigFingerprint as ot, setJsonReportMode as p, make$30 as pn, filterDiagnosticsForSurface as pt, SupplyChain as q, resolveLintBatchOrdering as qt, toSpanAttributes as r, warmDuplicateJsxWorker as rn, classifyFileContext as rt, buildSentryProjectContext as s, info as sn, computeDiagnosticDelta as st, recordCount as t, toRelativePath as tn, calculateScore as tt, enableJsonMode as u, Diagnostic as un, createOxlintSpawnSlots as ut, makeNoopConsole as v, promise as vn, formatErrorChain as vt, detectRunnerOs as w, sync as wn, getEquivalentRuleKeys as wt, isGitHookEnvironment as x, provideService as xn, getChangedLineRanges as xt, CliInputError as y, provide as yn, formatReactDoctorError as yt, OxlintSpawnSlots as z, toCanonicalPath as zn, listWorkspacePackages as zt };
|
|
77440
77440
|
|
|
77441
|
-
//# sourceMappingURL=record-metric-
|
|
77442
|
-
//# debugId=
|
|
77441
|
+
//# sourceMappingURL=record-metric-B8b4bjaB.js.map
|
|
77442
|
+
//# debugId=5d604829-92fd-587b-832d-b6d7819c7af3
|
|
@@ -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]="e197ba9d-4bad-5be3-aedc-3d27b8e448a0")}catch(e){}}();
|
|
3
3
|
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { Nt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-
|
|
5
|
-
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-
|
|
4
|
+
import { Nt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-B8b4bjaB.js";
|
|
5
|
+
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-B5ReQ28o.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-5G1BJCWR.js.map
|
|
65
|
+
//# debugId=e197ba9d-4bad-5be3-aedc-3d27b8e448a0
|
|
@@ -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]="3fbf585a-d342-5cdf-b5a4-0cc551cc4351")}catch(e){}}();
|
|
3
3
|
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { t as recordCount } from "./record-metric-
|
|
5
|
-
import { u as isCommandAvailable } from "./install-github-workflow-
|
|
4
|
+
import { t as recordCount } from "./record-metric-B8b4bjaB.js";
|
|
5
|
+
import { u as isCommandAvailable } from "./install-github-workflow-C7aU2_nG.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";
|
|
@@ -288,5 +288,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
|
|
|
288
288
|
//#endregion
|
|
289
289
|
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
290
|
|
|
291
|
-
//# sourceMappingURL=report-workflow-result-
|
|
292
|
-
//# debugId=
|
|
291
|
+
//# sourceMappingURL=report-workflow-result-BbAqdyMA.js.map
|
|
292
|
+
//# debugId=3fbf585a-d342-5cdf-b5a4-0cc551cc4351
|
|
@@ -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 { ht as filterSourceFiles, jt as isPathInsideDirectory, zn as toCanonicalPath } 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]="e2b06ccc-6991-52f6-8e32-a1d0c40b964f")}catch(e){}}();
|
|
3
|
+
import { ht as filterSourceFiles, jt as isPathInsideDirectory, zn as toCanonicalPath } from "./record-metric-B8b4bjaB.js";
|
|
4
4
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
5
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
6
|
-
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-
|
|
5
|
+
import { N as cliLogger } from "./install-doctor-script-BttpccU2.js";
|
|
6
|
+
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-C7aU2_nG.js";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
//#region src/cli/utils/open-workflow-pull-request.ts
|
|
9
9
|
const NEW_BRANCH_PREFIX = "react-doctor/add-github-actions";
|
|
@@ -333,5 +333,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
|
|
|
333
333
|
//#endregion
|
|
334
334
|
export { isValidBlockingLevel as a, openWorkflowPullRequest as c, warnDeprecatedDiff as i, stageWorkflowFile as l, isScopeValue as n, pickBlockingLevel as o, resolveScope as r, resolveBlockingLevel as s, finalizeScope as t };
|
|
335
335
|
|
|
336
|
-
//# sourceMappingURL=resolve-scope-
|
|
337
|
-
//# debugId=
|
|
336
|
+
//# sourceMappingURL=resolve-scope-IL1MWTU6.js.map
|
|
337
|
+
//# debugId=e2b06ccc-6991-52f6-8e32-a1d0c40b964f
|
|
@@ -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]="817045aa-b230-5cca-93cf-14cffa39f58a")}catch(e){}}();
|
|
3
3
|
import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { At as highlighter, Bt as loadConfigWithSource, Pt as isSameRuleKey, Q as buildRuleDocsUrl, Un as isPlainObject, it as clearConfigCache, nn as validateConfigTypes, t as recordCount, wt as getEquivalentRuleKeys } from "./record-metric-
|
|
5
|
-
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
6
|
-
import { t as readObjectFile } from "./read-object-file-
|
|
4
|
+
import { At as highlighter, Bt as loadConfigWithSource, Pt as isSameRuleKey, Q as buildRuleDocsUrl, Un as isPlainObject, it as clearConfigCache, nn as validateConfigTypes, t as recordCount, wt as getEquivalentRuleKeys } from "./record-metric-B8b4bjaB.js";
|
|
5
|
+
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BttpccU2.js";
|
|
6
|
+
import { t as readObjectFile } from "./read-object-file-CBoKpfyS.js";
|
|
7
7
|
import * as fs$1 from "node:fs";
|
|
8
8
|
import * as path$1 from "node:path";
|
|
9
9
|
import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
|
|
@@ -578,5 +578,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
|
|
|
578
578
|
//#endregion
|
|
579
579
|
export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
|
|
580
580
|
|
|
581
|
-
//# sourceMappingURL=rules-
|
|
582
|
-
//# debugId=
|
|
581
|
+
//# sourceMappingURL=rules-FGhjacgJ.js.map
|
|
582
|
+
//# debugId=817045aa-b230-5cca-93cf-14cffa39f58a
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
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]="ee443751-46b4-5048-b1f1-da6f1f7d8adf")}catch(e){}}();
|
|
3
3
|
import { D as TUI_REPORT_COMPACT_MAX_ROWS, In as getCategoryImpact, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, _t as DIAGNOSTIC_CATEGORY_BUCKETS, kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { An as succeed, At as highlighter, Ct as getDiffInfo, Dt as hasPublishedFixRecipe, En as void_, Gt as remainingDeadlineBudgetMs, Jt as resolveScanTarget, Ln as yieldToEventLoop, Q as buildRuleDocsUrl, Sn as runPromise, T as isCiEnvironment, U as Reporter, V as Progress, Vt as mapWithConcurrency, bt as getBaselineDiffPlan, n as recordDistribution, t as recordCount, tt as calculateScore, wn as sync, x as isGitHookEnvironment, xt as getChangedLineRanges } from "./record-metric-
|
|
4
|
+
import { An as succeed, At as highlighter, Ct as getDiffInfo, Dt as hasPublishedFixRecipe, En as void_, Gt as remainingDeadlineBudgetMs, Jt as resolveScanTarget, Ln as yieldToEventLoop, Q as buildRuleDocsUrl, Sn as runPromise, T as isCiEnvironment, U as Reporter, V as Progress, Vt as mapWithConcurrency, bt as getBaselineDiffPlan, n as recordDistribution, t as recordCount, tt as calculateScore, wn as sync, x as isGitHookEnvironment, xt as getChangedLineRanges } from "./record-metric-B8b4bjaB.js";
|
|
5
5
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
6
|
-
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
7
|
-
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-
|
|
8
|
-
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-
|
|
9
|
-
import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./should-fail-scan-gate-
|
|
10
|
-
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-
|
|
11
|
-
import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-
|
|
6
|
+
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BttpccU2.js";
|
|
7
|
+
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-C7aU2_nG.js";
|
|
8
|
+
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-IL1MWTU6.js";
|
|
9
|
+
import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./should-fail-scan-gate-_gmz0don.js";
|
|
10
|
+
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-BbAqdyMA.js";
|
|
11
|
+
import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-BNEp1f1-.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { performance } from "node:perf_hooks";
|
|
14
14
|
import isUnicodeSupported from "is-unicode-supported";
|
|
@@ -2514,5 +2514,5 @@ const runScanApp = async (input) => {
|
|
|
2514
2514
|
//#endregion
|
|
2515
2515
|
export { runScanApp };
|
|
2516
2516
|
|
|
2517
|
-
//# sourceMappingURL=run-scan-app-
|
|
2518
|
-
//# debugId=
|
|
2517
|
+
//# sourceMappingURL=run-scan-app-Th0DEjyF.js.map
|
|
2518
|
+
//# debugId=ee443751-46b4-5048-b1f1-da6f1f7d8adf
|
|
@@ -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]="
|
|
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]="5ae15a6f-a4cf-54da-b0c1-2cfcb0269d4b")}catch(e){}}();
|
|
3
3
|
import { u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { At as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-
|
|
4
|
+
import { At as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-B8b4bjaB.js";
|
|
5
5
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
6
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
7
|
-
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-
|
|
8
|
-
import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-
|
|
9
|
-
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-
|
|
6
|
+
import { t as reportErrorToSentry } from "./report-error-5G1BJCWR.js";
|
|
7
|
+
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-B072XQSZ.js";
|
|
8
|
+
import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-BQNu-U4v.js";
|
|
9
|
+
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-laB7MG1v.js";
|
|
10
10
|
import * as fs$1 from "node:fs";
|
|
11
11
|
import * as path$1 from "node:path";
|
|
12
12
|
import * as os$1 from "node:os";
|
|
@@ -720,7 +720,7 @@ const resolveRuntimeScanUrl = async (url) => {
|
|
|
720
720
|
if (url !== void 0) return url;
|
|
721
721
|
if (!isTuiEnvironmentSupported(resolveTuiEnvironment(process.stderr.isTTY === true))) throw new CliInputError("A URL is required outside an interactive terminal. Run `react-doctor scan <url>`.");
|
|
722
722
|
recordCount(METRIC.runtimeScanUrlPromptShown);
|
|
723
|
-
const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-
|
|
723
|
+
const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-BQ8Mxd5i.js");
|
|
724
724
|
return promptRuntimeScanUrl();
|
|
725
725
|
};
|
|
726
726
|
const runtimeScanAction = async (url, flags) => {
|
|
@@ -767,5 +767,5 @@ const runtimeScanAction = async (url, flags) => {
|
|
|
767
767
|
//#endregion
|
|
768
768
|
export { runtimeScanAction };
|
|
769
769
|
|
|
770
|
-
//# sourceMappingURL=runtime-scan-
|
|
771
|
-
//# debugId=
|
|
770
|
+
//# sourceMappingURL=runtime-scan-Dxruoh69.js.map
|
|
771
|
+
//# debugId=5ae15a6f-a4cf-54da-b0c1-2cfcb0269d4b
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { y as CliInputError } from "./record-metric-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5d892c40-84f2-52aa-84b6-36eb89a32959")}catch(e){}}();
|
|
3
|
+
import { y as CliInputError } from "./record-metric-B8b4bjaB.js";
|
|
4
4
|
//#region src/cli/runtime-scan/constants.ts
|
|
5
5
|
const RUNTIME_SCAN_MAX_COMPONENT_EVENTS = 2e3;
|
|
6
6
|
const RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES = 5 * 1024 * 1024;
|
|
@@ -72,5 +72,5 @@ const sanitizeRuntimeUrl = (rawUrl) => {
|
|
|
72
72
|
//#endregion
|
|
73
73
|
export { RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS as _, RUNTIME_SCAN_LOCAL_DEV_PORTS as a, RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS as b, RUNTIME_SCAN_MAX_SNAPSHOT_BYTES as c, RUNTIME_SCAN_MAX_TRACE_BYTES as d, RUNTIME_SCAN_PROBE_RELATIVE_PATH as f, RUNTIME_SCAN_SAFE_CDP_PAGE_URLS as g, RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER as h, RUNTIME_SCAN_LAYOUT_THRASH_RATIO as i, RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES as l, RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER as m, RUNTIME_SCAN_BROWSER_WIDTH_PX as n, RUNTIME_SCAN_MAX_COMPONENT_EVENTS as o, RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER as p, RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN as r, RUNTIME_SCAN_MAX_RECORDING_DURATION_MS as s, sanitizeRuntimeUrl as t, RUNTIME_SCAN_MAX_STRING_LENGTH as u, RUNTIME_SCAN_TRACE_CATEGORIES as v, RUNTIME_SCAN_TRACE_FILE_EXTENSION as y };
|
|
74
74
|
|
|
75
|
-
//# sourceMappingURL=sanitize-runtime-url-
|
|
76
|
-
//# debugId=
|
|
75
|
+
//# sourceMappingURL=sanitize-runtime-url-BQNu-U4v.js.map
|
|
76
|
+
//# debugId=5d892c40-84f2-52aa-84b6-36eb89a32959
|
|
@@ -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]="
|
|
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]="e0b297d3-3dbf-541f-9de4-f4a6d9cec024")}catch(e){}}();
|
|
3
3
|
import { u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { Jt as resolveScanTarget, t as recordCount } from "./record-metric-
|
|
5
|
-
import { i as warnDeprecatedDiff } from "./resolve-scope-
|
|
6
|
-
import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-
|
|
7
|
-
import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-
|
|
8
|
-
import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-
|
|
4
|
+
import { Jt as resolveScanTarget, t as recordCount } from "./record-metric-B8b4bjaB.js";
|
|
5
|
+
import { i as warnDeprecatedDiff } from "./resolve-scope-IL1MWTU6.js";
|
|
6
|
+
import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-D3UYRxCv.js";
|
|
7
|
+
import { a as validateModeFlags, r as validateFilePathSelectionFlags, y as resolveCliInspectOptions } from "./should-fail-scan-gate-_gmz0don.js";
|
|
8
|
+
import { n as shouldUseTui, r as resolveTuiEnvironment } from "./should-use-tui-laB7MG1v.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
//#region src/cli/commands/scan.ts
|
|
11
11
|
const runScanCommand = async (input) => {
|
|
@@ -29,7 +29,7 @@ const runScanCommand = async (input) => {
|
|
|
29
29
|
warnDeprecatedFailOn(input.flags, scanTarget.userConfig);
|
|
30
30
|
warnDeprecatedDiff(input.flags, scanTarget.userConfig);
|
|
31
31
|
recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
|
|
32
|
-
const { runScanApp } = await import("./run-scan-app-
|
|
32
|
+
const { runScanApp } = await import("./run-scan-app-Th0DEjyF.js");
|
|
33
33
|
const { shouldFail } = await runScanApp({
|
|
34
34
|
directory: input.directory,
|
|
35
35
|
scanTarget,
|
|
@@ -44,5 +44,5 @@ const runScanCommand = async (input) => {
|
|
|
44
44
|
//#endregion
|
|
45
45
|
export { runScanCommand };
|
|
46
46
|
|
|
47
|
-
//# sourceMappingURL=scan-
|
|
48
|
-
//# debugId=
|
|
47
|
+
//# sourceMappingURL=scan-DTdtBCbo.js.map
|
|
48
|
+
//# debugId=e0b297d3-3dbf-541f-9de4-f4a6d9cec024
|
|
@@ -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]="
|
|
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]="b19c172b-f1b2-5e65-a8fe-9f47d426b1f5")}catch(e){}}();
|
|
3
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-DHn5rUeg.js";
|
|
4
4
|
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-DDlh_f1u.js";
|
|
5
|
-
import { $ as buildRuleSeverityControls, $t as shouldUseMaintainabilityLayer, A as Files, An as succeed, At as highlighter, B as PerFileLintCacheEnabled, Bn as isDirectory, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runSync, Dt as hasPublishedFixRecipe, E as isCiOrCodingAgentEnvironment, Et as groupBy, F as Linter, Fn as ParentSpan, Ft as isScanComplete, G as SidecarLintCacheEnabled, Gt as remainingDeadlineBudgetMs, H as Project, Hn as isFile, Ht as materializeSourceTree, I as Maintainability, In as isMonorepoRoot, Jt as resolveScanTarget, Kt as resolveGithubActionsScoreMetadata, L as NodeResolver, Ln as yieldToEventLoop, Lt as listSourceFiles, M as InvocationCaches, Nt as isReactDoctorError, O as Config, On as mergeAll, P as LintPartialFailures, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rt as listSourceFilesCooperative, Sn as runPromise, St as getDiagnosticRuleIdentity, T as isCiEnvironment, Tn as try_, Tt as getRuleMetadata, U as Reporter, Ut as mergeAndFilterDiagnostics, V as Progress, Vt as mapWithConcurrency, W as Score, Wt as mergeReactDoctorConfigs, X as atomicWriteJson, Xt as runInspect, Yt as restoreLegacyThrow, _ as VERSION, _n as orElseSucceed, _t as fingerprintDiagnosticEvidence, an as Console, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provideContext, cn as log, ct as countOptInProjectRuleSelections, d as isJsonModeActive, en as summarizeDiagnostics, et as buildSkippedChecks, fn as decodeUnknownSync, ft as discoverSupportedSubprojects, gn as map, ht as filterSourceFiles, in as warmOxlintWorkerPool, j as Git, jt as isPathInsideDirectory, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hashFileContents, l as getRunId, ln as warn, lt as createInvocationCaches, mn as gen, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as error, ot as computeConfigFingerprint, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveLintBatchOrdering, r as toSpanAttributes, rn as warmDuplicateJsxWorker, rt as classifyFileContext, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, un as Diagnostic, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as promise, w as detectRunnerOs, wn as sync, xn as provideService, y as CliInputError, yn as provide, z as OxlintSpawnSlots, zt as listWorkspacePackages } from "./record-metric-
|
|
6
|
-
import { t as getTelemetryContext } from "./telemetry-runtime-
|
|
5
|
+
import { $ as buildRuleSeverityControls, $t as shouldUseMaintainabilityLayer, A as Files, An as succeed, At as highlighter, B as PerFileLintCacheEnabled, Bn as isDirectory, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as runSync, Dt as hasPublishedFixRecipe, E as isCiOrCodingAgentEnvironment, Et as groupBy, F as Linter, Fn as ParentSpan, Ft as isScanComplete, G as SidecarLintCacheEnabled, Gt as remainingDeadlineBudgetMs, H as Project, Hn as isFile, Ht as materializeSourceTree, I as Maintainability, In as isMonorepoRoot, Jt as resolveScanTarget, Kt as resolveGithubActionsScoreMetadata, L as NodeResolver, Ln as yieldToEventLoop, Lt as listSourceFiles, M as InvocationCaches, Nt as isReactDoctorError, O as Config, On as mergeAll, P as LintPartialFailures, Q as buildRuleDocsUrl, R as OxlintConcurrency, Rt as listSourceFilesCooperative, Sn as runPromise, St as getDiagnosticRuleIdentity, T as isCiEnvironment, Tn as try_, Tt as getRuleMetadata, U as Reporter, Ut as mergeAndFilterDiagnostics, V as Progress, Vt as mapWithConcurrency, W as Score, Wt as mergeReactDoctorConfigs, X as atomicWriteJson, Xt as runInspect, Yt as restoreLegacyThrow, _ as VERSION, _n as orElseSucceed, _t as fingerprintDiagnosticEvidence, an as Console, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as provideContext, cn as log, ct as countOptInProjectRuleSelections, d as isJsonModeActive, en as summarizeDiagnostics, et as buildSkippedChecks, fn as decodeUnknownSync, ft as discoverSupportedSubprojects, gn as map, ht as filterSourceFiles, in as warmOxlintWorkerPool, j as Git, jt as isPathInsideDirectory, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hashFileContents, l as getRunId, ln as warn, lt as createInvocationCaches, mn as gen, mt as filterPathsOutsideDirectories, n as recordDistribution, nt as canonicalizeUserRuleKey, on as error, ot as computeConfigFingerprint, pt as filterDiagnosticsForSurface, q as SupplyChain, qt as resolveLintBatchOrdering, r as toSpanAttributes, rn as warmDuplicateJsxWorker, rt as classifyFileContext, st as computeDiagnosticDelta, t as recordCount, tt as calculateScore, un as Diagnostic, ut as createOxlintSpawnSlots, v as makeNoopConsole, vn as promise, w as detectRunnerOs, wn as sync, xn as provideService, y as CliInputError, yn as provide, z as OxlintSpawnSlots, zt as listWorkspacePackages } from "./record-metric-B8b4bjaB.js";
|
|
6
|
+
import { t as getTelemetryContext } from "./telemetry-runtime-B5ReQ28o.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-SaQnctqK.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-BttpccU2.js";
|
|
12
|
+
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-C7aU2_nG.js";
|
|
13
|
+
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-IL1MWTU6.js";
|
|
14
|
+
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-B072XQSZ.js";
|
|
15
|
+
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-BbAqdyMA.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";
|
|
@@ -3170,5 +3170,5 @@ const shouldFailScanGate = (input) => {
|
|
|
3170
3170
|
//#endregion
|
|
3171
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, shouldFailScanGate as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
|
|
3172
3172
|
|
|
3173
|
-
//# sourceMappingURL=should-fail-scan-gate-
|
|
3174
|
-
//# debugId=
|
|
3173
|
+
//# sourceMappingURL=should-fail-scan-gate-_gmz0don.js.map
|
|
3174
|
+
//# debugId=b19c172b-f1b2-5e65-a8fe-9f47d426b1f5
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { b as isNonInteractiveEnvironment } from "./record-metric-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7d483d0c-229e-5556-a401-c4d431922901")}catch(e){}}();
|
|
3
|
+
import { b as isNonInteractiveEnvironment } from "./record-metric-B8b4bjaB.js";
|
|
4
4
|
//#region src/cli/utils/should-skip-prompts.ts
|
|
5
5
|
const shouldSkipPrompts = (input = {}) => Boolean(input.yes) || Boolean(input.json) || isNonInteractiveEnvironment() || !process.stdin.isTTY;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { shouldSkipPrompts as t };
|
|
8
8
|
|
|
9
|
-
//# sourceMappingURL=should-skip-prompts-
|
|
10
|
-
//# debugId=
|
|
9
|
+
//# sourceMappingURL=should-skip-prompts-DNkwhWow.js.map
|
|
10
|
+
//# debugId=7d483d0c-229e-5556-a401-c4d431922901
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { b as isNonInteractiveEnvironment } from "./record-metric-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cfe4d44a-8fa0-5c7f-8b21-7c3d96eb7d7f")}catch(e){}}();
|
|
3
|
+
import { b as isNonInteractiveEnvironment } from "./record-metric-B8b4bjaB.js";
|
|
4
4
|
//#region src/cli/utils/resolve-tui-environment.ts
|
|
5
5
|
const resolveTuiEnvironment = (outputIsTty = process.stdout.isTTY === true) => ({
|
|
6
6
|
isNonInteractiveEnvironment: isNonInteractiveEnvironment(),
|
|
@@ -21,5 +21,5 @@ const shouldUseTui = (input) => {
|
|
|
21
21
|
//#endregion
|
|
22
22
|
export { shouldUseTui as n, resolveTuiEnvironment as r, isTuiEnvironmentSupported as t };
|
|
23
23
|
|
|
24
|
-
//# sourceMappingURL=should-use-tui-
|
|
25
|
-
//# debugId=
|
|
24
|
+
//# sourceMappingURL=should-use-tui-laB7MG1v.js.map
|
|
25
|
+
//# debugId=cfe4d44a-8fa0-5c7f-8b21-7c3d96eb7d7f
|
|
@@ -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]="95f130ce-0bf9-5310-98a7-2c5dadff8034")}catch(e){}}();
|
|
3
3
|
import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { Cn as runSync, Dn as buildWithScope, It as layerObservability, J as anonymizeInPlace, Mn as makeUnsafe, Mt as isProjectDiscoveryError, Nt as isReactDoctorError, Pn as void_, Rn as messageFromUnknown, Sn as runPromise, Vn as isErrnoException, Y as anonymizeText, Zt as scrubSensitivePaths, _ as VERSION, a as isEnvFlagEnabled, i as isTelemetryEnabled, jn as close, o as buildSentryScope, pn as make, y as CliInputError } from "./record-metric-
|
|
4
|
+
import { Cn as runSync, Dn as buildWithScope, It as layerObservability, J as anonymizeInPlace, Mn as makeUnsafe, Mt as isProjectDiscoveryError, Nt as isReactDoctorError, Pn as void_, Rn as messageFromUnknown, Sn as runPromise, Vn as isErrnoException, Y as anonymizeText, Zt as scrubSensitivePaths, _ as VERSION, a as isEnvFlagEnabled, i as isTelemetryEnabled, jn as close, o as buildSentryScope, pn as make, y as CliInputError } from "./record-metric-B8b4bjaB.js";
|
|
5
5
|
//#region src/cli/utils/is-environment-error.ts
|
|
6
6
|
const ENVIRONMENT_ERROR_CODES = new Set([
|
|
7
7
|
"EACCES",
|
|
@@ -212,13 +212,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
212
212
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
213
213
|
* standard `SENTRY_RELEASE` override.
|
|
214
214
|
*/
|
|
215
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.17-dev.
|
|
215
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.17-dev.888dc2a`;
|
|
216
216
|
/**
|
|
217
217
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
218
218
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
219
219
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
220
220
|
*/
|
|
221
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.17-dev.
|
|
221
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.17-dev.888dc2a") ? "development" : "production");
|
|
222
222
|
//#endregion
|
|
223
223
|
//#region src/instrument.ts
|
|
224
224
|
let sentryPromise = null;
|
|
@@ -396,5 +396,5 @@ const shutdownTelemetry = async () => {
|
|
|
396
396
|
//#endregion
|
|
397
397
|
export { initializeSentry as a, isNpmCacheCorruptionError as c, getSentry as i, formatEnvironmentError as l, shutdownTelemetry as n, isExpectedUserError as o, flushSentry as r, formatNpmCacheCorruptionError as s, getTelemetryContext as t, isEnvironmentError as u };
|
|
398
398
|
|
|
399
|
-
//# sourceMappingURL=telemetry-runtime-
|
|
400
|
-
//# debugId=
|
|
399
|
+
//# sourceMappingURL=telemetry-runtime-B5ReQ28o.js.map
|
|
400
|
+
//# debugId=95f130ce-0bf9-5310-98a7-2c5dadff8034
|
|
@@ -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]="e38a9616-dd3d-5770-bd49-7e8df6c515ec")}catch(e){}}();
|
|
3
3
|
import { u as METRIC } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { _ as VERSION, t as recordCount } from "./record-metric-
|
|
4
|
+
import { _ as VERSION, t as recordCount } from "./record-metric-B8b4bjaB.js";
|
|
5
5
|
//#region src/cli/commands/version.ts
|
|
6
6
|
/**
|
|
7
7
|
* oclif-style version line. 12-factor CLI Apps (#3, "What version am I
|
|
@@ -18,5 +18,5 @@ const versionAction = () => {
|
|
|
18
18
|
//#endregion
|
|
19
19
|
export { versionAction };
|
|
20
20
|
|
|
21
|
-
//# sourceMappingURL=version-
|
|
22
|
-
//# debugId=
|
|
21
|
+
//# sourceMappingURL=version-DRCfjrnM.js.map
|
|
22
|
+
//# debugId=e38a9616-dd3d-5770-bd49-7e8df6c515ec
|
|
@@ -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 { t as inspectAction } from "./inspect-
|
|
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]="ee3dc899-38b6-5b7d-8dd4-8bb1290e6259")}catch(e){}}();
|
|
3
|
+
import { t as inspectAction } from "./inspect-D3UYRxCv.js";
|
|
4
4
|
//#region src/cli/commands/why.ts
|
|
5
5
|
/**
|
|
6
6
|
* `why <file:line>` — explains why a rule fired (or why a suppression didn't
|
|
@@ -17,5 +17,5 @@ const whyAction = async (location, options) => {
|
|
|
17
17
|
//#endregion
|
|
18
18
|
export { whyAction };
|
|
19
19
|
|
|
20
|
-
//# sourceMappingURL=why-
|
|
21
|
-
//# debugId=
|
|
20
|
+
//# sourceMappingURL=why-qpHIO1XJ.js.map
|
|
21
|
+
//# debugId=ee3dc899-38b6-5b7d-8dd4-8bb1290e6259
|
|
@@ -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]="80fb14cb-8a80-5309-9392-e9d13c122b9d")}catch(e){}}();
|
|
3
3
|
import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-DHn5rUeg.js";
|
|
4
|
-
import { Cn as runSync, Nn as fail, Pn as void_, bn as provideContext, c as setSentryProjectInfo, hn as makeSpan, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext } from "./record-metric-
|
|
5
|
-
import { t as getTelemetryContext } from "./telemetry-runtime-
|
|
4
|
+
import { Cn as runSync, Nn as fail, Pn as void_, bn as provideContext, c as setSentryProjectInfo, hn as makeSpan, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext } from "./record-metric-B8b4bjaB.js";
|
|
5
|
+
import { t as getTelemetryContext } from "./telemetry-runtime-B5ReQ28o.js";
|
|
6
6
|
import { i as setActiveRunTrace, r as recordRunTraceId } from "./active-run-trace-Dewycxda.js";
|
|
7
7
|
//#region src/cli/utils/with-run-span.ts
|
|
8
8
|
/**
|
|
@@ -107,5 +107,5 @@ const recordSentryProjectContext = (projectInfo, rootSpan, options = {}) => {
|
|
|
107
107
|
//#endregion
|
|
108
108
|
export { resetSentryRunState as n, withRunSpan as r, recordSentryProjectContext as t };
|
|
109
109
|
|
|
110
|
-
//# sourceMappingURL=with-run-span-
|
|
111
|
-
//# debugId=
|
|
110
|
+
//# sourceMappingURL=with-run-span-B072XQSZ.js.map
|
|
111
|
+
//# debugId=80fb14cb-8a80-5309-9392-e9d13c122b9d
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.9.17-dev.
|
|
3
|
+
"version": "0.9.17-dev.888dc2a",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"typescript": ">=5.0.4 <6",
|
|
71
71
|
"yaml": "^2.9.0",
|
|
72
72
|
"yoga-layout": "~3.2.1",
|
|
73
|
-
"oxlint-plugin-react-doctor": "0.9.17-dev.
|
|
73
|
+
"oxlint-plugin-react-doctor": "0.9.17-dev.888dc2a"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/babel__code-frame": "^7.27.0",
|