MCPcopy Create free account
hub / github.com/garrytan/gstack / readImportedEvents

Function readImportedEvents

test/gstack-codex-session-import.test.ts:79–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79function readImportedEvents(): Array<Record<string, unknown>> {
80 const f = path.join(stateRoot, 'projects', cwdSlug, 'question-log.jsonl');
81 if (!fs.existsSync(f)) return [];
82 return fs
83 .readFileSync(f, 'utf-8')
84 .trim()
85 .split('\n')
86 .filter(Boolean)
87 .map((l) => JSON.parse(l));
88}
89
90// ----------------------------------------------------------------------
91// Marker-first path

Calls

no outgoing calls

Tested by

no test coverage detected