@prestyj/core 5.33.0 → 5.34.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.
@@ -317,18 +317,13 @@ var MODELS = [
317
317
  },
318
318
  // ── OpenAI (Codex) ─────────────────────────────────────
319
319
  {
320
- // GPT-6 Astra — "Our most capable model for complex, demanding work."
321
- // (Codex catalog priority 2, listed for every ChatGPT plan, requires a
322
- // Codex client >= 0.153.0 — see CODEX_CLIENT_VERSION). Same split as 5.6:
323
- // 1.05M on the public Responses API, 272K on the ChatGPT OAuth route
324
- // (openai/codex models.json, `gpt-6-astra`). Reasoning ladder low → medium
325
- // → high → xhigh → max → ultra; `ultra` is the Codex orchestration preset
326
- // (multi_agent v2) and is Codex-only — the public API tops out at `max`.
327
- // Note: through a plain API key OpenAI requires the Responses API for tool
328
- // calling on Astra, so the Chat Completions path is text-only; the OAuth
329
- // Codex route is the supported way to use it as an agent.
330
- id: "gpt-6-astra",
331
- name: "GPT-6 Astra",
320
+ // GPT-6.2 Astra — released 2026-11-17, "Our most capable model for your
321
+ // hardest projects." (Codex catalog priority 2, default low, client >=
322
+ // 0.166.0). $8/$40 MTok, cached input $0.40. 1.05M on the public Responses
323
+ // API, 272K on the Codex route; 128K output, text+image input. Same ladder
324
+ // and Ultra preset as GPT-6 Astra, which it retires; the API rejects reasoning effort `none`.
325
+ id: "gpt-6.2-astra",
326
+ name: "GPT-6.2 Astra",
332
327
  provider: "openai",
333
328
  contextWindow: 105e4,
334
329
  codexContextWindow: 272e3,
@@ -341,12 +336,12 @@ var MODELS = [
341
336
  maxThinkingLevel: "ultra"
342
337
  },
343
338
  {
344
- // Codex Fast mode for Astra (catalog `service_tiers: priority`, "2x speed,
345
- // increased usage"). @prestyj/ai's `stream()` sends it as `gpt-6-astra` +
346
- // `service_tier: "priority"`, exactly what the Codex CLI sends. On a
347
- // ChatGPT plan it draws included limits at 2.5x the standard rate.
348
- id: "gpt-6-astra-fast",
349
- name: "GPT-6 Astra Fast",
339
+ // Codex Fast mode for 6.2 Astra ("2x speed, increased usage"). @prestyj/ai's
340
+ // `stream()` sends it as `gpt-6.2-astra` + `service_tier: "priority"`,
341
+ // exactly what the Codex CLI sends. On a ChatGPT plan it draws included
342
+ // limits at 2.5x the standard rate.
343
+ id: "gpt-6.2-astra-fast",
344
+ name: "GPT-6.2 Astra Fast",
350
345
  provider: "openai",
351
346
  contextWindow: 105e4,
352
347
  codexContextWindow: 272e3,
@@ -361,24 +356,25 @@ var MODELS = [
361
356
  },
362
357
  // GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
363
358
  // GPT-5.6 family (Sol/Terra/Luna; there was no GPT-6 Terra — OpenAI's Codex
364
- // catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
365
- // 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,
366
- // 272K on the Codex route; 128K output, text+image input, freeform
367
- // apply_patch, responses-lite transport. The GPT-5.6 ids and `gpt-6-sol` are
368
- // retired — a saved session on one falls back to the provider default on
369
- // next start.
359
+ // catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) replaced
360
+ // GPT-6 Sol, GPT-6.1 Terra (2026-10-26) sits between Sol and Luna, and
361
+ // GPT-6.2 Sol (2026-11-17) replaced GPT-6.1 Sol. 1.05M on the public
362
+ // Responses API; 128K output, text+image input, freeform apply_patch,
363
+ // responses-lite transport. The GPT-5.6 ids, `gpt-6-sol` and `gpt-6.1-sol`
364
+ // are retired — a saved session on one falls back to the provider default
365
+ // on next start.
370
366
  {
371
- // GPT-6.1 Sol — "Latest workhorse model for coding and everyday work."
372
- // (Codex priority 1, default low). The catalog says Codex client >= 0.153.0,
373
- // but the ChatGPT backend only serves it from 0.159.0 (see
374
- // CODEX_CLIENT_VERSION). $2/$10 MTok, cached input $0.10. Ladder low →
367
+ // GPT-6.2 Sol — "Our go-to model for everyday work, from coding to
368
+ // powering agents at scale." (Codex priority 1, default low, client >=
369
+ // 0.166.0). $2/$10 MTok, cached input $0.10. Like Terra, the Codex route
370
+ // gets a 500K window (catalog `context_window`). Ladder low →
375
371
  // medium → high → xhigh → max → ultra; ultra is the Codex orchestration
376
372
  // preset (xhigh effort on the wire + proactive local subagent delegation).
377
- id: "gpt-6.1-sol",
378
- name: "GPT-6.1 Sol",
373
+ id: "gpt-6.2-sol",
374
+ name: "GPT-6.2 Sol",
379
375
  provider: "openai",
380
376
  contextWindow: 105e4,
381
- codexContextWindow: 272e3,
377
+ codexContextWindow: 5e5,
382
378
  maxOutputTokens: 128e3,
383
379
  supportsThinking: true,
384
380
  defaultThinkingLevel: "low",
@@ -388,13 +384,13 @@ var MODELS = [
388
384
  maxThinkingLevel: "ultra"
389
385
  },
390
386
  {
391
- // Codex Fast mode for 6.1 Sol ("2x speed, increased usage") — see
392
- // `gpt-6-astra-fast` for the wire mapping and billing.
393
- id: "gpt-6.1-sol-fast",
394
- name: "GPT-6.1 Sol Fast",
387
+ // Codex Fast mode for 6.2 Sol ("2x speed, increased usage") — see
388
+ // `gpt-6.2-astra-fast` for the wire mapping and billing.
389
+ id: "gpt-6.2-sol-fast",
390
+ name: "GPT-6.2 Sol Fast",
395
391
  provider: "openai",
396
392
  contextWindow: 105e4,
397
- codexContextWindow: 272e3,
393
+ codexContextWindow: 5e5,
398
394
  maxOutputTokens: 128e3,
399
395
  supportsThinking: true,
400
396
  defaultThinkingLevel: "low",
@@ -422,7 +418,7 @@ var MODELS = [
422
418
  maxThinkingLevel: "ultra"
423
419
  },
424
420
  {
425
- // Codex Fast mode for 6.1 Terra ("1.5x speed") — see `gpt-6-astra-fast`
421
+ // Codex Fast mode for 6.1 Terra ("1.5x speed") — see `gpt-6.2-astra-fast`
426
422
  // for the wire mapping and billing.
427
423
  id: "gpt-6.1-terra-fast",
428
424
  name: "GPT-6.1 Terra Fast",
@@ -456,7 +452,7 @@ var MODELS = [
456
452
  maxThinkingLevel: "max"
457
453
  },
458
454
  {
459
- // Codex Fast mode for Luna ("1.5x speed") — see `gpt-6-astra-fast` for the
455
+ // Codex Fast mode for Luna ("1.5x speed") — see `gpt-6.2-astra-fast` for the
460
456
  // wire mapping and billing. Listed after Luna so compaction summaries
461
457
  // (first `low` OpenAI model) stay on standard-speed Luna.
462
458
  id: "gpt-6-luna-fast",
@@ -904,6 +900,93 @@ var MODELS = [
904
900
  costTier: "medium",
905
901
  maxThinkingLevel: "high"
906
902
  },
903
+ // ── OpenCode Console (Go subscription, then pay-as-you-go) ────────
904
+ // One Console API key reaches many labs' models through opencode.ai. Ids
905
+ // carry the plan prefix (`opencode-go/kimi-k3`) because the gateway reuses
906
+ // the vendors' own ids; @prestyj/ai strips it at the wire. These rows are only the
907
+ // offline fallback: the desktop app replaces them with each plan's live,
908
+ // public model list (core/opencode-catalog-store.ts). Limits, image input
909
+ // and effort ladders are from GET /inference[/go]/v1/models (2026-11-11);
910
+ // all three speak Chat Completions natively.
911
+ {
912
+ // Go declares `max` as K3's only effort; pay-as-you-go adds low and high.
913
+ id: "opencode-go/kimi-k3",
914
+ name: "Kimi K3",
915
+ provider: "opencode-go",
916
+ contextWindow: 1048576,
917
+ maxOutputTokens: 131072,
918
+ supportsThinking: true,
919
+ supportsImages: true,
920
+ supportsVideo: false,
921
+ costTier: "high",
922
+ maxThinkingLevel: "max",
923
+ thinkingLevels: ["max"]
924
+ },
925
+ {
926
+ id: "opencode-go/glm-5.3",
927
+ name: "GLM-5.3",
928
+ provider: "opencode-go",
929
+ contextWindow: 1e6,
930
+ maxOutputTokens: 131072,
931
+ supportsThinking: true,
932
+ supportsImages: false,
933
+ supportsVideo: false,
934
+ costTier: "medium",
935
+ maxThinkingLevel: "max",
936
+ thinkingLevels: ["low", "high", "max"]
937
+ },
938
+ {
939
+ id: "opencode-go/glm-5.3-flash",
940
+ name: "GLM-5.3-Flash",
941
+ provider: "opencode-go",
942
+ contextWindow: 1e6,
943
+ maxOutputTokens: 131072,
944
+ supportsThinking: true,
945
+ supportsImages: true,
946
+ supportsVideo: false,
947
+ costTier: "low",
948
+ maxThinkingLevel: "max",
949
+ thinkingLevels: ["low", "high", "max"]
950
+ },
951
+ {
952
+ id: "opencode/kimi-k3",
953
+ name: "Kimi K3",
954
+ provider: "opencode",
955
+ contextWindow: 1048576,
956
+ maxOutputTokens: 131072,
957
+ supportsThinking: true,
958
+ supportsImages: true,
959
+ supportsVideo: false,
960
+ costTier: "high",
961
+ maxThinkingLevel: "max",
962
+ thinkingLevels: ["low", "high", "max"]
963
+ },
964
+ {
965
+ id: "opencode/glm-5.3",
966
+ name: "GLM-5.3",
967
+ provider: "opencode",
968
+ contextWindow: 1e6,
969
+ maxOutputTokens: 131072,
970
+ supportsThinking: true,
971
+ supportsImages: false,
972
+ supportsVideo: false,
973
+ costTier: "medium",
974
+ maxThinkingLevel: "max",
975
+ thinkingLevels: ["low", "high", "max"]
976
+ },
977
+ {
978
+ id: "opencode/glm-5.3-flash",
979
+ name: "GLM-5.3-Flash",
980
+ provider: "opencode",
981
+ contextWindow: 1e6,
982
+ maxOutputTokens: 131072,
983
+ supportsThinking: true,
984
+ supportsImages: true,
985
+ supportsVideo: false,
986
+ costTier: "low",
987
+ maxThinkingLevel: "max",
988
+ thinkingLevels: ["low", "high", "max"]
989
+ },
907
990
  // ── Hugging Face (Inference Providers router) ────────
908
991
  // One HF token (hf.co/settings/tokens, "Make calls to Inference Providers"
909
992
  // permission) routes to whichever hosted backend serves each open model;
@@ -1054,13 +1137,15 @@ function getVideoByteLimit(modelId) {
1054
1137
  }
1055
1138
  var DEFAULT_MODEL_IDS = {
1056
1139
  xiaomi: "mimo-v2.6-pro",
1057
- openai: "gpt-6.1-sol",
1140
+ openai: "gpt-6.2-sol",
1058
1141
  gemini: "gemini-3.1-flash-lite",
1059
1142
  glm: "glm-5.3",
1060
1143
  moonshot: "kimi-k3",
1061
1144
  minimax: "MiniMax-M3.1-Flash",
1062
1145
  deepseek: "deepseek-v4-pro",
1063
1146
  huggingface: "moonshotai/Kimi-K2.7-Code",
1147
+ opencode: "opencode/kimi-k3",
1148
+ "opencode-go": "opencode-go/kimi-k3",
1064
1149
  openrouter: "qwen/qwen3.8-max",
1065
1150
  sakana: "fugu",
1066
1151
  xai: "grok-4.7"