MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getCacheInfo

Function getCacheInfo

src/utils/modelCache.ts:331–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329}
330
331export function getCacheInfo(): {
332 timestamp: number | null;
333 providers: string[];
334} {
335 const cache = readCache();
336 if (!cache) {
337 return { timestamp: null, providers: [] };
338 }
339 return {
340 timestamp: cache.timestamp,
341 providers: Object.keys(cache.models || {})
342 };
343}
344
345export function getCachedModels(provider: string): string[] | null {
346 const cache = readCache();

Callers 2

models.tsFile · 0.90
selectModelFunction · 0.90

Calls 2

readCacheFunction · 0.70
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…