chore: import deployable mai-bot source tree

This commit is contained in:
2026-05-11 00:51:12 +00:00
parent 4813699b3e
commit 7a54015f94
1009 changed files with 312999 additions and 16 deletions

View File

@@ -0,0 +1,25 @@
from __future__ import annotations
import asyncio
import sys
from pathlib import Path
PROJECT_ROOT = Path(__file__).resolve().parents[1]
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
from src.A_memorix.host_service import a_memorix_host_service
from src.webui.webui_server import get_webui_server
async def main() -> None:
server = get_webui_server()
await a_memorix_host_service.start()
try:
await server.start()
finally:
await a_memorix_host_service.stop()
if __name__ == "__main__":
asyncio.run(main())