@kekkai/blueprint / runDoctor
Function: runDoctor()
runDoctor(
root,options?):Promise<{checks:DoctorCheck[];ok:boolean; }>
Defined in: inspect/doctor.ts:143
Run blueprint doctor in root. Read-only. Answers the one question the adoption prompt's acceptance clause asks — "is adoption actually finished?" — as a checklist: config present, no leftover reference files, eslint wired to emitLint, the declared alias wired to the toolchain, the emitted rules still alive in the merged eslint config, and the architecture clean under the baseline (its detail states the coverage, so a vacuous green is visible). Exit 0 iff every check passes, so it drops into CI or an agent's verify loop.
Parameters
root
string
options?
DoctorOptions = {}
Returns
Promise<{ checks: DoctorCheck[]; ok: boolean; }>
Example
ts
const { ok } = await runDoctor(process.cwd());
process.exitCode = ok ? 0 : 1;