Finished a rebuilt long block installation on a 96 Chevy 1500 5.7L Vortec (Rebuilt long block with all the bolt on stuff from the old engine) BTW the old engine ran perfect but blew a head gasket.

Engine runs perfect (as far as I can tell). Starts instantly, purrs with no misses or noises of any kind. Super responsive to the foot feed. Put on about 200 miles with no issues. BUT...P1345 code keeps coming back after I clear it.
I confirmed
#1 piston top dead center (compression) , rotor points directly at the #1 plug wire.
Unplugged the Crank position sensor, engine would not start, plugged it back in, all OK
Confirmed firing order is correct with no wires crossed.

Timing light shows the timing mark is about an 1.5" before the timing notch on the plastic timing cover.
The code P1345 mentions the cam position sensor. Does this engine have a CMP sensor? Where is it?, I bolted everything back on this block and do not recall a sensor near the camshaft. Is it in the distributor?
Any thoughts on the code? As I said the engine runs smooth as can be with full power, no hesitation what so ever.

Thanks,
Kevin