Starlette read-only MVP with shared layout, /health JSON liveness, and route stubs for projects, prompts, runtime, audit, worktrees, and leases. Includes scripts/run-webui, docs/webui-local-dev.md, and tests. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
19 lines
386 B
Python
19 lines
386 B
Python
"""Run the internal web UI: ``python -m webui``."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
import uvicorn
|
|
|
|
from webui.app import create_app
|
|
|
|
|
|
def main() -> None:
|
|
host = os.environ.get("WEBUI_HOST", "127.0.0.1")
|
|
port = int(os.environ.get("WEBUI_PORT", "8765"))
|
|
uvicorn.run(create_app(), host=host, port=port, log_level="info")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |