forked from kent/consciousness
MindCommand replaces both Action and MindMessage — one type for everything: turns, compaction, scoring, hotkeys, new session. State methods return MindCommand values. The run loop collects commands into a Vec, then drains them through run_commands(). Compact and Score now flow through the same command path as everything else. Removes execute(), MindMessage from event_loop. Mind's run loop is now: select! → collect commands → run_commands(). mind/mod.rs: 957 → 516 lines. Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev> |
||
|---|---|---|
| .. | ||
| chat.rs | ||
| context.rs | ||
| event_loop.rs | ||
| mod.rs | ||
| subconscious.rs | ||
| thalamus.rs | ||
| ui_channel.rs | ||
| unconscious.rs | ||