{"agent":"claude","input":"Add CORS to this Vapor server. Read Package.swift, Sources/App/configure.swift, Sources/App/routes.swift, Tests/AppTests/AppTests.swift, docker-compose.yml and .github/workflows first. Use Vapor's built-in CORSMiddleware; add no package. Read the allowed origins from a CORS_ALLOWED_ORIGINS environment variable as a comma-separated list, allow GET, POST, PUT, PATCH, DELETE and OPTIONS and the accept, authorization, content-type, origin and x-requested-with headers, and register the middleware at .beginning so error responses carry the headers. With the variable unset, allow no cross-origin requests. Add the variable to docker-compose.yml's shared environment. In AppTests.swift, using the existing Swift Testing suite and withApp helper, add tests for a preflight OPTIONS on /todos from an allowed origin, a GET /hello from a refused origin, and a POST /todos from an allowed origin, setting the allowed list through the test Environment. Run swift test and docker compose build. Open a pull request with the diff, the variable's format and the test output. Change nothing else.","resources":[{"url":"https://github.com/your-org/your-app"}]}