@agentproto/model-catalog 0.11.1 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/access/index.d.ts +3 -3
  2. package/dist/access/index.mjs +4 -4
  3. package/dist/{catalog-C7U9nauo.d.ts → catalog-BAKSkM-q.d.ts} +53 -9
  4. package/dist/{chunk-SORQIIXD.mjs → chunk-3MQVOHXC.mjs} +3 -3
  5. package/dist/{chunk-SORQIIXD.mjs.map → chunk-3MQVOHXC.mjs.map} +1 -1
  6. package/dist/{chunk-X4GZCBVI.mjs → chunk-3YADNIR3.mjs} +4 -4
  7. package/dist/{chunk-X4GZCBVI.mjs.map → chunk-3YADNIR3.mjs.map} +1 -1
  8. package/dist/{chunk-FKBNW5BP.mjs → chunk-BTPINTV6.mjs} +3 -3
  9. package/dist/{chunk-FKBNW5BP.mjs.map → chunk-BTPINTV6.mjs.map} +1 -1
  10. package/dist/{chunk-VABWB67A.mjs → chunk-DR2AOQDW.mjs} +3 -3
  11. package/dist/{chunk-VABWB67A.mjs.map → chunk-DR2AOQDW.mjs.map} +1 -1
  12. package/dist/{chunk-CP7JCOA5.mjs → chunk-JTWZ2BXT.mjs} +5 -5
  13. package/dist/{chunk-CP7JCOA5.mjs.map → chunk-JTWZ2BXT.mjs.map} +1 -1
  14. package/dist/{chunk-D3I73UJI.mjs → chunk-N23C5AL6.mjs} +51 -195
  15. package/dist/chunk-N23C5AL6.mjs.map +1 -0
  16. package/dist/{chunk-GVYUTTTK.mjs → chunk-PD7TZ6PJ.mjs} +4 -4
  17. package/dist/{chunk-GVYUTTTK.mjs.map → chunk-PD7TZ6PJ.mjs.map} +1 -1
  18. package/dist/{chunk-VZCVDFNS.mjs → chunk-WDIFBFY5.mjs} +224 -186
  19. package/dist/chunk-WDIFBFY5.mjs.map +1 -0
  20. package/dist/cost/index.mjs +6 -6
  21. package/dist/curation/index.d.ts +2 -2
  22. package/dist/curation/index.mjs +6 -6
  23. package/dist/{evaluate-Dm45YM9p.d.ts → evaluate-BCFSdYJh.d.ts} +1 -1
  24. package/dist/{index-qTi3go0T.d.ts → index-BG_DyoXP.d.ts} +1 -1
  25. package/dist/{index-D9Ir5Xyq.d.ts → index-BLuu7OZP.d.ts} +2 -2
  26. package/dist/index.d.ts +5 -5
  27. package/dist/index.mjs +10 -10
  28. package/dist/llm/index.d.ts +1 -1
  29. package/dist/llm/index.mjs +2 -2
  30. package/dist/overlay/index.d.ts +1 -1
  31. package/dist/picker/index.d.ts +4 -4
  32. package/dist/route-identity/index.d.ts +1 -1
  33. package/dist/route-identity/index.mjs +2 -2
  34. package/package.json +1 -1
  35. package/dist/chunk-D3I73UJI.mjs.map +0 -1
  36. package/dist/chunk-VZCVDFNS.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
- import { listRouterLlmRoutes, formatModelRef } from './chunk-D3I73UJI.mjs';
2
- import { modelHasTag } from './chunk-SORQIIXD.mjs';
1
+ import { listRouterLlmRoutes, formatModelRef } from './chunk-N23C5AL6.mjs';
2
+ import { modelHasTag } from './chunk-3MQVOHXC.mjs';
3
3
  import { getMergedOverlay } from './chunk-H6JUTF3U.mjs';
4
- import { resolvePricing, resolveAlias, isKnownLlmId, getModelProvider, LLM_PRICING_CATALOG, listUnpricedKnownLlmIds } from './chunk-VZCVDFNS.mjs';
4
+ import { resolvePricing, resolveAlias, isKnownLlmId, getModelProvider, LLM_PRICING_CATALOG, listUnpricedKnownLlmIds } from './chunk-WDIFBFY5.mjs';
5
5
  import { IMAGE_MODEL_CATALOG } from './chunk-2LWYZOWB.mjs';
6
6
  import { VIDEO_MODEL_CATALOG } from './chunk-IJZ4XPO2.mjs';
7
7
  import { AUDIO_MODEL_CATALOG } from './chunk-WRUWNKDB.mjs';
@@ -202,5 +202,5 @@ function resolveAlias2(id) {
202
202
  }
203
203
 
204
204
  export { getModel, getModelsByProvider, getStaticModelProvider, isAgentVisible, listModels, resolveAlias2 as resolveAlias };
