MCPcopy Create free account
hub / github.com/tiann/hapi / seedCursorModelsCache

Function seedCursorModelsCache

cli/src/modules/common/cursorModels.ts:321–326  ·  view source on GitHub ↗
(response: ListCursorModelsResponse)

Source from the content-addressed store, hash-verified

319}
320
321export function seedCursorModelsCache(response: ListCursorModelsResponse): void {
322 if ((response.availableModels?.length ?? 0) > 0) {
323 writeSharedCursorModelsCache(response);
324 }
325 void applyInMemoryCache(response);
326}
327
328export function _resetCursorModelsCacheForTests(): void {
329 cache.expiresAt = 0;

Callers 3

syncCursorModelsFromAcpFunction · 0.90

Calls 2

applyInMemoryCacheFunction · 0.85

Tested by

no test coverage detected