feat(costs): $-Tagesbudget pro Nutzer (Stufe 3)

cost_daily_limit_usd (Pref > global; 0 = unbegrenzt) in quota.py
(cost_within_budget, cost_limit). ws.py-Gate: Web-Such- ODER Kostenbudget
aufgebraucht -> Web-Suche fuer den Turn aus + freundlicher Hinweis. Admin:
Schema-Feld + list_users + UI-Eingabe ($/Tag) + globales Live-Setting.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-06-30 13:17:54 +02:00
commit 66d6708f59
7 changed files with 57 additions and 5 deletions

View file

@ -239,6 +239,7 @@ async def list_users():
"location_consent": bool((u.prefs or {}).get("location_consent", False)),
"web_search_enabled": bool((u.prefs or {}).get("web_search_enabled", runtime_settings.web_search_enabled)),
"web_search_daily_limit": (u.prefs or {}).get("web_search_daily_limit", ""),
"cost_daily_limit_usd": (u.prefs or {}).get("cost_daily_limit_usd", ""),
"is_admin": is_admin_user(u),
}
for u in get_store().list_users()