Electric vehicle maker Tesla is betting on artificial intelligence to transform itself into a global technology powerhouse, potentially churning out millions of robotaxis and humanoid robots at the Texas factory that makes the Model Y crossover and Cybertruck pickup.