mirrored 3 minutes ago
0
timothyxxxAdd VM machine retrieval and enhance Chrome page info handling - Added `get_vm_machine` method to `PythonController` for retrieving the VM's machine type. - Updated `get_page_info` function in `chrome.py` to utilize the new VM machine retrieval for determining the appropriate Chrome launch command. - Improved error handling and logging for page loading and connection attempts. - Adjusted JSON comparison logic in `vscode.py` for better subset checking and handling of expected results. - Fixed minor typos in JSON example files for clarity. d7f48f7
{
  "id": "67890eb6-6ce5-4c00-9e3d-fb4972699b06",
  "snapshot": "libreoffice_calc",
  "instruction": "I am an NLP researcher. Check out the best long paper awards of ACL from 2019 to 2022 and record the 'title', 'year', 'author list' and 'PDF link' into table best_awards_acl.xlsx on the desktop. Separate authors only by commas, use offical aclanthology urls not arxiv, and sort rows by years in descending orders.",
  "source": "authors",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/multi_apps/67890eb6-6ce5-4c00-9e3d-fb4972699b06/best_awards_acl.xlsx",
            "path": "/home/user/Desktop/best_awards_acl.xlsx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "/home/user/Desktop/best_awards_acl.xlsx"
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": [
          "google-chrome",
          "--remote-debugging-port=1337"
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": [
          "socat",
          "tcp-listen:9222,fork",
          "tcp:localhost:1337"
        ]
      }
    },
    {
      "type": "chrome_open_tabs",
      "parameters": {
        "urls_to_open": [
          "https://aclanthology.org/"
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "libreoffice_calc",
    "chrome"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "best_awards_acl.xlsx - LibreOffice Calc",
          "strict": true
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "python",
            "-c",
            "import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5);"
          ]
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      }
    ],
    "func": "compare_table",
    "result": {
      "type": "vm_file",
      "path": "/home/user/Desktop/best_awards_acl.xlsx",
      "dest": "best_awards_acl.xlsx"
    },
    "expected": {
      "type": "cloud_file",
      "path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/multi_apps/67890eb6-6ce5-4c00-9e3d-fb4972699b06/gold_best_awards_acl.xlsx",
      "dest": "gold_best_awards_acl.xlsx"
    },
    "options": {
      "rules": [
        {
          "type": "sheet_data",
          "sheet_idx0": 0,
          "sheet_idx1": "EI0"
        }
      ]
    }
  },
  "proxy": true,
  "fixed_ip": false,
  "possibility_of_env_change": "low"
}