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

Function getSessionWithAnnotationsForUser

mcp/src/server/sqlite.ts:843–853  ·  view source on GitHub ↗
(userId: string, sessionId: string)

Source from the content-addressed store, hash-verified

841 },
842
843 getSessionWithAnnotationsForUser(userId: string, sessionId: string): SessionWithAnnotations | undefined {
844 const sessionRow = tenantStmts.getSessionForUser.get(sessionId, userId) as Record<string, unknown> | undefined;
845 if (!sessionRow) return undefined;
846
847 const annotationRows = tenantStmts.getAnnotationsBySession.all(sessionId) as Record<string, unknown>[];
848
849 return {
850 ...rowToSession(sessionRow),
851 annotations: annotationRows.map(rowToAnnotation),
852 };
853 },
854
855 // User-scoped annotations
856 getPendingAnnotationsForUser(userId: string, sessionId: string): Annotation[] {

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…