(model = 'claude-opus-4-7', version = '2.1.117')
| 46 | } |
| 47 | |
| 48 | function 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 | |
| 68 | function assistantTurn( |
| 69 | blocks: Array<{ type: 'text'; text: string } | { type: 'tool_use'; name: string; input: unknown }>, |
no test coverage detected