react-doctor 0.9.5-dev.4b03b15 → 0.9.5-dev.d62caa5
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,7 +1,7 @@
|
|
|
1
1
|
|
|
2
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]="ee33417e-c94f-5f10-ac59-9d4e202b7c9f")}catch(e){}}();
|
|
3
3
|
import { n as __require, r as __toESM, t as __commonJSMin } from "./chunk-q7NCDQ7-.js";
|
|
4
|
-
import { $ as filterDiagnosticsByCategories, $n as GITHUB_ACTIONS_SETUP_URL, $t as PRE_COMMIT_CONFIG_FILE, A as HANDOFF_TARGET_PREFERENCE_ID, An as VERSION, Ar as loadConfigWithSource, At as openWorkflowPullRequest, B as buildHandoffPayload, Bn as isNonInteractiveEnvironment, Br as log, Bt as spinner, C as isGatePending, Cn as buildSentryScope, Cr as highlighter, Ct as upgradeReactDoctorWorkflowInPlace, D as writePreference, Dn as setJsonReportMode, Dr as isReactDoctorError, Dt as recordDistribution, E as runMigrations, En as setJsonReportDirectory, Er as isPlainObject, Et as recordCount, F as CLI_AGENT_BINARIES, Fn as STAGED_FILES_TEMP_DIR_PREFIX, Fr as setColorEnabled, Ft as hasDoctorDependency, G as inspect, Gn as isCodingAgentEnvironment, H as collectProjectSourceFileCounts, Hn as isDebugFlagEnabled, Hr as provide$1, I as copyToClipboard, In as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, Ir as toRelativePath, It as hasDoctorScript, Jn as CI_URL, Jt as HUSKY_HOOKS_PATH, K as printHeadlessReport, Kn as CANONICAL_DISCORD_URL, Kt as HOOK_FILE_NAME, L as launchCliAgent, Lr as validateConfigTypes, Lt as installReactDoctorScriptStep, Mn as METRIC, Mr as messageFromUnknown, Mt as toForwardSlashes, N as SETUP_HINT_EVENT, Nr as remainingDeadlineBudgetMs, Nt as DOCTOR_PACKAGE_NAME, O as ACTION_UPGRADE_EVENT, On as writeJsonErrorReport, Or as isSameRuleKey, Ot as prompts, P as detectLaunchableAgents, Pn as SENTRY_FLUSH_TIMEOUT_MS, Pr as resolveScanTarget, Pt as findNearestPackageDirectory, Qt as OVERCOMMIT_CONFIG_FILE, R as computeDefaultSelectedAgents, Rt as isSpinnerSilent, S as openUrl, Sn as isEnvironmentError, Sr as hasReactRuntime, St as readReactDoctorWorkflow, T as recordGate, Tn as isJsonModeActive, Tr as isPathInsideDirectory, Tt as workflowUsesV1Action, U as deduplicateProjectScans, Ur as runPromise, V as formatSkippedProjectsMessage, Vr as gen, W as createInvocationInspect, Wn as isCiOrCodingAgentEnvironment, Wr as runSync, X as indentMultilineText, Xn as COMPILER_CLEANUP_RULE_KEYS, Xt as LEGACY_HOOK_RUNNER_RELATIVE_PATH, Yn as COMPILER_CLEANUP_BUCKET, Yt as LEFTHOOK_CONFIG_FILES, Z as printDiagnosticsDump, Zt as NON_BLOCKING_REACT_DOCTOR_COMMAND, _ as resolveCliInspectOptions, _n as cliLogger, _t as resolveBlockingLevel, a as shouldFailScanGate, an as getPackageJsonPath, ar as STAGED_FILES_PROJECT_CONFIG_FILENAMES, b as setUpGitHubActions, bn as isExpectedUserError, br as getEquivalentRuleKeys, bt as installReactDoctorWorkflow, c as selectProjects, cn as packageHasNestedRecordKey, cr as buildRuleDocsUrl, d as resolveProjectChangedLineRanges, dn as resolveGitPath, dr as detectAiTrainingEnvironment, dt as recordRunTraceId, en as REACT_DOCTOR_COMMAND, er as Git, et as buildEmptyReportMessage, f as resolveProjectDiffIncludePaths, fn as runGit, fr as discoverReactSubprojects, ft as finalizeScope, g as resolveWorkspaceDeadCodeOwner, gn as runCommand, gr as getBaselineDiffPlan, gt as isValidBlockingLevel, h as retryMissingProjectScores, hn as detectDefaultBranch, hr as formatReactDoctorError, ht as warnDeprecatedDiff, i as validateModeFlags, in as ensureTrailingNewline, ir as SKILL_NAME, j as INSTALL_AGENTS_PREFERENCE_ID, jn as CI_TRUST_COMPANIES, jr as mapWithConcurrency, jt as stageWorkflowFile, k as CI_PITCH_EVENT, kn as writeJsonReport, kr as listWorkspacePackages, kt as unrefStdin, l as buildCodeFrame, ln as packageHasRecordKey, lt as getActiveRunTrace, m as resolveProjectRelativeDirectory, mn as writeJsonFile, mr as formatErrorChain, mt as resolveScope, o as projectManifestChanged, on as isRecord, or as StagedFiles, p as resolveProjectSourceFilePaths, pn as runGitRaw, pr as findLegacyConfig, pt as isScopeValue, qn as CANONICAL_GITHUB_URL, qr as provide, qt as HOOK_RELATIVE_PATH, r as validateIncludeUntrackedScope, rn as VITE_PLUS_HOOKS_PATH, rt as resolveMergeBaseRef, sn as packageHasDependency, sr as buildJsonReport, t as exitGracefully, u as resolveProjectScan, un as readPackageJson, ur as clearConfigCache, ut as getLastRunTraceId, v as filterScansForSurface, vn as flushSentry, vr as getChangedLineRanges, vt as buildWorkflowContent, w as readPreference, wn as enableJsonMode, wr as isErrnoException, wt as upgradeWorkflowActionToV2, x as reportWorkflowResult, xn as formatEnvironmentError, xt as isReactDoctorWorkflowInstalled, y as countUniqueScannedFiles, yn as initializeSentry, yr as getDiffInfo, yt as getReactDoctorWorkflowPath, z as detectAvailableAgents, zn as CliInputError, zr as error, zt as setSpinnerSilent } from "./exit-gracefully-
|
|
4
|
+
import { $ as filterDiagnosticsByCategories, $n as GITHUB_ACTIONS_SETUP_URL, $t as PRE_COMMIT_CONFIG_FILE, A as HANDOFF_TARGET_PREFERENCE_ID, An as VERSION, Ar as loadConfigWithSource, At as openWorkflowPullRequest, B as buildHandoffPayload, Bn as isNonInteractiveEnvironment, Br as log, Bt as spinner, C as isGatePending, Cn as buildSentryScope, Cr as highlighter, Ct as upgradeReactDoctorWorkflowInPlace, D as writePreference, Dn as setJsonReportMode, Dr as isReactDoctorError, Dt as recordDistribution, E as runMigrations, En as setJsonReportDirectory, Er as isPlainObject, Et as recordCount, F as CLI_AGENT_BINARIES, Fn as STAGED_FILES_TEMP_DIR_PREFIX, Fr as setColorEnabled, Ft as hasDoctorDependency, G as inspect, Gn as isCodingAgentEnvironment, H as collectProjectSourceFileCounts, Hn as isDebugFlagEnabled, Hr as provide$1, I as copyToClipboard, In as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, Ir as toRelativePath, It as hasDoctorScript, Jn as CI_URL, Jt as HUSKY_HOOKS_PATH, K as printHeadlessReport, Kn as CANONICAL_DISCORD_URL, Kt as HOOK_FILE_NAME, L as launchCliAgent, Lr as validateConfigTypes, Lt as installReactDoctorScriptStep, Mn as METRIC, Mr as messageFromUnknown, Mt as toForwardSlashes, N as SETUP_HINT_EVENT, Nr as remainingDeadlineBudgetMs, Nt as DOCTOR_PACKAGE_NAME, O as ACTION_UPGRADE_EVENT, On as writeJsonErrorReport, Or as isSameRuleKey, Ot as prompts, P as detectLaunchableAgents, Pn as SENTRY_FLUSH_TIMEOUT_MS, Pr as resolveScanTarget, Pt as findNearestPackageDirectory, Qt as OVERCOMMIT_CONFIG_FILE, R as computeDefaultSelectedAgents, Rt as isSpinnerSilent, S as openUrl, Sn as isEnvironmentError, Sr as hasReactRuntime, St as readReactDoctorWorkflow, T as recordGate, Tn as isJsonModeActive, Tr as isPathInsideDirectory, Tt as workflowUsesV1Action, U as deduplicateProjectScans, Ur as runPromise, V as formatSkippedProjectsMessage, Vr as gen, W as createInvocationInspect, Wn as isCiOrCodingAgentEnvironment, Wr as runSync, X as indentMultilineText, Xn as COMPILER_CLEANUP_RULE_KEYS, Xt as LEGACY_HOOK_RUNNER_RELATIVE_PATH, Yn as COMPILER_CLEANUP_BUCKET, Yt as LEFTHOOK_CONFIG_FILES, Z as printDiagnosticsDump, Zt as NON_BLOCKING_REACT_DOCTOR_COMMAND, _ as resolveCliInspectOptions, _n as cliLogger, _t as resolveBlockingLevel, a as shouldFailScanGate, an as getPackageJsonPath, ar as STAGED_FILES_PROJECT_CONFIG_FILENAMES, b as setUpGitHubActions, bn as isExpectedUserError, br as getEquivalentRuleKeys, bt as installReactDoctorWorkflow, c as selectProjects, cn as packageHasNestedRecordKey, cr as buildRuleDocsUrl, d as resolveProjectChangedLineRanges, dn as resolveGitPath, dr as detectAiTrainingEnvironment, dt as recordRunTraceId, en as REACT_DOCTOR_COMMAND, er as Git, et as buildEmptyReportMessage, f as resolveProjectDiffIncludePaths, fn as runGit, fr as discoverReactSubprojects, ft as finalizeScope, g as resolveWorkspaceDeadCodeOwner, gn as runCommand, gr as getBaselineDiffPlan, gt as isValidBlockingLevel, h as retryMissingProjectScores, hn as detectDefaultBranch, hr as formatReactDoctorError, ht as warnDeprecatedDiff, i as validateModeFlags, in as ensureTrailingNewline, ir as SKILL_NAME, j as INSTALL_AGENTS_PREFERENCE_ID, jn as CI_TRUST_COMPANIES, jr as mapWithConcurrency, jt as stageWorkflowFile, k as CI_PITCH_EVENT, kn as writeJsonReport, kr as listWorkspacePackages, kt as unrefStdin, l as buildCodeFrame, ln as packageHasRecordKey, lt as getActiveRunTrace, m as resolveProjectRelativeDirectory, mn as writeJsonFile, mr as formatErrorChain, mt as resolveScope, o as projectManifestChanged, on as isRecord, or as StagedFiles, p as resolveProjectSourceFilePaths, pn as runGitRaw, pr as findLegacyConfig, pt as isScopeValue, qn as CANONICAL_GITHUB_URL, qr as provide, qt as HOOK_RELATIVE_PATH, r as validateIncludeUntrackedScope, rn as VITE_PLUS_HOOKS_PATH, rt as resolveMergeBaseRef, sn as packageHasDependency, sr as buildJsonReport, t as exitGracefully, u as resolveProjectScan, un as readPackageJson, ur as clearConfigCache, ut as getLastRunTraceId, v as filterScansForSurface, vn as flushSentry, vr as getChangedLineRanges, vt as buildWorkflowContent, w as readPreference, wn as enableJsonMode, wr as isErrnoException, wt as upgradeWorkflowActionToV2, x as reportWorkflowResult, xn as formatEnvironmentError, xt as isReactDoctorWorkflowInstalled, y as countUniqueScannedFiles, yn as initializeSentry, yr as getDiffInfo, yt as getReactDoctorWorkflowPath, z as detectAvailableAgents, zn as CliInputError, zr as error, zt as setSpinnerSilent } from "./exit-gracefully-BpFKnDBW.js";
|
|
5
5
|
import { execFile, execFileSync } from "node:child_process";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import path from "node:path";
|
|
@@ -13146,7 +13146,7 @@ const runScanCommand = async (input) => {
|
|
|
13146
13146
|
warnDeprecatedFailOn(input.flags, scanTarget.userConfig);
|
|
13147
13147
|
warnDeprecatedDiff(input.flags, scanTarget.userConfig);
|
|
13148
13148
|
recordCount(METRIC.cliInvoked, 1, { command: input.invocationCommand });
|
|
13149
|
-
const { runScanApp } = await import("./run-scan-app-
|
|
13149
|
+
const { runScanApp } = await import("./run-scan-app-AXOBUPR1.js");
|
|
13150
13150
|
const { shouldFail } = await runScanApp({
|
|
13151
13151
|
directory: input.directory,
|
|
13152
13152
|
scanTarget,
|
|
@@ -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]="89a760aa-147c-5514-a8a8-2f73148b39a6")}catch(e){}}();
|
|
3
3
|
import { n as __require, r as __toESM$1, t as __commonJSMin$1 } from "./chunk-q7NCDQ7-.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as NodeChildProcess from "node:child_process";
|
|
@@ -63766,6 +63766,7 @@ const analyzeConfigNode = (node, analysis, allowCompilerTransform, isCompilerTra
|
|
|
63766
63766
|
const importBinding = getImportBinding(analysis.sourceFile, node.expression.text);
|
|
63767
63767
|
if (importBinding) {
|
|
63768
63768
|
if (allowCompilerTransform && isCompilerTransformModule(importBinding.moduleSpecifier, importBinding.exportName)) return true;
|
|
63769
|
+
if (allowCompilerTransform && importBinding.moduleSpecifier === "@rolldown/plugin-babel" && importBinding.exportName === "default" && node.arguments.some((argument) => analyzeConfigNode(argument, analysis, false))) return true;
|
|
63769
63770
|
const hasCompilerTransform = analyzeImportedConfig({
|
|
63770
63771
|
analysis,
|
|
63771
63772
|
moduleSpecifier: importBinding.moduleSpecifier,
|
|
@@ -76497,7 +76498,7 @@ const makeNoopConsole = () => ({
|
|
|
76497
76498
|
});
|
|
76498
76499
|
//#endregion
|
|
76499
76500
|
//#region src/cli/utils/version.ts
|
|
76500
|
-
const VERSION = "0.9.5-dev.
|
|
76501
|
+
const VERSION = "0.9.5-dev.d62caa5";
|
|
76501
76502
|
//#endregion
|
|
76502
76503
|
//#region src/cli/utils/json-mode.ts
|
|
76503
76504
|
let context = null;
|
|
@@ -76958,13 +76959,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
76958
76959
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
76959
76960
|
* standard `SENTRY_RELEASE` override.
|
|
76960
76961
|
*/
|
|
76961
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.5-dev.
|
|
76962
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.5-dev.d62caa5`;
|
|
76962
76963
|
/**
|
|
76963
76964
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
76964
76965
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
76965
76966
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
76966
76967
|
*/
|
|
76967
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.5-dev.
|
|
76968
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.5-dev.d62caa5") ? "development" : "production");
|
|
76968
76969
|
/**
|
|
76969
76970
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
76970
76971
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -84173,5 +84174,5 @@ const exitGracefully = () => {
|
|
|
84173
84174
|
//#endregion
|
|
84174
84175
|
export { filterDiagnosticsByCategories as $, GITHUB_ACTIONS_SETUP_URL as $n, PRE_COMMIT_CONFIG_FILE as $t, HANDOFF_TARGET_PREFERENCE_ID as A, VERSION as An, loadConfigWithSource as Ar, openWorkflowPullRequest as At, buildHandoffPayload as B, isNonInteractiveEnvironment as Bn, log as Br, spinner as Bt, isGatePending as C, buildSentryScope as Cn, highlighter as Cr, upgradeReactDoctorWorkflowInPlace as Ct, writePreference as D, setJsonReportMode as Dn, isReactDoctorError as Dr, recordDistribution as Dt, runMigrations as E, setJsonReportDirectory as En, isPlainObject as Er, recordCount as Et, CLI_AGENT_BINARIES as F, STAGED_FILES_TEMP_DIR_PREFIX as Fn, setColorEnabled as Fr, hasDoctorDependency as Ft, inspect as G, isCodingAgentEnvironment as Gn, sync as Gr, chalk as Gt, collectProjectSourceFileCounts as H, isDebugFlagEnabled as Hn, provide as Hr, isWide as Ht, copyToClipboard as I, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as In, toRelativePath as Ir, hasDoctorScript as It, formatElapsedTime as J, CI_URL as Jn, succeed$3 as Jr, HUSKY_HOOKS_PATH as Jt, printHeadlessReport as K, CANONICAL_DISCORD_URL as Kn, void_ as Kr, HOOK_FILE_NAME as Kt, launchCliAgent as L, TUI_REPORT_COMPACT_MAX_ROWS as Ln, validateConfigTypes as Lr, installReactDoctorScriptStep as Lt, ONBOARDING_EVENT as M, METRIC as Mn, messageFromUnknown as Mr, toForwardSlashes as Mt, SETUP_HINT_EVENT as N, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as Nn, remainingDeadlineBudgetMs as Nr, DOCTOR_PACKAGE_NAME as Nt, ACTION_UPGRADE_EVENT as O, writeJsonErrorReport as On, isSameRuleKey as Or, prompts as Ot, detectLaunchableAgents as P, SENTRY_FLUSH_TIMEOUT_MS as Pn, resolveScanTarget as Pr, findNearestPackageDirectory as Pt, formatDiagnosticSite as Q, DIAGNOSTIC_CATEGORY_BUCKETS as Qn, OVERCOMMIT_CONFIG_FILE as Qt, computeDefaultSelectedAgents as R, TUI_REPORT_DETAIL_WIDTH_FRACTION as Rn, yieldToEventLoop as Rr, isSpinnerSilent as Rt, openUrl as S, isEnvironmentError as Sn, hasReactRuntime as Sr, readReactDoctorWorkflow as St, recordGate as T, isJsonModeActive as Tn, isPathInsideDirectory as Tr, workflowUsesV1Action as Tt, deduplicateProjectScans as U, isCiEnvironment as Un, runPromise as Ur, stripAnsi as Ut, formatSkippedProjectsMessage as V, isGitHookEnvironment as Vn, gen as Vr, isFullWidth as Vt, createInvocationInspect as W, isCiOrCodingAgentEnvironment as Wn, runSync as Wr, isUnicodeSupported as Wt, indentMultilineText as X, COMPILER_CLEANUP_RULE_KEYS as Xn, LEGACY_HOOK_RUNNER_RELATIVE_PATH as Xt, printFooter as Y, COMPILER_CLEANUP_BUCKET as Yn, LEFTHOOK_CONFIG_FILES as Yt, printDiagnosticsDump as Z, CONFIG_SCHEMA_URL as Zn, NON_BLOCKING_REACT_DOCTOR_COMMAND as Zt, resolveCliInspectOptions as _, cliLogger as _n, getCategoryImpact as _r, resolveBlockingLevel as _t, shouldFailScanGate as a, getPackageJsonPath as an, STAGED_FILES_PROJECT_CONFIG_FILENAMES as ar, buildRulePriorityMap as at, setUpGitHubActions as b, isExpectedUserError as bn, getEquivalentRuleKeys as br, installReactDoctorWorkflow as bt, selectProjects as c, packageHasNestedRecordKey as cn, buildRuleDocsUrl as cr, formatLearnMoreLine as ct, resolveProjectChangedLineRanges as d, resolveGitPath as dn, detectAiTrainingEnvironment as dr, recordRunTraceId as dt, REACT_DOCTOR_COMMAND as en, Git as er, buildEmptyReportMessage as et, resolveProjectDiffIncludePaths as f, runGit as fn, discoverReactSubprojects as fr, finalizeScope as ft, resolveWorkspaceDeadCodeOwner as g, runCommand as gn, getBaselineDiffPlan as gr, isValidBlockingLevel as gt, retryMissingProjectScores as h, detectDefaultBranch as hn, formatReactDoctorError as hr, warnDeprecatedDiff as ht, validateModeFlags as i, ensureTrailingNewline as in, SKILL_NAME as ir, hasLintHardFailure as it, INSTALL_AGENTS_PREFERENCE_ID as j, CI_TRUST_COMPANIES as jn, mapWithConcurrency as jr, stageWorkflowFile as jt, CI_PITCH_EVENT as k, writeJsonReport as kn, listWorkspacePackages as kr, unrefStdin as kt, buildCodeFrame as l, packageHasRecordKey as ln, calculateScore as lr, getActiveRunTrace as lt, resolveProjectRelativeDirectory as m, writeJsonFile as mn, formatErrorChain as mr, resolveScope as mt, registerActiveTuiRenderer as n, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as nn, Progress as nr, buildNoScoreMessage as nt, projectManifestChanged as o, isRecord as on, StagedFiles as or, buildSortedRuleGroups as ot, resolveProjectSourceFilePaths as p, runGitRaw as pn, findLegacyConfig as pr, isScopeValue as pt, pluralize as q, CANONICAL_GITHUB_URL as qn, provide$2 as qr, HOOK_RELATIVE_PATH as qt, validateIncludeUntrackedScope as r, VITE_PLUS_HOOKS_PATH as rn, Reporter as rr, resolveMergeBaseRef as rt, discoverWorkspacePackages as s, packageHasDependency as sn, buildJsonReport as sr, formatFixRecipeLine as st, exitGracefully as t, SIMPLE_GIT_HOOKS_CONFIG_FILE as tn, LEGACY_CONFIG_FILENAME as tr, hasIncompleteScoreAnalysis as tt, resolveProjectScan as u, readPackageJson as un, clearConfigCache as ur, getLastRunTraceId as ut, filterScansForSurface as v, flushSentry as vn, getChangedLineRanges as vr, buildWorkflowContent as vt, readPreference as w, enableJsonMode as wn, isErrnoException as wr, upgradeWorkflowActionToV2 as wt, reportWorkflowResult as x, formatEnvironmentError as xn, hasPublishedFixRecipe as xr, isReactDoctorWorkflowInstalled as xt, countUniqueScannedFiles as y, initializeSentry as yn, getDiffInfo as yr, getReactDoctorWorkflowPath as yt, detectAvailableAgents as z, CliInputError as zn, error$1 as zr, setSpinnerSilent as zt };
|
|
84175
84176
|
|
|
84176
|
-
//# sourceMappingURL=exit-gracefully-
|
|
84177
|
-
//# debugId=
|
|
84177
|
+
//# sourceMappingURL=exit-gracefully-BpFKnDBW.js.map
|
|
84178
|
+
//# debugId=89a760aa-147c-5514-a8a8-2f73148b39a6
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0399eadc-f266-5008-9957-f682eb0b9328")}catch(e){}}();
|
|
3
3
|
import { i as __toESM$1, r as __require, t as __commonJSMin$1 } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
|
|
@@ -63604,6 +63604,7 @@ const analyzeConfigNode = (node, analysis, allowCompilerTransform, isCompilerTra
|
|
|
63604
63604
|
const importBinding = getImportBinding(analysis.sourceFile, node.expression.text);
|
|
63605
63605
|
if (importBinding) {
|
|
63606
63606
|
if (allowCompilerTransform && isCompilerTransformModule(importBinding.moduleSpecifier, importBinding.exportName)) return true;
|
|
63607
|
+
if (allowCompilerTransform && importBinding.moduleSpecifier === "@rolldown/plugin-babel" && importBinding.exportName === "default" && node.arguments.some((argument) => analyzeConfigNode(argument, analysis, false))) return true;
|
|
63607
63608
|
const hasCompilerTransform = analyzeImportedConfig({
|
|
63608
63609
|
analysis,
|
|
63609
63610
|
moduleSpecifier: importBinding.moduleSpecifier,
|
|
@@ -75951,4 +75952,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
75951
75952
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
75952
75953
|
|
|
75953
75954
|
//# sourceMappingURL=index.js.map
|
|
75954
|
-
//# debugId=
|
|
75955
|
+
//# debugId=0399eadc-f266-5008-9957-f682eb0b9328
|
package/dist/lsp.js
CHANGED
|
@@ -63703,6 +63703,7 @@ const analyzeConfigNode = (node, analysis, allowCompilerTransform, isCompilerTra
|
|
|
63703
63703
|
const importBinding = getImportBinding(analysis.sourceFile, node.expression.text);
|
|
63704
63704
|
if (importBinding) {
|
|
63705
63705
|
if (allowCompilerTransform && isCompilerTransformModule(importBinding.moduleSpecifier, importBinding.exportName)) return true;
|
|
63706
|
+
if (allowCompilerTransform && importBinding.moduleSpecifier === "@rolldown/plugin-babel" && importBinding.exportName === "default" && node.arguments.some((argument) => analyzeConfigNode(argument, analysis, false))) return true;
|
|
63706
63707
|
const hasCompilerTransform = analyzeImportedConfig({
|
|
63707
63708
|
analysis,
|
|
63708
63709
|
moduleSpecifier: importBinding.moduleSpecifier,
|
|
@@ -77643,5 +77644,5 @@ const startLanguageServer = () => {
|
|
|
77643
77644
|
};
|
|
77644
77645
|
//#endregion
|
|
77645
77646
|
export { startLanguageServer };
|
|
77646
|
-
!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]="
|
|
77647
|
-
//# debugId=
|
|
77647
|
+
!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]="98354d75-fc1f-56eb-b473-0df4445d6b77")}catch(e){}}();
|
|
77648
|
+
//# debugId=98354d75-fc1f-56eb-b473-0df4445d6b77
|
|
@@ -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]="f137037f-6566-51a7-80a5-ca37c40ca522")}catch(e){}}();
|
|
3
3
|
import { n as __require, r as __toESM, t as __commonJSMin } from "./chunk-q7NCDQ7-.js";
|
|
4
|
-
import { $ as filterDiagnosticsByCategories, $n as GITHUB_ACTIONS_SETUP_URL, B as buildHandoffPayload, C as isGatePending, Cr as highlighter, Dt as recordDistribution, Et as recordCount, F as CLI_AGENT_BINARIES, Gr as sync, Gt as chalk, H as collectProjectSourceFileCounts, Ht as isWide$1, I as copyToClipboard, J as formatElapsedTime, Jr as succeed, Kr as void_, L as launchCliAgent, Ln as TUI_REPORT_COMPACT_MAX_ROWS, M as ONBOARDING_EVENT, Mn as METRIC, Mt as toForwardSlashes, Nr as remainingDeadlineBudgetMs, P as detectLaunchableAgents, Pr as resolveScanTarget, Pt as findNearestPackageDirectory, Q as formatDiagnosticSite, Qn as DIAGNOSTIC_CATEGORY_BUCKETS, Rn as TUI_REPORT_DETAIL_WIDTH_FRACTION, Rr as yieldToEventLoop, S as openUrl, T as recordGate, Tr as isPathInsideDirectory, U as deduplicateProjectScans, Un as isCiEnvironment, Ur as runPromise, Ut as stripAnsi, V as formatSkippedProjectsMessage, Vn as isGitHookEnvironment, Vt as isFullWidth$1, W as createInvocationInspect, Wt as isUnicodeSupported, Y as printFooter, Z as printDiagnosticsDump, _ as resolveCliInspectOptions, _n as cliLogger, _r as getCategoryImpact, _t as resolveBlockingLevel, a as shouldFailScanGate, at as buildRulePriorityMap, b as setUpGitHubActions, c as selectProjects, cr as buildRuleDocsUrl, ct as formatLearnMoreLine, d as resolveProjectChangedLineRanges, et as buildEmptyReportMessage, f as resolveProjectDiffIncludePaths, ft as finalizeScope, g as resolveWorkspaceDeadCodeOwner, gr as getBaselineDiffPlan, h as retryMissingProjectScores, it as hasLintHardFailure, jn as CI_TRUST_COMPANIES, jr as mapWithConcurrency, l as buildCodeFrame, lr as calculateScore, mt as resolveScope, n as registerActiveTuiRenderer, nr as Progress, nt as buildNoScoreMessage, o as projectManifestChanged, ot as buildSortedRuleGroups, p as resolveProjectSourceFilePaths, q as pluralize, r as validateIncludeUntrackedScope, rr as Reporter, rt as resolveMergeBaseRef, s as discoverWorkspacePackages, st as formatFixRecipeLine, t as exitGracefully, tt as hasIncompleteScoreAnalysis, u as resolveProjectScan, v as filterScansForSurface, vr as getChangedLineRanges, xr as hasPublishedFixRecipe, xt as isReactDoctorWorkflowInstalled, y as countUniqueScannedFiles, yr as getDiffInfo } from "./exit-gracefully-
|
|
4
|
+
import { $ as filterDiagnosticsByCategories, $n as GITHUB_ACTIONS_SETUP_URL, B as buildHandoffPayload, C as isGatePending, Cr as highlighter, Dt as recordDistribution, Et as recordCount, F as CLI_AGENT_BINARIES, Gr as sync, Gt as chalk, H as collectProjectSourceFileCounts, Ht as isWide$1, I as copyToClipboard, J as formatElapsedTime, Jr as succeed, Kr as void_, L as launchCliAgent, Ln as TUI_REPORT_COMPACT_MAX_ROWS, M as ONBOARDING_EVENT, Mn as METRIC, Mt as toForwardSlashes, Nr as remainingDeadlineBudgetMs, P as detectLaunchableAgents, Pr as resolveScanTarget, Pt as findNearestPackageDirectory, Q as formatDiagnosticSite, Qn as DIAGNOSTIC_CATEGORY_BUCKETS, Rn as TUI_REPORT_DETAIL_WIDTH_FRACTION, Rr as yieldToEventLoop, S as openUrl, T as recordGate, Tr as isPathInsideDirectory, U as deduplicateProjectScans, Un as isCiEnvironment, Ur as runPromise, Ut as stripAnsi, V as formatSkippedProjectsMessage, Vn as isGitHookEnvironment, Vt as isFullWidth$1, W as createInvocationInspect, Wt as isUnicodeSupported, Y as printFooter, Z as printDiagnosticsDump, _ as resolveCliInspectOptions, _n as cliLogger, _r as getCategoryImpact, _t as resolveBlockingLevel, a as shouldFailScanGate, at as buildRulePriorityMap, b as setUpGitHubActions, c as selectProjects, cr as buildRuleDocsUrl, ct as formatLearnMoreLine, d as resolveProjectChangedLineRanges, et as buildEmptyReportMessage, f as resolveProjectDiffIncludePaths, ft as finalizeScope, g as resolveWorkspaceDeadCodeOwner, gr as getBaselineDiffPlan, h as retryMissingProjectScores, it as hasLintHardFailure, jn as CI_TRUST_COMPANIES, jr as mapWithConcurrency, l as buildCodeFrame, lr as calculateScore, mt as resolveScope, n as registerActiveTuiRenderer, nr as Progress, nt as buildNoScoreMessage, o as projectManifestChanged, ot as buildSortedRuleGroups, p as resolveProjectSourceFilePaths, q as pluralize, r as validateIncludeUntrackedScope, rr as Reporter, rt as resolveMergeBaseRef, s as discoverWorkspacePackages, st as formatFixRecipeLine, t as exitGracefully, tt as hasIncompleteScoreAnalysis, u as resolveProjectScan, v as filterScansForSurface, vr as getChangedLineRanges, xr as hasPublishedFixRecipe, xt as isReactDoctorWorkflowInstalled, y as countUniqueScannedFiles, yr as getDiffInfo } from "./exit-gracefully-BpFKnDBW.js";
|
|
5
5
|
import { EventEmitter } from "node:events";
|
|
6
6
|
import { execFileSync } from "node:child_process";
|
|
7
7
|
import path from "node:path";
|
|
@@ -28307,5 +28307,5 @@ const runScanApp = async (input) => {
|
|
|
28307
28307
|
//#endregion
|
|
28308
28308
|
export { runScanApp };
|
|
28309
28309
|
|
|
28310
|
-
//# sourceMappingURL=run-scan-app-
|
|
28311
|
-
//# debugId=
|
|
28310
|
+
//# sourceMappingURL=run-scan-app-AXOBUPR1.js.map
|
|
28311
|
+
//# debugId=f137037f-6566-51a7-80a5-ca37c40ca522
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.9.5-dev.
|
|
3
|
+
"version": "0.9.5-dev.d62caa5",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"vscode-uri": "^3.1.0",
|
|
70
70
|
"yaml": "^2.9.0",
|
|
71
71
|
"yoga-layout": "~3.2.1",
|
|
72
|
-
"oxlint-plugin-react-doctor": "0.9.5-dev.
|
|
72
|
+
"oxlint-plugin-react-doctor": "0.9.5-dev.d62caa5",
|
|
73
73
|
"deslop-js": "0.9.5"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|