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

Function setPref

test/gstack-question-preference.test.ts:70–72  ·  view source on GitHub ↗
(id: string, pref: string)

Source from the content-addressed store, hash-verified

68
69describe('--check with preferences set', () => {
70 function setPref(id: string, pref: string) {
71 return run('--write', JSON.stringify({ question_id: id, preference: pref, source: 'plan-tune' }));
72 }
73
74 test('two-way + never-ask → AUTO_DECIDE', () => {
75 setPref('ship-changelog-voice-polish', 'never-ask');

Calls 1

runFunction · 0.70

Tested by

no test coverage detected