That's the voltage sensing wire. It goes to the stud along with the charge wire on the back of alternator. The brown wire is the idiot light/Ing on.
It appears GM made the wiring simpler on the later trucks. The older trucks had the sensing wire wired to the junction block, but in the end, the wiring led back to charge wire/stud.