mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Create CacheServiceAdapter + FetchCacheAdapter service layer and move 7 cache routes (info, clear, data-dir, import-log, save-to-downloads, open-dir, show-in-folder) to @openchatlab/http-routes. Inject platform callbacks (shell.openPath, showItemInFolder) via HttpRouteContext. Frontend calls converge from window.cacheApi to useCacheService(). Electron IPC retains only selectDataDir/setDataDir (native dialog). Co-authored-by: Cursor <cursoragent@cursor.com>