{
  "id": "maigret",
  "name": "Maigret",
  "homepage": "https://github.com/soxoj/maigret",
  "description": "Collect a dossier on a person by username from thousands of sites.",
  "icon": "https://raw.githubusercontent.com/soxoj/maigret/main/static/maigret.png",
  "executables": [
    "maigret"
  ],
  "dotfiles": {
    "paths": [
      "~/.maigret/settings.json"
    ],
    "exclude": [
      "~/.maigret/data.json"
    ],
    "secret": [
      "~/.maigret/activation.json"
    ],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "~/.maigret/settings.json",
        "match": {
          "key_path": [
            "openai_api_key"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "~/.maigret/settings.json",
        "match": {
          "key_path": [
            "cookie_jar_file"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Search usernames",
    "description": "Search sites for one or more usernames and optionally write reports. Proxy, database, submit and debug options are left out.",
    "quality": "ai-draft",
    "base": "fig:maigret",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/maigret.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "usernames",
        "label": "Usernames",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "all_sites",
        "label": "Use all sites",
        "type": "boolean",
        "option": [
          "--all-sites",
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "timeout",
        "label": "Request timeout (seconds)",
        "type": "integer",
        "option": [
          "--timeout"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "retries",
        "label": "Retries",
        "type": "integer",
        "option": [
          "--retries"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_recursion",
        "label": "Disable recursive search",
        "type": "boolean",
        "option": [
          "--no-recursion"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tags",
        "label": "Site tags",
        "type": "string",
        "option": [
          "--tags"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "csv",
        "label": "CSV report",
        "type": "boolean",
        "option": [
          "--csv",
          "-C"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "html",
        "label": "HTML report",
        "type": "boolean",
        "option": [
          "--html",
          "-H"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "pdf",
        "label": "PDF report",
        "type": "boolean",
        "option": [
          "--pdf",
          "-P"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "txt",
        "label": "TXT report",
        "type": "boolean",
        "option": [
          "--txt",
          "-T"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "folder_output",
        "label": "Reports folder",
        "type": "path",
        "option": [
          "--folderoutput",
          "-fo"
        ],
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "quick",
        "label": "Quick search",
        "fields": [
          "usernames"
        ],
        "required": [
          "usernames"
        ]
      },
      {
        "id": "full_report",
        "label": "All sites with HTML report",
        "fields": [
          "usernames",
          "all_sites",
          "html"
        ],
        "required": [
          "usernames"
        ],
        "set": {
          "all_sites": [
            true
          ],
          "html": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "usernames",
          "all_sites",
          "tags",
          "html",
          "pdf",
          "csv",
          "txt"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "timeout",
          "retries",
          "no_recursion",
          "folder_output"
        ]
      }
    ]
  }
}
