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

Function getSessionForUser

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

Source from the content-addressed store, hash-verified

836 },
837
838 getSessionForUser(userId: string, sessionId: string): Session | undefined {
839 const row = tenantStmts.getSessionForUser.get(sessionId, userId) as Record<string, unknown> | undefined;
840 return row ? rowToSession(row) : undefined;
841 },
842
843 getSessionWithAnnotationsForUser(userId: string, sessionId: string): SessionWithAnnotations | undefined {
844 const sessionRow = tenantStmts.getSessionForUser.get(sessionId, userId) as Record<string, unknown> | undefined;

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…