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

Function readState

src/gep/selfPR.js:139–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139function readState() {
140 try {
141 const p = getStatePath();
142 if (fs.existsSync(p)) {
143 return JSON.parse(fs.readFileSync(p, 'utf8'));
144 }
145 } catch (_) {}
146 return { lastPRAt: null, recentDiffHashes: [] };
147}
148
149function writeState(state) {
150 try {

Callers 3

isInCooldownFunction · 0.70
isDuplicateDiffFunction · 0.70
recordPRFunction · 0.70

Calls 2

parseMethod · 0.80
getStatePathFunction · 0.70

Tested by

no test coverage detected