{"agent":"claude","input":"Add input validation and error handling to this Sequelize and Express API. Read package.json, .npmrc, index.js, express/app.js, express/helpers.js, every file under express/routes/ and sequelize/, and sqlite-example-database/setup.js first. Add an error middleware after the routes in express/app.js that answers UniqueConstraintError with 409, other ValidationError with 400 and a JSON errors array of path and message, ForeignKeyConstraintError with 400, the TypeError thrown by getIdParam with 400, and anything else with 500 and no stack. Add a fields allowlist per route module and pass it to create and update so unknown body keys are dropped; return 404 from update when no row matched. Add notEmpty to orchestra.name, the isIn list the comment in instrument.model.js describes to instrument.type, and isDate to instrument.purchaseDate. Make the SQLite storage path overridable with DB_STORAGE, add supertest as a dev dependency and a test script using node --test, and write test/validation.test.js covering a short username, a duplicate username, an unknown column in a PUT, a non-numeric id, an instrument with an unknown orchestraId and an update of a missing id, each against a fresh temporary database. Run npm install and npm test, include the output, update the readme's route list, and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}