fix(cli): restore messaging toolset for gateway platforms
This commit is contained in:
@@ -63,6 +63,7 @@ CONFIGURABLE_TOOLSETS = [
|
|||||||
("clarify", "❓ Clarifying Questions", "clarify"),
|
("clarify", "❓ Clarifying Questions", "clarify"),
|
||||||
("delegation", "👥 Task Delegation", "delegate_task"),
|
("delegation", "👥 Task Delegation", "delegate_task"),
|
||||||
("cronjob", "⏰ Cron Jobs", "create/list/update/pause/resume/run, with optional attached skills"),
|
("cronjob", "⏰ Cron Jobs", "create/list/update/pause/resume/run, with optional attached skills"),
|
||||||
|
("messaging", "📨 Cross-Platform Messaging", "send_message"),
|
||||||
("rl", "🧪 RL Training", "Tinker-Atropos training tools"),
|
("rl", "🧪 RL Training", "Tinker-Atropos training tools"),
|
||||||
("homeassistant", "🏠 Home Assistant", "smart home device control"),
|
("homeassistant", "🏠 Home Assistant", "smart home device control"),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ from hermes_cli.tools_config import (
|
|||||||
_platform_toolset_summary,
|
_platform_toolset_summary,
|
||||||
_save_platform_tools,
|
_save_platform_tools,
|
||||||
_toolset_has_keys,
|
_toolset_has_keys,
|
||||||
|
CONFIGURABLE_TOOLSETS,
|
||||||
TOOL_CATEGORIES,
|
TOOL_CATEGORIES,
|
||||||
_visible_providers,
|
_visible_providers,
|
||||||
tools_command,
|
tools_command,
|
||||||
@@ -22,6 +23,15 @@ def test_get_platform_tools_uses_default_when_platform_not_configured():
|
|||||||
assert enabled
|
assert enabled
|
||||||
|
|
||||||
|
|
||||||
|
def test_configurable_toolsets_include_messaging():
|
||||||
|
assert any(ts_key == "messaging" for ts_key, _, _ in CONFIGURABLE_TOOLSETS)
|
||||||
|
|
||||||
|
def test_get_platform_tools_default_telegram_includes_messaging():
|
||||||
|
enabled = _get_platform_tools({}, "telegram")
|
||||||
|
|
||||||
|
assert "messaging" in enabled
|
||||||
|
|
||||||
|
|
||||||
def test_get_platform_tools_preserves_explicit_empty_selection():
|
def test_get_platform_tools_preserves_explicit_empty_selection():
|
||||||
config = {"platform_toolsets": {"cli": []}}
|
config = {"platform_toolsets": {"cli": []}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user