mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
- Add Rust orchestrator with async bootstrap pattern - Implement CLI with clap (start, stats, health subcommands) - Add protocol stubs (LSP, MCP, ACP, ABP) - Python bindings via pyo3 (_core module) - Use maturin as build backend - Add tombi.toml for schema config
19 lines
375 B
Python
19 lines
375 B
Python
import sys
|
|
|
|
try:
|
|
from ._core import cli as _cli
|
|
|
|
def cli():
|
|
if len(sys.argv) == 1:
|
|
sys.argv.append("--help")
|
|
return _cli()
|
|
except ImportError:
|
|
from click import echo
|
|
|
|
def cli():
|
|
echo("""
|
|
AstrBot CLI(rust) is not available.
|
|
Developer: maturin dev
|
|
User: uv run astrbot-rs
|
|
""")
|