File size: 859 Bytes
ba08c51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""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))