mirror of
https://github.com/block/buzz.git
synced 2026-10-29 13:31:44 +00:00
Add the mode toggle for the keyless client. --agent-mode (env BUZZ_AGENT_MODE, default "local") picks the backend; "broker" diverges before any key is read and routes the wake->reply slice through the host: - lib.rs: AgentMode enum + --agent-mode / --broker-url / --broker-credential flags; run() branches to run_broker(), which builds Backend::broker from the endpoint + credential. Broker mode fails closed if a private key is present (supplying one is a provisioning error, not silently ignored). --mentions-only added to `messages get` for the wake path. - messages.rs: dispatch_broker maps `messages get` -> channel.read and `messages send`/reply -> message.post/message.reply, taking explicit pubkey mentions. Relay-coupled extras (auto @mention resolution, file upload, forum kinds, broadcast, time/kind windowing) are refused in broker mode rather than silently dropped; the local path is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Joel Robotham <jrobotham@squareup.com>