@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
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
getAppPaths
|
|
3
3
|
} from "./chunk-CRU3SSNX.js";
|
|
4
4
|
|
|
5
|
+
// src/model-registry.ts
|
|
6
|
+
import { resolveFastModeModel } from "@prestyj/ai";
|
|
7
|
+
|
|
5
8
|
// src/oauth/kimi.ts
|
|
6
9
|
import { execFileSync } from "child_process";
|
|
7
10
|
import { randomUUID } from "crypto";
|
|
@@ -2094,6 +2097,25 @@ var MODELS = [
|
|
|
2094
2097
|
defaultThinkingLevel: "medium",
|
|
2095
2098
|
maxThinkingLevel: "max"
|
|
2096
2099
|
},
|
|
2100
|
+
{
|
|
2101
|
+
// Opus 5.5 in fast mode (research preview): the same model at up to 2.5x
|
|
2102
|
+
// output tokens/sec, $8/$40 MTok. @prestyj/ai's `stream()` sends it as
|
|
2103
|
+
// `claude-opus-5-5` + `speed: "fast"` + the fast-mode beta. On a Claude
|
|
2104
|
+
// subscription it bills usage credits only — never included plan usage —
|
|
2105
|
+
// and Anthropic 429s "Usage credits are required for fast mode" until they
|
|
2106
|
+
// are turned on. Its prompt cache is separate from standard-speed Opus.
|
|
2107
|
+
id: "claude-opus-5-5-fast",
|
|
2108
|
+
name: "Claude Opus 5.5 Fast",
|
|
2109
|
+
provider: "anthropic",
|
|
2110
|
+
contextWindow: 1e6,
|
|
2111
|
+
maxOutputTokens: 128e3,
|
|
2112
|
+
supportsThinking: true,
|
|
2113
|
+
supportsImages: true,
|
|
2114
|
+
supportsVideo: false,
|
|
2115
|
+
costTier: "high",
|
|
2116
|
+
defaultThinkingLevel: "medium",
|
|
2117
|
+
maxThinkingLevel: "max"
|
|
2118
|
+
},
|
|
2097
2119
|
{
|
|
2098
2120
|
// Released 2026-09-28 — replaces Sonnet 5 at $2/$10 MTok, with the same
|
|
2099
2121
|
// 1M context / 128K output and adaptive thinking, now including xhigh.
|
|
@@ -2161,6 +2183,24 @@ var MODELS = [
|
|
|
2161
2183
|
costTier: "high",
|
|
2162
2184
|
maxThinkingLevel: "ultra"
|
|
2163
2185
|
},
|
|
2186
|
+
{
|
|
2187
|
+
// Codex Fast mode for Astra (catalog `service_tiers: priority`, "2x speed,
|
|
2188
|
+
// increased usage"). @prestyj/ai's `stream()` sends it as `gpt-6-astra` +
|
|
2189
|
+
// `service_tier: "priority"`, exactly what the Codex CLI sends. On a
|
|
2190
|
+
// ChatGPT plan it draws included limits at 2.5x the standard rate.
|
|
2191
|
+
id: "gpt-6-astra-fast",
|
|
2192
|
+
name: "GPT-6 Astra Fast",
|
|
2193
|
+
provider: "openai",
|
|
2194
|
+
contextWindow: 105e4,
|
|
2195
|
+
codexContextWindow: 272e3,
|
|
2196
|
+
maxOutputTokens: 128e3,
|
|
2197
|
+
supportsThinking: true,
|
|
2198
|
+
defaultThinkingLevel: "low",
|
|
2199
|
+
supportsImages: true,
|
|
2200
|
+
supportsVideo: false,
|
|
2201
|
+
costTier: "high",
|
|
2202
|
+
maxThinkingLevel: "ultra"
|
|
2203
|
+
},
|
|
2164
2204
|
// GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
|
|
2165
2205
|
// GPT-5.6 family (Sol/Terra/Luna; there is no GPT-6 Terra — OpenAI's Codex
|
|
2166
2206
|
// catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
|
|
@@ -2189,6 +2229,22 @@ var MODELS = [
|
|
|
2189
2229
|
costTier: "medium",
|
|
2190
2230
|
maxThinkingLevel: "ultra"
|
|
2191
2231
|
},
|
|
2232
|
+
{
|
|
2233
|
+
// Codex Fast mode for 6.1 Sol ("2x speed, increased usage") — see
|
|
2234
|
+
// `gpt-6-astra-fast` for the wire mapping and billing.
|
|
2235
|
+
id: "gpt-6.1-sol-fast",
|
|
2236
|
+
name: "GPT-6.1 Sol Fast",
|
|
2237
|
+
provider: "openai",
|
|
2238
|
+
contextWindow: 105e4,
|
|
2239
|
+
codexContextWindow: 272e3,
|
|
2240
|
+
maxOutputTokens: 128e3,
|
|
2241
|
+
supportsThinking: true,
|
|
2242
|
+
defaultThinkingLevel: "low",
|
|
2243
|
+
supportsImages: true,
|
|
2244
|
+
supportsVideo: false,
|
|
2245
|
+
costTier: "medium",
|
|
2246
|
+
maxThinkingLevel: "ultra"
|
|
2247
|
+
},
|
|
2192
2248
|
{
|
|
2193
2249
|
// Luna — "Fast and affordable model for easier tasks." (Codex priority 4,
|
|
2194
2250
|
// default medium, needs a Codex client >= 0.155.0). $0.10/$0.50 MTok.
|
|
@@ -2206,6 +2262,23 @@ var MODELS = [
|
|
|
2206
2262
|
costTier: "low",
|
|
2207
2263
|
maxThinkingLevel: "max"
|
|
2208
2264
|
},
|
|
2265
|
+
{
|
|
2266
|
+
// Codex Fast mode for Luna ("1.5x speed") — see `gpt-6-astra-fast` for the
|
|
2267
|
+
// wire mapping and billing. Listed after Luna so compaction summaries
|
|
2268
|
+
// (first `low` OpenAI model) stay on standard-speed Luna.
|
|
2269
|
+
id: "gpt-6-luna-fast",
|
|
2270
|
+
name: "GPT-6 Luna Fast",
|
|
2271
|
+
provider: "openai",
|
|
2272
|
+
contextWindow: 105e4,
|
|
2273
|
+
codexContextWindow: 272e3,
|
|
2274
|
+
maxOutputTokens: 128e3,
|
|
2275
|
+
supportsThinking: true,
|
|
2276
|
+
defaultThinkingLevel: "medium",
|
|
2277
|
+
supportsImages: true,
|
|
2278
|
+
supportsVideo: false,
|
|
2279
|
+
costTier: "low",
|
|
2280
|
+
maxThinkingLevel: "max"
|
|
2281
|
+
},
|
|
2209
2282
|
// ── Sakana (Fugu) ──────────────────────────────────────
|
|
2210
2283
|
// Sakana Fugu is a multi-agent system surfaced as a standard LLM via the
|
|
2211
2284
|
// OpenAI-compatible Sakana API (https://api.sakana.ai/v1). All three take
|
|
@@ -2795,7 +2868,9 @@ var SUMMARY_COST_TIER = {
|
|
|
2795
2868
|
};
|
|
2796
2869
|
function getSummaryModel(provider, currentModelId) {
|
|
2797
2870
|
const tier = SUMMARY_COST_TIER[provider];
|
|
2798
|
-
const tagged = tier ? getModelsForProvider(provider).find(
|
|
2871
|
+
const tagged = tier ? getModelsForProvider(provider).find(
|
|
2872
|
+
(m) => m.costTier === tier && !resolveFastModeModel(provider, m.id).fast
|
|
2873
|
+
) : void 0;
|
|
2799
2874
|
return tagged ?? getModel(currentModelId) ?? getDefaultModel(provider);
|
|
2800
2875
|
}
|
|
2801
2876
|
|
|
@@ -2857,4 +2932,4 @@ export {
|
|
|
2857
2932
|
getDefaultThinkingLevel,
|
|
2858
2933
|
getSummaryModel
|
|
2859
2934
|
};
|
|
2860
|
-
//# sourceMappingURL=chunk-
|
|
2935
|
+
//# sourceMappingURL=chunk-7JDCLVUN.js.map
|