{"agent":"claude","input":"Add response compression to this Koa and TypeScript API. Read package.json, tsconfig.json, src/server.ts, src/logger.ts, src/config.ts, src/unprotectedRoutes.ts, src/protectedRoutes.ts, src/controller/user.ts, the Dockerfile and the tests under tests first. Install koa-compress and any type declarations tsc --noEmit needs. Add src/compression.ts exporting the middleware with a 1024-byte threshold, brotli at the default quality, gzip and deflate, and use it in server.ts after cors and before the logger. Write tests/compression.test.ts with node's http and zlib that start a small Koa app with the middleware and assert gzip and br responses decompress to the body, that a body under the threshold is not encoded, and that a request without Accept-Encoding gets identity. Run npm ci, npm run lint and npm test, then start the server against a Postgres in the sandbox and record the size of /swagger-html with and without Accept-Encoding: br. Quote the output. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}