Tìm tất cả các giá trị thực của tham số m để hàm số \(y=x+m\left( \sin x+\cos x \right)\) đồng biến trên R.
A.\(m\in \left( -\infty ;-\dfrac{\sqrt{2}}{2} \right)\cup \left( \dfrac{\sqrt{2}}{2};+\infty  \right)\)      
B.\(-\dfrac{\sqrt{2}}{2}\le m\le \dfrac{\sqrt{2}}{2}\)
C.\(-3<m<\dfrac{\sqrt{2}}{2}\)
D.\(m\in \left( -\infty ;-\dfrac{\sqrt{2}}{2} \right]\cup \left[ \dfrac{\sqrt{2}}{2};+\infty  \right)\)