mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
The agent harness now subscribes to its own gift-wrap inbox (kind 1059, #p = agent) alongside membership notifications, unwraps each, recovers the inner kind-9 rumor (verified sender + h tag), and forwards it as a normal SproutEvent. The respond-to allowlist gate and rule matching run unchanged — so an agent in an encrypted private channel only responds to blessed npubs, exactly as on the Sprout server. - send_gift_wrap_subscribe (mirrors observer-control), tied to membership sub (active + reconnect restore) - dispatch: 1059 on GIFT_WRAP_SUB_ID -> UnwrappedGift -> rumor_to_event - rumor_to_event: UnsignedEvent -> Event (seal already verified sender; pipeline never reads .sig) - nip59 enabled workspace-wide; unit test covers unwrap->channel event
Sprout
Desktop chat shell with:
- Tauri + React + TypeScript + Vite
- Tailwind CSS
- shadcn/ui-ready shared components
- Biome (lint/format/check)
- Feature-driven frontend structure
Scripts
pnpm dev- run the web frontendpnpm tauri dev- run the desktop apppnpm build- typecheck and build frontendpnpm typecheck- TypeScript checkspnpm lint- Biome lintpnpm format- Biome format (write)pnpm check- Biome check
Structure
src/shared- reusable app-wide code (ui,lib,styles)src/features- feature modules (vertical slices)src/app- top-level app composition