{"agent":"claude","input":"Upgrade Knex in this Express API from the pinned 0.20 release to the current major and open a pull request. Read package.json, package-lock.json, knexfile.js, config/database.js, db/migrations, db/seeds, server/helpers/model-guts.js and server/models first. Before changing anything, run npm ci on the sandbox's Node and npx knex migrate:latest against a local PostgreSQL, and record exactly what fails. Install PostgreSQL with apt, create the knex-test database, and pass credentials through PGUSER and PGPASSWORD; do not edit the development connection string. Upgrade knex, and upgrade pg and bcrypt only as far as the install and the connection require, explaining each. Read Knex's UPGRADING.md for every version between the old and the new one and, for each breaking change, state whether this code is affected and where. Raise engines.node to what the new versions require. Then run db:migrate, a rollback, db:migrate again and db:seed, start the server, call each users and projects route, and paste the outputs. Do not fix unrelated bugs; list any you hit under a separate heading with the file and line. Leave express and body-parser alone. If the migrations or the routes fail after the upgrade, stop and report it.","resources":[{"url":"https://github.com/your-org/your-app"}]}