@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.
package/README.md CHANGED
@@ -43,17 +43,17 @@ console.log(models.map((m) => m.id));
43
43
 
44
44
  ## What's inside
45
45
 
46
- | Area | Main exports |
47
- | --------------- | -------------------------------------------------------------------------------------------------------------------------- |
48
- | Models | `getModel`, `getAllModels`, `getModelsForProvider`, `getDefaultModel`, `getContextWindow`, `MODELS` |
49
- | Thinking levels | `getSupportedThinkingLevels`, `getMaxThinkingLevel`, `getDefaultThinkingLevel`, `getNextThinkingLevel` |
50
- | Credentials | `AuthStorage`: reads and writes `~/.gg/auth.json`, refreshes sign-in tokens, safe across processes |
51
- | Sign-in | `loginOpenAI`, `loginKimi`, `loginXai`, `loginGemini` and matching `refresh…Token` functions; `loginClaudeCode` for Claude |
52
- | Provider list | `AUTH_PROVIDERS`: each provider's name, models and sign-in methods, ready for a login screen |
53
- | Local models | `discoverLocalModels`, `probeEndpoint`: Ollama by default, plus LM Studio, llama.cpp, vLLM or any custom URL |
54
- | Plan usage | `fetchSubscriptionUsage`: remaining Claude, ChatGPT and Kimi plan usage |
55
- | Paths | `getAppPaths`: every file GG Coder keeps under `~/.gg/` |
56
- | Other | Logger, file lock, Telegram bot, voice transcription, auto-update |
46
+ | Area | Main exports |
47
+ | --------------- | ----------------------------------------------------------------------------------------------------------------------------- |
48
+ | Models | `getModel`, `getAllModels`, `getModelsForProvider`, `getDefaultModel`, `getContextWindow`, `MODELS` |
49
+ | Thinking levels | `getSupportedThinkingLevels`, `getMaxThinkingLevel`, `getDefaultThinkingLevel`, `getNextThinkingLevel` |
50
+ | Credentials | `AuthStorage`: reads and writes `~/.gg/auth.json`, refreshes sign-in tokens, safe across processes |
51
+ | Sign-in | `loginChatGPT` (Sign in with ChatGPT), `refreshChatGPTToken`, `revokeChatGPTSignIn`; `loginClaudeCode` for Claude |
52
+ | Provider list | `AUTH_PROVIDERS`: each provider's name, models, sign-in methods and plan/pay-per-token keys, ready for a login screen |
53
+ | Local models | `discoverLocalModels`, `probeEndpoint`: Ollama by default, plus LM Studio, llama.cpp, vLLM or any custom URL |
54
+ | Plan usage | `fetchSubscriptionUsage`: remaining Kimi Code plan usage (Claude reports its own; ChatGPT's is at chatgpt.com/settings/usage) |
55
+ | Paths | `getAppPaths`: every file GG Coder keeps under `~/.gg/` |
56
+ | Other | Logger, file lock, Telegram bot, voice transcription, auto-update |
57
57
 
58
58
  `AuthStorage` shares `~/.gg/auth.json` with GG Coder, so a user who has signed in there is already signed in to your tool. Pass a different file path to the constructor to keep your own.
59
59