bbe9bcfe0a
_MEMORY_ROOT was defined independently in reader.py, writer.py, and index.py. Moved to memory/__init__.py; all three import from there. Also fixes a bug in append_memory where path.write_text() was called before path.parent.mkdir(), which would crash when creating a file in a new subdirectory. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>