Autotype is already solved - ydotool, wtype and dotool exists (and possibly others as well).
These tools work by creating a virtual keyboard so they don’t let you send input to a specific window. The input goes to whatever happens to be focused at the moment. This makes them less reliable than the X11 equivalents and unusable for tasks where you need to guarantee that the right window gets the input.
There are already almost a hundred extension protocols and you need dozens of them to implement just barebones desktop functionality. If you look under the surface the Wayland ecosystem is arguably already more complex than X11 ever was and it’s only going to get worse.
There is a fairly compact Thinkpad USB keyboard which would be much easier to connect if you can make it fit somehow. It has the trackpoint but no trackpad.