{"agent":"claude","input":"Add Cognito authentication to the REST API in this CDK app. Read cdk.json, package.json and the stack file first. Add a Cognito user pool with email sign-in and a user pool client without a secret, a CognitoUserPoolsAuthorizer, and set the RestApi's default method options so every existing method requires a Cognito token, while the OPTIONS methods used for CORS preflight stay unauthenticated. Add outputs for the pool id and client id. If the stack file creates the App and calls synth at module scope, move that into a separate entry file and update cdk.json so the stack class can be imported by tests. Write assertion tests with Template.fromStack that check the user pool, the authorizer type, that every non-OPTIONS method is COGNITO_USER_POOLS and every OPTIONS method is NONE. Run the build, the tests and cdk synth, and open a pull request that explains how a client obtains a token. Do not change the Lambda handlers.","resources":[{"url":"https://github.com/your-org/your-app"}]}