mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-24 16:54:43 +00:00
fix(tools): /tools shows the full pre-assembly catalog; adapt tests to tiered disclosure
CI slices 2 and 7 caught three tests broken by always-defer: - /tools (CLI show_tools + TUI gateway tools.show) now passes skip_tool_search_assembly=True — it's a discovery/inspection surface, so users verifying an MCP installed must see deferred tools, not a collapsed bridge row. This also fixes test_slash_worker_mcp_discovery (profile MCP tool visible in /tools). - test_plugins.py::test_plugin_tools_in_definitions: 'visible' becomes 'reachable' — direct schema OR listed in the bridge description; scope-exclusion assertions unchanged (not direct AND not listed). - test_discord_tool.py dynamic-schema-rebuild test reads the pre-assembly list (the rebuilt schema is what tool_describe serves). Banner/status tool counts intentionally keep the post-assembly view — they reflect what the model actually sees.
This commit is contained in:
parent
a521ed703b
commit
8f6ecbae26
4 changed files with 37 additions and 13 deletions
6
cli.py
6
cli.py
|
|
@ -6874,7 +6874,11 @@ class HermesCLI(CLIAgentSetupMixin, CLICommandsMixin, CLIBillingMixin):
|
|||
|
||||
def show_tools(self):
|
||||
"""Display available tools with kawaii ASCII art."""
|
||||
tools = get_tool_definitions(enabled_toolsets=self.enabled_toolsets, quiet_mode=True)
|
||||
# Pre-assembly list: /tools is a discovery/inspection surface, so it
|
||||
# must show the full catalog including tools deferred behind the
|
||||
# tool_search bridge (users check this to verify an MCP installed).
|
||||
tools = get_tool_definitions(enabled_toolsets=self.enabled_toolsets, quiet_mode=True,
|
||||
skip_tool_search_assembly=True)
|
||||
|
||||
if not tools:
|
||||
print("(;_;) No tools available")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue