per-channel message logs with shared ChannelLog type

Move ChannelLog to src/thalamus/channel_log.rs — shared by all
channel daemon implementations. Each channel/PM gets its own
log with consumed/unread tracking.

IRC daemon: channels tracked via BTreeMap<String, ChannelLog>.
list() returns all channels (joined + PMs) with per-channel
unread counts. Sent messages stored in logs too.

Co-Developed-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
ProofOfConcept 2026-04-03 20:01:32 -04:00
parent 8e66f0a66c
commit e604659e3a
3 changed files with 102 additions and 65 deletions

View file

@ -5,6 +5,7 @@
// code (in claude/) and the future substrate-independent consciousness
// binary.
pub mod channel_log;
pub mod channels;
pub mod idle;
pub mod supervisor;