Reproduce nextjs-codemod-noninteractive-upgrade from its authentic engineer request.
Reproduce nextjs-codemod-noninteractive-upgrade from its authentic engineer request.: a task in nextjs-selfbench (Harbor dataset). Make @next/codemod upgrade safe to invoke from agents, CI, and other non-interactive environments. Add a -y, --yes option that skips interactive questions and accepts…
The task
Make `@next/codemod upgrade` safe to invoke from agents, CI, and other non-interactive environments. Add a `-y, --yes` option that skips interactive questions and accepts their existing defaults, and automatically use the same behavior whenever stdin is not a TTY.
Part of dari-ai/nextjs-selfbench.