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

Function fetchLogs

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

Source from the content-addressed store, hash-verified

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