@askalf/dario 3.2.3 → 3.2.4

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
@@ -452,6 +452,7 @@ Your app sends whatever it wants — any tools, any parameters. dario replaces t
452
452
  | `DARIO_API_KEY` | If set, all endpoints (except `/health`) require matching `x-api-key` header or `Authorization: Bearer` header | unset (open) |
453
453
  | `DARIO_NO_BUN` | Disable automatic Bun relaunch (stay on Node.js) | unset |
454
454
  | `DARIO_MIN_INTERVAL_MS` | Minimum ms between requests (rate governor) | `500` |
455
+ | `DARIO_EXTENDED_CONTEXT` | Enable 1M context window for Sonnet 4.6 (requires [Extra Usage](https://support.claude.com/en/articles/12429409-manage-extra-usage-for-paid-claude-plans) enabled) | unset |
455
456
 
456
457
  ## Supported Features
457
458
 
package/dist/proxy.js CHANGED
@@ -731,9 +731,12 @@ export async function startProxy(opts = {}) {
731
731
  beta += ',' + clientBeta;
732
732
  }
733
733
  else {
734
- // CC v2.1.104 beta set context-1m excluded (requires Extra Usage enabled,
735
- // CC only adds it via coral_reef_sonnet feature flag which most accounts don't have)
736
- beta = 'claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,advisor-tool-2026-03-01,effort-2025-11-24';
734
+ // CC v2.1.104 base beta set. context-1m is opt-in via DARIO_EXTENDED_CONTEXT=1
735
+ // because it requires Extra Usage enabled on the account.
736
+ const baseBeta = 'claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,advisor-tool-2026-03-01,effort-2025-11-24';
737
+ beta = process.env.DARIO_EXTENDED_CONTEXT
738
+ ? `claude-code-20250219,oauth-2025-04-20,context-1m-2025-08-07,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,advisor-tool-2026-03-01,effort-2025-11-24`
739
+ : baseBeta;
737
740
  if (clientBeta) {
738
741
  const baseSet = new Set(beta.split(','));
739
742
  const filtered = filterBillableBetas(clientBeta)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
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": {