How CAMEL Rebuilt Browser Automation: From Python to TypeScript for Reliable AI Agents