{"agent":"claude","input":"Add optimistic locking to the article entity in this TypeORM API. Read ormconfig.json.example, every file under src/article/ and src/user/, src/app.module.ts, jest.json and package.json first. Add a version column to the article entity and return it in the article response. Make the update path load the article with TypeORM's optimistic lock when the request carries a version and answer 409 Conflict with the current version on a mismatch; a request without a version keeps the current behaviour. Replace the in-memory favorite count increment and decrement with the repository's atomic increment and decrement. Do not change the user entity or the favorites join table. Note in the pull request that synchronize is on and production needs a migration. In the sandbox, install MySQL, configure ormconfig.json locally, write a service spec against the real database that proves a stale update is rejected and that two concurrent favorites count as two, and run the whole test suite. Open a pull request whose description quotes the test output.","resources":[{"url":"https://github.com/your-org/your-app"}]}