Menu
akurai-tasks
publicLatest change c5be5e616090ae3f9ae037e3702c07f72dc783f3 - chore: establish AkurAI Tasks planning baseline by Ólafur Búi Ólafsson
// Native ES module — served as-is, with no bundler or runtime dependency.
const statusEl = document.getElementById("health");
async function checkHealth() {
if (!statusEl) return;
try {
const response = await fetch("/api/health", {
headers: { accept: "application/json" },
});
if (!response.ok) throw new Error(`status ${response.status}`);
const health = await response.json();
const version = health.version ? ` v${health.version}` : "";
statusEl.textContent = `${health.framework || "AkurAI-Framework"}${version} ready`;
statusEl.classList.add("ok");
} catch {
statusEl.textContent = "Planning site ready · service implementation pending";
}
}
checkHealth();