Group bin's root modules into packages named by purpose, and make rank_todo.py a launcher of release_plan/ranking.py

This commit is contained in:
2026-11-08 20:35:52 +01:00
parent 25997ba9ec
commit 8d9a39de1c
115 changed files with 915 additions and 927 deletions
+12
View File
@@ -0,0 +1,12 @@
import pathlib
def project_key(checkout_root: str, home: pathlib.Path) -> str:
"""The checkout's path relative to ~/code, or to / outside it: what names a project's loop-claude session, its entry in the models file and its archive folder."""
return checkout_root.removeprefix(f"{home / 'code'}/").lstrip("/")
def checkout_of(key: str, home: pathlib.Path) -> str:
"""The checkout a project key names: under ~/code where that folder exists, else under /."""
under_code = home / "code" / key
return str(under_code) if under_code.is_dir() else f"/{key}"