Wall-crossing invariants: from quantum mechanics to knots