mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
- Added Peer class for managing peer-to-peer communication, including initialization, invocation, and cancellation of requests. - Introduced Transport abstract base class with StdioTransport and WebSocketTransport implementations for message handling. - Created Star class for error handling in event-driven architecture. - Developed MemoryTransport for testing purposes, allowing in-memory communication between peers. - Implemented unit tests for Peer functionality, protocol message parsing, and runtime integration with plugins. - Established entry point tests to ensure package import and command-line interface functionality.
32 lines
645 B
TOML
32 lines
645 B
TOML
[build-system]
|
|
requires = ["setuptools>=80", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "astrbot-sdk"
|
|
version = "0.1.0"
|
|
description = "Add your description here"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"aiohttp>=3.13.2",
|
|
"anthropic>=0.72.1",
|
|
"certifi>=2025.10.5",
|
|
"click>=8.3.0",
|
|
"docstring-parser>=0.17.0",
|
|
"google-genai>=1.50.0",
|
|
"loguru>=0.7.3",
|
|
"openai>=2.7.2",
|
|
"pydantic>=2.12.3",
|
|
"pyyaml>=6.0.3",
|
|
]
|
|
|
|
[project.scripts]
|
|
astr = "astrbot_sdk.cli:cli"
|
|
|
|
[tool.setuptools]
|
|
package-dir = {"" = "src-new"}
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src-new"]
|