pub fn render_response( command: &str, json_output: bool, data: Value, text: impl Into<String>, ) -> String
Render either the shared JSON envelope or plain text for a command response.