Skip to content

Releases: Cookie-HOO/xiaoai-bridge

v0.2.1

Choose a tag to compare

@Cookie-HOO Cookie-HOO released this 22 Jun 22:12

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

v0.2.0

Choose a tag to compare

@Cookie-HOO Cookie-HOO released this 22 Jun 21:51

Highlights

  • Package-oriented usage for PyPI installs.
  • External handler loading via MI_HANDLER or xiaoai-bridge --handler.
  • Support for module:callable, ./file.py:callable, absolute file paths, and default :handler callable names.
  • Added Chinese README: README.zh-CN.md.
  • Added PyPI Trusted Publishing workflow for the pypi environment.
  • Added tests for handler loading and handler invocation behavior.

Verification

  • uv run ruff check .
  • uv run pytest

v0.1.0

Choose a tag to compare

@Cookie-HOO Cookie-HOO released this 22 Jun 21:11

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.