Diagnostics Commands
Run LSP diagnostics on a file or the whole project.
krait check [path]krait check [path] --errors-only # suppress warnings and hintsExample:
$ krait check src/orders/service.tserror src/orders/service.ts:45:12 TS2339 Property 'id' does not exist on type 'never'warning src/orders/service.ts:67:5 TS6133 'result' is declared but never read2 errors, 1 warningExit codes:
0— no errors (warnings are OK)1— one or more errors
This makes krait check usable in CI pipelines:
krait check src/ --errors-only && echo "Clean"status
Section titled “status”Show daemon health, LSP state, and cache stats.
krait statusExample:
daemon: pid=12345 uptime=5mconfig: krait.toml (5 workspaces)lsp: 2 sessions typescript packages/api ready go backend readyindex: 8928 symbols, 0 dirty files, watcher active