Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

1.8 KB
Raw Blame
{
  "id": "3ef2b351-8a84-4ff2-8724-d86eae9b842e-WOS",
  "snapshot": "libreoffice_writer",
  "instruction": "Help me center align the heading in LibreOffice.",
  "source": "https://askubuntu.com/questions/1066351/how-do-you-center-align-in-libreoffice#:~:text=Ctrl%20%2B%20e%20will%20Center%20align%20the%20cursor%20for%20you.",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/writer/3ef2b351-8a84-4ff2-8724-d86eae9b842e-WOS/Constitution_Template_With_Guidelines.docx",
            "path": "C:\\Users\\Docker\\Downloads\\Constitution_Template_With_Guidelines.docx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\Downloads\\Constitution_Template_With_Guidelines.docx"
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": ["libreoffice_writer"],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "Constitution_Template_With_Guidelines.docx — LibreOffice Writer",
          "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); "
          ]
        }
      }
    ],
    "func": "is_first_line_centered",
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\Downloads\\Constitution_Template_With_Guidelines.docx",
      "dest": "Constitution_Template_With_Guidelines.docx"
    }
  }
}