lib: Move generateOutput to generate from runtime
Fix transmission start+end not being embedded for initial command stream