229. cpl check --json prints one object of files and diagnostics (2026-11-22)
spec/tools/cli.md promises --json for tools, and only explain had it.
cpl check --json prints {"files": [{"path", "ok", "diagnostics"}]}; a
diagnostic has code, severity, message, start, end, labels,
notes, help and fixes, and a position is a 1-based line and byte column
with the byte offset, so a tool can use either. Exit codes stay those of the
text output. crates/cpl-cli/src/json_out.rs is the one serializer the next
--json commands reuse. Reverse: drop the flag; nothing else reads it yet.