react-doctor 0.9.3-dev.48ec9a8 → 0.9.3-dev.7ce5dfa
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/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="80fc688d-8e21-59d6-abcd-27ce2265a7d3")}catch(e){}}();
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as NodeChildProcess from "node:child_process";
|
|
5
5
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -79340,6 +79340,7 @@ const METRIC = {
|
|
|
79340
79340
|
tuiFindingNavigated: "tui.finding_navigated",
|
|
79341
79341
|
tuiIssueStreamShown: "tui.issue_stream_shown",
|
|
79342
79342
|
tuiProjectPathContextShown: "tui.project_path_context_shown",
|
|
79343
|
+
tuiProjectSelectInlineShown: "tui.project_select_inline_shown",
|
|
79343
79344
|
tuiReportActionSelected: "tui.report_action_selected",
|
|
79344
79345
|
tuiCancelled: "tui.cancelled",
|
|
79345
79346
|
tuiScanInlineShown: "tui.scan_inline_shown",
|
|
@@ -79388,7 +79389,7 @@ const makeNoopConsole = () => ({
|
|
|
79388
79389
|
});
|
|
79389
79390
|
//#endregion
|
|
79390
79391
|
//#region src/cli/utils/version.ts
|
|
79391
|
-
const VERSION = "0.9.3-dev.
|
|
79392
|
+
const VERSION = "0.9.3-dev.7ce5dfa";
|
|
79392
79393
|
//#endregion
|
|
79393
79394
|
//#region src/cli/utils/json-mode.ts
|
|
79394
79395
|
let context = null;
|
|
@@ -79746,13 +79747,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
79746
79747
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
79747
79748
|
* standard `SENTRY_RELEASE` override.
|
|
79748
79749
|
*/
|
|
79749
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.3-dev.
|
|
79750
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.3-dev.7ce5dfa`;
|
|
79750
79751
|
/**
|
|
79751
79752
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
79752
79753
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
79753
79754
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
79754
79755
|
*/
|
|
79755
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.3-dev.
|
|
79756
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.3-dev.7ce5dfa") ? "development" : "production");
|
|
79756
79757
|
/**
|
|
79757
79758
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
79758
79759
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -97898,7 +97899,7 @@ const runScanCommand = async (input) => {
|
|
|
97898
97899
|
return;
|
|
97899
97900
|
}
|
|
97900
97901
|
recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
|
|
97901
|
-
const { runScanApp } = await import("./run-scan-app-
|
|
97902
|
+
const { runScanApp } = await import("./run-scan-app-QbtG43NL.js");
|
|
97902
97903
|
const { shouldFail } = await runScanApp({
|
|
97903
97904
|
directory: input.directory,
|
|
97904
97905
|
scanTarget,
|
|
@@ -99057,4 +99058,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
99057
99058
|
export { TUI_REPORT_DETAIL_WIDTH_FRACTION as $, shouldRecordOnboarding as A, buildSortedRuleGroups as B, createInvocationInspect as C, markOnboardingComplete as D, doctorFace as E, buildEmptyReportMessage as F, recordCount as G, formatLearnMoreLine as H, hasIncompleteScoreAnalysis as I, findNearestPackageDirectory as J, recordDistribution as K, buildNoScoreMessage as L, computeProjectedScore as M, formatElapsedTime as N, canAnimateOnboarding as O, buildCodeFrame as P, TUI_REPORT_COMPACT_MAX_ROWS as Q, hasLintHardFailure as R, deduplicateProjectScans as S, easeOutCubic as T, resolveBlockingLevel as U, formatFixRecipeLine as V, isReactDoctorWorkflowInstalled as W, CI_TRUST_COMPANIES as X, isUnicodeSupported as Y, METRIC as Z, launchCliAgent as _, succeed$3 as _t, selectProjects as a, buildRuleDocsUrl as at, formatSkippedProjectsMessage as b, resolveWorkspaceDeadCodeOwner as c, highlighter as ct, countUniqueScannedFiles as d, remainingDeadlineBudgetMs as dt, isCiEnvironment as et, setUpGitHubActions as f, resolveScanTarget as ft, copyToClipboard as g, void_ as gt, CLI_AGENT_BINARIES as h, sync as ht, discoverWorkspacePackages as i, Reporter as it, filterDiagnosticsByCategories as j, isOnboardingForced as k, resolveCliInspectOptions as l, isPathInsideDirectory as lt, detectLaunchableAgents as m, runPromise as mt, registerActiveTuiRenderer as n, GITHUB_ACTIONS_SETUP_URL as nt, resolveProjectScan as o, getCategoryImpact as ot, openUrl as p, yieldToEventLoop as pt, toForwardSlashes as q, shouldFailScanGate as r, Progress as rt, retryMissingProjectScores as s, hasPublishedFixRecipe as st, exitGracefully as t, DIAGNOSTIC_CATEGORY_BUCKETS as tt, filterScansForSurface as u, mapWithConcurrency as ut, buildHandoffPayload as v, printFooter as w, collectProjectSourceFileCounts as x, isShareOptedOut as y, buildRulePriorityMap as z };
|
|
99058
99059
|
|
|
99059
99060
|
//# sourceMappingURL=cli.js.map
|
|
99060
|
-
//# debugId=
|
|
99061
|
+
//# debugId=80fc688d-8e21-59d6-abcd-27ce2265a7d3
|
package/dist/lsp.js
CHANGED
|
@@ -77145,6 +77145,7 @@ const METRIC = {
|
|
|
77145
77145
|
tuiFindingNavigated: "tui.finding_navigated",
|
|
77146
77146
|
tuiIssueStreamShown: "tui.issue_stream_shown",
|
|
77147
77147
|
tuiProjectPathContextShown: "tui.project_path_context_shown",
|
|
77148
|
+
tuiProjectSelectInlineShown: "tui.project_select_inline_shown",
|
|
77148
77149
|
tuiReportActionSelected: "tui.report_action_selected",
|
|
77149
77150
|
tuiCancelled: "tui.cancelled",
|
|
77150
77151
|
tuiScanInlineShown: "tui.scan_inline_shown",
|
|
@@ -77450,5 +77451,5 @@ const startLanguageServer = () => {
|
|
|
77450
77451
|
};
|
|
77451
77452
|
//#endregion
|
|
77452
77453
|
export { startLanguageServer };
|
|
77453
|
-
!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]="
|
|
77454
|
-
//# debugId=
|
|
77454
|
+
!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]="fceafa22-ed8a-5111-8924-bf8de3935968")}catch(e){}}();
|
|
77455
|
+
//# debugId=fceafa22-ed8a-5111-8924-bf8de3935968
|
|
@@ -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]="536bbbaf-ba97-5df5-b678-926826008e2e")}catch(e){}}();
|
|
3
3
|
import { $ as TUI_REPORT_DETAIL_WIDTH_FRACTION, A as shouldRecordOnboarding, B as buildSortedRuleGroups, C as createInvocationInspect, D as markOnboardingComplete, E as doctorFace, F as buildEmptyReportMessage, G as recordCount, H as formatLearnMoreLine, I as hasIncompleteScoreAnalysis, J as findNearestPackageDirectory, K as recordDistribution, L as buildNoScoreMessage, M as computeProjectedScore, N as formatElapsedTime, O as canAnimateOnboarding, P as buildCodeFrame, Q as TUI_REPORT_COMPACT_MAX_ROWS, R as hasLintHardFailure, S as deduplicateProjectScans, T as easeOutCubic, U as resolveBlockingLevel, V as formatFixRecipeLine, W as isReactDoctorWorkflowInstalled, X as CI_TRUST_COMPANIES, Y as isUnicodeSupported, Z as METRIC, _ as launchCliAgent, _t as succeed, a as selectProjects, at as buildRuleDocsUrl, b as formatSkippedProjectsMessage, c as resolveWorkspaceDeadCodeOwner, ct as highlighter, d as countUniqueScannedFiles, dt as remainingDeadlineBudgetMs, et as isCiEnvironment, f as setUpGitHubActions, ft as resolveScanTarget, g as copyToClipboard, gt as void_, h as CLI_AGENT_BINARIES, ht as sync, i as discoverWorkspacePackages, it as Reporter, j as filterDiagnosticsByCategories, k as isOnboardingForced, l as resolveCliInspectOptions, lt as isPathInsideDirectory, m as detectLaunchableAgents, mt as runPromise, n as registerActiveTuiRenderer, nt as GITHUB_ACTIONS_SETUP_URL, o as resolveProjectScan, ot as getCategoryImpact, p as openUrl, pt as yieldToEventLoop, q as toForwardSlashes, r as shouldFailScanGate, rt as Progress, s as retryMissingProjectScores, st as hasPublishedFixRecipe, t as exitGracefully, tt as DIAGNOSTIC_CATEGORY_BUCKETS, u as filterScansForSurface, ut as mapWithConcurrency, v as buildHandoffPayload, w as printFooter, x as collectProjectSourceFileCounts, y as isShareOptedOut, z as buildRulePriorityMap } from "./cli.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { performance } from "node:perf_hooks";
|
|
@@ -1919,6 +1919,7 @@ const resolveSelectedDirectories = async (rootDirectory, input) => {
|
|
|
1919
1919
|
};
|
|
1920
1920
|
const promptProjectSelection = (packages, rootDirectory) => new Promise((resolve) => {
|
|
1921
1921
|
let disposeRenderer = () => {};
|
|
1922
|
+
recordCount(METRIC.tuiProjectSelectInlineShown);
|
|
1922
1923
|
const instance = render(/* @__PURE__ */ jsx(ProjectSelect, {
|
|
1923
1924
|
packages,
|
|
1924
1925
|
rootDirectory,
|
|
@@ -1927,7 +1928,7 @@ const promptProjectSelection = (packages, rootDirectory) => new Promise((resolve
|
|
|
1927
1928
|
resolve(directories);
|
|
1928
1929
|
}
|
|
1929
1930
|
}), {
|
|
1930
|
-
alternateScreen:
|
|
1931
|
+
alternateScreen: false,
|
|
1931
1932
|
exitOnCtrlC: false
|
|
1932
1933
|
});
|
|
1933
1934
|
let didClearRenderer = false;
|
|
@@ -2321,5 +2322,5 @@ const runScanApp = async (input) => {
|
|
|
2321
2322
|
//#endregion
|
|
2322
2323
|
export { runScanApp };
|
|
2323
2324
|
|
|
2324
|
-
//# sourceMappingURL=run-scan-app-
|
|
2325
|
-
//# debugId=
|
|
2325
|
+
//# sourceMappingURL=run-scan-app-QbtG43NL.js.map
|
|
2326
|
+
//# debugId=536bbbaf-ba97-5df5-b678-926826008e2e
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.9.3-dev.
|
|
3
|
+
"version": "0.9.3-dev.7ce5dfa",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"vscode-uri": "^3.1.0",
|
|
74
74
|
"yaml": "^2.9.0",
|
|
75
75
|
"deslop-js": "0.9.3",
|
|
76
|
-
"oxlint-plugin-react-doctor": "0.9.3-dev.
|
|
76
|
+
"oxlint-plugin-react-doctor": "0.9.3-dev.7ce5dfa"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"commander": "^14.0.3",
|
|
84
84
|
"ink-testing-library": "^4.0.0",
|
|
85
85
|
"ora": "^9.4.0",
|
|
86
|
-
"@react-doctor/api": "0.9.3",
|
|
87
86
|
"@react-doctor/core": "0.9.3",
|
|
88
|
-
"@react-doctor/language-server": "0.9.3"
|
|
87
|
+
"@react-doctor/language-server": "0.9.3",
|
|
88
|
+
"@react-doctor/api": "0.9.3"
|
|
89
89
|
},
|
|
90
90
|
"engines": {
|
|
91
91
|
"node": "^20.19.0 || >=22.13.0"
|