(limit?: number)
| 2719 | } |
| 2720 | |
| 2721 | export 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. |
no test coverage detected