{"agent":"claude","input":"Add health check endpoints to this Phoenix app. Read mix.exs, mix.lock, lib/live_beats_web/router.ex, lib/live_beats_web/endpoint.ex, lib/live_beats/application.ex, lib/live_beats/repo.ex, config/runtime.exs, config/test.exs, fly.toml, test/support/conn_case.ex and test/live_beats_web/controllers/redirect_controller_test.exs first. Add a HealthController with a live action that returns 200 and JSON without touching any dependency, and a ready action that runs SELECT 1 through the repo with a short timeout and returns 200 with a checks map, or 503 with the same shape when the query fails or times out, catching the database errors instead of raising. Mount them under /health through the api pipeline, declared before any scope with a catch-all live route. Replace the tcp check in fly.toml with an http check on the readiness path using the existing interval, timeout and grace period. Write ExUnit tests on ConnCase for both actions, including one that forces the database check to fail. Start Postgres in the sandbox, run mix test and mix format --check-formatted, fix anything until they pass, and open a pull request that explains what each endpoint means and how the platform check was changed.","resources":[{"url":"https://github.com/your-org/your-app"}]}