Docs
CLI
BonkLM ships a small CLI for install, health, and coverage. Everything is opt-in — the library works fine without it once configured.
Commands
install wizardnpx @blackunicorn/bonklmDetects framework + LLM provider, picks the right connectors, writes a starter config, and installs dependencies. Idempotent — safe to re-run.
doctornpx @blackunicorn/bonklm doctorAudits an existing install: missing layers, mis-wired middleware, stale package versions, conflicting sensitivity settings.
auditnpx @blackunicorn/bonklm auditStatic scan of your codebase for inbound LLM call sites not covered by a validator, and outbound writes not covered by a guard.
Wizard flow
The wizard is a chain of detectors, not a single monolith. Each detector returns a confidence score; the wizard composes the highest-scoring stack and asks for confirmation before writing files.
- Scan
package.jsonfor framework + provider signals. - Probe
tsconfig.jsonfor module + path conventions. - Walk
src/for call-site heuristics. - Resolve connectors, install, write
bonklm.config.ts.