Files
buzz/desktop/src-tauri
Max Lampert 4ad77b2367 [1/4] buzz-sdk: own the NIP-AP persona and team event shapes
Buzz Desktop was the only implementation of the kind:30175 / kind:30176
wire format. Anything else that wanted to publish an agent definition had
to re-derive it, and a re-derivation that gets serde field order wrong
produces different content bytes, a different event id, and a persona
Desktop treats as unrelated to the one it already has.

Move the builders, content structs, and coordinate helpers into
`buzz_sdk::agent_definitions`; Desktop now calls them instead of holding
its own copy. `double_option` moves with them, because the persona/team
tri-state (absent = "unknown, preserve local" vs. null/[] = "explicitly
cleared") is part of the wire contract rather than a Desktop detail.

Field order is pinned by a byte-exact serialization test — a reorder
would silently invalidate every stored `persona_content_hash`.

Signed-off-by: Max Lampert <maxwell@squareup.com>
2026-08-17 14:27:12 -07:00
..