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