{
  "manifest_version": 3,
  "name": "Hanzi Browse",
  "version": "2.3.3",
  "description": "LLM-agnostic browser automation assistant",

  "icons": {
    "16": "icons/icon-16.png",
    "32": "icons/icon-32.png",
    "48": "icons/icon-48.png",
    "128": "icons/icon-128.png"
  },

  "permissions": [
    "activeTab",
    "scripting",
    "storage",
    "debugger",
    "tabs",
    "tabGroups",
    "sidePanel",
    "downloads",
    "identity",
    "nativeMessaging",
    "alarms"
  ],

  "host_permissions": [
    "<all_urls>"
  ],

  "action": {
    "default_title": "Hanzi Browse",
    "default_icon": {
      "16": "icons/icon-16.png",
      "32": "icons/icon-32.png",
      "48": "icons/icon-48.png"
    }
  },

  "side_panel": {
    "default_path": "dist/sidepanel.html"
  },

  "background": {
    "service_worker": "src/background/service-worker.js",
    "type": "module"
  },

  "content_scripts": [
    {
      "matches": ["<all_urls>"],
      "js": [
        "src/content/accessibility-tree.js"
      ],
      "run_at": "document_start",
      "all_frames": true
    },
    {
      "matches": ["<all_urls>"],
      "js": [
        "src/content/content.js",
        "src/content/agent-visual-indicator.js"
      ],
      "run_at": "document_end",
      "all_frames": false
    }
  ]
}
