(
limit?: number,
options?: { skipIndex?: boolean; initialEnrichCount?: number },
)
| 4184 | * @returns List of message logs sorted by date |
| 4185 | */ |
| 4186 | export async function loadAllProjectsMessageLogs( |
| 4187 | limit?: number, |
| 4188 | options?: { skipIndex?: boolean; initialEnrichCount?: number }, |
| 4189 | ): Promise<LogOption[]> { |
| 4190 | if (options?.skipIndex) { |
| 4191 | // Load all sessions with full message data (e.g. for /insights analysis) |
| 4192 | return loadAllProjectsMessageLogsFull(limit) |
| 4193 | } |
| 4194 | const result = await loadAllProjectsMessageLogsProgressive( |
| 4195 | limit, |
| 4196 | options?.initialEnrichCount ?? INITIAL_ENRICH_COUNT, |
| 4197 | ) |
| 4198 | return result.logs |
| 4199 | } |
| 4200 | |
| 4201 | async function loadAllProjectsMessageLogsFull( |
| 4202 | limit?: number, |
no test coverage detected