@broberg/ai-sdk 0.61.1 → 0.62.1

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.
package/dist/pricing.d.ts CHANGED
@@ -22,7 +22,7 @@ interface MediaPrice {
22
22
  * ONE date for the table rather than trusting every row's own: a row added later
23
23
  * with a fresh date would otherwise pull the table's average forward while the
24
24
  * older rows sat unrevised. Freshness reads the OLDEST answer, and this is it. */
25
- declare const MEDIA_PRICING_CHECKED_AT = "2026-09-05";
25
+ declare const MEDIA_PRICING_CHECKED_AT = "2026-10-11";
26
26
  /** Default clip length billed when the caller passes no `durationSec`.
27
27
  *
28
28
  * It is an ASSUMPTION, not a measurement — the provider does not tell us how long
package/dist/pricing.js CHANGED
@@ -12,8 +12,8 @@ import {
12
12
  pricingGeneratedAt,
13
13
  resetPricingWarningForTests,
14
14
  warnIfPricingStale
15
- } from "./chunk-BOZYLPIM.js";
16
- import "./chunk-QVMGFHCF.js";
15
+ } from "./chunk-DLBOYUNF.js";
16
+ import "./chunk-D332SR5V.js";
17
17
  export {
18
18
  DEFAULT_CLIP_SEC,
19
19
  MEDIA_PRICING_CHECKED_AT,
@@ -770,6 +770,11 @@ type AvailabilityStatus = "available" | "suspended" | "unknown";
770
770
  /** Where a model's current availability came from: the curated default seed,
771
771
  * or a live provider refresh (Anthropic GET /v1/models). */
772
772
  type AvailabilitySource = "default" | "refresh";
773
+ /** What a model IS, so a picker can offer only chat models in a chat dropdown (F022.6). */
774
+ type ModelKind = "chat" | "embedding" | "judge";
775
+ /** The provider's price/quality step, as a picker labels it (F022.6). Not a tier:
776
+ * tiers route calls, grades only describe a row. */
777
+ type ModelGrade = "cheap" | "standard" | "strong";
773
778
  /** One row of the shared status read — what a UI model-picker renders. */
774
779
  interface ModelStatus {
775
780
  /** Canonical provider model id, e.g. "claude-fable-5". */
@@ -783,6 +788,16 @@ interface ModelStatus {
783
788
  /** Friendly reason, e.g. "suspended — US export-control directive (2026-06-12)". */
784
789
  note?: string;
785
790
  source: AvailabilitySource;
791
+ /** F022.6 — chat / embedding / judge. */
792
+ kind: ModelKind;
793
+ /** F022.6 — exactly one row per provider carries this: the model a picker
794
+ * pre-selects. Always a pinned (non-floating), priced id. */
795
+ default?: true;
796
+ /** F022.6 — present on the cheap / standard / strong pick for a provider. */
797
+ grade?: ModelGrade;
798
+ /** F022.6 — the id is a moving alias (`-latest`): the provider can swap the
799
+ * model behind it without a deploy. Never the default (D-385d97). */
800
+ floating?: true;
786
801
  }
787
802
  /** Result of resolveModel — the spawn / call path consumes this synchronously. */
788
803
  interface ResolveResult {
@@ -1 +1 @@
1
- export { q as AvailabilitySource, r as AvailabilityStatus, Q as ModelStatus, S as ModelUnavailableError, Z as ResolveOptions, _ as ResolveResult, a0 as TierDescription, a7 as describeTier, a8 as listModels, ab as resolveModel } from './registry-VqJrONWk.js';
1
+ export { q as AvailabilitySource, r as AvailabilityStatus, Q as ModelStatus, S as ModelUnavailableError, Z as ResolveOptions, _ as ResolveResult, a0 as TierDescription, a7 as describeTier, a8 as listModels, ab as resolveModel } from './registry-BEyz-O5V.js';
package/dist/registry.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  describeTier,
4
4
  listModels,
5
5
  resolveModel
6
- } from "./chunk-VMQSIO3J.js";
7
- import "./chunk-QVMGFHCF.js";
6
+ } from "./chunk-KWHOVIZO.js";
7
+ import "./chunk-D332SR5V.js";
8
8
  export {
9
9
  ModelUnavailableError,
10
10
  describeTier,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broberg/ai-sdk",
3
- "version": "0.61.1",
3
+ "version": "0.62.1",
4
4
  "description": "Unified AI/LLM SDK — one facade, all providers, all capabilities, first-class cost control on every call.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",