{"agent":"claude","input":"Add Prometheus metrics to this Koa API with prom-client. Read package.json, package-lock.json, Dockerfile, docker-compose.yml, .github/workflows/ci.yml, src/server.ts, src/config.ts, src/logger.ts, src/cron.ts, both router files and the tests first. Pick a prom-client version whose engines allow the Node version pinned in package.json and the Dockerfile, and regenerate the lockfile with the npm version the engines field names. Write src/metrics.ts with a Registry, collectDefaultMetrics, a histogram http_request_duration_seconds with method, route and status_code labels where route is the matched router pattern or unmatched, and a counter cron_job_runs_total. Register the middleware before the request logger in src/server.ts and exclude the metrics path from the histogram. Serve GET /metrics on the unprotected router with the registry's content type, refusing requests without a matching bearer when METRICS_TOKEN is set in config.ts and open otherwise. Increment the counter in the cron callback. Write a Jest test with a stubbed context for the middleware, the endpoint and the token check, run npm run lint and npm test, start PostgreSQL in the sandbox, run the server and curl /metrics, and open a pull request with the test output and the first lines of the exposition. Do not change the CI workflow or the Heroku deploy.","resources":[{"url":"https://github.com/your-org/your-app"}]}