pub async fn count_captures_today(db: &SqlitePool, origin: &str) -> Result<i64>Expand description
How many conversation-channel captures landed today. Used both for
the rate-limit warn threshold and for surfacing captures_today on
the outcome so callers can render guidance like “12/50 today, getting
close to the cap”. Returns 0 for non-conversation origins (the rate
limit only protects against agent runaway).