Claude Code. Any Model. The most powerful AI coding agent now speaks every language.
docs(routing): correct two stale routing comments in proxy and resolver
Jack Rudenkoe2c5b57bafb6
diff --git a/packages/cli/src/providers/model-resolvers/types.ts b/packages/cli/src/providers/model-resolvers/types.tsindex 16c8869e..326dfd98 100644--- a/packages/cli/src/providers/model-resolvers/types.ts+++ b/packages/cli/src/providers/model-resolvers/types.ts@@ -21,12 +21,12 @@** ## Scope*- * This is deliberately NOT the same seam as `ModelCatalogResolver`- * (`providers/catalog-resolvers/`). That one answers "what vendor prefix does- * this aggregator want?" — a naming question about a model the user already- * chose. This one answers "which of the provider's wire ids IS this choice,- * right now, at this effort?" — a selection question. They compose: a catalog- * resolver can feed a model id that a model resolver then expands.+ * This is deliberately NOT the catalog's wire-id lookup (`resolveExternalId`,+ * `providers/catalog-client.ts`). That one answers "which id does the cloud models+ * catalog publish for this provider?" — a naming question about a model the user+ * already chose. This one answers "which of the provider's wire ids IS this+ * choice, right now, at this effort?" — a selection question. They compose: the+ * catalog lookup can feed a model id that a model resolver then expands.** ## Default is identity*diff --git a/packages/cli/src/proxy-server.ts b/packages/cli/src/proxy-server.tsindex 5c402890..b85cf008 100644--- a/packages/cli/src/proxy-server.ts+++ b/packages/cli/src/proxy-server.ts@@ -577,9 +577,9 @@ export async function createProxyServer(};// Direct-provider catalog warmup (LiteLLM, Zen, Zen Go) was removed in- // commit 5 of the model-catalog and routing redesign. claudish only fetches- // Firebase catalogs now. The OpenRouter catalog is still warmed below via- // warmAllCatalogs() since it backs vendor-prefix resolution.+ // commit 5 of the model-catalog and routing redesign. The one catalog claudish+ // fetches is the cloud models catalog, warmed below (`warmCatalog`); every+ // provider's wire id comes from its connections (`resolveExternalId`).// Load effective routing rules once at startup: the USER's global config +// local config (local wins), and nothing else — there is no shipped table any@@ -1233,11 +1233,12 @@ export async function createProxyServer(// Warm recommended models from Firebase in background (non-blocking)warmRecommendedModels().catch(() => {});- // Warm model catalog resolvers in background (non-blocking).- // OpenRouter is the only registered resolver post-commit-5 — the LiteLLM- // resolver was removed (claudish doesn't fetch LiteLLM's catalog anymore).+ // Warm the cloud models catalog in the background (non-blocking). Routing and+ // step 2b read wire ids from it. A request that finds neither a warm nor a+ // cached catalog waits in `ensureCatalogReady`, up to five seconds.warmCatalog().catch(() => {- // Warming failures are non-fatal — resolver falls back to passthrough+ // Non-fatal: a cached catalog still answers. With none at all, an explicit+ // spec passes through unchanged and a bare name gets the no-catalog no-route.});return {