Task configuration:
{"task_id": "13", "task_name": "open_file", "description": "\u5728vscode\u4e2d\u6253\u5f00\u6587\u4ef6, \u5e76\u4e14\u5b9a\u4f4d\u5149\u6807", "application_info": {"name": "vscode", "executable_path": "/usr/share/code/code", "args": ["--no-sandbox", "--user-data-dir=/root/vscode_user_data_dir/"]}, "task_parameters": {"filename": "recursive_bubble_sort.cpp", "expected_file_path": "/root/C-Plus-Plus/sorting/recursive_bubble_sort.cpp", "function_name": "recursive_bubble_sort", "expected_line": 84}, "instruction_template": "\u5728\u5f53\u524dvscode\u6253\u5f00\u7684\u5de5\u4f5c\u533a\u4e2d\u627e\u5230\u540d\u4e3a ${filename} \u7684\u6587\u4ef6, \u6253\u5f00\u5e76\u628a\u5149\u6807\u5b9a\u4f4d ${function_name} \u5b9a\u4e49\u7684\u4f4d\u7f6e", "evaluation_setup": {"scripts": [{"role": "hook", "path": "hooker.js"}, {"role": "handler", "path": "handler.py"}], "timeout": 120, "evaluator_type": "IpcInjector", "evaluate_on_completion": true}, "total_key_steps": 2, "preconditions": {"vscode_running": true}, "events": {"evaluate_on_completion": {"description": "\u5728\u4efb\u52a1\u5b8c\u6210\u65f6\u68c0\u67e5debug\u4f1a\u8bdd\u7684\u72b6\u6001", "is_key_step": true, "key_step_index": 2, "key_step_name": "\u4efb\u52a1\u6210\u529f\u5b8c\u6210"}, "open_file": {"description": "\u6210\u529f\u6253\u5f00\u76ee\u6807\u6587\u4ef6", "is_key_step": true, "key_step_index": 1, "key_step_name": "\u6253\u5f00\u6587\u4ef6"}}, "mcp_servers": [{"command": "mcp-proxy", "args": ["http://127.0.0.1:6010/sse"]}], "context_data": [{"from": "tests/context_data/vscode/user_data", "to": "/root/vscode_user_data_dir"}, {"from": "tests/context_data/vscode/extensions", "to": "/root/.vscode/"}, {"from": "tests/context_data/vscode/C-Plus-Plus", "to": "/root/C-Plus-Plus"}]}

Hook script:
/**
 * 异步获取当前光标所在文件的名称和行号
 * @returns {Promise<{fileName: string, lineNumber: number} | null>} 文件信息对象或null
 */
async function getFileAndLineInfo() {
    const editor = vscode.window.activeTextEditor;
    
    if (!editor) {
        return null;
    }
    
    const filePath = editor.document.fileName;
    const fileName = filePath.split(/[\\/]/).pop();
    const lineNumber = editor.selection.active.line + 1;
    
    return { fileName, lineNumber };
}

// Listen for 'evaluate' event
socket.on('evaluate', async () => {
    const info = await getFileAndLineInfo();
    // vscode.window.showInformationMessage(message);
    socket.emit("send", {
        'event_type': "evaluate_on_completion",
        'message': "任务结束时获得光标的位置",
        'info': info
    });
});

// Register a listener for when a text document is opened
vscode.workspace.onDidOpenTextDocument(async (document) => {
    const filePath = document.uri.fsPath;
    socket.emit("send", {
        event_type: "open_file",
        message: "打开文件",
        path: filePath,
        scheme: document.uri.scheme
    });
});

Evaluation handler:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from typing import Dict, Any, Optional, List

def message_handler(message: Dict[str, Any], logger, task_parameter: Dict[str, Any]) -> Optional[List[Dict[str, Any]]]:    
    event_type = message.get('event_type')
    logger.info(message.get('message'))
    expected_file_path = task_parameter.get("expected_file_path", "/root/C-Plus-Plus/sorting/recursive_bubble_sort.cpp")
    if event_type == "evaluate_on_completion":
        file_name = message.get('info', {}).get('fileName', None)
        line_number = message.get('info', {}).get('lineNumber', None)
        expected_filename = task_parameter.get("filename", "recursive_bubble_sort.cpp")
        expected_line = task_parameter.get("expected_line", 84)
        if file_name == expected_filename and line_number == expected_line:
            return [
                {"status": "key_step", "index": 1},
                {"status": "success", "reason": f"任务成功完成"}
            ]
        else:
            return [{"status": "error", "type": "evaluate_on_completion", "message": "任务没有完成"}]
    elif event_type == "open_file":
        file_path = message.get("path")
        if message.get("scheme") == "git":
            file_path = file_path[:-4]
        if file_path == expected_file_path:
            return [{"status": "key_step", "index": 1}]
    return None