(limit?: number)
| 2557 | } |
| 2558 | |
| 2559 | export async function fetchLogs(limit?: number): Promise<LogOption[]> { |
| 2560 | const projectDir = getProjectDir(getOriginalCwd()) |
| 2561 | const logs = await getSessionFilesLite(projectDir, limit, getOriginalCwd()) |
| 2562 | |
| 2563 | await trackSessionBranchingAnalytics(logs) |
| 2564 | |
| 2565 | return logs |
| 2566 | } |
| 2567 | |
| 2568 | /** |
| 2569 | * Append an entry to a session file. Creates the parent dir if missing. |
no test coverage detected