@kenkaiiii/gg-core 5.47.0 → 5.49.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-CP2WHB57.js → chunk-VMWOH3GU.js} +99 -11
- package/dist/chunk-VMWOH3GU.js.map +1 -0
- package/dist/index.cjs +100 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +97 -10
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +1 -0
- package/dist/model-registry.d.ts +1 -0
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-CP2WHB57.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1605,6 +1605,7 @@ var STATIC_API_KEY_PROVIDERS = /* @__PURE__ */ new Set([
|
|
|
1605
1605
|
"minimax",
|
|
1606
1606
|
"deepseek",
|
|
1607
1607
|
"openrouter",
|
|
1608
|
+
"huggingface",
|
|
1608
1609
|
"sakana",
|
|
1609
1610
|
"xai",
|
|
1610
1611
|
// Local endpoints: a fixed (usually placeholder) key, never refreshable.
|
|
@@ -2198,11 +2199,29 @@ var MODELS = [
|
|
|
2198
2199
|
maxThinkingLevel: "xhigh"
|
|
2199
2200
|
},
|
|
2200
2201
|
// ── xAI (Grok) ─────────────────────────────────────────
|
|
2201
|
-
// Grok 4.
|
|
2202
|
-
//
|
|
2203
|
-
// `reasoning_effort`
|
|
2204
|
-
//
|
|
2205
|
-
//
|
|
2202
|
+
// Grok 4.6 (released 2026-08-12) is xAI's flagship for coding, agentic tasks,
|
|
2203
|
+
// and knowledge work, with a focus on long-running agents — 500K context,
|
|
2204
|
+
// text+image input, and a `reasoning_effort` ladder that adds a new `xhigh`
|
|
2205
|
+
// top rung (low/medium/high default/xhigh; reasoning still can't be fully
|
|
2206
|
+
// disabled). $2/$6 per MTok under 200K prompt tokens ($4/$12 at or above),
|
|
2207
|
+
// and it's the default model of the Grok Build coding agent. xAI advertises "no text output limit"; we keep the same
|
|
2208
|
+
// 131K practical cap as 4.5 for budget predictability and input headroom.
|
|
2209
|
+
{
|
|
2210
|
+
id: "grok-4.6",
|
|
2211
|
+
name: "Grok 4.6",
|
|
2212
|
+
provider: "xai",
|
|
2213
|
+
contextWindow: 5e5,
|
|
2214
|
+
maxOutputTokens: 131072,
|
|
2215
|
+
supportsThinking: true,
|
|
2216
|
+
supportsImages: true,
|
|
2217
|
+
supportsVideo: false,
|
|
2218
|
+
costTier: "medium",
|
|
2219
|
+
maxThinkingLevel: "xhigh"
|
|
2220
|
+
},
|
|
2221
|
+
// Grok 4.5 (released 2026-07-08) — superseded by 4.6 but retained as an explicit option. 500K context, text+image input,
|
|
2222
|
+
// configurable `reasoning_effort` (low/medium/high, server default high;
|
|
2223
|
+
// reasoning can't be fully disabled). Served over the OpenAI-compatible API
|
|
2224
|
+
// at https://api.x.ai/v1 (API key from console.x.ai). xAI hasn't published an
|
|
2206
2225
|
// official max-output cap for 4.5; 131K matches the Grok Responses ceiling
|
|
2207
2226
|
// third-party integrations use.
|
|
2208
2227
|
{
|
|
@@ -2217,7 +2236,7 @@ var MODELS = [
|
|
|
2217
2236
|
costTier: "medium",
|
|
2218
2237
|
maxThinkingLevel: "high"
|
|
2219
2238
|
},
|
|
2220
|
-
// ── Gemini
|
|
2239
|
+
// ── Gemini ─────────────────────────────────────────
|
|
2221
2240
|
{
|
|
2222
2241
|
id: "gemini-3.1-flash-lite",
|
|
2223
2242
|
name: "Gemini 3.1 Flash Lite",
|
|
@@ -2231,6 +2250,28 @@ var MODELS = [
|
|
|
2231
2250
|
costTier: "low",
|
|
2232
2251
|
maxThinkingLevel: "high"
|
|
2233
2252
|
},
|
|
2253
|
+
{
|
|
2254
|
+
// Gemini 3.7 Flash (released 2026-08-13) — Google's most capable Flash for
|
|
2255
|
+
// coding, agents, and multi-step execution; GA-stable on the Gemini API as
|
|
2256
|
+
// `gemini-3.7-flash`. 1M context, 64K output, thinking low/medium/high.
|
|
2257
|
+
// Sent over our Code Assist (OAuth) transport ahead of gemini-cli — upstream
|
|
2258
|
+
// hasn't listed 3.7 yet (google-gemini/gemini-cli#28802, still open) — so
|
|
2259
|
+
// free/personal accounts 404 (entitlement-gated) while Code Assist
|
|
2260
|
+
// Standard/Enterprise accounts get it. Listed SECOND, after flash-lite:
|
|
2261
|
+
// getFastModel picks the first low-tier entry, and flash-lite is the one
|
|
2262
|
+
// that works on every account.
|
|
2263
|
+
id: "gemini-3.7-flash",
|
|
2264
|
+
name: "Gemini 3.7 Flash",
|
|
2265
|
+
provider: "gemini",
|
|
2266
|
+
contextWindow: 1048576,
|
|
2267
|
+
maxOutputTokens: 65536,
|
|
2268
|
+
supportsThinking: true,
|
|
2269
|
+
supportsImages: true,
|
|
2270
|
+
supportsVideo: true,
|
|
2271
|
+
maxVideoBytes: 20 * 1024 * 1024,
|
|
2272
|
+
costTier: "low",
|
|
2273
|
+
maxThinkingLevel: "high"
|
|
2274
|
+
},
|
|
2234
2275
|
{
|
|
2235
2276
|
// Wire name `gemini-3-flash` — the Code Assist (OAuth) backend rejects the
|
|
2236
2277
|
// display string `gemini-3.5-flash` with a 404, so gemini-cli keeps this
|
|
@@ -2383,15 +2424,21 @@ var MODELS = [
|
|
|
2383
2424
|
},
|
|
2384
2425
|
// ── DeepSeek ───────────────────────────────────────────
|
|
2385
2426
|
{
|
|
2427
|
+
// `deepseek-v4-pro` now serves DeepSeek-V4-Pro-0813 (released 2026-08-13,
|
|
2428
|
+
// first STABLE V4 Pro — supersedes the April preview; calling name
|
|
2429
|
+
// unchanged, same 1.6T/49B MoE). 1M context, 384K (393,216) max output,
|
|
2430
|
+
// text-only, reasoning ladder low/high plus Think Max — mapped from our
|
|
2431
|
+
// `xhigh`. ~$0.43/$0.87 per MTok on DeepSeek's own API, so a mid-tier
|
|
2432
|
+
// price band rather than the preview's top band.
|
|
2386
2433
|
id: "deepseek-v4-pro",
|
|
2387
2434
|
name: "DeepSeek V4 Pro",
|
|
2388
2435
|
provider: "deepseek",
|
|
2389
2436
|
contextWindow: 1048576,
|
|
2390
|
-
maxOutputTokens:
|
|
2437
|
+
maxOutputTokens: 393216,
|
|
2391
2438
|
supportsThinking: true,
|
|
2392
2439
|
supportsImages: false,
|
|
2393
2440
|
supportsVideo: false,
|
|
2394
|
-
costTier: "
|
|
2441
|
+
costTier: "medium",
|
|
2395
2442
|
// DeepSeek V4 maps `xhigh` → its internal `max` tier.
|
|
2396
2443
|
maxThinkingLevel: "xhigh"
|
|
2397
2444
|
},
|
|
@@ -2419,6 +2466,45 @@ var MODELS = [
|
|
|
2419
2466
|
supportsVideo: false,
|
|
2420
2467
|
costTier: "medium",
|
|
2421
2468
|
maxThinkingLevel: "high"
|
|
2469
|
+
},
|
|
2470
|
+
// ── Hugging Face (Inference Providers router) ────────
|
|
2471
|
+
// One HF token (hf.co/settings/tokens, "Make calls to Inference Providers"
|
|
2472
|
+
// permission) routes to whichever hosted backend serves each open model;
|
|
2473
|
+
// billing follows each backend's rates on the HF account (small free tier).
|
|
2474
|
+
// Model ids are Hub repo paths, so they intentionally contain a slash — the
|
|
2475
|
+
// same shape local/ vLLM ids already use (`local/vllm/Qwen/Qwen3-32B`).
|
|
2476
|
+
{
|
|
2477
|
+
// Qwen's open flagship for agentic coding — tool-calling native, non-thinking
|
|
2478
|
+
// (the Coder line dropped the <think> block). 262K native context (1M needs
|
|
2479
|
+
// YaRN, which the router doesn't apply), 131K max output. :auto suffix lets
|
|
2480
|
+
// HF pick the backend with capacity; we keep the bare repo id so the picker
|
|
2481
|
+
// matches what GET /v1/models reports.
|
|
2482
|
+
id: "Qwen/Qwen3-Coder-480B-A35B-Instruct",
|
|
2483
|
+
name: "Qwen3 Coder 480B",
|
|
2484
|
+
provider: "huggingface",
|
|
2485
|
+
contextWindow: 262144,
|
|
2486
|
+
maxOutputTokens: 131072,
|
|
2487
|
+
supportsThinking: false,
|
|
2488
|
+
supportsImages: false,
|
|
2489
|
+
supportsVideo: false,
|
|
2490
|
+
costTier: "medium",
|
|
2491
|
+
maxThinkingLevel: "low"
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
// OpenAI's open-weight 120B MoE (5.1B active) — general-purpose, tool-calling
|
|
2495
|
+
// native, adjustable reasoning effort (low/medium/high, default medium) over
|
|
2496
|
+
// the router's Chat Completions API. Cheap enough to be the low-tier sibling
|
|
2497
|
+
// for summaries and fast sub-agents.
|
|
2498
|
+
id: "openai/gpt-oss-120b",
|
|
2499
|
+
name: "GPT-OSS 120B",
|
|
2500
|
+
provider: "huggingface",
|
|
2501
|
+
contextWindow: 131072,
|
|
2502
|
+
maxOutputTokens: 65536,
|
|
2503
|
+
supportsThinking: true,
|
|
2504
|
+
supportsImages: false,
|
|
2505
|
+
supportsVideo: false,
|
|
2506
|
+
costTier: "low",
|
|
2507
|
+
maxThinkingLevel: "high"
|
|
2422
2508
|
}
|
|
2423
2509
|
];
|
|
2424
2510
|
var runtimeModels = /* @__PURE__ */ new Map();
|
|
@@ -2464,9 +2550,11 @@ function getDefaultModel(provider) {
|
|
|
2464
2550
|
if (provider === "moonshot") return MODELS.find((m) => m.id === "kimi-k3");
|
|
2465
2551
|
if (provider === "minimax") return MODELS.find((m) => m.id === "MiniMax-M3");
|
|
2466
2552
|
if (provider === "deepseek") return MODELS.find((m) => m.id === "deepseek-v4-pro");
|
|
2553
|
+
if (provider === "huggingface")
|
|
2554
|
+
return MODELS.find((m) => m.id === "Qwen/Qwen3-Coder-480B-A35B-Instruct");
|
|
2467
2555
|
if (provider === "openrouter") return MODELS.find((m) => m.id === "qwen/qwen3.6-plus");
|
|
2468
2556
|
if (provider === "sakana") return MODELS.find((m) => m.id === "fugu");
|
|
2469
|
-
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.
|
|
2557
|
+
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.6");
|
|
2470
2558
|
if (provider === "local") {
|
|
2471
2559
|
return getModelsForProvider("local")[0] ?? PLACEHOLDER_LOCAL_MODEL;
|
|
2472
2560
|
}
|
|
@@ -2510,7 +2598,7 @@ function getSummaryModel(provider, currentModelId) {
|
|
|
2510
2598
|
if (provider === "anthropic") {
|
|
2511
2599
|
return MODELS.find((m) => m.id === "claude-sonnet-5");
|
|
2512
2600
|
}
|
|
2513
|
-
if (provider === "openai" || provider === "glm" || provider === "deepseek") {
|
|
2601
|
+
if (provider === "openai" || provider === "glm" || provider === "deepseek" || provider === "huggingface") {
|
|
2514
2602
|
const low = getModelsForProvider(provider).find((m) => m.costTier === "low");
|
|
2515
2603
|
if (low) return low;
|
|
2516
2604
|
}
|
|
@@ -2532,7 +2620,7 @@ var OPENAI_GPT_56_THINKING_LEVELS = [
|
|
|
2532
2620
|
"ultra"
|
|
2533
2621
|
];
|
|
2534
2622
|
var SAKANA_THINKING_LEVELS = ["high", "xhigh"];
|
|
2535
|
-
var XAI_THINKING_LEVELS = ["low", "medium", "high"];
|
|
2623
|
+
var XAI_THINKING_LEVELS = ["low", "medium", "high", "xhigh"];
|
|
2536
2624
|
var ANTHROPIC_XHIGH_THINKING_LEVELS = [
|
|
2537
2625
|
"low",
|
|
2538
2626
|
"medium",
|
|
@@ -2627,10 +2715,7 @@ function getNextThinkingLevel(provider, model, current) {
|
|
|
2627
2715
|
|
|
2628
2716
|
// src/local-models.ts
|
|
2629
2717
|
var DEFAULT_LOCAL_ENDPOINTS = [
|
|
2630
|
-
{ id: "ollama", label: "Ollama", baseUrl: "http://127.0.0.1:11434/v1", kind: "ollama" }
|
|
2631
|
-
{ id: "lmstudio", label: "LM Studio", baseUrl: "http://127.0.0.1:1234/v1", kind: "lmstudio" },
|
|
2632
|
-
{ id: "llamacpp", label: "llama.cpp", baseUrl: "http://127.0.0.1:8080/v1", kind: "llamacpp" },
|
|
2633
|
-
{ id: "vllm", label: "vLLM", baseUrl: "http://127.0.0.1:8000/v1", kind: "vllm" }
|
|
2718
|
+
{ id: "ollama", label: "Ollama", baseUrl: "http://127.0.0.1:11434/v1", kind: "ollama" }
|
|
2634
2719
|
];
|
|
2635
2720
|
var FALLBACK_CONTEXT_WINDOW = 8192;
|
|
2636
2721
|
var LOCAL_API_KEY_PLACEHOLDER = "local";
|