pub fn run_headless(args: &CliArgs) -> Result<(), String>
Run the emulator in headless mode.
This is the main entry point for headless CLI execution.