Tesla Inc. has accused a former employee of pilfering trade secrets related to the technology that powers many of the company's automated processes.