@prestyj/core 5.39.2 → 5.40.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.
@@ -87,8 +87,8 @@ interface ModelInfo {
87
87
  * - `mimo-v2.6-pro` / `mimo-v2.6-flash`: `["xiaomi", XIAOMI_CREDITS_KEY]` —
88
88
  * prefer the Token Plan, fall back to API Credits (API Credits serves
89
89
  * every MiMo model, so a Credits-only user still reaches these).
90
- * - `mimo-v2.6-pro-ultraspeed`: `[XIAOMI_CREDITS_KEY]` only — not served
91
- * over the Token Plan endpoint, so there's no fallback to it.
90
+ * - `mimo-v2.6-pro-ultraspeed`: same order — Token Plan Pro/Max serve it
91
+ * (limited-time, since 2026-11-19), and API Credits serve it on any plan.
92
92
  * - every Gemini model: `[GEMINI_API_KEY, "gemini"]` — an AI Studio API key
93
93
  * first (the user chose to pay per token, and Code Assist OAuth now
94
94
  * refuses personal accounts), then the Code Assist OAuth login.
@@ -165,7 +165,7 @@ declare function withoutPaidTier(modelId: string): string;
165
165
  * provider id (one credential per provider). Models with `authStorageKeys`
166
166
  * set (currently only Xiaomi) can prefer one endpoint and fall back to
167
167
  * another — e.g. `mimo-v2.6-pro` prefers the Token Plan but falls back to API
168
- * Credits, while the API-only `mimo-v2.6-pro-ultraspeed` has no fallback.
168
+ * Credits.
169
169
  */
170
170
  declare function getAuthStorageKeys(provider: Provider, modelId: string): string[];
171
171
  /** The preferred (first) auth-storage key for `(provider, model)` — see `getAuthStorageKeys()`. */
@@ -87,8 +87,8 @@ interface ModelInfo {
87
87
  * - `mimo-v2.6-pro` / `mimo-v2.6-flash`: `["xiaomi", XIAOMI_CREDITS_KEY]` —
88
88
  * prefer the Token Plan, fall back to API Credits (API Credits serves
89
89
  * every MiMo model, so a Credits-only user still reaches these).
90
- * - `mimo-v2.6-pro-ultraspeed`: `[XIAOMI_CREDITS_KEY]` only — not served
91
- * over the Token Plan endpoint, so there's no fallback to it.
90
+ * - `mimo-v2.6-pro-ultraspeed`: same order — Token Plan Pro/Max serve it
91
+ * (limited-time, since 2026-11-19), and API Credits serve it on any plan.
92
92
  * - every Gemini model: `[GEMINI_API_KEY, "gemini"]` — an AI Studio API key
93
93
  * first (the user chose to pay per token, and Code Assist OAuth now
94
94
  * refuses personal accounts), then the Code Assist OAuth login.
@@ -165,7 +165,7 @@ declare function withoutPaidTier(modelId: string): string;
165
165
  * provider id (one credential per provider). Models with `authStorageKeys`
166
166
  * set (currently only Xiaomi) can prefer one endpoint and fall back to
167
167
  * another — e.g. `mimo-v2.6-pro` prefers the Token Plan but falls back to API
168
- * Credits, while the API-only `mimo-v2.6-pro-ultraspeed` has no fallback.
168
+ * Credits.
169
169
  */
170
170
  declare function getAuthStorageKeys(provider: Provider, modelId: string): string[];
171
171
  /** The preferred (first) auth-storage key for `(provider, model)` — see `getAuthStorageKeys()`. */
@@ -23,7 +23,7 @@ import {
23
23
  setProviderCatalog,
24
24
  usesOpenAICodexTransport,
25
25
  withoutPaidTier
26
- } from "./chunk-WSFHVWQ4.js";
26
+ } from "./chunk-JONGQMZF.js";
27
27
  import "./chunk-DVWS2KEW.js";
28
28
  export {
29
29
  DEFAULT_MAX_VIDEO_BYTES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prestyj/core",
3
- "version": "5.39.2",
3
+ "version": "5.40.0",
4
4
  "type": "module",
5
5
  "description": "Model registry, sign-in and stored credentials, and local model discovery for apps built on @prestyj/ai. No UI, no agent loop.",
6
6
  "author": "Nolan Grout",
@@ -49,7 +49,7 @@
49
49
  "dist"
50
50
  ],
51
51
  "dependencies": {
52
- "@prestyj/ai": "5.39.2"
52
+ "@prestyj/ai": "5.40.0"
53
53
  },
54
54
  "optionalDependencies": {
55
55
  "@huggingface/transformers": "4.2.0",