Highlights
- Added
xiaoai-init to scaffold a user project with .env, handler.py, and .gitignore.
- Existing generated files are skipped by default; use
xiaoai-init --force to overwrite them.
- Updated English and Chinese READMEs to recommend the init workflow while keeping manual Xiaomi
userId / passToken copy 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-bridge
Removed from this release
xiaoai-login is not included.
- No browser-cookie reading dependency is included.
Verification
uv run ruff check .
uv run pytest
uv build