@kenkaiiii/gg-core 5.94.0 → 5.95.1

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.
@@ -6,10 +6,7 @@ import { Provider, ThinkingLevel } from '@kenkaiiii/gg-ai';
6
6
  * transports and stored credentials stay in place, so un-hiding is a one-line
7
7
  * change here (plus `HIDDEN_PROVIDERS` in gg-app/src-tauri/src/auth.rs).
8
8
  *
9
- * - `gemini`: Google stopped serving Code Assist OAuth to personal accounts on
10
- * 2026-06-18, and Antigravity OAuth is off-limits to third-party clients
11
- * (Google suspends accounts for it). Hidden until there is a sign-in path that
12
- * works for most users.
9
+ * None are hidden today: Gemini came back with an AI Studio API key.
13
10
  *
14
11
  * Hiding works through `AuthStorage.hasProviderAuth()`, which reports a hidden
15
12
  * provider as not connected: every picker and the startup resolver filter on
@@ -25,9 +22,9 @@ interface ModelInfo {
25
22
  provider: Provider;
26
23
  contextWindow: number;
27
24
  /**
28
- * ChatGPT Codex transport uses product-specific windows that can differ from
29
- * the public API model window. OpenAI OAuth requests include an accountId and
30
- * route through `/codex/responses`; API-key requests do not.
25
+ * The ChatGPT plan route uses product-specific windows that can differ from
26
+ * the public API model window. ChatGPT plan requests carry an accountId;
27
+ * API-key requests do not.
31
28
  */
32
29
  codexContextWindow?: number;
33
30
  maxOutputTokens: number;
@@ -80,8 +77,7 @@ interface ModelInfo {
80
77
  /**
81
78
  * Ordered preference of auth-storage keys this model resolves credentials
82
79
  * from, for providers that split auth across multiple distinct
83
- * endpoints/keys (currently only Xiaomi: the Token Plan endpoint vs. the
84
- * API Credits endpoint). The first key with stored credentials wins, so a
80
+ * endpoints/keys (a plan key vs. a pay-per-token key). The first key with stored credentials wins, so a
85
81
  * model can both prefer one endpoint AND fall back to another the user has
86
82
  * configured instead:
87
83
  * - `mimo-v2.6-pro` / `mimo-v2.6-flash`: `["xiaomi", XIAOMI_CREDITS_KEY]` —
@@ -89,9 +85,9 @@ interface ModelInfo {
89
85
  * every MiMo model, so a Credits-only user still reaches these).
90
86
  * - `mimo-v2.6-pro-ultraspeed`: `[XIAOMI_CREDITS_KEY]` only — not served
91
87
  * over the Token Plan endpoint, so there's no fallback to it.
92
- * - every Gemini model: `[GEMINI_API_KEY, "gemini"]` — an AI Studio API key
93
- * first (the user chose to pay per token, and Code Assist OAuth now
94
- * refuses personal accounts), then the Code Assist OAuth login.
88
+ * - Kimi: `[KIMI_CODE_KEY, "moonshot"]` — the Kimi Code plan key first;
89
+ * K2.8 Preview is `[KIMI_CODE_KEY]` only (the plan endpoint serves it).
90
+ * - every Gemini model: `[GEMINI_API_KEY]` — the AI Studio key.
95
91
  * Falls back to `[provider]` — the normal single-credential case — when
96
92
  * unset. Read via `getAuthStorageKeys()` / `getAuthStorageKey()`.
97
93
  */
@@ -201,9 +197,9 @@ declare function getMaxThinkingLevel(modelId: string): ThinkingLevel;
201
197
  /**
202
198
  * The thinking level a fresh session starts at. Identical to
203
199
  * {@link getMaxThinkingLevel} except where the provider declares a lower
204
- * default effort server-side — Kimi K3's Kimi For Coding OAuth endpoint
205
- * declares `default_effort: "high"` in its /models think_efforts (the public
206
- * Moonshot API declares "max"), and the official kimi-code CLI starts there.
200
+ * default effort server-side — Kimi K3's Kimi Code plan endpoint declares
201
+ * `default_effort: "high"` in its /models think_efforts (the public Moonshot
202
+ * API declares "max").
207
203
  * Pass the active credential's baseUrl so the endpoint-aware default resolves;
208
204
  * matching it keeps plan-usage burn identical to the official CLI (users can
209
205
  * still toggle up to max).
@@ -6,10 +6,7 @@ import { Provider, ThinkingLevel } from '@kenkaiiii/gg-ai';
6
6
  * transports and stored credentials stay in place, so un-hiding is a one-line
7
7
  * change here (plus `HIDDEN_PROVIDERS` in gg-app/src-tauri/src/auth.rs).
8
8
  *
9
- * - `gemini`: Google stopped serving Code Assist OAuth to personal accounts on
10
- * 2026-06-18, and Antigravity OAuth is off-limits to third-party clients
11
- * (Google suspends accounts for it). Hidden until there is a sign-in path that
12
- * works for most users.
9
+ * None are hidden today: Gemini came back with an AI Studio API key.
13
10
  *
14
11
  * Hiding works through `AuthStorage.hasProviderAuth()`, which reports a hidden
15
12
  * provider as not connected: every picker and the startup resolver filter on
@@ -25,9 +22,9 @@ interface ModelInfo {
25
22
  provider: Provider;
26
23
  contextWindow: number;
27
24
  /**
28
- * ChatGPT Codex transport uses product-specific windows that can differ from
29
- * the public API model window. OpenAI OAuth requests include an accountId and
30
- * route through `/codex/responses`; API-key requests do not.
25
+ * The ChatGPT plan route uses product-specific windows that can differ from
26
+ * the public API model window. ChatGPT plan requests carry an accountId;
27
+ * API-key requests do not.
31
28
  */
32
29
  codexContextWindow?: number;
33
30
  maxOutputTokens: number;
@@ -80,8 +77,7 @@ interface ModelInfo {
80
77
  /**
81
78
  * Ordered preference of auth-storage keys this model resolves credentials
82
79
  * from, for providers that split auth across multiple distinct
83
- * endpoints/keys (currently only Xiaomi: the Token Plan endpoint vs. the
84
- * API Credits endpoint). The first key with stored credentials wins, so a
80
+ * endpoints/keys (a plan key vs. a pay-per-token key). The first key with stored credentials wins, so a
85
81
  * model can both prefer one endpoint AND fall back to another the user has
86
82
  * configured instead:
87
83
  * - `mimo-v2.6-pro` / `mimo-v2.6-flash`: `["xiaomi", XIAOMI_CREDITS_KEY]` —
@@ -89,9 +85,9 @@ interface ModelInfo {
89
85
  * every MiMo model, so a Credits-only user still reaches these).
90
86
  * - `mimo-v2.6-pro-ultraspeed`: `[XIAOMI_CREDITS_KEY]` only — not served
91
87
  * over the Token Plan endpoint, so there's no fallback to it.
92
- * - every Gemini model: `[GEMINI_API_KEY, "gemini"]` — an AI Studio API key
93
- * first (the user chose to pay per token, and Code Assist OAuth now
94
- * refuses personal accounts), then the Code Assist OAuth login.
88
+ * - Kimi: `[KIMI_CODE_KEY, "moonshot"]` — the Kimi Code plan key first;
89
+ * K2.8 Preview is `[KIMI_CODE_KEY]` only (the plan endpoint serves it).
90
+ * - every Gemini model: `[GEMINI_API_KEY]` — the AI Studio key.
95
91
  * Falls back to `[provider]` — the normal single-credential case — when
96
92
  * unset. Read via `getAuthStorageKeys()` / `getAuthStorageKey()`.
97
93
  */
@@ -201,9 +197,9 @@ declare function getMaxThinkingLevel(modelId: string): ThinkingLevel;
201
197
  /**
202
198
  * The thinking level a fresh session starts at. Identical to
203
199
  * {@link getMaxThinkingLevel} except where the provider declares a lower
204
- * default effort server-side — Kimi K3's Kimi For Coding OAuth endpoint
205
- * declares `default_effort: "high"` in its /models think_efforts (the public
206
- * Moonshot API declares "max"), and the official kimi-code CLI starts there.
200
+ * default effort server-side — Kimi K3's Kimi Code plan endpoint declares
201
+ * `default_effort: "high"` in its /models think_efforts (the public Moonshot
202
+ * API declares "max").
207
203
  * Pass the active credential's baseUrl so the endpoint-aware default resolves;
208
204
  * matching it keeps plan-usage burn identical to the official CLI (users can
209
205
  * still toggle up to max).
@@ -23,7 +23,7 @@ import {
23
23
  setProviderCatalog,
24
24
  usesOpenAICodexTransport,
25
25
  withoutPaidTier
26
- } from "./chunk-JLEBGMG4.js";
26
+ } from "./chunk-J7W5HS6X.js";
27
27
  import "./chunk-GXOFTHM5.js";
28
28
  export {
29
29
  DEFAULT_MAX_VIDEO_BYTES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenkaiiii/gg-core",
3
- "version": "5.94.0",
3
+ "version": "5.95.1",
4
4
  "type": "module",
5
5
  "description": "Model registry, sign-in and stored credentials, and local model discovery for apps built on gg-ai. No UI, no agent loop.",
6
6
  "author": "Ken Kai",
@@ -50,7 +50,7 @@
50
50
  "NOTICE"
51
51
  ],
52
52
  "dependencies": {
53
- "@kenkaiiii/gg-ai": "5.94.0"
53
+ "@kenkaiiii/gg-ai": "5.95.1"
54
54
  },
55
55
  "optionalDependencies": {
56
56
  "@huggingface/transformers": "4.2.0",