<human>: The situation is basically in the title. I've been working at my company for about 2 years now and really enjoy it and thrive there. My coworker, let's call her Piper (yes I am watching Orange is the New Black), is probably going to be fired sometime this summer. She has been with my company for something like five years, but has jumped around different departments (her choice) so her title is technically entry level.

Another coworker in our group left for a different job, so Piper went to talk to my boss about promotion potential to take his place. My boss gave her a list of things to work on and Piper reacted by basically having a big crying breakdown in my boss's office. Piper is good at the data crunching stuff but doesn't really have a point of view or intellectual curiosity, which is vital for getting to the next level. The past month has basically been a tryout and she's failing.

My boss and I have a great relationship and tells me a lot (probably too much!). She let me know that Piper does not have a future in her position in the company. When the time comes (probably at the end of the summer) she will give her plenty of lead time. Another person who is being let go is getting two months to find a new job so it's probably something like that.

I feel like Piper might have an inkling that she is at the end of the line here but I don't know for sure. I feel weird just coming out and saying it and I don't know if it would cause issue with my boss. When Piper has mentioned seeing interesting jobs online I've encouraged her to apply and have helped her with a cover letter she wrote for one. I feel like if I don't say anything and Piper gets blindsided I'll have betrayed my friend.

Any suggestions on how to handle this?

Could you distill the essence of the text into 1-3 sentences?
<bot>: My coworker, who has become my friend, is probably going to get fired in the near future and I don't know how to handle it.