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

Function getPendingAnnotationsForUser

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

Source from the content-addressed store, hash-verified

854
855 // User-scoped annotations
856 getPendingAnnotationsForUser(userId: string, sessionId: string): Annotation[] {
857 // First verify the session belongs to the user
858 const session = this.getSessionForUser(userId, sessionId);
859 if (!session) return [];
860
861 const rows = tenantStmts.getPendingAnnotationsForSession.all(sessionId) as Record<string, unknown>[];
862 return rows.map(rowToAnnotation);
863 },
864
865 getAllPendingForUser(userId: string): Annotation[] {
866 const rows = tenantStmts.getAllPendingForUser.all(userId) as Record<string, unknown>[];

Callers

nothing calls this directly

Calls 1

getSessionForUserMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…