@askalf/dario 2.4.1 → 2.4.2

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 +4 -4
  2. package/package.json +1 -1
package/dist/proxy.js CHANGED
@@ -571,11 +571,11 @@ export async function startProxy(opts = {}) {
571
571
  const modelInfo = modelOverride ? ` (model: ${modelOverride})` : '';
572
572
  console.log(`[dario] #${requestCount} ${req.method} ${urlPath}${modelInfo}`);
573
573
  }
574
- // Beta flags matching native Claude Code v2.1.98.
575
- // context-management and prompt-caching-scope are safe when metadata.user_id
576
- // is present billing classification depends on device identity, not betas.
574
+ // Conservative beta defaults only betas confirmed safe for Max plans.
575
+ // context-management and prompt-caching-scope stripped: even with metadata.user_id,
576
+ // these may independently trigger Extra Usage billing (reported by @belangertrading).
577
577
  const clientBeta = req.headers['anthropic-beta'];
578
- let beta = 'oauth-2025-04-20,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,claude-code-20250219,advisor-tool-2026-03-01';
578
+ let beta = 'oauth-2025-04-20,interleaved-thinking-2025-05-14,claude-code-20250219,advisor-tool-2026-03-01';
579
579
  if (clientBeta) {
580
580
  const filtered = filterBillableBetas(clientBeta);
581
581
  if (filtered)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
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": {