Record usage in a daemon thread to avoid blocking the event loop
with SQLite fsync on slow storage. Replace text button label with
a bar-chart-with-nodes SVG icon in the legacy menu fallback.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tracks every node used in every prompt submission via SQLite,
maps class_types to source packages, and exposes API endpoints
and a frontend dialog for viewing per-package usage stats.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>