{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/GroepOnline/pi-tools/main/packages/pi-tools/pi-tools.schema.json",
  "title": "pi-tools configuration",
  "description": "Global startup configuration for the pi-tools extension.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "type": "string",
      "minLength": 1,
      "description": "Schema URL used by editors for validation and completion."
    },
    "mode": {
      "type": "string",
      "enum": ["tools-and-ui", "tools-only", "override"],
      "default": "tools-and-ui",
      "description": "Controls which FFF tools and autocomplete integrations are enabled."
    },
    "frecencyDbPath": {
      "type": "string",
      "minLength": 1,
      "description": "Path to the frecency database."
    },
    "historyDbPath": {
      "type": "string",
      "minLength": 1,
      "description": "Path to the query history database."
    },
    "enableFsRootScanning": {
      "type": "boolean",
      "default": false,
      "description": "Allows indexing when pi is launched from the filesystem root."
    },
    "enableHomeDirScanning": {
      "type": "boolean",
      "default": true,
      "description": "Allows indexing when pi is launched from the home directory."
    }
  }
}
