{"agent":"claude","input":"The dashboard posts list loads every post of the user with one findMany and no take. Paginate it: move the query into lib/posts.ts as a function that returns the total and one page using skip and take, order by updatedAt desc with id desc as a tie-break, read the page number from searchParams, clamp it, and redirect past-the-end pages to the last page. Add a prev/next pager component in the style of components/pager.tsx that renders nothing for a single page. Add an index on (authorId, updatedAt) to Post with a migration. Leave GET /api/posts unchanged and say so. Prove it against a local MySQL: run prisma migrate deploy, seed more posts than one page, and print the total and the ids on the first page, the last page and one past the end. Run lint and tsc. Open a pull request quoting the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}