MCPcopy Create free account
hub / github.com/benjitaylor/agentation / getSessionWithAnnotations

Function getSessionWithAnnotations

mcp/src/server/sqlite.ts:358–368  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

356 },
357
358 getSessionWithAnnotations(id: string): SessionWithAnnotations | undefined {
359 const sessionRow = stmts.getSession.get(id) as Record<string, unknown> | undefined;
360 if (!sessionRow) return undefined;
361
362 const annotationRows = stmts.getAnnotationsBySession.all(id) as Record<string, unknown>[];
363
364 return {
365 ...rowToSession(sessionRow),
366 annotations: annotationRows.map(rowToAnnotation),
367 };
368 },
369
370 updateSessionStatus(id: string, status: SessionStatus): Session | undefined {
371 const updatedAt = new Date().toISOString();

Callers

nothing calls this directly

Calls 1

rowToSessionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…