"""
Phoenix Ai desktop shell (later): pywebview + Nuitka.

Do NOT ship PHP or BROKER_API_KEY inside the exe. Load the hosted
Phoenix Ai webapp so the broker secret stays on your server.

  pip install pywebview
  python desktop/app.py
"""
import os
import webview

URL = os.environ.get("PHOENIX_URL") or os.environ.get("FINORIX_URL", "http://127.0.0.1:8787")

if __name__ == "__main__":
    webview.create_window("Phoenix Ai", URL, width=1280, height=800)
    webview.start()
