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

Function getPersonality

src/webui/observer/personality.js:9–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const { redactValue } = require('./redact');
8
9function getPersonality() {
10 const evoDir = getEvolutionDir();
11 const memDir = getMemoryDir();
12 const candidates = [
13 path.join(evoDir, 'personality_state.json'),
14 path.join(memDir, 'personality_state.json'),
15 ];
16 for (const candidate of candidates) {
17 const data = readJsonSafe(candidate, null);
18 if (data) return { exists: true, ...redactValue(data) };
19 }
20 return { exists: false, current: null, history: [] };
21}
22
23function getMemoryGraph(query = {}) {
24 const limit = Math.min(Number(query.limit) || 50, 500);

Callers

nothing calls this directly

Calls 4

getEvolutionDirFunction · 0.85
getMemoryDirFunction · 0.85
redactValueFunction · 0.85
readJsonSafeFunction · 0.70

Tested by

no test coverage detected