I would love to get some feedback from others in the community of what APIs you would need in such a library for this tool to be a valuable part of your automation workflow.
But I am wondering if OSA needs to be used in this case. I suppose that most of the automations will be done along with some other tools, like Alfred or Keyboard Maestro. Those tools may not be user-friendly in doing npm install or installing 3rd party lib. I think a simple lib which encapsulates the basic operations into semantic functions will make more sense here.