{
  "manifest_version": 3,
  "name": "Sunix V2",
  "version": "2.1.1",
  "description": "Painel inteligente com Créditos Ilimitados para Lovable.",
  "author": "Oliberto Aguiar",
  "permissions": [
    "storage",
    "activeTab",
    "scripting",
    "unlimitedStorage",
    "alarms",
    "downloads",
    "notifications"
  ],
  "host_permissions": [
    "https://lovable.dev/*",
    "https://api.lovable.dev/*",
    "https://*.lovable.dev/*",
    "https://*.trycloudflare.com/*",
    "https://*.supabase.co/*",
    "https://api.mistral.ai/*",
    "https://sunix.network/*",
    "https://sunix.app/*",
    "https://sunix.network/*",
    "https://app-sunix.lovable.app/*"
  ],
  "action": {
    "default_icon": {
      "16": "assets/icons/icon16.png",
      "32": "assets/icons/icon32.png",
      "48": "assets/icons/icon48.png",
      "128": "assets/icons/icon128.png"
    }
  },
  "background": {
    "service_worker": "core/background.js"
  },
  "content_scripts": [
    {
      "matches": [
        "https://lovable.dev/projects/*"
      ],
      "js": [
        "core/skill-engine.js",
        "security/detective.js"
      ],
      "run_at": "document_start",
      "world": "MAIN",
      "all_frames": true
    },
    {
      "matches": [
        "https://lovable.dev/projects/*"
      ],
      "js": [
        "security/anti-inspect.js",
        "core/config.js",
        "core/skill-engine.js",
        "cloud/cloud.js",
        "cloud/account.js",
        "cloud/client-recharge.js",
        "content/content.js",
        "content/chat-overlay.js"
      ],
      "css": [
        "content/sidebar.css"
      ],
      "run_at": "document_start",
      "all_frames": true
    }
  ],
  "icons": {
    "16": "assets/icons/icon16.png",
    "32": "assets/icons/icon32.png",
    "48": "assets/icons/icon48.png",
    "128": "assets/icons/icon128.png"
  },
  "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: blob:; connect-src 'self' https://lovable.dev https://*.lovable.dev https://api.lovable.dev https://*.supabase.co https://api.mistral.ai https://sunix.network https://sunix.app https://sunix.network https://app-sunix.lovable.app"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "assets/icons/*.png",
        "popup/popup.html",
        "popup/popup.css",
        "popup/popup.js",
        "core/config.js",
        "core/skill-engine.js",
        "security/detective.js",
        "cloud/cloud.js",
        "cloud/account.js",
        "cloud/client-recharge.js",
        "content/chat-overlay.js",
        "security/anti-inspect.js"
      ],
      "matches": [
        "https://lovable.dev/*",
        "https://*.lovable.dev/*"
      ]
    }
  ]
}