That would be great. I'm pretty confused why lastCodeName wasn't thought to be included by the developers of HubConnect for ST? In any case I appreciate anything you're willing to look into!
In the meantime I believe I have a workaround. I have webCoRE running on that ST hub. webCoRE has the ability to parse that last used lock code easily, so I made a piston that for each lock code I have, it will ping a local endpoint trigger in a rule in HE RuleMachine and do what I want from there. With groovy being phased out and ST future being uncertain I don't know how long that'll work for...but I guess maybe by then I'll have bought a new lever lock that I can just pair direct to HE 