Name formats.py's samples by what they are, put Session's lifetime on Session, and file the prose pass's places
This commit was merged in pull request #135.
This commit is contained in:
@@ -11,13 +11,13 @@ NAMESPACE = uuid.UUID("64fb586b-d926-4bb3-a44c-c903e86d3eec")
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Session:
|
||||
"""Exists while its transcript does."""
|
||||
id: uuid.UUID
|
||||
claude_code_transcripts: pathlib.Path
|
||||
name: str
|
||||
|
||||
|
||||
def session_for(project, paths):
|
||||
"""Exists while its transcript does."""
|
||||
# "A " is the human's cue in the session picker that the session is the loop's.
|
||||
name = f"A {project} loop-claude"
|
||||
return Session(id=uuid.uuid5(NAMESPACE, name), claude_code_transcripts=paths.claude_code_transcripts, name=name)
|
||||
|
||||
Reference in New Issue
Block a user