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

Function writeState

scripts/watch.js:165–170  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

163}
164
165function writeState(state) {
166 if (!fs.existsSync(PLANNING_DIR)) {
167 fs.mkdirSync(PLANNING_DIR, { recursive: true });
168 }
169 fs.writeFileSync(STATE_PATH, JSON.stringify(state, null, 2), 'utf8');
170}
171
172// -- Cross-process locking ----------------------------------------------------
173

Callers 2

runScanFunction · 0.70
runResetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected