{"agent":"claude","input":"Add rate limiting to this Koa app with koa-ratelimit. Read package.json, the test script, .travis.yml and each app.js first. Use the memory driver with a Map, key on ctx.ip, set the remaining, reset and total headers, and read max and window from RATE_LIMIT_MAX and RATE_LIMIT_WINDOW_MS with sensible defaults. Put a general limiter in front of the routes and a stricter one on write routes as route middleware, and put a limiter in front of any basic-auth check so password guessing is throttled. Do not set app.proxy; ask about it in the PR description. Add supertest tests in the existing mocha style that drive a client over the limit and assert the 429, the error message and the headers. Run npm test and npm run lint, check koa-ratelimit's engines field against the repository's, and include the output. Do not change the CI config. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}