@askalf/dario 2.3.0 → 2.3.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.
Files changed (2) hide show
  1. package/dist/proxy.js +5 -2
  2. package/package.json +1 -1
package/dist/proxy.js CHANGED
@@ -435,9 +435,12 @@ export async function startProxy(opts = {}) {
435
435
  const modelInfo = modelOverride ? ` (model: ${modelOverride})` : '';
436
436
  console.log(`[dario] #${requestCount} ${req.method} ${urlPath}${modelInfo}`);
437
437
  }
438
- // Merge client beta flags with defaults
438
+ // Merge client beta flags with required defaults.
439
+ // Only include betas that are essential for OAuth + standard features.
440
+ // Avoid betas that may require Extra Usage (context-management, prompt-caching-scope).
441
+ // Client-provided betas pass through — the client controls its own feature set.
439
442
  const clientBeta = req.headers['anthropic-beta'];
440
- let beta = 'oauth-2025-04-20,interleaved-thinking-2025-05-14,prompt-caching-scope-2026-01-05,claude-code-20250219,context-management-2025-06-27';
443
+ let beta = 'oauth-2025-04-20,interleaved-thinking-2025-05-14,claude-code-20250219';
441
444
  if (clientBeta)
442
445
  beta += ',' + clientBeta.split(',').map(f => f.trim()).filter(f => f.length > 0 && f.length < 100).join(',');
443
446
  const headers = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Use your Claude subscription as an API. No API key needed. Local proxy for Claude Max/Pro subscriptions.",
5
5
  "type": "module",
6
6
  "bin": {