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

Function autoDecidedEvents

test/question-preference-hook.test.ts:100–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100function autoDecidedEvents(): Array<Record<string, unknown>> {
101 const f = path.join(stateRoot, 'projects', cwdSlug, 'question-log.jsonl');
102 if (!fs.existsSync(f)) return [];
103 return fs
104 .readFileSync(f, 'utf-8')
105 .trim()
106 .split('\n')
107 .filter(Boolean)
108 .map((l) => JSON.parse(l))
109 .filter((e) => e.source === 'auto-decided');
110}
111
112// ----------------------------------------------------------------------
113// Defer paths

Calls

no outgoing calls

Tested by

no test coverage detected