MCPcopy
hub / github.com/garrytan/gstack / readEvents

Function readEvents

lib/gstack-decision.ts:217–219  ·  view source on GitHub ↗
(paths: DecisionPaths)

Source from the content-addressed store, hash-verified

215
216/** Read all events tolerantly (skips malformed/partial-tail lines). */
217export function readEvents(paths: DecisionPaths): DecisionEvent[] {
218 return readJsonl<DecisionEvent>(paths.log);
219}
220
221/**
222 * Write the bounded active snapshot (`decisions.active.json`) atomically. Context

Callers 3

rebuildSnapshotFunction · 0.70
compactFunction · 0.70

Calls 1

readJsonlFunction · 0.90

Tested by

no test coverage detected