pothos-library: expose work stats to public api