Syrian government officials and Kurdish representatives have agreed to swap prisoners, as they try to maintain a truce that ended days of fighting in the