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

Function findLearningsFile

test/learnings.test.ts:56–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54});
55
56function findLearningsFile(): string | null {
57 const projectDirs = fs.readdirSync(slugDir);
58 if (projectDirs.length === 0) return null;
59 const f = path.join(slugDir, projectDirs[0], 'learnings.jsonl');
60 return fs.existsSync(f) ? f : null;
61}
62
63describe('gstack-learnings-log', () => {
64 test('appends valid JSON to learnings.jsonl', () => {

Callers 1

learnings.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected