app
Codex
Public Made by Adomby adom
Codex in Adom Hydrogen: ecosystem setup, dock dashboard and live engineering demos.
← Commit history
Allow native Hydrogen dock health reads from its app origin
3 files changed
+8−3
adom_codex.py+5@@ -10,6 +10,11 @@ def context(): class Handler(SimpleHTTPRequestHandler): def __init__(self,*a,**kw):super().__init__(*a,directory=str(ROOT),**kw) def log_message(self,*a):pass+ def end_headers(self):+ origin=self.headers.get('Origin')+ if self.command=='GET' and self.path=='/api/status' and origin in {'http://tauri.localhost','https://tauri.localhost','tauri://localhost'}:+ self.send_header('Access-Control-Allow-Origin',origin);self.send_header('Vary','Origin')+ super().end_headers() def json(self,obj,status=200): b=json.dumps(obj).encode();self.send_response(status);self.send_header('Content-Type','application/json');self.send_header('Content-Length',str(len(b)));self.end_headers();self.wfile.write(b) def proxy(self):
package.json+1−1@@ -4,7 +4,7 @@ "type": "app", "title": "Codex", "brief": "Codex in Adom Hydrogen: ecosystem setup, dock dashboard and live engineering demos.",- "version": "0.1.12",+ "version": "0.1.13", "description": "Codex in Adom Hydrogen with reusable CAD routing, electrical review, copper-ablation and narrated video skills, plus verified KiCad and Fusion demo progressions.", "org": "adom", "needs_sudo": false,
page.json+2−2@@ -4,7 +4,7 @@ "type": "app", "title": "Codex", "brief": "Codex in Adom Hydrogen: ecosystem setup, dock dashboard and live engineering demos.",- "version": "0.1.12",+ "version": "0.1.13", "hero": { "type": "image", "path": "screenshots/hero.png"@@ -95,4 +95,4 @@ "videos/04-public-adom-solenoid-full-routing-narrated.mp4", "videos/04-public-adom-solenoid-full-routing.mp4" ]-}+}