refactor(memory): replace memory dir with symlink to clawd/memory
This commit is contained in:
31
tools/compare_memory.py
Normal file
31
tools/compare_memory.py
Normal file
@@ -0,0 +1,31 @@
|
||||
"""Compare echo-core/memory vs clawd/memory - find files that need merging."""
|
||||
import os
|
||||
|
||||
ECHO = "/home/moltbot/echo-core/memory"
|
||||
CLAWD = "/home/moltbot/clawd/memory"
|
||||
|
||||
def list_files(base):
|
||||
result = set()
|
||||
for root, dirs, files in os.walk(base):
|
||||
for f in files:
|
||||
full = os.path.join(root, f)
|
||||
rel = os.path.relpath(full, base)
|
||||
result.add(rel)
|
||||
return result
|
||||
|
||||
echo = list_files(ECHO)
|
||||
clawd = list_files(CLAWD)
|
||||
|
||||
only_echo = sorted(echo - clawd)
|
||||
only_clawd = sorted(clawd - echo)
|
||||
shared = echo & clawd
|
||||
|
||||
print(f"ONLY in echo-core ({len(only_echo)} files):")
|
||||
for f in only_echo:
|
||||
print(f" {f}")
|
||||
|
||||
print(f"\nONLY in clawd ({len(only_clawd)} files):")
|
||||
for f in only_clawd:
|
||||
print(f" {f}")
|
||||
|
||||
print(f"\nSHARED: {len(shared)} files")
|
||||
Reference in New Issue
Block a user