Skip to content

The agent that grows with you

refactor(cli/plugins): normalize blank lines (ruff E302/E303/E305)

Teknium0d666aacd29b
diff --git a/hermes_cli/plugins.py b/hermes_cli/plugins.py
index 7c4a7bc9801..83c4846b97b 100644
--- a/hermes_cli/plugins.py
+++ b/hermes_cli/plugins.py
@@ -116,6 +116,7 @@ def get_bundled_plugins_dir() -> Path:
return Path(env_override)
return Path(__file__).resolve().parent.parent / "plugins"
+
class PluginToolOverrideError(PermissionError):
"""Plugin tried to override a built-in tool without ``plugins.entries.<id>.allow_tool_override``."""
@@ -1312,6 +1313,7 @@ for _row in _SCOPED_PROVIDER_REGISTRARS:
setattr(PluginContext, _row[0], _make_scoped_provider_registrar(*_row))
del _row
+
def _resolve_hook_callback_timeout() -> float:
"""Effective hook-callback timeout from ``plugins.hook_callback_timeout`` (default 30s; ``<= 0``
disables the threaded path; clamped to ``_MAX_HOOK_CALLBACK_TIMEOUT_SECS``)."""
@@ -1407,7 +1409,6 @@ class PluginManager(PluginLoaderMixin, PluginDispatchMixin, PluginLedgerMixin):
# Native platform handler factories keyed by lowercase platform name.
self._platform_handler_factories: Dict[str, List[tuple]] = {}
-
@property
def has_gateway_message_injector(self) -> bool:
"""Return whether a live gateway can accept plugin-triggered turns."""
@@ -1669,7 +1670,6 @@ class PluginManager(PluginLoaderMixin, PluginDispatchMixin, PluginLedgerMixin):
"""Read installed plugin entry points (see :func:`discover_entrypoint_manifests`)."""
return discover_entrypoint_manifests()
-
def get_slack_action_handlers(self) -> List[tuple]:
"""``(action_id, callback, plugin_name)`` tuples for the Slack adapter to wire at connect."""
return list(self._slack_action_handlers)