When she says she's not receiving UC, I'm wondering if she's been sanctioned for non-compliance. If she's only eligible for the job seeker part and isn't looking for work and doing everything they're telling her to do regarding that, then she'll end up with no money. She may not want to tell people that though.
The temporary accommodation from the council isn't free, but if she qualifies for the maximum amount of UC housing costs then that'll pay for it, even if it's more than the usual amount allowed (because it's not her choice to be there). They won't house her if she has no means to pay.
But she's not being entirely honest somewhere. The council are used to homeless people and they're used to people not knowing the system. Day one of offering temporary accommodation they'd make sure she's claiming any benefit she's entitled to at the same time as they signed her up for the accomodation. The staff would also be likely to know that you can claim UC whilst having no address. So either she's encountered some really shit or totally overstretched staff (possible) or there's some missing information she's not telling you.
She's run out of actual friends to sofa surf with or borrow money from so now she's hitting up acquaintances. If this has been going on for 6 months (that she's admitting to, sounds like it's been going on a lot longer than that in reality), then that's 6 months she could have been sorting this out.
It's not totally implausible that she could still be sofa surfing despite her best efforts because as someone single with no disabilities or dependents, she'll be pretty low down the priority list, which in some areas may mean she's left on the streets, especially if she's telling them her friends are happy to put her up for now. The services in some areas are totally oversubscribed and it can take a long time for someone's case to become a priority.
There's no reason why she couldn't have claimed UC and registered with the council as homeless and been bidding on properties every week though (she can use library computers for free or there may be some in the council's offices for the public to use solely for council flat bidding).
She says she's not voluntarily homeless but she may not understand the legal definition of that term or agree with it, so could not be being entirely truthful when she tells you she's not.
You're not her support worker though, you're not even a close friend, so don't expend any more time and energy unpicking the mess that is her life than you can realistically spare. You could invest a lot of yourself only to discover that she's not interested in sorting out any problems she has and isn't willing to do anything to help herself. For some people, leaning on others for support is the only solution they're willing to consider and when people eventually tire of being someone's unpaid and unappreciated support worker and needs to take a step back, they'll just be labelled a snake in the grass who doesn't care by the person they've been supporting.
If she's got MH problems she needs to at a minimum see her GP and tell them she's homeless, they might be able to refer her for further help if her life has fallen apart that much due to MH issues. Some GP practices have social workers attached now as a kind of early intervention. If she isn't actually up to working at the moment then even if the GP can't do anything to improve her MH or situation they will at least be aware of her current state and can provide evidence, if appropriate, for a LCWRA (sickness) UC claim. Homeless people are entitled to see a GP same as anyone else and if she was previously housed it's likely she's already registered with one, she just needs to make an appointment.
There's also likely to be some form of homeless outreach charity in your area that goes around making contact with rough sleepers and checking if they want any help. She needs to get in touch with them. Some run hostels (allocated through the council's homeless scheme) and have their own staff, she might be allocated some kind of support worker to help her navigate the systems until she finds permanent housing.
CAB, GP, SS, council, basically anyone in authority can refer her for a food bank voucher. They only give 3 days of food and a limited amount of vouchers, but it's better than nothing if she's exhausted all her friends generosity. I know it's not ideal if she has to carry it around with her, but perhaps someone she knows better won't mind giving her food space in their kitchen even if they don't want her staying any more. Failing that, most things that will come from a food bank can be eaten cold if necessary, however unpleasant that may be. If you want to help her practically, give her a tin opener and a spoon, a large strong bin bag to put her legs in and an umbrella to cover the top of her so at least if she's out in the open she can stay dry.
She seems like one of those people who thinks that helping out with whatever she thinks needs doing around the house means she's doing the person a favour and it entitles her to stay living with them forever. I don't know your own situation OP but sometimes these grifters target the sick/elderly/disabled and claim they're needed to be around as a "carer" (despite doing virtually nothing except to claim the title and benefits that go with it, whilst living unwanted in the person's home). It sounds like she only shows up to see people when she wants something and the rest of the time, when she's sorted elsewhere, they don't hear from her.
I wouldn't let her in even for a cuppa TBH. I'd make her one, but we'd sit in the garden. You're already stressed just from this one short encounter. I don't think you need a "friend" like her. You don't really know her at all. She's 100% trying to railroad you and being manipulative. For that reason alone you need to be wary, never mind her being homeless and in debt. You don't know that she wouldn't steal from you or become aggressive if you wanted her to leave, even if she hadn't stayed overnight at that point. Desperate people can do desperate things and she's already proving she doesn't respect you with the way she's gone about asking if she can stay.