{
  "id": "42f4d1c7-4521-4161-b646-0a8934e36081",
  "snapshot": "gimp",
  "instruction": "Configure VS Code to edit GIMP script-fu scripts effectively by installing lisp extension. Test by writing code to resize the image \"character.png\" to 128 * 128 as \"resized.png\".",
  "source": "",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://drive.google.com/uc?export=download&id=1yrWU5HimYPNUjdtvw1a218kh50fPVtZ3",
            "path": "/home/user/Desktop/character.png"
          }
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": [
          "code"
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "gimp",
    "vs_code"
  ],
  "evaluator": {
    "func": [
      "is_extension_installed",
      "check_image_size"
    ],
    "result": [
      {
        "type": "vm_command_line",
        "command": [
          "code",
          "--list-extensions",
          "|",
          "grep",
          "mattn.lisp"
        ]
      },
      {
        "type": "vm_file",
        "path": "/home/user/Desktop/resized.png",
        "dest": "resized.png"
      }
    ],
    "expected": [
      {
        "type": "rule",
        "rules": {
          "type": "contain",
          "expected": "mattn.lisp"
        }
      },
      {
        "type": "rule",
        "rules": {
          "height": 128,
          "width": 128
        }
      }
    ]
  }
}