{"agent":"claude","input":"Migrate this Node.js project from the mysql package to mysql2. Find every file that requires mysql and describe how the rest of the code reaches the database: directly, or through a wrapper module. List every way results are consumed (rows as an array, result.insertId, result.affectedRows, the fields argument, streaming, multiple statements, transactions, pool.getConnection). Replace the dependency in package.json and the lockfile, using the package manager the lockfile belongs to. Keep the calling convention the application already has: if callers expect rows, make the wrapper return rows, not the [rows, fields] pair that mysql2/promise resolves to. Do not replace query with execute unless every statement that would use it works as a server-side prepared statement; bulk inserts with VALUES ?, IN (?) with an array, and identifiers passed as ?? placeholders must stay on query. Keep connection options, and report any that mysql2 treats differently (for example dateStrings, supportBigNumbers, decimalNumbers, typeCast, flags, ssl). Then verify against a real server: install MySQL 8 in the sandbox, create a user with the default authentication plugin, load the schema from the repository if there is one, and confirm that the old driver fails to connect with ER_NOT_SUPPORTED_AUTH_MODE and the new one connects. Start the app and exercise each route that reads or writes the database, using the repository's tests or sample requests, and compare response bodies before and after where the old driver can still be used (a user created with mysql_native_password). Report any difference in returned types, such as dates, decimals and booleans. Do not change SQL or table definitions. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}