# app.py — CodexMesh Reflex Node API from fastapi import FastAPI from pydantic import BaseModel from agent import run_agent app = FastAPI( title="IBC Runtime — CodexMesh Reflex Node", description="Information-Judged · Belief-Modulated · Capital-Orchestrated Execution", version="1.0.0", ) class IntentRequest(BaseModel): intent: str @app.get("/") def root(): return { "status": "CodexMesh Reflex Node Live", "node": "Node-ZA-01", "endpoints": ["/run", "/health"], "engine": "IBC Runtime · CodexByte VM", } @app.get("/health") def health(): return {"status": "ok"} @app.post("/run") def run(req: IntentRequest): return run_agent(req.intent)