@prestyj/core 5.22.2 → 5.24.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.
package/dist/index.cjs CHANGED
@@ -2456,54 +2456,71 @@ var MODELS = [
2456
2456
  maxThinkingLevel: "high"
2457
2457
  },
2458
2458
  // ── Xiaomi (MiMo) ──────────────────────────────────────
2459
- // Pro series: text-only coding/agentic flagship. The legacy mimo-v2-pro
2460
- // auto-routes to v2.5 on 2026-06-01 and is fully deprecated by 2026-06-30.
2459
+ // V2.6 series (2026-09) supersedes V2.5 one-for-one: pro → pro, the omni
2460
+ // `mimo-v2.5` → flash, ultraspeed → ultraspeed. The whole series is now
2461
+ // full-modality, so unlike V2.5-Pro the flagship no longer needs a separate
2462
+ // omni sibling for attachments. V2.5 entries are retired here — a session
2463
+ // that still has one saved falls back to the provider default on next start.
2464
+ //
2465
+ // Capabilities below are measured against the Token Plan host, not taken
2466
+ // from marketing copy: image and video both come back with `image_tokens` /
2467
+ // `video_tokens` in usage, and an oversized `max_tokens` is rejected with
2468
+ // "supports at most 131072 completion tokens". A deliberately oversized
2469
+ // prompt billed 1,048,570 tokens and was accepted, so the window is the
2470
+ // binary 1M below (2^20) and not the decimal 1e6 V2.5 was listed with — the
2471
+ // few-token gap is the chat envelope the server adds on top of the content.
2461
2472
  {
2462
- id: "mimo-v2.5-pro",
2463
- name: "MiMo-V2.5-Pro",
2473
+ id: "mimo-v2.6-pro",
2474
+ name: "MiMo-V2.6-Pro",
2464
2475
  provider: "xiaomi",
2465
- contextWindow: 1e6,
2476
+ contextWindow: 1048576,
2466
2477
  maxOutputTokens: 131072,
2467
2478
  supportsThinking: true,
2468
- supportsImages: false,
2469
- supportsVideo: false,
2479
+ supportsImages: true,
2480
+ supportsVideo: true,
2481
+ maxVideoBytes: 36 * 1024 * 1024,
2470
2482
  costTier: "medium",
2471
2483
  maxThinkingLevel: "high",
2472
2484
  authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
2473
2485
  },
2474
- // UltraSpeed: lower-latency sibling of the Pro coding flagship, same
2475
- // text-only capability surface, premium-priced for the throughput gain.
2476
- // API-only — not served over the Token Plan endpoint, so credentials
2477
- // resolve from the distinct API Credits key only (see authStorageKeys doc).
2486
+ // Flash: the cheap, high-frequency sibling at the same modality surface and
2487
+ // window as Pro. It is the provider's `low` tier, so scout sub-agents and
2488
+ // compaction summaries route here instead of paying Pro rates.
2478
2489
  {
2479
- id: "mimo-v2.5-pro-ultraspeed",
2480
- name: "MiMo-V2.5-Pro-UltraSpeed",
2490
+ id: "mimo-v2.6-flash",
2491
+ name: "MiMo-V2.6-Flash",
2481
2492
  provider: "xiaomi",
2482
- contextWindow: 1e6,
2493
+ contextWindow: 1048576,
2483
2494
  maxOutputTokens: 131072,
2484
2495
  supportsThinking: true,
2485
- supportsImages: false,
2486
- supportsVideo: false,
2487
- costTier: "high",
2496
+ supportsImages: true,
2497
+ supportsVideo: true,
2498
+ maxVideoBytes: 36 * 1024 * 1024,
2499
+ costTier: "low",
2488
2500
  maxThinkingLevel: "high",
2489
- authStorageKeys: [XIAOMI_CREDITS_KEY]
2501
+ authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
2490
2502
  },
2491
- // Omni series: native full-modal understanding (image + audio + video).
2492
- // Video/image ride the OpenAI-compatible transport as base64 data URLs
2493
- // (`video_url`/`image_url`), which the shared transform already emits.
2503
+ // UltraSpeed: Pro-grade quality at much lower latency, premium-priced for
2504
+ // the throughput gain. API-only — not served over the Token Plan endpoint,
2505
+ // so credentials resolve from the distinct API Credits key only (see the
2506
+ // authStorageKeys doc). The Token Plan host rejects it with "Not supported
2507
+ // model" — the known-model/wrong-host reply — where an invented id gets
2508
+ // "Unsupported model", which is how this id was confirmed without a
2509
+ // Credits key. Attachment support is inferred from the series announcement
2510
+ // ("full modality across the series") rather than measured: images are
2511
+ // enabled, video stays off until it can be verified on the platform host.
2494
2512
  {
2495
- id: "mimo-v2.5",
2496
- name: "MiMo-V2.5",
2513
+ id: "mimo-v2.6-pro-ultraspeed",
2514
+ name: "MiMo-V2.6-Pro-UltraSpeed",
2497
2515
  provider: "xiaomi",
2498
- contextWindow: 1e6,
2516
+ contextWindow: 1048576,
2499
2517
  maxOutputTokens: 131072,
2500
2518
  supportsThinking: true,
2501
2519
  supportsImages: true,
2502
- supportsVideo: true,
2503
- maxVideoBytes: 36 * 1024 * 1024,
2504
- costTier: "medium",
2520
+ supportsVideo: false,
2521
+ costTier: "high",
2505
2522
  maxThinkingLevel: "high",
2506
- authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
2523
+ authStorageKeys: [XIAOMI_CREDITS_KEY]
2507
2524
  },
2508
2525
  // ── DeepSeek ───────────────────────────────────────────
2509
2526
  {
@@ -2639,7 +2656,7 @@ function getVideoByteLimit(modelId) {
2639
2656
  return model.maxVideoBytes ?? DEFAULT_MAX_VIDEO_BYTES;
2640
2657
  }
2641
2658
  function getDefaultModel(provider) {
2642
- if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.5-pro");
2659
+ if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.6-pro");
2643
2660
  if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.6-sol");
2644
2661
  if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite");
2645
2662
  if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.3");