SetUsageStore wires in the usage store used by handleGetMyLimits to surface the user's current counts (agents, domains, messages this month, storage bytes) alongside the resolved caps. Separate from the usage.UsageTracker (which is for recording events) so the dashboard read path can stay alive even
(s *usage.Store)
| 495 | // usage.UsageTracker (which is for recording events) so the dashboard |
| 496 | // read path can stay alive even when usage-tracking is otherwise off. |
| 497 | func (a *API) SetUsageStore(s *usage.Store) { a.usageStore = s } |
| 498 | |
| 499 | // SetInternalAPISecret wires in the shared HMAC secret used to |
| 500 | // authenticate the /api/internal/limits/invalidate endpoint. When |
no outgoing calls