src/model-catalog
Live Databricks Model Serving catalogue access.
Lists the workspace’s /serving-endpoints and, when the caller supplies a
trusted credential identity, caches the result per host and identity with a
TTL via @dbx-tools/cache. Concurrent callers in the same scope share
one in-flight promise. Surfaces each endpoint as a stable
ServingEndpointSummary - including the Foundation Model API
quality / speed / cost profile when present, the classified
ModelClass, and (for embedding endpoints) the measured vector
dimension - and snaps loose, human-typed names to real endpoint ids
through the TypeScript model ranker so tokens like "claude sonnet" resolve to
databricks-claude-sonnet-4-6.
The class stamp and embedding dimension are computed once per cache load:
every embedding endpoint is “pinged” in parallel and the resulting vector
length recorded, so the cost is paid on a cache miss, not per read. The ping
is best-effort - a failure logs at debug and leaves dimension unset rather
than failing the whole listing.