v0.3.1: bugfix and CLI polish
TL;DR
Bugfix release: verdicts no longer printed twice during review, -v/--version flags added, graceful Ctrl+C handling, and help now documents config subcommands.
Fixed
- Verdict text was printed to stdout during
trustsight reviewfor every package, becausegenerate_verdict_stream()had a strayprint(result)in its non-streaming path. Result strings appeared above the progress bar, interleaved with analysis output.
Added
-v/--versionflags on the root parser. Version is read from installed package metadata viaimportlib.metadata.version().- Graceful
KeyboardInterrupthandling. Previously a Ctrl+C during an LLM API call dumped a 50-line httpx/SSL traceback; now printsInterrupted.and exits with code 130.
Changed
-hhelp now includes aconfig subcommandssection showingconfig show,config set <key> <value>, andconfig sync-ruleswith examples, plus a generalexamplessection with common usage patterns.
Stats
- 1 commit since v0.3.0
- 574 tests, all passing
- Package version 0.3.1