(
limit?: number,
options?: { skipIndex?: boolean; initialEnrichCount?: number },
)
| 3961 | * @returns List of message logs sorted by date |
| 3962 | */ |
| 3963 | export async function loadAllProjectsMessageLogs( |
| 3964 | limit?: number, |
| 3965 | options?: { skipIndex?: boolean; initialEnrichCount?: number }, |
| 3966 | ): Promise<LogOption[]> { |
| 3967 | if (options?.skipIndex) { |
| 3968 | // Load all sessions with full message data (e.g. for /insights analysis) |
| 3969 | return loadAllProjectsMessageLogsFull(limit) |
| 3970 | } |
| 3971 | const result = await loadAllProjectsMessageLogsProgressive( |
| 3972 | limit, |
| 3973 | options?.initialEnrichCount ?? INITIAL_ENRICH_COUNT, |
| 3974 | ) |
| 3975 | return result.logs |
| 3976 | } |
| 3977 | |
| 3978 | async function loadAllProjectsMessageLogsFull( |
| 3979 | limit?: number, |
no test coverage detected