(limit?: number)
| 2596 | } |
| 2597 | |
| 2598 | export 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. |
no test coverage detected