@agentproto/model-catalog 0.6.0 → 0.8.0

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 (31) hide show
  1. package/dist/access/index.d.ts +3 -3
  2. package/dist/{catalog-CLQ-Bo1n.d.ts → catalog-BbfjJxKT.d.ts} +14 -1
  3. package/dist/{chunk-EXT2CSSJ.mjs → chunk-23CZZUOP.mjs} +171 -152
  4. package/dist/chunk-23CZZUOP.mjs.map +1 -0
  5. package/dist/{chunk-34LOJCOZ.mjs → chunk-3EFNFMEY.mjs} +16 -4
  6. package/dist/chunk-3EFNFMEY.mjs.map +1 -0
  7. package/dist/chunk-KPDJINN6.mjs +7121 -0
  8. package/dist/chunk-KPDJINN6.mjs.map +1 -0
  9. package/dist/{chunk-DUAH5LWG.mjs → chunk-PFEEV4K3.mjs} +3 -3
  10. package/dist/{chunk-DUAH5LWG.mjs.map → chunk-PFEEV4K3.mjs.map} +1 -1
  11. package/dist/{chunk-HWBCMKT2.mjs → chunk-WYZQKVME.mjs} +4 -4
  12. package/dist/{chunk-HWBCMKT2.mjs.map → chunk-WYZQKVME.mjs.map} +1 -1
  13. package/dist/cost/index.mjs +5 -3
  14. package/dist/curation/index.d.ts +2 -2
  15. package/dist/curation/index.mjs +5 -3
  16. package/dist/{evaluate-Df3GphJP.d.ts → evaluate-B8acQr7z.d.ts} +1 -1
  17. package/dist/{index-C2XMLGDa.d.ts → index-BWygVxw8.d.ts} +14 -1
  18. package/dist/{index-D-sc36bL.d.ts → index-Czs4wISu.d.ts} +2 -2
  19. package/dist/index.d.ts +5 -5
  20. package/dist/index.mjs +6 -5
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/llm/index.d.ts +1 -1
  23. package/dist/llm/index.mjs +1 -1
  24. package/dist/overlay/index.d.ts +1 -1
  25. package/dist/picker/index.d.ts +4 -4
  26. package/dist/route-identity/index.d.ts +108 -2
  27. package/dist/route-identity/index.mjs +3 -6755
  28. package/dist/route-identity/index.mjs.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/chunk-34LOJCOZ.mjs.map +0 -1
  31. package/dist/chunk-EXT2CSSJ.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- export { A as AccessDecision, a as AccessEffect, b as AccessEvalInput, c as AccessRule, d as AccessTarget, e as AppScope, f as evaluateAccess } from '../evaluate-Df3GphJP.js';
2
- import { R as ResolvedModel } from '../index-C2XMLGDa.js';
1
+ export { A as AccessDecision, a as AccessEffect, b as AccessEvalInput, c as AccessRule, d as AccessTarget, e as AppScope, f as evaluateAccess } from '../evaluate-B8acQr7z.js';
2
+ import { R as ResolvedModel } from '../index-BWygVxw8.js';
3
3
  import '../base-B8IIoaqg.js';
4
4
  import 'zod';
5
- import '../catalog-CLQ-Bo1n.js';
5
+ import '../catalog-BbfjJxKT.js';
6
6
  import '../image/index.js';
7
7
  import '../video/index.js';
8
8
  import '../audio/index.js';
@@ -684,6 +684,19 @@ type KnownLlmId = LlmModelId | LlmModelAlias;
684
684
  * accounting; semantics are load-bearing for migration.
685
685
  */
686
686
  declare function resolvePricing(modelId: string): LLMPricing | undefined;
687
+ /**
688
+ * Like {@link resolvePricing} but WITHOUT the substring/partial-prefix
689
+ * fallback — an id resolves ONLY on an exact catalog key or an exact alias.
690
+ * The substring scan in `resolvePricing` (intended for dated snapshots like
691
+ * `claude-sonnet-4-6-20260301` → `claude-sonnet-4`) also over-fires for
692
+ * unrelated cross-product siblings (`gemini-2.5-flash-image` substring-hits
693
+ * the `gemini-2.5-flash` row), so any caller that must PROVE a verbatim
694
+ * first-party identity — e.g. the direct-vendor route restore in
695
+ * `serviceableModelRoutes` — needs this exact form instead. Semantics of
696
+ * `resolvePricing`/`resolveAlias` are intentionally left unchanged for their
697
+ * existing callers.
698
+ */
699
+ declare function resolvePricingExact(modelId: string): LLMPricing | undefined;
687
700
  /**
688
701
  * Resolves a model id to its canonical catalog key (or the original id if no
689
702
  * match). Public surface for consumers that need the canonical id without
@@ -850,4 +863,4 @@ interface CacheStats {
850
863
  */
851
864
  declare function getCacheStats(modelId: string, usage: LLMUsageBreakdown, opts?: CalculateLLMCreditCostOptions): CacheStats;
852
865
 
853
- export { type CacheStats as C, DEFAULT_PRICING as D, type KnownLlmId as K, type LLMCreditCostResult as L, MODEL_ALIASES as M, type CalculateLLMCreditCostOptions as a, type ContextWindowEntry as b, type LLMPricing as c, type LLMUsageBreakdown as d, LLM_PRICING_CATALOG as e, type LlmModelAlias as f, type LlmModelId as g, type ModelRoute as h, calculateLLMCreditCost as i, getCacheStats as j, getModelProvider as k, resolveContextWindow as l, resolveModelRoute as m, resolvePricing as n, resolveAlias as r };
866
+ export { type CacheStats as C, DEFAULT_PRICING as D, type KnownLlmId as K, type LLMCreditCostResult as L, MODEL_ALIASES as M, type CalculateLLMCreditCostOptions as a, type ContextWindowEntry as b, type LLMPricing as c, type LLMUsageBreakdown as d, LLM_PRICING_CATALOG as e, type LlmModelAlias as f, type LlmModelId as g, type ModelRoute as h, calculateLLMCreditCost as i, getCacheStats as j, getModelProvider as k, resolveContextWindow as l, resolveModelRoute as m, resolvePricing as n, resolvePricingExact as o, resolveAlias as r };