Keep formats.py to Claude Code's shapes, with paths and file reads at their callers

This commit is contained in:
2026-09-29 11:47:23 +02:00
parent 969bb26668
commit 5e84736672
5 changed files with 23 additions and 37 deletions
+3 -6
View File
@@ -1,8 +1,6 @@
import dataclasses
import pathlib
from loop_claude.claude_code.formats import locations
@dataclasses.dataclass(frozen=True)
class Paths:
@@ -16,12 +14,11 @@ class Paths:
def paths_from(home, env):
claude = home / ".claude"
claude_json, model_catalog, claude_code_transcripts = locations(home)
return Paths(
archive=pathlib.Path(env["LOOP_CLAUDE_TRANSCRIPTS"]).expanduser() if env.get("LOOP_CLAUDE_TRANSCRIPTS") else claude / "loop-claude-transcripts",
claude_code_transcripts=claude_code_transcripts,
claude_json=claude_json,
claude_code_transcripts=claude / "projects",
claude_json=home / ".claude.json",
code=home / "code",
model_catalog=model_catalog,
model_catalog=claude / "cache" / "model-catalog",
models_file=claude / "loop-claude-models.json",
)