pub async fn edit_file( path: &str, old_str: &str, new_str: &str, ) -> Result<String>
Edit a file asynchronously by replacing old_str with new_str.
old_str
new_str
Returns a small JSON payload with the number of replacements.