2025-10-01 09:54:17 +00:00
|
|
|
#!/usr/bin/env python3
|
2026-03-31 08:48:54 +09:00
|
|
|
"""Tools package namespace.
|
2025-10-01 09:54:17 +00:00
|
|
|
|
2026-03-31 08:48:54 +09:00
|
|
|
Keep package import side effects minimal. Importing ``tools`` should not
|
|
|
|
|
eagerly import the full tool stack, because several subsystems load tools while
|
|
|
|
|
``hermes_cli.config`` is still initializing.
|
2025-10-01 09:54:17 +00:00
|
|
|
|
2026-03-31 08:48:54 +09:00
|
|
|
Callers should import concrete submodules directly, for example:
|
2026-01-30 07:39:55 +00:00
|
|
|
|
2026-03-31 08:48:54 +09:00
|
|
|
import tools.web_tools
|
|
|
|
|
from tools import browser_tool
|
2026-02-19 18:25:53 -08:00
|
|
|
|
2026-03-31 08:48:54 +09:00
|
|
|
Python will resolve those submodules via the package path without needing them
|
|
|
|
|
to be re-exported here.
|
|
|
|
|
"""
|
2026-02-19 23:23:43 -08:00
|
|
|
|
2026-02-20 03:15:53 -08:00
|
|
|
|
2026-02-05 03:49:46 -08:00
|
|
|
def check_file_requirements():
|
2026-03-31 08:48:54 +09:00
|
|
|
"""File tools only require terminal backend availability."""
|
2026-02-05 03:49:46 -08:00
|
|
|
from .terminal_tool import check_terminal_requirements
|
2026-03-31 08:48:54 +09:00
|
|
|
|
2026-02-05 03:49:46 -08:00
|
|
|
return check_terminal_requirements()
|
|
|
|
|
|
2025-10-01 09:54:17 +00:00
|
|
|
|
2026-03-31 08:48:54 +09:00
|
|
|
__all__ = ["check_file_requirements"]
|