{"agent":"claude","input":"Add rate limiting to this Leptos app's Axum server. Read Cargo.toml including the package.metadata.leptos block, src/main.rs, src/app.rs, src/lib.rs, rust-toolchain.toml, the end2end directory and the README first. Use tower_governor at the version compatible with the axum and tower versions in the lockfile. Apply a GovernorLayer with a per-second rate and a burst size, with use_headers, to the /api prefix where server functions are served, leaving pages and the /pkg assets unlimited. Switch the server to into_make_service_with_connect_info so the peer address is available, and make the key extractor configurable between the peer address and SmartIpKeyExtractor through an environment variable for deployments behind a proxy. Spawn a task that calls retain_recent on the limiter every minute. Add a save_count server function the counter calls so there is a real /api route, and an integration test that sends burst plus one requests and asserts 429 with retry-after on the last one while GET / still answers 200. Install nightly, the wasm target and cargo-leptos, fill in the template placeholders, run cargo leptos build, cargo test with the ssr feature and the Playwright suite, and open a pull request that quotes the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}