INNER CODE UNIT · Python

_hermes_config_conflicts

christopherkarani/Wax · Resources/hermes/wax-memory-plugin/cli.py:172

def _hermes_config_conflicts(hermes_home: str | None) -> list[str]:
    home = Path(hermes_home or os.environ.get("HERMES_HOME") or Path.home() / ".hermes")
    path = home / "config.yaml"
    if not path.is_file():
        return []
    try:
        text = path.read_text(encoding="utf-8")
    except OSError:
        return []
    memory = _top_level_value(text, "memory")
    native = _scalar(_mapping_value(memory or "", "provider")) == "wax-memory"
    if not native:
        return []

    conflicts: list[str] = []
    mcp_servers = _top_level_value(text, "mcp_servers")
    if _mapping_value(mcp_servers or "", "wax") is not None:
        conflicts.append(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…