Please help to select the right stuff, Distributor, wires...

It's very very tight at the fire wall on a lot of our a-bodies in there - even with the v-8 k-frame etc.
I would not gamble on distributor height and a wider and taller cap when mail ordering from out of country.

@Achill take some photos and make some measurements of how much room is available.
View attachment 1715428739
Or make a silouette out of cardboard.
View attachment 1715428743

Regarding engine size: American Motors Corporation (AMC) made a very different v-8 engine that had displacement of 360 cubic inches.
Those AMC engines continued to be installed in some Jeeps at least through 1991, even though Chrysler had purchased Jeep in 1987.
Those AMC v-8 engines have the distributor in the front of the engine, and engage with a gear.
The Chrysler distributors engage into a slot.

Do you still have the distributor from when the engine was in the Jeep?

Probably that's the best way to get the right choice. Once the engine will be in place I'll try to measure the actual space for the distributor and will come back to this thread.