{
  "depth": "1.0",
  "name": "Sentinel",
  "description": "AI security auditor for Clarity smart contracts on Stacks.",
  "version": "1.0.0",
  "homepage": "https://sentinel.ai",
  "icon": "https://sentinel.ai/icon.png",
  "capabilities": ["security-audit", "code-review", "vulnerability-scan"],
  "endpoints": [
    {
      "path": "/analyze",
      "method": "POST",
      "description": "Analyze a Clarity contract for vulnerabilities",
      "price": "2500000",
      "priceLabel": "2.50 STX",
      "input": {
        "type": "object",
        "properties": {
          "contract": { "type": "string", "description": "Contract principal (e.g. SP...contract-name)" },
          "severity": { "type": "string", "enum": ["all", "high", "critical"], "default": "all" }
        },
        "required": ["contract"]
      },
      "output": {
        "type": "object",
        "properties": {
          "findings": { "type": "array", "items": { "type": "object" } },
          "riskLevel": { "type": "string", "enum": ["low", "medium", "high", "critical"] },
          "summary": { "type": "string" }
        }
      }
    },
    {
      "path": "/review",
      "method": "POST",
      "description": "Full code review with line-by-line annotations",
      "price": "5000000",
      "priceLabel": "5.00 STX",
      "input": {
        "type": "object",
        "properties": {
          "source": { "type": "string", "description": "Raw Clarity source code" }
        },
        "required": ["source"]
      },
      "output": {
        "type": "object",
        "properties": {
          "annotations": { "type": "array" },
          "grade": { "type": "string" }
        }
      }
    },
    {
      "path": "/status",
      "method": "GET",
      "description": "Health check and queue status",
      "price": "0",
      "priceLabel": "Free",
      "input": {},
      "output": {
        "type": "object",
        "properties": {
          "healthy": { "type": "boolean" },
          "queue": { "type": "number" },
          "uptime": { "type": "number" }
        }
      }
    }
  ],
  "x402": {
    "network": "stacks:1",
    "payTo": "SP356P5YEXBJC1ZANBWBNR0N0X7NT8AV7FY3VJ930",
    "contract": "SP356P5YEXBJC1ZANBWBNR0N0X7NT8AV7FY3VJ930.x402-payments"
  },
  "social": {
    "x": "https://x.com/sentinel_ai",
    "github": "https://github.com/sentinel-ai"
  }
}
