clawmoney 0.15.70 → 0.15.71

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.
@@ -165,15 +165,35 @@ function pickClaudeBetasForModel(model) {
165
165
  const m = normalizeModel(model);
166
166
  const isHaiku = m.includes("haiku");
167
167
  const betas = [];
168
+ // claude-code-20250219 — required for non-haiku models, Anthropic uses
169
+ // it to identify legitimate Claude Code requests (missing → "non-CC"
170
+ // classification → Extra usage required for long context etc).
168
171
  if (!isHaiku)
169
172
  betas.push("claude-code-20250219");
170
- // OAuth subscriber always true for us since we only serve relay from
171
- // Max-tier OAuth tokens.
173
+ // oauth-2025-04-20required for OAuth (Max subscription) tokens.
172
174
  betas.push("oauth-2025-04-20");
173
- // Interleaved thinking — all Claude 4+ models support it.
175
+ // interleaved-thinking-2025-05-14 — all Claude 4+ models support it.
174
176
  if (modelSupportsThinking(model)) {
175
177
  betas.push("interleaved-thinking-2025-05-14");
176
178
  }
179
+ // Below: betas that real Claude Code always sends. Missing any of these
180
+ // causes Anthropic to treat the request as "not quite Claude Code",
181
+ // which silently disables tool use and may force Extra usage billing
182
+ // on long context. Cross-referenced against auth2api and real CC wire
183
+ // capture (2026-04 versions).
184
+ //
185
+ // - redact-thinking-2026-02-12: hides thinking blocks in response
186
+ // - context-management-2025-06-27: enables tool_result context windows
187
+ // - prompt-caching-scope-2026-01-05: global prompt cache scope
188
+ // - advanced-tool-use-2025-11-20: enables tool_use for non-haiku (CRITICAL)
189
+ // - effort-2025-11-24: adaptive thinking effort levels
190
+ betas.push("redact-thinking-2026-02-12");
191
+ betas.push("context-management-2025-06-27");
192
+ betas.push("prompt-caching-scope-2026-01-05");
193
+ if (!isHaiku) {
194
+ betas.push("advanced-tool-use-2025-11-20");
195
+ betas.push("effort-2025-11-24");
196
+ }
177
197
  return betas;
178
198
  }
179
199
  // ── Proxy (honor HTTPS_PROXY / http_proxy env vars) ──
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmoney",
3
- "version": "0.15.70",
3
+ "version": "0.15.71",
4
4
  "description": "ClawMoney CLI -- Earn rewards with your AI agent",
5
5
  "type": "module",
6
6
  "bin": {