@kenkaiiii/gg-core 5.103.0 → 5.105.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.
@@ -294,17 +294,16 @@ var MODELS = [
294
294
  },
295
295
  // ── OpenAI (Codex) ─────────────────────────────────────
296
296
  {
297
- // GPT-6 Astra — "Our most capable model for complex, demanding work."
298
- // (Codex catalog priority 2, listed for every ChatGPT plan, requires a
299
- // Codex client >= 0.153.0). Same split as 5.6:
300
- // 1.05M on the public Responses API, 272K on the ChatGPT plan route
301
- // (openai/codex models.json, `gpt-6-astra`). Reasoning ladder low → medium
297
+ // GPT-6.2 Astra (2026-11) — "Our most capable model for your hardest
298
+ // projects." Replaced GPT-6 Astra. $8/$40 MTok, cached input $0.40.
299
+ // 1.05M on the public Responses API (922K max input); 272K on the ChatGPT
300
+ // plan route, carried over from GPT-6 Astra. Reasoning ladder low → medium
302
301
  // → high → xhigh → max → ultra; `ultra` is the Codex orchestration preset
303
302
  // (multi_agent v2) and is Codex-only — the public API tops out at `max`.
304
303
  // OpenAI requires the Responses API for tool calling on Astra, so both
305
304
  // the ChatGPT plan and API keys ride gg-ai's Responses transport.
306
- id: "gpt-6-astra",
307
- name: "GPT-6 Astra",
305
+ id: "gpt-6.2-astra",
306
+ name: "GPT-6.2 Astra",
308
307
  provider: "openai",
309
308
  contextWindow: 105e4,
310
309
  codexContextWindow: 272e3,
@@ -318,11 +317,11 @@ var MODELS = [
318
317
  },
319
318
  {
320
319
  // Codex Fast mode for Astra (catalog `service_tiers: priority`, "2x speed,
321
- // increased usage"). gg-ai's `stream()` sends it as `gpt-6-astra` +
320
+ // increased usage"). gg-ai's `stream()` sends it as `gpt-6.2-astra` +
322
321
  // `service_tier: "priority"`, exactly what the Codex CLI sends. On a
323
322
  // ChatGPT plan it draws included limits at 2.5x the standard rate.
324
- id: "gpt-6-astra-fast",
325
- name: "GPT-6 Astra Fast",
323
+ id: "gpt-6.2-astra-fast",
324
+ name: "GPT-6.2 Astra Fast",
326
325
  provider: "openai",
327
326
  contextWindow: 105e4,
328
327
  codexContextWindow: 272e3,
@@ -338,18 +337,20 @@ var MODELS = [
338
337
  // GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
339
338
  // GPT-5.6 family (Sol/Terra/Luna; there was no GPT-6 Terra — OpenAI's Codex
340
339
  // catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
341
- // GPT-6 Sol, and GPT-6.1 Terra (2026-10-26) sits between Sol and Luna. Same window split as Astra: 1.05M on the public Responses API,
340
+ // GPT-6 Sol, GPT-6.1 Terra (2026-10-26) sits between Sol and Luna, and
341
+ // GPT-6.2 Sol (2026-11) replaced GPT-6.1 Sol. Same window split as Astra: 1.05M on the public Responses API,
342
342
  // 272K on the Codex route; 128K output, text+image input, freeform
343
- // apply_patch, responses-lite transport. The GPT-5.6 ids and `gpt-6-sol` are
343
+ // apply_patch, responses-lite transport. The GPT-5.6 ids, `gpt-6-sol`,
344
+ // `gpt-6.1-sol` and `gpt-6-astra` are
344
345
  // retired — a saved session on one falls back to the provider default on
345
346
  // next start.
346
347
  {
347
- // GPT-6.1 Sol — "Latest workhorse model for coding and everyday work."
348
- // (Codex priority 1, default low). $2/$10 MTok, cached input $0.10. Ladder low →
348
+ // GPT-6.2 Sol — "Our go-to model for everyday work." $2/$10 MTok, cached
349
+ // input $0.10. Default low, carried over from 6.1 Sol. Ladder low →
349
350
  // medium → high → xhigh → max → ultra; ultra is the Codex orchestration
350
351
  // preset (xhigh effort on the wire + proactive local subagent delegation).
351
- id: "gpt-6.1-sol",
352
- name: "GPT-6.1 Sol",
352
+ id: "gpt-6.2-sol",
353
+ name: "GPT-6.2 Sol",
353
354
  provider: "openai",
354
355
  contextWindow: 105e4,
355
356
  codexContextWindow: 272e3,
@@ -362,10 +363,10 @@ var MODELS = [
362
363
  maxThinkingLevel: "ultra"
363
364
  },
364
365
  {
365
- // Codex Fast mode for 6.1 Sol ("2x speed, increased usage") — see
366
- // `gpt-6-astra-fast` for the wire mapping and billing.
367
- id: "gpt-6.1-sol-fast",
368
- name: "GPT-6.1 Sol Fast",
366
+ // Codex Fast mode for 6.2 Sol ("2x speed, increased usage") — see
367
+ // `gpt-6.2-astra-fast` for the wire mapping and billing.
368
+ id: "gpt-6.2-sol-fast",
369
+ name: "GPT-6.2 Sol Fast",
369
370
  provider: "openai",
370
371
  contextWindow: 105e4,
371
372
  codexContextWindow: 272e3,
@@ -396,7 +397,7 @@ var MODELS = [
396
397
  maxThinkingLevel: "ultra"
397
398
  },
398
399
  {
399
- // Codex Fast mode for 6.1 Terra ("1.5x speed") — see `gpt-6-astra-fast`
400
+ // Codex Fast mode for 6.1 Terra ("1.5x speed") — see `gpt-6.2-astra-fast`
400
401
  // for the wire mapping and billing.
401
402
  id: "gpt-6.1-terra-fast",
402
403
  name: "GPT-6.1 Terra Fast",
@@ -430,7 +431,7 @@ var MODELS = [
430
431
  maxThinkingLevel: "max"
431
432
  },
432
433
  {
433
- // Codex Fast mode for Luna ("1.5x speed") — see `gpt-6-astra-fast` for the
434
+ // Codex Fast mode for Luna ("1.5x speed") — see `gpt-6.2-astra-fast` for the
434
435
  // wire mapping and billing. Listed after Luna so compaction summaries
435
436
  // (first `low` OpenAI model) stay on standard-speed Luna.
436
437
  id: "gpt-6-luna-fast",
@@ -533,6 +534,54 @@ var MODELS = [
533
534
  authStorageKeys: GEMINI_AUTH_KEYS
534
535
  },
535
536
  // Keep 3.1 Flash Lite first for the default and fast-model routing.
537
+ // Gemini 4 (GA Nov 2026, ai.google.dev/gemini-api/docs/changelog): a unified 1M window and
538
+ // 64K synchronous output. Hydrogen also takes an `xhigh` thinking level; the ladder here
539
+ // stops at `high` like the other Gemini models.
540
+ {
541
+ // The fast everyday model, on the free tier too ($1.50 / $7.50 per 1M paid).
542
+ id: "gemini-4-hydrogen",
543
+ name: "Gemini 4 Hydrogen",
544
+ provider: "gemini",
545
+ contextWindow: 1048576,
546
+ maxOutputTokens: 65536,
547
+ supportsThinking: true,
548
+ supportsImages: true,
549
+ supportsVideo: true,
550
+ maxVideoBytes: 20 * 1024 * 1024,
551
+ costTier: "medium",
552
+ maxThinkingLevel: "high",
553
+ authStorageKeys: GEMINI_AUTH_KEYS
554
+ },
555
+ {
556
+ // Paid tier only ($4 / $20 per 1M from Dec 1, 2026).
557
+ id: "gemini-4-argon",
558
+ name: "Gemini 4 Argon",
559
+ provider: "gemini",
560
+ contextWindow: 1048576,
561
+ maxOutputTokens: 65536,
562
+ supportsThinking: true,
563
+ supportsImages: true,
564
+ supportsVideo: true,
565
+ maxVideoBytes: 20 * 1024 * 1024,
566
+ costTier: "high",
567
+ maxThinkingLevel: "high",
568
+ authStorageKeys: GEMINI_AUTH_KEYS
569
+ },
570
+ {
571
+ // The strongest Gemini 4 reasoning model; paid tier only.
572
+ id: "gemini-4-carbon",
573
+ name: "Gemini 4 Carbon",
574
+ provider: "gemini",
575
+ contextWindow: 1048576,
576
+ maxOutputTokens: 65536,
577
+ supportsThinking: true,
578
+ supportsImages: true,
579
+ supportsVideo: true,
580
+ maxVideoBytes: 20 * 1024 * 1024,
581
+ costTier: "high",
582
+ maxThinkingLevel: "high",
583
+ authStorageKeys: GEMINI_AUTH_KEYS
584
+ },
536
585
  // Gemini 3.7
537
586
  // Flash is retired: Google deprecated it on 2026-10-08 and routes every
538
587
  // `gemini-3.7-flash` request to 3.8 Flash (ai.google.dev/gemini-api/docs/
@@ -551,6 +600,21 @@ var MODELS = [
551
600
  maxThinkingLevel: "high",
552
601
  authStorageKeys: GEMINI_AUTH_KEYS
553
602
  },
603
+ {
604
+ // Replaced 3.5 Flash, which Google now routes here (changelog).
605
+ id: "gemini-3.6-flash",
606
+ name: "Gemini 3.6 Flash",
607
+ provider: "gemini",
608
+ contextWindow: 1048576,
609
+ maxOutputTokens: 65536,
610
+ supportsThinking: true,
611
+ supportsImages: true,
612
+ supportsVideo: true,
613
+ maxVideoBytes: 20 * 1024 * 1024,
614
+ costTier: "low",
615
+ maxThinkingLevel: "high",
616
+ authStorageKeys: GEMINI_AUTH_KEYS
617
+ },
554
618
  {
555
619
  id: "gemini-3.5-flash-lite",
556
620
  name: "Gemini 3.5 Flash Lite",
@@ -1098,7 +1162,7 @@ function getVideoByteLimit(modelId) {
1098
1162
  }
1099
1163
  var DEFAULT_MODEL_IDS = {
1100
1164
  xiaomi: "mimo-v2.6-pro",
1101
- openai: "gpt-6.1-sol",
1165
+ openai: "gpt-6.2-sol",
1102
1166
  gemini: "gemini-3.1-flash-lite",
1103
1167
  glm: "glm-5.3",
1104
1168
  moonshot: "kimi-k3",