{
  "manifest_version": 3,
  "name": "Repertoire /64 — Chess.com Post-Game Coach",
  "version": "1.5.1",
  "minimum_chrome_version": "102",
  "description": "Replays completed Chess.com games with local Stockfish 18 Lite feedback and 150 free opening courses.",
  "icons": {
    "128": "icon-128.png"
  },
  "permissions": [
    "storage",
    "alarms",
    "notifications"
  ],
  "host_permissions": [
    "https://api.chess.com/*"
  ],
  "background": {
    "service_worker": "background.js",
    "type": "module"
  },
  "action": {
    "default_title": "Repertoire /64",
    "default_icon": "icon-128.png",
    "default_popup": "popup.html"
  },
  "content_scripts": [
    {
      "matches": [
        "https://www.chess.com/game/*",
        "https://www.chess.com/play/online*"
      ],
      "js": [
        "content.js"
      ],
      "run_at": "document_idle"
    }
  ],
  "content_security_policy": {
    "extension_pages": "default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; worker-src 'self'; connect-src 'self' https://api.chess.com; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; frame-src 'none'; base-uri 'none'; frame-ancestors 'none'"
  }
}
