Autonomous trucking startup Starsky Robotics has laid off the majority of its engineers and office personnel after its fundraising efforts and attempts to find a buyer failed, a former executive says.