How much of my non-resident income from is considered to be received from a New York Source if I worked remotely during the time I lived outside of New York?

I have the same job, Software Engineer, which the company is primarily based in New York but the position is listed as remote. For some of the year, I lived in one state working remotely and then moved to New York while continuing to work remotely. I'm not sure if the time during which I lived outside of the New York, was my job considered to be received from a New York Source