Commit Graph

14 Commits

Author SHA1 Message Date
hmo 5d35d97f0a merge: resolve conflict in xmpp_agent_core.py (keep unified version) 2026-06-21 16:17:21 +08:00
hmo babbc46801 refactor(xxm): consolidate 4 bot implementations into unified xmpp_agent_core.py
- Merge bot_base.py, gateway/scripts/xmpp_bot.py, bots/*, xmpp_bot_rest.py
  into single xmpp_agent_core.py with --agent flag (xxm|mohe|zhiwei|xiaoguo)
- Add xxm_bot.py wrapper (encoding=utf-8 for Windows exec)
- Fix slixmpp connect() API: use host=/port= keyword args (was tuple)
- Clean up orphans: bots/, scripts/, hermes_state.py, xmpp_bot.py, xmpp_bot_rest.py
- Add docs/CLEANUP_PLAN.md documenting the migration
- Update README.md project structure
- Also: fix WeChat agent path resolution (relative paths)
2026-06-21 16:13:57 +08:00
mohe aa7b67fc2b readonly: discard LLM response, never send; default=readonly for non-coordinator 2026-06-21 10:40:47 +08:00
mohe f1590e08d1 revert bare-name match, keep only @ mention 2026-06-20 20:21:21 +08:00
mohe 9a45f155a8 match nick without @ (XMPP strips @ symbol) 2026-06-20 20:18:47 +08:00
mohe be8699ae4c lead= switch, @mention auto-grant 2026-06-20 20:16:09 +08:00
mohe efc4cd1a9e coordinator prompt: first job is to moderate, not to speak 2026-06-20 19:57:03 +08:00
mohe ad3e0f004b coordinator: default all can speak, REVOKE=read-only 5min, GRANT overrides 2026-06-20 19:54:37 +08:00
mohe aabec04d8a non-speaking bots still see messages for context (read-only LLM injection) 2026-06-20 19:07:50 +08:00
mohe 90429116c7 coordinator: use XMPP in-band signaling instead of shared DB (cross-machine compatible) 2026-06-20 19:02:04 +08:00
mohe 457ad27044 implement coordinator pattern: GRANT-based turn control, code-level speak permission 2026-06-20 18:53:44 +08:00
mohe 947bb1e6d0 intercept __SILENT__/__REPLY__ misuse in LLM response body 2026-06-20 01:48:37 +08:00
mohe 5051b0bfd7 add silent phrase interception: block LLM announcing silence instead of being silent 2026-06-20 01:41:42 +08:00
mohe 2d0f390657 unify xmpp bots: single xmpp_agent_core.py + --agent param wrappers 2026-06-20 01:05:12 +08:00