Update complement.sh to match new public API shape.