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

Function systemInit

test/agent-sdk-runner.test.ts:48–66  ·  view source on GitHub ↗
(model = 'claude-opus-4-7', version = '2.1.117')

Source from the content-addressed store, hash-verified

46}
47
48function systemInit(model = 'claude-opus-4-7', version = '2.1.117'): SDKMessage {
49 return {
50 type: 'system',
51 subtype: 'init',
52 apiKeySource: 'user',
53 claude_code_version: version,
54 cwd: '/tmp/x',
55 tools: ['Read'],
56 mcp_servers: [],
57 model,
58 permissionMode: 'bypassPermissions',
59 slash_commands: [],
60 output_style: 'default',
61 skills: [],
62 plugins: [],
63 uuid: uuid(),
64 session_id: 'test-session',
65 } as unknown as SDKMessage;
66}
67
68function assistantTurn(
69 blocks: Array<{ type: 'text'; text: string } | { type: 'tool_use'; name: string; input: unknown }>,

Callers 2

slowStubFunction · 0.85

Calls 1

uuidFunction · 0.85

Tested by

no test coverage detected