{
  "manifest_version": 3,
  "name": "AI Privacy Firewall",
  "version": "1.0.0",
  "description": "Auto-redacts sensitive data from screenshots and text before pasting into LLM chatbots.",
  "action": {
    "default_popup": "popup.html"
  },
  "options_ui": {
    "page": "index.html",
    "open_in_tab": true
  },
  "background": {
    "service_worker": "src/background.ts",
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": [
        "*://chatgpt.com/*",
        "*://claude.ai/*",
        "*://gemini.google.com/*"
      ],
      "js": ["src/content.ts"],
      "run_at": "document_start"
    }
  ],
  "permissions": [
    "clipboardRead",
    "storage",
    "activeTab",
    "scripting",
    "unlimitedStorage"
  ],
  "web_accessible_resources": [
    {
      "resources": ["models/*", "tesseract/*"],
      "matches": ["*://chatgpt.com/*", "*://claude.ai/*", "*://gemini.google.com/*"]
    }
  ],
  "icons": {
    "16": "icon-192.png",
    "48": "icon-192.png",
    "128": "icon-512.png"
  }
}