Both Cam and Crank sensors arew subject to heat soaking and thermal failure,
replace the Cam sensor, and it will run like new again.
With out a cam sensor your engine does not recieve a fuel pulse, you will notice that your engine runs fine... untill it gets hot.
with a dead cam sensor you may also experience throttle delay.
Now in my time of diagnosing jeeps, your dealer was an idiot, a hard fault at the TPS, or a hard fault in the transmission is repairable by a crank sensor, a cam sensor code is a cam sensor code!
It will only run without one for a certain period of time because of the information from the crank sensor allows the computer to "estimate" the cam angle... But it will certainly stop the car under thermal failure.
A second possible but highly unlikely option is that your new CRANK sensor is dodgy straight out of the box.
now you know the answer