MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / fetchLogs

Function fetchLogs

source code/utils/sessionStorage.ts:2561–2568  ·  view source on GitHub ↗
(limit?: number)

Source from the content-addressed store, hash-verified

2559}
2560
2561export async function fetchLogs(limit?: number): Promise<LogOption[]> {
2562 const projectDir = getProjectDir(getOriginalCwd())
2563 const logs = await getSessionFilesLite(projectDir, limit, getOriginalCwd())
2564
2565 await trackSessionBranchingAnalytics(logs)
2566
2567 return logs
2568}
2569
2570/**
2571 * Append an entry to a session file. Creates the parent dir if missing.

Callers 1

loadMessageLogsFunction · 0.85

Calls 4

getOriginalCwdFunction · 0.85
getSessionFilesLiteFunction · 0.85
getProjectDirFunction · 0.70

Tested by

no test coverage detected