Skip to content

v0.7.2

Choose a tag to compare

@emiliano-go emiliano-go released this 27 Jul 18:29
v0.7.2
2be3074

TL;DR

Three commits since v0.7.1: pipelined analysis and LLM verdicts, AUR RPC caching with configurable TTL, new CLI commands (list, status, db check/vacuum/backup), database durability improvements, and a progress-bar indentation fix.

Added

  • Pipelined analysis and LLM verdicts. _analyze_outdated_batch() now runs analysis and LLM calls in the same worker thread, overlapping across the pool. Wall time for batch reviews is cut by roughly 2x when the LLM is the bottleneck.
  • AUR RPC response cache. Version lookups are cached in the local database. Configurable via cache_ttl_minutes in [discovery] (default 60). Repeat reviews skip the AUR server for packages that have not expired.
  • New CLI commands. trustsight list shows all tracked packages; trustsight status shows database health statistics; trustsight db check|vacuum|backup for database maintenance.
  • inspect --verbose flag. Shows the triggered rules and score breakdown, matching the detail level available in the review table.
  • Database durability. PRAGMA busy_timeout=5000 prevents lock-contention crashes when multiple processes access the database concurrently.

Fixed

  • Progress-bar phase transition. The rich progress bar now correctly resets to indeterminate mode after prefetch completes, displaying elapsed time without resetting the counter.
  • _run_analysis_loop() output indentation. The rich-table and plain-text branches were dead code inside the if json_output return and never rendered for terminal output.

Changed

  • _analyze_outdated_batch() restructured with ThreadPoolExecutor pipelining. Each worker thread handles one full package (analysis plus verdict) instead of the previous two-phase approach.
  • _verdict_for() extracted as a module-level helper. Shared by both the batch-review path and the inspect command.
  • Progress bar uses indeterminate phase during LLM verdict generation. The phase transition sends a sentinel value that switches the bar to spinner mode while keeping elapsed time visible.

Stats

  • 3 commits since v0.7.1
  • 739 tests (22 files), all passing
  • Package version 0.7.2