mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
CLI Web's Settings > Storage Management was completely non-functional (stub cacheApi returning empty data). This adds real HTTP endpoints and wires the frontend to use them. Backend (cache.ts): - GET /_web/cache/info — scan databases/ai/cache/logs directory sizes - POST /_web/cache/clear — clear cache or logs directory (allowlist) - POST /_web/cache/open-dir — open directory in system file manager - GET /_web/cache/data-dir — return current data directory path - GET /_web/cache/latest-import-log — find latest import log file Frontend: - Replace cacheApi stubs with real HTTP calls in registry.ts - Hide data directory migration UI in CLI Web (IS_ELECTRON guard) - Add "Open Root Dir" button for ~/.chatlab/ in header area Co-authored-by: Cursor <cursoragent@cursor.com>