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

Function readState

hooks_src/cost-tracker.js:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50// ── State management ─────────────────────────────────────────────────────────
51
52function readState() {
53 try {
54 if (!fs.existsSync(STATE_FILE)) return null;
55 return JSON.parse(fs.readFileSync(STATE_FILE, 'utf8'));
56 } catch { return null; }
57}
58
59function writeState(state) {
60 try {

Callers 2

checkCampaignBudgetFunction · 0.70
runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected