mirror of
https://github.com/block/buzz.git
synced 2026-11-01 15:01:12 +00:00
- EffortNormalization struct in runtime_metadata.rs with canonical values, aliases, and normalize_str(); GOOSE_EFFORT_NORMALIZATION static cited to goose thinking.rs:277-308 (canonical: off/low/medium/high/max; aliases: none|disabled→off, med→medium, xhigh→max) - effort_normalization field on KnownAcpRuntime; accepted_effort_values on AcpRuntimeCatalogEntry (serialized to TS as the single canonical authority) - LEGACY_THINKING_EFFORT_KEY and ALL_KNOWN_EFFORT_KEYS constants in config_bridge/mod.rs; effort_tier_alias() for per-tier native+legacy key resolution with normalization and global-tier exclusion - find_effort_config_option() identifies live effort by ACP category thought_level (Goose/claude-agent-acp); falls back to legacy effort category for transition compatibility; thought_level always wins when both present; returns (value, config_id) so write-route uses the real entry id - build_thinking_field() normalizes all candidates before precedence, override tracking, and B-equality; B-collapse compares normalized ACP value against normalized non-ACP winner — none↔off and xhigh↔max collapse correctly; write_via uses actual matched config_id (not hardcoded effort) - Test hygiene: test_runtime()/buzz_agent_runtime() use catalog lookups; 6 goose_runtime() tests wrapped with with_no_goose_config(); 4 readiness stubs gain effort_normalization: None - 6 new tests in reader_tests_ext.rs pin real Goose ACP shape, both-present priority, legacy fallback, alias B-collapse (none↔off, xhigh↔max), and env alias normalization 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