@sdeleuze There is work to be done for sure, can you drop this into YouTrack if you don’t see it already, helps to organize the work. Currently script-util appears to be more of a work-in-progress to get things settled down and let some outside access without everyone calling directly to the internals. And with time will migrate into better packaging. WIth your YouTrack issue, someone can pick it up and do a PR.
kotlin-script-runtime at the moment includes only template classes that needed to be added to the classpath of the script engine to function. not sure if it is just not well named or if it was intended to be the script engine itself (I think it was named before JSR223 work was done, maybe before it was considered).
I can help clean it up, once @ilya.chernikov says which way he wants it to go.