// Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyleft: this program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Hermes Browser Agent Content Script — no-op placeholder
// Main functionality lives in background.js routing to native host
// This file ensures content context is available when needed

window.HermesAgent = {
    pageInfo: () => ({
        title: document.title,
        url: window.location.href,
        html: document.documentElement.outerHTML.slice(0, 10000)
    }),
    evalJS: (code) => { try { return eval(code); } catch(e) { return e.message; } },
    click: (selector) => { el=document.querySelector(selector); if(el){el.click();return true};return false; },
    scroll: (x,y) => { window.scrollTo(x,y); return true; }
};
