{"agent":"claude","input":"Replace the deprecated @hapi/joi package with joi in this Node.js project. Read package.json, the lock file and every file that requires or imports @hapi/joi, and also find the files that receive schemas and call validate, validateAsync, assert or attempt on them, with the options they pass. Trace what happens to a validation error: which text reaches the HTTP response. Before editing, install joi under an alias next to the existing package and write a script that builds each of this project's schemas with both libraries and validates the same inputs with the project's own options: a valid body, each required field missing, a wrong type, an empty string, an unknown extra key and no body at all. Print the error messages and the returned values for both and state whether any differ. Choose the newest joi major whose engines field the project's Node version satisfies; read that version from engines, .nvmrc, a Dockerfile or CI, and if none says, report the Node version you ran and repeat the comparison on the previous major too. Then change every require in one commit, because schemas from two joi packages cannot be mixed, and check node_modules for other packages that depend on either name. Remove @hapi/joi, update the lock file, and show npm install printing no deprecation notice for it. Do not change the options, the schemas or the error format. Start the app only if its database is reachable in the sandbox; otherwise test the validation middleware with a stub request and say so. Open a pull request with the script and its output.","resources":[{"url":"https://github.com/your-org/your-app"}]}