{"agent":"claude","input":"Migrate this Node.js app from CommonJS to ES modules. Read package.json, server.js, config/config.js, config/env/*.js, app/routes/*.js, app/data/*.js, artifacts/db-reset.js, Gruntfile.js, .jshintrc, cypress.json, test/e2e/plugins/index.js, Dockerfile, docker-compose.yml, Procfile and the workflows under .github/workflows first, and list every require, module.exports, __dirname and dynamic require you find. Add \"type\": \"module\" to package.json, convert every require to an import with an explicit .js extension, turn module.exports into default or named exports so existing import names stay the same, and replace __dirname with import.meta.url. Replace the dynamic environment require in config/config.js with static imports of the env files chosen by NODE_ENV. Keep Gruntfile and the Cypress plugins file on CommonJS by renaming them to .cjs and pointing the npm scripts and cypress.json at them; the Cypress plugin must not import an ES module. Update .jshintrc so jshint accepts modules and drop the use strict pragmas. Drop Node 10 from the CI matrix and add an engines field. Then run npm ci, start MongoDB, run npm run db:seed, start the app with NODE_ENV=test, run npm run test:ci, run npx jshint . and docker build, and open a pull request that lists each file changed, the Node range, and the test and lint output.","resources":[{"url":"https://github.com/your-org/your-app"}]}