(home: string, projectName: string, sessionId: string, content: string)
| 42 | } |
| 43 | |
| 44 | function writeClaudeCodeSession(home: string, projectName: string, sessionId: string, content: string): string { |
| 45 | const projectsDir = join(home, ".claude", "projects", projectName); |
| 46 | mkdirSync(projectsDir, { recursive: true }); |
| 47 | const file = join(projectsDir, `${sessionId}.jsonl`); |
| 48 | writeFileSync(file, content, "utf-8"); |
| 49 | return file; |
| 50 | } |
| 51 | |
| 52 | function writeCodexSession(home: string, ymd: string, content: string): string { |
| 53 | const [y, m, d] = ymd.split("-"); |
no outgoing calls
no test coverage detected