]> git.giacomolli.uk - onechat/commit
Name and order the turn loop code
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 16:42:01 +0000 (13:42 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 16:42:01 +0000 (13:42 -0300)
commit6d96a69d33eb634f61f809001aca19ae57113180
tree8308cab2f080ba4ae3292688448363c76bb83324
parentd50c22617aafed0d3d87bf4596e933b343a10b60
Name and order the turn loop code

Every package-level name that only the turn loop uses starts with turn:
the loop is TurnLoop, its function call items are TurnFunctionCall and
TurnFunctionCallOutput, and its error of a log write is errTurnLogWrite.
Event stays generic, because the daemon, the terminal client, and the
Telegram bot read the events too.

The declarations of the turn files follow the order of the go-code
skill. The behavior does not change.

Issue: 947bddb
daemon.go
daemon_test.go
telegram.go
turn.go
turn_test.go