@kenkaiiii/gg-core 5.94.0 → 5.95.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.
- package/README.md +11 -11
- package/dist/{chunk-JLEBGMG4.js → chunk-J7W5HS6X.js} +622 -1105
- package/dist/chunk-J7W5HS6X.js.map +1 -0
- package/dist/index.cjs +816 -1310
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +165 -157
- package/dist/index.d.ts +165 -157
- package/dist/index.js +153 -160
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +57 -75
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +11 -15
- package/dist/model-registry.d.ts +11 -15
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-JLEBGMG4.js.map +0 -1
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 | `
|
|
52
|
-
| Provider list | `AUTH_PROVIDERS`: each provider's name, models
|
|
53
|
-
| Local models | `discoverLocalModels`, `probeEndpoint`: Ollama by default, plus LM Studio, llama.cpp, vLLM or any custom URL
|
|
54
|
-
| Plan usage | `fetchSubscriptionUsage`: remaining Claude
|
|
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
|
|