{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:marketplace:plugin-manifest:v1",
  "title": "Marketplace Plugin Manifest v1",
  "description": "Marketplace manifest derived from pinned upstream fields; independent name and schema contract.",
  "type": "object",
  "properties": {
    "$schema": {
      "const": "urn:marketplace:plugin-manifest:v1",
      "description": "Canonical identifier of the plugin manifest schema for the Agent Plugins version targeted by this document."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[a-z0-9](?:[a-z0-9_-]{0,62}[a-z0-9])?$",
      "description": "Human-readable plugin name.",
      "not": {
        "pattern": "[^a-z0-9_-]"
      }
    },
    "version": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "author": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "homepage": {
      "type": "string"
    },
    "repository": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "extensions": {
      "type": "object",
      "description": "Client-specific manifest data keyed by reverse-domain extension namespace. Agent Plugins assigns no semantics to namespace object contents.",
      "additionalProperties": {
        "type": "object"
      }
    }
  },
  "required": ["$schema", "name"],
  "additionalProperties": false
}
