@kenkaiiii/gg-core 5.86.0 → 5.86.2

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.
@@ -1,5 +1,24 @@
1
1
  import { Provider, ThinkingLevel } from '@kenkaiiii/gg-ai';
2
2
 
3
+ /**
4
+ * Providers temporarily hidden from every user-facing surface: the login lists
5
+ * (CLI + app), the model pickers, and startup provider resolution. Their models,
6
+ * transports and stored credentials stay in place, so un-hiding is a one-line
7
+ * change here (plus `HIDDEN_PROVIDERS` in gg-app/src-tauri/src/auth.rs).
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.
13
+ *
14
+ * Hiding works through `AuthStorage.hasProviderAuth()`, which reports a hidden
15
+ * provider as not connected: every picker and the startup resolver filter on
16
+ * it, so a user with old Gemini credentials falls back to another provider.
17
+ */
18
+ declare const HIDDEN_PROVIDERS: readonly string[];
19
+ /** True when `provider` is hidden from login lists, pickers and startup. */
20
+ declare function isHiddenProvider(provider: string): boolean;
21
+
3
22
  interface ModelInfo {
4
23
  id: string;
5
24
  name: string;
@@ -106,6 +125,11 @@ declare function clearRuntimeModels(predicate?: (model: ModelInfo) => boolean):
106
125
  declare function getAllModels(): ModelInfo[];
107
126
  declare function getModel(id: string): ModelInfo | undefined;
108
127
  declare function getModelsForProvider(provider: Provider): ModelInfo[];
128
+ /**
129
+ * Models offered in lists that don't filter by login (Telegram `/m`, the
130
+ * agent's model list): everything except hidden providers' models.
131
+ */
132
+ declare function getListedModels(): ModelInfo[];
109
133
  /** True when running `modelId` spends real money (Claude fast mode, MiMo UltraSpeed). */
110
134
  declare function isPaidModel(modelId: string): boolean;
111
135
  /**
@@ -187,4 +211,4 @@ declare function getDefaultThinkingLevel(modelId: string, options?: {
187
211
  */
188
212
  declare function getSummaryModel(provider: Provider, currentModelId: string): ModelInfo;
189
213
 
190
- export { type ContextWindowOptions, DEFAULT_MAX_VIDEO_BYTES, MODELS, type ModelBilling, type ModelInfo, clearRuntimeModels, getAllModels, getAuthStorageKey, getAuthStorageKeys, getContextWindow, getDefaultModel, getDefaultThinkingLevel, getMaxThinkingLevel, getModel, getModelsForProvider, getSummaryModel, getToolResultCharLimit, getVideoByteLimit, isPaidModel, registerRuntimeModels, usesOpenAICodexTransport, withoutPaidTier };
214
+ export { type ContextWindowOptions, DEFAULT_MAX_VIDEO_BYTES, HIDDEN_PROVIDERS, MODELS, type ModelBilling, type ModelInfo, clearRuntimeModels, getAllModels, getAuthStorageKey, getAuthStorageKeys, getContextWindow, getDefaultModel, getDefaultThinkingLevel, getListedModels, getMaxThinkingLevel, getModel, getModelsForProvider, getSummaryModel, getToolResultCharLimit, getVideoByteLimit, isHiddenProvider, isPaidModel, registerRuntimeModels, usesOpenAICodexTransport, withoutPaidTier };
@@ -1,5 +1,24 @@
1
1
  import { Provider, ThinkingLevel } from '@kenkaiiii/gg-ai';
2
2
 
3
+ /**
4
+ * Providers temporarily hidden from every user-facing surface: the login lists
5
+ * (CLI + app), the model pickers, and startup provider resolution. Their models,
6
+ * transports and stored credentials stay in place, so un-hiding is a one-line
7
+ * change here (plus `HIDDEN_PROVIDERS` in gg-app/src-tauri/src/auth.rs).
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.
13
+ *
14
+ * Hiding works through `AuthStorage.hasProviderAuth()`, which reports a hidden
15
+ * provider as not connected: every picker and the startup resolver filter on
16
+ * it, so a user with old Gemini credentials falls back to another provider.
17
+ */
18
+ declare const HIDDEN_PROVIDERS: readonly string[];
19
+ /** True when `provider` is hidden from login lists, pickers and startup. */
20
+ declare function isHiddenProvider(provider: string): boolean;
21
+
3
22
  interface ModelInfo {
4
23
  id: string;
5
24
  name: string;
@@ -106,6 +125,11 @@ declare function clearRuntimeModels(predicate?: (model: ModelInfo) => boolean):
106
125
  declare function getAllModels(): ModelInfo[];
107
126
  declare function getModel(id: string): ModelInfo | undefined;
108
127
  declare function getModelsForProvider(provider: Provider): ModelInfo[];
128
+ /**
129
+ * Models offered in lists that don't filter by login (Telegram `/m`, the
130
+ * agent's model list): everything except hidden providers' models.
131
+ */
132
+ declare function getListedModels(): ModelInfo[];
109
133
  /** True when running `modelId` spends real money (Claude fast mode, MiMo UltraSpeed). */
110
134
  declare function isPaidModel(modelId: string): boolean;
111
135
  /**
@@ -187,4 +211,4 @@ declare function getDefaultThinkingLevel(modelId: string, options?: {
187
211
  */
188
212
  declare function getSummaryModel(provider: Provider, currentModelId: string): ModelInfo;
189
213
 
190
- export { type ContextWindowOptions, DEFAULT_MAX_VIDEO_BYTES, MODELS, type ModelBilling, type ModelInfo, clearRuntimeModels, getAllModels, getAuthStorageKey, getAuthStorageKeys, getContextWindow, getDefaultModel, getDefaultThinkingLevel, getMaxThinkingLevel, getModel, getModelsForProvider, getSummaryModel, getToolResultCharLimit, getVideoByteLimit, isPaidModel, registerRuntimeModels, usesOpenAICodexTransport, withoutPaidTier };
214
+ export { type ContextWindowOptions, DEFAULT_MAX_VIDEO_BYTES, HIDDEN_PROVIDERS, MODELS, type ModelBilling, type ModelInfo, clearRuntimeModels, getAllModels, getAuthStorageKey, getAuthStorageKeys, getContextWindow, getDefaultModel, getDefaultThinkingLevel, getListedModels, getMaxThinkingLevel, getModel, getModelsForProvider, getSummaryModel, getToolResultCharLimit, getVideoByteLimit, isHiddenProvider, isPaidModel, registerRuntimeModels, usesOpenAICodexTransport, withoutPaidTier };
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  DEFAULT_MAX_VIDEO_BYTES,
3
+ HIDDEN_PROVIDERS,
3
4
  MODELS,
4
5
  clearRuntimeModels,
5
6
  getAllModels,
@@ -8,20 +9,23 @@ import {
8
9
  getContextWindow,
9
10
  getDefaultModel,
10
11
  getDefaultThinkingLevel,
12
+ getListedModels,
11
13
  getMaxThinkingLevel,
12
14
  getModel,
13
15
  getModelsForProvider,
14
16
  getSummaryModel,
15
17
  getToolResultCharLimit,
16
18
  getVideoByteLimit,
19
+ isHiddenProvider,
17
20
  isPaidModel,
18
21
  registerRuntimeModels,
19
22
  usesOpenAICodexTransport,
20
23
  withoutPaidTier
21
- } from "./chunk-WXIUTKXE.js";
24
+ } from "./chunk-HMJZM62P.js";
22
25
  import "./chunk-2X5L6U4Z.js";
23
26
  export {
24
27
  DEFAULT_MAX_VIDEO_BYTES,
28
+ HIDDEN_PROVIDERS,
25
29
  MODELS,
26
30
  clearRuntimeModels,
27
31
  getAllModels,
@@ -30,12 +34,14 @@ export {
30
34
  getContextWindow,
31
35
  getDefaultModel,
32
36
  getDefaultThinkingLevel,
37
+ getListedModels,
33
38
  getMaxThinkingLevel,
34
39
  getModel,
35
40
  getModelsForProvider,
36
41
  getSummaryModel,
37
42
  getToolResultCharLimit,
38
43
  getVideoByteLimit,
44
+ isHiddenProvider,
39
45
  isPaidModel,
40
46
  registerRuntimeModels,
41
47
  usesOpenAICodexTransport,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenkaiiii/gg-core",
3
- "version": "5.86.0",
3
+ "version": "5.86.2",
4
4
  "type": "module",
5
5
  "description": "Provider-agnostic, UI-free shared foundation: model registry, auth, paths, telegram, voice",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@kenkaiiii/gg-ai": "5.86.0"
39
+ "@kenkaiiii/gg-ai": "5.86.2"
40
40
  },
41
41
  "optionalDependencies": {
42
42
  "@huggingface/transformers": "4.2.0",