(md: string)
| 30 | |
| 31 | /** Extract the facts from a markdown memory file (PURE): bullet lines, skipping header/comment/blank. */ |
| 32 | export function parseMemory(md: string): string[] { |
| 33 | const out: string[] = []; |
| 34 | for (const raw of md.split('\n')) { |
| 35 | const m = /^\s*[-*]\s+(.+?)\s*$/.exec(raw); |
| 36 | if (m && m[1] && m[1] !== '_(none yet)_') out.push(m[1].trim()); |
| 37 | } |
| 38 | return out; |
| 39 | } |
| 40 | |
| 41 | /** Where the two mirror files live for a given working directory. */ |
| 42 | export function memoryPaths(cwd: string): { user: string; project: string } { |
no test coverage detected