{"agent":"claude","input":"Add cursor pagination to this D1-backed Cloudflare Worker and open a pull request. Read package.json, wrangler.json, tsconfig.json, worker-configuration.d.ts, migrations/0001_create_comments_table.sql, src/index.ts and src/renderHtml.ts first. Add GET /api/comments in src/index.ts, routed on the request pathname, taking limit (default 20, maximum 100, 400 with a JSON error otherwise) and after (an integer id). Run SELECT id, author, content FROM comments WHERE id > ?1 ORDER BY id LIMIT ?2 with limit plus one rows bound, and return { items, nextCursor } as JSON, omitting nextCursor on the last page. Make the root status page use the same function for its first page. Add vitest and @cloudflare/vitest-pool-workers as dev dependencies of this template, a vitest.config.ts pointing at wrangler.json, and src/index.test.ts that applies the migration SQL to the test database, inserts 25 rows, walks the pages asserting increasing ids, no repeats and no cursor on the last page, and checks the 400 cases. Run npm install, npm run check, npm run seedLocalD1 and npx vitest --run, start wrangler dev, curl two consecutive pages and paste the responses and test summary in the pull request. Do not change wrangler.json bindings or the migration.","resources":[{"url":"https://github.com/your-org/your-app"}]}