{
  "manifest_version": 3,
  "name": "Pi Browser Bridge",
  "version": "0.1.0",
  "description": "Connects your daily Chrome to the pi-maestro-flow agent so the browser tool can drive your real tabs (login state, CAPTCHA, fingerprint) over WebSocket.",
  "permissions": [
    "cookies",
    "tabs",
    "activeTab",
    "debugger",
    "scripting",
    "alarms",
    "declarativeNetRequest",
    "management",
    "contentSettings",
    "storage"
  ],
  "host_permissions": ["<all_urls>"],
  "background": {
    "service_worker": "background.js"
  },
  "content_scripts": [
    {
      "matches": ["<all_urls>"],
      "js": ["disable_dialogs.js"],
      "run_at": "document_start",
      "all_frames": true,
      "world": "MAIN"
    },
    {
      "matches": ["<all_urls>"],
      "js": ["content.js"],
      "run_at": "document_idle",
      "all_frames": true
    }
  ],
  "action": {
    "default_popup": "popup.html",
    "default_title": "Pi Browser Bridge"
  }
}
