Name loop_claude's modules and words by what each holds, explain the reload, and tie each exit-1 clause of --help to its Stop

This commit is contained in:
2026-10-02 08:42:29 +02:00
parent dc844030fa
commit 211524196b
27 changed files with 212 additions and 165 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import pathlib
from loop_claude.effects import Effects
from loop_claude.outcome import Stop
from loop_claude.stop import Stop
def checkout_root(cwd: pathlib.Path, effects: Effects) -> str | Stop:
@@ -25,5 +25,5 @@ def checkouts(root: str, effects: Effects) -> list[str]:
return sorted(set(found))
def project_name(root: str, code: pathlib.Path) -> str:
def project_key(root: str, code: pathlib.Path) -> str:
return root.removeprefix(f"{code}/").lstrip("/")