@prestyj/core 5.30.3 → 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.
@@ -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";
@@ -2088,6 +2091,29 @@ var MODELS = [
2088
2091
  supportsImages: true,
2089
2092
  supportsVideo: false,
2090
2093
  costTier: "high",
2094
+ // Anthropic's API and Claude Code both start the 5.5 family at medium; at a
2095
+ // given level 5.5 thinks more than 5, so the ladder ceiling (max) made fresh
2096
+ // sessions slow and expensive. Users can still opt up.
2097
+ defaultThinkingLevel: "medium",
2098
+ maxThinkingLevel: "max"
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",
2091
2117
  maxThinkingLevel: "max"
2092
2118
  },
2093
2119
  {
@@ -2102,6 +2128,10 @@ var MODELS = [
2102
2128
  supportsImages: true,
2103
2129
  supportsVideo: false,
2104
2130
  costTier: "medium",
2131
+ // Anthropic's API and Claude Code both start the 5.5 family at medium; at a
2132
+ // given level 5.5 thinks more than 5, so the ladder ceiling (max) made fresh
2133
+ // sessions slow and expensive. Users can still opt up.
2134
+ defaultThinkingLevel: "medium",
2105
2135
  maxThinkingLevel: "max"
2106
2136
  },
2107
2137
  {
@@ -2122,6 +2152,10 @@ var MODELS = [
2122
2152
  supportsImages: true,
2123
2153
  supportsVideo: false,
2124
2154
  costTier: "low",
2155
+ // Anthropic's API and Claude Code both start the 5.5 family at medium; at a
2156
+ // given level 5.5 thinks more than 5, so the ladder ceiling (max) made fresh
2157
+ // sessions slow and expensive. Users can still opt up.
2158
+ defaultThinkingLevel: "medium",
2125
2159
  maxThinkingLevel: "max"
2126
2160
  },
2127
2161
  // ── OpenAI (Codex) ─────────────────────────────────────
@@ -2149,6 +2183,24 @@ var MODELS = [
2149
2183
  costTier: "high",
2150
2184
  maxThinkingLevel: "ultra"
2151
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
+ },
2152
2204
  // GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
2153
2205
  // GPT-5.6 family (Sol/Terra/Luna; there is no GPT-6 Terra — OpenAI's Codex
2154
2206
  // catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
@@ -2177,6 +2229,22 @@ var MODELS = [
2177
2229
  costTier: "medium",
2178
2230
  maxThinkingLevel: "ultra"
2179
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
+ },
2180
2248
  {
2181
2249
  // Luna — "Fast and affordable model for easier tasks." (Codex priority 4,
2182
2250
  // default medium, needs a Codex client >= 0.155.0). $0.10/$0.50 MTok.
@@ -2194,6 +2262,23 @@ var MODELS = [
2194
2262
  costTier: "low",
2195
2263
  maxThinkingLevel: "max"
2196
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
+ },
2197
2282
  // ── Sakana (Fugu) ──────────────────────────────────────
2198
2283
  // Sakana Fugu is a multi-agent system surfaced as a standard LLM via the
2199
2284
  // OpenAI-compatible Sakana API (https://api.sakana.ai/v1). All three take
@@ -2783,7 +2868,9 @@ var SUMMARY_COST_TIER = {
2783
2868
  };
2784
2869
  function getSummaryModel(provider, currentModelId) {
2785
2870
  const tier = SUMMARY_COST_TIER[provider];
2786
- const tagged = tier ? getModelsForProvider(provider).find((m) => m.costTier === tier) : void 0;
2871
+ const tagged = tier ? getModelsForProvider(provider).find(
2872
+ (m) => m.costTier === tier && !resolveFastModeModel(provider, m.id).fast
2873
+ ) : void 0;
2787
2874
  return tagged ?? getModel(currentModelId) ?? getDefaultModel(provider);
2788
2875
  }
2789
2876
 
@@ -2845,4 +2932,4 @@ export {
2845
2932
  getDefaultThinkingLevel,
2846
2933
  getSummaryModel
2847
2934
  };
2848
- //# sourceMappingURL=chunk-724LOLDH.js.map
2935
+ //# sourceMappingURL=chunk-7JDCLVUN.js.map