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

Function fetchSources

lib/gbrain-guards.ts:200–204  ·  view source on GitHub ↗
(env: NodeJS.ProcessEnv = process.env)

Source from the content-addressed store, hash-verified

198 * Injectable for hermetic tests.
199 */
200export function fetchSources(env: NodeJS.ProcessEnv = process.env): GbrainSourceRow[] {
201 const raw = execGbrainJson(["sources", "list", "--json"], { baseEnv: env });
202 if (raw === null) throw new Error("gbrain sources list returned no JSON");
203 return parseSourcesList(raw);
204}
205
206export interface RemoveDecision {
207 allow: boolean;

Callers

nothing calls this directly

Calls 2

execGbrainJsonFunction · 0.90
parseSourcesListFunction · 0.90

Tested by

no test coverage detected