@kenkaiiii/gg-core 5.61.1 → 5.63.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.
@@ -164,12 +164,17 @@ var MODELS = [
164
164
  // maxThinkingLevel: "max",
165
165
  // },
166
166
  {
167
- // Released 2026-07-24 — "For complex agentic coding and enterprise work".
168
- // Near-Fable capability at half the price ($5/$25 vs $10/$50). Adaptive
169
- // thinking with the full effort ladder (low→max, xhigh included); dateless
170
- // ID is the canonical pinned snapshot (post-4.6 naming scheme).
171
- id: "claude-opus-5",
172
- name: "Claude Opus 5",
167
+ // Released 2026-09-22 — "built for long-running agentic coding and knowledge
168
+ // work". Fable-5.1-class output at $4/$20 MTok (40% below Opus 5), 1M
169
+ // context, 128K output, image input. Same always-on adaptive thinking with
170
+ // the full effort ladder (low→max, xhigh included; the API-side default
171
+ // effort is `medium`) and the same Fable 5.1 constraints gg-ai already
172
+ // handles (no forced tool use, thinking can't be disabled). Also eligible
173
+ // for the gated `speed: "fast"` research preview (waitlist-only, premium
174
+ // $8/$40 pricing — not wired up). Opus 5 is retired here — a session that
175
+ // still has it saved falls back to the provider default on next start.
176
+ id: "claude-opus-5-5",
177
+ name: "Claude Opus 5.5",
173
178
  provider: "anthropic",
174
179
  contextWindow: 1e6,
175
180
  maxOutputTokens: 128e3,
@@ -316,16 +321,21 @@ var MODELS = [
316
321
  maxThinkingLevel: "max"
317
322
  },
318
323
  // ── xAI (Grok) ─────────────────────────────────────────
319
- // Grok 4.6 (released 2026-08-12) is xAI's flagship for coding, agentic tasks,
320
- // and knowledge work, with a focus on long-running agents — 500K context,
321
- // text+image input, and a `reasoning_effort` ladder that adds a new `xhigh`
322
- // top rung (low/medium/high default/xhigh; reasoning still can't be fully
324
+ // Grok 4.7 (released 2026-09-21) — xAI's flagship for coding, agentic tasks,
325
+ // and knowledge work: a new, larger base model with a longer RL run weighted
326
+ // toward hours-long tasks, plus stronger self-verification and long-context
327
+ // management. 500K context, text+image input, and a `reasoning_effort`
328
+ // ladder of low/medium/high default/xhigh (reasoning still can't be fully
323
329
  // disabled). $2/$6 per MTok under 200K prompt tokens ($4/$12 at or above),
324
- // and it's the default model of the Grok Build coding agent. xAI advertises "no text output limit"; we keep the same
325
- // 131K practical cap as 4.5 for budget predictability and input headroom.
326
- {
327
- id: "grok-4.6",
328
- name: "Grok 4.6",
330
+ // and it's the default model of the Grok Build coding agent. xAI advertises
331
+ // "no fixed text output limit"; we keep the 131K practical cap for budget
332
+ // predictability and input headroom. (A faster "Grok 4.7 Fast" variant
333
+ // exists but is Cursor/Grok Build-only — not on the public API — so it isn't
334
+ // registered.) Only the newest Grok ships — 4.6/4.5 are superseded and
335
+ // retired; saved sessions on them fall back to this default.
336
+ {
337
+ id: "grok-4.7",
338
+ name: "Grok 4.7",
329
339
  provider: "xai",
330
340
  contextWindow: 5e5,
331
341
  maxOutputTokens: 131072,
@@ -335,24 +345,6 @@ var MODELS = [
335
345
  costTier: "medium",
336
346
  maxThinkingLevel: "xhigh"
337
347
  },
338
- // Grok 4.5 (released 2026-07-08) — superseded by 4.6 but retained as an explicit option. 500K context, text+image input,
339
- // configurable `reasoning_effort` (low/medium/high, server default high;
340
- // reasoning can't be fully disabled). Served over the OpenAI-compatible API
341
- // at https://api.x.ai/v1 (API key from console.x.ai). xAI hasn't published an
342
- // official max-output cap for 4.5; 131K matches the Grok Responses ceiling
343
- // third-party integrations use.
344
- {
345
- id: "grok-4.5",
346
- name: "Grok 4.5",
347
- provider: "xai",
348
- contextWindow: 5e5,
349
- maxOutputTokens: 131072,
350
- supportsThinking: true,
351
- supportsImages: true,
352
- supportsVideo: false,
353
- costTier: "medium",
354
- maxThinkingLevel: "high"
355
- },
356
348
  // ── Gemini ─────────────────────────────────────────
357
349
  {
358
350
  id: "gemini-3.1-flash-lite",
@@ -541,44 +533,53 @@ var MODELS = [
541
533
  maxThinkingLevel: "high"
542
534
  },
543
535
  // ── Xiaomi (MiMo) ──────────────────────────────────────
544
- // Pro series: text-only coding/agentic flagship. The legacy mimo-v2-pro
545
- // auto-routes to v2.5 on 2026-06-01 and is fully deprecated by 2026-06-30.
546
- {
547
- id: "mimo-v2.5-pro",
548
- name: "MiMo-V2.5-Pro",
536
+ // MiMo-V2.6 series (released 2026-09-22, open-weight: Pro 1.02T/42B-A,
537
+ // Flash 309B/15B-A, plus a 9B Qwen distill not served over the API). Every
538
+ // V2.6 text model is natively full-modal (image + audio + video
539
+ // understanding), so the whole series takes image/video input over the same
540
+ // OpenAI-compatible base64 transport the old omni model used. API prices are
541
+ // unchanged from V2.5. The V2.5 ids (`mimo-v2.5-pro`/`mimo-v2.5`) deprecate
542
+ // on the platform 2026-10-21 and are retired here — saved sessions fall back
543
+ // to the provider default on next start.
544
+ {
545
+ // Coding/agentic flagship — highest open-weight score on Artificial
546
+ // Analysis at launch (46, tied with Grok 4.7).
547
+ id: "mimo-v2.6-pro",
548
+ name: "MiMo-V2.6-Pro",
549
549
  provider: "xiaomi",
550
550
  contextWindow: 1e6,
551
551
  maxOutputTokens: 131072,
552
552
  supportsThinking: true,
553
- supportsImages: false,
554
- supportsVideo: false,
553
+ supportsImages: true,
554
+ supportsVideo: true,
555
+ maxVideoBytes: 36 * 1024 * 1024,
555
556
  costTier: "medium",
556
557
  maxThinkingLevel: "high",
557
558
  authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
558
559
  },
559
- // UltraSpeed: lower-latency sibling of the Pro coding flagship, same
560
- // text-only capability surface, premium-priced for the throughput gain.
561
- // API-only — not served over the Token Plan endpoint, so credentials
562
- // resolve from the distinct API Credits key only (see authStorageKeys doc).
563
560
  {
564
- id: "mimo-v2.5-pro-ultraspeed",
565
- name: "MiMo-V2.5-Pro-UltraSpeed",
561
+ // Low-cost full-modal sibling (~10% of Pro's price class) — the provider's
562
+ // `low` tier, so scout sub-agents and fast routing land here.
563
+ id: "mimo-v2.6-flash",
564
+ name: "MiMo-V2.6-Flash",
566
565
  provider: "xiaomi",
567
566
  contextWindow: 1e6,
568
567
  maxOutputTokens: 131072,
569
568
  supportsThinking: true,
570
- supportsImages: false,
571
- supportsVideo: false,
572
- costTier: "high",
569
+ supportsImages: true,
570
+ supportsVideo: true,
571
+ maxVideoBytes: 36 * 1024 * 1024,
572
+ costTier: "low",
573
573
  maxThinkingLevel: "high",
574
- authStorageKeys: [XIAOMI_CREDITS_KEY]
574
+ authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
575
575
  },
576
- // Omni series: native full-modal understanding (image + audio + video).
577
- // Video/image ride the OpenAI-compatible transport as base64 data URLs
578
- // (`video_url`/`image_url`), which the shared transform already emits.
576
+ // UltraSpeed: lower-latency sibling of the Pro flagship, same full-modal
577
+ // capability surface, premium-priced for the throughput gain. API-only —
578
+ // not served over the Token Plan endpoint, so credentials resolve from the
579
+ // distinct API Credits key only (see authStorageKeys doc).
579
580
  {
580
- id: "mimo-v2.5",
581
- name: "MiMo-V2.5",
581
+ id: "mimo-v2.6-pro-ultraspeed",
582
+ name: "MiMo-V2.6-Pro-UltraSpeed",
582
583
  provider: "xiaomi",
583
584
  contextWindow: 1e6,
584
585
  maxOutputTokens: 131072,
@@ -586,9 +587,9 @@ var MODELS = [
586
587
  supportsImages: true,
587
588
  supportsVideo: true,
588
589
  maxVideoBytes: 36 * 1024 * 1024,
589
- costTier: "medium",
590
+ costTier: "high",
590
591
  maxThinkingLevel: "high",
591
- authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
592
+ authStorageKeys: [XIAOMI_CREDITS_KEY]
592
593
  },
593
594
  // ── DeepSeek ───────────────────────────────────────────
594
595
  {
@@ -724,7 +725,7 @@ function getVideoByteLimit(modelId) {
724
725
  return model.maxVideoBytes ?? DEFAULT_MAX_VIDEO_BYTES;
725
726
  }
726
727
  function getDefaultModel(provider) {
727
- if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.5-pro");
728
+ if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.6-pro");
728
729
  if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.6-sol");
729
730
  if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite");
730
731
  if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.3");
@@ -735,7 +736,7 @@ function getDefaultModel(provider) {
735
736
  return MODELS.find((m) => m.id === "Qwen/Qwen3-Coder-480B-A35B-Instruct");
736
737
  if (provider === "openrouter") return MODELS.find((m) => m.id === "qwen/qwen3.6-plus");
737
738
  if (provider === "sakana") return MODELS.find((m) => m.id === "fugu");
738
- if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.6");
739
+ if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.7");
739
740
  if (provider === "local") {
740
741
  return getModelsForProvider("local")[0] ?? PLACEHOLDER_LOCAL_MODEL;
741
742
  }