mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
Phase 2a: extract lazy connection view into shared module - Move createLazyConnectionView, toProviderConnection, ProviderConnectionView from sse/services/auth.ts to src/lib/db/providers/lazyConnectionView.ts - Update auth.ts to import from the shared location - Update catalog.ts to use getCachedRawProviderConnections + createLazyConnectionView Phase 3: delegate getCachedProviderConnections through raw cache - getCachedProviderConnections now delegates to getProviderConnections which calls getCachedRawProviderConnections (single source of truth) - Add LRU eviction (maxSize param) to TTLCache to prevent memory leaks - rawConnectionsCache limited to 500 entries, connectionByIdCache to 10K - Provider metadata (combo/catalog) caches get dedicated invalidation scopes - Fix deleteProviderConnectionsByProvider: add missing invalidateDbCache call Phase 4: fix test isolation + dead code audit - db-read-cache.test.ts: use real module import (not importFresh) so invalidateDbCache reaches the same rawConnectionsCache instance - Verified: no stale connectionsCache references, clean barrel exports