@kekkai/blueprint / runInspect
Function: runInspect()
runInspect(
root,options?):Promise<{findings:Finding[];ok:boolean; }>
Defined in: inspect/inspect.ts:41
Run blueprint inspect in root. Read-only (except --update-baseline): scans src/, checks it against the resolved blueprint, and prints an Architecture Report. Returns the actionable findings and ok — in baseline mode, findings holds only the fresh (non-baselined) ones.
Parameters
root
string
options?
InspectOptions = {}
Returns
Promise<{ findings: Finding[]; ok: boolean; }>
Example
ts
const { ok, findings } = await runInspect(process.cwd(), { baseline: true });
process.exitCode = ok ? 0 : 1;