Surface billing_source from h5_usage_records so plan-covered consumption
displays as 套餐额度 instead of missing from the usage tab.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expose margin multiplier, FX rate, and cost-mode settings under 计费中心 so operators can adjust DeepSeek billing without env edits.
Co-authored-by: Cursor <cursoragent@cursor.com>
Use PUT setImageQuota so admins can lower remaining below the stored plan
limit; grant-only bonus updates silently no-op when bonus is already zero.
Co-authored-by: Cursor <cursoragent@cursor.com>
Operators expect direct total capacity like space quota; the delta-based
grant UI caused wrong results when entering a target amount on production.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add image-quota admin pages and API wiring for plan defaults, ledger, and per-user
grants, plus local verify scripts and AGENTS.md note that this repo is the sole
admin UI surface.
Co-authored-by: Cursor <cursoragent@cursor.com>
Runtime control has no top-level enabled field; derive section status from agent resolve, injection mode, and lifecycle flags so the admin page matches saved production config.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expose memindadm controls for the service-account-only intent refinement layer so operators can enable, shadow, and canary the router without touching H5 chatIntentRouter settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
When the usage overview has no date filter, show only all-time totals instead
of a misleading 30-day range block; surface current balance in user analysis.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add daily usage trend charts with multi-metric toggles, overview vs user
analysis views, date-range filtering, and usage summary API for interval
and all-time totals.
Co-authored-by: Cursor <cursoragent@cursor.com>
Refuse memindadm production releases when bundled llm-providers.mjs still
carries the legacy deepseek-chat catalog instead of deepseek-v4-pro/flash.
Co-authored-by: Cursor <cursoragent@cursor.com>
Clarify active/canary/shadow modes and show auto-review metrics so operators do not need to manually approve every user memory.
Co-authored-by: Cursor <cursoragent@cursor.com>
Wire admin UI and API routes to restored Memind personal memory and skill
runtime modules, including candidate review and runtime status display.
Co-authored-by: Cursor <cursoragent@cursor.com>