Group loop_claude's modules into claude_code, claude_runs and project, and move the findings document beside larv-review
This commit is contained in:
@@ -23,12 +23,12 @@ def decode_state(handed, kind):
|
||||
|
||||
def fingerprint(launcher):
|
||||
digest = hashlib.sha256()
|
||||
for path in [launcher, *sorted((launcher.parent / "loop_claude").glob("*.py"))]:
|
||||
for path in [launcher, *sorted((launcher.parent / "loop_claude").rglob("*.py"))]:
|
||||
try:
|
||||
content = path.read_bytes()
|
||||
except OSError as failure:
|
||||
content = str(failure).encode()
|
||||
digest.update(f"{path.name}\0{len(content)}\0".encode() + content)
|
||||
digest.update(f"{path.relative_to(launcher.parent)}\0{len(content)}\0".encode() + content)
|
||||
return digest.hexdigest()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user