Commit Graph

5 Commits

Author SHA1 Message Date
141e9c17f5 fix: patch SessionDB methods for session_search user_id compat 2026-05-25 10:59:30 -04:00
6ebeb39268 feat: support multi-user Discord threads via context var
- Add contextvars.ContextVar to carry resolved peer name from
  pre_gateway_dispatch to Honcho session init without modifying
  event.user_id (auth uses raw Discord snowflake)
- _pre_gateway_dispatch: now stores resolved peer in context var
- _patched_do_session_init: reads context var first, falls back
  to kanban resolution, then to existing user_id

Requires thread_sessions_per_user: true in profile config.yaml
(added to ashley, claire, finn, matt, paul)
2026-05-24 22:52:57 -04:00
514706bcce feat: runtime monkey-patch instead of file patching — zero fork required
The plugin now monkey-patches HonchoMemoryProvider._do_session_init at
plugin load time instead of requiring changes to any file in the Hermes
repo. This means:

- No modifications to plugins/memory/honcho/__init__.py or any other file
- No fork needed — pure plugin approach
- Survives Hermes upgrades without merge conflicts
- Removed docs/honcho-injector.md (replaced by docs/how-it-works.md)
- Updated README with new architecture description

Config file at /opt/data/identity-config.json remains the single source
of truth for mappings.
2026-05-24 16:07:02 -04:00
172fa90b25 initial: identity resolution plugin
- Plugin manifest (plugin.yaml) with pre_gateway_dispatch + on_session_start hooks
- /identity slash command for config management
- Honcho injector patch docs (6 lines in plugins/memory/honcho/__init__.py)
- Config file at /opt/data/identity-config.json for persistence
- Kanban task body convention: context_peer: <name>
- Sample config with thierry/catherine mappings

Architecture: user-installed plugin (hooks + CLI) + 6-line Honcho bundled plugin change
2026-05-24 16:02:55 -04:00
71a2c6da42 Initial commit 2026-05-24 20:00:41 +00:00