Files
AstrBot/astrbot/cli/commands/cmd_dev.py
LIghtJUNction 0f74731c53 feat(runtime): add new internal architecture with protocol clients
Implement the new _internal package structure for AstrBot runtime:
- Add AstrbotOrchestrator with LSP, MCP, ACP, ABP protocol clients
- Add AstrbotGateway server with WebSocket support
- Add comprehensive test suite for runtime module
- Add tools base module for MCP tools

Implements bootstrap function using anyio task groups for
concurrent protocol client initialization.
2026-03-23 21:26:22 +08:00

24 lines
362 B
Python

"""AstrBot Development Mode .
核心运行时测试.
"""
from __future__ import annotations
import sys
import anyio
import click
@click.command()
def dev() -> None:
"""启动开发模式."""
from astrbot._internal.runtime import bootstrap
try:
anyio.run(bootstrap, backend="asyncio")
except KeyboardInterrupt:
sys.exit(0)