Encode an absolute repo path as a single directory name. Same scheme as Claude Code: drop leading slash, then ``/`` → ``-``. So ``/Users/alice/code/repo`` becomes ``-Users-alice-code-repo``. Reversible visually by eye, which is enough for discoverability (``ls`` shows every repo tha
(path: Path)
| 48 | |
| 49 | |
| 50 | def mangle_project_path(path: Path) -> str: |
| 51 | """Encode an absolute repo path as a single directory name. |
| 52 | |
| 53 | Same scheme as Claude Code: drop leading slash, then ``/`` → ``-``. So |
| 54 | ``/Users/alice/code/repo`` becomes ``-Users-alice-code-repo``. Reversible |
| 55 | visually by eye, which is enough for discoverability (``ls`` shows every |
| 56 | repo that has been reviewed). |
| 57 | """ |
| 58 | return str(path).replace("/", "-") |
| 59 | |
| 60 | |
| 61 | def unmangle_bucket_name(name: str) -> Path: |
no outgoing calls