{
  "id": "mole",
  "name": "Mole",
  "homepage": "https://mole.fit",
  "description": "Clean, uninstall, analyze, optimize, and monitor your Mac. Free open-source CLI, plus a native Mac app.",
  "icon": "https://mole.fit/img/favicon-mole-192-ba32c29d.png",
  "executables": [
    "mo",
    "mole"
  ],
  "platforms": [
    "macos"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/mole/whitelist",
      "~/.config/mole/purge_paths"
    ],
    "exclude": [
      "~/Library/Logs/mole/"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Mole",
    "description": "Mole maintenance commands. Only the cleanup preview is covered.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "clean"
        ],
        "label": "Clean up disk space",
        "description": "Remove caches, logs, temporary files and leftovers of uninstalled apps. Defaults to previewing with --dry-run; the whitelist editor is left out.",
        "source": [
          {
            "id": "help",
            "kind": "help",
            "revision": "mo clean --help",
            "evidence": "Usage: mo clean [OPTIONS]\nOptions:\n  --dry-run, -n     Preview cleanup without making changes\n  --external PATH   Clean OS metadata from a mounted external volume\n  --debug           Show detailed operation logs"
          }
        ],
        "field": [
          {
            "id": "dry_run",
            "label": "Preview only (dry run)",
            "type": "boolean",
            "option": [
              "--dry-run",
              "-n"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "external",
            "label": "External volume to clean",
            "type": "path",
            "option": [
              "--external"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "help"
            ]
          },
          {
            "id": "debug",
            "label": "Detailed logs",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "help"
            ]
          }
        ],
        "task": [
          {
            "id": "preview",
            "label": "Preview cleanup",
            "fields": [
              "dry_run"
            ],
            "required": [
              "dry_run"
            ],
            "set": {
              "dry_run": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dry_run",
              "external",
              "debug"
            ]
          }
        ]
      }
    ]
  }
}
