Both js and jruby automation addons don’t currently deal with the MainUI, yet.
JRuby however, allows you to generate your sitemaps from code. See examples here:
When dealing with Main UI with F7, you’ll can use a simplified version of JavaScript, again, although they’re the same language it’s not the same as what you’d write in the jsscripting automation for rules.