205
- //# sourceMappingURL=chunk-CP7JCOA5.mjs.map
206
- //# sourceMappingURL=chunk-CP7JCOA5.mjs.map
205
+ //# sourceMappingURL=chunk-JTWZ2BXT.mjs.map
206
+ //# sourceMappingURL=chunk-JTWZ2BXT.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/registry/index.ts"],"names":["resolveAlias"],"mappings":";;;;;;;;;;;;;;;;AAsCA,SAAS,WAAA,CAAY,IAAY,EAAA,EAA2B;AAC1D,EAAA,IAAI,GAAA,GAAM,EAAA;AACV,EAAA,MAAM,IAAA,uBAAW,GAAA,EAAY;AAC7B,EAAA,WAAS;AACP,IAAA,MAAM,IAAA,GAAO,EAAA,CAAG,OAAA,CAAQ,GAAG,CAAA;AAC3B,IAAA,IAAI,IAAA,KAAS,MAAA,IAAa,IAAA,CAAK,GAAA,CAAI,GAAG,CAAA,EAAG;AACzC,IAAA,IAAA,CAAK,IAAI,GAAG,CAAA;AACZ,IAAA,GAAA,GAAM,IAAA;AAAA,EACR;AACA,EAAA,OAAO,GAAA;AACT;AAGA,SAAS,YAAA,CAAa,IAAmB,GAAA,EAAuC;AAC9E,EAAA,OAAO,GAAG,KAAA,CAAM,IAAA;AAAA,IACd,CAAA,CAAA,KACE,CAAA,CAAE,SAAA,KAAc,GAAA,IAChB,CAAA,CAAE,eAAA,KAAoB,GAAA,IAAA,CACrB,CAAA,CAAE,OAAA,IAAW,EAAC,EAAG,QAAA,CAAS,GAAG;AAAA,GAClC;AACF;AAuCA,IAAM,WAAA,GAAyC,IAAI,GAAA,CAAI;AAAA,EACrD,GAAG,cAAc,GAAA,CAAI,CAAA,CAAA,KAAK,CAAC,CAAA,CAAE,eAAA,EAAiB,CAAC,CAAU,CAAA;AAAA,EACzD,GAAG,cAAc,GAAA,CAAI,CAAA,CAAA,KAAK,CAAC,CAAA,CAAE,SAAA,EAAW,CAAC,CAAU,CAAA;AAAA,EACnD,GAAG,aAAA,CAAc,OAAA;AAAA,IAAQ,CAAC,CAAA,KA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,EAAI,GAAG,CAAA,EAAG,OAAO,GAAA;AAClC,EAAA,IAAI,EAAA,CAAG,GAAA,CAAI,GAAG,CAAA,EAAG,OAAO,GAAA;AACxB,EAAA,IAAI,mBAAA,CAAoB,GAAG,CAAA,EAAG,OAAO,GAAA;AACrC,EAAA,IAAI,mBAAA,CAAoB,GAAG,CAAA,EAAG,OAAO,GAAA;AACrC,EAAA,IAAI,mBAAA,CAAoB,GAAG,CAAA,EAAG,OAAO,GAAA;AACrC,EAAA,IAAI,WAAA,CAAY,GAAA,CAAI,GAAG,CAAA,EAAG,OAAO,GAAA;AACjC,EAAA,OAAO,aAAgB,GAAG,CAAA;AAC5B","file":"chunk-CP7JCOA5.mjs","sourcesContent":["/**\n * Cross-kind registry. Resolves a model id against every catalog (LLM,\n * image, video, audio) and returns a discriminated `ResolvedModel`.\n *\n * v1 returns the legacy per-kind data shapes verbatim — image/video keep\n * `*ModelDefinition`, LLM keeps `LLMPricing`, audio surfaces voices.\n * Callers (cost dispatcher, access evaluator) match on `.kind` and dig\n * into the per-kind payload as needed.\n */\n\nimport {\n LLM_PRICING_CATALOG,\n resolveAlias as resolveLlmAlias,\n resolvePricing,\n isKnownLlmId,\n listUnpricedKnownLlmIds,\n getModelProvider,\n type LLMPricing,\n} from \"../llm/index.js\"\nimport {\n IMAGE_MODEL_CATALOG,\n type ImageModelDefinition,\n} from \"../image/index.js\"\nimport {\n VIDEO_MODEL_CATALOG,\n type VideoModelDefinition,\n} from \"../video/index.js\"\nimport {\n AUDIO_MODEL_CATALOG,\n type AudioModelDefinition,\n} from \"../audio/index.js\"\nimport { VOICE_CATALOG, type CatalogVoice } from \"../voice/index.js\"\nimport { modelHasTag } from \"../enrichment/index.js\"\nimport { getMergedOverlay, type MergedOverlay } from \"../overlay/index.js\"\nimport { listRouterLlmRoutes, formatModelRef } from \"../route-identity/index.js\"\n\n/** Follow consumer-overlay alias hops to a concrete id (cycle-guarded).\n * Ids with no overlay alias pass through unchanged. */\nfunction followAlias(id: string, ov: MergedOverlay): string {\n let cur = id\n const seen = new Set<string>()\n for (;;) {\n const next = ov.aliases[cur]\n if (next === undefined || seen.has(cur)) break\n seen.add(cur)\n cur = next\n }\n return cur\n}\n\n/** Find an overlay voice by catalogId / providerVoiceId / alias. */\nfunction overlayVoice(ov: MergedOverlay, key: string): CatalogVoice | undefined {\n return ov.voice.find(\n v =>\n v.catalogId === key ||\n v.providerVoiceId === key ||\n (v.aliases ?? []).includes(key),\n )\n}\n\n/**\n * `audio` resolves to either an audio MODEL (priced TTS/STT) or a\n * voice (downstream metadata). Most call sites care about the model\n * (pricing, capabilities); a few (voice pickers) want the voice. They\n * share the resolver but discriminate on the inner payload.\n */\nexport type ResolvedModel =\n | {\n kind: \"llm\"\n id: string\n canonicalId: string\n /** Undefined for a real, known id with no pricing row yet — existence\n * and pricing are independent, see `LlmModelId`'s doc comment in\n * `llm/catalog.ts`. Every reader MUST handle the absent case; never\n * assume a `kind: \"llm\"` result is priced. */\n pricing: LLMPricing | undefined\n /** Best-effort provider even when `pricing` is absent (falls back to\n * `CONTEXT_WINDOWS`'s own provider field — see `getModelProvider`).\n * Prefer this over `pricing?.provider` when you only need routing. */\n provider: string | undefined\n }\n | { kind: \"image\"; id: string; def: ImageModelDefinition }\n | { kind: \"video\"; id: string; def: VideoModelDefinition }\n | { kind: \"audio\"; id: string; def: AudioModelDefinition }\n | { kind: \"voice\"; id: string; voice: CatalogVoice }\n\n/**\n * Every kind the registry can resolve. Broader than the catalog\n * `ModelKind` (llm/image/video/audio) because voices are a first-class\n * registry kind but not a priced model family. Derived from\n * `ResolvedModel` so it can never drift.\n */\nexport type CatalogKind = ResolvedModel[\"kind\"]\n\n// Voices resolve by canonical id (\"minimax-french-female-anchor\"), native\n// provider id (\"French_FemaleAnchor\"), or a consumer-overlay alias — index\n// all three so new slugs, native ids, and persisted operator rows all hit.\nconst VOICE_INDEX: Map<string, CatalogVoice> = new Map([\n ...VOICE_CATALOG.map(v => [v.providerVoiceId, v] as const),\n ...VOICE_CATALOG.map(v => [v.catalogId, v] as const),\n ...VOICE_CATALOG.flatMap((v: CatalogVoice) =>\n (v.aliases ?? []).map(a => [a, v] as const)\n ),\n])\n\n/**\n * Resolves a model id across every catalog.\n *\n * Lookup order: image → video → audio → LLM (last because LLM has the\n * partial-prefix fallback that can match other strings if probed first).\n *\n * Returns `undefined` for unknown ids — callers decide whether to throw\n * or fall back. LLM uses fallback pricing inside its own dispatcher\n * (preserves existing behavior at the orchestrator).\n */\nexport function getModel(id: string): ResolvedModel | undefined {\n // Consumer overlays first: resolve any overlay alias to a concrete id,\n // then let overlay entries override/extend the generated catalogs. The\n // returned `id` echoes what the caller asked for (alias-preserving), as\n // the legacy voice-alias path already did.\n const ov = getMergedOverlay()\n const key = followAlias(id, ov)\n\n if (ov.image[key]) return { kind: \"image\", id, def: ov.image[key]! }\n if (ov.video[key]) return { kind: \"video\", id, def: ov.video[key]! }\n if (ov.audio[key]) return { kind: \"audio\", id, def: ov.audio[key]! }\n const ovVoice = overlayVoice(ov, key)\n if (ovVoice) return { kind: \"voice\", id, voice: ovVoice }\n if (ov.llm[key]) {\n const pricing = ov.llm[key]!\n return { kind: \"llm\", id, canonicalId: key, pricing, provider: pricing.provider }\n }\n\n const imageDef = IMAGE_MODEL_CATALOG[key]\n if (imageDef) return { kind: \"image\", id, def: imageDef }\n\n const videoDef = VIDEO_MODEL_CATALOG[key]\n if (videoDef) return { kind: \"video\", id, def: videoDef }\n\n // Audio MODEL (priced TTS/STT) — checked before voice lookup so an\n // id that exists in both maps lands on the priced entry.\n const audioDef = AUDIO_MODEL_CATALOG[key]\n if (audioDef) return { kind: \"audio\", id, def: audioDef }\n\n const voice = VOICE_INDEX.get(key)\n if (voice) return { kind: \"voice\", id, voice }\n\n const llmPricing = resolvePricing(key)\n if (llmPricing) {\n const canonicalId = resolveLlmAlias(key)\n return { kind: \"llm\", id, canonicalId, pricing: llmPricing, provider: llmPricing.provider }\n }\n // Known id, no pricing row yet (see `LlmModelId`'s doc comment in\n // llm/catalog.ts) — still resolves, just unpriced. This is the case that\n // used to make a real, live, provider-published model (e.g. a brand-new\n // Anthropic release the day it ships, before the next pricing sync)\n // disappear from every downstream surface instead of showing up unpriced.\n if (isKnownLlmId(key)) {\n return { kind: \"llm\", id, canonicalId: key, pricing: undefined, provider: getModelProvider(key) }\n }\n\n return undefined\n}\n\n/**\n * Returns true iff the id is exposed to agents.\n *\n * - LLM: every entry in `LLM_PRICING_CATALOG` is considered visible\n * (legacy convention; refine in v2 with per-entry `agentVisible`).\n * - Image / Video: respects the `agentVisible` flag.\n * - Audio voices: all voices are visible (catalog itself is curated).\n */\nexport function isAgentVisible(id: string): boolean {\n const m = getModel(id)\n if (!m) return false\n switch (m.kind) {\n case \"image\":\n return m.def.agentVisible\n case \"video\":\n return m.def.agentVisible\n case \"audio\":\n return m.def.agentVisible\n case \"llm\":\n return (\n id in LLM_PRICING_CATALOG || resolveLlmAlias(id) in LLM_PRICING_CATALOG\n )\n case \"voice\":\n return true\n }\n}\n\nexport interface ListModelsFilter {\n kind?: CatalogKind\n /** Single provider (back-compat). Folded into `providers` internally. */\n provider?: string\n /** Provider OR-set — a model matches if its provider is any of these. */\n providers?: string[]\n /**\n * Capability tags a model must carry (ALL of them). Capabilities are\n * emitted as tags by enrichment — audio `tts`/`stt`/`s2s`, image\n * `edit`/`upscale`, video `i2v`/`t2v` — so this filters on the same\n * vocabulary `listModels({capabilities:[\"s2s\"]})` would expect.\n */\n capabilities?: string[]\n /** Arbitrary tags a model must carry (ALL of them). */\n tags?: string[]\n agentVisibleOnly?: boolean\n}\n\n/**\n * Cross-kind listing. Useful for catalog browsers and capability search.\n * Returns `ResolvedModel[]` (discriminated by kind).\n *\n * Provider is an OR-set (`providers` ∪ the singular `provider`); capability\n * and tag filters are AND-sets (a model must carry every listed value).\n * Composed: `listModels({ kind:\"audio\", capabilities:[\"s2s\"],\n * providers:[\"gemini-live\",\"openai-realtime\"] })` → all s2s models from\n * Gemini OR OpenAI.\n */\nexport function listModels(filter: ListModelsFilter = {}): ResolvedModel[] {\n const providerSet =\n filter.provider || filter.providers\n ? new Set([\n ...(filter.provider ? [filter.provider] : []),\n ...(filter.providers ?? []),\n ])\n : undefined\n const providerMatches = (provider: string | undefined): boolean =>\n !providerSet || (provider !== undefined && providerSet.has(provider))\n\n const ov = getMergedOverlay()\n const out: ResolvedModel[] = []\n // Overlay entries override core ones with the same id, so collect ids the\n // overlay has already supplied per kind and skip the core duplicate.\n const seen = { image: new Set<string>(), video: new Set<string>(), audio: new Set<string>(), voice: new Set<string>(), llm: new Set<string>() }\n\n if (!filter.kind || filter.kind === \"image\") {\n for (const [id, def] of Object.entries(ov.image)) {\n if (!providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n seen.image.add(id)\n out.push({ kind: \"image\", id, def })\n }\n for (const [id, def] of Object.entries(IMAGE_MODEL_CATALOG)) {\n if (seen.image.has(id) || !providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n out.push({ kind: \"image\", id, def })\n }\n }\n if (!filter.kind || filter.kind === \"video\") {\n for (const [id, def] of Object.entries(ov.video)) {\n if (!providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n seen.video.add(id)\n out.push({ kind: \"video\", id, def })\n }\n for (const [id, def] of Object.entries(VIDEO_MODEL_CATALOG)) {\n if (seen.video.has(id) || !providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n out.push({ kind: \"video\", id, def })\n }\n }\n if (!filter.kind || filter.kind === \"audio\") {\n for (const [id, def] of Object.entries(ov.audio)) {\n if (!providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n seen.audio.add(id)\n out.push({ kind: \"audio\", id, def })\n }\n for (const [id, def] of Object.entries(AUDIO_MODEL_CATALOG)) {\n if (seen.audio.has(id) || !providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n out.push({ kind: \"audio\", id, def })\n }\n }\n if (!filter.kind || filter.kind === \"voice\") {\n for (const v of ov.voice) {\n if (!providerMatches(v.provider)) continue\n seen.voice.add(v.catalogId)\n out.push({ kind: \"voice\", id: v.catalogId, voice: v })\n }\n for (const v of VOICE_CATALOG) {\n if (seen.voice.has(v.catalogId) || !providerMatches(v.provider)) continue\n out.push({ kind: \"voice\", id: v.catalogId, voice: v })\n }\n }\n if (!filter.kind || filter.kind === \"llm\") {\n for (const [id, pricing] of Object.entries(ov.llm)) {\n if (!providerMatches(pricing.provider)) continue\n seen.llm.add(id)\n out.push({ kind: \"llm\", id, canonicalId: id, pricing, provider: pricing.provider })\n }\n for (const [id, pricing] of Object.entries(LLM_PRICING_CATALOG)) {\n if (seen.llm.has(id) || !providerMatches(pricing.provider)) continue\n seen.llm.add(id)\n out.push({ kind: \"llm\", id, canonicalId: id, pricing, provider: pricing.provider })\n }\n // Known ids with no pricing row yet (see `LlmModelId`'s doc comment in\n // llm/catalog.ts) — surfaced unpriced rather than silently dropped.\n for (const { id, provider } of listUnpricedKnownLlmIds()) {\n if (seen.llm.has(id) || !providerMatches(provider)) continue\n out.push({ kind: \"llm\", id, canonicalId: id, pricing: undefined, provider })\n }\n }\n\n // Capability + tag filters are AND-sets, applied over the enrichment tag\n // vocabulary (capabilities are emitted as tags). Skipped entirely when\n // unset so the common path stays allocation-free.\n const required = [...(filter.capabilities ?? []), ...(filter.tags ?? [])]\n if (required.length === 0) return out\n return out.filter(model => required.every(tag => modelHasTag(model, tag)))\n}\n\n/**\n * Provider-centric view — every model a provider offers across all kinds\n * (llm / image / video / audio incl. tts/stt/s2s). This is the \"provider\n * catalog\" (openai, google, anthropic, replicate, openrouter, …): a\n * derived query over the kind-organized catalogs, NOT a parallel store.\n *\n * When `provider` names a router or a routed endpoint (openrouter, requesty,\n * huggingface, opencode, opencode-go), this also folds in that provider's\n * generated route table (`listRouterLlmRoutes`) — the provider's full\n * surface, not just what happens to be curated into `LLM_PRICING_CATALOG`.\n * The emitted id is whatever `formatModelRef` produces for the resolved ref:\n * `vendor/product@router` for the vendor-namespacing routers, and the bare\n * `opencode-go/glm-5.3` / `opencode/claude-sonnet-4-6` form for the two\n * OpenCode endpoints, whose route IS the id's leading segment (so there is no\n * `@route` to append). OpenRouter's routes are already spread into\n * `LLM_PRICING_CATALOG` (bare `vendor/product` ids, `llm/catalog.ts`), so its\n * router-table entries are deduped against the bare ids `listModels` already\n * returned; Requesty, HuggingFace and the two OpenCode endpoints have no such\n * overlap, so their route table entries are added in full. Deliberately NOT\n * achieved by spreading `REQUESTY_ROUTES`/`HUGGINGFACE_ROUTES`/\n * `OPENCODE_*_ROUTES` into `LLM_PRICING_CATALOG` itself — that catalog is the\n * legacy bare-id path, and a bare id must keep meaning direct-vendor pricing\n * (`route-identity/index.ts`).\n */\nexport function getModelsByProvider(provider: string): ResolvedModel[] {\n const models = listModels({ provider })\n const routerRoutes = listRouterLlmRoutes(provider)\n if (routerRoutes.length === 0) return models\n\n const existingIds = new Set(models.map(m => m.id))\n const routed: ResolvedModel[] = []\n for (const route of routerRoutes) {\n const bareId = `${route.vendor}/${route.product}`\n if (existingIds.has(bareId)) continue\n const id = formatModelRef(route.ref)\n routed.push({ kind: \"llm\", id, canonicalId: id, pricing: route.pricing, provider: route.pricing.provider })\n }\n return [...models, ...routed]\n}\n\n/**\n * Returns the platform a model's adapter is **statically pinned** to,\n * if known. ONLY meaningful for image / video / audio — those adapters\n * are constructed per-platform (Replicate adapter, MiniMax adapter…),\n * so the model's `def.provider` IS the runtime connector.\n *\n * For LLM, returns `undefined` — the runtime connector is determined\n * at call time by `pickLlmConnector(connectors, parseModelId(id).provider)`\n * against the guild's installed connectors, NOT by the model id alone.\n * The same `anthropic/claude-sonnet-4-5` can route through OpenRouter\n * OR direct Anthropic depending on which connectors the guild has\n * installed. Recording call sites MUST pass the actual `connectorUsed`\n * they invoked; do not infer from id.\n *\n * Use case: image/video workflow steps fetch `model.def.provider`\n * directly (no ambiguity). LLM call sites use the runtime resolver.\n */\nexport function getStaticModelProvider(\n model: ResolvedModel\n): string | undefined {\n switch (model.kind) {\n case \"image\":\n case \"video\":\n case \"audio\":\n return model.def.provider\n case \"voice\":\n return model.voice.provider\n case \"llm\":\n // Runtime routing — caller knows, we don't.\n return undefined\n }\n}\n\n/**\n * Resolves an id to its canonical catalog key across kinds. For ids that\n * have no alias, returns the id unchanged. Used by callers that want to\n * normalize before persisting (e.g., `byok_usage` rows).\n */\nexport function resolveAlias(id: string): string {\n const ov = getMergedOverlay()\n const key = followAlias(id, ov)\n if (ov.image[key] || ov.video[key] || ov.audio[key]) return key\n if (overlayVoice(ov, key)) return key\n if (ov.llm[key]) return key\n if (IMAGE_MODEL_CATALOG[key]) return key\n if (VIDEO_MODEL_CATALOG[key]) return key\n if (AUDIO_MODEL_CATALOG[key]) return key\n if (VOICE_INDEX.has(key)) return key\n return resolveLlmAlias(key)\n}\n"]}
1
+ {"version":3,"sources":["../src/registry/index.ts"],"names":["resolveAlias"],"mappings":";;;;;;;;;;;;;;;;AAsCA,SAAS,WAAA,CAAY,IAAY,EAAA,EAA2B;AAC1D,EAAA,IAAI,GAAA,GAAM,EAAA;AACV,EAAA,MAAM,IAAA,uBAAW,GAAA,EAAY;AAC7B,EAAA,WAAS;AACP,IAAA,MAAM,IAAA,GAAO,EAAA,CAAG,OAAA,CAAQ,GAAG,CAAA;AAC3B,IAAA,IAAI,IAAA,KAAS,MAAA,IAAa,IAAA,CAAK,GAAA,CAAI,GAAG,CAAA,EAAG;AACzC,IAAA,IAAA,CAAK,IAAI,GAAG,CAAA;AACZ,IAAA,GAAA,GAAM,IAAA;AAAA,EACR;AACA,EAAA,OAAO,GAAA;AACT;AAGA,SAAS,YAAA,CAAa,IAAmB,GAAA,EAAuC;AAC9E,EAAA,OAAO,GAAG,KAAA,CAAM,IAAA;AAAA,IACd,CAAA,CAAA,KACE,CAAA,CAAE,SAAA,KAAc,GAAA,IAChB,CAAA,CAAE,eAAA,KAAoB,GAAA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QAAA;AAAA,IACrB,KAAK,KAAA;AAEH,MAAA,OAAO,MAAA;AAAA;AAEb;AAOO,SAASA,cAAa,EAAA,EAAoB;AAC/C,EAAA,MAAM,KAAK,gBAAA,EAAiB;AAC5B,EAAA,MAAM,GAAA,GAAM,WAAA,CAAY,EAAA,EAAI,EAAE,CAAA;AAC9B,EAAA,IAAI,EAAA,CAAG,KAAA,CAAM,GAAG,CAAA,IAAK,EAAA,CAAG,KAAA,CAAM,GAAG,CAAA,IAAK,EAAA,CAAG,KAAA,CAAM,GAAG,CAAA,EAAG,OAAO,GAAA;AAC5D,EAAA,IAAI,YAAA,CAAa,EAAA,EAAI,GAAG,CAAA,EAAG,OAAO,GAAA;AAClC,EAAA,IAAI,EAAA,CAAG,GAAA,CAAI,GAAG,CAAA,EAAG,OAAO,GAAA;AACxB,EAAA,IAAI,mBAAA,CAAoB,GAAG,CAAA,EAAG,OAAO,GAAA;AACrC,EAAA,IAAI,mBAAA,CAAoB,GAAG,CAAA,EAAG,OAAO,GAAA;AACrC,EAAA,IAAI,mBAAA,CAAoB,GAAG,CAAA,EAAG,OAAO,GAAA;AACrC,EAAA,IAAI,WAAA,CAAY,GAAA,CAAI,GAAG,CAAA,EAAG,OAAO,GAAA;AACjC,EAAA,OAAO,aAAgB,GAAG,CAAA;AAC5B","file":"chunk-JTWZ2BXT.mjs","sourcesContent":["/**\n * Cross-kind registry. Resolves a model id against every catalog (LLM,\n * image, video, audio) and returns a discriminated `ResolvedModel`.\n *\n * v1 returns the legacy per-kind data shapes verbatim — image/video keep\n * `*ModelDefinition`, LLM keeps `LLMPricing`, audio surfaces voices.\n * Callers (cost dispatcher, access evaluator) match on `.kind` and dig\n * into the per-kind payload as needed.\n */\n\nimport {\n LLM_PRICING_CATALOG,\n resolveAlias as resolveLlmAlias,\n resolvePricing,\n isKnownLlmId,\n listUnpricedKnownLlmIds,\n getModelProvider,\n type LLMPricing,\n} from \"../llm/index.js\"\nimport {\n IMAGE_MODEL_CATALOG,\n type ImageModelDefinition,\n} from \"../image/index.js\"\nimport {\n VIDEO_MODEL_CATALOG,\n type VideoModelDefinition,\n} from \"../video/index.js\"\nimport {\n AUDIO_MODEL_CATALOG,\n type AudioModelDefinition,\n} from \"../audio/index.js\"\nimport { VOICE_CATALOG, type CatalogVoice } from \"../voice/index.js\"\nimport { modelHasTag } from \"../enrichment/index.js\"\nimport { getMergedOverlay, type MergedOverlay } from \"../overlay/index.js\"\nimport { listRouterLlmRoutes, formatModelRef } from \"../route-identity/index.js\"\n\n/** Follow consumer-overlay alias hops to a concrete id (cycle-guarded).\n * Ids with no overlay alias pass through unchanged. */\nfunction followAlias(id: string, ov: MergedOverlay): string {\n let cur = id\n const seen = new Set<string>()\n for (;;) {\n const next = ov.aliases[cur]\n if (next === undefined || seen.has(cur)) break\n seen.add(cur)\n cur = next\n }\n return cur\n}\n\n/** Find an overlay voice by catalogId / providerVoiceId / alias. */\nfunction overlayVoice(ov: MergedOverlay, key: string): CatalogVoice | undefined {\n return ov.voice.find(\n v =>\n v.catalogId === key ||\n v.providerVoiceId === key ||\n (v.aliases ?? []).includes(key),\n )\n}\n\n/**\n * `audio` resolves to either an audio MODEL (priced TTS/STT) or a\n * voice (downstream metadata). Most call sites care about the model\n * (pricing, capabilities); a few (voice pickers) want the voice. They\n * share the resolver but discriminate on the inner payload.\n */\nexport type ResolvedModel =\n | {\n kind: \"llm\"\n id: string\n canonicalId: string\n /** Undefined for a real, known id with no pricing row yet — existence\n * and pricing are independent, see `LlmModelId`'s doc comment in\n * `llm/catalog.ts`. Every reader MUST handle the absent case; never\n * assume a `kind: \"llm\"` result is priced. */\n pricing: LLMPricing | undefined\n /** Best-effort provider even when `pricing` is absent (falls back to\n * `CONTEXT_WINDOWS`'s own provider field — see `getModelProvider`).\n * Prefer this over `pricing?.provider` when you only need routing. */\n provider: string | undefined\n }\n | { kind: \"image\"; id: string; def: ImageModelDefinition }\n | { kind: \"video\"; id: string; def: VideoModelDefinition }\n | { kind: \"audio\"; id: string; def: AudioModelDefinition }\n | { kind: \"voice\"; id: string; voice: CatalogVoice }\n\n/**\n * Every kind the registry can resolve. Broader than the catalog\n * `ModelKind` (llm/image/video/audio) because voices are a first-class\n * registry kind but not a priced model family. Derived from\n * `ResolvedModel` so it can never drift.\n */\nexport type CatalogKind = ResolvedModel[\"kind\"]\n\n// Voices resolve by canonical id (\"minimax-french-female-anchor\"), native\n// provider id (\"French_FemaleAnchor\"), or a consumer-overlay alias — index\n// all three so new slugs, native ids, and persisted operator rows all hit.\nconst VOICE_INDEX: Map<string, CatalogVoice> = new Map([\n ...VOICE_CATALOG.map(v => [v.providerVoiceId, v] as const),\n ...VOICE_CATALOG.map(v => [v.catalogId, v] as const),\n ...VOICE_CATALOG.flatMap((v: CatalogVoice) =>\n (v.aliases ?? []).map(a => [a, v] as const)\n ),\n])\n\n/**\n * Resolves a model id across every catalog.\n *\n * Lookup order: image → video → audio → LLM (last because LLM has the\n * partial-prefix fallback that can match other strings if probed first).\n *\n * Returns `undefined` for unknown ids — callers decide whether to throw\n * or fall back. LLM uses fallback pricing inside its own dispatcher\n * (preserves existing behavior at the orchestrator).\n */\nexport function getModel(id: string): ResolvedModel | undefined {\n // Consumer overlays first: resolve any overlay alias to a concrete id,\n // then let overlay entries override/extend the generated catalogs. The\n // returned `id` echoes what the caller asked for (alias-preserving), as\n // the legacy voice-alias path already did.\n const ov = getMergedOverlay()\n const key = followAlias(id, ov)\n\n if (ov.image[key]) return { kind: \"image\", id, def: ov.image[key]! }\n if (ov.video[key]) return { kind: \"video\", id, def: ov.video[key]! }\n if (ov.audio[key]) return { kind: \"audio\", id, def: ov.audio[key]! }\n const ovVoice = overlayVoice(ov, key)\n if (ovVoice) return { kind: \"voice\", id, voice: ovVoice }\n if (ov.llm[key]) {\n const pricing = ov.llm[key]!\n return { kind: \"llm\", id, canonicalId: key, pricing, provider: pricing.provider }\n }\n\n const imageDef = IMAGE_MODEL_CATALOG[key]\n if (imageDef) return { kind: \"image\", id, def: imageDef }\n\n const videoDef = VIDEO_MODEL_CATALOG[key]\n if (videoDef) return { kind: \"video\", id, def: videoDef }\n\n // Audio MODEL (priced TTS/STT) — checked before voice lookup so an\n // id that exists in both maps lands on the priced entry.\n const audioDef = AUDIO_MODEL_CATALOG[key]\n if (audioDef) return { kind: \"audio\", id, def: audioDef }\n\n const voice = VOICE_INDEX.get(key)\n if (voice) return { kind: \"voice\", id, voice }\n\n const llmPricing = resolvePricing(key)\n if (llmPricing) {\n const canonicalId = resolveLlmAlias(key)\n return { kind: \"llm\", id, canonicalId, pricing: llmPricing, provider: llmPricing.provider }\n }\n // Known id, no pricing row yet (see `LlmModelId`'s doc comment in\n // llm/catalog.ts) — still resolves, just unpriced. This is the case that\n // used to make a real, live, provider-published model (e.g. a brand-new\n // Anthropic release the day it ships, before the next pricing sync)\n // disappear from every downstream surface instead of showing up unpriced.\n if (isKnownLlmId(key)) {\n return { kind: \"llm\", id, canonicalId: key, pricing: undefined, provider: getModelProvider(key) }\n }\n\n return undefined\n}\n\n/**\n * Returns true iff the id is exposed to agents.\n *\n * - LLM: every entry in `LLM_PRICING_CATALOG` is considered visible\n * (legacy convention; refine in v2 with per-entry `agentVisible`).\n * - Image / Video: respects the `agentVisible` flag.\n * - Audio voices: all voices are visible (catalog itself is curated).\n */\nexport function isAgentVisible(id: string): boolean {\n const m = getModel(id)\n if (!m) return false\n switch (m.kind) {\n case \"image\":\n return m.def.agentVisible\n case \"video\":\n return m.def.agentVisible\n case \"audio\":\n return m.def.agentVisible\n case \"llm\":\n return (\n id in LLM_PRICING_CATALOG || resolveLlmAlias(id) in LLM_PRICING_CATALOG\n )\n case \"voice\":\n return true\n }\n}\n\nexport interface ListModelsFilter {\n kind?: CatalogKind\n /** Single provider (back-compat). Folded into `providers` internally. */\n provider?: string\n /** Provider OR-set — a model matches if its provider is any of these. */\n providers?: string[]\n /**\n * Capability tags a model must carry (ALL of them). Capabilities are\n * emitted as tags by enrichment — audio `tts`/`stt`/`s2s`, image\n * `edit`/`upscale`, video `i2v`/`t2v` — so this filters on the same\n * vocabulary `listModels({capabilities:[\"s2s\"]})` would expect.\n */\n capabilities?: string[]\n /** Arbitrary tags a model must carry (ALL of them). */\n tags?: string[]\n agentVisibleOnly?: boolean\n}\n\n/**\n * Cross-kind listing. Useful for catalog browsers and capability search.\n * Returns `ResolvedModel[]` (discriminated by kind).\n *\n * Provider is an OR-set (`providers` ∪ the singular `provider`); capability\n * and tag filters are AND-sets (a model must carry every listed value).\n * Composed: `listModels({ kind:\"audio\", capabilities:[\"s2s\"],\n * providers:[\"gemini-live\",\"openai-realtime\"] })` → all s2s models from\n * Gemini OR OpenAI.\n */\nexport function listModels(filter: ListModelsFilter = {}): ResolvedModel[] {\n const providerSet =\n filter.provider || filter.providers\n ? new Set([\n ...(filter.provider ? [filter.provider] : []),\n ...(filter.providers ?? []),\n ])\n : undefined\n const providerMatches = (provider: string | undefined): boolean =>\n !providerSet || (provider !== undefined && providerSet.has(provider))\n\n const ov = getMergedOverlay()\n const out: ResolvedModel[] = []\n // Overlay entries override core ones with the same id, so collect ids the\n // overlay has already supplied per kind and skip the core duplicate.\n const seen = { image: new Set<string>(), video: new Set<string>(), audio: new Set<string>(), voice: new Set<string>(), llm: new Set<string>() }\n\n if (!filter.kind || filter.kind === \"image\") {\n for (const [id, def] of Object.entries(ov.image)) {\n if (!providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n seen.image.add(id)\n out.push({ kind: \"image\", id, def })\n }\n for (const [id, def] of Object.entries(IMAGE_MODEL_CATALOG)) {\n if (seen.image.has(id) || !providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n out.push({ kind: \"image\", id, def })\n }\n }\n if (!filter.kind || filter.kind === \"video\") {\n for (const [id, def] of Object.entries(ov.video)) {\n if (!providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n seen.video.add(id)\n out.push({ kind: \"video\", id, def })\n }\n for (const [id, def] of Object.entries(VIDEO_MODEL_CATALOG)) {\n if (seen.video.has(id) || !providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n out.push({ kind: \"video\", id, def })\n }\n }\n if (!filter.kind || filter.kind === \"audio\") {\n for (const [id, def] of Object.entries(ov.audio)) {\n if (!providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n seen.audio.add(id)\n out.push({ kind: \"audio\", id, def })\n }\n for (const [id, def] of Object.entries(AUDIO_MODEL_CATALOG)) {\n if (seen.audio.has(id) || !providerMatches(def.provider)) continue\n if (filter.agentVisibleOnly && !def.agentVisible) continue\n out.push({ kind: \"audio\", id, def })\n }\n }\n if (!filter.kind || filter.kind === \"voice\") {\n for (const v of ov.voice) {\n if (!providerMatches(v.provider)) continue\n seen.voice.add(v.catalogId)\n out.push({ kind: \"voice\", id: v.catalogId, voice: v })\n }\n for (const v of VOICE_CATALOG) {\n if (seen.voice.has(v.catalogId) || !providerMatches(v.provider)) continue\n out.push({ kind: \"voice\", id: v.catalogId, voice: v })\n }\n }\n if (!filter.kind || filter.kind === \"llm\") {\n for (const [id, pricing] of Object.entries(ov.llm)) {\n if (!providerMatches(pricing.provider)) continue\n seen.llm.add(id)\n out.push({ kind: \"llm\", id, canonicalId: id, pricing, provider: pricing.provider })\n }\n for (const [id, pricing] of Object.entries(LLM_PRICING_CATALOG)) {\n if (seen.llm.has(id) || !providerMatches(pricing.provider)) continue\n seen.llm.add(id)\n out.push({ kind: \"llm\", id, canonicalId: id, pricing, provider: pricing.provider })\n }\n // Known ids with no pricing row yet (see `LlmModelId`'s doc comment in\n // llm/catalog.ts) — surfaced unpriced rather than silently dropped.\n for (const { id, provider } of listUnpricedKnownLlmIds()) {\n if (seen.llm.has(id) || !providerMatches(provider)) continue\n out.push({ kind: \"llm\", id, canonicalId: id, pricing: undefined, provider })\n }\n }\n\n // Capability + tag filters are AND-sets, applied over the enrichment tag\n // vocabulary (capabilities are emitted as tags). Skipped entirely when\n // unset so the common path stays allocation-free.\n const required = [...(filter.capabilities ?? []), ...(filter.tags ?? [])]\n if (required.length === 0) return out\n return out.filter(model => required.every(tag => modelHasTag(model, tag)))\n}\n\n/**\n * Provider-centric view — every model a provider offers across all kinds\n * (llm / image / video / audio incl. tts/stt/s2s). This is the \"provider\n * catalog\" (openai, google, anthropic, replicate, openrouter, …): a\n * derived query over the kind-organized catalogs, NOT a parallel store.\n *\n * When `provider` names a router or a routed endpoint (openrouter, requesty,\n * huggingface, opencode, opencode-go), this also folds in that provider's\n * generated route table (`listRouterLlmRoutes`) — the provider's full\n * surface, not just what happens to be curated into `LLM_PRICING_CATALOG`.\n * The emitted id is whatever `formatModelRef` produces for the resolved ref:\n * `vendor/product@router` for the vendor-namespacing routers, and the bare\n * `opencode-go/glm-5.3` / `opencode/claude-sonnet-4-6` form for the two\n * OpenCode endpoints, whose route IS the id's leading segment (so there is no\n * `@route` to append). OpenRouter's routes are already spread into\n * `LLM_PRICING_CATALOG` (bare `vendor/product` ids, `llm/catalog.ts`), so its\n * router-table entries are deduped against the bare ids `listModels` already\n * returned; Requesty, HuggingFace and the two OpenCode endpoints have no such\n * overlap, so their route table entries are added in full. Deliberately NOT\n * achieved by spreading `REQUESTY_ROUTES`/`HUGGINGFACE_ROUTES`/\n * `OPENCODE_*_ROUTES` into `LLM_PRICING_CATALOG` itself — that catalog is the\n * legacy bare-id path, and a bare id must keep meaning direct-vendor pricing\n * (`route-identity/index.ts`).\n */\nexport function getModelsByProvider(provider: string): ResolvedModel[] {\n const models = listModels({ provider })\n const routerRoutes = listRouterLlmRoutes(provider)\n if (routerRoutes.length === 0) return models\n\n const existingIds = new Set(models.map(m => m.id))\n const routed: ResolvedModel[] = []\n for (const route of routerRoutes) {\n const bareId = `${route.vendor}/${route.product}`\n if (existingIds.has(bareId)) continue\n const id = formatModelRef(route.ref)\n routed.push({ kind: \"llm\", id, canonicalId: id, pricing: route.pricing, provider: route.pricing.provider })\n }\n return [...models, ...routed]\n}\n\n/**\n * Returns the platform a model's adapter is **statically pinned** to,\n * if known. ONLY meaningful for image / video / audio — those adapters\n * are constructed per-platform (Replicate adapter, MiniMax adapter…),\n * so the model's `def.provider` IS the runtime connector.\n *\n * For LLM, returns `undefined` — the runtime connector is determined\n * at call time by `pickLlmConnector(connectors, parseModelId(id).provider)`\n * against the guild's installed connectors, NOT by the model id alone.\n * The same `anthropic/claude-sonnet-4-5` can route through OpenRouter\n * OR direct Anthropic depending on which connectors the guild has\n * installed. Recording call sites MUST pass the actual `connectorUsed`\n * they invoked; do not infer from id.\n *\n * Use case: image/video workflow steps fetch `model.def.provider`\n * directly (no ambiguity). LLM call sites use the runtime resolver.\n */\nexport function getStaticModelProvider(\n model: ResolvedModel\n): string | undefined {\n switch (model.kind) {\n case \"image\":\n case \"video\":\n case \"audio\":\n return model.def.provider\n case \"voice\":\n return model.voice.provider\n case \"llm\":\n // Runtime routing — caller knows, we don't.\n return undefined\n }\n}\n\n/**\n * Resolves an id to its canonical catalog key across kinds. For ids that\n * have no alias, returns the id unchanged. Used by callers that want to\n * normalize before persisting (e.g., `byok_usage` rows).\n */\nexport function resolveAlias(id: string): string {\n const ov = getMergedOverlay()\n const key = followAlias(id, ov)\n if (ov.image[key] || ov.video[key] || ov.audio[key]) return key\n if (overlayVoice(ov, key)) return key\n if (ov.llm[key]) return key\n if (IMAGE_MODEL_CATALOG[key]) return key\n if (VIDEO_MODEL_CATALOG[key]) return key\n if (AUDIO_MODEL_CATALOG[key]) return key\n if (VOICE_INDEX.has(key)) return key\n return resolveLlmAlias(key)\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { CatalogProviderSchema } from './chunk-WG4F6IRS.mjs';
2
- import { resolvePricing, resolveAlias, OPENCODE_GO_ROUTES, OPENCODE_ZEN_ROUTES, OPENROUTER_ROUTES, DEFAULT_PRICING } from './chunk-VZCVDFNS.mjs';
2
+ import { resolvePricing, resolveAlias, OPENCODE_GO_ROUTES, OPENCODE_ZEN_ROUTES, OPENROUTER_ROUTES, DEFAULT_PRICING } from './chunk-WDIFBFY5.mjs';
3
3
 
4
4
  /**
5
5
  * @agentproto/model-catalog v0.1.0
@@ -5714,7 +5714,7 @@ var HUGGINGFACE_ROUTES = {
5714
5714
  inputPer1M: 0.07,
5715
5715
  outputPer1M: 0.2,
5716
5716
  supportsTools: true,
5717
- supportsStructuredOutput: true
5717
+ supportsStructuredOutput: false
5718
5718
  }
5719
5719
  ]
5720
5720
  },
@@ -5764,7 +5764,7 @@ var HUGGINGFACE_ROUTES = {
5764
5764
  inputPer1M: 0.09,
5765
5765
  outputPer1M: 0.58,
5766
5766
  supportsTools: true,
5767
- supportsStructuredOutput: false
5767
+ supportsStructuredOutput: true
5768
5768
  },
5769
5769
  {
5770
5770
  provider: "nscale",
@@ -6061,7 +6061,7 @@ var HUGGINGFACE_ROUTES = {
6061
6061
  inputPer1M: 0.29,
6062
6062
  outputPer1M: 2.4,
6063
6063
  supportsTools: true,
6064
- supportsStructuredOutput: false
6064
+ supportsStructuredOutput: true
6065
6065
  },
6066
6066
  {
6067
6067
  provider: "novita",
@@ -6156,7 +6156,7 @@ var HUGGINGFACE_ROUTES = {
6156
6156
  inputPer1M: 0.71,
6157
6157
  outputPer1M: 4.25,
6158
6158
  supportsTools: true,
6159
- supportsStructuredOutput: true
6159
+ supportsStructuredOutput: false
6160
6160
  },
6161
6161
  {
6162
6162
  provider: "scaleway",
@@ -6299,6 +6299,15 @@ var HUGGINGFACE_ROUTES = {
6299
6299
  "Qwen/Qwen3.8-27B": {
6300
6300
  wireId: "Qwen/Qwen3.8-27B",
6301
6301
  providers: [
6302
+ {
6303
+ provider: "cerebras",
6304
+ status: "live",
6305
+ contextLength: 65536,
6306
+ inputPer1M: 0.99,
6307
+ outputPer1M: 1.49,
6308
+ supportsTools: true,
6309
+ supportsStructuredOutput: true
6310
+ },
6302
6311
  {
6303
6312
  provider: "deepinfra",
6304
6313
  status: "live",
@@ -6405,7 +6414,7 @@ var HUGGINGFACE_ROUTES = {
6405
6414
  inputPer1M: 1,
6406
6415
  outputPer1M: 3,
6407
6416
  supportsTools: true,
6408
- supportsStructuredOutput: true
6417
+ supportsStructuredOutput: false
6409
6418
  },
6410
6419
  {
6411
6420
  provider: "novita",
@@ -6418,6 +6427,20 @@ var HUGGINGFACE_ROUTES = {
6418
6427
  }
6419
6428
  ]
6420
6429
  },
6430
+ "XiaomiMiMo/MiMo-V2.6-Flash-RL": {
6431
+ wireId: "XiaomiMiMo/MiMo-V2.6-Flash-RL",
6432
+ providers: [
6433
+ {
6434
+ provider: "novita",
6435
+ status: "live",
6436
+ contextLength: 1048576,
6437
+ inputPer1M: 0.14,
6438
+ outputPer1M: 0.28,
6439
+ supportsTools: true,
6440
+ supportsStructuredOutput: false
6441
+ }
6442
+ ]
6443
+ },
6421
6444
  "aisingapore/Gemma-SEA-LION-v4-27B-IT": {
6422
6445
  wireId: "aisingapore/Gemma-SEA-LION-v4-27B-IT",
6423
6446
  providers: [
@@ -6489,8 +6512,8 @@ var HUGGINGFACE_ROUTES = {
6489
6512
  contextLength: 64e3,
6490
6513
  inputPer1M: 0.7,
6491
6514
  outputPer1M: 2.5,
6492
- supportsTools: false,
6493
- supportsStructuredOutput: false
6515
+ supportsTools: true,
6516
+ supportsStructuredOutput: true
6494
6517
  }
6495
6518
  ]
6496
6519
  },
@@ -6517,25 +6540,7 @@ var HUGGINGFACE_ROUTES = {
6517
6540
  inputPer1M: 0.7,
6518
6541
  outputPer1M: 2.5,
6519
6542
  supportsTools: false,
6520
- supportsStructuredOutput: false
6521
- }
6522
- ]
6523
- },
6524
- "deepseek-ai/DeepSeek-R1-Distill-Llama-70B": {
6525
- wireId: "deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
6526
- providers: [
6527
- {
6528
- provider: "featherless-ai",
6529
- status: "live"
6530
- },
6531
- {
6532
- provider: "novita",
6533
- status: "live",
6534
- contextLength: 8192,
6535
- inputPer1M: 0.8,
6536
- outputPer1M: 0.8,
6537
- supportsTools: false,
6538
- supportsStructuredOutput: false
6543
+ supportsStructuredOutput: true
6539
6544
  }
6540
6545
  ]
6541
6546
  },
@@ -6553,7 +6558,7 @@ var HUGGINGFACE_ROUTES = {
6553
6558
  inputPer1M: 0.05,
6554
6559
  outputPer1M: 0.05,
6555
6560
  supportsTools: false,
6556
- supportsStructuredOutput: true
6561
+ supportsStructuredOutput: false
6557
6562
  }
6558
6563
  ]
6559
6564
  },
@@ -6571,7 +6576,7 @@ var HUGGINGFACE_ROUTES = {
6571
6576
  inputPer1M: 0.2,
6572
6577
  outputPer1M: 0.2,
6573
6578
  supportsTools: false,
6574
- supportsStructuredOutput: true
6579
+ supportsStructuredOutput: false
6575
6580
  }
6576
6581
  ]
6577
6582
  },
@@ -6640,15 +6645,6 @@ var HUGGINGFACE_ROUTES = {
6640
6645
  {
6641
6646
  provider: "featherless-ai",
6642
6647
  status: "live"
6643
- },
6644
- {
6645
- provider: "novita",
6646
- status: "live",
6647
- contextLength: 131072,
6648
- inputPer1M: 0.27,
6649
- outputPer1M: 1,
6650
- supportsTools: true,
6651
- supportsStructuredOutput: true
6652
6648
  }
6653
6649
  ]
6654
6650
  },
@@ -6667,15 +6663,6 @@ var HUGGINGFACE_ROUTES = {
6667
6663
  {
6668
6664
  provider: "featherless-ai",
6669
6665
  status: "live"
6670
- },
6671
- {
6672
- provider: "novita",
6673
- status: "live",
6674
- contextLength: 131072,
6675
- inputPer1M: 0.27,
6676
- outputPer1M: 1,
6677
- supportsTools: true,
6678
- supportsStructuredOutput: true
6679
6666
  }
6680
6667
  ]
6681
6668
  },
@@ -6694,29 +6681,6 @@ var HUGGINGFACE_ROUTES = {
6694
6681
  {
6695
6682
  provider: "featherless-ai",
6696
6683
  status: "live"
6697
- },
6698
- {
6699
- provider: "novita",
6700
- status: "live",
6701
- contextLength: 163840,
6702
- inputPer1M: 0.269,
6703
- outputPer1M: 0.4,
6704
- supportsTools: true,
6705
- supportsStructuredOutput: true
6706
- }
6707
- ]
6708
- },
6709
- "deepseek-ai/DeepSeek-V3.2-Exp": {
6710
- wireId: "deepseek-ai/DeepSeek-V3.2-Exp",
6711
- providers: [
6712
- {
6713
- provider: "novita",
6714
- status: "live",
6715
- contextLength: 163840,
6716
- inputPer1M: 0.27,
6717
- outputPer1M: 0.41,
6718
- supportsTools: true,
6719
- supportsStructuredOutput: true
6720
6684
  }
6721
6685
  ]
6722
6686
  },
@@ -6824,15 +6788,6 @@ var HUGGINGFACE_ROUTES = {
6824
6788
  "deepseek-ai/DeepSeek-V4-Pro": {
6825
6789
  wireId: "deepseek-ai/DeepSeek-V4-Pro",
6826
6790
  providers: [
6827
- {
6828
- provider: "baseten",
6829
- status: "live",
6830
- contextLength: 1048576,
6831
- inputPer1M: 1.74,
6832
- outputPer1M: 3.48,
6833
- supportsTools: true,
6834
- supportsStructuredOutput: false
6835
- },
6836
6791
  {
6837
6792
  provider: "deepinfra",
6838
6793
  status: "live",
@@ -7018,7 +6973,7 @@ var HUGGINGFACE_ROUTES = {
7018
6973
  inputPer1M: 0.13,
7019
6974
  outputPer1M: 0.4,
7020
6975
  supportsTools: true,
7021
- supportsStructuredOutput: true
6976
+ supportsStructuredOutput: false
7022
6977
  },
7023
6978
  {
7024
6979
  provider: "scaleway",
@@ -7026,7 +6981,7 @@ var HUGGINGFACE_ROUTES = {
7026
6981
  inputPer1M: 0.285,
7027
6982
  outputPer1M: 0.57,
7028
6983
  supportsTools: true,
7029
- supportsStructuredOutput: false
6984
+ supportsStructuredOutput: true
7030
6985
  }
7031
6986
  ]
7032
6987
  },
@@ -7037,8 +6992,8 @@ var HUGGINGFACE_ROUTES = {
7037
6992
  provider: "deepinfra",
7038
6993
  status: "live",
7039
6994
  contextLength: 262144,
7040
- inputPer1M: 0.13,
7041
- outputPer1M: 0.38,
6995
+ inputPer1M: 0.2,
6996
+ outputPer1M: 0.4,
7042
6997
  supportsTools: true,
7043
6998
  supportsStructuredOutput: true
7044
6999
  },
@@ -7132,14 +7087,14 @@ var HUGGINGFACE_ROUTES = {
7132
7087
  inputPer1M: 0.06,
7133
7088
  outputPer1M: 0.18,
7134
7089
  supportsTools: true,
7135
- supportsStructuredOutput: false
7090
+ supportsStructuredOutput: true
7136
7091
  },
7137
7092
  {
7138
7093
  provider: "novita",
7139
7094
  status: "live",
7140
7095
  contextLength: 262144,
7141
- inputPer1M: 0,
7142
- outputPer1M: 0,
7096
+ inputPer1M: 0.075,
7097
+ outputPer1M: 0.22,
7143
7098
  supportsTools: true,
7144
7099
  supportsStructuredOutput: false
7145
7100
  }
@@ -7415,15 +7370,6 @@ var HUGGINGFACE_ROUTES = {
7415
7370
  "moonshotai/Kimi-K2.6": {
7416
7371
  wireId: "moonshotai/Kimi-K2.6",
7417
7372
  providers: [
7418
- {
7419
- provider: "baseten",
7420
- status: "live",
7421
- contextLength: 262e3,
7422
- inputPer1M: 0.95,
7423
- outputPer1M: 4,
7424
- supportsTools: true,
7425
- supportsStructuredOutput: true
7426
- },
7427
7373
  {
7428
7374
  provider: "deepinfra",
7429
7375
  status: "live",
@@ -7451,15 +7397,6 @@ var HUGGINGFACE_ROUTES = {
7451
7397
  "moonshotai/Kimi-K2.7-Code": {
7452
7398
  wireId: "moonshotai/Kimi-K2.7-Code",
7453
7399
  providers: [
7454
- {
7455
- provider: "baseten",
7456
- status: "live",
7457
- contextLength: 262e3,
7458
- inputPer1M: 0.95,
7459
- outputPer1M: 4,
7460
- supportsTools: true,
7461
- supportsStructuredOutput: true
7462
- },
7463
7400
  {
7464
7401
  provider: "deepinfra",
7465
7402
  status: "live",
@@ -7467,7 +7404,7 @@ var HUGGINGFACE_ROUTES = {
7467
7404
  inputPer1M: 0.68,
7468
7405
  outputPer1M: 3.4,
7469
7406
  supportsTools: true,
7470
- supportsStructuredOutput: false
7407
+ supportsStructuredOutput: true
7471
7408
  },
7472
7409
  {
7473
7410
  provider: "featherless-ai",
@@ -7522,8 +7459,8 @@ var HUGGINGFACE_ROUTES = {
7522
7459
  provider: "together",
7523
7460
  status: "live",
7524
7461
  contextLength: 1048576,
7525
- inputPer1M: 3,
7526
- outputPer1M: 15,
7462
+ inputPer1M: 2.7,
7463
+ outputPer1M: 13.5,
7527
7464
  supportsTools: true,
7528
7465
  supportsStructuredOutput: false
7529
7466
  }
@@ -7628,7 +7565,7 @@ var HUGGINGFACE_ROUTES = {
7628
7565
  inputPer1M: 0.05,
7629
7566
  outputPer1M: 0.25,
7630
7567
  supportsTools: true,
7631
- supportsStructuredOutput: true
7568
+ supportsStructuredOutput: false
7632
7569
  },
7633
7570
  {
7634
7571
  provider: "nscale",
@@ -7784,7 +7721,7 @@ var HUGGINGFACE_ROUTES = {
7784
7721
  inputPer1M: 0.1,
7785
7722
  outputPer1M: 0.3,
7786
7723
  supportsTools: true,
7787
- supportsStructuredOutput: false
7724
+ supportsStructuredOutput: true
7788
7725
  },
7789
7726
  {
7790
7727
  provider: "featherless-ai",
@@ -7802,7 +7739,7 @@ var HUGGINGFACE_ROUTES = {
7802
7739
  inputPer1M: 0.2,
7803
7740
  outputPer1M: 1.15,
7804
7741
  supportsTools: true,
7805
- supportsStructuredOutput: false
7742
+ supportsStructuredOutput: true
7806
7743
  },
7807
7744
  {
7808
7745
  provider: "featherless-ai",
@@ -7810,23 +7747,6 @@ var HUGGINGFACE_ROUTES = {
7810
7747
  }
7811
7748
  ]
7812
7749
  },
7813
- "swiss-ai/Apertus-70B-Instruct-2509": {
7814
- wireId: "swiss-ai/Apertus-70B-Instruct-2509",
7815
- providers: [
7816
- {
7817
- provider: "featherless-ai",
7818
- status: "live"
7819
- },
7820
- {
7821
- provider: "publicai",
7822
- status: "live",
7823
- inputPer1M: 0.82,
7824
- outputPer1M: 2.92,
7825
- supportsTools: true,
7826
- supportsStructuredOutput: true
7827
- }
7828
- ]
7829
- },
7830
7750
  "swiss-ai/Apertus-8B-Instruct-2509": {
7831
7751
  wireId: "swiss-ai/Apertus-8B-Instruct-2509",
7832
7752
  providers: [
@@ -7840,23 +7760,6 @@ var HUGGINGFACE_ROUTES = {
7840
7760
  }
7841
7761
  ]
7842
7762
  },
7843
- "swiss-ai/Apertus-v1.5-70B": {
7844
- wireId: "swiss-ai/Apertus-v1.5-70B",
7845
- providers: [
7846
- {
7847
- provider: "featherless-ai",
7848
- status: "live"
7849
- },
7850
- {
7851
- provider: "publicai",
7852
- status: "live",
7853
- inputPer1M: 0.82,
7854
- outputPer1M: 2.92,
7855
- supportsTools: true,
7856
- supportsStructuredOutput: true
7857
- }
7858
- ]
7859
- },
7860
7763
  "tencent/Hy3": {
7861
7764
  wireId: "tencent/Hy3",
7862
7765
  providers: [
@@ -7885,7 +7788,7 @@ var HUGGINGFACE_ROUTES = {
7885
7788
  inputPer1M: 0.834,
7886
7789
  outputPer1M: 2.501,
7887
7790
  supportsTools: true,
7888
- supportsStructuredOutput: true
7791
+ supportsStructuredOutput: false
7889
7792
  },
7890
7793
  {
7891
7794
  provider: "novita",
@@ -7901,15 +7804,6 @@ var HUGGINGFACE_ROUTES = {
7901
7804
  "thinkingmachines/Inkling": {
7902
7805
  wireId: "thinkingmachines/Inkling",
7903
7806
  providers: [
7904
- {
7905
- provider: "baseten",
7906
- status: "live",
7907
- contextLength: 1048576,
7908
- inputPer1M: 1,
7909
- outputPer1M: 4.05,
7910
- supportsTools: true,
7911
- supportsStructuredOutput: true
7912
- },
7913
7807
  {
7914
7808
  provider: "deepinfra",
7915
7809
  status: "live",
@@ -7917,7 +7811,7 @@ var HUGGINGFACE_ROUTES = {
7917
7811
  inputPer1M: 0.95,
7918
7812
  outputPer1M: 4.05,
7919
7813
  supportsTools: true,
7920
- supportsStructuredOutput: false
7814
+ supportsStructuredOutput: true
7921
7815
  },
7922
7816
  {
7923
7817
  provider: "fireworks-ai",
@@ -7940,15 +7834,6 @@ var HUGGINGFACE_ROUTES = {
7940
7834
  "thinkingmachines/Inkling-Small": {
7941
7835
  wireId: "thinkingmachines/Inkling-Small",
7942
7836
  providers: [
7943
- {
7944
- provider: "baseten",
7945
- status: "live",
7946
- contextLength: 1048576,
7947
- inputPer1M: 0.5,
7948
- outputPer1M: 1.2,
7949
- supportsTools: true,
7950
- supportsStructuredOutput: true
7951
- },
7952
7837
  {
7953
7838
  provider: "deepinfra",
7954
7839
  status: "live",
@@ -8143,15 +8028,6 @@ var HUGGINGFACE_ROUTES = {
8143
8028
  "zai-org/GLM-4.7": {
8144
8029
  wireId: "zai-org/GLM-4.7",
8145
8030
  providers: [
8146
- {
8147
- provider: "baseten",
8148
- status: "live",
8149
- contextLength: 2e5,
8150
- inputPer1M: 0.6,
8151
- outputPer1M: 2.2,
8152
- supportsTools: true,
8153
- supportsStructuredOutput: true
8154
- },
8155
8031
  {
8156
8032
  provider: "deepinfra",
8157
8033
  status: "live",
@@ -8266,17 +8142,6 @@ var HUGGINGFACE_ROUTES = {
8266
8142
  }
8267
8143
  ]
8268
8144
  },
8269
- "zai-org/GLM-5.1-FP8": {
8270
- wireId: "zai-org/GLM-5.1-FP8",
8271
- providers: [
8272
- {
8273
- provider: "zai-org",
8274
- status: "live",
8275
- supportsTools: true,
8276
- supportsStructuredOutput: false
8277
- }
8278
- ]
8279
- },
8280
8145
  "zai-org/GLM-5.2": {
8281
8146
  wireId: "zai-org/GLM-5.2",
8282
8147
  providers: [
@@ -8302,15 +8167,6 @@ var HUGGINGFACE_ROUTES = {
8302
8167
  provider: "featherless-ai",
8303
8168
  status: "live"
8304
8169
  },
8305
- {
8306
- provider: "fireworks-ai",
8307
- status: "live",
8308
- contextLength: 1048576,
8309
- inputPer1M: 1.4,
8310
- outputPer1M: 4.4,
8311
- supportsTools: true,
8312
- supportsStructuredOutput: true
8313
- },
8314
8170
  {
8315
8171
  provider: "novita",
8316
8172
  status: "live",
@@ -8836,5 +8692,5 @@ function diagnoseModelRef(input) {
8836
8692
  }
8837
8693
 
8838
8694
  export { InvalidModelRefError, OPENROUTER_VARIANTS, clearCustomRoutes, diagnoseModelRef, formatModelRef, isModelRefString, listRouterLlmRoutes, parseModelRef, registerCustomRoute, resolveCustomRoute, resolveLlmModelRoute, stripAnthropicNativeVendor, stripFixedNativeVendor, stripRouteSuffix, tryParseModelRef };
8839
- //# sourceMappingURL=chunk-D3I73UJI.mjs.map
8840
- //# sourceMappingURL=chunk-D3I73UJI.mjs.map
8695
+ //# sourceMappingURL=chunk-N23C5AL6.mjs.map
8696
+ //# sourceMappingURL=chunk-N23C5AL6.mjs.map