hannah-proto
Protobuf/gRPC schema definitions for the Hannah voice assistant ecosystem (Core, satellites, WebUI, ioBroker adapter, Telegram bot, and other consumers). This repo is the single source of truth for the wire protocol shared across all of them.
The .proto files live under hannah/, one per functional area — satellite control, event streaming, the ioBroker agent bridge, user registry, timers, automations, and so on. Nothing here is application code, just schema.
Distribution
Three independent, tag-triggered publish targets — pick whichever matches your language. Each contains only generated gRPC stubs/types for the current tagged release.
| Language | Package | Install |
|---|---|---|
| Python | PyPI hannah-proto |
pip install hannah-proto |
| TypeScript | npm @m1kad0/hannah-proto |
npm install @m1kad0/hannah-proto |
| Go | github.com/NurPech/hannah-proto-go | go get github.com/NurPech/hannah-proto-go |
Go has no separate package registry, so that tagged GitHub repo is the package — go get resolves it directly.
Versioning: PROTO_VERSION
Alongside the semver package/tag version, every release carries a single-integer PROTO_VERSION (see the PROTO_VERSION file). Hannah Core and its clients exchange this value on every call and reject a mismatch at runtime — that's the actual compatibility gate, not the semver tag. A breaking schema change requires bumping PROTO_VERSION; CI enforces this on every merge request via buf breaking.
Per-message compatibility: compat_version
PROTO_VERSION is repo-wide — any breaking change anywhere bumps it, forcing every consumer to reject, even ones that never call the affected RPC. compat_version (options.proto) is a finer-grained, independent counter set on an individual message:
message Foo {
option (compat_version) = 2;
...
}
Bump a message's compat_version only when that specific message has an actual breaking change. A message with no compat_version option carries an implicit value of 1 — don't backfill the option onto messages that have never had a breaking change. This lets a consumer-side interceptor check only the messages a given RPC call actually uses instead of rejecting on any unrelated proto change.
Deprecating fields and RPCs
Don't remove a field or RPC the moment it's unused — that forces every consumer to bump immediately, even ones that never touched it (see the SetGroupRooms incident that forced 9 unrelated components to bump, hannah-proto#9). Instead:
- Mark it
deprecated = true(protobuf's built-in field/method option) and note why + what replaces it in a comment. - Leave it in place until the next planned major cleanup, not the next release.
- Actually remove it (a breaking change,
PROTO_VERSIONbump) only during that cleanup, batched with other accumulated deprecations rather than one at a time.
Go/TypeScript/Python codegen surface deprecated = true automatically (Go doc comment, TS @deprecated JSDoc) — no extra tooling or config needed.
Compatibility checks
CI runs buf lint and buf breaking (against origin/master) on every MR. To check a local branch against a specific released version:
buf breaking --against '.git#tag=vX.Y.Z'
Changelog
See CHANGELOG.md for what changed release to release, including breaking changes and the consumers they affect.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hannah_proto-3.3.0.tar.gz.
File metadata
- Download URL: hannah_proto-3.3.0.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c67d88965bb732ca608d39391649e1d9dd52818895931f4a063cdc974b39e0bc
|
|
| MD5 |
d0a0c9fcb661afb36616e01eb71041dd
|
|
| BLAKE2b-256 |
71ea44b7ba3d0178dd8ccce028cde4baeb009a680994d999b28cf653d3cba7ad
|
File details
Details for the file hannah_proto-3.3.0-py3-none-any.whl.
File metadata
- Download URL: hannah_proto-3.3.0-py3-none-any.whl
- Upload date:
- Size: 53.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b779200a0042e1443464f1ed259f990f6bd7f6a37acd803dea4a7efd7006fac
|
|
| MD5 |
72b665b596bb5af95b227bdc335c3ed7
|
|
| BLAKE2b-256 |
fd27bbc9eeb7c2230f8d291f15752e78d541e5380464d4fea77399510847c773
|