Safe planning and control via L1-adaptation and contraction theory