@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.
@@ -1464,6 +1464,7 @@ var STATIC_API_KEY_PROVIDERS = /* @__PURE__ */ new Set([
1464
1464
  "minimax",
1465
1465
  "deepseek",
1466
1466
  "openrouter",
1467
+ "huggingface",
1467
1468
  "sakana",
1468
1469
  "xai",
1469
1470
  // Local endpoints: a fixed (usually placeholder) key, never refreshable.
@@ -2057,11 +2058,29 @@ var MODELS = [
2057
2058
  maxThinkingLevel: "xhigh"
2058
2059
  },
2059
2060
  // ── xAI (Grok) ─────────────────────────────────────────
2060
- // Grok 4.5 (released 2026-07-08) is xAI's flagship for coding, agentic
2061
- // tasks, and knowledge work — 500K context, text+image input, configurable
2062
- // `reasoning_effort` (low/medium/high, server default high; reasoning can't
2063
- // be fully disabled). Served over the OpenAI-compatible API at
2064
- // https://api.x.ai/v1 (API key from console.x.ai). xAI hasn't published an
2061
+ // Grok 4.6 (released 2026-08-12) is xAI's flagship for coding, agentic tasks,
2062
+ // and knowledge work, with a focus on long-running agents — 500K context,
2063
+ // text+image input, and a `reasoning_effort` ladder that adds a new `xhigh`
2064
+ // top rung (low/medium/high default/xhigh; reasoning still can't be fully
2065
+ // disabled). $2/$6 per MTok under 200K prompt tokens ($4/$12 at or above),
2066
+ // and it's the default model of the Grok Build coding agent. xAI advertises "no text output limit"; we keep the same
2067
+ // 131K practical cap as 4.5 for budget predictability and input headroom.
2068
+ {
2069
+ id: "grok-4.6",
2070
+ name: "Grok 4.6",
2071
+ provider: "xai",
2072
+ contextWindow: 5e5,
2073
+ maxOutputTokens: 131072,
2074
+ supportsThinking: true,
2075
+ supportsImages: true,
2076
+ supportsVideo: false,
2077
+ costTier: "medium",
2078
+ maxThinkingLevel: "xhigh"
2079
+ },
2080
+ // Grok 4.5 (released 2026-07-08) — superseded by 4.6 but retained as an explicit option. 500K context, text+image input,
2081
+ // configurable `reasoning_effort` (low/medium/high, server default high;
2082
+ // reasoning can't be fully disabled). Served over the OpenAI-compatible API
2083
+ // at https://api.x.ai/v1 (API key from console.x.ai). xAI hasn't published an
2065
2084
  // official max-output cap for 4.5; 131K matches the Grok Responses ceiling
2066
2085
  // third-party integrations use.
2067
2086
  {
@@ -2076,7 +2095,7 @@ var MODELS = [
2076
2095
  costTier: "medium",
2077
2096
  maxThinkingLevel: "high"
2078
2097
  },
2079
- // ── Gemini ─────────────────────────────────────────────
2098
+ // ── Gemini ─────────────────────────────────────────
2080
2099
  {
2081
2100
  id: "gemini-3.1-flash-lite",
2082
2101
  name: "Gemini 3.1 Flash Lite",
@@ -2090,6 +2109,28 @@ var MODELS = [
2090
2109
  costTier: "low",
2091
2110
  maxThinkingLevel: "high"
2092
2111
  },
2112
+ {
2113
+ // Gemini 3.7 Flash (released 2026-08-13) — Google's most capable Flash for
2114
+ // coding, agents, and multi-step execution; GA-stable on the Gemini API as
2115
+ // `gemini-3.7-flash`. 1M context, 64K output, thinking low/medium/high.
2116
+ // Sent over our Code Assist (OAuth) transport ahead of gemini-cli — upstream
2117
+ // hasn't listed 3.7 yet (google-gemini/gemini-cli#28802, still open) — so
2118
+ // free/personal accounts 404 (entitlement-gated) while Code Assist
2119
+ // Standard/Enterprise accounts get it. Listed SECOND, after flash-lite:
2120
+ // getFastModel picks the first low-tier entry, and flash-lite is the one
2121
+ // that works on every account.
2122
+ id: "gemini-3.7-flash",
2123
+ name: "Gemini 3.7 Flash",
2124
+ provider: "gemini",
2125
+ contextWindow: 1048576,
2126
+ maxOutputTokens: 65536,
2127
+ supportsThinking: true,
2128
+ supportsImages: true,
2129
+ supportsVideo: true,
2130
+ maxVideoBytes: 20 * 1024 * 1024,
2131
+ costTier: "low",
2132
+ maxThinkingLevel: "high"
2133
+ },
2093
2134
  {
2094
2135
  // Wire name `gemini-3-flash` — the Code Assist (OAuth) backend rejects the
2095
2136
  // display string `gemini-3.5-flash` with a 404, so gemini-cli keeps this
@@ -2242,15 +2283,21 @@ var MODELS = [
2242
2283
  },
2243
2284
  // ── DeepSeek ───────────────────────────────────────────
2244
2285
  {
2286
+ // `deepseek-v4-pro` now serves DeepSeek-V4-Pro-0813 (released 2026-08-13,
2287
+ // first STABLE V4 Pro — supersedes the April preview; calling name
2288
+ // unchanged, same 1.6T/49B MoE). 1M context, 384K (393,216) max output,
2289
+ // text-only, reasoning ladder low/high plus Think Max — mapped from our
2290
+ // `xhigh`. ~$0.43/$0.87 per MTok on DeepSeek's own API, so a mid-tier
2291
+ // price band rather than the preview's top band.
2245
2292
  id: "deepseek-v4-pro",
2246
2293
  name: "DeepSeek V4 Pro",
2247
2294
  provider: "deepseek",
2248
2295
  contextWindow: 1048576,
2249
- maxOutputTokens: 384e3,
2296
+ maxOutputTokens: 393216,
2250
2297
  supportsThinking: true,
2251
2298
  supportsImages: false,
2252
2299
  supportsVideo: false,
2253
- costTier: "high",
2300
+ costTier: "medium",
2254
2301
  // DeepSeek V4 maps `xhigh` → its internal `max` tier.
2255
2302
  maxThinkingLevel: "xhigh"
2256
2303
  },
@@ -2278,6 +2325,45 @@ var MODELS = [
2278
2325
  supportsVideo: false,
2279
2326
  costTier: "medium",
2280
2327
  maxThinkingLevel: "high"
2328
+ },
2329
+ // ── Hugging Face (Inference Providers router) ────────
2330
+ // One HF token (hf.co/settings/tokens, "Make calls to Inference Providers"
2331
+ // permission) routes to whichever hosted backend serves each open model;
2332
+ // billing follows each backend's rates on the HF account (small free tier).
2333
+ // Model ids are Hub repo paths, so they intentionally contain a slash — the
2334
+ // same shape local/ vLLM ids already use (`local/vllm/Qwen/Qwen3-32B`).
2335
+ {
2336
+ // Qwen's open flagship for agentic coding — tool-calling native, non-thinking
2337
+ // (the Coder line dropped the <think> block). 262K native context (1M needs
2338
+ // YaRN, which the router doesn't apply), 131K max output. :auto suffix lets
2339
+ // HF pick the backend with capacity; we keep the bare repo id so the picker
2340
+ // matches what GET /v1/models reports.
2341
+ id: "Qwen/Qwen3-Coder-480B-A35B-Instruct",
2342
+ name: "Qwen3 Coder 480B",
2343
+ provider: "huggingface",
2344
+ contextWindow: 262144,
2345
+ maxOutputTokens: 131072,
2346
+ supportsThinking: false,
2347
+ supportsImages: false,
2348
+ supportsVideo: false,
2349
+ costTier: "medium",
2350
+ maxThinkingLevel: "low"
2351
+ },
2352
+ {
2353
+ // OpenAI's open-weight 120B MoE (5.1B active) — general-purpose, tool-calling
2354
+ // native, adjustable reasoning effort (low/medium/high, default medium) over
2355
+ // the router's Chat Completions API. Cheap enough to be the low-tier sibling
2356
+ // for summaries and fast sub-agents.
2357
+ id: "openai/gpt-oss-120b",
2358
+ name: "GPT-OSS 120B",
2359
+ provider: "huggingface",
2360
+ contextWindow: 131072,
2361
+ maxOutputTokens: 65536,
2362
+ supportsThinking: true,
2363
+ supportsImages: false,
2364
+ supportsVideo: false,
2365
+ costTier: "low",
2366
+ maxThinkingLevel: "high"
2281
2367
  }
2282
2368
  ];
2283
2369
  var runtimeModels = /* @__PURE__ */ new Map();
@@ -2323,9 +2409,11 @@ function getDefaultModel(provider) {
2323
2409
  if (provider === "moonshot") return MODELS.find((m) => m.id === "kimi-k3");
2324
2410
  if (provider === "minimax") return MODELS.find((m) => m.id === "MiniMax-M3");
2325
2411
  if (provider === "deepseek") return MODELS.find((m) => m.id === "deepseek-v4-pro");
2412
+ if (provider === "huggingface")
2413
+ return MODELS.find((m) => m.id === "Qwen/Qwen3-Coder-480B-A35B-Instruct");
2326
2414
  if (provider === "openrouter") return MODELS.find((m) => m.id === "qwen/qwen3.6-plus");
2327
2415
  if (provider === "sakana") return MODELS.find((m) => m.id === "fugu");
2328
- if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.5");
2416
+ if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.6");
2329
2417
  if (provider === "local") {
2330
2418
  return getModelsForProvider("local")[0] ?? PLACEHOLDER_LOCAL_MODEL;
2331
2419
  }
@@ -2369,7 +2457,7 @@ function getSummaryModel(provider, currentModelId) {
2369
2457
  if (provider === "anthropic") {
2370
2458
  return MODELS.find((m) => m.id === "claude-sonnet-5");
2371
2459
  }
2372
- if (provider === "openai" || provider === "glm" || provider === "deepseek") {
2460
+ if (provider === "openai" || provider === "glm" || provider === "deepseek" || provider === "huggingface") {
2373
2461
  const low = getModelsForProvider(provider).find((m) => m.costTier === "low");
2374
2462
  if (low) return low;
2375
2463
  }
@@ -2437,4 +2525,4 @@ export {
2437
2525
  getSummaryModel,
2438
2526
  getFastModel
2439
2527
  };
2440
- //# sourceMappingURL=chunk-CP2WHB57.js.map
2528
+ //# sourceMappingURL=chunk-VMWOH3GU.js.map