mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-13 03:52:00 +00:00
Discover plugin commands during CLI dispatch
This commit is contained in:
parent
ecc909de38
commit
e805380b82
1 changed files with 2 additions and 2 deletions
4
cli.py
4
cli.py
|
|
@ -1890,8 +1890,8 @@ _skill_commands = scan_skill_commands()
|
||||||
def _get_plugin_cmd_handler_names() -> set:
|
def _get_plugin_cmd_handler_names() -> set:
|
||||||
"""Return plugin command names (without slash prefix) for dispatch matching."""
|
"""Return plugin command names (without slash prefix) for dispatch matching."""
|
||||||
try:
|
try:
|
||||||
from hermes_cli.plugins import get_plugin_manager
|
from hermes_cli.plugins import get_plugin_commands
|
||||||
return set(get_plugin_manager()._plugin_commands.keys())
|
return set(get_plugin_commands().keys())
|
||||||
except Exception:
|
except Exception:
|
||||||
return set()
|
return set()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue