()
| 157 | } |
| 158 | |
| 159 | function captureMemoryState() { |
| 160 | const lines = []; |
| 161 | const memDir = getMemoryDir(); |
| 162 | |
| 163 | if (_fileExists(memDir)) { |
| 164 | lines.push('- Memory directory: EXISTS at ' + memDir); |
| 165 | } else { |
| 166 | lines.push('- Memory directory: MISSING'); |
| 167 | return lines; |
| 168 | } |
| 169 | |
| 170 | const memoryMd = path.join(memDir, 'MEMORY.md'); |
| 171 | if (_fileExists(memoryMd)) { |
| 172 | lines.push('- MEMORY.md: ' + _fileSize(memoryMd) + ' bytes'); |
| 173 | } |
| 174 | |
| 175 | const evoDir = getEvolutionDir(); |
| 176 | const graphPath = path.join(evoDir, 'memory_graph.jsonl'); |
| 177 | if (_fileExists(graphPath)) { |
| 178 | lines.push('- Memory graph: ' + _fileSize(graphPath) + ' bytes'); |
| 179 | } |
| 180 | |
| 181 | const narrativePath = path.join(evoDir, 'evolution_narrative.md'); |
| 182 | if (_fileExists(narrativePath)) { |
| 183 | lines.push('- Evolution narrative: EXISTS'); |
| 184 | } |
| 185 | |
| 186 | return lines; |
| 187 | } |
| 188 | |
| 189 | function captureSkillsState() { |
| 190 | const lines = []; |
no test coverage detected