{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "dibs config",
  "description": "~/.dibs/config.json (global) or a project's .dibs/config.json. Project overrides global; DIBS_* env overrides both.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "$schema": { "type": "string" },
    "id": {
      "type": "string",
      "pattern": "^[\\w-]+$",
      "description": "Project id, written by dibs. Links this project to its record in ~/.dibs/projects/projects.jsonl; don't edit."
    },
    "scope": {
      "enum": ["project", "global", "temp"],
      "description": "Where todos live: in the project (.dibs), in ~/.dibs/projects, or a temporary per-session file. Set per project with /todos scope."
    },
    "file": {
      "type": "string",
      "minLength": 1,
      "description": "Explicit todos file path; ~ is expanded. Overridden by DIBS_FILE."
    },
    "adapters": {
      "type": "object",
      "description": "Sync dibs todos with other task apps.",
      "additionalProperties": false,
      "properties": {
        "dex": { "$ref": "src/core/adapters/dex/dex.schema.json" },
        "things": { "$ref": "src/core/adapters/things/things.schema.json" }
      }
    }
  }
}
