perf: eliminate redundant CommandLedger lookups in command loops

Avoid calling CommandLedger.find inside loops over command sources in
retireStaleAccountCommands and AccountRequests.isLoading by providing
CommandLedger.entriesOfKind which returns source names and descriptors in a
single pass. Also optimize CommandLedger.hasKind to short-circuit on match.

Co-authored-by: Lucenx9 <185146821+Lucenx9@users.noreply.github.com>
fff5e6e28cgoogle-labs-jules[bot] committed on 9/9/2026, 2:14:00 AMparentd09e5b6
5 files changedLine totals unavailable