I've been in your shoes. You really need to detach. You can't stop what she's doing. You also can't show your anger in front of your kids. They need you right now.
My W doesn't come home at all most nights anymore; I've detached to the point where I like it that way.
You might consider meds to get you through this rough spot. I know how you're feeling. But for your kids sake, you must not let the anger get to you.
Just like you, my M has been a rollercoaster of good and bad times. I'm done with that now. I've put it in her court.
You've DB'ed before; get it back out, dust it off, and get back to the happy Francis. You know how to do it. You've succeeded in the past. I've only been doing this for 2 months now.
You know you're among friends. Let's not backslide now.