生成会话文件路径。 对应 Reference: EP09 §1 ~/.claude/projects/{sanitized_cwd}/{session-id}.jsonl
(self, session_id: str)
| 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 | """ |
no outgoing calls
no test coverage detected