Maybe I have not defined something correctly in the alias or the package but here is what I have
If I run your script above nothing appears to happen when I click on the bed.
If I add some more debug stuff I get to the sleep check loop and stay there...
Unless I add Game.SetPlayerAIDriven() I will never run the package but good news is
when I add that the package run check on the player says the package is running
However the player doesn't seem to do anything? I can change the package to refer to sleep on any bed, sleep on ref or sleep on alias and all have no results
Yet the package according to game.getplayer().GetCurrentPackage() is running.
So again for some reason while waiting on the loop the player seems to wait as well...