pub fn encode_sse_error(id: Option<&Value>, code: i32, message: &str) -> String
AI-11 (#200): Encode a JSON-RPC error as an SSE frame.