mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Move the anchor-resolve + run_recovery_gate + migrations block from lib.rs into store_journal/boot.rs:run_boot_recovery_gate(app, reset_completed). lib.rs is reduced from 999 to 988 lines (within the 1000-line ratchet on the merge tree). Fail closed on anchor-resolution failure: store_anchor_dir Err propagates as Err from run_boot_recovery_gate with no unwrap_or_default fallback. Extract reject_if_recovery_failed(flag: &AtomicBool) -> Result<(), String> from mutate_store's inline block so the admission guard is unit-testable. mutate_store delegates to it; two new tests cover the clear and set cases. Add table_cols helper in fix_tests to eliminate repeated PRAGMA table_info boilerplate (keeps store_journal_fix_tests.rs at 993 lines, under 1000). 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