Perhaps a good way of doing the automated repairs are to fly to a spacedock (like in star trek), upload the blueprint and you pay for your ship to be repaired, costing more and taking longer the more blocks destroyed. And if you dont have the blueprint for the ship, you clearly dont care for it...