pub(crate) async fn build(
    cmds: Vec<PosCommand>,
    state: &State
) -> Result<Vec<PosAction>, PosError>