pub fn apply_selected_plans( source: &str, plans: &[PlanEntry], include_review: bool, ) -> Result<String>