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

Function fetchLogs

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

Source from the content-addressed store, hash-verified

2596}
2597
2598export async function fetchLogs(limit?: number): Promise<LogOption[]> {
2599 const projectDir = getProjectDir(getOriginalCwd())
2600 const logs = await getSessionFilesLite(projectDir, limit, getOriginalCwd())
2601
2602 await trackSessionBranchingAnalytics(logs)
2603
2604 return logs
2605}
2606
2607/**
2608 * 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