refactor(gateway): drop dead GatewayRunner._has_setup_skill (no production caller; tests only stub it)
This commit is contained in:
@@ -4735,16 +4735,6 @@ class GatewayRunner(
|
||||
"for container-local paths like '/workspace/...' or '/output/...'."
|
||||
)
|
||||
|
||||
# -- Setup skill availability ----------------------------------------
|
||||
|
||||
def _has_setup_skill(self) -> bool:
|
||||
"""Check if the hermes-agent-setup skill is installed."""
|
||||
try:
|
||||
from tools.skill_manager_tool import _find_skill
|
||||
return _find_skill("hermes-agent-setup") is not None
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
# -- Voice mode persistence ------------------------------------------
|
||||
|
||||
_VOICE_MODE_PATH = _hermes_home / "gateway_voice_mode.json"
|
||||
|
||||
@@ -22,6 +22,7 @@ import inspect
|
||||
|
||||
from gateway import run as gateway_run
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
|
||||
|
||||
def _calls(node: ast.AST) -> set[str]:
|
||||
|
||||
@@ -38,6 +38,7 @@ import inspect
|
||||
|
||||
from gateway import run as gateway_run
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
from gateway.config import GatewayConfig, Platform
|
||||
from gateway.session import SessionSource, SessionStore
|
||||
from hermes_state import SessionDB
|
||||
|
||||
@@ -25,6 +25,7 @@ import inspect
|
||||
|
||||
from gateway import run as gateway_run
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
from gateway import slash_commands as gateway_slash
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ import inspect
|
||||
|
||||
from gateway import run as gateway_run
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
|
||||
|
||||
def _calls(node: ast.AST) -> set[str]:
|
||||
|
||||
@@ -27,6 +27,8 @@ from unittest.mock import MagicMock, call
|
||||
from gateway import run as gateway_run
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
from gateway import run_turn_runner as gateway_run_turn_runner
|
||||
from gateway import run_turn as gateway_run_turn
|
||||
from gateway import run_turn_runner as gateway_run_turn_runner
|
||||
from gateway.session_context import set_current_session_id, get_session_env
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user