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

Function appendJsonl

core/codex/native-integrations.js:40–43  ·  view source on GitHub ↗
(filePath, value)

Source from the content-addressed store, hash-verified

38}
39
40function appendJsonl(filePath, value) {
41 ensureDir(path.dirname(filePath));
42 fs.appendFileSync(filePath, JSON.stringify(value) + '\n', 'utf8');
43}
44
45function readTextIfExists(filePath) {
46 if (!fs.existsSync(filePath)) return '';

Callers 1

recordAppArtifactFunction · 0.70

Calls 1

ensureDirFunction · 0.70

Tested by

no test coverage detected