fixed server/main.py fixed several sheetcopilot tasks fixed several calc metrics, including float difference of sheet_data and conditional formatting recognition
89 lines
1.7 KiB
JSON
89 lines
1.7 KiB
JSON
{
|
|
"id": "1954cced-e748-45c4-9c26-9855b97fbc5e",
|
|
"snapshot": "libreoffice_calc",
|
|
"instruction": "Create a Pivot Table in a new sheet (Sheet2) to count how many times each \"Invoice No.\" appears.",
|
|
"source": "SheetCopilot@104",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?id=1ydRPxPp5Cy1RIpURMwbgxE0ieAvCgQgC&export=download",
|
|
"path": "/home/user/Invoices.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/Invoices.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/1954cced-e748-45c4-9c26-9855b97fbc5e",
|
|
"related_apps": [
|
|
"libreoffice_calc"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Invoices.xlsx - LibreOffice Calc",
|
|
"strict": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; pyautogui.hotkey(\"ctrl\", \"s\");"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
}
|
|
],
|
|
"func": "compare_table",
|
|
"expected": {
|
|
"type": "cloud_file",
|
|
"path": "https://drive.google.com/uc?id=1MK5UbXoEf0iqOgaC_V00oKx9PxB8i1Uo&export=download",
|
|
"dest": "8_Invoices_gt1.xlsx"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Invoices.xlsx",
|
|
"dest": "Invoices.xlsx"
|
|
},
|
|
"options": {
|
|
"rules": [
|
|
{
|
|
"type": "pivot_table",
|
|
"sheet_idx0": "RNSheet2",
|
|
"sheet_idx1": "ENSheet2",
|
|
"pivot_props": [
|
|
"col_fields",
|
|
"filter",
|
|
"row_fields",
|
|
"data_fields"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|