MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / chatCacheReadAll

Function chatCacheReadAll

app/src/modules/chat-cache.js:66–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64}
65
66export async function chatCacheReadAll() {
67 const db = await openChatCacheDb();
68 return new Promise((resolve, reject) => {
69 const tx = db.transaction(CHAT_CACHE_STORE, 'readonly');
70 const req = tx.objectStore(CHAT_CACHE_STORE).getAll();
71 req.onerror = () => reject(req.error || new Error('Failed to list chat cache'));
72 req.onsuccess = () => resolve(Array.isArray(req.result) ? req.result : []);
73 });
74}
75
76export function buildCacheKey(addr, sessionId) {
77 return `${addr}::${sessionId}`;

Callers 1

pruneChatCacheFunction · 0.70

Calls 1

openChatCacheDbFunction · 0.70

Tested by

no test coverage detected