MCPcopy Create free account
hub / github.com/microsoft/AI-Engineering-Coach / parseOpenCodeSessions

Function parseOpenCodeSessions

src/core/parser-opencode.ts:307–318  ·  view source on GitHub ↗
(storageDir: string)

Source from the content-addressed store, hash-verified

305}
306
307export function parseOpenCodeSessions(storageDir: string): Session[] {
308 const sessions: Session[] = [];
309 const sessionDir = path.join(storageDir, 'session', 'global');
310 const rawSessions = readAllJsonInDir<OcSession>(sessionDir);
311
312 for (const rawSession of rawSessions) {
313 const session = parseOpenCodeSession(rawSession, storageDir);
314 if (session) sessions.push(session);
315 }
316
317 return sessions;
318}

Callers 2

collectSyncFunction · 0.90

Calls 2

readAllJsonInDirFunction · 0.85
parseOpenCodeSessionFunction · 0.85

Tested by

no test coverage detected