(branch: string)
| 41 | } |
| 42 | |
| 43 | export async function loadBranchContext(branch: string): Promise<ContextEntry[]> { |
| 44 | const dir = await getDevCtxDir(); |
| 45 | const branchFile = path.join(dir, "branches", `${branch.replace(/\//g, "__")}.json`); |
| 46 | |
| 47 | if (!fs.existsSync(branchFile)) return []; |
| 48 | return JSON.parse(fs.readFileSync(branchFile, "utf-8")); |
| 49 | } |
| 50 | |
| 51 | export async function loadAllSessions(): Promise<ContextEntry[]> { |
| 52 | const dir = await getDevCtxDir(); |
no test coverage detected