If she was out murdering people would you not want her locked up just because she was crazy?
If she were out murdering people purely because of her insanity, she should be locked up in a psychiatric institution until such time as competent medical authorities deem her no longer a threat to society. That may be after some course of treatment, or it may be never. I just reject the notion that anything is accomplished by putting a crazy person into the criminal justice system.