In a large bowl or the bowl of a stand mixer, beat the brown sugar, sugar, and butter until light and fluffy. Add the vanilla and egg, and beat until smooth. Add 1 cup of flour, and the baking powder, baking soda, salt, and oats, and mix until combined. Toss the chopped apple pieces with the remaining tablespoon of flour. Gently fold the apples and caramel bits into the dough.