import logging

logging.basicConfig(level=logging.INFO)


def create_memory_explorer_html(filepath: str) -> None:
    """
    Creates a basic HTML file for exploring memory contents.

    Args:
        filepath: The path to save the HTML file.
    """
    try:
        html_content = """
<!DOCTYPE html>
<html>
<head>
    <title>Memory Explorer</title>
</head>
<body>
    <h1>Memory Explorer</h1>
    <div id="memory-content">
        <p>Memory content will be displayed here.</p>
    </div>
</body>
</html>
"""
        with open(filepath, "w") as f:
            f.write(html_content)
        logging.info(f"Successfully created memory explorer HTML at {filepath}")
    except Exception as e:
        logging.error(f"Error creating memory explorer HTML: {e}")


if __name__ == "__main__":
    filepath = "/mnt/e/genesis-system/core/web/memory_explorer.html"
    create_memory_explorer_html(filepath)