@kenkaiiii/ggcoder 4.3.31 → 4.3.32
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
|
@@ -72,7 +72,7 @@ Switch mid-conversation with `/model`. Not locked to anyone.
|
|
|
72
72
|
|
|
73
73
|
| Provider | Models | Auth |
|
|
74
74
|
|---|---|---|
|
|
75
|
-
| **Anthropic** | Claude Opus 4.
|
|
75
|
+
| **Anthropic** | Claude Opus 4.7, Sonnet 4.6, Haiku 4.5 | OAuth |
|
|
76
76
|
| **OpenAI** | GPT-4.1, o3, o4-mini | OAuth |
|
|
77
77
|
| **Z.AI (GLM)** | GLM-5.1, GLM-4.7 | API key |
|
|
78
78
|
| **Moonshot** | Kimi K2.5 | API key |
|
|
@@ -84,7 +84,7 @@ Switch mid-conversation with `/model`. Not locked to anyone.
|
|
|
84
84
|
Everything runs through slash commands inside the session. Not CLI flags.
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
/model claude-opus-4-
|
|
87
|
+
/model claude-opus-4-7 # Switch models on the fly
|
|
88
88
|
/model kimi-k2.5
|
|
89
89
|
/compact # Compress context when it gets long
|
|
90
90
|
|
package/dist/cli.js
CHANGED
|
@@ -303,7 +303,7 @@ function main() {
|
|
|
303
303
|
if (values.json) {
|
|
304
304
|
const message = positionals[0] ?? "";
|
|
305
305
|
const jsonProvider = (values.provider ?? "anthropic");
|
|
306
|
-
const jsonModel = values.model ?? "claude-opus-4-
|
|
306
|
+
const jsonModel = values.model ?? "claude-opus-4-7";
|
|
307
307
|
const maxTurns = values["max-turns"] ? parseInt(values["max-turns"], 10) : undefined;
|
|
308
308
|
const systemPrompt = values["system-prompt"];
|
|
309
309
|
const cwd = process.cwd();
|
|
@@ -323,7 +323,7 @@ function main() {
|
|
|
323
323
|
// RPC mode — headless JSON-over-stdio for IDE integrations
|
|
324
324
|
if (values.rpc) {
|
|
325
325
|
const rpcProvider = (values.provider ?? "anthropic");
|
|
326
|
-
const rpcModel = values.model ?? "claude-opus-4-
|
|
326
|
+
const rpcModel = values.model ?? "claude-opus-4-7";
|
|
327
327
|
const systemPrompt = values["system-prompt"];
|
|
328
328
|
const cwd = process.cwd();
|
|
329
329
|
runRpcMode({
|
|
@@ -352,7 +352,7 @@ function main() {
|
|
|
352
352
|
return "MiniMax-M2.7";
|
|
353
353
|
if (p === "openrouter")
|
|
354
354
|
return "qwen/qwen3.6-plus";
|
|
355
|
-
return "claude-opus-4-
|
|
355
|
+
return "claude-opus-4-7";
|
|
356
356
|
}
|
|
357
357
|
const model = saved.model ?? getHardcodedDefault(provider);
|
|
358
358
|
const thinkingLevel = saved.thinkingEnabled ? "medium" : undefined;
|
|
@@ -907,7 +907,7 @@ async function runSessions() {
|
|
|
907
907
|
return "kimi-k2.5";
|
|
908
908
|
if (p === "minimax")
|
|
909
909
|
return "MiniMax-M2.7";
|
|
910
|
-
return "claude-opus-4-
|
|
910
|
+
return "claude-opus-4-7";
|
|
911
911
|
}
|
|
912
912
|
const model = saved2.model ?? getDefault(provider);
|
|
913
913
|
const thinkingLevel = saved2.thinkingEnabled ? "medium" : undefined;
|
|
@@ -1098,7 +1098,7 @@ async function runServe() {
|
|
|
1098
1098
|
return "kimi-k2.5";
|
|
1099
1099
|
if (p === "minimax")
|
|
1100
1100
|
return "MiniMax-M2.7";
|
|
1101
|
-
return "claude-opus-4-
|
|
1101
|
+
return "claude-opus-4-7";
|
|
1102
1102
|
}
|
|
1103
1103
|
const model = serveValues.model ?? saved3.model ?? getDefault(provider);
|
|
1104
1104
|
const thinkingLevel = saved3.thinkingEnabled ? "medium" : undefined;
|
|
@@ -1237,7 +1237,7 @@ async function runAgentHome() {
|
|
|
1237
1237
|
return "kimi-k2.5";
|
|
1238
1238
|
if (p === "minimax")
|
|
1239
1239
|
return "MiniMax-M2.7";
|
|
1240
|
-
return "claude-opus-4-
|
|
1240
|
+
return "claude-opus-4-7";
|
|
1241
1241
|
}
|
|
1242
1242
|
const model = ahValues.model ?? saved4.model ?? getDefault(provider);
|
|
1243
1243
|
const thinkingLevel = saved4.thinkingEnabled ? "medium" : undefined;
|
|
@@ -75,7 +75,7 @@ describe("shouldCompact", () => {
|
|
|
75
75
|
messages.push(makeMessage("assistant", `response ${i}`));
|
|
76
76
|
}
|
|
77
77
|
const estimated = estimateConversationTokens(messages);
|
|
78
|
-
const opusContext = getContextWindow("claude-opus-4-
|
|
78
|
+
const opusContext = getContextWindow("claude-opus-4-7");
|
|
79
79
|
const kimiContext = getContextWindow("kimi-k2.5");
|
|
80
80
|
// Sanity: Opus has 1M, Kimi has 200k
|
|
81
81
|
expect(opusContext).toBe(1_000_000);
|
|
@@ -138,7 +138,7 @@ describe("compaction thresholds across all models", () => {
|
|
|
138
138
|
return messages;
|
|
139
139
|
}
|
|
140
140
|
const modelThresholds = [
|
|
141
|
-
{ model: "claude-opus-4-
|
|
141
|
+
{ model: "claude-opus-4-7", contextWindow: 1_000_000 },
|
|
142
142
|
{ model: "claude-sonnet-4-6", contextWindow: 1_000_000 },
|
|
143
143
|
{ model: "claude-haiku-4-5-20251001", contextWindow: 200_000 },
|
|
144
144
|
{ model: "gpt-5.3-codex", contextWindow: 400_000 },
|
|
@@ -121,7 +121,7 @@ describe("estimateConversationTokens", () => {
|
|
|
121
121
|
describe("setEstimatorModel", () => {
|
|
122
122
|
it("uses different ratios for different model families", () => {
|
|
123
123
|
const text = "a".repeat(100);
|
|
124
|
-
setEstimatorModel("claude-opus-4-
|
|
124
|
+
setEstimatorModel("claude-opus-4-7");
|
|
125
125
|
const claudeTokens = estimateTokens(text); // 100/3.2 = 32
|
|
126
126
|
setEstimatorModel("gpt-4.1");
|
|
127
127
|
const gptTokens = estimateTokens(text); // 100/3.7 = 28
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const MODELS = [
|
|
2
2
|
// ── Anthropic ──────────────────────────────────────────
|
|
3
3
|
{
|
|
4
|
-
id: "claude-opus-4-
|
|
5
|
-
name: "Claude Opus 4.
|
|
4
|
+
id: "claude-opus-4-7",
|
|
5
|
+
name: "Claude Opus 4.7",
|
|
6
6
|
provider: "anthropic",
|
|
7
7
|
contextWindow: 1_000_000,
|
|
8
8
|
maxOutputTokens: 128_000,
|
|
@@ -7,7 +7,7 @@ import { getContextWindow } from "../../core/model-registry.js";
|
|
|
7
7
|
import { PARTIAL_BLOCKS, LIGHT_SHADE } from "../constants/figures.js";
|
|
8
8
|
// Model ID → short display name
|
|
9
9
|
const MODEL_SHORT_NAMES = {
|
|
10
|
-
"claude-opus-4-
|
|
10
|
+
"claude-opus-4-7": "Opus",
|
|
11
11
|
"claude-sonnet-4-6": "Sonnet",
|
|
12
12
|
"claude-haiku-4-5": "Haiku",
|
|
13
13
|
"claude-haiku-4-5-20251001": "Haiku",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenkaiiii/ggcoder",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI coding agent with OAuth authentication for Anthropic and OpenAI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"wrap-ansi": "^10.0.0",
|
|
38
38
|
"@kenkaiiii/agent-home-sdk": "^0.3.8",
|
|
39
39
|
"zod": "^4.3.6",
|
|
40
|
-
"@kenkaiiii/gg-agent": "4.3.
|
|
41
|
-
"@kenkaiiii/gg-ai": "4.3.
|
|
40
|
+
"@kenkaiiii/gg-agent": "4.3.32",
|
|
41
|
+
"@kenkaiiii/gg-ai": "4.3.32"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
44
|
"@huggingface/transformers": "^3.6.0",
|