MCPcopy
hub / github.com/steipete/oracle / readSessionMetadata

Function readSessionMetadata

src/sessionManager.ts:252–260  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

250}
251
252export async function readSessionMetadata(sessionId: string): Promise<SessionMetadata | null> {
253 try {
254 const raw = await fs.readFile(metaPath(sessionId), 'utf8');
255 const parsed = JSON.parse(raw) as SessionMetadata;
256 return await markZombie(parsed, { persist: false }); // transient check; do not touch disk on single read
257 } catch {
258 return null;
259 }
260}
261
262export async function updateSessionMetadata(
263 sessionId: string,

Callers 12

updateSessionMetadataFunction · 0.85
listSessionsMetadataFunction · 0.85
deleteSessionsOlderThanFunction · 0.85
attachSessionFunction · 0.85
readStoredPromptFunction · 0.85
readSessionMetadataSafeFunction · 0.85
readStoredPromptFunction · 0.85
registerConsultToolFunction · 0.85
registerSessionsToolFunction · 0.85
registerSessionResourcesFunction · 0.85
runInteractiveSessionFunction · 0.85
executeSessionFunction · 0.85

Calls 3

metaPathFunction · 0.85
markZombieFunction · 0.85
readFileMethod · 0.80

Tested by

no test coverage detected