pub fn render_response_with<F>( command: &str, output: JsonOutput, data: Value, text: F, ) -> Stringwhere F: FnOnce() -> String,
Render either the shared JSON envelope or lazily-built plain text for a command response.