MCPcopy Create free account
hub / github.com/Louisym/MiniCC / _session_path

Method _session_path

tutorials/12_session_persistence.py:298–305  ·  view source on GitHub ↗

生成会话文件路径。 对应 Reference: EP09 §1 ~/.claude/projects/{sanitized_cwd}/{session-id}.jsonl

(self, session_id: str)

Source from the content-addressed store, hash-verified

296 os.makedirs(base_dir, exist_ok=True)
297
298 def _session_path(self, session_id: str) -> str:
299 """
300 生成会话文件路径。
301
302 对应 Reference: EP09 §1
303 ~/.claude/projects/{sanitized_cwd}/{session-id}.jsonl
304 """
305 return os.path.join(self.base_dir, f"{session_id}.jsonl")
306
307 def append_message(self, session_id: str, message: ConversationMessage):
308 """

Callers 4

append_messageMethod · 0.95
append_metadataMethod · 0.95
load_sessionMethod · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected