fix(quotas): unifier le décompte IA (BYOK, rollback) et combler les fuites
Centralise la réserve via ai-quota, corrige admin unavailable (-1), brancher les routes sans quota et le host-pays brainstorm, avec usage-meter élargi, noms de clusters, MCP et ajustements dashboard/insights. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
5
memento-note/lib/ai-usage-sync.ts
Normal file
5
memento-note/lib/ai-usage-sync.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
/** Notifie l'UI (usage-meter, dashboard) qu'un quota IA vient d'être consommé. */
|
||||
export function emitAiUsageChanged(): void {
|
||||
if (typeof window === 'undefined') return
|
||||
window.dispatchEvent(new CustomEvent('ai-usage-changed'))
|
||||
}
|
||||
Reference in New Issue
Block a user