Name each entry shape written_by_human checks, and annotate every parameter in loop_claude

This commit is contained in:
2026-10-01 23:47:03 +02:00
parent 70ad9a9caa
commit 39acf6dff0
24 changed files with 113 additions and 84 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import dataclasses
import pathlib
import typing
@dataclasses.dataclass(frozen=True)
@@ -12,7 +13,7 @@ class Paths:
models_file: pathlib.Path
def paths_from(home, env) -> Paths:
def paths_from(home: pathlib.Path, env: typing.Mapping[str, str]) -> Paths:
claude = home / ".claude"
return Paths(
archive=pathlib.Path(env["LOOP_CLAUDE_TRANSCRIPTS"]).expanduser() if env.get("LOOP_CLAUDE_TRANSCRIPTS") else claude / "loop-claude-transcripts",