Align with changes in MagicPen@3.0.0
Use magicpen.replaceText to patch diff output
added test for buffer diff regression
5.0.0-beta6