MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / loadAllProjectsMessageLogs

Function loadAllProjectsMessageLogs

src/utils/sessionStorage.ts:4071–4084  ·  view source on GitHub ↗
(
  limit?: number,
  options?: { skipIndex?: boolean; initialEnrichCount?: number },
)

Source from the content-addressed store, hash-verified

4069 * @returns List of message logs sorted by date
4070 */
4071export 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
4086async function loadAllProjectsMessageLogsFull(
4087 limit?: number,

Callers 1

ResumeCommandFunction · 0.85

Tested by

no test coverage detected