(limit?: number)
| 2558 | } |
| 2559 | |
| 2560 | export 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. |
no test coverage detected