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

Function writeLegacyProfile

test/gstack-developer-profile.test.ts:56–59  ·  view source on GitHub ↗
(sessions: Array<Record<string, unknown>>)

Source from the content-addressed store, hash-verified

54}
55
56function writeLegacyProfile(sessions: Array<Record<string, unknown>>) {
57 const content = sessions.map((s) => JSON.stringify(s)).join('\n') + '\n';
58 fs.writeFileSync(path.join(tmpHome, 'builder-profile.jsonl'), content);
59}
60
61function readProfile(): Record<string, unknown> {
62 const file = path.join(tmpHome, 'developer-profile.json');

Calls

no outgoing calls

Tested by

no test coverage detected