#!/usr/bin/env node // Fake claude CLI for the Yerin security route test. Emits text deltas + one // security tool call (mcp__void__audit_log) + a result. No propose_change/draft. const TOOL_USE_ID = 'toolu_yerin_01'; const lines = [ { type: 'system', subtype: 'init', session_id: 'fake-yerin', tools: [], cwd: '/tmp' }, { type: 'stream_event', event: { type: 'content_block_start', index: 0, content_block: { type: 'text', text: '' } } }, { type: 'stream_event', event: { type: 'content_block_delta', index: 0, delta: { type: 'text_delta', text: 'No new threats.' } } }, { type: 'stream_event', event: { type: 'content_block_stop', index: 0 } }, { type: 'stream_event', event: { type: 'content_block_start', index: 1, content_block: { type: 'tool_use', id: TOOL_USE_ID, name: 'mcp__void__audit_log', input: {} } } }, { type: 'stream_event', event: { type: 'content_block_stop', index: 1 } }, { type: 'tool_result', tool_use_id: TOOL_USE_ID, content: [{ type: 'text', text: JSON.stringify({ entries: [] }) }] }, { type: 'result', subtype: 'success', is_error: false, result: 'No new threats.', stop_reason: 'end_turn', session_id: 'fake-yerin', total_cost_usd: 0.0001, usage: { input_tokens: 40, output_tokens: 4 } } ]; for (const l of lines) process.stdout.write(JSON.stringify(l) + '\n'); process.exit(0);