MCPcopy
hub / github.com/nowork-studio/NotFair / getSession

Function getSession

notfair-cmo/src/server/sessions/index.ts:94–99  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

92}
93
94export function getSession(id: string): Session | null {
95 const row = getDb()
96 .prepare("SELECT * FROM sessions WHERE id = ?")
97 .get(id) as SessionRow | undefined;
98 return row ? rowToSession(row) : null;
99}
100
101export function listAgentSessions(project_slug: string, agent_id: string): Session[] {
102 const rows = getDb()

Callers

nothing calls this directly

Calls 2

getDbFunction · 0.90
rowToSessionFunction · 0.85

Tested by

no test coverage detected