@kenkaiiii/ggcoder 5.43.0 → 5.44.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
@@ -72,7 +72,7 @@ Switch mid-conversation with `/model`. Not locked to anyone.
72
72
  | **Anthropic** | Claude Opus 5, Sonnet 5, Haiku 4.5 | OAuth |
73
73
  | **OpenAI** | GPT-5.5, GPT-5.5 Pro, GPT-5.4, GPT-5.3 Codex | OAuth |
74
74
  | **Moonshot** | Kimi K3, Kimi K2.7 Code | OAuth or API key |
75
- | **Z.AI (GLM)** | GLM-5.1, GLM-4.7, GLM-4.7 Flash | API key |
75
+ | **Z.AI (GLM)** | GLM-5.3 | API key |
76
76
  | **MiniMax** | MiniMax M3 (image + video) | API key |
77
77
  | **Xiaomi (MiMo)** | MiMo-V2.5-Pro, MiMo-V2.5-Pro-UltraSpeed, MiMo-V2.5 (image + video) | API key |
78
78
  | **DeepSeek** | DeepSeek V4 Pro, V4 Flash | API key |
@@ -1641,6 +1641,12 @@ async function createSession(deps, opts) {
1641
1641
  durationMs: String(d.durationMs),
1642
1642
  isError: String(d.isError),
1643
1643
  ...(d.isError ? { result: d.result.slice(0, 500) } : {}),
1644
+ // Consecutive-failure count for schema rejections. Attempt 1 followed by
1645
+ // a success means the model self-corrected; reaching 3 means it looped
1646
+ // and the turn was ended. Grep this to tell the two apart.
1647
+ ...(d.invalidArgAttempt === undefined
1648
+ ? {}
1649
+ : { invalidArgAttempt: String(d.invalidArgAttempt) }),
1644
1650
  });
1645
1651
  broadcast("tool_call_end", d);
1646
1652
  // Any tool can mutate the approved plan (including bash), so refresh after