{
  "manifest_version": 3,
  "name": "Sahi \u2014 Writing Assistant",
  "version": "1.0.0",
  "description": "Checks spelling, grammar and tone as you write in Gmail, WhatsApp Web and any text box. Built for Indian and medical vocabulary.",
  "minimum_chrome_version": "114",
  "permissions": [
    "storage",
    "contextMenus",
    "alarms"
  ],
  "host_permissions": [
    "https://mail.google.com/*",
    "https://web.whatsapp.com/*",
    "https://outlook.office.com/*",
    "https://outlook.live.com/*"
  ],
  "optional_host_permissions": [
    "https://*/*",
    "http://*/*"
  ],
  "background": {
    "service_worker": "background/service-worker.js",
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": [
        "https://mail.google.com/*",
        "https://web.whatsapp.com/*",
        "https://outlook.office.com/*",
        "https://outlook.live.com/*"
      ],
      "js": [
        "content/textmap.js",
        "content/adapters.js",
        "content/overlay.js",
        "content/card.js",
        "content/content.js"
      ],
      "css": [
        "content/content.css"
      ],
      "run_at": "document_idle",
      "all_frames": true
    }
  ],
  "action": {
    "default_popup": "popup/popup.html",
    "default_title": "Sahi",
    "default_icon": {
      "16": "icons/16.png",
      "48": "icons/48.png",
      "128": "icons/128.png"
    }
  },
  "options_page": "options/options.html",
  "icons": {
    "16": "icons/16.png",
    "48": "icons/48.png",
    "128": "icons/128.png"
  },
  "storage": {
    "managed_schema": "managed-schema.json"
  }
}
