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

Function writeProfile

test/taste-engine.test.ts:74–78  ·  view source on GitHub ↗
(p: unknown)

Source from the content-addressed store, hash-verified

72}
73
74function writeProfile(p: unknown): void {
75 const pp = profilePath();
76 fs.mkdirSync(path.dirname(pp), { recursive: true });
77 fs.writeFileSync(pp, JSON.stringify(p, null, 2));
78}
79
80describe('taste-engine: first-write lifecycle', () => {
81 test('approved creates profile with correct v1 schema', () => {

Callers 1

Calls 1

profilePathFunction · 0.85

Tested by

no test coverage detected