Discover plugin commands during CLI dispatch

This commit is contained in:
Justin Kausel 2026-04-21 13:40:22 -04:00 committed by Teknium
parent ecc909de38
commit e805380b82

4
cli.py
View file

@ -1890,8 +1890,8 @@ _skill_commands = scan_skill_commands()
def _get_plugin_cmd_handler_names() -> set:
"""Return plugin command names (without slash prefix) for dispatch matching."""
try:
from hermes_cli.plugins import get_plugin_manager
return set(get_plugin_manager()._plugin_commands.keys())
from hermes_cli.plugins import get_plugin_commands
return set(get_plugin_commands().keys())
except Exception:
return set()