Move NVIDIA chat-completions fetch rewriting into its own module, split the
765-line thread event handlers into lifecycle/content modules, and share
Google test fixtures between unit and integration runtime tests.
Co-authored-by: Cursor <cursoragent@cursor.com>