feat: Add profile picture context plugin with regex-based injection

- Create profile_picture_context plugin to detect PFP queries via regex
- Inject current_description.txt only when user asks about profile picture
- Mount bot/memory directory in Cat container for PFP access
- Avoids context bloat by only adding PFP description when relevant
- Patterns match: 'what does your pfp look like', 'describe your avatar', etc.
- Works seamlessly with existing profile picture update system
- No manual sync needed - description auto-updates with PFP changes
This commit is contained in:
2026-02-10 23:41:14 +02:00
parent 985ac60191
commit eb557f655c
3 changed files with 181 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ services:
- ./cat-plugins:/app/cat/plugins # Shared plugins directory
- ./cheshire-cat/cat/data:/app/cat/data # Personality data (lore, prompts)
- ./bot/moods:/app/moods # Mood description files
- ./bot/memory:/app/memory # Profile pictures and other memory files
- ./cheshire-cat/cat/log.py:/app/cat/log.py # Patched: fix loguru KeyError for third-party libs
restart: unless-stopped
healthcheck: