Lay out loop-claude as a launcher over the loop_claude package

This commit is contained in:
2026-09-28 11:03:01 +02:00
parent 2ffeb5b4c0
commit 5a681948be
10 changed files with 752 additions and 702 deletions
+24
View File
@@ -0,0 +1,24 @@
import dataclasses
import pathlib
@dataclasses.dataclass(frozen=True)
class Paths:
archive: pathlib.Path
claude_json: pathlib.Path
code: pathlib.Path
model_catalog: pathlib.Path
models_file: pathlib.Path
projects: pathlib.Path
def paths_from(home, env):
claude = home / ".claude"
return Paths(
archive=pathlib.Path(env["LOOP_CLAUDE_TRANSCRIPTS"]).expanduser() if env.get("LOOP_CLAUDE_TRANSCRIPTS") else claude / "loop-claude-transcripts",
claude_json=home / ".claude.json",
code=home / "code",
model_catalog=claude / "cache" / "model-catalog",
models_file=claude / "loop-claude-models.json",
projects=claude / "projects",
)