Bibi is almost certainly gone the moment the military operations are over. Something like 90% of Israelis hold him responsible for the attacks and want him out.
He'll be around through the unity government while military operations are conducted, but there's essentially no chance he has any part of what comes after.