The Giants reportedly reached an agreement with free-agent relief pitcher Jeremy Affeldt on a three-year, $18 million contract Monday night