{"agent":"claude","input":"This project fails with 'Error [ERR_REQUIRE_ESM]: require() of ES Module' after a dependency upgrade, or will when its dependencies are upgraded. Read package.json (type, main, bin, exports, engines), the lock file and the entry files. List every dependency whose latest major is ESM-only, with its current range, the last version that supports require, and the engines.node of the latest release (use npm view). For each one that the upgrade touches, reproduce the failure and quote it. Run the entry point on every Node major the engines field and CI allow, plus the current LTS, and do not stop at --help: run a command that reaches the upgraded package's API, because newer Node can load the module and fail later with a TypeError. Test these fixes on each Node version and report the results as a table: reading .default from the require; dynamic import() inside an async function; converting the package to ES modules; staying on the last CommonJS major; replacing the package with a built-in such as util.styleText. Choose the fix that works on every Node version the engines field promises. If none does without raising the floor, keep the last CommonJS major, add an ignore rule for the next major if the repository has an update bot configuration, and state what each alternative would need. Do not change the module type of a file other packages import unless asked. Add a smoke test for the command-line entry point if the project has no tests, using any non-interactive input the program already supports. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}