MCPcopy Create free account
hub / github.com/SethGammon/Citadel / readState

Function readState

hooks_src/instructions-loaded.js:31–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29const STATE_FILE = path.join(TELEMETRY_DIR, 'instructions-state.json');
30
31function readState() {
32 try {
33 if (!fs.existsSync(STATE_FILE)) return {};
34 return JSON.parse(fs.readFileSync(STATE_FILE, 'utf8'));
35 } catch { return {}; }
36}
37
38function writeState(state) {
39 try {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected