@prestyj/core 5.3.1 → 5.4.1

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.
@@ -171,49 +171,63 @@ var MODELS = [
171
171
  maxThinkingLevel: "high"
172
172
  },
173
173
  // ── OpenAI (Codex) ─────────────────────────────────────
174
+ // GPT-5.6 family — three agentic coding tiers launched July 2026. All share a
175
+ // 372K context window: the Codex repo's models.json lists both `context_window`
176
+ // AND `max_context_window` as 372000 for every 5.6 variant, so (unlike 5.4/5.5,
177
+ // whose public-API 1M window exceeds the Codex-product cap) there's no split
178
+ // between the API and Codex-transport windows — a single `contextWindow` is
179
+ // correct in both code paths. All three take text+image input, freeform
180
+ // apply_patch, text+image web search, and parallel tool calls.
174
181
  {
175
- id: "gpt-5.5",
176
- name: "GPT-5.5",
182
+ // Sol — "Latest frontier agentic coding model." (priority 1, default low).
183
+ // Reasoning ladder: low → medium → high → xhigh → max → ultra. gg-ai's
184
+ // ThinkingLevel tops out at `max`, so that's the cap here; the `ultra` rung
185
+ // (auto task delegation) needs a ThinkingLevel extension to expose.
186
+ id: "gpt-5.6-sol",
187
+ name: "GPT-5.6 Sol",
177
188
  provider: "openai",
178
- contextWindow: 105e4,
179
- codexContextWindow: 272e3,
189
+ contextWindow: 372e3,
180
190
  maxOutputTokens: 128e3,
181
191
  supportsThinking: true,
182
192
  supportsImages: true,
183
193
  supportsVideo: false,
184
194
  costTier: "high",
185
- maxThinkingLevel: "xhigh"
195
+ maxThinkingLevel: "max"
186
196
  },
187
197
  {
188
- id: "gpt-5.4",
189
- name: "GPT-5.4",
198
+ // Terra — "Balanced agentic coding model for everyday work." (priority 2,
199
+ // default medium). Same 372K context + ultra reasoning ladder as Sol.
200
+ id: "gpt-5.6-terra",
201
+ name: "GPT-5.6 Terra",
190
202
  provider: "openai",
191
- contextWindow: 105e4,
192
- codexContextWindow: 272e3,
203
+ contextWindow: 372e3,
193
204
  maxOutputTokens: 128e3,
194
205
  supportsThinking: true,
195
206
  supportsImages: true,
196
207
  supportsVideo: false,
197
- costTier: "high",
198
- maxThinkingLevel: "xhigh"
208
+ costTier: "medium",
209
+ maxThinkingLevel: "max"
199
210
  },
200
211
  {
201
- id: "gpt-5.4-mini",
202
- name: "GPT-5.4 Mini",
212
+ // Luna — "Fast and affordable agentic coding model." (priority 3, default
213
+ // medium). Same 372K context; reasoning tops out at `max` (no `ultra` rung).
214
+ id: "gpt-5.6-luna",
215
+ name: "GPT-5.6 Luna",
203
216
  provider: "openai",
204
- contextWindow: 4e5,
217
+ contextWindow: 372e3,
205
218
  maxOutputTokens: 128e3,
206
219
  supportsThinking: true,
207
220
  supportsImages: true,
208
221
  supportsVideo: false,
209
222
  costTier: "low",
210
- maxThinkingLevel: "xhigh"
223
+ maxThinkingLevel: "max"
211
224
  },
212
225
  {
213
- id: "gpt-5.3-codex",
214
- name: "GPT-5.3 Codex",
226
+ id: "gpt-5.5",
227
+ name: "GPT-5.5",
215
228
  provider: "openai",
216
- contextWindow: 4e5,
229
+ contextWindow: 105e4,
230
+ codexContextWindow: 272e3,
217
231
  maxOutputTokens: 128e3,
218
232
  supportsThinking: true,
219
233
  supportsImages: true,
@@ -253,8 +267,8 @@ var MODELS = [
253
267
  },
254
268
  // ── Gemini ─────────────────────────────────────────────
255
269
  {
256
- id: "gemini-3.1-flash-lite-preview",
257
- name: "Gemini 3.1 Flash Lite Preview",
270
+ id: "gemini-3.1-flash-lite",
271
+ name: "Gemini 3.1 Flash Lite",
258
272
  provider: "gemini",
259
273
  contextWindow: 1048576,
260
274
  maxOutputTokens: 65536,
@@ -266,7 +280,10 @@ var MODELS = [
266
280
  maxThinkingLevel: "high"
267
281
  },
268
282
  {
269
- id: "gemini-3.5-flash",
283
+ // Wire name `gemini-3-flash` — the Code Assist (OAuth) backend rejects the
284
+ // display string `gemini-3.5-flash` with a 404, so gemini-cli keeps this
285
+ // alternative name (SECONDARY_GEMINI_3_5_FLASH_MODEL) for that endpoint.
286
+ id: "gemini-3-flash",
270
287
  name: "Gemini 3.5 Flash",
271
288
  provider: "gemini",
272
289
  contextWindow: 1048576,
@@ -278,6 +295,22 @@ var MODELS = [
278
295
  costTier: "low",
279
296
  maxThinkingLevel: "high"
280
297
  },
298
+ {
299
+ // Gemini 3.1 Pro is public preview — gated behind Code Assist preview
300
+ // enablement, so free/personal OAuth accounts 404 on it (see
301
+ // ACCOUNT_GATED_MODELS in gg-ai's gemini provider).
302
+ id: "gemini-3.1-pro-preview",
303
+ name: "Gemini 3.1 Pro (Preview)",
304
+ provider: "gemini",
305
+ contextWindow: 1048576,
306
+ maxOutputTokens: 65536,
307
+ supportsThinking: true,
308
+ supportsImages: true,
309
+ supportsVideo: true,
310
+ maxVideoBytes: 20 * 1024 * 1024,
311
+ costTier: "high",
312
+ maxThinkingLevel: "high"
313
+ },
281
314
  // ── Moonshot (Kimi) ────────────────────────────────────
282
315
  {
283
316
  id: "kimi-k2.7-code",
@@ -468,8 +501,8 @@ function getVideoByteLimit(modelId) {
468
501
  }
469
502
  function getDefaultModel(provider) {
470
503
  if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.5-pro");
471
- if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.5");
472
- if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite-preview");
504
+ if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.6-sol");
505
+ if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite");
473
506
  if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.2");
474
507
  if (provider === "moonshot") return MODELS.find((m) => m.id === "kimi-k2.7-code");
475
508
  if (provider === "minimax") return MODELS.find((m) => m.id === "MiniMax-M3");