import { getGameDb } from '@/lib/db/client' import { getShipState } from '@/lib/game/ship' // The ship's systems + cargo hold + turn; auto-initializes on first hit. export async function GET() { const db = await getGameDb() return Response.json(await getShipState(db)) }