SAN FRANCISCO -- Johnny Cueto pitched seven effective innings and ended his six-start winless streak, and the San Francisco Giants broke away late from the New York Mets 8-1 Friday night.