@kenkaiiii/gg-core 5.85.0 → 5.86.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.
@@ -1220,7 +1220,7 @@ var DEFAULT_CLIENT_ID2 = "b1a00492-073a-47ea-816f-4c329264a828";
1220
1220
  var DEFAULT_ISSUER = "https://auth.x.ai";
1221
1221
  var DEFAULT_CLI_BASE_URL = "https://cli-chat-proxy.grok.com/v1";
1222
1222
  var OAUTH_SCOPE = "openid profile email offline_access grok-cli:access api:access";
1223
- var DEFAULT_GROK_CLI_VERSION = "0.2.101";
1223
+ var DEFAULT_GROK_CLI_VERSION = "1.0.67";
1224
1224
  var DEVICE_TIMEOUT_FALLBACK_MS = 10 * 60 * 1e3;
1225
1225
  var DEFAULT_TOKEN_LIFETIME_SECONDS = 3600;
1226
1226
  function issuer() {
@@ -1476,6 +1476,12 @@ function isAlive(pid) {
1476
1476
  }
1477
1477
  }
1478
1478
 
1479
+ // src/hidden-providers.ts
1480
+ var HIDDEN_PROVIDERS = ["gemini"];
1481
+ function isHiddenProvider(provider) {
1482
+ return HIDDEN_PROVIDERS.includes(provider);
1483
+ }
1484
+
1479
1485
  // src/auth-storage.ts
1480
1486
  var MOONSHOT_OAUTH_KEY = "moonshot-oauth";
1481
1487
  var XAI_OAUTH_KEY = "xai-oauth";
@@ -1606,6 +1612,7 @@ var AuthStorage = class {
1606
1612
  * satisfies it.
1607
1613
  */
1608
1614
  async hasProviderAuth(provider) {
1615
+ if (isHiddenProvider(provider)) return false;
1609
1616
  await this.ensureFresh();
1610
1617
  const dual = dualAuthProvider(provider);
1611
1618
  if (dual) {
@@ -2754,6 +2761,9 @@ function getModel(id) {
2754
2761
  function getModelsForProvider(provider) {
2755
2762
  return getAllModels().filter((m) => m.provider === provider);
2756
2763
  }
2764
+ function getListedModels() {
2765
+ return getAllModels().filter((m) => !isHiddenProvider(m.provider));
2766
+ }
2757
2767
  function isPaidModel(modelId) {
2758
2768
  return getModel(modelId)?.billing?.paid === true;
2759
2769
  }
@@ -2880,6 +2890,8 @@ export {
2880
2890
  loginXai,
2881
2891
  refreshXaiToken,
2882
2892
  withFileLock,
2893
+ HIDDEN_PROVIDERS,
2894
+ isHiddenProvider,
2883
2895
  MOONSHOT_OAUTH_KEY,
2884
2896
  XAI_OAUTH_KEY,
2885
2897
  dualAuthProvider,
@@ -2899,6 +2911,7 @@ export {
2899
2911
  getAllModels,
2900
2912
  getModel,
2901
2913
  getModelsForProvider,
2914
+ getListedModels,
2902
2915
  isPaidModel,
2903
2916
  withoutPaidTier,
2904
2917
  getAuthStorageKeys,
@@ -2913,4 +2926,4 @@ export {
2913
2926
  getDefaultThinkingLevel,
2914
2927
  getSummaryModel
2915
2928
  };
2916
- //# sourceMappingURL=chunk-WXIUTKXE.js.map
2929
+ //# sourceMappingURL=chunk-HMJZM62P.js.map