{
  "title": "GitHub Marketplace Apps – Adoption, Plans & Permissions",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "appSlugs": {
      "title": "Marketplace apps",
      "type": "array",
      "description": "Exact app slugs. Leave both lists empty for coderabbitai, codecov and snyk. Use this list OR startUrls.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": [],
      "prefill": [
        "coderabbitai",
        "codecov",
        "snyk"
      ],
      "maxItems": 20
    },
    "startUrls": {
      "title": "Marketplace app URLs",
      "type": "array",
      "description": "Alternative to appSlugs. Only direct public https://github.com/marketplace/app-slug URLs; no queries, Actions, account pages or redirects.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": [],
      "prefill": [],
      "maxItems": 20
    },
    "maxResults": {
      "title": "Maximum saved observations",
      "type": "integer",
      "description": "Cap real output rows. A smaller cap than the matching selected window marks coverage incomplete and preserves the previous baseline.",
      "default": 3,
      "prefill": 3,
      "minimum": 1,
      "maximum": 100
    },
    "comparePrevious": {
      "title": "Compare saved observations",
      "type": "boolean",
      "description": "First complete run establishes history. Later complete runs add exact changes; incomplete source/output/spending-limited runs do not advance it.",
      "default": false,
      "prefill": false
    },
    "onlyChanges": {
      "title": "Return only new or changed observations",
      "type": "boolean",
      "description": "Enables comparison. A valid unchanged run can return zero rows. No missing-item removal inference.",
      "default": false,
      "prefill": false
    },
    "snapshotName": {
      "title": "Watchlist history name",
      "type": "string",
      "description": "Use a stable name for the same scope. Letters, numbers, underscore or hyphen; 1–80 characters.",
      "default": "default",
      "prefill": "default",
      "pattern": "^[-\\w]{1,80}$",
      "editor": "textfield"
    },
    "maxRunSeconds": {
      "title": "Run time budget (seconds)",
      "type": "integer",
      "description": "Requests and pacing honor the remaining time. Time-limited runs preserve prior history.",
      "default": 120,
      "prefill": 120,
      "minimum": 30,
      "maximum": 120
    }
  },
  "required": []
}
