[apps] [refactor] Update package generator app to use new package api