lease end

I am looking for advice from the community, I have a 2021 ram 1500 lease due to end in May. It does have 2 carfax reports for minor claims but nothing major, I had a pre-purchase inspection and they said the e torque alternator needs replaced ($1600). I have 38,000 miles on it (well under max) and I like the truck. Looking at options I think I have several at this time: trade it in towards a new purchase/lease (I think I have positive equity despite the carfax), extend the lease and hope things get better later this year, or just buy it now….I appreciate any advice. Thanks