@prestyj/core 5.22.2 → 5.23.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.
@@ -2313,54 +2313,71 @@ var MODELS = [
2313
2313
  maxThinkingLevel: "high"
2314
2314
  },
2315
2315
  // ── Xiaomi (MiMo) ──────────────────────────────────────
2316
- // Pro series: text-only coding/agentic flagship. The legacy mimo-v2-pro
2317
- // auto-routes to v2.5 on 2026-06-01 and is fully deprecated by 2026-06-30.
2316
+ // V2.6 series (2026-09) supersedes V2.5 one-for-one: pro → pro, the omni
2317
+ // `mimo-v2.5` → flash, ultraspeed → ultraspeed. The whole series is now
2318
+ // full-modality, so unlike V2.5-Pro the flagship no longer needs a separate
2319
+ // omni sibling for attachments. V2.5 entries are retired here — a session
2320
+ // that still has one saved falls back to the provider default on next start.
2321
+ //
2322
+ // Capabilities below are measured against the Token Plan host, not taken
2323
+ // from marketing copy: image and video both come back with `image_tokens` /
2324
+ // `video_tokens` in usage, and an oversized `max_tokens` is rejected with
2325
+ // "supports at most 131072 completion tokens". A deliberately oversized
2326
+ // prompt billed 1,048,570 tokens and was accepted, so the window is the
2327
+ // binary 1M below (2^20) and not the decimal 1e6 V2.5 was listed with — the
2328
+ // few-token gap is the chat envelope the server adds on top of the content.
2318
2329
  {
2319
- id: "mimo-v2.5-pro",
2320
- name: "MiMo-V2.5-Pro",
2330
+ id: "mimo-v2.6-pro",
2331
+ name: "MiMo-V2.6-Pro",
2321
2332
  provider: "xiaomi",
2322
- contextWindow: 1e6,
2333
+ contextWindow: 1048576,
2323
2334
  maxOutputTokens: 131072,
2324
2335
  supportsThinking: true,
2325
- supportsImages: false,
2326
- supportsVideo: false,
2336
+ supportsImages: true,
2337
+ supportsVideo: true,
2338
+ maxVideoBytes: 36 * 1024 * 1024,
2327
2339
  costTier: "medium",
2328
2340
  maxThinkingLevel: "high",
2329
2341
  authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
2330
2342
  },
2331
- // UltraSpeed: lower-latency sibling of the Pro coding flagship, same
2332
- // text-only capability surface, premium-priced for the throughput gain.
2333
- // API-only — not served over the Token Plan endpoint, so credentials
2334
- // resolve from the distinct API Credits key only (see authStorageKeys doc).
2343
+ // Flash: the cheap, high-frequency sibling at the same modality surface and
2344
+ // window as Pro. It is the provider's `low` tier, so scout sub-agents and
2345
+ // compaction summaries route here instead of paying Pro rates.
2335
2346
  {
2336
- id: "mimo-v2.5-pro-ultraspeed",
2337
- name: "MiMo-V2.5-Pro-UltraSpeed",
2347
+ id: "mimo-v2.6-flash",
2348
+ name: "MiMo-V2.6-Flash",
2338
2349
  provider: "xiaomi",
2339
- contextWindow: 1e6,
2350
+ contextWindow: 1048576,
2340
2351
  maxOutputTokens: 131072,
2341
2352
  supportsThinking: true,
2342
- supportsImages: false,
2343
- supportsVideo: false,
2344
- costTier: "high",
2353
+ supportsImages: true,
2354
+ supportsVideo: true,
2355
+ maxVideoBytes: 36 * 1024 * 1024,
2356
+ costTier: "low",
2345
2357
  maxThinkingLevel: "high",
2346
- authStorageKeys: [XIAOMI_CREDITS_KEY]
2358
+ authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
2347
2359
  },
2348
- // Omni series: native full-modal understanding (image + audio + video).
2349
- // Video/image ride the OpenAI-compatible transport as base64 data URLs
2350
- // (`video_url`/`image_url`), which the shared transform already emits.
2360
+ // UltraSpeed: Pro-grade quality at much lower latency, premium-priced for
2361
+ // the throughput gain. API-only — not served over the Token Plan endpoint,
2362
+ // so credentials resolve from the distinct API Credits key only (see the
2363
+ // authStorageKeys doc). The Token Plan host rejects it with "Not supported
2364
+ // model" — the known-model/wrong-host reply — where an invented id gets
2365
+ // "Unsupported model", which is how this id was confirmed without a
2366
+ // Credits key. Attachment support is inferred from the series announcement
2367
+ // ("full modality across the series") rather than measured: images are
2368
+ // enabled, video stays off until it can be verified on the platform host.
2351
2369
  {
2352
- id: "mimo-v2.5",
2353
- name: "MiMo-V2.5",
2370
+ id: "mimo-v2.6-pro-ultraspeed",
2371
+ name: "MiMo-V2.6-Pro-UltraSpeed",
2354
2372
  provider: "xiaomi",
2355
- contextWindow: 1e6,
2373
+ contextWindow: 1048576,
2356
2374
  maxOutputTokens: 131072,
2357
2375
  supportsThinking: true,
2358
2376
  supportsImages: true,
2359
- supportsVideo: true,
2360
- maxVideoBytes: 36 * 1024 * 1024,
2361
- costTier: "medium",
2377
+ supportsVideo: false,
2378
+ costTier: "high",
2362
2379
  maxThinkingLevel: "high",
2363
- authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
2380
+ authStorageKeys: [XIAOMI_CREDITS_KEY]
2364
2381
  },
2365
2382
  // ── DeepSeek ───────────────────────────────────────────
2366
2383
  {
@@ -2496,7 +2513,7 @@ function getVideoByteLimit(modelId) {
2496
2513
  return model.maxVideoBytes ?? DEFAULT_MAX_VIDEO_BYTES;
2497
2514
  }
2498
2515
  function getDefaultModel(provider) {
2499
- if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.5-pro");
2516
+ if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.6-pro");
2500
2517
  if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.6-sol");
2501
2518
  if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite");
2502
2519
  if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.3");
@@ -2619,4 +2636,4 @@ export {
2619
2636
  getSummaryModel,
2620
2637
  getFastModel
2621
2638
  };
2622
- //# sourceMappingURL=chunk-Z3QR45IX.js.map
2639
+ //# sourceMappingURL=chunk-SQLBQOQH.js.map