mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
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.
24 lines
362 B
Python
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)
|