@prestyj/core 5.31.0 → 5.32.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/{chunk-GYAMOZYP.js → chunk-7JDCLVUN.js} +77 -2
- package/dist/chunk-7JDCLVUN.js.map +1 -0
- package/dist/index.cjs +78 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +74 -1
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-GYAMOZYP.js.map +0 -1
package/dist/model-registry.cjs
CHANGED
|
@@ -49,6 +49,7 @@ __export(model_registry_exports, {
|
|
|
49
49
|
usesOpenAICodexTransport: () => usesOpenAICodexTransport
|
|
50
50
|
});
|
|
51
51
|
module.exports = __toCommonJS(model_registry_exports);
|
|
52
|
+
var import_ai2 = require("@prestyj/ai");
|
|
52
53
|
|
|
53
54
|
// src/oauth/kimi.ts
|
|
54
55
|
var import_node_child_process = require("child_process");
|
|
@@ -212,6 +213,25 @@ var MODELS = [
|
|
|
212
213
|
defaultThinkingLevel: "medium",
|
|
213
214
|
maxThinkingLevel: "max"
|
|
214
215
|
},
|
|
216
|
+
{
|
|
217
|
+
// Opus 5.5 in fast mode (research preview): the same model at up to 2.5x
|
|
218
|
+
// output tokens/sec, $8/$40 MTok. @prestyj/ai's `stream()` sends it as
|
|
219
|
+
// `claude-opus-5-5` + `speed: "fast"` + the fast-mode beta. On a Claude
|
|
220
|
+
// subscription it bills usage credits only — never included plan usage —
|
|
221
|
+
// and Anthropic 429s "Usage credits are required for fast mode" until they
|
|
222
|
+
// are turned on. Its prompt cache is separate from standard-speed Opus.
|
|
223
|
+
id: "claude-opus-5-5-fast",
|
|
224
|
+
name: "Claude Opus 5.5 Fast",
|
|
225
|
+
provider: "anthropic",
|
|
226
|
+
contextWindow: 1e6,
|
|
227
|
+
maxOutputTokens: 128e3,
|
|
228
|
+
supportsThinking: true,
|
|
229
|
+
supportsImages: true,
|
|
230
|
+
supportsVideo: false,
|
|
231
|
+
costTier: "high",
|
|
232
|
+
defaultThinkingLevel: "medium",
|
|
233
|
+
maxThinkingLevel: "max"
|
|
234
|
+
},
|
|
215
235
|
{
|
|
216
236
|
// Released 2026-09-28 — replaces Sonnet 5 at $2/$10 MTok, with the same
|
|
217
237
|
// 1M context / 128K output and adaptive thinking, now including xhigh.
|
|
@@ -279,6 +299,24 @@ var MODELS = [
|
|
|
279
299
|
costTier: "high",
|
|
280
300
|
maxThinkingLevel: "ultra"
|
|
281
301
|
},
|
|
302
|
+
{
|
|
303
|
+
// Codex Fast mode for Astra (catalog `service_tiers: priority`, "2x speed,
|
|
304
|
+
// increased usage"). @prestyj/ai's `stream()` sends it as `gpt-6-astra` +
|
|
305
|
+
// `service_tier: "priority"`, exactly what the Codex CLI sends. On a
|
|
306
|
+
// ChatGPT plan it draws included limits at 2.5x the standard rate.
|
|
307
|
+
id: "gpt-6-astra-fast",
|
|
308
|
+
name: "GPT-6 Astra Fast",
|
|
309
|
+
provider: "openai",
|
|
310
|
+
contextWindow: 105e4,
|
|
311
|
+
codexContextWindow: 272e3,
|
|
312
|
+
maxOutputTokens: 128e3,
|
|
313
|
+
supportsThinking: true,
|
|
314
|
+
defaultThinkingLevel: "low",
|
|
315
|
+
supportsImages: true,
|
|
316
|
+
supportsVideo: false,
|
|
317
|
+
costTier: "high",
|
|
318
|
+
maxThinkingLevel: "ultra"
|
|
319
|
+
},
|
|
282
320
|
// GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
|
|
283
321
|
// GPT-5.6 family (Sol/Terra/Luna; there is no GPT-6 Terra — OpenAI's Codex
|
|
284
322
|
// catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
|
|
@@ -307,6 +345,22 @@ var MODELS = [
|
|
|
307
345
|
costTier: "medium",
|
|
308
346
|
maxThinkingLevel: "ultra"
|
|
309
347
|
},
|
|
348
|
+
{
|
|
349
|
+
// Codex Fast mode for 6.1 Sol ("2x speed, increased usage") — see
|
|
350
|
+
// `gpt-6-astra-fast` for the wire mapping and billing.
|
|
351
|
+
id: "gpt-6.1-sol-fast",
|
|
352
|
+
name: "GPT-6.1 Sol Fast",
|
|
353
|
+
provider: "openai",
|
|
354
|
+
contextWindow: 105e4,
|
|
355
|
+
codexContextWindow: 272e3,
|
|
356
|
+
maxOutputTokens: 128e3,
|
|
357
|
+
supportsThinking: true,
|
|
358
|
+
defaultThinkingLevel: "low",
|
|
359
|
+
supportsImages: true,
|
|
360
|
+
supportsVideo: false,
|
|
361
|
+
costTier: "medium",
|
|
362
|
+
maxThinkingLevel: "ultra"
|
|
363
|
+
},
|
|
310
364
|
{
|
|
311
365
|
// Luna — "Fast and affordable model for easier tasks." (Codex priority 4,
|
|
312
366
|
// default medium, needs a Codex client >= 0.155.0). $0.10/$0.50 MTok.
|
|
@@ -324,6 +378,23 @@ var MODELS = [
|
|
|
324
378
|
costTier: "low",
|
|
325
379
|
maxThinkingLevel: "max"
|
|
326
380
|
},
|
|
381
|
+
{
|
|
382
|
+
// Codex Fast mode for Luna ("1.5x speed") — see `gpt-6-astra-fast` for the
|
|
383
|
+
// wire mapping and billing. Listed after Luna so compaction summaries
|
|
384
|
+
// (first `low` OpenAI model) stay on standard-speed Luna.
|
|
385
|
+
id: "gpt-6-luna-fast",
|
|
386
|
+
name: "GPT-6 Luna Fast",
|
|
387
|
+
provider: "openai",
|
|
388
|
+
contextWindow: 105e4,
|
|
389
|
+
codexContextWindow: 272e3,
|
|
390
|
+
maxOutputTokens: 128e3,
|
|
391
|
+
supportsThinking: true,
|
|
392
|
+
defaultThinkingLevel: "medium",
|
|
393
|
+
supportsImages: true,
|
|
394
|
+
supportsVideo: false,
|
|
395
|
+
costTier: "low",
|
|
396
|
+
maxThinkingLevel: "max"
|
|
397
|
+
},
|
|
327
398
|
// ── Sakana (Fugu) ──────────────────────────────────────
|
|
328
399
|
// Sakana Fugu is a multi-agent system surfaced as a standard LLM via the
|
|
329
400
|
// OpenAI-compatible Sakana API (https://api.sakana.ai/v1). All three take
|
|
@@ -913,7 +984,9 @@ var SUMMARY_COST_TIER = {
|
|
|
913
984
|
};
|
|
914
985
|
function getSummaryModel(provider, currentModelId) {
|
|
915
986
|
const tier = SUMMARY_COST_TIER[provider];
|
|
916
|
-
const tagged = tier ? getModelsForProvider(provider).find(
|
|
987
|
+
const tagged = tier ? getModelsForProvider(provider).find(
|
|
988
|
+
(m) => m.costTier === tier && !(0, import_ai2.resolveFastModeModel)(provider, m.id).fast
|
|
989
|
+
) : void 0;
|
|
917
990
|
return tagged ?? getModel(currentModelId) ?? getDefaultModel(provider);
|
|
918
991
|
}
|
|
919
992
|
// Annotate the CommonJS export names for ESM import in node:
|