The invention provides compounds of Formula (I) and Formula (II) pharmaceutically acceptable salts, pro-drugs, biologically active metabolites, stereoisomers and isomers thereof wherein the variable are defined herein. The compounds of the invention are useful for treating immunological and oncological conditions.本發明提供式(I)化合物及式(II)化合物其醫藥學上可接受之鹽、前藥、生物活性代謝物、立體異構體及異構體,其中變數如本文中所定義。本發明化合物適用於治療免疫及腫瘤病狀。