Terminal / index.html
GitHub Action
sync: backend da GitHub 2026-05-18T11:59:53Z
e6fbc88
Raw
History Blame Contribute Delete
3.37 kB
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<title>Agente AI Pro</title>
<meta name="description" content="Agente AI — assistente intelligente con strumenti autonomi: ricerca web, meteo, notizie, codice, memoria e molto altro." />
<meta name="theme-color" content="#0f0f1a" />
<meta property="og:title" content="Agente AI Pro" />
<meta property="og:description" content="Assistente AI autonomo con 14 strumenti integrati" />
<meta property="og:type" content="website" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="description" content="Agente AI — assistente autonomo con web search, memoria, esecuzione codice e più provider AI." />
<meta name="theme-color" content="#0f0f1a" />
<meta property="og:title" content="Agente AI" />
<meta property="og:description" content="AI agent autonomo con web search, memoria e multi-AI Pro Mode." />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Agente AI" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<!--
Register the COI Service Worker so that SharedArrayBuffer is available
on GitHub Pages (which doesn't allow custom COOP/COEP headers).
Required for WebLLM / WebGPU to work in-browser.
-->
<script>
if ("serviceWorker" in navigator) {
// Handle both root domain and subfolder (GitHub Pages)
const isGH = window.location.hostname.includes("github.io");
const pathParts = window.location.pathname.split("/").filter(Boolean);
const base = (isGH && pathParts.length > 0) ? "/" + pathParts[0] : "";
navigator.serviceWorker
.register(swPath)
.then(function (reg) {
// If the page is not yet cross-origin-isolated, reload once
// so the service worker can add the necessary headers.
if (!window.crossOriginIsolated) {
if (sessionStorage.getItem("__coi_reloaded__") === "1") {
console.warn("[COI] Already reloaded once; giving up to avoid loop. WebLLM disabled.");
} else {
sessionStorage.setItem("__coi_reloaded__", "1");
console.log("[COI] Reloading for cross-origin isolation…");
window.location.reload();
}
} else {
sessionStorage.removeItem("__coi_reloaded__");
console.log("[COI] crossOriginIsolated =", window.crossOriginIsolated);
}
})
.catch(function (err) {
console.warn("[COI] Service worker registration failed:", err);
});
}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>