astrbot_proactive_core
AstrBot 主动消息插件的共享核心库。
这个仓库只放稳定、可复用、跨插件共享的底层能力,不绑定 QQ、Discord、Telegram,也不直接依赖 yurisa-Hermes。
当前 v0 能力:
- SQLite 持久化任务队列。
- 全局并发、按任务类型并发、按会话串行处理。
- 任务状态和投递状态分离。
- 对外安全的失败码和错误脱敏工具。
设计边界:
- 插件只能通过公开 facade 使用队列。
- storage、worker、payload 细节先保持内部实现。
- 后续
astrbot_plugin_proactive_chat、TTS/STT 插件和其他主动行为插件都可以复用这里的协议。
安装
本地开发:
cd /path/to/astrbot_proactive_core
uv sync --extra dev
uv run python scripts/smoke_check.py
uv run --extra dev pytest -q
uv run --extra dev ruff check .
作为依赖安装:
pip install 'astrbot-proactive-core>=0.1.0,<0.2.0'
如果还没有发布到 PyPI,可以先用 Git URL 或本地路径安装,再安装依赖它的 AstrBot 插件。
公共 API
当前对外稳定 API:
SQLiteQueueJobStateDeliveryStateJobRecordsafe_failure_coderedact_public_detail
SQLiteQueue.status_counts() 可用于管理命令或 WebUI 展示队列状态。
Metadata
Release files for astrbot-proactive-core 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astrbot_proactive_core-0.1.0.tar.gz | 11.2 kB | Without provenance | Details for astrbot_proactive_core-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astrbot_proactive_core-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for astrbot_proactive_core-0.1.0-py3-none-any.whl |
Total release size: 17.6 kB
Release files / astrbot_proactive_core-0.1.0.tar.gz
| Download URL | astrbot_proactive_core-0.1.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
076e6db10434ff678f684cce8afa3204654ebd736f9903af8f06b023eb3320a4
|
|
BLAKE2b-256 checksum How to use checksums |
d96086252d93b335faed66a78f74d333e1ae9fcbcda4575d93e115933465a986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / astrbot_proactive_core-0.1.0-py3-none-any.whl
| Download URL | astrbot_proactive_core-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
850d2a5c386330dd5f0ff49363b9c16db94cca775903669551cd0cf55e307228
|
|
BLAKE2b-256 checksum How to use checksums |
7ea1253e479a6d47ddc0bee11973f167c29bde36fd7d0ebf7a12c93f9c8c441f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for astrbot-proactive-core 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.