(filePath: string)
| 46 | } |
| 47 | |
| 48 | async function readJsonFile(filePath: string): Promise<unknown | undefined> { |
| 49 | try { |
| 50 | const raw = await fs.readFile(filePath, "utf8") |
| 51 | return JSON.parse(raw) |
| 52 | } catch { |
| 53 | return undefined |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | export async function readTaskSessionsFromStoragePath(storageBasePath: string): Promise<TaskSessionEntry[]> { |
| 58 | const tasksDir = path.join(storageBasePath, "tasks") |
no test coverage detected