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

Function logQuestion

test/gstack-developer-profile.test.ts:47–54  ·  view source on GitHub ↗
(payload: Record<string, unknown>)

Source from the content-addressed store, hash-verified

45}
46
47function logQuestion(payload: Record<string, unknown>): number {
48 const res = spawnSync(BIN_LOG, [JSON.stringify(payload)], {
49 env: { ...process.env, GSTACK_HOME: tmpHome },
50 encoding: 'utf-8',
51 cwd: ROOT,
52 });
53 return res.status ?? -1;
54}
55
56function writeLegacyProfile(sessions: Array<Record<string, unknown>>) {
57 const content = sessions.map((s) => JSON.stringify(s)).join('\n') + '\n';

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected