mom: rewrite message handling - log.jsonl and context.jsonl sync

- log.jsonl is source of truth, context.jsonl syncs from it at run start
- Backfill fetches missing messages from Slack API on startup
- Messages sent while mom is busy are logged and synced on next run
- Channel chatter (no @mention) logged but doesn't trigger processing
- Pre-startup messages (replayed by Slack) logged but not processed
- Stop command executes immediately, not queued
- Session header written immediately on new session creation
- Deduplicate messages by timestamp
- Strip @mentions from backfilled messages
- Remove old slack.ts and main.ts, rename *-new.ts versions
This commit is contained in:
Mario Zechner 2025-12-11 20:13:29 +01:00
parent e513127b3b
commit 99fe4802ef
5 changed files with 1142 additions and 969 deletions

File diff suppressed because it is too large Load diff