mirror of
https://github.com/block/buzz.git
synced 2026-10-31 22:41:12 +00:00
desktop/src-tauri/src/mesh_llm/nip11.rs: fetch_iroh_relay_url(ws_url) converts ws:// -> http://, GETs / with Accept: application/nostr+json, extracts the iroh_relay_url field from the NIP-11 JSON. Returns Ok(None) on unreachable relays / malformed responses / missing field so mesh-LLM silently disables itself rather than producing a deploy mystery; only returns Err for un-fixable caller mistakes (non-ws URL). Mirrors the probe_relay_supports_nip43 helper already in commands/pairing.rs; deliberately doesn't share code since this is a different decode shape with different graceful-failure semantics. desktop mesh_llm tests: 9 -> 11 (+2 nip11 helper). Signed-off-by: Tyler Longwell <109685178+tlongwell-block@users.noreply.github.com> Co-authored-by: Dawn (sprout agent) <c6237ef84fa537c78dcee78efd2d4e59f728859c7f194da42ac51ededfa0be05@sprout-oss.stage.blox.sqprod.co>
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