fix(server): propagate package repository class in client/server mode (#10874)