mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Implements in-process Databricks model catalog discovery (Option C) so PKCE token-cache hits are covered without spawning a subprocess. buzz-agent changes: - catalog.rs: new pub module with discover_databricks_models(cfg) — v1 (serving-endpoints) and v2 (ai-gateway/v2/endpoints, paginated) HTTP fetch + parse helpers; 7 unit tests - auth.rs: bearer_no_browser() trait default + PkceOAuthTokenSource override that stops before the browser step (returns Err(LlmAuth) when cache is empty) - config.rs: Config::for_discovery() minimal constructor — avoids requiring DATABRICKS_MODEL/other fields irrelevant to discovery - llm.rs: build_token_source() pub(crate) for catalog.rs access - lib.rs: re-exports discover_databricks_models, ModelEntry, DATABRICKS_V2_KNOWN_MODELS, Provider, AgentError desktop changes: - Cargo.toml: buzz_agent_pkg path dep added - agent_models.rs: discover_databricks_models wrapper calls buzz_agent_pkg::discover_databricks_models directly; LlmAuth -> Ok(None) fallthrough; other errors redacted; ~270 lines removed - agent_models_tests.rs: stale parse/URL tests removed (moved to catalog::tests); is_databricks_provider test retained - check-file-sizes.mjs: TEMP override lowered from 1244 -> 1066 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