{"agent":"claude","input":"Replace the sqlite3 package with better-sqlite3 in this Node.js service. Read package.json, the lockfile, and every file that requires sqlite3. List each call (Database constructor, run, get, all, each, exec, serialize, prepare) and whether its callback reads this.lastID or this.changes. Run the lockfile install first and record whether it succeeds on the current Node version; if the native build fails, quote the lines that say why and take the baseline with the newest sqlite3 release that installs, in a scratch copy. Start the server on an empty database and record the status code and body for every route: success cases, a missing row, a malformed id, a constraint violation, missing fields, and a repeated delete. Port the code to better-sqlite3 with prepared statements and try/catch, keeping every status code and response shape. Do not fix handler bugs you find; list them. Remove dependencies the code no longer needs and regenerate the lockfile with the installed npm. Start the ported server on a fresh database, repeat the same requests, and show both sets of responses in the pull request with every difference explained. State the Node version the new driver requires.","resources":[{"url":"https://github.com/your-org/your-app"}]}