103 lines
3.0 KiB
JSON
103 lines
3.0 KiB
JSON
{
|
|
"id": "d38192b0-17dc-4e1d-99c3-786d0117de77",
|
|
"snapshot": "thunderbird",
|
|
"instruction": "Attach the my AWS bill to the email. The bill is stored at ~/aws-bill.pdf. Don't close it or send it. I haven't finish all the contents.",
|
|
"source": "https://support.mozilla.org/en-US/kb/how-use-attachments",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/thunderbird/d38192b0-17dc-4e1d-99c3-786d0117de77/invoice0123456789.pdf",
|
|
"path": "/home/user/aws-bill.pdf"
|
|
},
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/thunderbird/dd84e895-72fd-4023-a336-97689ded257c/thunderbird-profile.tar.gz",
|
|
"path": "/home/user/thunderbird-profile.tar.gz"
|
|
},
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/thunderbird/d38192b0-17dc-4e1d-99c3-786d0117de77/New-month%20AWS%20Bill.html",
|
|
"path": "/home/user/.aws-bill-mail-body.html"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"tar",
|
|
"-xzv",
|
|
"--recursive-unlink",
|
|
"-f",
|
|
"/home/user/thunderbird-profile.tar.gz",
|
|
"-C",
|
|
"/home/user/"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": "/usr/bin/thunderbird -compose \"from='Anonym Tester <anonym-x2024@outlook.com>',to=assistant@outlook.com,subject='New-month AWS Bill',body='$(cat /home/user/.aws-bill-mail-body.html)'\"",
|
|
"shell": true
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/d088f539-cab4-4f9a-ac92-9999fc3a656e",
|
|
"related_apps": [
|
|
"thunderbird"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/thunderbird/d38192b0-17dc-4e1d-99c3-786d0117de77/show-thunderbird-attachments.py",
|
|
"path": "/home/user/show-thunderbird-attachments.py"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"pip",
|
|
"install",
|
|
"cssselect"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"/home/user/show-thunderbird-attachments.py",
|
|
"New-month AWS Bill",
|
|
"aws-bill.pdf"
|
|
],
|
|
"stdout": "check-attachments.output"
|
|
}
|
|
}
|
|
],
|
|
"func": "check_list",
|
|
"result": {
|
|
"type": "cache_file",
|
|
"path": "check-attachments.output"
|
|
},
|
|
"expected": {
|
|
"type": "rule",
|
|
"rules": {
|
|
"expect": [
|
|
"Attachment added!"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"proxy": false
|
|
} |