Restructure bin/ so the project reads at the comprehension floor

This commit is contained in:
2026-10-09 14:12:16 +02:00
parent 2157f5927d
commit b1913ed65d
46 changed files with 484 additions and 400 deletions
+3 -6
View File
@@ -1,6 +1,5 @@
import dataclasses
import pathlib
import typing
@dataclasses.dataclass(frozen=True)
@@ -8,20 +7,18 @@ class Paths:
claude_code_transcripts: pathlib.Path
claude_json: pathlib.Path
claude_md: pathlib.Path
code: pathlib.Path
home: pathlib.Path
model_catalog: pathlib.Path
models_file: pathlib.Path
transcript_archive: pathlib.Path
def paths_from(home: pathlib.Path, env: typing.Mapping[str, str]) -> Paths:
def paths_from(home: pathlib.Path) -> Paths:
claude = home / ".claude"
return Paths(
claude_code_transcripts=claude / "projects",
claude_json=home / ".claude.json",
claude_md=claude / "CLAUDE.md",
code=home / "code",
home=home,
model_catalog=claude / "cache" / "model-catalog",
models_file=claude / "loop-claude-models.json",
transcript_archive=pathlib.Path(env["LOOP_CLAUDE_TRANSCRIPTS"]).expanduser() if env.get("LOOP_CLAUDE_TRANSCRIPTS") else claude / "loop-claude-transcripts",
)