Files
Hopping-Mad-Games-ComfyUI_L…/comfyui_lightrag/__init__.py
TashaSkyUp 7cf82171e5 Make environment management non-polluting and safe
This commit implements a clean architecture where environment variables
are only read, never set, ensuring compatibility with other ComfyUI
packages.

The changes: - Remove all code that sets global environment variables -
Clean up config.yaml to remove API key placeholders - Add documentation
for safe environment handling - Add comprehensive tests to verify
non-polluting behavior - Ensure backward compatibility for other
packages

The commit includes detailed docs explaining the clean architecture and
safety guarantees for package compatibility.
2025-06-25 17:22:53 -06:00

22 lines
666 B
Python
Executable File

from .lightrag_nodes import (
DocumentProcessorNode,
QueryNode,
LinuxMemoryDirectoryNode
)
from .agent_memory import AgentMemoryProviderNode
NODE_CLASS_MAPPINGS = {
"DocumentProcessor": DocumentProcessorNode,
"QueryNode": QueryNode,
"LinuxMemoryDirectory": LinuxMemoryDirectoryNode,
"AgentMemoryProvider": AgentMemoryProviderNode,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"DocumentProcessor": "LightRAG Document Processor",
"QueryNode": "LightRAG Query Node",
"LinuxMemoryDirectory": "Linux Memory Directory",
"AgentMemoryProvider": "Agent Memory Provider"
}
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'AgentMemoryProviderNode']