Sorry this has happened to you.
Regardless of her being bipolar, on meds or off meds. Someone with Bipolar can take there meds and do everything possible to avoid a manic or depressive episode and they can and will still happen at times.
Your wife has to want to repair the marriage.
Maybe you should talk to a therapist, just about what you are going through, Your therapy shouldn't be about "fixing "her.. Just about can you / will you / do you want try and salvage your marriage?
You are in a tough place, I hope your able to find what direction you should take for you and your children.
Good luck