Discover plugin commands during CLI dispatch
This commit is contained in:
4
cli.py
4
cli.py
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user