Exactly what I thought the court would do. She'll get time-served, and become a way to make revenue.
The first plea thrown at people in for such petty shit is always gonna be like that, and they'll always say "This is the only one you're gonna get!" to scare people. The DA's know that most people will take it just to get out of lockup, and it clears another case off their books.
If she goes back to that particular shitbird, and/or starts using again.... Don't make it just two months clean to let her back in, or even two years. The only thing that matters is the next fix, and we'll step all over even the closest friends & family to get it. By hook or by crook, to a junky it doesn't matter.
Sorry to sound harsh, but that's what she is, and two months of nowhere near the amount of time & dedicated effort it takes to beat an opiate addiction. It takes years to tamp it down. There aren't any "cured" addicts, only ones who have managed to control and bury their addictions. But it'll still be there, and sometimes all it takes is just one or two lapses in control, and it's gonna come roaring back full force.
Getting her off the shit is gonna be nearly a lifetime's struggle. If she goes back, let her go, and don't try to save her. I know that as a parent it's a terrible thing to have to do, but if someone doesn't want to save themselves, nothing you can do will fix them.
But if she *does* clean herself up, get herself on her own feet, and become a memberr or society & your family, THEN welcome her back. Otherwise.... well.