MCPcopy Create free account
hub / github.com/EvoMap/evolver / captureMemoryState

Function captureMemoryState

src/gep/localStateAwareness.js:159–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157}
158
159function 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
189function captureSkillsState() {
190 const lines = [];

Callers 2

captureLocalStateFunction · 0.85

Calls 4

getMemoryDirFunction · 0.85
_fileExistsFunction · 0.85
_fileSizeFunction · 0.85
getEvolutionDirFunction · 0.85

Tested by

no test coverage detected