hermes-agent/tests/tools
Teknium 21c2d32471 fix(gateway): normalize step_callback prev_tools for backward compat
The PR changed prev_tools from list[str] to list[dict] with name/result
keys.  The gateway's _step_callback_sync passed this directly to hooks
as 'tool_names', breaking user-authored hooks that call
', '.join(tool_names).

Now:
- 'tool_names' always contains strings (backward-compatible)
- 'tools' carries the enriched dicts for hooks that want results

Also adds summary logging to register_mcp_servers() and comprehensive
tests for all three PR changes:
- sanitize_mcp_name_component edge cases
- register_mcp_servers public API
- _register_session_mcp_servers ACP integration
- step_callback result forwarding
- gateway normalization backward compat
2026-04-02 20:54:27 -07:00
..
__init__.py
…
test_ansi_strip.py
…
test_approval.py
…
test_browser_camofox.py
…
test_browser_camofox_persistence.py
…
test_browser_camofox_state.py
…
test_browser_cdp_override.py
…
test_browser_cleanup.py
…
test_browser_console.py
…
test_browser_content_none_guard.py
…
test_browser_homebrew_paths.py
…
test_browser_secret_exfil.py
…
test_browser_ssrf_local.py
…
test_checkpoint_manager.py
…
test_clarify_tool.py
…
test_clipboard.py
…
test_code_execution.py
…
test_command_guards.py
…
test_config_null_guard.py
…
test_credential_files.py
…
test_cron_prompt_injection.py
…
test_cronjob_tools.py
…
test_daytona_environment.py
…
test_debug_helpers.py
…
test_delegate.py
…
test_delegate_toolset_scope.py
…
test_docker_environment.py
…
test_docker_find.py
…
test_env_passthrough.py
…
test_file_operations.py
…
test_file_read_guards.py
…
test_file_staleness.py
…
test_file_tools.py
…
test_file_tools_live.py
…
test_file_write_safety.py
…
test_force_dangerous_override.py
…
test_fuzzy_match.py
…
test_hidden_dir_filter.py
…
test_homeassistant_tool.py
…
test_interrupt.py
…
test_llm_content_none_guard.py
…
test_local_env_blocklist.py
…
test_local_persistent.py
…
test_managed_browserbase_and_modal.py
…
test_managed_media_gateways.py
…
test_managed_modal_environment.py
…
test_managed_tool_gateway.py
…
test_mcp_dynamic_discovery.py
…
test_mcp_oauth.py
…
test_mcp_probe.py
…
test_mcp_tool.py fix(gateway): normalize step_callback prev_tools for backward compat 2026-04-02 20:54:27 -07:00
test_mcp_tool_issue_948.py
…
test_memory_tool.py
…
test_mixture_of_agents_tool.py
…
test_modal_sandbox_fixes.py
…
test_modal_snapshot_isolation.py
…
test_parse_env_var.py
…
test_patch_parser.py
…
test_process_registry.py
…
test_read_loop_detection.py
…
test_registry.py
…
test_rl_training_tool.py
…
test_search_hidden_dirs.py
…
test_send_message_missing_platforms.py
…
test_send_message_tool.py
…
test_session_search.py
…
test_singularity_preflight.py
…
test_skill_env_passthrough.py
…
test_skill_improvements.py
…
test_skill_manager_tool.py
…
test_skill_size_limits.py
…
test_skill_view_path_check.py
…
test_skill_view_traversal.py
…
test_skills_guard.py
…
test_skills_hub.py
…
test_skills_hub_clawhub.py
…
test_skills_sync.py
…
test_skills_tool.py
…
test_ssh_environment.py
…
test_symlink_prefix_confusion.py
…
test_terminal_disk_usage.py
…
test_terminal_requirements.py
…
test_terminal_timeout_output.py
…
test_terminal_tool_requirements.py
…
test_tirith_security.py
…
test_todo_tool.py
…
test_transcription.py
…
test_transcription_tools.py
…
test_url_safety.py
…
test_vision_tools.py
…
test_voice_cli_integration.py
…
test_voice_mode.py
…
test_web_tools_config.py
…
test_web_tools_tavily.py
…
test_website_policy.py
…
test_windows_compat.py
…
test_write_deny.py
…
test_yolo_mode.py
…