I added a "unwrap" function to the glTF-transform library/CLI tool written by @donmccurdy, which he merged today! It uses the xatlas library to generate new texture coordinates for a mesh that can be used for things like lightmapping, AO, and texture painting.