@birchui/doctor
Diagnose Birch UI installs: versions, duplicates, frameworks, license keys, styles and SSR setup
Functions#
compareVersionsfunction#
function compareVersions(a: Version, b: Version): numberDefined in packages/doctor/src/semver.ts:18
countBySeverityfunction#
function countBySeverity(findings: readonly Finding[]): Record<Severity, number>| Parameter | Type | Description |
|---|---|---|
findings | readonly Finding[] | — |
Defined in packages/doctor/src/report.ts:14
maskKeyfunction#
function maskKey(key: string): string| Parameter | Type | Description |
|---|---|---|
key | string | — |
Defined in packages/doctor/src/license-scan.ts:39
parseVersionfunction#
function parseVersion(text: string): Version | null| Parameter | Type | Description |
|---|---|---|
text | string | — |
Defined in packages/doctor/src/semver.ts:10
renderReportfunction#
function renderReport(report: DoctorReport): string| Parameter | Type | Description |
|---|---|---|
report | DoctorReport | — |
Defined in packages/doctor/src/report.ts:64
renderSummaryfunction#
function renderSummary(report: DoctorReport): string| Parameter | Type | Description |
|---|---|---|
report | DoctorReport | — |
Defined in packages/doctor/src/report.ts:27
runClifunction#
function runCli(argv: readonly string[], io: CliIo): Promise<number>| Parameter | Type | Description |
|---|---|---|
argv | readonly string[] | — |
io | CliIo | — |
Defined in packages/doctor/src/cli.ts:28
runDoctorfunction#
function runDoctor(options: DoctorOptions): Promise<DoctorReport>| Parameter | Type | Description |
|---|---|---|
options | DoctorOptions | — |
Defined in packages/doctor/src/doctor.ts:542
satisfiesfunction#
function satisfies(versionText: string, range: string): boolean | undefined| Parameter | Type | Description |
|---|---|---|
versionText | string | — |
range | string | — |
Defined in packages/doctor/src/semver.ts:97
toJsonfunction#
function toJson(report: DoctorReport): string| Parameter | Type | Description |
|---|---|---|
report | DoctorReport | — |
Defined in packages/doctor/src/report.ts:95
Interfaces#
CliIointerface#
interface CliIo| Property | Type | Description |
|---|---|---|
cwd | string | — |
env | Record<string, string | undefined> | — |
stdout | { write(text: string): unknown } | — |
stderr | { write(text: string): unknown } | — |
nowoptional | () => Date | — |
publicKeyoptional | Uint8Array | — |
Defined in packages/doctor/src/cli.ts:6
DoctorOptionsinterface#
interface DoctorOptions| Property | Type | Description |
|---|---|---|
cwd | string | — |
envoptional | Record<string, string | undefined> | — |
publicKeyoptional | Uint8Array | — |
nowoptional | Date | — |
nodeVersionoptional | string | — |
platformoptional | string | — |
Defined in packages/doctor/src/doctor.ts:73
DoctorReportinterface#
interface DoctorReport| Property | Type | Description |
|---|---|---|
root | string | — |
projectNameoptional | string | — |
nodeVersion | string | — |
platform | string | — |
packageManager | PackageManager | — |
packages | PackageSummary[] | — |
frameworks | FrameworkSummary[] | — |
ssr | string[] | — |
bundleroptional | string | — |
keys | KeyReport[] | — |
usedProducts | ProductId[] | — |
filesScanned | number | — |
findings | Finding[] | — |
Defined in packages/doctor/src/doctor.ts:57
Findinginterface#
interface Finding| Property | Type | Description |
|---|---|---|
id | string | — |
area | FindingArea | — |
severity | Severity | — |
title | string | — |
detailsoptional | string[] | — |
tipoptional | string | — |
Defined in packages/doctor/src/doctor.ts:33
FrameworkSummaryinterface#
interface FrameworkSummary| Property | Type | Description |
|---|---|---|
name | string | — |
label | string | — |
version | string | — |
supported | string | — |
isSupported | boolean | undefined | — |
Defined in packages/doctor/src/doctor.ts:49
KeyReportinterface#
interface KeyReport| Property | Type | Description |
|---|---|---|
source | KeySource | — |
masked | string | — |
status | LicenseStatus | — |
payload | LicensePayload | null | — |
coveredProducts | ProductId[] | — |
missingProducts | ProductId[] | — |
Defined in packages/doctor/src/license-scan.ts:19
KeySourceinterface#
interface KeySourceDefined in packages/doctor/src/license-scan.ts:13
PackageSummaryinterface#
interface PackageSummaryDefined in packages/doctor/src/doctor.ts:42
Versioninterface#
interface Version| Property | Type | Description |
|---|---|---|
major | number | — |
minor | number | — |
patch | number | — |
prerelease | string | — |
Defined in packages/doctor/src/semver.ts:1
Types#
FindingAreatype#
type FindingArea = 'packages' | 'frameworks' | 'license' | 'styles' | 'ssr' | 'bundle';Defined in packages/doctor/src/doctor.ts:31
Severitytype#
type Severity = 'error' | 'warn' | 'info' | 'ok';Defined in packages/doctor/src/doctor.ts:29