Refactors across many files
Give Kimi K2.7 Code the goal, the file list and tools to read, edit and run tests, and let it work through the change. Review the full diff and run the test suite before merging.
Example: Why did CI fail on this commit?
Material
- CI log (excerpt)
- warning: unused variable 'tmp' error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. (src/user.ts:18) 3 tests skipped
- src/user.ts:18
- sendWelcome(user.email);
PromptRead the CI log, find the first real error, and propose the smallest fix.
Sample answer · written by hand to show the reasoning
The warning and the skipped tests don’t fail the build; the type error does. user.email can be undefined, but sendWelcome needs a string. Either skip the call when email is missing (if (user.email) sendWelcome(user.email);) or make email required where users are created. Rerun the type check to confirm.