(
limit?: number,
options?: { skipIndex?: boolean; initialEnrichCount?: number },
)
| 4069 | * @returns List of message logs sorted by date |
| 4070 | */ |
| 4071 | export async function loadAllProjectsMessageLogs( |
| 4072 | limit?: number, |
| 4073 | options?: { skipIndex?: boolean; initialEnrichCount?: number }, |
| 4074 | ): Promise<LogOption[]> { |
| 4075 | if (options?.skipIndex) { |
| 4076 | // Load all sessions with full message data (e.g. for /insights analysis) |
| 4077 | return loadAllProjectsMessageLogsFull(limit) |
| 4078 | } |
| 4079 | const result = await loadAllProjectsMessageLogsProgressive( |
| 4080 | limit, |
| 4081 | options?.initialEnrichCount ?? INITIAL_ENRICH_COUNT, |
| 4082 | ) |
| 4083 | return result.logs |
| 4084 | } |
| 4085 | |
| 4086 | async function loadAllProjectsMessageLogsFull( |
| 4087 | limit?: number, |
no test coverage detected