"""Hugging Face Space: zero-auth agent primitives (links + live checks).""" import json from urllib.request import urlopen, Request API = "https://api.aeon.site" MCP = "https://mcp.aeon.site/mcp" DOCS = "https://docs.aeon.site" LINKS = [ ("Message store + code extract", f"{API}/api/v1/inbox/agent1/latest_otp"), ("Notes / state", f"{API}/api/v1/state/task-1"), ("Webhook drop box", f"{API}/api/v1/hook/job-1"), ("Wake-up scheduler", f"{API}/api/v1/schedule"), ("Page as text", f"{API}/api/v1/render?url=https://example.com"), ("MCP tools", MCP), ("llms.txt", f"{DOCS}/llms.txt"), ] def health(): try: return urlopen(API + "/healthz", timeout=8).read().decode() except Exception as e: return f"error: {e}" if __name__ == "__main__": print(json.dumps({"links": LINKS, "health": health()}, indent=2))