In a medium bowl, whisk the flour with the baking soda and salt. In a large bowl, using an electric mixer, beat the butter at high speed until light and fluffy. Add the brown and granulated sugars and the vanilla and beat at medium speed until combined. Beat in the peanut butter, then the melted chocolate and the egg. At low speed, gradually beat the dry ingredients until incorporated into the cookie dough.