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

Function makeCtx

test/preamble-compose.test.ts:20–33  ·  view source on GitHub ↗
(
  host: 'claude' | 'codex',
  tier: 1 | 2 | 3 | 4,
  model?: string,
)

Source from the content-addressed store, hash-verified

18import { generatePreamble } from '../scripts/resolvers/preamble';
19
20function makeCtx(
21 host: 'claude' | 'codex',
22 tier: 1 | 2 | 3 | 4,
23 model?: string,
24): TemplateContext {
25 return {
26 skillName: 'test-skill',
27 tmplPath: 'test.tmpl',
28 host,
29 paths: HOST_PATHS[host],
30 preambleTier: tier,
31 ...(model ? { model } : {}),
32 };
33}
34
35describe('Preamble composition order', () => {
36 test('AskUserQuestion Format renders before Model-Specific Behavioral Patch (tier 2, claude)', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected