pub fn attach_preview_diff( result: &mut Value, params: &Value, file: &str, before: &str, after: &str, )
Attach the standard preview diff fields to a command response payload.