#!/usr/bin/env python3
"""Minimal HTTP server for poc.html (port 8080)."""
import http.server, socketserver, os, sys

os.chdir(os.path.dirname(os.path.abspath(__file__)))
PORT = int(sys.argv[1]) if len(sys.argv) > 1 else 8080

class Quiet(http.server.SimpleHTTPRequestHandler):
    def log_message(self, *a): pass

socketserver.TCPServer.allow_reuse_address = True
with socketserver.TCPServer(("127.0.0.1", PORT), Quiet) as httpd:
    print(f"[server] serving on http://127.0.0.1:{PORT}/", flush=True)
    httpd.serve_forever()
