mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 04:42:10 +03:00
Adds a new /dashboard/cache page that surfaces the existing but UI-less semantic cache infrastructure. Changes: - New page: src/app/(dashboard)/dashboard/cache/page.tsx - Live stats: memory entries, DB entries, cache hits, tokens saved - Hit rate progress bar with color coding (green/yellow/red) - Hits/Misses/Total breakdown - Idempotency layer stats (active dedup keys + window) - Cache behavior info panel - Clear All button - Auto-refresh every 10s - Enhanced API: src/app/api/cache/route.ts - DELETE ?model=<name> — invalidate by model - DELETE ?signature=<hex> — invalidate single entry - DELETE ?staleMs=<ms> — invalidate entries older than N ms - DELETE (no params) — clear all (existing behavior) - Sidebar: added Cache nav item (icon: cached) - i18n: added cache + sidebar.cache keys for all 31 supported locales No new dependencies. All functionality builds on existing semanticCache.ts, cacheLayer.ts, and idempotencyLayer.ts modules. Co-authored-by: oyi77 <oyi77@users.noreply.github.com>