@kenkaiiii/gg-core 5.80.1 → 5.82.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-BNMQ6VWC.js → chunk-6MT277JN.js} +79 -5
- package/dist/chunk-6MT277JN.js.map +1 -0
- package/dist/index.cjs +80 -6
- 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 +76 -4
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-BNMQ6VWC.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -121,6 +121,9 @@ __export(index_exports, {
|
|
|
121
121
|
});
|
|
122
122
|
module.exports = __toCommonJS(index_exports);
|
|
123
123
|
|
|
124
|
+
// src/model-registry.ts
|
|
125
|
+
var import_gg_ai2 = require("@kenkaiiii/gg-ai");
|
|
126
|
+
|
|
124
127
|
// src/oauth/kimi.ts
|
|
125
128
|
var import_node_child_process = require("child_process");
|
|
126
129
|
var import_node_crypto = require("crypto");
|
|
@@ -2107,9 +2110,8 @@ var MODELS = [
|
|
|
2107
2110
|
// context, 128K output, image input. Same always-on adaptive thinking with
|
|
2108
2111
|
// the full effort ladder (low→max, xhigh included; the API-side default
|
|
2109
2112
|
// effort is `medium`) and the same Fable 5.1 constraints gg-ai already
|
|
2110
|
-
// handles (no forced tool use, thinking can't be disabled).
|
|
2111
|
-
//
|
|
2112
|
-
// $8/$40 pricing — not wired up). Opus 5 is retired here — a session that
|
|
2113
|
+
// handles (no forced tool use, thinking can't be disabled). Fast mode is
|
|
2114
|
+
// the separate `claude-opus-5-5-fast` entry below. Opus 5 is retired here — a session that
|
|
2113
2115
|
// still has it saved falls back to the provider default on next start.
|
|
2114
2116
|
id: "claude-opus-5-5",
|
|
2115
2117
|
name: "Claude Opus 5.5",
|
|
@@ -2126,6 +2128,25 @@ var MODELS = [
|
|
|
2126
2128
|
defaultThinkingLevel: "medium",
|
|
2127
2129
|
maxThinkingLevel: "max"
|
|
2128
2130
|
},
|
|
2131
|
+
{
|
|
2132
|
+
// Opus 5.5 in fast mode (research preview): the same model at up to 2.5x
|
|
2133
|
+
// output tokens/sec, $8/$40 MTok. gg-ai's `stream()` sends it as
|
|
2134
|
+
// `claude-opus-5-5` + `speed: "fast"` + the fast-mode beta. On a Claude
|
|
2135
|
+
// subscription it bills usage credits only — never included plan usage —
|
|
2136
|
+
// and Anthropic 429s "Usage credits are required for fast mode" until they
|
|
2137
|
+
// are turned on. Its prompt cache is separate from standard-speed Opus.
|
|
2138
|
+
id: "claude-opus-5-5-fast",
|
|
2139
|
+
name: "Claude Opus 5.5 Fast",
|
|
2140
|
+
provider: "anthropic",
|
|
2141
|
+
contextWindow: 1e6,
|
|
2142
|
+
maxOutputTokens: 128e3,
|
|
2143
|
+
supportsThinking: true,
|
|
2144
|
+
supportsImages: true,
|
|
2145
|
+
supportsVideo: false,
|
|
2146
|
+
costTier: "high",
|
|
2147
|
+
defaultThinkingLevel: "medium",
|
|
2148
|
+
maxThinkingLevel: "max"
|
|
2149
|
+
},
|
|
2129
2150
|
{
|
|
2130
2151
|
// Released 2026-09-28 — replaces Sonnet 5 at $2/$10 MTok, with the same
|
|
2131
2152
|
// 1M context / 128K output and adaptive thinking, now including xhigh.
|
|
@@ -2193,6 +2214,24 @@ var MODELS = [
|
|
|
2193
2214
|
costTier: "high",
|
|
2194
2215
|
maxThinkingLevel: "ultra"
|
|
2195
2216
|
},
|
|
2217
|
+
{
|
|
2218
|
+
// Codex Fast mode for Astra (catalog `service_tiers: priority`, "2x speed,
|
|
2219
|
+
// increased usage"). gg-ai's `stream()` sends it as `gpt-6-astra` +
|
|
2220
|
+
// `service_tier: "priority"`, exactly what the Codex CLI sends. On a
|
|
2221
|
+
// ChatGPT plan it draws included limits at 2.5x the standard rate.
|
|
2222
|
+
id: "gpt-6-astra-fast",
|
|
2223
|
+
name: "GPT-6 Astra Fast",
|
|
2224
|
+
provider: "openai",
|
|
2225
|
+
contextWindow: 105e4,
|
|
2226
|
+
codexContextWindow: 272e3,
|
|
2227
|
+
maxOutputTokens: 128e3,
|
|
2228
|
+
supportsThinking: true,
|
|
2229
|
+
defaultThinkingLevel: "low",
|
|
2230
|
+
supportsImages: true,
|
|
2231
|
+
supportsVideo: false,
|
|
2232
|
+
costTier: "high",
|
|
2233
|
+
maxThinkingLevel: "ultra"
|
|
2234
|
+
},
|
|
2196
2235
|
// GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
|
|
2197
2236
|
// GPT-5.6 family (Sol/Terra/Luna; there is no GPT-6 Terra — OpenAI's Codex
|
|
2198
2237
|
// catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
|
|
@@ -2221,6 +2260,22 @@ var MODELS = [
|
|
|
2221
2260
|
costTier: "medium",
|
|
2222
2261
|
maxThinkingLevel: "ultra"
|
|
2223
2262
|
},
|
|
2263
|
+
{
|
|
2264
|
+
// Codex Fast mode for 6.1 Sol ("2x speed, increased usage") — see
|
|
2265
|
+
// `gpt-6-astra-fast` for the wire mapping and billing.
|
|
2266
|
+
id: "gpt-6.1-sol-fast",
|
|
2267
|
+
name: "GPT-6.1 Sol Fast",
|
|
2268
|
+
provider: "openai",
|
|
2269
|
+
contextWindow: 105e4,
|
|
2270
|
+
codexContextWindow: 272e3,
|
|
2271
|
+
maxOutputTokens: 128e3,
|
|
2272
|
+
supportsThinking: true,
|
|
2273
|
+
defaultThinkingLevel: "low",
|
|
2274
|
+
supportsImages: true,
|
|
2275
|
+
supportsVideo: false,
|
|
2276
|
+
costTier: "medium",
|
|
2277
|
+
maxThinkingLevel: "ultra"
|
|
2278
|
+
},
|
|
2224
2279
|
{
|
|
2225
2280
|
// Luna — "Fast and affordable model for easier tasks." (Codex priority 4,
|
|
2226
2281
|
// default medium, needs a Codex client >= 0.155.0). $0.10/$0.50 MTok.
|
|
@@ -2238,6 +2293,23 @@ var MODELS = [
|
|
|
2238
2293
|
costTier: "low",
|
|
2239
2294
|
maxThinkingLevel: "max"
|
|
2240
2295
|
},
|
|
2296
|
+
{
|
|
2297
|
+
// Codex Fast mode for Luna ("1.5x speed") — see `gpt-6-astra-fast` for the
|
|
2298
|
+
// wire mapping and billing. Listed after Luna so compaction summaries
|
|
2299
|
+
// (first `low` OpenAI model) stay on standard-speed Luna.
|
|
2300
|
+
id: "gpt-6-luna-fast",
|
|
2301
|
+
name: "GPT-6 Luna Fast",
|
|
2302
|
+
provider: "openai",
|
|
2303
|
+
contextWindow: 105e4,
|
|
2304
|
+
codexContextWindow: 272e3,
|
|
2305
|
+
maxOutputTokens: 128e3,
|
|
2306
|
+
supportsThinking: true,
|
|
2307
|
+
defaultThinkingLevel: "medium",
|
|
2308
|
+
supportsImages: true,
|
|
2309
|
+
supportsVideo: false,
|
|
2310
|
+
costTier: "low",
|
|
2311
|
+
maxThinkingLevel: "max"
|
|
2312
|
+
},
|
|
2241
2313
|
// ── Sakana (Fugu) ──────────────────────────────────────
|
|
2242
2314
|
// Sakana Fugu is a multi-agent system surfaced as a standard LLM via the
|
|
2243
2315
|
// OpenAI-compatible Sakana API (https://api.sakana.ai/v1). All three take
|
|
@@ -2811,7 +2883,9 @@ var SUMMARY_COST_TIER = {
|
|
|
2811
2883
|
};
|
|
2812
2884
|
function getSummaryModel(provider, currentModelId) {
|
|
2813
2885
|
const tier = SUMMARY_COST_TIER[provider];
|
|
2814
|
-
const tagged = tier ? getModelsForProvider(provider).find(
|
|
2886
|
+
const tagged = tier ? getModelsForProvider(provider).find(
|
|
2887
|
+
(m) => m.costTier === tier && !(0, import_gg_ai2.resolveFastModeModel)(provider, m.id).fast
|
|
2888
|
+
) : void 0;
|
|
2815
2889
|
return tagged ?? getModel(currentModelId) ?? getDefaultModel(provider);
|
|
2816
2890
|
}
|
|
2817
2891
|
|
|
@@ -3217,13 +3291,13 @@ var AUTH_PROVIDERS = [
|
|
|
3217
3291
|
{
|
|
3218
3292
|
value: "anthropic",
|
|
3219
3293
|
label: "Anthropic",
|
|
3220
|
-
description: "Claude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5",
|
|
3294
|
+
description: "Claude Fable 5.1, Opus 5.5, Opus 5.5 Fast, Sonnet 5.5, Haiku 5.5",
|
|
3221
3295
|
methods: ["oauth"]
|
|
3222
3296
|
},
|
|
3223
3297
|
{
|
|
3224
3298
|
value: "openai",
|
|
3225
3299
|
label: "OpenAI",
|
|
3226
|
-
description: "GPT-6 Astra, GPT-6.1 Sol, GPT-6 Luna",
|
|
3300
|
+
description: "GPT-6 Astra, GPT-6 Astra Fast, GPT-6.1 Sol, GPT-6.1 Sol Fast, GPT-6 Luna, GPT-6 Luna Fast",
|
|
3227
3301
|
methods: ["oauth"]
|
|
3228
3302
|
},
|
|
3229
3303
|
{
|