{
  "manifest_version": 3,
  "minimum_chrome_version": "116",
  "name": "Chess Analysis Companion",
  "version": "0.2.2",
  "description": "Real-time chess analysis with best move arrows on chess.com",
  "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvXppeBKPRk/9avszcOw+YZV8Zf3h+WrRXcqXTq4JSCHKFPFLAvYLtg566WyOn4YmXHu9ZqjPo0Nqe1uE3+jo3PIAY90zK1TakOlO+Ksk8WP0uqj6bzjetAsZtlLNOyTL5gucGmprj/ukWmcws/JB07rGjhxMLi4MbIcIGqzrFqOnxotCBleZg9tRM394KERfoDTG1tRSHlr5L9WhTmR/lHDgPyvpmU+ZbcAuKaBZ+nm5eN04xjwONqS4HbzuTNVQuHArHcoz9JaopdwzeR54Brw+ShMOPqsrwCFuYCgnGXW2ak8EmhQL87mXG/AeHCQCIPUlRvPAm3OYH7/yuXMIDwIDAQAB",

  "background": {
    "service_worker": "background.js"
  },

  "content_scripts": [
    {
      "matches": [
        "https://www.chess.com/*",
        "https://chess.com/*",
        "https://lichess.org/*",
        "https://*.lichess.org/*"
      ],
      "js": ["content.js"],
      "css": ["content.css"],
      "run_at": "document_idle"
    }
  ],

  "permissions": [
    "alarms",
    "offscreen",
    "storage"
  ],

  "cross_origin_embedder_policy": {
    "value": "require-corp"
  },
  "cross_origin_opener_policy": {
    "value": "same-origin"
  },

  "content_security_policy": {
    "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
  },

  "action": {
    "default_popup": "popup.html",
    "default_icon": {
      "16": "icons/icon16.png",
      "48": "icons/icon48.png",
      "128": "icons/icon128.png"
    }
  },

  "icons": {
    "16": "icons/icon16.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  },

  "web_accessible_resources": [
    {
      "resources": [
        "assets/openings.json",
        "assets/maia3-5m.fp16.onnx",
        "assets/nn-4ca89e4b3abf.nnue",
        "lib/*",
        "vendor/stockfish/*",
        "vendor/stockfish/sf_18_smallnet.js",
        "vendor/stockfish/sf_18_smallnet.wasm",
        "sf_18_smallnet.js",
        "sf_18_smallnet.wasm"
      ],
      "matches": ["https://*.chess.com/*", "https://*.lichess.org/*", "chrome-extension://*/*"]
    }
  ]
}
