Increment successful HTTP connection count (HTTP 2xx, non-cached)
Increment failed HTTP connection count (HTTP 4xx/5xx, network errors, non-cached)
Increment unique product count (called when a non-cached product detail is fetched)
Increment parse/processing error count (called when product processing throws)
Read all stats from IndexedDB, returning the SupplierStatsData shape:
{ [dateKey]: { [supplier]: SupplierDayStats } }. Recording runs in every
build; only the stats UI is gated (dev builds, or advanced mode).
Force any buffered increments to IndexedDB immediately, bypassing the debounce timer. Call this at points where the buffer would otherwise be at risk of never flushing — e.g. once a search finishes, since the popup can be closed (and its JS context destroyed) at any moment afterward.
Clear all stats — removes all records from the supplierStats store.
Increment search query count (called once per supplier at start of execute())