Releases: Cookie-HOO/xiaoai-bridge
Releases · Cookie-HOO/xiaoai-bridge
Release list
v0.2.1
Highlights
- Added
xiaoai-initto scaffold a user project with.env,handler.py, and.gitignore. - Existing generated files are skipped by default; use
xiaoai-init --forceto overwrite them. - Updated English and Chinese READMEs to recommend the init workflow while keeping manual Xiaomi
userId/passTokencopy instructions. - Added tests for project initialization.
Recommended setup
mkdir my-xiaoai-bot
cd my-xiaoai-bot
uv init
uv add xiaoai-bridge
xiaoai-init
# Fill MI_XIAOMI_USER_ID and MI_XIAOMI_PASS_TOKEN in .env
xiaoai-check-login
xiaoai-select
xiaoai-bridgeRemoved from this release
xiaoai-loginis not included.- No browser-cookie reading dependency is included.
Verification
uv run ruff check .uv run pytestuv build
v0.2.0
Highlights
- Package-oriented usage for PyPI installs.
- External handler loading via
MI_HANDLERorxiaoai-bridge --handler. - Support for
module:callable,./file.py:callable, absolute file paths, and default:handlercallable names. - Added Chinese README:
README.zh-CN.md. - Added PyPI Trusted Publishing workflow for the
pypienvironment. - Added tests for handler loading and handler invocation behavior.
Verification
uv run ruff check .uv run pytest
v0.1.0
Initial public release of xiaoai-bridge.\n\nHighlights:\n- Listen to selected XiaoAi speakers and route questions to a Python handler.\n- Support text, async text, streaming text, remote audio URLs, and local audio paths.\n- Includes speaker selection, login check, test speak, and local audio bridge helpers.\n\nNote: xiaoai-bridge appends TTS/audio playback and may not replace the speaker's original response on all devices or scenarios.