Return Claude Code's locations positionally

This commit is contained in:
2026-09-28 20:22:36 +02:00
parent 711d13b71b
commit 424f83c5c6
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ class UserEntryKind(enum.Enum):
def locations(home):
return {"claude_json": home / ".claude.json", "model_catalog": home / ".claude" / "cache" / "model-catalog", "projects": home / ".claude" / "projects"}
"""~/.claude.json, the model catalog folder and the projects folder."""
return home / ".claude.json", home / ".claude" / "cache" / "model-catalog", home / ".claude" / "projects"
# <projects>/-home-me-code-log/<session id>.jsonl
+4 -1
View File
@@ -16,9 +16,12 @@ class Paths:
def paths_from(home, env):
claude = home / ".claude"
claude_json, model_catalog, projects = locations(home)
return Paths(
archive=pathlib.Path(env["LOOP_CLAUDE_TRANSCRIPTS"]).expanduser() if env.get("LOOP_CLAUDE_TRANSCRIPTS") else claude / "loop-claude-transcripts",
claude_json=claude_json,
code=home / "code",
model_catalog=model_catalog,
models_file=claude / "loop-claude-models.json",
**locations(home),
projects=projects,
)