refactor(cli): chat() 855 -> ~240 LOC via _ChatTurn dataclass + 5 phase methods

Per-turn locals (result, TTS pipeline state, voice prefix) move onto a
_ChatTurn dataclass shared with the agent worker thread (same-object
visibility, so the abandoned-thread late write still lands). Four zero-
back-ref regions and the run_agent closure body become
_chat_setup_turn_audio / _chat_run_agent / _chat_monitor_agent_thread /
_chat_settle_turn / _chat_render_turn. Bodies are ast.dump-identical after
the rename; each helper passed the unresolved-free-names check.
This commit is contained in:
Teknium
2026-09-02 15:53:22 -07:00
parent eb74a00c71
commit 7f9f274cde
+657 -627
View File
File diff suppressed because it is too large Load Diff