Files
buzz/crates
Joel Robotham 1f064cb0ad keyless: select the backend with BUZZ_AGENT_MODE and route the slice
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>
2026-08-31 11:12:45 -07:00
..