{"agent":"claude","input":"Add rate limiting to this Vapor app and open a pull request. Read Package.swift, Sources/App/configure.swift, Sources/App/routes.swift, Sources/App/entrypoint.swift, Sources/App/Controllers/TodoController.swift, Tests/AppTests/AppTests.swift and the workflows in .github/workflows first. Add Sources/App/Middleware/RateLimitMiddleware.swift as an AsyncMiddleware backed by a RateLimiter actor with a token bucket per client, a refill computed from elapsed time, idle-bucket cleanup, and an injectable clock. Key clients by the first X-Forwarded-For address only when a trustProxy flag is set, else by req.remoteAddress. Add X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset to allowed responses and throw Abort(.tooManyRequests) with Retry-After when the bucket is empty. Read capacity, refill rate and trustProxy from Environment in configure.swift with defaults and register the middleware with app.middleware.use before routes(app). Do not add a dependency. Write Tests/AppTests/RateLimitTests.swift with Swift Testing and VaporTesting covering the 429 after capacity, the countdown header, separate buckets per client and refill with the injected clock. Run swift build and swift test and paste the results in the pull request. Do not change the todo routes.","resources":[{"url":"https://github.com/your-org/your-app"}]}