How AI Is Reshaping the SaaS Industry: From Software to Autonomous Agents