claudepluginhub 0.10.0 → 0.12.0

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.
@@ -0,0 +1,342 @@
1
+ import { boundEvidenceString, boundMessage, cappedList, compareFindings, MAX_EVIDENCE_ITEMS, MAX_PLUGIN_IDS_PER_FINDING, } from './report.js';
2
+ import { isDependencyErrorKind } from './sanitize.js';
3
+ import { findOverlaps } from './overlap.js';
4
+ /**
5
+ * The single source of truth for finding codes, severities, and categories.
6
+ * Rules and renderers both key off this table, so severity and category
7
+ * policy cannot drift.
8
+ *
9
+ * Category controls PRESENTATION tier (which output section a finding
10
+ * appears in). Severity controls exit codes and --strict behaviour.
11
+ *
12
+ * Facts vs findings: capability inventory (hooks exist, MCP servers exist,
13
+ * env key names, monitors, estimates) lives on plugin entries as FIELDS. The
14
+ * findings list carries only actionable conditions — a healthy plugin with
15
+ * hooks and MCP servers produces zero findings.
16
+ *
17
+ * Remediation policy: inspection-first, never chained, never destructive on
18
+ * ambiguity. A mutating suggestion appears only when its target is
19
+ * unambiguous from the finding itself.
20
+ */
21
+ export const FINDING_CODES = {
22
+ record_malformed: { severity: 'warning', category: 'coverage', title: 'Malformed plugin list record' },
23
+ claude_plugin_load_error: { severity: 'error', category: 'confirmed_problem', title: 'Claude Code reports a plugin load error' },
24
+ install_path_missing: { severity: 'error', category: 'confirmed_problem', title: 'Install path does not exist' },
25
+ install_path_unreadable: { severity: 'error', category: 'confirmed_problem', title: 'Install path is not readable' },
26
+ install_path_not_directory: { severity: 'error', category: 'confirmed_problem', title: 'Install path is not a directory' },
27
+ disabled_record_issue: { severity: 'info', category: 'maintenance', title: 'Disabled installation has stale or invalid content' },
28
+ duplicate_record: { severity: 'warning', category: 'maintenance', title: 'Duplicate installation record' },
29
+ redundant_enabled_records: { severity: 'info', category: 'maintenance', title: 'Redundant enabled installation records' },
30
+ duplicate_enabled_records: { severity: 'warning', category: 'coverage', title: 'Multiple enabled installation records' },
31
+ effective_selection_ambiguous: { severity: 'warning', category: 'coverage', title: 'Effective plugin selection is ambiguous' },
32
+ scope_unknown: { severity: 'info', category: 'coverage', title: 'Unrecognized plugin scope' },
33
+ manifest_invalid_json: { severity: 'error', category: 'confirmed_problem', title: 'Plugin manifest is not valid JSON' },
34
+ manifest_invalid_name: { severity: 'error', category: 'confirmed_problem', title: 'Plugin manifest name is invalid' },
35
+ manifest_field_invalid: { severity: 'error', category: 'confirmed_problem', title: 'Plugin manifest field has an invalid type' },
36
+ declared_component_missing: { severity: 'warning', category: 'review', title: 'Manifest-declared component path is missing' },
37
+ component_parse_error: { severity: 'warning', category: 'review', title: 'Component configuration could not be parsed' },
38
+ exact_component_overlap: { severity: 'warning', category: 'review', title: 'Exact component content overlap' },
39
+ hook_broad_unconditional: { severity: 'warning', category: 'review', title: 'Broad unconditional command hook' },
40
+ prerequisite_missing: { severity: 'warning', category: 'review', title: 'Declared executable not found on PATH' },
41
+ bin_not_executable: { severity: 'warning', category: 'review', title: 'bin/ file is not executable' },
42
+ dependency_missing: { severity: 'warning', category: 'review', title: 'Declared plugin dependency is not installed' },
43
+ dependency_disabled: { severity: 'warning', category: 'review', title: 'Declared plugin dependency is disabled' },
44
+ dependency_resolution_unknown: { severity: 'info', category: 'coverage', title: 'Plugin dependency could not be verified' },
45
+ lsp_extension_conflict: { severity: 'warning', category: 'review', title: 'Multiple LSP servers claim the same extension' },
46
+ scan_incomplete: { severity: 'warning', category: 'coverage', title: 'Plugin scan hit a resource limit' },
47
+ symlink_skipped: { severity: 'warning', category: 'coverage', title: 'Symlinks skipped during scan' },
48
+ };
49
+ const INSPECT_REMEDIATION = 'Inspect with `claude plugin list` or `/plugin`; identify the unwanted scope or version and back up any plugin data before removing anything.';
50
+ const VALIDATE_REMEDIATION = 'Run `claude plugin validate <plugin install path>` for authoritative validation.';
51
+ export function makeFinding(code, message, pluginIds, evidence, remediation) {
52
+ const { severity, category, title } = FINDING_CODES[code];
53
+ return {
54
+ code,
55
+ severity,
56
+ category,
57
+ title,
58
+ message: boundMessage(message),
59
+ pluginIds: cappedList([...new Set(pluginIds)].sort(), MAX_PLUGIN_IDS_PER_FINDING),
60
+ ...(evidence ? { evidence } : {}),
61
+ ...(remediation ? { remediation } : {}),
62
+ };
63
+ }
64
+ function evidenceList(values) {
65
+ return cappedList(values.map(boundEvidenceString), MAX_EVIDENCE_ITEMS);
66
+ }
67
+ /** Union of applicable records across contexts, deduplicated by identity. */
68
+ function unionApplicable(selection) {
69
+ const seen = new Set();
70
+ for (const context of selection.contexts) {
71
+ for (const record of context.applicable)
72
+ seen.add(record);
73
+ }
74
+ return [...seen];
75
+ }
76
+ // ---------------------------------------------------------------------------
77
+ // Global rules (record/installation/scan level — same truth in every context)
78
+ // ---------------------------------------------------------------------------
79
+ function ruleRecordMalformed(dropped, out) {
80
+ if (dropped > 0) {
81
+ out.push(makeFinding('record_malformed', `${dropped} record(s) from \`claude plugin list --json\` were malformed and skipped.`, [], { droppedCount: dropped }));
82
+ }
83
+ }
84
+ function ruleScopeUnknown(records, out) {
85
+ if (records.length === 0)
86
+ return;
87
+ const rawScopes = [...new Set(records.map((r) => r.rawScope))].sort();
88
+ out.push(makeFinding('scope_unknown', `Records with unrecognized scope(s) ${rawScopes.join(', ')} were preserved but excluded from analysis — their applicability is unknown to this Doctor version.`, records.map((r) => r.id), { rawScopes: evidenceList(rawScopes) }));
89
+ }
90
+ function ruleDuplicateRecord(records, scanEquivalentKeys, out) {
91
+ const groups = new Map();
92
+ for (const record of records) {
93
+ const key = [record.id, record.rawScope, record.projectPathCanonical ?? '', record.version].join('\0');
94
+ const group = groups.get(key) ?? [];
95
+ group.push(record);
96
+ groups.set(key, group);
97
+ }
98
+ for (const [key, group] of groups.entries()) {
99
+ if (group.length < 2)
100
+ continue;
101
+ if (scanEquivalentKeys.has(key))
102
+ continue;
103
+ const r = group[0];
104
+ out.push(makeFinding('duplicate_record', `${r.id} has ${group.length} identical installation records at ${r.rawScope} scope (same version and project) — inconsistent installation state, though not a proven runtime problem.`, [r.id], { scope: r.rawScope, version: r.version, count: group.length }, INSPECT_REMEDIATION));
105
+ }
106
+ }
107
+ function ruleNativeErrors(records, out) {
108
+ const byId = new Map();
109
+ for (const record of records) {
110
+ if (record.errors.length === 0)
111
+ continue;
112
+ const group = byId.get(record.id) ?? [];
113
+ group.push(record);
114
+ byId.set(record.id, group);
115
+ }
116
+ for (const [id, group] of byId.entries()) {
117
+ const summaries = [...new Set(group.flatMap((r) => r.errors.map((e) => e.summary)))].sort();
118
+ const kinds = [...new Set(group.flatMap((r) => r.errors.map((e) => e.kind)))].sort();
119
+ const dependencyIds = [
120
+ ...new Set(group.flatMap((r) => r.errors.map((e) => e.dependencyId).filter((d) => d !== undefined))),
121
+ ].sort();
122
+ const remediation = dependencyIds.length === 1
123
+ ? `Install the missing dependency: \`claude plugin install ${dependencyIds[0]}\`, or uninstall the plugin that requires it.`
124
+ : INSPECT_REMEDIATION;
125
+ out.push(makeFinding('claude_plugin_load_error', summaries.join(' · '), [id], {
126
+ kinds: evidenceList(kinds),
127
+ ...(dependencyIds.length > 0 ? { dependencies: evidenceList(dependencyIds) } : {}),
128
+ }, remediation));
129
+ }
130
+ }
131
+ function collectScanIssues(record, scan, sink) {
132
+ const id = record.id;
133
+ if (scan.pathIssue === 'missing') {
134
+ sink.push('install_path_missing', `${id}'s install path does not exist.`, id, undefined, INSPECT_REMEDIATION);
135
+ return;
136
+ }
137
+ if (scan.pathIssue === 'not-directory') {
138
+ sink.push('install_path_not_directory', `${id}'s install path is not a directory.`, id, undefined, INSPECT_REMEDIATION);
139
+ return;
140
+ }
141
+ if (scan.pathIssue === 'unreadable') {
142
+ sink.push('install_path_unreadable', `${id}'s install path could not be read.`, id, undefined, INSPECT_REMEDIATION);
143
+ return;
144
+ }
145
+ if (scan.manifest.parseError) {
146
+ sink.push('manifest_invalid_json', `${id}'s .claude-plugin/plugin.json is not valid JSON.`, id, undefined, VALIDATE_REMEDIATION);
147
+ }
148
+ if (scan.manifest.nameInvalid) {
149
+ sink.push('manifest_invalid_name', `${id}'s manifest "name" is missing or invalid (must match [a-zA-Z0-9_.-]+).`, id, undefined, VALIDATE_REMEDIATION);
150
+ }
151
+ if (scan.manifest.invalidFields.length > 0) {
152
+ sink.push('manifest_field_invalid', `${id}'s manifest has field(s) with load-blocking wrong types: ${scan.manifest.invalidFields.join(', ')}.`, id, { fields: evidenceList(scan.manifest.invalidFields) }, VALIDATE_REMEDIATION);
153
+ }
154
+ if (scan.manifest.declaredMissing.length > 0) {
155
+ sink.push('declared_component_missing', `${id}'s manifest declares component path(s) that are missing or resolve outside the plugin directory: ${scan.manifest.declaredMissing.join(', ')}.`, id, { paths: evidenceList(scan.manifest.declaredMissing) }, VALIDATE_REMEDIATION);
156
+ }
157
+ if (scan.parseErrors.length > 0) {
158
+ sink.push('component_parse_error', `${id} has configuration file(s) that could not be parsed: ${scan.parseErrors.join(', ')}.`, id, { paths: evidenceList(scan.parseErrors) }, VALIDATE_REMEDIATION);
159
+ }
160
+ const nonExecutable = scan.bin.filter((b) => !b.executable).map((b) => b.relPath);
161
+ if (nonExecutable.length > 0) {
162
+ sink.push('bin_not_executable', `${id} ships bin/ file(s) without an executable bit: ${nonExecutable.join(', ')}. Claude Code puts bin/ on PATH while the plugin is enabled, so these cannot run.`, id, { paths: evidenceList(nonExecutable) });
163
+ }
164
+ const missingExecutables = [
165
+ ...scan.mcp.filter((m) => m.commandFound === false).map((m) => `${m.command?.executable ?? m.name} (MCP server "${m.name}")`),
166
+ ...scan.lsp.filter((l) => l.commandFound === false).map((l) => `${l.command?.executable ?? l.name} (LSP server "${l.name}")`),
167
+ ];
168
+ if (missingExecutables.length > 0) {
169
+ sink.push('prerequisite_missing', `${id} declares executable(s) that were not found on PATH: ${missingExecutables.join('; ')}. The corresponding server cannot start until the prerequisite is installed.`, id, { executables: evidenceList(missingExecutables) });
170
+ }
171
+ if (scan.limitsHit.length > 0) {
172
+ sink.push('scan_incomplete', `${id}'s scan stopped at resource limit(s): ${scan.limitsHit.join(', ')} — findings and estimates for this plugin may be incomplete.`, id, { limits: evidenceList(scan.limitsHit), filesScanned: scan.filesScanned, bytesRead: scan.bytesRead });
173
+ }
174
+ if (scan.symlinksSkipped.length > 0) {
175
+ sink.push('symlink_skipped', `${id} contains symlink(s) that escape the plugin directory or could not be resolved; they were skipped: ${scan.symlinksSkipped.join(', ')}.`, id, { paths: evidenceList(scan.symlinksSkipped) });
176
+ }
177
+ }
178
+ function ruleScans(records, scanFor, out) {
179
+ const emitted = new Set();
180
+ const enabled = records.filter((r) => r.enabled);
181
+ const disabled = records.filter((r) => !r.enabled);
182
+ const sink = {
183
+ push: (code, message, pluginId, evidence, remediation) => {
184
+ const key = `${code}\0${pluginId}\0${message}`;
185
+ if (emitted.has(key))
186
+ return;
187
+ emitted.add(key);
188
+ out.push(makeFinding(code, message, [pluginId], evidence, remediation));
189
+ },
190
+ };
191
+ for (const record of enabled.sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))) {
192
+ collectScanIssues(record, scanFor(record), sink);
193
+ }
194
+ // Intentionally disabled records (no native errors): issues are
195
+ // informational only — a disabled stale cache never makes the current
196
+ // environment unhealthy. A record disabled WITH native errors is not
197
+ // "intentionally disabled": its claude_plugin_load_error (error severity)
198
+ // is the signal, and it must not also read as harmless housekeeping.
199
+ const disabledEmitted = new Set();
200
+ for (const record of disabled.sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))) {
201
+ if (record.errors.length > 0)
202
+ continue;
203
+ const issues = [];
204
+ const collector = {
205
+ push: (code) => {
206
+ issues.push(code);
207
+ },
208
+ };
209
+ collectScanIssues(record, scanFor(record), collector);
210
+ if (issues.length === 0)
211
+ continue;
212
+ const key = `${record.id}\0${issues.join(',')}`;
213
+ if (disabledEmitted.has(key))
214
+ continue;
215
+ disabledEmitted.add(key);
216
+ out.push(makeFinding('disabled_record_issue', `${record.id} (disabled) has issues in its cached installation: ${[...new Set(issues)].sort().join(', ')}. Harmless while disabled; shown for completeness.`, [record.id], { issues: evidenceList([...new Set(issues)].sort()) }));
217
+ }
218
+ }
219
+ // ---------------------------------------------------------------------------
220
+ // Context-scoped rules (run per project context, on unambiguous instances)
221
+ // ---------------------------------------------------------------------------
222
+ function ruleAmbiguity(context, out) {
223
+ for (const instance of context.instances) {
224
+ if (instance.reason === 'scan_equivalent') {
225
+ const scopes = [...new Set(instance.contenders.map((r) => r.rawScope))].sort();
226
+ const versions = [...new Set(instance.contenders.map((r) => r.version))].sort();
227
+ out.push(makeFinding('redundant_enabled_records', `${instance.id} has ${instance.contenders.length} enabled records ` +
228
+ (scopes.length === 1 ? `at ${scopes[0]} scope` : `across scopes ${scopes.join(', ')}`) +
229
+ ` (versions: ${versions.join(', ')}), but their complete scans are equivalent for Doctor's checks. ` +
230
+ 'Whichever record Claude loads, the diagnostic result is the same.', [instance.id], { scopes: evidenceList(scopes), versions: evidenceList(versions), recordCount: instance.contenders.length }));
231
+ continue;
232
+ }
233
+ if (instance.selection !== 'ambiguous')
234
+ continue;
235
+ const scopes = [...new Set(instance.contenders.map((r) => r.rawScope))].sort();
236
+ const versions = [...new Set(instance.contenders.map((r) => r.version))].sort();
237
+ const message = `${instance.id} has ${instance.contenders.length} enabled installation records ` +
238
+ (scopes.length === 1
239
+ ? `at ${scopes[0]} scope (versions: ${versions.join(', ')}). `
240
+ : `across scopes ${scopes.join(', ')} (versions: ${versions.join(', ')}). `) +
241
+ 'Which one Claude Code loads is not determinable from public interfaces, so this plugin is excluded from context totals, overlap, hook, and dependency analysis.';
242
+ out.push(makeFinding(scopes.length === 1 ? 'duplicate_enabled_records' : 'effective_selection_ambiguous', message, [instance.id], { scopes: evidenceList(scopes), versions: evidenceList(versions) }, INSPECT_REMEDIATION));
243
+ }
244
+ }
245
+ function ruleOverlap(context, scanFor, out) {
246
+ const soleScans = context.instances
247
+ .filter((i) => i.selection === 'sole' && i.record !== null)
248
+ .map((i) => ({ pluginId: i.id, scan: scanFor(i.record) }));
249
+ for (const group of findOverlaps(soleScans)) {
250
+ const pluginIds = [...new Set(group.entries.map((e) => e.pluginId))];
251
+ const paths = group.entries.map((e) => `${e.pluginId}:${e.relPath}`);
252
+ out.push(makeFinding('exact_component_overlap', `${pluginIds.join(' and ')} contain byte-identical component content (after line-ending/trailing-whitespace normalization): ${paths.join(', ')}. Component names are namespaced per plugin, so this duplicates context, not functionality — it is not proof that either plugin is defective.`, pluginIds, { components: evidenceList(paths), hash: group.hash.slice(0, 12) }));
253
+ }
254
+ }
255
+ function ruleBroadHooks(context, scanFor, out) {
256
+ for (const instance of context.instances) {
257
+ if (instance.selection !== 'sole' || instance.record === null)
258
+ continue;
259
+ const scan = scanFor(instance.record);
260
+ const broad = scan.hooks.filter((h) => h.type === 'command' && h.toolMatched && h.broad && !h.conditional);
261
+ if (broad.length === 0)
262
+ continue;
263
+ const events = [...new Set(broad.map((h) => h.event))].sort();
264
+ out.push(makeFinding('hook_broad_unconditional', `${instance.id} declares command hook(s) with no matcher filter and no \`if\` condition on ${events.join(', ')} — as declared, they would run on every matching tool event (managed policy may still suppress hooks).`, [instance.id], { events: evidenceList(events), count: broad.length }));
265
+ }
266
+ }
267
+ function ruleDependencies(context, scanFor, out) {
268
+ for (const instance of context.instances) {
269
+ if (instance.selection !== 'sole' || instance.record === null)
270
+ continue;
271
+ const record = instance.record;
272
+ // Native errors are authoritative: when Claude already reports a
273
+ // dependency problem for this plugin, inferred findings would duplicate it.
274
+ if (record.errors.some((e) => isDependencyErrorKind(e.kind)))
275
+ continue;
276
+ const scan = scanFor(record);
277
+ for (const dep of scan.manifest.dependencies) {
278
+ if (!dep.parseable || dep.name === null) {
279
+ out.push(makeFinding('dependency_resolution_unknown', `${instance.id} declares a dependency entry Doctor could not parse; its status is unknown.`, [instance.id]));
280
+ continue;
281
+ }
282
+ const marketplace = dep.marketplace ?? record.marketplace;
283
+ const targets = context.applicable.filter((r) => r.name === dep.name && r.marketplace === marketplace);
284
+ if (targets.length === 0) {
285
+ out.push(makeFinding('dependency_missing', `${instance.id} depends on ${dep.name}@${marketplace}, which is not installed here. Claude Code reports unsatisfied dependencies as plugin load errors (dependency-unsatisfied).`, [instance.id], { dependency: `${dep.name}@${marketplace}` }, `Install the missing dependency: \`claude plugin install ${dep.name}@${marketplace}\`, or uninstall the plugin that requires it.`));
286
+ }
287
+ else if (!targets.some((r) => r.enabled)) {
288
+ out.push(makeFinding('dependency_disabled', `${instance.id} depends on ${dep.name}@${marketplace}, which is installed but disabled. Per Claude Code's documented dependency behavior, a disabled dependency is unsatisfied (dependency-unsatisfied).`, [instance.id], { dependency: `${dep.name}@${marketplace}` }, `Enable the dependency: \`claude plugin enable ${dep.name}@${marketplace}\`, or uninstall the plugin that requires it.`));
289
+ }
290
+ else if (dep.versionRange !== null) {
291
+ const installed = [...new Set(targets.filter((r) => r.enabled).map((r) => r.version))].sort();
292
+ out.push(makeFinding('dependency_resolution_unknown', `${instance.id} depends on ${dep.name}@${marketplace} ${dep.versionRange}; installed version(s): ${installed.join(', ')}. Version compatibility was not checked (Doctor has no semver implementation).`, [instance.id], { dependency: `${dep.name}@${marketplace}`, range: boundEvidenceString(dep.versionRange), installed: evidenceList(installed) }));
293
+ }
294
+ }
295
+ }
296
+ }
297
+ function ruleLspConflicts(context, scanFor, out) {
298
+ const claims = new Map();
299
+ for (const instance of context.instances) {
300
+ if (instance.selection !== 'sole' || instance.record === null)
301
+ continue;
302
+ const scan = scanFor(instance.record);
303
+ for (const lsp of scan.lsp) {
304
+ for (const extension of lsp.extensions.items) {
305
+ const list = claims.get(extension) ?? [];
306
+ list.push({ pluginId: instance.id, server: lsp.name });
307
+ claims.set(extension, list);
308
+ }
309
+ }
310
+ }
311
+ for (const [extension, claimants] of [...claims.entries()].sort((a, b) => (a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0))) {
312
+ if (claimants.length < 2)
313
+ continue;
314
+ const pluginIds = [...new Set(claimants.map((c) => c.pluginId))];
315
+ const names = claimants.map((c) => `${c.server} (${c.pluginId})`).sort();
316
+ out.push(makeFinding('lsp_extension_conflict', `${claimants.length} enabled LSP servers claim ${extension}: ${names.join(', ')}. Per the documented first-wins behavior, only the first registered server starts and the others never do — registration order is not observable here, so no winner is asserted.`, pluginIds, { extension, servers: evidenceList(names) }));
317
+ }
318
+ }
319
+ // ---------------------------------------------------------------------------
320
+ export function analyze(input) {
321
+ const { selection, scanFor, droppedRecords, scanEquivalentKeys } = input;
322
+ const applicable = unionApplicable(selection);
323
+ const global = [];
324
+ ruleRecordMalformed(droppedRecords, global);
325
+ ruleScopeUnknown(selection.unknownScopeRecords, global);
326
+ ruleDuplicateRecord(applicable, scanEquivalentKeys, global);
327
+ ruleNativeErrors(applicable, global);
328
+ ruleScans(applicable, scanFor, global);
329
+ global.sort(compareFindings);
330
+ const byContext = new Map();
331
+ for (const context of selection.contexts) {
332
+ const findings = [];
333
+ ruleAmbiguity(context, findings);
334
+ ruleOverlap(context, scanFor, findings);
335
+ ruleBroadHooks(context, scanFor, findings);
336
+ ruleDependencies(context, scanFor, findings);
337
+ ruleLspConflicts(context, scanFor, findings);
338
+ findings.sort(compareFindings);
339
+ byContext.set(context.context.key, findings);
340
+ }
341
+ return { global, byContext };
342
+ }
@@ -0,0 +1,24 @@
1
+ import type { Scanner } from './inventory.js';
2
+ import type { BrowserOpener } from './open-browser.js';
3
+ import type { DoctorFlags, DoctorReport, InstallationRecord } from './report.js';
4
+ export interface DoctorRunInputs {
5
+ records: InstallationRecord[];
6
+ droppedRecords: number;
7
+ claudeVersion: string | null;
8
+ cwdCanonical: string;
9
+ flags: DoctorFlags;
10
+ scanner: Scanner;
11
+ }
12
+ export interface DoctorRunDeps {
13
+ opener?: BrowserOpener;
14
+ }
15
+ export interface OpenReportResult {
16
+ path: string;
17
+ opened: boolean;
18
+ }
19
+ /** Write HTML to a file with exclusive-create (EEXIST if path already exists). */
20
+ export declare function writeReportFile(filePath: string, html: string): void;
21
+ export declare function openReport(report: DoctorReport, opener: BrowserOpener): Promise<OpenReportResult>;
22
+ export declare function buildDoctorReport(inputs: DoctorRunInputs): DoctorReport;
23
+ export declare function exitCodeFor(report: DoctorReport, strict: boolean): number;
24
+ export declare function runDoctor(argv: string[], deps?: DoctorRunDeps): Promise<void>;