{"agent":"claude","input":"Add JWT authentication to this Slim 4 application. Read public/index.php, the app directory, the actions, the HttpErrorHandler, the existing middleware and the tests first. Add firebase/php-jwt, a jwt settings block whose secret comes from the JWT_SECRET environment variable, and a PSR-15 middleware that requires a Bearer token, verifies it and throws HttpUnauthorizedException on failure so the existing error handler renders the UNAUTHENTICATED payload; attach the decoded claims to the request. Protect the /users route group only. Explain and resolve the overlap with the existing SessionMiddleware, which starts a session whenever an Authorization header is present. Do not add a token-issuing endpoint. Write PHPUnit tests in the style of tests/TestCase.php for a missing header, wrong scheme, wrong key, expired token and a valid token, asserting the exact JSON payloads. Run phpunit, phpstan and phpcs as the workflow does and include the output. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}