Cloudflare announced 1,100 layoffs as it restructures for the age of agentic AI, sending shares tumbling.