MCPcopy Create free account
hub / github.com/Noumena-Network/code / loadAllProjectsMessageLogs

Function loadAllProjectsMessageLogs

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

Source from the content-addressed store, hash-verified

4184 * @returns List of message logs sorted by date
4185 */
4186export 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
4201async function loadAllProjectsMessageLogsFull(
4202 limit?: number,

Callers 1

ResumeCommandFunction · 0.85

Tested by

no test coverage detected