mirror of
https://github.com/block/buzz.git
synced 2026-11-14 05:12:27 +00:00
- Add LocalAgentSummary struct to OwnedAgentInstance (pubkey, name, personaId) and merge local managed-agent records once by normalized pubkey in get_owned_agent_inventory; local-only instances (no relay row) are included in the merged model. - InstancesSheet: relay-only badge keys on local === null (not personaId === null), badge stays visible when archived (drop && !isArchived gate). Add usePresenceQuery over all instance pubkeys (persona + unknown). Render unknown-persona section from relay inventory (not ManagedAgent[]). - Absent archive snapshot → (false, empty); add HashSet::<String> type annotations to fix unit test inference errors. - e2eBridge: mutable mockOwnedInventory with deep-clone reset; archive/unarchive handlers mutate exact-target instance and record payload via __BUZZ_E2E_COMMAND_PAYLOADS__; Object.values multi-line format fix. - agent-instances-sheet.spec.ts: 9 tests covering local+relay merge, exact-target Archive/Unarchive/refetch flow, relay-only badge per row, unknown-persona section, and negative-control persona isolation. - tests/helpers/bridge.ts: updated ownedAgentInventory type to byPersonaId/unknown shape with local field. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Buzz
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