mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-09 08:21:50 +00:00
feat(plugins): add inject_message interface for remote message injection (#3778)
This commit is contained in:
parent
5148682b43
commit
efae525dc5
2 changed files with 34 additions and 0 deletions
5
cli.py
5
cli.py
|
|
@ -6210,6 +6210,11 @@ class HermesCLI:
|
|||
self._interrupt_queue = queue.Queue() # For messages typed while agent is running
|
||||
self._should_exit = False
|
||||
self._last_ctrl_c_time = 0 # Track double Ctrl+C for force exit
|
||||
|
||||
# Give plugin manager a CLI reference so plugins can inject messages
|
||||
from hermes_cli.plugins import get_plugin_manager
|
||||
get_plugin_manager()._cli_ref = self
|
||||
|
||||
# Config file watcher — detect mcp_servers changes and auto-reload
|
||||
from hermes_cli.config import get_config_path as _get_config_path
|
||||
_cfg_path = _get_config_path()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue