{"agent":"claude","input":"Convert this Node.js codebase from JavaScript to TypeScript with strict mode. First list every .js file, the module style, the Node versions in CI and the Dockerfile, and the test commands. Add typescript, the @types packages for the dependencies at the versions the lockfile installs, and a tsconfig.json with strict true and an outDir; update the start script, Dockerfile and docker-compose.yml to build and run the compiled output. Convert one directory at a time, config before data access before routes before the entry point, with real interfaces for documents, request handlers and session fields instead of any, and run npx tsc --noEmit after each directory until it is clean. Do not change behavior: type existing code as it is, including code that looks unsafe, and list anything you think should change separately. Start the database in the sandbox, seed it, start the compiled app and run the existing test suite. Open a pull request with the final tsc output, the count of any and @ts-expect-error left with the reason for each, and the test results.","resources":[{"url":"https://github.com/your-org/your-app"}]}