MCPcopy Create free account
hub / github.com/Noumena-Network/code / fetchLogs

Function fetchLogs

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

Source from the content-addressed store, hash-verified

2719}
2720
2721export async function fetchLogs(limit?: number): Promise<LogOption[]> {
2722 const projectDir = getProjectDir(getOriginalCwd())
2723 const logs = await getSessionFilesLite(projectDir, limit, getOriginalCwd())
2724
2725 await trackSessionBranchingAnalytics(logs)
2726
2727 return logs
2728}
2729
2730/**
2731 * 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