(sourceHome: string)
| 223 | } |
| 224 | |
| 225 | async function loadWorkdirs(sourceHome: string): Promise<WorkdirMeta[]> { |
| 226 | try { |
| 227 | const text = await readFile(sourceKimiJson(sourceHome), 'utf-8'); |
| 228 | const parsed = OldKimiJsonSchema.parse(JSON.parse(text)); |
| 229 | return parsed.work_dirs.map((w) => ({ path: w.path, kaos: w.kaos })); |
| 230 | } catch { |
| 231 | return []; |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | async function readWireMtime(sessionDir: string): Promise<number> { |
| 236 | try { |
no test coverage detected