pub fn is_interactive() -> bool
True when both stdin and stdout are attached to a terminal. False in pipes, redirects, CI, and under the test harness — callers use this to decide whether prompting is safe.