Even with AI it is going to be incredibly difficult. Not really a full CAD kernel but I have been at something similar for the last 5 months - https://lilicad.com
I am trying to do something similar but inside a GUI - https://lilicad.com/
This is still very basic. Also 100% vibe coded and therefore not as robust as I would like it to be.