-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
32 lines (23 loc) · 831 Bytes
/
Copy pathrun.py
File metadata and controls
32 lines (23 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Monad-Ultron — Main entry point.
Usage:
python run.py # Start Monad (default: launch CLI)
python run.py --help # Show all commands
python run.py start # Start interactive session
python run.py status # Show system status
python run.py doctor # Diagnose environment
python run.py chat # Enter chat mode
"""
from __future__ import annotations
import sys
from pathlib import Path
# Ensure the package is importable when run directly from source
ROOT = Path(__file__).resolve().parent
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
from monad.ui.cli import app # noqa: E402
def main() -> None:
"""Entry point invoked by `python run.py` or the `monad` script."""
app()
if __name__ == "__main__":
main()