react-doctor 0.9.11 → 0.9.12-dev.05ef989
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/react-doctor.js +1 -9
- package/dist/{build-section-divider-sLcWe1hO.js → build-section-divider-BNQmYjME.js} +9 -10
- package/dist/{ci-DsrrD52i.js → ci-B9ir-2Up.js} +12 -12
- package/dist/cli.js +30 -31
- package/dist/{design-CP25gyyg.js → design-DrPr5wfS.js} +4 -4
- package/dist/{devtools-DPRVRu3S.js → devtools-D8NTVj81.js} +4 -4
- package/dist/{exit-gracefully-CVVkBxDS.js → exit-gracefully-C-_jVMT3.js} +6 -6
- package/dist/index.d.ts +38 -61
- package/dist/index.js +54948 -54701
- package/dist/{inspect-D6y8oLtg.js → inspect-BfdplEq6.js} +25 -24
- package/dist/{install-afMFGeTB.js → install-CcPaQeBb.js} +8 -8
- package/dist/{install-doctor-script-Be7Mv3-l.js → install-doctor-script-BlIhuJW6.js} +4 -4
- package/dist/{install-github-workflow-Dev2F6Ea.js → install-github-workflow-DbnsoR9k.js} +6 -6
- package/dist/{install-react-doctor-DIPVunY4.js → install-react-doctor-COZnJROS.js} +47 -45
- package/dist/{print-branded-header-D5jLdo4p.js → print-branded-header-B_Cgff5S.js} +4 -4
- package/dist/project-analysis-worker.d.ts +1 -0
- package/dist/project-analysis-worker.js +51900 -0
- package/dist/{read-object-file-CEh1CqnD.js → read-object-file-NNLnIQKt.js} +4 -4
- package/dist/{record-metric-CJxSHfJD.js → record-metric-fdCvvcjz.js} +2668 -5698
- package/dist/{report-error-CAEixMg1.js → report-error-BH7DfHGY.js} +5 -5
- package/dist/{report-workflow-result-C0jbKH8p.js → report-workflow-result-B3YeoXsK.js} +5 -5
- package/dist/{resolve-scope-DS7rcRRz.js → resolve-scope-gLUuBxjI.js} +6 -6
- package/dist/{rules-BJynymuU.js → rules-B5VC89MR.js} +6 -6
- package/dist/{run-scan-app-BGzlyiIB.js → run-scan-app-Cl2mqLLB.js} +194 -145
- package/dist/{scan-CgPRG6_z.js → scan-7OBudBct.js} +8 -8
- package/dist/semver-DFtnEmN-.js +3219 -0
- package/dist/{should-fail-scan-gate-4jf7ZRdL.js → should-fail-scan-gate-Dch9vbPz.js} +197 -94
- package/dist/{should-skip-prompts-C78r7Ww7.js → should-skip-prompts-CyNdARgB.js} +4 -4
- package/dist/{unref-stdin-Dc8ipkaw.js → unref-stdin-Cynhx9N1.js} +6 -12
- package/dist/{version-DDrwsTas.js → version-axnZCkCZ.js} +4 -4
- package/dist/{why-BRNrKY1b.js → why-Ducgj7Hu.js} +4 -4
- package/package.json +6 -12
- package/dist/chunk-q7NCDQ7-.js +0 -28
- package/dist/lsp.js +0 -81114
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
4
|
-
import { c as isExpectedUserError, i as recordRunTraceId, l as formatEnvironmentError, n as getActiveRunTrace, s as shutdownTelemetry, u as isEnvironmentError } from "./unref-stdin-
|
|
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]="6b305c9a-a6dc-5c2f-b70d-46421d386d2f")}catch(e){}}();
|
|
3
|
+
import { $n as CANONICAL_GITHUB_URL, Ft as formatReactDoctorError, Gt as highlighter, M as SENTRY_FLUSH_TIMEOUT_MS, Pt as formatErrorChain, Qn as CANONICAL_DISCORD_URL, Rn as runSync, Sn as error, Yt as isReactDoctorError, g as VERSION, kn as gen, l as getRunId, o as buildSentryScope, t as recordCount, w as METRIC, yr as isErrnoException } from "./record-metric-fdCvvcjz.js";
|
|
4
|
+
import { c as isExpectedUserError, i as recordRunTraceId, l as formatEnvironmentError, n as getActiveRunTrace, s as shutdownTelemetry, u as isEnvironmentError } from "./unref-stdin-Cynhx9N1.js";
|
|
5
5
|
import * as Sentry from "@sentry/node";
|
|
6
6
|
//#region src/cli/utils/handle-error.ts
|
|
7
7
|
const OTLP_ENDPOINT_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_OTLP_ENDPOINT";
|
|
@@ -160,5 +160,5 @@ const reportErrorToSentry = async (error) => {
|
|
|
160
160
|
//#endregion
|
|
161
161
|
export { handleError as n, handleUserError as r, reportErrorToSentry as t };
|
|
162
162
|
|
|
163
|
-
//# sourceMappingURL=report-error-
|
|
164
|
-
//# debugId=
|
|
163
|
+
//# sourceMappingURL=report-error-BH7DfHGY.js.map
|
|
164
|
+
//# debugId=6b305c9a-a6dc-5c2f-b70d-46421d386d2f
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { D as REACT_DOCTOR_CONFIG_PROJECT_NAME, t as recordCount, w as METRIC } from "./record-metric-
|
|
4
|
-
import { u as isCommandAvailable } from "./install-github-workflow-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6ab89a67-529d-5725-901f-a2d58b2ccdac")}catch(e){}}();
|
|
3
|
+
import { D as REACT_DOCTOR_CONFIG_PROJECT_NAME, t as recordCount, w as METRIC } from "./record-metric-fdCvvcjz.js";
|
|
4
|
+
import { u as isCommandAvailable } from "./install-github-workflow-DbnsoR9k.js";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import process$1 from "node:process";
|
|
@@ -275,5 +275,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
|
|
|
275
275
|
//#endregion
|
|
276
276
|
export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, 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 };
|
|
277
277
|
|
|
278
|
-
//# sourceMappingURL=report-workflow-result-
|
|
279
|
-
//# debugId=
|
|
278
|
+
//# sourceMappingURL=report-workflow-result-B3YeoXsK.js.map
|
|
279
|
+
//# debugId=6ab89a67-529d-5725-901f-a2d58b2ccdac
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
4
|
-
import { L as cliLogger } from "./install-doctor-script-
|
|
5
|
-
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="974ac7e1-acb8-511d-bda6-833e6bcb52a8")}catch(e){}}();
|
|
3
|
+
import { Cr as toCanonicalPath, Mt as filterSourceFiles, qt as isPathInsideDirectory } from "./record-metric-fdCvvcjz.js";
|
|
4
|
+
import { L as cliLogger } from "./install-doctor-script-BlIhuJW6.js";
|
|
5
|
+
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-DbnsoR9k.js";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
//#region src/cli/utils/path-format.ts
|
|
8
8
|
const toForwardSlashes = (filePath) => filePath.replaceAll("\\", "/");
|
|
@@ -335,5 +335,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
|
|
|
335
335
|
//#endregion
|
|
336
336
|
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, toForwardSlashes as u };
|
|
337
337
|
|
|
338
|
-
//# sourceMappingURL=resolve-scope-
|
|
339
|
-
//# debugId=
|
|
338
|
+
//# sourceMappingURL=resolve-scope-gLUuBxjI.js.map
|
|
339
|
+
//# debugId=974ac7e1-acb8-511d-bda6-833e6bcb52a8
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
4
|
-
import { L as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
5
|
-
import { t as readObjectFile } from "./read-object-file-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2335bf20-6bfa-5a05-8917-39cfda07dd9b")}catch(e){}}();
|
|
3
|
+
import { Bt as getEquivalentRuleKeys, Gt as highlighter, Xt as isSameRuleKey, ht as buildRuleDocsUrl, nn as loadConfigWithSource, nr as COMPILER_CLEANUP_RULE_KEYS, t as recordCount, tr as COMPILER_CLEANUP_BUCKET, w as METRIC, xr as isPlainObject, xt as clearConfigCache, yn as validateConfigTypes } from "./record-metric-fdCvvcjz.js";
|
|
4
|
+
import { L as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BlIhuJW6.js";
|
|
5
|
+
import { t as readObjectFile } from "./read-object-file-NNLnIQKt.js";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import * as fs$1 from "node:fs";
|
|
8
8
|
import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
|
|
@@ -577,5 +577,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
|
|
|
577
577
|
//#endregion
|
|
578
578
|
export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
|
|
579
579
|
|
|
580
|
-
//# sourceMappingURL=rules-
|
|
581
|
-
//# debugId=
|
|
580
|
+
//# sourceMappingURL=rules-B5VC89MR.js.map
|
|
581
|
+
//# debugId=2335bf20-6bfa-5a05-8917-39cfda07dd9b
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-
|
|
6
|
-
import { L as cliLogger, d as stripAnsi, f as isUnicodeSupported, l as isFullWidth$1, n as findNearestPackageDirectory, p as chalk, u as isWide$1 } from "./install-doctor-script-
|
|
7
|
-
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-
|
|
8
|
-
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope, u as toForwardSlashes } from "./resolve-scope-
|
|
9
|
-
import { A as resolveMergeBaseRef, B as
|
|
10
|
-
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6dc0cf38-4376-5d91-aa4f-da5cf7776357")}catch(e){}}();
|
|
3
|
+
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
+
import { B as isGitHookEnvironment, Gn as succeed, Gt as highlighter, Ht as hasPublishedFixRecipe, I as TUI_REPORT_COMPACT_MAX_ROWS, It as getBaselineDiffPlan, L as TUI_REPORT_DETAIL_WIDTH_FRACTION, Ln as runPromise, Lt as getChangedLineRanges, S as CI_TRUST_COMPANIES, Vn as void_, W as isCiEnvironment, _r as getCategoryImpact, bn as yieldToEventLoop, dn as resolveScanTarget, ht as buildRuleDocsUrl, ir as DIAGNOSTIC_CATEGORY_BUCKETS, it as Progress, n as recordDistribution, on as remainingDeadlineBudgetMs, ot as Reporter, qt as isPathInsideDirectory, rn as mapWithConcurrency, sr as GITHUB_ACTIONS_SETUP_URL, t as recordCount, vt as calculateScore, w as METRIC, zn as sync, zt as getDiffInfo } from "./record-metric-fdCvvcjz.js";
|
|
5
|
+
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-C-_jVMT3.js";
|
|
6
|
+
import { L as cliLogger, d as stripAnsi, f as isUnicodeSupported, l as isFullWidth$1, n as findNearestPackageDirectory, p as chalk, u as isWide$1 } from "./install-doctor-script-BlIhuJW6.js";
|
|
7
|
+
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-DbnsoR9k.js";
|
|
8
|
+
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope, u as toForwardSlashes } from "./resolve-scope-gLUuBxjI.js";
|
|
9
|
+
import { A as resolveMergeBaseRef, B as buildNoScoreMessage, C as copyToClipboard, D as deduplicateProjectScans, E as collectProjectSourceFileCounts, F as printFooter, G as formatFixRecipeLine, H as hasLintHardFailure, I as printDiagnosticsDump, K as formatLearnMoreLine, L as formatDiagnosticSite, M as pluralize, N as formatSkippedCheckLabel, O as createInvocationInspect, P as formatElapsedTime, R as hasIncompleteScoreAnalysis, S as CLI_AGENT_BINARIES, T as buildHandoffPayload, U as buildRulePriorityMap, V as buildEmptyReportMessage, W as buildSortedRuleGroups, _ as resolveCliInspectOptions, a as projectManifestChanged, b as setUpGitHubActions, c as selectProjects, d as resolveProjectChangedLineRanges, f as resolveProjectDiffIncludePaths, g as resolveWorkspaceDeadCodeOwner, h as retryMissingProjectScores, l as buildCodeFrame, n as formatSkippedProjectsMessage, o as partitionProjectScanOutcomes, p as resolveProjectSourceFilePaths, r as validateIncludeUntrackedScope, s as discoverWorkspacePackages, t as shouldFailScanGate, u as resolveProjectScan, v as filterScansForSurface, w as launchCliAgent, x as detectLaunchableAgents, y as countUniqueScannedFiles, z as filterDiagnosticsByCategories } from "./should-fail-scan-gate-Dch9vbPz.js";
|
|
10
|
+
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-B3YeoXsK.js";
|
|
11
11
|
import { EventEmitter } from "node:events";
|
|
12
12
|
import { execFileSync } from "node:child_process";
|
|
13
13
|
import path from "node:path";
|
|
@@ -20,7 +20,6 @@ import { performance as performance$1 } from "node:perf_hooks";
|
|
|
20
20
|
import tty from "node:tty";
|
|
21
21
|
import { getSkillAgentConfig } from "agent-install";
|
|
22
22
|
import Yoga from "yoga-layout";
|
|
23
|
-
import figures from "figures";
|
|
24
23
|
//#region ../../node_modules/.pnpm/react@19.2.5/node_modules/react/cjs/react.production.js
|
|
25
24
|
/**
|
|
26
25
|
* @license React
|
|
@@ -20448,7 +20447,7 @@ if (process$1.env["DEV"] === "true") {
|
|
|
20448
20447
|
import.meta.resolve("react-devtools-core");
|
|
20449
20448
|
isDevtoolsInstalled = true;
|
|
20450
20449
|
} catch {}
|
|
20451
|
-
if (isDevtoolsInstalled) await import("./devtools-
|
|
20450
|
+
if (isDevtoolsInstalled) await import("./devtools-D8NTVj81.js");
|
|
20452
20451
|
}
|
|
20453
20452
|
const diff = (before, after) => {
|
|
20454
20453
|
if (before === after) return;
|
|
@@ -24066,6 +24065,15 @@ const resolveVisibleStart = ({ itemCount, offset, selectedIndex, viewportHeight
|
|
|
24066
24065
|
return boundedOffset;
|
|
24067
24066
|
};
|
|
24068
24067
|
//#endregion
|
|
24068
|
+
//#region src/cli/utils/terminal-symbols.ts
|
|
24069
|
+
const supportsUnicodeSymbols = process.platform !== "win32" ? process.env.TERM !== "linux" : Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
24070
|
+
const terminalSymbols = {
|
|
24071
|
+
pointer: supportsUnicodeSymbols ? "❯" : ">",
|
|
24072
|
+
pointerSmall: "›",
|
|
24073
|
+
radioOn: supportsUnicodeSymbols ? "◉" : "(*)",
|
|
24074
|
+
radioOff: supportsUnicodeSymbols ? "◯" : "( )"
|
|
24075
|
+
};
|
|
24076
|
+
//#endregion
|
|
24069
24077
|
//#region src/cli/ink/hooks/use-exit-on-ctrl-c.ts
|
|
24070
24078
|
const SHOW_CURSOR = "\x1B[?25h";
|
|
24071
24079
|
const useExitOnCtrlC = (onCancel) => {
|
|
@@ -24558,11 +24566,11 @@ const ProjectSelect = ({ packages, rootDirectory, onSubmit }) => {
|
|
|
24558
24566
|
children: [
|
|
24559
24567
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
24560
24568
|
color: isSelected ? "cyan" : void 0,
|
|
24561
|
-
children: isSelected ? `${
|
|
24569
|
+
children: isSelected ? `${terminalSymbols.pointer} ` : " "
|
|
24562
24570
|
}),
|
|
24563
24571
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
24564
24572
|
color: isChecked ? "green" : void 0,
|
|
24565
|
-
children: isChecked ? `${
|
|
24573
|
+
children: isChecked ? `${terminalSymbols.radioOn} ` : `${terminalSymbols.radioOff} `
|
|
24566
24574
|
}),
|
|
24567
24575
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MatchedName, {
|
|
24568
24576
|
name: matchedPackage.workspacePackage.name,
|
|
@@ -24774,7 +24782,7 @@ const ActionMenu = ({ actions, selectedIndex: controlledSelectedIndex, onSelecti
|
|
|
24774
24782
|
color: isSelected ? "cyan" : void 0,
|
|
24775
24783
|
bold: isSelected,
|
|
24776
24784
|
children: [
|
|
24777
|
-
isSelected ?
|
|
24785
|
+
isSelected ? terminalSymbols.pointer : terminalSymbols.pointerSmall,
|
|
24778
24786
|
" ",
|
|
24779
24787
|
action.label
|
|
24780
24788
|
]
|
|
@@ -24785,12 +24793,20 @@ const ActionMenu = ({ actions, selectedIndex: controlledSelectedIndex, onSelecti
|
|
|
24785
24793
|
};
|
|
24786
24794
|
//#endregion
|
|
24787
24795
|
//#region src/cli/ink/components/agent-handoff.tsx
|
|
24788
|
-
const AgentHandoff = ({ agents, onSelect, onBack, onQuit }) => {
|
|
24789
|
-
const actions = agents.map((agentId) => ({
|
|
24796
|
+
const AgentHandoff = ({ agents, onSelect, onCopyPrompt, onBack, onQuit }) => {
|
|
24797
|
+
const actions = [...agents.map((agentId) => ({
|
|
24790
24798
|
id: agentId,
|
|
24791
24799
|
label: getSkillAgentConfig(agentId).displayName,
|
|
24792
24800
|
onSelect: () => onSelect(agentId)
|
|
24793
|
-
}))
|
|
24801
|
+
})), {
|
|
24802
|
+
id: "copy-prompt",
|
|
24803
|
+
label: "Copy prompt",
|
|
24804
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
24805
|
+
dimColor: true,
|
|
24806
|
+
children: "Paste into any agent or edit it first"
|
|
24807
|
+
}),
|
|
24808
|
+
onSelect: onCopyPrompt
|
|
24809
|
+
}];
|
|
24794
24810
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
24795
24811
|
flexDirection: "column",
|
|
24796
24812
|
children: [
|
|
@@ -24798,7 +24814,7 @@ const AgentHandoff = ({ agents, onSelect, onBack, onQuit }) => {
|
|
|
24798
24814
|
paddingLeft: 2,
|
|
24799
24815
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
24800
24816
|
bold: true,
|
|
24801
|
-
children: "Choose
|
|
24817
|
+
children: "Choose how to continue"
|
|
24802
24818
|
})
|
|
24803
24819
|
}),
|
|
24804
24820
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ActionMenu, {
|
|
@@ -25513,10 +25529,40 @@ const HandoffCiRecommendation = ({ onAddToCi, onContinue, onQuit }) => {
|
|
|
25513
25529
|
};
|
|
25514
25530
|
//#endregion
|
|
25515
25531
|
//#region src/cli/ink/components/report-landing.tsx
|
|
25532
|
+
const ReportStatus = ({ issueCount, emptyStateMessage, lintFailureReason, skippedChecks, incompleteMessage }) => {
|
|
25533
|
+
const skippedCheckLabel = skippedChecks?.flatMap((skippedCheck) => skippedCheck === "lint" && lintFailureReason ? [] : [formatSkippedCheckLabel(skippedCheck)]).join(" and ");
|
|
25534
|
+
const hasIncompleteResult = Boolean(incompleteMessage || lintFailureReason || skippedCheckLabel);
|
|
25535
|
+
if (!hasIncompleteResult && issueCount > 0) return null;
|
|
25536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
25537
|
+
flexDirection: "column",
|
|
25538
|
+
marginTop: 1,
|
|
25539
|
+
children: [
|
|
25540
|
+
incompleteMessage ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
25541
|
+
color: "yellow",
|
|
25542
|
+
children: ["⚠ ", incompleteMessage]
|
|
25543
|
+
}) : null,
|
|
25544
|
+
lintFailureReason ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
25545
|
+
color: "yellow",
|
|
25546
|
+
children: ["⚠ Lint did not run: ", lintFailureReason]
|
|
25547
|
+
}) : null,
|
|
25548
|
+
skippedCheckLabel ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
25549
|
+
color: "yellow",
|
|
25550
|
+
children: [
|
|
25551
|
+
"⚠ ",
|
|
25552
|
+
issueCount === 0 ? "No issues detected, but " : "",
|
|
25553
|
+
skippedCheckLabel,
|
|
25554
|
+
" checks failed — results are incomplete."
|
|
25555
|
+
]
|
|
25556
|
+
}) : null,
|
|
25557
|
+
issueCount === 0 && !hasIncompleteResult ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
25558
|
+
color: "green",
|
|
25559
|
+
children: ["✔ ", emptyStateMessage ?? "No issues found. Nice work."]
|
|
25560
|
+
}) : null
|
|
25561
|
+
]
|
|
25562
|
+
});
|
|
25563
|
+
};
|
|
25516
25564
|
const ReportLanding = ({ header, phase, issueCount, emptyStateMessage, lintFailureReason, skippedChecks, incompleteMessage, actions, selectedIndex, onSelectionChange, onQuit }) => {
|
|
25517
25565
|
const showScore = phase === "actions" || phase === "score";
|
|
25518
|
-
const skippedCheckLabel = skippedChecks?.filter((skippedCheck) => skippedCheck !== "lint" || !lintFailureReason).join(" and ");
|
|
25519
|
-
const hasIncompleteResult = Boolean(incompleteMessage || lintFailureReason || skippedCheckLabel);
|
|
25520
25566
|
useInput((input) => {
|
|
25521
25567
|
if (input === "q") onQuit();
|
|
25522
25568
|
}, { isActive: phase !== "actions" });
|
|
@@ -25524,33 +25570,13 @@ const ReportLanding = ({ header, phase, issueCount, emptyStateMessage, lintFailu
|
|
|
25524
25570
|
flexDirection: "column",
|
|
25525
25571
|
children: [
|
|
25526
25572
|
showScore ? header : null,
|
|
25527
|
-
|
|
25528
|
-
|
|
25529
|
-
|
|
25530
|
-
|
|
25531
|
-
|
|
25532
|
-
|
|
25533
|
-
|
|
25534
|
-
}) : null,
|
|
25535
|
-
lintFailureReason ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
25536
|
-
color: "yellow",
|
|
25537
|
-
children: ["⚠ Lint did not run: ", lintFailureReason]
|
|
25538
|
-
}) : null,
|
|
25539
|
-
skippedCheckLabel ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
25540
|
-
color: "yellow",
|
|
25541
|
-
children: [
|
|
25542
|
-
"⚠ ",
|
|
25543
|
-
issueCount === 0 ? "No issues detected, but " : "",
|
|
25544
|
-
skippedCheckLabel,
|
|
25545
|
-
" checks failed — results are incomplete."
|
|
25546
|
-
]
|
|
25547
|
-
}) : null,
|
|
25548
|
-
issueCount === 0 && !hasIncompleteResult ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
25549
|
-
color: "green",
|
|
25550
|
-
children: ["✔ ", emptyStateMessage ?? "No issues found. Nice work."]
|
|
25551
|
-
}) : null
|
|
25552
|
-
]
|
|
25553
|
-
}) : null,
|
|
25573
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReportStatus, {
|
|
25574
|
+
issueCount,
|
|
25575
|
+
emptyStateMessage,
|
|
25576
|
+
lintFailureReason,
|
|
25577
|
+
skippedChecks,
|
|
25578
|
+
incompleteMessage
|
|
25579
|
+
}),
|
|
25554
25580
|
phase === "actions" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ActionMenu, {
|
|
25555
25581
|
actions,
|
|
25556
25582
|
selectedIndex,
|
|
@@ -25766,10 +25792,14 @@ const ScoreHeader = ({ variant, score, projectedScore, projectName, issueCount,
|
|
|
25766
25792
|
const [eyes, mouth] = doctorFace(score.score);
|
|
25767
25793
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
25768
25794
|
flexDirection: "column",
|
|
25795
|
+
width: availableWidth,
|
|
25769
25796
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
25770
25797
|
paddingLeft: 2,
|
|
25798
|
+
width: availableWidth,
|
|
25771
25799
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
25772
25800
|
flexDirection: "column",
|
|
25801
|
+
flexShrink: 0,
|
|
25802
|
+
width: 7,
|
|
25773
25803
|
marginRight: 2,
|
|
25774
25804
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
25775
25805
|
color: scoreColor,
|
|
@@ -25777,6 +25807,7 @@ const ScoreHeader = ({ variant, score, projectedScore, projectName, issueCount,
|
|
|
25777
25807
|
})
|
|
25778
25808
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
25779
25809
|
flexDirection: "column",
|
|
25810
|
+
width: availableWidth - 11,
|
|
25780
25811
|
children: [
|
|
25781
25812
|
scoreSummaryLine,
|
|
25782
25813
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
@@ -25894,7 +25925,18 @@ const Report = ({ report, onExit, onQuit = onExit, launchableAgents = EMPTY_LAUN
|
|
|
25894
25925
|
width: isWide ? reportLayout.listColumnWidth : reportLayout.width
|
|
25895
25926
|
};
|
|
25896
25927
|
const isCiSetupAvailable = Boolean(canAddToCi && onAddToCi && !isCiSetupQueued);
|
|
25897
|
-
const isHandoffAvailable = diagnosticRows.length > 0 &&
|
|
25928
|
+
const isHandoffAvailable = diagnosticRows.length > 0 && Boolean(onHandoff);
|
|
25929
|
+
const completeHandoff = (destination) => {
|
|
25930
|
+
if (!onHandoff) return;
|
|
25931
|
+
onHandoff({
|
|
25932
|
+
destination,
|
|
25933
|
+
prompt: buildHandoffPayload({
|
|
25934
|
+
diagnostics: report.diagnostics,
|
|
25935
|
+
projectName: report.projectName
|
|
25936
|
+
})
|
|
25937
|
+
});
|
|
25938
|
+
onExit();
|
|
25939
|
+
};
|
|
25898
25940
|
const firstDiagnosticEntry = diagnosticListEntries.find((entry) => entry.kind === "item");
|
|
25899
25941
|
const resolvedViewerSelectedRowIndex = viewerSelectedRowIndex ?? (firstDiagnosticEntry?.kind === "item" ? firstDiagnosticEntry.rowIndex : null);
|
|
25900
25942
|
const markViewerRuleRead = (index) => {
|
|
@@ -25948,96 +25990,88 @@ const Report = ({ report, onExit, onQuit = onExit, launchableAgents = EMPTY_LAUN
|
|
|
25948
25990
|
selectedIndex: reportReveal.streamSelectedIndex,
|
|
25949
25991
|
width: reportLayout.width
|
|
25950
25992
|
}) : null;
|
|
25951
|
-
|
|
25952
|
-
|
|
25953
|
-
|
|
25954
|
-
|
|
25955
|
-
|
|
25956
|
-
|
|
25957
|
-
|
|
25958
|
-
|
|
25959
|
-
|
|
25960
|
-
|
|
25961
|
-
|
|
25962
|
-
|
|
25963
|
-
|
|
25993
|
+
const screenContent = {
|
|
25994
|
+
ci: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CiSetup, {
|
|
25995
|
+
feedback: ciSetupFeedback,
|
|
25996
|
+
onConfirm: () => {
|
|
25997
|
+
onAddToCi?.();
|
|
25998
|
+
onExit();
|
|
25999
|
+
},
|
|
26000
|
+
onLearnMore: () => {
|
|
26001
|
+
recordReportAction("ci-learn-more");
|
|
26002
|
+
openUrl(GITHUB_ACTIONS_SETUP_URL).then((didOpen) => {
|
|
26003
|
+
setCiSetupFeedback({
|
|
26004
|
+
didSucceed: didOpen,
|
|
26005
|
+
message: didOpen ? "✓ Opened the GitHub Actions guide in your browser" : `Couldn't open a browser. Visit ${GITHUB_ACTIONS_SETUP_URL}`
|
|
26006
|
+
});
|
|
25964
26007
|
});
|
|
25965
|
-
}
|
|
25966
|
-
|
|
25967
|
-
|
|
25968
|
-
|
|
25969
|
-
|
|
25970
|
-
|
|
25971
|
-
onQuit
|
|
25972
|
-
});
|
|
25973
|
-
else if (activeReportScreen === "handoff") activeScreenContent = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AgentHandoff, {
|
|
25974
|
-
agents: launchableAgents,
|
|
25975
|
-
onSelect: (agentId) => {
|
|
25976
|
-
if (!onHandoff) return;
|
|
25977
|
-
onHandoff({
|
|
25978
|
-
agentId,
|
|
25979
|
-
prompt: buildHandoffPayload({
|
|
25980
|
-
diagnostics: report.diagnostics,
|
|
25981
|
-
projectName: report.projectName
|
|
25982
|
-
})
|
|
25983
|
-
});
|
|
25984
|
-
onExit();
|
|
25985
|
-
},
|
|
25986
|
-
onBack: () => setActiveReportScreen("landing"),
|
|
25987
|
-
onQuit
|
|
25988
|
-
});
|
|
25989
|
-
else if (activeReportScreen === "handoff-ci") activeScreenContent = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HandoffCiRecommendation, {
|
|
25990
|
-
onAddToCi: () => {
|
|
25991
|
-
onAddToCi?.();
|
|
25992
|
-
setIsCiSetupQueued(true);
|
|
25993
|
-
setActiveReportScreen("handoff");
|
|
25994
|
-
},
|
|
25995
|
-
onContinue: () => setActiveReportScreen("handoff"),
|
|
25996
|
-
onQuit
|
|
25997
|
-
});
|
|
25998
|
-
else if (activeReportScreen === "landing") activeScreenContent = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReportLanding, {
|
|
25999
|
-
header: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScoreHeader, {
|
|
26000
|
-
variant: "landing",
|
|
26001
|
-
...scoreHeaderProps
|
|
26008
|
+
},
|
|
26009
|
+
onBack: () => {
|
|
26010
|
+
setCiSetupFeedback(void 0);
|
|
26011
|
+
setActiveReportScreen("landing");
|
|
26012
|
+
},
|
|
26013
|
+
onQuit
|
|
26002
26014
|
}),
|
|
26003
|
-
|
|
26004
|
-
|
|
26005
|
-
|
|
26006
|
-
|
|
26007
|
-
|
|
26008
|
-
|
|
26009
|
-
|
|
26010
|
-
|
|
26011
|
-
|
|
26012
|
-
|
|
26013
|
-
|
|
26014
|
-
|
|
26015
|
-
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
})
|
|
26019
|
-
|
|
26020
|
-
|
|
26021
|
-
|
|
26022
|
-
|
|
26023
|
-
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
26028
|
-
|
|
26029
|
-
|
|
26030
|
-
|
|
26031
|
-
|
|
26032
|
-
|
|
26033
|
-
|
|
26034
|
-
|
|
26035
|
-
|
|
26036
|
-
|
|
26037
|
-
|
|
26038
|
-
|
|
26039
|
-
|
|
26040
|
-
|
|
26015
|
+
handoff: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AgentHandoff, {
|
|
26016
|
+
agents: launchableAgents,
|
|
26017
|
+
onSelect: completeHandoff,
|
|
26018
|
+
onCopyPrompt: () => completeHandoff("clipboard"),
|
|
26019
|
+
onBack: () => setActiveReportScreen("landing"),
|
|
26020
|
+
onQuit
|
|
26021
|
+
}),
|
|
26022
|
+
"handoff-ci": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HandoffCiRecommendation, {
|
|
26023
|
+
onAddToCi: () => {
|
|
26024
|
+
onAddToCi?.();
|
|
26025
|
+
setIsCiSetupQueued(true);
|
|
26026
|
+
setActiveReportScreen("handoff");
|
|
26027
|
+
},
|
|
26028
|
+
onContinue: () => setActiveReportScreen("handoff"),
|
|
26029
|
+
onQuit
|
|
26030
|
+
}),
|
|
26031
|
+
landing: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReportLanding, {
|
|
26032
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScoreHeader, {
|
|
26033
|
+
variant: "landing",
|
|
26034
|
+
...scoreHeaderProps
|
|
26035
|
+
}),
|
|
26036
|
+
phase: reportReveal.phase,
|
|
26037
|
+
issueCount: report.diagnostics.length,
|
|
26038
|
+
emptyStateMessage: report.emptyStateMessage,
|
|
26039
|
+
lintFailureReason: report.lintFailureReason,
|
|
26040
|
+
skippedChecks: report.skippedChecks,
|
|
26041
|
+
incompleteMessage: report.incompleteMessage,
|
|
26042
|
+
actions: landingActions,
|
|
26043
|
+
selectedIndex: resolvedLandingSelectedIndex,
|
|
26044
|
+
onSelectionChange: setLandingSelectedIndex,
|
|
26045
|
+
onQuit
|
|
26046
|
+
}),
|
|
26047
|
+
issues: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DiagnosticList, {
|
|
26048
|
+
header: reportLayout.showsViewerScoreHeader ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScoreHeader, {
|
|
26049
|
+
variant: "viewer",
|
|
26050
|
+
...scoreHeaderProps
|
|
26051
|
+
}) : null,
|
|
26052
|
+
rows: diagnosticRows,
|
|
26053
|
+
entries: diagnosticListEntries,
|
|
26054
|
+
width: reportLayout.width,
|
|
26055
|
+
listColumnWidth: reportLayout.listColumnWidth,
|
|
26056
|
+
detailColumnWidth: reportLayout.detailColumnWidth,
|
|
26057
|
+
listHeight: reportLayout.listHeight,
|
|
26058
|
+
detailHeight: reportLayout.detailHeight,
|
|
26059
|
+
layout: reportLayout.layout,
|
|
26060
|
+
rootDirectory: report.rootDirectory,
|
|
26061
|
+
projectName: report.projectName,
|
|
26062
|
+
projectCount,
|
|
26063
|
+
initialSelectedRowIndex: resolvedViewerSelectedRowIndex,
|
|
26064
|
+
readRuleKeys: viewerReadRuleKeys,
|
|
26065
|
+
onSelectedRowIndexChange: handleViewerSelectionChange,
|
|
26066
|
+
onQuit,
|
|
26067
|
+
onBack: () => {
|
|
26068
|
+
setLandingSelectedIndex(Math.max(0, postReviewLandingActionIndex));
|
|
26069
|
+
setActiveReportScreen("landing");
|
|
26070
|
+
},
|
|
26071
|
+
exitHint: `esc back · ${exitHint}`
|
|
26072
|
+
})
|
|
26073
|
+
};
|
|
26074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [activeReportScreen === "landing" && shouldShowIssueStream ? issueStream : null, screenContent[activeReportScreen]] });
|
|
26041
26075
|
};
|
|
26042
26076
|
//#endregion
|
|
26043
26077
|
//#region ../../node_modules/.pnpm/cli-spinners@2.9.2/node_modules/cli-spinners/spinners.json
|
|
@@ -27958,14 +27992,29 @@ const printExitFooter = async (input) => {
|
|
|
27958
27992
|
}));
|
|
27959
27993
|
};
|
|
27960
27994
|
const performTuiHandoff = async (request, rootDirectory) => {
|
|
27961
|
-
|
|
27962
|
-
|
|
27995
|
+
let failureMessage = null;
|
|
27996
|
+
if (request.destination === "clipboard") {
|
|
27997
|
+
const didCopy = await copyToClipboard(request.prompt);
|
|
27998
|
+
recordCount(METRIC.agentHandoff, 1, {
|
|
27999
|
+
outcome: "clipboard",
|
|
28000
|
+
source: "tui",
|
|
28001
|
+
copied: didCopy
|
|
28002
|
+
});
|
|
28003
|
+
if (didCopy) {
|
|
28004
|
+
process.stdout.write(`${highlighter.success("✔")} Copied the prompt to your clipboard.\n`);
|
|
28005
|
+
return;
|
|
28006
|
+
}
|
|
28007
|
+
failureMessage = "Couldn't access the clipboard. Here's the prompt instead:";
|
|
28008
|
+
} else try {
|
|
28009
|
+
await launchCliAgent(request.destination, request.prompt, rootDirectory);
|
|
28010
|
+
return;
|
|
27963
28011
|
} catch {
|
|
27964
|
-
|
|
27965
|
-
process.stdout.write(`${highlighter.dim("──── Agent prompt ────")}\n`);
|
|
27966
|
-
process.stdout.write(`${request.prompt}\n`);
|
|
27967
|
-
process.stdout.write(`${highlighter.dim("──────────────────────")}\n`);
|
|
28012
|
+
failureMessage = `Couldn't launch ${CLI_AGENT_BINARIES[request.destination]}. Here's the prompt instead:`;
|
|
27968
28013
|
}
|
|
28014
|
+
process.stdout.write(`${highlighter.warn("⚠")} ${failureMessage}\n`);
|
|
28015
|
+
process.stdout.write(`${highlighter.dim("──── Agent prompt ────")}\n`);
|
|
28016
|
+
process.stdout.write(`${request.prompt}\n`);
|
|
28017
|
+
process.stdout.write(`${highlighter.dim("──────────────────────")}\n`);
|
|
27969
28018
|
};
|
|
27970
28019
|
const isCiUnconfigured = (directory) => !isReactDoctorWorkflowInstalled(findNearestPackageDirectory(directory) ?? directory);
|
|
27971
28020
|
const performCiSetup = async (rootDirectory) => {
|
|
@@ -28150,7 +28199,7 @@ const runMultiProjectScan = async (rootScanTarget, directories, input, scopePlan
|
|
|
28150
28199
|
projectDirectories: discoveredProjectScans.map((projectScan) => projectScan.directory),
|
|
28151
28200
|
isRootDeadCodeEnabled: input.options?.deadCode ?? rootProjectScan?.config?.deadCode ?? true
|
|
28152
28201
|
});
|
|
28153
|
-
if (workspaceDeadCodeOwner !== null) recordCount(METRIC.
|
|
28202
|
+
if (workspaceDeadCodeOwner !== null) recordCount(METRIC.scanWorkspaceMaintainabilityShared, 1, { projectCount: discoveredProjectScans.length });
|
|
28154
28203
|
return runMountedScan(rootDirectory, resolveScanPresentation(input, projectScans.map(({ projectScan }) => projectScan)), blockingLevel, async (context) => {
|
|
28155
28204
|
const startTime = performance$1.now();
|
|
28156
28205
|
let finishedCount = 0;
|
|
@@ -28314,5 +28363,5 @@ const runScanApp = async (input) => {
|
|
|
28314
28363
|
//#endregion
|
|
28315
28364
|
export { runScanApp };
|
|
28316
28365
|
|
|
28317
|
-
//# sourceMappingURL=run-scan-app-
|
|
28318
|
-
//# debugId=
|
|
28366
|
+
//# sourceMappingURL=run-scan-app-Cl2mqLLB.js.map
|
|
28367
|
+
//# debugId=6dc0cf38-4376-5d91-aa4f-da5cf7776357
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
4
|
-
import { i as warnDeprecatedDiff } from "./resolve-scope-
|
|
5
|
-
import { _ as resolveCliInspectOptions, i as validateModeFlags } from "./should-fail-scan-gate-
|
|
6
|
-
import { n as warnDeprecatedFailOn, r as runProjectMigrations, 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]="c0742eb3-ab6a-5c4f-8861-4ec0fb12fcd9")}catch(e){}}();
|
|
3
|
+
import { dn as resolveScanTarget, t as recordCount, w as METRIC, z as isNonInteractiveEnvironment } from "./record-metric-fdCvvcjz.js";
|
|
4
|
+
import { i as warnDeprecatedDiff } from "./resolve-scope-gLUuBxjI.js";
|
|
5
|
+
import { _ as resolveCliInspectOptions, i as validateModeFlags } from "./should-fail-scan-gate-Dch9vbPz.js";
|
|
6
|
+
import { n as warnDeprecatedFailOn, r as runProjectMigrations, t as inspectAction } from "./inspect-BfdplEq6.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
//#region src/cli/utils/should-use-tui.ts
|
|
9
9
|
const shouldUseTui = (input) => {
|
|
@@ -34,7 +34,7 @@ const runScanCommand = async (input) => {
|
|
|
34
34
|
warnDeprecatedFailOn(input.flags, scanTarget.userConfig);
|
|
35
35
|
warnDeprecatedDiff(input.flags, scanTarget.userConfig);
|
|
36
36
|
recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
|
|
37
|
-
const { runScanApp } = await import("./run-scan-app-
|
|
37
|
+
const { runScanApp } = await import("./run-scan-app-Cl2mqLLB.js");
|
|
38
38
|
const { shouldFail } = await runScanApp({
|
|
39
39
|
directory: input.directory,
|
|
40
40
|
scanTarget,
|
|
@@ -49,5 +49,5 @@ const runScanCommand = async (input) => {
|
|
|
49
49
|
//#endregion
|
|
50
50
|
export { runScanCommand };
|
|
51
51
|
|
|
52
|
-
//# sourceMappingURL=scan-
|
|
53
|
-
//# debugId=
|
|
52
|
+
//# sourceMappingURL=scan-7OBudBct.js.map
|
|
53
|
+
//# debugId=c0742eb3-ab6a-5c4f-8861-4ec0fb12fcd9
|