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

Function saveState

scripts/telemetry-otlp-export.js:268–271  ·  view source on GitHub ↗
(stateFile, state)

Source from the content-addressed store, hash-verified

266}
267
268function saveState(stateFile, state) {
269 fs.mkdirSync(path.dirname(stateFile), { recursive: true });
270 fs.writeFileSync(stateFile, JSON.stringify(state, null, 2) + '\n');
271}
272
273function buildPayload(metrics, projectName) {
274 const metricEntries = [];

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected