Rename Paths.projects and Session.projects to claude_transcripts
This commit is contained in:
@@ -13,19 +13,19 @@ NAMESPACE = uuid.UUID("64fb586b-d926-4bb3-a44c-c903e86d3eec")
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Session:
|
||||
id: uuid.UUID
|
||||
claude_transcripts: pathlib.Path
|
||||
name: str
|
||||
projects: pathlib.Path
|
||||
|
||||
|
||||
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(uuid.uuid5(NAMESPACE, name), name, paths.projects)
|
||||
return Session(uuid.uuid5(NAMESPACE, name), paths.claude_transcripts, name)
|
||||
|
||||
|
||||
def transcript_file(session):
|
||||
return transcript_path(session.projects, session.id)
|
||||
return transcript_path(session.claude_transcripts, session.id)
|
||||
|
||||
|
||||
def delete_session(session):
|
||||
|
||||
Reference in New Issue
Block a user