Upload server.py
Browse files12345678910111213145 unmodified lines202122232425262 unmodified lines293031323334351 unmodified line3738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411422 unmodified lines1451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831844 unmodified lines1891901911921931941952 unmodified lines19819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722820 unmodified lines24925025125225325425597 unmodified lines3533543553563573583598 unmodified lines36836937037137237337420 unmodified lines3953963973983994004013 unmodified lines4054064074084094104114124134144154164172 unmodified lines4204214224234244254264274284294304314324334342 unmodified lines437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466"""βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ OMNI-VIBE STUDIO β INSTANT WAKE Server ββ ββ PHASE 1 (<1ms): Bind 0.0.0.0:7860, serve 200 OK ββ health + loading HTML immediately. ββ PHASE 2 (bg): Lazy-import OmniVibeEngine, ββ PoseArchitect, PosePainter, ββ PoseAuditor, ReflectSelect. ββ ββ v3.2: E2E Handshake endpoint for litheat.app βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"""5 unmodified linesPORT = int(os.environ.get("WIZARD_PORT", 7860))STATIC = Path(__file__).parent / "static"CANONICAL_REPO = "dryymatt/Wizard-Vibe-Studio"WIZARD_HAT_COLOR = "steady-gold"# βββ Engine refs β lazy-loaded in Phase 2 βββ_engine = None2 unmodified lines_engine_loaded = False# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ# PHASE 1: Instant HTML β served before any imports# ββββββββββββββββββββββββββββββββββββββββββββββββββββββLOADING_HTML = """<!DOCTYPE html>1 unmodified line<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1.0"><title>Omni-Vibe Studio</title><style>:root{--glass-bg:rgba(255,255,255,.03);--glass-border:rgba(255,255,255,.06);--purple:#8B5CF6;--cyan:#06B6D4;--green:#10B981;--gold:#F59E0B;--text:#e0e0ff;--text2:#9090b0;--text3:#606080;--bg1:#0a0a1a;--bg2:#1a0a2e;--radius:24px;--font:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font);background:linear-gradient(135deg,var(--bg1),var(--bg2),#0a1a2e);color:var(--text);min-height:100vh;display:flex;align-items:center;justify-content:center;-webkit-font-smoothing:antialiased;}::selection{background:rgba(139,92,246,.5);color:#fff}.glass{background:var(--glass-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);border-radius:var(--radius);padding:3rem 4rem;text-align:center;animation:fadeIn .6s ease-out;}@keyframes fadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.gradient-text{background:linear-gradient(135deg,var(--purple),var(--cyan),var(--green));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}h1{font-size:clamp(1.8rem,6vw,2.8rem);font-weight:800;line-height:1.15}.hero-sub{color:var(--text2);font-size:1rem;font-weight:400;margin-top:.4rem}.loading-bar{width:240px;height:3px;background:var(--glass-bg);border-radius:2px;margin:1.5rem auto 0;overflow:hidden;}.loading-bar::after{content:'';display:block;width:40%;height:100%;background:linear-gradient(90deg,var(--purple),var(--cyan),var(--green));border-radius:2px;animation:slide 1.2s ease-in-out infinite;}@keyframes slide{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px}.status-dot.gold{background:var(--gold);box-shadow:0 0 6px var(--gold)}.pulse{animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}.wizard-svg{filter:drop-shadow(0 0 16px rgba(139,92,246,.5));margin-bottom:1.5rem}</style><script>let pollTimer;function checkReady(){fetch('/api/health').then(r=>r.json()).then(d=>{if(d.engine_loaded){clearInterval(pollTimer);location.reload();}}).catch(()=>{});}pollTimer=setInterval(checkReady,500);document.addEventListener('DOMContentLoaded',()=>{document.getElementById('status-text').textContent='Waking the Athanor\u2026';});</script></head><body><div class="glass"><svg class="wizard-svg" width="48" height="48" viewBox="0 0 64 64"><defs><linearGradient id="hg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:#8B5CF6"><animate attributeName="stop-color" values="#8B5CF6;#06B6D4;#10B981;#8B5CF6" dur="6s" repeatCount="indefinite"/></stop><stop offset="50%" style="stop-color:#06B6D4"><animate attributeName="stop-color" values="#06B6D4;#10B981;#8B5CF6;#06B6D4" dur="6s" repeatCount="indefinite"/></stop><stop offset="100%" style="stop-color:#10B981"><animate attributeName="stop-color" values="#10B981;#8B5CF6;#06B6D4;#10B981" dur="6s" repeatCount="indefinite"/></stop></linearGradient></defs><path d="M32 8 L8 48 L32 40 L56 48 Z" fill="url(#hg)" stroke="rgba(255,255,255,.3)" stroke-width="1.2"><animateTransform attributeName="transform" type="rotate" values="0 32 28;2 32 28;-1 32 28;0 32 28" dur="6s" repeatCount="indefinite"/></path><ellipse cx="32" cy="48" rx="26" ry="7" fill="none" stroke="url(#hg)" stroke-width="2" opacity=".6"><animate attributeName="rx" values="26;28;26" dur="3s" repeatCount="indefinite"/></ellipse></svg><h1 class="gradient-text">Build anything.</h1><p class="hero-sub">Simple. Beautiful. Easy to use.</p><div class="loading-bar"></div><p style="font-size:.85rem;color:var(--text3);margin-top:1rem"><span class="status-dot gold pulse"></span><span id="status-text">Initializing LiteRT engine\u2026</span></p><p style="font-size:.7rem;color:var(--text3);margin-top:1.5rem">0.0.0.0:7860 \u00b7 Steady Gold</p></div></body></html>"""# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ# PHASE 1 HANDLERS β respond immediately, no imports# ββββββββββββββββββββββββββββββββββββββββββββββββββββββasync def handle_root_get(req):"""GET / β loading HTML if engine not ready, else full Liquid Glass."""if _engine_loaded:fp = STATIC / "index.html"if fp.exists():2 unmodified linesasync def handle_health(req):"""GET /api/health β 200 OK pulse. First byte on wire in <1ms."""return web.json_response({"status": "alive","engine": "Omni-Vibe Studio β Specialized Swarm","engine_loaded": _engine_loaded,"binding": "0.0.0.0:7860","port": PORT,"hat": WIZARD_HAT_COLOR,"hf_token": bool(os.environ.get("HF_TOKEN")),})async def handle_agent(req):"""A2A agent card β static, no imports needed."""return web.json_response({"name": "omni-vibe-studio","description": "Omni-Vibe Studio β Specialized AI Swarm. 0.0.0.0:7860. LiteRT engine. Build anything. Simple. Beautiful. Easy to use.","url": "https://dryymatt-wizard-vibe-studio-v2.hf.space","provider": {"organization": "Omni-Vibe Studio β Litehat System","url": "https://huggingface.co/dryymatt"},"version": "3.2.0","capabilities": {"streaming": True, "ghostDeploy": True, "liquidGlass": True, "tabbedInterface": True, "e2eHandshake": True},})# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ# E2E HANDSHAKE VERIFICATION# ββββββββββββββββββββββββββββββββββββββββββββββββββββββasync def handle_verify_handshake(req):"""POST /api/verify-handshakeVerifies that the target server (litheat.app / deployed Space) is reachable.Body: {"url": "litheat.app" or "https://deployed-space.hf.space"}"""try:data = await req.json()4 unmodified linesif not target:return web.json_response({"verified": False, "error": "No URL provided"}, status=400)# Normalize URLif not target.startswith("http"):target = f"https://{target}"2 unmodified lines# Check 1: DNS resolutionimport sockett0 = time.time()try:host = target.replace("https://", "").replace("http://", "").split("/")[0]socket.getaddrinfo(host, 443 if target.startswith("https") else 80)results["checks"]["dns"] = Trueexcept Exception as e:results["checks"]["dns"] = Falseresults["error"] = f"DNS resolution failed: {str(e)}"return web.json_response(results, status=200)# Check 2: HTTP reachabilitytry:import urllib.requestreq = urllib.request.Request(target, headers={"User-Agent": "Omni-Vibe-Handshake/3.2"})resp = urllib.request.urlopen(req, timeout=10)latency = round((time.time() - t0) * 1000)results["latency_ms"] = latencyresults["checks"]["http"] = Trueresults["checks"]["status_code"] = resp.getcode()if 200 <= resp.getcode() < 500:results["verified"] = Trueelse:results["error"] = f"HTTP {resp.getcode()}"except Exception as e:results["checks"]["http"] = Falseresults["error"] = f"HTTP check failed: {str(e)[:120]}"return web.json_response(results)20 unmodified lines_ghost = g_reflect = st.reflect_engine_loaded = Trueprint("β‘ Omni-Vibe Engine: LAZY-LOADED")from core import state as streturn st, _ghost97 unmodified linescode = st.codes.get(sid,"")if not code: return web.json_response({"success":False,"error":"No code"}, status=400)description = d.get("description", st.sessions.get(sid,{}).get("prompt",""))result = await ghost.publish(code, d.get("vibe_name",f"omni-vibe-{sid}"),description[:200] if description else "", port=PORT)if result.get("success"):st.sessions[sid]["published"] = True8 unmodified liness = st.sessions[sid]return web.json_response({"status":s["status"],"sandbox":st.sandbox.get(sid),"ready":st.publish_ready.get(sid),"deploy_url":s.get("deploy_url")})return web.json_response({"sessions":len(st.sessions),"engine":"omni-vibe","hat":WIZARD_HAT_COLOR})async def handle_vibes(req):20 unmodified linesasync def handle_preview(req):st, _ = _get_engine()sid = req.query.get("session_id", "")return web.Response(text=st.codes.get(sid,"<!-- Omni-Vibe -->"), content_type="text/html")# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ3 unmodified linesdef create_app():app = web.Application()# Phase 1 routes (available immediately, no engine needed)app.router.add_get("/", handle_root_get)app.router.add_get("/api/health", handle_health)app.router.add_get("/.well-known/agent.json", handle_agent)app.router.add_post("/api/verify-handshake", handle_verify_handshake)# Phase 2 routes (lazy-load engine on first call)app.router.add_post("/api/stream", handle_stream)app.router.add_post("/api/publish", handle_publish)app.router.add_get("/api/status", handle_status)2 unmodified linesapp.router.add_get("/api/tunnel", handle_tunnel)app.router.add_get("/api/schema", handle_schema)# Static catch-allapp.router.add_get("/{path:.*}", handle_static)return app# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ# MAIN β bind IMMEDIATELY, then lazy-load engine# ββββββββββββββββββββββββββββββββββββββββββββββββββββββdef main():import subprocesstry:2 unmodified linescapture_output=True, timeout=5)if result.returncode == 0:print(f"πͺ Killed ghost process on port {PORT}")except Exception:passprint(f"π§ββοΈ Omni-Vibe Studio v3.2 β INSTANT WAKE + E2E Handshake")print(f" Binding : 0.0.0.0:{PORT}")print(f" Health pulse : 200 OK in <1ms")print(f" Loading HTML : served before engine import")print(f" Registry : {CANONICAL_REPO}")print(f" Hat : {WIZARD_HAT_COLOR}")print(f" Handshake : /api/verify-handshake")loop = asyncio.new_event_loop()asyncio.set_event_loop(loop)async def warm_start():await asyncio.sleep(0.5)print("β‘ Warm Start: loading OmniVibeEngineβ¦")try:st, ghost = _get_engine()print(f"β‘ Engine loaded: {_engine_loaded}")print(f" Poses: Architect, Painter, Auditor β all active")except Exception as e:print(f"β Engine load warning (non-fatal): {e}")loop.create_task(warm_start())123456789101112135 unmodified lines1920212223242 unmodified lines272829303132331 unmodified line35363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201212 unmodified lines1241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601614 unmodified lines1661671681691701712 unmodified lines17417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520 unmodified lines22622722822923023123297 unmodified lines3303313323333343353368 unmodified lines34534634734834935035120 unmodified lines3723733743753763773783 unmodified lines3823833843853863873883893903913923933942 unmodified lines3973983994004014024034044054062 unmodified lines409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438"""βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ OBSIDIAN FORGE β Kinetic RLM Server ββ ββ PHASE 1 (<1ms): Bind 0.0.0.0:7860, serve 200 OK ββ PHASE 2 (bg): Lazy-import OmniVibeEngine, ββ PoseArchitect, PosePainter, ββ PoseAuditor, ReflectSelect. ββ ββ v4.0: Obsidian Forge β Absolute Black Β· RLM Core βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"""5 unmodified linesPORT = int(os.environ.get("WIZARD_PORT", 7860))STATIC = Path(__file__).parent / "static"CANONICAL_REPO = "dryymatt/Wizard-Vibe-Studio"# βββ Engine refs β lazy-loaded in Phase 2 βββ_engine = None2 unmodified lines_engine_loaded = False# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ# PHASE 1: Instant HTML β absolute black loading page# ββββββββββββββββββββββββββββββββββββββββββββββββββββββLOADING_HTML = """<!DOCTYPE html>1 unmodified line<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1.0"><title>Obsidian Forge</title><style>:root{--void:#000;--purple:#8B5CF6;--cyan:#06B6D4;--green:#10B981;--gold:#F59E0B;--text:#e0e0e0;--text2:#8888a0;--text3:#555570;--font:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font);background:var(--void);color:var(--text);min-height:100vh;display:flex;align-items:center;justify-content:center;-webkit-font-smoothing:antialiased;}::selection{background:rgba(139,92,246,.4);color:#fff}.forge-glass{background:rgba(255,255,255,.015);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:3rem 4rem;text-align:center;animation:fadeIn .5s ease-out;}@keyframes fadeIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.gradient-text{background:linear-gradient(135deg,#A78BFA,#22D3EE,#34D399);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}h1{font-size:clamp(1.6rem,5vw,2.2rem);font-weight:800;line-height:1.1}.loading-pulse{width:180px;height:1.5px;background:rgba(255,255,255,.04);border-radius:1px;margin:1.5rem auto 0;overflow:hidden;}.loading-pulse::after{content:'';display:block;width:35%;height:100%;background:linear-gradient(90deg,var(--purple),var(--cyan),var(--green));border-radius:1px;animation:slide .9s ease-in-out infinite;}@keyframes slide{0%{transform:translateX(-100%)}100%{transform:translateX(380%)}}.status-dot{display:inline-block;width:4px;height:4px;border-radius:50%;margin-right:5px}.status-dot.gold{background:var(--gold);box-shadow:0 0 4px var(--gold)}.pulse{animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}.wiz-svg{filter:drop-shadow(0 0 10px rgba(139,92,246,.3));margin-bottom:1.5rem}</style><script>let pollTimer;function checkReady(){fetch('/api/health').then(r=>r.json()).then(d=>{if(d.engine_loaded){clearInterval(pollTimer);location.reload();}}).catch(()=>{});}pollTimer=setInterval(checkReady,500);</script></head><body><div class="forge-glass"><svg class="wiz-svg" width="44" height="44" viewBox="0 0 64 64"><defs><linearGradient id="hg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#8B5CF6"><animate attributeName="stop-color" values="#8B5CF6;#06B6D4;#10B981;#8B5CF6" dur="6s" repeatCount="indefinite"/></stop><stop offset="50%" stop-color="#06B6D4"><animate attributeName="stop-color" values="#06B6D4;#10B981;#8B5CF6;#06B6D4" dur="6s" repeatCount="indefinite"/></stop><stop offset="100%" stop-color="#10B981"><animate attributeName="stop-color" values="#10B981;#8B5CF6;#06B6D4;#10B981" dur="6s" repeatCount="indefinite"/></stop></linearGradient></defs><path d="M32 8 L8 48 L32 40 L56 48 Z" fill="url(#hg)" stroke="rgba(255,255,255,.15)" stroke-width="1"/><ellipse cx="32" cy="48" rx="26" ry="7" fill="none" stroke="url(#hg)" stroke-width="1.5" opacity=".4"/></svg><h1 class="gradient-text">Build anything.</h1><div class="loading-pulse"></div><p style="font-size:.8rem;color:var(--text3);margin-top:1rem"><span class="status-dot gold pulse"></span><span id="status-text">Obsidian Forge initializingβ¦</span></p><p style="font-size:.65rem;color:var(--text3);margin-top:1.5rem">0.0.0.0:7860 Β· RLM Core</p></div></body></html>"""# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ# PHASE 1 HANDLERS# ββββββββββββββββββββββββββββββββββββββββββββββββββββββasync def handle_root_get(req):if _engine_loaded:fp = STATIC / "index.html"if fp.exists():2 unmodified linesasync def handle_health(req):return web.json_response({"status": "alive","engine": "Obsidian Forge β Kinetic RLM Environment","engine_loaded": _engine_loaded,"binding": "0.0.0.0:7860","port": PORT,"hf_token": bool(os.environ.get("HF_TOKEN")),})async def handle_agent(req):return web.json_response({"name": "obsidian-forge","description": "Obsidian Forge β Kinetic RLM Environment. Build anything. Recursive Language Modeling core with Context Folding and Quantum Sandbox.","url": "https://dryymatt-obsidian-forge.hf.space","provider": {"organization": "Obsidian Forge β Litehat System","url": "https://huggingface.co/dryymatt"},"version": "4.0.0","capabilities": {"streaming": True, "ghostDeploy": True, "rlm": True, "contextFolding": True, "quantumSandbox": True, "silentHandshake": True},})# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ# E2E HANDSHAKE β enhanced for Obsidian Forge# ββββββββββββββββββββββββββββββββββββββββββββββββββββββasync def handle_verify_handshake(req):"""POST /api/verify-handshakeSilent DNS + HTTP verification for litheat.app and deployed Spaces.Body: {"url": "litheat.app" or "https://deployed-space.hf.space"}Returns verification status, latency, and detailed checks."""try:data = await req.json()4 unmodified linesif not target:return web.json_response({"verified": False, "error": "No URL provided"}, status=400)if not target.startswith("http"):target = f"https://{target}"2 unmodified lines# Check 1: DNS resolutionimport sockett0 = time.time()host = target.replace("https://", "").replace("http://", "").split("/")[0]try:socket.getaddrinfo(host, 443 if target.startswith("https") else 80)results["checks"]["dns"] = Trueexcept Exception as e:results["checks"]["dns"] = Falseresults["error"] = f"DNS: {str(e)[:80]}"return web.json_response(results, status=200)# Check 2: HTTP reachabilityimport urllib.requesttry:req = urllib.request.Request(target, headers={"User-Agent": "Obsidian-Forge-Handshake/4.0"})resp = urllib.request.urlopen(req, timeout=8)latency = round((time.time() - t0) * 1000)results["latency_ms"] = latencyresults["checks"]["http"] = Trueresults["checks"]["status_code"] = resp.getcode()# Accept 200-499 (some sites return 301/302/401 β still reachable)if 200 <= resp.getcode() < 500:results["verified"] = Trueelse:results["error"] = f"HTTP {resp.getcode()}"except Exception as e:results["checks"]["http"] = Falseresults["error"] = f"HTTP: {str(e)[:120]}"return web.json_response(results)20 unmodified lines_ghost = g_reflect = st.reflect_engine_loaded = Trueprint("β Obsidian Forge: RLM Engine LAZY-LOADED")from core import state as streturn st, _ghost97 unmodified linescode = st.codes.get(sid,"")if not code: return web.json_response({"success":False,"error":"No code"}, status=400)description = d.get("description", st.sessions.get(sid,{}).get("prompt",""))result = await ghost.publish(code, d.get("vibe_name",f"obsidian-{sid}"),description[:200] if description else "", port=PORT)if result.get("success"):st.sessions[sid]["published"] = True8 unmodified liness = st.sessions[sid]return web.json_response({"status":s["status"],"sandbox":st.sandbox.get(sid),"ready":st.publish_ready.get(sid),"deploy_url":s.get("deploy_url")})return web.json_response({"sessions":len(st.sessions),"engine":"obsidian-forge-rlm"})async def handle_vibes(req):20 unmodified linesasync def handle_preview(req):st, _ = _get_engine()sid = req.query.get("session_id", "")return web.Response(text=st.codes.get(sid,"<!-- Obsidian Forge -->"), content_type="text/html")# ββββββββββββββββββββββββββββββββββββββββββββββββββββββ3 unmodified linesdef create_app():app = web.Application()# Phase 1 routesapp.router.add_get("/", handle_root_get)app.router.add_get("/api/health", handle_health)app.router.add_get("/.well-known/agent.json", handle_agent)app.router.add_post("/api/verify-handshake", handle_verify_handshake)# Phase 2 routesapp.router.add_post("/api/stream", handle_stream)app.router.add_post("/api/publish", handle_publish)app.router.add_get("/api/status", handle_status)2 unmodified linesapp.router.add_get("/api/tunnel", handle_tunnel)app.router.add_get("/api/schema", handle_schema)app.router.add_get("/{path:.*}", handle_static)return appdef main():import subprocesstry:2 unmodified linescapture_output=True, timeout=5)if result.returncode == 0:print(f"β Killed ghost on port {PORT}")except Exception:passprint(f"β Obsidian Forge v4.0 β Kinetic RLM Environment")print(f" Binding : 0.0.0.0:{PORT}")print(f" Health pulse : 200 OK in <1ms")print(f" Loading HTML : absolute black Β· 1px glass")print(f" Registry : {CANONICAL_REPO}")print(f" RLM Core : Recursive Language Modeling")print(f" Handshake : silent DNS + poll-until-live")loop = asyncio.new_event_loop()asyncio.set_event_loop(loop)async def warm_start():await asyncio.sleep(0.5)print("β Warm Start: loading RLM engineβ¦")try:st, ghost = _get_engine()print(f"β RLM Engine: loaded ({_engine_loaded})")print(f" Poses: Architect, Painter, Auditor β synchronized")except Exception as e:print(f"β Engine warning (non-fatal): {e}")loop.create_task(warm_start())
server.py+74-102