(id: string)
| 92 | } |
| 93 | |
| 94 | export 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 | |
| 101 | export function listAgentSessions(project_slug: string, agent_id: string): Session[] { |
| 102 | const rows = getDb() |
nothing calls this directly
no test coverage detected