MCPcopy Index your code
hub / github.com/garrytan/gstack / appendEvent

Function appendEvent

lib/gstack-decision.ts:212–214  ·  view source on GitHub ↗
(paths: DecisionPaths, event: DecisionEvent)

Source from the content-addressed store, hash-verified

210
211/** Append a validated event atomically (single-line, concurrency-safe). */
212export function appendEvent(paths: DecisionPaths, event: DecisionEvent): void {
213 appendJsonl(paths.log, event);
214}
215
216/** Read all events tolerantly (skips malformed/partial-tail lines). */
217export function readEvents(paths: DecisionPaths): DecisionEvent[] {

Callers 1

Calls 1

appendJsonlFunction · 0.90

Tested by

no test coverage detected