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

Function loadAllProjectsMessageLogs

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

Source from the content-addressed store, hash-verified

3962 * @returns List of message logs sorted by date
3963 */
3964export 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
3979async function loadAllProjectsMessageLogsFull(
3980 limit?: number,

Callers 1

ResumeCommandFunction · 0.85

Tested by

no test coverage detected