mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Opt-in promote of an existing managed agent into a reusable persona template. Lands on two surfaces — the agent card overflow menu (standalone agents only) and the sidebar agent profile's overflow menu — sharing one `saveAsPersonaTemplateDialogState` + the existing PersonaDialog and create-persona mutation. No new backend or IPC. The promote is near-lossless: name, system prompt, model, provider, and env vars copy across; the resolved harness command reverse-maps to a runtime id; namePool starts empty for the user to fill in the dialog. UI says "persona template" while the backend stays `persona` (kind:30175, builtin:*, .persona.md) — a boundary comment in personaLibraryCopy.ts records the mapping so the names are not conflated. Pure refactors to stay under the 1000-line file limit: extract AgentActionItems (+ AgentMenuProps) and the profile quick-action buttons into sibling files. Adds regression tests for the dialog-state mapping and a guard that default agent create stays persona-less. Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@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