Cavity method for supersymmetry-breaking spin glasses