import { apiFetch } from './client' import type { SessionReport } from '../types' export async function getSession(sessionId: string): Promise { const res = await apiFetch(`/api/sessions/${sessionId}`) if (!res.ok) throw new Error('Failed to load report') return res.json() }