What Will says is basically correct. However, I looked at the wiring diagram for a '77 and there is no red wire with trace (stripe) on a '77.
Sorry, I am now going into the weeds.
To the OP, you're sure this is a '77? What you describe is like the harness from a '78 or later. Possible someone has replaced the '77 harness with parts of a later harness, or the Jeep is not really a '77.
A '77 came with the Prestolite BDI system from the factory. This has no resistance wire. The ignition module (ECU) operates on a full battery voltage all the time. The module controls the coil current for starting and running via the negative coil terminal (green wire to the module).
The original solenoid has no connection for that red/trace wire. The original solenoid is different from what you can get from the aftermarket now, with only one small terminal ("S" terminal) and no second small terminal that provides the ignition bypass ("I" terminal) used on later Duraspark-equipped Jeeps (and many Fords).
A '77 should not have that extra red/trace wire. Compare the '77 diagram to the '78 diagram on the Tom COllins site:
https://oljeep.com/gw/elec/GW_wiring.html What the OP describes is clearly '78 or newer.
Regarding the HEI, I suspect the OP has used the coil positive lead to power the HEI distributor. If this is a '77 harness, that will be fine, since the coil primary is at battery voltage whenever the key is on. If it's a newer harness, there is a resistance wire between the ignition switch and the coil. That will probably work but it's not ideal. Better to take power for the HEI from the power wire that normally would go to the original ignition module (ECU).