MCPcopy Create free account
hub / github.com/Railly/agentfiles / parseAllConversationsSync

Function parseAllConversationsSync

src/conversations/parser.ts:260–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258}
259
260export function parseAllConversationsSync(): ConversationItem[] {
261 const metas = collectMeta();
262 const small = metas.filter((m) => m.fileSize <= MAX_FILE_SIZE);
263 small.sort((a, b) => b.fileSize - a.fileSize);
264
265 const conversations: ConversationItem[] = [];
266 for (const meta of small) {
267 const item = parseFileSync(meta);
268 if (item) conversations.push(item);
269 }
270
271 conversations.sort((a, b) => (b.lastTimestamp || "").localeCompare(a.lastTimestamp || ""));
272 return conversations;
273}
274
275export async function parseAllConversationsAsync(): Promise<ConversationItem[]> {
276 const metas = collectMeta();

Callers

nothing calls this directly

Calls 4

collectMetaFunction · 0.85
parseFileSyncFunction · 0.85
filterMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected