The Writers Guild of America and the Alliance of Motion Picture and Television Producers have reached a tentative agreement to end the 146-day strike, which includes higher pay for streaming content, agreements on minimum staffing for TV shows, and protections against AI technology affecting writers’ credits and pay.