MCPcopy Index your code
hub / github.com/codeaashu/claude-code / fetchLogs

Function fetchLogs

src/utils/sessionStorage.ts:2559–2566  ·  view source on GitHub ↗
(limit?: number)

Source from the content-addressed store, hash-verified

2557}
2558
2559export async function fetchLogs(limit?: number): Promise<LogOption[]> {
2560 const projectDir = getProjectDir(getOriginalCwd())
2561 const logs = await getSessionFilesLite(projectDir, limit, getOriginalCwd())
2562
2563 await trackSessionBranchingAnalytics(logs)
2564
2565 return logs
2566}
2567
2568/**
2569 * 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