Add canOpAffectPath function for API in ShareJS