Keyboard Maestro supports Swift?!

and JXA. I have posted a macro/script which does a proof-of-concept demo of calling a KM HTML Prompt from JXA.

Demo Using KM Custom HTML Prompt with AppleScript and JXA