Files
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7andWill Pfleger d659e90ffe feat(desktop): add databricks v1+v2 model discovery via buzz-agent lib
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>
2026-06-29 22:04:53 -04:00
..

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 frontend
  • pnpm tauri dev - run the desktop app
  • pnpm build - typecheck and build frontend
  • pnpm typecheck - TypeScript checks
  • pnpm lint - Biome lint
  • pnpm 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