MCPcopy Create free account
hub / github.com/EvoMap/evolver / appendLine

Function appendLine

src/proxy/mailbox/store.js:116–120  ·  view source on GitHub ↗
(filePath, obj)

Source from the content-addressed store, hash-verified

114}
115
116function appendLine(filePath, obj) {
117 const line = jsonlLineForWrite(obj);
118 fs.appendFileSync(filePath, line, { encoding: 'utf8', mode: PRIVATE_FILE_MODE });
119 bestEffortChmod(filePath, PRIVATE_FILE_MODE);
120}
121
122function resolveMaxJsonlLineBytes(env = process.env) {
123 const raw = Number(env.EVOMAP_MAILBOX_MAX_LINE_BYTES);

Callers 2

_appendMessageMethod · 0.85
_appendUpdateMethod · 0.85

Calls 2

jsonlLineForWriteFunction · 0.85
bestEffortChmodFunction · 0.85

Tested by

no test coverage detected