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

Function rowToSession

mcp/src/server/sqlite.ts:149–160  ·  view source on GitHub ↗
(row: Record<string, unknown>)

Source from the content-addressed store, hash-verified

147}
148
149function rowToSession(row: Record<string, unknown>): Session & { userId?: string } {
150 return {
151 id: row.id as string,
152 url: row.url as string,
153 status: row.status as SessionStatus,
154 createdAt: row.created_at as string,
155 updatedAt: row.updated_at as string | undefined,
156 projectId: row.project_id as string | undefined,
157 metadata: row.metadata ? JSON.parse(row.metadata as string) : undefined,
158 userId: row.user_id as string | undefined,
159 };
160}
161
162function rowToOrganization(row: Record<string, unknown>): Organization {
163 return {

Callers 4

getSessionFunction · 0.85
getSessionForUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…