Pakistan sees Afghanistan as a strategic partner in its conflict with India and has therefore been willing to embrace the powers that be in Kabul.